/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* --------------------------------
   Layout shell
--------------------------------- */
.layout-page[b-r36qyyl45l] {
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* mobile stacks */
}

.layout-sidebar[b-r36qyyl45l] {
    flex: 0 0 auto;
}

.layout-main[b-r36qyyl45l] {
    flex: 1 1 auto;
    min-width: 0; /* CRITICAL: allows main to take remaining width */
    display: flex;
    flex-direction: column;
}

/* Desktop: sidebar + main side-by-side */
@media (min-width: 641px) {
    .layout-page[b-r36qyyl45l] {
        flex-direction: row;
    }

    .layout-sidebar[b-r36qyyl45l] {
        position: sticky;
        top: 0;
        height: 100vh;
        align-self: flex-start;
        /* IMPORTANT: no width here. NavMenu controls its own width (expanded/collapsed) */
    }
}

/* --------------------------------
   Top bar
--------------------------------- */
.layout-topbar[b-r36qyyl45l] {
    height: 3.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
    background: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    position: sticky;
    top: 0;
    z-index: 5;
}

.topbar-right[b-r36qyyl45l] {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* Page content */
.layout-content[b-r36qyyl45l] {
    padding: 1rem;
    min-width: 0;
}

/* --------------------------------
   Syncfusion menu styling
--------------------------------- */
[b-r36qyyl45l] .e-rounded-menu .e-menu-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

[b-r36qyyl45l] .e-rounded-menu .e-menu-item {
    background: transparent !important;
    border: none !important;
}

    [b-r36qyyl45l] .e-rounded-menu .e-menu-item:hover {
        background-color: rgba(0, 0, 0, 0.08) !important;
    }

[b-r36qyyl45l] .e-menu-container.e-rounded-menu:not(.e-menu-popup),
[b-r36qyyl45l] .e-menu-container.e-rounded-menu .e-menu {
    border-radius: 20px;
}

[b-r36qyyl45l] .e-menu-container.e-rounded-menu ul.e-menu {
    padding: 0 14px;
}

/* --------------------------------
   Topbar link + logout button
--------------------------------- */
.topbar-link[b-r36qyyl45l] {
    color: #1A1A1A;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 4px;
    text-decoration: none;
}

    .topbar-link:hover[b-r36qyyl45l] {
        background-color: #E5E5E5;
        color: #1A1A1A;
    }

    .topbar-link:focus[b-r36qyyl45l],
    .topbar-link:focus-visible[b-r36qyyl45l] {
        outline: 3px solid #CDE4FF;
        outline-offset: 2px;
    }

.logout-btn[b-r36qyyl45l] {
    background-color: #0067C5;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    cursor: pointer;
}

    .logout-btn:hover[b-r36qyyl45l] {
        background-color: #0053A3;
    }

    .logout-btn svg[b-r36qyyl45l] {
        fill: currentColor;
    }

    .logout-btn:focus[b-r36qyyl45l],
    .logout-btn:focus-visible[b-r36qyyl45l] {
        outline: 3px solid #CDE4FF;
        outline-offset: 2px;
    }

/* --------------------------------
   Blazor error UI (default-ish)
--------------------------------- */
#blazor-error-ui[b-r36qyyl45l] {
    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-r36qyyl45l] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* =========================================================
   NavMenu.razor.css — Collapsible Sidebar (Hamburger-only)
   Works with: <div class="sidebar @(navExpanded ? "expanded" : "collapsed")">
   ========================================================= */

/* ---------- Sidebar shell ---------- */
.sidebar[b-ef95ycuix7] {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.40);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: width 160ms ease;
}

    /* widths */
    .sidebar.expanded[b-ef95ycuix7] {
        width: 16rem;
    }

    .sidebar.collapsed[b-ef95ycuix7] {
        width: 3.75rem;
    }
/* hamburger-only */

/* ---------- Top row (collapses too) ---------- */
.top-row[b-ef95ycuix7] {
    height: 3.5rem;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: rgba(0, 0, 0, 0.35);
}

/* Brand link */
.navbar-brand[b-ef95ycuix7] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: white;
    text-decoration: none;
    min-width: 0; /* allow ellipsis */
}

