.size-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-sm);
}

.size-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  font-size: var(--font-size-sm);
  padding: var(--spacing-sm);
  background: var(--color-table-header);
  border: 1px solid var(--color-table-border);
  border-bottom: none;
}

.size-table th,
.size-table td {
  border: 1px solid var(--color-table-border);
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: center;
}

.size-table thead th {
  background: var(--color-table-header);
  font-weight: 600;
}

.size-table tbody tr:nth-child(even) {
  background: #f7fafc;
}

.players-table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--spacing-md);
  -webkit-overflow-scrolling: touch;
}

.players-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.players-table th,
.players-table td {
  border: 1px solid var(--color-table-border);
  padding: var(--spacing-xs) var(--spacing-sm);
  text-align: left;
}

.players-table thead th {
  background: var(--color-table-header);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.players-table tbody td:first-child {
  text-align: center;
  font-weight: 500;
  color: var(--color-text-muted);
  width: 40px;
}

.players-table input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--color-input-border);
  padding: var(--spacing-xs);
  font-family: inherit;
  font-size: var(--font-size-sm);
  background: transparent;
  outline: none;
}

.players-table input:focus {
  border-bottom-color: var(--color-input-focus);
}

.players-table select {
  width: 100%;
  padding: 0.375rem 1.75rem 0.375rem 0.375rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--font-size-sm);
  background-color: #fff;
  outline: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23718096' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.375rem center;
}

.players-table select:focus {
  border-color: var(--color-input-focus);
  box-shadow: 0 0 0 2px rgba(124, 111, 174, 0.15);
}

.btn-add-row {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-btn-secondary-border);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  color: var(--color-link);
  font-family: inherit;
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: background var(--transition);
}

.btn-add-row:hover {
  background: #f7fafc;
}
