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

main[b-xfukyrsntv] {
    flex: 1;
    /* Un tableau large défile dans la page au lieu d'élargir toute la fenêtre (et de chasser le bouton de thème). */
    min-width: 0;
}

article[b-xfukyrsntv] {
    overflow-x: auto;
}

.sidebar[b-xfukyrsntv] {
    background: linear-gradient(180deg, var(--csh-surface-2), transparent);
    border-right: 1px solid var(--csh-line);
}

.top-row[b-xfukyrsntv] {
    background: transparent;
    justify-content: flex-end;
    gap: 1rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-xfukyrsntv]  a, .top-row[b-xfukyrsntv]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-xfukyrsntv]  a:hover, .top-row[b-xfukyrsntv]  .btn-link:hover {
        text-decoration: underline;
    }

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

    /* Fil d'Ariane : à gauche, le reste (thème) poussé à droite ; le dernier élément se tronque. */
    .top-row[b-xfukyrsntv]  .crumbs {
        flex: 1;
        min-width: 0;
    }

    .top-row[b-xfukyrsntv]  .crumbs .breadcrumb {
        flex-wrap: nowrap;
        font-size: 1.35rem;
        font-weight: 700;
        --bs-breadcrumb-divider: '›';
    }

    .top-row[b-xfukyrsntv]  .crumbs .breadcrumb-item {
        white-space: nowrap;
    }

    .top-row[b-xfukyrsntv]  .crumbs .breadcrumb-item.active {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--bs-body-color);
    }

    .top-row[b-xfukyrsntv]  .crumbs a {
        margin-left: 0;
        color: var(--bs-secondary-color);
    }

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

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

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

    .sidebar[b-xfukyrsntv] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

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

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

    .top-row[b-xfukyrsntv], article[b-xfukyrsntv] {
        padding-left: 2.5rem !important;
        padding-right: 2.5rem !important;
    }
}

#blazor-error-ui[b-xfukyrsntv] {
    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-xfukyrsntv] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-b33jv45ic1] {
    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-b33jv45ic1] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-b33jv45ic1] {
    min-height: 5.5rem;
    background: transparent;
}

.brand-logo[b-b33jv45ic1] { height: 2.4rem; max-width: 100%; object-fit: contain; display: block; }

.brand-text[b-b33jv45ic1] { font-size: 1.6rem; font-weight: 700; letter-spacing: .02em; color: var(--csh-title); line-height: 1; }
.brand-text span[b-b33jv45ic1] { color: var(--csh-brown); }

.brand-sub[b-b33jv45ic1] { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bs-secondary-color); margin-top: .35rem; }
.brand-version[b-b33jv45ic1] { letter-spacing: .04em; text-transform: none; opacity: .8; margin-left: .3rem; }

.navbar-brand[b-b33jv45ic1] {
    font-size: 1.1rem;
}

.nav-item[b-b33jv45ic1] {
    font-size: 0.9rem;
    padding-bottom: 0.25rem;
}

    .nav-item:first-of-type[b-b33jv45ic1] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-b33jv45ic1] {
        padding-bottom: 1rem;
    }

    /* Liens à la CsBackup : gris discret, pilule bronze en dégradé pour la page active. */
    .nav-item[b-b33jv45ic1]  .nav-link {
        color: var(--csh-muted);
        background: none;
        border: none;
        border-radius: 12px;
        font-weight: 500;
        height: 2.6rem;
        padding: 0 .8rem;
        display: flex;
        align-items: center;
        gap: .65rem;
        line-height: 1.2;
        white-space: nowrap;
        width: 100%;
    }

    .nav-item[b-b33jv45ic1]  .nav-link > span { overflow: hidden; text-overflow: ellipsis; }

    .nav-item[b-b33jv45ic1]  .icon { width: 18px; height: 18px; flex: none; }

.nav-item[b-b33jv45ic1]  .nav-link:hover {
    background-color: var(--csh-card);
    color: var(--bs-body-color);
}

.nav-item[b-b33jv45ic1]  a.active,
.nav-item[b-b33jv45ic1]  a.active:hover {
    background: linear-gradient(135deg, var(--csh-brown), var(--csh-brown-hi));
    color: #fff;
    box-shadow: 0 6px 18px var(--csh-glow);
}

/* Profil et déconnexion séparés du menu. */
.nav-item:has(form)[b-b33jv45ic1], .nav-item:has(a[href="Account/Manage"])[b-b33jv45ic1] { font-size: .85rem; }
.nav-item:has(a[href="Account/Manage"])[b-b33jv45ic1] { margin-top: .5rem; padding-top: .75rem; border-top: 1px solid var(--csh-line); }

/* Application Mac : carte poussée en bas de la barre. */
.nav-scrollable > nav[b-b33jv45ic1] { min-height: 100%; }

.mac-download[b-b33jv45ic1] { margin-top: auto; padding-top: 1.5rem; padding-bottom: 1rem; }

    .mac-download a[b-b33jv45ic1] {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .6rem;
        padding: 1.1rem .8rem 1rem;
        border: 1px solid var(--csh-line);
        border-radius: var(--csh-radius);
        background: var(--csh-surface);
        box-shadow: var(--csh-shadow-lg);
        color: var(--bs-body-color);
        font-size: .85rem;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
        transition: transform .2s var(--csh-ease), box-shadow .2s var(--csh-ease);
    }

    .mac-download a:hover[b-b33jv45ic1] { transform: translateY(-2px); box-shadow: var(--csh-shadow-lg), 0 6px 18px var(--csh-glow); }

    .mac-download img[b-b33jv45ic1] { width: 5rem; height: 5rem; }

.nav-scrollable[b-b33jv45ic1] {
    display: none;
}

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

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

    .nav-scrollable[b-b33jv45ic1] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 5.5rem);
        overflow-y: auto;
    }
}
/* /Components/Layout/PanelLayout.razor.rz.scp.css */
.panel-page[b-i1vfu1hdk7] {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

    /* Le panneau d'appel occupe toute la fenêtre au lieu de flotter à droite ; rien à replier. */
    .panel-page[b-i1vfu1hdk7]  .live-panel {
        position: static;
        flex: 1;
        width: auto;
        height: auto;
        min-height: 0;
        border: 0;
    }

    .panel-page[b-i1vfu1hdk7]  .live-panel-header .btn-link {
        display: none;
    }

    /* Fenêtre large (app Mac) : la conversation à gauche, les bulles et le guide à droite. */
    @media (min-width: 720px) {
        .panel-page[b-i1vfu1hdk7]  .live-body {
            flex-direction: row-reverse;
            gap: 1rem;
        }

        .panel-page[b-i1vfu1hdk7]  .live-side {
            width: 24rem;
            max-height: none;
        }
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-a5aersnkdu],
.components-reconnect-repeated-attempt-visible[b-a5aersnkdu],
.components-reconnect-failed-visible[b-a5aersnkdu],
.components-pause-visible[b-a5aersnkdu],
.components-resume-failed-visible[b-a5aersnkdu],
.components-rejoining-animation[b-a5aersnkdu] {
    display: none;
}

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


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

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

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

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

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

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

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

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

@keyframes components-rejoining-animation-b-a5aersnkdu {
    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;
    }
}
