/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-qkerchx8du] {
    display: flex;
    min-height: 100vh;
}

.sidebar[b-qkerchx8du] {
    width: 17.5rem;
    flex-shrink: 0;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-secondary);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    transition: width 0.2s ease;
}

/* Collapsed icon rail — toggled via the sidebar button and persisted on <html>
   (data-sidebar-collapsed). Blazor scopes only the trailing `.sidebar`, so the
   ancestor attribute selector matches the document root as written. */
html[data-sidebar-collapsed="true"] .sidebar[b-qkerchx8du] {
    width: 4.5rem;
}

main[b-qkerchx8du] {
    flex: 1;
    background: var(--bg-secondary);
    min-width: 0;
    /* Query container for the full-bleed sticky SectionFooter: lets the footer
       — nested inside the centred, max-width-capped .content — stretch to the
       full width of <main> via 100cqw. See layouts.css → .layout-page > .section-footer.
       inline-size containment only; <main>'s width comes from the flex parent,
       so this has no effect on its own sizing, and fixed/locally-anchored
       overlays (dropdowns, modals) are unaffected. */
    container-type: inline-size;
}

.content[b-qkerchx8du] {
    /* Tighter side gutters than before and a wider cap so the content doesn't
       float in a narrow centred column on large monitors. */
    padding: var(--spacing-8) var(--spacing-8) var(--spacing-12);
    max-width: 100rem;         /* 1600px */
    margin-inline: auto;
}

.back-bar[b-qkerchx8du] {
    margin-bottom: var(--spacing-6);
}

.back-bar__link[b-qkerchx8du] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-3);
    margin-left: calc(var(--spacing-3) * -1);
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-tertiary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.back-bar__link:hover[b-qkerchx8du] {
    color: var(--text-primary);
    background: var(--bg-primary);
}

.back-bar__link:focus-visible[b-qkerchx8du] {
    outline: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-focus-brand);
}

.back-bar__link svg[b-qkerchx8du] {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.back-bar__link:hover svg[b-qkerchx8du] {
    transform: translateX(-3px);
}

/* iPad / tablet and below (≤1024px): the collapsed rail stays inline and narrow
   so content keeps full width; the EXPANDED sidebar overlays the content (fixed,
   shadowed) instead of squeezing it. The boot script defaults the stored state to
   collapsed under 1024px, so tablets open with the rail by default. */
@media (max-width: 64rem) {
    html:not([data-sidebar-collapsed="true"]) .sidebar[b-qkerchx8du] {
        position: fixed;
        z-index: 60;
        box-shadow: var(--shadow-lg);
    }

    .content[b-qkerchx8du] {
        padding: var(--spacing-6);
    }
}

@media (max-width: 40rem) {
    .content[b-qkerchx8du] {
        padding: var(--spacing-4) var(--spacing-4) var(--spacing-10);
    }
}

#blazor-error-ui[b-qkerchx8du] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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-qkerchx8du] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* NavMenu — HMIS-specific tweaks on top of the shared .sidebar-nav-* component.
   Structural styles (items, section label, account card, footer) come from the
   global Styles/components/sidebar-navigation.css. */

/* ── Brand ── */
.nav-brand-mark[b-xxxsttds03] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    border-radius: var(--radius-md, 0.5rem);
    color: var(--text-brand-primary, var(--fg-brand-primary));
    background: var(--bg-brand-secondary, var(--bg-brand-primary));
}

.nav-brand-mark svg[b-xxxsttds03] {
    width: 1.25rem;
    height: 1.25rem;
}

.nav-brand-text[b-xxxsttds03] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nav-brand-title[b-xxxsttds03] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-text-sm);
    color: var(--text-primary);
}

.nav-brand-subtitle[b-xxxsttds03] {
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-text-xs);
    color: var(--text-tertiary);
}

/* ── Account card (read-only — no workspace switcher, so not interactive) ── */
.sidebar-nav-account.nav-account--static[b-xxxsttds03] {
    cursor: default;
}

