/* ==========================================================================
   Alphagenda – „Zsálya” kinézet (docs/design/Admin Zsalya + Foglalo Zsalya)
   Source Sans 3 betű, zsályazöld kiemelés, meleg törtfehér / mély zöldesszürke sötét mód.
   A téma kapcsolója változatlanul a html.dark osztály (App.razor: agTheme).
   ========================================================================== */

:root {
    /* Zsálya alap tokenek (világos) */
    --bg: #F5F3EE; --pn: #FFFFFF; --bd: #E6E1D8; --ln: #EFEBE3; --hv: #F8F6F1; --bd3: #D3CCBF;
    --rail: #FFFFFF; --tx: #4A524E; --hint: #656C65; --hint2: #757B73; --hd: #26302C;
    --ac: #2F7D6B; --acT: #2A6F5F; --acOn: #FFFFFF; --acSoft: rgba(47,125,107,.10); --acSoft2: rgba(47,125,107,.05); --acDim: #CFE3DB;
    --stripe: #EFEBE3; --grad: #E7F0EC; --gradBd: #CFE3DB; --pnA: rgba(255,255,255,.94);
    --infoBg: rgba(47,95,117,.08); --infoFg: #2F5F75; --warn: #8A5414; --warnBg: rgba(230,188,133,.20);
    --danger: #A03A2C; --dangerBg: rgba(240,154,140,.16); --okT: #2C6E45; --okBg: rgba(124,203,181,.18);
    --sh: 0 6px 24px rgba(38,48,44,.06);

    /* A régi ag-* nevek a Zsálya tokenekre mutatnak, így minden komponens követi */
    --ag-primary: var(--ac); --ag-primary-hover: var(--acT); --ag-primary-dark: var(--acT); --ag-primary-soft: var(--acSoft);
    --ag-success: #3F9A6E; --ag-success-soft: var(--okBg); --ag-success-text: var(--okT);
    --ag-warning: #D9A35F; --ag-warning-soft: var(--warnBg); --ag-warning-text: var(--warn);
    --ag-danger: var(--danger); --ag-danger-soft: var(--dangerBg); --ag-danger-text: var(--danger);
    --ag-bg: var(--bg); --ag-surface: var(--pn); --ag-surface-2: var(--hv); --ag-nav-bg: var(--rail);
    --ag-text: var(--tx); --ag-text-strong: var(--hd); --ag-muted: var(--hint);
    --ag-border: var(--bd); --ag-border-strong: var(--bd3); --ag-shadow: none;

    --bs-font-sans-serif: 'Source Sans 3', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-bg: var(--bg); --bs-body-color: var(--tx); --bs-emphasis-color: var(--hd);
    --bs-border-color: var(--bd); --bs-secondary-color: var(--hint); --bs-tertiary-bg: var(--hv);
    --bs-primary: #2F7D6B; --bs-primary-rgb: 47, 125, 107;
    --bs-link-color: var(--acT); --bs-link-color-rgb: 42, 111, 95; --bs-link-hover-color: var(--ac);
    --bs-success-rgb: 63, 154, 110;
    --dxbl-text-font-size: 14px;
    color-scheme: light;
}

html.dark {
    --bg: #161C1A; --pn: #1F2724; --bd: #2E3935; --ln: #27302D; --hv: #25302C; --bd3: #3F4D47;
    --rail: #121715; --tx: #C2CEC9; --hint: #93A29C; --hint2: #7A8983; --hd: #EEF3F0;
    --ac: #4FA58F; --acT: #7CCBB5; --acOn: #0F1513; --acSoft: rgba(79,165,143,.14); --acSoft2: rgba(79,165,143,.07); --acDim: #2F5A4F;
    --stripe: #222A27; --grad: #23332D; --gradBd: #2F4A40; --pnA: rgba(31,39,36,.94);
    --infoBg: rgba(134,167,199,.12); --infoFg: #A9C4DE; --warn: #E6BC85; --warnBg: rgba(230,188,133,.13);
    --danger: #F09A8C; --dangerBg: rgba(240,154,140,.13); --okT: #7CCBB5; --okBg: rgba(124,203,181,.12);
    --sh: 0 6px 24px rgba(0,0,0,.25);
    --ag-success: #7CCBB5; --ag-warning: #E6BC85;
    --bs-primary: #4FA58F; --bs-primary-rgb: 79, 165, 143; --bs-link-color-rgb: 124, 203, 181;
    color-scheme: dark;
}

html, body {
    font-family: var(--bs-font-sans-serif);
    font-size: 15px;
    background: var(--bg);
    color: var(--tx);
}
body { min-height: 100vh; }
::selection { background: var(--acDim); }

h1, h2, h3, h4, h5, h6 { color: var(--hd); font-weight: 700; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
a { color: var(--acT); }
a:hover { color: var(--ac); }
.text-muted, .text-secondary { color: var(--hint) !important; }
.text-success { color: var(--okT) !important; }
.text-danger { color: var(--danger) !important; }
.border-bottom, .border-top, .border { border-color: var(--ln) !important; }
hr { border-color: var(--bd); opacity: 1; }
code { color: var(--acT); }

/* ══════════════════════════════════════════════════════════════════
   Admin váz: bal oldali függőleges sáv (rail) + tartalom
   ══════════════════════════════════════════════════════════════════ */
.ag-shell { display: flex; min-height: 100vh; }
.ag-rail {
    position: sticky; top: 0; height: 100vh; flex: none; width: 76px; z-index: 1000;
    display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0;
    background: var(--rail); border-right: 1px solid var(--bd);
}
.ag-rail-logo {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 10px; flex: none;
    background: var(--ac); color: var(--acOn); font-weight: 800; font-size: 19px; text-decoration: none;
}
.ag-rail-logo:hover { color: var(--acOn); }
/* Feltöltött logó (Beállítások › Általános › Megjelenés): nincs színes doboz, a kép arányosan befér a sávba. */
.ag-rail-logo.has-img { width: 62px; height: 48px; border-radius: 0; background: none; }
.ag-rail-logo.has-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.ag-nav { display: flex; flex-direction: column; align-items: center; gap: 4px; overflow-y: auto; scrollbar-width: none; flex: 1; min-height: 0; }
.ag-nav a {
    position: relative; width: 60px; flex: none; border-radius: 14px; padding: 9px 0 7px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    color: var(--hint); text-decoration: none; font-size: 10px; font-weight: 700; line-height: 1.1; text-align: center;
    transition: background .15s, color .15s;
}
.ag-nav a i { font-size: 17px; }
.ag-nav a:hover { background: var(--hv); color: var(--hd); }
.ag-nav a.active { background: var(--ac); color: var(--acOn); }
html.dark .ag-nav a.active { color: #1F2A26; }
.ag-nav .ag-nav-badge {
    position: absolute; top: 3px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
    background: #E6BC85; color: #3A2A10; font-size: 10px; font-weight: 800; display: grid; place-items: center;
}
.ag-rail-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 8px; flex: none; }
.ag-rail-btn {
    width: 42px; height: 42px; border-radius: 12px; border: 0; display: grid; place-items: center;
    background: var(--bd); color: var(--hd); font-size: 15px; cursor: pointer; text-decoration: none;
}
.ag-rail-btn:hover { background: var(--bd3); color: var(--hd); }
.ag-avatar {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
    background: linear-gradient(135deg, #7CCBB5, #86A7C7); color: #13201B; font-weight: 800; font-size: 13px; text-decoration: none;
}
a.ag-avatar:hover { color: #13201B; box-shadow: 0 0 0 3px var(--acSoft); }

.ag-main { flex: 1; min-width: 0; }
.ag-content { padding: 24px 28px 90px; }

/* Bejelentkezetlen / ügyfél felső sáv */
.ag-navbar {
    position: sticky; top: 0; z-index: 1000;
    display: flex; align-items: center; gap: 12px;
    min-height: 66px; padding: 0 22px;
    background: var(--bg); border-bottom: 1px solid var(--bd);
}
.ag-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: 18px; min-width: 0; }
.ag-brand-mark {
    width: 40px; height: 40px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    background: var(--ac); color: var(--acOn); font-weight: 800; font-size: 17px;
}
.ag-brand-logo { height: 44px; width: auto; max-width: 180px; object-fit: contain; flex: none; display: block; }
.ag-brand-name { font-weight: 800; font-size: 16px; color: var(--hd); display: block; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-brand-tenant { font-size: 12px; color: var(--hint); display: block; line-height: 1.2; }
.ag-user { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ag-icon-btn {
    border: 0; background: transparent; color: var(--hint);
    width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; flex: none;
}
.ag-icon-btn:hover { background: var(--hv); color: var(--hd); }
.ag-round-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bd); background: var(--pn);
    color: var(--hd); display: inline-grid; place-items: center; cursor: pointer; flex: none;
}
.ag-round-btn:hover { background: var(--hv); }

/* ── Oldalfej: kicker + nagy cím ─────────────────────────────────── */
.ag-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.ag-page-head h1 { margin: 0; }
.ag-page-head p { margin: 6px 0 0; color: var(--hint); max-width: 760px; }
.ag-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acT); margin-bottom: 4px; }

.card, .ag-card {
    background: var(--pn);
    border: 1px solid var(--bd);
    border-radius: 18px;
    margin-bottom: 20px;
    color: var(--tx);
}
.ag-card-body { padding: 20px 22px; }
.ag-card-head { padding: 16px 22px; border-bottom: 1px solid var(--ln); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ag-cal-targets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ag-cal-target { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--bd); border-radius: 12px; background: var(--bg); color: var(--hd); font-weight: 600; text-align: left; }
.ag-cal-target i { font-size: 18px; width: 20px; text-align: center; color: var(--acT); }
.ag-cal-target:hover { border-color: var(--acT); }
.ag-cal-target.on { border-color: var(--acT); background: var(--acSoft); box-shadow: inset 0 0 0 1px var(--acT); }
.ag-cal-howto { background: var(--bg); border: 1px solid var(--bd); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.ag-cal-howto ol { padding-left: 20px; }
.ag-cal-howto li { margin-bottom: 4px; }
.ag-audit-filters { justify-content: flex-start; }
.ag-audit-filters > .form-control { flex: 1 1 220px; max-width: 320px; }
.ag-audit-filters > .form-select { flex: 0 1 200px; width: auto; }
.ag-audit-dates { display: flex; align-items: center; gap: 6px; }
.ag-audit-dates .form-control { width: 150px; }
@media (max-width: 640px) {
    .ag-audit-filters > .form-control, .ag-audit-filters > .form-select { flex-basis: 100%; max-width: none; }
    .ag-audit-dates { flex-basis: 100%; }
    .ag-audit-dates .form-control { flex: 1; width: auto; }
}
.ag-card-head h3, .ag-card-head h4 { margin: 0; font-size: 16px; font-weight: 800; }

.ag-hint { font-size: 12.5px; color: var(--hint); }
.ag-lead { font-size: 14px; line-height: 1.6; color: var(--tx); }

/* ── Stat kártyák ───────────────────────────────────────────────── */
.ag-stat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; height: calc(100% - 20px); }
a.ag-stat:hover { border-color: var(--bd3); }
.ag-stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; background: var(--acSoft); color: var(--acT); flex: none; }
.ag-stat-value { font-size: 30px; font-weight: 800; color: var(--hd); line-height: 1.05; letter-spacing: -.02em; }
.ag-stat-label { font-size: 12px; color: var(--hint); }
.ag-stat-kick { font-size: 12px; color: var(--hint); margin-bottom: 6px; }

