/* SalonPOS — klidný prémiový vzhled: béžová, bílá, tmavě zelená. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonty/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonty/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --pozadi: #F8F7F4;
  --karta: #FFFFFF;
  --bezova: #EDE3D7;
  --bezova-svetla: #F4EEE6;
  --text: #202521;
  --text2: #737873;
  --zelena: #176B4D;
  --zelena-tmava: #124734;
  --zelena-panel: #15402F;
  --zelena-svetla: #E8F3EC;
  --cervena: #C43D3D;
  --cervena-svetla: #FBECEC;
  --oranzova: #A0661A;
  --oranzova-svetla: #FBF2E4;
  --okraj: #E6E4DF;
  --klavesa: #F2F0EB;
  --radius: 14px;
  --radius-velky: 20px;
  --stin: 0 1px 2px rgba(32, 37, 33, .05);
  --bok: 248px;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--pozadi); color: var(--text);
  font: 15px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--zelena); }
h1 { font-size: 28px; line-height: 1.15; margin: 0; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 19px; margin: 0 0 12px; letter-spacing: -.01em; font-weight: 650; }
h3 { font-size: 15px; margin: 0 0 8px; font-weight: 650; }
.ikona { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ikona.velka { width: 26px; height: 26px; }
.tlumene { color: var(--text2); }
.male { font-size: 13px; }
.skryt { display: none !important; }
.castka { font-variant-numeric: tabular-nums; white-space: nowrap; }
.chyba-text { color: var(--cervena); }
.ok-text { color: var(--zelena); }
.radek { display: flex; align-items: center; gap: 10px; }
.radek.mezera { justify-content: space-between; }
.sloupec { display: flex; flex-direction: column; gap: 12px; }
.mrizka { display: grid; gap: 14px; }
.roztahni { flex: 1; min-width: 0; }

/* --- tlačítka a pole ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--okraj);
  background: var(--karta); font-weight: 600; transition: background .12s, transform .06s;
  user-select: none; white-space: nowrap;
}
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primarni { background: var(--zelena); border-color: var(--zelena); color: #fff; }
.btn.primarni:hover:not(:disabled) { background: #135C42; }
.btn.svetla { background: var(--zelena-svetla); border-color: #CFE5D7; color: var(--zelena); }
.btn.bezova { background: var(--bezova); border-color: var(--bezova); }
.btn.cervena { background: var(--cervena); border-color: var(--cervena); color: #fff; }
.btn.cerveny-text { color: var(--cervena); }
.btn.duch { background: transparent; border-color: transparent; }
.btn.duch:hover { background: rgba(32,37,33,.05); }
.btn.velke { min-height: 64px; font-size: 20px; border-radius: 16px; }
.btn.male-tl { min-height: 40px; padding: 0 12px; font-size: 14px; }
.btn.plna { width: 100%; }

.pole { display: flex; flex-direction: column; gap: 6px; }
.pole > span, .pole > label:first-child { font-size: 13px; font-weight: 600; color: var(--text2); }
.vstup, select.vstup, textarea.vstup {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--okraj);
  background: #fff; outline: none; transition: border-color .12s, box-shadow .12s;
}
textarea.vstup { min-height: 80px; resize: vertical; }
.vstup:focus { border-color: var(--zelena); box-shadow: 0 0 0 3px rgba(23,107,77,.15); }
.vstup.chybne { border-color: var(--cervena); }
.napoveda { font-size: 13px; color: var(--text2); }
.prepinac { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.prepinac input { appearance: none; width: 46px; height: 28px; border-radius: 99px; background: #D9D6CF; position: relative; flex: none; transition: background .15s; cursor: pointer; margin: 0; }
.prepinac input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.prepinac input:checked { background: var(--zelena); }
.prepinac input:checked::after { left: 21px; }
.prepinac input:focus-visible { outline: 3px solid rgba(23,107,77,.35); }

.cipy { display: flex; flex-wrap: wrap; gap: 8px; }
.cip {
  min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--okraj); background: #fff;
  font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px;
}
.cip.aktivni { background: var(--zelena); color: #fff; border-color: var(--zelena); }

.karta { background: var(--karta); border: 1px solid var(--okraj); border-radius: var(--radius-velky); padding: 20px; box-shadow: var(--stin); }
.karta.mensi { padding: 16px; border-radius: var(--radius); }

.stitek { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--klavesa); color: var(--text2); white-space: nowrap; }
.stitek.zeleny { background: var(--zelena-svetla); color: var(--zelena); }
.stitek.cerveny { background: var(--cervena-svetla); color: var(--cervena); }
.stitek.oranzovy { background: var(--oranzova-svetla); color: var(--oranzova); }
.stitek .tecka { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* --- rozvržení aplikace --------------------------------------------------- */
.aplikace { display: grid; grid-template-columns: var(--bok) 1fr; min-height: 100vh; min-height: 100dvh; }
.bok {
  background: var(--zelena-panel); color: #E9F1EC; display: flex; flex-direction: column; padding: 22px 14px;
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
  background-image: radial-gradient(120% 60% at 0% 100%, rgba(237,227,215,.10), transparent 60%);
}
.logo { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; color: #fff; text-decoration: none; }
.logo svg { width: 38px; height: 38px; }
.logo b { font-size: 21px; letter-spacing: -.01em; display: block; line-height: 1.1; }
.logo small { font-size: 12.5px; opacity: .75; }
.navigace { display: flex; flex-direction: column; gap: 4px; }
.navigace a, .navigace button {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 12px;
  color: #DDE8E1; text-decoration: none; font-weight: 550; background: none; border: 0; text-align: left; width: 100%;
}
.navigace a:hover, .navigace button:hover { background: rgba(255,255,255,.07); }
.navigace a.aktivni { background: var(--bezova); color: var(--zelena-panel); }
.navigace .oddelovac { height: 1px; background: rgba(255,255,255,.12); margin: 10px 8px; }
.bok-dole { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.obsluha { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.06); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: var(--bezova); color: var(--zelena-panel); flex: none;
}
.obsluha b { display: block; color: #fff; font-size: 15px; }
.obsluha small { opacity: .7; }
.bok .btn { background: rgba(255,255,255,.08); border-color: transparent; color: #fff; justify-content: flex-start; }
.bok .btn:hover { background: rgba(255,255,255,.14); }

.hlavni { min-width: 0; padding: 24px 28px 40px; }
.hlavicka { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.hlavicka h1 { margin-right: auto; }
.hlavicka .cas { color: var(--text2); font-weight: 550; }

.mobilni-lista, .spodni-nav { display: none; }

/* --- přihlášení a průvodce ----------------------------------------------- */
.uvod { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(320px, 420px) 1fr; }
.uvod-bok { background: var(--zelena-panel); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between;
  background-image: radial-gradient(140% 70% at 0% 100%, rgba(237,227,215,.14), transparent 60%); }
.uvod-bok .logo { padding: 0; }
.uvod-bok .logo svg { width: 52px; height: 52px; }
.uvod-bok .logo b { font-size: 30px; }
.uvod-bok .logo small { font-size: 15px; }
.uvod-obsah { padding: 48px; display: flex; flex-direction: column; justify-content: center; max-width: 920px; width: 100%; margin: 0 auto; }
.karty-lidi { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 22px 0; }
.karta-cloveka {
  background: #fff; border: 1px solid var(--okraj); border-radius: 18px; padding: 22px 16px; display: flex; flex-direction: column;
  align-items: center; gap: 12px; font-weight: 600; font-size: 16px; min-height: 150px; justify-content: center;
}
.karta-cloveka:hover { border-color: var(--zelena); }
.karta-cloveka .avatar { width: 64px; height: 64px; font-size: 22px; }
.karta-cloveka small { font-weight: 500; color: var(--text2); font-size: 13px; }
.formular { max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.kroky { display: flex; gap: 6px; margin-bottom: 24px; }
.kroky span { height: 5px; flex: 1; border-radius: 99px; background: var(--okraj); }
.kroky span.hotovo { background: var(--zelena); }
.pruvodce { max-width: 640px; }
.pruvodce .mrizka { grid-template-columns: 1fr 1fr; }
.pruvodce .cela { grid-column: 1 / -1; }

/* PIN */
.pin-okno { text-align: center; }
.pin-tecky { display: flex; justify-content: center; gap: 14px; margin: 18px 0 22px; }
.pin-tecky span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--zelena); }
.pin-tecky span.plna { background: var(--zelena); }
.pin-klavesnice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; margin: 0 auto; }
.pin-klavesnice button { min-height: 64px; border-radius: 16px; border: 0; background: var(--klavesa); font-size: 24px; font-weight: 600; }
.pin-klavesnice button:active { background: var(--bezova); }

/* --- pokladna ------------------------------------------------------------ */
.zalozky { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: #EFECE6; border-radius: 16px; margin-bottom: 16px; }
.zalozky button { min-height: 52px; border: 0; border-radius: 12px; background: transparent; font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text); }
.zalozky button.aktivni { background: var(--zelena); color: #fff; box-shadow: var(--stin); }
.pokladna { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); gap: 18px; align-items: start; }
.displej {
  background: var(--zelena-svetla); border-radius: var(--radius-velky); padding: 18px 22px 20px; text-align: right; margin-bottom: 14px;
  min-height: 132px; display: flex; flex-direction: column; justify-content: flex-end;
}
.displej .popis { display: flex; justify-content: space-between; align-items: center; color: var(--zelena); font-weight: 600; font-size: 14px; text-align: left; gap: 10px; }
.displej .popis button { background: none; border: 0; color: inherit; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; text-align: left; min-height: 36px; }
.displej .hodnota { font-size: clamp(40px, 5.4vw, 64px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.displej .hodnota.prazdna { color: #9FB9AA; }
.klavesnice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.klavesnice button {
  min-height: 74px; border-radius: 16px; border: 0; background: var(--klavesa); font-size: 28px; font-weight: 600;
  box-shadow: inset 0 -2px 0 rgba(32,37,33,.06); transition: background .08s;
}
.klavesnice button:active { background: #E2DED6; }
.klavesnice button.bezova { background: var(--bezova); }
.rychle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.rychle button { min-height: 52px; border-radius: 12px; border: 1px solid var(--okraj); background: #fff; font-weight: 600; font-size: 15px; padding: 4px; line-height: 1.15; }
.rychle button small { display: block; font-size: 11.5px; font-weight: 500; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ucet { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
.ucet h2 { margin: 0; }
.polozky { display: flex; flex-direction: column; gap: 8px; max-height: 34vh; overflow: auto; }
.polozka { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--okraj); border-radius: 14px; background: #fff; }
.polozka .ik { width: 40px; height: 40px; border-radius: 10px; background: var(--bezova-svetla); display: grid; place-items: center; color: #8A6A45; flex: none; }
.polozka b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.polozka small { color: var(--text2); }
.polozka.rozpracovana { border-style: dashed; background: #FCFCFA; }
.polozka .mnozstvi { display: flex; align-items: center; gap: 4px; }
.polozka .mnozstvi button, .ikonove { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--okraj); background: #fff; display: grid; place-items: center; padding: 0; flex: none; }
.prazdny-ucet { padding: 22px; text-align: center; color: var(--text2); border: 1px dashed var(--okraj); border-radius: 14px; }
.soucet { display: flex; justify-content: space-between; align-items: center; background: var(--zelena-svetla); border-radius: 16px; padding: 16px 18px; }
.soucet span { font-weight: 650; font-size: 17px; }
.soucet b { font-size: 30px; letter-spacing: -.02em; }
.platebni { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.platebni > .btn { min-width: 0; white-space: normal; padding-left: 8px; padding-right: 8px; }
.platebni .btn.velke { min-height: 72px; }
.platebni .btn.zaplatit { grid-column: 1 / -1; min-height: 80px; font-size: 22px; }
.vyber-platby { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.vyber-platby .btn { min-height: 130px; flex-direction: column; gap: 8px; font-size: 24px; font-weight: 700; border-radius: 18px; }
.vyber-platby .btn small { font-size: 12px; font-weight: 600; opacity: .8; }
.vyber-platby .btn svg { width: 36px; height: 36px; }
.vyber-platby .btn:only-child { grid-column: 1 / -1; }
.doplnky { display: flex; gap: 8px; flex-wrap: wrap; }
.doplnky .btn { min-height: 40px; font-size: 14px; padding: 0 12px; color: var(--text2); }

.cenik-nastroje { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cenik-nastroje .vstup { flex: 1; min-width: 180px; }
.dlazdice { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.dlazdice button {
  min-height: 104px; border-radius: 16px; border: 1px solid var(--okraj); background: #fff; padding: 14px; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px; position: relative;
}
.dlazdice button:hover { border-color: var(--zelena); }
.dlazdice button b { font-size: 15px; line-height: 1.25; }
.dlazdice button .cena { font-weight: 700; font-size: 17px; color: var(--zelena); }
.dlazdice .hvezda { position: absolute; top: 10px; right: 10px; color: #C9A46A; }
.dlazdice .pocet { position: absolute; top: 10px; right: 10px; background: var(--zelena); color: #fff; border-radius: 99px; min-width: 26px; height: 26px; display: grid; place-items: center; font-size: 13px; font-weight: 700; padding: 0 7px; }

/* --- okna ----------------------------------------------------------------- */
.prekryv { position: fixed; inset: 0; background: rgba(20, 30, 24, .42); display: grid; place-items: center; z-index: 50; padding: 16px; animation: objev .14s ease-out; }
@keyframes objev { from { opacity: 0; } }
.okno { background: #fff; border-radius: 22px; width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.okno.siroke { width: min(820px, 100%); }
.okno-hlava { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.okno-hlava h2 { margin: 0; }
.okno-paticka { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.velka-castka { font-size: 44px; font-weight: 700; letter-spacing: -.03em; text-align: center; margin: 6px 0 14px; }
.bankovky { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.bankovky button { min-height: 56px; border-radius: 12px; border: 1px solid var(--okraj); background: #fff; font-weight: 650; font-size: 17px; }
.klavesnice.mala { gap: 8px; margin-bottom: 12px; }
.klavesnice.mala button { min-height: 56px; font-size: 24px; }
.dal-vratit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.dal-vratit.ctyri { grid-template-columns: repeat(4, 1fr); }
.dal-vratit > div { min-height: 64px; border-radius: 14px; border: 1.5px solid var(--okraj); background: var(--pozadi); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 4px; }
.dal-vratit button { min-height: 72px; border-radius: 14px; border: 1.5px solid var(--okraj); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 4px; }
.dal-vratit .dal { font-size: 19px; font-weight: 700; }
.dal-vratit .vr { font-size: 13px; color: var(--text2); font-weight: 600; white-space: nowrap; }
@media (max-width: 420px) { .dal-vratit { gap: 6px; } .dal-vratit .dal { font-size: 17px; } .dal-vratit .vr { font-size: 11.5px; letter-spacing: -.01em; } }
.dal-vratit button.vybrano { border-color: var(--zelena); background: var(--zelena-svetla); box-shadow: 0 0 0 1.5px var(--zelena) inset; }
.dal-vratit button.vybrano .vr { color: var(--zelena); }
.jina-castka { margin-bottom: 12px; }
.jina-castka summary { cursor: pointer; font-weight: 600; color: var(--zelena); padding: 8px 2px; min-height: 40px; }
.jina-castka form { margin-top: 6px; }
.vratit.velke b { font-size: 32px; }
.vratit { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--bezova-svetla); font-weight: 600; }
.vratit b { font-size: 26px; }
.qr-obal { display: grid; place-items: center; padding: 16px; background: #fff; border: 1px solid var(--okraj); border-radius: 16px; margin: 10px auto; width: fit-content; }
.qr-obal img, .qr-obal canvas { display: block; }

.hotovo { text-align: center; }
.hotovo .fajfka { width: 86px; height: 86px; border-radius: 50%; background: var(--zelena); color: #fff; display: grid; place-items: center; margin: 6px auto 14px; }
.hotovo .fajfka svg { width: 46px; height: 46px; stroke-width: 2.6; }
.hotovo dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; text-align: left; background: var(--pozadi); border-radius: 14px; padding: 14px 16px; margin: 16px 0; }
.hotovo dt { color: var(--text2); }
.hotovo dd { margin: 0; font-weight: 600; text-align: right; }

.toast-obal { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--text); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 550; box-shadow: 0 8px 24px rgba(0,0,0,.2); max-width: min(560px, calc(100vw - 32px)); animation: objev .15s; }
.toast.chyba { background: var(--cervena); }
.toast.ok { background: var(--zelena); }

.pruh { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; margin-bottom: 14px; font-weight: 550; }
.pruh.oranzovy { background: var(--oranzova-svetla); color: #7A4C10; }
.pruh.cerveny { background: var(--cervena-svetla); color: var(--cervena); }
.pruh.zeleny { background: var(--zelena-svetla); color: var(--zelena); }
.pruh .btn { margin-left: auto; }

/* --- administrace --------------------------------------------------------- */
.dlazdice-cisel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.cislo { background: #fff; border: 1px solid var(--okraj); border-radius: 18px; padding: 16px 18px; }
.cislo .nadpis { display: flex; align-items: center; gap: 8px; color: var(--text2); font-weight: 600; font-size: 13.5px; }
.cislo .nadpis .ikona { width: 18px; height: 18px; color: #8A6A45; }
.cislo .hodnota { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; }
.cislo .zmena { font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.cislo .zmena.nahoru { color: var(--zelena); }
.cislo .zmena.dolu { color: var(--cervena); }
.prehled-mrizka { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; }
.graf svg { width: 100%; height: auto; display: block; }
.graf text { font-size: 11px; fill: var(--text2); }
.legenda { display: flex; flex-direction: column; gap: 10px; }
.legenda div { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.legenda i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.legenda b { margin-left: auto; }
.prouzek { height: 7px; border-radius: 99px; background: var(--klavesa); overflow: hidden; margin-top: 6px; }
.prouzek i { display: block; height: 100%; background: var(--zelena); border-radius: 99px; }
.seznam-radky { display: flex; flex-direction: column; }
.seznam-radky > * { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--okraj); }
.seznam-radky > *:last-child { border-bottom: 0; }
.obdobi { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.tabulka-obal { overflow-x: auto; background: #fff; border: 1px solid var(--okraj); border-radius: 18px; }
table.tabulka { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tabulka th { text-align: left; font-size: 12.5px; color: var(--text2); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--okraj); white-space: nowrap; }
.tabulka td { padding: 13px 14px; border-bottom: 1px solid #F0EEE9; }
.tabulka tr:last-child td { border-bottom: 0; }
.tabulka tbody tr { cursor: pointer; }
.tabulka tbody tr:hover { background: #FAFAF7; }
.tabulka .vpravo { text-align: right; }
.filtry { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: flex-end; }
.filtry .vstup { width: auto; min-width: 150px; }
.filtry .hledat { flex: 1; min-width: 200px; }

.karty-zam { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.karta-zam .hlava { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.karta-zam dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 0; font-size: 14px; }
.karta-zam dt { color: var(--text2); }
.karta-zam dd { margin: 0; font-weight: 600; text-align: right; }
.karta-zam.neaktivni { opacity: .6; }

.nastaveni-karty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nastaveni-karty button { text-align: left; background: #fff; border: 1px solid var(--okraj); border-radius: 18px; padding: 18px; min-height: 140px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.nastaveni-karty button:hover { border-color: var(--zelena); }
.nastaveni-karty .ik { width: 44px; height: 44px; border-radius: 12px; background: var(--bezova-svetla); color: #8A6A45; display: grid; place-items: center; }
.nastaveni-karty b { font-size: 16px; }
.nastaveni-karty small { color: var(--text2); font-size: 13px; line-height: 1.35; }
.nastaveni-karty .stitek { position: absolute; top: 16px; right: 16px; }
.nastaveni-karty .zvyraznena { background: var(--zelena-svetla); border-color: #CFE5D7; }
details.rozbalit { border: 1px solid var(--okraj); border-radius: 14px; padding: 0 16px; background: #fff; }
details.rozbalit > summary { min-height: 52px; display: flex; align-items: center; font-weight: 600; cursor: pointer; list-style: none; }
details.rozbalit > summary::after { content: "›"; margin-left: auto; transform: rotate(90deg); font-size: 20px; color: var(--text2); }
details.rozbalit[open] > summary::after { transform: rotate(-90deg); }
details.rozbalit > div { padding-bottom: 16px; }
.zpet { display: inline-flex; align-items: center; gap: 6px; color: var(--text2); background: none; border: 0; font-weight: 600; min-height: 44px; padding: 0; margin-bottom: 6px; }
.dvojice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kod { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all; }
.stav-site { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 99px; background: var(--zelena-svetla); color: var(--zelena); }
.stav-site.offline { background: var(--oranzova-svetla); color: var(--oranzova); }
.stav-site .tecka { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* náhled účtenky na obrazovce */
.uctenka-nahled { background: #fff; border: 1px solid var(--okraj); border-radius: 12px; padding: 16px; font-size: 13px; max-width: 340px; margin: 0 auto; }

/* --- telefon a menší tablet --------------------------------------------- */
@media (max-width: 1180px) {
  :root { --bok: 210px; }
  .hlavni { padding: 20px; }
  .klavesnice button { min-height: 64px; }
  .nastaveni-karty { grid-template-columns: repeat(2, 1fr); }
  .dlazdice-cisel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .aplikace { grid-template-columns: 1fr; }
  .bok { display: none; }
  .mobilni-lista { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--zelena-panel); color: #fff; position: sticky; top: 0; z-index: 20; }
  .mobilni-lista .logo { padding: 0; }
  .mobilni-lista .logo svg { width: 30px; height: 30px; }
  .mobilni-lista .logo b { font-size: 17px; }
  .mobilni-lista .avatar { width: 36px; height: 36px; font-size: 13px; margin-left: auto; }
  .mobilni-lista button { background: none; border: 0; color: #fff; padding: 0; display: flex; align-items: center; gap: 8px; }
  .spodni-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--okraj); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
  .spodni-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; min-height: 58px; font-size: 11.5px; font-weight: 600; color: var(--text2); text-decoration: none; justify-content: center; }
  .spodni-nav a.aktivni { color: var(--zelena); }
  .hlavni { padding: 16px 16px 96px; }
  .hlavicka h1 { font-size: 23px; }
  .pokladna { grid-template-columns: minmax(0, 1fr); }
  .ucet { position: static; }
  .polozky { max-height: none; }
  .prehled-mrizka, .dvojice { grid-template-columns: 1fr; }
  .uvod { grid-template-columns: 1fr; }
  .uvod-bok { padding: 22px 20px; }
  .uvod-bok .logo svg { width: 40px; height: 40px; }
  .uvod-bok .logo b { font-size: 23px; }
  .uvod-bok .skryt-mobil { display: none; }
  .uvod-obsah { padding: 22px 16px 40px; justify-content: flex-start; }
  .pruvodce .mrizka { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nastaveni-karty, .dlazdice-cisel { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cislo { padding: 13px; }
  .cislo .hodnota { font-size: 21px; }
  .nastaveni-karty button { min-height: 120px; padding: 14px; }
  .klavesnice { gap: 8px; }
  .klavesnice button { min-height: 60px; font-size: 25px; }
  .rychle { grid-template-columns: repeat(2, 1fr); }
  .karty-lidi { grid-template-columns: repeat(2, 1fr); }
  .okno { padding: 18px; border-radius: 18px; }
  .velka-castka { font-size: 36px; }
  .tabulka .jen-siroke { display: none; }
  .filtry .vstup { min-width: 0; flex: 1 1 140px; }
}
@media (max-width: 380px) {
  .nastaveni-karty { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* volby v čipech (radio) */
.cip input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.cip { position: relative; cursor: pointer; }
.cip:has(input:checked) { background: var(--zelena); color: #fff; border-color: var(--zelena); }
.cip:has(input:focus-visible) { outline: 3px solid rgba(23,107,77,.35); }

/* telefon: lišta s částkou nad spodní navigací */
.mobil-soucet { display: none; }
@media (max-width: 900px) {
  .mobil-soucet:not(.skryt) {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0;
    bottom: calc(58px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--okraj); padding: 10px 16px; z-index: 19;
    box-shadow: 0 -6px 20px rgba(32,37,33,.06);
  }
  .mobil-soucet span { font-size: 13px; color: var(--text2); font-weight: 600; line-height: 1.2; }
  .mobil-soucet b { font-size: 22px; color: var(--text); }
  .hlavni:has(.mobil-soucet:not(.skryt)) { padding-bottom: 170px; }
}
.pokladna > * { min-width: 0; }
