:root {
  --bg: #f4f3ef;
  --card: #ffffff;
  --ink: #1d2321;
  --muted: #6b726f;
  --line: #e3e1da;
  --accent: #1f6f5c;
  --accent-ink: #ffffff;
  --stop: #c2412d;
  --ok-bg: #e4f2ec;
  --err-bg: #fbe6e2;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141716; --card: #1c201f; --ink: #e8ebe9; --muted: #9aa29f; --line: #2c3230;
    --accent: #3fa587; --accent-ink: #0d1211; --stop: #e0644e; --ok-bg: #173229; --err-bg: #3a1f1a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { margin: 0 0 .75rem; line-height: 1.2; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.1rem; }
code { background: var(--line); padding: 0 .3em; border-radius: 4px; }

/* Rozvržení: menu vlevo, obsah na celou šířku */
:root { --side: 232px; }
.brand { font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 30;
  background: var(--card); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1rem; padding: 18px 12px;
  overflow-y: auto;
}
.side-brand { padding: 0 10px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a {
  display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 8px;
  color: var(--muted); font-size: .97rem;
}
.sidebar nav a:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.sidebar nav a.active { background: var(--accent); color: var(--accent-ink); }
.ico { width: 1.2rem; text-align: center; font-size: 1rem; }
.side-brand i { color: var(--accent); margin-right: .2rem; }
.kpi-label i { color: var(--accent); width: 1rem; }
button.link i, a i.fa-arrow-right { font-size: .85em; }
.side-foot { margin-top: auto; padding: 0 10px; display: flex; flex-direction: column; gap: .2rem; }
.running-box {
  display: flex; align-items: center; gap: .6rem; margin: 0 4px; padding: .6rem .75rem;
  border-radius: 8px; background: var(--err-bg); color: var(--stop); font-variant-numeric: tabular-nums;
}
.running-box:hover { text-decoration: none; }
.running-pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--err-bg); color: var(--stop); padding: .15rem .6rem; border-radius: 999px; font-variant-numeric: tabular-nums; font-size: .9rem; margin-left: auto; }
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--stop); animation: pulse 1.4s infinite; flex: none; }
@keyframes pulse { 50% { opacity: .3; } }

.mobilebar { display: none; }
.scrim { display: none; }
main { padding: 24px 28px; }
body.has-nav main { margin-left: var(--side); }

@media (max-width: 899px) {
  .mobilebar {
    display: flex; align-items: center; gap: .75rem; position: sticky; top: 0; z-index: 20;
    background: var(--card); border-bottom: 1px solid var(--line); padding: .55rem 16px;
  }
  .burger { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; margin-left: -8px; color: var(--ink); font-size: 1.3rem; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; width: min(280px, 82vw); }
  body.nav-open .sidebar { box-shadow: 0 0 40px rgba(0,0,0,.25); }
  .sidebar .side-brand, .sidebar .running-box { display: none; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.35); }
  body.has-nav main { margin-left: 0; }
  main { padding: 16px; }
}

/* Nástěnka */
.page-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.page-title h1 { margin: 0; }
.kpis { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 420px) { .kpis { grid-template-columns: 1fr; } }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: .2rem; color: var(--ink); min-width: 0; }
.kpi:hover { text-decoration: none; border-color: var(--accent); }
.kpi-label { font-size: .8rem; color: var(--muted); }
.kpi-value { font-size: 1.45rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-sub { font-size: .82rem; color: var(--muted); }
.warn-text { color: var(--stop); }

.vchart { position: relative; height: 240px; margin: 1rem 0 2rem 3.4rem; }
.vchart-grid { position: absolute; inset: 0; }
.gl { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.gl span { position: absolute; right: calc(100% + 8px); top: -.6em; font-size: .72rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vchart-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.vbar-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; cursor: default; }
.vbar { width: min(70%, 34px); background: var(--accent); border-radius: 4px 4px 0 0; min-height: 0; opacity: .8; transition: opacity .15s; }
.vbar-col.current .vbar { opacity: 1; }
.vbar-col:hover .vbar, .vbar-col:focus .vbar { opacity: 1; }
.vbar-col:hover, .vbar-col:focus { background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 6px; }
.vlabel { position: absolute; top: calc(100% + 6px); font-size: .72rem; color: var(--muted); }
.vbar-col.current .vlabel { color: var(--ink); font-weight: 600; }
.vbar-col[data-tip]:hover::after, .vbar-col[data-tip]:focus::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--card); font-size: .8rem; padding: .35rem .55rem; border-radius: 6px; white-space: nowrap; z-index: 2; pointer-events: none;
}
.vbar-col:first-child[data-tip]:hover::after, .vbar-col:first-child[data-tip]:focus::after { left: 0; transform: none; }
.vbar-col:last-child[data-tip]:hover::after, .vbar-col:last-child[data-tip]:focus::after { left: auto; right: 0; transform: none; }
@media (max-width: 560px) { .vlabel { font-size: .62rem; } .vchart { margin-left: 2.8rem; } }

