/* Customer quoting presentation, shared by the standard and compatibility URLs. */
.customer-quote-preview :is(.preview-quote-primary, .preview-actions > .btn-group) {
    display: inline-flex !important; flex-direction: row !important; width: auto !important; gap: 0 !important;
}
.customer-quote-preview .preview-quote-primary { flex-shrink: 0; }
.customer-quote-preview :is(.preview-quote-primary, .preview-actions > .btn-group) > .btn {
    width: auto !important; min-width: 0 !important; margin-right: 0 !important; white-space: nowrap;
}
.customer-quote-preview .preview-quote-primary > .dropdown-toggle-split { padding: 8px 10px !important; }
.customer-quote-preview .summary-bar {
    display: grid; grid-template-columns: repeat(5, minmax(100px, 1fr)); gap: 16px 24px;
    background: transparent; border: 0; border-radius: 0; padding: 0 0 18px; margin-bottom: 16px !important;
    border-bottom: 1px solid #dfe4eb;
}
.customer-quote-preview .summary-item-compact label { color: #687586; font-size: 13px; font-weight: 500; }
.customer-quote-preview .summary-item-compact .value { color: #202c3c; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.customer-quote-preview #totalQuote { color: #2f7c46; }
.customer-quote-preview .preview-actions { margin-left: auto; }
.customer-quote-preview .preview-actions :is(label, select) { font-size: 14px; }
.customer-quote-preview .preview-actions select { border-color: #dce3eb; border-radius: 7px; }
.customer-quote-preview .preview-actions > .preview-save {
    color: #2f7c46 !important; background: #e4f2e8 !important; border: 1px solid #c6e4ce !important;
    animation: none !important;
}
.customer-quote-preview .preview-actions > .preview-save:is(:hover, :focus-visible) { background: #d4eadb !important; }
.customer-quote-preview .preview-actions > .preview-save.btn-warning { border-color: #2f7c46 !important; }
.customer-quote-preview .quote-table-container { border: 0; max-height: 65vh; position: static; }
.customer-quote-preview .quote-table.sx-table { table-layout: auto; }
.customer-quote-preview .quote-table.sx-table > tbody > .quote-row { font-style: normal; color: #344054; }
.customer-quote-preview .quote-table.sx-table > tbody > .quote-row > td {
    vertical-align: top; padding: 10px 12px !important;
    background: var(--sx-cell-bg) !important;
}
/* These colours carry working status and minimum-value meaning. Keep the
   original priority: below minimum overrides quoted/progress; No Bid wins. */
.customer-quote-preview .quote-table.sx-table > tbody > .quoted-row { --sx-cell-bg: #d1e7dd; }
.customer-quote-preview .quote-table.sx-table > tbody > .in-progress-row { --sx-cell-bg: #e7f1ff; }
.customer-quote-preview .quote-table.sx-table > tbody > .below-minimum { --sx-cell-bg: #ffebee; }
.customer-quote-preview .quote-table.sx-table > tbody > .no-bid-row { --sx-cell-bg: #fbf2e6; }
.customer-quote-preview .quote-table.sx-table > tbody > .quote-row > td:nth-child(2) > .d-flex > span:first-child {
    color: #1d2939; font-size: 16px; font-weight: 650;
}
.customer-quote-preview .quote-table.sx-table .quoted-part-cell input[data-field="display_part_number"] {
    color: #1d2939 !important; font-size: 16px !important; font-weight: 600 !important;
}
.customer-quote-preview .quote-table.sx-table > tbody > .quote-row > td:first-child { padding-left: 12px !important; }
.customer-quote-preview .quote-row.group-line-child .line-number-wrap { padding-left: 12px; }
.customer-quote-preview .quote-table.sx-table > tbody > .quote-row > td:first-child::before { display: none; }
.customer-quote-preview .quote-table.sx-table .read-only { color: #475467; }
.customer-quote-preview .quote-table.sx-table :is(th, td).sx-pin-start:first-child { left: 0; }
.customer-quote-preview .quote-table.sx-table :is(th, td).sx-pin-start:nth-child(2) { left: var(--qp-pin-part, 96px); }
.customer-quote-preview .quote-table.sx-table :is(th, td).sticky-right-0 { right: 0; }
.customer-quote-preview .quote-table.sx-table :is(th, td).sticky-right-1 { right: var(--qp-pin-total, 140px); }
.customer-quote-preview .quote-table.sx-table :is(th, td).sticky-right-2 { right: calc(var(--qp-pin-total, 140px) + var(--qp-pin-target, 0px)); }
.customer-quote-preview .quote-table.sx-table > thead > tr > th:is(.sticky-right-0, .sticky-right-1, .sticky-right-2, .sx-pin-start) { z-index: 7 !important; }
.customer-quote-preview .quote-table.sx-table > tbody > tr > td:is(.sticky-right-0, .sticky-right-1, .sticky-right-2) { z-index: 2; }
.customer-quote-preview .quote-table.sx-table > tbody > tr > td.sx-pin-start { z-index: 3; }
.customer-quote-preview .quote-table.sx-table :is(th, td).quote-price-separator { border-left: 1px solid #d0d5dd !important; }
.customer-quote-preview .quote-table.sx-table > thead > tr > th:is(.quote-price-header, .sticky-right-0) { color: #2f7c46 !important; }
.customer-quote-preview .quote-table.sx-table .quote-price-cell input {
    color: #2f7c46 !important; background: #f4f9f5 !important; border: 1px solid #c6e4ce !important;
    font-size: 15px !important; font-weight: 600 !important;
}
.customer-quote-preview .quote-table.sx-table .quote-price-cell input:focus { background: #fff !important; box-shadow: 0 0 0 3px #2f7c461a !important; }
.customer-quote-preview .quote-table.sx-table .line-total-quote-cell { color: #2f7c46; font-weight: 600; }
.customer-quote-preview .quote-table.sx-table .quote-price-cell .quote-delta-indicator { height: 2px; }
.customer-quote-preview .quote-table.sx-table .quote-row.below-minimum .quote-price-cell input { border-color: #d99b96 !important; }
.customer-quote-preview .quote-table.sx-table input.changed-input { background: #eff4fb !important; border-color: #93b4d9 !important; }
.customer-quote-preview .quote-table.sx-table .form-control:disabled { opacity: .7; }
.customer-quote-preview .quote-table.sx-table .status-pill { border: 0; font-size: 13px; font-weight: 500; }
.customer-quote-preview .quote-table.sx-table .status-created { background: #f2f4f7; color: #667085; }
.customer-quote-preview .quote-table.sx-table .status-no-bid { background: #fbf2e6; color: #916127; }
.customer-quote-preview .quote-table.sx-table .status-quoted { background: #edf6ef; color: var(--control-ink); }
.customer-quote-preview .quote-table.sx-table .status-in-progress { background: #eff4fb; color: #35639c; }
.customer-quote-preview .quote-table.sx-table :is(.calc-pill, .use-supplier-pn-btn) {
    align-self: flex-end; width: fit-content; border: 0; background: #edf6ef; color: var(--control-ink);
    font: 500 13px/1.5 Inter, system-ui, sans-serif; border-radius: 6px; padding: 3px 7px;
    text-transform: none; white-space: nowrap;
}
.customer-quote-preview .quote-table.sx-table .calc-pill-danger { background: transparent; color: #667085; }
.customer-quote-preview .quote-table.sx-table :is(.calc-pill, .use-supplier-pn-btn):is(:hover, :focus-visible) { background: #d4eadb; color: var(--control-ink); }
.customer-quote-preview .quote-table.sx-table .calc-pill-danger:is(:hover, :focus-visible) { color: #b42318; background: #fef3f2; }
.customer-quote-preview .quote-table.sx-table .supplier-offer-count {
    border: 0; background: #e4f2e8; color: var(--control-ink); font-size: 13px; font-weight: 600;
    flex-shrink: 0; width: 30px; height: 30px;
}
.customer-quote-preview .quote-table.sx-table .supplier-offer-count-other { color: #35639c; background: #eff4fb; }
.customer-quote-preview .quote-table.sx-table .supplier-offer-count:is(:hover, :focus-visible) { background: #d4eadb; color: var(--control-ink); }
.customer-quote-preview .quote-table.sx-table .sx-icon-btn { color: #35639c !important; }
.customer-quote-preview .quote-table.sx-table .chosen-supplier-name { white-space: normal; min-width: 100px; max-width: 220px; }
.customer-quote-preview .quote-table.sx-table :is(.supplier-diff-note, .supplier-value-note, .part-number-meta) { font-size: 13px; font-style: normal; color: #687586; }
.customer-quote-preview .quote-table.sx-table .supplier-diff-note { flex-wrap: wrap; white-space: normal; max-width: 250px; }
.customer-quote-preview .quote-table.sx-table > tbody > .detail-row { --sx-cell-bg: #f8fafc; }
.customer-quote-preview .quote-table.sx-table > tbody > .detail-row > td { padding: 16px !important; }
.customer-quote-preview .detail-content { gap: 16px 24px; }
.customer-quote-preview .detail-field label { font-size: 13px; font-weight: 500; }
.customer-quote-preview .detail-field .form-control { border-color: #dce3eb !important; background: #fff; }
.customer-quote-preview .internal-notes-display { height: auto !important; }
.customer-quote-preview .alert-info { border: 0; background: #eff4fb; color: #475467; font-size: 14px; }
.customer-quote-preview :is(a, button, input, select, textarea):focus-visible { outline: 2px solid #547eae; outline-offset: 3px; }
@media (min-width: 1500px) { .customer-quote-preview .summary-bar { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
@media (max-width: 900px) {
    .customer-quote-preview .quote-table.sx-table :is(th, td):is(.sticky-right-0, .sticky-right-1, .sticky-right-2) { position: static !important; }
    .customer-quote-preview .summary-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .customer-quote-preview .preview-heading { flex-wrap: wrap; gap: 16px; }
    .customer-quote-preview .preview-heading .card-title { font-size: 26px !important; }
    .customer-quote-preview .preview-tabs { flex-wrap: wrap; gap: 20px; }
    .customer-quote-preview .preview-quote > .card-header { padding: 12px !important; }
    .customer-quote-preview .summary-item-compact .value { font-size: 17px; }
    .customer-quote-preview .quote-table.sx-table :is(th, td).sx-pin-start { position: static !important; }
    .customer-quote-preview .detail-field.notes-field { min-width: 220px; }
}
