.event-scoreboard-results {
  color: #222;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  max-width: 100%;
  min-width: 0;
}

.event-results .time {
  color: #264d6b;
  font-size: 0.9em;
  margin: 0 0 0.75em;
}

.event-results-title {
  color: #264d6b;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.15em;
  font-weight: bold;
  margin: 0 0 0.45em;
}

.event-results-group + .event-results-group {
  margin-top: 1.75em;
}

.event-results-table-wrap {
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: #648096 #dce5eb;
  scrollbar-width: auto;
  touch-action: pan-x;
  width: 100%;
}

.event-results-table-wrap::-webkit-scrollbar {
  height: 12px;
}

.event-results-table-wrap::-webkit-scrollbar-track {
  background: #dce5eb;
}

.event-results-table-wrap::-webkit-scrollbar-thumb {
  background: #648096;
  border: 2px solid #dce5eb;
  border-radius: 6px;
}

.event-results-table {
  border-collapse: separate;
  border-spacing: 0;
  color: #222;
  font-size: 11px;
  line-height: 1.2;
  max-width: none !important;
  width: max-content;
}

.event-results-table th {
  border-bottom: 3px solid #264d6b;
  color: #264d6b;
  font-weight: bold;
  padding: 5px 3px 4px;
  text-align: center;
  vertical-align: bottom;
  white-space: nowrap;
}

.event-results-table th.event-results-name {
  text-align: left;
}

.event-results-table td {
  border-bottom: 1px solid #e6e6e6;
  padding: 5px 3px;
  text-align: center;
  vertical-align: middle;
}

.event-results-table tr:last-child td {
  border-bottom: 1px solid #e6e6e6;
}

.event-results-table td.event-results-rank {
  color: #555;
  font-size: 0.92em;
  padding-left: 0;
  padding-right: 2px;
  width: 1.2em;
}

.event-results-table td.event-results-name {
  color: #222;
  font-weight: normal;
  max-width: 120px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-results-table td.event-results-total,
.event-results-table th.event-results-total {
  color: #111;
  font-weight: bold;
  white-space: nowrap;
}

.event-results-table .day-cell {
  box-sizing: border-box;
  min-width: 44px;
  padding-left: 3px;
  padding-right: 3px;
  vertical-align: middle;
}

/* Keep rank, name, miles and km visible while days scroll. */
.event-results-table th:nth-child(-n+4),
.event-results-table td:nth-child(-n+4) {
  background: #fff !important;
  box-sizing: border-box;
  position: sticky;
  z-index: 2;
}

.event-results-table th:nth-child(-n+4) {
  z-index: 3;
}

.event-results-table th:nth-child(1),
.event-results-table td:nth-child(1) {
  left: 0;
  min-width: 18px;
  padding-left: 0;
  padding-right: 2px;
  width: 18px;
}

.event-results-table th:nth-child(2),
.event-results-table td:nth-child(2) {
  left: 18px;
  max-width: 120px;
  min-width: 120px;
  padding-left: 4px;
  padding-right: 4px;
  width: 120px;
}

.event-results-table th:nth-child(3),
.event-results-table td:nth-child(3) {
  left: 138px;
  min-width: 40px;
  padding-left: 2px;
  padding-right: 2px;
  width: 40px;
}

.event-results-table th:nth-child(4),
.event-results-table td:nth-child(4) {
  box-shadow: 6px 0 6px -4px rgba(0, 0, 0, 0.25);
  left: 178px;
  min-width: 40px;
  padding-left: 2px;
  padding-right: 4px;
  width: 40px;
}

.event-results-table .day-total {
  color: #111;
  font-weight: bold;
  line-height: 1.2;
}

.event-results-table .day-cumulative,
.event-results-table .day-km {
  color: #555;
  font-size: 85%;
  font-weight: normal;
  line-height: 1.2;
  margin-top: 1px;
}

.event-results-table .day-cell-highlighted {
  background-color: #fde8e8;
}

.event-results-table .day-cell-highlighted .day-total {
  color: #c00;
  font-weight: bold;
}

.event-results-scroll-bar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 8px;
}

.event-results-earlier {
  background: #fff;
  border: 1px solid #264d6b;
  border-radius: 3px;
  color: #264d6b;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  margin: 0;
  padding: 3px 10px 4px;
}
