/**
 * SMS Gateway — coquille complète type Next.js / Geist (noir, gris, blanc uniquement).
 * Chargé après AdminLTE + custom.css. Préfixe principal : body.nx-shell
 * (Inter est chargé dans includes/head.php)
 */
:root {
  --nx-bg: #fafafa;
  --nx-surface: #ffffff;
  --nx-elevated: #ffffff;
  --nx-border: #e5e5e5;
  --nx-border-strong: #d4d4d4;
  --nx-text: #0a0a0a;
  --nx-text-secondary: #525252;
  --nx-text-muted: #737373;
  --nx-text-faint: #a3a3a3;
  --nx-topbar-bg: #0a0a0a;
  --nx-topbar-fg: #fafafa;
  --nx-sidebar-bg: #141414;
  --nx-sidebar-border: rgba(255, 255, 255, 0.06);
  --nx-sidebar-item: #a3a3a3;
  --nx-sidebar-item-hover: #fafafa;
  --nx-sidebar-hover-bg: rgba(255, 255, 255, 0.06);
  --nx-sidebar-active-bg: rgba(255, 255, 255, 0.1);
  --nx-footer-bg: #f5f5f5;
  --nx-radius: 14px;
  --nx-radius-sm: 10px;
  --nx-radius-xs: 8px;
  --nx-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --nx-shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --nx-focus-ring: rgba(10, 10, 10, 0.18);
  --nx-topbar-h: 56px;
}

body.nx-shell {
  background: var(--nx-bg) !important;
}

html {
  font-size: 16px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.login-page,
body.register-page,
body.nx-install-page {
  background: var(--nx-bg) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  min-height: 100vh;
}

/* ——— Layout : même principe que gateway-redesign ———
   On ne touche PAS au positionnement AdminLTE (fixed header/sidebar, margin-left du contenu).
   Uniquement couleurs, bordures, typo. ——— */
body.nx-shell .wrapper {
  background: var(--nx-bg) !important;
}

body.nx-shell .main-header {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body.nx-shell .main-header .logo,
body.nx-shell .main-header .logo:hover,
body.nx-shell.skin-blue .main-header .logo,
body.nx-shell.skin-blue .main-header .logo:hover,
body.nx-shell.skin-black .main-header .logo,
body.nx-shell.skin-black .main-header .logo:hover,
body.nx-shell.skin-purple .main-header .logo,
body.nx-shell.skin-purple .main-header .logo:hover,
body.nx-shell.skin-green .main-header .logo,
body.nx-shell.skin-green .main-header .logo:hover,
body.nx-shell.skin-red .main-header .logo,
body.nx-shell.skin-red .main-header .logo:hover,
body.nx-shell.skin-yellow .main-header .logo,
body.nx-shell.skin-yellow .main-header .logo:hover {
  background-color: var(--nx-sidebar-bg) !important;
  color: var(--nx-topbar-fg) !important;
}

body.nx-shell .main-header .logo #application-title {
  color: var(--nx-topbar-fg) !important;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
}

body.nx-shell .main-header .logo img {
  max-height: 30px;
  width: auto;
  border-radius: 6px;
}

body.nx-shell .main-header .logo {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start;
  height: 56px !important;
}

body.nx-shell .main-header .logo .logo-lg {
  display: flex !important;
  align-items: center;
  height: 100%;
  width: 100%;
  line-height: 1;
}

body.nx-shell .main-header .logo .logo-mini {
  display: none !important;
}

body.nx-shell .nx-brand-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  transform: translateY(0);
}

body.nx-shell .nx-brand-user__avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex: 0 0 30px;
}

body.nx-shell .nx-brand-user__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.nx-shell .nx-brand-user__name {
  color: var(--nx-topbar-fg);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.nx-shell .nx-brand-user__status {
  color: var(--nx-text-faint);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

body.nx-shell .main-header .navbar.navbar-static-top,
body.nx-shell.skin-blue .main-header .navbar,
body.nx-shell.skin-black .main-header .navbar,
body.nx-shell.skin-purple .main-header .navbar,
body.nx-shell.skin-green .main-header .navbar,
body.nx-shell.skin-red .main-header .navbar,
body.nx-shell.skin-yellow .main-header .navbar {
  background-color: var(--nx-topbar-bg) !important;
}

body.nx-shell .main-header .navbar .nav > li > a,
body.nx-shell .main-header .navbar .sidebar-toggle {
  color: rgba(250, 250, 250, 0.85) !important;
}

body.nx-shell .main-header .navbar .nav > li > a:hover,
body.nx-shell .main-header .navbar .nav > li > a:active,
body.nx-shell .main-header .navbar .nav > li > a:focus,
body.nx-shell .main-header .navbar .sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--nx-topbar-fg) !important;
}

body.nx-shell .navbar-form {
  border: 0 !important;
  margin: 0 !important;
  padding: 4px !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.nx-shell .navbar-custom-menu .navbar-nav > li {
  border: 0 !important;
  box-shadow: none !important;
}

body.nx-shell .navbar-custom-menu .navbar-nav > li > .navbar-form.nx-lang {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.nx-shell .navbar-custom-menu,
body.nx-shell .navbar-custom-menu .navbar-nav,
body.nx-shell .navbar-custom-menu .navbar-nav > li {
  display: flex;
  align-items: center;
  height: var(--nx-topbar-h);
}

body.nx-shell .navbar-custom-menu .navbar-nav {
  gap: 6px;
  margin: 0 !important;
}

body.nx-shell .nx-lang {
  position: relative;
}

body.nx-shell .nx-lang-trigger {
  height: 38px;
  border-radius: var(--nx-radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--nx-topbar-fg);
  font-size: 12px;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  padding: 0 12px;
  outline: none;
}

body.nx-shell .nx-lang-trigger:hover,
body.nx-shell .nx-lang-trigger:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

body.nx-shell .nx-lang-current {
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.nx-shell .nx-lang-chevron {
  width: 14px;
  height: 14px;
  opacity: 0.75;
}

body.nx-shell .nx-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--nx-radius-xs);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 6px;
  z-index: 2000;
}

body.nx-shell .nx-lang-option {
  width: 100%;
  border: 0;
  border-radius: var(--nx-radius-xs);
  background: transparent;
  color: #f5f5f5;
  padding: 8px 10px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

body.nx-shell .nx-lang-option:hover,
body.nx-shell .nx-lang-option:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  outline: none;
}

body.nx-shell .nx-lang-option.is-selected {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

body.nx-shell .main-header .navbar .sidebar-toggle .icon-bar {
  background: var(--nx-topbar-fg) !important;
}

body.nx-shell .navbar-static-top .user-image {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  width: 32px;
  height: 32px;
}

body.nx-shell .navbar-custom-menu .navbar-nav > li > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 38px !important;
  min-height: 38px;
  line-height: 1 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.nx-shell .nx-profile-trigger {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 4px !important;
  border-radius: var(--nx-radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: var(--nx-topbar-fg) !important;
}

body.nx-shell .nx-profile-trigger:hover,
body.nx-shell .nx-profile-trigger:focus {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.24);
}

body.nx-shell .nx-profile-trigger .user-image {
  margin-right: 0 !important;
}

body.nx-shell .nx-profile-trigger .user-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--nx-topbar-fg);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.nx-shell .nx-profile-trigger__chevron {
  width: 14px;
  height: 14px;
  opacity: 0.75;
  flex: 0 0 14px;
}

body.nx-shell .nx-theme-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px !important;
  border-radius: var(--nx-radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--nx-topbar-fg) !important;
}

body.nx-shell .nx-theme-toggle:hover,
body.nx-shell .nx-theme-toggle:focus {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.24);
}

body.nx-shell .nx-theme-toggle__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.nx-shell .nx-logout-trigger {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0 !important;
  border-radius: var(--nx-radius-xs);
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.18) !important;
  color: #fecaca !important;
}

body.nx-shell .nx-logout-trigger:hover,
body.nx-shell .nx-logout-trigger:focus {
  background: rgba(239, 68, 68, 0.32) !important;
  border-color: rgba(239, 68, 68, 0.8);
  color: #ffffff !important;
}

body.nx-shell .nx-logout-trigger .nx-nav-icon {
  width: 16px;
  height: 16px;
}

body.nx-shell .main-sidebar,
body.nx-shell .left-side,
body.nx-shell.skin-blue .main-sidebar,
body.nx-shell.skin-blue .left-side,
body.nx-shell.skin-purple .main-sidebar,
body.nx-shell.skin-green .main-sidebar,
body.nx-shell.skin-red .main-sidebar,
body.nx-shell.skin-yellow .main-sidebar,
body.nx-shell.skin-black .main-sidebar {
  background: var(--nx-sidebar-bg) !important;
  border-right: 1px solid var(--nx-sidebar-border) !important;
}

body.nx-shell.skin-blue .sidebar a,
body.nx-shell.skin-purple .sidebar a,
body.nx-shell.skin-green .sidebar a,
body.nx-shell.skin-red .sidebar a,
body.nx-shell.skin-yellow .sidebar a,
body.nx-shell.skin-black .sidebar a {
  color: var(--nx-sidebar-item) !important;
}

body.nx-shell.skin-blue .sidebar-menu .treeview-menu > li > a,
body.nx-shell.skin-purple .sidebar-menu .treeview-menu > li > a,
body.nx-shell.skin-green .sidebar-menu .treeview-menu > li > a,
body.nx-shell.skin-red .sidebar-menu .treeview-menu > li > a,
body.nx-shell.skin-yellow .sidebar-menu .treeview-menu > li > a,
body.nx-shell.skin-black .sidebar-menu .treeview-menu > li > a {
  color: var(--nx-sidebar-item) !important;
}

body.nx-shell.skin-blue .sidebar-menu .treeview-menu > li.active > a,
body.nx-shell.skin-blue .sidebar-menu .treeview-menu > li > a:hover,
body.nx-shell.skin-purple .sidebar-menu .treeview-menu > li.active > a,
body.nx-shell.skin-purple .sidebar-menu .treeview-menu > li > a:hover,
body.nx-shell.skin-green .sidebar-menu .treeview-menu > li.active > a,
body.nx-shell.skin-green .sidebar-menu .treeview-menu > li > a:hover,
body.nx-shell.skin-red .sidebar-menu .treeview-menu > li.active > a,
body.nx-shell.skin-red .sidebar-menu .treeview-menu > li > a:hover,
body.nx-shell.skin-yellow .sidebar-menu .treeview-menu > li.active > a,
body.nx-shell.skin-yellow .sidebar-menu .treeview-menu > li > a:hover,
body.nx-shell.skin-black .sidebar-menu .treeview-menu > li.active > a,
body.nx-shell.skin-black .sidebar-menu .treeview-menu > li > a:hover {
  color: var(--nx-topbar-fg) !important;
}

body.nx-shell.skin-blue .sidebar-menu > li > .treeview-menu,
body.nx-shell.skin-purple .sidebar-menu > li > .treeview-menu,
body.nx-shell.skin-green .sidebar-menu > li > .treeview-menu,
body.nx-shell.skin-red .sidebar-menu > li > .treeview-menu,
body.nx-shell.skin-yellow .sidebar-menu > li > .treeview-menu,
body.nx-shell.skin-black .sidebar-menu > li > .treeview-menu {
  background: rgba(0, 0, 0, 0.2) !important;
}

/* Annuler les teintes bleu/vert du skin sur le menu latéral */
body.nx-shell.skin-blue .sidebar-menu > li:hover > a,
body.nx-shell.skin-blue .sidebar-menu > li.active > a,
body.nx-shell.skin-blue .sidebar-menu > li.menu-open > a,
body.nx-shell.skin-purple .sidebar-menu > li:hover > a,
body.nx-shell.skin-purple .sidebar-menu > li.active > a,
body.nx-shell.skin-purple .sidebar-menu > li.menu-open > a,
body.nx-shell.skin-green .sidebar-menu > li:hover > a,
body.nx-shell.skin-green .sidebar-menu > li.active > a,
body.nx-shell.skin-green .sidebar-menu > li.menu-open > a,
body.nx-shell.skin-red .sidebar-menu > li:hover > a,
body.nx-shell.skin-red .sidebar-menu > li.active > a,
body.nx-shell.skin-red .sidebar-menu > li.menu-open > a,
body.nx-shell.skin-yellow .sidebar-menu > li:hover > a,
body.nx-shell.skin-yellow .sidebar-menu > li.active > a,
body.nx-shell.skin-yellow .sidebar-menu > li.menu-open > a,
body.nx-shell.skin-black .sidebar-menu > li:hover > a,
body.nx-shell.skin-black .sidebar-menu > li.active > a,
body.nx-shell.skin-black .sidebar-menu > li.menu-open > a {
  background: var(--nx-sidebar-hover-bg) !important;
  color: var(--nx-topbar-fg) !important;
  border-left-color: transparent !important;
}

body.nx-shell.skin-blue .sidebar-menu > li.active > a,
body.nx-shell.skin-purple .sidebar-menu > li.active > a,
body.nx-shell.skin-green .sidebar-menu > li.active > a,
body.nx-shell.skin-red .sidebar-menu > li.active > a,
body.nx-shell.skin-yellow .sidebar-menu > li.active > a,
body.nx-shell.skin-black .sidebar-menu > li.active > a {
  background: var(--nx-sidebar-active-bg) !important;
}

body.nx-shell .content-wrapper,
body.nx-shell .right-side,
body.nx-shell.skin-blue .content-wrapper,
body.nx-shell.skin-purple .content-wrapper,
body.nx-shell.skin-green .content-wrapper,
body.nx-shell.skin-red .content-wrapper,
body.nx-shell.skin-yellow .content-wrapper,
body.nx-shell.skin-black .content-wrapper {
  background: var(--nx-bg) !important;
  overflow-x: hidden !important;
  border-top: 0 !important;
}

/* Important : ne jamais forcer margin-left sur .content-wrapper / .main-footer (géré par AdminLTE) */

/* Sidebar minimisee un peu plus large pour les icones */
@media (min-width: 768px) {
  body.nx-shell.sidebar-mini.sidebar-collapse .main-sidebar,
  body.nx-shell.sidebar-mini.sidebar-collapse .left-side {
    width: 76px !important;
  }

  body.nx-shell.sidebar-mini.sidebar-collapse .main-header .logo {
    width: 76px !important;
  }

  body.nx-shell.sidebar-mini.sidebar-collapse .main-header .navbar.navbar-static-top {
    margin-left: 76px !important;
  }

  body.nx-shell.sidebar-mini.sidebar-collapse .main-header .logo .nx-brand-user {
    width: 100%;
    justify-content: center;
  }

  body.nx-shell.sidebar-mini.sidebar-collapse .main-header .logo .nx-brand-user__meta {
    display: none !important;
  }

  body.nx-shell.sidebar-mini.sidebar-collapse .content-wrapper,
  body.nx-shell.sidebar-mini.sidebar-collapse .main-footer {
    margin-left: 76px !important;
  }

  body.nx-shell.sidebar-mini.sidebar-collapse .sidebar-menu > li > a {
    padding-left: 18px !important;
    padding-right: 18px !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  /* Mode minimisé strict: icones uniquement, aucun bouton "grand" au hover */
  body.nx-shell.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span,
  body.nx-shell.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > .pull-right-container {
    display: none !important;
  }

  body.nx-shell.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > .nx-nav-icon {
    margin: 0 !important;
  }

  body.nx-shell.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span,
  body.nx-shell.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > .pull-right-container {
    display: none !important;
  }

  body.nx-shell.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a,
  body.nx-shell.sidebar-mini.sidebar-collapse .sidebar-menu > li > a:focus {
    background: var(--nx-sidebar-hover-bg) !important;
    color: var(--nx-topbar-fg) !important;
    transform: none !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  body.nx-shell.sidebar-mini.sidebar-collapse .sidebar-menu > li.active > a,
  body.nx-shell.sidebar-mini.sidebar-collapse .sidebar-menu > li.menu-open > a {
    background: var(--nx-sidebar-active-bg) !important;
    color: var(--nx-topbar-fg) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  }

  body.nx-shell.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a,
  body.nx-shell.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
    width: 76px !important;
  }

  /* Override fort AdminLTE: jamais de texte visible en mode minimisé */
  body.nx-shell.sidebar-mini.sidebar-collapse .main-sidebar .sidebar .sidebar-menu > li > a,
  body.nx-shell.sidebar-mini.sidebar-collapse .main-sidebar .sidebar .sidebar-menu > li:hover > a {
    width: 52px !important;
    max-width: 52px !important;
    min-width: 52px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    border-radius: 10px !important;
  }

  body.nx-shell.sidebar-mini.sidebar-collapse .main-sidebar .sidebar .sidebar-menu > li > a > span,
  body.nx-shell.sidebar-mini.sidebar-collapse .main-sidebar .sidebar .sidebar-menu > li:hover > a > span,
  body.nx-shell.sidebar-mini.sidebar-collapse .main-sidebar .sidebar .sidebar-menu > li > a > .pull-right-container,
  body.nx-shell.sidebar-mini.sidebar-collapse .main-sidebar .sidebar .sidebar-menu > li:hover > a > .pull-right-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
}

.nx-shell .user-panel {
  display: none !important;
}

.nx-shell .user-panel .user-name {
  color: var(--nx-topbar-fg) !important;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.nx-shell .user-panel .info a {
  color: var(--nx-text-faint) !important;
  font-size: 12px;
}

.nx-shell .user-panel .text-success {
  color: var(--nx-text-faint) !important;
}

.nx-shell .sidebar-menu {
  padding: 8px 10px;
  margin-top: 12px;
}

.nx-shell .sidebar-menu > li > a {
  border-radius: var(--nx-radius-xs);
  margin: 3px 0;
  padding: 10px 12px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--nx-sidebar-item) !important;
  border-left: 0 !important;
  transition: background 0.14s, color 0.14s, transform 0.14s;
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.nx-shell .sidebar-menu > li > a > .nx-nav-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.9;
  opacity: 0.9;
  flex: 0 0 18px;
}

.nx-shell .sidebar-menu > li > a > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nx-shell .sidebar-menu > li:hover > a {
  background: var(--nx-sidebar-hover-bg) !important;
  color: var(--nx-sidebar-item-hover) !important;
  transform: translateX(1px);
}

.nx-shell .sidebar-menu > li.active > a {
  background: var(--nx-sidebar-active-bg) !important;
  color: var(--nx-topbar-fg) !important;
  border-left-color: transparent !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.nx-shell .nx-online-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 999px;
  background: #d4d4d4;
  margin-right: 6px;
  vertical-align: middle;
}

.nx-shell .sidebar-menu .nx-sidebar-divider {
  height: 1px;
  margin: 12px 8px;
  padding: 0 !important;
  list-style: none;
  background: var(--nx-sidebar-border);
  pointer-events: none;
}

.nx-shell .sidebar-menu .nx-sidebar-divider a {
  display: none !important;
}

/* ——— Zone contenu ——— */
.nx-shell .content-header {
  padding: 28px 28px 12px !important;
  border: 0 !important;
  background: transparent !important;
}

.nx-shell .content-header > h1 {
  font-size: 22px !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em;
  color: var(--nx-text) !important;
  margin: 0 !important;
}

.nx-shell .content {
  padding: 0 28px 18px !important;
  max-width: 1440px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .nx-shell .content-header {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 28px !important;
    padding-right: 28px !important;
  }
}

/* ——— Cases à cocher (style coquille, accessibles) ———
   Pattern : appearance none + cochet SVG ; thème sombre via body.nx-content-dark. */
body.nx-shell input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0 0.5rem 0 0;
  vertical-align: middle;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1.5px solid var(--nx-border-strong);
  background-color: var(--nx-surface);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 10px 10px;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}

body.nx-shell input[type="checkbox"]:hover:not(:disabled) {
  border-color: var(--nx-text-muted);
}

body.nx-shell input[type="checkbox"]:checked {
  background-color: var(--nx-text);
  border-color: var(--nx-text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l3 3.1 6.2-7.1'/%3E%3C/svg%3E");
}

body.nx-shell input[type="checkbox"]:focus {
  outline: none;
}

body.nx-shell input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 3px var(--nx-focus-ring);
}

body.nx-shell input[type="checkbox"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

html.nx-content-dark-init body.nx-shell input[type="checkbox"],
body.nx-shell.nx-content-dark input[type="checkbox"] {
  border-color: #3a3a3a;
  background-color: #1b1b1b;
}

html.nx-content-dark-init body.nx-shell input[type="checkbox"]:hover:not(:disabled),
body.nx-shell.nx-content-dark input[type="checkbox"]:hover:not(:disabled) {
  border-color: #525252;
}

html.nx-content-dark-init body.nx-shell input[type="checkbox"]:checked,
body.nx-shell.nx-content-dark input[type="checkbox"]:checked {
  background-color: #ececec;
  border-color: #ececec;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230a0a0a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l3 3.1 6.2-7.1'/%3E%3C/svg%3E");
}

html.nx-content-dark-init body.nx-shell input[type="checkbox"]:focus-visible,
body.nx-shell.nx-content-dark input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}

/* Checkbox native cachée dans les boutons Bootstrap (toggle / etc.) */
body.nx-shell .btn > input[type="checkbox"],
body.nx-shell label.btn > input[type="checkbox"],
body.nx-shell .btn-group[data-toggle="buttons"] > .btn > input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: auto;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent none !important;
  background-image: none !important;
  box-shadow: none !important;
  flex-shrink: 1;
  vertical-align: middle;
}

/* ——— Footer ——— */
.nx-shell .main-footer.nx-footer {
  background: var(--nx-footer-bg) !important;
  border-top: 1px solid var(--nx-border) !important;
  color: var(--nx-text-muted) !important;
  font-size: 12px !important;
  padding: 12px 28px !important;
  min-height: auto !important;
  margin-top: 0 !important;
}

.nx-shell .nx-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nx-shell .nx-footer-meta {
  color: var(--nx-text-muted);
}

.nx-shell .nx-footer-meta b {
  font-weight: 600;
  color: var(--nx-text-secondary);
}

/* ——— Cartes & boîtes ——— */
.nx-shell .box {
  border: 1px solid var(--nx-border) !important;
  border-radius: var(--nx-radius) !important;
  box-shadow: var(--nx-shadow) !important;
  background: var(--nx-surface) !important;
}

.nx-shell .box-header {
  border-bottom: 1px solid var(--nx-border) !important;
  background: transparent !important;
}

.nx-shell .box-header > .box-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  color: var(--nx-text) !important;
}

/* ——— Boutons (monochrome) ——— */
.nx-shell .btn {
  border-radius: var(--nx-radius-xs) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  padding: 8px 16px !important;
}

.nx-shell .btn-default {
  background: var(--nx-surface) !important;
  border-color: var(--nx-border) !important;
  color: var(--nx-text) !important;
}

.nx-shell .btn-primary,
.nx-shell .btn-primary:focus {
  background: var(--nx-text) !important;
  border-color: var(--nx-text) !important;
  color: var(--nx-surface) !important;
}

.nx-shell .btn-primary:hover {
  background: #262626 !important;
  border-color: #262626 !important;
  color: var(--nx-surface) !important;
}

.nx-shell .btn-success {
  background: #262626 !important;
  border-color: #262626 !important;
  color: #fff !important;
}

.nx-shell .btn-danger {
  background: #171717 !important;
  border-color: #171717 !important;
  color: #fff !important;
}

.nx-shell .btn-warning {
  background: #404040 !important;
  border-color: #404040 !important;
  color: #fff !important;
}

.nx-shell .btn-info {
  background: #525252 !important;
  border-color: #525252 !important;
  color: #fff !important;
}

/* ——— Formulaires ——— */
.nx-shell .form-control {
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-border) !important;
  box-shadow: none !important;
  font-size: 14px !important;
  padding: 8px 12px !important;
}

.nx-shell .form-control:focus {
  border-color: var(--nx-text) !important;
  box-shadow: 0 0 0 3px var(--nx-focus-ring) !important;
}

/* ——— Tables ——— */
.nx-shell .table > thead > tr > th {
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600 !important;
  color: var(--nx-text-muted) !important;
  border-bottom: 1px solid var(--nx-border) !important;
  background: var(--nx-bg) !important;
}

.nx-shell .table > tbody > tr > td {
  border-top: 1px solid var(--nx-border) !important;
  vertical-align: middle !important;
}

.nx-shell .table-striped > tbody > tr:nth-of-type(odd) > td {
  background: rgba(0, 0, 0, 0.02) !important;
}

/* ——— Labels / badges ——— */
.nx-shell .label {
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  padding: 3px 9px !important;
}

.nx-shell .label-success {
  background: #e5e5e5 !important;
  color: #171717 !important;
}

.nx-shell .label-warning {
  background: #d4d4d4 !important;
  color: #0a0a0a !important;
}

.nx-shell .label-danger {
  background: #a3a3a3 !important;
  color: #0a0a0a !important;
}

.nx-shell .label-default {
  background: #f5f5f5 !important;
  color: #525252 !important;
}

.nx-shell .label-info {
  background: #e5e5e5 !important;
  color: #404040 !important;
}

.nx-shell .label-primary {
  background: #0a0a0a !important;
  color: #fafafa !important;
}

/* ——— Alertes ——— */
.nx-shell .alert {
  border-radius: var(--nx-radius-sm) !important;
  border: 1px solid var(--nx-border) !important;
}

/* ——— Petites boîtes KPI (pages autres que dashboard) ——— */
.nx-shell .small-box {
  border-radius: var(--nx-radius) !important;
  border: 1px solid var(--nx-border) !important;
  box-shadow: var(--nx-shadow) !important;
  background: var(--nx-surface) !important;
  color: var(--nx-text) !important;
}

.nx-shell .small-box .inner h3 {
  color: var(--nx-text) !important;
  font-weight: 700 !important;
}

.nx-shell .small-box .icon {
  color: var(--nx-text-faint) !important;
  opacity: 0.35;
}

/* ——— Select2 ——— */
.nx-shell .select2-container--default .select2-selection--single,
.nx-shell .select2-container--default .select2-selection--multiple {
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-border) !important;
}

.nx-shell .select2-container--default .select2-results__option--highlighted[aria-selected],
.nx-shell .select2-container--default .select2-results__option--highlighted[data-selected] {
  background: var(--nx-text) !important;
  color: var(--nx-surface) !important;
}

/* ——— Modales ——— */
.nx-shell .modal-content {
  border-radius: var(--nx-radius) !important;
  border: 1px solid var(--nx-border) !important;
  box-shadow: var(--nx-shadow-md) !important;
}

/* ——— Onglets ——— */
.nx-shell .nav-tabs > li > a {
  border-radius: var(--nx-radius-xs) var(--nx-radius-xs) 0 0 !important;
  font-weight: 600;
}

.nx-shell .nav-tabs > li.active > a {
  color: var(--nx-text) !important;
  border-bottom-color: var(--nx-text) !important;
}

/* ——— Login / register ——— */
body.login-page .login-box-body,
body.register-page .register-box-body {
  background: var(--nx-surface) !important;
  border: 1px solid var(--nx-border) !important;
  border-radius: var(--nx-radius) !important;
  box-shadow: var(--nx-shadow-md) !important;
}

body.login-page .login-logo a,
body.register-page .register-logo a {
  color: var(--nx-text) !important;
  font-weight: 700;
  letter-spacing: -0.03em;
}

body.login-page .btn-primary,
body.register-page .btn-primary {
  background: var(--nx-text) !important;
  border-color: var(--nx-text) !important;
  color: var(--nx-surface) !important;
}

/* ——— Page de connexion (même langage visuel que nx-dashboard) ——— */
body.nx-shell.nx-login-page .nx-login-page-inner {
  margin-left: 0 !important;
  min-height: 100vh;
  padding-bottom: 24px;
}

body.nx-shell.nx-login-page .nx-login-page-inner > .content-header,
body.nx-shell.nx-login-page .nx-login-content {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

body.nx-shell.nx-login-page .nx-login-hero .gw-dash-toolbar {
  align-items: center;
}

body.nx-shell.nx-login-page .nx-login-hero-logo {
  display: block;
  border-radius: 12px;
  box-shadow: var(--nx-shadow);
}

body.nx-shell.nx-login-page .nx-login-alert {
  margin-bottom: 16px;
  border-radius: var(--nx-radius-xs);
}

/* Alerte erreur : lisible sans rouge AdminLTE criard */
body.nx-shell.nx-login-page .nx-login-alert.alert-danger {
  background: #f4f4f5 !important;
  border: 1px solid var(--nx-d-border) !important;
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
}

body.nx-shell.nx-login-page .nx-login-alert.alert-danger h4,
body.nx-shell.nx-login-page .nx-login-alert.alert-danger .icon,
body.nx-shell.nx-login-page .nx-login-alert.alert-danger .fa {
  color: var(--nx-d-secondary) !important;
}

body.nx-shell.nx-login-page .nx-login-alert.alert-danger .close {
  color: var(--nx-d-muted) !important;
  opacity: 1;
  text-shadow: none;
}

body.nx-shell.nx-login-page .nx-login-alert.alert-danger .close:hover {
  color: var(--nx-d-text) !important;
}

html.nx-content-dark-init body.nx-shell.nx-login-page .nx-login-alert.alert-danger,
body.nx-shell.nx-content-dark.nx-login-page .nx-login-alert.alert-danger {
  background: #1a1a1a !important;
  border: 1px solid #2f2f2f !important;
  color: #e5e5e5 !important;
}

html.nx-content-dark-init body.nx-shell.nx-login-page .nx-login-alert.alert-danger h4,
html.nx-content-dark-init body.nx-shell.nx-login-page .nx-login-alert.alert-danger .fa,
body.nx-shell.nx-content-dark.nx-login-page .nx-login-alert.alert-danger h4,
body.nx-shell.nx-content-dark.nx-login-page .nx-login-alert.alert-danger .fa {
  color: #d4d4d4 !important;
}

body.nx-shell.nx-login-page .nx-login-card .gw-dash-table-card__body {
  padding: 18px 20px 20px;
}

body.nx-shell.nx-login-page .nx-login-card .gw-dash-table-card__foot {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--nx-d-border);
  background: rgba(0, 0, 0, 0.02);
}

body.nx-shell.nx-login-page .nx-login-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nx-d-secondary);
}

body.nx-shell.nx-login-page .nx-login-field .form-control {
  height: 42px;
  border-radius: var(--nx-radius-xs);
}

