/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Phase 9 — horizontal top-nav layout. The page is a column: nav strip
   sticky at the top, content article below. No sidebar, no separate
   top-row. */
.page[b-3k7g2n6duy] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-3k7g2n6duy] {
    flex: 1;
}

/* Phase 22c (2026-05-13) — Alternative A "deeper" palette: rust orange
   on near-black slate for Global Admin. Distinct from the teal/blue
   tenant-facing portals so MiGuide HQ knows at a glance they're
   cross-tenant. */
[b-3k7g2n6duy] .archer-topnav {
    background-image: linear-gradient(180deg, #c2410c 0%, #1e293b 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[b-3k7g2n6duy] .archer-topnav .navbar-brand {
    font-weight: 600;
    letter-spacing: 0.02em;
}

[b-3k7g2n6duy] .archer-topnav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

[b-3k7g2n6duy] .archer-topnav .nav-link:hover {
    color: #fff;
}

[b-3k7g2n6duy] .archer-topnav .nav-link.active {
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid #fff;
}

#blazor-error-ui[b-3k7g2n6duy] {
    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-3k7g2n6duy] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Phase 9 — NavMenu styling lives in MainLayout.razor.css (::deep
   selectors) so the topnav can sit inside the layout's flex column
   without scoped-CSS isolation getting in the way. Intentionally
   empty. */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-jxlpkof9rr],
.components-reconnect-repeated-attempt-visible[b-jxlpkof9rr],
.components-reconnect-failed-visible[b-jxlpkof9rr],
.components-pause-visible[b-jxlpkof9rr],
.components-resume-failed-visible[b-jxlpkof9rr],
.components-rejoining-animation[b-jxlpkof9rr] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-jxlpkof9rr],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-jxlpkof9rr],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-jxlpkof9rr],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-jxlpkof9rr],
#components-reconnect-modal.components-reconnect-retrying[b-jxlpkof9rr],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-jxlpkof9rr],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-jxlpkof9rr],
#components-reconnect-modal.components-reconnect-failed[b-jxlpkof9rr],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-jxlpkof9rr] {
    display: block;
}


#components-reconnect-modal[b-jxlpkof9rr] {
    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-jxlpkof9rr 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-jxlpkof9rr 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-jxlpkof9rr 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-jxlpkof9rr]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-jxlpkof9rr 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-jxlpkof9rr {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-jxlpkof9rr {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-jxlpkof9rr {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-jxlpkof9rr] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-jxlpkof9rr] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-jxlpkof9rr] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-jxlpkof9rr] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-jxlpkof9rr] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-jxlpkof9rr] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-jxlpkof9rr] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-jxlpkof9rr 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-jxlpkof9rr] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-jxlpkof9rr {
    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/Shared/CascadingMenu.razor.rz.scp.css */
/* Phase 22h.79 (2026-05-16) — centered modal version of the cascade
   menu. Replaces the failed position:fixed flyout that kept getting
   crushed by parent containing-block constraints in the Comms
   composer / column-header context.

   The modal is anchored to the viewport via fixed positioning at
   top-left and a transform-based centering. Items are stacked
   vertically; sub-menus reveal on hover via the rules in
   CascadingMenuNode.razor.css. */

.archer-cascading-backdrop[b-5s27x2ay9b] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1060;
}

.archer-cascading-modal[b-5s27x2ay9b] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, 92vw);
    max-height: 78vh;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    z-index: 1061;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.archer-cascading-modal-header[b-5s27x2ay9b] {
    padding: 0.6rem 0.85rem;
    background: #f4f6f9;
    border-bottom: 2px solid #20c0a0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.archer-cascading-modal-body[b-5s27x2ay9b] {
    padding: 0.4rem 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: visible;
}
/* /Components/Shared/CascadingMenuNode.razor.rz.scp.css */
/* Phase 22h.79 (2026-05-16) — node-level styling for the modal-form
   cascade. Items render as full-width rows; children of a branch
   item appear indented immediately below the parent on hover, and
   collapse when the cursor leaves the parent + its children area.

   Phase 22h.79b — visual hierarchy: each nesting level gets:
     * its own subtle gradient background
     * a colored left-border accent (matches the legacy app
       where each tier had a distinct hue)
     * progressively deeper indent
   so staff can tell at a glance where they are in the tree. */

