/* AVESYS HUB – štýly podľa dizajn systému AVESYS (tokeny = otvorimevam-web/src/styles/tokens.css).
   Rozloženie: tmavý bočný panel + svetlá pracovná plocha; pod 760 px tmavá hlavička a spodná lišta. */

@font-face { font-family: "Exo 2"; src: url("../fonts/exo2-light.90a36ab97f3f.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("../fonts/exo2-regular.5950799cbada.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("../fonts/exo2-medium.ccebc5c25199.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("../fonts/exo2-semibold.7ef9afcea8e0.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("../fonts/exo2-bold.f5d6bf20466d.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("../fonts/exo2-extrabold.55c569157b8d.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

/* ---------- tokeny dizajn systému ---------- */
:root {
  --ink-900: #0E1114; --ink-800: #1B2026; --ink-700: #2C333B; --ink-600: #48515B; --ink-500: #6A737D;
  --ink-400: #949CA5; --ink-300: #C3C9CF; --ink-200: #DFE3E7; --ink-100: #EEF1F3; --ink-50: #F6F7F8; --white: #FFFFFF;
  --blue-700: #23476B; --blue-600: #2B5782; --blue-500: #336699; --blue-400: #4D82B8; --blue-100: #DCE7F2; --blue-50: #EEF3F9;
  --hub-blue: #8FB3D9;
  --cta-btn: #D04500; --cta-btn-hover: #B83A00;
  --success-600: #1E7F4E; --success-100: #DDF2E6; --warning-600: #9A6700; --warning-100: #FBEFCF;
  --danger-600: #C4302B; --danger-100: #FBE1E0; --info-600: #1F6F7A; --info-100: #DDF0F2;

  --radius-xs: 3px; --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-pill: 999px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --shadow-1: 0 1px 2px rgba(14,17,20,.06), 0 1px 1px rgba(14,17,20,.04);
  --shadow-2: 0 4px 14px rgba(14,17,20,.08), 0 1px 3px rgba(14,17,20,.06);
  --shadow-3: 0 16px 40px rgba(14,17,20,.12), 0 4px 10px rgba(14,17,20,.06);
  --font-sans: "Exo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* sémantické premenné */
  --side-bg: var(--ink-900); --side-fg: var(--ink-300); --side-muted: var(--ink-500); --side-active: var(--ink-800); --side-line: #1F252C;
  --bg: #F3F5F7; --surface: var(--white); --surface-2: var(--ink-100); --line: var(--ink-200); --line-strong: var(--ink-300);
  --fg: var(--ink-900); --fg-2: var(--ink-700); --muted: var(--ink-500);
  --accent: var(--blue-500); --accent-hover: var(--blue-600); --accent-text: var(--blue-600); --accent-tint: var(--blue-50); --on-accent: var(--white);
  --cta: var(--cta-btn); --cta-hover: var(--cta-btn-hover); --on-cta: var(--white);
  --outline: var(--ink-900); --focus-ring: 0 0 0 3px rgba(51,102,153,.35);
  --ok: var(--success-600); --ok-bg: var(--success-100); --warn: var(--warning-600); --warn-bg: var(--warning-100);
  --bad: var(--danger-600); --bad-bg: var(--danger-100); --info: var(--info-600); --info-bg: var(--info-100);
  --bottomnav-h: 64px;
  color-scheme: light;
}
/* Tmavý režim manuál nedefinuje – hodnoty sú odvodené (schválený návrh). Bočný panel ostáva tmavý. */
@media (prefers-color-scheme: dark) {
  :root {
    --side-bg: #0A0C0F; --side-active: var(--ink-800); --side-line: #181D22;
    --bg: #111418; --surface: #181C21; --surface-2: #20262D; --line: #2A3138; --line-strong: #3A434C;
    --fg: var(--ink-100); --fg-2: var(--ink-300); --muted: var(--ink-400);
    --accent: var(--blue-400); --accent-hover: #5E90C4; --accent-text: var(--hub-blue); --accent-tint: #1A2A3B;
    --cta-hover: #E0560F;
    --outline: var(--ink-300); --focus-ring: 0 0 0 3px rgba(77,130,184,.45);
    --ok: #5BC48C; --ok-bg: #15301F; --warn: #E0B341; --warn-bg: #33290F; --bad: #F0736E; --bad-bg: #3A1A19; --info: #5FC0CC; --info-bg: #12303A;
    --shadow-1: 0 1px 2px rgba(0,0,0,.4); --shadow-3: 0 16px 40px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}

/* ---------- základ ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-sans); font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-text); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.ic { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); font-size: 13px; }
.error { color: var(--bad); font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--surface); color: var(--fg); padding: 8px 12px; border-radius: var(--radius-sm); }
.skip:focus { top: 8px; }

/* ---------- logo ---------- */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img, .brand .brand-hub { height: 22px; width: auto; display: block; flex: none; }

/* ---------- rozloženie ---------- */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh;
  background: linear-gradient(to right, var(--side-bg) 236px, transparent 236px); }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: auto; background: var(--side-bg); color: var(--side-fg);
  display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; }
.side .brand { padding: 6px 10px 22px; }
.side .brand:focus-visible { outline-color: var(--hub-blue); }
.nav-h { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--side-muted); padding: 14px 10px 6px; font-weight: 600; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; color: var(--side-fg); padding: 9px 10px; border-radius: 8px;
  text-decoration: none; font-weight: 500; border: 0; background: transparent; text-align: left; cursor: pointer; }
.nav-item .ic { opacity: .8; }
a.nav-item:hover, button.nav-item:hover { background: var(--side-active); color: var(--white); }
.nav-item[aria-current="page"] { background: var(--side-active); color: var(--white); box-shadow: inset 3px 0 0 var(--blue-400); }
.nav-item[aria-current="page"] .ic { opacity: 1; color: var(--hub-blue); }
.nav-item.is-soon { color: var(--side-muted); cursor: default; font-size: 14px; gap: 10px; line-height: 1.3; }
.nav-item:focus-visible { outline-color: var(--hub-blue); outline-offset: -2px; }
.soon { margin-left: auto; flex: none; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--side-line);
  border-radius: var(--radius-pill); padding: 1px 6px; color: var(--ink-400); }
.side-foot { margin-top: auto; border-top: 1px solid var(--side-line); padding: 14px 8px 2px; display: grid; gap: 10px; }
.side-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side-user b { display: block; font-size: 13px; color: var(--white); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user span { font-size: 12px; color: var(--ink-400); }
.side-links { display: flex; flex-wrap: wrap; gap: 2px; }
.side-links form { margin: 0; }
.side-links .nav-item { width: auto; padding: 6px 8px; font-size: 13px; gap: 6px; }
.side-links .ic { width: 15px; height: 15px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-600); color: var(--white); display: grid; place-items: center;
  font-weight: 700; font-size: 13px; flex: none; }
.m-avatar { display: none; text-decoration: none; }
.net { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-400); padding: 4px 10px 8px; }
.net i { width: 7px; height: 7px; border-radius: 50%; background: #5BC48C; flex: none; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 12px 28px; min-height: 62px;
  border-bottom: 1px solid var(--line); background: var(--surface); }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; min-width: 0; flex: 1; }