.sidebar-nav-account.nav-account--static:hover[b-xxxsttds03] {
    background: var(--bg-primary-alt, var(--bg-primary));
}

/* Initials avatar replaces the component's default <img> avatar. */
.nav-account-avatar[b-xxxsttds03] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full, 9999px);
    background: var(--bg-brand-secondary, var(--bg-secondary));
    color: var(--text-brand-primary, var(--fg-brand-primary));
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    text-transform: uppercase;
}

/* ── Logout — a POST <button> styled as a nav item ── */
.nav-logout-form[b-xxxsttds03] {
    margin: 0;
}

.nav-logout[b-xxxsttds03] {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.nav-logout:focus-visible[b-xxxsttds03] {
    outline: none;
    box-shadow: var(--shadow-focus-brand);
}

/* ── Anonymous prompt ── */
.nav-signin-hint[b-xxxsttds03] {
    margin: 0;
    padding: var(--spacing-1-5) var(--spacing-3);
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-text-sm);
    color: var(--text-tertiary);
}

.sidebar-nav-item.nav-item--cta[b-xxxsttds03] {
    justify-content: center;
    border: 1px solid var(--border-brand, var(--border-primary));
}

.sidebar-nav-item.nav-item--cta .sidebar-nav-item-text[b-xxxsttds03] {
    flex: 0 0 auto;
    color: var(--text-brand-primary, var(--fg-brand-primary));
}

.sidebar-nav-item.nav-item--cta .sidebar-nav-item-icon[b-xxxsttds03] {
    color: var(--fg-brand-primary);
}

/* ── Collapse toggle ── */
.nav-collapse-btn[b-xxxsttds03] {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    flex: 0 0 auto;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    color: var(--text-quaternary, var(--fg-quaternary));
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-collapse-btn:hover[b-xxxsttds03] {
    background: var(--bg-primary-hover);
    color: var(--text-secondary);
}

.nav-collapse-btn:focus-visible[b-xxxsttds03] {
    outline: none;
    box-shadow: var(--shadow-focus-brand);
}

.nav-collapse-icon[b-xxxsttds03] {
    width: 1.125rem;
    height: 1.125rem;
    transition: transform 0.2s ease;
}

/* ──────────────────────────────────────────────────────────────────────────
   COLLAPSED (icon-rail) STATE
   Driven by data-sidebar-collapsed="true" on <html>. Every element below is
   rendered by THIS component, so it carries the NavMenu scope attribute and the
   ancestor selector matches. Labels/text collapse away; icons centre on the rail.
   ────────────────────────────────────────────────────────────────────────── */
html[data-sidebar-collapsed="true"] .nav-collapse-icon[b-xxxsttds03] {
    transform: rotate(180deg); /* points right → click to expand */
}

html[data-sidebar-collapsed="true"] .sidebar-nav-header[b-xxxsttds03] {
    padding-left: var(--spacing-2);
    padding-right: var(--spacing-2);
}

html[data-sidebar-collapsed="true"] .sidebar-nav-logo[b-xxxsttds03] {
    flex-direction: column;
    gap: var(--spacing-2);
}

html[data-sidebar-collapsed="true"] .nav-collapse-btn[b-xxxsttds03] {
    margin-left: 0;
}

html[data-sidebar-collapsed="true"] .nav-brand-text[b-xxxsttds03],
html[data-sidebar-collapsed="true"] .sidebar-nav-section-label[b-xxxsttds03],
html[data-sidebar-collapsed="true"] .sidebar-nav-item-text[b-xxxsttds03],
html[data-sidebar-collapsed="true"] .nav-signin-hint[b-xxxsttds03],
html[data-sidebar-collapsed="true"] .sidebar-nav-account-info[b-xxxsttds03] {
    display: none;
}

html[data-sidebar-collapsed="true"] .sidebar-nav-items[b-xxxsttds03] {
    padding-left: var(--spacing-2);
    padding-right: var(--spacing-2);
}

html[data-sidebar-collapsed="true"] .sidebar-nav-item[b-xxxsttds03],
html[data-sidebar-collapsed="true"] .nav-logout[b-xxxsttds03] {
    justify-content: center;
    gap: 0;
    padding-left: var(--spacing-2);
    padding-right: var(--spacing-2);
}

html[data-sidebar-collapsed="true"] .sidebar-nav-footer[b-xxxsttds03] {
    padding-left: var(--spacing-2);
    padding-right: var(--spacing-2);
}

html[data-sidebar-collapsed="true"] .sidebar-nav-account[b-xxxsttds03] {
    justify-content: center;
    padding-left: var(--spacing-2);
    padding-right: var(--spacing-2);
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-r0zwd2a4nx],
.components-reconnect-repeated-attempt-visible[b-r0zwd2a4nx],
.components-reconnect-failed-visible[b-r0zwd2a4nx],
.components-pause-visible[b-r0zwd2a4nx],
.components-resume-failed-visible[b-r0zwd2a4nx],
.components-rejoining-animation[b-r0zwd2a4nx] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-r0zwd2a4nx],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-r0zwd2a4nx],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-r0zwd2a4nx],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-r0zwd2a4nx],
#components-reconnect-modal.components-reconnect-retrying[b-r0zwd2a4nx],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-r0zwd2a4nx],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-r0zwd2a4nx],
#components-reconnect-modal.components-reconnect-failed[b-r0zwd2a4nx],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-r0zwd2a4nx] {
    display: block;
}


