/* DATA — data-display component classes (dashboards, tables, charts).
   From the DATA Design System css/ layer. Roboto (--font-data) is correct HERE
   and only here (stats/dashboards), per the type system. Geometry from
   the kit's Cell/Stats-card/Kanban. */

/* ---- Stat card (kit: Stats-card 369×168, pad 16, 1px inset border) ---- */
.stat-card {
  background: var(--ui-panel); border: 1px solid var(--ui-border);
  border-radius: var(--radius-card); padding: var(--space-2);
  transition: background .25s ease, border-color .25s ease;
}
.stat-card__label { font-family: var(--font-data); font-size: var(--fs-body-s); color: var(--ui-text-muted); margin-bottom: 6px; }
.stat-card__value { font-family: var(--font-data); font-weight: var(--fw-bold); font-size: 32px; color: var(--ui-text); line-height: 1.1; }
.stat-card__note {
  display: inline-block; margin-top: 8px; background: var(--ui-surface);
  border-radius: var(--radius-badge); padding: 2px 10px;
  font-family: var(--font-data); font-size: var(--fs-body-s); color: var(--ui-text-muted-strong);
}
.stat-card__row { display: flex; align-items: center; gap: var(--space-2); }
.stat-card__icon {
  width: 48px; height: 48px; border-radius: 4px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ui-brand-soft); color: var(--ui-brand);
}
.stat-card__delta { font-family: var(--font-data); font-size: var(--fs-body-s); font-weight: 500; }
.stat-card__delta--up { color: var(--status-success); }
.stat-card__delta--down { color: var(--status-error); }

/* ---- Table (kit: Cell h56, 1px borders, pad 8/12; header 600) --------- */
.table { border-collapse: collapse; width: 100%; background: var(--ui-panel); }
.table th, .table td {
  border: 1px solid var(--ui-border); height: 56px; padding: 8px 12px;
  font-size: var(--fs-body-m); text-align: left; color: var(--ui-text);
}
.table th {
  font-weight: var(--fw-semibold); background: var(--ui-surface);
  font-size: var(--fs-body-s);
}
.table--data th, .table--data td { font-family: var(--font-data); }
.table__menu { border: none; background: none; cursor: pointer; color: var(--ui-text-muted); width: 24px; height: 24px; padding: 0; }
.table__menu:hover { color: var(--ui-text); }
.table tr:hover td { background: var(--ui-brand-soft); }

/* ---- List item / list row --------------------------------------------- */
.list-row {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 12px var(--space-2); border-bottom: 1px solid var(--ui-border);
  font-size: var(--fs-body-m); color: var(--ui-text);
}
.list-row .icon { color: var(--ui-brand); }
.list-row__meta { margin-inline-start: auto; color: var(--ui-text-muted); font-size: var(--fs-body-s); }

/* ---- User thumb / user card -------------------------------------------- */
.person-thumb {
  border-radius: 50%; background: var(--ui-surface); color: var(--ui-text-muted);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  border: 1px solid var(--ui-border); overflow: hidden;
}
.person-thumb--s { width: 32px; height: 32px; }
.person-thumb--m { width: 48px; height: 48px; }
.person-thumb img { width: 100%; height: 100%; object-fit: cover; }
.person-thumb--initials { font-weight: var(--fw-semibold); font-size: var(--fs-body-s); color: var(--ui-brand); background: var(--ui-brand-soft); }
.person-card { display: flex; align-items: center; gap: var(--space-1); }
.person-card--vertical { flex-direction: column; text-align: center; }
.person-card__name { font-weight: var(--fw-semibold); font-size: var(--fs-body-m); color: var(--ui-text); }
.person-card__role { color: var(--ui-text-muted); font-size: var(--fs-body-s); }

/* ---- Testimonial --------------------------------------------------------- */
.testimonial { display: flex; flex-direction: column; gap: var(--space-2); max-width: 52ch; }
.testimonial blockquote {
  margin: 0; font-family: var(--font-display); font-weight: var(--fw-display);
  font-size: var(--fs-h4); line-height: 1.35; color: var(--ui-text);
}
.testimonial--centered { align-items: center; text-align: center; }

/* ---- Kanban --------------------------------------------------------------- */
.kanban { display: flex; gap: var(--space-2); align-items: flex-start; }
.kanban__col { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: var(--space-1); }
.kanban__head {
  display: flex; align-items: center; gap: var(--space-1); padding: 8px 4px;
  font-weight: var(--fw-semibold); font-size: var(--fs-body-m); color: var(--ui-text);
}
.kanban__count { color: var(--ui-text-muted); font-weight: var(--fw-regular); font-size: var(--fs-body-s); }
.kanban__add, .kanban__more { border: none; background: none; cursor: pointer; color: var(--ui-text-muted); width: 24px; height: 24px; padding: 0; }
.kanban__add { margin-inline-start: auto; }
.kanban__add:hover, .kanban__more:hover { color: var(--ui-brand); }
.kanban-card {
  background: var(--ui-panel); border: 1px solid var(--ui-border); border-radius: var(--radius-card);
  padding: var(--space-2); display: flex; flex-direction: column; gap: var(--space-1);
}
.kanban-card__title { font-weight: var(--fw-semibold); font-size: var(--fs-body-m); color: var(--ui-text); }
.kanban-card__meta { display: flex; align-items: center; gap: var(--space-1); }

/* ---- Charts (simplified; brand palette) ------------------------------------ */
.chart { display: flex; flex-direction: column; gap: var(--space-1); }
.chart svg { display: block; width: 100%; height: auto; }
.chart__frame { color: var(--ui-border); }
.chart__series-1 { color: var(--ui-brand); } /* brand — brightens in dark via --ui-brand */
.chart__series-2 { color: var(--data-green-light); }
.chart__series-3 { color: var(--data-terracotta); }
.chart__series-4 { color: var(--data-maroon); }

/* ---- Graph label (legend) ---------------------------------------------------- */
.graph-label { display: inline-flex; align-items: center; gap: var(--space-1); font-family: var(--font-data); font-size: var(--fs-body-s); color: var(--ui-text-muted); }
.graph-label__swatch { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; }
.graph-label__swatch--line { height: 3px; border-radius: 2px; width: 16px; }
.graph-label__swatch--dot { border-radius: 50%; }
.graph-label__value { color: var(--ui-text); font-weight: 500; }