.crumbs a { color: var(--accent-text); font-weight: 500; text-decoration: none; white-space: nowrap; }
.crumbs a:hover { text-decoration: underline; }
.crumbs b { color: var(--fg); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-head { display: none; }
.gsearch { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1.5px solid transparent; border-radius: var(--radius-sm);
  height: 40px; padding: 0 12px; width: 300px; color: var(--muted); margin: 0; }
.gsearch:focus-within { border-color: var(--fg); box-shadow: var(--focus-ring); }
.gsearch input { border: 0; background: transparent; outline: none; width: 100%; color: var(--fg); min-width: 0; }
.gsearch .ic { width: 16px; height: 16px; }
.icon-btn { border: 1.5px solid var(--line-strong); background: transparent; width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: grid; place-items: center; cursor: pointer; color: var(--fg-2); flex: none; text-decoration: none; }
.icon-btn[aria-disabled="true"] { cursor: default; }
.content { flex: 1; padding: 26px 28px 40px; max-width: 1280px; width: 100%; }
.bottomnav { display: none; }

/* ---------- hlavička stránky ---------- */
.page-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.page-h h1, .d-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.page-h p { margin: 4px 0 0; color: var(--muted); }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); font-weight: 700; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- tlačidlá ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
  font-weight: 600; letter-spacing: .01em; cursor: pointer; border: 1.5px solid transparent; white-space: nowrap; font-size: 16px; line-height: 1;
  text-decoration: none; transition: background .12s, border-color .12s, transform .12s; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 17px; height: 17px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 15px; }
.btn-sm .ic { width: 15px; height: 15px; }
.btn-cta { background: var(--cta); border-color: var(--cta); color: var(--on-cta); }
.btn-cta:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn-brand { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-brand:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-dark { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--outline); }
.btn-outline:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--accent-text); padding-inline: 8px; }
.btn-ghost:hover { background: var(--accent-tint); }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent-text); cursor: pointer; text-decoration: underline; }

