/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-b4gk1cyfhb] {
    --role-accent: #1d4ed8;
    --role-accent-soft: #dbeafe;
    --role-accent-strong: #1e3a8a;
    --role-sidebar-start: #0f3f8f;
    --role-sidebar-end: #06245c;
    --sidebar-width: 250px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.role-theme-admin[b-b4gk1cyfhb] {
    --role-accent: #dc2626;
    --role-accent-soft: #fee2e2;
    --role-accent-strong: #7f1d1d;
    --role-sidebar-start: #991b1b;
    --role-sidebar-end: #450a0a;
}

.role-theme-manager[b-b4gk1cyfhb] {
    --role-accent: #16a34a;
    --role-accent-soft: #dcfce7;
    --role-accent-strong: #14532d;
    --role-sidebar-start: #15803d;
    --role-sidebar-end: #052e16;
}

.role-theme-doctor[b-b4gk1cyfhb] {
    --role-accent: #2563eb;
    --role-accent-soft: #dbeafe;
    --role-accent-strong: #1e3a8a;
    --role-sidebar-start: #1d4ed8;
    --role-sidebar-end: #172554;
}

.role-theme-secretary[b-b4gk1cyfhb] {
    --role-accent: #64748b;
    --role-accent-soft: #f1f5f9;
    --role-accent-strong: #334155;
    --role-sidebar-start: #475569;
    --role-sidebar-end: #1e293b;
}

main[b-b4gk1cyfhb] {
    flex: 1;
    min-width: 0;
}

.sidebar[b-b4gk1cyfhb] {
    background-image: linear-gradient(180deg, var(--role-sidebar-start) 0%, var(--role-sidebar-end) 78%);
    position: relative;
    transition: width 180ms ease;
}

.sidebar-collapse-check[b-b4gk1cyfhb] {
    appearance: none;
    cursor: pointer;
    margin: 0;
    opacity: 1;
}

.sidebar-collapse-toggle[b-b4gk1cyfhb] {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.18);
    color: var(--role-accent-strong);
    display: flex;
    font-size: 1.25rem;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: -1rem;
    top: 0.85rem;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
    width: 2rem;
    z-index: 5;
}

.sidebar-collapse-toggle[b-b4gk1cyfhb]::before {
    content: "<";
}

.page:has(.sidebar-collapse-check:checked) .sidebar-collapse-toggle[b-b4gk1cyfhb]::before {
    content: ">";
}

.sidebar-collapse-toggle:hover[b-b4gk1cyfhb] {
    background: var(--role-accent);
    color: white;
}

.top-row[b-b4gk1cyfhb] {
    background-color: var(--role-accent-soft);
    border-bottom: 1px solid color-mix(in srgb, var(--role-accent) 35%, #ffffff);
    justify-content: flex-end;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    color: var(--role-accent-strong);
    gap: 1rem;
    flex-wrap: wrap;
}

.role-pill[b-b4gk1cyfhb] {
    background: var(--role-accent);
    border-radius: 999px;
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.3rem 0.7rem;
    white-space: nowrap;
}

.settings-menu[b-b4gk1cyfhb] {
    position: relative;
    max-width: 100%;
}

.settings-menu summary[b-b4gk1cyfhb] {
    list-style: none;
}

.settings-menu summary[b-b4gk1cyfhb]::-webkit-details-marker {
    display: none;
}

.settings-toggle[b-b4gk1cyfhb] {
    min-width: 2rem;
}

.settings-popover[b-b4gk1cyfhb] {
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--role-accent) 25%, #dbe5eb);
    border-radius: 8px;
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.16);
    color: #172033;
    min-width: 18rem;
    max-width: min(18rem, calc(100vw - 1rem));
    padding: 0.85rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 20;
}

.settings-link[b-b4gk1cyfhb] {
    color: var(--role-accent-strong);
    display: block;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.settings-switch-form[b-b4gk1cyfhb] {
    display: grid;
    gap: 0.55rem;
}

.settings-switch-form label[b-b4gk1cyfhb] {
    color: #536273;
    font-size: 0.8rem;
    font-weight: 700;
}

    .top-row[b-b4gk1cyfhb]  a, .top-row[b-b4gk1cyfhb]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-b4gk1cyfhb]  a:hover, .top-row[b-b4gk1cyfhb]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-b4gk1cyfhb]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .sidebar-collapse-toggle[b-b4gk1cyfhb] {
        display: none;
    }

    .top-row[b-b4gk1cyfhb] {
        gap: .5rem;
        justify-content: space-between;
        padding-bottom: .55rem;
        padding-top: .55rem;
    }

    .top-row[b-b4gk1cyfhb]  a, .top-row[b-b4gk1cyfhb]  .btn-link {
        margin-left: 0;
    }

    .role-pill[b-b4gk1cyfhb] {
        font-size: .72rem;
        padding: .25rem .55rem;
    }

    .settings-menu[b-b4gk1cyfhb] {
        position: static;
    }

    .settings-popover[b-b4gk1cyfhb] {
        left: .5rem;
        min-width: 0;
        position: fixed;
        right: .5rem;
        top: 4.15rem;
        width: auto;
    }
}

