/* Commish "Administer Teams" pages -- ported from legacy's commish_teams_modern.css. The list (index), the
   New/Edit Team form, the Delete confirmation page, the Payment Transaction Details page, and the Prizes
   Report page. Best Ball and Payment Txn ID columns render only for leagues that use them (see
   Commish::TeamsController). */

/* ---------- Teams list (index) ---------- */

.commishTeamsPage #pageTitle {
  margin-bottom: 12px;
}

.commishTeamsPage .commishTeamsNote {
  max-width: 700px;
  margin-bottom: 16px;
  padding: 10px 16px;
}

.commishTeamsPage .commishTeamsAdminNote {
  color: var(--ptfg-red);
  font-weight: 600;
}

.commishTeamsPage .commishTeamsYearPicker {
  margin-bottom: 16px;
  font-size: 13px;
}

.commishTeamsPage .commishTeamsYearPicker label {
  font-weight: 600;
  color: #333;
  margin-right: 8px;
}

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

.commishTeamsPage .commishTeamsTableWrap {
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--ptfg-border);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

.commishTeamsPage #commishTeamsTable {
  width: auto;
  margin: 0;
  border-collapse: collapse;
  white-space: nowrap;
}

.commishTeamsPage #commishTeamsTable thead th {
  background-color: var(--ptfg-navy);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.3px;
  text-align: center;
  padding: 6px 10px;
  border: 1px solid var(--ptfg-navy-dark);
}

.commishTeamsPage #commishTeamsTable tbody td {
  border: 1px solid var(--ptfg-border);
  padding: 4px 10px;
  font-size: 13px;
}

.commishTeamsPage #commishTeamsTable tbody tr.shadedRow td {
  background-color: var(--ptfg-bg-row-shade);
}

.commishTeamsPage #commishTeamsTable tbody tr.whiteRow td {
  background-color: #fff;
}

.commishTeamsPage #commishTeamsTable tbody tr.unpaid td {
  background-color: #f7c8c2;
  color: #333;
}

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

.commishTeamsPage #commishTeamsTable td.centerText {
  text-align: center;
}

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

.commishTeamsPage .commishTeamsAction a:hover {
  text-decoration: underline;
}

.commishTeamsPage .commishTeamsDeleteAction a {
  color: var(--ptfg-red);
}

.commishTeamsPage .commishTeamsPrizesAction a {
  color: var(--ptfg-green);
  font-weight: 700;
}

.commishTeamsPage .commishTeamsActionDisabled {
  font-size: 13px;
  font-weight: 600;
  color: var(--ptfg-text-faint);
}

.commishTeamsPage #commishTeamsTable tfoot td {
  background: var(--ptfg-bg-row-shade);
  border: none;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ptfg-navy);
  white-space: normal;
}

.commishTeamsPage .commishTeamsUnpaidFootnote {
  font-weight: 400;
  color: #333;
  margin-left: 6px;
}

.commishTeamsPage .commishTeamsUnpaidFootnote .unpaid {
  color: var(--ptfg-red);
  font-weight: 700;
}

/* ---------- New/Edit Team form ---------- */

.commishTeamFormPage {
  max-width: 500px;
}

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

.commishTeamFormPage .card-header {
  padding: 12px 20px;
}

.commishTeamFormPage .card {
  margin-bottom: 20px;
}

.commishTeamFormPage .card-body {
  padding: 18px 20px;
}

.commishTeamFormPage .commishTeamFormFootnote {
  margin-bottom: 16px;
  padding: 12px 16px;
}

.commishTeamFormPage .commishTeamFormGroup {
  margin-bottom: 16px;
}

.commishTeamFormPage .commishTeamFormGroup:last-child {
  margin-bottom: 0;
}

.commishTeamFormPage .commishTeamFormGroup label {
  display: block;
  color: #333;
  font-weight: 700;
  margin-bottom: 6px;
}

.commishTeamFormPage .commishTeamFormGroup small {
  display: block;
  margin-top: 4px;
  color: #6c757d;
  font-size: 12px;
}

.commishTeamFormPage .form-control {
  max-width: 100%;
}

.commishTeamFormPage select.form-control {
  max-width: 320px;
}

/* Narrower than the general select.form-control 320px -- values are just 1-50, no need for the wider box. */
.commishTeamFormPage #team_best_ball_team {
  max-width: 70px;
}

/* Team names are capped at 20-30 chars -- doesn't need the general .form-control 100% width either. */
.commishTeamFormPage #team_name {
  max-width: 250px;
}

