/* ============================================================
   charts.css — Gráfico de barras y leyenda
   CourierAdmin · Sistema de gestión interna
   ============================================================ */

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  padding: 0 4px;
}

.bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bar-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  max-width: 48px;
  margin: 0 auto;
}

.bar {
  width: 100%;
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: height 0.3s;
}

.bar-label {
  font-size: 10px;
  color: var(--color-text-secondary);
  text-align: center;
}

/* ── Leyenda del gráfico ── */
.chart-legend {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.legend-dot.green { background: var(--color-green); }
.legend-dot.red   { background: var(--color-red); }
