/* Diagramok. A geometria az SVG-ben van, itt csak a szín, a méret és a szöveg. */

/* --- Radiális ívdiagram ------------------------------------------------ */
.radial { position: relative; width: 100%; max-width: 240px; margin: 0 auto; }
.radial__svg { width: 100%; height: auto; display: block; overflow: visible; }
.radial__track { opacity: 1; }
.radial__arc { transition: opacity var(--t-base); }
.radial__arc--halvany { opacity: .3; }
.radial__tick { font-size: 9px; fill: var(--c-ink-3); font-family: var(--font); }
.radial__center {
  position: absolute; inset: 0; display: grid; place-content: center;
  text-align: center; pointer-events: none;
}
.radial__center b { display: block; font-size: 30px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
.radial__center span { display: block; font-size: 10px; line-height: 1.2; color: var(--c-ink-2); max-width: 78px; }

.radialbox { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--s-5); align-items: center; }
@media (max-width: 767px) { .radialbox { grid-template-columns: 1fr; } }

/* --- Mutatólista (a radiál jelmagyarázata) ---------------------------- */
.metriclist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; min-width: 0; }
.metriclist__row {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 5px var(--s-2); border-radius: 8px;
  transition: background var(--t-fast);
}
.metriclist__row:hover { background: rgba(224,24,45,.06); }
.metriclist__row .icon { color: var(--c-ink-2); }
.metriclist__label { flex: 1; min-width: 0; font-size: var(--fs-sm); overflow-wrap: break-word; hyphens: auto; }
.metriclist__value { font-weight: 700; color: var(--c-red); font-variant-numeric: tabular-nums; }

/* --- Fánk -------------------------------------------------------------- */
.donutbox { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: center; }
@media (max-width: 767px) { .donutbox { grid-template-columns: 1fr; } }
.donut { position: relative; max-width: 200px; margin: 0 auto; }
.donut__svg { width: 100%; height: auto; display: block; }
.donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut__center b { display: block; font-size: 22px; font-weight: 750; }
.donut__center span { font-size: 11px; color: var(--c-ink-2); }

.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.legend__row { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); }
.legend__swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend__label { flex: 1; }
.legend__value { font-weight: 650; font-variant-numeric: tabular-nums; }

/* --- Sávlista ---------------------------------------------------------- */
.barlist { display: grid; gap: var(--s-3); }
.barlist__row { display: grid; grid-template-columns: 128px 1fr 56px; align-items: center; gap: var(--s-3); }
.barlist__label { font-size: var(--fs-sm); color: var(--c-ink-2); }
.barlist__track { height: 8px; border-radius: var(--r-pill); background: var(--arc-track); overflow: hidden; }
.barlist__fill { display: block; height: 100%; border-radius: var(--r-pill); }
.barlist__value { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) { .barlist__row { grid-template-columns: 96px 1fr 48px; } }

/* --- Vonal / oszlop ---------------------------------------------------- */
.chart { width: 100%; }
.chart__svg { width: 100%; height: auto; display: block; }
.chart__grid { stroke: var(--c-line); stroke-width: 1; }
.chart__axis { font-size: 10px; fill: var(--c-ink-3); font-family: var(--font); }
.chart__label { font-size: 12px; font-weight: 700; fill: var(--c-ink); font-family: var(--font); }
.chart__line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart__area { opacity: .10; }
.chart__dot { stroke: var(--c-card); stroke-width: 2; }
.chart__col { transition: opacity var(--t-fast); }
.chart__col:hover { opacity: .82; }

/* --- Mérőcsempe -------------------------------------------------------- */
.stat { display: grid; gap: 2px; }
.stat__num { font-size: var(--fs-num); font-weight: 750; letter-spacing: -0.02em; line-height: 1.05; }
.stat__label { font-size: var(--fs-xs); color: var(--c-ink-2); }
.stat__trend { font-size: var(--fs-xs); font-weight: 650; }
.stat__trend[data-irany="fel"] { color: var(--c-ok); }
.stat__trend[data-irany="le"]  { color: var(--c-red); }
.stattiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-5); }

/* --- Modulkártya (áttekintő rács) ------------------------------------- */
.modcard { display: flex; flex-direction: column; gap: var(--s-4); }
.modcard__head { display: flex; align-items: baseline; gap: var(--s-3); }
.modcard__title { font-size: var(--fs-md); font-weight: 700; }
.modcard__sub { font-size: var(--fs-xs); color: var(--c-ink-2); }
.modcard .radialbox { grid-template-columns: 140px minmax(0, 1fr); gap: var(--s-4); }

/* Az áttekintő rács: a kártya sosem szűkül annyira, hogy a mutatólista törjön. */
.modgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: var(--s-5); }
.modcard .metriclist__label { font-size: var(--fs-xs); }
.modcard .metriclist__value { font-size: var(--fs-xs); }
.modcard__cta { margin-top: auto; }
@media (max-width: 767px) { .modcard .radialbox { grid-template-columns: 1fr; } }

/* --- Feed / személysor / idézet ---------------------------------------- */
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.feed__row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) 0; }
.feed__icon {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--c-red-soft); color: var(--c-red); display: grid; place-items: center;
}
.feed__icon .icon { width: 17px; height: 17px; }
.feed__t { flex: 1; min-width: 0; }
.feed__title { font-weight: 600; }
.feed__meta { font-size: var(--fs-xs); color: var(--c-ink-2); }
.feed__value { font-weight: 700; font-variant-numeric: tabular-nums; }

.personrow { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) 0; }
.personrow__av {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--c-red-soft); color: var(--c-red);
  display: grid; place-items: center; font-weight: 700; font-size: var(--fs-xs);
}
.personrow__t { flex: 1; }
.personrow__name { font-weight: 600; }
.personrow__role { font-size: var(--fs-xs); color: var(--c-ink-2); }
.personrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-ink-3); }
.personrow__dot[data-allapot="online"] { background: var(--c-ok); }
.personrow__dot[data-allapot="tavol"]  { background: var(--c-warn); }

.quotecard {
  background: var(--c-red-soft); border: 0; text-align: center;
  display: grid; place-content: center; gap: var(--s-3); min-height: 180px;
}
.quotecard__q { font-size: var(--fs-lg); font-weight: 600; color: var(--c-red); line-height: 1.3; }
.quotecard__c { font-size: 10px; letter-spacing: .3em; color: var(--c-ink-2); }
