﻿/* From uiverse.io by @satyamchaudharydev */
/* removing default style of button */
. /* From uiverse.io by @satyamchaudharydev */
/* removing default style of button */

.form button svg {
    display: block;
    margin: 0;
    vertical-align: middle;
}


.form button {
    border: none;
    background: none;
    color: #8b8ba7;
}
/* styling of whole input container */
.form {
    --timing: 0.3s;
    --width-of-input: 450px;
    --height-of-input: 45px;
    --border-height: 2px;
    --input-bg: #fff;
    --border-color: #7B1A1A;
    --border-radius: 50px;
    --after-border-radius: 1px;
    position: relative;
    /*width: var(--width-of-input);*/
    max-width: 90%;
    /*width: 100%;*/
    height: var(--height-of-input);
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre elementos */
    padding-inline: 0.8em;
    border-radius: var(--border-radius);
    transition: border-radius 0.5s ease;
    background: var(--input-bg,#fff);
    margin: 0 auto;
    border: .15rem solid #EBEBEB; /* Contorno completo */
}
/* styling of Input */
.inputBuscar {
    font-size: 0.9rem;
    background-color: transparent;
    flex: 1;
    height: 100%;
    padding-inline: 0.5em;
    padding-block: 0.7em;
    border: none;
}




.form {
    background: #fdfdfd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    border: 1px solid #e6e6e6;
    height: 50px;
}


.pagination button {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 1px solid #e5e5e5;
}

    .pagination button.active {
        background: #7B1A1A;
        color: #fff;
        font-weight: 700;
    }


/* styling of animated border */
.form:before {
    content: "";
    position: absolute;
    background: var(--border-color);
    transform: scaleX(0);
    transform-origin: center;
    width: 100%;
    height: var(--border-height);
    left: 0;
    bottom: 0;
    border-radius: 1px;
    transition: transform var(--timing) ease;
}
/* Hover on Input */
.form:focus-within {
    border-radius: var(--after-border-radius);
}

input:focus {
    outline: none;
}
/* here is code of animated border */
.form:focus-within:before {
    transform: scale(1);
}
/* styling of close button */
/* == you can click the close button to remove text == */
.reset {
    border: none;
    background: none;
    opacity: 0;
    visibility: hidden;
}
/* close button shown when typing */
input:not(:placeholder-shown) ~ .reset {
    opacity: 1;
    visibility: visible;
}
/* sizing svg icons */
.form svg {
    width: 17px;
}

.form button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}


@media (max-width: 480px) {
    .form {
        height: 40px; /* opcional: más compacto en móviles */
        padding-inline: 0.6em;
        border-radius: 30px; /* más suave en pantallas pequeñas */
    }

    .inputBuscar {
        font-size: 0.85rem;
        padding-block: 0.5em;
    }

    .form svg {
        width: 15px;
    }

}


/*Paginación hojas */


.pagination {
    display: flex;
    justify-content: center; /* ✅ Centra horizontalmente */
    align-items: center; /* ✅ Alinea verticalmente */
    gap: 8px; /* ✅ Espacio entre los botones */
    /*margin-top: 10px;*/
}


    .pagination button, .pagination span {
        background-color: white;
        color: #333;
        font-weight: 600;
        border: 0;
        border-radius: 20px;
        padding: 8px 16px;
        /*padding: 12px 20px;*/  
        font-size: 13px; /* opcional, para balance visual */
        line-height: 1; /* ✅ evita que el texto se desplace verticalmente */
        height: 40px; /* ✅ altura fija */
        display: inline-flex; /* ✅ asegura alineación vertical */
        align-items: center;
        justify-content: center;
        transition: transform .05s ease-in-out, box-shadow .2s;
        box-sizing: border-box;
        /*transition: all 0.3s ease;*/
        margin-top: 12px;
        margin-bottom: 12px;
    }

        .pagination button:hover {
            background-color: #7B1A1A;
            color: white;
            font-weight: 700;
        }

    .pagination span {
        font-weight: bold;
        background-color: #f8f9fa;
    }

.pagination-fixed {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9); /*  Fondo semitransparente */
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}




.awesomplete {
    width: 100%;
}

    .awesomplete > ul {
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
        padding: 6px 0;
        margin: 4px 0 0 0;
        border: 1px solid #e9e9e9;
        max-height: 260px;
        overflow-y: auto;
        transition: opacity 0.15s ease-in-out, transform 0.15s ease;
    }

        .awesomplete > ul[hidden] {
            display: block !important;
            opacity: 0;
            transform: translateY(-6px);
            pointer-events: none;
        }

        .awesomplete > ul > li {
            padding: 10px 16px;
            font-size: 14px;
            color: #333;
            cursor: pointer;
            display: flex;
            align-items: center;
            transition: background 0.12s ease, padding-left 0.12s;
            border-bottom: 1px solid #f2f2f2;
        }

            .awesomplete > ul > li:last-child {
                border-bottom: none;
            }

            /* Hover estilizado */
            .awesomplete > ul > li:hover {
                background: #f7f9ff;
                padding-left: 20px;
            }

            /* Selección con teclado (resaltado) */
            .awesomplete > ul > li[aria-selected="true"] {
                background: #e8f0fe;
                color: #7B1A1A;
                font-weight: 600;
            }

    /* Texto resaltado de coincidencia */
    .awesomplete mark {
        background: transparent;
        color: #7B1A1A;
        font-weight: 700;
    }
