html, body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
}

.page {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    background-color: #03173d;
    color: white;
    width: 220px;
    flex-shrink: 0;
}

main {
    flex: 1;
}

.content {
    padding-top: 1.5rem;
}

.loading-indicator {
    padding: 2rem;
    text-align: center;
    color: #666;
}

#blazor-error-ui {
    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 {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    background-color: #000;
    color: #fff;
    padding: 1rem 1.5rem;
}

.app-body {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-start;
    background-image: url('/images/background.jpg');
    background-size: cover;
    background-position: center;
    padding: 2rem;
}

.app-panel {
    width: 100%;
}

.app-panel-title {
    padding: 0.75rem 1rem;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-footer {
    flex-shrink: 0;
    background-color: #757575;
    color: #fff;
    text-align: center;
    padding: 0.5rem;
}

.cursor-pointer {
    cursor: pointer;
}

.round-row {
    padding: 0.75rem 1rem;
    cursor: pointer;
}

.round-row:nth-child(even) {
    background-color: #eeeeee;
}

.round-row-top,
.round-row-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 1.5rem;
}

.round-row-top {
    font-weight: 500;
}

.round-row-bottom {
    margin-top: 0.25rem;
    color: rgba(0, 0, 0, 0.72);
}

.scorecard-table {
    width: 100%;
}

.scorecard-table th {
    background-color: #e2574c;
    color: #fff;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.scorecard-table td {
    padding: 0.5rem 0.75rem;
}

.scorecard-row {
    cursor: pointer;
}

.scorecard-summary-row {
    background-color: #e0e0e0;
    font-weight: 600;
}

/* MudRadioGroup defaults to a wrapping row (.mud-radio-group { flex-direction: row; flex-wrap:
   wrap }), so narrow single-digit options like Score/Putts can end up two-per-line instead of one
   column. Force a single vertical column regardless of label width (GRA-51 hole-entry dialog).
   The Class parameter lands on the outer mud-input-control wrapper, not .mud-radio-group itself,
   so this has to target it as a descendant rather than assuming they're the same element. */
.hole-entry-radio-group .mud-radio-group {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
}
