.billing-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}
.billing-workspace-nav{display:flex;gap:6px;margin:-8px 0 20px;padding:6px;border:1px solid var(--line);border-radius:13px;background:#e9efeb;width:max-content;max-width:100%;overflow-x:auto}
.billing-workspace-nav button{flex:0 0 auto;padding:10px 15px;border:0;border-radius:9px;background:transparent;color:#617068;font-size:13px;font-weight:750}
.billing-workspace-nav button:hover{background:#f7faf8;color:var(--ink)}
.billing-workspace-nav button.active{background:#fff;color:var(--green);box-shadow:0 3px 10px rgba(31,63,48,.1)}
.billing-business-filter{width:190px;flex:0 0 190px;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;padding:0 5px;color:#526159;font-size:12px}.billing-business-filter span{font-weight:750;white-space:nowrap}.billing-business-filter select{height:38px;padding:7px 28px 7px 10px;border-radius:9px;background:#fff;font-size:13px}
.billing-card{border:1px solid var(--line);border-radius:14px;padding:18px;background:#fbfdfb}
.billing-card h4{margin:0 0 12px;font-size:18px}.billing-card strong{font-size:24px}.billing-card p{min-height:42px;color:var(--sub);line-height:1.5}.billing-card button{width:100%}.panel+.panel{margin-top:18px}
button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
@media(max-width:620px){.billing-grid{grid-template-columns:1fr}.billing-workspace-nav{width:100%}.billing-business-filter{width:180px;flex-basis:180px}#billingPage .metric small{display:block;margin:6px 0 0}aside{overflow-x:auto}aside nav{justify-content:flex-start;min-width:max-content;gap:3px}aside nav button{flex:0 0 auto}}
.billing-item-actions{display:flex;gap:7px;flex-wrap:wrap;min-width:120px}
.billing-item-actions button{white-space:nowrap}
.billing-store-status{display:grid;gap:14px}
.billing-store-card{padding:20px;border:1px solid var(--line);border-radius:15px;background:#fbfdfb}
.billing-store-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.billing-store-card-head h4{margin:9px 0 4px;font-size:20px}.billing-store-card-head small{color:var(--sub)}
.billing-store-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.billing-store-values{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));border-top:1px solid var(--line)}
.billing-store-values>div{min-width:0;padding:16px 16px 2px 0}.billing-store-values>div+div{padding-left:16px;border-left:1px solid var(--line)}
.billing-store-values span,.billing-store-values small{display:block;color:var(--sub);font-size:12px}.billing-store-values strong{display:block;margin:7px 0 5px;font-size:20px;overflow-wrap:anywhere}.billing-store-values small{line-height:1.45}
.billing-usage-track{height:5px;margin-top:9px;overflow:hidden;border-radius:8px;background:#e1e8e3}.billing-usage-track i{display:block;height:100%;border-radius:inherit;background:var(--green)}
.member-billing-purchase-dialog{width:min(900px,calc(100% - 28px));max-width:none}.member-billing-purchase{padding:26px}.member-billing-purchase .modal-head p:last-child{max-width:650px;margin:7px 0 0;color:var(--sub);font-size:13px;line-height:1.5}
.dashboard-store-billing-list{display:grid;gap:10px}
.dashboard-store-billing-list article{padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:#fbfdfb}
.dashboard-store-billing-list article>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}.dashboard-store-billing-list article>div:first-child>b{font-size:15px}
.dashboard-store-billing-list dl{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:0}.dashboard-store-billing-list dl>div{min-width:0}.dashboard-store-billing-list dt{color:var(--sub);font-size:11px}.dashboard-store-billing-list dd{margin:4px 0 0;font-size:13px;font-weight:750;overflow-wrap:anywhere}
.billing-filter-shell{display:grid;gap:14px;margin-bottom:22px;padding:16px;border:1px solid var(--line);border-radius:14px;background:#f8faf8}
.billing-filter-row{display:grid;gap:12px;align-items:end}.billing-filter-row label{min-width:0}.billing-filter-row input,.billing-filter-row select{width:100%}
.billing-report-filter-row{grid-template-columns:130px 145px 145px minmax(120px,.8fr) minmax(140px,1fr) minmax(160px,1.15fr) auto}
.billing-usage-filter-row{grid-template-columns:145px 145px minmax(140px,.8fr) minmax(160px,1fr) minmax(190px,1.25fr) auto}
.billing-filter-actions{display:flex;justify-content:flex-end;gap:8px}.billing-filter-actions button{min-width:92px}
.billing-chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:4px 0 22px}
.billing-chart-card{min-width:0;padding:17px;border:1px solid var(--line);border-radius:14px;background:#fbfdfb}
.billing-chart-card>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px}
.billing-chart-card h4{margin:0;font-size:16px}.billing-chart-card small,.filter-result{color:var(--sub);font-size:12px}
.billing-chart{min-height:285px;overflow-x:auto;overflow-y:hidden}
.billing-chart svg{width:100%;height:285px;display:block}
.billing-chart-bar{fill:var(--green);opacity:.86;transition:opacity .15s}
.billing-chart-bar:hover{opacity:1}.billing-chart-axis{stroke:#bdc9c1;stroke-width:1}.billing-chart-label{fill:#657169;font-size:10px;text-anchor:start}.billing-chart-scale{fill:#78837d;font-size:10px;text-anchor:end}
.filter-result{margin:-8px 0 12px;text-align:right}
@media(max-width:1200px){.billing-report-filter-row{grid-template-columns:120px 137px 137px minmax(105px,.8fr) minmax(120px,1fr) minmax(145px,1.1fr) 82px}.billing-usage-filter-row{grid-template-columns:137px 137px minmax(115px,.8fr) minmax(135px,1fr) minmax(160px,1.15fr) 82px}.billing-filter-row{gap:8px}.billing-filter-actions button{min-width:82px}}
@media(max-width:900px){.billing-report-filter-row,.billing-usage-filter-row{grid-template-columns:repeat(2,minmax(0,1fr))}.billing-filter-actions{grid-column:1/-1}.billing-chart-grid{grid-template-columns:1fr}}
@media(max-width:900px){.billing-store-values{grid-template-columns:1fr 1fr}.billing-store-values>div:nth-child(3){padding-left:0;border-left:0}.billing-store-values>div:nth-child(n+3){margin-top:12px;border-top:1px solid var(--line)}}
@media(max-width:720px){.billing-filter-shell{padding:13px}.billing-report-filter-row,.billing-usage-filter-row{grid-template-columns:1fr}.billing-filter-actions{grid-column:auto}.billing-filter-actions button{width:100%}.billing-chart-card{padding:13px}.billing-chart{min-height:260px}.billing-chart svg{height:260px}.filter-result{text-align:left}.billing-store-card-head{flex-direction:column}.billing-store-actions{width:100%;justify-content:stretch}.billing-store-actions button{flex:1}.billing-store-values{grid-template-columns:1fr}.billing-store-values>div,.billing-store-values>div+div,.billing-store-values>div:nth-child(3){padding:14px 0;border-top:1px solid var(--line);border-left:0;margin:0}.member-billing-purchase{padding:20px}.dashboard-store-billing-list dl{grid-template-columns:1fr}.dashboard-store-billing-list dl>div{display:flex;justify-content:space-between;gap:10px}.dashboard-store-billing-list dd{text-align:right}}
