/* Dart League custom styles */

.table th {
    white-space: nowrap;
}

.form-control-sm {
    min-width: 60px;
}

.text-success {
    font-weight: bold;
}

.text-danger {
    font-weight: bold;
}

/* Paper scoresheet layout — mirrors the printed league sheet.
   Used by the scoresheet entry page and the public session page. */
.paper { background: #fff; color: #111; padding: 16px 20px; border: 1px solid #ccc; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.paper-head { display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; align-items: baseline; font-weight: 600; margin-bottom: 8px; }
.paper-head u { text-decoration: none; border-bottom: 1px solid #111; padding: 0 1.5rem; font-weight: 400; }
.game-row { margin-bottom: 14px; }
.game-label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; min-height: 31px; }

.paper-grid { border-collapse: collapse; width: 100%; table-layout: fixed; }
.paper-grid th, .paper-grid td { border: 1.5px solid #222; padding: 0; height: 30px; }
.paper-grid th { font-size: .7rem; font-weight: 400; color: #999; text-align: center; height: 20px; white-space: nowrap; }
.paper-grid th.name-col { width: 9.5rem; text-align: left; padding-left: 4px; color: #333; font-size: .75rem; }

.name-cell { padding: 0 6px !important; white-space: nowrap; overflow: hidden; }
.pname { display: inline-block; padding: 0 8px; border: 2px solid transparent; border-radius: 50%; font-size: 1rem; line-height: 1.35; color: #1f3a8a; }
.pname .sub { font-size: .65rem; color: #888; margin-left: 3px; }
.name-cell.circled .pname { border-color: #111; }

.score-cell { position: relative; text-align: center; font-size: 1rem; }
.score-cell.ton::after, .score-cell.bb::after { content: ""; position: absolute; inset: 2px 1px; border: 2px solid #111; border-radius: 50%; pointer-events: none; }
.score-cell.bb::after { border-color: #c0392b; }

@media (max-width: 575.98px) {
    .paper { padding: 10px 8px; }
    .paper-grid th.name-col { width: 6.5rem; }
    .pname { padding: 0 4px; font-size: .9rem; }
    .score-cell { font-size: .85rem; }
}
