.bq{color:#172b42;background:#fff;padding:24px;border:1px solid #dce4ed;border-radius:14px;min-width:0}.bq h2,.bq h3{margin:0 0 12px}.bq p{line-height:1.55;margin:10px 0;color:#4c6073}.bq button{border:1px solid #b9cad9;background:#f6f9fc;color:#164b78;border-radius:7px;padding:9px 13px;cursor:pointer;font:inherit}.bq button:hover{background:#eaf2f9}.bq button:disabled{opacity:.5;cursor:wait}.bq button[type=submit]{background:#155a90;color:white}.bq-head,.bq-actions{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:18px}.bq-scroll{overflow-x:auto;margin:16px 0}.bq table{width:100%;border-collapse:collapse;font-size:14px}.bq th,.bq td{text-align:left;padding:13px 12px;border-bottom:1px solid #e1e8ef;vertical-align:top}.bq th{background:#f5f8fb;color:#4c6073;font-weight:600}.bq-terms,.bq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}.bq dt{font-size:12px;color:#5a6b7e}.bq dd{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}.bq label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:500;margin:8px 0}.bq input,.bq select,.bq textarea{width:100%;box-sizing:border-box;border:1px solid #b9cad9;border-radius:6px;padding:10px;font:inherit;background:white;color:#172b42}.bq td input{min-width:100px}.bq [role=alert]{color:#9c291e;background:#fff2ee;padding:12px}.bq [role=status]:not(:empty){background:#edf5fc;padding:12px}.bq-detail{padding:16px 0}.bq-empty{padding:36px 0}.drawer.issued-quote-drawer,#supplier-detail-drawer.issued-quote-drawer{width:min(1100px,96vw);max-width:96vw}.bq [inert]{opacity:.6}@media(max-width:700px){.bq{padding:15px}.bq-terms,.bq-grid{grid-template-columns:1fr}.bq-head{align-items:flex-start}}
.bq.bq-editor{border:0;border-radius:0;padding:0}.bq-editor h3{font-size:18px}.bq-editor-head{margin-bottom:14px}.bq-editor-head p{margin:0}.bq-pricing-context{background:#f6f8fb;border:1px solid #e0e7ef;border-radius:8px;padding:12px 16px}.bq-pricing-context h4{margin:0;font-size:13px}.bq-logistics{display:flex;gap:12px 24px;flex-wrap:wrap;margin:10px 0}.bq-logistics div{flex:1 1 130px}.bq-logistics dt{font-size:12px;color:#52677e}.bq-logistics dd{margin:4px 0;font-size:13px}.bq-pricing-context p{font-size:12px;margin:5px 0}.bq-currency{max-width:170px;margin-top:12px}.bq .bq-items th,.bq .bq-items td{padding:10px 8px}.bq-items td:first-child{min-width:190px}.bq-items td p{font-size:12px;margin:5px 0;max-width:260px}.bq-items .bq-field{font-size:0;margin:0}.bq .bq-items input{font-size:14px;min-width:70px}.bq-items td:last-child{min-width:110px}.bq-commercial{display:grid;grid-template-columns:1fr 2fr;gap:22px}.bq-lead{display:flex;gap:10px}.bq-lead label{flex:1;min-width:0}.bq-optional{border-top:1px solid #e0e7ef;padding:13px 0;margin-top:14px}.bq-optional summary{font-size:13px;font-weight:600;cursor:pointer}.bq-optional .bq-grid{margin:10px 0;gap:16px}.bq-optional textarea{min-height:66px}.bq-recovery{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.bq-recovery button{font-size:12px;padding:6px 9px}.bq-estimate{text-align:right;font-weight:600}.bq-footer{flex:1;min-width:0;display:flex;gap:12px;align-items:center;justify-content:space-between}.bq-footer[hidden]{display:none}.bq-footer-feedback{font-size:13px;max-width:520px;line-height:1.4}.bq-footer-feedback[role=alert]{color:#a32222;font-weight:600}.bq-footer-actions{display:flex;gap:10px;flex-shrink:0}.bq-footer-actions button{background:#fff;border:1px solid #bdcbdc;border-radius:7px;padding:10px 14px;color:#154c78;font:inherit;cursor:pointer}.bq-footer-actions button[data-q-action=review],.bq-footer-actions button[data-q-action=confirm]{background:#1262ae;color:white;border-color:#1262ae}.bq-footer-actions button:disabled{opacity:.5;cursor:wait}.bq-field-error{font-size:12px;color:#a32222}.bq [aria-invalid=true]{border:2px solid #ba2828;background:#fff7f5}.bq-confirm{padding:16px}.bq-file-label input{font-size:12px}.bq [data-q-history]{max-width:320px}#supplier-detail-drawer.issued-quote-drawer #drawer-body{display:flex;flex-direction:column;overflow:hidden;padding:0}#supplier-detail-drawer.issued-quote-drawer .drawer-tabs{flex-shrink:0}#supplier-detail-drawer.issued-quote-drawer .drawer-panels{overflow-y:auto;min-height:0;flex:1;padding:20px 24px}#supplier-detail-drawer.issued-quote-drawer .supplier-drawer-footer{display:flex;gap:12px;flex-shrink:0;padding:12px 18px}#supplier-detail-drawer.issued-quote-drawer .bq-scroll{overflow-x:auto;overflow-y:hidden}.bq-editor .bq-terms{margin:18px 0}@media(max-width:700px){.bq-commercial{grid-template-columns:1fr;gap:8px}.bq-footer{flex-direction:column;align-items:flex-start;gap:8px}.bq-footer-actions{gap:6px}.bq-footer-actions button{font-size:12px;padding:9px}.bq-logistics div{flex-basis:100px}#supplier-detail-drawer.issued-quote-drawer .drawer-panels{padding:14px}.bq-confirm{padding:0}}
.bq .bq-items{min-width:800px}
.rfq-questions{margin-top:20px}.rfq-questions textarea{min-height:100px}.rfq-questions-note{font-size:12px}.rfq-question-message{padding:14px 0;border-bottom:1px solid #dce4ed}.rfq-question-message header{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.rfq-question-message time,.rfq-question-message small{font-size:12px;color:#52677e}.rfq-question-message p{white-space:pre-wrap;overflow-wrap:anywhere}.rfq-question-list{display:grid;gap:10px;margin:18px 0}.rfq-question-list button{display:grid;gap:6px;text-align:left}.rfq-question-list span{font-size:13px;overflow-wrap:anywhere}[data-guest-question-workspace]{margin-bottom:22px}

.bq-quote-header{display:flex;justify-content:space-between;gap:22px;border-bottom:1px solid #dce4ed;padding-bottom:14px}.bq-quote-header p{margin:4px 0}.bq-quote-header small{color:#64748b}.bq-quote-items{min-width:540px}.bq-quote-items td p{margin:5px 0;font-size:13px}.bq-quote-total{display:flex;justify-content:flex-end;gap:22px;align-items:center;padding:12px 0;font-size:16px}.bq-detail h4{margin:18px 0 8px;font-size:14px}.bq-detail .bq-terms{margin:10px 0;grid-template-columns:1fr 2fr 1fr}.bq-requirements{background:#f6f8fb;border:1px solid #e0e7ef;border-radius:8px;padding:12px 16px}.bq-requirements h4{margin:0;font-size:13px}.bq-requirements p{font-size:12px;margin:5px 0}.bq-notes{white-space:pre-wrap}.bq-recorded{border-top:1px solid #dce4ed;padding-top:12px;margin-top:15px}.bq-recorded summary{font-size:13px;cursor:pointer}.bq .bq-quantity-toggle,.bq .bq-file-choice{display:flex;flex-direction:row;align-items:center;font-size:12px;gap:6px}.bq .bq-quantity-toggle input,.bq .bq-file-choice input{width:15px;min-width:15px;flex:0 0 15px}.bq [data-q-quantity] .bq-field{font-size:12px;margin:8px 0}.bq [data-q-quantity][hidden]{display:none}.bq .bq-items{min-width:650px}.bq .bq-items td:nth-child(2){min-width:200px}.bq fieldset{border:1px solid #dce4ed;border-radius:8px;margin:12px 0}.bq fieldset legend p{display:inline;margin-left:8px}@media(max-width:700px){.bq-quote-header{flex-direction:column;gap:8px}.bq-detail .bq-terms{grid-template-columns:1fr}.bq-quote-total{justify-content:space-between}}
/* Quote review stays within the existing Source Bundle and supplier surfaces. */
.bq-selection,.bq-detail-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:14px 0}.bq-selection input,.bq-review td input[type=checkbox],.bq-request-line input[type=checkbox]{width:auto;min-width:18px}.bq-action-panel,.bq-workflow-summary,.bq-changes,.bq-private{padding:16px;margin:16px 0;border:1px solid #cbd7e8;border-radius:10px;background:#f7faff}.bq-action-panel label,.bq-private textarea{display:block;margin:10px 0;width:100%}.bq-action-panel button{margin:8px 8px 0 0}.bq-request-line{display:flex;gap:18px;align-items:center;border-bottom:1px solid #dde5ef}.bq-request-line label{flex:1}.bq-request-line label:first-child{display:flex;gap:8px;align-items:center}.bq-requested{background:#fff5d9}.bq-warning{background:#fff5d9;border:1px solid #e3c57a;border-radius:8px;padding:14px;margin:16px 0}.bq-comparison table{min-width:700px}.bq-comparison th,.bq-comparison td{min-width:200px;vertical-align:top}.bq-comparison-flags{font-weight:400;font-size:13px;padding-left:16px;color:#755016}.bq-comparison mark,.bq-changes mark{background:#fff0b5;padding:2px 4px}.bq-feedback-preview{border-left:3px solid #7c91b2;padding:8px 14px;background:white}.bq [data-review-feedback][role=alert]{color:#9f2525;background:#fff1ed;padding:12px}.bq [data-review-feedback]:empty{display:none}.bq-private textarea{min-height:90px}.bq-workflow-summary textarea{display:block;width:100%}
/* Buyer Quotes selection/list overrides: do not change editor form controls. */
.bq [data-review-request] [hidden]{display:none}
.bq [data-panel-error]:empty{display:none}
.bq-revision-form :disabled{opacity:1;background:#f0f3f7;color:#52647b;cursor:not-allowed}
.bq #bq-revision-lock-note{font-size:13px;line-height:1.5}
.bq .bq-buyer-message,.message-bubble .bq-buyer-message{margin:12px 0;white-space:normal}
.bq .bq-buyer-message>strong,.message-bubble .bq-buyer-message>strong{font-size:inherit}
.bq .bq-buyer-message blockquote,.message-bubble .bq-buyer-message blockquote{margin:6px 0 0;padding:8px 12px;border-left:3px solid #9bb9da;background:#f4f8fc;color:#172b42;font:inherit;white-space:pre-wrap;overflow-wrap:anywhere}
.bq .bq-buyer-message blockquote span,.message-bubble .bq-buyer-message blockquote span{color:inherit}
.bq-review:has(>.bq-quotes-header){box-sizing:border-box;width:100%;max-width:1200px;margin-inline:0;justify-self:start}
.bq-review .bq-quotes-header{margin:0 0 16px;gap:12px 24px;align-items:flex-start}
.bq-review .bq-quotes-heading{flex:1 1 280px;min-width:0}
.bq-review .bq-quotes-controls{display:flex;flex-direction:column;align-items:flex-end;gap:4px;margin-left:auto;max-width:100%}
.bq-review .bq-quotes-header h2{margin-bottom:4px}
.bq-review .bq-quotes-header p{margin:0}
.bq-review .bq-selection{gap:10px 12px;margin:0;align-items:center;justify-content:flex-end}
.bq-review .bq-selection button{box-sizing:border-box;height:40px;padding:9px 13px;line-height:20px;white-space:nowrap}
.bq-review .bq-selection .bq-select-all{display:inline-flex;flex-direction:row;align-items:center;gap:8px;margin:0;flex:0 0 auto;white-space:nowrap;cursor:pointer;min-height:40px}
.bq-review .bq-selection input[type=checkbox],.bq-review .bq-quotes-table input[type=checkbox]{appearance:auto;display:block;box-sizing:border-box;width:18px;height:18px;min-width:18px;max-width:18px;min-height:18px;padding:0;margin:0;flex:0 0 18px;accent-color:var(--blue,#1c60b4);cursor:pointer}
.bq-review .bq-selection [data-review-action=compare]{min-height:40px;margin:0;background:var(--blue,#1c60b4);border-color:var(--blue,#1c60b4);color:#fff;white-space:nowrap}
.bq-review .bq-selection [data-review-action=compare]:hover:not(:disabled){background:var(--blue-dark,#123e6e);border-color:var(--blue-dark,#123e6e)}
.bq-review .bq-selection [data-review-action=compare]:disabled{background:#e6ecf5;border-color:#c5d0df;color:#475569;opacity:1;cursor:not-allowed}
.bq-review .bq-selection-help{font-size:12px;line-height:1.5;margin:0;color:#52647b;text-align:right}
.bq-review .bq-quotes-scroll{margin:0;max-width:100%}
.bq-review .bq-quotes-table{table-layout:fixed;min-width:920px;max-width:1200px}
.bq-review .bq-col-select{width:56px}.bq-review .bq-col-reference{width:188px}.bq-review .bq-col-total{width:136px}.bq-review .bq-col-lead{width:96px}.bq-review .bq-col-status{width:164px}.bq-review .bq-col-action{width:116px}
.bq-review .bq-quotes-table th,.bq-review .bq-quotes-table td{vertical-align:middle;padding:10px;line-height:1.4}
.bq-review .bq-quotes-table th:first-child,.bq-review .bq-quotes-table td:first-child{text-align:center;padding-left:8px;padding-right:8px}
.bq-review .bq-quotes-table td:first-child input{margin-inline:auto}
.bq-review .bq-supplier-details,.bq-review .bq-review-status{display:grid;gap:3px}
.bq-review .bq-supplier-details{min-width:0;overflow-wrap:anywhere}
.bq-review .bq-quotes-table .bq-supplier-details>span,.bq-review .bq-quotes-table .bq-review-status>span{color:inherit}
.bq-review .bq-quotes-table td:last-child{text-align:center}
.bq-review .bq-quotes-table [data-review-view]{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:auto;min-height:40px;padding:9px 10px;line-height:20px;white-space:nowrap}
.bq-review .bq-selection :focus-visible,.bq-review .bq-quotes-table :focus-visible,.bq-review .bq-quotes-scroll:focus-visible{outline:2px solid var(--blue,#1c60b4);outline-offset:3px}
/* Compact received quotes; assessment content lives in the sample drawer. */
.bq-review .bq-quotes-table{min-width:0;width:100%;table-layout:fixed}
.bq-review .bq-col-select{width:56px}.bq-review .bq-col-reference{width:16%}.bq-review .bq-col-total{width:13%}.bq-review .bq-col-lead{width:9%}.bq-review .bq-col-status{width:16%}.bq-review .bq-col-action{width:230px}
.bq-review .bq-quotes-table th,.bq-review .bq-quotes-table td{padding:9px 8px;overflow-wrap:anywhere}
.bq-review .bq-quotes-table th:first-child{white-space:nowrap}
.bq-review .bq-row-actions{display:flex;flex-wrap:wrap;gap:5px;text-align:left;align-items:center}
.bq-review .bq-quotes-table [data-review-view]{min-height:32px;padding:5px 8px;line-height:20px;font-size:13px}
.bq-review .bq-rfq-version{display:block;margin-top:3px;color:#52647b}
.bq-review [data-sample-status]:empty{display:none}
@media(max-width:760px){
 .bq-review .bq-quotes-table,.bq-review .bq-quotes-table tbody{display:block;width:100%}
 .bq-review .bq-quotes-table colgroup{display:none}
 .bq-review .bq-quotes-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .bq-review .bq-quotes-table tr{display:grid;grid-template-columns:32px minmax(0,1fr);gap:0;border-bottom:1px solid #dce4ed;padding:10px 0}
 .bq-review .bq-quotes-table td{display:block;grid-column:2;padding:4px 6px;border:0;text-align:left!important}
 .bq-review .bq-quotes-table td:first-child{grid-column:1;grid-row:1;padding-top:7px}
 .bq-review .bq-quotes-table td:nth-child(4)::before{content:'Total: ';color:#52647b}
 .bq-review .bq-quotes-table td:nth-child(5)::before{content:'Lead time: ';color:#52647b}
 .bq-review .bq-quotes-controls{align-items:flex-start;margin-left:0}.bq-review .bq-selection{justify-content:flex-start}.bq-review .bq-selection-help{text-align:left}
}

/* Quote decision actions are independent of optional sampling. */
.bq-review .bq-detail-actions{align-items:center;justify-content:space-between;gap:12px;margin:12px 0 18px}
.bq-review .bq-detail-secondary{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}
.bq-review .bq-detail-actions button{min-height:42px;max-width:100%;box-sizing:border-box;line-height:1.4}
.bq-review .bq-finalize-action{background:#075bd8;color:#fff;border-color:#075bd8;min-height:42px;line-height:1.4}
.bq-review .bq-finalize-action:hover:not(:disabled){background:#064bb2;border-color:#064bb2}
.bq-review .bq-detail-actions>.bq-finalize-action{margin-inline-start:auto}
.bq-review .bq-finalize-action:focus-visible{outline:3px solid #80b5ff;outline-offset:3px}
.bq-review .bq-finalize-action:disabled{background:#dce6f3;color:#52647b;border-color:#c2cfe0;opacity:1}
@media(max-width:640px){.bq-review .bq-detail-actions{align-items:stretch}.bq-review .bq-detail-secondary{flex:1 1 100%}.bq-review .bq-detail-actions>.bq-finalize-action{flex:1 1 100%;margin-inline-start:0}}
.bmc { margin: 16px 0; padding: 16px; border: 1px solid #ccd9ed; border-radius: 10px; }
.bmc:empty { display: none; }
.bmc-fields { display: grid; gap: 10px; min-width: 0; }
.bmc-fields label, .bmc-dialog label { display: grid; gap: 6px; }
.bmc-fields input, .bmc-fields select, .bmc-dialog input, .bmc-dialog select, .bmc-dialog textarea { box-sizing: border-box; max-width: 100%; min-width: 0; width: 100%; }
.bmc-fields .bmc-confirm { display: flex; align-items: flex-start; gap: 8px; }
.bmc-fields .bmc-confirm input { width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0; }
.bmc-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #ccd9ed; border-radius: 12px; color: #172544; }
.bmc-dialog[open] { display: flex; flex-direction: column; }
.bmc-dialog header, .bmc-dialog footer { padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; border-bottom: 1px solid #ccd9ed; }
.bmc-dialog footer { border-bottom: 0; border-top: 1px solid #ccd9ed; }
.bmc-dialog-body { padding: 16px; overflow-y: auto; min-height: 0; overflow-wrap: anywhere; }
.bmc-dialog [data-send] { background: #075bd8; color: white; }
.bmc-dialog [role=alert] { color: #a21925; }
.bmc dd { margin-left: 0; white-space: pre-wrap; }
.bmc button { margin: 4px 8px 4px 0; }
.bmc-dialog button, .bmc button { min-height: 40px; padding: 8px 12px; border: 1px solid #c3d4ed; border-radius: 8px; font: inherit; cursor: pointer; }
.bmc-dialog input:not([type=checkbox]), .bmc-dialog select, .bmc-dialog textarea { min-height: 40px; padding: 8px; border: 1px solid #c3d4ed; border-radius: 8px; font: inherit; }
.bmc-dialog button:focus-visible, .bmc button:focus-visible, .bmc-dialog input:focus-visible, .bmc-dialog select:focus-visible { outline: 2px solid #075bd8; outline-offset: 2px; }
.bmc-fields [hidden] { display: none !important; }
.bmc-dialog button:disabled { cursor: wait; opacity: .65; }

.bmc [data-clarify-actions]{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.bmc-note{white-space:pre-wrap;overflow-wrap:anywhere}.bmc-response{margin-top:12px}.bmc-response h4{margin:0}.bq-editor [data-q-clarification]:empty{display:none}
