/* ===============================
   DASHBOARD CLÍNICO - CCP
=============================== */

#cec-dashboard {
  margin-top: 20px;
  font-family: inherit;
}

/* ===============================
   CARD TOTAL
=============================== */
#cec-dashboard .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

#cec-dashboard .card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  border-left: 5px solid #0073aa;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

#cec-dashboard .card h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #0073aa;
}

#cec-dashboard .card span {
  font-size: 14px;
  color: #555;
}

/* ===============================
   GRID DE GRÁFICOS
=============================== */
#cec-dashboard .charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

/* ===============================
   TARJETA DE CADA GRÁFICO
=============================== */
#cec-dashboard .chart-box {
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  height: 380px;
}

/* ===============================
   TÍTULO DEL GRÁFICO
=============================== */
#cec-dashboard .chart-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  text-align: center;
}

/* ===============================
   CANVAS
=============================== */
#cec-dashboard .chart-box canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ===============================
   RESPONSIVE (MOBILE)
=============================== */
@media (max-width: 768px) {

  #cec-dashboard .charts {
    grid-template-columns: 1fr;
  }

  #cec-dashboard .chart-box {
    height: 300px;
  }

  #cec-dashboard .chart-title {
    font-size: 14px;
  }
}

