:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#172b4d;background:#f8faff;font-size:14px;font-synthesis:none;--ink:#172b4d;--muted:#71809a;--line:#e5ebf5;--accent:#2563eb;--blue:#2563eb;--pink:#bb3fbe;--red:#c34748}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #93b4ff;outline-offset:3px}button{border:0;background:none;color:inherit}a{color:var(--accent)}svg{vertical-align:middle}.icon{width:19px;height:19px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.sidebar{position:fixed;inset:0 auto 0 0;width:226px;background:#ffffff;color:#526581;padding:30px 16px 18px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:11px;color:#fff;margin:0 12px 38px}.brandmark{display:grid;place-items:center;background:#2563eb;width:37px;height:37px;border-radius:10px}.brand strong{font-size:17px;line-height:1.25}.brand small{display:block;color:#7890b2;font-size:12px;margin-top:4px;font-weight:400;letter-spacing:1px}.nav-label{font-size:11px;letter-spacing:1.4px;color:#7b8eaa;margin:0 14px 12px}.nav{display:flex;flex-direction:column;gap:5px}.nav button{display:flex;align-items:center;gap:12px;padding:13px 14px;width:100%;text-align:left;border-radius:8px;font-weight:500;line-height:1.3}.nav button:hover{background:#f0f5ff;color:white}.nav button.active{background:#eaf1ff;color:#fff;box-shadow:inset 3px 0 #2563eb}.nav .badge{font-size:11px;background:#dce8ff;padding:2px 6px;margin-left:auto;border-radius:4px}.sidebar-bottom{margin-top:auto}.work-status{padding:18px 13px;border:1px solid #e1e9f5;border-radius:10px;margin-bottom:18px;line-height:1.6;color:#7485a1;font-size:12px}.work-status b{color:#334d73;display:block;font-size:13px;margin-bottom:3px}.profile{display:flex;gap:10px;padding:14px 8px 0;border-top:1px solid #e1e9f5;align-items:center}.avatar{border-radius:50%;background:#e7efff;color:#315fa8;display:grid;place-items:center;width:33px;height:33px;font-size:12px;font-weight:600}.profile small{display:block;color:#8394ae;font-size:11px;margin-top:4px}.main{margin-left:226px;min-height:100vh}.topbar{height:66px;padding:0 32px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.breadcrumb{font-size:13px;color:#82909a}.breadcrumb span{color:var(--ink);margin-left:13px}.demo{font-size:12px;font-weight:500;background:#fff5dc;color:#8b6315;padding:7px 11px;border:1px solid #efdfb7;border-radius:6px;white-space:nowrap}.content{padding:26px 32px 40px;max-width:1800px;margin:auto}.page-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:22px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1.6px;color:var(--accent);font-weight:650;margin-bottom:8px}h1{font-size:28px;letter-spacing:-.8px;margin:0 0 8px;font-weight:650}h2{font-size:17px;margin:0;font-weight:650;letter-spacing:-.2px}h3{font-size:15px;margin:0 0 10px}.muted,.subtitle{color:var(--muted)}.subtitle{font-size:13px;line-height:1.6}.actions{display:flex;align-items:center;gap:10px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:white;border:1px solid #dce3e7;padding:10px 13px;border-radius:7px;font-weight:550;font-size:13px;white-space:nowrap}.btn:hover{background:#f6f8fa}.btn.primary{background:var(--accent);color:white;border-color:var(--accent)}.btn.primary:hover{background:#1d4ed8}.filters{display:grid;grid-template-columns:1.4fr repeat(6,minmax(110px,1fr));gap:10px;border-bottom:1px solid #dfe5e9;padding-bottom:20px;margin-bottom:22px}.filter label{display:block;font-size:11px;font-weight:550;color:#7c8791;margin-bottom:7px}.filter select{border:1px solid #dee5e9;background:white;color:#34454e;border-radius:6px;width:100%;padding:9px 24px 9px 10px;font-size:12px;overflow:hidden;text-overflow:ellipsis}.filter-tools{display:flex;justify-content:space-between;align-items:center;margin:-8px 0 18px;gap:10px}.text-btn{font-size:12px;color:var(--accent);padding:6px}.pill{display:inline-block;border-radius:5px;padding:4px 7px;font-size:11px;font-weight:600;white-space:nowrap}.pill.green{background:#edf3ff;color:#255fbe}.pill.red{background:#fdecee;color:#be424e}.pill.amber{background:#fff3dc;color:#ad7721}.pill.gray{background:#eef1f4;color:#71809a}.pill.ozon{background:#edf2ff;color:#2563eb}.pill.wb{background:#f9edfa;color:#ad35ad}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:20px}.metric{background:white;border:1px solid var(--line);border-radius:10px;padding:19px 20px 17px;position:relative;overflow:hidden}.metric .label{font-size:13px;color:#677781;display:flex;align-items:center;justify-content:space-between}.metric .label .icon{width:17px;height:17px;color:#a3afb7}.metric .value{font-size:29px;letter-spacing:-.8px;font-weight:650;margin:13px 0 11px;font-variant-numeric:tabular-nums;white-space:nowrap}.metric small{font-size:11px;color:var(--muted)}.metric.main-metric{background:#f1f6ff;border-color:#dce7fb}.delta{color:#2563eb;font-size:11px;font-weight:600;margin-right:6px}.delta.negative{color:#c34748}.two-col{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(280px,1fr);gap:20px;margin-bottom:20px}.panel{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px 5px;gap:10px}.panel-sub{padding:5px 22px 0;font-size:12px;color:var(--muted)}.chart{padding:6px 18px 10px}.chart svg{width:100%;height:auto;display:block}.legend{display:flex;gap:18px;align-items:center;font-size:11px;color:#6e7e87}.legend i{display:inline-block;width:8px;height:8px;background:var(--accent);border-radius:50%;margin-right:6px}.legend i.previous{background:#bbc7d0}.mini-label{color:var(--muted);font-size:11px}.platform-row{padding:17px 22px 15px}.platform-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.platform-logo{font-weight:800;font-size:13px;color:white;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;background:var(--blue);margin-right:10px}.platform-logo.wb{background:var(--pink);font-size:10px}.platform-title{display:flex;align-items:center;font-weight:550}.platform-amount{font-size:18px;font-weight:650;letter-spacing:-.4px}.track{background:#edf1f5;height:6px;border-radius:8px;overflow:hidden}.track span{display:block;height:100%;background:var(--accent);border-radius:8px}.platform-stats{display:flex;justify-content:space-between;margin-top:10px;font-size:11px;color:var(--muted)}.platform-footer{margin:3px 22px 19px;border-top:1px solid var(--line);padding-top:13px;font-size:11px;color:var(--muted)}.tabs{display:flex;align-items:center;gap:5px}.tabs button{padding:8px 11px;border-radius:6px;font-size:12px;color:#6c7b85}.tabs button.active{background:#edf3ff;color:var(--accent);font-weight:650}.section-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.section-row h2{display:flex;gap:8px;align-items:center}.dot-count{font-size:11px;color:#7f8c93;background:#e8edf0;border-radius:4px;padding:3px 6px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;white-space:nowrap}th{font-size:11px;color:#7a8993;background:#fafbfc;font-weight:550;padding:13px 16px;border-bottom:1px solid var(--line)}td{padding:14px 16px;border-bottom:1px solid #edf0f3;font-variant-numeric:tabular-nums}tr:last-child td{border-bottom:0}tbody tr:hover{background:#f7faff}th.num,td.num{text-align:right}th button{font-size:inherit;color:inherit;padding:0}td .product-link{font-size:12px;font-weight:600;text-align:left;padding:0;white-space:normal;max-width:260px;min-width:180px;line-height:1.5;color:#243944}td small{display:block;font-size:10px;color:#91a0a8;margin-top:4px}.negative{color:var(--red)}.positive{color:var(--accent)}.table-foot{padding:12px 18px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);display:flex;justify-content:space-between}.page-foot{font-size:11px;color:#87949e;display:flex;justify-content:space-between;margin-top:20px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.search{position:relative;min-width:300px}.search .icon{position:absolute;left:12px;top:11px;color:#95a2aa;width:17px}.search input{width:100%;border:1px solid #dfe5e9;background:white;border-radius:7px;padding:10px 12px 10px 38px;font-size:13px}.segmented{display:inline-flex;background:#e6ecef;padding:3px;border-radius:7px;gap:3px}.segmented button{padding:8px 12px;border-radius:5px;color:#6b7d86;font-size:12px}.segmented button.active{background:white;box-shadow:0 1px 4px #1c3f4912;color:#285db3;font-weight:600}.mine-selector{display:flex;flex-wrap:wrap;gap:10px;padding:14px 18px;margin-bottom:18px;background:#f3f7ff;border:1px solid #dce7fb;border-radius:8px;font-size:12px;align-items:center}.mine-selector label{display:flex;align-items:center;gap:5px}input[type=checkbox]{accent-color:var(--accent)}.notice{background:#f0f5f8;border:1px solid #dee8ee;padding:13px 16px;font-size:12px;line-height:1.7;color:#5d737f;border-radius:8px;margin-bottom:18px}.notice.amber{background:#fffaed;border-color:#f0e6c7;color:#8d7237}.empty{text-align:center;padding:55px 20px;color:#7f919a;line-height:1.8}.finance-row{display:flex;justify-content:space-between;align-items:center;padding:15px 22px;border-bottom:1px solid #edf0f3;font-size:13px}.finance-row strong{font-variant-numeric:tabular-nums}.finance-row.result{background:#f1f6ff;font-weight:600;color:#2559ac}.finance-row.muted-result{background:#f5f7f9}.expense-bars{padding:20px 24px}.expense-bars .row{margin-bottom:21px}.expense-bars .row div:first-child{display:flex;justify-content:space-between;font-size:12px;margin-bottom:8px}.expense-bars .track{height:9px}.wide-note{padding:17px 22px;color:#7d8c96;font-size:12px;line-height:1.7}.progress-cell{width:180px;min-width:130px}.progress-cell .track{margin-top:7px}.cards-three{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}.integration{padding:22px}.integration h3{font-size:16px;margin:17px 0 8px}.integration p{font-size:12px;line-height:1.8;color:var(--muted);min-height:44px}.integration .pill{margin-top:8px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-content{padding:20px 22px}.setting-line{display:flex;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}.setting-line:last-child{border:0}.upload-mock{border:1px dashed #ccd9df;border-radius:8px;background:#fafcfd;padding:25px 18px;text-align:center;color:#7d909b;line-height:1.8;margin:18px 0;font-size:12px}.upload-mock .icon{width:25px;height:25px;margin-bottom:10px}.stock-card-label{font-size:12px;color:var(--muted)}.toggle-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.cover-bar{width:88px;height:4px;background:#e8edf0;margin-top:7px;border-radius:5px}.cover-bar span{display:block;height:100%;border-radius:5px}.status-title{font-size:11px;color:var(--muted)}dialog{padding:0;border:0;margin:0 0 0 auto;height:100vh;max-height:100vh;width:min(600px,95vw);max-width:95vw;box-shadow:-15px 0 70px #0e293e20;color:var(--ink)}dialog::backdrop{background:#0f273650;backdrop-filter:blur(2px)}.drawer-head{padding:25px 28px;background:#f7fafb;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:1}.drawer-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.drawer-title h2{font-size:22px;line-height:1.4;margin:10px 0}.close-btn{border:1px solid #dce5ea;padding:6px;border-radius:7px;background:white}.drawer-content{padding:24px 28px}.drawer-kpis{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:0 0 22px}.drawer-kpi{padding:17px;background:#f4f7ff;border-radius:8px}.drawer-kpi b{display:block;font-size:23px;margin:10px 0 0}.drawer-subhead{margin:23px 0 12px}.drawer-content .finance-row{padding:12px 0}.drawer-content .finance-row.result{padding:14px 12px;border-radius:6px;margin-top:7px}.mobile-menu{display:none}.chart-button{border:1px solid #e2e8eb;border-radius:5px;padding:6px 8px;font-size:11px;color:#6a7c84}.chart-button.active{background:#f1f6ff;color:#2563eb}.teal-text{color:var(--accent)}.health-note{padding:14px 22px;font-size:11px;background:#fbfcfd;color:#7f8f98;border-top:1px solid var(--line)}@media(min-width:1650px){.metric .value{font-size:34px}.content{padding-top:32px}.chart{padding-top:16px}}@media(max-width:1200px){.sidebar{width:195px;padding-left:10px;padding-right:10px}.main{margin-left:195px}.content{padding:22px}.topbar{padding:0 22px}.filters{grid-template-columns:repeat(4,1fr)}.metric{padding:16px}.metric .value{font-size:25px}.two-col{grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr)}.legend{gap:8px}.demo{font-size:11px}}@media(max-width:900px){.sidebar{width:66px;padding:20px 8px}.brand{margin:0 6px 25px}.brand strong,.nav-label,.nav button span,.sidebar-bottom{display:none}.nav button{padding:12px;justify-content:center}.nav .badge{display:none}.main{margin-left:66px}.content{padding:20px}.two-col,.settings-grid{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,1fr)}.cards-three{grid-template-columns:1fr}.toolbar{flex-wrap:wrap}.filters{grid-template-columns:repeat(3,1fr)}.topbar{padding:10px 20px;height:auto;min-height:66px;gap:10px;flex-wrap:wrap}}@media(max-width:600px){.content{padding:16px 12px}.topbar{padding:12px}.demo{font-size:10px;white-space:normal}.breadcrumb{display:none}.page-head{gap:10px;flex-wrap:wrap}h1{font-size:24px}.filters{grid-template-columns:repeat(2,1fr)}.metric .value{font-size:22px}.metric{padding:13px}.metric small{font-size:10px}.search{min-width:220px;width:100%}.panel-head{padding:17px 15px 5px;flex-wrap:wrap}.page-foot{gap:10px;line-height:1.5}.section-row{align-items:flex-start;gap:12px}.tabs{flex-wrap:wrap}}

