/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-g9g61gzpha] {
    position: relative;
    display: flex;
    flex-direction: column;
    /* Reserve room for the fixed top bar */
    padding-top: 44px;
    min-height: 100vh;
}

main[b-g9g61gzpha] {
    flex: 1;
    position: relative;
}

.sidebar-toggle-checkbox[b-g9g61gzpha] {
    display: none;
}

/* ---- Fixed top app bar (always visible) ---- */
.app-topbar[b-g9g61gzpha] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.75rem;
    background-color: #003d6b;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.topbar-brand[b-g9g61gzpha] {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    color: #ffffff;
    text-decoration: none;
    line-height: 1;
    padding: 0 0.25rem;
}

.topbar-brand:hover[b-g9g61gzpha] {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
}

.topbar-brand-icon[b-g9g61gzpha] {
    font-size: 1.05rem;
    line-height: 1;
}

.topbar-brand-text[b-g9g61gzpha] {
    line-height: 1;
}

/* ── Multi-tenant breadcrumb (Organization › Instance) ─────────────────── */
.topbar-tenant-divider[b-g9g61gzpha] {
    color: rgba(255,255,255,0.45);
    font-weight: 300;
    font-size: 0.95rem;
    margin: 0 0.5rem;
    user-select: none;
}

.topbar-tenant[b-g9g61gzpha] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #ffffff;
    font-size: 0.8125rem;
    line-height: 1;
    max-width: 22rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-tenant-org[b-g9g61gzpha] {
    font-weight: 500;
    opacity: 0.85;
}

.topbar-tenant-org-link[b-g9g61gzpha] {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 120ms ease;
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
}

.topbar-tenant-org-link:hover[b-g9g61gzpha] {
    opacity: 1;
    color: #ffffff;
    text-decoration: underline;
}

.topbar-tenant-back[b-g9g61gzpha] {
    font-size: 1.05rem;
    line-height: 1;
    opacity: 0.85;
    margin-right: 0.1rem;
}

.topbar-tenant-org-link:hover .topbar-tenant-back[b-g9g61gzpha] {
    opacity: 1;
}

.topbar-tenant-sep[b-g9g61gzpha] {
    font-size: 0.7rem;
    opacity: 0.55;
}

.topbar-tenant-instance[b-g9g61gzpha] {
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ── Instance switcher (multi-instance users) ─────────────────────────── */
.topbar-tenant-switcher[b-g9g61gzpha] {
    position: relative;
    display: inline-block;
}

.topbar-tenant-switcher > summary[b-g9g61gzpha] {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 4px 8px;
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.8125rem;
    line-height: 1;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.18);
    transition: background 140ms ease, border-color 140ms ease;
    max-width: 24rem;
}

.topbar-tenant-switcher > summary[b-g9g61gzpha]::-webkit-details-marker { display: none; }

.topbar-tenant-switcher > summary:hover[b-g9g61gzpha] {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.35);
}

.topbar-tenant-switcher[open] > summary[b-g9g61gzpha] {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.4);
}

.topbar-tenant-caret[b-g9g61gzpha] {
    font-size: 0.65rem;
    margin-left: 0.25rem;
    opacity: 0.8;
}

.topbar-tenant-menu[b-g9g61gzpha] {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 240px;
    max-width: 320px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    color: #1f2937;
    padding: 6px 0;
    z-index: 1100;
}

.topbar-tenant-menu-header[b-g9g61gzpha] {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #6b7280;
    padding: 6px 12px 4px;
}

.topbar-tenant-menu-org[b-g9g61gzpha] {
    font-size: 0.7rem;
    font-weight: 600;
    color: #003d6b;
    padding: 6px 12px 2px;
    margin-top: 2px;
    border-top: 1px solid #f3f4f6;
}

.topbar-tenant-menu-org:first-of-type[b-g9g61gzpha] {
    border-top: none;
    margin-top: 0;
}

.topbar-tenant-menu-form[b-g9g61gzpha] {
    margin: 0;
    padding: 0;
}

