@media screen{
 :is(table thead th,[role=columnheader],.cart-grid-heading){background:#155e75!important;color:#fff!important;border-color:#0f4f63!important}
 thead th button{background:transparent!important;color:inherit!important;border:0!important;box-shadow:none!important}
 :is(button,a)[data-ui-action=nav]{background:#155e75!important;color:#fff!important;border-color:#155e75!important}
 :is(button,a)[data-ui-action=save]{background:#15803d!important;color:#fff!important;border-color:#15803d!important}
 :is(button,a)[data-ui-action=print]{background:#6d28d9!important;color:#fff!important;border-color:#6d28d9!important}
 :is(button,a)[data-ui-action=neutral]{background:#e8edf4!important;color:#334155!important;border-color:#d1dbe8!important;box-shadow:none!important}
 :is(button,a)[data-ui-action=nav]:is(.tab:not(.active),[role=tab][aria-selected=false],[data-settings-tab][aria-selected=false],[aria-pressed=false]){background:#e7f1fa!important;color:#075985!important;border-color:#c8dded!important}
 :is(button,a)[data-ui-action]:hover:not(:disabled){filter:brightness(.94)}
 :is(button,a)[data-ui-action]:focus-visible{outline:3px solid #38bdf8;outline-offset:2px}
 button[data-ui-action]:disabled{background:#e2e8f0!important;color:#64748b!important;border-color:#cbd5e1!important;filter:none;box-shadow:none!important;cursor:not-allowed}
 :is(input[type=checkbox],input[type=radio]){accent-color:#0369a1}
 :is(#quotationStatus,#customerPaymentReceiptFormat,#invoicePrintFormat,#opsReportPrintFormat,#reportExportPrintFormat,#serviceProductType,#countMode){text-transform:capitalize!important}
}
#customerPickerDialog{width:min(1080px,calc(100vw - 24px));max-width:1080px;max-height:calc(100dvh - 24px);padding:0;overflow:hidden}
#customerPickerDialog .dialog-card{box-sizing:border-box;width:100%;min-width:0;padding:16px;max-height:calc(100dvh - 24px);display:flex;flex-direction:column;gap:10px;overflow:hidden}
#customerPickerDialog .dialog-head{margin:0}#customerPickerDialog h2{font-size:21px;margin:0}#customerPickerDialog .icon-btn{width:34px;height:34px;min-width:34px;padding:0}
#customerPickerSearchForm{display:flex;gap:8px;align-items:end}#customerPickerSearchForm label{display:grid;gap:4px;font-size:12px;flex:1;min-width:0}#customerPickerSearch{height:38px;min-height:38px;padding:8px 10px;width:100%;box-sizing:border-box}
#customerPickerDialog button{min-height:34px;padding:7px 12px;font-size:12px}#customerPickerStatus{margin:0;font-size:12px;color:#526b7a}
.customer-picker-grid{overflow:auto;min-height:100px;max-height:52dvh;border:1px solid #d7e3ec;border-radius:8px}
#customerPickerDialog table{min-width:760px;width:100%;border-collapse:collapse;table-layout:fixed}#customerPickerDialog th,#customerPickerDialog td{padding:9px 10px;font-size:12px;overflow-wrap:anywhere;text-align:left;border-bottom:1px solid #e0e8ef}#customerPickerDialog th{position:sticky;top:0;z-index:1;background:#155e75;color:white}#customerPickerDialog th:first-child{width:105px}#customerPickerDialog th:nth-child(2){width:23%}#customerPickerDialog th:nth-child(3){width:130px}#customerPickerDialog th:last-child{width:86px;right:0;z-index:2}#customerPickerDialog td:last-child{position:sticky;right:0;background:white}#customerPickerDialog th button{width:100%;padding:0;text-align:left}#customerPickerDialog tbody tr:hover,#customerPickerDialog tbody tr:focus-within{background:#edf7fc}#customerPickerDialog tbody tr:hover td:last-child{background:#edf7fc}
.customer-picker-footer{display:flex;gap:8px;justify-content:flex-end;flex:none}.customer-picker-footer small{margin-right:auto;align-self:center;color:#526b7a;font-size:12px}
@media(max-width:540px){#customerPickerDialog .dialog-card{padding:12px}#customerPickerDialog h2{font-size:18px}#customerPickerSearchForm{flex-wrap:wrap}#customerPickerSearchForm label{flex-basis:100%}.customer-picker-footer{flex-wrap:wrap}.customer-picker-footer small{flex-basis:100%}}

#customerPickerDialog .customer-picker-select{background:#0369a1;color:#fff;border-color:#0369a1}#customerPickerDialog .customer-picker-select:disabled{background:#e2e8f0;color:#64748b;border-color:#cbd5e1}

@media screen{thead th :is(span,strong,small,a),.cart-grid-heading>*{color:inherit!important}}

/* Consistent heading bars across sales, stock, reports, setup and popup forms. */
@media screen{
 :is(.section-header,.dialog-head,.admin-heading,.workspace-page-heading,.workspace-drawer-heading,.master-section-heading,.master-intro){background:#155e75!important;color:#fff!important;border-color:#0f4f63!important}
 :is(.section-header,.dialog-head,.admin-heading,.workspace-page-heading,.workspace-drawer-heading,.master-section-heading,.master-intro) :is(h1,h2,h3,.eyebrow,.workspace-eyebrow){color:#fff!important}
 :is(.section-header,.dialog-head,.admin-heading,.workspace-page-heading,.workspace-drawer-heading,.master-section-heading,.master-intro) :is(p,.muted){color:#e0f2f7!important}
 :is(.dialog-head,.admin-heading,.workspace-page-heading,.master-section-heading,.master-intro){padding:10px 12px;border-radius:7px;gap:10px}
 :is(.admin-card,.suite-card)>h2{background:#155e75!important;color:#fff!important;padding:10px 12px;border-radius:7px;line-height:1.3}
 .stocktake-shell>.section-header{padding:10px 12px}
 .stocktake-shell>.section-header>a{color:#fff;text-decoration:underline}
}

/* Match the existing solid blue controls to the shared dark teal action colour. */
@media screen{:is(.admin-tabs button[aria-selected=true],.master-form-menu button[aria-pressed=true],.view-switch button[aria-pressed=true],#catalogDisplayMenu button[aria-pressed=true],#quantityKeypad [data-key=enter],#cartPriceKeypad [data-key=enter],#paymentKeypad [data-amount-key=done],#orderView .cart-panel #salesResumeBtn,#customerPaymentsView #customerPaymentFind button[type=submit],#customerPaymentsView #listCustomerPaymentInvoices,#dashboardView .report-filter-actions .primary):not(:disabled){background:#155e75!important;color:#fff!important;border-color:#155e75!important}}
/* Compact customer search, with full customer numbers visible in their own column. */
@media screen and (min-width:541px){
 #customerPickerDialog .dialog-card{padding:12px;gap:7px}
 #customerPickerDialog h2{font-size:18px}
 #customerPickerDialog .dialog-head .icon-btn{width:30px;height:30px;min-height:30px;min-width:30px;padding:0}
 #customerPickerDialog :is(th,td){padding:4px 8px;line-height:1.2}
 #customerPickerDialog th:first-child{width:170px}
 #customerPickerDialog th:nth-child(3){width:110px}
 #customerPickerDialog th:last-child{width:76px}
 #customerPickerDialog td:first-child{font-size:11px;line-height:1.15;word-break:break-all;font-variant-numeric:tabular-nums}
 #customerPickerDialog button{min-height:28px;padding:4px 9px;border-radius:6px;line-height:1.2}
 #customerPickerDialog th button{min-height:22px;padding:0}
 #customerPickerSearchForm #customerPickerSearch{min-height:32px;padding:5px 8px}
 #customerPickerDialog .customer-picker-grid{min-height:0;max-height:60dvh}
 #customerPickerDialog .customer-picker-footer small{font-size:11px}
}
