/* Reuse shipment fonts, controls and tables; only quotation-specific layout. */
#pricesView [hidden], #manualQuoteEditor [hidden], #manualQuoteDetail[hidden] { display: none !important; }
.quote-workspace-tabs { margin-bottom: 16px; padding: 14px 20px; background: #fff; border: 1px solid #e6e8ee; border-radius: 12px; }
#manualQuotePanel .quote-customer-filter { flex: 0 1 300px; width: 300px; min-width: 180px; }
body.quote-modal-open { overflow: hidden; }
.quote-editor[open] { display: flex; flex-direction: column; overflow: hidden; }
.quote-editor > .inventory-header { flex-shrink: 0; gap: 12px; }
.quote-editor-heading { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.quote-editor .quote-form { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.quote-form { padding: 20px; }
.quote-header-fields { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 14px; }
.quote-field { display: flex; flex-direction: column; gap: 7px; color: #626b7c; font-size: 12px; min-width: 0; }
.quote-field .form-input { width: 100%; min-width: 0; font-family: inherit; font-size: 13px; color: #242933; box-sizing: border-box; }
.quote-customer-field, .quote-package-picker { position: relative; }
.quote-customer-popup, .quote-package-popup { position: absolute; top: 100%; left: 0; right: 0; z-index: 3; margin-top: 4px; background: #fff; border: 1px solid #dfe3eb; border-radius: 8px; box-shadow: 0 8px 24px #17223b1a; overflow: hidden; }
#manualQuoteCustomerList { max-height: 220px; overflow-y: auto; overscroll-behavior: contain; }
.quote-customer-option { display: flex; flex-direction: column; gap: 3px; width: 100%; border: 0; border-bottom: 1px solid #f0f2f6; padding: 10px 12px; text-align: left; background: #fff; color: #242933; font: inherit; cursor: pointer; overflow-wrap: anywhere; }
.quote-customer-option span { font-size: 11px; color: #7c8492; }
.quote-customer-option:hover, .quote-customer-option[aria-selected="true"] { background: #fff3e8; }
[data-quote-package-list] { max-height: 200px; overflow-y: auto; overscroll-behavior: contain; }
.quote-package-option { display: block; width: 100%; border: 0; border-bottom: 1px solid #f0f2f6; padding: 10px 12px; text-align: left; background: #fff; color: #242933; font: inherit; cursor: pointer; overflow-wrap: anywhere; }
.quote-package-option:hover, .quote-package-option[aria-selected="true"] { background: #fff3e8; }
.quote-customer-status { padding: 8px 12px; color: #7c8492; font-size: 11px; border-top: 1px solid #e6e8ee; }
.quote-validity-hint { margin: 14px 0 0; color: #626b7c; font-size: 12px; line-height: 1.6; }
.quote-package-hint { margin: 6px 0 0; color: #626b7c; font-size: 12px; line-height: 1.6; }
.quote-detail-validity { background: #fff7f0; border-left: 3px solid #ff6b00; padding: 10px 14px; margin: 0 0 16px; font-size: 13px; }
.quote-line { border: 1px solid #e6e8ee; border-radius: 10px; margin: 18px 0 12px; padding: 16px; }
.quote-line legend { padding: 0 6px; font-size: 13px; font-weight: 600; }
.quote-line-fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.quote-line-fields .quote-field { grid-column: span 2; }
.quote-line-fields .quote-field-productModel, .quote-line-fields .quote-field-packageOutline { grid-column: span 3; }
.quote-range-hint { color: #626b7c; font-size: 11px; line-height: 1.6; }
.quote-line-fields .quote-field-unitPrice { grid-column: 1 / -1; padding: 14px 16px; border: 1px solid #ffcba4; border-left: 4px solid #f36a21; border-radius: 8px; background: #fff8f1; }
.quote-price-heading { display: flex; align-items: center; gap: 10px; }
.quote-price-heading label { color: #873900; font-size: 14px; font-weight: 700; }
.quote-price-badge { color: #873900; background: #ffe7d1; border-radius: 4px; padding: 3px 7px; font-size: 11px; font-weight: 600; }
.quote-price-entry { display: flex; align-items: center; gap: 10px; max-width: 480px; }
.quote-price-columns { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.quote-price-manual { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.quote-reference { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px 14px; border: 1px solid #dbe4ee; border-radius: 7px; background: #fff; color: #34465e; }
.quote-reference-title { font-size: 12px; font-weight: 600; }
.quote-reference-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.quote-reference-price strong { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: #23496c; }
.quote-reference-price span { font-size: 12px; }
.quote-reference-message { font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.quote-reference-warning { border-color: #e2b65f; background: #fffaf0; }
.quote-reference-breakdown { font-size: 11px; line-height: 1.7; }
.quote-reference-breakdown summary { cursor: pointer; padding: 2px 0; }
.quote-reference-breakdown > div { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; }
.quote-reference-breakdown > div > span:last-child { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.quote-reference-breakdown p { margin: 6px 0 0; color: #626b7c; }
.quote-field-unitPrice .form-input { flex: 1; border-color: #e6a16a; background: #fff; color: #873900; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.quote-field-unitPrice .form-input::placeholder { font-size: 13px; font-weight: 400; color: #876d5a; }
.quote-field-unitPrice .form-input:focus { border-color: #e45e0b; outline: 2px solid #f9bb8f; outline-offset: 2px; }
.quote-price-unit { flex-shrink: 0; color: #873900; font-size: 13px; font-weight: 600; }
.quote-price-hint { color: #755039; font-size: 12px; line-height: 1.6; }
.quote-line-remove { margin-top: 12px; }
.quote-notes { margin-top: 18px; }
.quote-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.quote-form-actions .inventory-count { flex: 1; }
.quote-error { color: #b42318; font-size: 13px; margin-top: 12px; white-space: pre-wrap; }
.quote-dialog { position: fixed; inset: 0; margin: auto; box-sizing: border-box; width: min(1050px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); border: 1px solid #e6e8ee; border-radius: 14px; padding: 0; color: #242933; font: inherit; }
.quote-dialog::backdrop { background: rgba(0,0,0,.4); }
.quote-detail-body { padding: 20px; }
.quote-detail-meta { line-height: 1.9; color: #626b7c; margin-bottom: 16px; overflow-wrap: anywhere; }
.quote-detail-table { min-width: 1280px; }
.quote-detail-table td { white-space: normal; overflow-wrap: anywhere; }
.quote-detail-notes { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.7; margin-top: 18px; }
.quote-detail-actions { display: flex; justify-content: flex-end; gap: 16px; align-items: center; padding: 16px 20px; border-top: 1px solid #e6e8ee; font-size: 12px; }
.quote-detail-actions [role=status] { color: #626b7c; }
.quote-row-actions { display: flex; gap: 8px; }
@media (max-width: 760px) {
    #manualQuotePanel .quote-customer-filter { flex: 1 1 100%; width: 100%; min-width: 0; }
    .quote-header-fields, .quote-line-fields { grid-template-columns: 1fr 1fr; }
    .quote-price-columns { grid-template-columns: 1fr; gap: 14px; }
    .quote-line-fields .quote-field { grid-column: auto; }
    .quote-customer-field, .quote-line-fields .quote-field-productModel, .quote-line-fields .quote-field-packageOutline, .quote-line-fields .quote-field-unitPrice { grid-column: 1 / -1; }
    .quote-form { padding: 14px; }
    .quote-form-actions .inventory-count { flex-basis: 100%; }
    .quote-dialog { width: calc(100vw - 20px); }
    .quote-detail-table { min-width: 0; width: 100%; }
    .quote-dialog .inventory-table-scroll { overflow-x: hidden; }
    .quote-detail-body { padding: 14px; }
}
@media (max-width: 420px) { .quote-line-fields { grid-template-columns: 1fr; } }

/* Production quote-only shell. */
#pricesView .erp-price-secondary { display:block; color:var(--text-muted); font-size:12px; margin-top:4px; }
#pricesView .shipment-main-search { min-width:0 !important; }
