/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-jdzpxrovij] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-jdzpxrovij] {
    flex: 1;
    /* Flex item of .page (row). Without min-width:0 its automatic minimum is its content's
       min-content, so wide page content (e.g. the dashboard's portfolio table) inflates <main>
       and pushes the top bar / page content off-screen. min-width:0 lets it shrink to the
       viewport so wide content scrolls its OWN container instead of widening the page. */
    min-width: 0;
}

.sidebar[b-jdzpxrovij] {
    background: #2A2F38;
}

.top-row[b-jdzpxrovij] {
    background-color: #F6F5F2;
    border-bottom: 1px solid #E8E6E1;
    justify-content: flex-start;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

/* Grows to fill the gap between the left cluster (Version / Org / BU) and the
   right cluster (today-override badge + auth links), so each stays on its side. */
.topbar-spacer[b-jdzpxrovij] {
    flex: 1 1 auto;
}

    .top-row[b-jdzpxrovij]  a, .top-row[b-jdzpxrovij]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
        color: #3E4958;
        font-size: 0.85rem;
        font-weight: 500;
    }

    .top-row[b-jdzpxrovij]  a:hover, .top-row[b-jdzpxrovij]  .btn-link:hover {
        text-decoration: underline;
        color: #3D8B5E;
    }

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

    .top-row[b-jdzpxrovij]  span {
        color: #2A2F38;
        font-size: 0.85rem;
        font-weight: 600;
    }

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

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

@media (min-width: 641px) {
    .page[b-jdzpxrovij] {
        flex-direction: row;
    }

    .sidebar[b-jdzpxrovij] {
        width: var(--sidebar-width);
        height: 100vh;
        position: sticky;
        top: 0;
        /* sticky makes the sidebar its own stacking context, which loses to
           later-in-DOM <main> content (VPM/Gantt fixed wrappers) by document
           order — hiding the NavMenu Miller flyout. The flyout (.miller-col,
           z 1063) lives INSIDE this context, so the sidebar's own tier is what
           actually competes at the root level — it must beat page sticky form
           footers (--z-sticky-footer:10) and the status cluster (20), or a
           submit bar paints over the flyout (the z:2-vs-z:10 bug). It stays
           below modals/messaging (1050+) and overlays (3000+), which are root
           siblings, so those still cover the nav. See the ladder in app.css. */
        z-index: var(--z-sidebar);
    }

    .top-row[b-jdzpxrovij] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

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

    .top-row[b-jdzpxrovij], article[b-jdzpxrovij] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

/* ─── Today-override badge (always visible while override active) ─── */
.todayoverride-badge[b-jdzpxrovij] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: #7b2fb5;
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 0 0 1px #5c1f8c inset;
}

.tdo-badge-clear[b-jdzpxrovij] {
    border: none;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    border-radius: 3px;
    padding: 0 0.35rem;
}

    .tdo-badge-clear:hover[b-jdzpxrovij] {
        background: rgba(255, 255, 255, 0.45);
    }

#blazor-error-ui[b-jdzpxrovij] {
    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-jdzpxrovij] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* ─── Status Cluster ─── */
.nav-status-cluster[b-jdzpxrovij] {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: calc(var(--sidebar-width) - var(--scrollbar-width));
    height: 40px;
    background: #1e2329;
    color: #ffffff;
    font-size: 0.65rem;
    padding: 4px 10px;
    border-top: 1px solid #3a3f47;
    z-index: var(--z-status-cluster);
}

.status-line[b-jdzpxrovij] {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 16px;
}

@keyframes dot-pulse-b-jdzpxrovij {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.8); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.status-dot[b-jdzpxrovij] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: dot-pulse-b-jdzpxrovij 0.7s ease-in-out;
}

.status-sep[b-jdzpxrovij] {
    color: #555;
}

/* First-paint loading / slow-connection / failed screen (kills the blank wait
   while the initial Supabase load runs). */
.app-loading[b-jdzpxrovij] {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}
.app-loading-box[b-jdzpxrovij] {
    text-align: center;
    max-width: 28rem;
    padding: 1.5rem;
}
.app-loading-title[b-jdzpxrovij] {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 0.75rem;
    color: #495057;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-5tja6pqnoq] {
    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.1);
    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.55%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.1);
}

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