/* ---------- štítky, filtre, čipy ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--radius-xs); font-size: 12px;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; line-height: 1; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-neutral { background: var(--surface-2); color: var(--fg-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius-pill);
  height: 32px; padding: 0 12px; font-size: 14px; font-weight: 500; color: var(--fg); white-space: nowrap; text-decoration: none; }
.tag:hover { background: var(--surface-2); }
.tag[aria-current="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: var(--radius-xs); font-size: 12px; font-weight: 500;
  background: var(--surface-2); color: var(--fg-2); white-space: nowrap; }
.chip .ic { width: 13px; height: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.job-no { font-family: var(--font-mono); font-weight: 500; color: var(--accent-text); font-size: 13px; background: var(--accent-tint);
  padding: 3px 8px; border-radius: var(--radius-sm); white-space: nowrap; }
.date-no { font-weight: 600; font-size: 13px; background: var(--surface-2); color: var(--fg-2); padding: 3px 8px; border-radius: var(--radius-sm); white-space: nowrap; }
.tile { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--ink-900); color: var(--white); display: grid; place-items: center; flex: none; }
.tile .ic { width: 20px; height: 20px; }

/* ---------- panely a riadky ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); min-width: 0; }
.panel + .panel { margin-top: 18px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-h h2 { font-size: 15px; font-weight: 700; }
.panel-h .count { color: var(--muted); font-weight: 500; font-size: 13px; }
.panel-tools { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 0; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 12px 18px; align-items: center; color: inherit; text-decoration: none; }
a.row:hover { background: var(--surface-2); }
.row-t { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.row-s { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.row-r { grid-row: span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.pager { align-items: center; padding-bottom: 14px; }
.toolbar.filtre { flex-direction: column; align-items: stretch; }
.filtre .search { flex: 0 0 auto; width: 100%; }
.filtre > .btn-row { justify-content: flex-start; }
.filtre-riadok { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.filtre-riadok select { height: 44px; }
@media (max-width: 760px) { .filtre-riadok { grid-template-columns: minmax(0, 1fr); } }
.empty { padding: 40px 18px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--fg); font-size: 16px; margin-bottom: 4px; }

/* ---------- správy ---------- */
.messages { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.msg { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-md); font-weight: 600;
  background: var(--info-bg); color: var(--fg); border: 1px solid color-mix(in srgb, var(--info) 30%, transparent); }
