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: #b32121;
    padding: 1rem;
    color: white;
}

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

:root {
    --sr-bg: #f3f6fb;
    --sr-surface: #ffffff;
    --sr-border: #e5e7eb;
    --sr-text: #111827;
    --sr-muted: #6b7280;
    --sr-primary: #2563eb;
    --sr-primary-dark: #1d4ed8;
    --sr-sidebar: #265287;
    --sr-sidebar-muted: #94a3b8;
    --sr-sidebar-hover: #156cd6;
}

html,
body {
    background: var(--sr-bg);
    color: var(--sr-text);
    font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 14px;
    margin: 0;
}

a {
    color: var(--sr-primary);
}

    a:hover {
        color: var(--sr-primary-dark);
    }

.page {
    min-height: 100vh;
    background: var(--sr-bg);
}

.sidebar {
    background: var(--sr-sidebar);
    color: #fff;
    min-height: 100vh;
    width: 245px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    padding: 1rem;
    box-shadow: 8px 0 20px rgba(15, 23, 42, 0.08);
    overflow-y: auto;
}

    .sidebar .brand {
        color: #fff;
        font-weight: 700;
        font-size: 1.4rem;
        display: block;
        margin-bottom: 1.5rem;
        padding: 0.65rem 0.8rem;
        text-decoration: none;
    }

    .sidebar a {
        display: block;
        color: #fff;
        text-decoration: none;
        padding: 0.65rem 0.8rem;
        border-radius: 0.65rem;
        margin-bottom: 0.25rem;
        font-weight: 500;
    }

        .sidebar a:hover {
            background: var(--sr-sidebar-hover);
            color: #fff;
        }

        .sidebar a.active {
            background: var(--sr-primary);
            color: #fff;
        }

    .sidebar hr {
        border-color: rgba(255, 255, 255, 0.15);
        margin: 1rem 0;
    }

.main-content {
    margin-left: 245px;
    min-height: 100vh;
}

.topbar {
    background: var(--sr-surface);
    border-bottom: 1px solid var(--sr-border);
    min-height: 58px;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sr-text);
}

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

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
}

.topbar-link {
    font-size: 0.9rem;
    text-decoration: none;
}

.logout-form {
    margin: 0;
}

.logout-button {
    border: none;
    background: none;
    color: var(--sr-primary);
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
}

    .logout-button:hover {
        color: var(--sr-primary-dark);
        text-decoration: underline;
    }

.page-content {
    padding: 1.5rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

    .page-header h1 {
        font-size: 1.65rem;
        font-weight: 700;
        margin: 0;
        letter-spacing: -0.025em;
    }

.text-muted {
    color: var(--sr-muted) !important;
}

.card {
    border: 1px solid var(--sr-border);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.card-body {
    padding: 1.25rem;
}

.dashboard-card {
    min-height: 145px;
}

.dashboard-card-link {
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    cursor: pointer;
}

    .dashboard-card-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
    }

.dashboard-label {
    font-size: 0.8rem;
    color: var(--sr-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 12px;
}

.dashboard-value {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
}

.table {
    margin-bottom: 0;
}

    .table thead th {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #64748b;
        border-bottom: 1px solid var(--sr-border);
        background: #f8fafc;
    }

    .table tbody td {
        border-color: #eef2f7;
        vertical-align: middle;
    }

.table-hover tbody tr:hover {
    background: #f8fafc;
}

.btn {
    border-radius: 0.65rem;
    font-weight: 500;
}

.form-label {
    font-weight: 600;
}

.form-actions {
    border-top: 1px solid var(--sr-border);
    padding-top: 20px;
    margin-top: 20px;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
}

#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;
    }

@media (max-width: 850px) {
    .sidebar {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .main-content {
        margin-left: 0;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .login-area {
        flex-wrap: wrap;
    }

    .page-content {
        padding: 1rem;
    }
}
.home-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .home-selector label {
        font-size: 0.8rem;
        color: var(--sr-muted);
        font-weight: 600;
        white-space: nowrap;
    }

    .home-selector .form-select {
        min-width: 220px;
    }

.selected-home-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid var(--sr-border);
    border-radius: 0.65rem;
    padding: 0.45rem 0.75rem;
}

.home-selector-loading {
    color: var(--sr-muted);
    font-size: 0.85rem;
}

@media (max-width: 850px) {
    .home-selector {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
    }

        .home-selector .form-select {
            width: 100%;
            min-width: 0;
        }
}
.assignment-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.assignment-dialog {
    background: #fff;
    border-radius: 1rem;
    width: min(1000px, 96vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.3);
}

.assignment-dialog-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--sr-border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.assignment-dialog-body {
    padding: 1.25rem;
    overflow-y: auto;
}

.assignment-candidate-table {
    max-height: 55vh;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

    .sidebar-nav a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

.nav-icon {
    width: 1.25rem;
    min-width: 1.25rem;
    text-align: center;
    font-size: 1rem;
}

.nav-link-text {
    flex: 1;
}

.nav-section-title {
    margin: 1.1rem 0.75rem 0.35rem;
    color: #d8dce8;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

    .nav-section-title:first-child {
        margin-top: 0.25rem;
    }

.sidebar-nav hr {
    margin: 1rem 0;
    border-color: rgba(255, 255, 255, 0.08);
}


/* StaffLedger public landing page */
.staffledger-landing .landing-hero {
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.08), transparent);
}
.staffledger-landing .landing-stat {
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    text-align: center;
    font-weight: 600;
    background: var(--bs-body-bg);
}

.nav-section-title { cursor: pointer; position: relative; padding-right: 1.5rem; user-select: none; }
.nav-section-title::after { content: "▾"; position: absolute; right: .35rem; transition: transform .15s ease; }
.nav-section-title.collapsed::after { transform: rotate(-90deg); }
.nav-collapsed-item { display: none !important; }