#components-reconnect-modal[b-r0zwd2a4nx] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-r0zwd2a4nx 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-r0zwd2a4nx 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-r0zwd2a4nx 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-r0zwd2a4nx]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-r0zwd2a4nx 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-r0zwd2a4nx {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-r0zwd2a4nx {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-r0zwd2a4nx {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-r0zwd2a4nx] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-r0zwd2a4nx] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-r0zwd2a4nx] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-r0zwd2a4nx] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-r0zwd2a4nx] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-r0zwd2a4nx] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-r0zwd2a4nx] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-r0zwd2a4nx 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-r0zwd2a4nx] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-r0zwd2a4nx {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/ActivityLogs/ActivityLogList.razor.rz.scp.css */
/* ActivityLogList — filter toolbar + patient cell styles moved to the global
   Styles/components/list-page.css so Patients and Visits lists share them.
   This file is intentionally empty; add only ActivityLog-specific rules here. */
/* /Components/Pages/Auth/Login.razor.rz.scp.css */
/* =============================================================================
   Login — a calm, clinical sign-in canvas.

   The auth card is centred on a full-bleed atmospheric backdrop: a soft brand
   aurora bleeding in from the corners over a faint clinical grid. Everything is
   driven by design tokens, so it re-skins cleanly across every theme + dark mode.
   ============================================================================= */

.auth-page[b-00ax87qhw8] {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(120% 120% at 50% -10%, var(--bg-primary) 0%, var(--bg-secondary) 60%);
}

/* --- Atmosphere ----------------------------------------------------------- */

/* Brand-tinted glow bleeding from two corners. color-mix keeps it subtle and
   theme-aware without needing a hand-tuned colour per theme. */
.auth-aurora[b-00ax87qhw8] {
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 70%;
    z-index: -2;
    background:
        radial-gradient(40% 60% at 18% 0%,
            color-mix(in srgb, var(--bg-brand-solid) 30%, transparent) 0%, transparent 70%),
        radial-gradient(45% 65% at 85% 12%,
            color-mix(in srgb, var(--bg-brand-solid) 22%, transparent) 0%, transparent 72%);
    filter: blur(8px);
    opacity: 0.9;
}

