:root{color-scheme:light;--navy:#123e60;--blue:#3389b4;--light:#d1e5f2;--line:#dbe3e9;--text:#183348;--muted:#607482;--accent:#174dec}
*{box-sizing:border-box}[hidden]{display:none!important}
body{margin:0;background:#f3f6f8;color:var(--text);font-family:"PingFang SC","Microsoft YaHei",Arial,sans-serif;font-size:14px}
.report-page{width:calc(100% - 40px);max-width:1840px;margin:20px auto 36px;background:#fff;border:1px solid var(--line);padding-bottom:16px}
.masthead{text-align:center}h1{margin:0;padding:15px 16px;background:var(--navy);color:#fff;font-size:22px;letter-spacing:.06em;font-weight:600}
.report-meta{display:flex;justify-content:center;flex-wrap:wrap;gap:0;background:var(--light);padding:7px 12px;color:#536e80;font-size:12px}
.report-meta span+span::before{content:"|";margin:0 12px;color:#8ba5b8}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px 6px;font-size:12px}
.data-info,.actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.data-info{color:var(--muted)}.preview-label{border:1px solid #bfd7e6;color:var(--navy);padding:3px 7px;border-radius:3px;background:#f3f9fc}
[data-mode=cache],[data-mode=error]{color:#9d5513}button{border:1px solid #b9cbd6;background:#fff;color:var(--navy);border-radius:3px;padding:6px 12px;font:inherit;cursor:pointer}button:hover{background:#eaf4fa}button:disabled{cursor:wait;opacity:.65}
.unit-switch{display:flex}.unit-switch button{border-radius:0}.unit-switch button+button{border-left:0}.unit-switch .active{background:var(--navy);color:#fff;border-color:var(--navy)}
button:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid #217baa;outline-offset:2px}
.reading-note{margin:3px 16px 12px;color:var(--muted);font-size:12px;line-height:1.6}.notice{margin:8px 16px 12px;padding:10px 14px;border:1px solid #ebd2a2;background:#fff9ea;color:#83581b;font-size:12px;line-height:1.7}
.section-board{padding:0 16px}.ledger{min-width:0;margin-bottom:18px}.ledger-title{margin:0;padding:7px 10px;background:var(--blue);color:#fff;font-size:14px;font-weight:600;line-height:1.5}
.ledger-scroll,.table-scroll{width:100%;overflow:auto;scrollbar-color:#8daec4 #eef5f9;scrollbar-width:thin;border:1px solid var(--line);border-top:0}
table{border-collapse:separate;border-spacing:0;width:100%;font-variant-numeric:tabular-nums}.ledger-table{table-layout:fixed;min-width:1280px}.ledger-table .col-name{width:220px}
th,td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:9px 8px;line-height:1.5;font-size:13px;vertical-align:middle}th:last-child,td:last-child{border-right:0}th{position:sticky;top:0;z-index:2;background:var(--navy);color:white;text-align:center;font-size:12px;font-weight:600;white-space:normal}td{background:white;color:var(--text)}td.text{text-align:left;overflow-wrap:anywhere}td.num{text-align:right;white-space:nowrap}td.accent{color:var(--accent)}td.missing{color:#8195a3;text-align:center}
.is-sticky{position:sticky;left:0;z-index:1}th.is-sticky{z-index:3}td.is-sticky{box-shadow:1px 0 0 #bdcfdd}tbody tr:hover td{background:#f0f7fb}tfoot td{background:var(--light);font-weight:600;color:#102e44;border-bottom:2px solid var(--navy)}tfoot td.missing{color:#607e91}
.empty-cell{height:40px;text-align:center;color:var(--muted);font-size:12px}.ledger-summaries{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;align-items:start}.ledger-narrow .ledger-table{min-width:0;table-layout:fixed}.ledger-narrow .col-name{width:65%}.ledger-narrow .is-sticky{position:static;box-shadow:none}.ledger-note{font-size:11px;line-height:1.7;color:var(--muted);margin:6px 2px 0}
.panel{margin:0 16px;border-top:1px solid var(--line)}summary{padding:12px 0;cursor:pointer;font-size:13px;font-weight:600;color:var(--navy)}.section-note{font-weight:400;font-size:11px;color:var(--muted);margin-left:12px}.detail-note{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 12px}.table-scroll{max-height:520px;margin-bottom:16px}#reportTable{min-width:2160px;table-layout:fixed}#reportTable th:first-child{width:260px}#reportTable th:nth-child(2){width:150px}#reportTable td{font-size:12px}#notesList{padding-left:20px;color:var(--muted);font-size:12px;line-height:1.9;margin:0 0 14px}
.state{margin:16px;padding:32px;text-align:center;border:1px solid var(--line);background:#f7fafc;color:var(--muted)}.state.error{color:#a43e32;border-color:#eac5bf;background:#fff8f6}
@media(min-width:1600px){.ledger-table{min-width:0}th,td{padding:10px}.ledger-table .col-name{width:240px}}
@media(max-width:1000px){.ledger-summaries{grid-template-columns:1fr}.ledger-narrow .ledger-table{min-width:0}.ledger{margin-bottom:14px}.ledger-summaries{gap:0}}
@media(max-width:600px){.report-page{width:100%;margin:0;border:0}.toolbar{align-items:flex-start;flex-direction:column;padding:10px}.actions{align-self:flex-end}.section-board{padding:0 10px}.reading-note{margin:6px 10px 10px}.panel{margin:0 10px}h1{font-size:19px;padding:14px 10px}.report-meta{font-size:11px}.report-meta span+span::before{margin:0 6px}.ledger-table .col-name{width:180px}.ledger-table{min-width:1240px}.notice{margin:8px 10px}}
