/* Scoped v8 midnight/teal dashboard. No global application styling. */
.sales-overview-shell.hx-screen{--hx-line:#19d8eb;--hx-text:#edfaff;--hx-muted:#88afc1;position:relative;isolation:isolate;display:block;min-width:0;margin:0;padding:0 16px 12px;border:1px solid #28505d;border-radius:12px;overflow:hidden;background:#03151e;color:var(--hx-text);font:13px/1.5 "Microsoft YaHei",Inter,system-ui,sans-serif;color-scheme:dark}
.hx-screen *{box-sizing:border-box}
.hx-screen::before{content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;background:url("./sales-overview-globe.webp") center var(--hx-globe-top,118px)/var(--hx-globe-width,165%) auto no-repeat;filter:saturate(.76);opacity:.62}
.hx-screen::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#02151d48 0%,#041d2940 38%,#03182155 100%)}
.hx-screen [hidden]{display:none!important}
.hx-screen button,.hx-screen input,.hx-screen select{font:inherit;color:var(--hx-text);background:#0a2c3a;border:1px solid #235363;border-radius:5px;padding:6px 9px;min-height:32px;max-width:100%;box-shadow:none}
.hx-screen button,.hx-screen select{cursor:pointer}
.hx-screen button:hover{background:#124758}
.hx-screen button[aria-pressed=true]{background:#085069;border-color:var(--hx-line);box-shadow:inset 0 -2px var(--hx-line)}
.hx-screen :is(button,input,select,[tabindex]):focus-visible{outline:2px solid var(--hx-line);outline-offset:2px}
.hx-header{display:grid;grid-template-columns:minmax(210px,1fr) minmax(260px,1.6fr) minmax(200px,1fr);gap:10px;align-items:center;min-height:88px;border-bottom:1px solid #166074}
.hx-brand{display:flex;gap:10px;align-items:center;white-space:nowrap;font-size:24px;font-weight:800;color:#f0fcff}
.hx-brand i{display:block;width:64px;height:46px;flex:none;border-radius:4px;background:#fff var(--hanxin-brand-logo) center/72px 72px no-repeat}
.hx-title{position:relative;align-self:stretch;text-align:center;padding:10px 5px 13px}
.hx-title::before{content:"";position:absolute;inset:0 -12px;z-index:-1;clip-path:polygon(0 0,100% 0,91% 100%,9% 100%);background:linear-gradient(#11748e55,#062e36);border-bottom:2px solid var(--hx-line)}
.hx-screen .hx-title h2{margin:0;font-size:clamp(24px,2.7vw,35px);line-height:1.35;font-style:italic;font-weight:800;letter-spacing:2px;text-shadow:0 0 18px #59effb44;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--hx-text)}
.hx-title time{display:block;margin-top:5px;font-size:12px;color:#a6e5ee;letter-spacing:1px;font-variant-numeric:tabular-nums}
.hx-tools{display:flex;justify-content:flex-end;align-items:center;gap:6px;flex-wrap:wrap}
.hx-tools button{white-space:nowrap;font-size:12px}
.hx-screen button.sales-overview-fullscreen-toggle[aria-pressed]{background:transparent;border:0;border-radius:4px;box-shadow:none;color:#edfcff;width:36px;height:36px;min-height:36px;flex-basis:36px;padding:9px}
.hx-screen button.sales-overview-fullscreen-toggle:hover{background:#35d9e516}
.hx-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:242px;max-width:1100px;margin:0 auto 18px;padding:33px 12px 31px;border-bottom:1px solid #258f9f77;background:radial-gradient(ellipse at bottom,#17b9ca14,transparent 76%)}
.hx-hero::after{content:"";position:absolute;bottom:-1px;height:2px;left:27%;right:27%;background:linear-gradient(90deg,transparent,var(--hx-line),transparent)}
.hx-kpi{position:relative;min-width:0;text-align:center}
.hx-kpi+.hx-kpi{border-left:1px solid #245b6a66}
.hx-kpi-label{font-size:16px;letter-spacing:1px;color:#acd0dd}
.hx-kpi::after{content:"";position:absolute;bottom:0;left:10%;right:10%;height:3px;background:radial-gradient(ellipse,#6fecff77,transparent 70%);box-shadow:0 0 12px #76ddea22}
.hx-screen .hx-value{display:flex;justify-content:center;align-items:baseline;gap:7px;perspective:650px;margin:12px 0 22px;font-family:Inter,Arial,sans-serif;font-size:clamp(48px,6.2vw,90px);font-weight:800;line-height:1.25;letter-spacing:1px;font-variant-numeric:tabular-nums;white-space:nowrap;text-shadow:none}
.hx-value em{font-size:.35em;color:#b9f5ff;font-style:normal}
.hx-number{display:inline-grid;transform:rotateX(8deg) rotateY(-3deg)}
.hx-number>span{grid-area:1/1}
.hx-depth{color:#397e8b;transform:translateY(1px);text-shadow:1px 1px 0 #5994a0,2px 2px 0 #387887,3px 3px 0 #286674,4px 4px 0 #1a5363,5px 5px 0 #134653,6px 6px 0 #0d3442,7px 7px 0 #062b37,9px 13px 15px #00121eed,0 0 25px #72efff22}
.hx-face{position:relative;color:#e8fcff;background:linear-gradient(176deg,#fff 0%,#edfeff 27%,#acdde7 48%,#e2faff 52%,#f2ffff 62%,#a8e2e9 82%,#73bac9 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;-webkit-text-stroke:.5px #e2fcff66;filter:drop-shadow(0 -1px .6px #dcffff44)}
.hx-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.hx-metric-notice{color:#b9ced7;font-size:11px;line-height:1.5}
.hx-screen .hx-kpi:has(.hx-metric-notice) .hx-value{font-size:40px;margin:2px 0}

.hx-main-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,4fr) minmax(0,3fr);gap:14px;margin-top:16px}
.hx-panel{min-width:0;padding:0 12px 12px;border:1px solid #548f9a55;border-top:0;border-radius:0 0 5px 5px;background:linear-gradient(120deg,#062431b5,#031b26b0)}
.hx-panel-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:44px;margin:0 -12px 9px;padding:0 10px;background:linear-gradient(90deg,#0f5d72b8,#07323f70);border-bottom:1px solid #15647c}
.hx-panel-head::after{content:"";position:absolute;bottom:-1px;left:0;width:50px;height:2px;background:var(--hx-line)}
.hx-screen h3{margin:0;color:#f0fcff;font-size:16px;font-style:italic;white-space:nowrap}
.hx-panel-head h3::before{content:"";display:inline-block;height:13px;width:4px;vertical-align:-1px;transform:skew(-20deg);background:var(--hx-line);margin-right:8px}
.hx-panel-head small{font-size:11px;color:#9cc3d3}
.hx-switch{display:flex;justify-content:flex-end;gap:3px}
.hx-screen .hx-switch button{font-size:11px;min-height:28px;padding:4px 6px;border-color:transparent;border-radius:2px}
.hx-screen .hx-switch button[aria-pressed=true]{border-color:#217e99}
.hx-rank-window{height:241px;overflow:auto;scrollbar-width:thin;scrollbar-color:#327a8a transparent;margin-top:12px}
.hx-ranking{display:grid;gap:19px;list-style:none;margin:0;padding:0}
.hx-ranking li{min-height:33px}
.hx-rank-line{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:6px;align-items:center;font-size:12px}
.hx-rank-line i{color:#5793ad;font-size:14px;font-weight:700}
.hx-rank-line i.hx-top{color:#ffd080}
.hx-rank-line span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#c3dde9}
.hx-rank-line b{white-space:nowrap;font-weight:500;color:#ecfaff}
.hx-track{height:3px;background:#103441;margin:7px 0 0 26px}
.hx-track i{display:block;height:100%;background:linear-gradient(90deg,#15748b,var(--hx-line));opacity:.8}
.hx-chart-meta{display:flex;justify-content:space-between;gap:7px;flex-wrap:wrap;color:#9ac4d6;font-size:11px}
.hx-legend{display:flex;gap:12px;color:#b8d6e3}
.hx-legend i{font-style:normal}
.hx-legend i::before{content:"";display:inline-block;width:12px;height:2px;vertical-align:middle;margin-right:5px;background:#41b6ff}
.hx-trend{display:flex;flex-direction:column;min-height:0}
.hx-trend>.hx-panel-head,.hx-chart-meta{flex-shrink:0}
.hx-trend>.hx-empty{flex:1;min-height:0}
.hx-plot{position:relative;flex:1;min-height:230px;margin-top:4px}
.hx-plot svg{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:hidden}
.hx-grid line{stroke:#46788744}
.hx-grid text{fill:#89bbc9;font-size:11px}
.hx-current{fill:none;stroke:#41b6ff;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}
.hx-dot{fill:#d5f5ff;stroke:#41b6ff;stroke-width:1.4}
.hx-cursor{fill:none;stroke:#a2e3ed77;pointer-events:none}
.hx-chart-tooltip{position:absolute;z-index:2;top:8px;max-width:calc(100% - 8px);padding:7px 10px;border:1px solid #287789;border-radius:5px;background:#062833f2;box-shadow:0 5px 18px #0006;font-size:12px;color:#e3f7ff;overflow-wrap:anywhere;pointer-events:none}
.hx-order-table{overflow-x:auto;scrollbar-color:#327a8a transparent;scrollbar-width:thin}
.hx-order-row{display:grid;grid-template-columns:minmax(125px,1.1fr) minmax(190px,1.8fr) minmax(110px,1.25fr) minmax(60px,.7fr) minmax(100px,1fr);align-items:center;gap:8px;min-width:625px;height:37px;padding:0 10px;border-bottom:1px solid #19405288;color:#c5dde8;font-size:13px}
.hx-order-row>*{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hx-order-row>:last-child{text-align:right;color:#e4faff}
.hx-order-row:nth-child(even){background:#1b4f6020}
.hx-order-head{height:35px;color:#94d1e0;font-size:12px;border-color:#21586c;background:#06263266}
.hx-order-window{height:296px;min-width:625px;overflow:auto;scrollbar-width:thin;scrollbar-color:#327a8a transparent;position:relative}
.hx-order-track{will-change:transform}
.hx-order-row b{font-weight:600}

.hx-empty{display:grid;place-content:center;text-align:center;min-height:217px;color:#9bbcc8;font-size:13px}
.hx-notice{padding:12px;margin-bottom:12px;border:1px solid #bda36877;color:#ffe0a7;background:#41381966}
.hx-screen dialog.hx-settings{position:fixed;inset:20px 20px 20px auto;width:380px;max-width:calc(100vw - 24px);height:fit-content;max-height:calc(100dvh - 40px);margin:auto 0;overflow:auto;padding:20px;color:#edfaff;background:#0b303d;border:1px solid #1ac7d8;border-radius:12px;box-shadow:0 24px 90px #0009}
.hx-settings::backdrop{background:#00121db8}
.hx-settings header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.hx-screen .hx-settings h3{font-style:normal;font-size:19px}
.hx-settings label{display:grid;gap:7px;margin:13px 0;font-size:12px;color:#b2d2df}
.hx-settings input,.hx-settings select{width:100%;min-width:0}
.hx-settings small,.hx-settings-note{color:#9cbac8;font-size:11px;line-height:1.7}
.hx-settings .hx-check{display:flex;align-items:center;justify-content:space-between}
.hx-settings .hx-check input{width:18px;height:18px;min-height:0;accent-color:#10cddd}
.hx-settings h4{border-top:1px solid #326171;padding-top:15px;margin-bottom:10px}
.hx-settings footer{display:flex;gap:8px;justify-content:flex-end;position:sticky;bottom:-20px;background:#0b303d;padding:15px 0;border-top:1px solid #326171}
.hx-settings .hx-confirm{background:#15bed3;color:#03212c;font-weight:700}
.hx-form-error{color:#ffc4a8}
body.sales-overview-fullscreen #page>.sales-overview-shell.hx-screen{display:block;height:auto;min-height:100%;padding:0 16px 12px;border:0;background:#03151e}
@media(min-width:1101px){
  body.sales-overview-fullscreen #page>.sales-overview-shell.hx-screen{display:grid;grid-template-rows:78px auto 172px minmax(180px,1fr) 280px;height:100%;min-height:748px}
  body.sales-overview-fullscreen .hx-patrol{max-height:64px;overflow:auto}
  body.sales-overview-fullscreen .hx-header{min-height:0}
  body.sales-overview-fullscreen .hx-hero{width:100%;min-height:0;margin:0 auto 14px;padding:13px 12px 15px}
  body.sales-overview-fullscreen .hx-value{font-size:clamp(50px,5vw,82px);margin:5px 0 10px}
  body.sales-overview-fullscreen .hx-orders{display:flex;flex-direction:column;min-height:0}
  body.sales-overview-fullscreen .hx-orders .hx-panel-head{flex-shrink:0}
  body.sales-overview-fullscreen .hx-order-table{display:flex;flex-direction:column;flex:1;min-height:0}
  body.sales-overview-fullscreen .hx-order-head{flex-shrink:0}
  body.sales-overview-fullscreen .hx-order-window{height:auto;flex:1;min-height:0}
  body.sales-overview-fullscreen .hx-main-grid{margin-top:14px;min-height:0}
  body.sales-overview-fullscreen .hx-rank{display:flex;flex-direction:column;min-height:0}
  body.sales-overview-fullscreen .hx-rank-window{height:auto;flex:1;min-height:0}
  body.sales-overview-fullscreen .hx-ranking{gap:10px}
  body.sales-overview-fullscreen .hx-plot{min-height:0}
}
@media(min-width:1500px) and (min-height:1000px){
  body.sales-overview-fullscreen #page>.sales-overview-shell.hx-screen{grid-template-rows:88px auto 200px minmax(280px,1fr) 310px}
  body.sales-overview-fullscreen .hx-value{font-size:90px}
}
@media(max-width:1100px){.hx-header{grid-template-columns:minmax(175px,1fr) minmax(230px,1.4fr) minmax(195px,1fr)}.hx-brand{font-size:22px}.hx-brand i{width:60px;height:43px}.hx-screen .hx-value{font-size:clamp(44px,7vw,78px)}}
@media(min-width:1101px) and (max-height:850px){
  body.sales-overview-fullscreen #page>.sales-overview-shell.hx-screen{grid-template-rows:72px auto 142px minmax(180px,1fr) 240px;min-height:702px}
  body.sales-overview-fullscreen .hx-title{padding-top:5px}
  body.sales-overview-fullscreen .hx-title h2{font-size:29px}
  body.sales-overview-fullscreen .hx-hero{padding:9px 12px 10px}
  body.sales-overview-fullscreen .hx-value{font-size:58px;margin:3px 0 6px}
  body.sales-overview-fullscreen .hx-panel-head{min-height:36px;margin-bottom:6px}
  body.sales-overview-fullscreen .hx-order-row{height:30px;font-size:12px}
  body.sales-overview-fullscreen .hx-order-head{height:30px}
}
@media(max-width:850px){.hx-header{grid-template-columns:1fr 1fr;gap:5px;padding-top:8px}.hx-title{grid-column:1/-1;grid-row:1;min-height:80px}.hx-brand,.hx-tools{grid-row:2;padding-bottom:11px}.hx-main-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.hx-trend{grid-column:1/-1;grid-row:1}.hx-kpi-label{font-size:14px}.hx-screen .hx-value{font-size:clamp(38px,7.5vw,66px)}}
@media(max-width:600px){.sales-overview-shell.hx-screen,body.sales-overview-fullscreen #page>.sales-overview-shell.hx-screen{padding:0 10px 11px}.hx-screen .hx-title h2{font-size:26px}.hx-brand{font-size:20px;gap:6px}.hx-brand i{width:54px;height:38px;background-size:62px}.hx-tools{gap:4px}.hx-tools button{font-size:11px;padding:6px}.hx-main-grid{grid-template-columns:minmax(0,1fr)}.hx-hero{padding:25px 0;min-height:208px}.hx-kpi-label{font-size:12px;letter-spacing:0}.hx-screen .hx-value{font-size:clamp(30px,8.1vw,48px);letter-spacing:0}.hx-screen dialog.hx-settings{inset:12px;margin:auto;width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}}
@media(max-width:420px){.hx-header{grid-template-columns:1fr}.hx-brand{grid-row:2;justify-content:center;font-size:18px}.hx-brand i{width:48px;height:34px;background-size:56px}.hx-tools{grid-row:3;justify-content:center}.hx-kpi::after{left:5%;right:5%}}
@media(pointer:coarse){.hx-screen button,.hx-screen select{min-height:44px}.hx-screen button.sales-overview-fullscreen-toggle[aria-pressed]{width:44px;height:44px;flex-basis:44px}}
@media(prefers-reduced-motion:reduce){.hx-order-track{will-change:auto}}
.hx-patrol{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;color:#b7dce6;font-size:12px;padding:6px 0;min-height:24px}
.hx-patrol button{background:#0b3848;border:1px solid #25738b;color:#b7f4ff;border-radius:4px;cursor:pointer}
.hx-patrol details{max-width:100%;overflow-wrap:anywhere}