body.nx-shell.nx-login-page .nx-login-field .form-control-feedback {
  height: 42px;
  line-height: 42px;
  color: var(--nx-d-muted);
}

body.nx-shell.nx-login-page .nx-login-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

body.nx-shell.nx-login-page .nx-login-actions .btn {
  padding: 10px 16px;
  border-radius: var(--nx-radius-xs);
  font-weight: 600;
}

body.nx-shell.nx-login-page .nx-login-forgot {
  text-align: center;
  font-size: 0.875rem;
  color: var(--nx-d-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.nx-shell.nx-login-page .nx-login-forgot:hover,
body.nx-shell.nx-login-page .nx-login-forgot:focus {
  color: var(--nx-d-text);
}

body.nx-shell.nx-login-page .nx-login-page-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--nx-d-border);
  font-size: 0.75rem;
  color: var(--nx-d-muted);
}

body.nx-shell.nx-login-page .nx-login-page-footer a {
  color: var(--nx-d-text);
}

body.nx-shell.nx-login-page .nx-login-card__foot a {
  font-weight: 600;
  color: var(--nx-d-text);
}

@media only screen and (max-width: 768px) {
  body.nx-shell.nx-login-page .nx-login-page-inner > .content-header {
    padding-top: 52px;
  }
}

html.nx-content-dark-init body.nx-shell.nx-login-page .nx-login-page-footer,
body.nx-shell.nx-content-dark.nx-login-page .nx-login-page-footer {
  border-color: #2f2f2f;
  color: #a3a3a3;
}

/* ——— Installation (install/index.php) ——— */
body.nx-shell.nx-install-page {
  background: linear-gradient(165deg, #ececec 0%, #f7f7f7 22%, #fafafa 55%, #fafafa 100%) !important;
}

body.nx-shell.nx-content-dark.nx-install-page {
  background: #141414 !important;
}

/* En mode contenu sombre, les jetons --nx-d-* du dashboard pointent encore vers :root (clair) :
   on les recâble sur la même palette que le reste de l’app (#141414 / #1a1a1a / #2f2f2f). */
html.nx-content-dark-init body.nx-shell.nx-install-page .nx-install-page-inner.nx-dashboard,
body.nx-shell.nx-content-dark.nx-install-page .nx-install-page-inner.nx-dashboard {
  --nx-d-bg: #141414;
  --nx-d-surface: #1a1a1a;
  --nx-d-border: #2f2f2f;
  --nx-d-text: #f3f3f3;
  --nx-d-muted: #a3a3a3;
  --nx-d-secondary: #b5b5b5;
  --nx-d-accent-soft: rgba(255, 255, 255, 0.06);
  --nx-d-shadow: none;
  --nx-d-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.4);
}

body.nx-shell.nx-install-page .nx-install-page-inner {
  margin-left: 0 !important;
  min-height: 100vh;
  padding-bottom: 40px;
  background: transparent !important;
}

body.nx-shell.nx-install-page .nx-install-hero-strip {
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  padding: 0 16px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 250, 250, 0.65) 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

html.nx-content-dark-init body.nx-shell.nx-install-page .nx-install-hero-strip,
body.nx-shell.nx-content-dark.nx-install-page .nx-install-hero-strip {
  background: linear-gradient(180deg, #1c1c1c 0%, #171717 100%);
  border-bottom-color: #2f2f2f;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
}

body.nx-shell.nx-install-page .nx-install-hero-header {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 8px 8px !important;
  border: 0;
  background: transparent;
}

body.nx-shell.nx-install-page .nx-install-hero {
  align-items: center;
}

body.nx-shell.nx-install-page .nx-install-hero-title {
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

body.nx-shell.nx-install-page .nx-install-hero-lead {
  max-width: 36rem;
  line-height: 1.5;
}

body.nx-shell.nx-install-page .nx-install-hero-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.nx-shell.nx-install-page .nx-install-hero-logo {
  border-radius: 14px;
  box-shadow: var(--nx-shadow-md);
}

html.nx-content-dark-init body.nx-shell.nx-install-page .nx-install-hero-logo,
body.nx-shell.nx-content-dark.nx-install-page .nx-install-hero-logo {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

body.nx-shell.nx-install-page .nx-install-theme-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
}

body.nx-shell.nx-install-page .nx-install-theme-btn .nx-install-theme-icon-light {
  display: none;
}

body.nx-shell.nx-content-dark.nx-install-page .nx-install-theme-btn .nx-install-theme-icon-dark {
  display: none;
}

body.nx-shell.nx-content-dark.nx-install-page .nx-install-theme-btn .nx-install-theme-icon-light {
  display: inline;
}

body.nx-shell.nx-install-page .nx-install-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 0;
}

body.nx-shell.nx-install-page .nx-install-page-inner.nx-install-wide .nx-install-content {
  max-width: 920px;
}

body.nx-shell.nx-install-page .nx-install-stepper {
  margin: 0 0 22px;
}

body.nx-shell.nx-install-page .nx-install-stepper__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  position: relative;
}

body.nx-shell.nx-install-page .nx-install-stepper__list::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 18px;
  height: 2px;
  background: var(--nx-d-border);
  z-index: 0;
}

body.nx-shell.nx-install-page .nx-install-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 33.33%;
}

body.nx-shell.nx-install-page .nx-install-step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  border: 2px solid var(--nx-d-border);
  background: var(--nx-d-surface);
  color: var(--nx-d-muted);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.nx-shell.nx-install-page .nx-install-step__t {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nx-d-muted);
  line-height: 1.25;
  padding: 0 4px;
  hyphens: auto;
}

body.nx-shell.nx-install-page .nx-install-step.is-pending .nx-install-step__n {
  opacity: 0.55;
}

body.nx-shell.nx-install-page .nx-install-step.is-active .nx-install-step__n {
  background: var(--nx-d-text) !important;
  color: var(--nx-d-surface) !important;
  border-color: var(--nx-d-text) !important;
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

html.nx-content-dark-init body.nx-shell.nx-install-page .nx-install-step.is-active .nx-install-step__n,
body.nx-shell.nx-content-dark.nx-install-page .nx-install-step.is-active .nx-install-step__n {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

body.nx-shell.nx-install-page .nx-install-step.is-active .nx-install-step__t {
  color: var(--nx-d-text);
}

body.nx-shell.nx-install-page .nx-install-step.is-complete .nx-install-step__n {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

html.nx-content-dark-init body.nx-shell.nx-install-page .nx-install-step.is-complete .nx-install-step__n,
body.nx-shell.nx-content-dark.nx-install-page .nx-install-step.is-complete .nx-install-step__n {
  background: #1e2a22;
  border-color: #355c45;
  color: #b6e8c9;
  box-shadow: none;
}

body.nx-shell.nx-install-page .nx-install-step.is-complete .nx-install-step__t {
  color: var(--nx-d-secondary);
}

body.nx-shell.nx-install-page .nx-install-ajax-slot {
  margin-bottom: 18px;
}

body.nx-shell.nx-install-page .nx-install-card {
  margin-bottom: 24px;
  border-radius: var(--nx-radius) !important;
  box-shadow: var(--nx-d-shadow-hover) !important;
}

/* La règle globale mode sombre met box-shadow: none sur .gw-dash-table-card (spécificité plus forte) : on rétablit une ombre discrète sur l’install. */
html.nx-content-dark-init body.nx-shell.nx-install-page .nx-install-card.gw-dash-table-card,
body.nx-shell.nx-content-dark.nx-install-page .nx-install-card.gw-dash-table-card {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4) !important;
}

body.nx-shell.nx-install-page .nx-install-card[hidden] {
  display: none !important;
}

body.nx-shell.nx-install-page .nx-install-card__head h3 {
  font-size: 1.05rem;
}

body.nx-shell.nx-install-page .nx-install-card .gw-dash-table-card__head {
  padding: 22px 28px 0;
}

body.nx-shell.nx-install-page .nx-install-card .gw-dash-table-card__head h3 {
  margin-bottom: 18px;
}

body.nx-shell.nx-install-page .nx-install-card .gw-dash-table-card__body {
  padding: 0 28px 28px;
}

body.nx-shell.nx-install-page .nx-install-card .gw-dash-table-card__foot {
  padding: 16px 28px 20px;
  border-top: 1px solid var(--nx-d-border);
  background: rgba(0, 0, 0, 0.02);
}

html.nx-content-dark-init body.nx-shell.nx-install-page .nx-install-card .gw-dash-table-card__foot,
body.nx-shell.nx-content-dark.nx-install-page .nx-install-card .gw-dash-table-card__foot {
  background: #161616;
  border-top-color: #2f2f2f;
}

body.nx-shell.nx-install-page .nx-install-card-intro {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--nx-d-secondary);
  line-height: 1.5;
}

/* Étape 1 — prérequis : intro et tuiles plus lisibles */
body.nx-shell.nx-install-page #step-1 .nx-install-card-intro {
  margin: 0 0 22px;
  padding: 14px 18px;
  border-radius: var(--nx-radius-xs);
  background: rgba(10, 10, 10, 0.04);
  border: 1px solid var(--nx-d-border);
  border-left: 3px solid var(--nx-d-text);
}

html.nx-content-dark-init body.nx-shell.nx-install-page #step-1 .nx-install-card-intro,
body.nx-shell.nx-content-dark.nx-install-page #step-1 .nx-install-card-intro {
  background: #202020;
  border-color: #2f2f2f;
  border-left-color: #737373;
  color: #c9c9c9;
}

body.nx-shell.nx-install-page .nx-install-req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

body.nx-shell.nx-install-page #step-1 .nx-install-req-grid {
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}

body.nx-shell.nx-install-page .nx-install-req {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--nx-radius-xs);
  border: 1px solid var(--nx-d-border);
  background: rgba(0, 0, 0, 0.02);
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--nx-d-text);
}

body.nx-shell.nx-install-page #step-1 .nx-install-req {
  padding: 14px 16px;
  border-left-width: 3px;
  border-left-style: solid;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.nx-shell.nx-install-page #step-1 .nx-install-req--ok {
  border-left-color: #16a34a;
  background: rgba(34, 197, 94, 0.06);
}

body.nx-shell.nx-install-page #step-1 .nx-install-req--fail {
  border-left-color: #dc2626;
  background: rgba(239, 68, 68, 0.07);
}

html.nx-content-dark-init body.nx-shell.nx-install-page #step-1 .nx-install-req,
body.nx-shell.nx-content-dark.nx-install-page #step-1 .nx-install-req {
  background: #202020;
  border-color: #2f2f2f;
  color: #ececec;
  box-shadow: none;
}

html.nx-content-dark-init body.nx-shell.nx-install-page #step-1 .nx-install-req--ok,
body.nx-shell.nx-content-dark.nx-install-page #step-1 .nx-install-req--ok {
  background: #1a231e;
  border-color: #2f3d34;
  border-left-color: #3d8b5a;
}

html.nx-content-dark-init body.nx-shell.nx-install-page #step-1 .nx-install-req--fail,
body.nx-shell.nx-content-dark.nx-install-page #step-1 .nx-install-req--fail {
  background: #261a1a;
  border-color: #3d2f2f;
  border-left-color: #b45353;
}

html.nx-content-dark-init body.nx-shell.nx-install-page #step-1 .nx-install-req--ok .nx-install-req__badge,
body.nx-shell.nx-content-dark.nx-install-page #step-1 .nx-install-req--ok .nx-install-req__badge {
  background: rgba(74, 222, 128, 0.12);
  color: #a7f3c0;
}

html.nx-content-dark-init body.nx-shell.nx-install-page #step-1 .nx-install-req--fail .nx-install-req__badge,
body.nx-shell.nx-content-dark.nx-install-page #step-1 .nx-install-req--fail .nx-install-req__badge {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}

body.nx-shell.nx-install-page .nx-install-req__badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.75rem;
}

body.nx-shell.nx-install-page .nx-install-req--ok .nx-install-req__badge {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

body.nx-shell.nx-install-page .nx-install-req--fail .nx-install-req__badge {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

body.nx-shell.nx-install-page .nx-install-req__text {
  min-width: 0;
}

body.nx-shell.nx-install-page .nx-install-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  margin-bottom: 8px;
}

body.nx-shell.nx-install-page #step-2 .form-group.nx-install-field {
  margin-bottom: 18px;
}

body.nx-shell.nx-install-page #step-2 .form-group.nx-install-field:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  body.nx-shell.nx-install-page .nx-install-form-grid {
    grid-template-columns: 1fr;
  }
}

body.nx-shell.nx-install-page .nx-install-fieldset-title {
  margin: 0 0 14px;
  padding-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nx-d-muted);
  border-bottom: 1px solid var(--nx-d-border);
}

body.nx-shell.nx-install-page .nx-install-form-full {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--nx-d-border);
}

body.nx-shell.nx-install-page .nx-install-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nx-d-secondary);
}

body.nx-shell.nx-install-page .nx-install-field .form-control {
  height: 42px;
  border-radius: var(--nx-radius-xs);
}

body.nx-shell.nx-install-page .nx-install-field .form-control-feedback {
  height: 42px;
  line-height: 42px;
  color: var(--nx-d-muted);
}

body.nx-shell.nx-install-page .nx-install-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nx-d-secondary);
}

body.nx-shell.nx-install-page .nx-install-label-row a {
  font-weight: 500;
  font-size: 0.8125rem;
}

body.nx-shell.nx-install-page .nx-install-card__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

body.nx-shell.nx-install-page .nx-install-card__foot--split {
  justify-content: space-between;
}

body.nx-shell.nx-install-page .nx-install-card__foot--end {
  justify-content: flex-end;
}

body.nx-shell.nx-install-page .nx-install-btn-primary {
  min-width: 160px;
  font-weight: 600;
  border-radius: var(--nx-radius-xs) !important;
}

html.nx-content-dark-init body.nx-shell.nx-install-page .btn-default,
body.nx-shell.nx-content-dark.nx-install-page .btn-default {
  background: #202020 !important;
  border-color: #2f2f2f !important;
  color: #e8e8e8 !important;
}

html.nx-content-dark-init body.nx-shell.nx-install-page .btn-default:hover,
html.nx-content-dark-init body.nx-shell.nx-install-page .btn-default:focus,
body.nx-shell.nx-content-dark.nx-install-page .btn-default:hover,
body.nx-shell.nx-content-dark.nx-install-page .btn-default:focus {
  background: #2a2a2a !important;
  border-color: #404040 !important;
  color: #fafafa !important;
}

body.nx-shell.nx-install-page .select2-container--default .select2-selection--single {
  height: 42px !important;
  padding: 6px 12px !important;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
}

body.nx-shell.nx-install-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 28px !important;
  color: var(--nx-d-text) !important;
}

body.nx-shell.nx-install-page .nx-install-done-lead {
  font-size: 1rem;
  font-weight: 600;
  color: var(--nx-d-text);
  margin: 0 0 20px;
  line-height: 1.45;
}

body.nx-shell.nx-install-page #step-3 .nx-install-done-lead {
  margin: 0 0 26px;
  padding: 18px 20px;
  border-radius: var(--nx-radius-xs);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.05) 100%);
  border: 1px solid rgba(34, 197, 94, 0.28);
  font-size: 1.02rem;
}

html.nx-content-dark-init body.nx-shell.nx-install-page #step-3 .nx-install-done-lead,
body.nx-shell.nx-content-dark.nx-install-page #step-3 .nx-install-done-lead {
  color: #f0f4f1;
  background: linear-gradient(145deg, #1e2a22 0%, #1a1a1a 55%, #1a1a1a 100%);
  border-color: #355c45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.nx-shell.nx-install-page .nx-install-done-block {
  margin-bottom: 20px;
}

body.nx-shell.nx-install-page .nx-install-done-block:last-child {
  margin-bottom: 0;
}

body.nx-shell.nx-install-page #step-3 .nx-install-done-block {
  margin-bottom: 0;
  padding-bottom: 22px;
}

body.nx-shell.nx-install-page #step-3 .nx-install-done-block + .nx-install-done-block {
  padding-top: 22px;
  border-top: 1px solid var(--nx-d-border);
}

body.nx-shell.nx-install-page #step-3 .nx-install-done-block:last-child {
  padding-bottom: 0;
}

body.nx-shell.nx-install-page .nx-install-subtitle {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--nx-d-text);
}

body.nx-shell.nx-install-page .nx-install-prose,
body.nx-shell.nx-install-page .nx-install-prose p {
  font-size: 0.875rem;
  color: var(--nx-d-secondary);
  line-height: 1.55;
}

body.nx-shell.nx-install-page .nx-install-cron {
  margin: 12px 0 0;
  padding: 14px 16px;
  font-size: 0.8125rem;
  line-height: 1.45;
  border-radius: var(--nx-radius-xs);
  background: var(--nx-d-bg);
  border: 1px solid var(--nx-d-border);
  color: var(--nx-d-text);
  overflow-x: auto;
}

body.nx-shell.nx-install-page .nx-install-cron code {
  white-space: pre-wrap;
  word-break: break-word;
  background: transparent;
  color: inherit;
  padding: 0;
}

html.nx-content-dark-init body.nx-shell.nx-install-page .nx-install-cron,
body.nx-shell.nx-content-dark.nx-install-page .nx-install-cron {
  background: #202020;
  border-color: #2f2f2f;
  color: #e5e5e5;
}

body.nx-shell.nx-install-page .nx-install-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--nx-d-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--nx-d-muted);
}

body.nx-shell.nx-install-page .nx-install-footer a {
  color: var(--nx-d-text);
}

body.nx-shell.nx-install-page .nx-install-flash.alert-danger {
  background: #f4f4f5 !important;
  border: 1px solid var(--nx-d-border) !important;
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
  border-radius: var(--nx-radius-xs) !important;
}

body.nx-shell.nx-install-page .nx-install-flash.alert-danger h4,
body.nx-shell.nx-install-page .nx-install-flash.alert-danger .fa {
  color: var(--nx-d-secondary) !important;
}

body.nx-shell.nx-install-page .nx-install-flash.alert-success {
  background: #f4f4f5 !important;
  border: 1px solid var(--nx-d-border) !important;
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
  border-radius: var(--nx-radius-xs) !important;
}

body.nx-shell.nx-install-page .nx-install-flash.alert-success h4,
body.nx-shell.nx-install-page .nx-install-flash.alert-success .fa {
  color: var(--nx-d-secondary) !important;
}

body.nx-shell.nx-install-page .nx-install-success-msg,
body.nx-shell.nx-install-page .nx-install-error-msg {
  margin: 8px 0 0;
  font-size: 0.875rem;
}

html.nx-content-dark-init body.nx-shell.nx-install-page .nx-install-flash.alert-danger,
body.nx-shell.nx-content-dark.nx-install-page .nx-install-flash.alert-danger,
html.nx-content-dark-init body.nx-shell.nx-install-page .nx-install-flash.alert-success,
body.nx-shell.nx-content-dark.nx-install-page .nx-install-flash.alert-success {
  background: #1a1a1a !important;
  border: 1px solid #2f2f2f !important;
  color: #e5e5e5 !important;
}

html.nx-content-dark-init body.nx-shell.nx-install-page .nx-install-footer,
body.nx-shell.nx-content-dark.nx-install-page .nx-install-footer {
  border-color: #2f2f2f;
  color: #a3a3a3;
}

@media only screen and (max-width: 768px) {
  body.nx-shell.nx-install-page .nx-install-hero-header {
    padding-top: 56px !important;
  }

  body.nx-shell.nx-install-page .nx-install-step__t {
    font-size: 0.6rem;
  }
}

@media (max-width: 576px) {
  body.nx-shell.nx-install-page .nx-install-card .gw-dash-table-card__head {
    padding: 18px 20px 0;
  }

  body.nx-shell.nx-install-page .nx-install-card .gw-dash-table-card__body {
    padding: 0 20px 22px;
  }

  body.nx-shell.nx-install-page .nx-install-card .gw-dash-table-card__foot {
    padding: 14px 20px 18px;
  }
}

/* Liens globaux dans l’app */
.nx-shell a:not(.btn):not(.logo) {
  color: inherit;
}

.nx-shell .content a,
.nx-shell .main-footer a {
  color: var(--nx-text) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nx-shell .content a:hover {
  color: #404040 !important;
}

/* Pace ——— (désactivé visuellement sur la page messages : loader local à la place) */
.pace .pace-progress {
  background: #525252 !important;
}

body.nx-messages-page .pace,
body.nx-messages-page .pace-inactive,
body.nx-messages-page .pace .pace-activity {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ——— Dashboard (nx-dashboard) ——— */
.nx-shell .nx-dashboard {
  --nx-d-bg: var(--nx-bg);
  --nx-d-surface: var(--nx-surface);
  --nx-d-border: var(--nx-border);
  --nx-d-text: var(--nx-text);
  --nx-d-muted: var(--nx-text-muted);
  --nx-d-secondary: var(--nx-text-secondary);
  --nx-d-accent-soft: rgba(10, 10, 10, 0.08);
  --nx-d-shadow: var(--nx-shadow);
  --nx-d-shadow-hover: var(--nx-shadow-md);
}

.nx-shell .nx-dashboard.content-wrapper,
.skin-blue .nx-shell .nx-dashboard.content-wrapper {
  background: var(--nx-d-bg) !important;
}

.nx-shell .nx-dashboard .content-header {
  padding-top: 24px !important;
  border: 0;
  background: transparent;
}

.nx-shell .nx-dashboard .content {
  padding-top: 8px !important;
}

.nx-shell .nx-dashboard .gw-dash-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.nx-shell .nx-dashboard .gw-dash-hero__titles h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--nx-d-text);
  line-height: 1.2;
}

.nx-shell .nx-dashboard .gw-dash-hero__subtitle {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: var(--nx-d-secondary);
  font-weight: 400;
}

.nx-shell .nx-dashboard .gw-dash-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nx-shell .nx-dashboard .gw-dash-interval {
  position: relative;
}

.nx-shell .nx-dashboard .gw-dash-interval-trigger {
  min-width: 170px;
  background: var(--nx-d-surface) !important;
  border-color: var(--nx-d-border) !important;
  color: var(--nx-d-text) !important;
}

.nx-shell .nx-dashboard .gw-dash-interval-menu {
  right: 0;
  left: auto;
  background: var(--nx-d-surface) !important;
  border-color: var(--nx-d-border) !important;
  box-shadow: var(--nx-d-shadow-hover) !important;
}

.nx-shell .nx-dashboard .gw-dash-interval-trigger:hover,
.nx-shell .nx-dashboard .gw-dash-interval-trigger:focus {
  background: #f3f3f3 !important;
  border-color: var(--nx-d-border) !important;
}

.nx-shell .nx-dashboard .gw-dash-interval-trigger .nx-lang-current,
.nx-shell .nx-dashboard .gw-dash-interval-trigger .nx-lang-chevron,
.nx-shell .nx-dashboard .gw-dash-interval-trigger .nx-nav-icon {
  color: var(--nx-d-text) !important;
}

.nx-shell .nx-dashboard .gw-dash-interval-menu .gw-dash-interval-option {
  color: var(--nx-d-text) !important;
  background: transparent !important;
}

.nx-shell .nx-dashboard .gw-dash-interval-menu .gw-dash-interval-option:hover,
.nx-shell .nx-dashboard .gw-dash-interval-menu .gw-dash-interval-option:focus {
  background: #efefef !important;
  color: var(--nx-d-text) !important;
}

.nx-shell .nx-dashboard .gw-dash-interval-menu .gw-dash-interval-option.is-selected {
  background: #e5e5e5 !important;
  color: var(--nx-d-text) !important;
}

.nx-shell .nx-dashboard .gw-dash-toolbar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--nx-radius-xs);
  border: 1px solid var(--nx-d-border);
  background: var(--nx-d-surface);
  color: var(--nx-d-muted);
}

.nx-shell .nx-dashboard #timeIntervalInput {
  width: auto;
  min-width: 160px;
  height: 38px;
  margin: 0;
  border: 1px solid var(--nx-d-border);
  border-radius: var(--nx-radius-xs);
  box-shadow: none;
  padding: 6px 10px;
  font-size: 0.875rem;
  background: var(--nx-d-surface);
  color: var(--nx-d-text);
}

.nx-shell .nx-dashboard #timeIntervalInput:focus {
  border-color: var(--nx-d-text);
  box-shadow: 0 0 0 3px var(--nx-d-accent-soft);
  outline: none;
}

.nx-shell .nx-dashboard .gw-dash-announcement {
  margin-bottom: 24px;
  padding: 16px 18px;
  background: var(--nx-d-surface);
  border: 1px solid var(--nx-d-border);
  border-radius: var(--nx-radius-xs);
  box-shadow: var(--nx-d-shadow);
}

.nx-shell .nx-dashboard .gw-dash-announcement__title {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nx-d-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nx-shell .nx-dashboard .gw-dash-announcement__body {
  font-size: 0.875rem;
  color: var(--nx-d-secondary);
  line-height: 1.55;
}

.nx-shell .nx-dashboard .gw-dash-announcement .close {
  opacity: 0.45;
}

.nx-shell .nx-dashboard .gw-dash-section {
  margin-top: 28px;
}

.nx-shell .nx-dashboard .gw-dash-section:first-of-type {
  margin-top: 20px;
}

.nx-shell .nx-dashboard .gw-dash-section__title {
  margin: 0 0 14px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-d-muted);
}

.nx-shell .nx-dashboard .gw-dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 0;
}

.nx-shell .nx-dashboard .gw-dash-stats-grid--compact {
  max-width: 520px;
}

.nx-shell .nx-dashboard .gw-dash-stats-grid--messages:not(.gw-dash-stats-grid--board) {
  grid-template-columns: repeat(8, minmax(120px, 1fr));
}

@media (max-width: 1440px) {
  .nx-shell .nx-dashboard .gw-dash-stats-grid--messages:not(.gw-dash-stats-grid--board) {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }
}

/* Grille dashboard : 8 stats (ligne 1) ; ligne 2 = historique large (cols 1–7) + rails (col 8, sous la dernière stat) */
.nx-shell .nx-dashboard .gw-dash-board {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
  align-items: start;
}

.nx-shell .nx-dashboard .gw-dash-stats-grid--board {
  display: contents;
}

.nx-shell .nx-dashboard .gw-dash-board__full {
  grid-column: 1 / -1;
  margin: 0 0 14px;
}

.nx-shell .nx-dashboard .gw-dash-board__history {
  grid-column: 1 / span 7;
  min-width: 0;
}

.nx-shell .nx-dashboard .gw-dash-board__rails {
  grid-column: 8 / span 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

@media (max-width: 1440px) {
  .nx-shell .nx-dashboard .gw-dash-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* 4 colonnes : historique 3 + rails 1 (dernière colonne de la ligne) */
  .nx-shell .nx-dashboard .gw-dash-board__history {
    grid-column: 1 / span 3;
  }

  .nx-shell .nx-dashboard .gw-dash-board__rails {
    grid-column: 4 / span 1;
  }
}

@media (max-width: 767px) {
  .nx-shell .nx-dashboard .gw-dash-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .nx-shell .nx-dashboard .gw-dash-board__history,
  .nx-shell .nx-dashboard .gw-dash-board__rails {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .nx-shell .nx-dashboard .gw-dash-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nx-shell .nx-dashboard .gw-dash-board__full {
    grid-column: 1 / -1;
  }

  .nx-shell .nx-dashboard .gw-dash-board__history,
  .nx-shell .nx-dashboard .gw-dash-board__rails {
    grid-column: 1 / -1;
  }
}

.nx-shell .nx-dashboard .gw-dash-stat-link {
  display: block;
  text-decoration: none !important;
  color: inherit;
  border-radius: var(--nx-radius-xs);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nx-shell .nx-dashboard .gw-dash-stat-link:hover,
.nx-shell .nx-dashboard .gw-dash-stat-link:focus {
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: var(--nx-d-shadow-hover);
}

.nx-shell .nx-dashboard .gw-dash-stat-link:focus {
  outline: 2px solid var(--nx-d-text);
  outline-offset: 2px;
}

.nx-shell .nx-dashboard .gw-dash-stat {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 84px;
  padding: 12px 12px 10px;
  background: var(--nx-d-surface);
  border: 1px solid var(--nx-d-border);
  border-radius: var(--nx-radius-xs);
  box-shadow: var(--nx-d-shadow);
  border-left: 0 !important;
  overflow: hidden;
}

.nx-shell .nx-dashboard .gw-dash-stat__icon {
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0.45;
  color: var(--nx-stat-accent, var(--nx-d-muted));
}

.nx-shell .nx-dashboard .gw-dash-stat__body {
  flex: 1;
  min-width: 0;
  padding-right: 8px;
}

.nx-shell .nx-dashboard .gw-dash-stat__value {
  display: block;
  margin: 0;
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--nx-d-text);
}

.nx-shell .nx-dashboard .gw-dash-stat__label {
  display: block;
  margin: 6px 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--nx-d-secondary);
  line-height: 1.3;
}

/* .gw-dash-main-grid remplacé par .gw-dash-board (alignement sur les colonnes des stats) */

.nx-shell .nx-dashboard .gw-dash-action-card {
  background: var(--nx-d-surface);
  border: 1px solid var(--nx-d-border);
  border-radius: var(--nx-radius-xs);
  box-shadow: var(--nx-d-shadow);
  padding: 12px;
  min-width: 0;
}

.nx-shell .nx-dashboard .gw-dash-action-card__title {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nx-d-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nx-shell .nx-dashboard .gw-dash-action-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--nx-radius-xs);
  padding: 8px 10px;
  color: var(--nx-d-text) !important;
  text-decoration: none !important;
  background: rgba(0, 0, 0, 0.015);
  margin-bottom: 6px;
  min-width: 0;
  gap: 10px;
}

.nx-shell .nx-dashboard .gw-dash-action-card__row:last-child {
  margin-bottom: 0;
}

