/* ========================================================================== */
/* ETHNOS R151 — Ajustements finaux Annuaire et Messages                      */
/* Base : R150. Corrections ciblées du 4 août 2026.                           */
/* ========================================================================== */

/* 1 — Messages, 1366 × 768 : champ de recherche +5 px, axe inchangé. */
@media (width:1366px) and (height:768px){
  html body .memberMessagesDrawer .memberMessageSearch{
    width:calc(100% - 73px) !important;
    max-width:calc(100% - 73px) !important;
    margin-left:auto !important;
    margin-right:auto !important;
    justify-self:center !important;
    transform:none !important;
  }
}

/* 2 — Annuaire : descendre Fermer sans modifier le reste du formulaire. */
/* Grands formats, dont 1920 × 1080 : +10 px par rapport à R150. */
@media (min-width:1700px) and (min-height:1000px){
  html body .memberDirectoryContent>.memberDirectoryInlineClose{
    margin-top:20px !important;
  }
}
/* 1536 × 864 : conserver l'écart validé de 20 px. */
@media (width:1536px) and (height:864px){
  html body .memberDirectoryContent>.memberDirectoryInlineClose{
    margin-top:20px !important;
  }
}
/* 1366 × 768 : +5 px par rapport à R150. */
@media (width:1366px) and (height:768px){
  html body .memberDirectoryContent>.memberDirectoryInlineClose{
    margin-top:10px !important;
  }
}

/* 3 — Résultats Annuaire : défilement garanti quand la liste dépasse le volet. */
html body .memberDirectoryShell.isResultsMode{
  min-height:0 !important;
  overflow:hidden !important;
}
html body .memberDirectoryShell.isResultsMode .memberDirectoryContent{
  min-height:0 !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  overscroll-behavior:contain !important;
  scrollbar-gutter:stable !important;
  scrollbar-width:thin !important;
  scrollbar-color:rgba(7,26,57,.30) transparent !important;
}
html body .memberDirectoryShell.isResultsMode .memberDirectoryContent::-webkit-scrollbar{
  display:block !important;
  width:6px !important;
  height:0 !important;
}
html body .memberDirectoryShell.isResultsMode .memberDirectoryContent::-webkit-scrollbar-track{
  background:transparent !important;
}
html body .memberDirectoryShell.isResultsMode .memberDirectoryContent::-webkit-scrollbar-thumb{
  border-radius:10px !important;
  background:rgba(7,26,57,.28) !important;
}
html body .memberDirectoryShell.isResultsMode .memberDirectoryResults{
  min-height:min-content !important;
}
