.prep-main{max-width:1120px;margin:auto}.prep-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}.prep-statuses{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.prep-pill{display:inline-block;border-radius:6px;padding:6px 10px;background:#fff1d2;color:#704800;font-size:.9rem;font-weight:650}.prep-pill.ok{background:#dcf4e7;color:#14532d}.prep-product{border:1px solid #dbe2ed;border-radius:10px;padding:14px;margin:12px 0}.prep-product h3{margin:0 0 8px;font-size:1rem}.prep-product p{margin:6px 0}.prep-row{display:grid;grid-template-columns:minmax(130px,1.3fr) minmax(130px,1fr) minmax(80px,.6fr) auto;gap:8px;align-items:end;margin:12px 0}.prep-row label{display:flex;flex-direction:column;gap:4px;font-size:.85rem}.prep-row input{width:100%;min-width:0}.prep-row button{padding:8px}.prep-confirm{display:flex;gap:8px;align-items:center;margin:14px 0}.prep-confirm input{width:auto}.prep-error{color:#a32121;font-weight:600}.prep-ok{color:#14532d;font-weight:600}.prep-doc{border-bottom:1px solid #dbe2ed;padding:14px 0}.prep-doc:last-child{border-bottom:0}.prep-doc ul{padding-left:20px;margin:8px 0}.prep-doc li{margin:4px 0}.prep-doc button{margin-top:5px}#scan-video{width:100%;max-height:350px;background:#101827;border-radius:10px}#bl-input{width:100%;max-width:460px}.prep-main [hidden]{display:none!important}@media(max-width:650px){.prep-row{grid-template-columns:1fr 1fr}.prep-row label:first-child{grid-column:1/-1}.prep-heading{align-items:flex-start}.prep-main{padding:10px}}

.prep-main label.prep-confirm>input[type=checkbox]{display:inline-block;width:auto;flex:0 0 auto;margin:0;padding:0}.prep-main .prep-confirm{justify-content:flex-start}.prep-main .prep-row input{margin-top:0}
.prep-lot-menu{grid-column:1/-1}.prep-lot-menu select{width:100%;min-width:0}#bl-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}#status-filter{max-width:350px}
.prep-filter{display:flex;flex-direction:column;gap:7px;margin:14px 0;font-weight:650;font-size:.87rem;color:#24344c}.prep-main #status-filter,.prep-main .lot-choice{appearance:none;display:block;width:100%;max-width:none;min-height:44px;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:9px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23314360' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;color:#26354b;padding:10px 38px 10px 13px;font:inherit;box-shadow:0 1px 2px #172b4d08}.prep-main #status-filter:focus,.prep-main .lot-choice:focus{outline:2px solid #a5b8ff;outline-offset:2px}#bl-suggestions:not(:empty){display:grid;grid-template-columns:1fr;gap:6px;margin:8px 0 12px}#bl-suggestions button{text-align:left;min-height:44px;width:100%}.prep-doc h3{overflow-wrap:anywhere}.prep-filter select{cursor:pointer}@media(max-width:650px){.prep-heading h2{font-size:1.1rem}.prep-filter{margin-top:12px}.prep-main #status-filter{min-height:46px;font-size:1rem}}
#selected,#cached-preview{background:#fff;border-left:4px solid #364c80}.prep-product{background:#f0f3f7;border-color:#d5dce6}.prep-product h3{color:#24344c}.prep-lot-rows{display:grid;gap:10px}.prep-row{padding:12px;background:white;border:1px solid #d9e0ea;border-radius:9px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.7fr);margin:0}.prep-row input,.prep-row select{box-sizing:border-box;min-width:0;max-width:100%}.prep-existing{font-size:.82rem;color:#566579}.prep-row label{min-width:0}.prep-doc{background:#f5f7fa;border:1px solid #dbe2ed;border-radius:9px;padding:14px;margin:10px 0}.prep-main #cameraSelect,.prep-main #scannerShape{width:100%;min-height:44px;border:1px solid #cbd5e1;border-radius:8px;padding:8px;background:white;color:#26354b;font:inherit}.lookup-help{font-size:.85rem;color:#617086}@media(max-width:650px){.prep-row{grid-template-columns:1fr 1fr}.prep-row .prep-lot-menu{grid-column:1/-1}.prep-row label:last-child{grid-column:1/-1}}
.history-products{display:grid;gap:8px;margin:12px 0}.history-product{padding:11px;background:#e9edf3;border:1px solid #d6deea;border-radius:8px}.history-product h4{font-size:.9rem;line-height:1.35;margin:0 0 8px;color:#26354b}.history-product p{font-size:.85rem;margin:5px 0}.history-lot{display:grid;gap:4px;background:white;border-radius:6px;padding:9px;margin-top:7px;font-size:.83rem;color:#34445c}.history-lot strong{color:#17365d}.history-lot span{overflow-wrap:anywhere}
/* Product names are deliberately quieter than the delivery reference. */
.prep-main .prep-product h3,.prep-main .history-product h4{font-weight:450;color:#647184;font-size:.94rem;line-height:1.45;letter-spacing:0}
.history-actor{font-size:.86rem;color:#475569;font-weight:550}.history-human-check{border-top:1px solid #d6deea;margin-top:12px;padding-top:12px;display:grid;gap:8px}.history-human-check .prep-pill{justify-self:start}.prep-main .history-check-label{display:flex;align-items:center;gap:9px;font-weight:550;font-size:.88rem;cursor:pointer}.prep-main .history-check-label input[type=checkbox]{width:19px;height:19px;flex:0 0 19px;margin:0;accent-color:#163dcb}.history-human-check p{font-size:.8rem;margin:0;color:#647184}.history-human-check p:empty{display:none}.history-human-check p.prep-error{color:#a32121}
/* Mobile: native date placeholders on iOS can look like today's real date.
   Use an explicit editable text field with a visible neutral placeholder. */
.prep-main .prep-row input{background:#fff;color:#24344c;min-height:44px;min-width:0}
.prep-main .prep-row input[data-field=expiry]{appearance:none;-webkit-appearance:none;border:1px solid #cbd5e1;background:#fff;text-align:left;font-size:16px;padding:9px 8px}
.prep-main .prep-row input::placeholder{color:#8995a5;font-weight:400;opacity:1}
.prep-dates{font-size:.86rem;color:#475569;margin:8px 0 12px}.prep-dates p{margin:4px 0}
.prep-main #bl-suggestions .inventory-result,.prep-main .inventory-search{background:#087d72;border:1px solid #087d72;color:#fff;border-radius:8px;font-weight:650}
.prep-main #bl-suggestions .inventory-result:focus-visible{outline:3px solid #8ccec6;outline-offset:2px}
@media(max-width:650px){.prep-main .prep-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:10px}.prep-main .prep-row label{min-width:0}.prep-main .prep-row input{max-width:100%;width:100%;font-size:16px}}
