/* G28 (portal camera text reader): the reader box on Purchasing, Warehouse, Counts and Products, in the G27 shell look
   (colours from shell.css; loaded after it). No inline styles (CSP style-src 'self'). */
.bw-reader{border:1px solid var(--bw-blue-100,#d6e4f7);background:var(--bw-blue-50,#edf3fc);border-radius:var(--bw-radius-sm,12px);padding:12px 14px;margin:12px 0;min-width:0}
.bw-reader-head{display:flex;flex-direction:column;gap:2px}
.bw-reader-head strong{color:var(--bw-blue-900,#0e3060);font-size:1rem}
.bw-reader-head strong::before{content:"";display:inline-block;width:18px;height:14px;margin-right:8px;vertical-align:-2px;border:2px solid var(--bw-blue,#1b5fae);border-radius:4px;box-sizing:border-box;background:radial-gradient(circle at 50% 55%,var(--bw-blue,#1b5fae) 0 3px,transparent 3.5px)}
.bw-reader-tools{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 4px;align-items:center}
.bw-reader-tools button{margin:0}
.bw-reader .bw-reader-take{background:var(--bw-blue,#1b5fae);color:#fff;border-color:var(--bw-blue,#1b5fae)}
.bw-reader-hint{margin:6px 0 0}
.bw-reader-status:empty{display:none}
.bw-reader-status{margin:8px 0 0;padding:8px 10px;border-radius:10px;background:#fff;color:var(--bw-blue-900,#0e3060);font-weight:600}
.bw-reader.is-busy .bw-reader-status::before{content:"";display:inline-block;width:12px;height:12px;margin-right:8px;border:2px solid var(--bw-blue-100,#d6e4f7);border-top-color:var(--bw-blue,#1b5fae);border-radius:50%;vertical-align:-1px;animation:bw-reader-spin .8s linear infinite}
@keyframes bw-reader-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.bw-reader.is-busy .bw-reader-status::before{animation:none}}
.bw-reader-status.ok{background:var(--bw-green-50,#e9f6ec);color:var(--bw-green-700,#22773a)}
.bw-reader-status.bad{background:var(--bw-red-50,#fdecea);color:var(--bw-red,#c0362c)}
.bw-reader-result:empty{display:none}
.bw-reader-summary{margin:10px 0 6px;font-weight:600;color:var(--bw-ink,#14213d)}
.bw-reader-rows{list-style:none;margin:0;padding:0}
.bw-reader-row{background:#fff;border:1px solid var(--bw-line,#e0e6ee);border-radius:10px;padding:8px 10px;margin:6px 0;min-width:0}
.bw-reader-row.is-over{border-color:var(--bw-red,#c0362c);background:var(--bw-red-50,#fdecea)}
.bw-reader-row.is-unsure{border-color:var(--bw-amber,#a96400)}
.bw-reader-row.is-unmatched{border-style:dashed;border-color:var(--bw-amber,#a96400);background:var(--bw-amber-50,#fff4e1)}
.bw-reader-line{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.bw-reader-line strong{min-width:0;overflow-wrap:break-word}
.bw-reader-src{margin:4px 0 0;font-size:.85rem;color:var(--bw-muted,#5a6a80);overflow-wrap:anywhere}
.bw-reader-pick{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin-top:6px}
.bw-reader-pick label{flex:1 1 12rem;min-width:0;margin:0}
.bw-reader-pick label:nth-child(2){flex:0 1 6.5rem}
.bw-reader-pick select,.bw-reader-pick input{width:100%;max-width:100%;box-sizing:border-box}
.bw-reader-pick button,.bw-reader-row>button{margin:6px 0 0}
.bw-reader-mark:empty{display:none}
.bw-reader-mark{display:block;margin-top:4px;font-size:.85rem;font-weight:600;color:var(--bw-green-700,#22773a)}
.bw-reader-missing{margin:8px 0;padding:8px 10px;border-radius:10px;background:var(--bw-amber-50,#fff4e1);color:var(--bw-amber,#a96400);font-weight:600;overflow-wrap:break-word}
.bw-reader-text{margin:8px 0}
.bw-reader-text summary{cursor:pointer;color:var(--bw-blue,#1b5fae);font-weight:600}
.bw-reader-text pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:16rem;overflow:auto;background:#fff;border:1px solid var(--bw-line,#e0e6ee);border-radius:8px;padding:8px;font-size:.8rem;margin:6px 0 0}
input.bw-suggested{border-color:var(--bw-blue,#1b5fae);background:#f4f8fe}
input.bw-over{border-color:var(--bw-red,#c0362c);background:var(--bw-red-50,#fdecea)}
.bw-reader-note{display:block;font-size:.82rem;font-weight:500;color:var(--bw-blue-700,#164c8c);overflow-wrap:anywhere}
input.bw-over+.bw-reader-note,label:has(input.bw-over) .bw-reader-note{color:var(--bw-red,#c0362c);font-weight:650}
.bw-from{display:block;width:100%;font-size:.82rem;color:var(--bw-blue-700,#164c8c);overflow-wrap:anywhere}
