/* Estilos para todos los encabezados de pagina de Filament */

/* Elimina gap interno */
.fi-header > div {
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Breadcrumbs más pegados */
.fi-breadcrumbs {
    margin: 0 !important;
    padding: 0 !important;
    padding-top: 0.5rem !important;

}

/* Título */
.fi-header-heading {
    font-size: 1.2rem !important;
    line-height: 1.2 !important;

}

/* Reducir espacio después del título */
.fi-header-heading {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}




/* Reducir espacio en el contenedor principal específico */
body > div.fi-layout > div.fi-main-ctn > main > div > div {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Reducir espacio en elementos internos del contenedor */
body > div.fi-layout > div.fi-main-ctn > main > div > div > * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}






/* Estilos específicos para tablas de Filament */
/* Estos estilos solo se aplican a tablas que tengan la clase 'filament-general-table' */



/* Forzar estilos en tablas con clase específica */
.filament-general-table .fi-ta-table,
.filament-general-table .fi-ta-table-wrapper,
.filament-general-table .fi-ta-table-container,
.filament-general-table [data-filament-table],
.filament-general-table .fi-ta-container {
    max-height: calc(100vh - 350px) !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    display: block !important;
}


/* Encabezados fijos para tablas con clase específica */
.filament-general-table .fi-ta-table thead,
.filament-general-table .fi-ta-table-wrapper thead,
.filament-general-table [data-filament-table] thead {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;

}

.filament-general-table .fi-ta-table thead th,
.filament-general-table .fi-ta-table-wrapper thead th,
.filament-general-table [data-filament-table] thead th,
.filament-general-table .fi-ta-header-cell {
    position: sticky !important;
    top: 0 !important;

    z-index: 2 !important;
    font-weight: 600 !important;
    color: #374151 !important;
    padding: 12px 16px !important;
    white-space: nowrap !important;
}


/* Modo oscuro para tablas con clase específica */
.dark .filament-general-table .fi-ta-table thead th,
.dark .filament-general-table .fi-ta-table-wrapper thead th,
.dark .filament-general-table [data-filament-table] thead th,
.dark .filament-general-table .fi-ta-header-cell {

    color: #f9fafb !important;

}

.dark .filament-general-table .fi-ta-table thead,
.dark .filament-general-table .fi-ta-table-wrapper thead,
.dark .filament-general-table [data-filament-table] thead {
    background: #242427 !important;
}


@media (max-width: 768px) {
    .filament-general-table .fi-ta-table,
    .filament-general-table .fi-ta-table-wrapper,
    .filament-general-table .fi-ta-table-container,
    .filament-general-table [data-filament-table],
    .filament-general-table .fi-ta-container {
        max-height: calc(100vh - 370px) !important;
    }

}