@media (min-width: 641px) {
    .page[b-b4gk1cyfhb] {
        flex-direction: row;
    }

    .page.sidebar-collapsed[b-b4gk1cyfhb],
    .page:has(.sidebar-collapse-check:checked)[b-b4gk1cyfhb] {
        --sidebar-width: 4.75rem;
    }

    .sidebar[b-b4gk1cyfhb] {
        flex: 0 0 var(--sidebar-width);
        height: 100vh;
        position: sticky;
        top: 0;
        width: var(--sidebar-width);
    }

    .sidebar-collapsed .sidebar-collapse-toggle[b-b4gk1cyfhb],
    .page:has(.sidebar-collapse-check:checked) .sidebar-collapse-toggle[b-b4gk1cyfhb] {
        right: -0.8rem;
    }

    .top-row[b-b4gk1cyfhb] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-b4gk1cyfhb]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-b4gk1cyfhb], article[b-b4gk1cyfhb] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .sidebar-collapsed .top-row[b-b4gk1cyfhb],
    .sidebar-collapsed article[b-b4gk1cyfhb],
    .page:has(.sidebar-collapse-check:checked) .top-row[b-b4gk1cyfhb],
    .page:has(.sidebar-collapse-check:checked) article[b-b4gk1cyfhb] {
        padding-left: 1.5rem !important;
    }

    .sidebar-collapsed .sidebar[b-b4gk1cyfhb]  .navbar-brand,
    .sidebar-collapsed .sidebar[b-b4gk1cyfhb]  .nav-section,
    .page:has(.sidebar-collapse-check:checked) .sidebar[b-b4gk1cyfhb]  .navbar-brand,
    .page:has(.sidebar-collapse-check:checked) .sidebar[b-b4gk1cyfhb]  .nav-section {
        opacity: 0;
        pointer-events: none;
    }

    .sidebar-collapsed .sidebar[b-b4gk1cyfhb]  .top-row,
    .page:has(.sidebar-collapse-check:checked) .sidebar[b-b4gk1cyfhb]  .top-row {
        justify-content: center;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .sidebar-collapsed .sidebar[b-b4gk1cyfhb]  .container-fluid,
    .page:has(.sidebar-collapse-check:checked) .sidebar[b-b4gk1cyfhb]  .container-fluid {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .sidebar-collapsed .sidebar[b-b4gk1cyfhb]  .nav-item,
    .page:has(.sidebar-collapse-check:checked) .sidebar[b-b4gk1cyfhb]  .nav-item {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .sidebar-collapsed .sidebar[b-b4gk1cyfhb]  .nav-link,
    .page:has(.sidebar-collapse-check:checked) .sidebar[b-b4gk1cyfhb]  .nav-link {
        font-size: 0;
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .sidebar-collapsed .sidebar[b-b4gk1cyfhb]  .nav-icon,
    .page:has(.sidebar-collapse-check:checked) .sidebar[b-b4gk1cyfhb]  .nav-icon {
        margin-right: 0;
    }
}

#blazor-error-ui[b-b4gk1cyfhb] {
    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-b4gk1cyfhb] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-lkkgorhb2d] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-lkkgorhb2d] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-lkkgorhb2d] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-lkkgorhb2d] {
    font-size: 1.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-icon[b-lkkgorhb2d] {
    background-color: currentColor;
    display: inline-block;
    height: 1.25rem;
    margin-right: 0.75rem;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    position: relative;
    top: -1px;
    width: 1.25rem;
}

.nav-icon-hospital[b-lkkgorhb2d] {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 3h14v18h-5v-5h-4v5H5V3Zm2 2v14h1v-5h8v5h1V5H7Zm4 2h2v3h3v2h-3v3h-2v-3H8v-2h3V7Z'/%3E%3C/svg%3E");
}

.nav-icon-patient[b-lkkgorhb2d] {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 12a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm0 2c3.86 0 7 2.24 7 5v1H2v-1c0-2.76 3.14-5 7-5Zm10-2v3h3v2h-3v3h-2v-3h-3v-2h3v-3h2Z'/%3E%3C/svg%3E");
}

.nav-icon-stethoscope[b-lkkgorhb2d] {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 3h3v2H6v5a4 4 0 0 0 8 0V5h-2V3h3a1 1 0 0 1 1 1v6a6 6 0 0 1-5 5.92V17a3 3 0 0 0 6 0v-1.17A3 3 0 1 1 19 16v1a5 5 0 0 1-10 0v-1.08A6 6 0 0 1 4 10V4a1 1 0 0 1 1-1Zm14 9a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z'/%3E%3C/svg%3E");
}

.nav-icon-calendar[b-lkkgorhb2d] {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h2v2h6V2h2v2h3v18H4V4h3V2Zm11 8H6v10h12V10Zm-7 2h2v3h3v2h-3v3h-2v-3H8v-2h3v-3Z'/%3E%3C/svg%3E");
}

.nav-icon-shield[b-lkkgorhb2d] {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 20 5v6c0 5.1-3.4 9.8-8 11-4.6-1.2-8-5.9-8-11V5l8-3Zm-1 6v3H8v2h3v3h2v-3h3v-2h-3V8h-2Z'/%3E%3C/svg%3E");
}

.nav-icon-clipboard[b-lkkgorhb2d] {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 2h6l1 2h3v18H5V4h3l1-2Zm1.24 2-.5 1h4.52l-.5-1h-3.52ZM7 6v14h10V6H7Zm5 3 1.6 3.2L15 10h1.5l-2.9 5.8L12 12.6 10.5 16H8v-2h1.2L12 9Z'/%3E%3C/svg%3E");
}

.nav-icon-medical-file[b-lkkgorhb2d] {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h9l5 5v15H6V2Zm8 2H8v16h10V8h-4V4Zm-3 7h2v2h2v2h-2v2h-2v-2H9v-2h2v-2Z'/%3E%3C/svg%3E");
}

.nav-item[b-lkkgorhb2d] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.nav-section[b-lkkgorhb2d] {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-top: 0.75rem;
    padding-bottom: 0.35rem;
    text-transform: uppercase;
}

    .nav-item:first-of-type[b-lkkgorhb2d] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-lkkgorhb2d] {
        padding-bottom: 1rem;
    }

    .nav-item[b-lkkgorhb2d]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        min-height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
        overflow-wrap: anywhere;
    }

