:root{--ink:#192f2b;--muted:#7b8987;--green:#22725e;--green-dark:#183e35;--green-light:#edf6f1;--line:#e7ece9;--canvas:#f5f7f5;--red:#cf584e;--red-light:#fff0ed;--amber:#c68d39;--amber-light:#fff7e7;--shadow:0 5px 22px #173b3404;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--canvas)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,tr:focus-visible{outline:3px solid #62a68a;outline-offset:3px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.app-shell{min-height:100vh;display:flex}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:#193c34;color:#c5d7ce;padding:34px 18px 20px;z-index:20;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#fff;margin:0 13px 50px;font-size:20px;font-weight:650;letter-spacing:1px}.brand-mark{display:grid;place-items:center;width:41px;height:43px;background:#d9e9ce;border-radius:11px;color:#214b3b}.brand-mark svg{width:26px;height:26px;stroke-width:1.6}.brand small{display:block;font-size:10px;font-weight:400;color:#98b7a8;letter-spacing:2.1px;margin-top:5px}.nav-caption{font-size:10px;color:#8eaa9a;letter-spacing:2px;margin:0 16px 13px}.desktop-nav{display:grid;gap:7px}.nav-item{display:flex;align-items:center;gap:13px;width:100%;height:48px;padding:0 16px;border:0;background:none;color:#b7cec1;text-align:left;border-radius:8px;font-size:13px;transition:.15s}.nav-item:hover{background:#ffffff0b;color:white}.nav-item.active{color:#f4fff4;background:#3d6350;box-shadow:inset 3px 0 #bfd5b0;font-weight:600}.nav-item svg{width:19px;height:19px}.nav-count{font-size:10px;margin-left:auto;background:#ffffff12;border-radius:5px;padding:3px 6px}.sidebar-bottom{margin-top:auto}.schedule-mini{border:1px solid #ffffff18;border-radius:10px;padding:17px 14px;display:flex;gap:10px;align-items:center}.mini-icon{color:#bdd1a9}.schedule-mini strong{display:block;font-size:12px;font-weight:550;color:#d9e7dc;letter-spacing:.5px}.schedule-mini div>span{display:block;font-size:10px;margin-top:6px;color:#8ea99c}.sidebar-foot{display:flex;align-items:center;gap:7px;font-size:10px;color:#90ac9b;margin:18px 4px 0}.status-dot{width:5px;height:5px;background:#a8c79e;border-radius:50%}.workspace{width:calc(100% - 224px);margin-left:224px;display:flex;flex-direction:column;min-height:100vh}.topbar{height:78px;display:flex;align-items:center;gap:26px;padding:0 40px;border-bottom:1px solid var(--line);background:#ffffffed;position:sticky;top:0;z-index:15;backdrop-filter:blur(12px)}.breadcrumb{display:flex;gap:14px;align-items:center;white-space:nowrap;font-size:12px;color:#89948e}.breadcrumb b{font-weight:400;color:#ccd4ce;margin-left:14px}.breadcrumb strong{font-weight:550;color:#43564d}.global-search{margin-left:auto;width:290px;display:flex;gap:9px;align-items:center;color:#8f9a94;background:#f6f8f6;border:1px solid #edf0ec;border-radius:8px;height:36px;padding:0 10px}.global-search svg{width:16px;height:16px}.global-search input{border:0;background:none;width:100%;min-width:0;font-size:11px;outline:none!important;color:#31483d}.global-search input::placeholder{color:#a0aaa3}.search-hint{font-size:9px;white-space:nowrap;background:white;border:1px solid #e6ebe5;border-radius:4px;padding:2px 4px;color:#9aa79c}.topbar-actions{display:flex;align-items:center;gap:18px}.trial-badge{border:1px solid #dce7d7;color:#5e7854;background:#f4f8ef;border-radius:5px;padding:4px 7px;font-size:10px;white-space:nowrap}.role-picker{display:flex;align-items:center;gap:7px}.avatar{display:grid;place-items:center;background:#e8eee7;color:#62775c;border-radius:50%;width:29px;height:29px;font-size:11px;font-weight:600}.role-picker select{border:0;background:none;color:#5f6d63;font-size:11px;max-width:104px;padding:5px 0;cursor:pointer}.mobile-brand{display:none}main{padding:22px 40px 36px;flex:1;width:100%;max-width:1650px;margin:0 auto}.snapshot-banner{display:flex;gap:9px;align-items:flex-start;padding:10px 13px;border:1px solid #e0e8d8;background:#f0f5e9;color:#6c7f5a;border-radius:7px;font-size:10px;line-height:1.75;margin-bottom:30px}.snapshot-banner svg{width:14px;height:14px;margin-top:2px}.snapshot-banner b{font-weight:600}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 25px}.eyebrow{color:#78907d;font-size:10px;letter-spacing:1.3px;margin-bottom:10px}.page-heading h1{font-size:27px;letter-spacing:-.8px;margin:0 0 10px;font-weight:620;line-height:1.25}.page-heading p{margin:0;color:#8a958c;font-size:11px;line-height:1.8}.heading-actions{display:flex;gap:9px;padding-bottom:3px;flex-shrink:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:7px;border:1px solid transparent;height:36px;padding:0 12px;font-size:11px;font-weight:550;white-space:nowrap;transition:.15s}.button svg{width:15px;height:15px}.button-light{border-color:#dde5dc;background:white;color:#51634f;box-shadow:var(--shadow)}.button-light:hover{border-color:#a6c2aa;background:#f4f8f2}.button-primary{background:#255d47;color:#fff}.button-primary:hover{background:#194b38}.button-small{height:30px;padding:0 10px;font-size:10px}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:25px}.kpi-card{position:relative;border:1px solid var(--line);background:white;box-shadow:var(--shadow);border-radius:10px;text-align:left;padding:19px 20px 15px;overflow:hidden}.kpi-card:after{content:"";position:absolute;width:64px;height:64px;border-radius:50%;background:currentColor;opacity:.025;right:-15px;top:29px}.kpi-card:hover{border-color:#bccab7;transform:translateY(-1px)}.kpi-top{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#6e7d70}.kpi-icon{height:26px;width:26px;display:grid;place-items:center;border-radius:7px;background:#f6f8f4;color:#9ba698}.kpi-icon svg{width:15px;height:15px}.kpi-card.urgent .kpi-icon{color:var(--red);background:var(--red-light)}.kpi-card.warning .kpi-icon{color:var(--amber);background:var(--amber-light)}.kpi-card.normal .kpi-icon{color:#4b8b6a;background:#edf6ed}.kpi-number{font-size:35px;letter-spacing:-1.6px;line-height:1.3;font-weight:600;margin:9px 0 7px;font-variant-numeric:tabular-nums;color:#233e2e}.kpi-card.urgent .kpi-number{color:#bc554c}.kpi-card.warning .kpi-number{color:#bf8b39}.kpi-bottom{font-size:9px;color:#9aa59a;line-height:1.5;display:flex;align-items:center;gap:4px}.kpi-bottom svg{width:12px;height:12px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 274px;gap:20px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);overflow:hidden}.panel-heading{padding:21px 21px 17px;display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-heading h2{font-size:14px;font-weight:600;margin:0;display:flex;gap:7px;align-items:center}.panel-heading p{font-size:10px;color:#98a194;margin:7px 0 0}.small-pill{color:#79906d;background:#f1f5ec;padding:2px 6px;border-radius:5px;font-size:9px;font-weight:500;min-width:20px;text-align:center}.text-button{border:0;background:none;color:#5a7b5c;padding:4px 0;display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:10px;white-space:nowrap}.text-button:hover{color:#234d32}.text-button svg{width:13px;height:13px}.dashboard-side{display:grid;gap:16px}.rule-panel{padding:19px 20px}.side-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.side-heading h2{font-size:12px;margin:0;font-weight:600}.subtle-badge{font-size:8px;border:1px solid #e8ece2;color:#9aa28c;border-radius:4px;padding:3px 5px}.lead-summary{display:flex;gap:10px;align-items:center;margin-bottom:17px}.lead-box{flex:1;border-radius:6px;background:#f7f9f4;padding:10px 9px}.lead-box small{font-size:9px;color:#8c9a82;display:block}.lead-box strong{display:block;font-size:22px;font-weight:550;margin-top:5px;letter-spacing:-.5px}.lead-box strong span{font-size:10px;font-weight:400;margin-left:4px;color:#8b9782}.plus-sign{color:#a4ae97;font-weight:300}.rule-legend{display:grid;gap:9px;padding:12px 0 2px;border-top:1px solid var(--line)}.rule-legend>div{display:flex;justify-content:space-between;font-size:10px;color:#8c9887;align-items:center}.legend-label{display:flex;gap:7px;align-items:center;color:#5d6e56}.dot{height:6px;width:6px;border-radius:50%;display:inline-block;flex-shrink:0;background:#bcc5b6}.dot.urgent{background:#d17b6e}.dot.warning{background:#d4b268}.dot.normal{background:#77a183}.dot.noDemand{background:#a6b7b4}.dot.missing{background:#b3b8bf}.distribution-panel{padding:18px 20px}.distribution-panel .side-heading{margin-bottom:14px}.distribution-bar{display:flex;height:9px;border-radius:4px;overflow:hidden;gap:3px;background:#f3f5ef;margin-bottom:17px}.distribution-segment{height:100%;min-width:3px}.distribution-segment.urgent{background:#d7897d}.distribution-segment.warning{background:#d8bc82}.distribution-segment.normal{background:#81a58b}.distribution-segment.noDemand{background:#b9c9c2}.distribution-segment.missing{background:#d4d9dc}.distribution-legend{display:grid;grid-template-columns:1fr 1fr;gap:11px 10px;font-size:9px}.distribution-legend>span{display:flex;gap:6px;align-items:center;color:#8c9888}.distribution-legend b{margin-left:auto;font-weight:500;color:#647560}.delivery-card{background:#e9f0e3;border:1px solid #e0e8d6;padding:18px 20px;border-radius:10px}.delivery-title{display:flex;align-items:center;gap:9px}.delivery-title strong{font-size:11px;font-weight:600;color:#567549}.delivery-icon{width:27px;height:27px;display:grid;place-items:center;background:#dee8d3;color:#738e60;border-radius:7px}.delivery-icon svg{width:15px;height:15px}.delivery-card p{font-size:10px;line-height:1.9;color:#8a9b7c;margin:12px 0 15px}.delivery-footer{display:flex;align-items:center;justify-content:space-between}.connection-tag{font-size:8px;color:#8f9b85;background:#ffffff85;border:1px solid #dbe4d1;border-radius:4px;padding:4px 5px}.data-table{width:100%;border-collapse:collapse;text-align:left}.data-table thead{background:#fafbf8}.data-table th{font-size:9px;letter-spacing:.3px;color:#96a18f;font-weight:450;padding:12px 14px;border-top:1px solid #eff2eb;border-bottom:1px solid #eff2eb;white-space:nowrap}.data-table th:first-child{padding-left:21px}.data-table th:last-child{padding-right:20px}.data-table td{font-size:11px;padding:16px 14px;border-bottom:1px solid #f0f3ed;vertical-align:middle;font-variant-numeric:tabular-nums}.data-table td:first-child{padding-left:21px}.data-table td:last-child{padding-right:20px}.data-table tbody tr{cursor:pointer;transition:background .12s}.data-table tbody tr:hover{background:#f7faf4}.data-table tbody tr:last-child td{border-bottom:0}.product-cell{display:flex;gap:10px;align-items:center;min-width:160px}.product-thumb{display:grid;place-items:center;border-radius:7px;background:#f0f2e9;color:#9aa789;min-width:35px;width:35px;height:37px;font-size:12px;font-weight:600;flex-shrink:0}.product-thumb svg{width:18px;height:18px}.product-thumb.tone1{background:#f0e9df;color:#b8a17a}.product-thumb.tone2{background:#e9edf0;color:#9aabb6}.product-thumb.tone3{background:#eee8ed;color:#ac96ac}.product-name{display:block;font-size:11px;font-weight:550;line-height:1.5;color:#485e43;max-width:245px;word-break:break-word}.product-code{display:block;font-size:9px;color:#a1ab98;margin-top:4px;letter-spacing:.25px;overflow-wrap:anywhere}.qty{font-weight:550;color:#607153}.qty.negative{color:var(--red)}.num-unit{font-size:9px;font-weight:400;margin-left:3px;color:#a3ad9b}.cover-value{font-weight:550;font-size:12px;color:#526747}.cover-value.urgent{color:#c86759}.cover-value.warning{color:#ba9450}.cover-value.noDemand,.cover-value.missing{font-size:10px;font-weight:400;color:#a2ab9b}.status-badge{display:inline-flex;align-items:center;gap:5px;font-size:9px;padding:4px 7px;border-radius:5px;white-space:nowrap;background:#f3f5f1;color:#8d9985}.status-badge.urgent{color:#be6b5e;background:#fcf0eb}.status-badge.warning{color:#b6924b;background:#fbf5e8}.status-badge.normal{color:#6d8e63;background:#eff5e9}.status-badge.missing{color:#8b95a2;background:#f0f2f5}.status-badge.noDemand{color:#8b9b95;background:#f0f5f2}.row-chevron{width:13px;height:13px;color:#b0bca6}.panel-note{background:#fcfdf9;border-top:1px solid #edf1e8;display:flex;gap:6px;align-items:center;padding:12px 21px;font-size:9px;color:#a0aa94;line-height:1.7}.panel-note svg{width:12px;height:12px}.source-strip{display:flex;gap:22px;margin-top:21px;flex-wrap:wrap;font-size:9px;color:#a2ad9a;line-height:1.8}.source-strip>span{display:flex;gap:5px;align-items:center}.source-strip svg{height:12px;width:12px}.source-strip b{font-weight:450;color:#84977c}.app-footer{display:flex;justify-content:space-between;gap:20px;padding:17px 40px 21px;font-size:9px;color:#acb5a4;max-width:1650px;width:100%;margin:0 auto}.mobile-nav{display:none}.empty-state{text-align:center;padding:48px 20px;color:#9ca795}.empty-state>svg{width:32px;height:32px;color:#a2b59b;margin-bottom:10px}.empty-state h3{font-size:13px;font-weight:550;color:#6f8265;margin:4px 0 9px}.empty-state p{font-size:11px;line-height:1.9;margin:0 auto;max-width:340px}.empty-state .button{margin-top:18px}.products-tools{display:flex;justify-content:space-between;align-items:center;padding:17px 20px 11px;gap:16px}.filter-tabs{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.filter-tab{border:0;background:none;font-size:10px;color:#919e87;padding:7px 9px;border-radius:5px;white-space:nowrap}.filter-tab.active{background:#edf4e8;color:#577549;font-weight:600}.filter-tab .filter-count{margin-left:5px;font-size:9px;opacity:.7}.sort-picker{display:flex;align-items:center;gap:5px;color:#9ca991;font-size:9px;white-space:nowrap}.sort-picker select{font-size:10px;color:#718363;border:1px solid #e4eadc;background:#fff;border-radius:5px;padding:6px 24px 6px 7px;max-width:168px}.results-summary{padding:0 21px 14px;color:#9ba68f;font-size:9px}.search-tag{display:inline-flex;align-items:center;gap:4px;margin-left:8px;border:1px solid #dee8d4;background:#f5f8f0;border-radius:4px;padding:3px 6px;color:#7c906c;max-width:100%;overflow-wrap:anywhere}.search-tag button{border:0;background:none;padding:0;color:inherit;display:flex;align-items:center}.search-tag svg{height:11px;width:11px}.pagination{border-top:1px solid var(--line);padding:15px 20px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#98a58b}.pagination-actions{display:flex;align-items:center;gap:10px}.page-button{background:white;border:1px solid #e3eadb;display:grid;place-items:center;width:28px;height:28px;border-radius:5px;color:#8da17a}.page-button svg{height:13px;width:13px}.page-button.prev svg{transform:rotate(180deg)}.page-count{font-variant-numeric:tabular-nums;color:#7b8e69;font-size:10px;min-width:50px;text-align:center}.bottom-note{font-size:10px;line-height:1.9;color:#98a58e;margin-top:17px}.mobile-product-list{display:none}.outline-badge{font-size:10px;border:1px solid #dce7d2;background:#f7faf2;border-radius:5px;padding:6px 9px;color:#80996c}.settings-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:20px;align-items:start}.settings-main,.settings-aside{display:grid;gap:20px}.settings-panel{padding:22px}.settings-panel h2{margin:0 0 7px;font-size:14px;font-weight:600}.section-description{font-size:10px;line-height:1.9;color:#9aa68e;margin:0 0 21px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field-label{font-size:10px;color:#819571;display:block}.field-control{display:flex;align-items:center;border:1px solid #dfe8d4;border-radius:6px;background:#fff;margin-top:8px;overflow:hidden}.field-control input{border:0;background:none;width:100%;min-width:0;padding:11px 12px;outline:none!important;color:#5e7850;font-weight:550;font-size:15px;font-variant-numeric:tabular-nums}.field-control>span{color:#a2af94;font-size:10px;margin-right:12px}.field-help{font-size:9px;line-height:1.8;color:#a1ac96;display:block;margin-top:7px}.rule-example{display:flex;align-items:flex-start;gap:8px;background:#f3f7ed;border:1px solid #e7eddd;border-radius:7px;color:#8a9d79;padding:12px;font-size:10px;line-height:1.9;margin-top:18px}.rule-example svg{width:14px;height:14px;margin-top:2px}.rule-example strong{color:#647d52;font-weight:550}.style-search{height:33px;display:flex;align-items:center;gap:7px;border:1px solid #e4eadc;background:#fafcf7;border-radius:6px;padding:0 10px;margin-bottom:13px}.style-search svg{width:14px;height:14px;color:#a3b195}.style-search input{width:100%;border:0;background:none;outline:none!important;font-size:10px;color:#7c9169;min-width:0}.style-rule-list{max-height:350px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.style-rule-row{display:flex;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #f0f3e9}.style-rule-row:last-child{border-bottom:0}.style-rule-info{min-width:0;flex:1}.style-rule-info strong{font-size:10px;font-weight:550;display:block;line-height:1.7;color:#6a8258;overflow-wrap:anywhere}.style-rule-info small{font-size:9px;color:#a3b093;display:block;margin-top:3px;overflow-wrap:anywhere}.style-days{display:flex;gap:5px;align-items:center;flex-shrink:0}.style-days input{width:57px;padding:7px 5px 7px 10px;background:white;border:1px solid #e3eada;border-radius:5px;color:#6e855c;font-size:11px;outline:none!important}.style-days>span{font-size:9px;color:#9fae8d}.clear-override{font-size:9px;color:#a2b18d;max-width:47px;border:0;background:none;padding:4px;line-height:1.5}.clear-override:hover{color:#5b7d42}.style-search-summary{font-size:9px;color:#a3b095;margin-top:12px;line-height:1.8}.settings-savebar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:20px}.settings-savebar p{font-size:9px;color:#a1ae91;line-height:1.8;margin:0}.settings-buttons{display:flex;gap:8px}.checkbox-row{display:flex;align-items:flex-start;gap:8px;padding:11px 0}.checkbox-row input{accent-color:#719959;margin:2px 0 0;width:13px;height:13px}.checkbox-row label{font-size:11px;color:#6d855a;line-height:1.6}.checkbox-row label small{display:block;font-size:9px;margin-top:4px;color:#a0af8f}.text-field{display:block;margin-top:12px}.text-field>span{font-size:10px;color:#8b9f78}.text-field input,.text-field textarea{display:block;width:100%;padding:10px 11px;margin-top:7px;border:1px solid #e1e9d7;border-radius:6px;font-size:10px;background:#fff;color:#71885e;resize:vertical;line-height:1.7}.schedule-row{display:flex;justify-content:space-between;align-items:center;padding:11px 0;font-size:10px;color:#8ca078;border-bottom:1px solid #edf1e6}.schedule-row strong{font-size:12px;color:#6b8557;font-weight:550}.draft-tag{font-size:8px;background:#fff8e6;color:#b7a36a;border-radius:4px;padding:4px 6px}.settings-role-note{padding:12px 16px;background:#edf2e8;border:1px solid #e1e9d6;border-radius:7px;font-size:10px;line-height:1.8;color:#8b9d7a;margin-bottom:20px}.settings-role-note svg{width:13px;height:13px;vertical-align:-3px;margin-right:5px}.readonly-message{color:#9a987d;background:#f7f5e9;border-color:#ebe7d4}.detail-dialog,.notice-dialog{padding:0;border:0;color:var(--ink);box-shadow:0 24px 80px #10271e30;background:#fafcf8}.detail-dialog{height:100dvh;max-height:none;width:510px;max-width:100vw;margin:0 0 0 auto;overflow-y:auto;overscroll-behavior:contain;border-radius:0}.detail-dialog::backdrop,.notice-dialog::backdrop{background:#15332255;backdrop-filter:blur(2px)}.drawer-head{padding:23px 25px 19px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e6eddc;background:#fff;position:sticky;top:0;z-index:2}.drawer-eyebrow{font-size:10px;color:#9aab87;letter-spacing:1px}.icon-button{background:transparent;border:1px solid #e1e9d5;border-radius:6px;width:29px;height:29px;display:grid;place-items:center;color:#94a97d}.icon-button svg{width:15px;height:15px}.drawer-content{padding:24px 25px}.detail-product{display:flex;align-items:flex-start;gap:13px;margin-bottom:22px}.detail-product .product-thumb{height:49px;width:47px;min-width:47px}.detail-product .product-thumb svg{height:24px;width:24px}.detail-product h2{font-size:20px;line-height:1.5;font-weight:600;letter-spacing:-.4px;margin:0 0 6px;overflow-wrap:anywhere}.detail-product p{font-size:10px;color:#98a98c;line-height:1.8;margin:0}.detail-product .product-code{font-size:10px;color:#8b9e7b;display:flex;gap:8px;align-items:center}.inline-copy{border:0;background:none;color:#a2b491;display:flex;align-items:center;padding:0}.inline-copy svg{width:12px;height:12px}.detail-status-card{padding:20px;border:1px solid #e2eadd;background:#f1f6eb;border-radius:10px;margin-bottom:19px}.detail-status-card.urgent{background:#fcf0e9;border-color:#f2ddd2}.detail-status-card.warning{background:#fbf5e5;border-color:#eee3c8}.detail-status-top{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#8ca078}.detail-days{font-size:39px;font-weight:550;line-height:1.35;letter-spacing:-1.5px;color:#6d8e55;margin:9px 0 8px}.detail-days>span{font-size:13px;letter-spacing:0;font-weight:400;margin-left:6px}.urgent .detail-days{color:#c77e68}.warning .detail-days{color:#b5a060}.detail-status-bottom{display:flex;gap:17px;font-size:9px;line-height:1.8;color:#9eab8e}.detail-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:22px}.detail-stat{background:#fff;border:1px solid #e6eddc;border-radius:7px;padding:12px 8px}.detail-stat span{font-size:8px;color:#9eaf8d;display:block;line-height:1.5}.detail-stat strong{display:block;margin-top:8px;font-size:19px;font-weight:550;color:#718b5a;font-variant-numeric:tabular-nums}.detail-stat small{font-size:8px;font-weight:400;color:#a7b597;margin-left:3px}.detail-block{background:#fff;border:1px solid #e5ecd9;border-radius:9px;padding:17px;margin-bottom:16px}.detail-block h3{font-size:11px;font-weight:600;color:#758e60;margin:0 0 16px;display:flex;align-items:center;gap:6px}.detail-block h3 svg{width:14px;height:14px}.detail-block .block-subtitle{font-size:9px;color:#a2b18f;line-height:1.8;margin:-7px 0 18px}.avg-chart{display:grid;gap:16px}.avg-row{display:grid;grid-template-columns:67px 1fr 55px;gap:9px;align-items:center;font-size:9px;color:#9aab86}.avg-track{height:7px;background:#f1f5eb;border-radius:4px;overflow:hidden}.avg-fill{height:100%;border-radius:4px;background:#9eb58a}.avg-fill.accent{background:#618b57}.avg-row strong{font-size:10px;font-weight:550;color:#819a6b;text-align:right}.trend-line{font-size:9px;line-height:1.8;color:#9aaa89;margin:17px 0 0;padding-top:12px;border-top:1px solid #eef3e7}.trend-line b{color:#7b995f;font-weight:550}.detail-recommendation{background:#f0f5e8;border-color:#e4edda}.explanation-tag{font-size:7px;font-weight:400;color:#98aa84;background:#e7efdb;border-radius:3px;padding:4px 5px;margin-left:auto}.recommendation-text{font-size:11px;color:#83986d;line-height:2;margin:0}.detail-remark{font-size:9px;line-height:1.9;color:#a5b492;margin:18px 0}.drawer-actions{display:flex;gap:10px;margin-top:20px}.drawer-actions .button{flex:1}.notice-dialog{border-radius:13px;width:490px;max-width:calc(100vw - 32px);max-height:90dvh;overflow:auto}.notice-heading{padding:22px 24px 18px;border-bottom:1px solid #e6eddb;display:flex;justify-content:space-between;align-items:center}.notice-heading h2{font-size:15px;margin:0;font-weight:600;color:#6a8455}.notice-heading p{font-size:9px;color:#a4b38f;margin:7px 0 0}.notice-body{padding:22px 24px}.preview-label{display:flex;align-items:center;gap:6px;font-size:9px;color:#a8a073;margin-bottom:12px}.preview-label .dot{background:#c6bb86}.feishu-preview{background:#fff;border:1px solid #e4ecd7;border-radius:9px;overflow:hidden}.feishu-preview-head{padding:14px 17px;background:#eaf1e1;border-bottom:1px solid #e1e9d6;font-size:13px;font-weight:600;color:#71945b}.feishu-preview-body{padding:17px}.notice-summary{font-size:11px;line-height:2;color:#8c9e79;margin:0 0 14px}.notice-line{padding:11px 0;border-top:1px solid #eef2e7;display:flex;justify-content:space-between;gap:12px}.notice-line strong{font-size:10px;line-height:1.7;color:#8b9d75;font-weight:550;overflow-wrap:anywhere}.notice-line small{display:block;font-size:8px;color:#b0bc9f;margin-top:3px}.notice-line>span{font-size:10px;color:#b4906d;white-space:nowrap}.preview-link{display:block;border:1px solid #dfe9d1;background:#f7faf2;border-radius:5px;font-size:10px;color:#88a06c;text-align:center;padding:9px;margin-top:14px}.notice-meta{font-size:9px;line-height:1.9;color:#a2b18e;margin:14px 0 0}.notice-bottom{padding:0 24px 23px;display:flex;justify-content:flex-end}.toast{position:fixed;bottom:28px;left:calc(50% + 112px);transform:translate(-50%,15px);z-index:100;background:#284c35;color:#f4ffeb;font-size:12px;padding:12px 19px;border-radius:8px;box-shadow:0 6px 25px #233e2a26;opacity:0;pointer-events:none;transition:.2s;max-width:calc(100vw - 28px);text-align:center;line-height:1.7}.toast.show{opacity:1;transform:translate(-50%,0)}.load-state{text-align:center;padding:120px 20px;color:#8da078}.load-state h2{font-size:17px;font-weight:500;margin-top:22px}.load-state p{font-size:11px;color:#a3b392;line-height:1.9}.spinner{display:inline-block;height:25px;width:25px;border:2px solid #e0e9d3;border-top-color:#839c6b;border-radius:50%;animation:spin .9s linear infinite}.error-icon{display:inline-flex;align-items:center;justify-content:center;height:50px;width:50px;border-radius:50%;background:#f4eee1;color:#bba771}.error-icon svg{height:25px;width:25px}.empty-value{font-size:9px;color:#a9b39e;font-weight:400}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1600px){.topbar{padding-left:48px;padding-right:48px}main{padding-left:48px;padding-right:48px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 300px}.data-table td{padding-top:19px;padding-bottom:19px}}
@media(max-width:1250px){.sidebar{width:198px;padding-left:13px;padding-right:13px}.workspace{margin-left:198px;width:calc(100% - 198px)}.brand{margin-left:11px;font-size:18px;gap:9px}.topbar{padding:0 27px;gap:19px}.desktop-crumb{display:none}.global-search{width:250px}main{padding:20px 27px 30px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 242px;gap:15px}.kpi-grid{gap:12px}.kpi-card{padding:17px 16px 14px}.data-table th,.data-table td{padding-left:10px;padding-right:10px}.data-table .hide-mid{display:none}.product-cell{min-width:140px}.product-name{font-size:10px}.product-thumb{min-width:30px;width:30px;height:33px}.rule-panel,.distribution-panel,.delivery-card{padding-left:16px;padding-right:16px}.app-footer{padding-left:27px;padding-right:27px}.toast{left:calc(50% + 99px)}}
@media(max-width:1050px){.sidebar{width:178px}.workspace{margin-left:178px;width:calc(100% - 178px)}.nav-item{padding-left:12px;font-size:11px;gap:10px}.brand{margin-left:7px;gap:8px;font-size:17px}.brand small{font-size:8px;letter-spacing:1.5px}.brand-mark{height:35px;width:34px}.topbar{gap:15px;padding:0 22px}.topbar-actions{gap:9px}.global-search{width:230px}.role-picker select{font-size:10px;max-width:94px}.trial-badge{font-size:8px;padding:4px 5px}main{padding-left:22px;padding-right:22px}.page-heading h1{font-size:24px}.dashboard-grid{grid-template-columns:minmax(0,1fr)}.dashboard-side{grid-template-columns:1fr 1fr 1fr;gap:13px}.rule-panel .rule-legend{gap:7px}.lead-box{padding:8px 7px}.lead-box strong{font-size:20px}.delivery-title{gap:6px}.delivery-title strong{font-size:10px}.delivery-icon{width:23px;min-width:23px;height:23px}.delivery-footer{flex-wrap:wrap;gap:7px}.distribution-legend{grid-template-columns:1fr}.settings-layout{grid-template-columns:1fr}.settings-aside{grid-template-columns:1fr 1fr}.data-table .hide-mid{display:table-cell}.toast{left:calc(50% + 89px)}}
@media(max-width:760px){.sidebar{display:none}.workspace{margin:0;width:100%}.topbar{height:66px;padding:0 18px;gap:10px;flex-wrap:wrap}.breadcrumb{font-size:12px;gap:8px}.breadcrumb strong{font-size:13px}.mobile-brand{display:flex;color:#769368}.mobile-brand svg{height:23px;width:23px}.global-search{order:3;width:100%;margin:0;height:35px;background:#f0f4ed}.topbar:has(.global-search){height:112px;padding-bottom:12px;padding-top:10px;align-content:space-between}.topbar-actions{margin-left:auto;gap:10px}.trial-badge{font-size:8px}.role-picker select{font-size:10px;max-width:91px}.avatar{width:25px;height:25px;font-size:9px}.search-hint{display:none}main{padding:17px 17px 22px}.snapshot-banner{font-size:9px;padding:8px 10px;margin-bottom:23px;line-height:1.8}.snapshot-banner svg{width:13px;height:13px;margin-top:2px}.page-heading{align-items:flex-start;margin-bottom:21px;gap:9px}.page-heading h1{font-size:23px;letter-spacing:-.7px;line-height:1.45;margin-bottom:8px}.eyebrow{font-size:8px;letter-spacing:1px;margin-bottom:7px}.page-heading p{font-size:10px;line-height:1.9;max-width:260px}.heading-actions{gap:6px;flex-direction:column;padding-top:16px}.heading-actions .button{font-size:8px;height:29px;padding:0 7px}.heading-actions .button svg{width:12px;height:12px}.heading-actions .button-light{display:none}.kpi-grid{gap:10px;grid-template-columns:1fr 1fr;margin-bottom:19px}.kpi-card{padding:14px 15px 12px;border-radius:9px}.kpi-top{font-size:10px}.kpi-icon{height:22px;width:22px;border-radius:6px}.kpi-icon svg{height:13px;width:13px}.kpi-number{font-size:30px;letter-spacing:-1px;margin:6px 0}.kpi-bottom{font-size:8px}.dashboard-grid{gap:17px}.panel-heading{padding:17px 16px 14px}.panel-heading h2{font-size:13px}.panel-heading p{font-size:9px;margin-top:6px}.panel-heading .text-button{font-size:9px}.dashboard-side{grid-template-columns:1fr 1fr;gap:12px}.delivery-card{grid-column:1/-1;padding:16px}.delivery-title strong{font-size:11px}.delivery-card p{margin:9px 0 12px;font-size:10px}.delivery-footer{flex-wrap:nowrap}.delivery-card .connection-tag{font-size:8px}.rule-panel,.distribution-panel{padding:16px 14px}.side-heading h2{font-size:11px}.lead-summary{gap:6px}.lead-box{padding:8px 6px}.lead-box small{font-size:8px}.lead-box strong{font-size:19px}.lead-box strong span{font-size:8px;margin-left:2px}.plus-sign{font-size:11px}.rule-legend>div{font-size:9px}.subtle-badge{display:none}.distribution-legend{grid-template-columns:1fr;gap:10px}.distribution-bar{margin-bottom:17px}.data-table{display:none}.mobile-product-list{display:block}.mobile-product{padding:16px;border-top:1px solid #edf2e7;cursor:pointer}.mobile-product:hover{background:#f7faf1}.mobile-product-top{display:flex;align-items:flex-start;gap:10px}.mobile-product-top .product-cell{flex:1;min-width:0;gap:9px}.mobile-product-top .product-name{font-size:11px;max-width:210px}.mobile-product-top .product-code{font-size:8px;margin-top:3px}.mobile-product-top .product-thumb{width:34px;height:36px;min-width:34px}.mobile-product-top>.status-badge{font-size:8px;margin-top:3px;padding:4px 6px}.mobile-product-data{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:14px;padding-left:43px}.mobile-product-data>div>span{font-size:8px;color:#a2b08f;display:block;margin-bottom:7px}.mobile-product-data strong{font-size:13px;color:#788e61;font-weight:550}.mobile-product-data .cover-value.urgent{color:#c8806e}.mobile-product-data .cover-value.warning{color:#b6a061}.mobile-product-data .num-unit{font-size:8px}.mobile-product-data .empty-value{font-size:9px;color:#a5b291}.mobile-product .row-chevron{position:absolute;right:15px;margin-top:26px}.panel-note{font-size:8px;padding:10px 16px;align-items:flex-start}.panel-note svg{margin-top:2px;min-width:12px}.source-strip{font-size:8px;gap:8px 14px;margin-top:16px}.app-footer{font-size:8px;padding:15px 17px 88px;gap:12px;line-height:1.8}.mobile-nav{display:flex;position:fixed;bottom:0;inset-inline:0;padding:9px 15px calc(8px + env(safe-area-inset-bottom));background:#fffef9f5;border-top:1px solid #e5ecda;z-index:25;backdrop-filter:blur(15px);height:calc(64px + env(safe-area-inset-bottom));justify-content:space-around}.mobile-nav>button{background:none;border:0;color:#a4b292;padding:0 23px;display:grid;justify-items:center;gap:4px;font-size:9px;min-width:70px}.mobile-nav>button svg{height:20px;width:20px}.mobile-nav>button.active{color:#628a4f;font-weight:600}.mobile-nav>button.active svg{stroke-width:2}.products-tools{display:block;padding:14px 13px 12px}.filter-tabs{gap:4px;overflow-x:auto;flex-wrap:nowrap;padding-bottom:7px;margin-bottom:10px;scrollbar-width:none}.filter-tabs::-webkit-scrollbar{display:none}.filter-tab{font-size:9px;padding:7px 8px}.filter-tab .filter-count{font-size:8px;margin-left:4px}.sort-picker{font-size:9px;justify-content:flex-end}.sort-picker select{font-size:9px;max-width:174px}.results-summary{padding:0 16px 13px;font-size:9px;line-height:1.9}.search-tag{display:inline-flex;margin-left:0;margin-top:4px;max-width:100%}.pagination{padding:13px 15px;font-size:9px;gap:6px}.pagination-actions{gap:7px}.page-count{font-size:9px;min-width:42px}.bottom-note{font-size:9px}.settings-layout{gap:16px}.settings-main,.settings-aside{gap:16px}.settings-aside{grid-template-columns:1fr}.settings-panel{padding:18px}.settings-panel h2{font-size:13px}.section-description{font-size:9px;margin-bottom:17px}.field-grid{gap:12px}.field-label{font-size:10px}.field-control input{font-size:17px;padding:11px}.field-help{font-size:8px}.rule-example{font-size:9px;padding:11px}.settings-savebar{position:sticky;bottom:76px;z-index:5;background:#f4f8edf5;border:1px solid #e3ebd6;border-radius:8px;padding:12px;flex-wrap:wrap;backdrop-filter:blur(10px)}.settings-savebar p{font-size:8px;flex:1;min-width:115px}.settings-buttons{gap:6px}.settings-buttons .button{font-size:9px;height:32px;padding:0 10px}.style-rule-list{max-height:325px}.style-rule-info strong{font-size:10px}.style-rule-info small{font-size:8px}.outline-badge{font-size:8px;padding:5px 6px;white-space:nowrap}.settings-role-note{font-size:9px;padding:10px 12px}.detail-dialog{width:100vw;border-radius:13px 13px 0 0;margin-top:12px;height:calc(100dvh - 12px)}.drawer-head{padding:18px 19px 15px}.drawer-content{padding:21px 19px calc(24px + env(safe-area-inset-bottom))}.detail-product h2{font-size:20px}.detail-product p{font-size:9px}.detail-product .product-thumb{height:46px;width:44px;min-width:44px}.detail-product{gap:11px}.detail-stats{gap:6px}.detail-stat{padding:11px 7px}.detail-stat strong{font-size:18px}.detail-stat span{font-size:8px}.detail-days{font-size:36px}.detail-status-bottom{gap:12px;font-size:8px;flex-wrap:wrap}.detail-block{padding:16px}.recommendation-text{font-size:11px}.explanation-tag{font-size:7px}.avg-row{grid-template-columns:65px 1fr 48px;gap:7px}.detail-remark{font-size:8px}.drawer-actions .button{font-size:10px;height:38px}.notice-heading{padding:20px}.notice-heading h2{font-size:14px}.notice-body{padding:19px 20px}.notice-bottom{padding:0 20px 20px}.notice-summary{font-size:10px}.notice-line strong{font-size:10px}.toast{left:50%;bottom:88px;font-size:11px;min-width:180px;padding:11px 15px}.load-state{padding-top:90px}.page-heading>button.button{font-size:9px;height:31px;padding:0 9px;margin-top:22px}.page-heading>button.button svg{height:13px;width:13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.scope-selector{display:flex;align-items:center;gap:5px;margin:0 0 17px;flex-wrap:wrap}.scope-button{border:1px solid transparent;border-radius:6px;padding:7px 11px;font-size:11px;background:transparent;color:#7b8c74;white-space:nowrap}.scope-button span{font-size:10px;opacity:.7;margin-left:5px}.scope-button.active{color:#40613c;background:#e8f0df;border-color:#dce8d1;font-weight:550}.products-scope-row{padding:17px 20px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.products-scope-row .scope-selector{margin:0}.scope-caption{font-size:10px;color:#8c9a83}.snapshot-banner{font-size:11px}.page-heading p,.source-strip,.bottom-note,.section-description{font-size:11px}.data-table th{font-size:10px;color:#7e8d75}.data-table td{font-size:12px}.product-name{font-size:12px;color:#415b3c}.product-code{font-size:10px;color:#8a9b7f}.kpi-top{font-size:12px}.kpi-bottom{font-size:10px;color:#86957c}.panel-heading p{font-size:11px;color:#89977f}.panel-note{font-size:10px;color:#899b7a}.field-help,.settings-savebar p{font-size:10px;color:#8c9b7f}.field-label,.text-field>span{font-size:12px}.style-rule-info strong{font-size:12px}.style-rule-info small{font-size:10px;color:#8da17a}.results-summary{font-size:11px;color:#7b8f6c}.status-badge{font-size:10px}.detail-block h3{font-size:12px}.detail-product p,.detail-remark,.detail-status-bottom,.notice-meta{font-size:10px}.detail-stat span{font-size:10px}.recommendation-text{font-size:12px}.empty-state p{font-size:12px}.settings-role-note{font-size:11px}.detail-status-top{font-size:11px}.detail-stat strong{font-size:20px}.schedule-row{font-size:11px}.schedule-row strong{font-size:12px}.rule-legend>div{font-size:11px}.style-days input{font-size:12px}.avg-row{font-size:10px}.avg-row strong{font-size:11px}.trend-line{font-size:10px}
@media(max-width:1250px) and (min-width:761px){.product-name{font-size:11px}.data-table td{font-size:11px}.rule-legend>div{font-size:10px}}
@media(max-width:760px){.scope-selector{gap:4px;margin-bottom:15px}.scope-button{font-size:10px;padding:7px 9px}.scope-button span{font-size:9px}.products-scope-row{padding:15px 14px 0;gap:8px}.scope-caption{font-size:9px}.products-tools{padding-top:11px}.snapshot-banner{font-size:10px}.page-heading p,.section-description{font-size:11px}.kpi-top{font-size:11px}.kpi-bottom{font-size:9px}.panel-heading p{font-size:10px}.panel-note{font-size:9px}.source-strip,.bottom-note{font-size:9px}.mobile-product-top .product-name{font-size:13px;color:#415c3a}.mobile-product-top .product-code{font-size:10px;color:#8a9d7d}.mobile-product-data>div>span{font-size:10px;color:#8a9e7a}.mobile-product-data strong{font-size:15px}.mobile-product-top>.status-badge{font-size:9px}.results-summary{font-size:10px}.filter-tab{font-size:10px}.field-label{font-size:11px}.settings-role-note{font-size:10px}.detail-stat span{font-size:9px}.detail-stat strong{font-size:19px}.style-rule-info strong{font-size:11px}.style-rule-info small{font-size:9px}.detail-product p,.detail-remark{font-size:10px}.detail-status-bottom{font-size:9px}.avg-row{font-size:10px}.avg-row strong{font-size:10px}}

/* Virtual catalog entries do not participate in inventory risk. */
.status-badge.notApplicable{color:#66756c;background:#edf0ed}.dot.notApplicable,.distribution-segment.notApplicable{background:#98a59d}.cover-value.notApplicable{color:#7b877f}

.breakdown-table{width:100%;border-collapse:collapse;font-size:12px;margin-top:14px}.breakdown-table th,.breakdown-table td{padding:10px 5px;text-align:right;border-bottom:1px solid #edf0eb;font-variant-numeric:tabular-nums}.breakdown-table th:first-child{text-align:left;font-weight:500}.breakdown-table thead{color:#79877d}.breakdown-table tbody tr:last-child{color:#24583f;background:#f1f6ed;font-weight:700}

/* Warehouse scope and per-warehouse stock details. */
.warehouse-scope-line{display:flex;align-items:flex-start;flex-wrap:wrap;gap:5px 12px;max-width:100%;font-size:11px;line-height:1.9;color:#7a8e6d;overflow-wrap:anywhere;margin:10px 0 0}
.warehouse-scope-line>span,.warehouse-scope-line>div{min-width:0;max-width:100%;overflow-wrap:anywhere}
.warehouse-scope-line strong{font-weight:600;color:#537646;white-space:normal}
.warehouse-scope-line svg{height:13px;width:13px;margin-top:3px;flex-shrink:0}
.warehouse-scope-line .warehouse-names{flex:1 1 240px}
.warehouse-summary{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:7px 14px;padding:10px 12px;background:#f1f6eb;border:1px solid #e2ead9;border-radius:7px;font-size:11px;line-height:1.9;color:#839774;margin:0 0 9px;max-width:100%;overflow-wrap:anywhere}
.warehouse-summary>span,.warehouse-summary>div{min-width:0;max-width:100%}
.warehouse-summary strong{color:#547449;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.warehouse-note{font-size:10px;line-height:1.95;color:#8fa180;margin:10px 0 0;max-width:100%;overflow-wrap:anywhere}
.warehouse-note strong{color:#6e865e;font-weight:550}
.warehouse-table{width:100%;max-width:100%;table-layout:fixed;border-collapse:collapse;margin:8px 0 0;font-size:11px;color:#788c68}
.warehouse-table th,.warehouse-table td{padding:9px 6px;border-bottom:1px solid #edf2e6;text-align:right;vertical-align:top;font-variant-numeric:tabular-nums;line-height:1.65;overflow-wrap:anywhere;word-break:normal;white-space:normal}
.warehouse-table th{font-size:10px;font-weight:500;color:#94a586;background:#fafcf7}
.warehouse-table th:first-child,.warehouse-table td:first-child{width:40%;text-align:left;padding-left:9px;overflow-wrap:anywhere;word-break:break-word}
.warehouse-table th:not(:first-child),.warehouse-table td:not(:first-child){width:20%}
.warehouse-table th:last-child,.warehouse-table td:last-child{padding-right:9px}
.warehouse-table td:last-child{color:#5b7d4a;font-weight:600}
.warehouse-table tbody tr:last-child td{border-bottom:0}
.warehouse-table tfoot td{background:#f1f6eb;border-top:1px solid #dfe9d5;border-bottom:0;font-weight:600;color:#527146}
@media(max-width:760px){.warehouse-scope-line{font-size:10px;line-height:1.9;gap:4px 8px}.warehouse-scope-line .warehouse-names{flex-basis:100%}.warehouse-summary{padding:9px 10px;gap:5px 10px;font-size:10px}.warehouse-summary strong{font-size:12px}.warehouse-note{font-size:9px;line-height:1.95}.warehouse-table{font-size:10px}.warehouse-table th,.warehouse-table td{padding:8px 4px;line-height:1.7}.warehouse-table th{font-size:9px}.warehouse-table th:first-child,.warehouse-table td:first-child{width:40%;padding-left:6px}.warehouse-table th:last-child,.warehouse-table td:last-child{padding-right:6px}}

/* Separate actual stock from available stock; keep unknown availability visible. */
.warehouse-scope-line .quality-summary,.warehouse-quality-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 14px;max-width:100%;font-size:11px;line-height:1.9;color:#7d8e70;overflow-wrap:anywhere}
.warehouse-scope-line .quality-summary>span,.warehouse-quality-summary>span{min-width:0;max-width:100%}
.warehouse-scope-line .quality-known,.warehouse-quality-summary .quality-known{color:#53794a}
.warehouse-scope-line .quality-pending,.warehouse-quality-summary .quality-pending{color:#aa915e}
.stock-pair{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:0;line-height:1.5;font-variant-numeric:tabular-nums}
.stock-actual{color:#6d7f62;font-variant-numeric:tabular-nums}
.stock-available{color:#4e7443;font-weight:600;font-variant-numeric:tabular-nums}
.stock-unverified{color:#a18d63;font-size:10px;font-weight:400;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:760px){.mobile-product-data{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 18px}.mobile-product-data>div{min-width:0;max-width:100%}.mobile-product-data strong{display:block;max-width:100%;overflow-wrap:anywhere;line-height:1.5}.mobile-product-data>div>span{line-height:1.6;margin-bottom:5px}.warehouse-scope-line .quality-summary,.warehouse-quality-summary{font-size:10px;gap:3px 10px}.stock-unverified{font-size:9px}.stock-pair{gap:3px}}

.detail-stats.period-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.drawer-content>.stock-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;align-items:stretch;gap:12px;padding-top:18px;padding-bottom:12px}.drawer-content>.stock-pair>div{display:flex;min-width:0;flex-direction:column;gap:8px;padding:14px;background:#f6f8f3;border-radius:10px}.drawer-content>.stock-pair strong{font-size:25px}.drawer-content>.stock-pair span{font-size:12px;color:#788678}
/* Dedicated procurement lead-time controls; shared rule inputs keep their IDs. */
.lead-times-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);gap:20px;align-items:start}.lead-times-layout>.settings-panel{min-width:0}.lead-times-layout .style-rule-list{max-height:510px}.settings-system-summary{max-width:620px}.lead-times-layout .field-grid{grid-template-columns:1fr}.lead-times-layout .settings-panel h2{margin-top:0}
@media(max-width:1100px){.lead-times-layout{grid-template-columns:1fr}.lead-times-layout .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.lead-times-layout{gap:16px}.lead-times-layout .style-rule-list{max-height:390px}.mobile-nav>button{flex:1;min-width:0;padding:0 4px}.settings-system-summary{max-width:none}}

.catalog-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:20px 22px 0; }
.catalog-toolbar .style-search { flex:1 1 240px; margin:0; }
.catalog-toolbar .button { white-space:nowrap; }
.catalog-summary { min-height:44px; padding:13px 22px 10px; color:#687c60; font-size:12px; }
.catalog-table { border-collapse:collapse; width:100%; text-align:left; font-size:13px; }
.catalog-table th { background:#f6f8f3; color:#63765c; font-weight:600; }
.catalog-table td,.catalog-table th { padding:12px 16px; border-top:1px solid #edf1ea; }
.catalog-table td:first-child,.catalog-table th:first-child { padding-left:22px; }
.catalog-table td:first-child { width:49%; }
.catalog-table td { overflow-wrap:anywhere; }
.catalog-table td strong { color:#2a4838; font-weight:600; }
.catalog-table small { display:block; color:#677c60; margin-top:4px; }
.catalog-code { color:#456043; }
.catalog-state { white-space:nowrap; font-size:11px; color:#7b7064; }
.catalog-state[data-active="1"] { color:#497442; }
.catalog-cost { display:flex; align-items:center; gap:8px; }
.catalog-cost label { display:flex; align-items:center; gap:5px; padding:0 8px; color:#687c60; border:1px solid #dce6d6; border-radius:5px; background:#fff; }
.catalog-cost input { width:90px; min-width:0; border:0; background:none; color:#263b30; height:32px; font:inherit; }
.catalog-cost .button { font-size:11px; height:34px; padding:0 10px; white-space:nowrap; }
.catalog-empty { padding:8px 22px 24px; color:#687c60; }
.catalog-panel [hidden] { display:none; }
.site-filing-link { color:#5f755b; text-decoration:underline; text-underline-offset:3px; }
.login-filing { display:none; }
body.auth-pending:has(.auth-gate) .login-filing { display:block; text-align:center; padding:16px; font-size:12px; }
body.auth-pending .auth-gate { min-height:calc(100dvh - 50px); }
@media(max-width:760px) {
  .catalog-toolbar { padding:14px 14px 0; gap:8px; }
  .catalog-summary { padding-inline:14px; }
  .catalog-table thead { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; }
  .catalog-table,.catalog-table tbody { display:block; }
  .catalog-table tr { display:grid; grid-template-columns:1fr auto; padding:11px 14px; gap:5px 10px; border-top:1px solid #edf1ea; align-items:center; }
  .catalog-table td,.catalog-table td:first-child { padding:0; width:auto; border:0; min-width:0; }
  .catalog-table td:first-child { grid-column:1; }
  .catalog-table td:nth-child(2) { grid-column:1; grid-row:2; }
  .catalog-table td:nth-child(3) { grid-column:2; grid-row:1; justify-self:end; }
  .catalog-table td:nth-child(4) { grid-column:2; grid-row:2; }
  .catalog-cost input { width:66px; }
}

.sales-cost-query { padding:20px; }
.sales-cost-form { display:flex; flex-wrap:wrap; align-items:end; gap:12px; }
.sales-cost-form label { display:grid; gap:7px; color:#425b4e; font-size:12px; min-width:0; }
.sales-cost-form input {
  width:100%; min-width:0; min-height:42px; padding:8px 10px;
  border:1px solid #dce6df; border-radius:7px; background:#fff; color:var(--ink);
  font-size:16px; font-variant-numeric:tabular-nums;
}
.sales-cost-form .button { min-height:42px; }
.sales-cost-form .button:disabled { cursor:wait; opacity:.7; }
.sales-cost-status { margin:12px 0 0; color:#526a5b; font-size:12px; }
.sales-cost-status:empty { margin:0; }
.sales-cost-metrics {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px;
  margin:16px 0;
}
.sales-cost-metric { min-width:0; padding:20px; }
.sales-cost-metric dt { color:#425b4e; font-size:13px; font-weight:600; }
.sales-cost-metric dd { margin:6px 0 0; }
.sales-cost-metric dd:first-of-type {
  color:var(--green-dark); font-size:clamp(22px,2.4vw,30px); font-weight:660;
  font-variant-numeric:tabular-nums; overflow-wrap:anywhere;
}
.sales-cost-caption { color:#526a5b; font-size:12px; line-height:1.6; }
.sales-cost-warning { color:#945215; }
.sales-cost-table { width:100%; border-collapse:collapse; text-align:left; font-size:13px; }
.sales-cost-table th,.sales-cost-table td { padding:11px 15px; border-top:1px solid var(--line); overflow-wrap:anywhere; }
.sales-cost-table th { background:#f6f8f3; color:#425b4e; font-weight:600; }
.sales-cost-table th:first-child,.sales-cost-table td:first-child { padding-left:20px; width:47%; }
.sales-cost-table th:last-child,.sales-cost-table td:last-child { text-align:right; width:22%; font-variant-numeric:tabular-nums; }
.sales-cost-table small { display:block; margin-top:4px; color:#526a5b; }
@media(max-width:900px) {
  .sales-cost-metrics { grid-template-columns:1fr; gap:10px; }
}
@media(max-width:760px) {
  .sales-cost-query,.sales-cost-metric { padding:14px; }
  .sales-cost-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .sales-cost-form input { padding-inline:6px; }
  .sales-cost-form .button { grid-column:1 / -1; }
  .sales-cost-missing .panel-heading { padding:14px; }
  .sales-cost-table { table-layout:fixed; font-size:12px; }
  .sales-cost-table th,.sales-cost-table td { padding-inline:8px; }
  .sales-cost-table th:first-child,.sales-cost-table td:first-child { padding-left:14px; }
  .sales-cost-table th:last-child,.sales-cost-table td:last-child { width:25%; }
}
@media(max-width:350px) {
  .sales-cost-form { grid-template-columns:1fr; }
}

.sales-cost-shops { margin-bottom:16px; }
.sales-cost-shops-table { table-layout:fixed; }
.sales-cost-shops-table th,.sales-cost-shops-table td { vertical-align:top; }
.sales-cost-shops-table :is(th,td):first-child { width:23%; }
.sales-cost-shops-table :is(th,td):last-child { width:26%; text-align:left; }
.sales-cost-shops-table .shop-name { background:#fff; color:var(--green-dark); }
.sales-cost-shops-table .shop-name small { font-weight:400; }
.sales-cost-shops-table .shop-amount { text-align:right; font-variant-numeric:tabular-nums; }
.sales-cost-shops .sales-cost-warning { color:#945215; }
.shop-mobile-label { display:none; }
.shop-carriers ul { display:flex; flex-wrap:wrap; gap:5px; list-style:none; padding:0; margin:7px 0 0; }
.shop-carriers li {
  display:flex; flex-wrap:wrap; gap:0 5px; max-width:100%; padding:3px 7px;
  border-radius:5px; background:var(--green-light); color:var(--green-dark); font-size:12px;
}
.shop-carriers b { font-variant-numeric:tabular-nums; }
@media(max-width:960px) {
  .sales-cost-shops .panel-heading { padding:14px; }
  .sales-cost-shops-table thead {
    position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%);
  }
  .sales-cost-shops-table,.sales-cost-shops-table tbody { display:block; }
  .sales-cost-shops-table tbody tr {
    display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px;
    padding:13px 14px; border-top:1px solid var(--line);
  }
  .sales-cost-shops-table tbody :is(th,td),
  .sales-cost-shops-table tbody :is(th,td):first-child,
  .sales-cost-shops-table tbody :is(th,td):last-child {
    min-width:0; width:auto; padding:0; border:0; text-align:left;
  }
  .sales-cost-shops-table .shop-name,.sales-cost-shops-table .shop-carriers { grid-column:1 / -1; }
  .shop-mobile-label { display:block; margin-bottom:3px; font-size:11px; color:#526a5b; }
  .shop-carriers .shop-mobile-label { display:inline; margin:0 6px 0 0; }
}
