/* ==========================================================================
   Alcedo Insight – alap design system (a Cégtár jégmadár-rendszeréből)
   Színvilág: jégmadár (Alcedo atthis) – fémes kék hát, türkiz derék,
   narancs-rozsdás has, mély kékeszöld szárny.
   Light és dark téma: data-theme="light|dark" a <html>-en, egyébként a rendszer beállítása.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Jégmadár paletta */
    --kek: #0a85c2;          /* hát: fémes jégmadárkék */
    --kek-600: #076a9c;
    --kek-700: #075580;
    --turkiz: #17b8c4;       /* derék: türkiz */
    --narancs: #ef7d2b;      /* has: narancs-rozsda */
    --narancs-600: #d4651a;
    --mely: #062330;         /* szárny: mély kékeszöld */

    --primary: var(--kek);
    --primary-600: var(--kek-600);
    --violet: var(--turkiz);
    --ok: #12a27a;
    --ok-600: #0b8463;
    --warn: var(--narancs);
    --warn-600: var(--narancs-600);
    --danger: #e0475b;
    --danger-600: #c22f44;
    --info: var(--turkiz);

    --grad: linear-gradient(135deg, #075580 0%, #0a85c2 48%, #17b8c4 100%);
    --grad-meleg: linear-gradient(135deg, #0a85c2 0%, #17b8c4 60%, #ef7d2b 130%);
    --radius: 16px;
    --radius-s: 10px;
    --sidebar-w: 268px;
    --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* --- Világos téma --- */
    color-scheme: light;
    --bg: #f2f6f8;
    --surface: #ffffff;
    --surface-2: #f6f9fb;
    --border: #e1e9ee;
    --border-2: #cfdbe2;
    --ink: #0b1c24;
    --ink-2: #2b4250;
    --muted: #5d7584;
    --muted-2: #8ea3af;
    --track: #e8eff3;
    --primary-50: #e7f4fb;
    --primary-100: #cde8f5;
    --hover-sor: #f4f9fc;
    --topbar-bg: rgba(242, 246, 248, .82);
    --mix: #000;               /* chipek szövegének sötétítése */
    --ok-bg: #e8f7f1; --ok-border: #a9e2cf; --ok-ink: #0a6b51;
    --warn-bg: #fff3e8; --warn-border: #f8c9a2; --warn-ink: #a84d0e;
    --danger-bg: #fdecef; --danger-border: #f5bcc5; --danger-ink: #a5243a;
    --info-bg: var(--primary-50); --info-border: var(--primary-100); --info-ink: var(--kek-700);
    --mark-bg: #fff1a8;
    --shadow-xs: 0 1px 2px rgba(6, 35, 48, .05);
    --shadow-s: 0 1px 2px rgba(6, 35, 48, .04), 0 4px 12px -2px rgba(6, 35, 48, .07);
    --shadow-m: 0 2px 4px rgba(6, 35, 48, .04), 0 12px 32px -8px rgba(6, 35, 48, .16);
    --shadow-l: 0 24px 64px -12px rgba(6, 35, 48, .32);
}

/* --- Sötét téma (kézi választás) --- */
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #071319;
    --surface: #0d1d25;
    --surface-2: #112530;
    --border: #1b323e;
    --border-2: #27434f;
    --ink: #e5f2f7;
    --ink-2: #bcd2dc;
    --muted: #87a3b0;
    --muted-2: #5d7a87;
    --track: #17303b;
    --primary: #2aa7e0;
    --primary-600: #57bde9;
    --primary-50: rgba(42, 167, 224, .13);
    --primary-100: rgba(42, 167, 224, .24);
    --hover-sor: rgba(42, 167, 224, .06);
    --topbar-bg: rgba(7, 19, 25, .8);
    --mix: #fff;
    --ok-bg: rgba(18, 162, 122, .14); --ok-border: rgba(18, 162, 122, .35); --ok-ink: #5fd4af;
    --warn-bg: rgba(239, 125, 43, .14); --warn-border: rgba(239, 125, 43, .38); --warn-ink: #f6a76c;
    --danger-bg: rgba(224, 71, 91, .14); --danger-border: rgba(224, 71, 91, .38); --danger-ink: #f28a99;
    --info-ink: #7fcbee;
    --mark-bg: rgba(239, 125, 43, .4);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-s: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px -2px rgba(0, 0, 0, .35);
    --shadow-m: 0 2px 4px rgba(0, 0, 0, .3), 0 14px 34px -8px rgba(0, 0, 0, .5);
    --shadow-l: 0 24px 64px -12px rgba(0, 0, 0, .7);
}
/* --- Sötét téma (rendszer szerint, ha nincs kézi választás) --- */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #071319;
        --surface: #0d1d25;
        --surface-2: #112530;
        --border: #1b323e;
        --border-2: #27434f;
        --ink: #e5f2f7;
        --ink-2: #bcd2dc;
        --muted: #87a3b0;
        --muted-2: #5d7a87;
        --track: #17303b;
        --primary: #2aa7e0;
        --primary-600: #57bde9;
        --primary-50: rgba(42, 167, 224, .13);
        --primary-100: rgba(42, 167, 224, .24);
        --hover-sor: rgba(42, 167, 224, .06);
        --topbar-bg: rgba(7, 19, 25, .8);
        --mix: #fff;
        --ok-bg: rgba(18, 162, 122, .14); --ok-border: rgba(18, 162, 122, .35); --ok-ink: #5fd4af;
        --warn-bg: rgba(239, 125, 43, .14); --warn-border: rgba(239, 125, 43, .38); --warn-ink: #f6a76c;
        --danger-bg: rgba(224, 71, 91, .14); --danger-border: rgba(224, 71, 91, .38); --danger-ink: #f28a99;
        --info-ink: #7fcbee;
        --mark-bg: rgba(239, 125, 43, .4);
        --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
        --shadow-s: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px -2px rgba(0, 0, 0, .35);
        --shadow-m: 0 2px 4px rgba(0, 0, 0, .3), 0 14px 34px -8px rgba(0, 0, 0, .5);
        --shadow-l: 0 24px 64px -12px rgba(0, 0, 0, .7);
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--ink);
    background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01';
    transition: background-color .2s, color .2s;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.ikon { flex-shrink: 0; vertical-align: middle; }
