﻿

.table-responsive-fp {
    width: 100%;
    overflow: auto;
    display: block;
    border-radius: 8px;
    text-align: center;
}

    .table-responsive-fp table {
        border-collapse: collapse;
        border-spacing: 0;
        table-layout: auto;
        width: auto;
        margin: 0 auto;
        min-width: 100%;
    }

    .table-responsive-fp thead th {
        position: sticky;
        top: 0;
        background: #0060A8;
        color: white;
        white-space: nowrap;
        padding: 20px 15px;
        align-content: center;
    }

    .table-responsive-fp tr:nth-child(even) {
        background-color: #f2f2f2;
    }

    .table-responsive-fp th:first-child {
        border-top-left-radius: 8px;
    }

    .table-responsive-fp th:last-child {
        border-top-right-radius: 8px;
    }

    .table-responsive-fp tbody tr:last-child td:first-child {
        border-bottom-left-radius: 8px;
    }

    .table-responsive-fp tbody tr:last-child td:last-child {
        border-bottom-right-radius: 8px;
    }

    .table-responsive-fp td {
        padding: 12px 15px;
        white-space: normal;
        word-wrap: break-word;
    }

    .table-responsive-fp tbody tr:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }



.iconosVerDescargarEditar {
    color: #414141;
    margin-left: 10px;
    margin-right: 10px;
    cursor: pointer;
}



.styled-table {
    width: 100%; 
    border-collapse: collapse;
    text-align: center;
}

    .styled-table thead th {
        padding: 6px 15px;
        position: sticky; /* Encabezado permanece visible al hacer scroll */
        top: 0;
        z-index: 2; /* Encabezado sobre las filas */
        background-color: #2271b3; /* Fondo del encabezado */
        color: #ffffff; /* Texto blanco */
        align-content: center;
    }

    .styled-table th,
    .styled-table td {
        padding: 12px 15px;
        white-space: normal; /* Permitir que el texto ocupe varias líneas */
        word-wrap: break-word; /* Ajustar texto dentro de las celdas */
    }

    .styled-table tbody tr {
        border-bottom: 1px solid #dddddd;
    }

        .styled-table tbody tr:nth-of-type(even) {
            background-color: #f3f3f3; /* Color alterno para filas */
        }

        .styled-table tbody tr:last-of-type {
            border-bottom: 2px solid #2271b3;
        }

        .styled-table tbody tr.active-row {
            font-weight: bold;
            color: #2271b3; /* Color para la fila activa */
        }

    .styled-table td.fecha {
        white-space: normal;
        word-wrap: break-word;
        min-width: 150px; /* Mínimo ancho para la columna de fecha */
    }

    .styled-table td:not(.fecha) {
        width: auto;
    }

.select2-selection.select2-selection--single {
    height: 100% !important;
    width: 100% !important;
}

.select2.select2-container {
    width: 100% !important;
}

.select2-selection__arrow {
    height: 100% !important;
}



.dropdown-item:active {
    background: #0060A8 !important;
    color: white !important;
}



.container-elements {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    position: relative;
}

.option-elements {
    width: 20%;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    font-size: 1.2rem;
    opacity: 0;
    background: #0060A8;
    color: white;
    transform: translateY(200px);
    animation: subir 1.1s ease-out forwards;
    transition: transform 0.3s ease-in-out, background-color 0.3s, color 0.3s;
}

    .option-elements:nth-child(1) {
        animation-delay: 0.1s;
    }

    .option-elements:nth-child(2) {
        animation-delay: 0.25s;
    }

    .option-elements:nth-child(3) {
        animation-delay: 0.4s;
    }

    .option-elements:nth-child(4) {
        animation-delay: 0.55s;
    }

    .option-elements:nth-child(5) {
        animation-delay: 0.7s;
    }
    .option-elements:nth-child(6) {
        animation-delay: 0.85s;
    }

    .option-elements:hover {
        transform: scale(1.15);
        background: #40B4E5;
        color: white;
    }

