/* Evidencia výkazov — vlastný dizajn, žiadne externé fonty ani knižnice.
   Systémový font stack = nikdy sa nerozbije, vždy sa načíta okamžite. */

:root {
  --bg: #f4f5fb;
  --card: #ffffff;
  --ink: #1e2233;
  --ink-soft: #565d75;
  --ink-faint: #8a90a6;
  --line: #e6e8f0;
  --line-strong: #d4d7e4;
  --brand: #4d7c0f;
  --brand-strong: #3f6212;
  --brand-ink: #ffffff;
  --brand-soft: #eef6df;
  --ok: #0f9d58;
  --ok-soft: #e4f6ec;
  --warn: #c47f04;
  --warn-soft: #fdf3dd;
  --danger: #d64545;
  --danger-soft: #fbe8e8;
  --shadow: 0 1px 2px rgba(24,28,50,.06), 0 8px 24px rgba(24,28,50,.06);
  --shadow-sm: 0 1px 2px rgba(24,28,50,.08);
  --r: 12px;
  --r-sm: 8px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; }
h1 { font-size: 1.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }

/* ---------- Topbar ---------- */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 rgba(24,28,50,.02); }
.topbar::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, #d64545 0 25%, #e2900f 25% 50%, #6ba51f 50% 75%, #1aa3c4 75% 100%); }
.topbar-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 16px;
  min-height: 62px; display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
}
.brand-text { font-size: 1.02rem; }

