/* ==========================================================
   FICHAS: Estética Compacta (Sin Colores) 
   ========================================================== */

/* Compactar tarjetas (Widgets de Stats) */
@media (min-width: 1024px) {
    body.sigecop-page-fichas-gestion .fi-wi-stats-overview-stat {
        padding: 0.85rem 1rem !important;
        background: white !important;
        border: 1px solid #eef2f6 !important;
        border-radius: 1rem !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    }
    body.sigecop-page-fichas-gestion .fi-wi-stats-overview-stat-value {
        font-size: 1.6rem !important;
        line-height: 1.8rem !important;
    }
    body.sigecop-page-fichas-gestion .fi-wi-stats-overview-stats-ctn {
        gap: 0.75rem !important;
    }
}

/* RESET ABSOLUTO DE CAPAS SUPERIORES PARA ELIMINAR EL GAP */
body.sigecop-page-fichas-gestion,
body.sigecop-page-fichas-gestion .fi-layout,
body.sigecop-page-fichas-gestion .fi-layout > div,
/* RESET ABSOLUTO DE CAPAS SUPERIORES PARA ELIMINAR EL GAP */
body.sigecop-page-fichas-gestion,
body.sigecop-page-fichas-gestion .fi-layout,
body.sigecop-page-fichas-gestion .fi-layout > div,
body.sigecop-page-fichas-gestion .fi-main-ctn,
body.sigecop-page-fichas-gestion .fi-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Forzar que el fondo celeste se vea en todo el módulo */
body.sigecop-page-fichas-gestion,
body.sigecop-page-fichas-gestion .fi-layout,
body.sigecop-page-fichas-gestion .fi-main,
body.sigecop-page-fichas-gestion .fi-page,
body.sigecop-page-fichas-gestion .fi-ta,
body.sigecop-page-fichas-gestion .fi-ta-content {
    background: #d1e9ff !important; /* Celeste original */
}

/* Ocultar encabezado redundante y pegar el panel azul al tope */
body.sigecop-page-fichas-gestion .fi-header {
    display: none !important;
}

/* Asegurar que el Topbar RECIEN pegado arriba */
body.sigecop-page-fichas-gestion .fi-topbar {
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: sticky !important;
    z-index: 50 !important;
}

/* Estilo de la tabla para que sea transparente y no tape el fondo */
body.sigecop-page-fichas-gestion .fi-ta-ctn {
    border: 1px solid rgba(0,0,0,0.05) !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Las tarjetas de las fichas individuales sí pueden ser blancas pero sin el contenedor blanco gigante */
body.sigecop-page-fichas-gestion .fi-ta-content .fi-ta-record-ctn,
body.sigecop-page-fichas-gestion .fi-ta-content {
    background: transparent !important;
}

/* RESALTADO DE TARJETA SELECCIONADA (ACTIVE) */
body.sigecop-page-fichas-gestion .fi-wi-stats-overview-stat[data-activo="1"] {
    background: #3b82f6 !important; /* Azul fuerte seleccionado */
    border: 2px solid #2563eb !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2) !important;
}

body.sigecop-page-fichas-gestion .fi-wi-stats-overview-stat[data-activo="1"] .fi-wi-stats-overview-stat-label,
body.sigecop-page-fichas-gestion .fi-wi-stats-overview-stat[data-activo="1"] .fi-wi-stats-overview-stat-value,
body.sigecop-page-fichas-gestion .fi-wi-stats-overview-stat[data-activo="1"] .fi-wi-stats-overview-stat-description,
body.sigecop-page-fichas-gestion .fi-wi-stats-overview-stat[data-activo="1"] .fi-wi-stats-overview-stat-description *,
body.sigecop-page-fichas-gestion .fi-wi-stats-overview-stat[data-activo="1"] svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}
