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

main[b-wnwr9fuyvb] {
    flex: 1;
    background-color: #f0f2f5;
    min-height: 100vh;
}

.sidebar[b-wnwr9fuyvb] {
    background-color: #1e2a3a;
    box-shadow: 2px 0 8px rgba(0,0,0,0.3);
}

.top-row[b-wnwr9fuyvb] {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

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

    .top-row[b-wnwr9fuyvb]  a:hover, .top-row[b-wnwr9fuyvb]  .btn-link:hover {
        color: #1e2a3a;
        text-decoration: none;
    }

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

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

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

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

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

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

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

#blazor-error-ui[b-wnwr9fuyvb] {
    color-scheme: light only;
    background: #fff3cd;
    border-top: 1px solid #ffc107;
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: 0.9rem;
}

    #blazor-error-ui .dismiss[b-wnwr9fuyvb] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* ── Sidebar header / logotyp ─────────────────────────────── */
.sidebar-header[b-k2ibw3t6rv] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo[b-k2ibw3t6rv] {
    color: #f97316;
    flex-shrink: 0;
}

.sidebar-title[b-k2ibw3t6rv] {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sidebar-title-main[b-k2ibw3t6rv] {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.sidebar-title-sub[b-k2ibw3t6rv] {
    font-size: 0.7rem;
    font-weight: 400;
    color: #94a3b8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Avdelningsväljare ────────────────────────────────────── */
.avd-selector[b-k2ibw3t6rv] {
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.avd-selector-label[b-k2ibw3t6rv] {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #475569;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.avd-select[b-k2ibw3t6rv] {
    width: 100%;
    background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.82rem;
    padding: 0.45rem 0.6rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
}

.avd-select:focus[b-k2ibw3t6rv] {
    border-color: #f97316;
}

.avd-select option[b-k2ibw3t6rv] {
    background: #1e2a3a;
    color: #e2e8f0;
}

.avd-active-badge[b-k2ibw3t6rv] {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 0.15em 0.6em;
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ── Sektionsetikett ──────────────────────────────────────── */
.nav-section-label[b-k2ibw3t6rv] {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #475569;
    padding: 1.25rem 1.25rem 0.4rem;
    text-transform: uppercase;
}

/* ── Nav-länkar ───────────────────────────────────────────── */
.nav-item[b-k2ibw3t6rv] {
    padding: 0.15rem 0.75rem;
}

.nav-item[b-k2ibw3t6rv]  .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
    background: none;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    width: 100%;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.nav-item[b-k2ibw3t6rv]  .nav-link:hover {
    background-color: rgba(255,255,255,0.06);
    color: #e2e8f0;
}

.nav-item[b-k2ibw3t6rv]  a.active {
    background-color: rgba(249, 115, 22, 0.15);
    color: #f97316;
    font-weight: 600;
}

.nav-icon[b-k2ibw3t6rv] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    flex-shrink: 0;
    opacity: 0.85;
}

/* ── Sidebar footer ───────────────────────────────────────── */
.sidebar-footer[b-k2ibw3t6rv] {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    padding: 0 1.25rem;
}

.sidebar-version[b-k2ibw3t6rv] {
    font-size: 0.7rem;
    color: #334155;
}

/* ── Mobil-toggle ─────────────────────────────────────────── */
.navbar-toggler[b-k2ibw3t6rv] {
    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);
    border-radius: 6px;
}

.navbar-toggler:checked[b-k2ibw3t6rv] {
    background-color: rgba(255,255,255,0.2);
}

.nav-scrollable[b-k2ibw3t6rv] {
    display: none;
    position: relative;
    min-height: calc(100vh - 80px);
}

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

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

    .nav-scrollable[b-k2ibw3t6rv] {
        display: block;
        height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

/* Anvandarruta i sidfoten */
.sidebar-anvandare[b-k2ibw3t6rv] {
    margin-top: auto;
    padding: .85rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-anvandare-namn[b-k2ibw3t6rv] {
    font-size: .85rem;
    color: #e6eaef;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-anvandare-roll[b-k2ibw3t6rv] {
    font-size: .72rem;
    color: #8b96a3;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: .1rem;
}

/* Diskret lank, inte en knapp: att byta losenord ar en sallsynt handling
   och ska inte konkurrera visuellt med Logga ut. */
.sidebar-byt-losenord[b-k2ibw3t6rv] {
    display: inline-block;
    margin-top: .45rem;
    font-size: .76rem;
    color: #8b96a3;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.sidebar-byt-losenord:hover[b-k2ibw3t6rv] {
    color: #e6eaef;
    border-bottom-color: rgba(255, 255, 255, .25);
}

.sidebar-logga-ut[b-k2ibw3t6rv] {
    margin-top: .6rem;
    width: 100%;
    padding: .35rem .5rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 5px;
    background: transparent;
    color: #b6c0cb;
    font-size: .8rem;
    cursor: pointer;
}

.sidebar-logga-ut:hover[b-k2ibw3t6rv] {
    background: rgba(255, 255, 255, .07);
    color: #e6eaef;
}

/* Sökscope vidare än affärsscope */
.avd-sokscope[b-k2ibw3t6rv] {
    margin-top: .4rem;
    font-size: .72rem;
    color: #7ec699;
    letter-spacing: .02em;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-g4ewn62w68],
.components-reconnect-repeated-attempt-visible[b-g4ewn62w68],
.components-reconnect-failed-visible[b-g4ewn62w68],
.components-pause-visible[b-g4ewn62w68],
.components-resume-failed-visible[b-g4ewn62w68],
.components-rejoining-animation[b-g4ewn62w68] {
    display: none;
}

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


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

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

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

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

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

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

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

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

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