:root{color:#243247;font-synthesis:none;--blue:#0072ce;--border:#dce5ef;background:#f4f7fb;font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--border);color:#33465e;background:#fff;border-radius:10px;min-height:42px;padding:10px 14px}button:hover{border-color:var(--blue);background:#edf6ff}button:disabled{opacity:.55;cursor:wait}.primary{background:var(--blue);color:#fff;border-color:var(--blue)}input,select,textarea{border:1px solid var(--border);width:100%;min-width:0;height:44px;color:inherit;background:#fff;border-radius:9px;padding:10px 12px}input[type=date]{appearance:none;height:44px;min-height:44px}textarea{resize:vertical;height:96px}input[type=checkbox]{width:18px;height:18px;accent-color:var(--blue);flex-shrink:0}label{color:#53647a;flex-direction:column;gap:7px;min-width:0;font-size:14px;display:flex}h1{letter-spacing:-.7px;margin:0 0 10px;font-size:28px}h2{margin:0 0 20px;font-size:18px}p{line-height:1.6}small{color:#748399}aside{border-right:1px solid var(--border);background:#fff;flex-direction:column;gap:28px;width:244px;padding:28px 20px;display:flex;position:fixed;inset:0 auto 0 0}aside>small{margin-top:auto}.brand{align-items:center;gap:13px;font-size:20px;font-weight:750;display:flex}.brand b{color:var(--blue);font-size:38px}.brand small{letter-spacing:2px;margin-top:3px;font-size:10px;display:block}aside nav{flex-direction:column;gap:5px;display:flex}aside nav button{text-align:left;border:0;font-size:14px}.selected,[aria-pressed=true],[aria-current=page]{color:var(--blue);background:#e9f3ff;font-weight:650}.workspace{min-width:0;margin-left:244px}header{border-bottom:1px solid var(--border);background:#fff;justify-content:space-between;align-items:center;gap:12px;height:80px;padding:16px 32px;display:flex}main{max-width:1700px;margin:auto;padding:32px}.row,.actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.row{justify-content:space-between;margin-bottom:20px}.row>input{flex:1;min-width:180px}.row p{color:#748399;margin:0}.end{justify-content:flex-end;margin-top:20px}.panel{border:1px solid var(--border);background:#fff;border-radius:16px;min-width:0;margin-bottom:20px;padding:24px}.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.stats strong{margin:12px 0;font-size:32px;display:block}.stats small{line-height:1.5;display:block}.stats span{color:#748399}.fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:20px;display:grid}.full{grid-column:1/-1}.checks{flex-wrap:wrap;gap:14px;display:flex}.check{color:#33465e;flex-direction:row;align-items:center;gap:9px;min-height:36px;display:flex}.tabs{flex-wrap:wrap;gap:8px;margin:20px 0;display:flex}.tabs button{border-color:#0000}.table-wrap{max-width:100%}table{border-collapse:collapse;table-layout:fixed;width:100%}th,td{text-align:left;vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid #e8edf3;padding:14px 10px;font-size:14px}th{color:#748399;background:#f6f8fb;font-weight:500}td input{font-size:14px}.entry-table th:first-child,.entry-table td:first-child{width:64px}.entry-table th:nth-child(2){width:42%}.entry-table td:first-child button{padding:5px 12px}.product-grid{grid-template-columns:repeat(var(--columns),minmax(0,1fr));gap:16px;display:grid}.product-card{border:1px solid var(--border);overflow-wrap:anywhere;border-radius:13px;min-width:0;padding:14px}.product-card>strong,.product-card>small{margin-top:12px;display:block}.product-image{aspect-ratio:1.4;color:#b6c9dd;background:#eff4fa;border-radius:10px;place-items:center;display:grid;position:relative}.product-image img{object-fit:contain;width:100%;height:100%;position:absolute}.code{background:var(--blue);color:#fff;border-radius:50%;place-items:center;width:35px;height:35px;font-size:11px;font-weight:700;display:grid;position:absolute;bottom:8px;right:8px}.code.cn{background:#d84b58}.counts{flex-direction:column;gap:8px;margin-top:15px;font-size:12px;display:flex}.counts span{flex-wrap:wrap;justify-content:space-between;gap:4px;display:flex}.status{color:#0072ce;background:#e9f3ff;border-radius:20px;padding:4px 8px;font-size:12px;display:inline-block}.amber{color:#986600;background:#fff1d5}.notice{color:#315c84;background:#eaf4ff;border-radius:12px;margin-bottom:20px;padding:15px 20px}.autocomplete{position:relative}.suggestions{border:1px solid var(--border);z-index:20;background:#fff;border-radius:10px;width:max(100%,260px);max-width:min(500px,80vw);max-height:260px;padding:5px;position:absolute;bottom:calc(100% + 6px);left:0;overflow-y:auto;box-shadow:0 8px 30px #20344e30}.suggestions button{text-align:left;border:0;width:100%;display:block}.suggestions .highlight{color:var(--blue);background:#e9f3ff}[hidden]{display:none!important}.preserve{white-space:pre-line}.bottom{display:none}#modal{z-index:100;background:#172e4b70;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}#modal>section{background:#fff;border-radius:18px;width:min(900px,100%);max-height:90dvh;padding:30px;position:relative;overflow:auto}.close{float:right;margin-left:15px}#message{z-index:200;border-radius:12px;max-width:min(550px,90vw);padding:18px 24px;position:fixed;bottom:25px;right:25px;box-shadow:0 6px 30px #0002}.success{color:#14653e;background:#e6f7ee}.error{color:#a82c36;background:#fff0f0}.auth{border:1px solid var(--border);background:#fff;border-radius:18px;max-width:520px;margin:8vh auto}.auth form{gap:20px;margin:25px 0;display:grid}.auth .brand{margin-bottom:28px}:focus-visible{outline-offset:2px;outline:3px solid #72b9f2}@media (width<=1000px) and (width>=701px){aside{width:200px;padding:20px 12px}.workspace{margin-left:200px}main{padding:20px}header{padding:15px 20px}.product-grid{gap:8px}.product-card{padding:8px}.product-card strong{font-size:13px}}@media (width<=700px){aside{display:none}.workspace{margin-left:0}header{flex-wrap:wrap;height:auto;min-height:68px;padding:14px 16px}header .actions{gap:5px}header button{min-height:34px;padding:7px;font-size:11px}main{padding:20px 14px calc(105px + env(safe-area-inset-bottom))}h1{font-size:25px}.panel{border-radius:14px;padding:16px}.fields{grid-template-columns:minmax(0,1fr);gap:16px}.stats{gap:7px}.stats .panel{padding:12px 9px}.stats span{font-size:12px}.stats strong{font-size:23px}.stats small{overflow-wrap:anywhere;font-size:10px}.row{align-items:stretch}.row>input{flex-basis:100%;width:100%;min-width:0}.tabs{gap:5px}.tabs button{padding:8px 10px;font-size:12px}.actions{gap:8px}.actions label{width:100%}.product-grid{grid-template-columns:repeat(min(var(--columns),2),minmax(0,1fr));gap:10px}.product-card{padding:10px}.product-card strong{font-size:14px}.bottom{padding:8px 8px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--border);z-index:60;background:#fff;grid-template-columns:repeat(4,minmax(0,1fr));min-height:72px;display:grid;position:fixed;bottom:0;left:0;right:0}.bottom button{border:0;padding:12px 4px;font-size:12px}table,tbody,tr,td{width:100%;display:block}thead{display:none}tr{border-bottom:1px solid var(--border);padding:12px 0}td{border:0;grid-template-columns:minmax(90px,34%) minmax(0,1fr);gap:10px;padding:8px 0;font-size:14px;display:grid}td:before{content:attr(data-label);color:#748399;padding-top:3px;font-size:12px}.entry-table th:first-child,.entry-table td:first-child{width:100%}.entry-table td:nth-child(2){display:block}.entry-table td:nth-child(2):before{margin-bottom:6px;display:block}.entry-table td:first-child{justify-content:flex-start;display:flex}.entry-table td:first-child:before{display:none}.entry-table td:first-child button{min-height:30px}#modal{padding:10px}#modal>section{max-height:94dvh;padding:20px}#message{bottom:calc(90px + env(safe-area-inset-bottom));right:14px}.auth{margin:20px 14px;padding:24px 20px}input,select,textarea{font-size:16px}.suggestions{width:100%;max-width:100%}.route-matrix td{grid-template-columns:minmax(100px,50%) minmax(0,1fr)}}.minirow,.layoutrow{border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:12px;padding:14px 0;display:flex}.minirow>label,.minirow>span{flex:1;min-width:160px}.layoutrow>label:first-of-type{flex:1;min-width:180px}details{border:1px solid var(--border);border-radius:10px;margin:16px 0;padding:16px}summary{cursor:pointer;margin-bottom:14px;font-weight:600}.barcode-directory th:first-child{width:65px}.barcode-directory th:nth-child(5){width:26%}.barcode-directory svg{width:100%;min-width:0;max-width:360px;height:auto;display:block}.barcode-directory td button{margin:0 4px 6px 0}.barcode-directory td .check{font-size:0}.barcode-directory input[type=checkbox]{font-size:initial}@media (width<=700px){.barcode-directory td[data-label=Barcode\ image]{display:block}.barcode-directory td[data-label=Barcode\ image]:before{margin-bottom:8px;display:block}.barcode-directory svg{max-width:100%}}:root{color:#243044;--border:#dfe6ef;background:#f5f6fa}header{height:72px}.header-title{align-items:center;gap:16px;min-width:0;display:flex}.header-logo{color:#0072ce;letter-spacing:-3px;font-size:30px;font-weight:800}.header-title strong{font-size:18px}.profile-avatar{color:#0072ce;background:#eaf3fd;border:1px solid #d0e1f5;border-radius:50%;width:42px;min-width:42px;height:42px;padding:0;font-size:18px;font-weight:650}aside nav button{align-items:center;gap:13px;display:flex}.nav-icon{flex-shrink:0;justify-content:center;align-items:center;width:25px;font-size:23px;font-weight:400;line-height:1.2;display:inline-flex}.menu-group{margin:28px 0}.menu-group h3{text-transform:uppercase;letter-spacing:1.6px;color:#8490a1;margin:0 0 12px;font-size:11px;font-weight:700}.menu-group button{text-align:left;color:#59677b;background:0 0;border:0;border-radius:12px;align-items:center;gap:16px;width:100%;padding:14px 0;font-size:16px;display:flex}.menu-group button:hover,.menu-group button[aria-current=page]{color:#0072ce;background:#f0f6ff}.profile-actions{gap:10px;display:grid}.more-drawer h2{font-size:20px}.more-drawer .close{background:#f3f5f8;border:0}.more-drawer .menu-group:last-child{margin-bottom:0}@media (width<=700px){header{flex-wrap:nowrap;height:72px;min-height:72px;padding:14px 20px}.header-title{gap:16px}.header-title strong{font-size:16px}.profile-avatar{width:38px;min-width:38px;height:38px;min-height:38px;font-size:18px}main{padding:26px 16px calc(116px + env(safe-area-inset-bottom))}h1{margin-bottom:22px;font-size:27px;line-height:1.2}.panel{border-radius:16px;padding:17px}.bottom{padding:8px 8px calc(8px + env(safe-area-inset-bottom));z-index:120;min-height:80px}.bottom button{color:#7d8a9e;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:60px;padding:8px 2px;font-size:11px;font-weight:400;display:flex}.bottom .nav-icon{height:26px;font-size:24px}.bottom button[aria-current=page],.bottom button[aria-expanded=true]{color:#0072ce;background:#f0f6ff}.more-drawer{bottom:calc(80px + env(safe-area-inset-bottom))!important;z-index:110!important;background:#fff!important;align-items:stretch!important;padding:0!important}.more-drawer>section{overscroll-behavior:contain;height:100%;border-radius:0!important;width:100%!important;max-height:100%!important;padding:26px 28px 22px!important}.more-drawer .close{width:38px;height:38px;min-height:38px;padding:0;font-size:25px}.more-drawer h2{margin:4px 0 32px}.menu-group{margin:26px 0}.menu-group h3{margin-bottom:12px;font-size:11px}.menu-group button{min-height:48px;padding:14px 0;font-size:15px}.menu-group .nav-icon{width:22px;font-size:23px}.stats{gap:7px}.stats .panel{border-radius:14px;padding:16px 10px}.stats strong{font-size:25px}.tabs button{border-radius:12px}.row{gap:14px}}.location-tabs{margin-top:14px}.location-tabs button[aria-pressed=true]{color:#fff;background:#0072ce}.threshold-row{grid-template-columns:minmax(0,1fr) minmax(90px,.65fr) 42px;align-items:end;gap:12px;margin-bottom:14px;display:grid}.threshold-row button{padding:8px}.threshold-row label{min-width:0}@media (width<=700px){.threshold-row{grid-template-columns:minmax(0,1fr) minmax(85px,.6fr) 34px;gap:7px}.threshold-row input{padding:10px 7px}.location-tabs{flex-wrap:wrap}}.sort-controls{align-items:flex-end;margin:16px 0 20px}.sort-controls label{flex:1;min-width:190px;max-width:340px}@media (width<=700px){.sort-controls{gap:12px}.sort-controls label{flex-basis:100%;min-width:0;max-width:none}}.code-badge{color:#fff;background:#0072ce;border-radius:50%;justify-content:center;align-items:center;min-width:35px;height:35px;padding:3px;font-size:11px;font-weight:700;display:inline-flex}.code-badge.cn{background:#d84b58}.code-badge.kh{background:#0072ce}.code-badge.other{background:#69768a}.product-image>.code{background:0 0;padding:0}.manual-order-row small{margin-top:4px;display:block}.manual-order-row{border-bottom:1px solid var(--border);padding-bottom:12px}.manual-order-row>div:first-child{flex:1;min-width:0}
