*{box-sizing:border-box}html{overflow-y:scroll;scrollbar-gutter:stable}body{margin:0;background:#f5f7fb;color:#172f43;font:14px "Microsoft YaHei",system-ui,sans-serif}.app{display:grid;grid-template-columns:210px 1fr;min-height:100vh}.side{background:#062b4a;color:#dbe9f5;padding:26px 12px}.brand{font-size:20px;font-weight:800;color:#fff;padding:0 13px 30px}.brand small{display:block;font-size:12px;color:#9dc5da;font-weight:400;margin-top:8px}.online{display:inline-block;width:7px;height:7px;border-radius:50%;background:#72d6bd;margin-right:6px}.nav{display:block;text-decoration:none;color:#dbe9f5;padding:13px 14px;margin:5px 0;border-radius:7px;font-size:15px}.nav.on{background:#0b96a5;color:#fff;font-weight:700}.main{padding:26px 30px;max-width:1640px;width:100%;margin:0 auto}.head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.head h1{font-size:26px;margin:0}.sub{margin:7px 0 0;color:#6b7f91;font-size:13px}.updated{background:#e9f8f4;color:#087765;padding:9px 11px;border-radius:7px;font-size:12px;white-space:nowrap}.filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:21px 0 17px;padding:12px 0;border-top:1px solid #e4ebf1;border-bottom:1px solid #e4ebf1}.chip{border:1px solid #d8e1e9;background:#fff;border-radius:6px;padding:8px 11px;color:#4d6274;font-size:12px}.notice{margin-left:auto;color:#a76000;background:#fff4df;padding:6px 9px;border-radius:99px;font-size:12px}.metrics{display:grid;grid-template-columns:repeat(5,minmax(140px,1fr));gap:12px}.card{background:#fff;border:1px solid #e2e9f0;border-radius:10px;padding:17px;box-shadow:0 3px 10px #102a4310}.label,.muted{color:#6d8192}.value{font-size:28px;font-weight:800;margin-top:10px;color:#12324c;font-variant-numeric:tabular-nums}.teal{color:#008b95}.orange{color:#c97700}.red{color:#ca5045}.small{font-size:12px;margin-top:7px;color:#718496}.grid{display:grid;grid-template-columns:1.6fr 1fr;gap:14px;margin-top:15px}.title-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px}.title{font-size:16px;font-weight:800}.search-row{display:grid;grid-template-columns:minmax(150px,1fr) auto;gap:8px;margin-bottom:10px}.search-row input,.search-row select{width:100%;border:1px solid #d8e1e9;border-radius:6px;padding:9px;font:inherit;color:#273f54;background:#fff}.button{border:0;background:#008d9a;color:#fff;border-radius:6px;padding:9px 15px;font:inherit;font-weight:700;cursor:pointer}.selection{min-height:24px;color:#607589;font-size:12px;margin:8px 0}.selection b{color:#173a53}.chart{height:250px;width:100%}.chart svg{width:100%;height:100%;display:block}.alert-list{list-style:none;padding:0;margin:0}.alert-list li{display:grid;grid-template-columns:9px 1fr;gap:10px;padding:12px 0;border-bottom:1px solid #ebf0f4}.alert-list li:last-child{border-bottom:0}.dot{width:8px;height:8px;border-radius:50%;margin-top:5px;background:#d95a53}.dot.yellow{background:#e2a135}.dot.green{background:#22a58d}.alert-list b{font-size:13px}.alert-list p{margin:4px 0 0;font-size:12px;color:#708394}.lower{display:grid;grid-template-columns:1fr 1.1fr;gap:14px;margin-top:14px}.table-wrap{overflow:auto}.sales-scroll{max-height:340px;overflow-y:auto}.sales-scroll .table th{position:sticky;top:0;z-index:1}.table{width:100%;border-collapse:collapse;font-size:12px}.table th{background:#f7f9fc;color:#627587;text-align:left;font-weight:700}.table td,.table th{padding:10px 8px;border-bottom:1px solid #eaf0f4;white-space:nowrap}.risk{font-size:11px;padding:3px 6px;border-radius:10px;background:#fff0ec;color:#bb4b42}.risk.mid{background:#fff6e5;color:#a56200}.tabs{display:flex;gap:6px}.tabs button{border:0;background:#eef3f6;color:#617587;border-radius:5px;padding:5px 9px;font:inherit;font-size:12px;cursor:pointer}.tabs button.active{background:#e2f5f4;color:#007c89;font-weight:700}.tabs button:disabled{cursor:not-allowed;opacity:.65}.empty{color:#778999;padding:20px 0;text-align:center}.foot{font-size:11px;color:#748799;margin-top:14px}.product-only{margin-top:16px}@media(max-width:1080px){.metrics{grid-template-columns:repeat(3,1fr)}}@media(max-width:980px){.app{grid-template-columns:1fr}.side{display:none}.main{padding:18px}.metrics{grid-template-columns:repeat(2,1fr)}.grid,.lower{grid-template-columns:1fr}}@media(max-width:560px){.metrics{grid-template-columns:1fr}.head{flex-wrap:wrap}.notice{margin-left:0}.lower{gap:12px}}

@media(min-width:981px){.side{position:fixed;left:0;top:0;width:210px;height:100vh;z-index:10}.main{grid-column:2;min-width:0}}.alert-list li.clickable{cursor:pointer}.alert-list li.clickable:hover b,.alert-list li.clickable:focus b{color:#008d9a}.sales-actions{display:flex;align-items:center;gap:7px}.expand-sales{border:1px solid #c7e5e8;background:#fff;color:#007d8c;border-radius:5px;padding:4px 7px;font:14px/1 system-ui;cursor:pointer}.expand-sales:hover{background:#e8f7f7}.sales-modal{position:fixed;inset:0;z-index:300;background:#102a4366;display:flex;align-items:center;justify-content:center;padding:28px}.sales-modal[hidden]{display:none}.sales-modal-panel{width:min(1080px,94vw);max-height:86vh;background:#fff;border-radius:12px;box-shadow:0 18px 50px #102a4360;padding:20px;display:flex;flex-direction:column}.sales-modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.sales-modal-title{font-size:18px;font-weight:800}.sales-modal-close{border:0;background:#eef3f6;color:#36536b;border-radius:6px;padding:6px 10px;font:inherit;cursor:pointer}.sales-modal-body{overflow:auto;min-height:0}.sales-modal-body .table{font-size:14px}.sales-modal-body .table th,.sales-modal-body .table td{padding:12px 10px}.sales-modal-body .table th{position:sticky;top:0;z-index:1}

.date-filter{display:flex;align-items:center;gap:7px;color:#526b80;font-size:13px}.date-filter input{border:1px solid #d8e1e9;border-radius:6px;padding:8px 9px;background:#fff;color:#273f54;font:inherit}.date-filter input:focus{outline:2px solid #b8e6e8;border-color:#008d9a}.filters .notice{margin-left:auto}

*{box-sizing:border-box}html{overflow-y:scroll;scrollbar-gutter:stable}body{margin:0;background:#f5f7fb;color:#172f43;font:14px "Microsoft YaHei",system-ui,sans-serif}.main{max-width:1180px;margin:auto;padding:28px}.head{display:flex;justify-content:space-between;align-items:center;gap:18px}.head h1{margin:0;font-size:24px}.back{color:#007f8b;text-decoration:none;font-weight:700}.card{margin-top:20px;background:#fff;border:1px solid #e2e9f0;border-radius:10px;padding:17px;box-shadow:0 3px 10px #102a4310}.muted{color:#6d8192;font-size:12px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:700px}.table th{text-align:left;background:#f7f9fc;color:#627587}.table th,.table td{padding:11px 9px;border-bottom:1px solid #eaf0f4}.empty{padding:38px;text-align:center;color:#748799}@media(max-width:700px){.main{padding:18px}.head{align-items:flex-start;flex-direction:column}}

*{box-sizing:border-box}body{margin:0;background:#f5f7fb;color:#172f43;font:14px "Microsoft YaHei",system-ui,sans-serif}.app{display:grid;grid-template-columns:210px 1fr;min-height:100vh}.side{background:#062b4a;color:#dbe9f5;padding:26px 12px}.brand{font-size:20px;font-weight:800;color:#fff;padding:0 13px 30px}.brand small{display:block;font-size:12px;color:#9dc5da;font-weight:400;margin-top:8px}.online{display:inline-block;width:7px;height:7px;border-radius:50%;background:#72d6bd;margin-right:6px}.nav{display:block;text-decoration:none;color:#dbe9f5;padding:13px 14px;margin:5px 0;border-radius:7px;font-size:15px}.nav.on{background:#0b96a5;color:#fff;font-weight:700}.main{padding:26px 30px;max-width:1640px;width:100%;margin:0 auto}.head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.head h1{font-size:26px;margin:0}.sub,.muted{color:#6d8192}.sub{margin:7px 0 0;font-size:13px}.updated{background:#e9f8f4;color:#087765;padding:9px 11px;border-radius:7px;font-size:12px}.filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:21px 0 17px;padding:12px 0;border-top:1px solid #e4ebf1;border-bottom:1px solid #e4ebf1}.filters label{color:#526b80;font-size:13px}.filters input,.sales-search input{border:1px solid #d8e1e9;border-radius:6px;padding:8px 9px;background:#fff;color:#273f54;font:inherit}.notice{margin-left:auto;color:#a76000;background:#fff4df;padding:6px 9px;border-radius:99px;font-size:12px}.metrics{display:grid;grid-template-columns:repeat(5,minmax(140px,1fr));gap:12px}.card{background:#fff;border:1px solid #e2e9f0;border-radius:10px;padding:17px;box-shadow:0 3px 10px #102a4310}.label{color:#6d8192}.value{font-size:28px;font-weight:800;margin-top:10px;color:#12324c}.teal{color:#008b95}.orange{color:#c97700}.red{color:#ca5045}.small{font-size:12px;margin-top:7px;color:#718496}.sales-workspace{display:grid;grid-template-columns:1.05fr 1fr;gap:14px;margin-top:15px}.title-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px}.title{font-size:16px;font-weight:800}.tabs{display:flex;gap:6px}.tabs button,.button{border:0;background:#eef3f6;color:#617587;border-radius:5px;padding:6px 10px;font:inherit;font-size:12px;cursor:pointer}.tabs button.active,.button{background:#008d9a;color:#fff;font-weight:700}.sales-search{display:flex;gap:8px;margin-bottom:10px}.sales-search input{min-width:0;flex:1}.sales-scroll{height:310px;overflow:auto}.table{width:100%;border-collapse:collapse;font-size:12px}.table th{background:#f7f9fc;color:#627587;text-align:left;font-weight:700;position:sticky;top:0}.table td,.table th{padding:10px 8px;border-bottom:1px solid #eaf0f4;white-space:nowrap}.sales-row{cursor:pointer}.sales-row:hover,.sales-row.selected{background:#edf9f8}.chart{height:305px;width:100%}.selection{color:#607589;font-size:12px;min-height:22px}.priority-title{margin-top:18px}.priority-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.priority-grid .table-wrap{max-height:305px;overflow:auto}.risk{font-size:11px;padding:3px 6px;border-radius:10px;background:#fff0ec;color:#bb4b42}.risk.mid{background:#fff6e5;color:#a56200}.empty{padding:30px;text-align:center;color:#778999}.foot{font-size:11px;color:#748799;margin-top:14px}@media(min-width:981px){.side{position:fixed;left:0;top:0;width:210px;height:100vh}.main{grid-column:2}}@media(max-width:980px){.app{grid-template-columns:1fr}.side{display:none}.main{padding:18px}.metrics{grid-template-columns:repeat(2,1fr)}.sales-workspace,.priority-grid{grid-template-columns:1fr}}@media(max-width:560px){.metrics{grid-template-columns:1fr}.head{flex-wrap:wrap}.notice{margin-left:0}}

*{box-sizing:border-box}html{overflow-y:scroll;scrollbar-gutter:stable}body{margin:0;background:#f5f7fb;color:#172f43;font:14px "Microsoft YaHei",system-ui,sans-serif}.app{display:grid;grid-template-columns:210px 1fr;min-height:100vh}.side{background:#062b4a;color:#dbe9f5;padding:26px 12px}.brand{font-size:20px;font-weight:800;color:#fff;padding:0 13px 30px}.brand small{display:block;font-size:12px;color:#9dc5da;font-weight:400;margin-top:8px}.online{display:inline-block;width:7px;height:7px;border-radius:50%;background:#72d6bd;margin-right:6px}.nav{display:block;text-decoration:none;color:#dbe9f5;padding:13px 14px;margin:5px 0;border-radius:7px;font-size:15px}.nav.on{background:#0b96a5;color:#fff;font-weight:700}.main{padding:26px 30px;max-width:1640px;width:100%;margin:0 auto}.head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.head h1{font-size:26px;margin:0}.sub{margin:7px 0 0;color:#6b7f91;font-size:13px}.updated{background:#e9f8f4;color:#087765;padding:9px 11px;border-radius:7px;font-size:12px;white-space:nowrap}.filters{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:10px;align-items:center;margin:22px 0 16px}.filters input{border:1px solid #d8e1e9;border-radius:7px;padding:10px;font:inherit;background:#fff;color:#2b455b}.button{border:0;background:#008d9a;color:#fff;border-radius:7px;padding:10px 16px;font:inherit;font-weight:700;cursor:pointer}.button.secondary{background:#fff;color:#007d8c;border:1px solid #b7dfe2}.hint{font-size:12px;color:#6d8192;margin:0 0 12px}.card{background:#fff;border:1px solid #e2e9f0;border-radius:10px;padding:17px;box-shadow:0 3px 10px #102a4310}.table-wrap{overflow:auto}.inventory-table-card{flex:1;min-height:0;display:flex;flex-direction:column}.inventory-table-card .table-wrap{flex:1;min-height:0}.table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px;min-width:920px}.table th{background:#f7f9fc;color:#627587;text-align:left;font-weight:700}.table td,.table th{padding:11px 9px;border-bottom:1px solid #eaf0f4;vertical-align:top;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.muted{color:#6d8192;font-size:12px}.expiry{font-size:12px;color:#a66200}.expiry.alert{color:#bd4c42;font-weight:700}.details-row[hidden]{display:none}.details{background:#fbfcfe;padding:12px 15px}.batch-table{border-collapse:collapse;width:100%;max-width:720px;font-size:12px}.batch-table th,.batch-table td{padding:7px 8px;border-bottom:1px solid #e7edf2;text-align:left}.batch-table th{color:#657989;font-weight:700}.expand{border:0;background:#edf7f7;color:#007d8c;border-radius:5px;padding:5px 8px;font:inherit;font-size:12px;cursor:pointer}.table-toggle{border:0;background:none;color:#526b80;padding:0;font:inherit;font-weight:700;cursor:pointer}.sort-arrow{margin-left:4px;color:#008d9a}.category-head{position:relative}.category-menu{position:fixed;z-index:20;top:auto;left:auto;width:225px;max-height:260px;overflow:auto;background:#fff;border:1px solid #dbe4eb;box-shadow:0 10px 26px #102a4320;border-radius:8px;padding:7px}.category-menu[hidden]{display:none}.category-actions{display:flex;align-items:center;justify-content:space-between;padding:4px 5px 8px;border-bottom:1px solid #e7edf2;margin-bottom:4px}.category-actions label{padding:4px 0}.category-clear{border:0;background:none;color:#007d8c;font:inherit;font-size:12px;cursor:pointer;padding:4px}.category-menu label{display:flex;gap:8px;align-items:center;padding:7px 5px;font-weight:400;color:#334e63;white-space:normal}.empty{padding:35px;color:#748799;text-align:center}@media(min-width:981px){.main{height:100vh;overflow:hidden;display:flex;flex-direction:column}}@media(max-width:980px){.app{grid-template-columns:1fr}.side{display:none}.main{padding:18px}.filters{grid-template-columns:1fr 1fr}}@media(max-width:620px){.filters{grid-template-columns:1fr}}

@media(min-width:981px){.side{position:fixed;left:0;top:0;width:210px;height:100vh;z-index:10}.main{grid-column:2;min-width:0}}

/* Homepage: keep both date controls and the status notice in one compact,
   left-aligned filter group; it must not stretch the end date to the edge. */
.overview-filters{justify-content:flex-start!important}
.overview-filters .notice{margin-left:0!important}
.trend-search{display:flex;gap:8px;margin:0 0 10px}
.trend-search input{min-width:0;flex:1;border:1px solid #d8e1e9;border-radius:6px;padding:8px 9px;background:#fff;color:#273f54;font:inherit}
.trend-search-results{max-height:180px;overflow:auto;margin:-3px 0 9px;border:1px solid #dce5ec;border-radius:7px;background:#fff;box-shadow:0 5px 14px #102a4312}
.trend-search-results[hidden]{display:none}
.trend-search-results button{display:flex;width:100%;align-items:baseline;justify-content:space-between;gap:12px;border:0;border-bottom:1px solid #edf1f5;background:#fff;padding:9px 10px;text-align:left;color:#203b51;cursor:pointer;font:inherit}
.trend-search-results button:hover{background:#edf9f8}
.trend-search-results button span{color:#6d8192;font-size:12px}
.trend-search-empty{padding:12px;color:#718496;font-size:12px}
.trend-channel{display:inline-block;margin-left:8px;padding:2px 7px;border-radius:10px;background:#e8f7f7;color:#007d8c;font-size:11px;font-weight:700;vertical-align:2px}

/* Multi-SKU picker on the product inventory page. */
.inventory-product-picker{position:relative;min-width:250px;flex:1}.inventory-product-toggle{width:100%;border:1px solid #d8e1e9;border-radius:7px;padding:10px;background:#fff;color:#2b455b;font:inherit;text-align:left;cursor:pointer;display:flex;justify-content:space-between;align-items:center}.inventory-product-menu{position:absolute;z-index:80;top:calc(100% + 5px);left:0;width:min(430px,calc(100vw - 36px));max-height:380px;overflow:auto;background:#fff;border:1px solid #d8e1e9;border-radius:8px;box-shadow:0 10px 26px #102a4324;padding:9px}.inventory-product-menu[hidden]{display:none}.inventory-product-menu input[type=search]{width:100%;border:1px solid #d8e1e9;border-radius:6px;padding:8px;font:inherit}.inventory-product-actions{display:flex;justify-content:space-between;align-items:center;padding:8px 3px;border-bottom:1px solid #e7edf2;color:#526b80;font-size:12px}.inventory-product-actions button{border:0;background:none;color:#007d8c;font:inherit;font-size:12px;cursor:pointer}.inventory-product-menu label{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;padding:8px 4px;color:#334e63;cursor:pointer}.inventory-product-menu label b{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inventory-product-menu label span{color:#718496;font-size:12px}.inventory-product-empty{padding:16px 4px;color:#718496;text-align:center}

/* Overview interaction and small-window layout.  These rules are appended so
   they deliberately win over the older duplicated dashboard styles above. */
.overview-filters{display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:12px!important}
.overview-filters label{display:flex;align-items:center;gap:7px;white-space:nowrap}.overview-filters input{width:152px;min-width:0}.overview-filters .notice{margin-left:0!important}
.priority-grid .table-wrap{height:305px;max-height:305px;overflow:scroll!important;scrollbar-gutter:stable both-edges;scrollbar-color:#78909f #edf2f6}
.priority-grid .table-wrap::-webkit-scrollbar{width:12px;height:12px}.priority-grid .table-wrap::-webkit-scrollbar-track{background:#edf2f6;border-radius:8px}.priority-grid .table-wrap::-webkit-scrollbar-thumb{background:#8293a1;border:3px solid #edf2f6;border-radius:8px}.priority-grid .table-wrap::-webkit-scrollbar-thumb:hover{background:#5f7384}
.alert-expand{border:1px solid #b9dde1;background:#fff;color:#007d8c;border-radius:6px;padding:5px 9px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.alert-expand:hover{background:#eaf8f8}
.alert-modal{position:fixed;inset:0;z-index:400;display:flex;align-items:center;justify-content:center;padding:24px;background:#102a436b}.alert-modal[hidden]{display:none}.alert-modal-panel{display:flex;flex-direction:column;width:min(1240px,96vw);height:min(84vh,820px);min-height:320px;background:#fff;border-radius:12px;padding:18px;box-shadow:0 20px 52px #102a4360}.alert-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.alert-modal-title{font-size:18px;font-weight:800}.alert-modal-close{border:0;border-radius:6px;padding:7px 12px;background:#eef3f6;color:#36536b;font:inherit;cursor:pointer}.alert-modal-body{min-height:0;overflow:scroll;scrollbar-gutter:stable}.alert-modal-body .table{min-width:700px}.alert-modal-body th{position:sticky;top:0;z-index:1}
@media(max-width:980px){.main{padding:18px!important;overflow-x:hidden}.overview-filters{align-items:flex-start!important}.priority-grid .table-wrap{height:320px}.card{min-width:0}.chart{max-width:100%}}
@media(max-width:620px){.overview-filters{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important}.overview-filters label{display:grid;gap:4px}.overview-filters input{width:100%;min-width:0}.overview-filters .notice{grid-column:1/-1;white-space:normal}.priority-grid .table-wrap{height:300px}.alert-modal{padding:10px}.alert-modal-panel{width:100%;height:90vh;padding:13px}.title-row{align-items:flex-start}.alert-expand{flex:0 0 auto}}

/* Overview alert cards: vertical scrolling only, with cells adapted to the
   available card width instead of forcing the page into horizontal scroll. */
.priority-grid,.priority-grid .card{min-width:0!important;max-width:100%}
.priority-grid .table-wrap{overflow-y:scroll!important;overflow-x:hidden!important;scrollbar-gutter:stable!important}
.priority-grid .table{min-width:0!important;width:100%!important;table-layout:fixed}
.priority-grid .table th,.priority-grid .table td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.priority-grid .table th:first-child,.priority-grid .table td:first-child{width:42%;white-space:normal}
.priority-grid .table-wrap::-webkit-scrollbar{width:12px;height:0}.priority-grid .table-wrap::-webkit-scrollbar:horizontal{height:0}
@media(max-width:1180px){.sales-workspace,.priority-grid{grid-template-columns:1fr!important}.main{max-width:100%!important;overflow-x:hidden!important}.metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.head,.filters{flex-wrap:wrap!important}.card{min-width:0!important}.priority-grid .table th,.priority-grid .table td{padding:9px 6px}}

/* Homepage scrolling must belong to the document.  Older inventory-list
   styles locked `.main` to the viewport and hid all sections below it. */
html,body{min-height:100%;overflow-x:hidden!important;overflow-y:auto!important}
@media(min-width:981px){.main{height:auto!important;min-height:100vh!important;display:block!important;overflow:visible!important}}
.priority-grid .table-wrap{height:305px!important;max-height:305px!important;overflow-x:hidden!important;overflow-y:scroll!important}
.priority-grid .table-wrap::-webkit-scrollbar{width:12px!important;height:0!important}
.priority-grid .table-wrap::-webkit-scrollbar:horizontal{height:0!important}
