:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#20312d;background:#f7faf7}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}.login{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#eef7f1,#fff7dc)}.loginPanel,.panel,.metric{background:#fff;border:1px solid #dfe8e3;border-radius:8px;box-shadow:0 12px 36px #1c383014}.loginPanel{width:min(420px,100%);padding:28px}h1,h2,h3,p{margin-top:0}label{display:grid;gap:6px;color:#40544f;font-weight:700}input,select{width:100%;border:1px solid #cbd9d2;border-radius:6px;padding:12px;color:#172521;background:#fff}input[type=checkbox]{width:auto}form{display:grid;gap:16px}.primary,.secondary,aside button,.search button,.capture{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:8px;padding:14px 16px;font-weight:800}.primary{background:#2f6f5e;color:#fff}.primary:disabled{opacity:.45;cursor:not-allowed}.secondary{background:#edf5f1;color:#244b41;border:1px solid #cbd9d2}.linkButton{text-decoration:none}.error{color:#b63b32}.success{color:#2f6f5e}.app{display:grid;grid-template-columns:280px 1fr;min-height:100vh}aside{background:#eff6f2;border-right:1px solid #dbe8e1;padding:18px;display:grid;align-content:start;gap:10px}.brand{display:flex;align-items:center;gap:10px;margin-bottom:12px;color:#18483d}aside button{justify-content:flex-start;background:transparent;color:#263b35}aside button:hover{background:#dfece6}main{padding:20px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;color:#53635e}header strong{font-size:clamp(24px,4vw,36px);color:#1e332d}.grid{display:grid;gap:14px}.cards{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.metric{padding:18px;display:grid;gap:12px}.metric span{color:#60746e;font-weight:700}.metric strong{font-size:36px}.metric.warn{border-color:#e7c76f}.metric.danger{border-color:#d98278}.flow{display:grid;gap:18px;max-width:980px}.capture{min-height:132px;background:#f6d36b;color:#263000;border:1px solid #e7bd3d;font-size:clamp(20px,4vw,30px)}.capture.small{min-height:80px;font-size:18px}.capture input{display:none}.panel{padding:18px;display:grid;gap:14px}.formGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.inlineForm{padding:14px;border:1px solid #dbe8e1;border-radius:8px;background:#fbfdfc}.confidence{padding:10px 12px;background:#eef7f1;border-radius:6px}.confidence.low{background:#fff5d8;border:1px solid #e7c76f}.confidence b{color:#a44812;margin-left:8px}.deliveryPhoto{width:min(520px,100%);max-height:320px;object-fit:contain;border:1px solid #dbe8e1;border-radius:8px;background:#f7faf7}.suggestions,.list{display:grid;gap:10px}.suggestions button,.list button{display:grid;grid-template-columns:1fr auto;gap:4px 12px;text-align:left;border:1px solid #dbe8e1;background:#fff;border-radius:8px;padding:12px}.deliveryQueue{display:grid;gap:10px}.deliveryRow{width:100%;display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(190px,.9fr) auto auto;gap:14px;align-items:center;text-align:left;border:1px solid #dbe8e1;background:#fff;border-radius:8px;padding:14px 18px}.deliveryRow:hover{border-color:#2f6f5e;box-shadow:0 8px 22px #1c383014}.deliveryRow.selected{border-color:#2f6f5e;background:#eef7f1}.rowMain,.rowMeta{display:grid;gap:4px}.rowMain strong,.rowMeta strong{color:#061e19}.rowMain small,.rowMeta small{color:#66766f;font-weight:700}.statusPill{padding:8px 10px;border-radius:999px;background:#eef7f1;color:#2f6f5e;font-weight:800;white-space:nowrap}.statusPill.done{background:#e9edf0;color:#60746e}.rowAction{justify-self:end;padding:10px 12px;border-radius:8px;background:#2f6f5e;color:#fff;font-weight:900;white-space:nowrap}.pickupDetail{border-color:#2f6f5e}.backButton{justify-self:start}.detailGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;padding:12px;border-radius:8px;background:#eef7f1}.detailGrid div{display:grid;gap:4px}.detailGrid span{color:#60746e;font-weight:800}.detailGrid strong{color:#061e19}.suggestions span,.list span{color:#66766f}.suggestions em,.list em{grid-row:span 2;align-self:center;color:#2f6f5e;font-style:normal;font-weight:800;text-align:right}.muted{color:#66766f;margin:0}.manualSearch{display:grid;gap:10px;padding:14px;background:#f7faf7;border-radius:8px}.list.compact{max-height:260px;overflow:auto}.locationList{display:grid;gap:10px}.locationRow,.locationEditor{display:grid;gap:12px;border:1px solid #dbe8e1;border-radius:8px;padding:12px;background:#fff}.locationRow{grid-template-columns:1fr auto;align-items:center}.locationRow strong{color:#061e19}.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.actions button{padding:10px 12px}.actions button:disabled{opacity:.45;cursor:not-allowed}.dangerButton{color:#8c312a;border-color:#e3b8b2;background:#fff2f0}.userSummary{display:grid;gap:4px}.userSummary small{color:#66766f;font-weight:700}.checkLabel{display:flex;align-items:center;gap:8px;align-self:end;padding:12px 0}.ocrRaw summary{cursor:pointer;font-weight:800;color:#2f6f5e}.ocrRaw pre{margin-bottom:0;max-height:220px}.protocol{display:flex;align-items:center;gap:16px;padding:14px;background:#f7faf7;border-radius:8px}.protocol strong{font-size:28px}.pickupCode{padding:10px 12px;border-radius:8px;background:#fff5d8;color:#4f3b00;font-size:24px;font-weight:900}.protocol img{width:116px;height:116px}.quickPickup{border-color:#f0cf65}.quickConfirm{display:grid;gap:4px;padding:12px;border:1px solid #d8c06a;border-radius:8px;background:#fff8df}.quickConfirm strong{color:#4f3b00}.quickConfirm span{font-weight:900;color:#061e19}.quickConfirm small{color:#6e6140;font-weight:700}.search{display:grid;grid-template-columns:1fr auto auto;gap:10px}.search button{background:#2f6f5e;color:#fff}.search button:disabled{opacity:.45;cursor:not-allowed}.search .secondary{background:#edf5f1;color:#244b41;border:1px solid #cbd9d2}.scannerPanel video{width:min(520px,100%);max-height:360px;background:#061e19;border-radius:8px}pre{white-space:pre-wrap;background:#f4f7f5;padding:12px;border-radius:8px;overflow:auto}@media(max-width:760px){.app{grid-template-columns:1fr}aside{position:sticky;top:0;z-index:2;grid-template-columns:repeat(2,1fr)}.brand{grid-column:1 / -1}main{padding:14px}header{display:grid;gap:4px}.search,.deliveryRow,.locationRow{grid-template-columns:1fr}.rowAction{justify-self:stretch;text-align:center}}