.archer-cascading-item[b-kpr3ymabz3] {
    user-select: none;
    padding: 7px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: #2c3e50;
    font-size: 0.92rem;
    border-left: 4px solid transparent;
    transition: background-color 0.12s ease, padding-left 0.12s ease;
}
.archer-cascading-item.has-children[b-kpr3ymabz3] {
    font-weight: 600;
    cursor: default;
}
.archer-cascading-item:hover[b-kpr3ymabz3] {
    background-color: #d8f3ee;
}
.archer-cascading-label[b-kpr3ymabz3] {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}
.archer-cascading-arrow[b-kpr3ymabz3] {
    color: #20c0a0;
    margin-left: 12px;
    font-size: 0.78rem;
    flex: 0 0 auto;
    transition: transform 0.12s ease;
}
.archer-cascading-item.has-children:hover .archer-cascading-arrow[b-kpr3ymabz3] {
    transform: rotate(180deg);
}

/* Children block: hidden until parent (or itself) is hovered. */
.archer-cascading-item.has-children + .archer-cascading-children[b-kpr3ymabz3] {
    display: none;
}
.archer-cascading-item.has-children:hover + .archer-cascading-children[b-kpr3ymabz3],
.archer-cascading-item.has-children + .archer-cascading-children:hover[b-kpr3ymabz3] {
    display: block;
}

/* ─── Level palette ────────────────────────────────────────────
   Level 0 = root (Email / Message / Letter / etc.) — teal accent.
   Level 1 = stage (Onboarding / Preparing / etc.)   — blue accent.
   Level 2 = leaf title (specific template)          — green accent.
   Level 3+ = deeper nesting (rare)                  — amber accent.
   Each level also gets a subtle gradient that gets slightly
   greyer as we go deeper. */

.archer-cascading-item[data-level="0"][b-kpr3ymabz3] {
    background: linear-gradient(180deg, #ffffff 0%, #f4f6f9 100%);
    border-left-color: #20c0a0;        /* teal */
    color: #16725f;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

.archer-cascading-item[data-level="1"][b-kpr3ymabz3] {
    background: linear-gradient(180deg, #f4f8fc 0%, #e9eff6 100%);
    border-left-color: #1a73e8;        /* blue */
    color: #144b8a;
    padding-left: 32px;
    font-weight: 600;
}

.archer-cascading-item[data-level="2"][b-kpr3ymabz3] {
    background: linear-gradient(180deg, #eef7f0 0%, #e2f0e6 100%);
    border-left-color: #5cb85c;        /* green */
    color: #2c3e50;
    padding-left: 56px;
    font-weight: 500;
}

.archer-cascading-item[data-level="3"][b-kpr3ymabz3] {
    background: linear-gradient(180deg, #fdf6e3 0%, #f7eccb 100%);
    border-left-color: #f0ad4e;        /* amber */
    color: #2c3e50;
    padding-left: 80px;
}

.archer-cascading-item[data-level="4"][b-kpr3ymabz3] {
    background: linear-gradient(180deg, #fbeaea 0%, #f4d8d8 100%);
    border-left-color: #d9534f;        /* red */
    color: #2c3e50;
    padding-left: 104px;
}

/* Hover override per level — slightly stronger highlight. */
.archer-cascading-item[data-level="0"]:hover[b-kpr3ymabz3] { background: linear-gradient(180deg, #d8f3ee 0%, #b9e6db 100%); }
.archer-cascading-item[data-level="1"]:hover[b-kpr3ymabz3] { background: linear-gradient(180deg, #d4e6f7 0%, #b8d4ec 100%); }
.archer-cascading-item[data-level="2"]:hover[b-kpr3ymabz3] { background: linear-gradient(180deg, #d4ebd8 0%, #b6dcbe 100%); }
.archer-cascading-item[data-level="3"]:hover[b-kpr3ymabz3] { background: linear-gradient(180deg, #fbedb6 0%, #f3dd8a 100%); }
.archer-cascading-item[data-level="4"]:hover[b-kpr3ymabz3] { background: linear-gradient(180deg, #f3c5c5 0%, #e9a4a4 100%); }
