/* Commish Entry Fees page -- ported from legacy's commish_entry_fees_modern.css. Scoped under
   .commishEntryFeesPage so it doesn't affect other pages reusing .card/.card-header/.centerText elsewhere. */

.commishEntryFeesPage .card-header #pageTitle {
  margin: 0 0 16px;
  font-size: 20px;
}

.commishEntryFeesPage .card-header #pageTitle::before {
  content: "\1F9FE";
  display: inline-block;
  margin-right: 8px;
}

.commishEntryFeesPage .commishEntryFeesWarning {
  margin-bottom: 16px;
  padding: 10px 16px;
  max-width: 800px;
}

.commishEntryFeesPage .commishEntryFeesYearPicker {
  margin-bottom: 16px;
  font-size: 13px;
}

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

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

.commishEntryFeesPage .commishEntryFeesStats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.commishEntryFeesPage .commishEntryFeesStat {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.commishEntryFeesPage .commishEntryFeesStat span {
  display: block;
  font-size: 14px;
  font-weight: 400;
}

.commishEntryFeesPage .commishEntryFeesStat.btn-primary {
  background-color: #eaf2fc;
  border: 1px solid #cfe0f7;
  color: var(--ptfg-info-text);
}

.commishEntryFeesPage .commishEntryFeesStat.btn-danger {
  background-color: var(--ptfg-bg-red-tint);
  border: 1px solid #f3c5c0;
  color: var(--ptfg-red-text);
}

.commishEntryFeesPage .commishEntryFeesStat.btn-success {
  background-color: #e8f5e9;
  border: 1px solid #b8dfc0;
  color: #1b5e28;
}

.commishEntryFeesPage .card-header {
  width: fit-content;
  max-width: 100%;
  background: var(--ptfg-bg-card-tint);
  border: 1px solid var(--ptfg-border);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(11, 26, 103, 0.06);
  padding: 16px 18px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.commishEntryFeesPage .commishEntryFeesTableWrap {
  overflow-x: auto;
}

.commishEntryFeesPage #commishEntryFeesTable {
  width: auto;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0 2px;
  white-space: nowrap;
}

.commishEntryFeesPage #commishEntryFeesTable thead th {
  color: #fff;
  background-color: var(--ptfg-navy);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-align: center;
  padding: 8px 8px;
}

.commishEntryFeesPage #commishEntryFeesTable thead th:first-child {
  border-radius: 6px 0 0 6px;
}

.commishEntryFeesPage #commishEntryFeesTable thead th:last-child {
  border-radius: 0 6px 6px 0;
}

.commishEntryFeesPage #commishEntryFeesTable tbody td {
  padding: 3px 8px;
  font-size: 12px;
  border-bottom: 1px solid #f0f2f8;
}

.commishEntryFeesPage #commishEntryFeesTable tbody tr[data-entry-fee-row-target="row"]:hover:not(.highlightRowForEdit) td {
  background-color: var(--ptfg-navy-tint);
}

.commishEntryFeesPage .highlightRowForEdit td {
  background-color: #fff8e1;
}

.commishEntryFeesPage .commishEntryFeesEditCell {
  padding-right: 10px;
}

.commishEntryFeesPage .commishEntryFeesEditButton {
  border: 1px solid var(--ptfg-navy);
  border-radius: 6px;
  background: #fff;
  color: var(--ptfg-navy);
  font-weight: 600;
  font-size: 12px;
  width: 60px;
  padding: 4px 0;
  cursor: pointer;
}

.commishEntryFeesPage .commishEntryFeesEditButton:hover {
  background: var(--ptfg-navy-tint);
}

.commishEntryFeesPage .commishEntryFeesAmount,
.commishEntryFeesPage .commishEntryFeesNotes {
  border: 1px solid var(--ptfg-input-border);
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 12px;
  font-family: inherit;
}

.commishEntryFeesPage .commishEntryFeesAmount:disabled,
.commishEntryFeesPage .commishEntryFeesNotes:disabled {
  background: #f5f5f5;
  color: #333;
  border-color: transparent;
}

.commishEntryFeesPage .commishEntryFeesErrorRow td {
  padding: 2px 8px 8px;
  border-bottom: 1px solid #f0f2f8;
}

.commishEntryFeesPage .commishEntryFeesErrorText {
  color: var(--ptfg-red);
  font-size: 11px;
  text-align: left;
}

.commishEntryFeesPage #commishEntryFeesTable tfoot td {
  border: none;
  padding: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ptfg-navy);
}
