/* ==========================================================================
   ETHNOS R278 — ANNUAIRE 1280x720, CORRECTION LOCALE

   À modifier :
   - réduire la hauteur de "Afficher les membres", "Chercher avec cette lettre"
     et "Recommencer" à 29 px ;
   - réduire la largeur de "Recommencer" et l'aligner sur la même ligne que
     "Fermer" en mode résultats ;
   - garantir "Rechercher" à la même hauteur que le champ voisin (29 px).

   À ne pas toucher :
   - autres résolutions ;
   - charte graphique, couleurs, typographies et comportements ;
   - Tchat, Profil, Messages, Photos/Documents et autres volets.
   ========================================================================== */

@media (width:1280px) and (height:720px){

  /* 1 — Recherche par nom : champ et bouton ont exactement la même hauteur. */
  html[data-ethnos-ui="discord-r111"] body
  .memberDirectoryDrawer .memberDirectoryInlineSearch > input,
  html[data-ethnos-ui="discord-r111"] body
  .memberDirectoryDrawer .memberDirectoryInlineSearch > button.ethnosOfficialAction{
    box-sizing:border-box !important;
    height:29px !important;
    min-height:29px !important;
    max-height:29px !important;
  }

  html[data-ethnos-ui="discord-r111"] body
  .memberDirectoryDrawer .memberDirectoryInlineSearch > button.ethnosOfficialAction{
    align-self:center !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
  }

  /* 2 — Actions Annuaire compactées verticalement pour libérer de la hauteur. */
  html[data-ethnos-ui="discord-r111"] body
  .memberDirectoryDrawer .memberDirectoryLocationForm > button[type="submit"],
  html[data-ethnos-ui="discord-r111"] body
  .memberDirectoryDrawer button.memberDirectoryLetterSearchButton,
  html[data-ethnos-ui="discord-r111"] body
  .memberDirectoryDrawer button.memberDirectoryRestartButton{
    box-sizing:border-box !important;
    height:29px !important;
    min-height:29px !important;
    max-height:29px !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
    line-height:1 !important;
  }

  /* 3 — En mode résultats uniquement : Recommencer + Fermer sur une seule ligne.
     Les deux largeurs se partagent strictement la largeur disponible. */
  html[data-ethnos-ui="discord-r111"] body
  .memberDirectoryDrawer .memberDirectoryShell.isResultsMode
  .memberDirectoryContent > button.memberDirectoryRestartButton{
    display:inline-flex !important;
    vertical-align:top !important;
    width:calc(52% - 8px) !important;
    min-width:0 !important;
    max-width:none !important;
    margin:8px 4px 10px !important;
  }

  html[data-ethnos-ui="discord-r111"] body
  .memberDirectoryDrawer .memberDirectoryShell.isResultsMode
  .memberDirectoryContent > button.memberDirectoryInlineClose{
    display:inline-flex !important;
    vertical-align:top !important;
    box-sizing:border-box !important;
    width:calc(48% - 8px) !important;
    min-width:0 !important;
    max-width:none !important;
    height:29px !important;
    min-height:29px !important;
    max-height:29px !important;
    margin:8px 4px 10px !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
    line-height:1 !important;
  }
}