.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.hbar-head { display: flex; justify-content: space-between; gap: .75rem; font-size: .92rem; margin-bottom: .3rem; }
.hbar-head a { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 10px; background: var(--bg); border-radius: 4px; }
.hbar { height: 100%; background: var(--accent); border-radius: 4px; }
details summary { cursor: pointer; margin-top: .25rem; }

/* Mřížka karet na širokém displeji */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
.grid > .card { margin-bottom: 0; }
@media (min-width: 1100px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.main-side { grid-template-columns: 2fr 1fr; } }
.page > * + * { margin-top: 16px; }
.form-narrow { max-width: 760px; }

/* Karty */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.card-head h2 { margin: 0; }
.auth-box { max-width: 380px; margin: 10vh auto 0; }

/* Formuláře */
.stack { display: flex; flex-direction: column; gap: .8rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: .5rem; color: var(--ink); font-size: 1rem; }
label.check.grow { flex: 1; align-items: flex-start; }
label.check input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; flex: none; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: .6rem .7rem; width: 100%; min-width: 0; min-height: 2.75rem;
}
textarea { min-height: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.row2, .row3 { display: grid; gap: .8rem; grid-template-columns: 1fr; }
.row3 { grid-template-columns: 1fr 1fr; }
.row3 label:first-child { grid-column: 1 / -1; }
@media (min-width: 560px) {
  .row2 { grid-template-columns: 1fr 1fr; }
  .row3 { grid-template-columns: 2fr 1fr 1fr; }
  .row3 label:first-child { grid-column: auto; }
}
.row4 { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; align-items: end; }
@media (min-width: 560px) { .row4 { grid-template-columns: 1fr 1fr 1fr 1.2fr; } }
.calc { display: flex; flex-direction: column; gap: .3rem; background: var(--bg); border-radius: 8px; padding: .45rem .7rem; min-height: 2.75rem; justify-content: center; }
.calc strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
input[readonly] { color: var(--muted); }

/* Tabulky */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: .5rem .5rem; border-bottom: 1px solid var(--line); }
.table td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:hover { background: var(--bg); }
.table .r { text-align: right; }
@media (max-width: 760px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--line); padding: .6rem 0; display: grid; grid-template-columns: 1fr auto; gap: .15rem .75rem; }
  .table td { border: 0; padding: 0; text-align: left; }
  .table td.r { text-align: right; }
  .entries-table tr { grid-template-areas: "date act" "proj proj" "desc desc" "time amt" "qty amt"; }
  .entries-table td[data-l="Datum"] { grid-area: date; font-size: .85rem; color: var(--muted); }
  .entries-table td.act { grid-area: act; }
  .entries-table td[data-l="Projekt"] { grid-area: proj; }
  .entries-table td[data-l="Popis"] { grid-area: desc; }
  .entries-table td[data-l="Popis"]:empty, .entries-table td.no-time { display: none; }
  .entries-table td[data-l="Čas"] { grid-area: time; font-size: .85rem; }
  .entries-table td[data-l="Čas"] .block { display: inline; margin-left: .3rem; }
  .entries-table td[data-l="Cena/MJ"] { display: none; }
  .entries-table td[data-l="Množství"] { grid-area: qty; text-align: left; font-size: .85rem; color: var(--muted); }
  .entries-table td[data-l="Částka"] { grid-area: amt; align-self: end; }
}