@keyframes subir {
    0% {
        transform: translateY(200px) scale(0.8);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.nav-fixed-top {
    top: 16px;
    left: 0;
    width: 8% !important;
    z-index: 1000;
    transform: translateY(100%) scale(0.5);
    opacity: 0;
    animation: fixed-top-nav 0.5s ease-out forwards;
}

.option-elements.nav-fixed-top span {
    display: none;
}


@keyframes fixed-top-nav {
    0% {
        transform: translateY(100%) scale(1);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.active-element {
    background: #cf5050;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


#networks .social-icon {
    width: 48px;
    height: 48px;
    color: #0060A8;
    border-color: #0060A8;
    transition: all 0.3s ease;
    text-decoration: none;
}

    #networks .social-icon:hover {
        background-color: #0060A8;
        transform: translateY(-2px) scale(1.1);
    }

#networks i {
    pointer-events: none;
}

.login-link {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .login-link:hover {
        color: #0060A8;
        text-decoration: underline;
        text-underline-offset: 3px;
    }


.bounce-in-right {
    animation: bounce-in-right 1s ease;
}

@keyframes bounce-in-right {
    0% {
        opacity: 0;
        transform: translateX(2000px);
    }

    60% {
        opacity: 1;
        transform: translateX(-30px);
    }

    80% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(0);
    }
}


.login {
    opacity: 0;
    transform: translateY(-40px);
}

.login.show {
    animation: show-container 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes show-container {
    0% {
        transform: translateY(-40px);
        opacity: 0;
    }

    60% {
        transform: translateY(10px);
        opacity: 0.9;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

div ul {
    overflow: hidden;
}

ul > li {
    width: 100%;
}

li > a {
    display: block;
    background-color: transparent;
    color: white;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.3rem 1rem;
    border-radius: 5px;
    margin-left: 10px;
    transition: background-color 0.3s, transform 0.2s;
}

    li > a:hover,
    li > a:focus {
        background-color: white;
        color: #005cb9;
        transform: translateX(3px);
    }

li > button {
    background: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    padding: 0 0.8rem;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s;
}

    li > button:hover {
        color: #cdcdcd;
    }

li ul {
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    gap: 1px;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 20px;
    transition: max-height 0.3s ease, margin 0.3s ease;
}

    li ul.show {
        display: flex;
        max-height: 500px;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    li ul li a {
        display: block;
        padding: 5px 8px;
        font-size: 1.05rem;
        font-weight: 400;
        color: white;
        background-color: transparent;
        border-radius: 5px;
        text-decoration: none;
        transition: background-color 0.3s, transform 0.2s;
    }

        li ul li a:hover,
        li ul li a:focus {
            background-color: white;
            color: #005cb9;
            transform: translateX(3px);
        }

.scroll-invisible {
    overflow-y: auto;
    scrollbar-width: none;
}

    .scroll-invisible::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }

#sidebar {
    height: 100vh;
    z-index: 999;
    transition: width 0.3s ease;
    overflow-x: hidden;
}

    #sidebar.expanded {
        width: 300px;
    }

@keyframes alert_animation {
    0% {
        transform: rotate(0deg) scale(1);
    }

    20% {
        transform: rotate(-20deg) scale(1.1);
    }

    40% {
        transform: rotate(20deg) scale(1.1);
    }

    60% {
        transform: rotate(-20deg) scale(1.1);
    }

    80% {
        transform: rotate(20deg) scale(1.1);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}


.animation_alert {
    display: inline-block;
    animation-name: alert_animation;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
    animation-delay: 3s;
}


#navbarContent {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

    #navbarContent.show {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

#head_title {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

    #head_title.show {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }


.param-panel {
    border-radius: 20px;
    max-height: 50vh;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

    .param-panel select,
    .param-panel input {
        border-radius: 8px;
        padding: 6px;
    }

#buscar {
    color: white;
    background-color: #0060A8;
    border: none;
    transition: 0.2s ease;
    margin-top: auto;
}

    #buscar:hover {
        background-color: #40B4E5;
    }


.dropdown-menu {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none; 
    display: block; 
    visibility: hidden;
}

    .dropdown-menu.show {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
        visibility: visible;
    }


.btn-toggle {
    background: none;
    border: none;
    text-align: left;
    padding: 8px 12px;
    transition: background 0.2s;
}

    .btn-toggle:hover {
        background: rgba(255, 255, 255, 0.15);
    }

.container-nav-head {
    display: flex !important;
    flex-direction: row;
    overflow: hidden;
}

/* Responsive para móvil */
@media (max-width: 768px) {
    #main-container-layout {
        height: 100vh !important;
    }

    .container-nav-head {
        flex-direction: column !important;
        display: block !important;
    }

    #sidebar {
        height: auto !important;
        width: 100% !important;
        z-index: 999;
        position: sticky;
        top: 0;
    }

    #nav_container {
        border-radius: 0 !important;
    }

    #navbarContent {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

        #navbarContent.show {
            max-height: 100%;
            overflow-y: auto;
        }

    #toggleSidebar {
        width: 100% !important;
    }

    #navbarContent ul {
        padding-left: 1rem !important;
    }

    #navbarContent li {
        width: 100%;
    }

    #navbarContent a,
    #navbarContent button {
        padding: 10px 12px !important;
        font-size: 0.95rem;
        display: block;
        width: 100%;
        text-align: left;
    }

    #navbarContent ul ul {
        display: none;
    }

        #navbarContent ul ul.show {
            display: block;
            padding-left: 2rem !important;
        }

    .overflow-auto.w-100 {
        height: auto !important;
    }

    main {
        border-radius: 0 !important;
        height: auto !important;
    }

    #perfilButton {
        position: fixed;
        right: 16px;
        bottom: 16px;
    }

    #modal_perfil {
        width: 90vw !important;
        max-width: 300px !important;
    }
}

/* Desktop */
@media (min-width: 769px) {
    body .d-flex {
        flex-direction: row;
    }

    #sidebar {
        height: 100vh;
        width: 50px;
    }

    .overflow-auto.w-100 {
        height: 100vh;
    }

    main {
        border-radius: 15px 0 0 15px;
        height: 100vh;
    }
}