/* Purchases (the register model, MVP S4): every page sits in .pu-page, so these
   rules reach no other section. Panels, the concession decision row, inline row
   actions. Tokens only. */
.pu-page { display: grid; gap: 0; min-width: 0; }
.pu-page .panel + .panel, .pu-page .head + .panel { margin-top: var(--s5); }
.pu-page .head { margin-bottom: 0; }
.pu-page .panel-b { padding: var(--s4); min-width: 0; }
.pu-page .panel-b.muted { color: var(--ink-3); }
.pu-page .pu-decided { border-top: 1px solid var(--edge); }
.pu-page .btn-shell.sm { height: 32px; padding: 0 var(--s3); font-size: var(--t13); }
.pu-page .mono, .pu-page .ref { font-family: var(--mono); }
.pu-page a.ref { color: var(--ink); text-decoration: none; font-weight: 500; }
.pu-page a.ref:hover { color: var(--green-ink); text-decoration: underline; }
.pu-page .strong { color: var(--ink); font-weight: 500; }
.pu-page a.strong { text-decoration: none; }
.pu-page a.strong:hover { text-decoration: underline; }

/* Management decides a concession in place: remarks then Reject / Accept. */
.pu-page .pu-decide { display: flex; flex-wrap: wrap; align-items: end; gap: var(--s3); padding: var(--s4); border-top: 1px solid var(--edge); }
.pu-page .pu-decide .fl { flex: 1 1 240px; }
.pu-page .pu-decide .err { flex: 1 1 100%; margin: 0; }
.pu-page .pu-decide .fl > input { width: 100%; }

/* button_to forms sit inline beside links. */
.pu-page form.pu-inline { display: inline; margin: 0; }
.pu-page .pu-row-acts { display: inline-flex; flex-wrap: nowrap; gap: var(--s2); justify-content: flex-end; }
@media (max-width: 559.98px) {
  .pu-page .pu-row-acts { flex-wrap: wrap; justify-content: flex-start; }
}
@media (min-width: 560px) {
  .pu-page table.reg .ref, .pu-page table.reg .mono { white-space: nowrap; }
}

/* Purchases' QC/status chips run longer than other sections' ("Rejected ·
   concession requested", "Accepted on concession"). The shared .chip is
   nowrap/fixed-height for the short labels elsewhere; stacked at 390 that
   overflows the register's two-column grid cell into its neighbour. Wrap
   just Purchases' chips instead of touching the shared rule. */
@media (max-width: 559.98px) {
  .pu-page .chip { height: auto; min-height: 22px; white-space: normal; text-align: left; line-height: 1.3; padding: 3px var(--s2); }
}

/* A reversed GRN or return stays on the item as its trail, muted. */
.pu-page tr.pu-reversed td, .pu-page .panel.pu-reversed .v { color: var(--ink-3); }
.pu-page .pu-strike { text-decoration: line-through; }
.pu-page .pu-sub { display: block; margin-top: 2px; color: var(--ink-3); font: var(--t12) var(--body); font-weight: 400; }
