.nx-smart{--wh-accent:var(--blue);min-width:0}.wh-toolbar,.wh-tabs,.wh-meta{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.wh-toolbar{margin:14px 0}.wh-toolbar label{display:grid;gap:4px;font-size:11px;color:var(--sub);flex:1 1 130px}.wh-toolbar input,.wh-toolbar select,.wh-form input,.wh-form select,.wh-form textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;padding:9px;background:#fff;color:inherit;font:inherit}.wh-tabs{border-bottom:1px solid var(--line);padding:0 0 12px;margin-bottom:16px}.wh-tabs button[aria-selected=true]{background:var(--wh-accent);color:white;border-color:var(--wh-accent)}.wh-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px;margin:16px 0}.wh-metrics .metric{padding:16px}.wh-metrics .value{font-size:27px}.wh-connection{font-size:12px;padding:6px 10px;border-radius:20px;background:var(--bg);color:var(--blue)}.wh-progress{display:flex;align-items:center;gap:7px;min-width:100px}.wh-progress progress{width:64px;height:7px;accent-color:var(--wh-accent)}.wh-form{display:grid;gap:12px}.wh-form label{display:grid;gap:5px;font-size:12px}.wh-log{list-style:none;padding:0;max-height:430px;overflow:auto}.wh-log li{padding:11px 0;border-bottom:1px solid var(--bg)}.wh-log time,.wh-log small{color:var(--sub);font-size:11px}.wh-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.wh-subtle{font-size:12px;color:var(--sub);line-height:1.6}.wh-error{color:#a72742}.wh-links{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.wh-permissions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.wh-permissions label{display:flex;align-items:center;gap:6px}.wh-permissions input{width:auto}.nx-smart .table-wrap{max-width:100%;overflow:auto}.nx-smart th{white-space:nowrap}.nx-smart td{font-size:12px}.nx-smart details{margin:14px 0}.nx-smart summary{cursor:pointer;font-weight:650;padding:12px 0}.nx-smart .panel{margin:12px 0}@media(max-width:720px){body[data-nx-page=warehouse] .nx-workspace-nav,body[data-nx-page=warehouse] .nx-feature-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:8px}body[data-nx-page=warehouse] .nx-feature-button{flex:0 0 auto;white-space:nowrap}.wh-tabs{flex-wrap:nowrap;overflow:auto}.wh-tabs button{flex:0 0 auto;white-space:nowrap}.wh-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.wh-toolbar label{flex-basis:42%}.wh-permissions{grid-template-columns:1fr}}

@media(max-width:720px){body[data-nx-page=warehouse] .nx-tools-actions{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:8px}body[data-nx-page=warehouse] .nx-workspace-nav{display:block}}

/* Smart Picking & Packing: dashboard and fixed-height order queue */
.nx-smart{--wh-accent:#77396f}
.nx-smart .wh-smart-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:8px 0 16px;margin-bottom:15px;border-bottom:1px solid #e9dce8}
.nx-smart .wh-smart-head h2{margin:5px 0;font-size:21px;color:#421d3e;font-weight:800}
.nx-smart .wh-smart-head p{margin:0;color:#8c748b;font-size:12px}
.nx-smart .wh-eyebrow{font-size:10px;font-weight:800;letter-spacing:1.3px;color:#987195}
.nx-smart .wh-connection{display:inline-flex;gap:7px;align-items:center;border:1px solid #d1e9da;background:#eef8f0;color:#2f7851}
.nx-smart .wh-connection:before{content:"";width:7px;height:7px;background:#46ab7b;border-radius:50%}
.nx-smart .wh-tabs{gap:7px;padding-bottom:15px;margin-bottom:16px}
.nx-smart .wh-tabs button{padding:10px 14px;border-radius:8px;font-weight:700}
.nx-smart .wh-filter-panel{background:#fff;border:1px solid #e7dbe7;border-radius:12px;padding:18px 20px;margin:0 0 22px;box-shadow:0 2px 10px rgba(60,20,55,.025)}
.nx-smart .wh-filter-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
.nx-smart .wh-filter-heading h3{font-size:14px;color:#50264d;margin:5px 0 0;font-weight:800}
.nx-smart .wh-filter-heading button{font-size:11px;padding:8px 11px}
.nx-smart .wh-toolbar{margin:0;display:grid;grid-template-columns:minmax(190px,1.5fr) repeat(4,minmax(130px,1fr));gap:11px}
.nx-smart .wh-toolbar label{display:grid;min-width:0;gap:7px;font-size:11px;font-weight:750;color:#765570}
.nx-smart .wh-toolbar input,.nx-smart .wh-toolbar select{height:41px;border:1px solid #e4d8e4;border-radius:8px;background:#fff;font-size:12px;padding:9px}
.nx-smart .wh-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.nx-smart .wh-metrics .metric{display:flex;flex-direction:column;min-width:0;min-height:131px;background:#fff;border:1px solid #e8dce8;border-top:3px solid #895080;border-radius:12px;padding:16px}
.nx-smart .wh-metrics .label{min-height:37px;font-size:12px;line-height:1.45;font-weight:700;color:#795574}
.nx-smart .wh-metrics .value{font-size:30px;font-weight:800;line-height:1.25;color:#401b3b;font-variant-numeric:tabular-nums;margin-top:5px}
.nx-smart .wh-order-panel{border:1px solid #e6d9e5;border-radius:13px;background:#fff;overflow:hidden;margin:19px 0 22px;box-shadow:0 4px 14px rgba(63,24,56,.035)}
.nx-smart .wh-order-head{padding:19px 20px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #e9dce8}
.nx-smart .wh-order-head h3{margin:5px 0;font-size:17px;font-weight:800;color:#411c3c}
.nx-smart .wh-order-head p{margin:0;font-size:12px;color:#8b7289}
.nx-smart .wh-queue-count{display:grid;text-align:right;gap:4px}
.nx-smart .wh-queue-count strong{font-size:25px;color:#66315d;line-height:1}
.nx-smart .wh-queue-count span{color:#907a90;font-size:10px}
.nx-smart .wh-order-scroll{position:relative;overflow-y:scroll;overflow-x:auto;height:440px;max-height:440px;scrollbar-color:#93658b #f0e8ee;scrollbar-width:auto;overscroll-behavior:contain}
.nx-smart .wh-order-scroll::-webkit-scrollbar{width:12px;height:10px}
.nx-smart .wh-order-scroll::-webkit-scrollbar-track{background:#f0e8ee}
.nx-smart .wh-order-scroll::-webkit-scrollbar-thumb{background:#9b7095;border-radius:8px;border:2px solid #f0e8ee}
.nx-smart .wh-orders-table{border-collapse:separate;border-spacing:0;width:100%;min-width:1100px}
.nx-smart .wh-orders-table thead th{position:sticky;top:0;z-index:3;padding:14px 12px;background:#f5eff5;color:#795773;font-size:10px;font-weight:800;text-align:left;white-space:nowrap;border-bottom:1px solid #e9dce8}
.nx-smart .wh-orders-table tbody td{font-size:12px;padding:12px;border-bottom:1px solid #eee4ed;vertical-align:middle;line-height:1.5}
.nx-smart .wh-orders-table tbody tr:nth-child(even){background:#fcf9fc}
.nx-smart .wh-orders-table tbody tr:hover{background:#f8f1f8}
.nx-smart .wh-orders-table td small{display:block;color:#8d758b;font-size:10px;margin-top:5px}
.nx-smart .wh-order-ref .button{font-size:12px;font-weight:800;color:#712e68;padding:8px 10px}
.nx-smart .wh-order-ref small{max-width:200px;overflow-wrap:anywhere}
.nx-smart .wh-order-status{display:inline-flex;align-items:center;white-space:nowrap;padding:5px 10px;border:1px solid #e4dbe5;background:#f3eff4;border-radius:30px;color:#745872;font-size:11px;font-weight:750}
.nx-smart .wh-order-status-ready{background:#e8f6ed;border-color:#cde9d8;color:#28734d}
.nx-smart .wh-order-status-working{background:#e9f0fa;border-color:#cfdef1;color:#3a6d9e}
.nx-smart .wh-order-status-issue,.nx-smart .wh-order-issues{border-radius:30px;padding:5px 9px;border:1px solid #f0d5b0;background:#fff3e2;color:#955f24;font-size:11px;font-weight:800}
.nx-smart .wh-order-clear{color:#5c896d;font-size:11px}
.nx-smart .wh-order-progress{display:flex;gap:9px;align-items:center;min-width:128px}
.nx-smart .wh-order-progress progress{width:91px;height:8px;accent-color:#78406f}
.nx-smart .wh-order-progress b{font-variant-numeric:tabular-nums;font-size:11px}
.nx-smart .wh-order-actions{white-space:nowrap}
.nx-smart .wh-order-actions .button{margin:2px;font-size:11px;padding:7px 9px}
.nx-smart .wh-order-bottom{padding:12px 20px;background:#faf6fa;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #e8dbe7;color:#917b91;font-size:11px}
.nx-smart .wh-queue-empty{text-align:center;padding:55px 15px!important;color:#8f7a90}
@media(max-width:1250px){.nx-smart .wh-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.nx-smart .wh-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:770px){.nx-smart .wh-metrics,.nx-smart .wh-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.nx-smart .wh-order-scroll{height:410px;max-height:410px}}
@media(max-width:480px){.nx-smart .wh-toolbar{grid-template-columns:1fr}.nx-smart .wh-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Smart Picking & Packing: the purple workspace hero is the sole title. */
.nx-smart .wh-tabs{align-items:center}
.nx-smart .wh-tabs>.wh-connection{margin-left:auto;flex:0 0 auto}
@media(max-width:720px){.nx-smart .wh-tabs>.wh-connection{margin-left:4px}}

.wh-panel-layout{display:flex;flex-wrap:wrap;align-items:flex-start;gap:16px;min-width:0}.nx-smart .wh-panel-layout>.wh-filter-panel,.nx-smart .wh-panel-layout>.wh-order-panel,.nx-smart .wh-panel-layout>.wh-content-panel{width:100%;min-width:0;margin:0}.nx-smart .wh-filter-panel{height:auto;align-self:flex-start}