.msg .ic { color: var(--info); }
.msg-success { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.msg-success .ic { color: var(--ok); }
.msg-warning { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.msg-warning .ic { color: var(--warn); }
.msg-error { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.msg-error .ic { color: var(--bad); }

/* ---------- zoznam objektov ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.search { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: var(--radius-sm);
  height: 44px; padding: 0 6px 0 14px; flex: 1 1 280px; min-width: 0; font-size: 16px; margin: 0; }
.search:focus-within { border-color: var(--fg); box-shadow: var(--focus-ring); }
.search input { border: 0; outline: none; background: transparent; width: 100%; min-width: 0; }
.search .ic { width: 16px; height: 16px; color: var(--muted); }
.search .btn { height: 32px; padding: 0 12px; font-size: 14px; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: left; font-weight: 600; padding: 10px 18px;
  border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr { position: relative; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.addr b { display: block; font-weight: 600; }
.addr a { color: var(--fg); text-decoration: none; }
.addr a::after { content: ""; position: absolute; inset: 0; } /* celý riadok je odkaz */
.addr a:focus-visible { outline: none; }
.tbl tbody tr:focus-within td { background: var(--accent-tint); }
.addr span, .sub { display: block; color: var(--muted); font-size: 13px; }
.obj-cards { display: none; list-style: none; margin: 0; padding: 0; }

/* ---------- detail objektu ---------- */
.d-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; margin-bottom: 18px; }
.d-head h1 { margin: 2px 0 6px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13px; align-items: center; }
.d-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.d-grid .panel + .panel { margin-top: 0; }
.quick { display: none; }
.facts { margin: 0; padding: 6px 18px 14px; }
.fact { padding: 10px 0; border-top: 1px solid var(--line); }
.fact:first-child { border-top: 0; }
.fact dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fact dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.fact-link { color: inherit; text-decoration: none; }
.fact-link:hover { color: var(--accent-text); text-decoration: underline; }
.fact dd small, .fact dd .sub { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.access { margin: 14px 18px 4px; padding: 10px 12px; border-radius: 8px; background: var(--warn-bg); color: var(--fg); font-size: 13px; display: flex; gap: 8px; }
.access .ic { width: 16px; height: 16px; color: var(--warn); margin-top: 2px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 6px; overflow-x: auto; }
.tab { padding: 12px 16px; margin-bottom: -1px; font-size: 16px; font-weight: 500; color: var(--muted); border-bottom: 2.5px solid transparent;
  white-space: nowrap; display: flex; gap: 6px; align-items: center; text-decoration: none; }
.tab:hover { color: var(--fg); }
.tab .n { font-size: 11px; background: var(--surface-2); border-radius: var(--radius-pill); padding: 0 7px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.tab[aria-current="page"] { color: var(--fg); font-weight: 700; border-bottom-color: var(--accent); }
.tech-group { border-top: 1px solid var(--line); }
.tech-group:first-of-type { border-top: 0; }
.tg-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px 6px; }
.tg-h b { font-size: 14px; }
.tg-h span { color: var(--muted); font-size: 12px; }
.dev { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 4px 16px; padding: 10px 18px 10px 64px; align-items: center; }
.dev + .dev { border-top: 1px dashed var(--line); }
.dev .dn { font-weight: 600; }
.dev .dn small, .dev .note { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.dev .ds { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; }
.dev .ds > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev .dr { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dev.off { opacity: .55; }
.small-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--accent-text); font-weight: 600; text-decoration: none; }
.small-link:hover { text-decoration: underline; }
.small-link .ic { width: 13px; height: 13px; }
.jobs { list-style: none; margin: 0; padding: 0; }
.job { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 18px; border-top: 1px solid var(--line); align-items: center; }
.job:first-child { border-top: 0; }
.job-main b { display: block; }
.job-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.att-sec { padding: 14px 18px 4px; }
.att-sec h3 { margin: 0 0 10px; font-size: 13px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.att-sec h3 span { color: var(--muted); font-weight: 500; }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.att { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); min-width: 0; margin: 0; }
.att > a { display: block; color: inherit; text-decoration: none; }
.thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--muted); position: relative; background: var(--surface-2); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .ic { width: 28px; height: 28px; opacity: .7; }
.web-tag { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--ok); color: var(--surface); padding: 1px 6px; border-radius: 4px; }
.att figcaption { padding: 8px 10px; font-size: 12px; }
.att figcaption b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att figcaption span { color: var(--muted); }
.hidden-note { margin: 4px 18px 14px; font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.hidden-note .ic { width: 14px; height: 14px; }

/* ---------- formuláre ---------- */
.form-panel { max-width: 680px; margin: 0 auto; }
.form { display: flex; flex-direction: column; gap: 16px; padding: 20px 24px 24px; }
.form-h { display: flex; flex-direction: column; gap: 2px; }
.form-h h1 { font-size: 22px; font-weight: 700; }
.form-h p { margin: 0; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .field > .label { font-size: 14px; font-weight: 600; color: var(--fg); }
.field input, .field select, .field textarea, .login input {
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0 14px; height: 48px; font-size: 16px;
  background: var(--surface); color: var(--fg); width: 100%; max-width: 100%; }
.field textarea { min-height: 96px; height: auto; padding: 12px 14px; resize: vertical; }
.field select[multiple] { height: auto; min-height: 120px; padding: 8px; }
.osoby { border: 0; margin: 0; padding: 0; gap: 10px; }
.osoby legend { padding: 0; margin-bottom: 5px; }
.osoba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
@media (max-width: 560px) { .osoba { grid-template-columns: minmax(0, 1fr); } }
.field input:focus, .field select:focus, .field textarea:focus, .login input:focus { border-color: var(--fg); box-shadow: var(--focus-ring); outline: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); }
.field .help { color: var(--muted); font-size: 13px; }
.form-errors { padding: 10px 12px; border-radius: 8px; background: var(--bad-bg); color: var(--bad); font-size: 14px; }
.form-errors ul { margin: 0; padding-left: 18px; }
/* zaškrtávacie polia (CheckboxSelectMultiple) ako pilulky */
.field-checkboxselectmultiple > div { display: flex; flex-wrap: wrap; gap: 6px; }
.field-checkboxselectmultiple > div > div { display: contents; }
.field-checkboxselectmultiple label { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  height: 36px; padding: 0 14px; font-size: 14px; cursor: pointer; font-weight: 500; }
.field-checkboxselectmultiple label:has(input:checked) { background: var(--accent-tint); border-color: var(--accent); }
.field input[type="checkbox"], .field input[type="radio"] { width: 18px; height: 18px; padding: 0; accent-color: var(--accent); flex: none; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; cursor: pointer; min-height: 32px; }
/* nahrávanie súborov */
.drop { position: relative; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-md); padding: 18px; text-align: center; color: var(--muted);
  font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--surface); }
.drop:focus-within { border-color: var(--fg); box-shadow: var(--focus-ring); }
.drop .ic { width: 26px; height: 26px; color: var(--accent-text); }
.drop b { color: var(--fg); font-size: 15px; }
.field .drop input[type="file"] { height: auto; border: 0; padding: 6px 0 0; background: transparent; font-size: 14px; text-align: center; }
.field .drop input[type="file"]:focus { box-shadow: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 4px; }

