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

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

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

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

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

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

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

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

.header-user[b-hgiqb0cjf5] {
    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-hgiqb0cjf5] {
    background-color: var(--muted);
}

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

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

.header-dropdown[b-hgiqb0cjf5] {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
    background-color: var(--popover);
    color: var(--popover-foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 240px;
    padding: 0.375rem 0;
    z-index: 50;
}

.header-dropdown-item[b-hgiqb0cjf5] {
    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-hgiqb0cjf5] {
    background-color: var(--muted);
    text-decoration: none;
}

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

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

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

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

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

[b-hgiqb0cjf5] .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-hgiqb0cjf5] {
    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-hgiqb0cjf5] {
    justify-content: center;
    padding: 1rem 0.5rem;
}

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

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

.sidebar-toggle-btn[b-hgiqb0cjf5] {
    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-hgiqb0cjf5] {
    background-color: var(--muted);
    color: var(--foreground);
}

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

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

.sidebar-app-info[b-hgiqb0cjf5] {
    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-hgiqb0cjf5] {
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.1s ease;
}

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

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

.sidebar-resize-handle[b-hgiqb0cjf5] {
    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-hgiqb0cjf5] {
    background-color: rgba(12, 93, 166, 0.5);
}

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

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

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

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

[b-hgiqb0cjf5] .action-bar-loader {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: color-mix(in srgb, var(--primary) 15%, transparent);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

[b-hgiqb0cjf5] .action-bar-loader.active {
    opacity: 1;
}

[b-hgiqb0cjf5] .action-bar-loader.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background-color: var(--primary);
    animation: actionbar-loading-b-hgiqb0cjf5 1.2s ease-in-out infinite;
}

@keyframes actionbar-loading-b-hgiqb0cjf5 {
    0%   { left: -40%; }
    100% { left: 100%; }
}

[b-hgiqb0cjf5] .content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    padding: 0;
    position: relative;
}

[b-hgiqb0cjf5] .content-area > .page-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1.5rem;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.nav-menu[b-llrau4lf4m] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.5rem 0;
    min-height: 100%;
}

.nav-bottom[b-llrau4lf4m] {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

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

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

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

/* Text wird per overflow hidden abgeschnitten wenn Sidebar schrumpft */
.nav-link-text[b-llrau4lf4m] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
    transition: opacity 0.15s ease;
}

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

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

/* Separator between nav sections */
.nav-separator[b-llrau4lf4m] {
    height: 1px;
    background-color: var(--sidebar-border);
    margin: 0.5rem 1rem;
}
/* /Components/Pages/Administration.razor.rz.scp.css */
.administration-page[b-wne71k0yxm] {
    padding-top: 1rem;
}

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

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

