/* DASM tablet Teams toolbar + secondary navigation balance.
   Shared in the consolidated codebase; enabled for tablet layouts. */
@media (min-width:761px) and (max-width:1100px){
  html body #view-teams .teams-toolbar{display:grid!important;grid-template-columns:minmax(170px,.95fr) minmax(120px,.70fr) minmax(110px,.62fr) minmax(270px,1.50fr)!important;grid-template-rows:42px!important;align-items:stretch!important;gap:8px!important;width:100%!important;min-height:42px!important;margin:0 0 10px!important}
  html body #view-teams .teams-mode-toggle{grid-column:1!important;grid-row:1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;width:100%!important;min-width:0!important;height:42px!important;margin:0!important}
  html body #view-teams .teams-club-filter{grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;height:42px!important;margin:0!important}
  html body #view-teams .teams-club-filter>span{display:none!important}
  html body #view-teams .teams-club-filter .club-picker,html body #view-teams .teams-club-filter .club-picker-button{width:100%!important;min-width:0!important;max-width:none!important;height:42px!important;min-height:42px!important}
  html body #view-teams .teams-club-filter .club-picker-button{justify-content:center!important;gap:7px!important;padding:0 10px!important}
  html body #view-teams #teamClubPickerButton>span{flex:0 1 auto!important;min-width:0!important;width:auto!important}
  html body #view-teams #teamClubPickerButton>i{position:static!important;flex:0 0 auto!important;margin:0!important}
  html body #view-teams .r643-transfer-toggle{grid-column:3!important;grid-row:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;max-width:none!important;height:42px!important;min-height:42px!important;margin:0!important;padding:5px 8px!important;font-size:10px!important;white-space:nowrap!important}
  html body #view-teams .team-actions{grid-column:4!important;grid-row:1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;gap:8px!important;width:100%!important;min-width:0!important;max-width:none!important;height:42px!important;margin:0!important}
  html body #view-teams .team-actions .button,html body #view-teams .team-actions .button.small{width:100%!important;min-width:0!important;max-width:none!important;height:42px!important;min-height:42px!important;margin:0!important;padding:5px 8px!important;white-space:nowrap!important;line-height:1.05!important}
}

/* iPad landscape widths above 1100px previously fell back to the older flex toolbar.
   Keep the same four explicit slots so All Transfers cannot be pushed off-screen. */
@media (min-width:1101px) and (max-width:1366px) and (orientation:landscape){
  html body #view-teams .teams-toolbar{display:grid!important;grid-template-columns:minmax(220px,1fr) minmax(130px,.62fr) minmax(112px,.50fr) minmax(290px,1.25fr)!important;grid-template-rows:42px!important;align-items:stretch!important;gap:8px!important;width:100%!important;min-height:42px!important;margin:0 0 10px!important}
  html body #view-teams .teams-mode-toggle{grid-column:1!important;grid-row:1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;width:100%!important;min-width:0!important;height:42px!important;margin:0!important}
  html body #view-teams .teams-club-filter{grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;height:42px!important;margin:0!important}
  html body #view-teams .teams-club-filter>span{display:none!important}
  html body #view-teams .teams-club-filter .club-picker,html body #view-teams .teams-club-filter .club-picker-button{width:100%!important;min-width:0!important;max-width:none!important;height:42px!important;min-height:42px!important}
  html body #view-teams .teams-club-filter .club-picker-button{justify-content:center!important;gap:7px!important;padding:0 10px!important}
  html body #view-teams #teamClubPickerButton>span{flex:0 1 auto!important;min-width:0!important;width:auto!important}
  html body #view-teams #teamClubPickerButton>i{position:static!important;flex:0 0 auto!important;margin:0!important}
  html body #view-teams .r643-transfer-toggle{grid-column:3!important;grid-row:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;max-width:none!important;height:42px!important;min-height:42px!important;margin:0!important;padding:5px 8px!important;font-size:10px!important;white-space:nowrap!important}
  html body #view-teams .team-actions{grid-column:4!important;grid-row:1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;gap:8px!important;width:100%!important;min-width:0!important;max-width:none!important;height:42px!important;margin:0!important}
  html body #view-teams .team-actions .button,html body #view-teams .team-actions .button.small{width:100%!important;min-width:0!important;max-width:none!important;height:42px!important;min-height:42px!important;margin:0!important;padding:5px 8px!important;white-space:nowrap!important;line-height:1.05!important}
}

@media (min-width:761px) and (max-width:1024px) and (orientation:portrait){
  html body #view-teams .team-actions{display:flex!important;align-items:stretch!important;justify-content:flex-end!important;gap:7px!important;width:100%!important;min-width:0!important;max-width:none!important;height:42px!important;margin:0!important}
  html body #view-teams .team-actions .button,html body #view-teams .team-actions .button.small{flex:0 1 168px!important;width:auto!important;min-width:132px!important;max-width:168px!important;height:40px!important;min-height:40px!important;padding:5px 7px!important}
  html body #view-teams .r643-transfer-toggle{height:40px!important;min-height:40px!important}
}

@media (min-width:761px) and (max-width:1366px){
  html body .tabs:not(.secondary-collapsed) #secondaryNav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;width:100%!important;max-height:none!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important;gap:8px!important}
  html body .tabs:not(.secondary-collapsed) #secondaryNav .tab.secondary{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;min-height:45px!important;white-space:nowrap!important}
}
