.receipt-tabs {margin-bottom:12px}
.receipt-workspace {display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.receipt-open-list {margin-bottom:12px}
.receipt-open-list>header {padding:10px 16px;border-bottom:1px solid var(--border)}
.receipt-open-list h2 {margin:0;font-size:var(--text-heading);display:flex;align-items:center;gap:8px}
.receipt-open-items {display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:7px;padding:10px 14px;max-height:190px;overflow:auto}
.receipt-open-item {display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;padding:9px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface,#fff);text-align:left;color:var(--text);font:inherit;cursor:pointer}
.receipt-open-item:hover,.receipt-open-item.active {border-color:var(--accent,#167e74);background:var(--accent-light,#edf8f4)}
.receipt-open-item>span:first-child {display:grid;gap:3px;min-width:0}
.receipt-open-item strong {font-size:var(--text-secondary)}
.receipt-open-item small {font-size:var(--text-secondary);color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.receipt-open-count {font-weight:var(--weight-medium);font-size:var(--text-body);white-space:nowrap}
.receipt-open-empty {padding:12px 16px;font-size:var(--text-secondary)}
.receipt-station .panel-header {padding:14px 18px}
.receipt-station .panel-body {padding:16px 18px}
.receipt-controls {display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin-bottom:14px}
.receipt-controls>label {flex:1;min-width:190px;font-size:var(--text-secondary)}
.receipt-controls select,.receipt-controls input {min-height:var(--control-height);font-size:var(--text-body)}
.receipt-controls.secondary>label {max-width:320px}
.receipt-controls .button-row {flex-shrink:0}
.receipt-count {display:flex;flex-direction:column;gap:4px;margin-left:auto;text-align:right}
.receipt-count span {font-size:var(--text-secondary);color:var(--muted)}
.receipt-count strong {font-size:20px}
.receipt-product-preview {display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid var(--border);border-radius:9px;padding:14px;min-height:92px;margin:12px 0}
.receipt-product-preview .product-placeholder {width:58px;height:68px;flex-basis:58px}
.receipt-product-preview .product-cell strong {font-size:var(--text-body)}
.receipt-product-codes {display:flex;flex-direction:column;gap:5px;font-size:var(--text-secondary);overflow-wrap:anywhere;text-align:right}
.receipt-station .scanner-stage h2 {font-size:var(--text-heading)}
.receipt-station .scanner-history-panel {margin:0}
.map-field-controls {display:flex;gap:10px;align-items:center}
.map-field-controls label {font-size:var(--text-secondary);gap:4px}
.map-field-controls input {width:105px;min-height:var(--control-compact);padding:5px 8px}
#scanner-test-result {margin-top:14px;overflow-wrap:anywhere;white-space:pre-wrap}
.receipt-box-list .table-wrap {overflow:auto}
.receipt-box-list .panel-header input {max-width:360px;min-height:var(--control-height)}
.receipt-tabs~.cards {display:none}
.receipt-box-list~.cards {display:none}
.inventory-route {display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}
.inventory-current {display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 16px;background:var(--bg);border-radius:10px;margin:12px 0}
.inventory-current h2 {font-size:24px;margin:5px 0}
.inventory-workspace .table-wrap {margin:16px 0;max-height:420px;overflow:auto}
.inventory-workspace .scanner-input-row {max-width:800px}
@media(min-width:1550px){.receipt-workspace{grid-template-columns:minmax(700px,1fr) minmax(360px,.45fr);align-items:start}.receipt-workspace .scanner-history-panel{margin:0}.receipt-workspace .scanner-history-panel .table-wrap{max-height:calc(100dvh - 300px);overflow:auto}}
@media(max-width:750px){.receipt-product-preview{align-items:flex-start;flex-direction:column;gap:10px}.receipt-product-codes{text-align:left}.receipt-controls .button-row{flex-shrink:1}.map-field-controls{flex-wrap:wrap}.receipt-station .panel-body{padding:12px}}

/* Receipt station: working controls and the latest result stay above secondary workflows. */
.receipt-station-compact .panel-header{padding:9px 14px}
.receipt-station-compact .panel-header h2{font-size:var(--text-heading);margin:0}
.receipt-station-compact .panel-body{padding:12px 14px}
.receipt-context-row{display:grid;grid-template-columns:minmax(220px,1.2fr) minmax(130px,.75fr) minmax(205px,1fr) auto;gap:12px;align-items:end}
.receipt-context-row label,.receipt-owner-context>span{font-size:var(--text-secondary);color:var(--muted)}
.receipt-context-row select{min-height:var(--control-height);font-size:var(--text-body);padding:7px 9px}
.receipt-owner-context{display:grid;gap:6px;align-self:center;min-width:0}
.receipt-owner-context strong{font-size:var(--text-secondary);line-height:1.3;overflow-wrap:anywhere}
.receipt-station-compact .scanner-well.scanner-stage{grid-template-columns:minmax(190px,.75fr) minmax(260px,1.25fr);padding:12px 14px;margin:12px 0;gap:16px}
.receipt-station-compact .scanner-stage-number{width:34px;height:34px;font-size:19px;border-radius:7px}
.receipt-station-compact .scanner-stage h2{font-size:var(--text-heading)}
.receipt-station-compact .scanner-stage-copy{gap:10px}
.receipt-station-compact .scanner-input-row input{min-height:var(--control-height);font-size:var(--text-body)}
.receipt-last-result{border:1px solid var(--border);border-radius:9px;padding:10px 12px;background:var(--surface,#fff)}
.receipt-result-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.receipt-result-heading strong{font-size:var(--text-secondary)}
.receipt-result-heading>span{font-size:var(--text-secondary);color:var(--muted);text-align:right}
.receipt-last-result .scanner-status{font-size:var(--text-body);line-height:1.4;margin:6px 0;font-weight:var(--weight-medium)}
.receipt-station-compact .receipt-product-preview{border:0;padding:5px 0;margin:0 0 8px;min-height:54px;gap:14px}
.receipt-station-compact .receipt-product-preview .product-placeholder{width:42px;height:48px;flex-basis:42px}
.receipt-station-compact .receipt-product-preview .product-cell strong{font-size:var(--text-secondary)}
.receipt-station-compact .receipt-product-codes{gap:3px;font-size:var(--text-secondary);max-width:45%}
.receipt-return-confirm{margin-top:10px;font-size:var(--text-secondary)}
.receipt-document-tools{margin-top:12px;border-top:1px solid var(--border)}
.receipt-document-tools>summary,.receipt-other-workflows>summary{cursor:pointer;padding:11px 0;font-size:var(--text-secondary);font-weight:var(--weight-medium);color:var(--muted)}
.receipt-document-tools[open]>summary{color:var(--text)}
.receipt-document-tools .receipt-controls{margin:0 0 8px}
.receipt-document-tools .scanner-footnote{margin:0;max-width:430px}
.receipt-other-workflows{margin-top:12px;padding:0 14px}
.receipt-other-workflows>.receipt-open-list{border:0;box-shadow:none;margin-bottom:6px}
.receipt-other-workflows .receipt-entry-grid{margin-bottom:14px}
.receipt-other-workflows .receipt-open-items{padding:8px 0}
@media(min-width:1550px){.receipt-station-compact .receipt-context-row{grid-template-columns:minmax(180px,1.2fr) minmax(110px,.75fr) minmax(180px,1fr) auto;gap:9px}.receipt-station-compact .receipt-context-row .btn{max-width:150px;white-space:normal}}
@media(max-width:1150px){.receipt-context-row{grid-template-columns:minmax(180px,1fr) minmax(140px,1fr)}.receipt-owner-context{align-self:center}.receipt-station-compact .scanner-well.scanner-stage{grid-template-columns:1fr;gap:10px}.receipt-context-row>.btn{justify-self:end}}
@media(max-width:650px){.receipt-context-row{grid-template-columns:1fr}.receipt-owner-context{display:flex;align-items:baseline;gap:8px}.receipt-context-row>.btn{justify-self:stretch}.receipt-station-compact .receipt-product-codes{max-width:100%;text-align:left}.receipt-result-heading{align-items:flex-start}.receipt-station-compact .scanner-input-row input{min-width:0}.receipt-document-tools .scanner-actions-row>.btn{width:auto}}

/* Box browsing is the main workspace; the fitted map navigates the shelves beside it. */
.receipt-storage-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,350px);gap:14px;align-items:start}
.receipt-storage-layout>.receipt-box-list{display:flex;flex-direction:column;height:calc(100dvh - 230px);min-height:480px;min-width:0;margin:0}
.receipt-storage-layout>.receipt-box-list>.panel-header{flex-shrink:0;flex-wrap:wrap;gap:10px;padding:12px 14px}
.receipt-storage-layout .receipt-box-list .panel-header input{flex:1;min-width:190px;max-width:340px}
.receipt-storage-layout .receipt-box-list .table-wrap{flex:1;min-height:0;max-height:none;overflow:auto}
.receipt-storage-layout .receipt-box-list table{min-width:610px}
.receipt-storage-layout .receipt-box-list thead th{position:sticky;top:0;z-index:2;background:#f5f8f7}
.receipt-storage-layout .receipt-box-list td{vertical-align:middle}
.receipt-storage-layout .receipt-box-list td:last-child{white-space:nowrap}
.receipt-map-navigation{min-width:0}
.receipt-map-navigation>.cards{display:none}
.receipt-map-navigation .warehouse-map-layout:not(.map-focus){grid-template-columns:minmax(0,1fr);gap:12px}
.receipt-map-navigation .warehouse-map-layout:not(.map-focus) .panel{margin:0;min-width:0}
.receipt-map-navigation .warehouse-map-layout:not(.map-focus) .map-plan-panel .panel-header{padding:10px 12px;gap:8px}
.receipt-map-navigation .warehouse-map-layout:not(.map-focus) .map-plan-panel .panel-header p{font-size:var(--text-secondary);line-height:1.4}
.receipt-map-navigation .warehouse-map-layout:not(.map-focus) .map-purpose-legend{font-size:var(--text-secondary);gap:8px}
.receipt-map-navigation .warehouse-map-layout:not(.map-focus) .map-grid-toolbar{padding:0 10px 10px;gap:8px}
.receipt-map-navigation .warehouse-map-layout:not(.map-focus) .map-grid-toolbar>span{display:none}
.receipt-map-navigation .warehouse-map-layout:not(.map-focus) .warehouse-floor-scroll[data-map-viewport]{height:245px;min-height:0;max-height:none;margin:0 10px 10px}
.receipt-map-navigation .warehouse-map-layout:not(.map-focus) .map-plan-panel>.sheet-note{display:none}
.receipt-map-navigation .warehouse-map-layout:not(.map-focus) .rack-inspector>.panel-header{padding:10px 12px;gap:8px}
.receipt-map-navigation .warehouse-map-layout:not(.map-focus) .rack-inspector>.rack{display:block;max-height:max(220px,calc(100dvh - 625px));overflow:auto}
.receipt-map-navigation .warehouse-map-layout:not(.map-focus) .rack-inspector .shelf{padding:10px 12px}
.receipt-map-navigation .warehouse-map-layout:not(.map-focus) .rack-inspector>.panel-body{padding:10px 12px}
.receipt-map-navigation .warehouse-map-layout:not(.map-focus) .rack-inspector>.panel-body p:not(.rack-comment){display:none}
@media(min-width:1550px){.receipt-storage-layout{grid-template-columns:minmax(0,1fr) 400px}.receipt-map-navigation .warehouse-map-layout:not(.map-focus) .warehouse-floor-scroll[data-map-viewport]{height:270px}}
@media(max-width:850px){.receipt-storage-layout{grid-template-columns:minmax(0,1fr)}.receipt-storage-layout>.receipt-box-list{height:65dvh;min-height:360px}.receipt-map-navigation .warehouse-map-layout:not(.map-focus){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.receipt-map-navigation .warehouse-map-layout:not(.map-focus) .rack-inspector>.rack{max-height:320px}}
@media(max-width:600px){.receipt-map-navigation .warehouse-map-layout:not(.map-focus){grid-template-columns:minmax(0,1fr)}.receipt-storage-layout>.receipt-box-list>.panel-header{align-items:stretch}.receipt-storage-layout .receipt-box-list .panel-header input{max-width:none;width:100%}.receipt-map-navigation .warehouse-map-layout:not(.map-focus) .warehouse-floor-scroll[data-map-viewport]{height:250px}}

/* The scanner, boxes and map share one receiving workplace. */
.receipt-work-column{display:flex;flex-direction:column;gap:12px;min-width:0}.receipt-work-column .receipt-workspace{display:block}.receipt-work-column .receipt-workspace,.receipt-work-column .panel{margin:0}.receipt-work-column .receipt-station>.panel-header{padding:9px 12px}.receipt-work-column .receipt-station>.panel-header h2{font-size:var(--text-heading)}
.receipt-work-column .receipt-station>.panel-body{padding:10px 12px;display:grid;grid-template-columns:minmax(230px,1fr) minmax(230px,1fr);gap:10px 12px}.receipt-work-column .receipt-context-row,.receipt-work-column .receipt-return-confirm,.receipt-work-column .receipt-document-tools{grid-column:1/-1}.receipt-work-column .receipt-context-row{margin:0;gap:9px;flex-wrap:wrap}.receipt-work-column .receipt-context-row label{font-size:var(--text-secondary)}.receipt-work-column .receipt-context-row select{min-height:var(--control-compact);font-size:var(--text-body);padding:5px 7px}.receipt-work-column .receipt-box-control{min-width:160px;flex:1}.receipt-work-column .receipt-marking-control{min-width:170px}.receipt-work-column .receipt-owner-context strong{font-size:var(--text-secondary)}.receipt-work-column .receipt-context-row>.btn{min-height:var(--control-compact);font-size:var(--text-control);padding:5px 8px}
.receipt-work-column .scanner-well.scanner-stage{display:block;padding:9px 10px;margin:0;align-self:start}.receipt-work-column .scanner-stage-copy{gap:8px;margin-bottom:7px}.receipt-work-column .scanner-stage-copy h2{font-size:var(--text-heading)}.receipt-work-column .scanner-stage-number{width:29px;height:29px;font-size:var(--text-heading);border-radius:6px}.receipt-work-column .scanner-stage-copy p{display:none}.receipt-work-column .scanner-stage form>label{font-size:var(--text-secondary)}.receipt-work-column .scanner-input-row input{min-height:var(--control-height);padding:7px 9px;font-size:var(--text-body);min-width:0}.receipt-work-column .scanner-input-row .btn{min-width:64px;padding:6px 8px;font-size:var(--text-control)}
.receipt-work-column .receipt-last-result{margin:0;padding:0 0 0 12px;border:0;border-left:1px solid var(--border);background:transparent}.receipt-work-column .receipt-result-heading{font-size:var(--text-secondary);gap:8px;flex-wrap:wrap}.receipt-work-column .receipt-result-heading>span{font-size:var(--text-secondary)}.receipt-work-column .receipt-last-result .scanner-status{font-size:var(--text-body);margin:5px 0;min-height:0}.receipt-work-column .receipt-product-preview{padding:0;margin:0;gap:6px}.receipt-work-column .receipt-product-preview .product-image{width:28px;height:35px}.receipt-work-column .receipt-product-preview .product-cell{max-width:none}.receipt-work-column .receipt-product-codes{font-size:var(--text-secondary)}.receipt-work-column .receipt-last-result .btn{min-height:var(--control-compact);padding:4px 7px;font-size:var(--text-control)}.receipt-work-column .receipt-document-tools{margin:0;border-top:1px solid var(--border);padding-top:6px}.receipt-work-column .receipt-document-tools>summary{font-size:var(--text-secondary);padding:2px 0}
.receipt-work-column>.receipt-box-list{display:flex;flex-direction:column;min-height:350px;height:max(350px,calc(100dvh - 560px));min-width:0}.receipt-work-column .receipt-box-list>.panel-header{padding:9px 12px;gap:9px}.receipt-work-column .receipt-box-list>.panel-header h2{font-size:var(--text-heading)}.receipt-work-column .receipt-box-list>.panel-header input{min-height:var(--control-compact);font-size:var(--text-body)}.receipt-work-column .receipt-box-list td,.receipt-work-column .receipt-box-list th{padding:8px 10px}.receipt-work-column .receipt-other-workflows>summary{font-size:var(--text-secondary);padding:11px 13px;cursor:pointer}.receipt-work-column .receipt-other-workflows>.receipt-open-list{border:0}.receipt-origin-product{margin-bottom:16px}.receipt-origin-product .product-cell{max-width:none}.receipt-origin-product~label{margin:12px 0}.receipt-origin-product~.button-row{justify-content:flex-end;margin-top:14px}
@media(max-width:1100px){.receipt-storage-layout{grid-template-columns:minmax(0,1fr) 300px}.receipt-work-column .receipt-station>.panel-body{grid-template-columns:1fr}.receipt-work-column .receipt-last-result{border-left:0;border-top:1px solid var(--border);padding:7px 0 0}}
@media(max-width:850px){.receipt-storage-layout{grid-template-columns:1fr}.receipt-work-column .receipt-station>.panel-body{grid-template-columns:1fr 1fr}.receipt-work-column .receipt-last-result{border-top:0;border-left:1px solid var(--border);padding:0 0 0 12px}}
@media(max-width:600px){.receipt-work-column .receipt-station>.panel-body{grid-template-columns:1fr}.receipt-work-column .receipt-last-result{border-left:0;border-top:1px solid var(--border);padding:7px 0 0}.receipt-work-column .receipt-context-row{display:flex}.receipt-work-column .receipt-box-control{flex-basis:100%}}
.receipt-work-column .receipt-open-list{margin:0}.receipt-open-list>header{padding:8px 12px}.receipt-open-list h2{font-size:var(--text-heading)}.receipt-open-items{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));max-height:165px;padding:0 10px 9px;gap:7px}.receipt-open-item{padding:8px 10px;display:flex;gap:10px;align-items:center;justify-content:space-between}.receipt-open-item>div:first-child{min-width:0}.receipt-open-item small{display:block}.receipt-open-actions{display:flex;flex-wrap:wrap;gap:4px}.receipt-open-actions .btn{min-height:var(--control-row);padding:4px 6px;font-size:var(--text-compact)}.receipt-work-column .receipt-context-row{display:grid;grid-template-columns:minmax(150px,1.1fr) minmax(160px,1fr) minmax(110px,.8fr) minmax(160px,1fr) auto}.receipt-work-column .receipt-context-row>label{min-width:0}.receipt-work-column .receipt-context-row select{width:100%}.receipt-work-column .receipt-context-row .receipt-box-control,.receipt-work-column .receipt-context-row .receipt-marking-control{min-width:0}@media(max-width:1400px){.receipt-work-column .receipt-context-row{grid-template-columns:1fr 1fr}.receipt-work-column .receipt-context-row>.btn{justify-self:start}}@media(max-width:600px){.receipt-work-column .receipt-context-row{grid-template-columns:1fr}.receipt-open-items{grid-template-columns:1fr}.receipt-open-item{flex-wrap:wrap}}
/* Compact receipt navigation follows the grid aspect ratio, leaving rack details directly below it. */
.receipt-map-navigation .warehouse-map-layout:not(.map-focus) .warehouse-floor-scroll[data-map-viewport]{height:auto;aspect-ratio:var(--receipt-map-ratio,8/5);contain:size;min-height:0;max-height:none;overflow:hidden}
.receipt-map-navigation .warehouse-map-layout:not(.map-focus) .map-grid-toolbar{justify-content:flex-end;padding-bottom:6px}
.receipt-map-navigation .warehouse-map-layout:not(.map-focus) .rack-inspector>.rack{max-height:max(260px,calc(100dvh - 530px))}
.receipt-work-column .receipt-box-list>.panel-header{flex-wrap:wrap;align-items:center}
.receipt-box-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:1 1 100%}
.receipt-box-heading h2{margin-right:auto}.receipt-rack-filter{font-size:var(--text-secondary);color:var(--muted)}
.receipt-box-owner-filter{display:flex;align-items:center;gap:7px;min-width:0;flex:1 1 210px;font-size:var(--text-secondary);color:var(--muted)}
.receipt-box-owner-filter select{min-width:100px;max-width:260px;flex:1;min-height:var(--control-compact);padding:5px 7px;font-size:var(--text-body)}
.receipt-box-actions{display:flex;flex-wrap:wrap;gap:5px;min-width:190px;max-width:260px}
.receipt-box-actions .btn{min-height:var(--control-row);padding:4px 7px;font-size:var(--text-compact)}
.receipt-storage-layout .receipt-box-list td:last-child{white-space:normal}

/* Receiving: one compact physical context; document controls stay secondary. */
.receipt-work-column .receipt-context-row{grid-template-columns:minmax(165px,1.2fr) minmax(120px,1fr) minmax(160px,1.1fr) auto;align-items:end}
.receipt-owner-context{min-height:40px;display:flex;flex-direction:column;justify-content:center;gap:4px}.receipt-owner-context>span{font-size:var(--text-secondary);color:var(--muted)}
.receipt-box-list table thead th{font-size:var(--text-table);font-weight:var(--weight-medium);letter-spacing:0;text-transform:none;padding:7px 10px;background:var(--bg)}
.storage-system>.panel-header{padding:10px 14px}.storage-system h2{font-size:var(--text-heading)}.storage-system .table-wrap{max-height:45dvh}.storage-system+.receipt-box-list{margin-top:12px}.storage-system+.receipt-box-list>.table-wrap{max-height:55dvh}
.receipt-document-tools .receipt-controls>label{max-width:700px;margin:8px 0}.receipt-document-tools .receipt-controls>label select{font-size:var(--text-body);min-height:var(--control-compact)}
@media(max-width:1300px){.receipt-work-column .receipt-context-row{grid-template-columns:minmax(160px,1fr) minmax(130px,1fr)}.receipt-work-column .receipt-context-row>.btn{justify-self:start}}
@media(max-width:600px){.receipt-work-column .receipt-context-row{grid-template-columns:1fr}.storage-system>.panel-header{flex-wrap:wrap}}

/* Boxes: one compact filter row and explicit composition columns. */
.receipt-box-list>.panel-header,.receipt-work-column .receipt-box-list>.panel-header{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;padding:8px 10px;min-height:46px}
.receipt-box-heading{flex:1 1 auto;min-width:95px;gap:6px;flex-wrap:wrap}.receipt-box-heading h2{margin:0;font-size:var(--text-heading)}
select.receipt-box-owner-filter{display:block;flex:0 1 200px;width:200px;min-width:135px;min-height:var(--control-compact);padding:4px 7px;font-size:var(--text-body)}
.receipt-box-list>.panel-header #receipt-box-query{flex:0 1 240px;min-width:130px;min-height:30px;padding:4px 8px;font-size:var(--text-secondary);max-width:260px}
.receipt-box-list>.panel-header>.btn{min-height:var(--control-compact);padding:4px 8px;white-space:nowrap;font-size:var(--text-control)}
.receipt-box-list table{width:100%;min-width:810px}.receipt-box-list th,.receipt-box-list td{padding:7px 8px;font-size:var(--text-table)}
.receipt-box-list table thead th{font-size:var(--text-table);padding:6px 8px;white-space:nowrap}
.receipt-box-list td:nth-child(1){white-space:nowrap;width:90px}.receipt-box-list td:nth-child(2){max-width:140px}.receipt-box-list td:nth-child(3){white-space:nowrap;width:72px}.receipt-box-list td:nth-child(6){max-width:90px}.receipt-box-list td:nth-child(7){width:60px}
.box-value-line{display:block;line-height:1.5;overflow-wrap:anywhere}.box-type-button{min-height:var(--control-compact);padding:3px 7px;font-size:var(--text-control)}.box-composition-issue{display:inline-block;background:#fff0d4;color:#90590b;font-weight:var(--weight-strong);margin-left:4px;border-radius:50%;width:15px;text-align:center}
.receipt-box-actions{min-width:205px;max-width:225px;gap:4px}.receipt-box-actions .btn{min-height:var(--control-row);padding:3px 6px;font-size:var(--text-compact)}
@media(max-width:1100px){.receipt-box-list>.panel-header,.receipt-work-column .receipt-box-list>.panel-header{flex-wrap:wrap}.receipt-box-heading{flex:1 1 auto}.receipt-box-list>.panel-header #receipt-box-query{flex:1 1 150px}select.receipt-box-owner-filter{flex:1 1 150px}}

.receipt-work-column .receipt-opening-notice{grid-column:1/-1;margin:0;font-size:var(--text-secondary);line-height:1.5}
/* Inventory working layout follows receiving: scan field with context, scanned product card, compact box list. */
.inventory-station{display:grid;grid-template-columns:minmax(260px,1.2fr) minmax(0,2fr);gap:12px;align-items:center;margin:4px 0 6px}
.inventory-station .scanner-input-row{max-width:none}
.inventory-station #barcode-input{font-size:16px;padding:9px 12px}
.inventory-facts{display:grid;grid-template-columns:repeat(4,minmax(0,auto));gap:6px 16px;align-items:center;padding:8px 12px;border:1px solid var(--line,#dfe7e4);border-radius:8px}
.inventory-facts span{display:block;font-size:11px;color:var(--muted,#64756f)}
.inventory-facts strong{font-size:13px}
.inventory-workspace .scanner-status{margin:4px 0}
.inventory-actions{margin:6px 0 10px}
.inventory-balance-choice{margin:0 0 8px;font-size:13px}
.inventory-work-grid{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:12px;align-items:start}
.inventory-product-card{border:1px solid var(--line,#dfe7e4);border-radius:8px;padding:10px}
.inventory-product-card.is-pending{border-color:#d9a441;background:#fffaf0}
.inventory-product-card.is-empty{min-height:120px;display:flex;align-items:center}
.inventory-product-card dl{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;margin:8px 0 0;font-size:13px}
.inventory-product-card dl div{display:contents}
.inventory-product-card dt{color:var(--muted,#64756f)}
.inventory-product-card dd{margin:0;font-weight:600}
.inventory-workspace .inventory-lines .table-wrap{margin:0;max-height:460px}
.inventory-workspace .inventory-lines td{padding:4px 6px;line-height:1.3}
.inventory-line-product{display:block;max-width:300px}
.inventory-line-product span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted,#64756f);font-size:12px}
@media (max-width:900px){.inventory-station,.inventory-work-grid{grid-template-columns:1fr}.inventory-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
.inventory-workspace .inventory-lines table{table-layout:fixed;width:100%}
.inventory-workspace .inventory-lines th:nth-child(n+2),.inventory-workspace .inventory-lines td:nth-child(n+2){width:92px}
.inventory-workspace .inventory-lines td:first-child{overflow:hidden}
.inventory-workspace .inventory-line-product{max-width:none}
