/* ===========================
   components.css
   =========================== */

.card {
  background: var(--glass);
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.03);
}

.card h3 {
  margin: 0 0 8px 0;
  font-size: 15px;
  color: #ffffff;
}

/* Tous les titres dans les cartes en blanc */
.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6 {
  color: #ffffff;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* KPI */
.kpi { display: flex; gap: 12px; align-items: center; }
.kpi .value { font-size: 20px; font-weight: 700; }

/* Charts */
.chart-placeholder {
  height: 220px;
  border-radius: 10px;
  border: 1px dashed rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px dashed rgba(255,255,255,0.03);
  font-size: 14px;
}

.small { font-size: 13px; color: var(--muted); }

.card canvas {
    max-width: 500px;      /* limite la largeur */
    height: 280px !important; /* fixe une hauteur propre */
    margin: 0 auto;        /* centre le graphique */
    display: block;
}

.grid.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.grid.row-2 .card canvas {
    max-width: 100%;
    height: 260px !important;
}