/* Faint engineering grid, faded out toward the edges with a radial mask. */
.auth-grid[b-00ax87qhw8] {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, color-mix(in srgb, var(--text-primary) 6%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, var(--text-primary) 6%, transparent) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(75% 55% at 50% 42%, #000 0%, transparent 100%);
    mask-image: radial-gradient(75% 55% at 50% 42%, #000 0%, transparent 100%);
}

/* --- Composition ---------------------------------------------------------- */

.auth-stack[b-00ax87qhw8] {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 24rem;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    animation: auth-rise-b-00ax87qhw8 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* --- Card ----------------------------------------------------------------- */

.auth-card[b-00ax87qhw8] {
    position: relative;
    gap: var(--spacing-7);
    padding: var(--spacing-8);
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-2xl, 1rem);
    box-shadow: var(--shadow-xl);
}

/* Hairline brand accent across the top edge of the card. */
.auth-card[b-00ax87qhw8]::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    border-radius: var(--radius-2xl, 1rem) var(--radius-2xl, 1rem) 0 0;
    background: linear-gradient(90deg,
        transparent,
        var(--bg-brand-solid) 30%,
        var(--bg-brand-solid) 70%,
        transparent);
    opacity: 0.85;
}

/* --- Brand mark ----------------------------------------------------------- */

.auth-brand[b-00ax87qhw8] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto var(--spacing-2);
    border-radius: var(--radius-xl, 0.875rem);
    color: var(--fg-brand-primary, #fff);
    background:
        linear-gradient(150deg,
            color-mix(in srgb, var(--bg-brand-solid) 88%, white 12%) 0%,
            var(--bg-brand-solid) 100%);
    box-shadow:
        0 6px 16px color-mix(in srgb, var(--bg-brand-solid) 35%, transparent),
        inset 0 1px 0 color-mix(in srgb, white 35%, transparent);
}

.auth-brand svg[b-00ax87qhw8] {
    width: 1.6rem;
    height: 1.6rem;
    color: #fff;
}

.auth-eyebrow[b-00ax87qhw8] {
    margin: 0;
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-brand-secondary, var(--bg-brand-solid));
}

/* Title sits a touch larger and tighter than the scaffold default. */
.auth-card .layout-auth-card__title[b-00ax87qhw8] {
    font-size: var(--font-size-display-sm);
    letter-spacing: -0.01em;
}

/* --- Stretch the primary action across the card. ::deep reaches the <button>. */
[b-00ax87qhw8] .auth-submit {
    width: 100%;
    justify-content: center;
}

/* --- Test-account hint ---------------------------------------------------- */

.auth-demo[b-00ax87qhw8] {
    padding: var(--spacing-4) var(--spacing-5);
    background: color-mix(in srgb, var(--bg-primary) 78%, transparent);
    border: 1px dashed var(--border-secondary);
    border-radius: var(--radius-xl, 0.875rem);
    backdrop-filter: blur(6px);
}

.auth-demo__head[b-00ax87qhw8] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-3);
}

.auth-demo__badge[b-00ax87qhw8] {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem var(--spacing-2);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.02em;
    color: var(--text-brand-secondary, var(--bg-brand-solid));
    background: color-mix(in srgb, var(--bg-brand-solid) 12%, transparent);
    border-radius: var(--radius-full, 999px);
}

.auth-demo__hint[b-00ax87qhw8] {
    font-size: var(--font-size-text-xs);
    color: var(--text-tertiary);
}

.auth-demo__creds[b-00ax87qhw8] {
    margin: 0 0 var(--spacing-3);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
}

.auth-demo__row[b-00ax87qhw8] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
}

.auth-demo__row dt[b-00ax87qhw8] {
    font-size: var(--font-size-text-sm);
    color: var(--text-tertiary);
}

.auth-demo__row dd[b-00ax87qhw8] {
    margin: 0;
}

.auth-demo__row code[b-00ax87qhw8] {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-text-sm);
    color: var(--text-primary);
    background: var(--bg-secondary);
    padding: 0.1rem var(--spacing-2);
    border-radius: var(--radius-sm, 0.375rem);
    border: 1px solid var(--border-secondary);
}

.auth-demo__fill[b-00ax87qhw8] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    width: 100%;
    justify-content: center;
    padding: var(--spacing-2) var(--spacing-3);
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-brand-secondary, var(--bg-brand-solid));
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--bg-brand-solid) 35%, transparent);
    border-radius: var(--radius-md, 0.5rem);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.auth-demo__fill svg[b-00ax87qhw8] {
    width: 0.95rem;
    height: 0.95rem;
}