/* ── Integráció / beállítás kártyák ─────────────────────────────── */
.int-card { border: 1px solid var(--bd); border-radius: 18px; background: var(--pn); margin-bottom: 18px; overflow: hidden; }
.int-card.open { border-color: var(--bd); }
.int-card-head { display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; }
.int-card-head .int-title { font-weight: 800; color: var(--hd); margin: 0; font-size: 15px; }
.int-card-head .int-sub { font-size: 12.5px; color: var(--hint); margin: 3px 0 8px; }

/* Állapot-pirulák (Zsálya STC) */
.int-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
.int-badge.on { background: rgba(124,203,181,.14); color: var(--okT); }
.int-badge.off { background: rgba(147,162,156,.14); color: var(--hint); }
.int-badge.warn { background: rgba(230,188,133,.16); color: var(--warn); }
.int-badge.bad { background: rgba(240,154,140,.15); color: var(--danger); }
.int-badge.info { background: rgba(134,167,199,.16); color: var(--infoFg); }

/* ── Online foglalás összefoglaló sorok ─────────────────────────── */
.obs-intro { padding: 16px 22px 6px; border-top: 1px solid var(--ln); }
.obs-row { display: grid; grid-template-columns: 34px 230px 1fr auto; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--ln); }
.obs-row:last-child { border-bottom: 0; }
.obs-num { width: 26px; height: 26px; border-radius: 50%; background: var(--bd); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--hd); flex: none; }
.obs-title { font-weight: 700; color: var(--hd); font-size: 14px; }
.obs-summary { font-size: 12.5px; color: var(--hint); }
@media (max-width: 900px) {
    .obs-row { grid-template-columns: 34px 1fr auto; }
    .obs-summary { grid-column: 2 / 4; grid-row: 2; }
}

/* ── Lépés / fül pirulák ────────────────────────────────────────── */
.ag-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.ag-steps a {
    display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px;
    border: 1px solid var(--bd); background: var(--pn); color: var(--tx); text-decoration: none; font-size: 13px; font-weight: 600;
}
.ag-steps a:hover { background: var(--hv); }
.ag-steps a.active { border-color: var(--ac); background: var(--ac); color: var(--acOn); font-weight: 800; }
.ag-steps a.active .obs-num, .ag-steps a.active .ag-count { background: var(--acOn); color: var(--ac); }
.ag-steps a .obs-num { width: 22px; height: 22px; font-size: 11px; }

/* Bootstrap fülek ugyanígy */
.nav-tabs { border: 0; gap: 6px; margin-bottom: 20px !important; flex-wrap: wrap; }
.nav-tabs .nav-link {
    border: 1px solid var(--bd) !important; border-radius: 12px !important; background: var(--pn); color: var(--tx);
    height: 38px; padding: 0 14px; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; margin: 0;
}
.nav-tabs .nav-link:hover { background: var(--hv); color: var(--hd); }
.nav-tabs .nav-link.active { background: var(--ac); color: var(--acOn); border-color: var(--ac) !important; font-weight: 800; }

.ag-section { margin-bottom: 26px; }
.ag-section > h5 { font-size: 14px; font-weight: 800; color: var(--hd); margin-bottom: 4px; }
.ag-section > .ag-hint { margin-bottom: 12px; }
.ag-field { margin-bottom: 14px; }
.ag-field > label, .form-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hint); margin-bottom: 6px; }
.ag-indent { margin-left: 46px; }
.ag-row { display: flex; gap: 18px; flex-wrap: wrap; }
.ag-row > .ag-field { min-width: 200px; }

/* Választó kártyák */
.ag-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ag-choice {
    text-align: left; border: 2px solid var(--bd); border-radius: 16px; background: var(--pn);
    padding: 15px 17px; cursor: pointer; color: var(--tx); transition: border-color .15s;
}
.ag-choice:hover { border-color: var(--bd3); }
.ag-choice i { color: var(--acT); font-size: 18px; }
.ag-choice strong { display: block; margin: 8px 0 4px; color: var(--hd); font-size: 14px; }
.ag-choice span { font-size: 12.5px; color: var(--hint); }
.ag-choice.selected { border-color: var(--ac); background: var(--acSoft2); }

/* Nyitvatartás-szerkesztő */
.ag-hours-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--ln); }
.ag-hours-row:last-child { border-bottom: 0; }
.ag-hours-day { font-weight: 700; font-size: 13px; color: var(--hd); padding-top: 8px; }
.ag-hours-bands { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ag-band { display: flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--bd); border-radius: 999px; padding: 4px 6px 4px 10px; }
.ag-band input[type=time] { border: 0; border-radius: 8px; padding: 3px 4px; background: transparent; color: var(--hd); font-weight: 600; font-variant-numeric: tabular-nums; }
.ag-band.invalid { border-color: #c0392b; background: color-mix(in srgb, #c0392b 8%, var(--bg)); }
.ag-band-error { flex-basis: 100%; font-size: 12.5px; color: #c0392b; }
.ag-closed { font-size: 12.5px; color: var(--hint); font-style: italic; padding: 7px 4px; }

/* Táblák */
.ag-table { width: 100%; border-collapse: collapse; }
.ag-table th {
    font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--hint2); font-weight: 700;
    padding: 12px 14px; border-bottom: 1px solid var(--ln); text-align: left; white-space: nowrap;
}
.ag-table td { padding: 12px 14px; border-bottom: 1px solid var(--ln); font-size: 13.5px; vertical-align: middle; color: var(--tx); }
.ag-table tbody tr { transition: background .12s; }
.ag-table tbody tr:hover { background: var(--hv); }
.ag-table tr:last-child td { border-bottom: 0; }
.ag-table .ag-actions { white-space: nowrap; text-align: right; }
.ag-card > .ag-table th:first-child, .ag-card > .table-responsive .ag-table th:first-child,
.ag-card > .ag-table td:first-child, .ag-card > .table-responsive .ag-table td:first-child { padding-left: 22px; }
.ag-card > .ag-table th:last-child, .ag-card > .table-responsive .ag-table th:last-child,
.ag-card > .ag-table td:last-child, .ag-card > .table-responsive .ag-table td:last-child { padding-right: 22px; }
.ag-act { border: 0; background: transparent; color: var(--acT); width: 32px; height: 32px; border-radius: 10px; display: inline-grid; place-items: center; }
.ag-act:hover { background: var(--acSoft); }
.ag-act.danger { color: var(--danger); }
.ag-act.danger:hover { background: var(--dangerBg); }
.ag-act:disabled { opacity: .35; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--tx); --bs-table-border-color: var(--ln); --bs-table-hover-bg: var(--hv); --bs-table-hover-color: var(--tx); }

/* Kezdőbetűs avatar a listákban */
.ag-initials { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: var(--acSoft); color: var(--acT); font-weight: 800; font-size: 12px; }

/* Színes címke chip */
.ag-label-chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 700; }
.ag-color-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
input[type=color].ag-color { width: 46px; height: 42px; border: 1px solid var(--bd); border-radius: 12px; padding: 4px; background: var(--bg); }

/* Üzenetdobozok */
.ag-alert { border-radius: 12px; padding: 12px 15px; font-size: 13.5px; margin-bottom: 14px; border: 0; }
.ag-alert.ok { background: var(--okBg); color: var(--okT); }
.ag-alert.err { background: var(--dangerBg); color: var(--danger); }
.ag-alert.info { background: var(--infoBg); color: var(--infoFg); }
.ag-alert.warn { background: var(--warnBg); color: var(--warn); }
a.ag-alert:hover { filter: brightness(.98); }

.ag-empty { text-align: center; color: var(--hint); padding: 34px 12px; }
.ag-empty i { font-size: 26px; display: block; margin-bottom: 10px; opacity: .6; }
.ag-card-body.ag-empty, .ag-empty-card { border: 1px dashed var(--bd3); border-radius: 16px; }

