/* =========================================================
   SISTEMA DE CATÁLOGO DE MERCHANDISING CORPORATIVO - ERP 3.0
   ESTILOS PREMIUM & DISEÑO MODERNO
   ========================================================= */

:root {
    --brand-primary: #f97316;          /* Naranja Corporativo Principal */
    --brand-primary-hover: #ea580c;    /* Naranja Hover */
    --brand-primary-light: #fff7ed;    /* Naranja Fondo Suave */
    --brand-secondary: #0f172a;        /* Slate 900 */
    --brand-secondary-light: #1e293b;  /* Slate 800 */
    --brand-surface: #ffffff;
    --brand-bg: #f8fafc;               /* Slate 50 */
    --brand-border: #e2e8f0;           /* Slate 200 */
    --brand-text-main: #0f172a;        /* Slate 900 */
    --brand-text-muted: #64748b;       /* Slate 500 */
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    
    --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
    --shadow-card: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
    --shadow-float: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--brand-bg);
    color: var(--brand-text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   NAVBAR & HEADER
   ========================================================= */

.navbar-custom {
    background: linear-gradient(180deg, #0f172a 0%, #111c33 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border-bottom: 2px solid var(--brand-primary);
    padding: 10px 0 !important;
    min-height: 64px;
    z-index: 1060 !important;
    overflow: visible !important;
}

.navbar-custom .navbar-collapse {
    overflow: visible !important;
}

.navbar-custom .dropdown-menu {
    z-index: 1070 !important;
    min-width: 210px;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25), 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    margin-top: 8px !important;
}

.brand-icon-box {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    line-height: 1.1;
    display: block;
}

.brand-subtitle {
    font-size: 0.72rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.btn-nav-action {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 12px;
    transition: all 0.2s ease;
}

.btn-nav-action:hover {
    background-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-nav-secondary {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-nav-secondary:hover {
    background-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.btn-nav-info {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #38bdf8;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-nav-info:hover {
    background: rgba(14, 165, 233, 0.28);
    color: #ffffff;
}

.btn-nav-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-nav-success:hover {
    background: rgba(34, 197, 94, 0.28);
    color: #ffffff;
}

.btn-nav-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-nav-primary:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.45);
}

.btn-user-chip {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    padding: 4px 10px 4px 5px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-user-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.user-avatar-circle {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f97316 0%, #d97706 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   TARJETAS KPI - DASHBOARD EJECUTIVO
   ========================================================= */

.kpi-card-modern {
    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-card);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.kpi-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-float);
    border-color: #cbd5e1;
}

.kpi-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.25s ease;
}

.kpi-card-emerald:hover::before { background: #10b981; }
.kpi-card-blue:hover::before { background: #3b82f6; }
.kpi-card-rose:hover::before { background: #f43f5e; }
.kpi-card-purple:hover::before { background: #8b5cf6; }
.kpi-card-amber:hover::before { background: #f59e0b; }
.kpi-card-indigo:hover::before { background: #6366f1; }
.kpi-card-cyan:hover::before { background: #06b6d4; }

.kpi-icon-modern {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.kpi-icon-emerald {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.kpi-icon-blue {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.kpi-icon-rose {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
}

.kpi-icon-purple {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}

.kpi-icon-amber {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.kpi-icon-indigo {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}

.kpi-icon-cyan {
    background: #ecfeff;
    color: #0891b2;
    border: 1px solid #a5f3fc;
}

.text-amber { color: #d97706 !important; }
.text-indigo { color: #4f46e5 !important; }
.text-cyan { color: #0891b2 !important; }

.kpi-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-text-muted);
    margin-bottom: 2px;
}

.kpi-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-text-main);
    line-height: 1.15;
    letter-spacing: -0.5px;
}

/* =========================================================
   BARRA DE CONTROLES & FILTROS UNIFICADA
   ========================================================= */

.filter-card {
    position: -webkit-sticky;
    position: sticky;
    top: 64px;
    z-index: 1030;
    background: #ffffff !important;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.2s ease;
}

.filter-label {
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #475569;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-input-group .input-group-text {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--brand-primary);
    font-size: 0.9rem;
}

.filter-control {
    border-color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.filter-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.currency-toggle-box {
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
    display: inline-flex;
    border: 1px solid #e2e8f0;
}

.currency-toggle-box .btn {
    border: none;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

/* =========================================================
   TABLA PRINCIPAL DE CATÁLOGO
   ========================================================= */

.catalog-table-container {
    overflow: visible;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--brand-border);
}

.table-catalog {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.87rem;
}

.table-catalog thead th {
    position: -webkit-sticky;
    position: sticky;
    top: 154px;
    z-index: 1020;
    background: #0f172a !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.5px;
    padding: 13px 8px !important;
    border: none !important;
    border-bottom: 2px solid var(--brand-primary) !important;
    vertical-align: middle !important;
    text-align: center !important;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.table-catalog tbody tr {
    transition: background-color 0.15s ease;
}

.table-catalog tbody tr:hover {
    background-color: #f8fafc !important;
}

.table-catalog tbody td {
    padding: 10px 8px !important;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    border-left: none;
    border-right: none;
}

/* Badges y Pills de Tabla */
.correl-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 700;
    font-size: 0.78rem;
    font-family: 'Inter', monospace;
}

.code-chip {
    font-family: 'Inter', monospace;
    font-size: 0.86rem;
    font-weight: 700;
    background: #f8fafc;
    color: #0f172a;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    display: inline-block;
    letter-spacing: 0.3px;
}

.provider-chip {
    font-size: 0.78rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #334155;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
}

.prod-thumb-box {
    width: 95px;
    height: 95px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    padding: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prod-thumb-box:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-color: var(--brand-primary);
}

.prod-thumb-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.category-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-block;
}

.provider-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-block;
}

/* Color & Stock Swatches */
.color-pill {
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.08);
}

.stock-pill {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    font-family: 'Inter', sans-serif;
}

.stock-pill-low {
    background: #fff1f2;
    color: #e11d48;
    border-color: #fecdd3;
}

.price-pill-tier {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.2px;
}

.desc-text-clean {
    font-size: 0.76rem;
    line-height: 1.4;
    color: #475569;
    max-width: 260px;
}

/* Botones de Acción en Fila */
.btn-action-edit {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.btn-action-edit:hover {
    background-color: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
}

.btn-action-delete {
    background-color: #fff1f2;
    border: 1px solid #fecdd3;
    color: #e11d48;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.btn-action-delete:hover {
    background-color: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
}

/* =========================================================
   PUBLIC CATALOG ADVANCED FEATURES (POINTS 2.1 - 2.5)
   ========================================================= */

/* 2.1 Floating Quote Cart FAB */
.quote-cart-fab {
    position: fixed;
    bottom: 88px;
    right: 24px;
    z-index: 1050;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.45);
    border: 3px solid #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quote-cart-fab:hover {
    transform: scale(1.08) rotate(4deg);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.6);
    color: #ffffff;
}

.quote-cart-fab .cart-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #0f172a;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 20px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 2.2 Live Logo Mockup Overlay */
.mockup-logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
    transition: all 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.mockup-logo-overlay img {
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.mockup-size-sm { width: 22% !important; }
.mockup-size-md { width: 34% !important; }
.mockup-size-lg { width: 48% !important; }

.mockup-pos-top { top: 32% !important; }
.mockup-pos-center { top: 50% !important; }
.mockup-pos-bottom { top: 68% !important; }

/* 2.3 Budget / Price Filter Chips */
.budget-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.budget-chip {
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 20px;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.budget-chip:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.budget-chip.active {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

/* 2.4 Grid / Table View Switcher */
.view-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    transition: all 0.15s ease;
}

.view-btn.active {
    background-color: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* 2.5 Lightbox Zoom Overlay */
.lightbox-preview-img {
    max-height: 70vh;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-thumbnail {
    width: 65px;
    height: 65px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    object-fit: cover;
    transition: all 0.2s;
}

.gallery-thumbnail:hover, .gallery-thumbnail.active {
    border-color: #f97316;
    transform: scale(1.05);
}

/* =========================================================
   MODALES
   ========================================================= */

/* Quitar fondo negro transparente de los modales */
.modal-backdrop {
    display: none !important;
    background: transparent !important;
    opacity: 0 !important;
}

.modal {
    background: transparent !important;
}

.modal-content {
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.35), 0 10px 15px -5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border-bottom: 2px solid var(--brand-primary) !important;
    color: #ffffff !important;
    padding: 16px 22px;
}

.modal-header .modal-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

.modal-dialog-scrollable {
    height: calc(100vh - 8.5rem);
    max-height: calc(100vh - 8.5rem);
    margin-top: 6.5rem !important;
    margin-bottom: 2rem !important;
}

@media (max-width: 768px) {
    .modal-dialog-scrollable {
        height: calc(100vh - 6.5rem);
        max-height: calc(100vh - 6.5rem);
        margin-top: 5rem !important;
        margin-bottom: 1.5rem !important;
    }
}

.modal-dialog-scrollable .modal-content {
    max-height: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer {
    flex-shrink: 0 !important;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto !important;
    flex: 1 1 auto !important;
}

@media (min-width: 992px) {
    .modal-xl {
        --bs-modal-width: 95vw;
        max-width: 1350px !important;
        width: 95% !important;
    }
}

/* =========================================================
   UTILIDADES Y MARCA
   ========================================================= */

.text-orange {
    color: #f97316 !important;
}

.bg-orange {
    background-color: #f97316 !important;
}

.btn-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border: none;
    font-weight: 700;
}

.btn-orange:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff;
}

/* =========================================================
   MAIN SCREEN IMPROVEMENTS (BULK, SEMAPHORES)
   ========================================================= */

/* Bulk Action Floating Bar */
.bulk-floating-bar {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1060;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 2px solid #f97316;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideUpFade 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translate(-50%, 30px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* 3. Inline Stock Quick Edit */
.stock-pill-editable {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.stock-pill-editable:hover {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border-color: #f97316 !important;
    transform: scale(1.05);
}

/* 4. Profit Semaphore Badges */
.margin-badge-high {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
    border: 1px solid #10b981 !important;
}

.margin-badge-mid {
    background-color: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #3b82f6 !important;
}

.margin-badge-low {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #ef4444 !important;
}

/* 5. Quick Hover Tooltip Thumbnail & Drag-Drop */
.prod-thumb-box {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.prod-thumb-box:hover img {
    transform: scale(1.15);
}

.prod-thumb-box.is-dragover {
    transform: scale(1.12);
    box-shadow: 0 0 0 3px #3b82f6, 0 8px 20px rgba(59, 130, 246, 0.4);
    border-color: #3b82f6 !important;
    z-index: 10;
}

.drop-overlay-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 64, 175, 0.88);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    gap: 2px;
    z-index: 20;
    pointer-events: none;
}

.prod-thumb-box.is-dragover .drop-overlay-indicator {
    display: flex;
}

/* Modal Drag & Drop Styles */
.image-dropzone {
    border: 2px dashed #94a3b8;
    background-color: #f8fafc;
    transition: all 0.25s ease;
    user-select: none;
}

.image-dropzone.is-dragover {
    border-color: #3b82f6 !important;
    background-color: #eff6ff !important;
    transform: scale(1.02);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

.extra-images-dropzone {
    border: 1.5px dashed #cbd5e1;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.extra-images-dropzone.is-dragover {
    border-color: #3b82f6 !important;
    background-color: #eff6ff !important;
}

/* Print CSS */
@media print {
    .no-print, .bulk-floating-bar {
        display: none !important;
    }
    body {
        background: #ffffff !important;
    }
    .catalog-table-container {
        box-shadow: none;
        border: 1px solid #000;
    }
}