/* /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-bafurhj46x] {
    --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-bafurhj46x] {
    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-bafurhj46x] {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.5rem 1.5rem;
}

.archer-brand[b-bafurhj46x] {
    color: var(--archer-topbar-text);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    white-space: nowrap;
}

.archer-brand:hover[b-bafurhj46x] { color: var(--archer-topbar-text); text-decoration: none; }

.archer-brand-sub[b-bafurhj46x] {
    font-weight: 400;
    opacity: 0.8;
    font-size: 0.9rem;
    margin-left: 0.25rem;
}

[b-bafurhj46x] .archer-nav {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0.25rem;
}

[b-bafurhj46x] .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-bafurhj46x] .archer-nav-link:hover { background-color: var(--archer-nav-active); color: var(--archer-topbar-text); text-decoration: none; }
[b-bafurhj46x] .archer-nav-link.active { background-color: var(--archer-nav-active); font-weight: 600; }

[b-bafurhj46x] .archer-nav-help { margin-left: auto; opacity: 0.9; }

.archer-userbox[b-bafurhj46x] {
    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-bafurhj46x] { font-weight: 500; }
.archer-user-tenant[b-bafurhj46x] { opacity: 0.75; }

.archer-main[b-bafurhj46x] { background-color: #f8f9fa; min-height: calc(100vh - 56px); }
.archer-content[b-bafurhj46x] { padding: 1.5rem 2rem; }

@media (max-width: 768px) {
    .archer-topbar-inner[b-bafurhj46x] { flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem 0.75rem; }
    [b-bafurhj46x] .archer-nav { width: 100%; flex-wrap: wrap; order: 3; }
    [b-bafurhj46x] .archer-nav-help { margin-left: 0; }
    .archer-userbox[b-bafurhj46x] { order: 2; }
    .archer-content[b-bafurhj46x] { padding: 1rem; }
}

#blazor-error-ui[b-bafurhj46x] {
    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-bafurhj46x] {
    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-mu40pfslv9],
.components-reconnect-repeated-attempt-visible[b-mu40pfslv9],
.components-reconnect-failed-visible[b-mu40pfslv9],
.components-pause-visible[b-mu40pfslv9],
.components-resume-failed-visible[b-mu40pfslv9],
.components-rejoining-animation[b-mu40pfslv9] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-mu40pfslv9],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-mu40pfslv9],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-mu40pfslv9],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-mu40pfslv9],
#components-reconnect-modal.components-reconnect-retrying[b-mu40pfslv9],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-mu40pfslv9],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-mu40pfslv9],
#components-reconnect-modal.components-reconnect-failed[b-mu40pfslv9],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-mu40pfslv9] {
    display: block;
}


#components-reconnect-modal[b-mu40pfslv9] {
    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-mu40pfslv9 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-mu40pfslv9 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-mu40pfslv9 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-mu40pfslv9]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-mu40pfslv9 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-mu40pfslv9 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-mu40pfslv9 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-mu40pfslv9 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-mu40pfslv9] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-mu40pfslv9] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-mu40pfslv9] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-mu40pfslv9] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-mu40pfslv9] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-mu40pfslv9] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-mu40pfslv9] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-mu40pfslv9 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-mu40pfslv9] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-mu40pfslv9 {
    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-n3s8q34a5r] {
    background: linear-gradient(135deg, #f7f9fc 0%, #eef2f7 100%);
    border: 1px solid #d6dce3;
}

.archer-mainframe-photo[b-n3s8q34a5r] {
    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-n3s8q34a5r] {
    width: 7rem;
    height: 7rem;
}
.archer-mainframe-photo--lg .archer-mainframe-photo-placeholder[b-n3s8q34a5r] {
    font-size: 2.75rem;
}

.archer-mainframe-photo img[b-n3s8q34a5r] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid #c8d0d9;
}

.archer-mainframe-photo-placeholder[b-n3s8q34a5r] {
    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-n3s8q34a5r] {
    transition: background-color 0.15s ease;
}
.attach-row--missing  td[b-n3s8q34a5r] { background-color: #fde2e2 !important; }
.attach-row--provided td[b-n3s8q34a5r] { background-color: #ffefe0 !important; }
.attach-row--uploaded td[b-n3s8q34a5r] { background-color: #e0f7fa !important; }
.attach-row--accepted td[b-n3s8q34a5r] { background-color: #e0f5e7 !important; }
.attach-row--missing  td:first-child[b-n3s8q34a5r],
.attach-row--provided td:first-child[b-n3s8q34a5r],
.attach-row--uploaded td:first-child[b-n3s8q34a5r],
.attach-row--accepted td:first-child[b-n3s8q34a5r] {
    border-left: 4px solid transparent;
}
.attach-row--missing  td:first-child[b-n3s8q34a5r] { border-left-color: #d9534f; }
.attach-row--provided td:first-child[b-n3s8q34a5r] { border-left-color: #f0ad4e; }
.attach-row--uploaded td:first-child[b-n3s8q34a5r] { border-left-color: #5bc0de; }
.attach-row--accepted td:first-child[b-n3s8q34a5r] { border-left-color: #5cb85c; }

/* Phase 7refine (2026-06-09) — Documents-tab row clarity.
   Typed file-icon tile that leads the Document Name cell so the advisor
   can scan the list by file kind, plus the muted metadata sub-line
   (file name · size · date) under the title. */
