﻿/* ------------------------------------------------------------------------- CONTENEDOR BASE / PUNTERO / CABECERA */
.contenedor-base-shadow {
    position: relative;
    background-color: #fff;
    border-radius: .2rem;
    box-shadow: 0 0 4px rgba(0, 0, 0, .25);
}

.pointer {
    cursor: pointer;
}

.cabecera {
    border-bottom: 1px solid #dee2e6;
    padding: 0 1rem;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    min-height: 60px;
    color: #495057;
    font-family: Poppins;
    letter-spacing: .5px;
}

    .cabecera .material-symbols-outlined {
        margin-right: 8px;
        font-size: 29px;
        color: #b1b1b1;
    }

/* ----------------------------------------------------------------------------- ANIMACIONES */
@keyframes entrada-suave {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animacion-entrada {
    animation: entrada-suave 0.3s ease-out;
}

.destello {
    background-color: #fff3cd !important; /* amarillo suave tipo alerta Bootstrap */
    transition: background-color 1s ease;
}

.hover:hover {
    background-color: #f6f6f7;
}

/* ------------------------------------------------------------------------- BORDES */
.border-purple {
    position: relative;
}

    .border-purple::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 6px;
        background-color: #997ceb;
    }

.border-dashed {
    border-style: dashed !important;
}

/* ------------------------------------------------------------------------- BOTONES */
button {
    letter-spacing: .5px;
    font-family: Poppins;
    white-space: nowrap;
}

.boton-azul {
    font-weight: 500;
    padding: .25rem .75rem;
    color: #fff;
    background-color: #3b71ca;
    box-shadow: 0 4px 9px -4px rgb(56, 107, 192);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

    .boton-azul:hover,
    .boton-azul:focus {
        background-color: rgb(56, 107, 192);
        color: #fff;
        box-shadow: 0 8px 9px -4px rgba(56, 107, 192, 0.3), 0 4px 18px 0 rgba(56, 107, 192, 0.2);
    }

    .boton-azul:active {
        background-color: rgb(53, 102, 182);
        color: #fff;
        box-shadow: 0 8px 9px -4px rgba(53, 102, 182, 0.3), 0 4px 18px 0 rgba(53, 102, 182, 0.2);
    }

    .boton-azul:disabled {
        background-color: #b5c6e0;
        box-shadow: none;
    }

.boton-gris {
    font-weight: 600;
    padding: .25rem .75rem;
    background-color: rgb(226, 234, 247);
    color: rgb(41, 79, 141);
    border: none;
    transition: background-color 0.2s ease;
}

    .boton-gris:hover,
    .boton-gris:focus,
    .boton-gris:active {
        background-color: rgb(214, 222, 235);
        color: rgb(41, 79, 141);
        box-shadow: none;
    }

.boton-rojo {
    font-weight: 500;
    padding: .25rem .75rem;
    background-color: #dc4c64;
    color: #fff;
    box-shadow: 0 4px 9px -4px rgb(209, 72.2, 95);
    border: none;
    transition: background-color 0.3s, box-shadow 0.3s;
}

    .boton-rojo:hover {
        background-color: rgb(209, 72.2, 95);
        color: #fff;
        box-shadow: 0 8px 9px -4px rgba(209, 72.2, 95, 0.3), 0 4px 18px 0 rgba(209, 72.2, 95, 0.2);
    }

    .boton-rojo:focus {
        background-color: rgb(209, 72.2, 95);
        color: #fff;
        outline: none;
    }

    .boton-rojo:active {
        background-color: rgb(198, 68.4, 90);
        color: #fff;
    }

    .boton-rojo:active,
    .boton-rojo:focus {
        box-shadow: 0 8px 9px -4px rgba(209, 72.2, 95, 0.3), 0 4px 18px 0 rgba(209, 72.2, 95, 0.2);
    }

/* ------------------------------------------------------------------------- NAV */
.menu-nav {
    border-bottom: 1px solid rgba(0,0,0,.2);
    position: sticky;
    top: 60px;
    z-index: 999;
    background-color: white;
    box-shadow: 0 2px 2px -2px rgba(0, 0, 0, .3);
    display: flex;
    flex-wrap: nowrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.menu-nav-link {
    display: block;
    padding: 0 16px;
    height: 45px;
    align-content: center;
    font-size: 15px;
    font-weight: 600;
    color: #6c757d;
    position: relative;
    user-select: none;
    transition: .2s all;
    cursor: pointer;
}

    .menu-nav-link.active {
        color: #1a73e8;
    }

        .menu-nav-link.active::after {
            content: '';
            position: absolute;
            left: 16px;
            bottom: -1px;
            width: calc(100% - 32px);
            height: 4px;
            background-color: #1a73e8;
            border-radius: 5rem 5rem 0 0;
        }

    .menu-nav-link:hover {
        background-color: #f2f2f2;
    }

/* ------------------------------------------------------------------------- INPUTS Y SELECTS */
Chrome, Safari, Edge, Opera
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

Firefox
input[type=number] {
    -moz-appearance: textfield;
}

.input-wrapper {
    display: flex;
    gap: 4px;
    align-items: center;
}

    .input-wrapper .input-label {
        text-align: end;
    }

input:focus {
    outline: 0 !important;
}

.input-label {
    font-weight: 600;
    font-size: 13px;
    color: #6B7280;
    display: inline-block;
    margin-bottom: 4px;
}

    .input-label.min-100 {
        min-width: 100px;
    }

    .input-label.min-150 {
        min-width: 150px;
    }

    .input-label.min-200 {
        min-width: 200px;
    }

    .input-label.min-250 {
        min-width: 250px;
    }

    .input-label.min-300 {
        min-width: 300px;
    }

.form-input {
    width: 100%;
    border-radius: .2rem;
    border: 1px solid #cacaca;
    padding: .5rem .9rem;
    box-shadow: none !important;
    font-weight: 500;
}

    .form-input[type='date'] {
        cursor: pointer;
    }

select:focus, select:focus-visible, input:focus, input:focus-visible, textarea:focus, textarea:focus-visible {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 5px #3b82f6 !important;
    background-color: #FFF;
}

input::placeholder, textarea::placeholder {
    color: #b1b1b1 !important;
    font-weight: 400 !important;
    font-size: 13px;
}

input[type="radio"], input[type="checkbox"] {
    transform: scale(1.4);
    box-shadow: none !important;
    cursor: pointer;
}


/* ------------------------------------------------------------------------- ASIDES */
.aside-blue {
    background-color: #e8f0fe;
    color: #303f9f;
}

.aside-yellow {
    background-color: #fff3cd;
    color: #664d03;
}


/* ------------------------------------------------------------------------- DROPDOWN */
.dropdown {
    border-radius: 50%;
    padding: 4px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .3s ease;
}

    .dropdown:hover {
        background-color: #efefef;
    }


/* ------------------------------------------------------------------------- TABLAS */
th {
    font-family: Poppins;
    font-size: 13px;
    color: #948a99;
}

.table-hover > tbody > tr:hover {
    --bs-table-hover-bg: #f6f6f7;
}

.tabla-sticky th:first-child,
.tabla-sticky td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
}

.tabla-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 3; /* más alto que las celdas */
    background-color: #f8f9fa; /* igual que .table-light */
    border: none !important;
    box-shadow: inset 0 1px #dee2e6, inset 0 -1px #dee2e6;
}

    .tabla-sticky thead th:first-child {
        z-index: 4;
        box-shadow: inset 0 1px #dee2e6, inset 0 -1px #dee2e6, inset -1px 0 #dee2e6;
    }