.auth-demo__fill:hover[b-00ax87qhw8] {
    background: color-mix(in srgb, var(--bg-brand-solid) 8%, transparent);
    border-color: color-mix(in srgb, var(--bg-brand-solid) 55%, transparent);
}

.auth-demo__fill:active[b-00ax87qhw8] {
    transform: translateY(1px);
}

.auth-demo__fill:focus-visible[b-00ax87qhw8] {
    outline: none;
    box-shadow: var(--shadow-focus-brand);
}

/* --- Motion --------------------------------------------------------------- */

@keyframes auth-rise-b-00ax87qhw8 {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-stack[b-00ax87qhw8] {
        animation: none;
    }
}
/* /Components/Pages/Patients/EditPatient.razor.rz.scp.css */
/* EditPatient — footer inline error tone only. Layout comes from layout-* classes. */

.register-footer-error[b-qmxh6ek9qu] {
    font: var(--text-sm-medium);
    color: var(--text-error-primary, var(--fg-error-primary));
}
/* /Components/Pages/Patients/PatientFormFields.razor.rz.scp.css */
/* Search button living inside the Name input's trailing slot (registration duplicate check). */
.name-search-btn[b-focr7zc9le] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    color: var(--text-tertiary, currentColor);
    cursor: pointer;
}

.name-search-btn:hover[b-focr7zc9le] {
    color: var(--text-brand-primary, currentColor);
}

.name-search-btn svg[b-focr7zc9le] {
    width: 1.125rem;
    height: 1.125rem;
}
/* /Components/Pages/Patients/RegisterPatient.razor.rz.scp.css */
/* RegisterPatient — footer inline error tone only. Layout comes from layout-* classes. */

.register-footer-error[b-subseqqrca] {
    font: var(--text-sm-medium);
    color: var(--text-error-primary, var(--fg-error-primary));
}

/* Duplicate-match results rendered as a vertical card list inside the modal
   (reusing the layout-detail-card / layout-detail-fields pattern from PatientDetail). */
.duplicate-match-list[b-subseqqrca] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}
/* /Components/Pages/Shared/CodeResultCard.razor.rz.scp.css */
/* CodeResultCard — composes design-system tokens only. No bespoke palette. */

.code-result[b-6lk47ztqep] {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-4);
}

.code-result__check[b-6lk47ztqep] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    color: var(--text-success-primary, var(--fg-success-primary));
    background: var(--bg-success-secondary, var(--bg-success-primary));
}

.code-result__check svg[b-6lk47ztqep] {
    width: 1.25rem;
    height: 1.25rem;
}

.code-result__body[b-6lk47ztqep] {
    flex: 1 1 auto;
    min-width: 0;
}

.code-result__title[b-6lk47ztqep] {
    font: var(--text-lg-semibold);
    color: var(--text-primary);
    margin: 0;
}

.code-result__subtitle[b-6lk47ztqep] {
    font: var(--text-sm-regular);
    color: var(--text-tertiary);
    margin: var(--spacing-1) 0 0;
}

.code-result__code[b-6lk47ztqep] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    margin-top: var(--spacing-3);
}

.code-result__code-label[b-6lk47ztqep] {
    font: var(--text-sm-medium);
    color: var(--text-secondary);
}

.code-result__actions[b-6lk47ztqep] {
    flex: 0 0 auto;
    display: flex;
    gap: var(--spacing-2);
}

@media (max-width: 640px) {
    .code-result[b-6lk47ztqep] {
        flex-direction: column;
    }

    .code-result__actions[b-6lk47ztqep] {
        width: 100%;
    }
}
/* /Components/UI/MathInput.razor.rz.scp.css */
.mi-wrapper[b-1lwzam3b3g] {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.mi-wrapper:focus-within[b-1lwzam3b3g] {
    border-color: var(--text-brand-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--text-brand-primary) 20%, transparent);
}