/* ---------- prihlásenie ---------- */
.login-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--side-bg); }
.login { width: 100%; max-width: 380px; display: grid; gap: 18px; }
.login .brand { justify-self: center; margin-bottom: 8px; }
.login .brand img, .login .brand .brand-hub { height: 28px; }
.login .panel { padding: 24px; display: grid; gap: 16px; }
.login h1 { font-size: 22px; font-weight: 700; }
.login .btn { width: 100%; }

/* ---------- úvod a menu Viac ---------- */
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.home-card { display: flex; align-items: center; gap: 14px; padding: 18px; color: var(--fg); text-decoration: none; }
.home-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.home-card b { display: block; font-size: 16px; }
.home-card span { color: var(--muted); font-size: 13px; }
.home-card .ic-end { margin-left: auto; color: var(--muted); }
.menu-list .row { grid-template-columns: auto minmax(0, 1fr) auto; }
.menu-list .row .ic { color: var(--accent-text); }
.menu-list form { margin: 0; }
.menu-list button.row { width: 100%; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.menu-list button.row:hover { background: var(--surface-2); }
.menu-list .is-soon { color: var(--muted); }

/* ---------- mobil ---------- */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .app { grid-template-columns: minmax(0, 1fr); background: none; }
  .side, .d-only, .gsearch { display: none !important; }
  .topbar { padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); min-height: 56px;
    background: var(--side-bg); border-bottom-color: var(--side-line); color: var(--white); }
  .topbar .brand img, .topbar .brand .brand-hub { height: 18px; }
  .topbar .icon-btn { border-color: rgba(255,255,255,.3); color: var(--white); }
  .m-avatar { display: grid; }
  .m-avatar:focus-visible { outline-color: var(--hub-blue); }
  .topbar .icon-btn:focus-visible, .topbar .brand:focus-visible { outline-color: var(--hub-blue); }
  .m-head { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
  .m-head b { color: var(--white); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .crumbs { display: none; }
  .content { padding: 16px 16px calc(var(--bottomnav-h) + 24px + env(safe-area-inset-bottom)); }
  .page-h { margin-bottom: 14px; align-items: flex-start; }
  .page-h h1 { font-size: 22px; }
  .panel-h, .toolbar { padding: 12px 14px; }
  .row { padding: 12px 14px; }
  .panel-tools { padding: 10px 14px 0; }
  .tags { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; }

  .tbl-wrap { display: none; }
  .obj-cards { display: block; }
  .obj-cards li { border-top: 1px solid var(--line); }
  .obj-cards li:first-child { border-top: 0; }
  .obj-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; color: inherit; text-decoration: none; }
  .obj-card:hover { background: var(--surface-2); }
  .oc-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }

  .d-head { grid-template-columns: minmax(0, 1fr); }
  .d-head .btn-row { display: none; }
  .d-head h1 { font-size: 21px; }
  .d-grid { grid-template-columns: minmax(0, 1fr); }
  .quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
  .quick a, .quick span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: var(--radius-md);
    border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 600; color: var(--fg); text-decoration: none; text-align: center; }
  .quick .ic { width: 20px; height: 20px; color: var(--accent-text); }
  .quick span[aria-disabled="true"] { color: var(--muted); }
  .quick span[aria-disabled="true"] .ic { color: var(--muted); }
  .quick a.q-cta { background: var(--cta); border-color: var(--cta); color: var(--on-cta); }
  .quick a.q-cta .ic { color: var(--on-cta); }
  .tile { width: 32px; height: 32px; }
  .tg-h { padding: 14px 14px 4px; }
  .dev { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 14px; }
  .dev .ds { grid-column: 1; }
  .dev .dr { grid-row: 1 / span 2; grid-column: 2; }
  .job { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px; }
  .job > :first-child { justify-self: start; }
  .job-main { grid-column: 1 / -1; grid-row: 2; }
  .job-end { grid-row: 1; grid-column: 2; flex-direction: row; }
  .att-sec { padding: 12px 14px 2px; }
  .att-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form { padding: 16px; }
  .form-actions .btn { flex: 1; }

  .bottomnav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    border-top: 1px solid var(--line); background: var(--surface); padding: 6px 6px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .bn { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted);
    padding: 6px 0; text-decoration: none; min-height: 48px; }
  .bn .ic { width: 22px; height: 22px; }
  .bn[aria-current="page"] { color: var(--accent-text); }
  .bn-cta { color: var(--fg); }
  .bn-cta .bn-ic { width: 44px; height: 44px; margin-top: -18px; border-radius: 14px; background: var(--cta); color: var(--on-cta);
    display: grid; place-items: center; box-shadow: var(--shadow-3); }
  .bn-cta[aria-disabled="true"] .bn-ic { background: var(--surface-2); color: var(--muted); box-shadow: none; }
  .bn-cta[aria-disabled="true"] { color: var(--muted); }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}