/* ── Űrlapelemek (Bootstrap felülírás) ──────────────────────────── */
.form-control, .form-select {
    min-height: 42px; border-radius: 12px; border: 1px solid var(--bd); background-color: var(--bg); color: var(--hd);
    font-size: 14px; padding: 8px 14px;
}
.form-select { padding-right: 36px; }
textarea.form-control { min-height: 84px; }
.form-control-sm, .form-select-sm { min-height: 34px; border-radius: 10px; font-size: 13px; padding: 4px 10px; }
.form-select-sm { padding-right: 30px; }
.form-control::placeholder { color: var(--hint2); }
.form-control:focus, .form-select:focus { background-color: var(--bg); color: var(--hd); border-color: var(--ac); box-shadow: 0 0 0 3px var(--acSoft); }
.form-control:disabled, .form-select:disabled, .form-control[readonly] { background-color: var(--hv); opacity: .85; }
html.dark .form-select { --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23C2CEC9' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.input-group-text { background: var(--hv); border-color: var(--bd); color: var(--hint); border-radius: 12px; font-size: 13px; }
.input-group > .form-control, .input-group > .form-select { min-height: 42px; }
.form-check-input { background-color: var(--bg); border-color: var(--bd3); }
.form-check-input:checked { background-color: var(--ac); border-color: var(--ac); }
.form-check-input:focus { border-color: var(--ac); box-shadow: 0 0 0 3px var(--acSoft); }
.form-switch { padding-left: 3.6em; min-height: 26px; }
.form-switch .form-check-input { width: 46px; height: 26px; margin-left: -3.6em; margin-top: -1px; border-radius: 999px; background-color: var(--bd); border: 0; cursor: pointer;
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3.1' fill='%23fff'/%3e%3c/svg%3e"); }
.form-switch .form-check-input:checked { background-color: var(--ac); }
.form-switch .form-check-input:focus { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3.1' fill='%23fff'/%3e%3c/svg%3e"); }
.form-check-label { color: var(--tx); }
.form-switch .form-check-label { padding-top: 2px; }

/* Gombok */
.btn { border-radius: 12px; font-weight: 700; font-size: 14px; min-height: 42px; padding: 8px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn-sm { min-height: 34px; border-radius: 10px; font-size: 12.5px; padding: 4px 12px; }
.btn-link { min-height: 0; font-weight: 600; color: var(--acT); text-decoration: none; }
.btn-link:hover { color: var(--ac); text-decoration: underline; }
.btn-primary {
    --bs-btn-bg: var(--ac); --bs-btn-border-color: var(--ac); --bs-btn-color: var(--acOn);
    --bs-btn-hover-bg: var(--acT); --bs-btn-hover-border-color: var(--acT); --bs-btn-hover-color: var(--acOn);
    --bs-btn-active-bg: var(--acT); --bs-btn-active-border-color: var(--acT); --bs-btn-active-color: var(--acOn);
    --bs-btn-disabled-bg: var(--ac); --bs-btn-disabled-border-color: var(--ac); --bs-btn-disabled-color: var(--acOn);
    font-weight: 800;
}
html.dark .btn-primary { --bs-btn-hover-bg: #5CB39C; --bs-btn-hover-border-color: #5CB39C; --bs-btn-active-bg: #5CB39C; }
.btn-outline-primary, .btn-outline-secondary, .btn-light, .btn-secondary {
    --bs-btn-bg: var(--pn); --bs-btn-color: var(--hd); --bs-btn-border-color: var(--bd);
    --bs-btn-hover-bg: var(--hv); --bs-btn-hover-color: var(--hd); --bs-btn-hover-border-color: var(--bd3);
    --bs-btn-active-bg: var(--hv); --bs-btn-active-color: var(--hd); --bs-btn-active-border-color: var(--bd3);
    --bs-btn-disabled-bg: var(--pn); --bs-btn-disabled-color: var(--hint); --bs-btn-disabled-border-color: var(--bd);
}
.btn-outline-primary { --bs-btn-color: var(--acT); }
.btn-outline-danger, .btn-danger {
    --bs-btn-bg: var(--pn); --bs-btn-color: var(--danger); --bs-btn-border-color: var(--bd);
    --bs-btn-hover-bg: var(--dangerBg); --bs-btn-hover-color: var(--danger); --bs-btn-hover-border-color: var(--danger);
    --bs-btn-active-bg: var(--dangerBg); --bs-btn-active-color: var(--danger); --bs-btn-active-border-color: var(--danger);
}
.btn-outline-success, .btn-success {
    --bs-btn-bg: var(--pn); --bs-btn-color: var(--okT); --bs-btn-border-color: var(--bd);
    --bs-btn-hover-bg: var(--okBg); --bs-btn-hover-color: var(--okT); --bs-btn-hover-border-color: var(--okT);
}
.btn-outline-warning, .btn-warning {
    --bs-btn-bg: var(--pn); --bs-btn-color: var(--warn); --bs-btn-border-color: var(--bd);
    --bs-btn-hover-bg: var(--warnBg); --bs-btn-hover-color: var(--warn); --bs-btn-hover-border-color: var(--warn);
}

/* Szegmentált nézetváltó (btn-group) */
.btn-group { background: var(--pn); border: 1px solid var(--bd); border-radius: 12px; padding: 4px; gap: 2px; }
.btn-group > .btn { border: 0 !important; border-radius: 9px !important; min-height: 32px; padding: 3px 13px; font-size: 13px; background: transparent; color: var(--tx); font-weight: 700; margin: 0 !important; }
.btn-group > .btn:hover { background: var(--hv); color: var(--hd); }
.btn-group > .btn.active, .btn-group > .btn.btn-primary, .btn-group > .btn-check:checked + .btn { background: var(--ac) !important; color: var(--acOn) !important; }

/* Popup (szerkesztő ablak) */
.ag-modal-backdrop { position: fixed; inset: 0; background: rgba(15,21,19,.7); backdrop-filter: blur(4px); z-index: 1050; display: grid; place-items: center; padding: 16px; animation: agfade .15s ease; }
.ag-modal { background: var(--pn); border: 1px solid var(--bd); border-radius: 20px; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: agup .2s ease; }
.ag-modal-head { padding: 18px 22px; border-bottom: 1px solid var(--ln); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ag-modal-head h4 { margin: 0; font-size: 18px; font-weight: 800; }
.ag-modal-head .ag-icon-btn { width: 34px; height: 34px; background: var(--hv); }
.ag-modal-body { padding: 20px 22px; }
.ag-modal-foot { padding: 14px 22px; border-top: 1px solid var(--ln); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* Értesítések (Blazored.Toast) */
.blazored-toast-container { z-index: 2000; }
.blazored-toast {
    background: var(--pn) !important; color: var(--hd) !important; border: 1px solid var(--ac) !important; border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.18), 0 0 0 4px var(--acSoft) !important; font-family: var(--bs-font-sans-serif);
}
.blazored-toast-error { border-color: var(--danger) !important; box-shadow: 0 10px 30px rgba(0,0,0,.18), 0 0 0 4px var(--dangerBg) !important; }
.blazored-toast-warning { border-color: #D9A35F !important; }
.blazored-toast .blazored-toast-icon { color: var(--acT) !important; }
.blazored-toast-error .blazored-toast-icon { color: var(--danger) !important; }
.blazored-toast-message, .blazored-toast-heading { color: var(--hd) !important; }
.blazored-toast-close-icon { color: var(--hint) !important; }
.blazored-toast-progressbar > span { background: var(--ac) !important; }

/* Bejelentkező oldalak */
.ag-auth-wrap { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 30px 16px; }
.ag-auth-card { width: min(460px, 100%); border-radius: 20px; box-shadow: var(--sh); }

/* ══════════════════════════════════════════════════════════════════
   Beállítások: bal oldali csoportosított almenü + mentés-sáv
   ══════════════════════════════════════════════════════════════════ */
.ag-set-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }
.ag-set-nav { position: sticky; top: 20px; background: var(--pn); border: 1px solid var(--bd); border-radius: 18px; padding: 12px 10px; max-height: calc(100vh - 40px); overflow-y: auto; scrollbar-width: thin; }
.ag-set-group { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--hint2); padding: 12px 10px 6px; }
.ag-set-group:first-child { padding-top: 4px; }
.ag-set-nav a {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
    color: var(--tx); text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1.25;
}
.ag-set-nav a:hover { background: var(--hv); color: var(--hd); }
.ag-set-nav a.active { background: var(--ac); color: var(--acOn); font-weight: 800; }
.ag-set-nav a i { width: 20px; text-align: center; font-size: 13px; color: var(--hint); flex: none; }
.ag-set-nav a.active i { color: var(--acOn); }
.ag-set-nav a .obs-num { width: 20px; height: 20px; font-size: 10.5px; }
.ag-set-nav a.active .obs-num { background: var(--acOn); color: var(--ac); }
.ag-wizbar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: -6px 0 20px; }
.ag-wizbar a { display: block; height: 8px; border-radius: 999px; background: var(--bd); }
.ag-wizbar a.on { background: var(--ac); }
.ag-savebar {
    position: sticky; bottom: 14px; z-index: 20; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: var(--pnA); backdrop-filter: blur(8px); border: 1px solid var(--bd); border-radius: 16px; padding: 10px 12px 10px 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12); margin-top: 6px;
}
.ag-savebar .ag-hint { flex: 1; min-width: 160px; }
@media (max-width: 1000px) {
    .ag-set-shell { grid-template-columns: 1fr; }
    .ag-set-nav { position: static; max-height: none; display: flex; gap: 4px; overflow-x: auto; padding: 8px; }
    .ag-set-group { display: none; }
    .ag-set-nav a { white-space: nowrap; flex: none; }
}

/* Mobil: a rail alsó sávvá válik */
@media (max-width: 768px) {
    .ag-shell { display: block; }
    .ag-rail { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 66px; flex-direction: row; padding: 0 8px; border-right: 0; border-top: 1px solid var(--bd); gap: 4px; }
    .ag-rail-logo { display: none; }
    .ag-nav { flex-direction: row; overflow-x: auto; overflow-y: hidden; height: 100%; }
    .ag-nav a { width: 58px; }
    .ag-rail-foot { flex-direction: row; padding: 0; }
    .ag-rail-btn { width: 36px; height: 36px; }
    .ag-avatar { width: 34px; height: 34px; }
    .ag-content { padding: 16px 14px 96px; }
    h1 { font-size: 24px; }
    .ag-navbar { padding: 0 12px; }
    .ag-brand-tenant, .ag-user-name { display: none; }
    .ag-hours-row { grid-template-columns: 1fr; }
    .ag-indent { margin-left: 0; }
}

/* ══════════════════════════════════════════════════════════════════
   Admin főoldal – idővonal, kérések, bevétel
   ══════════════════════════════════════════════════════════════════ */
.ag-home { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1200px) { .ag-home { grid-template-columns: 1fr; } }
.ag-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.ag-stats .ag-card { margin: 0; padding: 18px 20px; border-radius: 16px; }
.ag-stats .ag-stat-value { margin: 2px 0 4px; }
.ag-tl { overflow-x: auto; }
.ag-tl-inner { min-width: 720px; padding: 6px 22px 18px; }
.ag-tl-hours { display: flex; margin-left: 150px; position: relative; height: 24px; }
.ag-tl-hours span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--hint2); font-variant-numeric: tabular-nums; }
.ag-tl-lane { display: flex; align-items: center; height: 56px; border-top: 1px solid var(--ln); }
.ag-tl-who { width: 150px; flex: none; display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--hd); font-size: 13px; padding-right: 10px; min-width: 0; }
.ag-tl-who span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-tl-bar { width: 8px; height: 36px; border-radius: 4px; flex: none; }
.ag-tl-track { position: relative; flex: 1; height: 44px; border-radius: 10px; background: var(--hv); }
.ag-tl-closed { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, var(--stripe) 0 6px, transparent 6px 12px); border-radius: 10px; }
.ag-tl-ev {
    position: absolute; top: 4px; bottom: 4px; border-radius: 10px; padding: 4px 8px; font-size: 11.5px; line-height: 1.2; overflow: hidden;
    color: #fff; cursor: pointer; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; display: block;
}
.ag-tl-ev strong { display: block; overflow: hidden; text-overflow: ellipsis; }
.ag-tl-ev:hover { filter: brightness(1.06); color: #fff; }
.ag-tl-ev.pending { background: transparent !important; border: 2px dashed; color: var(--hd); }
.ag-tl-ev.past { opacity: .5; }
.ag-tl-now { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ac); box-shadow: 0 0 8px var(--ac); z-index: 2; pointer-events: none; }
.ag-tl-nowlabel { position: absolute; top: -20px; transform: translateX(-50%); font-size: 10.5px; font-weight: 800; color: var(--acOn); background: var(--ac); border-radius: 6px; padding: 1px 6px; }
.ag-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--hint); padding: 0 22px 16px; }
.ag-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ag-legend i.box { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.ag-req { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--ln); }
.ag-req-main { flex: 1; min-width: 0; }
.ag-req-main strong { display: block; color: var(--hd); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-req-main span { font-size: 12px; color: var(--hint); }
.ag-sq { width: 32px; height: 32px; border-radius: 10px; border: 0; display: inline-grid; place-items: center; flex: none; cursor: pointer; }
.ag-sq.ok { background: var(--ac); color: var(--acOn); }
.ag-sq.no { background: var(--bd); color: var(--hd); }
.ag-sq:hover { filter: brightness(1.08); }
.ag-chip-new { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(230,188,133,.2); color: var(--warn); }
.ag-rev { background: linear-gradient(135deg, var(--grad), var(--pn)); border-color: var(--gradBd); padding: 18px 20px; }
.ag-rev .ag-stat-value { color: var(--acT); }

/* ══════════════════════════════════════════════════════════════════
   Recepció – kártyasorok
   ══════════════════════════════════════════════════════════════════ */
.ag-rrow { display: flex; align-items: center; gap: 16px; background: var(--pn); border: 1px solid var(--bd); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
.ag-rrow-bar { width: 6px; align-self: stretch; border-radius: 4px; flex: none; }
.ag-rrow-when { width: 170px; flex: none; }
.ag-rrow-when strong { display: block; color: var(--hd); font-size: 14px; }
.ag-rrow-when span { font-size: 12px; color: var(--hint); }
.ag-rrow-main { flex: 1; min-width: 0; }
.ag-rrow-main strong { color: var(--hd); }
.ag-rrow-msg { margin-top: 6px; background: var(--infoBg); color: var(--infoFg); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; display: inline-block; }
.ag-rrow-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 900px) { .ag-rrow { flex-wrap: wrap; } .ag-rrow-when { width: auto; } }

/* ══════════════════════════════════════════════════════════════════
   Nyilvános foglalóoldal – Foglaló Zsálya
   ══════════════════════════════════════════════════════════════════ */
.ag-public { max-width: 1040px; margin: 0 auto; padding-bottom: 130px; }
.ag-public-card { max-width: 1040px; margin-left: auto; margin-right: auto; }
.ag-public-nav { background: var(--bg); }
.ag-public-nav .ag-pnav { display: flex; gap: 4px; margin-left: 10px; }
.ag-public-nav .ag-pnav a { color: var(--tx); text-decoration: none; font-weight: 600; font-size: 13.5px; padding: 8px 12px; border-radius: 999px; }
.ag-public-nav .ag-pnav a, .ag-public-nav .ag-pnav button { border: 0; background: transparent; font-family: inherit; }
.ag-public-nav .ag-pnav button { color: var(--tx); font-weight: 600; font-size: 13.5px; padding: 8px 12px; border-radius: 999px; }
.ag-public-nav .ag-pnav a:hover, .ag-public-nav .ag-pnav button:hover { background: var(--hv); color: var(--hd); }
.ag-pill { border-radius: 999px !important; }
.ag-public-foot { text-align: center; font-size: 12px; color: var(--hint2); padding: 10px 0 30px; }
.ag-customer-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.ag-customer-box i { color: var(--acT); }
@media (max-width: 768px) { .ag-public-nav .ag-pnav { display: none; } }

.ag-hero { text-align: center; padding: 34px 0 26px; animation: agup .35s ease; }
.ag-hero-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--grad); color: var(--acT); font-weight: 700; font-size: 13px; padding: 7px 15px; border-radius: 999px; }
.ag-hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.03em; margin: 16px 0 10px; line-height: 1.05; }
.ag-hero p { color: var(--hint); font-size: 16px; max-width: 620px; margin: 0 auto; }
.ag-hero-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 13px; color: var(--hint); }
.ag-hero-meta a { color: var(--acT); }