.mi-wrapper[data-disabled="true"][b-1lwzam3b3g] {
    background: var(--bg-disabled, var(--bg-secondary));
    cursor: not-allowed;
    opacity: 0.6;
}

.mi-wrapper[data-invalid="true"][b-1lwzam3b3g] {
    border-color: var(--border-error, #f04438);
}

.mi-wrapper[data-invalid="true"]:focus-within[b-1lwzam3b3g] {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--border-error, #f04438) 20%, transparent);
}

.mi-label[b-1lwzam3b3g] {
    display: flex;
    gap: var(--spacing-1);
    align-items: center;
    padding: var(--spacing-2) var(--spacing-3) 0;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-text-sm);
    color: var(--text-secondary);
}

.mi-label-required[b-1lwzam3b3g] { color: var(--text-error-primary); }

.mi-field-area[b-1lwzam3b3g] {
    padding: var(--spacing-3) var(--spacing-4);
}

.mi-field[b-1lwzam3b3g] {
    width: 100%;
    outline: none;
    font-size: var(--font-size-text-md);
    line-height: var(--line-height-text-md);
    color: var(--text-primary);
}

.mi-footer[b-1lwzam3b3g] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-3);
    border-top: 1px solid var(--border-secondary);
    font-size: var(--font-size-text-xs);
    line-height: var(--line-height-text-xs);
    color: var(--text-tertiary);
}

.mi-error-text[b-1lwzam3b3g]   { color: var(--text-error-primary); }
.mi-helper-text[b-1lwzam3b3g]  { color: var(--text-tertiary); }

.mi-field-area.mi-mode-source math-field[b-1lwzam3b3g] {
    display: none;
}

.mi-source-preview[b-1lwzam3b3g] {
    margin: 0;
    padding: var(--spacing-2) var(--spacing-3);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, monospace;
    font-size: var(--font-size-text-sm);
    line-height: var(--line-height-text-sm);
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-all;
}
/* /Components/UI/RichTextEditor.razor.rz.scp.css */
.rte-wrapper[b-3e71tnhw3c] {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.rte-wrapper:focus-within[b-3e71tnhw3c] {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-alpha-20, rgba(122, 90, 248, 0.2));
}

.rte-wrapper[data-disabled="true"][b-3e71tnhw3c] {
    background: var(--bg-disabled, var(--bg-secondary));
    cursor: not-allowed;
    opacity: 0.6;
}

.rte-wrapper[data-invalid="true"][b-3e71tnhw3c] {
    border-color: var(--border-error, #f04438);
}

.rte-wrapper[data-invalid="true"]:focus-within[b-3e71tnhw3c] {
    box-shadow: 0 0 0 4px var(--error-alpha-20, rgba(240, 68, 56, 0.2));
}

.rte-content-area[b-3e71tnhw3c] {
    overflow: auto;
    min-height: var(--rte-min-height, 12rem);
    max-height: var(--rte-max-height, none);
}

.rte-label[b-3e71tnhw3c] {
    display: flex;
    gap: var(--spacing-1);
    align-items: center;
    padding: var(--spacing-2) var(--spacing-3) 0;
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-text-sm);
    color: var(--text-secondary);
}

.rte-label-required[b-3e71tnhw3c] { color: var(--text-error-primary); }

.rte-footer[b-3e71tnhw3c] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-3);
    border-top: 1px solid var(--border-secondary);
    font-size: var(--font-size-text-xs);
    line-height: var(--line-height-text-xs);
    color: var(--text-tertiary);
}

.rte-error-text[b-3e71tnhw3c] { color: var(--text-error-primary); }
.rte-helper-text[b-3e71tnhw3c] { color: var(--text-tertiary); }
.rte-character-count[b-3e71tnhw3c] { color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.rte-character-count[data-over="true"][b-3e71tnhw3c] { color: var(--text-error-primary); }
/* /Components/UI/RichTextEditorToolbar.razor.rz.scp.css */
.rte-toolbar[b-bq9lmfkcpn] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-1);
    padding: var(--spacing-2);
    border-bottom: 1px solid var(--border-secondary);
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 1;
}

