    /* P12 — Design Tokens */
    :root{
      --primary:#3b82f6;--primary-glow:rgba(59,130,246,0.15);--primary-dark:#2563eb;
      --accent:#10b981;--accent-glow:rgba(16,185,129,0.15);
      --danger:#ef4444;--warning:#f59e0b;--purple:#8b5cf6;--cyan:#06b6d4;
      --surface-0:#05090f;--surface-1:#0f172a;--surface-2:#1e293b;--surface-3:#334155;
      --surface-card:rgba(15,23,42,0.6);--surface-card-hover:rgba(30,41,59,0.7);
      --text-primary:#f8fafc;--text-secondary:#e2e8f0;--text-muted:#94a3b8;--text-dim:#64748b;--text-faint:#475569;
      --border-subtle:rgba(148,163,184,0.08);--border-accent:rgba(59,130,246,0.12);
      --radius-sm:8px;--radius-md:12px;--radius-lg:14px;--radius-xl:16px;--radius-2xl:24px;
      --ease-spring:cubic-bezier(0.34,1.56,0.64,1);--ease-smooth:cubic-bezier(0.4,0,0.2,1);
      --duration-fast:0.15s;--duration-normal:0.3s;--duration-slow:0.5s
    }
    [data-theme="aurora"]{--primary:#00d4ff;--accent:#7c3aed;--primary-glow:rgba(0,212,255,0.15);--surface-0:#0d1117}
    [data-theme="imperial-gold"]{--primary:#fcd34d;--accent:#c9a227;--primary-glow:rgba(252,211,77,0.12);--surface-0:#080808;--border-accent:rgba(201,162,39,0.2)}
    [data-theme="ghost-protocol"]{--primary:#00FF41;--accent:#00E5CC;--primary-glow:rgba(0,255,65,0.1);--surface-0:#020c02;--border-accent:rgba(0,255,65,0.15)}
    [data-theme="hello-kitty"]{--primary:#e8667a;--accent:#c9967a;--primary-glow:rgba(232,102,122,0.12);--surface-0:#1a0a10;--border-accent:rgba(232,102,122,0.2)}

    *{margin:0;padding:0;box-sizing:border-box}
    body{font-family:'Inter',sans-serif;background:linear-gradient(135deg,var(--surface-1),var(--surface-2));min-height:100vh;color:var(--text-primary)}
    .login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;position:relative;overflow:hidden;background:#05090f}
    .login-blob{position:absolute;border-radius:50%;filter:blur(90px);pointer-events:none;animation:loginBlob 9s ease-in-out infinite}
    .login-blob-1{width:640px;height:640px;background:radial-gradient(circle,rgba(59,130,246,0.14),transparent 70%);top:-180px;left:-120px;animation-delay:0s}
    .login-blob-2{width:560px;height:560px;background:radial-gradient(circle,rgba(16,185,129,0.10),transparent 70%);bottom:-120px;right:-80px;animation-delay:-4.5s}
    .login-blob-3{width:400px;height:400px;background:radial-gradient(circle,rgba(99,102,241,0.08),transparent 70%);top:50%;left:50%;transform:translate(-50%,-50%);animation-delay:-2s}
    @keyframes loginBlob{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(30px,25px) scale(1.12)}}
    .login-blob-3{animation:loginBlob3 11s ease-in-out infinite}
    @keyframes loginBlob3{0%,100%{transform:translate(-50%,-50%) scale(1)}50%{transform:translate(calc(-50% + 20px),calc(-50% + 15px)) scale(1.08)}}
    .login-box{background:rgba(10,17,30,0.82);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border-radius:24px;padding:44px 40px;width:100%;max-width:400px;position:relative;z-index:1;border:1px solid rgba(59,130,246,0.12);box-shadow:0 32px 64px rgba(0,0,0,0.6),0 0 0 1px rgba(255,255,255,0.03),inset 0 1px 0 rgba(255,255,255,0.05)}
    .login-box::before{content:'';position:absolute;inset:0;border-radius:24px;padding:1px;background:linear-gradient(135deg,rgba(59,130,246,0.35) 0%,rgba(16,185,129,0.12) 50%,transparent 70%,rgba(59,130,246,0.08) 100%);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}
    .login-logo{max-width:180px;height:auto;margin:0 auto 8px;display:block;filter:drop-shadow(0 0 14px rgba(59,130,246,0.45)) drop-shadow(0 0 28px rgba(59,130,246,0.22));animation:logoPulse 3.5s ease-in-out infinite}
    @keyframes logoPulse{0%,100%{filter:drop-shadow(0 0 14px rgba(59,130,246,0.45)) drop-shadow(0 0 28px rgba(59,130,246,0.22))}50%{filter:drop-shadow(0 0 20px rgba(59,130,246,0.7)) drop-shadow(0 0 40px rgba(59,130,246,0.35))}}
    .login-title{font-size:11px;color:#334155;text-align:center;margin-bottom:28px;letter-spacing:3px;text-transform:uppercase;font-weight:600}
    .login-divider{height:1px;background:linear-gradient(90deg,transparent,rgba(59,130,246,0.25),rgba(16,185,129,0.15),transparent);margin:0 0 28px}
    .form-group{margin-bottom:16px}
    .form-label{display:block;color:#475569;font-size:10.5px;margin-bottom:7px;text-transform:uppercase;letter-spacing:0.9px;font-weight:700}
    .form-input{width:100%;padding:13px 14px;background:rgba(5,9,15,0.7);border:1px solid rgba(148,163,184,0.11);border-radius:10px;color:#f8fafc;font-size:14px;outline:none;transition:border-color 0.2s,box-shadow 0.2s,background 0.2s}
    .form-input::placeholder{color:#1e2d3d}
    .form-input:focus{border-color:rgba(59,130,246,0.55);background:rgba(5,9,15,0.9);box-shadow:0 0 0 3px rgba(59,130,246,0.09),0 0 14px rgba(59,130,246,0.07)}
    .btn-login{width:100%;padding:14px;background:linear-gradient(135deg,#2563eb 0%,#0d9488 100%);border:none;border-radius:10px;color:#fff;font-size:15px;font-weight:600;cursor:pointer;margin-top:14px;position:relative;overflow:hidden;transition:transform 0.15s,box-shadow 0.15s;box-shadow:0 4px 18px rgba(37,99,235,0.32)}
    .btn-login::after{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,0.14),transparent);opacity:0;transition:opacity 0.2s}
    .btn-login:hover{transform:translateY(-2px);box-shadow:0 8px 28px rgba(37,99,235,0.45)}
    .btn-login:hover::after{opacity:1}
    .btn-login:active{transform:translateY(0);box-shadow:0 2px 8px rgba(37,99,235,0.28)}
    .login-error{background:rgba(239,68,68,0.08);border:1px solid rgba(239,68,68,0.25);border-left:3px solid #ef4444;border-radius:8px;padding:10px 12px;margin-bottom:15px;color:#fca5a5;font-size:13px;display:none}
    .login-demo{margin-top:24px;padding:12px 14px;background:rgba(5,9,15,0.5);border:1px solid rgba(148,163,184,0.07);border-radius:10px;font-size:11px;color:#64748b}
    .login-demo strong{color:#475569;display:block;margin-bottom:6px;font-size:10px;text-transform:uppercase;letter-spacing:0.8px}
    .login-demo .blue{color:#3b82f6}
    .login-demo .green{color:#10b981}
    .app-container{display:none}
    .app-container.active{display:flex}
    .sidebar{width:240px;background:linear-gradient(180deg,#080e1a 0%,#0d1526 50%,#0f1c2e 100%);height:100vh;position:fixed;left:0;top:0;display:flex;flex-direction:column;box-shadow:inset -1px 0 0 rgba(59,130,246,0.12),4px 0 24px rgba(0,0,0,0.4),inset -2px 0 20px rgba(59,130,246,0.04)}
    .sidebar::after{content:'';position:absolute;top:0;right:0;width:1px;height:100%;background:linear-gradient(180deg,transparent 0%,rgba(59,130,246,0.3) 30%,rgba(16,185,129,0.2) 70%,transparent 100%);pointer-events:none}
    .sidebar-header{padding:18px 16px 14px;border-bottom:1px solid rgba(148,163,184,0.07);text-align:center;background:linear-gradient(180deg,rgba(59,130,246,0.06),transparent)}
    .sidebar-logo{max-width:110px;height:auto;filter:drop-shadow(0 0 8px rgba(59,130,246,0.3))}
    .sidebar-nav{flex:1;padding:10px 8px;overflow-y:auto}
    .nav-section-label{font-size:9px;font-weight:700;color:#334155;text-transform:uppercase;letter-spacing:1.2px;padding:12px 10px 4px;margin-top:4px}
    .nav-item{width:100%;display:flex;align-items:center;gap:12px;padding:10px 12px;background:transparent;border:none;border-radius:8px;cursor:pointer;margin-bottom:2px;color:#64748b;font-size:13px;text-align:left;transition:all 0.18s ease;position:relative}
    .nav-item:hover{background:rgba(59,130,246,0.08);color:#94a3b8;transform:translateX(3px)}
    .nav-item:hover i{color:#60a5fa}
    .nav-item.active{background:linear-gradient(135deg,rgba(59,130,246,0.15),rgba(16,185,129,0.08));color:#e2e8f0;box-shadow:inset 0 0 0 1px rgba(59,130,246,0.18),0 2px 8px rgba(59,130,246,0.08)}
    .nav-item.active::before{content:'';position:absolute;left:0;top:15%;height:70%;width:3px;background:linear-gradient(180deg,#3b82f6,#10b981);border-radius:0 3px 3px 0;box-shadow:0 0 8px rgba(59,130,246,0.6),0 0 16px rgba(59,130,246,0.3)}
    .nav-item i{width:20px;font-size:15px;color:#475569;transition:all 0.18s ease;text-align:center}
    .nav-item.active i{color:#60a5fa;filter:drop-shadow(0 0 4px rgba(59,130,246,0.5))}
    .nav-notif-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;background:#ef4444;color:#fff;border-radius:9px;font-size:10px;font-weight:700;margin-left:auto;padding:0 5px;box-shadow:0 0 8px rgba(239,68,68,0.5);animation:navBadgePulse 2s ease-in-out infinite}
    @keyframes navBadgePulse{0%,100%{box-shadow:0 0 6px rgba(239,68,68,0.5)}50%{box-shadow:0 0 14px rgba(239,68,68,0.8),0 0 20px rgba(239,68,68,0.4)}}
    .sidebar-footer{padding:10px 8px 12px;border-top:1px solid rgba(59,130,246,0.08);background:linear-gradient(0deg,rgba(59,130,246,0.04),transparent)}
    .user-info{display:flex;align-items:center;gap:10px;padding:10px 12px;background:rgba(15,23,42,0.6);border-radius:10px;margin-bottom:8px;border:1px solid rgba(148,163,184,0.06);transition:all 0.2s}
    .user-info:hover{background:rgba(30,41,59,0.7);border-color:rgba(59,130,246,0.15)}
    .user-avatar{width:36px;height:36px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;color:#fff;box-shadow:0 2px 8px rgba(0,0,0,0.3)}
    .user-avatar.admin{background:linear-gradient(135deg,#3b82f6,#8b5cf6)}
    .user-avatar.manager{background:linear-gradient(135deg,#f59e0b,#3b82f6)}
    .user-avatar.auditor{background:linear-gradient(135deg,#8b5cf6,#ec4899)}
    .user-avatar.formateur{background:linear-gradient(135deg,#10b981,#14b8a6)}
    .user-avatar.it{background:linear-gradient(135deg,#ef4444,#f59e0b)}
    .user-avatar.rh{background:linear-gradient(135deg,#06b6d4,#3b82f6)}
    .user-avatar.collaborateur{background:linear-gradient(135deg,#10b981,#3b82f6)}
    .user-details{flex:1;overflow:hidden}
    .user-details .name{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .user-details .role{font-size:10px;color:#64748b;text-transform:capitalize}
    .btn-logout{width:100%;display:flex;align-items:center;justify-content:center;gap:6px;padding:10px;background:rgba(239,68,68,0.1);border:1px solid rgba(239,68,68,0.2);border-radius:8px;color:#f87171;font-size:13px;cursor:pointer}
    .btn-deloguer{width:100%;display:flex;align-items:center;justify-content:center;gap:6px;padding:10px;background:linear-gradient(135deg,rgba(251,191,36,0.15),rgba(245,158,11,0.15));border:1px solid rgba(251,191,36,0.4);border-radius:8px;color:#fbbf24;font-size:13px;cursor:pointer;font-weight:600;margin-bottom:8px;transition:all 0.3s;box-shadow:0 0 12px rgba(251,191,36,0.1)}
    
    /* Pointage Temps Reel - Beautiful Styles */
    .pointage-status-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:20px;font-size:12px;font-weight:700;letter-spacing:0.3px}
    .pointage-status-pret{background:rgba(16,185,129,0.12);color:#10b981;border:1px solid rgba(16,185,129,0.25)}
    .pointage-status-pret .status-dot{width:8px;height:8px;border-radius:50%;background:#10b981;box-shadow:0 0 8px #10b981;animation:statusPulse 2s ease-in-out infinite}
    .pointage-status-absent{background:rgba(100,116,139,0.12);color:#94a3b8;border:1px solid rgba(100,116,139,0.25)}
    .pointage-status-connecte{background:rgba(59,130,246,0.12);color:#60a5fa;border:1px solid rgba(59,130,246,0.25)}
    .pointage-status-connecte .status-dot{width:8px;height:8px;border-radius:50%;background:#3b82f6}
    .pointage-status-absent .status-dot{width:8px;height:8px;border-radius:50%;background:#64748b}
    .pointage-status-pause5,.pointage-status-pause10{background:rgba(245,158,11,0.12);color:#f59e0b;border:1px solid rgba(245,158,11,0.25)}
    .pointage-status-pause5 .status-dot,.pointage-status-pause10 .status-dot{width:8px;height:8px;border-radius:50%;background:#f59e0b;box-shadow:0 0 8px #f59e0b;animation:statusPulse 1.5s ease-in-out infinite}
    .pointage-status-pauseDej{background:rgba(59,130,246,0.12);color:#3b82f6;border:1px solid rgba(59,130,246,0.25)}
    .pointage-status-pauseDej .status-dot{width:8px;height:8px;border-radius:50%;background:#3b82f6;box-shadow:0 0 8px #3b82f6;animation:statusPulse 1.5s ease-in-out infinite}
    .pointage-status-debrief{background:rgba(139,92,246,0.12);color:#8b5cf6;border:1px solid rgba(139,92,246,0.25)}
    .pointage-status-debrief .status-dot{width:8px;height:8px;border-radius:50%;background:#8b5cf6;box-shadow:0 0 8px #8b5cf6;animation:statusPulse 2s ease-in-out infinite}
    @keyframes statusPulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:0.5;transform:scale(0.8)}}
    @keyframes pauseBlink{0%,100%{opacity:1}50%{opacity:0.4}}
    .pause-timer-cell{font-family:'Courier New',monospace;font-size:14px;font-weight:700;letter-spacing:1px}
    .pause-timer-active{color:#f59e0b;animation:pauseBlink 1s ease-in-out infinite}
    .pause-timer-dej{color:#3b82f6;animation:pauseBlink 1.2s ease-in-out infinite}
    .exceeded-badge{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:12px;font-size:12px;font-weight:700;background:rgba(239,68,68,0.12);color:#ef4444;border:1px solid rgba(239,68,68,0.25);cursor:pointer;transition:all 0.2s}
    .exceeded-badge:hover{background:rgba(239,68,68,0.25);box-shadow:0 0 12px rgba(239,68,68,0.3);transform:scale(1.05)}
    .exceeded-zero{color:#64748b;font-size:13px;font-weight:500}
    .pause-count-badge{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;border-radius:8px;font-size:13px;font-weight:700;background:rgba(139,92,246,0.12);color:#a78bfa;border:1px solid rgba(139,92,246,0.2)}
    .total-pause-time{font-family:'Courier New',monospace;font-size:13px;font-weight:600;padding:4px 10px;border-radius:8px}
    .total-pause-low{background:rgba(16,185,129,0.08);color:#10b981}
    .total-pause-medium{background:rgba(245,158,11,0.08);color:#f59e0b}
    .total-pause-high{background:rgba(239,68,68,0.08);color:#ef4444}
    .exceeded-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.6);backdrop-filter:blur(4px);z-index:10000;display:flex;align-items:center;justify-content:center;animation:fadeIn 0.2s ease}
    .exceeded-modal{background:linear-gradient(135deg,#1e293b,#0f172a);border:1px solid rgba(239,68,68,0.3);border-radius:16px;padding:0;width:560px;max-width:90vw;max-height:80vh;overflow:hidden;box-shadow:0 25px 60px rgba(0,0,0,0.5),0 0 30px rgba(239,68,68,0.1);animation:slideUp 0.3s ease}
    @keyframes slideUp{from{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}
    @keyframes fadeIn{from{opacity:0}to{opacity:1}}
    .exceeded-modal-header{padding:20px 24px;background:linear-gradient(135deg,rgba(239,68,68,0.15),rgba(239,68,68,0.05));border-bottom:1px solid rgba(239,68,68,0.2);display:flex;align-items:center;justify-content:space-between}
    .exceeded-modal-header h3{margin:0;font-size:16px;color:#f87171;display:flex;align-items:center;gap:10px}
    .exceeded-modal-close{background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.1);color:#94a3b8;width:32px;height:32px;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px;transition:all 0.2s}
    .exceeded-modal-close:hover{background:rgba(239,68,68,0.2);color:#f87171;border-color:rgba(239,68,68,0.3)}
    .exceeded-modal-body{padding:16px 24px;overflow-y:auto;max-height:60vh}
    .exceeded-pause-card{background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.06);border-radius:12px;padding:14px 18px;margin-bottom:10px;transition:all 0.2s}
    .exceeded-pause-card:hover{background:rgba(255,255,255,0.06);border-color:rgba(255,255,255,0.1)}
    .exceeded-pause-card.is-exceeded{border-left:3px solid #ef4444;background:rgba(239,68,68,0.04)}
    .exceeded-pause-card.is-ok{border-left:3px solid #10b981;background:rgba(16,185,129,0.04)}
    .pause-card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
    .pause-card-type{font-size:13px;font-weight:700;display:flex;align-items:center;gap:8px}
    .pause-card-type.pause5{color:#f59e0b}
    .pause-card-type.pause10{color:#f59e0b}
    .pause-card-type.pauseDej{color:#3b82f6}
    .pause-card-type.debrief{color:#8b5cf6}
    .pause-card-time{font-size:11px;color:#64748b;font-family:'Courier New',monospace}
    .pause-card-details{display:flex;gap:20px;align-items:center}
    .pause-detail-item{display:flex;flex-direction:column;gap:2px}
    .pause-detail-label{font-size:10px;color:#64748b;text-transform:uppercase;letter-spacing:0.5px}
    .pause-detail-value{font-size:14px;font-weight:700;font-family:'Courier New',monospace}
    .pause-detail-value.exceeded-val{color:#ef4444}
    .pause-detail-value.ok-val{color:#10b981}
    .pause-progress-bar{height:4px;border-radius:2px;background:rgba(255,255,255,0.06);margin-top:10px;overflow:hidden;position:relative}
    .pause-progress-fill{height:100%;border-radius:2px;transition:width 0.3s ease}
    .pause-progress-fill.ok{background:linear-gradient(90deg,#10b981,#34d399)}
    .pause-progress-fill.exceeded{background:linear-gradient(90deg,#f59e0b,#ef4444)}
    .exceeded-summary{display:flex;gap:16px;padding:16px 24px;background:rgba(255,255,255,0.02);border-top:1px solid rgba(255,255,255,0.06)}
    .exceeded-summary-item{flex:1;text-align:center;padding:10px;border-radius:10px;background:rgba(255,255,255,0.03)}
    .exceeded-summary-number{font-size:22px;font-weight:800;font-family:'Courier New',monospace}
    .exceeded-summary-label{font-size:10px;color:#64748b;text-transform:uppercase;letter-spacing:0.5px;margin-top:2px}
    
    /* Ticket IT System Styles */
    .ticket-card{background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.06);border-radius:12px;padding:16px;margin-bottom:12px;transition:all 0.2s}
    .ticket-card:hover{background:rgba(255,255,255,0.06);border-color:rgba(255,255,255,0.12)}
    .ticket-urgency-critique{border-left:4px solid #ef4444}
    .ticket-urgency-moyen{border-left:4px solid #f59e0b}
    .ticket-urgency-faible{border-left:4px solid #10b981}
    .ticket-status-badge{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:20px;font-size:11px;font-weight:700;letter-spacing:0.3px}
    .ticket-status-en_attente{background:rgba(245,158,11,0.12);color:#f59e0b;border:1px solid rgba(245,158,11,0.25)}
    .ticket-status-en_cours{background:rgba(59,130,246,0.12);color:#3b82f6;border:1px solid rgba(59,130,246,0.25)}
    .ticket-status-resolu{background:rgba(16,185,129,0.12);color:#10b981;border:1px solid rgba(16,185,129,0.25)}
    .ticket-status-rejete{background:rgba(239,68,68,0.12);color:#ef4444;border:1px solid rgba(239,68,68,0.25)}
    .ticket-urgency-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:6px;font-size:10px;font-weight:700;text-transform:uppercase}
    .ticket-urgency-badge.critique{background:rgba(239,68,68,0.15);color:#ef4444;animation:statusPulse 1.5s infinite}
    .ticket-urgency-badge.moyen{background:rgba(245,158,11,0.15);color:#f59e0b}
    .ticket-urgency-badge.faible{background:rgba(16,185,129,0.15);color:#10b981}
    .ticket-stat-card{background:linear-gradient(135deg,rgba(255,255,255,0.04),rgba(255,255,255,0.01));border:1px solid rgba(255,255,255,0.08);border-radius:14px;padding:20px;text-align:center;transition:all 0.3s}
    .ticket-stat-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,0.2)}
    .ticket-stat-number{font-size:32px;font-weight:800;font-family:'Courier New',monospace}
    .ticket-stat-label{font-size:11px;color:#64748b;text-transform:uppercase;letter-spacing:0.5px;margin-top:4px}
    .ticket-type-icon{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:16px}
    .ticket-comment{padding:12px;border-radius:10px;margin-bottom:8px}
    .ticket-comment.user-comment{background:rgba(59,130,246,0.08);border-left:3px solid #3b82f6}
    .ticket-comment.it-comment{background:rgba(139,92,246,0.08);border-left:3px solid #8b5cf6}
    .ticket-comment.internal-comment{background:rgba(245,158,11,0.08);border-left:3px solid #f59e0b}
    .ticket-detail-modal{max-width:650px}
    .ticket-type-bar{display:flex;align-items:center;gap:10px;padding:8px 12px;background:rgba(255,255,255,0.03);border-radius:8px;margin-bottom:6px}
    .ticket-type-bar-fill{height:6px;border-radius:3px;transition:width 0.5s ease}
    .btn-deloguer:hover{background:linear-gradient(135deg,rgba(251,191,36,0.3),rgba(245,158,11,0.3));box-shadow:0 0 20px rgba(251,191,36,0.3);transform:translateY(-1px)}
    .btn-filter{padding:8px 14px;background:rgba(30,41,59,0.6);border:1px solid rgba(148,163,184,0.2);border-radius:8px;color:#94a3b8;font-size:12px;cursor:pointer;display:flex;align-items:center;gap:6px;transition:0.2s}
    .btn-filter:hover{background:rgba(59,130,246,0.1);border-color:rgba(59,130,246,0.3);color:#3b82f6}
    .btn-filter.active{background:rgba(59,130,246,0.2);border-color:rgba(59,130,246,0.4);color:#3b82f6}
    .main-content{margin-left:240px;padding:20px;min-height:100vh;flex:1}
    .page-header{margin-bottom:28px;padding:6px 0 20px;background-image:linear-gradient(90deg,#3b82f6,#10b981,transparent) ,linear-gradient(90deg,rgba(59,130,246,0.18),rgba(16,185,129,0.06),transparent);background-size:72px 2px,100% 1px;background-position:bottom left,bottom left;background-repeat:no-repeat}
    .page-header h1{font-size:27px;font-weight:800;margin-bottom:5px;background:linear-gradient(120deg,#f1f5f9 20%,#93c5fd 60%,#6ee7b7 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;letter-spacing:-0.5px;line-height:1.15}
    .page-header p{color:#475569;font-size:12px;letter-spacing:0.3px;display:flex;align-items:center;gap:6px}
    .page-header p::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:linear-gradient(135deg,#3b82f6,#10b981);flex-shrink:0}
    .stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:24px}
    .stat-card{background:linear-gradient(145deg,rgba(15,23,42,0.75),rgba(30,41,59,0.55));border-radius:14px;padding:20px 18px 18px;border:1px solid rgba(148,163,184,0.08);transition:all 0.22s ease;position:relative;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,0.18),inset 0 1px 0 rgba(255,255,255,0.03)}
    .stat-card::before{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,rgba(59,130,246,0.5),rgba(16,185,129,0.3),transparent);border-radius:14px 14px 0 0;opacity:0.7}
    .stat-card::after{content:'';position:absolute;top:0;right:0;width:100px;height:100px;background:radial-gradient(circle at top right,rgba(59,130,246,0.1),transparent 65%);pointer-events:none;border-radius:0 14px 0 0;transition:opacity 0.22s}
    .stat-card:hover{transform:translateY(-4px);box-shadow:0 12px 32px rgba(0,0,0,0.3),0 0 0 1px rgba(59,130,246,0.22),inset 0 1px 0 rgba(255,255,255,0.05);border-color:rgba(59,130,246,0.2)}
    .stat-card:hover::after{opacity:1.8}
    .stat-card:has(.stat-icon.blue)::before{background:linear-gradient(90deg,rgba(59,130,246,0.7),rgba(139,92,246,0.3),transparent)}
    .stat-card:has(.stat-icon.blue):hover{box-shadow:0 12px 32px rgba(0,0,0,0.3),0 0 0 1px rgba(59,130,246,0.25),0 0 20px rgba(59,130,246,0.08)}
    .stat-card:has(.stat-icon.green)::before{background:linear-gradient(90deg,rgba(16,185,129,0.7),rgba(59,130,246,0.3),transparent)}
    .stat-card:has(.stat-icon.green)::after{background:radial-gradient(circle at top right,rgba(16,185,129,0.1),transparent 65%)}
    .stat-card:has(.stat-icon.green):hover{box-shadow:0 12px 32px rgba(0,0,0,0.3),0 0 0 1px rgba(16,185,129,0.25),0 0 20px rgba(16,185,129,0.07)}
    .stat-card:has(.stat-icon.orange)::before{background:linear-gradient(90deg,rgba(245,158,11,0.7),rgba(239,68,68,0.3),transparent)}
    .stat-card:has(.stat-icon.orange)::after{background:radial-gradient(circle at top right,rgba(245,158,11,0.1),transparent 65%)}
    .stat-card:has(.stat-icon.orange):hover{box-shadow:0 12px 32px rgba(0,0,0,0.3),0 0 0 1px rgba(245,158,11,0.22),0 0 20px rgba(245,158,11,0.07)}
    .stat-icon{width:42px;height:42px;border-radius:11px;display:flex;align-items:center;justify-content:center;margin-bottom:14px;box-shadow:0 4px 12px rgba(0,0,0,0.25)}
    .stat-icon.blue{background:linear-gradient(135deg,#2563eb,#7c3aed);box-shadow:0 4px 14px rgba(37,99,235,0.35)}
    .stat-icon.green{background:linear-gradient(135deg,#059669,#2563eb);box-shadow:0 4px 14px rgba(5,150,105,0.32)}
    .stat-icon.orange{background:linear-gradient(135deg,#d97706,#dc2626);box-shadow:0 4px 14px rgba(217,119,6,0.32)}
    .stat-icon i{font-size:16px;color:#fff}
    .stat-label{color:#64748b;font-size:11px;margin-bottom:6px;font-weight:600;letter-spacing:0.4px;text-transform:uppercase}
    .stat-value{font-size:34px;font-weight:900;letter-spacing:-1.5px;line-height:1;font-variant-numeric:tabular-nums}
    .content-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(350px,1fr));gap:20px}
    .content-card{background:linear-gradient(145deg,rgba(15,23,42,0.7),rgba(30,41,59,0.5));border-radius:14px;padding:20px 18px;border:1px solid rgba(148,163,184,0.08);box-shadow:0 2px 12px rgba(0,0,0,0.15),inset 0 1px 0 rgba(255,255,255,0.03)}
    .content-card h3{font-size:14px;font-weight:700;margin-bottom:16px;display:flex;align-items:center;gap:8px;color:#cbd5e1;letter-spacing:0.1px}
    .content-card h3 i{color:#3b82f6;width:18px;text-align:center}
    .table-container{background:rgba(30,41,59,0.6);border-radius:14px;border:1px solid rgba(148,163,184,0.1);overflow:hidden}
    table{width:100%;border-collapse:collapse}
    th{padding:12px;text-align:left;background:rgba(15,23,42,0.5);color:#94a3b8;font-size:11px;font-weight:600;text-transform:uppercase}
    th.center{text-align:center}
    th.yallo{color:#f59e0b}
    th.lebara{color:#ef4444}
    th.salt{color:#8b5cf6}
    th.sunrise{color:#3b82f6}
    th.total{color:#10b981}
    td{padding:12px;border-top:1px solid rgba(148,163,184,0.07);font-size:12px;transition:background 0.15s ease}
    tbody tr{transition:background 0.15s ease}
    tbody tr:hover td{background:rgba(59,130,246,0.05)}
    tbody tr:nth-child(even) td{background:rgba(15,23,42,0.2)}
    tbody tr:nth-child(even):hover td{background:rgba(59,130,246,0.07)}
    /* Leading edge indicator par statut */
    tbody tr[data-status] td:first-child{position:relative}
    tbody tr[data-status="valide"] td:first-child{box-shadow:inset 3px 0 0 #10b981}
    tbody tr[data-status="valide"]:hover td{background:rgba(16,185,129,0.05)!important}
    tbody tr[data-status="attente"] td:first-child{box-shadow:inset 3px 0 0 #f59e0b}
    tbody tr[data-status="attente"]:hover td{background:rgba(245,158,11,0.05)!important}
    tbody tr[data-status="annule"] td:first-child{box-shadow:inset 3px 0 0 #ef4444}
    tbody tr[data-status="annule"]:hover td{background:rgba(239,68,68,0.04)!important}
    tbody tr[data-status="approuve"] td:first-child{box-shadow:inset 3px 0 0 #10b981}
    tbody tr[data-status="approuve"]:hover td{background:rgba(16,185,129,0.05)!important}
    tbody tr[data-status="refuse"] td:first-child{box-shadow:inset 3px 0 0 #ef4444}
    tbody tr[data-status="refuse"]:hover td{background:rgba(239,68,68,0.04)!important}
    tbody tr[data-status="traite"] td:first-child{box-shadow:inset 3px 0 0 #10b981}
    tbody tr[data-status="traite"]:hover td{background:rgba(16,185,129,0.05)!important}
    tbody tr[data-status="en_attente"] td:first-child{box-shadow:inset 3px 0 0 #f59e0b}
    tbody tr[data-status="en_attente"]:hover td{background:rgba(245,158,11,0.05)!important}
    td.center{text-align:center}
    td.yallo{color:#f59e0b;font-weight:600}
    td.lebara{color:#ef4444;font-weight:600}
    td.salt{color:#8b5cf6;font-weight:600}
    td.sunrise{color:#3b82f6;font-weight:600}
    .total-badge{background:linear-gradient(135deg,rgba(16,185,129,0.2),rgba(59,130,246,0.2));padding:4px 10px;border-radius:12px;color:#10b981;font-weight:600;font-size:12px}
    .status-badge{padding:4px 10px;border-radius:12px;font-weight:600;font-size:11px;display:inline-block;text-transform:uppercase}
    .status-valide{background:rgba(16,185,129,0.2);color:#10b981;border:1px solid rgba(16,185,129,0.3)}
    .status-attente{background:rgba(245,158,11,0.2);color:#f59e0b;border:1px solid rgba(245,158,11,0.3)}
    .status-annule{background:rgba(239,68,68,0.2);color:#ef4444;border:1px solid rgba(239,68,68,0.3)}
    .audit-badge{padding:3px 8px;border-radius:8px;font-weight:600;font-size:10px;display:inline-block}
    .audit-non-audite{background:rgba(100,116,139,0.2);color:#64748b;border:1px solid rgba(100,116,139,0.3)}
    .audit-en-cours{background:rgba(59,130,246,0.2);color:#3b82f6;border:1px solid rgba(59,130,246,0.3)}
    .audit-conforme{background:rgba(16,185,129,0.2);color:#10b981;border:1px solid rgba(16,185,129,0.3)}
/* === MODULE AUDIT QUALITE SCORING === */
.audit-score-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(30,41,59,0.9), rgba(15,23,42,0.95));
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(99,102,241,0.3);
}
.audit-score-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  min-width: 90px;
  transition: color 0.3s ease;
}
.audit-score-bar-wrap { flex: 1; }
.audit-score-bar-bg {
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
  overflow: hidden;
}
.audit-score-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1), background-color 0.3s ease;
}
.badge-conforme-premium { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.4); padding: 4px 14px; border-radius: 20px; font-weight: 700; font-size: 0.85rem; }
.badge-conforme         { background: rgba(59,130,246,0.15); color: #3b82f6; border: 1px solid rgba(59,130,246,0.4); padding: 4px 14px; border-radius: 20px; font-weight: 700; font-size: 0.85rem; }
.badge-a-corriger       { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.4); padding: 4px 14px; border-radius: 20px; font-weight: 700; font-size: 0.85rem; }
.badge-non-conforme     { background: rgba(239,68,68,0.15);  color: #ef4444; border: 1px solid rgba(239,68,68,0.4);  padding: 4px 14px; border-radius: 20px; font-weight: 700; font-size: 0.85rem; }
.audit-criteria-grid { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.audit-criteria-grid th { padding: 10px 12px; text-align: left; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; border-bottom: 1px solid rgba(148,163,184,0.15); }
.audit-criteria-grid td { padding: 10px 12px; border-bottom: 1px solid rgba(148,163,184,0.08); vertical-align: top; }
.audit-criteria-grid tr:hover td { background: rgba(99,102,241,0.05); }
.audit-criteria-label { color: #e2e8f0; font-size: 0.9rem; }
.audit-criteria-pct   { color: #64748b; font-size: 0.8rem; font-weight: 600; text-align: center; }
.audit-criteria-note  { min-width: 70px; }
.audit-criteria-note select { width: 100%; background: rgba(15,23,42,0.8); border: 1px solid rgba(99,102,241,0.3); color: #e2e8f0; border-radius: 6px; padding: 4px 8px; font-size: 0.9rem; cursor: pointer; }
.audit-criteria-note select:focus { outline: none; border-color: #6366f1; }
.audit-criteria-comment { padding-top: 6px; }
.audit-criteria-comment input { width: 100%; background: rgba(15,23,42,0.6); border: 1px solid rgba(148,163,184,0.15); color: #94a3b8; border-radius: 6px; padding: 4px 8px; font-size: 0.8rem; }
.audit-criteria-comment input:focus { outline: none; border-color: rgba(99,102,241,0.5); color: #e2e8f0; }
.audit-criteria-comment input::placeholder { color: #475569; }
.audit-contrib { font-size: 0.75rem; color: #64748b; text-align: center; transition: color 0.2s; }
.audit-contrib.good { color: #10b981; }
.audit-contrib.ok   { color: #f59e0b; }
.audit-contrib.bad  { color: #ef4444; }
.audit-section-gravite, .audit-section-motif { background: rgba(15,23,42,0.6); border: 1px solid rgba(148,163,184,0.15); border-radius: 10px; padding: 16px; margin-bottom: 12px; transition: all 0.3s ease; }
.audit-section-gravite.hidden, .audit-section-motif.hidden { display: none; }
.audit-section-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; margin-bottom: 10px; }
.audit-select-full { width: 100%; background: rgba(15,23,42,0.8); border: 1px solid rgba(99,102,241,0.3); color: #e2e8f0; border-radius: 8px; padding: 8px 12px; font-size: 0.9rem; }
.audit-select-full:focus { outline: none; border-color: #6366f1; }
.audit-auto-critique-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.4); border-radius: 6px; padding: 4px 10px; font-size: 0.78rem; font-weight: 600; margin-top: 6px; }
.mes-audits-section { margin-top: 24px; }
.mes-audits-section h3 { font-size: 1rem; font-weight: 700; color: #e2e8f0; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.surveillance-card { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3); border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; }
.surveillance-card h3 { color: #ef4444; font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.surveillance-agent-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(239,68,68,0.1); }
.surveillance-agent-row:last-child { border-bottom: none; }
.badge-surveillance { background: rgba(239,68,68,0.2); color: #ef4444; border: 1px solid rgba(239,68,68,0.5); border-radius: 12px; padding: 2px 10px; font-size: 0.75rem; font-weight: 700; }
/* === FIN MODULE AUDIT QUALITE === */
    .audit-non-conforme{background:rgba(239,68,68,0.2);color:#ef4444;border:1px solid rgba(239,68,68,0.3)}
    .filters{display:flex;gap:12px;margin-bottom:20px;flex-wrap:wrap}
    .filter-item{display:flex;align-items:center;gap:8px;padding:8px 12px;background:rgba(30,41,59,0.6);border-radius:10px;border:1px solid rgba(148,163,184,0.1)}
    .filter-item i{color:#64748b;font-size:12px}
    .filter-item input,.filter-item select{background:transparent;border:none;color:#f8fafc;font-size:12px;outline:none}
    .filter-item select option{background:#1e293b}
    .totals-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:20px}
    .total-card{background:rgba(30,41,59,0.6);border-radius:10px;padding:12px;border:1px solid rgba(148,163,184,0.1);text-align:center}
    .total-card .label{font-size:11px;color:#94a3b8;margin-bottom:3px}
    .total-card .value{font-size:20px;font-weight:700}
    .total-card.yallo .value{color:#f59e0b}
    .total-card.lebara .value{color:#ef4444}
    .total-card.salt .value{color:#8b5cf6}
    .total-card.sunrise .value{color:#3b82f6}
    .total-card.total .value{color:#10b981}
    .btn-primary{display:inline-flex;align-items:center;gap:6px;padding:10px 18px;background:linear-gradient(135deg,#2563eb,#059669);border:none;border-radius:10px;color:#fff;font-size:13px;font-weight:600;cursor:pointer;position:relative;overflow:hidden;transition:transform 0.15s,box-shadow 0.15s;box-shadow:0 3px 14px rgba(37,99,235,0.28)}
    .btn-primary::after{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,0.12),transparent);opacity:0;transition:opacity 0.2s}
    .btn-primary:hover{transform:translateY(-2px);box-shadow:0 7px 22px rgba(37,99,235,0.4)}
    .btn-primary:hover::after{opacity:1}
    .btn-primary:active{transform:translateY(0);box-shadow:0 2px 8px rgba(37,99,235,0.22)}
    .pointage-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:16px;background:rgba(30,41,59,0.6);border:1px solid rgba(148,163,184,0.2);border-radius:12px;color:#94a3b8;font-size:13px;font-weight:600;cursor:pointer;transition:all 0.2s}
    .pointage-btn:hover{background:rgba(59,130,246,0.1);border-color:rgba(59,130,246,0.3);color:#3b82f6;transform:translateY(-2px)}
    .pointage-btn.active{background:linear-gradient(135deg,#3b82f6,#10b981);border-color:transparent;color:#fff;box-shadow:0 4px 12px rgba(59,130,246,0.4)}
    .pointage-btn.pause{background:linear-gradient(135deg,#f59e0b,#ef4444);border-color:transparent;color:#fff;animation:pulse 2s infinite}
    @keyframes pulse{0%,100%{opacity:1}50%{opacity:0.7}}
    .btn-secondary{padding:10px 18px;background:rgba(15,23,42,0.55);border:1px solid rgba(148,163,184,0.15);border-radius:8px;color:#64748b;font-size:13px;cursor:pointer;transition:all 0.15s;font-weight:500}
    .btn-secondary:hover{background:rgba(30,41,59,0.8);border-color:rgba(148,163,184,0.25);color:#94a3b8;transform:translateY(-1px)}
    .btn-secondary:active{transform:translateY(0)}
    .modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.7);display:none;align-items:center;justify-content:center;z-index:10001;overflow-y:auto;padding:20px;pointer-events:none}
    .modal-overlay.active{display:flex;pointer-events:auto}
    .modal{background:#1e293b;border-radius:16px;padding:24px;width:100%;max-width:700px;border:1px solid rgba(148,163,184,0.1);max-height:90vh;overflow-y:auto}
    .modal h3{font-size:16px;font-weight:600;margin-bottom:18px}
    .modal-form .form-row{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
    .modal-form .form-group{margin-bottom:12px}
    .modal-form select{width:100%;padding:10px 12px;background:rgba(15,23,42,0.6);border:1px solid rgba(148,163,184,0.2);border-radius:8px;color:#f8fafc;font-size:13px;outline:none}
    .modal-actions{display:flex;gap:10px;margin-top:18px}
    .modal-actions button{flex:1}
    .action-btns{display:flex;gap:5px;justify-content:center}
    .admin-only{display:none}
    .admin-view .admin-only{display:inline-flex}
    .btn-icon{width:28px;height:28px;border-radius:6px;display:flex;align-items:center;justify-content:center;cursor:pointer;border:none;font-size:12px;transition:all 0.15s}
    .btn-icon.edit{background:rgba(59,130,246,0.1);border:1px solid rgba(59,130,246,0.2);color:#3b82f6}
    .btn-icon.edit:hover{background:rgba(59,130,246,0.22);border-color:rgba(59,130,246,0.45);transform:scale(1.1);box-shadow:0 0 8px rgba(59,130,246,0.25)}
    .btn-icon.delete{background:rgba(239,68,68,0.1);border:1px solid rgba(239,68,68,0.2);color:#ef4444}
    .btn-icon.delete:hover{background:rgba(239,68,68,0.22);border-color:rgba(239,68,68,0.45);transform:scale(1.1);box-shadow:0 0 8px rgba(239,68,68,0.25)}
    .btn-icon.view{background:rgba(16,185,129,0.1);border:1px solid rgba(16,185,129,0.2);color:#10b981}
    .btn-icon.view:hover{background:rgba(16,185,129,0.22);border-color:rgba(16,185,129,0.45);transform:scale(1.1);box-shadow:0 0 8px rgba(16,185,129,0.25)}
    .btn-icon.export{background:rgba(139,92,246,0.1);border:1px solid rgba(139,92,246,0.2);color:#8b5cf6}
    .btn-icon.export:hover{background:rgba(139,92,246,0.22);border-color:rgba(139,92,246,0.45);transform:scale(1.1);box-shadow:0 0 8px rgba(139,92,246,0.25)}
    /* P1 — Page Transitions Animées */
    .page-section{display:none;opacity:0;transform:translateY(10px)}
    .page-section.active{display:block;animation:pageEnter 0.35s cubic-bezier(0.4,0,0.2,1) forwards}
    @keyframes pageEnter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
    
    /* Operator Circles with Real Logos */
    .operator-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}
    .operator-tab{padding:20px;border-radius:16px;cursor:pointer;text-align:center;transition:all 0.3s;border:3px solid transparent;background:rgba(15,23,42,0.6)}
    .operator-tab:hover{transform:translateY(-3px);box-shadow:0 10px 30px rgba(0,0,0,0.3)}
    .operator-tab.yallo{border-color:rgba(245,158,11,0.3)}
    .operator-tab.yallo:hover,.operator-tab.yallo.active{border-color:#f59e0b;background:rgba(245,158,11,0.1)}
    .operator-tab.lebara{border-color:rgba(239,68,68,0.3)}
    .operator-tab.lebara:hover,.operator-tab.lebara.active{border-color:#ef4444;background:rgba(239,68,68,0.1)}
    .operator-tab.salt{border-color:rgba(139,92,246,0.3)}
    .operator-tab.salt:hover,.operator-tab.salt.active{border-color:#8b5cf6;background:rgba(139,92,246,0.1)}
    .operator-tab.sunrise{border-color:rgba(59,130,246,0.3)}
    .operator-tab.sunrise:hover,.operator-tab.sunrise.active{border-color:#3b82f6;background:rgba(59,130,246,0.1)}
    
    .operator-logo{width:70px;height:70px;border-radius:50%;margin:0 auto 12px;display:flex;align-items:center;justify-content:center;overflow:hidden;border:3px solid rgba(255,255,255,0.2)}
    .operator-logo img{width:100%;height:100%;object-fit:cover}
    .operator-logo svg{width:100%;height:100%}
    .operator-tab.yallo .operator-logo{background:#1a1a1a;border-color:#00d4aa}
    .operator-tab.lebara .operator-logo{background:#e31e26;border-color:#e31e26}
    .operator-tab.salt .operator-logo{background:#1a1a1a;border-color:#1a1a1a}
    .operator-tab.sunrise .operator-logo{background:linear-gradient(135deg,#f8a5c2,#74b9ff);border-color:#f8a5c2}
    
    .operator-tab .op-name{font-weight:700;font-size:15px;margin-bottom:4px}
    .operator-tab .op-count{font-size:24px;font-weight:800}
    .operator-tab.yallo .op-name,.operator-tab.yallo .op-count{color:#f59e0b}
    .operator-tab.lebara .op-name,.operator-tab.lebara .op-count{color:#ef4444}
    .operator-tab.salt .op-name,.operator-tab.salt .op-count{color:#8b5cf6}
    .operator-tab.sunrise .op-name,.operator-tab.sunrise .op-count{color:#3b82f6}
    
    .contract-section{background:rgba(15,23,42,0.4);border-radius:12px;padding:16px;margin-bottom:16px}
    .contract-section h5{font-size:13px;font-weight:600;color:#94a3b8;margin-bottom:12px;display:flex;align-items:center;gap:8px}
    .contract-section h5 i{color:#3b82f6}
    
    /* File Upload */
    .file-upload-zone{border:2px dashed rgba(148,163,184,0.3);border-radius:12px;padding:20px;text-align:center;cursor:pointer;transition:all 0.3s;background:rgba(15,23,42,0.3)}
    .file-upload-zone:hover{border-color:#3b82f6;background:rgba(59,130,246,0.05)}
    .file-upload-zone.has-file{border-color:#10b981;background:rgba(16,185,129,0.1)}
    .file-upload-zone i{font-size:32px;color:#64748b;margin-bottom:10px}
    .file-upload-zone.has-file i{color:#10b981}
    .file-upload-zone p{color:#94a3b8;font-size:12px}
    .file-upload-zone .file-name{color:#10b981;font-weight:600;margin-top:8px}
    .file-upload-zone input{display:none}
    
    .contracts-list{margin-top:15px}
    .contract-item{background:rgba(15,23,42,0.5);border-radius:10px;padding:12px;margin-bottom:8px;display:flex;align-items:center;justify-content:space-between}
    .contract-item .contract-info{display:flex;align-items:center;gap:10px}
    .contract-item .contract-op{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#fff}
    .contract-item .contract-op.yallo{background:#f59e0b}
    .contract-item .contract-op.lebara{background:#ef4444}
    .contract-item .contract-op.salt{background:#8b5cf6}
    .contract-item .contract-op.sunrise{background:#3b82f6}
    .contract-item .contract-details{font-size:12px}
    .contract-item .contract-details .client{font-weight:600}
    .contract-item .contract-details .offer{color:#64748b}
    .contract-item .contract-actions{display:flex;gap:5px}
    
    .sale-avatar{width:30px;height:30px;background:linear-gradient(135deg,#10b981,#3b82f6);border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;color:#fff}
    .sale-user{display:flex;align-items:center;gap:8px}
    
    .file-indicator{display:flex;align-items:center;gap:5px;font-size:11px;color:#10b981;margin-top:4px}
    .file-indicator i{font-size:12px}
    
    /* ========================================
       AUDIT LOG STYLES
       ======================================== */
    #auditLogTableBody tr {
      transition: all 0.2s ease;
    }
    
    #auditLogTableBody tr:hover {
      background: rgba(59, 130, 246, 0.05);
      transform: translateX(4px);
    }
    
    .audit-action-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: 8px;
      font-size: 16px;
      margin-right: 8px;
    }
    
    .audit-action-icon.creation {
      background: rgba(16, 185, 129, 0.15);
    }
    
    .audit-action-icon.modification {
      background: rgba(245, 158, 11, 0.15);
    }
    
    .audit-action-icon.suppression {
      background: rgba(239, 68, 68, 0.15);
    }
    
    @media(max-width:768px){
      .sidebar{width:60px}
      .sidebar-logo{width:30px}
      .nav-item span,.user-details{display:none}
      .main-content{margin-left:60px;padding:15px}
      .operator-tabs{grid-template-columns:repeat(2,1fr)}
      .modal-form .form-row{grid-template-columns:1fr}
      .totals-grid{grid-template-columns:repeat(2,1fr)}
      .table-container{overflow-x:auto}
      table{min-width:600px}
    }
    @media(max-width:480px){
      .sidebar{position:fixed;transform:translateX(-100%);z-index:200;transition:transform 0.25s ease;width:240px}
      .sidebar.mobile-open{transform:translateX(0)}
      .sidebar-collapse-btn{display:none}
      .main-content{margin-left:0;padding:12px}
      .stat-card{padding:12px}
    }
    /* Focus visible clavier — accessibilité WCAG 2.1 AA */
    button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{
      outline:3px solid #3b82f6;outline-offset:2px;border-radius:4px
    }
    *:focus:not(:focus-visible){outline:none}
    /* Bouton en état loading */
    .btn-loading{position:relative;pointer-events:none;opacity:0.75}
    .btn-loading::after{content:'';position:absolute;right:12px;top:50%;transform:translateY(-50%);width:14px;height:14px;border:2px solid rgba(255,255,255,0.3);border-top-color:#fff;border-radius:50%;animation:spin-btn 0.6s linear infinite}
    @keyframes spin-btn{to{transform:translateY(-50%) rotate(360deg)}}
      .triomphal-eagle-logo {
    width: 320px !important;
    height: auto !important;
    max-width: 90% !important;
    display: block !important;
    margin: 0 auto 20px !important;
}

    /* ========================================
       LAYOUT CÔTE À CÔTE - KPIs & Top Performers
       ======================================== */
    
    .dashboard-main-grid{
      display:grid;
      grid-template-columns:450px 1fr;
      gap:24px;
      margin-bottom:24px;
    }
    @media(max-width:1200px){
      .dashboard-main-grid{grid-template-columns:1fr}
    }
    
    .dashboard-column{
      background:linear-gradient(135deg,rgba(30,41,59,0.7),rgba(15,23,42,0.9));
      border-radius:20px;
      padding:24px;
      border:1px solid rgba(148,163,184,0.12);
      box-shadow:0 8px 24px rgba(0,0,0,0.2);
    }
    
    .section-header{
      margin-bottom:24px;
      padding-bottom:20px;
      border-bottom:2px solid rgba(148,163,184,0.1);
    }
    
    .section-title{
      display:flex;
      align-items:center;
      gap:16px;
    }
    
    .section-icon{
      width:56px;
      height:56px;
      border-radius:14px;
      display:flex;
      align-items:center;
      justify-content:center;
      font-size:24px;
      color:#fff;
      box-shadow:0 4px 12px rgba(0,0,0,0.3);
      flex-shrink:0;
    }
    
    .section-title h2{
      font-size:20px;
      font-weight:800;
      margin:0 0 4px 0;
      color:#f8fafc;
      letter-spacing:0.3px;
    }
    
    .section-title p{
      font-size:12px;
      color:#64748b;
      margin:0;
      font-weight:500;
    }
    
    .kpi-compact-grid{
      display:flex;
      flex-direction:column;
      gap:12px;
    }
    
    .kpi-compact-grid .kpi-item{
      display:flex;
      align-items:center;
      gap:16px;
      padding:16px 20px;
      background:linear-gradient(135deg,rgba(15,23,42,0.6),rgba(30,41,59,0.4));
      border-radius:14px;
      border:1px solid rgba(148,163,184,0.1);
      transition:all 0.3s cubic-bezier(0.4,0,0.2,1);
      text-align:left;
    }
    
    .kpi-compact-grid .kpi-item:hover{
      transform:translateX(6px);
      background:linear-gradient(135deg,rgba(59,130,246,0.15),rgba(16,185,129,0.08));
      border-color:rgba(59,130,246,0.3);
      box-shadow:0 8px 16px rgba(0,0,0,0.25);
    }
    
    .kpi-compact-grid .kpi-item::before{
      display:none;
    }
    
    .kpi-compact-grid .kpi-icon-wrapper{
      width:52px;
      height:52px;
      margin:0;
      flex-shrink:0;
    }
    
    .kpi-compact-grid .kpi-content{
      flex:1;
      min-width:0;
    }
    
    .kpi-compact-grid .kpi-label{
      font-size:11px;
      color:#64748b;
      text-transform:uppercase;
      letter-spacing:1px;
      font-weight:700;
      margin:0 0 6px 0;
      text-align:left;
    }
    
    .kpi-compact-grid .kpi-value{
      font-size:32px;
      font-weight:900;
      line-height:1;
      margin:0;
      text-align:left;
    }
    
    .kpi-compact-grid .kpi-trend{
      margin:8px 0 0 0;
      padding:5px 12px;
      font-size:11px;
      display:inline-flex;
    }
    
    .dashboard-column .performer-list{
      max-height:540px;
      overflow-y:auto;
      padding-right:8px;
    }
    
    .dashboard-column .performer-list::-webkit-scrollbar{
      width:6px;
    }
    
    .dashboard-column .performer-list::-webkit-scrollbar-track{
      background:rgba(15,23,42,0.5);
      border-radius:10px;
    }
    
    .dashboard-column .performer-list::-webkit-scrollbar-thumb{
      background:linear-gradient(180deg,#3b82f6,#10b981);
      border-radius:10px;
    }
    
    .dashboard-column .performer-item{
      padding:14px 16px;
    }
    
    .dashboard-column .performer-rank{
      width:48px;
      height:48px;
    }
    
    .dashboard-column .performer-avatar{
      width:52px;
      height:52px;
    }
    
    .dashboard-column .performer-name{
      font-size:14px;
    }
    
    .dashboard-column .performer-value{
      font-size:24px;
    }

/* ========================================
   WOLF DIVISION - SYSTÈME D'ÉCOUTE DISCRET
   ======================================== */
.wolf-user-card{
  background:rgba(15,23,42,0.8);
  border:1px solid rgba(148,163,184,0.2);
  border-radius:16px;
  padding:20px;
  margin-bottom:16px;
  transition:0.3s;
  position:relative;
}
.wolf-user-card:hover{
  background:rgba(30,41,59,0.9);
  border-color:rgba(239,68,68,0.4);
  box-shadow:0 8px 24px rgba(239,68,68,0.3);
}
.wolf-user-card.listening{
  border-color:#ef4444;
  background:rgba(239,68,68,0.1);
  box-shadow:0 0 20px rgba(239,68,68,0.4);
}
.wolf-user-card.recording{
  border-color:#f59e0b;
  background:rgba(245,158,11,0.1);
  animation:pulse-record 2s infinite;
}
@keyframes pulse-record{
  0%,100%{box-shadow:0 0 20px rgba(245,158,11,0.4)}
  50%{box-shadow:0 0 30px rgba(245,158,11,0.7)}
}
.wolf-avatar{
  width:56px;
  height:56px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  color:#fff;
  font-size:18px;
}
.wolf-status-badge{
  position:absolute;
  top:16px;
  right:16px;
  padding:6px 12px;
  border-radius:20px;
  font-size:11px;
  font-weight:600;
  text-transform:uppercase;
}
.wolf-status-online{
  background:rgba(16,185,129,0.2);
  color:#10b981;
  border:1px solid rgba(16,185,129,0.4);
}
.wolf-status-offline{
  background:rgba(100,116,139,0.2);
  color:#64748b;
  border:1px solid rgba(100,116,139,0.4);
}
.wolf-controls{
  display:flex;
  gap:12px;
  margin-top:16px;
}
.wolf-btn{
  flex:1;
  padding:12px;
  border:none;
  border-radius:10px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:0.2s;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.wolf-btn-listen{
  background:linear-gradient(135deg,#ef4444,#dc2626);
  color:#fff;
}
.wolf-btn-listen:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(239,68,68,0.5);
}
.wolf-btn-listen.active{
  background:linear-gradient(135deg,#10b981,#059669);
}
.wolf-btn-record{
  background:linear-gradient(135deg,#f59e0b,#d97706);
  color:#fff;
}
.wolf-btn-record:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(245,158,11,0.5);
}
.wolf-btn-record.active{
  background:linear-gradient(135deg,#8b5cf6,#7c3aed);
  animation:pulse 1s infinite;
}
.wolf-stats-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:16px;
  margin-bottom:24px;
}
.wolf-stat-card{
  background:rgba(15,23,42,0.6);
  border:1px solid rgba(148,163,184,0.2);
  border-radius:14px;
  padding:20px;
}
.wolf-stat-value{
  font-size:32px;
  font-weight:800;
  margin-bottom:8px;
}
.wolf-stat-label{
  color:#94a3b8;
  font-size:12px;
  text-transform:uppercase;
}
.wolf-recording-indicator{
  position:fixed;
  top:20px;
  left:260px;
  background:linear-gradient(135deg,#f59e0b,#d97706);
  padding:12px 20px;
  border-radius:12px;
  color:#fff;
  font-weight:700;
  font-size:13px;
  box-shadow:0 8px 20px rgba(245,158,11,0.5);
  z-index:9998;
  display:none;
  animation:pulse 2s infinite;
}
    
/* Background personnalise - Belhassen */
body.bg-belhassen { position: relative; }
body.bg-belhassen::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('/assets/bg-belhassen.png') center center / cover no-repeat;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
}
body.bg-belhassen .main-content,
body.bg-belhassen .page-section { position: relative; z-index: 1; }
body.bg-belhassen .sidebar {
  background: rgba(15, 23, 42, 0.93) !important;
  backdrop-filter: blur(20px);
}
body.bg-belhassen .top-bar {
  background: rgba(15, 23, 42, 0.90) !important;
  backdrop-filter: blur(20px);
}
body.bg-belhassen .stat-card,
body.bg-belhassen .card,
body.bg-belhassen .table-container {
  background: rgba(30, 41, 59, 0.88) !important;
  backdrop-filter: blur(12px);
}
/* ================================================================
   THEME SYSTEM — Aurora Borealis & Or Impérial
   Theme set via data-theme on <html>. Default = dark navy.
================================================================ */

/* Transitions douces globales */
*, *::before, *::after {
  transition: background-color 0.4s ease, color 0.4s ease,
              border-color 0.4s ease, box-shadow 0.4s ease !important;
}
.wolf-modal-inner, .modal-overlay, .slide-in, [class*="anim"] {
  transition: none !important;
}

/* ============================================================
   AURORA BOREALIS — Blobs CSS animés + glassmorphism
   ============================================================ */

/* Blobs aurora injectés dynamiquement via JS */
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform, opacity;
  pointer-events: none;
}
.aurora-blob-1 {
  width: 70vw; height: 70vw;
  background: radial-gradient(circle at 40% 40%, #00d4ff 0%, #0070b3 35%, transparent 70%);
  top: -25%; left: -15%;
  opacity: 0.55;
  animation: aurora-drift-1 20s ease-in-out infinite;
}
.aurora-blob-2 {
  width: 60vw; height: 60vw;
  background: radial-gradient(circle at 60% 40%, #7c3aed 0%, #4c1d95 35%, transparent 70%);
  top: 10%; right: -15%;
  opacity: 0.45;
  animation: aurora-drift-2 26s ease-in-out infinite;
}
.aurora-blob-3 {
  width: 55vw; height: 55vw;
  background: radial-gradient(circle at 50% 50%, #10b981 0%, #064e3b 35%, transparent 70%);
  bottom: -15%; left: 25%;
  opacity: 0.40;
  animation: aurora-drift-3 30s ease-in-out infinite;
}

@keyframes aurora-drift-1 {
  0%,100% { transform: translate(0,0) scale(1); }
  25%  { transform: translate(12%,8%) scale(1.15); }
  50%  { transform: translate(5%,18%) scale(0.92); }
  75%  { transform: translate(-8%,5%) scale(1.08); }
}
@keyframes aurora-drift-2 {
  0%,100% { transform: translate(0,0) scale(1); }
  30%  { transform: translate(-18%,-8%) scale(1.2); }
  60%  { transform: translate(8%,12%) scale(1.05); }
  80%  { transform: translate(-5%,-5%) scale(1.12); }
}
@keyframes aurora-drift-3 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%  { transform: translate(-12%,-15%) scale(1.18); }
  70%  { transform: translate(10%,-8%) scale(0.95); }
}

/* Pulsation des borders aurora */
@keyframes aurora-border-pulse {
  0%,100% { box-shadow: 0 0 0 1px rgba(0,212,255,0.25), 0 8px 32px rgba(0,0,0,0.4); }
  33%      { box-shadow: 0 0 0 1px rgba(124,58,237,0.35), 0 8px 32px rgba(124,58,237,0.15); }
  66%      { box-shadow: 0 0 0 1px rgba(16,185,129,0.3), 0 8px 32px rgba(16,185,129,0.12); }
}

/* Corps de l'app aurora */
[data-theme="aurora"] body {
  background: #0d1117 !important;
  color: #e2e8f0 !important;
}
[data-theme="aurora"] #theme-bg-layer {
  z-index: 0;
}
[data-theme="aurora"] .app-container,
[data-theme="aurora"] .sidebar,
[data-theme="aurora"] .main-content {
  position: relative;
  z-index: 1;
}
[data-theme="aurora"] .sidebar {
  background: rgba(8,12,24,0.78) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  border-right: 1px solid rgba(0,212,255,0.12) !important;
}
[data-theme="aurora"] .sidebar-header {
  border-bottom-color: rgba(0,212,255,0.1) !important;
}
[data-theme="aurora"] .sidebar-footer {
  border-top-color: rgba(0,212,255,0.1) !important;
}
[data-theme="aurora"] .nav-item { color: #94a3b8 !important; }
[data-theme="aurora"] .nav-item i { color: #64748b !important; }
[data-theme="aurora"] .nav-item:hover {
  background: rgba(0,212,255,0.08) !important;
  color: #00d4ff !important;
}
[data-theme="aurora"] .nav-item:hover i { color: #00d4ff !important; }
[data-theme="aurora"] .nav-item.active {
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(124,58,237,0.12)) !important;
  color: #e2e8f0 !important;
  border-left: 2px solid #00d4ff !important;
}
[data-theme="aurora"] .nav-item.active i { color: #00d4ff !important; }

[data-theme="aurora"] .stat-card,
[data-theme="aurora"] .content-card {
  background: rgba(255,255,255,0.04) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #e2e8f0 !important;
  animation: aurora-border-pulse 8s ease-in-out infinite !important;
}
[data-theme="aurora"] .table-container {
  background: rgba(255,255,255,0.03) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  animation: aurora-border-pulse 10s ease-in-out infinite !important;
}
[data-theme="aurora"] table thead tr {
  background: rgba(0,212,255,0.07) !important;
}
[data-theme="aurora"] table thead th {
  color: #00d4ff !important;
  border-color: rgba(0,212,255,0.15) !important;
}
[data-theme="aurora"] table tbody tr { color: #cbd5e1 !important; }
[data-theme="aurora"] table tbody tr:hover {
  background: rgba(0,212,255,0.06) !important;
}
[data-theme="aurora"] .modal {
  background: rgba(10,15,30,0.92) !important;
  backdrop-filter: blur(30px) !important;
  border: 1px solid rgba(0,212,255,0.2) !important;
  color: #e2e8f0 !important;
}
[data-theme="aurora"] .form-input {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(0,212,255,0.2) !important;
  color: #e2e8f0 !important;
}
[data-theme="aurora"] .form-input:focus {
  border-color: #00d4ff !important;
  box-shadow: 0 0 0 3px rgba(0,212,255,0.15) !important;
}
[data-theme="aurora"] .modal-form select {
  background: rgba(10,15,30,0.8) !important;
  color: #e2e8f0 !important;
  border-color: rgba(0,212,255,0.2) !important;
}
[data-theme="aurora"] .user-info {
  background: rgba(0,212,255,0.06) !important;
  border: 1px solid rgba(0,212,255,0.1) !important;
}
[data-theme="aurora"] .page-header h1 { color: #e2e8f0 !important; }
[data-theme="aurora"] .page-header p,
[data-theme="aurora"] .user-details .role { color: #64748b !important; }
[data-theme="aurora"] .btn-primary {
  background: linear-gradient(135deg, #00b4d8, #7c3aed, #10b981) !important;
  background-size: 200% 200% !important;
  animation: aurora-btn 5s ease infinite !important;
}
@keyframes aurora-btn {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
[data-theme="aurora"] .stat-label { color: #94a3b8 !important; }
[data-theme="aurora"] .stat-value { color: #e2e8f0 !important; }
[data-theme="aurora"] .page-header { border-bottom-color: rgba(0,212,255,0.15) !important; }

/* ============================================================
   OR IMPÉRIAL — Canvas étoiles JS + shimmer or
   ============================================================ */

@keyframes gold-shimmer {
  0%,100% {
    box-shadow: 0 0 12px rgba(245,212,133,0.2),
                0 0 0 1px rgba(245,212,133,0.25),
                inset 0 0 20px rgba(245,212,133,0.04);
  }
  50% {
    box-shadow: 0 0 24px rgba(245,212,133,0.45),
                0 0 0 1px rgba(245,212,133,0.5),
                inset 0 0 30px rgba(245,212,133,0.08);
  }
}
@keyframes gold-border-sweep {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

[data-theme="imperial-gold"] body {
  background: #080808 !important;
  color: #f5d485 !important;
}
[data-theme="imperial-gold"] #theme-bg-layer {
  z-index: 0;
}
[data-theme="imperial-gold"] .app-container,
[data-theme="imperial-gold"] .sidebar,
[data-theme="imperial-gold"] .main-content {
  position: relative;
  z-index: 1;
}
[data-theme="imperial-gold"] .sidebar {
  background: linear-gradient(180deg, #0c0900, #100d04) !important;
  border-right: 1px solid rgba(245,212,133,0.15) !important;
}
[data-theme="imperial-gold"] .sidebar-header {
  border-bottom: 1px solid rgba(245,212,133,0.1) !important;
}
[data-theme="imperial-gold"] .sidebar-footer {
  border-top: 1px solid rgba(245,212,133,0.1) !important;
}
[data-theme="imperial-gold"] .nav-item { color: #8a7540 !important; }
[data-theme="imperial-gold"] .nav-item i { color: #6b5a2a !important; }
[data-theme="imperial-gold"] .nav-item:hover {
  background: rgba(245,212,133,0.07) !important;
  color: #f5d485 !important;
}
[data-theme="imperial-gold"] .nav-item:hover i { color: #f5d485 !important; }
[data-theme="imperial-gold"] .nav-item.active {
  background: linear-gradient(135deg, rgba(245,212,133,0.12), rgba(180,140,60,0.08)) !important;
  color: #f5d485 !important;
  border-left: 2px solid #c9a227 !important;
}
[data-theme="imperial-gold"] .nav-item.active i { color: #f5d485 !important; }

[data-theme="imperial-gold"] .stat-card,
[data-theme="imperial-gold"] .content-card {
  background: #0f0c04 !important;
  border: 1px solid rgba(245,212,133,0.2) !important;
  color: #e8c96d !important;
  animation: gold-shimmer 4s ease-in-out infinite !important;
}
[data-theme="imperial-gold"] .table-container {
  background: #0c0900 !important;
  border: 1px solid rgba(245,212,133,0.18) !important;
  animation: gold-shimmer 6s ease-in-out infinite !important;
}
[data-theme="imperial-gold"] table thead tr {
  background: rgba(245,212,133,0.06) !important;
}
[data-theme="imperial-gold"] table thead th {
  color: #c9a227 !important;
  border-color: rgba(245,212,133,0.15) !important;
}
[data-theme="imperial-gold"] table tbody tr { color: #d4b44a !important; }
[data-theme="imperial-gold"] table tbody tr:hover {
  background: rgba(245,212,133,0.05) !important;
}
[data-theme="imperial-gold"] .modal {
  background: #0c0900 !important;
  border: 1px solid rgba(245,212,133,0.3) !important;
  color: #e8c96d !important;
  animation: gold-shimmer 4s ease-in-out infinite !important;
}
[data-theme="imperial-gold"] .form-input {
  background: rgba(245,212,133,0.05) !important;
  border: 1px solid rgba(245,212,133,0.2) !important;
  color: #f5d485 !important;
}
[data-theme="imperial-gold"] .form-input:focus {
  border-color: #c9a227 !important;
  box-shadow: 0 0 0 3px rgba(201,162,39,0.2) !important;
}
[data-theme="imperial-gold"] .modal-form select {
  background: #0c0900 !important;
  color: #f5d485 !important;
  border-color: rgba(245,212,133,0.2) !important;
}
[data-theme="imperial-gold"] .user-info {
  background: rgba(245,212,133,0.05) !important;
  border: 1px solid rgba(245,212,133,0.12) !important;
}
[data-theme="imperial-gold"] .page-header h1 { color: #f5d485 !important; }
[data-theme="imperial-gold"] .page-header p,
[data-theme="imperial-gold"] .user-details .role { color: #6b5a2a !important; }
[data-theme="imperial-gold"] .btn-primary {
  background: linear-gradient(135deg, #b8860b, #f5d485, #c9a227) !important;
  background-size: 200% 200% !important;
  color: #1a1000 !important;
  animation: gold-border-sweep 4s ease infinite !important;
}
[data-theme="imperial-gold"] .stat-label { color: #8a7540 !important; }
[data-theme="imperial-gold"] .stat-value { color: #f5d485 !important; }
[data-theme="imperial-gold"] .page-header {
  border-bottom: 1px solid rgba(245,212,133,0.12) !important;
}

/* ============================================================
   GHOST PROTOCOL — Canvas Matrix rain + neon green/cyan
   ============================================================ */

@keyframes ghost-border-pulse {
  0%,100% { box-shadow: 0 0 0 1px rgba(0,255,65,0.25), 0 8px 32px rgba(0,0,0,0.5); }
  50%      { box-shadow: 0 0 0 1px rgba(0,229,204,0.35), 0 8px 32px rgba(0,229,204,0.12); }
}
@keyframes ghost-btn-sweep {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes ghost-stat-glow {
  0%,100% { text-shadow: 0 0 8px rgba(0,255,65,0.4); box-shadow: 0 0 8px rgba(0,255,65,0.5); }
  50%      { text-shadow: 0 0 18px rgba(0,255,65,0.8), 0 0 30px rgba(0,229,204,0.3); box-shadow: 0 0 18px rgba(0,255,65,0.9), 0 0 30px rgba(0,229,204,0.4); }
}

[data-theme="ghost-protocol"] body {
  background: #020c02 !important;
  color: #a8ffb8 !important;
}
[data-theme="ghost-protocol"] #theme-bg-layer {
  z-index: 0;
}
[data-theme="ghost-protocol"] .app-container,
[data-theme="ghost-protocol"] .sidebar,
[data-theme="ghost-protocol"] .main-content {
  position: relative;
  z-index: 1;
}
[data-theme="ghost-protocol"] .sidebar {
  background: rgba(3,15,3,0.85) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  border-right: 1px solid rgba(0,255,65,0.1) !important;
}
    /* ===== OBJECTIFS PAGE ===== */
    .objectifs-hero{background:linear-gradient(135deg,rgba(30,41,59,0.95),rgba(15,23,42,0.98));border:1px solid rgba(148,163,184,0.15);border-radius:20px;padding:32px;margin-bottom:24px;text-align:center;position:relative;overflow:hidden}
    .objectifs-hero::before{content:'';position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:radial-gradient(circle at 60% 40%,rgba(59,130,246,0.06),transparent 60%),radial-gradient(circle at 20% 80%,rgba(245,158,11,0.06),transparent 50%);pointer-events:none}
    .objectifs-progress-bar{background:rgba(15,23,42,0.8);border-radius:50px;height:16px;overflow:hidden;margin:20px 0 10px;border:1px solid rgba(148,163,184,0.1)}
    .objectifs-progress-fill{height:100%;border-radius:50px;background:linear-gradient(90deg,#3b82f6,#10b981);transition:width 1.2s cubic-bezier(0.4,0,0.2,1);position:relative;overflow:hidden}
    .objectifs-progress-fill::after{content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,0.2),transparent);animation:objectifs-shimmer 2s infinite}
    @keyframes objectifs-shimmer{0%{left:-100%}100%{left:200%}}
    .objectifs-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}
    .objectifs-kpi-card{background:rgba(30,41,59,0.8);border:1px solid rgba(148,163,184,0.12);border-radius:16px;padding:24px;text-align:center;transition:transform 0.2s,border-color 0.2s}
    .objectifs-kpi-card:hover{transform:translateY(-2px);border-color:rgba(148,163,184,0.25)}
    .objectifs-kpi-card.highlight{background:linear-gradient(135deg,rgba(59,130,246,0.15),rgba(16,185,129,0.1));border-color:rgba(59,130,246,0.3)}
    .objectifs-kpi-card.gold{background:linear-gradient(135deg,rgba(245,158,11,0.15),rgba(251,191,36,0.08));border-color:rgba(245,158,11,0.35)}
    .objectifs-kpi-value{font-size:36px;font-weight:800;letter-spacing:-1px;margin-bottom:4px}
    .objectifs-kpi-label{font-size:12px;color:#64748b;text-transform:uppercase;letter-spacing:0.5px}
    .objectifs-prime-nette-value{font-size:48px;font-weight:900;background:linear-gradient(135deg,#f59e0b,#fbbf24);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
    .objectifs-table{width:100%;border-collapse:collapse;font-size:13px}
    .objectifs-table th{padding:10px 14px;text-align:left;color:#64748b;font-weight:600;text-transform:uppercase;font-size:11px;letter-spacing:0.5px;border-bottom:1px solid rgba(148,163,184,0.1)}
    .objectifs-table td{padding:12px 14px;border-bottom:1px solid rgba(148,163,184,0.06);color:#e2e8f0}
    .objectifs-table tr:last-child td{border-bottom:none}
    .objectifs-table tr:hover td{background:rgba(59,130,246,0.04)}
    .objectifs-badge{display:inline-block;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:600}
    .objectifs-badge-green{background:rgba(16,185,129,0.15);color:#34d399;border:1px solid rgba(16,185,129,0.2)}
    .objectifs-badge-blue{background:rgba(59,130,246,0.15);color:#93c5fd;border:1px solid rgba(59,130,246,0.2)}
    .objectifs-motivation{background:linear-gradient(135deg,rgba(245,158,11,0.1),rgba(251,191,36,0.05));border:1px solid rgba(245,158,11,0.2);border-radius:16px;padding:20px 24px;margin-bottom:24px;display:flex;align-items:center;gap:16px}
    .objectifs-section-card{background:rgba(30,41,59,0.7);border:1px solid rgba(148,163,184,0.1);border-radius:16px;padding:20px;margin-bottom:16px}
    .objectifs-section-title{font-size:14px;font-weight:600;color:#94a3b8;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:16px;display:flex;align-items:center;gap:8px}
[data-theme="ghost-protocol"] .sidebar-header {
  border-bottom-color: rgba(0,255,65,0.08) !important;
}
[data-theme="ghost-protocol"] .sidebar-footer {
  border-top-color: rgba(0,255,65,0.08) !important;
}
[data-theme="ghost-protocol"] .nav-item { color: #4a7a55 !important; }
[data-theme="ghost-protocol"] .nav-item i { color: #2d5c38 !important; }
[data-theme="ghost-protocol"] .nav-item:hover {
  background: rgba(0,255,65,0.06) !important;
  color: #00FF41 !important;
}
[data-theme="ghost-protocol"] .nav-item:hover i { color: #00FF41 !important; }
[data-theme="ghost-protocol"] .nav-item.active {
  background: linear-gradient(135deg, rgba(0,255,65,0.1), rgba(0,229,204,0.07)) !important;
  color: #a8ffb8 !important;
  border-left: 2px solid #00FF41 !important;
  box-shadow: inset 0 0 12px rgba(0,255,65,0.05) !important;
}
[data-theme="ghost-protocol"] .nav-item.active i { color: #00FF41 !important; }
[data-theme="ghost-protocol"] .stat-card,
[data-theme="ghost-protocol"] .content-card {
  background: rgba(0,255,65,0.025) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  border: 1px solid rgba(0,255,65,0.15) !important;
  color: #a8ffb8 !important;
  animation: ghost-border-pulse 6s ease-in-out infinite !important;
}
[data-theme="ghost-protocol"] .table-container {
  background: rgba(0,255,65,0.015) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(0,255,65,0.1) !important;
  animation: ghost-border-pulse 8s ease-in-out infinite !important;
}
[data-theme="ghost-protocol"] table thead tr {
  background: rgba(0,255,65,0.07) !important;
}
[data-theme="ghost-protocol"] table thead th {
  color: #00cc33 !important;
  border-color: rgba(0,255,65,0.15) !important;
}
[data-theme="ghost-protocol"] table tbody tr { color: #a8ffb8 !important; }
[data-theme="ghost-protocol"] table tbody tr:hover {
  background: rgba(0,255,65,0.05) !important;
}
[data-theme="ghost-protocol"] .modal {
  background: rgba(2,12,2,0.96) !important;
  backdrop-filter: blur(30px) !important;
  border: 1px solid rgba(0,229,204,0.25) !important;
  color: #a8ffb8 !important;
}
[data-theme="ghost-protocol"] .form-input {
  background: rgba(0,255,65,0.04) !important;
  border: 1px solid rgba(0,255,65,0.2) !important;
  color: #a8ffb8 !important;
}
[data-theme="ghost-protocol"] .form-input:focus {
  border-color: #00FF41 !important;
  box-shadow: 0 0 0 3px rgba(0,255,65,0.15) !important;
}
[data-theme="ghost-protocol"] .modal-form select {
  background: rgba(2,12,2,0.9) !important;
  color: #a8ffb8 !important;
  border-color: rgba(0,255,65,0.2) !important;
}
[data-theme="ghost-protocol"] .user-info {
  background: rgba(0,255,65,0.04) !important;
  border: 1px solid rgba(0,255,65,0.1) !important;
}
[data-theme="ghost-protocol"] .page-header h1 { color: #a8ffb8 !important; }
[data-theme="ghost-protocol"] .page-header p,
[data-theme="ghost-protocol"] .user-details .role { color: #4a7a55 !important; }
[data-theme="ghost-protocol"] .page-header {
  border-bottom-color: rgba(0,255,65,0.12) !important;
}
[data-theme="ghost-protocol"] .btn-primary {
  background: linear-gradient(135deg, #00FF41, #00E5CC, #00FF41) !important;
  background-size: 200% 200% !important;
  color: #020c02 !important;
  font-weight: 700 !important;
  animation: ghost-btn-sweep 4s ease infinite !important;
  box-shadow: 0 0 12px rgba(0,255,65,0.3) !important;
}
[data-theme="ghost-protocol"] .btn-primary:hover {
  box-shadow: 0 0 24px rgba(0,255,65,0.6), 0 0 48px rgba(0,229,204,0.2) !important;
}
[data-theme="ghost-protocol"] .stat-label { color: #4a7a55 !important; }
[data-theme="ghost-protocol"] .stat-value {
  color: #00FF41 !important;
  animation: ghost-stat-glow 3s ease-in-out infinite !important;
}

/* ============================================================
   THEME: SAKURA LUXE (Hello Kitty luxury)
   data-theme="hello-kitty"
   Palette: petal pink · rose gold · pearl white · cerise
   ============================================================ */

/* ── Keyframes ──────────────────────────────────────────────── */
@keyframes kitty-bg-breathe {
  0%,100% { background-position: 0% 50%; }
  33%      { background-position: 60% 100%; }
  66%      { background-position: 100% 0%; }
}
@keyframes kitty-border-pulse {
  0%,100% { border-color: rgba(232,102,122,0.2); box-shadow: 0 8px 32px rgba(232,102,122,0.1), inset 0 1px 0 rgba(255,255,255,0.7); }
  50%      { border-color: rgba(201,150,122,0.38); box-shadow: 0 8px 40px rgba(232,102,122,0.17), inset 0 1px 0 rgba(255,255,255,0.85); }
}
@keyframes kitty-btn-shimmer {
  0%,100% { background-position: 0% 50%; box-shadow: 0 4px 16px rgba(232,102,122,0.38), inset 0 1px 0 rgba(255,255,255,0.2); }
  50%      { background-position: 100% 50%; box-shadow: 0 6px 24px rgba(232,102,122,0.55), 0 0 32px rgba(201,150,122,0.18); }
}
@keyframes kitty-nav-glow {
  0%,100% { box-shadow: inset 0 0 0 rgba(232,102,122,0); }
  50%      { box-shadow: inset 3px 0 18px rgba(232,102,122,0.12); }
}
@keyframes kitty-sparkle {
  0%,100% { opacity: 0.2; transform: scale(0.8) rotate(0deg); }
  50%      { opacity: 1;   transform: scale(1.3) rotate(180deg); }
}
@keyframes kitty-title-shimmer {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes kitty-stat-glow {
  0%,100% { text-shadow: 0 1px 4px rgba(232,102,122,0.1); }
  50%      { text-shadow: 0 2px 12px rgba(232,102,122,0.28), 0 0 20px rgba(201,150,122,0.12); }
}

/* ── Body + root ─────────────────────────────────────────────── */
[data-theme="hello-kitty"] body {
  background: linear-gradient(135deg, #fce4ec 0%, #fff0f5 25%, #fde8ef 50%, #fce4ec 75%, #fff5f8 100%) !important;
  background-size: 400% 400% !important;
  animation: kitty-bg-breathe 14s ease-in-out infinite !important;
}
[data-theme="hello-kitty"] #theme-bg-layer {
  opacity: 1;
}

/* ── App shell ──────────────────────────────────────────────── */
[data-theme="hello-kitty"] .app-container,
[data-theme="hello-kitty"] .main-content {
  background: transparent !important;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
[data-theme="hello-kitty"] .sidebar {
  background: linear-gradient(180deg, rgba(255,242,250,0.9) 0%, rgba(255,234,244,0.88) 100%) !important;
  backdrop-filter: blur(28px) saturate(1.7) brightness(1.04) !important;
  border-right: 1px solid rgba(232,102,122,0.22) !important;
  box-shadow: 4px 0 32px rgba(232,102,122,0.1), 1px 0 0 rgba(255,255,255,0.55) !important;
}
[data-theme="hello-kitty"] .sidebar-header {
  border-bottom: 1px solid rgba(232,102,122,0.14) !important;
}
[data-theme="hello-kitty"] .sidebar-footer {
  border-top: 1px solid rgba(232,102,122,0.14) !important;
}

/* ── Navigation ──────────────────────────────────────────────── */
[data-theme="hello-kitty"] .nav-item { color: #9b6a7a !important; }
[data-theme="hello-kitty"] .nav-item i { color: #c9967a !important; }
[data-theme="hello-kitty"] .nav-item:hover {
  background: rgba(232,102,122,0.1) !important;
  color: #3d1a26 !important;
  animation: kitty-nav-glow 2s ease-in-out infinite !important;
}
[data-theme="hello-kitty"] .nav-item:hover i { color: #e8667a !important; }
[data-theme="hello-kitty"] .nav-item.active {
  background: linear-gradient(90deg, rgba(232,102,122,0.2) 0%, rgba(201,150,122,0.12) 100%) !important;
  color: #3d1a26 !important;
  border-left: 3px solid #e8667a !important;
  box-shadow: inset 3px 0 18px rgba(232,102,122,0.12) !important;
}
[data-theme="hello-kitty"] .nav-item.active i { color: #e8667a !important; }

/* ── Cards ───────────────────────────────────────────────────── */
[data-theme="hello-kitty"] .stat-card,
[data-theme="hello-kitty"] .content-card {
  background: linear-gradient(140deg, rgba(255,255,255,0.86) 0%, rgba(255,240,248,0.78) 100%) !important;
  backdrop-filter: blur(22px) saturate(1.5) !important;
  border: 1px solid rgba(232,102,122,0.2) !important;
  box-shadow: 0 8px 32px rgba(232,102,122,0.1), 0 2px 8px rgba(201,150,122,0.07), inset 0 1px 0 rgba(255,255,255,0.82) !important;
  animation: kitty-border-pulse 7s ease-in-out infinite !important;
}

/* ── Tables ──────────────────────────────────────────────────── */
[data-theme="hello-kitty"] .table-container {
  background: rgba(255,255,255,0.72) !important;
  backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(232,102,122,0.16) !important;
  animation: kitty-border-pulse 9s ease-in-out infinite !important;
}
[data-theme="hello-kitty"] table thead tr {
  background: linear-gradient(90deg, rgba(232,102,122,0.1), rgba(201,150,122,0.09)) !important;
}
[data-theme="hello-kitty"] table thead th {
  color: #3d1a26 !important;
  border-bottom: 1px solid rgba(232,102,122,0.18) !important;
}
[data-theme="hello-kitty"] table tbody tr { color: #5a2d3a !important; }
[data-theme="hello-kitty"] table tbody tr:hover {
  background: rgba(232,102,122,0.07) !important;
}

/* ── Scrollbar sakura ────────────────────────────────────────── */
[data-theme="hello-kitty"] ::-webkit-scrollbar { width: 7px; height: 7px; }
[data-theme="hello-kitty"] ::-webkit-scrollbar-track { background: rgba(252,228,236,0.45); border-radius: 6px; }
[data-theme="hello-kitty"] ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #e8667a, #c9967a); border-radius: 6px; }
[data-theme="hello-kitty"] ::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #d4547a, #b8807a); }

/* ── Modals ──────────────────────────────────────────────────── */
[data-theme="hello-kitty"] .modal {
  background: rgba(255, 247, 252, 0.96) !important;
  backdrop-filter: blur(28px) !important;
  border: 1px solid rgba(232,102,122,0.22) !important;
  box-shadow: 0 24px 64px rgba(232,102,122,0.18), 0 0 0 1px rgba(255,255,255,0.6) !important;
}
[data-theme="hello-kitty"] .form-input {
  background: rgba(255,255,255,0.86) !important;
  border: 1px solid rgba(232,102,122,0.25) !important;
  color: #3d1a26 !important;
}
[data-theme="hello-kitty"] .form-input:focus {
  border-color: #e8667a !important;
  box-shadow: 0 0 0 3px rgba(232,102,122,0.13), 0 0 14px rgba(232,102,122,0.08) !important;
}
[data-theme="hello-kitty"] .modal-form select {
  background: rgba(255,255,255,0.88) !important;
  border: 1px solid rgba(232,102,122,0.2) !important;
  color: #3d1a26 !important;
}

/* ── User info ───────────────────────────────────────────────── */
[data-theme="hello-kitty"] .user-info {
  background: rgba(255,240,248,0.72) !important;
  border: 1px solid rgba(232,102,122,0.18) !important;
}

/* ── Typography ──────────────────────────────────────────────── */
[data-theme="hello-kitty"] .page-header h1 {
  background: linear-gradient(90deg, #c93060, #e8667a, #c9967a, #e8667a, #c93060) !important;
  background-size: 300% 100% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: kitty-title-shimmer 6s ease-in-out infinite !important;
}
[data-theme="hello-kitty"] .page-header p,
[data-theme="hello-kitty"] .user-details .role { color: #9b6a7a !important; }
[data-theme="hello-kitty"] .stat-label { color: #9b6a7a !important; }
[data-theme="hello-kitty"] .stat-value {
  color: #3d1a26 !important;
  animation: kitty-stat-glow 4s ease-in-out infinite !important;
}
[data-theme="hello-kitty"] .page-header { border-bottom-color: rgba(232,102,122,0.14) !important; }
[data-theme="hello-kitty"] .stat-icon {
  filter: drop-shadow(0 2px 6px rgba(232,102,122,0.28)) !important;
}

/* ── Button ──────────────────────────────────────────────────── */
[data-theme="hello-kitty"] .btn-primary {
  background: linear-gradient(135deg, #e8667a 0%, #c9967a 50%, #e8667a 100%) !important;
  background-size: 200% 200% !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(232,102,122,0.38), inset 0 1px 0 rgba(255,255,255,0.2) !important;
  animation: kitty-btn-shimmer 4s ease infinite !important;
}
[data-theme="hello-kitty"] .btn-primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 24px rgba(232,102,122,0.55) !important;
}


/* ── Modal Détail Demande RH ───────────────────────────────────── */
.rh-detail-modal{max-width:600px;padding:0;overflow:hidden;border-radius:16px;background:linear-gradient(160deg,#0f172a,#1e293b);border:1px solid rgba(148,163,184,0.12);box-shadow:0 32px 80px rgba(0,0,0,0.6),0 0 0 1px rgba(255,255,255,0.04)}
.rh-detail-header{padding:20px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(148,163,184,0.1)}
.rh-detail-header-left{display:flex;align-items:center;gap:12px}
.rh-detail-type-icon{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0}
.rh-detail-type-icon.avance{background:linear-gradient(135deg,rgba(16,185,129,0.2),rgba(16,185,129,0.05));border:1px solid rgba(16,185,129,0.25)}
.rh-detail-type-icon.conge{background:linear-gradient(135deg,rgba(59,130,246,0.2),rgba(59,130,246,0.05));border:1px solid rgba(59,130,246,0.25)}
.rh-detail-type-icon.certificat{background:linear-gradient(135deg,rgba(139,92,246,0.2),rgba(139,92,246,0.05));border:1px solid rgba(139,92,246,0.25)}
.rh-detail-type-icon.modification{background:linear-gradient(135deg,rgba(245,158,11,0.2),rgba(245,158,11,0.05));border:1px solid rgba(245,158,11,0.25)}
.rh-detail-type-icon.autre{background:linear-gradient(135deg,rgba(100,116,139,0.2),rgba(100,116,139,0.05));border:1px solid rgba(100,116,139,0.25)}
.rh-detail-title{font-size:15px;font-weight:600;color:#f1f5f9;margin-bottom:3px}
.rh-detail-subtitle{font-size:11px;color:#64748b;text-transform:uppercase;letter-spacing:.6px}
.rh-detail-close{width:34px;height:34px;border-radius:9px;background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.08);color:#94a3b8;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;transition:all .18s;flex-shrink:0}
.rh-detail-close:hover{background:rgba(255,255,255,0.1);color:#f1f5f9}
.rh-detail-body{padding:20px 24px;display:flex;flex-direction:column;gap:14px;max-height:65vh;overflow-y:auto}
.rh-detail-body::-webkit-scrollbar{width:4px}
.rh-detail-body::-webkit-scrollbar-track{background:transparent}
.rh-detail-body::-webkit-scrollbar-thumb{background:rgba(148,163,184,0.2);border-radius:4px}
.rh-detail-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.rh-detail-row.three{grid-template-columns:1fr 1fr 1fr}
.rh-detail-field{display:flex;flex-direction:column;gap:4px}
.rh-detail-label{font-size:10px;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.8px}
.rh-detail-value{font-size:13px;color:#e2e8f0;font-weight:500}
.rh-detail-user-card{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.07);border-radius:10px;padding:10px 14px}
.rh-detail-user-card .name{font-size:13px;font-weight:600;color:#f1f5f9}
.rh-detail-user-card .role-tag{font-size:10px;color:#64748b;margin-top:1px}
.rh-detail-amount{font-size:26px;font-weight:800;color:#10b981;letter-spacing:-.5px;line-height:1}
.rh-detail-amount span{font-size:14px;font-weight:500;color:#34d399;margin-left:4px}
.rh-detail-period{display:flex;align-items:center;gap:8px;font-size:13px;color:#e2e8f0}
.rh-detail-period .arrow{color:#64748b;font-size:10px}
.rh-detail-desc{background:rgba(15,23,42,0.5);border:1px solid rgba(148,163,184,0.1);border-radius:10px;padding:12px 14px;font-size:13px;color:#cbd5e1;line-height:1.65}
.rh-detail-status-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:20px;font-size:12px;font-weight:700;letter-spacing:.3px}
.rh-detail-status-badge.approuve{background:linear-gradient(135deg,rgba(16,185,129,0.18),rgba(16,185,129,0.06));border:1px solid rgba(16,185,129,0.35);color:#34d399}
.rh-detail-status-badge.refuse{background:linear-gradient(135deg,rgba(239,68,68,0.18),rgba(239,68,68,0.06));border:1px solid rgba(239,68,68,0.35);color:#f87171}
.rh-detail-status-badge.en_attente{background:linear-gradient(135deg,rgba(245,158,11,0.18),rgba(245,158,11,0.06));border:1px solid rgba(245,158,11,0.35);color:#fbbf24;animation:rh-pulse-badge 2.2s ease-in-out infinite}
@keyframes rh-pulse-badge{0%,100%{box-shadow:0 0 0 0 rgba(245,158,11,0.25)}50%{box-shadow:0 0 0 6px rgba(245,158,11,0)}}
.rh-detail-response{border-radius:12px;padding:16px;position:relative;overflow:hidden}
.rh-detail-response.approuve{background:linear-gradient(135deg,rgba(16,185,129,0.1),rgba(16,185,129,0.04));border:1px solid rgba(16,185,129,0.25)}
.rh-detail-response.refuse{background:linear-gradient(135deg,rgba(239,68,68,0.1),rgba(239,68,68,0.04));border:1px solid rgba(239,68,68,0.25)}
.rh-detail-response-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;margin-bottom:8px;display:flex;align-items:center;gap:6px}
.rh-detail-response.approuve .rh-detail-response-label{color:#34d399}
.rh-detail-response.refuse .rh-detail-response-label{color:#f87171}
.rh-detail-response-text{font-size:13px;line-height:1.65;color:#e2e8f0}
.rh-detail-response-meta{display:flex;align-items:center;gap:6px;margin-top:10px;padding-top:10px;border-top:1px solid rgba(255,255,255,0.06);font-size:11px;color:#64748b}
.rh-detail-response-glow{position:absolute;top:-20px;right:-20px;width:80px;height:80px;border-radius:50%;filter:blur(30px);opacity:.15}
.rh-detail-response.approuve .rh-detail-response-glow{background:#10b981}
.rh-detail-response.refuse .rh-detail-response-glow{background:#ef4444}
.rh-detail-footer{padding:16px 24px;border-top:1px solid rgba(148,163,184,0.08);display:flex;justify-content:flex-end;gap:10px}

/* ===== RECHERCHE GLOBALE ===== */
#searchOverlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); z-index: 9999;
  align-items: flex-start; justify-content: center;
  padding-top: 15vh; backdrop-filter: blur(4px);
}
#searchOverlay.open { display: flex; }
#searchPalette {
  width: 100%; max-width: 620px; background: #0f172a;
  border: 1px solid rgba(148,163,184,0.2); border-radius: 16px;
  overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}
#searchInput {
  width: 100%; background: transparent; border: none; outline: none;
  color: #f1f5f9; font-size: 18px; padding: 20px 24px;
  border-bottom: 1px solid rgba(148,163,184,0.15); box-sizing: border-box;
}
#searchInput::placeholder { color: rgba(148,163,184,0.5); }
#searchResults { max-height: 400px; overflow-y: auto; padding: 8px 0; }
.search-group-label {
  padding: 8px 20px 4px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: rgba(148,163,184,0.5);
}
.search-result-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 20px;
  cursor: pointer; transition: background 0.15s;
}
.search-result-item:hover, .search-result-item.selected {
  background: rgba(59,130,246,0.15);
}
.search-result-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.search-result-title { font-size: 14px; font-weight: 600; color: #f1f5f9; }
.search-result-sub { font-size: 12px; color: rgba(148,163,184,0.6); margin-top: 1px; }
#searchEmpty { padding: 32px 24px; text-align: center; color: rgba(148,163,184,0.4); font-size: 14px; }
#searchHint {
  padding: 10px 20px; border-top: 1px solid rgba(148,163,184,0.1);
  display: flex; gap: 16px; font-size: 11px; color: rgba(148,163,184,0.4);
}
#searchHint kbd { background: rgba(148,163,184,0.1); border-radius: 4px; padding: 1px 5px; font-family: monospace; }

/* ===== NOTIFICATIONS ===== */
#notifBell {
  position: relative; width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(148,163,184,0.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s; flex-shrink: 0;
}
#notifBell:hover { background: rgba(255,255,255,0.12); }
#notifBell i { color: #94a3b8; font-size: 14px; }
#notifBadge {
  display: none; position: absolute; top: -4px; right: -4px;
  background: #ef4444; color: #fff; font-size: 9px; font-weight: 700;
  border-radius: 10px; padding: 1px 5px; min-width: 16px;
  text-align: center; line-height: 14px;
}
#notifDropdown {
  display: none; position: absolute; bottom: 56px; left: 0; width: 320px;
  background: #0f172a; border: 1px solid rgba(148,163,184,0.2);
  border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  z-index: 8888; overflow: hidden;
}
#notifDropdown.open { display: block; }
.notif-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px 10px; border-bottom: 1px solid rgba(148,163,184,0.1);
}
.notif-header-title { font-size: 13px; font-weight: 700; color: #f1f5f9; }
.notif-mark-read { font-size: 11px; color: #3b82f6; cursor: pointer; background: none; border: none; padding: 0; }
.notif-mark-read:hover { text-decoration: underline; }
#notifList { max-height: 320px; overflow-y: auto; }
.notif-item {
  display: flex; gap: 10px; padding: 12px 16px; cursor: pointer;
  transition: background 0.15s; border-bottom: 1px solid rgba(148,163,184,0.05);
}
.notif-item:hover { background: rgba(255,255,255,0.04); }
.notif-item.unread { background: rgba(59,130,246,0.07); }
.notif-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 12px; font-weight: 600; color: #f1f5f9; }
.notif-msg { font-size: 11px; color: rgba(148,163,184,0.7); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time { font-size: 10px; color: rgba(148,163,184,0.4); margin-top: 3px; }
.notif-unread-dot { width: 7px; height: 7px; border-radius: 50%; background: #3b82f6; flex-shrink: 0; margin-top: 5px; }
#notifEmpty { padding: 24px; text-align: center; color: rgba(148,163,184,0.4); font-size: 13px; }

    /* ========================================
       CALENDRIER PARTAGÉ
       ======================================== */
    .cal-grid-header{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;margin-bottom:3px}
    .cal-grid-header>div{text-align:center;font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;padding:10px 0;background:rgba(15,23,42,0.3);border-radius:6px}
    .cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
    .cal-day{min-height:96px;background:rgba(15,23,42,0.4);border:1px solid rgba(148,163,184,0.07);border-radius:8px;padding:6px;transition:background 0.15s}
    .cal-day:hover{background:rgba(15,23,42,0.65)}
    .cal-day.today{border-color:rgba(59,130,246,0.4);background:rgba(59,130,246,0.05)}
    .cal-day.other-month{opacity:0.3}
    .cal-day-num{font-size:12px;font-weight:600;color:#64748b;margin-bottom:4px;line-height:1}
    .cal-day.today .cal-day-num{color:#3b82f6;font-weight:800;font-size:13px}
    .cal-event-badge{font-size:10px;padding:2px 6px;border-radius:8px;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:1.4}
    .cal-event-badge.conge{background:rgba(59,130,246,0.22);color:#93c5fd}
    .cal-event-badge.certificat{background:rgba(139,92,246,0.22);color:#c4b5fd}
    .cal-event-badge.modification{background:rgba(245,158,11,0.22);color:#fcd34d}
    .cal-event-badge.autre{background:rgba(16,185,129,0.22);color:#6ee7b7}
    .cal-event-badge.collectif,.cal-event-badge.formation,.cal-event-badge.reunion,.cal-event-badge.autre-evt{background:rgba(239,68,68,0.22);color:#fca5a5}
    @media(max-width:768px){
      .cal-day{min-height:60px;padding:4px}
      .cal-event-badge{display:none}
      .cal-day-num{font-size:11px}
    }


    /* P6 — Toast Stacking Perspective */
    #toast-container .t-toast:nth-last-child(2){transform:translateY(-6px) scale(0.97);opacity:0.85}
    #toast-container .t-toast:nth-last-child(3){transform:translateY(-12px) scale(0.94);opacity:0.65}
    #toast-container .t-toast:nth-last-child(n+4){transform:translateY(-16px) scale(0.91);opacity:0.4}

    /* P9 — Sidebar Collapse Desktop */
    .sidebar{transition:width 0.3s cubic-bezier(0.4,0,0.2,1)}
    .sidebar-collapse-btn{position:absolute;top:18px;right:-14px;width:28px;height:28px;border-radius:50%;background:rgba(15,23,42,0.95);border:1px solid rgba(59,130,246,0.25);color:#94a3b8;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:11px;z-index:10;transition:all 0.2s;box-shadow:0 2px 8px rgba(0,0,0,0.4)}
    .sidebar-collapse-btn:hover{background:rgba(59,130,246,0.2);color:#60a5fa;border-color:rgba(59,130,246,0.5);transform:scale(1.1)}
    .sidebar.collapsed{width:68px}
    .sidebar.collapsed .nav-item span,
    .sidebar.collapsed .user-details,
    .sidebar.collapsed .nav-section-label,
    .sidebar.collapsed .sidebar-logo{transition:opacity 0.15s;opacity:0;pointer-events:none;width:0;overflow:hidden}
    .sidebar.collapsed .nav-item{justify-content:center;padding:10px 0}
    .sidebar.collapsed .nav-item i{margin:0}
    .sidebar.collapsed .sidebar-header{padding:18px 8px 14px}
    .sidebar.collapsed .sidebar-nav{padding:10px 4px}
    .sidebar.collapsed .sidebar-footer{padding:10px 4px 12px}
    .sidebar.collapsed .user-info{justify-content:center;padding:10px 6px}
    .sidebar.collapsed .btn-logout{font-size:0;justify-content:center;padding:10px}
    .sidebar.collapsed .btn-logout i{font-size:13px}
    .sidebar.collapsed .btn-deloguer{font-size:0;justify-content:center;padding:10px}
    .sidebar.collapsed .btn-deloguer i{font-size:13px}
    .sidebar.collapsed+.main-content,.sidebar.collapsed~.main-content{margin-left:68px}
    .sidebar:not(.collapsed) .nav-item span,
    .sidebar:not(.collapsed) .user-details,
    .sidebar:not(.collapsed) .nav-section-label{transition:opacity 0.25s 0.1s}
    .sidebar-collapse-btn i{transition:transform 0.3s}
    .sidebar.collapsed .sidebar-collapse-btn i{transform:rotate(180deg)}

    /* P2 — Skeleton Loading Screens */
    .skeleton{position:relative;overflow:hidden;background:rgba(30,41,59,0.5);border-radius:8px}
    .skeleton::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,rgba(51,65,85,0.4) 50%,transparent 100%);background-size:200% 100%;animation:shimmer 1.5s ease-in-out infinite}
    @keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
    .skeleton-text{height:14px;margin-bottom:8px;border-radius:6px}
    .skeleton-text.sm{width:60%;height:11px}
    .skeleton-text.lg{width:90%;height:18px}
    .skeleton-card{height:100px;border-radius:14px;border:1px solid rgba(148,163,184,0.06)}
    .skeleton-circle{width:42px;height:42px;border-radius:11px}
    .skeleton-row{display:flex;gap:16px;margin-bottom:12px}
    .skeleton-row .skeleton{flex:1}

    /* P3 — Micro-Interactions Boutons */
    .btn-primary,.btn-login,.btn-filter,.pointage-btn,.nav-item,.btn-logout,.btn-deloguer{-webkit-tap-highlight-color:transparent}
    .btn-primary:active,.pointage-btn:active{transform:scale(0.97)!important;transition:transform 0.08s!important}
    .btn-login:active{transform:scale(0.97)!important;transition:transform 0.08s!important}
    .btn-filter:active{transform:scale(0.96);transition:transform 0.08s}
    .nav-item:active{transform:translateX(1px) scale(0.98);transition:transform 0.08s}
    .stat-card{cursor:default}
    .modal-overlay .btn-primary:active,.modal .btn-primary:active{transform:scale(0.97)!important}

    /* P4 — Transition Fluide entre Thèmes */
    body,.sidebar,.main-content,.stat-card,.modal,.nav-item,.form-input,.table-container,
    .ticket-card,.exceeded-pause-card,.page-header,.page-header h1,.stat-icon,
    .user-info,.btn-logout,.btn-deloguer,.content-card{
      transition:background-color 0.5s ease,color 0.35s ease,border-color 0.4s ease,box-shadow 0.4s ease
    }
    /* Préserver les transitions hover existantes sur les éléments interactifs */
    .nav-item{transition:all 0.18s ease,background-color 0.5s ease}
    .stat-card{transition:all 0.22s ease,background-color 0.5s ease}
    .form-input{transition:border-color 0.2s,box-shadow 0.2s,background 0.2s,background-color 0.5s ease}

    /* P7 — Cursor Glow sur Stat Cards */
    .stat-card{--glow-x:50%;--glow-y:50%}
    .stat-card>.stat-glow{position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity 0.3s;background:radial-gradient(circle 120px at var(--glow-x) var(--glow-y),rgba(59,130,246,0.12),transparent 70%)}
    .stat-card:hover>.stat-glow{opacity:1}

    /* P10 — Kanban Board */
    .kanban-container{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:16px}
    .kanban-column{background:rgba(15,23,42,0.4);border:1px solid rgba(148,163,184,0.08);border-radius:14px;min-height:300px;display:flex;flex-direction:column}
    .kanban-header{padding:14px 16px;border-bottom:1px solid rgba(148,163,184,0.06);display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700;color:#e2e8f0;border-top:3px solid transparent;border-radius:14px 14px 0 0}
    .kanban-count{font-size:11px;font-weight:700;padding:2px 8px;border-radius:10px;margin-left:auto}
    .kanban-body{padding:10px;flex:1;display:flex;flex-direction:column;gap:8px;min-height:100px;transition:background 0.2s}
    .kanban-body.kanban-drag-over{background:rgba(59,130,246,0.06);border-radius:0 0 14px 14px}
    .kanban-card{background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:10px;padding:12px;cursor:grab;transition:all 0.2s;position:relative}
    .kanban-card:hover{background:rgba(255,255,255,0.07);transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,0.3)}
    .kanban-card:active{cursor:grabbing}
    .kanban-card.kanban-dragging{opacity:0.4;transform:rotate(2deg)}
    .kanban-card-title{font-size:12px;font-weight:700;color:#e2e8f0;margin-bottom:6px}
    .kanban-card-desc{font-size:11px;color:#94a3b8;margin-bottom:8px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
    .kanban-card-meta{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#64748b}
    .kanban-empty{text-align:center;padding:30px 10px;color:#475569;font-size:12px;font-style:italic}
    @media(max-width:768px){.kanban-container{grid-template-columns:1fr 1fr}.kanban-column{min-height:200px}}
    @media(max-width:480px){.kanban-container{grid-template-columns:1fr}}

    /* P14 — Confetti */
    @keyframes confettiFall{
      0%{opacity:1;transform:translateY(0) translateX(0) rotate(0deg)}
      100%{opacity:0;transform:translateY(100vh) translateX(var(--drift,0px)) rotate(var(--rot,360deg))}
    }

    /* P15 — Zen Mode */
    body.zen-mode .sidebar{transform:translateX(-100%)!important;pointer-events:none}
    body.zen-mode .main-content{margin-left:0!important;max-width:100%}
    body.zen-mode .nav-notif-badge{display:none}
    body.zen-mode #notifBell{opacity:0.3}
    body.zen-mode #toast-container{display:none}
    body.zen-mode .page-header p{opacity:0.5}

    @media print{body{display:none!important}}
