/* Existing UX3.1.2 module language, limited to records, locations and return. */
:is([data-panel="inventory-history"],[data-panel="locations"],[data-panel="returns"]) .stock-module-head{min-height:38px;box-sizing:border-box;padding:8px 16px;background:#f5f5f5;border-bottom:1px solid #e2e2e2;border-radius:6px 6px 0 0;align-items:center}
:is([data-panel="inventory-history"],[data-panel="locations"],[data-panel="returns"]) .stock-module-head h2{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;line-height:20px;margin:0}
.stock-module-head h2 svg{width:16px;height:16px;flex:none}
[data-panel="inventory-history"] .inventory-history-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
[data-panel="inventory-history"] .stock-record-table th:nth-child(3),[data-panel="inventory-history"] .stock-record-table td:nth-child(3){text-align:right;white-space:nowrap}
[data-panel="locations"]>.surface{margin-bottom:18px;overflow:hidden;border-radius:6px}
[data-panel="locations"] .stock-page-actions{margin-left:auto;display:flex;gap:8px;align-items:center}
[data-panel="locations"] .stock-page-actions button{min-height:36px;font-weight:500}
[data-panel="locations"] .table-wrap table{width:100%;table-layout:fixed}
[data-panel="locations"] .table-wrap :is(th,td){vertical-align:middle;overflow-wrap:anywhere;padding:10px 16px}
[data-panel="locations"] .table-wrap :is(th,td):first-child{width:24%}
[data-panel="locations"] .table-wrap :is(th,td):last-child{width:30%}
[data-panel="locations"] #p0-locations-body td:last-child{white-space:normal}
[data-panel="locations"] #p0-locations-body td:last-child button{white-space:nowrap;margin:2px 8px 2px 0}
[data-panel="locations"] .location-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(140px,2fr) minmax(70px,1fr) auto;gap:12px;padding:12px 16px;align-items:center}
[data-panel="locations"] .stock-quantity{text-align:right;white-space:nowrap}
[data-panel="locations"] #p0-unallocated td:not(:first-child),[data-panel="locations"] #p0-unallocated-surface th:not(:first-child){text-align:right}
[data-panel="locations"] #p0-unallocated td:first-child strong{display:block}
[data-panel="returns"] .return-search-row{display:flex;gap:12px;padding:16px;border-bottom:1px solid #e6e6e6}
[data-panel="returns"] .return-search-row input{flex:1;min-width:0}
[data-panel="returns"] .return-search-row select{width:auto}
[data-panel="returns"] .return-business-row{padding:14px 16px;border-bottom:1px solid #e6e6e6;display:flex;align-items:start;justify-content:space-between;gap:12px;flex-wrap:wrap}
[data-panel="returns"] .return-business-copy{display:grid;gap:5px;min-width:0;flex:1;overflow-wrap:anywhere;font-size:13px}
[data-panel="returns"] .return-business-copy small{font-size:12px}
[data-panel="returns"] .return-receipt{width:100%;display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px}
[data-panel="returns"] .return-recovery{padding:0 16px}
[data-panel="returns"]>.surface>.form-message:empty{display:none}
#warehouse-return-dialog .confirm-dialog-head{margin-bottom:16px}
#warehouse-return-identity{font-size:13px;margin-bottom:12px}
#warehouse-return-add-location{margin:0 0 12px}
@media(max-width:600px){
 [data-panel="locations"] .page-head{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
 [data-panel="locations"] .stock-page-actions{margin-left:auto}
 [data-panel="locations"] .table-wrap :is(th,td){padding:9px 8px}
 [data-panel="locations"] .location-row{grid-template-columns:minmax(70px,1fr) minmax(90px,1.5fr) auto;gap:8px;padding:10px 12px}
 [data-panel="locations"] .location-row>.status-pill{grid-column:2/4;justify-self:end}
 [data-panel="returns"] .return-search-row{flex-wrap:wrap;padding:12px}
 [data-panel="returns"] .return-search-row input{flex-basis:100%}
 [data-panel="returns"] .return-business-row{padding:12px}
}
.view[data-panel="locations"] #locations .location-row{grid-template-columns:minmax(100px,1fr) minmax(140px,2fr) minmax(70px,.65fr) auto}
.view[data-panel="locations"] #locations .location-material{justify-self:stretch;text-align:left;min-width:0}
@media(max-width:600px){.view[data-panel="locations"] #locations .location-row{grid-template-columns:minmax(70px,1fr) minmax(90px,1.5fr) auto}}
.view[data-panel="locations"] .stock-page-actions button{height:36px;box-sizing:border-box;padding:6px 12px;white-space:nowrap;flex-shrink:0}
.view[data-panel="locations"] .table-wrap table{min-width:0}
@media(max-width:600px){
 .view[data-panel="locations"] .table-wrap :is(th,td):nth-child(1){width:22%}
 .view[data-panel="locations"] .table-wrap :is(th,td):nth-child(2){width:30%}
 .view[data-panel="locations"] .table-wrap :is(th,td):nth-child(3){width:16%}
 .view[data-panel="locations"] .table-wrap :is(th,td):nth-child(4){width:32%}
 .view[data-panel="locations"] #p0-locations-body td:last-child button{display:block;margin:3px 0;max-width:100%}
}
.view[data-panel="locations"] .page-head .stock-page-actions{display:flex;flex:none;width:auto;flex-wrap:nowrap;gap:8px}
.view[data-panel="locations"] .page-head .stock-page-actions>button{width:auto;min-width:0}
@media(max-width:600px){.view[data-panel="locations"] .table-wrap th{white-space:normal;line-height:1.5}}
:is([data-panel="inventory-history"],[data-panel="locations"],[data-panel="returns"]) .stock-module-head{height:38px}
.stock-module-head>button{height:26px;min-height:26px;padding:2px 8px;box-sizing:border-box}