.rte-toolbar-group[b-bq9lmfkcpn] {
    display: inline-flex;
    gap: var(--spacing-0-5, 2px);
    align-items: center;
}

.rte-toolbar-group--block[b-bq9lmfkcpn] {
    min-width: 9rem;
}

.rte-toolbar-divider[b-bq9lmfkcpn] {
    width: 1px;
    height: 1.25rem;
    background: var(--border-secondary);
    margin-inline: var(--spacing-1);
}

.rte-toolbar-btn-active[b-bq9lmfkcpn] {
    background: var(--bg-secondary, rgba(0, 0, 0, 0.06));
}

.rte-link-menu[b-bq9lmfkcpn] {
    display: flex;
    gap: var(--spacing-2);
    align-items: center;
    padding: var(--spacing-2) var(--spacing-3);
    border-bottom: 1px solid var(--border-secondary);
}

.rte-link-menu-input[b-bq9lmfkcpn] {
    flex: 1;
    padding: var(--spacing-1) var(--spacing-2);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--font-size-text-sm);
}

.rte-link-menu-input:focus[b-bq9lmfkcpn] {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-alpha-20, rgba(122, 90, 248, 0.2));
}

.rte-swatch-grid[b-bq9lmfkcpn] {
    display: grid;
    grid-template-columns: repeat(4, 1.75rem);
    gap: var(--spacing-1);
    padding: var(--spacing-2);
}

.rte-swatch[b-bq9lmfkcpn] {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-secondary);
    cursor: pointer;
}

.rte-swatch:focus-visible[b-bq9lmfkcpn] {
    outline: 2px solid var(--text-brand-primary);
    outline-offset: 2px;
}

.rte-swatch-clear[b-bq9lmfkcpn] {
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1;
}

.rte-table-picker[b-bq9lmfkcpn] { padding: var(--spacing-2); }
.rte-table-grid[b-bq9lmfkcpn] {
    display: grid;
    grid-template-columns: repeat(6, 1rem);
    gap: 2px;
}
.rte-table-cell[b-bq9lmfkcpn] {
    width: 1rem;
    height: 1rem;
    padding: 0;
    border: 1px solid var(--border-primary);
    background: var(--bg-primary);
    cursor: pointer;
}
.rte-table-cell-on[b-bq9lmfkcpn] {
    background: var(--text-brand-primary);
    border-color: var(--text-brand-primary);
}
.rte-table-picker-label[b-bq9lmfkcpn] {
    text-align: center;
    font-size: var(--font-size-text-xs);
    line-height: var(--line-height-text-xs);
    color: var(--text-secondary);
    margin-top: var(--spacing-2);
}
.rte-menu-divider[b-bq9lmfkcpn] {
    border: 0;
    border-top: 1px solid var(--border-secondary);
    margin: var(--spacing-2) 0;
}
.rte-menu-item[b-bq9lmfkcpn] {
    display: block;
    width: 100%;
    padding: var(--spacing-2) var(--spacing-3);
    background: transparent;
    border: 0;
    border-radius: var(--radius-xs);
    text-align: start;
    cursor: pointer;
    color: var(--text-primary);
    font-size: var(--font-size-text-sm);
    line-height: var(--line-height-text-sm);
    font-family: inherit;
}
.rte-menu-item:hover[b-bq9lmfkcpn],
.rte-menu-item:focus-visible[b-bq9lmfkcpn] {
    background: var(--bg-secondary);
    outline: none;
}

.rte-align-menu[b-bq9lmfkcpn] {
    padding: var(--spacing-1);
    min-width: 8rem;
}

@media (max-width: 640px) {
    .rte-toolbar[b-bq9lmfkcpn] { gap: var(--spacing-0-5, 2px); }
    .rte-toolbar-divider[b-bq9lmfkcpn] { display: none; }
}
/* /Components/UI/ThemeSwitcher.razor.rz.scp.css */
.theme-switcher[b-ecf81va3xf] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    position: relative;
}

