.ranking {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0px;
  border-top: 1px solid #dee2e6;
  border-left: 1px solid #dee2e6;
  margin-bottom: 6px;
}

.ranking td,
.ranking th {
  border-top-width: 0px;
  border-bottom: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
}

.ranking-dark {
  border-top: 1px solid #333333 !important;
  border-left: 1px solid #333333 !important;
}

.ranking-dark td,
.ranking-dark th {
  border-bottom: 1px solid #333333 !important;
  border-right: 1px solid #333333 !important;
}

.ranking .ranking_position {
  text-align: right;
  padding-right: 2px;
}

.ranking .ranking_name {
  text-align: left;
  padding-left: 5px;
  padding-right: 5px;
  /* white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; */
}

.ranking .ranking_problem_box {
  text-align: center;
  padding-left: 0px;
  padding-right: 0px;
}

.ranking .ranking_sum {
  text-align: right;
  padding-right: 20px;
}

.ranking .ranking_total_box {
  text-align: center;
  padding-left: 0px;
  padding-right: 0px;
}

.ranking .problem_score {
  width: 50%;
  display: inline-block;
  text-align: center;
  padding-left: 5px;
  padding-right: 5px;
  margin: 0px;
}

.ranking .accepted {
  background-color: #c1e1c1;
  color: #228b22;
  font-weight: bold;
}

.ranking .wrong {
  color: #e00000;
  font-weight: bold;
}

.ranking .unknown {
  color: #04a4e4;
  font-weight: bold;
}

.ranking .problem_penalty {
  width: 40%;
  display: inline-block;
  color: #777;
  font-size: 65%;
  text-align: right;
  padding: 0px;
  margin: 0px;
  position: relative;
  top: +4px;
}

.ranking-dark .problem_penalty {
  color: #999 !important;
  font-size: 75%;
}

.problem_penalty .total_tries_wrong {
  color: #e00000;
}

.problem_penalty .total_tries_unknown {
  color: #04a4e4;
}

.ranking .problem_penalty div {
  width: 100%;
  padding: 0px;
  margin: 0px;
  line-height: 1;
}

.ranking .total_score {
  width: 50%;
  display: inline-block;
  font-weight: bold;
  text-align: right;
  margin: 0px;
}

.ranking .total_penalty {
  width: 40%;
  display: inline-block;
  color: #777;
  font-size: 65%;
  text-align: right;
  margin: 0px;
}

.ranking-dark .total_penalty {
  color: #999 !important;
  font-size: 75%;
}

.sticky-left {
  left: 0;
  position: sticky;
  z-index: 1000;
  border-left: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
}

.sticky-right {
  right: 0px;
  position: sticky;
  z-index: 1000;
  border-left: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
}

.ranking tr:nth-of-type(2n+0) td {
  background-color: #f2f2f2;
}

.ranking tr:nth-of-type(2n+1) td {
  background-color: white;
}

.ranking-dark tr:nth-of-type(2n+0) td {
  background-color: #181818 !important;
}

.ranking-dark tr:nth-of-type(2n+1) td {
  background-color: black !important;
}

.ranking th:first-child,
.ranking td:first-child {
  border-right-width: 0px !important;
}

.ranking th:nth-last-child(2),
.ranking td:nth-last-child(2) {
  border-right-width: 0px !important;
}

.ranking-dark .contestant_name {
  font-weight: bold;
  font-size: 110%;
}

.ranking-dark .user_organization {
  color: #999 !important;
}
