.finance-dashboard{display:grid;grid-template-rows:auto auto auto minmax(300px,1fr);gap:10px;height:calc(100vh - 112px);overflow:hidden;color:#172033}
.finance-filter-card,.finance-totals,.finance-module-card,.finance-chart-card,.finance-donut-card{border:1px solid #d8dee9;background:#fff}
.finance-filter-card{display:flex;align-items:center;gap:8px;padding:9px 12px;white-space:nowrap;min-width:0;overflow-x:auto}
.finance-quick-ranges{display:flex;gap:6px}.finance-filter-card label{display:flex;align-items:center;gap:5px}.finance-filter-card input{width:140px;height:32px}.finance-filter-card label:first-of-type input{width:125px}.finance-filter-card button{height:32px;padding:4px 14px}.finance-filter-card button.active{color:#1d4ed8;border-color:#93c5fd;background:#eff6ff}
.finance-totals{display:flex;align-items:center;gap:48px;padding:12px 16px}.finance-totals span{color:#475569}.finance-totals b{margin-left:6px;color:#172033;font-size:18px}.finance-totals span:last-child b{color:#16803c}
.finance-module-card>header,.finance-chart-card>header,.finance-donut-card>header{display:flex;align-items:center;justify-content:space-between;height:38px;padding:0 12px;border-bottom:1px solid #d8dee9}.finance-module-card header small{color:#64748b}
.finance-module-card .table-wrap{min-height:0;border:0;overflow:hidden}.finance-module-card th,.finance-module-card td{height:28px;padding:4px 8px;line-height:20px;text-align:center;font-weight:400}.finance-module-card th{font-weight:600}.finance-source-dot{display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%}
.finance-visuals{display:grid;grid-template-columns:minmax(0,2.3fr) minmax(300px,.7fr);gap:10px;min-height:0}.finance-chart-card,.finance-donut-card{min-height:0;overflow:hidden}.finance-chart-host{position:relative;height:calc(100% - 38px);min-height:250px;padding:7px 10px 3px}.finance-line-chart{width:100%;height:100%;overflow:visible}.finance-line-chart .grid line{stroke:#e5eaf1}.finance-line-chart .grid text,.finance-line-chart .x-labels text{fill:#64748b;font-size:11px;text-anchor:end}.finance-line-chart .x-labels text{text-anchor:middle}.finance-line-chart .axis{stroke:#64748b}.finance-line-chart .series polyline{fill:none;stroke-width:3;vector-effect:non-scaling-stroke}.finance-line-chart circle{cursor:default;vector-effect:non-scaling-stroke}
.finance-legend{display:flex;gap:12px;overflow:hidden}.finance-legend i{display:flex;align-items:center;gap:5px;color:#475569;font-style:normal}.finance-legend em{width:17px;height:3px}.finance-chart-empty{display:grid;height:100%;place-items:center;color:#94a3b8}.finance-chart-tooltip,.finance-donut-tooltip{position:absolute;z-index:3;display:grid;gap:5px;width:210px;padding:10px;border:1px solid #cbd5e1;background:#fff;box-shadow:0 8px 22px rgb(15 23 42 / 18%);pointer-events:none}.finance-chart-tooltip[hidden],.finance-donut-tooltip[hidden]{display:none}.finance-chart-tooltip span,.finance-chart-tooltip small,.finance-donut-tooltip span,.finance-donut-tooltip small{color:#64748b}
.finance-donut-layout{position:relative;display:grid;grid-template-columns:190px minmax(120px,1fr);align-items:center;gap:14px;height:calc(100% - 38px);padding:18px}.finance-donut{display:grid;place-items:center;width:180px;height:180px;border-radius:50%}.finance-donut:after{content:'';grid-area:1/1;width:105px;height:105px;border-radius:50%;background:#fff}.finance-donut>span{z-index:1;grid-area:1/1;text-align:center;color:#64748b}.finance-donut>span b{color:#172033}.finance-donut-legend{display:grid;gap:6px}.finance-donut-legend button{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:7px;padding:5px;border:0;text-align:left}.finance-donut-legend button:hover{background:#f3f6fa}.finance-donut-legend i{width:9px;height:9px;border-radius:50%}.finance-donut-tooltip{right:12px;bottom:12px}
@media(max-width:1100px){.finance-visuals{grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr)}.finance-filter-card{gap:5px}.finance-totals{gap:22px}.finance-donut-layout{grid-template-columns:150px 1fr;padding:10px}.finance-donut{width:145px;height:145px}.finance-donut:after{width:85px;height:85px}}

/* 图表区域保持紧凑，避免挤占财务汇总信息。 */
.finance-dashboard{grid-template-rows:48px 64px auto minmax(136px,1fr)}
.finance-filter-card{padding:7px 10px;box-sizing:border-box}
.finance-chart-host{min-height:0;padding:5px 10px 2px}
.finance-donut-layout{grid-template-columns:150px minmax(120px,1fr);gap:10px;padding:10px 14px}
.finance-donut{width:140px;height:140px}
.finance-donut:after{width:82px;height:82px}

[data-finance-report-shell="profit"] .finance-report-modes label.finance-channel-choice,.finance-filter-card label.finance-channel-choice{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;width:auto;white-space:nowrap}
[data-finance-report-shell="profit"] .finance-report-modes .finance-channel-choice input[type="checkbox"],.finance-filter-card .finance-channel-choice input[type="checkbox"]{flex:0 0 16px;width:16px;min-width:16px;height:16px;padding:0;margin:0}
