:root {
  --gray-50: #f5f6f8;
  --gray-100: #edeef2;
  --gray-200: #dfdfe6;
  --gray-300: #cccdd8;
  --gray-400: #b4b4c5;
  --gray-500: #a2a0b4;
  --gray-600: #8d8aa1;
  --gray-700: #7a778b;
  --gray-800: #646172;
  --gray-900: #53525d;
  --gray-950: #313036;
  --purple-300: #6e228e;
}

table {
  border-collapse: collapse; /* Ensures that borders collapse into a single border */
}
#SheetTable th:nth-child(1) {
  width: 1%; /* Set the minimum width for Rank column */
  white-space: nowrap;
}

#SheetTable th:nth-child(2) {
  /* Let Country column extend as much as possible */
  width: auto;
}

th,
td {
  padding: 8px;
  font-size: 14px;
  text-align: left;
  line-height: 18px;
  color: var(--gray-800);
  font-weight: 300;
  border-collapse: collapse;
}

thead {
  position: sticky;
  top: 0;
  z-index: 5;
  background-color: #fff;
  box-shadow: 0 2px 2px -2px var(--gray-800);
  -webkit-box-shadow: 0 2px 2px -2px var(--gray-800);
  -moz-box-shadow: 0 2px 2px -2px var(--gray-800);
}

.table thead th {
  padding: 6px;
}
tbody tr:nth-child(odd) {
  background-color: #f5f6f89e;
}
.Grid {
  border-collapse: collapse;
}
td {
  border-bottom: 1px solid var(--gray-200);
}
tr:last-child td {
  border-bottom: 0px;
}
.medal-header {
  align-items: center;
  display: flex;
  cursor: pointer;
  justify-content: center;
  padding: 4px 8px;
  padding: 4px 0px;
  font-weight: 500;
}

.medal-header-content {
  display: flex;
  align-items: center;
}
.medal-header-content img {
  margin-right: 4px;
  width: 12px;
}

.medal-header-icon {
  opacity: 0;
  margin-left: 2px;
  font-size: 8px;
  margin-top: 2px;
}

.medal-header:hover {
  background-color: var(--gray-50);
  border-radius: 4px;
  color: var(--gray-900);
}
.medal-header:hover .medal-header-icon {
  opacity: 0.4;
}
.medal-header-icon.active,
.medal-header:hover .medal-header-icon.active {
  opacity: 1;
}

.selectedColumn {
  font-weight: 500;
}
tbody tr td:nth-child(1) {
  padding: 12px 12px 12px 8px;
}

tbody tr td.total,
tbody tr td.award {
  text-align: center;
}
/* tbody tr td.country {
  display: flex;
  align-items: center;
  padding: 12px 12px 12px 0px;
} */
.country-wrap {
  display: flex;
  align-items: center;
}
.flag {
  width: 24px;
  margin-right: 8px;
  border-radius: 3px;
  border: 0.5px solid var(--gray-200);
}

.highlight td {
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.header {
  border-bottom: 1px solid #dfdfe6a0;
}
.graphic {
  margin-bottom: 1px;
}

@media only screen and (max-width: 600px) {
  .medal-text {
    display: none;
  }
}
@media only screen and (max-width: 500px) {
  tbody tr td:nth-child(1) {
    padding: 12px 0px 12px 8px;
  }
  .medal-header {
    padding: 4px 6px;
  }
  .medal-header-content img {
    margin-right: 0px;
  }
  td.award,
  td.total {
    text-align: center;
    padding: 0px 8px 0px 0px;
  }
  th .total {
    margin-left: 4px;
  }
  td {
    padding: 6px;
  }
  .table thead th {
    padding: 6px 0px;
  }
}
@media only screen and (max-width: 380px) {
  td {
    font-size: 13px;
  }
  th .total {
    display: none;
  }
}
