:root{--ink:#172033;--muted:#6e778a;--line:#e8eaf1;--surface:#fff;--canvas:#f5f6fa;--violet:#7059d9;--violet-dark:#5140ad;--green:#16a36a;--amber:#d98b16;--blue:#3c7fe0;--red:#d94a5a;--shadow:0 12px 36px rgba(39,43,77,.08)}

:root{--ink:#18324d;--muted:#6b7f93;--line:#dce9f5;--surface:#fff;--canvas:#f3f8fd;--violet:#4b9fe8;--violet-dark:#287bc2;--green:#2aa876;--amber:#e49a2f;--blue:#67b4f3;--red:#dc5d68;--shadow:0 12px 34px rgba(43,104,154,.09)}
*{box-sizing:border-box}
html{font-size:16px}
body{margin:0;background:var(--canvas);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;min-height:100vh}
button,input,select{font:inherit}
button{cursor:pointer}
.site-header{background:linear-gradient(118deg,#6bb7ee,#499fe0 52%,#2f82c6);color:#fff;box-shadow:0 5px 24px rgba(45,126,190,.2)}
.header-inner{max-width:1480px;margin:auto;padding:24px 30px;display:flex;justify-content:space-between;align-items:center;gap:24px}
.brand-row,.header-meta{display:flex;align-items:center;gap:14px}
.brand-row h1{font-size:22px;margin:2px 0 0}
.header-meta{font-size:13px;flex-wrap:wrap;justify-content:flex-end;color:rgba(255,255,255,.88)}
.header-meta form{margin:0}
.brand-mark{width:58px;height:58px;border-radius:18px;background:linear-gradient(145deg,#806ee6,#5743ba);display:grid;place-items:center;color:#fff;font-weight:800;letter-spacing:-1px;box-shadow:0 12px 26px rgba(62,45,153,.28)}
.brand-mark.small{width:44px;height:44px;border-radius:13px;background:rgba(255,255,255,.16);box-shadow:none;border:1px solid rgba(255,255,255,.2)}
.eyebrow{font-size:10px;letter-spacing:.18em;font-weight:800;color:var(--violet);margin:0;text-transform:uppercase}
.eyebrow.light{color:rgba(255,255,255,.7)}
.page-shell{max-width:1480px;margin:auto;padding:22px 30px 60px}
.tabs{display:flex;gap:6px;padding:6px;background:#fff;border-radius:14px;box-shadow:0 3px 16px rgba(52,56,91,.05);overflow-x:auto}
.tab{border:0;background:transparent;color:var(--muted);padding:11px 20px;border-radius:10px;white-space:nowrap;font-weight:650}
.tab:hover{background:#eaf5ff;color:var(--violet-dark)}
.tab.active{color:#fff;background:linear-gradient(135deg,var(--violet),var(--violet-dark));box-shadow:0 5px 14px rgba(42,128,196,.22)}
.period-slot{flex:1 1 520px;min-width:420px}
.overview-period-slot{flex-basis:430px;min-width:360px;margin-left:auto}
.period-toolbar{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:end;gap:5px 10px;padding:0;background:transparent;border:0;box-shadow:none}
.period-toolbar>div:first-child{display:grid;gap:2px;min-width:118px}
.period-toolbar>div:first-child strong{font-size:11px;color:var(--muted)}
.period-toolbar>div:first-child span,.data-time-strip{font-size:11px;color:var(--muted)}
.period-controls{display:flex;align-items:flex-end;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.period-controls label{display:grid;gap:3px;font-size:10px;color:var(--muted);font-weight:650}
.period-controls select,.period-controls input{height:32px;border:1px solid #dfe2ea;border-radius:8px;padding:5px 8px;background:#fff;color:var(--ink);min-width:112px}
.period-controls input:disabled{background:#f3f6f9;color:#9aa9b7}
.period-controls button{height:32px;padding:0 10px;font-size:11px}
.data-time-strip{grid-column:1/-1;width:100%;display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap;padding-top:3px}
.tab-panel{display:none}
.tab-panel.active{display:block;animation:fade .24s ease}
@keyframes fade{from{opacity:0;transform:translateY(5px)}
to{opacity:1;transform:none}
}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:28px 2px 18px;gap:20px}
.section-heading h2{margin:5px 0 0;font-size:24px;letter-spacing:-.02em}
.section-heading>p{margin:0;color:var(--muted);font-size:13px}
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.kpi-card{background:#fff;border-radius:16px;padding:20px 22px;border:1px solid #ececf3;box-shadow:0 6px 20px rgba(50,50,80,.045);position:relative;overflow:hidden}
.kpi-card:after{content:"";position:absolute;right:-18px;top:-24px;width:82px;height:82px;border-radius:50%;background:currentColor;opacity:.06}
.kpi-card span{font-size:12px;color:var(--muted);font-weight:650}
.kpi-card strong{display:block;font-size:30px;margin:8px 0 4px;letter-spacing:-.04em}
.kpi-card small{font-size:11px;color:#9aa1b0}
.kpi-card.violet{border-top:3px solid var(--violet);color:var(--violet)}
.kpi-card.green{border-top:3px solid var(--green);color:var(--green)}
.kpi-card.blue{border-top:3px solid var(--blue);color:var(--blue)}
.kpi-card.amber{border-top:3px solid var(--amber);color:var(--amber)}
.kpi-card strong{color:var(--ink)}
.kpi-link{cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.kpi-link:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(43,104,154,.14);border-color:#badcf5}
.kpi-link:focus-visible{outline:3px solid rgba(75,159,232,.28);outline-offset:3px}
.kpi-link small:after{content:"  →";color:currentColor;font-weight:800}
.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px;align-items:stretch}
.summary-grid,.chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.top-gap{margin-top:18px}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:20px;margin-bottom:20px;min-width:0}
.overview-panel{height:650px;margin-bottom:0;display:flex;flex-direction:column;overflow:hidden}
.overview-panel .panel-title{min-height:45px;flex:0 0 auto}
.overview-channel-panel .chart-wrap{height:270px;flex:0 0 auto}
.overview-channel-panel .platform-winners{flex:1;overflow:auto;align-content:start}
.overview-top-table{max-height:none!important;flex:1}
.panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.panel-title h3{font-size:17px;margin:5px 0 0}
.inline-select{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}
.inline-select select{height:34px;border:1px solid #dfe2ea;border-radius:8px;background:#fff;padding:0 9px;color:var(--ink)}
.chart-wrap{height:340px;min-width:0}
.product-platform-panel{margin-bottom:18px}
.product-chart-search{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.product-chart-search label{display:grid;gap:7px;font-size:12px;color:var(--muted);font-weight:650;min-width:min(420px,100%)}
.product-chart-search input{height:38px;border:1px solid #dfe2ea;border-radius:9px;padding:8px 11px;background:#fff;color:var(--ink);outline:none;width:100%}
.product-chart-search input:focus{border-color:var(--violet);box-shadow:0 0 0 3px rgba(75,159,232,.14)}
.product-chart-search .result-count{padding-bottom:10px}
.product-chart-wrap{height:380px}
.platform-winners{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}
.winner-card{border:1px solid var(--line);border-radius:10px;padding:10px 12px;display:grid;gap:3px;background:#f6fbff;min-width:0}
.winner-card strong{font-size:12px;color:var(--violet)}
.winner-card span{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.winner-card em{font-style:normal;font-size:12px;color:var(--muted)}
.winner-card.clickable{cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.winner-card.clickable:hover,.winner-card.clickable:focus-visible{transform:translateY(-2px);border-color:#8dc7f2;box-shadow:0 8px 20px rgba(47,130,198,.13);outline:none}
.platform-ranking-dialog{width:min(820px,calc(100vw - 32px));max-height:min(760px,calc(100vh - 40px));border:0;border-radius:16px;padding:0;box-shadow:0 22px 70px rgba(24,55,80,.28)}
.platform-ranking-dialog::backdrop{background:rgba(18,39,58,.48)}
.platform-ranking-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 20px;border-bottom:1px solid var(--line)}
.platform-ranking-head p{margin:5px 0 0;color:var(--muted);font-size:12px}
.platform-ranking-head button{border:0;background:#edf6fd;color:var(--ink);border-radius:8px;width:34px;height:34px;font-size:22px;cursor:pointer}
.platform-ranking-dialog .table-wrap{margin:16px 20px 20px;max-height:560px}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;max-height:590px;max-width:100%;min-width:0}
.table-wrap.compact{max-height:340px}
table{width:100%;border-collapse:collapse;font-size:12px;min-width:760px}
th,td{padding:11px 13px;text-align:left;border-bottom:1px solid #f0f1f5;white-space:nowrap}
th{background:#f1f8fe;color:#4e6a82;font-weight:750;position:sticky;top:0;z-index:1}
tbody tr:hover{background:#f5faff}
tbody tr:last-child td{border-bottom:0}
.toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:16px;flex-wrap:wrap}
.toolbar label,.search-box{display:grid;gap:7px;font-size:12px;color:var(--muted);font-weight:650}
.toolbar input,.toolbar select{border:1px solid #dfe2ea;border-radius:9px;padding:9px 12px;min-width:260px;background:#fff;color:var(--ink);outline:none}
.toolbar input:focus,.toolbar select:focus{border-color:var(--violet);box-shadow:0 0 0 3px rgba(75,159,232,.14)}
.toolbar select{min-width:130px}
.filter-bar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.filter-bar label{display:grid;gap:7px;font-size:12px;color:var(--muted);font-weight:650}
.filter-bar input,.filter-bar select{height:38px;border:1px solid #dfe2ea;border-radius:9px;padding:8px 11px;background:#fff;color:var(--ink);outline:none;min-width:155px}
.filter-bar input:focus,.filter-bar select:focus{border-color:var(--violet);box-shadow:0 0 0 3px rgba(75,159,232,.14)}
.filter-bar .result-count{margin-left:auto;padding-bottom:10px}
.filter-action{margin-left:0}
.secondary-button{height:38px;border:1px solid #dfe2ea;background:#fff;color:#596174;border-radius:9px;padding:0 15px;font-weight:700}
.secondary-button:hover{border-color:var(--violet);color:var(--violet)}
.wide-table{min-width:1300px}
.product-with-image{display:flex;align-items:center;gap:10px;min-width:190px}
.product-thumb-button{width:44px;height:44px;flex:0 0 44px;padding:0;border:1px solid #dbe9f5;border-radius:9px;background:#f5faff;overflow:hidden;cursor:zoom-in}
.product-thumb-button:hover{border-color:#78bff0;box-shadow:0 3px 10px rgba(75,159,232,.2)}
.product-thumb{display:block;width:100%;height:100%;object-fit:cover}
.product-thumb-empty{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border:1px dashed #cbdced;border-radius:9px;background:#f7fbff;color:#91a6b9;font-size:10px}
.product-image-dialog{width:min(860px,92vw);max-height:90vh;padding:0;border:0;border-radius:16px;box-shadow:0 24px 70px rgba(20,55,86,.3);overflow:hidden}
.product-image-dialog::backdrop{background:rgba(14,35,54,.72);backdrop-filter:blur(3px)}
.product-image-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border-bottom:1px solid #dbe9f5;background:#f5faff}
.product-image-dialog-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-image-dialog-head button{width:34px;height:34px;border:0;border-radius:9px;background:#e3f1fc;color:#365b78;font-size:24px;cursor:pointer}
.product-image-dialog>img{display:block;max-width:100%;max-height:calc(90vh - 64px);margin:auto;object-fit:contain;background:#fff}
.health-track{width:88px;height:7px;border-radius:99px;background:#eceef3;overflow:hidden;display:inline-block;margin-right:7px;vertical-align:middle}
.health-track i{height:100%;display:block;background:linear-gradient(90deg,var(--red),var(--amber),var(--green));border-radius:inherit}
.health-track+span{font-size:10px;color:var(--muted)}
.result-count,.hint{color:var(--muted);font-size:12px}
.badge,.status-pill{display:inline-flex;align-items:center;border-radius:99px;padding:4px 9px;font-size:10px;font-weight:750;background:#e6f3fd;color:var(--violet-dark)}
.badge.success{background:#dcf5e9;color:#0a7b4c}
.badge.warning{background:#fff0d5;color:#a66005}
.badge.danger{background:#fde2e5;color:#ad2f40}
.badge.neutral{background:#edf0f5;color:#667085}
.status-pill{background:rgba(255,255,255,.16);color:#fff}
.pager{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:14px}
.pager button{border:1px solid #dfe2ea;background:#fff;border-radius:8px;padding:7px 11px;color:#596174}
.pager button:disabled{opacity:.4;cursor:not-allowed}
.page-size{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);margin-right:auto}
.page-size select{height:34px;border:1px solid #dfe2ea;border-radius:8px;background:#fff;padding:0 9px;color:var(--ink)}
.restock-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.restock-card{border:1px solid var(--line);border-radius:13px;padding:16px;display:grid;gap:14px;border-left:4px solid var(--green)}
.restock-card.warning{border-left-color:var(--amber);background:#fffdf8}
.restock-card.urgent{border-left-color:var(--red);background:#fffafb}
.restock-card h3{font-size:14px;margin:0}
.restock-values{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.restock-values span{font-size:10px;color:var(--muted);display:block}
.restock-values strong{font-size:14px}
.primary-button,.ghost-button{border:0;border-radius:10px;padding:11px 18px;font-weight:750}
.primary-button{background:linear-gradient(135deg,var(--violet),var(--violet-dark));color:#fff;box-shadow:0 7px 18px rgba(45,130,196,.2)}
.compact-button{padding:9px 15px}
.excel-upload-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.excel-upload-actions input[type=file]{max-width:330px;padding:7px 9px;border:1px solid #cfe3f2;border-radius:10px;background:#f6fbff;color:var(--muted);font-size:12px}
.excel-upload-actions input[type=file]::file-selector-button{border:0;border-radius:7px;background:#e4f3fd;color:#2377b5;font-weight:700;padding:7px 10px;margin-right:9px;cursor:pointer}
.jd-date-field{display:grid;grid-template-columns:auto auto;align-items:center;gap:4px 6px;color:var(--muted);font-size:11px;font-weight:700}
.jd-date-field small{grid-column:1/-1;font-size:10px;font-weight:500;color:#8ca0b2}
.jd-period-help{margin:6px 0 10px;color:var(--muted);font-size:11px}
.jd-data-coverage{color:var(--muted);font-size:11px;line-height:1.45}
.jd-date-field input{min-width:135px!important;width:135px;padding:8px}
.merge-switch{display:flex;align-items:center;gap:8px;color:var(--text);font-size:12px;font-weight:750;cursor:pointer}
.merge-switch input{position:absolute;opacity:0;pointer-events:none}
.merge-switch span{width:38px;height:21px;border-radius:99px;background:#cbd9e5;position:relative;transition:.2s}
.merge-switch span:after{content:"";position:absolute;width:17px;height:17px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.18);transition:.2s}
.merge-switch input:checked+span{background:var(--violet)}
.merge-switch input:checked+span:after{transform:translateX(17px)}
.jd-history-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.danger-button,.table-danger-button{border:1px solid #f3b7be;background:#fff5f6;color:#bd3344;border-radius:9px;font-weight:700;cursor:pointer}
.danger-button{padding:9px 14px}.table-danger-button{padding:6px 10px}
.jd-batch-actions{display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
.jd-export-menu{position:relative;display:inline-block}
.jd-export-menu>summary{list-style:none}
.jd-export-menu>summary::-webkit-details-marker{display:none}
.table-export-button{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border:1px solid #a9d0ee;border-radius:9px;background:#f3f9fe;color:#2478b3;font-weight:700;cursor:pointer}
.table-export-button:hover{background:#e8f4fc;border-color:#7fb8df}
.jd-export-menu-panel{position:absolute;z-index:30;right:0;top:calc(100% + 4px);display:grid;min-width:126px;padding:5px;border:1px solid #cfe1ee;border-radius:9px;background:#fff;box-shadow:0 8px 22px rgba(38,83,114,.18)}
.jd-export-option{border:0;border-radius:6px;background:#fff;color:#315d79;padding:7px 9px;text-align:left;white-space:nowrap;cursor:pointer}
.jd-export-option:hover{background:#edf7fd;color:#176a9e}
.jd-export-option:disabled{background:#f7f9fa;color:#a9b5be;cursor:not-allowed}
.ghost-button{background:rgba(255,255,255,.13);color:#fff;padding:7px 11px}
.muted{color:var(--muted);font-size:12px;margin:4px 0 0}
.alert{padding:11px 13px;border-radius:9px;font-size:13px}
.alert.error{background:#fde8ea;color:#a62e3e}
.toast{position:fixed;right:24px;bottom:24px;background:#1f2937;color:#fff;padding:12px 16px;border-radius:10px;box-shadow:var(--shadow);opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s}
.toast.show{opacity:1;transform:none}
.empty{text-align:center;color:var(--muted);padding:28px!important}
.login-body{background:radial-gradient(circle at 15% 20%,#a9d9f8 0,transparent 28%),linear-gradient(135deg,#ddecf8,#87c7ef 55%,#4b9edc);display:grid;place-items:center;padding:30px}
.login-shell{width:min(1040px,100%);display:grid;grid-template-columns:1.15fr .85fr;border-radius:24px;overflow:hidden;box-shadow:0 28px 90px rgba(25,18,74,.38);background:#fff}
.login-brand{padding:72px 64px;background:linear-gradient(145deg,rgba(28,93,143,.12),rgba(31,105,162,.55)),linear-gradient(135deg,#78c2f0,#3185c7);color:#fff;display:flex;flex-direction:column;justify-content:center}
.login-brand .eyebrow{color:#d9d2ff;margin-top:24px}
.login-brand h1{font-size:38px;line-height:1.16;letter-spacing:-.04em;margin:14px 0 18px}
.login-brand>p:not(.eyebrow){line-height:1.8;color:rgba(255,255,255,.76)}
.login-points{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}
.login-points span{font-size:11px;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.15);padding:7px 10px;border-radius:99px}
.login-card{padding:68px 48px;display:flex;flex-direction:column;justify-content:center;gap:24px}
.login-card h2{font-size:26px;margin:6px 0}
.login-form{display:grid;gap:18px}
.login-form label{display:grid;gap:7px;font-size:12px;color:var(--muted);font-weight:700}
.login-form input{border:1px solid #dfe2ea;border-radius:10px;padding:12px 13px;outline:none}
.login-form input:focus{border-color:var(--violet);box-shadow:0 0 0 3px rgba(75,159,232,.14)}
.login-footnote{font-size:11px;color:#9aa1b0;text-align:center}
.loading-row td{color:var(--muted);text-align:center;padding:26px}

@media(max-width:1000px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-grid{grid-template-columns:minmax(0,1fr)}
.summary-grid,.chart-grid{grid-template-columns:minmax(0,1fr)}
.restock-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.period-slot,.overview-period-slot{flex-basis:100%;min-width:100%;margin-left:0}
.period-toolbar{grid-template-columns:1fr}
.period-toolbar>div:first-child,.data-time-strip{grid-column:1}
.period-controls{justify-content:flex-start}
.data-time-strip{justify-content:flex-start}
.header-inner{align-items:flex-start}
.header-meta{max-width:50%}
.login-shell{grid-template-columns:1fr}
.login-brand{display:none}
}

@media(max-width:640px){.header-inner{padding:18px;display:block}
.header-meta{max-width:none;justify-content:flex-start;margin-top:14px}
.page-shell{padding:14px 12px 45px}
.section-heading{display:block}
.section-heading>p{margin-top:7px}
.kpi-grid{grid-template-columns:1fr 1fr;gap:10px}
.kpi-card{padding:15px}
.kpi-card strong{font-size:24px}
.restock-grid{grid-template-columns:1fr}
.panel{padding:14px}
.toolbar input{min-width:100%;width:100%}
.excel-upload-actions{width:100%;justify-content:stretch}
.excel-upload-actions input[type=file]{max-width:none}
.excel-upload-actions .primary-button{width:100%}
.toolbar label{width:100%}
.filter-bar label{width:100%}
.filter-bar input,.filter-bar select{width:100%}
.filter-bar .result-count{margin-left:0}
.period-controls label{width:auto}
.period-controls select,.period-controls input{width:auto;min-width:130px}
.platform-winners{grid-template-columns:1fr}
.pager{justify-content:flex-start;flex-wrap:wrap}
.page-size{width:auto;margin-right:0}
.login-body{padding:16px}
.login-card{padding:42px 25px}
.tabs{border-radius:12px}
.tab{padding:10px 14px}
}

/* 2026-07-27 全站视觉统一：淡蓝企业数据中心主题 */
:root{--ink:#17324d;--muted:#688097;--line:#d9e8f4;--surface:#fff;--surface-soft:#f5faff;--canvas:#f2f7fc;--violet:#4198dd;--violet-dark:#2478ba;--green:#27a474;--amber:#df9429;--blue:#65b1eb;--red:#d95b68;--shadow:0 12px 34px rgba(38,94,138,.09);--shadow-hover:0 16px 38px rgba(38,94,138,.14)}
body{background:linear-gradient(180deg,#eef6fd 0,#f5f9fd 280px,var(--canvas) 100%)}
button{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background-color .16s ease,color .16s ease}
button:active:not(:disabled){transform:translateY(1px)}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(65,152,221,.22);outline-offset:2px}
button:disabled{cursor:not-allowed;filter:saturate(.72)}
.site-header{background:linear-gradient(118deg,#67b3e9,#4398d8 52%,#297dbd);box-shadow:0 5px 24px rgba(45,126,190,.18)}
.header-inner{padding-top:18px;padding-bottom:18px}
.brand-mark{background:linear-gradient(145deg,#5fb3ed,#247dbd);box-shadow:0 12px 26px rgba(28,111,173,.26)}
.brand-mark.small{background:rgba(255,255,255,.16);box-shadow:none}
.tabs{background:rgba(255,255,255,.94);border:1px solid rgba(217,232,244,.9);box-shadow:0 5px 20px rgba(44,99,142,.055);scrollbar-width:thin}
.period-toolbar{padding:9px 11px;background:var(--surface-soft);border:1px solid #dcebf6;border-radius:11px;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.section-heading{margin-top:24px;margin-bottom:16px}
.kpi-card{background:linear-gradient(180deg,#fff,#fcfeff);border-color:var(--line);box-shadow:0 6px 20px rgba(43,97,139,.05)}
.overview-panel{height:clamp(590px,65vh,650px)}
th,td{border-bottom-color:#eaf1f7}
tbody tr{transition:background-color .14s ease}
tbody tr:nth-child(even){background:#fcfdff}
tbody tr:hover{background:#eef7fe}
.secondary-button{border-color:#cfdfea;color:#4d657a}
.secondary-button:hover{color:var(--violet-dark);background:#f5faff;box-shadow:0 5px 14px rgba(44,119,177,.1)}
.primary-button:hover:not(:disabled){box-shadow:0 10px 22px rgba(37,120,184,.28);transform:translateY(-1px)}
.toast{z-index:100;background:#17324d;border:1px solid rgba(255,255,255,.15);box-shadow:0 14px 34px rgba(20,55,83,.28);max-width:min(460px,calc(100vw - 32px));line-height:1.5}
.login-shell{box-shadow:0 28px 90px rgba(25,78,117,.32)}
.login-brand .eyebrow{color:#dff2ff}

/* 首页 TOP 商品卡：标题、时间筛选、表格分层，避免中等宽度下相互挤压。 */
.overview-top-panel .panel-title{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:8px 12px;
}
.overview-top-panel .panel-title>div:first-child{grid-column:1;grid-row:1}
.overview-top-panel .panel-title>.inline-select{grid-column:2;grid-row:1;align-self:center}
.overview-top-panel .overview-period-slot{
  grid-column:1/-1;
  grid-row:2;
  width:100%;
  min-width:0;
  margin:0;
}
.overview-top-panel .period-toolbar{grid-template-columns:1fr}
.overview-top-panel .period-toolbar>div:first-child,
.overview-top-panel .data-time-strip{grid-column:1}
.overview-top-panel .period-controls,
.overview-top-panel .data-time-strip{justify-content:flex-start}

/* 列表页的时间筛选单独占一整行，避免与搜索条件争抢横向空间。 */
.filter-bar>.period-slot{
  order:20;
  flex:1 0 100%;
  width:100%;
  min-width:0;
  margin:0;
}
.filter-bar>.result-count{order:21;margin-left:auto}
.filter-bar>.period-slot .period-toolbar{
  grid-template-columns:auto minmax(0,1fr);
}

@media(max-width:640px){
.header-inner{padding-top:15px;padding-bottom:15px}
.section-heading h2{font-size:21px}
.period-toolbar{padding:10px}
.toast{right:16px;bottom:16px}
}

/* 同步任务中心 */
.sync-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}
.sync-summary-card{padding:18px 20px;background:#fff;border:1px solid var(--line);border-top:3px solid var(--blue);border-radius:14px;box-shadow:0 6px 20px rgba(43,97,139,.05)}
.sync-summary-card span{display:block;color:var(--muted);font-size:12px;font-weight:700}
.sync-summary-card strong{display:block;margin-top:7px;font-size:28px;color:var(--ink)}
.sync-summary-card.queued{border-top-color:var(--amber)}.sync-summary-card.success{border-top-color:var(--green)}.sync-summary-card.failed{border-top-color:var(--red)}
.sync-panel{margin-top:16px}.sync-two-column{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(0,1.5fr);gap:16px}
.sync-active-list,.schedule-list{display:grid;gap:10px}.sync-empty-state{padding:30px;text-align:center;color:var(--muted);background:var(--surface-soft);border:1px dashed var(--line);border-radius:12px}
.sync-job-card,.schedule-card{padding:14px 16px;background:var(--surface-soft);border:1px solid var(--line);border-radius:12px}
.sync-job-head,.schedule-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.sync-job-card p,.schedule-card p{margin:6px 0 0;color:var(--muted);font-size:12px}
.sync-job-progress{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.sync-job-progress span{padding:5px 9px;border-radius:999px;background:#e8eff5;color:#718396;font-size:11px}.sync-job-progress .done{background:#dcf5ea;color:#237f5d}.sync-job-progress .current{background:#dcefff;color:#2478ba;box-shadow:0 0 0 2px rgba(65,152,221,.12)}
.sync-batch-meter{flex:1 0 100%;height:7px;overflow:hidden;border-radius:999px;background:#dbe8f2}.sync-batch-meter i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#58b7ef,#258bd0);transition:width .25s ease}
.schedule-card-head span{font-size:11px;color:var(--violet-dark);background:#e7f4fd;border-radius:999px;padding:5px 8px}

/* 账号和权限 */
.account-create-grid{display:grid;grid-template-columns:1.2fr 1.4fr 1fr auto auto auto;gap:14px;align-items:end}
.account-create-grid>label:not(.permission-check){display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:700}
.account-create-grid input:not([type=checkbox]),.account-create-grid select,.account-role-select{border:1px solid var(--line);border-radius:9px;padding:9px 11px;background:#fff;color:var(--ink)}
.permission-check{display:flex;align-items:center;gap:7px;min-height:38px;white-space:nowrap;color:var(--ink);font-size:12px;font-weight:700}
.permission-check input,td input[type=checkbox]{width:17px;height:17px;accent-color:var(--violet)}
.account-actions{display:flex;gap:7px;white-space:nowrap}.account-role-select{min-width:130px}
@media(max-width:1000px){.sync-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sync-two-column{grid-template-columns:1fr}.account-create-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.sync-summary-grid,.account-create-grid{grid-template-columns:1fr}.sync-summary-card{padding:14px 16px}}
.sync-summary-action{cursor:pointer}
.sync-summary-action:hover,.sync-summary-action:focus{transform:translateY(-2px);box-shadow:0 12px 28px rgba(44,123,190,.16);outline:none}
.sync-summary-action small{display:block;margin-top:6px;color:#8295a8}
.sync-history-focus{box-shadow:0 0 0 3px rgba(239,90,108,.18),var(--panel-shadow)}
.sync-history-row-failed{background:#fff7f8;cursor:pointer}
.sync-detail-button{white-space:nowrap}
.sync-job-detail-list{display:grid;grid-template-columns:130px 1fr;gap:10px 18px;margin:8px 0 0}
.sync-job-detail-list dt{color:#71869a}.sync-job-detail-list dd{margin:0;white-space:pre-wrap;word-break:break-word}
.jd-import-progress{margin:12px 0;padding:12px 14px;border:1px solid #cfe4f6;border-radius:12px;background:#f5fbff}
.jd-import-progress[hidden]{display:none}.jd-import-progress-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px}
.jd-import-progress-track{height:8px;border-radius:999px;background:#e4edf5;overflow:hidden}.jd-import-progress-track i{display:block;height:100%;background:linear-gradient(90deg,#55b8f3,#2588d1);transition:width .3s}
.sales-growth-panel{margin-bottom:18px;cursor:pointer;border:1px solid #d8e9f7;box-shadow:0 12px 30px rgba(44,112,164,.08)}
.sales-growth-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:10px}
.sales-growth-toolbar h3{margin:3px 0 6px;color:#17324f}
.growth-actions{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.growth-actions label{display:grid;gap:5px;color:#6a8298;font-size:12px}
.growth-actions select{min-width:126px}
.sales-growth-meta{display:flex;gap:18px;flex-wrap:wrap;padding:10px 12px;margin-bottom:12px;border-radius:10px;background:#f1f8fe;color:#607d97;font-size:12px}
.sales-growth-overview{display:grid;grid-template-columns:.72fr 1.7fr .9fr;gap:12px}
.growth-kpi{display:grid;align-content:center;gap:5px;min-height:104px;padding:16px;border:1px solid #dcebf7;border-radius:14px;background:linear-gradient(145deg,#fbfdff,#f1f8fe)}
.growth-kpi span,.growth-kpi small{color:#71899d}.growth-kpi strong{font-size:27px;line-height:1.2;color:#17324f}
.growth-kpi-featured{background:linear-gradient(145deg,#eff8ff,#e7f5ff)}.growth-kpi-featured strong{font-size:20px}
.sales-growth-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 9px;color:#17324f}
.sales-growth-preview-head span{font-size:12px;color:#71899d}
.sales-growth-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.sales-growth-preview-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;width:100%;padding:13px 14px;border:1px solid #d7e9f7;border-radius:12px;background:#fff;text-align:left;color:#17324f;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.sales-growth-preview-card:hover{transform:translateY(-2px);border-color:#8fc7ed;box-shadow:0 8px 20px rgba(44,112,164,.12)}
.growth-preview-rank{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#eaf6ff;color:#2e8dce;font-weight:800}
.growth-preview-product{display:grid;gap:3px;min-width:0}.growth-preview-product strong,.growth-preview-product small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.growth-preview-product small{color:#7890a4}
.growth-preview-value{text-align:right}.growth-preview-value strong{display:block;color:#1e956c}.growth-preview-value small{color:#71899d}
.growth-empty{grid-column:1/-1;padding:22px;text-align:center;color:#71899d}

/* growth-ranking-v8: 自动排序与前十名视觉标识 */
.sales-growth-ranking-table th:first-child,.sales-growth-ranking-table td:first-child{width:88px;text-align:center}
.sales-growth-rank-cell{white-space:nowrap}
.sales-growth-rank-badge{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:26px;padding:0 9px;border-radius:999px;border:1px solid transparent;font-size:12px;font-weight:800;line-height:1;letter-spacing:.02em;box-shadow:0 2px 7px rgba(32,73,106,.08)}
.sales-growth-rank-badge.rank-gold{min-width:50px;color:#8a5b00;background:linear-gradient(135deg,#fff6c9,#ffe38a);border-color:#f0c552}
.sales-growth-rank-badge.rank-silver{min-width:50px;color:#526273;background:linear-gradient(135deg,#f8fafc,#dfe7ee);border-color:#bfcbd5}
.sales-growth-rank-badge.rank-bronze{min-width:50px;color:#8a4d20;background:linear-gradient(135deg,#ffe9d8,#efba8d);border-color:#d9945f}
.sales-growth-rank-badge.rank-top10{color:#2677ad;background:#eaf6ff;border-color:#b9dcf3}
.sales-growth-rank-badge.rank-normal{min-width:34px;color:#70879a;background:#f4f7fa;border-color:#dce5ec}
.sales-growth-row.growth-rank-first{background:#fffdf4}
.sales-growth-row.growth-rank-second{background:#fafcfe}
.sales-growth-row.growth-rank-third{background:#fffaf7}
.sales-growth-row.growth-rank-top10{background:#f8fcff}
.sales-growth-row.growth-rank-first td:first-child{box-shadow:inset 4px 0 #e5b93d}
.sales-growth-row.growth-rank-second td:first-child{box-shadow:inset 4px 0 #9caebb}
.sales-growth-row.growth-rank-third td:first-child{box-shadow:inset 4px 0 #c9824c}
.sales-growth-row.growth-rank-top10 td:first-child{box-shadow:inset 3px 0 #73b7e4}
.sales-growth-row.growth-rank-first:hover,.sales-growth-row.growth-rank-first:focus{background:#fff8da}
.sales-growth-row.growth-rank-second:hover,.sales-growth-row.growth-rank-second:focus{background:#edf4f8}
.sales-growth-row.growth-rank-third:hover,.sales-growth-row.growth-rank-third:focus{background:#fff0e5}
.sales-growth-row.growth-rank-top10:hover,.sales-growth-row.growth-rank-top10:focus{background:#eaf6ff}
.sales-growth-preview-card.preview-rank-1{border-color:#efd172;background:linear-gradient(145deg,#fffef8,#fff9dd)}
.sales-growth-preview-card.preview-rank-2{border-color:#cbd7df;background:linear-gradient(145deg,#fff,#f4f7f9)}
.sales-growth-preview-card.preview-rank-3{border-color:#e2b48f;background:linear-gradient(145deg,#fffdfb,#fff3eb)}

.sales-growth-row{cursor:pointer;transition:background-color .16s ease}
.sales-growth-row:hover,.sales-growth-row:focus{background:#edf7ff;outline:none}
.growth-positive{color:#168a5b;font-weight:700}
.growth-dialog{width:min(920px,94vw);padding:20px;border:0;border-radius:16px;box-shadow:0 28px 80px rgba(20,52,79,.28)}
.growth-dialog::backdrop{background:rgba(20,52,79,.4);backdrop-filter:blur(2px)}
.growth-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.growth-dialog-head h3{margin:2px 0 5px;color:#17324f}.growth-help{margin:0;color:#71899d}
.growth-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:16px 0}
.growth-summary>div{display:grid;gap:5px;padding:12px;border:1px solid #dcebf7;border-radius:10px;background:#f6fbff}
.growth-summary span{font-size:12px;color:#71899d}.growth-summary strong{font-size:22px;color:#17324f}
.sales-growth-chart-wrap{height:360px}
.sales-growth-ranking-dialog{width:min(1060px,94vw)}
.sales-growth-ranking-meta{display:flex;justify-content:space-between;gap:12px;margin:12px 0;color:#71899d;font-size:12px}
.sales-growth-ranking-table{max-height:min(62vh,620px)}.sales-growth-ranking-table table{min-width:800px}
@media(max-width:760px){
  .sales-growth-toolbar{display:grid}
  .growth-actions{align-items:stretch}
  .sales-growth-overview,.sales-growth-preview{grid-template-columns:1fr}
  .growth-summary{grid-template-columns:repeat(2,1fr)}
  .sales-growth-chart-wrap{height:280px}
}
.sales-restock-toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #dcebf7;
  border-radius: 12px;
  background: #f6fbff;
}

.sales-restock-toolbar label {
  display: grid;
  gap: 5px;
  color: #6a8298;
  font-size: 12px;
}

.sales-restock-toolbar select {
  min-width: 130px;
}

.sales-restock-toolbar input {
  height: 38px;
  border: 1px solid #cbdceb;
  border-radius: 9px;
  padding: 8px 10px;
  background: #fff;
  color: #17324f;
  outline: none;
}

.target-days-field {
  min-width: 190px;
}

.target-days-input-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #cbdceb;
  border-radius: 9px;
  background: #fff;
}

.target-days-input-wrap input {
  width: 112px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.target-days-input-wrap span {
  padding: 0 10px;
  color: #6a8298;
  font-weight: 650;
}

.target-days-input-wrap:focus-within {
  border-color: #4b9fe8;
  box-shadow: 0 0 0 3px rgba(75,159,232,.14);
}

.target-days-input-wrap input.invalid {
  color: #b83d48;
}

.target-days-status {
  align-self: center;
  max-width: 290px;
  padding: 8px 10px;
  border: 1px dashed #bfd5e8;
  border-radius: 9px;
  background: #fff;
  color: #617b92;
  font-size: 12px;
  line-height: 1.35;
}

.target-days-status.active {
  border-color: #8ec8a9;
  background: #f0fbf5;
  color: #21724a;
  font-weight: 700;
}

.target-days-status.invalid {
  border-color: #e6a9ae;
  background: #fff5f6;
  color: #a5333e;
}

.restock-summary-strip {
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 330px;
}

.restock-summary-strip span,
.restock-summary-strip .restock-summary-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 100px;
  padding: 9px 11px;
  border: 1px solid #dcebf7;
  border-radius: 9px;
  background: #fff;
}

.restock-summary-strip .restock-summary-card {
  appearance: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.restock-summary-strip .restock-summary-card:hover {
  border-color: #79bcef;
  background: #f4faff;
  box-shadow: 0 5px 14px rgba(55, 143, 207, .12);
  transform: translateY(-1px);
}

.restock-summary-strip .restock-summary-card.active {
  border-color: #3194dc;
  background: #eaf6ff;
  box-shadow: 0 0 0 2px rgba(49, 148, 220, .12);
}

.restock-summary-strip .restock-summary-card:focus-visible {
  outline: 2px solid #3194dc;
  outline-offset: 2px;
}

.restock-summary-strip small {
  color: #71899d;
}

.restock-summary-strip strong {
  color: #17324f;
  font-size: 18px;
}

.sales-merged-table {
  min-width: 1450px;
}

.restock-cart-dialog {
  width: min(96vw, 1600px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(35, 78, 122, 0.24);
}

.restock-cart-dialog::backdrop {
  background: rgba(22, 46, 72, 0.42);
  backdrop-filter: blur(2px);
}

.restock-cart-dialog .modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid #dce9f5;
  background: #f7fbff;
}

.restock-cart-dialog .modal-head h3 {
  margin: 0 0 5px;
  color: #173d63;
}

.restock-cart-dialog .modal-head p {
  margin: 0;
  color: #71879d;
}

.restock-table-wrap {
  max-height: 46vh;
  margin: 18px;
  overflow: auto;
  border: 1px solid #dce9f5;
  border-radius: 12px;
}

.restock-detail-table {
  width: 100%;
  min-width: 1700px;
  border-collapse: collapse;
}

.restock-detail-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eef7ff;
  white-space: nowrap;
}

.restock-detail-table th,
.restock-detail-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e4edf6;
  text-align: right;
  white-space: nowrap;
}

.restock-detail-table th:first-child,
.restock-detail-table td:first-child {
  text-align: left;
}

.cart-product {
  display: flex;
  min-width: 250px;
  align-items: center;
  gap: 10px;
}

.cart-product img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: cover;
  border: 1px solid #dce9f5;
  border-radius: 9px;
  background: #f3f8fc;
}

.cart-product div {
  display: grid;
  gap: 3px;
  white-space: normal;
}

.cart-product small {
  color: #7a8fa4;
}

.cart-qty-heading,
.cart-qty-cell {
  background: #fff8e8 !important;
}

.cart-qty-cell {
  box-shadow: inset 2px 0 0 #e8b455, inset -2px 0 0 #e8b455;
}

.cart-qty {
  width: 94px;
  padding: 8px 9px;
  border: 1px solid #d7a846;
  border-radius: 8px;
  background: #fffdf6;
  color: #7b5311;
  font-size: 15px;
  font-weight: 800;
  text-align: right;
  box-shadow: 0 0 0 3px rgba(232,180,85,.14);
}

.cart-qty:focus {
  outline: none;
  border-color: #bd8522;
  box-shadow: 0 0 0 4px rgba(232,180,85,.22);
}

.restock-cart-footer {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 0 18px 18px;
}

.restock-cart-footer label {
  display: grid;
  flex: 1;
  gap: 6px;
  color: #55718c;
}

.restock-cart-footer input {
  padding: 10px 12px;
  border: 1px solid #cbdceb;
  border-radius: 9px;
}

.restock-history {
  padding: 0 0 18px;
}

.restock-history h4 {
  margin: 2px 18px 10px;
  color: #173d63;
}

.restock-history .restock-table-wrap {
  max-height: 220px;
  margin-top: 0;
}

@media (max-width: 760px) {
  .restock-summary-strip {
    min-width: 100%;
    overflow-x: auto;
  }

  .sales-restock-toolbar label,
  .sales-restock-toolbar select,
  .sales-restock-toolbar input,
  .target-days-status {
    width: 100%;
    max-width: none;
  }

  .target-days-input-wrap input {
    width: 100%;
  }
}


/* 2026-07-31 v2：销量总表完整展示 + 购物车单品周转计算。 */
.header-inner,.page-shell{width:100%;max-width:1760px}
@media (min-width:1500px){.header-inner,.page-shell{max-width:none}}
.sales-table-panel{padding:clamp(10px,1vw,16px)}
.sales-main-table-wrap{width:100%;max-width:none;overflow-x:hidden;overflow-y:auto}
.sales-merged-table{width:100%;min-width:0;table-layout:fixed;font-size:clamp(9px,.66vw,11px)}
.sales-merged-table th,.sales-merged-table td{padding:8px 4px;overflow:hidden;line-height:1.18;text-overflow:ellipsis}
.sales-merged-table th{white-space:normal;text-align:center}
.sales-merged-table td{white-space:nowrap;text-align:right}
.sales-merged-table th:first-child,.sales-merged-table td:first-child{text-align:left}
.sales-merged-table th:nth-child(1){width:18%}
.sales-merged-table th:nth-child(n+2):nth-child(-n+9){width:4%}
.sales-merged-table th:nth-child(10){width:4.5%}
.sales-merged-table th:nth-child(11),.sales-merged-table th:nth-child(12){width:6%}
.sales-merged-table th:nth-child(13){width:5%}
.sales-merged-table th:nth-child(14),.sales-merged-table th:nth-child(15){width:5.5%}
.sales-merged-table th:nth-child(16){width:6%}
.sales-merged-table th:nth-child(17){width:4.5%}
.sales-merged-table .product-with-image{min-width:0;gap:6px}
.sales-merged-table .product-thumb-button,.sales-merged-table .product-thumb-empty{width:34px;height:34px;flex-basis:34px;border-radius:7px}
.sales-merged-table .product-with-image>span:last-child{display:-webkit-box;min-width:0;overflow:hidden;white-space:normal;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.sales-merged-table .badge{max-width:100%;padding:3px 5px;font-size:9px;white-space:normal;justify-content:center;text-align:center}
.sales-merged-table td:last-child button{max-width:100%;padding:5px 6px;font-size:10px;white-space:nowrap}

.restock-cart-main-dialog{width:min(98vw,1760px);max-width:none;max-height:94vh}
.restock-cart-main-dialog .modal-head{padding:14px 18px}
.restock-cart-main-dialog > .restock-table-wrap{width:auto;max-width:none;margin:12px 14px;overflow-x:hidden;overflow-y:auto;max-height:52vh}
.restock-cart-items-table{width:100%;min-width:0;table-layout:fixed;font-size:11px}
.restock-cart-items-table th,.restock-cart-items-table td{padding:10px;vertical-align:top;white-space:normal;text-align:left;overflow:visible}
.restock-cart-items-table th:nth-child(1){width:20%}
.restock-cart-items-table th:nth-child(2){width:53%}
.restock-cart-items-table th:nth-child(3){width:27%}
.restock-cart-row:hover{background:#f8fbfe}
.cart-product-cell{background:#fbfdff}
.cart-product{min-width:0;align-items:flex-start}
.cart-product img{width:46px;height:46px;flex-basis:46px}
.cart-product div{min-width:0}
.cart-product strong{display:-webkit-box;overflow:hidden;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.cart-metrics-cell{background:#fff}
.cart-metrics-grid{display:grid;grid-template-columns:repeat(7,minmax(64px,1fr));gap:7px}
.cart-metrics-grid>span{display:grid;gap:3px;min-width:0;padding:7px 8px;border:1px solid #e2edf6;border-radius:8px;background:#f7fbfe;text-align:right}
.cart-metrics-grid small{overflow:hidden;color:#758ca0;font-size:9px;white-space:nowrap;text-overflow:ellipsis}
.cart-metrics-grid strong{overflow:hidden;color:#173b5c;font-size:11px;white-space:nowrap;text-overflow:ellipsis}
.cart-calc-cell{background:#fffaf0}
.cart-calc-panel{display:grid;gap:8px;min-width:0}
.cart-target-field,.cart-request-field{display:grid;gap:4px;color:#5c748b;font-size:10px;font-weight:700}
.cart-target-input-wrap{display:flex;align-items:center;overflow:hidden;width:100%;border:1px solid #bfcfdd;border-radius:8px;background:#fff}
.cart-target-input-wrap input{width:100%;min-width:0;height:34px;padding:6px 8px;border:0;outline:0;color:#173b5c;font-weight:800;text-align:right}
.cart-target-input-wrap input.invalid{color:#b63e49;background:#fff6f7}
.cart-target-input-wrap>span{padding-right:8px;color:#6d8498}
.cart-target-status{color:#71899d;font-size:9px;font-weight:500}
.cart-target-status.active{color:#20734a;font-weight:700}
.cart-target-status.invalid{color:#b23642;font-weight:700}
.cart-calc-formula{padding:6px 8px;border-radius:7px;background:#fff;color:#71899d;font-size:9px;line-height:1.35}
.cart-calc-results{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:8px;align-items:end}
.cart-suggest-box{display:grid;gap:4px;padding:7px 8px;border:1px solid #dbe9f4;border-radius:8px;background:#fff}
.cart-suggest-box small{color:#71899d;font-size:9px}
.cart-suggest-value{overflow:hidden;color:#1e759f;font-size:16px;text-align:right;text-overflow:ellipsis}
.cart-request-field{padding:7px 8px;border:1px solid #e7be68;border-radius:8px;background:#fff6df}
.cart-qty{width:100%;min-width:0;padding:7px 8px;border:1px solid #d7a846;border-radius:7px;background:#fffdf6;color:#7b5311;font-size:15px;font-weight:800;text-align:right;box-shadow:none}
.cart-remove-button{width:100%;padding:7px 8px;font-size:10px}
.restock-history .restock-table-wrap{overflow-x:hidden}

@media (max-width:1350px){
  .sales-merged-table{font-size:8.5px}
  .sales-merged-table th,.sales-merged-table td{padding-left:2px;padding-right:2px}
  .sales-merged-table .product-thumb-button,.sales-merged-table .product-thumb-empty{width:28px;height:28px;flex-basis:28px}
  .cart-metrics-grid{grid-template-columns:repeat(5,minmax(58px,1fr))}
  .restock-cart-items-table th:nth-child(1){width:19%}.restock-cart-items-table th:nth-child(2){width:52%}.restock-cart-items-table th:nth-child(3){width:29%}
}
@media (max-width:1050px){
  .sales-merged-table .product-thumb-button,.sales-merged-table .product-thumb-empty{display:none}
  .restock-cart-items-table thead{display:none}
  .restock-cart-items-table,.restock-cart-items-table tbody{display:block}
  .restock-cart-items-table tr{display:grid;grid-template-columns:1fr;margin:10px;border:1px solid #dce9f5;border-radius:12px;overflow:hidden}
  .restock-cart-items-table td{display:block;width:100%;border-bottom:1px solid #e6eef5}
  .restock-cart-items-table td:last-child{border-bottom:0}
  .cart-metrics-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:700px){
  .sales-merged-table{font-size:7px}
  .sales-merged-table th,.sales-merged-table td{padding:5px 1px}
  .sales-merged-table th:nth-child(1){width:22%}
  .cart-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cart-calc-results{grid-template-columns:1fr}
}


/* 2026-07-31 v4：补货购物车恢复单行表格，并加入单品目标天数。 */
.restock-cart-main-dialog{width:min(99vw,1900px);max-width:none;max-height:95vh}
.restock-cart-main-dialog .modal-head{padding:12px 16px}
.restock-cart-main-dialog .modal-head h3{margin-bottom:2px}
.restock-cart-main-dialog .modal-head p{font-size:12px}
.restock-cart-main-dialog>.restock-table-wrap{width:auto;max-width:none;max-height:58vh;margin:10px 12px;overflow-x:hidden;overflow-y:auto;border-radius:9px}
.restock-cart-items-table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;font-size:clamp(8px,.62vw,10px)}
.restock-cart-items-table col.cart-col-product{width:19%}
.restock-cart-items-table col.cart-col-platform{width:3.5%}
.restock-cart-items-table col.cart-col-total{width:5%}
.restock-cart-items-table col.cart-col-stock{width:6%}
.restock-cart-items-table col.cart-col-daily{width:5%}
.restock-cart-items-table col.cart-col-days{width:5%}
.restock-cart-items-table col.cart-col-target{width:7%}
.restock-cart-items-table col.cart-col-suggest{width:6.5%}
.restock-cart-items-table col.cart-col-request{width:7.5%}
.restock-cart-items-table col.cart-col-action{width:5%}
.restock-cart-items-table th,.restock-cart-items-table td{height:52px;padding:5px 3px;overflow:hidden;border-bottom:1px solid #e4edf6;vertical-align:middle;white-space:nowrap;text-align:right;text-overflow:ellipsis}
.restock-cart-items-table th{height:34px;padding:5px 2px;background:#eef7ff;color:#315778;font-size:9px;font-weight:700;line-height:1.15;text-align:center;white-space:normal}
.restock-cart-items-table th:first-child,.restock-cart-items-table td:first-child{text-align:left}
.restock-cart-items-table tbody tr:hover{background:#f8fbfe}
.restock-cart-items-table .cart-product-cell{background:transparent}
.restock-cart-items-table .cart-product{min-width:0;gap:6px;align-items:center}
.restock-cart-items-table .cart-product img{width:34px;height:34px;flex:0 0 34px;border-radius:7px}
.restock-cart-items-table .cart-product div{min-width:0;gap:1px;overflow:hidden}
.restock-cart-items-table .cart-product strong{display:block;overflow:hidden;color:#1d3348;font-size:10px;line-height:1.25;white-space:nowrap;text-overflow:ellipsis}
.restock-cart-items-table .cart-product small{display:block;overflow:hidden;color:#8093a5;font-size:8px;line-height:1.2;white-space:nowrap;text-overflow:ellipsis}
.restock-cart-items-table .cart-total-cell{color:#173d63;font-weight:700}
.restock-cart-items-table .cart-days-cell{text-align:center}
.restock-cart-items-table .cart-target-cell{text-align:center;white-space:normal}
.cart-target-compact{display:grid;gap:2px;min-width:0}
.cart-target-input-wrap.compact{display:flex;width:100%;height:27px;align-items:center;overflow:hidden;border:1px solid #c3d2df;border-radius:6px;background:#fff}
.cart-target-input-wrap.compact input{width:100%;min-width:0;height:100%;padding:3px 2px;border:0;outline:0;background:transparent;color:#173b5c;font-size:10px;font-weight:800;text-align:right}
.cart-target-input-wrap.compact input::placeholder{color:#91a2b2;font-size:8px;font-weight:500}
.cart-target-input-wrap.compact input.invalid{color:#b63e49;background:#fff3f4}
.cart-target-input-wrap.compact>span{padding:0 4px 0 1px;color:#72879b;font-size:8px}
.restock-cart-items-table .cart-target-status{display:block;overflow:hidden;color:#75899c;font-size:7.5px;font-weight:500;line-height:1.1;text-align:center;white-space:nowrap;text-overflow:ellipsis}
.restock-cart-items-table .cart-target-status.active{color:#21734b;font-weight:700}
.restock-cart-items-table .cart-target-status.invalid{color:#b23642;font-weight:700}
.restock-cart-items-table .cart-suggest-cell{text-align:right}
.restock-cart-items-table .cart-suggest-value.compact{display:block;overflow:hidden;color:#1c759f;font-size:11px;font-weight:800;white-space:nowrap;text-overflow:ellipsis}
.restock-cart-items-table .cart-qty-heading,.restock-cart-items-table .cart-qty-cell{background:#fff8e8!important}
.restock-cart-items-table .cart-qty-cell{padding-left:4px;padding-right:4px;box-shadow:inset 1px 0 0 #e8b455,inset -1px 0 0 #e8b455;text-align:center}
.restock-cart-items-table .cart-qty.compact{width:100%;min-width:0;height:29px;padding:3px 4px;border:1px solid #d7a846;border-radius:6px;background:#fffdf6;color:#7b5311;font-size:11px;font-weight:800;text-align:right;box-shadow:none}
.restock-cart-items-table .cart-qty.compact:focus{outline:none;border-color:#bd8522;box-shadow:0 0 0 2px rgba(232,180,85,.18)}
.restock-cart-items-table .cart-action-cell{text-align:center}
.restock-cart-items-table .cart-remove-button{width:auto;max-width:100%;padding:5px 7px;font-size:8px;white-space:nowrap}
.restock-cart-main-dialog .restock-cart-footer{padding:0 12px 12px}
.restock-cart-main-dialog .restock-history{padding-bottom:12px}
.restock-cart-main-dialog .restock-history h4{margin-left:12px}
.restock-cart-main-dialog .restock-history .restock-table-wrap{margin-left:12px;margin-right:12px;overflow-x:hidden}

@media (max-width:1350px){
  .restock-cart-items-table{font-size:7.5px}
  .restock-cart-items-table th{font-size:7.8px}
  .restock-cart-items-table th,.restock-cart-items-table td{padding-left:1.5px;padding-right:1.5px}
  .restock-cart-items-table .cart-product img{width:28px;height:28px;flex-basis:28px}
  .restock-cart-items-table .cart-product strong{font-size:8.5px}
  .restock-cart-items-table .cart-product small{font-size:7px}
  .cart-target-input-wrap.compact input,.restock-cart-items-table .cart-qty.compact{font-size:9px}
  .restock-cart-items-table .cart-suggest-value.compact{font-size:9px}
}
@media (max-width:1050px){
  .restock-cart-items-table,.restock-cart-items-table tbody{display:table}
  .restock-cart-items-table thead{display:table-header-group}
  .restock-cart-items-table tr{display:table-row;margin:0;border:0;border-radius:0;overflow:visible}
  .restock-cart-items-table td{display:table-cell;width:auto}
  .restock-cart-items-table .cart-product img{display:none}
}


/* 2026-07-31 v5：分页位置、表格列对齐与月均补货计算。 */
.sales-table-panel #salesPager{justify-content:flex-end;gap:8px;margin-top:10px}
.sales-table-panel #salesPager .page-size{width:auto;margin:0}
.sales-table-panel #salesPager .result-count{margin-right:2px}
.sales-table-panel #salesPager select{min-width:74px}

.sales-merged-table{table-layout:fixed;font-variant-numeric:tabular-nums}
.sales-merged-table col.sales-col-product{width:18%}
.sales-merged-table col.sales-col-platform{width:3.75%}
.sales-merged-table col.sales-col-total{width:4.5%}
.sales-merged-table col.sales-col-stock{width:7%}
.sales-merged-table col.sales-col-daily{width:5.5%}
.sales-merged-table col.sales-col-days{width:5.5%}
.sales-merged-table col.sales-col-suggest{width:6.5%}
.sales-merged-table col.sales-col-status{width:9%}
.sales-merged-table col.sales-col-action{width:7%}
.sales-merged-table th,.sales-merged-table td{box-sizing:border-box;text-align:center!important;vertical-align:middle}
.sales-merged-table th:first-child,.sales-merged-table td:first-child{text-align:left!important}
.sales-merged-table td:nth-child(10),.sales-merged-table td:nth-child(11),.sales-merged-table td:nth-child(12),.sales-merged-table td:nth-child(13),.sales-merged-table td:nth-child(15){font-weight:650}
.sales-merged-table tbody td{font-variant-numeric:tabular-nums}

.restock-cart-items-table{table-layout:fixed;font-variant-numeric:tabular-nums}
.restock-cart-items-table col.cart-col-product{width:17%}
.restock-cart-items-table col.cart-col-platform{width:3.2%}
.restock-cart-items-table col.cart-col-total{width:4.5%}
.restock-cart-items-table col.cart-col-stock{width:5.5%}
.restock-cart-items-table col.cart-col-daily{width:4.8%}
.restock-cart-items-table col.cart-col-monthly{width:5.3%}
.restock-cart-items-table col.cart-col-days{width:4.8%}
.restock-cart-items-table col.cart-col-target{width:7%}
.restock-cart-items-table col.cart-col-suggest{width:6.5%}
.restock-cart-items-table col.cart-col-request{width:8%}
.restock-cart-items-table col.cart-col-action{width:5.5%}
.restock-cart-items-table th,.restock-cart-items-table td{box-sizing:border-box;text-align:center!important;vertical-align:middle;font-variant-numeric:tabular-nums}
.restock-cart-items-table th:first-child,.restock-cart-items-table td:first-child{text-align:left!important}
.restock-cart-items-table .cart-monthly-cell{color:#315f83;font-weight:750}
.restock-cart-items-table .cart-suggest-cell{text-align:center!important}
.restock-cart-items-table .cart-qty.compact{text-align:center}
.restock-cart-items-table .cart-target-input-wrap.compact input{text-align:center}
.restock-cart-items-table .cart-product strong,.restock-cart-items-table .cart-product small{max-width:100%}

@media (max-width:1050px){
  .sales-table-panel #salesPager{justify-content:flex-end}
  .sales-table-panel #salesPager .page-size{width:auto}
}
.sales-merged-table th:nth-child(n),.restock-cart-items-table th:nth-child(n){width:auto}

/* restock-formula-hide-sku-v9: 增速榜隐藏SKU后的紧凑布局 */
.growth-kpi-featured #salesGrowthChampionSku[hidden]{display:none}
.growth-preview-product{gap:0}
.growth-preview-product strong{font-size:13px;line-height:1.35}
.sales-growth-ranking-table table{min-width:720px}
.sales-growth-ranking-table th:nth-child(2),.sales-growth-ranking-table td:nth-child(2){text-align:left;min-width:260px}


/* product-batch-modal-v13 */
.product-batch-link{appearance:none;border:0;background:transparent;color:#173d5f;padding:0;margin:0;font:inherit;font-weight:650;text-align:left;cursor:pointer;line-height:1.35}
.product-batch-link:hover,.product-batch-link:focus-visible{color:#147fc2;text-decoration:underline;text-underline-offset:3px;outline:none}
.product-batch-dialog{width:min(1040px,94vw);max-height:88vh;border:0;border-radius:18px;padding:0;overflow:hidden;box-shadow:0 24px 70px rgba(20,52,78,.28);color:#173d5f}
.product-batch-dialog::backdrop{background:rgba(27,54,76,.48);backdrop-filter:blur(2px)}
.product-batch-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:20px 22px 15px;background:linear-gradient(180deg,#f5fbff,#edf7ff);border-bottom:1px solid #d5e7f5}
.product-batch-head h3{margin:2px 0 3px;font-size:20px}
.product-batch-meta{margin:0;color:#718ba0;font-size:12px}
.product-batch-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:14px 22px}
.product-batch-summary>div{border:1px solid #dbeaf5;border-radius:11px;background:#f8fcff;padding:10px 12px}
.product-batch-summary span{display:block;color:#728ca1;font-size:11px;margin-bottom:4px}
.product-batch-summary strong{font-size:18px;color:#164a70;font-variant-numeric:tabular-nums}
.product-batch-table-wrap{margin:0 22px;max-height:52vh;overflow:auto;border:1px solid #d7e6f1;border-radius:11px}
.product-batch-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}
.product-batch-table th{position:sticky;top:0;z-index:1;background:#eaf5fd;color:#315c7c;font-weight:750;padding:10px 8px;white-space:nowrap}
.product-batch-table td{padding:10px 8px;border-top:1px solid #e4eef5;text-align:center;font-variant-numeric:tabular-nums}
.product-batch-table tr:nth-child(even) td{background:#fbfdff}

.badge.notice{background:#fff3bf;color:#855d00}
.product-batch-footnote{margin:12px 22px 18px;color:#7b91a3;font-size:11px}
@media(max-width:760px){.product-batch-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.product-batch-table{min-width:760px}}


/* product-batch-align-v15
   批次弹窗：使用 colgroup 固定列宽，并让表头/数据采用完全一致的对齐方式。 */
.product-batch-table{
  width:100%;
  table-layout:fixed;
  border-collapse:collapse;
}
.product-batch-table th,
.product-batch-table td{
  box-sizing:border-box;
  text-align:center;
  vertical-align:middle;
  white-space:nowrap;
  line-height:1.35;
  font-variant-numeric:tabular-nums;
}
.product-batch-table th{
  padding:10px 6px;
}
.product-batch-table td{
  padding:10px 6px;
}
.product-batch-table th:first-child,
.product-batch-table td:first-child{
  padding-left:8px;
  padding-right:8px;
}
.product-batch-table td:nth-child(5){
  font-weight:650;
}
.product-batch-table td:nth-child(7){
  text-align:center;
}


/* product-alerts-v18: scalable workspace layout, compact command bars and expandable platform columns */
:root{
  --workspace-bg:#f4f8fc;
  --workspace-card:#ffffff;
  --workspace-soft:#f7fbff;
  --workspace-soft-blue:#edf7ff;
  --workspace-border:#d7e6f2;
  --workspace-ink:#173550;
  --workspace-muted:#71879a;
  --workspace-primary:#2788ce;
  --workspace-primary-dark:#176ba8;
  --workspace-shadow:0 10px 28px rgba(37,91,132,.08);
}
body.product-alerts-v18{background:linear-gradient(180deg,#eef6fc 0,#f7fafc 340px,#f4f8fb 100%);color:var(--workspace-ink)}
.product-alerts-v18 .site-header{position:sticky;top:0;z-index:30;background:linear-gradient(115deg,#55abe4,#348fce 58%,#267fbd);box-shadow:0 4px 18px rgba(31,101,151,.18)}
.product-alerts-v18 .header-inner{max-width:none;padding:12px 22px}
.product-alerts-v18 .brand-mark.small{width:38px;height:38px;border-radius:12px}
.product-alerts-v18 .brand-row h1{font-size:18px}
.product-alerts-v18 .page-shell{max-width:none;padding:14px 18px 48px}
.product-alerts-v18 .tabs{position:sticky;top:62px;z-index:25;padding:5px 7px;border:1px solid rgba(211,229,242,.85);border-radius:12px;box-shadow:0 5px 18px rgba(35,88,128,.07)}
.product-alerts-v18 .tab{padding:9px 16px;border-radius:8px;font-size:13px}
.product-alerts-v18 .section-heading{margin:18px 2px 12px}
.product-alerts-v18 .section-heading h2{font-size:22px}
.product-alerts-v18 .workspace-section-heading>p{max-width:760px;text-align:right;line-height:1.55}
.product-alerts-v18 .panel{border-color:var(--workspace-border);border-radius:14px;box-shadow:var(--workspace-shadow)}

.workspace-commandbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 0 14px;margin-bottom:14px;border-bottom:1px solid #e4edf4}
.workspace-commandbar-title{display:grid;gap:2px;min-width:0}
.workspace-commandbar-title h3{margin:0;font-size:18px;letter-spacing:-.01em}
.workspace-commandbar-title .result-count{margin-top:2px}
.workspace-commandbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.cart-primary-button{display:inline-flex;align-items:center;gap:8px;min-width:150px;justify-content:center}
.button-count{min-width:22px;height:22px;padding:0 7px;border-radius:99px;display:inline-grid;place-items:center;background:rgba(255,255,255,.2);font-size:11px}

.action-menu{position:relative}
.action-menu>summary{list-style:none;display:inline-flex;align-items:center;gap:7px;cursor:pointer;user-select:none}
.action-menu>summary::-webkit-details-marker{display:none}
.action-menu>summary:after{content:"▾";font-size:10px;color:currentColor}
.action-menu[open]>summary{border-color:#6fb8e8;color:#1979b9;background:#f4fbff}
.action-menu-popover{position:absolute;right:0;top:calc(100% + 8px);z-index:40;width:310px;padding:8px;background:#fff;border:1px solid #d8e7f2;border-radius:12px;box-shadow:0 18px 50px rgba(27,68,99,.18)}
.menu-action{width:100%;display:grid;gap:3px;text-align:left;padding:11px 12px;border:0;border-radius:9px;background:transparent;color:var(--workspace-ink)}
.menu-action:hover{background:#edf7ff}
.menu-action strong{font-size:13px}
.menu-action small{font-size:11px;color:var(--workspace-muted);font-weight:500}

.workspace-control-grid{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(460px,1.25fr);gap:12px;margin-bottom:14px}
.control-card{min-width:0;padding:13px;border:1px solid #dce9f3;border-radius:12px;background:linear-gradient(180deg,#fbfdff,#f7fbfe)}
.control-card-restock{grid-column:1/-1}
.control-card-heading{display:flex;align-items:center;gap:9px;margin-bottom:11px}
.control-card-heading>div{display:grid;gap:2px}
.control-card-heading strong{font-size:13px;color:#214963}
.control-card-heading small{font-size:10.5px;color:var(--workspace-muted);font-weight:500}
.control-step{width:23px;height:23px;border-radius:8px;display:grid;place-items:center;background:#dff1fd;color:#1578b8;font-size:11px;font-weight:850;flex:0 0 auto}
.control-fields{display:flex;align-items:end;gap:8px;flex-wrap:wrap}
.control-fields label,.restock-control-fields label{display:grid;gap:5px;color:var(--workspace-muted);font-size:10.5px;font-weight:700}
.control-fields input,.control-fields select,.restock-control-fields input,.restock-control-fields select{height:34px;border:1px solid #d7e4ee;border-radius:8px;padding:6px 9px;background:#fff;color:var(--workspace-ink);outline:none;min-width:132px}
.control-fields input:focus,.control-fields select:focus,.restock-control-fields input:focus,.restock-control-fields select:focus{border-color:#55a8df;box-shadow:0 0 0 3px rgba(66,157,218,.12)}
.control-fields .field-grow{flex:1 1 220px}
.control-fields .field-grow input{width:100%}
.workspace-period-slot{min-width:0!important;display:block}
.workspace-period-slot .period-toolbar{grid-template-columns:minmax(130px,.35fr) minmax(0,1fr);gap:7px 12px}
.workspace-period-slot .period-controls{justify-content:flex-start}
.workspace-period-slot .data-time-strip{justify-content:flex-start;padding:7px 0 0;border-top:1px dashed #dce8f2}
.workspace-period-slot .period-controls select,.workspace-period-slot .period-controls input{height:34px}
.workspace-period-slot .period-controls label{font-size:10.5px}

.restock-control-layout{display:grid;grid-template-columns:minmax(310px,.8fr) minmax(480px,1.2fr);gap:14px;align-items:center}
.restock-control-fields{display:flex;align-items:end;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.restock-control-fields .target-days-field{min-width:190px}
.restock-summary-strip{margin:0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important}
.restock-summary-strip .restock-summary-card,.restock-summary-strip .restock-summary-total{min-height:58px;border:1px solid #dce8f2;border-radius:10px;background:#fff;padding:9px 11px;display:grid;align-content:center;gap:3px;box-shadow:none}
.restock-summary-strip .restock-summary-card:hover{border-color:#7bc0eb;background:#f5fbff}
.restock-summary-strip .restock-summary-card.active{border-color:#2f94d4;background:#e9f6ff;box-shadow:inset 0 0 0 1px rgba(47,148,212,.16)}
.restock-summary-strip small{font-size:10px;color:var(--workspace-muted)}
.restock-summary-strip strong{font-size:18px;color:#174867;font-variant-numeric:tabular-nums}
.formula-status-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding-top:9px;border-top:1px dashed #dce8f2;flex-wrap:wrap}
.formula-chip{display:inline-flex;align-items:center;min-height:27px;padding:5px 9px;border:1px solid #cfe7f7;border-radius:8px;background:#eff8fe;color:#39718f;font-size:10.5px;font-weight:650}
.formula-status-row .target-days-status{margin-left:auto}

.table-viewbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 2px 9px}
.table-viewbar>div:first-child{display:flex;align-items:center;gap:10px;min-width:0}
.table-viewbar strong{font-size:13px}
.table-view-note{font-size:10.5px;color:var(--workspace-muted)}
.table-view-legend{display:flex;gap:12px;font-size:10.5px;color:var(--workspace-muted)}
.table-view-legend span{display:flex;align-items:center;gap:5px}
.legend-dot{width:7px;height:7px;border-radius:50%;display:inline-block}
.legend-dot.urgent{background:#de5d68}.legend-dot.warning{background:#e7a13c}.legend-dot.normal{background:#35a779}

.sales-workspace-panel{padding:16px;margin-bottom:0}
.sales-main-table-wrap,.stock-main-table-wrap{max-height:calc(100vh - 270px);min-height:420px;border-radius:10px}
.sales-merged-table{min-width:1180px;font-variant-numeric:tabular-nums;table-layout:fixed}
.sales-merged-table th,.sales-merged-table td{padding:8px 7px;text-align:right;vertical-align:middle}
.sales-merged-table th{height:38px;font-size:10px;text-align:center;background:#edf7ff;box-shadow:0 1px 0 #dce9f3}
.sales-merged-table th:first-child,.sales-merged-table td:first-child{text-align:left;position:sticky;left:0;z-index:2;background:#fff}
.sales-merged-table thead th:first-child{z-index:4;background:#eaf5fd}
.sales-merged-table th:last-child,.sales-merged-table td:last-child{position:sticky;right:0;z-index:2;background:#fff;text-align:center}
.sales-merged-table thead th:last-child{z-index:4;background:#eaf5fd}
.sales-merged-table tbody tr:nth-child(even) td{background:#fbfdff}
.sales-merged-table tbody tr:nth-child(even) td:first-child,.sales-merged-table tbody tr:nth-child(even) td:last-child{background:#fbfdff}
.sales-merged-table.platform-columns-hidden{min-width:980px}
.sales-merged-table.platform-columns-hidden th:nth-child(n+2):nth-child(-n+9),.sales-merged-table.platform-columns-hidden td:nth-child(n+2):nth-child(-n+9){display:none}
.sales-merged-table.platform-columns-hidden col:nth-child(n+2):nth-child(-n+9){width:0!important}
.sales-merged-table.platform-columns-hidden .sales-col-product{width:28%}
.sales-merged-table.platform-columns-hidden .sales-col-total{width:8%}
.sales-merged-table.platform-columns-hidden .sales-col-stock{width:9%}
.sales-merged-table.platform-columns-hidden .sales-col-daily{width:9%}
.sales-merged-table.platform-columns-hidden .sales-col-days{width:8%}
.sales-merged-table.platform-columns-hidden .sales-col-suggest{width:9%}
.sales-merged-table.platform-columns-hidden .sales-col-status{width:9%}
.sales-merged-table.platform-columns-hidden .sales-col-action{width:7%}
.sales-merged-table .product-with-image{min-width:0}
.sales-merged-table .product-thumb-button,.sales-merged-table .product-thumb-empty{width:34px;height:34px;flex-basis:34px;border-radius:7px}
.sales-merged-table .product-with-image>span,.sales-merged-table .product-with-image>div{min-width:0}

.sales-growth-panel{padding:13px 16px;margin-bottom:12px;transition:box-shadow .18s ease,border-color .18s ease}
.sales-growth-panel.is-collapsed .sales-growth-content{display:none}
.sales-growth-panel.is-collapsed .sales-growth-toolbar{margin:0}
.sales-growth-panel.is-collapsed .growth-help{margin-bottom:0}
.sales-growth-panel .sales-growth-content{padding-top:12px}

.stock-workspace-panel{padding:16px}
.stock-commandbar{margin-bottom:12px}
.stock-kpi-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:12px}
.stock-kpi-item{min-width:0;padding:12px 14px;border:1px solid #dce8f2;border-radius:11px;background:#fff;position:relative;overflow:hidden}
.stock-kpi-item:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#87a8bd}
.stock-kpi-item.success:before{background:#2fa676}.stock-kpi-item.warning:before{background:#e6a13b}.stock-kpi-item.danger:before{background:#dc5d68}.stock-kpi-item.neutral:before{background:#5e9ed0}
.stock-kpi-item span{font-size:10.5px;color:var(--workspace-muted)}
.stock-kpi-item strong{display:block;margin:4px 0 2px;font-size:23px;color:#173f5d}
.stock-kpi-item small{font-size:10px;color:#91a2b0}
.stock-control-grid{grid-template-columns:minmax(320px,.8fr) minmax(500px,1.2fr)}
.stock-main-table{min-width:1050px;font-variant-numeric:tabular-nums}
.stock-main-table th,.stock-main-table td{text-align:center;padding:9px 10px}
.stock-main-table th:first-child,.stock-main-table td:first-child{text-align:left;position:sticky;left:0;z-index:2;background:#fff}
.stock-main-table thead th:first-child{z-index:4;background:#eaf5fd}

.restock-cart-main-dialog{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;width:min(98vw,1820px);height:min(94vh,980px);max-height:none;border-radius:16px;overflow:hidden}
.restock-cart-main-dialog:not([open]){display:none}
.restock-cart-modal-head{margin:0;border-bottom:1px solid #dce9f3;background:linear-gradient(180deg,#f9fcff,#f2f9fe)}
.restock-cart-modal-head .eyebrow{margin-bottom:3px}
.restock-cart-head-actions{display:flex;align-items:center;gap:8px}
.restock-cart-summarybar{display:flex;align-items:stretch;gap:8px;padding:9px 12px;border-bottom:1px solid #e1ebf3;background:#fff;overflow-x:auto}
.restock-cart-summarybar>span:not(.formula-chip){min-width:130px;padding:7px 10px;border:1px solid #dce8f2;border-radius:9px;background:#f8fbfe;display:grid;gap:2px}
.restock-cart-summarybar small{font-size:9.5px;color:var(--workspace-muted)}
.restock-cart-summarybar strong{font-size:17px;color:#194765;font-variant-numeric:tabular-nums}
.restock-cart-summarybar .formula-chip{margin-left:auto;align-self:center;white-space:nowrap}
.restock-cart-main-dialog>.restock-table-wrap{min-height:0;max-height:none!important;margin:10px 12px 8px!important;overflow:auto!important}
.restock-cart-items-table{min-width:1220px!important}
.restock-cart-items-table.platform-columns-hidden{min-width:1080px!important}
.restock-cart-items-table.platform-columns-hidden th:nth-child(n+2):nth-child(-n+9),.restock-cart-items-table.platform-columns-hidden td:nth-child(n+2):nth-child(-n+9){display:none}
.restock-cart-items-table.platform-columns-hidden col:nth-child(n+2):nth-child(-n+9){width:0!important}
.restock-cart-items-table.platform-columns-hidden col.cart-col-product{width:24%}
.restock-cart-items-table.platform-columns-hidden col.cart-col-total{width:7%}
.restock-cart-items-table.platform-columns-hidden col.cart-col-stock{width:8%}
.restock-cart-items-table.platform-columns-hidden col.cart-col-daily{width:7%}
.restock-cart-items-table.platform-columns-hidden col.cart-col-monthly{width:7%}
.restock-cart-items-table.platform-columns-hidden col.cart-col-days{width:7%}
.restock-cart-items-table.platform-columns-hidden col.cart-col-target{width:10%}
.restock-cart-items-table.platform-columns-hidden col.cart-col-suggest{width:8%}
.restock-cart-items-table.platform-columns-hidden col.cart-col-request{width:9%}
.restock-cart-items-table.platform-columns-hidden col.cart-col-action{width:6%}
.restock-cart-items-table th{position:sticky;top:0;z-index:3}
.restock-cart-items-table th:first-child,.restock-cart-items-table td:first-child{position:sticky;left:0;z-index:2;background:#fff}
.restock-cart-items-table thead th:first-child{z-index:5;background:#eaf5fd}
.restock-cart-items-table th:last-child,.restock-cart-items-table td:last-child{position:sticky;right:0;z-index:2;background:#fff}
.restock-cart-items-table thead th:last-child{z-index:5;background:#eaf5fd}
.restock-cart-main-dialog .restock-cart-footer{position:relative;z-index:4;padding:8px 12px 10px!important;border-top:1px solid #dce9f3;background:#fff;box-shadow:0 -8px 20px rgba(31,77,111,.05)}
.collapsible-history{margin:0 12px 12px;border:1px solid #dce8f2;border-radius:10px;background:#fbfdff;overflow:hidden}
.collapsible-history>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;cursor:pointer;list-style:none;color:#254f6d;font-weight:750}
.collapsible-history>summary::-webkit-details-marker{display:none}
.collapsible-history>summary:after{content:"展开 ▾";font-size:10px;color:#71879a}
.collapsible-history[open]>summary:after{content:"收起 ▴"}
.collapsible-history>summary small{margin-left:auto;color:#8a9cab;font-size:10px;font-weight:500}
.collapsible-history .restock-table-wrap{margin:0!important;border-width:1px 0 0!important;border-radius:0!important;max-height:240px!important}

.product-alerts-v18 .pager{margin-top:10px;padding-top:2px}
.product-alerts-v18 .pager .page-size{margin-right:0;order:2}
.product-alerts-v18 .pager .result-count{margin-right:auto;order:1}
.product-alerts-v18 .pager button{order:3}

@media(max-width:1100px){
  .workspace-control-grid,.stock-control-grid{grid-template-columns:1fr}
  .control-card-restock{grid-column:auto}
  .restock-control-layout{grid-template-columns:1fr}
  .restock-control-fields{justify-content:flex-start}
  .workspace-commandbar{align-items:flex-start}
  .workspace-commandbar-actions{max-width:48%}
  .workspace-period-slot .period-toolbar{grid-template-columns:1fr}
  .stock-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
  .product-alerts-v18 .tabs{top:58px}
  .workspace-commandbar{display:grid}
  .workspace-commandbar-actions{max-width:none;justify-content:flex-start}
  .workspace-commandbar-actions>*{flex:1 1 auto}
  .action-menu-popover{left:0;right:auto;width:min(310px,calc(100vw - 36px))}
  .restock-summary-strip{grid-template-columns:1fr 1fr!important}
  .restock-summary-total{grid-column:1/-1}
  .stock-kpi-strip{grid-template-columns:1fr 1fr}
  .table-view-note,.table-view-legend{display:none}
  .restock-cart-summarybar .formula-chip{display:none}
}
/* hidden platform mode uses automatic table layout so remaining business columns expand correctly */
.sales-merged-table.platform-columns-hidden{table-layout:auto!important}
.sales-merged-table.platform-columns-hidden col{width:auto!important}
.sales-merged-table.platform-columns-hidden th:first-child{min-width:250px;width:30%}
.sales-merged-table.platform-columns-hidden th:nth-child(10){min-width:88px}
.sales-merged-table.platform-columns-hidden th:nth-child(11),.sales-merged-table.platform-columns-hidden th:nth-child(12){min-width:105px}
.sales-merged-table.platform-columns-hidden th:nth-child(13),.sales-merged-table.platform-columns-hidden th:nth-child(14),.sales-merged-table.platform-columns-hidden th:nth-child(15){min-width:90px}
.sales-merged-table.platform-columns-hidden th:nth-child(16){min-width:92px}
.sales-merged-table.platform-columns-hidden th:nth-child(17){min-width:70px}
.restock-cart-items-table.platform-columns-hidden{table-layout:auto!important}
.restock-cart-items-table.platform-columns-hidden col{width:auto!important}
.restock-cart-items-table.platform-columns-hidden th:first-child{min-width:260px;width:24%}
.restock-cart-items-table.platform-columns-hidden th:nth-child(10){min-width:80px}
.restock-cart-items-table.platform-columns-hidden th:nth-child(11),.restock-cart-items-table.platform-columns-hidden th:nth-child(12){min-width:92px}
.restock-cart-items-table.platform-columns-hidden th:nth-child(13),.restock-cart-items-table.platform-columns-hidden th:nth-child(14),.restock-cart-items-table.platform-columns-hidden th:nth-child(15){min-width:88px}
.restock-cart-items-table.platform-columns-hidden th:nth-child(16){min-width:105px}
.restock-cart-items-table.platform-columns-hidden th:nth-child(17),.restock-cart-items-table.platform-columns-hidden th:nth-child(18){min-width:100px}
.restock-cart-items-table.platform-columns-hidden th:nth-child(19){min-width:65px}


/* product-alerts-v18 */
.alert-tab-button{display:inline-flex;align-items:center;gap:7px}.tab-count{display:inline-grid;place-items:center;min-width:23px;height:20px;padding:0 6px;border-radius:999px;background:#f1e9ff;color:#6e3db4;font-size:11px;font-weight:800}.tab.active .tab-count{background:rgba(255,255,255,.22);color:#fff}
.product-alert-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.product-alert-kpi{min-height:116px;padding:18px;border:1px solid #d8e7f3;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(34,76,112,.06);display:flex;flex-direction:column;gap:6px}.product-alert-kpi span{font-size:13px;color:#657f98}.product-alert-kpi strong{font-size:28px;color:#183d62}.product-alert-kpi small{color:#8297aa}.product-alert-kpi.new{border-top:3px solid #8b5cc7;background:linear-gradient(145deg,#fff 60%,#f5efff)}.product-alert-kpi.dormant{border-top:3px solid #a34a56;background:linear-gradient(145deg,#fff 60%,#fff0f2)}.product-alert-kpi.total{border-top:3px solid #398fd0}.product-alert-kpi.coverage{border-top:3px solid #6d8ca7}.product-alert-kpi.coverage strong{font-size:16px;line-height:1.35}
.product-alert-workspace{overflow:visible}.product-alert-rules{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px 18px;background:#f7fbfe;border-bottom:1px solid #e1edf6}.product-alert-rules>div{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:12px;font-size:13px;line-height:1.6}.product-alert-rules strong{white-space:nowrap}.rule-new{background:#f4effd;color:#654093;border:1px solid #dfd1f4}.rule-dormant{background:#fff0f2;color:#873d48;border:1px solid #f0cbd1}.product-alert-filters{display:flex;align-items:end;gap:12px;padding:14px 18px;border-bottom:1px solid #e5eef5}.product-alert-filters label{display:grid;gap:6px;color:#57718a;font-size:12px}.product-alert-filters .field-grow{min-width:260px;flex:1}.product-alert-table-wrap{max-height:58vh}.product-alert-table th{position:sticky;top:0;z-index:2}.product-alert-table td{vertical-align:middle}.product-alert-row-new{background:linear-gradient(90deg,rgba(139,92,199,.09),rgba(139,92,199,.02) 42%,transparent)}.product-alert-row-dormant{background:linear-gradient(90deg,rgba(163,74,86,.10),rgba(163,74,86,.02) 42%,transparent)}.product-alert-row-new td:first-child{box-shadow:inset 4px 0 #8b5cc7}.product-alert-row-dormant td:first-child{box-shadow:inset 4px 0 #a34a56}.product-alert-inline-tag,.product-alert-type-tag{display:inline-flex;align-items:center;justify-content:center;width:max-content;border-radius:999px;padding:3px 8px;font-size:10px;font-weight:800;white-space:nowrap}.product-with-image .product-alert-inline-tag{margin-left:8px}.alert-new{background:#efe5fb;color:#7042a8;border:1px solid #d7c1ee}.alert-dormant{background:#fde6e9;color:#913f4b;border:1px solid #efc1c8}
.product-alert-notice-dialog{width:min(680px,calc(100vw - 32px));border:0;border-radius:20px;padding:0;box-shadow:0 30px 90px rgba(25,50,72,.30);overflow:hidden}.product-alert-notice-dialog::backdrop{background:rgba(31,55,75,.55);backdrop-filter:blur(3px)}.product-alert-notice-head{display:flex;justify-content:space-between;gap:20px;padding:22px 24px;background:#f4f9fd;border-bottom:1px solid #dbe9f4}.product-alert-notice-head h3{margin:3px 0 5px;color:#173f65;font-size:22px}.product-alert-notice-head p{margin:0;color:#70879d}.product-alert-notice-counts{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:20px 24px}.product-alert-notice-counts>div{padding:18px;border-radius:14px;display:flex;justify-content:space-between;align-items:center}.product-alert-notice-counts span{font-weight:700}.product-alert-notice-counts strong{font-size:30px}.notice-new{background:#f3ecfc;color:#6a3e9b;border:1px solid #ddcdf1}.notice-dormant{background:#fdecef;color:#8d3d49;border:1px solid #efc7ce}.product-alert-notice-coverage{margin:0 24px;padding:12px 14px;border-radius:10px;background:#f7fafc;color:#647d92;font-size:12px}.product-alert-notice-actions{display:flex;justify-content:flex-end;gap:10px;padding:18px 24px 22px}
@media(max-width:1100px){.product-alert-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.product-alert-rules{grid-template-columns:1fr}.product-alert-table{min-width:1320px}}@media(max-width:680px){.product-alert-kpis{grid-template-columns:1fr}.product-alert-filters{align-items:stretch;flex-direction:column}.product-alert-filters .field-grow{min-width:0}.product-alert-notice-counts{grid-template-columns:1fr}}

/* product-alerts-v18-1 */
.product-alert-source-note{margin:0;padding:10px 18px;border-bottom:1px solid #e5eef5;background:#fbfdff;color:#58748e;font-size:12px;font-weight:700}

/* ranking-navigation-v18-2: explicit parent navigation and stable modal backdrop */
.growth-back-button{white-space:nowrap}
.growth-navigation-help{margin:12px 0 0;text-align:center;color:#71899d;font-size:12px}

/* ai-business-assistant-v19-2: internal read-only DeepSeek assistant */
.ai-config-panel{overflow:visible}.ai-config-title{align-items:flex-start}.ai-security-notice{margin:0 0 14px;padding:11px 14px;border:1px solid #f1d79c;border-radius:11px;background:#fffaf0;color:#74551d;font-size:12px;line-height:1.65}.ai-config-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ai-config-grid label:not(.permission-check){display:grid;gap:7px;color:var(--muted);font-size:12px;font-weight:700}.ai-config-grid input,.ai-config-grid select{height:40px;border:1px solid #d5e5f1;border-radius:10px;padding:8px 11px;background:#fff;color:var(--ink);outline:none;min-width:0}.ai-config-grid input:focus,.ai-config-grid select:focus{border-color:#4b9fe8;box-shadow:0 0 0 3px rgba(75,159,232,.14)}.ai-config-grid input[readonly]{background:#f4f8fb;color:#698198}.ai-enable-check{height:40px;align-items:center;padding:0 12px;border:1px solid #d5e5f1;border-radius:10px;background:#f8fcff}.ai-usage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}.ai-usage-grid>div{display:grid;gap:3px;padding:11px 13px;border:1px solid #dce9f3;border-radius:11px;background:#f8fbfd}.ai-usage-grid span{font-size:11px;color:#6d8397}.ai-usage-grid strong{font-size:17px;color:#254c6c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ai-usage-grid small{font-size:10px;color:#91a2b0}.ai-config-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:15px}
.ai-assistant-root{position:fixed;right:24px;bottom:24px;z-index:120;display:flex;align-items:flex-end;justify-content:flex-end;touch-action:none}.ai-launcher{width:104px;height:52px;border:0;border-radius:18px;background:linear-gradient(135deg,#5bb4ec,#237fc2);color:#fff;box-shadow:0 14px 34px rgba(24,109,170,.32);display:flex;align-items:center;justify-content:center;gap:8px;padding:0 13px;font-weight:800;position:relative;user-select:none;transition:transform .18s ease,box-shadow .18s ease;cursor:pointer}.ai-launcher:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(24,109,170,.38)}.ai-launcher:focus-visible{outline:3px solid rgba(75,159,232,.34);outline-offset:3px}.ai-launcher-logo{width:32px;height:32px;border-radius:11px;display:grid;place-items:center;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.32);font-size:13px;letter-spacing:-.03em}.ai-launcher-label{font-size:13px;white-space:nowrap}.ai-launcher-dot{position:absolute;right:-1px;top:-2px;width:12px;height:12px;border-radius:50%;background:#32c888;border:3px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.18)}.ai-launcher-dot.offline{background:#e9a33f}.ai-launcher-dot.disabled{background:#9bacbb}
.ai-window{width:min(900px,calc(100vw - 32px));height:min(710px,calc(100vh - 58px));background:#fff;border:1px solid #cfe3f2;border-radius:20px;box-shadow:0 24px 80px rgba(20,64,98,.28);overflow:hidden;display:flex;flex-direction:column;transform-origin:bottom right;animation:aiWindowIn .2s ease}.ai-window[hidden]{display:none}@keyframes aiWindowIn{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}.ai-window-header{height:64px;flex:0 0 64px;background:linear-gradient(118deg,#58ade5,#2d83c4);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 15px;cursor:move;user-select:none}.ai-window-title,.ai-window-actions{display:flex;align-items:center;gap:10px}.ai-window-title>div{display:grid;gap:2px}.ai-window-title strong{font-size:15px;letter-spacing:-.01em}.ai-window-title small{font-size:10px;color:rgba(255,255,255,.82)}.ai-icon-button,.ai-header-button{border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.12);color:#fff;border-radius:9px;height:34px;display:grid;place-items:center;cursor:pointer}.ai-icon-button{width:34px;font-size:20px;line-height:1}.ai-header-button{padding:0 11px;font-size:12px;font-weight:750}.ai-icon-button:hover,.ai-header-button:hover{background:rgba(255,255,255,.22)}.ai-window-body{display:flex;min-height:0;flex:1;background:#f7fbfe}.ai-history-pane{width:250px;flex:0 0 250px;border-right:1px solid #dcebf5;background:#f3f9fd;padding:13px;overflow:hidden;display:flex;flex-direction:column;transition:width .2s ease,padding .2s ease,opacity .2s ease}.ai-history-collapsed .ai-history-pane{width:0;flex-basis:0;padding-left:0;padding-right:0;opacity:0;border-right:0;pointer-events:none}.ai-history-head{display:flex;align-items:center;justify-content:space-between;padding:3px 4px 9px;color:#315a79;font-size:12px}.ai-history-head button{border:0;background:transparent;color:#8096a7;font-size:11px;padding:3px 5px;cursor:pointer}.ai-history-head button:hover{color:#bd3948}.ai-history-search{width:100%;height:34px;border:1px solid #d6e7f3;border-radius:9px;background:#fff;padding:0 10px;margin-bottom:9px;font-size:11px;color:#345c78;outline:none}.ai-history-search:focus{border-color:#84c1e9;box-shadow:0 0 0 3px rgba(75,159,232,.1)}.ai-conversation-list{overflow-y:auto;display:grid;gap:7px;padding-right:2px}.ai-history-empty{color:#8ca0b0;text-align:center;font-size:12px;padding:28px 5px}.ai-conversation-item{border:1px solid transparent;background:transparent;border-radius:10px;padding:9px 30px 9px 10px;display:grid;gap:4px;position:relative;cursor:pointer;min-width:0}.ai-conversation-item:hover{background:#e9f5fd;border-color:#d4eafa}.ai-conversation-item.active{background:#dff1fc;border-color:#b9dcf3}.ai-conversation-item strong{font-size:12px;color:#254d6b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ai-conversation-item small{font-size:10px;color:#8aa0b2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ai-conversation-delete{position:absolute;right:5px;top:7px;width:24px;height:24px;border:0;border-radius:7px;background:transparent;color:#9aabba;font-size:17px;display:grid;place-items:center;opacity:0;cursor:pointer}.ai-conversation-item:hover .ai-conversation-delete,.ai-conversation-item.active .ai-conversation-delete{opacity:1}.ai-conversation-delete:hover{background:#fff1f3;color:#c23949}
.ai-chat-pane{min-width:0;flex:1;display:flex;flex-direction:column;background:#fff}.ai-messages{flex:1;min-height:0;overflow-y:auto;padding:22px 24px 12px;scroll-behavior:smooth}.ai-welcome{max-width:650px;margin:28px auto 18px;text-align:center;color:#31536d}.ai-welcome-mark{width:58px;height:58px;border-radius:19px;margin:0 auto 14px;display:grid;place-items:center;background:linear-gradient(135deg,#6db9e9,#2c82c4);color:#fff;font-weight:900;box-shadow:0 12px 26px rgba(46,132,195,.22)}.ai-welcome h3{margin:0 0 9px;font-size:20px;color:#173f5e}.ai-welcome p{font-size:12px;line-height:1.75;color:#7990a2;margin:0 auto 18px;max-width:560px}.ai-suggestion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;text-align:left}.ai-suggestion-grid button{border:1px solid #d8e9f5;background:#f7fbfe;color:#315e7d;border-radius:11px;padding:11px 12px;font-size:12px;text-align:left;transition:.16s;cursor:pointer}.ai-suggestion-grid button:hover{border-color:#91c9ee;background:#edf8ff;transform:translateY(-1px)}.ai-message-row{display:flex;margin:0 0 16px;gap:9px;align-items:flex-start}.ai-message-row.user{justify-content:flex-end}.ai-message-avatar{width:30px;height:30px;border-radius:10px;flex:0 0 30px;display:grid;place-items:center;font-size:10px;font-weight:850;background:#e4f3fc;color:#2679b6}.ai-message-row.user .ai-message-avatar{order:2;background:#3f92cf;color:#fff}.ai-message-content{max-width:min(700px,84%);min-width:0}.ai-message-bubble{border-radius:15px;padding:11px 14px;font-size:13px;line-height:1.72;white-space:pre-wrap;word-break:break-word;color:#25445c;background:#f1f7fb;border:1px solid #e1edf5;box-shadow:0 3px 10px rgba(43,104,154,.04)}.ai-message-row.user .ai-message-bubble{background:linear-gradient(135deg,#59aee4,#3389c8);color:#fff;border-color:transparent;border-bottom-right-radius:5px}.ai-message-row.assistant .ai-message-bubble{border-bottom-left-radius:5px}.ai-message-bubble strong{color:inherit}.ai-message-bubble ul,.ai-message-bubble ol{margin:7px 0 7px 20px;padding:0}.ai-message-bubble p{margin:0 0 7px}.ai-message-bubble p:last-child{margin-bottom:0}.ai-answer-table-wrap{overflow:auto;margin:9px 0;border:1px solid #d7e7f2;border-radius:10px;background:#fff}.ai-answer-table{border-collapse:collapse;min-width:100%;font-size:11px}.ai-answer-table th,.ai-answer-table td{padding:7px 9px;border-bottom:1px solid #e7eff5;text-align:left;white-space:nowrap}.ai-answer-table th{background:#eef7fd;color:#315d7d}.ai-message-meta{font-size:10px;color:#94a6b4;margin-top:5px}.ai-evidence{margin-top:7px;border:1px solid #dbe8f1;border-radius:9px;background:#fbfdff;font-size:10px;color:#627b90}.ai-evidence summary{padding:6px 9px;cursor:pointer;font-weight:750}.ai-evidence ul{margin:0;padding:0 9px 8px 24px}.ai-evidence li{margin:3px 0}.ai-typing{min-height:34px;padding:4px 24px 8px;display:flex;align-items:center;gap:4px;color:#7c91a2;font-size:11px}.ai-typing[hidden]{display:none}.ai-typing span{width:6px;height:6px;border-radius:50%;background:#4b9fe8;animation:aiDot 1.1s infinite ease-in-out}.ai-typing span:nth-child(2){animation-delay:.14s}.ai-typing span:nth-child(3){animation-delay:.28s}.ai-typing em{font-style:normal;margin-left:5px}@keyframes aiDot{0%,70%,100%{transform:translateY(0);opacity:.4}35%{transform:translateY(-4px);opacity:1}}.ai-composer{margin:0 17px 7px;border:1px solid #cfe2f0;border-radius:15px;background:#fff;display:flex;align-items:flex-end;gap:9px;padding:8px;box-shadow:0 7px 24px rgba(48,104,145,.09)}.ai-composer:focus-within{border-color:#6fb5e6;box-shadow:0 0 0 3px rgba(75,159,232,.12),0 7px 24px rgba(48,104,145,.09)}.ai-composer textarea{flex:1;min-width:0;max-height:120px;resize:none;border:0;outline:0;background:transparent;color:#203f57;padding:6px 7px;line-height:1.5;font:inherit;font-size:13px}.ai-composer textarea::placeholder{color:#9cafbd}.ai-composer button{height:36px;min-width:58px;border:0;border-radius:10px;background:linear-gradient(135deg,#59aee4,#2d82c3);color:#fff;font-size:12px;font-weight:800;padding:0 12px;cursor:pointer}.ai-composer button:disabled{opacity:.5;cursor:not-allowed}.ai-disclaimer{font-size:10px;color:#92a4b1;text-align:center;padding:0 12px 10px;line-height:1.5}.ai-disclaimer span{display:inline-block;border-radius:999px;padding:1px 6px;margin-right:3px;background:#e7f7ef;color:#218257;font-weight:800}.ai-disclaimer b{margin-left:6px;color:#5c7890;font-weight:700}
@media(max-width:1120px){.ai-config-grid,.ai-usage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.ai-config-grid,.ai-usage-grid{grid-template-columns:1fr}.ai-assistant-root{right:12px;bottom:12px}.ai-launcher{width:54px;height:54px;border-radius:18px;padding:0}.ai-launcher-label{display:none}.ai-window{position:fixed;inset:8px;width:auto;height:auto;border-radius:17px}.ai-window-header{cursor:default}.ai-history-pane{position:absolute;left:0;top:64px;bottom:0;z-index:4;box-shadow:12px 0 30px rgba(26,74,108,.16)}.ai-history-collapsed .ai-history-pane{transform:translateX(-100%);width:250px;flex-basis:250px;padding:13px;opacity:0}.ai-messages{padding:17px 13px 9px}.ai-welcome{margin-top:18px}.ai-suggestion-grid{grid-template-columns:1fr}.ai-message-content{max-width:88%}.ai-composer{margin-left:9px;margin-right:9px}.ai-window-actions .ai-header-button{padding:0 8px}}

/* batch-stock-merge-v19-4 */
.product-batch-dialog{width:min(1180px,96vw)}
.product-batch-summary{grid-template-columns:repeat(5,minmax(0,1fr))}
.product-batch-table{min-width:1020px}
.product-batch-table td:nth-child(5){font-weight:750;color:#164a70}
.product-batch-table td:nth-child(7){text-align:center}
.product-batch-table tr.batch-unmarked-row td{background:#fff8dc!important}
.product-batch-table tr.batch-unmarked-row td:first-child{color:#a06700;font-weight:750}
.batch-source-warning{margin:12px 22px 18px;padding:9px 11px;border:1px solid #f1d895;border-radius:9px;background:#fff9e8;color:#80631a;line-height:1.55}
@media(max-width:900px){.product-batch-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.product-batch-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* batch-stock-hide-detail-v19-4-2: detail-count column removed */

/* jd-canonical-hover-v19-6: row/column crosshair without changing table data */
.hm-crosshair-table tbody tr.hm-hover-row>td{background-color:#edf7ff!important}
.hm-crosshair-table tr>.hm-hover-column{background-color:#f3f8fd!important}
.hm-crosshair-table thead tr>.hm-hover-column{background-color:#dfeffc!important;color:#164a70!important}
.hm-crosshair-table tbody tr.hm-hover-row>.hm-hover-column,
.hm-crosshair-table .hm-hover-cell{background-color:#d6ebfb!important;box-shadow:inset 0 0 0 1px #77afe0!important}
.hm-crosshair-table td,.hm-crosshair-table th{transition:background-color .08s ease,box-shadow .08s ease}
.jd-canonical-rule{margin:7px 0 0;color:#6f8294;font-size:11px;line-height:1.5}

/* stock-days-columns-v19-8: 新增列后的紧凑布局 */
.sales-merged-table{min-width:1260px}
.sales-merged-table.platform-columns-hidden{min-width:1080px}
.sales-merged-table col.sales-col-product{width:17%}
.sales-merged-table col.sales-col-platform{width:3.4%}
.sales-merged-table col.sales-col-total{width:4.5%}
.sales-merged-table col.sales-col-stock{width:6.2%}
.sales-merged-table col.sales-col-daily{width:5.2%}
.sales-merged-table col.sales-col-days{width:5.6%}
.sales-merged-table col.sales-col-suggest{width:5.8%}
.sales-merged-table col.sales-col-status{width:7.5%}
.sales-merged-table col.sales-col-action{width:5.5%}
.sales-merged-table.platform-columns-hidden .sales-col-product{width:25%}
.sales-merged-table.platform-columns-hidden .sales-col-total{width:7%}
.sales-merged-table.platform-columns-hidden .sales-col-stock{width:8%}
.sales-merged-table.platform-columns-hidden .sales-col-daily{width:7%}
.sales-merged-table.platform-columns-hidden .sales-col-days{width:8%}
.sales-merged-table.platform-columns-hidden .sales-col-suggest{width:8%}
.sales-merged-table.platform-columns-hidden .sales-col-status{width:8%}
.sales-merged-table.platform-columns-hidden .sales-col-action{width:6%}
.sales-merged-table .sales-erp-days-cell{color:#315f83}
.sales-merged-table .sales-total-days-cell{color:#16714e;font-weight:800}

.restock-cart-items-table{min-width:1420px!important}
.restock-cart-items-table.platform-columns-hidden{min-width:1260px!important}
.restock-cart-items-table col.cart-col-product{width:15%}
.restock-cart-items-table col.cart-col-platform{width:2.8%}
.restock-cart-items-table col.cart-col-total{width:4%}
.restock-cart-items-table col.cart-col-stock{width:5%}
.restock-cart-items-table col.cart-col-daily{width:4.2%}
.restock-cart-items-table col.cart-col-monthly{width:4.8%}
.restock-cart-items-table col.cart-col-days{width:5.2%}
.restock-cart-items-table col.cart-col-target{width:6.5%}
.restock-cart-items-table col.cart-col-suggest{width:5.8%}
.restock-cart-items-table col.cart-col-request{width:6.8%}
.restock-cart-items-table col.cart-col-action{width:4.5%}
.restock-cart-items-table.platform-columns-hidden col.cart-col-product{width:20%}
.restock-cart-items-table.platform-columns-hidden col.cart-col-total{width:6%}
.restock-cart-items-table.platform-columns-hidden col.cart-col-stock{width:7%}
.restock-cart-items-table.platform-columns-hidden col.cart-col-daily{width:6%}
.restock-cart-items-table.platform-columns-hidden col.cart-col-monthly{width:6%}
.restock-cart-items-table.platform-columns-hidden col.cart-col-days{width:7%}
.restock-cart-items-table.platform-columns-hidden col.cart-col-target{width:8%}
.restock-cart-items-table.platform-columns-hidden col.cart-col-suggest{width:7%}
.restock-cart-items-table.platform-columns-hidden col.cart-col-request{width:8%}
.restock-cart-items-table.platform-columns-hidden col.cart-col-action{width:5%}
.restock-cart-items-table .cart-erp-days-cell{color:#315f83}
.restock-cart-items-table .cart-total-days-cell{color:#16714e;font-weight:800}
.restock-cart-items-table .cart-post-days-cell{background:#f1fbf6!important;color:#126b49;font-weight:850}
.restock-cart-items-table th{overflow-wrap:anywhere}

/* stock-days-columns-v19-8 */

/* sales-workspace-compact-v19-10: compact sales workspace and move actions above table */
.sales-table-viewbar{align-items:center}
.sales-table-viewbar-right{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0;margin-left:auto}
.sales-table-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;justify-content:flex-end}
.sales-table-actions .compact-button{min-height:28px;padding:5px 10px;border-radius:7px;font-size:11px;line-height:1.2;white-space:nowrap}
.sales-table-actions .cart-primary-button{padding-inline:12px}
.sales-table-actions .button-count{min-width:18px;height:18px;font-size:10px}
.sales-table-actions .action-menu-popover{top:calc(100% + 6px)}

@media(min-width:1001px){
  .sales-workspace-panel{padding:12px}
  .sales-workspace-panel .workspace-commandbar{padding-bottom:7px;margin-bottom:8px}
  .sales-workspace-panel .workspace-commandbar-title{gap:1px}
  .sales-workspace-panel .workspace-commandbar-title h3{font-size:16px}
  .sales-workspace-panel .workspace-commandbar-title .result-count{margin-top:0}
  .sales-workspace-panel .workspace-control-grid{gap:8px;margin-bottom:7px}
  .sales-workspace-panel .control-card{padding:9px 10px;border-radius:10px}
  .sales-workspace-panel .control-card-heading{gap:7px;margin-bottom:7px}
  .sales-workspace-panel .control-card-heading strong{font-size:12px}
  .sales-workspace-panel .control-card-heading small{font-size:10px}
  .sales-workspace-panel .control-fields{gap:7px}
  .sales-workspace-panel .control-fields input,
  .sales-workspace-panel .control-fields select,
  .sales-workspace-panel .restock-control-fields input,
  .sales-workspace-panel .restock-control-fields select{height:30px;padding:4px 8px}
  .sales-workspace-panel .workspace-period-slot .period-controls select,
  .sales-workspace-panel .workspace-period-slot .period-controls input{height:30px}
  .sales-workspace-panel .workspace-period-slot .period-toolbar{padding:7px 9px}
  .sales-workspace-panel .workspace-period-slot .data-time-strip{padding-top:5px}
  .sales-workspace-panel .restock-control-layout{gap:10px}
  .sales-workspace-panel .restock-summary-strip .restock-summary-card,
  .sales-workspace-panel .restock-summary-strip .restock-summary-total{min-height:48px;padding:6px 9px}
  .sales-workspace-panel .restock-summary-strip strong{font-size:16px}
  .sales-workspace-panel .formula-status-row{margin-top:7px;padding-top:6px}
  .sales-workspace-panel .formula-chip{min-height:24px;padding:4px 8px}
  .sales-workspace-panel .table-viewbar{padding:6px 2px 5px}
}

@media(max-width:1180px){
  .sales-table-viewbar-right{gap:8px}
  .sales-table-actions{flex-wrap:wrap}
}
@media(max-width:1000px){
  .sales-table-viewbar{align-items:flex-start}
  .sales-table-viewbar-right{width:100%;align-items:flex-start;flex-direction:column}
  .sales-table-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}
  .sales-table-actions>*{flex:0 0 auto!important}
}

/* sales-workspace-compact-v19-10 */

/* sales-visual-polish-v19-11
   低风险视觉优化：不改HTML结构、JavaScript、接口、字段和计算公式。 */
:root{
  --hm-v11-canvas:#f5f7fa;
  --hm-v11-surface:#ffffff;
  --hm-v11-text:#1f2937;
  --hm-v11-text-secondary:#475569;
  --hm-v11-muted:#64748b;
  --hm-v11-border:#dde3ea;
  --hm-v11-divider:#e8ecf1;
  --hm-v11-header:#2f8fd0;
  --hm-v11-primary:#1677c8;
  --hm-v11-primary-hover:#1267ad;
  --hm-v11-hover:#f1f7fc;
  --hm-v11-zebra:#fbfcfd;
  --hm-v11-danger:#c93636;
  --hm-v11-warning:#b76a00;
  --hm-v11-success:#25855a;
}

/* 页面基底与顶部应用栏 */
body{
  background:var(--hm-v11-canvas);
  color:var(--hm-v11-text);
  font-family:"Microsoft YaHei","PingFang SC","Noto Sans SC",Arial,sans-serif;
}
.site-header{
  background:var(--hm-v11-header);
  box-shadow:0 1px 4px rgba(15,58,91,.18);
}
.header-inner{
  min-height:44px;
  padding:7px 14px;
  gap:16px;
}
.brand-row{gap:9px}
.brand-mark.small{
  width:32px;
  height:32px;
  border-radius:8px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.24);
  box-shadow:none;
  font-size:12px;
}
.brand-row h1{
  margin:0;
  font-size:16px;
  line-height:1.25;
  font-weight:650;
  letter-spacing:0;
}
.brand-row .eyebrow{
  margin:0 0 1px;
  font-size:8px;
  letter-spacing:.12em;
}
.header-meta{
  gap:10px;
  font-size:11px;
  color:rgba(255,255,255,.9);
}
.header-meta .status-pill{
  padding:3px 7px;
  font-size:10px;
}
.header-meta .ghost-button{
  min-height:28px;
  padding:0 9px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:6px;
  background:rgba(255,255,255,.1);
  color:#fff;
  box-shadow:none;
}
.header-meta .ghost-button:hover{
  background:rgba(255,255,255,.18);
  transform:none;
}

/* 一级导航 */
.page-shell{padding:10px 12px 44px}
.tabs{
  gap:2px;
  padding:4px 10px;
  border:0;
  border-bottom:1px solid var(--hm-v11-border);
  border-radius:0 0 8px 8px;
  background:#fff;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}
.tab{
  padding:7px 11px;
  border-radius:6px;
  color:#5b6778;
  font-size:12px;
  font-weight:600;
}
.tab:hover{
  background:#eef5fb;
  color:#145f9b;
}
.tab.active{
  background:var(--hm-v11-primary);
  color:#fff;
  box-shadow:none;
}

/* 仅优化销售与补货工作台，不影响其他业务页面结构 */
#sales .section-heading{
  align-items:center;
  margin:14px 2px 10px;
  gap:16px;
}
#sales .section-heading h2{
  margin-top:2px;
  font-size:19px;
  line-height:1.35;
  font-weight:650;
  letter-spacing:0;
}
#sales .section-heading>p{
  color:var(--hm-v11-muted);
  font-size:12px;
}
#sales .eyebrow{
  color:var(--hm-v11-primary);
  letter-spacing:.14em;
}
#sales .panel{
  border:1px solid #e2e7ed;
  border-radius:8px;
  background:var(--hm-v11-surface);
  box-shadow:0 1px 2px rgba(15,23,42,.045);
}
#sales .sales-growth-panel{
  margin-bottom:10px;
  padding:12px 14px;
}
#sales .sales-growth-toolbar h3{
  margin-top:2px;
  font-size:15px;
  font-weight:650;
}
#sales .growth-help,
#sales .sales-growth-meta,
#sales .result-count,
#sales .hint,
#sales .table-view-note{
  color:var(--hm-v11-muted);
}
#sales .growth-help{font-size:11px;line-height:1.5}
#sales .sales-growth-meta{font-size:11px}
#sales .growth-actions{gap:7px}
#sales .growth-actions label{
  gap:4px;
  color:var(--hm-v11-muted);
  font-size:11px;
}
#sales .growth-actions select,
#sales .growth-actions button{
  height:32px;
  min-height:32px;
}

/* 按钮与输入控件统一 */
#sales .primary-button{
  min-height:32px;
  padding:0 12px;
  border:1px solid var(--hm-v11-primary);
  border-radius:6px;
  background:var(--hm-v11-primary);
  color:#fff;
  box-shadow:none;
  font-size:12px;
  font-weight:650;
  transition:background-color .14s ease,border-color .14s ease;
}
#sales .primary-button:hover:not(:disabled){
  border-color:var(--hm-v11-primary-hover);
  background:var(--hm-v11-primary-hover);
  box-shadow:none;
  transform:none;
}
#sales .secondary-button,
#sales .ghost-button{
  min-height:32px;
  padding:0 11px;
  border:1px solid #d5dce5;
  border-radius:6px;
  background:#fff;
  color:#334155;
  box-shadow:none;
  font-size:12px;
  font-weight:600;
  transition:background-color .14s ease,border-color .14s ease,color .14s ease;
}
#sales .secondary-button:hover,
#sales .ghost-button:hover{
  border-color:#aebdca;
  background:#f8fafc;
  color:#145f9b;
  box-shadow:none;
  transform:none;
}
#sales input,
#sales select{
  border-color:#d5dce5;
  border-radius:6px;
  background:#fff;
  color:var(--hm-v11-text);
  box-shadow:none;
  font-size:12px;
}
#sales input:focus,
#sales select:focus{
  border-color:#4b98d1;
  outline:none;
  box-shadow:0 0 0 2px rgba(22,119,200,.12);
}

/* 筛选步骤：弱化卡片套卡片，强化标题与连续关系 */
#sales .sales-workspace-panel,
#sales .sales-table-panel{
  padding:10px 12px;
}
#sales .workspace-commandbar{
  margin-bottom:8px;
  padding-bottom:7px;
  border-bottom:1px solid var(--hm-v11-divider);
}
#sales .workspace-commandbar-title h3{
  color:var(--hm-v11-text);
  font-size:16px;
  font-weight:650;
}
#sales .workspace-control-grid{gap:8px}
#sales .control-card{
  border:1px solid #e5e9ef;
  border-radius:8px;
  background:#f8fafc;
  box-shadow:none;
}
#sales .control-card-heading strong{
  color:var(--hm-v11-text);
  font-size:12px;
  font-weight:650;
}
#sales .control-card-heading small{
  color:var(--hm-v11-muted);
  font-size:10.5px;
}
#sales .control-card-heading .step-index,
#sales .control-step-index{
  background:#e9f3fb;
  color:#176da9;
  box-shadow:none;
}
#sales .workspace-period-slot .period-toolbar{
  border:0;
  border-radius:7px;
  background:#f8fafc;
  box-shadow:none;
}
#sales .formula-status-row{
  border-top:1px dashed #dfe5ec;
}
#sales .formula-chip{
  border:1px solid #e2e7ed;
  border-radius:6px;
  background:#f8fafc;
  color:#475569;
  box-shadow:none;
}

/* 补货指标改成一个紧凑摘要条 */
#sales .restock-summary-strip{
  gap:0;
  overflow:hidden;
  padding:0;
  border:1px solid #e2e7ed;
  border-radius:8px;
  background:#fff;
  box-shadow:none;
}
#sales .restock-summary-strip .restock-summary-card,
#sales .restock-summary-strip .restock-summary-total,
#sales .restock-summary-strip>span{
  min-height:48px;
  padding:7px 12px;
  border:0;
  border-right:1px solid var(--hm-v11-divider);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
#sales .restock-summary-strip>*:last-child{border-right:0}
#sales .restock-summary-strip small{
  color:var(--hm-v11-muted);
  font-size:10.5px;
  font-weight:500;
}
#sales .restock-summary-strip strong{
  color:var(--hm-v11-text);
  font-size:18px;
  font-weight:650;
  font-variant-numeric:tabular-nums;
}
#sales .restock-summary-strip .restock-summary-card:nth-child(1) strong{
  color:var(--hm-v11-danger);
}
#sales .restock-summary-strip .restock-summary-card:nth-child(2) strong{
  color:var(--hm-v11-warning);
}
#sales .restock-summary-strip .restock-summary-card:hover{
  background:#f8fafc;
  box-shadow:none;
  transform:none;
}
#sales .restock-summary-strip .restock-summary-card.active{
  background:#eef6fc;
  box-shadow:inset 0 0 0 1px #9bc7e7;
}

/* 商品明细工具栏 */
#sales .sales-table-viewbar{
  margin-top:8px;
  padding:7px 2px 6px;
  border-top:1px solid var(--hm-v11-divider);
  border-bottom:1px solid var(--hm-v11-divider);
  background:#fff;
}
#sales .sales-table-viewbar strong{
  color:var(--hm-v11-text);
  font-size:13px;
  font-weight:650;
}
#sales .sales-table-viewbar-right{gap:10px}
#sales .sales-table-actions{gap:5px}
#sales .sales-table-actions .compact-button{
  min-height:28px;
  padding:4px 9px;
  border-radius:6px;
  font-size:11px;
}
#sales .table-view-legend{
  gap:8px;
  color:var(--hm-v11-muted);
  font-size:10.5px;
}

/* 高密度表格：名称左对齐、数字右对齐、状态居中 */
#sales .table-wrap{
  border-color:var(--hm-v11-border);
  border-radius:8px;
  background:#fff;
  box-shadow:none;
}
#sales .sales-merged-table{
  color:#334155;
  font-size:clamp(10px,.68vw,12px);
  font-variant-numeric:tabular-nums;
}
#sales .sales-merged-table th{
  padding:8px 5px;
  border-bottom:1px solid #dfe5ec;
  background:#f3f6f9;
  color:#475569;
  font-size:11px;
  font-weight:600;
  line-height:1.25;
  text-align:center!important;
}
#sales .sales-merged-table td{
  padding:8px 5px;
  border-bottom:1px solid #edf0f4;
  color:#334155;
  font-weight:400;
  line-height:1.25;
  text-align:right!important;
}
#sales .sales-merged-table th:first-child,
#sales .sales-merged-table td:first-child{
  text-align:left!important;
}
#sales .sales-merged-table td:nth-child(17),
#sales .sales-merged-table td:nth-child(18){
  text-align:center!important;
}
#sales .sales-merged-table tbody tr:nth-child(even)>td{
  background:var(--hm-v11-zebra);
}
#sales .sales-merged-table tbody tr:hover>td{
  background:var(--hm-v11-hover);
}
#sales .sales-merged-table th:nth-child(10),
#sales .sales-merged-table td:nth-child(10),
#sales .sales-merged-table th:nth-child(13),
#sales .sales-merged-table td:nth-child(13),
#sales .sales-merged-table th:nth-child(17),
#sales .sales-merged-table td:nth-child(17){
  border-left:1px solid #d8e0e8;
}
#sales .sales-merged-table td:nth-child(10),
#sales .sales-merged-table td:nth-child(11),
#sales .sales-merged-table td:nth-child(13),
#sales .sales-merged-table td:nth-child(15){
  color:#1f2937;
  font-weight:600;
}
#sales .sales-merged-table .sales-erp-days-cell{
  color:#446f94;
  font-weight:500;
}
#sales .sales-merged-table .sales-total-days-cell{
  color:#18794e;
  font-weight:650;
}
#sales .sales-merged-table .product-with-image{
  gap:7px;
}
#sales .sales-merged-table .product-thumb-button,
#sales .sales-merged-table .product-thumb-empty{
  width:30px;
  height:30px;
  flex-basis:30px;
  border-radius:6px;
}
#sales .sales-merged-table .product-with-image>span:last-child,
#sales .sales-merged-table .product-batch-link{
  color:#24364a;
  font-size:12px;
  font-weight:600;
  line-height:1.3;
}
#sales .sales-merged-table .badge{
  min-height:20px;
  padding:2px 7px;
  border-radius:999px;
  font-size:10px;
  font-weight:600;
}
#sales .badge.success{background:#eaf7f0;color:var(--hm-v11-success)}
#sales .badge.warning{background:#fff4df;color:var(--hm-v11-warning)}
#sales .badge.danger{background:#fdecec;color:var(--hm-v11-danger)}
#sales .sales-merged-table td:last-child button{
  min-height:24px;
  padding:3px 7px;
  border:0!important;
  border-radius:5px;
  background:transparent!important;
  color:var(--hm-v11-primary)!important;
  box-shadow:none!important;
  font-size:10.5px;
  font-weight:600;
}
#sales .sales-merged-table td:last-child button:hover{
  background:#eaf4fb!important;
  color:#105f9c!important;
}

/* 现有行列高亮继续保留，但降低饱和度 */
#sales .hm-crosshair-table tbody tr.hm-hover-row>td{
  background-color:#eef6fc!important;
}
#sales .hm-crosshair-table tr>.hm-hover-column{
  background-color:#f4f8fb!important;
}
#sales .hm-crosshair-table thead tr>.hm-hover-column{
  background-color:#e3eef7!important;
  color:#244d6d!important;
}
#sales .hm-crosshair-table tbody tr.hm-hover-row>.hm-hover-column,
#sales .hm-crosshair-table .hm-hover-cell{
  background-color:#dcecf8!important;
  box-shadow:inset 0 0 0 1px #83b6da!important;
}

/* 分页 */
#sales .pager{
  margin-top:8px;
  color:var(--hm-v11-muted);
  font-size:11px;
}
#sales .pager button{
  min-width:28px;
  min-height:28px;
  border:1px solid #d5dce5;
  border-radius:6px;
  background:#fff;
  color:#334155;
  box-shadow:none;
}
#sales .pager button:hover{
  border-color:#9bbbd2;
  background:#f2f7fb;
}
#sales .pager button.active{
  border-color:var(--hm-v11-primary);
  background:var(--hm-v11-primary);
  color:#fff;
}

/* 屏幕适配：不删除字段，窄屏继续横向滚动 */
@media(max-width:1440px){
  .header-inner{padding-inline:12px}
  .page-shell{padding-inline:10px}
  #sales .sales-merged-table{font-size:10px}
  #sales .sales-merged-table th,
  #sales .sales-merged-table td{padding-left:4px;padding-right:4px}
}
@media(max-width:1280px){
  .brand-row h1{font-size:15px}
  .header-meta{gap:7px;font-size:10px}
  .tab{padding-inline:9px;font-size:11px}
  #sales .sales-table-viewbar-right{gap:7px}
  #sales .sales-table-actions{flex-wrap:wrap}
}
@media(min-width:1760px){
  #sales .sales-merged-table{font-size:11.5px}
  #sales .sales-merged-table th,
  #sales .sales-merged-table td{padding-left:6px;padding-right:6px}
}

/* sales-visual-polish-v19-11 */

/* site-visual-system-v19-12
   全站低风险视觉统一：只改样式，不改HTML、JavaScript、接口、计算和数据。 */
:root{
  --hm12-canvas:#f4f6f8;
  --hm12-surface:#ffffff;
  --hm12-surface-soft:#f8fafc;
  --hm12-text:#1f2937;
  --hm12-text-secondary:#475569;
  --hm12-muted:#64748b;
  --hm12-border:#dce2e9;
  --hm12-divider:#e8ecf1;
  --hm12-primary:#1677c8;
  --hm12-primary-hover:#1267ad;
  --hm12-header:#2f8fd0;
  --hm12-hover:#f1f6fa;
  --hm12-zebra:#fbfcfd;
  --hm12-success:#25855a;
  --hm12-warning:#ad6800;
  --hm12-danger:#c93636;
  --hm12-shadow:0 1px 3px rgba(15,23,42,.055);
  --hm12-dialog-shadow:0 18px 48px rgba(15,35,55,.22);
  --hm12-radius:8px;
  --hm12-control-radius:6px;
}

/* ---------- 全站基底、顶部栏、导航 ---------- */
html{background:var(--hm12-canvas)}
body{
  background:var(--hm12-canvas)!important;
  color:var(--hm12-text);
  font-family:"Microsoft YaHei","PingFang SC","Noto Sans SC",Arial,sans-serif;
  font-size:13px;
}
.site-header{
  background:var(--hm12-header)!important;
  box-shadow:0 1px 4px rgba(15,58,91,.18)!important;
}
.header-inner{
  width:100%;
  max-width:none!important;
  min-height:44px;
  padding:7px 14px!important;
  gap:14px;
}
.brand-row{gap:9px}
.brand-mark.small{
  width:32px!important;
  height:32px!important;
  flex:0 0 32px;
  border:1px solid rgba(255,255,255,.25)!important;
  border-radius:8px!important;
  background:rgba(255,255,255,.15)!important;
  box-shadow:none!important;
  font-size:12px!important;
}
.brand-row h1{
  margin:0;
  font-size:16px!important;
  line-height:1.25;
  font-weight:650;
  letter-spacing:0;
}
.brand-row .eyebrow{
  margin:0 0 1px;
  font-size:8px!important;
  letter-spacing:.12em;
}
.header-meta{
  gap:9px!important;
  color:rgba(255,255,255,.9);
  font-size:11px!important;
}
.header-meta .status-pill{
  padding:3px 7px!important;
  font-size:10px!important;
}
.header-meta .ghost-button{
  min-height:28px!important;
  height:28px!important;
  padding:0 9px!important;
  border:1px solid rgba(255,255,255,.28)!important;
  border-radius:6px!important;
  background:rgba(255,255,255,.1)!important;
  color:#fff!important;
  box-shadow:none!important;
}
.header-meta .ghost-button:hover{background:rgba(255,255,255,.18)!important}

.page-shell{
  width:100%;
  max-width:none!important;
  padding:8px 10px 42px!important;
}
.tabs{
  gap:2px!important;
  padding:4px 9px!important;
  border:0!important;
  border-bottom:1px solid var(--hm12-border)!important;
  border-radius:0 0 8px 8px!important;
  background:#fff!important;
  box-shadow:var(--hm12-shadow)!important;
}
.tab{
  padding:7px 11px!important;
  border-radius:6px!important;
  color:#586779!important;
  font-size:12px!important;
  font-weight:600!important;
}
.tab:hover{
  background:#eef5fb!important;
  color:#145f9b!important;
}
.tab.active{
  background:var(--hm12-primary)!important;
  color:#fff!important;
  box-shadow:none!important;
}

/* ---------- 全站标题、容器和层级 ---------- */
.tab-panel>.section-heading{
  align-items:center;
  margin:13px 2px 9px!important;
  gap:16px;
}
.tab-panel>.section-heading h2{
  margin:2px 0 0!important;
  color:var(--hm12-text);
  font-size:19px!important;
  line-height:1.35;
  font-weight:650;
  letter-spacing:0;
}
.tab-panel>.section-heading>p{
  margin:0;
  color:var(--hm12-muted)!important;
  font-size:12px!important;
}
.eyebrow{
  color:var(--hm12-primary)!important;
  font-size:9px;
  letter-spacing:.13em;
}
.panel{
  margin-bottom:10px!important;
  padding:12px 14px!important;
  border:1px solid var(--hm12-border)!important;
  border-radius:var(--hm12-radius)!important;
  background:var(--hm12-surface)!important;
  box-shadow:var(--hm12-shadow)!important;
}
.top-gap{margin-top:10px!important}
.panel-title{
  margin-bottom:10px!important;
  gap:10px;
}
.panel-title h3,
.panel>h3{
  margin:2px 0 0;
  color:var(--hm12-text);
  font-size:15px!important;
  font-weight:650;
}
.muted,
.hint,
.result-count{
  color:var(--hm12-muted)!important;
}
.result-count{font-size:11px}

/* ---------- 全站按钮和表单控件 ---------- */
.primary-button,
.secondary-button,
.danger-button,
.ghost-button,
button.primary,
button.secondary{
  min-height:32px!important;
  height:auto;
  padding:0 11px!important;
  border-radius:var(--hm12-control-radius)!important;
  box-shadow:none!important;
  font-size:12px!important;
  line-height:30px;
  font-weight:650!important;
  transform:none!important;
}
.primary-button,
button.primary{
  border:1px solid var(--hm12-primary)!important;
  background:var(--hm12-primary)!important;
  color:#fff!important;
}
.primary-button:hover:not(:disabled),
button.primary:hover:not(:disabled){
  border-color:var(--hm12-primary-hover)!important;
  background:var(--hm12-primary-hover)!important;
}
.secondary-button,
button.secondary{
  border:1px solid #d3dae3!important;
  background:#fff!important;
  color:#334155!important;
}
.secondary-button:hover:not(:disabled),
button.secondary:hover:not(:disabled){
  border-color:#aebdca!important;
  background:#f8fafc!important;
  color:#145f9b!important;
}
.danger-button{
  border:1px solid #efb5bd!important;
  background:#fff7f8!important;
  color:#b52f42!important;
}
.compact-button{
  min-height:28px!important;
  padding:0 9px!important;
  font-size:11px!important;
  line-height:26px;
}

.tab-panel input:not([type=checkbox]):not([type=radio]):not([type=file]),
.tab-panel select,
dialog input:not([type=checkbox]):not([type=radio]):not([type=file]),
dialog select{
  min-height:32px!important;
  height:32px;
  padding:5px 9px!important;
  border:1px solid #d4dbe4!important;
  border-radius:var(--hm12-control-radius)!important;
  background:#fff!important;
  color:var(--hm12-text)!important;
  box-shadow:none!important;
  font-size:12px!important;
}
.tab-panel input:focus,
.tab-panel select:focus,
dialog input:focus,
dialog select:focus{
  border-color:#4b98d1!important;
  outline:none!important;
  box-shadow:0 0 0 2px rgba(22,119,200,.12)!important;
}
.toolbar,
.filter-bar{
  align-items:flex-end;
  gap:8px!important;
  margin-bottom:10px!important;
}
.toolbar label,
.filter-bar label,
.account-create-grid>label:not(.permission-check),
.product-chart-search label{
  gap:4px!important;
  color:var(--hm12-muted)!important;
  font-size:11px!important;
  font-weight:600!important;
}
.filter-bar input,
.filter-bar select{
  min-width:140px!important;
}
.filter-bar .result-count{
  padding-bottom:7px!important;
}

/* ---------- 全站时间工具条 ---------- */
.period-toolbar{
  gap:4px 8px!important;
}
.period-toolbar>div:first-child strong{
  color:var(--hm12-muted)!important;
  font-size:10.5px!important;
}
.period-toolbar>div:first-child span,
.data-time-strip{
  color:var(--hm12-muted)!important;
  font-size:10px!important;
}
.period-controls{gap:5px!important}
.period-controls label{
  gap:2px!important;
  color:var(--hm12-muted)!important;
  font-size:10px!important;
  font-weight:600!important;
}
.period-controls select,
.period-controls input,
.period-controls button{
  min-height:30px!important;
  height:30px!important;
}
.data-time-strip{
  gap:8px!important;
  padding-top:2px!important;
}

/* ---------- 全站KPI和摘要 ---------- */
.kpi-grid{
  gap:9px!important;
}
.kpi-card{
  min-height:84px;
  padding:11px 13px!important;
  border:1px solid var(--hm12-border)!important;
  border-top:2px solid currentColor!important;
  border-radius:var(--hm12-radius)!important;
  background:#fff!important;
  box-shadow:var(--hm12-shadow)!important;
}
.kpi-card:after{display:none!important}
.kpi-card span{
  color:var(--hm12-muted)!important;
  font-size:11px!important;
  font-weight:600!important;
}
.kpi-card strong{
  margin:5px 0 2px!important;
  color:var(--hm12-text)!important;
  font-size:22px!important;
  line-height:1.15;
  font-weight:650!important;
  font-variant-numeric:tabular-nums;
}
.kpi-card small{
  color:#758295!important;
  font-size:10px!important;
  line-height:1.35;
}
.kpi-link:hover{
  transform:none!important;
  border-color:#b9cddd!important;
  box-shadow:0 2px 6px rgba(15,23,42,.075)!important;
}

/* ---------- 全站表格 ---------- */
.table-wrap{
  border:1px solid var(--hm12-border)!important;
  border-radius:var(--hm12-radius)!important;
  background:#fff!important;
  box-shadow:none!important;
  scrollbar-color:#b8c4cf #edf1f5;
}
table{
  color:#334155;
  font-size:12px!important;
  font-variant-numeric:tabular-nums;
}
th{
  padding:8px 9px!important;
  border-bottom:1px solid #dce3ea!important;
  background:#f3f6f9!important;
  color:#475569!important;
  font-size:11px!important;
  font-weight:650!important;
  line-height:1.25;
}
td{
  padding:8px 9px!important;
  border-bottom:1px solid #edf0f4!important;
  color:#334155;
  font-size:12px!important;
  font-weight:400;
  line-height:1.3;
}
tbody tr:nth-child(even)>td{background:var(--hm12-zebra)}
tbody tr:hover>td{background:var(--hm12-hover)}
.empty,
.empty-panel,
.sync-empty-state{
  padding:22px!important;
  border-color:#d9e1e8!important;
  border-radius:8px!important;
  background:#f8fafc!important;
  color:var(--hm12-muted)!important;
}
.badge,
.status-pill{
  min-height:20px;
  padding:2px 7px!important;
  border-radius:999px!important;
  font-size:10px!important;
  font-weight:600!important;
}
.badge.success{background:#eaf7f0!important;color:var(--hm12-success)!important}
.badge.warning{background:#fff4df!important;color:var(--hm12-warning)!important}
.badge.danger{background:#fdecec!important;color:var(--hm12-danger)!important}
.badge.neutral{background:#eef1f4!important;color:#5f6d7b!important}

.pager{
  margin-top:8px!important;
  color:var(--hm12-muted)!important;
  font-size:11px!important;
}
.pager button{
  min-width:28px!important;
  min-height:28px!important;
  border:1px solid #d3dae3!important;
  border-radius:6px!important;
  background:#fff!important;
  color:#334155!important;
  box-shadow:none!important;
}
.pager button:hover{background:#f2f7fb!important;border-color:#9bbbd2!important}
.pager button.active{
  background:var(--hm12-primary)!important;
  border-color:var(--hm12-primary)!important;
  color:#fff!important;
}

/* ---------- 数据总览 ---------- */
.dashboard-grid,
.summary-grid,
.chart-grid{
  gap:10px!important;
  margin-top:10px!important;
}
#overview .overview-channel-panel,
#overview .overview-top-panel{
  margin-bottom:0!important;
}
#overview .chart-wrap{height:290px!important}
#overview .platform-winners{gap:6px}
#overview .overview-top-table th:nth-child(2),
#overview .overview-top-table td:nth-child(2){text-align:left}
#overview .overview-top-table th:not(:nth-child(2)),
#overview .overview-top-table td:not(:nth-child(2)){text-align:right}

/* ---------- 销量筛选：重点压缩用户框出的区域 ---------- */
#sales .sales-workspace-panel{
  padding:8px 10px!important;
}
#sales .workspace-commandbar{
  margin-bottom:5px!important;
  padding-bottom:5px!important;
}
#sales .workspace-commandbar-title{
  gap:0!important;
}
#sales .workspace-commandbar-title h3{
  font-size:15px!important;
}
#sales .workspace-commandbar-title .result-count{
  margin-top:0!important;
  font-size:10px!important;
}
#sales .workspace-control-grid{
  grid-template-columns:minmax(0,.9fr) minmax(0,1.35fr)!important;
  gap:6px!important;
  margin-bottom:4px!important;
}
#sales .control-card{
  min-height:0!important;
  padding:6px 8px!important;
  border:1px solid #e3e8ee!important;
  border-radius:7px!important;
  background:#f8fafc!important;
  box-shadow:none!important;
}
#sales .control-card-heading{
  align-items:center!important;
  gap:6px!important;
  margin-bottom:4px!important;
}
#sales .control-card-heading strong{
  font-size:11px!important;
  line-height:1.2!important;
}
#sales .control-card-heading small{
  font-size:9px!important;
  line-height:1.2!important;
}
#sales .control-step-index,
#sales .control-card-heading .step-index{
  width:19px!important;
  height:19px!important;
  min-width:19px!important;
  border-radius:6px!important;
  font-size:9px!important;
}
#sales .control-fields,
#sales .restock-control-fields{
  align-items:end!important;
  gap:5px!important;
}
#sales .control-fields label,
#sales .restock-control-fields label{
  gap:2px!important;
  font-size:9.5px!important;
}
#sales .control-fields input,
#sales .control-fields select,
#sales .restock-control-fields input,
#sales .restock-control-fields select{
  min-height:28px!important;
  height:28px!important;
  padding:3px 7px!important;
  font-size:10.5px!important;
}
#sales .workspace-period-slot .period-toolbar{
  grid-template-columns:minmax(90px,.28fr) minmax(0,1.72fr)!important;
  align-items:end!important;
  gap:3px 7px!important;
  padding:4px 6px!important;
  border:0!important;
  border-radius:6px!important;
  background:#f8fafc!important;
}
#sales .workspace-period-slot .period-controls{
  flex-wrap:nowrap!important;
  gap:4px!important;
}
#sales .workspace-period-slot .period-controls label{
  min-width:0!important;
}
#sales .workspace-period-slot .period-controls select,
#sales .workspace-period-slot .period-controls input,
#sales .workspace-period-slot .period-controls button{
  min-height:28px!important;
  height:28px!important;
  min-width:0!important;
  padding:3px 7px!important;
  font-size:10.5px!important;
}
#sales .workspace-period-slot .data-time-strip{
  gap:7px!important;
  padding-top:2px!important;
  font-size:9px!important;
  line-height:1.25!important;
}
#sales .restock-control-layout{
  align-items:center!important;
  gap:7px!important;
}
#sales .restock-summary-strip{
  border-radius:7px!important;
}
#sales .restock-summary-strip .restock-summary-card,
#sales .restock-summary-strip .restock-summary-total,
#sales .restock-summary-strip>span{
  min-height:42px!important;
  padding:4px 8px!important;
}
#sales .restock-summary-strip small{
  font-size:9px!important;
}
#sales .restock-summary-strip strong{
  margin-top:1px!important;
  font-size:15px!important;
}
#sales .formula-status-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(270px,420px)!important;
  align-items:center!important;
  gap:6px!important;
  min-height:28px!important;
  margin-top:4px!important;
  padding:4px 0 0!important;
  border-top:1px dashed #e0e5ea!important;
}
#sales .formula-status-row>*{
  min-height:22px!important;
  margin:0!important;
  padding:3px 7px!important;
  border-radius:6px!important;
  font-size:9.5px!important;
  line-height:1.25!important;
}
#sales .formula-status-row>:first-child{
  justify-self:start;
  width:auto!important;
}
#sales .formula-status-row>:last-child{
  justify-self:end;
  width:min(100%,420px)!important;
}
#sales .formula-chip{
  border:1px solid #dfe5eb!important;
  background:#f8fafc!important;
  color:#475569!important;
  box-shadow:none!important;
}
#sales .table-viewbar,
#sales .sales-table-viewbar{
  margin-top:6px!important;
  padding:5px 2px!important;
}
#sales .sales-table-actions .compact-button{
  min-height:27px!important;
  padding:0 8px!important;
  font-size:10.5px!important;
}

/* ---------- 库存状态 ---------- */
#stock .filter-bar,
#restock .filter-bar,
#orders .filter-bar,
#outbound .filter-bar{
  padding:0;
}
#stock table th:first-child,
#stock table td:first-child{text-align:left}
#stock table th:nth-child(n+2):nth-child(-n+7),
#stock table td:nth-child(n+2):nth-child(-n+7){text-align:right}
#stock table th:nth-child(n+8),
#stock table td:nth-child(n+8){text-align:center}

/* ---------- 月度年度汇总 ---------- */
#summary .summary-grid .panel{margin-bottom:0!important}
#summary .table-wrap.compact{max-height:390px}
#summary .summary-grid article:first-child table th:not(:first-child),
#summary .summary-grid article:first-child table td:not(:first-child){text-align:right}
#summary .summary-grid article:nth-child(2) table th:first-child,
#summary .summary-grid article:nth-child(2) table td:first-child{text-align:center}
#summary .summary-grid article:nth-child(2) table th:nth-child(2),
#summary .summary-grid article:nth-child(2) table td:nth-child(2){text-align:left}
#summary .summary-grid article:nth-child(2) table th:nth-child(n+3),
#summary .summary-grid article:nth-child(2) table td:nth-child(n+3){text-align:right}

/* ---------- 可视化图表 ---------- */
#charts .product-platform-panel{margin-bottom:10px!important}
#charts .product-chart-search{
  gap:7px!important;
  margin-bottom:8px!important;
}
#charts .product-chart-search label{min-width:min(360px,100%)}
#charts .product-chart-search .result-count{padding-bottom:7px!important}
#charts .chart-wrap{height:300px!important}
#charts .chart-grid .panel{margin-bottom:0!important}

/* ---------- 京东自营 ---------- */
#jd .toolbar{
  padding-bottom:9px;
  border-bottom:1px solid var(--hm12-divider);
}
#jd .excel-upload-actions{gap:7px!important}
#jd .excel-upload-actions input[type=file]{
  max-width:300px;
  padding:5px 7px!important;
  border:1px solid #d6dee7!important;
  border-radius:6px!important;
  background:#f8fafc!important;
  font-size:11px!important;
}
#jd .excel-upload-actions input[type=file]::file-selector-button{
  margin-right:7px!important;
  padding:5px 8px!important;
  border-radius:5px!important;
  background:#eaf3fa!important;
  color:#176da9!important;
}
#jd .jd-filter-bar{margin-top:8px}
#jd .jd-period-help{
  margin:3px 0 8px!important;
  font-size:10.5px!important;
}
#jd .jd-history-head{
  margin-top:14px!important;
  padding-top:12px!important;
  border-top:1px solid var(--hm12-divider)!important;
}
#jd .jd-import-progress{
  margin:0 0 9px!important;
  padding:9px 11px!important;
  border-radius:7px!important;
  background:#f7fbfe!important;
}

/* ---------- 同步状态 ---------- */
.sync-summary-grid{
  gap:9px!important;
  margin-bottom:10px!important;
}
.sync-summary-card{
  min-height:76px;
  padding:11px 13px!important;
  border:1px solid var(--hm12-border)!important;
  border-top:2px solid var(--blue)!important;
  border-radius:8px!important;
  box-shadow:var(--hm12-shadow)!important;
}
.sync-summary-card span{
  font-size:11px!important;
  font-weight:600!important;
}
.sync-summary-card strong{
  margin-top:4px!important;
  font-size:22px!important;
  font-weight:650!important;
  font-variant-numeric:tabular-nums;
}
.sync-summary-card small{
  margin-top:2px!important;
  font-size:9.5px!important;
}
.sync-summary-action:hover,
.sync-summary-action:focus{
  transform:none!important;
  border-color:#bccbd7!important;
  box-shadow:0 2px 6px rgba(15,23,42,.075)!important;
}
.sync-panel{margin-top:9px!important}
.sync-two-column{gap:9px!important}
.sync-active-list,
.schedule-list{gap:7px!important}
.schedule-card,
.sync-job-card{
  border-radius:7px!important;
  box-shadow:none!important;
}

/* ---------- 账号管理 ---------- */
.account-create-grid{
  gap:9px!important;
}
.permission-check{
  min-height:32px;
  padding:0 6px;
  color:var(--hm12-text-secondary)!important;
  font-size:11px!important;
}
.account-actions{gap:5px!important}

/* ---------- 订单/出库查询（现有隐藏入口也统一） ---------- */
#orders .panel,
#outbound .panel,
#restock .panel{
  padding:12px 14px!important;
}

/* ---------- 弹窗、批次、排行榜、补货车 ---------- */
dialog{
  border:0!important;
  border-radius:10px!important;
  background:#fff!important;
  color:var(--hm12-text)!important;
  box-shadow:var(--hm12-dialog-shadow)!important;
}
dialog::backdrop{
  background:rgba(20,35,50,.42)!important;
  backdrop-filter:none!important;
}
.platform-ranking-dialog,
.product-batch-dialog,
.growth-dialog,
.product-image-dialog,
.restock-cart-dialog{
  border-radius:10px!important;
  box-shadow:var(--hm12-dialog-shadow)!important;
}
.platform-ranking-head,
.product-batch-head,
.growth-dialog-head,
.product-image-dialog-head,
.restock-cart-dialog .modal-head{
  padding:11px 14px!important;
  border-bottom:1px solid var(--hm12-divider)!important;
  background:#fff!important;
}
.platform-ranking-head strong,
.product-batch-head h3,
.growth-dialog-head h3,
.restock-cart-dialog .modal-head h3{
  color:var(--hm12-text)!important;
  font-size:16px!important;
}
.product-batch-summary{
  gap:8px!important;
  padding:10px 14px!important;
}
.product-batch-summary>div{
  padding:9px 10px!important;
  border:1px solid var(--hm12-border)!important;
  border-radius:7px!important;
  background:#f8fafc!important;
}
.product-batch-table-wrap,
.platform-ranking-dialog .table-wrap{
  margin:10px 14px 14px!important;
}
.restock-cart-main-dialog .modal-head p{
  color:var(--hm12-muted)!important;
  font-size:11px!important;
}
.restock-cart-main-dialog>.restock-table-wrap{
  border-radius:8px!important;
}
.restock-history{border-top-color:var(--hm12-divider)!important}
.toast{
  right:16px!important;
  bottom:16px!important;
  max-width:min(460px,calc(100vw - 32px));
  padding:10px 13px!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:8px!important;
  background:#243447!important;
  box-shadow:0 10px 28px rgba(15,23,42,.22)!important;
  font-size:12px!important;
  line-height:1.45;
}

/* ---------- 行列高亮继续保留且更克制 ---------- */
.hm-crosshair-table tbody tr.hm-hover-row>td{
  background-color:#eef6fc!important;
}
.hm-crosshair-table tr>.hm-hover-column{
  background-color:#f4f8fb!important;
}
.hm-crosshair-table thead tr>.hm-hover-column{
  background-color:#e3eef7!important;
  color:#244d6d!important;
}
.hm-crosshair-table tbody tr.hm-hover-row>.hm-hover-column,
.hm-crosshair-table .hm-hover-cell{
  background-color:#dcecf8!important;
  box-shadow:inset 0 0 0 1px #83b6da!important;
}

/* ---------- 响应式 ---------- */
@media(max-width:1440px){
  .header-inner{padding-inline:12px!important}
  .page-shell{padding-inline:8px!important}
  .tab{padding-inline:9px!important;font-size:11px!important}
  .kpi-card{padding:10px 11px!important}
  .kpi-card strong{font-size:20px!important}
  th,td{padding-left:7px!important;padding-right:7px!important}
}
@media(max-width:1180px){
  #sales .workspace-control-grid{
    grid-template-columns:1fr!important;
  }
  #sales .workspace-period-slot .period-controls{
    flex-wrap:wrap!important;
  }
  #sales .formula-status-row{
    grid-template-columns:1fr!important;
  }
  #sales .formula-status-row>:last-child{
    justify-self:start;
    width:auto!important;
    max-width:100%;
  }
  .account-create-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:900px){
  .header-inner{
    align-items:flex-start!important;
    flex-direction:column;
  }
  .header-meta{flex-wrap:wrap}
  .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .sync-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .dashboard-grid,
  .summary-grid,
  .chart-grid,
  .sync-two-column{grid-template-columns:1fr!important}
  .filter-bar label,
  .toolbar label{width:100%}
}
@media(min-width:1760px){
  .page-shell{padding-inline:14px!important}
  table{font-size:12.5px!important}
}

/* site-visual-system-v19-12 */

/* restock-cart-visual-v19-13
   补货购物车内部视觉与空状态修复；不改变任何业务逻辑和计算。 */

/* 弹窗整体：减少无效留白，保持宽表可横向滚动 */
.restock-cart-main-dialog{
  width:min(96vw,1760px)!important;
  max-width:none!important;
  max-height:92vh!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:10px!important;
  background:#fff!important;
  display:flex!important;
  flex-direction:column!important;
}

/* 标题区更紧凑 */
.restock-cart-main-dialog>.modal-head{
  flex:0 0 auto;
  align-items:center!important;
  gap:14px!important;
  min-height:58px!important;
  padding:9px 14px!important;
  border-bottom:1px solid #e3e8ee!important;
  background:#fff!important;
}
.restock-cart-main-dialog>.modal-head>div{
  min-width:0;
  flex:1;
}
.restock-cart-main-dialog>.modal-head h3{
  margin:1px 0 2px!important;
  color:#1f2937!important;
  font-size:17px!important;
  line-height:1.25!important;
  font-weight:650!important;
}
.restock-cart-main-dialog>.modal-head p{
  max-width:1250px;
  margin:0!important;
  overflow:hidden;
  color:#64748b!important;
  font-size:10.5px!important;
  line-height:1.4!important;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.restock-cart-main-dialog>.modal-head .secondary,
.restock-cart-main-dialog>.modal-head .secondary-button{
  min-height:30px!important;
  height:30px!important;
  padding:0 10px!important;
  border:1px solid #d4dbe4!important;
  border-radius:6px!important;
  background:#fff!important;
  color:#334155!important;
  box-shadow:none!important;
  font-size:11px!important;
  line-height:28px!important;
  white-space:nowrap;
}

/*
 * v19.9之后，标题和明细表之间可能存在购物车摘要工具条。
 * 使用结构选择器进行样式覆盖，不依赖业务字段或JavaScript。
 */
.restock-cart-main-dialog>.modal-head + :not(.restock-table-wrap){
  flex:0 0 auto;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  min-height:54px!important;
  margin:0!important;
  padding:7px 14px!important;
  border-bottom:1px solid #e7ebf0!important;
  background:#fafbfc!important;
}
.restock-cart-main-dialog>.modal-head + :not(.restock-table-wrap)>*{
  min-height:40px!important;
  margin:0!important;
  padding:5px 10px!important;
  border:0!important;
  border-right:1px solid #e3e8ee!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.restock-cart-main-dialog>.modal-head + :not(.restock-table-wrap)>*:first-child{
  padding-left:2px!important;
}
.restock-cart-main-dialog>.modal-head + :not(.restock-table-wrap)>*:last-child{
  max-width:520px;
  min-height:28px!important;
  margin-left:auto!important;
  padding:5px 9px!important;
  border:1px solid #cfe0ec!important;
  border-radius:6px!important;
  background:#f1f7fb!important;
  color:#256083!important;
  font-size:10px!important;
  line-height:1.3!important;
}
.restock-cart-main-dialog>.modal-head + :not(.restock-table-wrap) small,
.restock-cart-main-dialog>.modal-head + :not(.restock-table-wrap) span{
  color:#64748b!important;
  font-size:9.5px!important;
  font-weight:500!important;
}
.restock-cart-main-dialog>.modal-head + :not(.restock-table-wrap) strong{
  color:#1f2937!important;
  font-size:17px!important;
  line-height:1.1!important;
  font-weight:650!important;
  font-variant-numeric:tabular-nums;
}

/* 明细表容器：内容有多少显示多少，不制造大片空白 */
.restock-cart-main-dialog>.restock-table-wrap{
  flex:0 1 auto!important;
  width:auto!important;
  min-height:0!important;
  max-height:calc(92vh - 210px)!important;
  margin:9px 12px!important;
  overflow:auto!important;
  border:1px solid #dce3ea!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:none!important;
  scrollbar-color:#b8c4cf #edf1f5;
}

/* 有真实商品行时，隐藏错误出现的“购物车为空”提示 */
.restock-cart-main-dialog
  .restock-cart-items-table:has(#restockCartBody > tr > td:not([colspan]))
  + #restockCartEmpty{
  display:none!important;
}

/* 只有空行时才展示空状态，并避免占满弹窗 */
.restock-cart-main-dialog #restockCartEmpty{
  min-height:72px!important;
  margin:0!important;
  padding:20px 16px!important;
  border:0!important;
  border-top:1px solid #edf0f4!important;
  border-radius:0!important;
  background:#f8fafc!important;
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.5!important;
  text-align:center!important;
}
.restock-cart-main-dialog
  .restock-cart-items-table:has(#restockCartBody > tr > td[colspan])
  + #restockCartEmpty{
  display:block!important;
}

/* 表格：高密度但更清晰 */
.restock-cart-main-dialog .restock-cart-items-table{
  width:100%!important;
  min-width:1500px!important;
  table-layout:fixed!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  color:#334155!important;
  font-size:11px!important;
  font-variant-numeric:tabular-nums;
}
.restock-cart-main-dialog
  .restock-cart-items-table.platform-columns-hidden{
  min-width:1160px!important;
}
.restock-cart-main-dialog .restock-cart-items-table th{
  position:sticky!important;
  top:0!important;
  z-index:3!important;
  height:38px!important;
  padding:6px 5px!important;
  border-bottom:1px solid #d9e1e8!important;
  background:#f3f6f9!important;
  color:#475569!important;
  font-size:10.5px!important;
  line-height:1.2!important;
  font-weight:650!important;
  text-align:right!important;
  white-space:normal!important;
}
.restock-cart-main-dialog .restock-cart-items-table td{
  height:50px!important;
  padding:6px 5px!important;
  border-bottom:1px solid #edf0f4!important;
  background:#fff;
  color:#334155!important;
  font-size:11px!important;
  font-weight:400!important;
  line-height:1.25!important;
  text-align:right!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
}
.restock-cart-main-dialog .restock-cart-items-table tbody tr:nth-child(even)>td{
  background:#fbfcfd;
}
.restock-cart-main-dialog .restock-cart-items-table tbody tr:hover>td{
  background:#f1f7fc!important;
}
.restock-cart-main-dialog .restock-cart-items-table th:first-child,
.restock-cart-main-dialog .restock-cart-items-table td:first-child{
  text-align:left!important;
}
.restock-cart-main-dialog .restock-cart-items-table .cart-days-cell,
.restock-cart-main-dialog .restock-cart-items-table .cart-target-cell,
.restock-cart-main-dialog .restock-cart-items-table .cart-suggest-cell,
.restock-cart-main-dialog .restock-cart-items-table .cart-qty-cell,
.restock-cart-main-dialog .restock-cart-items-table .cart-action-cell{
  text-align:center!important;
}

/* 字段组之间增加轻微分隔，快速扫描不串列 */
.restock-cart-main-dialog .restock-cart-items-table th:nth-child(10),
.restock-cart-main-dialog .restock-cart-items-table td:nth-child(10),
.restock-cart-main-dialog .restock-cart-items-table th:nth-child(13),
.restock-cart-main-dialog .restock-cart-items-table td:nth-child(13),
.restock-cart-main-dialog .restock-cart-items-table th:nth-child(17),
.restock-cart-main-dialog .restock-cart-items-table td:nth-child(17),
.restock-cart-main-dialog .restock-cart-items-table th:nth-child(20),
.restock-cart-main-dialog .restock-cart-items-table td:nth-child(20){
  border-left:1px solid #d8e0e8!important;
}

/* 商品列 */
.restock-cart-main-dialog .cart-product{
  min-width:0!important;
  gap:7px!important;
  align-items:center!important;
}
.restock-cart-main-dialog .cart-product img{
  width:32px!important;
  height:32px!important;
  flex:0 0 32px!important;
  border:1px solid #dde5ec!important;
  border-radius:6px!important;
  background:#f7f9fb!important;
}
.restock-cart-main-dialog .cart-product div{
  min-width:0!important;
  gap:1px!important;
  overflow:hidden!important;
}
.restock-cart-main-dialog .cart-product strong{
  display:block!important;
  overflow:hidden!important;
  color:#24364a!important;
  font-size:11px!important;
  line-height:1.3!important;
  font-weight:650!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}
.restock-cart-main-dialog .cart-product small{
  display:block!important;
  overflow:hidden!important;
  color:#7a8795!important;
  font-size:9px!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}

/* 关键数字和库存天数 */
.restock-cart-main-dialog .cart-total-cell,
.restock-cart-main-dialog .cart-monthly-cell{
  color:#294f72!important;
  font-weight:650!important;
}
.restock-cart-main-dialog .cart-erp-days-cell{
  color:#497594!important;
  font-weight:500!important;
}
.restock-cart-main-dialog .cart-total-days-cell{
  color:#18794e!important;
  font-weight:650!important;
}
.restock-cart-main-dialog .cart-post-days-cell{
  background:#eef8f2!important;
  color:#137047!important;
  font-weight:700!important;
}

/* 单品目标天数 */
.restock-cart-main-dialog .cart-target-compact{
  display:grid!important;
  gap:2px!important;
}
.restock-cart-main-dialog .cart-target-input-wrap.compact{
  height:29px!important;
  border:1px solid #cbd5df!important;
  border-radius:6px!important;
  background:#fff!important;
}
.restock-cart-main-dialog .cart-target-input-wrap.compact input{
  height:100%!important;
  padding:3px 3px!important;
  color:#334155!important;
  font-size:10.5px!important;
  font-weight:650!important;
  text-align:center!important;
}
.restock-cart-main-dialog .cart-target-input-wrap.compact>span{
  padding:0 4px 0 1px!important;
  color:#64748b!important;
  font-size:9px!important;
}
.restock-cart-main-dialog .cart-target-status{
  color:#788797!important;
  font-size:8px!important;
  line-height:1.1!important;
}
.restock-cart-main-dialog .cart-target-status.active{
  color:#25855a!important;
  font-weight:650!important;
}

/* 建议补货、本次补货和补货后天数 */
.restock-cart-main-dialog .cart-suggest-value.compact{
  color:#146f9b!important;
  font-size:11.5px!important;
  font-weight:700!important;
}
.restock-cart-main-dialog .cart-qty-heading,
.restock-cart-main-dialog .cart-qty-cell{
  background:#fff8e8!important;
}
.restock-cart-main-dialog .cart-qty-cell{
  padding-left:7px!important;
  padding-right:7px!important;
  box-shadow:inset 1px 0 0 #ebc878,inset -1px 0 0 #ebc878!important;
}
.restock-cart-main-dialog .cart-qty.compact{
  width:100%!important;
  height:30px!important;
  padding:3px 7px!important;
  border:1px solid #d9b461!important;
  border-radius:6px!important;
  background:#fffdf7!important;
  color:#68480e!important;
  font-size:12px!important;
  font-weight:700!important;
  text-align:center!important;
  box-shadow:none!important;
}
.restock-cart-main-dialog .cart-qty.compact:focus{
  border-color:#bd8522!important;
  outline:none!important;
  box-shadow:0 0 0 2px rgba(217,180,97,.18)!important;
}

/* 行操作降低干扰 */
.restock-cart-main-dialog .cart-remove-button{
  min-height:26px!important;
  width:auto!important;
  padding:0 8px!important;
  border:1px solid #d5dce5!important;
  border-radius:5px!important;
  background:#fff!important;
  color:#475569!important;
  box-shadow:none!important;
  font-size:9.5px!important;
  line-height:24px!important;
}
.restock-cart-main-dialog .cart-remove-button:hover{
  border-color:#e1a8ae!important;
  background:#fff6f7!important;
  color:#b33442!important;
}

/* 底部备注与提交区 */
.restock-cart-main-dialog .restock-cart-footer{
  flex:0 0 auto!important;
  align-items:flex-end!important;
  gap:10px!important;
  margin:0!important;
  padding:8px 12px 10px!important;
  border-top:1px solid #e7ebf0!important;
  background:#fff!important;
}
.restock-cart-main-dialog .restock-cart-footer label{
  gap:3px!important;
  color:#64748b!important;
  font-size:10px!important;
  font-weight:600!important;
}
.restock-cart-main-dialog .restock-cart-footer input{
  min-height:31px!important;
  height:31px!important;
  padding:4px 9px!important;
  border:1px solid #d4dbe4!important;
  border-radius:6px!important;
  background:#fff!important;
  font-size:11px!important;
}
.restock-cart-main-dialog .restock-cart-footer .button-row{
  gap:6px!important;
}
.restock-cart-main-dialog .restock-cart-footer button{
  min-height:31px!important;
  height:31px!important;
  padding:0 11px!important;
  border-radius:6px!important;
  font-size:11px!important;
}

/* 历史补货单视觉统一 */
.restock-cart-main-dialog .restock-history{
  flex:0 0 auto;
  padding:0 12px 10px!important;
  border-top:1px solid #e7ebf0!important;
  background:#fff!important;
}
.restock-cart-main-dialog .restock-history h4{
  margin:8px 0 6px!important;
  color:#334155!important;
  font-size:12px!important;
  font-weight:650!important;
}
.restock-cart-main-dialog .restock-history .restock-table-wrap{
  max-height:150px!important;
  margin:0!important;
  border-radius:7px!important;
}

/* 隐藏平台列时把空间让给决策字段 */
.restock-cart-main-dialog
  .restock-cart-items-table.platform-columns-hidden col.cart-col-product{
  width:21%!important;
}
.restock-cart-main-dialog
  .restock-cart-items-table.platform-columns-hidden col.cart-col-total{
  width:6%!important;
}
.restock-cart-main-dialog
  .restock-cart-items-table.platform-columns-hidden col.cart-col-stock{
  width:7.2%!important;
}
.restock-cart-main-dialog
  .restock-cart-items-table.platform-columns-hidden col.cart-col-daily,
.restock-cart-main-dialog
  .restock-cart-items-table.platform-columns-hidden col.cart-col-monthly{
  width:6.6%!important;
}
.restock-cart-main-dialog
  .restock-cart-items-table.platform-columns-hidden col.cart-col-days{
  width:7%!important;
}
.restock-cart-main-dialog
  .restock-cart-items-table.platform-columns-hidden col.cart-col-target{
  width:8.4%!important;
}
.restock-cart-main-dialog
  .restock-cart-items-table.platform-columns-hidden col.cart-col-suggest{
  width:6.7%!important;
}
.restock-cart-main-dialog
  .restock-cart-items-table.platform-columns-hidden col.cart-col-request{
  width:9.2%!important;
}
.restock-cart-main-dialog
  .restock-cart-items-table.platform-columns-hidden col.cart-col-action{
  width:4.8%!important;
}

/* 窄屏仍保留全部字段，通过横向滚动查看 */
@media(max-width:1440px){
  .restock-cart-main-dialog{
    width:98vw!important;
  }
  .restock-cart-main-dialog>.modal-head p{
    max-width:1000px;
  }
  .restock-cart-main-dialog
    .restock-cart-items-table.platform-columns-hidden{
    min-width:1120px!important;
  }
}
@media(max-width:1100px){
  .restock-cart-main-dialog>.modal-head{
    align-items:flex-start!important;
  }
  .restock-cart-main-dialog>.modal-head p{
    max-width:760px;
  }
  .restock-cart-main-dialog>.modal-head + :not(.restock-table-wrap){
    flex-wrap:wrap!important;
  }
  .restock-cart-main-dialog>.modal-head + :not(.restock-table-wrap)>*:last-child{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
  }
}
@media(max-width:760px){
  .restock-cart-main-dialog{
    width:99vw!important;
    max-height:96vh!important;
  }
  .restock-cart-main-dialog>.modal-head p{
    white-space:normal;
  }
  .restock-cart-main-dialog>.restock-table-wrap{
    max-height:58vh!important;
    margin:7px!important;
  }
  .restock-cart-main-dialog .restock-cart-footer{
    align-items:stretch!important;
    flex-direction:column!important;
  }
}

/* restock-cart-visual-v19-13 */


/* restock-cart-dialog-fix-v19-14
   修复：dialog 被 display:flex 强制变成页面普通板块、关闭后仍显示；
   同时重排收起/展开平台明细的宽度并统一表头与数据对齐。 */

/* 原生 dialog 未打开时必须彻底退出文档布局；这是“跑到页面底部”和“关闭不消失”的根因修复。 */
.restock-cart-main-dialog:not([open]){
  display:none!important;
}
.restock-cart-main-dialog[open]{
  display:flex!important;
}

/* 收起平台明细时使用独立紧凑宽度；展开时恢复宽屏。 */
.restock-cart-main-dialog.platform-details-collapsed{
  width:min(96vw,1360px)!important;
}
.restock-cart-main-dialog.platform-details-open{
  width:min(98vw,1760px)!important;
}

/* 固定列宽由同一 colgroup 同时约束 thead/tbody，避免表头和数据视觉错位。 */
.restock-cart-main-dialog .restock-cart-items-table{
  width:1720px!important;
  min-width:1720px!important;
  table-layout:fixed!important;
}
.restock-cart-main-dialog .restock-cart-items-table col.cart-col-product{width:260px!important}
.restock-cart-main-dialog .restock-cart-items-table col.cart-col-platform{width:56px!important}
.restock-cart-main-dialog .restock-cart-items-table col.cart-col-total{width:70px!important}
.restock-cart-main-dialog .restock-cart-items-table col.cart-col-erp-stock{width:90px!important}
.restock-cart-main-dialog .restock-cart-items-table col.cart-col-transit{width:84px!important}
.restock-cart-main-dialog .restock-cart-items-table col.cart-col-daily{width:78px!important}
.restock-cart-main-dialog .restock-cart-items-table col.cart-col-monthly{width:84px!important}
.restock-cart-main-dialog .restock-cart-items-table col.cart-col-erp-days{width:88px!important}
.restock-cart-main-dialog .restock-cart-items-table col.cart-col-sellable-days{width:84px!important}
.restock-cart-main-dialog .restock-cart-items-table col.cart-col-target{width:100px!important}
.restock-cart-main-dialog .restock-cart-items-table col.cart-col-suggest{width:85px!important}
.restock-cart-main-dialog .restock-cart-items-table col.cart-col-request{width:100px!important}
.restock-cart-main-dialog .restock-cart-items-table col.cart-col-post-days{width:88px!important}
.restock-cart-main-dialog .restock-cart-items-table col.cart-col-action{width:62px!important}

/* 收起后只保留 13 个决策字段，完整铺满紧凑弹窗，不再右侧大片空白。 */
.restock-cart-main-dialog .restock-cart-items-table.platform-columns-hidden{
  width:1325px!important;
  min-width:1325px!important;
}
.restock-cart-main-dialog .restock-cart-items-table.platform-columns-hidden col.cart-col-product{width:250px!important}
.restock-cart-main-dialog .restock-cart-items-table.platform-columns-hidden col.cart-col-total{width:72px!important}
.restock-cart-main-dialog .restock-cart-items-table.platform-columns-hidden col.cart-col-erp-stock{width:95px!important}
.restock-cart-main-dialog .restock-cart-items-table.platform-columns-hidden col.cart-col-transit{width:88px!important}
.restock-cart-main-dialog .restock-cart-items-table.platform-columns-hidden col.cart-col-daily{width:84px!important}
.restock-cart-main-dialog .restock-cart-items-table.platform-columns-hidden col.cart-col-monthly{width:92px!important}
.restock-cart-main-dialog .restock-cart-items-table.platform-columns-hidden col.cart-col-erp-days{width:92px!important}
.restock-cart-main-dialog .restock-cart-items-table.platform-columns-hidden col.cart-col-sellable-days{width:88px!important}
.restock-cart-main-dialog .restock-cart-items-table.platform-columns-hidden col.cart-col-target{width:108px!important}
.restock-cart-main-dialog .restock-cart-items-table.platform-columns-hidden col.cart-col-suggest{width:88px!important}
.restock-cart-main-dialog .restock-cart-items-table.platform-columns-hidden col.cart-col-request{width:110px!important}
.restock-cart-main-dialog .restock-cart-items-table.platform-columns-hidden col.cart-col-post-days{width:94px!important}
.restock-cart-main-dialog .restock-cart-items-table.platform-columns-hidden col.cart-col-action{width:64px!important}

/* 表头与数据采用相同居中基线；商品列继续左对齐。 */
.restock-cart-main-dialog .restock-cart-items-table th,
.restock-cart-main-dialog .restock-cart-items-table td{
  text-align:center!important;
  box-sizing:border-box!important;
}
.restock-cart-main-dialog .restock-cart-items-table th:first-child,
.restock-cart-main-dialog .restock-cart-items-table td:first-child{
  text-align:left!important;
}

/* 弹窗内容区跟随当前表格宽度，不额外制造空白。 */
.restock-cart-main-dialog>.restock-table-wrap{
  width:auto!important;
  max-width:calc(100% - 24px)!important;
  align-self:stretch!important;
}

@media(max-width:1440px){
  .restock-cart-main-dialog.platform-details-collapsed,
  .restock-cart-main-dialog.platform-details-open{
    width:98vw!important;
  }
}

/* restock-cart-dialog-fix-v19-14 */


/* restock-cart-collapse-width-v19-16 */
.restock-cart-main-dialog .restock-cart-items-table.platform-columns-hidden col.cart-col-platform{
  display:none!important;
  visibility:collapse!important;
  width:0!important;
  min-width:0!important;
  max-width:0!important;
}
.restock-cart-main-dialog .restock-cart-items-table.platform-columns-hidden th:nth-child(n+2):nth-child(-n+9),
.restock-cart-main-dialog .restock-cart-items-table.platform-columns-hidden td:nth-child(n+2):nth-child(-n+9){
  display:none!important;
}
/* restock-cart-collapse-width-v19-16 */

/* sales-table-align-v19-15-1
   销量主表表头与数据统一使用同一 colgroup / fixed layout；
   数值列统一居中，收起平台明细时继续保持固定列宽。 */
#sales .sales-main-table-wrap{
  overflow:auto!important;
  scrollbar-gutter:stable both-edges;
}
#sales .sales-merged-table{
  width:100%!important;
  min-width:1460px!important;
  table-layout:fixed!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
#sales .sales-merged-table col.sales-col-product{width:17%!important}
#sales .sales-merged-table col.sales-col-platform{width:4%!important}
#sales .sales-merged-table col.sales-col-total{width:5.5%!important}
#sales .sales-merged-table col.sales-col-stock{width:6.5%!important}
#sales .sales-merged-table col.sales-col-daily{width:6%!important}
#sales .sales-merged-table col.sales-col-days{width:6%!important}
#sales .sales-merged-table col.sales-col-suggest{width:5%!important}
#sales .sales-merged-table col.sales-col-status{width:5.5%!important}
#sales .sales-merged-table col.sales-col-action{width:4%!important}
#sales .sales-merged-table th,
#sales .sales-merged-table td{
  box-sizing:border-box!important;
  text-align:center!important;
  vertical-align:middle!important;
}
#sales .sales-merged-table th:first-child,
#sales .sales-merged-table td:first-child{
  text-align:left!important;
}
#sales .sales-merged-table.platform-columns-hidden{
  width:100%!important;
  min-width:1080px!important;
  table-layout:fixed!important;
}
#sales .sales-merged-table.platform-columns-hidden col.sales-col-platform{
  width:0!important;
}
#sales .sales-merged-table.platform-columns-hidden col.sales-col-product{width:24%!important}
#sales .sales-merged-table.platform-columns-hidden col.sales-col-total{width:9%!important}
#sales .sales-merged-table.platform-columns-hidden col.sales-col-stock{width:10%!important}
#sales .sales-merged-table.platform-columns-hidden col.sales-col-daily{width:9%!important}
#sales .sales-merged-table.platform-columns-hidden col.sales-col-days{width:9%!important}
#sales .sales-merged-table.platform-columns-hidden col.sales-col-suggest{width:8%!important}
#sales .sales-merged-table.platform-columns-hidden col.sales-col-status{width:7%!important}
#sales .sales-merged-table.platform-columns-hidden col.sales-col-action{width:5%!important}

/* ==========================================================
   non-sales-workspace-ui-v19-17
   仅统一非“销量筛选”页面视觉；严禁作用于 销量筛选页。
   ========================================================== */

/* 非销量页面：标题区统一成销量工作台的紧凑节奏 */
:is(#overview,#stock,#alerts,#summary,#charts,#jd,#sync,#accounts) > .section-heading{
  margin:9px 2px 7px!important;
  align-items:center!important;
  min-height:34px;
}
:is(#overview,#stock,#alerts,#summary,#charts,#jd,#sync,#accounts) > .section-heading h2{
  margin:1px 0 0!important;
  font-size:18px!important;
  line-height:1.25!important;
}
:is(#overview,#stock,#alerts,#summary,#charts,#jd,#sync,#accounts) > .section-heading > p{
  max-width:760px;
  font-size:10.5px!important;
  line-height:1.35!important;
  text-align:right;
}
:is(#overview,#stock,#alerts,#summary,#charts,#jd,#sync,#accounts) .eyebrow{
  font-size:8px!important;
  line-height:1.1!important;
}

/* 非销量页面：统一卡片为紧凑、低阴影工作台风格 */
:is(#overview,#stock,#alerts,#summary,#charts,#jd,#sync,#accounts) .panel{
  padding:9px 10px!important;
  border-radius:8px!important;
  box-shadow:0 1px 3px rgba(15,23,42,.045)!important;
}
:is(#overview,#stock,#alerts,#summary,#charts,#jd,#sync,#accounts) .panel-title{
  margin-bottom:7px!important;
}
:is(#overview,#stock,#alerts,#summary,#charts,#jd,#sync,#accounts) .panel-title h3,
:is(#overview,#stock,#alerts,#summary,#charts,#jd,#sync,#accounts) .panel > h3{
  font-size:14px!important;
}

/* 库存状态：与销量页相同的“命令栏 + KPI + 双筛选卡 + 表格”密度 */
#stock .stock-workspace-panel{padding:8px 10px!important}
#stock .workspace-commandbar{
  margin-bottom:6px!important;
  padding-bottom:6px!important;
}
#stock .workspace-commandbar-title{gap:0!important}
#stock .workspace-commandbar-title h3{font-size:15px!important}
#stock .workspace-commandbar-title .result-count{margin-top:0!important;font-size:10px!important}
#stock .stock-kpi-strip{
  gap:6px!important;
  margin-bottom:6px!important;
}
#stock .stock-kpi-item{
  min-height:58px!important;
  padding:7px 10px!important;
  border-radius:7px!important;
  box-shadow:none!important;
}
#stock .stock-kpi-item span{font-size:9.5px!important}
#stock .stock-kpi-item strong{margin:1px 0!important;font-size:18px!important;line-height:1.05!important}
#stock .stock-kpi-item small{font-size:8.5px!important}
#stock .workspace-control-grid{
  grid-template-columns:minmax(0,.9fr) minmax(0,1.35fr)!important;
  gap:6px!important;
  margin-bottom:5px!important;
}
#stock .control-card{
  min-height:0!important;
  padding:6px 8px!important;
  border:1px solid #e3e8ee!important;
  border-radius:7px!important;
  background:#f8fafc!important;
  box-shadow:none!important;
}
#stock .control-card-heading{gap:6px!important;margin-bottom:4px!important}
#stock .control-card-heading strong{font-size:11px!important;line-height:1.2!important}
#stock .control-card-heading small{font-size:9px!important;line-height:1.2!important}
#stock .control-step{width:19px!important;height:19px!important;min-width:19px!important;border-radius:6px!important;font-size:9px!important}
#stock .control-fields{gap:5px!important;align-items:end!important}
#stock .control-fields label{gap:2px!important;font-size:9.5px!important}
#stock .control-fields input,#stock .control-fields select{height:28px!important;min-height:28px!important;padding:3px 7px!important;font-size:10.5px!important}
#stock .workspace-period-slot .period-toolbar{
  grid-template-columns:minmax(90px,.28fr) minmax(0,1.72fr)!important;
  align-items:end!important;
  gap:3px 7px!important;
  padding:4px 6px!important;
  border:0!important;
  border-radius:6px!important;
  background:#f8fafc!important;
}
#stock .workspace-period-slot .period-controls{flex-wrap:nowrap!important;gap:4px!important}
#stock .workspace-period-slot .period-controls select,
#stock .workspace-period-slot .period-controls input,
#stock .workspace-period-slot .period-controls button{
  height:28px!important;min-height:28px!important;min-width:0!important;padding:3px 7px!important;font-size:10.5px!important
}
#stock .workspace-period-slot .data-time-strip{gap:7px!important;padding-top:2px!important;font-size:9px!important;line-height:1.25!important}
#stock .table-viewbar{margin-top:5px!important;padding:5px 2px!important}
#stock .stock-main-table-wrap{max-height:56vh!important;overflow:auto!important}
#stock .stock-main-table th{position:sticky;top:0;z-index:2}
#stock .stock-main-table th,#stock .stock-main-table td{padding:7px 8px!important}

/* 商品预警：压缩顶部占高，保持规则和字段不变 */
#alerts .product-alert-kpis{
  gap:6px!important;
  margin-bottom:7px!important;
}
#alerts .product-alert-kpi{
  min-height:62px!important;
  padding:7px 10px!important;
  gap:1px!important;
  border-radius:8px!important;
  box-shadow:none!important;
}
#alerts .product-alert-kpi span{font-size:9.5px!important}
#alerts .product-alert-kpi strong{font-size:19px!important;line-height:1.1!important}
#alerts .product-alert-kpi.coverage strong{font-size:13px!important}
#alerts .product-alert-kpi small{font-size:8.5px!important;line-height:1.25!important}
#alerts .product-alert-workspace{padding:8px 10px!important}
#alerts .workspace-commandbar{margin-bottom:5px!important;padding-bottom:5px!important}
#alerts .workspace-commandbar-title{gap:0!important}
#alerts .workspace-commandbar-title h3{font-size:15px!important}
#alerts .workspace-commandbar-title .result-count{margin-top:0!important;font-size:10px!important}
#alerts .product-alert-rules{
  gap:6px!important;
  margin:0 0 5px!important;
  padding:5px!important;
  border:1px solid #e5eaf0!important;
  border-radius:7px!important;
  background:#f8fafc!important;
}
#alerts .product-alert-rules>div{
  gap:6px!important;
  min-height:36px!important;
  padding:5px 8px!important;
  border-radius:6px!important;
  font-size:9.5px!important;
  line-height:1.35!important;
}
#alerts .product-alert-rules strong{font-size:9.5px!important}
#alerts .product-alert-source-note{
  margin:0 0 5px!important;
  padding:4px 7px!important;
  font-size:9px!important;
  line-height:1.25!important;
}
#alerts .product-alert-filters{
  gap:6px!important;
  margin-bottom:5px!important;
  padding:5px 0!important;
  border-top:1px dashed #e2e8ef!important;
  border-bottom:0!important;
}
#alerts .product-alert-filters label{gap:2px!important;font-size:9.5px!important}
#alerts .product-alert-filters input,#alerts .product-alert-filters select{height:28px!important;min-height:28px!important;padding:3px 7px!important;font-size:10.5px!important}
#alerts .product-alert-table-wrap{max-height:57vh!important}
#alerts .product-alert-table th,#alerts .product-alert-table td{padding:6px 7px!important;font-size:10.5px!important}
#alerts .product-alert-inline-tag,#alerts .product-alert-type-tag{padding:2px 6px!important;font-size:8.5px!important}

/* 月度年度汇总：KPI和双表格与销量工作台同一密度 */
#summary .kpi-grid{gap:6px!important}
#summary .kpi-card{
  min-height:66px!important;
  padding:8px 10px!important;
  border-radius:8px!important;
  box-shadow:none!important;
}
#summary .kpi-card span{font-size:9.5px!important}
#summary .kpi-card strong{margin:2px 0!important;font-size:19px!important}
#summary .kpi-card small{font-size:8.5px!important}
#summary .summary-grid{gap:7px!important;margin-top:7px!important}
#summary .summary-grid .panel{padding:8px 9px!important}
#summary .table-wrap.compact{max-height:58vh!important}
#summary .table-wrap.compact th,#summary .table-wrap.compact td{padding:6px 7px!important;font-size:10.5px!important}

/* 可视化：收紧查询和图表间距，视觉层级与工作台一致 */
#charts .product-platform-panel{padding:8px 10px!important;margin-bottom:7px!important}
#charts .product-chart-search{gap:5px!important;margin-bottom:5px!important;align-items:end!important}
#charts .product-chart-search label{gap:2px!important;font-size:9.5px!important}
#charts .product-chart-search input{height:28px!important;min-height:28px!important;font-size:10.5px!important}
#charts .product-chart-search .result-count{padding-bottom:6px!important;font-size:9.5px!important}
#charts .product-chart-wrap{height:250px!important}
#charts .chart-grid{gap:7px!important;margin-top:7px!important}
#charts .chart-grid .panel{padding:8px 10px!important}
#charts .chart-grid .chart-wrap{height:250px!important}

/* 京东自营：保留上传逻辑，统一顶部KPI和筛选工具条 */
#jd .kpi-grid{gap:6px!important}
#jd .kpi-card{
  min-height:66px!important;
  padding:8px 10px!important;
  border-radius:8px!important;
  box-shadow:none!important;
}
#jd .kpi-card span{font-size:9.5px!important}
#jd .kpi-card strong{margin:2px 0!important;font-size:17px!important}
#jd .kpi-card small{font-size:8.5px!important}
#jd > .panel{padding:8px 10px!important}
#jd .toolbar{gap:6px!important;margin-bottom:6px!important;padding-bottom:6px!important}
#jd .toolbar strong{font-size:11px!important}
#jd .toolbar .muted,#jd .jd-canonical-rule{font-size:9px!important;line-height:1.3!important}
#jd .excel-upload-actions{gap:5px!important}
#jd .jd-date-field{font-size:9px!important}
#jd .jd-filter-bar{gap:5px!important;margin:5px 0!important;align-items:end!important}
#jd .jd-filter-bar label{gap:2px!important;font-size:9.5px!important}
#jd .jd-filter-bar input,#jd .jd-filter-bar select{height:28px!important;min-height:28px!important;font-size:10.5px!important}
#jd .jd-filter-bar .period-toolbar{padding:3px 5px!important;border-radius:6px!important;background:#f8fafc!important}
#jd .jd-period-help{margin:2px 0 5px!important;font-size:9px!important}
#jd .jd-history-head{margin-top:8px!important;padding-top:7px!important}
#jd .jd-history-head strong{font-size:11px!important}
#jd .jd-history-head .muted{font-size:9px!important}
#jd .table-wrap th,#jd .table-wrap td{padding:6px 7px!important;font-size:10.5px!important}

/* 同步状态：摘要与任务列表统一到紧凑工作台 */
#sync .sync-summary-grid{gap:6px!important;margin-bottom:7px!important}
#sync .sync-summary-card{
  min-height:62px!important;
  padding:8px 10px!important;
  border-radius:8px!important;
  box-shadow:none!important;
}
#sync .sync-summary-card span{font-size:9.5px!important}
#sync .sync-summary-card strong{margin-top:1px!important;font-size:19px!important}
#sync .sync-summary-card small{font-size:8.5px!important}
#sync .sync-panel{margin-top:7px!important;padding:8px 10px!important}
#sync .toolbar{margin-bottom:6px!important}
#sync .toolbar strong{font-size:11px!important}
#sync .toolbar .muted{font-size:9px!important}
#sync .sync-two-column{gap:7px!important}
#sync .sync-active-list,#sync .schedule-list{gap:5px!important}
#sync .schedule-card,#sync .sync-job-card{padding:7px 9px!important;border-radius:7px!important}
#sync .table-wrap th,#sync .table-wrap td{padding:6px 7px!important;font-size:10.5px!important}

/* 账号管理：配置区、使用量、账号创建和表格统一 */
#accounts .ai-config-panel{padding:8px 10px!important}
#accounts .ai-security-notice{margin:0 0 7px!important;padding:6px 8px!important;border-radius:7px!important;font-size:9.5px!important;line-height:1.35!important}
#accounts .ai-config-grid{gap:6px!important}
#accounts .ai-config-grid label:not(.permission-check){gap:2px!important;font-size:9.5px!important}
#accounts .ai-config-grid input,#accounts .ai-config-grid select,#accounts .ai-enable-check{height:28px!important;min-height:28px!important;padding:3px 7px!important;border-radius:6px!important;font-size:10.5px!important}
#accounts .ai-usage-grid{gap:6px!important;margin-top:7px!important}
#accounts .ai-usage-grid>div{gap:1px!important;padding:6px 8px!important;border-radius:7px!important}
#accounts .ai-usage-grid span{font-size:9px!important}
#accounts .ai-usage-grid strong{font-size:14px!important}
#accounts .ai-usage-grid small{font-size:8.5px!important}
#accounts .ai-config-actions{gap:5px!important;margin-top:7px!important}
#accounts .account-create-grid{gap:6px!important}
#accounts .account-create-grid>label:not(.permission-check){gap:2px!important;font-size:9.5px!important}
#accounts .account-create-grid input:not([type=checkbox]),#accounts .account-create-grid select{height:28px!important;min-height:28px!important;padding:3px 7px!important;font-size:10.5px!important}
#accounts .permission-check{min-height:28px!important;font-size:9.5px!important}
#accounts .toolbar{margin-bottom:6px!important}
#accounts .table-wrap th,#accounts .table-wrap td{padding:6px 7px!important;font-size:10.5px!important}

/* 数据总览也统一卡片密度，但不碰任何销量筛选页面选择器 */
#overview .kpi-grid{gap:6px!important}
#overview .kpi-card{min-height:66px!important;padding:8px 10px!important;border-radius:8px!important;box-shadow:none!important}
#overview .kpi-card span{font-size:9.5px!important}
#overview .kpi-card strong{margin:2px 0!important;font-size:19px!important}
#overview .kpi-card small{font-size:8.5px!important}
#overview .dashboard-grid{gap:7px!important;margin-top:7px!important}
#overview .panel{padding:8px 10px!important}
#overview .overview-top-table th,#overview .overview-top-table td{padding:6px 7px!important;font-size:10.5px!important}

/* 桌面窄屏：保持双列逻辑，必要时自然折叠 */
@media(max-width:1180px){
  #stock .workspace-control-grid{grid-template-columns:1fr!important}
  #alerts .product-alert-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #accounts .ai-config-grid,#accounts .ai-usage-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
  :is(#overview,#stock,#alerts,#summary,#charts,#jd,#sync,#accounts) > .section-heading{display:block!important}
  :is(#overview,#stock,#alerts,#summary,#charts,#jd,#sync,#accounts) > .section-heading > p{margin-top:3px!important;text-align:left!important}
  #stock .stock-kpi-strip,#alerts .product-alert-kpis,#sync .sync-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #summary .summary-grid,#charts .chart-grid{grid-template-columns:1fr!important}
  #alerts .product-alert-rules{grid-template-columns:1fr!important}
  #alerts .product-alert-filters{align-items:stretch!important;flex-direction:column!important}
  #accounts .ai-config-grid,#accounts .ai-usage-grid,#accounts .account-create-grid{grid-template-columns:1fr!important}
}
/* non-sales-workspace-ui-v19-17 */

 
.tplus-isolation-banner{margin:0 0 16px;padding:12px 16px;border:1px solid rgba(94,94,255,.25);border-radius:12px;background:rgba(94,94,255,.08);color:var(--ink)}
.tplus-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin-bottom:16px}
.tplus-filters label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}
.tplus-filters input{min-width:130px}
.tplus-pager{display:flex;align-items:center;justify-content:center;gap:14px;margin:16px 0}
.tplus-detail-meta{padding:10px 0 16px;line-height:1.8;color:var(--muted)}
.link-button{border:0;background:none;color:var(--accent,#5b5be8);cursor:pointer;padding:0;font:inherit}
#tplusOrderDialog{border:0;border-radius:16px;max-width:min(1100px,94vw);width:94vw;padding:0;background:var(--surface,#fff);color:var(--ink)}
#tplusOrderDialog::backdrop{background:rgba(18,18,35,.45)}
#tplusOrderDialog .dialog-card{padding:22px}

/* ai-business-assistant-v20: readable query evidence statuses */
.ai-evidence li.success::marker{color:#2b9867}
.ai-evidence li.failed{color:#a86445}
.ai-evidence li.failed::marker{color:#d17b52}
.ai-evidence li.ai-evidence-step{margin-left:10px;color:#7b8e9d;font-size:9px;list-style:none}


/* restock-item-note-v19-21: 本批补货商品备注，仅作用于补货购物车和历史补货单 */
.restock-cart-main-dialog .cart-product-name-row,
.restock-cart-dialog .cart-product-name-row{
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
  gap:4px!important;
}
.restock-cart-main-dialog .cart-product-name-button{
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#24364a!important;
  font:inherit!important;
  font-size:11px!important;
  line-height:1.3!important;
  font-weight:650!important;
  text-align:left!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  cursor:pointer!important;
}
.restock-cart-main-dialog .cart-product-name-button:hover{
  color:#1677c8!important;
  text-decoration:underline!important;
  text-underline-offset:2px!important;
}
.restock-cart-main-dialog .cart-note-badge,
.restock-cart-dialog .cart-note-badge{
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:16px!important;
  height:16px!important;
  padding:0 3px!important;
  border:1px solid #cfe0ef!important;
  border-radius:999px!important;
  background:#edf7ff!important;
  font-size:9px!important;
  line-height:1!important;
}
.restock-cart-main-dialog .cart-item-note,
.restock-cart-dialog .cart-item-note{
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  margin-top:2px!important;
  color:#8793a1!important;
  font-size:9px!important;
  line-height:1.25!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.restock-cart-main-dialog .cart-item-note.has-note,
.restock-cart-dialog .cart-item-note.has-note{
  color:#5a6f83!important;
}
.restock-item-note-dialog{
  width:min(92vw,620px)!important;
  max-width:620px!important;
  border:0!important;
  border-radius:14px!important;
  padding:0!important;
  box-shadow:0 24px 70px rgba(23,50,77,.24)!important;
}
.restock-item-note-dialog::backdrop{background:rgba(25,45,63,.42)!important}
.restock-item-note-dialog .modal-head{padding:16px 18px!important;border-bottom:1px solid #e5edf4!important}
.restock-item-note-dialog .modal-head h3{margin:2px 0 3px!important}
.restock-item-note-dialog .modal-head p:last-child{margin:0!important;color:#728194!important;font-size:11px!important}
.restock-item-note-body{padding:16px 18px 18px!important}
.restock-item-note-body label{display:block!important;margin-bottom:6px!important;color:#40566d!important;font-size:11px!important;font-weight:650!important}
.restock-item-note-body textarea{
  width:100%!important;
  min-height:118px!important;
  resize:vertical!important;
  box-sizing:border-box!important;
  padding:10px 12px!important;
  border:1px solid #ccd9e5!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#26394c!important;
  font:inherit!important;
  line-height:1.55!important;
  outline:none!important;
}
.restock-item-note-body textarea:focus{border-color:#56a2d8!important;box-shadow:0 0 0 3px rgba(70,153,211,.12)!important}
.restock-item-note-actions{display:grid!important;grid-template-columns:auto 1fr auto auto!important;gap:8px!important;align-items:center!important;margin-top:12px!important}

/* ==========================================================
   sales-platform-picker-v19-23
   平台列来自聚水潭 shops.shop_site 官方字段；自定义仅改变展示。
   ========================================================== */
#sales .sales-table-actions{position:relative}
#sales .platform-picker{position:relative;display:inline-block}
#sales .platform-picker>summary{list-style:none;cursor:pointer;user-select:none}
#sales .platform-picker>summary::-webkit-details-marker{display:none}
#sales .platform-picker>summary::after{content:"▾";margin-left:5px;font-size:9px;color:#64748b}
#sales .platform-picker[open]>summary::after{content:"▴"}
#sales .platform-picker-popover{
  position:absolute;z-index:60;right:0;top:calc(100% + 7px);width:430px;max-width:min(92vw,430px);
  padding:12px;border:1px solid #d8e2ec;border-radius:10px;background:#fff;
  box-shadow:0 12px 32px rgba(15,43,70,.16);text-align:left
}
#sales .platform-picker-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:9px}
#sales .platform-picker-head strong{font-size:13px;color:#17324d}
#sales .platform-picker-head small{font-size:10px;color:#718096}
#sales .platform-picker-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;max-height:285px;overflow:auto;padding:2px}
#sales .platform-picker-option{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:6px;padding:7px 8px;border:1px solid #edf2f7;border-radius:7px;background:#fbfdff;cursor:pointer}
#sales .platform-picker-option:hover{border-color:#bfdbf1;background:#f5faff}
#sales .platform-picker-option input{margin:0}
#sales .platform-picker-option span{font-size:11px;color:#334155;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#sales .platform-picker-option small{font-size:9px;color:#94a3b8;white-space:nowrap}
#sales .platform-picker-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:10px;padding-top:9px;border-top:1px solid #edf2f7}
#sales .platform-picker-note{margin:8px 0 0;font-size:9.5px;line-height:1.45;color:#64748b}
#sales .platform-source-invalid{border-color:#f2b8b8!important;color:#b42318!important}

/* 动态平台列不能继续依赖旧版固定的 nth-child(2~9) 隐藏规则。 */
#sales .sales-merged-table.platform-columns-hidden th[data-platform-col],
#sales .sales-merged-table.platform-columns-hidden td[data-platform-col]{display:none!important}
#sales .sales-merged-table.platform-columns-hidden col[data-platform-col]{width:0!important}
#sales .sales-merged-table.platform-columns-hidden th[data-fixed-col],
#sales .sales-merged-table.platform-columns-hidden td[data-fixed-col]{display:table-cell!important}
#sales .sales-merged-table:not(.platform-columns-hidden){
  min-width:calc(1020px + (var(--sales-platform-count, 8) * 58px))!important;
}
#sales .sales-merged-table:not(.platform-columns-hidden) col.sales-col-product{width:235px!important}
#sales .sales-merged-table:not(.platform-columns-hidden) col.sales-col-platform{width:74px!important}
#sales .sales-merged-table:not(.platform-columns-hidden) col.sales-col-total{width:92px!important}
#sales .sales-merged-table:not(.platform-columns-hidden) col.sales-col-stock{width:100px!important}
#sales .sales-merged-table:not(.platform-columns-hidden) col.sales-col-daily{width:92px!important}
#sales .sales-merged-table:not(.platform-columns-hidden) col.sales-col-days{width:92px!important}
#sales .sales-merged-table:not(.platform-columns-hidden) col.sales-col-suggest{width:92px!important}
#sales .sales-merged-table:not(.platform-columns-hidden) col.sales-col-status{width:86px!important}
#sales .sales-merged-table:not(.platform-columns-hidden) col.sales-col-action{width:72px!important}
@media(max-width:760px){#sales .platform-picker-popover{position:fixed;left:12px;right:12px;top:auto;width:auto}.platform-picker-options{grid-template-columns:1fr!important}}


/* v19-25-1 isolated month/year actual sales provenance */
.summary-source-note{display:flex;align-items:center;gap:9px 16px;flex-wrap:wrap;margin:0 0 10px;padding:9px 12px;border:1px solid #cfe2f2;border-radius:9px;background:#f7fbfe;color:#52708a;font-size:12px;line-height:1.45}
.summary-source-note strong{color:#24587c;font-weight:800}.summary-source-note b{color:#163f60;font-weight:800}#summaryJdMatch{padding:2px 7px;border-radius:999px;background:#edf8f1;color:#277449;font-weight:700}#summary .panel-title small{display:block;margin-top:3px;color:#7d91a3;font-size:11px;font-weight:500}#summary .table-wrap table th,#summary .table-wrap table td{white-space:nowrap}

/* jd-item-correction-v19-26: precise date+SKU correction UI */
.jd-upload-toolbar{align-items:flex-start;gap:18px}
.jd-import-mode-help{margin-top:7px;font-size:12px;color:var(--muted,#64748b)}
.jd-import-mode-help::before{content:"纠错保护：";font-weight:700;color:var(--primary,#2563eb)}
.jd-correction-result{margin:0 0 14px;padding:12px 14px;border:1px solid rgba(37,99,235,.18);background:rgba(37,99,235,.055);border-radius:12px}
.jd-correction-result>strong{display:block;margin-bottom:7px}
.jd-correction-result-list{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px;color:var(--muted,#64748b)}
.jd-correction-result-list span{padding:3px 7px;border-radius:8px;background:rgba(255,255,255,.72)}
.jd-correction-history-head{margin-top:22px}
.jd-correction-detail{max-width:480px;white-space:normal;line-height:1.55}
.jd-correction-table td:nth-child(1),.jd-correction-table td:nth-child(4),.jd-correction-table td:nth-child(5),.jd-correction-table td:nth-child(6),.jd-correction-table td:nth-child(7){white-space:nowrap}
@media (max-width:1100px){.jd-upload-toolbar{display:block}.jd-upload-toolbar .excel-upload-actions{margin-top:14px}.jd-correction-detail{max-width:320px}}

/* product-business-status-v19-27 */
.product-business-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;margin-left:6px;padding:2px 7px;border-radius:999px;font-size:10px;font-weight:700;line-height:1.45;white-space:nowrap}
.product-business-badge.paused{color:#8a5a00;background:#fff3d7;border:1px solid #f1d28a}
.product-business-badge.discontinued{color:#66727c;background:#edf1f4;border:1px solid #d5dde3}
.product-business-action{flex:0 0 auto;margin-left:6px;padding:2px 7px;border:1px solid #cbdbe8;border-radius:7px;background:#fff;color:#52718b;font-size:10px;line-height:1.45;cursor:pointer}
.product-business-action:hover{border-color:#7bb7df;background:#f3f9fd;color:#246d9e}
.product-business-status-dialog{width:min(620px,calc(100vw - 32px));border:0;border-radius:18px;padding:0;overflow:hidden;box-shadow:0 28px 80px rgba(20,52,79,.28)}
.product-business-status-dialog::backdrop{background:rgba(20,52,79,.45);backdrop-filter:blur(2px)}
.product-business-status-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid #dbe8f2;background:#f6fbfe}
.product-business-status-head h3{margin:2px 0 5px;color:#173f65}.product-business-status-head p{margin:0;color:#6d8396;font-size:12px}
.product-business-status-body{display:grid;gap:14px;padding:18px 20px 20px}.product-business-status-body label{display:grid;gap:6px;color:#38566d;font-weight:700;font-size:12px}
.product-business-status-body select,.product-business-status-body textarea{width:100%;box-sizing:border-box}.product-business-status-body textarea{resize:vertical;min-height:92px;padding:10px 12px;border:1px solid #cbdbe8;border-radius:9px;font:inherit;color:#24465f}
.product-business-status-help{margin:0;padding:10px 12px;border-radius:9px;background:#f4f8fb;color:#557087;font-size:12px;line-height:1.65}
.product-business-status-note{padding:10px 12px;border-radius:9px;background:#eef7ff;color:#356b91;font-size:12px;line-height:1.6}
.product-business-status-actions{display:flex;justify-content:flex-end;gap:10px}

/* sales-template-sort-v19-28 */
.jd-sort-template-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:12px 0;padding:12px 14px;border:1px solid var(--line,#d9e2ec);border-radius:10px;background:var(--panel-soft,#f8fbfd)}
.jd-sort-template-copy{min-width:0;flex:1}.jd-sort-template-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.jd-template-header-lock{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;background:#eaf4ff;color:#1769aa;font-size:12px;font-weight:700}.jd-sort-template-copy p{margin:4px 0 0}.jd-sort-template-status{font-size:12px;color:#456173}.jd-sort-template-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.jd-sort-template-actions input[type=file]{max-width:300px}
@media(max-width:900px){.jd-sort-template-panel{align-items:flex-start;flex-direction:column}.jd-sort-template-actions{justify-content:flex-start;width:100%}}

/* purchase-transit-popup-v19-29 */
.purchase-transit-link{appearance:none;border:1px solid transparent;background:transparent;color:#247fc4;padding:2px 6px;border-radius:7px;font:inherit;font-weight:750;font-variant-numeric:tabular-nums;cursor:pointer;line-height:1.25;min-width:44px}
.purchase-transit-link:hover,.purchase-transit-link:focus-visible{border-color:#86bfea;background:#edf8ff;color:#126aa8;outline:none;box-shadow:0 0 0 2px rgba(68,159,224,.12)}
.purchase-transit-dialog{width:min(1120px,95vw);max-height:90vh}
.purchase-transit-summary{grid-template-columns:repeat(5,minmax(0,1fr))}
.purchase-transit-summary strong{font-size:17px}
.purchase-transit-table-wrap{max-height:46vh}
.purchase-transit-table th,.purchase-transit-table td{text-align:center;vertical-align:middle}
.purchase-transit-table td:nth-child(2),.purchase-transit-table td:nth-child(3){text-align:left}
.purchase-transit-compare{margin:12px 22px 0;padding:10px 12px;border-radius:10px;border:1px solid #dbeaf5;background:#f6fbff;color:#456a86;font-size:12px;line-height:1.55}
.purchase-transit-compare.matched{border-color:#bfe5d2;background:#f0fbf5;color:#237451}
.purchase-transit-compare.mismatch{border-color:#f1d08a;background:#fff8e8;color:#8a6211}
.purchase-transit-compare.empty,.purchase-transit-compare.neutral{border-color:#dbeaf5;background:#f6fbff;color:#456a86}
.purchase-transit-footnote{margin-top:9px;line-height:1.55}
.badge.info{background:#e7f4ff;color:#1972b5}
@media(max-width:900px){.purchase-transit-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-transit-table{min-width:900px}}

/* ==========================================================================
   pure-ui-sidebar-v19-30-20260818
   Scope: visual/layout only. No business formula, API or data changes.
   Direction: Appica/Shadcn clean SaaS + dense ERP tables + fixed left sidebar.
   ========================================================================== */
:root{
  --ui-bg:#f6f8fb;--ui-surface:#fff;--ui-surface-soft:#f8fafc;
  --ui-line:#e6eaf0;--ui-line-strong:#d8dee8;--ui-text:#1e293b;--ui-muted:#64748b;
  --ui-primary:#2563eb;--ui-primary-hover:#1d4ed8;--ui-primary-soft:#eff6ff;
  --ui-sidebar-width:224px;--ui-header-height:64px;--ui-radius:12px;
  --ui-shadow:0 1px 2px rgba(15,23,42,.03),0 8px 24px rgba(15,23,42,.035);
  --ui-shadow-hover:0 1px 2px rgba(15,23,42,.04),0 12px 30px rgba(15,23,42,.065)
}
html{background:var(--ui-bg)}
body{background:var(--ui-bg)!important;color:var(--ui-text)!important;overflow-x:hidden;padding-top:var(--ui-header-height)}
.site-header{position:fixed!important;inset:0 0 auto 0!important;z-index:120!important;height:var(--ui-header-height)!important;background:rgba(255,255,255,.96)!important;color:var(--ui-text)!important;border-bottom:1px solid var(--ui-line)!important;box-shadow:0 1px 3px rgba(15,23,42,.035)!important;backdrop-filter:blur(14px)}
.header-inner{width:100%!important;max-width:none!important;height:var(--ui-header-height)!important;margin:0!important;padding:0 18px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important}
.brand-row{width:calc(var(--ui-sidebar-width) - 18px);min-width:calc(var(--ui-sidebar-width) - 18px);gap:10px!important}
.brand-row .brand-mark.small{width:34px!important;height:34px!important;border-radius:9px!important;background:linear-gradient(135deg,#3b82f6,#2563eb)!important;border:0!important;color:#fff!important;font-size:11px!important;box-shadow:0 6px 14px rgba(37,99,235,.18)!important}
.brand-row .eyebrow.light{display:none!important}
.brand-row h1{margin:0!important;color:#172033!important;font-size:16px!important;font-weight:800!important;letter-spacing:-.02em!important;white-space:nowrap}
.header-meta{color:var(--ui-muted)!important;font-size:12px!important;gap:10px!important}
.header-meta #dataDate{font-variant-numeric:tabular-nums}
.header-meta .status-pill{background:#ecfdf3!important;color:#16824f!important;border:1px solid #ccefdc!important;box-shadow:none!important}
.header-meta .ghost-button{color:#475569!important;background:#fff!important;border:1px solid var(--ui-line-strong)!important;border-radius:8px!important;height:32px!important;padding:0 12px!important}
.header-meta .ghost-button:hover{color:var(--ui-primary)!important;border-color:#bcd0fb!important;background:#f8fbff!important}

.tabs{position:fixed!important;left:0!important;top:var(--ui-header-height)!important;bottom:0!important;z-index:110!important;width:var(--ui-sidebar-width)!important;height:auto!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:4px!important;padding:16px 12px 20px!important;margin:0!important;overflow-x:hidden!important;overflow-y:auto!important;border-radius:0!important;border:0!important;border-right:1px solid var(--ui-line)!important;background:#fff!important;box-shadow:2px 0 16px rgba(15,23,42,.025)!important}
.tabs::before{content:"工作台";display:block;padding:2px 10px 8px;color:#94a3b8;font-size:10px;font-weight:800;letter-spacing:.16em}
.tab{position:relative!important;width:100%!important;min-height:42px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;padding:8px 10px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#516074!important;font-size:12.5px!important;font-weight:650!important;text-align:left!important;box-shadow:none!important;transition:background .16s ease,color .16s ease!important}
.tab::before{width:25px;height:25px;flex:0 0 25px;display:grid;place-items:center;border-radius:7px;background:#f1f5f9;color:#64748b;font-size:10px;font-weight:800;line-height:1;transition:background .16s ease,color .16s ease}
.tab[data-tab="overview"]::before{content:"总"}.tab[data-tab="sales"]::before{content:"销"}.tab[data-tab="stock"]::before{content:"库"}.tab[data-tab="alerts"]::before{content:"警"}.tab[data-tab="summary"]::before{content:"汇"}.tab[data-tab="charts"]::before{content:"图"}.tab[data-tab="jd"]::before{content:"京"}.tab[data-tab="sync"]::before{content:"同"}.tab[data-tab="tplus"]::before{content:"T+";font-size:8px}.tab[data-tab="accounts"]::before{content:"账"}
.tab:hover{color:#1e4f9d!important;background:#f3f7ff!important}
.tab.active{color:#fff!important;background:linear-gradient(135deg,#3478f6,#2563eb)!important;box-shadow:0 7px 18px rgba(37,99,235,.18)!important}
.tab.active::before{background:rgba(255,255,255,.18)!important;color:#fff!important}
.tab .tab-count{margin-left:auto!important;min-width:20px!important;height:20px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0 5px!important;border-radius:999px!important;background:#fff1f2!important;color:#e11d48!important;font-size:9px!important;font-weight:800!important}
.tab.active .tab-count{background:rgba(255,255,255,.18)!important;color:#fff!important}

.page-shell{width:calc(100% - var(--ui-sidebar-width))!important;max-width:none!important;margin:0 0 0 var(--ui-sidebar-width)!important;padding:18px 20px 46px!important}
.tab-panel>.section-heading,.section-heading{margin:10px 2px 14px!important;align-items:flex-start!important}
.section-heading h2,.tab-panel>.section-heading h2{margin:4px 0 0!important;color:#172033!important;font-size:20px!important;font-weight:800!important;letter-spacing:-.025em!important}
.section-heading>p,.tab-panel>.section-heading>p{max-width:760px;color:#718096!important;font-size:11.5px!important;line-height:1.6!important}
.eyebrow{color:var(--ui-primary)!important;font-size:9px!important;letter-spacing:.14em!important}

.panel,.control-card,.sales-growth-panel,.product-alert-kpi,.stock-kpi-item,.sync-summary-card,.account-card,.jd-sort-template-panel{border-color:var(--ui-line)!important;box-shadow:var(--ui-shadow)!important}
.panel{border-radius:var(--ui-radius)!important;background:#fff!important;padding:15px!important;margin-bottom:14px!important}
.kpi-grid{gap:12px!important}
.kpi-card{border:1px solid var(--ui-line)!important;border-top:1px solid var(--ui-line)!important;border-radius:var(--ui-radius)!important;padding:16px 18px!important;box-shadow:var(--ui-shadow)!important;background:#fff!important}
.kpi-card:hover{box-shadow:var(--ui-shadow-hover)!important}
.kpi-card strong{font-size:25px!important;color:#172033!important}.kpi-card span{color:#59677b!important}.kpi-card small{color:#8a97aa!important}
.kpi-card.violet{box-shadow:inset 3px 0 0 #3b82f6,var(--ui-shadow)!important}.kpi-card.green{box-shadow:inset 3px 0 0 #22a06b,var(--ui-shadow)!important}.kpi-card.blue{box-shadow:inset 3px 0 0 #6366f1,var(--ui-shadow)!important}.kpi-card.amber{box-shadow:inset 3px 0 0 #f59e0b,var(--ui-shadow)!important}
.dashboard-grid,.summary-grid,.chart-grid{gap:14px!important}

.workspace-control-grid{gap:10px!important}.control-card{border-radius:11px!important;background:#fff!important}.control-card-heading{margin-bottom:9px!important}
.control-step{background:var(--ui-primary-soft)!important;color:var(--ui-primary)!important;border-color:#dbeafe!important}
.period-toolbar{border:1px solid var(--ui-line)!important;border-radius:10px!important;background:#fbfcfe!important;padding:9px 10px!important;box-shadow:none!important}
.period-controls select,.period-controls input,.tab-panel input:not([type=checkbox]):not([type=radio]):not([type=file]),.tab-panel select{border-color:#dbe1ea!important;border-radius:8px!important;background:#fff!important;color:#334155!important;box-shadow:none!important}
.period-controls select:focus,.period-controls input:focus,.tab-panel input:focus,.tab-panel select:focus{border-color:#8fb5ff!important;box-shadow:0 0 0 3px rgba(37,99,235,.09)!important}
.primary-button,.btn.primary{border-color:var(--ui-primary)!important;background:var(--ui-primary)!important;color:#fff!important;border-radius:8px!important;box-shadow:0 4px 10px rgba(37,99,235,.12)!important}
.primary-button:hover,.btn.primary:hover{border-color:var(--ui-primary-hover)!important;background:var(--ui-primary-hover)!important}
.secondary-button,.btn.secondary{border-color:#dbe1ea!important;background:#fff!important;color:#475569!important;border-radius:8px!important;box-shadow:none!important}
.secondary-button:hover,.btn.secondary:hover{border-color:#b8caf0!important;background:#f8fbff!important;color:#1e5bc6!important}
.workspace-commandbar,.table-viewbar{border-color:var(--ui-line)!important}.formula-chip{border-color:#d9e6ff!important;background:#f6f9ff!important;color:#4b6387!important}

.table-wrap{border:1px solid var(--ui-line)!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important;scrollbar-color:#cbd5e1 transparent}
.table-wrap::-webkit-scrollbar{width:9px;height:9px}.table-wrap::-webkit-scrollbar-thumb{background:#cbd5e1;border:2px solid #fff;border-radius:999px}.table-wrap::-webkit-scrollbar-track{background:#fff}
table{color:#334155!important}th,td{border-bottom-color:#edf0f4!important}
th{background:#f8fafc!important;color:#59677b!important;font-weight:750!important;box-shadow:inset 0 -1px 0 #e9edf2!important}
tbody tr{transition:background-color .12s ease,box-shadow .12s ease}tbody tr:hover{background:#f5f8ff!important;box-shadow:inset 3px 0 0 #93b4ff}
.sales-main-table-wrap,.stock-main-table-wrap{border-radius:10px!important}
.sales-merged-table th,.sales-merged-table td,.stock-main-table th,.stock-main-table td{padding-top:9px!important;padding-bottom:9px!important}
.result-count{color:#64748b!important}
.purchase-transit-link{color:#2563eb!important;text-decoration:underline!important;text-decoration-style:dotted!important;text-underline-offset:3px!important}
.purchase-transit-link:hover{color:#1d4ed8!important;background:#eff6ff!important}
.product-business-badge,.badge,.status-pill{box-shadow:none!important}

dialog{border:1px solid rgba(226,232,240,.95)!important;border-radius:14px!important;box-shadow:0 24px 70px rgba(15,23,42,.20)!important}
dialog::backdrop{background:rgba(15,23,42,.38)!important;backdrop-filter:blur(2px)}
.product-business-status-head,.product-batch-dialog .dialog-head,.purchase-transit-dialog .dialog-head{background:#fbfcfe!important;border-bottom-color:var(--ui-line)!important}
.purchase-transit-summary>div,.product-batch-summary>div{border-color:var(--ui-line)!important;background:#fafcff!important}
.ai-launcher{box-shadow:0 12px 30px rgba(37,99,235,.20)!important}.ai-window{border-color:var(--ui-line)!important;box-shadow:0 24px 70px rgba(15,23,42,.20)!important}

.login-body{background:radial-gradient(circle at 18% 20%,rgba(59,130,246,.11),transparent 32%),radial-gradient(circle at 82% 72%,rgba(99,102,241,.08),transparent 28%),#f7f9fc!important}
.login-shell{gap:28px!important}.login-brand h1{color:#172033!important}
.login-card{border:1px solid var(--ui-line)!important;border-radius:18px!important;box-shadow:0 24px 70px rgba(15,23,42,.09)!important}.login-card .primary-button{min-height:42px!important}

@media(min-width:1760px){.page-shell{padding-left:24px!important;padding-right:24px!important}}
@media(max-width:1100px){
  body{padding-top:0!important}.site-header{position:relative!important;height:auto!important}
  .header-inner{min-height:64px!important;height:auto!important;padding:10px 14px!important}
  .brand-row{width:auto!important;min-width:0!important}
  .tabs{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;flex-direction:row!important;gap:5px!important;padding:7px!important;margin:0 0 12px!important;overflow-x:auto!important;overflow-y:hidden!important;border:1px solid var(--ui-line)!important;border-radius:10px!important;box-shadow:none!important}
  .tabs::before{display:none!important}.tab{width:auto!important;flex:0 0 auto!important;min-height:36px!important;padding:6px 10px!important}.tab::before{display:none!important}
  .page-shell{width:100%!important;margin:0!important;padding:12px 12px 40px!important}
}

/* ==========================================================================
   sidebar-collapse-v19-30-2-20260818
   Visual-only collapsible navigation. No business/data logic changes.
   ========================================================================== */
.sidebar-toggle{
  flex:0 0 32px;
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border:1px solid var(--ui-line-strong);
  border-radius:8px;
  background:#fff;
  color:#64748b;
  box-shadow:none;
  cursor:pointer;
  transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.sidebar-toggle span{
  display:block;
  font-size:22px;
  line-height:1;
  transform:translateY(-1px);
}
.sidebar-toggle:hover{
  color:var(--ui-primary);
  background:#f7faff;
  border-color:#bcd0fb;
}
.sidebar-toggle:focus-visible{
  outline:none;
  border-color:#8fb5ff;
  box-shadow:0 0 0 3px rgba(37,99,235,.10);
}

/* Collapsed desktop state */
body.sidebar-collapsed{
  --ui-sidebar-width:72px;
}
body.sidebar-collapsed .brand-row{
  width:44px!important;
  min-width:44px!important;
}
body.sidebar-collapsed .brand-row>div:last-child{
  display:none!important;
}
body.sidebar-collapsed .tabs{
  padding-left:9px!important;
  padding-right:9px!important;
}
body.sidebar-collapsed .tabs::before{
  display:none!important;
}
body.sidebar-collapsed .tab{
  justify-content:center!important;
  gap:0!important;
  padding-left:8px!important;
  padding-right:8px!important;
  font-size:0!important;
}
body.sidebar-collapsed .tab::before{
  margin:0!important;
  width:34px!important;
  height:34px!important;
  flex-basis:34px!important;
  font-size:11px!important;
}
body.sidebar-collapsed .tab[data-tab="tplus"]::before{
  font-size:9px!important;
}
body.sidebar-collapsed .tab .tab-count{
  position:absolute!important;
  top:2px!important;
  right:2px!important;
  min-width:16px!important;
  height:16px!important;
  padding:0 4px!important;
  font-size:8px!important;
  border:2px solid #fff!important;
}
body.sidebar-collapsed .sidebar-toggle span{
  transform:rotate(180deg) translateY(1px);
}
body.sidebar-collapsed .page-shell{
  width:calc(100% - var(--ui-sidebar-width))!important;
  margin-left:var(--ui-sidebar-width)!important;
}
body.sidebar-collapsed .site-header .header-inner{
  padding-left:14px!important;
}

/* Tooltip-like label for collapsed navigation */
@media(min-width:1101px){
  body.sidebar-collapsed .tab::after{
    content:attr(data-sidebar-label);
    position:fixed;
    left:78px;
    z-index:150;
    padding:6px 9px;
    border:1px solid #dfe5ed;
    border-radius:7px;
    background:#172033;
    color:#fff;
    font-size:11px;
    font-weight:650;
    line-height:1.2;
    white-space:nowrap;
    opacity:0;
    pointer-events:none;
    transform:translateX(-3px);
    transition:opacity .12s ease,transform .12s ease;
    box-shadow:0 8px 24px rgba(15,23,42,.16);
  }
  body.sidebar-collapsed .tab:hover::after,
  body.sidebar-collapsed .tab:focus-visible::after{
    opacity:1;
    transform:translateX(0);
  }
}

/* Mobile/tablet keeps the existing horizontal navigation. */
@media(max-width:1100px){
  .sidebar-toggle{display:none!important}
  body.sidebar-collapsed{--ui-sidebar-width:224px}
  body.sidebar-collapsed .brand-row{
    width:auto!important;
    min-width:0!important;
  }
  body.sidebar-collapsed .brand-row>div:last-child{
    display:block!important;
  }
  body.sidebar-collapsed .tab{
    justify-content:flex-start!important;
    gap:10px!important;
    font-size:12.5px!important;
  }
  body.sidebar-collapsed .tab::before,
  body.sidebar-collapsed .tab::after{
    display:none!important;
  }
  body.sidebar-collapsed .tab .tab-count{
    position:static!important;
    margin-left:auto!important;
    border:0!important;
  }
}

/* ==========================================================================
   sidebar-toggle-position-v19-30-3-20260818
   Fix: put the collapse control on the sidebar edge instead of header center.
   ========================================================================== */
@media(min-width:1101px){
  .sidebar-toggle{
    position:fixed!important;
    top:calc(var(--ui-header-height) + 14px)!important;
    left:calc(var(--ui-sidebar-width) - 15px)!important;
    z-index:135!important;
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    flex:none!important;
    border-radius:9px!important;
    background:#fff!important;
    border:1px solid #d9e1eb!important;
    color:#64748b!important;
    box-shadow:0 4px 14px rgba(15,23,42,.10)!important;
  }
  .sidebar-toggle:hover{
    color:#2563eb!important;
    border-color:#a9c3f7!important;
    background:#f8fbff!important;
    box-shadow:0 6px 18px rgba(37,99,235,.14)!important;
  }
  body.sidebar-collapsed .sidebar-toggle{
    left:calc(var(--ui-sidebar-width) - 15px)!important;
  }
}

/* ==========================================================================
   sidebar-functional-v19-30-4-20260818
   Match approved mockup: hamburger in top bar, not a floating edge arrow.
   ========================================================================== */
@media(min-width:1101px){
  .sidebar-toggle{
    position:fixed!important;
    top:14px!important;
    left:calc(var(--ui-sidebar-width) + 14px)!important;
    z-index:140!important;
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    display:grid!important;
    place-items:center!important;
    padding:0!important;
    border:0!important;
    border-radius:8px!important;
    background:transparent!important;
    color:#475569!important;
    box-shadow:none!important;
  }
  .sidebar-toggle:hover{
    background:#f1f5f9!important;
    color:#1e293b!important;
    border:0!important;
    box-shadow:none!important;
  }
  .sidebar-toggle:active{
    background:#eaf0f7!important;
    transform:scale(.97);
  }
  .sidebar-hamburger{
    width:18px;
    height:14px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
  }
  .sidebar-hamburger i{
    display:block;
    width:18px;
    height:2px;
    border-radius:999px;
    background:currentColor;
    transition:transform .18s ease,width .18s ease,opacity .18s ease;
  }

  /* Top bar leaves a clean controls zone after the sidebar brand, like the approved mockup. */
  .site-header .header-inner{
    padding-left:16px!important;
  }
  .header-meta{
    margin-left:auto!important;
  }

  /* Sidebar proportions and spacing closer to the mockup. */
  .tabs{
    padding:14px 10px 20px!important;
  }
  .tabs::before{
    padding-left:10px!important;
    margin-bottom:2px!important;
  }
  .tab{
    min-height:42px!important;
    padding:8px 10px!important;
    border-radius:8px!important;
  }
  .tab.active{
    background:linear-gradient(135deg,#2f75f4,#2563eb)!important;
    box-shadow:0 7px 18px rgba(37,99,235,.17)!important;
  }

  body.sidebar-collapsed{
    --ui-sidebar-width:76px;
  }
  body.sidebar-collapsed .sidebar-toggle{
    left:calc(var(--ui-sidebar-width) + 14px)!important;
  }
  body.sidebar-collapsed .brand-row{
    width:44px!important;
    min-width:44px!important;
  }
  body.sidebar-collapsed .tabs{
    padding-left:10px!important;
    padding-right:10px!important;
  }
  body.sidebar-collapsed .tab{
    min-height:44px!important;
  }
  body.sidebar-collapsed .tab::before{
    width:34px!important;
    height:34px!important;
    flex-basis:34px!important;
  }

  /* Use the same hamburger in both states; the sidebar width itself communicates state. */
  body.sidebar-collapsed .sidebar-hamburger i{
    transform:none!important;
  }
  body.sidebar-collapsed .sidebar-toggle span{
    transform:none!important;
  }
}

/* Keep collapse control out of narrow/tablet layouts. */
@media(max-width:1100px){
  .sidebar-toggle{display:none!important}
}

/* ==========================================================================
   sidebar-toggle-layout-v19-30-5-20260818
   Fix only placement: collapse control belongs to the sidebar header,
   not beside the website name.
   ========================================================================== */
@media(min-width:1101px){
  /* Expanded: button sits inside the sidebar's "工作台" heading row. */
  .sidebar-toggle{
    position:fixed!important;
    top:calc(var(--ui-header-height) + 12px)!important;
    left:calc(var(--ui-sidebar-width) - 46px)!important;
    z-index:135!important;
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    border:0!important;
    border-radius:7px!important;
    background:transparent!important;
    color:#94a3b8!important;
    box-shadow:none!important;
  }
  .sidebar-toggle:hover{
    background:#f1f5f9!important;
    color:#2563eb!important;
    box-shadow:none!important;
  }
  .sidebar-toggle:active{
    background:#e8eef7!important;
    transform:scale(.97)!important;
  }

  /* Reserve visual space in the workbench heading for the button. */
  .tabs::before{
    padding-right:42px!important;
    min-height:30px!important;
    display:flex!important;
    align-items:center!important;
  }

  /* Collapsed: keep the button centered at the top of the narrow sidebar. */
  body.sidebar-collapsed .sidebar-toggle{
    left:23px!important;
    top:calc(var(--ui-header-height) + 12px)!important;
    background:#f8fafc!important;
    color:#64748b!important;
    border:1px solid #e2e8f0!important;
  }
  body.sidebar-collapsed .sidebar-toggle:hover{
    color:#2563eb!important;
    border-color:#bfdbfe!important;
    background:#eff6ff!important;
  }

  /* In collapsed mode, leave a clean top slot for the toggle. */
  body.sidebar-collapsed .tabs{
    padding-top:54px!important;
  }
  body.sidebar-collapsed .tabs::before{
    display:none!important;
  }

  /* Website brand stays visually clean; no extra control beside the title. */
  .site-header .brand-row{
    padding-right:0!important;
  }
}

/* Narrow layouts keep existing behavior. */
@media(max-width:1100px){
  .sidebar-toggle{display:none!important}
}

/* ==========================================================================
   sidebar-footer-v19-30-6-20260818
   Match approved mockup:
   - no "工作台" label
   - 账号管理 pinned at the sidebar footer
   - collapse chevron at footer-right
   ========================================================================== */
@media(min-width:1101px){
  /* 去掉上一版多余的“工作台”标题 */
  .tabs::before{
    display:none!important;
  }

  /* 给底部固定区域留空间，菜单主体不会被挡住 */
  .tabs{
    padding:14px 10px 72px!important;
  }

  /* 效果图同款底部白色固定栏 */
  .tabs::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:58px;
    z-index:1;
    background:#fff;
    border-top:1px solid var(--ui-line);
  }

  /* “系统设置”的位置改成真实的“账号管理” */
  .tab[data-tab="accounts"]{
    position:absolute!important;
    left:10px!important;
    bottom:8px!important;
    z-index:3!important;
    width:calc(100% - 58px)!important;
    min-height:42px!important;
    margin:0!important;
    padding:8px 10px!important;
    justify-content:flex-start!important;
    border-radius:8px!important;
    background:transparent!important;
    color:#516074!important;
    box-shadow:none!important;
  }
  .tab[data-tab="accounts"]:hover{
    background:#f3f7ff!important;
    color:#1e4f9d!important;
  }
  .tab[data-tab="accounts"].active{
    background:#eef4ff!important;
    color:#2563eb!important;
    box-shadow:none!important;
  }
  .tab[data-tab="accounts"].active::before{
    background:#dbeafe!important;
    color:#2563eb!important;
  }

  /* 收起按钮放到效果图中的侧栏右下角 */
  .sidebar-toggle{
    position:fixed!important;
    top:auto!important;
    left:calc(var(--ui-sidebar-width) - 46px)!important;
    bottom:11px!important;
    z-index:140!important;
    width:34px!important;
    height:36px!important;
    min-width:34px!important;
    display:grid!important;
    place-items:center!important;
    padding:0!important;
    border:0!important;
    border-radius:8px!important;
    background:transparent!important;
    color:#64748b!important;
    box-shadow:none!important;
  }
  .sidebar-toggle:hover{
    background:#f1f5f9!important;
    color:#2563eb!important;
    border:0!important;
    box-shadow:none!important;
  }
  .sidebar-chevron{
    display:block;
    font-size:22px;
    line-height:1;
    font-weight:400;
    transform:translateY(-1px);
    transition:transform .16s ease;
  }

  /* 收起状态：账号图标与箭头垂直排布，不拥挤 */
  body.sidebar-collapsed .tabs{
    padding:14px 10px 106px!important;
  }
  body.sidebar-collapsed .tab[data-tab="accounts"]{
    left:10px!important;
    bottom:54px!important;
    width:44px!important;
    min-height:42px!important;
    padding:4px!important;
    justify-content:center!important;
    font-size:0!important;
  }
  body.sidebar-collapsed .tab[data-tab="accounts"]::before{
    width:34px!important;
    height:34px!important;
    flex:0 0 34px!important;
    margin:0!important;
  }
  body.sidebar-collapsed .sidebar-toggle{
    left:21px!important;
    bottom:10px!important;
    width:34px!important;
    height:34px!important;
    background:#f8fafc!important;
    border:1px solid #e2e8f0!important;
  }
  body.sidebar-collapsed .sidebar-chevron{
    transform:rotate(180deg) translateY(1px);
  }

  /* 顶部品牌区保持干净 */
  .site-header .brand-row{
    padding-right:0!important;
  }
}

@media(max-width:1100px){
  .sidebar-toggle{display:none!important}
}

/* ==========================================================================
   sidebar-footer-dom-v19-30-7-20260818
   Structural fix: toggle is now physically inside the sidebar footer.
   No more cross-layout fixed positioning from the header.
   ========================================================================== */
@media(min-width:1101px){
  /* 清掉前几版靠伪元素/跨区域定位做底栏的方案 */
  .tabs::after{
    display:none!important;
    content:none!important;
  }

  .tabs{
    padding:14px 10px 70px!important;
  }

  .sidebar-footer-controls{
    position:absolute!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    z-index:20!important;
    height:58px!important;
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    padding:8px 10px!important;
    background:#fff!important;
    border-top:1px solid var(--ui-line)!important;
  }

  /* 账号管理就是效果图左下角那一项 */
  .sidebar-footer-controls .tab[data-tab="accounts"]{
    position:relative!important;
    inset:auto!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    z-index:auto!important;
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    min-height:40px!important;
    margin:0!important;
    padding:8px 10px!important;
    justify-content:flex-start!important;
    border-radius:8px!important;
    background:transparent!important;
    color:#516074!important;
    box-shadow:none!important;
    font-size:12.5px!important;
  }
  .sidebar-footer-controls .tab[data-tab="accounts"]:hover{
    background:#f3f7ff!important;
    color:#1e4f9d!important;
  }
  .sidebar-footer-controls .tab[data-tab="accounts"].active{
    background:#eef4ff!important;
    color:#2563eb!important;
    box-shadow:none!important;
  }

  /* 箭头是真正的底栏右侧子元素，不再 position:fixed 到页面上 */
  .sidebar-footer-controls .sidebar-toggle{
    position:relative!important;
    inset:auto!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    z-index:auto!important;
    flex:0 0 36px!important;
    width:36px!important;
    height:40px!important;
    min-width:36px!important;
    margin:0!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    border:0!important;
    border-radius:8px!important;
    background:transparent!important;
    color:#64748b!important;
    box-shadow:none!important;
  }
  .sidebar-footer-controls .sidebar-toggle:hover{
    background:#f1f5f9!important;
    color:#2563eb!important;
    border:0!important;
    box-shadow:none!important;
  }
  .sidebar-footer-controls .sidebar-chevron{
    display:block!important;
    font-size:22px!important;
    line-height:1!important;
    transform:translateY(-1px)!important;
  }

  /* 收起状态：窄侧栏底部，账号图标在上、展开箭头在下 */
  body.sidebar-collapsed .tabs{
    padding:14px 10px 108px!important;
  }
  body.sidebar-collapsed .sidebar-footer-controls{
    height:96px!important;
    padding:7px 10px!important;
    flex-direction:column!important;
    justify-content:center!important;
    gap:6px!important;
  }
  body.sidebar-collapsed .sidebar-footer-controls .tab[data-tab="accounts"]{
    position:relative!important;
    inset:auto!important;
    flex:0 0 38px!important;
    width:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    height:38px!important;
    padding:2px!important;
    justify-content:center!important;
    font-size:0!important;
  }
  body.sidebar-collapsed .sidebar-footer-controls .tab[data-tab="accounts"]::before{
    width:34px!important;
    height:34px!important;
    flex:0 0 34px!important;
    margin:0!important;
  }
  body.sidebar-collapsed .sidebar-footer-controls .sidebar-toggle{
    position:relative!important;
    inset:auto!important;
    flex:0 0 34px!important;
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    background:#f8fafc!important;
    border:1px solid #e2e8f0!important;
  }
  body.sidebar-collapsed .sidebar-footer-controls .sidebar-chevron{
    transform:rotate(180deg) translateY(1px)!important;
  }

  /* 品牌区明确不允许出现侧栏按钮 */
  .site-header #sidebarToggle{
    display:none!important;
  }
}

@media(max-width:1100px){
  .sidebar-footer-controls{
    display:none!important;
  }
}

/* ==========================================================================
   sales-workspace-ui-v19-31-20260818
   Pure presentation upgrade for the sales workspace.
   Business formulas / APIs / database semantics are unchanged.
   ========================================================================== */

/* 销量页整体更接近已确认效果图 */
#sales{
  --sales-ui-blue:#2563eb;
  --sales-ui-border:#e5eaf1;
  --sales-ui-muted:#748197;
}
#sales .workspace-section-heading{
  margin-bottom:14px!important;
}
#sales .workspace-section-heading h2{
  font-size:23px!important;
}
#sales .workspace-section-heading>p{
  align-self:center;
}

/* 顶部 4 个摘要卡：只展示已有计算结果 */
.sales-ui-kpi-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:0 0 14px;
}
.sales-ui-kpi{
  min-width:0;
  min-height:112px;
  display:flex;
  align-items:center;
  gap:15px;
  padding:17px 18px;
  border:1px solid var(--sales-ui-border);
  border-radius:13px;
  background:#fff;
  color:#1f2937;
  box-shadow:var(--ui-shadow);
  text-align:left;
}
button.sales-ui-kpi{
  appearance:none;
  font:inherit;
  cursor:pointer;
}
button.sales-ui-kpi:hover{
  border-color:#cbd8ef;
  box-shadow:var(--ui-shadow-hover);
}
button.sales-ui-kpi.active{
  border-color:#8db4ff;
  box-shadow:0 0 0 3px rgba(37,99,235,.08),var(--ui-shadow);
}
.sales-ui-kpi-icon{
  flex:0 0 46px;
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:13px;
  color:#fff;
  font-size:20px;
  font-weight:850;
  box-shadow:0 8px 18px rgba(15,23,42,.10);
}
.sales-ui-kpi.danger .sales-ui-kpi-icon{background:linear-gradient(135deg,#ff5c68,#ef4444)}
.sales-ui-kpi.warning .sales-ui-kpi-icon{background:linear-gradient(135deg,#ffa62b,#f97316)}
.sales-ui-kpi.primary .sales-ui-kpi-icon{background:linear-gradient(135deg,#4f8cff,#2563eb)}
.sales-ui-kpi.success .sales-ui-kpi-icon{background:linear-gradient(135deg,#32c89b,#10b981)}
.sales-ui-kpi-body{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.sales-ui-kpi-body small{
  color:#59677b;
  font-size:12px;
  font-weight:700;
}
.sales-ui-kpi-body strong{
  color:#162033;
  font-size:28px;
  line-height:1.05;
  font-weight:850;
  font-style:normal;
  font-variant-numeric:tabular-nums;
}
.sales-ui-kpi.danger .sales-ui-kpi-body strong{color:#dc2626}
.sales-ui-kpi.warning .sales-ui-kpi-body strong{color:#ea580c}
.sales-ui-kpi-body em{
  overflow:hidden;
  color:#8a97aa;
  font-size:10.5px;
  font-style:normal;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.sales-ui-kpi-unit{
  font-size:13px;
  color:#64748b;
  font-weight:700;
}

/* 主工作区只保留一个干净的大卡片 */
#sales .sales-workspace-panel{
  padding:0!important;
  overflow:visible;
  border-radius:14px!important;
}
#sales .workspace-commandbar{
  padding:15px 16px 9px;
  border-bottom:0!important;
}
#sales .workspace-commandbar-title .eyebrow{
  display:none;
}
#sales .workspace-commandbar-title h3{
  font-size:16px!important;
}
#sales .workspace-control-grid{
  display:grid!important;
  grid-template-columns:minmax(360px,1.15fr) minmax(300px,.95fr) minmax(420px,1.3fr)!important;
  gap:10px!important;
  padding:0 14px 12px;
}
#sales .control-card{
  min-width:0;
  padding:11px 12px!important;
  border:1px solid #edf0f4!important;
  border-radius:10px!important;
  background:#fafbfd!important;
  box-shadow:none!important;
}
#sales .control-card-heading{
  margin-bottom:8px!important;
}
#sales .control-card-heading small{
  display:none;
}
#sales .control-step{
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  font-size:9px!important;
}
#sales .control-fields{
  gap:7px!important;
}
#sales .control-fields label,
#sales .restock-control-fields label{
  font-size:10.5px!important;
}
#sales .control-fields input,
#sales .control-fields select,
#sales .restock-control-fields input,
#sales .restock-control-fields select{
  min-height:34px!important;
}

/* 预估补货总量作为小信息块，不再占一张大摘要卡 */
.sales-restock-total-chip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:128px;
  padding:7px 9px;
  border:1px solid #dfe8f7;
  border-radius:8px;
  background:#f7faff;
}
.sales-restock-total-chip small{
  color:#64748b;
  font-size:10px;
}
.sales-restock-total-chip strong{
  color:#1d4ed8;
  font-size:15px;
}
#sales .restock-control-layout{
  display:flex!important;
  align-items:flex-end!important;
  gap:8px!important;
}
#sales .restock-control-fields{
  flex:1 1 auto!important;
  gap:7px!important;
}
#sales .formula-status-row{
  margin-top:7px!important;
  gap:7px!important;
}
#sales .formula-chip{
  max-width:100%;
  font-size:9.5px!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#sales .target-days-status{
  font-size:9.5px!important;
}

/* 表格工具条，平台设置默认折叠 */
#sales .table-viewbar{
  padding:10px 14px!important;
  background:#fff!important;
  border-top:1px solid #edf0f4!important;
  border-bottom:1px solid #edf0f4!important;
}
#sales .table-view-note{
  color:#8995a8!important;
}
#sales .sales-table-actions{
  gap:7px!important;
}
#sales .platform-picker{
  position:relative;
}
#sales .sales-platform-picker-summary{
  min-width:178px;
  justify-content:space-between!important;
  gap:10px;
}
#sales .platform-picker-count{
  padding:2px 6px;
  border-radius:999px;
  background:#eff6ff;
  color:#2563eb;
  font-size:9px;
  font-weight:800;
}
#sales .platform-picker:not([open]) .platform-picker-popover{
  display:none!important;
}
#sales .platform-picker[open] .platform-picker-popover{
  display:block!important;
  width:min(620px,72vw)!important;
  max-height:min(560px,70vh);
  overflow:auto;
  right:0!important;
  left:auto!important;
}
#sales .platform-picker-options{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:6px!important;
}
#sales .platform-picker-option{
  min-width:0;
}

/* 表格更清楚但不降低信息密度 */
#sales .sales-main-table-wrap{
  margin:0 14px!important;
  border-radius:9px!important;
}
#sales .sales-merged-table th{
  height:38px;
  background:#f8fafc!important;
  color:#445168!important;
  font-size:10.5px!important;
}
#sales .sales-merged-table td{
  height:43px;
}
#sales .sales-merged-table tbody tr:hover{
  background:#f4f8ff!important;
}
#sales #salesPager{
  padding:10px 14px 14px!important;
}

/* 销量增速保留，但移到主工作区下面；默认折叠，不挡主表 */
#sales .sales-growth-panel{
  margin-top:14px!important;
  border-style:dashed!important;
  box-shadow:none!important;
}
#sales .sales-growth-panel.is-collapsed{
  padding:11px 14px!important;
}
#sales .sales-growth-panel.is-collapsed .sales-growth-toolbar h3{
  font-size:13px!important;
}
#sales .sales-growth-panel.is-collapsed .growth-help{
  display:none!important;
}

@media(max-width:1500px){
  #sales .workspace-control-grid{
    grid-template-columns:1fr 1fr!important;
  }
  #sales .control-card-restock{
    grid-column:1/-1;
  }
}
@media(max-width:1250px){
  .sales-ui-kpi-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:900px){
  .sales-ui-kpi-grid{
    grid-template-columns:1fr;
  }
  #sales .workspace-control-grid{
    grid-template-columns:1fr!important;
  }
  #sales .control-card-restock{
    grid-column:auto;
  }
  #sales .platform-picker-options{
    grid-template-columns:1fr!important;
  }
}

/* ==========================================================================
   sales-workspace-ui-v19-32-20260818
   Approved compact ERP/SaaS layout. Presentation only.
   ========================================================================== */

#sales{
  --v32-border:#e5eaf1;
  --v32-soft:#f8fafc;
  --v32-muted:#728096;
  --v32-title:#172033;
  --v32-blue:#2563eb;
}

/* Page header */
#sales .sales-v32-heading{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:20px!important;
  margin:8px 2px 14px!important;
}
#sales .sales-v32-heading h2{
  margin:3px 0 4px!important;
  font-size:24px!important;
  font-weight:850!important;
  letter-spacing:-.03em!important;
}
#sales .sales-v32-heading-note{
  margin:0!important;
  color:#7a879a!important;
  font-size:11px!important;
}
#sales .sales-v32-heading-actions{
  flex:0 0 auto;
  padding-top:2px;
}

/* Platform selector: compact and collapsed by default */
#sales .sales-v32-platform-picker{
  position:relative;
}
#sales .sales-v32-platform-picker>summary{
  min-width:190px;
  min-height:38px;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:0 12px!important;
  border-radius:9px!important;
  background:#fff!important;
}
#sales .sales-v32-platform-picker[open]>summary{
  border-color:#9dbdfc!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.07)!important;
}
#sales .platform-picker-count{
  padding:2px 7px;
  border-radius:999px;
  background:#eff6ff;
  color:#2563eb;
  font-size:9px;
  font-weight:800;
}
#sales .sales-v32-platform-picker .platform-picker-popover{
  width:min(640px,74vw)!important;
  max-height:min(570px,72vh);
  overflow:auto;
  right:0!important;
  left:auto!important;
  top:calc(100% + 8px)!important;
  border:1px solid #e1e7ef!important;
  border-radius:13px!important;
  box-shadow:0 18px 45px rgba(15,23,42,.13)!important;
}
#sales .sales-v32-platform-picker:not([open]) .platform-picker-popover{
  display:none!important;
}
#sales .sales-v32-platform-picker .platform-picker-options{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;
}

/* Real KPI cards; quieter than previous colorful version */
#sales .sales-v32-kpi-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:14px;
}
#sales .sales-v32-kpi{
  min-width:0;
  min-height:88px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:14px 16px;
  border:1px solid var(--v32-border);
  border-radius:12px;
  background:#fff;
  color:#1f2937;
  box-shadow:0 1px 2px rgba(15,23,42,.02),0 7px 18px rgba(15,23,42,.025);
  text-align:left;
}
#sales button.sales-v32-kpi{
  appearance:none;
  font:inherit;
  cursor:pointer;
}
#sales button.sales-v32-kpi:hover{
  border-color:#cad7ea;
  box-shadow:0 10px 26px rgba(15,23,42,.06);
}
#sales button.sales-v32-kpi.active{
  border-color:#8db4ff;
  box-shadow:0 0 0 3px rgba(37,99,235,.07);
}
#sales .sales-v32-kpi-icon{
  flex:0 0 38px;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:10px;
  font-size:11px;
  font-weight:850;
}
#sales .sales-v32-kpi-icon.blue{background:#eef4ff;color:#2563eb}
#sales .sales-v32-kpi-icon.indigo{background:#f2efff;color:#6366f1}
#sales .sales-v32-kpi-icon.green{background:#eafbf4;color:#0f9f6e}
#sales .sales-v32-kpi-icon.orange{background:#fff5e9;color:#ea7a16}
#sales .sales-v32-kpi>div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
#sales .sales-v32-kpi small{
  color:#64748b;
  font-size:10.5px;
  font-weight:700;
}
#sales .sales-v32-kpi strong{
  color:#172033;
  font-size:23px;
  line-height:1.1;
  font-weight:850;
  font-variant-numeric:tabular-nums;
}
#sales .sales-v32-kpi em{
  overflow:hidden;
  color:#95a0b1;
  font-size:9.5px;
  font-style:normal;
  white-space:nowrap;
  text-overflow:ellipsis;
}

/* One controls card, two clean columns + replenishment strip */
#sales .sales-v32-controls-panel{
  padding:0!important;
  overflow:visible!important;
  border-radius:13px!important;
}
#sales .sales-v32-control-grid{
  display:grid;
  grid-template-columns:1.05fr 1fr;
  gap:0;
}
#sales .sales-v32-control-block{
  min-width:0;
  padding:15px 16px 13px;
}
#sales .sales-v32-control-block+ .sales-v32-control-block{
  border-left:1px solid #edf0f4;
}
#sales .sales-v32-control-title{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
}
#sales .sales-v32-control-title>span{
  width:23px;
  height:23px;
  display:grid;
  place-items:center;
  border-radius:7px;
  background:#eff6ff;
  color:#2563eb;
  font-size:11px;
  font-weight:800;
}
#sales .sales-v32-control-title strong{
  font-size:13px;
  color:#273449;
}
#sales .sales-v32-query-fields{
  display:grid!important;
  grid-template-columns:minmax(180px,1.35fr) minmax(100px,.7fr) minmax(120px,.8fr) minmax(150px,.95fr) auto;
  gap:8px!important;
  align-items:end!important;
}
#sales .sales-v32-query-fields label,
#sales .sales-v32-period-slot label,
#sales .sales-v32-restock-fields label{
  font-size:10.5px!important;
  color:#64748b!important;
}
#sales .sales-v32-query-fields input,
#sales .sales-v32-query-fields select,
#sales .sales-v32-period-slot input,
#sales .sales-v32-period-slot select,
#sales .sales-v32-restock-fields input,
#sales .sales-v32-restock-fields select{
  min-height:35px!important;
  border-radius:8px!important;
}
#sales .sales-v32-period-slot .period-toolbar{
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
#sales .sales-v32-period-slot .period-controls{
  gap:8px!important;
  align-items:end!important;
}
#sales .sales-v32-meta-line{
  min-height:32px;
  display:flex;
  align-items:center;
  padding:0 16px;
  border-top:1px solid #f0f2f5;
  border-bottom:1px solid #f0f2f5;
  background:#fbfcfe;
}
#sales .sales-v32-meta-line .jd-data-coverage{
  margin:0!important;
  color:#8390a3!important;
  font-size:9.5px!important;
}

#sales .sales-v32-restock-strip{
  display:grid;
  grid-template-columns:minmax(220px,.85fr) minmax(500px,1.4fr) minmax(390px,1fr);
  align-items:center;
  gap:18px;
  padding:14px 16px;
}
#sales .sales-v32-restock-title{
  display:flex;
  align-items:center;
  gap:10px;
}
#sales .sales-v32-restock-icon{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  flex:0 0 30px;
  border-radius:9px;
  background:#eef4ff;
  color:#2563eb;
  font-weight:850;
}
#sales .sales-v32-restock-title div{
  display:flex;
  flex-direction:column;
  gap:2px;
}
#sales .sales-v32-restock-title strong{
  font-size:13px;
  color:#253248;
}
#sales .sales-v32-restock-title small{
  color:#8b97aa;
  font-size:9.5px;
}
#sales .sales-v32-restock-fields{
  display:grid!important;
  grid-template-columns:1fr 1fr 1.3fr;
  gap:8px!important;
  align-items:end!important;
}
#sales .sales-v32-formula{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
  padding-left:16px;
  border-left:1px solid #edf0f4;
}
#sales .sales-v32-formula>small{
  color:#718096;
  font-size:10px;
  font-weight:700;
}
#sales .sales-v32-formula .formula-chip{
  width:100%;
  max-width:100%;
  padding:6px 8px!important;
  overflow:hidden;
  color:#16835d!important;
  background:#f0fbf6!important;
  border-color:#d6f1e5!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#sales .sales-v32-formula .target-days-status{
  color:#95a0b1!important;
  font-size:9px!important;
}

/* Table owns the page */
#sales .sales-v32-table-panel{
  padding:0!important;
  border-radius:13px!important;
  overflow:visible!important;
}
#sales .sales-v32-tablebar{
  padding:10px 14px!important;
  background:#fff!important;
  border:0!important;
  border-bottom:1px solid #edf0f4!important;
}
#sales .sales-v32-tablebar>div:first-child{
  display:flex;
  align-items:center;
  gap:10px;
}
#sales .sales-v32-tablebar .result-count{
  color:#64748b!important;
  font-size:10px!important;
}
#sales .sales-v32-tablebar .table-view-note{
  color:#98a3b4!important;
  font-size:9.5px!important;
}
#sales .sales-main-table-wrap{
  margin:0!important;
  border:0!important;
  border-radius:0!important;
}
#sales .sales-merged-table th{
  height:40px!important;
  background:#f8fafc!important;
  color:#445168!important;
  font-size:10px!important;
  border-right:1px solid #edf0f4;
}
#sales .sales-merged-table td{
  height:45px!important;
  border-right:1px solid #f0f2f5;
}
#sales .sales-merged-table tbody tr:hover{
  background:#f6f9ff!important;
  box-shadow:inset 3px 0 0 #9cbcff;
}
#sales #salesPager{
  padding:11px 14px 13px!important;
  border-top:1px solid #edf0f4;
}

/* Growth remains available but visually secondary */
#sales .sales-v32-growth-panel{
  margin-top:12px!important;
  box-shadow:none!important;
  border-style:dashed!important;
}
#sales .sales-v32-growth-panel.is-collapsed{
  padding:10px 14px!important;
}
#sales .sales-v32-growth-panel.is-collapsed .growth-help{
  display:none!important;
}

/* Kill previous v19-31 large-card spacing when selectors overlap */
#sales .sales-ui-kpi-grid{display:none!important}
#sales .sales-workspace-panel{display:none!important}

/* responsive */
@media(max-width:1500px){
  #sales .sales-v32-control-grid{
    grid-template-columns:1fr;
  }
  #sales .sales-v32-control-block+ .sales-v32-control-block{
    border-left:0;
    border-top:1px solid #edf0f4;
  }
  #sales .sales-v32-restock-strip{
    grid-template-columns:1fr;
  }
  #sales .sales-v32-formula{
    padding-left:0;
    border-left:0;
  }
}
@media(max-width:1200px){
  #sales .sales-v32-kpi-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #sales .sales-v32-query-fields{
    grid-template-columns:1fr 1fr;
  }
  #sales .sales-v32-platform-picker .platform-picker-options{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  #sales .sales-v32-kpi-grid{
    grid-template-columns:1fr;
  }
  #sales .sales-v32-query-fields,
  #sales .sales-v32-restock-fields{
    grid-template-columns:1fr!important;
  }
  #sales .sales-v32-platform-picker .platform-picker-options{
    grid-template-columns:1fr!important;
  }
}

/* ==========================================================================
   sales-platform-picker-toolbar-v19-32-1-20260818
   UI-only patch: move platform picker into the table toolbar and compact it.
   ========================================================================== */

#sales .sales-v32-heading-actions{
  display:none!important;
}

#sales .sales-table-viewbar-right{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  flex-wrap:wrap!important;
}

#sales .sales-toolbar-platform-picker{
  position:relative!important;
  flex:0 0 auto!important;
  margin:0!important;
}

#sales .sales-toolbar-platform-summary{
  width:auto!important;
  min-width:0!important;
  height:30px!important;
  min-height:30px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  padding:0 9px!important;
  margin:0!important;
  border:1px solid #dce3ec!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#4d5d73!important;
  font-size:10px!important;
  font-weight:650!important;
  line-height:1!important;
  box-shadow:none!important;
  white-space:nowrap!important;
  cursor:pointer!important;
}

#sales .sales-toolbar-platform-summary::-webkit-details-marker{
  display:none!important;
}

#sales .sales-toolbar-platform-summary::marker{
  content:""!important;
}

#sales .sales-toolbar-platform-summary:hover{
  border-color:#b9cdf2!important;
  background:#f8fbff!important;
  color:#245bb7!important;
}

#sales .sales-toolbar-platform-picker[open]>.sales-toolbar-platform-summary{
  border-color:#93b6f9!important;
  background:#f6f9ff!important;
  color:#1f5dc4!important;
  box-shadow:0 0 0 2px rgba(37,99,235,.06)!important;
}

#sales .sales-toolbar-platform-label{
  font-size:10px!important;
  font-weight:700!important;
  letter-spacing:0!important;
}

#sales .sales-toolbar-platform-summary .platform-picker-count{
  min-width:18px!important;
  height:18px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 5px!important;
  border-radius:999px!important;
  background:#edf4ff!important;
  color:#2563eb!important;
  font-size:8.5px!important;
  font-weight:800!important;
  line-height:1!important;
}

#sales .sales-toolbar-platform-chevron{
  display:inline-block!important;
  color:#8290a4!important;
  font-size:11px!important;
  line-height:1!important;
  transform:translateY(-1px)!important;
  transition:transform .15s ease!important;
}

#sales .sales-toolbar-platform-picker[open] .sales-toolbar-platform-chevron{
  transform:rotate(180deg) translateY(1px)!important;
}

#sales .sales-toolbar-platform-picker .platform-picker-popover{
  position:absolute!important;
  top:calc(100% + 7px)!important;
  right:0!important;
  left:auto!important;
  z-index:180!important;
  width:min(620px,70vw)!important;
  max-height:min(560px,70vh)!important;
  overflow:auto!important;
  border:1px solid #e1e7ef!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 18px 45px rgba(15,23,42,.14)!important;
}

#sales .sales-toolbar-platform-picker:not([open]) .platform-picker-popover{
  display:none!important;
}

#sales .sales-toolbar-platform-picker .platform-picker-options{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;
}

/* 右侧按钮统一一条基线，避免这个入口比旁边按钮突兀 */
#sales .sales-v32-tablebar .workspace-commandbar-actions.sales-table-actions{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
}

#sales .sales-v32-tablebar .workspace-commandbar-actions.sales-table-actions>.compact-button,
#sales .sales-v32-tablebar .workspace-commandbar-actions.sales-table-actions>details>summary.compact-button{
  min-height:30px!important;
  height:30px!important;
  border-radius:7px!important;
  font-size:9.5px!important;
}

@media(max-width:1200px){
  #sales .sales-toolbar-platform-picker .platform-picker-popover{
    width:min(540px,82vw)!important;
  }
  #sales .sales-toolbar-platform-picker .platform-picker-options{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:760px){
  #sales .sales-toolbar-platform-picker .platform-picker-popover{
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    top:90px!important;
    width:auto!important;
    max-height:72vh!important;
  }
  #sales .sales-toolbar-platform-picker .platform-picker-options{
    grid-template-columns:1fr!important;
  }
}

/* ==========================================================================
   mint-office-theme-v19-32-2-20260818
   Pure color theme only:
   - soft mint-blue page background
   - black primary text
   - blue interactive elements
   - white cards/tables/navigation
   - preserve existing business status colors
   ========================================================================== */

:root{
  --mint-page:#f2f7f7;
  --mint-surface:#ffffff;
  --mint-soft:#f7fafa;
  --mint-border:#e1e8e8;
  --mint-border-strong:#d5dfdf;
  --mint-text:#111827;
  --mint-muted:#667085;
  --mint-subtle:#8791a1;
  --mint-link:#2563eb;
  --mint-link-hover:#1d4ed8;

  /* 同步覆盖当前 UI 变量 */
  --ui-bg:var(--mint-page);
  --ui-surface:var(--mint-surface);
  --ui-surface-soft:var(--mint-soft);
  --ui-line:var(--mint-border);
  --ui-line-strong:var(--mint-border-strong);
  --ui-text:var(--mint-text);
  --ui-muted:var(--mint-muted);
  --v32-border:var(--mint-border);
  --v32-soft:var(--mint-soft);
  --v32-muted:var(--mint-muted);
  --v32-title:var(--mint-text);
}

/* 整站背景：很淡的蓝绿灰，不用渐变、不影响看数据 */
html,
body{
  background:var(--mint-page)!important;
  color:var(--mint-text)!important;
}
.page-shell{
  background:transparent!important;
}

/* 顶栏 / 左栏 / 主要内容面保持白色 */
.site-header,
.tabs,
.panel,
.kpi-card,
.control-card,
.sales-v32-kpi,
.sales-v32-controls-panel,
.sales-v32-table-panel,
.sales-growth-panel,
.table-wrap,
dialog,
.ai-window{
  background:var(--mint-surface)!important;
}
.site-header,
.tabs,
.panel,
.kpi-card,
.control-card,
.sales-v32-kpi,
.sales-v32-controls-panel,
.sales-v32-table-panel,
.sales-growth-panel,
.table-wrap{
  border-color:var(--mint-border)!important;
}

/* 普通文字统一接近纯黑 */
body,
button,
input,
select,
textarea,
table,
th,
td,
label,
strong,
h1,h2,h3,h4,h5,h6{
  color:var(--mint-text);
}

.brand-row h1,
.section-heading h2,
.sales-v32-heading h2,
.sales-v32-control-title strong,
.sales-v32-restock-title strong,
.sales-v32-kpi strong,
.table-viewbar strong,
.panel h3{
  color:var(--mint-text)!important;
}

/* 次要说明仍保留层级，不用发蓝灰 */
small,
.eyebrow,
.section-heading p,
.sales-v32-heading-note,
.table-view-note,
.result-count,
.jd-data-coverage,
.target-days-status,
.sales-v32-kpi em,
.sales-v32-restock-title small,
.sales-v32-formula>small,
.control-card-heading small{
  color:var(--mint-muted)!important;
}

/* 表格：黑字 + 很浅的薄荷灰表头/hover */
th{
  background:var(--mint-soft)!important;
  color:#374151!important;
  border-color:var(--mint-border)!important;
}
td{
  color:var(--mint-text)!important;
  border-color:#e9eeee!important;
}
tbody tr:hover{
  background:#f3f8f8!important;
}

/* 筛选/输入框保持白色，边框更柔和 */
input:not([type=checkbox]):not([type=radio]),
select,
textarea,
.period-toolbar{
  background:#fff!important;
  color:var(--mint-text)!important;
  border-color:var(--mint-border-strong)!important;
}
input::placeholder,
textarea::placeholder{
  color:#98a2b3!important;
}
input:focus,
select:focus,
textarea:focus{
  border-color:#8fb5ff!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.08)!important;
}

/* 卡片内的次级区域改成统一浅薄荷灰 */
#sales .sales-v32-meta-line,
#sales .sales-v32-control-block,
.formula-chip,
.period-toolbar,
.platform-picker-option{
  border-color:var(--mint-border)!important;
}
#sales .sales-v32-meta-line{
  background:var(--mint-soft)!important;
}
#sales .sales-v32-formula .formula-chip{
  /* 公式仍保留绿色语义，但底色更适配新主题 */
  background:#f2faf6!important;
  border-color:#d9eee4!important;
}

/* 左侧导航普通文字黑灰，选中仍保持蓝底白字 */
.tab{
  color:#344054!important;
}
.tab:hover{
  color:var(--mint-link)!important;
  background:#f2f6ff!important;
}
.tab.active{
  color:#fff!important;
}
.tab.active::before{
  color:#fff!important;
}

/* 可点击内容统一继续蓝色 */
a,
button.link-button,
.purchase-transit-link,
.clickable,
.clickable-number,
.table-link,
[data-action-link],
#sales a{
  color:var(--mint-link);
}
a:hover,
button.link-button:hover,
.purchase-transit-link:hover,
.clickable:hover,
.clickable-number:hover,
.table-link:hover,
[data-action-link]:hover,
#sales a:hover{
  color:var(--mint-link-hover);
}

/* 现有蓝色按钮继续做主操作色 */
.primary-button,
.btn.primary,
.cart-primary-button{
  background:var(--mint-link)!important;
  border-color:var(--mint-link)!important;
  color:#fff!important;
}
.primary-button:hover,
.btn.primary:hover,
.cart-primary-button:hover{
  background:var(--mint-link-hover)!important;
  border-color:var(--mint-link-hover)!important;
}

/* 次按钮更轻，不发灰蓝 */
.secondary-button,
.btn.secondary,
.sales-toolbar-platform-summary{
  background:#fff!important;
  color:#344054!important;
  border-color:var(--mint-border-strong)!important;
}
.secondary-button:hover,
.btn.secondary:hover,
.sales-toolbar-platform-summary:hover{
  color:var(--mint-link)!important;
  background:#f7faff!important;
  border-color:#b9cdf2!important;
}

/* 平台弹层 */
.platform-picker-popover,
.action-menu-popover{
  background:#fff!important;
  border-color:var(--mint-border)!important;
}

/* 保留业务状态语义颜色：
   urgent / warning / normal / paused / discontinued 等不做全局覆盖。 */

/* 登录页也同步成浅蓝薄荷背景，但保持卡片白色 */
.login-body{
  background:var(--mint-page)!important;
}
.login-card{
  background:#fff!important;
  border-color:var(--mint-border)!important;
}

/* ==========================================================================
   bluegray-office-theme-v19-32-3-20260818
   Pure color patch:
   - page background #EDF3F8
   - black primary text
   - blue interactive elements
   - white cards/tables/sidebar/header
   - preserve business semantic colors
   ========================================================================== */

:root{
  --mint-page:#edf3f8;
  --mint-surface:#ffffff;
  --mint-soft:#f6f9fc;
  --mint-border:#dde6ee;
  --mint-border-strong:#d0dbe5;
  --mint-text:#111827;
  --mint-muted:#667085;
  --mint-subtle:#8791a1;
  --mint-link:#2563eb;
  --mint-link-hover:#1d4ed8;

  --ui-bg:var(--mint-page);
  --ui-surface:var(--mint-surface);
  --ui-surface-soft:var(--mint-soft);
  --ui-line:var(--mint-border);
  --ui-line-strong:var(--mint-border-strong);
  --ui-text:var(--mint-text);
  --ui-muted:var(--mint-muted);
  --v32-border:var(--mint-border);
  --v32-soft:var(--mint-soft);
  --v32-muted:var(--mint-muted);
  --v32-title:var(--mint-text);
}

html,
body{
  background:#edf3f8!important;
  color:#111827!important;
}

.page-shell{
  background:transparent!important;
}

/* 主容器继续保持白色，让淡蓝灰只作为页面底色 */
.site-header,
.tabs,
.panel,
.kpi-card,
.control-card,
.sales-v32-kpi,
.sales-v32-controls-panel,
.sales-v32-table-panel,
.sales-growth-panel,
.table-wrap,
dialog,
.ai-window{
  background:#fff!important;
}

/* 次级信息区略带蓝灰，增加层次 */
#sales .sales-v32-meta-line,
th,
.period-toolbar{
  background:#f6f9fc!important;
}

/* 表格 hover 改成淡蓝，不再偏绿 */
tbody tr:hover,
#sales .sales-merged-table tbody tr:hover{
  background:#f3f7fb!important;
}

/* 普通文字保持接近黑色 */
body,
button,
input,
select,
textarea,
table,
th,
td,
label,
strong,
h1,h2,h3,h4,h5,h6{
  color:#111827;
}

/* 说明文字维持中性灰 */
small,
.section-heading p,
.sales-v32-heading-note,
.table-view-note,
.result-count,
.jd-data-coverage,
.target-days-status,
.sales-v32-kpi em,
.sales-v32-restock-title small,
.sales-v32-formula>small,
.control-card-heading small{
  color:#667085!important;
}

/* 可点击继续蓝色 */
a,
button.link-button,
.purchase-transit-link,
.clickable,
.clickable-number,
.table-link,
[data-action-link],
#sales a{
  color:#2563eb;
}
a:hover,
button.link-button:hover,
.purchase-transit-link:hover,
.clickable:hover,
.clickable-number:hover,
.table-link:hover,
[data-action-link]:hover,
#sales a:hover{
  color:#1d4ed8;
}

/* 主按钮蓝色不变 */
.primary-button,
.btn.primary,
.cart-primary-button{
  background:#2563eb!important;
  border-color:#2563eb!important;
  color:#fff!important;
}
.primary-button:hover,
.btn.primary:hover,
.cart-primary-button:hover{
  background:#1d4ed8!important;
  border-color:#1d4ed8!important;
}

/* 次按钮与输入控件 */
.secondary-button,
.btn.secondary,
.sales-toolbar-platform-summary,
input:not([type=checkbox]):not([type=radio]),
select,
textarea{
  background:#fff!important;
  border-color:#d0dbe5!important;
}
.secondary-button,
.btn.secondary,
.sales-toolbar-platform-summary{
  color:#344054!important;
}
.secondary-button:hover,
.btn.secondary:hover,
.sales-toolbar-platform-summary:hover{
  color:#2563eb!important;
  background:#f7faff!important;
  border-color:#b9cdf2!important;
}

/* 边框统一成淡蓝灰 */
.site-header,
.tabs,
.panel,
.kpi-card,
.control-card,
.sales-v32-kpi,
.sales-v32-controls-panel,
.sales-v32-table-panel,
.sales-growth-panel,
.table-wrap,
th,
td{
  border-color:#dde6ee!important;
}

/* 登录页同步 */
.login-body{
  background:#edf3f8!important;
}
.login-card{
  background:#fff!important;
  border-color:#dde6ee!important;
}

/* 业务状态颜色不覆盖：urgent / warning / normal / paused / discontinued 保持原样 */

/* 20260903-restock-cart-image-detail-v3: cart image locates one row in the full template-sorted list. */
.restock-cart-main-dialog .cart-product-image-button{
  display:block!important;
  width:32px!important;
  height:32px!important;
  flex:0 0 32px!important;
  padding:0!important;
  border:1px solid #b9d7ea!important;
  border-radius:6px!important;
  background:#f7fbff!important;
  overflow:hidden!important;
  cursor:pointer!important;
}
.restock-cart-main-dialog .cart-product-image-button:hover{
  border-color:#4b9fe8!important;
  box-shadow:0 0 0 3px rgba(75,159,232,.16)!important;
}
.restock-cart-main-dialog .cart-product-image-button:focus-visible{
  outline:2px solid #4b9fe8!important;
  outline-offset:2px;
}
.restock-cart-main-dialog .cart-product-image-button img{
  width:100%!important;
  height:100%!important;
  flex:none!important;
  border:0!important;
  border-radius:0!important;
}
#salesMainTable .sales-product-focus>td{
  background:#fff4c9!important;
  transition:background-color .18s ease;
}
#salesMainTable .sales-product-focus>td:first-child{
  box-shadow:inset 4px 0 #e8b455;
}

/* account-preferences-v1: per-account dark theme */
html[data-theme="dark"]{
  color-scheme:dark;
  --ink:#e7eef7;
  --muted:#a9b8c9;
  --line:#35495d;
  --surface:#162536;
  --surface-2:#1d3043;
  --surface-soft:#1d3043;
  --canvas:#0d1824;
  --violet:#83c5ff;
  --violet-dark:#b3d9ff;
  --green:#5ad0a1;
  --amber:#f5bf67;
  --blue:#8bcaff;
  --red:#ff8d98;
  --shadow:0 12px 36px rgba(0,0,0,.28);
  --shadow-hover:0 16px 38px rgba(0,0,0,.36);
}
html[data-theme="dark"] body{background:var(--canvas);color:var(--ink)}
html[data-theme="dark"] .site-header{background:linear-gradient(118deg,#1b4568,#173b5d 52%,#102c46);box-shadow:0 5px 24px rgba(0,0,0,.34)}
html[data-theme="dark"] .tabs,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .toolbar,
html[data-theme="dark"] .kpi-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .dialogBlock,
html[data-theme="dark"] dialog,
html[data-theme="dark"] .ai-window,
html[data-theme="dark"] .ai-history-pane{background:var(--surface)!important;color:var(--ink)}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{background:#122131!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] table thead th{background:#20364c!important;color:#dce9f5!important;border-color:var(--line)!important}
html[data-theme="dark"] table tbody td{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] table tbody tr:nth-child(even) td{background:#1a2b3c!important}
html[data-theme="dark"] .tab{color:var(--muted)}
html[data-theme="dark"] .tab:hover{background:#203b55;color:#d5ebff}
html[data-theme="dark"] .winner-card,
html[data-theme="dark"] .muted-panel,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .jd-sort-template-panel,
html[data-theme="dark"] .jd-correction-result,
html[data-theme="dark"] .jd-import-progress{background:var(--surface-soft)!important;color:var(--ink)}
html[data-theme="dark"] .header-meta .ghost-button{color:#e7eef7!important;background:#20384e!important;border-color:#54708a!important}
html[data-theme="dark"] .header-meta .ghost-button:hover{background:#2b4b66!important}
html[data-theme="dark"] .theme-toggle{min-width:76px}
html[data-theme="dark"] a{color:#8bcaff}
html[data-theme="dark"] ::placeholder{color:#8fa4b8}
html[data-theme="dark"] .platform-ranking-dialog::backdrop,
html[data-theme="dark"] dialog::backdrop{background:rgba(0,0,0,.68)}

/* account-preferences-v1b: dark contrast fixes */
html[data-theme="dark"] body.product-alerts-v18,
html[data-theme="dark"] body.product-alerts-v18 .page-shell,
html[data-theme="dark"] body.product-alerts-v18 #sales{
  background:#0d1824!important;
  color:#e7eef7!important;
}
html[data-theme="dark"] body.product-alerts-v18 .site-header{
  background:linear-gradient(118deg,#1b4568,#173b5d 52%,#102c46)!important;
  color:#e7eef7!important;
}
html[data-theme="dark"] #sales .sales-v32-controls-panel,
html[data-theme="dark"] #sales .sales-v32-control-block,
html[data-theme="dark"] #sales .sales-v32-control-grid,
html[data-theme="dark"] #sales .sales-v32-restock-strip,
html[data-theme="dark"] #sales .sales-v32-formula,
html[data-theme="dark"] #sales .sales-v32-table-panel,
html[data-theme="dark"] #sales .sales-table-viewbar,
html[data-theme="dark"] #sales .sales-v32-tablebar,
html[data-theme="dark"] #sales .sales-main-table-wrap{
  background:#162536!important;
  color:#e7eef7!important;
  border-color:#35495d!important;
}
html[data-theme="dark"] #sales .sales-v32-heading h2,
html[data-theme="dark"] #sales .sales-v32-heading-note,
html[data-theme="dark"] #sales .sales-v32-control-title,
html[data-theme="dark"] #sales .sales-v32-control-title strong,
html[data-theme="dark"] #sales .sales-v32-meta-line,
html[data-theme="dark"] #sales .sales-v32-restock-title,
html[data-theme="dark"] #sales .sales-v32-restock-title strong,
html[data-theme="dark"] #sales .sales-v32-restock-title small,
html[data-theme="dark"] #sales .sales-v32-formula,
html[data-theme="dark"] #sales .sales-v32-formula *{
  color:#e7eef7!important;
}
html[data-theme="dark"] #sales .sales-v32-kpi,
html[data-theme="dark"] #sales .sales-v32-kpi *{
  background:#162536!important;
  color:#e7eef7!important;
  border-color:#35495d!important;
}
html[data-theme="dark"] #sales .sales-v32-kpi-icon.blue{background:#193e5b!important;color:#8bcaff!important}
html[data-theme="dark"] #sales .sales-v32-kpi-icon.indigo{background:#2d315e!important;color:#b7b9ff!important}
html[data-theme="dark"] #sales .sales-v32-kpi-icon.green{background:#1d4c43!important;color:#70e0b5!important}
html[data-theme="dark"] #sales .sales-v32-kpi-icon.orange{background:#574329!important;color:#ffd17f!important}
html[data-theme="dark"] #sales .sales-v32-controls-panel input:not([type=checkbox]):not([type=radio]),
html[data-theme="dark"] #sales .sales-v32-controls-panel select,
html[data-theme="dark"] #sales .sales-v32-controls-panel textarea,
html[data-theme="dark"] #sales .sales-v32-controls-panel .period-toolbar{
  background:#122131!important;
  color:#e7eef7!important;
  border-color:#496176!important;
}
html[data-theme="dark"] #sales .sales-merged-table,
html[data-theme="dark"] #sales .sales-merged-table tbody,
html[data-theme="dark"] #sales .sales-merged-table tr{
  background:#162536!important;
  color:#e7eef7!important;
}
html[data-theme="dark"] #sales .sales-merged-table th{
  background:#20364c!important;
  color:#dce9f5!important;
  border-color:#35495d!important;
}
html[data-theme="dark"] #sales .sales-merged-table td,
html[data-theme="dark"] #sales .sales-merged-table td:first-child,
html[data-theme="dark"] #sales .sales-merged-table td:first-child *{
  background:#162536!important;
  color:#e7eef7!important;
  border-color:#35495d!important;
}
html[data-theme="dark"] #sales .sales-merged-table tbody tr:nth-child(even) td{
  background:#1a2b3c!important;
}
html[data-theme="dark"] #sales .sales-merged-table tbody tr:hover td{
  background:#203b55!important;
}
html[data-theme="dark"] #sales .sales-table-viewbar button:not(.primary-button),
html[data-theme="dark"] #sales #salesPager button{
  background:#20384e!important;
  color:#e7eef7!important;
  border-color:#54708a!important;
}
html[data-theme="dark"] #sales .sales-table-viewbar button:not(.primary-button):hover,
html[data-theme="dark"] #sales #salesPager button:hover{
  background:#2b4b66!important;
}
html[data-theme="dark"] #sales .sales-v32-growth-panel{
  background:#162536!important;
  color:#e7eef7!important;
  border-color:#35495d!important;
}

/* account-preferences-v1c: table header contrast */
html[data-theme="dark"] #sales .sales-v32-meta-line{
  background:#122131!important;
  color:#b9c9d9!important;
  border-color:#35495d!important;
}
html[data-theme="dark"] #sales .sales-v32-tablebar>div:first-child,
html[data-theme="dark"] #sales .sales-v32-tablebar>div:first-child *,
html[data-theme="dark"] #sales .sales-v32-tablebar .sales-table-viewbar-right,
html[data-theme="dark"] #sales .sales-v32-tablebar .sales-table-viewbar-right .table-view-legend{
  color:#e7eef7!important;
}
html[data-theme="dark"] #sales .sales-v32-tablebar .table-view-note{
  color:#a9b8c9!important;
}
html[data-theme="dark"] #sales .sales-v32-tablebar .platform-picker-popover,
html[data-theme="dark"] #sales .sales-v32-tablebar .action-menu-popover{
  background:#162536!important;
  color:#e7eef7!important;
  border-color:#496176!important;
}
html[data-theme="dark"] #sales .sales-v32-tablebar .platform-picker-popover *,
html[data-theme="dark"] #sales .sales-v32-tablebar .action-menu-popover *{
  color:#e7eef7!important;
}
/* dark-polish-v4: unified low-glare theme */
html[data-theme="dark"]{color-scheme:dark;--dc:#08111f;--ds:#111f31;--ds2:#16273a;--ds3:#1c3046;--db:#2a4057;--dt:#e8f0fa;--dt2:#b6c4d6;--dm:#8496aa;--blue:#5ea4ff;--shadow:0 18px 50px rgba(0,0,0,.34)}
html[data-theme="dark"],html[data-theme="dark"] body,html[data-theme="dark"] .page-shell{background:var(--dc)!important;color:var(--dt)!important}
html[data-theme="dark"] .site-header{background:#0d1c2d!important;border-color:var(--db)!important;box-shadow:0 1px 0 rgba(255,255,255,.03)!important}
html[data-theme="dark"] .brand-row,html[data-theme="dark"] .header-meta,html[data-theme="dark"] .header-meta *{color:var(--dt2)!important}
html[data-theme="dark"] .brand-mark{background:linear-gradient(145deg,#4d93f5,#2869ce)!important;color:#fff!important;box-shadow:0 8px 22px rgba(47,125,225,.28)!important}
html[data-theme="dark"] .sidebar{background:#0c1726!important;border-color:var(--db)!important}
html[data-theme="dark"] .sidebar button,html[data-theme="dark"] .sidebar-account-tab{color:var(--dt2)!important}
html[data-theme="dark"] .sidebar button:hover,html[data-theme="dark"] .sidebar-account-tab:hover{background:var(--ds2)!important;color:var(--dt)!important}
html[data-theme="dark"] .sidebar button.active{background:linear-gradient(135deg,#347de4,#2567cb)!important;color:#fff!important;box-shadow:0 8px 24px rgba(35,103,203,.24)!important}
html[data-theme="dark"] .sidebar button.active *{color:#fff!important}
html[data-theme="dark"] .eyebrow{color:#7fa2c8!important}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4,html[data-theme="dark"] .panel-title,html[data-theme="dark"] .section-heading,html[data-theme="dark"] .workspace-commandbar-title{color:var(--dt)!important}
html[data-theme="dark"] p,html[data-theme="dark"] label,html[data-theme="dark"] .muted,html[data-theme="dark"] small,html[data-theme="dark"] .summary-source-note,html[data-theme="dark"] .sales-v32-heading-note,html[data-theme="dark"] .sales-v32-meta-line{color:var(--dt2)!important}
html[data-theme="dark"] .period-toolbar,html[data-theme="dark"] .toolbar,html[data-theme="dark"] .workspace-commandbar,html[data-theme="dark"] .stock-commandbar,html[data-theme="dark"] .filter-bar,html[data-theme="dark"] .jd-filter-bar,html[data-theme="dark"] .product-alert-filters{background:var(--ds)!important;border-color:var(--db)!important;box-shadow:none!important}
html[data-theme="dark"] .panel,html[data-theme="dark"] .overview-panel,html[data-theme="dark"] .overview-top-panel,html[data-theme="dark"] .control-card,html[data-theme="dark"] .kpi-card,html[data-theme="dark"] .sales-v32-kpi,html[data-theme="dark"] .sales-v32-controls-panel,html[data-theme="dark"] .sales-v32-table-panel,html[data-theme="dark"] .sales-v32-growth-panel,html[data-theme="dark"] .stock-workspace-panel,html[data-theme="dark"] .stock-kpi-item,html[data-theme="dark"] .sync-panel,html[data-theme="dark"] .sync-summary-card,html[data-theme="dark"] .product-alert-workspace,html[data-theme="dark"] .product-alert-kpi,html[data-theme="dark"] .product-alerts-panel,html[data-theme="dark"] .winner-card,html[data-theme="dark"] .chart-panel,html[data-theme="dark"] .sales-growth-panel,html[data-theme="dark"] .jd-sort-template-panel,html[data-theme="dark"] .jd-data-coverage,html[data-theme="dark"] .jd-upload-toolbar{background:var(--ds)!important;border-color:var(--db)!important;color:var(--dt)!important;box-shadow:0 10px 30px rgba(0,0,0,.14)!important}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .inline-select,html[data-theme="dark"] .target-days-input-wrap{background:#0c1928!important;color:var(--dt)!important;border-color:#35506b!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#6f8297!important}
html[data-theme="dark"] input:focus,html[data-theme="dark"] select:focus,html[data-theme="dark"] textarea:focus{border-color:var(--blue)!important;box-shadow:0 0 0 3px rgba(94,164,255,.14)!important;outline:none!important}
html[data-theme="dark"] .ghost-button,html[data-theme="dark"] .secondary-button,html[data-theme="dark"] .icon-button,html[data-theme="dark"] .compact-button,html[data-theme="dark"] .menu-action{background:var(--ds2)!important;color:var(--dt2)!important;border-color:#35506b!important}
html[data-theme="dark"] .primary-button,html[data-theme="dark"] .cart-primary-button{background:linear-gradient(135deg,#3b8af0,#2b6ed3)!important;color:#fff!important;border-color:#438fe9!important;box-shadow:0 8px 20px rgba(35,103,203,.22)!important}
html[data-theme="dark"] .data-table,html[data-theme="dark"] table,html[data-theme="dark"] .sales-main-table-wrap,html[data-theme="dark"] .table-wrap,html[data-theme="dark"] .product-alert-table-wrap,html[data-theme="dark"] .stock-main-table-wrap,html[data-theme="dark"] .restock-table-wrap,html[data-theme="dark"] .product-batch-table-wrap,html[data-theme="dark"] .purchase-transit-table-wrap{background:var(--ds)!important;border-color:var(--db)!important;color:var(--dt)!important}
html[data-theme="dark"] thead,html[data-theme="dark"] th{background:#172a3d!important;color:#cbd8e6!important;border-color:var(--db)!important}
html[data-theme="dark"] td{background:transparent!important;color:var(--dt2)!important;border-color:#203449!important}
html[data-theme="dark"] tbody tr{background:var(--ds)!important}html[data-theme="dark"] tbody tr:nth-child(even){background:#102033!important}html[data-theme="dark"] tbody tr:hover{background:#1a3046!important}
html[data-theme="dark"] a,html[data-theme="dark"] .clickable,html[data-theme="dark"] .product-batch-link,html[data-theme="dark"] .purchase-transit-link{color:#73b5ff!important}
html[data-theme="dark"] .table-viewbar,html[data-theme="dark"] .sales-table-viewbar,html[data-theme="dark"] .sales-v32-tablebar,html[data-theme="dark"] .pager,html[data-theme="dark"] .page-size{background:var(--ds2)!important;color:var(--dt2)!important;border-color:var(--db)!important}
html[data-theme="dark"] .modal{background:rgba(2,8,15,.76)!important;backdrop-filter:blur(5px)}
html[data-theme="dark"] .dialog-card,html[data-theme="dark"] .growth-dialog,html[data-theme="dark"] .platform-ranking-dialog,html[data-theme="dark"] .sales-growth-ranking-dialog,html[data-theme="dark"] .product-batch-dialog,html[data-theme="dark"] .purchase-transit-dialog,html[data-theme="dark"] .product-image-dialog,html[data-theme="dark"] .product-business-status-dialog,html[data-theme="dark"] .product-alert-notice-dialog,html[data-theme="dark"] .sync-job-dialog,html[data-theme="dark"] .restock-cart-dialog,html[data-theme="dark"] .restock-cart-main-dialog,html[data-theme="dark"] .restock-item-note-dialog,html[data-theme="dark"] dialog{background:#101f30!important;color:var(--dt)!important;border:1px solid #39536e!important;box-shadow:var(--shadow)!important}
html[data-theme="dark"] .modal-head,html[data-theme="dark"] .growth-dialog-head,html[data-theme="dark"] .platform-ranking-head,html[data-theme="dark"] .product-batch-head,html[data-theme="dark"] .purchase-transit-head,html[data-theme="dark"] .product-image-dialog-head,html[data-theme="dark"] .product-business-status-head,html[data-theme="dark"] .product-alert-notice-head,html[data-theme="dark"] .restock-cart-modal-head{background:#15283a!important;color:var(--dt)!important;border-color:var(--db)!important}
html[data-theme="dark"] .product-batch-summary,html[data-theme="dark"] .purchase-transit-summary,html[data-theme="dark"] .restock-cart-summarybar,html[data-theme="dark"] .growth-summary,html[data-theme="dark"] .sync-summary-grid{background:#122438!important;border-color:var(--db)!important;color:var(--dt)!important}
html[data-theme="dark"] .product-batch-summary>*,html[data-theme="dark"] .purchase-transit-summary>*,html[data-theme="dark"] .restock-cart-summarybar>*{background:#162b40!important;border-color:#314b65!important;color:var(--dt)!important}
html[data-theme="dark"] .product-batch-footnote,html[data-theme="dark"] .purchase-transit-footnote,html[data-theme="dark"] .growth-help,html[data-theme="dark"] .product-business-status-help,html[data-theme="dark"] .jd-import-mode-help,html[data-theme="dark"] .batch-source-warning{background:#2c281d!important;color:#e9ca83!important;border-color:#5f5130!important}
html[data-theme="dark"] .product-alert-rules,html[data-theme="dark"] .product-alert-source-note,html[data-theme="dark"] .product-alert-notice-coverage,html[data-theme="dark"] .tplus-isolation-banner{background:#15283a!important;color:var(--dt2)!important;border-color:#35506b!important}
html[data-theme="dark"] .notice-new,html[data-theme="dark"] .rule-new,html[data-theme="dark"] .alert-new{background:#27223a!important;color:#d8c5ff!important;border-color:#514477!important}
html[data-theme="dark"] .notice-dormant,html[data-theme="dark"] .rule-dormant,html[data-theme="dark"] .alert-dormant{background:#382128!important;color:#ffc4c9!important;border-color:#71404a!important}
html[data-theme="dark"] .status-pill.success,html[data-theme="dark"] .status-pill.green{background:#17362f!important;color:#7ee0bb!important;border-color:#285d4f!important}
html[data-theme="dark"] .status-pill.warning,html[data-theme="dark"] .status-pill.amber{background:#3b2f1b!important;color:#efc56f!important;border-color:#6d5430!important}
html[data-theme="dark"] .status-pill.danger,html[data-theme="dark"] .status-pill.failed{background:#3c2028!important;color:#ff9ca5!important;border-color:#703742!important}
html[data-theme="dark"] .formula-chip{background:#102e2a!important;color:#7ed8b5!important;border-color:#28594c!important}
html[data-theme="dark"] .action-menu-popover,html[data-theme="dark"] .platform-picker-popover{background:#122235!important;color:var(--dt)!important;border-color:#36516c!important;box-shadow:var(--shadow)!important}
html[data-theme="dark"] .platform-picker-option{background:#14273a!important;border-color:var(--db)!important;color:var(--dt2)!important}
html[data-theme="dark"] .empty-panel,html[data-theme="dark"] .growth-empty,html[data-theme="dark"] .sync-empty-state{background:#0e1c2b!important;color:var(--dm)!important;border-color:var(--db)!important}
html[data-theme="dark"] .toast{background:#172a3d!important;color:var(--dt)!important;border-color:#3b5874!important;box-shadow:var(--shadow)!important}
html[data-theme="dark"] ::-webkit-scrollbar{width:10px;height:10px}html[data-theme="dark"] ::-webkit-scrollbar-track{background:#0b1623}html[data-theme="dark"] ::-webkit-scrollbar-thumb{background:#334a61;border:2px solid #0b1623;border-radius:10px}

html[data-theme="dark"] body h1,html[data-theme="dark"] body h2,html[data-theme="dark"] body h3,html[data-theme="dark"] body h4,html[data-theme="dark"] body h5,html[data-theme="dark"] body strong{color:#e8f0fa!important}
html[data-theme="dark"] body input[type="date"],html[data-theme="dark"] body input[type="text"],html[data-theme="dark"] body input[type="number"]{background:#0c1928!important;color:#e8f0fa!important;border-color:#35506b!important}
html[data-theme="dark"] body .sidebar-footer-controls,html[data-theme="dark"] body .sidebar-footer-controls>*{background:#0c1726!important;color:#b6c4d6!important;border-color:#2a4057!important}
html[data-theme="dark"] body .overview-top-table,html[data-theme="dark"] body .overview-top-table *{border-color:#2a4057!important}
html[data-theme="dark"] body .site-header{background:#10243a!important}
html[data-theme="dark"] body .tab-panel>.section-heading h2,html[data-theme="dark"] body .section-heading h2{color:#e8f0fa!important}
/* dark-polish-v4d: high-specificity inner surfaces */
html[data-theme="dark"] body .overview-panel.overview-top-panel .period-toolbar,
html[data-theme="dark"] body .overview-panel.overview-top-panel .overview-top-table,
html[data-theme="dark"] body .overview-panel.overview-top-panel .overview-top-table table{background:#111f31!important;color:#e8f0fa!important;border-color:#2a4057!important}
html[data-theme="dark"] body .overview-panel.overview-top-panel .period-toolbar strong,
html[data-theme="dark"] body .overview-panel.overview-top-panel .period-toolbar label,
html[data-theme="dark"] body .overview-panel.overview-top-panel .period-toolbar .muted,
html[data-theme="dark"] body .overview-panel.overview-top-panel .period-toolbar small,
html[data-theme="dark"] body .overview-panel.overview-top-panel .overview-top-table strong{color:#b6c4d6!important}
html[data-theme="dark"] body .overview-panel.overview-top-panel .period-toolbar input[type="date"],
html[data-theme="dark"] body .overview-panel.overview-top-panel .period-toolbar input[type="text"],
html[data-theme="dark"] body .overview-panel.overview-top-panel .period-toolbar select,
html[data-theme="dark"] body .overview-panel.overview-top-panel .period-toolbar button.secondary-button{background:#0c1928!important;color:#e8f0fa!important;border-color:#35506b!important}
html[data-theme="dark"] body .overview-panel.overview-top-panel .overview-top-table thead,
html[data-theme="dark"] body .overview-panel.overview-top-panel .overview-top-table th{background:#172a3d!important;color:#d5e2ef!important;border-color:#2a4057!important}
html[data-theme="dark"] body .overview-panel.overview-top-panel .overview-top-table tbody,
html[data-theme="dark"] body .overview-panel.overview-top-panel .overview-top-table tr,
html[data-theme="dark"] body .overview-panel.overview-top-panel .overview-top-table td{background:#111f31!important;color:#e8f0fa!important;border-color:#203449!important}
html[data-theme="dark"] body .overview-panel.overview-top-panel .overview-top-table tbody tr:nth-child(even),
html[data-theme="dark"] body .overview-panel.overview-top-panel .overview-top-table tbody tr:nth-child(even) td{background:#162b40!important}
html[data-theme="dark"] body .overview-panel.overview-top-panel .overview-top-table .product-thumb-button{background:#1a3046!important;color:#e8f0fa!important;border-color:#35506b!important}
html[data-theme="dark"] body .overview h2,html[data-theme="dark"] body .overview h3,
html[data-theme="dark"] body .overview .kpi-card strong,html[data-theme="dark"] body .overview .kpi-card .kpi-link,
html[data-theme="dark"] body .overview .overview-panel h2,html[data-theme="dark"] body .overview .overview-panel h3{color:#e8f0fa!important}
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog{background:#101f30!important;color:#e8f0fa!important;border-color:#39536e!important}
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-cart-modal-head,
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-table-wrap,
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-cart-footer,
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-history{background:#111f31!important;color:#e8f0fa!important;border-color:#2a4057!important}
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-cart-modal-head *,
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-cart-footer *,
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-history *{color:#e8f0fa!important}
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-cart-summarybar,
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-cart-summarybar>*{background:#162b40!important;color:#e8f0fa!important;border-color:#314b65!important}
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-table-wrap table,
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-table-wrap thead,
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-table-wrap th{background:#172a3d!important;color:#d5e2ef!important;border-color:#2a4057!important}
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-table-wrap tbody,
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-table-wrap tr,
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-table-wrap td{background:#111f31!important;color:#b6c4d6!important;border-color:#203449!important}
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-table-wrap tbody tr:nth-child(even),
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-table-wrap tbody tr:nth-child(even) td{background:#162b40!important}
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-cart-footer input,
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-cart-footer textarea{background:#0c1928!important;color:#e8f0fa!important;border-color:#35506b!important}
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-history{background:#162b40!important}
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-history summary{color:#e8f0fa!important}
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-cart-footer button.secondary,
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .restock-cart-head-actions button.secondary{background:#16273a!important;color:#d5e2ef!important;border-color:#35506b!important}
html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .empty-panel{background:#111f31!important;color:#b6c4d6!important;border-color:#2a4057!important} html[data-theme="dark"] body .modal.restock-cart-dialog.restock-cart-main-dialog .empty-panel *{color:#b6c4d6!important}html[data-theme="dark"] body .sales-v32-formula .formula-chip{background:#102e2a!important;color:#7ed8b5!important;border-color:#28594c!important} html[data-theme="dark"] body .sales-v32-formula .target-days-status{background:#162b40!important;color:#b6c4d6!important;border-color:#314b65!important} html[data-theme="dark"] body .sales-toolbar-platform-picker .sales-toolbar-platform-summary{background:#16273a!important;color:#d5e2ef!important;border-color:#35506b!important}html[data-theme="dark"] body #sales .sales-v32-formula .formula-chip{background:#102e2a!important;color:#7ed8b5!important;border-color:#28594c!important} html[data-theme="dark"] body .sidebar button:not(.active){background:#16273a!important;color:#b6c4d6!important;border-color:#2a4057!important} html[data-theme="dark"] body .sidebar button:not(.active):hover{background:#1c3046!important;color:#e8f0fa!important}html[data-theme="dark"] body .tabs button.tab:not(.active)::before{background:#16273a!important;border-color:#2a4057!important;color:#b6c4d6!important} html[data-theme="dark"] body .tabs button.tab:not(.active)::after{color:#b6c4d6!important} html[data-theme="dark"] body .sidebar-toggle{background:#16273a!important;color:#b6c4d6!important;border-color:#2a4057!important}html[data-theme="dark"] body #sales #salesPlatformPickerToggle{background:#16273a!important;color:#d5e2ef!important;border-color:#35506b!important}
/* Dark polish v4j: remove remaining bright micro-surfaces and preserve semantic status colors */
html[data-theme="dark"] body #modeBadge{
  background:#17362f!important;
  color:#7ee0bb!important;
  border:1px solid #285d4f!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body #productAlertNavCount{
  background:#3c2028!important;
  color:#ff9ca5!important;
  border:1px solid #703742!important;
}
html[data-theme="dark"] body #sidebarToggle{
  background:#16273a!important;
  color:#b6c4d6!important;
  border:1px solid #2a4057!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body #sales .sales-v32-control-title > span,
html[data-theme="dark"] body #sales .sales-v32-restock-icon,
html[data-theme="dark"] body #sales .sales-v32-restock-icon *,
html[data-theme="dark"] body #sales #salesPlatformPickerCount{
  background:#1a3046!important;
  color:#8bc2ff!important;
  border-color:#35506b!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body .badge.success{
  background:#17362f!important;
  color:#7ee0bb!important;
  border-color:#285d4f!important;
}
html[data-theme="dark"] body .badge.warning{
  background:#3b2f1b!important;
  color:#efc56f!important;
  border-color:#6d5430!important;
}
html[data-theme="dark"] body .badge.danger{
  background:#3c2028!important;
  color:#ff9ca5!important;
  border-color:#703742!important;
}

/* Dark polish v4k: force high-specificity modal empty state and neutral micro-statuses */
html[data-theme="dark"] body dialog#restockCartDialog #restockCartEmpty,
html[data-theme="dark"] body #restockCartDialog.restock-cart-main-dialog #restockCartEmpty{
  background:#111f31!important;
  background-color:#111f31!important;
  color:#b6c4d6!important;
  border-color:#2a4057!important;
}
html[data-theme="dark"] body dialog#restockCartDialog #restockCartEmpty *{
  color:#b6c4d6!important;
}
html[data-theme="dark"] body .badge.neutral{
  background:#263648!important;
  color:#b6c4d6!important;
  border-color:#40566d!important;
}
html[data-theme="dark"] body .ai-launcher-logo{
  background:#1c3046!important;
  color:#8bc2ff!important;
  border-color:#35506b!important;
  box-shadow:none!important;
}

/* Dark polish v4l: active navigation must stay in the dark palette */
html[data-theme="dark"] body .tabs button.tab.active,
html[data-theme="dark"] body button.tab.active{
  background:#2563eb!important;
  color:#ffffff!important;
  border-color:#3b82f6!important;
  box-shadow:0 6px 16px rgba(37,99,235,.28)!important;
}
html[data-theme="dark"] body .tabs button.tab.active::before,
html[data-theme="dark"] body button.tab.active::before{
  background:#3b82f6!important;
  color:#ffffff!important;
  border-color:#60a5fa!important;
}

/* Dark polish v4m: restock count badge */
html[data-theme="dark"] body #restockCartCount,
html[data-theme="dark"] body .button-count{
  background:#1a3a63!important;
  color:#cfe3ff!important;
  border-color:#355f91!important;
  box-shadow:none!important;
}

/* Dark polish v4n: inventory workspace and chart search surfaces */
html[data-theme="dark"] body #stock .control-card,
html[data-theme="dark"] body #stock .control-card-query,
html[data-theme="dark"] body #stock .control-card-period,
html[data-theme="dark"] body #stock .period-toolbar{
  background:#111f31!important;
  background-color:#111f31!important;
  color:#d5e2ef!important;
  border-color:#2a4057!important;
}
html[data-theme="dark"] body #stock .control-card input,
html[data-theme="dark"] body #stock .control-card select,
html[data-theme="dark"] body #stock .period-toolbar input,
html[data-theme="dark"] body #stock .period-toolbar select,
html[data-theme="dark"] body #stock input#stockSearch,
html[data-theme="dark"] body #stock input#periodFrom,
html[data-theme="dark"] body #stock input#periodTo{
  background:#0c1928!important;
  background-color:#0c1928!important;
  color:#e8f0fa!important;
  border-color:#35506b!important;
}
html[data-theme="dark"] body #stock .product-thumb-button{
  background:#1a3046!important;
  background-color:#1a3046!important;
  border-color:#35506b!important;
}
html[data-theme="dark"] body #productPlatformSearch{
  background:#0c1928!important;
  background-color:#0c1928!important;
  color:#e8f0fa!important;
  border-color:#35506b!important;
}

/* Dark polish v4o: shared pagination controls */
html[data-theme="dark"] body .pager button,
html[data-theme="dark"] body #stock .pager button,
html[data-theme="dark"] body #alerts .pager button,
html[data-theme="dark"] body #restock .pager button{
  background:#1a3046!important;
  background-color:#1a3046!important;
  color:#d5e2ef!important;
  border-color:#35506b!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body .pager button:disabled{
  background:#142437!important;
  color:#71869c!important;
  border-color:#2a4057!important;
  opacity:1!important;
}

/* Dark polish v4p: product-alert rules and search surfaces */
html[data-theme="dark"] body #alerts .product-alert-rules{
  background:#111f31!important;
  background-color:#111f31!important;
  color:#d5e2ef!important;
  border-color:#2a4057!important;
}
html[data-theme="dark"] body #alerts #productAlertSearch{
  background:#0c1928!important;
  background-color:#0c1928!important;
  color:#e8f0fa!important;
  border-color:#35506b!important;
}
html[data-theme="dark"] body #alerts .product-thumb-button{
  background:#1a3046!important;
  background-color:#1a3046!important;
  border-color:#35506b!important;
}

/* Dark polish v4q: monthly summary source note and match indicator */
html[data-theme="dark"] body #summary .summary-source-note{
  background:#111f31!important;
  background-color:#111f31!important;
  color:#b6c4d6!important;
  border-color:#2a4057!important;
}
html[data-theme="dark"] body #summary #summaryJdMatch{
  background:#17362f!important;
  color:#7ee0bb!important;
  border-color:#285d4f!important;
}
html[data-theme="dark"] body #summary .product-thumb-button{
  background:#1a3046!important;
  background-color:#1a3046!important;
  border-color:#35506b!important;
}

/* Dark polish v4r: JD self-operated workspace controls and action surfaces */
html[data-theme="dark"] body #jd input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] body #jd select,
html[data-theme="dark"] body #jd textarea,
html[data-theme="dark"] body #jd #jdDataDate,
html[data-theme="dark"] body #jd #jdExcelFile,
html[data-theme="dark"] body #jd #jdSortTemplateFile,
html[data-theme="dark"] body #jd #jdSearch,
html[data-theme="dark"] body #jd #periodFrom,
html[data-theme="dark"] body #jd #periodTo{
  background:#0c1928!important;
  background-color:#0c1928!important;
  color:#e8f0fa!important;
  border-color:#35506b!important;
}
html[data-theme="dark"] body #jd .period-toolbar{
  background:#111f31!important;
  background-color:#111f31!important;
  color:#d5e2ef!important;
  border-color:#2a4057!important;
}
html[data-theme="dark"] body #jd .jd-template-header-lock{
  background:#1a3046!important;
  color:#8bc2ff!important;
  border-color:#35506b!important;
}
html[data-theme="dark"] body #jd .table-export-button,
html[data-theme="dark"] body #jd .jd-export-option{
  background:#1a3046!important;
  background-color:#1a3046!important;
  color:#cfe3ff!important;
  border-color:#35506b!important;
}
html[data-theme="dark"] body #jd .table-danger-button{
  background:#3c2028!important;
  background-color:#3c2028!important;
  color:#ff9ca5!important;
  border-color:#703742!important;
}
html[data-theme="dark"] body #jd .jd-export-menu-panel{
  background:#111f31!important;
  background-color:#111f31!important;
  border-color:#35506b!important;
  box-shadow:0 12px 30px rgba(0,0,0,.35)!important;
}

/* Dark polish v4s: sync schedule labels and T+ purchase filters */
html[data-theme="dark"] body .sync-panel .schedule-card-head > span{
  background:#1a3046!important;
  background-color:#1a3046!important;
  color:#8bc2ff!important;
  border-color:#35506b!important;
}
html[data-theme="dark"] body #tplus input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] body #tplus select,
html[data-theme="dark"] body #tplus textarea,
html[data-theme="dark"] body #tplus #tplusQuery,
html[data-theme="dark"] body #tplus #tplusSupplier,
html[data-theme="dark"] body #tplus #tplusProduct,
html[data-theme="dark"] body #tplus #tplusDateFrom,
html[data-theme="dark"] body #tplus #tplusDateTo,
html[data-theme="dark"] body #tplus #tplusStatus,
html[data-theme="dark"] body #tplus #tplusImportFile{
  background:#0c1928!important;
  background-color:#0c1928!important;
  color:#e8f0fa!important;
  border-color:#35506b!important;
}

/* DARK POLISH V4T: account management and detail-dialog surfaces */
html[data-theme="dark"] body #accounts .ai-security-notice { background:#2c281d !important; border:1px solid #5f5130 !important; color:#e9ca83 !important; }
html[data-theme="dark"] body #accounts .ai-security-notice strong { color:#f0d28d !important; }
html[data-theme="dark"] body #accounts .permission-check,
html[data-theme="dark"] body #accounts .ai-usage-grid > div { background:#15283a !important; border:1px solid #2a4057 !important; color:#dbeafe !important; }
html[data-theme="dark"] body #accounts .ai-usage-grid > div span { color:#b6c4d6 !important; }
html[data-theme="dark"] body #accounts .ai-usage-grid > div strong { color:#e8f0fa !important; }
html[data-theme="dark"] body #accounts .ai-usage-grid > div small { color:#8ea6bd !important; }
html[data-theme="dark"] body #accounts input:not([type="checkbox"]),
html[data-theme="dark"] body #accounts select,
html[data-theme="dark"] body #accounts textarea { background:#0c1928 !important; color:#e8f0fa !important; border-color:#35506b !important; color-scheme:dark; }
html[data-theme="dark"] body #accounts input::placeholder,
html[data-theme="dark"] body #accounts textarea::placeholder { color:#8ea6bd !important; }
html[data-theme="dark"] body #accounts input[type="checkbox"] { accent-color:#60a5fa !important; color-scheme:dark; }
html[data-theme="dark"] body #accounts .table-danger-button { background:#44232b !important; border-color:#8f4350 !important; color:#ffb9c3 !important; }
html[data-theme="dark"] body #accounts .table-danger-button:hover { background:#5a2a35 !important; border-color:#c15a6a !important; color:#ffe0e5 !important; }
html[data-theme="dark"] body #syncJobDialog #closeSyncJobDialog { background:#16273a !important; border:1px solid #35506b !important; color:#e8f0fa !important; box-shadow:none !important; }
html[data-theme="dark"] body #purchaseTransitDialog .purchase-transit-compare,
html[data-theme="dark"] body #purchaseTransitDialog .purchase-transit-compare.matched { background:#15352d !important; border:1px solid #2d735a !important; color:#a8e6c0 !important; }
/* DARK POLISH V4U: native file chooser buttons */
html[data-theme="dark"] body input[type="file"] { background:#0c1928 !important; color:#e8f0fa !important; border-color:#35506b !important; color-scheme:dark; }
html[data-theme="dark"] body input[type="file"]::file-selector-button,
html[data-theme="dark"] body input[type="file"]::-webkit-file-upload-button { background:#16273a !important; color:#e8f0fa !important; border:1px solid #35506b !important; border-radius:6px !important; padding:5px 10px !important; margin-inline-end:8px !important; }
html[data-theme="dark"] body input[type="file"]::file-selector-button:hover,
html[data-theme="dark"] body input[type="file"]::-webkit-file-upload-button:hover { background:#203850 !important; border-color:#4d7395 !important; }
/* DARK POLISH V4V: improve sidebar navigation contrast only in dark theme */
html[data-theme="dark"] body button.tab:not(.active),
html[data-theme="dark"] body button.sidebar-account-tab:not(.active) { color:#c4d2e1 !important; }
html[data-theme="dark"] body button.tab:not(.active)::before,
html[data-theme="dark"] body button.sidebar-account-tab:not(.active)::before { color:#c4d2e1 !important; }
html[data-theme="dark"] body button.tab:not(.active)::after,
html[data-theme="dark"] body button.sidebar-account-tab:not(.active)::after { color:#d9e6f2 !important; background:#203850 !important; border-color:#41627e !important; }
html[data-theme="dark"] body button.tab:not(.active):hover,
html[data-theme="dark"] body button.sidebar-account-tab:not(.active):hover { color:#f1f7ff !important; background:#1f3c5a !important; }
html[data-theme="dark"] body button.tab:not(.active):hover::before,
html[data-theme="dark"] body button.sidebar-account-tab:not(.active):hover::before,
html[data-theme="dark"] body button.tab:not(.active):hover::after,
html[data-theme="dark"] body button.sidebar-account-tab:not(.active):hover::after { color:#f1f7ff !important; }