/* One bounded work surface; only the product list scrolls in ordinary receiving. */
.scan-dialog:has(.receipt-controls184) .modal-head{display:grid;grid-template-columns:minmax(0,1fr) auto 36px;column-gap:8px}.scan-dialog:has(.receipt-controls184) .modal-head h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scan-dialog:has(.receipt-controls184) .modal-head #work-head-actions{margin-left:0;min-width:0}.scan-dialog:has(.receipt-controls184) .modal-head #work-head-actions button{width:max-content;max-width:none;white-space:nowrap;gap:5px}.scan-dialog:has(.receipt-controls184) .modal-head>[data-act=close-modal]{width:36px;min-width:36px;height:36px;min-height:36px;margin:0;padding:0}
.scan-dialog:has(.receipt-controls184) .modal-body{display:flex;flex-direction:column;overflow:hidden;min-height:0;gap:7px;padding-bottom:10px}
.scan-dialog:has(.receipt-controls184) #camera-live-target{flex:none}.location184 strong{font-size:clamp(24px,5vw,38px)!important;line-height:1.15!important;overflow-wrap:anywhere}.location184 .eyebrow{font-size:10px}.location184 .location-summary184{font-size:14px;line-height:1.35}.location-summary184 small{display:block;color:var(--muted);font-size:11px}
.scan-dialog:has(.receipt-controls184) #camera-product-card{display:flex;flex-direction:column;flex:1 1 auto;min-height:75px;overflow:hidden}.draft-list184{overflow-y:auto;overflow-x:hidden;min-height:50px;flex:1;overscroll-behavior:contain}.draft-product184{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:8px;border-bottom:1px solid var(--line);padding:9px 0;align-items:start;min-width:0}.draft-product184 .product-photo{width:42px;height:42px;min-height:42px}.draft-product184>div{min-width:0}.draft-product184 strong,.draft-product184 small,.draft-product184 span{display:block;line-height:1.35;overflow-wrap:anywhere}.draft-product184 strong{font-size:13px}.draft-product184 small{font-size:10px;color:var(--muted);margin-top:3px}.draft-product184 .draft-product-count184{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.draft-product-count184>b{white-space:nowrap;font-size:14px}.draft-product184 button{height:30px!important;min-height:30px!important;font-size:11px!important;padding:0 7px!important}.draft-empty184{color:var(--muted);font-size:12px;line-height:1.4;margin:9px 0}.scan-expected184{font-size:10px;color:var(--muted);margin-top:5px}.scan-flow184{display:flex;gap:6px;padding-bottom:5px;flex:none}.scan-flow184 button{font-size:11px!important;height:30px!important;min-height:30px!important;padding:0 8px!important}
.scan-dialog .receipt-controls184{width:100%;display:flex;flex-direction:column;align-items:stretch;gap:6px}.receipt-controls184>button{align-self:flex-end}.receipt-controls184>div{display:flex;justify-content:space-between;gap:6px}.receipt-controls184 button{font-size:11px!important;height:34px!important;min-height:34px!important;padding:0 9px!important;white-space:nowrap!important}.scan-dialog:has(.receipt-controls184) #camera-feedback{flex:none;font-size:11px;line-height:1.35;padding:4px 0;color:var(--muted);background:none;border:0;display:flex;align-items:center;gap:7px}.scan-dialog:has(.receipt-controls184) #camera-feedback[hidden]{display:none}.scan-dialog:has(.receipt-controls184) #camera-feedback[data-state=error],.scan-dialog:has(.receipt-controls184) #camera-feedback[data-state=unknown]{color:var(--red)}.scan-dialog:has(.receipt-controls184) #work-head-actions button{font-size:11px;height:32px;min-height:32px;padding:0 8px}.scan-dialog:has(.receipt-controls184) #work-head-actions .icon{width:15px;height:15px}
.spinner184{display:inline-block;flex:none;width:13px;height:13px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin184 .8s linear infinite}@keyframes spin184{to{transform:rotate(360deg)}}
.history-staged184{padding:12px;border:1px solid var(--line);background:var(--surface-2);border-radius:8px;margin:12px 0}.history-staged184>h3{margin:0 0 6px}.history-staged184>p{font-size:12px}.history-staged184 article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:8px 0;border-top:1px solid var(--line);font-size:12px}.history-staged184 article small{display:block;color:var(--muted);margin-top:3px}.history-staged184 article>span{min-width:0;overflow-wrap:anywhere}.scan-suggestions184{font-size:11px;flex:none;padding:5px 0}.scan-suggestions184>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.scan-suggestions184 label{display:flex;align-items:center;gap:4px;white-space:nowrap}.scan-suggestions184 input{width:49px;min-width:0;min-height:28px;height:28px;font-size:13px;padding:2px 4px}.scan-suggestions184 p{margin:5px 0;line-height:1.3}.scan-suggestions184 small{display:none}
@media(max-height:690px){.scan-dialog:has(.receipt-controls184) .modal-body{gap:4px}.scan-dialog:has(.receipt-controls184) .work-location{padding:7px 9px}.scan-dialog:has(.receipt-controls184) .location184 strong{font-size:24px!important}.scan-dialog:has(.receipt-controls184) .camera-view{flex:0 1 85px;min-height:58px;max-height:16dvh}.scan-dialog:has(.receipt-controls184) .reader-ready183{font-size:10px;margin:0}.scan-dialog:has(.receipt-controls184) .work-input-mode button{height:30px;min-height:30px}.receipt-controls184 button{height:30px!important;min-height:30px!important}.draft-product184{padding:6px 0;grid-template-columns:34px minmax(0,1fr) auto}.draft-product184 .product-photo{width:34px;height:34px;min-height:34px}.scan-dialog:has(.receipt-controls184) .scan-expected184{font-size:9px}.scan-dialog:has(.receipt-controls184) #camera-status{font-size:9px;padding:2px 0}}
@media(max-width:360px){.receipt-controls184>div button{font-size:10px!important;padding:0 6px!important}.scan-flow184 button{font-size:10px!important;padding:0 5px!important}.draft-product184 strong{font-size:12px}}

/* A constant border keeps the close control the same size in every state. */
.scan-dialog .receipt-controls184>button.danger{background:#b42318;color:#fff;border:1px solid #b42318}.scan-dialog .receipt-controls184>button.danger:hover:not(:disabled){background:#8e1b13;border-color:#8e1b13}.scan-dialog .receipt-controls184>button.danger:disabled{opacity:.5;cursor:not-allowed}

/* V185: fixed alignment, product rows retain their list layout. */
.scan-dialog .location184{align-items:center;text-align:center;justify-content:center}
.scan-dialog .receipt-controls184{align-items:center;gap:5px}
.scan-dialog .receipt-controls184>button{align-self:center}
.scan-dialog .receipt-controls184>div{display:contents}
.scan-dialog .receipt-controls184 button{width:min(100%,240px);justify-content:center}
.draft-product184 .inline-count185{align-items:center;width:100px;max-width:100%;gap:3px}
.inline-stepper185{display:grid;grid-template-columns:28px minmax(30px,1fr) 28px;align-items:center;gap:2px;width:100%}
.inline-stepper185 button{width:28px!important;padding:0!important;font-size:18px!important}
.inline-stepper185 b{font-size:14px;text-align:center;overflow-wrap:anywhere;line-height:1.1}
.inline-stepper185 b small{font-size:9px;margin:0}
.inline-count185>button{width:100%;max-width:100%;white-space:normal!important;height:auto!important;min-height:28px!important}
.scan-settings185,.scan-method185{display:flex;flex-direction:column;gap:8px;align-items:stretch}
.scan-settings185 button{width:100%;justify-content:flex-start;text-align:left}
.scan-method185{padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:4px}
.scan-method185 p{margin:0;font-size:13px}
.scan-method185 .active{border-width:1px;background:var(--accent);color:var(--accent-on)}
.scan-button185{width:auto;max-width:max-content}

.scan-dialog:has(.receipt-controls184) .work-input-mode{justify-content:center}
.scan-dialog:has(.receipt-controls184) .reader-ready183{text-align:center}
.scan-dialog:has(.receipt-controls184) #camera-feedback{justify-content:center;text-align:center}
.receiving-grid.receipt-layout185{grid-template-columns:1fr}
.receipt-layout185 .receipt-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
@media(max-width:680px){.receipt-layout185 .receipt-side{grid-template-columns:1fr}}
