/* Vzhled vychází z webu servistraktoru.cz: černá hlavička, červená akce,
   zelený akcent, písmo Poppins, ostré hrany. */

/* ---------- Písmo Poppins (hostované u nás, žádné volání Google Fonts) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/poppins-400-latin-ext-839d7a13.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+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/poppins-400-latin-d360be31.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/poppins-500-latin-ext-4d29634a.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+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/poppins-500-latin-afc692de.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/poppins-600-latin-ext-d48f7bf1.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+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/poppins-600-latin-765bd6dc.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/poppins-700-latin-ext-56192689.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+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/poppins-700-latin-96729a37.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/poppins-800-latin-ext-99bfd7c9.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+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/poppins-800-latin-b7299acd.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #080808;              /* černá hlavičky a standardních tlačítek */
  --brand-green: #488e1b;      /* zelený akcent z loga (linky, aktivní položka) */
  --bg: #f1f1f1;
  --card: #ffffff;
  --border: #dcdcdc;
  --field: #f0f0f0;
  --text: #080808;
  --muted: #5c5c5c;
  --muted-2: #757575;
  --primary: #d10000;          /* červená z webu */
  --primary-dark: #af0000;
  --primary-soft: #fbe3e3;
  --success: #3f7d17;          /* o stupeň tmavší zelená – bílý text na ní je čitelný */
  --success-dark: #2f6311;
  --success-soft: #e4f1da;
  --danger: #d10000;
  --danger-dark: #a80000;
  --warning: #b45309;
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.18);
  --radius: 2px;
  --radius-sm: 2px;
  --container-pt: 1.25rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Načítací proužek Turbo v barvě značky (výchozí je modrý) */
.turbo-progress-bar { height: 3px; background: var(--brand-green); }

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

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  min-height: 60px;
  padding: 0 1rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.75rem;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.topbar .brand img { display: block; height: 26px; width: auto; }