.ag-bstep { background: var(--pn); border: 1px solid var(--bd); border-radius: 20px; box-shadow: var(--sh); padding: 22px; margin-bottom: 14px; animation: agup .3s ease; }
.ag-bstep.locked { opacity: .55; box-shadow: none; padding-top: 16px; padding-bottom: 16px; }
.ag-bstep-head { display: flex; align-items: center; gap: 12px; }
.ag-bstep.open .ag-bstep-head { margin-bottom: 18px; }
.ag-bstep-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 13px; background: var(--bd); color: var(--hd); }
.ag-bstep.open .ag-bstep-num, .ag-bstep.done .ag-bstep-num { background: var(--ac); color: var(--acOn); }
.ag-bstep-title { font-size: 18px; font-weight: 800; color: var(--hd); margin: 0; flex: 1; }
.ag-bstep-sum {
    display: inline-flex; align-items: center; gap: 8px; max-width: 60%; border: 1px solid var(--acT); background: var(--grad); color: var(--acT);
    border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.ag-bstep-sum span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-bstep-sum:hover { background: var(--acSoft); }

.ag-service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.ag-service {
    position: relative; text-align: left; border: 2px solid var(--bd); border-radius: 18px; background: var(--pn);
    padding: 16px; cursor: pointer; color: var(--tx); display: flex; flex-direction: column; gap: 6px; overflow: hidden;
    transition: border-color .15s, transform .15s; font-family: inherit;
}
.ag-service:hover { border-color: var(--bd3); transform: translateY(-1px); }
.ag-service.selected { border-color: var(--ac); background: var(--acSoft2); }
.ag-service-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 17px; margin-bottom: 4px; flex: none; }
.ag-service-av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.ag-service-check { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--ac); color: var(--acOn); display: none; place-items: center; font-size: 11px; }
.ag-service.selected .ag-service-check { display: grid; }
.ag-service-bar { display: none; }
.ag-service strong { color: var(--hd); font-size: 16px; font-weight: 800; line-height: 1.2; }
.ag-service-desc { font-size: 12.5px; color: var(--hint); }
.ag-service-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--tx); margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--bd); align-items: center; }
.ag-service-meta i { color: var(--hint); }
.ag-service-price { font-weight: 800; color: var(--hd); }

/* Időpontválasztó: hét léptető + napgombok + idősáv-pirulák */
.ag-week-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ag-week-nav strong { color: var(--hd); font-size: 15px; font-weight: 800; text-transform: capitalize; }
.ag-week-nav .ag-round-btn { width: 36px; height: 36px; }
.ag-week-nav .ag-round-btn:disabled { opacity: .35; cursor: default; }
.ag-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.ag-dbtn {
    border: 2px solid var(--bd); background: var(--pn); border-radius: 16px; padding: 10px 4px; text-align: center; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--tx); font-family: inherit; min-width: 0;
}
.ag-dbtn:hover:not(:disabled) { border-color: var(--bd3); }
.ag-dbtn span { font-size: 11.5px; font-weight: 700; color: var(--hint); text-transform: capitalize; }
.ag-dbtn strong { font-size: 22px; font-weight: 800; color: var(--hd); line-height: 1.1; }
.ag-dbtn small { font-size: 11px; color: var(--acT); font-weight: 700; }
.ag-dbtn.none small { color: var(--hint2); font-weight: 600; }
.ag-dbtn.today strong { color: var(--acT); }
.ag-dbtn.selected { background: var(--ac); border-color: var(--ac); }
.ag-dbtn.selected span, .ag-dbtn.selected strong, .ag-dbtn.selected small { color: var(--acOn); }
.ag-dbtn:disabled { opacity: .5; cursor: default; }
.ag-day-title { font-weight: 800; color: var(--hd); margin-bottom: 10px; text-transform: capitalize; }
.ag-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-slot {
    height: 42px; min-width: 82px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--bd); background: var(--pn); color: var(--hd);
    font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; font-family: inherit;
}
.ag-slot:hover { border-color: var(--ac); color: var(--acT); }
.ag-slot.selected { background: var(--ac); border-color: var(--ac); color: var(--acOn); }
.ag-slot.taken { color: var(--hint2); text-decoration: line-through; background: var(--hv); cursor: not-allowed; font-weight: 500; }
.ag-placeholder { border: 1px dashed var(--bd3); border-radius: 16px; padding: 22px; text-align: center; color: var(--hint); }
@media (max-width: 768px) {
    .ag-days { grid-template-columns: repeat(7, 74px); overflow-x: auto; padding-bottom: 4px; }
}

/* Pirula mezők a foglalóoldalon */
.ag-public .form-control:not(textarea), .ag-public .form-select, .ag-public-form .form-control:not(textarea), .ag-public-form .form-select { min-height: 46px; border-radius: 999px; padding-left: 18px; }
.ag-public textarea.form-control, .ag-public-form textarea.form-control { border-radius: 18px; }
.ag-public .ag-field > label, .ag-public-form .ag-field > label, .ag-public .form-label, .ag-public-form .form-label { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--hint); }
.ag-public .btn:not(.btn-sm):not(.btn-link), .ag-public-form .btn:not(.btn-sm):not(.btn-link) { border-radius: 999px; min-height: 46px; padding-left: 22px; padding-right: 22px; }
.ag-public .btn-sm { border-radius: 999px; }

.ag-summary-box { background: var(--hv); border: 1px solid var(--bd); border-radius: 16px; padding: 14px 18px; margin-bottom: 16px; }
.ag-summary-box > div { display: flex; gap: 12px; padding: 4px 0; font-size: 14px; }
.ag-summary-box > div > span { width: 110px; flex: none; color: var(--hint); }
.ag-summary-box > div > strong { color: var(--hd); font-weight: 700; }

