/* =====================================================================
   C-szám (előnyszámítás) – elonyszam*.php. Csak az rs-theme.css változóira épül.
   ===================================================================== */
.ez-page [hidden] { display: none !important; }

/* ---- „Javaslat” sáv és alnavigáció ---- */
.ez-banner {
    display: flex; gap: 0.75rem; align-items: flex-start;
    padding: 0.85rem 1.1rem; margin-bottom: 1.6rem; border-radius: var(--rs-radius);
    background: var(--rs-accent-soft); border: 1px solid var(--rs-accent-line); color: var(--rs-text-2); font-size: 0.93rem; line-height: 1.5;
}
.ez-banner > i { color: var(--rs-accent-text); font-size: 1.15rem; line-height: 1.3; }
.ez-banner strong { color: var(--rs-heading); }
.ez-subnav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 2.6rem; }
.ez-subnav a {
    display: inline-flex; align-items: center; gap: 0.45rem; height: 38px; padding: 0 0.95rem; border-radius: 999px;
    border: 1px solid var(--rs-border-strong); color: var(--rs-text-2); text-decoration: none; font-weight: 600; font-size: 0.9rem;
}
.ez-subnav a:hover { color: var(--rs-heading); border-color: rgba(var(--rs-fg-rgb), 0.24); }
.ez-subnav a.is-active { background: var(--rs-accent); border-color: var(--rs-accent); color: var(--rs-accent-ink); }
.ez-subnav a.is-active i { color: var(--rs-accent-ink); }
.ez-subnav i { color: var(--rs-muted); }

/* ---- fej ---- */
.ez-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.4rem 2rem; margin-bottom: 2.4rem; }
.ez-head-text { display: flex; flex-direction: column; gap: 0.9rem; max-width: 720px; min-width: 0; }
.ez-lead { color: var(--rs-text-2); font-size: 1.05rem; line-height: 1.6; margin: 0; }
.ez-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
/* a hosszú címke (pl. a YS-lista forrása) keskeny kijelzőn tördelődik, ne lógjon ki az oldalból */
.ez-meta .rs-chip { max-width: 100%; height: auto; min-height: 26px; padding-top: 3px; padding-bottom: 3px; white-space: normal; }

/* ---- összesítő számok ---- */
.ez-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 2.8rem; }
.ez-kpi { padding: 1rem 1.15rem; display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.ez-kpi-value { font-family: var(--rs-font-serif); font-size: 2rem; line-height: 1.05; color: var(--rs-heading); }
.ez-kpi-value small { font-family: var(--rs-font-body); font-size: 0.85rem; color: var(--rs-muted); margin-left: 0.25rem; }
.ez-kpi-note { font-size: 0.82rem; color: var(--rs-muted); line-height: 1.4; }

/* ---- szekciók ---- */
.ez-section { margin-bottom: 3.2rem; }
.ez-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.6rem 1rem; margin-bottom: 1.1rem; }
.ez-section-head p { color: var(--rs-muted); font-size: 0.93rem; margin: 0; max-width: 640px; }
.ez-prose { color: var(--rs-text-2); line-height: 1.65; max-width: 780px; }
.ez-prose p { margin-bottom: 0.8rem; }
.ez-prose ul { padding-left: 1.2rem; margin-bottom: 0.8rem; }
.ez-prose li { margin-bottom: 0.3rem; }
.ez-prose strong { color: var(--rs-heading); }

/* ---- képlet ---- */
.ez-formula {
    padding: 1.3rem 1.5rem; overflow-x: auto; white-space: nowrap;
    font-family: var(--rs-font-serif); font-size: clamp(1.25rem, 1rem + 1vw, 1.8rem); color: var(--rs-heading); line-height: 1.4;
}
.ez-formula sup { font-size: 0.6em; color: var(--rs-accent-text); font-family: var(--rs-font-body); font-weight: 600; }
.ez-formula .ez-formula-sub { display: block; font-family: var(--rs-font-body); font-size: 0.9rem; color: var(--rs-muted); margin-top: 0.4rem; white-space: normal; }

/* ---- táblázatok ---- */
.ez-table-wrap { overflow-x: auto; border-radius: var(--rs-radius-lg); }
.ez-table { margin: 0; font-size: 0.92rem; }
.ez-table th { white-space: nowrap; }
.ez-table td { vertical-align: middle; }
.ez-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ez-table .ez-sub { display: block; font-size: 0.8rem; color: var(--rs-muted); }
.ez-table .ez-prev { color: var(--rs-text-2); opacity: 0.75; text-decoration: line-through; text-decoration-color: rgba(var(--rs-fg-rgb), 0.25); }
.ez-table .ez-prev::before { content: '↶ '; text-decoration: none; }
.ez-table tr.is-missing td { color: var(--rs-muted); }
.ez-table tr.is-outlier td:first-child { box-shadow: inset 3px 0 0 var(--rs-danger); }
.ez-table a { color: var(--rs-text); text-decoration: none; font-weight: 600; }
.ez-table a:hover { color: var(--rs-accent-text); }
.ez-table th.is-sortable { cursor: pointer; user-select: none; }
.ez-table th.is-sortable:hover { color: var(--rs-heading); }
.ez-table th.is-sorted { color: var(--rs-accent-text); }

