/* Commish "Administer Users" list (With/Without Team) -- ported from legacy's commish_users_modern.css. Column
   headers are abbreviated with a title tooltip (SLR/MLR/PRE/WRE/TS/CMBS/US/LL/CC/TZ), matching legacy, so this
   ~19-column table stays reasonably narrow; boolean columns render as disabled checkboxes instead of yes/no
   text for the same reason. The New/Edit User form isn't covered here -- separate page, separate pass. */

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

/* Used by Admin > Failed Email Alerts (reuses this page's table styling) to label which season the table
   below covers -- legacy showed the same text as a title row baked into the table itself. */
.commishUsersPage .commishUsersSubheading {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ptfg-navy);
}

.commishUsersPage .commishUsersNote {
  max-width: 800px;
  margin-bottom: 16px;
  padding: 10px 16px;
}

.commishUsersPage .commishUsersDestroyableList {
  margin: 6px 0 0;
  padding-left: 20px;
}

.commishUsersPage .commishUsersHideSettingsToggle {
  margin-bottom: 8px;
  font-size: 13px;
}

.commishUsersPage .commishUsersHideSettingsToggle label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
}

/* SLR/MLR/PRE/WRE/TS/CMBS/US/LL/CC/TZ/Hometown -- toggled via the Hide User Settings checkbox
   (hide_user_settings_toggle_controller.js). */
.commishUsersPage #commishUsersTable.hideUserSettingsCols .userSettingsCol {
  display: none;
}

/* Deliberately no max-width/overflow-x scroll box here -- with 19 columns this table is wider than most
   windows, and containing it in its own internal scroll area made that easy to miss. Letting it render at its
   natural full width means the browser's own page-level horizontal scrollbar shows up instead, which is a
   much more obvious signal that there's more to see. */
.commishUsersPage .commishUsersTableWrap {
  display: block;
  width: fit-content;
  border: 1px solid var(--ptfg-border);
  border-radius: 10px;
}

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

.commishUsersPage #commishUsersTable 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: 5px 5px;
  border: 1px solid var(--ptfg-navy-dark);
}

.commishUsersPage #commishUsersTable tbody td {
  border: 1px solid var(--ptfg-border);
  padding: 2px 5px;
  font-size: 12px;
}

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

.commishUsersPage #commishUsersTable tbody tr.whiteRow td {
  background-color: #fff;
}

.commishUsersPage #commishUsersTable tbody tr.highlightRow td {
  background-color: var(--ptfg-highlight);
}

/* user_row_style (commish/users_helper.rb) sets the lineup-lockout red background as an inline style on the
   <tr>, but a <td>'s own background (the zebra-stripe rules above) paints over its parent <tr>'s -- !important
   restores the intended solid-red locked-out row. Matches on "background-color: #c30900" specifically (not
   just "#c30900") since a commish row gets #c30900 as inline *text* color only, with no background-color, and
   a bare substring match on the color value also caught that case. */
.commishUsersPage #commishUsersTable tbody tr[style*="background-color: #c30900"] td {
  background-color: #c30900 !important;
  color: #fff !important;
}

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

.commishUsersPage #commishUsersTable td.centerText {
  text-align: center;
}

.commishUsersPage #commishUsersTable input[type="checkbox"] {
  margin: 0;
  vertical-align: middle;
}

.commishUsersPage .commishUsersAction a,
.commishUsersPage .commishUsersAction button {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ptfg-navy);
  cursor: pointer;
}

.commishUsersPage .commishUsersAction a:hover,
.commishUsersPage .commishUsersAction button:hover {
  text-decoration: underline;
}

.commishUsersPage .commishUsersAction form {
  margin: 0;
}

.commishUsersPage .commishUsersDeleteAction button {
  color: var(--ptfg-red);
}

.commishUsersPage .commishUsersResetAction button {
  color: var(--ptfg-green);
}

.commishUsersPage .commishUsersActionDisabled {
  font-size: 12px;
  font-weight: 600;
  color: var(--ptfg-text-faint);
}

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

/* Admin > Login Report's last column (also reuses this page's table styling, like Failed Email Alerts) can
   hold long browser UA strings -- let it wrap and flow naturally instead of the table's default nowrap. */
.commishUsersPage #commishUsersTable td.loginReportUserAgent {
  white-space: normal;
  word-break: break-word;
}

/* Admin > Login Report is the only page reusing this table that's click-to-sort (sortable-table Stimulus
   controller) -- scoped to [data-action] so Commish Users' plain (non-sortable) headers are untouched. */
.commishUsersPage #commishUsersTable thead th[data-action] {
  cursor: pointer;
}

.commishUsersPage #commishUsersTable thead th[data-action]:hover {
  background-color: var(--ptfg-navy-dark);
}

.commishUsersPage #commishUsersTable thead th[data-sort-direction]::after {
  margin-left: 4px;
  color: #fff;
}

.commishUsersPage #commishUsersTable thead th[data-sort-direction="asc"]::after {
  content: "\25B2";
}

.commishUsersPage #commishUsersTable thead th[data-sort-direction="desc"]::after {
  content: "\25BC";
}

.commishUsersPage .commishUsersFootnotes {
  margin-top: 8px;
  font-weight: 400;
  color: #333;
}

.commishUsersPage .commishUsersFootnotes p {
  margin: 6px 0 4px;
}

.commishUsersPage .commishUsersAbbrevToggle {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  color: var(--ptfg-navy);
  text-decoration: underline;
  cursor: pointer;
}

.commishUsersPage .commishUsersAbbrevList,
.commishUsersPage .commishUsersFootnoteNotes {
  margin: 4px 0;
  padding-left: 20px;
  font-weight: 400;
}