.topbar-tenant-menu-item[b-g9g61gzpha] {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 7px 12px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.8125rem;
    color: #1f2937;
    transition: background 120ms ease;
}

.topbar-tenant-menu-item:hover:not(:disabled)[b-g9g61gzpha] {
    background: #f3f4f6;
}

.topbar-tenant-menu-item:disabled[b-g9g61gzpha],
.topbar-tenant-menu-item.active[b-g9g61gzpha] {
    color: #003d6b;
    font-weight: 600;
    cursor: default;
    background: #eef2f7;
}

.topbar-tenant-menu-icon[b-g9g61gzpha] {
    font-size: 0.85rem;
    color: #6b7280;
}

.topbar-tenant-menu-item.active .topbar-tenant-menu-icon[b-g9g61gzpha] {
    color: #16a34a;
}

.topbar-tenant-menu-badge[b-g9g61gzpha] {
    margin-left: auto;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 6px;
    border-radius: 9999px;
    background: #eef2ff;
    color: #4338ca;
}

.sidebar-toggle-btn[b-g9g61gzpha] {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    margin: 0;
    transition: background 160ms ease, transform 160ms ease;
}

.sidebar-toggle-btn:hover[b-g9g61gzpha] {
    background: rgba(255,255,255,0.18);
}

.sidebar-toggle-btn i[b-g9g61gzpha] {
    display: inline-block;
}

/* Pushes user controls to the right edge of the topbar */
.topbar-spacer[b-g9g61gzpha] {
    flex: 1 1 auto;
}

.topbar-user[b-g9g61gzpha] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 0.8rem;
    line-height: 1;
    padding-right: 0.25rem;
}

.topbar-user-icon[b-g9g61gzpha] {
    font-size: 1.05rem;
    opacity: 0.9;
}

.topbar-user-name[b-g9g61gzpha] {
    font-weight: 600;
    letter-spacing: 0.2px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Two-line identity block: bold full-name on top, muted email below. */
.topbar-user-identity[b-g9g61gzpha] {
    max-width: 240px;
}

.topbar-user-email[b-g9g61gzpha] {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.72) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 240px;
    display: block;
}

.topbar-user-logout[b-g9g61gzpha] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.06);
    transition: background 160ms ease, border-color 160ms ease;
    margin-left: 0.4rem;
}

.topbar-user-logout:hover[b-g9g61gzpha] {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.4);
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 540px) {
    .topbar-user-name[b-g9g61gzpha] { max-width: 110px; font-size: 0.75rem; }
}

/* ── Agent presence / status picker ──────────────────────────────── */

/* Avatar wrap: icon + ring */
.topbar-avatar-wrap[b-g9g61gzpha] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: default;
}

.topbar-avatar-icon[b-g9g61gzpha] {
    position: relative;
    font-size: 1.15rem;
    line-height: 1;
    color: rgba(255,255,255,0.9);
}

