/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ══ Layout root ══ */
.thera-layout[b-rczkdu3n0h] {
    display: flex;
    height: 100vh;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ══ Sidebar ══ */
.thera-sidebar[b-rczkdu3n0h] {
    width: 264px;
    min-width: 264px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(2, 132, 199, 0.12);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 32px rgba(2, 132, 199, 0.06);
    z-index: 100;
    scrollbar-width: thin;
    scrollbar-color: rgba(2, 132, 199, 0.20) transparent;
}

.thera-sidebar[b-rczkdu3n0h]::-webkit-scrollbar       { width: 4px; }
.thera-sidebar[b-rczkdu3n0h]::-webkit-scrollbar-track { background: transparent; }
.thera-sidebar[b-rczkdu3n0h]::-webkit-scrollbar-thumb { background: rgba(2, 132, 199, 0.20); border-radius: 4px; }

/* ── Logo ── */
.sidebar-logo[b-rczkdu3n0h] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px 16px;
    border-bottom: 1px solid rgba(2, 132, 199, 0.10);
    flex-shrink: 0;
}

.sidebar-logo-icon[b-rczkdu3n0h] {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0284C7, #0891B2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.30);
    flex-shrink: 0;
}

.sidebar-logo-text[b-rczkdu3n0h] {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.2;
}

.sidebar-logo-sub[b-rczkdu3n0h] {
    font-size: 11px;
    color: #94A3B8;
    font-weight: 400;
    margin-top: 1px;
}

/* ── Zone containers & section labels ── */
.nav-zone[b-rczkdu3n0h] {
    margin: 3px 6px;
    border-radius: 10px;
    border-left: 3px solid transparent;
    padding: 2px 0;
}

.nav-section-label[b-rczkdu3n0h] {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 14px 4px;
    color: #94A3B8;
    user-select: none;
}

