/* Recherche de dossiers dans les menus SOGo — LeWeboskop, 30/09/2026 */
.lw-filtre-dossiers {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
}
.lw-filtre-dossiers input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  border-bottom: 2px solid #028d87;
  outline: none;
  padding: 4px 2px;
  font-size: 14px;
  font-family: inherit;
  color: rgba(0, 0, 0, .87);
  background: transparent;
}
.lw-filtre-dossiers input::placeholder { color: rgba(0, 0, 0, .38); }
.lw-filtre-compteur {
  flex: 0 0 auto;
  font-size: 12px;
  color: rgba(0, 0, 0, .54);
  white-space: nowrap;
}

/* résultats de recherche, construits par le script */
.lw-filtre-resultats { max-height: 60vh; overflow-y: auto; }
.lw-resultat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  line-height: 1.2;
}
.lw-resultat-nom {
  font-size: 14px;
  color: rgba(0, 0, 0, .87);
  white-space: nowrap;
}
.lw-resultat-chemin {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
  color: rgba(0, 0, 0, .45);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lw-resultat-actif { background: rgba(2, 141, 135, .12); }
.lw-resultat-actif .lw-resultat-nom { color: #028d87; font-weight: 500; }

/* pendant une recherche, on masque la liste des comptes */
md-menu-content.lw-recherche-active > *:not(.lw-filtre-dossiers):not(.lw-filtre-resultats) {
  display: none;
}
md-menu-content.lw-recherche-active { min-width: 340px; }

/* filtre simple du dernier niveau : l'indentation n'a plus de sens */
md-menu-content.lw-filtre-actif span[class*="sg-child-level"] { padding-left: 0 !important; }
