[hidden] { display: none !important; }
:root {
  --bg: #f4f2ef;
  --plocha: #ffffff;
  --plocha-2: #efebe6;
  --text: #1b1916;
  --text-2: #67615a;
  --cara: #e0dad2;
  --akcent: #b3402b;
  --akcent-text: #ffffff;
  --akcent-jemny: #f7e2dc;
  --ok: #2f7d4f;
  --ok-jemny: #e1f1e6;
  --chyba: #b3362b;
  --chyba-jemny: #f8e1de;
  --kuchyn: #8a5a12;
  --kuchyn-jemny: #f6ead2;
  --ridic: #1f5f9e;
  --ridic-jemny: #e1ecf8;
  --stin: 0 1px 2px rgba(30, 25, 20, .06), 0 4px 16px rgba(30, 25, 20, .05);
  --r: 12px;
  --lista: #161412;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12100e; --plocha: #1d1a17; --plocha-2: #282420; --text: #f2ede7; --text-2: #a8a097;
    --cara: #38322c; --akcent: #e8735c; --akcent-text: #1a0f0b; --akcent-jemny: #3d2420;
    --ok: #6cc28f; --ok-jemny: #1d3427; --chyba: #ef7d72; --chyba-jemny: #3d1f1c;
    --kuchyn: #e5b562; --kuchyn-jemny: #3a2d15; --ridic: #7fb3ea; --ridic-jemny: #1b2c40;
    --stin: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12100e; --plocha: #1d1a17; --plocha-2: #282420; --text: #f2ede7; --text-2: #a8a097;
  --cara: #38322c; --akcent: #e8735c; --akcent-text: #1a0f0b; --akcent-jemny: #3d2420;
  --ok: #6cc28f; --ok-jemny: #1d3427; --chyba: #ef7d72; --chyba-jemny: #3d1f1c;
  --kuchyn: #e5b562; --kuchyn-jemny: #3a2d15; --ridic: #7fb3ea; --ridic-jemny: #1b2c40;
  --stin: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 1.45rem; font-weight: 700; }
h2 { font-size: 1.1rem; font-weight: 650; }
h3 { font-size: .95rem; font-weight: 650; }
a { color: inherit; }
button { font: inherit; }
code { font-size: .88em; }

