:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#193d53;background:#f1f5f7;font-synthesis:none;font-size:14px}*{box-sizing:border-box}body{margin:0}header{background:#123e59;color:white;padding:20px 28px 16px}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}h1{font-size:26px;letter-spacing:1px;margin:0}.heading span{color:#bfd6e2;font-size:13px}.toolbar,.dates,.quick{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.toolbar{gap:18px}.dates label{display:flex;align-items:center;gap:8px;font-size:13px}input,select,button{font:inherit;border:1px solid #c9d9e2;border-radius:4px;padding:7px 10px;background:white;color:#234b63}button{cursor:pointer}button:hover{background:#e1eff6}.primary,.quick .active{background:#d6eefa;color:#123e59;border-color:#d6eefa;font-weight:600}button:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #e79442;outline-offset:3px}#statusbar{padding:10px 28px;background:#dcebf3;color:#45647a;font-size:13px;min-height:39px}.error{background:#fff0df!important;color:#983e12!important}main{padding:18px 24px;max-width:1800px;margin:auto}section{background:#fff;border:1px solid #d6e2e9;margin-bottom:18px;padding:18px 20px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}.section-title span,small,.hint{color:#657f8e}.section-title span{font-size:12px}h2{font-size:18px;margin:0}h3{font-size:14px;margin:0 0 12px}.stock-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));border-top:1px solid #e0e8ed;border-bottom:1px solid #e0e8ed}.stock-item{padding:13px 16px;border-right:1px solid #e0e8ed;display:flex;flex-direction:column;gap:9px}.stock-item span{font-size:14px}.stock-item small{font-size:11px;margin-left:8px}.stock-item b{font-size:22px;font-variant-numeric:tabular-nums}.stock-item b small{margin:0;font-weight:400}.stock-details{margin-top:12px}.negative{color:#b2442f!important}.kpis{display:grid;grid-template-columns:repeat(4,1fr);background:#f3f8fb;border:1px solid #d8e5ec}.kpis>div{padding:18px 20px;border-right:1px solid #d8e5ec;display:flex;flex-direction:column;gap:12px}.kpis>div:last-child{border:0}.kpis span{font-size:13px}.kpis strong{font-size:27px;line-height:1.25;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.kpis strong small{font-size:13px;font-weight:400;letter-spacing:0}.comparison{padding:20px 0 0}.comparison h3{display:inline-block}.comparison h3 small{font-weight:400;margin-left:12px}.legend{float:right;color:#657f8e;font-size:12px;display:flex;align-items:center;gap:6px}.legend i{width:12px;height:8px;background:#267ca3;display:inline-block;margin-left:12px}.legend i.sale{background:#83b9bb}.bar-row{display:grid;grid-template-columns:300px 1fr;gap:25px;align-items:center;margin:10px 0}.bar-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.bar-line{display:flex;align-items:center;gap:10px;min-height:18px}.bar-track{flex:1;background:#f2f6f8;height:8px}.bar{display:block;height:100%;background:#267ca3}.bar.sale{background:#83b9bb}.bar-line b{font-size:11px;font-weight:500;width:92px;text-align:right;font-variant-numeric:tabular-nums}.table-wrap{overflow:auto;width:100%}table{width:100%;border-collapse:collapse;line-height:1.5;font-size:13px}th,td{border:1px solid #d3e1e9;padding:10px 12px;vertical-align:middle}thead th{background:#173f59;color:white;font-weight:600;white-space:nowrap;text-align:center}thead tr:first-child:not(:last-child) th{background:#2f809e}td{background:white}tbody tr:nth-child(even)>td{background:#f8fbfc}td.num,th.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}tfoot td{background:#d9eaf4;font-weight:700;border-bottom:2px solid #183f59}.projects>thead>tr:first-child>th:first-child{width:30%;min-width:240px}.projects td:first-child{min-width:220px}.projects td.num{min-width:128px}.code{display:block;font-size:11px;font-weight:400;margin-top:4px}.money{font-weight:600}.expand{color:#247ca3;border-color:#d5e4ec;background:#f4f9fc}.project-detail{padding:12px}.project-detail td{background:white!important}.detail-row>td{background:#edf5f9!important}.pending{margin-top:15px;border-left:3px solid #d99450;padding:10px 14px;background:#fffbf6}summary{cursor:pointer;line-height:1.7;color:#285b78}details[open]>summary{margin-bottom:12px}.section-summary{font-size:18px;font-weight:600}.section-summary small{font-size:12px;font-weight:400;margin-left:14px}.source-scroll{max-height:330px;overflow:auto;margin-top:10px}.source-scroll .table-wrap{min-width:650px}.hint{font-size:12px;line-height:1.8;margin:10px 0 0}.missing{font-size:12px;color:#a36326;font-weight:500}.empty{text-align:center;padding:35px;color:#6e8594}.method{padding:0 4px 15px;color:#657f8e;font-size:12px;line-height:1.8}footer{padding:0 28px 20px;color:#6e8594;font-size:12px;display:flex;justify-content:space-between}[hidden]{display:none!important}#content[aria-busy=true]{opacity:.7}select{max-width:370px}label{font-size:12px}@media(max-width:850px){header{padding:16px}.heading{align-items:flex-start;flex-direction:column;gap:7px}h1{font-size:23px}main{padding:12px}section{padding:14px}.kpis{grid-template-columns:repeat(2,1fr)}.kpis>div{border-bottom:1px solid #d8e5ec}.kpis strong{font-size:22px}.section-title{align-items:flex-start;flex-direction:column;gap:10px}.bar-row{grid-template-columns:180px 1fr;gap:12px}.stock-item{padding:12px}.dates{gap:5px}select{max-width:calc(100vw - 130px)}#statusbar{padding:10px 16px}footer{display:block}.section-summary small{display:block;margin:0}}@media(max-width:500px){.stock-strip{grid-template-columns:1fr 1fr}.bar-row{grid-template-columns:1fr;gap:3px}.kpis>div{padding:14px}.dates label{flex-direction:column;align-items:flex-start}.dates>span{align-self:flex-end;margin-bottom:8px}.stock-item b{font-size:18px}.heading span{font-size:12px}.toolbar{gap:10px}}@media print{body{background:white}header{background:white;color:#123e59;padding:0 0 12px}.toolbar,.expand{display:none}.heading span{color:#45647a}main{padding:0;max-width:none}section{break-inside:avoid;padding:10px}#statusbar{background:white;padding:8px 0}table{font-size:10px}th,td{padding:5px}thead{display:table-header-group}.table-wrap{overflow:visible}.projects>thead>tr:first-child>th:first-child,.projects td:first-child{min-width:0}.projects td.num{min-width:0}.comparison{break-inside:avoid}.stock-strip{grid-template-columns:repeat(4,1fr)}footer{padding:0}.source-scroll{max-height:none}}
@media screen{.projects>thead>tr:first-child>th:first-child,.projects>tbody>tr:not(.detail-row)>td:first-child,.projects>tfoot>tr>td:first-child{position:sticky;left:0;z-index:1}.projects>thead>tr:first-child>th:first-child{z-index:2}}