.tabular, .num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
mark { background: var(--mark-bg); color: inherit; border-radius: 3px; padding: 0 2px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 20px 14px;
    color: #b9d3dd; z-index: 40; overflow-y: auto;
    background:
        radial-gradient(120% 55% at 0% 0%, rgba(10, 133, 194, .45) 0%, rgba(10, 133, 194, 0) 62%),
        radial-gradient(90% 40% at 100% 100%, rgba(239, 125, 43, .22) 0%, rgba(239, 125, 43, 0) 65%),
        radial-gradient(70% 40% at 100% 45%, rgba(23, 184, 196, .14) 0%, rgba(23, 184, 196, 0) 70%),
        var(--mely);
}
.sidebar__logo { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; color: #fff; }
.sidebar__logo:hover { color: #fff; }
.sidebar__logo .logo-mark { width: 40px; height: 40px; filter: drop-shadow(0 6px 16px rgba(10, 133, 194, .6)); }
.logo-szoveg { display: flex; flex-direction: column; line-height: 1.05; }
.logo-szoveg b { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.logo-szoveg b span { background: linear-gradient(90deg, #5fd3e0, #f6a05c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-szoveg small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #7f9ead; margin-top: 3px; }
.nav-cim { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #5f8291; padding: 14px 12px 6px; }
.nav-link {
    display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: #b9d3dd; font-weight: 500;
    transition: background .15s, color .15s;
}
.nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-link.is-aktiv { background: linear-gradient(90deg, rgba(10, 133, 194, .4), rgba(23, 184, 196, .12)); color: #fff; box-shadow: inset 2px 0 0 #5fd3e0; }
.nav-link .ikon { opacity: .9; }
.nav-link__szam { margin-left: auto; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #dcedf3; }
.sidebar__also { margin-top: auto; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); font-size: 12px; color: #93b2bf; }
.sidebar__also b { color: #fff; display: block; font-size: 13px; margin-bottom: 2px; }
.sidebar__verzio { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sidebar__verzio a { color: #5fd3e0; font-weight: 600; }
.sidebar__verzio a:hover { color: #fff; }

.sidebar-hatter { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 28px;
    background: var(--topbar-bg); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.topbar .topbar__menu { display: none; }
.content { padding: 26px 28px 56px; width: 100%; max-width: 1640px; margin: 0 auto; }

/* Globális kereső */
.gkereso { position: relative; flex: 1; max-width: 560px; }
.gkereso input {
    width: 100%; height: 42px; padding: 0 70px 0 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
    font: inherit; color: var(--ink); box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s;
}
.gkereso input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.gkereso > .ikon { position: absolute; left: 14px; top: 12px; color: var(--muted-2); }
.gkereso kbd { position: absolute; right: 10px; top: 10px; font: 600 11px var(--font); color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; }
.gkereso__lista {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow-l); padding: 8px; display: none; max-height: 70vh; overflow: auto;
}
.gkereso__lista.is-nyitva { display: block; }
.gkereso__cim { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); padding: 8px 10px 4px; }
.gkereso__sor { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.gkereso__sor:hover, .gkereso__sor.is-aktiv { background: var(--primary-50); color: var(--ink); }
.gkereso__sor small { display: block; color: var(--muted); font-size: 12px; }
.gkereso__sor .pont { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.gkereso__mind { display: block; text-align: center; padding: 10px; font-weight: 600; border-top: 1px solid var(--border); margin-top: 6px; }
.gkereso__ures { padding: 18px; text-align: center; color: var(--muted); }

.topbar__jobb { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.avatar {
    width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff;
    background: var(--grad); box-shadow: 0 4px 12px -2px rgba(10, 133, 194, .5);
}
.felh-menu { position: relative; }
.felh-menu > button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 4px 6px 4px 4px; border-radius: 12px; cursor: pointer; font: inherit; color: var(--ink); }
.felh-menu > button:hover { background: var(--hover-sor); }
.felh-menu__nev { text-align: left; line-height: 1.2; }
.felh-menu__nev b { display: block; font-size: 13px; }
.felh-menu__nev small { color: var(--muted); font-size: 11.5px; }
.lenyilo {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; box-shadow: var(--shadow-l); padding: 6px; display: none; z-index: 50;
}
.lenyilo.is-nyitva { display: block; }
.lenyilo a, .lenyilo button {
    display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ink-2);
    font: inherit; font-weight: 500; border: 0; background: none; cursor: pointer; text-align: left;
}
.lenyilo a:hover, .lenyilo button:hover { background: var(--surface-2); color: var(--ink); }
.lenyilo hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.lenyilo .veszely { color: var(--danger-600); }
.lenyilo__cim { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); padding: 8px 10px 4px; }
.lenyilo .is-aktiv { color: var(--primary); font-weight: 700; }
.lenyilo .pipa { margin-left: auto; color: var(--primary); }

/* Nyelv- és témaváltó */
.valto { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.valto button, .valto a {
    display: inline-grid; place-items: center; min-width: 32px; height: 30px; padding: 0 8px; border-radius: 8px; border: 0; background: transparent;
    color: var(--muted); font: 700 11.5px var(--font); letter-spacing: .04em; cursor: pointer;
}
.valto button:hover { color: var(--ink); background: var(--surface-2); }
.valto button[aria-pressed="true"] { background: var(--primary-50); color: var(--primary); }
.valto form { display: contents; }
.auth__valtok { position: absolute; top: 20px; right: 20px; display: flex; gap: 8px; }

/* ---------- Oldalfejléc ---------- */
.oldalfej { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.oldalfej h1 { font-size: clamp(22px, 1.4rem + .6vw, 28px); font-weight: 800; letter-spacing: -.03em; }
.oldalfej p { margin: 6px 0 0; color: var(--muted); }
.oldalfej__gombok { display: flex; gap: 8px; flex-wrap: wrap; }
.morzsa { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.morzsa a { color: var(--muted); }
.morzsa a:hover { color: var(--primary); }

/* ---------- Gombok ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px;
    border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); font: 600 13.5px var(--font); cursor: pointer;
    white-space: nowrap; box-shadow: var(--shadow-xs); transition: background .15s, border-color .15s, box-shadow .15s, transform .05s, color .15s;
}
.btn:hover { border-color: var(--border-2); background: var(--surface-2); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--kek); border-color: var(--kek); color: #fff; box-shadow: 0 6px 16px -6px rgba(10, 133, 194, .75), inset 0 1px 0 rgba(255, 255, 255, .15); }
.btn--primary:hover { background: var(--kek-600); border-color: var(--kek-600); color: #fff; }
.btn--grad { background: var(--grad); border: 0; color: #fff; box-shadow: 0 8px 20px -8px rgba(23, 184, 196, .85); }
.btn--grad:hover { background: var(--grad); border: 0; color: #fff; filter: brightness(1.08); box-shadow: 0 10px 24px -8px rgba(23, 184, 196, .95); }
.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--danger:hover { background: var(--danger-600); border-color: var(--danger-600); color: #fff; }
.btn--soft { background: var(--primary-50); border-color: transparent; color: var(--primary-600); box-shadow: none; }
.btn--soft:hover { background: var(--primary-100); border-color: transparent; color: var(--primary-600); }
.btn--ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn--ghost:hover { background: var(--hover-sor); border-color: transparent; }
.btn--sm { height: 32px; padding: 0 11px; border-radius: 9px; font-size: 12.5px; }
.btn--ikon { width: 34px; height: 34px; padding: 0; border-radius: 9px; }
.btn--ikon.btn--sm { width: 30px; height: 30px; }
.btn--teli { width: 100%; height: 46px; font-size: 14.5px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- Kártyák ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-s); min-width: 0; }
.card__fej { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.card__cim { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.card__cim .cim-ikon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--acc, var(--primary)) 14%, transparent); color: var(--acc, var(--primary)); flex-shrink: 0; }
.card__al { font-size: 12.5px; color: var(--muted); margin-top: 2px; font-weight: 400; letter-spacing: 0; }
.card__test { padding: 18px 20px 20px; }
.card__lab { padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); font-size: 12.5px; color: var(--muted); }
.card--tabla { overflow: hidden; }

/* ---------- Dashboard ---------- */
.hero {
    position: relative; overflow: hidden; border-radius: 22px; padding: 28px 30px; color: #fff; margin-bottom: 22px;
    background:
        radial-gradient(55% 120% at 100% 0%, rgba(239, 125, 43, .42) 0%, rgba(239, 125, 43, 0) 60%),
        radial-gradient(50% 90% at 0% 100%, rgba(23, 184, 196, .38) 0%, rgba(23, 184, 196, 0) 60%),
        linear-gradient(135deg, #06374d 0%, #0a6fa3 45%, #0a85c2 70%, #13a9bd 100%);
    box-shadow: 0 24px 48px -22px rgba(10, 133, 194, .7);
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
    background-image: linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
    background-size: 32px 32px; mask-image: linear-gradient(90deg, transparent 30%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.hero__racs { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr); gap: 28px; align-items: center; }
.hero__datum { font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; opacity: .78; font-weight: 600; }
.hero h1 { font-size: clamp(24px, 1.4rem + 1vw, 32px); font-weight: 800; letter-spacing: -.03em; margin: 6px 0 8px; }
.hero p { margin: 0; opacity: .88; max-width: 46ch; }
.hero__gombok { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.hero__gombok .btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); color: #fff; box-shadow: none; backdrop-filter: blur(6px); }
.hero__gombok .btn:hover { background: rgba(255, 255, 255, .24); }
.hero__gombok .btn--feher { background: #fff; color: var(--kek-700); border-color: #fff; }
.hero__gombok .btn--feher:hover { background: #eef8fc; color: var(--kek-700); }
.hero__szamok { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hero__szam { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px); }
.hero__szam small { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; opacity: .78; font-weight: 600; }
.hero__szam b { display: block; font-size: clamp(20px, 1rem + 1vw, 28px); font-weight: 800; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.hero__szam span { font-size: 12px; opacity: .82; }

.szakasz-cim { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 28px 0 12px; }
.szakasz-cim::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.kpi-racs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi {
    --acc: var(--primary); position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-s); overflow: hidden;
    transition: box-shadow .2s, transform .2s; color: inherit;
}
a.kpi:hover { color: inherit; }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--acc), color-mix(in srgb, var(--acc) 25%, transparent)); }
.kpi:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
.kpi__fej { display: flex; align-items: center; gap: 10px; }
.kpi__ikon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--acc) 15%, transparent); color: var(--acc); }
.kpi__felirat { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.kpi__link { margin-left: auto; color: var(--muted-2); opacity: 0; transition: opacity .15s, transform .15s; }
.kpi:hover .kpi__link { opacity: 1; transform: translate(2px, -2px); }
.kpi__ertek { font-size: clamp(22px, 1.1rem + .8vw, 30px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.15; margin-top: 4px; }
.kpi__ertek small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.kpi__sor { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.valtozas { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.valtozas.is-fel { color: var(--ok-ink); background: var(--ok-bg); }
.valtozas.is-le { color: var(--danger-ink); background: var(--danger-bg); }
.valtozas.is-semleges { color: var(--muted); background: var(--track); }
.spark { width: 100%; height: 56px; margin-top: 6px; display: block; }
.spark circle { stroke: var(--surface); }
.kpi__also { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--border); }
.kpi__also div { font-size: 11.5px; color: var(--muted); }
.kpi__also b { display: block; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }

.gyuru { display: block; flex-shrink: 0; }
.gyuru__fo { font: 800 22px var(--font); fill: var(--ink); letter-spacing: -.02em; }
.gyuru__al { font: 600 10px var(--font); fill: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.racs-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }

.egeszseg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; }
.jelmagyarazat { display: flex; flex-direction: column; gap: 10px; }
.jm-sor { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; font-size: 13px; color: inherit; }
a.jm-sor:hover { color: var(--primary); }
.jm-sor i { width: 12px; height: 12px; border-radius: 4px; }
.jm-sor b { font-variant-numeric: tabular-nums; }
.jm-sor span.muted { font-size: 12px; min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.mini-csempek { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.mini-csempe { padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.mini-csempe small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.mini-csempe b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mini-csempe--figyel { background: var(--warn-bg); border-color: var(--warn-border); }
.mini-csempe--hiba { background: var(--danger-bg); border-color: var(--danger-border); }
.mini-csempe--ok { background: var(--ok-bg); border-color: var(--ok-border); }

.oszlop-diagram { width: 100%; height: auto; display: block; }
.oszlop-diagram .racs { stroke: var(--border); stroke-dasharray: 3 4; }
.oszlop-diagram .tengely { font: 500 11px var(--font); fill: var(--muted-2); }
.oszlop-diagram .tengely--kiemelt { fill: var(--primary); font-weight: 700; }
.oszlop-diagram .ertek { font: 700 11px var(--font); fill: var(--ink-2); }
.oszlop-diagram rect { transition: opacity .15s; }
.oszlop-diagram rect:hover { opacity: .8; }
.diagram-jm { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.diagram-jm i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.halmozott-sav { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--track); gap: 2px; }
.halmozott-sav i { display: block; height: 100%; }
.halmozott-sav i:first-child { border-radius: 999px 0 0 999px; }
.halmozott-sav i:last-child { border-radius: 0 999px 999px 0; }

.rang-lista { display: flex; flex-direction: column; }
.rang-sor { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.rang-sor:last-child { border-bottom: 0; }
.rang-sor__hely { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--surface-2); color: var(--muted); }
.rang-sor:nth-child(1) .rang-sor__hely, .megye-tabla tr:nth-child(1) .rang-sor__hely { background: linear-gradient(135deg, #fde3b0, #ef7d2b); color: #6b2c05; }
.rang-sor:nth-child(2) .rang-sor__hely, .megye-tabla tr:nth-child(2) .rang-sor__hely { background: linear-gradient(135deg, #d8e7ee, #8ea3af); color: #10232c; }
.rang-sor:nth-child(3) .rang-sor__hely, .megye-tabla tr:nth-child(3) .rang-sor__hely { background: linear-gradient(135deg, #bfe9f1, #17b8c4); color: #05343a; }
.rang-sor__nev { min-width: 0; }
.rang-sor__nev a, .rang-sor__nev b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); font-size: 13.5px; }
.rang-sor__nev a:hover { color: var(--primary); }
.rang-sor__nev small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rang-sor__ertek { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.rang-sor__ertek small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.sav { display: block; height: 6px; border-radius: 999px; background: var(--track); margin-top: 6px; overflow: hidden; }
.sav i { display: block; height: 100%; border-radius: 999px; background: var(--acc, var(--primary)); }

.tevekenyseg { display: flex; flex-direction: column; }
.tev-sor { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.tev-sor:last-child { border-bottom: 0; }
.tev-sor__pont { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-2); color: var(--muted); }
.tev-sor__pont.ok { background: var(--ok-bg); color: var(--ok-ink); }
.tev-sor__pont.info { background: var(--info-bg); color: var(--info-ink); }
.tev-sor__pont.figyel { background: var(--warn-bg); color: var(--warn-ink); }
.tev-sor__pont.hiba { background: var(--danger-bg); color: var(--danger-ink); }
.tev-sor__szoveg { min-width: 0; flex: 1; font-size: 13px; }
.tev-sor__szoveg b { font-weight: 600; }
.tev-sor__szoveg p { margin: 1px 0 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tev-sor__ido { font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }

.kitoltottseg { display: flex; flex-direction: column; gap: 12px; }
.kit-sor { font-size: 13px; }
.kit-sor div { display: flex; justify-content: space-between; }
.kit-sor b { font-variant-numeric: tabular-nums; }

/* ---------- Táblázat ---------- */
.tabla-wrap { overflow-x: auto; }
.tabla { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tabla th {
    position: sticky; top: 0; z-index: 1; text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted); background: var(--surface-2); padding: 11px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.tabla th a { color: inherit; display: inline-flex; align-items: center; gap: 4px; }
.tabla th a:hover { color: var(--ink); }
.tabla th a.is-aktiv { color: var(--primary); }
.tabla td { padding: 12px 11px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tabla tbody tr { transition: background .1s; }
.tabla tbody tr:hover { background: var(--hover-sor); }
.tabla tbody tr.is-kijelolt { background: var(--primary-50); }
.tabla tbody tr:last-child td { border-bottom: 0; }
.tabla .jobbra { text-align: right; }
.tabla .kozep { text-align: center; }
.tabla .check { width: 36px; padding-right: 0; }
.cella-fo { font-weight: 600; color: var(--ink); display: block; }
a.cella-fo:hover { color: var(--primary); }
.cella-al { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabla .cella-al { max-width: 220px; }
.sor-muveletek { display: flex; gap: 0; justify-content: flex-end; opacity: .55; transition: opacity .15s; }
tr:hover .sor-muveletek { opacity: 1; }
.tabla-osszesito { display: flex; gap: 22px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.tabla-osszesito b { color: var(--ink); font-variant-numeric: tabular-nums; font-size: 14px; margin-right: 4px; }
.email-cella { display: inline-block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

input[type=checkbox].cb { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; vertical-align: middle; }

/* Chipek, jelvények */
.chip {
    display: inline-flex; align-items: center; gap: 6px; max-width: 220px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
    color: color-mix(in srgb, var(--c, var(--muted)) 75%, var(--mix)); background: color-mix(in srgb, var(--c, var(--muted)) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--c, var(--muted)) 26%, var(--surface)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tabla .chip { max-width: 150px; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--muted)); flex-shrink: 0; }
a.chip:hover { filter: brightness(.97); }
.chip--ures { --c: #8ea3af; font-weight: 500; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.badge--ok { color: var(--ok-ink); background: var(--ok-bg); }
.badge--hiba { color: var(--danger-ink); background: var(--danger-bg); }
.badge--figyel { color: var(--warn-ink); background: var(--warn-bg); }
.badge--info { color: var(--info-ink); background: var(--info-bg); }
.badge--semleges { color: var(--muted); background: var(--track); }
/* hosszabb, több soros címke (pl. az automatikus átsorolás szabálya a csoportkártyán) */
.badge--tobbsoros { white-space: normal; align-items: flex-start; max-width: 100%; border-radius: 10px; padding: 4px 10px; line-height: 1.35; font-weight: 600; }
.badge--tobbsoros .ikon { margin-top: 2px; }

/* Gyors státusz-kapcsolók (Leiratkozott / Visszapattant) */
.st-kapcsolok { display: inline-flex; gap: 6px; }
.st-btn {
    display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px dashed var(--border-2);
    background: transparent; color: var(--muted-2); font: 600 11.5px var(--font); cursor: pointer; transition: all .15s; white-space: nowrap;
}
.tabla .st-btn { height: 26px; padding: 0 8px; gap: 4px; font-size: 11px; }
.st-btn:hover { border-style: solid; color: var(--ink-2); background: var(--surface-2); }
.st-btn .ikon { width: 14px; height: 14px; }
.st-btn[aria-pressed=true].st-btn--leir { border: 1px solid var(--warn-border); background: var(--warn-bg); color: var(--warn-ink); }
.st-btn[aria-pressed=true].st-btn--vissza { border: 1px solid var(--danger-border); background: var(--danger-bg); color: var(--danger-ink); }
.st-btn.is-tolt { opacity: .5; pointer-events: none; }
.kuldheto-jel { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); margin-right: 8px; vertical-align: 1px; }
.kuldheto-jel.nem { background: var(--muted-2); box-shadow: 0 0 0 3px var(--track); }

/* Nagy kapcsolók az űrlapon */
.kapcsolo-kartya { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; transition: all .15s; background: var(--surface); }
.kapcsolo-kartya:hover { border-color: var(--border-2); }
.kapcsolo-kartya input { position: absolute; opacity: 0; pointer-events: none; }
.kapcsolo-kartya__ikon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex-shrink: 0; }
.kapcsolo-kartya__szoveg { flex: 1; }
.kapcsolo-kartya__szoveg b { display: block; }
.kapcsolo-kartya__szoveg small { color: var(--muted); }
.kapcsolo { width: 44px; height: 26px; border-radius: 999px; background: var(--border-2); position: relative; transition: background .2s; flex-shrink: 0; }
.kapcsolo::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.kapcsolo-kartya:has(input:checked) .kapcsolo { background: var(--acc, var(--primary)); }
.kapcsolo-kartya:has(input:checked) .kapcsolo::after { transform: translateX(18px); }
.kapcsolo-kartya:has(input:checked) { border-color: color-mix(in srgb, var(--acc, var(--primary)) 45%, var(--surface)); background: color-mix(in srgb, var(--acc, var(--primary)) 7%, var(--surface)); }
.kapcsolo-kartya:has(input:checked) .kapcsolo-kartya__ikon { background: color-mix(in srgb, var(--acc, var(--primary)) 16%, var(--surface)); color: var(--acc, var(--primary)); }
.kapcsolo-kartya:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Űrlapok ---------- */
.urlap-racs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.urlap-racs .teljes { grid-column: 1 / -1; }
.mezo { display: flex; flex-direction: column; gap: 7px; }
.mezo > label, .mezo .cimke { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mezo .kotelezo::after { content: " *"; color: var(--danger); }
.mezo small.sugo { color: var(--muted); font-size: 12px; }
.input, .select, .textarea {
    width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--border-2); border-radius: 11px; background: var(--surface);
    font: inherit; font-size: 14px; color: var(--ink); transition: border-color .15s, box-shadow .15s; box-shadow: var(--shadow-xs);
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.textarea { height: auto; min-height: 90px; padding: 10px 13px; resize: vertical; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235d7584' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.input.is-hibas, .select.is-hibas { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-bg); }
.mezo .hiba, .hiba { color: var(--danger-600); font-size: 12.5px; font-weight: 500; }
.input-ikon { position: relative; }
.input-ikon > .ikon { position: absolute; left: 13px; top: 12px; color: var(--muted-2); pointer-events: none; }
.input-ikon .input { padding-left: 40px; }
.input-ikon .szem { position: absolute; right: 6px; top: 5px; }
.input-utotag { position: relative; }
.input-utotag .input { padding-right: 52px; }
.input-utotag span { position: absolute; right: 13px; top: 11px; color: var(--muted); font-weight: 600; font-size: 13px; }
.szin-valaszto { display: flex; gap: 10px; flex-wrap: wrap; }
.szin-valaszto label { position: relative; cursor: pointer; }
.szin-valaszto input { position: absolute; opacity: 0; }
.szin-valaszto span { display: block; width: 34px; height: 34px; border-radius: 11px; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4); transition: transform .15s; }
.szin-valaszto input:checked + span { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--c); transform: scale(1.04); }
.szin-valaszto input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 5px; }
.urlap-lab { display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding: 16px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); flex-wrap: wrap; }
.urlap-lab .bal { margin-right: auto; }
.jelszo-ero { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; margin-top: 2px; }
.jelszo-ero i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; border-radius: 999px; }
.checkbox-sor { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }

/* ---------- Szűrősáv ---------- */
.szurosav { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.szurosav .input-ikon { flex: 1 1 280px; }
.szurosav .select { width: auto; min-width: 170px; flex: 0 1 220px; }
.szegmens { display: inline-flex; padding: 3px; background: var(--track); border-radius: 11px; gap: 2px; flex-wrap: wrap; }
.szegmens a { padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.szegmens a:hover { color: var(--ink); }
.szegmens a.is-aktiv { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }

/* ---------- Tömeges művelet sáv ---------- */
.tomeges-sav {
    position: fixed; left: 16px; right: 16px; margin: 0 auto; width: fit-content; bottom: 24px; transform: translateY(160%); z-index: 60;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 10px 10px 18px; border-radius: 16px; background: var(--mely); color: #dcedf3; box-shadow: var(--shadow-l);
    border: 1px solid rgba(255, 255, 255, .08); transition: transform .25s cubic-bezier(.2, .9, .3, 1.2);
}
.tomeges-sav.is-lathato { transform: none; }
.tomeges-sav__szam { font-weight: 700; white-space: nowrap; }
.tomeges-sav__szam b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 8px; background: var(--grad); color: #fff; margin-right: 6px; }
.tomeges-sav .sep { width: 1px; height: 24px; background: rgba(255, 255, 255, .14); }
.tomeges-sav .btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .1); color: #dcedf3; box-shadow: none; height: 36px; }
.tomeges-sav .btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.tomeges-sav .btn--danger { background: rgba(224, 71, 91, .92); border-color: transparent; color: #fff; }
.tomeges-sav .select { height: 36px; width: 220px; background-color: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
.tomeges-sav .select option { color: #0b1c24; background: #fff; }
.tomeges-sav .menu-wrap { position: relative; }
.tomeges-sav .lenyilo { bottom: calc(100% + 8px); top: auto; right: 0; }
.mind-kijelol { display: none; padding: 10px 20px; background: var(--primary-50); border-bottom: 1px solid var(--primary-100); font-size: 13px; text-align: center; color: var(--primary-600); }
.mind-kijelol.is-lathato { display: block; }
.mind-kijelol button { border: 0; background: none; color: var(--primary-600); font: 700 13px var(--font); text-decoration: underline; cursor: pointer; }

/* ---------- Lapozó ---------- */
.lapozo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.lapozo__gombok { display: flex; gap: 4px; flex-wrap: wrap; }
.lapozo__gombok a, .lapozo__gombok span { min-width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: 9px; font-weight: 600; color: var(--ink-2); border: 1px solid transparent; }
.lapozo__gombok a:hover { background: var(--surface-2); border-color: var(--border); }
.lapozo__gombok .is-aktiv { background: var(--kek); color: #fff; box-shadow: 0 4px 10px -4px rgba(10, 133, 194, .75); }
.lapozo__gombok .is-tiltott { color: var(--muted-2); }

/* ---------- Üzenetek ---------- */
.flash { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 500; border: 1px solid; }
.flash--siker { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok-ink); }
.flash--hiba { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger-ink); }
.flash--figyel { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-ink); }
.flash--info { background: var(--info-bg); border-color: var(--info-border); color: var(--info-ink); }
.flash ul { margin: 4px 0 0; padding-left: 18px; }

.toastok { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
    pointer-events: auto; display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 420px; padding: 12px 16px; border-radius: 13px;
    background: var(--mely); color: #fff; box-shadow: var(--shadow-l); font-weight: 500; animation: toast-be .25s ease-out; border: 1px solid rgba(255, 255, 255, .08);
}
.toast .ikon { color: #4fd8b0; }
.toast.toast--hiba .ikon { color: #f28a99; }
.toast.is-tunik { opacity: 0; transform: translateY(8px); transition: all .25s; }
@keyframes toast-be { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* ---------- Modális ablak ---------- */
.modal-hatter { position: fixed; inset: 0; z-index: 90; background: rgba(6, 35, 48, .5); backdrop-filter: blur(4px); display: none; place-items: center; padding: 16px; }
.modal-hatter.is-nyitva { display: grid; animation: hatter-be .15s ease-out; }
.modal { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-l); padding: 24px; animation: modal-be .2s ease-out; }
.modal__ikon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--danger-bg); color: var(--danger-ink); margin-bottom: 14px; }
.modal h3 { font-size: 18px; font-weight: 700; }
.modal p { color: var(--muted); margin: 8px 0 22px; }
.modal__gombok { display: flex; gap: 10px; justify-content: flex-end; }
@keyframes hatter-be { from { opacity: 0; } }
@keyframes modal-be { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- Üres állapot ---------- */
.ures { text-align: center; padding: 56px 20px; color: var(--muted); }
.ures__ikon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.ures h3 { color: var(--ink); font-size: 16px; margin-bottom: 6px; }

/* ---------- Csoport kártyák ---------- */
.csoport-racs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.csoport-kartya { --c: var(--primary); position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-s); overflow: hidden; transition: box-shadow .2s, transform .2s; color: inherit; }
.csoport-kartya:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
.csoport-kartya__fej { padding: 18px 18px 14px; display: flex; gap: 14px; align-items: flex-start; }
.csoport-kartya__ikon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex-shrink: 0; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #000)); box-shadow: 0 8px 18px -8px var(--c); }
.csoport-kartya h3 { font-size: 16px; font-weight: 700; }
.csoport-kartya h3 a { color: var(--ink); }
.csoport-kartya h3 a:hover { color: var(--c); }
.csoport-kartya p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }
.csoport-kartya__szamok { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 18px; gap: 8px; }
.csoport-kartya__szamok div { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.csoport-kartya__szamok b { display: block; font-size: 18px; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-transform: none; }
.csoport-kartya__sav { padding: 14px 18px 16px; }
.csoport-kartya__sav small { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.csoport-kartya__lab { margin-top: auto; padding: 14px 18px; display: flex; gap: 6px; align-items: center; border-top: 1px solid var(--border); background: var(--surface-2); }
.csoport-kartya__lab .btn--soft { --primary-50: color-mix(in srgb, var(--c) 13%, var(--surface)); --primary-100: color-mix(in srgb, var(--c) 22%, var(--surface)); --primary-600: color-mix(in srgb, var(--c) 78%, var(--mix)); }
.ok-szin { color: var(--ok-ink); } .warn-szin { color: var(--warn-ink); } .danger-szin { color: var(--danger-ink); }

/* ---------- Bejelentkezés ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--surface); }
.auth__muveszet {
    position: relative; overflow: hidden; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
    background:
        radial-gradient(55% 45% at 85% 12%, rgba(239, 125, 43, .5) 0%, rgba(239, 125, 43, 0) 70%),
        radial-gradient(70% 60% at 0% 100%, rgba(23, 184, 196, .45) 0%, rgba(23, 184, 196, 0) 70%),
        linear-gradient(150deg, #041a24 0%, #075580 45%, #0a85c2 100%);
}
.auth__muveszet::before {
    content: ""; position: absolute; inset: 0; opacity: .12;
    background-image: linear-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .6) 1px, transparent 1px);
    background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.auth__muveszet > * { position: relative; }
.auth__logo { display: flex; align-items: center; gap: 14px; }
.auth__logo .logo-mark { width: 52px; height: 52px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
.auth__logo .logo-szoveg b { font-size: 28px; }
.auth__szlogen h2 { font-size: clamp(28px, 1.4rem + 1.6vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; max-width: 15ch; }
.auth__szlogen p { opacity: .85; max-width: 42ch; font-size: 15px; margin-top: 14px; }
.auth__kartyak { display: flex; gap: 12px; flex-wrap: wrap; }
.auth__kartya { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); display: flex; gap: 12px; align-items: center; font-size: 13px; }
.auth__kartya .ikon { color: #8fe3ea; }
.auth__urlap { position: relative; display: grid; place-items: center; padding: 72px 24px 40px; background: var(--bg); }
.auth__doboz { width: 100%; max-width: 400px; }
.auth__doboz h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.auth__doboz > p { color: var(--muted); margin: 8px 0 28px; }
.auth__doboz form { display: flex; flex-direction: column; gap: 18px; }
.auth__lab { margin-top: 26px; text-align: center; font-size: 12.5px; color: var(--muted-2); display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.auth__mobil-logo { display: none; align-items: center; gap: 12px; margin-bottom: 28px; }
.auth__mobil-logo .logo-mark { width: 44px; height: 44px; }
.auth__mobil-logo .logo-szoveg b { color: var(--ink); }
.auth__mobil-logo .logo-szoveg b span { background: var(--grad-meleg); -webkit-background-clip: text; background-clip: text; }

/* ---------- Hibaoldalak ---------- */
.hibaoldal { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; background: radial-gradient(60% 50% at 50% 0%, var(--primary-100) 0%, var(--bg) 70%); }
.hibaoldal__kod { font-size: 96px; font-weight: 800; letter-spacing: -.05em; line-height: 1; background: var(--grad-meleg); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hibaoldal h1 { font-size: 22px; margin: 12px 0 8px; }
.hibaoldal p { color: var(--muted); max-width: 44ch; margin: 0 auto 24px; }
.hibaoldal .logo-mark { width: 56px; height: 56px; display: block; }

/* ---------- Kód / napló ---------- */
.hibaszoveg { font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--danger-ink); background: var(--danger-bg); border-radius: 8px; padding: 6px 9px; margin-top: 6px; white-space: pre-wrap; word-break: break-word; max-width: 720px; }
.adat-racs { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 13px; margin: 0; }
.adat-racs dt { color: var(--muted); }
.adat-racs dd { margin: 0; font-weight: 600; word-break: break-all; }

/* ---------- Változásnapló ---------- */
.valtozasnaplo { max-width: 860px; }
.valtozasnaplo h1 { display: none; }
.valtozasnaplo h2 { display: flex; align-items: baseline; gap: 12px; font-size: 20px; font-weight: 800; margin: 34px 0 12px; padding-top: 22px; border-top: 1px solid var(--border); }
.valtozasnaplo h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.valtozasnaplo h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; }
.valtozasnaplo ul { margin: 0; padding-left: 20px; }
.valtozasnaplo li { margin: 5px 0; }
.valtozasnaplo li::marker { color: var(--turkiz); }
.valtozasnaplo p { color: var(--muted); }
.verzio-jel { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--primary-50); color: var(--primary); font-weight: 700; font-size: 12px; }

/* ---------- Segédosztályok ---------- */
.csak-keskeny { display: none !important; }

/* ---------- Reszponzív ---------- */
@media (max-width: 1680px) {
    .rejt-szeles { display: none; }
    .csak-keskeny { display: block !important; }
}
@media (max-width: 1400px) {
    .kpi-racs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
    .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
    .hero__racs { grid-template-columns: 1fr; }
}
@media (min-width: 900px) and (max-width: 1200px) {
    .span-4 { grid-column: span 6; }
}
@media (min-width: 981px) {
    .tomeges-sav { left: calc(var(--sidebar-w) + 16px); }
}
@media (max-width: 980px) {
    .app { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: 0; top: 0; width: var(--sidebar-w); transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-l); }
    .sidebar.is-nyitva { transform: none; }
    .sidebar-hatter { position: fixed; inset: 0; background: rgba(6, 35, 48, .45); z-index: 35; }
    .sidebar-hatter.is-nyitva { display: block; }
    .topbar { padding: 0 16px; gap: 8px; }
    .topbar .topbar__menu { display: inline-flex; }
    .content { padding: 20px 16px 96px; }
    .felh-menu__nev, .gkereso kbd { display: none; }
    .auth { grid-template-columns: 1fr; }
    .auth__muveszet { display: none; }
    .auth__mobil-logo { display: flex; }
}
@media (max-width: 640px) {
    .kpi-racs, .hero__szamok, .mini-csempek { grid-template-columns: 1fr; }
    .urlap-racs { grid-template-columns: 1fr; }
    .egeszseg { grid-template-columns: 1fr; justify-items: center; }
    .egeszseg .jelmagyarazat { width: 100%; }
    .hero { padding: 22px 20px; }
    .rejt-mobil { display: none; }
    .csoport-kartya__szamok { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
    .topbar .valto { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
    .sidebar, .topbar, .tomeges-sav, .oldalfej__gombok { display: none !important; }
    .app { display: block; }
}

/* Békés megyei jelölés, szűrő-kapcsoló, tevékenység szerinti export */
.megye-jel { display: inline-flex; align-items: center; gap: 3px; margin-left: 7px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
    color: var(--warn-ink); background: var(--warn-bg); border: 1px solid var(--warn-border); vertical-align: 2px; white-space: nowrap; }
.szuro-kapcsolo { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 13px; border: 1px solid var(--border-2); border-radius: 11px;
    background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-xs); }
.szuro-kapcsolo input { position: absolute; opacity: 0; pointer-events: none; }
.szuro-kapcsolo:has(input:checked) { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-ink); }
.szuro-kapcsolo:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.tev-export { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Hírlevél modul */
.szerk-eszkoztar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px; border: 1px solid var(--border-2); border-bottom: 0; border-radius: 11px 11px 0 0; background: var(--surface-2); }
.szerk-eszkoztar .sep { width: 1px; height: 22px; background: var(--border-2); margin: 0 4px; }
.szerk-terulet { border-radius: 0 0 11px 11px; font: 13.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 340px; }
.elonezet-targy { font-size: 13px; padding: 8px 12px; border: 1px solid var(--border); border-bottom: 0; border-radius: 11px 11px 0 0; background: var(--surface-2); }
.elonezet-keret { display: block; width: 100%; height: 620px; border: 1px solid var(--border); border-radius: 0 0 11px 11px; background: #eef3f6; }
.becsles { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--ok-bg); border: 1px solid var(--ok-border); color: var(--ok-ink); }
.becsles b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.becsles span { font-weight: 600; } .becsles small { color: var(--muted); }
.becsles.is-tolt b { opacity: .45; }
.csoport-valaszto { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow-y: auto; padding: 4px; border: 1px solid var(--border); border-radius: 11px; }
.csoport-valaszto__sor { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 8px; cursor: pointer; }
.csoport-valaszto__sor:hover { background: var(--hover-sor); }
.csoport-valaszto__sor .chip { max-width: none; flex: 1; }
.inditas { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inditas .mezo { flex: 1 1 220px; }

.cegtar-link { display: inline-flex; margin-left: 6px; color: var(--muted-2); vertical-align: -1px; }
.cegtar-link:hover { color: var(--primary); }
.nev-sor { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.nev-sor .cella-fo { display: inline; }

/* Kezdőlap – területi megoszlás */
.megye-tabla { max-height: 468px; overflow: auto; }
.megye-tabla .rang-sor__hely { width: 22px; height: 22px; font-size: 11px; }
.megye-tabla td:first-child { white-space: nowrap; }
.megye-tabla td:first-child .rang-sor__hely { vertical-align: middle; }

/* Kezdőlap – hírlevél-elemzések */
a.hero__szam { color: inherit; text-decoration: none; transition: background .15s; }
a.hero__szam:hover { background: rgba(255, 255, 255, .16); }
.hero__szam span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tolcser { display: flex; flex-direction: column; gap: 14px; }
.tolcser__sor > div { display: flex; align-items: baseline; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.tolcser__sor > div span { flex: 1; color: var(--ink-2); }
.tolcser__sor > div b { font-variant-numeric: tabular-nums; }
.tolcser__sor > div small { min-width: 48px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.tolcser__sor .sav { margin: 0; height: 10px; }
.het-napok { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.het-napok div { text-align: center; }
.het-napok i { display: block; height: 22px; border-radius: 6px; background: var(--narancs); }
.het-napok small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); text-transform: capitalize; }
.het-napok .is-csucs small { color: var(--narancs-600); font-weight: 700; }

/* Partnercsoportok – munkafolyamat (rendszercsoportok) és háttércsoport */
.folyamat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.folyamat-lepes { --c: var(--primary); position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 0; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--c); border-radius: var(--radius); box-shadow: var(--shadow-s); min-width: 0; }
.folyamat-lepes:not(:last-child)::after { content: "›"; position: absolute; right: -19px; top: 34px; width: 16px; text-align: center; font: 800 24px/1 var(--font); color: var(--muted-2); }
.folyamat-lepes__fej { display: flex; align-items: center; gap: 10px; }
.folyamat-lepes__fej h3 { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 700; }
.folyamat-lepes__fej h3 a { color: var(--ink); }
.folyamat-lepes__fej h3 a:hover { color: var(--c); }
.folyamat-lepes__szam { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--c); flex-shrink: 0; }
.folyamat-lepes__zar { color: var(--muted-2); display: inline-flex; }
.folyamat-lepes__db { display: flex; align-items: baseline; gap: 6px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.folyamat-lepes__db small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.folyamat-lepes__mini { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.folyamat-lepes__mini b { color: var(--ink); font-variant-numeric: tabular-nums; }
.folyamat-lepes__auto { flex: 1; }
.folyamat-lepes__auto .badge:first-child { margin-top: 0 !important; }
.folyamat-lepes__lab { display: flex; gap: 4px; align-items: center; margin: 0 -18px; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.hatter-csoport { --c: var(--muted); display: flex; align-items: center; gap: 12px; margin-top: 26px; padding: 12px 16px; border: 1px dashed var(--border-2); border-radius: 12px; color: var(--muted); font-size: 13px; }
.hatter-csoport__ikon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex-shrink: 0; }
.hatter-csoport__nev { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hatter-csoport__nev a { color: var(--ink-2); }
.hatter-csoport__nev .badge { background: none; padding: 0; margin-top: 2px !important; color: var(--muted); font-weight: 500; }
.hatter-csoport__db { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 1180px) { .folyamat { grid-template-columns: repeat(2, minmax(0, 1fr)); } .folyamat-lepes:nth-child(2)::after { display: none; } }
@media (max-width: 640px) { .folyamat { grid-template-columns: 1fr; } .folyamat-lepes::after { display: none; } .hatter-csoport { flex-wrap: wrap; } }
.kizart-megj { margin: -4px 0 16px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.kizart-megj a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border-2); }

/* Hírlevél – ágazatválasztó (TEÁOR) */
.agazat-valaszto { border: 1px solid var(--border); border-radius: 11px; overflow: hidden; }
.agazat-valaszto > .input-ikon { margin: 6px; }
.agazat-valaszto > .input-ikon .input { height: 36px; }
.agazat-valaszto__lista { max-height: 340px; overflow-y: auto; padding: 0 4px 4px; }
.agazat-ag__fej { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 8px; }
.agazat-ag__fej:hover { background: var(--hover-sor); }
.agazat-ag__nyit { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.agazat-ag__nyit b { width: 18px; color: var(--primary); }
.agazat-ag__nyit span { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; }
.agazat-ag__nyit .ikon { color: var(--muted); transition: transform .15s; }
.agazat-ag.is-nyitva .agazat-ag__nyit .ikon, .agazat-ag.is-kereses .agazat-ag__nyit .ikon { transform: rotate(180deg); }
.agazat-ag__sorok { display: none; padding-left: 26px; }
.agazat-ag.is-nyitva .agazat-ag__sorok, .agazat-ag.is-kereses .agazat-ag__sorok { display: block; }
.agazat-sor { display: flex; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.agazat-sor:hover { background: var(--hover-sor); }
.agazat-sor > span { flex: 1; min-width: 0; }
.agazat-sor > span .num { color: var(--muted); font-weight: 600; margin-right: 2px; }
.agazat-sor.is-ures { opacity: .5; }
.agazat-sor--kulon { margin-top: 4px; border-top: 1px dashed var(--border); border-radius: 0; padding-top: 8px; }
.agazat-valaszto__lab { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 12px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: 12.5px; color: var(--muted); }
.agazat-valaszto__lab b { color: var(--ink); }

/* Telepíthető alkalmazás (PWA) */
.pwa-sav { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 120;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: min(560px, calc(100vw - 32px));
    padding: 10px 12px 10px 16px; border-radius: 14px; background: #10232c; color: #e6f0f4; font-size: 13.5px; box-shadow: var(--shadow-m); }
.pwa-sav a { color: #8fd3ea; font-weight: 600; }
.pwa-sav__x { margin-left: auto; background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: .7; }
@media (display-mode: standalone) {
    .topbar { padding-top: max(10px, env(safe-area-inset-top)); }
    .sidebar { padding-top: env(safe-area-inset-top); }
}

/* ============ Mobil monitorozó alkalmazás (/app) ============ */
/* Alkalmazáskeret: a keret a látható képernyő felső és alsó széléhez rögzített (nem magasságszámításból jön – a vh/dvh
   egyes Android-böngészőkben a rendszersáv alá lóg), csak a tartalom görög; a menüsor így mindig a legalján, látható. */
html.m-html { height: 100%; overflow: hidden; }
.m-body { position: fixed; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.m-fej { flex: none; position: relative; z-index: 20; display: flex; align-items: center; gap: 10px;
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--topbar-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.m-fej__logo { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; flex: 1; }
.m-fej__logo span { display: flex; flex-direction: column; min-width: 0; }
.m-fej__logo b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.m-fej__logo small { font-size: 11px; color: var(--muted); }
.m-fej__ido { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.m-tartalom { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
    display: flex; flex-direction: column; gap: 12px; padding: 14px max(14px, calc((100% - 640px) / 2)) 16px; }
.m-tartalom > * { flex-shrink: 0; }
.m-racs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.m-racs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m-kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
    border-top: 3px solid var(--acc, var(--primary)); color: var(--ink); min-width: 0; }
.m-kpi small { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.m-kpi b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.m-kpi span { font-size: 12px; color: var(--muted); align-self: flex-start; }
.m-kartya { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--ink); }
.m-kartya__fej { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 700; }
.m-kartya__fej > span { display: inline-flex; align-items: center; gap: 6px; }
.m-kartya__fej small { font-weight: 500; color: var(--muted); font-size: 12px; }
.m-kartya__fej a { font-size: 12.5px; font-weight: 600; }
.m-kartya .sav { margin: 0; height: 7px; }
.m-futo { border-color: color-mix(in srgb, var(--ok) 40%, var(--border)); }
.m-futo__nev { font-weight: 700; font-size: 15px; }
.m-futo small { color: var(--muted); font-size: 12px; }
.m-folyamat { display: flex; flex-direction: column; gap: 8px; }
.m-folyamat__sor { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13.5px; }
.m-folyamat__sor > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.m-folyamat__sor b { font-variant-numeric: tabular-nums; }
.m-folyamat__lepes { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--c); }
.m-folyamat__sor.is-hatter { opacity: .6; }
.m-feladat { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px dashed var(--border); font-size: 13px; }
.m-feladat:first-of-type { border-top: 0; padding-top: 0; }
.m-lista-sor { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); color: var(--ink); }
.m-lista-sor__fo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.m-lista-sor__fo b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-lista-sor__fo small { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.m-lista-sor__szam { text-align: right; display: flex; flex-direction: column; }
.m-lista-sor__szam b { font-size: 17px; font-variant-numeric: tabular-nums; }
.m-lista-sor__szam small { font-size: 11px; color: var(--muted); }
.m-sav-sor { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: 13px; }
.m-sav-sor > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-sav-sor b { font-variant-numeric: tabular-nums; }
.m-sav-sor .sav { grid-column: 1 / -1; height: 5px; }
.m-tolcser > div { display: flex; align-items: baseline; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.m-tolcser > div span { flex: 1; }
.m-tolcser small { color: var(--muted); min-width: 36px; text-align: right; }
.m-orak { display: flex; align-items: flex-end; gap: 2px; height: 80px; }
.m-orak i { flex: 1; background: var(--narancs); border-radius: 3px 3px 0 0; opacity: .85; }
.m-orak__tengely { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); }
.m-link { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0; }
.m-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.m-mini { display: flex; flex-direction: column; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.m-mini small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.m-mini b { font-size: 18px; font-variant-numeric: tabular-nums; }
.m-hiba { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px dashed var(--border); font-size: 12.5px; }
.m-hiba:first-of-type { border-top: 0; }
.m-hiba small { color: var(--muted); }
.m-ures { color: var(--muted); font-size: 13px; padding: 8px 0; display: flex; align-items: center; gap: 6px; }
.m-cim { font-size: 18px; font-weight: 800; margin: 0; }
.m-sor-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.m-vissza { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.m-teljes { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.m-nav { flex: none; position: relative; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--topbar-bg); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
.m-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 12px; font-size: 11px; font-weight: 600; color: var(--muted); }
.m-nav a.is-aktiv { color: var(--primary); background: var(--primary-50); }
.m-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 130;
    max-width: calc(100vw - 32px); padding: 10px 14px; border-radius: 12px; background: #10232c; color: #e6f0f4; font-size: 13px; box-shadow: var(--shadow-m); }
.m-toast.is-hiba { background: var(--danger-600); }
.m-body .pwa-sav { bottom: calc(84px + env(safe-area-inset-bottom)); }

/* Partner – hírlevél-előzmények */
.elozmeny-osszesito { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 20px 16px; }
.elozmeny-osszesito > div { display: flex; flex-direction: column; padding: 12px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.elozmeny-osszesito small { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.elozmeny-osszesito b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.elozmeny-osszesito .elozmeny-osszesito__ido { font-size: 15px; padding: 3px 0 2px; }
.elozmeny-osszesito span { font-size: 12px; color: var(--muted); }
.elozmeny-jel { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; }
.elozmeny-jel.is-ok { color: var(--info-ink, var(--primary)); }
.elozmeny-jel.is-katt { color: var(--ok-600); }
@media (max-width: 760px) { .elozmeny-osszesito { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Mobil monitor – indítóképernyő (splash): a rendszer splash-e (#06324a) után, azonos alapszínnel */
.m-splash { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 500; display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; overflow: hidden; background: linear-gradient(165deg, #06324a 0%, #075580 42%, #0a85c2 78%, #17a7c4 100%);
    transition: opacity .55s ease, transform .55s ease, visibility 0s linear .55s; }
.m-splash.is-tunik { opacity: 0; transform: scale(1.04); visibility: hidden; }
.m-splash__hatter { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-splash__ivek circle { transform-origin: 200px 300px; animation: spl-pulzus 3.2s ease-in-out infinite; }
.m-splash__ivek circle:nth-child(2) { animation-delay: .4s; }
.m-splash__ivek circle:nth-child(3) { animation-delay: .8s; }
.m-splash__hullamok path { animation: spl-hullam 6s ease-in-out infinite alternate; }
.m-splash__hullamok path:nth-child(2) { animation-duration: 7s; }
.m-splash__hullamok path:nth-child(3) { animation-duration: 8s; }
.m-splash__kozep { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: -8vh; text-align: center; padding: 0 24px; }
.m-splash__logo { width: 96px; height: 96px; border-radius: 28px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .18);
    animation: spl-be .7s cubic-bezier(.2, .9, .3, 1.25) both; }
.m-splash__logo svg { display: block; border-radius: 28px; }
.m-splash__c { stroke-dasharray: 60; stroke-dashoffset: 60; animation: spl-rajz .9s .25s ease-out forwards; }
.m-splash__sav { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); animation: spl-sav .45s ease-out forwards; }
.m-splash__sav--1 { animation-delay: .65s; }
.m-splash__sav--2 { animation-delay: .78s; }
.m-splash__sav--3 { animation-delay: .91s; }
.m-splash__nev { margin: 26px 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; animation: spl-fel .6s .35s ease-out both; }
.m-splash__nev span { font-weight: 300; opacity: .85; }
.m-splash__szlogen { margin: 0; font-size: 13.5px; letter-spacing: .06em; opacity: .78; animation: spl-fel .6s .5s ease-out both; }
.m-splash__tolt { width: 120px; height: 3px; margin-top: 34px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; animation: spl-fel .6s .65s ease-out both; }
.m-splash__tolt i { display: block; width: 40%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #8fd3ea, #fff, #ef7d2b); animation: spl-tolt 1.1s ease-in-out infinite; }
.m-splash__lab { position: absolute; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 10px;
    font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.m-splash__lab span + span::before { content: "·"; margin-right: 10px; }
@keyframes spl-be { from { opacity: 0; transform: scale(.6) translateY(10px); } }
@keyframes spl-rajz { to { stroke-dashoffset: 0; } }
@keyframes spl-sav { to { transform: scaleX(1); } }
@keyframes spl-fel { from { opacity: 0; transform: translateY(12px); } }
@keyframes spl-tolt { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes spl-pulzus { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .6; } }
@keyframes spl-hullam { to { transform: translateX(-24px); } }
@media (prefers-reduced-motion: reduce) {
    .m-splash *, .m-splash { animation: none !important; }
    .m-splash__c { stroke-dashoffset: 0; }
    .m-splash__sav { transform: none; }
}