/* Zone-specific colors */
.nav-zone-clinical[b-rczkdu3n0h]   { background: rgba(8, 145, 178, 0.05);  border-left-color: rgba(8, 145, 178, 0.30); }
.nav-zone-clinical   .nav-section-label[b-rczkdu3n0h] { color: #0891B2; }

.nav-zone-operations[b-rczkdu3n0h] { background: rgba(5, 150, 105, 0.05);  border-left-color: rgba(5, 150, 105, 0.30); }
.nav-zone-operations .nav-section-label[b-rczkdu3n0h] { color: #047857; }

.nav-zone-business[b-rczkdu3n0h]   { background: rgba(37, 99, 235, 0.05);  border-left-color: rgba(37, 99, 235, 0.30); }
.nav-zone-business   .nav-section-label[b-rczkdu3n0h] { color: #2563EB; }

.nav-zone-system[b-rczkdu3n0h]     { background: rgba(15, 23, 42, 0.04);   border-left-color: rgba(15, 23, 42, 0.15); }
.nav-zone-system     .nav-section-label[b-rczkdu3n0h] { color: #334155; }

/* ══ Main area ══ */
.thera-main[b-rczkdu3n0h] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* ── Top bar ── */
.thera-topbar[b-rczkdu3n0h] {
    height: 56px;
    min-height: 56px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(2, 132, 199, 0.12);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 24px;
    box-shadow: 0 2px 16px rgba(2, 132, 199, 0.05);
    z-index: 50;
    flex-shrink: 0;
    position: relative;
}

.topbar-left[b-rczkdu3n0h] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.topbar-center[b-rczkdu3n0h] {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    white-space: nowrap;
}

.topbar-title[b-rczkdu3n0h] {
    font-size: 15px;
    font-weight: 600;
    color: #0F172A;
}

.topbar-right[b-rczkdu3n0h] {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ── Global patient selector chip ── */
.global-patient-selector[b-rczkdu3n0h] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border: 1.5px dashed #CBD5E1;
    border-radius: 10px;
    cursor: pointer;
    background: #F8FAFC;
    min-width: 190px;
    max-width: 280px;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}
.global-patient-selector:hover[b-rczkdu3n0h] {
    border-color: #0284C7;
    border-style: solid;
    background: #EFF6FF;
}
.global-patient-selector.has-patient[b-rczkdu3n0h] {
    border-style: solid;
    border-color: #BAE6FD;
    background: #F0F9FF;
}
.global-patient-selector.has-patient:hover[b-rczkdu3n0h] {
    border-color: #0284C7;
    background: #E0F2FE;
}
.gps-info[b-rczkdu3n0h] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.gps-label[b-rczkdu3n0h]  { font-size: 10px; color: #94A3B8; line-height: 1; }
.gps-name[b-rczkdu3n0h]   { font-size: 13px; font-weight: 600; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gps-placeholder[b-rczkdu3n0h] { font-size: 13px; color: #94A3B8; }

/* ── Page content ── */
.page-content[b-rczkdu3n0h] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    background: transparent;
}

/* ── Account dropdown ── */
.account-dropdown[b-rczkdu3n0h] {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 234px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.15);
    border: 1px solid #E2E8F0;
    z-index: 1300;
    overflow: hidden;
    padding: 4px 0;
}

.account-menu-header[b-rczkdu3n0h] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 10px;
}

.account-menu-name[b-rczkdu3n0h] {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-menu-role[b-rczkdu3n0h] {
    font-size: 11px;
    color: #64748B;
    margin-top: 1px;
}

.account-menu-divider[b-rczkdu3n0h] {
    height: 1px;
    background: #E2E8F0;
    margin: 4px 0;
}

.account-menu-item[b-rczkdu3n0h] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #334155;
    font-family: inherit;
    text-align: left;
}

.account-menu-item:hover[b-rczkdu3n0h]        { background: #F1F5F9; }
.account-menu-item-danger[b-rczkdu3n0h]       { color: #DC2626; }
.account-menu-item-danger:hover[b-rczkdu3n0h] { background: #FEF2F2; }

/* ── Mobile responsive ── */
@media (max-width: 768px) {
    .thera-sidebar[b-rczkdu3n0h] {
        position: fixed;
        left: -264px;
        top: 0;
        z-index: 200;
    }
    .thera-sidebar.open[b-rczkdu3n0h] { left: 0; }
    .page-content[b-rczkdu3n0h] { padding: 16px; }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-ulw2ger859] {
    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-ulw2ger859] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-ulw2ger859] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-ulw2ger859] {
    font-size: 1.1rem;
}

.bi[b-ulw2ger859] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-ulw2ger859] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-ulw2ger859] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-ulw2ger859] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-ulw2ger859] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-ulw2ger859] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-ulw2ger859] {
        padding-bottom: 1rem;
    }

    .nav-item[b-ulw2ger859]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-ulw2ger859]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-ulw2ger859]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-ulw2ger859] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-ulw2ger859] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-ulw2ger859] {
        display: none;
    }

    .nav-scrollable[b-ulw2ger859] {
        /* 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/Shared/NavGroup.razor.rz.scp.css */
.nav-group[b-7jwx2lzqa6] {
    margin-bottom: 1px;
}

.nav-group-header[b-7jwx2lzqa6] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    margin: 2px 8px;
    border-radius: 10px;
    cursor: pointer;
    color: #475569;
    font-size: 13.5px;
    font-weight: 500;
    user-select: none;
    position: relative;
}

.nav-group-header:hover[b-7jwx2lzqa6] {
    background: #DBEAFE;
    color: #2563EB;
}

.nav-group-header.child-active[b-7jwx2lzqa6] {
    background: #DBEAFE;
    color: #1D4ED8;
    font-weight: 600;
}

.nav-group-header.child-active[b-7jwx2lzqa6]::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #0284C7;
    border-radius: 0 3px 3px 0;
}

.nav-group-label[b-7jwx2lzqa6] {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-group-items[b-7jwx2lzqa6] {
    padding-left: 4px;
    padding-bottom: 2px;
}
/* /Components/Shared/NavItem.razor.rz.scp.css */
.nav-item[b-lv2lx5e02f] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    margin: 2px 8px;
    border-radius: 10px;
    text-decoration: none;
    color: #475569;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.nav-item:hover[b-lv2lx5e02f] {
    background: #DBEAFE;
    color: #2563EB;
    text-decoration: none;
}

.nav-item.active[b-lv2lx5e02f] {
    background: #DBEAFE;
    color: #1D4ED8;
    font-weight: 600;
}

.nav-item.active[b-lv2lx5e02f]::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #0284C7;
    border-radius: 0 3px 3px 0;
}

.nav-item.sub[b-lv2lx5e02f] {
    padding: 6px 16px 6px 44px;
    font-size: 12.5px;
    font-weight: 400;
}

[b-lv2lx5e02f] .nav-icon {
    font-size: 18px !important;
    flex-shrink: 0;
}