.doc-file-icon[b-n3s8q34a5r] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    font-size: 15px;
    line-height: 1;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}
.doc-row-meta[b-n3s8q34a5r] {
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Phase 7refine (2026-06-09) — shimmer skeleton shown while the document
   list loads. Matches the shared MAUI SkeletonLoader's pulse. */
.doc-skeleton-bar[b-n3s8q34a5r] {
    display: inline-block;
    background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%);
    background-size: 400% 100%;
    border-radius: 6px;
    animation: doc-skeleton-pulse-b-n3s8q34a5r 1.4s ease infinite;
}
@keyframes doc-skeleton-pulse-b-n3s8q34a5r {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* Phase IdentityRefine (2026-06-09) — Identity-cluster polish.
   Transient save toast (bottom-right) used by the Personal/Client
   Details + Identity-document save handlers, matching the confirmation
   feedback standard set on the Comms/Documents tabs. Auto-dismisses
   from the code-behind; the slide-in keeps it from feeling jarring. */
.identity-toast[b-n3s8q34a5r] {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1080;
    min-width: 240px;
    max-width: 360px;
    padding: 0.7rem 1rem;
    border-radius: 0.55rem;
    color: #fff;
    background: #198754;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.9rem;
    animation: identity-toast-in-b-n3s8q34a5r 0.18s ease-out;
}
.identity-toast--error[b-n3s8q34a5r] { background: #dc3545; }
.identity-toast .identity-toast-icon[b-n3s8q34a5r] { font-size: 1.05rem; line-height: 1; }
@keyframes identity-toast-in-b-n3s8q34a5r {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Phase IdentityRefine — inline validation message under a field that
   failed validation-on-blur, so the advisor gets a specific friendly
   hint without waiting for Save. */
.identity-field-error[b-n3s8q34a5r] {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}
.identity-input-invalid[b-n3s8q34a5r] {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.15) !important;
}
/* /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-fqsdoi91tt] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1060;
}

.archer-cascading-modal[b-fqsdoi91tt] {
    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-fqsdoi91tt] {
    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-fqsdoi91tt] {
    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-dnypb33o7r] {
    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-dnypb33o7r] {
    font-weight: 600;
    cursor: default;
}
.archer-cascading-item:hover[b-dnypb33o7r] {
    background-color: #d8f3ee;
}
.archer-cascading-label[b-dnypb33o7r] {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}
.archer-cascading-arrow[b-dnypb33o7r] {
    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-dnypb33o7r] {
    transform: rotate(180deg);
}

/* Children block: hidden until parent (or itself) is hovered. */
.archer-cascading-item.has-children + .archer-cascading-children[b-dnypb33o7r] {
    display: none;
}
.archer-cascading-item.has-children:hover + .archer-cascading-children[b-dnypb33o7r],
.archer-cascading-item.has-children + .archer-cascading-children:hover[b-dnypb33o7r] {
    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-dnypb33o7r] {
    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-dnypb33o7r] {
    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-dnypb33o7r] {
    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-dnypb33o7r] {
    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-dnypb33o7r] {
    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-dnypb33o7r] { background: linear-gradient(180deg, #d8f3ee 0%, #b9e6db 100%); }
.archer-cascading-item[data-level="1"]:hover[b-dnypb33o7r] { background: linear-gradient(180deg, #d4e6f7 0%, #b8d4ec 100%); }
.archer-cascading-item[data-level="2"]:hover[b-dnypb33o7r] { background: linear-gradient(180deg, #d4ebd8 0%, #b6dcbe 100%); }
.archer-cascading-item[data-level="3"]:hover[b-dnypb33o7r] { background: linear-gradient(180deg, #fbedb6 0%, #f3dd8a 100%); }
.archer-cascading-item[data-level="4"]:hover[b-dnypb33o7r] { 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-jova70zrip] {
    display: grid;
    grid-template-columns: 1fr 1.4fr 0.9fr;
    gap: 0.5rem;
    height: 70vh;
    min-height: 520px;

    /* Phase 22h.Ph6 (2026-06-08) — chat colour-coding tokens (spec 68-72).
       Mirror the Clients Portal archer-tokens.css values verbatim so both
       chat surfaces match pixel-for-pixel:
         --msg-client    = sky-100  #e0f2fe  (client → team, inbound here)
         --msg-team      = teal-soft #d8f3ee (team → client, outbound here)
         --msg-automated = slate-50 #f8fafc  (automated/system, lightest)
         --msg-note      = grey-100 #f3f4f6  (internal notes) */
    --msg-client: #e0f2fe;
    --msg-team: #d8f3ee;
    --msg-automated: #f8fafc;
    --msg-note: #f3f4f6;
}

.archer-comms-col[b-jova70zrip] {
    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-jova70zrip] { border-top-left-radius: 0.25rem; border-top-right-radius: 0.25rem; }
.archer-comms-col > .archer-comms-composer[b-jova70zrip] { border-bottom-left-radius: 0.25rem; border-bottom-right-radius: 0.25rem; }

.archer-comms-header[b-jova70zrip] {
    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-jova70zrip] {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.archer-comms-composer[b-jova70zrip] {
    border-top: 1px solid #e0e4ea;
    padding: 0.4rem;
    background: #fff;
    flex-shrink: 0;
}

.archer-comms-actions[b-jova70zrip] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.3rem;
    flex-wrap: wrap;
}

/* Phase 22h.Ph7b — "Also email" switch + live channel chip so the advisor
   always knows whether Send goes in-app only or in-app + email. */
.archer-msg-emailtoggle[b-jova70zrip] {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    cursor: pointer;
}
.archer-msg-emailtoggle input:disabled[b-jova70zrip] { cursor: not-allowed; }
.archer-msg-channel-chip[b-jova70zrip] {
    font-size: 0.66rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    white-space: nowrap;
    line-height: 1.4;
}
.archer-msg-channel-chip.inapp[b-jova70zrip] { background: #eef2f6; color: #64748b; }
.archer-msg-channel-chip.email[b-jova70zrip] { background: #d8f3ee; color: #0f766e; }

/* Teal pill buttons (legacy app accent colour) */
.btn-teal[b-jova70zrip] {
    background: #20c0a0;
    color: #fff;
    border: 1px solid #1aa388;
}
.btn-teal:hover[b-jova70zrip] { background: #1aa388; color: #fff; }
.btn-teal:disabled[b-jova70zrip] { background: #b9e3d6; border-color: #99cab9; color: #fff; }

.archer-send-btn[b-jova70zrip] {
    min-width: 2.4rem;
    padding: 0.2rem 0.55rem;
    font-weight: 700;
}
.archer-add-btn[b-jova70zrip] {
    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-jova70zrip] {
    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-jova70zrip] {
    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-jova70zrip] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.archer-note-header[b-jova70zrip] {
    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-jova70zrip] {
    color: #1a73e8;
    font-weight: 700;
}
.archer-note-time[b-jova70zrip] {
    color: #6c757d;
    font-size: 0.75rem;
}
/* Phase 22h.WB2 (2026-05-22) — Whiteboard v2 §C: Notes bubble light grey. */
.archer-note-bubble[b-jova70zrip] {
    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) ────────────────────────── */

/* Phase 22h.Ph7b — rows now carry an avatar gutter. Outbound rows put the
   avatar on the right (after the stack via row-reverse); inbound on the
   left. Tightened the inter-row gap for a denser, more scannable thread. */
.archer-msg-row[b-jova70zrip] {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
}
.archer-msg-row.outbound[b-jova70zrip] { justify-content: flex-end; flex-direction: row-reverse; }
.archer-msg-row.inbound[b-jova70zrip]  { justify-content: flex-start; }
.archer-comms-col.archer-msg-col .archer-comms-view[b-jova70zrip] { gap: 0.3rem; }

.archer-msg-avatar[b-jova70zrip] {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.66rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.05rem;
    user-select: none;
}
.archer-msg-row.outbound .archer-msg-avatar[b-jova70zrip] { background: #20c0a0; }
.archer-msg-row.inbound  .archer-msg-avatar[b-jova70zrip] { background: #38bdf8; }

.archer-msg-stack[b-jova70zrip] {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    max-width: 80%;
}
.archer-msg-row.outbound .archer-msg-stack[b-jova70zrip] { align-items: flex-end; }
.archer-msg-row.inbound  .archer-msg-stack[b-jova70zrip] { align-items: flex-start; }

.archer-msg-header[b-jova70zrip] {
    display: flex !important;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0 0.15rem;
    font-size: 0.82rem;
    margin-bottom: 0.05rem;
}
.archer-msg-author[b-jova70zrip] {
    color: #1a73e8;
    font-weight: 700;
}
.archer-msg-time[b-jova70zrip] {
    color: #6c757d;
    font-size: 0.72rem;
    cursor: default;
}
/* Phase 22h.Ph7b — role chip beside the sender name. */
.archer-msg-role-pill[b-jova70zrip] {
    background: #eef2f6;
    color: #64748b;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.05rem 0.35rem;
    line-height: 1.3;
}

/* Phase 22h.Ph7b — read receipt line under outbound bubbles. */
.archer-msg-receipt[b-jova70zrip] {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.66rem;
    margin-top: 0.05rem;
    padding: 0 0.15rem;
}
.archer-msg-receipt-sent[b-jova70zrip] { color: #9aa6b2; }
.archer-msg-receipt-read[b-jova70zrip] { color: #20c0a0; font-weight: 700; cursor: default; }
.archer-msg-receipt-mail[b-jova70zrip] { color: #6c757d; }

.archer-msg-bubble[b-jova70zrip] {
    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.
   Phase 22h.Ph6 (2026-06-08) — fills now read from the shared --msg-*
   tokens (spec 68-72) so the chat surface stays in lock-step with the
   Clients Portal. Outbound = team→client teal; inbound = client sky. */
.archer-msg-bubble.outbound[b-jova70zrip] {
    background: var(--msg-team, #d8f3ee);     /* team → client teal */
    border: 1px solid #a9e2d2;
    border-bottom-right-radius: 0.25rem;      /* "tail" corner */
    color: #1f4f47;
}
.archer-msg-bubble.inbound[b-jova70zrip] {
    background: var(--msg-client, #e0f2fe);   /* client sky blue */
    border: 1px solid #bae6fd;
    border-bottom-left-radius: 0.25rem;
    color: #0c4a6e;
}
/* Phase 22h.Ph6 (spec 71) — automated / system messages: app-default
   neutral, the lightest fill of the set so they recede. Pairs with the
   "Automated" label rendered on the metadata line. Overrides the
   outbound teal because automated rows are staff-side (outbound) but
   must read as system, not agency voice. */
.archer-msg-bubble.automated[b-jova70zrip] {
    background: var(--msg-automated, #f8fafc);
    border: 1px solid #e2e8f0;
    color: #475569;
}
.archer-msg-bubble a[b-jova70zrip] { color: inherit; text-decoration: underline; }
.archer-msg-bubble.unread[b-jova70zrip] {
    border-color: #d9534f;
    box-shadow: 0 0 0 1px #d9534f;
}

/* Phase 22h.Ph7b — loading skeleton: alternating ghost bubbles that pulse. */
.archer-msg-skeleton[b-jova70zrip] { display: flex; flex-direction: column; gap: 0.55rem; padding: 0.4rem 0.15rem; }
.archer-skel-row[b-jova70zrip] { display: flex; }
.archer-skel-row.inbound[b-jova70zrip]  { justify-content: flex-start; }
.archer-skel-row.outbound[b-jova70zrip] { justify-content: flex-end; }
.archer-skel-bubble[b-jova70zrip] {
    height: 2.1rem;
    border-radius: 0.95rem;
    background: linear-gradient(90deg, #eef2f6 25%, #e2e8f0 37%, #eef2f6 63%);
    background-size: 400% 100%;
    animation: archer-skel-shimmer-b-jova70zrip 1.3s ease infinite;
}
.archer-skel-bubble.w40[b-jova70zrip] { width: 40%; }
.archer-skel-bubble.w55[b-jova70zrip] { width: 55%; }
.archer-skel-bubble.w65[b-jova70zrip] { width: 65%; }
.archer-skel-bubble.w70[b-jova70zrip] { width: 70%; }
.archer-skel-bubble.w80[b-jova70zrip] { width: 80%; }
@keyframes archer-skel-shimmer-b-jova70zrip {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* Phase 22h.Ph7b — rich empty state (icon + title + hint). */
.archer-msg-empty[b-jova70zrip] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.3rem;
    flex: 1;
    padding: 1.5rem 1rem;
    color: #93a1ad;
}
.archer-msg-empty-ico[b-jova70zrip] { font-size: 1.9rem; opacity: 0.85; }
.archer-msg-empty-title[b-jova70zrip] { font-size: 0.92rem; font-weight: 700; color: #475569; }
.archer-msg-empty-hint[b-jova70zrip] { font-size: 0.78rem; line-height: 1.4; max-width: 22rem; }
.archer-msg-bubble p[b-jova70zrip] { margin: 0 0 0.3rem 0; }
.archer-msg-bubble p:last-child[b-jova70zrip] { margin-bottom: 0; }

/* Phase 22h.Ph6 (2026-06-08) — per-team-member author tint (spec 70).
   On the client-facing thread every staff bubble stays the uniform
   agency teal so the client experiences one voice; the per-member
   personal colour is applied to the AUTHOR NAME on the metadata line
   instead, so staff can still tell at a glance which colleague (or the
   admin) sent each row. The inline colour is supplied per-row from
   MessageBubbleColor.ForUserAccent(userId). */
.archer-msg-author.member-tinted[b-jova70zrip] { font-weight: 700; }

/* Phase 22h.Ph6 — "(edited)" badge + edit pencil affordance. */
.archer-msg-edited-badge[b-jova70zrip] {
    font-size: 0.68rem;
    font-style: italic;
    color: #6c757d;
    cursor: pointer;
    text-decoration: underline dotted;
    background: none;
    border: none;
    padding: 0;
    margin-left: 0.15rem;
}
.archer-msg-edited-badge:hover[b-jova70zrip] { color: #20c0a0; }
.archer-msg-edit-pencil[b-jova70zrip] {
    background: none;
    border: none;
    padding: 0 0.1rem;
    font-size: 0.78rem;
    line-height: 1;
    color: #9aa6b2;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.12s ease;
}
.archer-msg-stack:hover .archer-msg-edit-pencil[b-jova70zrip] { opacity: 1; }
.archer-msg-edit-pencil:hover[b-jova70zrip] { color: #20c0a0; }

/* Phase 22h.Ph6 — unread divider ("New" rule across the thread at the
   first unread inbound message). */
.archer-msg-unread-divider[b-jova70zrip] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.2rem 0;
    color: #d9534f;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.archer-msg-unread-divider[b-jova70zrip]::before,
.archer-msg-unread-divider[b-jova70zrip]::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #f0b4b2;
}

/* Phase 22h.Ph6 / Ph7b — day separator: centered pill on a hairline rule. */
.archer-msg-day-sep[b-jova70zrip] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.35rem 0 0.15rem;
}
.archer-msg-day-sep[b-jova70zrip]::before,
.archer-msg-day-sep[b-jova70zrip]::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e4e9ef;
}
.archer-msg-day-sep span[b-jova70zrip] {
    font-size: 0.66rem;
    font-weight: 600;
    color: #93a1ad;
    background: #eef2f6;
    border-radius: 999px;
    padding: 0.08rem 0.55rem;
    white-space: nowrap;
}

/* Phase 22h.Ph6 / Ph7b — search + filter toolbar above the thread.
   Row 1 = search box; row 2 = direction + unread chips. */
.archer-msg-filterbar[b-jova70zrip] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.4rem 0.5rem;
    background: #f4f6f9;
    border-bottom: 1px solid #e0e4ea;
    flex-shrink: 0;
}
.archer-msg-searchrow[b-jova70zrip] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.archer-msg-search-ico[b-jova70zrip] { font-size: 0.85rem; line-height: 1; opacity: 0.7; }
.archer-msg-filterbar input[b-jova70zrip] {
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #d6dce3;
    border-radius: 0.3rem;
}
.archer-msg-filterbar input:focus[b-jova70zrip] {
    outline: none;
    border-color: #20c0a0;
    box-shadow: 0 0 0 2px rgba(32,192,160,0.15);
}
.archer-msg-filter-clear[b-jova70zrip] {
    background: none;
    border: none;
    color: #9aa6b2;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    padding: 0 0.2rem;
}
.archer-msg-filter-clear:hover[b-jova70zrip] { color: #d9534f; }

/* Phase 22h.Ph7b — direction + unread filter chips. */
.archer-msg-chiprow[b-jova70zrip] { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
.archer-msg-chip[b-jova70zrip] {
    background: #fff;
    border: 1px solid #d6dce3;
    border-radius: 999px;
    color: #5a6b7b;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.22rem 0.6rem;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.archer-msg-chip:hover[b-jova70zrip] { border-color: #20c0a0; color: #1aa388; }
.archer-msg-chip.active[b-jova70zrip] {
    background: #20c0a0;
    border-color: #1aa388;
    color: #fff;
}
.archer-msg-chip.unread.active[b-jova70zrip] { background: #d9534f; border-color: #c9302c; }
.archer-msg-chip-count[b-jova70zrip] {
    display: inline-block;
    margin-left: 0.3rem;
    background: rgba(255,255,255,0.28);
    border-radius: 999px;
    padding: 0 0.32rem;
    font-size: 0.66rem;
}
.archer-msg-chip:not(.active) .archer-msg-chip-count[b-jova70zrip] {
    background: #d9534f;
    color: #fff;
}

/* Phase 22h.Ph7b — result-count strip shown while filtering. */
.archer-msg-resultbar[b-jova70zrip] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #6c757d;
    padding: 0.15rem 0.3rem 0.35rem;
    border-bottom: 1px dashed #e0e4ea;
    margin-bottom: 0.2rem;
}
.archer-msg-result-clear[b-jova70zrip] {
    background: none;
    border: none;
    color: #20c0a0;
    font-weight: 600;
    font-size: 0.72rem;
    cursor: pointer;
    padding: 0;
}
.archer-msg-result-clear:hover[b-jova70zrip] { color: #1aa388; text-decoration: underline; }

.archer-msg-empty-filter[b-jova70zrip] {
    text-align: center;
    color: #93a1ad;
    font-size: 0.82rem;
    padding: 1.5rem 0.5rem;
}

/* Phase 22h.Ph6 — smart auto-scroll: floating "jump to latest" pill that
   appears only when the user has scrolled up away from the bottom. The
   .archer-comms-view that holds the messages is position:relative so the
   pill anchors to it. */
.archer-comms-col.archer-msg-col .archer-comms-view[b-jova70zrip] { position: relative; }
.archer-msg-jump-latest[b-jova70zrip] {
    position: sticky;
    bottom: 0.4rem;
    align-self: center;
    background: #20c0a0;
    color: #fff;
    border: none;
    border-radius: 1rem;
    padding: 0.25rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    cursor: pointer;
    z-index: 5;
}
.archer-msg-jump-latest:hover[b-jova70zrip] { background: #1aa388; }
.archer-msg-jump-latest .badge[b-jova70zrip] { margin-left: 0.3rem; }

/* Phase 22h.Ph6 — history pop-out (revision list) styling. */
.archer-rev-list[b-jova70zrip] { display: flex; flex-direction: column; gap: 0.6rem; }
.archer-rev-row[b-jova70zrip] {
    border: 1px solid #e0e4ea;
    border-radius: 0.4rem;
    padding: 0.5rem 0.6rem;
    background: #fafbfc;
}
.archer-rev-row.current[b-jova70zrip] { border-color: #20c0a0; background: #f2fbf8; }
.archer-rev-head[b-jova70zrip] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}
.archer-rev-head .archer-rev-who[b-jova70zrip] { font-weight: 700; color: #2c3e50; }
.archer-rev-body[b-jova70zrip] {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #1f2937;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ─── Appointments column ───────────────────────────────────── */

.archer-appt-card[b-jova70zrip] {
    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-jova70zrip] {
    background: #b0bcc6;
    color: #fff;
}
.archer-appt-title[b-jova70zrip] {
    font-weight: 600;
}
.archer-appt-when[b-jova70zrip] {
    font-size: 0.78rem;
    opacity: 0.95;
}
.archer-appt-where[b-jova70zrip] {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 0.15rem;
}

/* ─── Pop-out modal overlay (template preview + add appointment) ── */

.archer-modal-backdrop[b-jova70zrip] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1060;
}
.archer-modal-card[b-jova70zrip] {
    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-jova70zrip] {
    width: min(440px, 90vw);
}
.archer-modal-header[b-jova70zrip] {
    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-jova70zrip] {
    padding: 0.75rem 0.85rem;
    flex: 1;
    overflow-y: auto;
}
.archer-modal-footer[b-jova70zrip] {
    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-jova70zrip] .ql-toolbar.ql-snow {
    padding: 2px 4px;
    border-color: #d6dce3;
}
[b-jova70zrip] .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. */

/* ─── Phase 22h.CommsDepth (2026-06-09) — Attach-from-VAULT + Reply ───── */

/* Reply affordance on inbound rows (sits in the meta line). */
.archer-msg-reply-link[b-jova70zrip] {
    background: none;
    border: 0;
    padding: 0;
    margin-left: 0.25rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #1aa388;
    cursor: pointer;
}
.archer-msg-reply-link:hover[b-jova70zrip] { color: #0f766e; text-decoration: underline; }

/* (The Reply quoted-block is inline-styled in code — it renders inside the
   Quill editor / MarkupString, which don't carry the scoped-CSS attribute.) */

/* "Attach from VAULT" button in the composer footer. */
.archer-attach-btn[b-jova70zrip] {
    white-space: nowrap;
    font-size: 0.78rem;
}

/* Removable attachment chips above Send. */
.archer-attach-chiprow[b-jova70zrip] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.35rem;
}
.archer-attach-chip[b-jova70zrip] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 100%;
    background: #eef2f6;
    border: 1px solid #d8e0e7;
    border-radius: 999px;
    padding: 0.12rem 0.3rem 0.12rem 0.5rem;
    font-size: 0.72rem;
    color: #334155;
}
.archer-attach-chip-ico[b-jova70zrip] { flex: 0 0 auto; }
.archer-attach-chip-label[b-jova70zrip] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 16rem;
}
.archer-attach-chip-viewonly[b-jova70zrip] {
    flex: 0 0 auto;
    background: #fef3c7;
    color: #92651a;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.02rem 0.3rem;
}
.archer-attach-chip-x[b-jova70zrip] {
    flex: 0 0 auto;
    background: #d8e0e7;
    border: 0;
    border-radius: 999px;
    width: 1.05rem;
    height: 1.05rem;
    line-height: 1;
    font-size: 0.62rem;
    color: #475569;
    cursor: pointer;
}
.archer-attach-chip-x:hover[b-jova70zrip] { background: #c9302c; color: #fff; }

/* Picker modal list. */
.archer-attach-searchrow[b-jova70zrip] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.archer-attach-list[b-jova70zrip] {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-height: 22rem;
    overflow-y: auto;
}
.archer-attach-listrow[b-jova70zrip] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
    cursor: pointer;
}
.archer-attach-listrow:hover:not(:disabled)[b-jova70zrip] { border-color: #20c0a0; background: #f0fdfa; }
.archer-attach-listrow.added[b-jova70zrip] { opacity: 0.7; cursor: default; }
.archer-attach-listrow-ico[b-jova70zrip] { flex: 0 0 auto; font-size: 1.1rem; }
.archer-attach-listrow-main[b-jova70zrip] { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.archer-attach-listrow-name[b-jova70zrip] {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.archer-attach-listrow-meta[b-jova70zrip] { font-size: 0.68rem; color: #64748b; }
.archer-attach-listrow-added[b-jova70zrip] {
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 700;
    color: #0f766e;
}

/* Responsive: stack columns on narrow screens */
@media (max-width: 1100px) {
    .archer-comms-3col[b-jova70zrip] {
        grid-template-columns: 1fr;
        height: auto;
    }
    .archer-comms-col[b-jova70zrip] {
        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-26igdqx5qu] {
    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-26igdqx5qu] {
    width: .75rem;
    height: .75rem;
    border-radius: 50%;
    background-color: currentColor;
    opacity: .9;
    flex-shrink: 0;
}

.tab-eform-toggle--grey[b-26igdqx5qu] {
    background-color: #f1f3f5;
    color: #6c757d;
    border-color: #dee2e6;
}
.tab-eform-toggle--grey:hover:not(:disabled)[b-26igdqx5qu] {
    background-color: #e9ecef;
    color: #495057;
}

.tab-eform-toggle--red[b-26igdqx5qu] {
    background-color: #fde2e2;
    color: #842029;
    border-color: #f5c2c7;
    cursor: not-allowed;
}

.tab-eform-toggle--amber[b-26igdqx5qu] {
    background-color: #fff3cd;
    color: #664d03;
    border-color: #ffe69c;
}
.tab-eform-toggle--amber:hover:not(:disabled)[b-26igdqx5qu] {
    background-color: #ffe69c;
}

.tab-eform-toggle--yellow[b-26igdqx5qu] {
    background-color: #ffefe0;
    color: #7a4a00;
    border-color: #ffd9b0;
}
.tab-eform-toggle--yellow:hover:not(:disabled)[b-26igdqx5qu] {
    background-color: #ffd9b0;
}

.tab-eform-toggle--green[b-26igdqx5qu] {
    background-color: #e0f5e7;
    color: #146c43;
    border-color: #a3cfbb;
}
.tab-eform-toggle--green:hover:not(:disabled)[b-26igdqx5qu] {
    background-color: #c8e6d2;
}

.tab-eform-toggle:disabled[b-26igdqx5qu] {
    opacity: .9;
}
