/* Estilos para el módulo de inventario */

.table-container {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-container {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.movimiento-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

.table th {
    background-color: #f8f9fa;
}

.stock-info {
    font-size: 0.9rem;
}

.pagination .page-link {
    color: #0d6efd;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
}

/* Estilos responsive para paginación */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
        align-items: center !important;
    }
    
    .text-muted {
        text-align: center;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .pagination .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .pagination .page-item:not(:first-child):not(:last-child) {
        display: none;
    }
    
    .pagination .page-item:first-child,
    .pagination .page-item:last-child,
    .pagination .page-item.active {
        display: block;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Mejoras para tablets */
@media (min-width: 577px) and (max-width: 991px) {
    .pagination .page-link {
        padding: 0.6rem 0.8rem;
    }
    
    .d-flex.justify-content-between {
        gap: 1.5rem;
    }
}

/* Estilos para búsqueda de productos en modales */
.list-group-item {
    cursor: pointer;
    border: 1px solid #dee2e6;
    margin-bottom: 1px;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.position-relative {
    position: relative;
}

#resultados-busqueda-entrada,
#resultados-busqueda-salida,
#resultados-busqueda-ajuste {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
