.league-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 14px;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
  max-width: 800px;
  margin: 0 auto;
}

.mod-league-table-season-form {
  display: inline-block;
  margin-bottom: 8px;
}

.mod-league-table-season-form .form-select {
  width: auto;
}

@media (max-width: 768px) {
  .league-table {
    font-size: 12px;
  }
  
  .league-table th,
  .league-table td {
    padding: 4px 6px;
  }
  
  .table-title {
    font-size: 20px;
  }
  
  .form-box {
    width: 14px;
    height: 14px;
    line-height: 14px;
    font-size: 8px;
  }
}

.league-table th {
  background: linear-gradient(to bottom, #3a6bb8, #2c5aa0);
  color: white;
  padding: 8px;
  text-align: center;
  font-weight: bold;
  min-width: 40px;
}

.league-table td {
  padding: 6px 8px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  min-width: 40px;
}

.league-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.league-table tr:hover {
  background-color: #f0f0f0;
}

.team-name {
  text-align: left !important;
  font-weight: bold;
}

.position {
  font-weight: bold;
  color: #2c5aa0;
}

.points {
  font-weight: bold;
}

.team-header {
  text-align: left !important;
}

.form-box {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 1px;
  text-align: center;
  line-height: 18px;
  font-size: 10px;
  font-weight: bold;
  color: white;
}

.win {
  background-color: #28a745;
}

.loss {
  background-color: #dc3545;
}
  
.unknown {
  background-color: #6c757d; /* neutral grey */
}

.table-title {
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: #2c5aa0;
  text-align: left;
  margin-bottom: 20px;
}

.first-place td {
  border-bottom: 2px solid #2c5aa0;
  border-style: dashed;
}

.last-place td {
  border-top: 2px solid #2c5aa0;
  border-style: dashed;
}

/*
  GF = Games for (max 7 per match)
  GA = Games Against (max 7 per match)
  GD +/- = Games Difference (GF - GA)
  PF = Points for (max 91 per match)
  PA = Points Against (max 91 per match)
  PD +/- = Points Difference (PF - PA)
  */