/* Compact V156 receiving popups and the two-half Warehouse layout. */
.stock-toolbar{flex-wrap:wrap;gap:5px}
.stock-toolbar button,.receiving-summary button{padding:6px 9px;font-size:11px;min-height:32px}
.receiving-summary{display:flex;gap:12px;align-items:center;font-size:12px}
.receiving-summary strong{margin-left:auto;font-size:17px}
.stock-search{display:flex;gap:9px;align-items:center;margin:0;font-size:12px}
.stock-search input{margin:0;padding:6px 9px;min-height:34px}
.warehouse-panes{display:grid;grid-template-columns:1fr 1fr;gap:8px;flex:1;min-height:0}
.warehouse-panel{display:flex;flex-direction:column;min-height:0;min-width:0;background:white;border:1px solid var(--line);border-radius:6px;padding:7px}
.stock-panel-heading{display:flex;justify-content:space-between;gap:6px;align-items:center;font-size:11px;min-height:31px;flex-wrap:wrap;padding-bottom:5px}
.stock-panel-heading>strong{font-size:11px;letter-spacing:.3px}
.stock-panel-heading button{padding:4px 6px;font-size:10px;min-height:26px}
.stock-panel-heading span{font-size:11px}
.warehouse-panel>.ledger-table{flex:1;min-height:0;border:0}
.warehouse-panel .ledger-table table{min-width:550px}
.warehouse-histories{display:grid;grid-template-rows:1fr 1fr;gap:8px;min-height:0;min-width:0}
.stock-entry-dialog{width:min(1380px,calc(100vw - 24px));max-width:none;height:min(720px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:12px;overflow:hidden}
.stock-entry-form{display:flex;flex-direction:column;gap:7px;height:100%;min-height:0}
.stock-entry-form>.ledger-table{flex:1;min-height:0}
.stock-entry-head{display:flex;align-items:center;gap:10px;justify-content:space-between}
.stock-entry-head label{display:flex;align-items:center;gap:7px;margin:0}
.stock-entry-head input{margin:0;width:190px;font-size:12px;padding:7px}
.stock-entry-head span{font-size:12px}.stock-entry-head strong{font-size:20px}
.stock-entry-panes{display:grid;grid-template-columns:minmax(280px,32fr) minmax(580px,68fr);gap:8px;flex:1;min-height:0}
.stock-entry-panes>section{display:flex;flex-direction:column;min-height:0;min-width:0;gap:5px}
.stock-entry-panes strong{font-size:11px}
.stock-entry-panes .ledger-table{flex:1;min-height:0}
#stock-entry-products{display:flex;flex:1;min-height:0}
#stock-entry-products .ledger-table table{min-width:410px}
.stock-entry-panes>section:last-child table{table-layout:fixed;min-width:630px}
.stock-entry-panes>section:last-child th:first-child{width:27%}
.warehouse-entry .stock-entry-panes{grid-template-columns:1fr 1fr}
.warehouse-entry .stock-entry-panes>section:last-child table{min-width:380px}
.warehouse-entry .stock-entry-panes>section:last-child th:first-child{width:70%}
.stock-entry-panes td,.stock-entry-panes th{padding:7px 4px;font-size:11px;white-space:normal}
.stock-entry-panes td[data-edit]{cursor:text}
.stock-entry-panes td input{font-size:12px;padding:5px 2px;min-width:0;width:100%}
.stock-entry-controls{display:flex;gap:6px;align-items:center}.stock-entry-controls small{margin-right:auto}
.stock-entry-controls button{font-size:11px;padding:6px 9px}
.stock-entry-note{font-size:11px;line-height:1.3}
.stock-entry-form .dialog-actions{margin-top:0;flex-shrink:0}
.stock-entry-form .error{margin:0;font-size:12px}
.receiving-screen .ledger-table table{table-layout:fixed}
.receiving-screen .ledger-table th{white-space:normal}
.adjustment-entry .stock-entry-panes{grid-template-columns:1fr 1fr}
#adjustment-products{display:flex;flex:1;min-height:0}
.adjustment-entry .stock-entry-panes table{min-width:450px}
.adjustment-entry .stock-entry-panes>section:last-child th:first-child{width:70%}
.adjustment-modes{display:flex;gap:14px;align-items:center;background:var(--pale);padding:7px;font-size:11px;flex-wrap:wrap}
.adjustment-modes label{display:flex;gap:5px;align-items:center;margin:0;font-size:11px}
.adjustment-modes input{width:auto;margin:0}
.adjustment-history-filters{grid-template-columns:2fr 1.4fr 1fr 1fr auto auto auto}
.adjustment-history-details{white-space:pre-wrap;font-size:11px;line-height:1.4;min-height:55px;max-height:90px;overflow:auto}
.physical-product-filters,.physical-record-filters{display:flex;align-items:end;gap:8px;font-size:12px}
.physical-product-filters label{flex:1;margin:0}
.physical-record-filters label{margin:0;font-size:12px}
.physical-product-filters input,.physical-record-filters input{margin-top:3px;padding:6px 8px;min-height:34px}
.physical-product-filters button,.physical-record-filters button{font-size:11px;min-height:34px;padding:6px 8px}
.physical-record-filters input{width:170px}
.physical-deleted{display:flex;align-items:center;gap:5px;margin:0;font-size:12px}
.physical-deleted input{width:auto;margin:0}
.warehouse-history-filters>div{display:flex;gap:8px;align-items:end;margin-bottom:6px}
.warehouse-history-filters label{margin:0;font-size:12px}
.warehouse-history-filters>div:first-child label:first-child{flex:1}
.warehouse-history-filters input,.warehouse-history-filters select{margin-top:3px;padding:6px 8px;min-height:34px;font-size:12px}
.warehouse-history-filters input[type=date]{width:145px}
.warehouse-history-filters span{font-size:10px;flex:1}
.warehouse-history-filters button{font-size:11px;padding:6px 8px;min-height:34px}
.warehouse-history-filters select{min-width:165px}
#warehouse-movement-list table{min-width:1250px}
.adjustment-screen{flex:1}
@media(min-width:1000px){
 .workspace[data-screen="receiving"] main,.workspace[data-screen="warehouse"] main{display:flex;flex-direction:column;overflow:hidden;padding:12px 16px}
 .workspace[data-screen="receiving"] #screen,.workspace[data-screen="warehouse"] #screen{flex:1;display:flex;flex-direction:column;width:100%;min-height:0;margin:0}
 .workspace[data-screen="stock"] main{display:flex;flex-direction:column;overflow:hidden;padding:12px 16px}
 .workspace[data-screen="stock"] #screen{flex:1;display:flex;flex-direction:column;width:100%;min-height:0;margin:0}
}
@media(max-width:999px){.warehouse-panes{min-height:650px}.stock-entry-panes{grid-template-columns:1fr 1.5fr}.stock-entry-panes>section:last-child table{min-width:570px}}
@media(max-width:650px){.warehouse-panes{grid-template-columns:1fr;min-height:900px}.stock-entry-panes{grid-template-columns:1fr;grid-template-rows:1fr 1fr}.stock-entry-head{flex-wrap:wrap}.receiving-summary{flex-wrap:wrap}}
/* Receiving range, original actions and total stay on one desktop row. */
.receiving-control-row{display:flex;align-items:center;gap:7px;flex-shrink:0;background:white;border:1px solid var(--line);padding:6px 8px}
.receiving-inline-range{display:flex;align-items:center;gap:5px;flex-shrink:0}
.receiving-inline-range label{display:flex;align-items:center;gap:4px;font-size:11px;margin:0}
.receiving-inline-range input{width:126px;min-height:30px;margin:0;padding:4px;font-size:11px}
.receiving-control-row button{font-size:10px;min-height:30px;padding:5px 7px;white-space:nowrap}
.receiving-control-row .stock-toolbar{display:flex;flex-wrap:nowrap;gap:4px;padding:0;margin:0}
.receiving-total{margin-left:auto;white-space:nowrap;font-size:13px}
#receiving-range-error{flex-shrink:0;margin:0}
@media(max-width:1199px){.receiving-control-row{flex-wrap:wrap}.receiving-control-row .stock-toolbar{flex-wrap:wrap}}
@media(max-width:640px){.receiving-inline-range{flex-wrap:wrap}.receiving-total{margin-left:0}}
