.statement-workspace,.customer-statement{--cst-panel:light-dark(#fff,#20252c);--cst-soft:light-dark(#edf2f8,#272f39);--cst-line:light-dark(#cfd8e4,#3a4552);--cst-muted:light-dark(#58687b,#afbdcf);--cst-blue:light-dark(#245fa9,#8bb9fb);--cst-blue-soft:light-dark(#e8f0fc,#25364d);--cst-good:light-dark(#226c49,#a3dcb8);--cst-good-soft:light-dark(#e8f4ed,#243a30);--cst-warn:light-dark(#865d17,#efc57d);--cst-warn-soft:light-dark(#fcf2df,#3e3426);min-width:0;max-width:100%;color:var(--ink)}
.statement-workspace *,.customer-statement *{box-sizing:border-box}
.statement-workspace [hidden],.customer-statement [hidden]{display:none!important}
.statement-workspace :is(input,select,textarea){min-width:0;max-width:100%}
.statement-workspace :is(h2,h3,p),.customer-statement :is(h2,h3,p){margin:0}
.statement-workspace .statement-filter-panel{background:var(--cst-panel);border:1px solid var(--cst-line);border-radius:10px;padding:18px;margin-bottom:22px;overflow:visible;position:relative}
.statement-filter-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(120px,.65fr) minmax(160px,1fr);gap:14px;align-items:start}
.statement-workspace .statement-filter-grid>*,.statement-period-controls>*{min-width:0}
.statement-workspace label{font-size:12px;color:var(--cst-muted)}
.statement-workspace :is(input:not([type=checkbox]),select){min-height:42px;padding:10px 12px;border:1px solid var(--cst-line);border-radius:7px;background:var(--cst-panel);color:var(--ink);width:100%;font:inherit}
.statement-workspace label>span{display:block;margin-bottom:6px}
.statement-customer-choice{position:relative;min-width:0}
.statement-search-menu{position:absolute;inset:calc(100% + 5px) 0 auto;z-index:30;background:var(--cst-panel);color:var(--ink);border:1px solid var(--cst-line);border-radius:8px;box-shadow:0 12px 30px #0003;padding:5px;max-height:22rem;overflow:auto}
.statement-search-menu button{display:block;text-align:left;width:100%;border:0;border-radius:5px;background:transparent;min-height:44px;padding:10px;white-space:normal;overflow-wrap:anywhere;color:inherit}
.statement-search-menu button:hover,.statement-search-menu button:focus-visible{background:var(--cst-soft)}
.statement-search-menu small{display:block;color:var(--cst-muted);margin-top:4px}
.statement-search-menu p{padding:10px;font-size:12px}
.statement-period-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.statement-period-controls label:only-child{grid-column:1/-1}
.statement-workspace .date-controls{display:flex;flex-wrap:wrap;width:100%;min-width:0;gap:6px}
.statement-workspace .date-controls>input[data-date]{flex:1 1 8rem;min-width:0;width:auto;max-width:100%}
.statement-workspace .date-controls>input[data-date-calendar]{flex:0 0 2.5rem;width:2.5rem;min-width:2.5rem;max-width:2.5rem}
.statement-workspace .date-controls>button{flex:0 0 auto;max-width:100%;white-space:normal}
.statement-options{margin-top:14px;font-size:12px;color:var(--cst-muted)}
.statement-options>summary{min-height:36px;padding:8px 0;cursor:pointer}.statement-options[open]>summary{margin-bottom:12px}.statement-options h3{margin:12px 0;font-size:13px}
.statement-options-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.statement-options-grid>label{display:grid;gap:6px;min-width:0}
.statement-period-range{grid-column:1/-1}.statement-context-heading{grid-column:1/-1}.statement-context-heading p{color:var(--cst-muted);margin-top:5px}.statement-context-heading~.statement-period-controls{grid-column:2/-1}
.statement-options>label{display:inline-flex;gap:8px;align-items:center}
.statement-options input[type=checkbox]{margin:0;flex:none}
.statement-export-actions{display:flex;justify-content:space-between;align-items:center;gap:10px 16px;flex-wrap:wrap;margin:0 0 18px}.statement-export-actions>label{display:flex;align-items:center;gap:8px;min-height:40px}.statement-export-actions>div{display:flex;gap:8px;flex-wrap:wrap}
.statement-export-actions button{white-space:normal;min-height:40px}
.statement-filter-status{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}.statement-filter-status small{font-size:11px;color:var(--cst-muted)}.statement-filter-status button{white-space:normal}
.statement-workspace .statement-status,.statement-workspace [role=status]{font-size:12px;color:var(--cst-muted);margin-top:12px}
.statement-workspace .statement-error{color:light-dark(#a43c42,#ffb2b7);font-size:12px;margin-top:12px}
.statement-workspace .statement-empty,.statement-workspace .statement-loading{padding:45px 18px;text-align:center;border:1px dashed var(--cst-line);border-radius:9px;color:var(--cst-muted);display:grid;gap:8px}
.customer-statement{padding:0;container:cstatement / inline-size}
.customer-statement h2{font-size:19px;line-height:1.4;letter-spacing:-.2px}
.customer-statement h3{font-size:14px;line-height:1.5;margin:0 0 10px}
.customer-statement p{font-size:12px;line-height:1.65}
.customer-statement .statement-report-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}
.customer-statement .statement-report-heading p{color:var(--cst-muted);margin-top:5px}
.statement-period-caption{text-align:right;font-size:12px;white-space:normal}
.statement-period-caption small{display:block;color:var(--cst-muted);margin-top:5px}
.statement-period-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:13px}
.customer-statement .statement-stat{padding:16px;min-width:0;border:1px solid var(--cst-line);background:var(--cst-panel);border-radius:9px;display:grid;gap:9px}
.customer-statement .statement-stat>span,.customer-statement .statement-stat small{font-size:11px;color:var(--cst-muted);line-height:1.5}
.customer-statement .statement-stat strong{font-size:23px;line-height:1.25;font-weight:600;letter-spacing:-.3px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.customer-statement .statement-stat small{display:block}
.customer-statement .statement-closing{background:var(--cst-blue-soft);border-color:color-mix(in srgb,var(--cst-blue) 40%,var(--cst-line))}
.statement-period-cash{display:flex;align-items:center;gap:6px 14px;flex-wrap:wrap;margin-bottom:22px!important;color:var(--cst-muted)}
.statement-period-cash>span{background:var(--cst-good-soft);color:var(--cst-good);padding:5px 8px;border-radius:5px;font-size:11px}
.statement-period-cash small{font-size:11px;color:var(--cst-muted)}
.statement-tabs{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 19px;border-bottom:1px solid var(--cst-line)}
.statement-tabs button{border:0;border-bottom:3px solid transparent;border-radius:6px 6px 0 0;padding:11px 14px;background:transparent;color:var(--cst-muted);min-height:44px;font-size:12px;white-space:normal}
.statement-tabs button[aria-selected=true]{background:var(--cst-blue-soft);border-bottom-color:var(--cst-blue);color:var(--cst-blue)}
.statement-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.statement-section-heading h3{margin-bottom:4px}
.statement-section-heading p,.statement-section-heading>span{font-size:12px;color:var(--cst-muted)}
.customer-statement .statement-table{margin-top:10px;border:1px solid var(--cst-line);border-radius:9px;padding:0 12px;background:var(--cst-panel)}
.customer-statement table{width:100%;white-space:normal;table-layout:fixed;border-collapse:collapse;text-align:left}
.customer-statement th{font-size:10px;font-weight:600;letter-spacing:.6px;background:transparent;color:var(--cst-muted);padding:13px 8px;border-bottom:1px solid var(--cst-line)}
.customer-statement td{padding:12px 8px;border-bottom:1px solid var(--cst-line);font-size:12px;vertical-align:middle;overflow-wrap:anywhere}
.customer-statement tr:last-child td{border-bottom:0}
.customer-statement .statement-source button{padding:4px 0;border:0;background:transparent;color:var(--cst-blue);text-align:left;white-space:normal;max-width:100%;overflow-wrap:anywhere;font-size:12px;min-height:30px}
.customer-statement .statement-source button:hover{text-decoration:underline}
.customer-statement td small{display:block;color:var(--cst-muted);font-size:11px;margin-top:4px}
.customer-statement td small button{font-size:11px}
.customer-statement .statement-money{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.customer-statement .statement-running{font-weight:500}
.customer-statement .statement-credit{color:var(--cst-good)}
.customer-statement .statement-zero{color:var(--cst-muted)}
.statement-invoice-table th:first-child{width:14%}.statement-invoice-table th:nth-child(2){width:32%}
.statement-cash-table th:first-child{width:17%}.statement-cash-table th:nth-child(2){width:58%}
.statement-ledger-total{display:flex;justify-content:space-between;gap:14px;padding:13px 20px;border:1px solid var(--cst-line);border-top:0;border-radius:0 0 8px 8px;margin-top:-1px!important;background:var(--cst-panel)}
.statement-ledger-total strong{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}
.statement-cash-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.statement-current-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:15px 0}
.statement-current-notice{padding:14px 16px;border-radius:8px;background:var(--cst-soft);margin-bottom:16px}
.statement-current-notice h3{margin-bottom:6px}
.statement-current-notice p,.statement-hint,.statement-scope-note{color:var(--cst-muted)}
.statement-current-section>section{margin-top:23px}
.statement-restriction{background:var(--cst-warn-soft);color:var(--cst-warn);padding:10px 12px;border-radius:6px;margin:12px 0!important}
.statement-current-section .statement-stat strong{font-size:20px}
.statement-scope-caption{font-weight:500;margin:8px 0!important;color:var(--cst-blue)}
.statement-scope-note{margin:0 0 15px!important;font-size:11px!important}
.statement-due-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:10px 0 14px}
.statement-due-filters button{min-height:36px;padding:7px 10px;border:1px solid var(--cst-line);border-radius:6px;background:transparent;font-size:11px;color:var(--cst-muted)}
.statement-due-filters button[aria-pressed=true]{background:var(--cst-blue-soft);color:var(--cst-blue);border-color:var(--cst-blue)}
.customer-statement td .statement-overdue{color:var(--cst-warn)}
.customer-statement .statement-basis{padding-top:16px;border-top:1px solid var(--cst-line);font-size:11px;line-height:1.65;color:var(--cst-muted);margin-top:20px}
.statement-print-header{margin-bottom:20px}
.statement-print-title{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}
.statement-print-title>div{text-align:right}.statement-print-title p{color:var(--cst-muted);margin-top:6px}
.statement-company-logo{width:auto;height:auto;max-width:175px;max-height:70px;object-fit:contain;object-position:left top}
.statement-print-parties{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin-bottom:22px}
.statement-print-parties section{min-width:0}.statement-print-parties section>span{font-size:11px;color:var(--cst-muted)}
.statement-print-parties h3{font-size:15px;margin:6px 0}.statement-print-parties p{font-size:11px;margin-top:4px}
.statement-print-period{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;border-block:1px solid var(--cst-line);padding:11px 0;font-size:12px}
.statement-print .statement-invoice-section,.statement-print .statement-cash-section{margin-top:25px}
.statement-current-appendix{border-top:2px solid var(--cst-line);margin-top:30px;padding-top:20px}
.statement-current-appendix>h2{margin-bottom:16px}.statement-payment-instructions{padding-top:20px;border-top:1px solid var(--cst-line);margin-top:25px}
.statement-payment-instructions p{font-size:11px;margin-top:4px}.statement-payment-instructions p span{color:var(--cst-muted)}.statement-payment-notice{white-space:pre-line}
.customer-statement-context>.panel-title{margin-bottom:16px;gap:14px;align-items:flex-start}.customer-statement-context>.panel-title p{margin-top:5px;color:var(--cst-muted)}
@container cstatement (max-width:760px){.statement-period-summary,.statement-current-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-statement .statement-stat strong{font-size:21px}}
@media screen and (max-width:950px){.statement-filter-grid{grid-template-columns:minmax(0,1.5fr) minmax(110px,1fr)}.statement-period-controls{grid-column:1/-1}}
@media screen and (max-width:650px){
 .statement-workspace .statement-filter-panel{padding:14px}.statement-filter-grid,.statement-period-controls{grid-template-columns:minmax(0,1fr);gap:12px}.statement-period-controls{grid-column:auto}
 .statement-workspace :is(input:not([type=checkbox]),select){font-size:16px;min-height:44px}.statement-export-actions{justify-content:stretch}.statement-export-actions>div{width:100%}.statement-export-actions button{flex:1 1 auto;min-height:44px}.statement-options-grid{grid-template-columns:minmax(0,1fr)}.statement-options>summary{min-height:44px}.statement-context-heading~.statement-period-controls{grid-column:auto}.statement-filter-status{align-items:flex-start;flex-wrap:wrap}.statement-filter-status button{min-height:44px}
 .customer-statement .statement-report-heading{display:grid;gap:10px}.statement-period-caption{text-align:left}.statement-period-summary,.statement-current-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .customer-statement .statement-stat{padding:12px;gap:8px}.customer-statement .statement-stat strong{font-size:18px;letter-spacing:-.4px;white-space:nowrap}.customer-statement .statement-stat>span,.customer-statement .statement-stat small{font-size:11px}
 .statement-tabs{gap:0}.statement-tabs button{padding:10px 7px;flex:1;font-size:11px}.statement-section-heading{align-items:flex-start;gap:9px}.statement-section-heading>span{font-size:11px;white-space:nowrap}
 .customer-statement .statement-table{overflow:visible;padding:0 12px}.customer-statement table,.customer-statement tbody{display:block;min-width:0;width:100%}.customer-statement thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .customer-statement tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;padding:13px 0;border-bottom:1px solid var(--cst-line)}.customer-statement tr:last-child{border:0}
 .customer-statement td{display:block;padding:0;border:0;min-width:0;white-space:normal}.customer-statement td::before{content:attr(data-label);display:block;font-size:11px;color:var(--cst-muted);margin-bottom:3px}
 .customer-statement .statement-date{font-size:11px;color:var(--cst-muted)}.customer-statement .statement-date::before{display:none}.customer-statement .statement-source{grid-column:1/-1}.customer-statement .statement-source::before{display:none}
 .customer-statement .statement-source button{min-height:44px;font-size:13px}.customer-statement td small button{font-size:12px}.customer-statement td.statement-money{text-align:right;white-space:normal;font-weight:500}
 .statement-invoice-table .statement-source{grid-row:2}.statement-invoice-table .statement-charge,.statement-invoice-table .statement-credit{grid-row:1;grid-column:2;text-align:right}.statement-invoice-table .statement-zero{display:none}.statement-invoice-table .statement-charge::before,.statement-invoice-table .statement-credit::before{display:none}
 .statement-invoice-table .statement-running{grid-column:1/-1;text-align:right;font-size:11px;color:var(--cst-muted)}.statement-invoice-table .statement-running::before{display:inline;margin-right:5px}
 .statement-cash-table .statement-cash-amount{grid-row:1;grid-column:2}.statement-cash-table .statement-cash-amount::before{display:none}.statement-cash-table .statement-source{grid-row:2}
 .statement-outstanding-table .statement-source{grid-row:1;grid-column:1}.statement-outstanding-table td:nth-child(2){grid-column:1/-1;grid-row:2;color:var(--cst-muted)}.statement-outstanding-table td:nth-child(2)::before{display:none}.statement-outstanding-table .statement-money{grid-row:1;grid-column:2}.statement-outstanding-table .statement-money::before{display:none}.statement-outstanding-table .statement-date{grid-row:3;grid-column:1/-1}.statement-outstanding-table .statement-date::before{display:inline;margin-right:5px}
 .customer-statement .statement-empty-row td{grid-column:1/-1}.customer-statement .statement-empty-row td::before{display:none}.statement-cash-totals{grid-template-columns:minmax(0,1fr)}.statement-cash-totals .statement-stat{display:flex;align-items:center;justify-content:space-between;gap:15px}
 .statement-cash-totals .statement-stat strong{font-size:18px}.statement-ledger-total{padding:12px}.statement-ledger-total strong{font-size:15px}.statement-due-filters button{min-height:44px}
 .statement-print-title{flex-wrap:wrap}.statement-print-title>div{text-align:left}.statement-print-parties{grid-template-columns:minmax(0,1fr);gap:18px}.statement-print-parties section{overflow-wrap:anywhere}
}
@media screen and (max-width:380px){.customer-statement .statement-stat strong{font-size:16px}.customer-statement .statement-stat{padding:10px}.statement-tabs button{font-size:11px;padding-inline:5px}}
@container cstatement (max-width:360px){.statement-period-summary,.statement-current-metrics{grid-template-columns:minmax(0,1fr)}.customer-statement .statement-stat strong{font-size:20px}.statement-cash-totals .statement-stat{flex-wrap:wrap}}
@media print{
 @page eesr-customer-statement{size:A4;margin:12mm}
 html:has(#printArea .customer-statement),body:has(#printArea .customer-statement){background:#fff!important;color:#111!important;color-scheme:light!important}
 #printArea:has(.customer-statement){padding:0!important}
 #printArea .customer-statement{--cst-panel:#fff;--cst-soft:#f1f4f8;--cst-line:#c7cfd9;--cst-muted:#475569;--cst-blue:#234e83;--cst-blue-soft:#f1f5fa;--cst-good:#245b3b;--cst-good-soft:#f3f7f4;--cst-warn:#6c4b13;--cst-warn-soft:#fbf6eb;page:eesr-customer-statement;padding:0;background:#fff;color:#111;font-size:9pt}
 #printArea .customer-statement h2{font-size:16pt;color:#111}#printArea .customer-statement h3{font-size:10pt;color:#111;break-after:avoid}#printArea .customer-statement p{font-size:8.5pt}
 #printArea .statement-company-logo{max-width:44mm;max-height:20mm}#printArea .statement-print-title{margin-bottom:6mm}#printArea .statement-print-parties{grid-template-columns:1fr 1fr;gap:8mm;margin-bottom:6mm;break-inside:avoid}
 #printArea .statement-print-parties p,#printArea .statement-print-parties section>span{font-size:8pt}#printArea .statement-print-title p{font-size:8pt}#printArea .statement-print-period{font-size:8pt;padding:3mm 0}
 #printArea .statement-period-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:3mm;margin:5mm 0 3mm;break-inside:avoid}#printArea .customer-statement .statement-stat{padding:3mm;background:#fff;box-shadow:none;border:1px solid #c7cfd9;border-radius:0;gap:2mm}
 #printArea .customer-statement .statement-stat strong{font-size:12pt;letter-spacing:0;white-space:normal;color:#111}#printArea .customer-statement .statement-stat>span,#printArea .customer-statement .statement-stat small{font-size:7.5pt;color:#444}
 #printArea .statement-period-cash{margin-bottom:5mm!important}#printArea .statement-period-cash>span{font-size:8pt;background:none;padding:0;color:#111}#printArea .statement-period-cash small{font-size:7.5pt}
 #printArea .statement-invoice-section,#printArea .statement-cash-section{margin-top:6mm}#printArea .statement-section-heading{break-after:avoid;margin-bottom:2mm}
 #printArea .customer-statement .statement-table{overflow:visible;border:0;padding:0;background:#fff;border-radius:0}
 #printArea .customer-statement table{display:table;min-width:0;width:100%;white-space:normal;border-collapse:collapse;table-layout:fixed}
 #printArea .customer-statement thead{display:table-header-group;position:static;width:auto;height:auto;clip-path:none}#printArea .customer-statement tbody{display:table-row-group}
 #printArea .customer-statement tr{display:table-row;break-inside:avoid;border:0}#printArea .customer-statement th,#printArea .customer-statement td{display:table-cell;position:static;color:#111;padding:2.5mm 1.5mm;font-size:8pt;overflow-wrap:anywhere;border-bottom:1px solid #d2d8e0;white-space:normal}
 #printArea .customer-statement td::before{display:none!important}#printArea .customer-statement th{background:#eef2f7;color:#334155;font-size:7pt}#printArea .customer-statement .statement-money{white-space:nowrap}
 #printArea .customer-statement td small{font-size:7.5pt;color:#475569}#printArea .statement-ledger-total{border:0;border-top:1px solid #c7cfd9;background:white;border-radius:0;padding:3mm 1.5mm;break-inside:avoid}#printArea .statement-ledger-total strong{font-size:11pt}
 #printArea .statement-cash-totals{grid-template-columns:repeat(3,minmax(0,1fr));gap:3mm;break-inside:avoid}#printArea .statement-current-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:3mm;break-inside:avoid}
 #printArea .statement-current-appendix{break-before:page;border-top:0;margin-top:0;padding-top:0}#printArea .statement-current-notice{padding:3mm;background:#f1f4f8;break-inside:avoid}#printArea .statement-payment-instructions{break-inside:avoid;margin-top:6mm;padding-top:4mm}
 #printArea .customer-statement .statement-basis{font-size:7pt;border-color:#c7cfd9;color:#475569}#printArea .statement-scope-note{font-size:7.5pt!important}
}