/* ---------- horní lišta ---------- */
.lista {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 8px 16px; background: var(--lista); color: #f3eee8;
}
.znacka { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.znacka img { height: 34px; width: auto; display: block; }
.znacka span { font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; padding-left: 10px; border-left: 1px solid #4a433c; }
.znacka small { font-size: .7rem; color: #8f877e; }
/* zpět do aplikace pobočky – ve všech modulech hned za verzí */
.zpet-pobocka { text-decoration: none; color: #f3eee8; font-size: .9rem; white-space: nowrap; padding: 5px 12px; border: 1px solid #4a433c; border-radius: 999px; }
.zpet-pobocka:hover { background: #3a332c; color: #fff; }
.zpet-pobocka[hidden] { display: none; }
#menu { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
#menu a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 6px 12px; border-radius: 999px; white-space: nowrap; color: #d6cfc6; }
#menu a:hover { color: #fff; }
#menu a.aktivni { background: #C21F2B; color: #fff; }
/* ikony položek menu (public/ikony-menu.js) – 16 px, výška lišty se nemění; červený detail, u aktivní položky bílý */
.ikona-menu { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ikona-menu .ak { stroke: #e8735c; }
#menu a.aktivni .ikona-menu .ak { stroke: currentColor; }
/* menu se do lišty nevejde (ikony-menu.js → prizpusobListu) – vlastní řádek pod logem, nic se neschová */
.lista.menu-radek { row-gap: 6px; }
.lista.menu-radek #menu { order: 3; flex-basis: 100%; }
.lista.menu-radek .ja { margin-left: auto; }
.ja { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: #d6cfc6; }
#jmeno { font-weight: 600; }
@media (max-width: 720px) {
  .lista { gap: 8px 12px; }
  #menu { order: 3; flex-basis: 100%; }
  .ja { margin-left: auto; }
  .znacka img { height: 28px; }
}

main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 64px; }
.nacitani { color: var(--text-2); }

/* ---------- tlačítka ---------- */
.tl { border: 1px solid var(--cara); background: var(--plocha); color: var(--text); border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.tl:hover { border-color: var(--akcent); }
.tl-hlavni { background: var(--akcent); color: var(--akcent-text); border-color: var(--akcent); font-weight: 600; }
.tl-tiche { background: transparent; border-color: #4a433c; color: inherit; padding: 4px 10px; font-size: .85rem; }
.tl-cervene { background: var(--chyba); border-color: var(--chyba); color: #fff; font-weight: 650; }
.tl:disabled { opacity: .45; cursor: not-allowed; }
.ikona { border: 0; background: transparent; cursor: pointer; color: var(--text-2); padding: 4px 8px; border-radius: 6px; font-size: 1rem; line-height: 1; }
.ikona:hover { background: var(--plocha-2); color: var(--text); }
.ikona.smazat:hover { color: var(--chyba); }

/* ---------- přihlášení ---------- */
.prihlaseni { max-width: 440px; margin: 4vh auto 0; text-align: center; }
.prihlaseni .hero { background: var(--lista); border-radius: 18px; padding: 26px 24px 20px; margin-bottom: 22px; color: #f3eee8; }
.prihlaseni .hero img { width: min(260px, 70%); height: auto; display: block; margin: 0 auto; }
.prihlaseni .hero b { display: block; margin-top: 12px; letter-spacing: .32em; font-size: .85rem; font-weight: 600; color: #cfc6bb; text-transform: uppercase; }
.prihlaseni .nadpis { font-size: 1.5rem; font-weight: 750; }
.prihlaseni p { color: var(--text-2); margin: 4px 0 20px; }
.uzivatele { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.uzivatel { padding: 18px 10px; border-radius: var(--r); border: 1px solid var(--cara); background: var(--plocha); cursor: pointer; box-shadow: var(--stin); color: var(--text); }
.uzivatel b { display: block; font-size: 1.05rem; }
.uzivatel small { color: var(--text-2); }
.uzivatel:hover { border-color: var(--akcent); }
.pin-tecky { display: flex; justify-content: center; gap: 12px; margin: 18px 0; height: 16px; }
.pin-tecky i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--text-2); }
.pin-tecky i.plna { background: var(--akcent); border-color: var(--akcent); }
.klavesnice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 300px; margin: 0 auto; }
.klavesnice button { height: 60px; font-size: 1.4rem; border-radius: var(--r); border: 1px solid var(--cara); background: var(--plocha); color: var(--text); cursor: pointer; }
.klavesnice button:active { background: var(--akcent-jemny); }
.klavesnice .ok { background: var(--akcent); color: var(--akcent-text); border-color: var(--akcent); font-size: 1rem; font-weight: 700; }
.chyba-text { color: var(--chyba); min-height: 1.4em; margin: 8px 0 0; }
.zpet { margin-top: 18px; background: none; border: 0; color: var(--text-2); cursor: pointer; text-decoration: underline; }
.pin-karta { text-align: left; padding: 16px; max-width: 400px; margin: 12px auto 0; }
.pin-pole { letter-spacing: .3em; }

/* ---------- obecné bloky ---------- */
.hlavicka { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hlavicka .pod { color: var(--text-2); margin-top: 4px; }
.karta { background: var(--plocha); border: 1px solid var(--cara); border-radius: var(--r); box-shadow: var(--stin); }
.sekce-karta { padding: 16px; margin-bottom: 14px; }
.sekce-karta > h2 { margin-bottom: 8px; }
.sekce-karta p:first-of-type { margin-top: 4px; }
.stitek { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--plocha-2); color: var(--text-2); font-weight: 600; vertical-align: middle; white-space: nowrap; }
.stitek.ok { background: var(--ok-jemny); color: var(--ok); }
.stitek.chyba { background: var(--chyba-jemny); color: var(--chyba); }
.stitek.akcent { background: var(--akcent-jemny); color: var(--akcent); }
.stitek.kuchyn { background: var(--kuchyn-jemny); color: var(--kuchyn); }
.stitek.ridic { background: var(--ridic-jemny); color: var(--ridic); }
.stitek + .stitek { margin-left: 4px; }
.poznamka { color: var(--text-2); font-size: .88rem; }
.info { padding: 12px 14px; border-radius: var(--r); background: var(--akcent-jemny); font-size: .92rem; margin-bottom: 12px; }
.prazdne { padding: 28px; text-align: center; color: var(--text-2); }

/* ---------- přehled ---------- */
.souhrn { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.dlazdice { padding: 14px 16px; text-decoration: none; display: block; }
.dlazdice span { display: block; font-size: .82rem; color: var(--text-2); }
.dlazdice b { display: block; font-size: 1.6rem; font-weight: 750; margin-top: 2px; }
a.dlazdice:hover { border-color: var(--akcent); }
.prehled-mrizka { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 820px) { .prehled-mrizka { grid-template-columns: minmax(0, 1fr); } }
.fazy { list-style: none; margin: 0; padding: 0; }
.fazy li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--cara); }
.fazy li:first-child { border-top: 0; }
.fazy .c { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--plocha-2); color: var(--text-2); font-size: .8rem; font-weight: 700; }
.fazy li.hotovo .c { background: var(--ok); color: #fff; }
.fazy li.ted .c { background: var(--akcent); color: var(--akcent-text); }
.fazy b { display: block; }
.fazy span { color: var(--text-2); font-size: .88rem; }
.doba { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: .92rem; }
.doba .dnes { font-weight: 700; color: var(--akcent); }

/* ---------- tabulky ---------- */
.obal { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--cara); vertical-align: middle; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-2); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.cislo, th.cislo { text-align: right; white-space: nowrap; }
td.akce-radek { text-align: right; white-space: nowrap; width: 1%; }
tr.neaktivni td { opacity: .5; }
tr.klik { cursor: pointer; }
tr.klik:hover td { background: var(--plocha-2); }
td .mensi { display: block; color: var(--text-2); font-size: .8rem; }
.sazby-bunka { white-space: nowrap; font-size: .88rem; }
.sazby-bunka div + div { margin-top: 2px; }
.sazby-bunka .vychozi { color: var(--text-2); }
.sazby-bunka .budouci { color: var(--akcent); font-size: .78rem; }
@media (max-width: 720px) {
  .skryt-mobil { display: none; }
  /* tabulka zaměstnanců jako karty */
  table.karty thead { display: none; }
  table.karty tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px; border-bottom: 1px solid var(--cara); }
  table.karty tbody tr:last-child { border-bottom: 0; }
  table.karty td { border: 0; padding: 0; }
  table.karty td.skryt-mobil { display: none; }
  table.karty td.akce-radek { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  table.karty tr.klik:hover { background: var(--plocha-2); }
  table.karty tr.klik:hover td { background: transparent; }
}

/* ---------- filtry a nástroje ---------- */
.nastroje { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; margin-bottom: 12px; }
.nastroje .vpravo { margin-left: auto; }
.nastroje .hledat { flex: 1 1 180px; max-width: 280px; }
.segment { display: inline-flex; border: 1px solid var(--cara); border-radius: 10px; overflow: hidden; }
.segment button { border: 0; background: var(--plocha); color: var(--text); padding: 7px 12px; cursor: pointer; font-size: .88rem; }
.segment button + button { border-left: 1px solid var(--cara); }
.segment button.aktivni { background: var(--text); color: var(--bg); }
.prepinac { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--text-2); cursor: pointer; }
.prepinac input { accent-color: var(--akcent); }
.zalozky { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.zalozky button { border: 1px solid var(--cara); background: var(--plocha); color: var(--text); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.zalozky button.aktivni { background: var(--text); color: var(--bg); border-color: var(--text); }
.filtry-radek { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }

/* ---------- formuláře ---------- */
.pole, select.pole, textarea.pole { font: inherit; color: var(--text); background: var(--plocha); border: 1px solid var(--cara); border-radius: 8px; padding: 7px 9px; min-width: 0; }
.pole:focus { outline: 2px solid var(--akcent); outline-offset: -1px; border-color: var(--akcent); }
textarea.pole { resize: vertical; min-height: 64px; }
.pole.cas { width: 84px; text-align: center; }
.pole.castka { width: 110px; text-align: right; }
label.f { display: grid; gap: 4px; font-size: .82rem; color: var(--text-2); }
label.f > .pole { font-size: .95rem; }
.formular { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.formular .cela { grid-column: 1 / -1; }
.volby-roli { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.volba { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--cara); border-radius: 10px; cursor: pointer; }
.volba:has(input:checked) { border-color: var(--akcent); background: var(--akcent-jemny); }
.volba input { margin-top: 3px; accent-color: var(--akcent); }
.volba b, .volba span { display: block; }
.volba span { font-size: .8rem; color: var(--text-2); }

/* ---------- modal, toast ---------- */
.modal-pozadi { position: fixed; inset: 0; background: rgba(15, 12, 10, .5); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal { width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px; }
.modal h2 { margin-bottom: 14px; }
.modal h3 { margin: 18px 0 8px; }
.modal .tlacitka { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.modal .tlacitka .vlevo { margin-right: auto; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 60; font-size: .9rem; max-width: calc(100% - 32px); }
.toast.chyba { background: var(--chyba); color: #fff; }

/* ---------- sazby v detailu ---------- */
.sazby-role { display: grid; gap: 8px; }
.sazba-radek { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--cara); border-radius: 10px; flex-wrap: wrap; }
.sazba-radek .nazev { flex: 1 1 160px; }
.sazba-radek .hodnota { font-size: 1.2rem; font-weight: 750; }
.sazba-radek .hodnota small { font-size: .78rem; font-weight: 500; color: var(--text-2); }

/* ---------- otevírací doba, časy ---------- */
.dny-tabulka td { padding: 6px 10px; }
.skupina-casu { margin-bottom: 14px; }
.skupina-casu h3 { display: flex; align-items: center; gap: 8px; padding: 12px 14px 6px; }
.cas-chip { font-weight: 650; white-space: nowrap; width: 150px; }

/* ---------- historie ---------- */
.zmena { font-size: .85rem; }
.zmena div { white-space: normal; }
.zmena .z { color: var(--text-2); text-decoration: line-through; }
.zmena .na { color: var(--text); font-weight: 600; }
.zmena .klic { color: var(--text-2); }
.klic-radek { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.klic-radek code { background: var(--plocha-2); border: 1px solid var(--cara); border-radius: 8px; padding: 8px 10px; font-size: .85rem; word-break: break-all; }

@media print {
  .lista, .toast, .tl, .nastroje, .zalozky { display: none !important; }
  body, main, .karta { background: #fff !important; color: #000 !important; box-shadow: none !important; }
}

/* ---------- import a kontrola ---------- */
.dlazdice b .mensi { display: inline; font-size: .75rem; font-weight: 500; }
.dlazdice span + span { margin-top: 2px; }
.info.ok-info { background: var(--ok-jemny); color: var(--ok); }
.info.chyba-info { background: var(--chyba-jemny); color: var(--chyba); }
.seznam-upozorneni { margin: 6px 0 0; padding-left: 18px; font-size: .9rem; }
.seznam-upozorneni li { margin: 3px 0; }
.seznam-upozorneni li.u-chyba { color: var(--chyba); font-weight: 600; }
tr.varuj td { background: var(--chyba-jemny); }
tfoot td { font-weight: 700; border-top: 2px solid var(--cara); border-bottom: 0; }
.minus { color: var(--chyba); font-weight: 700; }
.tl-cervene-obrys { border-color: var(--chyba); color: var(--chyba); font-weight: 600; }

/* ---------- docházka a výplaty ---------- */
.tl.male { padding: 4px 10px; font-size: .85rem; }
.den-nazev { margin-left: 4px; }
.mensi-inline { color: var(--text-2); font-size: .78rem; }
.skupina-smen h2 { margin-bottom: 6px; }
table.smeny td { white-space: nowrap; }
table.smeny td:nth-child(1), table.smeny td:nth-child(2) { white-space: normal; }
.predvolby { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.chip { border: 1px solid var(--cara); background: var(--plocha-2); color: var(--text); border-radius: 999px; padding: 4px 10px; font-size: .85rem; cursor: pointer; }
.chip:hover { border-color: var(--akcent); }
th.oddelit, td.oddelit { border-left: 2px solid var(--cara); }
table.vyber tr.dopredu td { background: color-mix(in srgb, var(--akcent-jemny) 50%, transparent); }
table.vyber input, .volba input { width: 17px; height: 17px; accent-color: var(--akcent); }
.soucet-vyplaty { margin: 14px 0; padding: 12px 14px; border-radius: 10px; background: var(--plocha-2); }
.soucet-vyplaty .velke { font-size: 1.25rem; }
.modal { width: min(720px, 100%); }
@media (max-width: 720px) {
  /* směny jako řádky karet – nic se neschová za okraj */
  table.smeny thead { display: none; }
  table.smeny tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 4px; border-bottom: 1px solid var(--cara); }
  table.smeny td { border: 0; padding: 0; white-space: normal !important; }
  table.smeny td.cislo { text-align: left; }
  table.smeny td.akce-radek { width: 100%; text-align: right; }
  table.smeny tfoot tr { border-bottom: 0; }
}

/* ---------- měsíční tabulka docházky ---------- */
.mesic-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 14px; align-items: start; }
.panel { position: sticky; top: 62px; max-height: calc(100vh - 76px); overflow: auto; padding: 12px; }
.panel .hledat { width: 100%; margin: 10px 0 6px; }
.vyber { border: 1px dashed var(--cara); border-radius: 10px; padding: 10px; background: var(--plocha-2); }
.vyber.aktivni { border: 2px solid var(--akcent); background: var(--akcent-jemny); }
.vyber-hlava { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 1.05rem; }
.vyber .predvolby { margin: 8px 0; }
.vyber .chip.zvoleny { background: var(--akcent); color: var(--akcent-text); border-color: var(--akcent); }
.cas-radek { display: flex; align-items: center; gap: 6px; }
.napoveda { margin: 8px 0 0; font-size: .85rem; color: var(--text-2); }
.vyber.aktivni .napoveda { color: var(--akcent); font-weight: 600; }
.skupina-zam h3 { margin: 12px 0 4px; }
.zam { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; width: 100%; padding: 6px 8px; border: 1px solid transparent;
  border-radius: 8px; background: none; color: var(--text); cursor: pointer; text-align: left; }
.zam:hover { background: var(--plocha-2); }
.zam.vybrany { background: var(--akcent); color: var(--akcent-text); }
.zam small { color: var(--text-2); font-size: .75rem; white-space: nowrap; }
.zam.vybrany small { color: inherit; opacity: .85; }
.cela-sirka { width: 100%; margin-top: 12px; }
.mesic { padding: 12px; }
.mesic-hlava { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.mesic-hlava h2 { min-width: 150px; text-align: center; text-transform: capitalize; }
.mesic-hlava .vpravo { margin-left: auto; }
table.kalendar { table-layout: fixed; }
table.kalendar th:first-child { width: 52px; }
table.kalendar th:nth-child(2) { width: 32%; }
table.kalendar th:last-child { width: 90px; }
table.kalendar tr.den { cursor: pointer; }
table.kalendar tr.den:hover td, table.kalendar tr.den:hover th { background: var(--plocha-2); }
table.kalendar tr.vikend th.den-hlava { color: var(--akcent); }
table.kalendar tr.vikend td, table.kalendar tr.vikend th { background: color-mix(in srgb, var(--plocha-2) 55%, transparent); }
table.kalendar tr.dnes th.den-hlava { box-shadow: inset 4px 0 0 var(--akcent); }
table.kalendar tr.zavreno td { opacity: .5; }
table.kalendar tr.ma-smenu th.den-hlava b { text-decoration: underline; text-decoration-color: var(--akcent); text-decoration-thickness: 2px; }
.den-hlava { text-align: left; padding: 6px 8px; vertical-align: top; }
.den-hlava span { display: block; font-size: .72rem; color: var(--text-2); text-transform: uppercase; font-weight: 600; }
.den-hlava b { font-size: 1.05rem; }
td.lane { vertical-align: top; padding: 5px 6px; }
.cip { display: inline-flex; align-items: baseline; gap: 4px; margin: 2px 3px 2px 0; padding: 3px 8px; border-radius: 999px; border: 1px solid transparent;
  font-size: .82rem; cursor: pointer; font-weight: 600; white-space: nowrap; }
.cip small { font-weight: 400; opacity: .8; }
.cip.kuchyn { background: var(--kuchyn-jemny); color: var(--kuchyn); }
.cip.ridic { background: var(--ridic-jemny); color: var(--ridic); }
.cip.telefon { background: transparent; color: var(--ridic); border: 1px dashed var(--ridic); }
.cip.odepsany small { text-decoration: underline dotted; }
.cip.jeho { outline: 2px solid var(--akcent); outline-offset: 1px; }
.cip:hover { filter: brightness(.95); border-color: currentColor; }
td.souhrn-dne { text-align: right; vertical-align: top; font-weight: 600; white-space: nowrap; }
td.souhrn-dne small { display: block; font-weight: 400; color: var(--text-2); font-size: .75rem; }
@media (max-width: 900px) {
  .mesic-layout { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; max-height: 46vh; }
  table.kalendar { table-layout: auto; }
  table.kalendar th:nth-child(2) { width: auto; }
  td.lane { min-width: 120px; }
}
/* ---------- po dnech v týdnu ---------- */
table.tyden tr.vikend td { background: color-mix(in srgb, var(--plocha-2) 55%, transparent); }
.pruh-bunka { min-width: 180px; }
.pruh-bunka b { display: block; font-size: .85rem; }
.pruh { height: 8px; background: var(--plocha-2); border-radius: 4px; overflow: hidden; margin-bottom: 3px; }
.pruh i { display: block; height: 100%; background: var(--akcent); border-radius: 4px; }

/* ---------- 0.3.2: denní formulář v měsíci ---------- */
table.formular-mesic { border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 980px; }
table.formular-mesic thead th { position: sticky; top: 0; background: var(--plocha); z-index: 2; text-align: center; }
table.formular-mesic th.hlava-kuchyn { color: var(--kuchyn); }
table.formular-mesic th.hlava-ridic { color: var(--ridic); }

table.formular-mesic th, table.formular-mesic td { padding: 2px 3px; border-bottom: 0; vertical-align: middle; }
table.formular-mesic tbody.den tr:first-child > * { border-top: 2px solid var(--cara); padding-top: 4px; }
table.formular-mesic tbody.den tr:last-child > * { padding-bottom: 4px; }
table.formular-mesic tbody.vikend { background: color-mix(in srgb, var(--plocha-2) 60%, transparent); }
table.formular-mesic tbody.vikend .den-hlava { color: var(--akcent); }
table.formular-mesic tbody.dnes .den-hlava { box-shadow: inset 4px 0 0 var(--akcent); }
table.formular-mesic tbody.zavreno .pole-smeny { opacity: .45; }
.formular-mesic .den-hlava { vertical-align: top; }
.formular-mesic .stitek-pole { width: 76px; text-align: left; font-size: .72rem; font-weight: 600; color: var(--kuchyn); white-space: nowrap; }
.formular-mesic .cast { width: 34px; font-size: .7rem; color: var(--ridic); font-weight: 600; text-align: right; }
.formular-mesic .pole-smeny { height: 30px; }
.formular-mesic td.volno { border: 1px dashed var(--cara); border-radius: 6px; cursor: pointer; background: var(--plocha); background-clip: padding-box; }
.formular-mesic td.volno:hover { border-color: var(--akcent); background: var(--akcent-jemny); }
.formular-mesic.vybira td.volno { border-color: color-mix(in srgb, var(--akcent) 45%, var(--cara)); }
.formular-mesic td.prazdno { border: 0; }
.formular-mesic .pole-smeny .cip { display: flex; flex-direction: column; align-items: flex-start; width: 100%; margin: 0; padding: 2px 7px; border-radius: 6px; line-height: 1.15; overflow: hidden; }
.formular-mesic .pole-smeny .cip b { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.formular-mesic .pole-smeny .cip small { font-size: .7rem; white-space: nowrap; }
.formular-mesic td[rowspan="2"] .cip { height: 100%; justify-content: center; min-height: 58px; }
.formular-mesic .souhrn-dne { width: 76px; vertical-align: top; }
.plus-vypomoc { display: block; margin-top: 2px; border: 0; background: none; color: var(--akcent); font-size: .7rem; cursor: pointer; padding: 0; font-weight: 600; }
.plus-vypomoc:hover { text-decoration: underline; }

main.siroky { max-width: 1720px; }

/* ---------- 0.3.3: okno výběru vedle seznamu, evidence zaměstnanců ---------- */
.mesic-layout.s-vyberem { grid-template-columns: 250px 250px minmax(0, 1fr); }
.vyber-sloupec { position: sticky; top: 62px; max-height: calc(100vh - 76px); overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.vyber-sloupec #m-dost { display: flex; flex-direction: column; gap: 10px; }
.vyber-karta, .dost-karta { padding: 10px; }
.dost-karta[hidden] { display: none; }
.vyber-sloupec .vyber { border: 0; padding: 4px; background: none; }
.vyber-sloupec .vyber-hlava { font-size: 1.1rem; }
.mesic-layout.s-vyberem .panel .zam.vybrany { position: relative; }
.mesic-layout.s-vyberem .panel .zam.vybrany::after { content: '→'; position: absolute; right: -14px; color: var(--akcent); font-weight: 700; }
@media (max-width: 900px) { .mesic-layout.s-vyberem { grid-template-columns: minmax(0, 1fr); } .vyber-sloupec { position: sticky; top: 0; z-index: 8; max-height: none; } }
th.evid { text-align: center; font-size: .68rem; }
td.evid { text-align: center; padding: 4px; }
td.evid input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--akcent); cursor: pointer; }
.pole.pocet { width: 52px; text-align: center; padding: 4px; }
.pole.uvazek { padding: 4px; }

/* ---------- 0.3.4: záhlaví u každého dne, export ---------- */
.formular-mesic tr.zahlavi-dne th { font-size: .66rem; text-transform: uppercase; letter-spacing: .03em; padding: 6px 3px 2px; text-align: center; border-top: 2px solid var(--cara); }
.formular-mesic tr.zahlavi-dne th.zahlavi-datum { text-align: left; color: var(--text-2); white-space: nowrap; }
.formular-mesic tbody.vikend tr.zahlavi-dne th.zahlavi-datum { color: var(--akcent); }
table.formular-mesic tbody.den tr:first-child > * { border-top: 2px solid var(--cara); }
table.formular-mesic tbody.den tr:nth-child(2) > * { border-top: 0; }
.export-volby { display: grid; gap: 10px; margin-top: 14px; }
.volba-exportu { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border: 1px solid var(--cara); border-radius: 10px; background: var(--plocha); color: var(--text); cursor: pointer; }
.volba-exportu:hover { border-color: var(--akcent); background: var(--akcent-jemny); }
.volba-exportu span { color: var(--text-2); font-size: .85rem; }
.nahled-obrazku { max-height: 60vh; overflow: auto; border: 1px solid var(--cara); border-radius: 8px; }
.nahled-obrazku img { display: block; width: 100%; height: auto; }
.tisk-hlava { display: none; }
@media print {
  @page { size: A4 landscape; margin: 8mm; }
  body.tisk-planu { background: #fff !important; --plocha: #fff; --plocha-2: #f4f1ec; --text: #000; --text-2: #444; --cara: #bbb; font-size: 10px;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.tisk-planu .lista, body.tisk-planu .hlavicka, body.tisk-planu .panel, body.tisk-planu .vyber-sloupec, body.tisk-planu .mesic-hlava,
  body.tisk-planu .plus-vypomoc, body.tisk-planu .kc, body.tisk-planu .toast, body.tisk-planu .modal-pozadi { display: none !important; }
  body.tisk-planu main { max-width: none; padding: 0; }
  body.tisk-planu .mesic-layout { display: block; }
  body.tisk-planu .mesic { border: 0 !important; box-shadow: none !important; padding: 0; }
  body.tisk-planu .obal { overflow: visible; }
  body.tisk-planu table.formular-mesic { min-width: 0; width: 100%; }
  body.tisk-planu tbody.den { break-inside: avoid; page-break-inside: avoid; }
  body.tisk-planu .tisk-hlava { display: flex !important; align-items: center; gap: 14px; margin-bottom: 6px; }
  body.tisk-planu .tisk-hlava img { height: 34px; }
  body.tisk-planu .tisk-hlava b { display: block; font-size: 15px; }
  body.tisk-planu .tisk-hlava span { color: #555; font-size: 10px; }
  body.tisk-planu td.volno { border-color: #ccc !important; background: #fff !important; }
  body.tisk-planu .cip.jeho { outline: 0; }
  body.tisk-planu table.formular-mesic tfoot { display: table-row-group; }
  body.tisk-planu .cip { outline: 0 !important; box-shadow: none !important; }
}

/* ---------- 0.4.1: modelování na tabulce docházky, kategorie řidičů ---------- */
.mo-nastroje .vpravo { margin-left: auto; }
.mo2-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; margin-bottom: 14px; }
.mo2-tabulka { min-width: 0; }
.mo2-panel { display: grid; gap: 12px; position: sticky; top: 70px; max-height: calc(100vh - 84px); overflow: auto; }
.mo-karta { padding: 12px 14px; }
.mo-karta h2 { font-size: 1rem; margin: 0 0 8px; display: flex; gap: 8px; align-items: baseline; }
.mo-sazby { display: grid; gap: 6px; }
.mo-sazba { display: grid; grid-template-columns: 1fr 90px; gap: 8px; align-items: center; }
.mo-sazba span { font-weight: 600; font-size: .9rem; }
.mo-sazba small { display: block; font-weight: 400; color: var(--text-2); font-size: .76rem; }
.mo-sazba input { text-align: right; }
.mo-vysl { display: grid; gap: 6px; }
.mo-radek-vysl { display: grid; grid-template-columns: 1fr auto; padding: 8px 10px; border-radius: 8px; background: var(--plocha-2); }
.mo-radek-vysl span { font-size: .82rem; color: var(--text-2); }
.mo-radek-vysl b { font-size: 1.25rem; grid-row: span 2; align-self: center; }
.mo-radek-vysl small { font-size: .76rem; color: var(--text-2); }
.mo-pocty { margin: 4px 0 0; font-size: .8rem; color: var(--text-2); }
.mo-vic { color: var(--chyba); }
.mo-min { color: var(--ok); }
.mo-rozdil.mo-vic { background: var(--chyba-jemny); }
.mo-rozdil.mo-min { background: var(--ok-jemny); }
.mo-rozdil.mo-vic span, .mo-rozdil.mo-vic small, .mo-rozdil.mo-min span, .mo-rozdil.mo-min small { color: inherit; }
table.mo-tab { width: 100%; font-size: .85rem; }
table.mo-tab td.mo-vic, table.mo-tab td.mo-min { font-weight: 700; }
tr.mo-oddel td { border-top: 2px solid var(--cara); }
tr.mo-rok td { font-weight: 700; }
.mo-lide { padding: 12px 14px; }
.mo-lide summary { cursor: pointer; font-weight: 650; }
.mo-lide[open] summary { margin-bottom: 8px; }
.mo-legenda { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .8rem; color: var(--text-2); margin-bottom: 8px; }
.mo-legenda .cip { display: inline-block; width: auto; min-height: 0; padding: 2px 8px; pointer-events: none; }
.mo-legenda .vpravo { margin-left: auto; }
.cip.mo-zrusena { background: var(--plocha-2) !important; color: var(--text-2) !important; opacity: .65; }
.cip.mo-zrusena b { text-decoration: line-through; }
.cip.mo-delsi { background: var(--ok-jemny) !important; color: var(--ok) !important; box-shadow: inset 0 0 0 2px var(--ok); }
.cip.mo-kratsi { background: #fdf0d8 !important; color: #8a5a12 !important; box-shadow: inset 0 0 0 2px #d39b2e; }
.cip.mo-nova { background: var(--ok-jemny) !important; color: var(--ok) !important; box-shadow: inset 0 0 0 2px var(--ok); outline: 2px dashed var(--ok); outline-offset: -5px; }
.cip small s { opacity: .7; }
table.formular-mesic.mo2 td.volno { cursor: copy; }
table.formular-mesic.mo2 td.volno:hover { background: var(--ok-jemny); }
.mo-souhrn-dne { font-size: .78rem; }
.mo-souhrn-dne span, .mo-souhrn-dne small, .mo-souhrn-dne b { display: block; }
.mo-casy { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 10px; }
.mo-tl-zrusit { color: var(--chyba); }
button.odkaz { border: 0; background: none; padding: 0; color: var(--akcent); cursor: pointer; font: inherit; font-weight: 600; text-align: left; }
button.odkaz:hover { text-decoration: underline; }
.stitek.kat-ridic { border: 0; cursor: pointer; margin-left: 4px; }
.stitek.kat-ridic.starsi { background: var(--ridic-jemny); color: var(--ridic); }
.stitek.kat-ridic.novy { background: #fdf0d8; color: #8a5a12; }
.stitek.kat-ridic:disabled { cursor: default; }
.upozorneni-ridici ul { margin: 6px 0; padding-left: 18px; }
.upozorneni-ridici li { margin: 3px 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cip.mo-kratsi, :root:not([data-theme="light"]) .stitek.kat-ridic.novy { background: #3d3020 !important; color: #f0c674 !important; } }
:root[data-theme="dark"] .cip.mo-kratsi, :root[data-theme="dark"] .stitek.kat-ridic.novy { background: #3d3020 !important; color: #f0c674 !important; }
@media (max-width: 1100px) {
  .mo2-layout { grid-template-columns: 1fr; }
  .mo2-panel { position: static; max-height: none; order: -1; }
}
.mo2-layout { grid-template-columns: minmax(0, 1fr) 360px; }
.mo2-panel { overflow-x: hidden; }
.mo2-panel > .karta { min-width: 0; }
.mo-sazba input { width: 100%; min-width: 0; }
.mo2-panel table.mo-tab { font-size: .8rem; table-layout: fixed; }
.mo2-panel table.mo-tab th, .mo2-panel table.mo-tab td { padding: 5px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo2-panel table.mo-tab th:first-child, .mo2-panel table.mo-tab td:first-child { width: 28%; }
.mo2-panel .tlacitka { flex-wrap: wrap; justify-content: flex-end; }
.cip.mo-nova { outline-offset: -4px; outline-width: 1px; }

/* ---------- 0.5.2: neobsazené směny, uzavřené dny, tisk po týdnech ---------- */
.cip.neobsazena { background: #ffe14d !important; color: #4a3b00 !important; border: 1px solid #e0b800 !important; }
.cip.neobsazena b { font-weight: 800; }
.zam.zam-neobs { border: 1px dashed #e0b800; background: #fff6c2; color: #4a3b00; margin-bottom: 4px; }
.zam.zam-neobs.vybrany { background: #ffe14d; }
table.formular-mesic tbody.uzavreny td.volno { cursor: not-allowed; background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--plocha-2) 70%, transparent) 6px 12px); }
table.formular-mesic tbody.uzavreny td.volno:hover { background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--plocha-2) 70%, transparent) 6px 12px); }
@media print {
  body.tisk-planu { font-size: 10px; }
  body.tisk-planu tbody.den.novy-tyden { break-before: page; page-break-before: always; }
  body.tisk-planu .formular-mesic .pole-smeny { height: 27px; }
  body.tisk-planu .formular-mesic .pole-smeny .cip { padding: 1px 6px; line-height: 1.1; border-radius: 4px; }
  body.tisk-planu .formular-mesic .pole-smeny .cip b { font-size: 10.5px; }
  body.tisk-planu .formular-mesic .pole-smeny .cip small { font-size: 9px; }
  body.tisk-planu table.formular-mesic th, body.tisk-planu table.formular-mesic td { padding: 1px 2px; }
  body.tisk-planu .formular-mesic tr.zahlavi-dne th { font-size: 7.5px; padding: 3px 2px 1px; }
  body.tisk-planu .formular-mesic .stitek-pole, body.tisk-planu .formular-mesic th.cast { font-size: 8px; }
  body.tisk-planu .den-hlava b { font-size: 14px; }
  body.tisk-planu .den-hlava span { font-size: 8px; }
  body.tisk-planu td.souhrn-dne { font-size: 10px; }
  body.tisk-planu td.souhrn-dne small { font-size: 8px; }
  body.tisk-planu .tisk-hlava { margin-bottom: 2px; }
  body.tisk-planu .tisk-hlava img { height: 22px; }
  body.tisk-planu .tisk-hlava b { font-size: 12px; }
  body.tisk-planu table.formular-mesic tbody.uzavreny td.volno { background: #fff !important; }
}
.nahled-obrazku figure { margin: 0 0 10px; }
.nahled-obrazku figcaption { font-size: .8rem; color: var(--text-2); padding: 4px 8px; }

/* ---------- 1.0.0: vymazat změny ---------- */
.sekce-karta.nebezpeci { border: 2px solid var(--chyba); max-width: 760px; }
.sekce-karta.nebezpeci ul { padding-left: 18px; }
.sekce-karta.nebezpeci li { margin: 4px 0; }

/* ---------- 1.1.0: půlky Hlavní 1 / 2, svátky, odebrání výpomoci ---------- */
.formular-mesic td.pulene { padding: 2px 3px; }
.formular-mesic td.pulene > .pul { display: inline-block; width: calc(50% - 2px); vertical-align: middle; height: 100%; }
.formular-mesic td.pulene > .pul + .pul { margin-left: 4px; }
.formular-mesic td.pulene .pul .cip { width: 100%; }
.formular-mesic .volno-pul { min-height: 26px; border: 1px dashed var(--cara); border-radius: 6px; cursor: pointer; }
.formular-mesic .volno-pul:hover { border-color: var(--akcent); background: var(--akcent-jemny); }
table.formular-mesic tbody.uzavreny .volno-pul { cursor: not-allowed; }
.minus-vypomoc { color: var(--chyba) !important; }
.zam .cele-jmeno { display: block; font-style: normal; font-size: .72rem; color: var(--text-2); font-weight: 400; line-height: 1.1; }
.zam span { min-width: 0; }
td.poznamka-bunka { font-size: .82rem; color: var(--text-2); max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-volba { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 4px 0; }
ul.svatky { list-style: none; padding: 0; margin: 0 0 10px; }
ul.svatky li { padding: 5px 0; border-bottom: 1px solid var(--cara); }
ul.svatky li.dnes { font-weight: 600; color: var(--akcent); }
.svatek-datum { display: inline-block; min-width: 92px; color: var(--text-2); font-size: .85rem; }
#p-svatky h3 { font-size: .9rem; margin: 12px 0 4px; }
.zam.vybrany .cele-jmeno { color: inherit; opacity: .85; }

/* ---------- 1.2.0: dostupnost řidičů ---------- */
table.dost-tab { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; }
table.dost-tab th { font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-2); text-align: left; padding: 2px 4px; }
table.dost-tab th.vikend { color: var(--akcent); }
td.dost-den { vertical-align: top; padding: 5px; border: 1px solid var(--cara); border-radius: 8px; background: var(--plocha); }
td.dost-den.mimo { border: 0; background: none; }
td.dost-den.minuly { opacity: .45; }
td.dost-den.dnes { box-shadow: inset 0 0 0 2px var(--akcent); }
td.dost-den.vikend { background: color-mix(in srgb, var(--plocha-2) 60%, var(--plocha)); }
.dost-hlava { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.dost-hlava small { color: var(--ok); font-size: .7rem; font-weight: 600; }
.dost-typ { display: block; width: 100%; margin: 2px 0; padding: 3px 5px; border: 1px dashed var(--cara); border-radius: 6px; background: none; color: var(--text-2);
  font: inherit; font-size: .74rem; text-align: left; cursor: pointer; line-height: 1.15; }
.dost-typ small { display: block; font-size: .68rem; }
.dost-typ:hover:not([disabled]) { border-color: var(--ok); color: var(--ok); }
.dost-typ.zvoleno { background: var(--ok-jemny); color: var(--ok); border: 1px solid var(--ok); font-weight: 650; }
.dost-typ[disabled] { cursor: default; }
.dost-nadpis, .dost-okno h3 { font-size: .9rem; margin: 10px 0 6px; }
.dost-pozn { background: var(--plocha-2); padding: 6px 8px; border-radius: 6px; margin: 4px 0; }
ul.dost-zaznamy { list-style: none; padding: 0; margin: 0; }
ul.dost-zaznamy li { padding: 6px 0; border-bottom: 1px solid var(--cara); }
.dost-radek { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.dost-radek .ikona { margin-left: auto; }
.stitek.dost-rano, .stitek.dost-odpo, .stitek.dost-cely { background: var(--ok-jemny); color: var(--ok); }
.dost-okno { border-top: 1px solid var(--cara); margin-top: 8px; padding-top: 2px; }
ul.dost-seznam { list-style: none; padding: 0; margin: 0; }
ul.dost-seznam li { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; padding: 5px 6px; margin: 3px 0; border-radius: 6px; font-size: .82rem; cursor: pointer; }
ul.dost-seznam li small { grid-column: 1 / -1; font-size: .72rem; }
ul.dost-seznam li.volne { background: var(--ok-jemny); color: var(--ok); }
ul.dost-seznam li.volne:hover { box-shadow: inset 0 0 0 1px var(--ok); }
ul.dost-seznam li.obsazeno { background: var(--plocha-2); color: var(--text-2); cursor: default; }
.dost-datum { font-weight: 650; white-space: nowrap; }
.dost-jmeno { grid-column: 1 / -1; font-weight: 650; }
.dost-karta .dost-okno { border-top: 0; margin-top: 0; padding-top: 0; }
.dost-karta .dost-okno h3 { margin-top: 0; }
/* dostupní řidiči pro den: dvě pole (jméno + čas) vedle sebe */
ul.dost-seznam.dost-dva { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
ul.dost-seznam.dost-dva li { display: block; margin: 0; padding: 4px 6px; min-width: 0; }
ul.dost-seznam.dost-dva .dost-jmeno, ul.dost-seznam.dost-dva small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ul.dost-seznam.dost-dva .dost-jmeno { font-size: .78rem; }
table.formular-mesic tbody.vybrany-den th.den-hlava { background: var(--ok-jemny); color: var(--ok); }
table.formular-mesic th.den-hlava { cursor: pointer; }
@media (max-width: 760px) { table.dost-tab { min-width: 640px; } }

/* ---------- 2.0: šablona pobočky (návrh Cartel Portál) ---------- */
:root { --cartel-tma: #17140F; --cartel-krem: #F5F2ED; --cartel-cervena: #C21F2B; --cartel-sedy: #D9D3CA; }
.nadpis-pobocky, .vstup-pobocka h1, .vstup-form h2, .gdpr-telo h1, .dlazdice-app b {
  font-family: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif; font-stretch: condensed; text-transform: uppercase; letter-spacing: .01em;
}
.servis-pruh { background: #6B4A08; color: #fff; padding: 8px 16px; font-size: .9rem; font-weight: 600; text-align: center; }
.ok-text { color: var(--ok); }
.velke { width: 100%; height: 50px; font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.velka-info { max-width: 560px; margin: 8vh auto; padding: 28px; text-align: center; }
.velka-info h2 { margin-bottom: 8px; }

/* přihlášení: tmavý panel s názvem pobočky + formulář */
.vstup { display: flex; flex-wrap: wrap; min-height: 100vh; }
main#app:has(.vstup) { max-width: none; padding: 0; }
.vstup-panel { flex: 1 1 420px; min-width: 0; background: var(--cartel-tma); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.vstup-panel > img { width: min(240px, 60%); height: auto; }
.vstup-panel > small { color: var(--cartel-sedy); font-size: .85rem; }
.vstup-pobocka { display: flex; flex-direction: column; gap: 12px; }
.vstup-pobocka span { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cartel-sedy); }
.vstup-pobocka h1 { font-size: clamp(2.4rem, 5.4vw, 5.5rem); line-height: .95; font-weight: 800; overflow-wrap: break-word; hyphens: manual; }
.vstup-pobocka small { color: var(--cartel-sedy); font-size: 1rem; }
.vstup-prava { flex: 1 1 420px; min-width: 0; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
.vstup-form, .vstup-vedouci, .vstup-pin { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.vstup-form h2 { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.vstup-form p { margin: 0; color: var(--text-2); }
.vstup-form .f { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.vstup-form .pole { height: 50px; font-size: 1rem; }
.radek-mezi { display: flex; justify-content: space-between; align-items: baseline; }
.radek-mezi a { font-weight: 500; font-size: .85rem; color: var(--akcent); }
.vstup-vedouci { border-top: 1px solid var(--cara); padding-top: 20px; }
.vstup-vedouci h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.vstup-vedouci .poznamka { margin: 0; }
.vstup-pin { text-align: center; }
.vstup-pin h2 { font-size: 1.6rem; }
.vstup-pin p { color: var(--text-2); margin: 0; }
@media (max-width: 700px) { .vstup-panel { padding: 28px 20px; gap: 20px; } .vstup-panel > img { width: 150px; } .vstup-prava { padding: 28px 16px; } .vstup-pobocka h1 { font-size: 3.2rem; } }

/* dlaždice aplikací */
.aplikace { display: flex; flex-direction: column; gap: 18px; }
.nadpis-pobocky { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.dlazdice-aplikaci { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.dlazdice-app { border-radius: 18px; padding: 22px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; text-decoration: none; }
.dlazdice-app.aktivni { background: var(--cartel-tma); color: #fff; }
.dlazdice-app.aktivni:hover { outline: 3px solid var(--cartel-cervena); }
.dlazdice-app.pripravujeme { background: var(--plocha); border: 1px dashed #BDB4A8; color: var(--text); }
.dlazdice-hlava { display: flex; justify-content: space-between; align-items: flex-start; }
.dlazdice-ikona { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--plocha-2); color: var(--text-2); }
.dlazdice-app.aktivni .dlazdice-ikona { background: var(--cartel-cervena); color: #fff; }
.dlazdice-app b { display: flex; align-items: flex-start; gap: 10px; font-size: 1.65rem; font-weight: 700; line-height: 1.05; margin-bottom: 6px; overflow-wrap: break-word; }
.dlazdice-app span { font-size: .9rem; }
.dlazdice-app.aktivni span { color: var(--cartel-sedy); }
.dlazdice-app .stitek { font-size: .7rem; font-weight: 700; }
.dlazdice-app.aktivni .stitek.ok { background: #E3F2EA; color: #145C37; }
.dlazdice-otevrit { font-weight: 600; }
.dlazdice-app.aktivni .dlazdice-otevrit { color: #fff !important; }
.sekce-nadpis { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-top: 10px; }
.sprava-pobocky { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.sprava-odkaz { padding: 18px 20px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.sprava-odkaz:hover { border-color: var(--akcent); }
.sprava-odkaz span { font-size: .85rem; color: var(--text-2); }
.upozorneni-servis { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-left: 0; background: #FBEBC8; color: #3d2a05; }
.upozorneni-servis div { display: flex; flex-direction: column; gap: 2px; }

/* GDPR smlouva */
.gdpr-okno { max-width: 820px; margin: 0 auto 20px; overflow: hidden; padding: 0; }
.gdpr-hlava { background: var(--cartel-tma); color: #fff; padding: 18px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.gdpr-hlava img { width: 64px; height: auto; }
.gdpr-hlava span { font-size: .82rem; color: var(--cartel-sedy); }
.gdpr-telo { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.gdpr-krok { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--akcent); }
.gdpr-telo h1 { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.gdpr-udaje { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.gdpr-udaje div { background: var(--plocha-2); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.gdpr-udaje span { font-size: .78rem; color: var(--text-2); }
.gdpr-text { border: 1px solid var(--cara); border-radius: 12px; padding: 16px 18px; max-height: 260px; overflow-y: auto; white-space: pre-wrap; font-size: .9rem; line-height: 1.6; }
.gdpr-souhlas { align-items: flex-start; font-size: 1rem; }
.radek-pristup { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--cara); }
.radek-pristup .tl { margin-left: auto; }

/* ---------- přehled modulu: tmavý pás s kresbou a vodoznak loga ---------- */
body:has(.pas-prehledu) { overflow-x: clip; }
.pas-prehledu { position: relative; overflow: hidden; margin: -20px calc(50% - 50vw) 20px; padding: 40px max(16px, calc(50vw - 574px)) 44px;
  background: #161412; color: #f3eee8; }
.pas-prehledu .pas-obsah { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pas-prehledu h1 { margin: 0; font-family: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif; font-stretch: condensed;
  font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.pas-prehledu .pas-pod { margin-top: 10px; color: #d8d1c8; font-size: 1.02rem; }
.pas-prehledu .motiv { position: absolute; top: 0; right: max(0px, calc(50vw - 720px)); height: 100%; width: auto; max-width: 62%; pointer-events: none; }
.pas-prehledu + * { position: relative; }
.vodoznak { display: block; width: min(820px, 88%); margin: 56px -40px -48px auto; opacity: .07; pointer-events: none; user-select: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vodoznak { filter: invert(1); } }
:root[data-theme="dark"] .vodoznak { filter: invert(1); }
@media (max-width: 720px) {
  .pas-prehledu { padding-top: 28px; padding-bottom: 32px; }
  .pas-prehledu .motiv { opacity: .45; max-width: 100%; }
}
@media print {
  .pas-prehledu { margin: 0 0 12px; padding: 0; background: none; color: #000; }
  .pas-prehledu .pas-pod { color: #333; }
  .pas-prehledu .motiv, .pas-prehledu .radek-tl, .vodoznak { display: none; }
}

/* ---------- 2.2.0: černé písmo směn a dostupnosti (barevné písmo se při tisku ztrácí); neobsazená směna na telefonu ---------- */
.cip.kuchyn, .cip.ridic, .cip.telefon { color: var(--text); }
.cip small { opacity: 1; }
.dost-typ, .dost-typ:hover:not([disabled]), .dost-typ.zvoleno, .dost-hlava small, ul.dost-seznam li, ul.dost-seznam li.volne, ul.dost-seznam li small,
.stitek.dost-rano, .stitek.dost-odpo, .stitek.dost-cely { color: var(--text); }
.cip.neobsazena { color: #1b1916 !important; }
.cip.neobsazena.neobsazena-tel { background: #9be3b0 !important; border: 1px solid #2f9e5b !important; }
.zam.zam-neobs.zam-neobs-tel { border-color: #2f9e5b; background: #dcf5e4; color: #1b1916; }
.zam.zam-neobs.zam-neobs-tel.vybrany { background: #9be3b0; }
@media print {
  .cip, .cip b, .cip small, .dost-typ, .dost-typ small, .dost-hlava, .dost-hlava small, ul.dost-seznam li, .stitek, #m-mesic, #m-mesic * { color: #000 !important; }
}

/* 2.3.0 – přehled Směn: statistika měsíce */
a.odkaz-karta { display: block; text-decoration: none; color: inherit; }
a.odkaz-karta:hover { border-color: var(--akcent); }
.prehled-mrizka > div:not(.karta) { display: flex; flex-direction: column; gap: 14px; }
.stat-radek { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 6px 0 8px; }
.stat-radek > div { background: var(--plocha-2); border-radius: 10px; padding: 10px 12px; }
.stat-radek span { display: block; font-size: .8rem; color: var(--text-2); }
.stat-radek b { display: block; font-size: 1.45rem; margin: 2px 0; }
.stat-radek small { color: var(--text-2); font-size: .78rem; }

/* logo aplikace Pobočka – přihlášení a dlaždice modulů (2.4.0) */
.vstup-logo { width: 100%; max-width: 420px; height: 59px; object-fit: contain; object-position: left center; }
.dlazdice-znacka { height: .95em; width: auto; flex: 0 0 auto; margin-top: .05em; }
@media (max-width: 700px) { .vstup-logo { height: 44px; } }

/* ---------- Statistika mezd (2.5.0) ---------- */
.graf-s { --s1: #2a78d6; --g-mrizka: #ebe7e1; --g-nula: #c3c2b7; --g-osa: #898781; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .graf-s { --s1: #3987e5; --g-mrizka: #2c2a27; --g-nula: #4a4640; --g-osa: #8f8a83; } }
:root[data-theme="dark"] .graf-s { --s1: #3987e5; --g-mrizka: #2c2a27; --g-nula: #4a4640; --g-osa: #8f8a83; }
.stat-filtry { align-items: flex-end; }
.stat-souhrn { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-souhrn .karta { margin: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.stat-souhrn span { color: var(--text-2); font-size: .85rem; }
.stat-souhrn b { font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-souhrn b.mensi-cislo { font-size: 1.15rem; padding: 4px 0 3px; }
.stat-souhrn small { color: var(--text-2); font-size: .8rem; }
.stat-grafy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-grafy .karta { margin: 0; padding: 14px 16px 8px; }
@media (max-width: 860px) { .stat-grafy { grid-template-columns: 1fr; } }
.graf-hlava { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.graf-hlava h3 { margin: 0; font-size: 1rem; }
.graf-hlava b { margin-left: auto; font-variant-numeric: tabular-nums; }
.graf-hlava .poznamka { margin: 0; }
.graf-s .graf-plocha { position: relative; }
.graf-s .graf-plocha svg { display: block; width: 100%; height: auto; overflow: visible; }
.graf-s .g-mrizka { stroke: var(--g-mrizka); stroke-width: 1; }
.graf-s .g-nula { stroke: var(--g-nula); stroke-width: 1; }
.graf-s .g-osa { fill: var(--g-osa); font-size: 11px; font-variant-numeric: tabular-nums; }
.graf-s .g-popis { fill: var(--text-2); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.graf-s .g-cara { fill: none; stroke: var(--s1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.graf-s .g-plocha { fill: var(--s1); opacity: .09; }
.graf-s .g-tecka { fill: var(--s1); }
.graf-s .g-bod { fill: var(--s1); stroke: var(--plocha); stroke-width: 2; }
.graf-s .g-dnes { stroke: var(--g-osa); stroke-width: 1; stroke-dasharray: 3 3; }
.graf-s .g-kriz { stroke: var(--g-osa); stroke-width: 1; pointer-events: none; }
.graf-s .g-zachyt { fill: transparent; cursor: crosshair; outline: none; }
.graf-s .g-zachyt:focus-visible { stroke: var(--s1); stroke-width: 1.5; }
.graf-s .graf-tip { position: absolute; top: 24px; z-index: 5; min-width: 190px; background: var(--plocha); border: 1px solid var(--cara); border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .14); padding: 8px 12px; font-size: 13px; pointer-events: none; }
.graf-s .tip-hlava { font-weight: 600; margin-bottom: 4px; }
.graf-s .tip-radek { display: flex; justify-content: space-between; gap: 14px; color: var(--text-2); }
.graf-s .tip-radek b { color: var(--text); font-variant-numeric: tabular-nums; }
.graf-s .tip-radek.tento span { color: var(--text); font-weight: 600; }
.vyber-lidi { position: relative; }
.vyber-lidi > summary { list-style: none; cursor: pointer; min-width: 180px; }
.vyber-lidi > summary::-webkit-details-marker { display: none; }
.vyber-lidi > summary::after { content: '▾'; float: right; margin-left: 10px; color: var(--text-2); }
.vyber-lidi-panel { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(320px, 90vw); background: var(--plocha); border: 1px solid var(--cara);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .16); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.vyber-lidi-seznam { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.vyber-lidi-seznam label { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; cursor: pointer; font-size: .92rem; }
.vyber-lidi-seznam label:hover { background: var(--plocha-2); }
.vyber-lidi-seznam label[hidden] { display: none; }
.vyber-lidi-panel .tlacitka { margin: 0; justify-content: flex-end; }
.stat-lide .sloupek-radek { display: inline-flex; align-items: center; gap: 8px; min-width: 120px; }
.stat-lide .sloupek { display: inline-block; height: 10px; background: var(--s1); border-radius: 0 4px 4px 0; opacity: .75; }
.stat-lide .sloupek-radek b { font-variant-numeric: tabular-nums; }
#st-poradi .nastroje { gap: 10px; flex-wrap: wrap; align-items: center; }
#st-poradi .nastroje h2 { margin: 0 auto 0 0; }
.stat-tabulka { padding: 0; }
.stat-tabulka > summary { cursor: pointer; padding: 14px 16px; font-weight: 600; }
.stat-tabulka .obal { padding: 0 16px 14px; }
.statistika-mesice .odkaz-text { color: var(--akcent); white-space: nowrap; }
