/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ===== App Root ===== */

.app-root[b-67cymyr85w] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 0;
}

/* ===== Header ===== */

.main-header[b-67cymyr85w] {
    height: 68px;
    z-index: 20;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
    flex-shrink: 0;
    position: relative;
}

.header-logo[b-67cymyr85w] {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo-img[b-67cymyr85w] {
    height: 60px;
    width: auto;
    image-rendering: optimizeQuality;
    -webkit-font-smoothing: antialiased;
    shape-rendering: geometricPrecision;
}

/* Die Wortmarke ist mit 5:1 deutlich breiter als das Monogramm (3:1) und
   traegt zusaetzlich den Balken mit der Zweitzeile. Auf 60 px Hoehe wuerde sie
   ueber 300 px breit und erdrueckt die Kopfzeile - 38 px ergeben rund 192 px
   Breite und lassen den Seitentitel daneben noch atmen. */
.header-logo-wortmarke[b-67cymyr85w] {
    height: 38px;
}


.header-title[b-67cymyr85w] {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    white-space: nowrap;
}

.header-spacer[b-67cymyr85w] {
    flex: 1;
}

.header-user[b-67cymyr85w] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.375rem 0.5rem;
    border-radius: var(--radius);
    position: relative;
    user-select: none;
}

.header-user:hover[b-67cymyr85w] {
    background-color: var(--muted);
}

.header-user-name[b-67cymyr85w] {
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
}

.dropdown-overlay[b-67cymyr85w] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 49;
}

