/* tablaSISA */

#tablaSISA {
    table-layout: fixed;
    margin: 25px 0px !important;
}

    #tablaSISA th, #tablaSISA td {
        /*overflow: hidden;*/
        word-break: break-word;
        /*white-space: nowrap*/
        vertical-align: middle;
        font-size: 12px !important;
    }

    #tablaSISA tr td:nth-child(1), #tablaSISA tr th:nth-child(1) {
        width: 7% !important;
        /*text-align: center;*/
    }

    #tablaSISA tr td:nth-child(2), #tablaSISA tr th:nth-child(2) {
        width: 10% !important;
        /*text-align: center;*/
    }

    #tablaSISA tr td:nth-child(3), #tablaSISA tr th:nth-child(3) {
        width: 7% !important;
        /*text-align: center;*/
    }

    #tablaSISA tr td:nth-child(4), #tablaSISA tr th:nth-child(4) {
        width: 9% !important;
        /*text-align: center;*/
    }

    #tablaSISA tr td:nth-child(5), #tablaSISA tr th:nth-child(5) {
        width: 5% !important;
        /*text-align: center;*/
    }

    #tablaSISA tr td:nth-child(6), #tablaSISA tr th:nth-child(6) {
        width: 7% !important;
        /*text-align: center;*/
    }

    #tablaSISA tr td:nth-child(7), #tablaSISA tr th:nth-child(7) {
        width: 7% !important;
        /*text-align: center;*/
    }

    #tablaSISA tr td:nth-child(8), #tablaSISA tr th:nth-child(8) {
        width: 7% !important;
        /*text-align: center;*/
    }

    #tablaSISA tr td:nth-child(9), #tablaSISA tr th:nth-child(9) {
        width: 6% !important;
        /*text-align: center;*/
    }

    #tablaSISA tr td:nth-child(10), #tablaSISA tr th:nth-child(10) {
        width: 9% !important;
        /*text-align: center;*/
    }

    #tablaSISA tr td:nth-child(11), #tablaSISA tr th:nth-child(11) {
        width: 5% !important;
        /*text-align: center;*/
    }

    #tablaSISA tr td:nth-child(12), #tablaSISA tr th:nth-child(12) {
        width: 7% !important;
        /*text-align: center;*/
    }

    #tablaSISA tr td:nth-child(13), #tablaSISA tr th:nth-child(13) {
        width: 7% !important;
        /*text-align: center;*/
    }

    #tablaSISA tr td:nth-child(14), #tablaSISA tr th:nth-child(14) {
        width: 7% !important;
        /*text-align: center;*/
    }
    #tablaSISA tr td:nth-child(15), #tablaSISA tr th:nth-child(15) {
        width: 7% !important;
        /*text-align: center;*/
    }

@media (max-width: 800px) {
    #tablaSISA_wrapper #tablaSISA tr td {
        width: inherit !important;
        text-align: left;
    }
}

@media (max-width: 800px) {
    div.dataTables_wrapper div.dataTables_filter input {width: 70% !important;}

    #tablaSISA_paginate .paginate_button {display:none;}
    #tablaSISA_paginate .paginate_button.active, #tablaSISA_paginate .paginate_button.previous, #tablaSISA_paginate .paginate_button.next {display:inline;}

    .dataTables_wrapper {margin-top:0;}
    div.dataTables_wrapper div.dataTables_filter {text-align: center !important; margin-bottom:0 !important;}
    div.dataTables_wrapper div.dataTables_filter label {width:75% !important;}

    .dataTables_wrapper td .dropdown-menu {width:250px !important;}
    .dataTables_wrapper td .dropdown-menu.dropdown-menu-right {right:auto; left:0;}
    .dataTables_wrapper td .dropdown-menu li a {white-space: normal;}
}

@media (max-width: 767px) {
    .dataTables_length, .dataTables_paginate {
        width: 100%;
        /*float: left;*/
        margin: 0 0 5px !important;
        padding: 0;
    }
}

.dataTables_filter label {text-align: right !important;}


/*PARA EL MODAL DEL LOADING/SPINNER*/

/* 1. Fondo oscurecido que cubre toda la pantalla */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Fondo medio oscuro */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Asegura que esté por encima de todo */
    backdrop-filter: blur(4px); /* Efecto de desenfoque moderno */
}

/* 2. Caja contenedora central */
.loading-overlay__box {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Sombra elegante */
    text-align: center;
    max-width: 320px;
    width: 90%;
    animation: fadeInScale 0.3s ease-out;
}

/* 3. El Spinner (Círculo animado) */
.loading-overlay__spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db; /* Color principal */
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    animation: spin 1s linear infinite;
}

/* 4. Textos pintorescos */
.loading-overlay__box strong {
    display: block;
    font-size: 1.25rem;
    color: #2c3e50;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-bottom: 0.5rem;
}

.loading-overlay__box p {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

/* --- Animaciones --- */

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}