.nav-item[b-lkkgorhb2d]  a.active {
    background-color: rgba(255,255,255,0.9);
    box-shadow: inset 4px 0 0 var(--role-accent);
    color: var(--role-accent-strong);
    font-weight: 700;
}

.nav-item[b-lkkgorhb2d]  a.active .nav-icon {
    color: var(--role-accent);
}

.nav-item[b-lkkgorhb2d]  .nav-link:hover {
    background-color: rgba(255,255,255,0.16);
    color: white;
}

.nav-scrollable[b-lkkgorhb2d] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-lkkgorhb2d] {
    display: block;
}

@media (max-width: 640.98px) {
    .top-row[b-lkkgorhb2d] {
        position: sticky;
        top: 0;
        z-index: 12;
    }

    .navbar-toggler[b-lkkgorhb2d] {
        min-height: 2.75rem;
        min-width: 3.5rem;
    }

    .nav-scrollable[b-lkkgorhb2d] {
        max-height: calc(100vh - 3.5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-item[b-lkkgorhb2d] {
        padding-bottom: .25rem;
    }

    .nav-item:first-of-type[b-lkkgorhb2d] {
        padding-top: .75rem;
    }

    .nav-item[b-lkkgorhb2d]  .nav-link {
        min-height: 2.75rem;
        line-height: 1.25;
        padding-bottom: .65rem;
        padding-top: .65rem;
    }
}

@media (min-width: 641px) {
    .navbar-toggler[b-lkkgorhb2d] {
        display: none;
    }

    .nav-scrollable[b-lkkgorhb2d] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-k0hdowvqid],
.components-reconnect-repeated-attempt-visible[b-k0hdowvqid],
.components-reconnect-failed-visible[b-k0hdowvqid],
.components-pause-visible[b-k0hdowvqid],
.components-resume-failed-visible[b-k0hdowvqid],
.components-rejoining-animation[b-k0hdowvqid] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-k0hdowvqid],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-k0hdowvqid],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-k0hdowvqid],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-k0hdowvqid],
#components-reconnect-modal.components-reconnect-retrying[b-k0hdowvqid],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-k0hdowvqid],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-k0hdowvqid],
#components-reconnect-modal.components-reconnect-failed[b-k0hdowvqid],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-k0hdowvqid] {
    display: block;
}


#components-reconnect-modal[b-k0hdowvqid] {
    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-k0hdowvqid 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-k0hdowvqid 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-k0hdowvqid 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-k0hdowvqid]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-k0hdowvqid 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-k0hdowvqid {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-k0hdowvqid {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-k0hdowvqid {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-k0hdowvqid] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-k0hdowvqid] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-k0hdowvqid] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-k0hdowvqid] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-k0hdowvqid] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-k0hdowvqid] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-k0hdowvqid] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-k0hdowvqid 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-k0hdowvqid] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-k0hdowvqid {
    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;
    }
}
