/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-usjro72cvb] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-usjro72cvb] {
    flex: 1;
}

.sidebar[b-usjro72cvb] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-usjro72cvb] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-usjro72cvb]  a, .top-row[b-usjro72cvb]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-usjro72cvb]  a:hover, .top-row[b-usjro72cvb]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-usjro72cvb]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-usjro72cvb] {
        justify-content: space-between;
    }

    .top-row[b-usjro72cvb]  a, .top-row[b-usjro72cvb]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-usjro72cvb] {
        flex-direction: row;
    }

    .sidebar[b-usjro72cvb] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-usjro72cvb] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-usjro72cvb]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-usjro72cvb], article[b-usjro72cvb] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-usjro72cvb] {
    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-usjro72cvb] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-n19gzu5ddz] {
    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-n19gzu5ddz] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-n19gzu5ddz] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-n19gzu5ddz] {
    font-size: 1.1rem;
}

.bi[b-n19gzu5ddz] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-n19gzu5ddz] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-n19gzu5ddz] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-n19gzu5ddz] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-n19gzu5ddz] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-n19gzu5ddz] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-n19gzu5ddz] {
        padding-bottom: 1rem;
    }

    .nav-item[b-n19gzu5ddz]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-n19gzu5ddz]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-n19gzu5ddz]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-n19gzu5ddz] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-n19gzu5ddz] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-n19gzu5ddz] {
        display: none;
    }

    .nav-scrollable[b-n19gzu5ddz] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-zt6ueobmse],
.components-reconnect-repeated-attempt-visible[b-zt6ueobmse],
.components-reconnect-failed-visible[b-zt6ueobmse],
.components-pause-visible[b-zt6ueobmse],
.components-resume-failed-visible[b-zt6ueobmse],
.components-rejoining-animation[b-zt6ueobmse] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-zt6ueobmse],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-zt6ueobmse],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-zt6ueobmse],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-zt6ueobmse],
#components-reconnect-modal.components-reconnect-retrying[b-zt6ueobmse],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-zt6ueobmse],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-zt6ueobmse],
#components-reconnect-modal.components-reconnect-failed[b-zt6ueobmse],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-zt6ueobmse] {
    display: block;
}


