/* GAME STATS MODAL */
.game-stats-info-bar {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.game-stats-info-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.game-stats-result {
  font-weight: 700;
  font-size: 1.1rem;
  color: #2e7d32;
}

/* STATS MODAL TABS */
.stats-modal-tabs {
  display: flex;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 0;
}

.stats-tab-btn {
  background: none;
  border: none;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #666;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.stats-tab-btn:hover { color: #5D1725; }
.stats-tab-btn.active {
  color: #5D1725;
  border-bottom-color: #5D1725;
  font-weight: 600;
}

.stats-tab-content { display: none; }
.stats-tab-content.active { display: block; }

/* Scrollable table container with sticky header */
.stats-table-scroll {
  max-height: 420px;
  overflow-y: auto;
  overflow-x: auto;
  margin-top: 0;
}

/* GAME STATS TABLE */
.game-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 600px;
}

.game-stats-table thead {
  background: linear-gradient(135deg, #5D1725, #3c0f17);
  color: white;
  position: sticky;
  top: 0;
  z-index: 2;
}

.game-stats-table th {
  padding: 0.5rem 0.35rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.game-stats-table th:nth-child(2) { text-align: left; padding-left: 0.5rem; }

.game-stats-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
}

.game-stats-table tbody tr:nth-child(even) { background: #fafafa; }

.game-stats-table td {
  padding: 0.3rem 0.35rem;
  text-align: center;
  vertical-align: middle;
}

.game-stats-table td:nth-child(2) { text-align: left; padding-left: 0.5rem; }

/* GWG highlight */
.gwg-row {
  background: #fff8e1 !important;
}

.gwg-key {
  font-size: 0.75rem;
  color: #b8860b;
  padding: 0.4rem 0.5rem;
  background: #fff8e1;
  border-top: 1px solid #f0e0a0;
  font-style: italic;
}

/* STAT INPUTS - no spinners */
.stat-input {
  width: 44px;
  padding: 3px 4px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 0.8rem;
  text-align: center;
  font-family: inherit;
  -moz-appearance: textfield;
}

.stat-input::-webkit-outer-spin-button,
.stat-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stat-input:focus {
  outline: none;
  border-color: #5D1725;
  background: #fff8f8;
}

select.stat-input {
  width: 58px;
  padding: 3px 2px;
  -moz-appearance: auto;
}

/* Checkbox styling */
.stat-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #5D1725;
}

/* Add Stats button on schedule list */
.btn-stats {
  padding: 5px 10px;
  background: #5D1725;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-stats:hover { background: #3c0f17; }

/* Totals row */
.stats-totals-row td {
  background: #5D1725;
  color: white;
  font-weight: 700;
}

/* Bench PIM row */
.bench-pim-row td {
  background: #f5f5f5;
  font-style: italic;
  color: #666;
}

/* Team stats section */
.team-stats-section {
  padding: 1rem 0;
}

.team-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.team-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.team-stat-label {
  font-size: 0.85rem;
  color: #555;
  font-weight: 600;
}

.team-stat-input {
  width: 70px;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  text-align: center;
  -moz-appearance: textfield;
}

.team-stat-input::-webkit-outer-spin-button,
.team-stat-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.team-stat-input:focus {
  outline: none;
  border-color: #5D1725;
}

/* GWG row highlight in admin modal */
.gwg-row {
  background: #fff8e1 !important;
}

.gwg-row td {
  background: #fff8e1 !important;
}
