.front-nine-subtotal td {
  padding-top: 17px;
  padding-bottom: 17px;
  border-top: 8px solid var(--wash);
  color: var(--green);
}

/* Clear group divisions make the compact phone scorecards easier to scan. */
.paired-scorecard-table th,
.paired-scorecard-table td,
.course-scorecard-table th,
.course-scorecard-table td {
  text-align: center;
}

.course-scorecard-table th:first-child {
  text-align: center;
}

.paired-scorecard-table th:nth-child(1),
.paired-scorecard-table td:nth-child(1),
.paired-scorecard-table th:nth-child(3),
.paired-scorecard-table td:nth-child(3),
.paired-scorecard-table th:nth-child(5),
.paired-scorecard-table td:nth-child(5),
.course-scorecard-table th:nth-child(1),
.course-scorecard-table td:nth-child(1) {
  border-right: 2px solid var(--line);
}

.paired-scorecard-subtotal td:nth-child(1),
.paired-scorecard-subtotal td:nth-child(3),
.paired-scorecard-subtotal td:nth-child(5) {
  border-right: 2px solid var(--line);
}

.paired-scorecard-subtotal td,
.paired-scorecard-total td {
  color: var(--green);
  font-weight: 800;
}

.paired-scorecard-total td {
  border-top: 8px solid var(--wash);
}

.standard-scorecard-table th,
.standard-scorecard-table td {
  text-align: center;
}

.standard-scorecard-table th:nth-child(1),
.standard-scorecard-table td:nth-child(1),
.standard-scorecard-table th:nth-child(3),
.standard-scorecard-table td:nth-child(3),
.standard-scorecard-table th:nth-child(5),
.standard-scorecard-table td:nth-child(5) {
  border-right: 2px solid var(--line);
}

.standard-scorecard-table .scorecard-total-row td {
  border-top: 8px solid var(--wash);
}

.scorecard-verification {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--wash);
  font-size: .86rem;
}

.scorecard-verification h3 { margin: 0 0 7px; font-size: .95rem; }
.scorecard-verification p, .scorecard-verification ul { margin: 0; padding-left: 18px; }
.scorecard-verification li + li { margin-top: 6px; }

/* Administrator reopening controls for submitted paired scorecards. */
.reopen-paired-list { margin-top: .9rem; }
.reopen-scorecard-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line, #28513f); }
.reopen-scorecard-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.reopen-scorecard-actions .secondary { font-size: .82rem; padding: .5rem .65rem; }
@media (max-width: 520px) { .reopen-scorecard-row { align-items: flex-start; flex-direction: column; } .reopen-scorecard-actions { justify-content: flex-start; } }

.provisional-result { opacity: .52; }
.provisional-conflict { color: #ff8d8d; opacity: .9; }
.result-warning { display: inline-flex; justify-content: center; align-items: center; width: 1.1rem; height: 1.1rem; margin-left: .25rem; border-radius: 50%; background: #b93636; color: white; font-size: .76rem; font-weight: 800; }
.finish-check-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line, #28513f); }
.finish-ok { color: var(--accent, #6bd195); font-size: .82rem; text-align: right; }
.finish-actions { display: flex; gap: .4rem; }
.finish-actions .secondary { padding: .45rem .55rem; font-size: .78rem; }
.finish-submitted { display: block; margin-top: .18rem; color: var(--muted, #9eb8aa); font-size: .75rem; }
.finish-player-status { font-size: .93rem; }
.finish-unverified .finish-player-status { color: #ff8d8d; font-weight: 700; }
.finish-not-submitted .finish-player-status,
.finish-awaiting-submission { color: #ffd466; font-weight: 700; }
.finish-awaiting-submission { margin: .15rem 0 .6rem; font-size: .86rem; }
.finish-commit-note { margin: .9rem 0 0; font-size: .8rem; color: var(--muted, #9eb8aa); }
.pcc-field { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pcc-field input { width: 5.5rem; text-align: right; }
.pcc-section { margin-top: 1.1rem; padding: .85rem; border-top: 1px solid var(--line, #28513f); border-bottom: 1px solid var(--line, #28513f); background: var(--wash, rgba(0,0,0,.08)); }
.pcc-section h3 { margin: 0 0 .2rem; font-size: .95rem; }
.pcc-section p { margin: 0 0 .75rem; font-size: .8rem; }
.scorecard-out-repeat td { border-top: 1px solid var(--line, #28513f); }
.paired-scorecard-table .scorecard-out-repeat td { border-top: 1px solid var(--line, #28513f); }
@media (max-width: 520px) { .finish-check-row { align-items: flex-start; flex-direction: column; } .finish-ok { text-align: left; } }

/* Keep the two reviewing columns together rather than stretching them to the
   edges of a wide phone or tablet screen. */
.submitted-scorecard-table { width: min(100%, 360px); margin: 0 auto; table-layout: fixed; }
.submitted-scorecard-table th, .submitted-scorecard-table td { padding: 9px 4px; text-align: center; }
.submitted-scorecard-table th:nth-child(1), .submitted-scorecard-table td:nth-child(1) { width: 16%; text-align: left; }
.submitted-scorecard-table th:nth-child(2), .submitted-scorecard-table td:nth-child(2), .submitted-scorecard-table th:nth-child(3), .submitted-scorecard-table td:nth-child(3) { width: 16%; }
.submitted-scorecard-table th:nth-child(4), .submitted-scorecard-table td:nth-child(4), .submitted-scorecard-table th:nth-child(5), .submitted-scorecard-table td:nth-child(5) { width: 26%; }
.submitted-scorecard-table th:nth-child(4), .submitted-scorecard-table td:nth-child(4) { border-left: 1px solid var(--line, #28513f); }
.submitted-scorecard-subtotal td, .submitted-scorecard-total td { color: var(--green); font-weight: 800; }
.submitted-scorecard-subtotal td { border-top: 6px solid var(--wash, rgba(0,0,0,.08)); }
.submitted-scorecard-total td { border-top: 8px solid var(--wash, rgba(0,0,0,.08)); }
@media (max-width: 360px) { .submitted-scorecard-table { font-size: .84rem; } .submitted-scorecard-table th, .submitted-scorecard-table td { padding: 8px 2px; } }

/* Mirrors the Out/In break on the review card within the staff entry grid. */
.scorecard-grid > .scorecard-subtotal { color: var(--green); font-weight: 800; border-top: 6px solid var(--wash, rgba(0,0,0,.08)); }
