.year-points-filters .team-filter {
  margin-right: 5px;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  cursor: pointer;
}

.year-points-filters .team-filter img {
  margin-right: 8px;
  height: 20px;
  vertical-align: middle;
}

.highland-filters {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  width: 80%;
  margin-bottom: 60px;
  border-radius: 50px;
  /* overflow: hidden; */
  /* border: 1px solid #ddd; */
  margin-left: 40px;
  margin: 0 auto;
  margin-bottom: 40px;
}

.team-filter {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  line-height: 1em;
  padding: 15px 20px;
  background: white;
  border: none;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
  border-radius: 50px 50px;
  width: calc(100% + 50px);
  margin-left: -40px;
  transition: all ease 0.3s;
  z-index: 1;
  box-shadow: 5px 8px 18px rgb(0 0 0 / 11%);
}

.team-filter:hover {
  background: #f5f5f5;
}

.team-filter.active {
  background: #14323d;
  color: white;
  z-index: 9999 !important;
  font-weight: 700;
}

h1.highland-title.year-points-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
  font-weight: bold;
}

.highland-content.year-points-content h3 {
  display: none;
}

table.dataTable.no-footer {
  border: 0 !important;
}
.admin-edit-container {
  display: flex;
  gap: 30px;
  margin: auto;
  max-width: max-content;
  margin-bottom: 40px;
}

.team-content-wrapper {
  background: #eaeff2;
  border-radius: 48px;
  border: 0;
  padding: 40px;
  filter: drop-shadow(7px 14px 24px rgba(0, 0, 0, 0.04));
}
thead th.sorting:after,
thead th.sorting:before {
  display: none !important;
}
table.dataTable thead > tr > th.sorting {
  padding: 15px 5px;
  line-height: 1.2em;
  font-size: 12px;
}
td.inProgress {
  background-color: #ffd900;
}
.team-content-wrapper tr.even td.inProgress {
  background-color: #ffea00;
}
.team-content-wrapper table th:last-of-type,
.team-content-wrapper table td:last-of-type {
  border-left: 2px solid #000;
  border-right: 2px solid #000;
}

/* Add vertical lines between all columns */
.year-points-table thead th {
  border-right: 1px solid rgba(153, 153, 153, 0.6);
}

.year-points-table tbody td {
  border-right: 1px solid rgba(153, 153, 153, 0.6);
}

/* Remove border from the last column to avoid double border */
.year-points-table th:last-child,
.year-points-table td:last-child {
  border-right: 2px solid #000;
}

.team-content-wrapper table.dataTable thead th:last-of-type {
  background-color: #2bc53d;
  border-top: 2px solid #000;
  color: #fff;
  border-radius: 12px 12px 0 0;
  padding: 10px 20px !important;
}
.team-content-wrapper table tr:last-of-type td:last-of-type {
  border-bottom: 2px solid #000;

  border-radius: 0 0 12px 12px;
}

table.dataTable.no-footer {
  border-bottom: 0;
}

.year-points-table {
  width: 100% !important;
  margin-top: 20px;
}

.year-points-table th,
.year-points-table td {
  text-align: center;
  padding: 8px 4px;
  font-size: 14px;
  border-right: 1px solid #ddd;
  max-width: 160px;
}

.year-points-table th:first-child,
.year-points-table td:first-child {
  text-align: left;
  max-width: 160px;
  border-left: 1px solid #ddd;
}

.year-points-table th:last-child,
.year-points-table td:last-child {
  font-weight: bold;
  background-color: #f8f9fa;
}

.year-points-table td.high-points {
}

.year-points-table th:first-child,
.year-points-table td:first-child {
  border-left: 0;
}
.year-points-table td.inProgress {
}

.year-points-table td.noShow {
}

.dataTables_wrapper {
  margin-top: 20px;
}

.dataTables_length,
.dataTables_filter,
.dataTables_info,
.dataTables_paginate {
  display: none !important;
}

.team-content-wrapper {
  margin-bottom: 40px;
}

.team-content-wrapper h3 {
  margin-bottom: 20px;
  color: #333;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

.team-content-wrapper[data-team="irish"] td.noShow {
  background-color: var(--irish-color);
}

.team-content-wrapper[data-team="irish"] tr.even td.noShow {
  background-color: #047739;
}

.team-content-wrapper[data-team="world"] td.noShow {
  background-color: var(--world-color);
}

.team-content-wrapper[data-team="world"] tr.even td.noShow {
  background-color: #254f99;
}
.team-content-wrapper[data-team="italian"] td.noShow {
  background-color: var(--italian-color);
}

.team-content-wrapper[data-team="italian"] tr.even td.noShow {
  background-color: #cf2b37;
}
table.dataTable thead > tr > th.sorting {
  padding: 15px 4px !important;
  text-align: center;
}

.year-points-container {
  width: 95%;
  max-width: 1800px;
  margin: 100px auto;
  margin-bottom: 150px;
}
table.dataTable thead > tr > th.sorting:first-of-type {
  text-align: left;
}
.year-points-table a {
  color: var(--main-color);
  line-height: 1.2em;
  display: block;
}
.legend-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 800px;
  gap: 40px;
  margin-left: auto;
  font-size: 16px;
  padding-right: 30px;
}

.status {
  display: flex;
  align-items: center;
}

.box {
  width: 39px;
  height: 42px;
  margin-right: 8px;
}