.nx-shell .nx-dashboard .gw-dash-action-card__row:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nx-shell .nx-dashboard .gw-dash-action-card__row > span {
  color: var(--nx-d-secondary);
  font-size: 0.78rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nx-shell .nx-dashboard .gw-dash-action-card__row > strong {
  color: var(--nx-d-text);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.nx-shell .nx-dashboard .gw-dash-table-card {
  background: var(--nx-d-surface);
  border: 1px solid var(--nx-d-border);
  border-radius: var(--nx-radius-xs);
  box-shadow: var(--nx-d-shadow);
  overflow: hidden;
}

.nx-shell .nx-dashboard .gw-dash-table-card__head {
  padding: 18px 20px 0;
}

.nx-shell .nx-dashboard .gw-dash-table-card__head h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--nx-d-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nx-shell .nx-dashboard .gw-dash-table-card__head .fa {
  color: var(--nx-d-muted);
}

.nx-shell .nx-dashboard .gw-dash-table-wrap {
  overflow-x: auto;
}

.nx-shell .nx-dashboard .gw-dash-table {
  margin: 0;
  font-size: 0.8125rem;
  border: 0;
}

.nx-shell .nx-dashboard .gw-dash-table thead th {
  background: var(--nx-d-bg) !important;
  color: var(--nx-d-muted) !important;
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--nx-d-border) !important;
  border-top: none !important;
  padding: 12px 14px !important;
}

.nx-shell .nx-dashboard .gw-dash-table tbody td {
  padding: 12px 14px !important;
  border-top: 1px solid var(--nx-d-border) !important;
  color: var(--nx-d-text);
}

.nx-shell .nx-dashboard .gw-dash-table tbody tr:hover td {
  background: rgba(0, 0, 0, 0.02) !important;
}

.nx-shell .nx-dashboard .gw-dash-table.table-striped > tbody > tr:nth-of-type(odd) > td {
  background: transparent !important;
}

.nx-shell .nx-dashboard .gw-dash-table .label {
  border-radius: 6px;
  font-weight: 600;
}

.nx-shell .nx-dashboard .gw-dash-progress-track {
  flex: 1;
  background: var(--nx-d-border);
  border-radius: var(--nx-radius-xs);
  height: 8px;
  overflow: hidden;
}

.nx-shell .nx-dashboard .gw-dash-progress-bar {
  height: 100%;
  border-radius: var(--nx-radius-xs);
  transition: width 0.2s ease;
}

.nx-shell .nx-dashboard .gw-dash-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nx-shell .nx-dashboard .gw-dash-progress-meta {
  white-space: nowrap;
  font-weight: 600;
  min-width: 64px;
  text-align: right;
  font-size: 0.8125rem;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-dashboard .gw-dash-announcement__title .fa {
  color: var(--nx-d-muted);
}

/* ——— Page Messages (nx-messages-layout) ——— */
.nx-shell .nx-messages-layout .gw-messages-hero__count {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--nx-d-secondary);
  letter-spacing: normal;
}

.nx-shell .nx-messages-layout .nx-messages-search-card {
  margin-bottom: 16px;
}

.nx-shell .nx-messages-layout .gw-dash-table-card__body {
  padding: 18px 20px 8px;
}

.nx-shell .nx-messages-layout .gw-dash-table-card__foot {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--nx-d-border);
  background: rgba(0, 0, 0, 0.02);
}

html.nx-content-dark-init body.nx-shell.nx-messages-page .nx-messages-layout .gw-dash-table-card__foot,
body.nx-shell.nx-content-dark.nx-messages-page .nx-messages-layout .gw-dash-table-card__foot {
  background: rgba(0, 0, 0, 0.25);
  border-top-color: #2f2f2f !important;
}

.nx-shell .nx-messages-layout .nx-messages-search-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nx-shell .nx-messages-layout .nx-messages-search-card__head h3 {
  margin: 0 !important;
}

.nx-shell .nx-messages-layout .nx-messages-search-card__head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nx-shell .nx-messages-layout .nx-messages-page-limit-label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-messages-layout .nx-messages-page-limit.select2 {
  min-width: 88px;
}

.nx-shell .nx-messages-layout .nx-messages-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px 18px;
}

.nx-shell .nx-messages-layout .nx-messages-filter-field--message {
  grid-column: 1 / -1;
}

@media (min-width: 992px) {
  .nx-shell .nx-messages-layout .nx-messages-filter-field--message {
    grid-column: span 2;
  }
}

.nx-shell .nx-messages-layout .nx-messages-message-textarea {
  resize: vertical;
  min-height: 52px;
}

/* Messages : input-group comme contacts / profil (addon séparé, bordures nettes) */
.nx-shell .nx-messages-layout .input-group {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  border-collapse: separate !important;
}

.nx-shell .nx-messages-layout .input-group .input-group-addon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 44px;
  padding: 8px 12px !important;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: rgba(0, 0, 0, 0.04) !important;
  color: var(--nx-d-secondary) !important;
  box-shadow: none !important;
}

.nx-shell .nx-messages-layout .input-group .form-control {
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
}

/* Select2 met souvent width:100% sur le conteneur (depuis le select) : sans ça le bloc
   prend toute la ligne et l’addon passe au-dessous avec flex-wrap. */
.nx-shell .nx-messages-layout .input-group > .select2-container {
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
  max-width: 100%;
}

.nx-shell .nx-messages-layout .input-group .select2-container .select2-selection--single {
  border-radius: var(--nx-radius-xs) !important;
}

