/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Phase 15 — Team Portal theme.
   Teal → deep green gradient for the topbar. Rationale: the
   Business Admin Portal owns the navy/blue palette and the Clients
   Portal owns the sky-blue/navy palette; Team needs its own hue so
   an agent can tell at a glance which window they're in across the
   three. Deep green reads "operations / team workspace" and is
   distinct from the legacy purple. */

/* Phase 22c (2026-05-13) — Alternative A "deeper" palette per the
   user's choice. Business side = darker teal + near-black slate. */
.archer-team-theme[b-yntscyygkf] {
    --archer-topbar-from: #0f766e;   /* darker teal — matches Archer logo (Business variant) */
    --archer-topbar-to:   #1e293b;   /* near-black slate */
    --archer-topbar-text: #ffffff;
    --archer-nav-active:  rgba(255,255,255,0.20);
}

.archer-topbar[b-yntscyygkf] {
    background-image: linear-gradient(90deg, var(--archer-topbar-from) 0%, var(--archer-topbar-to) 100%);
    color: var(--archer-topbar-text);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.archer-topbar-inner[b-yntscyygkf] {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.5rem 1.5rem;
}

.archer-brand[b-yntscyygkf] {
    color: var(--archer-topbar-text);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    white-space: nowrap;
}

.archer-brand:hover[b-yntscyygkf] { color: var(--archer-topbar-text); text-decoration: none; }

.archer-brand-sub[b-yntscyygkf] {
    font-weight: 400;
    opacity: 0.8;
    font-size: 0.9rem;
    margin-left: 0.25rem;
}

[b-yntscyygkf] .archer-nav {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0.25rem;
}

[b-yntscyygkf] .archer-nav-link {
    color: var(--archer-topbar-text);
    background: transparent;
    border: 0;
    padding: 0.5rem 0.9rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.12s ease-in-out;
}

[b-yntscyygkf] .archer-nav-link:hover { background-color: var(--archer-nav-active); color: var(--archer-topbar-text); text-decoration: none; }
[b-yntscyygkf] .archer-nav-link.active { background-color: var(--archer-nav-active); font-weight: 600; }

[b-yntscyygkf] .archer-nav-help { margin-left: auto; opacity: 0.9; }

.archer-userbox[b-yntscyygkf] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.92);
    white-space: nowrap;
}

.archer-user-name[b-yntscyygkf] { font-weight: 500; }
.archer-user-tenant[b-yntscyygkf] { opacity: 0.75; }

.archer-main[b-yntscyygkf] { background-color: #f8f9fa; min-height: calc(100vh - 56px); }
.archer-content[b-yntscyygkf] { padding: 1.5rem 2rem; }

@media (max-width: 768px) {
    .archer-topbar-inner[b-yntscyygkf] { flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem 0.75rem; }
    [b-yntscyygkf] .archer-nav { width: 100%; flex-wrap: wrap; order: 3; }
    [b-yntscyygkf] .archer-nav-help { margin-left: 0; }
    .archer-userbox[b-yntscyygkf] { order: 2; }
    .archer-content[b-yntscyygkf] { padding: 1rem; }
}

#blazor-error-ui[b-yntscyygkf] {
    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-yntscyygkf] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Phase 15 — NavMenu styling now lives in MainLayout.razor.css since
   the nav is composed inside the topbar. This file is intentionally
   empty (kept to avoid breaking the @import in app.css that may
   reference the scoped CSS bundle). */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-22xue9ii1l],
.components-reconnect-repeated-attempt-visible[b-22xue9ii1l],
.components-reconnect-failed-visible[b-22xue9ii1l],
.components-pause-visible[b-22xue9ii1l],
.components-resume-failed-visible[b-22xue9ii1l],
.components-rejoining-animation[b-22xue9ii1l] {
    display: none;
}

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


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

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

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

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

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

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

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

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

