:root{--ink:#17241e;--muted:#708078;--line:#e5ebe6;--paper:#f6f8f5;--card:#fff;--green:#1e694c;--green2:#e4f3ea;--orange:#d88635;--orange2:#fff4e5;--blue:#316ca8;--blue2:#eaf3ff;--red:#b8443a;--red2:#fff0ee;--shadow:0 10px 34px rgba(30,65,48,.08)}*{box-sizing:border-box}body{margin:0;font:14px/1.5 Inter,"Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper)}a{color:inherit}button,input,select,textarea{font:inherit}button{cursor:pointer}.login{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr}.login-art{position:relative;padding:72px;color:#fff;background:linear-gradient(145deg,#194e3a,#267052);overflow:hidden}.login-art:after{content:"";position:absolute;width:440px;height:440px;border:70px solid rgba(255,255,255,.08);border-radius:50%;right:-130px;bottom:-160px}.login-logo{font-weight:800;letter-spacing:2px}.login-art h1{font-size:48px;line-height:1.15;margin:130px 0 18px;max-width:620px}.login-art p{font-size:17px;max-width:580px;color:#cce2d8}.login-panel{display:flex;align-items:center;justify-content:center;padding:32px}.login-box{width:min(390px,100%)}.login-box h2{font-size:28px;margin:0 0 8px}.login-box>p{color:var(--muted);margin:0 0 28px}.field{display:block;margin:0 0 16px}.field span{display:block;font-weight:700;font-size:13px;margin:0 0 7px}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:10px;background:#fff;padding:12px;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--green)}.primary,.ghost,.small-btn{border:0;border-radius:9px;padding:11px 15px;font-weight:700}.primary{background:var(--green);color:#fff}.primary.full{width:100%}.ghost{background:#fff;border:1px solid var(--line);color:var(--ink)}.small-btn{padding:7px 10px;background:var(--green2);color:var(--green)}.demo-tip{margin-top:20px;background:var(--green2);padding:13px;border-radius:9px;color:#315b48;font-size:12px}.demo-actions{display:flex;gap:6px;margin-top:9px;flex-wrap:wrap}.demo-actions button{border:1px solid #b7d8c8;background:#fff;color:var(--green);padding:6px 8px;border-radius:7px;font-size:12px}.error{color:#b73d32;margin:10px 0}.shell{display:grid;grid-template-columns:228px 1fr;min-height:100vh}.sidebar{background:#183d2f;color:#c7d9d1;padding:23px 15px}.brand{font-size:20px;font-weight:800;color:#fff;padding:0 10px 8px}.role-chip{margin:0 10px 18px;color:#9fc2b3;font-size:12px}.nav-btn{display:block;width:100%;text-align:left;border:0;background:transparent;color:#c7d9d1;padding:11px 12px;border-radius:8px;margin:2px 0}.nav-btn.active,.nav-btn:hover{background:#285541;color:#fff}.main{padding:24px 28px}.top,.toolbar,.order-intro,.task-head,.task-action{display:flex;justify-content:space-between;align-items:center;gap:10px}.top{margin-bottom:22px}.top h1,.compact{margin:0}.user,.muted{color:var(--muted);font-size:13px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.card,.panel,.product-card{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:13px}.card,.panel,.product-card{padding:18px}.card .label{color:var(--muted);font-size:13px}.card b{display:block;font-size:28px;margin-top:6px}.grid2{display:grid;grid-template-columns:1.25fr .75fr;gap:16px;margin-top:16px}.panel h2{font-size:16px;margin:0 0 8px}.notice{padding:12px 0;border-top:1px solid var(--line)}.notice:first-of-type{border-top:0}.notice p{margin:3px 0;color:var(--muted);font-size:13px}.tag{display:inline-block;border-radius:99px;padding:3px 8px;font-size:12px;background:var(--blue2);color:var(--blue)}.tag.warn{background:var(--orange2);color:#a25b15}.tag.ok{background:var(--green2);color:var(--green)}.tag.danger{background:var(--red2);color:var(--red)}.toolbar{margin-bottom:14px}.search{border:1px solid var(--line);padding:10px 11px;border-radius:9px;min-width:260px;margin-bottom:12px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;white-space:nowrap}.table th,.table td{text-align:left;padding:12px 10px;border-bottom:1px solid var(--line);font-size:13px}.table th{color:var(--muted)}.sku{font-family:Consolas,monospace;color:#39725b}.empty{padding:25px;color:var(--muted);text-align:center}.modal-wrap{position:fixed;inset:0;background:rgba(11,30,23,.46);display:flex;align-items:center;justify-content:center;padding:16px;z-index:20}.modal{background:#fff;border-radius:14px;padding:20px;width:min(620px,100%);max-height:90vh;overflow:auto}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.modal h2{margin:0}.close{border:0;background:transparent;font-size:21px}.row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.mobile-head{display:none}.ai-card{background:linear-gradient(140deg,#1c5b43,#2c795a);color:#fff}.ai-card p{color:#d9e9e2}.ai-input{display:flex;gap:6px}.ai-input input{min-width:0;width:100%;border:0;padding:10px;border-radius:8px}.ai-input button{border:0;border-radius:8px;background:#fff;color:var(--green);font-weight:800}.answer{margin-top:10px;padding:10px;background:rgba(255,255,255,.12);border-radius:8px;font-size:13px}.product-grid,.task-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin-top:15px}.product-card h3{font-size:16px;margin:8px 0 3px}.product-card p{color:var(--muted);margin:0 0 14px}.product-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:12px;margin-bottom:12px;background:var(--green2);color:var(--green);font-weight:800}.qty{display:flex;justify-content:flex-end;align-items:center;gap:10px}.qty button{width:30px;height:30px;border:0;border-radius:50%;background:var(--green2);color:var(--green);font-size:18px}.order-summary,.pick-list{margin:14px 0;border:1px solid var(--line);border-radius:10px}.order-summary div,.pick-list div{display:flex;justify-content:space-between;gap:10px;padding:10px;border-top:1px solid var(--line)}.order-summary div:first-child,.pick-list div:first-child{border-top:0}.order-summary span{flex:1;color:var(--muted)}.task-tabs{display:flex;gap:10px;align-items:center;margin-bottom:14px}.task-card h2{margin:0}.pick-list strong{text-align:right}.pick-list em{font-size:18px;color:var(--green);font-style:normal}.task-note{padding:8px;background:var(--paper);border-radius:8px;color:var(--muted)}.warehouse-welcome{margin-bottom:14px}.warehouse-welcome h2{font-size:22px;margin:0}.warehouse-welcome p{color:var(--muted);margin:4px 0}.warehouse-actions{display:grid;grid-template-columns:repeat(2,minmax(180px,280px));gap:16px}.warehouse-actions button{display:flex;flex-direction:column;align-items:flex-start;border:1px solid var(--line);background:#fff;padding:20px;border-radius:14px;box-shadow:var(--shadow);text-align:left}.warehouse-actions span{font-size:18px;font-weight:800}.warehouse-actions b{color:var(--green);font-size:42px;line-height:1.25}.warehouse-actions small{color:var(--muted);font-size:14px}.warehouse-main-btn{font-size:17px;padding:14px 18px;width:100%}.stacked{align-items:stretch;flex-direction:column}.reject-btn{border:1px solid #efc7c3;background:var(--red2);color:var(--red);padding:11px;border-radius:9px;font-weight:700}.image-link{border:1px solid #bdd3ea;background:var(--blue2);color:var(--blue);border-radius:7px;padding:5px 9px}.order-title-line{display:flex;align-items:center;gap:8px;margin-top:5px}.thumb-list,.image-strip{display:flex;gap:5px;flex-wrap:wrap}.thumb-btn{border:2px solid #d8e4df;background:#fff;padding:2px;border-radius:7px;line-height:0}.thumb-btn img{width:44px;height:38px;object-fit:cover;border-radius:4px}.thumb-btn.selected{border-color:var(--green)}.order-image{display:block;max-width:100%;max-height:66vh;margin:auto;border-radius:8px}.image-name{text-align:center;color:var(--muted)}.image-strip{justify-content:center;margin-top:12px}.reject-reason{color:var(--red)}.confirm-box{width:min(410px,100%);background:#fff;border-radius:18px;padding:24px;box-shadow:0 24px 70px rgba(0,0,0,.22);text-align:center;border-top:6px solid var(--green)}.confirm-box.warn{border-top-color:var(--orange)}.confirm-box.danger{border-top-color:var(--red)}.confirm-icon{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 10px;border-radius:50%;background:var(--green2);color:var(--green);font-size:27px;font-weight:900}.confirm-box.warn .confirm-icon{background:var(--orange2);color:var(--orange)}.confirm-box.danger .confirm-icon{background:var(--red2);color:var(--red)}.confirm-box h2{font-size:22px;margin:0}.confirm-box p{color:var(--muted);margin:8px 0 18px}.confirm-box textarea{width:100%;border:1px solid var(--line);border-radius:9px;padding:10px}.confirm-actions{display:flex;justify-content:center;gap:8px;margin-top:15px}.confirm-actions button{min-width:112px}.mode-panel{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.mode-panel label{display:flex;gap:7px;align-items:flex-start;padding:12px;border:1px solid var(--line);border-radius:10px}.mode-panel small{display:block;color:var(--muted)}.custom-order,.catalog-head{margin-top:14px}.custom-row{display:grid;grid-template-columns:1fr 1.4fr 1fr 90px auto;gap:7px;margin-top:10px}.custom-row input{min-width:0;border:1px solid var(--line);border-radius:8px;padding:9px}.custom-list{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.custom-list span{background:var(--blue2);color:var(--blue);padding:5px 8px;border-radius:7px}.custom-list button{border:0;background:transparent;color:var(--red)}.mode-note,.new-sku-box{padding:10px;border-radius:9px;background:var(--blue2);color:var(--blue)}.new-sku-box{margin:12px 0;background:var(--green2);color:var(--ink)}.new-sku-box .row{margin-top:10px}.order-tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:14px}.order-tabs button{display:flex;justify-content:center;align-items:center;gap:7px;border:1px solid var(--line);background:#fff;padding:13px 8px;border-radius:10px;color:var(--muted);font-weight:800}.order-tabs button b{display:grid;place-items:center;min-width:24px;height:24px;border-radius:50%;background:var(--paper);color:var(--green)}.order-tabs button.active{background:var(--green);border-color:var(--green);color:#fff}.order-tabs button.active b{background:#fff}.order-summary-card{display:block;width:100%;text-align:left}.order-summary-card p{margin:15px 0 3px;font-weight:700}.order-summary-card small{color:var(--muted)}.order-detail{width:min(680px,100%)}.detail-meta{display:flex;gap:12px;flex-wrap:wrap;padding:8px 0;color:var(--muted)}.inbound-tabs{display:flex;gap:8px;margin:16px 0}.inbound-tabs button{border:1px solid var(--line);background:#fff;border-radius:9px;padding:11px 14px;font-weight:700}.inbound-tabs button.active{background:var(--green);color:#fff}.location-box{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.location-select-row{display:flex;gap:7px}.location-select-row select{flex:1}.location-plus{width:46px;border:0;border-radius:9px;background:var(--green2);color:var(--green);font-size:24px;font-weight:800}.quick-location-input{width:100%;border:1px solid var(--line);border-radius:9px;padding:11px}.location-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.location-list span{background:var(--paper);border:1px solid var(--line);padding:4px 8px;border-radius:7px}@media(max-width:800px){.login{display:block}.login-art,.sidebar{display:none}.login-panel{min-height:100vh}.shell{display:block}.main{padding:16px}.mobile-head{display:flex;justify-content:space-between;align-items:center;background:#183d2f;color:#fff;padding:14px 16px}.mobile-nav{display:flex;overflow:auto;gap:6px;padding:9px 10px;background:#fff;border-bottom:1px solid var(--line)}.mobile-nav .nav-btn{color:var(--muted);white-space:nowrap;width:auto;padding:7px 10px}.mobile-nav .active{color:#fff}.cards{grid-template-columns:1fr 1fr;gap:10px}.grid2{grid-template-columns:1fr}.card{padding:14px}.card b{font-size:22px}.top{margin-bottom:15px}.top h1{font-size:20px}.search{min-width:0;width:100%}.toolbar,.order-intro{align-items:stretch;flex-direction:column}.row,.mode-panel,.custom-row{grid-template-columns:1fr}.user{display:none}.warehouse-actions{grid-template-columns:1fr 1fr;gap:10px}.warehouse-actions button{padding:16px}.warehouse-actions span{font-size:17px}.warehouse-task-grid{grid-template-columns:1fr}.task-tabs{align-items:flex-start;flex-direction:column}.order-title-line{align-items:flex-start;flex-direction:column}.order-tabs{grid-template-columns:1fr 1fr}}

.smart-search{position:relative;overflow:visible}
.user,.mobile-head span{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.logout-link{border:0;background:transparent;color:var(--green);font-weight:700;padding:4px 6px;border-radius:6px;white-space:nowrap}
.logout-link:hover{background:var(--green2)}
.smart-search .search-icon{position:absolute;left:12px;top:50%;display:flex;align-items:center;justify-content:center;width:18px;height:18px;margin:0;z-index:2;color:var(--muted);font-size:16px;font-weight:400;line-height:18px;pointer-events:none;transform:translateY(-50%);padding-top:2px}
.smart-search input{display:block;width:100%;min-height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:12px 12px 12px 40px;outline:none}
.smart-search input:focus{border-color:var(--green)}
.form-status-banner{display:flex;align-items:center;gap:10px;margin:12px 0;border:1px solid #cfe1d7;border-radius:10px;background:#f3faf6;padding:11px 12px;color:#285541}
.form-status-banner[hidden]{display:none}
.form-status-banner[data-state="done"]{border-color:#bdd8c8;background:var(--green2);color:var(--green)}
.form-status-spinner{width:18px;height:18px;border:3px solid #c7dfd3;border-top-color:var(--green);border-radius:50%;animation:status-spin .8s linear infinite;flex:0 0 auto}
.form-status-banner[data-state="done"] .form-status-spinner{display:grid;place-items:center;border:0;background:var(--green);color:#fff}
.form-status-banner[data-state="done"] .form-status-spinner:after{content:"✓";font-size:12px;font-weight:900;line-height:18px}
.form-status-copy{display:grid;gap:1px}
.form-status-copy b{font-size:14px;line-height:1.25}
.form-status-copy small{color:inherit;font-size:12px;opacity:.82}
@keyframes status-spin{to{transform:rotate(360deg)}}
.loading-panel{display:flex;align-items:center;justify-content:center;gap:12px;min-height:120px;padding:24px;text-align:left;color:#285541;background:#f8fbf9;border:1px solid #d9e8df;border-radius:10px;box-shadow:none}
.loading-panel b{display:block;font-size:15px;line-height:1.3;color:#285541}
.loading-panel p{margin:2px 0 0;color:#5b7669;font-size:13px;line-height:1.35}
.inline-loading{min-height:84px;margin:0;background:#fff;box-shadow:none}
.load-failed-panel{justify-content:space-between;color:var(--red);background:var(--red2);border-color:#efc7c3}
.load-failed-panel b{color:var(--red)}
.load-failed-panel p{color:#8b4a43}
.search-loading{display:flex;align-items:center;gap:8px;padding:10px 12px;color:#285541;background:#f3faf6;border-bottom:1px solid #d8e8de}
.search-loading .form-status-spinner{width:16px;height:16px;border-width:2px}
.search-loading b{font-size:13px;line-height:1.25}
.attachment-list{display:grid;gap:8px;margin-top:8px}
.attachment-chip{display:grid;grid-template-columns:44px minmax(0,1fr) 34px;align-items:center;gap:8px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:6px}
.attachment-chip img{width:44px;height:44px;border-radius:7px;object-fit:cover;background:#eef3f0}
.attachment-chip span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:700;color:#40534a}
.attachment-chip button{display:grid;place-items:center;width:34px;height:34px;border:1px solid #efc7c3;border-radius:8px;background:var(--red2);color:var(--red);font-size:18px;font-weight:900;line-height:1}
.order-attachment-field small{display:block;margin-top:6px}
.single-upload-preview{display:grid;gap:8px;margin-top:8px}
.single-upload-card{display:grid;grid-template-columns:64px minmax(0,1fr) 34px;align-items:center;gap:10px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:8px}
.single-upload-card img{width:64px;height:54px;border-radius:7px;object-fit:contain;background:#eef3f0}
.single-upload-card span{min-width:0}
.single-upload-card b,.single-upload-card small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.single-upload-card small{margin-top:2px;color:var(--muted);font-size:12px}
.single-upload-card button{display:grid;place-items:center;width:34px;height:34px;border:1px solid #efc7c3;border-radius:8px;background:var(--red2);color:var(--red);font-size:18px;font-weight:900;line-height:1}
.single-upload-pending{display:flex;align-items:center;gap:9px;border:1px solid #cfe1d7;border-radius:9px;background:#f3faf6;padding:10px;color:#285541}
.collapsible-section{margin:14px 0;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}
.collapsible-section summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:13px 14px;cursor:pointer;list-style:none;font-size:16px;font-weight:800}
.collapsible-section summary::-webkit-details-marker{display:none}
.collapsible-section summary:after{content:"展开";display:inline-flex;align-items:center;min-height:28px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--green);padding:4px 10px;font-size:14px;font-weight:800}
.collapsible-section[open] summary:after{content:"收起"}
.collapsible-section summary small,.section-head small{color:var(--muted);font-size:13px;font-weight:700}
.collapsible-section .collapsible-body{padding:0 14px 14px}
.detail-static-section{margin:14px 0}
.section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.collapsible-section summary{font-size:17px}
.collapsible-section summary small,.section-head small{font-size:15px;font-weight:800}
.collapsible-section summary:after{min-height:32px;padding:5px 12px;font-size:15px}
.detail-static-section .section-head h3{font-size:17px;margin:0}
.detail-bind-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,max-content);align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line);cursor:pointer}
.detail-bind-row:first-child{border-top:0}
.detail-bind-main{display:flex;align-items:center;gap:10px;min-width:0}
.detail-bind-copy{display:grid;gap:2px;min-width:0}
.detail-bind-copy b{font-size:15px;line-height:1.35;overflow-wrap:anywhere}
.detail-title-badge{display:inline-flex;vertical-align:middle;margin-left:8px}
.detail-title-badge .tag{font-size:12px;padding:3px 8px}
.detail-bind-meta{color:var(--muted);font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.detail-bind-meta .issue-inline-note{display:block;margin-top:2px}
.detail-bind-side{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;text-align:right}
.detail-bind-facts{font-weight:800;color:var(--ink);white-space:normal;line-height:1.35}
.detail-bind-facts small{display:block;color:var(--muted);font-size:12px;font-weight:700}
.detail-bind-row .detail-bind-action{display:none}
.product-components .detail-bind-row{display:grid;padding:11px 0}
.product-components .detail-bind-main{display:flex;padding:0;gap:10px}
.product-components .detail-bind-copy,.product-components .detail-bind-side,.product-components .detail-bind-facts,.product-components .detail-bind-status,.product-components .detail-bind-action{padding:0}
.product-components .detail-bind-main span{min-width:auto}
.product-detail .product-detail-section{font-size:16px}
.product-detail .section-head h3,.product-detail .collapsible-section summary{font-size:19px;line-height:1.3}
.product-detail .collapsible-section summary small,.product-detail .section-head small{font-size:16px}
.product-detail .collapsible-section summary:after{font-size:16px;min-height:34px;padding:6px 13px}
.product-detail .stock-locations div{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;border-top:1px solid var(--line)}
.product-detail .stock-locations div:first-of-type{border-top:0}
.product-detail .stock-locations span{font-size:16px;font-weight:800;line-height:1.35}
.product-detail .stock-locations span small{display:block;margin-top:2px;color:var(--muted);font-size:14px;font-weight:700}
.product-detail .stock-locations b{font-size:17px;line-height:1.35}
.product-detail .stock-summary-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:8px 0 10px}
.product-detail .stock-summary-row div{display:block;border:1px solid #dce7df;border-radius:10px;background:#f7fbf8;padding:13px 14px}
.product-detail .stock-summary-row span{display:block;margin-bottom:4px;color:#40534a;font-size:15px;font-weight:800}
.product-detail .stock-summary-row b{font-size:19px;overflow-wrap:anywhere}
.product-detail .stock-location-list{border-top:1px solid var(--line)}
.product-detail .stock-location-list:empty{display:none}
.product-detail .product-detail-fact-row.featured{border:1px solid #dce7df;border-radius:10px;background:#f7fbf8;padding:13px 14px;margin:10px 0}
.product-detail .product-detail-fact-row.featured span{font-size:15px;font-weight:800;color:#40534a}
.product-detail .product-detail-fact-row.featured b{font-size:20px}
.product-detail .detail-bind-row{grid-template-columns:minmax(0,1fr) minmax(150px,max-content);gap:16px;padding:14px 0}
.product-detail .detail-bind-copy b{font-size:17px;line-height:1.35}
.product-detail .detail-bind-meta{font-size:15px;line-height:1.4}
.product-detail .detail-bind-facts{font-size:16px}
.product-detail .detail-bind-facts small{font-size:14px}
.store-page-panel{overflow:visible}
.store-page-hero{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:-2px 0 18px;padding:20px;border:1px solid #d8e6de;border-radius:10px;background:linear-gradient(135deg,#f7fbf8,#edf6f1);box-shadow:0 10px 28px rgba(23,36,30,.06)}
.store-page-hero h2{margin:2px 0 5px;font-size:28px;line-height:1.15}
.store-page-hero .primary{white-space:nowrap}
.store-summary-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.store-summary-strip div{border:1px solid #dce8e1;border-radius:10px;background:#fff;padding:12px 14px;box-shadow:0 6px 18px rgba(23,36,30,.05)}
.store-summary-strip span{display:block;color:var(--muted);font-size:12px;font-weight:800}
.store-summary-strip b{display:block;margin-top:3px;font-size:24px;line-height:1.1;color:var(--ink)}
.store-filter-bar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(160px,220px) minmax(150px,190px) auto;gap:10px;align-items:end;margin-bottom:12px}
.store-filter-bar label{display:grid;gap:5px;margin:0}
.store-filter-bar span{color:#40534a;font-size:12px;font-weight:900}
.store-filter-bar input,.store-filter-bar select{width:100%;height:42px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 11px;outline:none}
.store-filter-bar input:focus,.store-filter-bar select:focus{border-color:var(--green)}
.store-filter-bar .ghost{height:42px;margin:0}
.store-list-grid,.store-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:12px;margin-top:12px;align-items:start}
.store-card,.store-product-card{display:grid;grid-template-columns:112px minmax(0,1fr) auto;align-items:stretch;gap:0;width:100%;height:auto;min-height:112px;border:1px solid #d8e6de;border-radius:10px;background:#fff;padding:0;text-align:left;box-shadow:0 8px 22px rgba(23,36,30,.07);overflow:visible;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.store-card:hover,.store-product-card:hover{border-color:#a9cdbd;box-shadow:0 16px 38px rgba(23,36,30,.13);transform:translateY(-2px)}
.store-card-image{position:relative;display:block;width:112px;height:100%;min-height:112px;border:0;border-right:1px solid var(--line);border-radius:0;background:#eef3f0;overflow:hidden;flex:0 0 auto;cursor:zoom-in}
.store-card-image img{width:100%;height:100%;object-fit:contain;object-position:center;background:#eef3f0;display:block}
.image-frame img{width:100%;height:100%;object-fit:cover;display:block}
.store-card-image.empty:after,.store-card-image.image-load-failed:after,.image-frame.empty:after,.image-frame.image-load-failed:after{content:attr(data-image-label);position:absolute;inset:0;display:grid;place-items:center;padding:8px;color:var(--muted);font-size:12px;font-weight:700;text-align:center;line-height:1.25}
.store-card-image.empty:after,.image-frame.empty:after{content:attr(data-image-frame)}
.store-card-image.image-load-failed img,.image-frame.image-load-failed img{display:none}
.store-card-copy{display:grid;align-content:start;gap:3px;min-width:0;padding:10px 12px}
.store-card-copy .sku{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.store-card-copy strong{font-size:18px;line-height:1.2;overflow-wrap:anywhere}
.store-card-copy strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.store-card-copy small{color:var(--muted);font-size:13px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.store-card-copy em{color:#46665a;font-style:normal;font-size:13px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.store-card-metrics{display:grid;align-content:center;justify-items:end;gap:6px;white-space:normal;padding:10px 12px 10px 0}
.store-card-metrics small{max-width:140px;text-align:right;overflow-wrap:anywhere}
.store-card-metrics b{display:inline-flex;align-items:center;min-height:28px;border-radius:999px;background:var(--green2);color:var(--green);padding:4px 10px;font-weight:900}
.store-detail-panel{overflow:visible}
.store-detail-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.store-detail-hero{display:grid;grid-template-columns:minmax(220px,360px) minmax(0,1fr);gap:20px;align-items:stretch;margin:10px 0 20px;padding:16px;border:1px solid #d8e6de;border-radius:10px;background:linear-gradient(135deg,#f7fbf8,#edf6f1);box-shadow:0 10px 28px rgba(23,36,30,.06)}
.store-detail-media{min-width:0}
.store-detail-title{display:flex;flex-direction:column;justify-content:center;min-width:0}
.store-detail-title h2{margin:4px 0 6px;font-size:28px;line-height:1.18;overflow-wrap:anywhere}
.store-detail-title p{margin:0;color:var(--muted);overflow-wrap:anywhere}
.store-detail-facts{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.store-detail-facts span{display:inline-flex;align-items:center;min-height:30px;border-radius:99px;background:#fff;border:1px solid var(--line);padding:5px 10px;color:#40534a;font-size:13px;font-weight:800}
.store-detail-actions{margin-top:0}
.store-mobile-actions{display:none}
.store-detail-image-frame{width:100%;height:100%;min-height:210px;aspect-ratio:4/3;border:1px solid var(--line);border-radius:9px;background:#eef3f0;overflow:hidden}
.image-frame{position:relative;padding:0;background:#eef3f0}
.image-frame.empty{position:relative}
.store-product-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;margin:16px 0 10px}
.store-product-section-head h3{margin:0 0 2px;font-size:21px}
.store-product-head-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.store-product-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(150px,200px) minmax(150px,200px) auto;gap:10px;align-items:end;margin:8px 0 10px}
.store-product-toolbar label{display:grid;gap:5px;margin:0}
.store-product-toolbar span{color:#40534a;font-size:12px;font-weight:900}
.store-product-toolbar input,.store-product-toolbar select{width:100%;height:42px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 11px;outline:none}
.store-product-toolbar input:focus,.store-product-toolbar select:focus{border-color:var(--green)}
.store-product-toolbar .ghost{height:42px;margin:0;white-space:nowrap}
.store-empty-products{display:grid;gap:12px;justify-items:center;border:1px dashed #cbd9d1;border-radius:10px;background:#fbfdfb}
.store-component-loading{display:flex;align-items:flex-start;gap:10px;border:1px solid #cfe1d7;border-radius:10px;background:#f3faf6;padding:12px;color:#285541}
.store-component-loading b{display:block;font-size:15px;line-height:1.3}
.store-component-loading p{margin:2px 0 0;color:#527466;font-size:13px;line-height:1.35}
.store-save-progress{display:flex;align-items:flex-start;gap:10px;margin-top:14px;border:1px solid #cfe1d7;border-radius:10px;background:#f3faf6;padding:12px;color:#285541}
.store-save-progress[hidden]{display:none}
.store-save-progress[data-state="done"]{border-color:#bdd8c8;background:var(--green2);color:var(--green)}
.store-save-progress[data-state="done"] .form-status-spinner{display:grid;place-items:center;border:0;background:var(--green);color:#fff}
.store-save-progress[data-state="done"] .form-status-spinner:after{content:"✓";font-size:12px;font-weight:900;line-height:18px}
.store-save-progress b{display:block;font-size:15px;line-height:1.3}
.store-save-progress p{margin:2px 0 0;color:inherit;font-size:13px;line-height:1.35;opacity:.84}
.product-detail{font-size:16px;line-height:1.55}
.product-detail .modal-head{align-items:flex-start;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.product-detail .modal-head h2{font-size:24px;line-height:1.25}
.product-detail .modal-head .tag,.product-detail .modal-head .sku{font-size:13px;font-weight:800}
.product-detail .product-detail-hero{gap:16px;margin-bottom:14px}
.product-detail .product-detail-meta p{font-size:16px}
.product-detail .product-detail-meta b{font-size:15px}
.product-detail .product-detail-meta span{font-size:16px}
.store-detail-panel{padding-top:14px}
.store-detail-nav{margin-bottom:10px}
.store-detail-layout{display:block}
.store-detail-products{min-width:0}
.store-detail-hero{display:grid;grid-template-columns:112px minmax(0,1fr) auto;gap:0;align-items:stretch;margin:0 0 14px;padding:0;min-height:112px;border:1px solid #d8e6de;border-radius:10px;background:linear-gradient(135deg,#f7fbf8,#edf6f1);box-shadow:0 10px 28px rgba(23,36,30,.06);overflow:hidden;position:static}
.store-detail-media{width:112px;height:112px}
.store-detail-image-frame{display:block;width:112px;height:112px;min-height:0;aspect-ratio:1/1;border:0;border-right:1px solid var(--line);border-radius:0;padding:0}
.store-detail-hero .store-detail-image-frame img{width:100%;height:100%;object-fit:contain;object-position:center;background:#eef3f0}
.store-detail-placeholder{cursor:zoom-in;background:linear-gradient(135deg,#dff0e7,#f7fbf8 52%,#cfe5d9)}
.store-detail-placeholder:before{content:"";position:absolute;inset:auto 0 0 0;height:44%;background:linear-gradient(135deg,rgba(30,105,76,.28),rgba(30,105,76,.08))}
.store-detail-title{padding:10px 14px}
.store-detail-hero .store-detail-actions{align-self:center;padding:10px 14px 10px 0;margin-top:0}
.store-detail-hero .store-detail-actions button{flex:0 0 auto;white-space:nowrap}
.store-detail-title h2{margin:1px 0 4px;font-size:26px;line-height:1.16}
.store-detail-title p{font-size:14px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.store-detail-facts{margin-top:8px}
.store-detail-facts span{min-height:28px;padding:4px 9px;font-size:13px}
.store-product-section-head{margin:12px 0 10px}
.store-detail-products .store-product-section-head{margin-top:0}
.store-detail-products .store-product-grid{grid-template-columns:repeat(auto-fill,minmax(460px,1fr));margin-top:10px}
.store-detail-products .store-product-card{grid-template-columns:124px minmax(0,1fr) auto;height:auto;min-height:124px;overflow:visible}
.store-detail-products .store-product-card .store-card-image{width:124px;height:100%;min-height:124px}
.store-detail-products .store-product-card .store-card-copy{align-content:start}
.store-detail-products .store-product-card .store-card-copy .sku{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.warehouse-orders-page{display:grid;gap:12px}
.warehouse-order-hint{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #dce8e1;border-radius:10px;background:#fff;padding:13px 14px;box-shadow:0 6px 18px rgba(23,36,30,.05)}
.warehouse-order-hint b{display:block;font-size:17px}
.warehouse-order-hint span,.warehouse-order-hint em{display:block;margin-top:2px;color:var(--muted);font-style:normal}
.hint-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.hint-actions button{min-height:38px}
.order-workbench-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:2px 0 10px}
.order-workbench-summary div{min-width:0;border:1px solid #dce8e1;border-radius:10px;background:#fff;padding:11px 12px;box-shadow:0 5px 16px rgba(23,36,30,.05)}
.order-workbench-summary span{display:block;color:var(--muted);font-size:12px;font-weight:800}
.order-workbench-summary b{display:block;margin-top:3px;font-size:22px;line-height:1.1;overflow-wrap:anywhere}
.order-workbench-list{display:grid;gap:9px}
.order-workbench-row{display:grid;grid-template-columns:minmax(230px,1.35fr) minmax(190px,1fr) minmax(130px,.55fr) minmax(135px,.55fr) minmax(90px,.4fr) auto;align-items:center;gap:12px;width:100%;border:1px solid #dce8e1;border-radius:10px;background:#fff;padding:12px;text-align:left;box-shadow:0 6px 18px rgba(23,36,30,.05)}
.order-workbench-row.urgent{border-left:4px solid var(--orange)}
.order-workbench-row:hover{border-color:#a9cdbd;box-shadow:0 12px 28px rgba(23,36,30,.1)}
.replenishment-row{grid-template-columns:minmax(0,1fr) minmax(128px,auto)}
.replenishment-main{grid-template-columns:auto minmax(0,1fr);align-items:start}
.order-row-main,.order-row-meta,.order-row-process,.order-row-status,.order-row-attention{min-width:0}
.order-row-main{display:grid;gap:4px}
.order-row-title{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.order-row-title .sku{font-weight:800;overflow-wrap:anywhere}
.order-row-main strong{font-size:16px;line-height:1.25;overflow-wrap:anywhere}
.order-row-main small,.order-row-process small{color:var(--muted);line-height:1.35;overflow-wrap:anywhere}
.order-row-meta{display:grid;gap:4px;color:#40534a;font-size:13px;font-weight:700}
.order-row-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-row-process{display:grid;gap:2px}
.order-row-process b{font-size:14px}
.order-row-status{display:grid;gap:5px;align-content:center}
.order-row-status>span{display:flex;align-items:center}
.order-row-status small{color:var(--muted);font-size:12px;font-weight:800;line-height:1.35;overflow-wrap:anywhere}
.replenishment-info{display:grid;gap:4px;margin-top:4px;padding:8px 10px;border-radius:8px;background:#f7faf8;color:#40534a;font-size:13px;line-height:1.4}
.replenishment-info span{overflow-wrap:anywhere}
.order-row-attention{display:flex;justify-content:flex-start}
.order-row-action{display:inline-flex;align-items:center;justify-content:center;min-height:32px;border-radius:8px;background:var(--green2);color:var(--green);padding:5px 10px;font-weight:900}
.order-row-quick-action{min-height:34px;white-space:nowrap}
.page-actions{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:12px}
.page-actions button,.page-actions span{min-height:34px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:7px 10px;color:#40534a;font-weight:800}
.page-actions button.active{background:var(--green);border-color:var(--green);color:#fff}
.page-actions button:disabled{opacity:.45;cursor:not-allowed}
.page-jump{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px;color:var(--muted);font-size:13px}
.page-jump input{width:70px;border:1px solid var(--line);border-radius:8px;padding:7px 8px}
.page-jump button{border:1px solid var(--line);border-radius:8px;background:#fff;padding:7px 10px;font-weight:800}
.backup-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}
.backup-card{border:1px solid var(--line);border-radius:10px;background:#fff;padding:14px}
.backup-card span{display:block;color:var(--muted);font-size:12px}
.backup-card b{display:block;margin-top:5px;font-size:18px;word-break:break-all}
.backup-card small{display:block;margin-top:5px;color:var(--muted)}
.ops-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}
.ops-card{min-width:0;border:1px solid var(--line);border-radius:10px;background:#fff;padding:14px;display:grid;gap:8px}
.ops-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ops-card-head>span{color:var(--muted);font-size:12px;font-weight:900}
.ops-card>b{font-size:20px;line-height:1.2;color:#183d2f;word-break:break-word}
.ops-path{color:#40534a;font-size:12px;line-height:1.35;word-break:break-all;background:#f6faf7;border:1px solid var(--line);border-radius:8px;padding:8px}
.ops-row{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;color:var(--muted);font-size:13px}
.ops-row strong{color:#263a31;text-align:right;word-break:break-word}
.ops-check{display:flex;gap:6px;flex-wrap:wrap}
.ops-log{display:grid;gap:4px}
.ops-log small{display:block;color:#40534a;font-size:12px;line-height:1.35;word-break:break-all}
.help-page{display:grid;gap:14px}
.help-hero{display:flex;justify-content:space-between;align-items:stretch;gap:14px;border:1px solid #d8e6de;border-radius:10px;background:linear-gradient(135deg,#f7fbf8,#edf6f1);padding:18px;box-shadow:0 10px 28px rgba(23,36,30,.06)}
.help-hero h2{margin:2px 0 5px;font-size:28px;line-height:1.15}
.help-hero p{margin:0;color:var(--muted)}
.help-role-card{min-width:220px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:14px}
.help-role-card span{display:block;color:var(--muted);font-size:12px;font-weight:900}
.help-role-card b{display:block;margin-top:5px;font-size:18px;line-height:1.25}
.help-quick h3{margin:0}
.help-step-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
.help-step-list article{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:flex-start;gap:9px;border:1px solid #dce8e1;border-radius:10px;background:#fbfdfb;padding:12px}
.help-step-list b{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--green2);color:var(--green)}
.help-step-list span{color:#30463b;font-weight:700;line-height:1.45}
.help-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.help-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.help-card{min-width:0;border:1px solid var(--line);border-radius:10px;background:#fff;padding:15px;box-shadow:0 6px 18px rgba(23,36,30,.05)}
.help-card h3{margin:0 0 8px;font-size:17px}
.help-card p{margin:8px 0 0;color:#40534a;line-height:1.55}
.help-card b{color:var(--green)}
.stock-alert-panel{display:grid;gap:10px;margin:0 0 12px;border:1px solid #ecd8bd;border-radius:10px;background:#fffaf2;padding:13px}
.stock-alert-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.stock-alert-head h3{margin:0;font-size:17px}
.stock-alert-head p{margin:2px 0 0;color:#7d6542;font-size:13px}
.stock-alert-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.stock-alert-metrics div{border:1px solid #eadcc7;border-radius:9px;background:#fff;padding:10px}
.stock-alert-metrics span{display:block;color:#7d6542;font-size:12px;font-weight:900}
.stock-alert-metrics b{display:block;margin-top:2px;font-size:20px;line-height:1.15;color:#49351b;overflow-wrap:anywhere}
.stock-alert-list{display:grid;gap:7px}
.stock-alert-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,auto);align-items:center;gap:12px;width:100%;border:1px solid #eadcc7;border-radius:9px;background:#fff;padding:10px;text-align:left}
.stock-alert-row.danger{border-color:#efc7c3;background:#fff7f5}
.stock-alert-row.warn{border-color:#ead6b6}
.stock-alert-row span,.stock-alert-row em{min-width:0}
.stock-alert-row b,.stock-alert-row strong,.stock-alert-row small{display:block}
.stock-alert-row strong{margin-top:2px;overflow-wrap:anywhere}
.stock-alert-row small{color:var(--muted);font-size:12px;line-height:1.35}
.stock-alert-row em{display:grid;justify-items:end;gap:3px;font-style:normal;text-align:right}
.stock-alert-row em b{color:var(--orange);font-size:13px}
.inventory-row-stock em{display:block;margin-top:2px;color:var(--orange);font-style:normal;font-size:12px;font-weight:900}
.inventory-row-risk{display:grid;gap:2px;min-width:120px;color:var(--orange);font-weight:900}
.inventory-row-risk small{color:#9b6428;font-size:12px;line-height:1.3}
.touch-screen{display:grid;gap:18px}
.screen-mode{display:flex;gap:10px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:12px;width:max-content}
.screen-mode button{border:0;border-radius:9px;background:transparent;padding:13px 18px;font-weight:800;color:var(--muted)}
.screen-mode button.active{background:var(--green);color:#fff}
.screen-board{display:grid;gap:18px}
.screen-hero{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr) minmax(0,auto);align-items:center;gap:12px;width:100%;max-width:100%;padding:16px 18px;border-radius:12px;background:#183d2f;color:#fff}
.screen-hero span{display:block;color:#9fc2b3;font-weight:800;letter-spacing:1px}
.screen-hero h2{margin:2px 0 0;font-size:28px;line-height:1.1}
.screen-tools{display:inline-flex;width:max-content;max-width:100%;gap:8px;flex-wrap:wrap}
.screen-tools button{min-width:0;width:max-content;min-height:44px;border:1px solid rgba(255,255,255,.25);border-radius:9px;background:rgba(255,255,255,.12);color:#fff;padding:10px 12px;font-weight:800;white-space:nowrap}
.screen-refresh-time{display:flex;align-items:center;width:max-content;min-height:44px;border:1px solid rgba(255,255,255,.18);border-radius:9px;background:rgba(255,255,255,.08);color:#d7e9e1;padding:0 12px;font-weight:800;white-space:nowrap}
.screen-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.screen-metrics button{min-height:132px;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:left;padding:18px;box-shadow:var(--shadow);touch-action:manipulation}
.screen-metrics span{display:block;color:var(--muted);font-weight:800}
.screen-metrics b{display:block;margin-top:6px;color:var(--green);font-size:44px;line-height:1}
.screen-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.screen-grid section{min-height:260px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:16px;box-shadow:var(--shadow)}
.screen-grid h3{margin:0 0 12px;font-size:20px}
.screen-list-item{display:block;width:100%;min-height:86px;margin:0 0 10px;border:1px solid var(--line);border-radius:10px;background:#fbfdfb;padding:16px;text-align:left;touch-action:manipulation}
.screen-list-item.urgent{border-color:#f0c997;background:#fff8ec}
.screen-list-item span{display:flex;justify-content:space-between;align-items:center;gap:10px}
.screen-list-item b,.screen-list-item strong{font-size:18px}
.screen-list-item strong{display:block;margin-top:8px}
.screen-list-item small,.screen-list-item em,.screen-list-item i{display:block;margin-top:5px;color:var(--muted);font-style:normal}
.screen-order-card{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.screen-order-main{min-width:0}
.screen-order-main span{min-width:0}
.screen-order-main b,.screen-order-main strong,.screen-order-main small,.screen-order-main em{overflow-wrap:break-word;word-break:normal}
.screen-empty{display:grid;place-items:center;min-height:150px;border:1px dashed var(--line);border-radius:10px;color:var(--muted)}
.engineer-screen .screen-hero{background:#23496c}
.engineer-screen .screen-metrics b{color:var(--blue)}
@media(pointer:coarse){.touch-screen button{min-height:56px}.screen-metrics button{min-height:150px}.screen-list-item{min-height:104px;padding:20px}.screen-list-item b,.screen-list-item strong{font-size:21px}.screen-grid h3{font-size:23px}.primary:hover,.ghost:hover,.small-btn:hover,.reject-btn:hover,.location-plus:hover,.warehouse-actions button:hover,.product-card:hover,.order-summary-card:hover,.nav-btn:hover{transform:none}}
@media(min-width:1200px){.touch-screen{gap:22px}.screen-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.screen-grid section{max-height:calc(100vh - 330px);overflow:auto}.screen-board{min-height:calc(100vh - 150px)}.screen-hero h2{font-size:34px}.screen-metrics button{min-height:160px}.screen-metrics b{font-size:56px}}
.inbound-results{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:120;max-height:320px;overflow:auto;background:#fff;box-shadow:0 18px 45px rgba(23,36,30,.16)}
.result-head{padding:9px 12px;border-bottom:1px solid #edf2ee;color:#40534a;font-size:13px;font-weight:800}
.result-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;border-top:1px solid #edf2ee}
.result-row:first-of-type{border-top:0}
.result-select{display:block;width:100%;border:0;background:#fff;padding:10px 12px;text-align:left}
.result-select:hover,.detail-link:hover{background:#f7faf8}
.result-main{display:block;min-width:0}
.result-main b{display:block;line-height:1.3;overflow-wrap:anywhere}
.result-main small{display:block;margin-top:2px;color:var(--muted);line-height:1.35;overflow-wrap:anywhere}
.detail-link{border:0;border-left:1px solid #edf2ee;background:#fff;color:var(--green);padding:0 12px;font-weight:900}
.no-result{padding:12px;color:#40534a}
.no-result b,.no-result span{display:block}
.no-result span{margin-top:2px;color:var(--muted);font-size:13px}
#sales-order-form{display:grid;gap:14px;max-width:980px}
.simple-order-head,.order-info-panel{overflow:visible}
.selected-product{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;margin:10px 0 14px;border:1px solid #dce8e1;border-radius:10px;background:#f8fbf9;padding:11px 12px}
.selected-product b{display:block;line-height:1.3;overflow-wrap:anywhere}
.selected-product p{margin:2px 0 0;color:var(--muted);font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.store-batch-order{width:min(900px,100%)}
.store-batch-steps{display:flex;gap:8px;margin:8px 0 14px}
.store-batch-steps span{display:inline-flex;align-items:center;min-height:32px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);padding:5px 12px;font-weight:800;font-size:13px}
.store-batch-steps span.active{background:var(--green);border-color:var(--green);color:#fff}
.store-batch-step{display:grid;gap:14px}
.store-batch-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.store-batch-summary span{border:1px solid #dce8e1;border-radius:10px;background:#f8fbf9;padding:10px 12px;color:#40534a;font-weight:800}
.store-batch-summary b{color:var(--green);font-size:20px}
.store-batch-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) 180px auto;gap:10px;align-items:end}
.store-batch-toolbar label span{display:block;margin:0 0 6px;font-size:13px;font-weight:800}
.store-batch-toolbar input,.store-batch-toolbar select{width:100%;height:42px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 11px}
.store-batch-list,.store-batch-quantity-list{display:grid;gap:10px;max-height:48vh;overflow:auto;padding-right:2px}
.store-batch-row,.store-batch-qty-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px}
.store-batch-row.selected{border-color:#9fcbb9;background:#f3faf6}
.store-batch-row input{width:20px;height:20px}
.store-batch-row>span,.store-batch-qty-row>span{display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-areas:"image title" "image meta" "image extra";column-gap:10px;align-items:center;min-width:0}
.store-batch-row .store-card-image,.store-batch-qty-row .store-card-image{grid-area:image;width:56px;height:56px;border-radius:8px}
.store-batch-row b,.store-batch-qty-row b{grid-area:title;min-width:0;white-space:normal;overflow-wrap:normal;word-break:normal}
.store-batch-row small,.store-batch-qty-row small{grid-area:meta;color:var(--muted);min-width:0;white-space:normal;overflow-wrap:normal;word-break:normal}
.store-batch-row em{grid-area:extra;color:var(--green);font-style:normal;font-size:12px}
.store-batch-selected-head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.store-batch-selected-head span{font-weight:800;color:var(--green)}
.store-batch-qty-row{grid-template-columns:minmax(0,1fr) 120px auto}
.store-batch-qty-row input{width:100%;border:1px solid var(--line);border-radius:9px;padding:10px}
.store-batch-qty-row em{font-style:normal;color:var(--muted);white-space:nowrap}
.reselect-btn{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--green);padding:8px 10px;font-weight:900;white-space:nowrap}
.order-component-box{margin-top:14px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:13px 14px}
.order-component-box h3{margin:0 0 3px;font-size:17px}
.order-component-add{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start;margin-top:10px}
.order-component-add .ghost{min-height:44px;white-space:nowrap}
.order-component-row{display:grid;grid-template-columns:minmax(0,1fr) 88px minmax(84px,auto) 36px;align-items:center;gap:8px;padding:10px 0;border-top:1px solid #edf2ee}
.order-component-row:first-child{border-top:0}
.order-component-row>span{display:flex;align-items:center;gap:8px;min-width:0}
.order-component-row b,.order-component-row small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-component-row small{color:var(--muted);font-size:12px}
.order-component-row input{width:88px;border:1px solid var(--line);border-radius:8px;padding:9px;text-align:center}
.order-component-row em{color:#40534a;font-style:normal;font-weight:800;white-space:nowrap}
.order-component-row button{display:grid;place-items:center;width:36px;height:36px;border:1px solid #efc7c3;border-radius:8px;background:var(--red2);color:var(--red);font-size:18px;font-weight:900}
.inline-image-list{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto}
.inline-image-list img,.inline-image-list button img{width:34px;height:34px;border-radius:7px;object-fit:cover;background:#eef3f0}
.inline-image-list button{border:1px solid var(--line);border-radius:8px;background:#fff;padding:2px;line-height:0}
.custom-image-field{display:block;margin-top:10px;color:#40534a;font-weight:800;text-align:left}
.custom-image-field input{display:block;width:100%;margin-top:6px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:10px}
.inbound-panel{overflow:visible}
.inbound-panel form{display:grid;gap:12px}
.warehouse-stock-banner{margin:12px 0;border:1px solid #dce8e1;border-radius:10px;background:#f7faf8;padding:12px 14px}
.warehouse-stock-banner div{display:flex;align-items:center;gap:9px}
.warehouse-stock-banner div span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#fff;color:var(--green);font-weight:900}
.warehouse-stock-banner b{font-size:16px;line-height:1.3}
.warehouse-stock-banner p{margin:7px 0 0;color:#40534a;line-height:1.4}
.warehouse-stock-banner small{display:block;margin-top:5px;color:var(--muted);line-height:1.35}
.warehouse-stock-banner.available{border-color:#bdd8c8;background:var(--green2)}
.warehouse-stock-banner.missing{border-color:#f0d4a9;background:var(--orange2)}
.warehouse-stock-banner.direct{border-color:#bfd7ee;background:var(--blue2)}
.warehouse-stock-banner.missing div span{color:var(--orange)}
.warehouse-stock-banner.direct div span{color:var(--blue)}
.custom-relation-box{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start;margin:12px 0;border:1px solid var(--line);border-radius:10px;background:#fff;padding:12px 14px}
.custom-relation-box>div:first-child{min-width:0}
.custom-relation-box b{font-size:16px}
.custom-relation-box .location-plus{grid-column:2;grid-row:1}
#custom-relation-list{grid-column:1/-1;display:grid;gap:8px}
.custom-relation-row{display:grid;grid-template-columns:minmax(0,1fr) 86px minmax(120px,auto) 36px;align-items:center;gap:8px}
.custom-relation-row select,.custom-relation-row input{min-width:0;border:1px solid var(--line);border-radius:8px;background:#fff;padding:9px}
.custom-relation-row span{color:#40534a;font-size:13px;font-weight:800;line-height:1.3}
.custom-relation-row button{display:grid;place-items:center;width:36px;height:36px;border:1px solid #efc7c3;border-radius:8px;background:var(--red2);color:var(--red);font-size:18px;font-weight:900}
.order-component-box,.order-component-add,.simple-order-head,#sales-order-form{overflow:visible}
#sales-order-form .simple-order-head{position:relative;z-index:30}
#sales-order-form .order-info-panel{position:relative;z-index:1}
#sales-order-form .order-component-add{position:relative;z-index:40}
#sales-order-form #order-component-results{z-index:300}
@media(max-width:800px){.backup-summary,.ops-status-grid,.help-grid,.help-step-list,.stock-alert-metrics,.screen-metrics,.screen-grid{grid-template-columns:1fr}.stock-alert-head,.stock-alert-row{grid-template-columns:1fr;flex-direction:column}.stock-alert-row em{justify-items:start;text-align:left}.help-hero{flex-direction:column;padding:15px}.help-hero h2{font-size:24px}.help-role-card{min-width:0}.help-actions .ghost{flex:1;min-width:120px}.ops-row strong{text-align:left}.ops-row{flex-direction:column;gap:2px}.screen-hero{align-items:flex-start;flex-direction:column}.screen-hero h2{font-size:28px}.screen-mode{width:100%}.screen-mode button{flex:1}.screen-metrics button{min-height:110px}}
@media(max-width:800px){
  .store-page-hero{align-items:stretch;flex-direction:column;padding:16px;margin-bottom:14px}
  .store-page-hero h2{font-size:24px}
  .store-page-hero .primary{width:100%}
  .store-summary-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .store-summary-strip div{padding:10px}
  .store-summary-strip b{font-size:20px}
  .store-filter-bar{grid-template-columns:1fr;gap:9px}
  .store-filter-bar .ghost{width:100%}
  .store-list-grid,.store-product-grid{grid-template-columns:1fr;gap:10px}
  .store-card,.store-product-card{grid-template-columns:96px minmax(0,1fr);grid-template-areas:"image copy" "image meta";align-items:stretch;height:96px;min-height:0;padding:0}
  .store-card-image{grid-area:image;width:96px;height:96px;min-height:0;border-right:1px solid var(--line)}
  .store-card-copy{grid-area:copy;align-content:end;padding:8px 10px 2px}
  .store-card-metrics{grid-area:meta;display:flex;justify-content:space-between;align-items:center;width:100%;gap:8px;padding:2px 10px 8px}
  .store-card-copy strong{font-size:17px;line-height:1.25;word-break:normal;overflow-wrap:anywhere}
  .store-card-copy small{display:block;font-size:13px;word-break:normal;overflow-wrap:anywhere}
  .store-card-metrics b{min-height:28px;padding:4px 10px}
  .store-detail-nav{align-items:stretch;flex-direction:column}
  .store-detail-actions{justify-content:flex-start;flex-wrap:wrap;margin-top:4px}
  .store-detail-actions button{flex:1}
  .store-mobile-actions{display:flex;position:sticky;bottom:-16px;z-index:5;gap:8px;margin:14px -16px -16px;padding:12px 16px;background:rgba(255,255,255,.96);border-top:1px solid var(--line);backdrop-filter:blur(10px)}
  .store-mobile-actions button{flex:1;min-height:46px}
  .store-detail-hero>.store-detail-actions{display:none}
  .store-detail-layout{grid-template-columns:1fr;gap:10px}
  .store-detail-hero{display:grid;grid-template-columns:84px minmax(0,1fr) auto;grid-template-areas:"image title actions";align-items:stretch;gap:0;min-height:84px;padding:0;margin:6px 0 12px}
  .store-detail-hero{position:static}
  .store-detail-media{grid-area:image;width:84px;height:84px}
  .store-detail-title{grid-area:title}
  .store-detail-hero .store-detail-actions{grid-area:actions;align-self:center;margin-top:0;padding:8px 10px 8px 0}
  .store-detail-title h2{font-size:20px}
  .store-detail-title p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .store-detail-facts{margin-top:6px}
  .store-detail-facts span{min-height:26px;font-size:12px;padding:3px 8px}
  .store-detail-image-frame{width:84px;height:84px;min-height:0;aspect-ratio:1/1}
  .store-product-section-head{align-items:stretch;flex-direction:column}
  .store-product-head-actions{justify-content:stretch}
  .store-product-head-actions button{flex:1;min-height:42px}
  .store-product-section-head .primary{width:100%}
  .store-product-toolbar{grid-template-columns:1fr;gap:9px}
  .store-product-toolbar .ghost{width:100%}
  .store-detail-products .store-product-grid{grid-template-columns:1fr}
  .store-detail-products .store-product-card{grid-template-columns:104px minmax(0,1fr);height:104px}
  .store-detail-products .store-product-card .store-card-image{width:104px;height:104px}
}
.inline-unit-field{display:grid;grid-template-columns:minmax(0,1fr) 86px;gap:7px}
.inline-unit-field input,.inline-unit-field select{min-width:0}
.form-grid-fragment{display:contents}
@media(max-width:800px){.inline-unit-field{grid-template-columns:minmax(0,1fr) 78px}}
.stock-alert-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.stock-alert-toggle{padding:7px 10px;font-size:12px}
.stock-alert-panel.collapsed .stock-alert-body{display:none}
.inventory-workbench-row{min-width:0}
.inventory-row-title{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap}
.inventory-row-title .sku,.inventory-workbench-row .tag{white-space:nowrap;word-break:keep-all;overflow-wrap:normal}
.inventory-row-main,.inventory-row-meta,.inventory-row-stock,.inventory-row-risk{min-width:0}
.inventory-row-main strong,.inventory-row-main small,.inventory-row-meta span,.inventory-row-stock small,.inventory-row-risk small{overflow-wrap:anywhere}
@media(max-width:900px){
  .inventory-workbench-row{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px}
  .inventory-row-image{grid-row:1 / span 2;width:64px;height:64px}
  .inventory-row-image img{width:64px;height:64px;object-fit:cover}
  .inventory-row-main{grid-column:2 / 4}
  .inventory-row-main strong{font-size:15px;line-height:1.25}
  .inventory-row-main small{display:block;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .inventory-row-meta{grid-column:2 / 3;display:flex;gap:8px;flex-wrap:wrap;font-size:12px}
  .inventory-row-relations{display:none}
  .inventory-row-stock{grid-column:3 / 4;justify-self:end;text-align:right}
  .inventory-row-risk{grid-column:2 / 4}
  .inventory-row-action{display:none}
  .inventory-workbench-row>.tag{grid-column:3 / 4;grid-row:1;justify-self:end}
}
@media(max-width:520px){
  .inventory-workbench-row{grid-template-columns:58px minmax(0,1fr);gap:9px}
  .inventory-row-image,.inventory-row-image img{width:58px;height:58px}
  .inventory-row-main{grid-column:2}
  .inventory-row-meta,.inventory-row-risk{grid-column:1 / -1}
  .inventory-row-stock{grid-column:2;justify-self:start;text-align:left}
  .inventory-workbench-row>.tag{grid-column:2;grid-row:auto;justify-self:start}
  .stock-alert-tools{justify-content:flex-start}
}

body:has(.touch-screen){background:#eef3f0}
.touch-screen{gap:12px;min-height:calc(100vh - 48px)}
.screen-board{gap:12px}
.screen-hero{position:relative;overflow:hidden;border:0;border-radius:10px;background:linear-gradient(135deg,#10251f 0%,#183d2f 54%,#255b45 100%);box-shadow:0 18px 48px rgba(16,37,31,.22)}
.screen-hero:after{content:"";position:absolute;right:22%;top:0;width:1px;height:100%;background:rgba(255,255,255,.12)}
.screen-hero p{margin:4px 0 0;color:#c8ddd4;font-size:14px}
.screen-hero span{color:#89c6ad}
.screen-tools{position:relative;z-index:1}
.screen-tools button{border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.18)}
.screen-refresh-time{box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
.screen-tools button:active,.screen-kpi:active,.screen-order-card:active{transform:scale(.98)}
.screen-mode{border:0;background:#dfe8e3;box-shadow:inset 0 0 0 1px rgba(24,61,47,.08)}
.screen-mode button.active{box-shadow:0 10px 26px rgba(30,105,76,.22)}
.screen-metrics{gap:16px}
.screen-kpi{position:relative;overflow:hidden;min-height:142px;border:0;border-radius:10px;background:#fff;text-align:left;padding:18px 20px;box-shadow:0 12px 34px rgba(23,36,30,.1);touch-action:manipulation}
.screen-kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:var(--green)}
.screen-kpi span{color:#40534a;font-size:15px}
.screen-kpi b{margin-top:9px;color:#17241e;font-size:50px;line-height:1}
.screen-kpi small{display:block;margin-top:10px;color:var(--muted);font-weight:700}
.screen-kpi.amber:before{background:var(--orange)}
.screen-kpi.blue:before{background:var(--blue)}
.screen-kpi.red:before{background:var(--red)}
.screen-kpi.green:before{background:var(--green)}
.screen-grid{gap:16px}
.screen-grid section{border:0;border-radius:10px;background:#fff;padding:0;box-shadow:0 12px 34px rgba(23,36,30,.1);overflow:hidden}
.screen-grid h3{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0;padding:15px 16px;border-bottom:1px solid #e8eee9;background:#f9fbfa;font-size:19px}
.screen-grid h3 span{font-weight:900}
.screen-grid h3 small{display:inline-flex;align-items:center;min-height:28px;border-radius:99px;background:#eef3f0;color:#40534a;padding:4px 10px;font-size:13px}
.screen-panel.priority h3{background:#fff7ea}
.screen-panel.priority h3 small{background:#ffe7bd;color:#8a4f12}
.screen-panel.shipping h3{background:#edf6ff}
.screen-panel.shipping h3 small{background:#d9ebff;color:#265f99}
.screen-panel.stock h3{background:#fff0ee}
.screen-panel.stock h3 small{background:#ffdeda;color:#9e342b}
.screen-list-item{width:calc(100% - 24px);margin:12px;border-color:#edf2ee;border-radius:9px;background:#fff;padding:14px 15px;box-shadow:0 5px 16px rgba(23,36,30,.06)}
.screen-list-item.urgent{border-color:#f0bc70;background:#fffaf0}
.screen-list-item span{align-items:flex-start}
.screen-list-item b{font-family:Consolas,monospace;letter-spacing:0}
.screen-list-item strong{line-height:1.25}
.screen-order-card{border-left:5px solid var(--green)}
.screen-order-card.urgent{border-left-color:var(--orange)}
.screen-order-card.priority-high{border-left-color:var(--red);background:#fff1ef}
.screen-order-card.priority-medium{border-left-color:var(--orange);background:#fff8ec}
.screen-order-card.priority-active{border-left-color:var(--blue);background:#eef6ff}
.screen-order-card.priority-normal{border-left-color:var(--green);background:#f4fbf7}
.screen-empty{margin:12px;min-height:170px;border-radius:9px;background:#fafcfa}
.engineer-screen .screen-hero{background:linear-gradient(135deg,#142435 0%,#23496c 58%,#2f698f 100%)}
.engineer-screen .screen-hero span{color:#a8d2f0}
.engineer-screen .screen-kpi.green:before{background:var(--blue)}
@media(pointer:coarse){.screen-kpi{min-height:164px;padding:22px}.screen-kpi b{font-size:60px}.screen-grid h3{font-size:22px;padding:18px}.screen-list-item{width:calc(100% - 28px);margin:14px;padding:20px}}
@media(min-width:1200px){.screen-grid section{max-height:calc(100vh - 350px)}.screen-kpi{min-height:166px}.screen-kpi b{font-size:62px}}
@media(max-width:800px){body:has(.touch-screen){background:#eef3f0}.touch-screen{min-height:auto}.screen-kpi{min-height:118px}.screen-kpi b{font-size:44px}}
@media(pointer:coarse){.touch-screen .screen-kpi{min-height:auto;padding:12px 16px}.touch-screen .screen-kpi b{font-size:50px}}
@media(pointer:coarse){.touch-screen .screen-tools button{min-height:38px;padding:7px 12px;font-size:28px}.touch-screen .screen-refresh-time{min-height:38px;font-size:28px}}

body:has(.touch-screen) .main{padding:18px 20px 24px;max-width:none;width:100%;overflow-x:hidden}
body:has(.touch-screen) .top{margin-bottom:14px}
body:has(.touch-screen) #content{width:100%}
.touch-screen{width:100%;max-width:none;padding-bottom:96px}
.touch-screen .screen-board{align-content:start;min-height:0;gap:10px}
.touch-screen .screen-hero{width:100%;min-height:0;padding:8px 12px}
.touch-screen .screen-hero h2{font-size:28px}
.touch-screen .screen-hero-title{justify-self:center;width:max-content;max-width:100%;align-self:center;text-align:center}
.touch-screen .screen-tools-spacer{width:100%;min-width:320px;visibility:hidden}
.touch-screen .screen-hero p{margin-top:2px}
.touch-screen .screen-tools{display:inline-flex;width:max-content;max-width:100%;align-items:center;gap:6px;padding:6px;border-radius:10px;background:rgba(255,255,255,.08)}
.touch-screen .screen-tools button{min-width:0;width:max-content;min-height:38px;padding:7px 12px;border-radius:7px;font-size:28px;line-height:1}
.touch-screen .screen-refresh-time{min-height:38px;padding:0 12px;border-radius:7px;font-size:28px;line-height:1}
.touch-screen .screen-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));justify-content:stretch;align-items:flex-start;gap:12px;max-width:100%;overflow:visible}
.touch-screen .screen-kpi{width:auto;min-width:0;max-width:none;min-height:auto;padding:10px 16px}
.touch-screen .screen-kpi span{font-size:45px;line-height:1;font-weight:900}
.touch-screen .screen-kpi b{margin-top:4px;font-size:50px}
.touch-screen .screen-kpi small{margin-top:3px;font-size:14px}
.touch-screen:fullscreen{box-sizing:border-box;width:100vw;min-height:100vh;overflow:auto;background:#eef3f0;padding:16px 18px 28px}
.touch-screen:fullscreen .screen-board{min-height:auto}
.touch-screen:fullscreen .screen-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.touch-screen:fullscreen .screen-hero{position:sticky;top:0;z-index:20}
.screen-board{width:100%;max-width:none}
.screen-grid{grid-template-columns:repeat(auto-fit,minmax(340px,1fr))}
.screen-grid section{min-width:0;max-height:none;overflow:visible}
.screen-order-card{min-width:0}
.screen-order-main{display:grid;gap:8px;width:100%}
.screen-order-top{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px}
.screen-order-top b{min-width:0;overflow-wrap:break-word;word-break:normal}
.screen-order-main strong{margin-top:0}
.screen-order-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.screen-order-meta span{display:block;min-width:0;margin:0;border-radius:7px;background:#f3f7f4;padding:6px 8px;color:#40534a;font-size:13px;font-weight:800;overflow-wrap:break-word;word-break:normal}
.screen-order-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.screen-order-foot em,.screen-order-foot i{margin-top:0}
.screen-order-foot i{color:#2f6f55;font-weight:800}
@media(min-width:1440px){body:has(.touch-screen) .main{padding-left:24px;padding-right:24px}.screen-grid{grid-template-columns:repeat(4,minmax(300px,1fr))}.touch-screen .screen-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.screen-order-meta{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:1024px) and (max-width:1439px){.screen-grid{grid-template-columns:repeat(3,minmax(280px,1fr))}}
@media(max-width:900px){body:has(.touch-screen) .main{padding:14px}.screen-grid{grid-template-columns:1fr}.screen-order-meta{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.touch-screen .screen-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.touch-screen .screen-kpi{width:auto;max-width:none}.touch-screen .screen-kpi span{font-size:36px}}
@media(max-width:900px){.touch-screen .screen-hero{grid-template-columns:1fr}.touch-screen .screen-tools-spacer{display:none}.touch-screen .screen-tools{justify-self:center}.touch-screen .screen-hero-title{justify-self:center}}
@media(min-width:1200px){.touch-screen .screen-board{min-height:0}.touch-screen .screen-grid section{max-height:none;overflow:visible}}

[data-font-size="large"] body:has(.touch-screen){font-size:17px}
[data-font-size="large"] .touch-screen .top h1{font-size:28px}
[data-font-size="large"] .screen-hero h2{font-size:34px}
[data-font-size="large"] .screen-hero p{font-size:16px}
[data-font-size="large"] .screen-tools button,[data-font-size="large"] .screen-mode button{font-size:18px}
[data-font-size="large"] .screen-refresh-time{font-size:18px}
[data-font-size="large"] .screen-kpi span{font-size:18px}
[data-font-size="large"] .screen-kpi small{font-size:16px}
[data-font-size="large"] .touch-screen .screen-kpi{min-height:auto}
[data-font-size="large"] .touch-screen .screen-kpi span{font-size:52px}
[data-font-size="large"] .touch-screen .screen-kpi b{font-size:56px}
[data-font-size="large"] .screen-grid h3{font-size:24px}
[data-font-size="large"] .screen-grid h3 small{font-size:16px}
[data-font-size="large"] .screen-list-item b,[data-font-size="large"] .screen-list-item strong{font-size:23px}
[data-font-size="large"] .screen-list-item small,[data-font-size="large"] .screen-list-item em,[data-font-size="large"] .screen-list-item i{font-size:17px}
[data-font-size="large"] .screen-order-meta span{font-size:17px}
[data-font-size="large"] .screen-order-foot i{font-size:17px}
[data-font-size="large"] .warehouse-detail{font-size:17px}
[data-font-size="large"] .warehouse-detail h2{font-size:26px}
[data-font-size="large"] .warehouse-detail .pick-list div{font-size:17px}

.order-process-detail{margin:14px 0;border:1px solid var(--line);border-radius:10px;background:#fff}
.order-process-detail h3{margin:0;padding:12px 14px;border-bottom:1px solid var(--line);font-size:16px}
.order-process-detail>div:not(.pick-list){display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;padding:10px 14px;border-top:1px solid #f0f4f1}
.order-process-detail>div:not(.pick-list):first-of-type{border-top:0}
.order-process-detail span{color:var(--muted)}
.order-process-detail b{overflow-wrap:anywhere}
.order-process-detail .pick-list{margin:0;border:0;border-radius:0}
.order-detail-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:12px 0 14px}
.order-detail-overview div{min-width:0;border:1px solid var(--line);border-radius:10px;background:#f7faf8;padding:11px 12px}
.order-detail-overview span{display:block;color:var(--muted);font-size:13px;font-weight:700}
.order-detail-overview b{display:block;margin-top:4px;font-size:17px;line-height:1.3;overflow-wrap:anywhere}
.order-basic-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.order-basic-info h3{grid-column:1/-1}
.order-basic-info>div:not(.pick-list){grid-template-columns:96px minmax(0,1fr)}
.order-timeline>div:not(.pick-list) b small{display:block;margin-top:2px;color:var(--muted);font-size:12px;font-weight:600}
.order-line-items .pick-list div,.order-component-detail .pick-list div{align-items:center}
.order-line-items .pick-list span,.order-component-detail .pick-list span{min-width:0;overflow-wrap:anywhere}
.order-line-items .pick-list span small,.order-component-detail .pick-list span small{display:block;margin-top:2px;color:var(--muted);font-size:12px}
.order-line-items .pick-list strong,.order-component-detail .pick-list strong{min-width:120px}
.order-line-items .pick-list div,.order-component-detail .pick-list div{display:grid;grid-template-columns:minmax(280px,1fr) minmax(130px,max-content);gap:14px}
.order-line-items .pick-list span,.order-component-detail .pick-list span{display:block;word-break:normal;overflow-wrap:break-word;line-height:1.45}
.order-line-items .pick-list span b,.order-component-detail .pick-list span b{display:inline;word-break:keep-all;overflow-wrap:normal;white-space:nowrap}
.order-line-items .pick-list strong,.order-component-detail .pick-list strong{text-align:right;word-break:normal;overflow-wrap:normal;white-space:normal}
.order-line-items .sku-click-row{cursor:pointer}
.order-line-items .sku-click-row:hover{background:#f8fbf9}
.detail-images{margin:14px 0;border:1px solid var(--line);border-radius:10px;background:#fff;padding:12px 14px}
.detail-images h3{margin:0 0 10px;font-size:16px}
[data-font-size="large"] .order-process-detail h3,[data-font-size="large"] .detail-images h3{font-size:20px}
[data-font-size="large"] .order-process-detail>div:not(.pick-list){grid-template-columns:150px minmax(0,1fr);font-size:17px}
[data-font-size="large"] .order-detail-overview span{font-size:16px}
[data-font-size="large"] .order-detail-overview b{font-size:20px}

body:has(.touch-screen).modal-open{overflow:hidden}
body:has(.touch-screen) .modal-wrap{align-items:stretch;padding:18px}
body:has(.touch-screen) .modal.order-detail,
body:has(.touch-screen) .modal.warehouse-detail{width:min(1180px,100%);max-height:calc(100vh - 36px);padding:22px 24px}
body:has(.touch-screen) .warehouse-detail .modal-head{position:sticky;top:-22px;z-index:3;margin:-22px -24px 14px;padding:18px 24px;background:#fff;border-bottom:1px solid var(--line)}
body:has(.touch-screen) .warehouse-detail .modal-head h2{font-size:28px;line-height:1.2;overflow-wrap:anywhere}
body:has(.touch-screen) .warehouse-detail .close{min-width:58px;min-height:58px;border-radius:12px;background:#f3f7f4;font-size:32px}
body:has(.touch-screen) .warehouse-detail .detail-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
body:has(.touch-screen) .warehouse-detail .detail-meta span{margin:0;border-radius:9px;background:#f6f8f5;padding:10px 12px;color:#40534a;font-weight:800}
body:has(.touch-screen) .warehouse-detail .pick-list div,
body:has(.touch-screen) .component-row{align-items:flex-start;gap:16px;padding:14px 16px}
body:has(.touch-screen) .warehouse-detail .pick-list span,
body:has(.touch-screen) .component-row span{min-width:0;overflow-wrap:anywhere}
body:has(.touch-screen) .warehouse-detail .task-action,
body:has(.touch-screen) .warehouse-detail .route-choice{position:sticky;bottom:-22px;z-index:2;margin:18px -24px -22px;padding:16px 24px;background:rgba(255,255,255,.96);border-top:1px solid var(--line);backdrop-filter:blur(10px)}
body:has(.touch-screen) .warehouse-detail .warehouse-main-btn,
body:has(.touch-screen) .warehouse-detail .reject-btn,
body:has(.touch-screen) .warehouse-detail .ghost{min-height:58px;font-size:18px}
body:has(.touch-screen) .component-requirements{margin:14px 0;border:1px solid var(--line);border-radius:10px;background:#fff;padding:12px 14px}
body:has(.touch-screen) .component-requirements h3{margin:0 0 8px;font-size:20px}
body:has(.touch-screen) .component-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.35fr) auto;border-top:1px solid #edf2ee}
body:has(.touch-screen) .component-row:first-of-type{border-top:0}
body:has(.touch-screen) .component-row strong{text-align:right}
body:has(.touch-screen) .screen-issue-card{border-left:5px solid var(--blue)}
body:has(.touch-screen) .screen-issue-card strong{font-size:20px}
body:has(.touch-screen) .screen-issue-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px}
body:has(.touch-screen) .screen-issue-meta small{margin:0;border-radius:7px;background:#eef5fb;padding:7px 8px;color:#38556d;font-weight:800;overflow-wrap:anywhere}
body:has(.touch-screen) .mold-issue-detail,
body:has(.touch-screen) .mold-detail{width:min(1180px,100%);max-height:calc(100vh - 36px);padding:22px 24px;font-size:16px}
body:has(.touch-screen) .mold-issue-detail .modal-head,
body:has(.touch-screen) .mold-detail .modal-head{position:sticky;top:-22px;z-index:3;margin:-22px -24px 14px;padding:18px 24px;background:#fff;border-bottom:1px solid var(--line)}
body:has(.touch-screen) .mold-issue-detail .modal-head h2,
body:has(.touch-screen) .mold-detail .modal-head h2{font-size:28px;line-height:1.2;overflow-wrap:anywhere}
body:has(.touch-screen) .mold-issue-detail .close,
body:has(.touch-screen) .mold-detail .close{min-width:58px;min-height:58px;border-radius:12px;background:#f3f7f4;font-size:32px}
body:has(.touch-screen) .mold-issue-detail .detail-meta,
body:has(.touch-screen) .mold-detail .product-detail-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
body:has(.touch-screen) .mold-issue-detail .detail-meta span,
body:has(.touch-screen) .mold-detail .product-detail-meta p{margin:0;border-radius:9px;background:#f6f8f5;padding:10px 12px;color:#40534a;font-weight:800}
body:has(.touch-screen) .mold-issue-detail .pick-list div,
body:has(.touch-screen) .mold-detail .stock-locations div,
body:has(.touch-screen) .mold-detail .product-components div{align-items:flex-start;gap:16px;padding:14px 16px}
body:has(.touch-screen) .mold-issue-detail .pick-list span,
body:has(.touch-screen) .mold-detail .stock-locations span,
body:has(.touch-screen) .mold-detail .product-components span{min-width:0;overflow-wrap:anywhere}
body:has(.touch-screen) .mold-issue-detail .product-components h3,
body:has(.touch-screen) .mold-detail .stock-locations h3,
body:has(.touch-screen) .mold-detail .product-components h3{font-size:20px}
body:has(.touch-screen) .mold-issue-detail .customer-detail-actions,
body:has(.touch-screen) .mold-detail .form-actions{position:sticky;bottom:-22px;z-index:2;margin:18px -24px -22px;padding:16px 24px;background:rgba(255,255,255,.96);border-top:1px solid var(--line);backdrop-filter:blur(10px)}
body:has(.touch-screen) .mold-issue-detail .customer-detail-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}
body:has(.touch-screen) .mold-issue-detail .small-btn,
body:has(.touch-screen) .mold-issue-detail .reject-btn,
body:has(.touch-screen) .mold-issue-detail .ghost,
body:has(.touch-screen) .mold-detail .form-actions button{min-height:58px;font-size:18px}
body:has(.touch-screen) .mold-detail .product-components .detail-bind-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,max-content);align-items:center;padding:11px 0}
body:has(.touch-screen) .mold-detail .product-components .detail-bind-main{display:flex;align-items:center;padding:0;gap:10px}
body:has(.touch-screen) .mold-detail .product-components .detail-bind-copy,
body:has(.touch-screen) .mold-detail .product-components .detail-bind-side,
body:has(.touch-screen) .mold-detail .product-components .detail-bind-facts,
body:has(.touch-screen) .mold-detail .product-components .detail-bind-status{padding:0}
body:has(.touch-screen) .thumb-btn.image-load-failed,
body:has(.touch-screen) .inline-image-list button.image-load-failed{position:relative;display:inline-grid;place-items:center;min-width:76px;min-height:64px;background:#f3f7f4;color:var(--muted)}
body:has(.touch-screen) .thumb-btn.image-load-failed:after,
body:has(.touch-screen) .inline-image-list button.image-load-failed:after{content:attr(data-image-label);padding:6px;font-size:12px;line-height:1.2;text-align:center}
body:has(.touch-screen) .thumb-btn.image-load-failed img,
body:has(.touch-screen) .inline-image-list button.image-load-failed img{display:none}
@media(max-width:900px){
  body:has(.touch-screen) .modal-wrap{padding:10px}
  body:has(.touch-screen) .modal.order-detail,
  body:has(.touch-screen) .modal.warehouse-detail{max-height:calc(100vh - 20px);padding:16px}
  body:has(.touch-screen) .warehouse-detail .modal-head{top:-16px;margin:-16px -16px 12px;padding:14px 16px}
  body:has(.touch-screen) .warehouse-detail .task-action,
  body:has(.touch-screen) .warehouse-detail .route-choice{bottom:-16px;margin:16px -16px -16px;padding:14px 16px}
  body:has(.touch-screen) .component-row{grid-template-columns:1fr}
  body:has(.touch-screen) .component-row strong{text-align:left}
  body:has(.touch-screen) .screen-issue-meta{grid-template-columns:1fr}
  body:has(.touch-screen) .mold-issue-detail,
  body:has(.touch-screen) .mold-detail{max-height:calc(100vh - 20px);padding:16px}
  body:has(.touch-screen) .mold-issue-detail .modal-head,
  body:has(.touch-screen) .mold-detail .modal-head{top:-16px;margin:-16px -16px 12px;padding:14px 16px}
  body:has(.touch-screen) .mold-issue-detail .customer-detail-actions,
  body:has(.touch-screen) .mold-detail .form-actions{bottom:-16px;margin:16px -16px -16px;padding:14px 16px}
}
@media(max-width:800px){
  .inbound-panel{padding:15px}
  .inbound-panel h2{font-size:20px}
  .inbound-panel form{max-width:none !important;padding-bottom:78px}
  .inbound-panel .field{margin-bottom:12px}
  .inbound-panel .field span{font-size:14px}
  .inbound-panel input,.inbound-panel select,.inbound-panel textarea{min-height:44px}
  .inbound-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}
  .inbound-tabs button{min-height:46px;padding:10px}
  .inbound-panel form>.warehouse-main-btn{
    position:fixed;
    left:16px;
    right:16px;
    bottom:12px;
    z-index:10;
    width:auto;
    box-shadow:0 12px 34px rgba(23,36,30,.18);
  }
  .location-select-row{align-items:stretch}
  .location-select-row .location-plus{flex:0 0 48px;height:auto}
  .location-box{margin-top:14px}
  .location-list span{font-size:13px}
  .warehouse-stock-banner{padding:12px}
  .warehouse-stock-banner div{align-items:flex-start}
  .warehouse-stock-banner p{font-size:14px}
  .custom-relation-box{grid-template-columns:minmax(0,1fr) 46px;padding:12px}
  .custom-relation-row{
    grid-template-columns:minmax(0,1fr) 74px 36px;
    grid-template-areas:
      "select qty remove"
      "note note note";
    align-items:start;
  }
  .custom-relation-row select{grid-area:select}
  .custom-relation-row input{grid-area:qty}
  .custom-relation-row span{grid-area:note}
  .custom-relation-row button{grid-area:remove}
  .selected-product strong{font-size:15px;line-height:1.35}
  .selected-product strong em{font-size:18px;font-style:normal;color:var(--green)}
  #stock-count-selected .empty{padding:18px 12px}
  #sales-order-form{gap:12px;padding-bottom:76px}
  #sales-order-form .panel{padding:15px}
  #sales-order-form h2{font-size:19px}
  #sales-order-form .field{margin-bottom:13px}
  #sales-order-form .field span{font-size:14px}
  #sales-order-form input,#sales-order-form textarea,#sales-order-form select{min-height:44px}
  #sales-order-form .simple-order-head{z-index:20}
  #sales-order-form .order-info-panel{position:relative;z-index:2;padding-bottom:86px}
  #sales-order-form .order-info-panel>.warehouse-main-btn{
    position:fixed;
    left:16px;
    right:16px;
    bottom:12px;
    z-index:10;
    width:auto;
    box-shadow:0 12px 34px rgba(23,36,30,.18);
  }
  .selected-product{grid-template-columns:minmax(0,1fr);align-items:start}
  .selected-product .tag{width:max-content}
  .selected-product .reselect-btn{width:100%;min-height:42px}
  .store-batch-list,.store-batch-quantity-list{max-height:42vh}
  .store-batch-steps{overflow:auto;padding-bottom:2px}
  .store-batch-summary{grid-template-columns:1fr}
  .store-batch-toolbar{grid-template-columns:1fr}
  .store-batch-toolbar .ghost{width:100%;min-height:42px}
  .store-batch-row{grid-template-columns:24px minmax(0,1fr);align-items:start}
  .store-batch-row>strong{grid-column:2}
  .store-batch-row>span,.store-batch-qty-row>span{grid-template-columns:50px minmax(0,1fr);column-gap:9px}
  .store-batch-row .store-card-image,.store-batch-qty-row .store-card-image{width:50px;height:50px}
  .store-batch-qty-row{grid-template-columns:minmax(0,1fr) 92px auto;gap:8px}
  .store-batch-bottom-actions{position:sticky;bottom:-16px;z-index:4;display:grid;grid-template-columns:1fr;margin:0 -16px -16px;padding:12px 16px;background:rgba(255,255,255,.96);border-top:1px solid var(--line);backdrop-filter:blur(10px)}
  .store-batch-bottom-actions button{width:100%;min-height:46px}
  .order-component-box{padding:12px;margin-top:12px}
  .order-component-box h3{font-size:18px}
  .order-component-add{grid-template-columns:1fr}
  .order-component-add .ghost{width:100%}
  .order-component-row{
    grid-template-columns:minmax(0,1fr) 76px 36px;
    grid-template-areas:
      "main qty remove"
      "unit unit unit";
    align-items:start;
    gap:8px;
  }
  .order-component-row>span{grid-area:main;align-items:flex-start}
  .order-component-row input{grid-area:qty;width:76px}
  .order-component-row em{grid-area:unit;white-space:normal;font-size:13px}
  .order-component-row button{grid-area:remove}
  .order-component-row b,.order-component-row small{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
  .attachment-list{gap:7px}
  .attachment-chip{grid-template-columns:42px minmax(0,1fr) 34px}
  .attachment-chip img{width:42px;height:42px}
  .attachment-chip span{white-space:normal;line-height:1.25}
  .store-order-modal .modal{width:100%;max-height:calc(100vh - 20px);padding:16px}
  .store-order-modal .modal-head{position:sticky;top:-16px;z-index:4;margin:-16px -16px 12px;padding:14px 16px;background:#fff;border-bottom:1px solid var(--line)}
  .store-order-modal .form-actions{position:sticky;bottom:-16px;z-index:4;display:grid;grid-template-columns:1fr;gap:8px;margin:16px -16px -16px;padding:12px 16px;background:rgba(255,255,255,.96);border-top:1px solid var(--line);backdrop-filter:blur(10px)}
  .store-order-modal .form-actions button{width:100%;min-height:46px}
  .inbound-results{max-height:min(280px,52vh)}
  .result-row{grid-template-columns:1fr}
  .detail-link{border-left:0;border-top:1px solid #edf2ee;min-height:38px;text-align:left}
  .warehouse-orders-page{gap:10px}
  .warehouse-orders-page>.form-actions{justify-content:stretch;margin-top:0}
  .warehouse-orders-page>.form-actions .ghost{width:100%}
  .order-tabs{display:flex;grid-template-columns:none;gap:8px;overflow-x:auto;margin:0 -16px 10px;padding:0 16px 4px;scroll-snap-type:x proximity}
  .order-tabs button{flex:0 0 auto;min-width:128px;min-height:48px;padding:9px 11px;scroll-snap-align:start}
  .order-tabs button b{min-width:26px;height:26px}
  .warehouse-order-hint{align-items:stretch;flex-direction:column;padding:12px}
  .warehouse-order-hint b{font-size:16px}
  .warehouse-order-hint span,.warehouse-order-hint em{font-size:13px}
  .hint-actions{justify-content:stretch}
  .hint-actions button{width:100%;min-height:42px}
  .warehouse-order-search{margin-top:0}
  .order-workbench-summary{grid-template-columns:1fr 1fr;gap:8px;margin:0 0 8px}
  .order-workbench-summary div{padding:10px}
  .order-workbench-summary b{font-size:20px}
  .order-workbench-list{gap:10px}
  .order-workbench-row{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "main action"
      "meta meta"
      "process status"
      "attention attention";
    align-items:start;
    gap:10px;
    padding:12px;
  }
  .order-row-main{grid-area:main}
  .order-row-meta{grid-area:meta;grid-template-columns:1fr;gap:6px}
  .order-row-meta span{white-space:normal;border-radius:8px;background:#f6f8f5;padding:7px 9px;overflow-wrap:anywhere}
  .order-row-process{grid-area:process;border-radius:8px;background:#f7faf8;padding:7px 9px}
  .order-row-status{grid-area:status;border-radius:8px;background:#f7faf8;padding:7px 9px}
  .order-row-attention{grid-area:attention;justify-content:flex-start;align-self:center}
  .order-workbench-row>.order-row-action,.order-workbench-row>.order-row-quick-action{grid-area:action}
  .order-row-main strong{font-size:17px}
  .order-row-main small{font-size:13px}
  .order-row-title{gap:6px}
  .order-row-action,.order-row-quick-action{min-height:38px}
  .inventory-pagination{display:grid;gap:8px}
  .page-actions{justify-content:flex-start;margin-top:8px}
  .page-actions button,.page-actions span{min-height:38px;padding:8px 11px}
  .page-jump{justify-content:flex-start;margin-top:0}
  .page-jump label{display:flex;align-items:center;gap:6px}
  .modal-wrap{align-items:stretch;padding:10px}
  .modal.order-detail,.modal.product-detail{width:100%;max-height:calc(100vh - 20px);padding:16px;overflow:auto}
  .modal.order-detail .modal-head,.modal.product-detail .modal-head{position:sticky;top:-16px;z-index:4;align-items:flex-start;gap:10px;margin:-16px -16px 12px;padding:14px 16px;background:#fff;border-bottom:1px solid var(--line)}
  .modal.order-detail .modal-head h2,.modal.product-detail .modal-head h2{font-size:20px;line-height:1.25;overflow-wrap:anywhere}
  .modal.order-detail .close,.modal.product-detail .close{display:grid;place-items:center;min-width:44px;min-height:44px;border-radius:10px;background:#f3f7f4;font-size:26px}
  .customer-detail-actions,.product-detail-actions{position:sticky;bottom:-16px;z-index:4;display:grid;grid-template-columns:1fr;gap:8px;margin:16px -16px -16px;padding:12px 16px;background:rgba(255,255,255,.96);border-top:1px solid var(--line);backdrop-filter:blur(10px)}
  .customer-detail-actions button,.product-detail-actions button{width:100%;min-height:46px}
  .detail-bind-row{grid-template-columns:1fr;align-items:flex-start}
  .detail-bind-side{justify-content:flex-start;text-align:left}
  .detail-bind-facts{white-space:normal}
  .collapsible-section summary{grid-template-columns:minmax(0,1fr) auto;gap:8px}
  .order-detail-overview{grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 12px}
  .order-detail-overview div{padding:10px}
  .order-detail-overview span{font-size:13px}
  .order-detail-overview b{font-size:16px}
  .order-process-detail{margin:12px 0}
  .order-process-detail h3,.detail-images h3{font-size:17px}
  .order-basic-info{grid-template-columns:1fr}
  .order-basic-info>div:not(.pick-list),.order-process-detail>div:not(.pick-list){grid-template-columns:1fr;gap:4px}
  .order-line-items .pick-list div,.order-component-detail .pick-list div{display:grid;grid-template-columns:minmax(0,1fr);align-items:flex-start;gap:8px}
  .order-line-items .pick-list strong,.order-component-detail .pick-list strong{min-width:0;text-align:left;font-size:16px}
  .order-line-items .pick-list span small,.order-component-detail .pick-list span small{font-size:13px}
  .component-requirements{padding:0}
  .component-requirements .collapsible-body{padding:0 12px 12px}
  .component-row{display:grid;grid-template-columns:1fr;gap:8px;padding:12px 0;border-top:1px solid #edf2ee}
  .component-row:first-of-type{border-top:0}
  .component-row strong{text-align:left}
  .component-row .tag{width:max-content}
  .product-detail .product-detail-hero{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;align-items:start;margin-bottom:12px}
  .product-detail .product-detail-image-frame{width:96px;height:96px;min-height:96px}
  .product-detail .product-detail-summary{min-width:0}
  .product-detail .product-detail-title{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
  .product-detail .product-detail-meta{display:grid;grid-template-columns:1fr;gap:7px;margin-top:8px}
  .product-detail .product-detail-meta p{display:grid;grid-template-columns:58px minmax(0,1fr);gap:8px;margin:0;border:1px solid var(--line);border-radius:9px;background:#f7faf8;padding:8px 10px}
  .product-detail .product-detail-meta b{font-size:14px}
  .product-detail .product-detail-meta span{font-size:15px;overflow-wrap:anywhere}
  .product-detail .product-detail-section{font-size:15px}
  .product-detail .section-head h3,.product-detail .collapsible-section summary{font-size:18px}
  .product-detail .collapsible-section summary small,.product-detail .section-head small{font-size:15px}
  .product-detail .detail-bind-row{grid-template-columns:1fr;gap:8px;padding:13px 0}
  .product-detail .detail-bind-copy b{font-size:16px}
  .product-detail .detail-bind-meta{font-size:14px}
  .product-detail .detail-bind-facts{font-size:15px}
  .product-detail .stock-summary-row{grid-template-columns:1fr;gap:8px}
  .product-detail .stock-summary-row div{padding:11px 12px}
  .product-detail .stock-locations div{align-items:flex-start;flex-direction:column;gap:4px}
  body:has(.touch-screen) .mold-detail .product-components .detail-bind-row{grid-template-columns:1fr}
  body:has(.touch-screen) .mold-detail .product-components .detail-bind-side{justify-content:flex-start;text-align:left}
}
@media(max-width:420px){
  .order-workbench-summary{grid-template-columns:1fr}
  .order-workbench-row{
    grid-template-columns:1fr;
    grid-template-areas:
      "main"
      "meta"
      "process"
      "status"
      "attention"
      "action";
  }
  .order-row-attention{justify-content:flex-start}
  .order-workbench-row>.order-row-action,.order-workbench-row>.order-row-quick-action{width:100%}
  .order-detail-overview{grid-template-columns:1fr}
  .product-detail .product-detail-hero{grid-template-columns:1fr}
  .product-detail .product-detail-image-frame{width:100%;height:auto;min-height:0;aspect-ratio:4/3}
}
@media(max-width:800px){
  .store-list-grid,.store-product-grid{gap:12px}
  .store-card,.store-product-card{
    grid-template-columns:118px minmax(0,1fr);
    grid-template-areas:"image copy" "image meta";
    height:auto;
    min-height:138px;
    overflow:visible;
  }
  .store-card-image{
    width:118px;
    height:100%;
    min-height:138px;
    align-self:stretch;
  }
  .store-card-copy{
    min-width:0;
    align-content:start;
    gap:5px;
    padding:13px 12px 5px;
  }
  .store-card-copy strong{
    font-size:19px;
    line-height:1.28;
    -webkit-line-clamp:2;
  }
  .store-card-copy small,.store-card-copy em{
    display:-webkit-box;
    white-space:normal;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
    text-overflow:clip;
    line-height:1.35;
  }
  .store-card-metrics{
    min-width:0;
    flex-wrap:wrap;
    align-self:end;
    justify-content:flex-start;
    gap:8px;
    padding:5px 12px 12px;
    white-space:normal;
  }
  .store-card-metrics .tag{font-size:13px;padding:4px 9px}
  .store-card-metrics b{min-height:32px;padding:5px 12px;font-size:14px}
  .store-card-metrics .tag,.store-card-metrics b{flex:0 0 auto}
  .store-card-metrics small{max-width:none;text-align:left;flex:1 1 100%}
  .store-detail-panel{padding-top:10px}
  .store-detail-hero{
    grid-template-columns:96px minmax(0,1fr);
    grid-template-areas:"image title";
    align-content:start;
    align-items:start;
    min-height:0;
    height:auto;
    overflow:visible;
  }
  .store-detail-media{
    width:96px;
    height:96px;
    min-height:96px;
    align-self:start;
  }
  .store-detail-image-frame{
    width:96px;
    height:96px;
    min-height:96px;
  }
  .store-detail-title{
    justify-content:flex-start;
    padding:10px 12px;
  }
  .store-detail-title h2{
    margin:1px 0 5px;
    font-size:21px;
    line-height:1.25;
  }
  .store-detail-title p{
    -webkit-line-clamp:3;
    line-height:1.35;
  }
  .store-detail-facts{
    gap:6px;
    margin-top:8px;
  }
  .store-detail-facts span{
    max-width:100%;
    min-height:26px;
    white-space:normal;
    overflow-wrap:anywhere;
    font-size:14px;
    padding:5px 10px;
  }
  .store-detail-hero .store-detail-actions{
    display:none;
  }
  .store-detail-hero .store-detail-actions:empty{display:none}
  .store-mobile-actions{display:flex}
  .store-detail-products .store-product-card{
    grid-template-columns:118px minmax(0,1fr);
    height:auto;
    min-height:138px;
  }
  .store-detail-products .store-product-card .store-card-image{
    width:118px;
    height:100%;
    min-height:138px;
  }
}
[data-font-size="large"] .store-detail-facts span{font-size:16px;min-height:32px;padding:6px 12px}
@media(max-width:800px){
  [data-font-size="large"] .store-detail-facts span{font-size:17px;min-height:34px;padding:6px 12px}
}
.image-preview-stage{
  position:relative;
  display:grid;
  place-items:center;
  min-height:220px;
  max-height:66vh;
  overflow:auto;
  background:#f4f7f5;
  border-radius:9px;
}
.image-preview-stage.is-loading:after{
  content:"正在加载原图";
  position:absolute;
  right:10px;
  bottom:10px;
  border:1px solid #cfe1d7;
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:#285541;
  padding:5px 9px;
  font-size:12px;
  font-weight:800;
  box-shadow:0 6px 18px rgba(23,36,30,.08);
  pointer-events:none;
}
.zoomable-image{transition:transform .12s ease}
.zoomable-image.preview-loading{background:#eef3f0}
.sku-workflow-summary{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:10px;
  margin:12px 0 14px;
}
.sku-workflow-summary div{
  min-width:0;
  border:1px solid #d8e6de;
  border-radius:10px;
  background:#fff;
  padding:12px 14px;
}
.sku-workflow-summary span{
  display:block;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}
.sku-workflow-summary b{
  display:block;
  margin-top:4px;
  font-size:17px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.sku-workflow-summary small{
  display:block;
  margin-top:3px;
  color:#5b7669;
  font-size:12px;
  font-weight:700;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.sku-type-guide{
  display:grid;
  gap:3px;
  margin:12px 0;
  border:1px solid #d8e6de;
  border-radius:10px;
  background:#f7fbf8;
  padding:12px 14px;
}
.sku-type-guide b{
  color:#285541;
  font-size:16px;
  line-height:1.25;
}
.sku-type-guide span,
.sku-type-guide small{
  color:#5b7669;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.sku-type-guide small{font-weight:800}
.sku-form-modal .row{
  align-items:start;
}
.mold-workflow-summary{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:10px;
  margin:12px 0 14px;
}
.mold-workflow-summary div{
  min-width:0;
  border:1px solid #d8e6de;
  border-radius:10px;
  background:#fff;
  padding:12px 14px;
}
.mold-workflow-summary span{
  display:block;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}
.mold-workflow-summary b{
  display:block;
  margin-top:4px;
  font-size:17px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.mold-workflow-summary small{
  display:block;
  margin-top:3px;
  color:#5b7669;
  font-size:12px;
  font-weight:700;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.mold-issue-group-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:12px 0;
  border-top:1px solid var(--line);
}
.mold-issue-group-row b,
.mold-issue-group-row small{display:block;overflow-wrap:anywhere}
.mold-issue-group-row small{color:var(--muted)}
.mold-issue-mini-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  width:100%;
  border:0;
  border-top:1px solid #edf2ee;
  background:#fff;
  padding:10px 0;
  text-align:left;
}
.mold-issue-mini-row span{display:flex;align-items:center;gap:8px;min-width:0}
.mold-issue-mini-row b,
.mold-issue-mini-row small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mold-issue-mini-row small{color:var(--muted)}
@media(max-width:800px){
  .mold-workflow-summary{grid-template-columns:1fr;gap:8px}
  .mold-issue-group-row,
  .mold-issue-mini-row{grid-template-columns:1fr;align-items:flex-start}
  .mold-issue-mini-row span{align-items:flex-start}
  .mold-issue-mini-row b,
  .mold-issue-mini-row small{white-space:normal}
}
.order-handling-summary{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:10px;
  margin:12px 0 14px;
}
.order-handling-summary div{
  min-width:0;
  border:1px solid #d8e6de;
  border-radius:10px;
  background:#fff;
  padding:12px 14px;
}
.order-handling-summary span{
  display:block;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}
.order-handling-summary b{
  display:block;
  margin-top:4px;
  font-size:17px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.order-stock-detail .pick-list strong small,
.order-component-detail .pick-list strong small{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.order-attachment-detail .thumb-list{
  margin-bottom:10px;
}
.attachment-detail-list{
  display:grid;
  gap:8px;
}
.attachment-detail-list button{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  width:100%;
  border:1px solid var(--line);
  border-radius:9px;
  background:#f8fbf9;
  padding:9px 10px;
  text-align:left;
}
.attachment-detail-list span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:800;
}
.attachment-detail-list small{
  color:var(--green);
  font-weight:800;
}
.after-sales-list{display:grid;gap:8px}
.after-sales-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;border:1px solid var(--line);border-radius:10px;background:#fff;padding:12px}
.after-sales-row.open,.after-sales-row.processing{border-color:#ead6b6;background:#fffaf2}
.after-sales-row.resolved{border-color:#cfe1d7;background:#f5fbf7}
.after-sales-row.rejected{border-color:#efc7c3;background:#fff7f5}
.after-sales-row b{display:block;margin-top:4px;font-size:16px}
.after-sales-row p{margin:4px 0 0;color:#40534a;line-height:1.45}
.after-sales-row small{display:block;margin-top:4px;color:var(--muted);line-height:1.35}
.after-sales-result{color:#8b5a1f}
.after-sales-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.after-sales-actions button{min-height:34px}
[data-font-size="large"] .order-handling-summary span{font-size:16px}
[data-font-size="large"] .order-handling-summary b{font-size:20px}
@media(max-width:800px){
  .order-handling-summary{grid-template-columns:1fr;gap:8px}
  .order-handling-summary div{padding:10px 12px}
  .order-basic-info{grid-template-columns:1fr}
  .order-basic-info h3{grid-column:auto}
  .order-process-detail>div:not(.pick-list),
  .order-basic-info>div:not(.pick-list){
    grid-template-columns:1fr;
    gap:3px;
  }
  .order-line-items .pick-list div,
  .order-component-detail .pick-list div,
  .order-stock-detail .pick-list div{
    align-items:flex-start;
    flex-direction:column;
  }
  .order-line-items .pick-list strong,
  .order-component-detail .pick-list strong,
  .order-stock-detail .pick-list strong{
    min-width:0;
    width:100%;
    text-align:left;
  }
  .attachment-detail-list button{grid-template-columns:1fr}
  .attachment-detail-list small{font-size:13px}
  .after-sales-row{grid-template-columns:1fr}
  .after-sales-actions{justify-content:flex-start}
}
