/* Results pages: Results/a.html, a01.html, scorecards */

.round-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 16px;
}

.round-button,
.round-label {
  display: inline-block;
  border: 1px solid #8d8d8d;
  background: linear-gradient(#f7f7f7, #dedede);
  color: #000;
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 3px;
  line-height: 1.25;
}

.round-button:hover,
.round-button:focus {
  background: linear-gradient(#fff, #d4d4d4);
  border-color: #555;
  text-decoration: none;
}

.round-label {
  font-weight: bold;
  background: #f5f5f5;
}

.round-button.disabled {
  opacity: 0.35;
  pointer-events: none;
}

#stats {
  margin-top: 10px;
}

#stats table,
#scorecard table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
}

#stats th,
#stats td,
#scorecard th,
#scorecard td {
  padding: 6px 8px;
  border-bottom: 1px solid #e6e6e6;
  vertical-align: middle;
}

#stats th,
#scorecard th {
  text-align: left;
  background: #f0f0f0;
  border-top: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
  white-space: nowrap;
}

#stats tbody tr:nth-child(even),
#scorecard tbody tr:nth-child(even) {
  background: #fafafa;
}

#stats tbody tr:hover,
#scorecard tbody tr:hover {
  background: #fffbe8;
}

#stats td:nth-child(1),
#stats th:nth-child(1) {
  width: 54px;
}

#stats td:nth-child(2),
#stats th:nth-child(2) {
  min-width: 180px;
  font-weight: 600;
}

#stats td:nth-child(3),
#stats th:nth-child(3),
#stats td:nth-child(4),
#stats th:nth-child(4) {
  width: 86px;
}

.num {
  text-align: right;
  white-space: nowrap;
}

.center {
  text-align: center;
  white-space: nowrap;
}

.spacer {
  width: 12px;
  min-width: 12px;
  background: transparent;
  border-bottom: 0;
}

.result-score {
  display: inline-block;
  min-width: 64px;
  text-align: center;
  font-weight: bold;
  padding: 3px 7px;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 3px;
}

#scorecard h2 {
  margin-bottom: 4px;
}

#scorecard table {
  min-width: 760px;
}

@media (max-width: 720px) {
  .round-buttons {
    align-items: stretch;
  }

  .round-button,
  .round-label {
    flex: 1 1 auto;
    text-align: center;
  }

  #stats table,
  #scorecard table {
    min-width: 760px;
  }
}

@media print {
  .round-buttons,
  .top-buttons,
  nav {
    display: none;
  }

  #stats table,
  #scorecard table {
    min-width: 0;
    font-size: 11px;
  }

  #stats th,
  #stats td,
  #scorecard th,
  #scorecard td {
    padding: 3px 4px;
  }
}