/* ─── Brand Header ─── */
.top-row[b-5tja6pqnoq] {
    min-height: 3.5rem;
    background-color: #232830;
}

.navbar-brand[b-5tja6pqnoq] {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.brand-icon[b-5tja6pqnoq] {
    color: #3D8B5E;
    font-weight: 800;
    font-size: 1.4rem;
}

.brand-icon-w[b-5tja6pqnoq] {
    color: #3E4958;
    font-weight: 800;
    font-size: 1.4rem;
    margin-right: 0.5rem;
}

.brand-text[b-5tja6pqnoq] {
    color: #F6F5F2;
    font-weight: 600;
    font-size: 1.05rem;
}

/* ─── Section Labels ─── */
.nav-section-label[b-5tja6pqnoq] {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(246, 245, 242, 0.85);   /* brighter group headers — were too dim */
    padding: 1.25rem 1.25rem 0.4rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-name[b-5tja6pqnoq] {
    color: #D4A843;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.role-badge[b-5tja6pqnoq] {
    font-size: 0.6rem;
    font-weight: 700;
    background: rgba(61, 139, 94, 0.25);
    color: #3D8B5E;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── Divider ─── */
.nav-divider[b-5tja6pqnoq] {
    height: 1px;
    background: rgba(246, 245, 242, 0.08);
    margin: 0.5rem 1.25rem;
}

/* ─── Nav Icons ─── */
.nav-icon[b-5tja6pqnoq] {
    display: inline-block;
    width: 1.25rem;
    text-align: center;
    margin-right: 0.5rem;
    font-size: 0.85rem;
}

/* ─── Nav Items ─── */
.nav-item[b-5tja6pqnoq] {
    font-size: 0.85rem;
    padding-bottom: 0.1rem;
}

    .nav-item:first-of-type[b-5tja6pqnoq] {
        padding-top: 0;
    }

    .nav-item:last-of-type[b-5tja6pqnoq] {
        padding-bottom: 0.5rem;
    }

    .nav-item[b-5tja6pqnoq]  .nav-link {
        color: #F6F5F2;          /* full white — the 0.7 alpha was hard to read */
        white-space: nowrap;     /* keep each item on one line (no wrap/overlap) */
        background: none;
        border: none;
        border-radius: 6px;
        height: 2.4rem;
        display: flex;
        align-items: center;
        line-height: 2.4rem;
        width: 100%;
        padding-left: 0.5rem;
        transition: all 0.15s;
    }

.nav-item[b-5tja6pqnoq]  a.active {
    background-color: rgba(61, 139, 94, 0.2);
    color: #F6F5F2;
}

.nav-item[b-5tja6pqnoq]  .nav-link:hover {
    background-color: rgba(246, 245, 242, 0.06);
    color: #F6F5F2;
}

/* ─── Scrollable Area ─── */
.nav-scrollable[b-5tja6pqnoq] {
    display: none;
}

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

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

    .nav-scrollable[b-5tja6pqnoq] {
        display: block;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
        position: relative;
        padding-bottom: 80px;
    }
}

/* ─── Footer ─── */
.nav-footer[b-5tja6pqnoq] {
    padding: 1.5rem 1.25rem 1rem;
    font-size: 0.6rem;
    color: rgba(246, 245, 242, 0.25);
    line-height: 1.5;
    border-top: 1px solid rgba(246, 245, 242, 0.06);
    margin-top: auto;
}

/* ─── Role Badges ─── */
.badge-admin-yellow[b-5tja6pqnoq] {
    background-color: #D4A843;
    color: #000;
}

.badge-viewer-gray[b-5tja6pqnoq] {
    background-color: #555;
    color: #fff;
}

/* ─── Miller-column flyout (Reports-page cascade pattern) ───
   Group rows (Project Manager / Resourcing / Admin) open a column just right
   of the sidebar. position:fixed escapes .nav-scrollable's overflow clipping.
   These z-indexes only order the flyout above the sidebar's own rows + status
   cluster WITHIN the sidebar's stacking context — the flyout's effective tier
   at the root is the sidebar's (--z-sidebar in app.css), which already beats
   page sticky form footers and sits below modals/messaging/overlays. So those
   still win; raising these numbers wouldn't change that. */
.miller-chev[b-5tja6pqnoq] {
    margin-left: auto;          /* row is flex (nav-link) — push chevron right */
    padding-right: 0.5rem;
    opacity: 0.6;
}

.nav-item .miller-row-open[b-5tja6pqnoq] {
    background-color: rgba(246, 245, 242, 0.1);   /* held-open look, like :hover */
}

.miller-backdrop[b-5tja6pqnoq] {
    position: fixed;
    inset: 0;
    z-index: 1062;
    background: transparent;    /* click-away catcher only — no dimming */
}

.miller-col[b-5tja6pqnoq] {
    position: fixed;
    left: var(--sidebar-width, 250px);
    z-index: 1063;
    min-width: 200px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0 6px 6px 0;
    box-shadow: 6px 0 18px rgba(0, 0, 0, 0.18);
    overflow-y: auto;           /* max-height set inline from the row position */
    padding-bottom: 0.25rem;
}

.miller-col-head[b-5tja6pqnoq] {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    padding: 0.45rem 0.75rem 0.25rem;
}

.miller-col[b-5tja6pqnoq]  .list-group-item {
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
}

/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-z13f0itwbh],
.components-reconnect-repeated-attempt-visible[b-z13f0itwbh],
.components-reconnect-failed-visible[b-z13f0itwbh],
.components-pause-visible[b-z13f0itwbh],
.components-resume-failed-visible[b-z13f0itwbh],
.components-rejoining-animation[b-z13f0itwbh] {
    display: none;
}

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


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

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

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

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

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

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

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

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

@keyframes components-rejoining-animation-b-z13f0itwbh {
    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/MyWork.razor.rz.scp.css */
.mywork[b-wx3ymcsji1] {
    margin-top: 0.5rem;
    max-width: 56rem;
}
/* "My Work" header row — title left, the Viewing-person combo right. */
.pw-row[b-wx3ymcsji1] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}
.pw-title[b-wx3ymcsji1] {
    margin: 0;
}
.pw-viewing[b-wx3ymcsji1] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #555;
    margin: 0;
}
.pw-viewing select[b-wx3ymcsji1] {
    width: auto;
}

