/* Compact warehouse controls share one layout at every breakpoint. */
.warehouse-toolbar{display:grid;gap:8px;margin:10px 0;min-width:0}
.warehouse-toolbar-main{display:grid;grid-template-columns:minmax(150px,260px) auto minmax(0,1fr);gap:10px;align-items:center;min-width:0}
.warehouse-toolbar input,.warehouse-toolbar select{width:100%;height:40px;min-width:0;box-sizing:border-box;margin:0;font-size:13px;color:#25382e;background:#fff}
.warehouse-toolbar button{height:40px;white-space:nowrap;margin:0}
.warehouse-toolbar-main>#warehouse-toggle{justify-self:start}
.warehouse-toolbar-actions,.warehouse-filter-actions{display:flex;align-items:center;gap:8px;min-width:0}
.warehouse-toolbar-actions{justify-content:flex-end}
.warehouse-toolbar-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:end;padding:10px;background:#eef3ef;border-radius:9px;min-width:0}
.warehouse-toolbar-filters[hidden]{display:none}
.warehouse-toolbar-filters label{display:grid;gap:6px;margin:0;font-size:12px;color:#65756e;min-width:0}
.warehouse-filter-type{width:210px;max-width:100%}
.warehouse-filter-price{width:100px}
.warehouse-filter-actions{align-self:end}
#warehouse-filter-error{flex-basis:100%;margin:0}
#warehouse-filter-error:empty{display:none}
.inventory-tabs{margin-bottom:10px!important}

/* Keep a readable name column and contain horizontal scroll in the table. */
.warehouse-stock-table{max-width:100%;overflow-x:auto}
.warehouse-stock-table table{width:100%;min-width:800px!important;table-layout:fixed}
.warehouse-stock-table th:first-child{width:auto}
.warehouse-stock-table th:nth-child(2){width:88px}
.warehouse-stock-table th:nth-child(3){width:120px}
.warehouse-stock-table th:nth-child(4){width:110px}
.warehouse-stock-table th:nth-child(5){width:88px}
.warehouse-stock-table th:nth-child(6){width:110px}
.warehouse-stock-table th,.warehouse-stock-table td{box-sizing:border-box}
.warehouse-stock-table th{white-space:normal;line-height:1.4;padding:13px 10px;font-size:11px;overflow-wrap:normal}
.warehouse-stock-table td{padding:14px 10px;vertical-align:middle!important}
.warehouse-stock-table td:first-child{min-width:245px;white-space:normal;text-align:left;overflow-wrap:anywhere}
.warehouse-product-name{display:inline;color:inherit;font-size:14px;line-height:1.5;text-align:left;font-weight:500}
.warehouse-stock-table a.warehouse-product-name{color:#276b4b;text-decoration:none}
.warehouse-stock-table a.warehouse-product-name:hover{text-decoration:underline}
.warehouse-stock-table td:nth-child(2){font-variant-numeric:tabular-nums;font-size:12px;overflow-wrap:anywhere;white-space:normal}
.warehouse-target-open{min-width:48px;min-height:34px;background:#f0f5f2;border:1px solid #dce5df;border-radius:7px;padding:5px 8px;color:#245f43;font-size:14px}
.warehouse-target-open:hover{background:#e4eee7}
.warehouse-scan-entry{display:grid;grid-template-columns:1fr auto;align-items:end;gap:10px}.warehouse-scan-entry button{height:43px}.warehouse-transfer-product{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px;border:1px solid #cfdfd3;border-radius:10px;background:#f1f7f3}.warehouse-transfer-product[hidden],#transfer-serials[hidden]{display:none}.warehouse-transfer-product small{display:block;margin-top:7px;color:#607167}.warehouse-transfer-product .check,.warehouse-quantity-confirm{display:flex;align-items:center;gap:8px}.warehouse-transfer-product input[type=checkbox],.warehouse-quantity-confirm input[type=checkbox]{width:18px;height:18px}.warehouse-quantity-confirm{align-self:end;min-height:43px}#transfer-serials ul{padding:0;list-style:none}#transfer-serials li{display:flex;justify-content:space-between;align-items:center;padding:6px 0;border-bottom:1px solid #edf0ee}

.workspace-location-button,.workspace-location-label{display:block!important;margin:12px 0 0!important;padding:0!important;background:none!important;border:0!important;color:#d9e8df!important;text-align:left;font-size:13px!important;font-weight:500!important;white-space:normal}.workspace-location-button:hover{text-decoration:underline}.sidebar-brand{overflow:visible;position:relative}.workspace-location-menu{display:grid;position:absolute;top:100%;left:16px;right:16px;z-index:20;padding:6px;background:#fff;border:1px solid #cfddd4;border-radius:9px;box-shadow:0 8px 24px #173e2526}.workspace-location-menu[hidden]{display:none}.workspace-location-menu button{padding:10px;text-align:left;border:0;background:#fff;color:#243b2d;font-size:13px;border-radius:5px}.workspace-location-menu button:hover,.workspace-location-menu button[aria-pressed=true]{background:#edf5ef}

@media(max-width:620px){
 .warehouse-toolbar-main{grid-template-columns:minmax(0,1fr) auto}
 .warehouse-toolbar-actions{grid-column:1/-1}
 .warehouse-toolbar-actions button{flex:1;min-width:0}
 .warehouse-filter-type{width:100%}
 .warehouse-filter-actions{flex-basis:100%}
 .warehouse-transfer-product{align-items:flex-start;flex-direction:column}
 .warehouse-scan-entry{grid-template-columns:1fr}
 .warehouse-scan-entry button{justify-self:start}
}
