/* /Components/Layout/MainLayout.razor.rz.scp.css */
.crm-shell[b-m0m0rxazyu] {
    display: flex;
    height: 100vh;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.crm-sidebar[b-m0m0rxazyu] {
    width: 220px;
    min-width: 220px;
    background: #1a2035;
    color: #c8cfe0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0, 0, 0, .35);
    z-index: 100;
    scrollbar-width: thin;
    scrollbar-color: #2d3650 transparent;
}

.crm-main[b-m0m0rxazyu] {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #f5f7fa;
}

#blazor-error-ui[b-m0m0rxazyu] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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-m0m0rxazyu] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.nav-brand[b-9hyvzyetu9] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    letter-spacing: 0.2px;
}

.nav-brand-icon[b-9hyvzyetu9] {
    font-size: 1.4rem;
    color: #4c8dff;
}

.nav-links[b-9hyvzyetu9] {
    padding: 8px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nav-group[b-9hyvzyetu9] {
    margin-bottom: 6px;
}

.nav-group-label[b-9hyvzyetu9] {
    display: block;
    padding: 10px 16px 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #4a5570;
}

.nav-btn[b-9hyvzyetu9] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: calc(100% - 16px);
    margin: 1px 8px;
    padding: 9px 10px;
    background: transparent;
    border: none;
    color: #8a9ab8;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
    transition: background .15s, color .15s;
}

.nav-btn:hover:not(:disabled)[b-9hyvzyetu9] {
    background: rgba(255, 255, 255, .08);
    color: #e2e8f0;
}

.nav-btn.active[b-9hyvzyetu9] {
    background: rgba(76, 141, 255, .18);
    color: #4c8dff;
}

.nav-btn:disabled[b-9hyvzyetu9] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ─── Systemadministration (durch Warnabfrage geschützt) ──────────────────── */

