@charset "UTF-8";
:root[data-glpi-theme=theme-ug] {
  /* UG — Couleurs institutionnelles */
  --tblr-primary: #1B916C; /* Jungle Green (UG) */
  --tblr-primary-rgb: 27, 145, 108; /* RVB officiel */
  --tblr-primary-fg: #ffffff;
  --tblr-link-color-rgb: 27, 145, 108;
  --tblr-link-hover-color: #0F6B5B; /* vert profond présent dans la charte (accent) */
  /* Neutres */
  --tblr-secondary: #000000; /* Noir (UG) */
  --tblr-secondary-fg: #ffffff;
  /* Menu */
  --glpi-mainmenu-bg: #1B916C;
  --glpi-mainmenu-fg: #ffffff;
  /* Aperçu palette (4 pastilles) */
  --glpi-palette-color-1: #1B916C; /* UG Jungle Green */
  --glpi-palette-color-2: #0F6B5B; /* accent vert profond */
  --glpi-palette-color-3: #ffffff;
  --glpi-palette-color-4: #000000;
}

/* Fix contraste : item actif / ouvert dans le menu principal */
:root[data-glpi-theme=theme-ug] {
  /* optionnel : fixe aussi la couleur "active" si GLPI la lit */
  --tblr-navbar-color: #ffffff;
}

/* Liens de menu (texte) */
html[data-glpi-theme=theme-ug] .navbar-vertical .nav-link,
html[data-glpi-theme=theme-ug] .navbar-vertical .dropdown-item {
  color: #ffffff;
}

/* Item actif (sélectionné) */
html[data-glpi-theme=theme-ug] .navbar-vertical .nav-link.active,
html[data-glpi-theme=theme-ug] .navbar-vertical .nav-item.active > .nav-link {
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.14) !important; /* surbrillance lisible sur vert */
}

/* Item "ouvert" (dropdown show) */
html[data-glpi-theme=theme-ug] .navbar-vertical .nav-link.show,
html[data-glpi-theme=theme-ug] .navbar-vertical .nav-item.show > .nav-link {
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.1) !important;
}

/* Titre du menu déroulant (header) */
html[data-glpi-theme=theme-ug] .navbar-vertical .dropdown-menu .dropdown-header {
  color: #ffffff !important;
}

/* ================================
   MENU VERTICAL – CORRECTION UG
   ================================ */
/* Texte par défaut du menu */
html[data-glpi-theme=theme-ug] .navbar-vertical .nav-link,
html[data-glpi-theme=theme-ug] .navbar-vertical .dropdown-item {
  color: #ffffff;
}

/* Hover (passage souris) */
html[data-glpi-theme=theme-ug] .navbar-vertical .nav-link:hover,
html[data-glpi-theme=theme-ug] .navbar-vertical .dropdown-item:hover {
  color: #ffffff !important;
  background-color: rgba(0, 0, 0, 0.12);
}

/* Élément actif (sélectionné) */
html[data-glpi-theme=theme-ug] .navbar-vertical .nav-link.active,
html[data-glpi-theme=theme-ug] .navbar-vertical .nav-item.active > .nav-link {
  color: #ffffff !important;
  background-color: rgba(0, 0, 0, 0.18);
}

/* Menu ouvert (dropdown visible) */
html[data-glpi-theme=theme-ug] .navbar-vertical .nav-link.show,
html[data-glpi-theme=theme-ug] .navbar-vertical .nav-item.show > .nav-link {
  color: #ffffff !important;
  background-color: rgba(0, 0, 0, 0.15);
}

/* Focus clavier (accessibilité) */
html[data-glpi-theme=theme-ug] .navbar-vertical .nav-link:focus,
html[data-glpi-theme=theme-ug] .navbar-vertical .dropdown-item:focus {
  color: #ffffff !important;
  background-color: rgba(0, 0, 0, 0.2);
}

