/* Statement presentation only; all amounts come from the shared statement model. */
.statement-workspace{color:var(--text-1)}
.statement-kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:20px}
.statement-kpis .kpi{background:var(--bg-card,#fff);border:1px solid var(--border);border-radius:10px;box-shadow:0 2px 8px rgba(20,45,80,.03)}
.statement-kpis .kpi-val{font-size:24px;overflow-wrap:anywhere}
.statement-kpis .kpi-chg{color:var(--text-3);margin-top:5px}
.statement-list-card .card-hd{margin-bottom:14px}
.statement-list-card .search-wrap{width:320px;max-width:100%;flex:0 1 320px;margin-left:auto}
.statement-toolbar{border:1px solid var(--border)}
.statement-toolbar label{font-size:12px;color:var(--text-2)}
.statement-period{margin-left:auto}
.statement-sort{text-align:inherit;white-space:nowrap}
.statement-table-scroll{overflow:auto}
.statement-list{min-width:1000px}
.statement-list th:nth-child(n+5),.statement-list td:nth-child(n+5){text-align:right}
.statement-list td:nth-child(6){color:var(--green)}
.statement-list td:nth-child(7){color:var(--teal);font-weight:600}
.statement-person{display:flex;align-items:center;gap:10px;min-width:200px}
.statement-person strong{font-weight:500}
.statement-person .card-sub{font-size:11px;margin-top:3px}
.statement-avatar{width:32px;height:32px;border-radius:50%;background:#e3efff;color:#287fe5;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex-shrink:0}
.statement-status{font-size:10px;white-space:nowrap}
.statement-selection{margin:14px 0 0}
.statement-document-header{display:flex;justify-content:space-between;gap:20px;padding:8px 0 22px;border-bottom:1px solid var(--border);margin-bottom:20px}
.statement-document-header>div:last-child{text-align:right}
.statement-document-header h2{color:var(--accent-bright);font-size:23px;margin:0 0 8px}
.statement-brand{font-size:18px;font-weight:700;margin-bottom:6px}
.statement-contact-panel{padding:16px;background:var(--bg-2);border-radius:8px;margin-bottom:20px}
.statement-caption,.statement-section-title{font-size:11px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--text-3);margin-bottom:12px}
.statement-contact-panel .statement-person strong{font-size:15px;font-weight:600}
.statement-section-title{margin-top:24px}
.statement-ledger{min-width:850px}
.statement-ledger th:nth-child(n+5):nth-child(-n+7),.statement-ledger td:nth-child(n+5):nth-child(-n+7){text-align:right}
.statement-ledger td{font-size:12px}
.statement-reference{color:var(--accent-bright);overflow-wrap:anywhere;max-width:260px}
.statement-paid{color:var(--green)}
.statement-balance{color:var(--teal);font-weight:600}
.statement-ledger tfoot th{padding:14px 12px;border-top:2px solid var(--border);text-align:right}
.statement-ledger tfoot th:first-child{text-align:left}
.statement-opening{background:var(--bg-2)}
.statement-ageing{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:12px 0 20px}
.statement-ageing>div{padding:14px;background:var(--bg-2);border-top:2px solid var(--age-color);border-radius:6px}
.statement-ageing strong{display:block;margin-top:8px;color:var(--age-color);font-size:16px;overflow-wrap:anywhere}
.statement-footnote{border-top:1px solid var(--border);padding-top:16px;font-size:12px}
@media(max-width:1000px){.statement-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.statement-ageing{grid-template-columns:repeat(3,minmax(0,1fr))}.statement-period{margin-left:0}}
@media(max-width:600px){.statement-document-header{display:block}.statement-document-header>div:last-child{text-align:left;margin-top:18px}.statement-ageing{grid-template-columns:repeat(2,minmax(0,1fr))}.statement-kpis .kpi-val{font-size:18px}}
@media print{.statement-toolbar{display:none}.statement-table-scroll{overflow:visible}.statement-ledger{min-width:0}.statement-kpis .kpi{box-shadow:none}}

/* Selected-contact email actions share the statement typography. */
.statement-email-frequency{width:235px;font-family:var(--font);font-size:12.5px;font-weight:600;line-height:1.4;min-height:34px;padding:7px 14px}.statement-actions{min-width:245px;white-space:nowrap}.statement-email-status{font-size:12px;font-weight:600;color:var(--accent-bright);margin-bottom:7px}.statement-email-status small{font-size:11px;font-weight:400;color:var(--text-3);margin-left:9px}.statement-schedule-review{max-height:230px;overflow:auto}.statement-actions .btn{font:inherit;font-size:12px}
#topbarActions #stmtRefreshSchedules{background:#1769c4;border-color:#1769c4;color:#fff}
#topbarActions #stmtRefreshSchedules:hover{background:#12569f;border-color:#12569f}
#topbarActions #stmtHistory{background:#087d70;border-color:#087d70;color:#fff}
#topbarActions #stmtHistory:hover{background:#06665b;border-color:#06665b}
#topbarActions #stmtSchedule:focus-visible,#topbarActions #stmtRefreshSchedules:focus-visible,#topbarActions #stmtHistory:focus-visible{outline:2px solid #1769c4;outline-offset:3px}
.statement-schedule-panel{font-family:var(--font);font-size:13px;line-height:1.5;color:var(--text-1)}
.statement-review-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}
.statement-review-summary>div{padding:12px 16px;border:1px solid #dce6f0;border-radius:8px;background:#f5f8fc}
.statement-review-summary span{display:block;font-size:11px;font-weight:600;color:#5c6d82}.statement-review-summary strong{display:block;font-size:23px;color:#1759a2;margin-top:3px}
.statement-review-timing{border-left:3px solid #1769c4;padding:10px 14px;background:#edf5ff;border-radius:4px;margin-bottom:16px}.statement-review-timing strong{color:#1759a2}.statement-review-timing p{margin:5px 0 0;font-size:12px;color:#4b6078}
.statement-review-warning{padding:11px 14px;background:#fff6e5;border:1px solid #f0d9a6;border-radius:6px;margin-bottom:16px;color:#79530d}.statement-review-warning strong,.statement-review-warning span{display:block}.statement-review-warning span{font-size:12px;margin-top:4px}
.statement-schedule-panel .statement-schedule-review{max-height:260px;border:1px solid #dce6f0;border-radius:7px;overflow:auto}.statement-review-table{border-collapse:collapse;width:100%;font:inherit}.statement-review-table th{font-size:11px;color:#5c6d82;background:#f5f8fc;text-align:left;position:sticky;top:0;padding:10px 12px}.statement-review-table td{font-size:12px;padding:12px;border-top:1px solid #e6edf5;vertical-align:top;overflow-wrap:anywhere}.statement-review-table td strong{font-weight:600}.statement-review-table td:first-child{width:42%}.statement-review-table td:last-child{white-space:nowrap}
.statement-review-state{display:inline-block;border-radius:12px;padding:3px 8px;font-size:10px;font-weight:600}.statement-review-state.ready{background:#e3f5ef;color:#08745f}.statement-review-state.skipped{background:#fff0d5;color:#79530d}
.statement-review-footnote{font-size:12px;color:#5c6d82;margin:14px 0 0}.statement-review-error{padding:10px;background:#fff0f0;color:#a92323;border-radius:5px;margin-top:12px}
#stmtSaveSchedule:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:600px){.statement-review-summary{gap:6px}.statement-review-summary>div{padding:9px}.statement-review-table th,.statement-review-table td{padding:8px}.statement-review-table td:last-child{white-space:normal}}