@keyframes components-rejoining-animation-b-22xue9ii1l {
    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/Pages/ClientDetail.razor.rz.scp.css */
/* Phase IC-1 — Individual Client mainframe banner styling. */
.archer-mainframe[b-knmdhvx082] {
    background: linear-gradient(135deg, #f7f9fc 0%, #eef2f7 100%);
    border: 1px solid #d6dce3;
}

.archer-mainframe-photo[b-knmdhvx082] {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    flex-shrink: 0;
}

/* Phase 22h.74w (2026-05-16) — bigger logo for BusinessSponsor banner.
   The placeholder/initial reads as a brand mark; small avatar size
   (4.5rem) felt cramped next to the company name + 3-column info bar. */
.archer-mainframe-photo--lg[b-knmdhvx082] {
    width: 7rem;
    height: 7rem;
}
.archer-mainframe-photo--lg .archer-mainframe-photo-placeholder[b-knmdhvx082] {
    font-size: 2.75rem;
}

.archer-mainframe-photo img[b-knmdhvx082] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid #c8d0d9;
}

.archer-mainframe-photo-placeholder[b-knmdhvx082] {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    background: #6c757d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 600;
    border: 1px solid #5a6168;
}

/* Phase 22h.34 — Attachments table row tinting by DocumentRequestStatus.
   Mirrors the legacy desktop app: red for unsent / missing, pink for
   client-provided (awaiting staff review), teal for raw uploads with
   no associated request, green for staff-accepted. */
.attach-row td[b-knmdhvx082] {
    transition: background-color 0.15s ease;
}
.attach-row--missing  td[b-knmdhvx082] { background-color: #fde2e2 !important; }
.attach-row--provided td[b-knmdhvx082] { background-color: #ffefe0 !important; }
.attach-row--uploaded td[b-knmdhvx082] { background-color: #e0f7fa !important; }
.attach-row--accepted td[b-knmdhvx082] { background-color: #e0f5e7 !important; }
.attach-row--missing  td:first-child[b-knmdhvx082],
.attach-row--provided td:first-child[b-knmdhvx082],
.attach-row--uploaded td:first-child[b-knmdhvx082],
.attach-row--accepted td:first-child[b-knmdhvx082] {
    border-left: 4px solid transparent;
}
.attach-row--missing  td:first-child[b-knmdhvx082] { border-left-color: #d9534f; }
.attach-row--provided td:first-child[b-knmdhvx082] { border-left-color: #f0ad4e; }
.attach-row--uploaded td:first-child[b-knmdhvx082] { border-left-color: #5bc0de; }
.attach-row--accepted td:first-child[b-knmdhvx082] { border-left-color: #5cb85c; }
/* /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-9tswqzk75b] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1060;
}

.archer-cascading-modal[b-9tswqzk75b] {
    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-9tswqzk75b] {
    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-9tswqzk75b] {
    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-vhccha1wfs] {
    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-vhccha1wfs] {
    font-weight: 600;
    cursor: default;
}
.archer-cascading-item:hover[b-vhccha1wfs] {
    background-color: #d8f3ee;
}
.archer-cascading-label[b-vhccha1wfs] {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}
.archer-cascading-arrow[b-vhccha1wfs] {
    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-vhccha1wfs] {
    transform: rotate(180deg);
}

/* Children block: hidden until parent (or itself) is hovered. */
.archer-cascading-item.has-children + .archer-cascading-children[b-vhccha1wfs] {
    display: none;
}
.archer-cascading-item.has-children:hover + .archer-cascading-children[b-vhccha1wfs],
.archer-cascading-item.has-children + .archer-cascading-children:hover[b-vhccha1wfs] {
    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-vhccha1wfs] {
    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-vhccha1wfs] {
    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-vhccha1wfs] {
    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-vhccha1wfs] {
    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-vhccha1wfs] {
    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-vhccha1wfs] { background: linear-gradient(180deg, #d8f3ee 0%, #b9e6db 100%); }
.archer-cascading-item[data-level="1"]:hover[b-vhccha1wfs] { background: linear-gradient(180deg, #d4e6f7 0%, #b8d4ec 100%); }
.archer-cascading-item[data-level="2"]:hover[b-vhccha1wfs] { background: linear-gradient(180deg, #d4ebd8 0%, #b6dcbe 100%); }
.archer-cascading-item[data-level="3"]:hover[b-vhccha1wfs] { background: linear-gradient(180deg, #fbedb6 0%, #f3dd8a 100%); }
.archer-cascading-item[data-level="4"]:hover[b-vhccha1wfs] { background: linear-gradient(180deg, #f3c5c5 0%, #e9a4a4 100%); }
/* /Components/Shared/CommunicationsWorkspace.razor.rz.scp.css */
/* Phase 22h.78 (2026-05-16) — 3-column legacy Communications layout
   per user's screenshot reference:

       Notes     |  Message (chat bubbles)  |  Appointments
       ---------+--------------------------+---------------
       view     |  view                    |  view
       ---------+--------------------------+---------------
       composer |  composer                |  composer

   Each column is its own flex-column with a fixed header strip,
   a scrolling middle pane, and a sticky-bottom composer.

   Phase 22h.78c (2026-05-16) — meta line moves ABOVE each bubble;
   bubbles contain only body text. Adds modal-overlay styles for
   the template edit-before-send pop-out + add-appointment pop-out,
   plus the bigger 📨 Templates trigger button.
*/

.archer-comms-3col[b-ppmbrjk521] {
    display: grid;
    grid-template-columns: 1fr 1.4fr 0.9fr;
    gap: 0.5rem;
    height: 70vh;
    min-height: 520px;
}

.archer-comms-col[b-ppmbrjk521] {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #d6dce3;
    border-radius: 0.25rem;
    /* Phase 22h.78d (2026-05-16) — overflow MUST be visible so the
       cascading template flyout's L2 / L3 sub-menus (which fly out
       to the right of their parent item) can escape the column
       boundary. Previously this was `overflow: hidden` which made
       only the L1 (Email / Message) row visible — the Stage and
       Title sub-menus were clipped off-screen.
       The scrollable area inside (.archer-comms-view) has its own
       overflow:auto so messages still scroll within the column. */
    overflow: visible;
    position: relative;
}
/* Re-apply the rounded clipping ONLY on the header/composer strips
   so the column still looks visually contained. */
.archer-comms-col > .archer-comms-header[b-ppmbrjk521] { border-top-left-radius: 0.25rem; border-top-right-radius: 0.25rem; }
.archer-comms-col > .archer-comms-composer[b-ppmbrjk521] { border-bottom-left-radius: 0.25rem; border-bottom-right-radius: 0.25rem; }

.archer-comms-header[b-ppmbrjk521] {
    padding: 0.45rem 0.6rem;
    font-weight: 600;
    background: #f4f6f9;
    border-bottom: 2px solid #20c0a0;   /* legacy teal accent */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2c3e50;
    font-size: 0.95rem;
}

.archer-comms-view[b-ppmbrjk521] {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.archer-comms-composer[b-ppmbrjk521] {
    border-top: 1px solid #e0e4ea;
    padding: 0.4rem;
    background: #fff;
    flex-shrink: 0;
}

.archer-comms-actions[b-ppmbrjk521] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.3rem;
    flex-wrap: wrap;
}

/* Teal pill buttons (legacy app accent colour) */
.btn-teal[b-ppmbrjk521] {
    background: #20c0a0;
    color: #fff;
    border: 1px solid #1aa388;
}
.btn-teal:hover[b-ppmbrjk521] { background: #1aa388; color: #fff; }
.btn-teal:disabled[b-ppmbrjk521] { background: #b9e3d6; border-color: #99cab9; color: #fff; }

.archer-send-btn[b-ppmbrjk521] {
    min-width: 2.4rem;
    padding: 0.2rem 0.55rem;
    font-weight: 700;
}
.archer-add-btn[b-ppmbrjk521] {
    min-width: 2.4rem;
    padding: 0.15rem 0.6rem;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
}

/* Phase 22h.78c — bigger templates button with icon + label.
   Phase 22h.79d — pivoted to icon-only square (emoji visible at
   ~1.15rem). The "Templates ▾" label was redundant; the
   envelope icon alone is recognisable. Square button so it
   doesn't crowd the Email Notification checkbox. */
.archer-template-btn-lg[b-ppmbrjk521] {
    padding: 0.35rem 0.85rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border-radius: 0.35rem !important;
}
.archer-template-btn-icon[b-ppmbrjk521] {
    padding: 0.3rem 0.55rem !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
    border-radius: 0.35rem !important;
    min-width: 2.4rem !important;
}

/* ─── Notes column ──────────────────────────────────────────── */

.archer-note-row[b-ppmbrjk521] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.archer-note-header[b-ppmbrjk521] {
    display: flex !important;
    align-items: baseline;
    gap: 0.5rem;
    padding-left: 0.15rem;
    font-size: 0.82rem;
    margin-bottom: 0.1rem;
}
.archer-note-author[b-ppmbrjk521] {
    color: #1a73e8;
    font-weight: 700;
}
.archer-note-time[b-ppmbrjk521] {
    color: #6c757d;
    font-size: 0.75rem;
}
/* Phase 22h.WB2 (2026-05-22) — Whiteboard v2 §C: Notes bubble light grey. */
.archer-note-bubble[b-ppmbrjk521] {
    background: #f3f4f6;          /* light grey */
    border: 1px solid #d1d5db;
    border-radius: 0.4rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #1f2937;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ─── Messages column (chat bubbles) ────────────────────────── */

.archer-msg-row[b-ppmbrjk521] {
    display: flex;
}
.archer-msg-row.outbound[b-ppmbrjk521] { justify-content: flex-end; }
.archer-msg-row.inbound[b-ppmbrjk521]  { justify-content: flex-start; }

.archer-msg-stack[b-ppmbrjk521] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-width: 82%;
}
.archer-msg-row.outbound .archer-msg-stack[b-ppmbrjk521] { align-items: flex-end; }
.archer-msg-row.inbound  .archer-msg-stack[b-ppmbrjk521] { align-items: flex-start; }

.archer-msg-header[b-ppmbrjk521] {
    display: flex !important;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0 0.15rem;
    font-size: 0.82rem;
    margin-bottom: 0.1rem;
}
.archer-msg-author[b-ppmbrjk521] {
    color: #1a73e8;
    font-weight: 700;
}
.archer-msg-time[b-ppmbrjk521] {
    color: #6c757d;
    font-size: 0.75rem;
}

.archer-msg-bubble[b-ppmbrjk521] {
    padding: 0.45rem 0.7rem;
    border-radius: 0.95rem;
    font-size: 0.88rem;
    line-height: 1.4;
    box-shadow: 0 1px 1.5px rgba(0,0,0,0.08);
    word-break: break-word;
    max-width: 100%;
}
/* Phase 22h.WB2 (2026-05-22) — Whiteboard v2 §C colour scheme.
   Outbound (Team): light teal.  Inbound (Client): sky blue.
   Notes (above): light grey. */
.archer-msg-bubble.outbound[b-ppmbrjk521] {
    background: #d8f3ee;          /* light teal */
    border: 1px solid #a9e2d2;
    border-bottom-right-radius: 0.25rem;   /* "tail" corner */
    color: #1f4f47;
}
.archer-msg-bubble.inbound[b-ppmbrjk521] {
    background: #e0f2fe;          /* sky blue (Tailwind sky-100) */
    border: 1px solid #bae6fd;
    border-bottom-left-radius: 0.25rem;
    color: #0c4a6e;
}
.archer-msg-bubble a[b-ppmbrjk521] { color: inherit; text-decoration: underline; }
.archer-msg-bubble.unread[b-ppmbrjk521] {
    border-color: #d9534f;
    box-shadow: 0 0 0 1px #d9534f;
}
.archer-msg-bubble p[b-ppmbrjk521] { margin: 0 0 0.3rem 0; }
.archer-msg-bubble p:last-child[b-ppmbrjk521] { margin-bottom: 0; }

/* ─── Appointments column ───────────────────────────────────── */

.archer-appt-card[b-ppmbrjk521] {
    background: #20c0a0;         /* legacy teal */
    color: #fff;
    border-radius: 0.25rem;
    padding: 0.45rem 0.6rem;
    font-size: 0.85rem;
    line-height: 1.3;
}
.archer-appt-card.past[b-ppmbrjk521] {
    background: #b0bcc6;
    color: #fff;
}
.archer-appt-title[b-ppmbrjk521] {
    font-weight: 600;
}
.archer-appt-when[b-ppmbrjk521] {
    font-size: 0.78rem;
    opacity: 0.95;
}
.archer-appt-where[b-ppmbrjk521] {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 0.15rem;
}

/* ─── Pop-out modal overlay (template preview + add appointment) ── */

.archer-modal-backdrop[b-ppmbrjk521] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1060;
}
.archer-modal-card[b-ppmbrjk521] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(720px, 92vw);
    max-height: 85vh;
    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-modal-card--small[b-ppmbrjk521] {
    width: min(440px, 90vw);
}
.archer-modal-header[b-ppmbrjk521] {
    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-modal-body[b-ppmbrjk521] {
    padding: 0.75rem 0.85rem;
    flex: 1;
    overflow-y: auto;
}
.archer-modal-footer[b-ppmbrjk521] {
    padding: 0.55rem 0.85rem;
    background: #fafbfc;
    border-top: 1px solid #e0e4ea;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ─── Compact the Quill toolbar so the composer fits ────────── */

[b-ppmbrjk521] .ql-toolbar.ql-snow {
    padding: 2px 4px;
    border-color: #d6dce3;
}
[b-ppmbrjk521] .ql-container.ql-snow {
    border-color: #d6dce3;
    font-size: 0.85rem;
}

/* Phase 22h.78d (2026-05-16) — cascade sizing rules moved to the
   scoped CSS of the CascadingMenu + CascadingMenuNode components
   themselves so they apply unconditionally (and the b-xxx
   isolation attribute on the rule matches the same attribute
   on the rendered div). No ::deep overrides needed here. */

/* Responsive: stack columns on narrow screens */
@media (max-width: 1100px) {
    .archer-comms-3col[b-ppmbrjk521] {
        grid-template-columns: 1fr;
        height: auto;
    }
    .archer-comms-col[b-ppmbrjk521] {
        min-height: 360px;
    }
}
/* /Components/Shared/TabEFormToggle.razor.rz.scp.css */
/* Phase 22h.48 — per-tab eForm toggle pill.
   Colour palette intentionally matches the Documents tab row tints
   (.attach-row--missing / --provided / --accepted) so visual cues
   match across tab header chip + Documents tab row.                  */

/* Phase 22h.79ll (2026-05-17) — bumped from chip-sized to a proper
   button so it reads as the primary tab-level action. Bigger padding,
   larger font, slightly larger dot. */
.tab-eform-toggle[b-b021v38bmy] {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 1rem;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 600;
    border: 1.5px solid transparent;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
    cursor: pointer;
}

.tab-eform-toggle .dot[b-b021v38bmy] {
    width: .75rem;
    height: .75rem;
    border-radius: 50%;
    background-color: currentColor;
    opacity: .9;
    flex-shrink: 0;
}

.tab-eform-toggle--grey[b-b021v38bmy] {
    background-color: #f1f3f5;
    color: #6c757d;
    border-color: #dee2e6;
}
.tab-eform-toggle--grey:hover:not(:disabled)[b-b021v38bmy] {
    background-color: #e9ecef;
    color: #495057;
}

.tab-eform-toggle--red[b-b021v38bmy] {
    background-color: #fde2e2;
    color: #842029;
    border-color: #f5c2c7;
    cursor: not-allowed;
}

.tab-eform-toggle--amber[b-b021v38bmy] {
    background-color: #fff3cd;
    color: #664d03;
    border-color: #ffe69c;
}
.tab-eform-toggle--amber:hover:not(:disabled)[b-b021v38bmy] {
    background-color: #ffe69c;
}

.tab-eform-toggle--yellow[b-b021v38bmy] {
    background-color: #ffefe0;
    color: #7a4a00;
    border-color: #ffd9b0;
}
.tab-eform-toggle--yellow:hover:not(:disabled)[b-b021v38bmy] {
    background-color: #ffd9b0;
}

.tab-eform-toggle--green[b-b021v38bmy] {
    background-color: #e0f5e7;
    color: #146c43;
    border-color: #a3cfbb;
}
.tab-eform-toggle--green:hover:not(:disabled)[b-b021v38bmy] {
    background-color: #c8e6d2;
}

.tab-eform-toggle:disabled[b-b021v38bmy] {
    opacity: .9;
}
