/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-okbkkn37ik] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-okbkkn37ik] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Pages/Referee.razor.rz.scp.css */
.ref-page[b-m1exvsqlhe] {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 0 2rem;
}

.ref-title[b-m1exvsqlhe] {
    margin: 0 0 1rem;
}

.ref-card[b-m1exvsqlhe] {
    background: var(--tms-surface);
    border: 1px solid var(--tms-border);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px var(--tms-overlay);
}

.ref-card-header[b-m1exvsqlhe] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ref-table-label[b-m1exvsqlhe] {
    font-size: 1.1rem;
    font-weight: 700;
}

.ref-board-link[b-m1exvsqlhe] {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tms-primary);
    text-decoration: none;
    white-space: nowrap;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--tms-border);
    border-radius: 8px;
}

.ref-status-chip[b-m1exvsqlhe] {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--tms-border);
    color: var(--tms-text-secondary);
}

.ref-status-live[b-m1exvsqlhe] {
    background: #1e8a5f;
    color: #ffffff;
}

.ref-status-paused[b-m1exvsqlhe] {
    background: #d9a91b;
    color: #1a1a1a;
}

.ref-sets-history[b-m1exvsqlhe] {
    font-size: 0.85rem;
    color: var(--tms-text-secondary);
    margin-bottom: 0.5rem;
}

/* Reserves the height of one reminder line at all times — with or without an active reminder,
   the score tiles below always start at the same vertical position, never jump down/up. */
.ref-reminder-slot[b-m1exvsqlhe] {
    min-height: 2.35rem;
}

.ref-reminder-banner[b-m1exvsqlhe] {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.6rem;
    background: rgba(217, 169, 27, 0.15);
    color: #8a6d10;
}

/* Calmer variant for routine/expected states (e.g. "set finished") vs. the yellow caution color
   used for in-play reminders (towel break, side switch). */
.ref-reminder-banner.ref-reminder-neutral[b-m1exvsqlhe] {
    background: var(--tms-border);
    color: var(--tms-text-secondary);
}

.ref-serve-toss[b-m1exvsqlhe] {
    padding: 1rem 0 0.5rem;
}

.ref-serve-toss-label[b-m1exvsqlhe] {
    text-align: center;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.ref-serve-prompt[b-m1exvsqlhe] {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ref-serve-prompt-btn[b-m1exvsqlhe] {
    flex: 1 1 50%;
    min-height: 4.5rem;
    border: 2px dashed var(--tms-primary);
    border-radius: 12px;
    background: transparent;
    color: var(--tms-primary);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
}

.ref-serve-prompt-btn:active[b-m1exvsqlhe] {
    background: rgba(27, 110, 194, 0.1);
}

.ref-serve-badge[b-m1exvsqlhe] {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    margin-top: 0.15rem;
}

.ref-players-row[b-m1exvsqlhe] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.ref-vs[b-m1exvsqlhe] {
    color: var(--tms-text-secondary);
    font-weight: 400;
}

.ref-score-board[b-m1exvsqlhe] {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.ref-score-btn[b-m1exvsqlhe] {
    flex: 1 1 50%;
    min-height: 7.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border: none;
    border-radius: 12px;
    background: var(--tms-primary);
    color: #ffffff;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.ref-score-btn:active[b-m1exvsqlhe] {
    background: var(--tms-primary-dark);
    transform: scale(0.98);
}

.ref-score-btn:disabled[b-m1exvsqlhe] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Non-interactive echo of the score tile, used to show a just-finished set's final score between
   sets — same size/shape as the live tile so the card doesn't change shape when a set ends, just
   muted colors so it doesn't look tappable. */
.ref-score-btn-finished[b-m1exvsqlhe] {
    background: var(--tms-border);
    color: var(--tms-text);
    cursor: default;
}

.ref-player-name[b-m1exvsqlhe] {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 0 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.ref-score-number[b-m1exvsqlhe] {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1;
}

.ref-undo-row[b-m1exvsqlhe] {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ref-undo-btn[b-m1exvsqlhe] {
    flex: 1 1 50%;
    min-height: 2.75rem;
    border: 1px solid var(--tms-border);
    border-radius: 8px;
    background: transparent;
    color: var(--tms-text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    touch-action: manipulation;
}

.ref-undo-btn:disabled[b-m1exvsqlhe] {
    opacity: 0.4;
    cursor: not-allowed;
}

.ref-secondary-actions[b-m1exvsqlhe] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

/* Fixed 2-column grid, same width as .ref-score-board/.ref-undo-row above it, so the left/right
   button always lines up under the matching player — never reflows since both cells always render
   (disabled, not removed) and the column widths are fixed regardless of label length. */
.ref-two-col-row[b-m1exvsqlhe] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.ref-full-btn[b-m1exvsqlhe] {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Visually separated from routine actions (own row, dashed divider above) so it can't be mistaken
   for or accidentally hit next to Přerušit/Timeout — always the last, fixed element in the card. */
.ref-incident-row[b-m1exvsqlhe] {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--tms-border);
}

.ref-secondary-btn[b-m1exvsqlhe] {
    flex: 1 1 auto;
    min-height: 2.75rem;
    padding: 0 1rem;
    border: 1px solid var(--tms-border);
    border-radius: 8px;
    background: var(--tms-surface);
    color: var(--tms-text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
}

.ref-secondary-btn.ref-primary[b-m1exvsqlhe] {
    background: var(--tms-primary);
    border-color: var(--tms-primary);
    color: #ffffff;
}

.ref-secondary-btn.ref-danger[b-m1exvsqlhe] {
    color: #c0392b;
    border-color: #c0392b;
}

.ref-incident-form[b-m1exvsqlhe] {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--tms-border);
}

.ref-incident-form > *[b-m1exvsqlhe] {
    margin-bottom: 0.6rem;
}

.ref-error[b-m1exvsqlhe] {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(192, 57, 43, 0.12);
    color: #c0392b;
    font-weight: 600;
}
