/* =========================================
   ✅ GRAPHIQUES PREMIUM - VERSION ULTRA-COMPACTE
   ========================================= */

#charts-container-nouveau {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  padding: 12px 16px !important;
  background: #1a2644 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(26, 38, 68, 0.25) !important;
  margin-bottom: 20px !important;
}

.chart-card {
  flex: 1 !important;
  min-width: 200px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 6px !important;
  padding: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.chart-header {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 8px !important;
  width: 100% !important;
  justify-content: center !important;
}

.chart-icon {
  font-size: 16px !important;
  color: #ffcd01 !important;
}

.chart-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #cbd5e1 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

/* =========================================
   JAUGE CIRCULAIRE (DONUT) - SANS BACKGROUND
   (Le JS contrôle le dégradé à 100%)
   ========================================= */
.donut-chart {
  width: 90px !important;
  height: 90px !important;
  border-radius: 50% !important;
  /* ⚠️ PAS de background ici - le JS le génère dynamiquement */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

.donut-inner {
  width: 66px !important;
  height: 66px !important;
  background: #1a2644 !important;
  border-radius: 50% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid rgba(255, 205, 1, 0.2) !important;
}

.donut-value {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #ffcd01 !important;
  line-height: 1 !important;
}

.donut-label {
  font-size: 9px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  margin-top: 2px !important;
}

/* =========================================
   BARRE DE RÉPARTITION COMPACTE
   ========================================= */
.bar-chart-wrapper {
  width: 100% !important;
}

.bar-chart {
  height: 16px !important;
  background: #243356 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  display: flex !important;
  margin-bottom: 10px !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3) !important;
}

.bar-fill {
  height: 100% !important;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.bar-fill.facturable {
  background: #ffcd01 !important;
}

.bar-fill.non-facturable {
  background: #475569 !important;
}

.bar-legend {
  display: flex !important;
  justify-content: space-around !important;
  gap: 10px !important;
}

.legend-item {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11px !important;
  color: #cbd5e1 !important;
}

.legend-item strong {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.legend-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

.legend-dot.facturable {
  background: #ffcd01 !important;
}

.legend-dot.non-facturable {
  background: #475569 !important;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 600px) {
  #charts-container-nouveau {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .chart-card {
    min-width: 100% !important;
  }
}