.header-catalogo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.menu-container {
    position: relative;
    z-index: 20;
}

.catalogo-button {
    padding: 8px 16px;
    background: var(--color-main);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.catalogo-button:hover {
    background: var(--color-main-dark);
}

.menu-button {
    padding: 10px 20px;
    font-size: 16px;
    color: #ffffff;
    background-color: #000000;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.menu-button:hover {
    background-color: #333333;
}

.menu-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #b8b8b8;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    list-style-type: none;
    padding: 0;
    margin: 0;
    border-radius: 4px;
    width: 200px;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.menu-list li {
    border-bottom: none;
    position: relative;
    width: 200px;
}

.menu-list li button {
    display: block;
    width: 100%;
    border: none;
    margin: auto;
    text-align: center;
    background-color: transparent;
    padding: 10px 20px;
    color: #000000;
    text-decoration: none;
}

.menu-list li button:hover {
    background-color: #cccccc;
    color: #000000;
    font-weight: bold;
    cursor: pointer;
}

.menu-list.show-menu {
    display: block;
    visibility: visible;
    opacity: 1;
}

.submenu-list {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #b8b8b8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.menu-list li:hover .submenu-list {
    display: block;
}

/* Svg viewer */

/* Estilos para la tabla CSV */
#csv-container {
    max-width: 1300px !important;
    margin: auto;
    padding-bottom: 20px;
    overflow-x: auto; /* permite el scroll horizontal */
}

.csv-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
    border-radius: 10px;
    padding: 10px;
    min-width: 800px; /* asegura ancho para scroll */
}

.csv-table tr:hover td {
    background-color: #dedede;
}

.csv-table th, .csv-table td {
    padding: 10px;
    text-align: left;
    border-radius: 10px;
    background-color: #eee;
    border: none;
    height: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.csv-table th {
    background-color: #9c7801;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

.csv-table td:has(button) {
    padding: 0;
    position: relative;
}

.csv-table button {
    font-size: 16px;
    font-weight: bold;
    background-color: #ce9e00;
    border: none;
    border-radius: 10px;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.csv-table button svg {
    width: 24px;
    height: 24px;
}

.csv-table button:hover {
    background-color: #705600;
}

/* Estilos para tamaños de pantalla específicos */
@media (width < 600px) {
    .csv-table {
        & td, th {
            width: fit-content;
            max-width: 25vw;
            font-size: 12px;
        }
    }

    .csv-table th:nth-child(1),
    .csv-table td:nth-child(1),
    .csv-table th:nth-child(4),
    .csv-table td:nth-child(4) {
        width: 10%;
        max-width: 100px;
    }

    .csv-table th:nth-child(2),
    .csv-table td:nth-child(2) {
        width: 15%;
        max-width: 150px;
    }

    tr > th:nth-child(2),
    tr > td:nth-child(2) {
        display: none;
    }
}
