.team-trades-left-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.team-trades-left-form input[type="number"] {
  width: 4rem;
}

.transactions-layout {
  align-items: start;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.transactions-section {
  min-width: 0;
}

.transactions-section h2 {
  margin-top: 0;
}

.executed-trades-table,
.injured-reserves-table {
  table-layout: fixed;
  width: 100%;
}

.executed-trades-table th:nth-child(1),
.injured-reserves-table th:nth-child(1) {
  width: 2rem;
}

.executed-trades-table th:nth-child(2),
.injured-reserves-table th:nth-child(2) {
  width: 6rem;
}

.executed-trades-table th:nth-child(3),
.injured-reserves-table th:nth-child(3) {
  width: 14rem;
}

.tlfl-team-page-controls {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
  max-width: 100%;
  width: 100%;
}

.tlfl-team-selector {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  max-width: 100%;
  min-width: 0;
}

.tlfl-team-selector label {
  flex: 0 0 auto;
  font-weight: 700;
}

.tlfl-team-selector select {
  flex: 1 1 auto;
  max-width: 100%;
  min-width: 0;
  width: min(18rem, 100%);
}

.trade-asset-list {
  display: grid;
}

.trade-asset-fieldset {
  box-sizing: border-box;
  max-width: 26rem;
}

.trade-asset-row {
  padding: 0.25rem 0.5rem;
}

.trade-asset-row:nth-child(even) {
  background: #f7f7f7;
}

.trade-protections-input {
  width: 4rem;
}

.trade-team-layout {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 28rem));
  justify-content: start;
}

.trade-team-selector,
.trade-team-assets {
  max-width: 28rem;
}

.trade-team-heading {
  margin-top: 0;
}

.trade-team-name {
  align-items: center;
  display: inline-flex;
  gap: 0.5rem;
}

.trade-team-name img {
  flex: 0 0 auto;
  height: 1.75rem;
  object-fit: contain;
  width: 1.75rem;
}

.executed-trades-table th,
.executed-trades-table td,
.injured-reserves-table th,
.injured-reserves-table td {
  height: 2.25rem;
  line-height: 1.2;
  overflow: hidden;
  padding: 0.15rem 0.6rem;
  text-align: left;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.executed-trades-table .trade-team-name,
.injured-reserves-table .trade-team-name {
  max-width: 100%;
}

.executed-trades-table .trade-team-name span,
.injured-reserves-table .trade-team-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.executed-trade-odd tr,
.injured-reserve-transaction-odd tr {
  background: #f7f7f7;
}

.executed-trades-table tbody tr:first-child td,
.injured-reserves-table tbody tr:first-child td {
  border-top: 2px solid #4b5563;
}

.executed-trades-table tbody:last-of-type tr:last-child td,
.injured-reserves-table tbody:last-of-type tr:last-child td {
  border-bottom: 2px solid #4b5563;
}
