/* 06-components/_lines.css — .c-lines: the line editor in a billing sheet. One row per invoice
   or subscription line: what it is for (a product select or a description field), the amount in
   kronor as a mono, right-aligned field with the unit after it, and a remove button. A foot row
   carries the add button at the start and the running total at the end. Follows c-checklist for
   its rules and row height; the fields read --height-control so touch sizing needs no rule here.
   The read-only rendering of the same lines, on the account page and the invoice page, is a
   .c-register--compact table, not this component. */
.c-lines { display: flex; flex-direction: column; border-top: var(--stroke) solid var(--rule); }
.c-lines__row { display: grid; grid-template-columns: minmax(0, 1fr) 9rem auto; align-items: center; gap: var(--space-xs) var(--space-sm); min-height: var(--height-row); padding-block: var(--space-xs); border-bottom: var(--stroke) solid var(--rule); }
.c-lines__row.is-off { color: var(--ink-faint); }
.c-lines__row.is-off .c-lines__amount input { color: var(--ink-faint); }
.c-lines__what { display: flex; flex-direction: column; gap: var(--space-2xs); min-width: 0; }
.c-lines__what select, .c-lines__what input { font-size: var(--text-md); }
.c-lines__hint { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-faint); }
.c-lines__amount { display: flex; align-items: center; gap: var(--space-2xs); }
.c-lines__amount input { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: end; }
.c-lines__unit { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-muted); flex: none; }
.c-lines__remove { justify-self: end; }
.c-lines__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); min-height: var(--height-row); padding-block: var(--space-xs); }
.c-lines__total { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-muted); }
.c-lines__total b { font-weight: var(--weight-medium); color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 40rem) { .c-lines__row { grid-template-columns: minmax(0, 1fr) auto; } .c-lines__what { grid-column: 1 / -1; } }
