html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    height: 100vh
}

.fullscreen_bg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #CFEDF6;
    z-index: -1;
}

.login-bg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('../backimg.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1;
    filter: blur(4px);
}

.ck-editor__editable {
    min-height: 200px;
}

.dropdown-item:hover {
    background: var(--bs-light);
}

.footer-tabla {
    --bs-bg-opacity: .75;
}

.form-check-input:checked {
    background-color: var(--bs-primary);
}

.table > :not(:last-child) > :last-child > * {
    border: none;
}

div.dataTables_wrapper div.dataTables_info {
    padding-top: 0;
}

.dataTables_wrapper {
    height: 100% !important;
}

div.dataTables_wrapper div.dataTables_info {
    padding: 0 !important;
}

#modal.modal.custom-class {
    z-index: 1029
}

/* Dropzones */
#dzModal {
    background-color: #f9f9f9;
    border: 2px dashed #007bff;
    border-radius: 10px;
    padding: 20px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    #dzModal:hover {
        background-color: #e6f7ff;
        border-color: #0056b3;
    }

    #dzModal i {
        font-size: 50px;
        color: #007bff;
    }

    #dzModal h5 {
        font-weight: bold;
        margin-top: 10px;
    }

    #dzModal span {
        font-size: 14px;
        color: #6c757d;
    }

/* General navbar styles */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, #ffffff, #f8f9fa);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    flex-wrap: nowrap; /* Evita que los elementos se reorganicen innecesariamente */
}

/* Navbar brand (logo + texto) */
.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 0 !important;
}

    .navbar-brand img {
        height: 35px;
        margin-right: 10px;
    }

/* Navbar toggler (hamburger button) */
.navbar-toggler {
    border: none;
    outline: none;
    margin-left: auto;
}

    .navbar-toggler:focus {
        text-decoration: none;
        outline: 0;
        box-shadow: none; 
    }

/* Navbar collapse (menu area) */
.navbar-collapse {
    display: flex;
    justify-content: center; /* Alinea los iconos a la derecha */
    gap: 10px;
    flex-wrap: wrap; /* Permite reorganizar en pantallas pequeñas */
}

@media (max-width: 768px) {
    .navbar-collapse {
        justify-content: center; /* Centra los elementos en pantallas pequeñas */
    }
}

/*@media (max-width: 1200px) {*/ /* Aprox. breakpoint de "lg" hacia abajo */
    /* Cuando la navbar está expandida en pantallas pequeñas: */
    /*.navbar-collapse.show .navbar-nav {
        display: grid !important;*/                   /* Forzamos grid */
        /*grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;*/ /* Ajusta al gusto */
    /*}*/
    
    /* Opcional: Para evitar que se corte el texto */
    /*.navbar-collapse.show .nav-link {
        white-space: nowrap; 
        text-align: center;
    }*/
    
    /* Opcional: Para que cada item (li) no se extienda todo el ancho */
    /*.navbar-collapse.show .nav-item {
        margin: 0 auto;*/  /* Ajusta si quieres centrar */
    /*}
}*/


/* Navbar navigation links */
.navbar-nav {
    display: flex;
    flex-wrap: wrap; /* No reorganiza los elementos innecesariamente */
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 1200px) {
    .navbar-nav {
        margin-top: 10px;
        flex-wrap: wrap; /* Reorganiza los elementos en pantallas pequeñas */
        justify-content: center; /* Centra los iconos */
    }
}

/* Individual nav items */
.nav-item {
    display: flex;
    flex-direction: column; /* Icono arriba, texto abajo */
    align-items: center;
    text-align: center;
    min-width: 80px; /* Asegura un tamaño consistente */
    cursor: pointer;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease, background 0.3s ease;
    text-decoration: none;
}

    .nav-link:hover {
        color: #007bffc2;
    }

    .nav-link i {
        font-size: 22px;
        margin-bottom: 5px; /* Espaciado entre el icono y el texto */
    }

/* Dropdown styles */
.dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.dropdown-item {
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #007bff;
    }

/* Responsive adjustments */
@media (max-width: 576px) {
    .navbar-nav {
        flex-wrap: wrap; /* Reorganiza los elementos */
        justify-content: center;
    }

    .nav-link i {
        font-size: 18px; /* Reduce aún más el tamaño de los iconos */
    }

    .nav-item {
        min-width: 50px; /* Ajusta el ancho mínimo del ítem para pantallas muy pequeñas */
    }
}

/* Tamaño reducido para iconos en resoluciones más bajas */
@media (max-width: 768px) {
    .nav-link i {
        font-size: 18px; /* Reduce el tamaño de los iconos */
    }

    .nav-item {
        min-width: 50px; /* Ajusta el ancho mínimo del ítem */
    }
}

@media (max-width: 1250px) {
    .nav-link i {
        font-size: 18px; /* Reduce el tamaño de los iconos */
    }

    .nav-item {
        min-width: 50px; /* Ajusta el ancho mínimo del ítem */
    }
}

