/* ============================================================
   SpineNet · vista del panel de control
   Clases prefijadas v-dash-…  ·  solo var(--token), nunca hex
   ============================================================ */

/* ---------- La próxima cirugía, en grande ---------- */
.v-dash-hero {
  display: flex; flex-direction: column; gap: var(--s-4); min-width: 0;
  padding: var(--s-5); border-radius: var(--r-lg);
  background: var(--brand-soft); border: 1px solid var(--border);
}
.v-dash-hero.is-vacio { justify-content: center; background: var(--bg-surface); }
.v-dash-hero__cab { display: flex; flex-direction: column; gap: 2px; }
.v-dash-hero__cab span { font-size: var(--fs-12); font-weight: 600; color: var(--brand-ink); }
.v-dash-hero__cab b { font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; text-wrap: balance; }
.v-dash-hero__cab em { font-style: normal; font-size: var(--fs-13); color: var(--text-secondary); }
.v-dash-hero .tj { border-color: transparent; }

/* ---------- Los siete días ---------- */
.v-dash-semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.v-dash-dia {
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0;
  padding: 10px 2px 8px; border-radius: var(--r); border: 1px solid var(--border);
  background: var(--bg-surface); color: var(--text-primary); font: inherit; cursor: pointer;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
@media (hover: hover) { .v-dash-dia:hover { border-color: var(--brand); } }
.v-dash-dia:active { transform: scale(0.97); }
.v-dash-dia:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.v-dash-dia.is-hoy { background: var(--brand-soft); border-color: transparent; }
.v-dash-dia.is-libre { background: var(--bg-muted); }
.v-dash-dia__dow { font-size: var(--fs-11); font-weight: 600; color: var(--text-muted); text-transform: capitalize; }
.v-dash-dia.is-hoy .v-dash-dia__dow { color: var(--brand-ink); }
.v-dash-dia > b { font-size: var(--fs-18); font-weight: 600; font-variant-numeric: tabular-nums; }
.v-dash-dia__ps { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; min-height: 8px; }
.v-dash-dia__ps i { width: 8px; height: 8px; border-radius: 50%; background: var(--tipo-relleno, var(--brand)); }
.v-dash-dia__n { font-size: var(--fs-11); color: var(--text-muted); min-height: 1em; }
.v-dash-semana-card .leyenda { margin-top: var(--s-4); }

/* ---------- Qué hay que hacer ---------- */
.v-dash-acciones { display: flex; flex-direction: column; }
.v-dash-accion {
  display: flex; align-items: center; gap: var(--s-3); width: 100%; min-width: 0;
  padding: var(--s-3) var(--s-1); border: 0; border-bottom: 1px solid var(--border);
  background: none; font: inherit; text-align: left; color: var(--text-primary); cursor: pointer;
  transition: background var(--t-fast);
}
.v-dash-accion:last-child { border-bottom: 0; }
@media (hover: hover) { .v-dash-accion:hover { background: var(--bg-muted); } }
.v-dash-accion:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.v-dash-accion__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.v-dash-accion__txt b { font-size: var(--fs-13); font-weight: 600; }
.v-dash-accion__txt small { font-size: var(--fs-12); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-dash-accion__n {
  flex: 0 0 auto; min-width: 28px; padding: 2px 8px; border-radius: var(--r-full); text-align: center;
  font-size: var(--fs-13); font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--warn-soft); color: var(--warn-ink);
}
.v-dash-accion__n.is-critico { background: var(--danger-soft); color: var(--danger-ink); }

/* ---------- Listas cortas ---------- */
.v-dash-list { display: flex; flex-direction: column; }
.v-dash-item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-1); border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--t-fast); }
.v-dash-item:last-child { border-bottom: 0; }
@media (hover: hover) { .v-dash-item:hover { background: var(--bg-muted); } }
.v-dash-item:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.v-dash-proc { font-weight: 600; font-size: var(--fs-13); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.v-dash-sub { font-size: var(--fs-12); color: var(--text-muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.v-dash-alertas .card__body, .v-dash-riesgo .card__body { padding-top: var(--s-1); }
.chart--center { display: flex; justify-content: center; padding: var(--s-2) 0; }
/* la dona a un tamaño medido, no a todo el ancho de la tarjeta */
.chart--center svg { width: min(100%, 210px); }

@media (max-width: 640px) {
  .v-dash-hero { padding: var(--s-4); }
  .v-dash-hero__cab b { font-size: 24px; }
  .v-dash-semana { gap: 4px; }
  .v-dash-dia { padding: 8px 0 6px; }
}
