/* =====================================================================
   Need4Viz Support Portal (osTicket 1.17) — ESPACE CLIENT CONNECTÉ
   Portée : body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin)))  => uniquement une fois connecté
   (la page de login reste gérée par n4v-support.css).
   À charger APRÈS theme.css, tes CSS de custo et n4v-support.css.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

/* ---------- Variables ---------- */
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) {
  --n4v-accent: #008cb2;
  --n4v-accent-dark: #00668c;
  --n4v-accent-ink: #007a9c;
  --n4v-accent-soft: #e3f3f8;
  --n4v-yellow: #f2a900;
  --n4v-text: #0f2433;
  --n4v-muted: #5b6b78;
  --n4v-bg: #f4f7f9;
  --n4v-border: #e1e8ee;
  --n4v-field: #dbe4ea;
  --n4v-radius: 16px;
  --n4v-radius-sm: 10px;
  --n4v-shadow: 0 1px 2px rgba(15,36,51,.04), 0 4px 16px rgba(15,36,51,.06);
  --n4v-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --n4v-font-title: 'Plus Jakarta Sans', var(--n4v-font);
}

/* ---------- Base ---------- */
html:not(:has(#clientLogin)),
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) { background: var(--n4v-bg) !important; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) {
  font-family: var(--n4v-font) !important;
  color: var(--n4v-text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #container {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* ---------- En-tête blanc ---------- */
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #header {
  height: auto !important;
  min-height: 64px;
  padding: 0 max(24px, calc((100vw - 1140px) / 2)) !important;
  background: #fff !important;
  border-bottom: 1px solid var(--n4v-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;   /* logo à gauche */
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #header #logo { height: 64px; display: flex; align-items: center; margin: 0; float: none; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #header #logo img { max-height: 40px; width: auto; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #header #logo .valign-helper { display: none; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #header #logo::after {   /* « Support Portal », comme sur le wiki */
  content: "Support Portal";
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid var(--n4v-border);
  font-weight: 500;
  font-size: 15px;
  line-height: 28px;
  color: var(--n4v-text);
}
/* Bloc utilisateur : « test5 | Profil | Tickets (0) - Se déconnecter » */
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #header .pull-right {
  height: 64px;
  padding: 0 !important;
  float: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  font-size: 0;                  /* masque les séparateurs « | » et « - » */
  color: var(--n4v-muted);
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #header .pull-right p { margin: 0 !important; padding: 0 !important; display: flex; align-items: center; gap: 16px; line-height: 1; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #header .pull-right a {
  font-size: 14px;
  font-weight: 500;
  color: var(--n4v-accent-ink) !important;
  text-decoration: none;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #header .pull-right a:hover { color: var(--n4v-accent-dark) !important; text-decoration: underline; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #header .pull-right a b { font-weight: 600; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #header .pull-right a[href*="logout.php"] {
  padding: 7px 12px;
  border: 1px solid var(--n4v-field);
  border-radius: 8px;
  color: var(--n4v-text) !important;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #header .pull-right a[href*="logout.php"]:hover { background: var(--n4v-bg); text-decoration: none; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #header .flag { opacity: .55; transition: opacity .15s; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #header .flag:hover { opacity: 1; }

/* ---------- Onglets ---------- */
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #nav {
  display: flex !important;
  gap: 4px;
  height: auto !important;
  margin: 0 !important;
  padding: 0 max(24px, calc((100vw - 1140px) / 2)) !important;
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid var(--n4v-border) !important;
  box-shadow: none !important;
  list-style: none;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #nav li { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; float: none !important; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #nav li a {
  display: block;
  height: auto !important;
  padding: 14px 14px 12px !important;
  margin: 0 !important;
  font-family: var(--n4v-font) !important;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 20px !important;
  color: var(--n4v-muted) !important;
  background: none !important;         /* retire les icônes / fonds d'origine */
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #nav li a:hover { color: var(--n4v-text) !important; border-bottom-color: var(--n4v-field) !important; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #nav li a.active {
  color: var(--n4v-accent-ink) !important;
  font-weight: 600;
  border-bottom-color: var(--n4v-accent) !important;
}
/* Onglet « Assistant » mis en avant */
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #nav li a.home::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--n4v-yellow);
  vertical-align: 1px;
}

/* ---------- Zone de contenu ---------- */
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content {
  max-width: 1092px;
  margin: 28px auto 48px !important;
  padding: 28px 32px 32px !important;
  background: #fff !important;
  border: 1px solid var(--n4v-border) !important;
  border-radius: var(--n4v-radius);
  box-shadow: var(--n4v-shadow) !important;
  box-sizing: border-box;
}
/* L'onglet Assistant a déjà ses propres cartes */
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))):has(.n4v-home) #content {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 24px !important;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content h1 {
  margin: 0 0 8px;
  font-family: var(--n4v-font-title) !important;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.25;
  color: var(--n4v-text) !important;
  letter-spacing: -.01em;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content h2,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content h3 {
  font-family: var(--n4v-font-title) !important;
  font-weight: 700;
  color: var(--n4v-text) !important;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content p { color: var(--n4v-muted); }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content a { color: var(--n4v-accent-ink); }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content a:hover { color: var(--n4v-accent-dark); }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content hr { border: 0; border-top: 1px solid var(--n4v-border); margin: 20px 0; }

/* ---------- Champs de formulaire ---------- */
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content input[type="text"],
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content input[type="email"],
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content input[type="password"],
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content input[type="search"],
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content input[type="tel"],
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content input[type="number"],
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content input:not([type]),
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content select,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content textarea {
  box-sizing: border-box;
  min-height: 40px;
  padding: 8px 12px;
  font: 15px var(--n4v-font);
  color: var(--n4v-text);
  background: #fff;
  border: 1px solid var(--n4v-field) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  transition: border-color .15s, box-shadow .15s;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content select { padding-right: 32px; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content textarea { min-height: 120px; line-height: 1.5; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content input:focus,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content select:focus,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content textarea:focus {
  outline: none;
  border-color: var(--n4v-accent) !important;
  box-shadow: 0 0 0 3px rgba(0,140,178,.15) !important;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content label,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .form-header b,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content td > strong,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content td > b { color: var(--n4v-text); font-weight: 600; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .error,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content font.error { color: #c62828 !important; }

/* Éditeur de texte riche (Redactor) */
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .redactor-box,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .redactor-editor {
  border-color: var(--n4v-field) !important;
  border-radius: 8px !important;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .redactor-toolbar { border-radius: 8px 8px 0 0; background: #f7fafc !important; box-shadow: none !important; }

/* Listes à choix multiples (select2) et zone de dépôt de fichiers */
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .select2-container .select2-selection {
  min-height: 40px;
  border: 1px solid var(--n4v-field) !important;
  border-radius: 8px !important;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .select2-container--focus .select2-selection { border-color: var(--n4v-accent) !important; box-shadow: 0 0 0 3px rgba(0,140,178,.15); }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .select2-selection__choice { background: var(--n4v-accent-soft) !important; border-color: #bfe3ee !important; border-radius: 6px !important; color: var(--n4v-accent-ink); }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .dropzone { border-radius: 0 0 8px 8px !important; border-color: var(--n4v-field) !important; background: #f7fafc !important; }

/* ---------- Boutons ---------- */
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content input[type="submit"],
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content button[type="submit"],
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .button,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .btn {
  display: inline-block;
  min-height: 40px;
  padding: 8px 18px !important;
  font: 600 14px var(--n4v-font) !important;
  color: #fff !important;
  background: var(--n4v-accent) !important;
  background-image: none !important;
  border: 1px solid var(--n4v-accent) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content input[type="submit"]:hover,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content button[type="submit"]:hover,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .button:hover,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .btn:hover {
  background: var(--n4v-accent-dark) !important;
  border-color: var(--n4v-accent-dark) !important;
  text-decoration: none;
}
/* Boutons secondaires : Réinitialiser, Annuler */
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content input[type="reset"],
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content input[type="button"],
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content button[type="button"],
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content button[type="reset"] {
  min-height: 40px;
  padding: 8px 16px !important;
  font: 500 14px var(--n4v-font) !important;
  color: var(--n4v-text) !important;
  background: #fff !important;
  background-image: none !important;
  border: 1px solid var(--n4v-field) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  cursor: pointer;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content input[type="reset"]:hover,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content input[type="button"]:hover,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content button[type="button"]:hover { background: var(--n4v-bg) !important; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content p.buttons,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Tableaux (liste des tickets…) ---------- */
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content table#ticketTable,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content table.list {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0;
  border: 1px solid var(--n4v-border) !important;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content table#ticketTable th,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content table.list th {
  padding: 10px 14px !important;
  background: #f4f7f9 !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--n4v-border) !important;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  color: var(--n4v-muted) !important;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content table#ticketTable th a,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content table.list th a { color: var(--n4v-muted) !important; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content table#ticketTable td,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content table.list td {
  padding: 11px 14px !important;
  border: 0 !important;
  border-top: 1px solid var(--n4v-border) !important;
  background: #fff !important;
  font-size: 14px;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content table#ticketTable tbody tr:first-child td,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content table.list tbody tr:first-child td { border-top: 0 !important; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content table#ticketTable tbody tr:hover td,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content table.list tbody tr:hover td { background: #fafcfd !important; }

/* Filtres au-dessus de la liste des tickets */
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .states,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content #ticketSearchForm { margin: 12px 0 16px; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .states a,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .states small a {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--n4v-field);
  border-radius: 999px;
  font-size: 13px;
  color: var(--n4v-muted) !important;
  text-decoration: none;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .states a.active,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .states a:hover { background: var(--n4v-accent-soft); border-color: #bfe3ee; color: var(--n4v-accent-ink) !important; }

/* ---------- Fil d'un ticket ---------- */
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .thread-entry .header,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .thread-entry > .header {
  background: #f4f7f9 !important;
  border: 1px solid var(--n4v-border) !important;
  border-bottom: 0 !important;
  border-radius: 12px 12px 0 0 !important;
  padding: 10px 14px !important;
  color: var(--n4v-muted);
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .thread-entry .thread-body {
  border: 1px solid var(--n4v-border) !important;
  border-radius: 0 0 12px 12px !important;
  background: #fff !important;
  padding: 14px !important;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .thread-entry.response .header { background: var(--n4v-accent-soft) !important; border-color: #bfe3ee !important; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .thread-entry.response .thread-body { border-color: #bfe3ee !important; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .thread-event { color: var(--n4v-muted); font-size: 13px; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .infoTable,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content table.infoTable {
  border: 1px solid var(--n4v-border);
  border-radius: 12px;
  background: #fafcfd;
}

/* ---------- Base de connaissances ---------- */
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .searchbar input.search,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .searchbar input[type="text"] { min-width: 280px; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content ul#kb { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content ul#kb > li {
  margin: 0 !important;
  padding: 18px 20px !important;
  background: #fff;
  border: 1px solid var(--n4v-border);
  border-radius: 14px;
  transition: border-color .15s, box-shadow .15s;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content ul#kb > li:hover { border-color: #bfe3ee; box-shadow: var(--n4v-shadow); }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content ul#kb > li > i { display: none; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content ul#kb > li > div { margin-left: 0 !important; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content ul#kb h4 { margin: 0 0 4px; font-family: var(--n4v-font-title); font-weight: 700; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content ul#kb h4,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content ul#kb h4 a { font-size: 17px !important; line-height: 1.35; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content ul#kb h4 a { color: var(--n4v-text) !important; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content ul#kb h4 a:hover { color: var(--n4v-accent-ink) !important; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content ul#kb .faded,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content ul#kb .faded p { color: var(--n4v-muted) !important; font-size: 14px; margin: 0 0 8px; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content ul#kb i.icon-folder-open,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content ul#kb i.icon-file-alt { color: var(--n4v-accent); margin-right: 6px; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .sidebar {
  padding: 16px;
  background: #f7fafc;
  border: 1px solid var(--n4v-border);
  border-radius: 14px;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .sidebar .header,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .sidebar section .header { font-weight: 600; color: var(--n4v-text); margin-bottom: 6px; }

/* Mise en page KB : liste + colonne latérale */
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .row { display: flex !important; gap: 24px; margin: 0 !important; align-items: flex-start; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .row > .span8 { flex: 1 1 auto; width: auto !important; margin: 0 !important; float: none !important; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .row > .span4 { flex: 0 0 260px; width: auto !important; margin: 0 !important; float: none !important; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .sidebar select { width: 100%; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content .sidebar .content { margin-top: 12px; }

/* ---------- Messages d'information ---------- */
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #msg_notice,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #msg_warning,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #msg_error,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) .notice_bar,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) .warning_bar,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) .error_bar {
  max-width: 1092px;
  margin: 20px auto 0 !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  box-sizing: border-box;
  font-size: 14px;
  background-image: none !important;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #msg_notice,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) .notice_bar { background: #eef9f2 !important; border: 1px solid #c3e8d0 !important; color: #14532d !important; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #msg_warning,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) .warning_bar { background: #fff6e0 !important; border: 1px solid #f3d48a !important; color: #5c4400 !important; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #msg_error,
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) .error_bar { background: #fdeeee !important; border: 1px solid #f2c4c4 !important; color: #8b1c1c !important; }

/* ---------- Pied de page ---------- */
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #footer {
  background: transparent !important;
  color: var(--n4v-muted) !important;
  border-top: 1px solid var(--n4v-border);
  padding: 20px 24px !important;
  margin: 0 !important;
  text-align: center;
  font-size: 13px;
}
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #footer p { margin: 0 0 4px; color: inherit !important; }
body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #footer a { color: var(--n4v-muted) !important; }

/* ---------- Petits écrans ---------- */
@media (max-width: 760px) {
  body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #header { flex-direction: column-reverse; align-items: flex-start; padding: 8px 16px !important; }
  body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #header #logo::after { display: none; }
  body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #nav { overflow-x: auto; padding: 0 12px !important; }
  body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #nav li a { white-space: nowrap; padding: 12px 10px 10px !important; }
  body:is(:has(a[href*="logout.php"]), :not(:has(#clientLogin))) #content { margin: 16px 12px 32px !important; padding: 20px 16px !important; }
}
