.product-image-container {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
    cursor: pointer;
    flex-shrink: 0;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.2s;
    z-index: 10;
    pointer-events: auto;
}

.product-image-container:hover .camera-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.fa-camera {
    color: white;
    font-size: 1.2em;
}

.btn-pag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.2s;
}

.btn-pag:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.btn-pag.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
    cursor: default;
}

.import-step {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    min-width: 100px;
}

.loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6a0dad;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

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

/* Optimización para tablas anchas */
.table-container {
    width: 100%;
    overflow-x: auto;
    position: relative;
    border: 1px solid #eee;
    border-radius: 8px;
    background: white;
    margin-bottom: 20px;
}

.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9em;
}

.sticky-header th {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #f8f9fa;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 5px;
    font-weight: bold;
}

.sticky-col {
    position: sticky;
    left: 0;
    z-index: 10;
    background: white !important;
    border-right: 2px solid #eee !important;
}

.sticky-header th.sticky-col {
    z-index: 30;
    background: #f8f9fa !important;
}

.input-buscar {
    border-radius: 4px !important;
    border: 1px solid #eee !important;
    transition: all 0.2s;
}


.input-buscar:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1) !important;
    outline: none;
}

/* Menú de Acciones */
.actions-dropdown {
    position: relative;
    display: inline-block;
}

.btn-action-main {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
}

.btn-action-main:hover {
    background: #e9ecef;
    color: #2b3e50;
}

.action-menu-content {
    display: none;
    position: absolute;
    right: 0;
    bottom: 100%; /* Abrir hacia arriba */
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 8px 0;
    margin-bottom: 5px;
}

.action-menu-content a {
    color: #333;
    padding: 10px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
    transition: background 0.2s;
    text-align: left;
}

.action-menu-content a i {
    width: 18px;
    text-align: center;
    color: #666;
}

.action-menu-content a:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.action-menu-content.show {
    display: block;
    animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cargador scroll infinito */
.loader-scroll {
    font-size: 0.9em;
    color: #666;
    background: #f8f9fa;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Estilo para filas seleccionadas */
.fila-producto.selected {
    background-color: #f0f7ff !important;
}

/* Animación barra masiva */
#bulkActionsBar {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