/* Alsó összegző sáv */
.ag-bbar {
    position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 900; width: min(1040px, calc(100% - 24px));
    display: flex; align-items: center; gap: 16px; background: var(--pnA); backdrop-filter: blur(10px);
    border: 1px solid var(--bd); border-radius: 20px; padding: 12px 12px 12px 20px; box-shadow: 0 16px 40px rgba(0,0,0,.16); animation: agup .25s ease;
}
.ag-bbar-main { flex: 1; min-width: 0; }
.ag-bbar-main strong { display: block; color: var(--hd); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-bbar-main span { display: block; font-size: 12.5px; color: var(--hint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-bbar-price { font-size: 20px; font-weight: 800; color: var(--hd); white-space: nowrap; }
.ag-bbar .btn { min-height: 48px !important; border-radius: 999px !important; padding: 0 24px !important; white-space: nowrap; }
@media (max-width: 640px) { .ag-bbar { flex-wrap: wrap; } .ag-bbar .btn { width: 100%; } .ag-bbar-price { font-size: 17px; } }

/* Kész állapot – jegy */
.ag-done { text-align: center; padding: 18px 0 6px; animation: agup .3s ease; }
.ag-done-ico { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; font-size: 34px; background: var(--ac); color: var(--acOn); animation: agpop .45s cubic-bezier(.2,1.6,.4,1); }
.ag-done-ico.warn { background: #D9A35F; color: #2B1E0C; }
.ag-done h3 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.ag-ticket { display: flex; max-width: 560px; margin: 20px auto; text-align: left; background: var(--pn); border: 1px solid var(--bd); border-radius: 20px; overflow: hidden; box-shadow: var(--sh); }
.ag-ticket-date { width: 130px; flex: none; background: var(--ac); color: var(--acOn); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 10px; }
.ag-ticket-date span { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.ag-ticket-date strong { font-size: 40px; font-weight: 800; line-height: 1; margin: 4px 0; }
.ag-ticket-date em { font-style: normal; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.ag-ticket-body { padding: 18px 20px; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ag-ticket-body strong { color: var(--hd); font-size: 17px; }
.ag-ticket-body > span { color: var(--hint); font-size: 13px; }
@media (max-width: 520px) { .ag-ticket { flex-direction: column; } .ag-ticket-date { width: auto; flex-direction: row; gap: 10px; } .ag-ticket-date strong { font-size: 26px; } }

/* Ügyfélportál */
.ag-portal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 26px 0 18px; }
.ag-portal-head h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); }
.ag-brow { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--ln); flex-wrap: wrap; }
.ag-brow:first-child { border-top: 0; }
.ag-brow-when { width: 150px; flex: none; }
.ag-brow-when strong { display: block; color: var(--hd); }
.ag-brow-when span { font-size: 12px; color: var(--hint); }
.ag-brow-main { flex: 1; min-width: 180px; color: var(--tx); font-size: 13.5px; }

.ag-step-title { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.ag-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #E6BC85; color: #3A2A10; font-size: 11px; font-weight: 800; }

/* Várólista a foglalóoldalon */
.ag-waitlist { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--bd3); }

/* Régi heti rács (admin időpont-módosítás is használhatja) */
.ag-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ag-day { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ag-day-head { text-align: center; padding: 6px 2px; border-radius: 10px; background: var(--hv); border: 1px solid var(--bd); }
.ag-day-empty { text-align: center; color: var(--hint); font-size: 12px; padding: 6px 0; }

.ag-table tr.ag-past td { opacity: .55; }

@keyframes agup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes agpop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes agfade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ══════════════════════════════════════════════════════════════════
   Admin naptár
   ══════════════════════════════════════════════════════════════════ */
.ag-cal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ag-cal-toolbar .btn-sm[title] { width: 38px; min-height: 38px; padding: 0; }
.ag-cal-toolbar .ag-today-btn { min-height: 38px; }
.ag-page-head .ag-cal-title { font-size: 30px; margin: 0; text-transform: none; }
.ag-cal-title { font-size: 18px; font-weight: 800; margin: 0 0 0 6px; text-transform: capitalize; }
.ag-cal-date { width: 160px; }
.ag-cal-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ag-chip { border: 1px solid var(--bd); background: var(--pn); color: var(--hint); border-radius: 999px; height: 32px; padding: 0 13px; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.ag-chip.on { border-color: var(--chip, var(--ac)); color: var(--hd); background: var(--hv); font-weight: 700; }
.ag-cal { overflow: hidden; }
.ag-cal-head, .ag-cal-body { display: grid; min-width: fit-content; }
.ag-cal-head { border-bottom: 1px solid var(--ln); background: var(--pn); position: relative; z-index: 2; }
.ag-cal-colhead { padding: 10px 6px; text-align: center; border-left: 1px solid var(--ln); font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ag-cal-colhead span { color: var(--hint); text-transform: capitalize; font-size: 11.5px; font-weight: 600; }
.ag-cal-colhead strong { color: var(--hd); font-weight: 800; }
.ag-cal-colhead.today strong { background: var(--ac); color: var(--acOn); border-radius: 999px; padding: 1px 10px; }
.ag-cal-scroll { max-height: calc(100vh - 250px); overflow: auto; }
.ag-cal-body { position: relative; }
.ag-cal-gutter { position: relative; border-right: 1px solid var(--ln); }
.ag-cal-hour { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; color: var(--hint2); font-variant-numeric: tabular-nums; }
.ag-cal-hour:first-child { transform: none; }
.ag-cal-col {
    position: relative; border-left: 1px solid var(--ln);
    background-color: var(--stripe);
    background-image: repeating-linear-gradient(to bottom, var(--ln) 0, var(--ln) 1px, transparent 1px, transparent var(--slot, calc(var(--hour) / 2)));
}
.ag-cal-col.clickable { cursor: copy; }
.ag-cal-open { position: absolute; left: 0; right: 0; background: var(--pn); opacity: .9; pointer-events: none; }
html.dark .ag-cal-open { opacity: .7; }
.ag-cal-absence { position: absolute; left: 0; right: 0; pointer-events: none; background: repeating-linear-gradient(45deg, rgba(240,154,140,.16) 0 6px, transparent 6px 12px); }
/* „Most” vonal: piros, a foglalások fölött; a mai nap elején pötty, a bal sávban az idő. */
.ag-cal-now { --now: #E5352B; position: absolute; left: 0; right: 0; height: 2px; margin-top: -1px; background: var(--now); z-index: 5; pointer-events: none; }
.ag-cal-now.first::before { content: ""; position: absolute; left: -6px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--now); box-shadow: 0 0 0 2px var(--pn); }
.ag-cal-now.faint { height: 0; background: none; border-top: 1px dashed color-mix(in srgb, var(--now) 45%, transparent); z-index: 1; }
.ag-cal-now-label {
    position: absolute; right: 4px; transform: translateY(-50%); z-index: 6; pointer-events: none;
    background: #E5352B; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1; padding: 3px 5px; border-radius: 6px;
    font-variant-numeric: tabular-nums;
}
.ag-cal-ev {
    position: absolute; border-radius: 8px; padding: 4px 7px; font-size: 11.5px; line-height: 1.25; overflow: hidden; cursor: pointer;
    z-index: 2; border: 0; box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.ag-cal-ev:hover { filter: brightness(1.05); box-shadow: 0 4px 12px rgba(0,0,0,.2); z-index: 4; }
.ag-cal-ev.pending { border: 2px dashed currentColor; opacity: .85; }
.ag-cal-ev.noshow { opacity: .5; text-decoration: line-through; }
/* A kártya szövege sosem vágódik le („…” nincs): tördel, a kártya szükség esetén lefelé megnő (Pos grow → min-height). */
.ag-cal-ev-time { font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ag-cal-ev-name { font-weight: 700; white-space: normal; overflow-wrap: anywhere; }
.ag-cal-ev-svc { opacity: .9; white-space: normal; overflow-wrap: anywhere; }
.ag-cal-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: -8px 0 16px; font-size: 12px; color: var(--hint); }
.ag-legend-box { display: inline-block; width: 14px; height: 12px; border: 1px solid var(--bd); border-radius: 4px; vertical-align: -1px; }
.ag-legend-box.open { background: var(--pn); }
.ag-legend-box.closed { background: var(--stripe); }
.ag-legend-box.absence { background: repeating-linear-gradient(45deg, rgba(240,154,140,.45) 0 3px, transparent 3px 6px); }

/* Foglalás-ablak */
.ag-picked { display: flex; align-items: center; gap: 12px; border: 1px solid var(--bd); border-radius: 14px; padding: 10px 14px; background: var(--hv); }
.ag-picked > i { color: var(--acT); }
.ag-results { border: 1px solid var(--bd); border-radius: 14px; margin-top: 6px; max-height: 220px; overflow: auto; background: var(--pn); }
.ag-results button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--ln); background: var(--pn); padding: 9px 12px; color: var(--tx); font-family: inherit; }
.ag-results button:last-child { border-bottom: 0; }
.ag-results button:hover { background: var(--hv); }
fieldset:disabled .form-control, fieldset:disabled .form-select { opacity: .85; }
.ag-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ag-tile { background: var(--hv); border: 1px solid var(--bd); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.ag-tile span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hint2); margin-bottom: 3px; }
.ag-tile strong { color: var(--hd); font-size: 13.5px; }
@media (max-width: 560px) { .ag-tiles { grid-template-columns: 1fr; } }

/* Munkabeosztás rács */
.ag-roster th.today, .ag-roster td.today { background: var(--acSoft2); }
.ag-roster-cell { min-width: 110px; cursor: copy; vertical-align: top !important; position: relative; }
.ag-roster-cell:hover { background: var(--hv); }
.ag-roster-add { display: none; color: var(--hint); font-size: 12px; }
.ag-roster-cell:hover .ag-roster-add { display: inline-block; }
.ag-shift { display: block; width: 100%; margin-bottom: 4px; border: 0; background: var(--okBg); color: var(--okT); border-radius: 8px; font-size: 12px; font-weight: 700; padding: 4px 8px; text-align: left; }
.ag-shift.absence { background: var(--dangerBg); color: var(--danger); }

/* DokiForCloud-foglalás a naptárban */
.ag-cal-ext {
    position: absolute; left: 2px; right: 2px; border-radius: 8px; padding: 4px 7px; font-size: 11.5px; line-height: 1.25; overflow: hidden; z-index: 1;
    color: var(--tx); border: 1px solid var(--bd3); cursor: default;
    background: repeating-linear-gradient(135deg, var(--hv) 0 8px, var(--bd) 8px 10px);
}
.ag-cal-ext .fa-cloud { color: var(--acT); }
.ag-legend-box.ext { background: repeating-linear-gradient(135deg, var(--hv) 0 3px, var(--bd3) 3px 4px); }

/* Számla tételek */
.ag-invoice-lines td { padding: 4px 6px; }
.ag-invoice-lines .form-control-sm, .ag-invoice-lines .form-select-sm { min-width: 60px; }

/* Havi naptárnézet */
.ag-month { overflow: hidden; }
.ag-month-head, .ag-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ag-month-head div { padding: 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hint2); text-align: center; border-bottom: 1px solid var(--ln); }
.ag-month-cell { min-height: 112px; padding: 5px 6px 7px; border-right: 1px solid var(--ln); border-bottom: 1px solid var(--ln); cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ag-month-cell:nth-child(7n) { border-right: 0; }
.ag-month-cell:hover { background: var(--hv); }
.ag-month-cell.other { opacity: .45; }
.ag-month-cell.closed { background: var(--stripe); }
.ag-month-cell.today .ag-month-date { background: var(--ac); color: var(--acOn); }
.ag-month-date { align-self: flex-end; font-size: 12px; font-weight: 800; color: var(--hd); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.ag-month-ev { font-size: 11px; border-radius: 6px; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ag-month-ev.pending { outline: 1px dashed currentColor; opacity: .85; }
.ag-month-ev.noshow { opacity: .5; text-decoration: line-through; }
.ag-month-more { font-size: 11px; color: var(--hint); padding-left: 2px; }
@media (max-width: 768px) { .ag-month-cell { min-height: 70px; } .ag-month-ev { font-size: 10px; } .ag-month-head div { font-size: 10px; padding: 4px 1px; } }

/* Integráció sorok */
.ag-feed-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--ln); }
.ag-feed-row:last-of-type { border-bottom: 0; }
.int-sub code, .ag-alert code { font-size: 12px; }

/* Bérlet egyenleg sáv */
.ag-pass-bar { height: 8px; border-radius: 999px; background: var(--bd); overflow: hidden; margin-bottom: 4px; max-width: 160px; }
.ag-pass-bar span { display: block; height: 100%; background: var(--ac); border-radius: 999px; }

/* Bootstrap kártya-, lista- és lapozó elemek egységesen */
.list-group-item { background: var(--pn); color: var(--tx); border-color: var(--ln); }
.list-group-item.active { background: var(--ac); border-color: var(--ac); color: var(--acOn); }
.dropdown-menu { background: var(--pn); border-color: var(--bd); border-radius: 12px; }
.dropdown-item { color: var(--tx); }
.dropdown-item:hover { background: var(--hv); color: var(--hd); }
.badge.bg-secondary { background: var(--bd) !important; color: var(--hd); }
.spinner-border { color: var(--ac); }
.btn .spinner-border { color: inherit; }

/* Blazor hibasáv: alapból rejtve (a keretrendszer jeleníti meg hibánál) – minden elrendezésben */
#blazor-error-ui {
    display: none; position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3000;
    width: min(560px, calc(100% - 24px)); padding: 12px 44px 12px 18px; border-radius: 14px;
    background: var(--dangerBg); color: var(--danger); border: 1px solid var(--danger); backdrop-filter: blur(8px); font-weight: 600;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 14px; top: 10px; }
#blazor-error-ui .reload { color: inherit; }

/* Mobil: a lépés-fej összegző pirulája új sorba kerül */
@media (max-width: 640px) {
    .ag-bstep { padding: 18px 16px; }
    .ag-bstep-head { flex-wrap: wrap; }
    .ag-bstep-sum { max-width: 100%; margin-left: 42px; }
    .ag-bstep-title { font-size: 16px; }
    .ag-week-nav strong { font-size: 13.5px; text-align: center; }
}

/* A lapváltáskor fókuszba kerülő cím (FocusOnNavigate) ne kapjon keretet */
h1:focus, h1:focus-visible { outline: none; }

/* ══════════════════════════════════════════════════════════════════
   Első belépés – „Milyen vállalkozásod van?” (teljes képernyő, a rail fölött)
   ══════════════════════════════════════════════════════════════════ */
.ag-onb { position: fixed; inset: 0; z-index: 1500; background: var(--bg); overflow: auto; padding: 48px 16px; display: flex; justify-content: center; align-items: flex-start; }
.ag-onb-inner { width: 100%; max-width: 680px; display: flex; flex-direction: column; gap: 22px; animation: agup .3s ease; }
.ag-onb-brand { display: flex; align-items: center; gap: 12px; }
.ag-onb-brand strong { display: block; color: var(--hd); font-size: 18px; font-weight: 800; }
.ag-onb-brand span:not(.ag-rail-logo) { display: block; font-size: 12px; color: var(--hint); }
.ag-onb-card { background: var(--pn); border: 1px solid var(--bd); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.ag-onb-card .int-card { margin-bottom: 0; }
.ag-onb-title { font-size: 28px; margin: 0 0 8px; }
.ag-onb-select { min-height: 50px; border-radius: 14px; font-weight: 700; font-size: 15px; }
.ag-onb-preview { padding: 18px; border-radius: 16px; background: var(--acSoft); display: flex; flex-direction: column; gap: 12px; }
.ag-onb-preview strong { color: var(--hd); font-weight: 800; }
.ag-onb-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--pn); color: var(--acT); display: grid; place-items: center; font-size: 19px; }
.ag-onb-svcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.ag-onb-svcs > div { padding: 10px 12px; border-radius: 12px; background: var(--pn); display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.ag-onb-svcs span { font-weight: 700; color: var(--hd); }
.ag-onb-svcs em { font-style: normal; color: var(--hint); white-space: nowrap; }
.ag-onb-go { min-height: 52px; border-radius: 14px; font-size: 15px; }
@media (max-width: 560px) { .ag-onb { padding: 24px 12px; } .ag-onb-card { padding: 20px; } .ag-onb-title { font-size: 23px; } }

/* Fő szín beállítása (Beállítások › Általános › Megjelenés) */
.ag-colorset { padding: 16px 0; border-bottom: 1px solid var(--ln); display: flex; flex-direction: column; gap: 12px; }
.ag-colorset:last-of-type { border-bottom: 0; }
.ag-colorset-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ag-colorset-head strong { color: var(--hd); font-size: 14px; }
.ag-colorset-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ag-swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; display: inline-grid; place-items: center; color: #fff; font-size: 12px; cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.ag-swatch.on { border-color: var(--pn); box-shadow: 0 0 0 2px var(--hd); }
.ag-swatch-custom { position: relative; background: conic-gradient(#e66 0 25%, #ec6 0 50%, #6c9 0 75%, #69e 0); overflow: hidden; margin: 0; }
.ag-swatch-custom i { text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.ag-swatch-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ag-colorset-preview { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ag-pv-btn { background: var(--pv); color: #fff; font-weight: 800; border-radius: 12px; padding: 8px 16px; font-size: 13px; }
.ag-pv-chip { background: color-mix(in srgb, var(--pv) 12%, transparent); color: color-mix(in srgb, var(--pv) 80%, #000); font-weight: 700; border-radius: 999px; padding: 5px 12px; font-size: 12px; }
html.dark .ag-pv-chip { color: color-mix(in srgb, var(--pv) 50%, #fff); }
.ag-pv-link { color: color-mix(in srgb, var(--pv) 80%, #000); text-decoration: underline; font-size: 13px; font-weight: 600; }
html.dark .ag-pv-link { color: color-mix(in srgb, var(--pv) 50%, #fff); }

/* ══════════════════════════════════════════════════════════════════
   Első belépéses bemutató (tour.js): sötét réteg, kiemelt elem, sárga buborék
   ══════════════════════════════════════════════════════════════════ */
.ag-tour { position: fixed; inset: 0; z-index: 3000; animation: agfade .2s ease; }
.ag-tour-hole {
    position: fixed; border-radius: 14px; pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(6, 9, 8, .86), 0 0 0 3px #FFE15A, 0 0 24px 4px rgba(255, 225, 90, .45);
    transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease;
}
.ag-tour-tip {
    position: fixed; width: max-content; max-width: min(280px, calc(100vw - 16px));
    background: #FFE15A; color: #231E08; border-radius: 14px; padding: 12px 14px 10px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .45); font-size: 14px; line-height: 1.4;
    transition: left .25s ease, top .25s ease;
}
.ag-tour-tip strong { display: block; font-size: 15px; font-weight: 800; margin-bottom: 2px; }
.ag-tour-tip p { margin: 0 0 10px; }
.ag-tour-count { font-size: 11px; font-weight: 800; letter-spacing: .08em; opacity: .6; margin-bottom: 2px; }
.ag-tour-btns { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ag-tour-btns > span { display: flex; gap: 6px; }
.ag-tour-btns button { border: 0; font-family: inherit; font-weight: 800; font-size: 13px; cursor: pointer; border-radius: 10px; }
.ag-tour-skip { background: transparent; color: #5A4E16; padding: 6px 2px; text-decoration: underline; }
.ag-tour-back { background: rgba(35, 30, 8, .12); color: #231E08; width: 32px; height: 32px; font-size: 18px !important; line-height: 1; }
.ag-tour-next { background: #231E08; color: #FFE15A; padding: 7px 14px; }
.ag-tour-btns button:focus-visible { outline: 2px solid #231E08; outline-offset: 2px; }
/* Oldalváltás közben: sötét marad, a buborék és a kiemelés eltűnik, amíg az új oldal betölt */
.ag-tour.loading { background: rgba(6, 9, 8, .86); }
.ag-tour.loading .ag-tour-hole, .ag-tour.loading .ag-tour-tip { opacity: 0; }
.ag-tour-hole, .ag-tour-tip { transition-property: left, top, width, height, opacity; }

/* Súgó gomb a rail alján – kicsit kiemelve, hogy könnyű legyen megtalálni */
.ag-help-btn { background: var(--acSoft); color: var(--acT); font-size: 17px; }
.ag-help-btn:hover { background: var(--ac); color: var(--acOn); }

/* Szabadság / távollét a naptárban */
.ag-cal-absence { display: flex; align-items: flex-start; justify-content: stretch; padding: 6px 4px 0; background: repeating-linear-gradient(45deg, rgba(240,154,140,.20) 0 6px, rgba(240,154,140,.08) 6px 12px) !important; z-index: 1; }
.ag-cal-absence span { position: sticky; top: 6px; flex: 1; min-width: 0; text-align: center; background: var(--pn); color: var(--danger); border: 1px solid rgba(240,154,140,.5); border-radius: 8px; padding: 4px 6px; font-size: 11.5px; font-weight: 700; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.ag-cal-away { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 10.5px; font-weight: 700; color: var(--danger); background: var(--dangerBg); border-radius: 999px; padding: 1px 8px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ag-month-away { font-size: 10.5px; font-weight: 700; color: var(--danger); background: var(--dangerBg); border-radius: 6px; padding: 1px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Foglalás áthúzása a naptárban */
.ag-cal-ev[data-bid] { cursor: grab; touch-action: none; }
.ag-cal-ev.ag-cal-dragging { opacity: .35; }
.ag-cal-ghost { position: fixed; z-index: 2500; pointer-events: none; cursor: grabbing; box-shadow: 0 12px 30px rgba(0,0,0,.3); outline: 2px solid var(--ac); opacity: .95; }
.ag-cal-ghost .ag-cal-ghost-time { font-weight: 800; font-size: 12px; }
.ag-cal-col.ag-cal-drop { box-shadow: inset 0 0 0 2px var(--ac); }
body.ag-cal-drag-active, body.ag-cal-drag-active * { cursor: grabbing !important; user-select: none; }

/* Több naptár egymás mellett – a fejléc a görgethető részben, ragadósan (nincs elcsúszás) */
.ag-cal-scroll { max-height: calc(100vh - 230px); overflow: auto; }
.ag-cal-scroll > .ag-cal-head { position: sticky; top: 0; z-index: 6; background: var(--pn); }
.ag-cal-corner { background: var(--pn); border-bottom: 1px solid var(--ln); }
.ag-cal-head .ag-cal-colhead { min-width: 0; }
.ag-cal-dayhead { border-left: 2px solid var(--bd3); }
.ag-cal-lanehead {
    display: flex; align-items: center; gap: 4px; min-width: 0; padding: 4px 6px; font-size: 11px; font-weight: 700; color: var(--hd);
    border-left: 1px solid var(--ln); border-top: 1px solid var(--ln); box-shadow: inset 0 -3px 0 var(--lane, var(--ac)); white-space: nowrap;
}
.ag-cal-lanehead i { color: var(--danger); font-size: 10px; flex: none; }
.ag-cal-lanename { overflow: hidden; text-overflow: ellipsis; }
.ag-cal-lanehead.daystart, .ag-cal-col.daystart { border-left: 2px solid var(--bd3); }
.ag-cal-ev { min-width: 0; }
.ag-cal-ev-name, .ag-cal-ev-svc, .ag-cal-ev-time { overflow: visible; text-overflow: clip; }

/* Naptárválasztó: látható naptárak X-szel, „+ Naptár hozzáadása” lista */
.ag-cal-filter { align-items: center; }
.ag-chip-x { border: 0; background: transparent; color: var(--hint); width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; margin-right: -6px; cursor: pointer; font-size: 11px; }
.ag-chip-x:hover { background: var(--dangerBg); color: var(--danger); }
.ag-cal-add { width: auto; min-width: 210px; min-height: 32px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }

/* Listák eszközsora (keresés, rendezés, csoportosítás) és csoportfejek */
.ag-listbar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ag-listbar-search { position: relative; flex: 1; min-width: 240px; }
.ag-listbar-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--hint2); font-size: 13px; }
.ag-listbar-search .form-control { padding-left: 38px; }
.ag-listbar-field { display: flex; flex-direction: column; gap: 4px; margin: 0; min-width: 200px; }
.ag-listbar-field > span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hint); }
.ag-listbar-count { font-size: 12.5px; color: var(--hint); padding-bottom: 11px; white-space: nowrap; }
.ag-group-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; padding: 0 4px 6px; border-bottom: 2px solid var(--ln); }
.ag-group-head:first-of-type { margin-top: 4px; }
.ag-group-head strong { color: var(--hd); font-size: 15px; }
.ag-group-count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--acT); background: var(--acSoft); border-radius: 999px; padding: 2px 10px; }
.ag-table tr.ag-group-row td { background: var(--hv); padding-top: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--ln); }
.ag-table tr.ag-group-row .ag-group-count { margin-left: 8px; }

/* Felhasználó jogosultságai (Felhasználók › szerkesztés) */
.ag-perm { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ln); }
.ag-perm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.ag-perm-head strong { color: var(--hd); }
.ag-perm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--ln); flex-wrap: wrap; }
.ag-perm-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ag-perm-name strong { color: var(--hd); font-size: 13.5px; }
.ag-perm-name .ag-hint { font-size: 11.5px; }
.ag-perm .btn-group > .btn { font-size: 12px; padding: 2px 10px; min-height: 28px; }

/* Szerepkörök (Felhasználók oldal) */
.ag-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ag-role { border: 1px solid var(--bd); border-radius: 14px; padding: 12px 14px; background: var(--hv); display: flex; flex-direction: column; gap: 4px; }
.ag-role-head { display: flex; align-items: center; gap: 8px; }
.ag-role-head i { color: var(--acT); }
.ag-role-head strong { color: var(--hd); }
.ag-role-count { font-size: 11.5px; font-weight: 700; color: var(--hint); background: var(--pn); border-radius: 999px; padding: 1px 8px; }
.ag-role-acts { margin-left: auto; display: flex; gap: 2px; }

/* Naptár – lista nézet (táblázat: foglalások és szabad helyek időrendben, naponként) */
.ag-cl-switches { display: flex; flex-direction: column; gap: 2px; padding-bottom: 4px; }
.ag-cl-switches .form-check { margin: 0; white-space: nowrap; }
.ag-cl th.ag-cl-act, .ag-cl td.ag-cl-act { width: 52px; padding-right: 0; }
.ag-cl td { padding-top: 8px; padding-bottom: 8px; }
.ag-cl tr.ag-group-row td { color: var(--hd); }
.ag-cl tr.ag-group-row.today strong { color: var(--acT); }
.ag-cl-today { margin-left: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--acOn); background: var(--ac); border-radius: 999px; padding: 1px 8px; }
.ag-cl-time { white-space: nowrap; font-weight: 700; color: var(--hd); font-variant-numeric: tabular-nums; }
.ag-cl-bar { display: inline-block; width: 4px; height: 18px; border-radius: 2px; margin-right: 10px; vertical-align: middle; }
.ag-cl-row { cursor: pointer; }
.ag-cl-row.pending .ag-cl-time { color: var(--warn); }
.ag-cl-row.noshow td, .ag-cl-row.off td { opacity: .6; }
.ag-cl-row.off .ag-cl-time { text-decoration: line-through; }
.ag-cl-row.ext { cursor: default; }
.ag-cl-row.ext .ag-act { color: var(--hint); }
.ag-cl-row a { color: var(--acT); text-decoration: none; }
.ag-cl-row a:hover { text-decoration: underline; }
.ag-cl tbody tr.ag-cl-free { background: var(--acSoft2); }
.ag-cl tbody tr.ag-cl-free.clickable { cursor: pointer; }
.ag-cl tbody tr.ag-cl-free.clickable:hover { background: var(--acSoft); }
.ag-cl-free .ag-cl-time { color: var(--acT); font-weight: 600; }
.ag-cl-add { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--acDim); background: var(--pn); color: var(--acT); display: inline-grid; place-items: center; }
.ag-cl-free:hover .ag-cl-add { background: var(--ac); border-color: var(--ac); color: var(--acOn); }
.ag-cl-freebadge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 4px 11px; background: var(--okBg); color: var(--okT); white-space: nowrap; }

/* 30 perces felosztás: félórás feliratok halványabban */
.ag-cal-hour.half { color: var(--bd3); font-size: 10px; }
.ag-slotsize { display: flex; align-items: center; gap: 6px; }
.ag-slotsize-label { font-size: 12.5px; color: var(--hint); white-space: nowrap; margin: 0; }
.ag-slotsize .form-select { width: auto; min-width: 96px; }


/* ── Kötelező üzleti adatok (első belépés után, Beállítások › Általános) ── */
.ag-req-star { color: var(--danger); font-weight: 700; }
.ag-setup-alert { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.ag-setup-alert > i { font-size: 18px; margin-top: 2px; }
.ag-setup-card { box-shadow: 0 0 0 2px color-mix(in srgb, var(--warn) 45%, transparent); }
.ag-field .form-control.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 15%, transparent); }

/* ── Szabadság a foglalóoldalon és a Szabadság oldalon ── */
.ag-earliest-badge { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--okT); background: var(--okBg); border-radius: 999px; padding: 3px 9px; }
.ag-earliest-badge.muted { color: var(--hint); background: var(--hv); font-weight: 600; }
.ag-away-alert { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.ag-away-alert > i { font-size: 17px; margin-top: 3px; }
.ag-away-alert strong { display: block; }
.ag-leave-kind-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--okT); background: var(--okBg); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.ag-leave-kind-badge.sick { color: var(--danger); background: var(--dangerBg); }

/* ══ Foglalóoldal aloldalai: Elérhetőség, Csapatunk (sablonok) ══════════════════ */
.ag-public-nav .ag-pnav a.active { background: var(--acSoft); color: var(--hd); }
.ag-site { display: flex; flex-direction: column; gap: 18px; padding: 26px 0 60px; animation: agup .35s ease; }
.ag-site h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; margin: 8px 0 10px; }
.ag-site h2 { font-size: 17px; font-weight: 800; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.ag-site h2 > i { color: var(--ac); }
.ag-site p { white-space: pre-line; }
.ag-site-head { padding: 8px 0 4px; }
.ag-site-head.center { text-align: center; }
.ag-site-head.center .ag-site-lead { margin-left: auto; margin-right: auto; }
.ag-site-lead { color: var(--hint); font-size: 16.5px; max-width: 680px; margin: 0; }
.ag-site-card { background: var(--pn); border: 1px solid var(--ln); border-radius: 18px; padding: 20px 22px; box-shadow: var(--sh); }
.ag-site-card p { margin: 0; color: var(--tx); line-height: 1.6; }
.ag-site-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.ag-site-grid.classic { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.ag-site-grid > :only-child { grid-column: 1 / -1; }
@media (max-width: 860px) { .ag-site-grid, .ag-site-grid.classic { grid-template-columns: 1fr; } }

/* Fejléc (Modern / Egyéni) */
.ag-site-hero {
    position: relative; border-radius: 24px; overflow: hidden; min-height: 260px; display: flex; align-items: flex-end;
    background-color: var(--ac);
    background-image: radial-gradient(circle at 85% 20%, color-mix(in srgb, #fff 22%, transparent) 0 18%, transparent 19%),
                      radial-gradient(circle at 92% 85%, color-mix(in srgb, #fff 12%, transparent) 0 26%, transparent 27%),
                      linear-gradient(135deg, var(--ac), color-mix(in srgb, var(--ac) 60%, #000));
    color: #fff;
}
.ag-site-hero.photo { background-size: cover; background-position: center; min-height: 340px; }
.ag-site-hero.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.62)); }
.ag-site-hero-in { position: relative; padding: 30px 34px; max-width: 760px; width: 100%; }
.ag-site-hero .ag-kicker { color: rgba(255,255,255,.85); }
.ag-site-hero h1 { color: #fff; }
.ag-site-hero p { margin: 0; font-size: 16px; opacity: .92; }
.ag-site-hero-ico { position: absolute; right: 28px; top: 22px; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: rgba(255,255,255,.18); }
.ag-site-hero:not(.photo) .ag-site-hero-in { max-width: none; }
@media (max-width: 860px) { .ag-site-hero-in { padding: 24px 20px; } .ag-site-hero-ico { right: 18px; top: 18px; width: 48px; height: 48px; font-size: 21px; } }

/* Nagy gombok (Modern / Egyéni) */
.ag-site-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ag-site-tiles:empty { display: none; }
.ag-site-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--pn); border: 1px solid var(--ln); text-decoration: none; color: var(--tx); box-shadow: var(--sh); transition: transform .15s, border-color .15s; min-width: 0; }
.ag-site-tile:hover { transform: translateY(-2px); border-color: var(--ac); color: var(--tx); }
.ag-site-tile i { font-size: 20px; color: var(--ac); margin-bottom: 6px; }
.ag-site-tile span { font-size: 12.5px; color: var(--hint); font-weight: 600; }
.ag-site-tile strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Elérhetőség-lista */
.ag-site-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ag-site-contact li { display: flex; gap: 14px; align-items: flex-start; }
.ag-site-contact li > i { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--acSoft); color: var(--hd); }
.ag-site-contact span { display: block; font-size: 12px; color: var(--hint); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ag-site-contact strong { font-size: 15px; word-break: break-word; }
.ag-site-contact a { text-decoration: none; color: inherit; }
.ag-site-contact div > a:not(:has(strong)) { display: inline-block; margin-top: 3px; font-size: 13px; font-weight: 700; color: var(--ac); }

/* Nyitvatartás */
.ag-site-hours table { width: 100%; border-collapse: collapse; }
.ag-site-hours th, .ag-site-hours td { padding: 8px 0; border-bottom: 1px dashed var(--ln); font-size: 14.5px; }
.ag-site-hours tr:last-child th, .ag-site-hours tr:last-child td { border-bottom: 0; }
.ag-site-hours th { font-weight: 600; }
.ag-site-hours th::first-letter { text-transform: uppercase; }
.ag-site-hours td { text-align: right; font-variant-numeric: tabular-nums; }
.ag-site-hours tr.closed td { color: var(--hint); }
.ag-site-hours tr.today th, .ag-site-hours tr.today td { color: var(--hd); font-weight: 800; }
.ag-site-hours em { font-style: normal; font-size: 11px; font-weight: 800; background: var(--ac); color: #fff; border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }

/* Térkép */
.ag-site-mapcard { padding: 0; overflow: hidden; }
.ag-site-map iframe { display: block; width: 100%; height: 320px; border: 0; }
.ag-site-grid.classic { align-items: stretch; }
.ag-site-mapcard.tall { display: flex; }
.ag-site-mapcard.tall .ag-site-map { flex: 1; display: flex; }
.ag-site-mapcard.tall .ag-site-map iframe { height: auto; flex: 1; min-height: 460px; }
.ag-site-plain.ag-site-mapcard { border-radius: 18px; }

/* Letisztult */
.ag-site-minimal .ag-site-narrow { max-width: 640px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 26px; }
.ag-site-minimal .ag-site-contact { padding: 22px 0; border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); }
.ag-site-minimal .ag-site-head h1 { font-size: clamp(34px, 5vw, 54px); }

/* Galéria (Egyéni) */
.ag-site-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ag-site-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; display: block; }

/* Csapat */
.ag-team { display: grid; gap: 16px; }
.ag-team.cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ag-team.tiles { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ag-team.rows { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; width: 100%; gap: 0; }
.ag-member { background: var(--pn); border: 1px solid var(--ln); border-radius: 18px; box-shadow: var(--sh); overflow: hidden; display: flex; flex-direction: column; }
.ag-member-photo { display: grid; place-items: center; background: color-mix(in srgb, var(--c) 85%, #fff); color: #fff; font-weight: 800; overflow: hidden; }
.ag-member-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-member-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ag-member h2 { font-size: 18px; margin: 0; }
.ag-member-title { color: var(--ac); font-weight: 700; font-size: 13.5px; }
.ag-member p { margin: 4px 0 0; color: var(--tx); font-size: 14px; line-height: 1.55; }
.ag-member-svcs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.ag-member-svcs span { font-size: 11.5px; font-weight: 600; background: var(--bg); border: 1px solid var(--ln); border-radius: 999px; padding: 2px 9px; }
.ag-member .ag-earliest-badge { align-self: flex-start; margin-top: 0; }
.ag-member-book { align-self: flex-start; margin-top: auto; }
.ag-member-body > .ag-member-svcs, .ag-member-body > p { margin-bottom: 8px; }
/* Klasszikus: kerek fotó középen */
.ag-team.cards .ag-member { align-items: center; text-align: center; padding-top: 22px; }
.ag-team.cards .ag-member-photo { width: 96px; height: 96px; border-radius: 50%; font-size: 30px; }
.ag-team.cards .ag-member-body { align-items: center; }
.ag-team.cards .ag-member-svcs { justify-content: center; }
.ag-team.cards .ag-member-book, .ag-team.cards .ag-earliest-badge { align-self: center; }
/* Modern / Egyéni: nagy, álló fotó */
.ag-team.tiles .ag-member-photo { aspect-ratio: 4 / 4.2; font-size: 54px; }
@media (max-width: 560px) { .ag-team.tiles .ag-member-photo { aspect-ratio: 4 / 3; } .ag-team.tiles .ag-member-photo:not(:has(img)) { aspect-ratio: 3 / 1; font-size: 40px; } }
/* Letisztult: sorok */
.ag-team.rows .ag-member { flex-direction: row; gap: 22px; align-items: flex-start; background: none; border: 0; border-bottom: 1px solid var(--ln); border-radius: 0; box-shadow: none; padding: 22px 0; }
.ag-team.rows .ag-member-photo { width: 108px; height: 108px; border-radius: 50%; flex: none; font-size: 34px; }
.ag-team.rows .ag-member-body { padding: 0; }
@media (max-width: 560px) { .ag-team.rows .ag-member { flex-direction: column; align-items: center; text-align: center; } .ag-team.rows .ag-member-body { align-items: center; } }

/* Mobilon a menü a fejléc alatt, vízszintesen görgethető (különben nem érhetők el az aloldalak) */
@media (max-width: 768px) {
    .ag-public-nav { flex-wrap: wrap; row-gap: 0; padding-top: 8px; padding-bottom: 4px; }
    .ag-public-nav .ag-brand { flex: 1; min-width: 0; }
    .ag-public-nav .ag-brand-logo { height: 36px; max-width: 120px; }
    .ag-public-nav .ag-brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
    .ag-public-nav .ag-user .btn { white-space: nowrap; }
    .ag-public-nav .ag-pnav { display: flex; order: 3; flex-basis: 100%; margin: 4px -6px 0; overflow-x: auto; scrollbar-width: none; }
    .ag-public-nav .ag-pnav a, .ag-public-nav .ag-pnav button { white-space: nowrap; padding: 6px 10px; font-size: 13px; }
}

/* ── Admin: Foglalóoldal oldalai ── */
.ag-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.ag-tpl { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 10px 10px 12px; border: 2px solid var(--ln); border-radius: 16px; background: var(--pn); color: var(--tx); font-family: inherit; transition: border-color .15s; }
.ag-tpl:hover { border-color: color-mix(in srgb, var(--ac) 50%, var(--ln)); }
.ag-tpl.selected { border-color: var(--ac); box-shadow: 0 0 0 3px var(--acSoft); }
.ag-tpl strong { font-size: 14px; display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.ag-tpl strong i { color: var(--ac); }
.ag-tpl > span:last-child { font-size: 12px; color: var(--hint); line-height: 1.4; }
/* Vázlatrajzok */
.ag-tpl-thumb { display: grid; gap: 4px; height: 92px; padding: 8px; border-radius: 10px; background: var(--bg); }
.ag-tpl-thumb i { display: block; border-radius: 4px; background: color-mix(in srgb, var(--tx) 14%, transparent); }
.ag-tpl-thumb.classic { grid-template-columns: 2fr 3fr; grid-template-rows: 1fr 1fr 1fr; }
.ag-tpl-thumb.classic i:nth-child(1) { grid-column: 1 / -1; background: none; border-bottom: 3px solid color-mix(in srgb, var(--tx) 25%, transparent); border-radius: 0; }
.ag-tpl-thumb.classic i:nth-child(3) { grid-row: 2 / 4; grid-column: 2; background: color-mix(in srgb, var(--ac) 30%, transparent); }
.ag-tpl-thumb.modern, .ag-tpl-thumb.custom { grid-template-columns: repeat(3, 1fr); grid-template-rows: 2fr 1fr; }
.ag-tpl-thumb.modern i:nth-child(1), .ag-tpl-thumb.custom i:nth-child(1) { grid-column: 1 / -1; background: linear-gradient(135deg, var(--ac), color-mix(in srgb, var(--ac) 55%, #000)); }
.ag-tpl-thumb.custom i:nth-child(1) { background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45)), repeating-linear-gradient(45deg, #b9a58c 0 8px, #a89379 8px 16px); }
.ag-tpl-thumb.minimal { grid-template-columns: 1fr; padding: 10px 28px; }
.ag-tpl-thumb.minimal i:nth-child(1) { width: 60%; margin: 0 auto; background: color-mix(in srgb, var(--tx) 28%, transparent); }
.ag-sp-custom { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--bg); border: 1px dashed var(--ln); }
.ag-sp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ag-sp-sub { font-size: 15px; font-weight: 800; margin: 22px 0 6px; }
.ag-sp-person { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--ln); }
.ag-sp-person.hidden .ag-sp-person-main > :not(:first-child), .ag-sp-person.hidden .ag-imgup { opacity: .45; }
.ag-sp-person-main { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ag-sp-person .ag-imgup { width: 104px; flex: none; }
@media (max-width: 560px) { .ag-sp-person { flex-direction: column; } }

/* Képfeltöltő */
.ag-imgup { display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.ag-imgup-frame { aspect-ratio: var(--ratio); border-radius: 12px; overflow: hidden; background: var(--bg); border: 1px dashed var(--ln); display: grid; place-items: center; color: var(--hint); font-size: 22px; }
.ag-imgup:not(.empty) .ag-imgup-frame { border-style: solid; }
.ag-imgup-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-imgup.round .ag-imgup-frame { border-radius: 50%; }
/* Logó: teljes kép (nincs vágás), sakktábla háttér, hogy az átlátszóság látsszon. */
.ag-imgup.logo { max-width: 320px; }
.ag-imgup.logo .ag-imgup-frame { aspect-ratio: 3 / 1; padding: 10px; background: repeating-conic-gradient(var(--bg) 0 25%, var(--pn) 0 50%) 0 0 / 16px 16px; }
.ag-imgup.logo .ag-imgup-frame img { object-fit: contain; }
.ag-imgup-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ag-imgup-actions label { margin: 0; cursor: pointer; }

/* ── DokiForCloud-kártya (Integrációk) ── */
.ag-cloud-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.ag-cloud-stats > div { background: var(--bg); border: 1px solid var(--ln); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.ag-cloud-stats span { font-size: 11.5px; font-weight: 700; color: var(--hint); text-transform: uppercase; letter-spacing: .04em; }
.ag-cloud-stats strong { font-size: 15px; }
.ag-cloud-url, .ag-cloud-key code { display: block; padding: 8px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--ln); word-break: break-all; }
.ag-cloud-key { margin: 6px 0; }
.ag-cloud-cals summary { cursor: pointer; font-weight: 600; }

/* ── Saját (magán) naptár: csak a tulajdonosa látja, a munka-naptár mellett ── */
.ag-chip-mine { border-style: dashed; }
.ag-chip-mine.on { border-style: solid; border-color: var(--hd); }
.ag-cal-col.mine { background-color: var(--pn); box-shadow: inset 3px 0 0 var(--bd3); }
.ag-cal-colhead.mine { flex-direction: row; justify-content: center; gap: 6px; flex-wrap: wrap; background: var(--hv); }
.ag-cal-colhead.mine .ag-act { width: 26px; height: 26px; }
.ag-cal-colhead.mine > i { color: var(--hint); font-size: 12px; }
.ag-cal-lanehead.mine { background: var(--hv); }
.ag-cal-lanehead.mine i { color: var(--hint); }
.ag-cal-ev.ag-cal-mine {
    background: color-mix(in srgb, var(--mine) 16%, var(--pn)); color: var(--hd);
    border: 1px dashed color-mix(in srgb, var(--mine) 70%, transparent); border-left: 4px solid var(--mine);
}
.ag-cal-ev.ag-cal-mine .ag-cal-ev-time i { font-size: 9px; opacity: .7; }
.ag-month-ev.ag-month-mine { background: color-mix(in srgb, var(--mine) 16%, var(--pn)); color: var(--hd); border-left: 3px solid var(--mine); cursor: pointer; }
.ag-month-ev.ag-month-mine i { font-size: 9px; opacity: .7; }
.ag-cl tbody tr.ag-cl-mine { background: color-mix(in srgb, var(--mine) 7%, transparent); }
.ag-cl-minebadge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 4px 11px; background: var(--hv); color: var(--hint); border: 1px dashed var(--bd3); white-space: nowrap; }
.ag-mine-when { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .ag-mine-when { grid-template-columns: 1fr 1fr; } .ag-mine-when > :first-child { grid-column: 1 / -1; } }
.ag-mine-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.ag-mine-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--pn); box-shadow: 0 0 0 1px var(--bd); cursor: pointer; }
.ag-mine-swatch.on { box-shadow: 0 0 0 2px var(--hd); }

/* ── Egy foglalás a saját naptárba (foglalás ablaka) ── */
.ag-addcal { position: relative; }
.ag-addcal-menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 230px;
    background: var(--pn); border: 1px solid var(--bd); border-radius: 12px; box-shadow: var(--sh); padding: 6px; display: flex; flex-direction: column;
}
.ag-addcal-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--hd); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.ag-addcal-menu a:hover { background: var(--hv); }
.ag-addcal-menu a i { width: 18px; text-align: center; color: var(--hint); }
.ag-addcal-wait { padding: 8px 10px; font-size: 12.5px; color: var(--hint); }
.ag-addcal-note { border-top: 1px solid var(--ln); margin-top: 4px; padding: 8px 10px 4px; font-size: 11.5px; color: var(--hint); line-height: 1.35; }
@media (max-width: 480px) { .ag-addcal-menu { right: auto; left: 0; } }

/* ── Működési mód ellenőrzése (Beállítások 2. lépés, Naptárak) ── */
.ag-mode-issues { margin-top: 14px; }
.ag-mode-issues ul { margin: 6px 0 0; padding-left: 20px; }
.ag-mode-issues li { margin: 3px 0; }

/* ── Gyors hozzárendelés a működési módhoz (2. lépés) ── */
.ag-assign h6 { font-weight: 700; color: var(--hd); margin: 0 0 4px; }
.ag-assign-rows { display: flex; flex-direction: column; border: 1px solid var(--ln); border-radius: 12px; overflow: hidden; }
.ag-assign-row { display: grid; grid-template-columns: minmax(160px, 260px) minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--ln); background: var(--pn); }
.ag-assign-row:first-child { border-top: 0; }
.ag-assign-row.wide { grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); align-items: start; }
.ag-assign-row.wide > .ag-assign-chips + .ag-assign-chips { grid-column: 2; }
.ag-assign-row .form-select { max-width: 420px; }
.ag-assign-name { font-weight: 700; color: var(--hd); display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.ag-assign-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ag-assign-chips .ag-chip { height: 28px; padding: 0 10px; font-size: 12px; }
.ag-assign-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--hint); margin-right: 2px; }
.ag-assign-new { display: flex; gap: 8px; margin-top: 10px; max-width: 480px; }
@media (max-width: 640px) { .ag-assign-row, .ag-assign-row.wide { grid-template-columns: 1fr; } .ag-assign-row.wide > .ag-assign-chips + .ag-assign-chips { grid-column: 1; } }

/* ── Integrációk katalógusa (Beállítások › Integrációk) ── */
.ag-intcat { margin-bottom: 26px; }
.ag-intcat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 14px; background: var(--hv); border-radius: 14px; box-shadow: inset 4px 0 0 var(--ac); }
.ag-intcat-head h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--hd); }
.ag-intcat-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--ac); color: var(--acOn); flex: none; }
.ag-intcat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ag-intcat-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--pn); border: 1px solid var(--bd); border-radius: 16px; min-width: 0; }
.ag-intcat-card h4 { margin: 8px 0 0; font-size: 15px; font-weight: 800; color: var(--hd); }
.ag-intcat-card p { margin: 0; font-size: 13px; color: var(--hint); line-height: 1.45; flex: 1; }
.ag-intcat-logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--brand); }
.ag-intcat-card.soon .ag-intcat-logo { opacity: .85; }
.ag-intcat-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ag-intcat-badge { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.ag-intcat-badge.on { background: var(--okBg); color: var(--okT); }
.ag-intcat-badge.off { background: var(--hv); color: var(--hint); }
.ag-intcat-badge.soon { background: var(--warnBg); color: var(--warn); }
.ag-intcat-link { border: 0; background: none; padding: 0; color: var(--acT); font-weight: 700; font-size: 13.5px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ag-intcat-link i { font-size: 11px; }
.ag-intcat-link:hover { text-decoration: underline; }
.ag-intcat-section { font-size: 18px; font-weight: 800; color: var(--hd); margin: 8px 0 14px; }

/* ── Naptárszinkron a „Mentés a naptáramba” ablakban ── */
.ag-mce-sync { margin-bottom: 14px; border: 1px solid var(--bd); border-radius: 12px; background: var(--hv); }
.ag-mce-sync > summary { cursor: pointer; padding: 10px 14px; font-weight: 700; color: var(--hd); list-style: none; }
.ag-mce-sync > summary::-webkit-details-marker { display: none; }
.ag-mce-sync > summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; float: right; font-size: 11px; color: var(--hint); }
.ag-mce-sync[open] > summary::after { content: "\f077"; }
.ag-mce-sync .int-card { margin: 0 10px 10px; }

/* ── Beállítások › Integrációk › Saját e-mail fiók: címke balra, mező jobbra ── */
.ag-smtp-form { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 16px; align-items: center; max-width: 640px; }
.ag-smtp-form > label { margin: 0; color: var(--tx); font-weight: 600; font-size: 14px; }
.ag-smtp-presets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ag-smtp-porthint { margin-top: 6px; font-size: 12.5px; color: var(--warn); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ag-smtp-porthint .btn-link { font-size: 12.5px; }
.ag-smtp-security { display: flex; gap: 32px; }
.ag-smtp-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ln); }
@media (max-width: 640px) {
    .ag-smtp-form { grid-template-columns: 1fr; gap: 4px; }
    .ag-smtp-form > span:empty { display: none; }
    .ag-smtp-form > label { margin-top: 8px; }
}