/* ---- forrásjelölés ---- */
.ez-src { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.ez-src-gyari { background: var(--rs-steel-soft); color: var(--rs-chip-steel-text); }
.ez-src-osztalyeloiras, .ez-src-mvsz { background: var(--rs-accent-soft); color: var(--rs-accent-text); }
.ez-src-tervezo { background: rgba(var(--rs-fg-rgb), 0.06); color: var(--rs-text-2); }
.ez-src-tulaj_merte, .ez-src-felmero_merte { background: var(--rs-info-soft); color: var(--rs-info); }
.ez-src-bizottsag { background: var(--rs-success-soft); color: var(--rs-success); }
.ez-src-nem_hiteles { background: var(--rs-danger-soft); color: var(--rs-danger-text); }
.ez-ver { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; color: var(--rs-muted); white-space: nowrap; }
.ez-ver-testverrel_egyezik { color: var(--rs-info); }
.ez-ver-ellenorizve { color: var(--rs-success); }
.ez-ver-vitatott { color: var(--rs-danger-text); }
.ez-source-link { font-size: 0.82rem; color: var(--rs-text-2); word-break: break-word; }
.ez-source-link:hover { color: var(--rs-accent-text); }

/* ---- eltérés-jelző ---- */
.ez-diff { display: inline-flex; align-items: center; gap: 0.45rem; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.ez-diff-bar { position: relative; width: 64px; height: 6px; border-radius: 3px; background: rgba(var(--rs-fg-rgb), 0.06); flex: none; }
.ez-diff-bar > span { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.ez-diff-bar::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--rs-faint); }
.ez-diff.is-up { color: var(--rs-info); }
.ez-diff.is-up .ez-diff-bar > span { background: var(--rs-info); left: 50%; }
.ez-diff.is-down { color: var(--rs-accent-text); }
.ez-diff.is-down .ez-diff-bar > span { background: var(--rs-accent); right: 50%; }
.ez-diff.is-flat { color: var(--rs-text-2); }
.ez-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.82rem; color: var(--rs-muted); margin-top: 0.7rem; }
.ez-legend i { font-style: normal; }
.ez-legend .is-up { color: var(--rs-info); }
.ez-legend .is-down { color: var(--rs-accent-text); }

/* ---- nagy szám ---- */
.ez-number-card { padding: 1.4rem 1.5rem; display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; align-items: flex-end; }
.ez-number { display: flex; flex-direction: column; gap: 0.2rem; }
.ez-number-value { font-family: var(--rs-font-serif); font-size: clamp(2.8rem, 2rem + 2.4vw, 4rem); line-height: 1; color: var(--rs-accent-text); font-variant-numeric: tabular-nums; }
.ez-number-value.is-plain { color: var(--rs-heading); }
.ez-number-value.is-small { font-size: 2rem; }

/* ---- levezetés ---- */
.ez-steps .ez-step-result td { font-weight: 700; color: var(--rs-heading); border-bottom: 0; }
.ez-steps .ez-step-mod td { color: var(--rs-text-2); }
.ez-steps code { color: var(--rs-text-2); font-family: var(--rs-font-mono); font-size: 0.85em; background: none; }

/* ---- szűrők, keresés ---- */
.ez-tools { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 1rem; }
.ez-search {
    display: flex; align-items: center; gap: 0.6rem; min-height: 42px; padding: 0 0.9rem; margin: 0; width: min(100%, 320px);
    background: var(--rs-input); border: 1px solid var(--rs-border-strong); border-radius: 12px; color: var(--rs-muted);
}
.ez-search:focus-within { border-color: var(--rs-accent-line); }
.ez-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--rs-text); }
.ez-seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--rs-border-strong); gap: 2px; }
.ez-seg button { border: 0; background: none; color: var(--rs-text-2); font-weight: 600; font-size: 0.85rem; height: 32px; padding: 0 0.85rem; border-radius: 999px; }
.ez-seg button.is-active { background: var(--rs-surface-3); color: var(--rs-heading); }
.ez-more { display: flex; justify-content: center; margin-top: 1rem; }

