/* /Components/Layout/AppLayout.razor.rz.scp.css */
.ih-app[b-pxpp5rveg5] {
    display: flex;
    min-height: 100vh;
}

/* Seitenleiste hell wie bei Stripe: weiss, feine Linie, Farbe nur bei der aktiven Seite. */
.ih-sidebar[b-pxpp5rveg5] {
    width: 236px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--ih-border);
    display: flex;
    flex-direction: column;
    padding: 0.9rem 0 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

[b-pxpp5rveg5] .ih-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--ih-heading-font);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    color: var(--ih-navy);
    padding: 0.35rem 1.2rem 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--ih-border);
}

    [b-pxpp5rveg5] .ih-nav-brand-mark {
        width: 26px;
        height: 30px;
        flex-shrink: 0;
    }

    /* Eigenes Hotel-Logo statt des osotel-Zeichens — Logos sind meist breiter als hoch,
       daher bewusst nicht auf ein kleines Quadrat begrenzen. */
    [b-pxpp5rveg5] .ih-nav-brand-logo {
        padding: 0.35rem 1.2rem 1rem;
        justify-content: flex-start;
    }

    [b-pxpp5rveg5] .ih-nav-brand-logo img {
        max-width: 100%;
        max-height: 44px;
        object-fit: contain;
    }

[b-pxpp5rveg5] .ih-nav {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

[b-pxpp5rveg5] .ih-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #414552;
    padding: 0.4rem 0.7rem;
    margin: 0.05rem 0.6rem;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 0.4rem;
    transition: background-color 0.12s ease, color 0.12s ease;
}

    [b-pxpp5rveg5] .ih-nav-link i {
        font-size: 1rem;
        color: var(--ih-primary);
        width: 1.1rem;
        text-align: center;
    }

    [b-pxpp5rveg5] .ih-nav-link:hover {
        background-color: #f2f4f7;
        color: var(--ih-navy);
        text-decoration: none;
    }

    [b-pxpp5rveg5] .ih-nav-link.active {
        background-color: var(--ih-primary-light);
        color: var(--ih-primary-dark);
        font-weight: 600;
    }

        [b-pxpp5rveg5] .ih-nav-link.active i {
            color: var(--ih-primary);
        }

    /* Zähler für Neues (z.B. Online-Check-ins), rechts im Menüpunkt. */
    [b-pxpp5rveg5] .ih-nav-count {
        margin-left: auto;
        min-width: 1.25rem;
        padding: 0 0.35rem;
        border-radius: 999px;
        background-color: var(--ih-primary);
        color: #fff;
        font-size: 0.7rem;
        font-weight: 600;
        line-height: 1.25rem;
        text-align: center;
    }


/* Kategorien im Menü in der Themenfarbe, deutlich grösser als die Seiten darunter. Ein Klick
   klappt die Seiten der Kategorie zu bzw. auf (js/nav-menu.js, Zustand im localStorage). */
[b-pxpp5rveg5] .ih-nav-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 1.2rem);
    margin: 0.75rem 0.6rem 0.15rem;
    padding: 0.35rem 0.7rem;
    border: 0;
    border-radius: 0.4rem;
    background: none;
    color: var(--ih-primary-dark);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

    [b-pxpp5rveg5] .ih-nav-section:hover {
        background-color: #f2f4f7;
    }

    [b-pxpp5rveg5] .ih-nav-section:focus-visible {
        outline: 2px solid var(--ih-primary);
        outline-offset: 1px;
    }

    [b-pxpp5rveg5] .ih-nav-section i {
        font-size: 0.75rem;
        transition: transform 0.15s ease;
    }

[b-pxpp5rveg5] .ih-nav-group.collapsed .ih-nav-section i {
    transform: rotate(-90deg);
}

[b-pxpp5rveg5] .ih-nav-group.collapsed .ih-nav-link {
    display: none;
}

[b-pxpp5rveg5] .ih-nav-footer {
    margin-top: auto;
    padding: 1rem 1.2rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: #8792a2;
}

    [b-pxpp5rveg5] .ih-nav-footer img {
        height: 14px;
    }

.ih-app-content[b-pxpp5rveg5] {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ih-topbar[b-pxpp5rveg5] {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ih-border);
    padding: 0.55rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
}

.ih-topbar-hotel[b-pxpp5rveg5] {
    font-family: var(--ih-heading-font);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ih-navy);
}

.ih-topbar-user[b-pxpp5rveg5] {
    color: var(--ih-text-muted);
    font-size: 0.82rem;
}

.ih-main[b-pxpp5rveg5] {
    padding: 1.5rem 1.75rem 2.5rem;
    flex-grow: 1;
}

@media (max-width: 700px) {
    .ih-app[b-pxpp5rveg5] {
        flex-direction: column;
    }

    .ih-sidebar[b-pxpp5rveg5] {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--ih-border);
    }

    .ih-topbar[b-pxpp5rveg5] {
        padding: 0.55rem 1rem;
    }

    .ih-main[b-pxpp5rveg5] {
        padding: 1rem;
    }
}

[b-pxpp5rveg5] .ih-nav-brand .os-wordmark {
    font-size: 1.7rem;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* #blazor-error-ui wird jetzt global in wwwroot/app.css gestylt (siehe dortiger Kommentar) —
   nicht hier scoped, weil das Element auch von AppLayout.razor gerendert wird. */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-b4khbst7nx],
.components-reconnect-repeated-attempt-visible[b-b4khbst7nx],
.components-reconnect-failed-visible[b-b4khbst7nx],
.components-pause-visible[b-b4khbst7nx],
.components-resume-failed-visible[b-b4khbst7nx],
.components-rejoining-animation[b-b4khbst7nx] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-b4khbst7nx],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-b4khbst7nx],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-b4khbst7nx],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-b4khbst7nx],
#components-reconnect-modal.components-reconnect-retrying[b-b4khbst7nx],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-b4khbst7nx],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-b4khbst7nx],
#components-reconnect-modal.components-reconnect-failed[b-b4khbst7nx],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-b4khbst7nx] {
    display: block;
}


#components-reconnect-modal[b-b4khbst7nx] {
    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-b4khbst7nx 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-b4khbst7nx 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-b4khbst7nx 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-b4khbst7nx]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-b4khbst7nx 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-b4khbst7nx {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-b4khbst7nx {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-b4khbst7nx {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-b4khbst7nx] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-b4khbst7nx] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-b4khbst7nx] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-b4khbst7nx] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-b4khbst7nx] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-b4khbst7nx] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-b4khbst7nx] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-b4khbst7nx 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-b4khbst7nx] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-b4khbst7nx {
    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;
    }
}