.header-dropdown[b-67cymyr85w] {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.375rem;
    padding: 0.375rem 0;
    background-color: var(--popover);
    color: var(--popover-foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 240px;
    z-index: 50;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.header-dropdown-item[b-67cymyr85w] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    color: var(--foreground);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.header-dropdown-item:hover[b-67cymyr85w] {
    background-color: var(--muted);
    text-decoration: none;
}

.header-dropdown-separator[b-67cymyr85w] {
    height: 1px;
    background-color: var(--border);
    margin: 0.25rem 0;
}

.header-dropdown-item-danger[b-67cymyr85w] {
    color: var(--destructive);
}

.header-dropdown-item-danger:hover[b-67cymyr85w] {
    background-color: #fee2e2;
    color: var(--destructive);
}

/* ===== Layout with sidebar ===== */

[b-67cymyr85w] .layout {
    display: flex;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

[b-67cymyr85w] .sidebar {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.14);
}

.sidebar-header[b-67cymyr85w] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background-color: #ffffff;
    border-bottom: 1px solid var(--sidebar-border);
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.sidebar-header-collapsed[b-67cymyr85w] {
    justify-content: center;
    padding: 1rem 0.5rem;
}

.sidebar-header-collapsed .sidebar-header-label[b-67cymyr85w] {
    display: none;
}

.sidebar-header-label[b-67cymyr85w] {
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--foreground);
}

.sidebar-toggle-btn[b-67cymyr85w] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: var(--muted-foreground);
    cursor: pointer;
    border-radius: var(--radius);
    transition: background-color 0.15s ease;
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover[b-67cymyr85w] {
    background-color: var(--muted);
    color: var(--foreground);
}

.sidebar-nav[b-67cymyr85w] {
    flex: 1;
    overflow-y: auto;
}

/* ===== Sidebar App Info ===== */

.sidebar-app-info[b-67cymyr85w] {
    padding: 1rem 1.5rem;
    background-color: var(--card);
    border-top: 1px solid var(--border);
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-text[b-67cymyr85w] {
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.1s ease;
}

.sidebar-version[b-67cymyr85w] {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

/* ===== Sidebar Resize Handle ===== */

.sidebar-resize-handle[b-67cymyr85w] {
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    cursor: col-resize;
    z-index: 15;
    transition: background-color 0.15s ease;
}

.sidebar-resize-handle:hover[b-67cymyr85w] {
    background-color: rgba(12, 93, 166, 0.5);
}

/* ===== Main Content ===== */

.main-content[b-67cymyr85w] {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
}

[b-67cymyr85w] .action-bar {
    z-index: 5;
    flex-shrink: 0;
}

.action-bar-spacer[b-67cymyr85w] {
    flex: 1;
}

[b-67cymyr85w] .ablage-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    min-height: 2.5rem;
    flex: 0 1 auto;
    overflow: hidden;
}

[b-67cymyr85w] .ablage-title-name {
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
    margin: 0;
    padding: 0;
    line-height: 1.2;
    border: none;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[b-67cymyr85w] .ablage-title-pfad {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    line-height: 1;
    height: 0.6875rem;
    min-width: 0;
}

[b-67cymyr85w] .ablage-title-pfad-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: monospace;
}

[b-67cymyr85w] .ablage-pfad-copy {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted-foreground);
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    flex-shrink: 0;
    height: 0.6875rem;
    min-height: 0;
    overflow: visible;
    line-height: 0;
    transition: color 0.15s ease;
}

[b-67cymyr85w] .ablage-pfad-copy:hover {
    color: var(--primary);
}

[b-67cymyr85w] .ablage-pfad-copy svg {
    width: 13px;
    height: 13px;
    overflow: visible;
}

[b-67cymyr85w] .content-area {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}

/* Bereichs-Modus der Sidebar (STANDARDS.md 3.18). Der Kopf traegt dann den
   Bereichsnamen und die Markenfarbe statt des weissen Streifens - damit ist
   ohne Lesen erkennbar, dass die Navigation gerade eine andere ist.
   Der Sidebar-Fuss bleibt weiss; die beiden Streifen spiegeln sich hier
   bewusst NICHT, weil nur der Kopf den Bereich benennt. */
.sidebar-header-bereich[b-67cymyr85w] {
    background-color: var(--primary);
    border-bottom-color: var(--primary);
}

.sidebar-header-bereich .sidebar-header-label[b-67cymyr85w] {
    color: var(--primary-foreground);
}

.sidebar-header-bereich .sidebar-toggle-btn[b-67cymyr85w] {
    color: var(--primary-foreground);
}

.sidebar-header-bereich .sidebar-toggle-btn:hover[b-67cymyr85w] {
    background-color: color-mix(in srgb, #000 12%, transparent);
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.nav-menu[b-eih6syys1n] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.5rem 0;
    min-height: 100%;
}

/* Bereichs-Nav (§3.18): schiebt Exit-Link ans untere Ende */
.nav-bottom[b-eih6syys1n] {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

[b-eih6syys1n] .nav-link-exit {
    color: var(--sidebar-foreground);
    opacity: 0.75;
}

[b-eih6syys1n] .nav-link-exit:hover {
    opacity: 1;
}

/* Icon darf nicht schrumpfen */
[b-eih6syys1n] .nav-icon {
    flex-shrink: 0;
}

/* Text wird per overflow hidden abgeschnitten wenn Sidebar schrumpft.
   ::deep, damit auch NavLinks in Unterkomponenten (NavSubMenu, NavTreeNode)
   erfasst werden. */
[b-eih6syys1n] .nav-link-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
    transition: opacity 0.15s ease;
}

/* Collapsed: Text unsichtbar, Icons zentriert */
.nav-collapsed[b-eih6syys1n]  .nav-link-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.nav-collapsed[b-eih6syys1n]  .nav-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    gap: 0;
}

/* Separator between Ablagen and admin links */
.nav-separator[b-eih6syys1n] {
    height: 1px;
    background-color: var(--sidebar-border);
    margin: 0.5rem 1rem;
}

/* ===== Nav-SubMenu (flache Untermenue-Gruppe) ===== */

[b-eih6syys1n] .nav-submenu {
    display: flex;
    flex-direction: column;
}

/* Toggle-only Header (ohne Href) — ganze Zeile klappt auf/zu */
[b-eih6syys1n] .nav-submenu-header {
    cursor: pointer;
    user-select: none;
}

/* Split-Header (mit Href): Link links + Chevron-Button rechts in einer Zeile */
[b-eih6syys1n] .nav-submenu-header-row {
    display: flex;
    align-items: stretch;
}

[b-eih6syys1n] .nav-submenu-header-link {
    flex: 1;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

[b-eih6syys1n] .nav-submenu-toggle {
    background: none;
    border: none;
    color: var(--sidebar-foreground);
    cursor: pointer;
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: background-color 0.15s ease;
    flex-shrink: 0;
}

[b-eih6syys1n] .nav-submenu-toggle:hover {
    background-color: var(--sidebar-accent);
    color: var(--sidebar-accent-foreground);
}

[b-eih6syys1n] .nav-submenu-chevron {
    margin-left: auto;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

[b-eih6syys1n] .nav-submenu-chevron-open {
    transform: rotate(90deg);
}

/* Aufgeklappter Kinder-Block — dunklerer Hintergrund unterstreicht die Gruppe */
[b-eih6syys1n] .nav-submenu-children {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.25rem 0;
    background-color: var(--sidebar-submenu);
    border-top: 1px solid var(--sidebar-border);
    border-bottom: 1px solid var(--sidebar-border);
}

/* Kinder eingerueckt — Abstand passt zur Icon-Breite im Header */
[b-eih6syys1n] .nav-submenu-children .nav-link {
    padding-left: 2.75rem;
    border-radius: 0;
}

/* Collapsed Sidebar: Kinder, Chevron, Toggle-Button ausblenden; Header bleibt als Icon */
.nav-collapsed[b-eih6syys1n]  .nav-submenu-children,
.nav-collapsed[b-eih6syys1n]  .nav-submenu-chevron,
.nav-collapsed[b-eih6syys1n]  .nav-submenu-toggle {
    display: none;
}

.nav-collapsed[b-eih6syys1n]  .nav-submenu-header-link {
    border-radius: var(--radius);
}

/* /Components/Layout/NavTreeNode.razor.rz.scp.css */
/* Tree-spezifische Klassen sind global in app.css.
   Diese Datei bleibt als Scope-Marker fuer kuenftige Node-lokale Tweaks. */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-qu7e7gnzhe],
.components-reconnect-repeated-attempt-visible[b-qu7e7gnzhe],
.components-reconnect-failed-visible[b-qu7e7gnzhe],
.components-pause-visible[b-qu7e7gnzhe],
.components-resume-failed-visible[b-qu7e7gnzhe],
.components-rejoining-animation[b-qu7e7gnzhe] {
    display: none;
}

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


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

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

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

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

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

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

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

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

@keyframes components-rejoining-animation-b-qu7e7gnzhe {
    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;
    }
}
/* /Components/Pages/Administration.razor.rz.scp.css */
/* Kachel-Raster der Bereichs-Landing (S3-STANDARDS §3.18). Übernommen aus der
   Showcase, mit zwei Abweichungen: Schriftgewicht 500 statt 600 (STANDARDS erlaubt
   keine Bolds) und die Primary-Tönung über color-mix statt hart kodiertem RGBA. */

.section-tiles[b-xk2id2w0oe] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.section-tile[b-xk2id2w0oe] {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}

.section-tile:hover[b-xk2id2w0oe] {
    border-color: var(--primary);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 12%, transparent);
    text-decoration: none;
}

.section-tile:active[b-xk2id2w0oe] {
    transform: translateY(1px);
}

.section-tile-icon[b-xk2id2w0oe] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    color: var(--primary);
    flex-shrink: 0;
}

.section-tile-body[b-xk2id2w0oe] {
    flex: 1;
    min-width: 0;
}

.section-tile-title[b-xk2id2w0oe] {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.section-tile-desc[b-xk2id2w0oe] {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.4;
}

.section-tile-chevron[b-xk2id2w0oe] {
    color: var(--muted-foreground);
    flex-shrink: 0;
}

.section-tile:hover .section-tile-chevron[b-xk2id2w0oe] {
    color: var(--primary);
}
/* /Components/Shared/Card.razor.rz.scp.css */
.fc-card[b-urnwha9gtm] {
    display: flex;
    flex-direction: column;
}

.fc-card-header[b-urnwha9gtm] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-weight: var(--font-weight-medium);
}

.fc-card-header-spacer[b-urnwha9gtm] {
    flex: 1;
}

.fc-card-body[b-urnwha9gtm] {
    padding: 1.25rem;
}
