        /* ========== ESTILOS UNIFICADOS ERP ========== */
        :root {
            --azul-profundo: #1E3A8A;
            --azul-secundario: #3B82F6;
            --gris-fondo: #F8FAFC;
            --border-color: #E2E8F0;
            --texto-claro: #64748B;
            --texto-oscuro: #1E293B;
            --success: #10B981;
            --warning: #F59E0B;
            --danger: #EF4444;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
        body { background: var(--gris-fondo); padding: 20px; overflow-x: hidden; color: var(--texto-oscuro); }

        /* Botones generales */
        .btn-modern { 
            padding: 10px 20px; 
            border-radius: 10px; 
            font-weight: 700; 
            cursor: pointer; 
            transition: all 0.2s; 
            display: inline-flex; 
            align-items: center; 
            gap: 8px; 
            justify-content: center; 
            outline: none; 
            border: 1px solid rgba(255,255,255,0.3); 
            background: rgba(255,255,255,0.1); 
            color: white; 
            backdrop-filter: blur(4px); 
        }
        .btn-modern:hover { background: rgba(255,255,255,0.2); transform: translateY(-1px); border-color: white; }
        
        .btn-primary { background: var(--azul-profundo); color: white; border: none; box-shadow: 0 4px 6px rgba(30,58,138,0.2); padding: 10px 20px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; gap: 8px;}
        .btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
        
        .btn-outline { background: white; border: 2px solid var(--border-color); color: var(--texto-oscuro); padding: 10px 20px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: 0.2s;}
        .btn-outline:hover { background: var(--gris-fondo); }

        .content-card { 
            background: white; 
            border-radius: 16px; 
            padding: 25px; 
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); 
            border: 1px solid var(--border-color); 
            animation: fadeIn 0.4s ease;
        }

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

        .filtros { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; align-items: flex-end; background: var(--gris-fondo); padding: 15px; border-radius: 12px; border: 1px solid var(--border-color); }
        .filtros-label { font-size: 0.75rem; font-weight: 700; color: var(--texto-claro); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 5px;}
        .input-modern { 
            padding: 10px 15px; 
            border: 2px solid var(--border-color); 
            border-radius: 10px; 
            outline: none; 
            transition: all 0.2s; 
            font-size: 0.9rem; 
            background: white; 
            color: var(--texto-oscuro); 
            font-weight: 500;
        }
        .input-modern:focus { border-color: var(--azul-secundario); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }

        .table-container { 
            overflow-x: auto; 
            border-radius: 12px; 
            border: 1px solid var(--border-color); 
            background: white; 
            max-height: 65vh; 
            overflow-y: auto;
        }
        table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 1200px; text-align: left; }
        th { 
            background: #F1F5F9; 
            color: var(--texto-claro); 
            padding: 15px; 
            font-weight: 800; 
            border-bottom: 2px solid var(--border-color); 
            text-transform: uppercase; 
            font-size: 0.75rem; 
            letter-spacing: 0.05em; 
            position: sticky; 
            top: 0; 
            z-index: 10;
        }
        th.sortable:hover { background: #e2e8f0; cursor: pointer; color: var(--azul-profundo); }
        
        td { padding: 12px 15px; border-bottom: 1px solid #F1F5F9; vertical-align: middle; color: var(--texto-oscuro); font-weight: 500; }
        tr:hover td { background: #F8FAFC; }
        
        .row-checkbox { width: 18px; height: 18px; cursor: pointer; accent-color: var(--azul-profundo); }
        tr.selected td { background: #eff6ff; border-bottom-color: #dbeafe; }

        .badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid transparent; }
        
        .avatar { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; background: var(--border-color); display: flex; align-items: center; justify-content: center; font-weight: bold; color: var(--azul-profundo); border: 2px solid white; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
        
        .insignia-prog { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid #e2e8f0; vertical-align: middle; background: white; }
        .logo-unidad-mini { width: 32px; height: 32px; object-fit: contain; vertical-align: middle; }

        .toast-container { position: fixed; bottom: 25px; right: 25px; z-index: 3000; display: flex; flex-direction: column; gap: 12px; }
        .toast { background: white; border-left: 5px solid var(--success); padding: 16px 24px; border-radius: 12px; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 15px; animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; font-size: 0.95rem; font-weight: 600; color: var(--texto-oscuro);}

        .modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(14, 37, 134, 0.6); z-index: 2000; justify-content: center; align-items: center; backdrop-filter: blur(4px); padding: 20px; }
        .modal-overlay.active { display: flex; }
        .modal-box { background: white; padding: 30px; border-radius: 16px; width: 100%; max-width: 500px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }

        .text-oro { color: #d4af37; }
        .text-plata { color: #94a3b8; }
        .text-bronce { color: #cd7f32; }

        @media print {
            .no-print { display: none !important; }
            .table-container { max-height: none !important; border: none; overflow: visible; }
            table { width: 100%; border: 1px solid #ccc; font-size: 10px; min-width: 100%; }
            th { position: static; background: #eee !important; color: black !important; padding: 8px; border: 1px solid #ccc; }
            td { padding: 6px; border: 1px solid #ccc; }
            tr.not-selected-for-print { display: none !important; }
        }