/* ---- kalkulátor ---- */
.ez-calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.ez-calc-result { position: sticky; top: 1rem; }
.ez-fieldset { padding: 1.2rem 1.3rem 0.4rem; margin-bottom: 1rem; }
.ez-fieldset legend { float: none; width: auto; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rs-muted); margin-bottom: 0.8rem; }
.ez-field { margin-bottom: 0.9rem; }
.ez-field label { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.88rem; font-weight: 600; color: var(--rs-text-2); margin-bottom: 0.3rem; }
.ez-field label small { font-weight: 400; color: var(--rs-muted); }
.ez-field.is-changed .form-control, .ez-field.is-changed .form-select { border-color: var(--rs-accent-line); box-shadow: 0 0 0 1px var(--rs-accent-line); }
.ez-field-hint { font-size: 0.78rem; color: var(--rs-muted); margin-top: 0.25rem; min-height: 1em; }
.ez-field-hint.is-changed { color: var(--rs-accent-text); }
.ez-warn { padding: 0.7rem 0.9rem; border-radius: var(--rs-radius); background: var(--rs-danger-soft); border: 1px solid rgba(255, 107, 94, 0.25); color: var(--rs-danger-text); font-size: 0.88rem; }

/* ---- üres és hiba-állapot ---- */
.ez-empty { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 3rem 1.2rem; text-align: center; color: var(--rs-muted); }
.ez-empty > i { font-size: 2rem; }
.ez-empty strong { color: var(--rs-heading); font-size: 1.05rem; }

/* ---- jelentés: diagramok, összevetés, kérdések ---- */
.ez-report-actions { display: flex; gap: 0.5rem; }
.ez-chart-wrap { padding: 1rem 1.1rem 0.9rem; }
.ez-chart { display: block; width: 100%; height: auto; max-height: 520px; }
.ez-chart .ez-grid { stroke: var(--rs-border); stroke-width: 1; }
.ez-chart .ez-diag { stroke: var(--rs-faint); stroke-width: 1.2; stroke-dasharray: 5 4; }
.ez-chart .ez-band { fill: rgba(var(--rs-fg-rgb), 0.035); }
.ez-chart .ez-tick { fill: var(--rs-muted); font-size: 11px; font-family: var(--rs-font-body); }
.ez-chart .ez-axis { fill: var(--rs-text-2); font-size: 12px; font-weight: 600; font-family: var(--rs-font-body); }
.ez-chart .ez-pt { stroke: var(--rs-bg); stroke-width: 1.5; }
.ez-chart .ez-pt.is-class { fill: var(--rs-accent); }
.ez-chart .ez-pt.is-ys { fill: var(--rs-info); }
.ez-chart .ez-pt.is-outlier { stroke: var(--rs-danger); stroke-width: 2.5; }
.ez-chart .ez-pt-label { fill: var(--rs-text-2); font-size: 10.5px; font-family: var(--rs-font-body); }
.ez-chart .ez-bar.is-down { fill: var(--rs-accent); }
.ez-chart .ez-bar.is-up { fill: var(--rs-info); }
.ez-chart .ez-bar.is-near { opacity: 0.6; }
.ez-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.3rem; vertical-align: -1px; }
.ez-dot.is-class { background: var(--rs-accent); }
.ez-dot.is-ys { background: var(--rs-info); }
.ez-dot.is-outlier { background: transparent; border: 2px solid var(--rs-danger); }
.ez-compare th { color: var(--rs-text-2); font-weight: 600; white-space: normal; }
.ez-compare td, .ez-compare th { vertical-align: top; }
.ez-compare tbody th { width: 18%; }
.ez-questions > li { margin-bottom: 0.6rem; }

/* ---- áttekintés (elonyszam_attekintes.php): előnyök-hátrányok, eloszlás, lépések ---- */
.ez-pros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ez-pro { padding: 1.3rem 1.4rem; min-width: 0; }
.ez-pro .rs-h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.9rem; }
.ez-pro .rs-h3 i { font-size: 1.1rem; }
.ez-pro.is-ys .rs-h3 i { color: var(--rs-muted); }
.ez-pro.is-vpp .rs-h3 i { color: var(--rs-accent-text); }
.ez-pro.is-vpp { border-color: rgba(var(--rs-fg-rgb), 0.16); }
.ez-pro ul { margin: 0; padding-left: 1.1rem; color: var(--rs-text-2); line-height: 1.55; font-size: 0.94rem; }
.ez-pro li { margin-bottom: 0.55rem; }
.ez-pro li strong { color: var(--rs-heading); }
.ez-hist { padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: 0.55rem; }
.ez-hist-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 8rem; align-items: center; gap: 0.8rem; font-size: 0.92rem; }
.ez-hist-label { color: var(--rs-text-2); }
.ez-hist-bar { position: relative; height: 10px; border-radius: 5px; background: rgba(var(--rs-fg-rgb), 0.06); overflow: hidden; }
.ez-hist-bar > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--rs-info); }
.ez-hist-val { color: var(--rs-heading); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ez-hist-val small { color: var(--rs-muted); }
.ez-big { min-width: 760px; }
.ez-big .ez-why { white-space: normal; min-width: 18rem; font-size: 0.85rem; color: var(--rs-text-2); }
.ez-steps { counter-reset: ez-step; list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; max-width: 820px; }
.ez-steps > li { counter-increment: ez-step; position: relative; padding: 0.85rem 1rem 0.85rem 3.4rem; border: 1px solid var(--rs-border); border-radius: var(--rs-radius-lg); background: rgba(var(--rs-fg-rgb), 0.025); color: var(--rs-text-2); line-height: 1.55; font-size: 0.94rem; }
.ez-steps > li strong { color: var(--rs-heading); }
.ez-steps > li::before { content: counter(ez-step); position: absolute; left: 0.9rem; top: 0.8rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--rs-accent-soft); color: var(--rs-accent-text); font-weight: 700; font-size: 0.9rem; }