#components-reconnect-modal[b-zt6ueobmse] {
    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-zt6ueobmse 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-zt6ueobmse 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-zt6ueobmse 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-zt6ueobmse]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-zt6ueobmse 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-zt6ueobmse {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-zt6ueobmse {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-zt6ueobmse {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-zt6ueobmse] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-zt6ueobmse] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-zt6ueobmse] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-zt6ueobmse] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-zt6ueobmse] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-zt6ueobmse] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-zt6ueobmse] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-zt6ueobmse 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-zt6ueobmse] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-zt6ueobmse {
    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/Agenda.razor.rz.scp.css */
.agenda-page[b-epdyvforh2] {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.agenda-sidebar[b-epdyvforh2] {
    width: 240px;
    flex-shrink: 0;
}

.agenda-context-title[b-epdyvforh2] {
    font-size: 1rem;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agenda-group[b-epdyvforh2] {
    margin-bottom: 1.5rem;
}

.agenda-group-header[b-epdyvforh2] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.agenda-empty-hint[b-epdyvforh2] {
    color: #888;
    font-size: 0.82rem;
    margin: 0 0 0.5rem;
}

.agenda-item[b-epdyvforh2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

.agenda-item label[b-epdyvforh2] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agenda-dot[b-epdyvforh2] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.agenda-main[b-epdyvforh2] {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 8px;
}

.agenda-toolbar[b-epdyvforh2] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.agenda-toolbar-nav[b-epdyvforh2] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agenda-periode-label[b-epdyvforh2] {
    font-weight: 600;
    text-transform: capitalize;
    margin-left: 0.5rem;
}

.agenda-toolbar-actions[b-epdyvforh2] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.agenda-vue-switch[b-epdyvforh2] {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.agenda-vue-switch button[b-epdyvforh2] {
    border: none;
    background: #fff;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.agenda-vue-switch button + button[b-epdyvforh2] {
    border-left: 1px solid #ddd;
}

.agenda-vue-switch button.active[b-epdyvforh2] {
    background: #2E86C1;
    color: #fff;
}

.agenda-grid[b-epdyvforh2] {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-top: 1px solid #e5e5e5;
    border-left: 1px solid #e5e5e5;
    background: #fff;
}

.agenda-grid-dow[b-epdyvforh2] {
    padding: 0.4rem;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.agenda-cell[b-epdyvforh2] {
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    min-height: 90px;
    padding: 0.3rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: #fff;
}

.agenda-cell-large[b-epdyvforh2] {
    min-height: 320px;
}

.agenda-cell-header[b-epdyvforh2] {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    text-transform: capitalize;
}

.agenda-cell-header.dim[b-epdyvforh2] {
    color: #ccc;
}

.agenda-cell-header.today[b-epdyvforh2] {
    color: #2E86C1;
}

.agenda-cell-events[b-epdyvforh2] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.agenda-event[b-epdyvforh2] {
    color: #fff;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.72rem;
    display: flex;
    gap: 4px;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
}

.agenda-event-time[b-epdyvforh2] {
    font-weight: 600;
    flex-shrink: 0;
}

.agenda-event-title[b-epdyvforh2] {
    overflow: hidden;
    text-overflow: ellipsis;
}

.agenda-event-recur-icon[b-epdyvforh2] {
    font-size: 0.65em;
    flex-shrink: 0;
    opacity: 0.85;
}

/* ── Vues Jour/Semaine : grille horaire ── */

.agenda-hourview[b-epdyvforh2] {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.agenda-hourview-header[b-epdyvforh2],
.agenda-hourview-allday[b-epdyvforh2] {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.agenda-hour-axis-spacer[b-epdyvforh2] {
    width: 52px;
    flex-shrink: 0;
}

.agenda-hourview-daylabel[b-epdyvforh2] {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
    border-left: 1px solid #e5e5e5;
}

.agenda-hourview-daylabel.today[b-epdyvforh2] {
    color: #2E86C1;
}

.agenda-hourview-allday-cell[b-epdyvforh2] {
    flex: 1;
    border-left: 1px solid #e5e5e5;
    padding: 2px 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.agenda-hourview-body[b-epdyvforh2] {
    display: flex;
    max-height: 70vh;
    overflow-y: auto;
    background: #fff;
}

.agenda-hour-axis[b-epdyvforh2] {
    width: 52px;
    flex-shrink: 0;
    background: #fff;
}

.agenda-hour-label[b-epdyvforh2] {
    height: 60px;
    font-size: 0.7rem;
    color: #888;
    text-align: right;
    padding-right: 6px;
    box-sizing: border-box;
    transform: translateY(-6px);
}

.agenda-hourview-day[b-epdyvforh2] {
    flex: 1;
    position: relative;
    border-left: 1px solid #e5e5e5;
    height: 1440px;
    cursor: pointer;
    background: #fff;
}

.agenda-hour-line[b-epdyvforh2] {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid #eee;
}

.agenda-hourevent[b-epdyvforh2] {
    position: absolute;
    color: #fff;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 0.72rem;
    overflow: hidden;
    cursor: move;
    box-sizing: border-box;
    user-select: none;
}

.agenda-hourevent-handle[b-epdyvforh2] {
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    cursor: ns-resize;
}

.agenda-hourevent-handle-top[b-epdyvforh2] {
    top: 0;
}

.agenda-hourevent-handle-bottom[b-epdyvforh2] {
    bottom: 0;
}

.agenda-hourevent-handle:hover[b-epdyvforh2] {
    background: rgba(255, 255, 255, 0.35);
}
/* /Components/Pages/FonctionnaliteDetail.razor.rz.scp.css */
.fonctionnalite-contenu img[b-0n0063xd5i] {
    max-width: 100%;
    border-radius: var(--radius-sm, 8px);
    margin: 0.5rem 0;
}

.fonctionnalite-contenu p[b-0n0063xd5i] {
    margin: 0 0 0.6em;
}
/* /Components/Pages/Messagerie.razor.rz.scp.css */
/* ══════════════════════════════════════════════════════════════════════
   Structure générale : sidebar (rubriques) + panneau principal (liste + détail)
   ══════════════════════════════════════════════════════════════════════ */

.msg-shell[b-a2hgr5z6pu] {
    display: flex;
    gap: 1.25rem;
    align-items: stretch;
    height: calc(100vh - 260px);
    min-height: 560px;
}

.msg-sidebar-panel[b-a2hgr5z6pu] {
    width: 240px;
    flex-shrink: 0;
    min-height: 0;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e0e6ec);
    border-radius: var(--radius, 12px);
    box-shadow: var(--shadow-sm, 0 1px 4px rgba(15, 27, 45, .06));
    padding: 1rem;
    overflow-y: auto;
}

.msg-main-panel[b-a2hgr5z6pu] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e0e6ec);
    border-radius: var(--radius, 12px);
    box-shadow: var(--shadow-sm, 0 1px 4px rgba(15, 27, 45, .06));
    overflow: hidden;
}

/* ── Sidebar : rubriques ── */

.msg-sidebar-block[b-a2hgr5z6pu] {
    margin-bottom: 1.2rem;
}

.msg-sidebar-block-title[b-a2hgr5z6pu] {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--text-muted, #888);
    margin-bottom: 0.4rem;
    padding: 0 0.3rem;
}

.msg-sidebar-rubriques[b-a2hgr5z6pu] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.msg-sidebar-rubrique[b-a2hgr5z6pu] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-sm, 8px);
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--navy, #333);
}

.msg-sidebar-rubrique i[b-a2hgr5z6pu] {
    width: 16px;
    color: var(--text-muted, #999);
    flex-shrink: 0;
}

.msg-sidebar-rubrique:hover[b-a2hgr5z6pu] {
    background: var(--bg, #f4f7fa);
}

.msg-sidebar-rubrique.active[b-a2hgr5z6pu] {
    background: rgba(46, 134, 193, .12);
    color: var(--blue, #2E86C1);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--blue, #2E86C1);
}

.msg-sidebar-rubrique.active i[b-a2hgr5z6pu] {
    color: var(--blue, #2E86C1);
}

.msg-sidebar-badge[b-a2hgr5z6pu] {
    margin-left: auto;
    background: var(--blue, #2E86C1);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    padding: 1px 7px;
    min-width: 18px;
    text-align: center;
}

.msg-sidebar-block-collapsed[b-a2hgr5z6pu] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-sm, 8px);
    font-size: 0.85rem;
    color: var(--text-muted, #6B7F94);
    cursor: pointer;
}

.msg-sidebar-block-collapsed:hover[b-a2hgr5z6pu] {
    background: var(--bg, #f4f7fa);
}

.msg-sidebar-block-collapsed span:first-child[b-a2hgr5z6pu] {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Panneau liste (haut) ── */

.msg-list-panel[b-a2hgr5z6pu] {
    flex: 0 0 40%;
    max-height: 40%;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border, #e0e6ec);
    background: var(--bg-card, #fff);
}

.msg-list-panel-header[b-a2hgr5z6pu] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--border, #e0e6ec);
    flex-shrink: 0;
}

.msg-list-panel-header h2[b-a2hgr5z6pu] {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy, #0F1B2D);
}

.msg-list-scroll[b-a2hgr5z6pu] {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
}

.msg-empty-hint[b-a2hgr5z6pu] {
    color: var(--text-muted, #888);
    font-size: 0.9rem;
    padding: 0.5rem;
}

.msg-list[b-a2hgr5z6pu] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.msg-list-item[b-a2hgr5z6pu] {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e0e6ec);
    border-radius: var(--radius-sm, 8px);
    padding: 0.7rem 0.9rem;
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s, background 0.15s;
}

.msg-list-item:hover[b-a2hgr5z6pu] {
    box-shadow: var(--shadow-sm, 0 1px 4px rgba(15, 27, 45, .08));
    border-color: var(--blue, #2E86C1);
}

.msg-list-item.selected[b-a2hgr5z6pu] {
    border-color: var(--blue, #2E86C1);
    background: rgba(46, 134, 193, .06);
    box-shadow: 0 0 0 1px var(--blue, #2E86C1) inset;
}

.msg-list-item.unread[b-a2hgr5z6pu] {
    border-left: 3px solid var(--blue, #2E86C1);
}

/* Fond légèrement teinté, jamais en conflit avec la bordure gauche "unread" (propriétés différentes) — un
   message adressé à un groupe public se distingue visuellement même une fois lu. */
.msg-list-item.public-groupe[b-a2hgr5z6pu] {
    background: rgba(142, 68, 173, .05);
}

.msg-list-item-top[b-a2hgr5z6pu] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow: hidden;
}

.msg-unread-dot[b-a2hgr5z6pu] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue, #2E86C1);
    flex-shrink: 0;
}

.msg-list-item-titre[b-a2hgr5z6pu] {
    font-weight: 600;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.msg-list-item.unread .msg-list-item-titre[b-a2hgr5z6pu] {
    font-weight: 700;
}

.msg-badges[b-a2hgr5z6pu] {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.msg-badge[b-a2hgr5z6pu] {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.msg-list-reply-counts[b-a2hgr5z6pu],
.msg-reply-counts[b-a2hgr5z6pu] {
    display: inline-flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted, #888);
    white-space: nowrap;
    flex-shrink: 0;
}

.msg-list-reply-counts.attention[b-a2hgr5z6pu],
.msg-reply-counts.attention[b-a2hgr5z6pu] {
    color: var(--blue, #2E86C1);
    font-weight: 700;
}

.msg-list-item-auteur[b-a2hgr5z6pu],
.msg-list-item-date[b-a2hgr5z6pu] {
    font-size: 0.78rem;
    color: var(--text-muted, #888);
    flex-shrink: 0;
    white-space: nowrap;
}

.msg-list-item-auteur[b-a2hgr5z6pu] {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-badge.important[b-a2hgr5z6pu] {
    background: rgba(231, 76, 60, .1);
    color: var(--danger, #E74C3C);
}

.msg-badge.poll[b-a2hgr5z6pu] {
    background: rgba(46, 134, 193, .1);
    color: var(--blue, #2E86C1);
}

.msg-badge.archived[b-a2hgr5z6pu] {
    background: rgba(107, 127, 148, .12);
    color: var(--text-muted, #6B7F94);
}

.msg-badge.draft[b-a2hgr5z6pu] {
    background: rgba(232, 184, 75, .18);
    color: #9a6e00;
}

.msg-badge.public-groupe[b-a2hgr5z6pu] {
    background: rgba(142, 68, 173, .1);
    color: #8E44AD;
}

.msg-list-item-meta[b-a2hgr5z6pu] {
    display: flex;
    gap: 1rem;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-muted, #888);
}

/* ── Panneau détail (bas) ── */

.msg-detail-panel[b-a2hgr5z6pu] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1.25rem 1.5rem 2rem;
    background: var(--bg, #f7f9fb);
}

.msg-detail-placeholder[b-a2hgr5z6pu] {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--text-muted, #aaa);
}

.msg-detail-placeholder i[b-a2hgr5z6pu] {
    font-size: 2.4rem;
}

.msg-detail-placeholder p[b-a2hgr5z6pu] {
    font-size: 0.9rem;
    margin: 0;
}

.msg-detail-columns[b-a2hgr5z6pu] {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.msg-detail-main[b-a2hgr5z6pu] {
    flex: 1;
    min-width: 0;
}

.msg-detail-attachments[b-a2hgr5z6pu] {
    width: 320px;
    flex-shrink: 0;
}

.msg-detail-header[b-a2hgr5z6pu] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.msg-detail-header h1[b-a2hgr5z6pu] {
    font-size: 1.3rem;
    margin: 0;
}

.msg-manage-actions[b-a2hgr5z6pu] {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.msg-destinataires[b-a2hgr5z6pu] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.msg-destinataire-chip[b-a2hgr5z6pu] {
    font-size: 0.78rem;
    color: var(--text-muted, #6B7F94);
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e0e6ec);
    border-radius: 20px;
    padding: 2px 10px;
}

.msg-sondage-panel[b-a2hgr5z6pu] {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e0e6ec);
    border-radius: var(--radius, 10px);
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
}

.msg-sondage-panel h4[b-a2hgr5z6pu] {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
}

.msg-sondage-option[b-a2hgr5z6pu] {
    margin-bottom: 0.7rem;
}

.msg-sondage-bar[b-a2hgr5z6pu] {
    height: 6px;
    background: var(--border, #e0e6ec);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.15rem 0 0.15rem 1.5rem;
    max-width: 320px;
}

.msg-sondage-bar-fill[b-a2hgr5z6pu] {
    height: 100%;
    background: var(--blue, #2E86C1);
}

.msg-pieces-jointes[b-a2hgr5z6pu] {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e0e6ec);
    border-radius: var(--radius, 10px);
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
}

.msg-pj-header[b-a2hgr5z6pu] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.msg-pj-header h4[b-a2hgr5z6pu] {
    margin: 0;
    font-size: 0.95rem;
}

.msg-pj-list[b-a2hgr5z6pu] {
    list-style: none;
    padding: 0;
    margin: 0 0 0.6rem;
}

.msg-pj-item[b-a2hgr5z6pu] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border, #e0e6ec);
}

.msg-pj-item:last-child[b-a2hgr5z6pu] {
    border-bottom: none;
}

.msg-pj-item.deleted[b-a2hgr5z6pu] {
    opacity: 0.55;
}

.msg-pj-item.deleted .msg-pj-name[b-a2hgr5z6pu] {
    text-decoration: line-through;
}

.msg-pj-name[b-a2hgr5z6pu] {
    flex: 1;
    min-width: 160px;
}

.msg-pj-size[b-a2hgr5z6pu] {
    color: var(--text-muted, #888);
    font-size: 0.78rem;
}

.msg-pj-meta[b-a2hgr5z6pu] {
    font-size: 0.78rem;
    color: var(--text-muted, #888);
}

.msg-pj-actions[b-a2hgr5z6pu] {
    display: flex;
    gap: 0.2rem;
}

.msg-pj-history[b-a2hgr5z6pu] {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
}

.msg-pj-history li[b-a2hgr5z6pu] {
    padding: 0.25rem 0;
}

.msg-thread[b-a2hgr5z6pu] {
    display: flex;
    flex-direction: column;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e0e6ec);
    border-radius: var(--radius, 10px);
    padding: 0.5rem 1rem;
}

.msg-item[b-a2hgr5z6pu] {
    border-left: 2px solid var(--border, #e0e6ec);
    padding: 0.7rem 0 0.7rem 0.9rem;
}

.msg-item.attention[b-a2hgr5z6pu] {
    border-left-color: var(--blue, #2E86C1);
}

.msg-item-header[b-a2hgr5z6pu] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: nowrap;
    overflow: hidden;
    font-size: 0.85rem;
}

.msg-item-auteur[b-a2hgr5z6pu] {
    font-weight: 600;
    flex: 0 1 auto;
    min-width: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.msg-item.attention .msg-item-auteur[b-a2hgr5z6pu] {
    font-weight: 700;
    color: var(--navy, #0F1B2D);
}

.msg-item-date[b-a2hgr5z6pu] {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted, #999);
    flex-shrink: 0;
}

.msg-reply-link-inline[b-a2hgr5z6pu] {
    background: none;
    border: none;
    padding: 0;
    color: var(--blue, #2E86C1);
    font-size: 0.78rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.msg-reply-link-inline:hover[b-a2hgr5z6pu] {
    text-decoration: underline;
}

.msg-reply-link-inline.active[b-a2hgr5z6pu] {
    font-weight: 700;
}

/* Rendu en flux normal (pas de position:absolute) : un ancêtre (.msg-item-header) a overflow:hidden pour
   tronquer les longs noms/dates, ce qui rognerait silencieusement toute bulle superposée en position absolute. */
.msg-reaction-picker[b-a2hgr5z6pu] {
    display: flex;
    flex-wrap: wrap;
    width: max-content;
    max-width: 260px;
    gap: 2px;
    margin-top: 0.4rem;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e0e6ec);
    border-radius: 14px;
    box-shadow: var(--shadow-md, 0 4px 14px rgba(15, 27, 45, .12));
    padding: 4px 6px;
}

.msg-reaction-picker-btn[b-a2hgr5z6pu] {
    background: none;
    border: none;
    padding: 2px 4px;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s, transform 0.1s;
}

.msg-reaction-picker-btn:hover[b-a2hgr5z6pu] {
    background: var(--bg, #f4f7fa);
    transform: scale(1.15);
}

.msg-reaction-picker-btn.active[b-a2hgr5z6pu] {
    background: rgba(46, 134, 193, .15);
}

.msg-item-content[b-a2hgr5z6pu] {
    margin-top: 0.4rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Contenu injecté via @((MarkupString)m.ContenuHtml) : Blazor pose l'innerHTML brut sans tracer les éléments
   individuellement, donc sans l'attribut de scope isolé — ::deep désactive le scoping pour ces descendants. */
.msg-item-content[b-a2hgr5z6pu]  p:first-child {
    margin-top: 0;
}

.msg-item-deleted[b-a2hgr5z6pu] {
    color: var(--text-muted, #999);
}

.msg-item-reactions[b-a2hgr5z6pu] {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.msg-reaction-chip[b-a2hgr5z6pu] {
    background: var(--bg, #f4f7fa);
    border: 1px solid var(--border, #e0e6ec);
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 0.8rem;
}

/* Réaction posée par l'utilisateur courant — rendue cliquable (bouton plutôt que span) pour la retirer en un
   clic si elle a été posée par erreur, plutôt que de rouvrir le sélecteur pour recliquer le même émoji. Le survol
   passe au rouge pour signaler explicitement une action de suppression. */
button.msg-reaction-chip.mine[b-a2hgr5z6pu] {
    font-family: inherit;
    cursor: pointer;
    background: rgba(46, 134, 193, .12);
    border-color: var(--blue, #2E86C1);
    color: var(--blue, #2E86C1);
    font-weight: 600;
}

button.msg-reaction-chip.mine:hover[b-a2hgr5z6pu] {
    background: rgba(231, 76, 60, .12);
    border-color: var(--danger, #E74C3C);
    color: var(--danger, #E74C3C);
}

.msg-reply-link[b-a2hgr5z6pu] {
    margin-top: 0.5rem;
    background: none;
    border: none;
    padding: 0;
    color: var(--blue, #2E86C1);
    font-size: 0.8rem;
    cursor: pointer;
}

.msg-reply-link:hover[b-a2hgr5z6pu] {
    text-decoration: underline;
}

.msg-item-toggle[b-a2hgr5z6pu] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    color: var(--text-muted, #6B7F94);
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 4px;
}

.msg-item-toggle:hover[b-a2hgr5z6pu] {
    background: var(--bg, #f4f7fa);
    color: var(--blue, #2E86C1);
}

.msg-item-toggle-spacer[b-a2hgr5z6pu] {
    flex-shrink: 0;
    width: 18px;
}

.msg-reply-form[b-a2hgr5z6pu] {
    margin-top: 0.6rem;
    padding: 0.7rem;
    background: var(--bg, #f4f7fa);
    border-radius: var(--radius-sm, 8px);
}

.msg-reply-form-actions[b-a2hgr5z6pu] {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.msg-checkbox-row[b-a2hgr5z6pu] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    margin: 0.4rem 0;
    cursor: pointer;
}

/* ── Formulaires (panneaux "Nouvelle conversation" / "Répondre") ── */

.msg-form-field[b-a2hgr5z6pu] {
    margin-bottom: 1.1rem;
}

.msg-form-field > label[b-a2hgr5z6pu] {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text, #333);
    margin-bottom: 0.4rem;
}

.msg-hint[b-a2hgr5z6pu] {
    font-size: 0.78rem;
    color: var(--text-muted, #888);
    margin-top: 0.3rem;
}

.msg-dest-group[b-a2hgr5z6pu] {
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: var(--bg, #f4f7fa);
    border-radius: var(--radius-sm, 8px);
}

.msg-dest-group-title[b-a2hgr5z6pu] {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--text-muted, #888);
    margin-bottom: 0.5rem;
}

.msg-user-slot[b-a2hgr5z6pu] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.msg-sondage-builder[b-a2hgr5z6pu] {
    margin-top: 0.7rem;
    padding: 0.9rem;
    background: var(--bg, #f4f7fa);
    border-radius: var(--radius-sm, 8px);
    border: 1px dashed var(--border, #dde3ec);
}

.msg-sondage-templates[b-a2hgr5z6pu] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.msg-sondage-option-row[b-a2hgr5z6pu] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
    .msg-shell[b-a2hgr5z6pu] {
        flex-direction: column;
        height: auto;
    }

    .msg-sidebar-panel[b-a2hgr5z6pu] {
        width: 100%;
        max-height: 260px;
    }

    .msg-main-panel[b-a2hgr5z6pu] {
        height: 70vh;
    }

    .msg-detail-columns[b-a2hgr5z6pu] {
        flex-direction: column;
    }

    .msg-detail-attachments[b-a2hgr5z6pu] {
        width: 100%;
    }
}
/* /Components/Shared/MarkdownEditor.razor.rz.scp.css */
.mde-wrapper[b-e2qyanunig] {
    border: 1px solid var(--border, #e0e6ec);
    border-radius: var(--radius-sm, 8px);
    overflow: hidden;
    background: var(--bg-card, #fff);
}

.mde-toolbar[b-e2qyanunig] {
    display: flex;
    gap: 2px;
    padding: 0.35rem;
    background: var(--bg, #f4f7fa);
    border-bottom: 1px solid var(--border, #e0e6ec);
}

.mde-btn[b-e2qyanunig] {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text, #333);
    font-size: 0.85rem;
    cursor: pointer;
}

.mde-btn:hover[b-e2qyanunig] {
    background: var(--bg-card, #fff);
    border-color: var(--border, #e0e6ec);
}

.mde-btn:active[b-e2qyanunig] {
    background: rgba(46, 134, 193, .12);
    color: var(--blue, #2E86C1);
}

.mde-btn-wide[b-e2qyanunig] {
    width: auto;
    padding: 0 0.4rem;
    gap: 4px;
}

.mde-sep[b-e2qyanunig] {
    width: 1px;
    margin: 3px 4px;
    background: var(--border, #e0e6ec);
}

.mde-dropdown-host[b-e2qyanunig] {
    position: relative;
}

.mde-dropdown[b-e2qyanunig] {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 20;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e0e6ec);
    border-radius: 8px;
    box-shadow: var(--shadow-sm, 0 4px 16px rgba(15, 27, 45, .12));
    padding: 0.5rem;
}

.mde-color-palette[b-e2qyanunig] {
    display: grid;
    grid-template-columns: repeat(4, 22px);
    gap: 6px;
}

.mde-color-swatch[b-e2qyanunig] {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, .15);
    cursor: pointer;
    padding: 0;
}

.mde-color-swatch:hover[b-e2qyanunig] {
    transform: scale(1.1);
}

.mde-font-list[b-e2qyanunig] {
    display: flex;
    flex-direction: column;
    min-width: 160px;
}

.mde-font-option[b-e2qyanunig] {
    background: none;
    border: none;
    text-align: left;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text, #333);
}

.mde-font-option:hover[b-e2qyanunig] {
    background: var(--bg, #f4f7fa);
}

.mde-editor[b-e2qyanunig] {
    min-height: 120px;
    max-height: 600px;
    height: 160px;
    resize: vertical;
    overflow-y: auto;
    padding: 0.7rem 0.9rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text, #333);
    outline: none;
}

/* Le contenu de .mde-editor est injecté via JS interop (innerHTML), pas par le rendu Razor : ::deep désactive le
   scoping CSS isolé pour ces descendants, qui ne portent jamais l'attribut de scope Blazor. */
.mde-editor[b-e2qyanunig]  p {
    margin: 0 0 0.4em;
}

.mde-editor[b-e2qyanunig]  img {
    max-width: 100%;
    border-radius: var(--radius-sm, 8px);
}

.mde-editor:empty[b-e2qyanunig]::before {
    content: attr(data-placeholder);
    color: var(--text-muted, #aaa);
    pointer-events: none;
}
