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

main[b-bxle0e845b] {
    flex: 1;
}

.sidebar[b-bxle0e845b] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-bxle0e845b] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

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

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

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

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

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

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

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

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

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

    article[b-bxle0e845b] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

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

.top-row[b-xrzland9lg] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

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

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

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

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

    .nav-item[b-xrzland9lg]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        /* Высота по содержимому: длинный пункт («Контакти клієнтів») переносится, а не наезжает на соседние. */
        min-height: 3rem;
        display: flex;
        align-items: center;
        line-height: 1.25;
        padding-top: .5rem;
        padding-bottom: .5rem;
        width: 100%;
        text-align: left;
    }

    .nav-item[b-xrzland9lg]  .nav-link .nav-icon {
        flex-shrink: 0;
        margin-right: 0.75rem;
        opacity: .9;
    }

/* Подпункты (организации и сотрудники клиентов под «Клієнти»): с отступом и поменьше. */
.nav-sub[b-xrzland9lg] {
    padding-bottom: 0.25rem;
}

    .nav-sub[b-xrzland9lg]  .nav-link {
        min-height: 2.25rem;
        padding-left: 2rem;
        font-size: 0.85rem;
    }

    .nav-sub[b-xrzland9lg]  .nav-link .nav-icon {
        width: 16px;
        height: 16px;
    }

.nav-divider[b-xrzland9lg] {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.nav-item[b-xrzland9lg]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-xrzland9lg]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

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

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

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

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

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

.nav-section[b-xrzland9lg] {
    color: #d7d7d7;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding-top: 1rem;
    padding-bottom: .25rem;
}

/* Блок пользователя внизу меню; по клику — «Обліковий запис» и «Вийти» (js/dialogs.js закрывает по клику мимо). */
.user-menu[b-xrzland9lg] {
    position: relative;
    margin: 0.5rem 1rem 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #d7d7d7;
}

.user-menu-toggle[b-xrzland9lg] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    list-style: none;
}

    .user-menu-toggle[b-xrzland9lg]::-webkit-details-marker {
        display: none;
    }

    .user-menu-toggle:hover[b-xrzland9lg], .user-menu[open] .user-menu-toggle[b-xrzland9lg] {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }

.user-menu-names[b-xrzland9lg] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    line-height: 1.2;
}

.user-menu-main[b-xrzland9lg] {
    font-size: 0.95rem;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-login[b-xrzland9lg] {
    font-size: 0.75rem;
    opacity: .75;
}

.user-menu-caret[b-xrzland9lg] {
    transition: transform .15s;
    transform: rotate(180deg);
}

.user-menu[open] .user-menu-caret[b-xrzland9lg] {
    transform: none;
}

.user-menu-popup[b-xrzland9lg] {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% - 0.25rem);
    padding: 0.25rem;
    border-radius: 6px;
    background: #1f1b3a;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.35);
    z-index: 5;
}

.user-menu-item[b-xrzland9lg] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: none;
    border-radius: 4px;
    background: none;
    color: #d7d7d7;
    font-size: 0.9rem;
    text-align: left;
    text-decoration: none;
}

    .user-menu-item:hover[b-xrzland9lg] {
        background-color: rgba(255, 255, 255, 0.12);
        color: white;
    }

@media (min-width: 641px) {
    /* Меню на всю высоту: блок пользователя прижат к низу. */
    .nav-scrollable[b-xrzland9lg] {
        display: flex;
        flex-direction: column;
    }

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

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


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

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

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

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

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

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

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

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

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