:root{font-family:Inter,"Microsoft YaHei",system-ui,sans-serif;color:#17243d;background:#f7f9fd;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.hidden{display:none!important}.muted{color:#71809b}.eyebrow{font-size:12px;font-weight:700;letter-spacing:.06em;color:#697b9b;text-transform:uppercase;margin:0 0 7px}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 10%,#eaf0ff 0,transparent 36%),radial-gradient(circle at 90% 90%,#edf8f5 0,transparent 30%),#f7f9fd}.auth-card{width:min(100%,440px);background:#fff;border:1px solid #e8edf5;border-radius:26px;padding:38px;box-shadow:0 22px 70px #1d315516;animation:rise .45s ease both}.auth-card h1{font-size:29px;margin:6px 0 8px}.auth-card>.muted{line-height:1.6;margin:0 0 25px}.brand-mark{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:#245cdf;color:#fff;box-shadow:0 8px 20px #245cdf38}.brand-mark svg{width:25px;height:25px}.brand-mark.small{width:34px;height:34px;border-radius:10px}.brand-mark.small svg{width:19px;height:19px}.tabs{display:flex;gap:4px;background:#f2f5fb;border-radius:12px;padding:4px;margin:20px 0}.tab{flex:1;border:0;border-radius:9px;background:transparent;padding:10px;color:#73809a;font-weight:700;transition:background .2s,color .2s,transform .2s}.tab.active{background:#fff;color:#235ad5;box-shadow:0 3px 10px #1d315514}.form-stack{display:grid;gap:15px}.form-stack label{display:grid;gap:7px;font-size:13px;font-weight:700;color:#3b4b65}.form-stack input,.form-stack select{width:100%;height:42px;padding:0 12px;background:#fff;border:1px solid #cfd8e7;border-radius:10px;color:#17243d;outline:0;transition:border .2s,box-shadow .2s}.form-stack input:focus,.form-stack select:focus{border-color:#4e7ce7;box-shadow:0 0 0 3px #4e7ce724}.form-stack input[type=checkbox]{width:17px;height:17px}.primary{background:#245cdf;color:#fff;border:1px solid #245cdf;border-radius:10px;padding:10px 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;box-shadow:0 7px 16px #245cdf25;transition:transform .18s,box-shadow .18s,background .18s}.primary:hover{background:#174cc7;transform:translateY(-2px);box-shadow:0 11px 22px #245cdf36}.primary:active{transform:scale(.98)}.primary.wide{width:100%;margin-top:6px}.primary svg{width:17px;height:17px}.secondary{background:#fff;color:#2f4f8c;border:1px solid #cfdaec;border-radius:10px;padding:9px 14px;font-weight:700;transition:transform .18s,background .18s}.secondary:hover{background:#f0f5ff;transform:translateY(-1px)}.message{min-height:18px;color:#bd354e;font-size:13px}.fineprint{border-top:1px solid #edf0f5;margin:20px 0 0;padding-top:15px;color:#8b96aa;font-size:12px;line-height:1.6}.shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff;border-right:1px solid #e6ebf3;padding:25px 14px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;padding:0 8px 25px;border-bottom:1px solid #edf1f7}.brand strong{font-size:16px;display:block}.brand small{display:block;color:#8290a7;font-size:11px;margin-top:2px}.nav-title{font-size:11px;letter-spacing:.09em;color:#98a4b5;margin:28px 14px 10px;font-weight:800}.sidebar nav{display:grid;gap:4px}.nav-item{width:100%;display:flex;align-items:center;gap:12px;border:0;border-radius:11px;color:#52627c;background:transparent;padding:12px 14px;text-align:left;font-size:14px;font-weight:650;transition:background .18s,color .18s,transform .18s}.nav-item:hover{background:#f2f6ff;color:#1e4fc3;transform:translateX(2px)}.nav-item.active{background:#eaf1ff;color:#2359d2}.sidebar-bottom{margin-top:auto;padding:13px 8px;border-top:1px solid #edf1f7;display:flex;align-items:center;gap:7px;color:#8290a3;font-size:12px}.status-dot{width:7px;height:7px;border-radius:100%;background:#29b681;box-shadow:0 0 0 3px #29b68122}.sidebar-bottom button{margin-left:auto;background:none;border:0;color:#245cdf;font-size:12px;font-weight:700}.main-area{min-width:0}.topbar{height:102px;background:#fff;border-bottom:1px solid #e7edf6;display:flex;align-items:center;justify-content:space-between;padding:18px 34px;gap:16px}.topbar h2{font-size:22px;letter-spacing:-.02em;margin:0}.top-actions{display:flex;align-items:center;gap:14px}.account-pill{border:1px solid #e2e8f3;background:#f8fafd;color:#546680;padding:9px 12px;border-radius:999px;font-size:12px}.content{padding:30px 34px 60px;max-width:1440px;margin:auto;outline:0;animation:fade .24s ease}.page-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:23px}.page-intro h3{font-size:20px;margin:0 0 4px}.page-intro p{color:#8390a5;margin:0;font-size:13px}.card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.metric{background:#fff;border:1px solid #e8edf5;border-radius:17px;padding:19px;box-shadow:0 6px 22px #233e6909;transition:transform .22s,box-shadow .22s;animation:rise .4s both}.metric:nth-child(2){animation-delay:.05s}.metric:nth-child(3){animation-delay:.1s}.metric:nth-child(4){animation-delay:.15s}.metric:hover{transform:translateY(-4px);box-shadow:0 13px 28px #233e6918}.metric-top{display:flex;justify-content:space-between;align-items:center;color:#65758f;font-size:13px;font-weight:650}.metric-icon{width:36px;height:36px;border-radius:10px;background:#edf3ff;color:#235cdb;display:grid;place-items:center}.metric-icon.green{background:#eaf8f2;color:#188866}.metric-icon.orange{background:#fff4e7;color:#b36a19}.metric-icon.purple{background:#f1edff;color:#704cc2}.metric strong{display:block;font-size:29px;margin-top:17px;letter-spacing:-.04em}.metric small{display:block;color:#97a2b2;margin-top:4px}.panel{margin-top:20px;background:#fff;border:1px solid #e8edf5;border-radius:17px;box-shadow:0 6px 22px #233e6909;overflow:hidden;animation:rise .4s both}.panel-head{display:flex;justify-content:space-between;align-items:center;padding:19px 21px;border-bottom:1px solid #edf1f6;gap:15px}.panel-head h3{margin:0;font-size:16px}.panel-head p{margin:4px 0 0;color:#8b98ab;font-size:12px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left}th{background:#fafbfd;color:#78869d;font-size:12px;white-space:nowrap;padding:13px 17px}td{padding:15px 17px;border-top:1px solid #f0f2f6;color:#33435e;font-size:13px;vertical-align:top}tbody tr{transition:background .16s}tbody tr:hover{background:#f8faff}td strong{color:#1e2d47}.badge{display:inline-block;border-radius:7px;padding:5px 8px;font-size:11px;font-weight:750;background:#ecf7f1;color:#148263}.badge.due{background:#fff3ea;color:#b66b2c}.badge.info{background:#edf2ff;color:#345fbe}.empty{padding:46px 20px;text-align:center;color:#97a3b5}.empty svg{width:34px;height:34px;margin-bottom:8px;color:#b5c2d7}.empty strong{display:block;color:#53627b;margin-bottom:5px}.two-panels{display:grid;grid-template-columns:1.2fr .8fr;gap:20px}.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px}.quick-card{border:1px solid #e3eaf4;background:#fff;border-radius:12px;text-align:left;padding:16px;display:flex;gap:10px;align-items:center;color:#394d6f;font-weight:700;transition:transform .2s,border-color .2s,box-shadow .2s}.quick-card:hover{border-color:#9bb5f3;transform:translateY(-3px);box-shadow:0 8px 18px #245cdf12}.quick-card svg{color:#2461e1}.toolbar{display:flex;gap:12px;align-items:center}.search{position:relative}.search svg{position:absolute;left:11px;top:10px;width:17px;height:17px;color:#92a0b5}.search input{height:38px;border:1px solid #dbe3ef;border-radius:9px;padding:0 12px 0 36px;outline:0;width:min(270px,38vw)}.search input:focus{border-color:#6b91ec}.form-dialog{width:min(530px,calc(100% - 24px));max-height:min(90vh,840px);border:1px solid #e4eaf3;border-radius:20px;padding:0;background:#fff;box-shadow:0 22px 70px #15294830}.form-dialog::backdrop{background:#14233d8a;backdrop-filter:blur(2px)}.form-dialog[open]{animation:rise .22s ease}.dialog-head{padding:21px 24px;border-bottom:1px solid #edf1f7;display:flex;justify-content:space-between;align-items:center}.dialog-head h3{margin:0;font-size:20px}.icon-button{width:35px;height:35px;border:0;border-radius:9px;background:#f3f6fa;color:#75829a;display:grid;place-items:center;transition:background .2s,transform .2s}.icon-button:hover{background:#e8eef7;transform:rotate(90deg)}#entryForm{padding:22px 24px 25px;max-height:calc(90vh - 93px);overflow:auto}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-note{background:#f1f5ff;color:#4a6090;padding:12px;border-radius:10px;font-size:12px;line-height:1.6}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:6px}.toast{position:fixed;right:22px;bottom:22px;z-index:10;max-width:min(420px,calc(100vw - 44px));background:#243756;color:#fff;border-radius:11px;padding:12px 18px;box-shadow:0 10px 30px #13234440;opacity:0;transform:translateY(10px);pointer-events:none;transition:opacity .22s,transform .22s}.toast.show{opacity:1;transform:none}.field-list{display:grid;gap:10px;padding:19px}.field-item{border:1px solid #e6ebf4;border-radius:11px;padding:13px;display:flex;align-items:center;gap:12px}.field-item .field-meta{flex:1}.field-item small{display:block;color:#8c98aa;margin-top:3px}.field-item label{font-size:12px;color:#61718c;display:flex;align-items:center;gap:5px}.field-item input{accent-color:#245cdf}.dev-banner{padding:13px 17px;border-radius:11px;background:#fff7e9;border:1px solid #f5d7a7;color:#94641e;font-size:12px;line-height:1.6;margin-bottom:18px}@keyframes rise{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}@keyframes fade{from{opacity:.4}to{opacity:1}}@media(max-width:980px){.card-grid{grid-template-columns:repeat(2,1fr)}.two-panels{grid-template-columns:1fr}.sidebar{width:66px;padding-left:9px;padding-right:9px}.shell{grid-template-columns:66px 1fr}.brand{padding:0 6px 20px}.brand>span:last-child,.nav-title,.nav-item:not(svg),.sidebar-bottom span,.sidebar-bottom button{font-size:0}.brand>span:last-child{display:none}.nav-item{justify-content:center;padding:12px}.nav-item svg{width:21px;height:21px}.sidebar-bottom{justify-content:center}.topbar{padding:18px 22px}.content{padding:24px 22px}}@media(max-width:640px){.shell{display:block;padding-bottom:63px}.sidebar{position:fixed;top:auto;bottom:0;left:0;width:100%;height:62px;z-index:5;padding:4px 6px;border-right:0;border-top:1px solid #e1e8f3;box-shadow:0 -5px 20px #192d4c0d}.sidebar .brand,.nav-title,.sidebar-bottom{display:none}.sidebar nav{display:flex;justify-content:space-around;gap:0}.nav-item{min-width:45px;height:53px;flex:1}.nav-item:nth-child(n+6){display:none}.topbar{height:75px;padding:12px 15px}.topbar h2{font-size:18px}.account-pill{display:none}.top-actions .primary{font-size:12px;padding:9px}.content{padding:18px 14px 40px}.card-grid{gap:10px}.metric{padding:14px}.metric strong{font-size:24px}.metric-top{font-size:11px}.quick-grid{grid-template-columns:1fr 1fr}.page-intro{align-items:center}.page-intro h3{font-size:17px}.form-row{grid-template-columns:1fr}.toolbar{flex-wrap:wrap}.search input{width:100%}.search{flex:1}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media(max-width:640px){.sidebar nav{justify-content:flex-start;overflow-x:auto;scrollbar-width:thin}.nav-item{flex:0 0 76px;min-width:76px;display:flex;flex-direction:column;justify-content:center;gap:3px;font-size:11px!important;padding:5px 3px;white-space:nowrap}.nav-item:nth-child(n+6){display:flex}.nav-item svg{width:19px;height:19px}}
.sidebar nav{min-height:0;overflow-y:auto;scrollbar-width:thin}.sidebar-bottom{flex:none}.row-actions{white-space:nowrap}.row-actions button+button{margin-left:8px}.panel-head select{height:38px;border:1px solid #dbe3ef;border-radius:9px;padding:0 10px;background:#fff;color:#33435e}
@media(max-width:640px){.sidebar nav{overflow-x:auto;overflow-y:hidden}}

/* Unified with the previous 8003 SmartERP deep-green palette. */
:root{color:#24332e;background:#f6f7f5}
.auth-shell{background:radial-gradient(circle at 18% 12%,#e1eee7 0,transparent 36%),#f6f7f5}
.auth-card,.panel,.metric{border-color:#e0e5e1}
.brand-mark,.primary{background:#18372e;border-color:#18372e;box-shadow:0 8px 20px #18372e22}
.primary:hover{background:#245743;box-shadow:0 11px 22px #18372e30}
.sidebar{background:#18372e;border-right-color:#18372e}
.sidebar .brand,.sidebar-bottom{border-color:#ffffff24;color:#dce9e2}
.sidebar .brand strong{color:#fff}
.sidebar .brand small,.sidebar .nav-title{color:#a8c8b6}
.sidebar .nav-item{color:#dce9e2}
.sidebar .nav-item:hover{background:#ffffff18;color:#fff}
.sidebar .nav-item.active{background:#eef3ef;color:#153b2d}
.sidebar-bottom button{color:#dce9e2}
.sidebar nav{min-width:0;overflow-x:hidden;scrollbar-width:none}
.sidebar nav::-webkit-scrollbar{display:none}
.sidebar .nav-item{min-width:0;white-space:normal}
.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:8px 0 14px}
.permission-grid label{display:flex;align-items:center;gap:8px;padding:9px 10px;border:1px solid #dce5ec;border-radius:9px;font-size:12px;font-weight:600}
.permission-grid input{width:16px!important;height:16px!important}
.announcement-card{padding:17px 19px;border:1px solid #e4e9f0;border-radius:12px;background:white;margin:10px 0}
.announcement-card h3{margin:0 0 5px;font-size:16px}
.announcement-card p{white-space:pre-wrap;line-height:1.6}
.stock-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.stock-filter{display:flex;align-items:center;gap:8px;font-size:13px;color:#506556;font-weight:700}
.stock-filter select{min-width:175px;height:38px;border:1px solid #d0ddd2;border-radius:9px;padding:0 9px;background:#fff;color:#22392a}
.stock-preview{padding:12px 14px;border:1px solid #bad9c8;background:#eff8f1;border-radius:10px;color:#245743;font-size:13px;line-height:1.9;white-space:pre-line}
.stock-preview.shortage{border-color:#e7ad9b;background:#fff3ef;color:#a43e25}
.operation-dialog{width:min(820px,calc(100% - 24px))}
.operation-lines{display:grid;gap:12px;margin:10px 0}
.operation-line{padding:14px;border:1px solid #dce7de;border-radius:12px;background:#fbfdfb}
.operation-line-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.operation-line .stock-preview{margin:10px 0 0}
.operation-convert{display:flex!important;align-items:center;gap:8px;font-size:12px;font-weight:650;color:#375c47}
.operation-convert input{width:17px!important;height:17px!important;flex:none;accent-color:#245743}
.sku-hidden .sku-column,.sku-hidden .sku-display{display:none!important}
.optional-module-hidden .nav-item[data-view="serials"],.optional-module-hidden .nav-item[data-view="repairs"]{display:none!important}
.product-photo-cell{min-width:145px;white-space:nowrap}
.product-thumb{display:block;width:62px;height:62px;object-fit:cover;border-radius:8px;border:1px solid #dce7de;margin-bottom:5px}
.product-photo-cell button{margin:2px 4px 2px 0;padding:6px 8px;font-size:11px}
.photo-quota{padding:4px 20px 15px;color:#667c6e;font-size:12px}
.operation-custom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
@media(max-width:640px){.operation-custom{grid-template-columns:1fr}}
.form-actions button:disabled{opacity:.5;cursor:not-allowed;transform:none}
.page-intro{align-items:flex-start;flex-wrap:wrap}
.page-intro>div:first-child{flex:1 1 280px;min-width:0}
.page-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 1 auto;flex-wrap:wrap}
.page-actions button{white-space:nowrap;min-height:40px}
.inline-empty{margin:18px}
@media(max-width:760px){.page-actions{width:100%;justify-content:flex-start}.page-actions button{flex:0 1 auto}}
@media(max-width:640px){.permission-grid{grid-template-columns:1fr}.sidebar nav{overflow-x:auto;scrollbar-width:none}}
.topbar{border-color:#e0e5e1}
.tab.active,.quick-card svg{color:#245743}
.nav-item.active svg,.metric-icon{color:#245743}
.metric-icon{background:#e7f2eb}
.form-stack input:focus,.form-stack select:focus{border-color:#438466;box-shadow:0 0 0 3px #43846622}
.secondary{color:#245743;border-color:#cddfd2}
.secondary:hover{background:#eef5ef}
.field-item input{accent-color:#245743}
.portal-page{min-height:100vh;background:radial-gradient(circle at 15% 10%,#e2eee7 0,transparent 38%),#f6f7f5}
.portal-wrap{max-width:940px;margin:0 auto;padding:9vh 24px 60px}
.portal-brand{display:flex;align-items:center;gap:13px;font-weight:750;margin-bottom:65px}
.portal-brand .brand-mark{font-size:19px;font-weight:800}
.portal-wrap h1{font-size:clamp(28px,4vw,42px);margin:5px 0 11px}
.portal-wrap>.muted{max-width:620px;line-height:1.6}
.portal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:38px}
.portal-card{display:flex;flex-direction:column;min-height:230px;background:#fff;border:1px solid #dfe7df;border-radius:18px;padding:24px;color:#24332e;text-decoration:none;box-shadow:0 10px 25px #18372e0d;transition:transform .18s,border-color .18s,box-shadow .18s}
.portal-card:hover,.portal-card:focus-visible{transform:translateY(-4px);border-color:#438466;box-shadow:0 18px 32px #18372e1d;outline:none}
.portal-icon{display:grid;place-items:center;width:42px;height:42px;background:#e7f2eb;border-radius:12px;color:#245743;font-size:25px;margin-bottom:16px}
.portal-card strong{font-size:20px;margin-bottom:9px}
.portal-card>span:nth-of-type(2){color:#748078;font-size:13px;line-height:1.6}
.portal-card b{margin-top:auto;padding-top:22px;font-size:13px;color:#245743}
.portal-foot{font-size:12px;color:#84948b;margin-top:28px}
@media(max-width:640px){.portal-wrap{padding-top:40px}.portal-brand{margin-bottom:50px}.portal-grid{grid-template-columns:1fr}.portal-card{min-height:190px}.sidebar{background:#18372e;border-top-color:#18372e}}
.nav-section{padding:18px 16px 6px;color:#a7b9ac;font-size:11px;font-weight:700;letter-spacing:.08em}
.business-tabs{display:flex;gap:8px;align-items:center;padding:5px;background:#e8eee9;border:1px solid #d4dfd7;border-radius:12px;margin-bottom:20px;width:max-content;max-width:100%}
.business-tab{border:0;border-radius:9px;background:transparent;color:#36554a;padding:10px 18px;font-weight:700;cursor:pointer;white-space:nowrap}
.business-tab.active{background:#fff;color:#136d51;box-shadow:0 2px 8px rgba(20,60,42,.12)}
#warehouseReorderPanel input[type=number]{width:100px;max-width:100%;padding:7px;border:1px solid #cbd8d0;border-radius:7px}
#warehouseReorderPanel details{margin-top:12px}#warehouseReorderPanel summary{cursor:pointer;color:#136d51;font-weight:700}
@media(max-width:900px){.nav-section{display:none}.business-tabs{width:100%}.business-tab{flex:1}}

/* Consistent navigation rhythm and in-page workflow switcher. */
.sidebar #navigation{display:flex;flex-direction:column;gap:3px;align-items:stretch}
.sidebar #navigation .nav-section{display:none}
.sidebar #navigation .nav-item{flex:0 0 auto;min-height:43px;padding:10px 12px;line-height:1.25;white-space:nowrap;font-size:13px}
.business-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;width:min(100%,390px);max-width:100%;padding:5px;margin:0 0 20px;background:#edf3ef;border:1px solid #d5e2d9;border-radius:13px;box-shadow:0 2px 7px #18372e0a}
.business-tab{display:flex;align-items:center;justify-content:center;min-height:40px;padding:9px 12px;border:0;border-radius:9px;color:#315344;background:transparent;font-size:13px;font-weight:700;line-height:1.2;transition:background .16s,color .16s,box-shadow .16s}
.business-tab:hover{background:#dfece3;color:#18372e}
.business-tab.active,.business-tab.active:hover{background:#18372e;color:#fff;box-shadow:0 3px 8px #18372e30}
.business-tab:focus-visible{outline:2px solid #4c9e70;outline-offset:2px}
@media(max-width:980px){.sidebar #navigation .nav-item{font-size:0;padding:10px 6px;justify-content:center}}
@media(max-width:640px){.sidebar #navigation{flex-direction:row;align-items:center;overflow-x:auto;overflow-y:hidden}.sidebar #navigation .nav-item{font-size:11px!important;min-width:88px;min-height:53px;padding:5px 3px;flex-direction:column;gap:3px}.business-tabs{width:100%}}

/* Product, warehouse and replenishment share one working surface. */
.page-intro .page-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.page-intro .page-actions .stock-filter{margin:0;white-space:nowrap}
.reorder-guidance{margin:0;padding:17px 21px;color:#506757;line-height:1.6}
.reorder-count{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#e6f3ea;color:#245743;font-size:12px;font-weight:800;white-space:nowrap}
.reorder-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:13px 20px;color:#688073;font-size:12px}
.reorder-toolbar label{display:flex;align-items:center;gap:8px;color:#365344;font-weight:700}
.reorder-toolbar input{height:36px;min-width:190px;padding:0 10px;border:1px solid #cbdccf;border-radius:8px;background:#fff;color:#18372e}
.reorder-table{min-width:740px}.reorder-table td{vertical-align:middle}.reorder-table td:first-child small{display:block;margin-top:3px}
.reorder-table input[type=number]{width:96px;max-width:100%;height:36px;padding:0 8px;border:1px solid #cbdccf;border-radius:8px;background:#fff}
.transfer-line-cell{min-width:240px}.transfer-line-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.transfer-line-details{margin-top:7px}.transfer-line-details summary{color:#245743;font-weight:700;cursor:pointer}.transfer-line-details ol{margin:9px 0 0;padding:0 0 0 20px;max-height:220px;overflow-y:auto}.transfer-line-details li{padding:5px 0;line-height:1.5}
@media(max-width:760px){.page-intro .page-actions{justify-content:flex-start}.page-intro .page-actions .stock-filter{width:100%}.reorder-toolbar input{min-width:0;width:100%}}
.operation-switch{display:inline-flex;gap:5px;padding:4px;margin:0 0 12px;background:#e8f1ee;border:1px solid #d4e5df;border-radius:12px}.operation-switch button{min-width:104px;border:0;border-radius:9px;padding:8px 14px;background:transparent;color:#3f6258;font-weight:750;transition:background .18s,color .18s,transform .18s,box-shadow .18s}.operation-switch button:hover{transform:translateY(-1px)}.operation-switch button.active{background:#173f34;color:#fff;box-shadow:0 5px 13px #173f3430}
.reorder-details>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:12px;padding:16px 20px;font-weight:700;color:#173c31}
.reorder-details>summary::-webkit-details-marker{display:none}
.reorder-details>summary::before{content:'▸';font-size:15px;transition:transform .18s ease}
.reorder-details[open]>summary::before{transform:rotate(90deg)}
.reorder-details>summary small{font-weight:400;color:#6d817a}
.reorder-details-body{padding:0 18px 18px}
.business-tabs + #warehouseReorderPanel{margin-top:0}
/* Dense list rhythm and consistent pagination across customer and platform views. */
.panel td{padding:10px 13px;vertical-align:middle}
.panel th{padding:10px 13px}
.panel .row-actions{white-space:normal;min-width:160px}
.panel .row-actions .primary,.panel .row-actions .secondary,.panel .platform-row-actions .secondary{min-height:31px;padding:5px 9px;font-size:12px;line-height:1.15;border-radius:8px;box-shadow:none;transform:none}
.panel .row-actions button+button{margin-left:5px}
.panel .platform-row-actions{gap:5px}
.page-intro .primary,.panel-head .primary,.panel-head .secondary,.top-actions .secondary,.top-actions .primary{min-height:35px;padding:7px 11px;font-size:12px;line-height:1.2;box-shadow:none}
.table-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid #e5ede7;color:#597064;font-size:12px}
.table-pagination[hidden]{display:none}
.pagination-count{margin-right:auto}
.pagination-button{border:1px solid #cbded0;background:#fff;color:#245743;border-radius:8px;padding:5px 10px;min-height:30px;font-weight:700}
.pagination-button:disabled{opacity:.45;cursor:not-allowed}
.pagination-size{display:flex;align-items:center;gap:6px;white-space:nowrap}
.pagination-size select{height:31px;border:1px solid #cbded0;border-radius:8px;background:#fff;color:#245743;padding:0 8px}
@media(max-width:640px){.table-pagination{justify-content:center}.pagination-count{width:100%;text-align:center;margin:0}.panel td,.panel th{padding:9px 10px}}
.stock-status{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:700;background:#eaf5ee;color:#226245}
.stock-status-low,.stock-low{background:#fcebea;color:#b43c37}
.stock-status-zero{background:#fcebea;color:#b43c37}
.stock-status-archived{background:#edf0f2;color:#66737b}
.stock-zero{background:#fcebea;color:#b43c37}
#productListPanel .product-photo-cell{width:72px;min-width:72px;max-width:72px;white-space:nowrap}
#productListPanel .product-photo-cell button.secondary{min-height:30px;padding:4px 8px;margin:0}
.product-photo-open{display:block;width:42px;height:42px;padding:0;border:0;background:transparent;border-radius:7px;cursor:zoom-in}
.product-photo-open:focus-visible{outline:2px solid #245743;outline-offset:2px}
.product-photo-open .product-thumb{display:block;width:42px;height:42px;object-fit:cover;margin:0;border-radius:7px}
.product-photo-dialog{width:min(680px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:20px;border:1px solid #d8e6dc;border-radius:14px;box-shadow:0 18px 55px #10291f38}
.product-photo-dialog::backdrop{background:#10291f99}
.product-photo-dialog h3{margin:0 0 14px;color:#18372e}
.product-photo-large{display:block;max-width:100%;max-height:65vh;margin:auto;object-fit:contain;border-radius:8px}
.product-photo-dialog .form-actions{margin-top:15px;justify-content:flex-end}
.device-bind-form{display:grid;grid-template-columns:minmax(210px,2fr) minmax(150px,1fr) auto;align-items:end;gap:12px;padding:18px 20px}
.device-bind-form label{display:grid;gap:6px;color:#365344;font-size:12px;font-weight:700}
.device-bind-form input{width:100%;height:38px;padding:0 10px;border:1px solid #cbdccf;border-radius:8px;background:#fff}
.history-filters{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr)) minmax(160px,1fr) auto;gap:12px;align-items:end;padding:16px 18px}
.history-filters label{display:grid;gap:6px;min-width:0;color:#45566a;font-size:12px;font-weight:700}
.history-filters select,.history-filters input{width:100%;height:38px;padding:0 11px;border:1px solid #cbdccf;border-radius:9px;background:#fff;color:#18372e;outline:none}
.history-filters select:focus,.history-filters input:focus{border-color:#34745a;box-shadow:0 0 0 3px #34745a20}
.history-filters .primary{height:38px;box-shadow:none}
.history-filters [hidden]{display:none!important}
@media(max-width:1050px){.history-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.history-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px}.history-filters .primary{grid-column:1/-1}}
.device-bind-form button{height:38px;min-height:38px}
@media(max-width:760px){.device-bind-form{grid-template-columns:1fr}}
