/* Scorecard page (Individual/Majors/FedEx Cup/Commissioner's Cup Scorecard all render this same
   individual.html.erb template; Best Ball has its own similarly-shaped best_ball.html.erb) -- ported from
   legacy's scorecard_modern.css. Reuses .weeklyResultsTitle/.weeklyResultsFilters/.weeklyResultsFilterGroup/
   .weeklyResultsCallout/.weeklyResults/.weeklyResultsScroll/#weeklyResultsTable from weekly_results.css (the
   page wraps in both .weeklyResultsPage and .scorecardPage) -- only what's unique to this page (the Standings
   Position strip, the scorecardRow zebra tint, the totals row, the empty state) lives here.

   The Standings Position strip rules below are also selected under .weeklyLineupPage and
   .weeklyLineupAllTournamentsPage -- Weekly Lineup and Weekly Lineup All Tournaments both render the exact
   same _standings_position partial (see weekly_lineup/choose_1/_index.html.erb, choose_3/_index.html.erb, and
   weekly_lineup_all_tournaments/index.html.erb), matching legacy where all three pages render the identical
   /shared/standings_position partial. */

.scorecardPage .standingsPosition,
.weeklyLineupPage .standingsPosition,
.weeklyLineupAllTournamentsPage .standingsPosition {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--ptfg-border);
  width: fit-content;
  max-width: 100%;
}

.scorecardPage .standingsPositionLabel,
.weeklyLineupPage .standingsPositionLabel,
.weeklyLineupAllTournamentsPage .standingsPositionLabel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--ptfg-navy);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: center;
  padding: 4px 8px;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.scorecardPage .standingsPositionBox,
.weeklyLineupPage .standingsPositionBox,
.weeklyLineupAllTournamentsPage .standingsPositionBox {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  /* A translucent black line (rather than the usual --ptfg-border light gray) so the divider still reads
     against every medal color this strip can show, not just the light backgrounds. */
  border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.scorecardPage .standingsPositionBox:last-child,
.weeklyLineupPage .standingsPositionBox:last-child,
.weeklyLineupAllTournamentsPage .standingsPositionBox:last-child {
  border-right: none;
}

/* This page's zebra stripe -- same light blue as Weekly Results' own modern tint, kept as its own name so
   choose_1/choose_3 scorecard tables aren't accidentally scoped by .weeklyResultsPage's own .weeklyResultsRow
   rule (this page uses the shared #weeklyResultsTable id too, but a different zebra class). */
.scorecardPage #weeklyResultsTable tbody tr.scorecardRow td {
  background-color: #d9eaf7;
}

.scorecardPage #weeklyResultsTable tbody td {
  border-color: var(--ptfg-blue-row-border);
}

/* Matches the shared #weeklyResultsTable tfoot td rule's own specificity (weekly_results.css) -- that rule's
   generous padding/line-height is sized for the multi-line notes row sharing this <tfoot>, and otherwise wins
   the cascade tie here too, leaving this single-line totals row oversized. It also rounds every tfoot cell's
   bottom corners for the "card" look, assuming the tfoot has only one (last) row -- Scorecard's tfoot has this
   totals row ABOVE the notes row, so those bottom corners need resetting back to square here; only the notes
   row (truly last) should still be rounded. */
.scorecardPage #weeklyResultsTable tfoot tr.scorecardTotalsRow td {
  background: var(--ptfg-bg-hover);
  border: 1px solid var(--ptfg-border);
  border-radius: 0;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ptfg-navy);
  white-space: nowrap;
}

.scorecardPage .scorecardTotalsLabel {
  text-align: right;
}

.scorecardPage .scorecardEmptyState {
  max-width: 500px;
}

/* Best Ball reuses the exact same #weeklyResultsTable/scorecardRow shell as choose_1/choose_3 -- matches
   legacy's own scorecard/_team.rhtml, which all five scorecard variants (Individual/Majors/FedEx
   Cup/Commissioner's Cup/Best Ball) shared. Yellow (not green) matches legacy's .bestIndividualScore exactly --
   the same color used for .weeklyResultsWinningGolfer elsewhere, so "yellow highlight" reads consistently as
   this app's one visual language for "the winning/best entry in a comparison".
   Selector matches the zebra-row rule's own specificity (tbody tr.<class> td) rather than just "td.highlightCell"
   -- otherwise the zebra rule's higher specificity silently wins and this highlight never shows. */
.scorecardPage #weeklyResultsTable tbody tr td.highlightCell {
  background: #ffff00;
  font-weight: 700;
}
