@media print {
    .sidebar,
    .top-row,
    .navbar,
    .nav-scrollable,
    .page > .sidebar {
        display: none !important;
    }

    .page {
        display: block !important;
    }

    main,
    article,
    .content,
    .px-4 {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }

    .no-print,
    h1 {
        display: none !important;
    }
}





html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTI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GwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.slot-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    width: 180px;
    background: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

    .slot-card.empty {
        border-left: 4px solid #0d6efd;
    }

    .slot-card.filled {
        border-left: 4px solid #198754;
    }

.slot-header {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.slot-name {
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.slot-card:hover {
    transform: translateY(-1px);
    transition: 0.1s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    font-size: 14px;
}

.group-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
}

    .group-status.open {
        background: #e7f1ff;
        color: #0d6efd;
    }

    .group-status.full {
        background: #f8d7da;
        color: #dc3545;
    }

.slot-card.mine {
    border: 2px solid #0d6efd;
    background: #f0f6ff;
    box-shadow: 0 0 0 2px rgba(13,110,253,0.15);
}

.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-day {
    border: 1px solid #ddd;
    min-height: 90px;
    padding: 6px;
    border-radius: 6px;
    background: white;
    font-size: 12px;
}

    .calendar-day.other-month {
        background: #f8f9fa;
        color: #aaa;
    }
        .calendar-day.other-month .day-number {
            color: #6d756f;
            font-weight: 600;
        }

.day-number {
    font-weight: bold;
    margin-bottom: 4px;
}

.tournament-pill {
    display: block;
    background: #0d6efd;
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    margin-bottom: 3px;
    text-decoration: none;
}


.calendar-day {
    border: 1px solid #e0e0e0;
    min-height: 120px;
    padding: 6px;
    border-radius: 8px;
    background: white;
}

    .calendar-day.other-month {
        background: #e2e6ea;
        color: #6c757d;
        opacity: 0.6;
        border-color: #d0d4d9;
    }

.day-number {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 6px;
}

.tournament-card {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 6px;
    margin-bottom: 6px;
    font-size: 12px;
}

.tournament-title {
    font-size: .90rem;
    font-weight: 700;
    color: var(--club-primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.tournament-actions {
    margin-top: 4px;
    display: flex;
    gap: 4px;
}

.no-event {
    font-size: 11px;
    color: #999;
}

.calendar-day.today {
    border: 2px solid #0d6efd;
    background: #f0f7ff;
}

    .calendar-day.today .day-number {
        display: inline-block;
        background: #0d6efd;
        color: white;
        border-radius: 50%;
        width: 28px;
        height: 28px;
        line-height: 28px;
        text-align: center;
        font-weight: bold;
    }

.item {
    margin-bottom: 12px;
}

.grid-container {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #ddd;
}

.admin-grid {
    width: 100%;
    border-collapse: collapse;
}

    .admin-grid thead th {
        position: sticky;
        top: 0;
        background: white;
        cursor: pointer;
        padding: 10px;
        border-bottom: 2px solid #ccc;
        z-index: 2;
    }

    .admin-grid td {
        padding: 8px;
        border-bottom: 1px solid #eee;
    }

.grid-toolbar {
    margin-bottom: 10px;
}

.grid-footer {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.calendar-page {
    --club-primary: #1f3d2b;
    --club-accent: #c9a24a;
    --calendar-border: #d8d8d8;
    --calendar-muted-bg: #f6f7f5;
    border: 1px solid var(--calendar-border);
    border-radius: 14px;
    overflow: hidden;
    background: white;
}

.calendar-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: var(--club-primary);
    color: white;
}

.calendar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.club-logo-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid var(--club-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.calendar-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #e6d6a8;
}

.calendar-title-bar h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.calendar-user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.welcome-text {
    font-size: 0.95rem;
}

.calendar-month-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 16px 20px;
    background: var(--calendar-muted-bg);
    border-bottom: 1px solid var(--calendar-border);
}

.calendar-month-title {
    min-width: 260px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--club-primary);
}

.calendar-admin-row {
    padding: 10px 20px;
    border-bottom: 1px solid var(--calendar-border);
    background: #fbfbfa;
}

.calendar-weekday-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #eceee9;
    border-bottom: 1px solid var(--calendar-border);
}

    .calendar-weekday-row div {
        padding: 10px 8px;
        text-align: center;
        font-size: 0.82rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #39443c;
        border-right: 1px solid var(--calendar-border);
    }

        .calendar-weekday-row div:last-child {
            border-right: none;
        }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day.other-month {
    min-height: 120px;
    background: #f3f3f1;
    color: #aaa;
    border-right: 1px solid var(--calendar-border);
    border-bottom: 1px solid var(--calendar-border);
    padding: 8px;
}

