
.table-title {
    color: #fff;
    background: var(--color-title-table); /*banner titulo de productos*/
    padding: 8px;
    border-radius: 3px 3px 0 0;
}
/* .table-container {
    flex-grow: 1; 
    max-height: calc(80vh - 2rem); 
    overflow-y: auto; 
    border: 1px solid #ddd;
    position: relative;
    min-height: 250px;
} */

/* Estilos base (para todas las pantallas) */
.table-container {
    flex-grow: 1;
    max-height: calc(95vh - 2rem);
    overflow-y: auto;
    border: 1px solid #ddd;
    position: relative;
    min-height: 250px;
    width: 100%;
}

/* Laptops pequeñas (ej. 14" con resolución 1366x768 o similares) */
@media (max-width: 1366px) {
    .table-container {
        max-height: calc(87vh - 2rem); /* Ajuste ligero */
    }
}

/* Tablets grandes / Laptops muy pequeñas (ej. 1024px) */
@media (max-width: 1024px) {
    .table-container {
        max-height: calc(95vh - 2rem);
    }
}


.sticky-header {
    position: sticky;
    top: 0;
    color: white;
    z-index: 1;
}
.custom-close-btn {
    background-color: white; /* Sin fondo */
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    width:40px;
    height:40px;
    border-radius:5px;
}


.sticky-column {
    width:6%;
    position: sticky;
    right: 0;
    background: white;
    z-index: 1;
    text-align: right; /* Alinea el texto a la derecha */
    padding-right: 10px; /* Opcional: Agrega un poco de espacio a la derecha */
}

@media (max-width: 576px) {
    .sticky-column {
        position: sticky;
    }
    
table td,
table th {
    min-width: 40px;
    white-space: wrap;
}

table td input {
    min-width: 100px;
}
    
}


/* Contenedor principal de la fila */
.fila-productos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem; /* como gap-2 */
}

/* Agrupa input y botones, con margen entre ellos */
.acciones-productos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Input que crece */
.input-buscador {
    flex-grow: 1;
    margin-right: 0;
}

@media (min-width: 576px) {
    .input-buscador {
        margin-right: 0.5rem; /* equivalente a me-sm-2 */
    }
}

/* Botón con ícono + texto oculto en móvil */
.boton-icono {
    display: flex;
    align-items: center;
}

.boton-icono span {
    display: none;
}

@media (min-width: 576px) {
    .boton-icono span {
        display: inline;
        margin-left: 0.25rem; /* ms-1 */
    }
}

/* Botón que se empuja a la derecha solo en sm+ */
.push-right-sm {
    margin-left: auto;
}

@media (max-width: 575.98px) {
    .push-right-sm {
        margin-left: 0;
    }
}

@media (max-width: 575.98px) {
    h2 {
        margin-bottom: 0.75rem;
    }
}