@import url('https://fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,900');

html {
    font-size: 14px; /* Desktop */
}

body {
    background-color: #f4f4f4;
    color: #000;
    font-size: 100%;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    line-height: 1.2rem;
}

input, select {
    outline: none !important;
}

.mifile {
    display: block !important;
    text-align: center !important;
    margin-top: 5px !important;
    color: blue !important; /* Cambia el color del texto */
    font-weight: bold !important; /* Hace el texto negrita */
}

/* Para tablas de aspx */
.scroll-gridview-custom {
    overflow-x: auto;
    width: 100%;
    height: auto;
}

.gridview-custom {
    width: 100%;
    background-color: #fff;
    padding: 4px;
    border: solid 1px #c3c3c3;
    border-collapse: collapse;
    border-radius: 6px;
}

    .gridview-custom td {
        padding: 4px;
        border: 1px solid #c3c3c3;
        color: #000;
    }

    .gridview-custom th {
        padding: 4px;
        border: 1px solid #c3c3c3;
        background-color: #e6e5e5;
        color: #888888;
    }

.gridview-center-custom {
    text-align: center;
}

/* Piso estilos de Bootstrap */
.multiselect-selected-text {
    width: 220px;
    max-width: 220px;
    text-align: left;
    display: inline-block;
    word-break: break-all;
    white-space: normal;
}

/* Navbar Header: Asegura que los elementos se alineen correctamente */
.navbar-header {
    display: flex;
    align-items: center; /* Alinea la imagen y el botón de hamburguesa verticalmente */
    justify-content: space-between; /* Imagen a la izquierda, opciones a la derecha */
    padding: 10px 15px; /* Espaciado uniforme */
}

/* Estilos del toggle button (hamburguesa) */
.navbar-toggler {
    background-color: #ffd102;
    border: none;
    padding: 8px 12px;
    font-size: 1.2rem;
    cursor: pointer;
}

    /* Ocultar borde en algunos navegadores */
    .navbar-toggler:focus {
        outline: none;
        box-shadow: none;
    }

/* Estilos de los elementos del menú */
.navbar-nav {
    display: flex;
    margin-left: auto; /* Alinea el menú a la derecha */
    padding: 0;
    justify-content: flex-start; /* Asegura que los elementos del menú se alineen horizontalmente */
    width: auto;
    cursor: pointer;
}

    .navbar-nav > li {
        display: inline-block; /* Los elementos se alinean horizontalmente */
    }

        .navbar-nav > li > a {
            color: #ffd102;
            text-decoration: none;
            padding: 15px 20px;
            display: block;
            font-weight: 500;
            font-size: 1rem;
            white-space: nowrap; /* Evita que el texto se divida */
            text-align: center; /* Alinea el texto de los enlaces al centro */
        }

            .navbar-nav > li > a:hover,
            .navbar-nav > li > a:focus {
                color: #fff;
                background-color: #414141;
            }

/* Navbar collapse: Asegura que el menú no ocupe el espacio innecesario */
.navbar-collapse {
    display: flex;
    justify-content: flex-end; /* Alinea el menú a la derecha */
    flex-grow: 1;
}

/* Estilos para dispositivos móviles */
@media (max-width: 991px) {
    .navbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
    }

    .navbar-toggler {
        position: absolute;
        right: 15px;
        top: 10px;
        z-index: 1050;
    }

    .navbar-collapse {
        flex-direction: column; /* Alinea los elementos verticalmente en dispositivos móviles */
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #414141;
        display: none;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        align-items: flex-start;
    }

        /* Mostrar el menú cuando se active */
        .navbar-collapse.show {
            display: flex;
            justify-content: flex-start;
            align-items: flex-start;
        }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        padding: 0;
        text-align: left; /* Alineación de texto a la izquierda en móviles */
    }

        .navbar-nav > li {
            width: 100%;
        }

            .navbar-nav > li > a {
                width: 100%;
                padding: 15px 20px;
                background-color: #414141;
                color: #ffd102;
                text-align: left; /* Alineación de texto a la izquierda en móviles */
            }
}




