/* Statistics and League Career pages -- ported from legacy's statistics_modern.css/league_career_modern.css,
   which were near-identical copies of each other (both render the exact same #statsTable markup: the
   statistics/{_stats_table,choose_1/_stats_table,choose_3/_stats_table_pick_3_classic,
   choose_3/_stats_table_let_it_ride} partials are shared by both pages). Rather than duplicate that file,
   both pages here share one .standingsPage wrapper (already used by Standings/ITM Standings, which have the
   same Year/Country Club filter row) plus this one #statsTable-scoped file. */

/* League Career's "multiple formats played" note (a Bootstrap alert in legacy, ported to this app's own
   callout convention like every other page's boxed note). */
.standingsPage .statsCallout {
  max-width: 750px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.6;
}

.standingsPage .stats {
  display: block;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--ptfg-border);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}

.standingsPage .statsScroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.standingsPage .stats table {
  float: none;
  width: auto;
  margin: 0;
  border-collapse: collapse;
}

.standingsPage #statsTable thead tr#header {
  background-color: var(--ptfg-navy);
}

.standingsPage #statsTable thead tr#header td {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.3px;
  padding: 5px 4px;
  border: 1px solid var(--ptfg-navy-dark);
  white-space: nowrap;
  text-align: center;
}

/* Two stacked header rows (column-group labels like "Weekly Finishes"/"Team"/"Links", then the actual
   sortable column names below them) -- lighten the top (group-label) row so it reads as a distinct category
   strip above the main navy sort-header row instead of blending into it. Only the second row's cells carry
   data-action (they're the only ones that are actually sortable -- a colspan group label isn't a single
   column to sort by). */
.standingsPage #statsTable thead tr#header:first-child {
  background-color: var(--ptfg-navy-tint);
}

.standingsPage #statsTable thead tr#header:first-child td {
  color: var(--ptfg-navy);
  border-color: #c7cfe6;
  font-size: 9px;
  letter-spacing: 0.5px;
}

.standingsPage #statsTable thead tr#header td[data-action]:hover {
  background-color: var(--ptfg-navy-dark);
}

.standingsPage #statsTable thead tr#header td[data-sort-direction]::after {
  margin-left: 4px;
  color: #fff;
}

.standingsPage #statsTable thead tr#header td[data-sort-direction="asc"]::after {
  content: "\25B2";
}

.standingsPage #statsTable thead tr#header td[data-sort-direction="desc"]::after {
  content: "\25BC";
}

.standingsPage #statsTable tbody td {
  border: 1px solid var(--ptfg-border);
  padding: 2px 5px;
  font-size: 12px;
  white-space: nowrap;
}

.standingsPage #statsTable tbody tr.statsRow td {
  background-color: var(--ptfg-bg-row-shade);
}

.standingsPage #statsTable tbody tr.whiteRow td {
  background-color: #fff;
}

.standingsPage #statsTable tbody tr:hover td {
  background-color: var(--ptfg-bg-hover);
}

/* Redeclared after the zebra-row rules above (same selector specificity, later in the cascade) so the
   current-user highlight always wins regardless of which zebra color the row happens to be on. */
.standingsPage #statsTable tbody tr.highlightRow td {
  background-color: var(--ptfg-highlight);
}

.standingsPage #statsTable td.number {
  text-align: right;
}

.standingsPage #statsTable td.centerText {
  text-align: center;
}

.standingsPage #statsTable tbody td a {
  color: var(--ptfg-navy);
  font-weight: 600;
  text-decoration: none;
}

.standingsPage #statsTable tbody td a:hover {
  text-decoration: underline;
}

.standingsPage #statsTable tfoot td {
  background: var(--ptfg-bg-tint);
  border: 1px solid var(--ptfg-border);
  padding: 10px 8px 4px;
  font-size: 11px;
  color: var(--ptfg-text-muted);
  white-space: normal;
  line-height: 1.6;
}

.standingsPage #statsTable tfoot tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}

.standingsPage #statsTable tfoot tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

.standingsPage .statsNote {
  font-size: 11px;
  color: var(--ptfg-text-muted);
}
