.dashboard-overview{display:grid;gap:20px;min-width:0}
.dashboard-heading{display:flex;justify-content:space-between;align-items:center;gap:24px}
.dashboard-eyebrow{display:block;color:var(--muted);font-size:10px;font-weight:850;letter-spacing:.12em;text-transform:uppercase;line-height:1.5}
.dashboard-heading h2{margin:6px 0;font-size:30px;line-height:1.2;letter-spacing:-.04em}
.dashboard-heading h2 span{font-size:23px}
.dashboard-heading p{margin:0;color:var(--muted);font-size:14px}
.dashboard-heading-actions{display:grid;gap:12px;justify-items:end;flex-shrink:0}
.dashboard-heading-actions>span{color:var(--muted);font-size:12px;text-transform:capitalize}
.dashboard-overview button{min-height:44px}
.dashboard-overview button:focus-visible,.dashboard-overview summary:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.dashboard-notice{display:flex;align-items:center;gap:15px;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:12px;padding:13px 17px;background:var(--accent-soft);font-size:12px}
.dashboard-notice b{flex-shrink:0;color:var(--accent)}
.dashboard-notice span{flex:1;color:var(--text-2)}
.dashboard-notice.overdue{border-left-color:var(--warning);background:var(--warning-soft)}
.dashboard-notice.overdue b{color:var(--warning)}
.dashboard-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.dashboard-periods{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.dashboard-periods button{border:0;border-radius:8px;padding:9px 14px;background:transparent;color:var(--muted);font-size:12px;font-weight:800}
.dashboard-periods button[aria-pressed="true"]{background:var(--primary-soft);color:var(--primary)}
.dashboard-periods button:disabled{opacity:.65;cursor:not-allowed}
.dashboard-update{color:var(--muted);font-size:11px}
.overview-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.overview-metric{min-width:0;border-radius:16px;padding:20px;position:relative;isolation:isolate;overflow:hidden;color:#fff;box-shadow:0 8px 18px rgba(15,40,72,.08)}
.overview-metric:after{content:"";position:absolute;z-index:-1;width:155px;height:155px;right:-72px;bottom:-91px;border:20px solid rgba(255,255,255,.10);border-radius:50%;pointer-events:none}
.metric-blue{background:linear-gradient(125deg,#1764d6,#1c74dd)}
.metric-green{background:linear-gradient(125deg,#007454,#078561)}
.metric-orange{background:linear-gradient(125deg,#a83a10,#b34413)}
.metric-amber{background:linear-gradient(125deg,#875308,#945b09)}
.overview-metric-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;font-size:11px;font-weight:800;line-height:1.45;letter-spacing:.015em}
.overview-metric-top>span:first-child{max-width:82%;min-height:32px;text-transform:uppercase}
.overview-metric-top>span:last-child{font-size:18px;opacity:.8}
.overview-metric>strong{display:block;margin:10px 0 7px;font-size:clamp(23px,2.1vw,34px);font-weight:850;letter-spacing:-.05em;line-height:1.2;overflow-wrap:anywhere}
.overview-metric p{margin:0;font-size:11px;line-height:1.45;color:#fff}
.dashboard-main-grid{display:grid;grid-template-columns:minmax(0,1.95fr) minmax(270px,1fr);gap:20px;align-items:stretch}
.dashboard-overview .card{min-width:0;border-radius:15px;box-shadow:0 3px 12px rgba(20,35,52,.025)}
.dashboard-overview .card-head{padding:18px 20px;gap:12px;align-items:center}
.dashboard-overview .card-head h3{font-size:14px;font-weight:850;margin-top:3px}
.dashboard-range{font-size:11px;color:var(--muted);white-space:nowrap}
.dashboard-count{min-width:33px;min-height:33px;display:grid;place-items:center;background:var(--warning-soft);color:var(--warning);border-radius:10px;font-size:14px;font-weight:850}
.dashboard-analysis-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:10px;padding:18px 20px 4px}
.dashboard-analysis-summary>strong{font-size:27px;font-weight:850;letter-spacing:-.04em}
.dashboard-analysis-summary>span{color:var(--muted);font-size:11px}
.dashboard-analysis-summary>small{flex-basis:100%;font-size:11px;color:var(--muted)}
.dashboard-chart{margin:10px 16px 16px;min-width:0}
.dashboard-chart svg{display:block;width:100%;height:auto;min-height:175px}
.chart-grid-line{stroke:var(--line);stroke-dasharray:3 5;stroke-width:1}
.chart-tick{fill:var(--muted);font-size:10px;font-family:inherit}
.chart-sales-bar{fill:var(--accent)}
.dashboard-chart figcaption{color:var(--muted);font-size:10px;text-align:center;margin-top:2px}
.chart-data{margin-top:12px;border-top:1px solid var(--line);padding-top:6px}
.chart-data summary{font-size:11px;color:var(--muted);cursor:pointer;min-height:38px;display:flex;align-items:center}
.chart-data .table-wrap{max-height:240px;overflow:auto}
.dashboard-stock{display:flex;flex-direction:column}
.dashboard-stock-list,.dashboard-ranking,.dashboard-recent{list-style:none;padding:0 20px;margin:0}
.dashboard-stock-list li{display:flex;align-items:center;gap:11px;min-height:66px;padding:12px 0;border-bottom:1px solid var(--line)}
.dashboard-stock-list li:last-child,.dashboard-ranking li:last-child,.dashboard-recent li:last-child{border-bottom:0}
.dashboard-stock-list li>div,.dashboard-ranking li>div,.dashboard-recent li>div{flex:1;min-width:0}
.dashboard-stock-list b,.dashboard-ranking b,.dashboard-recent b{display:block;font-size:12px;font-weight:750;overflow-wrap:anywhere}
.dashboard-stock-list small,.dashboard-ranking small,.dashboard-recent small{display:block;font-size:10px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}
.dashboard-stock-list strong{font-size:15px;text-align:right}
.dashboard-stock-list strong small{font-size:9px;font-weight:500}
.stock-signal{width:8px;height:8px;flex:0 0 auto;border-radius:50%;background:var(--warning)}
.stock-signal.critical{background:var(--danger)}
.dashboard-card-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 20px;border-top:1px solid var(--line);margin-top:auto;min-height:56px}
.dashboard-card-foot>span{font-size:10px;color:var(--muted)}
.dashboard-link{font-size:11px;background:transparent;color:var(--primary);padding:8px 5px;white-space:normal;text-align:left}
.dashboard-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;padding:30px 20px;min-height:175px;color:var(--muted)}
.dashboard-empty>span{font-size:30px;color:var(--accent)}
.dashboard-empty>b{font-size:12px;color:var(--text-2)}
.dashboard-empty p{max-width:300px;margin:0;font-size:11px;line-height:1.6}
.dashboard-empty.chart-empty{min-height:250px}
.dashboard-bottom-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
.dashboard-card-subtitle{margin:12px 20px 0;font-size:10px;color:var(--muted)}
.dashboard-ranking li{display:flex;align-items:center;gap:11px;min-height:62px;padding:12px 0;border-bottom:1px solid var(--line)}
.rank-number{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;flex:0 0 auto;background:var(--accent-soft);color:var(--accent);font-size:11px;font-weight:850}
.dashboard-ranking li>strong{font-size:11px;color:var(--accent);text-align:right;overflow-wrap:anywhere;max-width:100px}
.dashboard-recent li{display:flex;gap:12px;align-items:center;min-height:74px;padding:12px 0;border-bottom:1px solid var(--line)}
.dashboard-sale-value{border:0;border-radius:8px;padding:8px;color:var(--ink);font-size:12px;font-weight:850;text-align:right;background:var(--paper);max-width:115px;overflow-wrap:anywhere;flex-shrink:0}
.dashboard-sale-value:hover{background:var(--primary-soft);color:var(--primary)}
.dashboard-payments{padding:4px 20px 16px}
.dashboard-payment{padding:15px 0 2px}
.dashboard-payment>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:12px}
.dashboard-payment strong{font-size:12px;overflow-wrap:anywhere;text-align:right}
.dashboard-payment small{display:block;margin-top:6px;color:var(--muted);font-size:10px}
.dashboard-payment-track{height:7px;overflow:hidden;background:var(--paper);border-radius:20px;margin-top:9px}
.dashboard-payment-track i{display:block;height:100%;border-radius:20px;background:var(--primary)}
.dashboard-extra{margin-top:0}
.dashboard-extra .dashboard-recent>li>strong{font-size:12px;overflow-wrap:anywhere;max-width:140px}
.dashboard-guide-body{padding:22px}
.dashboard-guide-body h4{font-size:22px;margin:0 0 12px;letter-spacing:-.03em}
.dashboard-guide-body p{font-size:13px;color:var(--muted);line-height:1.7;margin:0 0 15px}
.dashboard-guide-body .dashboard-link{display:flex}
.dashboard-loading,.dashboard-error{padding:40px 20px;text-align:center;color:var(--muted)}
.dashboard-loading{min-height:320px;display:grid;place-content:center;gap:10px}
.dashboard-error h2{color:var(--ink)}
.dashboard-error p{max-width:500px;margin:10px auto 20px;overflow-wrap:anywhere}
@media(min-width:1450px){.overview-metric{padding:23px}.dashboard-chart svg{min-height:220px}}
@media(max-width:1150px){.dashboard-heading{align-items:flex-start}.dashboard-heading-actions>span{display:none}.dashboard-main-grid{grid-template-columns:minmax(0,1.65fr) minmax(250px,1fr)}.dashboard-bottom-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-heading-actions .button-row{justify-content:flex-end}.overview-metric{padding:16px}.overview-metric>strong{font-size:25px}}
@media(max-width:950px){.overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-main-grid{grid-template-columns:1fr}.dashboard-stock-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}.dashboard-stock-list li:last-child{border-bottom:1px solid var(--line)}.dashboard-heading{flex-wrap:wrap}.dashboard-heading-actions{justify-items:start}.dashboard-heading-actions .button-row{justify-content:flex-start}}
@media(max-width:640px){.dashboard-overview{gap:15px}.dashboard-heading{gap:15px}.dashboard-heading h2{font-size:27px}.dashboard-heading p{font-size:12px}.dashboard-heading-actions{width:100%}.dashboard-heading-actions .button-row{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:10px}.dashboard-heading-actions .btn{font-size:12px;padding:10px 9px}.dashboard-toolbar{gap:9px}.dashboard-periods{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}.dashboard-periods button{font-size:10px;padding:8px 4px;min-width:0}.dashboard-update{font-size:10px}.overview-metrics{gap:10px}.overview-metric{border-radius:13px;padding:15px 13px}.overview-metric-top{font-size:10px}.overview-metric>strong{font-size:24px}.overview-metric p{font-size:10px}.dashboard-overview .card-head{padding:16px}.dashboard-range{font-size:9px}.dashboard-overview .card-head h3{font-size:13px}.dashboard-analysis-summary{padding:16px 16px 4px}.dashboard-analysis-summary>strong{font-size:25px}.dashboard-chart{margin:10px 6px 14px}.dashboard-chart svg{min-height:145px}.dashboard-chart figcaption{padding:0 12px;line-height:1.5}.dashboard-bottom-grid{grid-template-columns:1fr;gap:15px}.dashboard-stock-list{grid-template-columns:1fr;padding:0 16px}.dashboard-ranking,.dashboard-recent{padding:0 16px}.dashboard-card-foot{padding:10px 16px}.dashboard-notice{align-items:flex-start;flex-wrap:wrap;gap:6px}.dashboard-notice>span{flex-basis:100%}.dashboard-stock-list li:last-child{border-bottom:0}}
@media(max-width:350px){.overview-metrics{grid-template-columns:1fr}.overview-metric-top>span:first-child{min-height:0}.dashboard-periods button{font-size:9px}.dashboard-heading-actions .button-row{grid-template-columns:1fr}.dashboard-range{white-space:normal}.dashboard-recent li{align-items:flex-start;flex-wrap:wrap}.dashboard-recent li>div{flex-basis:60%}.dashboard-extra .dashboard-recent>li>strong{max-width:100%}}
@media(prefers-reduced-motion:reduce){.dashboard-overview *{transition:none!important}}
.dashboard-overview .overview-metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))}.dashboard-main-grid:has(>section:only-child){grid-template-columns:1fr}.dashboard-bottom-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr))}@media(max-width:640px){.dashboard-overview .overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:350px){.dashboard-overview .overview-metrics{grid-template-columns:1fr}}
