/* EasyCall - Dark Mode — refonte v2 — Violet theme */
/* Activation : body.ctys-dark via css_inject.php */

body.ctys-dark {
  --ctys-primary:    #a78bfa;
  --ctys-dark:       #f5f0ff;
  --ctys-light:      #1a0a2e;
  --ctys-th-bg:      #120720;
  --ctys-th-txt:     #c4b5fd;
  --ctys-row-odd:    #0d0514;
  --ctys-row-even:   #160826;
  --ctys-hover:      #1e0a3c;
  --ctys-link:       #a78bfa;
  --ctys-bg-card:    #160826;
  --ctys-bg-section: #120720;
  --ctys-bg-accent:  #1e0a3c;
  --ctys-bg-err:     #2d0f0f;
  --ctys-text-main:  #f5f0ff;
  --ctys-text-muted: #c4b5fd;
  --ctys-text-sub:   #ddd6fe;
  --ctys-text-mute2: #a78bfa;
  --ctys-text-mute3: #8b5cf6;
  --ctys-text-link:  #a78bfa;
  --ctys-text-err:   #ff6b6b;
  --ctys-ok:         #4ade80;
  --ctys-border:     #3b1a60;
  --ctys-border-light: #1e0a3c;
  --ctys-bg-page:    #0d0514;
  --ctys-bg-input:   #160826;
  --ctys-bg-odd:     #0d0514;
  --ctys-bg-even:    #160826;
  --ctys-bg-hover:   #1e0a3c;
  --ctys-shadow:     0 2px 16px rgba(0,0,0,.7);
  background: #0d0514;
  color: #f5f0ff;
}

