/* Klijent F4: PDV po stavci, zbirne stavke, komunalije (app/ui/assets/vat-lines-v1.js) */
.vlcell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.vlsrc { color: var(--muted); font-size: var(--v5-pill-fs); white-space: nowrap; }
.vlside { margin-top: 3px; }
.vlbox { border: 1px solid var(--line2); border-radius: var(--v5-r-sm); margin: 0 0 10px; padding: 8px 12px; }
.vlsh { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vlsh + .vlsh { margin-top: 4px; }
.vlseg { display: inline-flex; gap: 4px; }
.vlsup { display: flex; gap: 6px; align-items: center; margin-top: 6px; font-size: var(--v5-ctl-fs); color: var(--ink); cursor: pointer; }
.vlsup input[type=checkbox] { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); }
.vlhint { margin: 8px 0 4px; font-size: var(--v5-th-fs); }
.vlwrap { overflow-x: auto; }
.vltbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.vltbl td, .vltbl th { padding: 6px 8px; text-align: left; vertical-align: top; }
.vltbl th { font-weight: 500; color: var(--muted); font-size: var(--v5-th-fs); white-space: nowrap; }
.vltbl td { border-top: 1px solid var(--line2); }
.vltbl th.r, .vltbl td.r { text-align: right; white-space: nowrap; }
.vltbl td.vlacc { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .vltbl, .vltbl tbody { display: block; width: 100%; min-width: 0 !important; }
  .vltbl thead { display: none; }
  .vltbl tr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line2); }
  .vltbl td { display: block; padding: 0 !important; border: 0 !important; white-space: normal !important; max-width: 100%; }
  .vltbl td:first-child { width: 100%; font-weight: 600; }
  .vlseg { width: 100%; }
  .vlseg > * { flex: 1; }
}
/* bruto stavke + popust po stavci (prekidac lines_gross) */
.lgincl { color: var(--muted); font-weight: 400; font-size: var(--v5-pill-fs); white-space: nowrap; }
.lgnet, .lgok, .lgbad { font-size: var(--v5-pill-fs); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lgnet { color: var(--muted); }
.lgok { color: var(--green, var(--muted)); }
.lgbad { color: var(--amber, var(--red)); }
