/* QC Lab (docs/mockups/qc.html): the verdict row under a sample's readings, the
   panel's footer, the stage / source grids and the blind-mode switch. */
.vd { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: flex-end; padding: var(--s3) var(--s4); border-top: 1px solid var(--edge); }
.vd .fl { flex: 0 1 200px; }
.vd .fl.wide { flex: 1 1 260px; }
.vd .fl > input, .vd .fl > select { width: 100%; }
.vd .fl.chk { flex-direction: row; display: inline-flex; align-items: center; gap: var(--s2); }
.vd .muted { align-self: center; }
@media (max-width: 640px) { .vd .fl, .vd .fl.wide { flex: 1 1 100%; } }
.panel-f { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); padding: var(--s3) var(--s4); border-top: 1px solid var(--edge); }
.panel-h .spacer, .panel-f .spacer { flex: 1; }
table.reg.grid td input { width: 88px; }
table.reg.grid th .lim { display: block; font-family: var(--mono); letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--ink-4); }
table.reg.grid .faint { color: var(--ink-4); }
.nt { text-transform: none; letter-spacing: 0; }
.qc-grid-wrap { overflow-x: auto; }
.blindsw { display: inline-flex; align-items: center; gap: var(--s3); font-size: var(--t14); color: var(--ink-2); }
.blindsw b { color: var(--ink); }
.sw { position: relative; width: 40px; height: 22px; border-radius: 11px; border: 1px solid var(--edge-2); background: var(--well); cursor: pointer; padding: 0; flex: none; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-3); transition: left .15s; }
.sw[aria-checked="true"] { background: var(--green); border-color: var(--green); }
.sw[aria-checked="true"]::after { left: 20px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .sw::after { transition: none; } }
/* The lab's inputs inside its grids and verdict rows read as the filter bar's. */
table.reg td input[type=text], table.reg td select, .vd .fl > input, .vd .fl > select, .panel-h select {
  height: var(--ctl); max-width: 100%; min-width: 0; padding: 0 var(--s3);
  background: var(--well); color: var(--ink); border: 1px solid var(--edge-2); border-radius: var(--r);
  font: var(--t14) var(--body); text-transform: none; letter-spacing: 0;
}
table.reg td input[type=text] { width: 120px; }
table.reg td input.num { text-align: right; }
.vd .fl > .chip { justify-self: start; }
.vd .fl > span:not(.chip) { font-size: var(--t14); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); }
.vd .fl.chk { text-transform: none; letter-spacing: 0; font-size: var(--t14); color: var(--ink-2); }
/* The page's blocks sit apart whether a block is a panel or a form holding one. */
main > form + .panel, main > form + form, main > .panel + form { margin-top: var(--s5); }
main > .filters + form, main > .filters + .panel { margin-top: var(--s4); }
.vd .btn-shell { height: var(--ctl); }