.day-number {
    font-size: 0.85rem;
    font-weight: 600;
}

.club-logo-wrap {
    width: 82px;
    height: 82px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.club-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.calendar-user-area {
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-switch {
    margin-right: 12px;
    padding-right: 18px;
    border-right: 1px solid rgba(255,255,255,.25);
}

    .admin-switch label {
        color: white;
        font-weight: 500;
        cursor: pointer;
        user-select: none;
    }

.admin-pill-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 18px;
    margin-right: 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    user-select: none;
}

    .admin-pill-toggle input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.admin-pill-track {
    width: 46px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    position: relative;
    transition: background 160ms ease;
}

.admin-pill-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    transition: transform 160ms ease;
}

.admin-pill-toggle input:checked + .admin-pill-track {
    background: var(--club-accent);
}

    .admin-pill-toggle input:checked + .admin-pill-track .admin-pill-thumb {
        transform: translateX(22px);
    }

.admin-pill-label {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.calendar-day {
    position: relative;
    min-height: 130px;
    padding: 8px;
    border-right: 1px solid var(--calendar-border);
    border-bottom: 1px solid var(--calendar-border);
    background: white;
}

.day-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
}

.day-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: #59635c;
}

.calendar-day.today .day-number {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--club-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tournament-card {
    border-left: 4px solid var(--club-primary);
    background: #f8faf7;
    border-radius: 8px;
    padding: 8px 9px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

    .tournament-card.cancelled {
        opacity: 0.65;
        border-left-color: #999;
    }

.tournament-card-header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
}

.tournament-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--club-primary);
    line-height: 1.2;
}



.status-open {
    background: #d9f5d8;
    color: #216b2b;
}

.status-upcoming {
    background: #dceeff;
    color: #0d4b87;
}

.status-completed {
    background: #ececec;
    color: #555;
}

.status-cancelled {
    background: #ffd9d9;
    color: #8b2020;
}

.status-archived {
    background: #e5e2d8;
    color: #6d6143;
}


.tournament-meta i,
.status-badge i {
    margin-right: 5px;
}

.status-badge i {
    font-size: .75rem;
}

.tournament-meta i {
    color: var(--club-primary);
    width: 14px;
}

.tournament-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.calendar-action {
    border: none;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

    .calendar-action.primary {
        background: var(--club-primary);
        color: white;
    }

    .calendar-action.secondary {
        background: white;
        color: var(--club-primary);
        border: 1px solid var(--club-primary);
    }

.create-tournament-button {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--club-accent);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0.85;
}

    .create-tournament-button:hover {
        opacity: 1;
    }

.calendar-day.other-month {
    background: #eceee9;
    color: #7f7f7f;
}

.admin-page {
    background: white;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding: 18px 22px;
    border: 1px solid var(--calendar-border);
    border-radius: 14px;
    background: #f6f7f5;
}

.admin-eyebrow {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    color: var(--club-primary);
    margin-bottom: 2px;
}

.admin-page-header h1 {
    margin: 0;
    color: var(--club-primary);
    font-size: 1.8rem;
    font-weight: 700;
}

.admin-grid-shell {
    border: 1px solid var(--calendar-border);
    border-radius: 14px;
    overflow: hidden;
    background: white;
}

.archive-pill-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

    .archive-pill-toggle input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.archive-pill-track {
    width: 46px;
    height: 24px;
    border-radius: 999px;
    background: #cfd4cf;
    position: relative;
    transition: background 160ms ease;
}

.archive-pill-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    transition: transform 160ms ease;
}

.archive-pill-toggle input:checked + .archive-pill-track {
    background: var(--club-accent);
}

    .archive-pill-toggle input:checked + .archive-pill-track .archive-pill-thumb {
        transform: translateX(22px);
    }

.archive-pill-label {
    font-size: .9rem;
    font-weight: 700;
    color: var(--club-primary);
}

.tournament-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.status-open {
    background: #d9f5d8;
    color: #216b2b;
}

.status-upcoming {
    background: #dceeff;
    color: #0d4b87;
}

.status-completed {
    background: #ececec;
    color: #555;
}

.status-cancelled {
    background: #ffd9d9;
    color: #8b2020;
}

.status-archived {
    background: #e5e2d8;
    color: #6d6143;
}

.archive-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.archive-pill-track {
    background: #d3d3d3;
    border: 1px solid #b7b7b7;
}

.archive-pill-toggle input:checked + .archive-pill-track {
    background: var(--club-primary);
    border-color: var(--club-primary);
}

.archive-pill-thumb {
    transition: transform .18s ease, box-shadow .18s ease;
}

.archive-pill-toggle:hover .archive-pill-thumb {
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.calendar-user-area .toggle-switch-label {
    color: white;
}