
/* ========================================
   CONFIGURACIÓN GENERAL DE CCD
   ======================================== */

.main-header {
    background-color: #004379 !important;
}

.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-nav .dropdown-item {
    color: white;
}

#userNav .nav-link,
.language-toggle .dropdown-toggle {
    color: white !important;
}

table {
    width: 800px;
}


/* ========================================
   BUSCADOR DEBAJO DEL USUARIO
   ======================================== */

@media (min-width: 992px) {

    /* Organizar usuario y buscador */
    #userNav {
        display: grid !important;
        grid-template-columns: max-content;
        grid-auto-rows: min-content;
        justify-content: end !important;
        justify-items: end !important;
        row-gap: 4px;
    }

    /* Usuario en la primera fila */
    #userNav > li:not(:has(> a[href*="/search"])) {
        grid-row: 1;
        justify-self: end;
    }

    /* Buscar alineado con la flecha del usuario */
    #userNav > li:has(> a[href*="/search"]) {
        grid-row: 2;
        justify-self: end !important;
        margin-right: 8px;
    }

    /* Apariencia del buscador */
    #userNav > li:has(> a[href*="/search"]) > a {
        position: relative;
        display: inline-block;
        padding: 0 0 0 20px !important;
        font-size: 14px;
        font-weight: 500;
        color: white !important;
        text-decoration: none;
    }

    /* Lupa: círculo */
    #userNav > li:has(> a[href*="/search"]) > a::before {
        content: "";
        position: absolute;
        left: 1px;
        top: 50%;
        width: 12px;
        height: 12px;
        border: 2px solid currentColor;
        border-radius: 50%;
        transform: translateY(-65%);
    }

    /* Lupa: mango */
    #userNav > li:has(> a[href*="/search"]) > a::after {
        content: "";
        position: absolute;
        left: 12px;
        top: calc(50% + 4px);
        width: 7px;
        height: 2px;
        background-color: currentColor;
        transform: rotate(45deg);
        transform-origin: left center;
    }

    /* Efecto al pasar el ratón */
    #userNav > li:has(> a[href*="/search"]) > a:hover {
        text-decoration: underline;
    }
}