/* ---------- servisné zásahy ---------- */
.job-link { color: var(--fg); text-decoration: none; display: inline-block; }
.job-link:hover b { text-decoration: underline; }
.job-text { margin: 4px 0 2px; color: var(--fg-2); }
.job-end .btn-row { gap: 10px; }

/* ---------- prehľad ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; display: flex;
  flex-direction: column; gap: 6px; color: var(--fg); text-decoration: none;
  transition: box-shadow .2s cubic-bezier(.2,.7,.2,1), transform .2s cubic-bezier(.2,.7,.2,1), border-color .2s; }
.kpi:hover { border-color: var(--line-strong); box-shadow: var(--shadow-3); transform: translateY(-2px); }
.kpi .k-l { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.kpi .k-v { font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .k-s { font-size: 12px; color: var(--muted); }
.kpi.alert { box-shadow: inset 0 3px 0 var(--warn); }
.kpi.alert:hover { box-shadow: inset 0 3px 0 var(--warn), var(--shadow-3); }
.dash { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dash-col .panel + .panel { margin-top: 0; }
.days { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.tech-t { display: flex; gap: 12px; align-items: center; }
.tech-s { padding-left: 48px; }
.dash .empty { padding: 24px 18px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .dash { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .kpis { gap: 10px; margin-bottom: 14px; }
  .kpi { padding: 12px 14px; }
  .kpi .k-v { font-size: 24px; }
  .page-h-home .btn-row { display: none; } /* Zásah je v spodnej lište */
  .tech-s { padding-left: 44px; }
}
@media (prefers-reduced-motion: reduce) { .kpi { transition: none; } .kpi:hover { transform: none; } }

/* ---------- upozornenia a kontroly ---------- */
.bell { position: relative; }
.bell[aria-current="page"] { border-color: var(--fg); }
.bell-n { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--radius-pill);
  background: var(--cta); color: var(--on-cta); font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
  font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--surface); }
@media (max-width: 760px) { .bell-n { box-shadow: 0 0 0 2px var(--side-bg); } .bell[aria-current="page"] { border-color: var(--white); } }
.kontrola-t { display: flex; gap: 12px; align-items: center; }
.kontrola .row-s { padding-left: 48px; }
.kontrola .row-r { flex-direction: row; align-items: center; gap: 10px; }
@media (max-width: 760px) {
  .kontrola { grid-template-columns: minmax(0, 1fr); }
  .kontrola .row-s { padding-left: 44px; }
  .kontrola .row-r { grid-row: auto; order: 3; flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-left: 44px; text-align: left; }
}
/* typ zásahu: prepínač ako pilulky */
.field-radioselect > div { display: flex; flex-wrap: wrap; gap: 6px; }
.field-radioselect > div > div { display: contents; }
.field-radioselect label { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  height: 36px; padding: 0 14px; font-size: 14px; cursor: pointer; font-weight: 500; }
.field-radioselect label:has(input:checked) { background: var(--accent-tint); border-color: var(--accent); font-weight: 600; }

/* ---------- činnosti, pracovné dni, odmeny ---------- */
.progress { height: 6px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; min-width: 80px; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.progress.done > span { background: var(--ok); }
.pp { display: grid; grid-template-columns: minmax(0, 1fr) 160px auto; gap: 4px 16px; padding: 12px 18px; border-top: 1px solid var(--line); align-items: center; }
.pp-n { font-weight: 600; min-width: 0; }
.pp-n small, .pp-s { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.pp-r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-in { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.pp-in input { width: 96px; height: 44px; text-align: right; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); padding: 0 10px; font-variant-numeric: tabular-nums; }
.pp-in input:focus { border-color: var(--accent); outline: none; box-shadow: var(--focus-ring); }
.pp .error { grid-column: 1 / -1; }
.act { border-top: 1px solid var(--line); padding: 16px 18px 6px; }
.act-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 6px; }
.act-h h3 { font-size: 16px; }
.act-days { list-style: none; margin: 0 0 8px; padding: 0; }
.act-day { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); }
.act-day a { color: var(--fg); font-weight: 600; text-decoration: none; }
.act-day a:hover { text-decoration: underline; }
.total { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); font-weight: 700; font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.filters select, .filters input { height: 44px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); padding: 0 10px; font-size: 15px; color: var(--fg); }
.tbl td.r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 760px) {
  .pp { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px; }
  .pp .progress { grid-column: 1 / -1; grid-row: 2; }
  .act { padding: 14px 14px 4px; }
  .act-day { grid-template-columns: minmax(0, 1fr) auto; }
  .act-day > :first-child { grid-column: 1 / -1; justify-self: start; }
  .total { padding: 12px 14px; }
  .filters { width: 100%; }
  .filters label { flex: 1; }
}
/* vyúčtovanie */
.vy { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 16px 4px; margin: 0; display: grid; gap: 10px; min-width: 0; }
.vy legend { font-weight: 700; padding: 0 6px; }
.vy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vy p { margin: 0 0 6px; }
@media (max-width: 760px) { .vy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vy { padding: 10px 12px 4px; } }
.job-tools { margin-top: 6px; gap: 14px; }
.job-tools:empty { display: none; }
.btn-danger { background: var(--bad); border-color: var(--bad); color: var(--white); }
.btn-danger:hover { filter: brightness(.92); }
.btn-danger-text { color: var(--bad); margin-right: auto; }
/* skupiny v paneli Kontakt a prístup */
.facts-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 14px 0 0; padding: 0 0 4px;
  font-size: 13px; font-weight: 700; color: var(--fg); border-bottom: 2px solid var(--line); }
