/* Contactys CRM - Dark Mode — refonte v2 */
/* Activation : body.ctys-dark via css_inject.php */

body.ctys-dark {
  --ctys-primary:    #00b4d8;
  --ctys-dark:       #d0eef8;
  --ctys-light:      #0e2535;
  --ctys-th-bg:      #0a1e2a;
  --ctys-th-txt:     #5db8cc;
  --ctys-row-odd:    #08121a;
  --ctys-row-even:   #0d1e28;
  --ctys-hover:      #112233;
  --ctys-link:       #00b4d8;
  --ctys-bg-card:    #0d1e28;
  --ctys-bg-section: #0a1922;
  --ctys-bg-accent:  #112233;
  --ctys-bg-err:     #2d0f0f;
  --ctys-text-main:  #d0eef8;
  --ctys-text-muted: #5db8cc;
  --ctys-text-sub:   #a0d4e4;
  --ctys-text-mute2: #4a9ab0;
  --ctys-text-mute3: #3a8098;
  --ctys-text-link:  #00b4d8;
  --ctys-text-err:   #f87171;
  --ctys-ok:         #4ade80;
  --ctys-border:     #1e4a5a;
  --ctys-border-light: #112233;
  --ctys-bg-page:    #08121a;
  --ctys-bg-input:   #0d1e28;
  --ctys-bg-odd:     #08121a;
  --ctys-bg-even:    #0d1e28;
  --ctys-bg-hover:   #112233;
  --ctys-shadow:     0 2px 12px rgba(0,0,0,.5);
  background: #08121a;
  color: #d0eef8;
}

