/* DAGÓ 2.0 — pages-d.css · az új konzol-arculat oldal-szintű szabályai (2026-10-12, tulaj makettjei)
   Színliterál itt sem lehet — minden szín a tokens.css-ből. */
@layer pages {

/* ════════════════════════════════════════════════════════════════════════════
   D CSOPORT — Bevétel · Csomagok · Fizetés (makettek 22–29)
   Minden új osztály `d-` előtagú; a közös elemeket (.tabs, .card-head .sub) csak a három oldal gyökerén belül
   igazítjuk a makettekhez, hogy más oldalt ne érintsen.
   ══════════════════════════════════════════════════════════════════════════ */
:is(#page-bevetel, #page-csomagok, #page-fizetes) :is(.pagehead-sub, .pagehead-desc):empty { display: none; }
:is(#page-bevetel, #page-csomagok, #page-fizetes) .card-head .sub { font-family: var(--font-body); font-size: 14.5px; line-height: 1.45; }

/* Fülek: keretes sor, a kiválasztott tömör borostyán (makett 22, 25–27). */
:is(#page-bevetel, #page-csomagok, #page-fizetes) .tabs {
  display: inline-flex; max-width: 100%; gap: 0; padding: 0; align-self: flex-start;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-sm);
}
:is(#page-bevetel, #page-csomagok, #page-fizetes) .tab {
  min-height: 44px; padding: 0 28px; border-radius: 0;
  font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--text);
}
:is(#page-bevetel, #page-csomagok, #page-fizetes) .tab + .tab { border-left: 1px solid var(--line-2); }
:is(#page-bevetel, #page-csomagok, #page-fizetes) .tab:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
:is(#page-bevetel, #page-csomagok, #page-fizetes) .tab:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
:is(#page-bevetel, #page-csomagok, #page-fizetes) .tab[aria-selected="true"] { background: var(--amber); color: var(--on-accent); font-weight: 700; }
@media (max-width: 759px) {
  :is(#page-bevetel, #page-csomagok, #page-fizetes) .tab { padding: 0 16px; font-size: 16px; }
}

/* Egymás alatti blokkok egy fülön belül (a Fizetés két része — a .hidden így ver). */
.d-stack, .d-col { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }

/* Fő hasáb + keskeny jobb oszlop (makett 23, 24, 26–29). Telefonon és keskeny asztalon egymás alatt. */
.d-main-side { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1180px) { .d-main-side { grid-template-columns: minmax(0, 2.15fr) minmax(300px, 1fr); } }
.d-even { align-items: stretch; }

/* ── Ikonos KPI-csempe ─────────────────────────────────────────────────────── */
.d-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (min-width: 760px) { .d-kpis { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.d-kpis .kpi { background: var(--panel); border-color: var(--line-2); padding: 18px 20px; }
.d-kpi-b { min-width: 0; }
.d-kpi { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.d-kpi-ic {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 26px;
  background: color-mix(in srgb, var(--kc) 20%, var(--panel)); color: color-mix(in srgb, var(--kc) 80%, var(--text));
}
.d-kpi .kpi-lab, .d-kpis .kpi-lab { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--text); }
.d-kpi .kpi-sub, .d-kpis .kpi-sub { font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }

/* ── Gyűrű-diagram ─────────────────────────────────────────────────────────── */
.d-donutwrap { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; }
.d-donut { position: relative; flex: none; width: 184px; height: 184px; border-radius: 50%; }
.d-donut-c {
  position: absolute; inset: 26px; border-radius: 50%; background: var(--panel);
  display: grid; place-content: center; text-align: center;
}
.d-donut-c b { font-family: var(--font-head); font-size: 30px; font-weight: 700; line-height: 1; }
.d-donut-c span { color: var(--muted); font-size: 14px; margin-top: 4px; }
.d-legend { flex: 1 1 220px; list-style: none; margin: 0; padding: 0; }
.d-legend li {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) auto 52px; gap: 12px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px;
}
.d-legend li:last-child { border-bottom: 0; }
.d-legend i { width: 14px; height: 14px; border-radius: 50%; }
.d-legend b { font-variant-numeric: tabular-nums; }
.d-legend small { color: var(--muted); text-align: right; font-size: 14px; }

/* ── „Mozgás — ez a hónap" sorai ───────────────────────────────────────────── */
.d-moves { display: flex; flex-direction: column; }
.d-move { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.d-move-ic {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px;
  background: color-mix(in srgb, var(--mc) 26%, var(--panel)); color: color-mix(in srgb, var(--mc) 75%, var(--text));
}
.d-move-t b { display: block; font-weight: 600; font-size: 15.5px; }
.d-move-t span { color: var(--muted); font-size: 13.5px; }
.d-move-n { font-family: var(--font-head); font-size: 26px; font-variant-numeric: tabular-nums; }

/* ── Tölcsér-tábla és görbe ────────────────────────────────────────────────── */
.d-funnel td.is-bad { color: var(--danger-ink); font-weight: 600; }
.d-funnel-bar { min-width: 150px; width: 30%; }
.d-funnel-bar .bar-t { display: block; height: 14px; border-radius: 3px; }
.d-funnel-bar .bar-f, .d-main-side .bars .bar-f { background: var(--amber); border-radius: 3px; }
.d-main-side .bars .bar-t { height: 22px; border-radius: 3px; }
.d-line { display: block; width: 100%; height: auto; }
.d-line-grid { stroke: var(--line); stroke-width: 1; }
.d-line-area { fill: color-mix(in srgb, var(--amber) 22%, transparent); }
.d-line-path { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linejoin: round; }
.d-line-dot { fill: var(--amber); }
.d-line-ax { fill: var(--muted); font-size: 12px; font-family: var(--font-body); }
.d-line-val { fill: var(--text); font-size: 12.5px; font-weight: 600; font-family: var(--font-body); }

/* ── Keresőmező, szűrősor ──────────────────────────────────────────────────── */
.d-search { position: relative; display: flex; align-items: center; min-width: 0; }
.d-search .i { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.d-search input, .d-filters select, .d-input {
  width: 100%; min-height: var(--h); padding: 0 12px; font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm);
}
.d-search input { padding-left: 38px; min-width: 240px; }
.d-search input:focus, .d-filters select:focus, .d-input:focus { outline: none; border-color: var(--amber); }
@media (max-width: 759px) { .d-search input, .d-filters select, .d-input { font-size: 16px; min-height: var(--h-lg); } .d-search input { min-width: 0; } }
.d-filters {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 16px;
  padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface);
}
.d-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; min-width: 0; }
.d-field > span:first-child { font-size: 14px; color: var(--muted); }
.d-filters .d-search input, .d-filters select { background: var(--panel); }
.mono-cell { font-family: var(--font-mono); font-size: 13.5px; white-space: nowrap; }

/* ── Kiemelt tájékoztató sáv (makett 24 „Fontos megjegyzés", 25 „Ellenőrzött meghívások") ── */
.d-notice { display: flex; gap: 16px; align-items: flex-start; }
.d-notice-ic { flex: none; font-size: 26px; color: var(--muted); margin-top: 2px; }
.d-notice b { display: block; font-family: var(--font-head); font-size: 21px; font-weight: 700; margin-bottom: 4px; }
.d-notice p { color: var(--muted); font-size: 15px; max-width: 110ch; }
.d-notice--amber { background: color-mix(in srgb, var(--amber) 9%, var(--panel)); border-color: color-mix(in srgb, var(--amber) 45%, var(--line-2)); }
.d-notice--amber .d-notice-ic { color: var(--amber-ink); }

/* ── Választók (mód, próbaidő) egy sorban, borostyán kijelöléssel ──────────── */
.d-radios { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .d-radios { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
:is(#page-csomagok, #page-fizetes) .radio[data-on="1"] {
  border-color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, var(--panel));
}
:is(#page-csomagok, #page-fizetes) .radio[data-on="1"] > i { border-color: var(--amber); }
:is(#page-csomagok, #page-fizetes) .radio[data-on="1"] > i::after { background: var(--amber); }
:is(#page-csomagok, #page-fizetes) .radio[data-on="1"] b { color: var(--amber-ink); }

/* ── Jobb oszlop: tények, tájékoztató doboz a fejlécben ─────────────────────── */
.d-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.d-facts li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start; }
.d-facts li > .i { font-size: 21px; color: var(--muted); margin-top: 2px; }
.d-facts b { display: block; font-weight: 600; font-size: 15.5px; }
.d-facts span { color: var(--muted); font-size: 14px; }
.d-headinfo {
  display: none; align-items: center; gap: 14px; padding: 12px 18px; max-width: 420px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--panel); font-size: 14px; color: var(--muted);
}
.d-headinfo > .i { font-size: 24px; color: var(--text); flex: none; }
.d-headinfo b { display: block; color: var(--text); font-weight: 600; font-size: 15px; }
@media (min-width: 1180px) { .d-headinfo { display: flex; } }
#page-csomagok .pagehead-act { align-items: center; flex-wrap: nowrap; }
@media (max-width: 759px) { .d-kpi { grid-template-columns: minmax(0, 1fr); } .d-kpi-ic { display: none; } }

/* ── Árak: csomag-kártya mezőkkel, euró-utótag, előnézet ─────────────────────── */
.d-plan, .d-prev { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); padding: 18px; }
.d-prev { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
.d-prev:last-child { border-bottom: 0; }
.d-prevs { padding: 2px 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.d-prev .kv { margin-top: 10px; grid-template-columns: 1fr auto; }
.d-prev .kv dd { text-align: right; font-size: 17px; }
.d-prev .kv dd small { color: var(--muted); font-size: 13px; font-weight: 400; }
.d-plan-h { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.d-prev .d-plan-h { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.d-plan-ic {
  flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  font-size: 23px; background: var(--surface-2); color: var(--text);
}
.d-plan-h b { display: block; font-family: var(--font-head); font-size: 23px; font-weight: 700; line-height: 1.1; }
.d-plan-h span { color: var(--muted); font-size: 14.5px; }
.d-unit { position: relative; display: block; }
.d-unit input { width: 100%; padding-right: 56px; }
.d-unit i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 14px; pointer-events: none; }
.d-h4 { font-family: var(--font-head); font-size: 21px; font-weight: 700; margin: 24px 0 12px; }
.d-wide { width: 100%; justify-content: center; min-height: 46px; font-size: 16px; }

/* ── Fizetés: lépéssor, útmutató, állapot-tábla, technikai részek ────────────── */
.d-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px 8px; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}
.d-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.d-steps li + li::before {
  content: ""; position: absolute; top: 19px; right: calc(50% + 26px); width: calc(100% - 44px);
  height: 2px; background: var(--line-2);
}
.d-step-n {
  position: relative; z-index: 1; flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 16px;
  border: 2px solid var(--line-3); background: var(--panel); color: var(--text);
}
.d-steps .is-ok .d-step-n, .d-guide .is-ok .d-step-n { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 26%, var(--panel)); color: var(--ok-ink); }
.d-steps .is-next .d-step-n { border-color: var(--amber); background: var(--amber); color: var(--on-accent); }
.d-steps .is-next .d-step-t { color: var(--amber-ink); }
.d-step-t { font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.d-steps .badge { font-size: 11.5px; }
@media (max-width: 759px) { .d-steps li + li::before { display: none; } }

.d-guide { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.d-guide li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; color: var(--muted); }
.d-guide li b { display: block; color: var(--text); font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.d-guide .d-step-n { width: 30px; height: 30px; font-size: 14px; border-width: 1.5px; }
.d-guide--tight { gap: 10px; }
.d-guide--tight li { align-items: center; }
.d-guide--tight li b { margin: 0; }

.d-kvtable th { background: transparent; color: var(--muted); font-weight: 500; width: 42%; border-bottom: 1px solid var(--line); }
.d-kvtable td { font-weight: 500; }
.d-kvtable tr:last-child th, .d-kvtable tr:last-child td { border-bottom: 0; }
.d-slots td:last-child { width: 48%; min-width: 220px; }
.d-slots label { cursor: pointer; }
.d-input { font-family: var(--font-mono); font-size: 14px; }
.d-sect { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.d-sect .d-h4 { margin-top: 0; margin-bottom: 4px; }
.d-sect > .sub { color: var(--muted); font-size: 14.5px; }

/* Keskeny hasábban (jobb oszlop, fő hasáb) a sávok és a csempék ne nyomódjanak össze. */
.d-main-side .bars .bar { grid-template-columns: minmax(84px, 112px) minmax(0, 1fr) 52px; }
.d-main-side .bars .bar-l { grid-column: auto; }
.d-main-side .d-col .d-kpis, .d-main-side > .d-col > .d-kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.d-funnel td:nth-child(2) { white-space: nowrap; }
@media (min-width: 1180px) { #page-csomagok .pagehead { flex-wrap: nowrap; } }

.d-cell2 { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
}