.facts-h:first-child { margin-top: 4px; }
.facts-h + .fact { border-top: 0; }

/* ---------- cenové ponuky ---------- */
.varianty { align-items: center; margin-bottom: 16px; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form input { height: 36px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0 10px;
  background: var(--surface); min-width: 0; width: 240px; }
.ponuka-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.ponuka-grid aside .panel + .panel { margin-top: 18px; }
.ponuka-grid > div > .panel + .panel { margin-top: 18px; }
.polozka-row .row-t { color: var(--fg); text-decoration: none; }
.polozka-row .row-t:hover { text-decoration: underline; }
.row-akcie { grid-column: 1 / -1; display: flex; gap: 2px; justify-content: flex-end; }
.row-akcie form { margin: 0; }
.tahadlo { display: inline-flex; align-items: center; padding: 0 6px; margin-right: auto; color: var(--muted); cursor: grab; }
.tahadlo:hover { color: var(--fg); }
li.tahana { opacity: .45; }
ul[data-presun]:has(> li[data-polozka]) > li.empty { display: none; }
@media (pointer: coarse) { .tahadlo { display: none; } }
.mnozstvo { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; }
.mnozstvo input { width: 72px; height: 32px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 0 6px; background: var(--surface); color: var(--fg); font: inherit; text-align: right; }
.pridat { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); }
.pridat .search { flex: 1 1 280px; }
.pridat form { margin: 0; }
.vysledky { border-top: 1px solid var(--line); padding: 4px 0 8px; background: var(--surface-2); }
.vysledky h3 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 18px 4px; }
.rows-h { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 18px 6px; font-weight: 600; }
.sucty { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; padding: 14px 18px; }
.sucty dt { color: var(--muted); } .sucty dd { margin: 0; text-align: right; }
.interne { border-style: dashed; }
.moduly { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.modul { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.modul.je-nula { opacity: .55; }
.modul-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.modul-text span { color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper input { width: 56px; height: 36px; text-align: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); }
.modul-suma { margin: 4px 0 0; font-size: 16px; }
@media (max-width: 960px) { .ponuka-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .tags.varianty { flex-wrap: wrap; overflow: visible; }
  .inline-form { flex: 1 1 100%; flex-wrap: wrap; }
  .inline-form input { flex: 1 1 160px; width: auto; min-width: 0; }
  .modul { grid-template-columns: minmax(0, 1fr) auto; }
  .modul-text { grid-column: 1 / -1; }
}
.cis { display: flex; flex-direction: column; }
.cis-riadok { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--line); margin: 0; }
.cis-riadok:first-child { border-top: 0; }
.cis-novy { background: var(--surface-2); }
.cis-pole { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); flex: 1 1 140px; min-width: 0; }
.cis-pole input:not([type=checkbox]) { height: 38px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0 10px;
  background: var(--surface); color: var(--fg); font-size: 15px; width: 100%; }
.cis-checkbox { flex: 0 0 auto; align-items: center; }
.cis-checkbox input { width: 20px; height: 20px; }
.kontakty-navrh { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 10px; }
.kontakty-navrh .label { flex: 1 1 100%; font-size: 13px; color: var(--muted); }
.kontakty-navrh .btn { height: auto; min-height: 36px; white-space: normal; text-align: left; }
.form-cast { font-size: 16px; font-weight: 700; margin: 6px 0 -4px; }
.objekt-polia.form { padding: 0; }
.do-databazy { justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.ulozit { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px; margin: 0; }
.ulozit select { height: 42px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0 10px; background: var(--surface); color: var(--fg); font-size: 15px; }
.modul-edit { display: flex; flex-wrap: wrap; gap: 8px 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0; }
.modul-edit .modul-popis { flex: 1 1 100%; }
.modul-edit textarea { border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--surface);
  color: var(--fg); font-size: 15px; width: 100%; resize: vertical; }