body.ctys-dark #id-right,
body.ctys-dark #id-container,
body.ctys-dark .id-container-page,
body.ctys-dark .fiche,
body.ctys-dark .fichecenter,
body.ctys-dark .div-table-responsive,
body.ctys-dark .centpercent,
body.ctys-dark .tabBar,
body.ctys-dark .llxbackground { background: #0d0514 !important; color: #f5f0ff !important; }

body.ctys-dark .llxheader,
body.ctys-dark .llxheader > *,
body.ctys-dark .llxheader table,
body.ctys-dark .llxheader td,
body.ctys-dark .llxheader tr,
body.ctys-dark #topmenu-login-dropdown,
body.ctys-dark #topmenulogin,
body.ctys-dark .topmenuloginbuttonpicto,
body.ctys-dark .dropdown-menu { background: #080310 !important; color: #f5f0ff !important; }
body.ctys-dark .llxheader a,
body.ctys-dark .llxheader span { color: #c4b5fd !important; }
body.ctys-dark .llxheader .login,
body.ctys-dark #topmenulogin .login,
body.ctys-dark .topmenuloginbuttonpicto span { color: #f5f0ff !important; font-weight: 600 !important; }
body.ctys-dark .llxheader { overflow: visible !important; }
body.ctys-dark #topmenu-login-dropdown { overflow: visible !important; min-width: 0 !important; }

body.ctys-dark #id-left,
body.ctys-dark #id-left > div,
body.ctys-dark #id-left > ul,
body.ctys-dark .side-nav,
body.ctys-dark .blockvmenu,
body.ctys-dark .blockvmenupair,
body.ctys-dark .blockvmenuimpair,
body.ctys-dark .blockvmenulast,
body.ctys-dark .blockvmenufirst,
body.ctys-dark .blockvmenuend,
body.ctys-dark .menu_contenu,
body.ctys-dark .vmenu-wrapper,
body.ctys-dark div[id^="GEN-menu"] { background: #080310 !important; border: none !important; }
body.ctys-dark #id-left { border-right: 1px solid #1a0830 !important; background: #080310 !important; }
body.ctys-dark .menu_top, body.ctys-dark .menu_end { display: none !important; }
body.ctys-dark .menu_titre { background: #080310 !important; border-bottom: 1px solid #1a0830 !important; }
body.ctys-dark .menu_contenu > div { background: #080310 !important; }
body.ctys-dark #id-left *,
body.ctys-dark #id-left a,
body.ctys-dark #id-left span,
body.ctys-dark .menu_titre a,
body.ctys-dark .blockvmenu a,
body.ctys-dark a.vmenu { color: #c4b5fd !important; }
body.ctys-dark #id-left a:hover { color: #f5f0ff !important; background: #1a0830 !important; }
body.ctys-dark .vmenusel .menu_titre,
body.ctys-dark .vmenusel .menu_titre a { color: #a78bfa !important; background: #160826 !important; border-left: 3px solid #a78bfa !important; }

body.ctys-dark .liste_titre,
body.ctys-dark tr.liste_titre th { background: #120720 !important; color: #c4b5fd !important; border-color: #1a0830 !important; }
body.ctys-dark tr.oddeven,
body.ctys-dark tr.pair,
body.ctys-dark tr.impair { background: #0d0514 !important; color: #f5f0ff !important; }
body.ctys-dark tr.oddeven:hover,
body.ctys-dark tr.pair:hover,
body.ctys-dark tr.impair:hover { background: #1e0a3c !important; }
body.ctys-dark td, body.ctys-dark th { color: #f5f0ff !important; border-color: #1a0830 !important; }
body.ctys-dark a { color: #a78bfa !important; }

body.ctys-dark input,
body.ctys-dark select,
body.ctys-dark textarea { background: #1a0828 !important; color: #e0d8f8 !important; border-color: #3b1a5a !important; }

body.ctys-dark h1, body.ctys-dark h2, body.ctys-dark h3,
body.ctys-dark h4, body.ctys-dark h5, body.ctys-dark h6 { color: #e0d8f8 !important; }
body.ctys-dark strong, body.ctys-dark b { color: #e0d8f8 !important; }
body.ctys-dark label { color: #a07cd0 !important; }

body.ctys-dark [style*="background:#fff"],
body.ctys-dark [style*="background: #fff"],
body.ctys-dark [style*="background:#ffffff"] { background: #1a0828 !important; color: #e0d8f8 !important; }
body.ctys-dark [style*="background:#f0f9fb"],
body.ctys-dark [style*="background:#e6f4f7"],
body.ctys-dark [style*="background:#cfe9ee"],
body.ctys-dark [style*="background:#f3fafc"],
body.ctys-dark [style*="background:#f4f8f9"],
body.ctys-dark [style*="background:#e0f2f6"],
body.ctys-dark [style*="background-color:#cfe9ee"] { background: #150a22 !important; color: #e0d8f8 !important; }

body.ctys-dark [style*="color:#005f6e"],
body.ctys-dark [style*="color:#004f5a"],
body.ctys-dark [style*="color:#0a1f24"],
body.ctys-dark [style*="color:#222"],
body.ctys-dark [style*="color:#333"],
body.ctys-dark [style*="color:#000"] { color: #e0d8f8 !important; }
body.ctys-dark [style*="color:#007c91"] { color: #a78bfa !important; }
body.ctys-dark [style*="color:#3a6b76"],
body.ctys-dark [style*="color:#5a8a96"] { color: #a07cd0 !important; }

/* ── FICHE D'APPEL ── */
body.ctys-dark .ctys-callbox { background: #1a0828 !important; box-shadow: 0 0 0 1.5px #8b5cf6, 0 8px 32px rgba(0,0,0,.5) !important; }
body.ctys-dark .ctys-callbox-header { background: #150a22 !important; border-bottom: 3px solid #8b5cf6 !important; }
body.ctys-dark .ctys-callbox-header::before { background: linear-gradient(180deg,#8b5cf6,#6d28d9) !important; }
body.ctys-dark .ctys-callbox-header h2 { color: #f5f0ff !important; font-size: 2.4em !important; }
body.ctys-dark .ctys-header-location { color: #a07cd0 !important; }
body.ctys-dark .ctys-callbox-body { background: #0d051a !important; }
body.ctys-dark .ctys-badge-header { background: #8b5cf6 !important; color: #0d051a !important; }
body.ctys-dark .ctys-stat-chip { background: #1a0828 !important; border-color: #3b1a5a !important; color: #a07cd0 !important; }
body.ctys-dark .ctys-enrich-btn-pappers { background: #6d28d9 !important; color: #fff !important; }
body.ctys-dark .ctys-enrich-btn-pj { background: #1a0828 !important; color: #a78bfa !important; border-color: #3b1a5a !important; }
body.ctys-dark .ctys-enrich-btn-fiche { background: #1a0828 !important; color: #a07cd0 !important; border-color: #3b1a5a !important; }
body.ctys-dark .ctys-section-lbl { color: #8b5cf6 !important; }
body.ctys-dark .ctys-section-lbl::after { background: #8b5cf6 !important; opacity: .3 !important; }
body.ctys-dark .ctys-briefing { background: #1a0828 !important; border-color: #3b1a5a !important; }
body.ctys-dark .ctys-briefing-lbl { color: #8b5cf6 !important; }
body.ctys-dark .ctys-contact-card { background: #1a0828 !important; border-color: #3b1a5a !important; }
body.ctys-dark .ctys-contact-card:hover { border-color: #8b5cf6 !important; }
body.ctys-dark .ctys-contact-avatar { background: #6d28d9 !important; }
body.ctys-dark .ctys-contact-name { color: #f5f0ff !important; font-size: 1em !important; }
body.ctys-dark .ctys-contact-func { color: #a07cd0 !important; }
body.ctys-dark .ctys-contact-mail { color: #8b6abf !important; }
body.ctys-dark .ctys-tel-btn { background: #6d28d9 !important; color: #fff !important; border: none !important; font-size: 1.3em !important; font-weight: 800 !important; }
body.ctys-dark .ctys-tel-btn:hover { background: #7c3aed !important; }
body.ctys-dark .ctys-naf-pill { background: #1a0828 !important; border-color: #3b1a5a !important; color: #a07cd0 !important; }
body.ctys-dark .ctys-history { background: #1a0828 !important; border-color: #3b1a5a !important; }
body.ctys-dark .ctys-hist-row { border-bottom-color: #3b1a5a !important; }
body.ctys-dark .ctys-hist-date { color: #e0d8f8 !important; font-size: .92em !important; }
body.ctys-dark .ctys-comment-area { background: #1a0828 !important; border-color: #3b1a5a !important; color: #e0d8f8 !important; font-size: 1em !important; }
body.ctys-dark .ctys-comment-area:focus { border-color: #8b5cf6 !important; box-shadow: 0 0 0 3px rgba(139,92,246,.15) !important; }
body.ctys-dark .ctys-result-sep { color: #a07cd0 !important; }
body.ctys-dark .ctys-result-sep::before,
body.ctys-dark .ctys-result-sep::after { background: #3b1a5a !important; }
body.ctys-dark .ctys-btn-nrp { background: #2d0505 !important; color: #f87171 !important; }
body.ctys-dark .ctys-btn-secondary { background: #2d0505 !important; color: #f87171 !important; }
body.ctys-dark .butAction { background: #6d28d9 !important; color: #fff !important; }
body.ctys-dark #ctys-classer-menu { background: #1a0828 !important; border-color: #3b1a5a !important; }
body.ctys-dark #ctys-classer-menu button { background: #1a0828 !important; color: #e0d8f8 !important; }
body.ctys-dark #ctys-classer-menu button:hover { background: #1e0a3c !important; }
body.ctys-dark #ctys-contacts-mail-wrap { background: #1a0828 !important; border-color: #3b1a5a !important; }
body.ctys-dark .ctys-form-rdv { background: #150a2a !important; border-color: #6d28d9 !important; }
body.ctys-dark .ctys-form-rappel { background: #1a1200 !important; border-color: #d97706 !important; }
body.ctys-dark .ctys-fg label { color: #a07cd0 !important; }
body.ctys-dark .ctys-fg input,
body.ctys-dark .ctys-fg select { background: #1a0828 !important; border-color: #3b1a5a !important; color: #e0d8f8 !important; }

/* Tables ctys */
body.ctys-dark .ctys-table thead th { background: #150a2a !important; color: #a07cd0 !important; border-bottom-color: #1e0a35 !important; }
body.ctys-dark .ctys-table tbody tr:nth-child(odd) { background: #0d051a !important; }
body.ctys-dark .ctys-table tbody tr:nth-child(even) { background: #1a0828 !important; }
body.ctys-dark .ctys-table tbody tr:hover { background: #1e0a3c !important; }
body.ctys-dark .ctys-table td { border-bottom-color: #1e0a35 !important; color: #e0d8f8 !important; }
body.ctys-dark .ctys-table td a { color: #a78bfa !important; }

/* Dashboard */
body.ctys-dark .ctys-section { background: #1a0828 !important; border-color: #3b1a5a !important; }
body.ctys-dark .ctys-section h3 { color: #a07cd0 !important; }
body.ctys-dark .ctys-teleop-nom { color: #e0d8f8 !important; }
body.ctys-dark .ctys-teleop-row { border-bottom-color: #1e0a35 !important; }
body.ctys-dark .ctys-bar-wrap { background: #1e0a35 !important; }
body.ctys-dark .ctys-teleop-ca { color: #a78bfa !important; }
body.ctys-dark .ctys-kpi { background: #1a0828 !important; border-top-color: #6d28d9 !important; }
body.ctys-dark .ctys-kpi-n { color: #a78bfa !important; }

/* Dashboard v4 */
body.ctys-dark .ctys-card { background: #160826 !important; border-color: #3b1a60 !important; }
body.ctys-dark .ctys-card-lbl { color: #c4b5fd !important; }
body.ctys-dark .ctys-card-sub { color: #8b5cf6 !important; }
body.ctys-dark .ctys-section { background: #160826 !important; border-color: #3b1a60 !important; }
body.ctys-dark .ctys-section-hd { border-bottom-color: #3b1a60 !important; }
body.ctys-dark .ctys-section-title { color: #a78bfa !important; }
body.ctys-dark .ctys-section-sub { color: #a78bfa !important; }
body.ctys-dark .ctys-t thead th { background: #120720 !important; color: #c4b5fd !important; border-bottom-color: #3b1a60 !important; }
body.ctys-dark .ctys-t tbody td { border-bottom-color: #1a0830 !important; color: #f5f0ff !important; }
body.ctys-dark .ctys-t tbody tr:hover { background: #1e0a3c !important; }
body.ctys-dark .ctys-t tbody tr.me { background: #1a0f30 !important; }
body.ctys-dark .ctys-t tfoot td { background: #120720 !important; border-top-color: #3b1a60 !important; color: #f5f0ff !important; }
body.ctys-dark .ctys-op-name { color: #f5f0ff !important; }
body.ctys-dark .ctys-camp-name a { color: #a78bfa !important; }
body.ctys-dark .ctys-ca { color: #a78bfa !important; }
body.ctys-dark .ctys-muted { color: #8b5cf6 !important; }
body.ctys-dark .ctys-nb-appels { color: #a78bfa !important; }
body.ctys-dark .ctys-taux-d-frac { color: #a78bfa !important; }
body.ctys-dark .ctys-taux-d-bar-wrap { background: #3b1a60 !important; }

/* Bannière dashboard */
body.ctys-dark .ctys-banner { background: linear-gradient(135deg,#0d0514 0%,#1a0535 55%,#2d0f55 100%) !important; }
body.ctys-dark .ctys-mois-sel { background: rgba(109,40,217,.35) !important; border-color: rgba(167,139,250,.25) !important; }

/* Campagnes */
body.ctys-dark .ctys-camp-card { background: linear-gradient(135deg,#5b21b6,#7c3aed) !important; }
body.ctys-dark .ctys-camp-card:hover { background: linear-gradient(135deg,#4c1d95,#6d28d9) !important; }

body.ctys-dark .ctys-queue { background: #150a2a !important; border-color: #6d28d9 !important; color: #a07cd0 !important; }
body.ctys-dark .ctys-dropzone { background: #1a0828 !important; border-color: #6d28d9 !important; }
body.ctys-dark hr { border-color: #1e0a35 !important; opacity: .5 !important; }

/* Menu haut Dolibarr */
body.ctys-dark .tmenu,
body.ctys-dark .tmenubold,
body.ctys-dark .tmenusel,
body.ctys-dark td.tmenu,
body.ctys-dark td.tmenubold,
body.ctys-dark td.tmenusel { color: #ddd6fe !important; background: #080310 !important; }
body.ctys-dark td.tmenusel,
body.ctys-dark .tmenusel { color: #a78bfa !important; font-weight: 700 !important; }
body.ctys-dark .topmenu-login-picto,
body.ctys-dark .topmenu-login-picto *,
body.ctys-dark span.login { color: #f5f0ff !important; white-space: nowrap !important; }
body.ctys-dark #topmenu-search-dropdown,
body.ctys-dark #topmenu-bookmark-dropdown { color: #c4b5fd !important; }

/* Rappels */
body.ctys-dark .ctys-acc-header,
body.ctys-dark .ctys-accordion-header,
body.ctys-dark [class*="ctys-acc"],
body.ctys-dark [class*="rappel-group"],
body.ctys-dark [class*="ctys-rappel"] { background: #160826 !important; color: #f5f0ff !important; border-color: #3b1a60 !important; }
body.ctys-dark [style*="background:#fff"],
body.ctys-dark [style*="background: #fff"],
body.ctys-dark [style*="background: white"],
body.ctys-dark [style*="background:white"] { background: #160826 !important; color: #f5f0ff !important; }
body.ctys-dark [style*="background:#f"] { background: #120720 !important; }
body.ctys-dark [style*="color:#1e293b"],
body.ctys-dark [style*="color:#333"],
body.ctys-dark [style*="color:#222"] { color: #f5f0ff !important; }
body.ctys-dark [style*="border-color:#e"] { border-color: #3b1a60 !important; }
body.ctys-dark [style*="border: 1px solid #e"],
body.ctys-dark [style*="border:1px solid #e"] { border-color: #3b1a60 !important; }

body.ctys-dark [style*="background:#fff"][style*="border-left:4px solid"] { background: #1a0828 !important; color: #e0d8f8 !important; }
body.ctys-dark [style*="background:#fff"][style*="border-radius:12px"] { background: #1a0828 !important; color: #e0d8f8 !important; }
body.ctys-dark [style*="background: #fff"] { background: #1a0828 !important; color: #e0d8f8 !important; }

/* Clôturés */
body.ctys-dark .ctys-clos-row { background: #1a0828 !important; border-color: #3b1a60 !important; color: #e0d8f8 !important; }
body.ctys-dark .ctys-clos-row:hover { background: #1e0a3c !important; box-shadow: 0 4px 14px rgba(0,0,0,.4) !important; }
body.ctys-dark .ctys-btn-outline { background: #160826 !important; border-color: #3b1a60 !important; color: #a78bfa !important; }
body.ctys-dark .ctys-btn-outline:hover { background: #1a0828 !important; }
body.ctys-dark select, body.ctys-dark input[type=text] { background: #1a0828 !important; border-color: #3b1a60 !important; color: #e0d8f8 !important; }
body.ctys-dark [style*="background:#dcfce7"] { background: #0a2a1a !important; color: #4ade80 !important; border-color: #166534 !important; }
body.ctys-dark .ctys-clos-row * { color: #e0d8f8 !important; }
body.ctys-dark .ctys-clos-row a { color: #a78bfa !important; }