.tabla-sticky tbody td:first-child {
    background-color: #f8f9fa;
    box-shadow: inset -1px 0 #dee2e6;
}

/* ------------------------------------------------------------------------- DIVS */
.div-purple {
    background-color: #997ceb;
    color: #fff;
}

.div-yellow {
    background-color: #F59E0B;
    color: #fff;
}

.br-2 {
    border-radius: .2rem;
}

.bc-1 {
    border: 1px solid rgba(0,0,0,.1);
}

.bc-2 {
    border: 1px solid rgba(0,0,0,.2);
}

.bg-light {
    background-color: #f7f9fd;
}

.p-6 {
    padding: 6px;
}

.info {
    margin-top: 8px;
    padding: 4px 0 4px 16px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 400;
    color: #878a99;
    position: relative;
}

    .info::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 4px;
        background-color: #cccccc;
        border-radius: 4px;
    }

.w-1024 {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

/* ------------------------------------------------------------------------- COLOR TEXTO */
.texto-gris {
    color: #6c757d;
}

.texto-muted {
    color: #b1b1b1;
}

.texto-azul {
    color: #3a8ace;
}

.texto-azul-oscuro {
    color: #405189;
}

.texto-verde {
    color: #1e8e3e;
}

.texto-rojo {
    color: #ea4335;
}

/* ------------------------------------------------------------------------- TEXTO */
.ls-1 {
    letter-spacing: 1px;
}

.fs-12 {
    font-size: 12px;
}

.fs-13 {
    font-size: 13px;
}

.fs-14 {
    font-size: 14px;
}

.fs-15 {
    font-size: 15px;
}

.fs-16 {
    font-size: 16px;
}

.fs-17 {
    font-size: 17px;
}

.fs-18 {
    font-size: 18px;
}

.fs-20 {
    font-size: 20px;
}

.lh-2 {
    line-height: 1.2;
}

.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

.text-ellipsis {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.f-poppins {
    font-family: Poppins;
}

.text-muted {
    color: #878a99 !important;
}

@media only screen and (max-width:991px) {
    .menu-nav {
        height: unset !important;
    }

        .menu-nav.top-51 {
            top: 51px;
        }
}

@media only screen and (max-width:575px) {
    .input-wrapper {
        flex-direction: column;
        gap: 0px;
        align-items: start;
    }

        .input-wrapper .input-label {
            text-align: start;
            min-width: fit-content;
        }
}
