/* PokéBattle V13.39 — Formato dropdown visibility fix only.
   Product dropdown already worked correctly; this makes the Formato card
   use the same visible overflow/stacking behavior without touching battle logic. */
#page-battle #pbLobbyStable46,
#page-battle #pbLobbyStable46 .pb46Right,
#page-battle #pbLobbyStable46 .pb46Facts {
  overflow: visible !important;
}

#page-battle #pbLobbyStable46 .pb46Facts .pb46Fact:first-child {
  position: relative !important;
  overflow: visible !important;
  z-index: 250 !important;
}

#page-battle #pbLobbyStable46 .pb46Facts .pb46Fact:first-child .pbBattleDropdownV1337 {
  position: relative !important;
  overflow: visible !important;
  z-index: 300 !important;
}

#page-battle #pbLobbyStable46 .pb46Facts .pb46Fact:first-child .pbBattleDropdownV1337.open {
  z-index: 10000 !important;
}

#page-battle #pbLobbyStable46 .pb46Facts .pb46Fact:first-child .pbBattleDropdownMenuV1337 {
  z-index: 10001 !important;
  min-width: 100% !important;
  width: 100% !important;
  max-height: 260px !important;
}

/* Keep the second row and player area underneath an open Formato menu. */
#page-battle #pbLobbyStable46 .pb46Lower {
  position: relative !important;
  z-index: 1 !important;
}
#page-battle #battleGrid,
#page-battle .battleGrid,
#page-battle .pbBattleGrid {
  position: relative;
  z-index: 0;
}
