/**
 * Estilos para Popovers de Historia de Marcas
 * Inventario - SGB
 * Fecha: 2025-11-11
 */

/* Contenedor del popover de marca */
.sgb-marca-popover {
    width: 350px;
    max-width: 90vw;
    background: white;
    border: 2px solid #667eea;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    padding: 10px;
    animation: sgbMarcaPopoverFadeIn 0.3s ease-out;
    font-family: 'Poppins', sans-serif;
}

/* Animación de entrada */
@keyframes sgbMarcaPopoverFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Cabecera del popover */
.sgb-marca-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 10px 10px 0 0;
    margin: -10px -10px 15px -10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Indicador visual en elementos con marca (SIN border para evitar líneas en logos) */
[data-marca-id] {
    cursor: help;
    transition: all 0.2s ease;
}

[data-marca-id]:hover {
    opacity: 0.85;
}

/* Responsive - Móviles */
@media (max-width: 768px) {
    .sgb-marca-popover {
        width: calc(100vw - 20px) !important;
        max-width: 300px !important;
        font-size: 0.9rem;
    }
    
    .sgb-marca-header {
        padding: 8px 10px !important;
    }
    
    /* Reducir padding en móviles */
    .sgb-popover-wrapper {
        margin: 0 10px;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
    .sgb-marca-popover {
        width: calc(100vw - 20px) !important;
        max-width: 280px !important;
        font-size: 0.85rem;
        padding: 8px !important;
    }
}

/* CRÍTICO: No bloquear la página */
.sgb-popover-wrapper {
    pointer-events: auto !important;
}