/* General table styles */
.table {
    width: 100%;
    border-collapse: collapse; /* Elimina espacios entre celdas */
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* Sombra ligera */
}

    /* Table header styles */
    .table thead {
        background-color: #007bffc2 !important; /* Azul corporativo */
        color: white; /* Texto blanco */
        text-transform: uppercase; /* Texto en mayúsculas */
        font-size: 14px; /* Tamaño ajustado */
    }

        .table thead th {
            padding: 12px;
            text-align: left;
            font-weight: bold;
            border-bottom: 2px solid #0056b3; /* Línea de separación */
        }

        /* Fondo del encabezado para DataTables (si se usa) */
        .table thead.bg-light {
            background-color: #007bffc2 !important; /* Azul corporativo */
            color: white !important; /* Texto blanco */
            opacity: 1 !important; /* Asegura visibilidad */
        }

    /* Table body styles */
    .table tbody tr {
        border-bottom: 1px solid #dee2e6; /* Línea de separación */
        transition: background-color 0.3s ease; /* Efecto hover suave */
    }

        .table tbody tr:hover {
            background-color: #f1f9ff; /* Color suave al pasar el cursor */
        }

    .table tbody td {
        padding: 10px;
        font-size: 14px;
        color: #333;
    }

/* Alternating row colors */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: #ffffff;
}

/* Acciones (botones dentro de la tabla) */
.table tbody td .btn {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .table tbody td .btn:hover {
        opacity: 0.9; /* Ligero cambio de opacidad en hover */
    }

/* Responsive table */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Para una experiencia fluida en dispositivos móviles */
}

/* Footer styles */
.table tfoot td {
    font-weight: bold;
    background-color: #f8f9fa;
    color: #333;
    padding: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .table tbody td {
        font-size: 12px;
        padding: 8px;
    }

    .table thead th {
        font-size: 12px;
    }
}

/* Contenedor general de la paginación */
.dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: center; /* Centra la paginación */
    align-items: center;
    padding: 15px 0;
    background-color: #f8f9fa; /* Fondo suave */
}

    /* Botones de la paginación */
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 5px;
        font-size: 14px;
        font-weight: 500;
        color: #333; /* Texto oscuro */
        background-color: #ffffff;
        border-radius: 8px;
        text-decoration: none;
        transition: all 0.3s ease;
        cursor: pointer;
        min-width: 36px; /* Asegura un tamaño consistente */
    }

        /* Hover para los enlaces dentro de los botones de paginación */
        .dataTables_wrapper .dataTables_paginate .paginate_button a:hover {
            background-color: #007bffc2 !important; /* Fondo azul en hover */
            color: white; /* Texto blanco */
            text-decoration: none; /* Elimina subrayado */
            box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* Sombra ligera */
            transition: all 0.3s ease;
        }

        /* Botón activo de la paginación */
        .dataTables_wrapper .dataTables_paginate .paginate_button a.current {
            background-color: #007bffc2 !important; /* Fondo azul */
            color: white; /* Texto blanco */
            font-weight: bold; /* Destaca el botón activo */
            box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada */
            text-decoration: none; /* Elimina subrayado */
        }

        /* Botones normales (sin hover ni estado activo) */
        .dataTables_wrapper .dataTables_paginate .paginate_button a.active {
            color: #333; /* Texto oscuro */
            padding: 6px 12px;
            font-size: 14px;
            font-weight: 500;
            text-decoration: none; /* Elimina subrayado */
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        /* Botones normales (sin hover ni estado activo) */
        .dataTables_wrapper .dataTables_paginate .paginate_button a.active {
            color: #333; /* Texto oscuro */
            padding: 6px 12px;
            border-radius: 8px; /* Bordes redondeados */
            font-size: 14px;
            font-weight: 500;
            text-decoration: none; /* Elimina subrayado */
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

/* Ajustes de responsividad */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_paginate .paginate_button a {
        font-size: 12px; /* Reduce tamaño en pantallas pequeñas */
        padding: 5px 10px;
    }
}

/* Información sobre entradas */
.dataTables_wrapper .dataTables_info {
    font-size: 14px;
    color: #333;
    text-align: center; /* Centra el texto */
    margin-top: 5px;
}

/* Controles para el número de entradas por página */
.dataTables_wrapper .dataTables_length {
    margin-bottom: 10px;
    display: flex;
    justify-content: flex-start; /* Alinea a la izquierda */
    align-items: center;
}

    .dataTables_wrapper .dataTables_length label {
        font-size: 14px;
        color: #333;
    }

    .dataTables_wrapper .dataTables_length select {
        font-size: 14px;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        background-color: #ffffff;
        color: #333;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .dataTables_wrapper .dataTables_length select:hover {
            border-color: #007bffc2; /* Azul corporativo */
        }

/* Responsividad */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_paginate {
        flex-wrap: wrap; /* Permite que los botones se reorganicen */
        padding: 10px 0;
    }

    .dataTables_wrapper .dataTables_length {
        justify-content: center; /* Centra el selector */
        text-align: center;
    }

    .dataTables_wrapper .dataTables_info {
        text-align: center;
    }
}


/* Botones solo con iconos */
.btn-icon-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; /* Tamaño compacto */
    height: 36px; /* Tamaño compacto */
    padding: 0;
    border: none;
    border-radius: 50%; /* Botón circular */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .btn-icon-only:hover {
        background-color: rgba(0, 123, 255, 0.1); /* Fondo suave al pasar el cursor */
        transform: scale(1.1); /* Ligera ampliación al pasar el cursor */
    }

    .btn-icon-only i {
        font-size: 16px; /* Tamaño del icono */
        color: inherit;
    }

.btn-menu-offcanvas {
    color: #444;
}

    .btn-menu-offcanvas:hover {
        background-color: #05bdf169;
        border-color: #05bdf169;
    }

#loaderGestionar {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px) saturate(100%);
    -webkit-backdrop-filter: blur(5px) saturate(100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    color: #333;
}