/* Keep demo status visible throughout long tables. */
.topbar{position:sticky;top:0;z-index:15}.drawer-head .demo{display:inline-block;margin-top:13px;font-size:11px}.finance-row.result strong.negative{color:var(--red)}

/* Price scenarios are isolated inside the product drawer. */
[hidden]{display:none!important}dialog.price-open{width:min(720px,96vw);max-width:96vw}.drawer-tabs{display:flex;gap:20px;margin:18px 0 -25px;border-bottom:1px solid #dfe7e9}.drawer-tabs button{padding:12px 0 14px;font-size:14px;font-weight:600;color:#7a8b95;border-bottom:3px solid transparent}.drawer-tabs button[aria-selected=true]{color:var(--accent);border-color:var(--accent)}.calc-context{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8px 16px}.calc-context label{font-size:14px;font-weight:600}.calc-context select{grid-column:1;grid-row:2;padding:10px;border:1px solid #d9e3e7;border-radius:7px;background:#fff;color:#263c45;width:100%;font-size:14px}.calc-context>span{grid-column:2;grid-row:2;font-size:12px;color:#7c8b95;line-height:1.5}.calc-caution{font-size:12px;color:#8a6b29;margin:15px 0;padding:8px 11px;background:#fff8e9;border-radius:5px}.calc-empty{padding:36px 18px;background:#f5f8f9;border:1px dashed #d6e1e5;border-radius:8px;font-size:15px;line-height:1.7;text-align:center;color:#617a87}.calc-empty small{display:block;font-size:13px;margin-top:12px}.calc-error{background:#fff0ed;border:1px solid #efc9c1;color:#a64b40;border-radius:7px;padding:13px 15px;margin:15px 0;line-height:1.6;font-size:14px}.calc-source{display:grid;grid-template-columns:1.2fr 1.1fr .8fr;gap:12px;margin:18px 0 12px}.calc-source span{font-size:12px;color:#7a8d97;display:block;margin-bottom:7px}.calc-source b{font-size:19px;color:#253d47;font-variant-numeric:tabular-nums}.calc-description{font-size:12px;line-height:1.65;color:#7b8c96;margin:12px 0 20px}.calc-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 12px}.calc-section-head h3{font-size:15px;margin:0}.calc-section-head>span{font-size:12px;color:#8a9aa3}.calc-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.calc-field{display:block;font-size:13px;line-height:1.5}.calc-field>span{display:block;margin-bottom:7px;color:#465e6b}.calc-input{display:flex;align-items:center;background:white;border:1px solid #d6e0e5;border-radius:7px;overflow:hidden}.calc-input:focus-within{border-color:#648ff2;box-shadow:0 0 0 3px #eaf1ff}.calc-input input{width:100%;min-width:0;border:0;outline:none;padding:11px 12px;background:none;font-size:16px;font-weight:550;color:#213c43;font-variant-numeric:tabular-nums}.calc-input>span{padding-right:13px;color:#8a9aa3;font-size:14px}.calc-explain{font-size:12px;line-height:1.65;color:#80919b;margin:11px 0 16px}.calc-overhead{background:#f4f7f8;padding:13px 14px;border-radius:7px;font-size:13px}.calc-overhead label{display:flex;align-items:center;gap:7px;line-height:1.5}.calc-overhead>span{display:block;font-size:12px;color:#83929a;margin:8px 0 0 25px}.calc-goal-input{margin:17px 0;max-width:320px}.calc-result-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.calc-result{border:1px solid #e0e8eb;border-radius:8px;padding:16px;background:#fafcfc;min-width:0}.calc-result>span{font-size:12px;color:#6e858f}.calc-result b{display:block;font-size:24px;font-weight:650;letter-spacing:-.5px;margin:10px 0 8px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.calc-result small{font-size:12px;color:#82959e;line-height:1.5;display:block}.calc-result.primary{background:#f1f6ff;border-color:#dce7fb}.calc-result.goal{border-color:#b4caf5;background:#f6f9ff}.calc-compare{border:1px solid #e1e8eb;border-radius:7px;overflow:auto}.calc-compare td{padding:10px 12px;font-size:13px}.calc-compare th{padding:11px 12px;font-size:12px}.calc-profit-row{background:#eff4ff;font-weight:650}.calc-footer{border-top:1px solid #e5ebee;padding-top:15px;margin-bottom:0}@media(max-width:600px){dialog.price-open{width:96vw}.price-open .drawer-content{padding:18px}.price-open .drawer-head{padding:18px}.drawer-tabs{margin-bottom:-18px}.calc-context{grid-template-columns:1fr}.calc-context>span{grid-column:1;grid-row:3}.calc-source{grid-template-columns:1fr 1fr}.calc-source b{font-size:17px}.calc-fields{grid-template-columns:1fr}.calc-result b{font-size:21px}.calc-overhead label{align-items:flex-start}.calc-compare td{font-size:12px}}

.history-open{display:inline-flex;margin-left:7px;padding:4px;color:#7994bc;border-radius:5px;vertical-align:middle}.history-open .icon{width:15px;height:15px}.history-open:hover{background:#eaf1ff;color:var(--accent)}.history-controls{display:grid;grid-template-columns:1fr 1fr;gap:14px}.history-controls label{font-size:12px;color:#738792;display:block}.history-controls select{display:block;width:100%;margin-top:7px;padding:9px 10px;border:1px solid #d6e1e5;border-radius:6px;background:white;color:#2b424e;font-size:13px}.history-dates{display:flex;gap:14px;margin-top:13px}.history-dates label{font-size:12px;display:flex;align-items:center;gap:8px;color:#81929c}.history-dates input{border:1px solid #d6e1e5;border-radius:5px;padding:7px;font-size:13px;color:#344c58;background:white}.history-metrics{margin:16px 0 10px;border:0;padding:0;display:flex;flex-wrap:wrap;gap:9px 15px}.history-metrics legend{font-size:12px;color:#7b8f9a;margin-bottom:9px}.history-metrics label{display:flex;align-items:center;gap:5px;font-size:12px}.history-metrics label i,.history-panel-title i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:3px}.history-scope{font-size:11px;color:#899ba4;margin:13px 0}.history-panel{border:1px solid #e3eaed;border-radius:7px;padding:11px 12px 2px;margin-bottom:10px;background:#fcfdff}.history-panel-title{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#526c79}.history-panel-title small{font-size:11px;color:#8a9da6;margin-left:5px}.history-panel-title b{font-size:13px;color:#354f5b;font-variant-numeric:tabular-nums}.history-chart{display:block;width:100%;height:auto;touch-action:pan-y}.history-day-detail{background:#f1f5ff;border:1px solid #dfe8f8;padding:12px 14px;border-radius:8px;margin:13px 0}.history-day-label{display:flex;align-items:center;gap:16px;font-size:12px;color:#7c929b}.history-day-label input{flex:1;min-width:40px;accent-color:var(--accent)}.history-tooltip{font-size:12px;margin-top:8px;line-height:1.8}.history-tooltip>b{color:#2e5560;font-size:13px}.history-tooltip>div{display:flex;flex-wrap:wrap;gap:3px 18px;color:#7c9099}.history-tooltip strong{color:#284c58;font-weight:600}.history-missing{display:block;color:#a26832}.history-note{font-size:11px;color:#8498a2;line-height:1.65;margin:10px 0 0}@media(max-width:600px){.drawer-tabs{gap:13px}.drawer-tabs button{font-size:12px}.history-controls{grid-template-columns:1fr}.history-dates{flex-wrap:wrap}.history-day-label{flex-wrap:wrap}.history-metrics{gap:10px}.history-panel-title b{font-size:12px}}
.history-day-detail:empty{display:none}

.analysis-action{text-align:right;width:48px}.analysis-action .history-open{margin:0}.history-open{padding:7px}.history-open .icon{width:18px;height:18px}

.columns-control{position:relative}.columns-panel{position:absolute;top:calc(100% + 9px);right:0;width:270px;z-index:18;border:1px solid #d8e3e7;background:white;border-radius:10px;box-shadow:0 14px 45px #193d4926;padding:14px}.columns-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:14px}.columns-panel label{display:flex;align-items:center;gap:9px;padding:8px 6px;border-radius:5px;font-size:13px;cursor:pointer}.columns-panel label:hover{background:#f2f6ff}.columns-panel label small{margin-left:auto;font-size:11px;color:#8a9ca4}.columns-panel input{width:15px;height:15px}.columns-buttons{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:10px;margin-top:8px}.columns-panel p{font-size:11px;color:#8699a2;line-height:1.6;margin:8px 5px 0}.product-totals{background:#eff4ff;font-weight:650}.product-data-note{color:#83949e;font-size:11px;line-height:1.7;margin:13px 1px}.product-table-panel table th:first-child,.product-table-panel table td:first-child{position:sticky;left:0;z-index:1;background:white;box-shadow:1px 0 #edf0f3}.product-table-panel table th:first-child{background:#fafbfc;z-index:2}.product-table-panel table .product-totals td:first-child{background:#eff4ff}.product-table-panel table .analysis-action{position:sticky;right:0;background:white;box-shadow:-1px 0 #edf0f3}.product-table-panel td[data-column-key=lastPrice] small{white-space:normal;min-width:125px}.product-table-panel .table-scroll{scrollbar-width:thin}@media(max-width:600px){.toolbar>.actions{flex-wrap:wrap}.columns-panel{right:auto;left:0}}

.topbar-actions{display:flex;align-items:center;gap:12px}.theme-toggle{font-size:13px;padding:8px 11px}.theme-toggle:first-letter{font-size:18px}.columns-panel{width:325px}.column-help{font-size:11px;color:#84969f;line-height:1.5;margin:6px 3px 12px}.column-item{display:flex;align-items:center;gap:5px;border-radius:6px;cursor:grab}.column-item:hover{background:#f2f6ff}.column-item label{flex:1;min-width:0;padding:7px 1px;cursor:pointer}.column-item label span{font-size:12px}.column-grip{color:#9cafb7;font-size:19px;padding:4px 2px}.column-moves{display:flex;flex:none}.column-moves button{width:23px;height:27px;font-size:16px;color:var(--accent);border-radius:4px}.column-moves button:hover{background:#e2ecff}.column-moves button:disabled{color:#a5b1b7;opacity:.45}.column-drop-target{box-shadow:inset 0 3px #2563eb!important;background:#eaf1ff!important}.column-dragging{opacity:.4}#products-table th[draggable]{cursor:grab}.columns-panel{max-height:min(750px,calc(100vh - 100px));overflow:auto}@media(max-width:1100px){.theme-toggle span{display:none}.topbar-actions{gap:7px}}@media(max-width:600px){.topbar-actions{width:100%;justify-content:space-between}.columns-panel{width:min(325px,calc(100vw - 92px))}.column-moves button{width:25px}}

/* Complete alternate palette; layout and financial meaning stay the same. */
html[data-theme=dark]{color-scheme:dark;--ink:#e4ecff;--muted:#98aac9;--line:#263b60;--accent:#8aafff;--blue:#79a6ff;--pink:#dc88e4;--red:#ff9197;background:#090f21;color:var(--ink)}
html[data-theme=dark] body{background:#090f21}
html[data-theme=dark] .sidebar{background:#0c142a;border-right:1px solid #243554}
html[data-theme=dark] .topbar,html[data-theme=dark] .panel,html[data-theme=dark] .metric,html[data-theme=dark] dialog,html[data-theme=dark] .columns-panel{background:#111d36;border-color:#263b60;color:var(--ink)}
html[data-theme=dark] .btn,html[data-theme=dark] select,html[data-theme=dark] .search input,html[data-theme=dark] .close-btn,html[data-theme=dark] .calc-input,html[data-theme=dark] .history-dates input{background:#192948;border-color:#354e78;color:#e0eaff}
html[data-theme=dark] .btn:hover,html[data-theme=dark] .column-item:hover,html[data-theme=dark] .columns-panel label:hover{background:#203357}
html[data-theme=dark] .demo,html[data-theme=dark] .calc-caution{background:#393323;border-color:#645236;color:#ebcd8c}
html[data-theme=dark] .drawer-head,html[data-theme=dark] th,html[data-theme=dark] .health-note,html[data-theme=dark] .finance-row.muted-result{background:#14233f;color:#acbddd;border-color:#263b60}
html[data-theme=dark] td,html[data-theme=dark] .finance-row{border-color:#24395c}
html[data-theme=dark] tbody tr:hover{background:#192b4b}
html[data-theme=dark] td .product-link,html[data-theme=dark] .calc-input input,html[data-theme=dark] .calc-source b,html[data-theme=dark] .history-panel-title b,html[data-theme=dark] .history-tooltip strong,html[data-theme=dark] .history-tooltip>b{color:#e1eaff}
html[data-theme=dark] .metric.main-metric,html[data-theme=dark] .finance-row.result,html[data-theme=dark] .mine-selector,html[data-theme=dark] .drawer-kpi,html[data-theme=dark] .calc-result.primary,html[data-theme=dark] .calc-result.goal,html[data-theme=dark] .calc-profit-row,html[data-theme=dark] .product-totals{background:#162c52;color:#c3d7ff;border-color:#2d4c7e}
html[data-theme=dark] .product-table-panel table td:first-child,html[data-theme=dark] .product-table-panel table .analysis-action{background:#111d36}
html[data-theme=dark] .product-table-panel table th:first-child{background:#14233f}
html[data-theme=dark] .product-table-panel table .product-totals td:first-child{background:#162c52}
html[data-theme=dark] .segmented{background:#0c1730}
html[data-theme=dark] .segmented button.active,html[data-theme=dark] .tabs button.active{background:#203d6b;color:#c3d7ff}
html[data-theme=dark] .tabs button,html[data-theme=dark] .segmented button{color:#a5b7d7}
html[data-theme=dark] .notice,html[data-theme=dark] .calc-overhead,html[data-theme=dark] .history-day-detail{background:#182b4a;border-color:#304d79;color:#b8c9e9}
html[data-theme=dark] .notice.amber{background:#352f22;border-color:#584831;color:#d8c191}
html[data-theme=dark] .calc-empty,html[data-theme=dark] .upload-mock,html[data-theme=dark] .calc-result,html[data-theme=dark] .history-panel{background:#152440;border-color:#2a4268;color:#b8c9e9}
html[data-theme=dark] .calc-error{background:#442c30;border-color:#81504f;color:#ffc0b5}
html[data-theme=dark] .track{background:#263c60}
html[data-theme=dark] .pill.gray,html[data-theme=dark] .dot-count{background:#253959;color:#b8c9e9}
html[data-theme=dark] .pill.green{background:#1c3760;color:#b4cfff}
html[data-theme=dark] .pill.red{background:#51313b;color:#ffb3bd}
html[data-theme=dark] .pill.amber{background:#4b3c23;color:#f4cb86}
html[data-theme=dark] .pill.ozon{background:#253b60;color:#9dbfff}
html[data-theme=dark] .pill.wb{background:#492b50;color:#f0b5f0}
html[data-theme=dark] .positive,html[data-theme=dark] .delta,html[data-theme=dark] .teal-text{color:#8aafff}
html[data-theme=dark] .negative,html[data-theme=dark] .delta.negative{color:#ff9197}
html[data-theme=dark] .breadcrumb,html[data-theme=dark] .filter label,html[data-theme=dark] .metric .label,html[data-theme=dark] .calc-field>span,html[data-theme=dark] .history-panel-title{color:#a9bbdc}
html[data-theme=dark] .subtitle,html[data-theme=dark] .mini-label,html[data-theme=dark] .page-foot,html[data-theme=dark] .calc-description,html[data-theme=dark] .calc-explain,html[data-theme=dark] .history-note,html[data-theme=dark] .history-scope,html[data-theme=dark] .product-data-note,html[data-theme=dark] .columns-panel p,html[data-theme=dark] .column-help,html[data-theme=dark] .calc-result>span,html[data-theme=dark] .calc-result small,html[data-theme=dark] .calc-source span{color:#9db2d4}
html[data-theme=dark] .column-moves button:hover,html[data-theme=dark] .history-open:hover{background:#284675}
html[data-theme=dark] .column-drop-target{background:#223e6b!important}
html[data-theme=dark] svg line[stroke="#edf1f3"],html[data-theme=dark] svg line[stroke="#e7edf0"]{stroke:#2c4267}
html[data-theme=dark] svg text{fill:#9eb4d8}
html[data-theme=dark] svg path[stroke="#2563eb"],html[data-theme=dark] svg path[stroke="#2563eb"]{stroke:#8aafff}
html[data-theme=dark] svg circle[fill="#2563eb"],html[data-theme=dark] svg circle[fill="#2563eb"]{fill:#8aafff}
html[data-theme=dark] .history-panel,html[data-theme=dark] .calc-compare,html[data-theme=dark] .drawer-tabs,html[data-theme=dark] .calc-footer{border-color:#2a4268}

.profile-button{text-align:left;width:100%;color:#526581}.profile-button:hover{color:white}.profile-button>div{overflow:hidden;text-overflow:ellipsis}.account-button{padding:8px 10px;font-size:13px}.personal-dialog{width:min(620px,96vw)}.personal-dialog h2{margin:8px 0;font-size:24px}.personal-content{padding:26px}.personal-content>label,.personal-grid>label{display:block;font-size:13px;color:var(--muted);line-height:1.6}.personal-content input:not([type=checkbox]),.personal-content select{display:block;width:100%;border:1px solid #d6e0e5;border-radius:7px;padding:11px 12px;margin:6px 0 18px;background:transparent;color:var(--ink);font-size:14px}.personal-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.personal-content h3{margin:15px 0}.personal-content .personal-check{display:flex;align-items:center;gap:8px;margin:4px 0 22px;color:var(--ink)}.personal-contact{display:flex;flex-direction:column;gap:12px;padding:0 0 20px;margin-bottom:20px;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}.personal-contact b{display:block;color:var(--ink);font-size:14px;margin-top:5px;font-weight:500}.personal-footer{display:flex;justify-content:space-between;gap:12px;margin-top:24px}.login-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#f8faff;padding:7vh 8vw;align-items:center;gap:8vw}.login-brand{padding:20px}.login-brand .brandmark{width:54px;height:54px;font-size:34px;color:white;margin-bottom:35px}.login-brand h1{font-size:46px;line-height:1.2;letter-spacing:-1.5px;color:#172b4d}.login-brand .eyebrow{margin-bottom:16px}.login-brand p{color:#7e919c;font-size:17px;line-height:1.7;margin:23px 0}.login-platforms{display:flex;gap:13px;margin-top:35px;flex-wrap:wrap}.login-platforms span{border:1px solid #d9e5e8;padding:10px 13px;border-radius:6px;color:#6b818c;font-size:13px}.login-card{background:#fff;border:1px solid #e1e9ed;border-radius:16px;padding:36px;max-width:520px;width:100%;box-shadow:0 20px 70px #14374508}.login-card h2{font-size:25px;line-height:1.4;margin:18px 0 12px}.login-card .subtitle{margin-bottom:24px}.login-card form label{display:block;font-size:14px;color:#5b747f;margin-bottom:17px}.login-card form input{display:block;width:100%;padding:12px 13px;border:1px solid #d6e1e6;border-radius:7px;background:transparent;color:var(--ink);font-size:16px;margin-top:8px}.login-card form .btn{width:100%;padding:13px;margin:5px 0 14px;font-size:14px}.login-disclaimer{border-top:1px solid #e3e9ec;padding-top:19px;margin-top:20px;font-size:12px;line-height:1.75;color:#8599a3}.login-demo-code{background:#edf3ff;border:1px solid #dce7fb;padding:14px;border-radius:8px;margin-bottom:22px;font-size:13px;line-height:1.8;color:#315fa8}.login-demo-code b{font-size:20px;letter-spacing:3px}.login-error{font-size:13px;line-height:1.5;color:var(--red)}.login-error:empty{display:none}html[data-theme=dark] .login-screen{background:#090f21}html[data-theme=dark] .login-card{background:#111d36;border-color:#263b60}html[data-theme=dark] .login-brand h1{color:#e0eaff}html[data-theme=dark] .login-card form label{color:#b2c5e8}html[data-theme=dark] .login-demo-code{background:#1c3760;color:#c3d7ff;border-color:#304d79}html[data-theme=dark] .personal-content .btn.primary,html[data-theme=dark] .login-card .btn.primary{background:#2563eb;color:white;border-color:#2563eb}@media(max-width:1200px){.account-button span{display:none}.login-screen{padding:5vh 5vw;gap:4vw}.login-brand h1{font-size:37px}}@media(max-width:750px){.login-screen{grid-template-columns:1fr;gap:15px;padding:25px}.login-brand{padding:0}.login-brand .brandmark,.login-brand p,.login-platforms{display:none}.login-brand h1{font-size:26px}.login-brand h1 br{display:none}.login-card{max-width:none;padding:25px}.personal-grid{grid-template-columns:1fr}.personal-content{padding:20px}}
html[data-theme=dark] svg path[stroke="#346ad2"]{stroke:#80a9ff}html[data-theme=dark] svg circle[fill="#346ad2"]{fill:#80a9ff}html[data-theme=dark] .filters{border-color:#263b60}

/* Blue accents on white surfaces by day, deep navy surfaces by night. */
:root{color-scheme:light}
.sidebar{border-right:1px solid var(--line)}
.brand{color:var(--ink)}
.brandmark{color:#fff}
.nav button:hover{color:#2559ac}
.nav button.active{color:#2457b2}
.profile-button:hover{color:#2563eb}
html[data-theme=dark] .sidebar{color:#acbddd}
html[data-theme=dark] .brand{color:#e4ecff}
html[data-theme=dark] .nav button:hover{background:#172849;color:#dce8ff}
html[data-theme=dark] .nav button.active{background:#1d3560;color:#e4ecff;box-shadow:inset 3px 0 #8aafff}
html[data-theme=dark] .nav .badge{background:#2c4875;color:#c3d7ff}
html[data-theme=dark] .work-status,html[data-theme=dark] .profile{border-color:#263b60}
html[data-theme=dark] .work-status{color:#98aac9}
html[data-theme=dark] .work-status b{color:#c3d7ff}
html[data-theme=dark] .avatar{background:#243d66;color:#c3d7ff}
html[data-theme=dark] .profile-button{color:#b8c9e9}
html[data-theme=dark] .profile-button:hover{color:#fff}
html[data-theme=dark] .btn.primary{background:#2563eb;border-color:#2563eb;color:#fff}
html[data-theme=dark] .btn.primary:hover{background:#3475f5;border-color:#3475f5}
html[data-theme=dark] .cover-bar{background:#263c60}
html[data-theme=dark] .personal-content input:not([type=checkbox]),html[data-theme=dark] .personal-content select,html[data-theme=dark] .login-card form input{border-color:#354e78}
html[data-theme=dark] .product-table-panel table th:first-child,html[data-theme=dark] .product-table-panel table td:first-child{box-shadow:1px 0 #263b60}
html[data-theme=dark] .product-table-panel table .analysis-action{box-shadow:-1px 0 #263b60}

/* Order exports stay in the existing stock screen. */
.order-actions{display:flex;gap:10px;justify-content:flex-end;margin:0 0 20px;flex-wrap:wrap}
.order-dialog{width:min(880px,96vw);max-width:96vw}
.order-content{padding:24px 28px}.order-content>.demo{display:inline-block;margin-bottom:20px;white-space:normal}
.order-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px 22px;margin-bottom:18px}
.order-fields label{font-size:13px;color:var(--muted);line-height:1.5}
.order-fields input,.order-fields select{display:block;width:100%;margin:7px 0 0;padding:11px 12px;border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:7px}
.order-fields small{display:block;margin-top:7px;font-size:11px}
.order-presets{display:flex;gap:7px;margin-top:9px}.order-presets button{padding:5px 10px;border:1px solid var(--line);border-radius:5px;font-size:12px;color:var(--accent)}
.order-presets button.active{background:var(--accent);color:#fff;border-color:var(--accent)}
.order-zero{display:flex;align-items:center;gap:7px;font-size:13px;margin:15px 0}
.order-method,.order-dates{font-size:12px;color:var(--muted);line-height:1.7}
.order-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0 12px}
.order-summary>div{border:1px solid var(--line);border-radius:8px;padding:16px}
.order-summary span{display:block;color:var(--muted);font-size:12px}.order-summary b{display:block;font-size:25px;margin-top:9px}
.order-preview td:first-child{white-space:normal;min-width:260px}.order-preview td small{white-space:normal}
.order-error{color:var(--red);font-size:13px;line-height:1.6}.order-error:empty{display:none}
.order-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:20px;margin-top:22px}
.order-footer>span{font-size:12px;color:var(--muted)}
html[data-theme=dark] .order-presets button.active{background:#2563eb;border-color:#2563eb}
@media(max-width:600px){.order-fields{grid-template-columns:1fr}.order-content{padding:18px}.order-summary{grid-template-columns:1fr 1fr}.order-summary>div{padding:12px}.order-footer{align-items:stretch;flex-direction:column}.order-actions{justify-content:flex-start}}

.admin-dialog{width:min(950px,96vw);max-width:96vw}.admin-content{padding:24px 28px}.admin-layout{display:grid;grid-template-columns:250px 1fr;gap:24px}.admin-list{display:flex;flex-direction:column;gap:8px}.admin-user{text-align:left;border:1px solid var(--line);border-radius:8px;padding:13px;width:100%}.admin-user.active{border-color:var(--accent);box-shadow:inset 3px 0 var(--accent)}.admin-user b,.admin-user small{display:block;overflow-wrap:anywhere}.admin-user small{color:var(--muted);font-size:11px;margin:6px 0 9px}.admin-user .pill{font-size:10px}.admin-rights{border:1px solid var(--line);border-radius:8px;margin:18px 0;padding:12px 15px}.admin-rights legend{font-size:13px;font-weight:600;padding:0 7px}.admin-check{display:flex;align-items:center;gap:9px;margin:10px 0;font-size:13px}.admin-role{display:block;font-size:13px;margin:16px 0}.admin-role select,#admin-create input{display:block;border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:6px;width:100%;padding:10px;margin:7px 0 15px}#admin-create{grid-column:1/-1;max-width:560px}#admin-create label{display:block;font-size:13px;color:var(--muted)}.admin-error{color:var(--red);font-size:13px;margin:12px 0}.admin-message{color:var(--accent);font-size:13px}.admin-error:empty,.admin-message:empty{display:none}.admin-rights:disabled{opacity:.6}
@media(max-width:600px){.admin-layout{grid-template-columns:1fr}.admin-content{padding:18px}.admin-list{max-height:230px;overflow:auto}}

.employees-panel{margin-bottom:22px}.employees-panel .panel-head{padding-bottom:18px;align-items:center}.employees-panel .subtitle{margin-top:7px}.employees-panel td{vertical-align:middle}#admin-create .admin-rights label{display:flex;color:var(--ink)}#admin-create .admin-rights input{display:inline-block;width:auto;margin:0;padding:0}.admin-dialog:has(#admin-create) .admin-layout{display:block}#admin-create{max-width:620px}#admin-create>.subtitle{margin-bottom:18px}
@media(max-width:700px){.employees-panel .panel-head{flex-wrap:wrap;align-items:flex-start}.employees-panel .panel-head>.btn{margin-top:8px}}
.security-panel{margin-bottom:22px}.security-panel .panel-head{padding-bottom:8px}.security-rules{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:15px}.security-rules>div{border:1px solid var(--line);border-radius:8px;padding:15px}.security-rules span,.security-rules small{display:block;color:var(--muted);font-size:12px;line-height:1.7;margin-top:6px}.security-panel td{white-space:normal;min-width:110px}.security-panel .notice{margin-top:16px;margin-bottom:0}@media(max-width:800px){.security-rules{grid-template-columns:1fr}}

/* Separate compact sales sheet; existing product table keeps its layout. */
.sales-toolbar{gap:14px;margin-bottom:12px}.sales-toolbar .search{min-width:260px;width:340px}.sales-summary{display:flex;gap:16px;align-items:center;flex-wrap:wrap;font-size:11px;color:var(--muted)}.sales-summary b{color:var(--ink)}
.sales-panel{--sheet-bg:#fff;--sheet-alt:#f7faff;--sheet-head:#eef4ff;border-radius:7px}.sales-scroll{overflow:auto;max-height:calc(100vh - 300px);min-height:240px;scrollbar-width:thin;position:relative}.sales-table{table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:11px;line-height:1.2}.sales-caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.sales-table th,.sales-table td{box-sizing:border-box;padding:4px 5px;height:25px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;background:var(--sheet-bg);color:var(--ink)}.sales-table tr:last-child td{border-bottom:1px solid var(--line)}.sales-table td:nth-child(n+5){text-align:right;font-variant-numeric:tabular-nums}.sales-table tbody tr:nth-child(even) td{background:var(--sheet-alt)}.sales-table tbody tr:hover td{background:var(--sheet-head)}
.sales-table thead th,.sales-table thead td{position:sticky;top:27px;z-index:3;background:var(--sheet-head);font-weight:600}.sales-table thead .sales-total>*{top:0;height:27px;z-index:5;background:var(--sheet-head);text-align:right;font-size:10px}.sales-table thead .sales-total th{text-align:left;left:0;z-index:8}.sales-table .sales-date{height:85px;text-align:center;padding:6px 0}.sales-date span{writing-mode:vertical-rl;transform:rotate(180deg);display:inline-block;letter-spacing:.3px}.sales-table thead tr:nth-child(2) th:not(.sales-date){vertical-align:bottom;padding-bottom:9px}
.sales-table tbody td:nth-child(-n+4),.sales-table thead tr:nth-child(2) th:nth-child(-n+4){position:sticky;z-index:2}.sales-table tbody td:nth-child(1),.sales-table thead tr:nth-child(2) th:nth-child(1){left:0}.sales-table tbody td:nth-child(2),.sales-table thead tr:nth-child(2) th:nth-child(2){left:110px}.sales-table tbody td:nth-child(3),.sales-table thead tr:nth-child(2) th:nth-child(3){left:200px}.sales-table tbody td:nth-child(4),.sales-table thead tr:nth-child(2) th:nth-child(4){left:270px;box-shadow:2px 0 0 var(--line)}.sales-table thead tr:nth-child(2) th:nth-child(-n+4){z-index:6}.sales-table .sales-product{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font:inherit;text-align:left;padding:0;color:inherit}.sales-product:hover{text-decoration:underline;color:var(--accent)}.sales-table .sales-sum{font-weight:650;background:var(--sheet-head)}.sales-table .sales-missing,.sales-table .sales-zero{color:var(--muted)}
html[data-theme=dark] .sales-panel{--sheet-bg:#111d36;--sheet-alt:#14223c;--sheet-head:#1b3258}html[data-theme=dark] .sales-table th,html[data-theme=dark] .sales-table td{border-color:var(--line)}
@media(max-width:1100px){.sales-toolbar{align-items:flex-start}.sales-summary{gap:6px 12px}.sales-scroll{max-height:65vh}}
@media(max-width:700px){.sales-toolbar{flex-direction:column}.sales-toolbar .search{min-width:0;width:100%}.sales-table tbody td:nth-child(-n+2),.sales-table thead tr:nth-child(2) th:nth-child(-n+2){position:static}.sales-table tbody td:nth-child(3),.sales-table thead tr:nth-child(2) th:nth-child(3){left:0}.sales-table tbody td:nth-child(4),.sales-table thead tr:nth-child(2) th:nth-child(4){left:70px}.sales-table thead .sales-total th{position:sticky;left:auto}.sales-scroll{max-height:65vh}}

.sales-range{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:0 0 16px}.sales-range label{font-size:11px;color:var(--muted)}.sales-range input{display:block;margin-top:5px;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:8px;font:inherit}.sales-range>span{font-size:11px;color:var(--muted);padding:8px 0}.sales-range .sales-range-error{color:var(--red)}
.sales-table thead .sales-total td{padding:4px 2px;letter-spacing:-.2px}

/* Collapsible navigation, saved per local profile. */
.sidebar{overflow-y:auto;scrollbar-width:thin}.sidebar .brand{flex-shrink:0;margin-bottom:24px}.sidebar .brandmark{flex-shrink:0}.sidebar .nav{flex-shrink:0}.sidebar-bottom{padding-top:16px;flex-shrink:0}
.sidebar-toggle{display:flex;align-items:center;gap:10px;min-height:34px;width:100%;padding:7px 12px;margin-bottom:18px;border:1px solid var(--line);border-radius:7px;color:var(--muted);font-size:11px;flex-shrink:0}.sidebar-toggle:hover{color:var(--accent);background:#edf3ff}.sidebar-toggle .icon{width:16px;height:16px;transform:rotate(180deg)}
.sidebar.is-collapsed{width:66px;padding-left:8px;padding-right:8px}.sidebar.is-collapsed+.main{margin-left:66px}.sidebar.is-collapsed .brand{margin:0 6px 24px}.sidebar.is-collapsed .brand strong,.sidebar.is-collapsed .nav-label,.sidebar.is-collapsed .nav button span,.sidebar.is-collapsed .work-status,.sidebar.is-collapsed .profile-button>div,.sidebar.is-collapsed .sidebar-toggle span{display:none}.sidebar.is-collapsed .nav button{justify-content:center;padding:12px}.sidebar.is-collapsed .sidebar-toggle{justify-content:center;padding:7px}.sidebar.is-collapsed .sidebar-toggle .icon{transform:none}.sidebar.is-collapsed .sidebar-bottom{display:block}.sidebar.is-collapsed .profile-button{justify-content:center;padding:14px 0 0}.sidebar.is-collapsed .avatar{flex-shrink:0}
html[data-theme=dark] .sidebar-toggle:hover{background:#1d3560;color:#e4ecff}
@media(max-width:900px){.sidebar.is-expanded{width:226px;padding:20px 16px;box-shadow:8px 0 28px #07152a26}.sidebar.is-expanded .brand{margin:0 12px 24px}.sidebar.is-expanded .brand strong,.sidebar.is-expanded .nav-label,.sidebar.is-expanded .nav button span,.sidebar.is-expanded .sidebar-bottom{display:block}.sidebar.is-expanded .nav button{justify-content:flex-start;padding:13px 14px}}

.sales-table [data-sales-extra]{height:112px;white-space:nowrap;line-height:1.25}.sales-table [data-sales-value]{border-left:1px solid var(--line)}.sales-table [data-sales-value=margin].negative{color:var(--red)}

.admin-profile-fields{display:grid;gap:12px;margin-top:18px}.admin-profile-fields label{display:block;font-size:13px}.admin-profile-fields input{display:block;width:100%;min-width:0;margin-top:7px;padding:10px;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--ink);font:inherit}.admin-profile-fields .order-method{margin:0}.admin-layout>form{min-width:0}

.admin-cabinets{border:1px solid var(--line);border-radius:8px;padding:12px 15px;margin:18px 0}.admin-cabinets legend{padding:0 7px;font-size:13px;font-weight:600}