.commishTeamFormPage .commishTeamFormSubmitButton {
  display: block;
  width: 100%;
  max-width: 160px;
  background: var(--ptfg-navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  padding: 8px 16px;
  box-shadow: 0 1px 3px rgba(11, 26, 103, 0.2);
}

.commishTeamFormPage .commishTeamFormSubmitButton:hover {
  background: var(--ptfg-info);
}

/* ---------- Prizes Report ---------- */

.commishPrizesReportPage #pageTitle {
  margin-bottom: 16px;
}

.commishPrizesReportPage .commishPrizesReportTableWrap {
  display: block;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--ptfg-border);
  border-radius: 10px;
  overflow: hidden;
}

.commishPrizesReportPage #commishPrizesReportTable {
  width: auto;
  margin: 0;
  border-collapse: collapse;
}

.commishPrizesReportPage #commishPrizesReportTable thead th {
  background-color: var(--ptfg-navy);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.4px;
  padding: 6px 16px;
  text-align: left;
}

.commishPrizesReportPage #commishPrizesReportTable tbody td {
  border: 1px solid var(--ptfg-border);
  padding: 5px 16px;
  font-size: 13px;
}

.commishPrizesReportPage .commishPrizesReportAmount {
  text-align: right;
}

.commishPrizesReportPage #commishPrizesReportTable tfoot td {
  background-color: var(--ptfg-bg-row-shade);
  color: var(--ptfg-navy);
  font-weight: 700;
  border: 1px solid var(--ptfg-border);
  padding: 6px 16px;
}

.commishPrizesReportPage .commishPrizesReportNonCash {
  margin-top: 14px;
  font-size: 13px;
}

/* ---------- Delete Team confirmation ---------- */

.commishTeamDeletePage #pageTitle {
  margin-bottom: 12px;
}

.commishTeamDeletePage .commishTeamDeleteIntro {
  margin-bottom: 16px;
  font-size: 14px;
}

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

.commishTeamDeletePage #commishTeamDeleteTable {
  width: auto;
  margin: 0;
  border-collapse: collapse;
}

.commishTeamDeletePage #commishTeamDeleteTable thead th {
  background-color: var(--ptfg-navy);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.4px;
  padding: 6px 14px;
  text-align: left;
}

.commishTeamDeletePage #commishTeamDeleteTable tbody td {
  border: 1px solid var(--ptfg-border);
  padding: 6px 14px;
  font-size: 13px;
}

.commishTeamDeletePage .commishTeamDeleteWarning {
  max-width: 500px;
  padding: 10px 16px;
  margin-bottom: 20px;
}

.commishTeamDeletePage .commishTeamDeleteActionRow {
  display: flex;
  gap: 10px;
}

.commishTeamDeletePage .commishTeamDeleteActionRow .btn {
  border: none;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(11, 26, 103, 0.2);
  font-weight: 600;
  padding: 6px 16px;
  text-decoration: none;
}

.commishTeamDeletePage .commishTeamDeleteYesButton {
  background: var(--ptfg-red);
  color: #fff;
}

.commishTeamDeletePage .commishTeamDeleteCancelButton {
  background: var(--ptfg-bg-row-shade);
  color: #333;
}

/* ---------- Payment Transaction Details ---------- */

.commishPaymentTxnPage #pageTitle {
  margin-bottom: 4px;
}

.commishPaymentTxnPage .commishPaymentTxnSubtitle {
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ptfg-text-muted);
}

.commishPaymentTxnPage .commishPaymentTxnTableWrap {
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--ptfg-border);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

.commishPaymentTxnPage #commishPaymentTxnTable {
  width: auto;
  margin: 0;
  border-collapse: collapse;
  white-space: nowrap;
}

.commishPaymentTxnPage #commishPaymentTxnTable thead th {
  background-color: var(--ptfg-navy);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.4px;
  padding: 6px 10px;
  border: 1px solid var(--ptfg-navy-dark);
  text-align: left;
}

.commishPaymentTxnPage #commishPaymentTxnTable tbody td {
  border: 1px solid var(--ptfg-border);
  padding: 5px 10px;
  font-size: 13px;
}

.commishPaymentTxnPage #commishPaymentTxnTable tbody tr.shadedRow td {
  background-color: var(--ptfg-bg-row-shade);
}

.commishPaymentTxnPage #commishPaymentTxnTable tbody tr.whiteRow td {
  background-color: #fff;
}
