﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/*.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}*/

.nav-link.active {
    text-decoration: none;
    color: rgba(255, 255, 255, 1) !important;
    font-weight: bold;
}

    .nav-link.active i {
        color: white !important;
    }

h5 {
    font-size: 1.5rem !important;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

#filterToggle {
    padding: 5px 8px;
}


.table thead.bg-primary {
    background-color: #012b6f !important;
    text-align: center;
}

.table th {
    justify-content: center !important;
    align-items: center !important;
    vertical-align: middle;
    width: auto;
    min-width: 80px;
}


.table td {
    text-align: center;
    align-content: center;
    width: auto;
    height: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 80px;
}

.table-responsive {
    max-height: 500px;
    overflow-y: auto;
}

.sticky-column {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    padding: 10px;
}

    .sticky-column .btn {
        width: 100%;
        max-width: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

.navbar {
    padding: 15px 20px;
    background: #0F1A45 !important;
    height: 95px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

    .navbar-nav .nav-link:hover {
        color: white !important;
        background-color: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
    }

    .navbar-nav .nav-link.active {
        color: white !important;
        background-color: rgba(255, 255, 255, 0.2);
        font-weight: 600;
        position: relative;
    }

    .navbar-nav .nav-link i {
        margin-right: 8px;
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.8);
        transition: all 0.3s ease;
    }

    .navbar-nav .nav-link:hover i,
    .navbar-nav .nav-link.active i {
        color: white !important;
    }

.navbar .dropdown-menu {
    background-color: #0F1A45;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
}

    .navbar .dropdown-item:hover,
    .navbar .dropdown-item:focus {
        color: white;
        background-color: rgba(255, 255, 255, 0.15);
    }

    .navbar .dropdown-item.active,
    .navbar .dropdown-item:active {
        color: white;
        background-color: rgba(255, 255, 255, 0.25);
        font-weight: 500;
    }

.sidebar {
    width: 200px !important;
    transition: transform 0.3s ease-in-out;
    background: linear-gradient(to bottom, #0F1A45 40%, #002D73 100%) !important;
}

.sidebar-logo {
    width: 140px;
    height: 90px;
    margin-top: 20px;
}

#wrapper {
    display: flex;
    min-height: 100vh;
}

/* Ajustar el contenido cuando el sidebar está oculto */
#content-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease-in-out;
    width: 100%;
}

/* Cuando el sidebar está oculto, el contenido se ajusta */
.sidebar.toggled + #content-wrapper {
    margin-left: 0;
    width: 100%;
}

.navbar, .sticky-footer {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Para darle un poco de sombra y que no se vea tan plano */
    color: white;
}

.nav-item i {
    font-size: 1.2rem !important; /* Fuerza el cambio de tamaño */
}

.sidebar.toggled + .navbar,
.sidebar.toggled + .sticky-footer {
    margin-left: 0;
    width: 100%; /* Expandir el navbar y el footer al ocultar el sidebar */
}

.fixed-width-icon {
    min-width: 25px; /* Fuerza un ancho uniforme para todos los iconos */
    text-align: center;
}

.sidebar-text {
    font-size: 1.1rem;
    margin-left: 8px;
}

.sidebar.toggled .sidebar-text {
    display: none;
}

.sidebar.toggled .sidebar-brand img {
    max-width: 90px;
    height: auto;
    transition: all 0.3s ease-in-out;
}

.sidebar.toggled .nav-item i {
    font-size: 1.5rem !important;
    margin-bottom: 30px;
    margin-left: 20px;
}

.navbar a, .sticky-footer a {
    color: white !important;
}

    .navbar a:hover, .sticky-footer a:hover {
        color: #D1E8FF !important; /* Un tono más claro en hover */
    }

.sticky-footer {
    position: relative;
    width: 100%;
    padding: 15px 20px;
    background-color: #012b6f !important;
    height: 80px;
}

html, body, #wrapper {
    height: 100%;
}

#content {
    flex: 1 0 auto;
}

.select2-container .select2-selection {
    height: 40px !important;
    padding: 5px !important;
    font-size: 16px;
}

.highlight-row {
    background-color: #ceecff !important;
    transition: background-color 1s ease-in-out;
    font-weight: bold;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.blinking {
    animation: blink 1s infinite;
}

.login-wrapper {
    display: flex;
    height: 100vh;
}

.login-left {
    flex: 1;
    background: url('/images/login-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box {
    text-align: center;
}

.login-left {
    flex: 1;
    background-image: url('/images/HBlogin.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
}

.login-right {
    flex: 1;
    background-color: #fff;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/*.navbar {
    background-color: #0c1c44 !important;
    font-family: "Avenir", sans-serif;   
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
}

.navbar-nav {
    display: flex;
    gap: 25px;
}

.navbar a {
    color: white !important;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    padding: 10px 5px;
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
}*/

/* Efecto hover con separación y color */
/*.navbar a:hover {
        color: #D1E8FF !important;
        background-color: rgba(255, 255, 255, 0.15);
        transform: scale(1.1);
    }*/

/* Efecto activo */
/*.navbar a:active {
        background-color: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }


    .navbar-nav {
        flex-direction: column;
        gap: 10px;
    }*/
