:root{font-family:system-ui,-apple-system,PingFang SC,Microsoft YaHei,sans-serif;color:#1c3434;background:#f4f6f4;font-synthesis:none;text-rendering:optimizeLegibility;--muted: #546965;--line: #dce5e0;--teal: #086956;--nav: #132f30;--white: #fff}*{box-sizing:border-box}body{margin:0;min-width:300px}button,input,select{font:inherit}button,summary{cursor:pointer}button:disabled{cursor:default;opacity:.47}a{color:inherit}:focus-visible{outline:2px solid #238d7a;outline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.missing{color:#627771;text-decoration:underline dotted #8b9b96;text-underline-offset:.25em;cursor:help}.startup{padding:2rem;color:var(--muted)}.loading{padding:1rem 0;color:var(--muted)}.shell{min-height:100vh;display:grid;grid-template-columns:204px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;padding:28px 16px 19px;background:var(--nav);color:#f2f8f5}.side-brand,.auth-brand{display:flex;gap:11px;align-items:center;font-size:17px;font-weight:750}.side-brand{padding:0 11px 29px}.brand-mark{display:inline-flex;align-items:flex-end;justify-content:center;gap:3px;width:32px;height:32px;border-radius:8px;padding-bottom:8px;background:#ade9d2;color:#17483f}.brand-mark i{width:3px;height:7px;background:currentColor;border-radius:1px}.brand-mark i:nth-child(2){height:12px}.brand-mark i:nth-child(3){height:16px}.sidebar nav{display:grid;gap:5px}.sidebar nav a,.side-emergency{text-decoration:none;border-radius:8px;color:#c5d8d2}.sidebar nav a{padding:11px 12px;display:flex;align-items:center;gap:10px;font-size:14px;font-weight:630}.sidebar nav a:hover,.side-emergency:hover{background:#204445;color:#fff}.sidebar nav a.active{background:#28504c;color:#d5ffeb}.nav-icon{display:inline-grid;place-items:center;width:20px;height:20px;font-size:19px;line-height:1}.side-emergency{margin-top:auto;padding:10px 12px;font-size:13px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:60px;padding:10px clamp(16px,3vw,38px);border-bottom:1px solid var(--line);background:#fff;font-size:14px;font-weight:650}.top-actions{display:flex;align-items:center;justify-content:flex-end;gap:15px}.account-name{color:var(--muted);font-weight:500;overflow-wrap:anywhere}.text-button{padding:0;border:0;background:none;color:var(--teal);font-weight:650}.text-button:hover,.auth-alternate:hover{text-decoration:underline}.qm-link{display:inline-flex;gap:6px;align-items:center;color:var(--teal);font-weight:700;text-decoration:none;white-space:nowrap}.qm-link:hover{text-decoration:underline}.content{padding:24px clamp(16px,3vw,38px) 36px;margin:0 auto;max-width:1620px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:18px}.page-heading h1,.auth-card h1{margin:0;font-size:30px;line-height:1.23;letter-spacing:-.035em}.page-heading p{color:var(--muted);font-size:14px;margin:7px 0 0}.page-heading>span{color:var(--muted);font-size:12px;padding-bottom:3px;white-space:nowrap}.metadata{position:sticky;top:0;z-index:2;margin-bottom:14px;border:1px solid var(--line);border-radius:11px;background:#fff}.metadata-values{position:relative;display:flex;align-items:center;gap:10px 23px;padding:12px 15px;flex-wrap:wrap}.metadata-values>div{display:grid;gap:3px}.metadata-values>div>span{font-size:11px;color:var(--muted)}.metadata-values strong{font-size:12px;font-weight:650;font-variant-numeric:tabular-nums}.batch-meta strong{overflow-wrap:anywhere}.gap-details{margin-left:auto}.gap-details summary,.shop-options summary{list-style:none}.gap-details summary::-webkit-details-marker,.shop-options summary::-webkit-details-marker{display:none}.gap-details summary{border:1px solid var(--line);border-radius:7px;padding:6px 9px;font-size:12px;color:var(--teal);font-weight:650;white-space:nowrap}.gap-details summary:after{content:"⌄";margin-left:7px}.gap-count{margin-left:3px;color:var(--muted)}.gap-list{position:absolute;top:calc(100% + 6px);right:0;width:min(98%,520px);max-height:270px;overflow:auto;padding:10px 16px;border:1px solid var(--line);border-radius:9px;background:#fff;box-shadow:0 8px 25px #18383120;font-size:13px}.gap-list ul{margin:0;padding-left:20px}.gap-list li{padding-block:5px;overflow-wrap:anywhere}.degraded-banner,.inventory-notice,.batch-notice,.inline-error,.shell-error{font-size:13px}.degraded-banner,.inventory-notice{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:#754b16;background:#fff4dd}.degraded-banner{padding:10px clamp(16px,3vw,38px);border-bottom:1px solid #eddaab;font-weight:650}.status-dot{width:8px;height:8px;border-radius:50%;background:#b5711a}.inventory-notice{border:1px solid #eddaab;border-radius:9px;padding:10px 14px;margin-bottom:14px}.filter-panel{position:relative;display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:10px 14px;padding:13px 15px;margin-bottom:15px;border:1px solid var(--line);border-radius:11px;background:#fff}.filter-fields{display:flex;flex:1 1 auto;align-items:flex-end;flex-wrap:wrap;gap:10px}.filter-panel label,.auth-card label{display:grid;gap:5px;color:var(--muted);font-size:12px;font-weight:650}.range-field{display:flex;align-items:flex-end;gap:6px}.date-divider{align-self:end;padding-bottom:7px;color:var(--muted)}.filter-panel input,.filter-panel select,.auth-card input{height:35px;padding:4px 9px;border:1px solid #ccd9d3;border-radius:6px;color:#1c3434;background:#fff;font-size:13px}.filter-panel input::placeholder{color:#657772}.filter-panel input:not([type]){width:120px}.filter-panel .keyword-field input{width:140px}.filter-panel input[type=date]{width:127px;padding-inline:6px}.filter-actions{display:flex;align-items:flex-end;gap:7px}.button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #cbd9d2;border-radius:7px;padding:0 12px;min-height:35px;color:#2f4e49;background:#fff;font-size:13px;font-weight:650;white-space:nowrap}.button:hover:not(:disabled){background:#eff6f2}.button.primary{background:var(--teal);color:#fff;border-color:var(--teal)}.button.primary:hover:not(:disabled){background:#075846}.shop-filter{position:relative}.shop-filter input:not([type]){padding-right:28px;width:136px}.shop-options{position:absolute;right:1px;bottom:1px}.shop-options summary{width:25px;height:33px;display:grid;place-items:center;color:var(--teal);border-radius:5px;background:#fff}.shop-list{position:absolute;z-index:4;top:calc(100% + 5px);right:-1px;width:232px;max-width:calc(100vw - 35px);max-height:260px;padding:7px;overflow:auto;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 8px 25px #18383120}.shop-list p{margin:8px;color:var(--muted);font-size:13px}.shop-list label{display:flex;align-items:center;gap:7px;padding:5px 6px;cursor:pointer}.shop-list label:hover{background:#eff6f2}.shop-list input[type=checkbox]{width:15px;height:15px;accent-color:var(--teal)}.overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:15px}.summary-card{min-width:0;min-height:103px;border:1px solid var(--line);border-radius:11px;padding:13px;background:#fff}.summary-card h2{margin:0 0 7px;color:var(--muted);font-size:12px;font-weight:650}.summary-card>strong{display:block;color:#164b40;font-size:clamp(16px,2vw,26px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.2}.summary-card p{margin:7px 0 0;color:var(--muted);font-size:11px}.trend-card canvas{display:block;width:100%;height:38px}.trend-dates{display:flex;justify-content:space-between;gap:4px;font-size:10px;color:var(--muted)}.data-card{border:1px solid var(--line);border-radius:11px;background:#fff}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 15px}.card-heading h2{margin:0;font-size:16px;font-weight:750}.card-heading>span{color:var(--muted);font-size:12px}.table-scroll{width:100%;max-height:min(55vh,620px);overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}th,td{padding:10px 13px;text-align:left;border-top:1px solid #e4ebe7}thead th{position:sticky;top:0;z-index:1;background:#edf3ef;color:#3b5650;font-size:12px;font-weight:700}td.number,th.number{text-align:right;font-variant-numeric:tabular-nums}tbody tr:hover{background:#f7fbf8}tbody td.est_profit,tbody td.est_margin{color:#145b4d;font-weight:650}td.product_name{min-width:130px;max-width:220px;white-space:normal;overflow-wrap:anywhere}.cell-subtitle,.row-coverage{display:block;margin-top:3px;font-size:11px;color:var(--muted);font-weight:500}.row-coverage,.partial-note{color:#80551c}tfoot{background:#f1f6f2;font-weight:700}.partial-note{display:block;font-size:11px;font-weight:550;margin-top:2px}.missing-shop{display:inline-block;max-width:max-content;color:#78521b;background:#fbefd7;padding:3px 7px;border-radius:4px;font-size:12px}.empty{margin:0;padding:28px 15px;border-top:1px solid var(--line);text-align:center;color:var(--muted);font-size:14px}.paging{display:flex;justify-content:flex-end;align-items:center;gap:11px;padding:10px 14px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}.batch-notice{margin:0;padding:9px 15px;background:#eaf6f0;color:#1b614f}.inline-error{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 15px;color:#983923;background:#fff0eb}.inline-error small{display:block;margin-top:4px}.shell-error{margin:0;padding:10px 20px;color:#983923;background:#fff0eb}.auth-layout{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;align-content:center;gap:23px;padding:26px 18px;background:radial-gradient(ellipse at 50% 18%,#e0f2e9,#f3f6f3 59%)}.auth-brand{color:#143d34}.auth-card{width:min(100%,400px);padding:clamp(22px,5vw,33px);border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 14px 42px #17372a0c}.auth-card h1{font-size:25px}.auth-card>p{color:var(--muted);font-size:14px;margin:10px 0 0}.auth-card fieldset{display:grid;gap:15px;border:none;margin:21px 0 0;padding:0}.auth-card input,.auth-card .button{width:100%;min-height:41px;font-size:14px}.auth-card .button{margin-top:3px}.form-error{flex:1 0 100%;margin:0;color:#a23821;font-size:13px}.auth-alternate{display:inline-block;margin-top:18px;color:var(--teal);font-size:13px;font-weight:650;text-decoration:none}@media(max-width:1050px){.shell{grid-template-columns:166px minmax(0,1fr)}.sidebar{padding-inline:12px}.trend-card canvas{height:29px}}@media(max-width:680px){.shell{display:block}.sidebar{position:static;height:auto;padding:11px 12px;gap:9px}.side-brand{padding:0 2px;font-size:15px}.brand-mark{width:28px;height:28px;padding-bottom:6px}.sidebar nav{display:flex;flex-wrap:wrap}.sidebar nav a{padding:6px 8px;font-size:13px}.nav-icon{width:16px}.side-emergency{align-self:flex-start;margin:0;padding:3px 8px}.topbar{min-height:43px;font-size:12px}.top-actions{gap:9px}.content{padding-top:17px}.page-heading h1{font-size:24px}.metadata-values{gap:8px 13px}.batch-meta{flex:1 0 100%}.overview{grid-template-columns:repeat(2,minmax(0,1fr))}.payable-total-card,.trend-card{grid-column:1 / -1}.summary-card{min-height:73px}.shop-list{left:0;right:auto;transform:translate(-45%)}}