/* Estilos para la imagen del logo */
.logo-custom {
    padding-top: 8px;
    margin-left: 15px;
    max-width: 186px;
    height: auto;
    z-index: 10; /* Asegura que la imagen se quede encima */
}

/* Asegura que el menú de hamburguesa esté alineado correctamente */
.navbar-toggler {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%); /* Centrado verticalmente */
}
/* Cuando el menú se abre, añade un margen en la parte inferior */
.navbar-collapse.show {
    margin-bottom: 300px; /* Ajusta este valor según el tamaño del menú */
}

/* Puedes también añadir una transición para que el efecto sea más suave */
.navbar-collapse {
    transition: margin-bottom 0.3s ease;
}


/* Estilos para el 'li' que contiene el submenú */
.navbar-nav .dropdown {
    position: relative;
    padding: 0 10px;
}

/* Estilos para el enlace de la opción de submenú */
.navbar-nav .dropdown-toggle {
    color: #ffd102; /* Color del texto */
    padding: 15px 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    display: inline-block; /* Asegura que el enlace sea un bloque en línea */
}

/* Estilos para el submenú */
.navbar-nav .dropdown-menu {
    background-color: #414141; /* Color de fondo del submenú */
    border-radius: 0.25rem; /* Bordes redondeados */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    position: absolute; /* Lo hace posicionado de manera absoluta */
    top: 100%; /* Posiciona el submenú justo debajo del 'li' */
    left: 0; /* Alinea el submenú con el borde izquierdo del 'li' */
    min-width: 200px; /* Ajusta el ancho mínimo del submenú */
    cursor: pointer;
}

/* Mostrar el submenú al pasar el ratón sobre el 'li' */
.navbar-nav .dropdown:hover > .dropdown-menu {
    display: block; /* Muestra el submenú cuando el ratón está sobre el 'li' */
    cursor:pointer;
}

/* Estilo para los elementos dentro del submenú */
.navbar-nav .dropdown-menu li a {
    color: #ffd102;
    padding: 10px 15px;
    display: block; /* Asegura que los enlaces dentro del submenú ocupen todo el ancho */
    text-decoration: none;
}

    /* Efecto hover para los ítems del submenú */
    .navbar-nav .dropdown-menu li a:hover {
        background-color: #ffd102; /* Fondo amarillo al hacer hover */
        color: #414141; /* Texto oscuro al hacer hover */
    }

/* Estilo activo para los ítems seleccionados */
.navbar-nav .active > a {
    color: #fff;
    background-color: #ffd102; /* Color de fondo del ítem activo */
}




/* Animación para el spinner */
#spinner-custom {
    position: fixed;
    z-index: 999;
    overflow: show;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
}

    #spinner-custom:before {
        content: '';
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.5);
    }

    #spinner-custom:not(:required) {
        font: 0/0 a;
        color: transparent;
        text-shadow: none;
        background-color: transparent;
        border: 0;
    }

        #spinner-custom:not(:required):after {
            content: '';
            display: block;
            font-size: 10px;
            width: 50px;
            height: 50px;
            margin: 1px auto;
            border-radius: 50%;
            border: 5px solid #fff;
            border-top: 5px solid #ffd102;
            animation: spin 1s infinite linear;
        }

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}
/* Otros estilos del sitio */
.navbar-custom {
    background-color: #414141;
}

.logo-custom {
    padding-top: 8px;
    margin-left: 15px;
}

.icon-custom {
    background-position: left 0.4rem center;
    background-size: 1.5rem 1.5rem;
    background-repeat: no-repeat;
}

.link-list-custom {
    background-image: url("img/iso.svg");
    padding: 0.5rem 1rem 0.5rem 2.2rem;
    color: #414141;
    font-weight: 600;
    border-radius: 1rem;
    background-color: rgba(0, 0, 0, .03);
    line-height: 3rem;
}