/* Tiny colored ring/dot at bottom-right of avatar */
.presence-ring[b-g9g61gzpha] {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--topbar-bg, #1a2332);
}
.presence-ring--available[b-g9g61gzpha] { background: #22c55e; }
.presence-ring--busy[b-g9g61gzpha]      { background: #ef4444; }
.presence-ring--away[b-g9g61gzpha]      { background: #f59e0b; }
.presence-ring--offline[b-g9g61gzpha]   { background: #94a3b8; }

/* Small status label below the user name */
.presence-label[b-g9g61gzpha] {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1px;
}
.presence-label--available[b-g9g61gzpha] { color: #86efac; }
.presence-label--busy[b-g9g61gzpha]      { color: #fca5a5; }
.presence-label--away[b-g9g61gzpha]      { color: #fcd34d; }
.presence-label--offline[b-g9g61gzpha]   { color: rgba(255,255,255,0.5); }

/* Trigger button */
.presence-picker[b-g9g61gzpha] {
    position: relative;
}

.presence-trigger[b-g9g61gzpha] {
    background: none;
    border: none;
    padding: 0.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 150ms;
}
.presence-trigger:hover[b-g9g61gzpha] {
    background: rgba(255,255,255,0.12);
}

/* The colored status dot */
.presence-dot[b-g9g61gzpha] {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.25);
}
.presence-dot--available[b-g9g61gzpha] { background: #22c55e; border-color: rgba(34,197,94,0.4); }
.presence-dot--busy[b-g9g61gzpha]      { background: #ef4444; border-color: rgba(239,68,68,0.4); }
.presence-dot--away[b-g9g61gzpha]      { background: #f59e0b; border-color: rgba(245,158,11,0.4); }
.presence-dot--offline[b-g9g61gzpha]   { background: #94a3b8; border-color: rgba(148,163,184,0.4); }

/* Dropdown panel */
.presence-dropdown[b-g9g61gzpha] {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    z-index: 9999;
    overflow: hidden;
}

.presence-dropdown-header[b-g9g61gzpha] {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    padding: 0.55rem 0.85rem 0.3rem;
}

.presence-option[b-g9g61gzpha] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    background: none;
    border: none;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: background 120ms;
    text-align: left;
}
.presence-option:hover[b-g9g61gzpha]  { background: #f1f5f9; }
.presence-option.active[b-g9g61gzpha] { background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.presence-option.active .presence-dot[b-g9g61gzpha] { border-color: rgba(29,78,216,0.3); }

/* Override dot border in white-bg dropdown */
.presence-dropdown .presence-dot[b-g9g61gzpha] {
    border: 2px solid #e2e8f0;
}
.presence-dropdown .presence-dot--available[b-g9g61gzpha] { border-color: rgba(34,197,94,0.3); }
.presence-dropdown .presence-dot--busy[b-g9g61gzpha]      { border-color: rgba(239,68,68,0.3); }
.presence-dropdown .presence-dot--away[b-g9g61gzpha]      { border-color: rgba(245,158,11,0.3); }
.presence-dropdown .presence-dot--offline[b-g9g61gzpha]   { border-color: rgba(148,163,184,0.3); }

/* The topbar-toggle glyph flip when collapsed is now driven by
   `html.sidebar-collapsed .app-topbar .sidebar-toggle-btn i` in
   wwwroot/app.css — see the note in the collapsed-rail section. */

.sidebar[b-g9g61gzpha] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-g9g61gzpha] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-g9g61gzpha]  a, .top-row[b-g9g61gzpha]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-g9g61gzpha]  a:hover, .top-row[b-g9g61gzpha]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-g9g61gzpha]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-g9g61gzpha] {
        justify-content: space-between;
    }

    .top-row[b-g9g61gzpha]  a, .top-row[b-g9g61gzpha]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-g9g61gzpha] {
        flex-direction: row;
        /* Reserve room for the fixed sidebar so content never slides under it. */
        padding-left: 200px;
    }

    .sidebar[b-g9g61gzpha] {
        width: 200px;
        height: calc(100vh - 44px);
        position: fixed;
        top: 44px;
        left: 0;
        z-index: 1020;
        /* No transition — collapse/expand is instant (no slide animation). */
        overflow: hidden;
        /* Flex column so the brand-bottom block can be pinned at the foot
           while the nav links scroll above it. */
        display: flex;
        flex-direction: column;
    }
        .sidebar[b-g9g61gzpha]  .nav-scrollable {
            flex: 1 1 auto;
            min-height: 0;
            overflow-y: auto;
        }

        /* Pinned brand strip at the very top of the sidebar (below header). */
        .sidebar-brand-top[b-g9g61gzpha] {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            min-height: 44px;
            padding: 0.5rem 0.75rem;
            background-color: #003566;
            color: #ffffff;
            font-family: 'Outfit', sans-serif;
            font-weight: 700;
            font-size: 0.95rem;
            letter-spacing: 0.4px;
            text-decoration: none;
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }
        .sidebar-brand-top:hover[b-g9g61gzpha] {
            color: #ffffff;
            opacity: 0.92;
            text-decoration: none;
        }
        .sidebar-brand-icon[b-g9g61gzpha] { font-size: 1.05rem; }

        /* When the brand-top slot hosts the sidebar toggle (label bound to the
           hidden #sidebar-toggle checkbox) it should feel clickable: pointer
           cursor + a slightly stronger hover. */
        .sidebar-toggle-rail[b-g9g61gzpha] {
            cursor: pointer;
            user-select: none;
        }
        .sidebar-toggle-rail:hover[b-g9g61gzpha] {
            background-color: #00457f;
            opacity: 1;
        }

        /* NOTE: collapsed-rail styles (width override, icon-only layout,
           hidden labels, label-under-icon, etc.) live in wwwroot/app.css
           under the `html.sidebar-collapsed` selector. They cannot live
           here because Blazor's scoped CSS pipeline rewrites selectors
           with a `[b-xxxxx]` attribute that the <html> element does not
           carry, so a scoped `html.sidebar-collapsed ...` rule would
           never match. */

        /* Hide the in-sidebar brand bar on desktop — the global fixed topbar replaces it. */
        .sidebar[b-g9g61gzpha]  .top-row {
            display: none !important;
        }

    .top-row[b-g9g61gzpha] {
        position: sticky;
        top: 44px;
        z-index: 1;
    }

    .top-row.auth[b-g9g61gzpha]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-g9g61gzpha], article[b-g9g61gzpha] {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

#blazor-error-ui[b-g9g61gzpha] {
    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-g9g61gzpha] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* =============================================
   NavMenu — MSuite-aligned sidebar styling
   ============================================= */

/* ---- Top row (brand bar) ---- */
.navbar-toggler[b-5e0nnkxs81] {
    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.15);
    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.7%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.08);
}

.navbar-toggler:checked[b-5e0nnkxs81] {
    background-color: rgba(255,255,255,0.2);
}

/* Sidebar background — MSuite uses a dark sidebar like Angular Material sidenav */
.top-row[b-5e0nnkxs81] {
    background-color: #003d6b !important;   /* deep navy, matches MSuite sidebar */
    min-height: 56px;
    padding: 0 0.75rem !important;
    display: flex;
    align-items: center;
}

/* Logo */
.brand-logo[b-5e0nnkxs81] {
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* make logo white on dark bg */
}

/* Separator between logo and app title */
.nav-separator[b-5e0nnkxs81] {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.25);
    margin: 0 0.625rem;
}

/* App title text next to logo */
.nav-app-title[b-5e0nnkxs81] {
    font-family:  'Outfit', sans-serif;
    font-size:    1rem;
    font-weight:  700;
    color:        #ffffff;
    letter-spacing: 0.3px;
}

/* ---- Nav links ---- */
.nav-item[b-5e0nnkxs81] {
    font-size: 0.9375rem;
    padding-bottom: 2px;
}

.nav-item:first-of-type[b-5e0nnkxs81] { padding-top: 0.5rem; }
.nav-item:last-of-type[b-5e0nnkxs81]  { padding-bottom: 1rem; }

.nav-item[b-5e0nnkxs81]  .nav-link {
    color:        rgba(255,255,255,0.75);
    background:   none;
    border:       none;
    border-radius: 4px;
    height:       2.75rem;
    display:      flex;
    align-items:  center;
    gap:          0.625rem;
    padding:      0 0.75rem;
    width:        100%;
    font-family:  'Outfit', sans-serif;
    font-weight:  500;
    font-size:    0.9375rem;
    transition:   all 160ms ease;
}

.nav-icon[b-5e0nnkxs81] {
    font-size: 1.1rem;
    width:     1.25rem;
    text-align: center;
    flex-shrink: 0;
}

/* Active state — highlight with primary blue accent */
.nav-item[b-5e0nnkxs81]  a.active {
    background-color: rgba(0, 122, 204, 0.25);
    color:            #ffffff;
    border-left:      3px solid #007acc;
    padding-left:     calc(0.75rem - 3px);
    font-weight:      600;
}

.nav-item[b-5e0nnkxs81]  a.active .nav-icon {
    color: #7ec8f0;
}

/* Hover state */
.nav-item[b-5e0nnkxs81]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color:            #ffffff;
}