.admin-tile:hover[b-wne71k0yxm] {
    border-color: var(--primary, #0C5DA6);
    box-shadow: 0 2px 8px rgba(12, 93, 166, 0.08);
}

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

.admin-tile-icon[b-wne71k0yxm] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(12, 93, 166, 0.08);
    color: var(--primary, #0C5DA6);
    flex-shrink: 0;
}

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

.admin-tile-title[b-wne71k0yxm] {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text, #2a2a2a);
    margin-bottom: 0.25rem;
}

.admin-tile-desc[b-wne71k0yxm] {
    font-size: 0.875rem;
    color: var(--text-muted, #6b7280);
    line-height: 1.4;
}

.admin-tile-chevron[b-wne71k0yxm] {
    color: var(--text-muted, #6b7280);
    flex-shrink: 0;
}

.admin-tile:hover .admin-tile-chevron[b-wne71k0yxm] {
    color: var(--primary, #0C5DA6);
}
/* /Components/Pages/Assets.razor.rz.scp.css */
.global-assets-page[b-l3ck9vzeh2] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    min-height: 0;
}

.assets-dropzone[b-l3ck9vzeh2] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border: 2px dashed var(--border);
    background-color: var(--card);
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.assets-dropzone.drop-zone-active[b-l3ck9vzeh2] {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(12, 93, 166, 0.05);
}

.assets-dropzone.drop-zone-uploading[b-l3ck9vzeh2] {
    opacity: 0.6;
    pointer-events: none;
}

.assets-empty[b-l3ck9vzeh2] {
    text-align: center;
    padding: 1.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.assets-grid[b-l3ck9vzeh2] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    overflow-y: auto;
    min-height: 0;
    padding-bottom: 0.5rem;
}

.asset-card[b-l3ck9vzeh2] {
    position: relative;
    background-color: var(--card);
    border: 1px solid var(--border);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.asset-card .action-btn[b-l3ck9vzeh2] {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    opacity: 0;
    transition: opacity 0.15s;
}

.asset-card:hover .action-btn[b-l3ck9vzeh2] {
    opacity: 1;
}

.asset-thumb[b-l3ck9vzeh2] {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--muted);
    height: 90px;
    overflow: hidden;
}

.asset-thumb img[b-l3ck9vzeh2] {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.asset-info[b-l3ck9vzeh2] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.asset-name[b-l3ck9vzeh2] {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-size[b-l3ck9vzeh2] {
    font-size: 0.6875rem;
    color: var(--muted-foreground);
}
/* /Components/Pages/Home.razor.rz.scp.css */
.templates-layout[b-ak3zb0rtnz] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    height: 100%;
    min-height: 0;
}

.templates-layout.has-preview[b-ak3zb0rtnz] {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.templates-content[b-ak3zb0rtnz] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    min-height: 0;
    overflow-y: auto; /* Liste scrollt intern, Page bleibt ruhig */
}

.drop-zone-label[b-ak3zb0rtnz] {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 10;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    pointer-events: none;
}

.templates-content.drop-zone-active .drop-zone-label[b-ak3zb0rtnz] {
    display: flex;
}

.preview-panel[b-ak3zb0rtnz] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.preview-header[b-ak3zb0rtnz] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0.5rem;
    flex-shrink: 0;
}

.preview-title[b-ak3zb0rtnz] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    overflow: hidden;
}

.preview-title .template-name[b-ak3zb0rtnz] {
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-actions[b-ak3zb0rtnz] {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.preview-body[b-ak3zb0rtnz] {
    flex: 1;
    min-height: 0;
    display: flex;
    background: var(--muted);
    overflow: hidden;
}

.preview-loading[b-ak3zb0rtnz] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.assets-picker-row[b-ak3zb0rtnz] {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.card-body[b-ak3zb0rtnz] {
    padding: 0;
}

/* ── Spaltenbreiten (page-spezifisch) ── */

[b-ak3zb0rtnz] .data-table thead th:nth-child(1) { width: auto; }       /* Bezeichnung */
[b-ak3zb0rtnz] .data-table thead th:nth-child(2) { width: 140px; }      /* Kategorie */
[b-ak3zb0rtnz] .data-table thead th:nth-child(3) { width: 130px; }      /* Typ */
[b-ak3zb0rtnz] .data-table thead th:nth-child(4) { width: 90px; }       /* Version */
[b-ak3zb0rtnz] .data-table thead th:nth-child(5) { width: 110px; }      /* Status */
[b-ak3zb0rtnz] .data-table thead th:nth-child(6) { width: 160px; }      /* Geändert */
[b-ak3zb0rtnz] .data-table thead th:nth-child(7) { width: 80px; }       /* Actions */

.th-filter-placeholder[b-ak3zb0rtnz] {
    height: 34px;
}

.template-name[b-ak3zb0rtnz] {
    font-weight: 500;
    display: block;
}

.template-desc[b-ak3zb0rtnz] {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    display: block;
    margin-top: 0.125rem;
}

.muted-cell[b-ak3zb0rtnz] {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Im Preview-Modus: mittlere Spalten ausblenden — nur Bezeichnung + Aktionen bleiben */
.templates-layout.has-preview .data-table th:not(:first-child):not(:last-child)[b-ak3zb0rtnz],
.templates-layout.has-preview .data-table td:not(:first-child):not(:last-child)[b-ak3zb0rtnz] {
    display: none;
}
/* /Components/Pages/MeinKonto.razor.rz.scp.css */
.mein-konto-page[b-68dequsapp] {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.page-intro[b-68dequsapp] {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ===== Card ===== */

.account-card[b-68dequsapp] {
    display: flex;
    flex-direction: column;
}

.account-card-head[b-68dequsapp] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.account-card-body[b-68dequsapp] {
    padding: 1.5rem;
}

/* Identity-Block links (Avatar + Name + Subtext) */
.account-identity[b-68dequsapp] {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.account-avatar[b-68dequsapp] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: rgba(12, 93, 166, 0.08);
    color: var(--primary);
    flex-shrink: 0;
}

[b-68dequsapp] .account-avatar .icon-lg {
    width: 28px;
    height: 28px;
}

.account-identity-text[b-68dequsapp] {
    min-width: 0;
}

.account-name[b-68dequsapp] {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.3;
}

.account-subtext[b-68dequsapp] {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin-top: 0.125rem;
}

/* Title-Block (für Cards ohne Avatar, z.B. Passwort) */
.account-card-title-block[b-68dequsapp] {
    min-width: 0;
}

.account-card-title[b-68dequsapp] {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.3;
}

.account-card-subtitle[b-68dequsapp] {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

/* ===== Form-Grid ===== */

.account-grid[b-68dequsapp] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1.5rem;
}

.account-grid[b-68dequsapp]  .form-group-short {
    max-width: 220px;
}

.account-grid[b-68dequsapp]  .account-field-wide {
    grid-column: 1 / -1;
    max-width: 480px;
}

.form-group-spacer[b-68dequsapp] {
    /* Füllt die zweite Spalte in der Anrede-Zeile, damit das Grid sauber bleibt. */
}

@media (max-width: 640px) {
    .account-grid[b-68dequsapp] {
        grid-template-columns: 1fr;
    }
    .form-group-spacer[b-68dequsapp] {
        display: none;
    }
}

.account-password-grid[b-68dequsapp] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 420px;
}

[b-68dequsapp] .form-hint {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.375rem;
}

/* ===== Actions ===== */

.account-actions[b-68dequsapp] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

/* ===== Messages ===== */

[b-68dequsapp] .inline-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius);
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-size: 0.875rem;
}
/* /Components/Pages/TemplateEditor.razor.rz.scp.css */
.editor-page[b-0tzvr0ypkn] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0;
}

/* ── Toolbar ── */

.editor-toolbar[b-0tzvr0ypkn] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.editor-toolbar-left[b-0tzvr0ypkn] {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.editor-toolbar-right[b-0tzvr0ypkn] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.editor-field[b-0tzvr0ypkn] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.editor-field .form-label[b-0tzvr0ypkn] {
    font-size: 0.6875rem;
    margin-bottom: 0;
    color: var(--muted-foreground);
    font-weight: var(--font-weight-normal);
}

.editor-field .form-input[b-0tzvr0ypkn],
.editor-field .form-select[b-0tzvr0ypkn] {
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
    height: 1.75rem;
}

.editor-field .editor-bezeichnung-input[b-0tzvr0ypkn] {
    width: 300px;
}

.editor-version[b-0tzvr0ypkn] {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    padding: 0 0.5rem;
}

[b-0tzvr0ypkn] .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    cursor: pointer;
    height: 1.75rem;
    white-space: nowrap;
}

/* ── Split View ── */

.editor-split[b-0tzvr0ypkn] {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: 1px;
    background-color: var(--border);
    margin-top: 0.75rem;
}

.editor-left[b-0tzvr0ypkn],
.editor-right[b-0tzvr0ypkn] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--background);
}

/* ── Tabs ── */

.editor-tabs[b-0tzvr0ypkn] {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 2px solid var(--border);
    flex-shrink: 0;
    background-color: var(--card);
    padding: 0 0.5rem;
}

.editor-tab[b-0tzvr0ypkn] {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: var(--font-weight-medium);
    color: var(--muted-foreground);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.editor-tab:hover[b-0tzvr0ypkn] {
    color: var(--foreground);
}

.editor-tab.active[b-0tzvr0ypkn] {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.editor-tab-spacer[b-0tzvr0ypkn] {
    flex: 1;
}

.editor-tab .tab-warning[b-0tzvr0ypkn] {
    color: var(--warning, #d97706);
    margin-left: 0.25rem;
}

/* ── Monaco ── */

.monaco-container[b-0tzvr0ypkn] {
    flex: 1;
    min-height: 0;
}

/* ── Testdata ── */

.testdata-container[b-0tzvr0ypkn] {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.5rem;
    min-height: 0;
}

.variables-info[b-0tzvr0ypkn] {
    margin-bottom: 0.5rem;
}

.testdata-toolbar[b-0tzvr0ypkn] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.testdata-toolbar .form-label[b-0tzvr0ypkn] {
    margin: 0;
    margin-right: auto;
}

[b-0tzvr0ypkn] .variable-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.testdata-editor[b-0tzvr0ypkn] {
    flex: 1;
    min-height: 0;
    resize: none;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
    white-space: pre;
}

/* ── Assets Tab ── */

.assets-container[b-0tzvr0ypkn] {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.75rem;
    overflow-y: auto;
    min-height: 0;
}

.assets-missing-warning[b-0tzvr0ypkn] {
    padding: 0.75rem 1rem;
    background-color: #fef9c3;
    border: 1px solid #fde047;
    color: #854d0e;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.assets-missing-warning .warning-header[b-0tzvr0ypkn] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-weight-medium);
    font-size: 0.875rem;
}

.assets-missing-warning .warning-list[b-0tzvr0ypkn] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.assets-missing-warning .btn[b-0tzvr0ypkn] {
    align-self: flex-start;
}

.assets-picker-row[b-0tzvr0ypkn] {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.assets-dropzone[b-0tzvr0ypkn] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border: 2px dashed var(--border);
    background-color: var(--card);
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    transition: all 0.15s ease;
}

.assets-dropzone.drop-zone-active[b-0tzvr0ypkn] {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(12, 93, 166, 0.05);
}

.assets-dropzone.drop-zone-uploading[b-0tzvr0ypkn] {
    opacity: 0.6;
    pointer-events: none;
}

.assets-empty[b-0tzvr0ypkn] {
    text-align: center;
    padding: 1.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.assets-grid[b-0tzvr0ypkn] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.asset-card[b-0tzvr0ypkn] {
    position: relative;
    background-color: var(--card);
    border: 1px solid var(--border);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.asset-card-actions[b-0tzvr0ypkn] {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    display: flex;
    gap: 0.125rem;
    opacity: 0;
    transition: opacity 0.15s;
}

.asset-card:hover .asset-card-actions[b-0tzvr0ypkn] {
    opacity: 1;
}

.warning-actions[b-0tzvr0ypkn] {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.asset-thumb[b-0tzvr0ypkn] {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--muted);
    height: 80px;
    overflow: hidden;
}

.asset-thumb img[b-0tzvr0ypkn] {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.asset-info[b-0tzvr0ypkn] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.asset-name[b-0tzvr0ypkn] {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-size[b-0tzvr0ypkn] {
    font-size: 0.6875rem;
    color: var(--muted-foreground);
}

/* ── Preview ── */

.preview-container[b-0tzvr0ypkn] {
    flex: 1;
    min-height: 0;
    display: flex;
    border: 1px solid var(--border);
}

/* ── Bausteine-Tab (Phase 5) ── */

.blocks-container[b-0tzvr0ypkn] {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blocks-toolbar[b-0tzvr0ypkn] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blocks-toolbar-spacer[b-0tzvr0ypkn] {
    flex: 1;
}

.blocks-version-hint[b-0tzvr0ypkn] {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.block-group[b-0tzvr0ypkn] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.block-group-header[b-0tzvr0ypkn] {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border);
}

.block-group-path[b-0tzvr0ypkn] {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.block-group-count[b-0tzvr0ypkn] {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.block-card[b-0tzvr0ypkn] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.block-card:hover[b-0tzvr0ypkn] {
    border-color: var(--primary);
    box-shadow: 0 1px 4px rgba(12, 93, 166, 0.08);
}

.block-card.is-inactive[b-0tzvr0ypkn] {
    opacity: 0.55;
}

.block-info[b-0tzvr0ypkn] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.block-name[b-0tzvr0ypkn] {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.block-desc[b-0tzvr0ypkn] {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    line-height: 1.4;
}

.block-tags[b-0tzvr0ypkn] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.125rem;
}

.block-actions[b-0tzvr0ypkn] {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.block-data[b-0tzvr0ypkn] {
    margin: 0.5rem 0 0 0;
    padding: 0.5rem 0.75rem;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--foreground);
    max-height: 12rem;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.block-kv-row[b-0tzvr0ypkn] {
    display: grid;
    grid-template-columns: minmax(80px, 140px) 1fr;
    gap: 0.625rem;
    align-items: start;
}

.block-kv-key[b-0tzvr0ypkn] {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-top: 0.125rem;
}

.block-kv-value[b-0tzvr0ypkn] {
    white-space: pre-wrap;
    word-break: break-word;
    min-width: 0;
}

/* ── Import aus Testdaten ── */

.import-paths[b-0tzvr0ypkn] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    max-height: 50vh;
    overflow-y: auto;
}

.import-path-row[b-0tzvr0ypkn] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.import-path-info[b-0tzvr0ypkn] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.import-path-name[b-0tzvr0ypkn] {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.import-path-meta[b-0tzvr0ypkn] {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

[b-0tzvr0ypkn] .modal-large {
    max-width: 720px;
    width: 90%;
}

[b-0tzvr0ypkn] .form-hint {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--muted-foreground);
    margin-left: 0.375rem;
}
/* /Components/Pages/Users.razor.rz.scp.css */
.users-content[b-1j38fjh7qt] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-body[b-1j38fjh7qt] {
    padding: 0;
}

/* ── Spaltenbreiten (page-spezifisch) ── */

[b-1j38fjh7qt] .data-table thead th:nth-child(1) { width: 180px; }      /* Username */
[b-1j38fjh7qt] .data-table thead th:nth-child(2) { width: auto; }       /* Name */
[b-1j38fjh7qt] .data-table thead th:nth-child(3) { width: auto; }       /* E-Mail */
[b-1j38fjh7qt] .data-table thead th:nth-child(4) { width: 120px; }      /* Status */
[b-1j38fjh7qt] .data-table thead th:nth-child(5) { width: 130px; }      /* Angelegt */
[b-1j38fjh7qt] .data-table thead th:nth-child(6) { width: 48px; text-align: center; }

.th-filter-placeholder[b-1j38fjh7qt] {
    height: 34px;
}

.muted-cell[b-1j38fjh7qt] {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}
/* /Components/Shared/ZoomablePreview.razor.rz.scp.css */
.zoom-preview[b-4ykzobnrl9] {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: var(--muted);
}

.zoom-toolbar[b-4ykzobnrl9] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.zoom-btn[b-4ykzobnrl9], .zoom-value[b-4ykzobnrl9] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--foreground);
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1;
    transition: background 0.1s, border-color 0.1s;
}

.zoom-btn[b-4ykzobnrl9] {
    width: 28px;
    height: 24px;
}

.zoom-value[b-4ykzobnrl9] {
    min-width: 48px;
    font-variant-numeric: tabular-nums;
}

.zoom-btn:hover[b-4ykzobnrl9], .zoom-value:hover[b-4ykzobnrl9] {
    background: var(--muted);
    border-color: var(--border);
}

.zoom-btn:active[b-4ykzobnrl9], .zoom-value:active[b-4ykzobnrl9] {
    background: var(--border);
}

.zoom-viewport[b-4ykzobnrl9] {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: auto; /* scrollt horizontal und vertikal wenn iframe groesser */
    background: #cccccc; /* gleicher Ton wie body-Background in den OnePager-Templates */
    outline: none;
}

.zoom-divider[b-4ykzobnrl9] {
    width: 1px;
    align-self: stretch;
    background: var(--border);
    margin: 0 0.25rem;
}

/* Pan-Overlay: nur sichtbar wenn Space gedrueckt wird (.active).
   Fangt Maus-Events damit wir nicht im iframe-Koordinatensystem rechnen muessen. */
.pan-overlay[b-4ykzobnrl9] {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: none;
    cursor: grab;
    background: transparent;
}

.pan-overlay.active[b-4ykzobnrl9] {
    display: block;
}

.pan-overlay.panning[b-4ykzobnrl9] {
    cursor: grabbing;
}

.zoom-iframe[b-4ykzobnrl9] {
    width: 794px; /* A4-Breite bei 96dpi, wird per JS auf echte Content-Breite gesetzt */
    height: 1123px; /* A4-Hoehe Fallback, wird per JS gesetzt */
    display: block;
    margin: 0 auto; /* zentriert horizontal; wird 0 wenn iframe breiter als viewport */
    border: none;
    background: transparent;
    /* 'zoom' wird per JS gesetzt und veraendert den Layout-Platz.
       Kein Schatten/Rahmen hier — die Templates bringen ihren eigenen box-shadow am .page-Element mit. */
}
