/* V188: modal scanner with independently scrollable product cards. */
body.work-modal-open #app{visibility:visible!important}
#modal.scan-dialog{position:fixed!important;inset:0!important;margin:auto!important;width:min(960px,calc(100vw - 24px))!important;max-width:960px!important;height:min(900px,calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important;border:1px solid var(--line)!important;border-radius:16px!important;box-shadow:0 20px 80px #0005!important;overflow:hidden!important}
#modal.scan-dialog::backdrop{background:#10182885!important;backdrop-filter:blur(2px)}
#modal.scan-dialog .modal-body{display:flex!important;flex-direction:column!important;gap:10px!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:14px!important}
#modal.scan-dialog .modal-head{padding:12px 16px!important;flex:none}
#modal.scan-dialog #camera-live-target{flex:0 0 auto!important;min-height:0!important}
#modal.scan-dialog .location-pair186{display:grid!important;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;align-items:stretch!important;gap:12px!important}
#modal.scan-dialog .work-location,#modal.scan-dialog .location-proposal186{padding:10px!important;min-height:0!important;gap:4px!important;border:1px solid var(--line)!important;border-radius:10px!important;justify-content:flex-start!important;display:flex;flex-direction:column;text-align:center;align-items:center}
#modal.scan-dialog .location184>strong,#modal.scan-dialog .pick-code184{font-size:clamp(18px,2.7vw,26px)!important;line-height:1.25!important;margin:0!important}
#modal.scan-dialog .pick-row184{font-size:22px!important;line-height:1.2!important}
#modal.scan-dialog .location-proposal186>strong{font-size:18px!important}.location-proposal186 small{line-height:1.4;overflow-wrap:anywhere}
#modal.scan-dialog .location-summary184{font-size:13px!important;line-height:1.4!important}.location-summary184 small{font-size:11px!important}
#modal.scan-dialog .rack-mini186{width:100%;max-width:360px!important;padding:3px!important;min-height:0!important;height:auto!important}.rack-column188{fill:var(--surface-2,#f2f4f7);stroke:var(--muted,#788496);stroke-width:1.3}.rack-map186{width:100%;height:auto!important;max-height:145px!important}
#modal.scan-dialog #camera-product-card{display:flex!important;flex-direction:column!important;flex:1 1 260px!important;min-height:145px!important;overflow:auto!important}
#modal.scan-dialog .draft-list184{display:flex!important;flex-direction:column!important;gap:10px!important;overflow:visible!important;flex:none!important;min-height:0!important;padding:2px!important}
#modal.scan-dialog .draft-product184{display:grid!important;grid-template-columns:64px minmax(0,1fr) 96px!important;align-items:start!important;gap:12px!important;border:1px solid var(--line)!important;border-radius:10px!important;padding:12px!important;flex:none!important;min-height:100px!important;background:var(--surface,var(--card,#fff))}
#modal.scan-dialog .draft-product184 .photo-detail186,#modal.scan-dialog .draft-product184 .product-photo{width:64px!important;height:64px!important;min-height:64px!important;padding:0!important;border-radius:7px;object-fit:contain}
#modal.scan-dialog .draft-product184 .product-identity186{width:100%!important;height:auto!important;min-height:0!important;padding:0!important;text-align:left!important;white-space:normal!important;display:block!important;line-height:1.4!important;overflow-wrap:anywhere!important}
#modal.scan-dialog .product-identity186 strong{font-size:14px!important;line-height:1.4!important;display:block!important;white-space:normal!important}.product-identity186 span{line-height:1.45!important;margin-top:3px}
#modal.scan-dialog .scan-expected184{font-size:11px!important;line-height:1.5!important;white-space:normal!important}
#modal.scan-dialog .draft-product184 .product-print187{justify-content:flex-start;flex-wrap:wrap;margin:6px 0 0}.draft-product184>div{min-width:0}
#modal.scan-dialog .pick-product186{border:1px solid var(--line);border-radius:10px;padding:16px;flex:none;min-height:min-content;overflow:visible}.pick-product186 .pick-photo186 .product-photo{height:clamp(130px,22vh,260px);width:100%;object-fit:contain}
#modal.scan-dialog .receipt-controls184{gap:8px;align-items:center}.scan-dialog .receipt-controls184>div{display:flex!important;justify-content:center!important;gap:8px;width:100%}.scan-dialog .receipt-controls184>div button{width:auto!important;flex:1 1 0;max-width:240px}
#modal.scan-dialog .work-input-mode{margin:0!important;flex:none}.scan-dialog #work-controls{flex:none}.scan-dialog .camera-view{min-height:70px!important;max-height:18dvh!important;flex:0 1 140px!important}
/* Native scrollbars remain usable with a Windows mouse. Never clip a table. */
.table-wrap,.data-table-wrap,.grid-table-wrap{max-width:100%;overflow-x:auto!important;scrollbar-width:auto!important;scrollbar-color:#8591a4 var(--surface-2,#eef1f5);scrollbar-gutter:stable;overscroll-behavior-x:contain}
.table-wrap::-webkit-scrollbar,.data-table-wrap::-webkit-scrollbar,.grid-table-wrap::-webkit-scrollbar{height:14px!important;width:14px!important;display:block!important}
.table-wrap::-webkit-scrollbar-thumb,.data-table-wrap::-webkit-scrollbar-thumb,.grid-table-wrap::-webkit-scrollbar-thumb{background:#8591a4;border:3px solid var(--surface-2,#eef1f5);border-radius:8px}
.table-wrap::-webkit-scrollbar-track,.data-table-wrap::-webkit-scrollbar-track,.grid-table-wrap::-webkit-scrollbar-track{background:var(--surface-2,#eef1f5)}
.receiving-grid,.dispatch-grid,.operation-workspace186,.receipt-layout185{width:100%;max-width:none!important}.receipt-side>.card{align-items:center!important;text-align:center}.delivery-panel>[data-act=import-delivery]{width:auto!important;min-height:34px!important;height:34px!important;padding:5px 12px!important;align-self:center}.delivery-panel .note-row{text-align:left;width:100%}.completion-panel .form-actions{justify-content:center}
.page-progress{display:none!important}body:has(#work-busy187:not([hidden])) .page-progress{display:none!important}
.inventory-columns188{display:grid;grid-template-columns:1fr 1fr;gap:20px}.inventory-list188{height:280px;overflow:auto;border:1px solid var(--line);border-radius:8px;margin-top:8px}.inventory-list188>label{display:flex;gap:10px;padding:9px;border-bottom:1px solid var(--line);font-size:12px}.inventory-list188 small{display:block;color:var(--muted)}.inventory-list188 input{width:18px;min-height:18px;flex:none}.inventory-names188{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.layout-model188{padding:14px;border:1px solid var(--line);border-radius:10px;margin-bottom:16px}.layout-model188 details{margin-top:14px}.layout-model188 p{font-size:13px}.outbox-row188{border:1px solid var(--line);border-radius:9px;margin:10px 0;padding:12px}.outbox-row188 strong,.outbox-row188 span,.outbox-row188 small{display:block;overflow-wrap:anywhere}
@media(max-width:560px){#modal.scan-dialog{width:calc(100vw - 12px)!important;height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important;border-radius:12px!important}#modal.scan-dialog .modal-body{padding:9px!important;gap:8px!important}#modal.scan-dialog .location-pair186{gap:7px!important;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)!important}#modal.scan-dialog .work-location,#modal.scan-dialog .location-proposal186{padding:7px!important}#modal.scan-dialog .draft-product184{grid-template-columns:48px minmax(0,1fr) 80px!important;gap:7px!important;padding:9px!important}#modal.scan-dialog .draft-product184 .photo-detail186,#modal.scan-dialog .draft-product184 .product-photo{width:48px!important;height:48px!important;min-height:48px!important}#modal.scan-dialog .product-identity186 strong{font-size:13px!important}#modal.scan-dialog .inline-count185{width:80px!important}.inventory-columns188,.inventory-names188{grid-template-columns:1fr}.location-actions186{gap:4px;flex-wrap:wrap}.location-actions186 button{width:30px;height:30px;min-height:30px;padding:4px}}
