* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style: none;
}

table {
    border-collapse: collapse;
    font-family: sans-serif;
    font-weight: 500;
}

th,
td {
    border: 2px solid #000;
    padding: 4px;
    text-align: center;
}

th {
    background-color: #f2f2f2;
}

#preview {
    overflow-x: auto;
    margin: 1rem 1rem 0 1rem;
}

#preview table {
    width: 100%;
    white-space: normal;
    /* Evitar el salto de línea de las celdas */
}

@media only screen and (max-width: 600px) {
    #preview table {
        width: auto;
        white-space: nowrap;
        /* Permitir el salto de línea de las celdas */
    }
}

#searchContainer {
    margin-top: 1rem;
    display: flex;
    position: relative;
    align-items: start;
}

#searchInput {
    position: absolute;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 350px;
    margin-left: 1rem;
}

#searchInput::placeholder {
    color: #000;
}

#searchInput:focus {
    border-color: dodgerblue;
}

#clearButton {
    position: absolute;
    background-color: transparent;
    border: none;
    color: #ff0000;
    font-size: 18px;
    cursor: pointer;
    outline: none;
    margin-left: 340px;
    margin-top: 5px;
}

#clearButton:hover {
    color: #860000;
}

#autocompleteList {
    list-style: none;
    padding: 0;
    margin-left: 1rem; 
    margin-top: 2.5rem;
}

#autocompleteList li {
    padding: 8px;
    cursor: pointer;
    width: 22rem;
}

#autocompleteList li:hover {
    background-color: lightgray;
}

/* Estilos para el botón de "Filtros" */
#filterButton {
    padding: 8px 16px;
    font-size: 16px;
    background-color: #ff7c1e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 1rem;
}

#filterButton:hover {
    background-color: #d67632;
}

/* Estilos para el contenedor de filtros */
#filtersContainer {
    margin-left: 1rem;
}

#filtersContainer select {
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 140px;
}

#downloadButton {
    padding: 8px 16px;
    font-size: 16px;
    background-color: dodgerblue;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 1rem;
}

#downloadButton:hover {
    background-color: royalblue;
}

#discountButton {
    padding: 8px 16px;
    font-size: 16px;
    background-color: #52fdb3;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 1rem;
}

#discountButton:hover {
    background-color: #41c78d;
}

/* Estilos para el indicador de carga */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#showHiddenRowsButtonContainer {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #785a5a;
    border-left: 2px solid #785a5a;
    border-right: 2px solid #785a5a;
    margin-inline: 1rem;
    margin-bottom: 1rem;
}

#showHiddenRowsButton {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    margin-top: 1rem;
}

#showHiddenRowsButton:hover {
    background-color: #45a049;
}

#showHiddenRowsButton {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.rainbow-text-inverse {
    background-image: linear-gradient(to right, violet, indigo, blue, green, orange, red);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow-animation-inverse 10s infinite linear;
    background-size: 200% 100%;
}

@keyframes rainbow-animation-inverse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

#content {
    display: none;
    /* Oculta el contenido hasta que se cargue */
}

.titulo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rainbow-text {
    background-image: linear-gradient(to left, violet, indigo, blue, green, orange, red);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow-animation 10s infinite linear;
    background-size: 200% 100%;
}

@keyframes rainbow-animation {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 200% 0;
    }
}