.link-list-custom2 {
    background-image: url("img/iso.svg");
    padding: 0.5rem 1rem 0.5rem 2.2rem;
    color: #414141;
    font-weight: 600;
    border-radius: 1rem;
    background-color: rgba(0, 0, 0, .03);
    line-height: 1rem;
    margin-top: 1rem;
}

.link-list-custom:hover, .link-list-custom:focus {
    background-image: url("img/iso2.svg");
    color: #ffd102;
    background-color: #414141;
    text-decoration: none;
}

.link-excel-custom2 {
    background-image: url("img/excel.svg");
    padding: 0.5rem 1rem 0.5rem 2.2rem;
    color: #414141;
    font-weight: 600;
    border-radius: 1rem;
    background-color: rgba(0, 0, 0, .03);
    line-height: 1rem;
}

.link-excel-custom {
    background-image: url("img/excel.svg");
    padding: 0.5rem 1rem 0.5rem 2.2rem;
    color: #414141;
    font-weight: 600;
    border-radius: 1rem;
    background-color: rgba(0, 0, 0, .03);
    line-height: 3rem;
}

    .link-excel-custom:hover, .link-excel-custom:focus {
        background-image: url("img/excel2.svg");
        color: #ffd102;
        background-color: #414141;
        text-decoration: none;
    }

.link-add-custom {
    background-image: url("img/add.svg");
    padding: 0.5rem 1rem 0.5rem 2.2rem;
    color: #414141;
    font-weight: 600;
    border-radius: 1rem;
    background-color: rgba(0, 0, 0, .03);
    line-height: 3rem;
}

.link-add-custom2 {
    background-image: url("img/add.svg");
    padding: 0.5rem 1rem 0.5rem 2.2rem;
    color: #414141;
    font-weight: 600;
    border-radius: 1rem;
    background-color: rgba(0, 0, 0, .03);
    line-height: 1rem;
    border-width: 2px;
    border-style: outset;
    border-color: #000;
    border-image: initial;
}

    .link-add-custom2:hover, .link-add-custom2:focus {
        background-image: url("img/add2.svg");
        color: #ffd102;
        background-color: #414141;
        text-decoration: none;
    }

.link-add-custom:hover, .link-add-custom:focus {
    background-image: url("img/add2.svg");
    color: #ffd102;
    background-color: #414141;
    text-decoration: none;
}

.link-custom {
    color: #ffa800;
    text-decoration: none;
}

    .link-custom:hover, .link-custom:focus {
        color: #666;
        text-decoration: none;
    }

.footer-custom {
    bottom: 0;
    color: #707070;
    height: 2rem;
    padding-top: 0.5rem;
    text-align: center;
    left: 0;
    position: fixed;
    display: block;
    width: 100%;
    background-color: #dfdfdf;
    border-top: 1px solid #d1d1d1;
}

.small-custom {
    font-size: 12px;
}

.extra-small-custom {
    font-size: 11px;
}

.error-login-custom {
    font-size: 12px;
    color: red;
}

.error-custom {
    color: red;
}

.text-control-custom {
    margin-top: 6px;
    font-size: 1rem;
    line-height: 2rem;
}

.text-control-bold {
    margin-top: 6px;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600 !important;
}