.navwrap { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.mainnav { display: flex; gap: 2px; flex: 1; flex-wrap: nowrap; }
.navlink {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-soft); padding: 8px 11px; border-radius: var(--r-sm); font-weight: 500; font-size: .92rem;
  white-space: nowrap;
}
.navlink .ico { color: var(--ink-faint); }
.navlink:hover .ico, .navlink.is-active .ico { color: var(--brand); }
.ico { flex: none; vertical-align: -.15em; }
.navlink:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.navlink.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.usermenu { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.who { display: flex; flex-direction: column; line-height: 1.2; margin-right: 4px; text-align: right; max-width: 180px; }
.who:hover { text-decoration: none; }
.who:hover .who-name { color: var(--brand); }
.who-name { color: var(--ink); font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-role { color: var(--ink-faint); font-size: .74rem; }
.iconbtn { padding: 8px; }
.iconbtn .btn-label { display: none; }

/* Hamburger (mobil) — čisto CSS, funguje aj bez JS */
.nav-cb { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 38px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #fff; flex-shrink: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink-soft); border-radius: 2px; transition: transform .18s, opacity .18s; }
.nav-cb:focus-visible + .nav-toggle { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------- Layout ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 26px 16px 40px; }
.sitefoot { text-align: center; color: var(--ink-faint); font-size: .82rem; padding: 24px 16px 40px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .sub { color: var(--ink-soft); margin-top: 2px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- Card ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px;
}
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-pad-0 { padding: 0; overflow: hidden; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-title h2, .card-title h3 { margin: 0; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.small { font-size: .85rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  padding: 9px 15px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 600; font-size: .92rem; cursor: pointer; background: var(--brand); color: #fff;
  transition: background .12s, border-color .12s, transform .04s;
}
.btn:hover { text-decoration: none; background: var(--brand-strong); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 6px 11px; font-size: .86rem; }
.btn-lg { padding: 12px 20px; font-size: 1rem; }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: transparent; }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: #f7f8fc; border-color: var(--ink-faint); }
.btn-ok { background: var(--ok); }
.btn-ok:hover { background: #0c854a; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #bf3838; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */
label { font-weight: 600; font-size: .88rem; color: var(--ink-soft); display: block; margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=time], input[type=date], select, textarea {
  width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font: inherit; color: var(--ink); background: #fff; outline: none; line-height: 1.3;
}
textarea { min-height: auto; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); cursor: pointer; }

/* Vlastný vzhľad rozbaľovacích zoznamov (jednotný v každom prehliadači) */
select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23565d75' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
select::-ms-expand { display: none; }
select:hover { border-color: var(--ink-faint); }
.field { margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hint { color: var(--ink-faint); font-size: .82rem; margin-top: 4px; }
.filter-box { width: 240px; max-width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; background: #fff; }
.filter-box:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------- Flash ---------- */
.flash { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 16px; font-weight: 500; border: 1px solid transparent; }
.flash-ok { background: var(--ok-soft); color: #0a6b3c; border-color: #bfe6cd; }
.flash-error { background: var(--danger-soft); color: #a12d2d; border-color: #f0c4c4; }
.flash-info { background: var(--brand-soft); color: #3f6212; border-color: #cfe3a8; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: #fafbfe; color: var(--ink-soft); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
table.data tbody tr:hover { background: #fafbff; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tfoot td { font-weight: 700; border-top: 2px solid var(--line-strong); background: #fafbfe; }
.row-strong td { font-weight: 600; }

/* ---------- Badges / pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.pill-ok { background: var(--ok-soft); color: #0a6b3c; }
.pill-warn { background: var(--warn-soft); color: #8a5a02; }
.pill-neutral { background: #eef0f6; color: var(--ink-soft); }
.pill-admin { background: #e6ecfb; color: #33507a; }
.pill-acct { background: #e0f1f6; color: #0e6b82; }
.pill-cat-k { background: #eef6df; color: #3f6212; }
.pill-cat-d { background: #e6ecfb; color: #33507a; }
.pill-cat-zd { background: #fdf3dd; color: #8a5a02; }
.pill-cat-zk { background: #e0f1f6; color: #0e6b82; }
.pill-cat-e { background: #eef0f6; color: #565d75; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--ok); }
.dot-warn { background: var(--warn); }

/* ---------- Stat tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: center; min-height: 92px; }
.tile-ico { position: absolute; top: 15px; right: 15px; color: var(--ink-faint); opacity: .5; }
.tile.accent .tile-ico { color: #fff; opacity: .75; }
.tile .k { color: var(--ink-soft); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; padding-right: 24px; }
.tile .v { font-size: 1.5rem; font-weight: 800; margin-top: 6px; letter-spacing: -.01em; }
.tile .v.sm { font-size: 1.2rem; }
.tile .muted.small { margin-top: 2px; }
.tile.accent { background: linear-gradient(135deg, #4d7c0f, #65a30d); color: #fff; border: none; }
.tile.accent .k { color: rgba(255,255,255,.85); }

/* Ukazovateľ odovzdania výkazov (admin panel) */
.progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, #65a30d, #4d7c0f); border-radius: 999px; transition: width .3s; }
.progress-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }

/* ---------- Month switcher ---------- */
.period { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 4px; }
.period a { padding: 6px 10px; border-radius: 6px; color: var(--ink-soft); font-weight: 600; }
.period a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.period .cur { padding: 6px 12px; font-weight: 700; min-width: 150px; text-align: center; }

/* ---------- Timesheet grid ---------- */
.ts-day { border-bottom: 1px solid var(--line); }
.ts-day.weekend { background: #fcfcfe; }
.ts-day-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.ts-date { font-weight: 700; min-width: 130px; }
.ts-date .dow { color: var(--ink-faint); font-weight: 500; font-size: .85rem; }
.ts-day-total { margin-left: auto; color: var(--ink-faint); font-size: .85rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.ts-day-total.has { color: var(--brand); background: var(--brand-soft); padding: 2px 9px; border-radius: 999px; }
.ts-day.weekend .ts-date .dow { color: var(--danger); opacity: .7; }
.ts-entry { display: grid; grid-template-columns: minmax(150px,1.4fr) minmax(150px,1fr) auto 1fr 34px; gap: 8px; align-items: center; padding: 6px 14px 10px; box-shadow: inset 3px 0 0 var(--rowc, transparent); border-radius: 2px; transition: box-shadow .15s; }
.ts-entry .seg-hours { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: .88rem; text-align: right; white-space: nowrap; }
.ts-entry input { padding: 7px 9px; min-height: 38px; }
.ts-entry select { padding: 7px 30px 7px 9px; min-height: 38px; background-position: right 9px center; }
.ts-entry.is-invalid .e-to { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.timepair { display: flex; align-items: center; gap: 6px; }
.timepair input { width: 84px; }
.tinp { text-align: center; font-variant-numeric: tabular-nums; letter-spacing: .04em; font-weight: 600; }
.timepair span { color: var(--ink-faint); }
.ts-entry .del { color: var(--danger); background: none; border: none; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 4px 8px; border-radius: 6px; }
.ts-entry .del:hover { background: var(--danger-soft); }
.seg-sep { color: var(--ink-faint); text-align: center; }
.add-entry { padding: 0 14px 12px; }
.add-entry button { font-size: .85rem; }
.activity-priama { }
.activity-nepriama { }
.legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-soft); font-size: .85rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: .76rem; font-weight: 600; }
.tag-priama { background: var(--brand-soft); color: var(--brand); }
.tag-nepriama { background: #fff1dd; color: #b45309; }

/* Rýchle vyplnenie mesiaca */
.qf-card { padding: 16px 20px; }
.qf-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.qf-head strong { display: inline-flex; align-items: center; gap: 6px; }
.qf-grid { display: grid; grid-template-columns: 1.4fr 1fr auto auto; gap: 12px; align-items: end; }
.qf-grid .field { margin: 0; }
.qf-days { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 14px 0 4px; }
.qf-chip { position: relative; margin: 0; }
.qf-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.qf-chip span { display: inline-block; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; background: #fff; user-select: none; }
.qf-chip input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.qf-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-soft); }
.qf-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.qf-empty-lbl { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink-soft); margin: 0; }
.qf-empty-lbl input { width: auto; min-height: 0; }
@media (max-width: 760px) { .qf-grid { grid-template-columns: 1fr 1fr; } }

.submit-bar { position: sticky; bottom: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 14px 16px; display: flex; align-items: center; gap: 14px; justify-content: flex-end; flex-wrap: wrap; margin: 0 -16px -40px; z-index: 15; }
.submit-bar .live { margin-right: auto; display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-soft); font-size: .9rem; }
.submit-bar .live b { color: var(--ink); font-variant-numeric: tabular-nums; }

.locked-note { display: flex; align-items: center; gap: 10px; background: var(--ok-soft); color: #0a6b3c; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid #bfe6cd; font-weight: 500; }

/* ---------- Login ---------- */
.auth { min-height: 82vh; display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 380px; }
.auth-brand { text-align: center; margin-bottom: 18px; }
.auth-brand .brand-mark { width: 46px; height: 46px; font-size: 1.4rem; border-radius: 12px; margin: 0 auto 10px; }
.auth-brand h1 { font-size: 1.3rem; }

/* ---------- Misc ---------- */
.sep { height: 1px; background: var(--line); margin: 18px 0; border: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.empty { text-align: center; color: var(--ink-faint); padding: 40px 20px; }
.note-line { margin-top: 3px; max-width: 360px; }

/* ---------- Dokumenty zamestnanca ---------- */
.doc-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.doc-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.doc-ico { color: var(--brand); flex: none; display: flex; }
.doc-meta { flex: 1; min-width: 0; }
.doc-meta a { font-weight: 600; word-break: break-word; }
.doc-item form { margin: 0; }
.doc-del { color: var(--danger); }
.doc-del:hover { background: var(--danger-soft); }
input[type=file] { width: 100%; padding: 8px 10px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); background: #fafbfe; font: inherit; cursor: pointer; }
input[type=file]:hover { border-color: var(--brand); }
.danger-zone { border-color: #f0c4c4; }
.danger-zone h3 { color: var(--danger); margin-top: 0; }
.danger-zone .row-actions form { margin: 0; }

/* ---------- Pracoviská (editovateľný zoznam) ---------- */
.grid-wp { display: grid; grid-template-columns: 2.2fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 960px) { .grid-wp { grid-template-columns: 1fr; } }
.wp-head, .wp-row { display: grid; grid-template-columns: 1fr auto 80px 64px auto; gap: 12px; align-items: center; padding: 10px 20px; }
.wp-head { color: var(--ink-soft); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; border-bottom: 1px solid var(--line); background: #fafbfe; }
.wp-head span:nth-child(3), .wp-head span:nth-child(4) { text-align: center; }
.wp-row { border-bottom: 1px solid var(--line); margin: 0; }
.wp-row:last-child { border-bottom: none; }
.wp-row input[type=number] { text-align: center; }
.wp-check { display: flex; justify-content: center; align-items: center; margin: 0; }
.wp-check input { width: 18px; height: 18px; min-height: 0; cursor: pointer; }
.wp-row.is-off { opacity: .55; }
.wp-actions { display: flex; gap: 4px; align-items: center; }
.wp-del { color: var(--danger); }
.wp-del:hover { background: var(--danger-soft); }
@media (max-width: 760px) {
  .wp-head { display: none; }
  .wp-row { grid-template-columns: 1fr auto; grid-template-areas: "name name" "color color" "order check" "btn btn"; gap: 10px; }
  .wp-row input[type=text] { grid-area: name; }
  .wp-row .swatches { grid-area: color; }
  .wp-row input[type=number] { grid-area: order; }
  .wp-check { grid-area: check; justify-content: flex-start; }
  .wp-row .wp-actions { grid-area: btn; }
}

/* Výber farby (pukoše) */
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 22px; height: 22px; border-radius: 50%; background: var(--c); cursor: pointer; position: relative; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); transition: box-shadow .12s; }
.swatch input { position: absolute; opacity: 0; width: 0; height: 0; }
.swatch.on, .swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--c); }
.swatch:hover { box-shadow: 0 0 0 2px var(--ink-faint); }

/* Farebný odznak pracoviska */
.wp-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #eef0f6; color: var(--ink-soft); }
.wp-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
@supports (color: color-mix(in srgb, red, white)) {
  .wp-badge { background: color-mix(in srgb, var(--c) 15%, white); color: color-mix(in srgb, var(--c) 72%, #1e2233); }
}
.empty svg { opacity: .4; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  /* Header sa zbalí do rozbaľovacieho menu */
  .topbar-inner { gap: 10px; flex-wrap: wrap; min-height: 58px; }
  .nav-toggle { display: flex; }
  .navwrap {
    flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 6px;
    max-height: 0; overflow: hidden; opacity: 0; transition: max-height .22s ease, opacity .22s ease, padding .22s ease;
    padding: 0;
  }
  .nav-cb:checked ~ .navwrap { max-height: 560px; opacity: 1; padding: 6px 0 14px; }
  .mainnav { flex-direction: column; gap: 2px; width: 100%; }
  .navlink { padding: 11px 12px; font-size: 1rem; }
  .usermenu { width: 100%; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); }
  .usermenu .who { flex-direction: row; gap: 8px; align-items: baseline; margin-right: auto; text-align: left; max-width: none; }
  .iconbtn { padding: 8px 13px; }
  .iconbtn .btn-label { display: inline; }
  .usermenu .btn { flex: 1; justify-content: center; }
  .nav-cb:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-cb:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-cb:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Zadávanie výkazu — čitateľné na mobile */
  .ts-entry { display: flex; flex-wrap: wrap; gap: 8px; }
  .ts-entry .e-wp { flex: 1 1 100%; }
  .ts-entry .e-act { flex: 1 1 100%; }
  .ts-entry .timepair { flex: 1 1 auto; }
  .ts-entry .timepair input { flex: 1; width: auto; }
  .ts-entry .seg-hours { margin-left: auto; text-align: right; }
  .ts-entry .del { flex: 0 0 auto; margin-left: 4px; }

  .page-head { align-items: stretch; }
  .submit-bar { position: static; margin: 0; }
}

/* ---------- Print (výkaz do PDF) ---------- */
@media print {
  .topbar, .sitefoot, .submit-bar, .no-print, .toolbar { display: none !important; }
  body { background: #fff; }
  .wrap { max-width: 100%; padding: 0; }
  .card { box-shadow: none; border-color: #ccc; page-break-inside: avoid; }
  table.data th, table.data td { padding: 6px 8px; }
}
