/* Nhật Trình N&K. Only layout glue and the few pieces the shared kit does not have (see KIT_GAPS.md).
   Tokens only: every size is a kit variable or a multiple of one. No kit component is restyled here. */

/* 1. Wide ledgers (Nhật trình, Đổ dầu, Sửa chữa, bảng lương): widths of the free-text columns.
      240px, 152px and 168px; at 176px the note column pushed Nhật ký sửa 4px past its frame at 1280. */
.lk-w-route { min-width: calc(var(--sp-9) * 5); white-space: normal; }
.lk-w-name { min-width: calc(var(--sp-9) * 3 + var(--sp-2)); }
.lk-w-note { min-width: calc(var(--sp-9) * 3 + var(--sp-6)); white-space: normal; }
/*    KIT_GAPS gap 1 (rule on .tbl-scroll .tbl): the kit keeps every cell of a scroll frame on one line, so the classes above cannot wrap there.
      Chi tiết theo xe is a report, not a typed ledger: with the invoice tags it ran 33px past its frame at 1440 (193px at 1280).
      Delete when the kit has a wrapping column class. */
.tbl-scroll .tbl td.lk-w-wrap { white-space: normal; }

/* 2. The entry row at the foot of a ledger: the next line, typed straight into the table.
      KIT_GAPS gap 2 (rules on .tbl and .cell-input): left to itself a typed cell of the entry row is narrower than the 104px (route: 208px)
      its value needs. Delete when the kit documents an entry row. */
.tbl tbody tr.lk-entry > td { border-top: calc(var(--sp-1) / 2) solid var(--primary); vertical-align: top; }
.lk-entry .cell-input { min-width: calc(var(--sp-9) * 2 + var(--sp-2)); }
.lk-entry .lk-w-route .cell-input { min-width: calc(var(--sp-9) * 4 + var(--sp-4)); }

/* 3. A4 paper tables with 6 to 16 columns (bảng kê, nhật trình, sổ chi tiết, báo cáo, phiếu lương): a wrapper with smaller type
      (11.2px), so every column stays on the sheet. KIT_GAPS gaps 5 and 6. */
.lk-paper-wide { font-size: calc(var(--sp-4) * 0.7); }
.lk-paper-wide .lk-p-text { white-space: normal; }
.lk-paper-wide .lk-p-code { white-space: nowrap; }
/* A numbered section heading inside a sheet (phiếu lương mục I, III, IV). */
.lk-paper-heading { margin: var(--sp-4) 0 var(--sp-2); font-size: 1em; font-weight: 700; line-height: 1.35; }

/* 4. The letterhead and footer preview beside the print settings, and the statement preview on screen. KIT_GAPS gap 7. */
.lk-preview { padding: var(--sp-5); font-size: var(--fs-sm); background: var(--surface); border: calc(var(--sp-1) / 4) solid var(--panel-border); border-radius: var(--radius); }
.lk-preview > * + * { margin-top: var(--sp-3); }
.lk-preview-title { font-weight: 700; text-align: center; text-transform: uppercase; }

/* 5. Phone: the page's own padding comes from the kit; this only keeps long codes and routes inside 360 px. KIT_GAPS gap 11. */
.lk-phone { overflow-wrap: anywhere; }