/* Icônes du menu (alignées au texte) */
html[data-glpi-theme=theme-ug] .navbar-vertical .nav-link i,
html[data-glpi-theme=theme-ug] .navbar-vertical .dropdown-item i {
  color: inherit;
}

/* Conteneur principal de la bannière */
/* Contenu central */
/* Texte blanc UNIQUEMENT pour l'entité sélectionnée (bandeau vert) */
html[data-glpi-theme=theme-ug] tr.fancytree-selected > td .fancytree-title .btn.btn-link {
  color: #ffffff !important;
}

/* Icône chevrons uniquement sur l'entité sélectionnée */
html[data-glpi-theme=theme-ug] tr.fancytree-selected > td .fancytree-title .btn-outline-secondary i {
  color: #ffffff !important;
}

.search-banner {
  min-height: 165px !important;
  height: auto !important;
  padding: 22px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.search-banner .scene {
  display: flex !important;
  width: 210px !important;
  height: 100% !important;
  opacity: 0.35 !important;
  pointer-events: none !important;
}
.search-banner .search-banner-content {
  position: relative !important;
  z-index: 1 !important;
  padding: 0 !important;
  margin: 0 auto !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}
.search-banner .search-banner-content h1 {
  font-size: 28px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}
.search-banner .search-banner-content .search-bar-container {
  width: 100% !important;
  max-width: 700px !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 768px) {
  .search-banner .scene {
    display: none !important;
  }
  .search-banner .search-banner-content h1 {
    font-size: 22px !important;
  }
}
/* ==================================================
   UG - GLPI 11 : compteurs des onglets
   ================================================== */
.nav-tabs .badge,
.nav-pills .badge,
.list-group-item .badge,
.nav-link .badge,
.list-group-item .badge-count {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

/* GLPI 11 - Remplacement du séparateur d'entités */
html[data-glpi-theme=theme-ug] .glpi-badge i.ti-caret-right-filled {
  font-size: 0 !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html[data-glpi-theme=theme-ug] .glpi-badge i.ti-caret-right-filled::before {
  content: "›" !important;
  font-family: Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: bold !important;
  color: #0F6B5B !important;
  display: inline-block !important;
}

/* ==================================================
   UG - GLPI 11 : boutons Marketplace
   ================================================== */
html[data-glpi-theme=theme-ug] .marketplace li.plugin .buttons button {
  color: #334155 !important;
  opacity: 1 !important;
}

html[data-glpi-theme=theme-ug] .marketplace li.plugin .buttons button i {
  color: inherit !important;
  opacity: 1 !important;
}

/* Marketplace : interrupteurs Tabler natifs */
html[data-glpi-theme=theme-ug] .marketplace li.plugin .buttons button[data-action=disable_plugin] i::before {
  content: "\eb3f" !important;
  font-family: "tabler-icons" !important;
  font-size: 18px !important;
  font-weight: normal !important;
  color: #1B916C !important;
}

html[data-glpi-theme=theme-ug] .marketplace li.plugin .buttons button[data-action=enable_plugin] i::before {
  content: "\eb3e" !important;
  font-family: "tabler-icons" !important;
  font-size: 18px !important;
  font-weight: normal !important;
  color: #64748b !important;
}

/* ==========================================
   UG - Logos personnalisés des entités
   ========================================== */
html[data-glpi-theme=theme-ug] .navbar-brand .glpi-logo {
  display: inline-block;
  width: 100px;
  height: 55px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ==========================================
   UG - Correction des infobulles GLPI 11
   ========================================== */
html[data-glpi-theme=theme-ug] .tooltip {
  --tblr-tooltip-color: #ffffff;
  --bs-tooltip-color: #ffffff;
  --tblr-tooltip-bg: #303846;
  --bs-tooltip-bg: #303846;
}

html[data-glpi-theme=theme-ug] .tooltip .tooltip-inner {
  color: #ffffff !important;
  background-color: #303846 !important;
  opacity: 1 !important;
}