/* Sitzt am unteren Rand der Navigation, direkt über dem Benutzerblock. */
.nav-group-system[b-9hyvzyetu9] {
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.nav-group-label-system[b-9hyvzyetu9] {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #b08040;
}

.nav-btn-system[b-9hyvzyetu9] {
    color: #7e8aa4;
}

.nav-btn-system:hover:not(:disabled)[b-9hyvzyetu9] {
    background: rgba(245, 158, 11, .12);
    color: #f0c070;
}

.nav-user[b-9hyvzyetu9] {
    margin-top: auto;
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-user-info[b-9hyvzyetu9] {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b8c2d8;
    font-size: 0.82rem;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nav-user-info i[b-9hyvzyetu9] {
    font-size: 1.1rem;
    color: #4c8dff;
    flex-shrink: 0;
}

.nav-user-info span[b-9hyvzyetu9] {
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-logout[b-9hyvzyetu9] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: 1px solid rgba(220, 53, 69, .5);
    color: #f08a95;
    font-size: 0.83rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background .15s, color .15s, border-color .15s;
}

.nav-logout:hover[b-9hyvzyetu9] {
    background: rgba(220, 53, 69, .9);
    border-color: #dc3545;
    color: #fff;
}
/* /Components/Layout/TabContainer.razor.rz.scp.css */
.tab-host[b-2wo5u7ryeh] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ── Tab-Leiste ── */
.tab-bar-wrap[b-2wo5u7ryeh] {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-bottom: 2px solid #e9ecef;
    min-height: 46px;
    flex-shrink: 0;
}

.tab-bar[b-2wo5u7ryeh] {
    display: flex;
    /* stretch statt flex-end: Tabs mit Untertitel sind höher, alle Pills bleiben gleich hoch */
    align-items: stretch;
    padding: 0 12px;
    overflow-x: auto;
    flex: 1;
    min-width: 0;
    gap: 3px;
    /* Nativen Scrollbalken ausblenden – gescrollt wird über die Pfeil-Buttons */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-bar[b-2wo5u7ryeh]::-webkit-scrollbar { display: none; }

/* ── Scroll-Pfeile ── */
.tab-scroll[b-2wo5u7ryeh] {
    flex-shrink: 0;
    width: 30px;
    border: none;
    background: #ffffff;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background .12s, color .12s;
}

.tab-scroll:hover:not(:disabled)[b-2wo5u7ryeh] { background: #f1f3f5; color: #212529; }
.tab-scroll:disabled[b-2wo5u7ryeh] { opacity: .35; cursor: default; }
.tab-scroll[hidden][b-2wo5u7ryeh] { display: none; }

.tab-pill[b-2wo5u7ryeh] {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    margin-bottom: -2px;
    border: 2px solid transparent;
    border-left: 3px solid var(--tab-accent, transparent);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.83rem;
    color: #6c757d;
    background: #f1f3f5;
    transition: background .15s, color .15s;
    user-select: none;
    max-width: 220px;
}

.tab-pill .bi[b-2wo5u7ryeh] { color: var(--tab-accent, inherit); }

.tab-pill:hover[b-2wo5u7ryeh] { background: #e9ecef; color: #495057; }

.tab-pill.is-active[b-2wo5u7ryeh] {
    background: #ffffff;
    color: #212529;
    font-weight: 600;
    border-color: #e9ecef;
    border-left-color: var(--tab-accent, transparent);
    border-bottom-color: #ffffff;
}

.tab-pill[draggable][b-2wo5u7ryeh] { cursor: grab; }

.tab-pill.is-drag-over[b-2wo5u7ryeh] { border-left-color: #0d6efd; }

.tab-pill-text[b-2wo5u7ryeh] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.2;
}

.tab-pill-title[b-2wo5u7ryeh],
.tab-pill-subtitle[b-2wo5u7ryeh] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tab-pill-subtitle[b-2wo5u7ryeh] {
    font-size: 0.7rem;
    font-weight: 400;
    color: #868e96;
}

.tab-pill-close[b-2wo5u7ryeh] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: inherit;
    padding: 0;
    opacity: 0.5;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: background .12s, opacity .12s, color .12s;
}

.tab-pill-close:hover[b-2wo5u7ryeh] {
    background: #f8d7da;
    color: #dc3545;
    opacity: 1;
}

/* ── Tab-Body ── */
.tab-body[b-2wo5u7ryeh] {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
    background: #f5f7fa;
}

.tab-pane[b-2wo5u7ryeh] {
    display: none;
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 1.25rem 1.5rem;
    flex-direction: column;
}

.tab-pane.is-visible[b-2wo5u7ryeh] { display: flex; }

/* ── Welcome Screen ── */
.tab-welcome[b-2wo5u7ryeh] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    gap: 6px;
    color: #adb5bd;
}

.tab-welcome-icon[b-2wo5u7ryeh] {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 1rem;
    line-height: 1;
}

.tab-welcome h3[b-2wo5u7ryeh] { color: #6c757d; font-size: 1.25rem; margin: 0; }
.tab-welcome p[b-2wo5u7ryeh]  { margin: 4px 0 0; color: #adb5bd; }
/* /Components/Shared/AdresseProduktEditorModal.razor.rz.scp.css */
.fm-backdrop[b-db4n5xgcsd] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-modal[b-db4n5xgcsd] {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: min(560px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.fm-header[b-db4n5xgcsd] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.fm-title[b-db4n5xgcsd] {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-close[b-db4n5xgcsd] {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
    padding: 4px 7px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.fm-close:hover[b-db4n5xgcsd] { background: #f1f3f5; color: #212529; }

.fm-body[b-db4n5xgcsd] {
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fm-grid[b-db4n5xgcsd] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fm-row[b-db4n5xgcsd] {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fm-row label[b-db4n5xgcsd] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.req[b-db4n5xgcsd] { color: #dc3545; }

.fm-input[b-db4n5xgcsd] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #212529;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.fm-input:focus[b-db4n5xgcsd] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.fm-input.input-error[b-db4n5xgcsd] { border-color: #dc3545; }
.fm-textarea[b-db4n5xgcsd] { resize: vertical; min-height: 70px; }

.fm-field-error[b-db4n5xgcsd] { font-size: 0.75rem; color: #dc3545; }

.fm-save-error[b-db4n5xgcsd] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
}

.fm-actions[b-db4n5xgcsd] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.fm-btn-cancel[b-db4n5xgcsd] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.87rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.fm-btn-cancel:hover[b-db4n5xgcsd] { background: #f1f3f5; }

.fm-btn-save[b-db4n5xgcsd] {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.fm-btn-save:hover[b-db4n5xgcsd]    { background: #1648c0; }
.fm-btn-save:disabled[b-db4n5xgcsd] { background: #93c5fd; cursor: not-allowed; }

/* ── Produktzuordnung ── */

.pm-fixed-produkt[b-db4n5xgcsd] { padding: 4px 0; }

.pm-modul-count[b-db4n5xgcsd] {
    margin-left: 6px;
    font-weight: 500;
    color: #868e96;
    text-transform: none;
    letter-spacing: 0;
}

.pm-modul-toolbar[b-db4n5xgcsd] {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pm-modul-search[b-db4n5xgcsd] { flex: 1; }

.pm-mini-btn[b-db4n5xgcsd] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 7px;
    padding: 7px 12px;
    font-size: 0.8rem;
    color: #495057;
    cursor: pointer;
    white-space: nowrap;
    transition: background .1s;
}
.pm-mini-btn:hover[b-db4n5xgcsd] { background: #f1f3f5; }

/* Feste Höhe mit Scroll: bei bis zu 40 Modulen darf das Modal nicht ins Endlose wachsen. */
.pm-modul-list[b-db4n5xgcsd] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 10px;
    max-height: 240px;
    overflow-y: auto;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 10px;
}

@media (max-width: 560px) {
    .pm-modul-list[b-db4n5xgcsd] { grid-template-columns: 1fr; }
}

.pm-modul-item[b-db4n5xgcsd] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 7px;
    border-radius: 6px;
    font-size: 0.86rem;
    color: #212529;
    cursor: pointer;
    transition: background .1s;
}
.pm-modul-item:hover[b-db4n5xgcsd]      { background: #f1f3f5; }
.pm-modul-item.is-selected[b-db4n5xgcsd] { background: #eef2ff; color: #3730a3; font-weight: 500; }

.pm-modul-name[b-db4n5xgcsd] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pm-modul-inactive[b-db4n5xgcsd] {
    margin-left: auto;
    font-size: 0.7rem;
    color: #868e96;
    background: #f1f3f5;
    border-radius: 5px;
    padding: 1px 6px;
}

/* ── Anzahl-Stepper für mehrfachfähige Module ── */
.pm-menge[b-db4n5xgcsd] {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #fff;
    border: 1.5px solid #dee2e6;
    border-radius: 6px;
    padding: 1px;
    flex-shrink: 0;
}

.pm-menge-btn[b-db4n5xgcsd] {
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    font-size: 0.7rem;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: background .15s, color .15s;
}
.pm-menge-btn:hover[b-db4n5xgcsd] { background: #e7f1ff; color: #1a56db; }

.pm-menge-wert[b-db4n5xgcsd] {
    min-width: 20px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #212529;
    font-variant-numeric: tabular-nums;
}

.pm-modul-empty[b-db4n5xgcsd] {
    grid-column: 1 / -1;
    font-size: 0.85rem;
    color: #868e96;
    padding: 8px 2px;
}

.pm-check-row[b-db4n5xgcsd] {
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: #212529;
    cursor: pointer;
}
/* /Components/Shared/AdressPickerModal.razor.rz.scp.css */
/* ── Backdrop ── */
.picker-backdrop[b-agi1c3h71y] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ── Modal-Box ── */
.picker-modal[b-agi1c3h71y] {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    width: min(1000px, 95vw);
    height: min(680px, 90vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Header ── */
.picker-header[b-agi1c3h71y] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.picker-title[b-agi1c3h71y] {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.picker-close[b-agi1c3h71y] {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #adb5bd;
    font-size: 1rem;
    padding: 4px 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: background .15s, color .15s;
}
.picker-close:hover[b-agi1c3h71y] { background: #f8d7da; color: #dc3545; }

/* ── Suchleiste ── */
.picker-search-wrap[b-agi1c3h71y] {
    padding: 0.875rem 1.25rem 0.75rem;
    border-bottom: 1px solid #f1f3f5;
    flex-shrink: 0;
}

.picker-search-bar[b-agi1c3h71y] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 13px;
    transition: border-color .2s, box-shadow .2s;
}

.picker-search-bar.focused[b-agi1c3h71y] {
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76, 141, 255, .15);
    background: #fff;
}

.picker-search-icon[b-agi1c3h71y] { color: #adb5bd; flex-shrink: 0; }

.picker-search-input[b-agi1c3h71y] {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.875rem;
    background: transparent;
    color: #212529;
}

.picker-search-clear[b-agi1c3h71y] {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #adb5bd;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    transition: color .15s;
}
.picker-search-clear:hover[b-agi1c3h71y] { color: #6c757d; }

/* ── Tabelle ── */
.picker-table-wrap[b-agi1c3h71y] {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.picker-table[b-agi1c3h71y] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.picker-table thead[b-agi1c3h71y] {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 2;
}

.picker-table th[b-agi1c3h71y] {
    padding: 8px 12px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.picker-th-sort[b-agi1c3h71y] { cursor: pointer; user-select: none; }
.picker-th-sort:hover[b-agi1c3h71y] { background: #e9ecef; color: #343a40; }
.picker-th-sort.is-sorted[b-agi1c3h71y] { color: #4c8dff; }
.picker-sort-hint[b-agi1c3h71y] { opacity: 0.3; }

.picker-table td[b-agi1c3h71y] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
    color: #495057;
}

.picker-row[b-agi1c3h71y] { cursor: pointer; }
.picker-row:hover td[b-agi1c3h71y] { background: #f0f4ff; }

.picker-td-kdnr[b-agi1c3h71y]  { color: #868e96; font-variant-numeric: tabular-nums; white-space: nowrap; width: 70px; }
.picker-td-name[b-agi1c3h71y] { vertical-align: top; }
.picker-td-name .picker-name-main[b-agi1c3h71y] { font-weight: 600; color: #212529; line-height: 1.35; }
.picker-td-name .picker-name-sub[b-agi1c3h71y]  { color: #868e96; font-size: 0.8rem; line-height: 1.3; margin-top: 2px; }
.picker-td-email[b-agi1c3h71y] { color: #4c8dff; font-size: 0.82rem; }

.picker-td-loading[b-agi1c3h71y] {
    text-align: center;
    padding: 2rem !important;
    color: #6c757d;
    font-size: 0.875rem;
}

/* ── Pager ── */
.picker-pager-wrap[b-agi1c3h71y] {
    padding: 0 1.25rem;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

/* ── "Neue Adresse anlegen"-Button in der Suchleiste ── */
.picker-search-wrap[b-agi1c3h71y] {
    display: flex;
    align-items: center;
    gap: 10px;
}
.picker-search-bar[b-agi1c3h71y] { flex: 1; }

.btn-picker-new[b-agi1c3h71y] {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.btn-picker-new:hover[b-agi1c3h71y] { background: #1648c0; }

/* ── Anlage-Formular ── */
.picker-modal-create[b-agi1c3h71y] { height: auto; max-height: 90vh; }

.picker-create-wrap[b-agi1c3h71y] {
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.picker-inline-2[b-agi1c3h71y] {
    display: flex;
    gap: 8px;
}
.picker-inline-2 .post-input[b-agi1c3h71y] { min-width: 0; }
.picker-hausnr[b-agi1c3h71y] { flex: 0 0 90px; }
.picker-plz[b-agi1c3h71y] { flex: 0 0 110px; }

.picker-create-contact-toggle[b-agi1c3h71y] {
    padding-top: 4px;
    border-top: 1px solid #f1f3f5;
}

.picker-checkbox-label[b-agi1c3h71y] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
}

.picker-contact-grid[b-agi1c3h71y] {
    padding-top: 4px;
    border-top: 1px dashed #dee2e6;
}

/* ── Formular-Grid (geteilt mit PostAssignModal-Optik) ── */
.post-form-grid[b-agi1c3h71y] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

.post-form-row[b-agi1c3h71y] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.post-form-row.span2[b-agi1c3h71y] { grid-column: span 2; }

.post-form-row label[b-agi1c3h71y] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.required[b-agi1c3h71y] { color: #dc3545; }

.post-input[b-agi1c3h71y] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 7px 11px;
    font-size: 0.88rem;
    color: #212529;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.post-input:focus[b-agi1c3h71y] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.post-input.input-error[b-agi1c3h71y] { border-color: #dc3545; }
.post-textarea[b-agi1c3h71y] { resize: vertical; min-height: 70px; }

.post-anrede-btns[b-agi1c3h71y] {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.btn-anrede[b-agi1c3h71y] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.82rem;
    cursor: pointer;
    color: #495057;
    transition: border-color .15s, background .15s, color .15s;
}
.btn-anrede:hover[b-agi1c3h71y]  { border-color: #4c8dff; color: #1a56db; }
.btn-anrede.active[b-agi1c3h71y] { border-color: #4c8dff; background: #e7f1ff; color: #1a56db; font-weight: 600; }

.field-error[b-agi1c3h71y] { font-size: 0.75rem; color: #dc3545; }

.post-save-error[b-agi1c3h71y] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
}

.post-form-actions[b-agi1c3h71y] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 4px;
}

.btn-post-back[b-agi1c3h71y] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color .15s, color .15s;
}
.btn-post-back:hover[b-agi1c3h71y] { border-color: #adb5bd; color: #212529; }

.btn-post-save[b-agi1c3h71y] {
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background .15s;
}
.btn-post-save:hover[b-agi1c3h71y]    { background: #1648c0; }
.btn-post-save:disabled[b-agi1c3h71y] { background: #93c5fd; cursor: not-allowed; }
/* /Components/Shared/AnsprechpartnerEditorModal.razor.rz.scp.css */
.fm-backdrop[b-gnb9296nk3] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-modal[b-gnb9296nk3] {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: min(560px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.fm-header[b-gnb9296nk3] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.fm-title[b-gnb9296nk3] {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-close[b-gnb9296nk3] {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
    padding: 4px 7px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.fm-close:hover[b-gnb9296nk3] { background: #f1f3f5; color: #212529; }

.fm-body[b-gnb9296nk3] {
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fm-grid[b-gnb9296nk3] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fm-row[b-gnb9296nk3] {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fm-row label[b-gnb9296nk3] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.req[b-gnb9296nk3] { color: #dc3545; }

.fm-input[b-gnb9296nk3] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #212529;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.fm-input:focus[b-gnb9296nk3] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.fm-input.input-error[b-gnb9296nk3] { border-color: #dc3545; }
.fm-textarea[b-gnb9296nk3] { resize: vertical; min-height: 70px; }

.fm-field-error[b-gnb9296nk3] { font-size: 0.75rem; color: #dc3545; }

.fm-save-error[b-gnb9296nk3] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
}

.fm-actions[b-gnb9296nk3] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.fm-btn-cancel[b-gnb9296nk3] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.87rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.fm-btn-cancel:hover[b-gnb9296nk3] { background: #f1f3f5; }

.fm-btn-save[b-gnb9296nk3] {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.fm-btn-save:hover[b-gnb9296nk3]    { background: #1648c0; }
.fm-btn-save:disabled[b-gnb9296nk3] { background: #93c5fd; cursor: not-allowed; }

.fm-grid-3[b-gnb9296nk3]       { grid-template-columns: 1fr 1fr 1fr; }
.fm-grid-strasse[b-gnb9296nk3] { grid-template-columns: 3fr 1fr; }
.fm-grid-ort[b-gnb9296nk3]     { grid-template-columns: 1fr 3fr; }

/* Trennt die Feldgruppen im nun deutlich längeren Formular. */
.fm-section[b-gnb9296nk3] {
    font-size: 0.74rem;
    font-weight: 700;
    color: #868e96;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-top: 1px solid #e9ecef;
    padding-top: 12px;
    margin-top: 2px;
}

.fm-check[b-gnb9296nk3] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}
.fm-check input[b-gnb9296nk3] { width: 15px; height: 15px; cursor: pointer; }

.fm-meta[b-gnb9296nk3] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 0.76rem;
    color: #868e96;
}
/* /Components/Shared/AnsprechpartnerPickerModal.razor.rz.scp.css */
/* ── Backdrop ── */
.picker-backdrop[b-fms6pryxdn] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ── Modal-Box ── */
.picker-modal[b-fms6pryxdn] {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    width: min(900px, 95vw);
    height: min(640px, 90vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Header ── */
.picker-header[b-fms6pryxdn] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.picker-title[b-fms6pryxdn] {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.picker-close[b-fms6pryxdn] {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #adb5bd;
    font-size: 1rem;
    padding: 4px 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: background .15s, color .15s;
}
.picker-close:hover[b-fms6pryxdn] { background: #f8d7da; color: #dc3545; }

/* ── Suchleiste ── */
.picker-search-wrap[b-fms6pryxdn] {
    padding: 0.875rem 1.25rem 0.75rem;
    border-bottom: 1px solid #f1f3f5;
    flex-shrink: 0;
}

.picker-search-bar[b-fms6pryxdn] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 13px;
    transition: border-color .2s, box-shadow .2s;
}

.picker-search-bar.focused[b-fms6pryxdn] {
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76, 141, 255, .15);
    background: #fff;
}

.picker-search-icon[b-fms6pryxdn] { color: #adb5bd; flex-shrink: 0; }

.picker-search-input[b-fms6pryxdn] {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.875rem;
    background: transparent;
    color: #212529;
}

.picker-search-clear[b-fms6pryxdn] {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #adb5bd;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    transition: color .15s;
}
.picker-search-clear:hover[b-fms6pryxdn] { color: #6c757d; }

/* ── Tabelle ── */
.picker-table-wrap[b-fms6pryxdn] {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.picker-table[b-fms6pryxdn] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.picker-table thead[b-fms6pryxdn] {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 2;
}

.picker-table th[b-fms6pryxdn] {
    padding: 8px 12px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.picker-th-sort[b-fms6pryxdn] { cursor: pointer; user-select: none; }
.picker-th-sort:hover[b-fms6pryxdn] { background: #e9ecef; color: #343a40; }
.picker-th-sort.is-sorted[b-fms6pryxdn] { color: #4c8dff; }
.picker-sort-hint[b-fms6pryxdn] { opacity: 0.3; }

.picker-table td[b-fms6pryxdn] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
    color: #495057;
}

.picker-row[b-fms6pryxdn] { cursor: pointer; }
.picker-row:hover td[b-fms6pryxdn] { background: #f0f4ff; }

.picker-td-name[b-fms6pryxdn] { vertical-align: top; }
.picker-td-name .picker-name-main[b-fms6pryxdn] { font-weight: 600; color: #212529; line-height: 1.35; }
.picker-td-name .picker-name-sub[b-fms6pryxdn]  { color: #868e96; font-size: 0.8rem; line-height: 1.3; margin-top: 2px; }
.picker-td-email[b-fms6pryxdn] { color: #4c8dff; font-size: 0.82rem; }

.picker-td-loading[b-fms6pryxdn] {
    text-align: center;
    padding: 2rem !important;
    color: #6c757d;
    font-size: 0.875rem;
}

/* ── Pager ── */
.picker-pager-wrap[b-fms6pryxdn] {
    padding: 0 1.25rem;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}
/* /Components/Shared/AssignExistingModal.razor.rz.scp.css */
.ax-backdrop[b-bvbnjsq4mx] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ax-modal[b-bvbnjsq4mx] {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: min(720px, 96vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ax-header[b-bvbnjsq4mx] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.ax-title[b-bvbnjsq4mx] {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ax-close[b-bvbnjsq4mx] {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
    padding: 4px 7px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.ax-close:hover[b-bvbnjsq4mx] { background: #f1f3f5; color: #212529; }

/* Tabs */
.ax-tabs[b-bvbnjsq4mx] {
    display: flex;
    gap: 4px;
    padding: 12px 22px 0;
    flex-shrink: 0;
}
.ax-tab[b-bvbnjsq4mx] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}
.ax-tab:hover[b-bvbnjsq4mx] { background: #f1f3f5; color: #343a40; }
.ax-tab.active[b-bvbnjsq4mx] { color: #1a56db; border-bottom-color: #1a56db; }

/* Filterbar */
.ax-filterbar[b-bvbnjsq4mx] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}
.ax-search[b-bvbnjsq4mx] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    background: #fff;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 7px 12px;
    transition: border-color .2s, box-shadow .2s;
}
.ax-search.focused[b-bvbnjsq4mx] {
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76, 141, 255, .15);
}
.ax-search i[b-bvbnjsq4mx] { color: #adb5bd; }
.ax-search input[b-bvbnjsq4mx] {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.875rem;
    background: transparent;
    color: #212529;
}

.ax-filter[b-bvbnjsq4mx] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.82rem;
    color: #495057;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.ax-filter:hover[b-bvbnjsq4mx] { border-color: #adb5bd; }
.ax-filter.active[b-bvbnjsq4mx] {
    background: #e7f1ff;
    border-color: #4c8dff;
    color: #1a56db;
    font-weight: 600;
}

/* Liste */
.ax-list[b-bvbnjsq4mx] {
    flex: 1;
    min-height: 200px;
    overflow-y: auto;
    padding: 6px 12px;
}

.ax-loading[b-bvbnjsq4mx], .ax-empty[b-bvbnjsq4mx] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    min-height: 180px;
    color: #6c757d;
    font-size: 0.88rem;
    text-align: center;
    padding: 1rem;
}
.ax-empty i[b-bvbnjsq4mx] { font-size: 1.6rem; color: #ced4da; }
.ax-empty span[b-bvbnjsq4mx] { font-size: 0.8rem; color: #adb5bd; }

.ax-item[b-bvbnjsq4mx] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .12s;
}
.ax-item:hover[b-bvbnjsq4mx] { background: #f0f4ff; }
.ax-item.selected[b-bvbnjsq4mx] { background: #dbeafe; }

.ax-check[b-bvbnjsq4mx] { color: #4c8dff; font-size: 1.05rem; display: flex; align-items: center; }
.ax-item:not(.selected) .ax-check[b-bvbnjsq4mx] { color: #ced4da; }

.ax-item-main[b-bvbnjsq4mx] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ax-item-primary[b-bvbnjsq4mx] {
    font-weight: 500;
    color: #212529;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ax-item-secondary[b-bvbnjsq4mx] {
    color: #868e96;
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ax-item-date[b-bvbnjsq4mx] {
    color: #adb5bd;
    font-size: 0.76rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.ax-save-error[b-bvbnjsq4mx] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 22px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.82rem;
    color: #b91c1c;
}

.ax-actions[b-bvbnjsq4mx] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}
.ax-selinfo[b-bvbnjsq4mx] { margin-right: auto; font-size: 0.82rem; color: #6c757d; font-weight: 600; }

.ax-btn-cancel[b-bvbnjsq4mx] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.87rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.ax-btn-cancel:hover[b-bvbnjsq4mx] { background: #f1f3f5; }

.ax-btn-save[b-bvbnjsq4mx] {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.ax-btn-save:hover[b-bvbnjsq4mx]    { background: #1648c0; }
.ax-btn-save:disabled[b-bvbnjsq4mx] { background: #93c5fd; cursor: not-allowed; }
/* /Components/Shared/BenutzerPickerModal.razor.rz.scp.css */
/* ── Backdrop ── */
.picker-backdrop[b-c4c7bjel9e] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ── Modal-Box ── */
.picker-modal[b-c4c7bjel9e] {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    width: min(600px, 95vw);
    height: min(600px, 90vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Header ── */
.picker-header[b-c4c7bjel9e] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.picker-title[b-c4c7bjel9e] {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.picker-close[b-c4c7bjel9e] {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #adb5bd;
    font-size: 1rem;
    padding: 4px 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: background .15s, color .15s;
}
.picker-close:hover[b-c4c7bjel9e] { background: #f8d7da; color: #dc3545; }

/* ── Suchleiste ── */
.picker-search-wrap[b-c4c7bjel9e] {
    padding: 0.875rem 1.25rem 0.75rem;
    border-bottom: 1px solid #f1f3f5;
    flex-shrink: 0;
}

.picker-search-bar[b-c4c7bjel9e] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 13px;
    transition: border-color .2s, box-shadow .2s;
}

.picker-search-bar.focused[b-c4c7bjel9e] {
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76, 141, 255, .15);
    background: #fff;
}

.picker-search-icon[b-c4c7bjel9e] { color: #adb5bd; flex-shrink: 0; }

.picker-search-input[b-c4c7bjel9e] {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.875rem;
    background: transparent;
    color: #212529;
}

.picker-search-clear[b-c4c7bjel9e] {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #adb5bd;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    transition: color .15s;
}
.picker-search-clear:hover[b-c4c7bjel9e] { color: #6c757d; }

/* ── Tabelle ── */
.picker-table-wrap[b-c4c7bjel9e] {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.picker-table[b-c4c7bjel9e] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.picker-table thead[b-c4c7bjel9e] {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 2;
}

.picker-table th[b-c4c7bjel9e] {
    padding: 8px 12px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.picker-th-sort[b-c4c7bjel9e] { cursor: pointer; user-select: none; }
.picker-th-sort:hover[b-c4c7bjel9e] { background: #e9ecef; color: #343a40; }
.picker-th-sort.is-sorted[b-c4c7bjel9e] { color: #4c8dff; }
.picker-sort-hint[b-c4c7bjel9e] { opacity: 0.3; }

.picker-table td[b-c4c7bjel9e] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
    color: #495057;
}

.picker-row[b-c4c7bjel9e] { cursor: pointer; }
.picker-row:hover td[b-c4c7bjel9e] { background: #f0f4ff; }

.picker-td-name .picker-name-main[b-c4c7bjel9e] { font-weight: 600; color: #212529; }

.picker-td-loading[b-c4c7bjel9e] {
    text-align: center;
    padding: 2rem !important;
    color: #6c757d;
    font-size: 0.875rem;
}

/* ── Pager ── */
.picker-pager-wrap[b-c4c7bjel9e] {
    padding: 0 1.25rem;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}
/* /Components/Shared/CalendarEventEditorModal.razor.rz.scp.css */
.fm-backdrop[b-derh0eyfob] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-modal[b-derh0eyfob] {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: min(560px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.fm-header[b-derh0eyfob] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.fm-title[b-derh0eyfob] {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-close[b-derh0eyfob] {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
    padding: 4px 7px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.fm-close:hover[b-derh0eyfob] { background: #f1f3f5; color: #212529; }

.fm-body[b-derh0eyfob] {
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fm-grid[b-derh0eyfob] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fm-row[b-derh0eyfob] {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fm-row label[b-derh0eyfob] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.req[b-derh0eyfob] { color: #dc3545; }

.fm-input[b-derh0eyfob] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #212529;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.fm-input:focus[b-derh0eyfob] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.fm-input.input-error[b-derh0eyfob] { border-color: #dc3545; }
.fm-textarea[b-derh0eyfob] { resize: vertical; min-height: 70px; }

.fm-field-error[b-derh0eyfob] { font-size: 0.75rem; color: #dc3545; }

/* ── Picker-Zeilen (Zuständig / Kunde) ── */
.fm-picker[b-derh0eyfob] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
}

.linked-badge[b-derh0eyfob] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #e7f1ff;
    color: #1a56db;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
}

.fm-picker-empty[b-derh0eyfob] {
    font-size: 0.85rem;
    color: #868e96;
    font-style: italic;
}

.fm-picker-btn[b-derh0eyfob] {
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.fm-picker-btn:hover[b-derh0eyfob] { background: #f1f3f5; color: #212529; }

.fm-check[b-derh0eyfob] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
}
.fm-check input[b-derh0eyfob] { width: 16px; height: 16px; cursor: pointer; }

.fm-save-error[b-derh0eyfob] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
}

.fm-actions[b-derh0eyfob] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.fm-btn-cancel[b-derh0eyfob] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.87rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.fm-btn-cancel:hover[b-derh0eyfob] { background: #f1f3f5; }

.fm-btn-save[b-derh0eyfob] {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.fm-btn-save:hover[b-derh0eyfob]    { background: #1648c0; }
.fm-btn-save:disabled[b-derh0eyfob] { background: #93c5fd; cursor: not-allowed; }
/* /Components/Shared/CaseAssignModal.razor.rz.scp.css */
/* ── Backdrop ── */
.post-backdrop[b-s9q508x4ob] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Modal-Karte ── */
.post-modal[b-s9q508x4ob] {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: min(560px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Header ── */
.post-header[b-s9q508x4ob] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.post-title[b-s9q508x4ob] {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-post-close[b-s9q508x4ob] {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
    padding: 4px 7px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.btn-post-close:hover[b-s9q508x4ob] { background: #f1f3f5; color: #212529; }

/* ── Frage ── */
.post-question[b-s9q508x4ob] {
    margin: 0;
    padding: 18px 22px 10px;
    font-size: 0.9rem;
    color: #6c757d;
}

/* ── Optionen ── */
.post-options[b-s9q508x4ob] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 20px;
}

.post-option-btn[b-s9q508x4ob] {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1.5px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    padding: 14px 16px;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s, box-shadow .15s, background .15s;
    width: 100%;
}
.post-option-btn:hover[b-s9q508x4ob] {
    border-color: #4c8dff;
    box-shadow: 0 2px 10px rgba(76,141,255,.12);
    background: #f5f9ff;
}

.post-option-icon[b-s9q508x4ob] {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.opt-blue[b-s9q508x4ob]    { background: #dbeafe; color: #1d4ed8; }
.opt-green[b-s9q508x4ob]   { background: #dcfce7; color: #16a34a; }

.post-option-text[b-s9q508x4ob] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.post-option-text strong[b-s9q508x4ob] { font-size: 0.9rem; color: #212529; }
.post-option-text span[b-s9q508x4ob]   { font-size: 0.8rem; color: #6c757d; }

.post-option-arrow[b-s9q508x4ob] { color: #adb5bd; font-size: 0.9rem; flex-shrink: 0; }

/* ── Formular ── */
.post-form-wrap[b-s9q508x4ob] {
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-form-grid[b-s9q508x4ob] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

.post-form-row[b-s9q508x4ob] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.post-form-row.span2[b-s9q508x4ob] { grid-column: span 2; }

.post-form-row label[b-s9q508x4ob] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.required[b-s9q508x4ob] { color: #dc3545; }

.post-input[b-s9q508x4ob] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 7px 11px;
    font-size: 0.88rem;
    color: #212529;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.post-input:focus[b-s9q508x4ob] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.post-input.input-error[b-s9q508x4ob] { border-color: #dc3545; }
.post-textarea[b-s9q508x4ob] { resize: vertical; min-height: 70px; }

.field-error[b-s9q508x4ob]  { font-size: 0.75rem; color: #dc3545; }

.post-save-error[b-s9q508x4ob] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
}

.post-form-actions[b-s9q508x4ob] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 4px;
}

.btn-post-back[b-s9q508x4ob] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color .15s, color .15s;
}
.btn-post-back:hover[b-s9q508x4ob] { border-color: #adb5bd; color: #212529; }

.btn-post-save[b-s9q508x4ob] {
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background .15s;
}
.btn-post-save:hover[b-s9q508x4ob]    { background: #1648c0; }
.btn-post-save:disabled[b-s9q508x4ob] { background: #93c5fd; cursor: not-allowed; }

/* ── Done-View ── */
.post-done[b-s9q508x4ob] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 32px 24px;
    text-align: center;
}
.post-done-icon[b-s9q508x4ob] {
    font-size: 3rem;
    color: #16a34a;
}
.post-done p[b-s9q508x4ob] {
    margin: 0;
    font-size: 0.92rem;
    color: #374151;
    max-width: 380px;
}

/* ── Verknüpfte Adresse/Ansprechpartner (Zuordnen / Zuordnung entfernen) ── */
.field-hint[b-s9q508x4ob] { font-size: 0.82rem; color: #868e96; font-style: italic; }

.linked-entity[b-s9q508x4ob] { display: flex; align-items: center; gap: 8px; }
.linked-badge[b-s9q508x4ob] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #e7f1ff;
    color: #1a56db;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
}
.btn-linked-clear[b-s9q508x4ob] {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #adb5bd;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    transition: color .15s;
}
.btn-linked-clear:hover[b-s9q508x4ob] { color: #dc3545; }
.btn-link-assign[b-s9q508x4ob] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    border: 1px dashed #adb5bd;
    background: transparent;
    color: #6c757d;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.btn-link-assign:hover[b-s9q508x4ob] { background: #f0f4ff; border-color: #4c8dff; color: #1a56db; }
.btn-link-assign.assign-error[b-s9q508x4ob] { border-color: #dc3545; color: #dc3545; }
/* /Components/Shared/CaseFeedPreviewPanel.razor.rz.scp.css */
/* ─── Modal-Grundgerüst ─────────────────────────────────────────────
   z-index 1100 ist die Standard-Modalebene. Bewusst nicht höher: aus dem Anhang-Zweig
   heraus öffnet der DocumentViewerModal (1300) und muss über dieser Vorschau liegen. */

.cfp-backdrop[b-porwebak7h] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cfp-modal[b-porwebak7h] {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    width: min(1100px, 94vw);
    height: min(880px, 92vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cfp-header[b-porwebak7h] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}
.cfp-subject[b-porwebak7h] {
    font-weight: 600;
    font-size: 1rem;
    color: #212529;
    /* Im Modal ist Platz — lange Betreffzeilen umbrechen statt abzuschneiden. */
    white-space: normal;
    word-break: break-word;
}
.cfp-header-actions[b-porwebak7h] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-cfp-open[b-porwebak7h] {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1a56db;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
}
.btn-cfp-open:hover[b-porwebak7h] { background: #1648c0; }

.btn-cfp-close[b-porwebak7h] {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 0.95rem;
    padding: 3px 7px;
    border-radius: 5px;
}
.btn-cfp-close:hover[b-porwebak7h] { background: #f1f3f5; color: #212529; }

.cfp-body[b-porwebak7h] {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.cfp-meta[b-porwebak7h] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
    font-size: 0.82rem;
}
.cfp-meta-row[b-porwebak7h] {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.cfp-meta-label[b-porwebak7h] {
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: .03em;
    min-width: 100px;
    flex-shrink: 0;
}
.cfp-meta-value[b-porwebak7h] {
    color: #212529;
    word-break: break-word;
}

.cfp-body-wrap[b-porwebak7h] {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.cfp-iframe[b-porwebak7h] {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #fff;
}

.cfp-text-body[b-porwebak7h] {
    padding: 12px 16px;
    font-size: 0.88rem;
    color: #212529;
    white-space: pre-wrap;
    word-break: break-word;
}
.cfp-html-body[b-porwebak7h] { white-space: normal; }

.cfp-file-actions[b-porwebak7h] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 16px 12px;
}

.cfp-file-actions .btn-cfp-download[b-porwebak7h] { margin: 0; }

.btn-cfp-download[b-porwebak7h] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin: 0 16px 12px;
    background: #1a56db;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}
.btn-cfp-download:hover[b-porwebak7h] { background: #1648c0; color: #fff; }

.cfp-attachment-hint[b-porwebak7h] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 16px 12px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #6c757d;
}
/* /Components/Shared/CasePickerModal.razor.rz.scp.css */
/* ── Backdrop ── */
.picker-backdrop[b-jl4clqjzn5] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ── Modal-Box ── */
.picker-modal[b-jl4clqjzn5] {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    width: min(800px, 95vw);
    height: min(600px, 90vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Header ── */
.picker-header[b-jl4clqjzn5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.picker-title[b-jl4clqjzn5] {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.picker-close[b-jl4clqjzn5] {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #adb5bd;
    font-size: 1rem;
    padding: 4px 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: background .15s, color .15s;
}
.picker-close:hover[b-jl4clqjzn5] { background: #f8d7da; color: #dc3545; }

/* ── Suchleiste ── */
.picker-search-wrap[b-jl4clqjzn5] {
    padding: 0.875rem 1.25rem 0.75rem;
    border-bottom: 1px solid #f1f3f5;
    flex-shrink: 0;
}

.picker-filter-row[b-jl4clqjzn5] {
    display: flex;
    align-items: center;
    gap: 10px;
}
.picker-filter-row .picker-search-bar[b-jl4clqjzn5] { flex: 1; }

.picker-filter-toggle[b-jl4clqjzn5] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.82rem;
    color: #495057;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s, border-color .15s, color .15s;
}
.picker-filter-toggle:hover[b-jl4clqjzn5] { border-color: #adb5bd; }
.picker-filter-toggle.active[b-jl4clqjzn5] {
    background: #e7f1ff;
    border-color: #4c8dff;
    color: #1a56db;
    font-weight: 600;
}

.picker-search-bar[b-jl4clqjzn5] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 13px;
    transition: border-color .2s, box-shadow .2s;
}

.picker-search-bar.focused[b-jl4clqjzn5] {
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76, 141, 255, .15);
    background: #fff;
}

.picker-search-icon[b-jl4clqjzn5] { color: #adb5bd; flex-shrink: 0; }

.picker-search-input[b-jl4clqjzn5] {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.875rem;
    background: transparent;
    color: #212529;
}

.picker-search-clear[b-jl4clqjzn5] {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #adb5bd;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    transition: color .15s;
}
.picker-search-clear:hover[b-jl4clqjzn5] { color: #6c757d; }

/* ── Tabelle ── */
.picker-table-wrap[b-jl4clqjzn5] {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.picker-table[b-jl4clqjzn5] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.picker-table thead[b-jl4clqjzn5] {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 2;
}

.picker-table th[b-jl4clqjzn5] {
    padding: 8px 12px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.picker-th-sort[b-jl4clqjzn5] { cursor: pointer; user-select: none; }
.picker-th-sort:hover[b-jl4clqjzn5] { background: #e9ecef; color: #343a40; }
.picker-th-sort.is-sorted[b-jl4clqjzn5] { color: #4c8dff; }
.picker-sort-hint[b-jl4clqjzn5] { opacity: 0.3; }

.picker-table td[b-jl4clqjzn5] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
    color: #495057;
}

.picker-row[b-jl4clqjzn5] { cursor: pointer; }
.picker-row:hover td[b-jl4clqjzn5] { background: #f0f4ff; }

.picker-td-kdnr[b-jl4clqjzn5]  { color: #868e96; font-variant-numeric: tabular-nums; white-space: nowrap; width: 100px; }
.picker-td-name .picker-name-main[b-jl4clqjzn5] { font-weight: 600; color: #212529; }
.picker-td-email[b-jl4clqjzn5] { color: #4c8dff; font-size: 0.82rem; }

.picker-td-loading[b-jl4clqjzn5] {
    text-align: center;
    padding: 2rem !important;
    color: #6c757d;
    font-size: 0.875rem;
}

/* ── Pager ── */
.picker-pager-wrap[b-jl4clqjzn5] {
    padding: 0 1.25rem;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}
/* /Components/Shared/CaseTypeChangeModal.razor.rz.scp.css */
.ct-backdrop[b-ttl78q5ers] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-modal[b-ttl78q5ers] {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: min(520px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.ct-header[b-ttl78q5ers] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.ct-title[b-ttl78q5ers] {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ct-close[b-ttl78q5ers] {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
    padding: 4px 7px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.ct-close:hover[b-ttl78q5ers] { background: #f1f3f5; color: #212529; }

.ct-body[b-ttl78q5ers] {
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ct-question[b-ttl78q5ers] {
    margin: 0;
    font-size: 0.95rem;
    color: #212529;
}

.ct-hints[b-ttl78q5ers] {
    margin: 0;
    padding-left: 18px;
    font-size: 0.83rem;
    color: #6c757d;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ct-check[b-ttl78q5ers] {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.88rem;
    color: #212529;
    cursor: pointer;
}
.ct-check input[b-ttl78q5ers] { margin-top: 2px; flex-shrink: 0; }

.ct-check-hint[b-ttl78q5ers] {
    display: block;
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 3px;
}

.ct-actions[b-ttl78q5ers] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.ct-btn-cancel[b-ttl78q5ers] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.87rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.ct-btn-cancel:hover[b-ttl78q5ers] { background: #f1f3f5; }

.ct-btn-save[b-ttl78q5ers] {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.ct-btn-save:hover[b-ttl78q5ers]    { background: #1648c0; }
.ct-btn-save:disabled[b-ttl78q5ers] { background: #93c5fd; cursor: not-allowed; }
/* /Components/Shared/DocumentViewerModal.razor.rz.scp.css */
/* ─── Modal-Grundgerüst ───────────────────────────────────────────────────────
   z-index bewusst über den übrigen Modals (1100): die Vorschau kann aus einem
   bereits offenen Dialog heraus geöffnet werden (z. B. TaskEditor). */

.dv-backdrop[b-0ykevbpr1x] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .62);
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dv-modal[b-0ykevbpr1x] {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    width: min(1100px, 94vw);
    height: min(880px, 92vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dv-header[b-0ykevbpr1x] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.dv-title[b-0ykevbpr1x] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
}

.dv-name[b-0ykevbpr1x] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dv-size[b-0ykevbpr1x] {
    font-size: 0.76rem;
    font-weight: 400;
    color: #6c757d;
    flex-shrink: 0;
}

.dv-actions[b-0ykevbpr1x] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.dv-action[b-0ykevbpr1x] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.82rem;
    color: #495057;
    text-decoration: none;
    white-space: nowrap;
    transition: background .1s, border-color .1s;
}
.dv-action:hover[b-0ykevbpr1x] { background: #f1f3f5; border-color: #cbd5e1; color: #212529; }

.dv-close[b-0ykevbpr1x] {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
    padding: 5px 8px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.dv-close:hover[b-0ykevbpr1x] { background: #f1f3f5; color: #212529; }

/* ─── Vorschaufläche ──────────────────────────────────────────────────────── */

.dv-body[b-0ykevbpr1x] {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 12px;
}

.dv-img[b-0ykevbpr1x] {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dv-pdf[b-0ykevbpr1x] {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}
/* /Components/Shared/EmailAttachmentBar.razor.rz.scp.css */
.eab-bar[b-jsyza34aed] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}

.eab-label[b-jsyza34aed] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    margin-right: 4px;
}

.eab-chip[b-jsyza34aed] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.82rem;
    color: #334155;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}

.eab-chip:hover[b-jsyza34aed] {
    background: #e7f1ff;
    border-color: #4c8dff;
    color: #1a56db;
}

.eab-chip-disabled[b-jsyza34aed] {
    opacity: .6;
    cursor: not-allowed;
}

.eab-chip-disabled:hover[b-jsyza34aed] {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #334155;
}

.eab-name[b-jsyza34aed] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 240px;
}

.eab-size[b-jsyza34aed] {
    color: #94a3b8;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.eab-action[b-jsyza34aed] {
    font-size: 0.75rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.eab-chip:hover .eab-action[b-jsyza34aed] { color: #1a56db; }
/* /Components/Shared/EmailAttachmentPicker.razor.rz.scp.css */
.eap[b-3o7waxu41h] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.eap-dropzone[b-3o7waxu41h] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: var(--crm-attachment-bg, #f1f5f9);
    cursor: pointer;
    text-align: center;
    font-size: 0.82rem;
    color: #475569;
    transition: border-color .15s, background .15s;
}

.eap-dropzone:hover[b-3o7waxu41h] { border-color: #4c8dff; }

.eap-dropzone > .bi[b-3o7waxu41h] {
    font-size: 1.1rem;
    color: var(--crm-attachment-fg, #475569);
}

/* Wird vom JS gesetzt (dragover feuert zu oft für den Circuit). */
.eap-dropzone.fu-dropzone-over[b-3o7waxu41h] {
    border-color: #1a56db;
    background: #dbeafe;
}

/* Der echte Input ist unsichtbar; geklickt wird die Dropzone. */
.eap-input[b-3o7waxu41h] { display: none; }

.eap-library-btn[b-3o7waxu41h] {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8rem;
    color: #1a56db;
    cursor: pointer;
}

.eap-library-btn:hover[b-3o7waxu41h] { text-decoration: underline; }

/* ─── Gewählte Anhänge ────────────────────────────────────────────────────── */

.eap-chips[b-3o7waxu41h] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eap-chip[b-3o7waxu41h] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.8rem;
    color: #334155;
}

.eap-chip > .bi[b-3o7waxu41h] { color: #6c757d; flex-shrink: 0; }

.eap-chip-uploading[b-3o7waxu41h] { border-color: #bfdbfe; background: #eff6ff; }
.eap-chip-failed[b-3o7waxu41h]    { border-color: #fca5a5; background: #fff5f5; }

.eap-chip-name[b-3o7waxu41h] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.eap-chip-size[b-3o7waxu41h],
.eap-chip-progress[b-3o7waxu41h] {
    color: #94a3b8;
    font-size: 0.73rem;
    flex-shrink: 0;
}

.eap-chip-remove[b-3o7waxu41h] {
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    flex-shrink: 0;
}

.eap-chip-remove:hover[b-3o7waxu41h] { color: #dc3545; }

.eap-total[b-3o7waxu41h] {
    font-size: 0.75rem;
    color: #6c757d;
}

.eap-error[b-3o7waxu41h] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #b91c1c;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 6px 10px;
}
/* /Components/Shared/EmailComposeModal.razor.rz.scp.css */
.mail-backdrop[b-maqg1uak5f] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mail-modal[b-maqg1uak5f] {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: min(1000px, 96vw);
    /* Feste Höhe statt max-height: Header und Button-Leiste bleiben dadurch immer sichtbar,
       gescrollt wird nur im Editor. Muster wie in CasePickerModal. */
    height: min(900px, 92vh);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mail-header[b-maqg1uak5f] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.mail-title[b-maqg1uak5f] {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-mail-close[b-maqg1uak5f] {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
    padding: 4px 7px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.btn-mail-close:hover[b-maqg1uak5f] { background: #f1f3f5; color: #212529; }

.mail-body[b-maqg1uak5f] {
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
    /* Der Body verteilt nur die Höhe; auto dient als Sicherheitsventil für sehr
       kleine Fenster oder viele Anhänge. Im Normalfall scrollt nur der Editor. */
    overflow-y: auto;
}

/* Kopffelder und Anhang-Bereich behalten ihre Höhe, der Editor bekommt den Rest. */
.mail-body > .mail-field[b-maqg1uak5f],
.mail-body > .mail-tools[b-maqg1uak5f],
.mail-body[b-maqg1uak5f] >  .ef-field,
.mail-body > .btn-mail-cc[b-maqg1uak5f],
.mail-body > .mail-save-error[b-maqg1uak5f],
.mail-body[b-maqg1uak5f] >  .eap {
    flex-shrink: 0;
}

.mail-loading[b-maqg1uak5f] {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.9rem;
    padding: 20px 0;
}

.mail-field[b-maqg1uak5f] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mail-field > label[b-maqg1uak5f] {
    width: 60px;
    flex-shrink: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #495057;
    text-align: right;
}

.mail-input[b-maqg1uak5f] {
    flex: 1;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.88rem;
    color: #212529;
    background: #fff;
    transition: border-color .15s;
}
.mail-input:focus[b-maqg1uak5f] {
    outline: none;
    border-color: #1a56db;
}

select.mail-input[b-maqg1uak5f] { cursor: pointer; }

.btn-mail-cc[b-maqg1uak5f] {
    align-self: flex-start;
    margin-left: 70px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1a56db;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0;
    transition: color .15s;
}
.btn-mail-cc:hover[b-maqg1uak5f] { color: #1648c0; text-decoration: underline; }

.mail-save-error[b-maqg1uak5f] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
}

.mail-actions[b-maqg1uak5f] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.btn-mail-cancel[b-maqg1uak5f] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.87rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.btn-mail-cancel:hover[b-maqg1uak5f] { background: #f1f3f5; }

.btn-mail-send[b-maqg1uak5f] {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 24px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.btn-mail-send:hover[b-maqg1uak5f]    { background: #1648c0; }
.btn-mail-send:disabled[b-maqg1uak5f] { background: #93c5fd; cursor: not-allowed; }

/* ── Werkzeugleiste über dem Editor (Vorlagen, Signatur) ──
   Bewusst außerhalb der TinyMCE-Toolbar: die ist reines JS und käme nicht an den
   Blazor-Zustand (Kontext des Vorgangs, geöffneter Picker) heran. */
.mail-tools[b-maqg1uak5f] {
    display: flex;
    gap: 6px;
    /* Kein margin-bottom: der Abstand zum Editor kommt aus dem gap des .mail-body. */
}

.btn-mail-tool[b-maqg1uak5f] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: .82rem;
    cursor: pointer;
}

.btn-mail-tool:hover[b-maqg1uak5f] {
    background: #f1f3f5;
    color: #212529;
}

.btn-mail-tool i[b-maqg1uak5f] { color: #0d6efd; }
/* /Components/Shared/EmailVorlagenPickerModal.razor.rz.scp.css */
/* Liegt über dem E-Mail-Fenster (z-index 1100) – sonst verschwände der Picker dahinter. */
.vp-backdrop[b-mq0xzjrbtg] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.vp-modal[b-mq0xzjrbtg] {
    width: min(860px, 95vw);
    max-height: min(680px, 90vh);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
    overflow: hidden;
}

/* ── Header ── */
.vp-header[b-mq0xzjrbtg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
}

.vp-title[b-mq0xzjrbtg] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #212529;
}

.vp-title i[b-mq0xzjrbtg] { color: #0d6efd; }

.vp-close[b-mq0xzjrbtg] {
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    font-size: .95rem;
    padding: 4px 6px;
    border-radius: 6px;
}

.vp-close:hover[b-mq0xzjrbtg] { background: #f1f3f5; color: #212529; }

/* ── Suche ── */
.vp-search-wrap[b-mq0xzjrbtg] { padding: 12px 16px 6px; }

.vp-search-bar[b-mq0xzjrbtg] {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 6px 10px;
    background: #fff;
}

.vp-search-bar:focus-within[b-mq0xzjrbtg] {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15);
}

.vp-search-icon[b-mq0xzjrbtg] { color: #adb5bd; }

.vp-search-input[b-mq0xzjrbtg] {
    flex: 1;
    border: none;
    outline: none;
    font-size: .9rem;
    background: transparent;
}

.vp-search-clear[b-mq0xzjrbtg] {
    border: none;
    background: transparent;
    color: #adb5bd;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.vp-search-clear:hover[b-mq0xzjrbtg] { color: #6c757d; }

/* ── Körper: Liste links, Vorschau rechts ── */
.vp-body[b-mq0xzjrbtg] {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 0;
    padding: 6px 16px 12px;
}

.vp-list-pane[b-mq0xzjrbtg] {
    width: 300px;
    flex: 0 0 300px;
    overflow-y: auto;
    padding-right: 12px;
    border-right: 1px solid #e9ecef;
}

.vp-preview-pane[b-mq0xzjrbtg] {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding-left: 12px;
}

.vp-group + .vp-group[b-mq0xzjrbtg] { margin-top: 10px; }

.vp-group-label[b-mq0xzjrbtg] {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #adb5bd;
    padding: 6px 4px 4px;
}

.vp-item[b-mq0xzjrbtg] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 8px;
    padding: 7px 10px;
    cursor: pointer;
}

.vp-item:hover[b-mq0xzjrbtg] { background: #f8f9fa; }

.vp-item.is-selected[b-mq0xzjrbtg] {
    background: #e7f1ff;
    border-color: #9ec5fe;
}

.vp-item-name[b-mq0xzjrbtg] {
    font-size: .9rem;
    font-weight: 600;
    color: #212529;
}

.vp-item-desc[b-mq0xzjrbtg] {
    font-size: .78rem;
    color: #6c757d;
}

/* Vorschau des gerenderten Bausteins – vom übrigen UI abgesetzt, damit Schriftgrößen
   aus der Vorlage nicht wie Teil der Anwendung wirken. */
.vp-preview[b-mq0xzjrbtg] {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    font-size: .9rem;
    color: #212529;
    overflow-wrap: break-word;
}

.vp-preview :deep(img)[b-mq0xzjrbtg],
.vp-preview :deep(table)[b-mq0xzjrbtg] {
    max-width: 100%;
    height: auto;
}

.vp-preview-hint[b-mq0xzjrbtg],
.vp-empty[b-mq0xzjrbtg],
.vp-loading[b-mq0xzjrbtg] {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: .85rem;
    padding: 16px 8px;
}

.vp-empty[b-mq0xzjrbtg] { flex-direction: column; text-align: center; }
.vp-empty i[b-mq0xzjrbtg] { font-size: 1.4rem; color: #ced4da; }

/* ── Fehler & Aktionen ── */
.vp-error[b-mq0xzjrbtg] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 16px 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff5f5;
    border: 1px solid #f5c2c7;
    color: #842029;
    font-size: .85rem;
}

.vp-actions[b-mq0xzjrbtg] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.btn-vp-cancel[b-mq0xzjrbtg] {
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: .88rem;
    cursor: pointer;
}

.btn-vp-cancel:hover[b-mq0xzjrbtg] { background: #f1f3f5; }

.btn-vp-insert[b-mq0xzjrbtg] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: #0d6efd;
    color: #fff;
    border-radius: 8px;
    padding: 6px 16px;
    font-size: .88rem;
    cursor: pointer;
}

.btn-vp-insert:hover:not(:disabled)[b-mq0xzjrbtg] { background: #0b5ed7; }

.btn-vp-insert:disabled[b-mq0xzjrbtg] {
    background: #adb5bd;
    cursor: not-allowed;
}
/* /Components/Shared/EmpfaengerFeld.razor.rz.scp.css */
/* Empfängerfeld mit Chips — greift die Optik von .mail-input im Compose-Fenster auf. */

/* .mail-field aus EmailComposeModal.razor.css greift hier nicht: die CSS-Isolation vergibt je
   Komponente ein eigenes Scope-Attribut. Die Basisstile stehen deshalb noch einmal hier. */
.ef-field[b-d4tpuacxen] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ef-field > label[b-d4tpuacxen] {
    width: 60px;
    flex-shrink: 0;
    padding-top: 9px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #495057;
    text-align: right;
}

.ef-box[b-d4tpuacxen] {
    position: relative;
    flex: 1;
    min-width: 0;
}

.ef-chips[b-d4tpuacxen] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-height: 38px;
    padding: 4px 8px;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    cursor: text;
    transition: border-color .15s;
}

.ef-chips:focus-within[b-d4tpuacxen] {
    border-color: #1a56db;
}

.ef-chip[b-d4tpuacxen] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 2px 4px 2px 9px;
    border-radius: 12px;
    background: #eef2ff;
    color: #1a56db;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Offensichtlich keine Adresse — nur ein Hinweis, der Versand wird nicht blockiert. */
.ef-chip-fehler[b-d4tpuacxen] {
    background: #fdecea;
    color: #b02a37;
}

.ef-chip-x[b-d4tpuacxen] {
    display: inline-flex;
    align-items: center;
    border: none;
    background: none;
    padding: 0 2px;
    cursor: pointer;
    color: inherit;
    opacity: .6;
    font-size: 0.9rem;
    line-height: 1;
}

.ef-chip-x:hover[b-d4tpuacxen] {
    opacity: 1;
}

.ef-input[b-d4tpuacxen] {
    flex: 1;
    min-width: 140px;
    border: none;
    outline: none;
    padding: 4px 2px;
    font-size: 0.88rem;
    color: #212529;
    background: transparent;
}

.ef-drop[b-d4tpuacxen] {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

.ef-drop-item[b-d4tpuacxen] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 7px 12px;
    cursor: pointer;
}

.ef-drop-item:hover[b-d4tpuacxen],
.ef-drop-item.aktiv[b-d4tpuacxen] {
    background: #eef2ff;
}

.ef-drop-name[b-d4tpuacxen] {
    font-size: 0.86rem;
    color: #212529;
}

.ef-drop-mail[b-d4tpuacxen] {
    font-size: 0.78rem;
    color: #6c757d;
}
/* /Components/Shared/FilePickerModal.razor.rz.scp.css */
/* ── Backdrop ── */
.picker-backdrop[b-s215ei4ap6] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ── Modal-Box ── */
.picker-modal[b-s215ei4ap6] {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    width: min(800px, 95vw);
    height: min(600px, 90vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Header ── */
.picker-header[b-s215ei4ap6] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.picker-title[b-s215ei4ap6] {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.picker-close[b-s215ei4ap6] {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #adb5bd;
    font-size: 1rem;
    padding: 4px 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: background .15s, color .15s;
}
.picker-close:hover[b-s215ei4ap6] { background: #f8d7da; color: #dc3545; }

/* ── Suchleiste ── */
.picker-search-wrap[b-s215ei4ap6] {
    padding: 0.875rem 1.25rem 0.75rem;
    border-bottom: 1px solid #f1f3f5;
    flex-shrink: 0;
}

.picker-filter-row[b-s215ei4ap6] {
    display: flex;
    align-items: center;
    gap: 10px;
}
.picker-filter-row .picker-search-bar[b-s215ei4ap6] { flex: 1; }

.picker-filter-toggle[b-s215ei4ap6] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.82rem;
    color: #495057;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s, border-color .15s, color .15s;
}
.picker-filter-toggle:hover[b-s215ei4ap6] { border-color: #adb5bd; }
.picker-filter-toggle.active[b-s215ei4ap6] {
    background: #e7f1ff;
    border-color: #4c8dff;
    color: #1a56db;
    font-weight: 600;
}

.picker-search-bar[b-s215ei4ap6] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 13px;
    transition: border-color .2s, box-shadow .2s;
}

.picker-search-bar.focused[b-s215ei4ap6] {
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76, 141, 255, .15);
    background: #fff;
}

.picker-search-icon[b-s215ei4ap6] { color: #adb5bd; flex-shrink: 0; }

.picker-search-input[b-s215ei4ap6] {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.875rem;
    background: transparent;
    color: #212529;
}

.picker-search-clear[b-s215ei4ap6] {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #adb5bd;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    transition: color .15s;
}
.picker-search-clear:hover[b-s215ei4ap6] { color: #6c757d; }

/* ── Tabelle ── */
.picker-table-wrap[b-s215ei4ap6] {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.picker-table[b-s215ei4ap6] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.picker-table thead[b-s215ei4ap6] {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 2;
}

.picker-table th[b-s215ei4ap6] {
    padding: 8px 12px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.picker-th-sort[b-s215ei4ap6] { cursor: pointer; user-select: none; }
.picker-th-sort:hover[b-s215ei4ap6] { background: #e9ecef; color: #343a40; }
.picker-th-sort.is-sorted[b-s215ei4ap6] { color: #4c8dff; }
.picker-sort-hint[b-s215ei4ap6] { opacity: 0.3; }

.picker-table td[b-s215ei4ap6] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
    color: #495057;
}

.picker-row[b-s215ei4ap6] { cursor: pointer; }
.picker-row:hover td[b-s215ei4ap6] { background: #f0f4ff; }

.picker-td-kdnr[b-s215ei4ap6]  { color: #868e96; font-variant-numeric: tabular-nums; white-space: nowrap; width: 100px; }
.picker-td-name .picker-name-main[b-s215ei4ap6] { font-weight: 600; color: #212529; }
.picker-td-email[b-s215ei4ap6] { color: #4c8dff; font-size: 0.82rem; }

.picker-td-loading[b-s215ei4ap6] {
    text-align: center;
    padding: 2rem !important;
    color: #6c757d;
    font-size: 0.875rem;
}

/* ── Pager ── */
.picker-pager-wrap[b-s215ei4ap6] {
    padding: 0 1.25rem;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

/* ── Ergänzungen für die Datei-Auswahl ── */

.fp-type-filter[b-s215ei4ap6] {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
    font-size: 0.85rem;
    color: #212529;
    background: #fff;
}

.fp-th-check[b-s215ei4ap6],
.fp-td-check[b-s215ei4ap6] {
    width: 34px;
    text-align: center;
}

.fp-row-selected[b-s215ei4ap6] { background: #eff6ff; }

.fp-hint[b-s215ei4ap6] {
    margin-left: 8px;
    font-size: 0.72rem;
    color: #94a3b8;
}

.fp-actions[b-s215ei4ap6] {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.fp-btn-cancel[b-s215ei4ap6],
.fp-btn-confirm[b-s215ei4ap6] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.fp-btn-cancel[b-s215ei4ap6] {
    background: #fff;
    border: 1px solid #dee2e6;
    color: #495057;
}

.fp-btn-cancel:hover[b-s215ei4ap6] { background: #f8f9fa; }

.fp-btn-confirm[b-s215ei4ap6] {
    background: #1a56db;
    border: 1px solid #1a56db;
    color: #fff;
}

.fp-btn-confirm:hover:not(:disabled)[b-s215ei4ap6] { background: #1745b0; }

.fp-btn-confirm:disabled[b-s215ei4ap6] {
    opacity: .55;
    cursor: not-allowed;
}
/* /Components/Shared/FilePreviewPanel.razor.rz.scp.css */
/* Aufklapp-Mechanik 1:1 wie .cfp-panel/.email-preview-panel. */
.fpp-panel[b-xruolo4bh5] {
    flex: 0 0 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-top: 2px solid #e9ecef;
    background: #fff;
    transition: flex-basis .2s ease;
}
.fpp-panel.fpp-open[b-xruolo4bh5] {
    flex: 0 0 42%;
}

.fpp-empty[b-xruolo4bh5] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    color: #dee2e6;
    font-size: 0.95rem;
}
.fpp-empty i[b-xruolo4bh5] { font-size: 2.5rem; }

.fpp-header[b-xruolo4bh5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px 8px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}
.fpp-subject[b-xruolo4bh5] {
    font-weight: 600;
    font-size: 0.95rem;
    color: #212529;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-fpp-close[b-xruolo4bh5] {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 0.95rem;
    padding: 3px 7px;
    border-radius: 5px;
    flex-shrink: 0;
}
.btn-fpp-close:hover[b-xruolo4bh5] { background: #f1f3f5; color: #212529; }

.fpp-body[b-xruolo4bh5] {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.fpp-meta[b-xruolo4bh5] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
    font-size: 0.82rem;
}
.fpp-meta-row[b-xruolo4bh5] {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.fpp-meta-label[b-xruolo4bh5] {
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: .03em;
    min-width: 100px;
    flex-shrink: 0;
}
.fpp-meta-value[b-xruolo4bh5] {
    color: #212529;
    word-break: break-word;
}

.fpp-text-body[b-xruolo4bh5] {
    padding: 12px 16px;
    font-size: 0.88rem;
    color: #212529;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Inline-Vorschau für Bilder und PDFs. */
.fpp-preview-img[b-xruolo4bh5] {
    display: block;
    max-width: calc(100% - 32px);
    max-height: 100%;
    object-fit: contain;
    margin: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #f8f9fa;
}

.fpp-preview-pdf[b-xruolo4bh5] {
    flex: 1;
    min-height: 320px;
    width: calc(100% - 32px);
    margin: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #fff;
}

.btn-fpp-download[b-xruolo4bh5] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin: 12px 16px;
    background: #1a56db;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}
.btn-fpp-download:hover[b-xruolo4bh5] { background: #1648c0; color: #fff; }

.fpp-hint[b-xruolo4bh5] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 16px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #6c757d;
}
/* /Components/Shared/FileUploadModal.razor.rz.scp.css */
/* ─── Modal-Grundgerüst (Konvention aus TaskQuickCreateModal) ─────────────── */

.fm-backdrop[b-9o29dvkcaf] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-modal[b-9o29dvkcaf] {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: min(560px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.fm-header[b-9o29dvkcaf] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.fm-title[b-9o29dvkcaf] {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-close[b-9o29dvkcaf] {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
    padding: 4px 7px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.fm-close:hover[b-9o29dvkcaf] { background: #f1f3f5; color: #212529; }

.fm-body[b-9o29dvkcaf] {
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fm-row[b-9o29dvkcaf] {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fm-row label[b-9o29dvkcaf] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.fm-input[b-9o29dvkcaf] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #212529;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.fm-input:focus[b-9o29dvkcaf] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.fm-textarea[b-9o29dvkcaf] { resize: vertical; min-height: 56px; }

.fm-save-error[b-9o29dvkcaf] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
}

.fm-actions[b-9o29dvkcaf] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.fm-btn-cancel[b-9o29dvkcaf] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.87rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.fm-btn-cancel:hover[b-9o29dvkcaf] { background: #f1f3f5; }

.fm-btn-save[b-9o29dvkcaf] {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.fm-btn-save:hover[b-9o29dvkcaf]    { background: #1648c0; }
.fm-btn-save:disabled[b-9o29dvkcaf] { background: #93c5fd; cursor: not-allowed; }

/* ─── Dropzone ────────────────────────────────────────────────────────────── */

.fu-dropzone[b-9o29dvkcaf] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 28px 18px;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: var(--crm-attachment-bg, #f1f5f9);
    cursor: pointer;
    text-align: center;
    transition: border-color .15s, background .15s;
}
.fu-dropzone:hover[b-9o29dvkcaf] { border-color: #4c8dff; }

.fu-dropzone > .bi[b-9o29dvkcaf] {
    font-size: 1.7rem;
    color: var(--crm-attachment-fg, #475569);
}

.fu-dropzone-main[b-9o29dvkcaf] {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.fu-dropzone-sub[b-9o29dvkcaf] {
    font-size: 0.76rem;
    color: #6c757d;
}

/* Wird vom JS gesetzt — Blazor sieht das Dragging nie (dragover feuert zu oft). */
.fu-dropzone.fu-dropzone-over[b-9o29dvkcaf] {
    border-color: #1a56db;
    background: #dbeafe;
}

/* Der echte Input ist unsichtbar; geklickt wird die Dropzone. */
.fu-input[b-9o29dvkcaf] {
    display: none;
}

/* ─── Dateiliste ──────────────────────────────────────────────────────────── */

.fu-list[b-9o29dvkcaf] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 240px;
    overflow-y: auto;
}

.fu-item[b-9o29dvkcaf] {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
}

.fu-item-head[b-9o29dvkcaf] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fu-item-icon[b-9o29dvkcaf]  { color: #6c757d; font-size: 0.9rem; flex-shrink: 0; }
.fu-done    .fu-item-icon[b-9o29dvkcaf] { color: #16a34a; }
.fu-failed  .fu-item-icon[b-9o29dvkcaf] { color: #dc3545; }
.fu-uploading .fu-item-icon[b-9o29dvkcaf] { color: #1a56db; }

.fu-done[b-9o29dvkcaf]   { border-color: #bbf7d0; background: #f0fdf4; }
.fu-failed[b-9o29dvkcaf] { border-color: #fca5a5; background: #fff5f5; }

.fu-item-name[b-9o29dvkcaf] {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
    color: #212529;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fu-item-size[b-9o29dvkcaf] {
    font-size: 0.75rem;
    color: #6c757d;
    flex-shrink: 0;
}

.fu-item-remove[b-9o29dvkcaf] {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    padding: 2px 5px;
    border-radius: 5px;
    flex-shrink: 0;
}
.fu-item-remove:hover[b-9o29dvkcaf] { background: #f1f3f5; color: #dc3545; }

.fu-item-error[b-9o29dvkcaf] {
    margin-top: 5px;
    font-size: 0.75rem;
    color: #b91c1c;
}

/* ─── Fortschritt ─────────────────────────────────────────────────────────── */

.fu-progress[b-9o29dvkcaf] {
    margin-top: 6px;
    height: 4px;
    border-radius: 2px;
    background: #e9ecef;
    overflow: hidden;
}

.fu-progress-bar[b-9o29dvkcaf] {
    height: 100%;
    background: #1a56db;
    transition: width .1s linear;
}
/* /Components/Shared/JiraIssueCreateModal.razor.rz.scp.css */
.fm-backdrop[b-kx420qcfki] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-modal[b-kx420qcfki] {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: min(560px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.fm-header[b-kx420qcfki] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.fm-title[b-kx420qcfki] {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-close[b-kx420qcfki] {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
    padding: 4px 7px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.fm-close:hover[b-kx420qcfki] { background: #f1f3f5; color: #212529; }

.fm-body[b-kx420qcfki] {
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fm-grid[b-kx420qcfki] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fm-row[b-kx420qcfki] {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fm-row label[b-kx420qcfki] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.req[b-kx420qcfki] { color: #dc3545; }

.fm-input[b-kx420qcfki] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #212529;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.fm-input:focus[b-kx420qcfki] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.fm-input.input-error[b-kx420qcfki] { border-color: #dc3545; }
.fm-textarea[b-kx420qcfki] { resize: vertical; min-height: 70px; }

.fm-field-error[b-kx420qcfki] { font-size: 0.75rem; color: #dc3545; }

.fm-save-error[b-kx420qcfki] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
}

.fm-actions[b-kx420qcfki] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.fm-btn-cancel[b-kx420qcfki] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.87rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.fm-btn-cancel:hover[b-kx420qcfki] { background: #f1f3f5; }

.fm-btn-save[b-kx420qcfki] {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.fm-btn-save:hover[b-kx420qcfki]    { background: #1648c0; }
.fm-btn-save:disabled[b-kx420qcfki] { background: #93c5fd; cursor: not-allowed; }

/* ── Übergabe-spezifisch ── */
.fm-modal[b-kx420qcfki] { width: min(680px, 96vw); }

.fm-loading[b-kx420qcfki] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 2.5rem;
    color: #adb5bd;
    font-size: 0.9rem;
}

.fm-field-hint[b-kx420qcfki] {
    font-size: 0.75rem;
    color: #adb5bd;
}

/* Die Beschreibung ist der eigentliche Inhalt der Übergabe – sie braucht Platz. */
.fm-textarea[b-kx420qcfki] { min-height: 200px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.82rem; }

.fm-label-chips[b-kx420qcfki] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fm-label-chip[b-kx420qcfki] {
    background: #eef2ff;
    color: #3730a3;
    border-radius: 20px;
    padding: 2px 11px;
    font-size: 0.78rem;
    font-weight: 600;
}
/* /Components/Shared/JiraLinkEditorModal.razor.rz.scp.css */
.fm-backdrop[b-irt1fekqkl] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-modal[b-irt1fekqkl] {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: min(560px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.fm-header[b-irt1fekqkl] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.fm-title[b-irt1fekqkl] {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-close[b-irt1fekqkl] {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
    padding: 4px 7px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.fm-close:hover[b-irt1fekqkl] { background: #f1f3f5; color: #212529; }

.fm-body[b-irt1fekqkl] {
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fm-grid[b-irt1fekqkl] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fm-row[b-irt1fekqkl] {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fm-row label[b-irt1fekqkl] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.req[b-irt1fekqkl] { color: #dc3545; }

.fm-input[b-irt1fekqkl] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #212529;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.fm-input:focus[b-irt1fekqkl] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.fm-input.input-error[b-irt1fekqkl] { border-color: #dc3545; }
.fm-textarea[b-irt1fekqkl] { resize: vertical; min-height: 70px; }

.fm-field-error[b-irt1fekqkl] { font-size: 0.75rem; color: #dc3545; }

.fm-save-error[b-irt1fekqkl] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
}

.fm-actions[b-irt1fekqkl] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.fm-btn-cancel[b-irt1fekqkl] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.87rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.fm-btn-cancel:hover[b-irt1fekqkl] { background: #f1f3f5; }

.fm-btn-save[b-irt1fekqkl] {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.fm-btn-save:hover[b-irt1fekqkl]    { background: #1648c0; }
.fm-btn-save:disabled[b-irt1fekqkl] { background: #93c5fd; cursor: not-allowed; }
/* /Components/Shared/NoteEditorModal.razor.rz.scp.css */
.note-backdrop[b-lk810mvw0u] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-modal[b-lk810mvw0u] {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: min(620px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.note-header[b-lk810mvw0u] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.note-title[b-lk810mvw0u] {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-note-close[b-lk810mvw0u] {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
    padding: 4px 7px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.btn-note-close:hover[b-lk810mvw0u] { background: #f1f3f5; color: #212529; }

.note-body[b-lk810mvw0u] {
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.note-adresse-row[b-lk810mvw0u] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-adresse-link[b-lk810mvw0u] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: #16a34a;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0;
    transition: color .15s;
}
.btn-adresse-link:hover[b-lk810mvw0u] { color: #15803d; text-decoration: underline; }

.btn-adresse-clear[b-lk810mvw0u] {
    background: none;
    border: none;
    cursor: pointer;
    color: #adb5bd;
    padding: 2px;
    display: flex;
    align-items: center;
    transition: color .15s;
}
.btn-adresse-clear:hover[b-lk810mvw0u] { color: #dc2626; }

.btn-adresse-assign[b-lk810mvw0u] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px dashed #f59e0b;
    background: transparent;
    cursor: pointer;
    color: #92400e;
    font-size: 0.85rem;
    font-style: italic;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background .15s, border-color .15s, color .15s;
}
.btn-adresse-assign:hover[b-lk810mvw0u] {
    background: rgba(245,158,11,.15);
    border-color: #d97706;
    color: #78350f;
    font-style: normal;
}

.note-save-error[b-lk810mvw0u] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
}

.note-actions[b-lk810mvw0u] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.btn-note-cancel[b-lk810mvw0u] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.87rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.btn-note-cancel:hover[b-lk810mvw0u] { background: #f1f3f5; }

.btn-note-save[b-lk810mvw0u] {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.btn-note-save:hover[b-lk810mvw0u]    { background: #1648c0; }
.btn-note-save:disabled[b-lk810mvw0u] { background: #93c5fd; cursor: not-allowed; }
/* /Components/Shared/NotificationBell.razor.rz.scp.css */
.nbell[b-cwmqaq8sz0] {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nbell-btn[b-cwmqaq8sz0] {
    position: relative;
    background: transparent;
    border: none;
    color: #8a9ab8;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.nbell-btn:hover[b-cwmqaq8sz0] { background: rgba(255,255,255,.08); color: #e2e8f0; }

.nbell-badge[b-cwmqaq8sz0] {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    box-sizing: border-box;
    background: #e11d48;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 9px;
}

/* Klick-Fänger, um das Panel bei Klick daneben zu schließen */
.nbell-backdrop[b-cwmqaq8sz0] {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.nbell-panel[b-cwmqaq8sz0] {
    position: fixed;
    top: 54px;
    left: 12px;
    width: 340px;
    max-width: calc(100vw - 24px);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15,23,42,.22);
    z-index: 1201;
    overflow: hidden;
}

.nbell-head[b-cwmqaq8sz0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f6;
}
.nbell-title[b-cwmqaq8sz0] { font-weight: 600; color: #1e293b; font-size: 0.92rem; }
.nbell-markall[b-cwmqaq8sz0] {
    background: transparent;
    border: none;
    color: #1a56db;
    font-size: 0.78rem;
    cursor: pointer;
    padding: 2px 4px;
}
.nbell-markall:hover[b-cwmqaq8sz0] { text-decoration: underline; }

.nbell-list[b-cwmqaq8sz0] {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.nbell-empty[b-cwmqaq8sz0] {
    padding: 24px 14px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

.nbell-item[b-cwmqaq8sz0] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    cursor: pointer;
    transition: background .12s;
}
.nbell-item:hover[b-cwmqaq8sz0] { background: #f8fafc; }
.nbell-item.unread[b-cwmqaq8sz0] { background: #eff6ff; }
.nbell-item.unread:hover[b-cwmqaq8sz0] { background: #e0edff; }

.nbell-item-icon[b-cwmqaq8sz0] { color: #64748b; font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.nbell-item.unread .nbell-item-icon[b-cwmqaq8sz0] { color: #1a56db; }

.nbell-item-text[b-cwmqaq8sz0] { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nbell-item-title[b-cwmqaq8sz0] { font-size: 0.85rem; color: #1e293b; font-weight: 500; }
.nbell-item-preview[b-cwmqaq8sz0] {
    font-size: 0.8rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
}
.nbell-item-meta[b-cwmqaq8sz0] { font-size: 0.72rem; color: #94a3b8; }

.nbell-foot[b-cwmqaq8sz0] {
    padding: 8px;
    border-top: 1px solid #eef2f6;
}
.nbell-all[b-cwmqaq8sz0] {
    width: 100%;
    background: transparent;
    border: none;
    color: #1a56db;
    font-size: 0.82rem;
    padding: 6px;
    cursor: pointer;
    border-radius: 6px;
}
.nbell-all:hover[b-cwmqaq8sz0] { background: #f0f4ff; }
/* /Components/Shared/PagerControl.razor.rz.scp.css */
.pager-bar[b-ffnfsjbv2e] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0 0;
    border-top: 1px solid #e9ecef;
    margin-top: 4px;
    flex-shrink: 0;
    min-height: 48px;
}

/* ── Navigation ── */
.pager-nav[b-ffnfsjbv2e] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pager-btn[b-ffnfsjbv2e] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    color: #495057;
    font-size: 0.8rem;
    transition: background .15s, border-color .15s, color .15s;
    flex-shrink: 0;
}

.pager-btn:hover:not(:disabled)[b-ffnfsjbv2e] {
    background: #f0f4ff;
    border-color: #4c8dff;
    color: #4c8dff;
}

.pager-btn:disabled[b-ffnfsjbv2e] {
    opacity: 0.35;
    cursor: not-allowed;
}

.pager-info[b-ffnfsjbv2e] {
    padding: 0 10px;
    font-size: 0.85rem;
    color: #495057;
    white-space: nowrap;
}

.pager-total[b-ffnfsjbv2e] {
    color: #adb5bd;
    font-size: 0.8rem;
    margin-left: 4px;
}

/* ── Seitengröße ── */
.pager-size[b-ffnfsjbv2e] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pager-size-label[b-ffnfsjbv2e] {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
}

.pager-size-options[b-ffnfsjbv2e] {
    display: flex;
    gap: 4px;
}

.pager-size-btn[b-ffnfsjbv2e] {
    padding: 5px 11px;
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #495057;
    transition: background .15s, border-color .15s, color .15s;
}

.pager-size-btn:hover:not(.is-active)[b-ffnfsjbv2e] {
    background: #f0f4ff;
    border-color: #4c8dff;
    color: #4c8dff;
}

.pager-size-btn.is-active[b-ffnfsjbv2e] {
    background: #4c8dff;
    border-color: #4c8dff;
    color: #fff;
    font-weight: 600;
}
/* /Components/Shared/PostAssignModal.razor.rz.scp.css */
/* ── Backdrop ── */
.post-backdrop[b-tuuce915vs] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Modal-Karte ── */
.post-modal[b-tuuce915vs] {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: min(560px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Breites Modal für NewContact + E-Mail-Vorschau */
.post-modal-wide[b-tuuce915vs] {
    width: min(1050px, 96vw);
    max-height: 90vh;
    overflow-y: hidden; /* Scroll nur intern */
}

/* ── NewContact zweispaltig ── */
.post-newcontact-wrap[b-tuuce915vs] {
    display: flex;
    min-height: 0;
    overflow: hidden;
}

.post-newcontact-wrap .post-form-wrap[b-tuuce915vs] {
    flex: 0 0 460px;
    overflow-y: auto;
    border-right: 1px solid #e9ecef;
}

/* ── E-Mail-Vorschau rechts ── */
.post-email-preview[b-tuuce915vs] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.post-email-preview-title[b-tuuce915vs] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #495057;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.post-email-preview-body[b-tuuce915vs] {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.post-email-iframe[b-tuuce915vs] {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #fff;
}

/* ── Header ── */
.post-header[b-tuuce915vs] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.post-title[b-tuuce915vs] {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-post-close[b-tuuce915vs] {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
    padding: 4px 7px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.btn-post-close:hover[b-tuuce915vs] { background: #f1f3f5; color: #212529; }

/* ── Adress-Info-Badge ── */
.post-adresse-info[b-tuuce915vs] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #495057;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.post-phone-badge[b-tuuce915vs] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e7f1ff;
    color: #1a56db;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.82rem;
    font-weight: 500;
}

/* ── Frage ── */
.post-question[b-tuuce915vs] {
    margin: 0;
    padding: 18px 22px 10px;
    font-size: 0.9rem;
    color: #6c757d;
}

/* ── Optionen ── */
.post-options[b-tuuce915vs] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 20px;
}

.post-option-btn[b-tuuce915vs] {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1.5px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    padding: 14px 16px;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s, box-shadow .15s, background .15s;
    width: 100%;
}
.post-option-btn:hover[b-tuuce915vs] {
    border-color: #4c8dff;
    box-shadow: 0 2px 10px rgba(76,141,255,.12);
    background: #f5f9ff;
}

.post-option-icon[b-tuuce915vs] {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.opt-neutral[b-tuuce915vs] { background: #f1f3f5; color: #495057; }
.opt-blue[b-tuuce915vs]    { background: #dbeafe; color: #1d4ed8; }
.opt-green[b-tuuce915vs]   { background: #dcfce7; color: #16a34a; }

.post-option-text[b-tuuce915vs] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.post-option-text strong[b-tuuce915vs] { font-size: 0.9rem; color: #212529; }
.post-option-text span[b-tuuce915vs]   { font-size: 0.8rem; color: #6c757d; }
.post-option-text code[b-tuuce915vs]   { font-size: 0.8rem; background: #f1f3f5; padding: 1px 5px; border-radius: 4px; }

.post-option-arrow[b-tuuce915vs] { color: #adb5bd; font-size: 0.9rem; flex-shrink: 0; }

/* ── Ansprechpartner-Auswahl ── */
.post-contact-search[b-tuuce915vs] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px 12px;
    color: #adb5bd;
}

.post-contact-list[b-tuuce915vs] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 16px;
    max-height: 340px;
    overflow-y: auto;
}

.post-contact-row[b-tuuce915vs] {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    padding: 10px 14px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.post-contact-row:hover[b-tuuce915vs] {
    border-color: #4c8dff;
    box-shadow: 0 2px 10px rgba(76,141,255,.12);
    background: #f5f9ff;
}

.post-contact-main[b-tuuce915vs] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.post-contact-main strong[b-tuuce915vs] { font-size: 0.9rem; color: #212529; }

.post-contact-sub[b-tuuce915vs] {
    font-size: 0.78rem;
    color: #6c757d;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.post-contact-badge[b-tuuce915vs] {
    flex-shrink: 0;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.post-contact-badge.match[b-tuuce915vs] { background: #dcfce7; color: #16a34a; }
.post-contact-badge.empty[b-tuuce915vs] { background: #fef3c7; color: #b45309; }

.post-contact-empty[b-tuuce915vs] {
    padding: 24px 8px;
    text-align: center;
    font-size: 0.86rem;
    color: #6c757d;
}

.post-actions-pad[b-tuuce915vs] { padding: 16px 22px 20px; }

/* ── Bestätigung der Ansprechpartner-Auswahl ── */
.post-confirm[b-tuuce915vs] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 22px;
}

.post-confirm-name[b-tuuce915vs] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #212529;
}

.post-confirm-actions[b-tuuce915vs] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-diff-warn[b-tuuce915vs],
.post-diff-info[b-tuuce915vs] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    line-height: 1.5;
}
.post-diff-warn[b-tuuce915vs] {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}
.post-diff-info[b-tuuce915vs] {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}
.post-diff-warn code[b-tuuce915vs],
.post-diff-info code[b-tuuce915vs] {
    background: rgba(255,255,255,.7);
    padding: 1px 5px;
    border-radius: 4px;
}

/* ── Ansprechpartner-Formular ── */
.post-form-wrap[b-tuuce915vs] {
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-form-grid[b-tuuce915vs] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

.post-form-row[b-tuuce915vs] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.post-form-row.span2[b-tuuce915vs] { grid-column: span 2; }

.post-form-row label[b-tuuce915vs] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.required[b-tuuce915vs] { color: #dc3545; }

.post-input[b-tuuce915vs] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 7px 11px;
    font-size: 0.88rem;
    color: #212529;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.post-input:focus[b-tuuce915vs] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.post-input.input-error[b-tuuce915vs] { border-color: #dc3545; }
.post-textarea[b-tuuce915vs] { resize: vertical; min-height: 70px; }

/* Anrede-Buttons */
.post-anrede-btns[b-tuuce915vs] {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.btn-anrede[b-tuuce915vs] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.82rem;
    cursor: pointer;
    color: #495057;
    transition: border-color .15s, background .15s, color .15s;
}
.btn-anrede:hover[b-tuuce915vs]  { border-color: #4c8dff; color: #1a56db; }
.btn-anrede.active[b-tuuce915vs] { border-color: #4c8dff; background: #e7f1ff; color: #1a56db; font-weight: 600; }

.field-error[b-tuuce915vs]  { font-size: 0.75rem; color: #dc3545; }

.post-save-error[b-tuuce915vs] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
}

.post-form-actions[b-tuuce915vs] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 4px;
}

.btn-post-back[b-tuuce915vs] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color .15s, color .15s;
}
.btn-post-back:hover[b-tuuce915vs] { border-color: #adb5bd; color: #212529; }

.btn-post-save[b-tuuce915vs] {
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background .15s;
}
.btn-post-save:hover[b-tuuce915vs]    { background: #1648c0; }
.btn-post-save:disabled[b-tuuce915vs] { background: #93c5fd; cursor: not-allowed; }

/* ── Done-View ── */
.post-done[b-tuuce915vs] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 32px 24px;
    text-align: center;
}
.post-done-icon[b-tuuce915vs] {
    font-size: 3rem;
    color: #16a34a;
}
.post-done p[b-tuuce915vs] {
    margin: 0;
    font-size: 0.92rem;
    color: #374151;
    max-width: 380px;
}
/* /Components/Shared/ProduktKundenModal.razor.rz.scp.css */
/* Optik bewusst identisch zum AdressPickerModal – scoped CSS gilt nur je Komponente,
   die gemeinsamen picker-*-Regeln stehen deshalb hier noch einmal. */

/* ── Backdrop ── */
.picker-backdrop[b-0t4ojcixdk] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ── Modal-Box ── */
.picker-modal[b-0t4ojcixdk] {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    width: min(1000px, 95vw);
    height: min(680px, 90vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Header ── */
.picker-header[b-0t4ojcixdk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.picker-title[b-0t4ojcixdk] {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pk-count[b-0t4ojcixdk] {
    background: #e7f1ff;
    color: #1a56db;
    border-radius: 20px;
    padding: 1px 10px;
    font-size: 0.78rem;
    font-weight: 700;
}

.picker-close[b-0t4ojcixdk] {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #adb5bd;
    font-size: 1rem;
    padding: 4px 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: background .15s, color .15s;
}
.picker-close:hover[b-0t4ojcixdk] { background: #f8d7da; color: #dc3545; }

/* ── Toolbar ── */
.picker-search-wrap[b-0t4ojcixdk] {
    padding: 0.875rem 1.25rem 0.75rem;
    border-bottom: 1px solid #f1f3f5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.picker-search-bar[b-0t4ojcixdk] {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 13px;
    transition: border-color .2s, box-shadow .2s;
}

.picker-search-bar.focused[b-0t4ojcixdk] {
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76, 141, 255, .15);
    background: #fff;
}

.picker-search-icon[b-0t4ojcixdk] { color: #adb5bd; flex-shrink: 0; }

.picker-search-input[b-0t4ojcixdk] {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.875rem;
    background: transparent;
    color: #212529;
}

.picker-search-clear[b-0t4ojcixdk] {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #adb5bd;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    transition: color .15s;
}
.picker-search-clear:hover[b-0t4ojcixdk] { color: #6c757d; }

.pk-check[b-0t4ojcixdk] {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 0.82rem;
    color: #495057;
    cursor: pointer;
    user-select: none;
}

.btn-pk-csv[b-0t4ojcixdk] {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    background: #fff;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.btn-pk-csv:hover:not(:disabled)[b-0t4ojcixdk] { border-color: #4c8dff; color: #1a56db; }
.btn-pk-csv:disabled[b-0t4ojcixdk] { opacity: .5; cursor: not-allowed; }

/* ── Tabelle ── */
.picker-table-wrap[b-0t4ojcixdk] {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.picker-table[b-0t4ojcixdk] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.picker-table thead[b-0t4ojcixdk] {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 2;
}

.picker-table th[b-0t4ojcixdk] {
    padding: 8px 12px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.picker-th-sort[b-0t4ojcixdk] { cursor: pointer; user-select: none; }
.picker-th-sort:hover[b-0t4ojcixdk] { background: #e9ecef; color: #343a40; }
.picker-th-sort.is-sorted[b-0t4ojcixdk] { color: #4c8dff; }
.picker-sort-hint[b-0t4ojcixdk] { opacity: 0.3; }

.picker-table td[b-0t4ojcixdk] {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
    color: #495057;
}

.picker-row[b-0t4ojcixdk] { cursor: pointer; }
.picker-row:hover td[b-0t4ojcixdk] { background: #f0f4ff; }

.picker-td-kdnr[b-0t4ojcixdk] { color: #868e96; font-variant-numeric: tabular-nums; white-space: nowrap; width: 70px; }
.picker-td-name[b-0t4ojcixdk] { vertical-align: top; }
.picker-td-name .picker-name-main[b-0t4ojcixdk] { font-weight: 600; color: #212529; line-height: 1.35; }

.pk-td-version[b-0t4ojcixdk] { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pk-td-menge[b-0t4ojcixdk] { font-weight: 700; font-variant-numeric: tabular-nums; width: 70px; }
.pk-td-bemerkung[b-0t4ojcixdk] {
    color: #868e96;
    font-size: 0.82rem;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pk-row-inaktiv td[b-0t4ojcixdk] { opacity: .6; }

.pk-badge-inaktiv[b-0t4ojcixdk] {
    display: inline-block;
    margin-top: 2px;
    background: #f1f3f5;
    color: #868e96;
    border-radius: 20px;
    padding: 0 8px;
    font-size: 0.7rem;
    font-weight: 600;
}

.picker-td-loading[b-0t4ojcixdk] {
    text-align: center;
    padding: 2rem !important;
    color: #6c757d;
    font-size: 0.875rem;
}

/* ── Pager ── */
.picker-pager-wrap[b-0t4ojcixdk] {
    padding: 0 1.25rem;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}
/* /Components/Shared/RichTextEditor.razor.rz.scp.css */
.rich-text-editor-wrap[b-fnbntnzxlz] {
    background: #fff;
    border-radius: 8px;
}

/* Editor füllt die Restfläche des umgebenden Flex-Containers; der Text scrollt
   innerhalb von TinyMCE, damit der Dialog selbst nicht scrollen muss. */
.rich-text-editor-wrap.fill-height[b-fnbntnzxlz] {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.rich-text-editor-wrap.fill-height[b-fnbntnzxlz]  .tox-tinymce {
    flex: 1;
    min-height: 0;
    height: auto !important;
}
/* /Components/Shared/SystemAdminWarningModal.razor.rz.scp.css */
/* ─── Modal-Grundgerüst (Konvention aus FileUploadModal) ──────────────────── */

.saw-backdrop[b-qyu8klrjg4] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.saw-modal[b-qyu8klrjg4] {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: min(520px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-top: 4px solid #f59e0b;
}

.saw-header[b-qyu8klrjg4] {
    padding: 18px 22px 14px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.saw-title[b-qyu8klrjg4] {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 9px;
}

.saw-title > .bi[b-qyu8klrjg4] {
    color: #d97706;
    font-size: 1.15rem;
}

.saw-body[b-qyu8klrjg4] {
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saw-lead[b-qyu8klrjg4] {
    margin: 0;
    font-size: 0.9rem;
    color: #334155;
}

.saw-warn[b-qyu8klrjg4] {
    margin: 0;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 0.86rem;
    color: #92400e;
}

.saw-actions[b-qyu8klrjg4] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.saw-btn-cancel[b-qyu8klrjg4] {
    border: none;
    background: #1a56db;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.saw-btn-cancel:hover[b-qyu8klrjg4] { background: #1648c0; }
.saw-btn-cancel:focus-visible[b-qyu8klrjg4] {
    outline: none;
    box-shadow: 0 0 0 3px rgba(76,141,255,.35);
}

.saw-btn-confirm[b-qyu8klrjg4] {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1.5px solid #fcd34d;
    background: #fff;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.87rem;
    color: #92400e;
    cursor: pointer;
    transition: background .1s;
}
.saw-btn-confirm:hover[b-qyu8klrjg4] { background: #fffbeb; }
/* /Components/Shared/TagChip.razor.rz.scp.css */
.tagchip[b-8yntt40n0i] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 10px;
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.tagchip:has(.tagchip-remove)[b-8yntt40n0i] {
    padding-right: 4px;
}

.tagchip-sm[b-8yntt40n0i] {
    font-size: 0.7rem;
    padding: 1px 8px;
}

.tagchip-remove[b-8yntt40n0i] {
    border: none;
    background: transparent;
    color: inherit;
    opacity: .65;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 0 2px;
    border-radius: 50%;
    font-size: 0.8rem;
}

.tagchip-remove:hover[b-8yntt40n0i] {
    opacity: 1;
    background: rgba(0, 0, 0, .12);
}
/* /Components/Shared/TagPickerModal.razor.rz.scp.css */
.tp-backdrop[b-4s26pg0s0p] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.tp-modal[b-4s26pg0s0p] {
    width: min(560px, 95vw);
    max-height: min(640px, 90vh);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
    overflow: hidden;
}

/* ── Header ── */
.tp-header[b-4s26pg0s0p] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
}

.tp-title[b-4s26pg0s0p] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #212529;
}

.tp-title i[b-4s26pg0s0p] { color: #4338ca; }

.tp-close[b-4s26pg0s0p] {
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    font-size: .95rem;
    padding: 4px 6px;
    border-radius: 6px;
}

.tp-close:hover[b-4s26pg0s0p] { background: #f1f3f5; color: #212529; }

/* ── Suche ── */
.tp-search-wrap[b-4s26pg0s0p] { padding: 12px 16px 6px; }

.tp-search-bar[b-4s26pg0s0p] {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 6px 10px;
}

.tp-search-bar:focus-within[b-4s26pg0s0p] { border-color: #6366f1; }
.tp-search-icon[b-4s26pg0s0p] { color: #adb5bd; font-size: .85rem; }

.tp-search-input[b-4s26pg0s0p] {
    flex: 1;
    border: none;
    outline: none;
    font-size: .875rem;
    background: transparent;
}

.tp-search-clear[b-4s26pg0s0p] {
    border: none;
    background: transparent;
    color: #adb5bd;
    cursor: pointer;
    padding: 0;
}

.tp-search-clear:hover[b-4s26pg0s0p] { color: #6c757d; }

/* ── Liste ── */
.tp-body[b-4s26pg0s0p] {
    flex: 1;
    overflow-y: auto;
    padding: 6px 16px 12px;
}

.tp-loading[b-4s26pg0s0p], .tp-empty[b-4s26pg0s0p] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 4px;
    color: #6c757d;
    font-size: .85rem;
}

.tp-list[b-4s26pg0s0p] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tp-item[b-4s26pg0s0p] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
}

.tp-item:hover[b-4s26pg0s0p] { background: #f8f9fa; }
.tp-item.is-selected[b-4s26pg0s0p] { background: #eef2ff; }

.tp-item-check[b-4s26pg0s0p] {
    color: #adb5bd;
    font-size: .9rem;
}

.tp-item.is-selected .tp-item-check[b-4s26pg0s0p] { color: #4338ca; }

.tp-item-desc[b-4s26pg0s0p] {
    color: #868e96;
    font-size: .75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Neuanlage ── */
.tp-create[b-4s26pg0s0p] {
    margin-top: 12px;
    padding: 12px;
    border: 1px dashed #c7d2fe;
    border-radius: 10px;
    background: #f8f9ff;
}

.tp-create-head[b-4s26pg0s0p] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 600;
    color: #4338ca;
    margin-bottom: 10px;
}

.tp-palette[b-4s26pg0s0p] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.tp-swatch[b-4s26pg0s0p] {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    padding: 0;
}

.tp-swatch.is-active[b-4s26pg0s0p] { box-shadow: 0 0 0 2px #4338ca; }

.tp-create-btn[b-4s26pg0s0p] {
    border: none;
    background: #4338ca;
    color: #fff;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}

.tp-create-btn:hover:not(:disabled)[b-4s26pg0s0p] { background: #3730a3; }
.tp-create-btn:disabled[b-4s26pg0s0p] { opacity: .6; cursor: default; }

.tp-error[b-4s26pg0s0p] {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #b91c1c;
    font-size: .8rem;
}

/* ── Footer ── */
.tp-footer[b-4s26pg0s0p] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid #e9ecef;
    background: #fbfbfc;
}

.tp-count[b-4s26pg0s0p] { font-size: .8rem; color: #6c757d; }

.tp-actions[b-4s26pg0s0p] { display: flex; gap: 8px; }

.tp-btn[b-4s26pg0s0p] {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 5px 14px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
}

.tp-btn-secondary[b-4s26pg0s0p] {
    background: #fff;
    border-color: #dee2e6;
    color: #495057;
}

.tp-btn-secondary:hover[b-4s26pg0s0p] { background: #f1f3f5; }

.tp-btn-primary[b-4s26pg0s0p] {
    background: #4338ca;
    color: #fff;
}

.tp-btn-primary:hover:not(:disabled)[b-4s26pg0s0p] { background: #3730a3; }
.tp-btn-primary:disabled[b-4s26pg0s0p] { opacity: .6; cursor: default; }
/* /Components/Shared/TaskQuickCreateModal.razor.rz.scp.css */
.fm-backdrop[b-1e6ynx4u6u] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-modal[b-1e6ynx4u6u] {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: min(560px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.fm-header[b-1e6ynx4u6u] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.fm-title[b-1e6ynx4u6u] {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-close[b-1e6ynx4u6u] {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
    padding: 4px 7px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.fm-close:hover[b-1e6ynx4u6u] { background: #f1f3f5; color: #212529; }

.fm-body[b-1e6ynx4u6u] {
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fm-grid[b-1e6ynx4u6u] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fm-row[b-1e6ynx4u6u] {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fm-row label[b-1e6ynx4u6u] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.req[b-1e6ynx4u6u] { color: #dc3545; }

.fm-input[b-1e6ynx4u6u] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #212529;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.fm-input:focus[b-1e6ynx4u6u] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.fm-input.input-error[b-1e6ynx4u6u] { border-color: #dc3545; }
.fm-textarea[b-1e6ynx4u6u] { resize: vertical; min-height: 70px; }

.fm-field-error[b-1e6ynx4u6u] { font-size: 0.75rem; color: #dc3545; }

/* ── Picker-Zeile (Zuständig) ── */
.fm-picker[b-1e6ynx4u6u] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
}

.linked-badge[b-1e6ynx4u6u] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #e7f1ff;
    color: #1a56db;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
}

.fm-picker-empty[b-1e6ynx4u6u] {
    font-size: 0.85rem;
    color: #868e96;
    font-style: italic;
}

.fm-picker-btn[b-1e6ynx4u6u] {
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.fm-picker-btn:hover[b-1e6ynx4u6u] { background: #f1f3f5; color: #212529; }

.fm-save-error[b-1e6ynx4u6u] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
}

.fm-actions[b-1e6ynx4u6u] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.fm-btn-cancel[b-1e6ynx4u6u] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.87rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.fm-btn-cancel:hover[b-1e6ynx4u6u] { background: #f1f3f5; }

.fm-btn-save[b-1e6ynx4u6u] {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.fm-btn-save:hover[b-1e6ynx4u6u]    { background: #1648c0; }
.fm-btn-save:disabled[b-1e6ynx4u6u] { background: #93c5fd; cursor: not-allowed; }
/* /Components/Shared/UpdateDurchgefuehrtModal.razor.rz.scp.css */
.fm-backdrop[b-99046sb82z] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-modal[b-99046sb82z] {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: min(560px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.fm-header[b-99046sb82z] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.fm-title[b-99046sb82z] {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-close[b-99046sb82z] {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
    padding: 4px 7px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.fm-close:hover[b-99046sb82z] { background: #f1f3f5; color: #212529; }

.fm-body[b-99046sb82z] {
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fm-grid[b-99046sb82z] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fm-row[b-99046sb82z] {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fm-row label[b-99046sb82z] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.req[b-99046sb82z] { color: #dc3545; }

.fm-input[b-99046sb82z] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #212529;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.fm-input:focus[b-99046sb82z] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.fm-input.input-error[b-99046sb82z] { border-color: #dc3545; }
.fm-textarea[b-99046sb82z] { resize: vertical; min-height: 70px; }

.fm-field-error[b-99046sb82z] { font-size: 0.75rem; color: #dc3545; }

.fm-save-error[b-99046sb82z] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
}

.fm-actions[b-99046sb82z] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.fm-btn-cancel[b-99046sb82z] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.87rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.fm-btn-cancel:hover[b-99046sb82z] { background: #f1f3f5; }

.fm-btn-save[b-99046sb82z] {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.fm-btn-save:hover[b-99046sb82z]    { background: #1648c0; }
.fm-btn-save:disabled[b-99046sb82z] { background: #93c5fd; cursor: not-allowed; }
/* /Components/Shared/ZeitaufwandEditorModal.razor.rz.scp.css */
.fm-backdrop[b-rv5nzfzu6g] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-modal[b-rv5nzfzu6g] {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: min(560px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.fm-header[b-rv5nzfzu6g] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.fm-title[b-rv5nzfzu6g] {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-close[b-rv5nzfzu6g] {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
    padding: 4px 7px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.fm-close:hover[b-rv5nzfzu6g] { background: #f1f3f5; color: #212529; }

.fm-body[b-rv5nzfzu6g] {
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fm-grid[b-rv5nzfzu6g] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fm-row[b-rv5nzfzu6g] {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fm-row label[b-rv5nzfzu6g] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.req[b-rv5nzfzu6g] { color: #dc3545; }

.fm-input[b-rv5nzfzu6g] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #212529;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.fm-input:focus[b-rv5nzfzu6g] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.fm-input.input-error[b-rv5nzfzu6g] { border-color: #dc3545; }
.fm-textarea[b-rv5nzfzu6g] { resize: vertical; min-height: 70px; }

.fm-field-error[b-rv5nzfzu6g] { font-size: 0.75rem; color: #dc3545; }

.fm-save-error[b-rv5nzfzu6g] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
}

.fm-actions[b-rv5nzfzu6g] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.fm-btn-cancel[b-rv5nzfzu6g] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.87rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.fm-btn-cancel:hover[b-rv5nzfzu6g] { background: #f1f3f5; }

.fm-btn-save[b-rv5nzfzu6g] {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.fm-btn-save:hover[b-rv5nzfzu6g]    { background: #1648c0; }
.fm-btn-save:disabled[b-rv5nzfzu6g] { background: #93c5fd; cursor: not-allowed; }

.fm-check[b-rv5nzfzu6g] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
}
.fm-check input[b-rv5nzfzu6g] { width: 16px; height: 16px; cursor: pointer; }
/* /Components/Shared/ZugangEditorModal.razor.rz.scp.css */
.fm-backdrop[b-9qbumv7ws8] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-modal[b-9qbumv7ws8] {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: min(620px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.fm-header[b-9qbumv7ws8] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.fm-title[b-9qbumv7ws8] {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fm-title i[b-9qbumv7ws8] { color: var(--crm-zugang-fg); }

.fm-close[b-9qbumv7ws8] {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
    padding: 4px 7px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.fm-close:hover[b-9qbumv7ws8] { background: #f1f3f5; color: #212529; }

.fm-body[b-9qbumv7ws8] {
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fm-grid[b-9qbumv7ws8] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 560px) {
    .fm-grid[b-9qbumv7ws8] { grid-template-columns: 1fr; }
}

.fm-row[b-9qbumv7ws8] {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fm-row label[b-9qbumv7ws8] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.req[b-9qbumv7ws8] { color: #dc3545; }

.fm-input[b-9qbumv7ws8] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #212529;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.fm-input:focus[b-9qbumv7ws8] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.fm-input.input-error[b-9qbumv7ws8] { border-color: #dc3545; }
.fm-textarea[b-9qbumv7ws8] { resize: vertical; min-height: 70px; }

.fm-field-error[b-9qbumv7ws8] { font-size: 0.75rem; color: #dc3545; }

.fm-save-error[b-9qbumv7ws8] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
}

.fm-actions[b-9qbumv7ws8] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.fm-btn-cancel[b-9qbumv7ws8] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.87rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.fm-btn-cancel:hover[b-9qbumv7ws8] { background: #f1f3f5; }

.fm-btn-save[b-9qbumv7ws8] {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.fm-btn-save:hover[b-9qbumv7ws8]    { background: #1648c0; }
.fm-btn-save:disabled[b-9qbumv7ws8] { background: #93c5fd; cursor: not-allowed; }

/* ── Zugang ── */

.zg-label-hint[b-9qbumv7ws8] {
    margin-left: 6px;
    font-weight: 500;
    color: #868e96;
    text-transform: none;
    letter-spacing: 0;
}

/* Eingabefeld mit angehängten Aktions-Buttons (Kopieren, Anzeigen). */
.zg-input-row[b-9qbumv7ws8] {
    display: flex;
    align-items: stretch;
    gap: 6px;
}
.zg-input-row .fm-input[b-9qbumv7ws8] { flex: 1; min-width: 0; }

.zg-icon-btn[b-9qbumv7ws8] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 7px;
    padding: 0 11px;
    color: #495057;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .1s, border-color .1s, color .1s;
}
.zg-icon-btn:hover[b-9qbumv7ws8]    { background: #f1f3f5; border-color: var(--crm-zugang-fg); color: var(--crm-zugang-fg); }
.zg-icon-btn:disabled[b-9qbumv7ws8] { color: #adb5bd; cursor: not-allowed; background: #f8f9fa; }
.zg-icon-btn.zg-danger:hover[b-9qbumv7ws8] { border-color: #dc3545; color: #dc3545; }

/* Platzhalter für ein noch nicht aufgedecktes Geheimnis — sieht wie ein Feld aus,
   ist aber keines: es gibt hier nichts zu bearbeiten. */
.zg-masked[b-9qbumv7ws8] {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1.5px dashed #dee2e6;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 0.88rem;
    color: #868e96;
    background: #f8f9fa;
    letter-spacing: .08em;
    min-height: 38px;
    box-sizing: border-box;
}
.zg-masked-block[b-9qbumv7ws8] { letter-spacing: 0; }

.zg-notiz[b-9qbumv7ws8] { min-height: 90px; }

.zg-reveal-btn[b-9qbumv7ws8] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-start;
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: #495057;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.zg-reveal-btn:hover[b-9qbumv7ws8] {
    background: var(--crm-zugang-bg);
    border-color: var(--crm-zugang-fg);
    color: var(--crm-zugang-fg);
}
.zg-reveal-btn:disabled[b-9qbumv7ws8] { color: #adb5bd; cursor: not-allowed; }

.zg-hint[b-9qbumv7ws8] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: #868e96;
    line-height: 1.4;
}

.zg-info[b-9qbumv7ws8] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #15803d;
}

.zg-check-row[b-9qbumv7ws8] {
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: #212529;
    cursor: pointer;
}

.zg-file-list[b-9qbumv7ws8] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 6px;
    max-height: 180px;
    overflow-y: auto;
}

.zg-file[b-9qbumv7ws8] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 7px;
    border-radius: 6px;
    font-size: 0.86rem;
    transition: background .1s;
}
.zg-file:hover[b-9qbumv7ws8] { background: var(--crm-zugang-bg); }
.zg-file > i[b-9qbumv7ws8] { color: var(--crm-zugang-fg); }

.zg-file-name[b-9qbumv7ws8] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #212529;
    text-decoration: none;
}
a.zg-file-name:hover[b-9qbumv7ws8] { text-decoration: underline; }

.zg-file-size[b-9qbumv7ws8] { font-size: 0.75rem; color: #868e96; flex-shrink: 0; }

.zg-file-empty[b-9qbumv7ws8] {
    font-size: 0.85rem;
    color: #adb5bd;
    font-style: italic;
    padding: 6px 4px;
}
/* /Components/Tabs/Admin/DurchwahlVerwaltung.razor.rz.scp.css */
/* ── View-Container ── */
.eav-view[b-sh89jbfcro] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0;
}

/* ── Header ── */
.eav-header[b-sh89jbfcro] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.eav-title[b-sh89jbfcro] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 9px;
}

.btn-eav-add[b-sh89jbfcro] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a56db;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.btn-eav-add:hover[b-sh89jbfcro] { background: #1648c0; }

/* ── Formular-Karte ── */
.eav-form-card[b-sh89jbfcro] {
    background: #f8f9fa;
    border: 1.5px solid #dee2e6;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.eav-form-title[b-sh89jbfcro] {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.eav-form-grid[b-sh89jbfcro] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
}

.eav-field[b-sh89jbfcro] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.eav-field.span2[b-sh89jbfcro] { grid-column: span 2; }

.eav-field label[b-sh89jbfcro] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.req[b-sh89jbfcro] { color: #dc3545; }

.eav-input[b-sh89jbfcro] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 7px 11px;
    font-size: 0.88rem;
    color: #212529;
    background: #fff;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.eav-input:focus[b-sh89jbfcro] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.eav-input.err[b-sh89jbfcro] { border-color: #dc3545; }

.eav-field-check[b-sh89jbfcro] { justify-content: flex-end; padding-bottom: 2px; }
.eav-check-label[b-sh89jbfcro] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #495057;
    cursor: pointer;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
}
.eav-check-label input[type=checkbox][b-sh89jbfcro] { width: 16px; height: 16px; cursor: pointer; }

.eav-section-label[b-sh89jbfcro] {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding-top: 6px;
    border-top: 1px dashed #dee2e6;
    margin-top: 4px;
}
.eav-cred-hint[b-sh89jbfcro] {
    font-size: 0.75rem;
    font-weight: 400;
    color: #adb5bd;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
}

.eav-save-error[b-sh89jbfcro] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
    margin-top: 12px;
}

.eav-form-actions[b-sh89jbfcro] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.btn-eav-cancel[b-sh89jbfcro] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color .15s, color .15s;
}
.btn-eav-cancel:hover[b-sh89jbfcro] { border-color: #adb5bd; color: #212529; }

.btn-eav-save[b-sh89jbfcro] {
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background .15s;
}
.btn-eav-save:hover[b-sh89jbfcro]    { background: #1648c0; }
.btn-eav-save:disabled[b-sh89jbfcro] { background: #93c5fd; cursor: not-allowed; }

/* ── Tabelle ── */
.eav-table-wrap[b-sh89jbfcro] {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.eav-loading[b-sh89jbfcro],
.eav-empty[b-sh89jbfcro] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 3rem;
    color: #adb5bd;
    font-size: 0.95rem;
}
.eav-empty i[b-sh89jbfcro] { font-size: 2rem; }

.eav-table[b-sh89jbfcro] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.eav-table thead th[b-sh89jbfcro] {
    background: #f8f9fa;
    padding: 9px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}
.th-center[b-sh89jbfcro] { text-align: center !important; }
.th-action[b-sh89jbfcro] { width: 90px; }

.eav-table tbody tr[b-sh89jbfcro] {
    border-bottom: 1px solid #f1f3f5;
    transition: background .12s;
}
.eav-table tbody tr:hover[b-sh89jbfcro] { background: #f8f9fa; }
.row-deleting[b-sh89jbfcro] { background: #fff5f5 !important; }

.eav-table td[b-sh89jbfcro] { padding: 10px 12px; vertical-align: middle; }
.td-center[b-sh89jbfcro]  { text-align: center; }
.td-name[b-sh89jbfcro]    { font-weight: 600; color: #212529; }
.td-email a[b-sh89jbfcro] { color: #1a56db; text-decoration: none; }
.td-email a:hover[b-sh89jbfcro] { text-decoration: underline; }
.td-sync[b-sh89jbfcro]    { font-size: 0.82rem; color: #495057; white-space: nowrap; }
.td-error[b-sh89jbfcro]   { max-width: 200px; }
.td-action[b-sh89jbfcro]  { white-space: nowrap; text-align: right; }

.badge-active[b-sh89jbfcro] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-inactive[b-sh89jbfcro] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f3f5;
    color: #6c757d;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 600;
}

.eav-error-badge[b-sh89jbfcro] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff5f5;
    color: #dc3545;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: help;
}

/* ── Aktions-Buttons ── */
.btn-eav-icon[b-sh89jbfcro] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    color: #495057;
    font-size: 0.82rem;
    margin-left: 4px;
    transition: border-color .15s, background .15s, color .15s;
}
.btn-eav-icon:hover[b-sh89jbfcro] { border-color: #4c8dff; color: #1a56db; background: #f0f5ff; }
.btn-eav-delete:hover[b-sh89jbfcro] { border-color: #dc3545; color: #dc3545; background: #fff5f5; }
.btn-eav-test:hover[b-sh89jbfcro]   { border-color: #0d9488; color: #0d9488; background: #f0fdfa; }
.btn-eav-test:disabled[b-sh89jbfcro] { opacity: .6; cursor: not-allowed; }

/* Delete Confirm */
.eav-delete-confirm[b-sh89jbfcro] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #b91c1c;
    font-weight: 600;
}
.btn-confirm-yes[b-sh89jbfcro] {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}
.btn-confirm-yes:hover[b-sh89jbfcro] { background: #b91c1c; }
.btn-confirm-no[b-sh89jbfcro] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 5px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #6c757d;
}
.btn-confirm-no:hover[b-sh89jbfcro] { border-color: #adb5bd; color: #212529; }

/* ── Auth-Test Ergebnis ── */
.row-test-result td[b-sh89jbfcro] { padding: 0 12px 8px; }

.eav-test-result[b-sh89jbfcro] {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 500;
}
.test-ok[b-sh89jbfcro]   { background: #f0fdf4; border: 1px solid #86efac; color: #15803d; }
.test-fail[b-sh89jbfcro] { background: #fff5f5; border: 1px solid #fca5a5; color: #b91c1c; }
.eav-test-result i[b-sh89jbfcro]   { font-size: 1.05rem; flex-shrink: 0; }
.eav-test-result span[b-sh89jbfcro] { flex: 1; word-break: break-all; }

.btn-test-close[b-sh89jbfcro] {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: inherit;
    opacity: .6;
    padding: 0 4px;
    flex-shrink: 0;
}
.btn-test-close:hover[b-sh89jbfcro] { opacity: 1; }

/* ─── Durchwahl-Verwaltung ────────────────────────────────────────────────── */

.eav-hint[b-sh89jbfcro] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.83rem;
    color: #475569;
}
.eav-hint > .bi[b-sh89jbfcro] { color: #64748b; margin-top: 1px; }

.dw-search-wrap[b-sh89jbfcro] {
    position: relative;
    display: flex;
    align-items: center;
}

.dw-search-icon[b-sh89jbfcro] {
    position: absolute;
    left: 10px;
    color: #94a3b8;
    font-size: 0.85rem;
    pointer-events: none;
}

.dw-search-input[b-sh89jbfcro] {
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 7px 12px 7px 30px;
    font-size: 0.86rem;
    color: #212529;
    background: #fff;
    width: 240px;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.dw-search-input:focus[b-sh89jbfcro] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}

.td-durchwahl[b-sh89jbfcro] { width: 260px; }
.dw-input[b-sh89jbfcro] { max-width: 240px; }

.dw-saved[b-sh89jbfcro] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #16a34a;
    white-space: nowrap;
}

.dw-save-error[b-sh89jbfcro] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #b91c1c;
    white-space: nowrap;
}
/* /Components/Tabs/Admin/EmailAccountVerwaltung.razor.rz.scp.css */
/* ── View-Container ── */
.eav-view[b-51awr6eymu] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0;
}

/* ── Header ── */
.eav-header[b-51awr6eymu] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.eav-title[b-51awr6eymu] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 9px;
}

.btn-eav-add[b-51awr6eymu] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a56db;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.btn-eav-add:hover[b-51awr6eymu] { background: #1648c0; }

/* ── Formular-Karte ── */
.eav-form-card[b-51awr6eymu] {
    background: #f8f9fa;
    border: 1.5px solid #dee2e6;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.eav-form-title[b-51awr6eymu] {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.eav-form-grid[b-51awr6eymu] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
}

.eav-field[b-51awr6eymu] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.eav-field.span2[b-51awr6eymu] { grid-column: span 2; }

.eav-field label[b-51awr6eymu] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.req[b-51awr6eymu] { color: #dc3545; }

.eav-input[b-51awr6eymu] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 7px 11px;
    font-size: 0.88rem;
    color: #212529;
    background: #fff;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.eav-input:focus[b-51awr6eymu] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.eav-input.err[b-51awr6eymu] { border-color: #dc3545; }

.eav-field-check[b-51awr6eymu] { justify-content: flex-end; padding-bottom: 2px; }
.eav-check-label[b-51awr6eymu] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #495057;
    cursor: pointer;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
}
.eav-check-label input[type=checkbox][b-51awr6eymu] { width: 16px; height: 16px; cursor: pointer; }

.eav-section-label[b-51awr6eymu] {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding-top: 6px;
    border-top: 1px dashed #dee2e6;
    margin-top: 4px;
}
.eav-cred-hint[b-51awr6eymu] {
    font-size: 0.75rem;
    font-weight: 400;
    color: #adb5bd;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
}

.eav-save-error[b-51awr6eymu] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
    margin-top: 12px;
}

.eav-form-actions[b-51awr6eymu] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.btn-eav-cancel[b-51awr6eymu] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color .15s, color .15s;
}
.btn-eav-cancel:hover[b-51awr6eymu] { border-color: #adb5bd; color: #212529; }

.btn-eav-save[b-51awr6eymu] {
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background .15s;
}
.btn-eav-save:hover[b-51awr6eymu]    { background: #1648c0; }
.btn-eav-save:disabled[b-51awr6eymu] { background: #93c5fd; cursor: not-allowed; }

/* ── Tabelle ── */
.eav-table-wrap[b-51awr6eymu] {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.eav-loading[b-51awr6eymu],
.eav-empty[b-51awr6eymu] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 3rem;
    color: #adb5bd;
    font-size: 0.95rem;
}
.eav-empty i[b-51awr6eymu] { font-size: 2rem; }

.eav-table[b-51awr6eymu] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.eav-table thead th[b-51awr6eymu] {
    background: #f8f9fa;
    padding: 9px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}
.th-center[b-51awr6eymu] { text-align: center !important; }
.th-action[b-51awr6eymu] { width: 90px; }

.eav-table tbody tr[b-51awr6eymu] {
    border-bottom: 1px solid #f1f3f5;
    transition: background .12s;
}
.eav-table tbody tr:hover[b-51awr6eymu] { background: #f8f9fa; }
.row-deleting[b-51awr6eymu] { background: #fff5f5 !important; }

.eav-table td[b-51awr6eymu] { padding: 10px 12px; vertical-align: middle; }
.td-center[b-51awr6eymu]  { text-align: center; }
.td-name[b-51awr6eymu]    { font-weight: 600; color: #212529; }
.td-email a[b-51awr6eymu] { color: #1a56db; text-decoration: none; }
.td-email a:hover[b-51awr6eymu] { text-decoration: underline; }
.td-sync[b-51awr6eymu]    { font-size: 0.82rem; color: #495057; white-space: nowrap; }
.td-error[b-51awr6eymu]   { max-width: 200px; }
.td-action[b-51awr6eymu]  { white-space: nowrap; text-align: right; }

.badge-active[b-51awr6eymu] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-inactive[b-51awr6eymu] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f3f5;
    color: #6c757d;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 600;
}

.eav-error-badge[b-51awr6eymu] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff5f5;
    color: #dc3545;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: help;
}

/* ── Aktions-Buttons ── */
.btn-eav-icon[b-51awr6eymu] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    color: #495057;
    font-size: 0.82rem;
    margin-left: 4px;
    transition: border-color .15s, background .15s, color .15s;
}
.btn-eav-icon:hover[b-51awr6eymu] { border-color: #4c8dff; color: #1a56db; background: #f0f5ff; }
.btn-eav-delete:hover[b-51awr6eymu] { border-color: #dc3545; color: #dc3545; background: #fff5f5; }
.btn-eav-test:hover[b-51awr6eymu]   { border-color: #0d9488; color: #0d9488; background: #f0fdfa; }
.btn-eav-test:disabled[b-51awr6eymu] { opacity: .6; cursor: not-allowed; }

/* Delete Confirm */
.eav-delete-confirm[b-51awr6eymu] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #b91c1c;
    font-weight: 600;
}
.btn-confirm-yes[b-51awr6eymu] {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}
.btn-confirm-yes:hover[b-51awr6eymu] { background: #b91c1c; }
.btn-confirm-no[b-51awr6eymu] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 5px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #6c757d;
}
.btn-confirm-no:hover[b-51awr6eymu] { border-color: #adb5bd; color: #212529; }

/* ── Auth-Test Ergebnis ── */
.row-test-result td[b-51awr6eymu] { padding: 0 12px 8px; }

.eav-test-result[b-51awr6eymu] {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 500;
}
.test-ok[b-51awr6eymu]   { background: #f0fdf4; border: 1px solid #86efac; color: #15803d; }
.test-fail[b-51awr6eymu] { background: #fff5f5; border: 1px solid #fca5a5; color: #b91c1c; }
.eav-test-result i[b-51awr6eymu]   { font-size: 1.05rem; flex-shrink: 0; }
.eav-test-result span[b-51awr6eymu] { flex: 1; word-break: break-all; }

.btn-test-close[b-51awr6eymu] {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: inherit;
    opacity: .6;
    padding: 0 4px;
    flex-shrink: 0;
}
.btn-test-close:hover[b-51awr6eymu] { opacity: 1; }

.eav-textarea[b-51awr6eymu] {
    resize: vertical;
    min-height: 62px;
    font-family: inherit;
}

.eav-hint[b-51awr6eymu] {
    font-size: 0.76rem;
    color: #868e96;
    line-height: 1.45;
}
.eav-hint code[b-51awr6eymu] {
    background: #f1f3f5;
    border-radius: 3px;
    padding: 0 3px;
    color: #495057;
}
/* /Components/Tabs/Admin/EmailVorlagenVerwaltung.razor.rz.scp.css */
/* ── View-Container ── */
.eav-view[b-a1iv3qhent] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* ── Header ── */
.eav-header[b-a1iv3qhent] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.eav-title[b-a1iv3qhent] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 9px;
}

.btn-eav-add[b-a1iv3qhent] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a56db;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.btn-eav-add:hover[b-a1iv3qhent] { background: #1648c0; }

.eav-hint[b-a1iv3qhent] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.83rem;
    color: #475569;
}
.eav-hint > .bi[b-a1iv3qhent] { color: #64748b; margin-top: 1px; }

/* ── Formular-Karte ── */
.eav-form-card[b-a1iv3qhent] {
    background: #f8f9fa;
    border: 1.5px solid #dee2e6;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.eav-form-title[b-a1iv3qhent] {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.eav-form-grid[b-a1iv3qhent] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
}

.eav-field[b-a1iv3qhent] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.eav-field.span2[b-a1iv3qhent] { grid-column: span 2; }

.eav-field label[b-a1iv3qhent] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.req[b-a1iv3qhent] { color: #dc3545; }

.eav-input[b-a1iv3qhent] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 7px 11px;
    font-size: 0.88rem;
    color: #212529;
    background: #fff;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.eav-input:focus[b-a1iv3qhent] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.eav-input.err[b-a1iv3qhent] { border-color: #dc3545; }

.eav-save-error[b-a1iv3qhent] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
    margin-top: 12px;
}

.eav-form-actions[b-a1iv3qhent] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.btn-eav-cancel[b-a1iv3qhent] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color .15s, color .15s;
}
.btn-eav-cancel:hover[b-a1iv3qhent] { border-color: #adb5bd; color: #212529; }

.btn-eav-save[b-a1iv3qhent] {
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background .15s;
}
.btn-eav-save:hover:not(:disabled)[b-a1iv3qhent] { background: #1648c0; }
.btn-eav-save:disabled[b-a1iv3qhent] { background: #93c5fd; cursor: not-allowed; }

/* ── Tabelle ── */
.eav-table-wrap[b-a1iv3qhent] {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.eav-loading[b-a1iv3qhent],
.eav-empty[b-a1iv3qhent] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 3rem;
    color: #adb5bd;
    font-size: 0.95rem;
}
.eav-empty i[b-a1iv3qhent] { font-size: 2rem; }

.eav-table[b-a1iv3qhent] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.eav-table thead th[b-a1iv3qhent] {
    background: #f8f9fa;
    padding: 9px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}
.th-center[b-a1iv3qhent] { text-align: center !important; }
.th-action[b-a1iv3qhent] { width: 210px; }

.eav-table tbody tr[b-a1iv3qhent] {
    border-bottom: 1px solid #f1f3f5;
    transition: background .12s;
}
.eav-table tbody tr:hover[b-a1iv3qhent] { background: #f8f9fa; }
.row-deleting[b-a1iv3qhent] { background: #fff5f5 !important; }

.eav-table td[b-a1iv3qhent] { padding: 10px 12px; vertical-align: middle; }
.td-center[b-a1iv3qhent] { text-align: center; }
.td-desc[b-a1iv3qhent]   { color: #6c757d; }
.td-action[b-a1iv3qhent] { white-space: nowrap; text-align: right; }

.badge-active[b-a1iv3qhent] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-inactive[b-a1iv3qhent] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f3f5;
    color: #6c757d;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ── Aktions-Buttons ── */
.btn-eav-icon[b-a1iv3qhent] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    color: #495057;
    font-size: 0.82rem;
    margin-left: 4px;
    transition: border-color .15s, background .15s, color .15s;
}
.btn-eav-icon:hover:not(:disabled)[b-a1iv3qhent] { border-color: #4c8dff; color: #1a56db; background: #f0f5ff; }
.btn-eav-icon:disabled[b-a1iv3qhent] { opacity: .4; cursor: not-allowed; }
.btn-eav-delete:hover:not(:disabled)[b-a1iv3qhent] { border-color: #dc3545; color: #dc3545; background: #fff5f5; }

/* Delete Confirm */
.eav-delete-confirm[b-a1iv3qhent] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #b91c1c;
    font-weight: 600;
}
.btn-confirm-yes[b-a1iv3qhent] {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}
.btn-confirm-yes:hover[b-a1iv3qhent] { background: #b91c1c; }
.btn-confirm-no[b-a1iv3qhent] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 5px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #6c757d;
}
.btn-confirm-no:hover[b-a1iv3qhent] { border-color: #adb5bd; color: #212529; }

/* ── Platzhalter-Leiste im Formular ── */
.ev-tokens[b-a1iv3qhent] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ev-token[b-a1iv3qhent] {
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    color: #495057;
    border-radius: 6px;
    padding: 3px 9px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .78rem;
    cursor: pointer;
}

.ev-token:hover[b-a1iv3qhent] {
    border-color: #4c8dff;
    color: #1a56db;
    background: #f0f5ff;
}

.td-name[b-a1iv3qhent] { font-weight: 600; color: #212529; }
/* /Components/Tabs/Admin/JiraKontoVerwaltung.razor.rz.scp.css */
/* ── View-Container ── */
.eav-view[b-vq4o5d5vb4] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0;
}

/* ── Header ── */
.eav-header[b-vq4o5d5vb4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.eav-title[b-vq4o5d5vb4] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 9px;
}

.btn-eav-add[b-vq4o5d5vb4] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a56db;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.btn-eav-add:hover[b-vq4o5d5vb4] { background: #1648c0; }

/* ── Formular-Karte ── */
.eav-form-card[b-vq4o5d5vb4] {
    background: #f8f9fa;
    border: 1.5px solid #dee2e6;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.eav-form-title[b-vq4o5d5vb4] {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.eav-form-grid[b-vq4o5d5vb4] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
}

.eav-field[b-vq4o5d5vb4] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.eav-field.span2[b-vq4o5d5vb4] { grid-column: span 2; }

.eav-field label[b-vq4o5d5vb4] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.req[b-vq4o5d5vb4] { color: #dc3545; }

.eav-input[b-vq4o5d5vb4] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 7px 11px;
    font-size: 0.88rem;
    color: #212529;
    background: #fff;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.eav-input:focus[b-vq4o5d5vb4] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.eav-input.err[b-vq4o5d5vb4] { border-color: #dc3545; }

.eav-field-check[b-vq4o5d5vb4] { justify-content: flex-end; padding-bottom: 2px; }
.eav-check-label[b-vq4o5d5vb4] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #495057;
    cursor: pointer;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
}
.eav-check-label input[type=checkbox][b-vq4o5d5vb4] { width: 16px; height: 16px; cursor: pointer; }

.eav-section-label[b-vq4o5d5vb4] {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding-top: 6px;
    border-top: 1px dashed #dee2e6;
    margin-top: 4px;
}
.eav-cred-hint[b-vq4o5d5vb4] {
    font-size: 0.75rem;
    font-weight: 400;
    color: #adb5bd;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
}

.eav-save-error[b-vq4o5d5vb4] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
    margin-top: 12px;
}

.eav-form-actions[b-vq4o5d5vb4] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.btn-eav-cancel[b-vq4o5d5vb4] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color .15s, color .15s;
}
.btn-eav-cancel:hover[b-vq4o5d5vb4] { border-color: #adb5bd; color: #212529; }

.btn-eav-save[b-vq4o5d5vb4] {
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background .15s;
}
.btn-eav-save:hover[b-vq4o5d5vb4]    { background: #1648c0; }
.btn-eav-save:disabled[b-vq4o5d5vb4] { background: #93c5fd; cursor: not-allowed; }

/* ── Tabelle ── */
.eav-table-wrap[b-vq4o5d5vb4] {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.eav-loading[b-vq4o5d5vb4],
.eav-empty[b-vq4o5d5vb4] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 3rem;
    color: #adb5bd;
    font-size: 0.95rem;
}
.eav-empty i[b-vq4o5d5vb4] { font-size: 2rem; }

.eav-table[b-vq4o5d5vb4] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.eav-table thead th[b-vq4o5d5vb4] {
    background: #f8f9fa;
    padding: 9px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}
.th-center[b-vq4o5d5vb4] { text-align: center !important; }
.th-action[b-vq4o5d5vb4] { width: 90px; }

.eav-table tbody tr[b-vq4o5d5vb4] {
    border-bottom: 1px solid #f1f3f5;
    transition: background .12s;
}
.eav-table tbody tr:hover[b-vq4o5d5vb4] { background: #f8f9fa; }
.row-deleting[b-vq4o5d5vb4] { background: #fff5f5 !important; }

.eav-table td[b-vq4o5d5vb4] { padding: 10px 12px; vertical-align: middle; }
.td-center[b-vq4o5d5vb4]  { text-align: center; }
.td-name[b-vq4o5d5vb4]    { font-weight: 600; color: #212529; }
.td-email a[b-vq4o5d5vb4] { color: #1a56db; text-decoration: none; }
.td-email a:hover[b-vq4o5d5vb4] { text-decoration: underline; }
.td-sync[b-vq4o5d5vb4]    { font-size: 0.82rem; color: #495057; white-space: nowrap; }
.td-error[b-vq4o5d5vb4]   { max-width: 200px; }
.td-action[b-vq4o5d5vb4]  { white-space: nowrap; text-align: right; }

.badge-active[b-vq4o5d5vb4] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-inactive[b-vq4o5d5vb4] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f3f5;
    color: #6c757d;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 600;
}

.eav-error-badge[b-vq4o5d5vb4] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff5f5;
    color: #dc3545;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: help;
}

/* ── Aktions-Buttons ── */
.btn-eav-icon[b-vq4o5d5vb4] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    color: #495057;
    font-size: 0.82rem;
    margin-left: 4px;
    transition: border-color .15s, background .15s, color .15s;
}
.btn-eav-icon:hover[b-vq4o5d5vb4] { border-color: #4c8dff; color: #1a56db; background: #f0f5ff; }
.btn-eav-delete:hover[b-vq4o5d5vb4] { border-color: #dc3545; color: #dc3545; background: #fff5f5; }
.btn-eav-test:hover[b-vq4o5d5vb4]   { border-color: #0d9488; color: #0d9488; background: #f0fdfa; }
.btn-eav-test:disabled[b-vq4o5d5vb4] { opacity: .6; cursor: not-allowed; }

/* Delete Confirm */
.eav-delete-confirm[b-vq4o5d5vb4] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #b91c1c;
    font-weight: 600;
}
.btn-confirm-yes[b-vq4o5d5vb4] {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}
.btn-confirm-yes:hover[b-vq4o5d5vb4] { background: #b91c1c; }
.btn-confirm-no[b-vq4o5d5vb4] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 5px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #6c757d;
}
.btn-confirm-no:hover[b-vq4o5d5vb4] { border-color: #adb5bd; color: #212529; }

/* ── Auth-Test Ergebnis ── */
.row-test-result td[b-vq4o5d5vb4] { padding: 0 12px 8px; }

.eav-test-result[b-vq4o5d5vb4] {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 500;
}
.test-ok[b-vq4o5d5vb4]   { background: #f0fdf4; border: 1px solid #86efac; color: #15803d; }
.test-fail[b-vq4o5d5vb4] { background: #fff5f5; border: 1px solid #fca5a5; color: #b91c1c; }
.eav-test-result i[b-vq4o5d5vb4]   { font-size: 1.05rem; flex-shrink: 0; }
.eav-test-result span[b-vq4o5d5vb4] { flex: 1; word-break: break-all; }

.btn-test-close[b-vq4o5d5vb4] {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: inherit;
    opacity: .6;
    padding: 0 4px;
    flex-shrink: 0;
}
.btn-test-close:hover[b-vq4o5d5vb4] { opacity: 1; }

/* ── Jira-spezifisch ── */
.td-site[b-vq4o5d5vb4] {
    font-size: 0.82rem;
    color: #6c757d;
    white-space: nowrap;
}

.td-projects[b-vq4o5d5vb4] {
    font-size: 0.82rem;
    color: #495057;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hinweis, wo das API-Token herkommt – im Formular, nicht in der Doku versteckt. */
.eav-hint-row[b-vq4o5d5vb4] {
    flex-direction: row;
    align-items: baseline;
    gap: 7px;
    background: #f0f5ff;
    border: 1px solid #c7d9ff;
    border-radius: 8px;
    padding: 9px 13px;
    font-size: 0.82rem;
    color: #1e40af;
    line-height: 1.5;
}
.eav-hint-row i[b-vq4o5d5vb4] { flex-shrink: 0; }

/* Projekt-Checkboxen: mehrspaltig, damit auch 15 Projekte nicht scrollen */
.eav-project-list[b-vq4o5d5vb4] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 6px 16px;
    background: #fff;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 14px;
    max-height: 220px;
    overflow-y: auto;
}
.eav-project-list .eav-check-label[b-vq4o5d5vb4] { font-size: 0.84rem; }
.eav-project-list strong[b-vq4o5d5vb4] { color: #212529; }

.btn-eav-inline[b-vq4o5d5vb4] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 6px;
    padding: 3px 10px;
    margin-left: auto;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: none;
    letter-spacing: 0;
    transition: border-color .15s, color .15s, background .15s;
}
.btn-eav-inline:hover[b-vq4o5d5vb4]    { border-color: #4c8dff; color: #1a56db; background: #f0f5ff; }
.btn-eav-inline:disabled[b-vq4o5d5vb4] { opacity: .6; cursor: not-allowed; }
/* /Components/Tabs/Admin/ProduktVerwaltung.razor.rz.scp.css */
/* ── View-Container ── */
.eav-view[b-xvyr29m2ap] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* ── Header ── */
.eav-header[b-xvyr29m2ap] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.eav-title[b-xvyr29m2ap] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 9px;
}

.btn-eav-add[b-xvyr29m2ap] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a56db;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.btn-eav-add:hover[b-xvyr29m2ap] { background: #1648c0; }

.eav-hint[b-xvyr29m2ap] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.83rem;
    color: #475569;
}
.eav-hint > .bi[b-xvyr29m2ap] { color: #64748b; margin-top: 1px; }

/* ── Formular-Karte ── */
.eav-form-card[b-xvyr29m2ap] {
    background: #f8f9fa;
    border: 1.5px solid #dee2e6;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.eav-form-title[b-xvyr29m2ap] {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.eav-form-grid[b-xvyr29m2ap] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
}

.eav-field[b-xvyr29m2ap] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.eav-field.span2[b-xvyr29m2ap] { grid-column: span 2; }

.eav-field label[b-xvyr29m2ap] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.req[b-xvyr29m2ap] { color: #dc3545; }

.eav-input[b-xvyr29m2ap] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 7px 11px;
    font-size: 0.88rem;
    color: #212529;
    background: #fff;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.eav-input:focus[b-xvyr29m2ap] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.eav-input.err[b-xvyr29m2ap] { border-color: #dc3545; }

.eav-save-error[b-xvyr29m2ap] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
    margin-top: 12px;
}

.eav-form-actions[b-xvyr29m2ap] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.btn-eav-cancel[b-xvyr29m2ap] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color .15s, color .15s;
}
.btn-eav-cancel:hover[b-xvyr29m2ap] { border-color: #adb5bd; color: #212529; }

.btn-eav-save[b-xvyr29m2ap] {
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background .15s;
}
.btn-eav-save:hover:not(:disabled)[b-xvyr29m2ap] { background: #1648c0; }
.btn-eav-save:disabled[b-xvyr29m2ap] { background: #93c5fd; cursor: not-allowed; }

/* ── Farbpalette ── */
.tv-palette[b-xvyr29m2ap] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tv-swatch[b-xvyr29m2ap] {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    padding: 0;
}
.tv-swatch.is-active[b-xvyr29m2ap] { box-shadow: 0 0 0 2px #1a56db; }

/* ── Tabelle ── */
.eav-table-wrap[b-xvyr29m2ap] {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.eav-loading[b-xvyr29m2ap],
.eav-empty[b-xvyr29m2ap] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 3rem;
    color: #adb5bd;
    font-size: 0.95rem;
}
.eav-empty i[b-xvyr29m2ap] { font-size: 2rem; }

.eav-table[b-xvyr29m2ap] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.eav-table thead th[b-xvyr29m2ap] {
    background: #f8f9fa;
    padding: 9px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}
.th-center[b-xvyr29m2ap] { text-align: center !important; }
.th-action[b-xvyr29m2ap] { width: 210px; }

.eav-table tbody tr[b-xvyr29m2ap] {
    border-bottom: 1px solid #f1f3f5;
    transition: background .12s;
}
.eav-table tbody tr:hover[b-xvyr29m2ap] { background: #f8f9fa; }
.row-deleting[b-xvyr29m2ap] { background: #fff5f5 !important; }

.eav-table td[b-xvyr29m2ap] { padding: 10px 12px; vertical-align: middle; }
.td-center[b-xvyr29m2ap] { text-align: center; }
.td-desc[b-xvyr29m2ap]   { color: #6c757d; }
.td-action[b-xvyr29m2ap] { white-space: nowrap; text-align: right; }

.badge-active[b-xvyr29m2ap] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-inactive[b-xvyr29m2ap] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f3f5;
    color: #6c757d;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ── Aktions-Buttons ── */
.btn-eav-icon[b-xvyr29m2ap] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    color: #495057;
    font-size: 0.82rem;
    margin-left: 4px;
    transition: border-color .15s, background .15s, color .15s;
}
.btn-eav-icon:hover:not(:disabled)[b-xvyr29m2ap] { border-color: #4c8dff; color: #1a56db; background: #f0f5ff; }
.btn-eav-icon:disabled[b-xvyr29m2ap] { opacity: .4; cursor: not-allowed; }
.btn-eav-delete:hover:not(:disabled)[b-xvyr29m2ap] { border-color: #dc3545; color: #dc3545; background: #fff5f5; }

/* Delete Confirm */
.eav-delete-confirm[b-xvyr29m2ap] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #b91c1c;
    font-weight: 600;
}
.btn-confirm-yes[b-xvyr29m2ap] {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}
.btn-confirm-yes:hover[b-xvyr29m2ap] { background: #b91c1c; }
.btn-confirm-no[b-xvyr29m2ap] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 5px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #6c757d;
}
.btn-confirm-no:hover[b-xvyr29m2ap] { border-color: #adb5bd; color: #212529; }

/* ── Zweispaltige Aufteilung: Produkte links, Module des gewählten Produkts rechts ── */
.pv-split[b-xvyr29m2ap] {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

@media (max-width: 1000px) {
    .pv-split[b-xvyr29m2ap] { grid-template-columns: 1fr; }
}

.pv-col[b-xvyr29m2ap] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 14px 16px 10px;
    background: #fff;
}

.pv-col-title[b-xvyr29m2ap] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding-bottom: 9px;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.pv-col-count[b-xvyr29m2ap] {
    background: #f1f3f5;
    color: #495057;
    border-radius: 20px;
    padding: 1px 9px;
    font-size: 0.75rem;
}

.pv-list[b-xvyr29m2ap] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.pv-row[b-xvyr29m2ap] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
    border-bottom: 1px solid #f1f3f5;
    border-radius: 7px;
    transition: background .12s;
}
.pv-row:hover[b-xvyr29m2ap] { background: #f8f9fa; }

.pv-col-produkte .pv-row[b-xvyr29m2ap] { cursor: pointer; }
.pv-row.is-selected[b-xvyr29m2ap] { background: #eef2ff; }
.pv-row.is-inactive[b-xvyr29m2ap] { opacity: .55; }

.pv-row-main[b-xvyr29m2ap] {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pv-modul-name[b-xvyr29m2ap] {
    font-size: 0.88rem;
    color: #212529;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pv-row-sub[b-xvyr29m2ap] {
    font-size: 0.78rem;
    color: #868e96;
    white-space: nowrap;
}

/* Modul erlaubt Mehrfach-Erfassung – Icon abgesetzt hervorheben */
.btn-eav-icon.is-mehrfach[b-xvyr29m2ap] { color: #1a56db; }

/* Klickbare Verwendungszahl – öffnet die Kundenliste */
.pv-usage-link[b-xvyr29m2ap] {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    color: #1a56db;
    cursor: pointer;
    text-decoration: underline dotted;
    text-underline-offset: 2px;
}
.pv-usage-link:hover[b-xvyr29m2ap] { text-decoration: underline solid; }

.pv-partner-badge[b-xvyr29m2ap] {
    background: #fef3c7;
    color: #92400e;
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-right: 6px;
}

.pv-row-actions[b-xvyr29m2ap] { white-space: nowrap; flex-shrink: 0; }

.pv-check[b-xvyr29m2ap] {
    display: flex !important;
    align-items: center;
    gap: 8px;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 0.87rem !important;
    font-weight: 500 !important;
    color: #212529 !important;
    cursor: pointer;
    padding-top: 4px;
}

.pv-modul-add[b-xvyr29m2ap] {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    flex-shrink: 0;
}
.pv-modul-add .btn-eav-add[b-xvyr29m2ap] { white-space: nowrap; }
.pv-modul-add .btn-eav-add:disabled[b-xvyr29m2ap] { background: #93c5fd; cursor: not-allowed; }

.pv-modul-hint[b-xvyr29m2ap] {
    font-size: 0.76rem;
    color: #868e96;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.pv-modul-edit[b-xvyr29m2ap] { font-size: 0.88rem; }
/* /Components/Tabs/Admin/SipgateAccountVerwaltung.razor.rz.scp.css */
/* ── View-Container ── */
.eav-view[b-dq1wal40yv] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0;
}

/* ── Header ── */
.eav-header[b-dq1wal40yv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.eav-title[b-dq1wal40yv] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 9px;
}

.btn-eav-add[b-dq1wal40yv] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a56db;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.btn-eav-add:hover[b-dq1wal40yv] { background: #1648c0; }

/* ── Formular-Karte ── */
.eav-form-card[b-dq1wal40yv] {
    background: #f8f9fa;
    border: 1.5px solid #dee2e6;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.eav-form-title[b-dq1wal40yv] {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.eav-form-grid[b-dq1wal40yv] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
}

.eav-field[b-dq1wal40yv] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.eav-field.span2[b-dq1wal40yv] { grid-column: span 2; }

.eav-field label[b-dq1wal40yv] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.req[b-dq1wal40yv] { color: #dc3545; }

.eav-input[b-dq1wal40yv] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 7px 11px;
    font-size: 0.88rem;
    color: #212529;
    background: #fff;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.eav-input:focus[b-dq1wal40yv] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.eav-input.err[b-dq1wal40yv] { border-color: #dc3545; }

.eav-field-check[b-dq1wal40yv] { justify-content: flex-end; padding-bottom: 2px; }
.eav-check-label[b-dq1wal40yv] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #495057;
    cursor: pointer;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
}
.eav-check-label input[type=checkbox][b-dq1wal40yv] { width: 16px; height: 16px; cursor: pointer; }

.eav-section-label[b-dq1wal40yv] {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding-top: 6px;
    border-top: 1px dashed #dee2e6;
    margin-top: 4px;
}
.eav-cred-hint[b-dq1wal40yv] {
    font-size: 0.75rem;
    font-weight: 400;
    color: #adb5bd;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
}

.eav-save-error[b-dq1wal40yv] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
    margin-top: 12px;
}

.eav-form-actions[b-dq1wal40yv] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.btn-eav-cancel[b-dq1wal40yv] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color .15s, color .15s;
}
.btn-eav-cancel:hover[b-dq1wal40yv] { border-color: #adb5bd; color: #212529; }

.btn-eav-save[b-dq1wal40yv] {
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background .15s;
}
.btn-eav-save:hover[b-dq1wal40yv]    { background: #1648c0; }
.btn-eav-save:disabled[b-dq1wal40yv] { background: #93c5fd; cursor: not-allowed; }

/* ── Tabelle ── */
.eav-table-wrap[b-dq1wal40yv] {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.eav-loading[b-dq1wal40yv],
.eav-empty[b-dq1wal40yv] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 3rem;
    color: #adb5bd;
    font-size: 0.95rem;
}
.eav-empty i[b-dq1wal40yv] { font-size: 2rem; }

.eav-table[b-dq1wal40yv] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.eav-table thead th[b-dq1wal40yv] {
    background: #f8f9fa;
    padding: 9px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}
.th-center[b-dq1wal40yv] { text-align: center !important; }
.th-action[b-dq1wal40yv] { width: 90px; }

.eav-table tbody tr[b-dq1wal40yv] {
    border-bottom: 1px solid #f1f3f5;
    transition: background .12s;
}
.eav-table tbody tr:hover[b-dq1wal40yv] { background: #f8f9fa; }
.row-deleting[b-dq1wal40yv] { background: #fff5f5 !important; }

.eav-table td[b-dq1wal40yv] { padding: 10px 12px; vertical-align: middle; }
.td-center[b-dq1wal40yv]  { text-align: center; }
.td-name[b-dq1wal40yv]    { font-weight: 600; color: #212529; }
.td-email a[b-dq1wal40yv] { color: #1a56db; text-decoration: none; }
.td-email a:hover[b-dq1wal40yv] { text-decoration: underline; }
.td-sync[b-dq1wal40yv]    { font-size: 0.82rem; color: #495057; white-space: nowrap; }
.td-error[b-dq1wal40yv]   { max-width: 200px; }
.td-action[b-dq1wal40yv]  { white-space: nowrap; text-align: right; }

.badge-active[b-dq1wal40yv] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-inactive[b-dq1wal40yv] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f3f5;
    color: #6c757d;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 600;
}

.eav-error-badge[b-dq1wal40yv] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff5f5;
    color: #dc3545;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: help;
}

/* ── Aktions-Buttons ── */
.btn-eav-icon[b-dq1wal40yv] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    color: #495057;
    font-size: 0.82rem;
    margin-left: 4px;
    transition: border-color .15s, background .15s, color .15s;
}
.btn-eav-icon:hover[b-dq1wal40yv] { border-color: #4c8dff; color: #1a56db; background: #f0f5ff; }
.btn-eav-delete:hover[b-dq1wal40yv] { border-color: #dc3545; color: #dc3545; background: #fff5f5; }
.btn-eav-test:hover[b-dq1wal40yv]   { border-color: #0d9488; color: #0d9488; background: #f0fdfa; }
.btn-eav-test:disabled[b-dq1wal40yv] { opacity: .6; cursor: not-allowed; }

/* Delete Confirm */
.eav-delete-confirm[b-dq1wal40yv] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #b91c1c;
    font-weight: 600;
}
.btn-confirm-yes[b-dq1wal40yv] {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}
.btn-confirm-yes:hover[b-dq1wal40yv] { background: #b91c1c; }
.btn-confirm-no[b-dq1wal40yv] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 5px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #6c757d;
}
.btn-confirm-no:hover[b-dq1wal40yv] { border-color: #adb5bd; color: #212529; }

/* ── Auth-Test Ergebnis ── */
.row-test-result td[b-dq1wal40yv] { padding: 0 12px 8px; }

.eav-test-result[b-dq1wal40yv] {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 500;
}
.test-ok[b-dq1wal40yv]   { background: #f0fdf4; border: 1px solid #86efac; color: #15803d; }
.test-fail[b-dq1wal40yv] { background: #fff5f5; border: 1px solid #fca5a5; color: #b91c1c; }
.eav-test-result i[b-dq1wal40yv]   { font-size: 1.05rem; flex-shrink: 0; }
.eav-test-result span[b-dq1wal40yv] { flex: 1; word-break: break-all; }

.btn-test-close[b-dq1wal40yv] {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: inherit;
    opacity: .6;
    padding: 0 4px;
    flex-shrink: 0;
}
.btn-test-close:hover[b-dq1wal40yv] { opacity: 1; }
/* /Components/Tabs/Admin/TagVerwaltung.razor.rz.scp.css */
/* ── View-Container ── */
.eav-view[b-4v2qm689pf] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* ── Header ── */
.eav-header[b-4v2qm689pf] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.eav-title[b-4v2qm689pf] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 9px;
}

.btn-eav-add[b-4v2qm689pf] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a56db;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.btn-eav-add:hover[b-4v2qm689pf] { background: #1648c0; }

.eav-hint[b-4v2qm689pf] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.83rem;
    color: #475569;
}
.eav-hint > .bi[b-4v2qm689pf] { color: #64748b; margin-top: 1px; }

/* ── Formular-Karte ── */
.eav-form-card[b-4v2qm689pf] {
    background: #f8f9fa;
    border: 1.5px solid #dee2e6;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.eav-form-title[b-4v2qm689pf] {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.eav-form-grid[b-4v2qm689pf] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
}

.eav-field[b-4v2qm689pf] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.eav-field.span2[b-4v2qm689pf] { grid-column: span 2; }

.eav-field label[b-4v2qm689pf] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.req[b-4v2qm689pf] { color: #dc3545; }

.eav-input[b-4v2qm689pf] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 7px 11px;
    font-size: 0.88rem;
    color: #212529;
    background: #fff;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.eav-input:focus[b-4v2qm689pf] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.eav-input.err[b-4v2qm689pf] { border-color: #dc3545; }

.eav-save-error[b-4v2qm689pf] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
    margin-top: 12px;
}

.eav-form-actions[b-4v2qm689pf] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.btn-eav-cancel[b-4v2qm689pf] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color .15s, color .15s;
}
.btn-eav-cancel:hover[b-4v2qm689pf] { border-color: #adb5bd; color: #212529; }

.btn-eav-save[b-4v2qm689pf] {
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background .15s;
}
.btn-eav-save:hover:not(:disabled)[b-4v2qm689pf] { background: #1648c0; }
.btn-eav-save:disabled[b-4v2qm689pf] { background: #93c5fd; cursor: not-allowed; }

/* ── Farbpalette ── */
.tv-palette[b-4v2qm689pf] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tv-swatch[b-4v2qm689pf] {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    padding: 0;
}
.tv-swatch.is-active[b-4v2qm689pf] { box-shadow: 0 0 0 2px #1a56db; }

/* ── Tabelle ── */
.eav-table-wrap[b-4v2qm689pf] {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.eav-loading[b-4v2qm689pf],
.eav-empty[b-4v2qm689pf] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 3rem;
    color: #adb5bd;
    font-size: 0.95rem;
}
.eav-empty i[b-4v2qm689pf] { font-size: 2rem; }

.eav-table[b-4v2qm689pf] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.eav-table thead th[b-4v2qm689pf] {
    background: #f8f9fa;
    padding: 9px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}
.th-center[b-4v2qm689pf] { text-align: center !important; }
.th-action[b-4v2qm689pf] { width: 210px; }

.eav-table tbody tr[b-4v2qm689pf] {
    border-bottom: 1px solid #f1f3f5;
    transition: background .12s;
}
.eav-table tbody tr:hover[b-4v2qm689pf] { background: #f8f9fa; }
.row-deleting[b-4v2qm689pf] { background: #fff5f5 !important; }

.eav-table td[b-4v2qm689pf] { padding: 10px 12px; vertical-align: middle; }
.td-center[b-4v2qm689pf] { text-align: center; }
.td-desc[b-4v2qm689pf]   { color: #6c757d; }
.td-action[b-4v2qm689pf] { white-space: nowrap; text-align: right; }

.badge-active[b-4v2qm689pf] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-inactive[b-4v2qm689pf] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f3f5;
    color: #6c757d;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ── Aktions-Buttons ── */
.btn-eav-icon[b-4v2qm689pf] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    color: #495057;
    font-size: 0.82rem;
    margin-left: 4px;
    transition: border-color .15s, background .15s, color .15s;
}
.btn-eav-icon:hover:not(:disabled)[b-4v2qm689pf] { border-color: #4c8dff; color: #1a56db; background: #f0f5ff; }
.btn-eav-icon:disabled[b-4v2qm689pf] { opacity: .4; cursor: not-allowed; }
.btn-eav-delete:hover:not(:disabled)[b-4v2qm689pf] { border-color: #dc3545; color: #dc3545; background: #fff5f5; }

/* Delete Confirm */
.eav-delete-confirm[b-4v2qm689pf] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #b91c1c;
    font-weight: 600;
}
.btn-confirm-yes[b-4v2qm689pf] {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}
.btn-confirm-yes:hover[b-4v2qm689pf] { background: #b91c1c; }
.btn-confirm-no[b-4v2qm689pf] {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 5px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #6c757d;
}
.btn-confirm-no:hover[b-4v2qm689pf] { border-color: #adb5bd; color: #212529; }
/* /Components/Tabs/AdressDetail.razor.rz.scp.css */
.adr-detail[b-mq89cbikpd] {
    /* Breite der schmalen Spalte, ohne Rand und linken Innenabstand. Im Projekt sind
       px-Literale Hausstil (CaseDetail 280px, MainLayout 220px) - hier ist eine Variable
       richtig, weil derselbe Wert an zwei Stellen stehen muss: Kontaktspalte der Kopfkarte
       und Nebenspalte darunter. Weichen sie ab, fluchtet die Trennlinie nicht mehr. */
    --adr-nebenspalte: 300px;

    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    /* Gescrollt wird in den Spalten, nicht auf der Seite - Muster aus CaseDetail. */
    overflow: hidden;
}

.adr-loading[b-mq89cbikpd], .adr-notfound[b-mq89cbikpd] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 10px;
    color: #6c757d;
}
.adr-notfound[b-mq89cbikpd] { color: #b91c1c; font-weight: 500; }

/* Kopf-Card */
.adr-header-card[b-mq89cbikpd] {
    display: flex;
    /* Kein gap: den Abstand tragen padding-right links und padding-left rechts. Nur so hat
       die Kopfkarte denselben Aufbau wie der Arbeitsbereich und die Trennlinien fluchten. */
    gap: 0;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.adr-hc-left[b-mq89cbikpd] { flex: 1 1 360px; min-width: 300px; padding-right: 24px; display: flex; flex-direction: column; gap: 12px; }
.adr-hc-title[b-mq89cbikpd] {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #212529;
}
.adr-hc-title > i[b-mq89cbikpd] { color: var(--crm-adresse-fg, #1a56db); font-size: 1.4rem; }

.adr-hc-badges[b-mq89cbikpd] { display: flex; gap: 6px; flex-wrap: wrap; }
.adr-badge[b-mq89cbikpd] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.76rem;
    font-weight: 600;
    background: #e9ecef;
    color: #495057;
}
.adr-badge.b-kunde[b-mq89cbikpd]       { background: #dcfce7; color: #166534; }
.adr-badge.b-lieferant[b-mq89cbikpd]   { background: #dbeafe; color: #1e40af; }
.adr-badge.b-winzer[b-mq89cbikpd]      { background: #fef3c7; color: #92400e; }
.adr-badge.b-mitarbeiter[b-mq89cbikpd] { background: #ede9fe; color: #5b21b6; }
.adr-badge.b-vertreter[b-mq89cbikpd]   { background: #fce7f3; color: #9d174d; }
.adr-badge.b-warn[b-mq89cbikpd]        { background: #fee2e2; color: #b91c1c; }

.adr-hc-warntext[b-mq89cbikpd] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.83rem;
    color: #b91c1c;
}

.adr-hc-fields[b-mq89cbikpd] {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 10px 20px;
    align-content: start;
    min-width: 280px;
}
.adr-field[b-mq89cbikpd] { display: flex; flex-direction: column; gap: 3px; }
.adr-field-wide[b-mq89cbikpd] { grid-column: span 2; }
.adr-field label[b-mq89cbikpd] {
    font-size: 0.7rem;
    font-weight: 700;
    color: #868e96;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.adr-field span[b-mq89cbikpd] { font-size: 0.86rem; color: #212529; }

/* Briefkopf: Adressblock + Meta */
.adr-hc-address[b-mq89cbikpd] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.92rem;
    color: #212529;
    line-height: 1.35;
}
.adr-hc-meta[b-mq89cbikpd] {
    font-size: 0.78rem;
    color: #868e96;
}

/* Kontaktdaten-Spalte */
.adr-hc-contact[b-mq89cbikpd] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* 25px = 1px Rand + 24px Innenabstand links; die rechten 24px kommen vom
       Seitenrand der Kopfkarte. Inhaltsbreite = --adr-nebenspalte. */
    flex: 0 0 calc(var(--adr-nebenspalte) + 25px);
    box-sizing: border-box;
    padding-left: 24px;
    border-left: 1px solid #e9ecef;
    align-content: start;
}
.adr-contact-row[b-mq89cbikpd] { flex-direction: row; align-items: flex-end; gap: 8px; }
.adr-contact-input[b-mq89cbikpd] { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.adr-contact-action[b-mq89cbikpd] {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    color: var(--crm-adresse-fg, #1a56db);
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: background .12s, border-color .12s;
}
.adr-contact-action:hover[b-mq89cbikpd] {
    background: var(--crm-adresse-fg, #1a56db);
    border-color: var(--crm-adresse-fg, #1a56db);
    color: #fff;
}

.adr-input[b-mq89cbikpd] {
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    padding: 2px 5px;
    margin: -2px -5px;
    font-size: 0.86rem;
    color: #212529;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}
.adr-input[b-mq89cbikpd]::placeholder { color: #adb5bd; }
.adr-input:hover[b-mq89cbikpd] { border-color: #dee2e6; background: #fff; }
.adr-input:focus[b-mq89cbikpd] { outline: none; border-color: #4c8dff; background: #fff; box-shadow: 0 0 0 3px rgba(76,141,255,.15); }

.adr-save-error[b-mq89cbikpd] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.83rem;
    color: #b91c1c;
}

/* ── Arbeitsbereich: breite Hauptspalte, schmale Nebenspalte ──
   Beide scrollen getrennt, die Kopfkarte bleibt stehen - Muster aus CaseDetail. Die Trennung
   macht der Rand, nicht eine Lücke, deshalb gap: 0. */
.adr-workspace[b-mq89cbikpd] {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 0;
    overflow: hidden;
}

.adr-spalte-haupt[b-mq89cbikpd] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
}

.adr-spalte-neben[b-mq89cbikpd] {
    /* 49px = 1px Rand + 24px Innenabstand links + 24px rechts. In der Kopfkarte kommen die
       rechten 24px vom Seitenrand der Karte, hier aus dem eigenen Innenabstand - deshalb die
       andere Konstante als bei .adr-hc-contact. Nur so steht die Trennlinie an derselben
       x-Position; die Inhaltsbreite ist in beiden Fällen --adr-nebenspalte. */
    flex: 0 0 calc(var(--adr-nebenspalte) + 49px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 1.25rem 1.5rem 1.25rem 24px;
    border-left: 1px solid #e9ecef;
    background: #fbfbfd;
    overflow-y: auto;
}

/* Die Filterleisten sind für die volle Breite gebaut - in 300px brauchen sie weniger Luft,
   und die Suche gehört auf eine eigene Zeile. */
.adr-spalte-neben .adr-box-filter[b-mq89cbikpd] { gap: 5px; padding: 8px 10px; }
/* Suche und Icon-Filter teilen sich in der schmalen Spalte eine Zeile. */
.adr-spalte-neben .adr-box-search[b-mq89cbikpd]  { flex: 1 1 120px; min-width: 0; }
.adr-spalte-neben .filter-zeitraum[b-mq89cbikpd] { flex: 1 1 150px; min-width: 0; }
.adr-spalte-neben .adr-item-top[b-mq89cbikpd]   { flex-wrap: wrap; }

.adr-box[b-mq89cbikpd] {
    --tile-fg: #495057;
    --tile-bg: #f8f9fa;
    display: flex;
    flex-direction: column;
    /* Nicht schrumpfen: die Spalte hat wegen overflow-y eine feste Hoehe, sonst teilen sich
       mehrere offene Boxen diese Hoehe und werden zusammengequetscht, statt dass die Spalte
       scrollt. */
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-left: 3px solid var(--tile-fg);
    border-radius: 10px;
    overflow: hidden;
}
.adr-box.t-case[b-mq89cbikpd]            { --tile-fg: var(--crm-case-fg);            --tile-bg: var(--crm-case-bg); }
.adr-box.t-ansprechpartner[b-mq89cbikpd] { --tile-fg: var(--crm-ansprechpartner-fg); --tile-bg: var(--crm-ansprechpartner-bg); }
.adr-box.t-zeitaufwand[b-mq89cbikpd]     { --tile-fg: var(--crm-zeitaufwand-fg);     --tile-bg: var(--crm-zeitaufwand-bg); }
.adr-box.t-email[b-mq89cbikpd]           { --tile-fg: var(--crm-email-fg);           --tile-bg: var(--crm-email-bg); }
.adr-box.t-call[b-mq89cbikpd]            { --tile-fg: var(--crm-call-fg);            --tile-bg: var(--crm-call-bg); }
.adr-box.t-note[b-mq89cbikpd]            { --tile-fg: var(--crm-note-fg);            --tile-bg: var(--crm-note-bg); }
.adr-box.t-task[b-mq89cbikpd]            { --tile-fg: var(--crm-task-fg);            --tile-bg: var(--crm-task-bg); }
.adr-box.t-file[b-mq89cbikpd]            { --tile-fg: var(--crm-attachment-fg);      --tile-bg: var(--crm-attachment-bg); }
.adr-box.t-jira[b-mq89cbikpd]            { --tile-fg: var(--crm-jira-fg);            --tile-bg: var(--crm-jira-bg); }

.adr-box-title[b-mq89cbikpd] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--tile-fg);
    text-transform: uppercase;
    letter-spacing: .03em;
    background: var(--tile-bg);
    cursor: pointer;
    user-select: none;
}
.adr-box.expanded .adr-box-title[b-mq89cbikpd] { border-bottom: 1px solid #f1f3f5; }

.adr-box-count[b-mq89cbikpd] {
    margin-left: auto;
    background: rgba(255,255,255,.6);
    color: var(--tile-fg);
    border-radius: 10px;
    padding: 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}
.adr-box-add[b-mq89cbikpd] {
    margin-left: auto;
    border: none;
    background: rgba(255,255,255,.6);
    color: var(--tile-fg);
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    cursor: pointer;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.adr-box-add:hover[b-mq89cbikpd] { background: var(--tile-fg); color: #fff; }
.adr-box-add + .adr-box-count[b-mq89cbikpd] { margin-left: 6px; }

.adr-box-chevron[b-mq89cbikpd] {
    font-size: 0.85rem;
    color: var(--tile-fg);
    transition: transform .15s;
    flex-shrink: 0;
}
.adr-box.expanded .adr-box-chevron[b-mq89cbikpd] { transform: rotate(180deg); }

.adr-box-body[b-mq89cbikpd] { display: flex; flex-direction: column; }

/* Filterleiste einer aufgeklappten Box. filter-bar/btn-filter/search-* kommen aus crm-theme.css. */
.adr-box-filter[b-mq89cbikpd] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f3f5;
    background: #fcfcfd;
}
.adr-box-search[b-mq89cbikpd] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #dee2e6;
    border-radius: 20px;
    padding: 4px 14px;
    min-width: 260px;
    flex: 0 1 340px;
}
.adr-box-search:focus-within[b-mq89cbikpd] { border-color: #4c8dff; box-shadow: 0 0 0 3px rgba(76,141,255,.15); }

/* Zeitraum-Pille: in der schmalen Spalte teilen sich die beiden Datumsfelder die Breite. */
.filter-zeitraum input[b-mq89cbikpd] { flex: 1 1 0; }

.adr-box-spinner[b-mq89cbikpd] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 14px;
    font-size: 0.82rem;
    color: #868e96;
}
.adr-box-empty[b-mq89cbikpd] {
    padding: 14px;
    font-size: 0.8rem;
    color: #adb5bd;
    font-style: italic;
}
.adr-box-list[b-mq89cbikpd] {
    display: flex;
    flex-direction: column;
    padding: 6px;
    gap: 2px;
}
.adr-box-more[b-mq89cbikpd] {
    display: flex;
    justify-content: center;
    padding: 8px 14px 14px;
}
.adr-box-more .btn-filter[b-mq89cbikpd] { font-size: 0.8rem; }

.adr-item[b-mq89cbikpd] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 8px;
    border-radius: 7px;
    cursor: pointer;
    transition: background .12s;
    text-decoration: none;
    color: inherit;
}
.adr-item:hover[b-mq89cbikpd] { background: #eef2ff; }

.adr-item-icon[b-mq89cbikpd] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f1f3f5;
    color: #868e96;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.adr-item-main[b-mq89cbikpd] { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adr-item-actions[b-mq89cbikpd] { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.adr-item-actions .adr-contact-action[b-mq89cbikpd] { width: 28px; height: 28px; font-size: 0.85rem; }
.adr-item-top[b-mq89cbikpd] { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.adr-item-title[b-mq89cbikpd] {
    font-size: 0.84rem;
    font-weight: 500;
    color: #212529;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.adr-item-sub[b-mq89cbikpd] { font-size: 0.75rem; color: #868e96; }
/* Zweizeilige Textvorschau (E-Mails) — bewusst umbrechend, anders als der Titel */
.adr-item-vorschau[b-mq89cbikpd] {
    font-size: 0.76rem;
    color: #adb5bd;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.adr-file-link[b-mq89cbikpd] {
    color: #0ea5e9;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.adr-file-link:hover[b-mq89cbikpd] { text-decoration: underline; }

.adr-item-remove[b-mq89cbikpd] {
    border: none;
    background: transparent;
    color: #ced4da;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 5px;
    flex-shrink: 0;
    transition: color .15s, background .15s;
}
.adr-item-remove:hover[b-mq89cbikpd] { color: #dc2626; background: #fff5f5; }
/* Zweiter Schritt der Inline-Bestätigung — es gibt keinen Confirm-Dialog im Projekt. */
.adr-item-remove-confirm[b-mq89cbikpd] { color: #16a34a; }
.adr-item-remove-confirm:hover[b-mq89cbikpd] { color: #15803d; background: #f0fdf4; }

.adr-status-badge[b-mq89cbikpd] {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
.adr-status-badge.st-new[b-mq89cbikpd]      { background: #dbeafe; color: #1e40af; }
.adr-status-badge.st-progress[b-mq89cbikpd] { background: #fef3c7; color: #92400e; }
.adr-status-badge.st-waiting[b-mq89cbikpd]  { background: #f3e8ff; color: #6b21a8; }
.adr-status-badge.st-hold[b-mq89cbikpd]     { background: #e2e8f0; color: #475569; }
.adr-status-badge.st-closed[b-mq89cbikpd]   { background: #dcfce7; color: #166534; }
.adr-status-badge.st-rejected[b-mq89cbikpd] { background: #fee2e2; color: #b91c1c; }

/* ── Update-Stand in der Kopfzeile ── */
.adr-hc-update[b-mq89cbikpd] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.adr-update-chip[b-mq89cbikpd] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.79rem;
    font-weight: 600;
    border: 1px solid transparent;
}
.adr-update-chip.up-ok[b-mq89cbikpd]       { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.adr-update-chip.up-faellig[b-mq89cbikpd]  { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.adr-update-chip.up-kritisch[b-mq89cbikpd] { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }

.adr-update-chip-klickbar[b-mq89cbikpd] { cursor: pointer; font-family: inherit; }
.adr-update-chip-klickbar:hover[b-mq89cbikpd] { filter: brightness(0.96); }
.adr-update-chip-stift[b-mq89cbikpd] { font-size: 0.7rem; opacity: .45; }
.adr-update-chip-klickbar:hover .adr-update-chip-stift[b-mq89cbikpd] { opacity: .9; }

.adr-update-chip-edit[b-mq89cbikpd] { padding: 1px 6px 1px 12px; gap: 4px; }
.adr-update-date[b-mq89cbikpd] {
    border: 1px solid currentColor;
    border-radius: 6px;
    background: #fff;
    color: #212529;
    font-size: 0.78rem;
    padding: 0 4px;
    height: 22px;
}
.adr-update-chip-btn[b-mq89cbikpd] {
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 5px;
    line-height: 1.4;
}
.adr-update-chip-btn:hover:not(:disabled)[b-mq89cbikpd] { background: rgba(0, 0, 0, .07); }
.adr-update-chip-btn:disabled[b-mq89cbikpd] { opacity: .4; cursor: default; }
.adr-update-chip-btn.ok[b-mq89cbikpd] { color: #16a34a; }

.adr-update-btn[b-mq89cbikpd] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px solid #dee2e6;
    border-radius: 20px;
    padding: 3px 14px;
    font-size: 0.79rem;
    color: #495057;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.adr-update-btn:hover[b-mq89cbikpd] { border-color: var(--crm-produkt-fg); color: var(--crm-produkt-fg); background: var(--crm-produkt-bg); }

/* ── Kacheln Produkte / Update-Historie ── */
.adr-box.t-produkt[b-mq89cbikpd] { --tile-fg: var(--crm-produkt-fg); --tile-bg: var(--crm-produkt-bg); }
.adr-box.t-update[b-mq89cbikpd]  { --tile-fg: var(--crm-zeitaufwand-fg); --tile-bg: var(--crm-zeitaufwand-bg); }
.adr-box.t-zugang[b-mq89cbikpd]  { --tile-fg: var(--crm-zugang-fg);      --tile-bg: var(--crm-zugang-bg); }
.adr-box.t-cal[b-mq89cbikpd]     { --tile-fg: var(--crm-calendar-fg);    --tile-bg: var(--crm-calendar-bg); }

.adr-item-inactive[b-mq89cbikpd] { opacity: .6; }

.adr-produkt-version[b-mq89cbikpd] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6c757d;
    margin-left: 6px;
}

.adr-produkt-inactive[b-mq89cbikpd] {
    font-size: 0.72rem;
    color: #868e96;
    background: #f1f3f5;
    border-radius: 5px;
    padding: 1px 6px;
    margin-left: 6px;
}

.adr-produkt-module[b-mq89cbikpd] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
}

.adr-modul-chip[b-mq89cbikpd] {
    background: #f1f3f5;
    color: #495057;
    border-radius: 5px;
    padding: 1px 7px;
    font-size: 0.72rem;
    white-space: nowrap;
}

/* Multiplikator bei mehrfach vorhandenen Modulen, z. B. „weiterer Client ×3" */
.adr-modul-menge[b-mq89cbikpd] {
    font-weight: 700;
    color: #1a56db;
    margin-left: 1px;
}

/* ── Schmale Fenster ──
   1100px ist der Bruchpunkt des Projekts (PersoenlichesDashboard). Darunter untereinander
   und zurück auf Seiten-Scroll: zwei getrennte Scrollbereiche brauchen Breite, um zu helfen. */
@media (max-width: 1100px) {
    .adr-detail[b-mq89cbikpd] { overflow-y: auto; }

    .adr-workspace[b-mq89cbikpd] {
        flex-direction: column;
        overflow: visible;
    }

    .adr-spalte-haupt[b-mq89cbikpd],
    .adr-spalte-neben[b-mq89cbikpd] {
        flex: 1 1 auto;
        overflow-y: visible;
    }

    .adr-spalte-neben[b-mq89cbikpd] {
        border-left: none;
        background: none;
        padding: 0 1.5rem 1.25rem;
    }

    .adr-spalte-haupt[b-mq89cbikpd] { padding-bottom: 0; }
}
/* /Components/Tabs/AdressUebersicht.razor.rz.scp.css */
.adr-view[b-e8dampl54q] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0;
}

/* ── Header ── */
.adr-header[b-e8dampl54q] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.adr-title[b-e8dampl54q] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 9px;
}

/* ── Suchleiste ── */
.adr-search-wrap[b-e8dampl54q] {
    display: flex;
    align-items: center;
    padding: 0.6rem 0 0.5rem 0;
    flex-shrink: 0;
}
.search-bar[b-e8dampl54q] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 7px 13px;
    min-width: 380px;
    transition: border-color .2s, box-shadow .2s;
}

.search-bar.focused[b-e8dampl54q] {
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76, 141, 255, .15);
}

.search-icon[b-e8dampl54q] { color: #adb5bd; flex-shrink: 0; }

.search-input[b-e8dampl54q] {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.875rem;
    background: transparent;
    color: #212529;
}

.btn-search-clear[b-e8dampl54q] {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #adb5bd;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: color .15s;
}
.btn-search-clear:hover[b-e8dampl54q] { color: #6c757d; }

/* ── Status ── */
.adr-status[b-e8dampl54q] {
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    min-height: 24px;
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.result-count[b-e8dampl54q] { font-weight: 600; color: #495057; }
.limit-hint[b-e8dampl54q]   { color: #e6a817; font-size: 0.8rem; }

/* ── Tabelle ── */
.adr-table-wrap[b-e8dampl54q] {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.adr-table[b-e8dampl54q] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.adr-table tbody[b-e8dampl54q] {
    user-select: none;
    -webkit-user-select: none;
}

.adr-table thead[b-e8dampl54q] {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 2;
}

.adr-table th[b-e8dampl54q] {
    padding: 9px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.th-sort[b-e8dampl54q] { cursor: pointer; user-select: none; }
.th-sort:hover[b-e8dampl54q] { background: #e9ecef; color: #343a40; }
.th-sort.is-sorted[b-e8dampl54q] { color: #4c8dff; }
.th-action[b-e8dampl54q] { width: 44px; }

.sort-hint[b-e8dampl54q] { opacity: 0.3; }

.adr-table td[b-e8dampl54q] {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
    color: #495057;
}

.adr-row[b-e8dampl54q] { cursor: pointer; }
.adr-row:hover td[b-e8dampl54q] { background: #f0f4ff; }
.adr-row:hover .btn-open-tab[b-e8dampl54q] { opacity: 1; }

/* ── Zellen ── */
.td-kdnr[b-e8dampl54q] { color: #868e96; font-variant-numeric: tabular-nums; white-space: nowrap; }

.td-name[b-e8dampl54q] { vertical-align: top; }
.td-name .name-main[b-e8dampl54q] { font-weight: 600; color: #212529; line-height: 1.35; }
.td-name .name-sub[b-e8dampl54q]  { color: #868e96; font-size: 0.8rem; line-height: 1.3; margin-top: 2px; }

/* Button statt mailto-Link, sieht aber weiterhin wie ein Link aus. */
.td-email .email-link[b-e8dampl54q] {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    color: #4c8dff;
    text-decoration: none;
    font-size: 0.85rem;
}
.td-email .email-link:hover[b-e8dampl54q] { text-decoration: underline; }

.typ-badge[b-e8dampl54q] {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.71rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    margin-right: 3px;
}
.typ-badge.kunde[b-e8dampl54q]     { background: #dbeafe; color: #1d4ed8; }
.typ-badge.lieferant[b-e8dampl54q] { background: #dcfce7; color: #166534; }

.td-action[b-e8dampl54q] { width: 44px; text-align: center; }

.btn-open-tab[b-e8dampl54q] {
    border: none;
    background: transparent;
    color: #4c8dff;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 3px 5px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity .15s, background .15s;
    display: inline-flex;
    align-items: center;
}
.btn-open-tab:hover[b-e8dampl54q] { background: #dbeafe; }

.td-loading[b-e8dampl54q] {
    text-align: center;
    padding: 2rem !important;
    color: #6c757d;
    font-size: 0.875rem;
}
/* /Components/Tabs/BenutzerEinstellungen.razor.rz.scp.css */
.settings-page[b-wsad1jmuqj] {
    padding: 24px;
    overflow-y: auto;
    height: 100%;
}

.settings-card[b-wsad1jmuqj] {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    max-width: 640px;
    overflow: hidden;
}

.settings-card-header[b-wsad1jmuqj] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #212529;
    background: #f8f9fa;
}

.settings-loading[b-wsad1jmuqj] {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.9rem;
    padding: 24px 20px;
}

.settings-row[b-wsad1jmuqj] {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-label[b-wsad1jmuqj] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
}

.settings-control[b-wsad1jmuqj] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-select[b-wsad1jmuqj] {
    flex: 1;
    max-width: 420px;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.88rem;
    color: #212529;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s;
}
.settings-select:focus[b-wsad1jmuqj] { outline: none; border-color: #1a56db; }

.settings-saved[b-wsad1jmuqj] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #16a34a;
    font-size: 0.82rem;
    font-weight: 600;
}

.settings-hint[b-wsad1jmuqj] {
    font-size: 0.8rem;
    color: #868e96;
}

.settings-empty[b-wsad1jmuqj] {
    margin: 0 20px 20px;
    padding: 12px 14px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #8a6d00;
}

/* ── Signatur ── */

/* Der Rich-Text-Editor braucht die volle Breite, nicht die Zeilen-Ausrichtung
   der einzeiligen Steuerelemente. */
.settings-control-block[b-wsad1jmuqj] {
    display: block;
    max-width: 720px;
}

.settings-row-actions[b-wsad1jmuqj] {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding-top: 0;
}

.btn-settings-save[b-wsad1jmuqj] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: #1a56db;
    color: #fff;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.btn-settings-save:hover:not(:disabled)[b-wsad1jmuqj] { background: #1648c0; }
.btn-settings-save:disabled[b-wsad1jmuqj] { background: #93c5fd; cursor: not-allowed; }

.settings-error[b-wsad1jmuqj] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #dc3545;
    font-size: 0.82rem;
    font-weight: 600;
}
/* /Components/Tabs/BuchhaltungDashboard.razor.rz.scp.css */
/* Hülle des Buchhaltungsbereichs: Kopfzeile mit Untertab-Leiste + Panelfläche. */

.bh-shell[b-6arjkz1sz5] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* ── Kopfzeile ── */
.bh-head[b-6arjkz1sz5] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.bh-title[b-6arjkz1sz5] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 9px;
}

/* Aktionsbutton rechts abgesetzt, Segmentleiste bleibt am Titel. */
.bh-btn-new[b-6arjkz1sz5] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.bh-btn-new:hover[b-6arjkz1sz5] { background: #1648c0; }

/* ── Untertab-Leiste (Segment-Umschalter wie im persönlichen Dashboard) ── */
.bh-seg[b-6arjkz1sz5] {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.bh-seg-btn[b-6arjkz1sz5] {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.bh-seg-btn:hover[b-6arjkz1sz5] { color: #1e293b; }

.bh-seg-btn.active[b-6arjkz1sz5] {
    background: #fff;
    color: var(--casetype-accounting, #1e293b);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

/* ── Panelfläche ── */
.bh-body[b-6arjkz1sz5] {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Inaktive Panels bleiben gemountet, werden aber ausgeblendet. */
.bh-panel[b-6arjkz1sz5] { display: none; }

.bh-panel.is-visible[b-6arjkz1sz5] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
/* /Components/Tabs/Buchhaltung/BuchhaltungPeriodischeRechnungen.razor.rz.scp.css */
.cases-view[b-54zzrhvgyy] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0;
}

/* ── Suchleiste ── */
.cases-search-wrap[b-54zzrhvgyy] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.6rem 0 0.5rem 0;
    flex-shrink: 0;
}
/* search-bar, filter-bar, btn-filter (Grundform) sind zentral in wwwroot/css/crm-theme.css definiert */

/* ── Zeitraumfelder ── */
.pr-datefields[b-54zzrhvgyy] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.pr-date[b-54zzrhvgyy] {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.8rem;
    color: #212529;
    background: #fff;
}
.pr-date:focus[b-54zzrhvgyy] { outline: none; border-color: #4c8dff; }

.pr-date-sep[b-54zzrhvgyy] { color: #6c757d; font-size: 0.8rem; }

/* ── Ampelschwellen (aufklappbar, nicht gespeichert) ── */
.pr-schwellen[b-54zzrhvgyy] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 8px 10px;
    margin-bottom: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    flex-shrink: 0;
}

.pr-schwelle[b-54zzrhvgyy] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pr-schwelle-label[b-54zzrhvgyy] {
    font-size: 0.78rem;
    color: #6c757d;
    margin-right: 2px;
}

.pr-schwelle-input[b-54zzrhvgyy] {
    width: 58px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 0.78rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.pr-schwelle-input:focus[b-54zzrhvgyy] { outline: none; border-color: #4c8dff; }

/* Die Felder tragen die Farbe, die sie einstellen — sonst ist nicht erkennbar,
   welches der beiden gelb und welches rot meint. */
.pr-schwelle-input.kz-gelb[b-54zzrhvgyy] { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.pr-schwelle-input.kz-rot[b-54zzrhvgyy]  { background: #fecaca; color: #b91c1c; border-color: #fca5a5; }

/* ── Tabelle ── */
.cases-table-wrap[b-54zzrhvgyy] {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.cases-table[b-54zzrhvgyy] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.cases-table thead[b-54zzrhvgyy] {
    position: sticky;
    top: 0;
    z-index: 1;
}

.cases-table th[b-54zzrhvgyy] {
    background: #f1f3f5;
    color: #495057;
    font-weight: 600;
    text-align: left;
    padding: 9px 10px;
    border-bottom: 1px solid #dee2e6;
    white-space: nowrap;
}

.th-sort[b-54zzrhvgyy] { cursor: pointer; user-select: none; }
.th-sort:hover[b-54zzrhvgyy] { background: #e9ecef; color: #343a40; }
.th-sort.is-sorted[b-54zzrhvgyy] { color: #4c8dff; }
/* Muss "cases-table th" an Spezifitaet schlagen, sonst bleiben die Zahlen-
   kopfzeilen linksbuendig und stehen nicht ueber ihren Werten. */
.cases-table th.th-num[b-54zzrhvgyy] { text-align: right; }
.sort-hint[b-54zzrhvgyy] { opacity: 0.3; }

.cases-table td[b-54zzrhvgyy] {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
    color: #495057;
}

.cases-row:hover td[b-54zzrhvgyy] { background: #f0f4ff; }

/* Archivierte Zeilen zurücknehmen, aber lesbar lassen. */
.cases-row.row-closed td[b-54zzrhvgyy] { color: #adb5bd; }

.cases-table td.td-num[b-54zzrhvgyy] { text-align: right; white-space: nowrap; }
.td-belegnr[b-54zzrhvgyy] { white-space: nowrap; font-weight: 600; color: #1a56db; }
.td-datum[b-54zzrhvgyy] { white-space: nowrap; }
.td-intervall[b-54zzrhvgyy] { white-space: nowrap; color: #6c757d; }
.td-betrag[b-54zzrhvgyy] { font-variant-numeric: tabular-nums; font-weight: 500; color: #212529; }

/* Abgelaufene Laufzeit hervorheben — sie erklärt, warum nichts mehr fakturiert wird. */
.td-datum.is-abgelaufen[b-54zzrhvgyy] { color: #b91c1c; font-weight: 600; }

.td-kunde[b-54zzrhvgyy] { min-width: 180px; max-width: 280px; }

.pr-kunde-link[b-54zzrhvgyy] {
    border: none;
    background: transparent;
    padding: 0;
    text-align: left;
    font: inherit;
    color: #1a56db;
    cursor: pointer;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.pr-kunde-link:hover[b-54zzrhvgyy] { text-decoration: underline; }

/* ── Kennzahl-Ampel ── */
.pr-kz[b-54zzrhvgyy] {
    display: inline-block;
    min-width: 26px;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.pr-kz.kz-null[b-54zzrhvgyy]  { background: #f1f3f5; color: #adb5bd; }
.pr-kz.kz-gelb[b-54zzrhvgyy]  { background: #fef3c7; color: #92400e; }
.pr-kz.kz-rot[b-54zzrhvgyy]   { background: #fecaca; color: #b91c1c; }

/* ── Lade- und Leerzustand ── */
.td-loading[b-54zzrhvgyy], .td-empty[b-54zzrhvgyy] {
    text-align: center;
    padding: 2rem 1rem;
    color: #868e96;
}
/* /Components/Tabs/Buchhaltung/BuchhaltungVorgaenge.razor.rz.scp.css */
.cases-view[b-4lrr5pgk96] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0;
}

/* ── Suchleiste ── */
.cases-search-wrap[b-4lrr5pgk96] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.6rem 0 0.5rem 0;
    flex-shrink: 0;
}
/* search-bar, filter-bar, btn-filter (Grundform) sind zentral in wwwroot/css/crm-theme.css definiert */

/* ── Status-Filter-Chips (aktiver Zustand je Status) ── */
.btn-filter.status-st-new.active[b-4lrr5pgk96]      { background: var(--casestatus-new);      border-color: var(--casestatus-new); }
.btn-filter.status-st-progress.active[b-4lrr5pgk96] { background: var(--casestatus-progress); border-color: var(--casestatus-progress); }
.btn-filter.status-st-waiting.active[b-4lrr5pgk96]  { background: var(--casestatus-waiting);  border-color: var(--casestatus-waiting); }
.btn-filter.status-st-hold.active[b-4lrr5pgk96]     { background: var(--casestatus-hold);     border-color: var(--casestatus-hold); }
.btn-filter.status-st-closed.active[b-4lrr5pgk96]   { background: var(--casestatus-closed);   border-color: var(--casestatus-closed); }
.btn-filter.status-st-rejected.active[b-4lrr5pgk96] { background: var(--casestatus-rejected); border-color: var(--casestatus-rejected); }

/* ── Tabelle ── */
.cases-table-wrap[b-4lrr5pgk96] {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.cases-table[b-4lrr5pgk96] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.cases-table thead[b-4lrr5pgk96] {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 2;
}

.cases-table th[b-4lrr5pgk96] {
    padding: 9px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.th-status[b-4lrr5pgk96] { width: 34px; }
.th-sort[b-4lrr5pgk96] { cursor: pointer; user-select: none; }
.th-sort:hover[b-4lrr5pgk96] { background: #e9ecef; color: #343a40; }
.th-sort.is-sorted[b-4lrr5pgk96] { color: #4c8dff; }
.th-action[b-4lrr5pgk96] { width: 44px; }
.sort-hint[b-4lrr5pgk96] { opacity: 0.3; }

.cases-table td[b-4lrr5pgk96] {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
    color: #495057;
}

.cases-row[b-4lrr5pgk96] { cursor: pointer; }
.cases-row:hover td[b-4lrr5pgk96] { background: #f0f4ff; }
.cases-row:hover .btn-open-tab[b-4lrr5pgk96] { opacity: 1; }
.cases-row.row-closed .subject-text[b-4lrr5pgk96] { color: #adb5bd; }
.cases-row.row-closed td[b-4lrr5pgk96] { color: #adb5bd; }

/* ── Status-Dot ── */
.td-status[b-4lrr5pgk96] { text-align: center; width: 34px; }
.status-dot[b-4lrr5pgk96] {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #adb5bd;
}
.status-dot.st-new[b-4lrr5pgk96]      { background: #3b82f6; }
.status-dot.st-progress[b-4lrr5pgk96] { background: #f59e0b; }
.status-dot.st-waiting[b-4lrr5pgk96]  { background: #a855f7; }
.status-dot.st-hold[b-4lrr5pgk96]     { background: #94a3b8; }
.status-dot.st-closed[b-4lrr5pgk96]   { background: #16a34a; }
.status-dot.st-rejected[b-4lrr5pgk96] { background: #dc2626; }

/* ── Vorgangs-Nr ── */
.td-casenr[b-4lrr5pgk96] { white-space: nowrap; font-weight: 600; color: #1a56db; }

/* ── Betreff ── */
.td-subject[b-4lrr5pgk96] { min-width: 220px; max-width: 360px; }
.subject-text[b-4lrr5pgk96] { display: block; font-weight: 500; color: #212529; }
.subject-status[b-4lrr5pgk96] {
    display: block;
    color: #868e96;
    font-size: 0.78rem;
    margin-top: 2px;
}

/* ── Kunde ── */
.td-kunde[b-4lrr5pgk96] { min-width: 150px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Tags ── */
.td-tags[b-4lrr5pgk96] { min-width: 120px; max-width: 220px; }
/* Chip-Optik liegt in TagChip.razor.css – die Farbe kommt je Tag aus TagPalette. */
.td-tags[b-4lrr5pgk96]  .tagchip { margin: 1px 3px 1px 0; }
.tag-empty[b-4lrr5pgk96] { color: #ced4da; }

/* ── Priorität ── */
.td-priority[b-4lrr5pgk96] { white-space: nowrap; }
.prio-badge[b-4lrr5pgk96] {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}
.prio-badge.prio-low[b-4lrr5pgk96]     { background: #f1f3f5; color: #6c757d; }
.prio-badge.prio-normal[b-4lrr5pgk96]  { background: #dbeafe; color: #1d4ed8; }
.prio-badge.prio-medium[b-4lrr5pgk96]  { background: #fef3c7; color: #92400e; }
.prio-badge.prio-high[b-4lrr5pgk96]    { background: #fed7aa; color: #c2410c; }
.prio-badge.prio-highest[b-4lrr5pgk96] { background: #fecaca; color: #b91c1c; }

/* ── Zuständig ── */
.td-assigned[b-4lrr5pgk96] { white-space: nowrap; }

/* ── Erstellt ── */
.td-created[b-4lrr5pgk96] { white-space: nowrap; }
.date-main[b-4lrr5pgk96] { display: block; font-weight: 500; color: #212529; }
.date-by[b-4lrr5pgk96] { display: block; color: #adb5bd; font-size: 0.78rem; }

/* ── Öffnen-Button ── */
.td-action[b-4lrr5pgk96] { width: 44px; text-align: center; }
.btn-open-tab[b-4lrr5pgk96] {
    border: none;
    background: transparent;
    color: #4c8dff;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 3px 5px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity .15s, background .15s;
    display: inline-flex;
    align-items: center;
}
.btn-open-tab:hover[b-4lrr5pgk96] { background: #dbeafe; }

/* ── Loading / Empty ── */
.td-loading[b-4lrr5pgk96], .td-empty[b-4lrr5pgk96] {
    text-align: center;
    padding: 2rem !important;
    color: #6c757d;
    font-size: 0.875rem;
}
/* /Components/Tabs/CallDetail.razor.rz.scp.css */
.call-detail[b-n07brqv0ht] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    overflow-y: auto;
}

.cd-loading[b-n07brqv0ht] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 10px;
    color: #6c757d;
}

/* Header */
.call-header[b-n07brqv0ht] {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}
.call-icon[b-n07brqv0ht] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--crm-call-bg, #dcfce7);
    color: var(--crm-call-fg, #15803d);
    font-size: 1.35rem;
    flex-shrink: 0;
}
.call-title[b-n07brqv0ht] { margin: 0; font-size: 1.1rem; font-weight: 600; color: #212529; }
.call-subtitle[b-n07brqv0ht] { font-size: 0.82rem; color: #6c757d; }

/* Meta grid */
.call-meta-card[b-n07brqv0ht] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px 24px;
    padding: 1.1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}
.call-meta-item[b-n07brqv0ht] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.call-meta-item > i[b-n07brqv0ht] {
    color: var(--crm-call-fg, #15803d);
    font-size: 0.95rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.call-meta-text[b-n07brqv0ht] { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.call-meta-label[b-n07brqv0ht] {
    font-size: 0.72rem;
    font-weight: 600;
    color: #868e96;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.call-meta-value[b-n07brqv0ht] {
    font-size: 0.9rem;
    color: #212529;
    word-break: break-word;
}
.call-meta-value a[b-n07brqv0ht] { color: #1a56db; text-decoration: none; }
.call-meta-value a:hover[b-n07brqv0ht] { text-decoration: underline; }

.call-user-select[b-n07brqv0ht] {
    font-size: 0.9rem;
    color: #212529;
    padding: 4px 8px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
    max-width: 220px;
}
.call-meta-saved[b-n07brqv0ht] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    font-size: 0.78rem;
    color: #2b8a3e;
}

/* Note section */
.call-note-section[b-n07brqv0ht] {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.call-note-section label[b-n07brqv0ht] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.form-textarea[b-n07brqv0ht] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: #212529;
    background: #fff;
    resize: vertical;
    min-height: 130px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.form-textarea:focus[b-n07brqv0ht] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}

.editor-actions[b-n07brqv0ht] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.editor-save-error[b-n07brqv0ht] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
}
.editor-save-success[b-n07brqv0ht] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #166534;
}

.btn-editor-save[b-n07brqv0ht] {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.btn-editor-save:hover[b-n07brqv0ht]    { background: #1648c0; }
.btn-editor-save:disabled[b-n07brqv0ht] { background: #93c5fd; cursor: not-allowed; }
/* /Components/Tabs/CallsUebersicht.razor.rz.scp.css */
.calls-view[b-7ft7vjmhgu] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0;
}

/* ── Rechtsklick-Kontextmenü ── */
.ctx-backdrop[b-7ft7vjmhgu] {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.ctx-menu[b-7ft7vjmhgu] {
    position: fixed;
    z-index: 1001;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
    min-width: 190px;
    padding: 6px 0;
    user-select: none;
}

.ctx-item[b-7ft7vjmhgu] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    padding: 7px 14px;
    font-size: 0.86rem;
    color: #212529;
    cursor: pointer;
    text-align: left;
    transition: background .1s;
}
.ctx-item:hover[b-7ft7vjmhgu] { background: #f1f3f5; }
.ctx-item:disabled[b-7ft7vjmhgu] { opacity: .45; cursor: default; background: none; }

/* Trennlinie */
.ctx-divider[b-7ft7vjmhgu] {
    height: 1px;
    background: #e9ecef;
    margin: 4px 0;
}

/* Selektions-Info-Header im Kontextmenü */
.ctx-selection-info[b-7ft7vjmhgu] {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #3b82f6;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2px;
}

/* Gefährliche Aktion */
.ctx-item-danger[b-7ft7vjmhgu]        { color: #dc2626; }
.ctx-item-danger:hover[b-7ft7vjmhgu]  { background: #fff5f5; color: #b91c1c; }

/* Bestätigungsdialog */
.ctx-modal-backdrop[b-7ft7vjmhgu] {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1010;
}

.ctx-confirm-dialog[b-7ft7vjmhgu] {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1011;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,.2);
    width: 380px;
    max-width: 95vw;
    padding: 28px 28px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.ctx-confirm-icon[b-7ft7vjmhgu] { font-size: 2rem; color: #f59e0b; }
.ctx-confirm-title[b-7ft7vjmhgu] { font-size: 1.1rem; font-weight: 700; color: #212529; }
.ctx-confirm-body[b-7ft7vjmhgu]  { font-size: 0.88rem; color: #495057; line-height: 1.5; }
.ctx-confirm-meta[b-7ft7vjmhgu]  { color: #adb5bd; font-size: 0.8rem; }

.ctx-confirm-actions[b-7ft7vjmhgu] {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    width: 100%;
    justify-content: flex-end;
}

.btn-confirm-cancel[b-7ft7vjmhgu] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 0.87rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.btn-confirm-cancel:hover[b-7ft7vjmhgu] { background: #f1f3f5; }

.btn-confirm-delete[b-7ft7vjmhgu] {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: #dc2626;
    color: #fff;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 0.87rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .1s;
}
.btn-confirm-delete:hover[b-7ft7vjmhgu] { background: #b91c1c; }

/* ── Header ── */
.calls-header[b-7ft7vjmhgu] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.calls-title[b-7ft7vjmhgu] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 9px;
}

/* ── Suchleiste ── */
.calls-search-wrap[b-7ft7vjmhgu] {
    display: flex;
    align-items: center;
    padding: 0.6rem 0 0.5rem 0;
    flex-shrink: 0;
}
.search-bar[b-7ft7vjmhgu] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 7px 13px;
    min-width: 340px;
    transition: border-color .2s, box-shadow .2s;
}

.search-bar.focused[b-7ft7vjmhgu] {
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76, 141, 255, .15);
}

.search-icon[b-7ft7vjmhgu] { color: #adb5bd; flex-shrink: 0; }

.search-input[b-7ft7vjmhgu] {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.875rem;
    background: transparent;
    color: #212529;
}

.btn-search-clear[b-7ft7vjmhgu] {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #adb5bd;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: color .15s;
}
.btn-search-clear:hover[b-7ft7vjmhgu] { color: #6c757d; }

/* ── Tabelle ── */
.calls-table-wrap[b-7ft7vjmhgu] {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.calls-table[b-7ft7vjmhgu] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.calls-table tbody[b-7ft7vjmhgu] {
    user-select: none;
    -webkit-user-select: none;
}

.calls-table thead[b-7ft7vjmhgu] {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 2;
}

.calls-table th[b-7ft7vjmhgu] {
    padding: 9px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.th-dir[b-7ft7vjmhgu]  { width: 44px; }
.th-sort[b-7ft7vjmhgu] { cursor: pointer; user-select: none; }
.th-sort:hover[b-7ft7vjmhgu] { background: #e9ecef; color: #343a40; }
.th-sort.is-sorted[b-7ft7vjmhgu] { color: #4c8dff; }
.th-action[b-7ft7vjmhgu] { width: 44px; }
.sort-hint[b-7ft7vjmhgu] { opacity: 0.3; }

.calls-table td[b-7ft7vjmhgu] {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
    color: #495057;
}

.calls-row[b-7ft7vjmhgu] { cursor: pointer; }
.calls-row:hover td[b-7ft7vjmhgu] { background: #f0f4ff; }
.calls-row:hover .btn-open-tab[b-7ft7vjmhgu] { opacity: 1; }
.calls-row.row-selected td[b-7ft7vjmhgu] { background: #dbeafe !important; }
.calls-row.row-selected:hover td[b-7ft7vjmhgu] { background: #bfdbfe !important; }

/* ── Richtungs-Icon ── */
.td-dir[b-7ft7vjmhgu] { text-align: center; width: 44px; }

.dir-badge[b-7ft7vjmhgu] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.8rem;
}

.dir-badge.inbound[b-7ft7vjmhgu] {
    background: #dcfce7;
    color: #166534;
}

.dir-badge.outbound[b-7ft7vjmhgu] {
    background: #dbeafe;
    color: #1d4ed8;
}

/* ── Adresse-Spalte ── */
.td-adresse[b-7ft7vjmhgu] {
    min-width: 180px;
    max-width: 240px;
}

.td-adresse.adresse-ok[b-7ft7vjmhgu] {
    background: rgba(134, 239, 172, .18);
}

.td-adresse.adresse-miss[b-7ft7vjmhgu] {
    background: rgba(253, 186, 116, .22);
}

.calls-row:hover .td-adresse.adresse-ok[b-7ft7vjmhgu]   { background: rgba(134, 239, 172, .32); }
.calls-row:hover .td-adresse.adresse-miss[b-7ft7vjmhgu] { background: rgba(253, 186, 116, .38); }

.btn-adresse-link[b-7ft7vjmhgu] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #166534;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 210px;
    transition: color .15s;
}
.btn-adresse-link:hover[b-7ft7vjmhgu] { color: #14532d; text-decoration: underline; }

.adresse-miss-label[b-7ft7vjmhgu] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #92400e;
    font-size: 0.82rem;
    font-style: italic;
}

.btn-adresse-assign[b-7ft7vjmhgu] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px dashed #f59e0b;
    background: transparent;
    cursor: pointer;
    color: #92400e;
    font-size: 0.82rem;
    font-style: italic;
    padding: 2px 8px;
    border-radius: 5px;
    transition: background .15s, border-color .15s, color .15s;
}
.btn-adresse-assign:hover[b-7ft7vjmhgu] {
    background: rgba(245, 158, 11, .15);
    border-color: #d97706;
    color: #78350f;
    font-style: normal;
}

/* ── Telefon ── */
.td-phone[b-7ft7vjmhgu] { white-space: nowrap; }

.phone-link[b-7ft7vjmhgu] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #4c8dff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color .15s;
}
.phone-link:hover[b-7ft7vjmhgu] { color: #1d4ed8; text-decoration: underline; }

/* ── Datum ── */
.td-date[b-7ft7vjmhgu] { white-space: nowrap; }
.date-main[b-7ft7vjmhgu] { font-weight: 500; color: #212529; }
.date-time[b-7ft7vjmhgu] { margin-left: 6px; color: #adb5bd; font-size: 0.8rem; }

/* ── Dauer ── */
.td-duration[b-7ft7vjmhgu] {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: #6c757d;
}

/* ── Notiz ── */
.td-summary[b-7ft7vjmhgu] { max-width: 260px; }

.summary-text[b-7ft7vjmhgu] {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #6c757d;
    font-size: 0.82rem;
}

/* ── Öffnen-Button ── */
.td-action[b-7ft7vjmhgu] { width: 44px; text-align: center; }

.btn-open-tab[b-7ft7vjmhgu] {
    border: none;
    background: transparent;
    color: #4c8dff;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 3px 5px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity .15s, background .15s;
    display: inline-flex;
    align-items: center;
}
.btn-open-tab:hover[b-7ft7vjmhgu] { background: #dbeafe; }

/* ── Loading ── */
.td-loading[b-7ft7vjmhgu] {
    text-align: center;
    padding: 2rem !important;
    color: #6c757d;
    font-size: 0.875rem;
}

/* ── Zugeordneter Benutzer (aus der Sipgate-Phoneline) ── */
/* filter-bar, filter-label und btn-filter kommen zentral aus wwwroot/css/crm-theme.css. */
.td-benutzer[b-7ft7vjmhgu] { white-space: nowrap; }

.benutzer-name[b-7ft7vjmhgu] {
    font-size: 0.82rem;
    font-weight: 600;
    color: #495057;
}

/* Gedämpft, aber sichtbar: die Lücken sind der Diagnosewert dieser Spalte. */
.benutzer-leer[b-7ft7vjmhgu] {
    color: #ced4da;
    font-size: 0.82rem;
}

.btn-filter:disabled[b-7ft7vjmhgu] {
    opacity: .5;
    cursor: not-allowed;
}
/* /Components/Tabs/CaseDetail.razor.rz.scp.css */
.case-detail[b-upfeanxdf3] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
}

.cd-loading[b-upfeanxdf3], .cd-notfound[b-upfeanxdf3] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 10px;
    color: #6c757d;
}
.cd-notfound[b-upfeanxdf3] { color: #b91c1c; font-weight: 500; }

/* ═══════════════ NEU-MODUS ═══════════════ */
.cd-new[b-upfeanxdf3] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem 1.75rem;
    box-sizing: border-box;
    width: 100%;
    overflow-y: auto;
}

.cd-new-header[b-upfeanxdf3] {
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}
.cd-new-title[b-upfeanxdf3] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 9px;
}

.cd-new-body[b-upfeanxdf3] {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.form-row[b-upfeanxdf3] { display: flex; flex-direction: column; gap: 5px; }
.form-row label[b-upfeanxdf3] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.required[b-upfeanxdf3] { color: #dc3545; }
.form-grid[b-upfeanxdf3] { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.form-input[b-upfeanxdf3] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #212529;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.form-input:focus[b-upfeanxdf3] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.form-input.input-error[b-upfeanxdf3] { border-color: #dc3545; }
.form-textarea[b-upfeanxdf3] { resize: vertical; min-height: 90px; }
.field-error[b-upfeanxdf3] { font-size: 0.75rem; color: #dc3545; }
.field-hint[b-upfeanxdf3] { font-size: 0.82rem; color: #868e96; font-style: italic; }

/* ── SLA-Ampel am Ziel-Abschluss (Farben wie im Support-Dashboard) ── */
.sla-dot[b-upfeanxdf3] {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    vertical-align: middle;
    margin: 0 4px 0 6px;
}
.sla-dot.sla-green[b-upfeanxdf3] { background: #16a34a; }
.sla-dot.sla-amber[b-upfeanxdf3] { background: #f59e0b; }
.sla-dot.sla-red[b-upfeanxdf3]   { background: #dc2626; }
.sla-dot.sla-none[b-upfeanxdf3]  { background: #ced4da; }
.sla-text[b-upfeanxdf3] { font-weight: 400; font-size: 0.8rem; color: #868e96; }

.linked-entity[b-upfeanxdf3] { display: flex; align-items: center; gap: 8px; }
.linked-badge[b-upfeanxdf3] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #e7f1ff;
    color: #1a56db;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
}
.btn-linked-clear[b-upfeanxdf3] {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #adb5bd;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    transition: color .15s;
}
.btn-linked-clear:hover[b-upfeanxdf3] { color: #dc3545; }
.btn-link-assign[b-upfeanxdf3] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    border: 1px dashed #adb5bd;
    background: transparent;
    color: #6c757d;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.btn-link-assign:hover[b-upfeanxdf3] { background: #f0f4ff; border-color: #4c8dff; color: #1a56db; }
.btn-link-assign.assign-error[b-upfeanxdf3] { border-color: #dc3545; color: #dc3545; }

.editor-save-error[b-upfeanxdf3] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
}

.cd-new-actions[b-upfeanxdf3] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}
.btn-editor-cancel[b-upfeanxdf3] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 0.88rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.btn-editor-cancel:hover[b-upfeanxdf3] { background: #f1f3f5; }
.btn-editor-save[b-upfeanxdf3] {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.btn-editor-save:hover[b-upfeanxdf3]    { background: #1648c0; }
.btn-editor-save:disabled[b-upfeanxdf3] { background: #93c5fd; cursor: not-allowed; }

/* ═══════════════ DETAIL-MODUS ═══════════════ */
.cd-topbar[b-upfeanxdf3] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 1rem 1.5rem 0.85rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}
/* flex: 1, damit die Zeile die volle Topbar-Breite einnimmt – sonst schrumpft sie auf
   Inhaltsbreite und das Betreff-Feld bleibt bei seiner Eigenbreite stehen. */
.cd-topbar-title[b-upfeanxdf3] { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1; }
.cd-casenr[b-upfeanxdf3] { font-size: 1.1rem; font-weight: 700; color: #1a56db; flex-shrink: 0; }
.cd-subject-input[b-upfeanxdf3] {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    padding: 2px 6px;
    /* min-width: 0 hebt die Eigenbreite des Inputs auf, damit flex-basis wirklich greift. */
    min-width: 0;
    flex: 1;
}
.cd-subject-input:hover[b-upfeanxdf3] { border-color: #dee2e6; }
.cd-subject-input:focus[b-upfeanxdf3] { outline: none; border-color: #4c8dff; background: #fff; }

/* Kopf-Card */
.cd-header-card[b-upfeanxdf3] {
    display: flex;
    gap: 24px;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.cd-hc-left[b-upfeanxdf3] { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 8px; }
.cd-hc-customer[b-upfeanxdf3] {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    flex-wrap: wrap;
}
.cd-hc-customer > i[b-upfeanxdf3] { color: #1a56db; }
.btn-adresse-link[b-upfeanxdf3] {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    color: #1a56db;
    cursor: pointer;
}
.btn-adresse-link:hover[b-upfeanxdf3] { text-decoration: underline; }
.cd-hc-contact[b-upfeanxdf3] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #6c757d;
}
.cd-hc-desc-input[b-upfeanxdf3] {
    font-size: 0.86rem;
    color: #495057;
    line-height: 1.5;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    padding: 4px 6px;
    resize: vertical;
    font-family: inherit;
}
.cd-hc-desc-input:hover[b-upfeanxdf3] { border-color: #dee2e6; }
.cd-hc-desc-input:focus[b-upfeanxdf3] { outline: none; border-color: #4c8dff; background: #fff; }
.cd-hc-meta[b-upfeanxdf3] { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.78rem; color: #868e96; }
.cd-hc-meta span[b-upfeanxdf3] { display: inline-flex; align-items: center; gap: 5px; }
.cd-hc-meta .cd-closed[b-upfeanxdf3] { color: #166534; font-weight: 600; }

/* ── Tags ── */
.cd-hc-tags[b-upfeanxdf3] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 0.8rem;
}
/* Chip-Optik liegt in TagChip.razor.css – die Farbe kommt je Tag aus TagPalette. */
.cd-tag-add[b-upfeanxdf3] {
    border: none;
    background: #4338ca;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
}
.cd-tag-add:hover[b-upfeanxdf3] { background: #3730a3; }

.cd-hc-fields[b-upfeanxdf3] {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 10px 14px;
    align-content: start;
}
.cd-field[b-upfeanxdf3] { display: flex; flex-direction: column; gap: 4px; }
.cd-field label[b-upfeanxdf3] {
    font-size: 0.72rem;
    font-weight: 700;
    color: #868e96;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.cd-select[b-upfeanxdf3], .cd-input[b-upfeanxdf3] {
    border: 1.5px solid #dee2e6;
    border-radius: 6px;
    padding: 6px 9px;
    font-size: 0.83rem;
    color: #212529;
    background: #fff;
    font-family: inherit;
    min-width: 130px;
}
.cd-select:focus[b-upfeanxdf3], .cd-input:focus[b-upfeanxdf3] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.cd-select.st-new[b-upfeanxdf3]      { border-color: #93c5fd; }
.cd-select.st-progress[b-upfeanxdf3] { border-color: #fcd34d; }
.cd-select.st-waiting[b-upfeanxdf3]  { border-color: #d8b4fe; }
.cd-select.st-hold[b-upfeanxdf3]     { border-color: #cbd5e1; }
.cd-select.st-closed[b-upfeanxdf3]   { border-color: #86efac; }
.cd-select.st-rejected[b-upfeanxdf3] { border-color: #fca5a5; }

/* Workspace */
.cd-workspace[b-upfeanxdf3] {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 0;
    overflow: hidden;
}

.cd-feed[b-upfeanxdf3] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.cd-feed-header[b-upfeanxdf3] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 1px solid #f1f3f5;
    flex-shrink: 0;
}
.cd-feed-count[b-upfeanxdf3] {
    background: #e9ecef;
    color: #6c757d;
    border-radius: 12px;
    padding: 1px 9px;
    font-size: 0.75rem;
}
.cd-feed-empty[b-upfeanxdf3] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    color: #adb5bd;
    text-align: center;
    padding: 2rem;
}
.cd-feed-empty i[b-upfeanxdf3] { font-size: 2rem; }

.cd-feed-list[b-upfeanxdf3] { flex: 1; overflow-y: auto; padding: 8px 16px 16px; }

.cd-feed-item[b-upfeanxdf3] {
    display: flex;
    gap: 12px;
    padding: 11px 10px;
    border-radius: 8px;
    transition: background .12s;
}
.cd-feed-item:hover[b-upfeanxdf3] { background: #f8f9fa; }
.cd-feed-item:hover .cd-feed-act[b-upfeanxdf3] { opacity: 1; }
.cd-feed-item.cd-feed-clickable[b-upfeanxdf3] { cursor: pointer; }
.cd-feed-item.selected[b-upfeanxdf3] { background: #e7f1ff; }
.cd-feed-item.selected:hover[b-upfeanxdf3] { background: #e7f1ff; }

.cd-feed-icon[b-upfeanxdf3] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.fi-email[b-upfeanxdf3]    { background: var(--crm-email-fg); }
.fi-call[b-upfeanxdf3]     { background: var(--crm-call-fg); }
.fi-note[b-upfeanxdf3]     { background: var(--crm-note-fg); }
.fi-task[b-upfeanxdf3]     { background: #8b5cf6; }
.fi-file[b-upfeanxdf3]     { background: var(--crm-attachment-fg); }
.fi-jira[b-upfeanxdf3]     { background: var(--crm-jira-fg); }
.fi-cal[b-upfeanxdf3]      { background: var(--crm-calendar-fg); }
.fi-activity[b-upfeanxdf3] { background: #cbd5e1; color: #475569; }

.cd-feed-main[b-upfeanxdf3] { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cd-feed-top[b-upfeanxdf3] { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cd-feed-title[b-upfeanxdf3] {
    font-weight: 500;
    color: #212529;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cd-feed-time[b-upfeanxdf3] { font-size: 0.75rem; color: #adb5bd; white-space: nowrap; flex-shrink: 0; }
.cd-feed-subtitle[b-upfeanxdf3] {
    font-size: 0.8rem;
    color: #868e96;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-feed-actions[b-upfeanxdf3] { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.cd-feed-act[b-upfeanxdf3] {
    border: none;
    background: transparent;
    color: #adb5bd;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 6px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity .15s, background .15s, color .15s;
}
.cd-feed-act:hover[b-upfeanxdf3] { background: #e7f1ff; color: #1a56db; }
.cd-feed-act.danger:hover[b-upfeanxdf3] { background: #fff5f5; color: #dc2626; }

/* Der Jira-Link ist ein <a>, muss aber wie die Button-Aktionen daneben aussehen. */
a.cd-feed-act[b-upfeanxdf3] { display: inline-flex; align-items: center; text-decoration: none; }

/* Statusbadge in der Jira-Seitenleiste – eingefärbt nach Statuskategorie */
.cd-jira-status[b-upfeanxdf3] {
    border-radius: 20px;
    padding: 0 8px;
    margin-left: 6px;
    font-size: 0.72rem;
    font-weight: 600;
}
.cd-jira-status-new[b-upfeanxdf3]           { background: #f1f3f5; color: #495057; }
.cd-jira-status-indeterminate[b-upfeanxdf3] { background: #dbeafe; color: #1d4ed8; }
.cd-jira-status-done[b-upfeanxdf3]          { background: #dcfce7; color: #15803d; }
.cd-jira-status-unknown[b-upfeanxdf3]       { background: #f1f3f5; color: #adb5bd; }

/* Sidebar */
.cd-sidebar[b-upfeanxdf3] {
    width: 280px;
    flex-shrink: 0;
    border-left: 1px solid #e9ecef;
    background: #fbfbfd;
    overflow-y: hidden;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.cd-side-assign[b-upfeanxdf3] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: none;
    background: #1a56db;
    color: #fff;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.cd-side-assign:hover[b-upfeanxdf3] { background: #1648c0; }

.cd-side-block[b-upfeanxdf3] {
    --tile-fg: #495057;
    --tile-bg: #f8f9fa;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-top: 3px solid var(--tile-fg);
    border-radius: 10px;
    overflow: hidden;
    gap: 0;
}
.cd-side-block.expanded[b-upfeanxdf3] {
    flex: 1;
    min-height: 0;
}
.cd-side-block.t-email[b-upfeanxdf3] { --tile-fg: var(--crm-email-fg);      --tile-bg: var(--crm-email-bg); }
.cd-side-block.t-call[b-upfeanxdf3]  { --tile-fg: var(--crm-call-fg);       --tile-bg: var(--crm-call-bg); }
.cd-side-block.t-task[b-upfeanxdf3]  { --tile-fg: var(--crm-task-fg);       --tile-bg: var(--crm-task-bg); }
.cd-side-block.t-note[b-upfeanxdf3]  { --tile-fg: var(--crm-note-fg);       --tile-bg: var(--crm-note-bg); }
.cd-side-block.t-cal[b-upfeanxdf3]   { --tile-fg: var(--crm-calendar-fg);   --tile-bg: var(--crm-calendar-bg); }
.cd-side-block.t-jira[b-upfeanxdf3]  { --tile-fg: var(--crm-jira-fg);       --tile-bg: var(--crm-jira-bg); }
.cd-side-block.t-zeitaufwand[b-upfeanxdf3] { --tile-fg: var(--crm-zeitaufwand-fg); --tile-bg: var(--crm-zeitaufwand-bg); }
.cd-side-block.t-file[b-upfeanxdf3]  { --tile-fg: var(--crm-attachment-fg); --tile-bg: var(--crm-attachment-bg); }

.cd-side-title[b-upfeanxdf3] {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--tile-fg);
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 8px 10px;
    background: var(--tile-bg);
    border-bottom: 1px solid #f1f3f5;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}
.cd-side-block.expanded .cd-side-title[b-upfeanxdf3] { border-bottom-color: #e9ecef; }
.cd-side-title span[b-upfeanxdf3] {
    margin-left: auto;
    background: rgba(255,255,255,.6);
    color: var(--tile-fg);
    border-radius: 10px;
    padding: 0 7px;
    font-size: 0.72rem;
    font-weight: 700;
}
.cd-side-chevron[b-upfeanxdf3] {
    font-size: 0.68rem;
    transition: transform .15s;
    flex-shrink: 0;
}
.cd-side-block.expanded .cd-side-chevron[b-upfeanxdf3] { transform: rotate(180deg); }
.cd-side-add[b-upfeanxdf3] {
    margin-left: auto;
    border: none;
    background: rgba(255,255,255,.6);
    color: var(--tile-fg);
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    cursor: pointer;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.cd-side-add:hover[b-upfeanxdf3] { background: var(--tile-fg); color: #fff; }
.cd-side-add + span[b-upfeanxdf3] { margin-left: 6px; }
.cd-side-empty[b-upfeanxdf3] { font-size: 0.78rem; color: #adb5bd; padding: 10px; font-style: italic; }

.cd-side-list[b-upfeanxdf3] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.cd-side-list .cd-side-item[b-upfeanxdf3] { width: 100%; box-sizing: border-box; }

.cd-side-item[b-upfeanxdf3] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 7px 8px;
    border-radius: 7px;
    cursor: pointer;
    transition: background .12s;
}
.cd-side-item:hover[b-upfeanxdf3] { background: #eef2ff; }
.cd-side-item-main[b-upfeanxdf3] {
    font-size: 0.82rem;
    color: #212529;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}
.cd-side-item-sub[b-upfeanxdf3] { font-size: 0.74rem; color: #adb5bd; }

.cd-side-item:has(.cd-side-link)[b-upfeanxdf3] { flex-direction: row; align-items: center; justify-content: space-between; cursor: default; }
.cd-side-link[b-upfeanxdf3] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0ea5e9;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
}
.cd-side-link:hover[b-upfeanxdf3] { text-decoration: underline; }
.cd-side-remove[b-upfeanxdf3] {
    border: none;
    background: transparent;
    color: #ced4da;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 5px;
    transition: color .15s, background .15s;
}
.cd-side-remove:hover[b-upfeanxdf3] { color: #dc2626; background: #fff5f5; }
/* Zweiter Schritt der Inline-Bestätigung — es gibt keinen Confirm-Dialog im Projekt. */
.cd-side-remove-confirm[b-upfeanxdf3] { color: #16a34a; }
.cd-side-remove-confirm:hover[b-upfeanxdf3] { color: #15803d; background: #f0fdf4; }

/* ── Beobachter ── */
.cd-field-watchers label[b-upfeanxdf3] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.btn-watcher-add[b-upfeanxdf3] {
    border: none;
    background: transparent;
    color: #1a56db;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    padding: 0;
}
.btn-watcher-add:hover[b-upfeanxdf3] { color: #1648c0; }

.cd-watchers[b-upfeanxdf3] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 2px 0 6px;
}
.watcher-badge[b-upfeanxdf3] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 16px;
    padding: 4px 8px 4px 10px;
    font-size: 0.8rem;
    font-weight: 500;
}
.watcher-remove[b-upfeanxdf3] {
    border: none;
    background: transparent;
    color: #a5b4fc;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 0;
    font-size: 0.85rem;
    transition: color .15s;
}
.watcher-remove:hover[b-upfeanxdf3] { color: #dc2626; }

.btn-watcher-self[b-upfeanxdf3] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.btn-watcher-self:hover[b-upfeanxdf3] { background: #f0f4ff; border-color: #4c8dff; color: #1a56db; }
/* /Components/Tabs/CasesUebersicht.razor.rz.scp.css */
.cases-view[b-8w980rye4d] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0;
}

/* ── Rechtsklick-Kontextmenü ── */
.ctx-backdrop[b-8w980rye4d] { position: fixed; inset: 0; z-index: 1000; }

.ctx-menu[b-8w980rye4d] {
    position: fixed;
    z-index: 1001;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
    min-width: 210px;
    padding: 6px 0;
    user-select: none;
}

.ctx-item[b-8w980rye4d] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    padding: 7px 14px;
    font-size: 0.86rem;
    color: #212529;
    cursor: pointer;
    text-align: left;
    transition: background .1s;
}
.ctx-item:hover[b-8w980rye4d] { background: #f1f3f5; }
.ctx-item:disabled[b-8w980rye4d] { opacity: .45; cursor: default; background: none; }

.ctx-divider[b-8w980rye4d] { height: 1px; background: #e9ecef; margin: 4px 0; }

.ctx-selection-info[b-8w980rye4d] {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #3b82f6;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2px;
}

.ctx-item-danger[b-8w980rye4d]       { color: #dc2626; }
.ctx-item-danger:hover[b-8w980rye4d] { background: #fff5f5; color: #b91c1c; }

.ctx-modal-backdrop[b-8w980rye4d] { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1010; }

.ctx-confirm-dialog[b-8w980rye4d] {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1011;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,.2);
    width: 420px;
    max-width: 95vw;
    padding: 28px 28px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.ctx-confirm-icon[b-8w980rye4d]  { font-size: 2rem; color: #f59e0b; }
.ctx-confirm-title[b-8w980rye4d] { font-size: 1.1rem; font-weight: 700; color: #212529; }
.ctx-confirm-body[b-8w980rye4d]  { font-size: 0.86rem; color: #495057; line-height: 1.5; }

.ctx-confirm-actions[b-8w980rye4d] {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    width: 100%;
    justify-content: flex-end;
}

.btn-confirm-cancel[b-8w980rye4d] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 0.87rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.btn-confirm-cancel:hover[b-8w980rye4d] { background: #f1f3f5; }

.btn-confirm-delete[b-8w980rye4d] {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: #dc2626;
    color: #fff;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 0.87rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .1s;
}
.btn-confirm-delete:hover[b-8w980rye4d] { background: #b91c1c; }

/* ── Header ── */
.cases-header[b-8w980rye4d] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.cases-title[b-8w980rye4d] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 9px;
}

.btn-new-case[b-8w980rye4d] {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.btn-new-case:hover[b-8w980rye4d] { background: #1648c0; }

/* ── Suchleiste ── */
.cases-search-wrap[b-8w980rye4d] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.6rem 0 0.5rem 0;
    flex-shrink: 0;
}
/* search-bar, filter-bar, btn-filter (Grundform) sind zentral in wwwroot/css/crm-theme.css definiert */

/* ── Status-Filter-Chips (aktiver Zustand je Status) ── */
.btn-filter.status-st-new.active[b-8w980rye4d]      { background: var(--casestatus-new);      border-color: var(--casestatus-new); }
.btn-filter.status-st-progress.active[b-8w980rye4d] { background: var(--casestatus-progress); border-color: var(--casestatus-progress); }
.btn-filter.status-st-waiting.active[b-8w980rye4d]  { background: var(--casestatus-waiting);  border-color: var(--casestatus-waiting); }
.btn-filter.status-st-hold.active[b-8w980rye4d]     { background: var(--casestatus-hold);     border-color: var(--casestatus-hold); }
.btn-filter.status-st-closed.active[b-8w980rye4d]   { background: var(--casestatus-closed);   border-color: var(--casestatus-closed); }
.btn-filter.status-st-rejected.active[b-8w980rye4d] { background: var(--casestatus-rejected); border-color: var(--casestatus-rejected); }

/* ── Typ-Filter-Chips (aktiver Zustand je Typ) ── */
.btn-filter.type-support.active[b-8w980rye4d]    { background: var(--casetype-support);    border-color: var(--casetype-support); }
.btn-filter.type-sales.active[b-8w980rye4d]      { background: var(--casetype-sales);      border-color: var(--casetype-sales); }
.btn-filter.type-technical.active[b-8w980rye4d]  { background: var(--casetype-technical);  border-color: var(--casetype-technical); }
.btn-filter.type-accounting.active[b-8w980rye4d] { background: var(--casetype-accounting); border-color: var(--casetype-accounting); }
.btn-filter.type-internal.active[b-8w980rye4d]   { background: var(--casetype-internal);   border-color: var(--casetype-internal); }
.btn-filter.type-other.active[b-8w980rye4d]      { background: var(--casetype-other);      border-color: var(--casetype-other); }

/* ── Tabelle ── */
.cases-table-wrap[b-8w980rye4d] {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.cases-table[b-8w980rye4d] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.cases-table tbody[b-8w980rye4d] {
    user-select: none;
    -webkit-user-select: none;
}

.cases-table thead[b-8w980rye4d] {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 2;
}

.cases-table th[b-8w980rye4d] {
    padding: 9px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.th-status[b-8w980rye4d] { width: 34px; }
.th-sort[b-8w980rye4d] { cursor: pointer; user-select: none; }
.th-sort:hover[b-8w980rye4d] { background: #e9ecef; color: #343a40; }
.th-sort.is-sorted[b-8w980rye4d] { color: #4c8dff; }
.th-action[b-8w980rye4d] { width: 44px; }
.sort-hint[b-8w980rye4d] { opacity: 0.3; }

.cases-table td[b-8w980rye4d] {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
    color: #495057;
}

.cases-row[b-8w980rye4d] { cursor: pointer; }
.cases-row:hover td[b-8w980rye4d] { background: #f0f4ff; }
.cases-row:hover .btn-open-tab[b-8w980rye4d] { opacity: 1; }
.cases-row.row-selected td[b-8w980rye4d] { background: #dbeafe !important; }
.cases-row.row-selected:hover td[b-8w980rye4d] { background: #bfdbfe !important; }
.cases-row.row-closed .subject-text[b-8w980rye4d] { color: #adb5bd; }
.cases-row.row-closed td[b-8w980rye4d] { color: #adb5bd; }

/* ── Status-Dot ── */
.td-status[b-8w980rye4d] { text-align: center; width: 34px; }
.status-dot[b-8w980rye4d] {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #adb5bd;
}
.status-dot.st-new[b-8w980rye4d]      { background: #3b82f6; }
.status-dot.st-progress[b-8w980rye4d] { background: #f59e0b; }
.status-dot.st-waiting[b-8w980rye4d]  { background: #a855f7; }
.status-dot.st-hold[b-8w980rye4d]     { background: #94a3b8; }
.status-dot.st-closed[b-8w980rye4d]   { background: #16a34a; }
.status-dot.st-rejected[b-8w980rye4d] { background: #dc2626; }

/* ── Case-Nr ── */
.td-casenr[b-8w980rye4d] { white-space: nowrap; font-weight: 600; color: #1a56db; }

/* ── Betreff ── */
.td-subject[b-8w980rye4d] { min-width: 220px; max-width: 360px; }
.subject-text[b-8w980rye4d] { display: block; font-weight: 500; color: #212529; }
.subject-status[b-8w980rye4d] {
    display: block;
    color: #868e96;
    font-size: 0.78rem;
    margin-top: 2px;
}

/* ── Kunde ── */
.td-kunde[b-8w980rye4d] { min-width: 160px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Typ ── */
.td-dept[b-8w980rye4d] { white-space: nowrap; }
.dept-badge[b-8w980rye4d] {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #eef2ff;
    color: #4338ca;
}
.dept-badge.type-support[b-8w980rye4d]    { background: color-mix(in srgb, var(--casetype-support) 16%, white);    color: var(--casetype-support); }
.dept-badge.type-sales[b-8w980rye4d]      { background: color-mix(in srgb, var(--casetype-sales) 16%, white);      color: var(--casetype-sales); }
.dept-badge.type-technical[b-8w980rye4d]  { background: color-mix(in srgb, var(--casetype-technical) 16%, white);  color: var(--casetype-technical); }
.dept-badge.type-accounting[b-8w980rye4d] { background: color-mix(in srgb, var(--casetype-accounting) 16%, white); color: var(--casetype-accounting); }
.dept-badge.type-internal[b-8w980rye4d]   { background: color-mix(in srgb, var(--casetype-internal) 16%, white);   color: var(--casetype-internal); }
.dept-badge.type-other[b-8w980rye4d]      { background: color-mix(in srgb, var(--casetype-other) 16%, white);      color: var(--casetype-other); }

/* ── Priorität ── */
.td-priority[b-8w980rye4d] { white-space: nowrap; }
.prio-badge[b-8w980rye4d] {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}
.prio-badge.prio-low[b-8w980rye4d]     { background: #f1f3f5; color: #6c757d; }
.prio-badge.prio-normal[b-8w980rye4d]  { background: #dbeafe; color: #1d4ed8; }
.prio-badge.prio-medium[b-8w980rye4d]  { background: #fef3c7; color: #92400e; }
.prio-badge.prio-high[b-8w980rye4d]    { background: #fed7aa; color: #c2410c; }
.prio-badge.prio-highest[b-8w980rye4d] { background: #fecaca; color: #b91c1c; }

/* ── Zuständig ── */
.td-assigned[b-8w980rye4d] { white-space: nowrap; }

/* ── Erstellt ── */
.td-created[b-8w980rye4d] { white-space: nowrap; }
.date-main[b-8w980rye4d] { display: block; font-weight: 500; color: #212529; }
.date-by[b-8w980rye4d] { display: block; color: #adb5bd; font-size: 0.78rem; }

/* ── Öffnen-Button ── */
.td-action[b-8w980rye4d] { width: 44px; text-align: center; }
.btn-open-tab[b-8w980rye4d] {
    border: none;
    background: transparent;
    color: #4c8dff;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 3px 5px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity .15s, background .15s;
    display: inline-flex;
    align-items: center;
}
.btn-open-tab:hover[b-8w980rye4d] { background: #dbeafe; }

/* ── Loading / Empty ── */
.td-loading[b-8w980rye4d], .td-empty[b-8w980rye4d] {
    text-align: center;
    padding: 2rem !important;
    color: #6c757d;
    font-size: 0.875rem;
}
/* /Components/Tabs/DateienUebersicht.razor.rz.scp.css */
/* ── View-Container ── */
.files-view[b-98g7bf9gad] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0;
}

/* ── Header ── */
.files-header[b-98g7bf9gad] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0 0.4rem 0;
    flex-shrink: 0;
}
.files-title[b-98g7bf9gad] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 9px;
}

/* ── Suche ── */
.files-search-wrap[b-98g7bf9gad] {
    display: flex;
    align-items: center;
    padding: 0.6rem 0 0.5rem 0;
    flex-shrink: 0;
}
/* search-bar, filter-bar & Co. sind zentral in wwwroot/css/crm-theme.css definiert */

/* ── Tabellen-Wrapper ── */
.files-list-wrap[b-98g7bf9gad] {
    flex: 1 1 0;
    min-height: 0;
    overflow: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

/* ── Tabelle ── */
.files-table[b-98g7bf9gad] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.files-table tbody[b-98g7bf9gad] {
    user-select: none;
    -webkit-user-select: none;
}
.files-table thead th[b-98g7bf9gad] {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8f9fa;
    padding: 9px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
    user-select: none;
}
.th-sort[b-98g7bf9gad] { cursor: pointer; }
.th-sort:hover[b-98g7bf9gad] { color: #212529; background: #f1f3f5; }
.th-sort.is-sorted[b-98g7bf9gad] { color: #1a56db; }
.th-type[b-98g7bf9gad]   { width: 40px; }
.th-size[b-98g7bf9gad]   { width: 90px; }
.th-date[b-98g7bf9gad]   { width: 140px; }
.th-action[b-98g7bf9gad] { width: 50px; }

.files-table tbody tr[b-98g7bf9gad] {
    border-bottom: 1px solid #f1f3f5;
    cursor: pointer;
    transition: background .1s;
}
.files-table tbody tr:hover[b-98g7bf9gad] { background: #f8f9fa; }
.files-row.row-selected[b-98g7bf9gad] { background: #dbeafe !important; }
.files-row.row-preview[b-98g7bf9gad]  { outline: 2px solid #3b82f6; outline-offset: -2px; }
.files-row.row-selected.row-preview[b-98g7bf9gad] { background: #bfdbfe !important; }

/* Metadaten-Waisen ohne gespeicherte Datei */
.files-row.row-orphan[b-98g7bf9gad] { color: #adb5bd; font-style: italic; }
.files-row.row-orphan .td-type i[b-98g7bf9gad] { color: #ced4da; }

.files-table td[b-98g7bf9gad] { padding: 9px 12px; vertical-align: middle; }

.td-type[b-98g7bf9gad] { text-align: center; }
.td-type i[b-98g7bf9gad] { font-size: 1.05rem; color: #64748b; }

.td-name[b-98g7bf9gad] { max-width: 320px; }
.name-text[b-98g7bf9gad] {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.td-link[b-98g7bf9gad] { max-width: 260px; }
.link-chip[b-98g7bf9gad] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #475569;
    font-size: 0.82rem;
}
.link-chip i[b-98g7bf9gad] { flex-shrink: 0; color: #94a3b8; }
.link-none[b-98g7bf9gad] { color: #ced4da; }

.td-size[b-98g7bf9gad], .td-date[b-98g7bf9gad] { white-space: nowrap; color: #495057; }
.td-uploader[b-98g7bf9gad] { white-space: nowrap; }

.td-loading[b-98g7bf9gad], .td-empty[b-98g7bf9gad] {
    text-align: center;
    color: #adb5bd;
    padding: 2rem !important;
}

.btn-download[b-98g7bf9gad] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: #1a56db;
    text-decoration: none;
    transition: background .12s;
}
.btn-download:hover[b-98g7bf9gad] { background: #dbeafe; }

/* ── Rechtsklick-Kontextmenü (Konvention aus EmailUebersicht) ── */
.ctx-backdrop[b-98g7bf9gad] {
    position: fixed;
    inset: 0;
    z-index: 1000;
}
.ctx-menu[b-98g7bf9gad] {
    position: fixed;
    z-index: 1001;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
    min-width: 190px;
    padding: 6px 0;
    user-select: none;
}
.ctx-item[b-98g7bf9gad] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    padding: 7px 14px;
    font-size: 0.86rem;
    color: #212529;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: background .1s;
}
.ctx-item:hover[b-98g7bf9gad] { background: #f1f3f5; }
.ctx-item-danger[b-98g7bf9gad]       { color: #dc2626; }
.ctx-item-danger:hover[b-98g7bf9gad] { background: #fff5f5; color: #b91c1c; }

.ctx-divider[b-98g7bf9gad] {
    height: 1px;
    background: #e9ecef;
    margin: 4px 0;
}

.ctx-selection-info[b-98g7bf9gad] {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #3b82f6;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2px;
}

/* ── Lösch-Bestätigung ── */
.ctx-modal-backdrop[b-98g7bf9gad] {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1010;
}
.ctx-confirm-dialog[b-98g7bf9gad] {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1011;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,.2);
    width: 380px;
    max-width: 95vw;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}
.ctx-confirm-icon[b-98g7bf9gad]  { font-size: 2rem; color: #f59e0b; }
.ctx-confirm-title[b-98g7bf9gad] { font-size: 1.1rem; font-weight: 700; color: #212529; }
.ctx-confirm-body[b-98g7bf9gad]  { font-size: 0.88rem; color: #495057; line-height: 1.5; }
.ctx-confirm-meta[b-98g7bf9gad]  { color: #adb5bd; font-size: 0.8rem; }

.ctx-confirm-actions[b-98g7bf9gad] {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    width: 100%;
    justify-content: flex-end;
}
.btn-confirm-cancel[b-98g7bf9gad] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 0.87rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.btn-confirm-cancel:hover[b-98g7bf9gad] { background: #f1f3f5; }
.btn-confirm-delete[b-98g7bf9gad] {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: #dc2626;
    color: #fff;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 0.87rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .1s;
}
.btn-confirm-delete:hover[b-98g7bf9gad]    { background: #b91c1c; }
.btn-confirm-delete:disabled[b-98g7bf9gad] { background: #fca5a5; cursor: not-allowed; }
/* /Components/Tabs/EmailDetail.razor.rz.scp.css */
.email-detail[b-ips261beim] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
}

.cd-loading[b-ips261beim] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 10px;
    color: #6c757d;
}

/* Header */
.ed-header[b-ips261beim] {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}
.ed-icon[b-ips261beim] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--crm-email-bg, #dbeafe);
    color: var(--crm-email-fg, #1d4ed8);
    font-size: 1.35rem;
    flex-shrink: 0;
}
.ed-header-text[b-ips261beim] { min-width: 0; }
.ed-title[b-ips261beim] { margin: 0; font-size: 1.1rem; font-weight: 600; color: #212529; }
.ed-subtitle[b-ips261beim] { font-size: 0.82rem; color: #6c757d; }

/* Aktionen (Antworten / Allen antworten / Weiterleiten) */
.ed-actions[b-ips261beim] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}
.ed-act-btn[b-ips261beim] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #fff;
    color: #24292f;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background .12s, border-color .12s, color .12s;
}
.ed-act-btn:hover[b-ips261beim] {
    background: var(--crm-email-bg, #dbeafe);
    border-color: var(--crm-email-fg, #1d4ed8);
    color: var(--crm-email-fg, #1d4ed8);
}
.ed-act-btn i[b-ips261beim] { font-size: 0.9rem; }

/* Meta grid */
.ed-meta-card[b-ips261beim] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px 24px;
    padding: 1.1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}
.ed-meta-item[b-ips261beim] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.ed-meta-item > i[b-ips261beim] {
    color: var(--crm-email-fg, #1d4ed8);
    font-size: 0.95rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.ed-meta-text[b-ips261beim] { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ed-meta-label[b-ips261beim] {
    font-size: 0.72rem;
    font-weight: 600;
    color: #868e96;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.ed-meta-value[b-ips261beim] {
    font-size: 0.9rem;
    color: #212529;
    word-break: break-word;
}

.btn-adresse-link[b-ips261beim] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    color: #1a56db;
    cursor: pointer;
}
.btn-adresse-link:hover[b-ips261beim] { text-decoration: underline; }

/* Adress-Zeile: Link plus Wechsel-Button bzw. Zuordnen-Button */
.ed-adresse-row[b-ips261beim] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ed-adresse-switch[b-ips261beim] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid #d0d7de;
    border-radius: 5px;
    background: #fff;
    color: #6b7280;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.ed-adresse-switch:hover[b-ips261beim] {
    background: #eef2ff;
    border-color: #1a56db;
    color: #1a56db;
}

.ed-adresse-assign[b-ips261beim] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px dashed #f59e0b;
    background: transparent;
    cursor: pointer;
    color: #92400e;
    font-size: 0.85rem;
    font-style: italic;
    padding: 2px 8px;
    border-radius: 5px;
    transition: background .15s, border-color .15s, color .15s;
}
.ed-adresse-assign:hover[b-ips261beim] {
    background: rgba(245,158,11,.15);
    border-color: #d97706;
    color: #78350f;
    font-style: normal;
}

/* Body */
.ed-body-wrap[b-ips261beim] {
    flex: 1;
    min-height: 0;
    padding: 1rem 1.5rem 1.5rem;
}
.ed-body-iframe[b-ips261beim] {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
}
/* /Components/Tabs/EmailUebersicht.razor.rz.scp.css */
/* ── View-Container ── */
.email-view[b-v9j49rv9it] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0;
}

/* ── Rechtsklick-Kontextmenü ── */
.ctx-backdrop[b-v9j49rv9it] {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.ctx-menu[b-v9j49rv9it] {
    position: fixed;
    z-index: 1001;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
    min-width: 190px;
    padding: 6px 0;
    user-select: none;
}

.ctx-section-label[b-v9j49rv9it] {
    font-size: 0.7rem;
    font-weight: 700;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 4px 14px 6px;
}

.ctx-item[b-v9j49rv9it] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    padding: 7px 14px;
    font-size: 0.86rem;
    color: #212529;
    cursor: pointer;
    text-align: left;
    transition: background .1s;
}
.ctx-item:hover[b-v9j49rv9it]          { background: #f1f3f5; }
.ctx-item.ctx-item-active[b-v9j49rv9it] { font-weight: 600; color: #16a34a; }

/* Trennlinie */
.ctx-divider[b-v9j49rv9it] {
    height: 1px;
    background: #e9ecef;
    margin: 4px 0;
}

/* Selektions-Info-Header im Kontextmenü */
.ctx-selection-info[b-v9j49rv9it] {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #3b82f6;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2px;
}

/* Gefährliche Aktion */
.ctx-item-danger[b-v9j49rv9it]        { color: #dc2626; }
.ctx-item-danger:hover[b-v9j49rv9it]  { background: #fff5f5; color: #b91c1c; }

/* Submenü-Eintrag */
.ctx-item-submenu[b-v9j49rv9it] {
    position: relative;
    cursor: default;
}
.ctx-chevron[b-v9j49rv9it] { margin-left: auto; font-size: 0.7rem; opacity: .55; }

.ctx-submenu[b-v9j49rv9it] {
    display: none;
    position: absolute;
    left: 100%;
    top: -6px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
    min-width: 160px;
    padding: 6px 0;
    z-index: 1002;
}
.ctx-item-submenu.submenu-open .ctx-submenu[b-v9j49rv9it],
.ctx-item-submenu:hover .ctx-submenu[b-v9j49rv9it] { display: block; }

/* Bestätigungsdialog */
.ctx-modal-backdrop[b-v9j49rv9it] {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1010;
}

.ctx-confirm-dialog[b-v9j49rv9it] {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1011;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,.2);
    width: 380px;
    max-width: 95vw;
    padding: 28px 28px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.ctx-confirm-icon[b-v9j49rv9it] { font-size: 2rem; color: #f59e0b; }
.ctx-confirm-title[b-v9j49rv9it] { font-size: 1.1rem; font-weight: 700; color: #212529; }
.ctx-confirm-body[b-v9j49rv9it]  { font-size: 0.88rem; color: #495057; line-height: 1.5; }
.ctx-confirm-meta[b-v9j49rv9it]  { color: #adb5bd; font-size: 0.8rem; }

.ctx-confirm-actions[b-v9j49rv9it] {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    width: 100%;
    justify-content: flex-end;
}

.btn-confirm-cancel[b-v9j49rv9it] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 0.87rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.btn-confirm-cancel:hover[b-v9j49rv9it] { background: #f1f3f5; }

.btn-confirm-delete[b-v9j49rv9it] {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: #dc2626;
    color: #fff;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 0.87rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .1s;
}
.btn-confirm-delete:hover[b-v9j49rv9it] { background: #b91c1c; }

/* ── Header ── */
.email-header[b-v9j49rv9it] {
    display: flex;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.email-title[b-v9j49rv9it] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 9px;
}

/* ── Suche ── */
.email-search-wrap[b-v9j49rv9it] {
    display: flex;
    align-items: center;
    padding: 0.6rem 0 0.5rem 0;
    flex-shrink: 0;
}

/* search-bar, filter-bar & Co. sind zentral in wwwroot/css/crm-theme.css definiert */

/* ── Tabellen-Wrapper (scrollable, nimmt verfügbaren Platz) ── */
.email-list-wrap[b-v9j49rv9it] {
    flex: 1 1 0;
    min-height: 0;
    overflow: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 0;
}

/* ── Filterleiste: nur die semantischen Farb-Modifier, Layout/Grundform kommt aus crm-theme.css ── */
.filter-offen.active[b-v9j49rv9it]   { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.filter-erledigt.active[b-v9j49rv9it] { background: #16a34a; border-color: #16a34a; color: #fff; }

/* ── Status-Spalte ── */
.th-status[b-v9j49rv9it] { width: 110px; white-space: nowrap; }
.td-status[b-v9j49rv9it] { white-space: nowrap; }

.btn-status[b-v9j49rv9it] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.btn-status.status-offen[b-v9j49rv9it]    { color: #92400e; border-color: #fcd34d; background: #fffbeb; }
.btn-status.status-erledigt[b-v9j49rv9it] { color: #15803d; border-color: #86efac; background: #f0fdf4; }
.btn-status:hover[b-v9j49rv9it]           { filter: brightness(.93); }

/* ── Tabelle ── */
.email-table[b-v9j49rv9it] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.email-table tbody[b-v9j49rv9it] {
    user-select: none;
    -webkit-user-select: none;
}

.email-table thead th[b-v9j49rv9it] {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8f9fa;
    padding: 9px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
    user-select: none;
}

.th-sort[b-v9j49rv9it] { cursor: pointer; }
.th-sort:hover[b-v9j49rv9it] { color: #212529; background: #f1f3f5; }
.th-sort.is-sorted[b-v9j49rv9it] { color: #1a56db; }
.th-dir[b-v9j49rv9it]    { width: 36px; }
.th-clip[b-v9j49rv9it]   { width: 28px; }
.th-action[b-v9j49rv9it] { width: 132px; }

.email-table tbody tr[b-v9j49rv9it] {
    border-bottom: 1px solid #f1f3f5;
    cursor: pointer;
    transition: background .1s;
}
.email-table tbody tr:hover[b-v9j49rv9it] { background: #f8f9fa; }
.email-row.row-selected[b-v9j49rv9it]  { background: #dbeafe !important; }
.email-row.row-preview[b-v9j49rv9it]   { outline: 2px solid #3b82f6; outline-offset: -2px; }
.email-row.row-selected.row-preview[b-v9j49rv9it] { background: #bfdbfe !important; }

.email-table td[b-v9j49rv9it] { padding: 9px 12px; vertical-align: middle; }

/* Richtungs-Icons */
.td-dir[b-v9j49rv9it] { text-align: center; }
.dir-inbound[b-v9j49rv9it]  { color: #16a34a; font-size: 1rem; }
.dir-outbound[b-v9j49rv9it] { color: #1a56db; font-size: 1rem; }

/* Adress-Zelle */
.td-adresse[b-v9j49rv9it] { white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }

.btn-adresse-link[b-v9j49rv9it] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    color: #16a34a;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0;
    transition: color .15s;
}
.btn-adresse-link:hover[b-v9j49rv9it] { color: #15803d; text-decoration: underline; }

/* Kleiner Wechsel-Button neben einer bereits zugeordneten Adresse (Vorschau-Panel) */
.btn-adresse-switch[b-v9j49rv9it] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 6px;
    border: 1px solid #d0d7de;
    border-radius: 5px;
    background: #fff;
    color: #6b7280;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.btn-adresse-switch:hover[b-v9j49rv9it] {
    background: rgba(22,163,74,.12);
    border-color: #16a34a;
    color: #15803d;
}

.adresse-miss-label[b-v9j49rv9it] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #92400e;
    font-size: 0.82rem;
    font-style: italic;
}

.btn-adresse-assign[b-v9j49rv9it] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px dashed #f59e0b;
    background: transparent;
    cursor: pointer;
    color: #92400e;
    font-size: 0.82rem;
    font-style: italic;
    padding: 2px 8px;
    border-radius: 5px;
    transition: background .15s, border-color .15s, color .15s;
}
.btn-adresse-assign:hover[b-v9j49rv9it] {
    background: rgba(245,158,11,.15);
    border-color: #d97706;
    color: #78350f;
    font-style: normal;
}

/* Von / An / Betreff / Datum */
.td-from[b-v9j49rv9it]    { color: #495057; font-size: 0.85rem; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.td-to[b-v9j49rv9it]      { color: #495057; font-size: 0.85rem; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.td-subject[b-v9j49rv9it] { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subject-text[b-v9j49rv9it] { font-weight: 500; color: #212529; }
.td-clip[b-v9j49rv9it]    { text-align: center; }
.td-clip i[b-v9j49rv9it]  { color: #64748b; font-size: 0.9rem; }
.td-date[b-v9j49rv9it]    { white-space: nowrap; color: #6c757d; font-size: 0.82rem; }
.td-action[b-v9j49rv9it]  { text-align: right; }
.td-loading[b-v9j49rv9it], .td-empty[b-v9j49rv9it] { text-align: center; color: #adb5bd; padding: 2rem !important; }

/* ── Aktions-Buttons (nebeneinander, farblich getrennt) ── */
.action-group[b-v9j49rv9it] {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #dee2e6;
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
}

.act-btn[b-v9j49rv9it] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    padding: 5px 0;
    background: #fff;
    border: none;
    border-left: 1px solid #eceef1;
    cursor: pointer;
    color: #6c757d;
    font-size: 0.9rem;
    transition: background .15s, color .15s;
}
.act-btn:first-child[b-v9j49rv9it] { border-left: none; }

.act-reply:hover[b-v9j49rv9it]     { background: #f0fdf4; color: #15803d; }
.act-reply-all:hover[b-v9j49rv9it] { background: #ecfeff; color: #0e7490; }
.act-forward:hover[b-v9j49rv9it]   { background: #fff7ed; color: #c2410c; }
.act-open:hover[b-v9j49rv9it]      { background: #f0f5ff; color: #1a56db; }

/* farbige Ruhe-Akzente je Aktion */
.act-reply[b-v9j49rv9it]     { color: #16a34a; }
.act-reply-all[b-v9j49rv9it] { color: #0891b2; }
.act-forward[b-v9j49rv9it]   { color: #ea580c; }
.act-open[b-v9j49rv9it]      { color: #4c8dff; }

/* ── Postfach-Filter ── */
.filter-divider[b-v9j49rv9it] {
    width: 1px;
    align-self: stretch;
    background: #dee2e6;
    margin: 0 4px;
}

.filter-mailbox[b-v9j49rv9it] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 5px 10px;
    font-size: 0.82rem;
    color: #212529;
    background: #fff;
    cursor: pointer;
    max-width: 260px;
    transition: border-color .15s;
}
.filter-mailbox:focus[b-v9j49rv9it] { outline: none; border-color: #1a56db; }

/* ── Vorschau-Panel ── */
.email-preview-panel[b-v9j49rv9it] {
    flex: 0 0 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-top: 2px solid #e9ecef;
    background: #fff;
    transition: flex-basis .2s ease;
}

.email-preview-panel.preview-open[b-v9j49rv9it] {
    flex: 0 0 42%;
}

.preview-empty[b-v9j49rv9it] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    color: #dee2e6;
    font-size: 0.95rem;
    padding: 1rem;
}
.preview-empty i[b-v9j49rv9it] { font-size: 2.5rem; }

/* Vorschau-Kopf (Betreff + Schließen) */
.preview-header[b-v9j49rv9it] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px 8px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.preview-subject[b-v9j49rv9it] {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-preview-close[b-v9j49rv9it] {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 0.95rem;
    padding: 3px 7px;
    border-radius: 5px;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.btn-preview-close:hover[b-v9j49rv9it] { background: #f1f3f5; color: #212529; }

/* Metadaten */
.preview-meta[b-v9j49rv9it] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
    font-size: 0.82rem;
}
.preview-meta-row[b-v9j49rv9it] {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.meta-label[b-v9j49rv9it] {
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: .04em;
    min-width: 40px;
    flex-shrink: 0;
}
.meta-value[b-v9j49rv9it] { color: #212529; word-break: break-all; }

/* iframe Body */
.preview-body-wrap[b-v9j49rv9it] {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.preview-iframe[b-v9j49rv9it] {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #fff;
}
/* /Components/Tabs/KalenderAnsicht.razor.rz.scp.css */
.kal[b-nd2bz4uvua] {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px 20px;
    gap: 14px;
    overflow: hidden;
}

/* ── Kopfzeile ── */
.kal-header[b-nd2bz4uvua] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.kal-nav[b-nd2bz4uvua] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kal-title[b-nd2bz4uvua] {
    font-size: 1.15rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 0 8px;
}

.kal-nav-btn[b-nd2bz4uvua] {
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.kal-nav-btn:hover[b-nd2bz4uvua] { background: #f1f3f5; color: #212529; }

.kal-heute[b-nd2bz4uvua] {
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
}
.kal-heute:hover[b-nd2bz4uvua] { background: #f1f3f5; color: #212529; }

.kal-tools[b-nd2bz4uvua] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.kal-seg[b-nd2bz4uvua] {
    display: inline-flex;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.kal-seg-btn[b-nd2bz4uvua] {
    border: none;
    background: #fff;
    color: #495057;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    border-right: 1px solid #dee2e6;
}
.kal-seg-btn:last-child[b-nd2bz4uvua] { border-right: none; }
.kal-seg-btn:hover[b-nd2bz4uvua] { background: #f1f3f5; }
.kal-seg-btn.active[b-nd2bz4uvua] { background: #1a56db; color: #fff; }

.kal-neu[b-nd2bz4uvua] {
    border: none;
    background: #1a56db;
    color: #fff;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.kal-neu:hover[b-nd2bz4uvua] { background: #1648c0; }

.kal-loading[b-nd2bz4uvua] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 24px;
    color: #868e96;
    font-size: 0.88rem;
}

/* ── Raster ── */
.kal-grid[b-nd2bz4uvua] {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(96px, 1fr);
    gap: 1px;
    background: #dee2e6;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: auto;
}

/* In der Wochenansicht steht nur eine Zeile — die darf die volle Höhe nutzen. */
.kal-grid.ist-woche[b-nd2bz4uvua] { grid-auto-rows: auto minmax(300px, 1fr); }

.kal-wochentag[b-nd2bz4uvua] {
    background: #f8f9fa;
    padding: 7px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #868e96;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: sticky;
    top: 0;
    z-index: 1;
}

.kal-tag[b-nd2bz4uvua] {
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 4px;
    gap: 3px;
}
.kal-tag.fremder-monat[b-nd2bz4uvua] { background: #fafbfc; }
.kal-tag.fremder-monat .kal-tag-nr[b-nd2bz4uvua] { color: #adb5bd; }
.kal-tag.ist-heute[b-nd2bz4uvua] { background: #f0f6ff; }
.kal-tag.ist-heute .kal-tag-nr[b-nd2bz4uvua] {
    background: #1a56db;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kal-tag-kopf[b-nd2bz4uvua] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kal-tag-nr[b-nd2bz4uvua] {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    padding: 0 3px;
}

.kal-tag-plus[b-nd2bz4uvua] {
    border: none;
    background: transparent;
    color: #adb5bd;
    cursor: pointer;
    opacity: 0;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 4px;
}
.kal-tag:hover .kal-tag-plus[b-nd2bz4uvua] { opacity: 1; }
.kal-tag-plus:hover[b-nd2bz4uvua] { background: #e9ecef; color: #212529; }

.kal-tag-body[b-nd2bz4uvua] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    min-height: 0;
}

/* ── Termine ── */
.kal-ev[b-nd2bz4uvua] {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    border: none;
    border-left: 3px solid currentColor;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 0.74rem;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
}

.kal-ev-zeit[b-nd2bz4uvua] { font-variant-numeric: tabular-nums; opacity: 0.75; flex-shrink: 0; }

.kal-ev-titel[b-nd2bz4uvua] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.kal-ev-case[b-nd2bz4uvua] {
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.6;
}
.kal-ev-case:hover[b-nd2bz4uvua] { opacity: 1; }

.kal-ev.ist-erledigt[b-nd2bz4uvua] { opacity: 0.5; }
.kal-ev.ist-erledigt .kal-ev-titel[b-nd2bz4uvua] { text-decoration: line-through; }

/* Farbe je Typ — Rahmen erbt sie über currentColor. */
.ev-appointment[b-nd2bz4uvua] { background: #e7f1ff; color: #1a56db; }
.ev-followup[b-nd2bz4uvua]    { background: #fff4e6; color: #d9480f; }
.ev-meeting[b-nd2bz4uvua]     { background: #f3f0ff; color: #6741d9; }
.ev-call[b-nd2bz4uvua]        { background: #e6fcf5; color: #087f5b; }
.ev-reminder[b-nd2bz4uvua]    { background: #fff9db; color: #a07800; }
/* /Components/Tabs/NotizenUebersicht.razor.rz.scp.css */
.notes-view[b-jrj7bci0gy] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0;
}

/* ── Rechtsklick-Kontextmenü ── */
.ctx-backdrop[b-jrj7bci0gy] {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.ctx-menu[b-jrj7bci0gy] {
    position: fixed;
    z-index: 1001;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
    min-width: 190px;
    padding: 6px 0;
    user-select: none;
}

.ctx-item[b-jrj7bci0gy] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    padding: 7px 14px;
    font-size: 0.86rem;
    color: #212529;
    cursor: pointer;
    text-align: left;
    transition: background .1s;
}
.ctx-item:hover[b-jrj7bci0gy] { background: #f1f3f5; }

/* Selektions-Info-Header im Kontextmenü */
.ctx-selection-info[b-jrj7bci0gy] {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #3b82f6;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2px;
}

/* Gefährliche Aktion */
.ctx-item-danger[b-jrj7bci0gy]        { color: #dc2626; }
.ctx-item-danger:hover[b-jrj7bci0gy]  { background: #fff5f5; color: #b91c1c; }

/* Bestätigungsdialog */
.ctx-modal-backdrop[b-jrj7bci0gy] {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1010;
}

.ctx-confirm-dialog[b-jrj7bci0gy] {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1011;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,.2);
    width: 380px;
    max-width: 95vw;
    padding: 28px 28px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.ctx-confirm-icon[b-jrj7bci0gy] { font-size: 2rem; color: #f59e0b; }
.ctx-confirm-title[b-jrj7bci0gy] { font-size: 1.1rem; font-weight: 700; color: #212529; }
.ctx-confirm-body[b-jrj7bci0gy]  { font-size: 0.88rem; color: #495057; line-height: 1.5; }
.ctx-confirm-meta[b-jrj7bci0gy]  { color: #adb5bd; font-size: 0.8rem; }

.ctx-confirm-actions[b-jrj7bci0gy] {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    width: 100%;
    justify-content: flex-end;
}

.btn-confirm-cancel[b-jrj7bci0gy] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 0.87rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.btn-confirm-cancel:hover[b-jrj7bci0gy] { background: #f1f3f5; }

.btn-confirm-delete[b-jrj7bci0gy] {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: #dc2626;
    color: #fff;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 0.87rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .1s;
}
.btn-confirm-delete:hover[b-jrj7bci0gy] { background: #b91c1c; }

/* ── Header ── */
.notes-header[b-jrj7bci0gy] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.notes-title[b-jrj7bci0gy] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 9px;
}

.btn-new-note[b-jrj7bci0gy] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.87rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.btn-new-note:hover[b-jrj7bci0gy] { background: #1648c0; }

/* ── Suche ── */
.notes-search-wrap[b-jrj7bci0gy] {
    display: flex;
    align-items: center;
    padding: 0.6rem 0 0.5rem 0;
    flex-shrink: 0;
}
.search-bar[b-jrj7bci0gy] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 7px 13px;
    min-width: 340px;
    transition: border-color .2s, box-shadow .2s;
}
.search-bar.focused[b-jrj7bci0gy] {
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76, 141, 255, .15);
}
.search-icon[b-jrj7bci0gy] { color: #adb5bd; flex-shrink: 0; }
.search-input[b-jrj7bci0gy] {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.875rem;
    background: transparent;
    color: #212529;
}
.btn-search-clear[b-jrj7bci0gy] {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #adb5bd;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: color .15s;
}
.btn-search-clear:hover[b-jrj7bci0gy] { color: #6c757d; }

/* ── Tabelle ── */
.notes-table-wrap[b-jrj7bci0gy] {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.notes-table[b-jrj7bci0gy] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.notes-table tbody[b-jrj7bci0gy] {
    user-select: none;
    -webkit-user-select: none;
}

.notes-table thead[b-jrj7bci0gy] {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 1;
}

.notes-table th[b-jrj7bci0gy] {
    padding: 9px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.th-sort[b-jrj7bci0gy] { cursor: pointer; user-select: none; }
.th-sort:hover[b-jrj7bci0gy] { background: #e9ecef; color: #343a40; }
.th-sort.is-sorted[b-jrj7bci0gy] { color: #4c8dff; }
.sort-hint[b-jrj7bci0gy] { opacity: 0.3; }

.notes-table td[b-jrj7bci0gy] {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
    color: #495057;
}

.notes-row[b-jrj7bci0gy] { cursor: pointer; }
.notes-row:hover td[b-jrj7bci0gy] { background: #f8f9fa; }
.notes-row.row-selected td[b-jrj7bci0gy] { background: #dbeafe !important; }
.notes-row.row-selected:hover td[b-jrj7bci0gy] { background: #bfdbfe !important; }

/* ── Adresse-Spalte ── */
.td-adresse[b-jrj7bci0gy] {
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.adresse-label[b-jrj7bci0gy] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #16a34a;
    font-size: 0.85rem;
    font-weight: 500;
}
.adresse-miss-label[b-jrj7bci0gy] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #92400e;
    font-size: 0.82rem;
    font-style: italic;
}

/* ── Notiz-Vorschau ── */
.td-content[b-jrj7bci0gy] { max-width: 420px; }
.content-preview[b-jrj7bci0gy] {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #212529;
}

.td-createdby[b-jrj7bci0gy] { white-space: nowrap; color: #495057; }
.td-date[b-jrj7bci0gy] { white-space: nowrap; color: #6c757d; font-size: 0.82rem; }

.td-loading[b-jrj7bci0gy], .td-empty[b-jrj7bci0gy] {
    text-align: center;
    color: #adb5bd;
    padding: 2rem !important;
}
/* /Components/Tabs/PersoenlichesDashboard.razor.rz.scp.css */
/* 2×2-Raster: Kopf über beide Spalten, darunter zwei gleich hohe Kachelzeilen.
   Der Container selbst scrollt nicht — gescrollt wird innerhalb jeder Kachel. */
.pd[b-8gbnrhyd75] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr 1fr;
    gap: 16px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 1.25rem 1.5rem;
    box-sizing: border-box;
    width: 100%;
}

/* ── Header ── */
.pd-header[b-8gbnrhyd75] { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; }
.pd-title[b-8gbnrhyd75] {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pd-subtitle[b-8gbnrhyd75] { font-size: 0.85rem; color: #94a3b8; }

/* ── Kachel-Panels ── */
.pd-tile[b-8gbnrhyd75] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15,23,42,.05);
    overflow: hidden;
    border-top: 3px solid var(--pd-accent, #cbd5e1);
}
.pd-tile.t-notification[b-8gbnrhyd75] { --pd-accent: var(--crm-adresse-fg); }
.pd-tile.t-case[b-8gbnrhyd75]         { --pd-accent: var(--crm-case-fg); }
.pd-tile.t-task[b-8gbnrhyd75]         { --pd-accent: var(--crm-task-fg); }
.pd-tile.t-followup[b-8gbnrhyd75]     { --pd-accent: #d9480f; }

.pd-tile-head[b-8gbnrhyd75] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}
.pd-tile-title[b-8gbnrhyd75] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #1e293b;
}
.pd-tile-title i[b-8gbnrhyd75] { color: var(--pd-accent); }
.pd-count[b-8gbnrhyd75] {
    background: #f1f5f9;
    color: #475569;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 0.72rem;
    font-weight: 600;
}

.pd-tile-tools[b-8gbnrhyd75] { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-filter-label[b-8gbnrhyd75] { font-size: 0.76rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }

/* Nur der Kachelinhalt scrollt. min-height:0 ist nötig, sonst wächst die
   Kachel über ihre Rasterzeile hinaus statt zu scrollen. */
.pd-tile-body[b-8gbnrhyd75] { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px; }

/* ── Segment-Umschalter (Benachrichtigungen) ── */
.pd-seg[b-8gbnrhyd75] { display: inline-flex; background: #f1f5f9; border-radius: 8px; padding: 3px; }
.pd-seg-btn[b-8gbnrhyd75] {
    border: none; background: transparent; color: #64748b;
    font-size: 0.8rem; padding: 5px 12px; border-radius: 6px; cursor: pointer;
}
.pd-seg-btn.active[b-8gbnrhyd75] { background: #fff; color: #1e293b; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.pd-tool-btn[b-8gbnrhyd75] {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid #dee2e6; background: #fff; color: #495057;
    border-radius: 8px; padding: 5px 12px; font-size: 0.8rem; cursor: pointer;
    transition: background .15s;
}
.pd-tool-btn:hover[b-8gbnrhyd75] { background: #f1f3f5; }

/* Filter-Chips (Cases-Status / Aufgaben-Toggle) */
.pd-chip[b-8gbnrhyd75] {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid #dee2e6; background: #fff; color: #495057;
    border-radius: 16px; padding: 4px 12px; font-size: 0.78rem; cursor: pointer;
    transition: background .12s, border-color .12s, color .12s;
}
.pd-chip:hover[b-8gbnrhyd75] { background: #f8fafc; }
.pd-chip.active[b-8gbnrhyd75] { background: #eef4ff; border-color: #4c8dff; color: #1a56db; font-weight: 500; }

/* ── Leer / Laden ── */
.pd-empty[b-8gbnrhyd75], .pd-loading[b-8gbnrhyd75] {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 28px 14px; color: #94a3b8; font-size: 0.88rem;
}
.pd-empty[b-8gbnrhyd75] { flex-direction: column; }
.pd-empty i[b-8gbnrhyd75] { font-size: 1.6rem; }

/* ── Benachrichtigungen ── */
.pd-notif[b-8gbnrhyd75] {
    display: flex; align-items: flex-start; gap: 11px; width: 100%;
    padding: 11px 12px; background: transparent; border: none;
    border-bottom: 1px solid #f1f5f9; text-align: left; cursor: pointer;
    transition: background .12s;
}
.pd-notif:last-child[b-8gbnrhyd75] { border-bottom: none; }
.pd-notif:hover[b-8gbnrhyd75] { background: #f8fafc; }
.pd-notif.unread[b-8gbnrhyd75] { background: #eff6ff; }
.pd-notif.unread:hover[b-8gbnrhyd75] { background: #e0edff; }
.pd-notif-icon[b-8gbnrhyd75] { color: #64748b; font-size: 1.05rem; margin-top: 2px; flex-shrink: 0; }
.pd-notif.unread .pd-notif-icon[b-8gbnrhyd75] { color: #1a56db; }
.pd-notif-main[b-8gbnrhyd75] { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pd-notif-title[b-8gbnrhyd75] { font-size: 0.88rem; color: #1e293b; font-weight: 500; }
.pd-notif-preview[b-8gbnrhyd75] {
    font-size: 0.82rem; color: #64748b;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pd-notif-meta[b-8gbnrhyd75] { font-size: 0.74rem; color: #94a3b8; }
.pd-dot[b-8gbnrhyd75] { width: 9px; height: 9px; border-radius: 50%; background: #2563eb; flex-shrink: 0; margin-top: 5px; }

/* ── Tabellen (Cases / Aufgaben) ── */
.pd-table[b-8gbnrhyd75] { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.pd-table thead th[b-8gbnrhyd75] {
    text-align: left; font-weight: 600; color: #64748b; font-size: 0.74rem;
    text-transform: uppercase; letter-spacing: .03em;
    padding: 8px 10px; border-bottom: 1px solid #eef2f6; white-space: nowrap;
    position: sticky; top: 0; background: #fff; z-index: 1;
}
.th-sort[b-8gbnrhyd75] { cursor: pointer; user-select: none; }
.th-sort:hover[b-8gbnrhyd75] { color: #1a56db; }
.sort-hint[b-8gbnrhyd75] { opacity: 0.3; }
.th-dot[b-8gbnrhyd75] { width: 34px; }
.th-act[b-8gbnrhyd75] { width: 40px; }

.pd-row[b-8gbnrhyd75] { cursor: pointer; transition: background .1s; }
.pd-row:hover[b-8gbnrhyd75] { background: #f8fafc; }
.pd-row td[b-8gbnrhyd75] { padding: 9px 10px; border-bottom: 1px solid #f4f6f9; vertical-align: middle; }
.pd-row.row-closed .subject-text[b-8gbnrhyd75],
.pd-row.row-completed .title-text[b-8gbnrhyd75] { color: #adb5bd; text-decoration: line-through; }

.td-nr[b-8gbnrhyd75] { font-weight: 600; color: #334155; white-space: nowrap; }
.subject-text[b-8gbnrhyd75], .title-text[b-8gbnrhyd75] { display: block; font-weight: 500; color: #212529; }
.td-subject[b-8gbnrhyd75], .td-title[b-8gbnrhyd75] { max-width: 280px; }
.td-subject .subject-text[b-8gbnrhyd75], .td-title .title-text[b-8gbnrhyd75] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-kunde[b-8gbnrhyd75] { color: #475569; }
.td-created[b-8gbnrhyd75] { color: #94a3b8; white-space: nowrap; font-size: 0.8rem; }
.td-due[b-8gbnrhyd75] { white-space: nowrap; color: #475569; }
.td-due.due-overdue[b-8gbnrhyd75] { color: #dc2626; font-weight: 600; }

.pd-open[b-8gbnrhyd75] {
    border: none; background: transparent; color: #94a3b8; cursor: pointer;
    font-size: 1rem; padding: 2px 4px; border-radius: 6px; transition: background .12s, color .12s;
}
.pd-open:hover[b-8gbnrhyd75] { background: #eef4ff; color: #1a56db; }

/* Status-Punkt (Cases) */
.status-dot[b-8gbnrhyd75] { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.status-dot.st-new[b-8gbnrhyd75]      { background: #3b82f6; }
.status-dot.st-progress[b-8gbnrhyd75] { background: #f59e0b; }
.status-dot.st-waiting[b-8gbnrhyd75]  { background: #a855f7; }
.status-dot.st-hold[b-8gbnrhyd75]     { background: #94a3b8; }
.status-dot.st-closed[b-8gbnrhyd75]   { background: #16a34a; }
.status-dot.st-rejected[b-8gbnrhyd75] { background: #dc2626; }

/* Aufgaben-Status-Icon */
.task-ico[b-8gbnrhyd75] { font-size: 1rem; display: inline-flex; }
.task-ico.done[b-8gbnrhyd75] { color: #16a34a; }
.task-ico.overdue[b-8gbnrhyd75] { color: #dc2626; }
.task-ico.open[b-8gbnrhyd75] { color: #cbd5e1; }

/* Prioritäts-Badge */
.prio-badge[b-8gbnrhyd75] {
    display: inline-block; padding: 2px 9px; border-radius: 12px;
    font-size: 0.74rem; font-weight: 600; white-space: nowrap;
}
.prio-badge.prio-low[b-8gbnrhyd75]     { background: #f1f3f5; color: #6c757d; }
.prio-badge.prio-normal[b-8gbnrhyd75]  { background: #dbeafe; color: #1d4ed8; }
.prio-badge.prio-medium[b-8gbnrhyd75]  { background: #fef3c7; color: #92400e; }
.prio-badge.prio-high[b-8gbnrhyd75]    { background: #fed7aa; color: #c2410c; }
.prio-badge.prio-highest[b-8gbnrhyd75] { background: #fecaca; color: #b91c1c; }

/* Typ-Badge (Cases) */
.type-badge[b-8gbnrhyd75] {
    display: inline-block; padding: 2px 9px; border-radius: 12px;
    font-size: 0.74rem; font-weight: 600; white-space: nowrap;
}
.type-badge.type-support[b-8gbnrhyd75]    { background: color-mix(in srgb, var(--casetype-support) 16%, white);    color: var(--casetype-support); }
.type-badge.type-sales[b-8gbnrhyd75]      { background: color-mix(in srgb, var(--casetype-sales) 16%, white);      color: var(--casetype-sales); }
.type-badge.type-technical[b-8gbnrhyd75]  { background: color-mix(in srgb, var(--casetype-technical) 16%, white);  color: var(--casetype-technical); }
.type-badge.type-accounting[b-8gbnrhyd75] { background: color-mix(in srgb, var(--casetype-accounting) 16%, white); color: var(--casetype-accounting); }
.type-badge.type-internal[b-8gbnrhyd75]   { background: color-mix(in srgb, var(--casetype-internal) 16%, white);   color: var(--casetype-internal); }
.type-badge.type-other[b-8gbnrhyd75]      { background: color-mix(in srgb, var(--casetype-other) 16%, white);      color: var(--casetype-other); }

/* Case-Badge (Aufgaben) */
.case-badge[b-8gbnrhyd75] {
    display: inline-flex; align-items: center; gap: 5px;
    background: color-mix(in srgb, var(--crm-case-fg) 12%, white);
    color: var(--crm-case-fg);
    border-radius: 12px; padding: 2px 9px; font-size: 0.76rem; font-weight: 500;
}
.case-none[b-8gbnrhyd75] { color: #cbd5e1; }

/* ── Wiedervorlagen ── */
.pd-wvl-gruppe[b-8gbnrhyd75] { margin-bottom: 12px; }
.pd-wvl-gruppe:last-child[b-8gbnrhyd75] { margin-bottom: 0; }

.pd-wvl-gruppe-kopf[b-8gbnrhyd75] {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
    color: #64748b; padding: 4px 2px 8px;
}
.pd-wvl-gruppe-kopf.wvl-overdue[b-8gbnrhyd75] { color: #dc2626; }
.pd-wvl-gruppe-kopf.wvl-today[b-8gbnrhyd75]   { color: #d9480f; }

.pd-wvl[b-8gbnrhyd75] {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 8px;
    border-left: 3px solid transparent;
    background: #f8fafc;
    margin-bottom: 4px;
}
.pd-wvl.wvl-overdue[b-8gbnrhyd75] { border-left-color: #dc2626; background: #fef2f2; }
.pd-wvl.wvl-today[b-8gbnrhyd75]   { border-left-color: #d9480f; background: #fff7ed; }
.pd-wvl.wvl-week[b-8gbnrhyd75]    { border-left-color: #cbd5e1; }
.pd-wvl.wvl-later[b-8gbnrhyd75]   { border-left-color: #e2e8f0; }

.pd-wvl-icon[b-8gbnrhyd75] { color: #94a3b8; font-size: 0.95rem; flex-shrink: 0; }

.pd-wvl-main[b-8gbnrhyd75] { flex: 1; min-width: 0; }
.pd-wvl-titel[b-8gbnrhyd75] {
    font-size: 0.86rem; font-weight: 500; color: #1e293b;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pd-wvl-meta[b-8gbnrhyd75] {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.76rem; color: #94a3b8; margin-top: 2px;
}

.pd-wvl-akt[b-8gbnrhyd75] { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.pd-wvl-btn[b-8gbnrhyd75] {
    border: 1px solid #dee2e6; background: #fff; color: #64748b;
    border-radius: 6px; width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background .12s, color .12s;
}
.pd-wvl-btn:hover[b-8gbnrhyd75] { background: #f1f3f5; color: #1e293b; }
.pd-wvl-btn.done:hover[b-8gbnrhyd75] { background: #dcfce7; color: #15803d; border-color: #86efac; }

/* ── Schmale Fenster: eine Spalte, dann darf wieder die Seite scrollen ── */
@media (max-width: 1100px) {
    .pd[b-8gbnrhyd75] { grid-template-columns: 1fr; grid-template-rows: auto; overflow-y: auto; }
    .pd-tile[b-8gbnrhyd75] { min-height: 360px; max-height: 70vh; }
}
/* /Components/Tabs/SalesPipeline.razor.rz.scp.css */
.pipe-view[b-sjermkr0yt] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0;
}

/* ── Header ── */
.pipe-header[b-sjermkr0yt] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0.9rem 0;
    flex: 0 0 auto;
}

.pipe-title[b-sjermkr0yt] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}
.pipe-title i[b-sjermkr0yt] { color: var(--casetype-sales, #16a34a); }

.pipe-stats[b-sjermkr0yt] { display: flex; align-items: center; gap: 0.75rem; }

.pipe-total[b-sjermkr0yt] {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    background: #eef2f7;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}

.btn-new-case[b-sjermkr0yt] {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--casetype-sales, #16a34a);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: filter .15s;
}
.btn-new-case:hover[b-sjermkr0yt] { filter: brightness(0.9); }

.pipe-loading[b-sjermkr0yt] {
    display: flex;
    align-items: center;
    padding: 1.5rem 0.25rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* ── Board ── */
.pipe-board[b-sjermkr0yt] {
    display: flex;
    gap: 0.85rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    align-items: stretch;
}

.pipe-col[b-sjermkr0yt] {
    flex: 0 0 270px;
    width: 270px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #f1f4f8;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    border-top: 3px solid #94a3b8;
    transition: background .12s, box-shadow .12s;
}
.pipe-col.col-open[b-sjermkr0yt]   { border-top-color: var(--casetype-sales, #16a34a); }
.pipe-col.col-won[b-sjermkr0yt]    { border-top-color: #16a34a; }
.pipe-col.col-lost[b-sjermkr0yt]   { border-top-color: #dc2626; }

.pipe-col.drag-over[b-sjermkr0yt] {
    background: #e6efe9;
    box-shadow: inset 0 0 0 2px var(--casetype-sales, #16a34a);
}

.pipe-col-head[b-sjermkr0yt] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.8rem 0.55rem;
    flex: 0 0 auto;
}

.pipe-col-name[b-sjermkr0yt] {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #334155;
}

.pipe-col-count[b-sjermkr0yt] {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    min-width: 1.4rem;
    text-align: center;
    padding: 0.05rem 0.4rem;
}

.pipe-col-body[b-sjermkr0yt] {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.15rem 0.6rem 0.7rem;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.pipe-col-empty[b-sjermkr0yt] {
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 1rem 0;
    font-style: italic;
}

/* ── Karte ── */
.pipe-card[b-sjermkr0yt] {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 9px;
    padding: 0.6rem 0.7rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15,23,42,.05);
    transition: box-shadow .12s, transform .06s, border-color .12s;
}
.pipe-card:hover[b-sjermkr0yt] {
    box-shadow: 0 4px 12px rgba(15,23,42,.12);
    border-color: var(--casetype-sales, #16a34a);
}
.pipe-card:active[b-sjermkr0yt] { transform: scale(.985); }

.pipe-card-top[b-sjermkr0yt] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.pipe-card-nr[b-sjermkr0yt] {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--casetype-sales, #16a34a);
}

.pipe-card-subject[b-sjermkr0yt] {
    font-size: 0.86rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pipe-card-kunde[b-sjermkr0yt] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pipe-card-kunde i[b-sjermkr0yt] { font-size: 0.8rem; }

/* ── Wiedervorlage (NextActionDate) ── */
.pipe-card-due[b-sjermkr0yt] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    border: 1px solid transparent;
}
.pipe-card-due i[b-sjermkr0yt] { font-size: 0.78rem; }

.pipe-card-due.due-ok[b-sjermkr0yt] {
    color: #475569;
    background: #eef2f7;
    border-color: #e2e8f0;
}
.pipe-card-due.due-soon[b-sjermkr0yt] {
    color: #92620a;
    background: #fef3c7;
    border-color: #fde68a;
}
.pipe-card-due.due-overdue[b-sjermkr0yt] {
    color: #b91c1c;
    background: #fee2e2;
    border-color: #fecaca;
}
/* /Components/Tabs/SupportDashboard.razor.rz.scp.css */
.cases-view[b-75t6wq6cw5] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0;
}

/* ── Header ── */
.cases-header[b-75t6wq6cw5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.cases-title[b-75t6wq6cw5] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 9px;
}

.btn-new-case[b-75t6wq6cw5] {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.btn-new-case:hover[b-75t6wq6cw5] { background: #1648c0; }

/* ── Suchleiste ── */
.cases-search-wrap[b-75t6wq6cw5] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.6rem 0 0.5rem 0;
    flex-shrink: 0;
}
/* search-bar, filter-bar, btn-filter (Grundform) sind zentral in wwwroot/css/crm-theme.css definiert */

/* ── Status-Filter-Chips (aktiver Zustand je Status) ── */
.btn-filter.status-st-new.active[b-75t6wq6cw5]      { background: var(--casestatus-new);      border-color: var(--casestatus-new); }
.btn-filter.status-st-progress.active[b-75t6wq6cw5] { background: var(--casestatus-progress); border-color: var(--casestatus-progress); }
.btn-filter.status-st-waiting.active[b-75t6wq6cw5]  { background: var(--casestatus-waiting);  border-color: var(--casestatus-waiting); }
.btn-filter.status-st-hold.active[b-75t6wq6cw5]     { background: var(--casestatus-hold);     border-color: var(--casestatus-hold); }
.btn-filter.status-st-closed.active[b-75t6wq6cw5]   { background: var(--casestatus-closed);   border-color: var(--casestatus-closed); }
.btn-filter.status-st-rejected.active[b-75t6wq6cw5] { background: var(--casestatus-rejected); border-color: var(--casestatus-rejected); }

/* ── Tabelle ── */
.cases-table-wrap[b-75t6wq6cw5] {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.cases-table[b-75t6wq6cw5] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.cases-table thead[b-75t6wq6cw5] {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 2;
}

.cases-table th[b-75t6wq6cw5] {
    padding: 9px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.th-status[b-75t6wq6cw5] { width: 34px; }
.th-sla[b-75t6wq6cw5] { width: 48px; text-align: center; }
.th-sort[b-75t6wq6cw5] { cursor: pointer; user-select: none; }
.th-sort:hover[b-75t6wq6cw5] { background: #e9ecef; color: #343a40; }
.th-sort.is-sorted[b-75t6wq6cw5] { color: #4c8dff; }
.th-action[b-75t6wq6cw5] { width: 44px; }
.sort-hint[b-75t6wq6cw5] { opacity: 0.3; }

.cases-table td[b-75t6wq6cw5] {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
    color: #495057;
}

.cases-row[b-75t6wq6cw5] { cursor: pointer; }
.cases-row:hover td[b-75t6wq6cw5] { background: #f0f4ff; }
.cases-row:hover .btn-open-tab[b-75t6wq6cw5] { opacity: 1; }
.cases-row.row-closed .subject-text[b-75t6wq6cw5] { color: #adb5bd; }
.cases-row.row-closed td[b-75t6wq6cw5] { color: #adb5bd; }

/* ── Status-Dot ── */
.td-status[b-75t6wq6cw5] { text-align: center; width: 34px; }
.status-dot[b-75t6wq6cw5] {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #adb5bd;
}
.status-dot.st-new[b-75t6wq6cw5]      { background: #3b82f6; }
.status-dot.st-progress[b-75t6wq6cw5] { background: #f59e0b; }
.status-dot.st-waiting[b-75t6wq6cw5]  { background: #a855f7; }
.status-dot.st-hold[b-75t6wq6cw5]     { background: #94a3b8; }
.status-dot.st-closed[b-75t6wq6cw5]   { background: #16a34a; }
.status-dot.st-rejected[b-75t6wq6cw5] { background: #dc2626; }

/* ── SLA-Ampel ── */
.td-sla[b-75t6wq6cw5] { text-align: center; width: 48px; }
.sla-dot[b-75t6wq6cw5] {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #adb5bd;
    box-shadow: 0 0 0 3px rgba(0,0,0,.04);
}
.sla-dot.sla-green[b-75t6wq6cw5] { background: #16a34a; }
.sla-dot.sla-amber[b-75t6wq6cw5] { background: #f59e0b; }
.sla-dot.sla-red[b-75t6wq6cw5]   { background: #dc2626; }
.sla-dot.sla-none[b-75t6wq6cw5]  { background: #ced4da; box-shadow: none; }

/* ── Ticket-Nr ── */
.td-casenr[b-75t6wq6cw5] { white-space: nowrap; font-weight: 600; color: #1a56db; }

/* ── Betreff ── */
.td-subject[b-75t6wq6cw5] { min-width: 220px; max-width: 360px; }
.subject-text[b-75t6wq6cw5] { display: block; font-weight: 500; color: #212529; }
.subject-status[b-75t6wq6cw5] {
    display: block;
    color: #868e96;
    font-size: 0.78rem;
    margin-top: 2px;
}

/* ── Kunde ── */
.td-kunde[b-75t6wq6cw5] { min-width: 150px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Tags ── */
/* Chip-Optik liegt in TagChip.razor.css – die Farbe kommt je Tag aus TagPalette. */
.td-tags[b-75t6wq6cw5] { min-width: 120px; max-width: 220px; }
.td-tags[b-75t6wq6cw5]  .tagchip { margin: 1px 3px 1px 0; }
.tag-empty[b-75t6wq6cw5] { color: #ced4da; }

/* ── Priorität ── */
.td-priority[b-75t6wq6cw5] { white-space: nowrap; }
.prio-badge[b-75t6wq6cw5] {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}
.prio-badge.prio-low[b-75t6wq6cw5]     { background: #f1f3f5; color: #6c757d; }
.prio-badge.prio-normal[b-75t6wq6cw5]  { background: #dbeafe; color: #1d4ed8; }
.prio-badge.prio-medium[b-75t6wq6cw5]  { background: #fef3c7; color: #92400e; }
.prio-badge.prio-high[b-75t6wq6cw5]    { background: #fed7aa; color: #c2410c; }
.prio-badge.prio-highest[b-75t6wq6cw5] { background: #fecaca; color: #b91c1c; }

/* ── Zuständig ── */
.td-assigned[b-75t6wq6cw5] { white-space: nowrap; }

/* ── Erstellt ── */
.td-created[b-75t6wq6cw5] { white-space: nowrap; }
.date-main[b-75t6wq6cw5] { display: block; font-weight: 500; color: #212529; }
.date-by[b-75t6wq6cw5] { display: block; color: #adb5bd; font-size: 0.78rem; }

/* ── Öffnen-Button ── */
.td-action[b-75t6wq6cw5] { width: 44px; text-align: center; }
.btn-open-tab[b-75t6wq6cw5] {
    border: none;
    background: transparent;
    color: #4c8dff;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 3px 5px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity .15s, background .15s;
    display: inline-flex;
    align-items: center;
}
.btn-open-tab:hover[b-75t6wq6cw5] { background: #dbeafe; }

/* ── Loading / Empty ── */
.td-loading[b-75t6wq6cw5], .td-empty[b-75t6wq6cw5] {
    text-align: center;
    padding: 2rem !important;
    color: #6c757d;
    font-size: 0.875rem;
}
/* /Components/Tabs/TaskEditor.razor.rz.scp.css */
.task-editor[b-1u4x2kgmav] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem 1.75rem;
    box-sizing: border-box;
    overflow-y: auto;
}

.editor-loading[b-1u4x2kgmav], .editor-notfound[b-1u4x2kgmav] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 10px;
    color: #6c757d;
}
.editor-notfound[b-1u4x2kgmav] { color: #b91c1c; font-weight: 500; }

/* ── Header ── */
.editor-header[b-1u4x2kgmav] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.editor-title[b-1u4x2kgmav] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 9px;
}

.editor-status-badge[b-1u4x2kgmav] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.editor-status-badge.done[b-1u4x2kgmav] { background: #dcfce7; color: #166534; }

/* ── Body ── */
.editor-body[b-1u4x2kgmav] {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row[b-1u4x2kgmav] {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-row label[b-1u4x2kgmav] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.required[b-1u4x2kgmav] { color: #dc3545; }

.form-grid[b-1u4x2kgmav] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.form-input[b-1u4x2kgmav] {
    border: 1.5px solid #dee2e6;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #212529;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.form-input:focus[b-1u4x2kgmav] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}
.form-input.input-error[b-1u4x2kgmav] { border-color: #dc3545; }
.form-textarea[b-1u4x2kgmav] { resize: vertical; min-height: 100px; }

.field-error[b-1u4x2kgmav] { font-size: 0.75rem; color: #dc3545; }

/* ── Verknüpfte Entitäten (Case / Adresse) ── */
.linked-entity[b-1u4x2kgmav] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.linked-badge[b-1u4x2kgmav] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #e7f1ff;
    color: #1a56db;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-linked-clear[b-1u4x2kgmav] {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #adb5bd;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    transition: color .15s;
}
.btn-linked-clear:hover[b-1u4x2kgmav] { color: #dc3545; }

.btn-link-assign[b-1u4x2kgmav] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    border: 1px dashed #adb5bd;
    background: transparent;
    color: #6c757d;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.btn-link-assign:hover[b-1u4x2kgmav] {
    background: #f0f4ff;
    border-color: #4c8dff;
    color: #1a56db;
}

.field-hint[b-1u4x2kgmav] {
    font-size: 0.82rem;
    color: #868e96;
    font-style: italic;
}

/* ── Meta-Info ── */
.editor-meta[b-1u4x2kgmav] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 4px;
}

.meta-item[b-1u4x2kgmav] {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: #6c757d;
}
.meta-item.meta-done[b-1u4x2kgmav] { color: #166534; }
.meta-completion-note[b-1u4x2kgmav] { font-style: italic; color: #495057; }

/* ── Fehler ── */
.editor-save-error[b-1u4x2kgmav] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #b91c1c;
}

/* ── Aktionen ── */
.editor-actions[b-1u4x2kgmav] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.btn-editor-cancel[b-1u4x2kgmav] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 0.88rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.btn-editor-cancel:hover[b-1u4x2kgmav] { background: #f1f3f5; }

.btn-editor-save[b-1u4x2kgmav] {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.btn-editor-save:hover[b-1u4x2kgmav]    { background: #1648c0; }
.btn-editor-save:disabled[b-1u4x2kgmav] { background: #93c5fd; cursor: not-allowed; }

/* Schiebt Abbrechen/Speichern nach rechts, Erledigt-Aktion bleibt links. */
.editor-actions-spacer[b-1u4x2kgmav] { flex: 1; }

.btn-editor-complete[b-1u4x2kgmav],
.btn-editor-reopen[b-1u4x2kgmav] {
    display: flex;
    align-items: center;
    gap: 7px;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.btn-editor-complete[b-1u4x2kgmav] {
    border: none;
    background: #16a34a;
    color: #fff;
}
.btn-editor-complete:hover[b-1u4x2kgmav]    { background: #15803d; }
.btn-editor-complete:disabled[b-1u4x2kgmav] { background: #86efac; cursor: not-allowed; }

.btn-editor-reopen[b-1u4x2kgmav] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    color: #495057;
}
.btn-editor-reopen:hover[b-1u4x2kgmav]    { background: #f1f3f5; }
.btn-editor-reopen:disabled[b-1u4x2kgmav] { color: #adb5bd; cursor: not-allowed; }

/* ── Erledigen-Dialog ── */
.ctx-modal-backdrop[b-1u4x2kgmav] {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1010;
}

.ctx-confirm-dialog[b-1u4x2kgmav] {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1011;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,.2);
    width: 380px;
    max-width: 95vw;
    padding: 28px 28px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.ctx-confirm-icon[b-1u4x2kgmav] { font-size: 2rem; color: #f59e0b; }
.ctx-confirm-icon.complete-icon[b-1u4x2kgmav] { color: #16a34a; }
.ctx-confirm-title[b-1u4x2kgmav] { font-size: 1.1rem; font-weight: 700; color: #212529; }
.ctx-confirm-body[b-1u4x2kgmav]  { font-size: 0.88rem; color: #495057; line-height: 1.5; }
.ctx-confirm-hint[b-1u4x2kgmav]  { font-size: 0.76rem; color: #868e96; line-height: 1.4; }

.complete-note-input[b-1u4x2kgmav] {
    width: 100%;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 11px;
    font-size: 0.85rem;
    color: #212529;
    resize: vertical;
    font-family: inherit;
}
.complete-note-input:focus[b-1u4x2kgmav] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}

.ctx-confirm-actions[b-1u4x2kgmav] {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    width: 100%;
    justify-content: flex-end;
}

.btn-confirm-cancel[b-1u4x2kgmav] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 0.87rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.btn-confirm-cancel:hover[b-1u4x2kgmav] { background: #f1f3f5; }

.btn-confirm-complete[b-1u4x2kgmav] {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: #16a34a;
    color: #fff;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 0.87rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .1s;
}
.btn-confirm-complete:hover[b-1u4x2kgmav]    { background: #15803d; }
.btn-confirm-complete:disabled[b-1u4x2kgmav] { background: #86efac; cursor: not-allowed; }

/* ── Verlauf & Rückfragen (aufgabenbezogene Kommunikation) ── */
.task-comm[b-1u4x2kgmav] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
    padding-top: 1.25rem;
    border-top: 1px solid #e9ecef;
}

.task-comm-header[b-1u4x2kgmav] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.task-comm-title[b-1u4x2kgmav] {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-comm-files[b-1u4x2kgmav] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.task-file-chip[b-1u4x2kgmav] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.82rem;
    color: #334155;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.task-file-chip:hover[b-1u4x2kgmav] { background: #e7f1ff; border-color: #4c8dff; color: #1a56db; }
.task-file-name[b-1u4x2kgmav] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.task-file-size[b-1u4x2kgmav] { color: #94a3b8; font-size: 0.75rem; flex-shrink: 0; }

.task-comm-list[b-1u4x2kgmav] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-comm-empty[b-1u4x2kgmav] {
    font-size: 0.85rem;
    color: #868e96;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
}

.task-comment[b-1u4x2kgmav] {
    background: #f8f9fa;
    border: 1px solid #eceff1;
    border-radius: 8px;
    padding: 10px 14px;
}

.task-comment-head[b-1u4x2kgmav] {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: #495057;
    margin-bottom: 5px;
}
.task-comment-date[b-1u4x2kgmav] { color: #adb5bd; margin-left: auto; font-size: 0.78rem; }

.task-comment-body[b-1u4x2kgmav] {
    font-size: 0.9rem;
    color: #212529;
    white-space: pre-wrap;
    word-break: break-word;
}

.task-comm-add[b-1u4x2kgmav] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}
.task-comm-add .form-textarea[b-1u4x2kgmav] { width: 100%; min-height: 70px; }

/* ── Jira-Übergabe ── */
.jira-links[b-1u4x2kgmav] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 6px;
}

.jira-chip[b-1u4x2kgmav] {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    align-self: flex-start;
    background: #f8f9fa;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 7px 13px;
    font-size: 0.85rem;
    color: #495057;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.jira-chip:hover[b-1u4x2kgmav] { border-color: #4c8dff; background: #f0f5ff; }

.jira-key[b-1u4x2kgmav] {
    font-weight: 700;
    color: #1a56db;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

/* Eingefärbt nach Jira-Statuskategorie, nicht nach Statusname – der ist projektabhängig. */
.jira-status[b-1u4x2kgmav] {
    border-radius: 20px;
    padding: 1px 10px;
    font-size: 0.76rem;
    font-weight: 600;
}
.jira-status-new[b-1u4x2kgmav]           { background: #f1f3f5; color: #495057; }
.jira-status-indeterminate[b-1u4x2kgmav] { background: #dbeafe; color: #1d4ed8; }
.jira-status-done[b-1u4x2kgmav]          { background: #dcfce7; color: #15803d; }
.jira-status-unknown[b-1u4x2kgmav]       { background: #f1f3f5; color: #adb5bd; }

.jira-meta[b-1u4x2kgmav] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: #6c757d;
}
/* /Components/Tabs/TasksUebersicht.razor.rz.scp.css */
.tasks-view[b-2y5i6e2q3q] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0;
}

/* ── Rechtsklick-Kontextmenü ── */
.ctx-backdrop[b-2y5i6e2q3q] {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.ctx-menu[b-2y5i6e2q3q] {
    position: fixed;
    z-index: 1001;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
    min-width: 210px;
    padding: 6px 0;
    user-select: none;
}

.ctx-item[b-2y5i6e2q3q] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    padding: 7px 14px;
    font-size: 0.86rem;
    color: #212529;
    cursor: pointer;
    text-align: left;
    transition: background .1s;
}
.ctx-item:hover[b-2y5i6e2q3q] { background: #f1f3f5; }
.ctx-item:disabled[b-2y5i6e2q3q] { opacity: .45; cursor: default; background: none; }

.ctx-divider[b-2y5i6e2q3q] {
    height: 1px;
    background: #e9ecef;
    margin: 4px 0;
}

.ctx-selection-info[b-2y5i6e2q3q] {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #3b82f6;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2px;
}

.ctx-item-danger[b-2y5i6e2q3q]        { color: #dc2626; }
.ctx-item-danger:hover[b-2y5i6e2q3q]  { background: #fff5f5; color: #b91c1c; }

/* Bestätigungs-/Erledigen-Dialog */
.ctx-modal-backdrop[b-2y5i6e2q3q] {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1010;
}

.ctx-confirm-dialog[b-2y5i6e2q3q] {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1011;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,.2);
    width: 380px;
    max-width: 95vw;
    padding: 28px 28px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.ctx-confirm-icon[b-2y5i6e2q3q] { font-size: 2rem; color: #f59e0b; }
.ctx-confirm-icon.complete-icon[b-2y5i6e2q3q] { color: #16a34a; }
.ctx-confirm-title[b-2y5i6e2q3q] { font-size: 1.1rem; font-weight: 700; color: #212529; }
.ctx-confirm-body[b-2y5i6e2q3q]  { font-size: 0.88rem; color: #495057; line-height: 1.5; }

.complete-note-input[b-2y5i6e2q3q] {
    width: 100%;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 11px;
    font-size: 0.85rem;
    color: #212529;
    resize: vertical;
    font-family: inherit;
}
.complete-note-input:focus[b-2y5i6e2q3q] {
    outline: none;
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76,141,255,.15);
}

.ctx-confirm-actions[b-2y5i6e2q3q] {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    width: 100%;
    justify-content: flex-end;
}

.btn-confirm-cancel[b-2y5i6e2q3q] {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 0.87rem;
    cursor: pointer;
    color: #495057;
    transition: background .1s;
}
.btn-confirm-cancel:hover[b-2y5i6e2q3q] { background: #f1f3f5; }

.btn-confirm-delete[b-2y5i6e2q3q] {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: #dc2626;
    color: #fff;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 0.87rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .1s;
}
.btn-confirm-delete:hover[b-2y5i6e2q3q] { background: #b91c1c; }

.btn-confirm-complete[b-2y5i6e2q3q] {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: #16a34a;
    color: #fff;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 0.87rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .1s;
}
.btn-confirm-complete:hover[b-2y5i6e2q3q] { background: #15803d; }

/* ── Header ── */
.tasks-header[b-2y5i6e2q3q] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.tasks-title[b-2y5i6e2q3q] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 9px;
}

.btn-new-task[b-2y5i6e2q3q] {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.btn-new-task:hover[b-2y5i6e2q3q] { background: #1648c0; }

/* ── Suchleiste ── */
.tasks-search-wrap[b-2y5i6e2q3q] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.6rem 0 0.5rem 0;
    flex-shrink: 0;
}
.search-bar[b-2y5i6e2q3q] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 7px 13px;
    min-width: 340px;
    transition: border-color .2s, box-shadow .2s;
}

.search-bar.focused[b-2y5i6e2q3q] {
    border-color: #4c8dff;
    box-shadow: 0 0 0 3px rgba(76, 141, 255, .15);
}

.search-icon[b-2y5i6e2q3q] { color: #adb5bd; flex-shrink: 0; }

.search-input[b-2y5i6e2q3q] {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.875rem;
    background: transparent;
    color: #212529;
}

.btn-search-clear[b-2y5i6e2q3q] {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #adb5bd;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: color .15s;
}
.btn-search-clear:hover[b-2y5i6e2q3q] { color: #6c757d; }

.filter-toggle[b-2y5i6e2q3q] { flex-shrink: 0; }

.btn-filter[b-2y5i6e2q3q] {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.83rem;
    color: #495057;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.btn-filter:hover[b-2y5i6e2q3q] { border-color: #adb5bd; }
.btn-filter.active[b-2y5i6e2q3q] {
    background: #e7f1ff;
    border-color: #4c8dff;
    color: #1a56db;
    font-weight: 600;
}

/* ── Tabelle ── */
.tasks-table-wrap[b-2y5i6e2q3q] {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.tasks-table[b-2y5i6e2q3q] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.tasks-table tbody[b-2y5i6e2q3q] {
    user-select: none;
    -webkit-user-select: none;
}

.tasks-table thead[b-2y5i6e2q3q] {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 2;
}

.tasks-table th[b-2y5i6e2q3q] {
    padding: 9px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.th-status[b-2y5i6e2q3q] { width: 40px; }
.th-sort[b-2y5i6e2q3q] { cursor: pointer; user-select: none; }
.th-sort:hover[b-2y5i6e2q3q] { background: #e9ecef; color: #343a40; }
.th-sort.is-sorted[b-2y5i6e2q3q] { color: #4c8dff; }
.th-action[b-2y5i6e2q3q] { width: 44px; }
.sort-hint[b-2y5i6e2q3q] { opacity: 0.3; }

.tasks-table td[b-2y5i6e2q3q] {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
    color: #495057;
}

.tasks-row[b-2y5i6e2q3q] { cursor: pointer; }
.tasks-row:hover td[b-2y5i6e2q3q] { background: #f0f4ff; }
.tasks-row:hover .btn-open-tab[b-2y5i6e2q3q] { opacity: 1; }
.tasks-row.row-selected td[b-2y5i6e2q3q] { background: #dbeafe !important; }
.tasks-row.row-selected:hover td[b-2y5i6e2q3q] { background: #bfdbfe !important; }
.tasks-row.row-completed .title-text[b-2y5i6e2q3q] { text-decoration: line-through; color: #adb5bd; }
.tasks-row.row-completed td[b-2y5i6e2q3q] { color: #adb5bd; }

/* ── Status ── */
.td-status[b-2y5i6e2q3q] { text-align: center; width: 40px; }
.status-badge[b-2y5i6e2q3q] { display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.status-badge.open[b-2y5i6e2q3q]    { color: #adb5bd; }
.status-badge.done[b-2y5i6e2q3q]    { color: #16a34a; }
.status-badge.overdue[b-2y5i6e2q3q] { color: #dc2626; }

/* ── Titel ── */
.td-title[b-2y5i6e2q3q] { min-width: 220px; max-width: 340px; }
.title-text[b-2y5i6e2q3q] { display: block; font-weight: 500; color: #212529; }
.title-desc[b-2y5i6e2q3q] {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #868e96;
    font-size: 0.8rem;
    margin-top: 2px;
}

/* ── Fälligkeitsdatum ── */
.td-duedate[b-2y5i6e2q3q] { white-space: nowrap; }
.duedate-overdue[b-2y5i6e2q3q] { color: #dc2626; font-weight: 600; }

/* ── Priorität ── */
.td-priority[b-2y5i6e2q3q] { white-space: nowrap; }
.prio-badge[b-2y5i6e2q3q] {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}
.prio-badge.prio-low[b-2y5i6e2q3q]     { background: #f1f3f5; color: #6c757d; }
.prio-badge.prio-normal[b-2y5i6e2q3q]  { background: #dbeafe; color: #1d4ed8; }
.prio-badge.prio-medium[b-2y5i6e2q3q]  { background: #fef3c7; color: #92400e; }
.prio-badge.prio-high[b-2y5i6e2q3q]    { background: #fed7aa; color: #c2410c; }
.prio-badge.prio-highest[b-2y5i6e2q3q] { background: #fecaca; color: #b91c1c; }

/* ── Zugewiesen an ── */
.td-assigned[b-2y5i6e2q3q] { white-space: nowrap; }

/* ── Case ── */
.td-case[b-2y5i6e2q3q] { white-space: nowrap; }
.case-badge[b-2y5i6e2q3q] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #495057;
    font-size: 0.82rem;
    font-weight: 500;
}
.case-none[b-2y5i6e2q3q] { color: #ced4da; }

/* ── Erstellt ── */
.td-created[b-2y5i6e2q3q] { white-space: nowrap; }
.date-main[b-2y5i6e2q3q] { display: block; font-weight: 500; color: #212529; }
.date-by[b-2y5i6e2q3q] { display: block; color: #adb5bd; font-size: 0.78rem; }

/* ── Öffnen-Button ── */
.td-action[b-2y5i6e2q3q] { width: 44px; text-align: center; }

.btn-open-tab[b-2y5i6e2q3q] {
    border: none;
    background: transparent;
    color: #4c8dff;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 3px 5px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity .15s, background .15s;
    display: inline-flex;
    align-items: center;
}
.btn-open-tab:hover[b-2y5i6e2q3q] { background: #dbeafe; }

/* ── Loading / Empty ── */
.td-loading[b-2y5i6e2q3q], .td-empty[b-2y5i6e2q3q] {
    text-align: center;
    padding: 2rem !important;
    color: #6c757d;
    font-size: 0.875rem;
}

/* ── Jira-Spalte ── */
.td-jira[b-2y5i6e2q3q] { white-space: nowrap; }

.jira-badge[b-2y5i6e2q3q] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.jira-badge:hover .jira-badge-key[b-2y5i6e2q3q] { text-decoration: underline; }

.jira-badge-key[b-2y5i6e2q3q] {
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a56db;
}

/* Nach Statuskategorie eingefärbt – der Statusname selbst ist projektabhängig. */
.jira-badge-status[b-2y5i6e2q3q] {
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 0.72rem;
    font-weight: 600;
}
.jira-badge-new[b-2y5i6e2q3q]           { background: #f1f3f5; color: #495057; }
.jira-badge-indeterminate[b-2y5i6e2q3q] { background: #dbeafe; color: #1d4ed8; }
.jira-badge-done[b-2y5i6e2q3q]          { background: #dcfce7; color: #15803d; }
.jira-badge-unknown[b-2y5i6e2q3q]       { background: #f1f3f5; color: #adb5bd; }
/* /Components/Tabs/TechnikDashboard.razor.rz.scp.css */
.cases-view[b-iormymk7on] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0;
}

/* ── Header ── */
.cases-header[b-iormymk7on] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.cases-title[b-iormymk7on] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 9px;
}

.btn-new-case[b-iormymk7on] {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.btn-new-case:hover[b-iormymk7on] { background: #1648c0; }

/* ── Suchleiste ── */
.cases-search-wrap[b-iormymk7on] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.6rem 0 0.5rem 0;
    flex-shrink: 0;
}
/* search-bar, filter-bar, btn-filter (Grundform) sind zentral in wwwroot/css/crm-theme.css definiert */

/* ── Status-Filter-Chips (aktiver Zustand je Status) ── */
.btn-filter.status-st-new.active[b-iormymk7on]      { background: var(--casestatus-new);      border-color: var(--casestatus-new); }
.btn-filter.status-st-progress.active[b-iormymk7on] { background: var(--casestatus-progress); border-color: var(--casestatus-progress); }
.btn-filter.status-st-waiting.active[b-iormymk7on]  { background: var(--casestatus-waiting);  border-color: var(--casestatus-waiting); }
.btn-filter.status-st-hold.active[b-iormymk7on]     { background: var(--casestatus-hold);     border-color: var(--casestatus-hold); }
.btn-filter.status-st-closed.active[b-iormymk7on]   { background: var(--casestatus-closed);   border-color: var(--casestatus-closed); }
.btn-filter.status-st-rejected.active[b-iormymk7on] { background: var(--casestatus-rejected); border-color: var(--casestatus-rejected); }

/* ── Tabelle ── */
.cases-table-wrap[b-iormymk7on] {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.cases-table[b-iormymk7on] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.cases-table thead[b-iormymk7on] {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 2;
}

.cases-table th[b-iormymk7on] {
    padding: 9px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.th-status[b-iormymk7on] { width: 34px; }
.th-sort[b-iormymk7on] { cursor: pointer; user-select: none; }
.th-sort:hover[b-iormymk7on] { background: #e9ecef; color: #343a40; }
.th-sort.is-sorted[b-iormymk7on] { color: #4c8dff; }
.th-action[b-iormymk7on] { width: 44px; }
.sort-hint[b-iormymk7on] { opacity: 0.3; }

.cases-table td[b-iormymk7on] {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
    color: #495057;
}

.cases-row[b-iormymk7on] { cursor: pointer; }
.cases-row:hover td[b-iormymk7on] { background: #f0f4ff; }
.cases-row:hover .btn-open-tab[b-iormymk7on] { opacity: 1; }
.cases-row.row-closed .subject-text[b-iormymk7on] { color: #adb5bd; }
.cases-row.row-closed td[b-iormymk7on] { color: #adb5bd; }

/* ── Status-Dot ── */
.td-status[b-iormymk7on] { text-align: center; width: 34px; }
.status-dot[b-iormymk7on] {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #adb5bd;
}
.status-dot.st-new[b-iormymk7on]      { background: #3b82f6; }
.status-dot.st-progress[b-iormymk7on] { background: #f59e0b; }
.status-dot.st-waiting[b-iormymk7on]  { background: #a855f7; }
.status-dot.st-hold[b-iormymk7on]     { background: #94a3b8; }
.status-dot.st-closed[b-iormymk7on]   { background: #16a34a; }
.status-dot.st-rejected[b-iormymk7on] { background: #dc2626; }

/* ── Vorgangs-Nr ── */
.td-casenr[b-iormymk7on] { white-space: nowrap; font-weight: 600; color: #1a56db; }

/* ── Betreff ── */
.td-subject[b-iormymk7on] { min-width: 220px; max-width: 360px; }
.subject-text[b-iormymk7on] { display: block; font-weight: 500; color: #212529; }
.subject-status[b-iormymk7on] {
    display: block;
    color: #868e96;
    font-size: 0.78rem;
    margin-top: 2px;
}

/* ── Kunde ── */
.td-kunde[b-iormymk7on] { min-width: 150px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Tags ── */
.td-tags[b-iormymk7on] { min-width: 120px; max-width: 220px; }
/* Chip-Optik liegt in TagChip.razor.css – die Farbe kommt je Tag aus TagPalette. */
.td-tags[b-iormymk7on]  .tagchip { margin: 1px 3px 1px 0; }
.tag-empty[b-iormymk7on] { color: #ced4da; }

/* ── Priorität ── */
.td-priority[b-iormymk7on] { white-space: nowrap; }
.prio-badge[b-iormymk7on] {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}
.prio-badge.prio-low[b-iormymk7on]     { background: #f1f3f5; color: #6c757d; }
.prio-badge.prio-normal[b-iormymk7on]  { background: #dbeafe; color: #1d4ed8; }
.prio-badge.prio-medium[b-iormymk7on]  { background: #fef3c7; color: #92400e; }
.prio-badge.prio-high[b-iormymk7on]    { background: #fed7aa; color: #c2410c; }
.prio-badge.prio-highest[b-iormymk7on] { background: #fecaca; color: #b91c1c; }

/* ── Zuständig ── */
.td-assigned[b-iormymk7on] { white-space: nowrap; }

/* ── Erstellt ── */
.td-created[b-iormymk7on] { white-space: nowrap; }
.date-main[b-iormymk7on] { display: block; font-weight: 500; color: #212529; }
.date-by[b-iormymk7on] { display: block; color: #adb5bd; font-size: 0.78rem; }

/* ── Öffnen-Button ── */
.td-action[b-iormymk7on] { width: 44px; text-align: center; }
.btn-open-tab[b-iormymk7on] {
    border: none;
    background: transparent;
    color: #4c8dff;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 3px 5px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity .15s, background .15s;
    display: inline-flex;
    align-items: center;
}
.btn-open-tab:hover[b-iormymk7on] { background: #dbeafe; }

/* ── Loading / Empty ── */
.td-loading[b-iormymk7on], .td-empty[b-iormymk7on] {
    text-align: center;
    padding: 2rem !important;
    color: #6c757d;
    font-size: 0.875rem;
}

/* ── Jira-Spalte ── Optik bewusst identisch zum TaskEditor, damit Jira-Chips
   im ganzen CRM gleich aussehen. */
.th-jira[b-iormymk7on] { min-width: 150px; }
.td-jira[b-iormymk7on] { min-width: 150px; max-width: 260px; }
.jira-empty[b-iormymk7on] { color: #adb5bd; }

.jira-chip[b-iormymk7on] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 1px 4px 1px 0;
    background: #f8f9fa;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 0.78rem;
    color: #495057;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.jira-chip:hover[b-iormymk7on] { border-color: #4c8dff; background: #f0f5ff; }

.jira-key[b-iormymk7on] {
    font-weight: 700;
    color: #1a56db;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

/* Eingefärbt nach Jira-Statuskategorie, nicht nach Statusname – der ist projektabhängig. */
.jira-status[b-iormymk7on] {
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 0.72rem;
    font-weight: 600;
}
.jira-status-new[b-iormymk7on]           { background: #f1f3f5; color: #495057; }
.jira-status-indeterminate[b-iormymk7on] { background: #dbeafe; color: #1d4ed8; }
.jira-status-done[b-iormymk7on]          { background: #dcfce7; color: #15803d; }
.jira-status-unknown[b-iormymk7on]       { background: #f1f3f5; color: #adb5bd; }

.jira-more[b-iormymk7on] {
    font-size: 0.76rem;
    font-weight: 600;
    color: #6c757d;
}
