/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* =========================================================
   MEDASSIN PDKS
   MAIN LAYOUT / RESPONSIVE SHELL
   ========================================================= */


/* =========================================================
   SHELL
   ========================================================= */

.pdks-shell[b-iw5kojbmuk] {
    --pdks-shell-sidebar-width: 248px;
    --pdks-shell-sidebar-collapsed-width: 68px;
    --pdks-shell-header-height: 58px;
    display: grid;
    grid-template-columns: var(--pdks-shell-sidebar-width) minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    min-height: 100dvh;
    background: #f5f7fb;
    overflow-x: hidden;
    transition: grid-template-columns 160ms ease;
}

    .pdks-shell.pdks-shell-collapsed[b-iw5kojbmuk] {
        grid-template-columns: var(--pdks-shell-sidebar-collapsed-width) minmax(0, 1fr);
    }


/* =========================================================
   SIDEBAR
   ========================================================= */

.pdks-shell-sidebar[b-iw5kojbmuk] {
    position: sticky;
    top: 0;
    width: 100%;
    min-width: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #0f172a;
    color: #e2e8f0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    z-index: 1100;
}


/* =========================================================
   BRAND
   ========================================================= */

.pdks-shell-brand[b-iw5kojbmuk] {
    min-height: var(--pdks-shell-header-height);
    height: var(--pdks-shell-header-height);
    flex: 0 0 var(--pdks-shell-header-height);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pdks-shell-toggle[b-iw5kojbmuk],
.pdks-shell-mobile-close[b-iw5kojbmuk],
.pdks-shell-mobile-menu[b-iw5kojbmuk] {
    border: 0;
    outline: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pdks-shell-toggle[b-iw5kojbmuk] {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.07);
    color: #f8fafc;
    transition: background-color 140ms ease, transform 140ms ease;
}

    .pdks-shell-toggle:hover[b-iw5kojbmuk] {
        background: rgba(255, 255, 255, 0.13);
    }

    .pdks-shell-toggle:active[b-iw5kojbmuk] {
        transform: scale(0.96);
    }

.pdks-shell-brand-text[b-iw5kojbmuk] {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.pdks-shell-brand-name[b-iw5kojbmuk] {
    overflow: hidden;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.035em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pdks-shell-brand-company[b-iw5kojbmuk] {
    margin-top: 0.16rem;
    overflow: hidden;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =========================================================
   MOBILE CLOSE
   ========================================================= */

.pdks-shell-mobile-close[b-iw5kojbmuk] {
    display: none;
    width: 34px;
    min-width: 34px;
    height: 34px;
    margin-left: auto;
    padding: 0;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.07);
    color: #f8fafc;
}

    .pdks-shell-mobile-close:hover[b-iw5kojbmuk] {
        background: rgba(255, 255, 255, 0.14);
    }


/* =========================================================
   NAVIGATION
   ========================================================= */

.pdks-shell-nav[b-iw5kojbmuk] {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    padding: 0.6rem 0.45rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.pdks-shell-nav-group-title[b-iw5kojbmuk] {
    margin: 0.7rem 0.55rem 0.3rem;
    overflow: hidden;
    color: #64748b;
    font-size: 0.67rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
}

    .pdks-shell-nav-group-title:first-child[b-iw5kojbmuk] {
        margin-top: 0.25rem;
    }

.pdks-shell-nav-item[b-iw5kojbmuk] {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.12rem 0;
    padding: 0.46rem 0.65rem;
    border: 0;
    border-radius: 0.45rem;
    background: transparent;
    color: #cbd5e1;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 130ms ease, color 130ms ease;
}

    .pdks-shell-nav-item:hover[b-iw5kojbmuk] {
        background: rgba(255, 255, 255, 0.07);
        color: #ffffff;
        text-decoration: none;
    }

.pdks-shell-nav-icon[b-iw5kojbmuk] {
    width: 22px;
    min-width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.pdks-shell-nav-label[b-iw5kojbmuk] {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pdks-shell-nav-disabled[b-iw5kojbmuk] {
    opacity: 0.42;
    cursor: default;
}

    .pdks-shell-nav-disabled:hover[b-iw5kojbmuk] {
        background: transparent;
        color: #cbd5e1;
    }


/* =========================================================
   COLLAPSED SIDEBAR
   ========================================================= */

.pdks-shell-collapsed .pdks-shell-brand[b-iw5kojbmuk] {
    justify-content: center;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.pdks-shell-collapsed .pdks-shell-nav[b-iw5kojbmuk] {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.pdks-shell-collapsed .pdks-shell-nav-item[b-iw5kojbmuk] {
    justify-content: center;
    gap: 0;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.pdks-shell-collapsed .pdks-shell-user[b-iw5kojbmuk] {
    justify-content: center;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}


/* =========================================================
   USER FOOTER
   ========================================================= */

.pdks-shell-user[b-iw5kojbmuk] {
    min-width: 0;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.08);
}

.pdks-shell-user-avatar[b-iw5kojbmuk] {
    width: 36px;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
    font-size: 1rem;
}

.pdks-shell-user-info[b-iw5kojbmuk] {
    min-width: 0;
    flex: 1 1 auto;
}

.pdks-shell-user-name[b-iw5kojbmuk] {
    overflow: hidden;
    color: #f8fafc;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pdks-shell-user-role[b-iw5kojbmuk] {
    margin-top: 0.15rem;
    overflow: hidden;
    color: #94a3b8;
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =========================================================
   MAIN
   ========================================================= */

.pdks-shell-main[b-iw5kojbmuk] {
    width: 100%;
    min-width: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.pdks-shell-content[b-iw5kojbmuk] {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    padding: 0.75rem;
}


/* =========================================================
   MOBILE HEADER
   ========================================================= */

.pdks-shell-mobile-header[b-iw5kojbmuk] {
    display: none;
}

.pdks-shell-mobile-menu[b-iw5kojbmuk] {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 0.45rem;
    background: #eef2f7;
    color: #334155;
}

    .pdks-shell-mobile-menu:hover[b-iw5kojbmuk] {
        background: #e2e8f0;
    }

.pdks-shell-mobile-brand[b-iw5kojbmuk] {
    min-width: 0;
    flex: 1 1 auto;
}

.pdks-shell-mobile-brand-name[b-iw5kojbmuk] {
    overflow: hidden;
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.025em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pdks-shell-mobile-brand-company[b-iw5kojbmuk] {
    margin-top: 0.1rem;
    overflow: hidden;
    color: #64748b;
    font-size: 0.65rem;
    line-height: 1.1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pdks-shell-mobile-user[b-iw5kojbmuk] {
    min-width: 0;
    max-width: 180px;
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #475569;
}

.pdks-shell-mobile-user-icon[b-iw5kojbmuk] {
    width: 30px;
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef2f7;
    color: #334155;
}

.pdks-shell-mobile-user-name[b-iw5kojbmuk] {
    min-width: 0;
    overflow: hidden;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =========================================================
   MOBILE BACKDROP
   ========================================================= */

.pdks-shell-backdrop[b-iw5kojbmuk] {
    position: fixed;
    inset: 0;
    display: block;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1090;
    transition: opacity 160ms ease, visibility 160ms ease;
}


/* =========================================================
   LOADING
   ========================================================= */

.pdks-loading[b-iw5kojbmuk] {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #f8fafc;
    color: #475569;
    font-size: 0.82rem;
}


/* =========================================================
   TABLET / MOBILE
   <= 992px
   ========================================================= */

@media (max-width: 991.98px) {

    .pdks-shell[b-iw5kojbmuk],
    .pdks-shell.pdks-shell-collapsed[b-iw5kojbmuk] {
        display: block;
        width: 100%;
        min-width: 0;
        background: #f5f7fb;
    }

    /* -----------------------------------------------------
       SIDEBAR → MOBILE DRAWER
       ----------------------------------------------------- */

    .pdks-shell-sidebar[b-iw5kojbmuk] {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(86vw, 300px);
        max-width: 300px;
        height: 100dvh;
        transform: translateX(-103%);
        box-shadow: 10px 0 30px rgba(15, 23, 42, 0.18);
        transition: transform 180ms ease;
        z-index: 1200;
    }

    .pdks-shell-mobile-open .pdks-shell-sidebar[b-iw5kojbmuk] {
        transform: translateX(0);
    }

    /* -----------------------------------------------------
       BACKDROP
       ----------------------------------------------------- */

    .pdks-shell-mobile-open .pdks-shell-backdrop[b-iw5kojbmuk] {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* -----------------------------------------------------
       DESKTOP / MOBILE BUTTONS
       ----------------------------------------------------- */

    .pdks-shell-desktop-toggle[b-iw5kojbmuk] {
        display: none;
    }

    .pdks-shell-mobile-close[b-iw5kojbmuk] {
        display: inline-flex;
    }

    /* -----------------------------------------------------
       SIDEBAR
       ----------------------------------------------------- */

    .pdks-shell-brand[b-iw5kojbmuk],
    .pdks-shell-collapsed .pdks-shell-brand[b-iw5kojbmuk] {
        justify-content: flex-start;
        padding-left: 0.75rem;
        padding-right: 0.65rem;
    }

    .pdks-shell-nav[b-iw5kojbmuk],
    .pdks-shell-collapsed .pdks-shell-nav[b-iw5kojbmuk] {
        padding: 0.6rem 0.45rem;
    }

    .pdks-shell-nav-item[b-iw5kojbmuk],
    .pdks-shell-collapsed .pdks-shell-nav-item[b-iw5kojbmuk] {
        justify-content: flex-start;
        gap: 0.7rem;
        padding: 0.5rem 0.65rem;
    }

    .pdks-shell-user[b-iw5kojbmuk],
    .pdks-shell-collapsed .pdks-shell-user[b-iw5kojbmuk] {
        justify-content: flex-start;
        padding: 0.65rem;
    }

    /* -----------------------------------------------------
       MAIN
       ----------------------------------------------------- */

    .pdks-shell-main[b-iw5kojbmuk] {
        width: 100%;
        min-height: 100dvh;
    }

    /* -----------------------------------------------------
       MOBILE HEADER
       ----------------------------------------------------- */

    .pdks-shell-mobile-header[b-iw5kojbmuk] {
        position: sticky;
        top: 0;
        width: 100%;
        min-width: 0;
        min-height: 52px;
        display: flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.45rem 0.65rem;
        border-bottom: 1px solid #e2e8f0;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
        z-index: 1000;
    }

    .pdks-shell-content[b-iw5kojbmuk] {
        padding: 0.65rem;
    }
}


/* =========================================================
   MOBILE
   <= 768px
   ========================================================= */

@media (max-width: 767.98px) {

    .pdks-shell-sidebar[b-iw5kojbmuk] {
        width: min(88vw, 290px);
        max-width: 290px;
    }

    .pdks-shell-content[b-iw5kojbmuk] {
        padding: 0.55rem;
    }

    .pdks-shell-mobile-header[b-iw5kojbmuk] {
        padding: 0.4rem 0.55rem;
    }

    .pdks-shell-mobile-user[b-iw5kojbmuk] {
        max-width: 135px;
    }
}


/* =========================================================
   SMALL MOBILE
   <= 576px
   ========================================================= */

@media (max-width: 575.98px) {

    .pdks-shell-sidebar[b-iw5kojbmuk] {
        width: min(90vw, 280px);
        max-width: 280px;
    }

    .pdks-shell-content[b-iw5kojbmuk] {
        padding: 0.45rem;
    }

    .pdks-shell-mobile-header[b-iw5kojbmuk] {
        min-height: 50px;
        gap: 0.45rem;
        padding: 0.35rem 0.45rem;
    }

    .pdks-shell-mobile-menu[b-iw5kojbmuk] {
        width: 34px;
        min-width: 34px;
        height: 34px;
    }

    .pdks-shell-mobile-user[b-iw5kojbmuk] {
        max-width: none;
    }

    .pdks-shell-mobile-user-name[b-iw5kojbmuk] {
        display: none;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 399.98px) {

    .pdks-shell-sidebar[b-iw5kojbmuk] {
        width: 92vw;
        max-width: 270px;
    }

    .pdks-shell-content[b-iw5kojbmuk] {
        padding: 0.4rem 0.35rem;
    }

    .pdks-shell-mobile-brand-company[b-iw5kojbmuk] {
        display: none;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .pdks-shell[b-iw5kojbmuk],
    .pdks-shell-sidebar[b-iw5kojbmuk],
    .pdks-shell-backdrop[b-iw5kojbmuk],
    .pdks-shell-toggle[b-iw5kojbmuk] {
        transition: none;
    }
}


/* =========================================================
   BLAZOR ERROR UI
   ========================================================= */

#blazor-error-ui[b-iw5kojbmuk] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    display: none;
    width: 100%;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    z-index: 2000;
}

    #blazor-error-ui .dismiss[b-iw5kojbmuk] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-0vz1kn9rox],
.components-reconnect-repeated-attempt-visible[b-0vz1kn9rox],
.components-reconnect-failed-visible[b-0vz1kn9rox],
.components-pause-visible[b-0vz1kn9rox],
.components-resume-failed-visible[b-0vz1kn9rox],
.components-rejoining-animation[b-0vz1kn9rox] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-0vz1kn9rox],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-0vz1kn9rox],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-0vz1kn9rox],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-0vz1kn9rox],
#components-reconnect-modal.components-reconnect-retrying[b-0vz1kn9rox],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-0vz1kn9rox],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-0vz1kn9rox],
#components-reconnect-modal.components-reconnect-failed[b-0vz1kn9rox],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-0vz1kn9rox] {
    display: block;
}


#components-reconnect-modal[b-0vz1kn9rox] {
    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-0vz1kn9rox 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-0vz1kn9rox 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-0vz1kn9rox 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-0vz1kn9rox]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-0vz1kn9rox 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-0vz1kn9rox {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-0vz1kn9rox {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-0vz1kn9rox {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-0vz1kn9rox] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-0vz1kn9rox] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-0vz1kn9rox] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-0vz1kn9rox] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-0vz1kn9rox] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-0vz1kn9rox] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-0vz1kn9rox] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-0vz1kn9rox 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-0vz1kn9rox] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-0vz1kn9rox {
    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;
    }
}