body.ctys-dark #id-right,
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 { background: #08121a !important; color: #d0eef8 !important; }

body.ctys-dark .llxheader { background: #060e14 !important; }
body.ctys-dark .llxheader a,
body.ctys-dark .llxheader span { color: #5db8cc !important; }

body.ctys-dark #id-left,
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 { background: #060e14 !important; border: none !important; }
body.ctys-dark #id-left { border-right: 1px solid #0e2535 !important; }
body.ctys-dark .menu_top, body.ctys-dark .menu_end { display: none !important; }
body.ctys-dark .menu_titre { background: #060e14 !important; border-bottom: 1px solid #0e2535 !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: #5db8cc !important; }
body.ctys-dark #id-left a:hover { color: #d0eef8 !important; background: #0e2535 !important; }
body.ctys-dark .vmenusel .menu_titre,
body.ctys-dark .vmenusel .menu_titre a { color: #00b4d8 !important; background: #0d1e28 !important; border-left: 3px solid #00b4d8 !important; }

body.ctys-dark .liste_titre,
body.ctys-dark tr.liste_titre th { background: #0a1e2a !important; color: #5db8cc !important; border-color: #0e2535 !important; }
body.ctys-dark tr.oddeven,
body.ctys-dark tr.pair,
body.ctys-dark tr.impair { background: #08121a !important; color: #d0eef8 !important; }
body.ctys-dark tr.oddeven:hover,
body.ctys-dark tr.pair:hover,
body.ctys-dark tr.impair:hover { background: #112233 !important; }
body.ctys-dark td, body.ctys-dark th { color: #d0eef8 !important; border-color: #0e2535 !important; }
body.ctys-dark a { color: #00b4d8 !important; }

body.ctys-dark input,
body.ctys-dark select,
body.ctys-dark textarea { background: #0d1e28 !important; color: #d0eef8 !important; border-color: #1e4a5a !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: #d0eef8 !important; }
body.ctys-dark strong, body.ctys-dark b { color: #d0eef8 !important; }
body.ctys-dark label { color: #5db8cc !important; }

body.ctys-dark [style*="background:#fff"],
body.ctys-dark [style*="background: #fff"],
body.ctys-dark [style*="background:#ffffff"] { background: #0d1e28 !important; color: #d0eef8 !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: #0a1922 !important; color: #d0eef8 !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: #d0eef8 !important; }
body.ctys-dark [style*="color:#007c91"] { color: #00b4d8 !important; }
body.ctys-dark [style*="color:#3a6b76"],
body.ctys-dark [style*="color:#5a8a96"] { color: #5db8cc !important; }

/* ── FICHE D'APPEL ── */
body.ctys-dark .ctys-callbox { background: #0d1e28 !important; box-shadow: 0 0 0 1.5px #00b4d8, 0 8px 32px rgba(0,0,0,.5) !important; }
body.ctys-dark .ctys-callbox-header { background: #0a1922 !important; border-bottom: 3px solid #00b4d8 !important; }
body.ctys-dark .ctys-callbox-header::before { background: linear-gradient(180deg,#00b4d8,#007c91) !important; }
body.ctys-dark .ctys-callbox-header h2 { color: #f0faff !important; font-size: 2.4em !important; }
body.ctys-dark .ctys-header-location { color: #5db8cc !important; }
body.ctys-dark .ctys-callbox-body { background: #08121a !important; }
body.ctys-dark .ctys-badge-header { background: #00b4d8 !important; color: #08121a !important; }
body.ctys-dark .ctys-stat-chip { background: #0d1e28 !important; border-color: #1e4a5a !important; color: #5db8cc !important; }
body.ctys-dark .ctys-enrich-btn-pappers { background: #007c91 !important; color: #fff !important; }
body.ctys-dark .ctys-enrich-btn-pj { background: #0d1e28 !important; color: #00b4d8 !important; border-color: #1e4a5a !important; }
body.ctys-dark .ctys-enrich-btn-fiche { background: #0d1e28 !important; color: #5db8cc !important; border-color: #1e4a5a !important; }
body.ctys-dark .ctys-section-lbl { color: #00b4d8 !important; }
body.ctys-dark .ctys-section-lbl::after { background: #00b4d8 !important; opacity: .3 !important; }
body.ctys-dark .ctys-briefing { background: #0d1e28 !important; border-color: #1e4a5a !important; }
body.ctys-dark .ctys-briefing-lbl { color: #00b4d8 !important; }
body.ctys-dark .ctys-contact-card { background: #0d1e28 !important; border-color: #1e4a5a !important; }
body.ctys-dark .ctys-contact-card:hover { border-color: #00b4d8 !important; }
body.ctys-dark .ctys-contact-avatar { background: #007c91 !important; }
body.ctys-dark .ctys-contact-name { color: #f0faff !important; font-size: 1em !important; }
body.ctys-dark .ctys-contact-func { color: #5db8cc !important; }
body.ctys-dark .ctys-contact-mail { color: #4a9ab0 !important; }
body.ctys-dark .ctys-tel-btn { background: #007c91 !important; color: #fff !important; border: none !important; font-size: 1.3em !important; font-weight: 800 !important; }
body.ctys-dark .ctys-tel-btn:hover { background: #009ab5 !important; }
body.ctys-dark .ctys-naf-pill { background: #0d1e28 !important; border-color: #1e4a5a !important; color: #5db8cc !important; }
body.ctys-dark .ctys-history { background: #0d1e28 !important; border-color: #1e4a5a !important; }
body.ctys-dark .ctys-hist-row { border-bottom-color: #1e4a5a !important; }
body.ctys-dark .ctys-hist-date { color: #d0eef8 !important; font-size: .92em !important; }
body.ctys-dark .ctys-comment-area { background: #0d1e28 !important; border-color: #1e4a5a !important; color: #d0eef8 !important; font-size: 1em !important; }
body.ctys-dark .ctys-comment-area:focus { border-color: #00b4d8 !important; box-shadow: 0 0 0 3px rgba(0,180,216,.15) !important; }
body.ctys-dark .ctys-result-sep { color: #5db8cc !important; }
body.ctys-dark .ctys-result-sep::before,
body.ctys-dark .ctys-result-sep::after { background: #1e4a5a !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: #007c91 !important; color: #fff !important; }
body.ctys-dark #ctys-classer-menu { background: #0d1e28 !important; border-color: #1e4a5a !important; }
body.ctys-dark #ctys-classer-menu button { background: #0d1e28 !important; color: #d0eef8 !important; }
body.ctys-dark #ctys-classer-menu button:hover { background: #112233 !important; }
body.ctys-dark #ctys-contacts-mail-wrap { background: #0d1e28 !important; border-color: #1e4a5a !important; }
body.ctys-dark .ctys-form-rdv { background: #0a1e2a !important; border-color: #007c91 !important; }
body.ctys-dark .ctys-form-rappel { background: #1a1200 !important; border-color: #d97706 !important; }
body.ctys-dark .ctys-fg label { color: #5db8cc !important; }
body.ctys-dark .ctys-fg input,
body.ctys-dark .ctys-fg select { background: #0d1e28 !important; border-color: #1e4a5a !important; color: #d0eef8 !important; }

/* Tables ctys */
body.ctys-dark .ctys-table thead th { background: #0a1e2a !important; color: #5db8cc !important; border-bottom-color: #0e2535 !important; }
body.ctys-dark .ctys-table tbody tr:nth-child(odd) { background: #08121a !important; }
body.ctys-dark .ctys-table tbody tr:nth-child(even) { background: #0d1e28 !important; }
body.ctys-dark .ctys-table tbody tr:hover { background: #112233 !important; }
body.ctys-dark .ctys-table td { border-bottom-color: #0e2535 !important; color: #d0eef8 !important; }
body.ctys-dark .ctys-table td a { color: #00b4d8 !important; }

/* Dashboard */
body.ctys-dark .ctys-section { background: #0d1e28 !important; }
body.ctys-dark .ctys-section h3 { color: #5db8cc !important; }
body.ctys-dark .ctys-teleop-nom { color: #d0eef8 !important; }
body.ctys-dark .ctys-teleop-row { border-bottom-color: #0e2535 !important; }
body.ctys-dark .ctys-bar-wrap { background: #0e2535 !important; }
body.ctys-dark .ctys-teleop-ca { color: #00b4d8 !important; }
body.ctys-dark .ctys-kpi { background: #0d1e28 !important; border-top-color: #007c91 !important; }
body.ctys-dark .ctys-kpi-n { color: #00b4d8 !important; }

/* Campagnes */
body.ctys-dark .ctys-camp-card { background: linear-gradient(135deg,#005f6e,#007c91) !important; }
body.ctys-dark .ctys-camp-card:hover { background: linear-gradient(135deg,#004d5a,#006a7d) !important; }

body.ctys-dark .ctys-queue { background: #0a1e2a !important; border-color: #007c91 !important; color: #5db8cc !important; }
body.ctys-dark .ctys-dropzone { background: #0d1e28 !important; border-color: #007c91 !important; }
body.ctys-dark hr { border-color: #0e2535 !important; opacity: .5 !important; }