.theme-switcher__trigger[b-ecf81va3xf],
.theme-switcher__mode-toggle[b-ecf81va3xf] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-3);
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.theme-switcher__trigger:hover[b-ecf81va3xf],
.theme-switcher__mode-toggle:hover:not(:disabled)[b-ecf81va3xf] {
    background: var(--bg-secondary-hover);
    color: var(--text-primary);
}

.theme-switcher__mode-toggle[b-ecf81va3xf] {
    padding: var(--spacing-2);
    width: 2rem;
    height: 2rem;
    justify-content: center;
}

.theme-switcher__mode-toggle:disabled[b-ecf81va3xf] {
    opacity: 0.4;
    cursor: not-allowed;
}

.theme-switcher__mode-toggle svg[b-ecf81va3xf] {
    width: 1rem;
    height: 1rem;
}

.theme-switcher__swatch-stack[b-ecf81va3xf] {
    display: inline-flex;
    gap: 2px;
}

.theme-switcher__swatch[b-ecf81va3xf] {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-switcher__chevron[b-ecf81va3xf] {
    width: 0.875rem;
    height: 0.875rem;
}

.theme-switcher__menu[b-ecf81va3xf] {
    position: absolute;
    top: calc(100% + var(--spacing-1));
    right: 0;
    min-width: 18rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    padding: var(--spacing-1);
    display: flex;
    flex-direction: column;
}

.theme-switcher__option[b-ecf81va3xf] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-2) var(--spacing-3);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.theme-switcher__option:hover[b-ecf81va3xf] {
    background: var(--bg-secondary-hover);
}

.theme-switcher__option--active[b-ecf81va3xf] {
    background: var(--bg-active);
}

.theme-switcher__option-text[b-ecf81va3xf] {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.theme-switcher__option-name[b-ecf81va3xf] {
    color: var(--text-primary);
    font-size: var(--font-size-text-sm);
    font-weight: var(--font-weight-semibold);
}

.theme-switcher__option-desc[b-ecf81va3xf] {
    color: var(--text-tertiary);
    font-size: var(--font-size-text-xs);
    margin-top: 0.125rem;
}

.theme-switcher__check[b-ecf81va3xf] {
    width: 1rem;
    height: 1rem;
    color: var(--fg-brand-primary);
}

/* Theme block — wraps a theme option button + its palette row */
.theme-switcher__theme-block[b-ecf81va3xf] {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-sm);
}

.theme-switcher__theme-block + .theme-switcher__theme-block[b-ecf81va3xf] {
    margin-top: 2px;
}

/* Trigger label palette segment */
.theme-switcher__name-divider[b-ecf81va3xf] {
    color: var(--text-quaternary);
    margin-inline: 0.125rem;
}

.theme-switcher__name-palette[b-ecf81va3xf] {
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

/* Palette dot row — inline horizontal strip under each theme row */
.theme-switcher__palette-row[b-ecf81va3xf] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-1);
    padding: var(--spacing-1) var(--spacing-3) var(--spacing-2);
    margin-left: 2.25rem; /* aligns under the option-text column, past the swatch stack */
}

/* Individual palette dot — circle swatch + label */
.theme-switcher__palette-dot[b-ecf81va3xf] {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    font-family: var(--font-family-body);
    font-size: var(--font-size-text-xs);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.theme-switcher__palette-dot:hover[b-ecf81va3xf] {
    background: var(--bg-secondary-hover);
    color: var(--text-primary);
}

.theme-switcher__palette-dot:focus-visible[b-ecf81va3xf] {
    outline: 2px solid var(--border-brand);
    outline-offset: 1px;
}

.theme-switcher__palette-dot--active[b-ecf81va3xf] {
    background: var(--bg-active);
    border-color: var(--border-secondary);
    color: var(--text-primary);
}

.theme-switcher__palette-swatch[b-ecf81va3xf] {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.theme-switcher__palette-label[b-ecf81va3xf] {
    line-height: 1;
}
