/* /Components/Layout/LoginLayout.razor.rz.scp.css */
.login-page[b-3km2w7zf0e] {
    min-height: 100vh;
    background: linear-gradient(135deg, #1F2933 0%, #2C3845 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-page-inner[b-3km2w7zf0e] {
    width: 100%;
    max-width: 460px;
}

[b-3km2w7zf0e] .login-card {
    background: #FAFAF7;
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    padding: 2.5rem 2.5rem 2rem;
}

@media (max-width: 640px) {
    .login-page[b-3km2w7zf0e] {
        padding: 1rem 0.75rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    [b-3km2w7zf0e] .login-card {
        padding: 1.75rem 1.5rem 1.5rem;
        border-radius: 8px;
    }

    [b-3km2w7zf0e] .login-card h1 {
        font-size: 1.375rem;
    }

    [b-3km2w7zf0e] .form-row input {
        min-height: 44px;
        font-size: 1rem;
    }

    [b-3km2w7zf0e] .btn-primary {
        min-height: 48px;
        font-size: 1rem;
    }
}

[b-3km2w7zf0e] .login-card h1 {
    color: #1A1815;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    letter-spacing: -0.01em;
}

[b-3km2w7zf0e] .login-card .subtitle {
    color: #7A7670;
    font-size: 0.9375rem;
    margin: 0 0 1.5rem;
}

[b-3km2w7zf0e] .login-card .email-line {
    color: #1A1815;
    margin-bottom: 1.25rem;
}

[b-3km2w7zf0e] .form-row {
    margin-bottom: 1.25rem;
}

[b-3km2w7zf0e] .form-row label {
    display: block;
    font-size: 0.8125rem;
    color: #1A1815;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

[b-3km2w7zf0e] .form-row input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
    border: 1px solid #C7CCD3;
    border-radius: 4px;
    background: white;
    color: #1A1815;
    transition: border-color 120ms ease, box-shadow 120ms ease;
    box-sizing: border-box;
}

[b-3km2w7zf0e] .form-row input:focus {
    outline: none;
    border-color: #1F6FEB;
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.15);
}

[b-3km2w7zf0e] .form-row .validation-message {
    color: #8B2A1F;
    font-size: 0.8125rem;
    margin-top: 0.375rem;
}

[b-3km2w7zf0e] .btn-primary {
    width: 100%;
    padding: 0.6875rem;
    background: #1A1815;
    color: #FAFAF7;
    border: none;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 120ms ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

[b-3km2w7zf0e] .btn-primary:hover {
    background: #2C2A26;
}

[b-3km2w7zf0e] .alert-error {
    background: #FCEBE9;
    color: #8B2A1F;
    border: 1px solid #E8A89F;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

[b-3km2w7zf0e] .totp-setup-grid {
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    background: #F4F5F7;
    border-radius: 4px;
}

[b-3km2w7zf0e] .totp-setup-grid label {
    display: block;
    font-size: 0.75rem;
    color: #7A7670;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

[b-3km2w7zf0e] .totp-setup-grid code {
    display: block;
    background: white;
    color: #1A1815;
    padding: 0.5rem 0.625rem;
    border-radius: 3px;
    font-size: 0.8125rem;
    word-break: break-all;
    font-family: SFMono-Regular, Menlo, Consolas, monospace;
    border: 1px solid #C7CCD3;
}

[b-3km2w7zf0e] .totp-setup-uri {
    margin-bottom: 0.75rem;
}

#blazor-error-ui[b-3km2w7zf0e] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
/*
 * Layout-Shell:
 *   Desktop (>=1024px): Two-Column-Grid (Sidebar + Content). Top-Bar
 *     versteckt, Backdrop versteckt.
 *   Tablet/Phone (<1024px): Single-Column. Top-Bar mit Hamburger + Brand
 *     sichtbar. Sidebar wird per JavaScript-Klasse (.sidebar-mobile-open)
 *     als Off-Canvas-Drawer eingeblendet, Backdrop ueberlagert den Content.
 *
 * --sidebar-width steuert nur den Desktop-Modus (240px expanded, 68px
 * collapsed). Auf Mobile ist die Sidebar fixiert positioniert und ihre
 * Breite ist immer 280px (etwas breiter als Desktop fuer Touch-Komfort).
 */

.layout-shell[b-7c5we0zuxy] {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-width, 240px) 1fr;
    grid-template-rows: 1fr;
    background-color: #F4F5F7;
    transition: grid-template-columns 160ms ease;
}

.layout-shell.layout-shell-collapsed[b-7c5we0zuxy] {
    --sidebar-width: 68px;
}

.page-content[b-7c5we0zuxy] {
    padding: 2rem 2.5rem;
    overflow-x: auto;
    min-width: 0;
}

[b-7c5we0zuxy] h1 {
    color: #1A1815;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0 0 0.5rem;
}

[b-7c5we0zuxy] .lead {
    color: #4A4F57;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* ===== Top-Bar (Mobile/Tablet only) ===== */
.layout-topbar[b-7c5we0zuxy] {
    display: none; /* by-default ausgeblendet; nur unter 1024px sichtbar */
    align-items: center;
    gap: 12px;
    background: #1F2933;
    color: #FAFAF7;
    padding: 10px 14px;
    border-bottom: 1px solid #15191F;
    height: 56px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 30;
}

.topbar-hamburger[b-7c5we0zuxy] {
    background: transparent;
    border: 1px solid transparent;
    color: #FAFAF7;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 100ms ease, border-color 100ms ease;
    flex: 0 0 44px;
}

.topbar-hamburger:hover[b-7c5we0zuxy],
.topbar-hamburger:focus-visible[b-7c5we0zuxy] {
    background-color: #2B3340;
    border-color: #3A4350;
    outline: none;
}

.topbar-brand[b-7c5we0zuxy] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.topbar-brand-name[b-7c5we0zuxy] {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ===== Backdrop (Mobile-Drawer-Overlay) ===== */
.layout-backdrop[b-7c5we0zuxy] {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 19, 25, 0.55);
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    transition: opacity 200ms ease;
    z-index: 40;
}

/* ===== Blazor Error-UI ===== */
#blazor-error-ui[b-7c5we0zuxy] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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-7c5we0zuxy] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ===== Mobile/Tablet — Single-Column-Layout ===== */
@media (max-width: 1023px) {
    .layout-shell[b-7c5we0zuxy] {
        grid-template-columns: 1fr;
        grid-template-rows: 56px 1fr;
    }

    .layout-topbar[b-7c5we0zuxy] {
        display: flex;
        grid-column: 1;
        grid-row: 1;
    }

    .page-content[b-7c5we0zuxy] {
        grid-column: 1;
        grid-row: 2;
        padding: 1.25rem 1rem;
    }

    /* Backdrop sichtbar machen, wenn .sidebar-mobile-open auf .layout-shell. */
    .layout-shell.sidebar-mobile-open .layout-backdrop[b-7c5we0zuxy] {
        display: block;
        opacity: 1;
    }

    [b-7c5we0zuxy] h1 {
        font-size: 1.375rem;
    }

    [b-7c5we0zuxy] .lead {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .page-content[b-7c5we0zuxy] {
        padding: 1rem 0.875rem;
    }

    .topbar-brand-name[b-7c5we0zuxy] {
        font-size: 14px;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/*
 * Sumi-Deep Sidebar — analog WPF-ShellWindow:
 *   Background:  #1F2933 (Sumi-Deep)
 *   Hover-Bg:    #2B3340 (subtil)
 *   Active-Bg:   #3A4659 mit linkem Akzent-Stripe in Sumi-Rot #B0392C
 *   Text:        #C5CCD6 (Default) → #FAFAF7 (Hover/Active)
 *   Trennlinie:  #2B3340
 *
 * SCOPING-Hinweis: `.nav-link` und `.nav-link-active` werden vom externen
 * NavLink-Component (Microsoft.AspNetCore.Components.Routing) gerendert,
 * das das Razor-Scope-Attribut NICHT auf das gerenderte <a> durchreicht.
 * Daher MUSS jede Regel, die NavLink-rendered Elements anspricht, ueber
 * `::deep` ankommen (Blazor-Scoped-CSS-Operator: unterdrueckt das
 * Scope-Attribut auf nachfolgenden Selektoren).
 */

.sumi-sidebar[b-uretif0r17] {
    width: 100%;
    height: 100vh;
    background-color: #1F2933;
    color: #C5CCD6;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    border-right: 1px solid #15191F;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
}

/* ===== Brand-Header ===== */
.sidebar-brand[b-uretif0r17] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px;
    border-bottom: 1px solid #2B3340;
    min-height: 68px;
    box-sizing: border-box;
}

.brand-mark[b-uretif0r17] {
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-text[b-uretif0r17] {
    line-height: 1.25;
    flex: 1;
    min-width: 0;
}

.brand-name[b-uretif0r17] {
    color: #FAFAF7;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-tagline[b-uretif0r17] {
    color: #7A8492;
    font-size: 10.5px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-toggle[b-uretif0r17] {
    background: transparent;
    border: 1px solid transparent;
    color: #7A8492;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 100ms ease, background-color 100ms ease, border-color 100ms ease;
    flex: 0 0 28px;
}

.sidebar-toggle:hover[b-uretif0r17] {
    color: #FAFAF7;
    background-color: #2B3340;
    border-color: #3A4350;
}

.sidebar-toggle:focus-visible[b-uretif0r17] {
    outline: 2px solid #B0392C;
    outline-offset: 1px;
}

.toggle-icon-collapse[b-uretif0r17] { display: none; }
.sumi-sidebar-collapsed .toggle-icon-expand[b-uretif0r17] { display: none; }
.sumi-sidebar-collapsed .toggle-icon-collapse[b-uretif0r17] { display: inline-block; }

/* ===== Nav-Liste =====
   .nav-list ist Razor-scoped, aber alle Regeln auf .nav-link / .nav-icon /
   .nav-label MUESSEN ueber ::deep gehen, weil NavLink das Scope-Attribut
   nicht ans gerenderte <a> durchreicht. */
.nav-list[b-uretif0r17] {
    list-style: none;
    margin: 0;
    padding: 16px 10px 0;
    flex: 1;
    overflow-y: auto;
}

.nav-list li[b-uretif0r17] {
    margin: 6px 0;
}

.nav-list[b-uretif0r17]  .nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    color: #C5CCD6;
    text-decoration: none;
    font-size: 13.5px;
    line-height: 20px;
    border-radius: 8px;
    position: relative;
    transition: background-color 110ms ease, color 110ms ease;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
}

.nav-list[b-uretif0r17]  .nav-link:hover {
    background-color: #2B3340;
    color: #FAFAF7;
    text-decoration: none;
}

.nav-list[b-uretif0r17]  .nav-link-active {
    background-color: #3A4659;
    color: #FAFAF7;
    font-weight: 500;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.nav-list[b-uretif0r17]  .nav-link-active::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 7px;
    bottom: 7px;
    width: 3px;
    border-radius: 2px;
    background-color: #B0392C;
}

.nav-list[b-uretif0r17]  .nav-icon {
    flex: 0 0 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #95A1B0;
    transition: color 110ms ease;
}

.nav-list[b-uretif0r17]  .nav-link:hover .nav-icon,
.nav-list[b-uretif0r17]  .nav-link-active .nav-icon {
    color: #FAFAF7;
}

.nav-list[b-uretif0r17]  .nav-label {
    flex: 1;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Footer (User + Logout) ===== */
.sidebar-footer[b-uretif0r17] {
    border-top: 1px solid #2B3340;
    padding: 14px 14px 16px;
}

.footer-user[b-uretif0r17] {
    margin-bottom: 12px;
    overflow: hidden;
}

.footer-user-label[b-uretif0r17] {
    color: #7A8492;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 3px;
}

.footer-user-email[b-uretif0r17] {
    color: #FAFAF7;
    font-size: 12.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer-logout-form[b-uretif0r17] {
    margin: 0;
}

.footer-logout[b-uretif0r17] {
    width: 100%;
    background: transparent;
    border: 1px solid #3A4350;
    color: #C5CCD6;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 110ms ease, color 110ms ease, border-color 110ms ease;
}

.footer-logout:hover[b-uretif0r17] {
    background-color: #2B3340;
    border-color: #4A5360;
    color: #FAFAF7;
}

/* ===== Collapsed-State =====
   display:none statt opacity:0/width:0, sonst nehmen die ausgeblendeten
   Elemente trotzdem Flex-Space ein und die Icons verschieben sich nach
   links. */
.sumi-sidebar-collapsed .brand-text[b-uretif0r17],
.sumi-sidebar-collapsed .footer-user[b-uretif0r17],
.sumi-sidebar-collapsed .footer-logout-label[b-uretif0r17] {
    display: none !important;
}

/* NavLink-rendered Children muessen via ::deep angesprochen werden. */
.sumi-sidebar-collapsed .nav-list[b-uretif0r17]  .nav-label {
    display: none !important;
}

.sumi-sidebar-collapsed .sidebar-brand[b-uretif0r17] {
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
    min-height: 0;
    justify-content: center;
    align-items: center;
}

.sumi-sidebar-collapsed .brand-mark[b-uretif0r17] {
    flex: 0 0 auto;
}

.sumi-sidebar-collapsed .sidebar-toggle[b-uretif0r17] {
    flex: 0 0 28px;
}

.sumi-sidebar-collapsed .nav-list[b-uretif0r17] {
    padding: 16px 0 0;
}

.sumi-sidebar-collapsed .nav-list li[b-uretif0r17] {
    margin: 8px 0;
}

.sumi-sidebar-collapsed .nav-list[b-uretif0r17]  .nav-link {
    width: 44px;
    height: 44px;
    margin: 0 auto;
    padding: 0;
    gap: 0;
    justify-content: center;
}

/* Active-Stripe im collapsed-Mode entfernen — bei 44px-Items wirkt
   der 3px-Stripe zu prominent. Active-Pill-Background reicht. */
.sumi-sidebar-collapsed .nav-list[b-uretif0r17]  .nav-link-active::before {
    display: none;
}

.sumi-sidebar-collapsed .sidebar-footer[b-uretif0r17] {
    padding: 12px 0 16px;
    border-top: 1px solid #2B3340;
    text-align: center;
}

.sumi-sidebar-collapsed .footer-logout[b-uretif0r17] {
    width: 44px;
    height: 36px;
    margin: 0 auto;
    padding: 0;
    gap: 0;
}

/* ===== Mobile/Tablet — Off-Canvas-Drawer =====
   Unter 1024px wird die Sidebar fixiert positioniert und standardmaessig
   ausserhalb des Viewports geparkt. Die Klasse .sidebar-mobile-open auf
   .layout-shell triggert den Slide-In. Backdrop liegt zwischen Content
   und Drawer.
   Im Mobile-Modus ist die Sidebar IMMER expanded (nicht collapsed) —
   der Collapse-Toggle macht hier keinen Sinn weil der Drawer komplett
   geschlossen wird statt nur zusammengezogen. */
@media (max-width: 1023px) {
    .sumi-sidebar[b-uretif0r17] {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        transform: translateX(-100%);
        transition: transform 220ms cubic-bezier(.2, .8, .2, 1);
        z-index: 50;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    }

    /* Auf Mobile: collapsed-Klasse ignorieren — der Drawer rendert immer
       die volle expanded-Variante mit Labels. */
    .sumi-sidebar.sumi-sidebar-collapsed .brand-text[b-uretif0r17],
    .sumi-sidebar.sumi-sidebar-collapsed .footer-user[b-uretif0r17],
    .sumi-sidebar.sumi-sidebar-collapsed .footer-logout-label[b-uretif0r17] {
        display: revert !important;
    }

    .sumi-sidebar.sumi-sidebar-collapsed .nav-list[b-uretif0r17]  .nav-label {
        display: revert !important;
    }

    .sumi-sidebar.sumi-sidebar-collapsed .sidebar-brand[b-uretif0r17] {
        flex-direction: row;
        gap: 12px;
        padding: 18px 16px;
        min-height: 68px;
        justify-content: flex-start;
        align-items: center;
    }

    .sumi-sidebar.sumi-sidebar-collapsed .nav-list[b-uretif0r17] {
        padding: 16px 10px 0;
    }

    .sumi-sidebar.sumi-sidebar-collapsed .nav-list[b-uretif0r17]  .nav-link {
        width: auto;
        height: auto;
        margin: 0;
        padding: 12px 14px;
        gap: 14px;
        justify-content: flex-start;
    }

    .sumi-sidebar.sumi-sidebar-collapsed .nav-list[b-uretif0r17]  .nav-link-active::before {
        display: block;
    }

    .sumi-sidebar.sumi-sidebar-collapsed .sidebar-footer[b-uretif0r17] {
        padding: 14px 14px 16px;
        text-align: left;
    }

    .sumi-sidebar.sumi-sidebar-collapsed .footer-logout[b-uretif0r17] {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 8px 10px;
        gap: 6px;
    }

    /* Sidebar-Toggle (Chevron) im Mobile-Modus ausblenden — Backdrop und
       Hamburger uebernehmen das Oeffnen/Schliessen. */
    .sidebar-toggle[b-uretif0r17] {
        display: none;
    }

    /* Touch-Targets vergroessern — Items hoeher fuer Finger-Tippen. */
    .nav-list[b-uretif0r17]  .nav-link {
        padding: 14px 16px;
        min-height: 48px;
    }

    .nav-list[b-uretif0r17]  .nav-icon {
        flex: 0 0 22px;
    }
}

/* Open-State (von .layout-shell.sidebar-mobile-open via Descendant
   gesteuert — funktioniert auch ohne ::deep weil .sumi-sidebar das
   Razor-Scope-Attribut traegt). */
@media (max-width: 1023px) {
    .layout-shell.sidebar-mobile-open .sumi-sidebar[b-uretif0r17] {
        transform: translateX(0);
    }
}

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

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


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

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

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

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

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

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

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

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

@keyframes components-rejoining-animation-b-ry5fnk3grl {
    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/Audit.razor.rz.scp.css */
.filter-form[b-cylwvhyuip] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    border: 1px solid #E1E4E8;
    flex-wrap: wrap;
}

.filter-form label[b-cylwvhyuip] {
    font-size: 0.8125rem;
    color: #4A4F57;
    font-weight: 500;
}

.filter-form input[type="text"][b-cylwvhyuip] {
    flex: 1;
    min-width: 0;
    padding: 0.375rem 0.625rem;
    border: 1px solid #C7CCD3;
    border-radius: 3px;
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .filter-form[b-cylwvhyuip] {
        gap: 0.5rem;
        padding: 0.625rem 0.75rem;
    }

    .filter-form input[type="text"][b-cylwvhyuip] {
        flex-basis: 100%;
        order: 1;
        padding: 0.5rem 0.625rem;
        font-size: 0.9375rem;
        min-height: 40px;
    }

    .filter-form label[b-cylwvhyuip] {
        order: 0;
        flex-basis: 100%;
    }

    .filter-form .btn-secondary[b-cylwvhyuip] {
        order: 2;
        flex: 1;
        min-height: 40px;
    }

    .filter-form .btn-link[b-cylwvhyuip] {
        order: 3;
    }

    .payload-cell[b-cylwvhyuip] {
        max-width: 200px;
    }

    .pagination[b-cylwvhyuip] {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .pagination .btn-secondary[b-cylwvhyuip] {
        min-height: 40px;
        padding: 0.5rem 0.75rem;
    }
}

.filter-form input[type="text"]:focus[b-cylwvhyuip] {
    outline: none;
    border-color: #1F6FEB;
    box-shadow: 0 0 0 2px rgba(31, 111, 235, 0.15);
}

.btn-secondary[b-cylwvhyuip] {
    background: #FAFAF7;
    color: #1A1815;
    border: 1px solid #C7CCD3;
    border-radius: 3px;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 80ms ease, border-color 80ms ease;
}

.btn-secondary:hover[b-cylwvhyuip] {
    background: #F0F1F4;
    border-color: #8995A6;
    text-decoration: none;
}

.btn-link[b-cylwvhyuip] {
    color: #1F6FEB;
    font-size: 0.8125rem;
    margin-left: 0.5rem;
    text-decoration: none;
}

.btn-link:hover[b-cylwvhyuip] {
    text-decoration: underline;
}

.payload-cell[b-cylwvhyuip] {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #4A4F57;
    font-size: 0.75rem;
}

.pagination[b-cylwvhyuip] {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.pagination .muted[b-cylwvhyuip] {
    font-size: 0.8125rem;
}
/* /Components/Pages/Home.razor.rz.scp.css */
.kpi-grid[b-zpdpfb6f5a] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.kpi-card[b-zpdpfb6f5a] {
    background: white;
    border: 1px solid #E1E4E8;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 0.25rem 1rem;
    align-items: start;
}

.kpi-icon[b-zpdpfb6f5a] {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
    background: #1F2933;
    color: #FAFAF7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.kpi-body[b-zpdpfb6f5a] {
    grid-column: 2;
    grid-row: 1;
}

.kpi-label[b-zpdpfb6f5a] {
    color: #7A7670;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.kpi-value[b-zpdpfb6f5a] {
    color: #1A1815;
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.1;
    margin-top: 0.25rem;
}

.kpi-value.muted[b-zpdpfb6f5a] {
    color: #C7CCD3;
    font-weight: 400;
}

.kpi-sub[b-zpdpfb6f5a] {
    color: #7A7670;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.kpi-link[b-zpdpfb6f5a] {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    color: #1F6FEB;
    font-size: 0.8125rem;
    text-decoration: none;
    margin-top: 0.5rem;
}

.kpi-link:hover[b-zpdpfb6f5a] {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .kpi-grid[b-zpdpfb6f5a] {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .kpi-card[b-zpdpfb6f5a] {
        padding: 1rem;
        grid-template-columns: 36px 1fr;
        gap: 0.25rem 0.875rem;
    }

    .kpi-icon[b-zpdpfb6f5a] {
        width: 36px;
        height: 36px;
    }

    .kpi-icon svg[b-zpdpfb6f5a] {
        width: 20px;
        height: 20px;
    }

    .kpi-value[b-zpdpfb6f5a] {
        font-size: 1.375rem;
    }
}
/* /Components/Pages/License.razor.rz.scp.css */
.status-card[b-7tlollht1f],
.upload-card[b-7tlollht1f] {
    background: white;
    border: 1px solid #E1E4E8;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.upload-card h2[b-7tlollht1f] {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
    color: #1A1815;
}

.muted[b-7tlollht1f] {
    color: #7A7670;
    margin: 0 0 1rem;
    font-size: 0.875rem;
}

.error[b-7tlollht1f] {
    color: #8B2A1F;
    font-weight: 500;
}

.status-row[b-7tlollht1f] {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.status-label[b-7tlollht1f] {
    color: #7A7670;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.125rem;
    display: block;
}

.status-value[b-7tlollht1f] {
    color: #1A1815;
    font-size: 0.9375rem;
    display: block;
}

.status-value.mono[b-7tlollht1f] {
    font-family: SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8125rem;
    word-break: break-all;
}

.status-grid[b-7tlollht1f] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem 1.5rem;
}

.status-pill[b-7tlollht1f] {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: white;
    background: #7A7670;
}

.status-pill-active[b-7tlollht1f] { background: #2E8B57; }
.status-pill-grace[b-7tlollht1f] { background: #E8B33B; color: #1A1815; }
.status-pill-expired[b-7tlollht1f] { background: #E15B5B; }
.status-pill-revoked[b-7tlollht1f] { background: #8B2A1F; }
.status-pill-none[b-7tlollht1f] { background: #C7CCD3; color: #1A1815; }

.upload-form[b-7tlollht1f] {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.upload-form input[type="file"][b-7tlollht1f] {
    flex: 1;
    min-width: 0;
    padding: 0.5rem;
    border: 1px dashed #C7CCD3;
    border-radius: 4px;
    background: #F9F9F8;
    font-size: 0.875rem;
    cursor: pointer;
}

@media (max-width: 640px) {
    .upload-form[b-7tlollht1f] {
        flex-direction: column;
        align-items: stretch;
    }

    .upload-form input[type="file"][b-7tlollht1f] {
        width: 100%;
    }

    .upload-form .btn-primary[b-7tlollht1f] {
        width: 100%;
        padding: 0.75rem;
        min-height: 44px;
    }

    .status-row[b-7tlollht1f] {
        flex-wrap: wrap;
    }

    .status-grid[b-7tlollht1f] {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 1rem;
    }

    .status-card[b-7tlollht1f],
    .upload-card[b-7tlollht1f] {
        padding: 1rem;
    }
}

@media (max-width: 380px) {
    .status-grid[b-7tlollht1f] {
        grid-template-columns: 1fr;
    }
}

.btn-primary[b-7tlollht1f] {
    background: #1A1815;
    color: #FAFAF7;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 120ms ease;
}

.btn-primary:hover[b-7tlollht1f] {
    background: #2C2A26;
}

.alert-success[b-7tlollht1f] {
    background: #E8F5E9;
    color: #1F6B3C;
    border: 1px solid #A5D6A7;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.alert-error[b-7tlollht1f] {
    background: #FCEBE9;
    color: #8B2A1F;
    border: 1px solid #E8A89F;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.info[b-7tlollht1f] {
    background: #E8F0FE;
    color: #1F4787;
    border: 1px solid #A5C0E1;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}
/* /Components/Pages/Tenants.razor.rz.scp.css */
/* ===== Tenants-Page: Inline-Form fuer Neuen Mandanten + Token-Display ===== */

.new-tenant-card[b-ivbkbbvtwz] {
    background: white;
    border: 1px solid #E1E4E8;
    border-radius: 6px;
    padding: 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.new-tenant-card > summary[b-ivbkbbvtwz] {
    list-style: none;
    cursor: pointer;
    padding: 0.875rem 1.25rem;
    font-weight: 500;
    color: #1A1815;
    user-select: none;
    border-radius: 6px;
    transition: background 120ms ease;
}

.new-tenant-card > summary[b-ivbkbbvtwz]::-webkit-details-marker {
    display: none;
}

.new-tenant-card > summary:hover[b-ivbkbbvtwz] {
    background: #F4F4F1;
}

.new-tenant-card[open] > summary[b-ivbkbbvtwz] {
    border-bottom: 1px solid #E1E4E8;
    border-radius: 6px 6px 0 0;
}

.new-tenant-form[b-ivbkbbvtwz] {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row[b-ivbkbbvtwz] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 32rem;
}

.form-row label[b-ivbkbbvtwz] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-label[b-ivbkbbvtwz] {
    color: #7A7670;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.125rem;
}

.form-row input[type="text"][b-ivbkbbvtwz],
.form-row input[type="number"][b-ivbkbbvtwz] {
    padding: 0.5rem 0.625rem;
    border: 1px solid #C7CCD3;
    border-radius: 4px;
    font-size: 0.9375rem;
    color: #1A1815;
    background: #FAFAF7;
}

.form-row input[type="text"]:focus[b-ivbkbbvtwz],
.form-row input[type="number"]:focus[b-ivbkbbvtwz] {
    outline: none;
    border-color: #1F6FEB;
    background: white;
}

.form-hint[b-ivbkbbvtwz] {
    color: #7A7670;
    font-size: 0.8125rem;
    margin: 0;
}

.form-actions[b-ivbkbbvtwz] {
    display: flex;
    gap: 0.75rem;
}

/* ===== Token-Display-Card ===== */

.token-card[b-ivbkbbvtwz] {
    background: #E8F5E9;
    border: 1px solid #A5D6A7;
    border-left: 4px solid #2E8B57;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.token-card h2[b-ivbkbbvtwz] {
    margin: 0 0 0.5rem;
    color: #1F6B3C;
    font-size: 1.125rem;
}

.token-warn[b-ivbkbbvtwz] {
    color: #8B2A1F;
    font-weight: 500;
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
}

.token-plaintext[b-ivbkbbvtwz] {
    background: white;
    border: 1px solid #C7CCD3;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-family: SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9375rem;
    word-break: break-all;
    user-select: all;
    color: #1A1815;
    margin: 0 0 0.75rem;
}

.token-meta[b-ivbkbbvtwz] {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #1A1815;
    margin-bottom: 0.5rem;
}

.token-meta .status-label[b-ivbkbbvtwz] {
    color: #7A7670;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 0.375rem;
}

/* ===== Section-Header (zweite Sektion: Token-Liste) ===== */

.section-h[b-ivbkbbvtwz] {
    margin-top: 2.5rem;
    color: #1A1815;
}

/* ===== Buttons ===== */

.btn-primary[b-ivbkbbvtwz] {
    background: #1A1815;
    color: #FAFAF7;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 120ms ease;
}

.btn-primary:hover[b-ivbkbbvtwz] {
    background: #2C2A26;
}

.btn-danger[b-ivbkbbvtwz] {
    background: #B0392C;
    color: #FAFAF7;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 120ms ease;
}

.btn-danger:hover[b-ivbkbbvtwz] {
    background: #8B2A1F;
}

.btn-small[b-ivbkbbvtwz] {
    padding: 0.25rem 0.625rem;
    font-size: 0.8125rem;
}

/* ===== Actions-Column ===== */

.actions[b-ivbkbbvtwz] {
    text-align: right;
    white-space: nowrap;
}

.inline-form[b-ivbkbbvtwz] {
    display: inline-block;
    margin: 0;
}

/* ===== Pill fuer Token-Status (consumed gibt es noch nicht in app.css) ===== */

.pill-consumed[b-ivbkbbvtwz] { background: #1F4787; color: white; }

/* ===== Responsive ===== */

@media (max-width: 640px) {
    .new-tenant-form[b-ivbkbbvtwz] {
        padding: 1rem;
    }

    .form-actions .btn-primary[b-ivbkbbvtwz] {
        width: 100%;
        min-height: 44px;
        padding: 0.75rem;
    }

    .token-card[b-ivbkbbvtwz] {
        padding: 1rem;
    }

    .token-meta[b-ivbkbbvtwz] {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-danger.btn-small[b-ivbkbbvtwz] {
        min-height: 36px;
    }
}
/* /Components/Pages/Users.razor.rz.scp.css */
/* ===== Users-Page (TenantAdmin Mitarbeiter-Mgmt) ===== */

/* Wiederverwendet groesstenteils die Stile aus Tenants.razor.css, aber
   scoped fuer diese Page. Wo moeglich wird auf globales app.css gelehnt
   (.table-wrap, .data-table, .alert-*, .pill-*). */

.invite-form-card[b-nzqtl1rdtz] {
    background: white;
    border: 1px solid #E1E4E8;
    border-radius: 6px;
    padding: 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.invite-form-card > summary[b-nzqtl1rdtz] {
    list-style: none;
    cursor: pointer;
    padding: 0.875rem 1.25rem;
    font-weight: 500;
    color: #1A1815;
    user-select: none;
    border-radius: 6px;
    transition: background 120ms ease;
}

.invite-form-card > summary[b-nzqtl1rdtz]::-webkit-details-marker {
    display: none;
}

.invite-form-card > summary:hover[b-nzqtl1rdtz] {
    background: #F4F4F1;
}

.invite-form-card[open] > summary[b-nzqtl1rdtz] {
    border-bottom: 1px solid #E1E4E8;
    border-radius: 6px 6px 0 0;
}

.invite-form[b-nzqtl1rdtz] {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row[b-nzqtl1rdtz] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 32rem;
}

.form-row label[b-nzqtl1rdtz] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-label[b-nzqtl1rdtz] {
    color: #7A7670;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.125rem;
}

.form-row input[type="text"][b-nzqtl1rdtz],
.form-row input[type="email"][b-nzqtl1rdtz],
.form-row input[type="number"][b-nzqtl1rdtz],
.form-row select[b-nzqtl1rdtz] {
    padding: 0.5rem 0.625rem;
    border: 1px solid #C7CCD3;
    border-radius: 4px;
    font-size: 0.9375rem;
    color: #1A1815;
    background: #FAFAF7;
}

.form-row input:focus[b-nzqtl1rdtz],
.form-row select:focus[b-nzqtl1rdtz] {
    outline: none;
    border-color: #1F6FEB;
    background: white;
}

.form-actions[b-nzqtl1rdtz] {
    display: flex;
    gap: 0.75rem;
}

/* ===== Invite-Display-Card (analog Token-Card auf Tenants-Page) ===== */

.invite-card[b-nzqtl1rdtz] {
    background: #E8F5E9;
    border: 1px solid #A5D6A7;
    border-left: 4px solid #2E8B57;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.invite-card h2[b-nzqtl1rdtz] {
    margin: 0 0 0.5rem;
    color: #1F6B3C;
    font-size: 1.125rem;
}

.invite-warn[b-nzqtl1rdtz] {
    color: #8B2A1F;
    font-weight: 500;
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
}

.invite-token[b-nzqtl1rdtz] {
    background: white;
    border: 1px solid #C7CCD3;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-family: SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9375rem;
    word-break: break-all;
    user-select: all;
    color: #1A1815;
    margin: 0 0 0.75rem;
}

.invite-meta[b-nzqtl1rdtz] {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #1A1815;
    margin-bottom: 0.5rem;
}

.invite-meta .status-label[b-nzqtl1rdtz] {
    color: #7A7670;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 0.375rem;
}

/* ===== Section-Header ===== */

.section-h[b-nzqtl1rdtz] {
    margin-top: 2.5rem;
    color: #1A1815;
}

/* ===== Buttons ===== */

.btn-primary[b-nzqtl1rdtz] {
    background: #1A1815;
    color: #FAFAF7;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 120ms ease;
}

.btn-primary:hover[b-nzqtl1rdtz] {
    background: #2C2A26;
}

.btn-secondary[b-nzqtl1rdtz] {
    background: white;
    color: #1A1815;
    border: 1px solid #C7CCD3;
    border-radius: 4px;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 120ms ease;
}

.btn-secondary:hover[b-nzqtl1rdtz] {
    background: #F4F4F1;
}

.btn-danger[b-nzqtl1rdtz] {
    background: #B0392C;
    color: #FAFAF7;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 120ms ease;
}

.btn-danger:hover[b-nzqtl1rdtz] {
    background: #8B2A1F;
}

.btn-small[b-nzqtl1rdtz] {
    padding: 0.25rem 0.625rem;
    font-size: 0.8125rem;
}

/* ===== Actions-Column =====
   Primary-Actions (ChangeRole) links, destruktive (Deaktivieren) rechts mit
   sichtbarer Trennung. Bei wenig Platz wrappen die Forms vertikal, destruktive
   landet dann unten. Destruktive Aktionen brauchen zusaetzlich JS-Confirm
   (siehe Razor) — visueller Abstand allein reicht nicht als Schutz. */

.actions[b-nzqtl1rdtz] {
    text-align: right;
}

.row-actions[b-nzqtl1rdtz] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    justify-content: flex-end;
    align-items: center;
}

.action-form[b-nzqtl1rdtz] {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
}

/* Destruktive Aktion: extra Abstand zur primary form, optisch abgesetzt
   durch linke Trennlinie. Auf engem Screen wraps sie unter die primary form
   und die Trennlinie wird zur Top-Border. */
.danger-form[b-nzqtl1rdtz] {
    margin-left: 1.25rem;
    padding-left: 1.25rem;
    border-left: 1px solid #E1E4E8;
}

.inline-form[b-nzqtl1rdtz] {
    display: inline-flex;
    align-items: center;
    margin: 0 0 0.25rem;
}

/* ===== ChangeRole inline: Select + Setzen-Button ===== */

.role-select[b-nzqtl1rdtz] {
    padding: 0.3rem 0.5rem;
    border: 1px solid #C7CCD3;
    border-radius: 4px;
    font-size: 0.8125rem;
    background: white;
    min-width: 9rem;
}

/* ===== Pill-Variante fuer "accepted" Invites ===== */

.pill-accepted[b-nzqtl1rdtz] { background: #1F6FEB; color: white; }

/* ===== Responsive ===== */

@media (max-width: 640px) {
    .invite-form[b-nzqtl1rdtz] {
        padding: 1rem;
    }

    .form-actions .btn-primary[b-nzqtl1rdtz] {
        width: 100%;
        min-height: 44px;
        padding: 0.75rem;
    }

    .invite-card[b-nzqtl1rdtz] {
        padding: 1rem;
    }

    .invite-meta[b-nzqtl1rdtz] {
        flex-direction: column;
        gap: 0.5rem;
    }

    .row-actions[b-nzqtl1rdtz] {
        justify-content: stretch;
        gap: 0.5rem;
    }

    .action-form[b-nzqtl1rdtz] {
        width: 100%;
    }

    /* Auf Mobile wird die Trennlinie von links zur Top-Border */
    .danger-form[b-nzqtl1rdtz] {
        margin-left: 0;
        padding-left: 0;
        padding-top: 0.625rem;
        border-left: none;
        border-top: 1px solid #E1E4E8;
        margin-top: 0.125rem;
    }

    .role-select[b-nzqtl1rdtz] {
        flex: 1;
        min-width: 0;
    }

    .btn-danger.btn-small[b-nzqtl1rdtz],
    .btn-primary.btn-small[b-nzqtl1rdtz] {
        min-height: 36px;
    }

    .danger-form > button.btn-danger[b-nzqtl1rdtz] {
        width: 100%;
    }
}
