/* Visor SIGFE: skeleton visible para widgets lazy */
@keyframes visor-skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.visor-skeleton {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: visor-skeleton-pulse 1.2s ease-in-out infinite;
    background: rgba(0, 0, 0, 0.06);
}

.dark .visor-skeleton {
    background: rgba(255, 255, 255, 0.08);
}

.visor-skeleton-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.45);
}

.dark .visor-skeleton-label {
    color: rgba(255, 255, 255, 0.55);
}

body:has([id="filtersForm.year"][data-loading]) .fi-main {
    position: relative;
}

body:has([id="filtersForm.year"][data-loading]) .fi-main::after {
    content: "Cargando…";
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.78);
    color: rgba(0, 0, 0, 0.55);
    font-size: 0.875rem;
    font-weight: 500;
    pointer-events: none;
    animation: visor-skeleton-pulse 1.2s ease-in-out infinite;
}

.dark body:has([id="filtersForm.year"][data-loading]) .fi-main::after {
    background: rgba(17, 24, 39, 0.78);
    color: rgba(255, 255, 255, 0.7);
}

/* Visor SIGFE: valores KPI largos (montos CLP) sin overflow */
.fi-wi-stats-overview-stat-value {
    font-size: 1.25rem;
    line-height: 1.75rem;
    overflow-wrap: anywhere;
}