.brand-logo[b-ef95ycuix7] {
    width: 1.6rem;
    height: 1.6rem;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-text[b-ef95ycuix7] {
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Collapsed: top-row becomes hamburger-only */
.sidebar.collapsed .navbar-brand[b-ef95ycuix7] {
    display: none;
}

/* ---------- Toggler button (always visible) ---------- */
.navbar-toggler[b-ef95ycuix7] {
    cursor: pointer;
    width: 2.75rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

    .navbar-toggler:hover[b-ef95ycuix7] {
        background: rgba(255, 255, 255, 0.16);
    }

    .navbar-toggler:active[b-ef95ycuix7] {
        background: rgba(255, 255, 255, 0.22);
    }

    .navbar-toggler:focus-visible[b-ef95ycuix7] {
        outline: 2px solid rgba(255, 255, 255, 0.35);
        outline-offset: 2px;
    }

.navbar-toggler-icon[b-ef95ycuix7] {
    width: 1.6rem;
    height: 1.6rem;
    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.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center / 1.6rem 1.6rem;
}

/* ---------- Nav area ---------- */
.nav-scrollable[b-ef95ycuix7] {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.25rem 0;
}

/* Collapsed: hide the entire menu section */
.sidebar.collapsed .nav-scrollable[b-ef95ycuix7] {
    display: none;
}

/* (Optional) smoother scrollbars in WebKit */
.nav-scrollable[b-ef95ycuix7]::-webkit-scrollbar {
    width: 10px;
}

.nav-scrollable[b-ef95ycuix7]::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

/* ---------- Nav links ---------- */
.nav-link[b-ef95ycuix7] {
    height: 3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.9rem;
    margin: 0.10rem 0.35rem;
    border-radius: 0.6rem;
    text-decoration: none;
    color: #d7d7d7;
    background: none;
}

    .nav-link:hover[b-ef95ycuix7] {
        background-color: rgba(255, 255, 255, 0.10);
        color: white;
    }

    .nav-link.active[b-ef95ycuix7] {
        background-color: rgba(255, 255, 255, 0.28);
        color: white;
    }

    .nav-link:focus-visible[b-ef95ycuix7] {
        outline: 2px solid rgba(255, 255, 255, 0.35);
        outline-offset: 2px;
    }

.link-text[b-ef95ycuix7] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Icons (your existing bi-* svg background classes) ---------- */
.bi[b-ef95ycuix7] {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    display: inline-block;
    background-size: cover;
}

/* ===============================
   Sidebar color polish (FINAL)
================================ */

/* Sidebar background */
.sidebar[b-ef95ycuix7] {
    background-color: #1f1f1f; /* dark neutral */
}

/* Top strip (logo + hamburger) */
.top-row[b-ef95ycuix7] {
    background-color: #181818;
}

/* Nav link text */
.nav-link[b-ef95ycuix7] {
    color: #dcdcdc;
}

    /* Hover */
    .nav-link:hover[b-ef95ycuix7] {
        color: #ffffff;
        background-color: rgba(255, 255, 255, 0.12);
    }

    /* Active page */
    .nav-link.active[b-ef95ycuix7] {
        color: #ffffff;
        background-color: rgba(255, 255, 255, 0.30);
    }

/* Icons slightly brighter on dark bg */
.bi[b-ef95ycuix7] {
    filter: brightness(1.15);
}

/* Target the button text and icon specifically */
/* Base state: No border, transparent background, white text/icons */

/* Use ::deep to target child elements of the .enrollment-container */
[b-ef95ycuix7] .enrollment-btn.e-btn,
[b-ef95ycuix7] .enrollment-btn.e-btn .e-btn-icon {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #FFFFFF !important; /* Forces white text and icons */
}

    /* Hover effect isolated to this page only */
    [b-ef95ycuix7] .enrollment-btn.e-btn:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
        border: none !important;
        color: #FFFFFF !important;
    }

    /* Ensure no borders reappear on focus or active states */
    [b-ef95ycuix7] .enrollment-btn.e-btn:focus,
    [b-ef95ycuix7] .enrollment-btn.e-btn:active {
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

/* Isolated style for images inside nodes */
[b-ef95ycuix7] .node-img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
    display: block;
}

[b-ef95ycuix7] .node-fallback {
    width: 20px;
    display: inline-flex;
    justify-content: center;
    margin-right: 4px;
}

[b-ef95ycuix7] .nav-link {
    line-height: 1.2;
}
/* /Components/Pages/Members/AddMemberInGroup.razor.rz.scp.css */
/* ---------- Syncfusion dialog header (scoped via :deep) ---------- */

:deep(#AddMemberDialog.e-dialog .e-dlg-header-content)[b-evgj2rc6n5] {
    background-color: #3f51b5;
    padding: 6px;
}

:deep(#AddMemberDialog.e-dialog .e-dlg-header)[b-evgj2rc6n5] {
    position: relative;
}

:deep(#AddMemberDialog.e-dialog .e-dlg-header-content .e-btn.e-dlg-closeicon-btn)[b-evgj2rc6n5] {
    top: 5px;
    left: -11px;
}

:deep(#AddMemberDialog.e-dialog .e-dlg-header .e-icon-settings)[b-evgj2rc6n5],
:deep(#AddMemberDialog.e-dialog .e-icon-btn)[b-evgj2rc6n5],
:deep(#AddMemberDialog.e-dialog .e-dlg-header-content .e-icon-dlg-close)[b-evgj2rc6n5] {
    color: #fff;
}

.template-avatar[b-evgj2rc6n5] {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

    .template-avatar img[b-evgj2rc6n5] {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        display: block;
        background-color: transparent;
    }
/* ---------- Header title ---------- */

.template-title[b-evgj2rc6n5] {
    display: inline-block;
    padding: 0 10px;
    height: 40px;
    line-height: 40px;
    vertical-align: middle;
}

/* ---------- Dialog content layout (fully scoped) ---------- */

.member-dialog[b-evgj2rc6n5] {
    width: 100%;
}

    .member-dialog .filters[b-evgj2rc6n5] {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }

    .member-dialog .grid[b-evgj2rc6n5] {
        margin-top: 1rem;
        width: 100%;
    }
/* /Components/Pages/ProgramDashBoards/DepartmentView.razor.rz.scp.css */
/* This allows the isolated file to target the global body tag */
[b-fdi5ojhqn4] html,
[b-fdi5ojhqn4] body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}
[b-fdi5ojhqn4] .button-container {
    display: flex; /* Enables flexbox layout */
    gap: 10px; /* Adds space between the buttons */
    width: 100%; /* Ensures the container fills the available width */
}

/* 1. Target the button and force flex centering */
[b-fdi5ojhqn4] .center-fix {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important; /* Remove any padding that offsets the icon */
}

    /* 2. Remove the default margin that Syncfusion adds to icons */
[b-fdi5ojhqn4] .center-fix .e-btn-icon {
        margin: 0 !important;
        width: auto !important; /* Ensures the icon container doesn't take extra width */
    }

[b-fdi5ojhqn4] .my-splitter .e-pane,
[b-fdi5ojhqn4] .my-splitter .e-pane-content {
    min-height: 0;
}

[b-fdi5ojhqn4] .my-splitter .e-pane-content {
    height: 100%;
    overflow: auto; /* pane scrollbars */
}

[b-fdi5ojhqn4] .pane-bottom-spacer {
    height: 1.5rem; /* adjust as needed */
    flex-shrink: 0; /* safety: never collapse */
}


[b-fdi5ojhqn4] .node-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

[b-fdi5ojhqn4] .node-fallback {
    width: 20px;
    display: inline-flex;
    justify-content: center;
}

[b-fdi5ojhqn4] .badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid #ccc;
}

/* department vs group styling */
[b-fdi5ojhqn4] .node-dept .e-list-text {
    font-weight: 700;
}

[b-fdi5ojhqn4] .node-group .e-list-text {
    font-weight: 400;
}

/*  formatting the node */
/* 1) Force the TreeView node text host to behave like a full-width flex row */
[b-fdi5ojhqn4] .e-treeview .e-text-content,
[b-fdi5ojhqn4] .e-treeview .e-list-text {
    display: flex;
    align-items: center;
    width: 100%;
}

/* 2) Your template root stretches full width */
[b-fdi5ojhqn4] .node-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex: 1; /* important inside a flex parent */
    min-width: 0; /* important so text can shrink */
}

/* 3) Let the text take remaining space, and shrink nicely */
[b-fdi5ojhqn4] .node-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 4) Push button to the far right + 10px padding */
    [b-fdi5ojhqn4] .enrollment-btn.e-btn,
    [b-fdi5ojhqn4] .enrollment-btn.e-btn .e-btn-icon {
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
        /* Hover effect isolated to this page only */
        [b-fdi5ojhqn4] .enrollment-btn.e-btn:hover {
            background-color: rgba(255, 255, 255, 0.9) !important;
            border: none !important;
            color: black !important;
        }

        /* Ensure no borders reappear on focus or active states */
        [b-fdi5ojhqn4] .enrollment-btn.e-btn:focus,
        [b-fdi5ojhqn4] .enrollment-btn.e-btn:active {
            background-color: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }

/* formating menu */
/* Target the main container of the context menu */
[b-fdi5ojhqn4] .custom-rounded-menu.e-contextmenu-wrapper ul {
    border-radius: 12px; /* Adjust the radius as needed */
    overflow: hidden; /* Critical: clips internal item corners */
    border: 1px solid #ccc; /* Optional: adds a border to define the shape */
}

/* Optional: If using submenus, apply to them as well */
[b-fdi5ojhqn4] .custom-rounded-menu.e-contextmenu-container ul {
    border-radius: 12px;
}
/* /Components/Pages/Shared/EmailComposerDialog.razor.rz.scp.css */


