/* Weekly Results page -- ported from legacy's weekly_results_family_modern.css (the shared table shell,
   trimmed to just this page for now -- Projected Results/Alternate Picks/Scorecard will pick up their own
   share of it when they're restyled) and weekly_results_modern.css (this page's own light-blue zebra row and
   nav-button icons). */
.weeklyResultsPage .weeklyResultsTitle {
  font-size: 20px;
  font-weight: 700;
  color: var(--ptfg-navy);
  margin-bottom: 12px;
}

/* ---------- Nav buttons (PGA Leaderboard/Odds Checker/Live Predictive Model/Past Results/Weather) ---------- */

.weeklyResultsPage .navButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.weeklyResultsPage .navButtons .btn.ptfgButtonBlue {
  color: #fff;
  background-color: var(--ptfg-navy);
  border: none;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(11, 26, 103, 0.2);
  font-weight: 600;
  font-size: 13px;
}

.weeklyResultsPage .navButtons .btn.ptfgButtonBlue:hover {
  background-color: var(--ptfg-navy-dark);
  color: #fff;
}

.weeklyResultsPage .navButtons .btn.ptfgButtonBlue::before {
  margin-right: 5px;
}

.weeklyResultsPage .navButtons a[target="_pgaLeaderboard"]::before {
  content: "\1F3C6"; /* trophy */
}

.weeklyResultsPage .navButtons a[target="_oddsChecker"]::before {
  content: "\1F3B2"; /* die */
}

.weeklyResultsPage .navButtons a[target="_predictiveModel"]::before {
  content: "\1F4C8"; /* chart increasing */
}

.weeklyResultsPage .navButtons a[target="_pastResults"]::before {
  content: "\1F4DC"; /* scroll */
}

.weeklyResultsPage .navButtons a[target="_weather"]::before {
  content: "\26C5"; /* sun behind cloud */
}

/* ---------- Filter row (Round/Golfer Filter/Country Club Filter) -- same look as Standings' own controls row ---------- */

.weeklyResultsPage .weeklyResultsFilters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 12px;
}

.weeklyResultsPage .weeklyResultsFilterGroup label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  margin-bottom: 2px;
}

.weeklyResultsPage .weeklyResultsFilterGroup select {
  border: 1px solid var(--ptfg-input-border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
}

/* Shared padding/spacing for every callout box on this page family (the "projected earnings unavailable"
   danger box, and -- on Projected Results -- the earnings disclaimer and Pick 3 Classic subs-not-yet-
   available notes). Color comes from whichever .calloutInfo/.calloutDanger/etc. class is paired with this. */
.weeklyResultsPage .weeklyResultsCallout {
  max-width: 800px;
  padding: 10px 16px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- Table shell: rounded-corner clip wrapper (outer clips, inner scrolls horizontally) ---------- */

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

.weeklyResultsPage .weeklyResultsScroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.weeklyResultsPage .weeklyResults table {
  float: none;
  width: auto;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

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

.weeklyResultsPage #weeklyResultsTable thead tr#header td {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.2px;
  padding: 3px 4px;
  border: 1px solid var(--ptfg-navy-dark);
  white-space: nowrap;
  cursor: pointer;
}

.weeklyResultsPage #weeklyResultsTable thead tr#header td:hover {
  background-color: var(--ptfg-navy-dark);
}

/* Sort direction indicator -- data-sort-direction is set by the sortable-table Stimulus controller on
   whichever header was last clicked. Legacy's own green/red arrowUp.gif/arrowDown.gif read poorly against
   this navy header, so white instead -- same shape, just legible here. */
.weeklyResultsPage #weeklyResultsTable thead tr#header td[data-sort-direction]::after {
  margin-left: 4px;
  color: #fff;
}

.weeklyResultsPage #weeklyResultsTable thead tr#header td[data-sort-direction="asc"]::after {
  content: "\25B2"; /* up triangle */
}

.weeklyResultsPage #weeklyResultsTable thead tr#header td[data-sort-direction="desc"]::after {
  content: "\25BC"; /* down triangle */
}

.weeklyResultsPage #weeklyResultsTable thead tr#header td:first-child {
  border-top-left-radius: 10px;
}

.weeklyResultsPage #weeklyResultsTable thead tr#header td:last-child {
  border-top-right-radius: 10px;
}

/* Starter/Sub/Mulligan/NSE header chips -- color-code which kind of pick each results column holds. */
.weeklyResultsPage #weeklyResultsTable thead tr#header td.weeklyResultsSub {
  background-color: var(--ptfg-green);
}

.weeklyResultsPage #weeklyResultsTable thead tr#header td.weeklyResultsMulligan {
  background-color: var(--ptfg-red);
}

.weeklyResultsPage #weeklyResultsTable thead tr#header td.weeklyResultsNetSubEffect {
  color: #c9ccd9;
}

.weeklyResultsPage #weeklyResultsTable tbody td {
  border: 1px solid var(--ptfg-border);
  border-color: var(--ptfg-blue-row-border);
  padding: 2px 4px;
  font-size: 11px;
  white-space: nowrap;
}

.weeklyResultsPage #weeklyResultsTable tbody tr.weeklyResultsRow td {
  background-color: #d9eaf7;
}

.weeklyResultsPage #weeklyResultsTable tbody tr.whiteRow td {
  background-color: #fff;
}

/* Alternate Picks uses this tan zebra stripe (matching legacy's .standingsRow) instead of the blue
   .weeklyResultsRow used above, so it still reads as visually distinct from Weekly Results at a glance. */
.weeklyResultsPage #weeklyResultsTable tbody tr.standingsRow td {
  background-color: #f2ecd4;
}

/* Projected Results tints rows per round (R1/R2/R3) instead of the blue .weeklyResultsRow above, matching
   legacy's own choice to visually tie the page to whichever round's projected data it's currently showing --
   same treatment (and same colors) as Golfer Earnings' round tinting. */
.weeklyResultsPage #weeklyResultsTable tbody tr.projectedResultsRowR1 td {
  background-color: var(--ptfg-bg-green-tint);
}

.weeklyResultsPage #weeklyResultsTable tbody tr.projectedResultsRowR2 td {
  background-color: #fdf6e0;
}

.weeklyResultsPage #weeklyResultsTable tbody tr.projectedResultsRowR3 td {
  background-color: #fdece0;
}

.weeklyResultsPage #weeklyResultsTable 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. */
.weeklyResultsPage #weeklyResultsTable tbody tr.highlightRow td {
  background-color: var(--ptfg-highlight);
}

.weeklyResultsPage #weeklyResultsTable td.number {
  text-align: right;
}

.weeklyResultsPage #weeklyResultsTable td.centerText {
  text-align: center;
}

.weeklyResultsPage #weeklyResultsTable 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;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
