/* Approved warehouse workspace. Business actions remain owned by app/portal. */
.warehouse-main{--accent:#ff6818;--primary:#ff6818;--nav-bg:#fffaf6;--text:#17202f;--muted:#778297;--border:#ece8e3;--card-bg:#fff;--bg:#fcf9f5;background:#fcf9f5;color:#17202f}
.warehouse-nav{width:224px;min-width:224px;background:#fffcf8;color:#202634;border-right:1px solid #f0e6dc;padding:0 10px 8px 0}
.warehouse-nav .portal-brand{display:flex;align-items:center;gap:12px;padding:15px 18px 14px;font-size:25px;color:#111923;border-bottom:1px solid #f6e8dc}
.warehouse-nav .portal-brand>.warehouse-chrome-icon{width:42px;height:42px;color:#ff6818}
.warehouse-nav .portal-brand small{color:#8b929c;font-size:11px;letter-spacing:1px;margin-top:3px}
.warehouse-nav h3{margin:17px 14px 6px;color:#ff6012;font-size:15px;letter-spacing:0;border-left:3px solid #ff6818;padding-left:10px;line-height:20px}
.warehouse-nav>button,.warehouse-nav .warehouse-more button{color:#343943;display:flex;align-items:center;gap:12px;font-size:14px;padding:9px 15px 9px 23px;min-height:37px;border-radius:0 6px 6px 0;transition:background .15s}
.warehouse-nav>button.active{background:#fff0e1;color:#f55b0b;border-left:3px solid #ff6818;padding-left:20px;font-weight:700}
.warehouse-nav button:hover{background:#fff2e7}.warehouse-nav .portal-person{background:#fffcf8;color:#7e8390;font-size:11px;padding:10px 18px}
.warehouse-nav .warehouse-more{color:#555d69;margin:13px 0}.warehouse-more summary{padding:10px 18px;font-size:13px}
.warehouse-chrome-icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;flex:none}.warehouse-chrome-icon svg{width:100%;height:100%}
.warehouse-main .warehouse-header{padding:0 22px;min-height:52px;height:52px;background:#fff;border-bottom:1px solid #f1e8e0;display:block}
.warehouse-main .warehouse-topline{height:100%;display:flex;gap:18px;align-items:center;width:100%}.warehouse-main .warehouse-top-title{margin:0;font-size:24px;white-space:nowrap;letter-spacing:.3px;color:#151d2a}
.warehouse-main .warehouse-top-tools{margin-left:auto;display:flex;align-items:center;gap:14px;min-width:0}.warehouse-main .warehouse-context{display:flex;align-items:center;gap:9px;color:#5d687b;font-size:13px}
.warehouse-main .warehouse-context>.warehouse-chrome-icon{color:#ff6818}.warehouse-main .warehouse-clock{display:flex;align-items:center;gap:5px;font-size:12px;color:#6b7280}.warehouse-main .warehouse-clock .warehouse-chrome-icon{color:#ff6818;width:17px;height:17px}
.warehouse-main .warehouse-context select{height:32px;min-width:135px;max-width:240px;border:1px solid #e4e6eb;background:#fff;color:#26334c;border-radius:5px}
.warehouse-main .warehouse-pagebar{display:flex;align-items:center;gap:14px;min-height:66px;padding:10px 22px;flex-shrink:0;background:linear-gradient(100deg,#fcf7f1,#fff)}
.warehouse-main .warehouse-pagebar h1{margin:0;font-size:28px;font-weight:750;letter-spacing:.6px;line-height:1.3;color:#151c29}.warehouse-main .warehouse-pagebar .warehouse-page-actions{margin-left:auto;display:flex;align-items:center;gap:10px}
.warehouse-main .portal-btn{border:1px solid #e1e4e9;color:#3e495d;background:#fff;border-radius:5px;min-height:34px;padding:7px 13px;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;transition:box-shadow .15s,background .15s}
.warehouse-main .portal-btn:hover:not(:disabled){border-color:#ffa477;background:#fff8f1}.warehouse-main .portal-btn.primary{background:linear-gradient(115deg,#ff761e,#ff5900);color:white;border-color:#ff6715;box-shadow:0 2px 5px #ff6a1617}
.warehouse-main .portal-btn:focus-visible,.warehouse-main input:focus,.warehouse-main select:focus,.warehouse-main textarea:focus{outline:2px solid #ff9a5f;outline-offset:1px}
.warehouse-main .portal-btn:disabled{opacity:.45;cursor:not-allowed}.warehouse-main .portal-page{padding:0 22px 16px;background:#fcf9f5;color:#243044;overflow:auto;min-height:0}.warehouse-main .portal-toolbar{gap:10px;margin-bottom:10px;padding:10px;background:#fff;border:1px solid #eee9e3;border-radius:7px}
.warehouse-main .portal-toolbar .portal-status{font-size:11px}.warehouse-main input,.warehouse-main select,.warehouse-main textarea{font:inherit;color:#27344a;border:1px solid #e0e5ec;border-radius:5px;background:#fff;padding:7px 10px;min-width:0}.warehouse-main input[type=checkbox]{accent-color:#ff6818;width:16px;height:16px;flex:none}.warehouse-main .portal-search{min-width:230px;flex:0 1 370px}.warehouse-main .portal-date{max-width:155px}
.warehouse-main .warehouse-product-search{display:flex;align-items:center;border:1px solid #e0e5ec;border-radius:5px;gap:8px;background:white;padding-left:12px;color:#8d94a3}.warehouse-main .warehouse-product-search input{border:0;width:255px;height:36px;padding:7px}
.warehouse-main .portal-note{border:1px solid #ffe3ca;background:#fff4e9;color:#9b5c30;border-radius:5px;padding:7px 12px;margin:7px 0;font-size:12px;line-height:1.45}.warehouse-main .portal-sync-note{font-size:10px;color:#9098a5;margin:7px 0 0}.warehouse-main .portal-state{border-color:#eee8e1;background:#fff;color:#87909d;padding:36px 14px}
.warehouse-main .portal-notice{margin:7px 0;padding:8px 12px}.warehouse-main .portal-table-wrap{border:0;border-radius:0;background:#fff;min-width:0}.warehouse-main .portal-table{color:#34405a;font-size:12px;table-layout:auto}.warehouse-main .portal-table th{background:#f1f4f7;color:#647289;padding:8px 10px;position:sticky;top:0;z-index:2;border-bottom:1px solid #e5ebef;font-weight:500}.warehouse-main .portal-table td{padding:7px 10px;border-top:1px solid #edf0f4;max-width:250px;line-height:1.4}.warehouse-main .portal-table tr:hover td{background:#fffaf4}.warehouse-main .portal-table tr.selected td{background:#fff0e2}.warehouse-main .portal-table tr.selected td:first-child{box-shadow:inset 3px 0 #ff6818}.warehouse-main .portal-table tbody tr{cursor:pointer}.warehouse-main .portal-table td:first-child{font-weight:600;color:#252d3b}.warehouse-main .portal-table .portal-btn{min-height:25px;font-size:11px;padding:3px 7px}
.warehouse-main .portal-badge{background:#e9fbf0;color:#0e9860;border-radius:5px;padding:2px 7px;font-size:11px;white-space:nowrap}.warehouse-main .portal-badge:before{content:'●';margin-right:5px}.warehouse-main .portal-badge.off{background:#f1f3f6;color:#7e899a}
.warehouse-main .warehouse-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,.92fr);gap:12px;min-height:440px;align-items:stretch}.warehouse-main .warehouse-split.products{grid-template-columns:minmax(0,2fr) minmax(350px,1fr)}
.warehouse-main .warehouse-list-panel,.warehouse-main .warehouse-detail-panel,.warehouse-main .warehouse-panel{border:1px solid #eee8e1;border-radius:7px;background:#fff;min-width:0;overflow:hidden;box-shadow:0 2px 9px #423c3203}
.warehouse-main .warehouse-list-panel{display:flex;flex-direction:column;min-height:0}.warehouse-main .warehouse-list-panel>.portal-table-wrap{flex:1;max-height:calc(100vh - 294px);overflow:auto}.warehouse-main .warehouse-detail-panel{min-height:440px;position:relative;align-self:stretch;max-height:calc(100vh - 206px);overflow:auto}
.warehouse-main .warehouse-panel-title{font-size:16px;margin:0 0 10px;padding-left:10px;border-left:3px solid #ff6818;color:#242c38}.warehouse-main .warehouse-detail-placeholder{padding:26px 18px;color:#87919e;text-align:center;display:grid;place-content:center;min-height:360px;gap:12px}.warehouse-main .warehouse-detail-placeholder .warehouse-chrome-icon{width:44px;height:44px;margin:auto;color:#ffd1ad}
.warehouse-main .warehouse-summary{display:flex;gap:0;background:#fff;border:1px solid #eee8e1;border-radius:7px;padding:13px 18px;margin-bottom:12px}.warehouse-main .warehouse-summary>div{flex:1;display:flex;align-items:center;gap:12px;border-right:1px solid #eee;padding-left:16px}.warehouse-main .warehouse-summary>div:last-child{border:0}.warehouse-main .warehouse-summary .warehouse-chrome-icon{width:36px;height:36px;padding:7px;background:#fff2e7;border-radius:10px;color:#ff6818}.warehouse-main .warehouse-summary strong{font-size:23px;margin-right:4px;color:#1e2530}.warehouse-main .warehouse-summary small{font-size:12px;color:#6b778a;display:block}
.warehouse-main .warehouse-categories{display:flex;align-items:center;gap:0;padding:9px 10px;overflow-x:auto;border-bottom:1px solid #f0ede8;flex:none}.warehouse-main .warehouse-categories .portal-btn{border-radius:0;min-height:31px;padding:5px 12px;font-size:12px;flex:none}.warehouse-main .warehouse-categories .portal-btn:first-child{border-radius:5px 0 0 5px}.warehouse-main .warehouse-categories .category-manage{margin-left:auto;border:0;gap:5px;padding:5px 8px;background:#fff;color:#263954}.warehouse-main .warehouse-pagination{display:flex;align-items:center;gap:7px;padding:10px;border-top:1px solid #eee;flex:none;font-size:12px;color:#7c8798}.warehouse-main .warehouse-pagination .grow{flex:1}.warehouse-main .warehouse-pagination select{padding:4px}
.warehouse-main .portal-inline-dialog{border:0;border-radius:0;box-shadow:none;width:100%;max-width:none;max-height:none;padding:0;color:#253047;background:#fff;overflow:visible}.warehouse-main .portal-inline-dialog .portal-modal-header{position:sticky;top:0;background:#fff;z-index:5;margin:0;padding:14px 15px;border-bottom:1px solid #eee;display:flex;align-items:center;gap:7px}.warehouse-main .portal-inline-dialog .portal-modal-header h2{font-size:16px;margin:0;padding-left:9px;border-left:3px solid #ff6818;line-height:1.5;flex:1}.warehouse-main .portal-inline-dialog .portal-modal-close{padding:0;width:27px;height:27px;min-height:27px;border:0;font-size:23px;background:transparent;color:#6c7787}
.warehouse-main .portal-inline-dialog>form{padding:14px 15px 0}.warehouse-main .portal-inline-dialog>p,.warehouse-main .portal-inline-dialog>.portal-notice{margin:10px 15px}.warehouse-main .portal-inline-dialog .portal-form{grid-template-columns:1fr;gap:11px}.warehouse-main .portal-inline-dialog .portal-field{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px;align-items:center;font-size:12px}.warehouse-main .portal-inline-dialog .portal-field>span{color:#6d7d96}.warehouse-main .portal-inline-dialog .portal-field input,.warehouse-main .portal-inline-dialog .portal-field select{height:33px;width:100%}.warehouse-main .portal-inline-dialog .portal-field textarea{height:65px;width:100%}.warehouse-main .portal-inline-dialog .portal-form+.portal-toolbar{margin-top:12px}
.warehouse-main .portal-inline-dialog form>.portal-toolbar:last-child{position:sticky;bottom:0;z-index:4;background:#fff;padding:11px 0;margin:14px 0 0;justify-content:flex-end;border:0;border-top:1px solid #eee;border-radius:0;box-shadow:0 -5px 9px #fff}.warehouse-main .portal-inline-dialog .portal-details{display:grid;grid-template-columns:1fr;gap:0;margin:0}.warehouse-main .portal-inline-dialog .portal-details>div{display:flex;padding:10px 0;border-bottom:1px solid #edf0f4;gap:10px;align-items:start}.warehouse-main .portal-inline-dialog .portal-details span{width:110px;flex:none;color:#788497;font-size:12px}.warehouse-main .portal-inline-dialog .portal-details strong{font-weight:500;font-size:13px;word-break:break-word}.warehouse-main .portal-inline-dialog h3{font-size:14px;border-left:3px solid #ff6818;padding-left:9px;margin:16px 0 10px}
.warehouse-main .warehouse-conversion{display:flex;align-items:center;justify-content:space-between;background:#fff4e9;border:1px solid #ffdfc6;padding:9px 12px;color:#c65d19;border-radius:5px;font-size:12px;margin:10px 0}.warehouse-main .warehouse-conversion strong{font-size:18px;color:#ff5e11}
.warehouse-main .sectbar{background:#fff;margin:0 22px 10px;padding:7px 9px;min-height:49px;border:1px solid #eee8e1;border-radius:7px;gap:8px}.warehouse-main .sectbar button{background:#fff;border:1px solid #e6e0db;color:#3e495b;border-radius:24px;padding:8px 20px;font-size:13px}.warehouse-main .sectbar button.active{background:linear-gradient(110deg,#ff821e,#ff6014);color:#fff;border-color:#ff6818}.warehouse-main .sectbar .legend{margin-left:auto;color:#576176;font-size:12px;gap:12px}.warehouse-main .content:not(.portal-page){padding:0 22px 16px;background:#fcf9f5;overflow:auto}
.warehouse-main .region-group{background:#fff;border:1px solid #eee8e1;border-radius:8px;margin:0 0 12px;padding:10px;box-shadow:0 2px 7px #3d280c03}.warehouse-main .region-head{background:#fff!important;border:0!important;color:#202936!important;min-height:33px;height:auto;padding:0 0 9px;gap:10px;display:flex;align-items:center}.warehouse-main .region-head h2{font-size:20px;color:#17202f;display:flex;align-items:center;gap:9px;margin:0}.warehouse-main .region-head h2:before{content:'◇';background:#ff701c;color:#fff;width:30px;height:30px;display:grid;place-items:center;border-radius:6px;font-size:24px}.warehouse-main .region-head .cnt{font-size:11px;border-radius:14px;background:#fff1e4;color:#af6c3d;padding:3px 9px}.warehouse-main .region-head .line{display:none}.warehouse-main .region-head .region-toggle{color:#8a92a0;border:0;background:transparent}
.warehouse-main .status-lane-head{display:none}.warehouse-main .status-scroll{padding:0}.warehouse-main .status-lanes{gap:9px!important}.warehouse-main .cards{gap:9px!important}.warehouse-main .card{border:1px solid #ffdfcd!important;background:#fffcfa!important;box-shadow:none!important;border-radius:7px;height:164px;min-height:164px;padding:0 9px 9px;display:flex;flex-direction:column;gap:0;position:relative;overflow:hidden;color:#222b3b}.warehouse-main .card .row1{order:0;display:flex;align-items:center;flex-wrap:wrap;margin:0 -9px 5px;padding:5px 10px 0;min-height:54px;background:linear-gradient(#fff0e5,#fffcfa)}
.warehouse-main .card .row1 .badge{order:-2;position:static;background:transparent;color:#ff6318;padding:0;width:100%;font-size:11px;font-weight:500;line-height:20px}.warehouse-main .card .row1 .badge:before{content:'●';margin-right:6px}.warehouse-main .card .row1 .dot{display:none}.warehouse-main .card .row1 .name{color:#232c3a;font-size:15px;line-height:23px;font-weight:700;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.warehouse-main .card .row1 .pin{font-size:9px;position:absolute;top:7px;right:7px;background:#ffe4ce;color:#df6c1d}.warehouse-main .card .row2{font-size:11px;line-height:19px;color:#8994a3;min-height:18px}.warehouse-main .card .qty{display:flex;align-items:baseline;gap:4px;margin:auto 0 6px;line-height:1}.warehouse-main .card .qty .label{display:none}.warehouse-main .card .qty .num{font-size:30px;font-weight:750;color:#ee3819}.warehouse-main .card .qty .unit{font-size:15px;color:#ee3819;font-weight:600}.warehouse-main .card .ops{display:flex;gap:5px;width:100%;margin-top:0}.warehouse-main .card .ops button{min-width:0;flex:1;border:1px solid #ff8d52;border-radius:5px;background:#fff;color:#ff6818;font-size:12px;height:31px;min-height:31px;padding:3px 5px}.warehouse-main .card .ops button:first-child{background:linear-gradient(115deg,#ff801d,#ff5c06);color:#fff;border-color:#ff6818}.warehouse-main .card .ops button:disabled{opacity:.4}.warehouse-main .card.st-partial{background:#f3f9ff!important;border-color:#cce4ff!important}.warehouse-main .card.st-partial .row1{background:linear-gradient(#e8f3ff,#f3f9ff)}.warehouse-main .card.st-partial .row1 .badge,.warehouse-main .card.st-partial .qty .num,.warehouse-main .card.st-partial .qty .unit{color:#087bfa}.warehouse-main .card.st-partial .ops button:not(:first-child){color:#087bfa;border-color:#9acaff;background:#f5fbff}.warehouse-main .card.st-done{background:#f0fcf5!important;border-color:#c6edd7!important}.warehouse-main .card.st-done .row1{background:linear-gradient(#e6faee,#f0fcf5)}.warehouse-main .card.st-done .row1 .badge,.warehouse-main .card.st-done .qty .num,.warehouse-main .card.st-done .qty .unit{color:#07965b}.warehouse-main .card.st-done .ops button:first-child{background:transparent;color:#0b9a5c;border:1px solid #8cd5ac}
.warehouse-main .portal-dispatch-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:12px;align-items:start}.warehouse-main .portal-store-card{border:1px solid #eee8df;background:#fff;border-radius:7px;overflow:hidden;min-width:0}.warehouse-main .portal-store-card>header{background:#fff6ed;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #f4e9dc}.warehouse-main .portal-store-card>header strong{color:#27313d;font-size:17px}.warehouse-main .portal-store-card>header small{display:block;color:#9d8875;font-size:11px;margin-top:5px}.warehouse-main .portal-dispatch-line{padding:12px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eff1f4}.warehouse-main .portal-dispatch-line strong{font-size:14px;color:#26313e}.warehouse-main .portal-dispatch-line small{font-size:11px;color:#8a93a2;display:block;margin-top:5px}.warehouse-main .portal-dispatch-columns .portal-inline-dialog .portal-modal-header{padding:8px 12px}.warehouse-main .portal-dispatch-columns .portal-inline-dialog .portal-modal-header h2{font-size:13px}.warehouse-main .portal-dispatch-columns .portal-inline-dialog>form{padding:8px 12px 0}.warehouse-main .dispatch-edit-line{padding:10px 0;border-bottom:1px solid #edf0f4}.warehouse-main .dispatch-edit-line>strong{font-size:14px;color:#222e3c}.warehouse-main .dispatch-edit-controls{display:flex;align-items:center;gap:7px;margin-top:8px}.warehouse-main .dispatch-edit-controls input[type=number]{width:65px;height:29px;padding:3px 6px;text-align:center}.warehouse-main .dispatch-edit-controls .portal-btn{padding:3px 7px;min-height:28px;font-size:12px}.warehouse-main .dispatch-edit-controls .dispatch-price{margin-left:auto;font-size:13px}.warehouse-main .dispatch-total{display:flex;justify-content:space-between;padding:12px 0;color:#6b7789}.warehouse-main .dispatch-total strong{color:#ff6818;font-size:20px}.warehouse-main .dispatch-receipts{display:flex;gap:6px;padding:9px 12px;border-top:1px solid #eee}.warehouse-main .warehouse-production{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(340px,1.2fr) minmax(240px,.7fr);gap:12px}.warehouse-main .warehouse-production>.warehouse-panel{padding:13px}.warehouse-main .warehouse-product-choice{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:11px;border:1px solid #e8ecf1;border-radius:5px;background:#fff;color:#2c3544;margin:6px 0;cursor:pointer}.warehouse-main .warehouse-product-choice.active{border-color:#ff6818;background:#fff6ed}.warehouse-main .warehouse-product-choice .warehouse-chrome-icon{color:#ff6818;width:34px;height:34px}.warehouse-main .warehouse-product-choice strong{display:block;font-size:13px}.warehouse-main .warehouse-product-choice small{display:block;color:#8390a0;font-size:11px;margin-top:5px}.warehouse-main .warehouse-production .portal-inline-dialog .portal-modal-header{display:none}.warehouse-main .warehouse-production .portal-inline-dialog>form{padding:0}.warehouse-main .warehouse-production .production-quantity{background:#fff3e9;padding:14px;border-radius:6px;margin:14px 0;display:flex;align-items:center;justify-content:space-between;color:#bd591d;font-size:13px}.warehouse-main .warehouse-production .production-quantity input{width:100px;text-align:center;font-size:24px;font-weight:700}.warehouse-main .warehouse-label{border:1px solid #ccd0d7;padding:16px;text-align:center;color:#111;background:#fff;min-height:200px;margin:12px 0}.warehouse-main .warehouse-label h3{font-size:20px;margin:0 0 8px}.warehouse-main .warehouse-label h4{border-top:1px solid #333;padding-top:8px;font-size:17px;margin:0 0 14px}.warehouse-main .warehouse-label p{font-size:12px;line-height:1.8;margin:0;text-align:left}.warehouse-main .warehouse-label .barcode{height:40px;background:repeating-linear-gradient(90deg,#111 0 2px,#fff 2px 4px,#111 4px 5px,#fff 5px 8px);margin-top:12px}.warehouse-main .warehouse-label .barcode.preview{background:#eee;height:25px;display:grid;place-content:center;font-size:10px;color:#888}.warehouse-main .warehouse-print-devices{display:flex;gap:5px;margin:8px 0;flex-wrap:wrap}.warehouse-main .warehouse-print-devices button{flex:1}.warehouse-main .warehouse-production-history{margin-top:12px;padding:13px}.warehouse-main .warehouse-production-history .portal-table-wrap{max-height:220px;overflow:auto}
body:has(.warehouse-main)>.portal-modal-mask{color:#263246}.portal-modal-mask:has(+.none),body:has(.warehouse-main) .portal-modal-mask{background:#34291d55}body:has(.warehouse-main)>.portal-modal-mask .portal-btn.primary{background:#ff6818;border-color:#ff6818}body:has(.warehouse-main)>.portal-modal-mask .portal-modal{color:#293446}body:has(.warehouse-main)>.portal-modal-mask .portal-note{background:#fff3e7;border-color:#ffb07d;color:#9c673e}
@media(min-width:1900px){.warehouse-main .warehouse-split.products{grid-template-columns:minmax(0,2.35fr) minmax(360px,1fr)}.warehouse-main .portal-table{font-size:13px}.warehouse-main .portal-table td{padding:9px 12px}.warehouse-main .card{height:176px;min-height:176px}.warehouse-main .card .qty .num{font-size:34px}}
@media(max-width:1200px){.warehouse-nav{width:190px;min-width:190px}.warehouse-main .warehouse-clock{display:none}.warehouse-main .warehouse-pagebar{padding:10px 14px}.warehouse-main .portal-page{padding:0 14px 12px}.warehouse-main .warehouse-split.products{grid-template-columns:minmax(0,1.6fr) 330px}.warehouse-main .warehouse-production{grid-template-columns:240px 1fr}.warehouse-main .warehouse-production>.warehouse-panel:last-child{grid-column:1/-1}.warehouse-main .warehouse-pagebar h1{font-size:24px}}
@media(max-width:850px){.warehouse-nav{width:165px;min-width:165px}.warehouse-nav .portal-brand{font-size:19px;padding:12px}.warehouse-nav>button{font-size:12px;padding-left:13px}.warehouse-main .warehouse-split,.warehouse-main .warehouse-split.products{grid-template-columns:1fr}.warehouse-main .warehouse-detail-panel{max-height:none}.warehouse-main .warehouse-top-title{font-size:18px}.warehouse-main .warehouse-pagebar{flex-wrap:wrap}.warehouse-main .warehouse-pagebar .warehouse-page-actions{margin-left:0}.warehouse-main .warehouse-top-tools{gap:5px}.warehouse-main .warehouse-context>span{display:none}.warehouse-main .warehouse-context select{min-width:95px;max-width:135px}.warehouse-main .warehouse-production{grid-template-columns:1fr}.warehouse-main .warehouse-top-tools>.portal-btn:last-child{display:none}.warehouse-main .warehouse-summary>div{padding-left:2px;gap:4px}}
@media(prefers-reduced-motion:reduce){.warehouse-main *{transition:none!important;animation:none!important}}

/* Exact shell proportions and paired unit fields from the approved reference. */
.portal-nav.warehouse-nav{width:224px;min-width:224px;max-width:224px;box-sizing:border-box}.warehouse-main .warehouse-topline{min-height:0;padding:0}.warehouse-main{font-size:14px}.warehouse-nav>button,.warehouse-nav .warehouse-more button{font-size:15px}.warehouse-nav .portal-brand{font-size:25px;white-space:nowrap}.warehouse-nav .portal-brand small{white-space:normal;letter-spacing:0}
.warehouse-main .portal-table{font-size:14px}.warehouse-main .portal-table td{padding:7px 10px}.warehouse-main .portal-table th{font-size:13px}.warehouse-main .warehouse-categories .portal-btn,.warehouse-main .warehouse-categories select{font-size:13px}.warehouse-main .warehouse-categories select{height:31px;max-width:95px;border-radius:0}.warehouse-main .portal-inline-dialog .portal-field{font-size:13px;grid-column:1/-1}.warehouse-main .portal-inline-dialog .portal-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}.warehouse-main .portal-inline-dialog .portal-field[data-field=unit],.warehouse-main .portal-inline-dialog .portal-field[data-field=output_unit],.warehouse-main .portal-inline-dialog .portal-field[data-field=package_input_count],.warehouse-main .portal-inline-dialog .portal-field[data-field=package_output_count]{grid-column:auto;grid-template-columns:76px minmax(0,1fr);font-size:12px}.warehouse-main .portal-inline-dialog .portal-modal-header{padding:12px 15px}.warehouse-main .portal-inline-dialog>form{padding-top:12px}.warehouse-main .portal-inline-dialog .portal-field input,.warehouse-main .portal-inline-dialog .portal-field select{font-size:14px;height:35px}.warehouse-main .card .qty .lbl{display:inline;font-size:12px;white-space:nowrap}.warehouse-main .region-head .zoom{margin-left:auto;background:transparent;border:0;color:#929aa5;font-size:11px}.warehouse-main .status-head{display:none}.warehouse-main .warehouse-detail-panel .portal-panel-actions{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}

.warehouse-main .card .qty{justify-content:flex-start!important}.warehouse-main .card .card-art{position:absolute;right:10px;top:64px;width:50px;height:50px;color:#ff8c50;opacity:.5;pointer-events:none}.warehouse-main .card.st-partial .card-art{color:#7babef}.warehouse-main .card.st-done .card-art{color:#76b59b}.warehouse-main .card-art svg{width:100%;height:100%}.warehouse-main .card .qty .num{color:#ee3819!important}.warehouse-main .card.st-partial .qty .num{color:#087bfa!important}.warehouse-main .card.st-done .qty .num{color:#07965b!important}.warehouse-main .card .row1 .name{flex:0 0 auto;max-width:100%;margin-right:auto}.warehouse-main .warehouse-product-choice:disabled{opacity:.5;cursor:not-allowed}.warehouse-main .warehouse-production .warehouse-conversion{min-height:45px}.warehouse-main .portal-inline-dialog>.portal-modal-header .portal-badge{font-size:10px}
body:has(.warehouse-main) .portal-modal-mask .portal-btn.primary,body:has(.warehouse-main) .dlg .ok{background:#ff6818;border-color:#ff6818}body:has(.warehouse-main) .portal-modal-mask .portal-note{background:#fff3e8;color:#ae6a36;border-color:#ffbb89}

.warehouse-main .inline-completion{border:0;border-radius:6px;box-shadow:none;padding:12px 0;width:100%;max-width:none;color:#313b4c;background:#fff}.warehouse-main .inline-completion .dlg-header{display:flex;align-items:center;gap:6px;position:sticky;top:0;background:#fff}.warehouse-main .inline-completion h3{font-size:16px;flex:1}.warehouse-main .inline-completion p{font-size:13px;line-height:1.6;color:#728096}.warehouse-main .inline-completion input{width:100%;height:50px;font-size:24px}.warehouse-main .inline-completion .btns{display:flex;gap:10px}.warehouse-main .inline-completion .btns button{flex:1;padding:10px;border-radius:5px;border:1px solid #ff6818;background:#fff;color:#ff6818}.warehouse-main .inline-completion .btns button.ok{background:#ff6818;color:#fff}.warehouse-main .inline-completion .dlg-close{border:0;background:#fff;color:#7c8796;font-size:22px}.warehouse-main .inline-completion .err{color:#ce4936;font-size:12px}

.warehouse-main .warehouse-production{align-items:stretch}.warehouse-main .warehouse-production>.warehouse-panel{height:530px;min-height:0;overflow:auto}.warehouse-main .warehouse-production>.warehouse-panel:first-child .warehouse-product-choice{padding:9px;margin:5px 0}.warehouse-main .warehouse-production-history{min-height:140px}.warehouse-main .warehouse-production .portal-field{margin:12px 0}.warehouse-main .warehouse-production .portal-field textarea{width:100%;min-height:60px}.warehouse-main .warehouse-production .production-quantity{margin:10px 0;padding:13px}.warehouse-main .warehouse-production .warehouse-product-choice{justify-content:space-between}.warehouse-main .warehouse-summary{padding:10px 18px}.warehouse-main .portal-inline-dialog .portal-table{font-size:12px}.warehouse-main .warehouse-pagebar{position:relative;z-index:2}.warehouse-main .warehouse-production .portal-note p{margin:6px 0}
@media(max-width:1200px){.warehouse-main .warehouse-production>.warehouse-panel:last-child{height:auto}}@media(max-width:850px){.warehouse-main .warehouse-production>.warehouse-panel{height:auto;max-height:550px}}

.warehouse-main .portal-inline-dialog .portal-details,.warehouse-main .portal-inline-dialog .portal-details>div{background:#fff}.warehouse-main .warehouse-production .portal-inline-dialog .portal-modal-header{display:flex;min-height:20px;height:20px;padding:0;border:0}.warehouse-main .warehouse-production .portal-inline-dialog .portal-modal-header h2{display:none}.warehouse-main .warehouse-production .portal-inline-dialog .portal-modal-close{margin-left:auto}

.warehouse-main .warehouse-board-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 155px;gap:8px;margin:0 22px 8px;padding:8px;background:#fff;border:1px solid #efe6dd;border-radius:7px;flex-shrink:0}.warehouse-main .warehouse-stat{display:flex;align-items:center;position:relative;gap:11px;min-height:54px;padding:5px 14px;background:linear-gradient(100deg,#fff2e8,#fffaf6);border-radius:5px;color:#ff6818;overflow:hidden}.warehouse-main .warehouse-stat.partial{color:#1285f8;background:linear-gradient(100deg,#eaf4ff,#fafcff)}.warehouse-main .warehouse-stat.done{color:#0aa366;background:linear-gradient(100deg,#eafaef,#fcfffd)}.warehouse-main .warehouse-stat-icon{display:grid;place-items:center;background:#ffdfc7;border-radius:50%;width:34px;height:34px;font-size:24px}.warehouse-main .warehouse-stat.partial .warehouse-stat-icon{background:#d4e9ff}.warehouse-main .warehouse-stat.done .warehouse-stat-icon{background:#d0f2dd}.warehouse-main .warehouse-stat small{font-size:11px;color:#56616f}.warehouse-main .warehouse-stat strong{font-size:25px;line-height:29px}.warehouse-main .warehouse-stat span:not(.warehouse-stat-icon){font-size:11px}.warehouse-main .warehouse-stat-track{position:absolute;bottom:7px;left:98px;right:15px;height:4px;border-radius:4px;background:#f0ebe5}.warehouse-main .warehouse-stat-track i{display:block;height:100%;background:currentColor;border-radius:4px;transition:width .25s ease}.warehouse-main .warehouse-stat-total{display:flex;flex-direction:column;justify-content:center;padding-left:18px;border-left:1px solid #eee8e1}.warehouse-main .warehouse-stat-total strong{font-size:25px}.warehouse-main .warehouse-stat-total small{font-size:10px;color:#8993a0}.warehouse-main .card .qty{justify-content:flex-start!important;text-align:left!important}.warehouse-main .card .qty .num{margin-left:0!important}@media(max-width:850px){.warehouse-main .warehouse-board-summary{margin:0 10px 7px;grid-template-columns:repeat(3,1fr)}.warehouse-main .warehouse-stat{padding:5px 8px;gap:6px}.warehouse-main .warehouse-stat-total{display:none}.warehouse-main .warehouse-stat-track{display:none}}@media(prefers-reduced-motion:reduce){.warehouse-main .warehouse-stat-track i{transition:none}}
/* Back nine pages use the same compact orange/white shell and original controls. */
.warehouse-main .later-panel{padding:12px 14px;margin:0 0 10px;min-width:0}.warehouse-main .later-panel .warehouse-panel-title{font-size:16px;margin:0 0 10px;padding-left:10px;border-left:3px solid #ff6818;color:#242c39}.warehouse-main .later-split{grid-template-columns:minmax(0,1.9fr) minmax(320px,1fr);align-items:start;gap:12px}.warehouse-main .later-split>.warehouse-panel{max-height:calc(100vh - 245px);overflow:auto}.warehouse-main .later-split>.warehouse-panel:first-child{min-height:420px}.warehouse-main .later-split>.warehouse-panel:last-child{min-height:420px}.warehouse-main .later-bills{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}.warehouse-main .later-bills>.warehouse-panel{min-height:250px;max-height:460px;background:#fff;border:1px solid #eee8e2}
.warehouse-main .later-tabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 10px}.warehouse-main .later-tabs>.portal-btn{font-size:12px;min-height:29px;padding:4px 10px;border-color:#e4e8ed;background:#f5f7f9}.warehouse-main .later-tabs>.primary{background:#ff6818;border-color:#ff6818;color:white}.warehouse-main .later-tabs>input{margin-left:auto;width:155px;height:30px;border:1px solid #e6e3de;border-radius:5px;padding:4px 8px}.warehouse-main .later-tabs>strong{margin-left:auto;font-size:14px;color:#f56b21}.warehouse-main .later-date-controls{margin-bottom:9px;padding:8px 10px;background:#fff;border:1px solid #eee8e2;border-radius:6px}.warehouse-main .later-date-controls .portal-field{display:flex;gap:7px;align-items:center;font-size:12px;margin:0}.warehouse-main .later-date-controls input{height:30px;padding:3px 8px}.warehouse-main .portal-toolbar{min-height:0;gap:8px}.warehouse-main .portal-toolbar>.portal-search{height:32px;min-width:200px}.warehouse-main .portal-status{font-size:11px}
.warehouse-main .later-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-bottom:10px}.warehouse-main .later-metrics>div{display:flex;align-items:center;gap:12px;border:1px solid #eee7df;background:linear-gradient(110deg,#fff,#fff8f0);border-radius:7px;padding:13px 18px}.warehouse-main .later-metrics .warehouse-chrome-icon{color:#ff701c;background:#fff0e4;width:39px;height:39px;padding:8px;border-radius:9px}.warehouse-main .later-metrics small{color:#7e8794;font-size:12px;display:block;margin-bottom:4px}.warehouse-main .later-metrics strong{font-size:23px;color:#29303c;font-weight:700}.warehouse-main .later-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(90px,1fr)) auto;gap:8px;align-items:end;margin:0 0 10px;background:white;padding:11px;border:1px solid #eee8e2;border-radius:6px}.warehouse-main .later-filter-grid .portal-field{display:flex;flex-direction:column;gap:5px;font-size:12px}.warehouse-main .later-filter-grid input{width:100%;height:31px;padding:4px 8px;border:1px solid #dfe4e9;border-radius:5px}.warehouse-main .later-scroll{overflow:auto;max-height:480px}.warehouse-main .later-table{white-space:nowrap;width:100%;font-size:13px}.warehouse-main .later-table th{font-size:12px;background:#f2f5f8;font-weight:600}.warehouse-main .later-table td{padding:9px 10px;max-width:280px;overflow:hidden;text-overflow:ellipsis}.warehouse-main .later-table tbody tr[tabindex]{cursor:pointer}.warehouse-main .later-table tbody tr:hover,.warehouse-main .later-table tbody tr.selected{background:#fff2e6}.warehouse-main .later-check{display:flex;align-items:center;gap:5px;font-size:12px;color:#7a8391;margin-bottom:8px}.warehouse-main .later-stock-number{background:#fff4e9;border-radius:7px;padding:18px;margin:12px 0;display:flex;gap:7px;align-items:baseline;color:#fa6815}.warehouse-main .later-stock-number strong{font-size:37px}.warehouse-main .later-total{background:#fff3e7;border:1px solid #ffdfc5;border-radius:7px;padding:15px;margin-bottom:12px;color:#b25920;display:flex;flex-direction:column;gap:7px}.warehouse-main .later-total strong{font-size:30px;color:#fa6515}.warehouse-main .later-total p,.warehouse-main .later-total small{font-size:12px;margin:0;color:#8e7c6d}.warehouse-main .later-entry-table{white-space:nowrap;font-size:13px;width:100%}.warehouse-main .later-entry-table input{width:88px;height:32px;border:1px solid #dfe3e9;border-radius:5px;padding:4px 7px}.warehouse-main .later-entry-table th{background:#f0f4f7;font-size:12px}.warehouse-main .later-entry-table td{padding:8px}.warehouse-main .later-entry-table .portal-btn{min-height:27px;padding:3px 7px;font-size:11px}.warehouse-main .later-entry-table tr.selected{background:#fff3e8}.warehouse-main .later-muted{display:block;font-size:11px;color:#8993a0;margin-top:4px}.warehouse-main .later-omitted{opacity:.55;text-decoration:line-through}.warehouse-main .later-photo{max-width:100%;max-height:260px;object-fit:contain;margin:10px 0}.warehouse-main .later-split .portal-inline-dialog>.portal-modal-header{padding:0 0 9px}.warehouse-main .later-split .portal-inline-dialog>form{padding:0}.warehouse-main .later-split .portal-inline-dialog .portal-form{grid-template-columns:1fr}.warehouse-main .later-split .portal-inline-dialog .portal-field{display:grid;grid-template-columns:85px minmax(0,1fr);gap:8px}.warehouse-main .later-split .portal-inline-dialog .portal-field input{width:100%;min-width:0}.warehouse-main .later-split .portal-details>div{font-size:12px;padding:9px}.warehouse-main .later-split .portal-panel-actions{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.warehouse-main .later-split .portal-note{font-size:11px;line-height:1.6}.warehouse-main .later-split .portal-btn{min-height:30px;font-size:12px}
.warehouse-main .later-charts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}.warehouse-main .later-donut-body{display:flex;align-items:center;gap:20px;min-height:210px}.warehouse-main .later-ring{width:174px;height:174px;flex:none;border-radius:50%;display:grid;place-items:center;box-shadow:0 4px 12px #b9741c09}.warehouse-main .later-ring>div{background:#fff;width:132px;height:132px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.warehouse-main .later-ring small{font-size:11px;color:#8a94a1}.warehouse-main .later-ring strong{font-size:19px}.warehouse-main .later-legend{flex:1;min-width:0;max-height:210px;overflow:auto}.warehouse-main .later-legend>div{display:grid;grid-template-columns:7px minmax(55px,1fr) auto 40px;gap:7px;align-items:center;padding:8px 0;border-bottom:1px solid #f1efec;font-size:12px}.warehouse-main .later-legend i{width:7px;height:7px;display:block;border-radius:50%}.warehouse-main .later-legend strong{font-size:12px;font-weight:600}.warehouse-main .later-legend small{font-size:11px;color:#8b94a0;text-align:right}.warehouse-main .later-legend span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.warehouse-main .later-skin .skin-wrap{padding:0;background:none}.warehouse-main .later-skin .skin-wrap>h2{display:none}.warehouse-main .later-skin .skin-cards{display:flex;flex-direction:column;gap:10px}.warehouse-main .later-skin .skin-card{display:grid;grid-template-columns:250px 1fr;max-width:none;border:1px solid #e5e5e5;background:#fff;border-radius:7px;padding:12px;align-items:center;gap:12px}.warehouse-main .later-skin .skin-card.current{border-color:#ff6818;background:#fffaf4}.warehouse-main .later-skin .pv{height:auto;background:transparent;padding:0}.warehouse-main .later-skin .skin-card>.portal-btn{grid-column:2;justify-self:start}.warehouse-main .later-skin .mini{gap:5px}.warehouse-main .later-skin .skin-note{margin:0 0 10px;font-size:12px}.warehouse-main .later-skin .meta p{font-size:11px}.warehouse-main .later-theme-preview{padding:18px;border:1px solid #e5e5e5;border-radius:7px;display:flex;flex-direction:column;gap:12px}.warehouse-main .later-theme-preview>div{border:1px solid;border-radius:6px;padding:15px;display:flex;flex-direction:column;gap:7px}.warehouse-main .later-theme-preview strong{font-size:20px}.warehouse-main .later-theme-preview small{font-size:11px}
@media(max-width:1250px){.warehouse-main .later-split{grid-template-columns:minmax(0,1.5fr) 320px}.warehouse-main .later-donut-body{gap:12px;flex-wrap:wrap;justify-content:center}.warehouse-main .later-ring{width:145px;height:145px}.warehouse-main .later-ring>div{width:108px;height:108px}.warehouse-main .later-filter-grid{grid-template-columns:repeat(3,minmax(90px,1fr))}.warehouse-main .later-skin .skin-card{grid-template-columns:1fr}.warehouse-main .later-skin .skin-card>.portal-btn{grid-column:auto}}
@media(max-width:900px){.warehouse-main .later-split,.warehouse-main .later-charts{grid-template-columns:1fr}.warehouse-main .later-split>.warehouse-panel{max-height:none}.warehouse-main .later-filter-grid{grid-template-columns:1fr 1fr}.warehouse-main .later-metrics{grid-template-columns:1fr 1fr}}
/* Alternative themes retain the same geometry and visible state labels. */
.warehouse-main[data-warehouse-theme=b_solid]{background:#f4f5f7;color:#262a30}.warehouse-main[data-warehouse-theme=b_solid] .card{background:#fff!important;border-color:#d9dde2!important}.warehouse-main[data-warehouse-theme=b_solid] .card .row1{background:#f5f5f5}.warehouse-main[data-warehouse-theme=b_solid] .card .ops button:first-child{background:#30343a;border-color:#30343a}.warehouse-main[data-warehouse-theme=b_solid] .card.st-partial{border-color:#a9caff!important}.warehouse-main[data-warehouse-theme=b_solid] .card.st-done{border-color:#a2d7b9!important}
.warehouse-main[data-warehouse-theme=c_dark]{background:#25282e;color:#edf0f5}.warehouse-main[data-warehouse-theme=c_dark] .warehouse-panel,.warehouse-main[data-warehouse-theme=c_dark] .region-group{background:#30343c;color:#edf0f5;border-color:#464a53}.warehouse-main[data-warehouse-theme=c_dark] .region-head{background:#30343c!important}.warehouse-main[data-warehouse-theme=c_dark] .region-head h2{color:#fff}.warehouse-main[data-warehouse-theme=c_dark] .card{background:#3b322d!important;border-color:#89553d!important;color:#fff}.warehouse-main[data-warehouse-theme=c_dark] .card .row1{background:#48372d}.warehouse-main[data-warehouse-theme=c_dark] .card .row1 .name{color:#fff}.warehouse-main[data-warehouse-theme=c_dark] .card .row2{color:#c5c8cf}.warehouse-main[data-warehouse-theme=c_dark] .card.st-partial{background:#283b52!important;border-color:#4875a6!important}.warehouse-main[data-warehouse-theme=c_dark] .card.st-partial .row1{background:#2c4561}.warehouse-main[data-warehouse-theme=c_dark] .card.st-done{background:#264535!important;border-color:#458865!important}.warehouse-main[data-warehouse-theme=c_dark] .card.st-done .row1{background:#2d503b}.warehouse-main[data-warehouse-theme=c_dark] .card .ops button{background:#30343c;color:#fca46a}.warehouse-main[data-warehouse-theme=c_dark] .portal-table td{background:#30343c;color:#edf0f5;border-color:#474b55}.warehouse-main[data-warehouse-theme=c_dark] .warehouse-panel-title{color:#fff}.warehouse-main[data-warehouse-theme=c_dark] .later-ring>div{background:#30343c}
.warehouse-main .portal-toolbar .later-date-controls{display:contents}.warehouse-main .portal-toolbar .later-date-controls .portal-field{display:flex;flex-direction:row;align-items:center;gap:5px}.warehouse-main .portal-toolbar .later-date-controls .portal-field>span{font-size:11px;white-space:nowrap}.warehouse-main .portal-toolbar .later-date-controls input{width:132px;height:30px}.warehouse-main .portal-toolbar>.portal-search{width:230px;min-width:160px}.warehouse-main .later-tabs>.portal-btn.primary{background:linear-gradient(110deg,#ff801d,#ff5c06);border-color:#ff6818;color:#fff}.warehouse-main .later-tabs>.portal-btn:disabled{opacity:.45}
body:has(.warehouse-main[data-warehouse-theme=c_dark]) .warehouse-nav{background:#24272e;color:#e9edf2;border-color:#434751}body:has(.warehouse-main[data-warehouse-theme=c_dark]) .warehouse-nav>button,body:has(.warehouse-main[data-warehouse-theme=c_dark]) .warehouse-nav .warehouse-more button,body:has(.warehouse-main[data-warehouse-theme=c_dark]) .warehouse-nav .portal-brand{color:#edf0f5}body:has(.warehouse-main[data-warehouse-theme=c_dark]) .warehouse-nav>button.active{background:#4c3529;color:#ffb282}

/* Final compact proportions matched to the approved 1672 x 941 reference. */
.warehouse-main .warehouse-pagebar .portal-toolbar{padding:0;margin:0;border:0;background:transparent;flex-wrap:nowrap;gap:7px}.warehouse-main .warehouse-pagebar .portal-toolbar>.portal-search{width:210px;min-width:120px}.warehouse-main .warehouse-pagebar .portal-toolbar>.grow{display:none}.warehouse-main .warehouse-pagebar .portal-status{font-size:10px;white-space:nowrap}.warehouse-main .warehouse-pagebar .later-date-controls input{width:126px}.warehouse-main .warehouse-pagebar .portal-toolbar .portal-field{display:flex;flex-direction:row;align-items:center;margin:0;gap:5px}.warehouse-main .warehouse-pagebar .portal-toolbar .portal-btn{font-size:12px;min-height:30px;padding:5px 10px}.warehouse-main .later-performance>.warehouse-panel-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.warehouse-main .later-performance{padding:8px 12px}.warehouse-main .later-performance .later-tabs{margin:0}.warehouse-main .later-donut-body{min-height:166px;gap:18px}.warehouse-main .later-charts .portal-note{display:block;padding:4px 7px;margin:6px 0 0;border:0;background:#fbfcfd;color:#7e899b;font-size:10px}.warehouse-main .later-ring{width:166px;height:166px}.warehouse-main .later-ring>div{width:125px;height:125px}.warehouse-main .later-legend{max-height:166px}.warehouse-main .later-bill-total{font-size:12px;margin:3px 0 10px;color:#667a93;line-height:1.5}.warehouse-main .later-bills>.warehouse-panel{max-height:320px;min-height:240px}.warehouse-main .later-filter-grid select{width:100%;height:31px;border:1px solid #dfe4e9;border-radius:5px;padding:4px 8px;background:#fff}.warehouse-main .later-entry-table select{height:31px;border:1px solid #dfe4e9;border-radius:5px;background:#fff}
@media(max-width:1400px){.warehouse-main .warehouse-pagebar:has(.portal-toolbar){flex-wrap:wrap;gap:5px}.warehouse-main .warehouse-pagebar .warehouse-page-actions:has(.portal-toolbar){width:100%;margin-left:0}.warehouse-main .warehouse-pagebar .portal-toolbar{flex-wrap:wrap;width:100%}.warehouse-main .warehouse-pagebar .portal-status{margin-left:auto}.warehouse-main .warehouse-pagebar .portal-toolbar>.portal-search{width:190px}}


/* Approved mini-program-style shipment cards; this scope does not restyle other pages. */
/* Use the same navigation and page heading as the processing board. */
.warehouse-main .dispatch-page{--dispatch-surface:var(--panel);--dispatch-ink:var(--card-text);--dispatch-muted:var(--text-muted);--dispatch-accent:var(--btn-primary);--dispatch-edge:#e9e4de;--dispatch-head:#fff5ea;--dispatch-soft:#fff6ed;--dispatch-field:#f7f8fa;--dispatch-disabled:#edf0ed;--dispatch-disabled-ink:#8a9c91;--dispatch-shipped:#f3faf6;padding:0 22px 12px;background:#faf8f5;min-width:0}
.dispatch-store-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px}
.dispatch-store-tabs{display:flex;gap:7px;overflow:auto;scrollbar-width:none}
.dispatch-store-tabs .portal-btn{padding:7px 12px;min-height:32px;font-size:12px;border:1px solid var(--dispatch-edge);background:var(--dispatch-surface);color:var(--dispatch-ink);white-space:nowrap}
.dispatch-store-tabs .portal-btn.active{color:var(--dispatch-accent);border-color:var(--dispatch-accent);background:var(--dispatch-soft)}
.dispatch-date-hint{font-size:10px;color:var(--dispatch-muted);white-space:nowrap}
.dispatch-board{display:grid;grid-auto-flow:column;grid-auto-columns:360px;gap:12px;overflow-x:auto;padding:1px 0 8px;align-items:start;scrollbar-color:#eed4bd #faf8f5;scrollbar-width:thin}
.dispatch-store-card{background:var(--dispatch-surface);border:1px solid var(--dispatch-edge);border-radius:8px;overflow:hidden;min-width:0;box-shadow:0 3px 10px #9b6a2110}
.dispatch-store-card.current{border-color:var(--dispatch-accent);box-shadow:0 4px 13px #db8a3320}
.dispatch-store-card>.dispatch-store-head{display:flex;justify-content:space-between;gap:5px;align-items:center;background:var(--dispatch-head);padding:11px 12px;border-bottom:1px solid var(--dispatch-edge);min-height:64px}
.dispatch-store-head h3{font-size:16px;margin:0 0 5px;color:var(--dispatch-ink)}
.dispatch-store-head h3:before{content:"";display:inline-block;width:4px;height:15px;background:var(--dispatch-accent);border-radius:2px;margin-right:7px;vertical-align:-2px}
.dispatch-store-head p{margin:0;color:var(--dispatch-muted);font-size:10px;display:flex;gap:7px;align-items:center}
.dispatch-store-state{color:var(--dispatch-accent)}.dispatch-store-state:before{content:"•";margin-right:4px}
.dispatch-store-card .dispatch-add{font-size:11px;color:var(--dispatch-accent);border:1px solid var(--dispatch-edge);background:var(--dispatch-soft);padding:7px 8px;min-height:30px;white-space:nowrap;border-radius:5px}
.dispatch-store-card.locked .dispatch-store-head{background:var(--dispatch-shipped)}
.dispatch-store-card.locked .dispatch-store-head h3:before{background:#58ab86}
.dispatch-store-card.locked .dispatch-store-state{color:#489d78}
.dispatch-store-card.locked .dispatch-add{background:#eef2f0;border-color:#e0e8e3;color:#9ba8a0}
.dispatch-card-items{padding:0 12px;max-height:calc(100vh - 340px);overflow:auto;scrollbar-width:thin}
.dispatch-product{display:flex;gap:9px;align-items:center;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--dispatch-edge);min-height:96px}
.dispatch-product:last-child{border-bottom:0}
.dispatch-product-info{min-width:0;flex:1}
.dispatch-product-name{font-size:15px;line-height:1.4;color:var(--dispatch-ink);margin-bottom:4px;word-break:break-word}
.dispatch-delta{font-size:9px;color:#df8b2f;background:#fff3e4;padding:1px 4px;border-radius:3px;margin-left:4px;white-space:nowrap}
.dispatch-product-spec,.dispatch-product-report{font-size:11px;color:var(--dispatch-muted);line-height:1.55}
.dispatch-source{font-size:9px;background:var(--dispatch-field);color:var(--dispatch-muted);border-radius:3px;padding:1px 4px;display:inline-block;margin-left:4px;font-weight:400}
.dispatch-source.extra{background:#fff1df;color:#d48d35}
.dispatch-store-card .dispatch-price-link{border:0;color:var(--dispatch-accent);background:transparent;padding:0;font-size:13px;min-height:0;line-height:1.4;margin:3px 0 0;display:inline-flex;align-items:center;gap:4px}
.dispatch-price-link del{color:#a0a4aa;font-size:10px}
.dispatch-price-link small{font-size:10px;color:var(--dispatch-accent)}
.dispatch-store-card .dispatch-archive{color:#e37025;background:#fff8f2;font-size:9px;padding:2px 4px;min-height:0;margin-left:5px}
.dispatch-ship-controls{width:112px;flex:0 0 112px}
.dispatch-stepper{display:grid;grid-template-columns:29px 1fr 29px;gap:3px;height:31px;align-items:stretch}
.dispatch-stepper .portal-btn{min-height:0;border:1px solid var(--dispatch-edge);border-radius:4px;font-size:17px;background:var(--dispatch-surface);color:var(--dispatch-ink);padding:0}
.dispatch-stepper input[type=number]{width:100%;min-width:0;height:auto;border:1px solid var(--dispatch-edge);background:var(--dispatch-field);color:var(--dispatch-ink);border-radius:4px;text-align:center;font-size:14px;font-weight:600;padding:0;appearance:textfield;-moz-appearance:textfield}
.dispatch-stepper input::-webkit-inner-spin-button,.dispatch-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.dispatch-store-card .dispatch-select{width:100%;height:29px;min-height:0;margin-top:5px;font-size:12px;background:var(--dispatch-soft);border:1px solid var(--dispatch-accent);color:var(--dispatch-accent);font-weight:600;border-radius:4px;padding:0}
.dispatch-store-card .dispatch-select.selected{color:#fff;background:var(--dispatch-accent);border-color:var(--dispatch-accent)}
.dispatch-product:has(.dispatch-select.selected){background:var(--dispatch-soft)}
.dispatch-line-amount{display:block;text-align:right;font-size:10px;line-height:1.3;color:var(--dispatch-muted);margin-top:3px;font-variant-numeric:tabular-nums}
.dispatch-store-card.locked .dispatch-stepper input,.dispatch-store-card.locked .dispatch-stepper button{background:#f4f6f5;color:#acb7b0;border-color:#e8eeea}
.dispatch-store-card.locked .dispatch-select{background:#eaf2ed;color:#8a9c91;border-color:#e3ebe6}
.dispatch-store-card.locked .dispatch-price-link{color:#89998f;opacity:1}
.dispatch-card-note{font-size:10px;color:var(--dispatch-muted);border-top:1px solid var(--dispatch-edge);padding:7px 12px}
.dispatch-card-note summary{cursor:pointer}
.dispatch-card-note textarea{width:100%;box-sizing:border-box;min-height:55px;border:1px solid #ece7e2;border-radius:5px;padding:8px;font-size:12px;margin-top:6px}
.dispatch-card-note .portal-btn{font-size:10px;min-height:0;padding:5px;margin-top:4px}
.dispatch-card-total{padding:11px 12px;border-top:1px solid var(--dispatch-edge);background:var(--dispatch-head);display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:71px}
.dispatch-card-total small{display:block;font-size:10px;color:var(--dispatch-muted)}
.dispatch-card-total strong{display:block;font-size:23px;line-height:1.2;font-weight:700;color:var(--dispatch-accent);margin-top:2px;font-variant-numeric:tabular-nums}
.warehouse-main .dispatch-card-total .dispatch-confirm{font-size:13px;font-weight:700;color:#fff;background:var(--dispatch-accent);border:1px solid var(--dispatch-accent);padding:10px 20px;min-height:38px;white-space:nowrap;border-radius:6px}
.warehouse-main .dispatch-card-total .dispatch-confirm:disabled{background:var(--dispatch-disabled);color:var(--dispatch-disabled-ink);border-color:var(--dispatch-edge)}
.dispatch-receipts{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap;padding:7px 12px;border-top:1px solid var(--dispatch-edge);background:var(--dispatch-surface)}
.dispatch-receipts .portal-btn{border:0;color:var(--dispatch-accent);font-size:10px;padding:0;background:transparent;min-height:20px}
.dispatch-store-card>.portal-notice{font-size:11px;margin:7px 10px;padding:8px}
@media(min-width:1750px){.dispatch-product{min-height:103px}.dispatch-store-head{min-height:68px}.dispatch-product-name{font-size:15px}.dispatch-ship-controls{width:122px;flex-basis:122px}.dispatch-stepper{height:33px;grid-template-columns:32px 1fr 32px}.dispatch-store-card .dispatch-select{height:31px}.dispatch-product-spec,.dispatch-product-report{font-size:11px}.dispatch-store-card .dispatch-price-link{font-size:13px}}
@media(max-width:1400px) and (min-width:701px){body:has(.dispatch-page) .warehouse-main .warehouse-pagebar .portal-status{display:none}}
@media(max-width:700px){
body:has(.dispatch-page) .warehouse-nav{display:none}
body:has(.dispatch-page) .warehouse-main{margin:0;width:100%;min-width:0}
body:has(.dispatch-page) .warehouse-main .topbar{padding:8px 12px;min-height:44px}
body:has(.dispatch-page) .warehouse-main .warehouse-pagebar{display:block;padding:10px 11px 6px}
body:has(.dispatch-page) .warehouse-main .warehouse-pagebar h1{font-size:22px;margin-bottom:7px}
body:has(.dispatch-page) .warehouse-main .warehouse-page-actions{width:100%}
body:has(.dispatch-page) .warehouse-main .warehouse-pagebar .portal-toolbar{display:flex;gap:6px;width:100%}
body:has(.dispatch-page) .warehouse-main .warehouse-pagebar .portal-date{width:135px;flex:0 0 135px;padding:5px}
body:has(.dispatch-page) .warehouse-main .warehouse-pagebar .portal-search{width:0;min-width:0;flex:1}
body:has(.dispatch-page) .warehouse-main .warehouse-pagebar .portal-status{display:none}
body:has(.dispatch-page) .warehouse-main .warehouse-pagebar .portal-btn{font-size:11px;padding:5px 8px}
.warehouse-main .dispatch-page{padding:0 11px 10px}
.dispatch-store-bar{display:block;margin-bottom:8px}
.dispatch-store-tabs{gap:6px}
.dispatch-store-tabs .portal-btn{font-size:11px;padding:8px 10px}
.dispatch-date-hint{display:block;white-space:normal;font-size:9px;margin:7px 1px}
.dispatch-board{display:block;overflow:visible;padding:0}
.dispatch-store-card{display:none}
.dispatch-store-card.current{display:block;border-color:#ead8c7}
.dispatch-card-items{max-height:none}
.dispatch-product{min-height:104px;padding:12px 0}
.dispatch-product-name{font-size:15px}
.dispatch-ship-controls{width:120px;flex-basis:120px}
.dispatch-stepper{height:34px;grid-template-columns:32px 1fr 32px}
.dispatch-stepper input[type=number]{font-size:15px}
.dispatch-store-card .dispatch-select{height:33px;font-size:12px}
.dispatch-product-spec,.dispatch-product-report{font-size:11px}
.dispatch-store-card .dispatch-price-link{font-size:13px}
.dispatch-card-total{position:sticky;bottom:0;z-index:2;min-height:76px;padding:12px}
.dispatch-card-total strong{font-size:27px}
.dispatch-card-total .dispatch-confirm{padding:12px 20px}
.dispatch-page .portal-sync-note{font-size:9px}
}

@media(max-width:700px){
body:has(.dispatch-page) .warehouse-header{padding:0}
body:has(.dispatch-page) .warehouse-topline{min-height:44px;height:44px;padding:0 11px;display:flex;flex-wrap:nowrap;gap:5px;align-items:center}
body:has(.dispatch-page) .warehouse-top-title{font-size:16px;min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
body:has(.dispatch-page) .warehouse-top-tools{display:flex;flex-wrap:nowrap;gap:5px;align-items:center}
body:has(.dispatch-page) .warehouse-clock{display:none}
body:has(.dispatch-page) .warehouse-context{padding:0;border:0;margin:0}
body:has(.dispatch-page) .warehouse-context>span,body:has(.dispatch-page) .warehouse-context>svg{display:none}
body:has(.dispatch-page) .warehouse-context select{width:110px;min-width:0;height:28px;font-size:11px;padding:2px 5px}
body:has(.dispatch-page) .warehouse-top-tools>.portal-btn{width:28px;min-width:28px;min-height:28px;height:28px;padding:4px;font-size:0;display:flex;align-items:center;justify-content:center}
body:has(.dispatch-page) .warehouse-top-tools>[data-portal-fullscreen]:before{content:"⛶";font-size:19px;line-height:1}
body:has(.dispatch-page) .warehouse-top-tools>.portal-btn svg{width:16px;height:16px}
}

/* Reduce processing-card whitespace while keeping every existing font size. */
body:not(.touch-mode) .warehouse-main .status-lanes:not(.zoomed) > .status-grid > .card{height:124px;min-height:124px;padding:0 7px 4px;border-radius:6px}
body:not(.touch-mode) .warehouse-main .status-lanes:not(.zoomed) > .status-grid > .card .row1{min-height:36px;margin:0 -7px 2px;padding:2px 8px 0}
body:not(.touch-mode) .warehouse-main .status-lanes:not(.zoomed) > .status-grid > .card .row1 .badge{line-height:14px}
body:not(.touch-mode) .warehouse-main .status-lanes:not(.zoomed) > .status-grid > .card .row1 .name{line-height:20px}
body:not(.touch-mode) .warehouse-main .status-lanes:not(.zoomed) > .status-grid > .card .row1 .pin{top:4px;right:5px}
body:not(.touch-mode) .warehouse-main .status-lanes:not(.zoomed) > .status-grid > .card .row2,body:not(.touch-mode) .warehouse-main .status-lanes:not(.zoomed) > .status-grid > .card .row2 .spec,body:not(.touch-mode) .warehouse-main .status-lanes:not(.zoomed) > .status-grid > .card .row2 .acc{line-height:14px;min-height:14px}
body:not(.touch-mode) .warehouse-main .status-lanes:not(.zoomed) > .status-grid > .card .qty{min-height:34px;margin:auto 0 1px;gap:3px}
body:not(.touch-mode) .warehouse-main .status-lanes:not(.zoomed) > .status-grid > .card .ops{height:31px;gap:4px}
body:not(.touch-mode) .warehouse-main .status-lanes:not(.zoomed) > .status-grid > .card .ops button{height:31px;min-height:31px;padding:1px 3px}
body:not(.touch-mode) .warehouse-main .status-lanes:not(.zoomed) > .status-grid > .card .card-art{top:43px;right:8px;width:28px;height:28px}

/* Shipment components use the active shared palette; status words remain explicit. */
body:has(.dispatch-page) .warehouse-main .warehouse-pagebar .portal-date{width:135px;flex:0 0 135px}
.warehouse-main[data-warehouse-theme=b_solid] .dispatch-page{--dispatch-edge:#d9dde2;--dispatch-head:#f5f5f5;--dispatch-soft:#f5f5f5;background:#f4f5f7}
.warehouse-main[data-warehouse-theme=c_dark] .dispatch-page{--dispatch-edge:#464a53;--dispatch-head:#48372d;--dispatch-soft:#3b322d;--dispatch-field:#25282e;--dispatch-disabled:#353a40;--dispatch-disabled-ink:#a7b3ac;--dispatch-shipped:#264535;background:#25282e}
.warehouse-main[data-warehouse-theme=c_dark] .dispatch-card-note textarea{background:var(--dispatch-field);color:var(--dispatch-ink);border-color:var(--dispatch-edge)}
.warehouse-main .dispatch-page .portal-btn:hover:not(:disabled){background:var(--dispatch-soft);border-color:var(--dispatch-accent)}
.warehouse-main .dispatch-page .dispatch-select.selected:hover:not(:disabled),.warehouse-main .dispatch-page .dispatch-confirm:hover:not(:disabled){background:var(--dispatch-accent);border-color:var(--dispatch-accent);color:#fff}

/* V56: one shared sale-product workspace for company and warehouse entries. */
.sale-products-main{--sale-panel:#fff;--sale-ink:#253047;--sale-muted:#728195;--sale-line:#e4e8ee;--sale-head:#f6f8fa;--sale-soft:#fff1e7;--sale-accent:#ff6818;--sale-width:370px}
.sale-products-main[data-warehouse-theme=b_solid]{--sale-accent:#30343b;--sale-soft:#f2f3f5}
.sale-products-main[data-warehouse-theme=c_dark]{--sale-panel:#25282e;--sale-ink:#edf0f5;--sale-muted:#b0b9c8;--sale-line:#464a53;--sale-head:#30343b;--sale-soft:#48372d;--sale-accent:#ff8a3d}
.sale-products-main .sale-products-workspace{min-width:0;color:var(--sale-ink)}
.sale-products-main .sale-product-categories{display:flex;align-items:center;gap:5px;flex-wrap:wrap;background:var(--sale-panel);border:1px solid var(--sale-line);padding:10px 12px;border-radius:7px;margin-bottom:14px}
.sale-products-main .sale-product-categories .portal-btn{min-height:35px;padding:6px 13px;border:0;border-radius:5px;background:transparent;color:var(--sale-muted);font-size:14px;white-space:nowrap}
.sale-products-main .sale-product-categories .portal-btn.primary{background:var(--sale-soft);color:var(--sale-accent);font-weight:700}
.sale-products-main .sale-product-categories .sale-category-manage{margin-left:auto;display:flex;gap:6px;color:var(--sale-ink)}
.sale-products-main .sale-products-split{display:grid;grid-template-columns:minmax(0,1fr) var(--sale-width);gap:14px;align-items:start}
.sale-products-main .sale-product-list,.sale-products-main .sale-product-detail{min-width:0;overflow:hidden;border:1px solid var(--sale-line);border-radius:7px;background:var(--sale-panel)}
.sale-products-main .sale-product-list-head{display:flex;align-items:center;gap:8px;padding:13px 15px;border-bottom:1px solid var(--sale-line);color:var(--sale-ink)}
.sale-products-main .sale-product-list-head strong{font-size:16px}.sale-products-main .sale-product-list-head small,.sale-products-main .sale-product-list-head>span{font-size:12px;color:var(--sale-muted)}
.sale-products-main .sale-product-list-head>span{margin-left:auto}
.sale-products-main .sale-product-table{max-height:none;overflow:visible;min-width:0}
.sale-products-main .sale-product-table table{table-layout:fixed;width:100%;white-space:normal;font-size:14px}
.sale-products-main .sale-product-table th{background:var(--sale-head);color:var(--sale-muted);font-weight:400;font-size:12px;padding:9px 11px;border-color:var(--sale-line)}
.sale-products-main .sale-product-table td{padding:7px 11px;border-bottom:1px solid var(--sale-line);color:var(--sale-ink);overflow-wrap:anywhere;max-width:none}
.sale-products-main .sale-product-table .sale-col-0{width:auto}.sale-products-main .sale-product-table .sale-col-1{width:100px}.sale-products-main .sale-product-table .sale-col-2{width:110px}.sale-products-main .sale-product-table .sale-col-3{width:110px;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.sale-products-main .sale-product-table .sale-col-4{width:78px}
.sale-products-main .sale-product-table tr.selected td{background:var(--sale-soft)}
.sale-products-main .sale-product-table .sale-product-name{border:0!important;background:transparent!important;color:var(--sale-ink)!important;display:block;padding:0!important;min-height:24px;font-size:15px;font-weight:700;text-align:left;white-space:normal}
.sale-products-main .sale-product-table tr:hover td{background:var(--sale-soft)}
.sale-products-main .sale-product-table tr.selected td:first-child{box-shadow:inset 3px 0 var(--sale-accent)}
.sale-products-main .sale-product-table tr.selected .sale-product-name{color:var(--sale-accent)!important}
.sale-products-main .sale-product-spec,.sale-products-main .sale-product-price-unit{display:block;color:var(--sale-muted);font-size:11px;line-height:1.5;margin-top:1px;white-space:normal}
.sale-products-main .sale-product-table .portal-badge{font-size:11px;white-space:nowrap}
.sale-products-main .sale-product-pagination{display:flex;align-items:center;gap:8px;padding:11px 14px;border-top:1px solid var(--sale-line);font-size:12px;color:var(--sale-muted);flex-wrap:wrap}
.sale-products-main .sale-product-pagination .grow{flex:1}.sale-products-main .sale-product-pagination .portal-btn{min-height:30px;padding:4px 8px;font-size:12px}.sale-products-main .sale-product-pagination select{font-size:12px;padding:4px 7px;max-width:100%;border:1px solid var(--sale-line);border-radius:5px;background:var(--sale-panel);color:var(--sale-ink)}
.sale-products-main .sale-product-detail .sale-product-editor{width:100%;max-width:none;max-height:none;overflow:visible;border:0;border-radius:0;box-shadow:none;padding:0;background:var(--sale-panel);color:var(--sale-ink)}
.sale-products-main .sale-product-editor .portal-modal-header{position:static;display:grid;grid-template-columns:1fr auto;gap:3px 8px;padding:13px 17px;margin:0;background:var(--sale-panel);border-bottom:1px solid var(--sale-line)}
.sale-products-main .sale-product-editor .portal-modal-header h2{margin:0;padding:0;border:0;font-size:17px;color:var(--sale-ink)}
.sale-products-main .sale-edit-state{font-size:11px;color:var(--sale-muted);align-self:center}.sale-products-main .sale-edit-state.dirty{color:var(--sale-accent)}
.sale-products-main .sale-edit-name{grid-column:1/-1;font-size:12px;color:var(--sale-muted);overflow-wrap:anywhere}
.sale-products-main .sale-product-editor>form{padding:15px 17px 0}
.sale-products-main .sale-product-editor .portal-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:0}
.sale-products-main .sale-product-editor .portal-field{grid-column:auto;display:flex;flex-direction:column;align-items:stretch;gap:5px;font-size:12px;min-width:0;margin:0}
.sale-products-main .sale-product-editor .portal-field>span{color:var(--sale-muted)}
.sale-products-main .sale-product-editor .portal-field.sale-field-full{grid-column:1/-1}
.sale-products-main .sale-product-editor .portal-field input,.sale-products-main .sale-product-editor .portal-field select{width:100%;height:37px;min-width:0;padding:6px 9px;border:1px solid var(--sale-line);border-radius:5px;color:var(--sale-ink);background:var(--sale-panel);font-size:14px}
.sale-products-main .sale-price-input{display:flex;align-items:center;gap:6px;border:1px solid var(--sale-line);border-radius:5px;padding:0 9px;color:var(--sale-ink)!important}
.sale-products-main .sale-price-input input{border:0!important;padding-left:0!important;padding-right:0!important;font-size:16px!important;font-variant-numeric:tabular-nums}
.sale-products-main .sale-price-input>small{font-size:12px;color:var(--sale-muted);white-space:nowrap}
.sale-products-main .sale-product-editor .sale-unit-preview{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;align-items:center;background:var(--sale-head);border:0;border-radius:5px;margin:0;padding:9px 10px;color:var(--sale-ink);font-size:13px;min-height:0}
.sale-products-main .sale-unit-preview>span{color:var(--sale-muted);font-size:12px}.sale-products-main .sale-unit-preview>strong{font-size:14px;color:var(--sale-ink)}
.sale-products-main .sale-add-category{align-self:flex-start;background:transparent!important;border:0!important;padding:0!important;min-height:24px;font-size:12px;color:var(--sale-accent)!important}
.sale-products-main .sale-product-editor form>.portal-toolbar:not(:last-child){display:flex;gap:8px;flex-wrap:wrap;margin:12px 0;font-size:13px}
.sale-products-main .sale-product-advanced{padding:11px 0;border-top:1px solid var(--sale-line);font-size:12px;color:var(--sale-muted);margin-top:12px}
.sale-products-main .sale-product-advanced summary{cursor:pointer}.sale-products-main .sale-product-advanced .portal-field{margin-top:10px}
.sale-products-main .sale-product-editor form>.sale-editor-footer:last-child{position:static;display:flex;gap:10px;justify-content:stretch;padding:12px 0;margin:0;border:0;border-top:1px solid var(--sale-line);background:var(--sale-panel);box-shadow:none}
.sale-products-main .sale-editor-footer .portal-btn{min-height:38px;font-size:14px}.sale-products-main .sale-editor-footer .primary{flex:1;background:var(--sale-accent);border-color:var(--sale-accent);color:#fff}
.sale-products-main .sale-product-back{display:none}.sale-products-main .sale-read-title{font-size:17px;margin:15px}
.sale-products-main .sale-mobile-navigation{display:none}
.sale-products-main .sale-product-detail>.portal-details{padding:0 15px}.sale-products-main .sale-product-detail>.portal-details>div{display:flex;gap:12px;border-bottom:1px solid var(--sale-line);padding:10px 0}.sale-products-main .sale-product-detail>.portal-details span{color:var(--sale-muted)}
@media(min-width:1700px){.sale-products-main{--sale-width:410px}}
@media(max-width:1280px){.sale-products-main{--sale-width:330px}.sale-products-main .sale-product-table .sale-col-2{display:none}.sale-products-main .sale-product-table .sale-col-1{width:90px}.sale-products-main .sale-product-table .sale-col-3{width:100px}.sale-products-main .sale-product-table .sale-col-4{width:69px}}
@media(max-width:950px){.sale-products-main{--sale-width:310px}.sale-products-main .sale-products-split{gap:10px}.sale-products-main .sale-product-table .sale-col-1{display:none}.sale-products-main .sale-product-list-head>span{display:none}.sale-products-main .sale-product-table td,.sale-products-main .sale-product-table th{padding-left:9px;padding-right:9px}}
@media(max-width:700px){.sale-products-main .sale-products-split{display:block}.sale-products-main .sale-product-detail{display:none}.sale-products-main .sale-products-workspace.editing .sale-product-list{display:none}.sale-products-main .sale-products-workspace.editing .sale-product-detail{display:block}.sale-products-main .sale-products-workspace.editing .sale-product-back{display:inline-flex;margin:0 0 10px}.sale-products-main .sale-product-categories{padding:7px;gap:2px;margin-bottom:12px}.sale-products-main .sale-product-categories .portal-btn{padding:6px 10px;font-size:13px}.sale-products-main .sale-category-manage{margin-left:0!important}.sale-products-main .sale-product-editor .portal-field input,.sale-products-main .sale-product-editor .portal-field select{font-size:16px}.sale-products-main .sale-product-editor .portal-modal-header{padding:13px 15px}.sale-products-main .sale-product-editor>form{padding:13px 15px 0}}
@media(max-width:700px){
body:has(.sale-products-main) .portal-nav{display:none}
.sale-products-main.main{width:100%;min-width:0;max-width:100%;margin-left:0}
.sale-products-main .sale-mobile-navigation{display:flex;align-items:center;gap:10px;margin:0;padding:9px 12px;background:var(--sale-panel);color:var(--sale-muted);border-bottom:1px solid var(--sale-line);font-size:13px;flex:0 0 auto}
.sale-products-main .sale-mobile-navigation select{flex:1;min-width:0;max-width:100%;height:35px;border:1px solid var(--sale-line);border-radius:5px;background:var(--sale-panel);color:var(--sale-ink);font-size:14px;padding:5px 8px}
.sale-products-main .warehouse-header{height:auto;min-height:0;padding:9px 12px}
.sale-products-main .warehouse-topline{height:auto;min-height:0;flex-wrap:wrap;gap:8px;padding:0}
.sale-products-main .warehouse-top-title{font-size:20px;white-space:normal;overflow-wrap:anywhere}
.sale-products-main .warehouse-top-tools{width:100%;margin-left:0;flex-wrap:wrap;gap:6px}
.sale-products-main .warehouse-clock{display:none}
.sale-products-main .warehouse-context{padding:0;border:0;gap:6px}
.sale-products-main .warehouse-context>span,.sale-products-main .warehouse-context>.warehouse-chrome-icon{display:none}
.sale-products-main .workspace-picker{min-width:130px;max-width:100%}
.sale-products-main .workspace-trigger{min-width:130px;max-width:180px}
.sale-products-main .warehouse-pagebar{flex-wrap:wrap;align-items:center;gap:8px;padding:12px}
.sale-products-main .warehouse-pagebar h1{font-size:24px;white-space:normal;overflow-wrap:anywhere}
.sale-products-main .warehouse-page-actions{margin-left:0;max-width:100%}
.sale-products-main .portal-page{padding:0 10px 14px;min-width:0}
.sale-products-main .portal-toolbar{flex-wrap:wrap;max-width:100%;box-sizing:border-box}
.sale-products-main .portal-toolbar>.portal-search{flex:1 1 100%;width:100%;max-width:100%;box-sizing:border-box}
.sale-products-main .sale-product-editor input,.sale-products-main .sale-product-editor select{box-sizing:border-box;max-width:100%}
}