.yellow {
  background-color: #ffd900;
}

.green {
  background-color: #2bc53d;
}

@media (max-width: 980px) {
  .year-points-table th,
  .year-points-table td {
    font-size: 12px;
    padding: 4px 2px;
  }

  .year-points-table th:first-child,
  .year-points-table td:first-child {
    min-width: 160px;
  }
}

.tournament-captains-icon {
  display: inline-block;
  margin-left: 8px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
  position: relative;
  vertical-align: middle;
}

.tournament-captains-icon:hover {
  color: #14323d;
}

.tournament-captains-icon svg {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.tournament-captains-tooltip {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tournament-captains-tooltip.show {
  opacity: 1;
  visibility: visible;
}

.tournament-captains-tooltip .captains-section,
.tournament-captains-tooltip .assistant-captains-section {
  margin-bottom: 15px;
}

.tournament-captains-tooltip .captains-section:last-child,
.tournament-captains-tooltip .assistant-captains-section:last-child {
  margin-bottom: 0;
}

.tournament-captains-tooltip strong {
  display: block;
  margin-bottom: 4px;
  color: #14323d;
  font-size: 14px;
}

.tournament-captains-tooltip ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: 5px;
}

.tournament-captains-tooltip li {
  padding: 2px 0;
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

.tournament-captains-tooltip li:before {
  content: "";
  color: #14323d;
  margin-right: 4px;
}
.tournament-captains-tooltip {
  text-align: left;
}
.year-points-table th {
  position: relative;
}

.mobile-scroll-hint {
  display: none;
  text-align: center;
  font-size: 14px;
  color: #666;
  font-style: italic;
  padding: 10px 0;
  margin: 0 auto;
}

@media (max-width: 1440px) {
  .year-points-container {
    width: 98%;
  }
  .mobile-scroll-hint {
    display: block;
  }

  .mobile-scroll-hint-top {
    margin-bottom: 10px;
  }

  .mobile-scroll-hint-bottom {
    margin-top: 10px;
  }
  table.dataTable thead > tr > th.sorting {
    padding: 15px !important;
  }
  .year-points-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .year-points-table {
    min-width: 800px;
  }

  .year-points-table th,
  .year-points-table td {
    padding: 6px 3px;
    font-size: 13px;
    white-space: nowrap;
  }

  .year-points-table th:first-child,
  .year-points-table td:first-child {
    max-width: 130px;
  }
}

@media (max-width: 980px) {
  .highland-filters.year-points-filters {
    flex-direction: column;
    max-width: 400px;
    row-gap: 20px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .team-filter {
    margin-left: 0;
    width: 100%;
    margin: 0 !important;
  }

  .highland-container.year-points-container {
    margin: 60px auto;
    width: 90%;
  }

  .team-content-wrapper {
    padding: 20px 10px;
    border-radius: 20px;
  }

  .year-points-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -10px;
    padding: 0 10px;
  }

  .year-points-table {
    min-width: 600px;
    font-size: 11px;
  }

  .year-points-table th,
  .year-points-table td {
    padding: 6px 3px;
    font-size: 11px;
    white-space: nowrap;
  }

  .year-points-table th:first-child,
  .year-points-table td:first-child {
    min-width: 100px;
    max-width: 120px;
    font-size: 10px;
  }

  .year-points-table th:last-child,
  .year-points-table td:last-child {
    min-width: 50px;
  }

  .year-points-table th {
    font-size: 12px;
    line-height: 1.2;
    padding: 8px 2px;
  }

  .year-points-table td:first-child a {
    font-size: 12px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .legend-container {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    padding: 20px;
    margin: 20px auto 0;
    margin-bottom: 100px;
    font-size: 14px;
  }

  .legend-container .status {
    justify-content: flex-start;
    width: 100%;
  }

  .box {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }
}

@media (max-width: 980px) {
  .year-points-table {
    min-width: 500px;
    font-size: 12px;
  }

  .year-points-table th,
  .year-points-table td {
    padding: 4px 2px;
    font-size: 12px;
  }

  .year-points-table th:first-child,
  .year-points-table td:first-child {
    min-width: 80px;
    max-width: 100px;
    font-size: 12px;
  }

  .year-points-table td:first-child a {
    font-size: 12px;
  }

  .tournament-captains-icon svg {
    width: 12px;
    height: 12px;
  }

  .tournament-captains-tooltip {
    min-width: 120px;
    font-size: 12px;
    padding: 8px;
  }

  .tournament-captains-tooltip {
    min-width: 150px;
    font-size: 12px;
  }

  .tournament-captains-icon svg {
    width: 14px;
    height: 14px;
  }
  .admin-edit-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

/* Captain and Assistant Captain Styling */
.captain-row {
  background-color: rgba(
    255,
    255,
    255,
    1
  ) !important; /* Light gold background for captains */
}

.captain-row[data-captain-type="assistant"] {
}

.captain-indicator,
.assistant-captain-indicator {
}

.assistant-captain-indicator {
}

.captain-row td {
  font-weight: 500;
}

.captain-row .captain-indicator,
.captain-row .assistant-captain-indicator {
  text-align: center;
  min-width: 30px;
  display: inline-block;
}

.qualification-text {
  text-align: right;
  max-width: 1200px;
  margin-left: auto;
}

.qualification-text p {
  font-size: 12px;
  line-height: 1.4;
  color: #666;
  margin: 0;
}