.form-control-custom {
    display: block;
    width: 99%;
    margin-top: 6px;
    font-size: 1rem;
    line-height: 2rem;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

    .form-control-custom:focus {
        border-color: #ffd102;
        box-shadow: 0 0 0 0.2rem rgba(255, 209, 2, 0.25);
        -webkit-box-shadow: 0 0 0 0.2rem rgba(255, 209, 2, 0.25);
    }

.btn-custom {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.8rem;
    border-radius: 4px;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    outline: none;
    cursor: pointer;
}

.btn-custom {
    background-color: #ffd102;
    color: #000;
}

    .btn-custom:hover {
        background-color: #d1ad0b;
        color: #000;
        border-color: #ced4da;
    }

    .btn-custom:focus, .btn-custom:active {
        border-color: #ffd102;
        box-shadow: 0 0 0 0.2rem rgba(255, 209, 2, 0.25);
        -webkit-box-shadow: 0 0 0 0.2rem rgba(255, 209, 2, 0.25);
    }

    .btn-custom:disabled {
        opacity: 0.5;
        cursor: default;
        background-color: #DCDCDC;
        color: #000;
        border-color: #ced4da;
    }

.btn-outline-custom {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.8rem;
    border-radius: 4px;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    outline: none;
    cursor: pointer;
}

.btn-outline-custom {
    background-color: #fff;
    border-color: #ced4da;
}

    .btn-outline-custom:hover {
        border-color: #ffd102;
    }

    .btn-outline-custom:focus, .btn-outline-custom:active {
        border-color: #ffd102;
        box-shadow: 0 0 0 0.2rem rgba(255, 209, 2, 0.25);
        -webkit-box-shadow: 0 0 0 0.2rem rgba(255, 209, 2, 0.25);
    }

.container-custom {
    padding: 20px 20px 60px 20px;
}

.card-custom {
    border: 1px solid #c3c3c3;
    border-radius: 6px;
    background-color: #fff;
    margin: 0 auto;
}

.card-login-custom {
    width: 300px;
}

.card-small-custom {
    width: 400px;
}

.card-medium-custom {
    width: 800px;
}

.card-large-custom {
    width: 1000px;
}

.card-header-custom {
    padding: 10px 15px;
    margin-bottom: 0;
    background-color: rgba(0, 0, 0, .03);
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.card-body-custom {
    margin: 20px;
    line-height: 1.3rem;
}

.dropshadow-custom {
    box-shadow: 0px 0.09rem 0.72rem 0px rgba(0, 0, 0, 0.2);
}

.textbox-50-100 {
    width: 50%;
}

.textbox-50 {
    width: 50%;
}

.title-custom {
    padding: 5px 0px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.w600-custom {
    font-weight: 600;
}

.separator-custom {
    border-bottom: 1px solid rgba(0, 0, 0, .125);
}

.spacer-20-custom {
    height: 20px;
}

.spacer-5-custom {
    height: 5px;
}

#spinner-custom {
    position: fixed;
    z-index: 999;
    overflow: show;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
}

    #spinner-custom:before {
        content: '';
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.5);
    }

    #spinner-custom:not(:required) {
        font: 0/0 a;
        color: transparent;
        text-shadow: none;
        background-color: transparent;
        border: 0;
    }

        #spinner-custom:not(:required):after {
            content: '';
            display: block;
            font-size: 10px;
            width: 50px;
            height: 50px;
            margin: 1px auto;
            border-radius: 50%;
            border: 5px solid #fff;
            border-top: 5px solid #ffd102;
            animation: spin 1s infinite linear;
        }


/* Cambiamos el color de la clase .active en todo el proyecto */
.active,
.dropdown-item.active,
.dropdown-item:active,
.list-group-item.active {
    background-color: #3D3D35 !important; /* Tu gris oscuro */
    border-color: #3D3D35 !important;
    color: #ffffff !important; /* Texto siempre blanco */
}

/* Específicamente para el hover de los dropdowns (incluyendo el buscador) */
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #414141 !important; /* Gris muy claro para el paso del mouse */
    color: #ffffff !important;
}

/* Cambiamos el comportamiento de enfoque de todos los componentes de Bootstrap */
.form-control:focus,
.form-select:focus,
.btn:focus,
.dropdown-toggle:focus {
    border-color: #ffd102 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 209, 2, 0.25) !important;
}


@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 576px) {
    .form-control-custom {
        padding: 1rem;
    }

    .navbar-nav > li > a {
        padding: 15px;
        font-size: 1.2rem;
    }
}