.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
.right { text-align: right; margin-top: .5rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-weight: 600; padding: .55rem 1rem; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.btn:hover { text-decoration: none; filter: brightness(.97); }
.btn.primary, .btn.start { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.stop { background: var(--stop); border-color: var(--stop); color: #fff; }
.btn.danger { color: var(--stop); }
.btn.big { font-size: 1.2rem; padding: .9rem; width: 100%; }
.btn.small { padding: .3rem .7rem; font-size: .9rem; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
button.link.danger { color: var(--stop); }

/* Časovač */
.timer.is-running { border-color: var(--stop); }
.timer-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.timer-project { font-size: 1.2rem; font-weight: 700; }
.clock { font-size: 2.4rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* Seznamy */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list li.day { font-weight: 700; font-size: .85rem; color: var(--muted); padding-top: 1rem; border-top: 0; }
.list li.inactive { opacity: .55; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: .75rem; padding: .05rem .45rem; border-radius: 999px; background: var(--line); color: var(--muted); margin-left: .3rem; }
.tag.ok { background: var(--ok-bg); color: var(--accent); }
.tag.err { background: var(--err-bg); color: var(--stop); }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .8rem; }
@media (min-width: 700px) { .filters { grid-template-columns: repeat(4, 1fr); } }
.summary { display: flex; gap: .5rem; margin: .5rem 0 1rem; }
.summary > div { flex: 1; background: var(--bg); border-radius: 8px; padding: .5rem .7rem; display: flex; flex-direction: column; }
.summary strong { font-variant-numeric: tabular-nums; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.block { display: block; }
.pre { white-space: pre-line; }
.nowrap { white-space: nowrap; }

.flash { padding: .7rem .9rem; border-radius: 8px; margin-bottom: 1rem; background: var(--ok-bg); }
.flash.err { background: var(--err-bg); }

/* Faktura */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar, .invoice { max-width: 900px; }
.invoice { background: #fff; color: #1d2321; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.invoice .muted { color: #6b726f; }
.inv-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #1d2321; padding-bottom: .5rem; margin-bottom: 1.2rem; }
.inv-head h1 { margin: 0; font-size: 1.8rem; }
.inv-number { font-size: 1.2rem; font-weight: 700; }
.inv-parties { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
@media (min-width: 600px) { .inv-parties { grid-template-columns: 1fr 1fr; } }
.inv-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #6b726f; margin-bottom: .2rem; }
.inv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.2rem; background: #f4f3ef; border-radius: 8px; padding: .8rem 1rem; margin-bottom: 1.2rem; font-size: .95rem; }
.inv-meta span { display: block; font-size: .75rem; color: #6b726f; }
.inv-items { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.inv-items th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #6b726f; border-bottom: 1px solid #ccc; padding: .4rem .3rem; }
.inv-items td { border-bottom: 1px solid #e3e1da; padding: .5rem .3rem; vertical-align: top; }
.inv-items tfoot td { font-weight: 700; border-bottom: 0; }
.inv-items .r { text-align: right; white-space: nowrap; }
.inv-total-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin: 1rem 0; }
.inv-total { margin-left: auto; text-align: right; }
.inv-total span { display: block; color: #6b726f; font-size: .85rem; }
.inv-total strong { font-size: 1.6rem; }
.qr-box { text-align: center; }
.qr-box #qr { width: 150px; background: #fff; }
.qr-box svg { display: block; width: 100%; height: auto; }
.inv-appendix { margin-top: 2rem; page-break-before: always; break-before: page; }
@media screen { .inv-appendix { break-before: auto; page-break-before: auto; border-top: 1px dashed #ccc; padding-top: 1.2rem; } }
.inv-appendix h2 { font-size: 1rem; }

@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; }
  .sidebar, .mobilebar, .scrim, .no-print, .flash { display: none !important; }
  main, body.has-nav main { padding: 0; margin: 0; max-width: none; }
  .invoice { border: 0; padding: 0; }
}

/* Ruční faktura – položky */
.form-wide { max-width: 1100px; }
.items { display: flex; flex-direction: column; gap: .5rem; }
.item-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 90px 120px 130px 40px; gap: .5rem; align-items: center; }
#ie-items { display: flex; flex-direction: column; gap: .5rem; }
.item-head { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.item-total { font-variant-numeric: tabular-nums; white-space: nowrap; }
.r { text-align: right; }
.icon-btn { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--stop); border-color: var(--stop); }
.items-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .25rem; }
.inv-sum { text-align: right; display: flex; flex-direction: column; }
.inv-sum strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .item-head { display: none; }
  .item-row { grid-template-columns: 1fr 1fr 1fr; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
  .item-row input[name="item_desc[]"] { grid-column: 1 / -1; }
  .item-row .item-total { grid-column: 1 / 3; text-align: left; }
  .item-row .icon-btn { grid-column: 3; justify-self: end; }
}
.row4.dates { align-items: end; }

/* Seznam faktur */
.year-tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: .75rem; }
.year-tabs a { padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; font-size: .92rem; }
.year-tabs a:hover { text-decoration: none; color: var(--ink); }
.year-tabs a.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) {
  .inv-table tr { grid-template-areas: "num act" "cli amt" "dat st"; }
  .inv-table td[data-l="Číslo"] { grid-area: num; }
  .inv-table td.act { grid-area: act; }
  .inv-table td[data-l="Klient"] { grid-area: cli; }
  .inv-table td[data-l="Částka"] { grid-area: amt; }
  .inv-table td[data-l="Vystaveno"] { grid-area: dat; font-size: .85rem; color: var(--muted); }
  .inv-table td[data-l="Splatnost"] { display: none; }
  .inv-table td[data-l="Stav"] { grid-area: st; text-align: right; }
}
.inv-appendix.internal { border: 1px dashed var(--line); border-radius: 8px; padding: 1rem; background: #fafaf7; }
.vbar-col:hover { text-decoration: none; }

.card-head { flex-wrap: wrap; }
@media (max-width: 560px) {
  .summary { flex-wrap: wrap; }
  .summary > div { flex: 1 1 40%; }
  .vlabel .y-full { display: none; }
}
@media (min-width: 561px) { .vlabel .y-short { display: none; } }

.icon-link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; }
.icon-link:hover { background: var(--bg); text-decoration: none; }

/* Nástěnka – dlaždice */
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.tile { grid-column: span var(--w, 12); min-width: 0; display: flex; flex-direction: column; position: relative; }
.tile-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tile-body > .card, .tile-body > .kpi { flex: 1; margin: 0; }
@media (max-width: 1099px) {
  .tile { grid-column: span 12; }
  .tile[data-w="3"], .tile[data-w="4"] { grid-column: span 6; }
}
@media (max-width: 480px) { .tile, .tile[data-w="3"], .tile[data-w="4"] { grid-column: span 12; } }

.tile-tools { display: none; }
#dashboard .edit-only { display: none; }
#dashboard.editing .edit-only { display: inline-flex; }
#dashboard.editing .view-only { display: none; }
#dashboard.editing .tile { outline: 2px dashed var(--line); outline-offset: 4px; border-radius: var(--radius); cursor: grab; }
#dashboard.editing .tile:hover { outline-color: var(--accent); }
#dashboard.editing .tile.dragging { opacity: .4; }
#dashboard.editing .tile-body { pointer-events: none; user-select: none; }
#dashboard.editing .tile-tools {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 6px;
  font-size: .82rem; color: var(--muted);
}
.tile-handle { display: inline-flex; align-items: center; gap: .4rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tile-btns { display: inline-flex; gap: 4px; flex: none; }
.tile-btns button { height: 30px; min-width: 30px; padding: 0 .45rem; border: 1px solid var(--line); background: var(--card); border-radius: 6px; color: var(--ink); cursor: pointer; font: inherit; font-size: .8rem; }
.tile-btns button:hover { border-color: var(--accent); color: var(--accent); }

/* Přepínač období */
.seg { display: inline-flex; background: var(--bg); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: .3rem .7rem; border-radius: 6px; font: inherit; font-size: .85rem; color: var(--muted); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
@media (max-width: 760px) { #dashboard.editing .dash-hint { display: none; } }

/* IČO + ARES */
.ares-row { display: flex; gap: .6rem; align-items: flex-end; }
.ares-row label { flex: 0 1 220px; }
.ares-row .btn { min-height: 2.75rem; white-space: nowrap; }
[data-ares-msg]:empty { display: none; }
[data-ares-msg] { margin: -.4rem 0 0; }
.table tr.inactive td { opacity: .55; }
@media (max-width: 760px) {
  .clients-table tr { grid-template-areas: "name act" "ico rate" "addr addr" "proj proj"; }
  .clients-table td[data-l="Název"] { grid-area: name; }
  .clients-table td.act { grid-area: act; }
  .clients-table td[data-l="IČO"] { grid-area: ico; font-size: .85rem; color: var(--muted); }
  .clients-table td[data-l="IČO"]::before { content: "IČO "; }
  .clients-table td[data-l="Sazba"] { grid-area: rate; }
  .clients-table td[data-l="Adresa"] { grid-area: addr; color: var(--muted); }
  .clients-table td[data-l="Projekty"] { grid-area: proj; text-align: left; }
}
@media (max-width: 760px) { .clients-table td.empty { display: none; } }