@media (max-width: 991.98px) {
    .ez-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ez-pros { grid-template-columns: minmax(0, 1fr); }
    .ez-calc { grid-template-columns: minmax(0, 1fr); }
    .ez-calc-result { position: static; }
}
@media (max-width: 575.98px) {
    .ez-kpis { grid-template-columns: minmax(0, 1fr); }
    .ez-number-card { gap: 1rem 1.6rem; }
    .ez-diff-bar { display: none; }
    .ez-hist-row { grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 0.8rem; }
    .ez-hist-label { grid-column: 1; grid-row: 1; }
    .ez-hist-val { grid-column: 2; grid-row: 1; }
    .ez-hist-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ---- nyomtatás (a jelentés PDF-je): papíron világos, a sötét téma fehér feliratai feketék ---- */
@media print {
    @page { margin: 14mm 12mm; }
    .ez-subnav, .ez-report-actions, .rs-page-glow { display: none !important; }
    .rs-page { padding-top: 0 !important; padding-bottom: 0 !important; }
    .ez-banner { background: none !important; border: 1px solid #999999 !important; color: #000000 !important; }
    .ez-banner > i, .ez-banner strong { color: #000000 !important; }
    .ez-lead, .ez-prose, .ez-section-head p, .ez-kpi-note, .ez-legend, .rs-muted { color: #333333 !important; }
    .ez-kpi-value, .ez-kpi-value small, .ez-prose strong, .ez-formula, .ez-table a, .ez-empty strong, .ez-number-value.is-plain { color: #000000 !important; }
    .ez-formula sup { color: #000000 !important; }
    .ez-formula { white-space: normal; }
    .ez-table { color: #000000; }
    .ez-table .ez-sub, .ez-compare th { color: #444444 !important; }
    .ez-diff.is-up { color: #1b6a8a !important; }
    .ez-diff.is-down { color: #8a6100 !important; }
    .ez-diff-bar { display: none !important; }
    .rs-chip { border: 1px solid #999999 !important; background: none !important; color: #000000 !important; }
    .ez-chart .ez-grid { stroke: #dddddd; }
    .ez-chart .ez-diag { stroke: #777777; }
    .ez-chart .ez-band { fill: #f1f1f1; }
    .ez-chart .ez-tick, .ez-chart .ez-pt-label { fill: #333333; }
    .ez-chart .ez-axis { fill: #000000; }
    .ez-chart .ez-pt { stroke: #ffffff; }
    .ez-chart .ez-pt.is-class, .ez-chart .ez-bar.is-down, .ez-dot.is-class { fill: #c08a00; background: #c08a00; }
    .ez-chart .ez-pt.is-ys, .ez-chart .ez-bar.is-up, .ez-dot.is-ys { fill: #1b6a8a; background: #1b6a8a; }
    .ez-chart .ez-pt.is-outlier { stroke: #c0392b; }
    .ez-section { margin-bottom: 1.6rem; }
    .ez-section-head { break-after: avoid; }
    .rs-panel, .ez-kpi, .ez-table tr, .ez-questions > li { break-inside: avoid; }
    .ez-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .ez-report .col-lg-5, .ez-report .col-lg-6, .ez-report .col-lg-7 { flex: 0 0 100%; max-width: 100%; }
    a { text-decoration: none !important; }
    .ez-report .container { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
    .ez-report { font-size: 10.5pt; }
    .ez-report .rs-display { font-size: 28pt; }
    .ez-report .ez-lead { font-size: 11pt; }
    .ez-report .ez-kpi { padding: 0.6rem 0.75rem; }
    .ez-report .ez-kpi-value { font-size: 1.55rem; }
    .ez-report .ez-kpi-note { font-size: 0.72rem; }
    .ez-report a, .ez-report .rs-label-accent, .ez-report .rs-display em, .ez-report .rs-h2 em { color: #7a5600 !important; }
}

/* =====================================================================
   Szimulációs szám (elonyszam_vpp.php) és versenypróba (elonyszam_verseny.php)
   ===================================================================== */
.ez-banner.is-steel { background: var(--rs-steel-soft); border-color: rgba(143, 170, 210, 0.25); }
.ez-banner.is-steel > i { color: var(--rs-steel); }
.ez-head-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; }
.ez-seg a { display: inline-flex; align-items: center; height: 32px; padding: 0 0.85rem; border-radius: 999px; color: var(--rs-text-2); font-weight: 600; font-size: 0.85rem; text-decoration: none; white-space: nowrap; }
.ez-seg a:hover { color: var(--rs-heading); }
.ez-seg a.is-active { background: var(--rs-surface-3); color: var(--rs-heading); }
.ez-kpi-split { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; }
.ez-kpi-split > span { display: inline-flex; align-items: baseline; }
.ez-table .ez-th-group { text-align: center; border-bottom-color: var(--rs-border-strong); font-weight: 600; }
.ez-table tr.is-flagged td:first-child { box-shadow: inset 3px 0 0 var(--rs-steel); }
.ez-notes { white-space: normal; min-width: 9rem; }
.ez-flag { display: inline-flex; align-items: center; gap: 4px; margin: 0 0.35rem 0.2rem 0; padding: 0 8px; height: 22px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; white-space: nowrap;
    background: var(--rs-steel-soft); color: var(--rs-steel); }
.ez-flag.is-info { background: var(--rs-info-soft); color: var(--rs-info); }
.ez-flag.is-danger { background: var(--rs-danger-soft); color: var(--rs-danger-text); }

/* KLR-próba (elonyszam_vpp.php): a hossz szerinti közelítések külön csoportban, halványan */
.ez-klr { min-width: 760px; }
.ez-klr .ez-klr-group th { font-size: 0.8rem; font-weight: 600; color: var(--rs-muted); white-space: normal; padding-top: 0.9rem; }
.ez-klr tr.is-approx td { color: var(--rs-text-2); font-style: italic; }
.ez-klr tr.is-approx td a { font-weight: 500; }

/* versenyek listája */
.ez-comp-list tr.is-selected td { background: var(--rs-accent-soft); }
.ez-comp-list tr.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--rs-accent); }

/* futamok és csoportok */
.ez-race { margin-bottom: 2rem; }
.ez-race > .rs-h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; margin-bottom: 0.8rem; }
.ez-race > .rs-h3 small { font-size: 0.85rem; font-weight: 400; color: var(--rs-muted); font-family: var(--rs-font-body); }
.ez-group { margin-bottom: 1rem; padding: 0; overflow: hidden; }
.ez-group-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; padding: 0.85rem 1.1rem; cursor: pointer; list-style: none; }
.ez-group-head::-webkit-details-marker { display: none; }
.ez-group-head::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: 0.8rem; color: var(--rs-muted); transition: transform 0.15s ease; margin-right: 0.2rem; }
.ez-group[open] > .ez-group-head::before { transform: rotate(90deg); }
.ez-group-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.7rem; flex: 1 1 auto; min-width: 0; }
.ez-group-title strong { color: var(--rs-heading); font-size: 1.02rem; }
.ez-group-title .rs-muted { font-size: 0.86rem; }
.ez-group-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ez-group > .ez-table-wrap { border-top: 1px solid var(--rs-border); border-radius: 0; }
.ez-chg { display: inline-flex; align-items: center; gap: 0.3rem; height: 26px; padding: 0 0.7rem; border-radius: 999px; font-size: 0.78rem; color: var(--rs-text-2); background: rgba(var(--rs-fg-rgb), 0.05); white-space: nowrap; }
.ez-chg b { color: var(--rs-heading); font-weight: 600; }
.ez-chg.is-strong { background: var(--rs-accent-soft); color: var(--rs-accent-text); }
.ez-race-table td, .ez-race-table th { padding-left: 0.6rem; padding-right: 0.6rem; }
/* telefonon a táblázat vízszintesen görget, a hajónév egy sorban marad */
.ez-race-table { min-width: 860px; }
.ez-race-table td:nth-child(2) { min-width: 12rem; }
.ez-comp-list { min-width: 720px; }
#ezVppTable { min-width: 980px; }
.ez-polar { min-width: 520px; }
.ez-race-table tr.is-dim td { color: var(--rs-muted); }
.ez-race-table tr.is-dim td .ez-boat { color: var(--rs-text-2); }
.ez-race-table .ez-boat { font-weight: 600; color: var(--rs-heading); }
.ez-race-table .ez-sub a { font-weight: 500; font-size: 0.8rem; color: var(--rs-text-2); }
.ez-race-table .ez-sub a:hover { color: var(--rs-accent-text); }
.ez-how { display: inline-block; margin-left: 0.25rem; padding: 0 6px; border-radius: 999px; font-size: 0.68rem; line-height: 1.5; background: rgba(var(--rs-fg-rgb), 0.06); color: var(--rs-muted); }
.ez-rank b { color: var(--rs-heading); font-weight: 700; }
.ez-race-table tr.is-dim .ez-rank b { color: var(--rs-muted); }
.ez-move { display: inline-block; min-width: 2.1em; margin-left: 0.2rem; font-size: 0.78rem; font-weight: 700; text-align: left; }
.ez-move.is-up { color: var(--rs-info); }
.ez-move.is-down { color: var(--rs-accent-text); }
.ez-move.is-same { color: var(--rs-muted); font-weight: 500; }
.ez-legend b { color: var(--rs-text-2); font-weight: 600; }
.ez-none-table { min-width: 640px; }

/* versenypróba: a beosztás választója */
.ez-view { display: flex; flex-direction: column; gap: 0.8rem; padding: 0.9rem 1.1rem; margin-bottom: 1.2rem; }
.ez-view-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ez-view-tabs a { padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid var(--rs-border-strong); color: var(--rs-text-2); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.ez-view-tabs a:hover { color: var(--rs-heading); }
.ez-view-tabs a.is-active { background: var(--rs-accent); border-color: var(--rs-accent); color: var(--rs-accent-ink); }
.ez-view-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem 1rem; }
.ez-view-limit { display: flex; flex-direction: column; gap: 0.2rem; margin: 0; font-size: 0.78rem; color: var(--rs-muted); }
.ez-view-limit input { width: 7.5rem; font-family: var(--rs-font-mono); }
.ez-view-check { margin-bottom: 0.3rem; font-size: 0.9rem; color: var(--rs-text-2); }
.ez-view-reset { margin-bottom: 0.3rem; font-size: 0.88rem; color: var(--rs-accent-text); }
.ez-view-desc { font-size: 0.85rem; color: var(--rs-muted); }
.ez-view-warn { font-size: 0.88rem; color: var(--rs-danger-text); }

/* típusadatlap: polár */
.ez-polar td, .ez-polar th { padding-left: 0.55rem; padding-right: 0.55rem; }
.ez-polar .ez-sub { display: inline; margin-left: 0.25rem; }
.ez-bands { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.ez-bands > div { display: flex; flex-direction: column; gap: 0.1rem; }
.ez-bands .ez-band-value { font-family: var(--rs-font-serif); font-size: 1.6rem; line-height: 1.1; color: var(--rs-heading); font-variant-numeric: tabular-nums; }

@media (max-width: 575.98px) {
    .ez-group-head { padding: 0.75rem 0.85rem; }
    .ez-head-tools { width: 100%; }
}
@media print {
    .ez-head-tools, .ez-group-head::before { display: none !important; }
    .ez-group { border: 1px solid #cccccc !important; }
    .ez-group-title strong, .ez-race-table .ez-boat, .ez-rank b, .ez-chg b, .ez-bands .ez-band-value { color: #000000 !important; }
    .ez-chg, .ez-flag, .ez-how { background: none !important; border: 1px solid #999999; color: #000000 !important; }
    .ez-move.is-up { color: #1b6a8a !important; }
    .ez-move.is-down { color: #8a6100 !important; }
    .ez-comp-list tr.is-selected td { background: #f1f1f1 !important; }
}

/* =====================================================================
   A két javasolt szám egységes jelölése: C-szám (sárga) és VPP-szám (acélkék)
   ===================================================================== */
.ez-uses { display: inline-block; margin-left: 0.2rem; padding: 0 5px; border-radius: 4px; font-size: 0.66rem; font-weight: 700; line-height: 1.45; letter-spacing: 0.02em; vertical-align: 1px; }
.ez-uses-c { background: var(--rs-accent-soft); color: var(--rs-accent-text); }
.ez-uses-vpp { background: var(--rs-steel-soft); color: var(--rs-steel); }
.ez-field label > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.15rem; }
.ez-number-value.is-vpp, .ez-kpi-value .is-vpp, .ez-kpi-split .is-vpp { color: var(--rs-steel); }
.ez-number-value.is-busy { opacity: 0.45; transition: opacity 0.2s ease; }
.ez-table th.ez-th-c { color: var(--rs-accent-text); }
.ez-table th.ez-th-vpp { color: var(--rs-steel); }
.ez-trio { gap: 1rem 1.8rem; }
.ez-trio .rs-label small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--rs-muted); }
.ez-compare-mini th, .ez-compare-mini td { font-size: 0.86rem; }
.ez-compare-mini tbody th { font-weight: 600; color: var(--rs-text-2); }
@media print {
    .ez-number-value.is-vpp, .ez-kpi-split .is-vpp, .ez-table th.ez-th-vpp { color: #1b4f7a !important; }
    .ez-table th.ez-th-c { color: #7a5600 !important; }
    .ez-uses { border: 1px solid #999999; background: none !important; color: #000000 !important; }
}
.ez-number-diff { font-size: 0.85rem; color: var(--rs-muted); display: inline-flex; align-items: center; gap: 0.35rem; }
.ez-number-value.is-small.is-vpp { color: var(--rs-steel); }
.ez-chart .ez-bar.is-c { fill: var(--rs-accent); }
.ez-chart .ez-bar.is-vpp { fill: var(--rs-steel); }
.ez-dot.is-vpp { background: var(--rs-steel); }
@media print {
    .ez-chart .ez-bar.is-c { fill: #c08a00; }
    .ez-chart .ez-bar.is-vpp, .ez-dot.is-vpp { fill: #1b4f7a; background: #1b4f7a; }
}

/* ---- adatminőség-jelvény (elonyszam_tipus.php): A / B / C és a ± ---- */
.rs-chip.ez-grade-chip { text-decoration: none; }
.ez-grade-a, .rs-chip.ez-grade-a { background: var(--rs-success-soft); color: var(--rs-success); }
.ez-grade-b, .rs-chip.ez-grade-b { background: var(--rs-info-soft); color: var(--rs-info); }
.ez-grade-c, .rs-chip.ez-grade-c { background: var(--rs-accent-soft); color: var(--rs-accent-text); }
.ez-quality { display: flex; align-items: flex-start; gap: 0.9rem 1.1rem; padding: 1rem 1.15rem; }
.ez-grade { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 10px;
    font-family: var(--rs-font-serif); font-size: 1.55rem; font-weight: 700; line-height: 1; }
.ez-quality-text { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.ez-quality-text p { margin: 0; color: var(--rs-text-2); font-size: 0.92rem; line-height: 1.5; }
.ez-quality-text .ez-quality-miss { color: var(--rs-muted); font-size: 0.84rem; }
.ez-quality-text .ez-quality-miss b { color: var(--rs-text-2); font-weight: 600; }
@media (max-width: 575.98px) {
    .ez-quality { padding: 0.85rem 0.9rem; gap: 0.7rem; }
    .ez-grade { width: 2.2rem; height: 2.2rem; font-size: 1.3rem; }
}
@media print {
    .ez-grade, .rs-chip.ez-grade-chip { background: none !important; border: 1px solid #999999; color: #000000 !important; }
    .ez-quality-text p, .ez-quality-text .ez-quality-miss { color: #333333 !important; }
}

/* ---- versenypróba (elonyszam_verseny.php): a szélsáv-választó ---- */
.ez-page #verseny, .ez-page #szelsav, .ez-page #adatminoseg { scroll-margin-top: 96px; }   /* a rögzített fejléc alá ne bukjon a cím */
.ez-band-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; margin-bottom: 1.2rem; }
.ez-band-pick .ez-seg { flex-wrap: wrap; border-radius: 18px; }
.ez-band-pick .ez-seg a small { margin-left: 0.3rem; font-weight: 400; color: var(--rs-muted); }
.ez-band-pick .ez-seg a.is-active small { color: var(--rs-text-2); }
.ez-band-note { flex: 1 1 18rem; min-width: 0; font-size: 0.84rem; color: var(--rs-muted); line-height: 1.45; }
.ez-band-mark { display: inline-flex; align-items: center; gap: 0.3rem; height: 24px; padding: 0 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
    background: var(--rs-steel-soft); color: var(--rs-steel); white-space: nowrap; vertical-align: 0.3em; font-family: var(--rs-font-body); letter-spacing: 0; }
@media print {
    .ez-band-pick .ez-seg { display: none !important; }
    .ez-band-mark { background: none !important; border: 1px solid #999999; color: #000000 !important; }
}

/* ---- módosítási szabályok (elonyszam_szabalyok.php): a három változat, a döntések, a két módosításfajta ---- */
.ez-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ez-opt { padding: 1.2rem 1.3rem; min-width: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.ez-opt .rs-h3 { font-size: 1.2rem; margin: 0; }
.ez-opt-no { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; margin-right: 0.45rem; border-radius: 50%;
    background: rgba(var(--rs-fg-rgb), 0.07); color: var(--rs-text-2); font-size: 0.85rem; font-weight: 700; vertical-align: 0.1em; }
.ez-opt p { margin: 0; color: var(--rs-text-2); font-size: 0.92rem; line-height: 1.5; }
.ez-opt ul { margin: 0; padding-left: 1.1rem; color: var(--rs-text-2); font-size: 0.9rem; line-height: 1.5; }
.ez-opt li { margin-bottom: 0.35rem; }
.ez-opt-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ez-opt-label.is-plus { color: var(--rs-success); }
.ez-opt-label.is-minus { color: var(--rs-danger-text); }
.ez-opt.is-chosen { border-color: var(--rs-accent-line); box-shadow: inset 0 0 0 1px var(--rs-accent-line); }
.ez-opt.is-chosen .ez-opt-no { background: var(--rs-accent-soft); color: var(--rs-accent-text); }
.ez-decisions td:first-child { color: var(--rs-heading); font-weight: 600; width: 26%; }
.ez-decisions td:nth-child(2) { width: 30%; }
.ez-decisions td { white-space: normal; color: var(--rs-text-2); }
.ez-sources { font-size: 0.85rem; color: var(--rs-muted); padding-left: 1.1rem; }
.ez-sources a { color: var(--rs-text-2); word-break: break-word; }
.ez-sources a:hover { color: var(--rs-accent-text); }
@media (max-width: 991.98px) {
    .ez-opts { grid-template-columns: minmax(0, 1fr); }
    .ez-decisions td:first-child, .ez-decisions td:nth-child(2) { width: auto; }
}

/* ---- csoportosított alnavigáció (2026-11-22, views/elonyszam_nav.php: VPP-nyitóoldal + Megérteni · A számok · Kipróbálni) ---- */
.ez-subnav.is-grouped { align-items: center; gap: 0.5rem 0.4rem; }
.ez-subnav-g { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; padding-left: 0.75rem; margin-left: 0.35rem; border-left: 1px solid var(--rs-border-strong); }
.ez-subnav-g > b { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rs-muted); margin-right: 0.15rem; }
/* telefonon egy sor: VPP + csoportonként legördülő menü (a teljes sor rejtve) */
.ez-subnav-m { display: none; }
@media (max-width: 767.98px) {
    .ez-subnav.is-grouped { display: none; }
    /* egy sor: VPP + 3 egyforma csoportgomb; a szerkesztők „Admin” gombja a következő sorba kerül */
    .ez-subnav-m { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 0.35rem; margin-bottom: 2rem; position: relative; z-index: 20; }
    .ez-subnav-m > a, .ez-dd > summary {
        display: flex; align-items: center; justify-content: center; gap: 0.3rem; height: 38px; padding: 0 0.55rem; border-radius: 999px; min-width: 0;
        border: 1px solid var(--rs-border-strong); color: var(--rs-text-2); text-decoration: none; font-weight: 600; font-size: 0.84rem; cursor: pointer;
    }
    .ez-subnav-m > a i { color: var(--rs-muted); }
    .ez-subnav-m > a.is-active, .ez-dd.is-active > summary { background: var(--rs-accent); border-color: var(--rs-accent); color: var(--rs-accent-ink); }
    .ez-subnav-m > a.is-active i, .ez-dd.is-active > summary i { color: var(--rs-accent-ink); }
    .ez-dd { position: static; }   /* a lista a teljes sor alatt nyílik, teljes szélességben (.ez-subnav-m a viszonyítási pont) */
    .ez-dd { min-width: 0; }
    .ez-dd > summary { list-style: none; white-space: nowrap; overflow: hidden; }
    .ez-dd > summary::-webkit-details-marker { display: none; }
    .ez-dd > summary i { font-size: 0.7rem; color: var(--rs-muted); transition: transform 0.15s ease; }
    .ez-dd[open] > summary i { transform: rotate(180deg); }
    .ez-dd > summary:focus-visible { outline: 2px solid var(--rs-accent); outline-offset: 2px; }
    .ez-dd-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; display: flex; flex-direction: column; padding: 0.4rem;
        border-radius: var(--rs-radius); background: var(--rs-surface); border: 1px solid var(--rs-border-strong); box-shadow: var(--rs-shadow-lg); }
    .ez-dd-title { padding: 0.35rem 0.65rem 0.25rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rs-muted); }
    .ez-dd-menu a { display: flex; align-items: center; gap: 0.55rem; padding: 0.6rem 0.65rem; border-radius: 8px; color: var(--rs-text); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
    .ez-dd-menu a i { color: var(--rs-muted); }
    .ez-dd-menu a:hover { background: rgba(var(--rs-fg-rgb), 0.05); }
    .ez-dd-menu a.is-active { background: var(--rs-accent-soft); color: var(--rs-heading); }
}