.topbar .brand-tag {
  display: none;
  padding: 0.15rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  color: #bababa;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.topbar nav { display: flex; gap: 0.25rem; align-items: stretch; }
.topbar nav form { display: flex; align-items: center; margin-left: 0.5rem; }
.topbar nav a.navlink {
  color: #a3a3a3;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0 0.85rem;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  align-items: center;
  transition: color 0.2s;
  display: none; /* na mobilu skryté – odkazy jsou ve spodní liště */
}
.topbar nav a.navlink:hover { color: #fff; }
.topbar nav a.navlink.active { color: #fff; border-bottom-color: var(--brand-green); }
.topbar .btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  min-height: 44px;
  padding: 0 0.9rem;
  font-size: 0.75rem;
}
.topbar .btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }
.topbar .user { color: #bababa; font-size: 0.85rem; display: none; }
.topbar .spacer { flex: 1; }

/* ---------- Spodní navigace (mobil) ---------- */
.bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  justify-content: space-around;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 0 env(safe-area-inset-bottom, 0px);
}
.bottomnav a {
  flex: 1;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0.35rem 0.25rem;
  border-top: 3px solid transparent;
  color: #a3a3a3;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
}
.bottomnav a.active { color: #fff; border-top-color: var(--brand-green); }
.bottomnav .ico { display: block; }

/* ---------- Layout ---------- */
.container { max-width: 720px; margin: 0 auto; padding: var(--container-pt) 1rem 5.5rem; }
.container.narrow { max-width: 420px; }

h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 1rem; font-weight: 800; }
h2 {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.82rem;
  margin: 1.75rem 0 0.75rem;
  color: #303030;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
/* Červený zkosený čtvereček před nadpisem sekce – stejný motiv jako odrážky na webu */
h2::before {
  content: "";
  flex-shrink: 0;
  width: 8px; height: 8px;
  background: var(--primary);
  transform: skewX(-9deg);
}

/* Inline ikony v textu a značky závažnosti upozornění */
svg.ico { vertical-align: -0.15em; }
.sev {
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 0.35rem;
  background: var(--danger);
  transform: skewX(-9deg);
}
.sev.warning { background: var(--warning); }

.page-head { margin-bottom: 1.25rem; }
.page-head h1 { margin-bottom: 0.15rem; }
.page-head p { margin: 0; color: var(--muted); font-weight: 500; }

/* ---------- Přihlášení ---------- */
.login-hero {
  margin: calc(-1 * var(--container-pt)) calc(50% - 50vw) 1.75rem;
  padding: 3.5rem 1.5rem 2.25rem;
  background: var(--ink);
  color: #fff;
  text-align: center;
  /* dvoubarevná linka ze značky: zelená | červená */
  border-bottom: 4px solid;
  border-image: linear-gradient(90deg, var(--brand-green) 50%, var(--primary) 50%) 1;
}
.login-hero img { display: block; width: min(280px, 80%); height: auto; margin: 0 auto 1.75rem; }
.login-hero h1 { margin: 0; font-size: 2.1rem; color: #fff; }
.login-hero p { margin: 0.25rem 0 0; color: #bababa; }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.card.flush { padding: 0; overflow: hidden; }
.card.attention { border-top: 3px solid var(--danger); }
.card.caution { border-top: 3px solid var(--warning); }

/* ---------- Flash ---------- */
/* Bílá karta s barevnou dlaždicí ikony: zelená = povedlo se, červená = chyba */
.flash {
  display: flex;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
}
.flash-ico {
  flex-shrink: 0;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.flash.notice .flash-ico { background: var(--success); }
.flash.alert .flash-ico { background: var(--primary); }
.flash.notice { border-color: var(--success); }
.flash.alert { border-color: var(--primary); }
.flash-body { flex: 1; min-width: 0; align-self: center; padding: 0.8rem 1rem; }
.flash-body strong { font-weight: 700; }
.flash-body ul { margin: 0.35rem 0 0; padding-left: 1.1rem; font-weight: 500; }
.flash-body li + li { margin-top: 0.15rem; }

/* ---------- Forms ---------- */
label { display: block; font-size: 0.82rem; color: #494949; margin: 0.9rem 0 0.35rem; font-weight: 600; }
label.inline { display: flex; align-items: center; gap: 0.5rem; color: var(--text); }
input[type=text], input[type=email], input[type=password], input[type=date],
input[type=datetime-local], input[type=time], input[type=number], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px; /* 16px brání nechtěnému přiblížení na iOS */
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
  background: var(--field);
  color: #303030;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
select { height: 48px; padding-top: 0; padding-bottom: 0; }
/* Datum/čas: kurzor pointer, ať je jasné, že pole otevírá výběr */
input[type=date], input[type=datetime-local], input[type=time] { cursor: pointer; }
input:focus, select:focus, textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(8, 8, 8, 0.12);
}
textarea { min-height: 88px; resize: vertical; }
input[type=checkbox] { width: 1.15rem; height: 1.15rem; accent-color: var(--primary); }

/* ---------- Buttons ---------- */
/* černé = běžná akce, červené = hlavní/kritická akce, zelené = začátek směny */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  transition: transform 0.05s, background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #303030; color: #fff; text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid rgba(8, 8, 8, 0.35); outline-offset: 2px; }
.btn.big { min-height: 64px; padding: 1.05rem 1.5rem; font-size: 1.1rem; font-weight: 700; width: 100%; background: var(--primary); }
.btn.big:hover { background: var(--primary-dark); }
.btn.success, .btn.big.success { background: var(--success); }
.btn.success:hover, .btn.big.success:hover { background: var(--success-dark); }
.btn.danger { background: #fff; color: var(--danger); box-shadow: inset 0 0 0 2px var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn.big.danger { background: var(--danger); color: #fff; box-shadow: none; }
.btn.big.danger:hover { background: var(--danger-dark); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid #bababa; }
.btn.ghost:hover { background: rgba(0, 0, 0, 0.06); color: var(--text); }
.btn.block { width: 100%; }

/* ---------- Clock / hero ---------- */
.clock-hero {
  text-align: center;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  color: #fff;
}
.clock-hero.working { background: var(--success); }
.clock-hero.idle { background: var(--ink); }
.clock-hero .status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.clock-hero.idle .status-line, .clock-hero.idle .sub { color: #bababa; }
.clock-hero.idle .dot { background: #7e7e7e; }
.clock-hero .big-clock { font-size: 3rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.clock-hero .sub { font-size: 0.92rem; margin-top: 0.25rem; }
.dot { width: 9px; height: 9px; background: #fff; display: inline-block; transform: skewX(-9deg); }
.dot.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7);} 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0);} 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0);} }
@media (prefers-reduced-motion: reduce) { .dot.pulse { animation: none; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; white-space: nowrap; }
th { background: var(--ink); color: #fff; font-weight: 600; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: none; }
tr:last-child td { border-bottom: none; }
td.wrap { white-space: normal; }

/* ---------- List rows (mobil-friendly) ---------- */
.list { display: flex; flex-direction: column; }
.list-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.list-row:last-child { border-bottom: none; }
a.list-row, a.list-row:hover { text-decoration: none; }
a.list-row:hover { background: #f7f7f7; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .title { font-weight: 600; }
.list-row .sub { color: var(--muted); font-size: 0.82rem; font-weight: 500; }
.list-row .avatar {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.88rem; flex-shrink: 0;
}

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.22rem 0.6rem; border-radius: var(--radius); font-size: 0.74rem; font-weight: 700; }
.badge.green { background: var(--success-soft); color: var(--success-dark); }
.badge.gray { background: #ececec; color: #303030; }
.badge.blue { background: #ececec; color: #303030; text-transform: uppercase; }
.badge.red { background: var(--primary-soft); color: var(--danger-dark); }
.badge.orange { background: #fdf0d5; color: #8a5200; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 0.5rem; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 0.75rem; text-align: center; }
.stat .num { font-size: 1.8rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat .num.accent { color: var(--success); }
.stat .lbl { color: var(--muted); font-size: 0.76rem; font-weight: 500; margin-top: 0.15rem; }

/* ---------- Helpers ---------- */
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.actions > div { flex: 1 1 140px; min-width: 0; } /* pole formuláře se dělí o šířku řádku */
.actions.end { justify-content: flex-end; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mt { margin-top: 1rem; }
.empty { text-align: center; color: var(--muted); padding: 1.5rem 1rem; }
.empty .ico { display: block; margin: 0 auto 0.5rem; color: #a3a3a3; }
.hint { color: var(--muted); font-size: 0.85rem; margin-top: 0.6rem; display: flex; gap: 0.4rem; align-items: flex-start; }

.geo-status { font-size: 0.85rem; font-weight: 600; margin: 0.7rem 0 0; text-align: center; }
/* špendlík před stavem polohy – maska, aby převzal barvu textu */
.geo-status::before {
  content: "";
  display: inline-block;
  width: 1em; height: 1em;
  margin-right: 0.35em;
  vertical-align: -0.12em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.geo-status[data-state="loading"] { color: var(--muted); }
.geo-status[data-state="ok"] { color: var(--success-dark); }
.geo-status[data-state="error"], .geo-status[data-state="insecure"] { color: var(--danger-dark); }

.geo-help { margin-top: 0.8rem; padding: 0.8rem 0.9rem; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--danger-dark); font-size: 0.9rem; }
.geo-help[hidden] { display: none; }
.geo-help a { display: block; margin-top: 0.4rem; font-weight: 700; color: var(--danger-dark); text-decoration: underline; }

/* ---------- Nápověda ---------- */
.help p { margin: 0; }
.help p + p { margin-top: 0.75rem; }
.help ol, .help ul { margin: 0; padding-left: 1.25rem; }
.help li + li { margin-top: 0.7rem; }
.help ol + p, .help ul + p { margin-top: 0.9rem; }

/* ---------- Kalendář flatpickr (sladění s designem) ---------- */
.flatpickr-calendar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-family: inherit;
  width: 19rem;
  padding-bottom: 0.3rem;
}
.flatpickr-calendar::before, .flatpickr-calendar::after { display: none; } /* skryje šipku-zobáček */

.flatpickr-months { padding-top: 0.4rem; }
.flatpickr-months .flatpickr-month {
  color: var(--text);
  height: 44px;
}
.flatpickr-current-month { font-size: 1rem; font-weight: 700; }
.flatpickr-current-month .flatpickr-monthDropdown-months { font-weight: 700; border-radius: var(--radius); }
.flatpickr-current-month input.cur-year { font-weight: 700; }

/* navigační šipky */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  top: 6px;
  padding: 8px 10px;
  border-radius: var(--radius);
  fill: var(--primary);
}
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover { background: var(--primary-soft); }
.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg { fill: var(--primary); }

.flatpickr-weekdays { margin-top: 0.25rem; }
span.flatpickr-weekday { color: var(--muted-2); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; }

.dayContainer { padding: 0 6px 4px; }
.flatpickr-day {
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  border: none;
  height: 38px; line-height: 38px;
  max-width: 38px;
}
.flatpickr-day:hover { background: #ececec; color: var(--text); }
.flatpickr-day.today { box-shadow: inset 0 0 0 2px var(--brand-green); color: var(--success-dark); }
.flatpickr-day.today:hover { background: var(--success-soft); }
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: none;
}
.flatpickr-day.flatpickr-disabled, .flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: var(--muted-2); opacity: 0.5; }

/* čas */
.flatpickr-time { border-top: 1px solid var(--border); margin-top: 0.3rem; height: 42px; }
.flatpickr-time input { font-size: 1rem; font-weight: 700; color: var(--text); }
.flatpickr-time input:hover, .flatpickr-time input:focus { background: #ececec; }
.flatpickr-time .flatpickr-time-separator { color: var(--muted); }
.flatpickr-time .numInputWrapper:hover { background: #ececec; }

/* ---------- Desktop ---------- */
@media (min-width: 600px) {
  :root { --container-pt: 1.75rem; }
  .topbar { min-height: 68px; padding: 0 1.5rem; }
  .topbar .brand img { height: 30px; }
  .topbar .brand-tag { display: inline-block; }
  .topbar nav a.navlink { display: inline-flex; }
  .container { padding-bottom: 2rem; }
  .stat .num { font-size: 2.2rem; }
  .bottomnav { display: none; }
}