/* Section header labels (e.g. Platform, Organization) on blue sidebar */
.nav-section-header[b-5e0nnkxs81] {
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.nav-section-header small[b-5e0nnkxs81] {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

/* ---- User / logout block ---- */
.nav-user[b-5e0nnkxs81] {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
}

.nav-user-name[b-5e0nnkxs81] {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-user-logout[b-5e0nnkxs81] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 0.25rem 0;
}

.nav-user-logout:hover[b-5e0nnkxs81] {
    color: #ffffff;
    text-decoration: underline;
}

/* ---- Scrollable area ---- */
.nav-scrollable[b-5e0nnkxs81] {
    display: none;
    background-color: #004785; /* MSuite sidebar blue */
    height: calc(100vh - 56px);
}

.navbar-toggler:checked ~ .nav-scrollable[b-5e0nnkxs81] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-5e0nnkxs81] { display: none; }

    .nav-scrollable[b-5e0nnkxs81] {
        display:    block;
        /* Sidebar (in MainLayout) is a flex column with the bottom brand
           strip pinned underneath this scrollable area; let flex decide
           the height instead of a fixed calc so both children share space
           correctly. */
        height:     auto;
        flex:       1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }
}
/* /Components/Layout/TopbarUserStatus.razor.rz.scp.css */
/* ── TopbarUserStatus: presence picker, avatar, ring, label ─────── */

