/* Schedule / Commissioner's Cup Schedule pages -- ported from legacy's schedule_modern.css, built on top of
   the base .schedule/.scheduleCallout/.scheduleTooltip/.note/.centerText/.number/.tableHeaderBackground
   classes (application.css) shared with other tournament-table pages. */
.schedulePage #pageTitle {
  margin: 0;
  font-size: 20px;
}

.schedulePage .year-picker {
  width: fit-content;
  margin: 6px 0 16px;
}

.schedulePage .year-picker .input-group-text {
  font-weight: 700;
}

.schedulePage .year-picker select {
  width: 70px;
  flex: 0 0 auto;
}

/* The base .schedule table floats by default (application.css); reset that so it sits naturally inside the
   rounded, bordered wrapper below instead of floating out of it. Sized to fit its content rather than
   stretching full-width, which otherwise forces every column to spread out with awkward gaps on wide
   viewports; overflow-x lets a still-too-wide table scroll horizontally within the wrapper instead of
   clipping columns off entirely. */
.scheduleTableWrap {
  display: block;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--ptfg-border);
  border-radius: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.scheduleTableWrap table {
  float: none;
  width: auto;
  margin: 0;
}

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

#scheduleTable thead tr#header td {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.3px;
  padding: 4px;
  border-color: var(--ptfg-navy);
  white-space: normal;
}

#scheduleTable tbody td {
  border-color: #b9c2dc;
  padding: 3px 4px;
  font-size: 11px;
}

#scheduleTable tbody tr.scheduleRow1 td {
  background-color: var(--ptfg-bg-row-shade);
}

#scheduleTable tbody tr.highlightCurrentTournamentRow td {
  background-color: var(--ptfg-orange);
}

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

#scheduleTable tbody tr.highlightCurrentTournamentRow:hover td {
  background-color: var(--ptfg-orange);
}

.scheduleCallout {
  border-radius: 4px;
}

a.scheduleTooltip:hover span {
  border-radius: 6px;
  border: 1px solid var(--ptfg-border);
  box-shadow: 0 4px 12px rgba(11, 26, 103, 0.15);
}

#scheduleTable tfoot .note {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ptfg-text-muted);
  white-space: normal;
}

#scheduleTable tfoot tr#header {
  background: transparent;
}

#scheduleTable tfoot td {
  background: var(--ptfg-bg-tint);
  border: none;
  padding: 10px 8px 18px;
}
