/* Production (register model): progress bars, tags, the in-place grids, the
   Bagging › Live entry row. Section-only rules (MVP conflict strategy). */
.pr-pct { display: inline-flex; align-items: center; gap: var(--s2); white-space: nowrap; }
.pr-pct .bar { height: 6px; width: 64px; border-radius: 3px; background: var(--edge); overflow: hidden; display: inline-block; }
.pr-pct .bar i { display: block; height: 100%; background: var(--green); }
.pr-pct .bar.part i { background: var(--gold); }

.pr-tag {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-left: var(--s2); border-radius: 3px;
  font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1; vertical-align: middle;
  color: var(--violet); border: 1px solid color-mix(in srgb, var(--violet) 55%, transparent);
}

.pr-b { padding: var(--s4); }
.pr-f { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); padding: var(--s3) var(--s4); }
.pr-foot { border-top: 1px solid var(--edge); }
.panel > .pr-f:first-child { border-bottom: 1px solid var(--edge); }

table.pr-grid input, table.pr-grid select {
  height: var(--ctl-sm); 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(--t13) var(--body);
}
table.pr-grid input.num { text-align: right; font-family: var(--mono); }
table.pr-grid input::placeholder { color: var(--ink-3); }
table.pr-grid tr.add td { background: color-mix(in srgb, var(--gold) 6%, var(--well)); }
table.pr-rm td:nth-child(3) { width: 18%; }
table.pr-rm td:nth-child(4) { width: 24%; }
table.pr-rm td:nth-child(5) { width: 48px; }
.pr-x {
  width: var(--ctl-sm); height: var(--ctl-sm); display: inline-grid; place-items: center; border: 1px solid transparent;
  border-radius: var(--r); background: transparent; color: var(--ink-3); cursor: pointer;
}
.pr-x:hover { color: var(--rust-ink); border-color: var(--edge-2); }

.pr-form { display: grid; gap: var(--s3); }

.pr-live { display: grid; gap: var(--s5); }
.pr-live .panel + .panel { margin-top: 0; }
.pr-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); align-items: end; }
.pr-pick .fl > select { width: 100%; }
.pr-pick-acts { display: flex; gap: var(--s2); }
.pr-pick-acts .btn-shell, .pr-entry .btn-shell { height: var(--ctl); }
.pr-entry { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) 130px 140px auto; gap: var(--s3); align-items: end; }
.pr-entry.nopal { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) 140px auto; }
.pr-entry .fl > input { width: 100%; }
.pr-entry input.num { text-align: right; font-family: var(--mono); }
.pr-entry input[readonly] { color: var(--ink-2); }

@media (max-width: 559.98px) {
  .pr-entry, .pr-entry.nopal { grid-template-columns: 1fr 1fr; }
  .pr-entry .wide, .pr-entry .save { grid-column: 1 / -1; }
  .pr-pick { grid-template-columns: 1fr; }
  table.pr-rm td:nth-child(n) { width: auto; }
}

/* A register's lead link reads as the row's code. */
table.reg a.strong { color: var(--ink); font-weight: 600; text-decoration: none; }
table.reg a.strong:hover { color: var(--green); }

/* A refused save marks the cell at fault. */
.pr-grid input[aria-invalid="true"] { border-color: var(--rust); box-shadow: 0 0 0 1px var(--rust); }

/* A reversed bagging entry stays listed, struck through, out of the totals. */
tr.reversed td:not(:last-child) { text-decoration: line-through; opacity: .6; }
