:root{--ink:#172c34;--muted:#6c7b80;--green:#137b69;--line:#dde5e4;--bg:#f3f6f5}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:14px/1.5 system-ui,sans-serif;color:var(--ink)}aside{position:fixed;inset:0 auto 0 0;width:235px;background:#163b3c;color:#c4d8d3;padding:34px 22px}.brand{display:block;color:#f5d18b;text-decoration:none;font-size:34px;font-weight:850;letter-spacing:2px}.brand span{color:white}.brand small{display:block;font-size:10px;letter-spacing:2px;font-weight:500;margin-bottom:55px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.6px;color:var(--muted)}aside .eyebrow{color:#86aaa5;margin-bottom:15px}nav button{display:block;width:100%;background:none;color:inherit;text-align:left;border:0;margin:5px 0;padding:12px;border-radius:7px}nav button.active{background:#2c5552;color:white}.sidefoot{position:absolute;bottom:30px;font-size:12px;line-height:2}.dot{display:inline-block;width:7px;height:7px;background:#76bca2;border-radius:50%}main{margin-left:235px;padding:32px 36px;max-width:1800px}header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}h1{font-size:30px;letter-spacing:-1px;margin:5px 0}h2{font-size:19px;margin:0}h3{font-size:15px;margin:0 0 15px}.controls{display:flex;gap:12px}.notice{border:1px solid #e3dbbb;background:#fffbed;padding:11px 16px;border-radius:7px;color:#75643f;font-size:12px;margin-bottom:26px}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.card{background:white;border:1px solid var(--line);border-radius:11px;padding:22px;margin-bottom:20px;box-shadow:0 3px 10px #123c3410}.metric small{color:var(--muted)}.metric strong{display:block;font-size:27px;margin:12px 0 5px;letter-spacing:-.6px}.metric em{font-size:11px;font-style:normal;color:var(--green)}.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.sub{color:var(--muted);font-size:12px;margin:5px 0 0}button,.button{cursor:pointer;border:1px solid var(--line);background:white;padding:9px 14px;border-radius:6px;color:var(--ink);font:inherit;font-weight:600;text-decoration:none}button.primary{background:var(--green);border-color:var(--green);color:white}button:hover{filter:brightness(.94)}button:disabled{opacity:.4;cursor:not-allowed}label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted)}input,select,textarea{font:inherit;border:1px solid #ccd9d5;border-radius:6px;background:white;padding:10px;color:var(--ink);min-width:0;width:100%}input[type=checkbox]{width:auto}input[type=file]{font-size:12px}table{width:100%;border-collapse:collapse;text-align:left}th{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:1px;background:#f6f9f8}th,td{padding:14px 12px;border-bottom:1px solid #e9eeed}td{font-size:13px}td button{font-size:11px;padding:6px 9px}tr:last-child td{border:0}.tablewrap{overflow:auto}.badge{display:inline-block;padding:4px 8px;border-radius:5px;font-size:11px;background:#e4f3ed;color:#16725b}.badge.warn{background:#fff0d5;color:#96601c}.badge.gray{background:#edf0f0;color:#718180}.empty{padding:35px;text-align:center;color:var(--muted)}.two{display:grid;grid-template-columns:1.3fr 1fr;gap:20px}.bar{height:7px;background:#e9efec;border-radius:9px;margin:8px 0 16px}.bar i{height:100%;display:block;background:#328777;border-radius:9px}.row{display:flex;justify-content:space-between;gap:12px;align-items:center}.staff{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#e6efeb;color:#397864;font-weight:750}footer{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;padding:20px 0}dialog{border:0;border-radius:12px;padding:30px;width:min(740px,94vw);max-height:90vh;box-shadow:0 20px 90px #0005}dialog::backdrop{background:#0b272a99}.close{position:absolute;right:12px;top:10px;border:0;font-size:22px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:23px 0}.full{grid-column:1/-1}.actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.error{color:#ae3d31;white-space:pre-line}img.evidence{max-width:100%;max-height:450px;object-fit:contain;background:#f3f5f4;border-radius:8px}.photo{width:44px;height:44px;object-fit:cover;border-radius:5px}.hint{padding:12px;background:#eef5f2;border-radius:6px;font-size:12px}#toast{position:fixed;bottom:25px;right:25px;background:#173c36;color:white;padding:12px 22px;border-radius:7px;display:none;z-index:9}.toolbar{display:flex;gap:10px;flex-wrap:wrap}.inline{display:flex;flex-direction:row;align-items:center}.danger{color:#b74535}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f2f5f4;padding:14px}a{color:var(--green)}@media(max-width:1100px){.grid{grid-template-columns:repeat(2,1fr)}header{align-items:flex-start;flex-direction:column}.two{grid-template-columns:1fr}}@media(max-width:700px){aside{position:static;width:auto;padding:15px}.brand{font-size:24px}.brand small{margin-bottom:12px}.sidefoot,aside .eyebrow{display:none}nav{display:flex;overflow:auto}nav button{white-space:nowrap;width:auto;font-size:12px}main{margin:0;padding:20px 14px}.controls{width:100%;flex-wrap:wrap}.controls label{flex:1}.grid{gap:10px}.card{padding:15px}.metric strong{font-size:21px}.formgrid{grid-template-columns:1fr}.full{grid-column:auto}footer{display:block}.sectionhead{align-items:flex-start}h1{font-size:26px}}

.store-staff-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:16px}.store-staff{border:1px solid var(--line);border-radius:9px;padding:16px;background:#fbfdfc}.store-staff h3{margin:0}.store-staff>.sub{margin:6px 0 12px}.store-staff .staff:last-child{border:0}.staffinfo{flex:1;min-width:0}.reportperiod{margin-bottom:16px}.toolbar label{min-width:145px}.toolbar{align-items:flex-end}.store-staff .badge{white-space:nowrap}.tablewrap th{white-space:normal}.tablewrap td{white-space:nowrap}@media(max-width:700px){.store-staff-grid{grid-template-columns:1fr}.sectionhead{flex-wrap:wrap}}

.payment-qr{border:1px solid var(--line);border-radius:8px;padding:16px;background:#f8fbfa}.payment-qr h3{margin-bottom:5px}.payment-qr .evidence{display:block;max-width:300px;max-height:300px;margin:14px auto}.payment-qr pre{max-height:95px;overflow:auto}.payment-qr input[type=file]{max-width:320px}input[readonly]{background:#f1f5f3;color:#497067}

/* VS on its own row; DPH 12% and 21% side by side. */
#tax > label:first-child{grid-column:1/-1}


#note-date-panel[hidden]{display:none}#note-date-panel{margin-top:10px;padding:12px;background:#eef5f2;border:1px solid var(--line);border-radius:6px}.payment-note small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.tablewrap td.payment-note-cell{white-space:normal;min-width:180px;max-width:300px}

.settlement-summary{padding:18px 20px;background:#eef6f2;border:1px solid #cce0d6;border-radius:8px}.settlement-summary span,.settlement-summary small{display:block;color:#55756a}.settlement-summary strong{display:block;font-size:28px;color:#14694f;margin:5px 0}.settlement-summary small{font-size:12px}

.badge.overdue{background:#fbe7e5;color:#ae3d31}.due-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 20px}.due-summary button{text-align:left;padding:16px;background:white}.due-summary b,.due-summary small{display:block}.due-summary b{font-size:17px;margin:6px 0}.due-summary small{font-weight:400;color:var(--muted)}.due-filter{max-width:220px}.due-row{background:#fff9f8}@media(max-width:800px){.due-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

.invoice-kind-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.invoice-kind-summary .card{padding:16px}.invoice-kind-summary h3{margin-bottom:8px}.invoice-filterbar{margin:0 0 20px}.invoice-filterbar select{min-width:210px}@media(max-width:600px){.invoice-kind-summary{grid-template-columns:1fr}}

#expense-net{margin:0}.payment-note-cell{overflow-wrap:anywhere}

.report-controls{gap:12px;margin:15px 0}.report-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}.report-metrics .card{box-shadow:none;background:#f8fbfa}.report-metrics .metric strong{font-size:23px}aside nav{max-height:calc(100vh - 265px);overflow:auto}@media(max-width:700px){aside nav{max-height:none}.report-controls{align-items:stretch}}

.invoice-tax-line{white-space:nowrap;font-size:12px;line-height:1.8}.invoice-qr-thumb{display:inline-flex;flex-direction:column;align-items:center;gap:3px;padding:5px;background:white}.invoice-qr-thumb img{width:64px;height:64px;object-fit:contain}.invoice-qr-thumb small{font-size:10px}

.date-control{display:flex;position:relative;align-items:center;gap:4px;min-width:0}.date-control>input[data-date-format]{width:100%;padding-right:40px}.date-calendar-button{position:absolute;right:3px;padding:3px 8px;border:0;background:transparent;font-size:21px}.date-picker-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none;padding:0!important;border:0!important;bottom:0;left:0}

/* Align the first line across every table row. */
.tablewrap th,.tablewrap td{vertical-align:top;line-height:1.6}.tablewrap td>div:first-child,.tablewrap td>p:first-child{margin-top:0}.tablewrap td .sub{line-height:1.6}


/* One shared first-line height for every invoice column. */
.invoice-ledger table tbody td{vertical-align:top!important;padding-top:14px;line-height:22px;font-size:13px}
.invoice-ledger table tbody td>b{font-size:13px;line-height:22px}
.invoice-ledger .invoice-tax-line{font-size:13px;line-height:22px}
.invoice-ledger table tbody td>.sub:first-child{margin-top:0;font-size:13px;line-height:22px}
.invoice-ledger table tbody td>div:first-child{margin-top:0;line-height:22px}
.invoice-ledger table tbody td:last-child>button{padding-top:0;padding-bottom:0;line-height:22px;vertical-align:top}

.invoice-summary-tax{border-top:1px solid var(--line);margin-top:12px;padding-top:8px}.invoice-summary-tax>div{display:flex;justify-content:space-between;gap:16px;line-height:1.8;font-size:12px}.invoice-summary-tax .tax-total{margin-top:5px;color:var(--green);font-weight:700}

.dashboard-shortcut{display:block;width:100%;text-align:left;font:inherit;color:var(--ink);cursor:pointer;transition:border-color .15s,box-shadow .15s}.dashboard-shortcut:hover{border-color:var(--green);box-shadow:0 4px 14px #123c3420}.dashboard-shortcut:focus-visible{outline:3px solid var(--green);outline-offset:3px}

.dashboard-detail{scroll-margin-top:16px;border-left:3px solid var(--green);padding-left:16px;margin:0 0 24px}.dashboard-shortcut[aria-expanded=true]{border-color:var(--green);background:#edf7f3}

.sales-overview{padding:18px;border:1px solid var(--line);border-radius:9px;background:#f8fbfa;margin:0 0 20px}.sales-overview .sectionhead{align-items:flex-end}.sales-overview h3{margin-bottom:4px}.sales-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.sales-overview-metric{background:white;border:1px solid var(--line);border-radius:7px;padding:14px}.sales-overview-metric small{color:var(--muted)}.sales-overview-metric strong{display:block;font-size:21px;margin-top:6px}@media(max-width:700px){.sales-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-overview .sectionhead{align-items:stretch;flex-direction:column}.sales-overview-metric strong{font-size:18px}}

.invoice-period-controls{align-items:flex-end;margin-bottom:6px;padding:12px;background:#f6f9f8;border-radius:7px}.invoice-period-label{margin-bottom:16px}
/* Semantic colors: revenue blue, debt orange, purchases violet, expenses teal. */
:root{--revenue:#175a9e;--revenue-bg:#edf5ff;--debt:#9b4a12;--debt-bg:#fff3e7;--purchase:#7047a6;--purchase-bg:#f5efff;--expense:#146f60;--expense-bg:#eaf7f2;--tax:#865b08;--tax-bg:#fff8dd}
.dashboard-shortcut{border-top:4px solid;box-shadow:0 3px 10px #123c3410}
.dashboard-shortcut[data-action="dashboard-open:sales"]{background:var(--revenue-bg);border-color:#b7d2f2;border-top-color:var(--revenue)}
.dashboard-shortcut[data-action="dashboard-open:debts"]{background:var(--debt-bg);border-color:#f0cfad;border-top-color:var(--debt)}
.dashboard-shortcut[data-action="dashboard-open:invoices"]{background:var(--purchase-bg);border-color:#d9c7ed;border-top-color:var(--purchase)}
.dashboard-shortcut[data-action="dashboard-open:expenses"]{background:var(--expense-bg);border-color:#b9ded0;border-top-color:var(--expense)}
.dashboard-shortcut small{font-weight:700;color:var(--ink)}
.dashboard-shortcut[data-action="dashboard-open:sales"] strong{color:var(--revenue)}
.dashboard-shortcut[data-action="dashboard-open:debts"] strong{color:var(--debt)}
.dashboard-shortcut[data-action="dashboard-open:invoices"] strong{color:var(--purchase)}
.dashboard-shortcut[data-action="dashboard-open:expenses"] strong{color:var(--expense)}
.dashboard-shortcut:hover{filter:brightness(.98);transform:translateY(-1px)}
.dashboard-shortcut[aria-expanded=true]{outline:2px solid #254b53;outline-offset:2px}
.invoice-kind-summary .card:first-child{background:var(--expense-bg);border-color:#b9ded0;border-top:4px solid var(--expense)}
.invoice-kind-summary .card:last-child{background:var(--debt-bg);border-color:#f0cfad;border-top:4px solid var(--debt)}
.invoice-kind-summary .card:first-child h3{color:var(--expense)}
.invoice-kind-summary .card:last-child h3{color:var(--debt)}
.invoice-summary-tax{border-top-color:#b9dace}
.invoice-summary-tax .tax-total{background:#d9eee5;padding:5px 8px;border-radius:5px;color:#155444}
.sales-overview{background:#f7fafc;border-color:#cddce7}
.sales-overview-metric{border-top:4px solid var(--revenue);background:var(--revenue-bg);border-color:#b7d2f2;border-top-color:var(--revenue)}
.sales-overview-metric:nth-child(2){background:var(--expense-bg);border-color:#b9ded0;border-top-color:var(--expense)}
.sales-overview-metric:nth-child(3){background:var(--purchase-bg);border-color:#d9c7ed;border-top-color:var(--purchase)}
.sales-overview-metric:nth-child(4){background:#edf7fb;border-color:#b7dce9;border-top-color:#176884}
.sales-overview-metric:nth-child(n+5){background:var(--tax-bg);border-color:#e9d89e;border-top-color:var(--tax)}
.sales-overview-metric small{font-weight:650;color:#334950}
.sales-overview-metric strong{color:#183d52}
.due-summary button{border-top:4px solid;border-color:#d3dfdf}
.due-summary button[data-action="due-filter:overdue"]{background:#fff0ef;border-top-color:#a3362b}
.due-summary button[data-action="due-filter:today"]{background:var(--debt-bg);border-top-color:var(--debt)}
.due-summary button[data-action="due-filter:soon"]{background:var(--tax-bg);border-top-color:var(--tax)}
.due-summary button[data-action="due-filter:unset"]{background:#eef3f7;border-top-color:#5b6f83}
.due-summary button span{font-weight:700}
.report-metrics .card{border-top:4px solid #326587;background:#eff6fb}
.report-metrics .card:nth-child(2){border-top-color:var(--purchase);background:var(--purchase-bg)}
.report-metrics .card:nth-child(3){border-top-color:var(--expense);background:var(--expense-bg)}
.report-metrics .card:nth-child(4){border-top-color:var(--tax);background:var(--tax-bg)}
.report-metrics .metric small{color:#334950;font-weight:650}
.invoice-period-controls,.report-controls{background:#eef4f7;border:1px solid #d6e2e8;padding:12px;border-radius:8px}
.invoice-filterbar{padding:12px;background:#f6f8f9;border:1px solid #e0e6e8;border-radius:8px;align-items:flex-end}
.tablewrap thead th{background:#eaf0f3;color:#41596a;border-bottom:2px solid #d1dfe5}
.tablewrap tbody tr:nth-child(even){background:#f8fafb}
.tablewrap tbody tr:hover{background:#edf5fa}
.tablewrap tbody tr.due-row{background:#fff2ed}
.badge{font-weight:650}
nav button.active{background:#356560;border-left:3px solid #f5d18b}
button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #2078ac;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.dashboard-shortcut:hover{transform:none}}


.collapsible-content[hidden]{display:none!important}.sectionhead>h3{margin-bottom:0}

/* Compact revenue overview: six metrics on one desktop row. */
.sales-overview{padding:14px}
.sales-overview .sectionhead{margin-bottom:12px}
.sales-overview-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.sales-overview-metric{padding:10px 9px;border-top-width:3px}
.sales-overview-metric small{display:block;font-size:11px;line-height:1.4;min-height:30px}
.sales-overview-metric strong{font-size:18px;line-height:1.3;letter-spacing:-.3px;margin-top:4px;white-space:nowrap}
@media(max-width:1200px){.sales-overview-grid{overflow-x:auto;grid-template-columns:repeat(6,minmax(145px,1fr));padding-bottom:5px}}
@media(max-width:700px){.sales-overview{padding:10px}.sales-overview-grid{grid-template-columns:repeat(6,145px)}.sales-overview-metric strong{font-size:17px}}

/* Clear employee names and attendance status by store. */
.store-staff{background:#fff;padding:16px;align-self:start}
.presence-count{background:#daf0e5;color:#155b43;font-size:12px;font-weight:750;border-radius:6px;padding:5px 8px;white-space:nowrap}
.staff-live-summary{background:#eaf7f0;border-left:4px solid #23865e;padding:10px 12px;margin-top:12px;border-radius:5px}
.staff-live-summary>span{display:block;color:#2c6854;font-size:10px;font-weight:750;letter-spacing:.8px}
.staff-live-summary>strong{display:block;font-size:15px;line-height:1.5;margin-top:3px;color:#164b38}
.store-staff .staff{align-items:flex-start;padding:12px 0;gap:9px}
.staff-name{display:block;font-size:15px;line-height:1.5;color:#153440}
.presence-label{display:inline-block;margin:4px 0;padding:2px 7px;border-radius:5px;font-size:11px;font-weight:700;background:#edf1f5;color:#4d6071}
.presence-working .presence-label{background:#d8f1e2;color:#145c38}
.presence-missing .presence-label,.presence-unrecorded .presence-label{background:#fff0d8;color:#8d4b0c}
.presence-scheduled .presence-label{background:#e4f0ff;color:#1c568d}
.presence-left .presence-label{background:#e9e4f5;color:#654292}
.presence-elsewhere .presence-label{background:#e3f1f5;color:#226477}
.presence-working .avatar{background:#d8f1e2;color:#145c38}
.staff-status-note{border-top:1px solid var(--line);padding-top:9px;font-size:11px}

.tablewrap td.vat-estimated{background:#fff8df;color:#684b10;min-width:150px;white-space:normal}.vat-estimated>.sub{font-size:11px;color:#705f35}

/* Stable store colors, unaffected by store filtering. */
.store-staff[data-store-index="0"]{--store-accent:#225e9e;--store-tint:#eef5ff;--store-edge:#bdd4ef}
.store-staff[data-store-index="1"]{--store-accent:#6d43a0;--store-tint:#f6efff;--store-edge:#d6c2ed}
.store-staff[data-store-index="2"]{--store-accent:#176c60;--store-tint:#ecf8f3;--store-edge:#b7ddce}
.store-staff[data-store-index="3"]{--store-accent:#96530f;--store-tint:#fff5e8;--store-edge:#ebcda5}
.store-staff[data-store-index="4"]{--store-accent:#964568;--store-tint:#fff0f5;--store-edge:#e8bfd0}
.store-staff[data-store-index]{border:1px solid var(--store-edge);border-top:5px solid var(--store-accent);background:var(--store-tint)}
.store-staff[data-store-index]>.row h3{color:var(--store-accent);font-size:16px}
.store-staff[data-store-index] .staff-live-summary{background:#ffffffc9;border-left-color:var(--store-accent)}
.store-staff[data-store-index] .staff-live-summary>span,.store-staff[data-store-index] .staff-live-summary>strong{color:var(--store-accent)}
.store-staff[data-store-index] .staff{border-bottom-color:var(--store-edge)}
.store-staff[data-store-index] .staff-status-note{border-top-color:var(--store-edge)}

/* Invoice ledger: hierarchy and clear monetary columns. */
.invoice-ledger{background:#fff;border:1px solid #d9d4e5;border-top:4px solid #7047a6;box-shadow:0 4px 14px #38224e0b}
.invoice-ledger>.sectionhead h2{color:#593487}
.invoice-ledger>.sectionhead{padding-bottom:12px;border-bottom:1px solid #ece7f2}
.invoice-ledger .primary{background:#7047a6;border-color:#7047a6;color:#fff}
.invoice-ledger .primary:hover{background:#593487;border-color:#593487}
.invoice-ledger .invoice-period-controls{background:#f4effb;border:1px solid #dcd0ef;border-left:4px solid #8a66b5}
.invoice-ledger .invoice-period-controls label{color:#5c4776;font-weight:650}
.invoice-ledger .invoice-period-label{color:#655975;margin:7px 0 15px}
.invoice-ledger .invoice-filterbar{background:#f6f8fa;border-color:#dce3e9;border-left:4px solid #8097ac;gap:12px}
.invoice-ledger .invoice-filterbar label{color:#455a6b;font-weight:650}
.invoice-ledger select,.invoice-ledger input{background:#fff;color:#203541;border-color:#cbd5de;font-weight:400}
.invoice-ledger .tablewrap thead th{background:#eee8f5;color:#51356c;border-bottom:2px solid #cdbbdf;font-weight:750}
.invoice-ledger .tablewrap tbody tr{background:#fff}
.invoice-ledger .tablewrap tbody tr:nth-child(even){background:#f9f8fc}
.invoice-ledger .tablewrap tbody tr:hover{background:#f0edf8}
.invoice-ledger .tablewrap tbody td:nth-child(5){background:#eef5ff;color:#194f85}
.invoice-ledger .tablewrap tbody td:nth-child(6){background:#edf8f2;color:#1b6548}
.invoice-ledger .tablewrap tbody td:nth-child(7){background:#fff9e8;color:#735512}
.invoice-ledger .tablewrap thead th:nth-child(5){background:#dfeafb;color:#194f85}
.invoice-ledger .tablewrap thead th:nth-child(6){background:#dcefe3;color:#1b6548}
.invoice-ledger .tablewrap thead th:nth-child(7){background:#f7edcb;color:#735512}
.invoice-ledger .tablewrap tbody td:nth-child(6) .sub,.invoice-ledger .tablewrap tbody td:nth-child(7) .sub{color:#63716a}
.invoice-ledger .tablewrap tbody tr.due-row{background:#fff2ed}
.invoice-ledger .tablewrap tbody tr.due-row td:first-child{border-left:3px solid #b9482e}
.invoice-ledger td button{background:#fff;border-color:#d5dce3;color:#334b60}
.invoice-ledger td button:hover{background:#eee8f5;border-color:#bca5d5;color:#593487}
.invoice-ledger td button[data-action^="pay:"]{background:#fff1df;border-color:#e8c79e;color:#894509;font-weight:650}
.invoice-ledger td button[data-action^="invoice-edit:"]{background:#f3edfa;border-color:#d5c4e8;color:#643b94}
.invoice-ledger .invoice-qr-thumb{border-color:#bdcfdc;background:#fff}

/* VAT overview: three clear totals and grouped table colors. */
.vat-page{border-top:4px solid #99700c;background:#fff}
.vat-page>.sectionhead{padding-bottom:14px;border-bottom:1px solid #e7e2d5}
.vat-page .reportperiod{background:#f5f7f9;padding:8px 12px;border-radius:6px;font-weight:650;color:#40586a}
.vat-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0 24px}
.vat-kpi{padding:16px;border:1px solid;border-top-width:4px;border-radius:9px}
.vat-kpi small{display:block;font-size:13px;font-weight:700}
.vat-kpi strong{display:block;font-size:27px;line-height:1.3;margin:9px 0}
.vat-kpi span{font-size:12px}
.vat-kpi-output{background:#edf5ff;border-color:#bdd3ed;border-top-color:#225e9e;color:#1b5089}
.vat-kpi-input{background:#edf8f2;border-color:#bfdfcc;border-top-color:#227047;color:#1e6342}
.vat-kpi-due{background:#fff8e1;border-color:#e8d8a0;border-top-color:#99700c;color:#75530d}
.vat-summary>.hint{background:#fff6e5;border:1px solid #edd5ac;border-left:4px solid #ba8126;color:#795017;font-size:12px;line-height:1.65}
.vat-summary>.tablewrap{border:1px solid #d8e1e6;border-radius:8px;overflow:auto;margin:14px 0}
.vat-summary table{min-width:1120px}
.vat-summary .tablewrap th{font-size:11px;line-height:1.5;letter-spacing:.4px;padding:13px 10px;background:#eef2f5;color:#3e5364}
.vat-summary .tablewrap td{padding:13px 10px;font-size:13px;line-height:1.6}
.vat-summary .tablewrap th:first-child,.vat-summary .tablewrap td:first-child{position:sticky;left:0;z-index:1;background:#f4f7fa;min-width:145px;border-right:1px solid #d8e1e6}
.vat-summary .tablewrap th:nth-child(n+2):nth-child(-n+4){background:#dfeafa;color:#225383;border-bottom-color:#b7cee9}
.vat-summary .tablewrap td:nth-child(n+2):nth-child(-n+4){background:#f2f7ff;color:#214f80}
.vat-summary .tablewrap th:nth-child(n+5):nth-child(-n+8){background:#deefe5;color:#245d40;border-bottom-color:#b6d7c4}
.vat-summary .tablewrap td:nth-child(n+5):nth-child(-n+8){background:#f0f8f3;color:#255f41}
.vat-summary .tablewrap th:nth-child(9){background:#f5e8bc;color:#75530d}
.vat-summary .tablewrap td:nth-child(9){background:#fff8e1;color:#75530d;min-width:170px}
.vat-summary .tablewrap td:nth-child(10){min-width:145px}
.vat-summary .tablewrap td:nth-child(4),.vat-summary .tablewrap td:nth-child(8),.vat-summary .tablewrap td:nth-child(9){font-weight:750}
.vat-summary .tablewrap tbody tr:last-child td{border-top:2px solid #9aadb7;border-bottom:0;font-weight:750;filter:brightness(.97)}
.vat-summary .tablewrap tbody tr:hover td{box-shadow:inset 0 0 0 9999px #153b4508}
.vat-summary>.sub{padding:10px 12px;background:#f6f8fa;border-radius:6px;line-height:1.7;color:#52616c}
@media(max-width:700px){.vat-kpis{grid-template-columns:1fr;gap:10px}.vat-kpi{padding:12px}.vat-kpi strong{font-size:23px}.vat-page>.sectionhead{align-items:flex-start;flex-direction:column}}

/* Align revenue totals and detail columns in the same table. */
.sales-ledger>.tablewrap{overflow:auto;border:1px solid #d8e2e9;border-radius:8px}
.sales-ledger>.tablewrap table{min-width:1320px;table-layout:fixed;width:100%}
.sales-ledger>.tablewrap th,.sales-ledger>.tablewrap td{overflow-wrap:anywhere;white-space:normal;vertical-align:top}
.sales-ledger .sales-column-totals th{padding:12px 9px;text-transform:none;letter-spacing:0;background:#f1f5f8;border-bottom:5px solid white}
.sales-column-totals small{display:block;font-size:11px;line-height:1.4;min-height:30px}
.sales-column-totals strong{display:block;font-size:17px;line-height:1.4;white-space:nowrap;margin-top:4px}
.sales-ledger .sales-column-totals .sales-total-0{background:#e6f0ff;color:#1b5089;border-top:3px solid #225e9e}
.sales-ledger .sales-column-totals .sales-total-1{background:#e7f5ee;color:#1b6548;border-top:3px solid #227047}
.sales-ledger .sales-column-totals .sales-total-2{background:#f1eafb;color:#654292;border-top:3px solid #7950aa}
.sales-ledger .sales-column-totals .sales-total-3{background:#e8f4fa;color:#226477;border-top:3px solid #226477}
.sales-ledger .sales-column-totals .sales-total-4,.sales-ledger .sales-column-totals .sales-total-5{background:#fff6db;color:#75530d;border-top:3px solid #99700c}
.sales-calendar-panel{margin-top:12px;border-top:1px solid #d6e0e8;padding-top:10px}
.sales-calendar-panel>summary{cursor:pointer;font-weight:650;color:#35566d;margin-bottom:10px}
.sales-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.sales-weekday{text-align:center;font-size:11px;font-weight:750;color:#526a7c;padding:4px}
.sales-calendar-day{padding:7px 8px;text-align:left;min-height:68px;background:#fff;border-color:#dce4e9;overflow:hidden}
.sales-calendar-day b{font-size:13px;display:block}.sales-calendar-day span{display:block;font-size:11px;white-space:nowrap}.sales-calendar-day small{display:block;font-size:10px;color:#637785;min-height:14px}
.sales-calendar-day:not(.has-records){background:#f3f5f7;color:#697a86}
.sales-calendar-day.has-records{background:#edf7f1;border-color:#afd6c0;color:#245d40}
.sales-calendar-day.selected{outline:2px solid #225e9e;outline-offset:-2px;background:#dfedff;color:#1b5089}
.sales-calendar-day:hover{border-color:#225e9e}
@media(max-width:700px){.sales-calendar{gap:3px}.sales-calendar-day{padding:5px 3px;min-height:62px}.sales-calendar-day span{font-size:9px}.sales-calendar-day small{display:none}.sales-overview .toolbar{width:100%}}

.sales-calendar-day.missing-stores{background:#fff3e5;border-color:#e8c69c;color:#80450e}
.sales-calendar-day.complete-stores{background:#e6f5ec;border-color:#9bc8ac;color:#215e3a}
.sales-calendar-day.future-day{background:#f1f3f5;border-color:#e0e4e8;color:#73808a}
.sales-calendar-day.selected{outline:2px solid #225e9e;outline-offset:-2px}
.sales-calendar-day small{font-weight:650;font-size:10px;white-space:normal;color:inherit}
.sales-entry-status{padding:12px;margin-top:12px;border:1px solid #d7e0e7;border-radius:7px;background:#fff}
.sales-entry-status h3{margin-bottom:4px}
.sales-store-status-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;margin-top:10px}
.sales-store-status{padding:9px 10px;border:1px solid;border-radius:6px}
.sales-store-status b,.sales-store-status span{display:block;font-size:12px;line-height:1.6}
.entry-done{background:#eaf7ee;border-color:#bddcc7;color:#245c3b}
.entry-missing{background:#fff1e5;border-color:#edcaa6;color:#854711}
.entry-future{background:#f1f4f7;border-color:#d9e0e6;color:#627483}
@media(max-width:700px){.sales-calendar-day small{display:block;font-size:8px;line-height:1.2}.sales-store-status-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

.management-profit-row td{background:#fff4d9!important;border-top:2px solid #d9bd75;color:#705013;font-weight:750}

/* Revenue workspace: clearer hierarchy, compact controls and aligned totals. */
.sales-ledger{background:#fff;border:1px solid #cbdbea;border-top:4px solid #225e9e;padding:22px;box-shadow:0 5px 18px #183a5510}
.sales-ledger>.sectionhead{padding-bottom:15px;margin-bottom:16px;border-bottom:1px solid #e0e8ef;align-items:center}
.sales-ledger>.sectionhead h2{font-size:21px;color:#1c4e7b}
.sales-ledger>.sectionhead .sub{font-size:12px;color:#607586}
.sales-ledger>.sectionhead .primary{background:#225e9e;border-color:#225e9e;padding:10px 16px;font-weight:700}
.sales-ledger>.sectionhead .primary:hover{background:#194b80}
.sales-ledger .sales-overview{padding:16px;margin-bottom:20px;background:#f7fafd;border:1px solid #d5e1ec;border-radius:10px}
.sales-ledger .sales-overview>.sectionhead{background:#fff;padding:12px 14px;border:1px solid #e0e8ef;border-radius:7px;margin-bottom:12px;gap:16px}
.sales-ledger .sales-overview h3{font-size:16px;color:#224a6b}
.sales-ledger .sales-overview .toolbar{gap:10px;align-items:flex-end}
.sales-ledger .sales-overview label{font-size:11px;font-weight:650;color:#49657d}
.sales-ledger .sales-overview input,.sales-ledger .sales-overview select{background:#fff;border-color:#bfcfdd;min-height:38px;font-weight:400;color:#1c3b55}
.sales-ledger .sales-overview button[data-action="sales-whole-month"]{min-height:38px;background:#eaf2fc;border-color:#c0d2e8;color:#225e9e;font-weight:650}
.sales-ledger .sales-overview>.sub{margin:8px 0 0;padding:7px 10px;background:#fff6e5;border-left:3px solid #c08a32;color:#805b20;border-radius:4px;font-size:11px;line-height:1.6}
.sales-ledger .sales-calendar-panel{padding:0;border:1px solid #d8e3ed;border-radius:8px;background:#fff;overflow:hidden;margin-top:0}
.sales-ledger .sales-calendar-panel>summary{padding:12px 14px;margin:0;background:#e9f1fa;color:#244f78;font-size:12px}
.sales-ledger .sales-calendar{padding:10px;gap:7px}
.sales-ledger .sales-weekday{background:#f4f7fa;border-radius:4px;padding:5px;color:#4e667b}
.sales-ledger .sales-calendar-day{border-radius:7px;box-shadow:none;min-height:75px;padding:8px 9px;transition:border-color .15s}
.sales-ledger .sales-calendar-day>b{font-size:14px;line-height:1.4}
.sales-ledger .sales-calendar-day>span{font-size:12px;font-weight:650;margin:3px 0}
.sales-ledger .sales-calendar-day>small{font-size:10px;line-height:1.35}
.sales-ledger .sales-calendar-day.complete-stores{background:#ecf8f0;border-color:#b3d8c0;color:#215c3a}
.sales-ledger .sales-calendar-day.missing-stores{background:#fff5e9;border-color:#e8cea8;color:#855118}
.sales-ledger .sales-calendar-day.future-day{background:#f4f6f8;border-color:#e0e5ea;color:#7b8995}
.sales-ledger .sales-calendar-day.selected{outline:2px solid #225e9e;outline-offset:-2px;background:#e2eeff;color:#194c84}
.sales-ledger .sales-entry-status{padding:14px;border:1px solid #d9e3eb;background:#fff;border-radius:8px;margin-top:12px}
.sales-ledger .sales-entry-status h3{font-size:14px}
.sales-ledger>.tablewrap{border:1px solid #cddbe6;border-radius:9px;background:#fff}
.sales-ledger>.tablewrap .sales-column-totals th{padding:14px 11px;border-bottom:7px solid #fff}
.sales-ledger .sales-column-totals small{font-size:12px;font-weight:700;min-height:34px;line-height:1.4}
.sales-ledger .sales-column-totals strong{font-size:20px;letter-spacing:-.4px;margin-top:5px}
.sales-ledger .sales-column-totals th:first-child{background:#f2f6fa;color:#35546e;font-size:12px}
.sales-ledger>.tablewrap thead tr:not(.sales-column-totals) th{font-size:11px;letter-spacing:.25px;line-height:1.5;background:#edf2f7;color:#3e5870;padding:13px 11px;border-bottom:2px solid #cbd9e5}
.sales-ledger>.tablewrap tbody td{padding:14px 11px;line-height:1.7;font-size:13px;border-bottom:1px solid #e3eaf0}
.sales-ledger>.tablewrap tbody td .sub{font-size:11px;line-height:1.6;color:#657b8d}
.sales-ledger>.tablewrap tbody tr:nth-child(even){background:#f7f9fc}
.sales-ledger>.tablewrap tbody tr:hover{background:#eff5fc}
.sales-ledger>.tablewrap tbody td:nth-child(3){background:#f0f6ff;color:#1b5089;font-weight:750}
.sales-ledger>.tablewrap tbody td:nth-child(4){background:#f1f8f4;color:#216245}
.sales-ledger>.tablewrap tbody td:nth-child(5){background:#f7f3fc;color:#67478c}
.sales-ledger>.tablewrap tbody td:nth-child(6){background:#f0f7fb;color:#23627c}
.sales-ledger>.tablewrap tbody td:nth-child(7),.sales-ledger>.tablewrap tbody td:nth-child(8){background:#fffbef;color:#785b16}
.sales-ledger>.tablewrap td button[data-action^="sale:"]{background:#eaf2fc;border-color:#bfd2e8;color:#225e9e;font-weight:650;white-space:nowrap}
@media(max-width:700px){.sales-ledger{padding:12px}.sales-ledger .sales-overview{padding:10px}.sales-ledger .sales-overview>.sectionhead{padding:10px}.sales-ledger .sales-calendar{padding:6px;gap:4px}.sales-ledger .sales-calendar-day{padding:5px 3px;min-height:65px}.sales-ledger .sales-calendar-day>span{font-size:9px}.sales-ledger .sales-calendar-day>small{font-size:8px}.sales-ledger>.sectionhead{align-items:flex-start;gap:10px}}

/* Alternating invoice rows, including monetary columns. */
.invoice-ledger .tablewrap tbody tr:nth-child(odd) td{background:#ffffff}
.invoice-ledger .tablewrap tbody tr:nth-child(even) td{background:#f0ecf8}
.invoice-ledger .tablewrap tbody tr:nth-child(odd) td:nth-child(5){background:#edf5ff}
.invoice-ledger .tablewrap tbody tr:nth-child(even) td:nth-child(5){background:#dce9fa}
.invoice-ledger .tablewrap tbody tr:nth-child(odd) td:nth-child(6){background:#edf8f2}
.invoice-ledger .tablewrap tbody tr:nth-child(even) td:nth-child(6){background:#dcefe3}
.invoice-ledger .tablewrap tbody tr:nth-child(odd) td:nth-child(7){background:#fff9e8}
.invoice-ledger .tablewrap tbody tr:nth-child(even) td:nth-child(7){background:#f5eac6}
.invoice-ledger .tablewrap tbody tr:hover td{box-shadow:inset 0 0 0 9999px #6744960b}
.invoice-ledger .tablewrap tbody tr.due-row td:first-child{border-left:3px solid #b9482e}

/* Revenue palette: stronger summary, coordinated headers and alternating rows. */
.sales-ledger{background:#fff;border-color:#bfd0df;border-top-color:#24659d}
.sales-ledger>.sectionhead .primary{background:#24659d;border-color:#24659d}
.sales-ledger .sales-overview{background:#f4f7fa;border-color:#cedbe5}
.sales-ledger .sales-overview>.sectionhead{background:#fff;border-left:4px solid #24659d}
.sales-ledger .sales-calendar-panel>summary{background:#e3edf7;color:#234f76}
.sales-ledger .sales-column-totals .sales-total-0{background:#d6e7ff;color:#164b85;border-top-color:#24659d}
.sales-ledger .sales-column-totals .sales-total-1{background:#d8efe2;color:#185939;border-top-color:#28764b}
.sales-ledger .sales-column-totals .sales-total-2{background:#e9def9;color:#61388c;border-top-color:#8050ae}
.sales-ledger .sales-column-totals .sales-total-3{background:#d6eef6;color:#1c5f78;border-top-color:#287d9e}
.sales-ledger .sales-column-totals .sales-total-4,.sales-ledger .sales-column-totals .sales-total-5{background:#f8e9b9;color:#77530b;border-top-color:#a57a17}
.sales-ledger>.tablewrap thead tr:not(.sales-column-totals) th:nth-child(3){background:#d6e7ff;color:#164b85}
.sales-ledger>.tablewrap thead tr:not(.sales-column-totals) th:nth-child(4){background:#d8efe2;color:#185939}
.sales-ledger>.tablewrap thead tr:not(.sales-column-totals) th:nth-child(5){background:#e9def9;color:#61388c}
.sales-ledger>.tablewrap thead tr:not(.sales-column-totals) th:nth-child(6){background:#d6eef6;color:#1c5f78}
.sales-ledger>.tablewrap thead tr:not(.sales-column-totals) th:nth-child(7),.sales-ledger>.tablewrap thead tr:not(.sales-column-totals) th:nth-child(8){background:#f8e9b9;color:#77530b}
.sales-ledger>.tablewrap tbody tr:nth-child(odd) td{background:#fff}
.sales-ledger>.tablewrap tbody tr:nth-child(even) td{background:#eaf0f6}
.sales-ledger>.tablewrap tbody tr:nth-child(odd) td:nth-child(3){background:#eef5ff}
.sales-ledger>.tablewrap tbody tr:nth-child(even) td:nth-child(3){background:#dce9fb}
.sales-ledger>.tablewrap tbody tr:nth-child(odd) td:nth-child(4){background:#eff8f2}
.sales-ledger>.tablewrap tbody tr:nth-child(even) td:nth-child(4){background:#dfeee5}
.sales-ledger>.tablewrap tbody tr:nth-child(odd) td:nth-child(5){background:#f6f0fc}
.sales-ledger>.tablewrap tbody tr:nth-child(even) td:nth-child(5){background:#e9e0f3}
.sales-ledger>.tablewrap tbody tr:nth-child(odd) td:nth-child(6){background:#eff8fc}
.sales-ledger>.tablewrap tbody tr:nth-child(even) td:nth-child(6){background:#ddedf4}
.sales-ledger>.tablewrap tbody tr:nth-child(odd) td:nth-child(7),.sales-ledger>.tablewrap tbody tr:nth-child(odd) td:nth-child(8){background:#fff9e7}
.sales-ledger>.tablewrap tbody tr:nth-child(even) td:nth-child(7),.sales-ledger>.tablewrap tbody tr:nth-child(even) td:nth-child(8){background:#f3e9ca}
.sales-ledger>.tablewrap tbody tr:hover td{box-shadow:inset 0 0 0 9999px #1e4b740a}
.sales-ledger>.tablewrap td .sub{color:#506675}

/* Compact calendar with explicit red missing-entry notes. */
.sales-ledger .sales-calendar-panel{max-width:920px}
.sales-ledger .sales-calendar-panel>summary{padding:8px 10px;font-size:11px}
.sales-ledger .sales-calendar{gap:4px;padding:6px}
.sales-ledger .sales-weekday{padding:2px;font-size:10px}
.sales-ledger .sales-calendar-day{padding:5px 7px;min-height:54px}
.sales-ledger .sales-calendar-day>b{font-size:12px;line-height:1.2}
.sales-ledger .sales-calendar-day>span{font-size:10px;margin:2px 0;line-height:1.3}
.sales-ledger .sales-calendar-day>small{font-size:9px;line-height:1.25;min-height:11px}
.sales-ledger .sales-calendar-day.missing-stores{background:#fff1ef;border-color:#edc2bc;color:#a02d23}
.sales-ledger .sales-calendar-day.missing-stores>b,.sales-ledger .sales-calendar-day.missing-stores>small{color:#a02d23;font-weight:750}
.sales-missing-note{max-width:920px;padding:10px 12px;border:1px solid #e9c3bd;border-left:4px solid #b43d30;border-radius:6px;background:#fff8f6;margin:10px 0;color:#9a3025}
.sales-missing-note>summary{cursor:pointer;font-weight:750;font-size:12px}
.sales-missing-note>p{font-size:11px;line-height:1.5;margin:5px 0 8px;color:#89554d}
.sales-missing-list{max-height:145px;overflow:auto}
.sales-missing-list>div{display:flex;gap:10px;align-items:baseline;padding:4px 0;border-bottom:1px solid #f2ded9;font-size:11px;line-height:1.5}
.sales-missing-list button{background:transparent;border:0;padding:0;color:#a02d23;font-size:11px;font-weight:750;text-decoration:underline;white-space:nowrap}
.sales-complete-note{font-size:12px;color:#266342;background:#eaf6ee;padding:9px 12px;border-radius:6px}
@media(max-width:700px){.sales-ledger .sales-calendar-day{padding:4px 3px;min-height:53px}.sales-ledger .sales-calendar-day>span{font-size:8px}.sales-ledger .sales-calendar-day>small{font-size:8px}}

/* Half-width compact calendar with store entry status to its right. */
.sales-calendar-layout{display:grid;grid-template-columns:minmax(315px,460px) minmax(0,1fr);gap:16px;align-items:start}
.sales-calendar-left,.sales-calendar-right{min-width:0}
.sales-ledger .sales-calendar-layout .sales-calendar-panel{max-width:none;width:100%;margin:0}
.sales-ledger .sales-calendar-layout .sales-calendar-panel>summary{font-size:10px;padding:7px 8px;line-height:1.5}
.sales-ledger .sales-calendar-layout .sales-calendar{gap:3px;padding:5px}
.sales-ledger .sales-calendar-layout .sales-weekday{font-size:9px;padding:2px}
.sales-ledger .sales-calendar-layout .sales-calendar-day{padding:4px 3px;min-height:45px}
.sales-ledger .sales-calendar-layout .sales-calendar-day>b{font-size:11px;line-height:1.2}
.sales-ledger .sales-calendar-layout .sales-calendar-day>span{font-size:8px;margin:1px 0;white-space:normal;line-height:1.2}
.sales-ledger .sales-calendar-layout .sales-calendar-day>small{font-size:8px;line-height:1.15;min-height:0}
.sales-calendar-layout .sales-missing-note{margin-top:8px;padding:8px;max-width:none}
.sales-calendar-layout .sales-missing-note>summary{font-size:11px}
.sales-ledger .sales-calendar-right .sales-entry-status{margin-top:0;background:#fff;padding:16px}
.sales-calendar-right .sales-store-status-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.sales-calendar-right .sales-store-status{padding:11px}
.sales-calendar-right .sales-entry-status>.sub{line-height:1.6}
@media(max-width:1050px){.sales-calendar-layout{grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:10px}.sales-calendar-right .sales-store-status-list{grid-template-columns:1fr}}
@media(max-width:800px){.sales-calendar-layout{grid-template-columns:1fr}.sales-ledger .sales-calendar-layout .sales-calendar-panel{max-width:460px}.sales-calendar-right .sales-store-status-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

.invoice-kind-click{cursor:pointer;transition:box-shadow .15s,border-color .15s}
.invoice-kind-click:hover{box-shadow:0 5px 16px #28483620}
.invoice-kind-click[aria-pressed="true"]{outline:2px solid #4c6d78;outline-offset:2px}
.invoice-kind-click:focus-visible{outline:3px solid #225e9e;outline-offset:3px}
.invoice-kind-help{font-size:11px;color:#526b70;margin:0 0 8px}
#invoice-ledger-details{scroll-margin-top:18px}

/* Pinned invoice filters: dedicated right rail, no data overlap. */
body.invoice-filters-pinned main{margin-right:306px}
body.invoice-filters-pinned .invoice-ledger .invoice-filterbar{position:fixed;top:18px;right:18px;width:282px;z-index:40;margin:0;padding:16px;display:flex;flex-direction:column;align-items:stretch;gap:12px;background:#fff;border:1px solid #cfc2e1;border-top:4px solid #7047a6;border-left:1px solid #cfc2e1;border-radius:10px;box-shadow:0 8px 30px #2d1d4720;max-height:calc(100vh - 36px);overflow-y:auto}
.invoice-pin-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;padding-bottom:10px;border-bottom:1px solid #e7e0ef;color:#593487}
.invoice-pin-heading span{font-size:10px;background:#f0e8fa;padding:3px 7px;border-radius:4px;color:#7047a6}
body.invoice-filters-pinned .invoice-filterbar>label{display:flex;flex-direction:column;width:100%;font-size:12px}
body.invoice-filters-pinned .invoice-filterbar select{min-width:0;width:100%;max-width:none;font-size:12px}
body.invoice-filters-pinned .invoice-filterbar>.sub{margin:0;padding-top:10px;border-top:1px solid #e7e0ef;font-size:12px}
@media(max-width:1100px) and (min-width:801px){body.invoice-filters-pinned main{margin-right:258px}body.invoice-filters-pinned .invoice-ledger .invoice-filterbar{width:238px;right:12px;top:12px;padding:12px}}
@media(max-width:800px){body.invoice-filters-pinned main{margin-right:0;padding-top:228px}body.invoice-filters-pinned .invoice-ledger .invoice-filterbar{top:8px;right:12px;width:calc(100% - 24px);max-height:210px;padding:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px}.invoice-pin-heading,body.invoice-filters-pinned .invoice-filterbar>.sub{grid-column:1/-1}.invoice-pin-heading{padding-bottom:5px}body.invoice-filters-pinned .invoice-filterbar>label{font-size:10px}body.invoice-filters-pinned .invoice-filterbar select{font-size:11px;padding:6px}body.invoice-filters-pinned .invoice-filterbar>.sub{font-size:10px;padding-top:5px}}
@media print{body.invoice-filters-pinned main{margin-right:0}.invoice-filterbar{display:none!important}}

.sales-data-warnings:empty{display:none}
.sales-data-warnings>.sub{margin:9px 0 0;padding:9px 11px;background:#fff6e5;border:1px solid #eddbb5;border-left:3px solid #c08a32;color:#805b20;border-radius:5px;font-size:11px;line-height:1.6}

.sales-inline-store{display:flex;flex-direction:column;gap:4px;margin-top:8px;color:#38546b;font-size:10px;font-weight:650;text-transform:none}
.sales-inline-store select{width:100%;min-width:0;max-width:210px;background:#fff;border-color:#b9cede;color:#254c6c;font-size:11px;font-weight:400;padding:6px 8px}

/* Invoice/debt tables: one background per row, no rainbow money columns. */
.invoice-ledger .tablewrap thead th:nth-child(n){background:#eee8f5;color:#51356c;border-bottom-color:#cdbbdf}
.invoice-ledger .tablewrap tbody tr:nth-child(odd) td:nth-child(n){background:#fff;color:var(--ink)}
.invoice-ledger .tablewrap tbody tr:nth-child(even) td:nth-child(n){background:#f0ecf8;color:var(--ink)}
.invoice-ledger .tablewrap tbody td:nth-child(n) .sub{color:var(--muted)}

/* Revenue overview header: clear blue identity with readable controls. */
.sales-ledger .sales-overview>.sectionhead{background:#e4effc;border:1px solid #b7cee9;border-left:5px solid #24659d;box-shadow:0 2px 7px #225e9e0a}
.sales-ledger .sales-overview>.sectionhead h3{color:#174a7b;font-weight:800}
.sales-ledger .sales-overview>.sectionhead .sub{color:#416483}
.sales-ledger .sales-overview>.sectionhead .toolbar{background:#f2f7ff;padding:9px 10px;border:1px solid #cadcf0;border-radius:7px}
.sales-ledger .sales-overview>.sectionhead label{color:#28577f;font-weight:700}
.sales-ledger .sales-overview>.sectionhead input,.sales-ledger .sales-overview>.sectionhead select{background:#fff;border-color:#abc5df;color:#234f76}
.sales-ledger .sales-overview>.sectionhead button[data-action="sales-whole-month"]{background:#24659d;border-color:#24659d;color:#fff;box-shadow:0 2px 4px #174a7b14}
.sales-ledger .sales-overview>.sectionhead button[data-action="sales-whole-month"]:hover{background:#194d7d}

/* Three compact columns: calendar, missing days, store status. */
.sales-calendar-layout{grid-template-columns:minmax(300px,380px) minmax(220px,.8fr) minmax(300px,1fr);gap:12px}
.sales-calendar-middle{min-width:0}
.sales-calendar-middle .sales-missing-note{margin:0;max-width:none;padding:10px;border-radius:7px}
.sales-calendar-middle .sales-missing-note>summary{font-size:11px;line-height:1.5}
.sales-calendar-middle .sales-missing-note>p{font-size:10px;line-height:1.5;margin:6px 0}
.sales-calendar-middle .sales-missing-list{max-height:255px;overflow:auto;scrollbar-width:thin}
.sales-calendar-middle .sales-missing-list>div{display:block;padding:6px 0;font-size:10px;line-height:1.45}
.sales-calendar-middle .sales-missing-list button{font-size:10px;display:block;margin-bottom:3px}
.sales-calendar-middle .sales-missing-list span{display:block}
.sales-calendar-middle .sales-complete-note{margin:0;font-size:11px;line-height:1.6}
.sales-calendar-right .sales-store-status-list{grid-template-columns:1fr}
.sales-calendar-right .sales-store-status{padding:7px 9px}
.sales-calendar-right .sales-store-status b,.sales-calendar-right .sales-store-status span{font-size:11px;line-height:1.5}
.sales-ledger .sales-calendar-right .sales-entry-status{padding:12px}
@media(max-width:1250px){.sales-calendar-layout{grid-template-columns:minmax(290px,1fr) minmax(220px,1fr)}.sales-calendar-right{grid-column:1/-1}.sales-calendar-right .sales-store-status-list{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}}
@media(max-width:800px){.sales-calendar-layout{grid-template-columns:1fr}.sales-calendar-right{grid-column:auto}.sales-calendar-middle .sales-missing-list{max-height:150px}.sales-calendar-right .sales-store-status-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Half-height aligned calendar / missing days / store status workspace. */
@media(min-width:1251px){
.sales-calendar-layout{height:264px;align-items:stretch;grid-template-columns:minmax(280px,.9fr) minmax(225px,.9fr) minmax(300px,1.2fr);gap:10px}
.sales-calendar-left,.sales-calendar-middle,.sales-calendar-right{height:264px;min-height:0}
.sales-ledger .sales-calendar-layout .sales-calendar-panel{height:264px;overflow:hidden}
.sales-ledger .sales-calendar-layout .sales-calendar-panel>summary{height:30px;padding:6px 8px;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sales-ledger .sales-calendar-layout .sales-calendar{height:232px;grid-template-rows:15px repeat(var(--calendar-weeks,6),minmax(0,1fr));gap:3px;padding:4px}
.sales-ledger .sales-calendar-layout .sales-calendar-day{min-height:0;height:100%;padding:2px 3px;display:flex;align-items:center;justify-content:space-between;gap:2px}
.sales-ledger .sales-calendar-layout .sales-calendar-day>b{font-size:11px;line-height:1.2}
.sales-ledger .sales-calendar-layout .sales-calendar-day>span,.sales-ledger .sales-calendar-layout .sales-calendar-day>small{display:none}
.sales-ledger .sales-calendar-layout .sales-calendar-day::after{content:attr(data-compact-label);font-size:8px;line-height:1.2;font-weight:650}
.sales-calendar-middle .sales-missing-note{height:264px;margin:0;overflow:hidden;padding:9px;display:flex;flex-direction:column}
.sales-calendar-middle .sales-missing-note>summary{font-size:11px}
.sales-calendar-middle .sales-missing-note>p{margin:4px 0;font-size:10px;line-height:1.4}
.sales-calendar-middle .sales-missing-list{max-height:192px;height:192px;overflow:auto}
.sales-calendar-middle .sales-missing-list>div{padding:4px 0;line-height:1.3;font-size:10px}
.sales-calendar-right{display:flex;flex-direction:column;gap:5px}
.sales-ledger .sales-calendar-right .sales-entry-status{margin:0;padding:9px;flex:1;min-height:0;overflow:auto}
.sales-calendar-right .sales-entry-status h3{font-size:12px;margin:0 0 3px}
.sales-calendar-right .sales-entry-status>.sub{font-size:10px;line-height:1.35;margin:3px 0}
.sales-calendar-right .sales-store-status-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:6px}
.sales-calendar-right .sales-store-status{padding:5px 7px}
.sales-calendar-right .sales-store-status b,.sales-calendar-right .sales-store-status span{font-size:10px;line-height:1.35}
.sales-calendar-right .sales-data-warnings{flex:none}
.sales-calendar-right .sales-data-warnings>.sub{font-size:10px;line-height:1.3;padding:5px 7px;margin:3px 0 0}
}
@media(min-width:801px) and (max-width:1250px){.sales-calendar-layout{align-items:stretch}.sales-calendar-left,.sales-calendar-middle{height:264px}.sales-ledger .sales-calendar-layout .sales-calendar-panel{height:264px;overflow:auto}.sales-calendar-middle .sales-missing-note{height:264px;overflow:auto}.sales-ledger .sales-calendar-layout .sales-calendar-day{min-height:28px;padding:2px 3px}.sales-ledger .sales-calendar-layout .sales-calendar-day>span,.sales-ledger .sales-calendar-layout .sales-calendar-day>small{display:none}.sales-ledger .sales-calendar-layout .sales-calendar-day::after{content:attr(data-compact-label);font-size:8px;display:block}}

/* Color the identity and notes/action columns in the revenue table. */
.sales-ledger>.tablewrap .sales-column-totals th:first-child{background:#dce8f3;color:#294f70;border-top:3px solid #6285a3}
.sales-ledger>.tablewrap .sales-column-totals th:last-child{background:#e4eaf0;color:#425b72;border-top:3px solid #7c92a5}
.sales-ledger>.tablewrap thead tr:not(.sales-column-totals) th:nth-child(-n+2){background:#dce8f3;color:#294f70}
.sales-ledger>.tablewrap thead tr:not(.sales-column-totals) th:nth-child(n+9){background:#e4eaf0;color:#425b72}
.sales-ledger>.tablewrap tbody tr:nth-child(odd) td:nth-child(-n+2){background:#edf3f9;color:#29465e}
.sales-ledger>.tablewrap tbody tr:nth-child(even) td:nth-child(-n+2){background:#dce7f2;color:#29465e}
.sales-ledger>.tablewrap tbody tr:nth-child(odd) td:nth-child(n+9){background:#f0f3f6;color:#3f5365}
.sales-ledger>.tablewrap tbody tr:nth-child(even) td:nth-child(n+9){background:#e0e7ee;color:#3f5365}
.sales-ledger>.tablewrap tbody td:nth-child(2){border-right:1px solid #c5d5e2}
.sales-ledger>.tablewrap tbody td:nth-child(9){border-left:1px solid #d2dce5}

/* Compact daily revenue rows; cash/bank history stays stored, not displayed. */
.sales-ledger>.tablewrap tbody td{padding:8px 10px;line-height:1.4;font-size:12px}
.sales-ledger>.tablewrap tbody td .sub{line-height:1.35;font-size:10px;margin-top:3px}
.sales-ledger>.tablewrap tbody td:nth-child(9){font-size:11px}
.sales-ledger>.tablewrap tbody td button{padding:4px 8px;font-size:10px}

.sales-column-totals .sales-inline-store{margin:0 0 9px;gap:3px}
.sales-column-totals .sales-inline-store select{max-width:none}

/* Store activity: calm blue header, whole-row stripes and store markers. */
.store-activity-card{border:1px solid #c7d8e6;border-top:4px solid #316c9d;background:#fff}
.store-activity-card>.sectionhead{background:#e8f1fa;padding:12px 14px;border:1px solid #cedfec;border-radius:7px;margin-bottom:14px}
.store-activity-card>.sectionhead h2{color:#244f75}
.store-activity-card>.sectionhead .sub{color:#58748b}
.store-activity-card>.sectionhead button{background:#fff;border-color:#aac5dd;color:#285c86}
.store-activity-card .tablewrap thead th{background:#dce9f4;color:#315670;border-bottom:2px solid #b8cfdf}
.store-activity-card .tablewrap tbody tr:nth-child(odd) td{background:#f7fafd}
.store-activity-card .tablewrap tbody tr:nth-child(even) td{background:#e7eff7}
.store-activity-card .tablewrap tbody tr:hover td{background:#dceaf6}
.store-activity-card .tablewrap td{border-bottom-color:#d9e4ed}
.store-activity-card .tablewrap td:first-child{border-left:4px solid #6285a3}
.store-activity-card tr[data-store-index="0"] td:first-child{border-left-color:#225e9e}
.store-activity-card tr[data-store-index="1"] td:first-child{border-left-color:#6d43a0}
.store-activity-card tr[data-store-index="2"] td:first-child{border-left-color:#176c60}
.store-activity-card tr[data-store-index="3"] td:first-child{border-left-color:#96530f}
.store-activity-card tr[data-store-index="4"] td:first-child{border-left-color:#964568}
.store-activity-card .tablewrap td:last-child{color:#925015;font-weight:700}
.store-activity-card #activity-body>.sub{background:#f1f5f8;padding:9px 12px;border-radius:5px;color:#5a7082}

/* Monthly reports: restrained teal palette and short, aligned rows. */
.monthly-report-card{border:1px solid #bfd9d3;border-top:4px solid #277666;background:#fff}
.monthly-report-card>.sectionhead{background:#e5f3ef;border:1px solid #c8e1da;border-radius:7px;padding:12px 14px;margin-bottom:14px}
.monthly-report-card>.sectionhead h2{color:#215f52}
.monthly-report-card>.sectionhead .primary{background:#277666;border-color:#277666}
.monthly-report-card .reportperiod{color:#476f65;font-weight:650}
.monthly-report-card #monthly-report>.tablewrap th{background:#dceee8;color:#2c5c50}
.monthly-report-card #monthly-report>.tablewrap tbody tr:nth-child(odd) td{background:#fff}
.monthly-report-card #monthly-report>.tablewrap tbody tr:nth-child(even) td{background:#edf5f2}
.monthly-report-card #monthly-report>.tablewrap tbody tr:last-child td{background:#dceee6;border-top:2px solid #91baaa;font-weight:750}
.monthly-report-card .tablewrap td{padding:8px 10px;font-size:12px;line-height:1.4}
.monthly-report-card .tablewrap th{padding:10px;font-size:10px;line-height:1.45}
.monthly-report-card #monthly-report>section>.sectionhead{background:#edf4f7;padding:10px 12px;border:1px solid #d3e1e8;border-radius:6px}
.monthly-report-card #monthly-report>section>.sectionhead h3{color:#315c70}
.financial-trade-report .tablewrap{overflow:auto;border:1px solid #d2e1dd;border-radius:7px}
.financial-trade-report table{min-width:1000px;width:100%;table-layout:fixed}
.financial-trade-report .tablewrap th{background:#dcece7;color:#315e51;white-space:normal;font-size:10px;padding:9px 10px;line-height:1.4}
.financial-trade-report .tablewrap th:last-child{width:27%;background:#f3e9cc;color:#755b1b}
.financial-trade-report .tablewrap tbody td{padding:8px 10px;line-height:1.4;font-size:12px;vertical-align:middle;white-space:normal}
.financial-trade-report .tablewrap tbody tr:nth-child(odd) td{background:#fff}
.financial-trade-report .tablewrap tbody tr:nth-child(even) td{background:#edf5f2}
.financial-trade-report .tablewrap tbody tr:last-child td{background:#dceee6;border-top:2px solid #91baaa;font-weight:750}
.financial-vat-inline{display:flex;align-items:baseline;gap:10px;justify-content:space-between}
.financial-vat-inline>b{white-space:nowrap;color:#725314}
.financial-vat-note{font-size:10px;font-weight:400;color:#806c41;white-space:nowrap}
.financial-vat-note:empty{display:none}
.financial-trade-report>.hint{padding:8px 10px;font-size:11px;line-height:1.5;background:#fff7e7;border-left:3px solid #c29544}
.financial-trade-report>.sub{font-size:10px;line-height:1.5;padding-top:5px;color:#63776f}

/* Fixed page/account/store panel above the fixed invoice filters. */
:root{--pinned-header-height:260px}
body main{margin-right:306px}
body main>header{position:fixed;top:18px;right:18px;width:282px;z-index:50;display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:0;padding:16px;background:#fff;border:1px solid #c9dad5;border-top:4px solid #277666;border-radius:10px;box-shadow:0 7px 24px #183c3018}
body main>header h1{font-size:24px;line-height:1.2;margin:7px 0 2px;letter-spacing:-.5px;color:#244d45}
body main>header .eyebrow{font-size:9px;color:#607c73}
body main>header .controls{display:flex;flex-direction:column;gap:10px;width:100%;border-top:1px solid #e0e9e5;padding-top:11px}
body main>header .controls label{font-size:11px;color:#496b60;font-weight:650}
body main>header .controls select{width:100%;min-width:0;max-width:none;font-size:12px;background:#f6faf8;border-color:#c8dad1;color:#234f42}
body.invoice-filters-pinned .invoice-ledger .invoice-filterbar{top:calc(var(--pinned-header-height) + 30px);max-height:calc(100vh - var(--pinned-header-height) - 48px)}
@media(max-width:1100px) and (min-width:801px){body main{margin-right:258px}body main>header{top:12px;right:12px;width:238px;padding:12px}body.invoice-filters-pinned .invoice-ledger .invoice-filterbar{top:calc(var(--pinned-header-height) + 24px);max-height:calc(100vh - var(--pinned-header-height) - 36px)}}
@media(max-width:800px){body main{margin-right:0;padding-top:calc(var(--pinned-header-height) + 24px)}body main>header{top:8px;right:12px;width:calc(100% - 24px);padding:10px;gap:5px}body main>header h1{font-size:19px;margin:3px 0}body main>header .controls{flex-direction:row;gap:10px;padding-top:6px}body main>header .controls label{flex:1;min-width:0;font-size:10px}body main>header .controls select{font-size:11px;padding:6px}body.invoice-filters-pinned main{padding-top:calc(var(--pinned-header-height) + 240px)}body.invoice-filters-pinned .invoice-ledger .invoice-filterbar{top:calc(var(--pinned-header-height) + 18px);max-height:210px}}
@media print{body main{margin-right:0}body main>header{position:static;width:auto;box-shadow:none}}

/* Shared fixed right rail: filters and create actions stack without overlap. */
#workspace-rail{position:fixed;top:calc(var(--pinned-header-height) + 30px);right:18px;width:282px;z-index:40;display:flex;flex-direction:column;gap:12px;max-height:calc(100vh - var(--pinned-header-height) - 48px);overflow-y:auto;padding-bottom:3px;scrollbar-width:thin}
body.invoice-filters-pinned #workspace-rail .invoice-filterbar{position:static;inset:auto;width:100%;max-height:none;overflow:visible;margin:0;flex:none;display:flex;flex-direction:column;align-items:stretch;padding:14px;background:#fff;border:1px solid #cfc2e1;border-top:4px solid #7047a6;border-radius:9px;box-shadow:0 3px 12px #38224e10}
#workspace-rail .invoice-filterbar>label{width:100%;font-size:11px;font-weight:650;color:#526279}
#workspace-rail .invoice-filterbar select{min-width:0;max-width:none;width:100%;font-size:12px;background:#fff}
#workspace-rail .invoice-filterbar>.sub{font-size:11px;margin:0;padding-top:8px;border-top:1px solid #e7e0ef}
.workspace-rail-action{background:#fff;border:1px solid #d5e0e8;padding:12px;border-radius:9px}
.workspace-rail-action button{width:100%;padding:11px 10px;font-size:13px;font-weight:750;border-radius:6px}
.invoice-rail-action{border-color:#d5c6e8}.invoice-rail-action button{background:#7047a6;border-color:#7047a6;color:#fff}
.sales-rail-action{border-color:#bbd1e5}.sales-rail-action button{background:#24659d;border-color:#24659d;color:#fff}
.workspace-rail-sales-filter{background:#fff;border:1px solid #c4d7e9;border-top:4px solid #24659d;border-radius:9px;padding:14px}
.workspace-rail-sales-filter h3{font-size:13px;color:#24567d;margin:0 0 12px;padding-bottom:9px;border-bottom:1px solid #dce7f1}
.workspace-rail-sales-filter>.toolbar{display:flex;flex-direction:column;align-items:stretch;gap:12px;background:none;padding:0;border:0}
.workspace-rail-sales-filter label{font-size:11px;font-weight:650;color:#49657d}
.workspace-rail-sales-filter input,.workspace-rail-sales-filter select{width:100%;min-width:0;max-width:none;background:#f7fafd;border-color:#c3d5e4;font-size:12px}
.workspace-rail-sales-filter button{background:#e8f1fc;color:#24567d;border-color:#bfd1e6;font-weight:650}
@media(max-width:1100px) and (min-width:801px){#workspace-rail{top:calc(var(--pinned-header-height) + 24px);right:12px;width:238px;max-height:calc(100vh - var(--pinned-header-height) - 36px)}}
@media(max-width:800px){#workspace-rail{top:calc(var(--pinned-header-height) + 18px);right:12px;width:calc(100% - 24px);max-height:210px;gap:7px}body.invoice-filters-pinned #workspace-rail .invoice-filterbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px;padding:10px}.workspace-rail-action{padding:8px}.workspace-rail-sales-filter{padding:10px}.workspace-rail-sales-filter>.toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.workspace-rail-sales-filter button{grid-column:1/-1}.workspace-rail-sales-filter h3{margin-bottom:7px}}
@media print{#workspace-rail{display:none!important}}
@media(max-width:800px){body.workspace-rail-open main{padding-top:calc(var(--pinned-header-height) + 240px)}}

/* Revenue entry action stays at the lower-right viewport corner. */
#workspace-rail .sales-rail-action{position:fixed;right:18px;bottom:18px;width:282px;z-index:55;margin:0;background:#fff;box-shadow:0 5px 22px #174a7b25;border-color:#bbd1e5}
#workspace-rail:has(.sales-rail-action){max-height:calc(100vh - var(--pinned-header-height) - 132px)}
@media(max-width:1100px) and (min-width:801px){#workspace-rail .sales-rail-action{right:12px;bottom:12px;width:238px}}
@media(max-width:800px){#workspace-rail .sales-rail-action{right:12px;bottom:12px;width:min(282px,calc(100vw - 24px))}#workspace-rail:has(.sales-rail-action){max-height:210px}}

.invoice-ledger .invoice-dates{min-width:145px}
.invoice-date-caption{display:block;font-size:10px;color:#6c7b80;line-height:1.4}
.invoice-dates b{font-size:12px;line-height:1.5}
.invoice-due-date{margin-top:7px;padding-top:5px;border-top:1px solid #dcd7e6}
.invoice-due-date .badge{margin:3px 0}

/* Five compact staff/store cards in one desktop row. */
.store-staff-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;align-items:start}
.store-staff{min-width:0;padding:10px;border-top-width:4px!important}
.store-staff>.row{align-items:flex-start;gap:5px;flex-wrap:wrap}
.store-staff[data-store-index]>.row h3{font-size:13px;line-height:1.4}
.presence-count{font-size:10px;padding:3px 5px}
.staff-live-summary{padding:7px 8px;margin-top:8px;border-left-width:3px}
.staff-live-summary>span{font-size:8px;letter-spacing:.5px}
.staff-live-summary>strong{font-size:12px;line-height:1.4;margin-top:3px}
.store-staff>.sub{font-size:10px;line-height:1.45;margin:6px 0 8px}
.store-staff .staff{padding:8px 0;gap:6px}
.store-staff .avatar{width:25px;height:25px;flex:0 0 25px;font-size:11px}
.store-staff .staff-name{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.store-staff .presence-label{font-size:9px;padding:2px 4px;white-space:normal;line-height:1.35}
.store-staff .staffinfo .sub{font-size:10px;line-height:1.4}
.store-staff .staff-status-note{font-size:9px;line-height:1.4;padding-top:7px}
@media(max-width:1150px){.store-staff-grid{grid-template-columns:repeat(5,minmax(150px,1fr));overflow-x:auto;padding-bottom:7px}}
@media(max-width:700px){.store-staff-grid{grid-template-columns:repeat(5,165px)}}

/* Half-width fixed right rail on desktop. */
@media(min-width:801px){
body main,body.invoice-filters-pinned main{margin-right:164px}
body main>header{right:10px;top:12px;width:144px;padding:9px;gap:8px;border-top-width:3px}
body main>header h1{font-size:17px;letter-spacing:-.3px;overflow-wrap:anywhere}
body main>header .eyebrow{font-size:7px;letter-spacing:.6px;line-height:1.5}
body main>header .controls{gap:8px;padding-top:8px}
body main>header .controls label{font-size:9px;line-height:1.4}
body main>header .controls select{font-size:10px;padding:6px 4px;min-height:30px}
#workspace-rail{right:10px;width:144px;top:calc(var(--pinned-header-height) + 22px);gap:8px;max-height:calc(100vh - var(--pinned-header-height) - 38px)}
body.invoice-filters-pinned #workspace-rail .invoice-filterbar{padding:9px;gap:9px}
#workspace-rail .invoice-filterbar>label{font-size:9px;line-height:1.4}
#workspace-rail .invoice-filterbar select{font-size:10px;padding:6px 4px}
#workspace-rail .invoice-filterbar>.sub{font-size:9px;line-height:1.5}
#workspace-rail .invoice-pin-heading{gap:4px;flex-wrap:wrap;font-size:10px;padding-bottom:6px}
#workspace-rail .invoice-pin-heading span{font-size:8px;padding:2px 4px}
#workspace-rail .workspace-rail-action{padding:8px}
#workspace-rail .workspace-rail-action button{font-size:11px;padding:9px 5px;line-height:1.4;white-space:normal}
#workspace-rail .sales-rail-action{right:10px;bottom:12px;width:144px}
#workspace-rail:has(.sales-rail-action){max-height:calc(100vh - var(--pinned-header-height) - 118px)}
#workspace-rail .workspace-rail-sales-filter{padding:9px}
#workspace-rail .workspace-rail-sales-filter h3{font-size:11px;margin-bottom:9px}
#workspace-rail .workspace-rail-sales-filter>.toolbar{gap:9px}
#workspace-rail .workspace-rail-sales-filter label{font-size:9px}
#workspace-rail .workspace-rail-sales-filter input,#workspace-rail .workspace-rail-sales-filter select{font-size:10px;padding:6px 4px;min-width:0}
#workspace-rail .workspace-rail-sales-filter button{font-size:10px;padding:7px 5px}
}

/* Large invoice-entry action at the lower-right corner. */
#workspace-rail .invoice-rail-action{position:fixed;right:12px;bottom:14px;width:288px;padding:10px;z-index:55;margin:0;background:#fff;border:1px solid #c7b2e1;border-radius:10px;box-shadow:0 6px 24px #59348725}
#workspace-rail .invoice-rail-action button{width:100%;min-height:58px;padding:14px 12px;font-size:16px;font-weight:750;line-height:1.4;white-space:normal;background:#7047a6;border-color:#7047a6;color:#fff}
#workspace-rail:has(.invoice-rail-action){max-height:calc(100vh - var(--pinned-header-height) - 140px)}
@media(max-width:800px){#workspace-rail .invoice-rail-action{width:min(288px,calc(100vw - 24px));right:12px;bottom:12px}#workspace-rail:has(.invoice-rail-action){max-height:210px}}

/* Narrower, taller invoice-entry button. */
#workspace-rail .invoice-rail-action{width:144px;padding:8px;right:12px;bottom:14px}
#workspace-rail .invoice-rail-action button{min-height:104px;font-size:16px;line-height:1.5;padding:16px 10px;white-space:normal}
#workspace-rail:has(.invoice-rail-action){max-height:calc(100vh - var(--pinned-header-height) - 180px)}
@media(max-width:800px){#workspace-rail .invoice-rail-action{width:144px;max-width:calc(100vw - 24px)}#workspace-rail:has(.invoice-rail-action){max-height:210px}}

/* Compact navigation with distinct, consistent line icons. */
@media(min-width:701px){aside{width:190px;padding:24px 14px}main{margin-left:190px}aside .brand{font-size:29px}aside .brand small{font-size:8px;margin-bottom:32px}aside .eyebrow{font-size:8px;letter-spacing:1px}aside nav{max-height:calc(100vh - 220px)}aside .sidefoot{font-size:10px;bottom:20px}}
#nav button{display:flex;align-items:center;gap:10px;min-height:39px;padding:8px 9px;margin:3px 0;font-size:12px;line-height:1.3}#nav .nav-icon{width:19px;height:19px;flex:0 0 19px;color:#95bfb6}#nav .nav-label{min-width:0}#nav button.active .nav-icon{color:#f5d18b}#nav button:hover .nav-icon{color:white}#nav button:focus-visible{outline:2px solid #f5d18b;outline-offset:2px}
@media(max-width:700px){#nav button{flex-shrink:0;gap:6px}#nav .nav-icon{width:17px;height:17px;flex-basis:17px}}

/* Combined purchase overview, alongside document categories. */
.invoice-kind-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.invoice-kind-summary .card:nth-child(2){background:var(--debt-bg);border-color:#f0cfad;border-top:4px solid var(--debt)}.invoice-kind-summary .card:nth-child(2) h3{color:var(--debt)}.invoice-kind-summary .card.invoice-total-summary{background:#edf4ff;border-color:#bfd3ef;border-top:4px solid #2865a3}.invoice-kind-summary .card.invoice-total-summary h3{color:#20578e}.invoice-total-amount{display:block;font-size:25px;color:#20578e;margin:12px 0}.invoice-total-summary .tax-total{background:#dce9fb}@media(max-width:950px){.invoice-kind-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-total-summary{grid-column:1/-1}}@media(max-width:600px){.invoice-kind-summary{grid-template-columns:1fr}}

/* Compact purchase summary: total first, then faktura categories. */
.invoice-kind-summary{gap:12px;align-items:stretch}.invoice-kind-summary .card{padding:10px 13px;margin-bottom:12px;border-top-width:3px}.invoice-kind-summary h3{font-size:14px;margin:0 0 5px}.invoice-kind-summary .invoice-kind-help{display:none}.invoice-kind-summary .sub{font-size:10px;margin:3px 0}.invoice-kind-summary .invoice-summary-tax{margin-top:6px;padding-top:5px;font-size:11px}.invoice-kind-summary .invoice-summary-tax>div{padding:1px 5px;line-height:1.35}.invoice-kind-summary .invoice-total-amount{font-size:22px;line-height:1.2;margin:5px 0}.invoice-kind-summary .card:nth-child(2){background:var(--expense-bg);border-color:#b9ded0;border-top-color:var(--expense)}.invoice-kind-summary .card:nth-child(2) h3{color:var(--expense)}.invoice-kind-summary .card:last-child{background:var(--debt-bg);border-color:#f0cfad;border-top-color:var(--debt)}.invoice-kind-summary .card:last-child h3{color:var(--debt)}.invoice-kind-summary .card.invoice-total-summary{background:#edf4ff;border-color:#bfd3ef;border-top-color:#2865a3}.invoice-kind-summary .card.invoice-total-summary h3{color:#20578e}.invoice-total-summary>p:last-child{display:none}@media(min-width:601px) and (max-width:950px){.invoice-kind-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.invoice-total-summary{grid-column:auto}}

/* Short ledger rows, aligned first lines and unwrapped references/tax amounts. */
.invoice-ledger tbody td{vertical-align:top;padding:9px 10px;line-height:1.4}.invoice-ledger tbody td>b,.invoice-ledger .invoice-entry-date b{font-size:12px;line-height:1.4}.invoice-ledger .invoice-dates{min-width:180px}.invoice-ledger .invoice-due-date{margin-top:4px;padding-top:3px;display:flex;align-items:center;gap:5px;flex-wrap:wrap}.invoice-ledger .invoice-due-date .invoice-date-caption{display:inline;font-size:10px}.invoice-ledger .invoice-due-date>div{display:inline}.invoice-ledger .invoice-due-date .badge{margin:0;padding:2px 5px;font-size:10px}.invoice-ledger .invoice-due-date button{padding:3px 5px;font-size:10px}.invoice-ledger .invoice-supplier{white-space:nowrap}.invoice-ledger .invoice-supplier .sub{margin-top:3px;line-height:1.3}.invoice-ledger td:nth-child(6){white-space:nowrap}.invoice-ledger .invoice-tax-line{display:inline-block;white-space:nowrap}.invoice-ledger .invoice-tax-line+.invoice-tax-line{margin-left:10px}.invoice-ledger th{white-space:nowrap}.invoice-ledger table{min-width:1250px}.invoice-ledger td:nth-child(6) .sub{display:inline;margin-left:5px}

.invoice-supplier-heading{display:flex;align-items:baseline;gap:8px;white-space:nowrap}.invoice-supplier-heading>b{font-size:12px;line-height:1.4}.invoice-vs{font-size:11px;color:#665080;font-weight:600;white-space:nowrap}

/* Entry date beside the internal sequence; due date has its own aligned cell. */
.invoice-ledger .invoice-reference{white-space:nowrap}.invoice-reference .invoice-entry-date{display:inline-block;margin-left:12px;font-size:12px;line-height:1.4}.invoice-ledger .invoice-due-date{margin-top:0;padding-top:0;border-top:0;flex-wrap:nowrap;white-space:nowrap;align-items:baseline}.invoice-ledger .invoice-dates{min-width:215px}

/* Independent sequence, entry-date and due-date columns, aligned on one row. */
.invoice-ledger td.invoice-entry-date{white-space:nowrap;font-size:12px;line-height:1.4;margin:0;min-width:100px}.invoice-ledger tbody td{vertical-align:top}.invoice-ledger td:nth-child(6){white-space:normal}.invoice-ledger td:nth-child(7){white-space:nowrap}.invoice-ledger table{min-width:1350px}

/* Due status and editing stay beneath the due date. */
.invoice-ledger .invoice-due-date{display:block;min-width:0}.invoice-ledger .invoice-due-date>div.invoice-due-meta{display:flex;align-items:center;gap:5px;margin-top:4px;white-space:nowrap}.invoice-ledger .invoice-dates{min-width:155px}

/* Consistent ledger row height, first-line rhythm and secondary-line spacing. */
.invoice-ledger tbody tr{height:72px}.invoice-ledger tbody td{padding:10px 10px;vertical-align:top;font-size:12px;line-height:18px}.invoice-ledger tbody td>b,.invoice-ledger .invoice-supplier-heading,.invoice-ledger .invoice-supplier-heading>b,.invoice-ledger .invoice-due-date>b,.invoice-ledger td.invoice-entry-date,.invoice-ledger .invoice-tax-line{font-size:12px;line-height:18px}.invoice-ledger .invoice-supplier-heading{min-height:18px;align-items:baseline}.invoice-ledger tbody td .sub{margin-top:5px;font-size:11px;line-height:18px}.invoice-ledger .invoice-due-date>div.invoice-due-meta{margin-top:5px;min-height:24px;align-items:center}.invoice-ledger tbody td button{vertical-align:top;line-height:18px;padding:2px 6px;min-height:24px}.invoice-ledger .invoice-due-meta .badge{line-height:18px;padding:2px 5px}.invoice-ledger tbody td:nth-child(8) .sub{margin-top:0}.invoice-ledger tbody td:nth-child(9){white-space:nowrap}

/* Clear purchase-summary hierarchy and aligned financial detail. */
.invoice-kind-summary{gap:14px}.invoice-kind-summary .card{padding:14px 16px;margin-bottom:16px;border-radius:10px;box-shadow:0 2px 6px #173b3c0a}.invoice-kind-summary h3{font-size:14px;line-height:20px;margin:0 0 7px;font-weight:750}.invoice-kind-summary .purchase-summary-amount,.invoice-kind-summary .invoice-total-amount{display:block;font-size:25px;line-height:30px;font-weight:800;margin:0 0 2px;font-variant-numeric:tabular-nums;letter-spacing:-.4px}.invoice-kind-summary .purchase-summary-count,.invoice-kind-summary .sub{font-size:11px;line-height:17px;color:#566a76}.invoice-kind-summary .purchase-summary-count{display:block}.invoice-kind-summary .invoice-summary-tax{border-top:1px solid #cbd9df;margin-top:9px;padding-top:7px;display:grid;gap:3px}.invoice-kind-summary .invoice-summary-tax>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:12px;line-height:18px;padding:1px 0}.invoice-kind-summary .invoice-summary-tax b{white-space:nowrap;font-variant-numeric:tabular-nums}.invoice-kind-summary .invoice-summary-tax .tax-total{margin-top:3px;padding:5px 7px;border-radius:4px;font-weight:700}.invoice-kind-summary .card:first-child{background:#f0f6ff}.invoice-kind-summary .card:nth-child(2){background:#eff8f4}.invoice-kind-summary .card:last-child{background:#fff7ee}.invoice-kind-summary .card[aria-pressed="true"]{outline:2px solid #617c90;outline-offset:2px}.invoice-kind-summary .card:focus-visible{outline:3px solid #2465a7;outline-offset:3px}.invoice-kind-summary .card:hover{box-shadow:0 3px 10px #173b3c18}

/* Supplier name above its payment reference. */
.invoice-ledger .invoice-supplier-heading{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.invoice-ledger .invoice-supplier-heading .invoice-vs{display:block;line-height:18px;font-size:11px}

/* Fit invoice filters within the narrow pinned rail. */
#workspace-rail .invoice-filterbar{width:100%;min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere;gap:9px;padding:10px 8px}#workspace-rail .invoice-filterbar>*{min-width:0;max-width:100%;box-sizing:border-box}#workspace-rail .invoice-filterbar label{width:100%;min-width:0;gap:4px;font-size:9px}#workspace-rail .invoice-filterbar select{display:block;width:100%;min-width:0!important;max-width:100%;padding:6px 17px 6px 5px;font-size:9px;text-overflow:ellipsis;box-sizing:border-box}#workspace-rail .invoice-pin-heading{display:flex;gap:4px;flex-wrap:wrap;align-items:center;font-size:9px}#workspace-rail .invoice-pin-heading b{min-width:0;overflow-wrap:anywhere}#workspace-rail .invoice-filterbar p.sub{width:100%;white-space:normal;overflow-wrap:anywhere;font-size:9px;line-height:1.5;margin:0}#workspace-rail{overflow-x:hidden}

/* Half-height purchase overview with compact two-column tax details. */
.invoice-kind-summary{gap:12px}.invoice-kind-summary .card{padding:9px 12px;margin-bottom:12px}.invoice-kind-summary h3{font-size:13px;line-height:17px;margin-bottom:3px}.invoice-kind-summary .purchase-summary-amount,.invoice-kind-summary .invoice-total-amount{font-size:21px;line-height:25px;margin:0}.invoice-kind-summary .purchase-summary-count,.invoice-kind-summary .sub{font-size:10px;line-height:14px;margin:1px 0}.invoice-kind-summary .invoice-summary-tax{margin-top:5px;padding-top:4px;gap:2px 10px;grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-kind-summary .invoice-summary-tax>div{font-size:10px;line-height:14px;padding:0;gap:5px}.invoice-kind-summary .invoice-summary-tax .tax-total{padding:2px 5px;margin-top:0}.invoice-kind-summary .invoice-total-summary .invoice-summary-tax{grid-template-columns:1fr}.invoice-kind-summary .invoice-total-summary .invoice-summary-tax>div{line-height:14px}.invoice-kind-summary .card:nth-child(2) .invoice-summary-tax>div:first-child{grid-column:1/-1}.invoice-kind-summary .card:nth-child(2) .invoice-summary-tax .tax-total{grid-column:1/-1}.invoice-kind-summary .card:last-child>p.sub:last-child{max-width:100%;font-size:10px}@media(max-width:600px){.invoice-kind-summary .invoice-summary-tax{grid-template-columns:1fr}}

/* Uniform first-line boxes keep every invoice column aligned. */
.invoice-ledger tbody td{padding:8px 10px;line-height:20px;vertical-align:top}.invoice-ledger tbody td>b,.invoice-ledger .invoice-primary-text,.invoice-ledger .invoice-due-date>b{display:inline-block;line-height:24px;min-height:24px;vertical-align:top}.invoice-ledger .invoice-supplier-heading>b{line-height:24px;min-height:24px}.invoice-ledger .invoice-supplier-heading{gap:2px}.invoice-ledger .invoice-tax-line{line-height:24px;vertical-align:top}.invoice-ledger tbody td .sub{line-height:20px;margin-top:2px}.invoice-ledger .invoice-due-date>div.invoice-due-meta{margin-top:2px}.invoice-ledger .invoice-vs{line-height:20px!important}.invoice-ledger tbody td:nth-child(8)>span.sub{display:inline-block;line-height:24px;margin-top:0}.invoice-ledger tbody td:nth-child(9) button{margin-top:0;line-height:20px;min-height:24px;padding:1px 6px}.invoice-ledger tbody tr{height:66px}

/* Total amount sits beside its heading in the purchase overview. */
.invoice-kind-summary .invoice-total-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;align-content:start}.invoice-kind-summary .invoice-total-summary h3{grid-column:1;grid-row:1;align-self:center;margin:0}.invoice-kind-summary .invoice-total-summary .invoice-total-amount{grid-column:2;grid-row:1;text-align:right;white-space:nowrap;font-size:21px;line-height:26px}.invoice-kind-summary .invoice-total-summary>p,.invoice-kind-summary .invoice-total-summary>.invoice-summary-tax{grid-column:1/-1}

.purchase-summary-meta{display:flex;align-items:baseline;gap:5px;white-space:nowrap;font-size:10px;line-height:16px;color:#566a76;margin-top:1px}.purchase-summary-meta span{white-space:nowrap}

/* Match all purchase summary cards to the total-card arrangement. */
.invoice-kind-summary>.card{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;align-content:start}.invoice-kind-summary>.card>h3{grid-column:1;grid-row:1;align-self:center;margin:0}.invoice-kind-summary>.card>.purchase-summary-amount{grid-column:2;grid-row:1;text-align:right;white-space:nowrap;font-size:21px;line-height:26px;margin:0}.invoice-kind-summary>.card>.purchase-summary-meta,.invoice-kind-summary>.card>.invoice-summary-tax,.invoice-kind-summary>.card>p{grid-column:1/-1}.invoice-kind-summary>.card>.purchase-summary-meta{margin-top:1px;min-height:16px}

/* Reordered ledger: entry date first, due tracking near the end. */
.invoice-ledger tbody td:nth-child(6){white-space:nowrap}.invoice-ledger tbody td:nth-child(7){white-space:nowrap}.invoice-ledger tbody td:nth-child(7)>span.sub{display:inline-block;line-height:24px;margin-top:0}.invoice-ledger tbody td:nth-child(8){white-space:nowrap}

/* Align outstanding balance with the faktura VAT-total row. */
.invoice-kind-summary .invoice-total-summary .invoice-summary-tax{grid-template-rows:repeat(3,14px) auto;row-gap:2px}.invoice-kind-summary .invoice-total-summary .invoice-summary-tax .tax-total{grid-row:4}

.invoice-kind-summary .purchase-summary-net{grid-column:2;grid-row:2;text-align:right;white-space:nowrap;font-size:11px;line-height:17px;color:#48645b}.invoice-kind-summary .purchase-summary-net+.purchase-summary-meta{grid-column:1;grid-row:2;font-size:9px}.invoice-kind-summary .card:nth-child(2) .invoice-summary-tax>div:first-child{grid-column:auto}

/* Dashboard amounts at top right, concise store breakdown below. */
.dashboard-shortcut{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start;gap:9px 8px;text-align:left;padding:14px!important}.dashboard-shortcut>small{align-self:center;font-size:12px;line-height:17px}.dashboard-shortcut>strong{font-size:23px;margin:0;line-height:28px;white-space:nowrap;text-align:right;letter-spacing:-.5px}.dashboard-store-summary{grid-column:1/-1;border-top:1px solid #9bb4c344;padding-top:6px;display:grid;gap:3px}.dashboard-store-summary>div{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:11px;line-height:17px}.dashboard-store-summary b{font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}.dashboard-store-summary span{color:#526978}@media(min-width:1101px) and (max-width:1500px){.dashboard-shortcut>strong{font-size:19px}.dashboard-shortcut>small{font-size:11px}}

/* Three VAT rates on one row; VAT total on its own lower row. */
.invoice-kind-summary .card:nth-child(2) .invoice-summary-tax{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 8px}.invoice-kind-summary .card:nth-child(2) .invoice-summary-tax>div{display:flex;flex-direction:column;gap:0;align-items:flex-start;white-space:nowrap}.invoice-kind-summary .card:nth-child(2) .invoice-summary-tax>.summary-unclassified,.invoice-kind-summary .card:nth-child(2) .invoice-summary-tax>.tax-total{grid-column:1/-1;flex-direction:row;justify-content:space-between}.invoice-kind-summary .card:nth-child(2) .invoice-summary-tax>.tax-total{order:2}

/* Dense invoice rows with two compact, aligned text lines. */
.invoice-ledger tbody tr{height:38px}.invoice-ledger tbody td{padding:3px 8px;font-size:11px;line-height:15px}.invoice-ledger tbody td>b,.invoice-ledger .invoice-primary-text,.invoice-ledger .invoice-due-date>b,.invoice-ledger .invoice-supplier-heading>b,.invoice-ledger .invoice-tax-line{min-height:16px;line-height:16px;font-size:11px}.invoice-ledger tbody td.invoice-entry-date{font-size:11px;line-height:16px}.invoice-ledger .invoice-supplier-heading{min-height:16px;gap:0}.invoice-ledger .invoice-supplier-heading .invoice-vs{font-size:10px;line-height:15px!important}.invoice-ledger tbody td .sub{margin-top:0;font-size:10px;line-height:15px}.invoice-ledger .invoice-due-date>div.invoice-due-meta{min-height:17px;margin-top:0;gap:3px}.invoice-ledger tbody td button,.invoice-ledger tbody td:nth-child(9) button{min-height:17px;padding:0 4px;line-height:15px;font-size:10px}.invoice-ledger .invoice-due-meta .badge{padding:0 4px;line-height:16px;font-size:9px}.invoice-ledger tbody td:nth-child(7)>span.sub{line-height:16px}.invoice-ledger tbody td:nth-child(8) .sub{line-height:15px}

#tax>label:first-child{grid-column:1/-1}#tax input[readonly]{background:#edf5f1;color:#17664e;font-weight:700}

/* Compact, collapsible sales tracking area. */
.sales-tracking-panel>summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:11px;font-weight:700;color:#28577e;padding:4px 6px;list-style:none}.sales-tracking-panel>summary::-webkit-details-marker{display:none}.tracking-toggle-label{padding:3px 8px;background:white;border:1px solid #c7d9e8;border-radius:5px;font-size:10px}.sales-tracking-panel[open] .tracking-expand,.sales-tracking-panel:not([open]) .tracking-collapse{display:none}.sales-tracking-panel .sales-calendar-layout{height:170px;min-height:0;gap:7px;margin-top:5px;align-items:stretch}.sales-tracking-panel .sales-calendar-left,.sales-tracking-panel .sales-calendar-middle,.sales-tracking-panel .sales-calendar-right{min-height:0;max-height:170px;overflow:auto}.sales-tracking-panel .sales-calendar-panel{height:100%;margin:0}.sales-tracking-panel .sales-calendar{height:145px;min-height:0;gap:2px}.sales-tracking-panel .sales-calendar-day{min-height:0;padding:1px 3px;font-size:9px}.sales-tracking-panel .sales-calendar-day b{font-size:9px}.sales-tracking-panel .sales-calendar-panel>summary{font-size:9px;padding:3px}.sales-tracking-panel .sales-entry-status{padding:6px}.sales-tracking-panel .sales-entry-status h3{font-size:11px;margin-bottom:3px}.sales-tracking-panel .sales-entry-status .sub,.sales-tracking-panel .sales-data-warnings .sub{font-size:9px;line-height:13px}.sales-tracking-panel .sales-data-warnings .sub{padding:3px 5px;margin:3px 0}@media(max-width:800px){.sales-tracking-panel .sales-calendar-layout{height:auto}.sales-tracking-panel .sales-calendar-left,.sales-tracking-panel .sales-calendar-middle,.sales-tracking-panel .sales-calendar-right{max-height:180px}}

/* QR is the last ledger column; due-date editing uses invoice edit. */
.invoice-ledger tbody td:nth-child(9)>span.sub{display:inline-block;line-height:16px;margin:0}.invoice-ledger tbody td:nth-child(8){white-space:nowrap}.invoice-ledger tbody td:nth-child(8) button{margin-top:0;min-height:17px;line-height:15px;padding:0 4px}

/* Warm pale-yellow invoice ledger, replacing the purple theme. */
.invoice-ledger{background:#fffef9;border-color:#e8dbad;border-top-color:#b58b25}.invoice-ledger>.sectionhead h2{color:#765b18}.invoice-ledger>.sectionhead{border-bottom-color:#eee2bd}.invoice-ledger .invoice-period-controls{background:#fff7d9;border-color:#ecdda6;border-left-color:#c39a35}.invoice-ledger .invoice-period-controls label,.invoice-ledger .invoice-period-label{color:#756237}.invoice-ledger .invoice-period-controls button.primary{background:#9a741b;border-color:#9a741b;color:white}.invoice-ledger .tablewrap thead th:nth-child(n){background:#f7edc9;color:#6b551b;border-bottom-color:#dfcd8d}.invoice-ledger .tablewrap tbody tr:nth-child(odd) td:nth-child(n){background:#fffef9}.invoice-ledger .tablewrap tbody tr:nth-child(even) td:nth-child(n){background:#fff7dc}.invoice-ledger td button[data-action^="invoice-edit:"]{background:#fff4cc;border-color:#ddc77f;color:#745615}.invoice-ledger td button:hover{background:#f9edc2;border-color:#cfb467;color:#624c17}.invoice-ledger .invoice-vs{color:#786332}#workspace-rail .invoice-filterbar{border-color:#e4d39c;border-top-color:#b58b25;background:#fffdf5}#workspace-rail .invoice-pin-heading{color:#765b18}#workspace-rail .invoice-pin-heading span{background:#f7edc9;color:#765b18}#workspace-rail .invoice-rail-action button{background:#97721b;border-color:#97721b}#workspace-rail .invoice-rail-action{border-color:#e4d39c}
.invoice-kind-summary .card:nth-child(2) .invoice-summary-tax>.tax-total{margin-top:16px}

/* Soft blue invoice workspace with consistent alternating rows. */
.invoice-ledger{background:#fbfdff;border-color:#ccdeed;border-top-color:#568bb8}.invoice-ledger>.sectionhead h2{color:#2f5c80}.invoice-ledger>.sectionhead{border-bottom-color:#dce8f2}.invoice-ledger .invoice-period-controls{background:#eaf3fc;border-color:#cddff0;border-left-color:#709fc7}.invoice-ledger .invoice-period-controls label,.invoice-ledger .invoice-period-label{color:#496b87}.invoice-ledger .invoice-period-controls button.primary{background:#467da9;border-color:#467da9;color:#fff}.invoice-ledger .tablewrap thead th:nth-child(n){background:#dcebf7;color:#355b79;border-bottom-color:#b9d2e6}.invoice-ledger .tablewrap tbody tr:nth-child(odd) td:nth-child(n){background:#fff}.invoice-ledger .tablewrap tbody tr:nth-child(even) td:nth-child(n){background:#edf5fc}.invoice-ledger td button[data-action^="invoice-edit:"]{background:#e6f1fc;border-color:#bcd3e8;color:#35648a}.invoice-ledger td button:hover{background:#dbeafa;border-color:#9dbed9;color:#254e70}.invoice-ledger .invoice-vs{color:#56748d}#workspace-rail .invoice-filterbar{background:#f8fbff;border-color:#c9ddec;border-top-color:#568bb8}#workspace-rail .invoice-pin-heading{color:#355b79}#workspace-rail .invoice-pin-heading span{background:#e1edf8;color:#355b79}#workspace-rail .invoice-rail-action{border-color:#c9ddec}#workspace-rail .invoice-rail-action button{background:#467da9;border-color:#467da9}

/* One consistent text rhythm across all nine ledger columns. */
#invoice-ledger-details tbody tr{height:40px}#invoice-ledger-details tbody td{vertical-align:top;padding:4px 8px;font-size:11px;line-height:16px}#invoice-ledger-details tbody td>b,#invoice-ledger-details .invoice-primary-text,#invoice-ledger-details .invoice-due-date>b,#invoice-ledger-details .invoice-supplier-heading>b,#invoice-ledger-details .invoice-tax-line{display:inline-block;min-height:16px;font-size:11px;line-height:16px;vertical-align:top;margin-top:0}#invoice-ledger-details .invoice-supplier-heading{min-height:16px;gap:0;line-height:16px}#invoice-ledger-details tbody td .sub,#invoice-ledger-details .invoice-supplier-heading .invoice-vs{font-size:10px;line-height:16px!important;margin:0}#invoice-ledger-details .invoice-due-date{margin:0;padding:0;line-height:16px}#invoice-ledger-details .invoice-due-date>div.invoice-due-meta{margin:0;min-height:16px;line-height:16px}#invoice-ledger-details tbody td button{box-sizing:border-box;min-height:16px;line-height:14px;font-size:10px;padding:0 4px;margin:0;vertical-align:top}#invoice-ledger-details tbody td:last-child>span.sub{display:inline-block;min-height:16px;line-height:16px;margin:0}#invoice-ledger-details .invoice-due-meta .badge{line-height:14px;padding:0 4px;margin:0}#invoice-ledger-details tbody td.invoice-entry-date{font-size:11px;line-height:16px}

/* Right-align monetary columns, including their currency suffix. */
#invoice-ledger-details table th:nth-child(4),#invoice-ledger-details table th:nth-child(5),#invoice-ledger-details table td:nth-child(4),#invoice-ledger-details table td:nth-child(5){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}#invoice-ledger-details table td:nth-child(4)>b{width:100%;text-align:right}

#invoice-ledger-details table tbody td:nth-child(5){font-weight:750}


#invoice-ledger-details tbody td:nth-child(8) button[data-action^='invoice-edit:'],#invoice-ledger-details tbody td:nth-child(8) button[data-action^='pay:']{font-size:12px;line-height:20px;min-height:30px;padding:4px 10px;font-weight:700;border-radius:5px;vertical-align:top}#invoice-ledger-details tbody td:nth-child(8){white-space:nowrap}


#workspace-rail .sales-rail-action button.primary{min-height:96px;font-size:14px;line-height:1.5;padding:14px 8px;white-space:normal}#workspace-rail:has(.sales-rail-action){max-height:calc(100vh - var(--pinned-header-height) - 190px)}@media(max-width:800px){#workspace-rail:has(.sales-rail-action){max-height:210px}}


/* Fit the full monthly calendar and all store statuses without nested scrolling. */
.sales-tracking-panel .sales-calendar-layout{height:180px;grid-template-columns:1fr 1fr 1.35fr;align-items:stretch}.sales-tracking-panel .sales-calendar-left,.sales-tracking-panel .sales-calendar-middle,.sales-tracking-panel .sales-calendar-right{height:180px;max-height:none;overflow:visible;min-width:0}.sales-tracking-panel .sales-calendar-panel{height:180px;max-height:none;overflow:hidden;display:flex;flex-direction:column}.sales-tracking-panel .sales-calendar-panel>summary{flex:0 0 19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sales-tracking-panel .sales-calendar{flex:1;height:auto;min-height:0;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:12px repeat(var(--calendar-weeks),minmax(0,1fr));gap:2px;padding:3px}.sales-tracking-panel .sales-calendar-day{height:auto!important;min-height:0!important;padding:1px 2px!important;line-height:12px;overflow:hidden}.sales-tracking-panel .sales-calendar-day b{font-size:9px;line-height:12px}.sales-tracking-panel .sales-calendar-day::after{font-size:8px;line-height:10px}.sales-tracking-panel .sales-calendar-day span,.sales-tracking-panel .sales-calendar-day small{display:none}.sales-tracking-panel .sales-missing-note{height:180px;max-height:none;margin:0;padding:6px;overflow:visible}.sales-tracking-panel .sales-missing-note summary{font-size:10px;line-height:15px}.sales-tracking-panel .sales-missing-note>p{font-size:9px;line-height:12px;margin:2px 0 5px}.sales-tracking-panel .sales-missing-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;max-height:none;overflow:visible}.sales-tracking-panel .sales-missing-list>div{padding:0;border:0;display:block}.sales-tracking-panel .sales-missing-list button{font-size:9px;line-height:14px;padding:1px 3px;background:#fff1ee;border:1px solid #efd7d0;border-radius:3px;text-decoration:none;width:100%}.sales-tracking-panel .sales-entry-status{max-height:none;height:auto;overflow:visible;padding:6px}.sales-tracking-panel .sales-entry-status h3{font-size:10px;line-height:14px;margin:0 0 2px}.sales-tracking-panel .sales-store-status-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;margin-top:4px}.sales-tracking-panel .sales-store-status{padding:3px 5px}.sales-tracking-panel .sales-store-status b,.sales-tracking-panel .sales-store-status span{font-size:9px;line-height:12px}.sales-tracking-panel .sales-entry-status>p:last-child{display:none}.sales-tracking-panel .sales-data-warnings .sub{font-size:8px;line-height:10px;padding:2px 4px;margin:3px 0}@media(max-width:800px){.sales-tracking-panel .sales-calendar-layout{height:auto;grid-template-columns:1fr}.sales-tracking-panel .sales-calendar-right{height:auto}.sales-tracking-panel .sales-missing-list{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* Two sales tracking panels after removing the separate missing-date list. */
.sales-tracking-panel .sales-calendar-layout{grid-template-columns:minmax(250px,1fr) minmax(0,1.5fr);height:auto;min-height:180px}.sales-tracking-panel .sales-calendar-left,.sales-tracking-panel .sales-calendar-right{grid-column:auto;grid-row:auto;height:180px}.sales-tracking-panel .sales-calendar-panel{display:block;height:180px}.sales-tracking-panel .sales-calendar-panel[open] .sales-calendar{display:grid;height:151px;grid-template-rows:12px repeat(var(--calendar-weeks),minmax(0,1fr))}.sales-tracking-panel .sales-calendar-day{max-height:24px}@media(max-width:800px){.sales-tracking-panel .sales-calendar-layout{grid-template-columns:1fr}.sales-tracking-panel .sales-calendar-right{height:auto}}

/* Override older tall calendar rules so its frame hugs the compact month. */
.sales-ledger .sales-tracking-panel .sales-calendar-layout{height:180px;min-height:0;align-items:start}.sales-ledger .sales-tracking-panel .sales-calendar-layout .sales-calendar-left,.sales-ledger .sales-tracking-panel .sales-calendar-layout .sales-calendar-right{height:180px;max-height:180px;min-height:0;overflow:visible}.sales-ledger .sales-tracking-panel .sales-calendar-layout .sales-calendar-panel{height:180px;min-height:0;max-height:180px;overflow:hidden;margin:0;padding:0}.sales-ledger .sales-tracking-panel .sales-calendar-layout .sales-calendar-panel>summary{height:22px;min-height:0;padding:3px 5px;font-size:9px;line-height:16px;box-sizing:border-box}.sales-ledger .sales-tracking-panel .sales-calendar-layout .sales-calendar{height:156px;min-height:0;grid-template-rows:12px repeat(var(--calendar-weeks,6),minmax(0,1fr));gap:2px;padding:3px;box-sizing:border-box}.sales-ledger .sales-tracking-panel .sales-calendar-right .sales-entry-status{height:auto;max-height:none;overflow:visible}.sales-ledger .sales-tracking-panel .sales-calendar-right .sales-store-status-list{gap:3px;margin-top:3px}.sales-ledger .sales-tracking-panel .sales-calendar-right .sales-store-status{padding:2px 5px}@media(max-width:800px){.sales-ledger .sales-tracking-panel .sales-calendar-layout{height:auto}.sales-ledger .sales-tracking-panel .sales-calendar-layout .sales-calendar-right{height:auto;max-height:none}}

.sales-entry-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}.sales-ledger .sales-entry-heading h3{margin:0;white-space:nowrap}.sales-ledger .sales-entry-heading>p.sub{margin:0;font-size:9px;line-height:14px;text-align:right}.sales-entry-heading+.sales-store-status-list{margin-top:5px}

/* Keep pinned sales controls within their panel; put picker affordances on the left. */
#workspace-rail .workspace-rail-sales-filter{width:100%;min-width:0;max-width:100%;padding:9px 8px;box-sizing:border-box;overflow:hidden}#workspace-rail .workspace-rail-sales-filter .toolbar{display:flex;flex-direction:column;align-items:stretch;width:100%;min-width:0;gap:8px}#workspace-rail .workspace-rail-sales-filter .toolbar>*{min-width:0;max-width:100%;width:100%;box-sizing:border-box}#workspace-rail .workspace-rail-sales-filter label{font-size:9px;gap:4px}#workspace-rail .workspace-rail-sales-filter input,#workspace-rail .workspace-rail-sales-filter select{width:100%;min-width:0;max-width:100%;font-size:10px;padding:6px 5px;box-sizing:border-box}#workspace-rail select,main>header select{direction:rtl;text-align:left;padding-left:22px;padding-right:5px;text-overflow:ellipsis}#workspace-rail select option,main>header select option{direction:ltr}#workspace-rail input[type=month]::-webkit-calendar-picker-indicator{position:absolute;left:5px;margin:0;width:16px;height:18px;cursor:pointer}#workspace-rail input[type=month]{position:relative;padding-left:25px;font-size:10px;min-width:0}#workspace-rail input[type=month]::-webkit-datetime-edit{padding:0;min-width:0}#workspace-rail .workspace-rail-sales-filter button{width:100%;min-width:0;font-size:10px;padding:6px 4px}

#workspace-rail .invoice-filterbar input[type=month]{width:100%;min-width:0;max-width:100%;font-size:10px;padding:6px 4px 6px 24px;box-sizing:border-box}

.sales-overview>.sectionhead:empty{display:none}.sales-overview:has(>.sectionhead:empty){padding-top:8px}

#numeric-month-picker{position:fixed;z-index:1000;width:260px;padding:12px;border:1px solid #b9cfe0;border-radius:9px;background:white;box-shadow:0 8px 28px #163b3c30}.month-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.month-picker-heading label{flex:1;flex-direction:row;align-items:center}.month-picker-heading select{padding:5px;direction:ltr}.month-picker-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.month-picker-grid button{font-size:12px;padding:7px 4px}.month-picker-grid button.selected{background:#dcecfb;border-color:#689ac5;color:#215782}input[placeholder="MM/YYYY"]{cursor:pointer}

main>header #header-month-label{width:100%;min-width:0;gap:4px}main>header #header-month{width:100%;min-width:0;font-size:10px;padding:6px;box-sizing:border-box}main>header #header-month-clear{padding:3px;font-size:9px;line-height:14px}

#workspace-rail #invoice-choose-month{width:100%;padding:5px 3px;font-size:10px;color:#355b79;background:#e9f3fc;border-color:#bfd5e9}

input[placeholder="MM/YYYY"],main>header #header-month,#workspace-rail .workspace-rail-sales-filter input[placeholder="MM/YYYY"],#workspace-rail .invoice-filterbar input[placeholder="MM/YYYY"]{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23456b89%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M16%203v4M8%203v4M3%2011h18%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:7px center;background-size:16px 16px;padding-left:29px!important}

main>header #header-month-label{position:relative}main>header #header-month{background-image:none;padding-left:28px!important}main>header #header-month-label .header-month-calendar{position:absolute;left:3px;top:18px;width:23px;height:25px;min-height:0;padding:0;border:0;background:transparent;color:#356b94;font-size:21px;line-height:25px;cursor:pointer}

main>header #header-month-label .header-month-calendar{display:flex;align-items:center;justify-content:center}main>header .header-month-calendar svg{display:block;flex-shrink:0;pointer-events:none}

.invoice-payment-dates{display:block;background:#edf6f2;border:1px solid #cce2d7;border-radius:5px;padding:6px 8px;font-size:11px;line-height:17px;color:#285a49}.invoice-payment-dates>span{display:block;font-size:10px;margin-bottom:2px}.invoice-payment-dates b{font-weight:750}

.invoice-faktura-qr{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0}.invoice-faktura-qr>.inline{padding-top:5px;white-space:nowrap}.invoice-edit-qr{display:flex;flex-direction:column;align-items:center;gap:4px;max-width:145px;padding:6px;border:1px solid #d4e1e8;border-radius:6px;background:#f7fbfe;font-size:10px;color:#557084}.invoice-edit-qr img{display:block;width:120px;height:120px;object-fit:contain;background:white}.invoice-edit-qr small{font-size:10px;line-height:15px;text-align:center}


.invoice-detail-top{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:12px;align-items:start}.invoice-detail-top>aside.invoice-detail-qr{position:static;inset:auto;width:auto;padding:8px;background:#f5faff;border:1px solid #cbddea;border-radius:6px;color:#355b79;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px}.invoice-detail-qr img{width:150px;height:150px;object-fit:contain;background:#fff}.invoice-detail-qr small{font-size:10px;line-height:15px;text-align:center}@media(max-width:600px){.invoice-detail-top{grid-template-columns:1fr}.invoice-detail-top>aside.invoice-detail-qr{justify-self:start}}

.sales-ledger table tbody td:nth-child(n+3):nth-child(-n+8){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.sales-ledger table tbody td:nth-child(3)>b{display:block;width:100%;text-align:right}.sales-ledger table thead tr:not(.sales-column-totals) th:nth-child(n+3):nth-child(-n+8){text-align:right}


#modal form label{font-size:13px;font-weight:700;color:#385465;line-height:1.5}#modal form label input,#modal form label select,#modal form label textarea{font-size:13px;font-weight:400;color:var(--ink)}#modal form label small{font-size:10px;font-weight:400;color:var(--muted)}#modal form label input[readonly]{font-weight:650}#modal form label.inline{font-size:13px;font-weight:700}


.invoice-detail-top{grid-template-columns:minmax(0,1fr) minmax(0,320px)}.invoice-detail-top>aside.invoice-detail-qr{width:100%;min-height:130px;justify-content:center;padding:10px}.invoice-detail-qr img{width:300px;height:300px;max-width:100%;object-fit:contain}.invoice-detail-qr small{font-size:12px;line-height:18px}.invoice-paid-at{font-size:12px;font-weight:700;color:#28644d}@media(max-width:650px){.invoice-detail-top{grid-template-columns:1fr}.invoice-detail-top>aside.invoice-detail-qr{width:min(320px,100%)}}

.invoice-faktura-qr{flex-wrap:wrap}.invoice-faktura-qr .invoice-edit-qr{width:290px;max-width:100%;min-height:120px;padding:12px;font-size:13px;gap:8px}.invoice-faktura-qr .invoice-edit-qr img{width:240px;height:240px;max-width:100%;object-fit:contain}.invoice-faktura-qr .invoice-edit-qr small{font-size:12px;line-height:18px}


.invoice-detail-top{align-items:stretch}.invoice-detail-top>.hint{margin:0}.invoice-detail-top>aside.invoice-detail-qr{align-self:stretch;height:100%;margin:0}@media(max-width:650px){.invoice-detail-top>aside.invoice-detail-qr{height:auto}}


.invoice-detail-meta{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}.invoice-detail-meta .invoice-paid-at{margin-left:auto;text-align:right}

.sales-inline-filters{display:flex;align-items:flex-end;gap:7px;margin-bottom:6px}.sales-inline-filters .sales-inline-store{flex:1;min-width:0;margin:0}.sales-inline-filters .sales-inline-month{width:115px;min-width:100px;font-size:10px;font-weight:650;gap:4px}.sales-inline-month input{font-size:11px;padding:5px 5px 5px 28px;min-height:29px}.sales-column-totals>th:first-child{min-width:290px}

/* More readable purchase cards and equally sized invoice actions. */
.invoice-kind-summary>.card{min-height:160px;padding:13px 15px}.invoice-kind-summary h3{font-size:14px;line-height:20px}.invoice-kind-summary .purchase-summary-meta,.invoice-kind-summary .purchase-summary-net,.invoice-kind-summary .sub{font-size:11px;line-height:18px}.invoice-kind-summary .invoice-summary-tax{margin-top:7px;gap:4px 10px}.invoice-kind-summary .invoice-summary-tax>div{font-size:11px;line-height:18px}.invoice-kind-summary .invoice-total-summary .invoice-summary-tax{grid-template-rows:repeat(3,18px) auto;row-gap:3px}.invoice-kind-summary .card:nth-child(2) .invoice-summary-tax>.tax-total{margin-top:12px}#invoice-ledger-details tbody td:nth-child(9) button[data-action^="invoice:"]{font-size:12px;line-height:20px;min-height:30px;padding:4px 10px;font-weight:700;border-radius:5px;vertical-align:top;background:#e6f1fc;border-color:#bcd3e8;color:#35648a}

.invoice-heading-filters{display:flex;align-items:flex-end;gap:8px}.invoice-heading-filters label{font-size:11px;font-weight:650;color:#496b87;gap:4px}.invoice-heading-filters input{width:135px;font-size:12px;padding:6px 6px 6px 29px}.invoice-heading-filters button{font-size:11px;padding:6px 8px}

.staff-review-controls{align-items:flex-end;gap:7px}.staff-review-controls label{font-size:11px;gap:3px}.staff-review-controls input{width:145px;padding:6px;font-size:12px}.staff-review-controls button{font-size:11px;padding:7px 9px}

#modal [name=nonFinancial],#modal [name^=autoSalesDph]{background:#edf6f2;font-weight:700;color:#28644d}

/* Balanced ledger widths and evenly spaced rate groups. */
#invoice-ledger-details table{table-layout:fixed;width:100%;min-width:1320px}#invoice-ledger-details th:nth-child(1){width:9%}#invoice-ledger-details th:nth-child(2){width:10%}#invoice-ledger-details th:nth-child(3){width:15%}#invoice-ledger-details th:nth-child(4),#invoice-ledger-details th:nth-child(5){width:10%}#invoice-ledger-details th:nth-child(6){width:21%}#invoice-ledger-details th:nth-child(7){width:10%}#invoice-ledger-details th:nth-child(8){width:9%}#invoice-ledger-details th:nth-child(9){width:6%}#invoice-ledger-details th,#invoice-ledger-details tbody td{padding-left:10px;padding-right:10px}#invoice-ledger-details .invoice-vat-rates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#invoice-ledger-details .invoice-vat-rates .invoice-tax-line{display:flex;flex-direction:column;gap:0;margin:0;white-space:nowrap;line-height:16px;font-size:10px}#invoice-ledger-details .invoice-vat-rates .invoice-tax-line span{font-size:9px;color:#526d80}#invoice-ledger-details .invoice-vat-rates small{font-size:9px;line-height:14px;color:#607889}#invoice-ledger-details tbody td.invoice-dates{min-width:0}#invoice-ledger-details .invoice-supplier-heading{white-space:normal}#invoice-ledger-details .invoice-supplier-heading>b{overflow-wrap:anywhere}

/* Payment-state colors and a larger faktura checkbox. */
#modal form select[name="status"]{font-weight:750}#modal form select[name="status"]:has(option[value="CTT"]:checked){color:#b52d2d;background:#fff5f3;border-color:#e5b4ae}#modal form select[name="status"]:has(option[value="DTT"]:checked){color:#16734d;background:#eff9f3;border-color:#a9d5bd}#modal form select[name="status"] option[value="CTT"]{color:#b52d2d;background:white}#modal form select[name="status"] option[value="DTT"]{color:#16734d;background:white}#modal .invoice-faktura-qr input[name="faktura"]{width:24px;height:24px;min-width:24px;padding:0;margin:0;accent-color:#177457;cursor:pointer}#modal .invoice-faktura-qr>.inline{align-items:center;gap:9px;min-height:36px;cursor:pointer}

.date-calendar-button{display:inline-flex;align-items:center;justify-content:center}.date-calendar-button svg{display:block;pointer-events:none;flex-shrink:0}

#invoice-ledger-details .invoice-vat-head{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;font-size:9px;letter-spacing:0;white-space:nowrap}#invoice-ledger-details .invoice-vat-rates{align-items:start}

/* Calm light-blue sales ledger, with row stripes instead of many column colors. */
.sales-ledger{background:#fbfdff;border-color:#ccdfef;border-top-color:#568bb8}.sales-ledger>.sectionhead h2{color:#2e5d83}.sales-ledger .sales-overview{background:#f2f7fc;border-color:#d1e1ef}.sales-ledger .tablewrap table thead tr th:nth-child(n){background:#deedf9;color:#355a78;border-color:#c6dcec}.sales-ledger .tablewrap table thead tr.sales-column-totals th:nth-child(n){background:#e8f2fb;border-top-color:#83aaca;color:#365d7b}.sales-ledger .tablewrap table thead tr.sales-column-totals th strong{color:#225d8b}.sales-ledger .tablewrap table tbody tr:nth-child(odd) td:nth-child(n){background:#fff;color:#203e54}.sales-ledger .tablewrap table tbody tr:nth-child(even) td:nth-child(n){background:#edf5fc;color:#203e54}.sales-ledger .tablewrap table tbody td:nth-child(n) .sub{color:#6a8192}.sales-ledger .tablewrap table tbody td:nth-child(3)>b{color:#215d8c}.sales-ledger .tablewrap table tbody td button{background:#e9f3fc;border-color:#bed5e9;color:#356489}.sales-ledger .tablewrap{border-color:#cbdfee}.sales-ledger .sales-tracking-panel>summary{color:#355d7e}

/* Align summary labels, totals and ledger money on the same vertical edges. */
.sales-ledger .tablewrap table thead tr.sales-column-totals th[class^="sales-total-"]{text-align:right;padding-left:10px;padding-right:10px;vertical-align:top}.sales-ledger .tablewrap table thead tr.sales-column-totals th[class^="sales-total-"] small{display:block;min-height:30px;line-height:15px;text-align:right}.sales-ledger .tablewrap table thead tr.sales-column-totals th[class^="sales-total-"] strong{display:block;width:100%;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;margin-top:4px}.sales-ledger .tablewrap table thead tr:not(.sales-column-totals) th:nth-child(n+3):nth-child(-n+8){text-align:right;padding-left:10px;padding-right:10px;background:#deedf9;color:#355a78}.sales-ledger .tablewrap table tbody td:nth-child(n+3):nth-child(-n+8){text-align:right;padding-left:10px;padding-right:10px;font-variant-numeric:tabular-nums}.sales-ledger .tablewrap table tbody td:nth-child(n+3):nth-child(-n+8)>b,.sales-ledger .tablewrap table tbody td:nth-child(n+3):nth-child(-n+8) .sub{display:block;text-align:right;width:100%}

#modal input[name=salesGross0]{background:#edf6f2;color:#28644d;font-weight:700}

.invoice-kind-summary .card:nth-child(2) .invoice-summary-tax>.invoice-paid-methods{grid-column:1/-1;flex-direction:row;justify-content:space-between;order:3;padding:3px 0;font-size:11px}.invoice-paid-methods:first-of-type{border-top:1px solid #cbded5}

/* Dedicated payment-method column and action columns after it. */
#invoice-ledger-details table{min-width:1440px}#invoice-ledger-details th:nth-child(1){width:8%}#invoice-ledger-details th:nth-child(2){width:9%}#invoice-ledger-details th:nth-child(3){width:14%}#invoice-ledger-details th:nth-child(4),#invoice-ledger-details th:nth-child(5){width:10%}#invoice-ledger-details th:nth-child(6){width:21%}#invoice-ledger-details th:nth-child(7){width:9%}#invoice-ledger-details th:nth-child(8){width:5%}#invoice-ledger-details th:nth-child(9){width:8%}#invoice-ledger-details th:nth-child(10){width:6%}#invoice-ledger-details .invoice-method-cell{font-weight:700;color:#356489;white-space:nowrap}#invoice-ledger-details tbody td:nth-child(9),#invoice-ledger-details tbody td:nth-child(10){white-space:nowrap}#invoice-ledger-details tbody td:nth-child(9) button,#invoice-ledger-details tbody td:nth-child(10) button{font-size:12px;line-height:20px;min-height:30px;padding:4px 10px;font-weight:700;border-radius:5px;vertical-align:top}

.invoice-kind-summary .invoice-total-summary .invoice-summary-tax>.total-paid-method{grid-column:1/-1;padding:3px 0;font-size:11px;line-height:18px}

/* Fit all invoice columns inside the desktop workspace. */
#invoice-ledger-details .tablewrap table{width:100%;min-width:0;table-layout:fixed}#invoice-ledger-details .tablewrap th,#invoice-ledger-details .tablewrap tbody td{padding-left:5px;padding-right:5px}#invoice-ledger-details .tablewrap th{font-size:9px;letter-spacing:0;white-space:normal;line-height:13px}#invoice-ledger-details th:nth-child(1){width:8%}#invoice-ledger-details th:nth-child(2){width:10%}#invoice-ledger-details th:nth-child(3){width:15%}#invoice-ledger-details th:nth-child(4){width:10%}#invoice-ledger-details th:nth-child(5){width:10%}#invoice-ledger-details th:nth-child(6){width:20%}#invoice-ledger-details th:nth-child(7){width:10%}#invoice-ledger-details th:nth-child(8){width:5%}#invoice-ledger-details th:nth-child(9){width:7%}#invoice-ledger-details th:nth-child(10){width:5%}#invoice-ledger-details .invoice-vat-head,#invoice-ledger-details .invoice-vat-rates{gap:3px}#invoice-ledger-details .invoice-reference{white-space:normal;overflow-wrap:anywhere}#invoice-ledger-details .invoice-entry-date{min-width:0;white-space:nowrap}#invoice-ledger-details .invoice-vat-rates .invoice-tax-line{font-size:10px}#invoice-ledger-details .invoice-dates{min-width:0}#invoice-ledger-details tbody td:nth-child(9) button,#invoice-ledger-details tbody td:nth-child(10) button{padding:4px 6px;min-height:30px;font-size:11px}#invoice-ledger-details tbody td:nth-child(9){white-space:normal}#invoice-ledger-details .invoice-method-cell{font-size:10px}#invoice-ledger-details .invoice-vat-head{font-size:8px}@media(max-width:1000px){#invoice-ledger-details .tablewrap table{min-width:1000px}}

.sales-ledger .tablewrap table tbody td:nth-child(n+3):nth-child(-n+8){font-family:Arial,'Segoe UI',sans-serif;font-size:13px;font-variant-numeric:tabular-nums lining-nums;line-height:20px;color:#173e5c}.sales-ledger .tablewrap table tbody td:nth-child(3)>b{font-family:Arial,'Segoe UI',sans-serif;font-size:14px;font-weight:700;letter-spacing:0}.sales-ledger .tablewrap table thead tr.sales-column-totals th[class^='sales-total-'] strong{font-family:Arial,'Segoe UI',sans-serif;font-size:24px;line-height:30px;font-weight:700;letter-spacing:0}.sales-ledger .tablewrap table tbody td:nth-child(n+3):nth-child(-n+8) .sub{font-family:'Segoe UI',sans-serif;font-size:10px;font-weight:400}


.vat-page .vat-kpi{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:8px;align-content:start;align-items:baseline}.vat-page .vat-kpi>small{grid-column:1;grid-row:1;font-weight:700;margin:0}.vat-page .vat-kpi>strong{grid-column:2;grid-row:1;text-align:right;white-space:nowrap;margin:0;font-variant-numeric:tabular-nums;line-height:1.3}.vat-page .vat-kpi>span{grid-column:1/-1;margin:0}


#store[hidden]{display:none!important}#multi-store-filter{position:relative;font-size:10px;font-weight:500;color:#28564e}#multi-store-filter>summary{cursor:pointer;border:1px solid #cbded7;background:#f5faf8;padding:7px 5px;border-radius:5px;line-height:16px}.multi-store-options{display:flex;flex-direction:column;gap:4px;background:white;border:1px solid #cbded7;border-radius:5px;padding:6px;margin-top:4px}.multi-store-options label{display:flex;flex-direction:row;align-items:center;gap:5px;font-size:10px;line-height:16px;cursor:pointer;white-space:normal}.multi-store-options input[type=checkbox]{width:15px;height:15px;flex-shrink:0;margin:0;accent-color:#26725b}

.vat-summary .tablewrap table thead th:nth-child(n+7){background:#e5eef6;color:#355a78}.vat-summary .tablewrap table tbody td:nth-child(n+7){background:inherit}.vat-summary .tablewrap table tbody td.vat-rate-difference{background:#f1f6fb;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;color:#355d7a}.vat-summary .tablewrap table tbody td.vat-estimated{background:#fff7dc}.vat-summary .tablewrap table{min-width:1120px}

.report-metrics .report-store-metric{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-content:start}.report-metrics .report-store-metric>small{grid-column:1;align-self:center}.report-metrics .report-store-metric>strong{grid-column:2;margin:0;font-size:21px;white-space:nowrap;text-align:right}.report-store-breakdown{grid-column:1/-1;border-top:1px solid #bed1dd;padding-top:7px;display:grid;gap:5px}.report-store-breakdown>div{display:flex;justify-content:space-between;gap:8px;font-size:11px;line-height:17px}.report-store-breakdown b{font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}.report-store-breakdown span{color:#526b7e}

/* Compact aligned summary groups, following the requested positions. */
.redesigned-purchase-summary .purchase-summary-triple,.redesigned-purchase-summary .purchase-vat-tiles,.redesigned-purchase-summary .purchase-method-tiles{grid-column:1/-1;display:grid;gap:9px;border-top:1px solid #cbdde6;padding-top:9px;margin-top:5px}.redesigned-purchase-summary .purchase-summary-triple{grid-template-columns:repeat(3,minmax(0,1fr))}.redesigned-purchase-summary .purchase-vat-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}.redesigned-purchase-summary .purchase-method-tiles{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:10px}.redesigned-purchase-summary .purchase-summary-triple>div,.redesigned-purchase-summary .purchase-vat-tiles>div,.redesigned-purchase-summary .purchase-method-tiles>div{display:flex;flex-direction:column;gap:5px;min-width:0}.redesigned-purchase-summary span{font-size:11px;line-height:16px;color:#4c687a}.redesigned-purchase-summary b{font-size:12px;line-height:18px;white-space:nowrap;font-variant-numeric:tabular-nums}.redesigned-purchase-summary .purchase-method-tiles>div{padding:5px 7px;border-radius:4px;background:#ffffff70}.redesigned-purchase-summary>.card{row-gap:3px;min-height:175px}.redesigned-purchase-summary .purchase-summary-meta{font-size:10px}

/* Place sales tracking beside the daily-sales title at the top. */
@media(min-width:1101px){.sales-ledger{display:grid;grid-template-columns:minmax(200px,24%) minmax(0,1fr);column-gap:16px;align-items:start}.sales-ledger>.sectionhead{grid-column:1;grid-row:1;align-self:start;display:block;padding:6px 0;margin:0;border-bottom:0}.sales-ledger>.sales-overview{grid-column:2;grid-row:1;margin:0 0 16px;padding:7px 9px;min-width:0}.sales-ledger>.tablewrap{grid-column:1/-1;width:100%;min-width:0}.sales-ledger .sales-tracking-panel .sales-calendar-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:7px}.sales-ledger .sales-tracking-panel .sales-calendar-layout .sales-calendar-panel>summary{font-size:8px}.sales-ledger .sales-tracking-panel .sales-calendar-right .sales-store-status-list{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-ledger .sales-entry-heading{gap:2px}.sales-ledger .sales-entry-heading h3{font-size:9px;white-space:normal}.sales-ledger .sales-entry-heading>p.sub{font-size:8px}.sales-ledger .sales-tracking-panel .sales-store-status b,.sales-ledger .sales-tracking-panel .sales-store-status span{font-size:8px}}

.redesigned-purchase-summary .purchase-method-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.redesigned-purchase-summary .purchase-method-tiles>div:last-child{background:#fff0ed;color:#a53629}.redesigned-purchase-summary .purchase-method-tiles>div:last-child>span{color:#a53629}.redesigned-purchase-summary .purchase-method-tiles>div{padding:5px}.redesigned-purchase-summary .purchase-method-tiles>div>span{font-size:10px;line-height:15px}

.monthly-report-card table th:not(:first-child),.monthly-report-card table td:not(:first-child){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.monthly-report-card .financial-vat-inline{justify-content:flex-end}.monthly-report-card table td:not(:first-child)>b{font-variant-numeric:tabular-nums}.monthly-report-card table th:not(:first-child){white-space:normal}


/* Shared row tracks keep purchase summary cards aligned horizontally. */
.invoice-kind-summary.redesigned-purchase-summary{align-items:stretch}.invoice-kind-summary.redesigned-purchase-summary>.card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:26px 24px 61px 57px;row-gap:3px;padding:13px 15px;align-content:start;min-height:0}.redesigned-purchase-summary>.card>h3,.redesigned-purchase-summary>.card>.purchase-summary-amount,.redesigned-purchase-summary>.card>.invoice-total-amount{grid-row:1;align-self:baseline;margin:0}.redesigned-purchase-summary>.card>.purchase-summary-meta,.redesigned-purchase-summary>.invoice-total-summary>p.sub{grid-row:2;align-self:start;margin:0;line-height:18px}.redesigned-purchase-summary>.card>.purchase-summary-net{grid-row:2;align-self:start;line-height:18px}.redesigned-purchase-summary .purchase-summary-triple,.redesigned-purchase-summary .purchase-vat-tiles{grid-row:3;grid-column:1/-1;margin:0;padding-top:8px;align-content:start}.redesigned-purchase-summary .purchase-method-tiles{grid-row:4;grid-column:1/-1;margin:0;padding-top:7px;align-items:start}.redesigned-purchase-summary .purchase-method-tiles>div{min-height:43px}.redesigned-purchase-summary .purchase-summary-triple>div,.redesigned-purchase-summary .purchase-vat-tiles>div{gap:4px}.redesigned-purchase-summary>.card:last-child>p.sub{grid-row:3;align-self:start;margin:0;padding-top:8px;border-top:1px solid #cbdde6}

/* Final shared alignment overrides for both purchases and debt summaries. */
.invoice-kind-summary.redesigned-purchase-summary>.card{grid-template-rows:26px 24px 61px 57px!important;align-items:start!important;row-gap:3px!important}.invoice-kind-summary.redesigned-purchase-summary>.card>h3{grid-area:1 / 1 / 2 / 2!important;line-height:26px!important;align-self:start!important}.invoice-kind-summary.redesigned-purchase-summary>.card>.purchase-summary-amount,.invoice-kind-summary.redesigned-purchase-summary>.card>.invoice-total-amount{grid-area:1 / 2 / 2 / 3!important;line-height:26px!important;align-self:start!important}.invoice-kind-summary.redesigned-purchase-summary>.card>.purchase-summary-meta{grid-area:2 / 1 / 3 / 2!important;margin:0!important;line-height:18px!important;align-self:start!important}.invoice-kind-summary.redesigned-purchase-summary>.card>.purchase-summary-net{grid-area:2 / 2 / 3 / 3!important;margin:0!important;line-height:18px!important;align-self:start!important}.invoice-kind-summary.redesigned-purchase-summary>.invoice-total-summary>p.sub{grid-area:2 / 1 / 3 / 3!important;margin:0!important;line-height:18px!important}.invoice-kind-summary.redesigned-purchase-summary .purchase-summary-triple,.invoice-kind-summary.redesigned-purchase-summary .purchase-vat-tiles{grid-area:3 / 1 / 4 / 3!important;height:61px!important;margin:0!important;padding-top:8px!important;box-sizing:border-box}.invoice-kind-summary.redesigned-purchase-summary .purchase-method-tiles{grid-area:4 / 1 / 5 / 3!important;height:57px!important;margin:0!important;padding-top:7px!important;box-sizing:border-box}.invoice-kind-summary.redesigned-purchase-summary>.card:last-child>.purchase-summary-meta{grid-area:2 / 1 / 3 / 3!important}.invoice-kind-summary.redesigned-purchase-summary>.card:last-child>p.sub{grid-area:3 / 1 / 4 / 3!important;margin:0!important}.invoice-kind-summary.redesigned-purchase-summary .purchase-method-tiles>div{height:43px!important;margin:0!important}.invoice-kind-summary.redesigned-purchase-summary .purchase-method-tiles span{min-height:15px;line-height:15px}.invoice-kind-summary.redesigned-purchase-summary .purchase-method-tiles b{line-height:18px}

.sales-ledger .tablewrap table tbody td.sales-zero-revenue{font-family:Arial,'Segoe UI',sans-serif;text-align:right;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap;padding-left:10px;padding-right:10px}.sales-ledger .tablewrap table thead tr:not(.sales-column-totals) th:nth-child(9){text-align:right;background:#deedf9;color:#355a78}.sales-ledger .tablewrap table tbody td.sales-zero-revenue .sub{font-size:10px;text-align:right}.sales-ledger .tablewrap table thead tr.sales-column-totals th.sales-total-6{background:#e8f2fb;text-align:right}.sales-ledger .tablewrap table thead tr.sales-column-totals th.sales-total-6 strong{font-family:Arial,sans-serif;font-size:24px;font-weight:700;text-align:right;color:#225d8b}

.sales-rate-total-tax{font-size:11px;line-height:18px;text-align:right;font-weight:650;color:#466b86;margin-top:5px;white-space:nowrap}.sales-ledger .sales-rate-revenue>b{font-family:Arial,sans-serif;font-size:13px;font-weight:700}.sales-ledger .sales-rate-revenue .sub{font-size:10px;line-height:17px}

main>header .controls>label[hidden]{display:none!important}#store-multi-container{width:100%;min-width:0}.store-multi-caption{display:block;font-size:9px;font-weight:650;color:#45695e;margin-bottom:4px}.multi-store-options label{min-height:24px;font-size:11px;gap:7px}.multi-store-options input[type=checkbox]{width:18px;height:18px;cursor:pointer}.multi-store-options #apply-store-group{padding:6px;font-size:11px;background:#34785f;color:white;border-color:#34785f;width:100%}#store-group-error{font-size:10px;color:#b52d2d;line-height:14px}

.currency-unit{font-size:.72em!important;font-weight:500!important;line-height:1;letter-spacing:0;white-space:nowrap}

/* Balanced monetary columns and matching rate subcolumns. */
#invoice-ledger-details .tablewrap table{table-layout:fixed;width:100%;min-width:0}#invoice-ledger-details th:nth-child(1){width:8%}#invoice-ledger-details th:nth-child(2){width:10%}#invoice-ledger-details th:nth-child(3){width:14%}#invoice-ledger-details th:nth-child(4),#invoice-ledger-details th:nth-child(5){width:9%}#invoice-ledger-details th:nth-child(6){width:24%}#invoice-ledger-details th:nth-child(7){width:10%}#invoice-ledger-details th:nth-child(8){width:5%}#invoice-ledger-details th:nth-child(9){width:6%}#invoice-ledger-details th:nth-child(10){width:5%}#invoice-ledger-details .tablewrap th,#invoice-ledger-details .tablewrap tbody td{padding-left:8px;padding-right:8px}#invoice-ledger-details .invoice-vat-head,#invoice-ledger-details .invoice-vat-rates{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}#invoice-ledger-details .invoice-vat-head>span{text-align:right}#invoice-ledger-details .invoice-vat-rates .invoice-tax-line{align-items:flex-end;text-align:right}#invoice-ledger-details .invoice-vat-rates .invoice-tax-line b,#invoice-ledger-details .invoice-vat-rates .invoice-tax-line small{text-align:right;width:100%}#invoice-ledger-details .tablewrap tbody td:nth-child(8),#invoice-ledger-details .tablewrap tbody td:nth-child(9),#invoice-ledger-details .tablewrap tbody td:nth-child(10){text-align:center}#invoice-ledger-details .tablewrap th:nth-child(n+8){text-align:center}@media(max-width:1000px){#invoice-ledger-details .tablewrap table{min-width:1000px}}

/* Narrow date/store/notes; distribute room across sales amounts. */
.sales-ledger .tablewrap table{table-layout:fixed;width:100%;min-width:0}.sales-ledger .tablewrap table th,.sales-ledger .tablewrap table td{padding-left:9px;padding-right:9px;box-sizing:border-box}.sales-ledger .tablewrap table thead tr.sales-column-totals>th:first-child{min-width:0;width:auto}.sales-ledger .sales-inline-filters{gap:5px;flex-wrap:wrap}.sales-ledger .sales-inline-filters .sales-inline-store{min-width:70px}.sales-ledger .sales-inline-filters .sales-inline-month{min-width:90px;width:95px}.sales-ledger .sales-inline-filters input,.sales-ledger .sales-inline-filters select{font-size:10px;width:100%;min-width:0}.sales-ledger .tablewrap table thead tr.sales-column-totals th[class^="sales-total-"] strong{font-size:21px;letter-spacing:0}.sales-ledger .tablewrap table tbody td:nth-child(1),.sales-ledger .tablewrap table tbody td:nth-child(2){font-size:11px;white-space:nowrap;padding-left:7px;padding-right:7px}.sales-ledger .sales-note-cell{font-size:10px;line-height:15px;overflow-wrap:anywhere}.sales-note-short{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:15px}.sales-ledger .sales-note-cell .sub{font-size:9px;line-height:13px}.sales-ledger .tablewrap table tbody td:last-child{padding-left:2px;padding-right:2px}.sales-ledger .tablewrap table tbody td:last-child button{font-size:10px;padding:3px 5px}.sales-ledger .tablewrap table thead tr:not(.sales-column-totals) th{font-size:9px;letter-spacing:0;white-space:normal}.sales-ledger .tablewrap table tbody td:nth-child(n+3):nth-child(-n+9){padding-left:9px;padding-right:9px}@media(max-width:1100px){.sales-ledger .tablewrap table{min-width:1100px}}

main>header .controls>#export-current-page-pdf{width:100%;font-size:11px;padding:7px 5px;background:#e7f1fb;border-color:#bad2e7;color:#315e82}@media print{#export-current-page-pdf{display:none!important}}
.sales-inline-filters{display:flex;flex-wrap:wrap;gap:6px}.sales-inline-filters label{min-width:85px;flex:1}.sales-monthly-stores{margin:10px 0;border:1px solid #cbdfee;border-radius:6px;padding:8px;background:#f5faff}.sales-monthly-stores summary{font-weight:700;color:#245b82;cursor:pointer}.sales-monthly-stores td:not(:first-child),.sales-monthly-stores th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
/* Sales heading and three aligned review panels. */
.sales-ledger{display:block!important}.sales-ledger>.sectionhead{display:flex!important;width:100%;text-align:center;justify-content:center;margin-bottom:12px}.sales-ledger>.sales-overview{width:100%;margin:0 0 12px!important}.sales-calendar-layout{display:grid!important;grid-template-columns:minmax(0, .85fr) minmax(0,1fr) minmax(0,1.35fr)!important;gap:8px!important;align-items:start!important;height:auto!important;max-height:none!important}.sales-calendar-layout>.sales-monthly-stores{margin:0!important;min-width:0;max-height:none!important}.sales-monthly-stores table{min-width:0!important;width:100%!important;table-layout:fixed}.sales-monthly-stores th,.sales-monthly-stores td{padding:5px 3px!important;font-size:11px!important;white-space:normal!important}.sales-monthly-stores summary{font-size:12px;padding:3px 0 6px}.sales-calendar-layout>.sales-calendar-right{min-width:0}.sales-monthly-stores .tablewrap{overflow:visible!important}@media(max-width:1000px){.sales-calendar-layout{grid-template-columns:1fr!important}}
.report-filter-panel{margin:10px 0 14px;border:1px solid #cbdfea;border-radius:7px;background:#f5faff;padding:8px 12px}.report-filter-panel>summary{cursor:pointer;font-weight:700;color:#285e84;display:list-item}.report-collapse-text,.report-expand-text{float:right;font-size:12px}.report-filter-panel[open] .report-expand-text,.report-filter-panel:not([open]) .report-collapse-text{display:none}.report-filter-panel .report-controls{margin-top:10px}.sales-month-row td{vertical-align:top}.sales-inline-filters select{width:100%}
.permission-grid{display:grid;grid-template-columns:minmax(140px,1fr) 65px 80px;gap:9px;align-items:center}.permission-grid input,.permission-stores input{width:20px!important;height:20px!important;accent-color:#1677a0}.permission-grid label{text-align:center}.permission-stores label{display:flex;align-items:center;gap:8px;margin:8px 0}#modal fieldset{border:1px solid #c7dce9;border-radius:6px;padding:12px}#modal legend{font-weight:700;color:#245c7f}
/* Equal columns in financial purchasing/sales summary. */
.financial-trade-report table{width:100%;min-width:0!important;table-layout:fixed}
.financial-trade-report .tablewrap th,.financial-trade-report .tablewrap th:last-child,.financial-trade-report .tablewrap td{width:11.1111%!important;padding-left:10px!important;padding-right:10px!important;box-sizing:border-box}
.financial-trade-report .tablewrap th{white-space:normal!important;text-align:right;overflow-wrap:normal;line-height:1.45}
.financial-trade-report .tablewrap th:first-child,.financial-trade-report .tablewrap td:first-child{text-align:left}
.financial-trade-report .tablewrap td:not(:first-child){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.financial-trade-report .financial-vat-inline{display:flex;justify-content:flex-end;align-items:baseline;gap:5px;min-width:0}
.financial-trade-report .financial-vat-note{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}
.financial-trade-report .financial-vat-inline>b{flex-shrink:0}
@media(max-width:800px){.financial-trade-report table{min-width:850px!important}}
.team-permissions-card table{width:100%;table-layout:fixed}.team-permissions-card th:nth-child(1){width:15%}.team-permissions-card th:nth-child(2){width:10%}.team-permissions-card th:nth-child(3){width:22%}.team-permissions-card th:nth-child(4){width:35%}.team-permissions-card th:last-child{width:18%}.team-permissions-card td{white-space:normal;vertical-align:top}.team-permissions-card td:last-child button{font-size:13px;min-height:36px;padding:8px 12px;white-space:normal}
.team-permissions-card .tablewrap{overflow-x:auto}.team-permissions-card table{min-width:0!important}.team-permissions-card .employee-permission-summary{max-width:100%;white-space:normal}.employee-permission-summary summary{cursor:pointer;color:#24658c;font-weight:600;white-space:normal}.employee-permission-summary ul{margin:8px 0 0;padding-left:18px}.employee-permission-summary li{margin:4px 0;overflow-wrap:anywhere}.employee-permission-summary small{display:block;color:#617b8d}.team-permissions-card td{overflow-wrap:anywhere;white-space:normal!important}
#workspace-rail .attendance-rail-action{position:fixed;right:12px;bottom:14px;width:144px;padding:10px;background:#fff;border:1px solid #b8d8df;border-top:3px solid #14836d;border-radius:9px;box-shadow:0 4px 18px #163c5020;box-sizing:border-box}#workspace-rail .attendance-rail-action h3{font-size:14px;margin:0 0 7px;color:#126951}#workspace-rail .attendance-rail-action p{font-size:12px;font-weight:700;margin:4px 0}#workspace-rail .attendance-rail-action small{display:block;font-size:11px;margin-bottom:10px;color:#58727d;white-space:normal}#workspace-rail .attendance-rail-action button{width:100%;min-height:68px;font-size:15px;line-height:1.5;white-space:normal;padding:10px 6px;background:#117c65}
.attendance-review table{width:100%;table-layout:fixed}.attendance-review th,.attendance-review td{padding:8px 6px;vertical-align:top;white-space:normal!important}.attendance-review .attendance-late{color:#b42318}.attendance-review .badge{white-space:normal;line-height:1.5}.attendance-review .toolbar{justify-content:flex-end}
.shift-requests table{table-layout:fixed;width:100%}.shift-requests td,.shift-requests th{white-space:normal!important;vertical-align:top;overflow-wrap:anywhere}.shift-requests td{line-height:1.6}.shift-requests th:nth-child(4){width:25%}.shift-requests button{min-height:32px;padding:6px 10px}#modal fieldset .inline{display:inline-flex;align-items:center;gap:5px;margin:6px}
.attendance-monthly table{width:100%;table-layout:fixed}.attendance-monthly th,.attendance-monthly td{padding:8px 7px;white-space:normal!important;vertical-align:top;overflow-wrap:anywhere}.attendance-monthly details summary{cursor:pointer;color:#245f86;font-weight:600}.attendance-monthly td details{font-size:11px;margin-top:5px;line-height:1.6}.attendance-month-person{border:1px solid #c8deed;border-radius:6px;padding:10px;margin-top:8px;background:#f7fbff}.attendance-month-person>summary{padding:2px}.attendance-monthly .attendance-late{color:#b42318}.attendance-monthly .hint{font-size:12px;line-height:1.6}
#workspace-rail .attendance-rail-action button{min-height:136px}
body.logged-out>aside,body.logged-out main>header .controls,body.logged-out main>.notice{display:none!important}body.logged-out main{margin:0!important;padding:30px!important;width:100%!important}body.logged-out main>header{position:static!important;width:auto!important}.login-card{max-width:440px;margin:50px auto;padding:26px}.login-card form{display:grid;gap:16px}.login-card input{width:100%;padding:12px}.google-map-location{display:grid;gap:10px;background:#f1f7fd;padding:12px;border:1px solid #c8dce9;border-radius:7px}.google-map-location a{font-weight:700;color:#146ca0}.google-map-location small{line-height:1.6}

.invoice-detail-due-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:14px 0}.invoice-detail-due-actions>span{display:flex;align-items:center;gap:5px;flex-wrap:wrap}

/* Summary amounts share a top-right baseline. */
.redesigned-purchase-summary .purchase-summary-triple>div,.redesigned-purchase-summary .purchase-vat-tiles>div,.redesigned-purchase-summary .purchase-method-tiles>div{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;min-width:0}
.redesigned-purchase-summary .purchase-summary-triple>div>b,.redesigned-purchase-summary .purchase-vat-tiles>div>b,.redesigned-purchase-summary .purchase-method-tiles>div>b{order:-1;align-self:flex-end;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.redesigned-purchase-summary .purchase-summary-triple>div>span,.redesigned-purchase-summary .purchase-vat-tiles>div>span,.redesigned-purchase-summary .purchase-method-tiles>div>span{line-height:1.3}
.due-summary>button{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start;align-items:start;gap:6px 10px;text-align:left}
.due-summary>button>span:first-child{grid-column:1;grid-row:1}.due-summary>button>.due-summary-amount{grid-column:2;grid-row:1;text-align:right;white-space:nowrap;margin:0;font-variant-numeric:tabular-nums}.due-summary>button>.due-summary-count,.due-summary>button>small{grid-column:1/-1;margin:0}

/* Align each summary label with its amount on one baseline. */
.invoice-kind-summary.redesigned-purchase-summary .purchase-summary-triple,.invoice-kind-summary.redesigned-purchase-summary .purchase-vat-tiles,.invoice-kind-summary.redesigned-purchase-summary .purchase-method-tiles{grid-template-columns:minmax(0,1fr);gap:0;align-content:start}
.invoice-kind-summary.redesigned-purchase-summary .purchase-summary-triple>div,.invoice-kind-summary.redesigned-purchase-summary .purchase-vat-tiles>div,.invoice-kind-summary.redesigned-purchase-summary .purchase-method-tiles>div{display:flex;flex-direction:row;justify-content:space-between;align-items:baseline;gap:10px;height:auto!important;min-height:0;padding:0 5px;margin:0;line-height:16px}
.invoice-kind-summary.redesigned-purchase-summary .purchase-summary-triple>div>b,.invoice-kind-summary.redesigned-purchase-summary .purchase-vat-tiles>div>b,.invoice-kind-summary.redesigned-purchase-summary .purchase-method-tiles>div>b{order:0;align-self:baseline;text-align:right;line-height:16px;font-size:11px}
.invoice-kind-summary.redesigned-purchase-summary .purchase-summary-triple>div>span,.invoice-kind-summary.redesigned-purchase-summary .purchase-vat-tiles>div>span,.invoice-kind-summary.redesigned-purchase-summary .purchase-method-tiles>div>span{line-height:16px;min-height:0;font-size:10px}
.invoice-kind-summary.redesigned-purchase-summary>.card{grid-template-rows:26px 24px 76px 61px!important}
.invoice-kind-summary.redesigned-purchase-summary .purchase-summary-triple,.invoice-kind-summary.redesigned-purchase-summary .purchase-vat-tiles{height:76px!important}
.invoice-kind-summary.redesigned-purchase-summary .purchase-method-tiles{height:61px!important}

/* Slightly larger, readable invoice ledger text. */
#invoice-ledger-details .tablewrap tbody td{font-size:12px;line-height:18px;padding-top:5px;padding-bottom:5px}
#invoice-ledger-details tbody td>b,#invoice-ledger-details .invoice-primary-text,#invoice-ledger-details .invoice-due-date>b,#invoice-ledger-details .invoice-supplier-heading>b,#invoice-ledger-details .invoice-tax-line,#invoice-ledger-details tbody td.invoice-entry-date{font-size:12px;line-height:18px;min-height:18px}
#invoice-ledger-details tbody td .sub,#invoice-ledger-details .invoice-supplier-heading .invoice-vs,#invoice-ledger-details .invoice-method-cell,#invoice-ledger-details .invoice-vat-rates .invoice-tax-line{font-size:11px;line-height:17px!important}
#invoice-ledger-details .invoice-vat-rates .invoice-tax-line b{font-size:11px;line-height:17px}
#invoice-ledger-details .invoice-vat-rates .invoice-tax-line small,#invoice-ledger-details .invoice-due-meta .badge{font-size:10px;line-height:15px}
#invoice-ledger-details .tablewrap th{font-size:10px;line-height:14px}
#invoice-ledger-details .invoice-vat-head{font-size:9px;line-height:14px}

.sales-calendar-layout{grid-template-columns:minmax(0,1.35fr) minmax(0,.85fr) minmax(0,1fr)!important}@media(max-width:1000px){.sales-calendar-layout{grid-template-columns:1fr!important}}

/* Two balanced information columns inside purchase summaries. */
.invoice-kind-summary.redesigned-purchase-summary>.card{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:26px 24px auto!important;column-gap:16px;min-height:155px}
.invoice-kind-summary.redesigned-purchase-summary>.card>.purchase-summary-amount,.invoice-kind-summary.redesigned-purchase-summary>.card>.invoice-total-amount{justify-self:end}
.invoice-kind-summary.redesigned-purchase-summary .purchase-summary-triple,.invoice-kind-summary.redesigned-purchase-summary .purchase-vat-tiles{grid-area:3 / 1 / 4 / 2!important;width:100%;height:auto!important;min-height:74px;border-top:1px solid #cbdde6;padding-top:8px!important}
.invoice-kind-summary.redesigned-purchase-summary .purchase-method-tiles{grid-area:3 / 2 / 4 / 3!important;width:100%;height:auto!important;min-height:74px;border-top:1px solid #cbdde6;padding-top:8px!important}
.invoice-kind-summary.redesigned-purchase-summary .purchase-summary-triple>div,.invoice-kind-summary.redesigned-purchase-summary .purchase-vat-tiles>div,.invoice-kind-summary.redesigned-purchase-summary .purchase-method-tiles>div{line-height:18px;gap:5px;padding:0 2px;align-items:baseline}
.invoice-kind-summary.redesigned-purchase-summary .purchase-summary-triple>div>span,.invoice-kind-summary.redesigned-purchase-summary .purchase-vat-tiles>div>span,.invoice-kind-summary.redesigned-purchase-summary .purchase-method-tiles>div>span{font-size:10px;line-height:18px}
.invoice-kind-summary.redesigned-purchase-summary .purchase-summary-triple>div>b,.invoice-kind-summary.redesigned-purchase-summary .purchase-vat-tiles>div>b,.invoice-kind-summary.redesigned-purchase-summary .purchase-method-tiles>div>b{font-size:11px;line-height:18px}
@media(max-width:1100px){.invoice-kind-summary.redesigned-purchase-summary{grid-template-columns:1fr}.invoice-kind-summary.redesigned-purchase-summary>.card{min-height:150px}}

/* Consistent sales totals baselines and compact filter grid. */
.sales-ledger .tablewrap table thead tr.sales-column-totals>th{vertical-align:top;padding:12px 9px;text-transform:none;letter-spacing:0}
.sales-ledger .tablewrap table thead tr.sales-column-totals th[class^="sales-total-"] small{display:flex;align-items:flex-start;justify-content:flex-end;height:34px;min-height:34px;margin:0;font-size:11px;line-height:15px;font-weight:650;text-align:right}
.sales-ledger .tablewrap table thead tr.sales-column-totals th[class^="sales-total-"] strong{display:block;margin:0;font-size:20px;line-height:28px;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.sales-ledger .sales-rate-total-tax{margin-top:4px;min-height:16px;font-size:11px;line-height:16px;text-align:right;font-variant-numeric:tabular-nums}
.sales-ledger .sales-inline-filters{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:6px;margin:0 0 8px}
.sales-ledger .sales-inline-filters>label,.sales-ledger .sales-inline-filters .sales-inline-store,.sales-ledger .sales-inline-filters .sales-inline-month{display:grid;grid-template-columns:65px minmax(0,1fr);align-items:center;gap:6px;width:100%;min-width:0;margin:0;font-size:10px;line-height:14px;font-weight:650;text-align:left}
.sales-ledger .sales-inline-filters input,.sales-ledger .sales-inline-filters select{box-sizing:border-box;width:100%;min-width:0;min-height:29px;height:29px;font-size:11px;margin:0}
.sales-ledger .sales-inline-filters .month-control,.sales-ledger .sales-inline-filters .date-control{min-width:0;width:100%}
.sales-ledger .sales-column-totals>th:first-child>b{display:inline;font-size:11px;line-height:16px}.sales-ledger .sales-column-totals>th:first-child>.sub{display:inline;margin-left:6px;font-size:11px;line-height:16px}

#workspace-rail .shift-request-rail-action{position:fixed;right:12px;bottom:14px;width:144px;padding:8px;background:#fff;border:1px solid #b8d8df;border-radius:9px;box-shadow:0 4px 18px #163c5020;box-sizing:border-box}#workspace-rail .shift-request-rail-action button{width:100%;min-height:90px;white-space:normal;font-size:15px;font-weight:700;line-height:1.4}

#invoice-ledger-details .tablewrap th:nth-child(1){width:8%}#invoice-ledger-details .tablewrap th:nth-child(2){width:9%}#invoice-ledger-details .tablewrap th:nth-child(3){width:13%}#invoice-ledger-details .tablewrap th:nth-child(4),#invoice-ledger-details .tablewrap th:nth-child(5){width:9%}#invoice-ledger-details .tablewrap th:nth-child(6){width:20%}#invoice-ledger-details .tablewrap th:nth-child(7){width:9%}#invoice-ledger-details .tablewrap th:nth-child(8){width:4%}#invoice-ledger-details .tablewrap th:nth-child(9){width:6%}#invoice-ledger-details .tablewrap th:nth-child(10){width:5%}#invoice-ledger-details .tablewrap th:nth-child(11){width:8%;text-align:left}#invoice-ledger-details .invoice-recorder{white-space:normal;overflow-wrap:anywhere;text-align:left}.invoice-editor-history{margin-top:20px}.invoice-editor-history table{width:100%}

.monthly-store-report-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:12px 0}.monthly-store-report{min-width:0;padding:12px 10px;border:1px solid #bdd4ee;border-top:3px solid #3377b3;border-radius:7px;background:#edf5ff;color:#254f76}.monthly-store-report[data-store-index="1"]{background:#f5efff;border-color:#dac6f1;border-top-color:#8656b4}.monthly-store-report[data-store-index="2"]{background:#edf8f4;border-color:#b5ded1;border-top-color:#228572}.monthly-store-report[data-store-index="3"]{background:#fff5e9;border-color:#efd0a8;border-top-color:#b57627}.monthly-store-report[data-store-index="4"]{background:#fff0f6;border-color:#e9c2d5;border-top-color:#ac527c}.monthly-store-report h3{font-size:14px;margin:0 0 12px}.monthly-store-metric{display:flex;justify-content:space-between;align-items:baseline;gap:7px;padding:5px 0;font-size:11px;line-height:17px}.monthly-store-metric b{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums;font-size:12px}.monthly-store-profit{border-top:1px solid #b7cfdb;margin-top:7px;padding-top:9px;font-weight:700}.monthly-report-total{padding:10px 12px;border:1px solid #bad8d3;background:#e5f3ef;border-radius:7px;margin-bottom:12px}.monthly-report-total h3{font-size:12px;margin:0 0 6px}.monthly-report-total>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.monthly-report-total .monthly-store-profit{margin:0;border:0;padding:5px 0}@media(max-width:1250px){.monthly-store-report-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:800px){.monthly-store-report-grid,.monthly-report-total>div{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{.monthly-store-report-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.monthly-store-report,.monthly-report-total{break-inside:avoid}}

#invoice-ledger-details .invoice-recorder .invoice-last-actor{display:block;font-size:10px;font-weight:400;line-height:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#invoice-ledger-details .tablewrap th:nth-child(11){font-size:9px}

#invoice-ledger-details .payment-method-tag{display:inline-block;padding:1px 4px;border-radius:4px;font-size:10px;font-weight:700;line-height:16px;white-space:nowrap}#invoice-ledger-details .payment-method-tag.method-cash{color:#176443;background:#dcf3e6;border:1px solid #a9d7bc}#invoice-ledger-details .payment-method-tag.method-bank{color:#795a00;background:#fff1b8;border:1px solid #e8cf72}

/* Match payment badges and invoice action button sizes. */
#invoice-ledger-details .payment-method-tag{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:30px;padding:4px 6px;font-size:11px;line-height:20px;border-radius:5px;vertical-align:top}
#invoice-ledger-details .invoice-method-cell{white-space:normal}
#invoice-ledger-details .tablewrap tbody td:nth-child(9) button,#invoice-ledger-details .tablewrap tbody td:nth-child(10) button{box-sizing:border-box;min-width:34px;min-height:30px;padding:4px 6px;font-size:11px;line-height:20px;border-radius:5px}
#invoice-ledger-details .tablewrap tbody td:nth-child(10) button{background:#e6f1fc;border:1px solid #bcd3e8;color:#35648a;font-weight:700}
#invoice-ledger-details .tablewrap tbody td:nth-child(10) button:hover{background:#dbeafa;border-color:#9dbed9;color:#254e70}

.dashboard-overview-heading{font-size:17px;font-weight:700;color:#254f68;line-height:24px;margin:0 0 10px;text-align:left}

.monthly-report-total>div{gap:12px}.monthly-report-total .monthly-store-metric{justify-content:flex-start;align-items:baseline;gap:10px;font-size:13px;line-height:20px;padding:5px 0}.monthly-report-total .monthly-store-metric b{font-size:15px;line-height:20px;font-weight:700}.monthly-report-total h3{font-size:13px;margin-bottom:7px}.monthly-report-total .monthly-store-profit{padding:5px 0}@media(max-width:1100px){.monthly-report-total>div{grid-template-columns:repeat(2,minmax(0,1fr))}}

.financial-store-cards .monthly-store-metric{font-size:11px;line-height:17px;padding:3px 0}.financial-store-cards .monthly-store-metric b{font-size:12px}.financial-store-cards .financial-card-result{font-weight:700;border-top:1px solid #bfd1dc;margin-top:5px;padding-top:7px}.financial-store-cards .monthly-store-report{padding:11px 9px}

.financial-paired-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px 10px}.financial-paired-cell{display:flex;flex-direction:column;gap:3px;min-width:0;font-size:10px;line-height:15px}.financial-paired-cell b{font-size:12px;line-height:18px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.financial-paired-cell>span{min-height:15px;display:block}.financial-paired-result{border-top:1px solid #bed0dc;margin-top:3px;padding-top:7px;font-weight:700}.financial-store-cards .monthly-store-report{padding:11px 9px}

/* Clearer monetary figures in purchase overview cards. */
.invoice-kind-summary.redesigned-purchase-summary .purchase-summary-triple>div>b,.invoice-kind-summary.redesigned-purchase-summary .purchase-vat-tiles>div>b,.invoice-kind-summary.redesigned-purchase-summary .purchase-method-tiles>div>b{font-family:Arial,'Segoe UI',sans-serif;font-size:13px;font-weight:700;line-height:20px;font-variant-numeric:tabular-nums lining-nums;letter-spacing:0}
.invoice-kind-summary.redesigned-purchase-summary .purchase-summary-amount,.invoice-kind-summary.redesigned-purchase-summary .invoice-total-amount{font-family:Arial,'Segoe UI',sans-serif;font-size:23px;font-weight:700;letter-spacing:0}
.invoice-kind-summary.redesigned-purchase-summary .purchase-summary-net b{font-family:Arial,'Segoe UI',sans-serif;font-size:12px;font-weight:700}
.invoice-kind-summary.redesigned-purchase-summary .purchase-summary-triple>div,.invoice-kind-summary.redesigned-purchase-summary .purchase-vat-tiles>div,.invoice-kind-summary.redesigned-purchase-summary .purchase-method-tiles>div{line-height:20px}

.financial-paired-grid{gap:6px 10px;align-items:start}.financial-paired-cell{gap:2px}.financial-paired-cell>span{min-height:15px;line-height:15px;font-size:10px}.financial-paired-cell>b{display:block;line-height:18px;white-space:nowrap;font-size:12px}.financial-paired-cell b .currency-unit{display:inline;min-height:0;line-height:1;white-space:nowrap}.financial-paired-result{margin-top:2px;padding-top:5px}.financial-store-cards .monthly-store-report{padding:10px 9px}.financial-store-cards .monthly-store-report h3{margin-bottom:8px}

.dashboard-overview-card{padding:20px;border:1px solid #d3e0e4;border-radius:10px;background:#fff;box-shadow:0 3px 12px #173b3c0a;margin-bottom:20px}.dashboard-overview-card .dashboard-overview-heading{margin:0 0 16px;font-size:18px}.dashboard-overview-card>.grid{gap:16px;margin:0}.dashboard-overview-card .card.metric{min-height:195px;padding-top:17px;padding-bottom:17px;margin-bottom:0}.dashboard-overview-card .dashboard-store-summary{margin-top:13px}.dashboard-overview-card .dashboard-store-summary>div{padding-top:3px;padding-bottom:3px}

/* Identical financial card row tracks and numeric baselines. */
.financial-store-cards{align-items:stretch}.financial-store-cards .monthly-store-report{display:grid;grid-template-rows:22px auto;align-content:start;gap:6px}.financial-store-cards .monthly-store-report h3{height:22px;line-height:22px;margin:0;white-space:nowrap;font-size:13px}
.financial-store-cards .financial-paired-grid{grid-template-rows:repeat(3,43px) 49px;gap:0 10px;align-items:stretch}
.financial-store-cards .financial-paired-cell{display:grid;grid-template-rows:18px 21px;align-content:start;gap:0;margin:0;padding:0;min-width:0}
.financial-store-cards .financial-paired-cell>span{display:block;min-height:0;height:18px;line-height:18px;white-space:nowrap;font-size:10px}
.financial-store-cards .financial-paired-cell>b{display:block;min-height:0;height:21px;line-height:21px;text-align:right;font-size:12px;margin:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.financial-store-cards .financial-paired-result{border-top:1px solid #bed0dc;padding-top:6px;grid-template-rows:18px 21px}
.financial-store-cards .financial-paired-cell b .currency-unit{display:inline;height:auto;min-height:0;line-height:1}

.nonfinancial-trade-report{margin-top:22px;border:1px solid #cbdfea;border-radius:8px;padding:12px;background:#fbfdff}.nonfinancial-trade-report>summary{font-size:14px;font-weight:700;color:#285c7c;cursor:pointer;padding:4px 0}.nonfinancial-trade-report table td:not(:first-child),.nonfinancial-trade-report table th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}.nonfinancial-trade-report .monthly-store-metric{flex-wrap:wrap}.nonfinancial-trade-report .monthly-store-metric b{margin-left:auto}

.dashboard-overview-card .dashboard-store-summary>div>span{font-size:12px;font-weight:700;line-height:19px;color:#35536a}.dashboard-overview-card .dashboard-store-summary>div{align-items:baseline;min-height:24px}

.nonfinancial-trade-report>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none}.nonfinancial-trade-report>summary::-webkit-details-marker{display:none}.nonfinancial-collapse-label,.nonfinancial-expand-label{padding:7px 12px;border:1px solid #d1dee7;border-radius:5px;background:#fff;font-size:12px;font-weight:500;line-height:20px}.nonfinancial-trade-report[open] .nonfinancial-expand-label,.nonfinancial-trade-report:not([open]) .nonfinancial-collapse-label{display:none}

.compact-month-overview{border:1px solid #c4dce9;border-radius:8px;background:#f4f9fd;padding:12px;margin:12px 0 18px}.compact-month-overview>h3{font-size:16px;margin:0 0 4px;color:#285b7a}.compact-month-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:10px 0}.compact-month-card{border:1px solid #c9dce8;border-top:3px solid #5388b3;border-radius:6px;background:#fff;padding:10px}.compact-month-card:nth-child(2){border-top-color:#248874}.compact-month-card:nth-child(3){border-top-color:#a77d2e}.compact-month-card:nth-child(4){border-top-color:#b58b20;background:#fffbeb}.compact-month-card h4{margin:0 0 9px;font-size:13px;color:#284d66}.compact-month-line{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:11px;line-height:18px;padding:3px 0}.compact-month-line b{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}.compact-month-result{border-top:1px solid #ccdce5;padding-top:7px;margin-top:5px;font-weight:700}.compact-month-warning{font-size:11px;color:#85591e;margin:5px 0 0}.compact-month-line .currency-unit{display:inline}@media(max-width:1100px){.compact-month-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{.compact-month-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.compact-month-card{break-inside:avoid}}

.store-month-overview-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:12px 0}.store-month-overview{padding:11px 9px}.store-month-overview>h3{font-size:14px;font-weight:700;margin:0 0 10px}.store-month-group{border-top:1px solid #c9d9e2;padding-top:7px;margin-top:8px}.store-month-group h4{font-size:11px;margin:0 0 4px;font-weight:700}.store-month-overview .compact-month-line{font-size:10px;gap:5px;line-height:16px;padding:2px 0}.store-month-overview .compact-month-line b{font-size:12px}.store-month-overview .compact-month-result{margin-top:3px;padding-top:5px}.store-month-overview .compact-month-warning{font-size:10px}@media(max-width:1250px){.store-month-overview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:800px){.store-month-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{.store-month-overview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.store-month-overview{break-inside:avoid}}

.standalone-month-overview{border-top:3px solid #5388b3;margin-bottom:20px}.standalone-month-overview>.sectionhead{margin-bottom:10px}.standalone-month-overview>.compact-month-overview{margin:0;padding:0;border:0;background:transparent}.standalone-month-overview>.compact-month-overview>h3{font-size:12px;font-weight:500;margin:6px 0;color:#58758a}

/* Negative amounts in per-store monthly overview. */
.store-month-overview .compact-month-line b.amount-negative,.store-month-overview .compact-month-line b.amount-negative .currency-unit{color:#c62828!important}

/* Keep the revenue ledger contained with clear cell boundaries. */
.sales-ledger>.tablewrap{width:100%;max-width:100%;box-sizing:border-box;border:1.5px solid #86aac8;border-radius:8px;overflow:auto}
.sales-ledger>.tablewrap>table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}
.sales-ledger>.tablewrap>table>thead>tr>th,.sales-ledger>.tablewrap>table>tbody>tr>td{border:1px solid #b0c9df;box-sizing:border-box;vertical-align:top}
.sales-ledger>.tablewrap>table>thead>tr.sales-column-totals>th{padding:10px 8px}
.sales-ledger>.tablewrap>table>thead>tr.sales-column-totals th[class^="sales-total-"] strong{font-size:clamp(14px,1.15vw,20px);line-height:27px;white-space:nowrap}
.sales-ledger .sales-inline-filters>label,.sales-ledger .sales-inline-filters .sales-inline-store,.sales-ledger .sales-inline-filters .sales-inline-month{grid-template-columns:1fr;gap:3px;font-size:11px}
.sales-ledger .sales-inline-filters select{padding:4px 20px 4px 6px;line-height:20px;text-overflow:ellipsis}
.sales-ledger>.tablewrap>table>tbody>tr>td{overflow-wrap:anywhere}
@media(max-width:800px){.sales-ledger>.tablewrap>table{min-width:950px}}

.attendance-employee-calendars{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:12px 0 18px}.attendance-employee-calendar{border:1.5px solid #91b4d0;border-top:3px solid #4385b7;border-radius:8px;padding:10px;background:#f5faff;min-width:0}.attendance-employee-calendar h3{font-size:14px;margin:0 0 4px;color:#244e70}.attendance-employee-calendar p{margin:0 0 8px}.ac-stats{display:flex;justify-content:space-between;gap:5px;font-size:10px;margin-bottom:8px;color:#365b76}.ac-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.ac-weekday{text-align:center;font-size:10px;font-weight:700;padding:3px 0}.ac-day{display:flex;align-items:center;justify-content:center;min-height:26px;border:1px solid #c9d5df;border-radius:4px;font-size:12px;font-weight:700;cursor:help;color:#526779;background:#edf1f5}.ac-day:focus{outline:2px solid #275f91;outline-offset:1px}.ac-blank[hidden]{display:none}.ac-work{background:#d8f2e4;color:#12633f;border-color:#8fc5a9}.ac-off{background:#ffe2e2;color:#a72323;border-color:#e3a4a4}.ac-issue{background:repeating-linear-gradient(135deg,#d4efdf 0px,#d4efdf 7px,#ffe6a0 7px,#ffe6a0 14px);color:#3f4d24;border-color:#bba852}.ac-missing{background:#fff4df;color:#925500;border:1px dashed #c68936}.attendance-calendar-legend{display:flex;flex-wrap:wrap;gap:6px;font-size:11px}.attendance-calendar-legend>span{padding:4px 7px;border-radius:4px}.attendance-monthly .attendance-employee-calendar .ac-day.ac-off{color:#a72323}.attendance-monthly .attendance-employee-calendar .ac-day.ac-work{color:#12633f}

.attendance-daily-stores{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:12px 0}.attendance-daily-store{min-width:0;border:1.5px solid #9ebbd2;border-top:3px solid #4385b7;border-radius:8px;padding:10px;background:#f4f9fe}.attendance-store-heading{display:flex;align-items:start;justify-content:space-between;gap:6px}.attendance-store-heading h3{font-size:14px;margin:0;color:#25567c}.attendance-store-heading>b{font-size:10px;white-space:nowrap;color:#17694e;background:#dcefe8;padding:4px;border-radius:4px}.attendance-daily-store>p{margin:5px 0 8px}.attendance-person-notice{padding:8px;border:1px solid #c2d2df;border-radius:5px;margin-top:6px;font-size:11px}.attendance-person-notice>b{display:block;font-size:12px;margin-bottom:4px}.attendance-notice-status{display:block;font-weight:650;line-height:16px;margin-bottom:5px}.attendance-notice-line{display:flex;justify-content:space-between;gap:5px;line-height:18px}.attendance-notice-line strong{font-size:11px;font-variant-numeric:tabular-nums}.attendance-daily-details>summary{font-size:12px;font-weight:650;color:#315d7b;cursor:pointer;padding:8px;background:#eaf3fa;border:1px solid #b4cde1;border-radius:4px}.attendance-daily-details[open]>.tablewrap{margin-top:8px}

.shift-store-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.shift-store-card{border:1.5px solid #95b6d0;border-top:3px solid #4985b5;border-radius:8px;background:#f4f9fe;min-width:0;overflow:hidden}.shift-store-title{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;background:#e4eff8;border-bottom:1px solid #b5cde0}.shift-store-title h3{font-size:15px;font-weight:700;margin:0;color:#28587e}.shift-store-title>span{font-size:11px;color:#466b86;white-space:nowrap}.shift-store-card>p{padding:12px}.shift-store-entry{padding:11px 12px;border-bottom:1px solid #c4d7e7;background:#fff}.shift-store-entry:nth-child(odd){background:#edf5fc}.shift-store-entry:last-child{border-bottom:0}.shift-entry-date{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-variant-numeric:tabular-nums;color:#375d78}.shift-entry-date strong{font-size:13px;color:#245879}.shift-entry-person{display:block;font-size:13px;margin:7px 0}.shift-entry-actions{display:flex;gap:6px;flex-wrap:wrap}.shift-entry-actions button{font-size:11px;padding:5px 10px}

.ac-person-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:5px}.attendance-employee-calendar .ac-person-heading h3{margin:0;min-width:0}.ac-detail-button{flex:none;padding:4px 7px;font-size:10px;font-weight:650;color:#285f89;background:#e5f0fb;border:1px solid #91b4d0;border-radius:4px;cursor:pointer}.attendance-month-person{scroll-margin-top:20px}

.payroll-card{border-top:3px solid #4385b7}.payroll-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.payroll-person{padding:12px;border:1.5px solid #a6c2d9;border-radius:8px;background:#f2f8fd;min-width:0}.payroll-person h3{font-size:15px;color:#285b80;margin:0 0 6px}.payroll-line{display:flex;justify-content:space-between;gap:8px;align-items:baseline;padding:6px 0;font-size:12px}.payroll-line b{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.payroll-bonus{color:#176a46}.payroll-deduction{color:#bb2828}.payroll-result{border-top:1px solid #a5bfd4;margin-top:5px;font-weight:700}.payroll-result b{font-size:16px}.payroll-actions{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.payroll-actions button{font-size:11px;padding:6px}.payroll-person summary{font-size:11px;cursor:pointer;color:#315f82}.payroll-person details p{border-top:1px solid #d0deea;padding-top:6px}

.ac-current-info{padding:7px 0;margin-bottom:7px;border-bottom:1px solid #b8cfdf;min-height:78px}.ac-current-top{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-bottom:5px}.ac-current-status{font-size:10px;font-weight:700;padding:3px 5px;border-radius:4px;line-height:14px}.ac-current-top small{font-size:9px;color:#5d7588;white-space:nowrap}.ac-current-info p{display:flex;justify-content:space-between;gap:5px;font-size:10px;line-height:16px;margin:3px 0;color:#4a6981}.ac-current-info p b{text-align:right;color:#284e6a;font-size:10px}.ac-current-info p span{flex-shrink:0}

.attendance-month-person>summary{position:relative;padding-right:90px!important}.attendance-detail-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);padding:4px 8px;border:1px solid #a1bed5;border-radius:4px;background:#fff;color:#315d7c;font-size:11px;line-height:16px;font-weight:650}.attendance-detail-toggle .adt-close{display:none}.attendance-month-person[open]>summary .adt-close{display:inline}.attendance-month-person[open]>summary .adt-open{display:none}

.attendance-month-tables>summary{position:relative;cursor:pointer;padding:10px 95px 10px 10px;background:#e7f1fa;border:1px solid #a4c1d9;border-radius:5px;color:#2c5878;font-size:12px;font-weight:700;margin-bottom:10px}.attendance-month-tables>summary .adt-close{display:none}.attendance-month-tables[open]>summary .adt-close{display:inline}.attendance-month-tables[open]>summary .adt-open{display:none}

.ac-person-heading h3{flex:1}.ac-salary-button{background:#def0e7;color:#176348;border-color:#8cbda5}.ac-person-heading{flex-wrap:wrap}.ac-person-heading .ac-detail-button{min-height:25px}

/* Keep the three sales tracking panels aligned without clipping their content. */
.sales-ledger .sales-tracking-panel .sales-calendar-layout{align-items:stretch!important;grid-template-columns:minmax(0,1.4fr) minmax(0,.9fr) minmax(0,1fr)!important;}
.sales-ledger .sales-tracking-panel .sales-calendar-layout>.sales-monthly-stores,
.sales-ledger .sales-tracking-panel .sales-calendar-layout>.sales-calendar-left,
.sales-ledger .sales-tracking-panel .sales-calendar-layout>.sales-calendar-right{height:auto!important;max-height:none!important;min-width:0;min-height:0;align-self:stretch;}
.sales-ledger .sales-tracking-panel .sales-calendar-layout .sales-calendar-panel{height:100%!important;max-height:none!important;display:flex;flex-direction:column;box-sizing:border-box;}
.sales-ledger .sales-tracking-panel .sales-calendar-layout .sales-calendar{height:auto!important;flex:1;min-height:160px;}
.sales-ledger .sales-tracking-panel .sales-calendar-layout .sales-calendar-day{max-height:none;}
.sales-ledger .sales-tracking-panel .sales-calendar-right .sales-entry-status{flex:1;min-height:0;box-sizing:border-box;}
.sales-ledger .sales-tracking-panel .sales-store-status-list{align-content:start;}
.sales-ledger .sales-tracking-panel .sales-store-status{min-width:0;}
.sales-ledger .sales-tracking-panel .sales-store-status b{overflow-wrap:anywhere;}
.sales-ledger .sales-monthly-stores th,.sales-ledger .sales-monthly-stores td{font-size:10px!important;padding:6px 4px!important;}
.sales-ledger .sales-monthly-stores th:first-child,.sales-ledger .sales-monthly-stores td:first-child{width:25%;}
@media(max-width:1000px){.sales-ledger .sales-tracking-panel .sales-calendar-layout{grid-template-columns:1fr!important;}.sales-ledger .sales-tracking-panel .sales-calendar-layout .sales-calendar-panel{height:auto!important;}.sales-ledger .sales-tracking-panel .sales-calendar-layout .sales-calendar{min-height:180px;}}

/* Fill tracking cards and arrange the ledger filters in two rows. */
.sales-ledger .sales-tracking-panel .sales-calendar-layout>.sales-calendar-left{display:flex!important;flex-direction:column;}
.sales-ledger .sales-tracking-panel .sales-calendar-layout .sales-calendar-panel[open]{flex:1;display:flex!important;flex-direction:column;height:auto!important;}
.sales-ledger .sales-tracking-panel .sales-calendar-layout .sales-calendar-panel[open]>.sales-calendar{display:grid;flex:1 1 0!important;height:auto!important;min-height:160px;grid-template-rows:16px repeat(var(--calendar-weeks,6),minmax(0,1fr))!important;}
.sales-ledger .sales-tracking-panel .sales-calendar-layout .sales-calendar-day{height:100%!important;max-height:none!important;box-sizing:border-box;}
.sales-ledger .sales-tracking-panel .sales-calendar-right .sales-entry-status{display:flex;flex-direction:column;}
.sales-ledger .sales-tracking-panel .sales-calendar-right .sales-store-status-list{flex:1;align-content:stretch!important;grid-auto-rows:1fr;}
.sales-ledger .sales-tracking-panel .sales-calendar-right .sales-store-status{display:flex;flex-direction:column;justify-content:center;}
.sales-ledger .sales-inline-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px 6px;margin:0!important;}
.sales-ledger .sales-inline-filters>label,.sales-ledger .sales-inline-filters .sales-inline-store,.sales-ledger .sales-inline-filters .sales-inline-month{width:auto!important;min-width:0!important;font-size:10px;gap:2px;}
.sales-ledger .sales-inline-filters .sales-inline-month{grid-column:1/-1;}
.sales-ledger .sales-inline-filters:has(.sales-inline-day) .sales-inline-month{grid-column:auto;}
.sales-ledger .sales-inline-filters input,.sales-ledger .sales-inline-filters select{height:27px;min-height:27px;font-size:10px;}

.employee-profile{margin-top:6px;font-size:12px;white-space:normal}.employee-profile summary{cursor:pointer;color:#245b82}.employee-profile p{margin:5px 0;overflow-wrap:anywhere}.employee-contract-photos{display:flex;flex-wrap:wrap;gap:8px}.employee-contract-photos img{width:90px;height:110px;object-fit:contain;border:1px solid #b5cddd;border-radius:5px;background:white}.employee-contract-photos label{display:flex;flex-direction:column;font-size:11px}.employee-contract-photos input[type=checkbox]{width:auto}

/* Employee actions stay side by side. */
.team-permissions-card table th:last-child{width:245px}.team-permissions-card table td:last-child{white-space:nowrap}.team-permissions-card table td:last-child button{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;margin:0 4px 0 0;font-size:12px;padding:7px 9px}

.daily-reward-actions{display:flex;gap:6px;margin-top:5px}.daily-reward-actions button{flex:1;min-width:0;padding:6px 3px;font-size:11px;white-space:nowrap}.daily-reward-actions button:first-child{color:#087052;background:#e9f7ef;border-color:#abd8bf}.daily-reward-actions button:last-child{color:#b42323;background:#fff0ed;border-color:#e9b8b2}

.payroll-action-menu{margin:8px 0;border:1px solid #bed4e6;border-radius:5px;padding:6px;background:#f8fbff}.payroll-action-menu>summary{cursor:pointer;font-size:12px;font-weight:700;color:#285d83}.payroll-action-menu .payroll-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.payroll-action-menu .payroll-actions button{font-size:11px;padding:5px 7px;margin:0}
