/* Modernized League Career page. Modeled directly after the Statistics page (statistics_modern.css), which
   renders the exact same #statsTable markup (_stats_table.rhtml / _stats_table_pick_3_classic.rhtml /
   _stats_table_let_it_ride.rhtml partials are shared between the two pages) -- scoped under its own
   .modernLeagueCareerPage class (rather than reusing .modernStatisticsPage directly) so the two pages stay
   decoupled, same as how the Signup and Private Signup pages share near-identical CSS under two separate wrapper
   classes. Table structure/IDs used by the sortable JS (sortable_us.js) are left untouched -- only
   colors/spacing/borders change. */

.modernLeagueCareerPage #pageTitle {
  margin-bottom: 6px;
}

.modernLeagueCareerPage .stats {
  margin-top: 0;
}

/* Sizing (fit-content) and scrolling (overflow-x auto) are split across two nested elements rather than
   combined on one -- Firefox doesn't shrink a fit-content box to its content's width when overflow is also set
   on that same box (it stays stretched to the container instead), even though Chromium/WebKit handle it fine.
   The outer .stats box only sizes/borders; the inner .statsScroll only scrolls. Same technique as Statistics. */
.modernLeagueCareerPage .stats {
  display: block;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #e2e6f2;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}

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

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

.modernLeagueCareerPage #statsTable thead tr#header {
  background-color: #0b1a67;
}

.modernLeagueCareerPage #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 #24358c;
  white-space: nowrap;
  text-align: center;
}

.modernLeagueCareerPage #statsTable thead tr#header td a.sortheader {
  color: #fff;
}

.modernLeagueCareerPage #statsTable thead tr#header td a.sortheader:hover {
  color: #dde3f2;
}

/* Two stacked header rows (column-group labels like "Weekly Finishes", then the actual sortable column names)
   both carry id="header" -- 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. Same as Statistics. */
.modernLeagueCareerPage #statsTable thead tr#header:first-child {
  background-color: #dde3f2;
}

.modernLeagueCareerPage #statsTable thead tr#header:first-child td {
  color: #0b1a67;
  border-color: #c7cfe6;
  font-size: 9px;
  letter-spacing: 0.5px;
}

.modernLeagueCareerPage #statsTable thead tr#header:first-child td a.sortheader {
  color: #0b1a67;
}

.modernLeagueCareerPage #statsTable thead tr#header:first-child td a.sortheader:hover {
  color: #1c3f66;
}

.modernLeagueCareerPage #statsTable tbody td {
  border: 1px solid #e2e6f2;
  padding: 5px 5px;
  font-size: 12px;
}

.modernLeagueCareerPage #statsTable tbody tr.statsRow td {
  background-color: #f4f6fb;
}

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

.modernLeagueCareerPage #statsTable tbody tr:hover td {
  background-color: #eef1fa;
}

.modernLeagueCareerPage #statsTable tbody tr.highlightRow td {
  background-color: #ddc5f7;
}

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

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

.modernLeagueCareerPage #statsTable tbody td a {
  color: #0b1a67;
  font-weight: 600;
  text-decoration: none;
}

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

.modernLeagueCareerPage #statsTable tfoot td {
  background: #f8f9fc;
  border: none;
  padding: 10px 8px 4px;
  font-size: 11px;
  color: #6b7280;
  white-space: normal;
  line-height: 1.6;
}

.modernLeagueCareerPage .statsNote {
  font-size: 11px;
  color: #6b7280;
}

/* Multiple-formats notice (shown only to the handful of leagues that have switched league formats over the
   years) -- restyled from Bootstrap's flat .alert-success to the light-tint + left-border-accent callout style
   used elsewhere in the app (e.g. home_modern.css's .homeNoteCallout). */
.modernLeagueCareerPage .alert.alert-success {
  max-width: 750px;
  margin-top: 4px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #eaf7ec;
  border: none;
  border-left: 4px solid #0b6726;
  border-radius: 6px;
  color: #1c4a28;
  font-size: 13px;
  line-height: 1.6;
}
