:root{font-family:"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;color:#1c3458;background:#f4f7fb;font-synthesis:none;font-variant-numeric:tabular-nums;--blue:#2563eb;--muted:#8494ac;--line:#e3eaf4;--green:#05956c;--red:#e95168;--amber:#c4801f}
*{box-sizing:border-box}
body{margin:0;background:linear-gradient(150deg,#eef5ff55,transparent 35%),#f4f7fb;font-size:13px}
button,input{font:inherit}
button{cursor:pointer}
button:focus-visible,input:focus-visible{outline:2px solid #2563eb;outline-offset:3px}
button{transition:background .15s,color .15s}
button:hover{filter:brightness(.98)}
[hidden]{display:none!important}
.topbar{height:67px;max-width:1968px;margin:auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:750;white-space:nowrap;letter-spacing:-.4px}
.brand-icon{background:#2563eb;color:white;border-radius:9px;width:34px;height:34px;display:grid;place-items:center;font-size:25px}
.page-tag{font-size:11px;letter-spacing:0;font-weight:500;background:#e6f0ff;color:#3674df;border-radius:14px;padding:5px 11px;margin-left:6px}
.header-actions{display:flex;align-items:center;gap:14px;color:#7f92ad;font-size:11px}
.snapshot-stamp:before,.connection:before{content:"";display:inline-block;width:7px;height:7px;background:#09a579;border-radius:50%;margin-right:7px}
.snapshot-stamp.stale:before,.connection.stale:before{background:#d49837}
#clock{white-space:nowrap}
.quiet,.text-button{background:none;border:0;color:#6d84a6;font-size:11px;padding:4px 2px;white-space:nowrap}
.text-button{color:#2871e9}
.quiet:hover,.text-button:hover{color:#174da9}
main{max-width:1968px;margin:auto;padding:0 28px 9px}
.filter-bar{display:flex;align-items:center;gap:18px;min-height:55px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px 16px}
.filter-label{font-size:12px;font-weight:650}
.segments{display:inline-flex;background:#f7f9fe;border:1px solid #dfe8f5;border-radius:6px;overflow:hidden;flex-shrink:0}
.segments button{min-width:74px;padding:7px 15px;background:transparent;border:0;color:#667e9f;font-size:12px;white-space:nowrap}
.segments button+button{border-left:1px solid #e6ecf7}
.segments button.active{background:#2563eb;color:white;box-shadow:0 2px 5px #2563eb15}
.date-range{font-size:12px;color:#57749c;background:#fbfcff;border:1px solid #e5ebf5;border-radius:5px;padding:7px 16px;white-space:nowrap}
.fx-control{margin-left:auto;display:flex;align-items:center;color:#6380a5;font-size:11px;border:1px solid #dfe8f5;border-radius:5px;white-space:nowrap}
.fx-control>span:first-child{padding:8px 10px;background:#f8faff;border-right:1px solid #e4eaf5}
.fx-input{padding:0 9px;color:#284e87}
.fx-input input{width:49px;border:0;border-bottom:1px dashed #aec7ef;color:#1b4e9f;text-align:center;background:transparent;padding:3px 0;-moz-appearance:textfield}
.fx-input input::-webkit-inner-spin-button{appearance:none}
.fx-input input:invalid{color:var(--red);border-bottom-color:var(--red)}
.health-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fffcf5;border:1px solid #f1e9d7;border-radius:7px;margin:10px 0 12px;padding:7px 13px;min-height:37px}
.health-tags,.health-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.health-actions{font-size:11px;color:#c08527}
.badge{display:inline-block;padding:3px 8px;font-size:10px;font-weight:500;border-radius:5px;white-space:nowrap;line-height:1.4}
.badge.green{background:#e8f9f1;color:#07976c;border:1px solid #cef0e3}
.badge.amber{background:#fff3dc;color:#bd7b19;border:1px solid #f8e6bf}
.badge.neutral{background:#f0f4fb;color:#7c91af;border:1px solid #e1e9f5}
.load-error{border:1px solid #f5d1cc;background:#fff1ee;color:#b65b49;border-radius:7px;padding:9px 14px;font-size:12px;margin:10px 0}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:12px}
.kpi,.card{background:#fff;border:1px solid #e0e8f2;border-radius:9px;box-shadow:0 2px 5px #233e6503;min-width:0}
.kpi{padding:17px 20px 14px;display:grid;grid-template-columns:32px 1fr;gap:12px;align-items:start}
.kpi-icon{background:#eaf3ff;color:#2f74ee;width:32px;height:32px;border-radius:8px;display:grid;place-items:center;font-size:20px}
.kpi-label{color:#526e96;font-size:12px;font-weight:600;line-height:1.4;margin-bottom:8px}
.kpi-value{display:flex;align-items:center;gap:9px;color:#19355f;font-size:clamp(22px,1.9vw,35px);font-weight:750;line-height:1.1;letter-spacing:-.5px;white-space:nowrap}
.kpi-unit{font-size:10px;font-weight:500;letter-spacing:0;color:#2563eb;background:#edf4ff;border:1px solid #dceaff;padding:3px 6px;border-radius:4px}
.kpi-note{color:#8a9bb3;font-size:10px;line-height:1.5;margin-top:9px}
.card{padding:14px 17px}
.card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;min-height:26px}
.heading-copy{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
h1,h2{margin:0;font-size:17px;line-height:1.4;font-weight:700;letter-spacing:-.2px}
.muted,.section-note{color:#8b9db6;font-size:10px;line-height:1.5}
.compact button{font-size:11px;min-width:82px;padding:6px 12px}
.table-scroll{overflow-x:auto;scrollbar-width:thin;scrollbar-color:#cbd8e9 transparent}
table{border-collapse:collapse;width:100%;table-layout:fixed;white-space:nowrap}
th,td{text-align:right;border-bottom:1px solid #edf2f8;padding:10px 12px;overflow:hidden;text-overflow:ellipsis}
th{background:#f2f7fc;color:#6f88aa;font-size:11px;font-weight:500;height:32px;padding-top:7px;padding-bottom:7px}
td{font-size:12px;height:43px;color:#3e608c}
th:first-child,td:first-child{text-align:left}
tbody tr:nth-child(even){background:#fcfdff}
tbody tr:hover{background:#f4f8ff}
tbody tr:last-child td{border-bottom:0}
.business-table th:nth-child(1){width:18%}
.business-table th:nth-child(2){width:18%}
.business-table th:nth-child(3){width:18%}
.business-table th:nth-child(4){width:15%}
.business-table th:nth-child(5){width:10%}
.business-table th:nth-child(6){width:16%}
.business-table th:nth-child(7){width:5%}
.business-table td:last-child{padding-right:9px;padding-left:4px}
.business-table .group-cell{font-weight:600;color:#365781}
.shop-count{color:#8296b1;font-size:10px;font-weight:400}
.group-cell .badge{font-size:9px;margin-left:8px;padding:2px 5px}
.money-main{color:#284b80;font-weight:600}
.money-sales{font-weight:700;color:#1e426f}
.money-secondary{display:block;font-size:9px;color:#93a3ba;font-weight:400;line-height:1.4;margin-top:2px}
.negative{color:var(--red)!important}
.source-date{font-size:10px;color:#8c9fb9;line-height:1.5}
.source-date small{display:block;font-size:9px;color:#a0adc1}
.business-table tfoot td{font-weight:650;background:#edf4ff;border:0;color:#28538f;height:35px}
.link-button{border:0;background:none;color:#2c75e8;padding:3px 0;font-size:11px}
.link-button:hover{text-decoration:underline}
.bottom-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.08fr);gap:12px;margin-top:12px}
.cancel-summary{font-size:19px;font-weight:700;color:#264976;white-space:nowrap}
.cancel-summary span{color:#c3cfdf;font-weight:400;margin:0 7px}
.cancel-summary small{font-size:11px;color:#8198b5;font-weight:400}
.cancellations .section-note{margin:0 0 9px}
.cancel-table th:first-child{width:19%}
.cancel-table th:nth-child(2){width:16%}
.cancel-table th:nth-child(3){width:26%}
.cancel-table th:nth-child(4){width:17%}
.cancel-table th:nth-child(5){width:22%;text-align:center}
.cancel-table td{height:32px;padding:5px 12px;font-size:11px}
.cancel-table td:last-child{text-align:center}
.cancel-table .badge{font-size:9px;padding:2px 7px}
.card-footnote{font-size:10px;color:#94a4ba;line-height:1.5;margin:9px 0 0}
.balance-card .section-note{margin:3px 0 0}
.bar-row{display:grid;grid-template-columns:51px minmax(0,1fr) 83px;gap:11px;align-items:center;margin:15px 0;color:#6480a6;font-size:11px}
.bar-track{height:12px;background:#f0f5fc;border-radius:3px;overflow:hidden}
.bar-fill{height:100%;background:linear-gradient(90deg,#7bb5ff,#3983ee);border-radius:2px;min-width:0}
.bar-value{text-align:right;color:#365b91}
.other-balance{display:flex;gap:12px;font-size:11px;color:#8fa2bc;margin-top:16px;padding-top:10px;border-top:1px solid #edf2f7}
.other-balance strong{font-weight:500}
footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0 0;font-size:10px;color:#94a4b9}
footer .text-button{font-size:10px}
.connection{white-space:nowrap;color:#7892ad}
dialog{border:1px solid #dce6f4;border-radius:12px;padding:0;width:min(780px,94vw);max-height:85vh;box-shadow:0 20px 90px #1e365333;color:#355882;background:#fff}
dialog::backdrop{background:#1b335a55;backdrop-filter:blur(3px)}
.dialog-heading{display:flex;justify-content:space-between;align-items:center;padding:17px 22px;border-bottom:1px solid #e8eef6;position:sticky;top:0;background:white;z-index:1}
.dialog-close{width:28px;height:28px;border-radius:6px;background:#f5f8fd;border:1px solid #dce6f3;color:#7187a5;font-size:21px}
.dialog-content{padding:18px 22px;font-size:12px;line-height:1.8}
.dialog-content p{color:#6d83a3}
.dialog-content h3{font-size:13px;margin:18px 0 8px;color:#34557e}
.dialog-content dl{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(0,1.7fr);margin:0}
.dialog-content dt,.dialog-content dd{margin:0;border-bottom:1px solid #edf2f8;padding:8px 0}
.dialog-content dt{color:#879cb7}
.dialog-content dd{color:#355b91;overflow-wrap:anywhere}
.issue-item{padding:12px;background:#fffbf3;border:1px solid #f1e3c9;border-radius:7px;margin:8px 0;overflow-wrap:anywhere}
.issue-item strong{color:#a16e20}
.issue-item p{margin:3px 0;color:#99835e}
.empty-state{padding:25px;text-align:center;color:#91a3bc}
.balance-trend-card{margin-top:12px;padding-bottom:11px}
.trend-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:1px 0 8px}
.trend-stat{border:1px solid #e6edf7;background:#f9fbfe;border-radius:7px;padding:9px 12px;min-width:0}
.trend-stat span,.trend-stat em{display:block;color:#8196b3;font-size:9px;font-style:normal}
.trend-stat strong{display:block;color:#254c80;font-size:16px;line-height:1.35;margin:2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trend-stat strong small{font-size:8px;font-weight:500;color:#7490b3}
.trend-chart{height:260px;min-width:0;background:linear-gradient(180deg,#f8fbff,#fff);border:1px solid #e8eef7;border-radius:7px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#cbd8e9 transparent}
.trend-chart svg{display:block;width:100%;height:100%;overflow:visible}
.trend-grid line{stroke:#e3ebf5;stroke-width:1;vector-effect:non-scaling-stroke}
.trend-grid text{fill:#8297b4;font-size:10px}
.trend-labels text{fill:#8297b4;font-size:8px}
.trend-labels .x-label{text-anchor:end}
.trend-area{fill:#4389f0;fill-opacity:.08}
.trend-line{fill:none;stroke:#347fe9;stroke-width:2.3;vector-effect:non-scaling-stroke}
.trend-dots circle{fill:#fff;stroke:#347fe9;stroke-width:1.5;vector-effect:non-scaling-stroke}
.trend-dots circle.latest{fill:#347fe9;stroke:#fff;stroke-width:2}
.trend-dots circle.incomplete{fill:#f5ad3f;stroke:#f5ad3f}
.trend-crosshair{stroke:#7a97bd;stroke-width:1;stroke-dasharray:4 4;vector-effect:non-scaling-stroke}
.trend-hover-dot{fill:#fff;stroke:#2563eb;stroke-width:2.5;vector-effect:non-scaling-stroke}
.trend-tooltip{position:fixed;z-index:30;width:230px;padding:10px 12px;border:1px solid #cfe0f6;border-radius:8px;background:#fff;box-shadow:0 8px 28px #183a6a26;color:#274d7d;pointer-events:none}
.trend-tooltip strong,.trend-tooltip span,.trend-tooltip small{display:block}
.trend-tooltip strong{font-size:12px;margin-bottom:5px;color:#193b69}
.trend-tooltip span{font-size:12px;font-weight:650}
.trend-tooltip small{font-size:9px;color:#8297b4;margin-top:3px}
.balance-trend-card .card-footnote{margin-top:7px}
@media(max-width:720px){.trend-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.trend-stat{padding:8px}
.trend-stat strong{font-size:13px}
.trend-chart{height:230px}
.trend-chart svg{min-width:1100px}
.trend-grid text,.trend-labels text{font-size:9px}
}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

@media(min-width:1700px){.topbar{height:62px}
.filter-bar{min-height:50px}
.health-strip{margin:9px 0 10px}
.kpi{padding:15px 20px 13px}
.kpi-label{margin-bottom:6px}
.kpi-note{margin-top:7px}
.card{padding:13px 18px}
.business-table td{height:42px}
.business-table .money-secondary,.business-table .source-date small{display:none}
.cancel-table td{height:29px}
.bar-row{margin:14px 0}
.bottom-grid{margin-top:12px}
}

@media(max-width:1450px){.topbar{height:58px;padding:0 20px}
.brand{font-size:19px}
.page-tag{font-size:10px}
.header-actions{gap:10px}
main{padding:0 20px 9px}
.filter-bar{gap:12px;min-height:48px}
.health-strip{margin:9px 0}
.kpi{padding:14px 15px;gap:8px;grid-template-columns:26px 1fr}
.kpi-icon{width:26px;height:26px;font-size:17px}
.kpi-value{font-size:25px;gap:5px}
.kpi-unit{font-size:9px;padding:2px 4px}
.kpi-label{font-size:11px;margin-bottom:7px}
.kpi-note{font-size:9px;margin-top:7px}
.card{padding:12px 14px}
.card-heading{margin-bottom:8px}
h1,h2{font-size:15px}
.business-table td{height:42px;font-size:11px}
th{font-size:10px}
.business-table th,.business-table td{padding-left:9px;padding-right:9px}
.source-date{font-size:9px}
.group-cell .badge{display:block;width:max-content;margin:3px 0 0}
.shop-count{font-size:9px}
.cancel-summary{font-size:16px}
.bottom-grid{grid-template-columns:minmax(0,1.85fr) minmax(0,1fr)}
.cancel-table td{height:29px;font-size:10px;padding:4px 9px}
.bar-row{margin:13px 0;font-size:10px;grid-template-columns:42px 1fr 75px;gap:8px}
.card-footnote{font-size:9px}
.other-balance{font-size:10px;margin-top:9px}
.health-tags,.health-actions{gap:8px}
}

@media(max-width:1100px){.brand{font-size:17px}
.page-tag{display:none}
.header-actions{gap:9px}
.header-actions #clock{display:none}
.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
.kpi-value{font-size:29px}
.bottom-grid{grid-template-columns:1.7fr 1fr}
.business-table{min-width:900px}
.date-range{font-size:10px;padding:7px 10px}
.segments button{min-width:55px;padding:7px 11px}
.filter-bar{gap:9px}
.health-strip{align-items:flex-start}
.health-tags{gap:6px}
.badge{font-size:9px}
.health-actions{font-size:10px}
.heading-copy{gap:7px}
.cancel-summary{font-size:14px}
.cancel-table{min-width:520px}
}

@media(max-width:720px){.topbar{height:auto;min-height:58px;padding:10px 12px;gap:7px;flex-wrap:wrap}
.brand{font-size:17px;gap:7px}
.brand-icon{width:27px;height:27px;font-size:20px}
.header-actions{gap:8px;font-size:9px}
.header-actions .quiet{font-size:10px}
.header-actions .snapshot-stamp{display:none}
main{padding:0 12px 9px}
.filter-bar{flex-wrap:wrap;padding:10px;gap:9px}
.filter-label{font-size:11px}
.date-range{margin-left:auto}
.fx-control{margin-left:0}
.health-strip{flex-wrap:wrap;gap:8px}
.health-tags{gap:5px}
.health-actions{width:100%;justify-content:space-between}
.kpis{gap:8px}
.kpi{grid-template-columns:1fr;padding:12px;gap:5px}
.kpi-icon{display:none}
.kpi-value{font-size:clamp(18px,5.1vw,27px);gap:5px;flex-wrap:wrap}
.kpi-label{font-size:11px}
.kpi-note{font-size:9px;line-height:1.5}
.card{padding:11px}
.card-heading{gap:8px;flex-wrap:wrap}
.heading-copy{gap:6px}
.heading-copy .muted{display:block;width:100%}
.compact button{min-width:72px;font-size:10px}
.business-table{min-width:780px}
.business-table th,.business-table td{font-size:10px}
.bottom-grid{grid-template-columns:1fr;gap:10px}
.cancel-summary{font-size:16px}
.cancel-table{min-width:490px}
.bar-row{grid-template-columns:50px 1fr 90px;font-size:11px;margin:15px 0}
.other-balance{margin-top:12px}
.balance-card .card-heading{margin-bottom:12px}
footer{flex-wrap:wrap;gap:5px;font-size:9px}
footer #transport{order:3;width:100%;overflow-wrap:anywhere}
dialog{max-height:90vh}
.dialog-content{padding:14px;font-size:11px}
.dialog-content dl{grid-template-columns:110px 1fr}
.dialog-heading{padding:14px}
}