.modul-edit .cis-pole { flex: 1 1 110px; }
.modul-edit .cis-pole.modul-popis { flex: 1 1 100%; }
.form > .search { flex: 0 0 auto; }
.ulozit .cis-pole { flex: none; }
.form-panel + .form-panel { margin-top: 18px; }
.zalozky { margin-bottom: 14px; }
.tag.is-soon { color: var(--muted); border-style: dashed; cursor: default; gap: 6px; }
@media (max-width: 760px) { .tags.zalozky { flex-wrap: nowrap; } }

/* ---------- ponuka: Z našich realizácií ---------- */
.realizacia-riadok { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 18px; }
.realizacia-riadok .thumb { border-radius: 8px; border: 1px solid var(--line); }
.realizacia-riadok .row-akcie { grid-column: auto; align-items: center; }
.realizacia-riadok .row-akcie label { gap: 6px; cursor: pointer; }
.realizacie-vybrane .form-actions, .realizacie-pridat { padding: 12px 18px; border-top: 1px solid var(--line); }
.realizacie-pridat { position: sticky; bottom: 0; background: var(--surface); border-radius: 0 0 var(--radius-md) var(--radius-md); }
.volba { position: relative; cursor: pointer; display: block; }
.volba input { position: absolute; opacity: 0; pointer-events: none; }
.volba-znak { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(14 17 20 / .45); color: var(--white); border: 2px solid var(--white); }
.thumb .volba-znak .ic { width: 15px; height: 15px; opacity: 0; }
.volba:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.volba:has(input:checked) .volba-znak { background: var(--accent); }
.volba:has(input:checked) .volba-znak .ic { opacity: 1; }
.volba:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.volba-popis { display: block; padding: 8px 10px; font-size: 12px; }
.volba-popis b { display: block; font-size: 13px; font-weight: 600; }
.volba-popis span { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fotky-nahlad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 14px 18px 0; }
.fotky-nahlad .thumb { border-radius: 6px; }
.fotky-panel .btn { margin: 14px 18px; }
@media (max-width: 760px) {
  .realizacia-riadok { grid-template-columns: 96px minmax(0, 1fr); }
  .realizacia-riadok .row-akcie { grid-column: 1 / -1; }
}

/* ---------- servisný portál (verejná adresa, rola správca) ---------- */
.portal-head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 12px 28px; min-height: 58px;
  background: var(--side-bg); color: var(--side-fg); }
.portal-org { flex: 1; min-width: 0; font-weight: 600; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-head form { margin: 0; }
.portal-odhlasit { color: var(--side-fg); }
.portal-odhlasit:hover { background: var(--side-active); }
.portal-content { margin: 0 auto; max-width: 1100px; }
.portal-filter { margin: 0; }
.portal-filter select { height: 36px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--fg); font: inherit; padding: 0 10px; max-width: 100%; }
.historia { list-style: none; margin: 0; padding: 0; }
.historia-z { padding: 12px 18px; border-top: 1px solid var(--line); }
.historia-z:first-child { border-top: 0; }
.historia-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.historia-z .row-s { margin: 6px 0 0; }
.historia-z .row-s .ic { width: 13px; height: 13px; vertical-align: -2px; }
.historia-sprava { margin: 6px 0 0; padding: 8px 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
@media (max-width: 760px) {
  .portal-head { padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
  .portal-content { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .portal-org { font-size: 14px; }
}
.portal-nav { display: flex; gap: 4px; }
.portal-nav a { color: var(--side-fg); text-decoration: none; padding: 6px 10px; border-radius: var(--radius-sm); font-weight: 500; white-space: nowrap; }
.portal-nav a:hover, .portal-nav a[aria-current="page"] { background: var(--side-active); color: var(--white); }
.novy-dom { border: 1px dashed var(--line-strong); border-radius: var(--radius-md); padding: 10px 14px; }
.novy-dom summary { cursor: pointer; font-weight: 600; color: var(--accent-text); }
.novy-dom-polia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 12px; }
@media (max-width: 760px) {
  .portal-head { flex-wrap: wrap; gap: 8px 12px; }
  .portal-nav { order: 3; width: 100%; }
  .novy-dom-polia { grid-template-columns: minmax(0, 1fr); }
}