/* Filters row — project checkboxes + the due-within horizon. */
.pw-controls[b-wx3ymcsji1] {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: #555;
    padding: 0.45rem 0.1rem;
    border-top: 1px solid #f1f3f5;
    border-bottom: 1px solid #f1f3f5;
    margin-bottom: 0.7rem;
}
.pw-ctl-label[b-wx3ymcsji1] {
    font-weight: 600;
    color: #6c757d;
}
.pw-proj-chk[b-wx3ymcsji1] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
}
.pw-deliv-chk[b-wx3ymcsji1] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
    font-weight: 600;
    color: #495057;
}
.pw-due-ctl[b-wx3ymcsji1] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto;
}
.pw-due-ctl input[b-wx3ymcsji1] {
    width: 3.4rem;
}

/* Bucket headers. */
.bkt[b-wx3ymcsji1] {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0.85rem 0 0.35rem;
}
.bkt-overdue[b-wx3ymcsji1] { color: #dc3545; }
.bkt-today[b-wx3ymcsji1]   { color: #fd7e14; }
.bkt-week[b-wx3ymcsji1]    { color: #6c757d; }
.bkt-later[b-wx3ymcsji1]   { color: #adb5bd; }

/* Action rows. Calm hover: tint + solidified outline + 1px lift, NO height change. */
.act-row[b-wx3ymcsji1] {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 6px;
}
.act-row:hover[b-wx3ymcsji1] {
    border-color: #adb5bd;
    background: #f8f9fa;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
}
.act-row.sel[b-wx3ymcsji1] {
    border-color: #0d6efd;
    box-shadow: inset 3px 0 0 0 #0d6efd;
}
.act-head[b-wx3ymcsji1] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    border-radius: 6px;
}
.act-main[b-wx3ymcsji1] {
    min-width: 0;
}
.act-name[b-wx3ymcsji1] {
    font-weight: 600;
    font-size: 0.9rem;
}
.act-ctx[b-wx3ymcsji1] {
    font-size: 0.78rem;
    color: #6c757d;
}
.act-due[b-wx3ymcsji1] {
    text-align: right;
    white-space: nowrap;
    font-size: 0.8rem;
    color: #6c757d;
}
.act-due.late[b-wx3ymcsji1] {
    color: #dc3545;
    font-weight: 600;
}
.act-tag[b-wx3ymcsji1] {
    color: #adb5bd;
    font-weight: 400;
}

/* Selected-row expansion: type header + action pills. */
.act-expand[b-wx3ymcsji1] {
    padding: 0.4rem 0.7rem 0.6rem;
    border-top: 1px solid #f1f3f5;
}
.act-expand-head[b-wx3ymcsji1] {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    margin-bottom: 0.35rem;
}
.act-pills[b-wx3ymcsji1] {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
/* /Components/Pages/Profile.razor.rz.scp.css */
.profile-todayoverride[b-ynonh9cs40] {
    margin-top: 1.5rem;
    padding: 0.85rem 1rem;
    border: 1px solid #b794d6;
    border-left: 4px solid #7b2fb5;
    border-radius: 6px;
    background: #f7f0fb;
    max-width: 32rem;
}

.profile-todayoverride h4[b-ynonh9cs40] {
    margin: 0 0 0.35rem;
    color: #7b2fb5;
}

.tdo-help[b-ynonh9cs40] {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: #555;
}

.tdo-controls[b-ynonh9cs40] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tdo-controls input[type="date"][b-ynonh9cs40] {
    margin-left: 0.4rem;
    padding: 0.2rem 0.4rem;
}

.tdo-status[b-ynonh9cs40] {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
}

.tdo-active[b-ynonh9cs40] {
    color: #7b2fb5;
    font-weight: 600;
}
/* /Components/Shared/AiChatPanel.razor.rz.scp.css */
/* Right-side AI assistant overlay — mirrors MessagingPanel's panel, scoped to THIS component (CSS isolation means
   .msg-panel from MessagingPanel.razor.css does not reach here, which is why the panel had no z-index/positioning). */

.ai-chat-backdrop[b-cd4mo0tkat] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1065;
}

/* Fixed overlay docked to the right edge, full height, above the VPM/Gantt canvas (same tier as Messages, 1066). */
.ai-chat-panel[b-cd4mo0tkat] {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 480px;          /* a touch wider than Messages — chat wants room; user can drag to resize */
    max-width: 95vw;
    background: #fff;
    border-left: 1px solid #dee2e6;
    box-shadow: -6px 0 18px rgba(0, 0, 0, 0.18);
    z-index: 1066;
    display: flex;
    flex-direction: column;
}

/* Closed = hidden but STILL MOUNTED (display:none doesn't unmount the Blazor <AiPanel/>), so the conversation
   persists across close/reopen. */
.ai-chat-hidden[b-cd4mo0tkat] {
    display: none;
}

.ai-chat-header[b-cd4mo0tkat] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

/* Left-edge drag handle (wired by ai-panel-resize.js) — sits on the panel's left border. */
.ai-chat-resize[b-cd4mo0tkat] {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    cursor: ew-resize;
    z-index: 5;
}

    .ai-chat-resize:hover[b-cd4mo0tkat] {
        background: rgba(13, 110, 253, 0.18);
    }
/* /Components/Shared/ArchErrorStrip.razor.rz.scp.css */
/* ArchErrorStrip — moved verbatim from VpmView's .vpm-error-strip block so the
   Gantt shows the identical strip. Scoped to this component. */
.arch-error-strip[b-behxe7hxi1] { background: #f8d7da; border-bottom: 1px solid #f5c2c7; font-size: 0.82rem; max-height: 38vh; overflow: auto; }
.arch-error-strip-head[b-behxe7hxi1] { padding: 6px 12px; cursor: pointer; font-weight: 600; color: #842029; display: flex; gap: 8px; align-items: center; user-select: none; }
.arch-error-strip-caret[b-behxe7hxi1] { width: 12px; display: inline-block; }
.arch-error-table[b-behxe7hxi1] { width: 100%; margin: 0; border-collapse: collapse; }
.arch-error-table th[b-behxe7hxi1] { background: #f1c2c7; color: #842029; text-align: left; padding: 4px 12px; font-weight: 600; }
.arch-error-table td[b-behxe7hxi1] { padding: 3px 12px; border-top: 1px solid #f5c2c7; vertical-align: middle; color: #212529; }
.arch-error-pill[b-behxe7hxi1] { border-radius: 999px; font-size: 0.75rem; padding: 1px 12px; }
/* /Components/Shared/MessagingPanel.razor.rz.scp.css */
/* Small round sender avatar in the feed (user_table.profile_pic). Sized to sit
   inline with the sender name; cover-fit so non-square sources don't distort. */
.msg-avatar[b-5vt46z1pm3] {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

/* Dim the app behind the panel; click to dismiss. Transparent-ish so the
   VPM/Gantt view stays readable — the right side is the least important
   region of those canvases. */
.msg-panel-backdrop[b-5vt46z1pm3] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    /* Above the task-edit modals (TaskEditModal 1055, DeliverableDetailModal
       1060) so the panel is usable when opened from the in-modal message icon
       — it overlays the modal non-destructively, leaving unsaved edits intact
       behind the dim. */
    z-index: 1065;
}

/* Fixed overlay docked to the right edge, full height. Overlays the canvas
   rather than squeezing it, so width-sensitive canvases (VPM/Gantt) never
   need a resize nudge. */
.msg-panel[b-5vt46z1pm3] {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 92vw;
    background: #fff;
    border-left: 1px solid #dee2e6;
    box-shadow: -6px 0 18px rgba(0, 0, 0, 0.18);
    z-index: 1066;
    display: flex;
    flex-direction: column;
}

.msg-panel-header[b-5vt46z1pm3] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.msg-panel-body[b-5vt46z1pm3] {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.9rem;
}

/* Per-post delete (§3.9) — grey × that reddens on hover (× over trash, per
   the app convention), shown only to author / PM / delegate PM. The inline
   "Delete · Cancel" confirm replaces it on click. */
.msg-del-x[b-5vt46z1pm3] {
    background: none;
    border: none;
    padding: 0 2px;
    line-height: 1;
    font-size: 1.1rem;
    font-weight: 700;
    color: #adb5bd;
    cursor: pointer;
}
.msg-del-x:hover[b-5vt46z1pm3] { color: #dc3545; }
.msg-del-confirm[b-5vt46z1pm3] { font-size: 0.8rem; white-space: nowrap; }
/* /Components/Shared/MyMessagesPanel.razor.rz.scp.css */
/* Cross-project My Messages flyout (§3.9). Wider than the per-project panel
   because it holds four Miller columns side by side (BU → Project → Task →
   Message). Same overlay pattern. */
.mymsg-backdrop[b-th84mr42nr] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1065;
}

/* Anchored to the LEFT, contiguous with the nav sidebar (Miller columns flow
   out from the left panel). Shadow on the right edge. */
.mymsg-panel[b-th84mr42nr] {
    position: fixed;
    top: 0;
    left: var(--sidebar-width, 250px);
    bottom: 0;
    width: 880px;
    max-width: calc(100vw - var(--sidebar-width, 250px));
    background: #fff;
    border-right: 1px solid #dee2e6;
    box-shadow: 6px 0 18px rgba(0, 0, 0, 0.18);
    z-index: 1066;
    display: flex;
    flex-direction: column;
}

.mymsg-header[b-th84mr42nr] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

/* Column + row styling (.cascade-cols / .cascade-col / .cascade-col-head /
   .cascade-empty / .cascade-item / .cascade-text) is now the shared cascade
   engine in wwwroot/app.css (extracted for Profile §3.6.1). The Message column
   below reuses .cascade-col / .cascade-col-head for its container; the rows use
   the message-specific styles here. */

/* Message rows — body preview + sender/time meta, with the unread red circle
   (.cascade-dot, shared in wwwroot/app.css) leading the body. */
.mymsg-msg[b-th84mr42nr] {
    display: flex;             /* flex so the red unread dot keeps its size */
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid #f1f3f5;
    padding: 0.45rem 0.6rem;
    cursor: pointer;
}
.mymsg-msg:hover[b-th84mr42nr] { background: #e7f1ff; }   /* blue hover so the targeted message is obvious */
.mymsg-msg-body[b-th84mr42nr] {
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* /Components/Shared/PostComposer.razor.rz.scp.css */
.mention-menu[b-vi0t7945c7] {
    max-height: 11rem;
    overflow-y: auto;
    margin-top: -1px;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    z-index: 1050;
}

.mention-menu .list-group-item[b-vi0t7945c7] {
    cursor: pointer;
    font-size: 0.85rem;
}
/* /Components/Shared/ProjectBanner.razor.rz.scp.css */
/* Project banner ("black box") — moved verbatim from VpmView (Stage 1a).
   .vpm-banner positions itself at column 1 of the host's header grid and stays
   180px so it aligns with the label column below it in VPM. */

.vpm-banner[b-xzt8fs2ytb] {
    grid-row: 1;
    grid-column: 1;
    background: #2A2F38;
    color: #fff;
    padding: 8px 10px;
    overflow: hidden;
    z-index: 20;
}

/* banner-content is a flex column so mt-auto on the "Edit Project" pill pushes
   the pill row to the bottom, regardless of how many detail rows show. */
.banner-content[b-xzt8fs2ytb] { display: flex; flex-direction: column; height: 100%; gap: 1px; }
.banner-title[b-xzt8fs2ytb] { font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner-code[b-xzt8fs2ytb] { font-size: 0.75rem; color: #D4A843; }
/* White (was gray #adb5bd) per George — reads cleaner on the dark banner. */
.banner-detail[b-xzt8fs2ytb] { font-size: 0.7rem; color: #fff; white-space: nowrap; }

/* On-brand pill: gold outline against the dark banner, chip-sized. */
.banner-pill-row[b-xzt8fs2ytb] { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.banner-pill[b-xzt8fs2ytb] { font-size: 0.7rem; padding: 1px 10px; background: transparent; color: #D4A843; border: 1px solid #D4A843; border-radius: 999px; line-height: 1.3; }
.banner-pill:hover[b-xzt8fs2ytb] { background: #D4A843; color: #2A2F38; }
/* Disabled pill (e.g. Manage when the project has no buffer) — grayed + muted to
   match the disabled Show Buffer checkbox; no hover fill, no pointer. */
.banner-pill:disabled[b-xzt8fs2ytb] { color: #6c757d; border-color: #6c757d; opacity: 0.55; cursor: default; }
.banner-pill:disabled:hover[b-xzt8fs2ytb] { background: transparent; color: #6c757d; }
/* /Components/Shared/ProjectFeverPanel.razor.rz.scp.css */
/* Header fever panel — moved verbatim from VpmView (Stage 1a). The host wraps
   .fever-placeholder in its right-column container (VPM's .vpm-top-right). */

/* Top panel = flex row of two equal halves: left hosts breadcrumbs/Undo-Redo/
   Debug, right hosts the fever chart. Adjust the flex basis to change the split. */
.fever-placeholder[b-trbaal572b] { height: 80px; background: #fff; flex-shrink: 0; display: flex; }

/* overflow:auto contains the left content within its half so a narrow screen
   doesn't let the Undo/Redo group intrude over the chart. */
.fever-left[b-trbaal572b] {
    flex: 1 1 50%; min-width: 0; background: #fff;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 4px 8px; box-sizing: border-box;
    overflow: auto;
}
.fever-right[b-trbaal572b] { flex: 1 1 50%; min-width: 0; position: relative; }

/* Top row: breadcrumbs left, conflict-sim + Undo/Redo grouped right. */
.fever-left-top[b-trbaal572b] { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.fever-left-top-actions[b-trbaal572b] { display: flex; gap: 4px; align-items: center; }
/* Bottom row: Debug anchored left, then the control cluster to its right.
   Stays present (empty for non-admin) so the layout doesn't reflow when admin
   status changes mid-session. */
.fever-left-bottom[b-trbaal572b] { display: flex; justify-content: flex-start; align-items: center; gap: 4px; }
/* Control-cluster buttons (Today, and — next — Fit). Neutral chrome matching
   the Debug button so the cluster reads as one group. */
.ph-ctl-btn[b-trbaal572b] {
    font-size: 0.7rem; padding: 1px 10px;
    background: #fff; color: #495057;
    border: 1px solid #adb5bd; border-radius: 3px;
    cursor: pointer;
}
.ph-ctl-btn:hover[b-trbaal572b] { background: #e9ecef; }
/* Debug button — neutral chrome so it doesn't compete with the Undo treatment. */
.banner-debug-btn[b-trbaal572b] {
    font-size: 0.7rem; padding: 1px 10px;
    background: #fff; color: #495057;
    border: 1px solid #adb5bd; border-radius: 3px;
    cursor: pointer;
}
.banner-debug-btn:hover[b-trbaal572b] { background: #e9ecef; }
/* /Components/Shared/RightDock.razor.rz.scp.css */
/* One docked, tabbed right panel (Messages + AI). Scoped to this component. Its width is a CSS var so MainLayout's
   content margin (the shrink) reads the same value — the drag handle updates the var, content tracks it. */

.right-dock[b-qcu806cujy] {
    position: fixed;
    top: 3.5rem;   /* below the top banner (Hello/version row) — aligns with .vpm-wrapper's top */
    right: 0;
    bottom: 0;
    width: var(--right-dock-width, 460px);
    max-width: 95vw;
    background: #fff;
    border-left: 1px solid #dee2e6;
    box-shadow: -6px 0 18px rgba(0, 0, 0, 0.18);
    z-index: 1066;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.right-dock-hidden[b-qcu806cujy] {
    display: none;
}

.right-dock-tabs[b-qcu806cujy] {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.right-dock-tab[b-qcu806cujy] {
    border: 1px solid transparent;
    background: transparent;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    color: #495057;
}

    .right-dock-tab.active[b-qcu806cujy] {
        background: #fff;
        border-color: #dee2e6;
        font-weight: 600;
        color: #212529;
    }

.right-dock-body[b-qcu806cujy] {
    flex: 1;
    min-height: 0;
    display: flex;
}

.right-dock-pane[b-qcu806cujy] {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
}

    /* Inactive tab's pane hides so the ACTIVE pane fills the single body. Compound selector (0,2,0) outranks
       `.right-dock-pane`'s display:flex (0,1,0) — otherwise, being later in the file, flex would win and show both
       panes side-by-side (the "tab does nothing / split window" bug). */
    .right-dock-pane.right-dock-hidden[b-qcu806cujy] {
        display: none;
    }

/* Left-edge drag handle. */
.right-dock-resize[b-qcu806cujy] {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    cursor: ew-resize;
    z-index: 5;
}

    .right-dock-resize:hover[b-qcu806cujy] {
        background: rgba(13, 110, 253, 0.18);
    }
/* /Components/Shared/ShowBufferToggle.razor.rz.scp.css */
/* Copied verbatim from VpmView's former inline .banner-toggle so VPM looks
   pixel-identical after switching to this shared component, and the Gantt gets
   the same look (BufferedGantt.md E5). */
.banner-toggle[b-nn0rztye3f] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #D4A843;
    cursor: pointer;
    margin: 0;
}
.banner-toggle input[b-nn0rztye3f] {
    margin: 0;
    accent-color: #D4A843;
    cursor: pointer;
}
.banner-toggle.sbt-disabled[b-nn0rztye3f] {
    opacity: 0.45;
    cursor: default;
}
.banner-toggle.sbt-disabled input[b-nn0rztye3f] { cursor: default; }
