.reports-view{display:grid;gap:14px}
.reports-heading{display:flex;align-items:flex-start;justify-content:space-between;margin:26px 0 0}
.reports-heading h1{margin:3px 0 5px;color:#193653;font-size:23px;font-weight:800;letter-spacing:-.5px}
.reports-heading .welcome-subtitle{max-width:720px;margin:0;color:#8493a2;font-size:10px;line-height:1.6}
.reports-panel,.reports-balance-panel{padding:16px}
.reports-toolbar{display:flex;align-items:center;gap:9px;color:#526b80;font-size:10px;font-weight:700}
.reports-toolbar input{min-height:36px;padding:0 9px;border:1px solid #dce6ed;border-radius:7px;background:#fff;color:#294760;font:inherit;font-weight:500}
.reports-period-label{margin:10px 0;color:#52718a;font-size:10px;font-weight:700;text-transform:capitalize}
.reports-error{margin:8px 0;padding:10px 12px;border:1px solid #f0caca;border-radius:7px;background:#fff5f5;color:#a53d3d;font-size:10px}
.reports-cloud-status{margin:8px 0;padding:9px 11px;border:1px solid #c9e2f2;border-radius:7px;background:#eff8fd;color:#245d7c;font-size:9px;line-height:1.5}
.reports-cloud-status.is-error{border-color:#f0caca;background:#fff5f5;color:#a53d3d}
.reports-cash-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.report-total{display:grid;gap:7px;padding:13px;border:1px solid #e6edf3;border-radius:8px;background:#f9fbfd}
.report-total span{color:#71869a;font-size:9px;font-weight:600}
.report-total strong{color:#193653;font-size:19px;line-height:1.2}
.report-total.income strong{color:#168264}.report-total.expense strong,.report-total.negative strong{color:#b75d57}.report-total.positive strong{color:#168264}
.reports-empty{margin:10px 0 0;padding:10px 12px;border:1px solid #d8eadf;border-radius:7px;background:#f2faf5;color:#387557;font-size:9px;line-height:1.5}
.reports-integrity{margin:10px 0 0;color:#71869a;font-size:9px;line-height:1.6}
.reports-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.report-module{min-width:0;padding:0 13px 12px}
.report-module .panel-heading{min-height:60px;gap:12px}
.report-module .panel-heading h2,.reports-balance-panel .panel-heading h2{margin:0 0 4px;color:#294760;font-size:11px}
.report-module .panel-heading p,.reports-balance-panel .panel-heading p{margin:0;color:#8292a1;font-size:8px;line-height:1.5}
.report-module-total{color:#168264;font-size:13px;white-space:nowrap}
.report-table-wrap{width:100%;overflow:auto;border-radius:6px}
.report-table-wrap table{width:100%;min-width:520px;border-collapse:collapse;text-align:left}
.report-table-wrap th{padding:8px 7px;background:#f7fafc;color:#7b8b99;font-size:7px;font-weight:700;text-transform:uppercase;white-space:nowrap}
.report-table-wrap td{padding:9px 7px;border-bottom:1px solid #edf1f4;color:#536a80;font-size:8px;line-height:1.4;vertical-align:top}
.report-table-wrap td:last-child{text-align:right;font-weight:700;white-space:nowrap}
.report-table-wrap tr:last-child td{border-bottom:0}
.report-table-wrap .report-empty-row{padding:15px 8px;text-align:center;color:#8998a6;font-weight:400}
.report-reverse-button{padding:5px 7px;border:1px solid #e8c8c2;border-radius:5px;background:#fff7f5;color:#9e4b42;font:inherit;font-size:8px;font-weight:700;white-space:nowrap;cursor:pointer}.report-reverse-button:disabled{opacity:.55;cursor:wait}
.financial-reversal-dialog{width:min(92vw,480px);max-width:480px;border:1px solid #dce6ee;border-radius:14px;padding:22px;background:#fff;color:#16314b;box-shadow:0 20px 60px #102b4433;font:inherit}
.financial-reversal-dialog::backdrop{background:#10243b88}
.financial-reversal-dialog h2{margin:0 0 10px;color:#123b62;font-size:1.15rem}
.financial-reversal-dialog p{margin:0 0 14px;line-height:1.5}
.financial-reversal-dialog .financial-reversal-reason{box-sizing:border-box;width:100%;resize:vertical;border:1px solid #b9c9d8;border-radius:8px;padding:10px;font:inherit}
.financial-reversal-dialog .financial-reversal-validation{min-height:1.2em;margin:6px 0 0;color:#a53e35;font-size:.9rem}
.financial-reversal-dialog .financial-reversal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.financial-reversal-dialog button{min-height:40px;border:0;border-radius:8px;padding:8px 14px;font:inherit;font-weight:700;cursor:pointer}
.financial-reversal-dialog .financial-reversal-cancel{background:#edf3f7;color:#26445f}
.financial-reversal-dialog .financial-reversal-accept{background:#a83e35;color:#fff}
@media(max-width:520px){.financial-reversal-dialog{padding:18px}.financial-reversal-dialog .financial-reversal-actions{flex-direction:column-reverse}.financial-reversal-dialog button{width:100%}}
.reports-reversal-panel{min-width:0;padding:0 13px 12px;border-color:#f0d7d2}.reports-reversal-panel .panel-heading{min-height:58px}.reports-reversal-panel .report-table-wrap table{min-width:780px}
.reports-balance-panel .report-table-wrap table{min-width:1050px}
.reports-balance-panel .report-table-wrap th,.reports-balance-panel .report-table-wrap td{font-size:7px}
@media(max-width:700px){.reports-view{gap:10px}.reports-heading{margin-top:20px}.reports-heading h1{font-size:19px}.reports-heading .welcome-subtitle{font-size:8px}.reports-panel,.reports-balance-panel{padding:12px}.reports-toolbar{display:grid;grid-template-columns:1fr 1fr}.reports-toolbar input{width:100%}.reports-cash-summary{grid-template-columns:1fr}.report-total{padding:11px}.report-total strong{font-size:17px}.reports-module-grid{grid-template-columns:1fr;gap:9px}.report-module{padding:0 10px 9px}.report-module .panel-heading{min-height:53px}.report-module .panel-heading h2,.reports-balance-panel .panel-heading h2{font-size:10px}.report-module .panel-heading p,.reports-balance-panel .panel-heading p{font-size:7px}.reports-balance-panel .panel-heading{align-items:flex-start;padding:11px 0}.reports-balance-panel .report-table-wrap table{min-width:980px}.reports-integrity{font-size:8px}}

/* Keep wide report tables scrollable inside their cards on narrow screens. */
.reports-view{width:100%;min-width:0}
.reports-view>*,.reports-module-grid,.reports-module-grid>*,.reports-panel,.reports-balance-panel{min-width:0;max-width:100%}
.report-table-wrap{width:100%;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
#archive-view{min-width:0;padding:18px;background:#fff;border-radius:10px}
#archive-view label{display:flex;flex-wrap:wrap;align-items:center;gap:10px;color:#294760}
#archive-view input,#archive-view select,#archive-refresh{padding:9px;border:1px solid #dce6ed;border-radius:7px;background:#fff;color:#294760}
#archive-view .report-table-wrap{overflow-x:auto;max-width:100%}
#archive-view table{width:100%;border-collapse:collapse;text-align:left}
#archive-view th,#archive-view td{padding:10px;border-bottom:1px solid #e6edf3;font-size:12px;overflow-wrap:anywhere;min-width:100px}
#archive-status{color:#52718a;line-height:1.6}
