/* mod-dashboard.css — estilos del módulo dashboard (owner: agente dashboard) */

/* ── KPI cards ─────────────────────────────────────────────────────────── */
.dash-kpi {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 128px;
  justify-content: space-between;
}
.dash-kpi:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 2px;
}
.dash-kpi-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.dash-kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.dash-kpi-icon.tone-green { background: var(--accent-soft); color: var(--accent); }
.dash-kpi-icon.tone-blue  { background: var(--blue-soft);   color: var(--blue); }
.dash-kpi-icon.tone-amber { background: var(--amber-soft);  color: var(--amber); }
.dash-kpi-icon.tone-red   { background: var(--red-soft);    color: var(--red); }
.dash-kpi-money { font-size: 24px; }

/* ── Cards con gráfica ─────────────────────────────────────────────────── */
.dash-card { display: flex; flex-direction: column; }
.chart-box {
  position: relative;
  height: 280px;
  flex: 1;
  min-height: 0;
}
.chart-box-sm { height: 210px; }

.dash-select {
  width: auto;
  min-height: 32px;
  max-width: 280px;
  padding: 5px 30px 5px 11px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 9px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E6E73' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.dash-ingresos-kpi {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.dash-ingresos-kpi .kpi-value { font-size: 25px; }

/* ── Listas (agenda / puntos críticos) ─────────────────────────────────── */
.dash-list { gap: 4px; }
.dash-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: var(--radius-s);
  transition: background var(--dur-fast) ease;
}
.dash-item:hover { background: var(--surface-2); }
.dash-item-title { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.dash-item-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex: none;
}

.dash-hora {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  min-width: 68px;
  flex: none;
}
.dash-avatar { width: 30px; height: 30px; font-size: 12px; }

.dash-punto-num {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 13px/1 var(--font);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.dash-punto-num.is-critico { background: var(--red-soft); color: var(--red); }
.dash-punto-num.is-alerta  { background: var(--amber-soft); color: var(--amber); }

/* Empty states dentro de cards del dashboard: más compactos */
.dash-card .empty-state { padding: 28px 16px; flex: 1; justify-content: center; }
