:root{--ink:#111418;--muted:#66717a;--line:#dde3e7;--bg:#f6f7f8;--panel:#fff;--brand:#0b0d10;--soft:#eef2f4;--accent:#1c6476;--good:#198754;--bad:#c0392b}
*{box-sizing:border-box}
[hidden]{display:none!important}
.inventory-collapsible-summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;padding:2px 0 14px}.inventory-collapsible-summary::-webkit-details-marker{display:none}.inventory-collapsible-summary:before{content:'▸';color:var(--accent);font-size:16px;transition:transform .15s ease}.inventory-panel[open]>.inventory-collapsible-summary:before{transform:rotate(90deg)}.inventory-collapsible-summary>span:first-of-type{display:grid;gap:1px}.inventory-collapsible-summary small{color:var(--muted);font-weight:400}.inventory-collapsible-summary>span:last-child{margin-left:auto;color:var(--muted);font-size:12px}.inventory-collapsible-content{border-top:1px solid var(--line);padding-top:16px}
.inventory-stock-manager-tools{align-items:end}.inventory-stock-manager-tools label{display:grid;gap:4px;color:var(--muted);font-size:12px}.inventory-stock-manager-tools select{min-width:76px}.inventory-stock-manager-table th:nth-child(n+4):nth-child(-n+11),.inventory-stock-manager-table td:nth-child(n+4):nth-child(-n+11){text-align:right;white-space:nowrap}.inventory-pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0 4px;color:var(--muted);font-size:12px}.inventory-pagination .btn{min-height:34px}
.inventory-sort{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;color:inherit;font:inherit;font-weight:700;cursor:pointer;padding:3px 0}.inventory-sort i{position:relative;width:8px;height:14px}.inventory-sort i:before,.inventory-sort i:after{content:"";position:absolute;left:1px;border-left:3px solid transparent;border-right:3px solid transparent}.inventory-sort i:before{top:1px;border-bottom:4px solid #9aa8ad}.inventory-sort i:after{bottom:1px;border-top:4px solid #9aa8ad}.inventory-sort.active i:before{border-bottom-color:var(--accent)}.inventory-sort.active i:after{border-top-color:var(--accent)}.inventory-sort:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}
body{margin:0;font:14px/1.6 "Microsoft YaHei",Arial,sans-serif;color:var(--ink);background:var(--bg)}
body.auth-mode #appView{display:none!important}
body.auth-mode #loginView{display:flex!important}
header{height:70px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:16px;padding:0 26px;position:sticky;top:0;z-index:5;backdrop-filter:blur(8px)}
h1,h2,h3{margin:0 0 10px}h2{font-size:22px}.muted{color:var(--muted)}
main{padding:22px}.header-spacer{flex:1}
.brand-lockup{border:0;background:transparent;padding:0;cursor:pointer;display:flex;align-items:center;gap:10px}.brand-lockup-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#8bd0ac;color:#103f3c;font:800 21px/1 Arial,sans-serif}.brand-lockup-copy{display:grid;gap:1px;text-align:left}.brand-lockup-copy b{color:#fff;font-size:14px;letter-spacing:.04em}.brand-lockup-copy small{color:#b9d9cb;font-size:10px;letter-spacing:.16em}
.login-card,.panel,.hero{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:18px;margin-bottom:16px}
.login-card{max-width:460px;margin:60px auto}.login-logo{text-align:center;margin:4px 0 26px}.login-logo img{width:min(330px,90%);height:auto}.login-card input{display:block;width:100%;margin:10px 0}
input,select{padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:white}
.btn{border:0;border-radius:8px;background:var(--brand);color:white;padding:8px 12px;cursor:pointer}.btn.secondary,.btn.ghost{background:var(--soft);color:#1b3038}.btn.danger{background:var(--bad)}.btn.publish{background:var(--good)}
.toolbar,.sheet-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.msg{min-height:24px;color:var(--bad)}
#appView{display:grid;grid-template-columns:250px 1fr;gap:18px}.content{min-width:0}
.sidebar{background:#111418;color:white;border-radius:10px;padding:14px;height:calc(100vh - 112px);position:sticky;top:88px;overflow:auto}.sidebar h3{font-size:13px;font-weight:600;color:#b9c2c8;margin:18px 4px 8px}
.sidebar button,.doc-btn,.side-item{width:100%;margin:5px 0;text-align:left}
.doc-btn,.side-item{border:0;background:#242a30;color:white;border-radius:8px;padding:10px;cursor:pointer}.doc-btn.link{display:block;text-decoration:none}.doc-btn.active,.side-item.active{background:white;color:#111418}.side-group{border-top:1px solid rgba(255,255,255,.12);border-bottom:1px solid rgba(255,255,255,.12);padding:8px 0;margin:8px 0}.admin-entry{margin-top:18px;background:#33424a}
.home-page{min-height:calc(100vh - 130px);position:relative;overflow:hidden;background:#fff;border:1px solid #e7edf1;border-radius:10px;padding:24px clamp(24px,4vw,58px) 86px;color:#0f2230}
.home-topbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;margin-bottom:34px}.home-mark{width:min(520px,46vw);height:auto;display:block}.home-search{display:flex;align-items:center;justify-content:flex-end;gap:12px}.home-search input{width:min(210px,38vw);height:34px;border:1px solid #d8e1e7;border-radius:7px;background:#fff}.home-search button{width:40px;height:34px;border:0;border-radius:7px;background:#0b3554;color:white;font-size:20px;cursor:pointer}.home-user{font-size:28px;color:#0f2230;line-height:1}
.home-brand{text-align:center;margin-bottom:34px}.home-brand span{display:block;width:148px;height:8px;background:#0b3554;border-radius:999px;margin:0 auto 16px}.home-brand b{display:block;font-size:20px;color:#0f2230;letter-spacing:0}.home-brand p{font-size:15px;color:#8a98a3;margin:12px auto 0;max-width:620px}.home-brand:after{content:"";display:block;width:min(420px,70%);height:4px;margin:16px auto 0;background:repeating-linear-gradient(90deg,#d8e1e7 0 56px,transparent 56px 84px);border-radius:999px}
.home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;max-width:1060px;margin:0 auto;width:100%}
.home-tile{display:block;text-align:left;text-decoration:none;border:0;background:transparent;color:#0f2230;border-radius:8px;padding:0;cursor:pointer;transition:.15s ease}.home-tile img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:8px;background:#f3f8fb}.home-tile:hover{transform:translateY(-2px)}.home-tile b{display:block;font-size:20px;line-height:1.25;margin:16px 0 8px;font-weight:900;letter-spacing:0}.home-tile span{color:#4d5c66;line-height:1.5;font-size:15px}
.home-dock{position:absolute;left:24px;right:24px;bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 26px;border:1px solid rgba(216,225,231,.8);border-radius:12px;background:rgba(255,255,255,.78);box-shadow:0 14px 34px rgba(15,34,48,.12);backdrop-filter:blur(12px)}.home-dock span{color:#0f2230;font-size:14px;line-height:1.45}.home-dock nav{display:flex;gap:28px;align-items:center}.home-dock a,.home-dock button{border:0;background:transparent;color:#0f2230;text-decoration:none;font-size:15px;cursor:pointer;padding:4px 0}.home-dock a:hover,.home-dock button:hover{border-bottom:2px solid #0b3554}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.database-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;margin-top:12px}.database-card{border:1px solid var(--line);background:white;border-radius:8px;padding:16px;text-align:left;cursor:pointer}.database-card b{display:flex;align-items:center;gap:8px;font-size:17px}.database-card small{color:var(--muted)}.document-ownership{display:inline-flex;align-items:center;border:1px solid #b9dfc5;border-radius:999px;background:#eef8f1;color:#17653a;padding:2px 7px;font-size:11px;font-weight:700;white-space:nowrap}.document-ownership.bound-formal{background:#edf5fb;border-color:#bfd7ea;color:#174c74}
.sync-pill{border:1px solid var(--line);border-radius:999px;background:#f3f5f7;color:#33424a;padding:7px 12px;white-space:nowrap}.sync-pill[data-state="ok"]{background:#eef8f1;color:#17653a;border-color:#b9dfc5}.sync-pill[data-state="saving"]{background:#fff8ea;color:#8a5a00;border-color:#efd394}.sync-pill[data-state="error"]{background:#fff0f0;color:#a3332f;border-color:#efb7b4}.sync-pill[data-state="readonly"]{background:#eef2f4;color:#5c6870}
.workspace{min-width:0}.hero{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.workspace-sync-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.note{border-left:4px solid #d79b2b;background:#fff8ea;padding:8px 11px;margin:10px 0}
.table-wrap{overflow:auto;max-height:66vh;border:1px solid var(--line);border-radius:10px;background:white;position:relative}
table{border-collapse:collapse;width:100%;min-width:1500px;border:1px solid #9aa8b1}#sheet{table-layout:fixed}th,td{border:1px solid #9aa8b1;padding:7px;min-width:110px;height:40px;vertical-align:top;text-align:left;white-space:normal;overflow-wrap:anywhere;word-break:break-word}#sheet th[data-r]{vertical-align:middle;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}th{background:#eef2f4;position:sticky;top:0;z-index:2}th[draggable=true]{cursor:grab}td{background:white;outline:none}
@supports (content-visibility:auto){#sheet tbody tr{content-visibility:auto;contain-intrinsic-size:auto 50px}}
#sheet thead tr:first-child th{top:0;z-index:5}#sheet thead .column-label-row + tr th{top:34px;z-index:4}
td[data-r][data-c]{position:relative}
.sheet-formula-bar{display:grid;grid-template-columns:88px 32px minmax(0,1fr);gap:8px;align-items:center;margin:0 0 8px;padding:8px;border:1px solid var(--line);border-radius:8px;background:#f7f9fa}.sheet-cell-address{padding:7px 9px;border:1px solid #cdd8e3;border-radius:6px;background:#fff;color:#3a5067;font:700 13px/1 Consolas,monospace;text-align:center}.sheet-fx{font:700 15px/1 Georgia,serif;color:#2d62e9;text-align:center}.sheet-formula-bar input{min-width:0;width:100%;box-sizing:border-box;font-family:Consolas,monospace}.column-resizer{position:absolute;top:0;right:0;width:6px;height:100%;cursor:col-resize;z-index:8}.row-resizer{position:absolute;bottom:0;left:0;width:100%;height:6px;cursor:row-resize;z-index:8}.row-head,.corner-head,#sheet th{overflow:visible}.sheet-row-number-col{width:48px}
.fill-handle{position:absolute;right:1px;bottom:1px;width:8px;height:8px;background:#0b84ff;border:1px solid #fff;box-shadow:0 0 0 1px #0b84ff;cursor:crosshair;z-index:5}
.fill-preview{box-shadow:inset 0 0 0 2px #0b84ff!important;background:#e9f4ff!important}
.row-head,.corner-head{position:sticky;left:0;z-index:3;background:#f3f5f7;text-align:center;font-weight:bold;min-width:48px;cursor:pointer}
.corner-head{cursor:cell}
.selected{box-shadow:inset 0 0 0 3px #0b84ff;background:#ffffff!important;color:#000!important;font-weight:800}.selected-band{background:#ffffff!important;color:#000!important;font-weight:800;box-shadow:inset 0 0 0 2px #0b84ff}.selected *, .selected-band *{color:#000!important}.formula{background:#d9e2ea!important;color:#26343d;font-weight:bold;cursor:not-allowed}
.image-cell{min-width:140px;height:104px;text-align:center;vertical-align:middle}.image-cell img{max-width:120px;max-height:88px;object-fit:contain;display:block;margin:auto;cursor:zoom-in}.summary-tools{display:flex;gap:8px;align-items:center;padding:10px;background:#f7f9fa;border-top:1px solid #9aa8b1;position:sticky;left:0}.summary-cell{background:#eef2f4!important;font-weight:bold}
.file-cell{min-width:180px;text-align:center;vertical-align:middle}.file-cell button{max-width:170px;white-space:normal}.file-cell small{display:block;margin-top:4px;color:#6b7f92}.file-upload-btn,.file-link{border:1px solid #2c78b7;border-radius:7px;background:#08315b;color:#d8ecff;padding:7px 10px;cursor:pointer}.file-link{font-weight:700}.file-drop-active{outline:3px solid #ffd84d!important;background:#fff2a8!important;color:#000!important}
.image-preview{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;padding:36px;background:rgba(8,13,18,.78);overflow:auto}.image-preview.open{display:flex}.image-preview img{max-width:none;max-height:none;width:auto;height:auto;transform-origin:center center;transition:transform .08s ease;image-rendering:auto}.image-preview-close{position:fixed;top:18px;right:22px;width:40px;height:40px;border:1px solid rgba(255,255,255,.45);border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:28px;line-height:1;cursor:pointer}
.formula-lock-panel{display:grid;grid-template-columns:minmax(180px,1fr) minmax(360px,2fr) auto;gap:12px;align-items:end;margin-top:12px;padding:12px;border:1px solid #9aa8b1;border-radius:8px;background:#f3f5f7}.formula-lock-panel label{display:grid;gap:5px}.formula-lock-panel input{width:100%;font-family:Consolas,monospace}
.exchange-rate-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.exchange-rate-table{margin-top:14px;max-height:520px;overflow:auto}.exchange-rate-table table{width:100%;border-collapse:collapse}.exchange-rate-table th,.exchange-rate-table td{padding:8px 10px;border-bottom:1px solid #dfe8e4;text-align:left}.exchange-rate-table th{position:sticky;top:0;background:#f3f8f6}
.formula-lock-panel.is-hidden{display:none!important}
.locked-formula-panel{grid-template-columns:minmax(220px,1fr) auto}.sheet-context-menu{position:fixed;z-index:1000;min-width:160px;background:white;border:1px solid #9aa8b1;border-radius:8px;box-shadow:0 14px 28px rgba(17,20,24,.18);padding:6px}.sheet-context-menu button{display:block;width:100%;border:0;background:white;text-align:left;padding:8px 10px;border-radius:6px;cursor:pointer}.sheet-context-menu button:hover{background:#eef2f4}.sheet-context-menu button:disabled{color:#9aa8b1;cursor:not-allowed}
.sheet-toolbar{margin-bottom:8px}.sheet-toolbar input{min-width:180px}.sheet-toolbar select{min-width:130px}.filter-conditions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.filter-tag{display:inline-flex;align-items:center;gap:5px;border:1px solid #a9cbd7;border-radius:999px;padding:3px 7px;background:#eaf6fa;color:#164858;font-size:12px}.filter-tag button{border:0;border-radius:50%;width:18px;height:18px;padding:0;background:#356a7c;color:#fff;cursor:pointer;line-height:1}.version-row,.user-row,.perm-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:8px;padding:9px;margin:8px 0;background:#fff}
dialog{border:1px solid var(--line);border-radius:14px;width:min(960px,94vw);padding:20px}.grid.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.password-box{display:flex;gap:8px;flex-wrap:wrap;border:1px solid var(--line);border-radius:8px;padding:10px;margin:8px 0}.password-box input{flex:1;min-width:210px}
@media(max-width:900px){#appView{grid-template-columns:1fr}.sidebar{height:auto;position:static}.hero{display:block}.grid.two,.home-grid{grid-template-columns:1fr}.home-page{min-height:auto;padding-bottom:170px}.home-topbar{grid-template-columns:1fr;justify-items:center}.home-search{justify-content:center}.home-dock{display:block}.home-dock nav{margin-top:12px;gap:16px;flex-wrap:wrap}.home-brand img{width:100%}}

/* Home dashboard only. Database and spreadsheet styles stay unchanged. */
#homeView.home-page{min-height:calc(100vh - 114px);padding:18px;border:1px solid #17436f;border-radius:8px;background:#020d20;color:#e8f2ff;overflow:visible}
#homeView .ops-head{display:flex;justify-content:space-between;align-items:center;padding:0 2px 14px;border-bottom:1px solid #123052}
#homeView .ops-head h1{font-size:22px;margin:0}
#homeView .ops-head p{margin:2px 0 0;color:#738daa}
#homeView .ops-head>span{color:#92abc5}
#homeView .ops-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}
#homeView .ops-stats article{height:112px;display:flex;align-items:center;gap:15px;padding:16px;border:1px solid #17436f;border-radius:8px;background:linear-gradient(135deg,#061a34,#031126)}
#homeView .ops-stats i{width:56px;height:56px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #1d8cff;border-radius:50%;background:radial-gradient(circle,#1768bf,#08224a 72%);box-shadow:0 0 20px rgba(28,135,255,.25);color:#9ed1ff;font-style:normal;font-size:25px}
#homeView .ops-stats article:nth-child(3) i{border-color:#e99138;background:radial-gradient(circle,#84491f,#2b1d1a 72%);color:#ffbd79}
#homeView .ops-stats article div{display:grid;min-width:0}
#homeView .ops-stats span{color:#b8cce1}
#homeView .ops-stats b{font-size:25px;line-height:1.25;white-space:nowrap}
#homeView .ops-stats small{color:#56d3a4}#homeView .ops-stats small.warn{color:#f5a24e}
#homeView .ops-main{display:grid;grid-template-columns:1.1fr 1fr;gap:14px}
#homeView .ops-panel{border:1px solid #17436f;border-radius:8px;background:linear-gradient(145deg,#06182f,#031126);overflow:hidden}
#homeView .ops-panel h2{font-size:17px;margin:0}
#homeView .ops-world,#homeView .ops-trend{height:330px;padding:18px}
#homeView .ops-map{height:218px;position:relative;margin:4px -5px;background:url("/login-reference-cn.png") 31% 39%/780px auto no-repeat;border-bottom:1px solid #103257;filter:saturate(.72)}
#homeView .ops-map:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(3,17,38,.05),rgba(3,17,38,.38));pointer-events:none}
#homeView .ops-map>span{position:absolute;z-index:1;color:#9acbff;font-size:15px;text-shadow:0 0 12px #1286ff}
#homeView .ops-map small{display:block;font-size:11px;color:#7899ba;text-shadow:none}
#homeView .ops-map .eu{left:20%;top:52%}#homeView .ops-map .ru{left:67%;top:27%}#homeView .ops-map .cn{right:5%;top:56%}
#homeView .ops-map-stats{display:grid;grid-template-columns:repeat(4,1fr);margin-top:-6px;border:1px solid #19436d;border-radius:6px;background:#061a34}
#homeView .ops-map-stats span{text-align:center;padding:7px;color:#7894b2;font-size:11px}
#homeView .ops-map-stats b{display:block;color:#eaf4ff;font-size:15px}
#homeView .ops-title{display:flex;justify-content:space-between;align-items:center}
#homeView .ops-title>span{padding:4px 9px;border:1px solid #17436f;border-radius:5px;color:#75a6d7;font-size:12px}
#homeView .ops-chart{height:225px;position:relative;margin-top:16px;background:repeating-linear-gradient(0deg,transparent 0 43px,#0d3156 44px),repeating-linear-gradient(90deg,transparent 0 92px,rgba(13,49,86,.35) 93px);overflow:hidden}
#homeView .ops-chart div{position:absolute;inset:18% 2% 10%;background:#1389ff;clip-path:polygon(0 78%,8% 66%,16% 75%,24% 45%,31% 60%,40% 35%,48% 65%,57% 53%,65% 22%,72% 44%,80% 15%,89% 50%,100% 28%,100% 33%,89% 55%,80% 20%,72% 49%,65% 27%,57% 58%,48% 70%,40% 40%,31% 65%,24% 50%,16% 80%,8% 71%,0 83%);filter:drop-shadow(0 0 6px #148cff)}
#homeView .ops-chart:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(180deg,rgba(20,137,255,.14),transparent)}
#homeView .ops-axis{display:flex;justify-content:space-between;color:#58799b;font-size:11px}
#homeView .ops-lower{display:grid;grid-template-columns:1.35fr .85fr;gap:14px;margin-top:14px}
#homeView .ops-products,#homeView .ops-activity{min-height:250px;padding:18px}
#homeView .ops-products>div{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:14px}
#homeView .ops-products button,#homeView .ops-products a{display:grid;padding:0;border:0;background:transparent;text-align:center;text-decoration:none;color:#eaf4ff;cursor:pointer}
#homeView .ops-products img{width:100%;aspect-ratio:1.35/1;object-fit:contain;padding:8px;border:1px solid #17436f;border-radius:6px;background:#f7f9fb}
#homeView .ops-products b{margin-top:8px}#homeView .ops-products span{color:#4fd2a1;font-size:12px}
#homeView .ops-activity ul{list-style:none;margin:10px 0 0;padding:0}
#homeView .ops-activity li{display:grid;grid-template-columns:27px 1fr auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #0f2f50}
#homeView .ops-activity li>i{width:24px;height:24px;display:grid;place-items:center;border-radius:5px;background:#073a70;color:#65b6ff;font-style:normal}
#homeView .ops-activity li b{display:block;font-size:13px}#homeView .ops-activity li small,#homeView .ops-activity time{color:#6685a5;font-size:11px}
#homeView .ozon-api-panel{margin-top:14px;padding:18px}
#homeView .ozon-api-grid{display:grid;grid-template-columns:180px minmax(260px,1fr) auto;gap:12px;align-items:end;margin-top:12px}
#homeView .ozon-api-grid label{display:grid;gap:6px;color:#9db9d6;font-size:12px}
#homeView .ozon-api-grid input{height:38px}
#homeView #ozonApiHint{display:block;margin-top:10px;color:#7894b2}
#homeView #ozonApiStatus.ok{color:#55d69f;border-color:#1f7958}
#homeView #ozonApiStatus.err{color:#ff9b73;border-color:#8a3b2b}
#homeView .ops-footer{text-align:center;padding:14px 0 0;color:#4f6d8b;font-size:12px}
.data-wall-title{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:54px;border-bottom:1px solid #116a83;background:linear-gradient(90deg,rgba(0,129,150,.24),rgba(1,17,38,.1) 25%,rgba(0,177,191,.28) 50%,rgba(1,17,38,.1) 75%,rgba(0,129,150,.24));color:#a9eefd}
.data-wall-title>span{padding:0 16px;color:#9dd1df;font-size:13px}.data-wall-title>span:last-child{text-align:right}.data-wall-title>div{text-align:center}.data-wall-title b{display:block;color:#f2ffff;font-size:28px;letter-spacing:2px;text-shadow:0 0 12px rgba(30,224,255,.8)}.data-wall-title small{display:block;color:#75d5e9;margin-top:2px}
#homeView .ops-data-row{display:grid;grid-template-columns:1fr 1.45fr 1fr;gap:14px;margin-top:14px}.data-list-panel{min-height:220px;padding:16px}.data-rank-list,.data-order-list{list-style:none;margin:12px 0 0;padding:0}.data-rank-list li{display:grid;grid-template-columns:26px 1fr auto;gap:9px;align-items:center;padding:7px 0;border-bottom:1px solid #0d2d4f;color:#c8e7f0}.data-rank-list b{display:grid;place-items:center;width:22px;height:22px;background:#0e6f93;color:#eaffff;font-size:12px}.data-rank-list li:nth-child(-n+3) b{background:#1cbbd3;color:#041426}.data-rank-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.data-rank-list em,.platform-bars em{color:#69f1c7;font-style:normal;font-size:12px}.data-order-list li{display:grid;grid-template-columns:42px 1fr;gap:9px;padding:8px 0;border-bottom:1px solid #0d2d4f}.data-order-list b{color:#68dfff;font-size:12px}.data-order-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e6f7ff}.data-order-list small{grid-column:2;color:#7096ad;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform-bars{display:grid;gap:17px;margin-top:24px}.platform-bars>div{display:grid;grid-template-columns:44px 1fr 36px;gap:8px;align-items:center;color:#b9e4ef;font-size:13px}.platform-bars i{height:12px;display:block;background:#06253d;border:1px solid #15506a}.platform-bars b{display:block;height:100%;background:linear-gradient(90deg,#12d5dc,#2786ff);box-shadow:0 0 8px rgba(26,218,237,.8)}
@media(max-width:1150px){#homeView .ops-stats{grid-template-columns:repeat(2,1fr)}#homeView .ops-main,#homeView .ops-lower{grid-template-columns:1fr}#homeView .ops-products>div{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1150px){#homeView .ops-data-row{grid-template-columns:1fr}}
@media(max-width:700px){#homeView.home-page{padding:12px}#homeView .ops-head{align-items:flex-start}#homeView .ops-head>span{display:none}#homeView .ops-stats{grid-template-columns:1fr}#homeView .ops-world,#homeView .ops-trend{height:auto}#homeView .ops-products>div{grid-template-columns:repeat(2,1fr)}}

/* Real navigation and dashboard modules, matching the supplied layout. */
.sidebar-brand{height:72px;display:flex;align-items:center;justify-content:center;margin:0 2px 14px;border-bottom:1px solid #21384d;color:#fff;font:400 23px/1 Arial,sans-serif;white-space:nowrap}
.sidebar-brand sup{font-size:8px;align-self:flex-start;margin:17px 0 0 2px}
.sidebar .side-item,.sidebar .doc-btn{border:1px solid transparent}
.sidebar .side-item:before,.sidebar .doc-btn:before{display:inline-block;width:22px;margin-right:8px;color:#8db8df;text-align:center}
.sidebar .side-item:before{content:"⌂"}.sidebar #sideDatabaseBtn:before{content:"▣"}.sidebar .doc-btn:before{content:"▢"}.sidebar #manageBtn:before{content:"♙"}
.sidebar #sideDatabasePrimaryBtn:before{content:"▣"}
.sidebar #sidePricingBtn:before{content:"¥"}.sidebar #sideSopBtn:before{content:"▤"}
.sidebar #sideDatabasePrimaryBtn{background:transparent;color:#fff}
.sidebar #sideDatabasePrimaryBtn:hover,.sidebar #sideDatabasePrimaryBtn.active{border-color:#1685ff;background:linear-gradient(100deg,#0d4e91,#0b2a52)}
.sidebar .legacy-database-entry{display:none!important}
.sidebar .side-item.active,.sidebar .doc-btn.active{border-color:#1685ff;background:linear-gradient(100deg,#0d4e91,#0b2a52);color:#fff;box-shadow:inset 0 0 20px rgba(22,133,255,.16)}
.sidebar-security{margin:20px 2px 2px;padding:14px;border:1px solid #245071;border-radius:8px;background:#102b3c;color:#a8d1e7}
.sidebar-security b{display:block;margin-bottom:4px;font-size:12px}.sidebar-security small{display:block;color:#78a0b6;line-height:1.6}
#homeView .ops-products .product-static{display:grid;padding:0;text-align:center;color:#eaf4ff}
.sidebar-toggle{position:fixed;left:238px;top:78px;z-index:20;width:34px;height:46px;border:1px solid #2876b7;border-radius:0 8px 8px 0;background:#082747;color:#b9ddff;font-size:27px;line-height:1;cursor:pointer;transition:left .2s ease}
#appView.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}
#appView.sidebar-collapsed>.sidebar{display:none}
#appView.sidebar-collapsed>.content{grid-column:1}
#appView.sidebar-collapsed>.sidebar-toggle{left:0}
body:has(#homeView:not([hidden])) #appView.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}
body:has(#homeView:not([hidden])) #appView.sidebar-collapsed .content{padding-left:20px}
.module-page{min-height:calc(100vh - 130px);padding:22px;border:1px solid #17436f;border-radius:8px;background:#020d20;color:#e8f2ff}
.module-head{padding-bottom:16px;border-bottom:1px solid #143455}.module-head h2{font-size:23px;margin:0}.module-head p{margin:3px 0 0;color:#7895b2}
.module-grid{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:16px;margin-top:18px}
.module-grid a{display:grid;grid-template-columns:58px 1fr;grid-template-rows:auto auto;column-gap:16px;align-items:center;min-height:118px;padding:20px;border:1px solid #17436f;border-radius:8px;background:linear-gradient(135deg,#071c37,#031126);color:#eaf4ff;text-decoration:none}
.module-grid a:hover{border-color:#1685ff;box-shadow:0 0 22px rgba(22,133,255,.18)}
.module-grid i{grid-row:1/3;width:54px;height:54px;display:grid;place-items:center;border:1px solid #218dff;border-radius:50%;background:#0a3769;color:#a8d7ff;font-style:normal;font-weight:700}
.module-grid b{font-size:17px}.module-grid span{color:#7593b1}
.erp-module-page{min-height:calc(100vh - 130px)}
.module-single-card,.module-empty-state,.profit-store-row,.module-store-card{border:1px solid #244f7e;border-radius:14px;background:#fff;padding:22px;box-shadow:0 10px 30px rgba(23,64,112,.08)}
.module-single-card{max-width:560px}.module-single-card h3,.module-store-card h3,.profit-store-row h3{margin:8px 0;color:#082b59}.module-single-card p,.module-store-card small{display:block;color:#7184a0;margin:0 0 16px}.module-empty-state{display:grid;gap:8px;max-width:680px;color:#7184a0}.module-empty-state b{color:#163b6b;font-size:18px}.module-store-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.module-store-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.module-store-card>span,.profit-store-row span{font-size:12px;color:#2563eb;font-weight:700}.module-store-card strong{color:#0f766e}.profit-store-list{display:grid;gap:14px}.profit-store-row{display:grid;grid-template-columns:minmax(260px,1fr) minmax(380px,1.5fr) auto;align-items:center;gap:20px}.profit-store-row dl{display:grid;grid-template-columns:repeat(3,1fr);margin:0;border-left:1px solid #e3edf9}.profit-store-row dl div{padding:0 18px;border-right:1px solid #e3edf9}.profit-store-row dt{font-size:13px;color:#7184a0}.profit-store-row dd{margin:7px 0 0;font-weight:800;color:#0b2f60}.module-loading{padding:28px;color:#527093}
.store-manager{display:grid;gap:16px;margin-top:18px}
.store-form,.store-list-panel{padding:18px}
.store-list{display:grid;gap:10px;margin-top:12px}
.store-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:14px;border:1px solid #17436f;border-radius:8px;background:linear-gradient(135deg,#071c37,#031126)}
.store-row b{display:block;color:#eaf4ff}.store-row small{display:block;color:#7894b2;margin-top:3px}
.store-row .active-badge{color:#55d69f;border:1px solid #1f7958;border-radius:999px;padding:4px 9px;font-size:12px}
.store-row .btn{white-space:nowrap}
@media(max-width:900px){.sidebar-toggle{display:none}.module-grid{grid-template-columns:1fr}}

/* Unified dark theme for every authenticated page. */
body:not(.auth-mode){--ink:#e7f1ff;--muted:#7894b0;--line:#17436f;--bg:#020c1d;--panel:#06162b;--soft:#0a2340;--accent:#268fff;background:#020c1d;color:#e7f1ff}
body:not(.auth-mode)>header{background:#031126;border-color:#17436f;color:#e7f1ff}
body:not(.auth-mode)>main,body:not(.auth-mode) #appView,body:not(.auth-mode) .content{background:#020c1d}
body:not(.auth-mode) .panel,body:not(.auth-mode) .hero,body:not(.auth-mode) .database-card{border-color:#17436f;background:#06162b;color:#e7f1ff}
body:not(.auth-mode) .database-card:hover{border-color:#268fff;box-shadow:0 0 20px rgba(38,143,255,.16)}
body:not(.auth-mode) .muted{color:#7894b0}
body:not(.auth-mode) input,body:not(.auth-mode) select,body:not(.auth-mode) textarea{border-color:#24547e;background:#03152b;color:#e7f1ff}
body:not(.auth-mode) .btn.secondary,body:not(.auth-mode) .btn.ghost{border:1px solid #24547e;background:#0a2340;color:#c6dfff}
body:not(.auth-mode) .note{border-left-color:#d79b2b;background:#2a2415;color:#f4d794}
body:not(.auth-mode) .sync-pill{border-color:#24547e;background:#08213e;color:#8dc8ff}
body:not(.auth-mode) .table-wrap{border-color:#17436f;background:#031126}
body:not(.auth-mode) table{border-color:#17436f;background:#031126;color:#dceaff}
body:not(.auth-mode) th{border-color:#17436f;background:#0a2748;color:#f1f7ff}
body:not(.auth-mode) td{border-color:#153a5e;background:#05182e;color:#d5e4f3}
body:not(.auth-mode) .row-head,body:not(.auth-mode) .corner-head{background:#0a2748;color:#b9d4ed}
body:not(.auth-mode) .formula{background:#12334f!important;color:#d8e8f5}
body:not(.auth-mode) .summary-tools,body:not(.auth-mode) .summary-cell{background:#0a2748!important;color:#dceaff}
body:not(.auth-mode) .version-row,body:not(.auth-mode) .user-row,body:not(.auth-mode) .perm-row,body:not(.auth-mode) .password-box{border-color:#17436f;background:#06162b;color:#dceaff}
body:not(.auth-mode) dialog{border-color:#2875b4;background:#06162b;color:#e7f1ff;box-shadow:0 24px 70px rgba(0,0,0,.62)}
body:not(.auth-mode) dialog::backdrop{background:rgba(0,7,18,.72)}
body:not(.auth-mode) .sheet-context-menu{border-color:#24547e;background:#071a31;color:#e7f1ff}
body:not(.auth-mode) .sheet-context-menu button{background:#071a31;color:#dceaff}
body:not(.auth-mode) .sheet-context-menu button:hover{background:#0d3157}
.page-back{margin:0 0 12px;padding:8px 14px;border:1px solid #2875b4;border-radius:7px;background:#082747;color:#b9ddff;cursor:pointer}
.page-back:hover{background:#0d3a68;color:#fff}
.database-card{padding:0!important;overflow:hidden}
.database-card[draggable=true]{cursor:move}.database-card.dragging{opacity:.45;transform:scale(.98)}.database-card.drag-over{outline:3px solid #ffd84d;box-shadow:0 0 24px rgba(255,216,77,.28)!important}
.database-open{display:block;width:100%;min-height:105px;padding:17px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
.database-open b{display:block;font-size:17px;margin-bottom:7px}.database-open small{color:#7894b0}
.database-sync-status{margin:0 14px 10px;padding:8px 11px;border:1px solid #c9ead4;border-radius:8px;background:#f1fbf4;color:#315f49;font-size:12px;line-height:1.65}
.database-sync-status-line{display:flex;align-items:center;gap:6px;color:#17653a}
.database-sync-dot{display:inline-block;width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:#2aa866}
.database-sync-status.empty{border-color:#d8e2e8;background:#f6f9fb;color:#61727e}.database-sync-status.empty .database-sync-status-line{color:#61727e}.database-sync-status.empty .database-sync-dot{background:#95a4b5}
.database-sync-status.pending{border-color:#f0d7a7;background:#fffaf0;color:#7b652d}.database-sync-status.pending .database-sync-status-line{color:#8b681e}.database-sync-status.pending .database-sync-dot{background:#d39a2c}
.database-sync-status.error{border-color:#f0c3c3;background:#fff5f5;color:#8b3030}.database-sync-status.error .database-sync-status-line{color:#a52f2f}.database-sync-status.error .database-sync-dot{background:#d84c4c}
.database-sync-error{display:block;max-width:100%;overflow:hidden;color:#b63b3b;text-overflow:ellipsis;white-space:nowrap}
.database-sync-actions{display:flex;align-items:center;gap:8px;margin-top:7px;min-height:28px}
.database-sync-repair{border:1px solid #c85c5c;border-radius:6px;background:#fff;color:#a53b3b;padding:4px 10px;font:inherit;font-weight:700;cursor:pointer}
.database-sync-repair:hover{background:#fff1f1}
.database-sync-repair:disabled{opacity:.65;cursor:wait}
.database-sync-result{color:#6b4d25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.database-actions{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #17436f;background:#041328}
.database-actions button{flex:1;padding:7px 9px;border:1px solid #24547e;border-radius:6px;background:#0a2340;color:#b9d9f8;cursor:pointer}
.database-actions button:hover{border-color:#268fff;background:#0d3157;color:#fff}
.image-library-upload{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 18px;padding:16px;border:1px solid rgba(47,133,255,.35);background:rgba(5,24,48,.78);border-radius:10px}
.image-library-upload div{display:flex;flex-direction:column;gap:4px;min-width:280px}
.image-library-upload b{color:#fff;font-size:16px}
.image-library-upload input{color:#d9e8ff;border:1px solid rgba(95,157,230,.35);border-radius:8px;padding:9px;background:rgba(2,12,28,.7)}
.virtual-sku-cell{white-space:normal;line-height:1.8}
.virtual-sku-link{display:inline-block;color:#006bd6!important;background:#eaf4ff;border:1px solid #9bc9ff;border-radius:5px;padding:1px 6px;margin:2px;text-decoration:none;font-weight:600;cursor:pointer;font:inherit}
.virtual-sku-link:hover{background:#ffd84d;color:#000!important;border-color:#d8a800}
.virtual-sku-sep{color:#8ea8c2}

/* Seamless dark shell while the real homepage dashboard is visible. */
body:has(#homeView:not([hidden])){background:#020c1d;color:#e8f2ff}
body:has(#homeView:not([hidden]))>header{display:none}
body:has(#homeView:not([hidden]))>main{min-height:100vh;padding:0;background:#020c1d}
body:has(#homeView:not([hidden])) #appView{grid-template-columns:258px minmax(0,1fr);gap:0;min-height:100vh;background:#020c1d}
body:has(#homeView:not([hidden])) .sidebar{height:100vh;top:0;margin:0;padding:14px 12px;border:1px solid #17436f;border-radius:0 18px 18px 0;background:linear-gradient(180deg,#031126,#020a19);box-shadow:12px 0 38px rgba(0,0,0,.25)}
body:has(#homeView:not([hidden])) .content{min-width:0;padding:18px 20px;background:#020c1d}
body:has(#homeView:not([hidden])) #homeView.home-page{min-height:calc(100vh - 36px);margin:0;padding:0 0 12px;border:0;border-radius:0;background:#020c1d}
body:has(#homeView:not([hidden])) #homeView .ops-head{padding:2px 4px 15px}
body:has(#homeView:not([hidden])) #homeView .ops-stats{margin-top:18px}
 .wb-ads-row-advice{min-width:260px;max-width:360px;margin:0;padding-left:18px;color:#52647d;font-size:12px;line-height:1.55}.wb-ads-row-advice li+li{margin-top:4px}.wb-ads-campaign-advice{display:grid;align-content:start;gap:7px;padding:12px;border:1px solid #dbe7ff;border-radius:12px;background:#f5f8ff;color:#4b5f7c}.wb-ads-campaign-advice b{color:#2856b4}.wb-ads-campaign-advice ul{margin:0;padding-left:18px;font-size:12px;line-height:1.55}
@media(max-width:900px){
  body:has(#homeView:not([hidden])) #appView{display:block}
  body:has(#homeView:not([hidden])) .sidebar{height:auto;border-radius:0}
  body:has(#homeView:not([hidden])) .content{padding:12px}
}

/* CHEXTONVECO login screen. */
body.auth-mode{min-height:100vh;background:#f3f6f4;color:#10252a}
body.auth-mode>header{display:none}
body.auth-mode>main{padding:0}
.login-stage{min-height:100vh;display:flex;align-items:center;justify-content:space-between;gap:7vw;padding:7vh clamp(28px,8vw,130px);position:relative;overflow:hidden;background:#f3f6f4}
.login-stage:before,.login-stage:after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.login-stage:before{width:52vw;height:52vw;left:-22vw;bottom:-35vw;background:#e0ece9}
.login-stage:after{width:30vw;height:30vw;right:-15vw;top:-17vw;background:#d8e9e3}
.login-presentation{position:relative;z-index:1;width:min(560px,48vw);padding-bottom:5vh}
.login-presentation-rule{width:62px;height:5px;margin-bottom:26px;background:#216b67;border-radius:99px}
.login-eyebrow,.login-card-status,.login-kicker{margin:0;color:#216b67;font-size:11px;font-weight:800;letter-spacing:.18em}
.login-presentation h1{margin:18px 0 24px;color:#10252a;font-size:clamp(36px,4.4vw,72px);line-height:1.08;letter-spacing:-.055em;font-weight:800}
.login-presentation h1 em{color:#216b67;font-style:normal}
.login-presentation-copy{max-width:370px;margin:0;color:#718482;font-size:16px;line-height:1.9}
.login-signals{display:flex;gap:30px;margin-top:62px;color:#7b8b89;font-size:12px;letter-spacing:.03em}
.login-signals span{display:flex;align-items:center;gap:9px}.login-signals b{color:#216b67;font-size:11px;letter-spacing:.1em}
.login-stage .login-card{position:relative;z-index:1;width:min(460px,42vw);max-width:none;margin:0;padding:34px 42px 28px;border:1px solid #dfe8e4;border-radius:24px;background:rgba(255,255,255,.88);color:#10252a;box-shadow:0 24px 70px rgba(26,69,67,.12);backdrop-filter:blur(16px)}
.login-card-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.login-card-logo{display:block;color:#216b67;font:700 40px/1 Arial,sans-serif;letter-spacing:-.08em;white-space:nowrap}
.login-card-status{color:#8b9b98;font-size:9px;letter-spacing:.15em;white-space:nowrap}
.login-stage .login-divider{height:1px;margin:25px 0 27px;background:#e2eae7}
.login-stage .login-kicker{margin-bottom:8px}.login-stage .login-card h2{margin:0;color:#10252a;font-size:31px;line-height:1.15;letter-spacing:-.04em}.login-subtitle{margin:9px 0 26px;color:#82908e;font-size:13px}
.login-stage .login-card label{display:block;margin:15px 0 7px;color:#445a57;font-size:12px;font-weight:700}
.login-stage .login-card input{display:block;width:100%;height:48px;margin:0;padding:0 14px;border:1px solid #d8e2de;border-radius:10px;background:#fbfcfb;color:#10252a;outline:none;transition:.18s ease}
.login-stage .login-card input::placeholder{color:#a6b3b0}.login-stage .login-card input:focus{border-color:#4b9187;box-shadow:0 0 0 4px rgba(75,145,135,.12);background:#fff}
.login-stage .login-actions{display:grid;grid-template-columns:1.25fr 1fr;gap:10px;margin-top:24px}.login-stage .login-actions .btn{height:48px;font-size:14px;font-weight:800;transition:.18s ease}
.login-stage .login-primary{background:#173d3b;color:#fff;box-shadow:0 8px 18px rgba(23,61,59,.18)}.login-stage .login-primary:hover{background:#216b67;transform:translateY(-1px)}
.login-stage .login-register{background:#edf4f1;border:1px solid #d5e4df;color:#216b67}.login-stage .login-register:hover{background:#e2eeea}
.login-stage .msg{min-height:24px;margin-top:10px;text-align:center;color:#bc5147;font-size:12px}.login-stage .login-footnote{display:flex;align-items:center;gap:8px;padding-top:18px;margin-top:13px;border-top:1px solid #e5ece9;color:#91a09d;font-size:12px}.login-footnote-dot{width:6px;height:6px;border-radius:50%;background:#5eaa8e;box-shadow:0 0 0 4px #e5f2ec}
@media(max-width:900px){.login-stage{justify-content:center;padding:32px 18px}.login-presentation{display:none}.login-stage .login-card{width:min(500px,100%);padding:28px 24px 24px}.login-card-logo{font-size:32px;letter-spacing:-.06em}.login-card-status{display:none}}
body:not(.auth-mode) .wb-direct-formula-panel{grid-template-columns:1fr;align-items:stretch;background:linear-gradient(180deg,rgba(8,35,70,.96),rgba(4,22,45,.98))!important;border-color:rgba(53,145,255,.38)!important;color:#eef6ff!important}
body:not(.auth-mode) .formula-rate-grid{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(120px,.6fr) minmax(120px,.6fr);gap:8px;align-items:center}
body:not(.auth-mode) .formula-rate-grid span{font-size:13px;color:#94b9de}
body:not(.auth-mode) .formula-rate-grid input{height:36px;border:1px solid rgba(76,151,255,.42);border-radius:8px;background:rgba(2,18,38,.82);color:#f4f8ff;padding:0 10px}
body:not(.auth-mode) .order-formula-panel{grid-template-columns:1fr;align-items:stretch;background:linear-gradient(180deg,rgba(8,35,70,.96),rgba(4,22,45,.98))!important;border-color:rgba(53,145,255,.38)!important;color:#eef6ff!important;margin-bottom:10px}
body:not(.auth-mode) .order-formula-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:10px}
body:not(.auth-mode) .order-formula-grid label{display:grid;gap:5px}
body:not(.auth-mode) .order-formula-grid span{font-size:13px;color:#94b9de;font-weight:700}
body:not(.auth-mode) .order-formula-grid input{height:36px;border:1px solid rgba(76,151,255,.42);border-radius:8px;background:rgba(2,18,38,.82);color:#f4f8ff;padding:0 10px;font-family:Consolas,monospace}
body:not(.auth-mode) .formula-panel-toggle{margin-left:12px;padding:6px 10px;font-size:13px}
body:not(.auth-mode) .formula-panel-hidden{grid-template-columns:1fr!important;min-height:0;padding:10px 12px}
body:not(.auth-mode) .formula-panel-hidden > :not(:first-child){display:none!important}
body:not(.auth-mode) .column-label-row th{background:#071a31!important;color:#9fd0ff!important;font-weight:800;text-align:center}
body:not(.auth-mode) .column-label-row th[contenteditable=true]:focus{outline:2px solid rgba(77,166,255,.7);background:#0d3157!important;color:#fff!important}
body:not(.auth-mode) .select-cell{padding:4px!important}
body:not(.auth-mode) .sheet-select{width:100%;min-width:140px;height:34px;border:1px solid rgba(76,151,255,.42);border-radius:7px;background:#061d3a;color:#eef6ff;padding:0 8px;font:inherit}
body:not(.auth-mode) .sheet-select:focus{outline:2px solid rgba(39,132,255,.45)}
body:not(.auth-mode) #sheet .wb-purchase-status-select{font-weight:800!important;border:2px solid #fff!important;color:#fff!important;text-shadow:0 1px 1px #000!important}
body:not(.auth-mode) #sheet .wb-purchase-status-select.wb-purchase-status-not-bought{background:#a61b1b!important;border-color:#ffb4b4!important}
body:not(.auth-mode) #sheet .wb-purchase-status-select.wb-purchase-status-bought{background:#087443!important;border-color:#a9f5c8!important}
body:not(.auth-mode) #sheet td.wb-purchase-status-not-bought{background:#c62828!important;color:#fff!important;font-weight:800!important;text-shadow:0 1px 1px #000!important}
body:not(.auth-mode) #sheet td.wb-purchase-status-bought{background:#16834b!important;color:#fff!important;font-weight:800!important;text-shadow:0 1px 1px #000!important}
body:not(.auth-mode) #sheet .wb-purchase-status-select option{background:#071a33!important;color:#fff!important;font-weight:800!important}
body:not(.auth-mode) #sheet .forecast-status-select{font-weight:800!important;border:2px solid #fff!important;color:#fff!important;text-shadow:0 1px 1px #000!important}
body:not(.auth-mode) #sheet .forecast-status-select.forecast-status-not-reported,
body:not(.auth-mode) #sheet td.forecast-status-not-reported{background:#455a64!important;color:#fff!important}
body:not(.auth-mode) #sheet .forecast-status-select.forecast-status-reported,
body:not(.auth-mode) #sheet td.forecast-status-reported{background:#1565c0!important;color:#fff!important}
body:not(.auth-mode) #sheet .forecast-status-select option{background:#071a33!important;color:#fff!important;font-weight:800!important}
body:not(.auth-mode) #sheet td.status-danger{background:#8f1d2c!important;color:#fff!important;font-weight:800}
body:not(.auth-mode) #sheet td.status-warning{background:#a45b12!important;color:#fff!important;font-weight:800}
body:not(.auth-mode) #sheet td.status-ok{background:#0d7a4f!important;color:#fff!important;font-weight:800}
body:not(.auth-mode) .page-nav-actions{display:flex;gap:10px;align-items:center;margin-bottom:12px}
body:not(.auth-mode) .page-home{background:rgba(8,35,70,.9)!important;border-color:rgba(76,151,255,.38)!important;color:#dcecff!important}
#homeView .ops-chart>div{display:none!important}
#homeView .sales-svg{position:absolute;inset:8px;width:calc(100% - 16px);height:calc(100% - 16px);overflow:visible}
#homeView .sales-line{fill:none;stroke:#1f8cff;stroke-width:2.2;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 10px rgba(31,136,255,.85))}
#homeView .sales-area{fill:rgba(19,137,255,.2);stroke:none}
#homeView.home-page{padding:0!important;border:0!important;background:#020b16!important;color:#dff8ff!important}
#homeView.home-page> :not(.screen-board):not(.cockpit-shell){display:none!important}
#homeView .screen-board{min-height:calc(100vh - 36px);padding:10px 16px 14px;background-color:#020b16;background-image:linear-gradient(rgba(8,93,111,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(8,93,111,.08) 1px,transparent 1px);background-size:34px 34px;overflow:hidden}
#homeView .screen-topbar{height:58px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;border:1px solid #0f7d91;background:#041b26;box-shadow:inset 0 -2px #00cfe2;color:#b8faff}
#homeView .screen-topbar>span{padding:0 16px;font-size:13px}.screen-topbar>span:last-child{text-align:right}.screen-topbar>div{text-align:center}.screen-topbar b{display:block;font-size:27px;letter-spacing:2px;color:#fff;text-shadow:0 0 13px #00dcef}.screen-topbar small{color:#4fdae7;font-size:12px}
#homeView .screen-grid{display:grid;grid-template-columns:minmax(260px,.92fr) minmax(420px,1.45fr) minmax(260px,.92fr);gap:12px;margin-top:12px}.screen-column,.screen-center{display:grid;gap:12px;min-width:0}.screen-column{grid-template-rows:1fr 1fr}.screen-center{grid-template-rows:auto 1fr 1fr;min-height:720px}
#homeView .screen-panel{position:relative;min-width:0;border:1px solid #0c586b;background:rgba(2,23,34,.92);box-shadow:inset 0 0 30px rgba(0,123,150,.1);overflow:hidden}.screen-panel:before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:#0edbe3;box-shadow:0 0 8px #0edbe3}.screen-panel-title{display:flex;align-items:center;justify-content:space-between;min-height:42px;padding:0 13px;border-bottom:1px solid #0c4054;background:rgba(1,14,23,.5)}.screen-panel-title h2{margin:0;font-size:16px;color:#efffff}.screen-panel-title h2:before{content:"//";color:#00dce6;margin-right:7px}.screen-panel-title span{padding:4px 9px;color:#9df2f3;background:#06394a;font-size:12px}
#homeView .screen-total{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;border:1px solid #0c6578;background:#0c6578}.screen-total div{display:grid;justify-items:center;padding:12px 5px;background:#061924}.screen-total span{color:#9dc8d3;font-size:14px}.screen-total b{font-size:30px;color:#fff;font-style:italic;text-shadow:0 0 10px #1be6ef}.screen-total div:nth-child(2) b{color:#ffd769}.screen-total div:nth-child(3) b{color:#78f4ca}
#homeView .screen-rank{list-style:none;margin:0;padding:6px 12px}.screen-rank li{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid rgba(22,104,123,.36);font-size:13px}.screen-rank b{display:grid;place-items:center;width:21px;height:21px;background:#07546a;color:#fff;font-size:11px}.screen-rank li:nth-child(-n+3) b{background:#04a8b7;color:#00151b}.screen-rank span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d7fbff}.screen-rank em{color:#7ef1d0;font-style:normal;font-size:12px}
#homeView .screen-map-panel{min-height:245px}.screen-map-visual{position:relative;height:calc(100% - 43px);min-height:202px;background:radial-gradient(ellipse at center,rgba(11,100,121,.3),transparent 60%),linear-gradient(110deg,#031622,#082c38 49%,#031622);isolation:isolate}.screen-map-visual:before{content:"";position:absolute;inset:16% 7%;border:1px dashed rgba(52,219,228,.34);clip-path:polygon(4% 30%,22% 9%,45% 17%,65% 4%,93% 26%,87% 60%,65% 82%,36% 73%,15% 91%,6% 57%)}.screen-route{position:absolute;height:1px;transform-origin:left center;background:#1fe4ee;box-shadow:0 0 8px #1fe4ee}.route-a{width:43%;left:25%;top:66%;transform:rotate(-35deg)}.route-b{width:34%;left:48%;top:39%;transform:rotate(21deg)}.route-c{width:40%;left:16%;top:52%;transform:rotate(14deg)}.node{position:absolute;padding:4px 8px;border:1px solid #1fdce4;background:#063749;color:#dcffff;font-size:12px;box-shadow:0 0 12px rgba(24,224,230,.6)}.node-cn{left:74%;top:63%}.node-ru{left:53%;top:25%}.node-eu{left:18%;top:57%}
#homeView .screen-realtime{min-height:220px}.screen-orders{list-style:none;margin:0;padding:6px 13px}.screen-orders li{display:grid;grid-template-columns:45px minmax(0,1fr);gap:6px;padding:8px 0;border-bottom:1px solid rgba(22,104,123,.36);font-size:12px}.screen-orders b{color:#62e7ff}.screen-orders span,.screen-orders small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.screen-orders span{color:#efffff}.screen-orders small{color:#84aeb8}
#homeView .screen-chart-panel{min-height:260px}.screen-chart{height:188px;position:relative;margin:8px 12px;background:repeating-linear-gradient(0deg,transparent 0 36px,rgba(12,93,112,.5) 37px),repeating-linear-gradient(90deg,transparent 0 62px,rgba(12,93,112,.24) 63px);overflow:hidden}.screen-axis{display:flex;justify-content:space-between;padding:0 13px 10px;color:#77aab5;font-size:11px}.screen-chart .sales-svg{position:absolute;inset:7px;width:calc(100% - 14px);height:calc(100% - 14px)}.screen-chart .sales-line{fill:none;stroke:#1fe4ed;stroke-width:2.2;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 6px #1fe4ed)}.screen-chart .sales-area{fill:rgba(31,228,237,.16)}
#homeView .screen-donut{--ratio:0deg;width:145px;aspect-ratio:1;margin:15px auto;display:grid;place-content:center;text-align:center;border-radius:50%;background:radial-gradient(circle,#061924 48%,transparent 49%),conic-gradient(#20dce4 var(--ratio),#164a65 0);box-shadow:0 0 20px rgba(0,217,232,.2)}.screen-donut b{font-size:22px;color:#fff}.screen-donut small{color:#8bbac3}.screen-platforms{display:grid;gap:13px;padding:17px}.screen-platforms>div{display:grid;grid-template-columns:50px 1fr 36px;gap:8px;align-items:center;font-size:12px;color:#b8eff1}.screen-platforms i{height:10px;border:1px solid #176477;background:#071e2b}.screen-platforms i b{display:block;height:100%;background:#1bdce6;box-shadow:0 0 8px #1bdce6}.screen-platforms em{color:#86f5cb;font-style:normal;text-align:right}#homeView .screen-board footer{text-align:center;padding:11px 0 0;color:#4d8b98;font-size:12px}
@media(max-width:1200px){#homeView .screen-grid{grid-template-columns:1fr}.screen-center{min-height:0}.screen-column{grid-template-columns:1fr 1fr;grid-template-rows:none}}
@media(max-width:700px){#homeView .screen-board{padding:8px}.screen-topbar{grid-template-columns:1fr}.screen-topbar>span{display:none}.screen-topbar b{font-size:21px}.screen-column{grid-template-columns:1fr}.screen-total b{font-size:18px}.screen-total span{font-size:11px}}
body:not(.auth-mode) #sheet .selected,body:not(.auth-mode) #sheet .selected-band{background:#fff!important;color:#000!important;font-weight:800!important;box-shadow:inset 0 0 0 3px #2a9bff!important}
body:not(.auth-mode) #sheet .selected *,body:not(.auth-mode) #sheet .selected-band *{color:#000!important}
body:not(.auth-mode) #sheet td.return-profit,body:not(.auth-mode) #sheet td.return-profit.selected,body:not(.auth-mode) #sheet td.return-profit.selected-band{background:#c0392b!important;color:#fff!important;font-weight:700!important}
body:not(.auth-mode) #sheet td.return-profit *,body:not(.auth-mode) #sheet td.return-profit.selected *,body:not(.auth-mode) #sheet td.return-profit.selected-band *{color:#fff!important}
body:not(.auth-mode) #sheet td.cancel-profit,body:not(.auth-mode) #sheet td.cancel-profit.formula,body:not(.auth-mode) #sheet td.cancel-profit.selected,body:not(.auth-mode) #sheet td.cancel-profit.selected-band{background:#c0392b!important;color:#fff!important;font-weight:700!important}
body:not(.auth-mode) #sheet td.cancel-profit *,body:not(.auth-mode) #sheet td.cancel-profit.selected *,body:not(.auth-mode) #sheet td.cancel-profit.selected-band *{color:#fff!important}

/* Keep table dropdown text readable even when its cell is selected. */
body:not(.auth-mode) #sheet td.select-cell select.sheet-select,
body:not(.auth-mode) #sheet td.selected select.sheet-select,
body:not(.auth-mode) #sheet td.selected-band select.sheet-select{background:#062044!important;color:#fff!important;border:2px solid #58b7ff!important;text-shadow:0 1px 1px #001326!important;color-scheme:dark}
body:not(.auth-mode) #sheet td.select-cell select.sheet-select:focus,
body:not(.auth-mode) #sheet td.selected select.sheet-select:focus,
body:not(.auth-mode) #sheet td.selected-band select.sheet-select:focus{outline:3px solid #ffd43b!important;outline-offset:1px}
body:not(.auth-mode) #sheet td.select-cell select.sheet-select option{background:#082b58!important;color:#fff!important;font-weight:800!important}
body:not(.auth-mode) #sheet td.select-cell select.sheet-select option:checked{background:#ffd43b!important;color:#071a31!important}
body:not(.auth-mode) #sheet td.select-cell select.wb-purchase-status-select,
body:not(.auth-mode) #sheet td.selected select.wb-purchase-status-select,
body:not(.auth-mode) #sheet td.selected-band select.wb-purchase-status-select{color:#fff!important;text-shadow:0 1px 1px #000!important}
body:not(.auth-mode) #sheet td.select-cell select.wb-purchase-status-select.wb-purchase-status-not-bought,
body:not(.auth-mode) #sheet td.selected select.wb-purchase-status-select.wb-purchase-status-not-bought,
body:not(.auth-mode) #sheet td.selected-band select.wb-purchase-status-select.wb-purchase-status-not-bought{background:#c62828!important;border-color:#ffb3b3!important}
body:not(.auth-mode) #sheet td.select-cell select.wb-purchase-status-select.wb-purchase-status-bought,
body:not(.auth-mode) #sheet td.selected select.wb-purchase-status-select.wb-purchase-status-bought,
body:not(.auth-mode) #sheet td.selected-band select.wb-purchase-status-select.wb-purchase-status-bought{background:#16834b!important;border-color:#b5f3ce!important}
body:not(.auth-mode) #sheet td.select-cell.wb-purchase-status-not-bought,
body:not(.auth-mode) #sheet td.selected.wb-purchase-status-not-bought,
body:not(.auth-mode) #sheet td.selected-band.wb-purchase-status-not-bought{background:#c62828!important;color:#fff!important;font-weight:800!important}
body:not(.auth-mode) #sheet td.select-cell.wb-purchase-status-bought,
body:not(.auth-mode) #sheet td.selected.wb-purchase-status-bought,
body:not(.auth-mode) #sheet td.selected-band.wb-purchase-status-bought{background:#16834b!important;color:#fff!important;font-weight:800!important}
body:not(.auth-mode) #sheet td.select-cell.wb-purchase-status-not-bought select,
body:not(.auth-mode) #sheet td.selected.wb-purchase-status-not-bought select,
body:not(.auth-mode) #sheet td.selected-band.wb-purchase-status-not-bought select{background:#c62828!important;color:#fff!important}
body:not(.auth-mode) #sheet td.select-cell.wb-purchase-status-bought select,
body:not(.auth-mode) #sheet td.selected.wb-purchase-status-bought select,
body:not(.auth-mode) #sheet td.selected-band.wb-purchase-status-bought select{background:#16834b!important;color:#fff!important}
body:not(.auth-mode) #sheet td.duplicate-waybill-warning,
body:not(.auth-mode) #sheet td.duplicate-waybill-warning.selected,
body:not(.auth-mode) #sheet td.duplicate-waybill-warning.selected-band{background:#fff200!important;color:#111!important;font-weight:800!important}

/* Unified ERP shell: shared by dashboard, databases, pricing, SOP and settings. */
:root{--erp-bg:#f4f7fc;--erp-surface:#fff;--erp-ink:#17233b;--erp-muted:#71809a;--erp-line:#e3e9f3;--erp-blue:#2864f0;--erp-green:#18a96b}
body:not(.auth-mode){background:var(--erp-bg);color:var(--erp-ink)}
body:not(.auth-mode)>header{height:64px;padding:0 28px;border-color:var(--erp-line);background:rgba(255,255,255,.94);box-shadow:0 2px 18px rgba(38,63,113,.06);color:var(--erp-ink)}
body:not(.auth-mode)>header .brand-lockup img{height:38px}body:not(.auth-mode)>header #userBadge{font-weight:700;color:#42516a}
body:not(.auth-mode)>main{padding:0;background:var(--erp-bg)}
body:not(.auth-mode) #appView{grid-template-columns:278px minmax(0,1fr);gap:0;min-height:calc(100vh - 64px);background:var(--erp-bg)}
body:not(.auth-mode) .content{padding:24px 30px 36px;min-width:0;background:var(--erp-bg)}
body:not(.auth-mode) .erp-sidebar{height:calc(100vh - 64px);top:64px;margin:0;padding:18px 14px 14px;border:0;border-right:1px solid var(--erp-line);border-radius:0;background:rgba(255,255,255,.98);box-shadow:none;color:var(--erp-ink)}
.erp-brand{display:flex;align-items:center;gap:10px;padding:7px 8px 19px;margin:0 0 6px;border-bottom:1px solid var(--erp-line)}.erp-brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#3b79ff,#2457d9);color:#fff;font:800 20px/1 Arial;box-shadow:0 9px 18px rgba(40,100,240,.26)}.erp-brand b{display:block;letter-spacing:.5px;font-size:15px;color:#1e2d4b}.erp-brand small{display:block;margin-top:1px;color:#8492aa;font-size:10px;letter-spacing:1px}
.erp-nav{display:grid;gap:8px}.erp-nav-group{display:grid;gap:1px;padding:5px 0}.erp-nav-group>span{padding:7px 10px 4px;color:#8b98ac;font-size:11px;font-weight:800;letter-spacing:.9px;text-transform:uppercase}
.erp-sidebar .side-item{display:flex;align-items:center;gap:8px;min-height:37px;width:100%;margin:0;padding:8px 10px;border:1px solid transparent;border-radius:9px;background:transparent;color:#56647a;font-size:14px;font-weight:650;box-shadow:none}.erp-sidebar .side-item:before{display:none!important}.erp-sidebar .side-item i{display:grid;place-items:center;width:19px;color:#8996aa;font-style:normal;font-size:14px}.erp-sidebar .side-item:hover{background:#f2f5fb;color:#2457d9}.erp-sidebar .side-item:hover i{color:#2457d9}.erp-sidebar .side-item.active{border-color:transparent;background:linear-gradient(100deg,#356cf3,#2458df);color:#fff;box-shadow:0 8px 18px rgba(40,100,240,.2)}.erp-sidebar .side-item.active i{color:#fff}.erp-sidebar .erp-admin-group{padding-top:11px;border-top:1px solid var(--erp-line)}
.erp-sidebar .sidebar-security{margin:18px 3px 0;padding:12px;border:1px solid #dce8e3;border-radius:11px;background:#f4fbf7;color:#376e59}.erp-sidebar .sidebar-security b{display:flex;align-items:center;gap:7px;color:#34715a}.erp-sidebar .sidebar-security b i{display:block;width:7px;height:7px;border-radius:50%;background:var(--erp-green);box-shadow:0 0 0 4px rgba(24,169,107,.12)}.erp-sidebar .sidebar-security small{margin-top:5px;color:#7c928a;font-size:11px}
.sidebar-store-lock{margin:18px 3px 0;padding:12px;border:1px solid #dce8f3;border-radius:11px;background:#f7faff;color:#2e5277}.sidebar-store-lock b{display:block;font-size:13px}.sidebar-store-lock small{display:block;margin:5px 0 9px;color:#7188a3;font-size:11px;line-height:1.45}.sidebar-store-lock .btn{width:100%;padding:7px 9px;font-size:12px}
body:not(.auth-mode) .sidebar-toggle{left:265px;top:92px;width:28px;height:42px;border-color:#d8e2f1;border-radius:0 9px 9px 0;background:#fff;color:#4a6285;font-size:19px;box-shadow:4px 4px 12px rgba(39,60,100,.08)}body:not(.auth-mode) #appView.sidebar-collapsed>.sidebar-toggle{left:0}body:not(.auth-mode) #appView.sidebar-collapsed>.content{padding-left:30px}
body:not(.auth-mode) .page-nav-actions{display:flex;align-items:center;gap:8px;margin:0 0 14px}.page-back{margin:0;padding:8px 12px;border:1px solid #dce5f2;border-radius:8px;background:#fff;color:#50627e;font-weight:650}.page-back:hover{border-color:#9ebafa;background:#edf3ff;color:#2458df}
.erp-context{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:10px;margin:0 0 16px;padding:14px 17px;border:1px solid #e0e8f6;border-radius:14px;background:linear-gradient(110deg,#fff,#f7f9ff);box-shadow:0 7px 20px rgba(35,64,115,.05)}.erp-context span{padding:4px 8px;border-radius:999px;background:#edf2ff;color:#416bc8;font-size:12px;font-weight:750}.erp-context b{font-size:17px;color:#1a2b4b}.erp-context small{min-width:0;color:#75839a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#databaseCards{display:block!important;margin-top:0}.database-category{margin:0 0 24px;padding:18px;border:1px solid #e0e7f1;border-radius:18px;background:linear-gradient(135deg,#fff 0%,#f5f9ff 100%)}.database-category header{display:flex;align-items:baseline;gap:12px;margin:0 0 14px}.database-category h3{margin:0;color:#1a2b48;font-size:18px}.database-category p{margin:0;color:#77869f;font-size:13px}.database-category .database-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin:0}.database-owner-groups{display:grid;gap:22px}.database-owner-group+.database-owner-group{padding-top:20px;border-top:1px solid #dfe8e4}.database-owner-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 2px 10px}.database-owner-heading h4{margin:0;color:#25433e;font-size:15px}.database-owner-heading span{color:#718482;font-size:12px}.database-empty{margin:0;padding:34px;text-align:center;color:#77869f;border:1px dashed #dce5f0;border-radius:16px}
body:not(.auth-mode) .panel,body:not(.auth-mode) .hero,body:not(.auth-mode) .database-card,body:not(.auth-mode) .module-page{border-color:#e0e7f1;background:var(--erp-surface);color:var(--erp-ink);box-shadow:0 7px 22px rgba(39,64,112,.05)}body:not(.auth-mode) .module-page{min-height:calc(100vh - 150px);padding:26px;border-radius:15px}.module-head{border-color:#e9eef6}.module-head h2{color:#1c2c49}.module-head p{color:#78879f}body:not(.auth-mode) .module-grid a{border:1px solid #e3e9f3;border-radius:14px;background:#fff;color:#233451;box-shadow:0 5px 16px rgba(38,63,113,.04)}body:not(.auth-mode) .module-grid a:hover{border-color:#9ebafb;box-shadow:0 12px 26px rgba(40,100,240,.12);transform:translateY(-2px)}body:not(.auth-mode) .module-grid i{background:#edf2ff;color:#2d61e6}body:not(.auth-mode) .module-grid span{color:#75839b}
body:not(.auth-mode) .section-head h2,body:not(.auth-mode) .hero h2{color:#1a2b48}.section-head .muted,body:not(.auth-mode) .muted{color:#77869f}body:not(.auth-mode) .btn{border:1px solid #2e63e9;background:#2d62e9;color:#fff;border-radius:8px;font-weight:700;box-shadow:0 5px 12px rgba(40,100,240,.16)}body:not(.auth-mode) .btn:hover{background:#1f55dc}body:not(.auth-mode) .btn.secondary,body:not(.auth-mode) .btn.ghost{border-color:#d9e4f5;background:#f5f8fd;color:#45607f;box-shadow:none}body:not(.auth-mode) .btn.danger{border-color:#e74f50;background:#e74f50}
body:not(.auth-mode) input,body:not(.auth-mode) select,body:not(.auth-mode) textarea{border-color:#dbe4f0;background:#fff;color:#263752}body:not(.auth-mode) input:focus,body:not(.auth-mode) select:focus,body:not(.auth-mode) textarea:focus{outline:3px solid rgba(45,98,233,.12);border-color:#7da4fa}body:not(.auth-mode) .sheet-toolbar{gap:9px;padding:12px;border:1px solid #e5ebf4;border-radius:12px;background:#fafcff}.sheet-toolbar input,.sheet-toolbar select{min-height:36px}.sheet-toolbar .btn{min-height:36px}body:not(.auth-mode) .note{border-left-color:#f0a137;background:#fff9eb;color:#8a641d;border-radius:8px}.image-library-upload{border-color:#dfe7f4!important;background:#f9fbff!important}.image-library-upload b{color:#213554!important}.image-library-upload input{background:#fff!important;color:#53627a!important}
body:not(.auth-mode) .database-card:hover{border-color:#91aff5;box-shadow:0 12px 26px rgba(40,100,240,.11)}.database-actions{border-color:#e5eaf2!important;background:#fafcff!important}.database-actions button{border-color:#dbe4f0!important;background:#fff!important;color:#49617f!important}body:not(.auth-mode) .table-wrap{border-color:#dfe7f1;background:#fff;box-shadow:none}body:not(.auth-mode) table{border-color:#dfe7f1;background:#fff;color:#243451}body:not(.auth-mode) th{border-color:#dfe7f1;background:#f4f7fc;color:#304465}body:not(.auth-mode) td{border-color:#e5ebf3;background:#fff;color:#263952}body:not(.auth-mode) .row-head,body:not(.auth-mode) .corner-head{background:#f3f6fb;color:#536681}body:not(.auth-mode) .formula{background:#edf4ff!important;color:#2d4b73}body:not(.auth-mode) .summary-tools,body:not(.auth-mode) .summary-cell{background:#f4f7fc!important;color:#344966}body:not(.auth-mode) .sync-pill{border-color:#d8e4f3;background:#f6f9fe;color:#527096}body:not(.auth-mode) dialog{border-color:#dce5f0;background:#fff;color:#263752;box-shadow:0 28px 80px rgba(24,42,78,.24)}body:not(.auth-mode) .sheet-context-menu{border-color:#dfe7f0;background:#fff;color:#2a3c58}body:not(.auth-mode) .sheet-context-menu button{background:#fff;color:#2a3c58}body:not(.auth-mode) .sheet-context-menu button:hover{background:#eef4ff}
body:not(.auth-mode) .sheet-formula-bar{border-color:#dfe7f1;background:#f8faff}body:not(.auth-mode) .sheet-cell-address{border-color:#d7e1ef;background:#fff;color:#466080}
body:not(.auth-mode) #homeView.home-page{border-color:#dfe7f1;background:#f7f9ff!important;color:#20304e!important;box-shadow:0 8px 24px rgba(38,63,113,.05)}body:not(.auth-mode) #homeView .screen-board{border-radius:16px;background:#f8faff!important;background-image:linear-gradient(rgba(70,109,178,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(70,109,178,.06) 1px,transparent 1px)!important}body:not(.auth-mode) #homeView .screen-topbar{border-color:#dfe7f3;background:#fff;box-shadow:inset 0 -2px #2d62e9;color:#6c7d95}body:not(.auth-mode) #homeView .screen-topbar b{color:#20314d;text-shadow:none}body:not(.auth-mode) #homeView .screen-topbar small{color:#6080bf}body:not(.auth-mode) #homeView .screen-panel{border-color:#dfe7f2;background:#fff;box-shadow:0 7px 18px rgba(35,64,113,.05)}body:not(.auth-mode) #homeView .screen-panel:before{background:#527ef4;box-shadow:none}body:not(.auth-mode) #homeView .screen-panel-title{border-color:#e9eef6;background:#fbfcff}body:not(.auth-mode) #homeView .screen-panel-title h2{color:#263957}body:not(.auth-mode) #homeView .screen-panel-title h2:before{color:#3869ec}body:not(.auth-mode) #homeView .screen-panel-title span{background:#edf2ff;color:#5171a9}
body:not(.auth-mode) #homeView .screen-total{border-color:#e0e8f4;background:#e0e8f4}body:not(.auth-mode) #homeView .screen-total div{background:#fff}body:not(.auth-mode) #homeView .screen-total span{color:#7d8aa0}body:not(.auth-mode) #homeView .screen-total b{color:#263b61;text-shadow:none}body:not(.auth-mode) #homeView .screen-total div:nth-child(2) b{color:#3169df}body:not(.auth-mode) #homeView .screen-total div:nth-child(3) b{color:#18a96b}body:not(.auth-mode) #homeView .screen-rank li,body:not(.auth-mode) #homeView .screen-orders li{border-color:#edf0f5}body:not(.auth-mode) #homeView .screen-rank span,body:not(.auth-mode) #homeView .screen-orders span{color:#354967}body:not(.auth-mode) #homeView .screen-rank b{background:#edf2ff;color:#4a6ec0}body:not(.auth-mode) #homeView .screen-rank li:nth-child(-n+3) b{background:#356cf3;color:#fff}body:not(.auth-mode) #homeView .screen-rank em{color:#159a61}
body:not(.auth-mode) #homeView .screen-map-visual{background:linear-gradient(130deg,#edf3ff,#f8faff 52%,#eef4ff)}body:not(.auth-mode) #homeView .screen-map-visual:before{border-color:rgba(45,98,233,.32)}body:not(.auth-mode) #homeView .screen-route{background:#4676ef;box-shadow:none}body:not(.auth-mode) #homeView .node{border-color:#aec4ff;background:#fff;color:#2a55b4;box-shadow:0 5px 10px rgba(46,94,200,.12)}body:not(.auth-mode) #homeView .screen-chart{background:repeating-linear-gradient(0deg,transparent 0 36px,#edf1f7 37px),repeating-linear-gradient(90deg,transparent 0 62px,#f0f3f8 63px)}body:not(.auth-mode) #homeView .screen-chart .sales-line{stroke:#3869ed;filter:none}body:not(.auth-mode) #homeView .screen-chart .sales-area{fill:rgba(56,105,237,.14)}body:not(.auth-mode) #homeView .screen-axis{color:#8a97aa}body:not(.auth-mode) #homeView .screen-donut{background:radial-gradient(circle,#fff 48%,transparent 49%),conic-gradient(#356cf3 var(--ratio),#e7edf7 0);box-shadow:none}body:not(.auth-mode) #homeView .screen-donut b{color:#2c4062}body:not(.auth-mode) #homeView .screen-platforms>div{color:#61728b}body:not(.auth-mode) #homeView .screen-platforms i{border-color:#dbe5f4;background:#f3f6fb}body:not(.auth-mode) #homeView .screen-platforms i b{background:#5c84ef;box-shadow:none}

/* Realtime collaboration */
.remote-selection-markers{position:absolute;z-index:3;top:1px;right:1px;display:flex;gap:2px;max-width:90%;pointer-events:none}.remote-selection-marker{display:block;max-width:86px;overflow:hidden;padding:1px 4px;border-radius:3px;color:#fff;font:700 9px/13px Arial,sans-serif;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.collaboration-status{display:inline-flex;align-items:center;gap:6px;margin-top:6px;color:#4f6687;font-size:12px}.collaboration-status:before{content:'';width:7px;height:7px;border-radius:50%;background:#16a36a}.collaboration-status[data-state="connecting"]{color:#8a641d}.collaboration-status[data-state="connecting"]:before{background:#d99a2b}.collaboration-status[data-state="fallback"]{color:#6d5b8f}.collaboration-status[data-state="fallback"]:before{background:#8b6bb3}.remote-editing{outline:2px solid #8b5cf6!important;outline-offset:-3px;position:relative}.cell-conflict{outline:2px solid #ef4444!important;outline-offset:-3px}.cell-conflict-dialog{max-width:560px}.cell-conflict-dialog label{display:block;margin:12px 0;font-weight:600}.cell-conflict-dialog textarea{display:block;box-sizing:border-box;width:100%;min-height:72px;margin-top:6px;resize:vertical}.wb-single-sync-dialog{width:min(980px,94vw);max-height:88vh}.wb-single-sync-dialog pre{max-height:260px;overflow:auto;padding:12px;border:1px solid var(--line);border-radius:8px;background:#f7fafc;white-space:pre-wrap;word-break:break-word;font:12px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace}.wb-single-sync-note{padding:10px 12px;border-radius:8px;background:#fff7ed;color:#9a3412}
.store-copy-dialog{max-width:560px}.store-copy-dialog form{display:grid;gap:15px}.store-copy-dialog h3,.store-copy-dialog p{margin:0}.store-copy-dialog label{display:grid;gap:7px;color:#344966;font-weight:700}.store-copy-dialog input,.store-copy-dialog select{box-sizing:border-box;width:100%;min-height:42px}.store-copy-note{padding:10px 12px;border-radius:8px;background:#f5f8fd;color:#5d708b;line-height:1.5}.store-copy-actions{justify-content:flex-end;margin-top:2px}

/* WB 广告管理：与已确认的白色 ERP 页面保持相同卡片、表格与筛选器风格。 */
.wb-ads-page{max-width:1440px;margin:0 auto}.wb-ads-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.module-kicker{display:block;margin-bottom:5px;color:#356cf3;font-size:12px;font-weight:800;letter-spacing:.8px}.wb-ads-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:22px 0 12px;padding:14px;border:1px solid #e2e9f3;border-radius:13px;background:#f8faff}.wb-ads-toolbar label{display:grid;gap:6px;color:#65748b;font-size:12px;font-weight:700}.wb-ads-toolbar select,.wb-ads-toolbar input{min-width:140px;height:38px}.wb-ads-status{min-height:20px;margin:10px 0 16px;color:#68778e;font-size:13px}.wb-ads-summary{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:12px}.wb-ads-metric{display:grid;gap:7px;min-height:116px;padding:17px;border:1px solid #e5eaf2;border-radius:14px;background:#fff;box-shadow:0 4px 13px rgba(28,51,95,.04)}.wb-ads-metric span{color:#69788f;font-size:13px}.wb-ads-metric strong{color:#1c2d4b;font-size:24px;line-height:1.1}.wb-ads-metric small{color:#6680a8;font-size:12px;line-height:1.35}.wb-ads-advice{margin:14px 0;padding:15px 18px;border:1px solid #dfe9ff;border-radius:13px;background:#f6f9ff;color:#405577}.wb-ads-advice b{color:#2856b4}.wb-ads-advice ul{margin:8px 0 0;padding-left:20px}.wb-ads-advice li+li{margin-top:5px}.wb-ads-table-wrap{overflow:auto;border:1px solid #dfe7f1;border-radius:14px}.wb-ads-table{min-width:1100px;width:100%;border-collapse:collapse}.wb-ads-table th,.wb-ads-table td{padding:12px 10px;border-bottom:1px solid #e7edf5;text-align:left;vertical-align:middle}.wb-ads-table th{background:#f5f8fc;color:#50627d;font-size:12px}.wb-ads-table td{color:#2c3e5d;font-size:13px}.wb-ads-table tbody tr:hover>td{background:#fbfcff}.wb-ads-name{padding:0;border:0;background:transparent;color:#285ddd;font:700 13px/1.35 inherit;text-align:left;cursor:pointer}.wb-ads-name:hover{text-decoration:underline}.wb-ads-status-badge{display:inline-block;padding:4px 9px;border-radius:999px;background:#edf2f8;color:#66748b;font-size:12px}.wb-ads-status-badge.status-9{background:#e8f8ef;color:#21885b}.wb-ads-status-badge.status-11{background:#fff5df;color:#a46e16}.wb-ads-table .btn{min-height:30px;margin:2px;padding:5px 8px;font-size:12px}.wb-ads-detail td{padding:0;background:#f8faff!important}.wb-ads-detail>td>div{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:10px;padding:13px}.wb-ads-detail .wb-ads-metric{min-height:92px;padding:12px}.wb-ads-detail .wb-ads-metric strong{font-size:18px}.module-empty-state{display:grid;gap:5px;padding:34px;border:1px dashed #dce5f0;border-radius:14px;background:#fafcff;color:#74839b;text-align:center}.module-empty-state b{color:#365275}
.sticker-fee-toolbar{display:flex;align-items:center;gap:10px;margin:18px 0}.sticker-fee-toolbar .muted{font-size:13px}.sticker-fee-table-wrap{overflow:auto;border:1px solid #dfe7f1;border-radius:12px}.sticker-fee-table{width:100%;border-collapse:collapse}.sticker-fee-table th,.sticker-fee-table td{padding:11px;border-bottom:1px solid #e7edf5;text-align:left}.sticker-fee-table th{background:#f5f8fc;color:#50627d;font-size:12px}.sticker-fee-table input{width:min(100%,420px);height:36px}.sticker-fee-table td:last-child{width:72px}
@media(max-width:900px){.wb-ads-head{display:grid}.wb-ads-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.wb-ads-detail>td>div{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.wb-ads-toolbar{display:grid;grid-template-columns:1fr}.wb-ads-toolbar label,.wb-ads-toolbar select,.wb-ads-toolbar input{width:100%}.wb-ads-summary{grid-template-columns:1fr}.wb-ads-detail>td>div{grid-template-columns:1fr}}
@media(max-width:1100px){body:not(.auth-mode) #appView{grid-template-columns:230px minmax(0,1fr)}body:not(.auth-mode) .erp-sidebar{padding-left:10px;padding-right:10px}body:not(.auth-mode) .sidebar-toggle{left:217px}body:not(.auth-mode) .content{padding:20px}}@media(max-width:850px){body:not(.auth-mode)>header{padding:0 14px}body:not(.auth-mode) #appView{display:block}body:not(.auth-mode) .erp-sidebar{height:auto;position:static;overflow:visible;border-right:0;border-bottom:1px solid var(--erp-line)}body:not(.auth-mode) .erp-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.erp-nav-group{border-top:1px solid #eef2f7}.erp-brand{grid-column:1/-1}.erp-sidebar .sidebar-security{display:none}body:not(.auth-mode) .sidebar-toggle{display:none}body:not(.auth-mode) .content{padding:16px 12px}.erp-context{grid-template-columns:1fr;gap:5px}.erp-context small{white-space:normal}.erp-nav-group>span{padding-left:5px}}
.sheet-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
  color: #55708f;
  font-size: 13px;
}

.sheet-pager .btn[disabled] {
  cursor: not-allowed;
  opacity: .45;
}

.sheet-pager input,
.sheet-pager select {
  min-height: 32px;
  border: 1px solid #ccd8e7;
  border-radius: 7px;
  background: #fff;
  color: #304b70;
  font: inherit;
}

.sheet-pager input {
  width: 58px;
  padding: 0 7px;
  text-align: center;
}

.sheet-pager select {
  padding: 0 8px;
}

.sheet-page-count {
  color: #7b8ca4;
}

/* 首页经营驾驶舱：浅色、高密度，只作用于首页。 */
body:not(.auth-mode) #homeView.home-page{display:block;max-width:none;min-height:calc(100vh - 118px);padding:24px!important;border:0!important;border-radius:0!important;background:#f4f7fb!important;box-shadow:none!important;color:#1e2f4b!important}
.cockpit-shell{max-width:1640px;margin:0 auto}.cockpit-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.cockpit-kicker{margin:0 0 7px;color:#2f6fe5;font-size:12px;font-weight:800;letter-spacing:.12em}.cockpit-head h1{margin:0;color:#172844;font-size:28px;letter-spacing:.01em}.cockpit-head p{margin:8px 0 0;color:#71809a;font-size:13px}.cockpit-head-actions{display:flex;gap:10px;align-items:center}.cockpit-generated-at{color:#73819a;font-size:12px;white-space:nowrap}
.cockpit-api-strip{display:flex;flex-wrap:wrap;gap:14px;margin:0 0 16px;padding:11px 14px;border:1px solid #dfe7f3;border-radius:11px;background:#fff;color:#52647f;font-size:13px}.cockpit-api-item{display:flex;align-items:center;gap:7px}.cockpit-api-item strong{color:#263957}.cockpit-api-item small{color:#7b8ba4}.cockpit-status-dot{width:8px;height:8px;border-radius:50%;background:#22a76b}.cockpit-status-dot.is-error{background:#e25a5a}.cockpit-api-separator{width:1px;background:#e4eaf3}
.cockpit-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:16px}.cockpit-kpi{min-height:126px;padding:17px;border:1px solid #dfe7f2;border-radius:14px;background:#fff}.cockpit-kpi span{display:block;color:#72809a;font-size:13px}.cockpit-kpi strong{display:block;margin:14px 0 8px;color:#1f3558;font-size:25px;letter-spacing:-.03em}.cockpit-kpi small{color:#8190a8;font-size:12px}.cockpit-kpi.is-accent{border-color:#bfd2fb;background:#f7faff}.cockpit-kpi.is-accent strong{color:#2863d9}.cockpit-kpi.is-store strong{color:#148258}
.cockpit-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(420px,.85fr);gap:16px;margin-bottom:16px}.cockpit-panel{min-width:0;border:1px solid #dfe7f2;border-radius:14px;background:#fff}.cockpit-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid #e8edf4}.cockpit-panel-head h2{margin:0;color:#203552;font-size:16px}.cockpit-panel-head small{color:#7a899f;font-size:12px}.cockpit-panel-head select{min-width:128px;height:34px;padding:0 8px;font-size:12px}.cockpit-panel-body{padding:14px 18px}
.cockpit-platform-list{display:grid;gap:13px}.cockpit-platform-row{display:grid;grid-template-columns:92px minmax(72px,1fr) 118px 48px;align-items:center;gap:10px;color:#52647d;font-size:13px}.cockpit-platform-row>span{font-weight:700;color:#314761}.cockpit-platform-row i{display:block;height:8px;overflow:hidden;border-radius:999px;background:#edf1f7}.cockpit-platform-row i b{display:block;height:100%;border-radius:inherit;background:#2f6fe5}.cockpit-platform-row.is-wb i b{background:#8567da}.cockpit-platform-row strong{color:#283e60;text-align:right;font-size:13px}.cockpit-platform-row em{color:#6d7f9c;font-style:normal;text-align:right}
.cockpit-store-panel{margin-bottom:16px}.cockpit-store-groups{display:grid;gap:18px;padding:16px 18px}.cockpit-store-group h3{display:flex;align-items:baseline;gap:8px;margin:0 0 10px;color:#29415e;font-size:14px}.cockpit-store-group h3 small{color:#8795aa;font-size:12px;font-weight:500}.cockpit-store-scroll{display:flex;gap:12px;overflow-x:auto;padding-bottom:3px}.cockpit-store-card{flex:0 0 254px;min-height:174px;padding:14px;border:1px solid #e0e7f1;border-radius:12px;background:#fff}.cockpit-store-card.has-error{border-color:#efc4c4;background:#fffafa}.cockpit-store-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.cockpit-store-card-head>b{color:#74849d;font-size:11px}.cockpit-platform-tag{display:inline-flex;padding:3px 7px;border-radius:999px;background:#edf3ff;color:#3566c6;font-size:11px;font-weight:800}.cockpit-platform-tag.is-wb{background:#f0edff;color:#6d56be}.cockpit-store-card h4{overflow:hidden;margin:12px 0 5px;color:#223955;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.cockpit-store-card p{margin:0;color:#8491a5;font-size:12px}.cockpit-store-card dl{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:14px 0 10px}.cockpit-store-card dl div{min-width:0}.cockpit-store-card dt{color:#8996a9;font-size:11px}.cockpit-store-card dd{overflow:hidden;margin:5px 0 0;color:#2b4262;font-size:12px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.cockpit-store-sync{display:block;overflow:hidden;color:#7c8ba0;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.cockpit-bottom-grid{display:grid;grid-template-columns:1fr 1fr minmax(340px,.85fr);gap:16px}.cockpit-rank-list,.cockpit-alert-list{margin:0;padding:0;list-style:none}.cockpit-rank-list li{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #edf1f6}.cockpit-rank-list li:last-child{border-bottom:0}.cockpit-rank-list b{display:grid;place-items:center;width:24px;height:24px;border-radius:6px;background:#f0f4fa;color:#60718d;font-size:12px}.cockpit-rank-list li:nth-child(-n+3)>b{background:#eaf1ff;color:#2d63cf}.cockpit-rank-list span{min-width:0}.cockpit-rank-list strong,.cockpit-rank-list small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cockpit-rank-list strong{color:#2c425e;font-size:13px}.cockpit-rank-list small{margin-top:3px;color:#8090a6;font-size:11px}.cockpit-rank-list em{color:#2e5fb8;font-size:12px;font-style:normal;font-weight:800}.cockpit-product-toggle{display:flex;gap:7px}.cockpit-product-toggle button{min-height:30px;padding:5px 9px;border:1px solid #dbe4f2;border-radius:7px;background:#fff;color:#63738c;font-size:12px;cursor:pointer}.cockpit-product-toggle button.is-active{border-color:#9dbafd;background:#edf3ff;color:#2d63cf;font-weight:800}.cockpit-alert-list{display:grid;gap:8px}.cockpit-alert{padding:10px 11px;border:1px solid #e4eaf2;border-radius:9px;background:#fbfcfe}.cockpit-alert b{display:block;color:#2b415d;font-size:12px}.cockpit-alert span{display:block;margin-top:4px;color:#74839b;font-size:12px;line-height:1.35}.cockpit-alert.is-error{border-color:#f0cccc;background:#fffafa}.cockpit-alert.is-warning{border-color:#f2dfb4;background:#fffdf7}.cockpit-empty{margin:0;padding:22px;color:#8290a5;text-align:center;font-size:13px}
@media(max-width:1250px){.cockpit-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cockpit-grid{grid-template-columns:1fr}.cockpit-bottom-grid{grid-template-columns:1fr 1fr}}@media(max-width:760px){body:not(.auth-mode) #homeView.home-page{padding:15px!important}.cockpit-head{display:grid}.cockpit-head-actions{justify-content:space-between}.cockpit-kpi-grid,.cockpit-bottom-grid{grid-template-columns:1fr}.cockpit-api-strip{display:grid}.cockpit-api-separator{display:none}.cockpit-platform-row{grid-template-columns:80px 1fr 90px 40px}}

/* 与现有首页结构对应的浅色驾驶舱布局。 */
.cockpit-api-strip>strong{color:#314761;font-size:13px}.cockpit-api-strip>div{display:flex;align-items:center;gap:7px}.cockpit-api-strip em{color:#1e9b63;font-style:normal;font-weight:800}.cockpit-api-strip small{color:#7b8ba4}.cockpit-dot{width:8px;height:8px;border-radius:50%;background:#22a76b}.cockpit-dot.is-error{background:#e25a5a}.cockpit-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:16px}.cockpit-kpis article{min-height:124px;padding:17px;border:1px solid #dfe7f2;border-radius:14px;background:#fff}.cockpit-kpis span{display:block;color:#72809a;font-size:13px}.cockpit-kpis b{display:block;margin:14px 0 8px;color:#1f3558;font-size:25px;letter-spacing:-.03em}.cockpit-kpis small{color:#8190a8;font-size:12px}.cockpit-kpis article:nth-child(2),.cockpit-kpis article:nth-child(4){border-color:#bfd2fb;background:#f7faff}.cockpit-kpis article:nth-child(2) b,.cockpit-kpis article:nth-child(4) b{color:#2863d9}.cockpit-kpis article:nth-child(5) b{color:#148258}.cockpit-primary-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(420px,.85fr);gap:16px;margin-bottom:16px}.cockpit-panel-head>div{display:grid;gap:4px}.cockpit-panel-head>div>span{color:#203552;font-size:16px;font-weight:800}.cockpit-panel-head>div>small{color:#7a899f;font-size:12px}.cockpit-panel-head>b{color:#2d63cf;font-size:16px}.cockpit-filter{display:flex;align-items:center;gap:8px;color:#75849a;font-size:12px}.cockpit-filter select{min-width:125px;height:34px}.cockpit-ranking{margin:0;padding:4px 18px 14px;list-style:none}.cockpit-ranking li{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #edf1f6}.cockpit-ranking li:last-child{border-bottom:0}.cockpit-ranking b{display:grid;place-items:center;width:24px;height:24px;border-radius:6px;background:#f0f4fa;color:#60718d;font-size:12px}.cockpit-ranking li:nth-child(-n+3)>b{background:#eaf1ff;color:#2d63cf}.cockpit-ranking span{min-width:0}.cockpit-ranking strong,.cockpit-ranking small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cockpit-ranking strong{color:#2c425e;font-size:13px}.cockpit-ranking small{margin-top:3px;color:#8090a6;font-size:11px}.cockpit-ranking em{color:#2e5fb8;font-size:12px;font-style:normal;font-weight:800}.cockpit-toggle{display:flex;gap:7px}.cockpit-toggle button{min-height:30px;padding:5px 9px;border:1px solid #dbe4f2;border-radius:7px;background:#fff;color:#63738c;font-size:12px;cursor:pointer}.cockpit-toggle button.is-active{border-color:#9dbafd;background:#edf3ff;color:#2d63cf;font-weight:800}.cockpit-alerts{display:grid;gap:8px;margin:0;padding:14px 18px;list-style:none}.cockpit-alerts .cockpit-alert{padding:10px 11px;border:1px solid #e4eaf2;border-radius:9px;background:#fbfcfe}.cockpit-alerts .cockpit-alert b{display:block;color:#2b415d;font-size:12px}.cockpit-alerts .cockpit-alert span{display:block;margin-top:4px;color:#74839b;font-size:12px;line-height:1.35}.cockpit-alerts .is-error{border-color:#f0cccc;background:#fffafa}.cockpit-alerts .is-warning{border-color:#f2dfb4;background:#fffdf7}.cockpit-footer{margin-top:16px;padding:11px 14px;border:1px solid #e1e8f2;border-radius:10px;background:#fff;color:#7b8aa1;font-size:12px}
.cockpit-platform-row strong small,.cockpit-store-card dd small,.cockpit-ranking em small,.cockpit-panel-head>div>small#homeContributionTotalRub{display:block;margin-top:3px;color:#74839b;font-size:11px;font-weight:600;white-space:nowrap}.cockpit-store-card dd{white-space:normal}.cockpit-store-card dd small{overflow:hidden;text-overflow:ellipsis}.cockpit-ranking em{text-align:right}.cockpit-ranking em small{color:#74839b}
@media(max-width:1250px){.cockpit-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.cockpit-primary-grid{grid-template-columns:1fr}}@media(max-width:760px){.cockpit-kpis{grid-template-columns:1fr}.cockpit-panel-head{align-items:flex-start;flex-direction:column}.cockpit-filter{width:100%;justify-content:space-between}.cockpit-filter select{flex:1}.cockpit-store-card{flex-basis:230px}}

/* Keep the contribution card compact instead of stretching to the store-card column. */
.cockpit-primary-grid{grid-template-columns:minmax(0,1fr);align-items:start}.cockpit-contribution{height:max-content}.cockpit-platform-list{padding:14px 18px}.cockpit-platform-row{max-width:1180px}
.cockpit-ranking-pager{display:flex;align-items:center;justify-content:center;gap:10px;padding:4px 18px 14px;color:#72819a;font-size:12px}.cockpit-ranking-pager .btn{min-height:30px;padding:5px 10px}
.sheet-pager--always{display:flex!important;visibility:visible!important}
 .wb-direct-profit-settings{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:12px 0;padding:10px 12px;border:1px solid #d8e3ee;border-radius:8px;background:#f7fbff}.wb-direct-profit-settings label{display:grid;gap:5px;color:#52677b;font-size:12px}.wb-direct-profit-settings input{width:120px;height:32px}
 .wb-billing-imports{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.wb-billing-import{display:grid;gap:8px;padding:14px;border:1px solid #c9d9ee;border-radius:10px;background:#f7faff}
.wb-billing-import>div{display:grid;gap:4px}.wb-billing-import b{color:#17365f}.wb-billing-import small{color:#64748b;line-height:1.4}
.wb-billing-file-input{max-width:100%;padding:7px;border:1px dashed #8fb1dc;border-radius:7px;background:#fff}
.wb-billing-status{min-height:20px;font-size:12px}.wb-billing-import .btn{justify-self:start}
.sheet-toolbar #wbBillingActions{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;padding:5px 8px;border:1px solid #c9d9ee;border-radius:8px;background:#f7faff}.sheet-toolbar #wbBillingActions[hidden]{display:none}.wb-billing-label{color:#17365f;font-size:12px;font-weight:800;white-space:nowrap}.sheet-toolbar #wbBillingActions .wb-billing-file-input{max-width:220px;padding:4px}.sheet-toolbar #wbBillingActions .wb-billing-status{min-height:0}
@media(max-width:800px){.wb-billing-imports{grid-template-columns:1fr}}

/* CHEXTONVECO unified application system: the signed-in experience follows the
   approved login language — warm canvas, ink-green navigation, clear data cards. */
body:not(.auth-mode){
  --erp-bg:#f3f6f4;--erp-surface:#fff;--erp-ink:#10252a;--erp-muted:#718482;
  --erp-line:#dfe8e4;--erp-blue:#216b67;--erp-green:#5eaa8e;
  background:var(--erp-bg);color:var(--erp-ink);font-family:"Microsoft YaHei",Arial,sans-serif;
}
body:not(.auth-mode)>header{height:72px;padding:0 30px;border-color:var(--erp-line);background:rgba(255,255,255,.94);box-shadow:0 8px 24px rgba(26,69,67,.06);color:var(--erp-ink)}
body:not(.auth-mode)>header .brand-lockup img{height:42px}body:not(.auth-mode)>header #userBadge{color:#445a57;font-weight:700}
body:not(.auth-mode)>main{padding:0;background:var(--erp-bg)}
body:not(.auth-mode) #appView{grid-template-columns:276px minmax(0,1fr);gap:0;min-height:calc(100vh - 72px);background:var(--erp-bg)}
body:not(.auth-mode) .content{padding:28px 32px 42px;min-width:0;background:var(--erp-bg)}
body:not(.auth-mode) .erp-sidebar{height:calc(100vh - 72px);top:72px;padding:20px 15px 16px;border:0;border-right:1px solid #244c48;background:#173d3b;box-shadow:10px 0 30px rgba(23,61,59,.08);color:#edf6f2}
.erp-brand{padding:7px 8px 20px;margin:0 0 9px;border-bottom:1px solid rgba(223,232,228,.18)}
.erp-brand-mark{width:39px;height:39px;border-radius:12px;background:#5eaa8e;color:#173d3b;box-shadow:0 8px 18px rgba(0,0,0,.15)}
.erp-brand b{color:#f6fbf8}.erp-brand small{color:#a8c7bc}
.erp-nav{gap:7px}.erp-nav-group{gap:2px;padding:5px 0}.erp-nav-group>span{padding:8px 10px 5px;color:#93b4aa;letter-spacing:.08em}
.erp-sidebar .side-item{min-height:38px;padding:8px 10px;border-radius:10px;color:#c6dcd4;font-weight:700}
.erp-sidebar .side-item i{color:#8eb9a9}.erp-sidebar .side-item:hover{background:rgba(255,255,255,.09);color:#fff}.erp-sidebar .side-item:hover i{color:#b5e4d0}
.erp-sidebar .side-item.active{background:#f3f6f4;color:#173d3b;box-shadow:0 8px 18px rgba(0,0,0,.14)}.erp-sidebar .side-item.active i{color:#216b67}
.erp-sidebar .erp-admin-group{border-top-color:rgba(223,232,228,.18)}
.erp-sidebar .sidebar-security,.sidebar-store-lock{border-color:rgba(180,224,207,.24);background:rgba(6,35,33,.28);color:#d7ebe3}.erp-sidebar .sidebar-security b{color:#bfe6d3}.erp-sidebar .sidebar-security small,.sidebar-store-lock small{color:#99bcb0}.sidebar-store-lock .btn{background:#5eaa8e;border-color:#5eaa8e;color:#173d3b}
body:not(.auth-mode) .sidebar-toggle{left:263px;top:98px;border-color:#c5d9d3;background:#fff;color:#216b67;box-shadow:4px 4px 12px rgba(26,69,67,.08)}
body:not(.auth-mode) .page-nav-actions{margin:0 0 16px}.page-back{border-color:#d4e2dc;background:#fff;color:#48645e;border-radius:10px}.page-back:hover{border-color:#77ad98;background:#edf6f1;color:#216b67}
.erp-context{border-color:#dfe8e4;background:linear-gradient(110deg,#fff,#f7fbf8);box-shadow:0 7px 20px rgba(26,69,67,.05)}.erp-context span{background:#e8f3ed;color:#216b67}.erp-context b{color:#173d3b}.erp-context small{color:#718482}
body:not(.auth-mode) .panel,body:not(.auth-mode) .hero,body:not(.auth-mode) .database-card,body:not(.auth-mode) .module-page{border-color:#dfe8e4;background:#fff;color:var(--erp-ink);box-shadow:0 8px 24px rgba(26,69,67,.055)}
body:not(.auth-mode) .module-page{min-height:calc(100vh - 156px);padding:28px;border-radius:18px}.module-head{border-color:#e6efeb}.module-head h2,.section-head h2,body:not(.auth-mode) .hero h2{color:#173d3b}.module-head p,.section-head .muted,body:not(.auth-mode) .muted{color:#718482}
body:not(.auth-mode) .module-grid a{border-color:#dfe8e4;border-radius:16px;background:#fff;color:#173d3b;box-shadow:0 5px 16px rgba(26,69,67,.04)}body:not(.auth-mode) .module-grid a:hover{border-color:#8dc1ab;box-shadow:0 12px 26px rgba(33,107,103,.12)}body:not(.auth-mode) .module-grid i{background:#e8f3ed;color:#216b67}body:not(.auth-mode) .module-grid span{color:#718482}
body:not(.auth-mode) .btn{border-color:#173d3b;background:#173d3b;color:#fff;border-radius:10px;box-shadow:0 6px 14px rgba(23,61,59,.16)}body:not(.auth-mode) .btn:hover{background:#216b67;border-color:#216b67}body:not(.auth-mode) .btn.secondary,body:not(.auth-mode) .btn.ghost{border-color:#d4e2dc;background:#edf6f1;color:#216b67;box-shadow:none}
body:not(.auth-mode) input,body:not(.auth-mode) select,body:not(.auth-mode) textarea{border-color:#d4e2dc;background:#fff;color:#173d3b;border-radius:9px}body:not(.auth-mode) input:focus,body:not(.auth-mode) select:focus,body:not(.auth-mode) textarea:focus{outline:3px solid rgba(75,145,135,.14);border-color:#5eaa8e}
body:not(.auth-mode) .table-wrap,body:not(.auth-mode) table{border-color:#dfe8e4;background:#fff;box-shadow:none}body:not(.auth-mode) th{border-color:#dfe8e4;background:#edf6f1;color:#31534d}body:not(.auth-mode) td{border-color:#e7efeb;background:#fff;color:#25433e}body:not(.auth-mode) tr:hover td{background:#fbfdfc}
body:not(.auth-mode) .database-category{border-color:#dfe8e4;background:linear-gradient(135deg,#fff,#f6faf8)}.database-category h3{color:#173d3b}.database-category p{color:#718482}.database-empty,.module-empty-state{border-color:#cfe1d9;background:#fbfdfc;color:#718482}
body:not(.auth-mode) #homeView.home-page{padding:26px!important;background:#f3f6f4!important;color:#173d3b!important}
.cockpit-shell{max-width:1680px}.cockpit-kicker,.module-kicker{color:#216b67}.cockpit-head h1{color:#173d3b}.cockpit-head p,.cockpit-generated-at{color:#718482}
.cockpit-api-strip,.cockpit-kpis article,.cockpit-panel,.cockpit-footer,.cockpit-store-card{border-color:#dfe8e4;background:#fff;box-shadow:0 7px 18px rgba(26,69,67,.045)}.cockpit-api-strip{color:#526a64}.cockpit-api-strip>strong,.cockpit-panel-head>div>span{color:#173d3b}.cockpit-api-strip em,.cockpit-kpis article:nth-child(5) b,.cockpit-ranking em{color:#216b67}
.cockpit-kpis article:nth-child(2),.cockpit-kpis article:nth-child(4){border-color:#c6dfd4;background:#f7fbf9}.cockpit-kpis article:nth-child(2) b,.cockpit-kpis article:nth-child(4) b{color:#216b67}.cockpit-kpis span,.cockpit-kpis small,.cockpit-panel-head>div>small{color:#718482}
.cockpit-panel-head{border-color:#e6efeb;background:#fcfefd}.cockpit-platform-row i{background:#e8f1ed}.cockpit-platform-row i b{background:#5eaa8e}.cockpit-platform-row.is-wb i b{background:#216b67}.cockpit-platform-row>span,.cockpit-platform-row strong{color:#31534d}.cockpit-platform-row em{color:#718482}
.cockpit-platform-tag{background:#e8f3ed;color:#216b67}.cockpit-platform-tag.is-wb{background:#edf1ee;color:#31534d}.cockpit-store-card h4,.cockpit-ranking strong{color:#25433e}.cockpit-store-card p,.cockpit-store-card dt,.cockpit-ranking small{color:#718482}.cockpit-ranking li{border-color:#e7efeb}.cockpit-ranking b{background:#edf6f1;color:#52736a}.cockpit-ranking li:nth-child(-n+3)>b{background:#216b67;color:#fff}.cockpit-toggle button{border-color:#d4e2dc;color:#637a73}.cockpit-toggle button.is-active{border-color:#8dc1ab;background:#e8f3ed;color:#216b67}
.cockpit-alerts .cockpit-alert{border-color:#dfe8e4;background:#fbfdfc}.cockpit-alerts .is-error{border-color:#edc8c3;background:#fffafa}.cockpit-alerts .is-warning{border-color:#eadbb7;background:#fffdf7}.cockpit-footer{color:#718482}
@media(max-width:1100px){body:not(.auth-mode) #appView{grid-template-columns:236px minmax(0,1fr)}body:not(.auth-mode) .erp-sidebar{padding-left:10px;padding-right:10px}body:not(.auth-mode) .sidebar-toggle{left:221px}body:not(.auth-mode) .content{padding:22px 20px 32px}}
@media(max-width:850px){body:not(.auth-mode)>header{padding:0 16px}body:not(.auth-mode) #appView{display:block}body:not(.auth-mode) .erp-sidebar{height:auto;position:static;border-right:0;border-bottom:1px solid #dfe8e4}.erp-nav-group{border-top-color:rgba(223,232,228,.18)}body:not(.auth-mode) .content{padding:16px 12px 26px}}

/* Preview 1 layout pass: align the signed-in pages to the approved dashboard
   composition instead of treating the theme as a color-only override. */
body:not(.auth-mode) #homeView.home-page{padding:22px 30px 30px!important}
body:not(.auth-mode) .cockpit-shell{max-width:1680px;margin:0 auto}
body:not(.auth-mode) .cockpit-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;padding:2px 0 18px;margin-bottom:14px;border-bottom:1px solid #dfe8e4}
body:not(.auth-mode) .cockpit-head h1{font-size:26px;letter-spacing:-.03em}
body:not(.auth-mode) .cockpit-head-actions{align-items:center}
body:not(.auth-mode) .cockpit-api-strip{display:flex;align-items:center;gap:18px;min-height:48px;margin-bottom:14px;padding:9px 14px;border-radius:10px;box-shadow:none}
body:not(.auth-mode) .cockpit-api-strip>strong{padding-right:5px;border-right:1px solid #dfe8e4}
body:not(.auth-mode) .cockpit-api-strip>div{min-width:160px}
body:not(.auth-mode) .cockpit-kpis{grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin-bottom:14px;border:1px solid #dfe8e4;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 7px 18px rgba(26,69,67,.045)}
body:not(.auth-mode) .cockpit-kpis article{min-height:92px;padding:14px 16px;border:0;border-left:1px solid #e7efeb;border-radius:0;box-shadow:none}
body:not(.auth-mode) .cockpit-kpis article:first-child{border-left:0}
body:not(.auth-mode) .cockpit-kpis article:nth-child(2),body:not(.auth-mode) .cockpit-kpis article:nth-child(4){background:#f7fbf9}
body:not(.auth-mode) .cockpit-kpis b{margin:10px 0 4px;font-size:23px}
body:not(.auth-mode) .cockpit-primary-grid{grid-template-columns:minmax(0,1.2fr) minmax(380px,.88fr);gap:14px;margin-bottom:14px;align-items:stretch}
body:not(.auth-mode) .cockpit-panel{border-radius:12px;box-shadow:0 7px 18px rgba(26,69,67,.045)}
body:not(.auth-mode) .cockpit-panel-head{min-height:54px;padding:13px 16px}
body:not(.auth-mode) .cockpit-panel-head>div>span{font-size:15px}
body:not(.auth-mode) .cockpit-platform-list{display:grid;gap:15px;padding:18px 16px 20px}
body:not(.auth-mode) .cockpit-platform-row{grid-template-columns:82px minmax(80px,1fr) 112px 44px;max-width:none}
body:not(.auth-mode) .cockpit-stores-panel .cockpit-store-groups{max-height:252px;overflow:auto;padding:14px 16px}
body:not(.auth-mode) .cockpit-store-group{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;align-items:start}
body:not(.auth-mode) .cockpit-store-group h3{margin:3px 0 0;font-size:13px}
body:not(.auth-mode) .cockpit-store-scroll{gap:10px}
body:not(.auth-mode) .cockpit-store-card{flex-basis:214px;min-height:144px;padding:12px;border-radius:10px;box-shadow:none}
body:not(.auth-mode) .cockpit-store-card dl{margin:10px 0 8px}
body:not(.auth-mode) .cockpit-bottom-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(280px,.82fr);gap:14px}
body:not(.auth-mode) .cockpit-bottom-grid .cockpit-panel{min-height:286px}
body:not(.auth-mode) .cockpit-ranking{padding:4px 16px 12px}
body:not(.auth-mode) .cockpit-ranking li{padding:9px 0}
body:not(.auth-mode) .cockpit-alerts{padding:12px 16px}
body:not(.auth-mode) .cockpit-footer{margin-top:14px;box-shadow:none}

body:not(.auth-mode) #workspace{max-width:1680px;margin:0 auto}
body:not(.auth-mode) #workspace>.hero{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px;padding:18px 20px;border-radius:12px;box-shadow:0 7px 18px rgba(26,69,67,.045)}
body:not(.auth-mode) #workspace>.hero h2{font-size:22px}
body:not(.auth-mode) #workspace>.panel{padding:0;margin-bottom:14px;border-radius:12px;overflow:hidden}
body:not(.auth-mode) #workspace>.panel>h3{padding:15px 18px;margin:0;border-bottom:1px solid #e6efeb;background:#fcfefd;font-size:16px}
body:not(.auth-mode) #workspace .sheet-toolbar{display:flex;align-items:center;gap:8px;padding:12px 14px;border:0;border-bottom:1px solid #dfe8e4;border-radius:0;background:#f7fbf9}
body:not(.auth-mode) #workspace .sheet-toolbar .toolbar-action-group{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap}
body:not(.auth-mode) #workspace .sheet-toolbar input{min-width:150px}
body:not(.auth-mode) #workspace .note{margin:12px 14px;border-left-color:#5eaa8e;background:#f7fbf9;color:#52736a}
body:not(.auth-mode) #workspace .table-wrap{margin:0 14px 14px;border-radius:9px}
body:not(.auth-mode) #workspace #sheet{font-size:12px}
body:not(.auth-mode) #workspace #sheet th{height:38px;white-space:nowrap}
body:not(.auth-mode) #workspace #sheet td{height:36px;min-width:112px}
body:not(.auth-mode) #workspace .formula-lock-panel{margin:0;border:0;border-bottom:1px solid #dfe8e4;border-radius:0;background:#f7fbf9;color:#173d3b;box-shadow:none}
body:not(.auth-mode) #workspace .formula-lock-panel>div:first-child{padding:15px 18px 10px;border-bottom:1px solid #e6efeb;background:#fcfefd}
body:not(.auth-mode) #workspace .formula-lock-panel>div:first-child>b{font-size:16px;color:#173d3b}
body:not(.auth-mode) #workspace .formula-lock-panel>div:first-child p{margin:4px 0 0}
body:not(.auth-mode) #workspace .order-formula-grid{grid-template-columns:repeat(4,minmax(180px,1fr));gap:10px;padding:14px 18px}
body:not(.auth-mode) #workspace .order-formula-grid label{gap:5px}
body:not(.auth-mode) #workspace .order-formula-grid label>span{color:#52736a;font-size:12px;font-weight:800}
body:not(.auth-mode) #workspace .formula-map-input,body:not(.auth-mode) #workspace .cancel-formula-input,body:not(.auth-mode) #workspace .rate-method,body:not(.auth-mode) #workspace .rate-base,body:not(.auth-mode) #workspace .rate-perkg{height:36px;padding:0 10px;border:1px solid #cfe1d9;border-radius:8px;background:#fff;color:#173d3b;font:12px Consolas,monospace}
body:not(.auth-mode) #workspace .formula-lock-panel>.btn{margin:0 18px 14px}
body:not(.auth-mode) #workspace .cancel-formula-section{margin:0;border-top:1px solid #dfe8e4;background:#f3f8f5}
body:not(.auth-mode) #workspace .cancel-formula-section>div:first-child{padding:14px 18px 8px;background:transparent}
body:not(.auth-mode) #workspace .formula-panel-hidden{min-height:0;padding:0}
body:not(.auth-mode) #workspace .formula-panel-hidden> :not(:first-child){display:none!important}
body:not(.auth-mode) #workspace .formula-panel-hidden>div:first-child{border-bottom:0}
body:not(.auth-mode) #workspace .sheet-formula-bar{margin:12px 14px;border:1px solid #dfe8e4;border-radius:8px;background:#fff}
body:not(.auth-mode) #workspace .summary-tools{margin:0 14px 14px;padding:10px 12px;border:1px solid #dfe8e4;border-radius:8px;background:#f7fbf9}

/* Fusion implementation: no product-image block; use data density and clear grouping. */
body:not(.auth-mode) .cockpit-trend-block{padding:14px 16px 4px;border-bottom:1px solid #e6efeb;background:#fbfdfc}
body:not(.auth-mode) .cockpit-subhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;color:#31534d;font-size:12px}
body:not(.auth-mode) .cockpit-subhead span{color:#8a9a94}
body:not(.auth-mode) .cockpit-sales-chart{position:relative;height:118px;border:1px solid #e0ebe6;border-radius:9px;background:#fff;overflow:hidden}
body:not(.auth-mode) .cockpit-sales-chart:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(to bottom,transparent 0,transparent 28px,#e8f0ec 29px);pointer-events:none}
body:not(.auth-mode) .cockpit-sales-chart .sales-svg{position:absolute;inset:8px;width:calc(100% - 16px);height:calc(100% - 16px)}
body:not(.auth-mode) .cockpit-sales-chart .sales-line{fill:none;stroke:#216b67;stroke-width:2.4;vector-effect:non-scaling-stroke}
body:not(.auth-mode) .cockpit-sales-chart .sales-area{fill:rgba(94,170,142,.18);stroke:none}
body:not(.auth-mode) .cockpit-sales-axis{display:flex;justify-content:space-between;padding-top:5px;color:#8a9a94;font-size:10px}
body:not(.auth-mode) .cockpit-sales-chart>.cockpit-empty{display:grid;height:100%;place-items:center;color:#8a9a94}

/* Final light-theme pass for legacy sub-pages that still inherited navy cards. */
body:not(.auth-mode) .store-form,
body:not(.auth-mode) .store-list-panel,
body:not(.auth-mode) .store-row,
body:not(.auth-mode) #manageDialog,
body:not(.auth-mode) #manageDialog .user-row,
body:not(.auth-mode) #manageDialog .perm-row,
body:not(.auth-mode) #manageDialog .password-box{background:#fff!important;border-color:#dfe8e4!important;color:#173d3b!important;box-shadow:0 7px 18px rgba(26,69,67,.045)!important}
body:not(.auth-mode) .store-row b,
body:not(.auth-mode) #manageDialog h2,
body:not(.auth-mode) #manageDialog h3,
body:not(.auth-mode) #manageDialog .user-row b,
body:not(.auth-mode) #manageDialog .perm-row span{color:#173d3b!important}
body:not(.auth-mode) .store-row small,
body:not(.auth-mode) #manageDialog .muted{color:#718482!important}
body:not(.auth-mode) .store-row .active-badge{color:#216b67!important;border-color:#8dc1ab!important;background:#edf6f1!important}
body:not(.auth-mode) #manageDialog::backdrop{background:rgba(23,61,59,.22)!important}
body:not(.auth-mode) #manageDialog select{background:#fff!important;border-color:#cfe1d9!important;color:#173d3b!important}
body:not(.auth-mode) .erp-sidebar{background:#173d3b!important;color:#edf6f2!important}
body:not(.auth-mode) .erp-sidebar .side-item{background:transparent!important;color:#c6dcd4!important}
body:not(.auth-mode) .erp-sidebar .side-item.active{background:#f3f6f4!important;color:#173d3b!important}
body:not(.auth-mode) .erp-nav-item[data-erp-route="channel"]{display:none!important}
body:not(.auth-mode) #databaseView .image-library-upload{display:none!important}

/* Selected direction 2: international editorial operations console. */
body:not(.auth-mode){--option2-ink:#173d3b;--option2-rail:#174d49;--option2-bg:#f5f7f5;--option2-line:#dfe8e4;--option2-muted:#718482;--option2-accent:#216b67}
body:not(.auth-mode)>header{height:64px!important;padding:0 24px!important;background:#fff!important;border-bottom:1px solid var(--option2-line)!important;box-shadow:0 2px 14px rgba(23,61,59,.05)!important}
body:not(.auth-mode) #appView{grid-template-columns:212px minmax(0,1fr)!important;background:var(--option2-bg)!important}
body:not(.auth-mode) .content{padding:24px 28px 36px!important;background:var(--option2-bg)!important}
body:not(.auth-mode) .erp-sidebar{top:64px!important;height:calc(100vh - 64px)!important;padding:18px 12px!important;background:var(--option2-rail)!important;border-right:0!important;box-shadow:none!important}
body:not(.auth-mode) .erp-brand{padding:5px 8px 18px!important;margin-bottom:10px!important;border-bottom-color:rgba(255,255,255,.16)!important}
body:not(.auth-mode) .erp-brand-mark{background:#72b69b!important;color:var(--option2-rail)!important}
body:not(.auth-mode) .erp-brand b{color:#fff!important}.erp-brand small{color:#acd0c2!important}
body:not(.auth-mode) .erp-nav-group{gap:1px!important;padding:4px 0!important}
body:not(.auth-mode) .erp-nav-group>span{padding:8px 10px 4px!important;color:#9bc0b2!important;font-size:11px!important;letter-spacing:.08em!important}
body:not(.auth-mode) .erp-sidebar .side-item{min-height:36px!important;padding:8px 10px!important;border:0!important;border-radius:8px!important;color:#d0e3dc!important;font-size:13px!important;font-weight:700!important;box-shadow:none!important}
body:not(.auth-mode) .erp-sidebar .side-item i{color:#a5c8bb!important}
body:not(.auth-mode) .erp-sidebar .side-item:hover{background:rgba(255,255,255,.10)!important;color:#fff!important}
body:not(.auth-mode) .erp-sidebar .side-item.active{background:#f5f7f5!important;color:var(--option2-ink)!important}
body:not(.auth-mode) .erp-sidebar .side-item.active i{color:var(--option2-accent)!important}
body:not(.auth-mode) .panel,body:not(.auth-mode) .hero,body:not(.auth-mode) .module-page,body:not(.auth-mode) .database-card{border-color:var(--option2-line)!important;background:#fff!important;border-radius:12px!important;box-shadow:0 5px 18px rgba(23,61,59,.045)!important}
body:not(.auth-mode) .module-page{padding:22px!important}
body:not(.auth-mode) .module-head{padding-bottom:14px!important;border-bottom:1px solid #e8efec!important}
body:not(.auth-mode) .module-head h2,body:not(.auth-mode) .section-head h2,body:not(.auth-mode) .hero h2{color:var(--option2-ink)!important}
body:not(.auth-mode) .module-head p,body:not(.auth-mode) .muted{color:var(--option2-muted)!important}
body:not(.auth-mode) .module-grid{gap:12px!important}
body:not(.auth-mode) .module-grid a{min-height:104px!important;padding:16px!important;border-color:var(--option2-line)!important;background:#fff!important;border-radius:10px!important;color:var(--option2-ink)!important;box-shadow:none!important}
body:not(.auth-mode) .module-grid a:hover{border-color:#9ac9b7!important;box-shadow:0 8px 18px rgba(33,107,103,.10)!important}
body:not(.auth-mode) .module-grid i{background:#eff7f2!important;color:var(--option2-accent)!important;border-color:#cfe3d9!important}
body:not(.auth-mode) #homeView.home-page{padding:0!important;background:var(--option2-bg)!important}
body:not(.auth-mode) #homeView .cockpit-shell{max-width:1600px!important}
body:not(.auth-mode) #homeView .cockpit-head{padding:0 0 16px!important;margin-bottom:14px!important;border-bottom:1px solid var(--option2-line)!important}
body:not(.auth-mode) #homeView .cockpit-head h1{font-size:25px!important;color:var(--option2-ink)!important;letter-spacing:-.02em!important}
body:not(.auth-mode) #homeView .cockpit-head p{color:var(--option2-muted)!important}
body:not(.auth-mode) #homeView .cockpit-api-strip{min-height:42px!important;margin-bottom:12px!important;padding:7px 12px!important;border:1px solid var(--option2-line)!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important}
body:not(.auth-mode) #homeView .cockpit-kpis{grid-template-columns:repeat(5,minmax(0,1fr))!important;margin-bottom:12px!important;border:1px solid var(--option2-line)!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important}
body:not(.auth-mode) #homeView .cockpit-kpis article{min-height:84px!important;padding:13px 15px!important;border:0!important;border-left:1px solid #e8efec!important;border-radius:0!important;box-shadow:none!important;background:#fff!important}
body:not(.auth-mode) #homeView .cockpit-kpis article:first-child{border-left:0!important}
body:not(.auth-mode) #homeView .cockpit-kpis b{font-size:22px!important;color:var(--option2-ink)!important}
body:not(.auth-mode) #homeView .cockpit-kpis small,body:not(.auth-mode) #homeView .cockpit-kpis span{color:var(--option2-muted)!important}
body:not(.auth-mode) #homeView .cockpit-primary-grid{grid-template-columns:minmax(0,1.4fr) minmax(360px,.9fr)!important;gap:12px!important;margin-bottom:12px!important}
body:not(.auth-mode) #homeView .cockpit-panel{border-color:var(--option2-line)!important;border-radius:12px!important;background:#fff!important;box-shadow:0 5px 18px rgba(23,61,59,.045)!important}
body:not(.auth-mode) #homeView .cockpit-panel-head{min-height:50px!important;padding:12px 15px!important;border-bottom:1px solid #e8efec!important;background:#fff!important}
body:not(.auth-mode) #homeView .cockpit-panel-head>div>span{color:var(--option2-ink)!important;font-size:14px!important}
body:not(.auth-mode) #homeView .cockpit-panel-head>div>small{color:var(--option2-muted)!important}
body:not(.auth-mode) #homeView .cockpit-sales-chart{height:150px!important;background:#fff!important;border-color:#e4ece8!important}
body:not(.auth-mode) #homeView .cockpit-sales-chart:before{background:repeating-linear-gradient(to bottom,transparent 0,transparent 36px,#edf2ef 37px)!important}
body:not(.auth-mode) #homeView .cockpit-sales-axis{color:#8b9a95!important}
body:not(.auth-mode) #homeView .cockpit-sales-legend{display:flex;flex-wrap:wrap;gap:7px 12px;padding:8px 0 2px;color:#60756e;font-size:11px}
body:not(.auth-mode) #homeView .cockpit-sales-legend span{display:inline-flex;align-items:center;gap:5px}
body:not(.auth-mode) #homeView .cockpit-sales-legend i{width:8px;height:8px;border-radius:50%;display:inline-block}
body:not(.auth-mode) #homeView .cockpit-bottom-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
body:not(.auth-mode) #homeView .cockpit-ranking li{border-color:#e8efec!important}
body:not(.auth-mode) #homeView .cockpit-ranking strong{color:#25433e!important}
body:not(.auth-mode) #homeView .cockpit-ranking small{color:var(--option2-muted)!important}
body:not(.auth-mode) #homeView .cockpit-alerts .cockpit-alert{border-color:#e1ebe6!important;background:#fbfdfc!important}
body:not(.auth-mode) #workspace>.hero{border-radius:12px!important;background:#fff!important}
body:not(.auth-mode) #workspace>.panel{border-radius:12px!important;background:#fff!important}
body:not(.auth-mode) #workspace .sheet-toolbar{background:#f8faf9!important;border-color:#e4ece8!important}
body:not(.auth-mode) #workspace .table-wrap{border-color:#e2ebe7!important}
body:not(.auth-mode) #workspace th{background:#eef5f1!important;color:#31534d!important}
body:not(.auth-mode) #workspace td{background:#fff!important;color:#25433e!important}
@media(max-width:1100px){body:not(.auth-mode) #appView{grid-template-columns:196px minmax(0,1fr)!important}body:not(.auth-mode) .content{padding:20px!important}}
@media(max-width:850px){body:not(.auth-mode) #appView{display:block!important}body:not(.auth-mode) .erp-sidebar{height:auto!important;position:static!important}body:not(.auth-mode) .content{padding:16px 12px!important}body:not(.auth-mode) #homeView .cockpit-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}body:not(.auth-mode) #homeView .cockpit-primary-grid,body:not(.auth-mode) #homeView .cockpit-bottom-grid{grid-template-columns:1fr!important}}

@media(max-width:1250px){body:not(.auth-mode) .cockpit-primary-grid{grid-template-columns:1fr}body:not(.auth-mode) .cockpit-stores-panel .cockpit-store-groups{max-height:none}body:not(.auth-mode) #workspace .order-formula-grid{grid-template-columns:repeat(3,minmax(180px,1fr))}}
@media(max-width:900px){body:not(.auth-mode) #homeView.home-page{padding:16px!important}body:not(.auth-mode) .cockpit-head{grid-template-columns:1fr;align-items:start}.cockpit-head-actions{justify-content:space-between}body:not(.auth-mode) .cockpit-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}body:not(.auth-mode) .cockpit-kpis article:nth-child(3){border-left:0;border-top:1px solid #e7efeb}body:not(.auth-mode) .cockpit-kpis article:nth-child(n+4){border-top:1px solid #e7efeb}body:not(.auth-mode) .cockpit-bottom-grid{grid-template-columns:1fr}body:not(.auth-mode) .cockpit-store-group{grid-template-columns:1fr;gap:6px}body:not(.auth-mode) #workspace .order-formula-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}}
@media(max-width:560px){body:not(.auth-mode) .cockpit-kpis{grid-template-columns:1fr}body:not(.auth-mode) .cockpit-kpis article{border-left:0!important;border-top:1px solid #e7efeb}body:not(.auth-mode) .cockpit-kpis article:first-child{border-top:0}body:not(.auth-mode) #workspace .order-formula-grid{grid-template-columns:1fr}body:not(.auth-mode) #workspace>.hero{display:grid;align-items:start}}

/* Complete direction-2 coverage for every logged-in workspace. Keep the
   login presentation untouched and normalize older module-specific cards. */
body:not(.auth-mode) .ops-panel,
body:not(.auth-mode) .exchange-rate-manager,
body:not(.auth-mode) .wb-ads-toolbar,
body:not(.auth-mode) .wb-ads-summary,
body:not(.auth-mode) .wb-ads-advice,
body:not(.auth-mode) .wb-ads-campaign,
body:not(.auth-mode) .store-manager > *,
body:not(.auth-mode) .erp-module-page > *{background:#fff!important;border:1px solid var(--option2-line)!important;border-radius:12px!important;box-shadow:0 5px 18px rgba(23,61,59,.045)!important;color:var(--option2-ink)!important}
body:not(.auth-mode) .wb-ads-page,
body:not(.auth-mode) .exchange-rate-manager,
body:not(.auth-mode) .store-manager{color:var(--option2-ink)!important}
body:not(.auth-mode) .wb-ads-toolbar,
body:not(.auth-mode) .exchange-rate-actions,
body:not(.auth-mode) .exchange-rate-filter,
body:not(.auth-mode) .ozon-api-grid{background:#f8faf9!important;border-color:#e4ece8!important}
body:not(.auth-mode) .wb-ads-summary,
body:not(.auth-mode) .wb-ads-campaigns,
body:not(.auth-mode) .store-list{display:grid;gap:10px}
body:not(.auth-mode) .wb-ads-summary > *,
body:not(.auth-mode) .wb-ads-campaign,
body:not(.auth-mode) .store-row{background:#fbfdfc!important;border:1px solid #e2ebe7!important;border-radius:9px!important;color:var(--option2-ink)!important;box-shadow:none!important}
body:not(.auth-mode) .wb-ads-summary b,
body:not(.auth-mode) .store-form h2,
body:not(.auth-mode) .store-list-panel h2{color:var(--option2-ink)!important}
body:not(.auth-mode) .wb-ads-status,
body:not(.auth-mode) .wb-ads-advice,
body:not(.auth-mode) .exchange-rate-manager .muted{color:var(--option2-muted)!important}
body:not(.auth-mode) .exchange-rate-table,
body:not(.auth-mode) .wb-ads-campaigns,
body:not(.auth-mode) .store-list-panel{overflow:auto}
body:not(.auth-mode) .exchange-rate-table table,
body:not(.auth-mode) .wb-ads-campaigns table,
body:not(.auth-mode) .store-list-panel table{min-width:680px}
body:not(.auth-mode) .erp-module-page{display:grid;gap:12px}
body:not(.auth-mode) .erp-module-page .module-head{background:transparent!important;border:0!important;box-shadow:none!important;padding:0 0 4px!important}
body:not(.auth-mode) .erp-module-page .module-head h2{font-size:22px!important}
body:not(.auth-mode) .erp-module-page .module-head p{max-width:850px}
body:not(.auth-mode) .btn.danger{background:#fff1ef!important;border-color:#efc8c4!important;color:#a33e47!important;box-shadow:none!important}
body:not(.auth-mode) .btn.ghost{background:#fff!important;border-color:#cfe1d9!important;color:#216b67!important;box-shadow:none!important}
body:not(.auth-mode) .btn.secondary{background:#edf7f2!important;border-color:#cfe3d9!important;color:#216b67!important;box-shadow:none!important}
body:not(.auth-mode) .sidebar-store-lock{background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.16)!important;border-radius:10px!important;color:#d0e3dc!important}
body:not(.auth-mode) .sidebar-store-lock small{color:#a9cabe!important}
@media(max-width:850px){
  body:not(.auth-mode) .store-manager{grid-template-columns:1fr!important}
  body:not(.auth-mode) .wb-ads-toolbar,.exchange-rate-actions,.exchange-rate-filter,.ozon-api-grid{align-items:stretch!important}
}

/* Employee and permissions workspace: keep management inside the ERP shell. */
body:not(.auth-mode) .employees-page{display:grid;gap:14px}
body:not(.auth-mode) .employees-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
body:not(.auth-mode) .employees-note{padding:7px 10px;border:1px solid #cfe3d9;border-radius:999px;background:#edf7f2;color:#216b67;font-size:12px;white-space:nowrap}
body:not(.auth-mode) .employee-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body:not(.auth-mode) .employee-stats article{min-height:88px;padding:14px 16px;border:1px solid var(--option2-line);border-radius:10px;background:#fff;box-shadow:0 5px 18px rgba(23,61,59,.045)}
body:not(.auth-mode) .employee-stats span,body:not(.auth-mode) .employee-stats small{display:block;color:var(--option2-muted);font-size:12px}
body:not(.auth-mode) .employee-stats b{display:block;margin:7px 0 2px;color:var(--option2-ink);font-size:25px;line-height:1}
body:not(.auth-mode) .employees-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(360px,.8fr);gap:14px;align-items:start}
body:not(.auth-mode) .employee-directory,body:not(.auth-mode) .employee-detail{border:1px solid var(--option2-line);border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(23,61,59,.045)}
body:not(.auth-mode) .employee-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 16px;border-bottom:1px solid #e8efec}
body:not(.auth-mode) .employee-toolbar h3{margin:0;color:var(--option2-ink)}
body:not(.auth-mode) .employee-toolbar small{color:var(--option2-muted)}
body:not(.auth-mode) .employee-filters{display:flex;gap:8px;min-width:300px}
body:not(.auth-mode) .employee-filters input,body:not(.auth-mode) .employee-filters select{width:100%;min-height:36px}
body:not(.auth-mode) .employee-list{display:grid;gap:8px;padding:12px}
body:not(.auth-mode) .employee-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;padding:11px 12px;border:1px solid #e3ece8;border-radius:9px;background:#fbfdfc;color:var(--option2-ink);text-align:left;cursor:pointer}
body:not(.auth-mode) .employee-row:hover,body:not(.auth-mode) .employee-row.is-selected{border-color:#9ac9b7;background:#f0f8f4}
body:not(.auth-mode) .employee-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#dcefe5;color:#216b67;font-weight:800}
body:not(.auth-mode) .employee-row-main{display:grid;gap:3px;min-width:0}.employee-row-main b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.employee-row-main small{color:var(--option2-muted)}
body:not(.auth-mode) .employee-status{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:999px;font-size:11px;white-space:nowrap}
body:not(.auth-mode) .employee-status.active{background:#e8f5ed;color:#277555}.employee-status.pending{background:#fff5de;color:#986b1f}.employee-status.disabled{background:#fff0ee;color:#a33e47}
body:not(.auth-mode) .employee-detail{padding:18px}
body:not(.auth-mode) .employee-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:16px;border-bottom:1px solid #e8efec}
body:not(.auth-mode) .employee-detail-head h3{margin:4px 0;color:var(--option2-ink);font-size:20px}.employee-detail-head small{color:var(--option2-muted)}
body:not(.auth-mode) .employee-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 0}.employee-form-grid label{display:grid;gap:6px;color:#52736a;font-size:12px}.employee-form-grid input,.employee-form-grid select{width:100%;box-sizing:border-box;min-height:38px}
body:not(.auth-mode) .employee-permission-map{padding:13px;border:1px solid #e3ece8;border-radius:9px;background:#f8faf9}.employee-permission-map>div:first-child{display:grid;gap:3px}.employee-permission-map small{color:var(--option2-muted)}
body:not(.auth-mode) .permission-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.permission-chips span{padding:6px 9px;border:1px solid #dfe8e4;border-radius:999px;color:#82938d;font-size:11px}.permission-chips span.is-on{border-color:#b7d9c8;background:#eaf6ef;color:#216b67}
body:not(.auth-mode) .employee-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.employee-detail-actions .btn{min-height:36px}.employee-empty{padding:24px;text-align:center;color:var(--option2-muted)}
body:not(.auth-mode) .employee-module-tabs{display:flex;gap:4px;padding:4px;border:1px solid var(--option2-line);border-radius:10px;background:#eef5f1;width:max-content}
body:not(.auth-mode) .employee-module-tabs button{min-height:34px;padding:7px 14px;border:0;border-radius:7px;background:transparent;color:#52736a;font-weight:700;cursor:pointer}
body:not(.auth-mode) .employee-module-tabs button:hover,body:not(.auth-mode) .employee-module-tabs button.is-active{background:#fff;color:var(--option2-ink);box-shadow:0 2px 8px rgba(23,61,59,.08)}
body:not(.auth-mode) .audit-page .audit-toolbar{background:#f8faf9!important;border-color:#e4ece8!important;border-radius:10px!important}
body:not(.auth-mode) .audit-page .audit-table-wrap{border-color:#dfe8e4!important;border-radius:10px!important;background:#fff!important}
body:not(.auth-mode) .audit-page .audit-table-wrap th{background:#eef5f1!important;color:#31534d!important}
body:not(.auth-mode) .audit-page .audit-table-wrap td{background:#fff!important;color:#25433e!important}
@media(max-width:1050px){body:not(.auth-mode) .employees-layout{grid-template-columns:1fr}.employee-detail{order:-1}}
@media(max-width:700px){body:not(.auth-mode) .employee-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.employees-head,.employee-toolbar{display:grid}.employee-filters{min-width:0;width:100%}.employee-form-grid{grid-template-columns:1fr}.employee-row{grid-template-columns:30px minmax(0,1fr);}.employee-row .employee-status{grid-column:2;justify-self:start}}

/* Highest-priority cleanup for legacy formula/table rules that used dark-blue
   !important declarations before the Preview 1 layout pass. */
body:not(.auth-mode) #workspace .formula-lock-panel,
body:not(.auth-mode) #workspace .order-formula-panel,
body:not(.auth-mode) #workspace .wb-direct-formula-panel{background:#f7fbf9!important;border-color:#dfe8e4!important;color:#173d3b!important}
body:not(.auth-mode) #workspace .order-formula-panel .formula-map-input,
body:not(.auth-mode) #workspace .order-formula-panel .cancel-formula-input,
body:not(.auth-mode) #workspace .wb-direct-formula-panel input,
body:not(.auth-mode) #workspace .wb-direct-profit-settings input{background:#fff!important;border-color:#cfe1d9!important;color:#173d3b!important;box-shadow:none!important}
body:not(.auth-mode) #workspace .formula-rate-grid span,
body:not(.auth-mode) #workspace .order-formula-grid span{color:#52736a!important}
body:not(.auth-mode) #sheet .column-label-row th{background:#edf6f1!important;color:#31534d!important}
body:not(.auth-mode) #sheet .sheet-select{background:#fff!important;border-color:#cfe1d9!important;color:#173d3b!important}
body:not(.auth-mode) #sheet .sheet-formula-bar,
body:not(.auth-mode) #sheet .summary-tools{background:#f7fbf9!important;border-color:#dfe8e4!important;color:#31534d!important}

.exchange-rate-filter{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}
.exchange-rate-filter label{display:inline-flex;align-items:center;gap:6px;color:#31534d}
.exchange-rate-filter input{padding:7px 9px;border:1px solid #cfe1d9;border-radius:8px;background:#fff;color:#173d3b}
.sidebar-store-lock input{display:block;width:100%;box-sizing:border-box;margin:8px 0;padding:8px 10px;border:1px solid rgba(255,255,255,.35);border-radius:8px;background:rgba(255,255,255,.96);color:#173d3b}

.audit-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:14px 0}.audit-stats article{padding:13px 15px;border:1px solid #dfe8e4;border-radius:10px;background:#fbfdfc}.audit-stats span,.audit-stats b{display:block}.audit-stats span{font-size:12px;color:#718482}.audit-stats b{margin-top:7px;font-size:22px;color:#173d3b}.audit-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:end;padding:12px;border:1px solid #dfe8e4;border-radius:10px;background:#f8faf9}.audit-toolbar label{display:grid;gap:4px;font-size:12px;color:#52736a}.audit-toolbar input,.audit-toolbar select{min-width:120px;padding:8px;border:1px solid #cfe1d9;border-radius:7px;background:#fff;color:#173d3b}.audit-toolbar .audit-keyword{flex:1;min-width:180px}.audit-table-wrap{margin-top:14px;overflow:auto;border:1px solid #dfe8e4;border-radius:10px;background:#fff}.audit-table-wrap table{width:100%;min-width:980px;border-collapse:collapse;font-size:12px}.audit-table-wrap th,.audit-table-wrap td{padding:10px;border-bottom:1px solid #e8efec;text-align:left;vertical-align:top}.audit-table-wrap th{background:#eef5f1;color:#31534d}.audit-table-wrap td small{display:block;margin-top:3px;color:#718482}.audit-value{max-width:180px;word-break:break-word;color:#52736a}.audit-action{display:inline-block;padding:3px 7px;border-radius:999px;background:#edf7f2;color:#216b67}.audit-high{background:#fff0ef;color:#a33e47}.audit-medium{background:#fff8e8;color:#9b6b12}.audit-pager{display:flex;justify-content:center;align-items:center;gap:12px;padding:14px}.audit-pager span{color:#718482}@media(max-width:850px){.audit-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.audit-toolbar label{flex:1}.audit-toolbar .audit-keyword{min-width:100%}}
.profit-summary{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:14px;margin:16px 0}.profit-summary article{border:1px solid #cfe2dc;border-radius:14px;background:#f7fcfa;padding:18px 22px}.profit-summary span{display:block;color:#718482;font-size:13px}.profit-summary b{display:block;margin-top:8px;color:#173d3b;font-size:25px}.profit-summary small{grid-column:1/-1;color:#718482}@media(max-width:760px){.profit-summary{grid-template-columns:1fr}.profit-summary small{grid-column:auto}}

/* Phase 2 shell polish. Visual-only: no grid sizing, data attributes, or
   collaboration controls are changed here. Keep effects cheap for large ERP tables. */
body:not(.auth-mode){--shell-ink:#173d3b;--shell-muted:#718482;--shell-line:#dfe8e4;--shell-accent:#216b67;--shell-soft:#f7fbf9}
body:not(.auth-mode) header{backdrop-filter:none!important}
body:not(.auth-mode) .content{padding-top:20px!important}
body:not(.auth-mode) .page-nav-actions{min-height:24px;margin-bottom:8px}
body:not(.auth-mode) .page-back{border:1px solid var(--shell-line);border-radius:7px;background:#fff;color:var(--shell-accent);font-weight:700}
body:not(.auth-mode) .page-back:hover{border-color:#a9cdbd;background:#f1f8f4}
body:not(.auth-mode) .erp-nav-group{margin-top:5px!important}
body:not(.auth-mode) .erp-nav-group>span{font-weight:800;text-transform:none}
body:not(.auth-mode) .erp-sidebar .side-item{position:relative;transition:background-color .12s ease,color .12s ease}
body:not(.auth-mode) .erp-sidebar .side-item.active:before{content:"";position:absolute;left:-12px;top:7px;bottom:7px;width:3px;border-radius:0 3px 3px 0;background:#72b69b}
body:not(.auth-mode) .erp-context{margin:0 0 12px;padding:9px 12px;border:1px solid var(--shell-line);border-radius:8px;background:#fff;color:var(--shell-muted);font-size:12px}
body:not(.auth-mode) .module-head h2{letter-spacing:-.02em}
body:not(.auth-mode) .module-head p{line-height:1.5}
body:not(.auth-mode) #workspace>.hero{padding:18px 20px!important;margin-bottom:12px!important}
body:not(.auth-mode) #workspace .sheet-toolbar{gap:6px!important;padding:8px!important;border-radius:9px!important}
body:not(.auth-mode) #workspace .sheet-toolbar input,body:not(.auth-mode) #workspace .sheet-toolbar select{min-height:34px;border-color:#cfe1d9;color:var(--shell-ink)}
body:not(.auth-mode) #workspace .sheet-toolbar .btn{min-height:34px;padding:7px 10px}
body:not(.auth-mode) #workspace .sheet-formula-bar{box-shadow:none!important}
body:not(.auth-mode) #workspace .table-wrap{box-shadow:0 2px 10px rgba(23,61,59,.035)!important}
body:not(.auth-mode) #workspace th{font-weight:800}
body:not(.auth-mode) #workspace td:focus{outline:2px solid #74b7a0;outline-offset:-2px}
body:not(.auth-mode) .btn:focus-visible,body:not(.auth-mode) .side-item:focus-visible,body:not(.auth-mode) input:focus-visible,body:not(.auth-mode) select:focus-visible{outline:2px solid #74b7a0;outline-offset:2px}
body:not(.auth-mode) .home-dock{backdrop-filter:none!important;box-shadow:0 5px 18px rgba(23,61,59,.06)!important}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
@media(max-width:700px){body:not(.auth-mode) .erp-sidebar .side-item.active:before{display:none}body:not(.auth-mode) .page-nav-actions{margin-bottom:4px}}

/* Phase 3: final visible ERP shell. CSS-only; data, grid behavior and APIs
   remain untouched. Keep the visual system restrained and inexpensive. */
body:not(.auth-mode){--erp-ink:#123b39;--erp-rail:#103f3c;--erp-bg:#eef4f1;--erp-panel:#fff;--erp-line:#d5e4de;--erp-accent:#23806f!important;background:var(--erp-bg)!important}
body:not(.auth-mode)>header{height:68px!important;padding:0 28px!important;background:#123b39!important;border-bottom:0!important;box-shadow:0 3px 14px rgba(16,63,60,.16)!important}
body:not(.auth-mode)>header .brand-lockup{opacity:.96}
body:not(.auth-mode)>header #userBadge{color:#d7eee5!important}
body:not(.auth-mode)>header .btn.ghost{background:rgba(255,255,255,.12)!important;border-color:rgba(255,255,255,.22)!important;color:#fff!important}
body:not(.auth-mode) #appView{grid-template-columns:244px minmax(0,1fr)!important;gap:0!important;background:var(--erp-bg)!important}
body:not(.auth-mode) .erp-sidebar{top:68px!important;height:calc(100vh - 68px)!important;padding:20px 14px!important;background:var(--erp-rail)!important;border-radius:0!important;box-shadow:4px 0 18px rgba(16,63,60,.08)!important}
body:not(.auth-mode) .erp-brand{padding:5px 9px 20px!important;margin-bottom:14px!important}
body:not(.auth-mode) .erp-brand-mark{width:34px!important;height:34px!important;border-radius:10px!important;background:#8bd0ac!important;color:#103f3c!important}
body:not(.auth-mode) .erp-brand b{font-size:14px!important;letter-spacing:.04em!important}
body:not(.auth-mode) .erp-brand small{font-size:10px!important;letter-spacing:.16em!important}
body:not(.auth-mode) .erp-nav-group{padding:6px 0 9px!important;margin:0!important}
body:not(.auth-mode) .erp-nav-group>span{padding:7px 10px 5px!important;color:#8fc7b4!important;font-size:10px!important;letter-spacing:.12em!important}
body:not(.auth-mode) .erp-sidebar .side-item{min-height:39px!important;margin:2px 0!important;padding:9px 11px!important;border-radius:9px!important;color:#d6e9e1!important;font-size:13px!important;font-weight:700!important}
body:not(.auth-mode) .erp-sidebar .side-item i{width:22px!important;color:#9ed0bd!important}
body:not(.auth-mode) .erp-sidebar .side-item:hover{background:rgba(139,208,172,.14)!important;color:#fff!important}
body:not(.auth-mode) .erp-sidebar .side-item.active{background:#f6fbf8!important;color:#123b39!important;box-shadow:0 3px 10px rgba(0,0,0,.09)!important}
body:not(.auth-mode) .erp-sidebar .side-item.active i{color:#23806f!important}
body:not(.auth-mode) .sidebar-store-lock{margin-top:12px!important}
body:not(.auth-mode) .sidebar-security{border-color:rgba(255,255,255,.14)!important;color:#cce5dc!important}
body:not(.auth-mode) .content{min-width:0!important;padding:26px 30px 42px!important;background:var(--erp-bg)!important}
body:not(.auth-mode) #homeView.home-page{min-height:calc(100vh - 120px)!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}
body:not(.auth-mode) #homeView .cockpit-shell{max-width:none!important}
body:not(.auth-mode) #homeView .cockpit-head{padding:3px 0 19px!important;margin-bottom:16px!important;border-bottom:1px solid var(--erp-line)!important}
body:not(.auth-mode) #homeView .cockpit-head h1{font-size:28px!important;letter-spacing:-.04em!important;color:var(--erp-ink)!important}
body:not(.auth-mode) #homeView .cockpit-head p{font-size:13px!important;color:#708781!important}
body:not(.auth-mode) #homeView .cockpit-refresh{background:#23806f!important;color:#fff!important;border-color:#23806f!important;box-shadow:0 4px 10px rgba(35,128,111,.18)!important}
body:not(.auth-mode) #homeView .cockpit-api-strip{border-color:var(--erp-line)!important;border-radius:11px!important;background:#fff!important;box-shadow:none!important}
body:not(.auth-mode) #homeView .cockpit-kpis{border-color:var(--erp-line)!important;border-radius:13px!important;background:#fff!important;box-shadow:0 4px 16px rgba(16,63,60,.045)!important}
body:not(.auth-mode) #homeView .cockpit-kpis article{min-height:94px!important;padding:16px 18px!important}
body:not(.auth-mode) #homeView .cockpit-kpis b{font-size:25px!important;color:var(--erp-ink)!important}
body:not(.auth-mode) #homeView .cockpit-panel{border-color:var(--erp-line)!important;border-radius:13px!important;box-shadow:0 4px 16px rgba(16,63,60,.045)!important}
body:not(.auth-mode) #homeView .cockpit-panel-head{padding:14px 17px!important}
body:not(.auth-mode) .module-page,body:not(.auth-mode) .erp-module-page{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
body:not(.auth-mode) .module-page>.module-head,body:not(.auth-mode) .erp-module-page>.module-head{padding:3px 0 16px!important;margin-bottom:14px!important;border-bottom:1px solid var(--erp-line)!important}
body:not(.auth-mode) .module-page>.panel,body:not(.auth-mode) .erp-module-page>.panel,body:not(.auth-mode) .erp-module-page>section{border-color:var(--erp-line)!important;border-radius:13px!important;background:#fff!important;box-shadow:0 4px 16px rgba(16,63,60,.045)!important}
body:not(.auth-mode) #workspace>.hero,body:not(.auth-mode) #workspace>.panel{border-color:var(--erp-line)!important;border-radius:13px!important;box-shadow:0 4px 16px rgba(16,63,60,.045)!important}
body:not(.auth-mode) #workspace .sheet-toolbar{border:1px solid var(--erp-line)!important;background:#f8fcfa!important;border-radius:10px!important;padding:9px!important}
body:not(.auth-mode) #workspace .table-wrap{border-color:#cddfd8!important;border-radius:11px!important;box-shadow:0 4px 16px rgba(16,63,60,.04)!important}
body:not(.auth-mode) #workspace th{background:#e5f2ec!important;color:#1b5148!important;border-color:#cddfd8!important}
body:not(.auth-mode) #workspace td{border-color:#dce9e4!important}
@media(max-width:850px){body:not(.auth-mode)>header{padding:0 16px!important}body:not(.auth-mode) .content{padding:18px 14px 30px!important}body:not(.auth-mode) .erp-sidebar{box-shadow:none!important}}

/* The toggle collapses the left navigation rail; the content must occupy its column. */
body:not(.auth-mode) #appView.sidebar-collapsed{grid-template-columns:minmax(0,1fr)!important}
body:not(.auth-mode) #appView.sidebar-collapsed>.erp-sidebar{display:none!important}
body:not(.auth-mode) #appView.sidebar-collapsed>.content{grid-column:1!important;padding-left:30px!important}
body:not(.auth-mode) #appView.sidebar-collapsed>.sidebar-toggle{left:0!important}
body:not(.auth-mode) .cockpit-head-actions{display:flex!important;flex-direction:column!important;align-items:flex-end!important;gap:8px!important}
body:not(.auth-mode) .erp-brand{display:block!important;height:auto!important;min-height:64px!important;padding:14px 8px 16px!important;margin:0 0 14px!important;border-bottom:1px solid rgba(255,255,255,.16)!important}
body:not(.auth-mode) .erp-brand-logo{display:block;width:176px;height:30px;background-color:transparent!important;background-image:url('/chextonveco-logo.png?v=20260814-ui-polish-v2');background-position:left center;background-size:100% auto;background-repeat:no-repeat;filter:brightness(0) invert(1);mix-blend-mode:normal;opacity:.94}
body:not(.auth-mode)>header{display:none!important}
body:not(.auth-mode) #appView{min-height:100vh!important}
@media(min-width:851px){body:not(.auth-mode) .erp-sidebar{top:0!important;height:100vh!important}}
body:not(.auth-mode) .erp-brand-logo{height:30px}

/* Phase 4: stronger information hierarchy for the operations cockpit. */
body:not(.auth-mode) .content{background:linear-gradient(180deg,#f4f8f6 0,#eef4f1 260px,#eef4f1 100%)!important}
body:not(.auth-mode) #homeView .cockpit-head{position:relative;padding:15px 20px 20px!important;border:1px solid #d3e4dc!important;border-radius:15px!important;background:linear-gradient(120deg,#fff 0%,#f4fbf7 100%)!important;box-shadow:0 6px 18px rgba(16,63,60,.055)!important}
body:not(.auth-mode) #homeView .cockpit-head:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;border-radius:15px 0 0 15px;background:#23806f}
body:not(.auth-mode) #homeView .cockpit-head h1{font-size:30px!important;margin-top:2px!important}
body:not(.auth-mode) #homeView .cockpit-kicker{color:#23806f!important;font-weight:800!important;letter-spacing:.08em!important}
body:not(.auth-mode) #homeView .cockpit-api-strip{display:flex!important;align-items:center!important;gap:18px!important;padding:9px 15px!important;background:#123b39!important;border-color:#123b39!important;color:#dff2e9!important;box-shadow:0 5px 14px rgba(16,63,60,.12)!important}
body:not(.auth-mode) #homeView .cockpit-api-strip strong{color:#fff!important;border-right:1px solid rgba(255,255,255,.22)!important;padding-right:18px!important}
body:not(.auth-mode) #homeView .cockpit-api-strip div{color:#dff2e9!important}
body:not(.auth-mode) #homeView .cockpit-api-strip small,body:not(.auth-mode) #homeView .cockpit-api-strip em{color:#a9d4c3!important}
body:not(.auth-mode) #homeView .cockpit-kpis{overflow:hidden!important;grid-template-columns:repeat(5,minmax(0,1fr))!important}
body:not(.auth-mode) #homeView .cockpit-kpis article{position:relative!important;min-height:108px!important;padding:18px 19px!important;overflow:hidden!important}
body:not(.auth-mode) #homeView .cockpit-kpis article:after{content:"";position:absolute;right:-18px;bottom:-28px;width:74px;height:74px;border-radius:50%;background:#e7f4ed;opacity:.9}
body:not(.auth-mode) #homeView .cockpit-kpis article:nth-child(2):after{background:#e8f1fb}
body:not(.auth-mode) #homeView .cockpit-kpis article:nth-child(3):after{background:#fff1d9}
body:not(.auth-mode) #homeView .cockpit-kpis article:nth-child(4):after{background:#f4eafa}
body:not(.auth-mode) #homeView .cockpit-kpis article:nth-child(5):after{background:#e8eef1}
body:not(.auth-mode) #homeView .cockpit-kpis article span,body:not(.auth-mode) #homeView .cockpit-kpis article b,body:not(.auth-mode) #homeView .cockpit-kpis article small{position:relative;z-index:1}
body:not(.auth-mode) #homeView .cockpit-kpis article span{font-weight:700!important;color:#658078!important}
body:not(.auth-mode) #homeView .cockpit-kpis article b{margin-top:8px!important;font-size:27px!important}
body:not(.auth-mode) #homeView .cockpit-panel{background:#fff!important}
body:not(.auth-mode) #homeView .cockpit-panel-head{background:#f8fcfa!important}
body:not(.auth-mode) #workspace .sheet-toolbar{position:relative!important;border:1px solid #bcd8cb!important;background:#eaf5ef!important;box-shadow:inset 0 -1px 0 rgba(35,128,111,.08)!important}
body:not(.auth-mode) #workspace .sheet-toolbar:before{content:"工作区工具";display:inline-flex;align-items:center;height:30px;padding:0 10px;border-right:1px solid #c9e0d4;color:#216b67;font-size:12px;font-weight:800;letter-spacing:.04em}
body:not(.auth-mode) #workspace .sheet-toolbar input,body:not(.auth-mode) #workspace .sheet-toolbar select{background:#fff!important;border-color:#bcd8cb!important}
body:not(.auth-mode) #workspace .table-wrap{border:2px solid #c5ddd2!important;background:#fff!important}
body:not(.auth-mode) #workspace #sheet thead th{background:#dcefe6!important;color:#174f45!important;font-size:12px!important}
body:not(.auth-mode) #workspace #sheet thead tr:first-child th{box-shadow:inset 0 -2px 0 #9acbb5!important}
body:not(.auth-mode) #workspace .summary-tools{background:#f0f8f3!important;border-top-color:#c5ddd2!important}
body:not(.auth-mode) .module-page>.module-head h2,body:not(.auth-mode) .erp-module-page>.module-head h2{font-size:26px!important}

/* OZON FBO booking is isolated by store; keep the workflow dense and explicit. */
.ozon-fbo-shell,.ozon-fbo-history{margin-top:14px;padding:18px;border:1px solid var(--erp-line);border-radius:13px;background:#fff}.ozon-fbo-toolbar,.ozon-fbo-actions,.ozon-fbo-dates,.ozon-fbo-confirm{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.ozon-fbo-toolbar label,.ozon-fbo-card>label,.ozon-fbo-dates label{display:grid;gap:6px;color:#60718a;font-size:12px}.ozon-fbo-toolbar select{min-width:300px}.ozon-fbo-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:18px 0;padding:0;list-style:none}.ozon-fbo-steps li{padding:10px;border-radius:9px;background:#f4f7fb;color:#77879c;text-align:center;font-size:12px}.ozon-fbo-steps li.is-active{background:#e8f0ff;color:#2458df;font-weight:800}.ozon-fbo-grid{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:14px}.ozon-fbo-card{padding:16px;border:1px solid var(--erp-line);border-radius:12px;background:#fbfcfe}.ozon-fbo-card h3,.ozon-fbo-history h3{margin:0 0 12px;color:#203451}.ozon-fbo-mode{display:flex;gap:14px;margin-bottom:12px}.ozon-fbo-item{display:grid;grid-template-columns:1.2fr .8fr .7fr 1.5fr auto;gap:8px;align-items:start;margin-top:9px}.ozon-fbo-item details{padding:8px;border:1px solid var(--erp-line);border-radius:8px;background:#fff}.ozon-fbo-item summary{cursor:pointer;color:#57708f;font-size:12px}.ozon-fbo-metrics{display:grid;grid-template-columns:repeat(2,minmax(80px,1fr));gap:6px;margin-top:8px}.ozon-fbo-actions{margin-top:12px}.ozon-fbo-warehouse,.ozon-fbo-slot{display:flex;gap:8px;margin-top:8px;padding:10px;border:1px solid var(--erp-line);border-radius:9px;background:#fff;cursor:pointer}.ozon-fbo-warehouse span,.ozon-fbo-slot span{display:grid;gap:3px}.ozon-fbo-warehouse small,.ozon-fbo-slot small,.ozon-fbo-warehouse em{color:#71839b;font-size:11px;font-style:normal}.ozon-fbo-warehouse.is-disabled{opacity:.55;cursor:not-allowed}.ozon-fbo-confirm{margin-top:14px;padding-top:12px;border-top:1px solid var(--erp-line)}.ozon-fbo-history>div:first-child{display:flex;align-items:center;justify-content:space-between}.ozon-fbo-history-row{display:grid;grid-template-columns:1.2fr .8fr .9fr 1.3fr;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--erp-line)}.ozon-fbo-history-row>div{display:grid;gap:4px}.ozon-fbo-history-row small{color:#75849a}.ozon-fbo-history-row .btn{justify-self:start}
@media(max-width:1200px){.ozon-fbo-grid{grid-template-columns:1fr}.ozon-fbo-item{grid-template-columns:repeat(3,1fr)}.ozon-fbo-history-row{grid-template-columns:1fr 1fr}}@media(max-width:700px){.ozon-fbo-steps{grid-template-columns:1fr}.ozon-fbo-item,.ozon-fbo-history-row{grid-template-columns:1fr}.ozon-fbo-toolbar select{min-width:0;width:100%}}
.ozon-fbo-delivery{margin:10px 0;padding:9px;border:1px solid var(--erp-line);border-radius:9px;background:#fff}.ozon-fbo-delivery summary{cursor:pointer;color:#57708f;font-size:12px}.ozon-fbo-delivery>div{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}
@media(max-width:900px){body:not(.auth-mode) #homeView .cockpit-api-strip{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}body:not(.auth-mode) #homeView .cockpit-api-strip strong{grid-column:1/-1;border-right:0!important;border-bottom:1px solid rgba(255,255,255,.22)!important;padding:0 0 6px!important}body:not(.auth-mode) #homeView .cockpit-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){body:not(.auth-mode) #workspace .sheet-toolbar:before{width:100%;border-right:0;border-bottom:1px solid #c9e0d4}body:not(.auth-mode) #homeView .cockpit-kpis{grid-template-columns:1fr!important}}

/* Phase 5: table-workspace usability pass. No data or rendering logic changed. */
body:not(.auth-mode) #workspace{display:grid!important;gap:12px!important}
body:not(.auth-mode) #workspace>.hero{position:relative!important;align-items:center!important;padding:16px 20px!important;background:linear-gradient(110deg,#fff 0%,#f5fbf8 100%)!important}
body:not(.auth-mode) #workspace>.hero h2{font-size:21px!important;color:#123b39!important}
body:not(.auth-mode) #workspace>.hero p{margin:4px 0 0!important;color:#71847e!important;font-size:12px!important}
body:not(.auth-mode) #workspace>.hero .sync-pill{font-weight:800!important;box-shadow:none!important}
body:not(.auth-mode) #workspace .sheet-toolbar{position:sticky!important;top:76px!important;z-index:10!important;display:flex!important;align-items:center!important;min-height:48px!important;margin:0!important;box-shadow:0 4px 12px rgba(16,63,60,.08)!important}
body:not(.auth-mode) #workspace .sheet-toolbar .btn{font-weight:800!important;border-radius:7px!important}
body:not(.auth-mode) #workspace .sheet-toolbar .btn:not(.danger):not(.ghost){background:#23806f!important;color:#fff!important}
body:not(.auth-mode) #workspace .sheet-toolbar .btn.ghost{background:#fff!important;color:#216b67!important}
body:not(.auth-mode) #workspace .filter-conditions{width:100%!important;padding:0 2px!important}
body:not(.auth-mode) #workspace .filter-tag{border-color:#b9daca!important;background:#f0f8f3!important;color:#216b67!important}
body:not(.auth-mode) #workspace .table-wrap{max-height:calc(100vh - 280px)!important;min-height:220px!important}
body:not(.auth-mode) #workspace #sheet td[data-r][data-c]:hover{background:#f7fcf9!important}
body:not(.auth-mode) #workspace #sheet .selected,body:not(.auth-mode) #workspace #sheet .selected-band{box-shadow:inset 0 0 0 2px #23806f!important;background:#f0faf4!important;color:#123b39!important}
body:not(.auth-mode) #workspace #sheet .formula{background:#edf3f5!important;color:#45656a!important}
body:not(.auth-mode) #workspace .summary-tools{position:sticky!important;bottom:0!important;z-index:8!important;box-shadow:0 -3px 10px rgba(16,63,60,.04)!important}
body:not(.auth-mode) #workspace .table-wrap::-webkit-scrollbar{width:10px;height:10px}
body:not(.auth-mode) #workspace .table-wrap::-webkit-scrollbar-thumb{background:#b4d3c4;border:3px solid #fff;border-radius:999px}
body:not(.auth-mode) #workspace .table-wrap::-webkit-scrollbar-track{background:#f5faf7}
@media(max-width:850px){body:not(.auth-mode) #workspace .sheet-toolbar{position:static!important}body:not(.auth-mode) #workspace .table-wrap{max-height:65vh!important}}

/* Hybrid mode: keep the existing business/reconciliation toolbar and replace
   only the table-wrap contents with the tested collaborative Univer grid. */
body:not(.auth-mode) #workspace.is-univer-workspace .sheet-toolbar{display:flex!important}
body:not(.auth-mode) #workspace.is-univer-workspace>.panel{padding:0!important}
body:not(.auth-mode) #workspace.is-univer-workspace .table-wrap{display:block!important;width:calc(100% - 28px)!important;height:calc(100vh - 190px)!important;max-height:none!important;min-height:680px!important;margin:0 14px 14px!important;border:0!important;background:#fff!important;overflow:hidden!important}
body:not(.auth-mode) #workspace.is-univer-workspace .univer-workspace-frame{display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:680px!important;border:0!important;background:#fff!important}

/* Route isolation guard: a database category and an open sheet must never be
   visible together, even while an old async sheet request is finishing. */
body:not(.auth-mode) #databaseView:not([hidden]) ~ #workspace{display:none!important}
body:not(.auth-mode) #databaseView:not([hidden]) ~ #erpModuleView,
body:not(.auth-mode) #databaseView:not([hidden]) ~ #wbAdsView{display:none!important}

/* Keep API status items in separate columns; never allow long status text to
   overlap the next platform when the dashboard is narrow. */
body:not(.auth-mode) #homeView .cockpit-api-strip{display:grid!important;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr)!important;align-items:center!important;gap:14px!important;overflow:hidden!important}
body:not(.auth-mode) #homeView .cockpit-api-strip>strong{min-width:max-content!important;white-space:nowrap!important}
body:not(.auth-mode) #homeView .cockpit-api-strip>div{display:grid!important;grid-template-columns:auto auto minmax(0,1fr)!important;align-items:center!important;gap:7px!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important}
body:not(.auth-mode) #homeView .cockpit-api-strip em,body:not(.auth-mode) #homeView .cockpit-api-strip small{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
@media(max-width:900px){body:not(.auth-mode) #homeView .cockpit-api-strip{grid-template-columns:1fr 1fr!important}body:not(.auth-mode) #homeView .cockpit-api-strip>strong{grid-column:1/-1!important}}

/* Final no-overlap rule for the API status strip. The strip is deliberately
   stacked: a little taller is safer than clipped status text. */
body:not(.auth-mode) #homeView .cockpit-api-strip{display:grid!important;grid-template-columns:1fr!important;gap:6px!important;align-items:stretch!important;min-height:0!important;padding:9px 14px!important}
body:not(.auth-mode) #homeView .cockpit-api-strip>strong{display:block!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.2)!important;padding:0 0 6px!important;line-height:1.25!important}
body:not(.auth-mode) #homeView .cockpit-api-strip>div{display:grid!important;grid-template-columns:28px 56px minmax(0,1fr) minmax(72px,auto)!important;align-items:center!important;gap:7px!important;width:100%!important;min-height:24px!important;white-space:nowrap!important}
body:not(.auth-mode) #homeView .cockpit-api-strip>div em,body:not(.auth-mode) #homeView .cockpit-api-strip>div small{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;line-height:1.3!important}
@media(max-width:560px){body:not(.auth-mode) #homeView .cockpit-api-strip>div{grid-template-columns:24px 48px minmax(0,1fr)!important}body:not(.auth-mode) #homeView .cockpit-api-strip>div small{display:none!important}}

/* The cockpit title is also a <header>, so reset the global sticky top-bar
   rules that would otherwise constrain its height and overlap its subtitle. */
body:not(.auth-mode) #homeView .cockpit-head{height:auto!important;min-height:0!important;position:relative!important;top:auto!important;z-index:auto!important;display:flex!important;backdrop-filter:none!important;overflow:visible!important}
body:not(.auth-mode) #homeView .cockpit-head>div:first-child{min-width:0!important}
body:not(.auth-mode) #homeView .cockpit-head p{position:static!important;display:block!important;line-height:1.5!important;white-space:normal!important;overflow:visible!important}
/* Module views use lightweight cards; legacy module tables are intentionally absent. */
.sticker-fee-list{display:grid;gap:10px;margin-top:16px}
.sticker-fee-row{display:grid;grid-template-columns:minmax(220px,1fr) 180px auto;gap:10px;align-items:center;padding:12px;border:1px solid var(--border,#d9e6e2);border-radius:10px;background:#fff}
.wb-ads-campaign-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;padding:12px 0}
.wb-ads-campaign-card{padding:14px;border:1px solid var(--border,#d9e6e2);border-radius:12px;background:#fff}
.wb-ads-campaign-card header,.wb-ads-card-metrics,.wb-ads-card-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.wb-ads-campaign-card header{justify-content:space-between}
.wb-ads-card-metrics{margin:12px 0}.wb-ads-card-metrics span{padding:8px;background:#f2f8f6;border-radius:8px}
.wb-ads-row-advice{padding-left:18px}.wb-ads-card-actions{margin-top:10px}
.wb-ads-product-panel{margin:14px 0;padding:0;border:1px solid #dfe8e4;border-radius:12px;background:#fff;overflow:hidden}.wb-ads-product-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 16px;cursor:pointer;list-style:none}.wb-ads-product-summary::-webkit-details-marker{display:none}.wb-ads-product-summary::after{content:'⌄';color:#17675f;font-size:18px;transition:transform .18s ease}.wb-ads-product-panel[open] .wb-ads-product-summary::after{transform:rotate(180deg)}.wb-ads-product-summary>span:first-child{display:flex;align-items:baseline;gap:10px;min-width:0}.wb-ads-product-summary b{color:#173d3b}.wb-ads-product-summary small{color:#718482;font-size:12px}.wb-ads-product-summary-meta{display:flex;align-items:center;gap:10px;font-size:11px}.wb-ads-product-summary-meta i{color:#17675f;font-style:normal}.wb-ads-product-body{padding:0 16px 16px;border-top:1px solid #edf2ef}.wb-ads-product-description{margin:12px 0;color:#718482;font-size:12px}.wb-ads-daily-spend{display:flex;gap:8px;overflow:auto;margin:14px 0;padding-bottom:3px}.wb-ads-daily-spend>div{min-width:112px;padding:9px 10px;border:1px solid #e1ece7;border-radius:9px;background:#f7fbf9}.wb-ads-daily-spend span,.wb-ads-daily-spend b{display:block}.wb-ads-daily-spend span{color:#718482;font-size:11px}.wb-ads-daily-spend b{margin-top:4px;color:#17675f;font-size:14px}.wb-ads-product-toolbar{display:flex;gap:9px;margin-bottom:10px}.wb-ads-product-toolbar input{height:34px;min-width:220px;flex:1}.wb-ads-product-toolbar select{height:34px;min-width:140px}.wb-ads-product-table-wrap{overflow:auto;border:1px solid #e1ece7;border-radius:9px}.wb-ads-product-table{width:100%;min-width:980px;border-collapse:collapse}.wb-ads-product-table th,.wb-ads-product-table td{padding:10px;border-bottom:1px solid #e8efec;text-align:left;font-size:12px;white-space:nowrap}.wb-ads-product-table th{background:#eaf4ef;color:#31534d;font-size:11px}.wb-ads-product-table tbody tr:hover td{background:#f7fbf9}.wb-ads-product-rank{width:46px;color:#17675f;font-weight:800}.wb-ads-product-ad-name{max-width:240px;overflow:hidden;text-overflow:ellipsis;color:#173d3b;font-weight:700}.wb-ads-product-id{color:#82928f;font-size:11px}.wb-ads-product-spend{color:#17675f;font-weight:800}.wb-ads-product-pager{display:flex;justify-content:flex-end;align-items:center;gap:9px;flex-wrap:wrap;padding-top:11px;color:#55706a;font-size:12px}.wb-ads-product-pager .btn{min-height:32px;padding:6px 10px}.wb-ads-product-pager select{height:32px}@media(max-width:650px){.wb-ads-product-summary{align-items:flex-start}.wb-ads-product-summary>span:first-child{display:grid;gap:3px}.wb-ads-product-summary-meta{margin-left:auto}.wb-ads-product-toolbar{flex-wrap:wrap}.wb-ads-product-toolbar input{min-width:100%;order:2}}
  /* Section switching must honor the native hidden attribute. */
  .sticker-fee-table input{width:min(100%,420px);height:36px}
  .sticker-fee-table td:last-child{width:80px}
body:not(.auth-mode) #workspace[hidden],
body:not(.auth-mode) #erpModuleView[hidden],
body:not(.auth-mode) #wbAdsView[hidden],
body:not(.auth-mode) #databaseView[hidden]{display:none!important}

/* SKU 管理：产品表与车型适配资料分栏展示，适配资料只读，不触碰业务订单数据。 */
.sku-management-grid{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(0,2fr);gap:16px;margin-top:16px;align-items:start}
.sku-source-card{max-width:none;height:100%;box-sizing:border-box}
.sku-card-kicker{margin-bottom:6px;color:#216b67;font-size:12px;font-weight:800;letter-spacing:.04em}
.sku-card-actions{margin-top:16px}
.sku-fitment-panel{min-width:0;padding:20px;border:1px solid var(--erp-line,#dfe8e4);border-radius:13px;background:#fff;box-shadow:0 4px 16px rgba(16,63,60,.045)}
.sku-fitment-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding-bottom:14px;border-bottom:1px solid #e8efec}
.sku-fitment-head h3{margin:0;color:var(--erp-ink,#173d3b);font-size:19px}
.sku-fitment-head p{margin:6px 0 0;color:var(--option2-muted,#718482);font-size:13px;line-height:1.55}
.sku-fitment-meta{display:grid;gap:4px;flex:0 0 auto;text-align:right;color:#216b67}.sku-fitment-meta small{color:#718482;font-size:11px}
.sku-fitment-toolbar{display:flex;align-items:center;gap:9px;margin:14px 0}.sku-fitment-toolbar label{color:#4a635e;font-size:12px;font-weight:750}.sku-fitment-toolbar input{min-width:240px;flex:1;height:36px}.sku-fitment-toolbar .btn{min-height:36px}
.sku-fitment-table-wrap{max-height:560px;overflow:auto;border:1px solid #dfe8e4;border-radius:10px}.sku-fitment-table{width:100%;min-width:850px;border-collapse:collapse}.sku-fitment-table th,.sku-fitment-table td{padding:10px 9px;border-bottom:1px solid #e7efeb;text-align:left;vertical-align:top;font-size:12px;line-height:1.4}.sku-fitment-table th{position:sticky;top:0;z-index:1;background:#e5f2ec;color:#31534d;font-size:11px;white-space:nowrap}.sku-fitment-table td{color:#29443f}.sku-fitment-table tbody tr:hover td{background:#f7fbf9}.sku-fitment-table td:nth-child(1){min-width:210px;font-weight:700}.sku-fitment-table td:nth-child(2){white-space:nowrap}.sku-fitment-table td:nth-child(3),.sku-fitment-table td:nth-child(4){white-space:nowrap;text-align:right}.sku-fitment-status{color:#16845b!important;font-weight:750}.sku-fitment-empty{padding:28px!important;text-align:center!important;color:#718482!important}
@media(max-width:900px){.sku-management-grid{grid-template-columns:1fr}.sku-fitment-head{display:grid}.sku-fitment-meta{text-align:left}.sku-fitment-toolbar{flex-wrap:wrap}.sku-fitment-toolbar input{min-width:180px;width:100%;order:3}}

/* SKU 管理入口保持与产品 SKU 查询一致：两个等大的入口卡片，点击后再打开表格。 */
.sku-management-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.sku-management-grid .sku-source-card{max-width:none;min-height:250px;height:auto;box-sizing:border-box;display:flex;flex-direction:column}
.sku-management-grid .sku-card-actions{margin-top:auto}
.sku-fitment-workspace{padding:18px;border:1px solid var(--erp-line,#dfe8e4);border-radius:13px;background:#fff;box-shadow:0 4px 16px rgba(16,63,60,.045)}
.sku-fitment-workspace .sku-fitment-toolbar{margin-top:0}
.sku-fitment-workspace .sku-fitment-toolbar>b{margin-left:auto;color:#216b67;font-size:13px}
.sku-fitment-back{margin-bottom:12px}
@media(max-width:900px){.sku-management-grid{grid-template-columns:1fr}.sku-management-grid .sku-source-card{min-height:210px}}
.sku-fitment-table input.sku-fitment-cell{box-sizing:border-box;width:100%;min-width:82px;height:32px;padding:5px 7px;border:1px solid #dfe8e4;border-radius:7px;background:#fff;color:#29443f;font-size:12px}.sku-fitment-table td:first-child input{min-width:210px}.sku-fitment-table td:last-child{width:64px;white-space:nowrap}.sku-fitment-table .sku-fitment-delete{min-height:30px;padding:5px 8px;font-size:12px}.sku-fitment-status-line{min-height:20px;margin:0 0 10px;color:#216b67;font-size:13px}.sku-fitment-workspace .sku-fitment-table-wrap{max-height:620px}

#workspace.is-document-loading{position:relative;min-height:360px;cursor:progress}
#workspace.is-document-loading::after{content:attr(data-loading-label);position:absolute;inset:0;z-index:1000;display:flex;align-items:flex-start;justify-content:center;box-sizing:border-box;padding-top:150px;background:rgba(244,249,247,.92);color:#173d3b;font-weight:800;pointer-events:none}

/* SKU 管理：模块容器保持内容驱动，避免整屏最小高度把入口卡片推到下方。 */
body:not(.auth-mode) #erpModuleView{align-content:start}
body:not(.auth-mode) #erpModuleView .sku-management-grid{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);align-items:stretch;margin-top:0}
body:not(.auth-mode) #erpModuleView .sku-management-grid .sku-source-card{min-height:180px;height:auto;padding:20px;box-sizing:border-box}
body:not(.auth-mode) #erpModuleView .sku-management-grid .sku-card-actions{margin-top:18px}
@media(max-width:900px){body:not(.auth-mode) #erpModuleView .sku-management-grid{grid-template-columns:1fr}body:not(.auth-mode) #erpModuleView .sku-management-grid .sku-source-card{min-height:170px}}

.inventory-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.inventory-scope{max-width:360px;padding:9px 12px;border:1px solid #cfe2dc;border-radius:999px;background:#f3faf7;color:#2e675a;font-size:12px;font-weight:700;text-align:center}.inventory-metrics{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;margin:18px 0}.inventory-metrics article{padding:16px 18px;border:1px solid #dce8e4;border-radius:13px;background:#fff}.inventory-metrics span,.inventory-metrics small{display:block;color:#718482;font-size:12px}.inventory-metrics b{display:block;margin:6px 0;color:#173d3b;font-size:26px}.inventory-metrics .is-warning{border-color:#efc987;background:#fffaf0}.inventory-metrics .is-warning b{color:#a56500}.inventory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.inventory-panel{min-width:0;padding:18px;border:1px solid #dce8e4;border-radius:14px;background:#fff;box-shadow:0 5px 16px rgba(29,73,61,.04)}.inventory-wide{grid-column:1/-1}.inventory-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}.inventory-title h3{margin:0;color:#173d3b;font-size:16px}.inventory-title p{margin:4px 0 0;color:#718482;font-size:12px}.inventory-table-wrap{overflow:auto}.inventory-table{width:100%;border-collapse:collapse}.inventory-table th,.inventory-table td{padding:10px;border-bottom:1px solid #e8efec;text-align:left;font-size:12px}.inventory-table th{color:#718482;font-weight:700}.inventory-table td>b,.inventory-table td>small{display:block}.inventory-table td>small{margin-top:3px;color:#82918d}.inventory-table td>strong{font-size:15px}.inventory-badge{display:inline-flex;padding:4px 8px;border-radius:999px;font-weight:700}.inventory-badge.ok{background:#e9f7f0;color:#237257}.inventory-badge.warning{background:#fff1d6;color:#9a6200}.inventory-form,.inventory-allocation-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.inventory-allocation-form{grid-template-columns:repeat(4,minmax(120px,1fr)) auto auto;align-items:end}.inventory-form label,.inventory-allocation-form label{display:grid;gap:5px;color:#62756f;font-size:12px;font-weight:700}.inventory-form input,.inventory-form select,.inventory-allocation-form input,.inventory-allocation-form select{width:100%;height:38px;box-sizing:border-box}.inventory-form .btn{grid-column:1/-1}.inventory-list{display:grid;gap:8px;max-height:220px;margin-top:14px;overflow:auto}.inventory-list.horizontal{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));max-height:none}.inventory-list>div{padding:10px 12px;border:1px solid #e3ece9;border-radius:10px;background:#f9fcfb}.inventory-list span,.inventory-list small{display:block;color:#718482;font-size:11px}.inventory-list b{display:block;margin:3px 0;color:#284b43;font-size:13px}.inventory-ledger{display:grid}.inventory-ledger>div{display:grid;grid-template-columns:160px 130px 1fr 70px;gap:12px;padding:10px 2px;border-bottom:1px solid #e8efec;align-items:center;font-size:12px}.inventory-ledger time{color:#718482}.inventory-ledger strong{text-align:right;color:#24775c}.inventory-ledger strong.negative{color:#b24b42}.inventory-empty{margin:0;padding:18px!important;color:#82918d;text-align:center}.inventory-status{position:sticky;bottom:12px;min-height:20px;margin:12px 0 0;color:#315f54;font-size:13px;font-weight:700}
.inventory-channel-health{display:flex;align-items:center;gap:14px;margin-top:16px;padding:10px 14px;border:1px solid #d8e8e3;border-radius:10px;background:#f7fbf9;color:#466a61;font-size:12px}.inventory-channel-health span{display:flex;align-items:center;gap:7px;font-weight:700}.inventory-channel-health i{width:8px;height:8px;border-radius:50%;background:#2ba678}.inventory-channel-health i.danger{background:#cf5148}.inventory-channel-health b{color:#173d3b}.inventory-channel-health small{margin-left:auto;color:#718482}.inventory-control{margin-bottom:14px}.inventory-actions{display:flex;gap:8px;flex-wrap:wrap}.inventory-platform-table{min-width:1050px}.inventory-platform-table tr.is-disabled{opacity:.58}.inventory-platform-table input[type=checkbox]{width:16px;height:16px}.inventory-platform-table .inventory-target{width:88px;height:34px}.inventory-badge.muted{background:#edf2f0;color:#6f7e79}.inventory-badge.pending{background:#e8f1ff;color:#3569a8}.inventory-badge.danger{background:#fdebea;color:#ad3f38}.inventory-rules{display:grid;gap:10px;margin:0;padding-left:20px;color:#526b65;font-size:13px;line-height:1.6}
@media(max-width:900px){.inventory-head{display:block}.inventory-scope{display:inline-block;margin-top:12px}.inventory-metrics{grid-template-columns:repeat(2,1fr)}.inventory-grid{grid-template-columns:1fr}.inventory-wide{grid-column:auto}.inventory-allocation-form{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-ledger>div{grid-template-columns:1fr auto}.inventory-ledger span{grid-column:1/-1}.inventory-ledger time{order:3}.inventory-ledger strong{order:4}}
@media(max-width:560px){.inventory-metrics,.inventory-form,.inventory-allocation-form{grid-template-columns:1fr}.inventory-form .btn{grid-column:auto}.inventory-panel{padding:14px}.inventory-channel-health{align-items:flex-start;flex-direction:column;gap:6px}.inventory-channel-health small{margin-left:0}.inventory-title{align-items:flex-start;flex-direction:column}.inventory-actions{width:100%}.inventory-actions .btn{flex:1}}

.sales-analysis-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.sales-analysis-head>div{min-width:0}
.sales-analysis-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:18px 0 9px;padding:12px;border:1px solid #dfe8e4;border-radius:11px;background:#fff}.sales-analysis-toolbar select,.sales-analysis-toolbar input{height:36px;min-width:150px}.sales-analysis-toolbar input{min-width:220px;flex:1}.sales-analysis-period{display:flex;border:1px solid #cfe0da;border-radius:8px;overflow:hidden}.sales-analysis-period button{height:34px;padding:0 14px;border:0;border-right:1px solid #dfe8e4;background:#f7fbf9;color:#55706a;font-weight:750;cursor:pointer}.sales-analysis-period button:last-child{border-right:0}.sales-analysis-period button.is-active{background:#17675f;color:#fff}
.sales-analysis-range{color:#718482;font-size:12px;margin:7px 2px 10px}.sales-analysis-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.sales-analysis-summary article{display:grid;gap:5px;padding:12px 14px;border:1px solid #dfe8e4;border-radius:10px;background:#fff}.sales-analysis-summary small{color:#718482;font-size:12px}.sales-analysis-summary b{color:#173d3b;font-size:20px}.sales-analysis-table-wrap{overflow:auto;border:1px solid #dfe8e4;border-radius:11px;background:#fff}.sales-analysis-table{width:100%;min-width:1060px;border-collapse:collapse}.sales-analysis-table th,.sales-analysis-table td{padding:11px 12px;border-bottom:1px solid #e8efec;text-align:left;vertical-align:middle;font-size:12px;white-space:nowrap}.sales-analysis-table th{position:sticky;top:0;z-index:1;background:#e5f2ec;color:#31534d;font-size:11px}.sales-analysis-table tbody tr:hover td{background:#f7fbf9}.sales-analysis-table td:first-child{min-width:150px}.sales-analysis-table td:first-child b,.sales-analysis-table td:first-child small{display:block}.sales-analysis-category{margin-top:4px;color:#718482;font-size:11px}.sales-analysis-sku{font-weight:750;color:#173d3b}.sales-analysis-money,.sales-analysis-qty{font-weight:800;color:#173d3b}.sales-analysis-change.is-up{color:#16845b}.sales-analysis-change.is-down{color:#c2554c}.sales-analysis-na{color:#a3b2ae}.sales-analysis-advice small{display:block;margin-top:3px;color:#718482;font-size:10px}.sales-analysis-status{display:inline-block;padding:4px 7px;border-radius:999px;font-size:11px;font-weight:800}.sales-analysis-status.is-good{background:#e7f6ed;color:#16845b}.sales-analysis-status.is-warn{background:#fff5dd;color:#a66a13}.sales-analysis-status.is-danger{background:#ffebe9;color:#b84942}.sales-analysis-empty{padding:35px!important;text-align:center!important;color:#718482!important}.sales-analysis-table.is-loading{opacity:.55}.sales-analysis-pager{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:12px 2px;color:#55706a;font-size:12px}.sales-analysis-pager .btn{min-height:32px;padding:6px 10px}.sales-analysis-pager select{height:32px}@media(max-width:900px){.sales-analysis-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-analysis-head{display:grid}.sales-analysis-toolbar input{min-width:180px;width:100%;order:5}.sales-analysis-period{width:100%}.sales-analysis-period button{flex:1;padding:0 8px}}@media(max-width:560px){.sales-analysis-summary{grid-template-columns:1fr}.sales-analysis-toolbar select{flex:1;min-width:135px}}

/* 2026-08 usability consolidation: navigation, toolbar hierarchy and mobile tables. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.mobile-nav-button,.sidebar-backdrop,.sheet-scroll-hint{display:none}
.sheet-toolbar-group{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
body:not(.auth-mode) #workspace .sheet-toolbar-danger{margin-left:auto;padding-left:9px;border-left:1px solid #c9e0d4}
body:not(.auth-mode) #workspace .sheet-toolbar-filter{flex:1 1 100%;padding-top:9px;border-top:1px solid #c9e0d4}
body:not(.auth-mode) #workspace .sheet-toolbar-sort{padding-left:9px;border-left:1px solid #c9e0d4;color:#55706a;font-size:12px;font-weight:700}
body:not(.auth-mode) #workspace .sheet-toolbar-filter #filterInput{flex:1 1 210px;min-width:160px}
body:not(.auth-mode) #workspace .sheet-toolbar-filter #filterValue{min-width:130px}
body:not(.auth-mode) #workspace .sheet-toolbar-filter #exactFilterBtn.is-active{background:#145f54!important;border-color:#145f54!important;box-shadow:inset 0 0 0 2px rgba(255,255,255,.24)!important}
body:not(.auth-mode) #workspace .sheet-toolbar :focus-visible,body:not(.auth-mode) .mobile-nav-button:focus-visible{outline:3px solid rgba(35,128,111,.28);outline-offset:2px}
body:not(.auth-mode) #homeView .cockpit-kpis small{font-size:12px;line-height:1.35;overflow-wrap:anywhere}
body:not(.auth-mode) #homeView .cockpit-kpis b{line-height:1.15;overflow-wrap:anywhere}

@media(max-width:850px){
body:not(.auth-mode){overflow-x:hidden}
body:not(.auth-mode).mobile-nav-open{overflow:hidden}
body:not(.auth-mode) #appView.sidebar-collapsed>.erp-sidebar{display:block!important}
body:not(.auth-mode) .erp-sidebar{display:block!important;position:fixed!important;inset:0 auto 0 0!important;z-index:60!important;width:min(310px,calc(100vw - 48px))!important;height:100dvh!important;padding:18px 14px 28px!important;overflow-y:auto!important;border:0!important;box-shadow:18px 0 42px rgba(7,32,30,.28)!important;transform:translateX(-105%);transition:transform .22s cubic-bezier(.2,.8,.2,1)}
body:not(.auth-mode) .erp-sidebar.is-mobile-open{transform:translateX(0)}
body:not(.auth-mode) .erp-sidebar .side-item{min-height:46px!important;margin:3px 0!important}
body:not(.auth-mode) .erp-nav{display:block!important}
body:not(.auth-mode) .erp-brand{min-height:64px!important;height:auto!important;margin-bottom:14px!important;padding:14px 8px 16px!important}
body:not(.auth-mode) .erp-brand-logo{width:176px;height:30px}
body:not(.auth-mode) .mobile-nav-button{display:inline-flex;position:fixed;left:12px;top:12px;z-index:50;align-items:center;justify-content:center;min-width:56px;height:44px;padding:0 13px;border:1px solid #bcd8cb;border-radius:10px;background:#fff;color:#174f45;box-shadow:0 6px 18px rgba(16,63,60,.14);font-weight:800}
body:not(.auth-mode) .sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:55;background:rgba(7,32,30,.52)}
body:not(.auth-mode) .content{padding-top:70px!important}
body:not(.auth-mode) #appView.sidebar-collapsed>.content{padding-left:14px!important}
body:not(.auth-mode) #workspace .sheet-toolbar{align-items:stretch!important;padding:8px!important}
body:not(.auth-mode) #workspace .sheet-toolbar:before{width:100%;height:26px;padding:0 3px;border:0;border-bottom:1px solid #c9e0d4}
body:not(.auth-mode) #workspace .sheet-toolbar-group{width:100%}
body:not(.auth-mode) #workspace .sheet-toolbar-danger{margin-left:0;padding:8px 0 0;border-left:0;border-top:1px solid #e5c9c6}
body:not(.auth-mode) #workspace .sheet-toolbar-filter{padding-top:8px}
body:not(.auth-mode) #workspace .sheet-toolbar .btn,body:not(.auth-mode) #workspace .sheet-toolbar input,body:not(.auth-mode) #workspace .sheet-toolbar select{min-height:44px}
body:not(.auth-mode) #workspace .sheet-toolbar-filter #filterInput{flex-basis:100%}
body:not(.auth-mode) #workspace .sheet-toolbar-filter #filterValue{flex:1 1 150px}
body:not(.auth-mode) #workspace .sheet-scroll-hint{display:block;margin:8px 2px 6px;color:#607d75;font-size:12px;font-weight:700;text-align:right}
body:not(.auth-mode) #workspace .sheet-pager{justify-content:flex-start;gap:8px;padding:10px 6px}
body:not(.auth-mode) #workspace .sheet-pager .btn,body:not(.auth-mode) #workspace .sheet-pager input,body:not(.auth-mode) #workspace .sheet-pager select{min-height:44px}
body:not(.auth-mode) #homeView .cockpit-head{padding:14px!important}
body:not(.auth-mode) #homeView .cockpit-head-actions{align-items:stretch!important;width:100%}
}

.stock-batch-extra-column {
  display: none !important;
}
.document-backup-toolbar { margin-top: 14px; }
#documentBackupPanel > summary { cursor: pointer; color: var(--ink, #163f3a); }
#documentBackupList:empty::after { content: '暂无独立备份'; display: block; margin-top: 12px; color: #6b7f7b; }
.inventory-allocation-warning{display:flex;gap:12px;align-items:center;margin:12px 0;padding:12px 14px;border:1px solid #efb3a7;border-left:5px solid #d94b39;border-radius:10px;background:#fff1ed;color:#8d261b}.inventory-allocation-warning span{color:#8d5148}.inventory-allocation-table td small{display:block;color:#658078;margin-top:3px}.inventory-allocation-table .is-allocation-paused td{background:#fff3ef}.inventory-allocation-table .is-allocation-paused td:first-child{border-left:4px solid #d94b39}.inventory-allocation-panel .inventory-badge.danger{background:#fbe1db;color:#962e20}.inventory-allocation-panel .inventory-badge.warning{background:#fff0c7;color:#855b05}
.inventory-allocation-row-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.inventory-allocation-row-actions .btn{font-size:12px;padding:4px 8px}.inventory-allocation-table td:last-child{min-width:170px}