/* Transparent full-screen backdrop — closes dropdown on outside click */
.presence-backdrop[b-zyfh8ftnf9] {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: transparent;
}

.topbar-avatar-wrap[b-zyfh8ftnf9] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: default;
}

.topbar-avatar-icon[b-zyfh8ftnf9] {
    position: relative;
    font-size: 1.15rem;
    line-height: 1;
    color: rgba(255,255,255,0.9);
}

/* Tiny colored ring at bottom-right of avatar */
.presence-ring[b-zyfh8ftnf9] {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--topbar-bg, #1a2332);
}
.presence-ring--available[b-zyfh8ftnf9] { background: #22c55e; }
.presence-ring--busy[b-zyfh8ftnf9]      { background: #ef4444; }
.presence-ring--away[b-zyfh8ftnf9]      { background: #f59e0b; }
.presence-ring--offline[b-zyfh8ftnf9]   { background: #94a3b8; }

/* Status label below the user name */
.presence-label[b-zyfh8ftnf9] {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1px;
}
.presence-label--available[b-zyfh8ftnf9] { color: #86efac; }
.presence-label--busy[b-zyfh8ftnf9]      { color: #fca5a5; }
.presence-label--away[b-zyfh8ftnf9]      { color: #fcd34d; }
.presence-label--offline[b-zyfh8ftnf9]   { color: rgba(255,255,255,0.5); }

/* Trigger button */
.presence-picker[b-zyfh8ftnf9] {
    position: relative;
    z-index: 1000;
}

.presence-trigger[b-zyfh8ftnf9] {
    background: none;
    border: none;
    padding: 0.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 150ms;
}
.presence-trigger:hover[b-zyfh8ftnf9] {
    background: rgba(255,255,255,0.12);
}

/* The colored status dot */
.presence-dot[b-zyfh8ftnf9] {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.25);
}
.presence-dot--available[b-zyfh8ftnf9] { background: #22c55e; border-color: rgba(34,197,94,0.4); }
.presence-dot--busy[b-zyfh8ftnf9]      { background: #ef4444; border-color: rgba(239,68,68,0.4); }
.presence-dot--away[b-zyfh8ftnf9]      { background: #f59e0b; border-color: rgba(245,158,11,0.4); }
.presence-dot--offline[b-zyfh8ftnf9]   { background: #94a3b8; border-color: rgba(148,163,184,0.4); }

/* Dropdown panel */
.presence-dropdown[b-zyfh8ftnf9] {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    z-index: 9999;
    overflow: hidden;
}

.presence-dropdown-header[b-zyfh8ftnf9] {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    padding: 0.55rem 0.85rem 0.3rem;
}

.presence-option[b-zyfh8ftnf9] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    background: none;
    border: none;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: background 120ms;
    text-align: left;
}
.presence-option:hover[b-zyfh8ftnf9]  { background: #f1f5f9; }
.presence-option.active[b-zyfh8ftnf9] { background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.presence-option.active .presence-dot[b-zyfh8ftnf9] { border-color: rgba(29,78,216,0.3); }

/* Override dot border inside the white-bg dropdown */
.presence-dropdown .presence-dot[b-zyfh8ftnf9] {
    border: 2px solid #e2e8f0;
}
.presence-dropdown .presence-dot--available[b-zyfh8ftnf9] { border-color: rgba(34,197,94,0.3); }
.presence-dropdown .presence-dot--busy[b-zyfh8ftnf9]      { border-color: rgba(239,68,68,0.3); }
.presence-dropdown .presence-dot--away[b-zyfh8ftnf9]      { border-color: rgba(245,158,11,0.3); }
.presence-dropdown .presence-dot--offline[b-zyfh8ftnf9]   { border-color: rgba(148,163,184,0.3); }
/* /Components/Pages/CreateTicket.razor.rz.scp.css */
/* ============================================================
   CreateTicket page — compact, polished, theme-aligned
   ============================================================ */

.create-ticket-page[b-mkt11969u2] {
    max-width: 980px;
    margin: 0 auto;
}

/* Breadcrumb */
.create-ticket-page .breadcrumb[b-mkt11969u2] {
    background-color: transparent;
    padding: 0;
    font-size: 0.85rem;
}

.create-ticket-page .breadcrumb-item a[b-mkt11969u2] {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.create-ticket-page .breadcrumb-item a:hover[b-mkt11969u2] {
    text-decoration: underline;
}

/* Card */
.create-ticket-page .create-ticket-card[b-mkt11969u2] {
    border-radius: var(--radius-md);
}

.create-ticket-page .create-ticket-card .card-body[b-mkt11969u2] {
    padding: 1.25rem 1.5rem;
}

/* Form labels & inputs */
.create-ticket-page .form-label-sm[b-mkt11969u2] {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: 0.01em;
}

.create-ticket-page[b-mkt11969u2]  .form-control-sm {
    padding: 0.4rem 0.65rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    border-color: var(--gray-200);
}

.create-ticket-page[b-mkt11969u2]  .form-control-sm:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.15rem rgba(0, 122, 204, 0.15);
}

/* Description textarea — clean, no jumpy resize */
.create-ticket-page[b-mkt11969u2]  .description-area {
    resize: vertical;
    min-height: 120px;
    line-height: 1.45;
    font-family: var(--font-family);
}

/* ── Description rich-text editor ──────────────────────────────────────
   Matches the Reply / Note compose box in TicketDetails exactly,
   wrapped in a bordered container that looks like a standard form input. */

.desc-editor-wrap[b-mkt11969u2] {
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: var(--radius-sm, 4px);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    padding: 0 0.65rem;
}

.desc-editor-wrap:focus-within[b-mkt11969u2] {
    border-color: var(--primary-light, #6366f1);
    box-shadow: 0 0 0 0.15rem rgba(99, 102, 241, 0.15);
}

.compose-toolbar[b-mkt11969u2] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 6px 0 8px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 6px;
}

.compose-tb-btn[b-mkt11969u2] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid transparent;
    background: transparent;
    color: #4b5563;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background-color 0.12s, color 0.12s, border-color 0.12s;
}

.compose-tb-btn:hover[b-mkt11969u2] {
    background: #eef2ff;
    color: #1f2937;
    border-color: #c7d2fe;
}

.compose-tb-btn:active[b-mkt11969u2] {
    background: #e0e7ff;
}

.compose-tb-select[b-mkt11969u2] {
    height: 28px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 4px;
    padding: 0 6px;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
}

.compose-tb-select:focus[b-mkt11969u2] {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.compose-tb-color[b-mkt11969u2] {
    width: 30px;
    height: 28px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 2px;
    background: #fff;
    cursor: pointer;
}

.compose-tb-divider[b-mkt11969u2] {
    width: 1px;
    align-self: stretch;
    background: #e5e7eb;
    margin: 2px 4px;
}

.compose-editor[b-mkt11969u2] {
    min-height: 120px;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 2px 10px;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #1f2937;
    background: transparent;
    outline: none;
    word-wrap: break-word;
}

.compose-editor:focus[b-mkt11969u2] { outline: none; }

.compose-editor:empty[b-mkt11969u2]::before {
    content: attr(data-placeholder);
    color: #9ca3af;
    pointer-events: none;
}

.compose-editor img[b-mkt11969u2]  { max-width: 100%; height: auto; border-radius: 4px; }

.compose-editor blockquote[b-mkt11969u2] {
    border-left: 3px solid #d1d5db;
    margin: 6px 0;
    padding: 2px 12px;
    color: #4b5563;
}

.compose-editor a[b-mkt11969u2] { color: #2563eb; text-decoration: underline; }

.compose-editor ul[b-mkt11969u2],
.compose-editor ol[b-mkt11969u2] { padding-left: 24px; margin: 6px 0; }

/* Validation message — soft */
.create-ticket-page[b-mkt11969u2]  .validation-message {
    color: #d97777;
    font-size: 0.78rem;
    margin-top: 0.2rem;
}

/* Soft danger banner */
.create-ticket-page .alert-soft-danger[b-mkt11969u2] {
    color: #8a4a4a;
    background-color: #fdecec;
    border: 1px solid #f7d4d4;
    font-size: 0.875rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
}

/* Dim placeholders */
.create-ticket-page[b-mkt11969u2]  .input-dim-placeholder::placeholder {
    color: #b8bdc4;
    opacity: 1;
    font-weight: 400;
}

/* ============================================================
   Tag dropdown (searchable multi-select)
   ============================================================ */
.create-ticket-page[b-mkt11969u2]  .tag-dropdown {
    position: relative;
}

.create-ticket-page[b-mkt11969u2]  .tag-dropdown-toggle {
    min-height: calc(1.5em + 0.8rem + 2px);
    height: auto;
    padding: 0.35rem 2rem 0.35rem 0.65rem;
    white-space: normal;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23495057' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.55rem center;
    background-size: 12px 9px;
    border-color: var(--gray-200);
    font-size: 0.8125rem;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.create-ticket-page[b-mkt11969u2]  .tag-dropdown--open .tag-dropdown-toggle {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.15rem rgba(0, 122, 204, 0.15);
}

.create-ticket-page[b-mkt11969u2]  .tag-dropdown-toggle .badge {
    font-weight: 500;
    font-size: 0.72rem;
    padding: 0.2rem 0.4rem;
}

.create-ticket-page[b-mkt11969u2]  .tag-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    min-width: 240px;
    max-height: 320px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .10);
    padding: 0.5rem !important;
}

.create-ticket-page[b-mkt11969u2]  .tag-dropdown-options {
    overflow-y: auto;
    max-height: 200px;
    margin: 0 -0.25rem;
    padding: 0 0.25rem;
}

.create-ticket-page[b-mkt11969u2]  .tag-dropdown-menu .form-check {
    padding-left: 1.6rem;
    margin-bottom: 0;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    border-radius: var(--radius-sm);
}

.create-ticket-page[b-mkt11969u2]  .tag-dropdown-menu .form-check:hover {
    background-color: var(--gray-50);
}

.create-ticket-page[b-mkt11969u2]  .tag-dropdown-menu .form-check-label {
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--text-primary);
}

.create-ticket-page[b-mkt11969u2]  .tag-dropdown-menu .form-check-input {
    margin-top: 0.25rem;
}

.create-ticket-page[b-mkt11969u2]  .tag-dropdown-menu .input-group-sm .form-control,
.create-ticket-page[b-mkt11969u2]  .tag-dropdown-menu .input-group-sm .btn {
    font-size: 0.78rem;
}
/* /Components/Pages/Tickets.razor.rz.scp.css */
/* ── Tickets page layout ─────────────────────────────────────────────────
   The column headers live in .tickets-head-wrapper (a separate non-scrolling
   flex child).  Only .tickets-table-scroll (the row area) scrolls.
   This means the headers physically cannot move — no CSS sticky tricks needed.

   Card height is set by CSS fallback + refined at runtime by fitCard().     */

.tickets-card[b-7mo3vqzlz8] {
    display: flex;
    flex-direction: column;
    /* CSS fallback: 290 = topbar(44)+art-pt(4)+cont-pt(16)+page-hdr(64)
       +views-toolbar(39)+search(39)+cont-pb(24)+art-pb(40)+20safety.
       JS (fitCard) overrides this with the exact measured value.           */
    height: calc(100dvh - 290px);
    min-height: 300px;
    overflow: hidden;
}

/* Header area — never scrolls.  flex-shrink:0 locks its height. */
.tickets-head-wrapper[b-7mo3vqzlz8] {
    flex-shrink: 0;
    overflow-x: hidden;   /* horizontal position synced to body via JS */
}

.tickets-head-wrapper table[b-7mo3vqzlz8] {
    margin-bottom: 0 !important;
}

/* Body scroll area — takes remaining card height and scrolls both axes */
.tickets-table-scroll[b-7mo3vqzlz8] {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

.tickets-table-scroll table[b-7mo3vqzlz8] {
    margin-bottom: 0 !important;
}

/* ── Row styling ─────────────────────────────────────────────────────── */

.tickets-table-scroll table tbody tr:nth-child(even) td[b-7mo3vqzlz8] {
    background-color: #fafbfd;
}

.tickets-table-scroll table tbody tr:hover td[b-7mo3vqzlz8] {
    background-color: #eaf4fc !important;
}

/* Vertical column dividers */
.tickets-head-wrapper table thead th[b-7mo3vqzlz8],
.tickets-table-scroll table tbody td[b-7mo3vqzlz8] {
    border-right: 1px solid #eef0f3;
}
.tickets-head-wrapper table thead th:last-child[b-7mo3vqzlz8],
.tickets-table-scroll table tbody td:last-child[b-7mo3vqzlz8] {
    border-right: none;
}

/* ── Filter row inputs ─────────────────────────────────────────────── */
.tickets-head-wrapper table thead tr.filter-row .form-control-sm[b-7mo3vqzlz8],
.tickets-head-wrapper table thead tr.filter-row .form-select-sm[b-7mo3vqzlz8] {
    font-size: 0.74rem;
    padding: 0.18rem 0.4rem;
    min-width: 90px;
    background-color: #ffffff;
    border: 1px solid #d8dee4;
    border-radius: 3px;
    height: auto;
}

.tickets-head-wrapper table thead tr.filter-row .form-control-sm:focus[b-7mo3vqzlz8],
.tickets-head-wrapper table thead tr.filter-row .form-select-sm:focus[b-7mo3vqzlz8] {
    border-color: var(--primary-color, #007acc);
    box-shadow: 0 0 0 2px rgba(0,122,204,0.18);
}

/* Page size selector */
.page-size-select[b-7mo3vqzlz8] {
    width: 5rem;
    padding-right: 1.75rem;
}

/* Compact create button */
.btn-create-ticket[b-7mo3vqzlz8] {
    padding: 0.2rem 0.6rem;
    font-size: 0.8125rem;
    line-height: 1.2;
}

/* Compact pagination footer */
.tickets-card[b-7mo3vqzlz8]  .card-footer {
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
}

.tickets-card[b-7mo3vqzlz8]  .card-footer .pagination .page-link {
    padding: 0.15rem 0.5rem;
    font-size: 0.8125rem;
}

/* Ticket title link */
.tickets-card[b-7mo3vqzlz8]  .ticket-title-link {
    color: var(--primary-color, #007acc);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.tickets-card[b-7mo3vqzlz8]  .ticket-title-link:hover,
.tickets-card[b-7mo3vqzlz8]  .ticket-title-link:focus {
    color: #005a99;
    text-decoration: underline;
}
