/* tritran.css: only what kit v1.9 lacks, plus layout glue. var(--*) only, prefix trt-. Each part is a row of KIT_GAPS.md. */

/* G1 Report title spaced the way the customer's sheet writes it ("T Ổ N G  H Ợ P  S Ả N  P H Ẩ M"), with its period line under it.
   Delete when the kit has a sheet-title part. */
.trt-sheet-title { margin: 0; text-align: center; letter-spacing: 0.32em; font-size: var(--fs-xl); font-weight: 700; color: var(--heading); }
.trt-sheet-sub { margin: 0; text-align: center; color: var(--muted); font-size: var(--fs-sm); }

/* Glue: a line grid of short figures (Số thùng, Số lẻ) lets its edit cells be narrower than the kit's 5.5rem default (kit --cell-min). */
.trt-lines { --cell-min: 4rem; }

/* Glue: the count sheet (S5b) has twelve columns: the name and the note wrap in a narrow cell so LỆCH and KQ stay in sight beside the pinned action column
   (pinned at 1280 too since the QA round 5 fix; the kit unpins it under 48rem). Delete when the kit lets a sheet name its flexible columns. */
.trt-kk :is(td:nth-child(3), td:nth-child(8), td:nth-child(11)) { white-space: normal; overflow-wrap: anywhere; }
.trt-kk td:nth-child(3) { max-width: 8.5rem; }
.trt-kk td:nth-child(8) { max-width: 5.5rem; }
.trt-kk td:nth-child(11) { max-width: 9rem; }

/* D9 kit defect: kit.css defines .count-row twice. The tile row at line 6431 (auto minmax(0, 1fr) auto) comes after the stocktake row at line 3598 (minmax(0, 1fr) auto auto)
   and wins, so in a stocktake row .count-row-book sits in the 1fr track. P4 Giao thiếu at 360: that track was 8.5 px and "Gửi: 5" ran under the quantity input.
   This puts back the stocktake row's columns. Delete when the kit gives the two parts different class names. */
.count-list > .count-row { grid-template-columns: minmax(0, 1fr) auto auto; }
