:root {
  --znacka: #2F6F8F;
  --znacka-svetla: color-mix(in srgb, var(--znacka) 10%, white);
  --text: #1c2228; --tlumeny: #66717c; --cara: #e2e6ea; --pozadi: #f5f7f9; --plocha: #fff;
  --ok: #2e7d4f; --pozor: #b7791f; --chyba: #c0392b;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--pozadi); display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
aside { background: #1d252c; color: #c9d1d8; padding: 16px 10px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
aside .znak { display: flex; gap: 10px; align-items: center; padding: 4px 8px 18px; color: #fff; font-weight: 650; }
aside .znak .logo { width: 34px; height: 34px; border-radius: 9px; background: var(--znacka); display: grid; place-items: center; overflow: hidden; }
aside .znak .logo { position: relative; flex: none; }
aside .znak .logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }   /* i vysoké logo se vejde celé */
aside .znak small { display: block; color: #8b97a2; font-weight: 400; font-size: 11px; }
aside h6 { margin: 16px 10px 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #6f7b86; }
aside a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: inherit; text-decoration: none; }
aside a:hover { background: #27313a; }
aside a.ted { background: var(--znacka); color: #fff; }
aside a .pocet { margin-left: auto; background: #d64545; color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; }
aside svg.i { width: 18px; height: 18px; }
main { padding: 26px 32px 60px; max-width: 1180px; width: 100%; }
h1 { font-size: 22px; margin: 0 0 4px; }
.podtitul { color: var(--tlumeny); margin: 0 0 20px; }
h2 { font-size: 15px; margin: 24px 0 10px; }
.karta { background: var(--plocha); border: 1px solid var(--cara); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.mrizka { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.mrizka2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 1000px) { .mrizka2 { grid-template-columns: 1fr; } }
.cislo { font-size: 28px; font-weight: 700; }
.tlumeny { color: var(--tlumeny); }
.lista-nastroju { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.lista-nastroju .mezera { flex: 1; }
button, .btn { font: inherit; border: 1px solid var(--cara); background: #fff; padding: 8px 14px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; }
button.hlavni, .btn.hlavni { background: var(--znacka); border-color: var(--znacka); color: #fff; font-weight: 600; }
button.ai { background: linear-gradient(135deg, #6b4fd8, #2f8fb8); border: 0; color: #fff; font-weight: 600; }
button:disabled { opacity: .5; cursor: default; }
button svg.i { width: 16px; height: 16px; }
label { display: block; font-size: 12.5px; font-weight: 600; margin: 10px 0 4px; }
input, select, textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--cara); border-radius: 8px; background: #fff; }
input[type=checkbox] { width: auto; }
input[type=color] { padding: 2px; height: 38px; }
table.tab { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--cara); border-radius: 12px; overflow: hidden; }
.tab th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--tlumeny); background: #fafbfc; padding: 9px 12px; border-bottom: 1px solid var(--cara); }
.tab td { padding: 9px 12px; border-bottom: 1px solid var(--cara); vertical-align: middle; }
.tab tr:last-child td { border-bottom: 0; }
.tab tr.klik { cursor: pointer; } .tab tr.klik:hover td { background: #f7f9fb; }
.miniatura { width: 44px; height: 44px; border-radius: 6px; background: #eef1f4 center/contain no-repeat; border: 1px solid var(--cara); }
.prazdne { text-align: center; padding: 38px 20px; color: var(--tlumeny); border: 1.5px dashed var(--cara); border-radius: 12px; background: #fff; }
.prazdne svg.i { width: 40px; height: 40px; color: var(--znacka); opacity: .55; }
.prazdne b { display: block; color: var(--text); margin: 6px 0 4px; font-size: 15px; }
.prazdne button { margin-top: 12px; }
.stitek { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--znacka-svetla); color: var(--znacka); white-space: nowrap; }
.stitek.ok { background: #e3f3e9; color: var(--ok); } .stitek.pozor { background: #fbf0dc; color: var(--pozor); } .stitek.ai { background: #efeafd; color: #5b3fc4; }
.pruvodce li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--cara); list-style: none; }
.pruvodce { padding: 0; margin: 0; }
.pruvodce .fajfka { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--cara); display: grid; place-items: center; flex: none; }
.pruvodce .hotovo .fajfka { background: var(--ok); border-color: var(--ok); color: #fff; }
.pruvodce .hotovo span { color: var(--tlumeny); text-decoration: line-through; }
.pruvodce a { margin-left: auto; }
.upozorneni { background: #fff7e0; border: 1px solid #f3dfa4; color: #6d5200; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
.info-ai { background: #f4f1fe; border: 1px solid #ddd3fb; color: #3f2c8f; padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }
.dropzone { border: 2px dashed #b9c3cc; border-radius: 14px; padding: 36px; text-align: center; background: #fff; cursor: pointer; }
.dropzone.nad { border-color: var(--znacka); background: var(--znacka-svetla); }
.krokovac { display: flex; gap: 6px; margin-bottom: 16px; }
.krokovac span { flex: 1; padding: 8px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--cara); color: var(--tlumeny); font-size: 13px; }
.krokovac span.ted { border-color: var(--znacka); color: var(--znacka); font-weight: 600; }
.krokovac span.hotovo { color: var(--ok); }
dialog { border: 0; border-radius: 14px; padding: 0; width: min(560px, 94vw); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(20,28,36,.45); }
dialog .hlava { padding: 16px 20px; border-bottom: 1px solid var(--cara); font-weight: 650; font-size: 16px; }
dialog .telo { padding: 6px 20px 16px; max-height: 70vh; overflow-y: auto; }
dialog .pata { padding: 12px 20px; border-top: 1px solid var(--cara); display: flex; justify-content: flex-end; gap: 8px; }
.predpis-vstup { display: grid; grid-template-columns: 30px repeat(5, 1fr); gap: 6px; align-items: center; }
.predpis-vstup b { font-size: 12px; color: var(--tlumeny); text-align: center; }
.hlaska { position: fixed; bottom: 20px; right: 20px; background: #1c2228; color: #fff; padding: 12px 16px; border-radius: 10px; z-index: 99; }
.toc { animation: toc 1s linear infinite; display: inline-block; } @keyframes toc { to { transform: rotate(360deg); } }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* volné termíny */
.dny-vyber { display: flex; gap: 10px; flex-wrap: wrap; } .dny-vyber label { display: flex; gap: 4px; align-items: center; font-weight: 500; margin: 0; }
.kalendar { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.kal-den { display: grid; grid-template-columns: 96px 1fr; gap: 8px; align-items: start; border-bottom: 1px solid var(--cara); padding-bottom: 8px; }
.kal-den > b { font-size: 13px; padding-top: 4px; } .kal-den > div { display: flex; flex-wrap: wrap; gap: 5px; }
.slot { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 8px; background: #e3f3e9; color: #2e7d4f; }
.slot--cast { background: #fbf0dc; color: #8a5a00; } .slot--plno { background: #e3ebf5; color: #2b4a73; }
.slot small { font-weight: 500; opacity: .8; } .slot button { border: 0; background: none; padding: 0 0 0 2px; font-size: 14px; line-height: 1; color: inherit; cursor: pointer; opacity: .6; }
.poznamka-zak { display: inline-block; background: #fff7e0; border-left: 3px solid #e0a030; padding: 4px 8px; border-radius: 4px; font-size: 13px; }

/* celé logo (znacka.logoCele) na bílém štítku v tmavém menu */
aside .znak--logotyp { flex-direction: column; align-items: stretch; gap: 6px; }
aside .znak--logotyp img { background: #fff; border-radius: 10px; padding: 9px 14px; height: 52px; width: 100%; object-fit: contain; display: block; }
aside .znak--logotyp small { padding-left: 2px; }

/* termíny: týdenní mřížka na klikání */
table.tyden-mrizka { border-collapse: separate; border-spacing: 4px; width: 100%; min-width: 560px; }
.tyden-mrizka th { font-size: 12.5px; font-weight: 700; text-align: center; padding: 2px 2px 6px; vertical-align: bottom; }
.tyden-mrizka th.dnes { color: var(--znacka); }
.tyden-mrizka th.cas { text-align: right; font-weight: 600; color: var(--tlumeny); width: 44px; padding-right: 4px; vertical-align: middle; }
.tyden-mrizka td { padding: 0; }
.bunka { width: 100%; height: 30px; padding: 0 4px; justify-content: center; border-radius: 7px; font-size: 12px; font-weight: 700; border: 1px dashed #d6dbe0; background: #fff; color: var(--tlumeny); overflow: hidden; white-space: nowrap; }
.bunka--prazdno:hover:not(:disabled) { background: var(--znacka-svetla); border-color: var(--znacka); }
.bunka--prazdno:hover:not(:disabled)::after { content: "+"; color: var(--znacka); font-size: 15px; }
.bunka--volno { background: #e3f3e9; border: 1px solid #a9d8ba; color: #2e7d4f; }
.bunka--volno:hover:not(:disabled) { background: #fde8e6; border-color: #e3a49d; color: #b3261e; }
.bunka--cast { background: #fbf0dc; border: 1px solid #ecd09a; color: #8a5a00; }
.bunka--plno { background: #e3ebf5; border: 1px solid #b4c6df; color: #2b4a73; }
.bunka:disabled { cursor: default; opacity: 1; }
.bunka--minule { opacity: .35 !important; }
.bunka--prazdno.bunka--minule { border-style: solid; background: #f3f5f7; }
button.odkaz-maly { border: 0; background: none; padding: 0; font-size: 11px; font-weight: 600; color: var(--znacka); cursor: pointer; text-decoration: underline; }

/* termíny: poznámky a dialog termínu */
.bunka { position: relative; }
.bunka__pozn { position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: #e0a030; }
button.pozn-dne { display: block; width: 100%; margin: 3px 0 2px; border: 0; background: #fff7e0; border-left: 3px solid #e0a030; border-radius: 4px; padding: 3px 5px; font-size: 11px; font-weight: 600; color: #6b4a00; text-align: left; cursor: pointer; white-space: normal; line-height: 1.25; }
.poznamka-int { display: inline-block; margin-top: 4px; background: #eef1f4; border-left: 3px solid #8b97a2; padding: 4px 8px; border-radius: 4px; font-size: 13px; }
.poznamka-int::before { content: "interní: "; font-weight: 700; color: #66717c; }
.dlg-rezervace { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.dlg-rez { border: 1px solid var(--cara); border-radius: 10px; padding: 10px 12px; background: #fafbfc; }
button.odkaz-cerveny { border: 0; background: none; padding: 6px 0 0; color: var(--chyba); font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; }