.nx-shell .nx-messages-layout .nx-messages-search-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.nx-shell .nx-messages-layout .nx-messages-search-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nx-shell .nx-messages-layout .nx-messages-search-card__pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nx-shell .nx-messages-layout .nx-messages-page-label {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-messages-layout .nx-messages-page-select {
  min-width: 72px;
}

.nx-shell .nx-messages-layout .nx-messages-results-card {
  margin-top: 0;
}

.nx-shell .nx-messages-layout .nx-messages-results-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nx-shell .nx-messages-layout .nx-messages-results-card__head h3 {
  margin: 0 !important;
}

.nx-shell .nx-messages-layout .nx-messages-select-all {
  margin: 0;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--nx-d-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.nx-shell .nx-messages-layout .nx-messages-results-card__body {
  position: relative;
  padding: 0 !important;
}

.nx-shell .nx-messages-layout .nx-messages-content-shell {
  position: relative;
  min-height: 280px;
}

.nx-shell .nx-messages-layout .nx-messages-list-root {
  padding: 16px 18px 20px;
}

.nx-shell .nx-messages-layout .nx-messages-list-root .timeline {
  margin: 0;
}

.nx-shell .nx-messages-layout .nx-messages-page-loader {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.nx-shell .nx-messages-layout .nx-messages-page-loader.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nx-shell .nx-messages-layout .nx-messages-page-loader__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(248, 249, 251, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 0 0 var(--nx-radius-xs) var(--nx-radius-xs);
}

.nx-shell .nx-messages-layout .nx-messages-page-loader__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 32px;
  background: var(--nx-d-surface);
  border: 1px solid var(--nx-d-border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.nx-shell .nx-messages-layout .nx-messages-page-loader__spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(60, 141, 188, 0.2);
  border-top-color: #3c8dbc;
  animation: nx-messages-loader-spin 0.72s linear infinite;
}

.nx-shell .nx-messages-layout .nx-messages-page-loader__text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nx-d-secondary);
  letter-spacing: 0.02em;
}

@keyframes nx-messages-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

html.nx-content-dark-init body.nx-shell.nx-messages-page .nx-messages-layout .nx-messages-page-loader__backdrop,
body.nx-shell.nx-content-dark.nx-messages-page .nx-messages-layout .nx-messages-page-loader__backdrop {
  background: rgba(18, 18, 18, 0.82);
}

html.nx-content-dark-init body.nx-shell.nx-messages-page .nx-messages-layout .nx-messages-page-loader__card,
body.nx-shell.nx-content-dark.nx-messages-page .nx-messages-layout .nx-messages-page-loader__card {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

html.nx-content-dark-init body.nx-shell.nx-messages-page .nx-messages-layout .nx-messages-page-loader__spinner,
body.nx-shell.nx-content-dark.nx-messages-page .nx-messages-layout .nx-messages-page-loader__spinner {
  border-color: rgba(255, 255, 255, 0.12);
  border-top-color: #5cadce;
}

html.nx-content-dark-init body.nx-shell.nx-messages-page .nx-messages-layout .input-group .input-group-addon,
body.nx-shell.nx-content-dark.nx-messages-page .nx-messages-layout .input-group .input-group-addon {
  background: #242424 !important;
  border: 1px solid #2f2f2f !important;
  color: #d4d4d4 !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell.nx-messages-page .nx-messages-layout .input-group-addon .fa,
html.nx-content-dark-init body.nx-shell.nx-messages-page .nx-messages-layout .input-group-addon .glyphicon,
body.nx-shell.nx-content-dark.nx-messages-page .nx-messages-layout .input-group-addon .fa,
body.nx-shell.nx-content-dark.nx-messages-page .nx-messages-layout .input-group-addon .glyphicon {
  color: #d4d4d4 !important;
  opacity: 1 !important;
}

html.nx-content-dark-init body.nx-shell.nx-messages-page .nx-messages-layout .input-group .form-control,
html.nx-content-dark-init body.nx-shell.nx-messages-page .nx-messages-layout .input-group textarea.form-control,
body.nx-shell.nx-content-dark.nx-messages-page .nx-messages-layout .input-group .form-control,
body.nx-shell.nx-content-dark.nx-messages-page .nx-messages-layout .input-group textarea.form-control {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell.nx-messages-page .nx-messages-layout .input-group .form-control:focus,
html.nx-content-dark-init body.nx-shell.nx-messages-page .nx-messages-layout .input-group textarea.form-control:focus,
body.nx-shell.nx-content-dark.nx-messages-page .nx-messages-layout .input-group .form-control:focus,
body.nx-shell.nx-content-dark.nx-messages-page .nx-messages-layout .input-group textarea.form-control:focus {
  border-color: #4a4a4a !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05) !important;
}

html.nx-content-dark-init body.nx-shell.nx-messages-page .nx-messages-layout input[type="date"],
body.nx-shell.nx-content-dark.nx-messages-page .nx-messages-layout input[type="date"] {
  color-scheme: dark;
}

html.nx-content-dark-init body.nx-shell.nx-messages-page .nx-messages-layout .form-group > label,
body.nx-shell.nx-content-dark.nx-messages-page .nx-messages-layout .form-group > label {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell.nx-messages-page .nx-messages-layout .select2-container--default .select2-selection--single,
body.nx-shell.nx-content-dark.nx-messages-page .nx-messages-layout .select2-container--default .select2-selection--single {
  background: #1b1b1b !important;
  border-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell.nx-messages-page .nx-messages-layout .select2-container--default .select2-selection__rendered,
body.nx-shell.nx-content-dark.nx-messages-page .nx-messages-layout .select2-container--default .select2-selection__rendered {
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell.nx-messages-page .nx-messages-layout .select2-container--default .select2-selection__arrow b,
body.nx-shell.nx-content-dark.nx-messages-page .nx-messages-layout .select2-container--default .select2-selection__arrow b {
  border-color: #bdbdbd transparent transparent transparent !important;
}

html.nx-content-dark-init body.nx-shell.nx-messages-page .nx-messages-layout .nx-messages-select-all,
html.nx-content-dark-init body.nx-shell.nx-messages-page .nx-messages-layout .nx-messages-select-all span,
body.nx-shell.nx-content-dark.nx-messages-page .nx-messages-layout .nx-messages-select-all,
body.nx-shell.nx-content-dark.nx-messages-page .nx-messages-layout .nx-messages-select-all span {
  color: #ececec !important;
}

/* ——— Page Envoyer (sender.php) ——— */
.nx-shell .nx-sender-page .nx-sender-single-card,
.nx-shell .nx-sender-page .nx-sender-mass-card {
  margin-bottom: 18px;
}

.nx-shell .nx-sender-page .nx-sender-mass-card:last-child {
  margin-bottom: 0;
}

.nx-shell .nx-sender-page .nx-sender-single-card__head,
.nx-shell .nx-sender-page .nx-sender-mass-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 14px;
}

.nx-shell .nx-sender-page .nx-sender-single-card__head h3,
.nx-shell .nx-sender-page .nx-sender-mass-card__head h3 {
  margin: 0 !important;
  flex: 1 1 auto;
  min-width: 0;
}

.nx-shell .nx-sender-page .nx-sender-mass-card__head-text {
  flex: 1 1 220px;
  min-width: 0;
}

.nx-shell .nx-sender-page .nx-sender-mass-card__meta {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-sender-page .nx-sender-mass-card__meta a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nx-shell .nx-sender-page .nx-sender-info-trigger {
  padding: 4px 8px !important;
  color: var(--nx-d-muted) !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  flex-shrink: 0;
}

.nx-shell .nx-sender-page .nx-sender-info-trigger:hover,
.nx-shell .nx-sender-page .nx-sender-info-trigger:focus {
  color: var(--nx-d-text) !important;
}

.nx-shell .nx-sender-page .gw-dash-table-card__body {
  padding: 18px 20px;
}

.nx-shell .nx-sender-page .gw-dash-table-card__foot {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--nx-d-border);
  background: rgba(0, 0, 0, 0.02);
}

.nx-shell .nx-sender-page .nx-sender-single-card__body > .alert.bg-primary:first-child,
.nx-shell .nx-sender-page .nx-sender-mass-card__body > .alert.bg-primary:first-child {
  margin-top: 0;
}

/* Notices « info » (ex. bg-primary) : neutre, lisible, sans bleu AdminLTE */
.nx-shell .nx-sender-page .nx-sender-single-card__body .alert.bg-primary,
.nx-shell .nx-sender-page .nx-sender-mass-card__body .alert.bg-primary {
  background: rgba(0, 0, 0, 0.035) !important;
  border: 1px solid var(--nx-d-border) !important;
  border-left: 3px solid var(--nx-text) !important;
  border-radius: var(--nx-radius-xs);
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
}

.nx-shell .nx-sender-page .nx-sender-single-card__body .alert.bg-primary h4,
.nx-shell .nx-sender-page .nx-sender-mass-card__body .alert.bg-primary h4 {
  margin-top: 0;
  color: var(--nx-d-text) !important;
  font-size: 0.9375rem;
  font-weight: 600;
}

.nx-shell .nx-sender-page .nx-sender-single-card__body .alert.bg-primary h4 .fa,
.nx-shell .nx-sender-page .nx-sender-mass-card__body .alert.bg-primary h4 .fa {
  color: var(--nx-d-muted) !important;
}

.nx-shell .nx-sender-page .nx-sender-single-card__body .alert.bg-primary .close,
.nx-shell .nx-sender-page .nx-sender-mass-card__body .alert.bg-primary .close {
  color: var(--nx-d-muted) !important;
  opacity: 1 !important;
  text-shadow: none !important;
  font-weight: 400;
}

.nx-shell .nx-sender-page .nx-sender-single-card__body .alert.bg-primary .close:hover,
.nx-shell .nx-sender-page .nx-sender-mass-card__body .alert.bg-primary .close:hover {
  color: var(--nx-d-text) !important;
}

.nx-shell .nx-sender-page .dropzone {
  border-radius: var(--nx-radius-xs);
  border: 2px dashed var(--nx-d-border) !important;
  background: rgba(0, 0, 0, 0.02) !important;
  min-height: 140px;
}

.nx-shell .nx-sender-page .dropzone .dz-message,
.nx-shell .nx-sender-page .dropzone .dz-message h3 {
  color: var(--nx-d-secondary);
  margin: 0;
}

html.nx-content-dark-init body.nx-shell .nx-sender-page .gw-dash-table-card__foot,
body.nx-shell.nx-content-dark .nx-sender-page .gw-dash-table-card__foot {
  background: rgba(0, 0, 0, 0.25);
  border-top-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-sender-page .dropzone,
body.nx-shell.nx-content-dark .nx-sender-page .dropzone {
  background: rgba(0, 0, 0, 0.22) !important;
  border-color: #3a4149 !important;
}

html.nx-content-dark-init body.nx-shell .nx-sender-page .dropzone .dz-message,
html.nx-content-dark-init body.nx-shell .nx-sender-page .dropzone .dz-message h3,
body.nx-shell.nx-content-dark .nx-sender-page .dropzone .dz-message,
body.nx-shell.nx-content-dark .nx-sender-page .dropzone .dz-message h3 {
  color: #c8c8c8 !important;
}

html.nx-content-dark-init body.nx-shell .nx-sender-page .nx-sender-info-trigger,
body.nx-shell.nx-content-dark .nx-sender-page .nx-sender-info-trigger {
  color: #b0b0b0 !important;
}

html.nx-content-dark-init body.nx-shell .nx-sender-page .nx-sender-info-trigger:hover,
html.nx-content-dark-init body.nx-shell .nx-sender-page .nx-sender-info-trigger:focus,
body.nx-shell.nx-content-dark .nx-sender-page .nx-sender-info-trigger:hover,
body.nx-shell.nx-content-dark .nx-sender-page .nx-sender-info-trigger:focus {
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-sender-page .nx-sender-mass-card__meta,
body.nx-shell.nx-content-dark .nx-sender-page .nx-sender-mass-card__meta {
  color: #9ca3af !important;
}

html.nx-content-dark-init body.nx-shell .nx-sender-page .nx-sender-mass-card__meta a,
body.nx-shell.nx-content-dark .nx-sender-page .nx-sender-mass-card__meta a {
  color: #b8d4ea !important;
}

html.nx-content-dark-init body.nx-shell .nx-sender-page .nx-sender-single-card__body .alert.bg-primary,
html.nx-content-dark-init body.nx-shell .nx-sender-page .nx-sender-mass-card__body .alert.bg-primary,
body.nx-shell.nx-content-dark .nx-sender-page .nx-sender-single-card__body .alert.bg-primary,
body.nx-shell.nx-content-dark .nx-sender-page .nx-sender-mass-card__body .alert.bg-primary {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: #2f2f2f !important;
  border-left-color: #d4d4d4 !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-sender-page .nx-sender-single-card__body .alert.bg-primary h4,
html.nx-content-dark-init body.nx-shell .nx-sender-page .nx-sender-mass-card__body .alert.bg-primary h4,
body.nx-shell.nx-content-dark .nx-sender-page .nx-sender-single-card__body .alert.bg-primary h4,
body.nx-shell.nx-content-dark .nx-sender-page .nx-sender-mass-card__body .alert.bg-primary h4 {
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-sender-page .nx-sender-single-card__body .alert.bg-primary h4 .fa,
html.nx-content-dark-init body.nx-shell .nx-sender-page .nx-sender-mass-card__body .alert.bg-primary h4 .fa,
body.nx-shell.nx-content-dark .nx-sender-page .nx-sender-single-card__body .alert.bg-primary h4 .fa,
body.nx-shell.nx-content-dark .nx-sender-page .nx-sender-mass-card__body .alert.bg-primary h4 .fa {
  color: #9ca3af !important;
}

html.nx-content-dark-init body.nx-shell .nx-sender-page .nx-sender-single-card__body .alert.bg-primary .close,
html.nx-content-dark-init body.nx-shell .nx-sender-page .nx-sender-mass-card__body .alert.bg-primary .close,
body.nx-shell.nx-content-dark .nx-sender-page .nx-sender-single-card__body .alert.bg-primary .close,
body.nx-shell.nx-content-dark .nx-sender-page .nx-sender-mass-card__body .alert.bg-primary .close {
  color: #9ca3af !important;
}

html.nx-content-dark-init body.nx-shell .nx-sender-page .nx-sender-single-card__body .alert.bg-primary .close:hover,
html.nx-content-dark-init body.nx-shell .nx-sender-page .nx-sender-mass-card__body .alert.bg-primary .close:hover,
body.nx-shell.nx-content-dark .nx-sender-page .nx-sender-single-card__body .alert.bg-primary .close:hover,
body.nx-shell.nx-content-dark .nx-sender-page .nx-sender-mass-card__body .alert.bg-primary .close:hover {
  color: #fafafa !important;
}

/* ——— Page Test Inbox ——— */
.nx-shell .nx-test-inbox-page .nx-test-inbox-layout {
  max-width: none;
  width: 100%;
}

.nx-shell .nx-test-inbox-page .nx-test-inbox-active-card,
.nx-shell .nx-test-inbox-page .nx-test-inbox-form-card {
  margin-bottom: 18px;
}

.nx-shell .nx-test-inbox-page .nx-test-inbox-active-card {
  border-left: 4px solid #e08e0b;
}

/* En-têtes cartes : même rythme que gw-dash-table-card (h3 avec marge bas 16px) */
.nx-shell .nx-test-inbox-page .nx-test-inbox-form-card__head h3,
.nx-shell .nx-test-inbox-page .nx-test-inbox-active-card__head h3 {
  margin: 0 0 16px !important;
}

.nx-shell .nx-test-inbox-page .nx-test-inbox-form-card__head h3 .fa,
.nx-shell .nx-test-inbox-page .nx-test-inbox-active-card__head h3 .fa {
  color: var(--nx-d-muted);
}

/* Journal : titre sur une ligne avec actions, sans marge basse sur le h3 */
.nx-shell .nx-test-inbox-page .nx-test-inbox-log-card__head h3 {
  margin: 0 !important;
  flex: 1 1 auto;
  min-width: 0;
}

.nx-shell .nx-test-inbox-page .nx-test-inbox-log-card__head h3 .fa {
  color: var(--nx-d-muted);
}

.nx-shell .nx-test-inbox-page .nx-test-inbox-log-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nx-shell .nx-test-inbox-page .nx-test-inbox-form-card__body {
  padding: 18px 20px;
}

.nx-shell .nx-test-inbox-page .nx-test-inbox-active-card__body {
  padding: 18px 20px;
}

.nx-shell .nx-test-inbox-page .nx-test-inbox-form-card__body > h4 {
  margin: 1.35rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--nx-d-text);
}

.nx-shell .nx-test-inbox-page .nx-test-inbox-form-card__body > h4 small {
  font-weight: 400;
  color: var(--nx-d-muted);
}

.nx-shell .nx-test-inbox-page .nx-test-inbox-form-card__foot,
.nx-shell .nx-test-inbox-page .nx-test-inbox-active-card__foot {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--nx-d-border);
  background: rgba(0, 0, 0, 0.02);
}

.nx-shell .nx-test-inbox-page .nx-test-inbox-log-card__body {
  padding: 0 !important;
}

.nx-shell .nx-test-inbox-page .nx-test-inbox-log-wrap {
  max-height: 300px;
  overflow-y: auto;
  padding: 12px 16px 16px;
}

.nx-shell .nx-test-inbox-page .nx-test-inbox-form-card__body .progress {
  border-radius: var(--nx-radius-xs);
  overflow: hidden;
}

/* input-group (ex. intervalle rotation) */
.nx-shell .nx-test-inbox-page .input-group {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.nx-shell .nx-test-inbox-page .input-group .form-control {
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
  border-radius: var(--nx-radius-xs) !important;
}

.nx-shell .nx-test-inbox-page .input-group .input-group-addon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 8px 12px !important;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: rgba(0, 0, 0, 0.04) !important;
  color: var(--nx-d-secondary) !important;
}

/* Addon avec <select> natif (sec / min) : largeur confortable + chevron (appearance:none masque la flèche native) */
.nx-shell .nx-test-inbox-page .input-group-addon.input-group-addon--native-select {
  padding: 2px 4px 2px 8px !important;
  min-width: 5.5rem;
  position: relative;
}

.nx-shell .nx-test-inbox-page .input-group-addon--native-select select {
  --nx-ti-unit-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath stroke='%23525a63' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3.5 5.25 7 8.75l3.5-3.5'/%3E%3C/svg%3E");

  display: block;
  width: 100%;
  min-width: 4.5rem;
  min-height: 34px;
  height: 34px;
  margin: 0;
  border: none;
  background-color: transparent !important;
  background-image: var(--nx-ti-unit-chevron);
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 14px 14px;
  padding: 0 26px 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border-radius: 4px;
  color: var(--nx-d-text);
  box-shadow: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.nx-shell .nx-test-inbox-page .input-group-addon--native-select select:focus {
  outline: none;
  background-color: rgba(0, 0, 0, 0.05) !important;
  background-image: var(--nx-ti-unit-chevron);
}

.nx-shell .nx-test-inbox-page .input-group-addon--native-select select::-ms-expand {
  display: none;
}

html.nx-content-dark-init body.nx-shell .nx-test-inbox-page .nx-test-inbox-form-card__foot,
html.nx-content-dark-init body.nx-shell .nx-test-inbox-page .nx-test-inbox-active-card__foot,
body.nx-shell.nx-content-dark .nx-test-inbox-page .nx-test-inbox-form-card__foot,
body.nx-shell.nx-content-dark .nx-test-inbox-page .nx-test-inbox-active-card__foot {
  background: rgba(0, 0, 0, 0.25);
  border-top-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-test-inbox-page .nx-test-inbox-active-card,
body.nx-shell.nx-content-dark .nx-test-inbox-page .nx-test-inbox-active-card {
  border-left-color: #f0ad4e !important;
}

html.nx-content-dark-init body.nx-shell .nx-test-inbox-page .nx-test-inbox-form-card__body > h4,
body.nx-shell.nx-content-dark .nx-test-inbox-page .nx-test-inbox-form-card__body > h4 {
  color: #fafafa !important;
}

html.nx-content-dark-init body.nx-shell .nx-test-inbox-page .nx-test-inbox-form-card__body > h4 small,
body.nx-shell.nx-content-dark .nx-test-inbox-page .nx-test-inbox-form-card__body > h4 small {
  color: #9ca3af !important;
}

html.nx-content-dark-init body.nx-shell .nx-test-inbox-page .input-group .input-group-addon,
body.nx-shell.nx-content-dark .nx-test-inbox-page .input-group .input-group-addon {
  background: #242424 !important;
  border: 1px solid #2f2f2f !important;
  color: #d4d4d4 !important;
}

html.nx-content-dark-init body.nx-shell .nx-test-inbox-page .input-group-addon.input-group-addon--native-select,
body.nx-shell.nx-content-dark .nx-test-inbox-page .input-group-addon.input-group-addon--native-select {
  background: #343b44 !important;
  border-color: #4a5562 !important;
}

html.nx-content-dark-init body.nx-shell .nx-test-inbox-page .input-group-addon--native-select select,
body.nx-shell.nx-content-dark .nx-test-inbox-page .input-group-addon--native-select select {
  --nx-ti-unit-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath stroke='%23c5d0dc' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3.5 5.25 7 8.75l3.5-3.5'/%3E%3C/svg%3E");

  color: #f2f6fa !important;
  color-scheme: dark;
  background-color: transparent !important;
  background-image: var(--nx-ti-unit-chevron);
}

html.nx-content-dark-init body.nx-shell .nx-test-inbox-page .input-group-addon--native-select select option,
body.nx-shell.nx-content-dark .nx-test-inbox-page .input-group-addon--native-select select option {
  background: #252b32;
  color: #f0f4f8;
}

html.nx-content-dark-init body.nx-shell .nx-test-inbox-page .input-group-addon--native-select select:focus,
body.nx-shell.nx-content-dark .nx-test-inbox-page .input-group-addon--native-select select:focus {
  background-color: rgba(255, 255, 255, 0.08) !important;
  background-image: var(--nx-ti-unit-chevron);
}

html.nx-content-dark-init body.nx-shell .nx-test-inbox-page .input-group .form-control,
body.nx-shell.nx-content-dark .nx-test-inbox-page .input-group .form-control {
  background: #1b1b1b !important;
  border-color: #2f2f2f !important;
  color: #ececec !important;
}

/* Test Inbox : variables {index} / {time} dans <code>, notices info, badges rotation */
.nx-shell .nx-test-inbox-page code {
  font-size: 0.8125rem;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.06);
  color: #0f4a66;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.nx-shell .nx-test-inbox-page .alert.alert-info {
  border-radius: var(--nx-radius-xs) !important;
  background: #eef4f9;
  border: 1px solid #d4e2ef !important;
  color: #2c3f4d;
}

.nx-shell .nx-test-inbox-page .alert.alert-info .fa {
  color: #4a7a9a;
}

html.nx-content-dark-init body.nx-shell .nx-test-inbox-page code,
body.nx-shell.nx-content-dark .nx-test-inbox-page code {
  background: rgba(100, 180, 220, 0.12) !important;
  border-color: rgba(120, 190, 230, 0.28) !important;
  color: #c8e8f5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-test-inbox-page .alert.alert-info,
body.nx-shell.nx-content-dark .nx-test-inbox-page .alert.alert-info {
  background: #1a2430 !important;
  border: 1px solid #2a3d52 !important;
  color: #c5d4e3 !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell .nx-test-inbox-page .alert.alert-info .fa,
body.nx-shell.nx-content-dark .nx-test-inbox-page .alert.alert-info .fa {
  color: #7eb0d4 !important;
}

html.nx-content-dark-init body.nx-shell .nx-test-inbox-page .alert.alert-info strong,
body.nx-shell.nx-content-dark .nx-test-inbox-page .alert.alert-info strong {
  color: #e8eef4 !important;
  font-weight: 600;
}

/* Badges rotation (AdminLTE bg-*) : tons plus sobres en sombre */
html.nx-content-dark-init body.nx-shell .nx-test-inbox-page .badge.bg-blue,
body.nx-shell.nx-content-dark .nx-test-inbox-page .badge.bg-blue {
  background: #1e3a52 !important;
  color: #b8daf0 !important;
}

html.nx-content-dark-init body.nx-shell .nx-test-inbox-page .badge.bg-green,
body.nx-shell.nx-content-dark .nx-test-inbox-page .badge.bg-green {
  background: #1a3d32 !important;
  color: #b5e8d4 !important;
}

html.nx-content-dark-init body.nx-shell .nx-test-inbox-page .badge.bg-orange,
body.nx-shell.nx-content-dark .nx-test-inbox-page .badge.bg-orange {
  background: #4a3518 !important;
  color: #f0d4a8 !important;
}

html.nx-content-dark-init body.nx-shell .nx-test-inbox-page .badge.bg-purple,
body.nx-shell.nx-content-dark .nx-test-inbox-page .badge.bg-purple {
  background: #2e2548 !important;
  color: #d4c8f0 !important;
}

html.nx-content-dark-init body.nx-shell .nx-test-inbox-page .badge.bg-red,
body.nx-shell.nx-content-dark .nx-test-inbox-page .badge.bg-red {
  background: #4a2224 !important;
  color: #f5c2c6 !important;
}

html.nx-content-dark-init body.nx-shell .nx-test-inbox-page .badge.bg-teal,
body.nx-shell.nx-content-dark .nx-test-inbox-page .badge.bg-teal {
  background: #153838 !important;
  color: #b8ece8 !important;
}

html.nx-content-dark-init body.nx-shell .nx-test-inbox-page .help-block,
body.nx-shell.nx-content-dark .nx-test-inbox-page .help-block {
  color: #a8b0ba !important;
}

/* Nuances de gris uniquement pour les filets KPI */
.nx-shell .nx-dashboard .gw-dash-stat--pending {
  --nx-stat-accent: #a3a3a3;
}
.nx-shell .nx-dashboard .gw-dash-stat--scheduled {
  --nx-stat-accent: #737373;
}
.nx-shell .nx-dashboard .gw-dash-stat--queued {
  --nx-stat-accent: #d4d4d4;
}
.nx-shell .nx-dashboard .gw-dash-stat--sent {
  --nx-stat-accent: #525252;
}
.nx-shell .nx-dashboard .gw-dash-stat--delivered {
  --nx-stat-accent: #404040;
}
.nx-shell .nx-dashboard .gw-dash-stat--failed {
  --nx-stat-accent: #0a0a0a;
}
.nx-shell .nx-dashboard .gw-dash-stat--canceled {
  --nx-stat-accent: #d4d4d4;
}
.nx-shell .nx-dashboard .gw-dash-stat--received {
  --nx-stat-accent: #525252;
}
.nx-shell .nx-dashboard .gw-dash-stat--subscription {
  --nx-stat-accent: #171717;
}
.nx-shell .nx-dashboard .gw-dash-stat--admin {
  --nx-stat-accent: #0a0a0a;
}
.nx-shell .nx-dashboard .gw-dash-stat--earnings {
  --nx-stat-accent: #404040;
}

/* ——— Mobile ——— */
@media (max-width: 767px) {
  /* Force layout fluide sur mobile (évite effet compressé) */
  body.nx-shell .main-header,
  body.nx-shell .main-header .logo,
  body.nx-shell .main-header .navbar,
  body.nx-shell .content-wrapper,
  body.nx-shell .main-footer {
    width: 100% !important;
    margin-left: 0 !important;
    min-width: 0 !important;
  }

  body.nx-shell.sidebar-mini.sidebar-collapse .main-header .navbar,
  body.nx-shell.sidebar-mini.sidebar-collapse .content-wrapper,
  body.nx-shell.sidebar-mini.sidebar-collapse .main-footer {
    margin-left: 0 !important;
  }

  body.nx-shell .main-header .logo {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Eviter une barre top trop large quand il y a beaucoup de contrôles */
  body.nx-shell .navbar-custom-menu .navbar-nav {
    gap: 4px;
  }

  body.nx-shell .nx-lang-trigger {
    min-width: 0 !important;
    width: 40px !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  body.nx-shell .nx-lang-current,
  body.nx-shell .nx-lang-chevron {
    display: none !important;
  }

  body.nx-shell .nx-profile-trigger {
    height: 38px !important;
    min-width: 38px !important;
    width: auto !important;
    padding: 0 8px 0 3px !important;
    gap: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.nx-shell .nx-profile-trigger .user-image {
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    flex: 0 0 28px;
    display: block;
  }

  body.nx-shell .nx-profile-trigger__chevron {
    width: 12px !important;
    height: 12px !important;
  }

  .nx-shell .content {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: none !important;
  }

  .nx-shell .content-header {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: none !important;
  }

  .nx-shell .nx-dashboard .gw-dash-board {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px;
  }

  .nx-shell .nx-dashboard .gw-dash-board__history,
  .nx-shell .nx-dashboard .gw-dash-board__rails,
  .nx-shell .nx-dashboard .gw-dash-table-card,
  .nx-shell .nx-dashboard .gw-dash-action-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .nx-shell .nx-dashboard .gw-dash-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nx-shell .nx-dashboard .gw-dash-table {
    min-width: 720px;
  }
}

/* ===== Dark content mode (navbar/sidebar unchanged) ===== */
html.nx-content-dark-init body.nx-shell,
body.nx-shell.nx-content-dark {
  background: #141414 !important;
}

html.nx-content-dark-init body.nx-shell .content-wrapper,
html.nx-content-dark-init body.nx-shell .right-side,
body.nx-shell.nx-content-dark .content-wrapper,
body.nx-shell.nx-content-dark .right-side {
  background: #141414 !important;
}

html.nx-content-dark-init body.nx-shell .content-header > h1,
body.nx-shell.nx-content-dark .content-header > h1 {
  color: #f5f5f5 !important;
}

html.nx-content-dark-init body.nx-shell .content,
body.nx-shell.nx-content-dark .content {
  color: #f1f1f1;
}

html.nx-content-dark-init body.nx-shell .box,
html.nx-content-dark-init body.nx-shell .small-box,
html.nx-content-dark-init body.nx-shell .gw-dash-stat,
html.nx-content-dark-init body.nx-shell .gw-dash-table-card,
html.nx-content-dark-init body.nx-shell .gw-dash-action-card,
body.nx-shell.nx-content-dark .box,
body.nx-shell.nx-content-dark .small-box,
body.nx-shell.nx-content-dark .gw-dash-stat,
body.nx-shell.nx-content-dark .gw-dash-table-card,
body.nx-shell.nx-content-dark .gw-dash-action-card {
  background: #1a1a1a !important;
  border-color: #2f2f2f !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell .box-header,
body.nx-shell.nx-content-dark .box-header {
  border-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .box-header > .box-title,
body.nx-shell.nx-content-dark .box-header > .box-title {
  color: #f5f5f5 !important;
}

html.nx-content-dark-init body.nx-shell .gw-dash-table-card__head h3,
html.nx-content-dark-init body.nx-shell .gw-dash-action-card__title,
html.nx-content-dark-init body.nx-shell .gw-dash-hero__titles h1,
body.nx-shell.nx-content-dark .gw-dash-table-card__head h3,
body.nx-shell.nx-content-dark .gw-dash-action-card__title,
body.nx-shell.nx-content-dark .gw-dash-hero__titles h1 {
  color: #fafafa !important;
}

html.nx-content-dark-init body.nx-shell .gw-dash-stat__value,
html.nx-content-dark-init body.nx-shell .gw-dash-action-card__row > strong,
body.nx-shell.nx-content-dark .gw-dash-stat__value,
body.nx-shell.nx-content-dark .gw-dash-action-card__row > strong {
  color: #fafafa !important;
}

html.nx-content-dark-init body.nx-shell .gw-dash-stat__icon,
html.nx-content-dark-init body.nx-shell .gw-dash-stat__icon i,
html.nx-content-dark-init body.nx-shell .gw-dash-action-card__title i,
body.nx-shell.nx-content-dark .gw-dash-stat__icon,
body.nx-shell.nx-content-dark .gw-dash-stat__icon i,
body.nx-shell.nx-content-dark .gw-dash-action-card__title i {
  color: #d4d4d4 !important;
  opacity: 1 !important;
}

html.nx-content-dark-init body.nx-shell .gw-dash-stat__label,
html.nx-content-dark-init body.nx-shell .gw-dash-hero__subtitle,
html.nx-content-dark-init body.nx-shell .gw-dash-section__title,
html.nx-content-dark-init body.nx-shell .gw-dash-action-card__row > span,
body.nx-shell.nx-content-dark .gw-dash-stat__label,
body.nx-shell.nx-content-dark .gw-dash-hero__subtitle,
body.nx-shell.nx-content-dark .gw-dash-section__title,
body.nx-shell.nx-content-dark .gw-dash-action-card__row > span {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .table > thead > tr > th,
body.nx-shell.nx-content-dark .table > thead > tr > th {
  background: #202020 !important;
  color: #bcbcbc !important;
  border-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .table > tbody > tr > td,
body.nx-shell.nx-content-dark .table > tbody > tr > td {
  border-color: #2f2f2f !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .gw-dash-table tbody tr > td,
body.nx-shell.nx-content-dark .gw-dash-table tbody tr > td {
  background: #1a1a1a !important;
}

html.nx-content-dark-init body.nx-shell .gw-dash-table.table-striped > tbody > tr,
body.nx-shell.nx-content-dark .gw-dash-table.table-striped > tbody > tr {
  background: #1a1a1a !important;
}

html.nx-content-dark-init body.nx-shell .table-striped > tbody > tr:nth-of-type(odd) > td,
body.nx-shell.nx-content-dark .table-striped > tbody > tr:nth-of-type(odd) > td {
  background: #1f1f1f !important;
}

html.nx-content-dark-init body.nx-shell .gw-dash-table.table-striped > tbody > tr:nth-of-type(odd),
body.nx-shell.nx-content-dark .gw-dash-table.table-striped > tbody > tr:nth-of-type(odd) {
  background: #1f1f1f !important;
}

html.nx-content-dark-init body.nx-shell .gw-dash-table tbody tr:hover > td,
body.nx-shell.nx-content-dark .gw-dash-table tbody tr:hover > td {
  background: #242424 !important;
}

html.nx-content-dark-init body.nx-shell .form-control,
html.nx-content-dark-init body.nx-shell .select2-container--default .select2-selection--single,
html.nx-content-dark-init body.nx-shell .select2-container--default .select2-selection--multiple,
body.nx-shell.nx-content-dark .form-control,
body.nx-shell.nx-content-dark .select2-container--default .select2-selection--single,
body.nx-shell.nx-content-dark .select2-container--default .select2-selection--multiple {
  background: #202020 !important;
  border: 1px solid #2f2f2f !important;
  color: #f3f3f3 !important;
  box-shadow: none !important;
}

/* Focus / ouverture : pas d’anneau clair type thème clair sur le contenu sombre */
html.nx-content-dark-init body.nx-shell .form-control:focus,
body.nx-shell.nx-content-dark .form-control:focus {
  border-color: #4a4a4a !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05) !important;
  outline: none !important;
}

/* Thème sombre : champs date/heure natifs — pictogramme calendrier clair sur toute l’app (contenu, modales, etc.) */
html.nx-content-dark-init body.nx-shell input[type="date"],
html.nx-content-dark-init body.nx-shell input[type="datetime-local"],
html.nx-content-dark-init body.nx-shell input[type="time"],
html.nx-content-dark-init body.nx-shell input[type="month"],
html.nx-content-dark-init body.nx-shell input[type="week"],
body.nx-shell.nx-content-dark input[type="date"],
body.nx-shell.nx-content-dark input[type="datetime-local"],
body.nx-shell.nx-content-dark input[type="time"],
body.nx-shell.nx-content-dark input[type="month"],
body.nx-shell.nx-content-dark input[type="week"] {
  color-scheme: dark;
}

/* WebKit (Chrome, Edge, Safari) : forcer pictogramme ~blanc (hors .content : modales, pied de page, etc.) */
html.nx-content-dark-init body.nx-shell input[type="date"]::-webkit-calendar-picker-indicator,
html.nx-content-dark-init body.nx-shell input[type="datetime-local"]::-webkit-calendar-picker-indicator,
html.nx-content-dark-init body.nx-shell input[type="time"]::-webkit-calendar-picker-indicator,
html.nx-content-dark-init body.nx-shell input[type="month"]::-webkit-calendar-picker-indicator,
html.nx-content-dark-init body.nx-shell input[type="week"]::-webkit-calendar-picker-indicator,
body.nx-shell.nx-content-dark input[type="date"]::-webkit-calendar-picker-indicator,
body.nx-shell.nx-content-dark input[type="datetime-local"]::-webkit-calendar-picker-indicator,
body.nx-shell.nx-content-dark input[type="time"]::-webkit-calendar-picker-indicator,
body.nx-shell.nx-content-dark input[type="month"]::-webkit-calendar-picker-indicator,
body.nx-shell.nx-content-dark input[type="week"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.4);
  opacity: 1;
  cursor: pointer;
}

html.nx-content-dark-init body.nx-shell .select2-container--default.select2-container--focus .select2-selection--single,
html.nx-content-dark-init body.nx-shell .select2-container--default.select2-container--focus .select2-selection--multiple,
html.nx-content-dark-init body.nx-shell .select2-container--default.select2-container--open .select2-selection--single,
html.nx-content-dark-init body.nx-shell .select2-container--default.select2-container--open .select2-selection--multiple,
body.nx-shell.nx-content-dark .select2-container--default.select2-container--focus .select2-selection--single,
body.nx-shell.nx-content-dark .select2-container--default.select2-container--focus .select2-selection--multiple,
body.nx-shell.nx-content-dark .select2-container--default.select2-container--open .select2-selection--single,
body.nx-shell.nx-content-dark .select2-container--default.select2-container--open .select2-selection--multiple {
  border-color: #4a4a4a !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05) !important;
}

html.nx-content-dark-init body.nx-shell .select2-dropdown,
body.nx-shell.nx-content-dark .select2-dropdown {
  background: #1a1a1a !important;
  border: 1px solid #2f2f2f !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45) !important;
}

html.nx-content-dark-init body.nx-shell .select2-container--default .select2-results > .select2-results__options,
body.nx-shell.nx-content-dark .select2-container--default .select2-results > .select2-results__options {
  background: #1a1a1a !important;
}

html.nx-content-dark-init body.nx-shell .select2-container--default .select2-results__option,
body.nx-shell.nx-content-dark .select2-container--default .select2-results__option {
  background: #1a1a1a !important;
  color: #e8e8e8 !important;
}

html.nx-content-dark-init body.nx-shell .select2-container--default .select2-results__option[aria-selected="true"],
body.nx-shell.nx-content-dark .select2-container--default .select2-results__option[aria-selected="true"] {
  background: #262626 !important;
  color: #fafafa !important;
}

html.nx-content-dark-init body.nx-shell .select2-container--default .select2-results__option--highlighted[aria-selected],
html.nx-content-dark-init body.nx-shell .select2-container--default .select2-results__option--highlighted[data-selected],
body.nx-shell.nx-content-dark .select2-container--default .select2-results__option--highlighted[aria-selected],
body.nx-shell.nx-content-dark .select2-container--default .select2-results__option--highlighted[data-selected] {
  background: #3a3a3a !important;
  color: #fafafa !important;
}

html.nx-content-dark-init body.nx-shell .select2-container--default .select2-search--dropdown .select2-search__field,
body.nx-shell.nx-content-dark .select2-container--default .select2-search--dropdown .select2-search__field {
  background: #202020 !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell .main-footer.nx-footer,
body.nx-shell.nx-content-dark .main-footer.nx-footer {
  background: #1a1a1a !important;
  border-top-color: #2f2f2f !important;
  color: #a7a7a7 !important;
}

html.nx-content-dark-init body.nx-shell a,
body.nx-shell.nx-content-dark a {
  color: #e8e8e8;
}

/* Liens zone contenu / pied : en clair ils utilisent var(--nx-text) !important (noir) ;
   sans surcharge explicite ils restent illisibles sur fond sombre. */
html.nx-content-dark-init body.nx-shell .content a,
html.nx-content-dark-init body.nx-shell .main-footer a,
body.nx-shell.nx-content-dark .content a,
body.nx-shell.nx-content-dark .main-footer a {
  color: #b8d4ea !important;
}

html.nx-content-dark-init body.nx-shell .content a:hover,
html.nx-content-dark-init body.nx-shell .main-footer a:hover,
body.nx-shell.nx-content-dark .content a:hover,
body.nx-shell.nx-content-dark .main-footer a:hover {
  color: #e8f4fc !important;
}

/* Tableaux cartes dashboard : --nx-d-text reste le noir du thème clair ;
   surcharger le texte des cellules (noms, etc.) en mode contenu sombre. */
html.nx-content-dark-init body.nx-shell .nx-dashboard .gw-dash-table thead th,
body.nx-shell.nx-content-dark .nx-dashboard .gw-dash-table thead th {
  color: #bcbcbc !important;
}

html.nx-content-dark-init body.nx-shell .nx-dashboard .gw-dash-table tbody td,
body.nx-shell.nx-content-dark .nx-dashboard .gw-dash-table tbody td {
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .text-muted,
body.nx-shell.nx-content-dark .text-muted,
html.nx-content-dark-init body.nx-shell .small-box .inner p,
body.nx-shell.nx-content-dark .small-box .inner p,
html.nx-content-dark-init body.nx-shell .label-default,
body.nx-shell.nx-content-dark .label-default {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .label,
body.nx-shell.nx-content-dark .label {
  background: #2a2a2a !important;
  color: #e8e8e8 !important;
}

html.nx-content-dark-init body.nx-shell .gw-dash-action-card__row,
body.nx-shell.nx-content-dark .gw-dash-action-card__row {
  background: rgba(255, 255, 255, 0.03) !important;
}

html.nx-content-dark-init body.nx-shell .gw-dash-action-card__row:hover,
body.nx-shell.nx-content-dark .gw-dash-action-card__row:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

html.nx-content-dark-init body.nx-shell .gw-dash-progress-track,
body.nx-shell.nx-content-dark .gw-dash-progress-track {
  background: #2f2f2f !important;
}

/* ===== Radius unifie (meme style que boutons sidebar) ===== */
body.nx-shell .sidebar-menu > li > a {
  border-radius: var(--nx-radius-xs) !important;
}

/* Header actions */
body.nx-shell .nx-lang-trigger,
body.nx-shell .nx-theme-toggle,
body.nx-shell .nx-profile-trigger,
body.nx-shell .nx-logout-trigger {
  border-radius: var(--nx-radius-xs) !important;
}

body.nx-shell .nx-lang-menu,
body.nx-shell .nx-lang-option {
  border-radius: var(--nx-radius-xs) !important;
}

/* Dashboard controls + cards */
.nx-shell .nx-dashboard .gw-dash-toolbar__icon,
.nx-shell .nx-dashboard .gw-dash-stat-link,
.nx-shell .nx-dashboard .gw-dash-stat,
.nx-shell .nx-dashboard .gw-dash-announcement,
.nx-shell .nx-dashboard .gw-dash-table-card,
.nx-shell .nx-dashboard .gw-dash-action-card,
.nx-shell .nx-dashboard .gw-dash-action-card__row,
.nx-shell .nx-dashboard .gw-dash-interval-trigger,
.nx-shell .nx-dashboard .gw-dash-interval-menu,
.nx-shell .nx-dashboard .gw-dash-interval-menu .gw-dash-interval-option {
  border-radius: var(--nx-radius-xs) !important;
}

.nx-shell .nx-dashboard .gw-dash-progress-track,
.nx-shell .nx-dashboard .gw-dash-progress-bar {
  border-radius: var(--nx-radius-xs) !important;
}

/* ===== Monitoring page redesign ===== */
.nx-shell .nx-monitoring .content-header {
  padding-bottom: 8px !important;
}

.nx-shell .nx-monitoring .gw-monitoring-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.nx-shell .nx-monitoring .gw-monitoring-filter__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nx-shell .nx-monitoring .gw-monitoring-filter__group label {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nx-d-muted);
  margin: 0;
}

.nx-shell .nx-monitoring .gw-monitoring-filter__btn {
  height: 36px;
  padding: 0 12px !important;
}

.nx-shell .nx-monitoring .gw-monitoring-refresh {
  margin-top: 8px;
  font-size: 12px;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nx-shell .nx-monitoring .gw-monitoring-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 1400px) {
  .nx-shell .nx-monitoring .gw-monitoring-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nx-shell .nx-monitoring .gw-monitoring-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nx-shell .nx-monitoring .gw-monitoring-kpi {
  border: 1px solid var(--nx-d-border);
  background: var(--nx-d-surface);
  border-radius: var(--nx-radius-xs);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 78px;
}

.nx-shell .nx-monitoring .gw-monitoring-kpi__icon {
  width: 34px;
  height: 34px;
  border-radius: var(--nx-radius-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex: 0 0 34px;
}

.nx-shell .nx-monitoring .gw-monitoring-kpi__body {
  min-width: 0;
}

.nx-shell .nx-monitoring .gw-monitoring-kpi__title {
  margin: 0 0 4px;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nx-d-secondary);
  font-weight: 700;
}

.nx-shell .nx-monitoring .gw-monitoring-kpi__value {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--nx-d-text);
}

.nx-shell .nx-monitoring .gw-monitoring-kpi__value small {
  font-size: 0.75rem;
  opacity: 0.75;
}

.nx-shell .nx-monitoring .gw-monitoring-kpi--pending .gw-monitoring-kpi__icon { background: #f59e0b4f; }
.nx-shell .nx-monitoring .gw-monitoring-kpi--queued .gw-monitoring-kpi__icon { background: #06b6d44f; }
.nx-shell .nx-monitoring .gw-monitoring-kpi--sent .gw-monitoring-kpi__icon { background: #16a34a4f; }
.nx-shell .nx-monitoring .gw-monitoring-kpi--failed .gw-monitoring-kpi__icon { background: #dc26264f; }
.nx-shell .nx-monitoring .gw-monitoring-kpi--delivered .gw-monitoring-kpi__icon { background: #3b82f64f; }
.nx-shell .nx-monitoring .gw-monitoring-kpi--speed .gw-monitoring-kpi__icon { background: #8b5cf64f; }

.nx-shell .nx-monitoring .gw-monitoring-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--nx-radius-xs);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.nx-shell .nx-monitoring .gw-monitoring-badge--pending { background: #f59e0b; }
.nx-shell .nx-monitoring .gw-monitoring-badge--queued { background: #06b6d4; }
.nx-shell .nx-monitoring .gw-monitoring-badge--sent { background: #16a34a; }
.nx-shell .nx-monitoring .gw-monitoring-badge--failed { background: #dc2626; }
.nx-shell .nx-monitoring .gw-monitoring-badge--delivered { background: #3b82f6; }
.nx-shell .nx-monitoring .gw-monitoring-badge--zero {
  background: rgba(0, 0, 0, 0.08);
  color: var(--nx-d-muted);
}

.nx-shell .nx-monitoring .gw-monitoring-device-label {
  font-size: 13px;
}

.nx-shell .nx-monitoring .gw-monitoring-speed {
  color: var(--nx-d-muted);
}

.nx-shell .nx-monitoring .gw-monitoring-speed.is-active {
  color: #8b5cf6;
}

.nx-shell .nx-monitoring .gw-monitoring-speed small {
  font-weight: 500;
  opacity: 0.8;
}

.nx-shell .nx-monitoring .gw-monitoring-progress-cell {
  min-width: 210px;
}

.nx-shell .nx-monitoring .gw-monitoring-progress {
  height: 18px;
  border-radius: var(--nx-radius-xs);
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 4px;
}

.nx-shell .nx-monitoring .gw-monitoring-progress__bar {
  height: 100%;
  border-radius: var(--nx-radius-xs);
  background: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.nx-shell .nx-monitoring .gw-monitoring-progress.is-complete .gw-monitoring-progress__bar {
  background: #16a34a;
}

.nx-shell .nx-monitoring .gw-monitoring-progress--empty {
  background: rgba(0, 0, 0, 0.06);
}

.nx-shell .nx-monitoring .gw-monitoring-progress__meta {
  font-size: 11px;
  color: var(--nx-d-muted);
}

html.nx-content-dark-init body.nx-shell .nx-monitoring .gw-monitoring-filter__group label,
body.nx-shell.nx-content-dark .nx-monitoring .gw-monitoring-filter__group label {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-monitoring .gw-monitoring-filter__group .form-control,
body.nx-shell.nx-content-dark .nx-monitoring .gw-monitoring-filter__group .form-control {
  background: #191919 !important;
  border-color: #2f2f2f !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-monitoring .gw-monitoring-filter__group .form-control:focus,
body.nx-shell.nx-content-dark .nx-monitoring .gw-monitoring-filter__group .form-control:focus {
  border-color: #4a4a4a !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06) !important;
}

html.nx-content-dark-init body.nx-shell .nx-monitoring .gw-monitoring-filter__btn.btn-default,
body.nx-shell.nx-content-dark .nx-monitoring .gw-monitoring-filter__btn.btn-default {
  background: #202020 !important;
  border-color: #343434 !important;
  color: #ebebeb !important;
}

html.nx-content-dark-init body.nx-shell .nx-monitoring .gw-monitoring-filter__btn.btn-default:hover,
body.nx-shell.nx-content-dark .nx-monitoring .gw-monitoring-filter__btn.btn-default:hover {
  background: #272727 !important;
  border-color: #424242 !important;
}

html.nx-content-dark-init body.nx-shell .nx-monitoring .gw-monitoring-filter__btn.btn-primary,
body.nx-shell.nx-content-dark .nx-monitoring .gw-monitoring-filter__btn.btn-primary {
  background: #2d2d2d !important;
  border-color: #444444 !important;
  color: #ffffff !important;
}

html.nx-content-dark-init body.nx-shell .nx-monitoring .gw-monitoring-filter__btn.btn-primary:hover,
body.nx-shell.nx-content-dark .nx-monitoring .gw-monitoring-filter__btn.btn-primary:hover {
  background: #363636 !important;
  border-color: #565656 !important;
}

html.nx-content-dark-init body.nx-shell .nx-monitoring .gw-monitoring-refresh,
body.nx-shell.nx-content-dark .nx-monitoring .gw-monitoring-refresh {
  color: #8dd6a7 !important;
}

html.nx-content-dark-init body.nx-shell .nx-monitoring .gw-monitoring-kpi,
body.nx-shell.nx-content-dark .nx-monitoring .gw-monitoring-kpi {
  background: #1a1a1a !important;
  border-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-monitoring .gw-monitoring-kpi__title,
body.nx-shell.nx-content-dark .nx-monitoring .gw-monitoring-kpi__title {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-monitoring .gw-monitoring-kpi__value,
body.nx-shell.nx-content-dark .nx-monitoring .gw-monitoring-kpi__value {
  color: #fafafa !important;
}

html.nx-content-dark-init body.nx-shell .nx-monitoring .gw-monitoring-badge--zero,
body.nx-shell.nx-content-dark .nx-monitoring .gw-monitoring-badge--zero {
  background: #262626 !important;
  color: #c6c6c6 !important;
}

html.nx-content-dark-init body.nx-shell .nx-monitoring .gw-monitoring-device-label,
body.nx-shell.nx-content-dark .nx-monitoring .gw-monitoring-device-label {
  color: #ededed !important;
}

html.nx-content-dark-init body.nx-shell .nx-monitoring .gw-monitoring-speed,
body.nx-shell.nx-content-dark .nx-monitoring .gw-monitoring-speed {
  color: #b3b3b3 !important;
}

html.nx-content-dark-init body.nx-shell .nx-monitoring .gw-monitoring-speed.is-active,
body.nx-shell.nx-content-dark .nx-monitoring .gw-monitoring-speed.is-active {
  color: #b08cff !important;
}

html.nx-content-dark-init body.nx-shell .nx-monitoring .gw-monitoring-progress,
body.nx-shell.nx-content-dark .nx-monitoring .gw-monitoring-progress {
  background: #242424 !important;
}

html.nx-content-dark-init body.nx-shell .nx-monitoring .gw-monitoring-progress--empty,
body.nx-shell.nx-content-dark .nx-monitoring .gw-monitoring-progress--empty {
  background: #222222 !important;
}

html.nx-content-dark-init body.nx-shell .nx-monitoring .gw-monitoring-progress__meta,
body.nx-shell.nx-content-dark .nx-monitoring .gw-monitoring-progress__meta {
  color: #b2b2b2 !important;
}

html.nx-content-dark-init body.nx-shell .nx-monitoring #devicesTable > thead > tr > th,
body.nx-shell.nx-content-dark .nx-monitoring #devicesTable > thead > tr > th {
  background: #202020 !important;
  color: #c7c7c7 !important;
  border-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-monitoring #devicesTable > tbody > tr > td,
body.nx-shell.nx-content-dark .nx-monitoring #devicesTable > tbody > tr > td {
  background: #1a1a1a !important;
  color: #ececec !important;
  border-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-monitoring #devicesTable.table-hover > tbody > tr:hover > td,
body.nx-shell.nx-content-dark .nx-monitoring #devicesTable.table-hover > tbody > tr:hover > td {
  background: #242424 !important;
}

/* ===== Profile page redesign ===== */
.nx-shell .nx-profile-page .gw-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.nx-shell .nx-profile-page .gw-profile-card {
  overflow: hidden;
}

.nx-shell .nx-profile-page .gw-profile-form__body {
  padding: 14px;
}

.nx-shell .nx-profile-page .gw-profile-form__footer {
  padding: 0 14px 14px;
  border-top: 1px solid var(--nx-d-border);
  margin-top: 4px;
  padding-top: 12px;
}

.nx-shell .nx-profile-page .gw-profile-form .form-group {
  margin-bottom: 12px;
}

.nx-shell .nx-profile-page .gw-profile-form label {
  font-size: 12px;
  color: var(--nx-d-secondary);
  font-weight: 600;
}

.nx-shell .nx-profile-page .gw-profile-section-card {
  border: 1px solid var(--nx-d-border);
  border-radius: var(--nx-radius-xs);
  background: var(--nx-d-surface-soft);
  overflow: hidden;
  margin-bottom: 12px;
}

.nx-shell .nx-profile-page .gw-profile-section-card:last-child {
  margin-bottom: 0;
}

.nx-shell .nx-profile-page .gw-profile-section-card__head {
  border-bottom: 1px solid var(--nx-d-border);
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.02);
}

.nx-shell .nx-profile-page .gw-profile-section-card__head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--nx-d-text);
}

.nx-shell .nx-profile-page .gw-profile-section-card__body {
  padding: 12px;
}

/* Champs avec icône : addon séparé, bordure complète (plus de fusion Bootstrap) */
.nx-shell .nx-profile-page .input-group {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  border-collapse: separate !important;
}

.nx-shell .nx-profile-page .input-group .input-group-addon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 44px;
  padding: 8px 12px !important;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: rgba(0, 0, 0, 0.04) !important;
  color: var(--nx-d-secondary) !important;
  box-shadow: none !important;
}

.nx-shell .nx-profile-page .input-group .form-control {
  flex: 1 1 160px;
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
}

.nx-shell .nx-profile-page .input-group > .select2-container {
  flex: 1 1 200px;
  min-width: 0;
}

.nx-shell .nx-profile-page .select2-container .select2-selection--single,
.nx-shell .nx-profile-page .select2-container .select2-selection--multiple {
  border-radius: var(--nx-radius-xs) !important;
}

/* Sleep time : addon + deux créneaux espacés, jamais écrasés côte à côte */
.nx-shell .nx-profile-page .gw-profile-sleep-group {
  flex-wrap: nowrap;
  align-items: stretch;
}

.nx-shell .nx-profile-page .gw-profile-sleep-fields {
  display: flex;
  flex: 1 1 220px;
  min-width: 0;
  gap: 10px;
  align-items: stretch;
}

.nx-shell .nx-profile-page .gw-profile-sleep-fields .gw-profile-sleep-field {
  flex: 1 1 0;
  min-width: 7.5rem;
  max-width: none;
}

.nx-shell .nx-profile-page .gw-profile-checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.nx-shell .nx-profile-page .gw-profile-summary-card .gw-dash-action-card__row > strong {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 1024px) {
  .nx-shell .nx-profile-page .gw-profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .nx-shell .nx-profile-page .gw-profile-form__body,
  .nx-shell .nx-profile-page .gw-profile-form__footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .nx-shell .nx-profile-page .gw-profile-section-card__body {
    padding: 10px;
  }

  .nx-shell .nx-profile-page .gw-profile-sleep-group {
    flex-wrap: wrap;
  }

  .nx-shell .nx-profile-page .gw-profile-sleep-fields {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .gw-profile-section-card,
body.nx-shell.nx-content-dark .nx-profile-page .gw-profile-section-card {
  background: #1a1a1a !important;
  border-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .gw-profile-section-card__head,
body.nx-shell.nx-content-dark .nx-profile-page .gw-profile-section-card__head {
  background: #202020 !important;
  border-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .gw-profile-section-card__head h4,
body.nx-shell.nx-content-dark .nx-profile-page .gw-profile-section-card__head h4 {
  color: #f5f5f5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .gw-profile-form label,
body.nx-shell.nx-content-dark .nx-profile-page .gw-profile-form label {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .gw-profile-form__footer,
body.nx-shell.nx-content-dark .nx-profile-page .gw-profile-form__footer {
  border-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .input-group .input-group-addon,
body.nx-shell.nx-content-dark .nx-profile-page .input-group .input-group-addon {
  background: #242424 !important;
  border: 1px solid #2f2f2f !important;
  color: #d4d4d4 !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .input-group-addon .fa,
html.nx-content-dark-init body.nx-shell .nx-profile-page .input-group-addon .glyphicon,
body.nx-shell.nx-content-dark .nx-profile-page .input-group-addon .fa,
body.nx-shell.nx-content-dark .nx-profile-page .input-group-addon .glyphicon {
  color: #d4d4d4 !important;
  opacity: 1 !important;
}

/* Annule les bordures claires imposées par les règles profil (var --nx-d-border = gris clair) */
html.nx-content-dark-init body.nx-shell .nx-profile-page .input-group .form-control,
body.nx-shell.nx-content-dark .nx-profile-page .input-group .form-control {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .input-group .form-control:focus,
body.nx-shell.nx-content-dark .nx-profile-page .input-group .form-control:focus {
  border-color: #4a4a4a !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05) !important;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .gw-profile-form__body > .form-group > .form-control,
body.nx-shell.nx-content-dark .nx-profile-page .gw-profile-form__body > .form-group > .form-control {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .gw-profile-form__body > .form-group > .form-control:focus,
body.nx-shell.nx-content-dark .nx-profile-page .gw-profile-form__body > .form-group > .form-control:focus {
  border-color: #4a4a4a !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05) !important;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .form-control:disabled,
body.nx-shell.nx-content-dark .nx-profile-page .form-control:disabled {
  background: #161616 !important;
  border-color: #2a2a2a !important;
  color: #7a7a7a !important;
  opacity: 1 !important;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .select2-container--default .select2-selection--single,
html.nx-content-dark-init body.nx-shell .nx-profile-page .select2-container--default .select2-selection--multiple,
body.nx-shell.nx-content-dark .nx-profile-page .select2-container--default .select2-selection--single,
body.nx-shell.nx-content-dark .nx-profile-page .select2-container--default .select2-selection--multiple {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .select2-container--default .select2-selection--single .select2-selection__rendered,
body.nx-shell.nx-content-dark .nx-profile-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .select2-container--default .select2-selection__placeholder,
body.nx-shell.nx-content-dark .nx-profile-page .select2-container--default .select2-selection__placeholder {
  color: #8a8a8a !important;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .select2-container--default .select2-selection__arrow b,
body.nx-shell.nx-content-dark .nx-profile-page .select2-container--default .select2-selection__arrow b {
  border-color: #bdbdbd transparent transparent transparent !important;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page input[type="time"],
html.nx-content-dark-init body.nx-shell .nx-profile-page input[type="date"],
html.nx-content-dark-init body.nx-shell .nx-profile-page input[type="number"],
html.nx-content-dark-init body.nx-shell .nx-profile-page input[type="email"],
body.nx-shell.nx-content-dark .nx-profile-page input[type="time"],
body.nx-shell.nx-content-dark .nx-profile-page input[type="date"],
body.nx-shell.nx-content-dark .nx-profile-page input[type="number"],
body.nx-shell.nx-content-dark .nx-profile-page input[type="email"] {
  color-scheme: dark;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .gw-profile-section-card__head h4 .fa,
body.nx-shell.nx-content-dark .nx-profile-page .gw-profile-section-card__head h4 .fa {
  color: #bdbdbd !important;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .gw-dash-table-card__head h3,
body.nx-shell.nx-content-dark .nx-profile-page .gw-dash-table-card__head h3 {
  color: #fafafa !important;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .gw-dash-table-card__head h3 .fa,
body.nx-shell.nx-content-dark .nx-profile-page .gw-dash-table-card__head h3 .fa {
  color: #bdbdbd !important;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .gw-dash-action-card__title .fa,
body.nx-shell.nx-content-dark .nx-profile-page .gw-dash-action-card__title .fa {
  color: #bdbdbd !important;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .form-group label .fa-info-circle,
body.nx-shell.nx-content-dark .nx-profile-page .form-group label .fa-info-circle {
  color: #9ca3af !important;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .gw-dash-hero__titles h1 .fa,
body.nx-shell.nx-content-dark .nx-profile-page .gw-dash-hero__titles h1 .fa {
  color: #bdbdbd !important;
}

html.nx-content-dark-init body.nx-shell .nx-profile-page .gw-dash-hero__subtitle,
body.nx-shell.nx-content-dark .nx-profile-page .gw-dash-hero__subtitle {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .gw-dash-toolbar__icon,
body.nx-shell.nx-content-dark .gw-dash-toolbar__icon {
  background: #1a1a1a !important;
  border-color: #2f2f2f !important;
  color: #bdbdbd !important;
}

html.nx-content-dark-init body.nx-shell .gw-dash-interval-trigger,
body.nx-shell.nx-content-dark .gw-dash-interval-trigger {
  background: #1a1a1a !important;
  border-color: #2f2f2f !important;
  color: #e9e9e9 !important;
}

html.nx-content-dark-init body.nx-shell .gw-dash-interval-trigger:hover,
html.nx-content-dark-init body.nx-shell .gw-dash-interval-trigger:focus,
body.nx-shell.nx-content-dark .gw-dash-interval-trigger:hover,
body.nx-shell.nx-content-dark .gw-dash-interval-trigger:focus {
  background: #232323 !important;
  border-color: #3a3a3a !important;
}

html.nx-content-dark-init body.nx-shell .gw-dash-interval-trigger .nx-lang-current,
html.nx-content-dark-init body.nx-shell .gw-dash-interval-trigger .nx-lang-chevron,
html.nx-content-dark-init body.nx-shell .gw-dash-interval-trigger .nx-nav-icon,
body.nx-shell.nx-content-dark .gw-dash-interval-trigger .nx-lang-current,
body.nx-shell.nx-content-dark .gw-dash-interval-trigger .nx-lang-chevron,
body.nx-shell.nx-content-dark .gw-dash-interval-trigger .nx-nav-icon {
  color: #e9e9e9 !important;
}

html.nx-content-dark-init body.nx-shell .gw-dash-interval-menu,
body.nx-shell.nx-content-dark .gw-dash-interval-menu {
  background: #1a1a1a !important;
  border-color: #2f2f2f !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

html.nx-content-dark-init body.nx-shell .gw-dash-interval-menu .gw-dash-interval-option,
body.nx-shell.nx-content-dark .gw-dash-interval-menu .gw-dash-interval-option {
  color: #e5e5e5 !important;
  background: transparent !important;
}

html.nx-content-dark-init body.nx-shell .gw-dash-interval-menu .gw-dash-interval-option:hover,
html.nx-content-dark-init body.nx-shell .gw-dash-interval-menu .gw-dash-interval-option:focus,
body.nx-shell.nx-content-dark .gw-dash-interval-menu .gw-dash-interval-option:hover,
body.nx-shell.nx-content-dark .gw-dash-interval-menu .gw-dash-interval-option:focus {
  background: #242424 !important;
  color: #ffffff !important;
}

html.nx-content-dark-init body.nx-shell .gw-dash-interval-menu .gw-dash-interval-option.is-selected,
body.nx-shell.nx-content-dark .gw-dash-interval-menu .gw-dash-interval-option.is-selected {
  background: #2b2b2b !important;
  color: #ffffff !important;
}

/* ===== Page Devices (liste) ===== */
/* Évite que la classe Bootstrap par défaut du wrapper DataTables ne force un flux inline bizarre en bas de page */
.nx-shell .nx-devices-page .dataTables_wrapper.dt-bootstrap.form-inline {
  display: block !important;
}

.nx-shell .nx-devices-page .gw-devices-hero {
  align-items: flex-end;
}

.nx-shell .nx-devices-page .gw-devices-hero__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.nx-shell .nx-devices-page .gw-devices-hero__label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-devices-page .gw-devices-hero__toolbar .select2-container {
  min-width: 220px;
  flex: 1 1 240px;
  max-width: 420px;
}

.nx-shell .nx-devices-page .gw-devices-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px !important;
}

.nx-shell .nx-devices-page .gw-devices-card__head h3 {
  margin: 0 !important;
}

.nx-shell .nx-devices-page .gw-devices-card__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nx-shell .nx-devices-page .gw-devices-table-wrap .gw-dt-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--nx-d-border);
}

.nx-shell .nx-devices-page .gw-dt-length {
  flex: 1 1 220px;
  min-width: 0;
}

.nx-shell .nx-devices-page .dataTables_length {
  margin: 0 !important;
}

.nx-shell .nx-devices-page .dataTables_length label {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 !important;
  font-size: 13px;
  font-weight: 500;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-devices-page .dataTables_length select {
  min-height: 36px;
  padding: 6px 32px 6px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
  cursor: pointer;
}

.nx-shell .nx-devices-page .dataTables_filter {
  margin: 0 !important;
  flex: 1 1 200px;
  min-width: 0;
}

.nx-shell .nx-devices-page .dataTables_filter label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-devices-page .dataTables_filter input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 36px;
  padding: 6px 12px !important;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
}

.nx-shell .nx-devices-page .dataTables_info {
  padding: 12px 16px 4px;
  font-size: 12px;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-devices-page .dataTables_paginate {
  padding: 4px 16px 14px;
  text-align: right;
}

/* Bootstrap 3 + DataTables : les <li> collés créent des doubles traits « deux petits trucs » — on repasse en pilules sur les <a> */
.nx-shell .nx-devices-page .dataTables_paginate ul.pagination {
  display: inline-flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border: 0 !important;
  box-shadow: none !important;
  vertical-align: middle;
}

.nx-shell .nx-devices-page .dataTables_paginate ul.pagination > li {
  display: inline-flex !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.nx-shell .nx-devices-page .dataTables_paginate ul.pagination > li > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px !important;
  margin: 0 !important;
  float: none !important;
  line-height: 1.2 !important;
  border-radius: 999px !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
}

.nx-shell .nx-devices-page .dataTables_paginate ul.pagination > li > a:hover,
.nx-shell .nx-devices-page .dataTables_paginate ul.pagination > li > a:focus {
  background: var(--nx-d-bg) !important;
  border-color: var(--nx-border-strong) !important;
  color: var(--nx-d-text) !important;
}

.nx-shell .nx-devices-page .dataTables_paginate ul.pagination > li.disabled > a,
.nx-shell .nx-devices-page .dataTables_paginate ul.pagination > li.disabled > a:hover,
.nx-shell .nx-devices-page .dataTables_paginate ul.pagination > li.disabled > a:focus {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  pointer-events: none;
}

.nx-shell .nx-devices-page .dataTables_processing {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid var(--nx-d-border) !important;
  border-radius: var(--nx-radius-xs) !important;
  color: var(--nx-d-text) !important;
}

/* Modales (attachées au body) — thème sombre contenu */
html.nx-content-dark-init body.nx-shell .modal-content,
body.nx-shell.nx-content-dark .modal-content {
  background: #1a1a1a !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55) !important;
}

html.nx-content-dark-init body.nx-shell .modal-header,
body.nx-shell.nx-content-dark .modal-header {
  border-bottom-color: #2f2f2f !important;
  background: #1a1a1a !important;
}

html.nx-content-dark-init body.nx-shell .modal-title,
body.nx-shell.nx-content-dark .modal-title {
  color: #fafafa !important;
}

html.nx-content-dark-init body.nx-shell .modal-header .close,
body.nx-shell.nx-content-dark .modal-header .close {
  color: #d4d4d4 !important;
  opacity: 0.85;
  text-shadow: none;
}

html.nx-content-dark-init body.nx-shell .modal-body,
body.nx-shell.nx-content-dark .modal-body {
  background: #1a1a1a !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .modal-footer,
body.nx-shell.nx-content-dark .modal-footer {
  border-top-color: #2f2f2f !important;
  background: #1a1a1a !important;
}

html.nx-content-dark-init body.nx-shell .modal-body .form-control,
body.nx-shell.nx-content-dark .modal-body .form-control {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell .modal-body .input-group-addon,
body.nx-shell.nx-content-dark .modal-body .input-group-addon {
  background: #242424 !important;
  border: 1px solid #2f2f2f !important;
  color: #d4d4d4 !important;
}

html.nx-content-dark-init body.nx-shell .modal-body .input-group-addon .fa,
body.nx-shell.nx-content-dark .modal-body .input-group-addon .fa {
  color: #d4d4d4 !important;
}

html.nx-content-dark-init body.nx-shell .modal-body .select2-container--default .select2-selection--single,
html.nx-content-dark-init body.nx-shell .modal-body .select2-container--default .select2-selection--multiple,
body.nx-shell.nx-content-dark .modal-body .select2-container--default .select2-selection--single,
body.nx-shell.nx-content-dark .modal-body .select2-container--default .select2-selection--multiple {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .modal-body .select2-container--default .select2-selection__rendered,
body.nx-shell.nx-content-dark .modal-body .select2-container--default .select2-selection__rendered {
  color: #ececec !important;
}

/* Devices — thème sombre (DataTables + carte) */
html.nx-content-dark-init body.nx-shell .nx-devices-page .gw-devices-hero__label,
body.nx-shell.nx-content-dark .nx-devices-page .gw-devices-hero__label {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-devices-page .gw-devices-table-wrap .gw-dt-controls,
body.nx-shell.nx-content-dark .nx-devices-page .gw-devices-table-wrap .gw-dt-controls {
  border-bottom-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-devices-page .dataTables_length label,
body.nx-shell.nx-content-dark .nx-devices-page .dataTables_length label {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-devices-page .dataTables_length select,
body.nx-shell.nx-content-dark .nx-devices-page .dataTables_length select {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
  color-scheme: dark;
}

html.nx-content-dark-init body.nx-shell .nx-devices-page .dataTables_filter label,
body.nx-shell.nx-content-dark .nx-devices-page .dataTables_filter label {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-devices-page .dataTables_filter input[type="search"],
body.nx-shell.nx-content-dark .nx-devices-page .dataTables_filter input[type="search"] {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-devices-page .dataTables_info,
body.nx-shell.nx-content-dark .nx-devices-page .dataTables_info {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-devices-page .dataTables_paginate ul.pagination > li > a,
body.nx-shell.nx-content-dark .nx-devices-page .dataTables_paginate ul.pagination > li > a {
  background: #1f1f1f !important;
  border: 1px solid #2f2f2f !important;
  color: #e8e8e8 !important;
}

html.nx-content-dark-init body.nx-shell .nx-devices-page .dataTables_paginate ul.pagination > li > a:hover,
html.nx-content-dark-init body.nx-shell .nx-devices-page .dataTables_paginate ul.pagination > li > a:focus,
body.nx-shell.nx-content-dark .nx-devices-page .dataTables_paginate ul.pagination > li > a:hover,
body.nx-shell.nx-content-dark .nx-devices-page .dataTables_paginate ul.pagination > li > a:focus {
  background: #2a2a2a !important;
  border-color: #3a3a3a !important;
  color: #fff !important;
}

html.nx-content-dark-init body.nx-shell .nx-devices-page .dataTables_paginate ul.pagination > li.disabled > a,
body.nx-shell.nx-content-dark .nx-devices-page .dataTables_paginate ul.pagination > li.disabled > a {
  background: #1a1a1a !important;
  border-color: #2f2f2f !important;
  color: #8a8a8a !important;
}

html.nx-content-dark-init body.nx-shell .nx-devices-page .dataTables_processing,
body.nx-shell.nx-content-dark .nx-devices-page .dataTables_processing {
  background: rgba(26, 26, 26, 0.95) !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-devices-page .gw-dash-table-card__head h3 .fa,
body.nx-shell.nx-content-dark .nx-devices-page .gw-dash-table-card__head h3 .fa {
  color: #bdbdbd !important;
}

@media (max-width: 767px) {
  .nx-shell .nx-devices-page .gw-devices-hero__toolbar .select2-container {
    max-width: none;
    width: 100% !important;
  }
}

/* ===== Page Blacklist ===== */
.nx-shell .nx-blacklist-page .gw-blacklist-hero {
  align-items: flex-end;
}

.nx-shell .nx-blacklist-page .gw-blacklist-hero__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.nx-shell .nx-blacklist-page .gw-blacklist-hero__label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-blacklist-page .gw-blacklist-hero__toolbar .select2-container {
  min-width: 220px;
  flex: 1 1 240px;
  max-width: 420px;
}

.nx-shell .nx-blacklist-page .gw-blacklist-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px !important;
}

.nx-shell .nx-blacklist-page .gw-blacklist-card__head h3 {
  margin: 0 !important;
}

.nx-shell .nx-blacklist-page .gw-blacklist-card__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nx-shell .nx-blacklist-page .gw-blacklist-table-wrap .gw-dt-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--nx-d-border);
}

.nx-shell .nx-blacklist-page .dataTables_length label,
.nx-shell .nx-blacklist-page .dataTables_filter label {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  font-size: 13px;
  font-weight: 500;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-blacklist-page .dataTables_length select,
.nx-shell .nx-blacklist-page .dataTables_filter input[type="search"] {
  min-height: 36px;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
}

.nx-shell .nx-blacklist-page .dataTables_info {
  padding: 12px 16px 4px;
  font-size: 12px;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-blacklist-page .dataTables_paginate {
  padding: 4px 16px 14px;
  text-align: right;
}

.nx-shell .nx-blacklist-page .dataTables_paginate ul.pagination {
  display: inline-flex !important;
  gap: 8px !important;
  margin: 0 !important;
}

.nx-shell .nx-blacklist-page .dataTables_paginate ul.pagination > li > a {
  border-radius: 999px !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
}

html.nx-content-dark-init body.nx-shell .nx-blacklist-page .gw-blacklist-hero__label,
body.nx-shell.nx-content-dark .nx-blacklist-page .gw-blacklist-hero__label,
html.nx-content-dark-init body.nx-shell .nx-blacklist-page .dataTables_length label,
body.nx-shell.nx-content-dark .nx-blacklist-page .dataTables_length label,
html.nx-content-dark-init body.nx-shell .nx-blacklist-page .dataTables_filter label,
body.nx-shell.nx-content-dark .nx-blacklist-page .dataTables_filter label,
html.nx-content-dark-init body.nx-shell .nx-blacklist-page .dataTables_info,
body.nx-shell.nx-content-dark .nx-blacklist-page .dataTables_info {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-blacklist-page .gw-blacklist-table-wrap .gw-dt-controls,
body.nx-shell.nx-content-dark .nx-blacklist-page .gw-blacklist-table-wrap .gw-dt-controls {
  border-bottom-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-blacklist-page .dataTables_length select,
html.nx-content-dark-init body.nx-shell .nx-blacklist-page .dataTables_filter input[type="search"],
body.nx-shell.nx-content-dark .nx-blacklist-page .dataTables_length select,
body.nx-shell.nx-content-dark .nx-blacklist-page .dataTables_filter input[type="search"] {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-blacklist-page .dataTables_paginate ul.pagination > li > a,
body.nx-shell.nx-content-dark .nx-blacklist-page .dataTables_paginate ul.pagination > li > a {
  background: #1f1f1f !important;
  border: 1px solid #2f2f2f !important;
  color: #e8e8e8 !important;
}

html.nx-content-dark-init body.nx-shell .nx-blacklist-page .dataTables_paginate ul.pagination > li > a:hover,
body.nx-shell.nx-content-dark .nx-blacklist-page .dataTables_paginate ul.pagination > li > a:hover {
  background: #2a2a2a !important;
  border-color: #3a3a3a !important;
  color: #ffffff !important;
}

html.nx-content-dark-init body.nx-shell .nx-blacklist-page .gw-blacklist-card__head h3 .fa,
body.nx-shell.nx-content-dark .nx-blacklist-page .gw-blacklist-card__head h3 .fa {
  color: #bdbdbd !important;
}

/* ===== Page Auto-responder ===== */
.nx-shell .nx-auto-responder-page .content > .gw-dash-table-card {
  margin-bottom: 20px;
}

.nx-shell .nx-auto-responder-page .content > .gw-dash-table-card:last-child {
  margin-bottom: 0;
}

.nx-shell .nx-auto-responder-page .dataTables_wrapper.dt-bootstrap.form-inline {
  display: block !important;
}

.nx-shell .nx-auto-responder-page .gw-ar-hero {
  align-items: flex-end;
}

.nx-shell .nx-auto-responder-page .gw-ar-add-card__body {
  padding: 18px 20px;
}

.nx-shell .nx-auto-responder-page .gw-ar-add-card__foot {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--nx-d-border);
  background: rgba(0, 0, 0, 0.02);
}

html.nx-content-dark-init body.nx-shell .nx-auto-responder-page .gw-ar-add-card__foot,
body.nx-shell.nx-content-dark .nx-auto-responder-page .gw-ar-add-card__foot {
  background: rgba(0, 0, 0, 0.25);
  border-top-color: #2f2f2f !important;
}

.nx-shell .nx-auto-responder-page .gw-ar-list-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px !important;
}

.nx-shell .nx-auto-responder-page .gw-ar-list-card__head h3 {
  margin: 0 !important;
}

.nx-shell .nx-auto-responder-page .gw-ar-list-card__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nx-shell .nx-auto-responder-page .gw-ar-table-wrap .gw-dt-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--nx-d-border);
}

.nx-shell .nx-auto-responder-page .dataTables_length label,
.nx-shell .nx-auto-responder-page .dataTables_filter label {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  font-size: 13px;
  font-weight: 500;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-auto-responder-page .dataTables_length select,
.nx-shell .nx-auto-responder-page .dataTables_filter input[type="search"] {
  min-height: 36px;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
}

.nx-shell .nx-auto-responder-page .dataTables_info {
  padding: 12px 16px 4px;
  font-size: 12px;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-auto-responder-page .dataTables_paginate {
  padding: 4px 16px 14px;
  text-align: right;
}

.nx-shell .nx-auto-responder-page .dataTables_paginate ul.pagination {
  display: inline-flex !important;
  gap: 8px !important;
  margin: 0 !important;
}

.nx-shell .nx-auto-responder-page .dataTables_paginate ul.pagination > li > a {
  border-radius: 999px !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
}

html.nx-content-dark-init body.nx-shell .nx-auto-responder-page .dataTables_length label,
body.nx-shell.nx-content-dark .nx-auto-responder-page .dataTables_length label,
html.nx-content-dark-init body.nx-shell .nx-auto-responder-page .dataTables_filter label,
body.nx-shell.nx-content-dark .nx-auto-responder-page .dataTables_filter label,
html.nx-content-dark-init body.nx-shell .nx-auto-responder-page .dataTables_info,
body.nx-shell.nx-content-dark .nx-auto-responder-page .dataTables_info {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-auto-responder-page .gw-ar-table-wrap .gw-dt-controls,
body.nx-shell.nx-content-dark .nx-auto-responder-page .gw-ar-table-wrap .gw-dt-controls {
  border-bottom-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-auto-responder-page .dataTables_length select,
html.nx-content-dark-init body.nx-shell .nx-auto-responder-page .dataTables_filter input[type="search"],
body.nx-shell.nx-content-dark .nx-auto-responder-page .dataTables_length select,
body.nx-shell.nx-content-dark .nx-auto-responder-page .dataTables_filter input[type="search"] {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-auto-responder-page .dataTables_paginate ul.pagination > li > a,
body.nx-shell.nx-content-dark .nx-auto-responder-page .dataTables_paginate ul.pagination > li > a {
  background: #1f1f1f !important;
  border: 1px solid #2f2f2f !important;
  color: #e8e8e8 !important;
}

html.nx-content-dark-init body.nx-shell .nx-auto-responder-page .dataTables_paginate ul.pagination > li > a:hover,
body.nx-shell.nx-content-dark .nx-auto-responder-page .dataTables_paginate ul.pagination > li > a:hover {
  background: #2a2a2a !important;
  border-color: #3a3a3a !important;
  color: #ffffff !important;
}

html.nx-content-dark-init body.nx-shell .nx-auto-responder-page .gw-ar-list-card__head h3 .fa,
body.nx-shell.nx-content-dark .nx-auto-responder-page .gw-ar-list-card__head h3 .fa {
  color: #bdbdbd !important;
}

html.nx-content-dark-init body.nx-shell .nx-auto-responder-page .gw-dash-hero__subtitle,
body.nx-shell.nx-content-dark .nx-auto-responder-page .gw-dash-hero__subtitle {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-auto-responder-page .gw-ar-add-card__body .form-group > label,
body.nx-shell.nx-content-dark .nx-auto-responder-page .gw-ar-add-card__body .form-group > label {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-auto-responder-page .gw-ar-add-card__body .form-control,
body.nx-shell.nx-content-dark .nx-auto-responder-page .gw-ar-add-card__body .form-control {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell .nx-auto-responder-page .gw-ar-add-card__body .form-control:focus,
body.nx-shell.nx-content-dark .nx-auto-responder-page .gw-ar-add-card__body .form-control:focus {
  border-color: #4a4a4a !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05) !important;
}

html.nx-content-dark-init body.nx-shell .nx-auto-responder-page .gw-ar-add-card__body .select2-container--default .select2-selection--single,
body.nx-shell.nx-content-dark .nx-auto-responder-page .gw-ar-add-card__body .select2-container--default .select2-selection--single {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-auto-responder-page .gw-ar-add-card__body .select2-container--default .select2-selection__rendered,
body.nx-shell.nx-content-dark .nx-auto-responder-page .gw-ar-add-card__body .select2-container--default .select2-selection__rendered {
  color: #ececec !important;
}

/* ===== Page Subscriptions (abonnements) ===== */
.nx-shell .nx-subscriptions-page .content > .gw-dash-table-card {
  margin-bottom: 20px;
}

.nx-shell .nx-subscriptions-page .content > .gw-dash-table-card:last-child {
  margin-bottom: 0;
}

.nx-shell .nx-subscriptions-page .dataTables_wrapper.dt-bootstrap.form-inline {
  display: block !important;
}

.nx-shell .nx-subscriptions-page .gw-subs-hero {
  align-items: flex-end;
}

.nx-shell .nx-subscriptions-page .gw-subs-list-card__head,
.nx-shell .nx-subscriptions-page .gw-subs-payments-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px !important;
}

.nx-shell .nx-subscriptions-page .gw-subs-list-card__head h3,
.nx-shell .nx-subscriptions-page .gw-subs-payments-card__head h3 {
  margin: 0 !important;
}

.nx-shell .nx-subscriptions-page .gw-subs-list-card__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nx-shell .nx-subscriptions-page .gw-subs-table-wrap .gw-dt-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--nx-d-border);
}

.nx-shell .nx-subscriptions-page .dataTables_length label,
.nx-shell .nx-subscriptions-page .dataTables_filter label {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  font-size: 13px;
  font-weight: 500;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-subscriptions-page .dataTables_length select,
.nx-shell .nx-subscriptions-page .dataTables_filter input[type="search"] {
  min-height: 36px;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
}

.nx-shell .nx-subscriptions-page .dataTables_info {
  padding: 12px 16px 4px;
  font-size: 12px;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-subscriptions-page .dataTables_paginate {
  padding: 4px 16px 14px;
  text-align: right;
}

.nx-shell .nx-subscriptions-page .dataTables_paginate ul.pagination {
  display: inline-flex !important;
  gap: 8px !important;
  margin: 0 !important;
}

.nx-shell .nx-subscriptions-page .dataTables_paginate ul.pagination > li > a {
  border-radius: 999px !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
}

html.nx-content-dark-init body.nx-shell .nx-subscriptions-page .dataTables_length label,
body.nx-shell.nx-content-dark .nx-subscriptions-page .dataTables_length label,
html.nx-content-dark-init body.nx-shell .nx-subscriptions-page .dataTables_filter label,
body.nx-shell.nx-content-dark .nx-subscriptions-page .dataTables_filter label,
html.nx-content-dark-init body.nx-shell .nx-subscriptions-page .dataTables_info,
body.nx-shell.nx-content-dark .nx-subscriptions-page .dataTables_info {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-subscriptions-page .gw-subs-table-wrap .gw-dt-controls,
body.nx-shell.nx-content-dark .nx-subscriptions-page .gw-subs-table-wrap .gw-dt-controls {
  border-bottom-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-subscriptions-page .dataTables_length select,
html.nx-content-dark-init body.nx-shell .nx-subscriptions-page .dataTables_filter input[type="search"],
body.nx-shell.nx-content-dark .nx-subscriptions-page .dataTables_length select,
body.nx-shell.nx-content-dark .nx-subscriptions-page .dataTables_filter input[type="search"] {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-subscriptions-page .dataTables_paginate ul.pagination > li > a,
body.nx-shell.nx-content-dark .nx-subscriptions-page .dataTables_paginate ul.pagination > li > a {
  background: #1f1f1f !important;
  border: 1px solid #2f2f2f !important;
  color: #e8e8e8 !important;
}

html.nx-content-dark-init body.nx-shell .nx-subscriptions-page .dataTables_paginate ul.pagination > li > a:hover,
body.nx-shell.nx-content-dark .nx-subscriptions-page .dataTables_paginate ul.pagination > li > a:hover {
  background: #2a2a2a !important;
  border-color: #3a3a3a !important;
  color: #ffffff !important;
}

html.nx-content-dark-init body.nx-shell .nx-subscriptions-page .gw-subs-list-card__head h3 .fa,
html.nx-content-dark-init body.nx-shell .nx-subscriptions-page .gw-subs-payments-card__head h3 .fa,
body.nx-shell.nx-content-dark .nx-subscriptions-page .gw-subs-list-card__head h3 .fa,
body.nx-shell.nx-content-dark .nx-subscriptions-page .gw-subs-payments-card__head h3 .fa {
  color: #bdbdbd !important;
}

html.nx-content-dark-init body.nx-shell .nx-subscriptions-page .gw-dash-hero__subtitle,
body.nx-shell.nx-content-dark .nx-subscriptions-page .gw-dash-hero__subtitle {
  color: #b5b5b5 !important;
}


/* ===== Page Plans (admin) ===== */
.nx-shell .nx-plans-page .content > .gw-dash-table-card {
  margin-bottom: 20px;
}

.nx-shell .nx-plans-page .content > .gw-dash-table-card:last-child {
  margin-bottom: 0;
}

.nx-shell .nx-plans-page .dataTables_wrapper.dt-bootstrap.form-inline {
  display: block !important;
}

.nx-shell .nx-plans-page .gw-plans-hero {
  align-items: flex-end;
}

.nx-shell .nx-plans-page .gw-plans-create-card__body {
  padding: 18px 20px;
}

.nx-shell .nx-plans-page .gw-plans-create-card__foot {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--nx-d-border);
  background: rgba(0, 0, 0, 0.02);
}

.nx-shell .nx-plans-page .gw-plans-list-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px !important;
}

.nx-shell .nx-plans-page .gw-plans-list-card__head h3 {
  margin: 0 !important;
}

.nx-shell .nx-plans-page .gw-plans-list-card__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nx-shell .nx-plans-page .gw-plans-table-wrap .gw-dt-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--nx-d-border);
}

.nx-shell .nx-plans-page .gw-plans-create-card .input-group {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  border-collapse: separate !important;
}

.nx-shell .nx-plans-page .gw-plans-create-card .input-group .input-group-addon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 44px;
  padding: 8px 12px !important;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: rgba(0, 0, 0, 0.04) !important;
  color: var(--nx-d-secondary) !important;
  box-shadow: none !important;
}

.nx-shell .nx-plans-page .gw-plans-create-card .input-group .form-control {
  flex: 1 1 160px;
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
}

.nx-shell .nx-plans-page .gw-plans-create-card .input-group > .select2-container {
  flex: 1 1 200px;
  min-width: 0;
}

.nx-shell .nx-plans-page .gw-plans-create-card .input-group .select2-container .select2-selection--single {
  border-radius: var(--nx-radius-xs) !important;
}

.nx-shell .nx-plans-page .dataTables_length label,
.nx-shell .nx-plans-page .dataTables_filter label {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  font-size: 13px;
  font-weight: 500;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-plans-page .dataTables_length select,
.nx-shell .nx-plans-page .dataTables_filter input[type="search"] {
  min-height: 36px;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
}

.nx-shell .nx-plans-page .dataTables_info {
  padding: 12px 16px 4px;
  font-size: 12px;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-plans-page .dataTables_paginate {
  padding: 4px 16px 14px;
  text-align: right;
}

.nx-shell .nx-plans-page .dataTables_paginate ul.pagination {
  display: inline-flex !important;
  gap: 8px !important;
  margin: 0 !important;
}

.nx-shell .nx-plans-page .dataTables_paginate ul.pagination > li > a {
  border-radius: 999px !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
}

html.nx-content-dark-init body.nx-shell .nx-plans-page .gw-dash-hero__subtitle,
body.nx-shell.nx-content-dark .nx-plans-page .gw-dash-hero__subtitle {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-plans-page .gw-plans-create-card__foot,
body.nx-shell.nx-content-dark .nx-plans-page .gw-plans-create-card__foot {
  background: rgba(0, 0, 0, 0.25);
  border-top-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-plans-page .gw-plans-create-card .input-group .input-group-addon,
body.nx-shell.nx-content-dark .nx-plans-page .gw-plans-create-card .input-group .input-group-addon {
  background: #242424 !important;
  border: 1px solid #2f2f2f !important;
  color: #d4d4d4 !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell .nx-plans-page .gw-plans-create-card .input-group-addon .fa,
html.nx-content-dark-init body.nx-shell .nx-plans-page .gw-plans-create-card .input-group-addon .glyphicon,
body.nx-shell.nx-content-dark .nx-plans-page .gw-plans-create-card .input-group-addon .fa,
body.nx-shell.nx-content-dark .nx-plans-page .gw-plans-create-card .input-group-addon .glyphicon {
  color: #d4d4d4 !important;
  opacity: 1 !important;
}

html.nx-content-dark-init body.nx-shell .nx-plans-page .gw-plans-create-card .input-group .form-control,
body.nx-shell.nx-content-dark .nx-plans-page .gw-plans-create-card .input-group .form-control {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell .nx-plans-page .gw-plans-create-card .input-group .form-control:focus,
body.nx-shell.nx-content-dark .nx-plans-page .gw-plans-create-card .input-group .form-control:focus {
  border-color: #4a4a4a !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05) !important;
}

html.nx-content-dark-init body.nx-shell .nx-plans-page .gw-plans-create-card .input-group .select2-container--default .select2-selection--single,
body.nx-shell.nx-content-dark .nx-plans-page .gw-plans-create-card .input-group .select2-container--default .select2-selection--single {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-plans-page .gw-plans-create-card .input-group .select2-container--default .select2-selection__rendered,
body.nx-shell.nx-content-dark .nx-plans-page .gw-plans-create-card .input-group .select2-container--default .select2-selection__rendered {
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-plans-page .gw-plans-create-card__body .form-group > label,
body.nx-shell.nx-content-dark .nx-plans-page .gw-plans-create-card__body .form-group > label {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-plans-page .dataTables_length label,
body.nx-shell.nx-content-dark .nx-plans-page .dataTables_length label,
html.nx-content-dark-init body.nx-shell .nx-plans-page .dataTables_filter label,
body.nx-shell.nx-content-dark .nx-plans-page .dataTables_filter label,
html.nx-content-dark-init body.nx-shell .nx-plans-page .dataTables_info,
body.nx-shell.nx-content-dark .nx-plans-page .dataTables_info {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-plans-page .gw-plans-table-wrap .gw-dt-controls,
body.nx-shell.nx-content-dark .nx-plans-page .gw-plans-table-wrap .gw-dt-controls {
  border-bottom-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-plans-page .dataTables_length select,
html.nx-content-dark-init body.nx-shell .nx-plans-page .dataTables_filter input[type="search"],
body.nx-shell.nx-content-dark .nx-plans-page .dataTables_length select,
body.nx-shell.nx-content-dark .nx-plans-page .dataTables_filter input[type="search"] {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-plans-page .dataTables_paginate ul.pagination > li > a,
body.nx-shell.nx-content-dark .nx-plans-page .dataTables_paginate ul.pagination > li > a {
  background: #1f1f1f !important;
  border: 1px solid #2f2f2f !important;
  color: #e8e8e8 !important;
}

html.nx-content-dark-init body.nx-shell .nx-plans-page .dataTables_paginate ul.pagination > li > a:hover,
body.nx-shell.nx-content-dark .nx-plans-page .dataTables_paginate ul.pagination > li > a:hover {
  background: #2a2a2a !important;
  border-color: #3a3a3a !important;
  color: #ffffff !important;
}

html.nx-content-dark-init body.nx-shell .nx-plans-page .gw-plans-list-card__head h3 .fa,
body.nx-shell.nx-content-dark .nx-plans-page .gw-plans-list-card__head h3 .fa,
html.nx-content-dark-init body.nx-shell .nx-plans-page .gw-plans-create-card__head h3 .fa,
body.nx-shell.nx-content-dark .nx-plans-page .gw-plans-create-card__head h3 .fa {
  color: #bdbdbd !important;
}


/* ===== Page Manage users (admin) ===== */
.nx-shell .nx-manage-users-page .content > .gw-dash-table-card {
  margin-bottom: 20px;
}

.nx-shell .nx-manage-users-page .content > .gw-dash-table-card:last-child {
  margin-bottom: 0;
}

.nx-shell .nx-manage-users-page .dataTables_wrapper.dt-bootstrap.form-inline {
  display: block !important;
}

.nx-shell .nx-manage-users-page .gw-mu-hero {
  align-items: flex-end;
}

.nx-shell .nx-manage-users-page .gw-mu-create-card__body {
  padding: 18px 20px;
}

.nx-shell .nx-manage-users-page .gw-mu-create-card__foot {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--nx-d-border);
  background: rgba(0, 0, 0, 0.02);
}

.nx-shell .nx-manage-users-page .gw-mu-list-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px !important;
}

.nx-shell .nx-manage-users-page .gw-mu-list-card__head h3 {
  margin: 0 !important;
}

.nx-shell .nx-manage-users-page .gw-mu-list-card__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nx-shell .nx-manage-users-page .gw-mu-table-wrap .gw-dt-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--nx-d-border);
}

.nx-shell .nx-manage-users-page .gw-mu-create-card .input-group {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  border-collapse: separate !important;
}

.nx-shell .nx-manage-users-page .gw-mu-create-card .input-group .input-group-addon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 44px;
  padding: 8px 12px !important;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: rgba(0, 0, 0, 0.04) !important;
  color: var(--nx-d-secondary) !important;
  box-shadow: none !important;
}

.nx-shell .nx-manage-users-page .gw-mu-create-card .input-group .form-control {
  flex: 1 1 160px;
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
}

.nx-shell .nx-manage-users-page .dataTables_length label,
.nx-shell .nx-manage-users-page .dataTables_filter label {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  font-size: 13px;
  font-weight: 500;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-manage-users-page .dataTables_length select,
.nx-shell .nx-manage-users-page .dataTables_filter input[type="search"] {
  min-height: 36px;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
}

.nx-shell .nx-manage-users-page .dataTables_info {
  padding: 12px 16px 4px;
  font-size: 12px;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-manage-users-page .dataTables_paginate {
  padding: 4px 16px 14px;
  text-align: right;
}

.nx-shell .nx-manage-users-page .dataTables_paginate ul.pagination {
  display: inline-flex !important;
  gap: 8px !important;
  margin: 0 !important;
}

.nx-shell .nx-manage-users-page .dataTables_paginate ul.pagination > li > a {
  border-radius: 999px !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
}

html.nx-content-dark-init body.nx-shell .nx-manage-users-page .gw-dash-hero__subtitle,
body.nx-shell.nx-content-dark .nx-manage-users-page .gw-dash-hero__subtitle {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-manage-users-page .gw-mu-create-card__foot,
body.nx-shell.nx-content-dark .nx-manage-users-page .gw-mu-create-card__foot {
  background: rgba(0, 0, 0, 0.25);
  border-top-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-manage-users-page .gw-mu-create-card .input-group .input-group-addon,
body.nx-shell.nx-content-dark .nx-manage-users-page .gw-mu-create-card .input-group .input-group-addon {
  background: #242424 !important;
  border: 1px solid #2f2f2f !important;
  color: #d4d4d4 !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell .nx-manage-users-page .gw-mu-create-card .input-group-addon .fa,
html.nx-content-dark-init body.nx-shell .nx-manage-users-page .gw-mu-create-card .input-group-addon .glyphicon,
body.nx-shell.nx-content-dark .nx-manage-users-page .gw-mu-create-card .input-group-addon .fa,
body.nx-shell.nx-content-dark .nx-manage-users-page .gw-mu-create-card .input-group-addon .glyphicon {
  color: #d4d4d4 !important;
  opacity: 1 !important;
}

html.nx-content-dark-init body.nx-shell .nx-manage-users-page .gw-mu-create-card .input-group .form-control,
body.nx-shell.nx-content-dark .nx-manage-users-page .gw-mu-create-card .input-group .form-control {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell .nx-manage-users-page .gw-mu-create-card .input-group .form-control:focus,
body.nx-shell.nx-content-dark .nx-manage-users-page .gw-mu-create-card .input-group .form-control:focus {
  border-color: #4a4a4a !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05) !important;
}

html.nx-content-dark-init body.nx-shell .nx-manage-users-page .gw-mu-create-card__body .form-group > label,
body.nx-shell.nx-content-dark .nx-manage-users-page .gw-mu-create-card__body .form-group > label {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-manage-users-page .dataTables_length label,
body.nx-shell.nx-content-dark .nx-manage-users-page .dataTables_length label,
html.nx-content-dark-init body.nx-shell .nx-manage-users-page .dataTables_filter label,
body.nx-shell.nx-content-dark .nx-manage-users-page .dataTables_filter label,
html.nx-content-dark-init body.nx-shell .nx-manage-users-page .dataTables_info,
body.nx-shell.nx-content-dark .nx-manage-users-page .dataTables_info {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-manage-users-page .gw-mu-table-wrap .gw-dt-controls,
body.nx-shell.nx-content-dark .nx-manage-users-page .gw-mu-table-wrap .gw-dt-controls {
  border-bottom-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-manage-users-page .dataTables_length select,
html.nx-content-dark-init body.nx-shell .nx-manage-users-page .dataTables_filter input[type="search"],
body.nx-shell.nx-content-dark .nx-manage-users-page .dataTables_length select,
body.nx-shell.nx-content-dark .nx-manage-users-page .dataTables_filter input[type="search"] {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-manage-users-page .dataTables_paginate ul.pagination > li > a,
body.nx-shell.nx-content-dark .nx-manage-users-page .dataTables_paginate ul.pagination > li > a {
  background: #1f1f1f !important;
  border: 1px solid #2f2f2f !important;
  color: #e8e8e8 !important;
}

html.nx-content-dark-init body.nx-shell .nx-manage-users-page .dataTables_paginate ul.pagination > li > a:hover,
body.nx-shell.nx-content-dark .nx-manage-users-page .dataTables_paginate ul.pagination > li > a:hover {
  background: #2a2a2a !important;
  border-color: #3a3a3a !important;
  color: #ffffff !important;
}

html.nx-content-dark-init body.nx-shell .nx-manage-users-page .gw-mu-list-card__head h3 .fa,
html.nx-content-dark-init body.nx-shell .nx-manage-users-page .gw-mu-create-card__head h3 .fa,
body.nx-shell.nx-content-dark .nx-manage-users-page .gw-mu-list-card__head h3 .fa,
body.nx-shell.nx-content-dark .nx-manage-users-page .gw-mu-create-card__head h3 .fa {
  color: #bdbdbd !important;
}

/* ===== Page Settings ===== */
.nx-shell .nx-settings-page .content > form {
  margin: 0;
}

.nx-shell .nx-settings-page .gw-settings-hero {
  align-items: flex-end;
}

.nx-shell .nx-settings-page .gw-settings-card__body {
  padding: 0;
}

.nx-shell .nx-settings-page .gw-settings-nav-tabs {
  margin: 0;
  box-shadow: none !important;
  background: transparent !important;
  border: 0 !important;
}

.nx-shell .nx-settings-page .gw-settings-nav-bar {
  padding: 12px 14px 14px;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--nx-d-border);
}

.nx-shell .nx-settings-page .gw-settings-nav-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 0;
}

.nx-shell .nx-settings-page .gw-settings-nav-segments > li {
  float: none;
  margin: 0;
}

.nx-shell .nx-settings-page .gw-settings-nav-segments > li > a {
  display: inline-block;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--nx-d-border) !important;
  border-radius: 999px !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-secondary) !important;
  font-weight: 500;
  font-size: 0.8125rem;
  white-space: nowrap;
  line-height: 1.25;
  box-shadow: none !important;
}

.nx-shell .nx-settings-page .gw-settings-nav-segments > li > a:hover,
.nx-shell .nx-settings-page .gw-settings-nav-segments > li > a:focus {
  color: var(--nx-d-text) !important;
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: var(--nx-border-strong) !important;
}

.nx-shell .nx-settings-page .gw-settings-nav-segments > li.active > a,
.nx-shell .nx-settings-page .gw-settings-nav-segments > li.active > a:hover,
.nx-shell .nx-settings-page .gw-settings-nav-segments > li.active > a:focus {
  color: var(--nx-topbar-fg) !important;
  background: var(--nx-topbar-bg) !important;
  border-color: var(--nx-topbar-bg) !important;
}

.nx-shell .nx-settings-page .gw-settings-nav-tabs > .tab-content {
  padding: 18px 20px 22px;
  background: transparent;
}

.nx-shell .nx-settings-page .gw-settings-nav-tabs > .tab-content > .tab-pane > .row {
  margin-left: -10px;
  margin-right: -10px;
}

.nx-shell .nx-settings-page .gw-settings-nav-tabs > .tab-content > .tab-pane > .row > [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
}

.nx-shell .nx-settings-page .panel.panel-default {
  border: 1px solid var(--nx-d-border);
  border-radius: var(--nx-radius-xs);
  box-shadow: none;
  margin-bottom: 16px;
  background: var(--nx-d-surface);
  overflow: hidden;
}

.nx-shell .nx-settings-page .panel.panel-default:last-child {
  margin-bottom: 0;
}

.nx-shell .nx-settings-page .panel.panel-default .panel.panel-default {
  background: var(--nx-d-bg);
  margin-bottom: 12px;
}

.nx-shell .nx-settings-page .panel-heading {
  padding: 12px 16px;
  border-bottom: 1px solid var(--nx-d-border);
  background: rgba(0, 0, 0, 0.02);
}

.nx-shell .nx-settings-page .panel-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--nx-d-text);
}

.nx-shell .nx-settings-page .panel-body {
  padding: 16px 18px;
}

.nx-shell .nx-settings-page .form-group > label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-settings-page .form-control {
  border-radius: var(--nx-radius-xs);
  border-color: var(--nx-d-border);
  box-shadow: none;
}

.nx-shell .nx-settings-page .form-control:focus {
  border-color: var(--nx-border-strong);
  box-shadow: 0 0 0 2px var(--nx-focus-ring);
}

.nx-shell .nx-settings-page .input-group-addon {
  border-color: var(--nx-d-border);
  background: rgba(0, 0, 0, 0.03);
  color: var(--nx-d-muted);
}

.nx-shell .nx-settings-page .gw-settings-card__foot {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--nx-d-border);
  background: rgba(0, 0, 0, 0.02);
}

.nx-shell .nx-settings-page .gw-settings-card__foot .btn-primary {
  border-radius: var(--nx-radius-xs);
}

.nx-shell .nx-settings-page .trumbowyg-box,
.nx-shell .nx-settings-page .trumbowyg-editor {
  border-radius: var(--nx-radius-xs) !important;
}

.nx-shell .nx-settings-page .trumbowyg-box {
  border-color: var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
}

.nx-shell .nx-settings-page .trumbowyg-button-pane {
  background: rgba(0, 0, 0, 0.02) !important;
  border-bottom-color: var(--nx-d-border) !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .gw-dash-hero__subtitle,
body.nx-shell.nx-content-dark .nx-settings-page .gw-dash-hero__subtitle {
  color: #a3a3a3 !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .gw-dash-hero__titles h1 .fa,
body.nx-shell.nx-content-dark .nx-settings-page .gw-dash-hero__titles h1 .fa {
  color: #bdbdbd !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .gw-settings-nav-bar,
body.nx-shell.nx-content-dark .nx-settings-page .gw-settings-nav-bar {
  background: rgba(0, 0, 0, 0.35) !important;
  border-bottom-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .gw-settings-nav-segments > li > a,
body.nx-shell.nx-content-dark .nx-settings-page .gw-settings-nav-segments > li > a {
  color: #b0b0b0 !important;
  background: #1a1a1a !important;
  border-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .gw-settings-nav-segments > li > a:hover,
html.nx-content-dark-init body.nx-shell .nx-settings-page .gw-settings-nav-segments > li > a:focus,
body.nx-shell.nx-content-dark .nx-settings-page .gw-settings-nav-segments > li > a:hover,
body.nx-shell.nx-content-dark .nx-settings-page .gw-settings-nav-segments > li > a:focus {
  color: #f0f0f0 !important;
  background: #242424 !important;
  border-color: #3d3d3d !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .gw-settings-nav-segments > li.active > a,
html.nx-content-dark-init body.nx-shell .nx-settings-page .gw-settings-nav-segments > li.active > a:hover,
html.nx-content-dark-init body.nx-shell .nx-settings-page .gw-settings-nav-segments > li.active > a:focus,
body.nx-shell.nx-content-dark .nx-settings-page .gw-settings-nav-segments > li.active > a,
body.nx-shell.nx-content-dark .nx-settings-page .gw-settings-nav-segments > li.active > a:hover,
body.nx-shell.nx-content-dark .nx-settings-page .gw-settings-nav-segments > li.active > a:focus {
  color: #0a0a0a !important;
  background: #fafafa !important;
  border-color: #fafafa !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .panel.panel-default,
body.nx-shell.nx-content-dark .nx-settings-page .panel.panel-default {
  border-color: #2f2f2f !important;
  background: #1a1a1a !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .panel.panel-default .panel.panel-default,
body.nx-shell.nx-content-dark .nx-settings-page .panel.panel-default .panel.panel-default {
  background: #141414 !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .panel-heading,
body.nx-shell.nx-content-dark .nx-settings-page .panel-heading {
  background: rgba(0, 0, 0, 0.35) !important;
  border-bottom-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .panel-title,
body.nx-shell.nx-content-dark .nx-settings-page .panel-title {
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .form-group > label,
body.nx-shell.nx-content-dark .nx-settings-page .form-group > label {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .form-control,
body.nx-shell.nx-content-dark .nx-settings-page .form-control {
  background: #1b1b1b !important;
  border-color: #2f2f2f !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .form-control:focus,
body.nx-shell.nx-content-dark .nx-settings-page .form-control:focus {
  border-color: #4a4a4a !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06) !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .input-group-addon,
body.nx-shell.nx-content-dark .nx-settings-page .input-group-addon {
  background: #222 !important;
  border-color: #2f2f2f !important;
  color: #bdbdbd !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .gw-settings-card__foot,
body.nx-shell.nx-content-dark .nx-settings-page .gw-settings-card__foot {
  background: rgba(0, 0, 0, 0.25);
  border-top-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .trumbowyg-box,
body.nx-shell.nx-content-dark .nx-settings-page .trumbowyg-box {
  border-color: #2f2f2f !important;
  background: #1b1b1b !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .trumbowyg-button-pane,
body.nx-shell.nx-content-dark .nx-settings-page .trumbowyg-button-pane {
  background: #222 !important;
  border-bottom-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .trumbowyg-button-pane .trumbowyg-button-group::before,
body.nx-shell.nx-content-dark .nx-settings-page .trumbowyg-button-pane .trumbowyg-button-group::before {
  background: #3a3a3a !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .trumbowyg-button-pane button,
body.nx-shell.nx-content-dark .nx-settings-page .trumbowyg-button-pane button {
  color: #ececec !important;
}

/* Icônes SVG de la barre d’outils (fill par défaut #222 dans trumbowyg.css) */
html.nx-content-dark-init body.nx-shell .nx-settings-page .trumbowyg-box svg,
body.nx-shell.nx-content-dark .nx-settings-page .trumbowyg-box svg {
  fill: #ececec !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .trumbowyg-button-pane button:not(.trumbowyg-disable):hover,
html.nx-content-dark-init body.nx-shell .nx-settings-page .trumbowyg-button-pane button:not(.trumbowyg-disable):focus,
html.nx-content-dark-init body.nx-shell .nx-settings-page .trumbowyg-button-pane button.trumbowyg-active,
body.nx-shell.nx-content-dark .nx-settings-page .trumbowyg-button-pane button:not(.trumbowyg-disable):hover,
body.nx-shell.nx-content-dark .nx-settings-page .trumbowyg-button-pane button:not(.trumbowyg-disable):focus,
body.nx-shell.nx-content-dark .nx-settings-page .trumbowyg-button-pane button.trumbowyg-active {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .trumbowyg-button-pane .trumbowyg-button-group:not(:empty) .trumbowyg-fullscreen-button svg,
body.nx-shell.nx-content-dark .nx-settings-page .trumbowyg-button-pane .trumbowyg-button-group:not(:empty) .trumbowyg-fullscreen-button svg {
  color: transparent !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .trumbowyg-fullscreen .trumbowyg-button-pane .trumbowyg-button-group:not(:empty) .trumbowyg-fullscreen-button svg,
body.nx-shell.nx-content-dark .nx-settings-page .trumbowyg-fullscreen .trumbowyg-button-pane .trumbowyg-button-group:not(:empty) .trumbowyg-fullscreen-button svg {
  color: #d4d4d4 !important;
  fill: transparent !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .trumbowyg-dropdown button,
body.nx-shell.nx-content-dark .nx-settings-page .trumbowyg-dropdown button {
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .trumbowyg-dropdown button svg,
body.nx-shell.nx-content-dark .nx-settings-page .trumbowyg-dropdown button svg {
  fill: #ececec !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .trumbowyg-editor,
body.nx-shell.nx-content-dark .nx-settings-page .trumbowyg-editor {
  background: #1b1b1b !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .select2-container--default .select2-selection--single,
body.nx-shell.nx-content-dark .nx-settings-page .select2-container--default .select2-selection--single {
  background: #1b1b1b !important;
  border-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .select2-container--default .select2-selection--single .select2-selection__rendered,
body.nx-shell.nx-content-dark .nx-settings-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .select2-container--default .select2-selection--single .select2-selection__arrow b,
body.nx-shell.nx-content-dark .nx-settings-page .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #bdbdbd transparent transparent transparent !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .help-block,
body.nx-shell.nx-content-dark .nx-settings-page .help-block {
  color: #9a9a9a !important;
}

html.nx-content-dark-init body.nx-shell .nx-settings-page .checkbox label,
html.nx-content-dark-init body.nx-shell .nx-settings-page .radio label,
body.nx-shell.nx-content-dark .nx-settings-page .checkbox label,
body.nx-shell.nx-content-dark .nx-settings-page .radio label {
  color: #c8c8c8 !important;
}

/* ===== gw-file-input (coquille, hors page réglages) ===== */
.nx-shell .gw-file-input__btn.btn {
  border-radius: var(--nx-radius-xs);
  border-color: var(--nx-d-border);
  background: rgba(0, 0, 0, 0.03);
  color: var(--nx-d-text);
  font-weight: 500;
}

.nx-shell .gw-file-input__btn.btn:hover,
.nx-shell .gw-file-input__btn.btn:focus {
  background: rgba(0, 0, 0, 0.06);
  border-color: var(--nx-border-strong);
  color: var(--nx-d-text);
}

.nx-shell .gw-file-input__name {
  color: var(--nx-d-secondary);
}

html.nx-content-dark-init body.nx-shell .gw-file-input__btn.btn,
body.nx-shell.nx-content-dark .gw-file-input__btn.btn {
  background: #262626 !important;
  border-color: #3a3a3a !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .gw-file-input__btn.btn:hover,
html.nx-content-dark-init body.nx-shell .gw-file-input__btn.btn:focus,
body.nx-shell.nx-content-dark .gw-file-input__btn.btn:hover,
body.nx-shell.nx-content-dark .gw-file-input__btn.btn:focus {
  background: #333 !important;
  border-color: #4a4a4a !important;
  color: #fafafa !important;
}

html.nx-content-dark-init body.nx-shell .gw-file-input__name,
body.nx-shell.nx-content-dark .gw-file-input__name {
  color: #a3a3a3 !important;
}

/* ===== Page API ===== */
.nx-shell .nx-api-page .content > .gw-dash-table-card {
  margin-bottom: 20px;
}

.nx-shell .nx-api-page .content > .gw-dash-table-card:last-child {
  margin-bottom: 0;
}

.nx-shell .nx-api-page .gw-api-hero {
  align-items: flex-end;
}

.nx-shell .nx-api-page .gw-api-key-card__body,
.nx-shell .nx-api-page .gw-api-test-card__body,
.nx-shell .nx-api-page .gw-api-webhook-card__body {
  padding: 18px 20px;
}

.nx-shell .nx-api-page .gw-api-test-card__foot,
.nx-shell .nx-api-page .gw-api-webhook-card__foot {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--nx-d-border);
  background: rgba(0, 0, 0, 0.02);
}

/* Clé API : input-group (même principe que USSD / contacts) */
.nx-shell .nx-api-page .gw-api-key-card .input-group {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  border-collapse: separate !important;
}

.nx-shell .nx-api-page .gw-api-key-card .input-group .input-group-addon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 44px;
  padding: 8px 12px !important;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: rgba(0, 0, 0, 0.04) !important;
  color: var(--nx-d-secondary) !important;
  box-shadow: none !important;
}

.nx-shell .nx-api-page .gw-api-key-card .input-group .form-control {
  flex: 1 1 160px;
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
}

/* Cartes doc : fusion visuelle AdminLTE .box + shell */
.nx-shell .nx-api-page .gw-api-doc-card.box {
  border: 1px solid var(--nx-d-border) !important;
  border-radius: var(--nx-radius-xs) !important;
  box-shadow: var(--nx-d-shadow) !important;
  background: var(--nx-d-surface) !important;
  overflow: hidden;
}

.nx-shell .nx-api-page .gw-api-doc-card__box-head {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nx-shell .nx-api-page .gw-api-doc-card__box-head .box-title {
  margin: 0 !important;
  flex: 1 1 auto;
}

.nx-shell .nx-api-page .gw-api-doc-card__box-body {
  padding: 16px 20px 20px;
}

.nx-shell .nx-api-page .gw-api-doc-card__box-body h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--nx-d-text);
}

.nx-shell .nx-api-page .gw-api-doc-card__box-body h4:first-child {
  margin-top: 0;
}

.nx-shell .nx-api-page .gw-api-doc-card__box-body pre {
  max-height: 70vh;
  overflow: auto;
  padding: 12px 14px;
  border-radius: var(--nx-radius-xs);
  border: 1px solid var(--nx-d-border);
  background: rgba(0, 0, 0, 0.03);
  font-size: 0.75rem;
  line-height: 1.45;
}

html.nx-content-dark-init body.nx-shell .nx-api-page .gw-dash-hero__subtitle,
body.nx-shell.nx-content-dark .nx-api-page .gw-dash-hero__subtitle {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-api-page .gw-api-test-card__foot,
html.nx-content-dark-init body.nx-shell .nx-api-page .gw-api-webhook-card__foot,
body.nx-shell.nx-content-dark .nx-api-page .gw-api-test-card__foot,
body.nx-shell.nx-content-dark .nx-api-page .gw-api-webhook-card__foot {
  background: rgba(0, 0, 0, 0.25);
  border-top-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-api-page .gw-api-key-card .input-group .input-group-addon,
body.nx-shell.nx-content-dark .nx-api-page .gw-api-key-card .input-group .input-group-addon {
  background: #242424 !important;
  border: 1px solid #2f2f2f !important;
  color: #d4d4d4 !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell .nx-api-page .gw-api-key-card .input-group-addon .fa,
body.nx-shell.nx-content-dark .nx-api-page .gw-api-key-card .input-group-addon .fa {
  color: #d4d4d4 !important;
  opacity: 1 !important;
}

html.nx-content-dark-init body.nx-shell .nx-api-page .gw-api-key-card .input-group .form-control,
body.nx-shell.nx-content-dark .nx-api-page .gw-api-key-card .input-group .form-control {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell .nx-api-page .gw-api-test-card__body .form-group > label,
html.nx-content-dark-init body.nx-shell .nx-api-page .gw-api-webhook-card__body .form-group > label,
body.nx-shell.nx-content-dark .nx-api-page .gw-api-test-card__body .form-group > label,
body.nx-shell.nx-content-dark .nx-api-page .gw-api-webhook-card__body .form-group > label {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-api-page .gw-api-test-card__body .form-control,
html.nx-content-dark-init body.nx-shell .nx-api-page .gw-api-webhook-card__body .form-control,
html.nx-content-dark-init body.nx-shell .nx-api-page .gw-api-test-card__body textarea.form-control,
body.nx-shell.nx-content-dark .nx-api-page .gw-api-test-card__body .form-control,
body.nx-shell.nx-content-dark .nx-api-page .gw-api-webhook-card__body .form-control,
body.nx-shell.nx-content-dark .nx-api-page .gw-api-test-card__body textarea.form-control {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell .nx-api-page .gw-api-test-card__body .form-control:focus,
html.nx-content-dark-init body.nx-shell .nx-api-page .gw-api-webhook-card__body .form-control:focus,
body.nx-shell.nx-content-dark .nx-api-page .gw-api-test-card__body .form-control:focus,
body.nx-shell.nx-content-dark .nx-api-page .gw-api-webhook-card__body .form-control:focus {
  border-color: #4a4a4a !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05) !important;
}

html.nx-content-dark-init body.nx-shell .nx-api-page .gw-api-test-card__body .select2-container--default .select2-selection--single,
html.nx-content-dark-init body.nx-shell .nx-api-page .gw-api-test-card__body .select2-container--default .select2-selection--multiple,
body.nx-shell.nx-content-dark .nx-api-page .gw-api-test-card__body .select2-container--default .select2-selection--single,
body.nx-shell.nx-content-dark .nx-api-page .gw-api-test-card__body .select2-container--default .select2-selection--multiple {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-api-page .gw-api-test-card__body .select2-container--default .select2-selection__rendered,
body.nx-shell.nx-content-dark .nx-api-page .gw-api-test-card__body .select2-container--default .select2-selection__rendered {
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-api-page .gw-api-doc-card.box,
body.nx-shell.nx-content-dark .nx-api-page .gw-api-doc-card.box {
  background: #1a1a1a !important;
  border-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-api-page .gw-api-doc-card__box-head,
body.nx-shell.nx-content-dark .nx-api-page .gw-api-doc-card__box-head {
  background: #202020 !important;
  border-bottom-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-api-page .gw-api-doc-card__box-head .box-title,
body.nx-shell.nx-content-dark .nx-api-page .gw-api-doc-card__box-head .box-title {
  color: #fafafa !important;
}

html.nx-content-dark-init body.nx-shell .nx-api-page .gw-api-doc-card__box-body,
body.nx-shell.nx-content-dark .nx-api-page .gw-api-doc-card__box-body {
  background: #1a1a1a !important;
}

html.nx-content-dark-init body.nx-shell .nx-api-page .gw-api-doc-card__box-body h4,
body.nx-shell.nx-content-dark .nx-api-page .gw-api-doc-card__box-body h4 {
  color: #e5e5e5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-api-page .gw-api-doc-card__box-body pre,
body.nx-shell.nx-content-dark .nx-api-page .gw-api-doc-card__box-body pre {
  background: #141414 !important;
  border-color: #2f2f2f !important;
  color: #e2e2e2 !important;
}

html.nx-content-dark-init body.nx-shell .nx-api-page .gw-dash-table-card__head h3 .fa,
body.nx-shell.nx-content-dark .nx-api-page .gw-dash-table-card__head h3 .fa {
  color: #bdbdbd !important;
}


/* ===== Page USSD ===== */
.nx-shell .nx-ussd-page .content > .gw-dash-table-card {
  margin-bottom: 20px;
}

.nx-shell .nx-ussd-page .content > .gw-dash-table-card:last-child {
  margin-bottom: 0;
}

.nx-shell .nx-ussd-page .dataTables_wrapper.dt-bootstrap.form-inline {
  display: block !important;
}

.nx-shell .nx-ussd-page .gw-ussd-send-card__body {
  padding: 18px 20px;
}

.nx-shell .nx-ussd-page .gw-ussd-send-card__foot {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--nx-d-border);
  background: rgba(0, 0, 0, 0.02);
}

/* USSD : input-group comme contacts / profil (addon séparé, bordures nettes) */
.nx-shell .nx-ussd-page .gw-ussd-send-card .input-group {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  border-collapse: separate !important;
}

.nx-shell .nx-ussd-page .gw-ussd-send-card .input-group .input-group-addon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 44px;
  padding: 8px 12px !important;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: rgba(0, 0, 0, 0.04) !important;
  color: var(--nx-d-secondary) !important;
  box-shadow: none !important;
}

.nx-shell .nx-ussd-page .gw-ussd-send-card .input-group .form-control {
  flex: 1 1 160px;
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
}

.nx-shell .nx-ussd-page .gw-ussd-send-card .input-group > .select2-container {
  flex: 1 1 200px;
  min-width: 0;
}

.nx-shell .nx-ussd-page .gw-ussd-send-card .input-group .select2-container .select2-selection--single {
  border-radius: var(--nx-radius-xs) !important;
}

html.nx-content-dark-init body.nx-shell .nx-ussd-page .gw-ussd-send-card__foot,
body.nx-shell.nx-content-dark .nx-ussd-page .gw-ussd-send-card__foot {
  background: rgba(0, 0, 0, 0.25);
  border-top-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-ussd-page .gw-ussd-send-card .input-group .input-group-addon,
body.nx-shell.nx-content-dark .nx-ussd-page .gw-ussd-send-card .input-group .input-group-addon {
  background: #242424 !important;
  border: 1px solid #2f2f2f !important;
  color: #d4d4d4 !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell .nx-ussd-page .gw-ussd-send-card .input-group-addon .fa,
html.nx-content-dark-init body.nx-shell .nx-ussd-page .gw-ussd-send-card .input-group-addon .glyphicon,
body.nx-shell.nx-content-dark .nx-ussd-page .gw-ussd-send-card .input-group-addon .fa,
body.nx-shell.nx-content-dark .nx-ussd-page .gw-ussd-send-card .input-group-addon .glyphicon {
  color: #d4d4d4 !important;
  opacity: 1 !important;
}

html.nx-content-dark-init body.nx-shell .nx-ussd-page .gw-ussd-send-card .input-group .form-control,
body.nx-shell.nx-content-dark .nx-ussd-page .gw-ussd-send-card .input-group .form-control {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell .nx-ussd-page .gw-ussd-send-card .input-group .form-control:focus,
body.nx-shell.nx-content-dark .nx-ussd-page .gw-ussd-send-card .input-group .form-control:focus {
  border-color: #4a4a4a !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05) !important;
}

html.nx-content-dark-init body.nx-shell .nx-ussd-page .gw-ussd-send-card .input-group .select2-container--default .select2-selection--single,
body.nx-shell.nx-content-dark .nx-ussd-page .gw-ussd-send-card .input-group .select2-container--default .select2-selection--single {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-ussd-page .gw-ussd-send-card .input-group .select2-container--default .select2-selection__rendered,
body.nx-shell.nx-content-dark .nx-ussd-page .gw-ussd-send-card .input-group .select2-container--default .select2-selection__rendered {
  color: #ececec !important;
}

.nx-shell .nx-ussd-page .gw-ussd-hero {
  align-items: flex-end;
}

.nx-shell .nx-ussd-page .gw-ussd-hero__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.nx-shell .nx-ussd-page .gw-ussd-hero__label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-ussd-page .gw-ussd-hero__toolbar .select2-container {
  min-width: 220px;
  flex: 1 1 240px;
  max-width: 420px;
}

.nx-shell .nx-ussd-page .gw-ussd-requests-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px !important;
}

.nx-shell .nx-ussd-page .gw-ussd-requests-card__head h3 {
  margin: 0 !important;
}

.nx-shell .nx-ussd-page .gw-ussd-requests-card__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nx-shell .nx-ussd-page .gw-ussd-table-wrap .gw-dt-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--nx-d-border);
}

.nx-shell .nx-ussd-page .gw-dt-length {
  flex: 1 1 220px;
  min-width: 0;
}

.nx-shell .nx-ussd-page .dataTables_length {
  margin: 0 !important;
}

.nx-shell .nx-ussd-page .dataTables_length label {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 !important;
  font-size: 13px;
  font-weight: 500;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-ussd-page .dataTables_length select {
  min-height: 36px;
  padding: 6px 32px 6px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
  cursor: pointer;
}

.nx-shell .nx-ussd-page .dataTables_filter {
  margin: 0 !important;
  flex: 1 1 200px;
  min-width: 0;
}

.nx-shell .nx-ussd-page .dataTables_filter label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-ussd-page .dataTables_filter input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 36px;
  padding: 6px 12px !important;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
}

.nx-shell .nx-ussd-page .dataTables_info {
  padding: 12px 16px 4px;
  font-size: 12px;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-ussd-page .dataTables_paginate {
  padding: 4px 16px 14px;
  text-align: right;
}

/* Bootstrap 3 + DataTables : les <li> collés créent des doubles traits « deux petits trucs » — on repasse en pilules sur les <a> */
.nx-shell .nx-ussd-page .dataTables_paginate ul.pagination {
  display: inline-flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border: 0 !important;
  box-shadow: none !important;
  vertical-align: middle;
}

.nx-shell .nx-ussd-page .dataTables_paginate ul.pagination > li {
  display: inline-flex !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.nx-shell .nx-ussd-page .dataTables_paginate ul.pagination > li > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px !important;
  margin: 0 !important;
  float: none !important;
  line-height: 1.2 !important;
  border-radius: 999px !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
}

.nx-shell .nx-ussd-page .dataTables_paginate ul.pagination > li > a:hover,
.nx-shell .nx-ussd-page .dataTables_paginate ul.pagination > li > a:focus {
  background: var(--nx-d-bg) !important;
  border-color: var(--nx-border-strong) !important;
  color: var(--nx-d-text) !important;
}

.nx-shell .nx-ussd-page .dataTables_paginate ul.pagination > li.disabled > a,
.nx-shell .nx-ussd-page .dataTables_paginate ul.pagination > li.disabled > a:hover,
.nx-shell .nx-ussd-page .dataTables_paginate ul.pagination > li.disabled > a:focus {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  pointer-events: none;
}

.nx-shell .nx-ussd-page .dataTables_processing {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid var(--nx-d-border) !important;
  border-radius: var(--nx-radius-xs) !important;
  color: var(--nx-d-text) !important;
}

/* USSD — thème sombre (DataTables + hero) */
html.nx-content-dark-init body.nx-shell .nx-ussd-page .gw-ussd-hero__label,
body.nx-shell.nx-content-dark .nx-ussd-page .gw-ussd-hero__label {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-ussd-page .gw-ussd-table-wrap .gw-dt-controls,
body.nx-shell.nx-content-dark .nx-ussd-page .gw-ussd-table-wrap .gw-dt-controls {
  border-bottom-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-ussd-page .dataTables_length label,
body.nx-shell.nx-content-dark .nx-ussd-page .dataTables_length label {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-ussd-page .dataTables_length select,
body.nx-shell.nx-content-dark .nx-ussd-page .dataTables_length select {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
  color-scheme: dark;
}

html.nx-content-dark-init body.nx-shell .nx-ussd-page .dataTables_filter label,
body.nx-shell.nx-content-dark .nx-ussd-page .dataTables_filter label {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-ussd-page .dataTables_filter input[type="search"],
body.nx-shell.nx-content-dark .nx-ussd-page .dataTables_filter input[type="search"] {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-ussd-page .dataTables_info,
body.nx-shell.nx-content-dark .nx-ussd-page .dataTables_info {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-ussd-page .dataTables_paginate ul.pagination > li > a,
body.nx-shell.nx-content-dark .nx-ussd-page .dataTables_paginate ul.pagination > li > a {
  background: #1f1f1f !important;
  border: 1px solid #2f2f2f !important;
  color: #e8e8e8 !important;
}

html.nx-content-dark-init body.nx-shell .nx-ussd-page .dataTables_paginate ul.pagination > li > a:hover,
html.nx-content-dark-init body.nx-shell .nx-ussd-page .dataTables_paginate ul.pagination > li > a:focus,
body.nx-shell.nx-content-dark .nx-ussd-page .dataTables_paginate ul.pagination > li > a:hover,
body.nx-shell.nx-content-dark .nx-ussd-page .dataTables_paginate ul.pagination > li > a:focus {
  background: #2a2a2a !important;
  border-color: #3a3a3a !important;
  color: #fff !important;
}

html.nx-content-dark-init body.nx-shell .nx-ussd-page .dataTables_paginate ul.pagination > li.disabled > a,
body.nx-shell.nx-content-dark .nx-ussd-page .dataTables_paginate ul.pagination > li.disabled > a {
  background: #1a1a1a !important;
  border-color: #2f2f2f !important;
  color: #8a8a8a !important;
}

html.nx-content-dark-init body.nx-shell .nx-ussd-page .dataTables_processing,
body.nx-shell.nx-content-dark .nx-ussd-page .dataTables_processing {
  background: rgba(26, 26, 26, 0.95) !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-ussd-page .gw-dash-table-card__head h3 .fa,
body.nx-shell.nx-content-dark .nx-ussd-page .gw-dash-table-card__head h3 .fa {
  color: #bdbdbd !important;
}

@media (max-width: 767px) {
  .nx-shell .nx-ussd-page .gw-ussd-hero__toolbar .select2-container {
    max-width: none;
    width: 100% !important;
  }
}

/* ===== Page Contacts ===== */
.nx-shell .nx-contacts-page .content > .gw-dash-table-card {
  margin-bottom: 20px;
}

.nx-shell .nx-contacts-page .content > .gw-dash-table-card:last-child {
  margin-bottom: 0;
}

.nx-shell .nx-contacts-page .gw-contacts-create-card__head h3 {
  margin: 0 !important;
}

.nx-shell .nx-contacts-page .gw-contacts-create-card__body,
.nx-shell .nx-contacts-page .gw-contacts-send-card__body {
  padding: 16px 20px 18px;
}

.nx-shell .nx-contacts-page .gw-contacts-create-card__foot,
.nx-shell .nx-contacts-page .gw-contacts-list-card__foot,
.nx-shell .nx-contacts-page .gw-contacts-send-card__foot {
  padding: 14px 20px 16px;
  border-top: 1px solid var(--nx-d-border);
  background: var(--nx-d-bg);
}

.nx-shell .nx-contacts-page .gw-contacts-list-card__toolbar,
.nx-shell .nx-contacts-page .gw-contacts-send-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nx-shell .nx-contacts-page .gw-contacts-list-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px !important;
}

.nx-shell .nx-contacts-page .gw-contacts-list-card__picker {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 100%;
}

.nx-shell .nx-contacts-page .gw-contacts-list-card__picker .select2-container {
  width: 100% !important;
  min-width: 0;
}

.nx-shell .nx-contacts-page .gw-contacts-list-card__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.nx-shell .nx-contacts-page .dataTables_wrapper.dt-bootstrap.form-inline {
  display: block !important;
}

.nx-shell .nx-contacts-page .gw-contacts-table-wrap .gw-dt-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--nx-d-border);
}

.nx-shell .nx-contacts-page .gw-dt-length {
  flex: 1 1 220px;
  min-width: 0;
}

.nx-shell .nx-contacts-page .dataTables_length {
  margin: 0 !important;
}

.nx-shell .nx-contacts-page .dataTables_length label,
.nx-shell .nx-contacts-page .dataTables_filter label {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 !important;
  font-size: 13px;
  font-weight: 500;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-contacts-page .dataTables_length select,
.nx-shell .nx-contacts-page .dataTables_filter input[type="search"] {
  min-height: 36px;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
}

.nx-shell .nx-contacts-page .dataTables_info {
  padding: 12px 16px 4px;
  font-size: 12px;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-contacts-page .dataTables_paginate {
  padding: 4px 16px 14px;
  text-align: right;
}

.nx-shell .nx-contacts-page .dataTables_paginate ul.pagination {
  display: inline-flex !important;
  gap: 8px !important;
  margin: 0 !important;
}

.nx-shell .nx-contacts-page .dataTables_paginate ul.pagination > li > a {
  border-radius: 999px !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
}

.nx-shell .nx-contacts-page .dataTables_paginate ul.pagination > li > a:hover,
.nx-shell .nx-contacts-page .dataTables_paginate ul.pagination > li > a:focus {
  background: var(--nx-d-bg) !important;
  border-color: var(--nx-border-strong) !important;
  color: var(--nx-d-text) !important;
}

.nx-shell .nx-contacts-page .dataTables_paginate ul.pagination > li.disabled > a,
.nx-shell .nx-contacts-page .dataTables_paginate ul.pagination > li.disabled > a:hover,
.nx-shell .nx-contacts-page .dataTables_paginate ul.pagination > li.disabled > a:focus {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  pointer-events: none;
}

.nx-shell .nx-contacts-page .gw-contacts-send-card__head h3 {
  margin: 0 !important;
}

.nx-shell .nx-contacts-page .gw-contacts-send-card__subsection {
  margin-top: 4px;
  padding: 18px 20px 4px;
  border-top: 1px solid var(--nx-d-border);
}

.nx-shell .nx-contacts-page .gw-contacts-subsection__title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--nx-d-text);
}

.nx-shell .nx-contacts-page .gw-contacts-subsection__title small {
  font-weight: 400;
  color: var(--nx-d-muted);
}

.nx-shell .nx-contacts-page .gw-contacts-rotation-interval {
  max-width: 220px;
}

.nx-shell .nx-contacts-page .gw-contacts-alert-tight {
  margin-top: 6px;
}

.nx-shell .nx-contacts-page .gw-contacts-audio-block {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--nx-radius-xs);
  border: 1px solid var(--nx-d-border);
  background: var(--nx-d-surface);
  box-shadow: var(--nx-d-shadow);
}

.nx-shell .nx-contacts-page .gw-contacts-audio-block__title {
  margin-bottom: 10px;
}

.nx-shell .nx-contacts-page .gw-contacts-audio-block__label {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--nx-d-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nx-shell .nx-contacts-page .gw-contacts-audio-block__check {
  width: 18px;
  height: 18px;
  margin: 0 !important;
  flex-shrink: 0;
}

.nx-shell .nx-contacts-page .gw-contacts-audio-block__fields {
  margin-top: 4px;
}

.nx-shell .nx-contacts-page .gw-contacts-audio-block__inner {
  padding: 12px 14px;
  border-radius: var(--nx-radius-xs);
  border: 1px solid var(--nx-d-border);
  background: var(--nx-d-bg);
}

.nx-shell .nx-contacts-page .gw-contacts-audio-block__inner-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-contacts-page .gw-contacts-audio-block__inner .gw-file-input {
  margin-top: 6px;
}

.nx-shell .nx-contacts-page .gw-contacts-audio-block__inner .gw-file-input__name {
  font-style: italic;
  color: var(--nx-d-muted);
}

.nx-shell .nx-contacts-page .gw-contacts-send-card__body .select2-container {
  width: 100% !important;
}

/* Contacts : input-group comme profil (séparé, bordures nettes) */
.nx-shell .nx-contacts-page .input-group {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  border-collapse: separate !important;
}

.nx-shell .nx-contacts-page .input-group .input-group-addon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 44px;
  padding: 8px 12px !important;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: rgba(0, 0, 0, 0.04) !important;
  color: var(--nx-d-secondary) !important;
  box-shadow: none !important;
}

.nx-shell .nx-contacts-page .input-group .form-control {
  flex: 1 1 160px;
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-table-wrap .gw-dt-controls,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-table-wrap .gw-dt-controls {
  border-bottom-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .dataTables_length label,
html.nx-content-dark-init body.nx-shell .nx-contacts-page .dataTables_filter label,
html.nx-content-dark-init body.nx-shell .nx-contacts-page .dataTables_info,
body.nx-shell.nx-content-dark .nx-contacts-page .dataTables_length label,
body.nx-shell.nx-content-dark .nx-contacts-page .dataTables_filter label,
body.nx-shell.nx-content-dark .nx-contacts-page .dataTables_info {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .dataTables_length select,
html.nx-content-dark-init body.nx-shell .nx-contacts-page .dataTables_filter input[type="search"],
body.nx-shell.nx-content-dark .nx-contacts-page .dataTables_length select,
body.nx-shell.nx-content-dark .nx-contacts-page .dataTables_filter input[type="search"] {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
  color-scheme: dark;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .dataTables_paginate ul.pagination > li > a,
body.nx-shell.nx-content-dark .nx-contacts-page .dataTables_paginate ul.pagination > li > a {
  background: #1f1f1f !important;
  border: 1px solid #2f2f2f !important;
  color: #e8e8e8 !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .dataTables_paginate ul.pagination > li > a:hover,
html.nx-content-dark-init body.nx-shell .nx-contacts-page .dataTables_paginate ul.pagination > li > a:focus,
body.nx-shell.nx-content-dark .nx-contacts-page .dataTables_paginate ul.pagination > li > a:hover,
body.nx-shell.nx-content-dark .nx-contacts-page .dataTables_paginate ul.pagination > li > a:focus {
  background: #2a2a2a !important;
  border-color: #3a3a3a !important;
  color: #fff !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .dataTables_paginate ul.pagination > li.disabled > a,
body.nx-shell.nx-content-dark .nx-contacts-page .dataTables_paginate ul.pagination > li.disabled > a {
  background: #1a1a1a !important;
  border-color: #2f2f2f !important;
  color: #8a8a8a !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-dash-hero__titles h1 .fa,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-dash-hero__titles h1 .fa,
html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-dash-table-card__head h3 .fa,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-dash-table-card__head h3 .fa {
  color: #bdbdbd !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-dash-hero__subtitle,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-dash-hero__subtitle {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-create-card__foot,
html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-list-card__foot,
html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-send-card__foot,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-create-card__foot,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-list-card__foot,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-send-card__foot {
  border-top-color: #2f2f2f !important;
  background: #141414 !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-send-card__subsection,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-send-card__subsection {
  border-top-color: #2f2f2f !important;
}

/* Contacts — thème sombre : addons, champs, titres sous-sections, icônes device */
html.nx-content-dark-init body.nx-shell .nx-contacts-page .input-group .input-group-addon,
body.nx-shell.nx-content-dark .nx-contacts-page .input-group .input-group-addon {
  background: #242424 !important;
  border: 1px solid #2f2f2f !important;
  color: #d4d4d4 !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .input-group-addon .fa,
html.nx-content-dark-init body.nx-shell .nx-contacts-page .input-group-addon .glyphicon,
body.nx-shell.nx-content-dark .nx-contacts-page .input-group-addon .fa,
body.nx-shell.nx-content-dark .nx-contacts-page .input-group-addon .glyphicon {
  color: #d4d4d4 !important;
  opacity: 1 !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .input-group .form-control,
body.nx-shell.nx-content-dark .nx-contacts-page .input-group .form-control {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
  box-shadow: none !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .input-group .form-control:focus,
body.nx-shell.nx-content-dark .nx-contacts-page .input-group .form-control:focus {
  border-color: #4a4a4a !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05) !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-create-card__body .form-group > label,
html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-send-card__body .form-group > label,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-create-card__body .form-group > label,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-send-card__body .form-group > label {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-subsection__title,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-subsection__title {
  color: #f5f5f5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-subsection__title .fa,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-subsection__title .fa {
  color: #bdbdbd !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-subsection__title small,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-subsection__title small {
  color: #9ca3af !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-send-card__subsection .form-group label,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-send-card__subsection .form-group label {
  color: #c4c4c4 !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-send-card__body label[for="devicesInput"] a,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-send-card__body label[for="devicesInput"] a {
  color: #9ca3af !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-send-card__body label[for="devicesInput"] a .fa,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-send-card__body label[for="devicesInput"] a .fa {
  color: inherit !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-send-card__body label[for="devicesInput"] a:hover,
html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-send-card__body label[for="devicesInput"] a:focus,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-send-card__body label[for="devicesInput"] a:hover,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-send-card__body label[for="devicesInput"] a:focus {
  color: #e5e5e5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-send-card__body .form-group label .fa-info-circle,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-send-card__body .form-group label .fa-info-circle {
  color: #9ca3af !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-send-card__body .help-block,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-send-card__body .help-block {
  color: #8a8a8a !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-send-card__body .select2-container--default .select2-selection--single,
html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-send-card__body .select2-container--default .select2-selection--multiple,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-send-card__body .select2-container--default .select2-selection--single,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-send-card__body .select2-container--default .select2-selection--multiple {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-send-card__body .select2-container--default .select2-selection__rendered,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-send-card__body .select2-container--default .select2-selection__rendered {
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-send-card__body .form-group > .form-control,
html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-send-card__body .form-group > textarea.form-control,
html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-send-card__body .form-group > input.form-control,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-send-card__body .form-group > .form-control,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-send-card__body .form-group > textarea.form-control,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-send-card__body .form-group > input.form-control {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-send-card__body .form-group > .form-control:focus,
html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-send-card__body .form-group > textarea.form-control:focus,
html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-send-card__body .form-group > input.form-control:focus,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-send-card__body .form-group > .form-control:focus,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-send-card__body .form-group > textarea.form-control:focus,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-send-card__body .form-group > input.form-control:focus {
  border-color: #4a4a4a !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05) !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-send-card__subsection .alert.alert-info,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-send-card__subsection .alert.alert-info {
  background: #1f2930 !important;
  border-color: #2f3f4a !important;
  color: #c8d0d6 !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-send-card__subsection .alert.alert-info .fa,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-send-card__subsection .alert.alert-info .fa {
  color: #9ca3af !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page #sms-counter,
body.nx-shell.nx-content-dark .nx-contacts-page #sms-counter {
  color: #9ca3af !important;
}

/* ——— Cartes MMS (audio + template image) : sender, contacts, test-inbox ——— */
.nx-shell .gw-mms-feature-card {
  box-sizing: border-box;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f4f7fa;
  color: #1a1d21;
}

.nx-shell .gw-mms-feature-card--audio {
  border-color: rgba(0, 160, 200, 0.35);
  background: linear-gradient(145deg, rgba(0, 192, 239, 0.16) 0%, rgba(0, 192, 239, 0.05) 100%);
}

.nx-shell .gw-mms-feature-card--imgtpl {
  border-color: rgba(60, 141, 188, 0.32);
  background: linear-gradient(145deg, rgba(60, 141, 188, 0.12) 0%, rgba(60, 141, 188, 0.03) 100%);
}

.nx-shell .gw-mms-feature-card__intro {
  margin: 0 0 6px;
  color: #5a6570 !important;
}

.nx-shell .gw-mms-feature-card__hint {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  color: #3d6d8a !important;
}

.nx-shell .gw-mms-feature-card__lead {
  margin-bottom: 10px;
}

.nx-shell .gw-mms-feature-card__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0a4a5c;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nx-shell .gw-mms-feature-card--imgtpl .gw-mms-feature-card__title {
  color: #1a3d52;
}

.nx-shell .gw-mms-feature-card__title--block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.nx-shell .gw-mms-feature-card__check {
  width: 18px;
  height: 18px;
  margin: 0 !important;
  flex-shrink: 0;
  transform: scale(1.12);
  vertical-align: middle;
}

.nx-shell .gw-mms-feature-card__well {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: rgba(255, 255, 255, 0.92);
}

.nx-shell .gw-mms-feature-card__well-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4a5560;
}

.nx-shell .gw-mms-feature-card__well .gw-file-input {
  margin-top: 4px;
}

.nx-shell .gw-mms-feature-card__well .gw-file-input__btn.btn-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
}

.nx-shell .gw-mms-feature-card__well-meta {
  display: inline-block;
  margin-top: 8px;
  margin-left: 4px;
  font-size: 0.8125rem;
  font-style: italic;
  color: #5c6570;
}

/* Thème sombre : cartes MMS + encarts audio contacts */
html.nx-content-dark-init body.nx-shell .gw-mms-feature-card,
body.nx-shell.nx-content-dark .gw-mms-feature-card {
  border-color: #2f353c !important;
  background: #1a1d22 !important;
  color: #e8eaed !important;
}

html.nx-content-dark-init body.nx-shell .gw-mms-feature-card--audio,
body.nx-shell.nx-content-dark .gw-mms-feature-card--audio {
  border-color: #2a5f73 !important;
  background: linear-gradient(145deg, #152028 0%, #1c252d 55%, #1a2228 100%) !important;
  color: #e4eef2 !important;
}

html.nx-content-dark-init body.nx-shell .gw-mms-feature-card--imgtpl,
body.nx-shell.nx-content-dark .gw-mms-feature-card--imgtpl {
  border-color: #2d4d62 !important;
  background: linear-gradient(145deg, #141b22 0%, #1a222a 55%, #181f26 100%) !important;
  color: #e6eaef !important;
}

html.nx-content-dark-init body.nx-shell .gw-mms-feature-card__intro,
html.nx-content-dark-init body.nx-shell .gw-mms-feature-card .text-muted,
body.nx-shell.nx-content-dark .gw-mms-feature-card__intro,
body.nx-shell.nx-content-dark .gw-mms-feature-card .text-muted {
  color: #9aa3ad !important;
}

html.nx-content-dark-init body.nx-shell .gw-mms-feature-card__hint,
body.nx-shell.nx-content-dark .gw-mms-feature-card__hint {
  color: #8eb8d4 !important;
}

html.nx-content-dark-init body.nx-shell .gw-mms-feature-card__title,
body.nx-shell.nx-content-dark .gw-mms-feature-card__title {
  color: #d4eef6 !important;
}

html.nx-content-dark-init body.nx-shell .gw-mms-feature-card--imgtpl .gw-mms-feature-card__title,
body.nx-shell.nx-content-dark .gw-mms-feature-card--imgtpl .gw-mms-feature-card__title {
  color: #dce6ee !important;
}

html.nx-content-dark-init body.nx-shell .gw-mms-feature-card__well,
body.nx-shell.nx-content-dark .gw-mms-feature-card__well {
  border-color: #2f353c !important;
  background: #12161b !important;
}

html.nx-content-dark-init body.nx-shell .gw-mms-feature-card__well-label,
body.nx-shell.nx-content-dark .gw-mms-feature-card__well-label {
  color: #aeb8c4 !important;
}

html.nx-content-dark-init body.nx-shell .gw-mms-feature-card__well .gw-file-input__btn.btn,
body.nx-shell.nx-content-dark .gw-mms-feature-card__well .gw-file-input__btn.btn {
  background: #0f1318 !important;
  border-color: #333a44 !important;
  color: #e4e8ec !important;
}

html.nx-content-dark-init body.nx-shell .gw-mms-feature-card__well-meta,
body.nx-shell.nx-content-dark .gw-mms-feature-card__well-meta {
  color: #8f9aa8 !important;
}

html.nx-content-dark-init body.nx-shell .gw-mms-feature-card--imgtpl .form-control,
html.nx-content-dark-init body.nx-shell .gw-mms-feature-card--imgtpl select.form-control,
html.nx-content-dark-init body.nx-shell .gw-mms-feature-card--imgtpl .img-tpl-map-select,
body.nx-shell.nx-content-dark .gw-mms-feature-card--imgtpl .form-control,
body.nx-shell.nx-content-dark .gw-mms-feature-card--imgtpl select.form-control,
body.nx-shell.nx-content-dark .gw-mms-feature-card--imgtpl .img-tpl-map-select {
  background: #0f1318 !important;
  border-color: #333a44 !important;
  color: #e4e8ec !important;
  color-scheme: dark;
}

html.nx-content-dark-init body.nx-shell .gw-mms-feature-card--imgtpl .img-tpl-zone-block > label,
body.nx-shell.nx-content-dark .gw-mms-feature-card--imgtpl .img-tpl-zone-block > label {
  color: #d0d8e0 !important;
}

/* Colonnes template image : case « fusionner » + libellé long (évite recouvrement Bootstrap / float) */
.nx-shell .img-tpl-zone-block .checkbox.img-tpl-multi-checkbox {
  margin: 8px 0 6px 0 !important;
  padding: 0 !important;
}

.nx-shell .img-tpl-zone-block label.img-tpl-multi-lbl {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: normal !important;
  cursor: pointer;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.nx-shell .img-tpl-zone-block label.img-tpl-multi-lbl .img-tpl-multi-cb {
  flex: 0 0 auto;
  margin: 4px 0 0 0 !important;
  width: 18px;
  height: 18px;
  position: static !important;
  float: none !important;
  transform: none;
}

.nx-shell .img-tpl-zone-block label.img-tpl-multi-lbl .img-tpl-multi-lbl-text {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.45;
  display: block;
}

.nx-shell .img-tpl-zone-block .img-tpl-multi-hint {
  margin: 0 0 8px 0 !important;
  padding-left: 28px;
  box-sizing: border-box;
}

html.nx-content-dark-init body.nx-shell .gw-mms-feature-card--imgtpl .img-tpl-zone-block label.img-tpl-multi-lbl,
body.nx-shell.nx-content-dark .gw-mms-feature-card--imgtpl .img-tpl-zone-block label.img-tpl-multi-lbl,
html.nx-content-dark-init body.nx-shell .gw-mms-feature-card--imgtpl .img-tpl-zone-block label.img-tpl-multi-lbl .img-tpl-multi-lbl-text,
body.nx-shell.nx-content-dark .gw-mms-feature-card--imgtpl .img-tpl-zone-block label.img-tpl-multi-lbl .img-tpl-multi-lbl-text {
  color: #dce6ee !important;
}

html.nx-content-dark-init body.nx-shell .gw-mms-feature-card--imgtpl .img-tpl-multi-hint,
body.nx-shell.nx-content-dark .gw-mms-feature-card--imgtpl .img-tpl-multi-hint {
  color: #8a939e !important;
}

html.nx-content-dark-init body.nx-shell .gw-mms-feature-card--imgtpl div[id^="imageTemplateSelectWrap"] label,
body.nx-shell.nx-content-dark .gw-mms-feature-card--imgtpl div[id^="imageTemplateSelectWrap"] label {
  color: #b8c4ce !important;
}

html.nx-content-dark-init body.nx-shell .gw-mms-feature-card .fa-info-circle,
body.nx-shell.nx-content-dark .gw-mms-feature-card .fa-info-circle {
  color: #8aa0b0 !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-audio-block,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-audio-block {
  border-color: #2a5f73 !important;
  background: linear-gradient(145deg, #152028 0%, #1c252d 55%, #1a2228 100%) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35) !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-audio-block__inner,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-audio-block__inner {
  border-color: #2f353c !important;
  background: #12161b !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-audio-block__label,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-audio-block__label {
  color: #d4eef6 !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-audio-block__inner-label,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-audio-block__inner-label {
  color: #aeb8c4 !important;
}

html.nx-content-dark-init body.nx-shell .nx-contacts-page .gw-contacts-audio-block__inner .gw-file-input__name,
body.nx-shell.nx-content-dark .nx-contacts-page .gw-contacts-audio-block__inner .gw-file-input__name {
  color: #8f9aa8 !important;
}

/* ===== Page Templates (SMS) ===== */
.nx-shell .nx-templates-page .dataTables_wrapper.dt-bootstrap.form-inline {
  display: block !important;
}

.nx-shell .nx-templates-page .gw-templates-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px !important;
}

.nx-shell .nx-templates-page .gw-templates-card__head h3 {
  margin: 0 !important;
}

.nx-shell .nx-templates-page .gw-templates-card__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.nx-shell .nx-templates-page .gw-templates-table-wrap .gw-dt-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--nx-d-border);
}

.nx-shell .nx-templates-page .gw-dt-length {
  flex: 1 1 220px;
  min-width: 0;
}

.nx-shell .nx-templates-page .dataTables_length {
  margin: 0 !important;
}

.nx-shell .nx-templates-page .dataTables_length label {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 !important;
  font-size: 13px;
  font-weight: 500;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-templates-page .dataTables_length select {
  min-height: 36px;
  padding: 6px 32px 6px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
  cursor: pointer;
}

.nx-shell .nx-templates-page .dataTables_filter {
  margin: 0 !important;
  flex: 1 1 200px;
  min-width: 0;
}

.nx-shell .nx-templates-page .dataTables_filter label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-templates-page .dataTables_filter input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 36px;
  padding: 6px 12px !important;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
}

.nx-shell .nx-templates-page .dataTables_info {
  padding: 12px 16px 4px;
  font-size: 12px;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-templates-page .dataTables_paginate {
  padding: 4px 16px 14px;
  text-align: right;
}

.nx-shell .nx-templates-page .dataTables_paginate ul.pagination {
  display: inline-flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border: 0 !important;
  box-shadow: none !important;
  vertical-align: middle;
}

.nx-shell .nx-templates-page .dataTables_paginate ul.pagination > li {
  display: inline-flex !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.nx-shell .nx-templates-page .dataTables_paginate ul.pagination > li > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px !important;
  margin: 0 !important;
  float: none !important;
  line-height: 1.2 !important;
  border-radius: 999px !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
}

.nx-shell .nx-templates-page .dataTables_paginate ul.pagination > li > a:hover,
.nx-shell .nx-templates-page .dataTables_paginate ul.pagination > li > a:focus {
  background: var(--nx-d-bg) !important;
  border-color: var(--nx-border-strong) !important;
  color: var(--nx-d-text) !important;
}

.nx-shell .nx-templates-page .dataTables_paginate ul.pagination > li.disabled > a,
.nx-shell .nx-templates-page .dataTables_paginate ul.pagination > li.disabled > a:hover,
.nx-shell .nx-templates-page .dataTables_paginate ul.pagination > li.disabled > a:focus {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  pointer-events: none;
}

.nx-shell .nx-templates-page .dataTables_processing {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid var(--nx-d-border) !important;
  border-radius: var(--nx-radius-xs) !important;
  color: var(--nx-d-text) !important;
}

html.nx-content-dark-init body.nx-shell .nx-templates-page .gw-templates-table-wrap .gw-dt-controls,
body.nx-shell.nx-content-dark .nx-templates-page .gw-templates-table-wrap .gw-dt-controls {
  border-bottom-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-templates-page .dataTables_length label,
html.nx-content-dark-init body.nx-shell .nx-templates-page .dataTables_filter label,
html.nx-content-dark-init body.nx-shell .nx-templates-page .dataTables_info,
body.nx-shell.nx-content-dark .nx-templates-page .dataTables_length label,
body.nx-shell.nx-content-dark .nx-templates-page .dataTables_filter label,
body.nx-shell.nx-content-dark .nx-templates-page .dataTables_info {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-templates-page .dataTables_length select,
html.nx-content-dark-init body.nx-shell .nx-templates-page .dataTables_filter input[type="search"],
body.nx-shell.nx-content-dark .nx-templates-page .dataTables_length select,
body.nx-shell.nx-content-dark .nx-templates-page .dataTables_filter input[type="search"] {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
  color-scheme: dark;
}

html.nx-content-dark-init body.nx-shell .nx-templates-page .dataTables_paginate ul.pagination > li > a,
body.nx-shell.nx-content-dark .nx-templates-page .dataTables_paginate ul.pagination > li > a {
  background: #1f1f1f !important;
  border: 1px solid #2f2f2f !important;
  color: #e8e8e8 !important;
}

html.nx-content-dark-init body.nx-shell .nx-templates-page .dataTables_paginate ul.pagination > li > a:hover,
html.nx-content-dark-init body.nx-shell .nx-templates-page .dataTables_paginate ul.pagination > li > a:focus,
body.nx-shell.nx-content-dark .nx-templates-page .dataTables_paginate ul.pagination > li > a:hover,
body.nx-shell.nx-content-dark .nx-templates-page .dataTables_paginate ul.pagination > li > a:focus {
  background: #2a2a2a !important;
  border-color: #3a3a3a !important;
  color: #fff !important;
}

html.nx-content-dark-init body.nx-shell .nx-templates-page .dataTables_paginate ul.pagination > li.disabled > a,
body.nx-shell.nx-content-dark .nx-templates-page .dataTables_paginate ul.pagination > li.disabled > a {
  background: #1a1a1a !important;
  border-color: #2f2f2f !important;
  color: #8a8a8a !important;
}

html.nx-content-dark-init body.nx-shell .nx-templates-page .dataTables_processing,
body.nx-shell.nx-content-dark .nx-templates-page .dataTables_processing {
  background: rgba(26, 26, 26, 0.95) !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-templates-page .gw-dash-hero__titles h1 .fa,
body.nx-shell.nx-content-dark .nx-templates-page .gw-dash-hero__titles h1 .fa,
html.nx-content-dark-init body.nx-shell .nx-templates-page .gw-templates-card__head h3 .fa,
body.nx-shell.nx-content-dark .nx-templates-page .gw-templates-card__head h3 .fa {
  color: #bdbdbd !important;
}

html.nx-content-dark-init body.nx-shell .nx-templates-page .gw-dash-hero__subtitle,
body.nx-shell.nx-content-dark .nx-templates-page .gw-dash-hero__subtitle {
  color: #b5b5b5 !important;
}

/* ===== Page Image templates ===== */
.nx-shell .nx-image-templates-page .dataTables_wrapper.dt-bootstrap.form-inline {
  display: block !important;
}

.nx-shell .nx-image-templates-page .gw-image-templates-hint {
  margin-bottom: 12px;
}

.nx-shell .nx-image-templates-page .gw-image-templates-hint__body {
  padding-top: 2px;
}

.nx-shell .nx-image-templates-page .gw-image-templates-hint__list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-image-templates-page .gw-image-templates-hint__list li {
  margin-bottom: 8px;
}

.nx-shell .nx-image-templates-page .gw-image-templates-hint__list li:last-child {
  margin-bottom: 0;
}

.nx-shell .nx-image-templates-page .gw-image-templates-hint__list code {
  font-size: 0.8125rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid var(--nx-d-border);
  color: var(--nx-d-text);
}

.nx-shell .nx-image-templates-page .gw-image-templates-hint__list strong {
  color: var(--nx-d-text);
  font-weight: 600;
}

.nx-shell .nx-image-templates-page .gw-image-templates-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px !important;
}

.nx-shell .nx-image-templates-page .gw-image-templates-card__head h3 {
  margin: 0 !important;
}

.nx-shell .nx-image-templates-page .gw-image-templates-card__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.nx-shell .nx-image-templates-page .gw-image-templates-table-wrap .gw-dt-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--nx-d-border);
}

.nx-shell .nx-image-templates-page .gw-dt-length {
  flex: 1 1 220px;
  min-width: 0;
}

.nx-shell .nx-image-templates-page .dataTables_length {
  margin: 0 !important;
}

.nx-shell .nx-image-templates-page .dataTables_length label {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 !important;
  font-size: 13px;
  font-weight: 500;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-image-templates-page .dataTables_length select {
  min-height: 36px;
  padding: 6px 32px 6px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
  cursor: pointer;
}

.nx-shell .nx-image-templates-page .dataTables_filter {
  margin: 0 !important;
  flex: 1 1 200px;
  min-width: 0;
}

.nx-shell .nx-image-templates-page .dataTables_filter label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-image-templates-page .dataTables_filter input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 36px;
  padding: 6px 12px !important;
  border-radius: var(--nx-radius-xs) !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
}

.nx-shell .nx-image-templates-page .dataTables_info {
  padding: 12px 16px 4px;
  font-size: 12px;
  color: var(--nx-d-secondary);
}

.nx-shell .nx-image-templates-page .dataTables_paginate {
  padding: 4px 16px 14px;
  text-align: right;
}

.nx-shell .nx-image-templates-page .dataTables_paginate ul.pagination {
  display: inline-flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border: 0 !important;
  box-shadow: none !important;
  vertical-align: middle;
}

.nx-shell .nx-image-templates-page .dataTables_paginate ul.pagination > li {
  display: inline-flex !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.nx-shell .nx-image-templates-page .dataTables_paginate ul.pagination > li > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px !important;
  margin: 0 !important;
  float: none !important;
  line-height: 1.2 !important;
  border-radius: 999px !important;
  border: 1px solid var(--nx-d-border) !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  box-shadow: none !important;
}

.nx-shell .nx-image-templates-page .dataTables_paginate ul.pagination > li > a:hover,
.nx-shell .nx-image-templates-page .dataTables_paginate ul.pagination > li > a:focus {
  background: var(--nx-d-bg) !important;
  border-color: var(--nx-border-strong) !important;
  color: var(--nx-d-text) !important;
}

.nx-shell .nx-image-templates-page .dataTables_paginate ul.pagination > li.disabled > a,
.nx-shell .nx-image-templates-page .dataTables_paginate ul.pagination > li.disabled > a:hover,
.nx-shell .nx-image-templates-page .dataTables_paginate ul.pagination > li.disabled > a:focus {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  background: var(--nx-d-surface) !important;
  color: var(--nx-d-text) !important;
  pointer-events: none;
}

.nx-shell .nx-image-templates-page .dataTables_processing {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid var(--nx-d-border) !important;
  border-radius: var(--nx-radius-xs) !important;
  color: var(--nx-d-text) !important;
}

/* ========== Modal éditeur modèles d’image (#modal-image-template) ==========
   Le modal est append sous body : variables locales (pas .nx-dashboard --nx-d-*). */
.nx-shell #modal-image-template {
  --img-tpl-canvas-bg: #eceff1;
  --img-tpl-pane-bg: #f8f8f8;
  --img-tpl-pane-border: var(--nx-border);
  --img-tpl-muted: var(--nx-text-muted);
  --img-tpl-text: var(--nx-text);
  --img-tpl-secondary: var(--nx-text-secondary);
  --img-tpl-hairline: var(--nx-border);
}

html.nx-content-dark-init body.nx-shell #modal-image-template,
body.nx-shell.nx-content-dark #modal-image-template {
  --img-tpl-canvas-bg: #1f1f1f;
  --img-tpl-pane-bg: #171717;
  --img-tpl-pane-border: #2f2f2f;
  --img-tpl-muted: #9ca3af;
  --img-tpl-text: #fafafa;
  --img-tpl-secondary: #b5b5b5;
  --img-tpl-hairline: #2f2f2f;
  color-scheme: dark;
}

.nx-shell #modal-image-template .modal-dialog.modal-wide {
  width: min(96vw, 1280px);
  max-width: 1280px;
  margin: 22px auto;
}

.nx-shell #modal-image-template .img-tpl-modal {
  overflow: hidden;
  border-radius: var(--nx-radius) !important;
}

.nx-shell #modal-image-template .img-tpl-modal__header {
  padding: 16px 22px 14px;
  border-bottom: 1px solid var(--img-tpl-hairline);
}

.nx-shell #modal-image-template .img-tpl-modal__header .modal-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--img-tpl-text);
  line-height: 1.35;
}

.nx-shell #modal-image-template .img-tpl-modal__close {
  margin-top: -2px;
  opacity: 0.55;
  text-shadow: none;
  font-weight: 400;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.nx-shell #modal-image-template .img-tpl-modal__close:hover,
.nx-shell #modal-image-template .img-tpl-modal__close:focus {
  opacity: 1;
  color: var(--img-tpl-text) !important;
}

.nx-shell #modal-image-template .img-tpl-modal__body {
  padding: 18px 22px 22px;
  max-height: min(78vh, 880px);
  overflow-x: hidden;
  overflow-y: auto;
}

.nx-shell #modal-image-template .img-tpl-modal__row--meta {
  margin-bottom: 4px;
}

.nx-shell #modal-image-template .img-tpl-modal__field {
  margin-bottom: 12px;
}

.nx-shell #modal-image-template .img-tpl-modal__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--img-tpl-text);
  letter-spacing: -0.01em;
}

.nx-shell #modal-image-template .img-tpl-modal__label--small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--img-tpl-muted);
}

.nx-shell #modal-image-template .img-tpl-modal__hint-inline {
  font-weight: 500;
  color: var(--img-tpl-muted);
}

.nx-shell #modal-image-template .img-tpl-modal__field .gw-file-input {
  margin-top: 4px;
}

.nx-shell #modal-image-template .img-tpl-modal__workspace-row {
  margin-top: 8px;
  margin-bottom: 4px;
}

.nx-shell #modal-image-template .img-tpl-modal__canvas-pane {
  padding-top: 4px;
}

@media (min-width: 992px) {
  .nx-shell #modal-image-template .img-tpl-modal__canvas-pane {
    padding-right: 10px;
  }
}

@media (max-width: 991px) {
  .nx-shell #modal-image-template .img-tpl-modal__canvas-pane {
    margin-bottom: 18px;
  }
}

.nx-shell #modal-image-template .img-tpl-modal__section-label {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--img-tpl-muted);
}

.nx-shell #modal-image-template #imgTplCanvasOuter {
  margin-top: 0;
  overflow: auto;
  max-height: min(52vh, 520px);
  text-align: center;
  background: var(--img-tpl-canvas-bg);
  padding: 12px;
  border: 1px solid var(--img-tpl-pane-border);
  border-radius: var(--nx-radius-xs);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nx-shell #modal-image-template .img-tpl-modal__canvas-hint {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 0.8125rem;
  color: var(--img-tpl-muted);
}

.nx-shell #modal-image-template .img-tpl-modal__sidebar-pane {
  background: var(--img-tpl-pane-bg);
  border: 1px solid var(--img-tpl-pane-border);
  border-radius: var(--nx-radius-xs);
  padding: 16px 18px 18px;
  box-shadow: var(--nx-shadow);
}

.nx-shell #modal-image-template .img-tpl-modal__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.nx-shell #modal-image-template .img-tpl-modal__toolbar .btn {
  border-radius: var(--nx-radius-xs);
  font-weight: 500;
}

.nx-shell #modal-image-template .img-tpl-modal__font-block {
  margin-bottom: 14px;
}

.nx-shell #modal-image-template .img-tpl-modal__help-tight {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 0.75rem;
  color: var(--img-tpl-muted);
}

.nx-shell #modal-image-template .img-tpl-modal__active-zone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--img-tpl-pane-border);
}

.nx-shell #modal-image-template .img-tpl-modal__active-label {
  font-size: 0.75rem;
  color: var(--img-tpl-muted);
}

.nx-shell #modal-image-template .img-tpl-modal__active-badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(10, 10, 10, 0.06);
  border: 1px solid var(--img-tpl-pane-border);
  color: var(--img-tpl-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html.nx-content-dark-init body.nx-shell #modal-image-template .img-tpl-modal__active-badge,
body.nx-shell.nx-content-dark #modal-image-template .img-tpl-modal__active-badge {
  background: rgba(255, 255, 255, 0.06);
}

.nx-shell #modal-image-template .img-tpl-modal__inspector-empty {
  font-size: 0.8125rem;
  color: var(--img-tpl-muted);
  font-style: italic;
  padding: 10px 0 4px;
  line-height: 1.45;
}

.nx-shell #modal-image-template #imgTplInspectorForm label {
  font-weight: 500;
  font-size: 12px;
  margin-bottom: 3px;
  color: var(--img-tpl-secondary);
}

.nx-shell #modal-image-template #imgTplInspectorForm .imgTpl-row {
  margin-bottom: 10px;
}

.nx-shell #modal-image-template .img-tpl-modal__color-input {
  height: 36px;
  padding: 2px 6px;
  border-radius: var(--nx-radius-xs);
  cursor: pointer;
}

.nx-shell #modal-image-template .img-tpl-json-detail.img-tpl-modal__json {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--img-tpl-pane-border);
  border-radius: var(--nx-radius-xs);
  background: rgba(0, 0, 0, 0.02);
}

html.nx-content-dark-init body.nx-shell #modal-image-template .img-tpl-json-detail.img-tpl-modal__json,
body.nx-shell.nx-content-dark #modal-image-template .img-tpl-json-detail.img-tpl-modal__json {
  background: #141414;
}

.nx-shell #modal-image-template .img-tpl-json-detail summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--img-tpl-text);
  outline: none;
  letter-spacing: -0.01em;
}

.nx-shell #modal-image-template .img-tpl-modal__json-field {
  margin-top: 12px;
  margin-bottom: 0;
}

.nx-shell #modal-image-template .img-tpl-modal__hr {
  margin: 22px 0 18px;
  border: 0;
  border-top: 1px solid var(--img-tpl-hairline);
}

.nx-shell #modal-image-template .img-tpl-modal__section-title {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--img-tpl-text);
}

.nx-shell #modal-image-template .img-tpl-modal__samples {
  margin-left: 0;
  margin-right: 0;
}

.nx-shell #modal-image-template .img-tpl-modal__preview-row {
  margin-top: 4px;
  margin-bottom: 0;
}

.nx-shell #modal-image-template .img-tpl-modal__preview-row .btn {
  border-radius: var(--nx-radius-xs);
  font-weight: 500;
}

.nx-shell #modal-image-template .img-tpl-modal__preview-frame {
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed var(--img-tpl-pane-border);
  border-radius: var(--nx-radius-xs);
  background: rgba(0, 0, 0, 0.02);
  text-align: center;
  min-height: 48px;
}

html.nx-content-dark-init body.nx-shell #modal-image-template .img-tpl-modal__preview-frame,
body.nx-shell.nx-content-dark #modal-image-template .img-tpl-modal__preview-frame {
  background: #141414;
}

.nx-shell #modal-image-template .img-tpl-modal__preview-img {
  max-width: 100%;
  height: auto;
  display: none;
  border-radius: var(--nx-radius-xs);
  border: 1px solid var(--img-tpl-pane-border) !important;
  vertical-align: middle;
}

.nx-shell #modal-image-template .modal-body .help-block {
  color: var(--img-tpl-muted);
}

.nx-shell #modal-image-template textarea.monospace {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  border-radius: var(--nx-radius-xs);
}

.nx-shell #modal-image-template .img-tpl-modal__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 16px;
  border-top: 1px solid var(--img-tpl-hairline);
}

.nx-shell #modal-image-template .img-tpl-modal__footer-dismiss {
  margin-right: auto;
  border-radius: var(--nx-radius-xs);
  font-weight: 500;
}

.nx-shell #modal-image-template .img-tpl-modal__footer .btn-primary {
  border-radius: var(--nx-radius-xs);
  font-weight: 600;
  min-width: 108px;
}

/* Thème sombre — page + hint + DataTables */
html.nx-content-dark-init body.nx-shell .nx-image-templates-page .gw-image-templates-hint,
body.nx-shell.nx-content-dark .nx-image-templates-page .gw-image-templates-hint {
  background: #1a1a1a !important;
  border-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-image-templates-page .gw-dash-announcement__title,
body.nx-shell.nx-content-dark .nx-image-templates-page .gw-dash-announcement__title {
  color: #fafafa !important;
}

html.nx-content-dark-init body.nx-shell .nx-image-templates-page .gw-image-templates-hint__list,
body.nx-shell.nx-content-dark .nx-image-templates-page .gw-image-templates-hint__list {
  color: #c4c4c4 !important;
}

html.nx-content-dark-init body.nx-shell .nx-image-templates-page .gw-image-templates-hint__list code,
body.nx-shell.nx-content-dark .nx-image-templates-page .gw-image-templates-hint__list code {
  background: #262626 !important;
  border-color: #3a3a3a !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-image-templates-page .gw-image-templates-hint__list strong,
body.nx-shell.nx-content-dark .nx-image-templates-page .gw-image-templates-hint__list strong {
  color: #fafafa !important;
}

html.nx-content-dark-init body.nx-shell .nx-image-templates-page .gw-image-templates-table-wrap .gw-dt-controls,
body.nx-shell.nx-content-dark .nx-image-templates-page .gw-image-templates-table-wrap .gw-dt-controls {
  border-bottom-color: #2f2f2f !important;
}

html.nx-content-dark-init body.nx-shell .nx-image-templates-page .dataTables_length label,
html.nx-content-dark-init body.nx-shell .nx-image-templates-page .dataTables_filter label,
html.nx-content-dark-init body.nx-shell .nx-image-templates-page .dataTables_info,
body.nx-shell.nx-content-dark .nx-image-templates-page .dataTables_length label,
body.nx-shell.nx-content-dark .nx-image-templates-page .dataTables_filter label,
body.nx-shell.nx-content-dark .nx-image-templates-page .dataTables_info {
  color: #b5b5b5 !important;
}

html.nx-content-dark-init body.nx-shell .nx-image-templates-page .dataTables_length select,
html.nx-content-dark-init body.nx-shell .nx-image-templates-page .dataTables_filter input[type="search"],
body.nx-shell.nx-content-dark .nx-image-templates-page .dataTables_length select,
body.nx-shell.nx-content-dark .nx-image-templates-page .dataTables_filter input[type="search"] {
  background: #1b1b1b !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
  color-scheme: dark;
}

html.nx-content-dark-init body.nx-shell .nx-image-templates-page .dataTables_paginate ul.pagination > li > a,
body.nx-shell.nx-content-dark .nx-image-templates-page .dataTables_paginate ul.pagination > li > a {
  background: #1f1f1f !important;
  border: 1px solid #2f2f2f !important;
  color: #e8e8e8 !important;
}

html.nx-content-dark-init body.nx-shell .nx-image-templates-page .dataTables_paginate ul.pagination > li > a:hover,
html.nx-content-dark-init body.nx-shell .nx-image-templates-page .dataTables_paginate ul.pagination > li > a:focus,
body.nx-shell.nx-content-dark .nx-image-templates-page .dataTables_paginate ul.pagination > li > a:hover,
body.nx-shell.nx-content-dark .nx-image-templates-page .dataTables_paginate ul.pagination > li > a:focus {
  background: #2a2a2a !important;
  border-color: #3a3a3a !important;
  color: #fff !important;
}

html.nx-content-dark-init body.nx-shell .nx-image-templates-page .dataTables_paginate ul.pagination > li.disabled > a,
body.nx-shell.nx-content-dark .nx-image-templates-page .dataTables_paginate ul.pagination > li.disabled > a {
  background: #1a1a1a !important;
  border-color: #2f2f2f !important;
  color: #8a8a8a !important;
}

html.nx-content-dark-init body.nx-shell .nx-image-templates-page .dataTables_processing,
body.nx-shell.nx-content-dark .nx-image-templates-page .dataTables_processing {
  background: rgba(26, 26, 26, 0.95) !important;
  border: 1px solid #2f2f2f !important;
  color: #ececec !important;
}

html.nx-content-dark-init body.nx-shell .nx-image-templates-page .gw-dash-hero__titles h1 .fa,
body.nx-shell.nx-content-dark .nx-image-templates-page .gw-dash-hero__titles h1 .fa,
html.nx-content-dark-init body.nx-shell .nx-image-templates-page .gw-image-templates-card__head h3 .fa,
body.nx-shell.nx-content-dark .nx-image-templates-page .gw-image-templates-card__head h3 .fa,
html.nx-content-dark-init body.nx-shell .nx-image-templates-page .gw-dash-announcement__title .fa,
body.nx-shell.nx-content-dark .nx-image-templates-page .gw-dash-announcement__title .fa {
  color: #bdbdbd !important;
}

html.nx-content-dark-init body.nx-shell .nx-image-templates-page .gw-dash-hero__subtitle,
body.nx-shell.nx-content-dark .nx-image-templates-page .gw-dash-hero__subtitle {
  color: #b5b5b5 !important;
}
