/* ==========================================================================
   dashboard.css — SOLO estilos del dashboard.php
   ========================================================================== */

/* -------- Base local del dashboard -------- */
:root{
  --bg:#f1f4f9;
  --card:#ffffff;
  --ink:#0f172a;
  --muted:#556070;
  --line:#e9eef6;

  --shadow-md: 0 8px 24px rgba(16,24,40,.08);
  --shadow-lg: 0 18px 40px rgba(16,24,40,.12);
  --radius-lg: 16px;
  --radius-md: 12px;
}

*{ box-sizing: border-box; }

body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -------- Layout -------- */
.container{
  padding: 18px 18px 28px;
  max-width: 1280px;
  margin: 0 auto;
}

.container h2{
  margin: 6px 0 14px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

/* -------- Dashboard: filtros -------- */
.dash-filtros{
  display:flex;
  gap:16px;
  align-items:flex-end;
  flex-wrap:wrap;

  background: #fff;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  margin-bottom: 18px;
}

.dash-filtro-grupo label{
  display:block;
  font-weight: 900;
  color: #1e293b;
  font-size: 12px;
  margin-bottom: 6px;
}

.dash-filtro-grupo select,
.dash-filtro-grupo input{
  min-width: 200px;
  padding: 10px 12px;
  background: #fff;
  color: #0b162c;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
  font-weight: 700;
}

.dash-filtro-grupo select:focus,
.dash-filtro-grupo input:focus{
  border-color:#c8dcff;
  box-shadow: 0 0 0 4px rgba(76,130,255,.15);
}

/* -------- Dashboard: tarjetas KPI -------- */
.dash-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.dash-card{
  position:relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
  transition: transform .15s ease, box-shadow .15s ease;
}

.dash-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(16,24,40,.12);
}

.dash-card h4{
  margin:0 0 6px;
  font-size:12px;
  color:#4b5563;
  font-weight: 900;
  letter-spacing:.3px;
  text-transform: uppercase;
}

.dash-card-num{
  margin:0;
  font-size: 28px;
  font-weight: 950;
  letter-spacing:.4px;
  color: var(--ink);
}

/* Bordes por estado */
.dash-card-open{ border-left: 6px solid #f59e0b; }     /* Abiertos */
.dash-card-progress{ border-left: 6px solid #29b6f6; } /* En proceso */
.dash-card-closed{ border-left: 6px solid #16a34a; }   /* Cerrados */

/* -------- Dashboard: contenedores de gráficas -------- */
.dash-charts-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.dash-chart-item{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 14px 18px;
  box-shadow: var(--shadow-md);
  min-height: 360px;

  display:flex;
  flex-direction: column;
}

.dash-chart-item h3{
  margin: 4px 6px 8px;
  font-size: 15px;
  color:#153a74;
  letter-spacing:.2px;
  font-weight: 900;
}

.dash-chart-item canvas{
  width:100% !important;
  height:100% !important;
  max-height: 340px;
  flex: 1;
}

/* Texto extra (calificación soporte) */
.dash-texto-calif{
  margin: 8px 6px 0;
  color:#4b5563;
  font-size: 13px;
  font-weight: 700;
}

/* -------- Responsive -------- */
@media (max-width: 1100px){
  .dash-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px){
  .dash-charts-grid{ grid-template-columns: 1fr; }
  .dash-filtro-grupo select,
  .dash-filtro-grupo input{ min-width: 100%; }
}

@media (max-width: 520px){
  .dash-grid{ grid-template-columns: 1fr; }
}
