/* Modernized Commish "Assign Season & Segment Prizes" page. Scoped under .modernPrizesSeasonPage so it never
   affects the public Prizes tab (app/views/prizes_view) or other commish prize pages (Other Prizes, etc.)
   that reuse the same .prizesAdmin/.prizesSeason/.prizesSegment/.prizesHeader classes. Structure/IDs used by
   the sortable/AJAX/in-place-edit JS (prototype.js) are left untouched -- only colors/spacing/borders change. */

.modernPrizesSeasonPage #prizesPageTile {
  color: #0b1a67;
  font-size: 22px;
  margin-bottom: 16px;
}

.modernPrizesSeasonPage .prizesAdminBusy {
  font-size: 13px;
  color: #6b7280;
  font-weight: 400;
}

.modernPrizesSeasonPage .alert-warning {
  background: #fff8e8;
  border: none;
  border-left: 4px solid #e8a83c;
  border-radius: 6px;
  color: #6b4d10;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.6;
}

.modernPrizesSeasonPage .alert-warning ol {
  margin-top: 6px;
}

.modernPrizesSeasonPage .prizesSectionBottomSpacer {
  margin-bottom: 22px;
}

.modernPrizesSeasonPage .prizesAdminHeader {
  color: #0b1a67;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
}

.modernPrizesSeasonPage .prizesSeason,
.modernPrizesSeasonPage .prizesSegment {
  display: inline-block;
  width: fit-content;
  border: 1px solid #e2e6f2;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(11, 26, 103, 0.06);
  padding: 14px 16px 16px;
  background: #fff;
}

.modernPrizesSeasonPage .prizesSeason table,
.modernPrizesSeasonPage .prizesSegment table {
  border-collapse: collapse;
  width: 155px;
}

.modernPrizesSeasonPage .prizesSeason thead td,
.modernPrizesSeasonPage .prizesSegment thead td {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 6px 8px;
}

.modernPrizesSeasonPage .prizesSeason thead td:first-child,
.modernPrizesSeasonPage .prizesSegment thead td:first-child {
  border-radius: 4px 0 0 4px;
}

.modernPrizesSeasonPage .prizesSeason thead td:last-child,
.modernPrizesSeasonPage .prizesSegment thead td:last-child {
  border-radius: 0 4px 4px 0;
}

/* Column 1 (delete X) should be no wider than its content. Column 3 is an always-empty spacer <td/> in the
   underlying markup (kept so the sortable/ordinalize JS, which indexes cells by position, doesn't break) --
   collapse it visually instead of removing it. The header row has its own inline width/&nbsp; on these same
   columns, so !important is needed to win over that inline style. */
.modernPrizesSeasonPage .prizesSeason td:first-child,
.modernPrizesSeasonPage .prizesSegment td:first-child,
.modernPrizesSeasonPage .prizesSeason thead td:first-child,
.modernPrizesSeasonPage .prizesSegment thead td:first-child {
  width: 1% !important;
  padding: 6px 4px !important;
}

.modernPrizesSeasonPage .prizesSeason td:nth-child(3),
.modernPrizesSeasonPage .prizesSegment td:nth-child(3) {
  width: 0 !important;
  padding: 0 !important;
  border: none !important;
  font-size: 0;
}

.modernPrizesSeasonPage .prizesSeason td:nth-child(2),
.modernPrizesSeasonPage .prizesSegment td:nth-child(2) {
  width: 1%;
  white-space: nowrap;
  text-align: center;
}

.modernPrizesSeasonPage .prizesSeason thead td:nth-child(4),
.modernPrizesSeasonPage .prizesSegment thead td:nth-child(4) {
  text-align: center !important;
}

.modernPrizesSeasonPage .prizesSeason tbody td:nth-child(4),
.modernPrizesSeasonPage .prizesSegment tbody td:nth-child(4) {
  width: 60px;
  text-align: center;
}

/* admin.css has a legacy ".prizesAdmin span { float: right; margin-right: 30px; }" rule that catches every
   span inside this page, including the in_place_editor_field spans here -- a floated element always computes
   to display:block and ignores the td's text-align, which is why the Prize column looked left-justified.
   Cancel the float/margin for these specific spans so the centering above actually takes effect. */
.modernPrizesSeasonPage .prizesSeason tbody td:nth-child(4) .in_place_editor_field,
.modernPrizesSeasonPage .prizesSegment tbody td:nth-child(4) .in_place_editor_field {
  float: none;
  margin-right: 0;
  display: inline-block;
}

.modernPrizesSeasonPage .prizesSeason tbody tr,
.modernPrizesSeasonPage .prizesSegment tbody tr {
  border-bottom: 1px solid #f0f2f8;
  cursor: move;
}

.modernPrizesSeasonPage .prizesSeason tbody tr:hover,
.modernPrizesSeasonPage .prizesSegment tbody tr:hover {
  background-color: #f4f6fb;
}

.modernPrizesSeasonPage .prizesSeason tbody td,
.modernPrizesSeasonPage .prizesSegment tbody td {
  padding: 6px 4px;
  font-size: 13px;
}

.modernPrizesSeasonPage .prizesSeason tbody td a,
.modernPrizesSeasonPage .prizesSegment tbody td a {
  display: inline-block;
  color: #c30900;
  font-weight: 700;
  text-decoration: none;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
}

.modernPrizesSeasonPage .prizesSeason tbody td a:hover,
.modernPrizesSeasonPage .prizesSegment tbody td a:hover {
  background-color: #fdecea;
}

/* Override the delete-X link styling above for the in_place_editor's "cancel" link specifically --
   it's not a delete action, so it shouldn't look like one. Matches the Other Prizes page's cancel link. */
.modernPrizesSeasonPage .prizesSeason tbody td a.editor_cancel_link,
.modernPrizesSeasonPage .prizesSegment tbody td a.editor_cancel_link {
  display: inline-block;
  color: #6b7280;
  font-weight: 400;
  width: auto;
  height: auto;
  line-height: normal;
  border-radius: 0;
  margin-left: 10px;
  text-decoration: none;
}

.modernPrizesSeasonPage .prizesSeason tbody td a.editor_cancel_link:hover,
.modernPrizesSeasonPage .prizesSegment tbody td a.editor_cancel_link:hover {
  background-color: transparent;
  color: #374151;
  text-decoration: underline;
}

.modernPrizesSeasonPage input[type="text"] {
  border: 1px solid #cfd4e0;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 13px;
  width: 90px;
}

.modernPrizesSeasonPage input[type="text"]:focus {
  outline: none;
  border-color: #1c5bc4;
  box-shadow: 0 0 0 3px rgba(28, 91, 196, 0.15);
}

.modernPrizesSeasonPage input[type="submit"] {
  border: 1px solid #0b1a67;
  border-radius: 6px;
  background: #0b1a67;
  color: #fff;
  font-weight: 600;
  padding: 5px 12px;
  margin-left: 6px;
}

.modernPrizesSeasonPage input[type="submit"]:disabled {
  background: #cfd4e0;
  border-color: #cfd4e0;
  color: #8b93a7;
}
