/* Tables/results only. Match card styling lives in competition/match-cards.css. */
body[data-page="tournament-view"] main#tfpCompetitionView.league-page #results .league-results-scroll {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

body[data-page="tournament-view"] main#tfpCompetitionView.league-page #results
.league-results-scroll > table.league-results-matrix {
  width: max-content !important;
  min-width: 0 !important;
  max-width: none !important;
  table-layout: fixed !important;
}

body[data-page="tournament-view"] main#tfpCompetitionView.league-page #results
.league-results-matrix :is(thead th:not(.league-results-corner), tbody td.league-results-cell) {
  width: 116px !important;
  min-width: 116px !important;
  max-width: 116px !important;
  box-sizing: border-box !important;
}

body[data-page="tournament-view"] main#tfpCompetitionView.league-page #results
.league-results-matrix :is(thead th.league-results-corner, tbody th.league-results-player) {
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  box-sizing: border-box !important;
}

@media (min-width: 800px){
body[data-page="tournament-view"] main#tfpCompetitionView.league-page #results
  .league-results-scroll {
    width: 100% !important;
    overflow-x: auto !important;
  }

body[data-page="tournament-view"] main#tfpCompetitionView.league-page #results
  .league-results-scroll > table.league-results-matrix {
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    table-layout: auto !important;
  }

body[data-page="tournament-view"] main#tfpCompetitionView.league-page #results
  .league-results-matrix :is(thead th:not(.league-results-corner), tbody td.league-results-cell) {
    width: auto !important;
    min-width: 130px !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

body[data-page="tournament-view"] main#tfpCompetitionView.league-page #results
  .league-results-matrix :is(thead th.league-results-corner, tbody th.league-results-player) {
    width: 20% !important;
    min-width: 175px !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

body[data-page="tournament-view"] main#tfpCompetitionView.league-page #results
  .league-results-matrix thead th:not(.league-results-corner) :is(.tfp-pair-stack,.tfp-pair-member,a,span) {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }
}