.purchase-total{display:flex;gap:25px;padding:12px;background:#e5f0f6;flex-wrap:wrap;font-variant-numeric:tabular-nums}@media(max-width:600px){.table-wrap::before{content:"表格可左右滑动";display:block;color:#657f8e;font-size:11px;padding:6px 0}}

.billing-note{padding:10px 12px;background:#dcecf5;margin-bottom:15px;font-size:13px}.bar-line b{width:112px}.projects>thead>tr:first-child>th:first-child{min-width:230px}.kpis strong{font-size:clamp(20px,2.05vw,27px)}

.projects>thead>tr:first-child>th:first-child{width:24%}.projects td.num{min-width:110px}.projects .num{font-size:12px}

.expand{white-space:nowrap}

.project-code{white-space:nowrap;font-size:11px;font-variant-numeric:tabular-nums}

@media(min-width:1100px){.kpis{grid-template-columns:1.35fr repeat(3,1.1fr) .8fr}.kpis>div{padding:18px 14px}.kpis strong{font-size:clamp(18px,1.65vw,27px)}}

.quantity-subtotal td{background:#edf5f9!important;font-weight:600}.quantity-total td{background:#d9eaf4!important;font-weight:700;border-bottom:2px solid #183f59}

/* Report layout: shared spacing, restrained color, readable numeric hierarchy. */
:root{background:#eef2f5;color:#203e50;font-size:14px;scroll-behavior:smooth;scroll-padding-top:62px}
header{padding:22px 32px 18px;background:#163d52}.heading{margin-bottom:18px}h1{font-size:25px;letter-spacing:.5px}.toolbar{gap:12px}.toolbar>label{display:flex;gap:8px;align-items:center}.quick{gap:0;border-radius:5px;overflow:hidden}.quick button{border-radius:0;border-right:0}.quick button:last-child{border-right:1px solid #c9d9e2}.quick .active{background:#398995;color:white;border-color:#398995}
#statusbar{padding:9px 32px;background:#e4edf2;font-size:12px;min-height:34px}.report-nav{position:sticky;top:0;z-index:5;display:flex;gap:6px;overflow-x:auto;background:#fff;border-bottom:1px solid #d6e2e9;padding:9px 26px}.report-nav a{color:#536e7d;text-decoration:none;white-space:nowrap;padding:7px 12px;border-radius:4px;font-size:13px}.report-nav a:hover,.report-nav a:focus-visible{background:#e9f3f5;color:#176676}
main{max-width:1920px;padding:20px 28px}section{padding:20px;margin-bottom:20px;border-color:#dce5eb;border-radius:7px;box-shadow:0 2px 5px #173f5904;scroll-margin-top:64px}.section-title{margin-bottom:16px;min-height:28px}.section-title h2{font-size:17px;display:flex;align-items:center;gap:10px}.section-title h2:before{content:"";width:4px;height:18px;border-radius:2px;background:#328291}.section-title span{font-size:12px}.section-title>div{display:flex;align-items:center;gap:8px}
.kpis{border:1px solid #e0e9ed;border-radius:6px;overflow:hidden;background:#f7fafb;grid-template-columns:1.3fr repeat(3,1.1fr) .75fr}.kpis>div{padding:22px 18px;gap:12px;min-width:0;border-color:#e0e9ed}.kpis>div>span{color:#536d7c}.kpis strong{font-size:clamp(19px,1.75vw,30px);letter-spacing:-.5px}.kpis>div:nth-last-child(-n+2){background:#edf6f4}.kpis>div:nth-last-child(-n+2) strong{color:#176b65}.kpis>div>small{font-size:11px}.comparison{padding-top:20px}.bar-row{margin:12px 0;grid-template-columns:minmax(240px,30%) 1fr}.bar-track{height:7px;border-radius:3px}.bar{border-radius:3px;background:#367c96}.bar.sale{background:#91bcb8}
.stock-strip{border:1px solid #e2e9ee;border-radius:5px;background:#fafcfd}.stock-item{padding:14px 18px;gap:8px}.stock-item:last-child{border:0}.stock-item b{font-size:23px}.stock-details summary{font-size:12px}
table{font-size:13px;line-height:1.55}th,td{padding:11px 13px;border-color:#e0e7ec}thead th{background:#244b60;font-size:12px}thead tr:first-child:not(:last-child) th{background:#377687}tbody tr:nth-child(even)>td{background:#fafcfd}tbody tr:hover>td{background:#f0f7fa}.table-wrap{border-radius:4px}.projects>thead>tr:first-child>th:first-child{min-width:240px;width:24%}.projects td.num{min-width:98px}.projects .num{font-size:13px}.projects td strong{font-weight:600}.projects>tbody>tr:not(.detail-row)>td:nth-child(3){white-space:nowrap;color:#547080}.projects>thead>tr:first-child>th:nth-last-child(2){min-width:82px}.projects .expand{padding:5px 10px;font-size:12px}.project-code{font-size:12px;color:#526d7c}.quantity-subtotal td{background:#f0f5f8!important;color:#426477}.quantity-total td,tfoot td{background:#e0eef2!important;border-bottom:2px solid #528391}.hint{color:#7a8c97;font-size:11px}.purchase-total{background:#edf4f7;border-radius:0 0 4px 4px}.section-summary{font-size:16px}.method{font-size:12px}footer{font-size:11px}
@media(max-width:1100px){.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.kpis>div:first-child{grid-row:span 2;justify-content:center}.kpis>div{border-bottom:1px solid #e0e9ed}.kpis strong{font-size:23px}}
@media(max-width:650px){header{padding:18px 16px}h1{font-size:22px}.heading{gap:6px;margin-bottom:14px}.toolbar{gap:10px}.report-nav{padding:7px 10px;gap:0}.report-nav a{font-size:12px;padding:7px 10px}main{padding:12px}section{padding:14px;margin-bottom:14px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.kpis>div:first-child{grid-row:auto;grid-column:1/-1}.kpis>div{padding:15px 12px;gap:8px}.kpis strong{font-size:22px}.section-title>div{width:100%}.section-title select{flex:1;min-width:0;max-width:100%}.bar-row{grid-template-columns:1fr;gap:5px}.bar-label{font-size:12px}.stock-strip{grid-template-columns:1fr 1fr}.stock-item{padding:12px}.stock-item b{font-size:20px}.projects>thead>tr:first-child>th:first-child,.projects td:first-child{min-width:170px;max-width:200px}.table-wrap::before{font-size:10px}.legend{font-size:11px}}
@media print{.report-nav{display:none}section{box-shadow:none;border-radius:0;scroll-margin-top:0}.kpis{grid-template-columns:1.3fr repeat(4,1fr)}.kpis>div:first-child{grid-row:auto;grid-column:auto}.kpis>div{padding:10px}.kpis strong{font-size:18px}header{background:white;padding:0}.projects>thead>tr:first-child>th:first-child,.projects td:first-child{min-width:0}.projects td.num{min-width:0}.projects .num,table,.project-code{font-size:9px}th,td{padding:5px}.table-wrap{border-radius:0}.report-nav a{display:none}}
