
:root{
  --navy:#0f172a;--navy2:#172033;--ink:#172033;--muted:#667085;
  --line:#e5e7eb;--soft:#f6f8fb;--card:#fff;--accent:#d97706;
  --good:#087443;--bad:#b42318;--shadow:0 2px 10px rgba(15,23,42,.05)
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#f3f5f8;color:var(--ink);font:14px/1.5 Inter,Segoe UI,Arial,sans-serif}
header{min-height:64px;background:var(--navy);color:#fff;display:flex;flex-wrap:wrap;gap:8px 16px;justify-content:space-between;align-items:center;padding:10px 28px;position:sticky;top:0;z-index:20;box-shadow:0 2px 12px rgba(15,23,42,.12)}
header b{font-size:16px;letter-spacing:.01em}
header small{color:#cbd5e1;font-size:12px}
header nav{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.nav-logout{margin:0}.nav-logout button{height:auto;padding:9px 13px;background:transparent;border:1px solid #334155;color:#cbd5e1;border-radius:9px;font-weight:600}
.nav-logout button:hover{background:#273449;color:#fff}
header a{color:#e5e7eb;text-decoration:none;background:#273449;padding:9px 13px;border-radius:9px;font-weight:600}
header a.active,header a:hover{background:#fff;color:var(--navy)}
main{max-width:1500px;margin:auto;padding:24px 28px 50px}
.hero{display:flex;justify-content:space-between;gap:28px;align-items:flex-end;margin-bottom:16px}
.hero h1{font-size:28px;line-height:1.15;margin:5px 0 8px}
.hero p{color:var(--muted);max-width:850px;line-height:1.55;margin:0}
.eyebrow{letter-spacing:.12em;font-weight:700;color:#64748b;font-size:11px}
.filters{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap;min-width:620px;justify-content:flex-end}
.filters label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:700;color:#64748b}
.filters input,.filters select{height:39px;min-width:130px;border:1px solid #d6dbe3;border-radius:8px;background:#fff;padding:0 10px;color:var(--ink)}
.filters select{min-width:220px}
button{height:39px;border:0;border-radius:8px;background:var(--navy);color:#fff;padding:0 15px;font-weight:700;cursor:pointer}
.workflow{display:grid;grid-template-columns:1fr 34px 1fr 34px 1fr 34px 1fr 34px 1fr;align-items:center;gap:6px;margin:18px 0}
.workflow>div{background:#fff;border:1px solid #dde3ea;border-radius:11px;text-align:center;padding:11px 8px;box-shadow:var(--shadow);min-height:76px;display:flex;flex-direction:column;justify-content:center}
.workflow b,.workflow small{display:block}
.workflow b{font-size:12px;margin-top:3px}
.workflow small{color:#7b8794;font-size:10px;margin-top:2px}
.workflow .active{border:2px solid var(--navy);background:#fbfcfe}
.workflow i{font-size:20px;color:#94a3b8;text-align:center;font-style:normal}
.scope-banner{background:#fff;border:1px solid var(--line);border-radius:10px;padding:11px 14px;margin:12px 0 14px;color:#475467}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.kpis>div{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:15px 16px;box-shadow:var(--shadow);min-width:0}
.kpis small{color:#667085;font-weight:800;font-size:10px;letter-spacing:.06em}
.kpis strong{display:block;font-size:22px;line-height:1.15;margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kpis span{display:block;margin-top:5px;color:#7b8794;font-size:11px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
article,.article{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:17px 18px;margin-top:14px;box-shadow:var(--shadow);min-width:0}
.grid2 article{margin-top:14px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.section-head h2{margin:0}
h2{font-size:16px;line-height:1.3;margin:0 0 10px}
h3{font-size:14px;line-height:1.3;margin:0 0 7px}
.tag{font-size:10px;font-weight:800;padding:4px 8px;border-radius:999px;background:#eef2f6;color:#475467;white-space:nowrap}
.muted{color:var(--muted);font-size:12px}
.empty{padding:13px;background:#f8fafc;border:1px dashed #d8dee7;border-radius:8px;color:#667085}
.hour-card{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:10px 0;border-top:1px solid #edf0f3}
.hour-card:first-of-type{border-top:0}
.hour-card b{display:block;font-size:13px}
.hour-card small{display:block;color:#7b8794;font-size:11px;margin-top:2px}
.hour-card>strong{font-size:14px;white-space:nowrap}
.mini-products{display:flex;flex-wrap:wrap;gap:5px;margin:-2px 0 6px;padding-left:0}
.mini-products b{font-size:11px;width:100%;color:#475467}
.mini-products span{font-size:11px;background:#f5f7fa;border:1px solid #e8ebef;border-radius:999px;padding:4px 7px;color:#475467;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini-products em{font-style:normal;font-weight:800;color:#111827}
.bars{height:245px;display:flex;align-items:flex-end;gap:7px;overflow-x:auto;padding:14px 4px 5px;border-top:1px solid #f0f2f5}
.bar-col{height:220px;min-width:44px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px}
.bar-col span{font-size:9px;color:#667085;white-space:nowrap;transform:rotate(-55deg);height:26px}
.bar-col i{display:block;width:25px;background:#1e293b;border-radius:5px 5px 2px 2px;min-height:8px}
.bar-col b{font-size:10px;color:#475467}
.discount-box{display:flex;justify-content:space-between;align-items:center;gap:25px}
.metric-strip{display:grid;grid-template-columns:repeat(4,minmax(110px,1fr));gap:10px;flex:1;max-width:760px}
.metric-strip div{background:#f8fafc;border:1px solid #e8ebef;border-radius:9px;padding:10px 12px}
.metric-strip strong{display:block;font-size:16px}
.metric-strip small{color:#667085;font-size:10px}
.section-title{margin-top:24px}
.section-title h2{margin-bottom:4px}
.section-title p{margin:0;color:var(--muted);font-size:12px}
.product-row{padding:9px 0;border-bottom:1px solid #edf0f3;display:flex;flex-direction:column;gap:3px}
.product-row:last-child{border-bottom:0}
.product-row b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-row span{color:#667085;font-size:11px}
table{width:100%;border-collapse:collapse}
th,td{padding:8px 7px;border-bottom:1px solid #edf0f3;text-align:left;font-size:12px}
th{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#667085;background:#fafbfc}
tr:last-child td{border-bottom:0}
.trend-list{display:flex;flex-direction:column;gap:7px}
.trend-list>div{display:grid;grid-template-columns:50px 1fr 115px;align-items:center;gap:8px}
.trend-list span{font-size:11px;color:#667085}
.trend-list i{height:9px;background:#334155;border-radius:99px;display:block}
.trend-list b{text-align:right;font-size:11px}
.decision-list{line-height:1.7;padding-left:20px;margin:0}
.command{display:inline-block;background:#111827;color:#fff;border-radius:7px;padding:6px 9px;margin:0 5px 6px 0;font:12px Consolas,monospace}
a{color:#1d4ed8}
.presets{display:flex;gap:6px;flex-wrap:wrap;width:100%;justify-content:flex-end}
.presets a{font-size:11px;font-weight:700;text-decoration:none;color:#475467;background:#fff;border:1px solid #d6dbe3;border-radius:999px;padding:4px 10px}
.presets a.on{background:var(--navy);border-color:var(--navy);color:#fff}
.insight-box{border-left:4px solid var(--accent)}
.table-wrap{overflow-x:auto;max-width:100%}
th.num,td.num{text-align:right;white-space:nowrap}
tr.selected td{background:#fffbeb}
.share{height:4px;background:#f1f5f9;border-radius:99px;margin-top:4px;max-width:220px}
.share i{display:block;height:4px;background:#334155;border-radius:99px}
.table-search{height:36px;border:1px solid #d6dbe3;border-radius:8px;padding:0 10px;min-width:200px;max-width:100%}
.pager{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin-top:10px;font-size:12px;color:#667085}
.pager:empty{display:none}
.pager button{height:30px;padding:0 11px;background:#eef2f6;color:#172033}
.pager button:disabled{opacity:.4;cursor:default}
.grid2.tight{gap:18px;margin-top:14px}.grid2.tight table{margin-top:4px}
.notice{padding:11px 14px;border-radius:9px;margin:12px 0;background:#ecfdf3;color:#067647;border:1px solid #abefc6}
.notice.error{background:#fff1f2;color:#b42318;border-color:#fecdd3}
.stack{display:flex;flex-direction:column;gap:12px;margin-top:12px}
.stack label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:#475467}
.stack input{height:40px;border:1px solid #d6dbe3;border-radius:8px;padding:0 10px;font:inherit}
.auth-wrap{max-width:460px}
.auth-card h1{margin:4px 0 10px}
.code-box{white-space:pre-wrap;word-break:break-all;font:12px Consolas,monospace;background:#f8fafc;border:1px solid #e5e7eb;border-radius:8px;padding:10px}
.import-card{max-width:980px}
.import-card form{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:16px 0}
.import-card input[type=file]{max-width:100%}
.import-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.import-summary div{background:#f8fafc;border:1px solid #e8ebef;border-radius:9px;padding:10px 12px}
.import-summary b{display:block;font-size:18px}
.import-summary span{font-size:11px;color:#667085}
.mapping-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:6px}
.mapping-grid div{font-size:12px;background:#f8fafc;border-radius:7px;padding:6px 8px;overflow-wrap:anywhere}
.error-list{font-size:12px;color:#b42318;margin:6px 0 0;padding-left:18px}
code{overflow-wrap:anywhere}
@media(max-width:1200px){
  main{padding:20px}
  .hero{display:block}.filters{min-width:0;justify-content:flex-start;margin-top:14px}
  .kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.presets{justify-content:flex-start}
  .grid4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:850px){
  header{padding:10px 14px}.import-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.section-head{flex-wrap:wrap}.table-search{min-width:0;width:100%}.workflow{display:flex;overflow-x:auto;justify-content:flex-start}.workflow>div{min-width:120px}
  main{padding:14px}.grid2,.grid4{grid-template-columns:1fr}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .discount-box{display:block}.metric-strip{max-width:none;margin-top:12px;grid-template-columns:repeat(2,1fr)}
  .filters{display:grid;grid-template-columns:1fr 1fr}.filters label:nth-child(3){grid-column:1/-1}.filters select{width:100%}.filters button{width:100%}
}
@media(max-width:520px){
  header b{font-size:13px}header small{display:none}.kpis{grid-template-columns:1fr}
  .filters{grid-template-columns:1fr}.filters label:nth-child(3){grid-column:auto}
  .trend-list>div{grid-template-columns:42px 1fr 92px}
}
.check-inline{display:flex;gap:6px;align-items:center;font-size:12px;color:#475467;font-weight:600}
.up{color:#067647}.down{color:#b42318}.kpis span.up,.kpis span.down{font-weight:700}
.grid2>*,.grid4>*{min-width:0}
.kpis strong.na{font-size:15px;color:#98a2b3;font-weight:700}
