/* Commish "Prizes" page family -- ported from legacy's commish_prizes_season_modern.css,
   commish_prizes_other_modern.css, commish_prizes_tournaments_modern.css, and
   commish_prizes_tournament_edit_modern.css. Four sub-pages, each scoped under its own root class so none of
   them leak into each other or into the public Prizes tab, which reuses some of the same table/card classes. */

.commishPrizesFooterLinks {
  margin-top: 18px;
}

.commishPrizesAdminHeader {
  color: var(--ptfg-navy);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.commishPrizesInstructions {
  max-width: 600px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.commishPrizesInstructions ol {
  margin: 6px 0 0;
  padding-left: 18px;
}

.commishPrizesSeasonOverWarning {
  max-width: 600px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.commishPrizesReadOnlyNotice {
  max-width: 600px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

/* -------------------- Season & Segment Prizes (index) -------------------- */

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

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

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

.commishPrizesPeriods {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.commishPrizesPeriodCard {
  width: fit-content;
  border: 1px solid var(--ptfg-border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(11, 26, 103, 0.06);
  padding: 14px 16px 16px;
  background: #fff;
}

.commishPrizesPeriodTable {
  border-collapse: collapse;
  width: 190px;
}

.commishPrizesPeriodTable thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 6px 4px;
  color: var(--ptfg-navy);
  background: var(--ptfg-bg-tint);
  text-align: left;
}

.commishPrizesPeriodTable thead th:first-child {
  width: 1%;
  border-radius: 4px 0 0 4px;
}

.commishPrizesPeriodTable thead th:last-child {
  border-radius: 0 4px 4px 0;
  text-align: center;
}

.commishPrizesPeriodTable tbody tr {
  border-bottom: 1px solid #f0f2f8;
}

.commishPrizesPeriodTable tbody tr:hover {
  background-color: var(--ptfg-bg-tint);
}

.commishPrizesPeriodTable tbody td {
  padding: 6px 4px;
  font-size: 13px;
}

.commishPrizesDeleteCell {
  width: 1%;
}

.commishPrizesPlaceCell {
  width: 1%;
  white-space: nowrap;
  text-align: center;
}

.commishPrizesDescriptionCell {
  text-align: center;
}

.commishPrizesDeleteLink {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ptfg-red);
  font-weight: 700;
  font-size: 12px;
  padding: 0;
}

.commishPrizesDeleteLink:hover {
  background-color: var(--ptfg-bg-red-tint);
}

.commishPrizesNewForm {
  margin-top: 10px;
}

.commishPrizesNewForm input[type="text"] {
  border: 1px solid var(--ptfg-input-border);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 13px;
  width: 120px;
}

.commishPrizesNewForm input[type="text"]:focus {
  outline: none;
  border-color: var(--ptfg-info);
  box-shadow: 0 0 0 3px rgba(28, 91, 196, 0.15);
}

.commishPrizesNewForm input[type="submit"] {
  border: 1px solid var(--ptfg-navy);
  border-radius: 6px;
  background: var(--ptfg-navy);
  color: #fff;
  font-weight: 600;
  padding: 5px 12px;
  margin-left: 6px;
}

.commishPrizesNewForm input[type="submit"]:disabled {
  background: var(--ptfg-input-border);
  border-color: var(--ptfg-input-border);
  color: #8b93a7;
}

/* Click-to-edit "OK"/"Cancel" links injected by the prize-description Stimulus controller. */
.commishPrizesPeriodCard a {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  margin-left: 8px;
}

.commishPrizesPeriodCard a:first-of-type {
  color: var(--ptfg-green);
}

.commishPrizesPeriodCard a:last-of-type {
  color: var(--ptfg-red);
}

.commishPrizesPeriodCard a:hover {
  text-decoration: underline;
}

.commishPrizesPeriodCard .jsInPlaceEditorInput {
  border: 1px solid var(--ptfg-input-border);
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 13px;
  width: 100px;
}

/* -------------------- Other Prizes -------------------- */

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

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

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

.commishPrizesCategories {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.commishPrizesCategoryCard {
  width: fit-content;
  border: 1px solid var(--ptfg-border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(11, 26, 103, 0.06);
  padding: 14px 16px 16px;
  background: #fff;
}

.commishPrizesCategoryTable {
  border-collapse: collapse;
  width: 190px;
}

.commishPrizesCategoryTable thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 6px 10px;
  color: var(--ptfg-navy);
  background: var(--ptfg-bg-tint);
  text-align: left;
}

.commishPrizesCategoryTable thead th:first-child {
  border-radius: 4px 0 0 4px;
  width: 60px;
}

.commishPrizesCategoryTable thead th:last-child {
  border-radius: 0 4px 4px 0;
  text-align: center;
}

.commishPrizesCategoryTable tbody tr {
  border-bottom: 1px solid #f0f2f8;
}

.commishPrizesCategoryTable tbody tr:hover {
  background-color: var(--ptfg-bg-tint);
}

.commishPrizesCategoryTable tbody td {
  padding: 6px 10px;
  font-size: 13px;
}

.commishPrizesCategoryCard a {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  margin-left: 8px;
}

.commishPrizesCategoryCard a:first-of-type {
  color: var(--ptfg-green);
}

.commishPrizesCategoryCard a:last-of-type {
  color: var(--ptfg-red);
}

.commishPrizesCategoryCard a:hover {
  text-decoration: underline;
}

.commishPrizesCategoryCard .jsInPlaceEditorInput {
  border: 1px solid var(--ptfg-input-border);
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 13px;
  width: 100px;
}

.commishPrizesAdminNote {
  font-size: 11px;
  color: var(--ptfg-text-muted);
  margin-top: 8px;
}

/* -------------------- Weekly Tournament Prizes (tournaments list) -------------------- */

.commishPrizesTournamentsPage .calloutDanger {
  margin-bottom: 14px;
}

.commishPrizesTournamentsPage .tournamentsTableWrap {
  margin-top: 4px;
  border: 1px solid var(--ptfg-border);
  border-radius: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.commishPrizesTournamentsPage .tournamentsTableWrap table {
  width: auto;
  margin: 0;
}

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

.commishPrizesTournamentsPage #tournamentsTable thead tr#header td {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-color: var(--ptfg-navy);
  text-align: center;
  white-space: nowrap;
}

.commishPrizesTournamentsPage #tournamentsTable tbody td {
  border-color: var(--ptfg-border);
  padding: 5px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.commishPrizesTournamentsPage #tournamentsTable tbody tr.shadedRow td {
  background-color: var(--ptfg-navy-tint);
}

.commishPrizesTournamentsPage #tournamentsTable tbody tr.whiteRow td {
  background-color: #fff;
}

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

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

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

.commishPrizesTournamentsPage #tournamentsTable tfoot td {
  background: var(--ptfg-bg-tint);
  border: none;
  padding: 8px;
  font-size: 12px;
  color: var(--ptfg-text-muted);
}

.commishPrizesTournamentsPage .actionLink a {
  color: var(--ptfg-navy);
  font-weight: 600;
  text-decoration: none;
}

.commishPrizesTournamentsPage .actionLink a:hover {
  text-decoration: underline;
}

/* -------------------- Edit Tournament -------------------- */

.commishPrizesTournamentEditPage #pageTitle {
  margin-bottom: 18px;
}

.commishPrizesTournamentEditPage .calloutDanger {
  max-width: 600px;
  margin-bottom: 16px;
}

.commishPrizesTournamentEditPage .row {
  margin: 0;
}

.commishPrizesTournamentEditPage .col-sm-10 {
  padding-left: 0;
  padding-right: 0;
  max-width: 600px;
  width: 100%;
}

.commishPrizesTournamentEditPage .card-header {
  max-width: 600px;
  width: 100%;
  padding: 10px 18px;
  margin-top: 14px;
}

.commishPrizesTournamentEditPage .card-header:first-child {
  margin-top: 0;
}

.commishPrizesTournamentEditPage .ptfgCardHeader {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ptfg-navy);
}

.commishPrizesTournamentEditPage .card {
  max-width: 600px;
  width: 100%;
  margin-bottom: 0;
}

.commishPrizesTournamentEditPage .card-block {
  padding: 16px 18px;
}

.commishPrizesTournamentEditPage .form-control-label {
  display: block;
  color: #333;
  margin-bottom: 6px;
}

.commishPrizesTournamentEditPage .applyToAllTournamentsRow {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 10px 0;
}

.commishPrizesTournamentEditPage .applyToAllTournamentsRow input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 3px;
}

.commishPrizesTournamentEditPage .applyToAllTournamentsRow label.form-control-label {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.commishPrizesTournamentEditPage input.form-control {
  max-width: 220px;
  margin-bottom: 12px;
}

.commishPrizesTournamentEditPage select.form-control {
  max-width: 240px;
  margin-bottom: 8px;
}

.commishPrizesTournamentEditPage .text-muted {
  display: block;
  color: var(--ptfg-text-muted);
  font-size: 12px;
}

.commishPrizesTournamentEditSubmit {
  margin-top: 16px;
  max-width: 300px;
}
