/*
  Chrome compartido de las tarjetas de gráfico del dashboard operativo
  (§7.7). Usado por AlertasPorCategoriaChart, AsignadosVsTbcChart y
  AvancePorNaveChart — ninguno de los tres define CSS aislado propio para
  estas clases, para no triplicar el mismo bloque en 3 archivos .razor.css.
  Sólo las reglas verdaderamente específicas de un gráfico (ej. .shk-avance,
  .shk-leyenda de la Task 13) viven en su .razor.css aislado.
*/
.shk-chart {
    background: var(--shk-surface);
    border: 1px solid var(--shk-border);
    border-radius: var(--shk-radius);
    box-shadow: var(--shk-shadow-sm);
    padding: var(--shk-space-3);
    /* altura mínima igual al gráfico + cabecera: evita el salto de layout */
    min-height: 320px;
}

.shk-chart__head h3 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--shk-ink);
}

.shk-chart__sub {
    margin: 2px 0 var(--shk-space-3) 0;
    font-size: 0.75rem;
    color: var(--shk-ink-muted);
}

.shk-chart__skeleton {
    height: 240px;
    border-radius: var(--shk-radius-sm);
    background: var(--shk-surface-2);
}

.shk-chart__vacio {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--shk-ink-muted);
    font-size: var(--shk-control-font-size);
}

.shk-chart__error {
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--shk-space-3);
    color: var(--shk-ink);
}

.shk-reintentar {
    appearance: none;
    border: 1px solid var(--shk-critical);
    background: transparent;
    color: var(--shk-critical);
    border-radius: var(--shk-radius-sm);
    padding: var(--shk-space-1) var(--shk-space-3);
    min-height: var(--shk-control-height);
    cursor: pointer;
    font-size: var(--shk-control-font-size);
}
