:root{--v076-navy:#17324d;--v076-green:#239a54;--v076-line:#d6e2dd;--v076-wash:#f5f9f7}
.main-panel>header{position:sticky;top:0;z-index:90;background:rgba(248,251,250,.97);box-shadow:0 1px 0 var(--v076-line),0 8px 20px rgba(23,50,77,.05)}
.notification-centre{position:relative}.notification-button{position:relative;width:40px;min-width:40px;padding:0;font-size:1rem}.notification-button b{position:absolute;top:-7px;right:-7px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border:2px solid #fff;border-radius:999px;background:#b13b45;color:#fff;font-size:10px}.notification-panel{position:absolute;top:calc(100% + 9px);right:0;z-index:150;width:min(430px,calc(100vw - 24px));max-height:min(650px,calc(100vh - 100px));overflow:auto;border:1px solid var(--v076-line);border-radius:14px;background:#fff;box-shadow:0 18px 55px rgba(20,43,61,.2)}.notification-panel-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border-bottom:1px solid var(--v076-line);background:#f8fbfa}.notification-panel-head>div{display:grid}.notification-panel-head small{color:var(--muted)}.notification-row{display:grid;grid-template-columns:10px 1fr;gap:9px;width:100%;padding:12px 14px;border:0;border-bottom:1px solid #e5ece8;border-radius:0;background:#fff;color:var(--v076-navy);text-align:left}.notification-row:hover,.notification-row:focus{background:#f2f8f4}.notification-row>span:last-child{display:grid;gap:3px}.notification-row small,.notification-row time{color:var(--muted);font-size:11px}.notification-dot{width:8px;height:8px;margin-top:5px;border-radius:50%;background:#239a54}.notification-row.is-read{opacity:.68}.notification-row.is-read .notification-dot{background:#c5d0cc}.notification-target{animation:notification-target-pulse 2.5s ease-out}@keyframes notification-target-pulse{0%,35%{box-shadow:0 0 0 4px rgba(35,154,84,.28);background:#eef9f1}100%{box-shadow:none}}
.sales-ledger-row .status{display:inline-flex;align-items:center;justify-content:center;min-width:112px;padding:6px 12px;border-radius:999px;border:0;font-weight:800}.sales-ledger-row .sales-status-outstanding{background:#b23e49;color:#fff}.sales-ledger-row .sales-status-part-paid{background:#f4d18b;color:#65420b}.sales-ledger-row .sales-status-paid{background:#23864c;color:#fff}.sales-ledger-row .sales-status-draft{background:#dce5ec;color:#29455f}.sales-ledger-row .status.danger:not(.sales-status-paid){box-shadow:0 0 0 2px #7f202b inset}
.customer-search-results{position:absolute;z-index:60;top:calc(100% - 2px);left:0;right:0;max-height:310px;overflow:auto;border:1px solid #aac2b5;border-radius:0 0 10px 10px;background:#fff;box-shadow:0 13px 28px rgba(22,57,40,.16)}.customer-request-search,.sales-customer-search{position:relative}.customer-search-results button{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:10px;width:100%;padding:9px 11px;border:0;border-bottom:1px solid #e5ece8;border-radius:0;background:#fff;color:var(--v076-navy);text-align:left}.customer-search-results button>span{display:grid}.customer-search-results button small{overflow-wrap:anywhere;color:var(--muted)}.customer-search-results button:hover,.customer-search-results button.active{background:#edf7f0}.customer-search-results>p{margin:0;padding:12px;color:var(--muted)}
#customerInvoiceRequestDialog{width:min(1180px,calc(100vw - 24px));border:1px solid #c9d9d1;border-radius:16px;background:#fff;box-shadow:0 22px 80px rgba(20,43,61,.25)}#customerInvoiceRequestDialog>form{display:flex;flex-direction:column;max-height:calc(100dvh - 8px);padding:0;overflow:auto}#customerInvoiceRequestDialog .dialog-heading{padding:11px 18px 9px;background:#f7fbf9}#customerInvoiceRequestDialog .dialog-heading h2{font-size:1.4rem}#customerInvoiceRequestDialog .dialog-heading p{margin-bottom:2px}#customerInvoiceRequestDialog .customer-request-layout{grid-template-areas:"customer customer customer customer customer coding coding coding coding coding coding coding" "lines lines lines lines lines lines lines lines lines lines lines lines" "files files files files files files files files files files files files";gap:9px;margin:9px 14px}#customerInvoiceRequestDialog .customer-request-customer-section{grid-area:customer}#customerInvoiceRequestDialog .customer-request-coding-section{grid-area:coding}#customerInvoiceRequestDialog .customer-request-panel{padding:9px 11px;border:1px solid var(--v076-line);border-radius:12px;background:#fbfdfc;box-shadow:none}#customerInvoiceRequestDialog .customer-request-coding-section .compact-form-grid{grid-template-columns:repeat(4,minmax(110px,1fr));gap:6px 8px}#customerInvoiceRequestDialog label{font-weight:700;color:#334840}#customerInvoiceRequestDialog input,#customerInvoiceRequestDialog select,#customerInvoiceRequestDialog textarea{min-height:35px;border-color:#c5d5cd;background:#fff}#customerInvoiceRequestDialog .customer-request-line{grid-template-columns:minmax(300px,3fr) 68px 100px 100px 76px 100px auto;gap:7px;padding:7px 10px}#customerInvoiceRequestDialog .customer-request-line textarea{height:36px;min-height:36px}#customerInvoiceRequestDialog .customer-request-totals{padding:7px 12px;background:#eff7f2}#customerInvoiceRequestDialog .customer-request-files-section{gap:5px 12px;padding-block:9px}#customerInvoiceRequestDialog .customer-request-files-section textarea{min-height:44px}#customerInvoiceRequestDialog .dialog-actions{margin-top:auto;padding:6px 14px;box-shadow:0 -4px 14px rgba(23,50,77,.06)}
.stage-selection-actions{position:relative}.stage-selection-warning{flex-basis:100%;color:#a22f3b;font-weight:700}.split-vat-control{display:flex;align-items:center;gap:5px}.split-vat-control input{min-width:0}.split-vat-reset{padding-inline:8px}.project-allocation-row label small{font-weight:400;color:var(--muted)}
.orders-folder-setting{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:16px}.orders-folder-setting>div:last-child{display:flex;align-items:center;gap:10px}.folder-connection-status{padding:7px 10px;border-radius:999px;background:#eef2f3;color:#596d75;font-weight:700}.folder-connection-status.connected{background:#dff4e6;color:#166b39}
.global-search-dialog{display:flex;flex-direction:column}.global-search-dialog .global-search-slot{min-height:0;overflow:hidden}.global-search-dialog .global-search-results{min-height:120px;max-height:calc(100dvh - 240px)!important;overflow-y:auto!important;overscroll-behavior:contain}
@media(max-width:950px){#customerInvoiceRequestDialog .customer-request-layout{grid-template-areas:"customer customer customer customer customer customer customer customer customer customer customer customer" "coding coding coding coding coding coding coding coding coding coding coding coding" "lines lines lines lines lines lines lines lines lines lines lines lines" "files files files files files files files files files files files files"}#customerInvoiceRequestDialog .customer-request-line{grid-template-columns:minmax(220px,2fr) repeat(3,minmax(90px,1fr))}.notification-panel{position:fixed;top:76px;right:10px}.orders-folder-setting{align-items:flex-start;flex-direction:column}}
@media(max-width:650px){#customerInvoiceRequestDialog{width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}#customerInvoiceRequestDialog>form{max-height:100dvh}#customerInvoiceRequestDialog .customer-request-coding-section .compact-form-grid,#customerInvoiceRequestDialog .customer-request-line{grid-template-columns:1fr 1fr}#customerInvoiceRequestDialog .request-line-description,#customerInvoiceRequestDialog .request-line-actions{grid-column:1/-1}.customer-search-results button{grid-template-columns:1fr}.orders-folder-setting>div:last-child{align-items:flex-start;flex-direction:column}}
