#box_main {
  width: 1020px;
  padding-top: 14px;
  padding-left: 20px;
}

.box_title {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#box_table {
  height: 720px;
  background-color: #ffffff;
  border-radius: 12px;
  margin-bottom: 20px;
  padding: 24px;
}

#leaderboard_table {
  border-collapse: collapse;
  border: none;
  background-color: transparent;
}

#leaderboard_table th,
#leaderboard_table td {
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  text-align: center;
  white-space: nowrap;
}

#leaderboard_table thead th {
  font-size: 14px;
  color: var(--color-greyMedium);
}

#leaderboard_table tbody tr {
  color: var(--color-black);
  font-size: 14px;
  transition: background-color 0.2s;
  cursor: pointer;
}

#leaderboard_table tbody tr:hover {
  background-color: var(--color-greyLight);
}

#leaderboard_table th.active {
  position: relative;
}

#leaderboard_table th.active::after {
  content: "";
  display: inline-block;
  margin-left: 8px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--color-greyMedium);
  vertical-align: middle;
}

#leaderboard_table .loading-box {
  height: 20px;
}

#leaderboard_table tbody tr.loading-row:hover {
  background-color: transparent !important;
  cursor: default !important;
}
/******** RWD ********/

@media (max-width: 1300px) {
  #box_main {
    width: 588px;
    padding-left: 0px;
  }

  .box_title {
    display: none;
  }

  #leaderboard_table thead th {
    font-size: 12px;
  }

  #leaderboard_table tbody tr {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  #box_main {
    width: 350px;
  }

  #box_table {
    padding: 12px;
  }

  #leaderboard_table thead th:first-child,
  #leaderboard_table tbody td:first-child {
    display: none;
  }
}

/* -------- Dark mode -------- */

body.dark-mode #box_table {
  height: 720px;
  background-color: var(--color-black);
  border-radius: 12px;
  margin-bottom: 20px;
  padding: 24px;
}

body.dark-mode #leaderboard_table thead th {
  color: var(--color-greyLight);
}

body.dark-mode #leaderboard_table tbody tr {
  color: var(--color-white);
}

body.dark-mode #leaderboard_table tbody tr:hover {
  background-color: var(--color-greyDark);
}

body.dark-mode #leaderboard_table th.active::after {
  border-top: 6px solid var(--color-greyLight);
}
