/* ERP financial tables: compact controls, restrained summary strip, native tabs. */
#financeOverview, #financeCustomerOrders { --fo-blue:#1677ff; --fo-border:#e4e7ec; --fo-muted:#667085; --fo-soft:#f8fafc; }
#financeOverview [data-fo-main], #financeCustomerOrders .fo-customer-page { padding:12px; background:#fff; border:1px solid var(--fo-border); border-radius:4px; }
#financeOverview .fo-heading, #financeCustomerOrders .fo-heading, .fo-dialog .fo-subhead { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
#financeOverview .fo-heading > strong, #financeCustomerOrders .fo-heading strong { font-size:14px; color:#344054; }
#financeCustomerOrders .fo-heading p { margin:4px 0 0; }
#financeOverview h3 { margin:0 0 6px; font-size:17px; }
#financeOverview .fo-heading p, .fo-dialog .fo-subhead p { margin:0; color:#667085; font-size:13px; line-height:1.6; }
#financeOverview .fo-filter { display:flex; flex-wrap:wrap; align-items:flex-end; gap:8px; margin-bottom:6px; }
#financeOverview .fo-filter > label { min-width:130px; flex:0 1 145px; font-size:12px; }
#financeOverview .fo-filter input:not([type=checkbox]), #financeOverview .fo-filter select { height:32px; padding:5px 9px; font-size:13px; }
#financeOverview .fo-filter > .fo-keyword { flex:1 1 220px; max-width:360px; }
#financeOverview .fo-filter .fo-check { flex:0 0 auto; min-width:0; margin-bottom:9px; }
#financeOverview .fo-actions, #financeCustomerOrders .fo-actions, .fo-dialog .fo-actions { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
#financeOverview .fo-heading > button, #financeOverview .fo-actions button, #financeCustomerOrders .fo-actions button { padding:6px 10px; font-size:12px; min-height:30px; white-space:nowrap; }
#financeOverview .fo-explainer { margin:5px 0 8px; color:#667085; font-size:12px; line-height:1.6; }
#financeOverview .fo-explainer summary { cursor:pointer; width:fit-content; }
#financeOverview .fo-explainer p { margin:5px 0 0; text-wrap:pretty; }
#financeOverview .fo-policy, .fo-dialog .fo-policy { padding:10px 12px; border:1px solid #d8e7fb; background:#f8fbff; border-radius:6px; color:#475467; font-size:12px; line-height:1.7; margin:0 0 14px; text-wrap:pretty; }
#financeOverview .fo-metrics { display:grid; grid-template-columns:repeat(7,minmax(115px,1fr)); gap:0; margin:9px 0 12px; padding:9px 0; border:1px solid #e4e7ec; border-radius:3px; background:#fafbfc; }
#financeOverview .fo-metric { min-width:0; padding:0 12px; border-left:1px solid #e4e7ec; }
#financeOverview .fo-metric:first-child { border-left:0; }
#financeOverview .fo-metric > span { display:block; color:#667085; font-size:12px; line-height:1.5; }
#financeOverview .fo-metric > strong { display:block; color:#344054; font-size:16px; line-height:1.5; margin-top:3px; overflow-wrap:anywhere; white-space:normal; }
#financeOverview .fo-metric-unpaid > strong { color:#b42318; }
#financeOverview .fo-list-head { display:flex; gap:10px; align-items:baseline; justify-content:space-between; margin:8px 0; }
.fo-muted { color:#667085; font-size:12px; line-height:1.7; }
.fo-table-wrap { overflow-x:auto; width:100%; }
.fo-table { min-width:680px; margin:0; background:#fff; border:1px solid #e4e7ec; border-collapse:separate; border-spacing:0; }
.fo-customer-table { min-width:1390px; }
.fo-order-table { min-width:1400px; }
.fo-invoice-table { min-width:1020px; }
.fo-candidate-table { min-width:820px; }
.fo-allocation-table { min-width:660px; }
.fo-bulk-preview-table { min-width:520px; }
#financeCustomerOrders .fo-bulk-bar { display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; padding:8px 0; margin:0 0 8px; border-top:1px solid #eef2f6; border-bottom:1px solid #eef2f6; }
#financeCustomerOrders .fo-bulk-bar .fo-check { font-size:12px; white-space:nowrap; }
#financeCustomerOrders .fo-bulk-bar .fo-actions { margin-left:auto; }
#financeCustomerOrders .fo-bulk-bar [data-fo-bulk-fallback] { flex-basis:100%; }
#financeCustomerOrders .fo-order-link { background:transparent; border:0; color:#175cd3; padding:0; font:inherit; font-weight:600; text-align:left; }
#financeCustomerOrders .fo-order-link:hover { text-decoration:underline; }
.fo-dialog[data-kind=order] { width:min(1440px,calc(100vw - 40px)); color:#344054; }
.fo-dialog[data-kind=order] .fo-dialog-shell { padding:16px 20px; }
.fo-dialog[data-kind=order] .fo-dialog-head { margin-bottom:12px; padding-bottom:10px; }
.fo-dialog[data-kind=order] .fo-dialog-head h3 { font-size:16px; margin:0; }
.fo-dialog[data-kind=order] .fo-subhead h4 { font-size:19px; margin:0 0 4px; }
.fo-dialog[data-kind=order] h4 { margin:16px 0 8px; }
.fo-dialog[data-kind=order] .fo-order-facts { display:flex; flex-wrap:wrap; gap:0; margin:12px 0 10px; padding:9px 0; border:1px solid #e4e7ec; border-radius:3px; background:#fafbfc; }
.fo-dialog[data-kind=order] .fo-order-facts > div { flex:1 1 130px; border:0; border-left:1px solid #e4e7ec; background:transparent; border-radius:0; padding:0 12px; }
.fo-dialog[data-kind=order] .fo-order-facts > div:first-child { border-left:0; }
.fo-dialog[data-kind=order] .fo-order-facts span { font-size:12px; margin-bottom:4px; }
.fo-dialog[data-kind=order] .fo-order-facts strong { font-size:14px; }
.fo-detail-items { min-width:1370px; }
.fo-detail-items td, .fo-detail-items th { padding:7px 9px; font-size:12px; }
.fo-dialog .fo-item-totals { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px 20px; padding:9px 0; color:#475467; font-size:12px; font-variant-numeric:tabular-nums; }
.fo-dialog .fo-item-totals > span:first-child { margin-right:auto; }
.fo-dialog .fo-detail-note { color:#667085; padding:7px 9px; margin:5px 0; border:1px solid #e4e7ec; border-radius:3px; background:#fafbfc; font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.fo-dialog .fo-section-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:0 0 10px; }
.fo-dialog .fo-single-receipt { border:1px solid #d0d5dd; padding:12px; border-radius:4px; margin:10px 0 16px; background:#fff; }
.fo-dialog .fo-single-receipt .fo-receipt-grid { grid-template-columns:repeat(3,minmax(150px,1fr)); gap:10px; margin-bottom:10px; }
.fo-dialog .fo-single-receipt .fo-confirm { margin-top:9px; padding:8px 10px; background:#fafbfc; border-color:#e4e7ec; }
.fo-dialog .fo-single-receipt .dialog-actions { margin-top:10px; }
.fo-dialog .fo-single-receipt textarea { min-height:60px; font-size:13px; }
.fo-dialog .fo-single-receipt input:not([type=checkbox]) { min-height:32px; }
.fo-table .fo-select-cell { width:36px; text-align:center; }
.fo-table .fo-select-cell input { width:16px; height:16px; vertical-align:middle; }
.fo-dialog .fo-bulk-total { margin:9px 0 16px; text-align:right; color:#344054; font-size:13px; font-variant-numeric:tabular-nums; }
.fo-table td { vertical-align:middle; padding:8px 10px; border-bottom:1px solid #eef2f6; }
.fo-table th { white-space:nowrap; padding:9px 10px; background:#f8fafc; border-bottom:1px solid #e4e7ec; }
.fo-table tbody tr:last-child td { border-bottom:0; }
.fo-table tbody tr:hover td { background:#f8fbff; }
.fo-table small { display:block; margin-top:2px; color:#667085; line-height:1.5; font-size:11px; }
.fo-table td button { white-space:nowrap; padding:5px 8px; font-size:12px; margin:0 3px 0 0; }
#financeOverview .fo-sort { display:inline-flex; align-items:center; justify-content:flex-end; gap:5px; width:100%; padding:0; color:inherit; background:transparent; border:0; border-radius:2px; font:inherit; font-weight:inherit; cursor:pointer; }
#financeOverview .fo-sort > span { color:#98a2b3; font-size:12px; }
#financeOverview th[aria-sort=ascending] .fo-sort, #financeOverview th[aria-sort=descending] .fo-sort { color:#175cd3; }
#financeOverview th[aria-sort=ascending] .fo-sort > span, #financeOverview th[aria-sort=descending] .fo-sort > span { color:#175cd3; }
#financeOverview .fo-sort:hover { color:#175cd3; }
#financeOverview .fo-customer-table th:first-child, #financeOverview .fo-customer-table td:first-child { width:220px; min-width:155px; max-width:260px; white-space:normal; overflow-wrap:anywhere; position:sticky; left:0; background:#fff; z-index:1; }
#financeOverview .fo-customer-table td:first-child > strong { display:block; max-width:240px; white-space:normal; overflow-wrap:anywhere; }
#financeOverview .fo-customer-table th:last-child, #financeOverview .fo-customer-table td:last-child { position:sticky; right:0; background:#fff; z-index:1; }
#financeOverview .fo-customer-table th:first-child, #financeOverview .fo-customer-table th:last-child { background:#f8fafc; z-index:2; }
.fo-table .fo-wrap { min-width:150px; max-width:300px; white-space:normal; overflow-wrap:anywhere; }
.fo-money { font-variant-numeric:tabular-nums; text-align:right; white-space:nowrap; }
.fo-table-note { margin:7px 0; }
.fo-pager { display:flex; gap:7px; justify-content:flex-end; align-items:center; margin:9px 0 0; font-size:12px; color:#667085; flex-wrap:wrap; }
.fo-pager button { padding:6px 9px; font-size:12px; }
.fo-empty { padding:28px 14px !important; text-align:center; color:#667085; font-size:13px; line-height:1.7; }
.fo-error { margin:0 0 12px; padding:10px 12px; border:1px solid #fecdca; border-radius:6px; background:#fff8f7; color:#b42318; font-size:13px; line-height:1.7; overflow-wrap:anywhere; }
.fo-legacy { margin:10px 0; padding:9px 12px; border-radius:6px; border:1px solid #fedf89; background:#fffaeb; color:#93370d; font-size:12px; line-height:1.7; }
.fo-badge { display:inline-block; margin:0 5px 4px 0; padding:3px 7px; border-radius:4px; font-size:12px; line-height:1.4; white-space:nowrap; }
.fo-state-pending { background:#f2f4f7; color:#475467; }
.fo-state-unbilled { background:#eff8ff; color:#175cd3; }
.fo-state-partial { background:#fffaeb; color:#93370d; }
.fo-state-full { background:#ecfdf3; color:#067647; }
.fo-state-no_invoice { background:#f2f4f7; color:#344054; }
.fo-state-anomaly { background:#fff1f0; color:#b42318; }
.fo-table td button.fo-anomaly-link { background:#fff1f0; color:#b42318; border:1px solid #fecdca; padding:3px 7px; font-size:12px; line-height:1.4; margin-bottom:4px; }
.fo-table td button.fo-anomaly-link:hover { background:#ffe4e1; border-color:#fda29b; }
.fo-table td button.fo-anomaly-link:focus-visible { outline:2px solid #1677ff; outline-offset:2px; }
.fo-table small.fo-anomaly-reason { min-width:160px; max-width:250px; white-space:normal; overflow-wrap:anywhere; color:#b42318; }
.fo-dialog .fo-order-anomaly { margin-top:4px; }
.fo-dialog .fo-order-anomaly > strong { display:block; margin-bottom:4px; }
.fo-dialog .fo-order-anomaly > p { margin:3px 0 0; white-space:pre-wrap; }
.fo-dialog .fo-cancelled-items { margin:0 0 14px; padding:9px 12px; border:1px solid #e4e7ec; border-radius:4px; background:#fafbfc; }
.fo-dialog .fo-cancelled-items > summary { cursor:pointer; color:#344054; font-size:13px; font-weight:600; line-height:1.7; }
.fo-dialog .fo-cancelled-items > summary:focus-visible { outline:2px solid #1677ff; outline-offset:3px; }
.fo-dialog .fo-cancelled-table { min-width:940px; }
.fo-dialog .fo-cancelled-table td, .fo-dialog .fo-cancelled-table th { padding:7px 9px; font-size:12px; }
.fo-dialog .fo-cancel-reason { white-space:pre-wrap; }
.fo-dialog .fo-cancelled-empty { margin:0 0 14px; }
.fo-receipt-review { border:1px solid #e4e7ec; background:#fafbfc; color:#475467; margin-top:4px; font-size:11px; }
.fo-receipt-review-confirmed { border-color:#d0e5d7; background:#f6fbf7; color:#356448; }
.fo-receipt-review-stale { border-color:#ead9b6; background:#fffbf2; color:#855b23; }
.fo-dialog .fo-no-receipt-form { border:1px solid #d0d5dd; border-radius:4px; background:#fff; padding:12px; margin:10px 0 16px; }
.fo-dialog .fo-no-receipt-form .fo-form-grid { margin-bottom:8px; gap:10px; }
.fo-dialog .fo-no-receipt-form textarea { min-height:60px; font-size:13px; }
.fo-dialog .fo-no-receipt-form .fo-confirm { background:#fafbfc; border-color:#e4e7ec; padding:8px 10px; margin-top:9px; }
.fo-dialog .fo-original-order { display:flex; gap:6px; align-items:center; }
.fo-dialog .fo-original-order input { min-width:0; flex:1; }
.fo-dialog .fo-original-order button { flex:0 0 auto; padding:6px 9px; font-size:12px; white-space:nowrap; }
.fo-dialog .fo-receipt-review-note { margin:6px 0; }
.fo-anomaly, .fo-table small.fo-anomaly { color:#b42318; }
.fo-dialog { width:min(1260px,calc(100vw - 40px)); max-height:90vh; overflow:auto; }
.fo-dialog .fo-dialog-shell { padding:20px; }
.fo-dialog .fo-dialog-head { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; margin-bottom:15px; padding-bottom:14px; border-bottom:1px solid #e4e7ec; }
.fo-dialog .fo-dialog-head h3 { margin:0 0 5px; font-size:18px; }
.fo-dialog .fo-dialog-head p { margin:0; color:#667085; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.fo-dialog .fo-dialog-head > button { flex:0 0 auto; }
.fo-dialog h4 { font-size:14px; margin:16px 0 10px; }
.fo-dialog .fo-subhead h4 { margin:0 0 5px; }
.fo-dialog .fo-order-facts { display:grid; grid-template-columns:repeat(7,minmax(115px,1fr)); gap:10px; margin-bottom:14px; }
.fo-dialog .fo-order-facts > div { background:#f8fafc; border:1px solid #e4e7ec; padding:10px 12px; border-radius:6px; min-width:0; }
.fo-dialog .fo-order-facts span { display:block; font-size:12px; color:#667085; margin-bottom:7px; }
.fo-dialog .fo-order-facts strong { display:block; font-size:15px; overflow-wrap:anywhere; white-space:normal; }
.fo-dialog .fo-order-actions { margin:12px 0; }
.fo-dialog .fo-form-grid { display:grid; grid-template-columns:repeat(2,minmax(150px,1fr)); gap:12px; margin-bottom:16px; }
.fo-dialog textarea { resize:vertical; min-height:84px; width:100%; border:1px solid #d0d5dd; border-radius:6px; padding:9px 10px; font:inherit; }
.fo-dialog .fo-candidate-search { display:flex; gap:8px; align-items:flex-end; margin-bottom:7px; }
.fo-dialog .fo-candidate-search label { flex:1 1 auto; }
.fo-dialog .fo-candidate-search button { white-space:nowrap; }
.fo-dialog [data-fo-candidate-status] { margin-bottom:8px; }
.fo-dialog .fo-candidate-table input[type=checkbox] { width:17px; height:17px; }
.fo-dialog .fo-allocation-table input { width:210px; font-variant-numeric:tabular-nums; }
.fo-dialog .fo-allocation-total { margin:12px 0; text-align:right; padding:11px 12px; background:#f8fafc; border:1px solid #e4e7ec; border-radius:6px; font-variant-numeric:tabular-nums; font-size:13px; line-height:1.7; }
.fo-check { display:flex; gap:8px; align-items:center; font-size:13px; line-height:1.6; }
.fo-check > input { width:16px; height:16px; flex:0 0 auto; }
.fo-dialog .fo-confirm { margin:14px 0 0; align-items:flex-start; padding:12px; background:#f8fbff; border:1px solid #d8e7fb; border-radius:6px; }
.fo-dialog .fo-confirm > input { margin-top:2px; }
.fo-dialog .dialog-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:16px; }
#financeOverview button:disabled, #financeCustomerOrders button:disabled, .fo-dialog button:disabled { opacity:.5; cursor:not-allowed; }
#financeOverview button:focus-visible, #financeCustomerOrders button:focus-visible, .fo-dialog button:focus-visible, #financeOverview input:focus-visible, #financeCustomerOrders input:focus-visible, .fo-dialog input:focus-visible, .fo-dialog textarea:focus-visible, #financeOverview select:focus-visible, #financeOverview summary:focus-visible { outline:2px solid #91caff; outline-offset:2px; }
#salesInvoices .fo-legacy-readonly { display:flex; gap:16px; align-items:center; justify-content:space-between; margin-bottom:14px; padding:15px; background:#f8fbff; border:1px solid #d8e7fb; border-radius:6px; }
#salesInvoices .fo-legacy-readonly h3 { margin:0 0 6px; font-size:15px; }
#salesInvoices .fo-legacy-readonly p { margin:0; color:#667085; font-size:13px; line-height:1.7; }
#salesInvoices .fo-legacy-link { width:auto; flex:0 0 auto; white-space:nowrap; background:#eef2f7; color:#344054; margin:0; padding:9px 12px; text-align:center; }
@media(max-width:1250px) { #financeOverview .fo-metrics, .fo-dialog .fo-order-facts { grid-template-columns:repeat(3,minmax(140px,1fr)); } #financeOverview .fo-metric:nth-child(4) { border-left:0; } #financeOverview .fo-metric:nth-child(n+4) { margin-top:8px; } #financeCustomerOrders .fo-heading { align-items:flex-start; flex-wrap:wrap; } }
@media(max-width:750px) { #financeOverview .fo-metrics, .fo-dialog .fo-order-facts { grid-template-columns:repeat(2,minmax(130px,1fr)); } #financeOverview .fo-metric:nth-child(odd) { border-left:0; } #financeOverview .fo-metric:nth-child(even) { border-left:1px solid #e4e7ec; } #financeOverview .fo-metric:nth-child(n+3) { margin-top:8px; } #financeOverview .fo-list-head { flex-direction:column; gap:5px; } #financeOverview .fo-filter > .fo-keyword { max-width:none; } .fo-dialog { width:calc(100vw - 20px); } .fo-dialog .fo-dialog-shell { padding:14px; } .fo-dialog .fo-form-grid { grid-template-columns:1fr; } .fo-dialog .fo-subhead, #salesInvoices .fo-legacy-readonly { align-items:flex-start; flex-direction:column; } .fo-dialog .dialog-actions { flex-wrap:wrap; } }
@media(prefers-reduced-motion:reduce) { #financeOverview *, .fo-dialog * { transition:none !important; } }
@media(max-width:750px) { .fo-dialog .fo-single-receipt .fo-receipt-grid { grid-template-columns:1fr; } .fo-dialog .fo-section-heading { align-items:flex-start; flex-direction:column; gap:4px; } .fo-dialog[data-kind=order] { width:calc(100vw - 20px); } .fo-dialog[data-kind=order] .fo-dialog-shell { padding:12px; } .fo-dialog .fo-item-totals { justify-content:flex-start; } }
/* Merged bills extend the existing compact financial tables. */
#financeCustomerOrders .fo-merged-row td { background:#f4efff; border-bottom-color:#e5daf8; }
#financeCustomerOrders .fo-merged-row td:first-child { box-shadow:inset 4px 0 #8556b8; }
#financeCustomerOrders .fo-merged-row:hover td { background:#ebe1fa; }
#financeCustomerOrders .fo-merged-row .fo-order-link { color:#69419b; font-weight:700; }
.fo-merged-badge { display:table; margin-top:4px; padding:2px 6px; border:1px solid #d9c7ef; color:#60338d; background:#e9dcf8; font-size:11px; font-weight:600; }
.fo-merged-legend { display:flex; align-items:center; gap:7px; margin:8px 0; color:#69419b; font-size:12px; }
.fo-merged-legend::before { content:""; width:12px; height:12px; border:1px solid #d9c7ef; border-left:3px solid #8556b8; background:#f4efff; }
.fo-dialog .fo-split-note { padding:8px 10px; margin:10px 0; border-left:3px solid #8556b8; background:#f4efff; color:#60338d; line-height:1.6; }
.fo-dialog .fo-split-unavailable { margin:6px 0 12px; color:#667085; font-size:12px; line-height:1.6; }
.fo-dialog .fo-split-preview h4 { margin:14px 0 8px; }
.fo-dialog .fo-split-preview .fo-bulk-total { margin:7px 0 12px; }
.fo-dialog .fo-split-history { min-width:680px; }
.fo-dialog .fo-member-remove { white-space:nowrap; }
.fo-dialog .fo-merged-history-list { margin:12px 0; padding:10px 12px; background:#faf8fd; border:1px solid #e5daf8; border-radius:3px; }
.fo-dialog .fo-merged-history-list h4 { margin:0 0 7px; }
.fo-dialog .fo-merged-history-list p { margin:6px 0 0; }
.fo-dialog[data-kind=merged-bill] { width:min(1300px,calc(100vw - 40px)); }
.fo-dialog .fo-merged-facts { display:flex; flex-wrap:wrap; padding:10px 0; margin:10px 0 12px; border:1px solid #e4e7ec; border-radius:3px; background:#fafbfc; }
.fo-dialog .fo-merged-facts > div { flex:1 1 160px; padding:0 14px; border-left:1px solid #e4e7ec; }
.fo-dialog .fo-merged-facts > div:first-child { border-left:0; }
.fo-dialog .fo-merged-facts span { display:block; margin-bottom:4px; color:#667085; font-size:12px; }
.fo-dialog .fo-merged-facts strong { display:block; color:#344054; font-size:18px; }
.fo-dialog .fo-merged-facts > div:last-child strong { color:#b42318; }
.fo-dialog .fo-member-link { background:transparent; border:0; border-radius:2px; padding:0; color:#175cd3; font:inherit; font-weight:600; }
.fo-dialog .fo-member-link:hover { text-decoration:underline; }
.fo-merged-orders { min-width:760px; }
.fo-merged-allocation-table { min-width:660px; }
.fo-dialog .fo-merged-allocation-table input { width:170px; min-height:32px; font-variant-numeric:tabular-nums; text-align:right; }
.fo-dialog .fo-merged-receipt-form .fo-receipt-grid { grid-template-columns:repeat(3,minmax(150px,1fr)); }
.fo-dialog .fo-merged-receipt-form .fo-section-heading { margin-top:14px; }
.fo-dialog .fo-merged-receipt-form .fo-section-heading button { padding:5px 9px; font-size:12px; }
.fo-attachment-table { min-width:640px; }
.fo-dialog .fo-attachment-upload { display:flex; flex-wrap:wrap; align-items:flex-end; gap:8px 12px; padding:10px 0 0; text-align:left; }
.fo-dialog .fo-attachment-upload > label { flex:1 1 320px; min-width:0; font-size:12px; }
.fo-dialog .fo-attachment-upload input[type=file] { display:block; width:100%; min-height:34px; padding:5px; margin-top:4px; font-size:12px; }
.fo-dialog .fo-attachment-upload > p { flex:1 0 100%; margin:0; overflow-wrap:anywhere; }
.fo-dialog .fo-attachment-upload button { padding:6px 10px; font-size:12px; }
@media(max-width:750px) { .fo-dialog[data-kind=merged-bill] { width:calc(100vw - 20px); } .fo-dialog .fo-merged-receipt-form .fo-receipt-grid { grid-template-columns:1fr; } .fo-dialog .fo-merged-facts { display:grid; grid-template-columns:1fr; gap:9px; } .fo-dialog .fo-merged-facts > div { border-left:0; } .fo-dialog .fo-merged-facts strong { text-align:left; } }

/* Customer billing sections retain the existing dense finance vocabulary. */
#financeCustomerOrders .fo-billing-section { margin-top:14px; padding-top:10px; border-top:1px solid #e4e7ec; }
#financeCustomerOrders .fo-billing-section .fo-list-head { margin:0 0 8px; }
#financeCustomerOrders .fo-billing-section .fo-list-head > strong { color:#344054; font-size:14px; }
#financeCustomerOrders .fo-billing-merged .fo-list-head > strong { color:#69419b; }

.fo-dialog .fo-partial-review { border:1px solid #e4e7ec; border-radius:4px; padding:10px 12px; margin:10px 0 14px; background:#fff; }
.fo-dialog .fo-partial-review .fo-section-heading { margin-bottom:5px; }
.fo-dialog .fo-partial-review h4 { margin:0; }
.fo-dialog .fo-partial-review > .fo-muted { margin:5px 0 9px; }
.fo-dialog .fo-partial-review textarea { min-height:64px; font-size:13px; }
.fo-dialog .fo-review-history-wrap { margin-top:10px; color:#475467; font-size:12px; }
.fo-dialog .fo-review-history-wrap > summary { cursor:pointer; width:fit-content; padding:4px 0; }
.fo-dialog .fo-review-history { min-width:680px; margin-top:6px; }
.fo-review-badge { font-size:11px; }

/* 251: query preparation and bounded customer identity lookup. */
#financeOverview .fo-filter > .fo-customer-control { position:relative; flex:1 1 300px; min-width:250px; max-width:460px; font-size:12px; }
#financeOverview .fo-customer-control > label { display:block; margin-bottom:4px; }
#financeOverview .fo-customer-input { display:flex; align-items:center; gap:6px; }
#financeOverview .fo-customer-input input { flex:1; min-width:0; }
#financeOverview .fo-customer-input button { flex:0 0 auto; padding:6px 9px; font-size:12px; white-space:nowrap; }
#financeOverview .fo-customer-control > small { display:block; margin-top:3px; line-height:1.5; }
#financeOverview .fo-customer-suggestions { position:absolute; top:100%; left:0; right:0; z-index:5; max-height:300px; overflow:auto; padding:5px; background:#fff; border:1px solid #d0d5dd; border-radius:4px; }
#financeOverview .fo-customer-option { display:block; width:100%; padding:7px 8px; margin:0; border:0; border-radius:2px; background:#fff; color:#344054; text-align:left; white-space:normal; overflow-wrap:anywhere; font-size:12px; }
#financeOverview .fo-customer-option:hover, #financeOverview .fo-customer-option:focus-visible { background:#f8fbff; }
#financeOverview .fo-customer-option strong, #financeOverview .fo-customer-option small { display:block; line-height:1.6; }
#financeOverview .fo-customer-option small { color:#667085; font-size:11px; }
#financeOverview .fo-customer-suggestions > p { margin:4px 8px; }
#financeOverview .fo-query-empty strong, #financeOverview .fo-query-empty span { display:block; }
#financeOverview .fo-query-empty strong { margin-bottom:5px; color:#475467; font-size:14px; }
.fo-dialog[data-kind=customer-select] { width:min(820px,calc(100vw - 40px)); }
.fo-customer-options-table { min-width:590px; }
@media(max-width:750px) { #financeOverview .fo-filter > .fo-customer-control { flex-basis:100%; max-width:none; min-width:0; } }

/* 252: align the filter controls; keep explanatory text outside their row. */
#financeOverview .fo-filter { display:block; margin-bottom:8px; }
#financeOverview .fo-filter-fields { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px 8px; }
#financeOverview .fo-filter-fields > label { display:grid; gap:6px; min-width:130px; flex:0 1 145px; font-size:12px; line-height:18px; }
#financeOverview .fo-filter-fields > .fo-customer-control { position:relative; flex:1 1 300px; min-width:260px; max-width:400px; font-size:12px; }
#financeOverview .fo-customer-control > label { display:block; margin:0 0 6px; font-size:12px; line-height:18px; }
#financeOverview .fo-filter-fields input:not([type=checkbox]), #financeOverview .fo-filter-fields select { height:32px; min-height:32px; }
#financeOverview .fo-customer-input button { height:32px; min-height:32px; }
#financeOverview .fo-filter-end { display:flex; flex:0 0 auto; align-items:center; align-self:flex-end; flex-wrap:nowrap; gap:12px; min-height:32px; }
#financeOverview .fo-filter-end .fo-check { display:flex; flex:0 0 auto; align-items:center; gap:6px; min-width:0; height:32px; margin:0; white-space:nowrap; font-size:12px; line-height:18px; }
#financeOverview .fo-filter-end .fo-check input { margin:0; }
#financeOverview .fo-filter-end .fo-actions { flex-wrap:nowrap; }
#financeOverview .fo-filter-end .fo-actions button { height:32px; min-height:32px; }
#financeOverview .fo-filter-note { display:block; margin:6px 0 0; line-height:18px; overflow-wrap:anywhere; }
#financeOverview .fo-query-empty { display:flex; align-items:baseline; flex-wrap:wrap; gap:5px 12px; margin-top:6px; padding:12px 14px !important; border:1px dashed #e4e7ec; border-radius:4px; background:#fafbfc; text-align:left; }
#financeOverview .fo-query-empty strong { margin:0; font-size:13px; line-height:20px; white-space:nowrap; }
#financeOverview .fo-query-empty span { font-size:12px; line-height:20px; }
@media(max-width:900px) {
  #financeOverview .fo-filter-fields > .fo-customer-control { flex-basis:280px; max-width:none; min-width:240px; }
  #financeOverview .fo-filter-end { flex-basis:100%; justify-content:flex-start; }
}
@media(max-width:600px) {
  #financeOverview .fo-filter-fields > label { flex:1 1 130px; min-width:0; }
  #financeOverview .fo-filter-fields > .fo-customer-control { flex-basis:100%; min-width:0; max-width:none; }
  #financeOverview .fo-filter-end { flex-wrap:wrap; gap:4px 12px; }
}
