/* Compact V156 receiving popups and the two-half Warehouse layout. */
.sm-screen{display:flex;flex-direction:column;flex:1;min-height:0;gap:5px}
.sm-screen .stock-toolbar{flex-shrink:0}.sm-screen .receiving-inline-range{flex-wrap:wrap}
.sm-screen select{max-width:290px;margin:0;padding:5px;min-height:30px}
.sm-screen input[name=q]{width:160px}.sm-screen .ledger-notice{margin:0;font-size:11px}
.sm-scroll{flex:1;min-height:0;overflow:auto;border:1px solid var(--line);background:white}
.sm-product{position:relative;border-bottom:3px solid var(--green)}
.sm-product table{width:100%;min-width:850px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px}
.sm-product th,.sm-product td{padding:7px 8px;white-space:normal;overflow-wrap:anywhere;border-bottom:1px solid var(--line);text-align:center}
.sm-product .sm-number{text-align:center;font-variant-numeric:tabular-nums}
.sm-fixed{position:sticky;top:0;z-index:3;background:#edf5f1;min-width:850px}
.sm-fixed th{background:var(--green);color:white}.sm-fixed td{background:#edf5f1}
.sm-product small{display:block;font-size:10px;margin-top:3px}.sm-period td{background:#f6f8f7;font-weight:600}
.sm-cycle+ .sm-cycle .sm-period td{border-top:2px solid #cbded5}
.sm-summary-table{width:100%;border-collapse:collapse}.sm-summary-table th,.sm-summary-table td{padding:6px;border:1px solid #cbded5;text-align:center}
@media(min-width:1000px){.workspace[data-screen="expired"] main{display:flex;flex-direction:column;overflow:hidden;padding:12px 16px}.workspace[data-screen="expired"] #screen{display:flex;flex-direction:column;flex:1;min-height:0;margin:0;width:100%}}
@media(max-width:999px){.sm-scroll{max-height:70vh;flex:none}.sm-screen .stock-toolbar{flex-wrap:wrap}}
.expired-table table{width:100%;min-width:980px;table-layout:fixed}
.expired-table thead th:first-child{width:27%}.expired-table thead th:nth-child(2){width:17%}.expired-table thead th:nth-child(3){width:20%}
.expired-table thead th:nth-child(4){width:7%}.expired-table thead th:nth-child(5){width:9%}.expired-table thead th:nth-child(6),.expired-table thead th:nth-child(7){width:10%;white-space:normal}
.expired-monthly{display:flex;flex-wrap:wrap;gap:10px 24px;background:#edf5f1;padding:12px;margin:8px 0;border:1px solid #cbded5}.expired-monthly small{flex-basis:100%;font-size:11px}
.expired-table .expired-group>tr:first-child>*{border-top:3px solid var(--accent)}
.expired-table tbody th{position:static;z-index:auto;vertical-align:top;text-align:left;background:#edf5f1;color:#000;padding:12px;white-space:normal}
.expired-table small{display:block;font-size:11px;white-space:normal;margin-top:5px}
.expired-table td{white-space:normal;overflow-wrap:anywhere}
.expired-entry-table{max-height:40vh;margin-top:12px}.expired-entry-table input{min-width:80px;max-width:130px}
.expired-screen .receiving-inline-range{flex-wrap:wrap}.expired-screen select{max-width:300px}
.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}
.adjustment-product-filter{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:12px;flex-shrink:0}
.adjustment-product-filter select{width:min(440px,75vw);min-height:30px;margin:0;padding:4px 8px}
.adjustment-owner :is(#adjustment-list,#wh-adjustment-list) table{min-width:1150px}
.adjustment-cashier :is(#adjustment-list,#wh-adjustment-list) table{min-width:740px}
:is(#adjustment-list,#wh-adjustment-list) td:nth-child(5){min-width:180px;max-width:270px;white-space:normal;overflow-wrap:anywhere}
#receiving-history table{min-width:970px}#receiving-history td:nth-child(5){min-width:180px;max-width:270px;white-space:normal;overflow-wrap:anywhere}
@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-inline-range .sm-expired-only{white-space:nowrap;gap:5px}
.receiving-inline-range .sm-expired-only input{width:16px;height:16px;min-height:16px;margin:0;padding:0}
.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}}

/* v95: column widths moved out of inline styles (blocked by the page security policy). */
.sm-c1{width:27%}.sm-c2{width:25%}.sm-c3{width:10%}.sm-c4{width:14%}.sm-c5{width:24%}
