/* Estilos específicos para la sección de marcas */
.marcas-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.marcas-table .marca-column {
    font-weight: bold;
}

.marcas-table .mejora-verde {
    color: #28a745;
}

.marcas-table .mejora-roja {
    color: #dc3545;
}

.marcas-table .marca-verde-negrita {
    color: #28a745;
    font-weight: bold;
}

/* Ajustes de columnas específicas */
.marcas-table th:nth-child(1),
.marcas-table td:nth-child(1) { /* Prueba o Fecha */
    width: 15%;
}

.marcas-table th:nth-child(2),
.marcas-table td:nth-child(2) { /* Fecha o Marca */
    width: 20%;
}

.marcas-table th:nth-child(3),
.marcas-table td:nth-child(3) { /* Marca o Mejora */
    width: 20%;
}

.marcas-table th:nth-child(4),
.marcas-table td:nth-child(4) { /* Mejora o Lugar */
    width: 15%;
}

.marcas-table th:nth-child(5),
.marcas-table td:nth-child(5) { /* Lugar o Acciones */
    width: 20%;
}

.marcas-table th:nth-child(6),
.marcas-table td:nth-child(6) { /* Acciones */
    width: 5%;
}

/* Estilos para el contenedor de la tabla */
.table-wrapper {
    margin-bottom: 20px;
}

.table-wrapper h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Estilo para los botones de filtro */
.row.mb-3 .btn {
    padding: 5px 10px;
    font-size: 14px;
}
/* Estilo para el botón de eliminar */
.marcas-table .btn-icon.delete-marca {
    color: #dc3545; /* Color rojo */
}

.marcas-table .btn-icon.delete-marca svg {
    fill: #dc3545; /* Forzar el color del ícono SVG */
}
@media (max-width: 576px) {
    .d-flex.justify-content-center {
        flex-direction: column;
        align-items: center;
    }
    .d-flex.justify-content-center .btn {
        width: 100%;
        max-width: 300px; /* Limitar el ancho máximo */
        margin-bottom: 10px; /* Espacio entre botones */
    }
    .d-flex.justify-content-center .btn:last-child {
        margin-bottom: 0;
    }
    .marcas-container {
        padding: 0;
        width: 100%;
        overflow-x: auto;
        box-sizing: border-box;
    }

    .marcas-table {
        width: auto;
        min-width: 100%;
        table-layout: auto;
    }

    .marcas-table th,
    .marcas-table td {
        padding: 2px;
        font-size: 10px;
        box-sizing: border-box;
    }

    .marcas-table th,
    .marcas-table td {
        white-space: normal;
        word-break: break-word;
    }

    .marcas-table:not(.filter-applied) th:nth-child(3),
    .marcas-table:not(.filter-applied) td:nth-child(3),
    .marcas-table:not(.filter-applied) th:nth-child(6),
    .marcas-table:not(.filter-applied) td:nth-child(6) {
        white-space: nowrap;
    }

    .marcas-table.filter-applied th:nth-child(2),
    .marcas-table.filter-applied td:nth-child(2),
    .marcas-table.filter-applied th:nth-child(5),
    .marcas-table.filter-applied td:nth-child(5) {
        white-space: nowrap;
    }

    .marcas-table:not(.filter-applied) th:nth-child(1),
    .marcas-table:not(.filter-applied) td:nth-child(1) {
        min-width: 50px;
        max-width: 80px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .marcas-table:not(.filter-applied) th:nth-child(2),
    .marcas-table:not(.filter-applied) td:nth-child(2),
    .marcas-table:not(.filter-applied) th:nth-child(3),
    .marcas-table:not(.filter-applied) td:nth-child(3),
    .marcas-table:not(.filter-applied) th:nth-child(4),
    .marcas-table:not(.filter-applied) td:nth-child(4),
    .marcas-table:not(.filter-applied) th:nth-child(6),
    .marcas-table:not(.filter-applied) td:nth-child(6) {
        min-width: 40px;
        max-width: 60px;
    }

    .marcas-table.filter-applied {
        table-layout: fixed;
        width: 100%;
    }

    .marcas-table.filter-applied th:nth-child(1),
    .marcas-table.filter-applied td:nth-child(1),
    .marcas-table.filter-applied th:nth-child(2),
    .marcas-table.filter-applied td:nth-child(2),
    .marcas-table.filter-applied th:nth-child(3),
    .marcas-table.filter-applied td:nth-child(3) {
        min-width: 40px;
        max-width: 90px;
    }

    .marcas-table:not(.filter-applied) th:nth-child(5),
    .marcas-table:not(.filter-applied) td:nth-child(5),
    .marcas-table.filter-applied th:nth-child(4),
    .marcas-table.filter-applied td:nth-child(4) {
        min-width: 60px;
        max-width: none;
        white-space: normal;
        word-break: break-word;
    }

    .marcas-table th:nth-child(6),
    .marcas-table td:nth-child(6) {
        min-width: 20px;
        padding: 2px;
    }

    .marcas-table.filter-applied th:nth-child(5),
    .marcas-table.filter-applied td:nth-child(5) {
        min-width: 16px;
        max-width: 16px;
        padding: 2px;
        width: 16px;
    }

    .marcas-table .btn-icon {
        padding: 0;
        margin: 0;
        display: inline-block;
        width: 14px;
        height: 14px;
        line-height: 14px;
        text-align: center;
    }

    .marcas-table .btn-icon svg {
        width: 12px;
        height: 12px;
        vertical-align: middle;
    }

    .table-wrapper h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .row.mb-3 .btn {
        font-size: 12px;
        padding: 4px 8px;
    }
}