/* Final1.8.6: shared receiving/picking surface, semantic theme tokens. */
.location-pair186{grid-template-columns:minmax(0,2fr) minmax(98px,.9fr)}
.location-proposal186{padding:8px;gap:3px}.location-proposal186 strong{font-size:17px}.location-proposal186 .badge{font-size:9px;padding:2px 5px}
.scan-dialog .location-pair186 .work-location{justify-content:center}.scan-dialog .pick-row184{font-size:24px!important;line-height:1.1;margin:0}.scan-dialog .pick-code184{font-size:21px!important;line-height:1.2;margin:3px 0}
.scan-dialog .pick-route186{align-items:center;text-align:center}.pick-route186>b{font-size:12px}.pick-route186 small{font-size:10px;overflow-wrap:anywhere}
.scan-dialog .rack-mini186{display:block!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--ink)!important;padding:0!important;min-height:0!important;height:auto!important;width:100%!important;max-width:160px}
.rack-mini186 span{display:block;font-size:9px;line-height:1.2;color:var(--muted)}.rack-map186{display:block;width:100%;height:auto;max-height:210px;color:var(--ink)}.rack-map186 text{fill:var(--ink);font-size:12px;font-family:inherit}.rack-map186 .map-cell186{fill:var(--surface-2);stroke:var(--muted);stroke-width:.8}.rack-map186 .map-target186{fill:#b42318;stroke:#b42318;stroke-width:2;animation:box-highlight186 1.6s ease-in-out 3}.rack-map186 .map-target-text186{fill:#fff;font-weight:700}
@keyframes box-highlight186{50%{stroke-width:4;fill:#db4034}}
@media(prefers-reduced-motion:reduce){.rack-map186 .map-target186{animation:none}}
.layout-editor186{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:20px}.layout-editor186 h3{margin-top:0}.layout-editor186 p,.layout-editor186 small{font-size:12px;line-height:1.5}.floor-map186{width:100%;height:auto;display:block;max-height:400px}.floor-map186 .floor-base186{fill:var(--surface-2);stroke:var(--line)}.floor-map186 .floor-rack186{fill:var(--surface);stroke:var(--muted)}.floor-map186 text{font-family:inherit;font-size:12px;fill:var(--ink)}.floor-map186 .floor-entry186{fill:var(--muted)}.floor-map186 g.is-selected .floor-rack186{stroke:#b42318;stroke-width:3}.floor-map186 g.is-selected text{font-weight:700}.floor-map186.editable g{cursor:grab}.floor-map186.editable{touch-action:pan-y}.layout-fields186{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.layout-fields186 label,.layout-editor186 form>label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted)}.layout-fields186 input,.layout-fields186 select,.layout-editor186 select{width:100%;min-width:0;color:var(--ink)}.layout-fields186 .check{flex-direction:row;align-items:center}.layout-fields186 .check input{width:auto}.layout-mapping186{margin-top:20px;padding-top:12px;border-top:1px solid var(--line)}.layout-zoom186 h3{font-size:17px}.layout-zoom186>.rack-map186{max-height:300px}.layout-zoom186 .floor-map186{max-height:290px}.suggest-settings186{display:grid;gap:16px}.suggest-settings186 label{display:flex;flex-direction:column;gap:7px}.suggest-settings186 .check{flex-direction:row;align-items:center}.suggest-settings186 .check input{width:auto}
.pick-workspace186{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}.pick-workers186{display:flex;gap:12px;flex-wrap:wrap}.pick-workers186 span{padding:7px 12px;background:var(--surface-2);border-radius:6px;font-size:12px}.pick-workspace186>small{flex:1 0 100%;color:var(--muted)}
.scan-dialog.picking-scan186{width:min(640px,calc(100vw - 24px));max-height:calc(100dvh - 20px)}
.scan-dialog.picking-scan186 .modal-body{display:flex;flex-direction:column;gap:8px;overflow-y:auto;overflow-x:hidden;max-height:calc(100dvh - 85px);padding:10px 14px}
.picking-scan186 #camera-live-target{flex:none}.picking-scan186 #camera-product-card{min-height:0;flex:1 1 auto;display:flex}.picking-scan186 .pick-product186{display:flex;flex-direction:column;align-items:stretch;width:100%;gap:6px;margin:0;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);min-width:0}
.picking-scan186 .pick-photo186{display:flex!important;justify-content:center;align-items:center;min-height:90px!important;height:clamp(90px,22vh,230px)!important;max-height:none;width:100%;padding:2px!important;border:0!important;background:var(--surface)!important;box-shadow:none!important;color:var(--muted)}
.picking-scan186 .pick-photo186 .product-photo{width:100%!important;height:100%!important;max-width:none!important;max-height:230px!important;object-fit:contain;min-height:0}.picking-scan186 .pick-photo186 .photo-placeholder{width:100%;height:100%;display:grid;place-items:center}
.picking-scan186 .work-product-info{gap:3px;display:flex;flex-direction:column;min-width:0}.picking-scan186 .work-product-info strong{font-size:16px;line-height:1.25;white-space:normal;overflow-wrap:anywhere}.picking-scan186 .work-product-info small{font-size:11px;color:var(--muted);line-height:1.35;overflow-wrap:anywhere}
.pick-amount186{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--ink)}.pick-amount186 strong{font-size:20px}.pick-amount186 span{font-size:12px}.box-remaining186{font-size:12px;line-height:1.4;color:var(--ink);background:var(--surface-2);padding:6px 8px;border-radius:5px}
.picking-scan186 .manual-confirm{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:6px 0 0;background:none;border:0}.picking-scan186 .manual-confirm label{display:flex;align-items:center;gap:5px;font-size:12px}.picking-scan186 .manual-confirm input{width:68px;height:36px;padding:4px}.picking-scan186 .manual-confirm button{width:auto;min-width:125px;height:36px!important;min-height:36px!important;font-size:14px!important;padding:5px 13px!important}
.picking-scan186 .camera-view{height:105px;min-height:90px;max-height:120px;flex:none}.picking-scan186 #camera-status{font-size:10px;padding:2px 4px;flex:none}.picking-scan186:has(.camera-view) .pick-photo186{height:100px!important;min-height:65px!important}
.picking-scan186 #work-controls{margin:0;flex:none}.picking-scan186 .pick-controls186{gap:6px}.picking-scan186 .pick-controls186>button{font-size:12px!important;min-height:32px!important;height:32px!important;padding:4px 12px!important}.pick-controls186>small{font-size:10px;color:var(--muted)}
.picking-scan186 #camera-feedback{font-size:11px;line-height:1.3;padding:5px 8px;margin:0;flex:none}.picking-scan186 .reader-ready183{font-size:10px;margin:0;padding:3px;flex:none}.picking-scan186 #audio-recovery:empty,.picking-scan186 #reader-queue-status:empty{display:none}
.pick-overview186{display:grid;gap:0}.pick-overview186 article{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:12px 0}.pick-overview186 article>div{flex:1;min-width:0}.pick-overview186 article>strong{font-size:14px;flex-shrink:0;text-align:right}.pick-overview186 small{display:block;color:var(--muted);font-size:11px;line-height:1.5}.pick-overview186 p{margin:3px 0;font-size:12px;overflow-wrap:anywhere}.pick-overview186 .product-photo{width:54px;height:64px;object-fit:contain}.pick-overview186 .is-prepared{opacity:.7}.pick-overview186 .negative{color:#b42318}.pick-overview186 .positive{color:#168347}[data-theme=dark] .pick-overview186 .negative{color:#ffaaa0}[data-theme=dark] .pick-overview186 .positive{color:#8bddad}
@media(max-width:640px){.layout-editor186{grid-template-columns:1fr}.scan-dialog.picking-scan186{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;margin:0}.picking-scan186 .modal-body{flex:1;max-height:none;padding:8px;gap:6px}.picking-scan186 .pick-row184{font-size:22px!important}.picking-scan186 .pick-code184{font-size:19px!important}.picking-scan186 .location-actions186{margin-top:4px}.picking-scan186 .pick-photo186{height:clamp(90px,23dvh,220px)!important}.picking-scan186:has(.camera-view) .pick-photo186{height:90px!important}.picking-scan186 .work-product-info strong{font-size:14px}.picking-scan186 .pick-amount186 strong{font-size:18px}.location-proposal186 strong{font-size:15px}}
@media(max-height:700px){.picking-scan186 .pick-photo186{height:85px!important;min-height:60px!important}.picking-scan186 .modal-body{gap:4px}.picking-scan186 .camera-view{height:85px;min-height:70px}.picking-scan186 .pick-product186{padding:6px;gap:4px}.picking-scan186 .box-remaining186{font-size:11px;padding:4px}.picking-scan186 .pick-route186 .rack-mini186{max-width:95px}.picking-scan186 .pick-row184{font-size:20px!important}}

.picking-scan186 .pick-photo186 .photo-open{width:100%!important;height:100%!important;min-height:0!important;padding:0!important;border:0!important}.picking-scan186 .pick-photo186 img{width:100%!important;height:100%!important;object-fit:contain!important;max-height:230px!important}

/* Keep the chosen input readable with every dark-theme accent. */
[data-theme=dark] .scan-dialog .work-input-mode button.active{color:var(--ink);background:var(--surface-2);border-color:color-mix(in srgb,var(--accent) 50%,var(--ink))}
/* Manual quantity controls belong inside the product card even on short screens. */
.picking-scan186 #camera-product-card{flex-shrink:0}
