.nfl-teams {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
}

.nfl-team-card {
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 1rem;
}

.tlfl-teams-card {
  background: #ffffff;
  border: 0;
  border-radius: 10px 10px 6px 6px;
  box-shadow: 0 -4px 14px rgb(17 24 39 / 0.08), 0 2px 8px rgb(17 24 39 / 0.06);
  overflow: hidden;
  padding: 0;
}

.tlfl-teams-card-color-bar {
  background:
    linear-gradient(180deg,
      var(--team-primary-color, #1f2937) 0%,
      var(--team-primary-color, #1f2937) 55%,
      var(--team-secondary-color, #e5e7eb) 100%);
  border-radius: 10px 10px 0 0;
  height: 0.52rem;
}

.tlfl-teams-card-single-color-bar .tlfl-teams-card-color-bar {
  background: var(--team-primary-color, #1f2937);
  height: 0.67rem;
}

.tlfl-teams-card-secondary-bar {
  background: var(--team-secondary-color, #e5e7eb);
  height: 0.15rem;
}

.tlfl-teams-card .nfl-team-card-header {
  padding: 1rem 1rem 0;
}

.nfl-team-card-header {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.nfl-team-card-header img {
  flex: 0 0 auto;
  height: 2.5rem;
  object-fit: contain;
  width: 2.5rem;
}

.nfl-team-card h2 {
  margin: 0;
}

.keeper-team-protections {
  color: #4b5563;
  margin: 0.15rem 0;
}

.keeper-status {
  font-weight: 600;
  margin: 0;
}

.keeper-status-ready {
  color: #15803d;
}

.keeper-status-blocked {
  color: #b91c1c;
}

.nfl-team-card table {
  table-layout: fixed;
  width: 100%;
}

.nfl-team-roster-table {
  border-top: 1px solid #e5e7eb;
}

.tlfl-teams-card>table {
  border-top: 1px solid #e5e7eb;
  margin: 0 1rem;
  width: calc(100% - 2rem);
}

.nfl-team-card th:nth-child(1),
.nfl-team-card td:nth-child(1) {
  width: 2.00rem;
}

.nfl-team-card th:nth-child(3),
.nfl-team-card td:nth-child(3) {
  width: 3.25rem;
}

.nfl-team-card th:nth-child(4),
.nfl-team-card td:nth-child(4) {
  width: 8rem;
}

.nfl-team-roster-table-readonly-seniority th:nth-child(4),
.nfl-team-roster-table-readonly-seniority td:nth-child(4) {
  text-align: center;
  width: 4.75rem;
}

.keepers-form .nfl-teams {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 26rem));
  justify-content: start;
}

.keepers-form .nfl-team-card th:nth-child(4),
.keepers-form .nfl-team-card td:nth-child(4) {
  text-align: center;
  width: 3rem;
}

.nfl-team-card th,
.nfl-team-card td {
  padding: 0.25rem 0.5rem;
  text-align: left;
  vertical-align: middle;
}

.nfl-team-card tbody tr:nth-child(even) {
  background: #f7f7f7;
}

.tlfl-teams-ir-divider td {
  border-top: 1px solid #e5e7eb;
}

.nfl-team-card input[type="number"] {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.nfl-team-seniorities-actions,
.sticky-form-actions {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  margin: 0 0 1rem;
  padding: 0.75rem 0;
  position: sticky;
  top: 4.25rem;
  z-index: 10;
}

.nfl-team-card tr[id] {
  scroll-margin-top: 4.5rem;
}

.nfl-team-seniority-control {
  align-items: center;
  display: flex;
  gap: 0.25rem;
}

.nfl-team-seniority-buttons {
  display: inline-flex;
  flex: 0 0 auto;
}

.nfl-team-seniority-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #1f2937;
  cursor: pointer;
  display: inline-flex;
  height: 1.75rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 1.75rem;
}

.nfl-team-seniority-button+.nfl-team-seniority-button {
  border-left-width: 0;
}

.nfl-team-seniority-button:hover {
  background: #f3f4f6;
}

.nfl-team-player-name {
  display: block;
  overflow: hidden;
  white-space: nowrap;
}
