/* ══════════════════════════════════════════════════════
   Talk2Form Admin CSS - Extracted from mockup
   ══════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES (from mockup) ─── */
:root {
    --dark-bg: #0f172a;
    --primary: #3b82f6;
    --border: #e2e8f0;
    --radius: 14px;
    --text-dark: #1a202c;
    --text-muted: #94a3b8;
    --text-muted-2: #64748b;
    --success-bg: #dcfce7;
    --success-text: #15803d;
    --pending-bg: #fef3c7;
    --pending-text: #92400e;
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;
    --danger: #ef4444;
    --gray-bg: #f1f5f9;
    --gray-text: #475569;
    --purple-bg: #ede9fe;
    --purple-text: #6d28d9;
    --blue-bg: #dbeafe;
    --blue-text: #1d4ed8;
    --orange-text: #c2410c;
}

/* ─── APP FRAME ───
   Mirrors mockup .admin-shell: inset shell with rounded corners and shadow
   instead of an edge-to-edge frame, applied globally to all PlatformAdmin pages. */
.admin-frame {
    display: flex;
    width: 100%;
    max-width: 1320px;
    margin: 24px auto;
    min-height: calc(100vh - 48px);
    background: #f8fafc;
    color: #1a202c;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18);
}

/* PWA top safe area (installed/standalone mode only). Mirrors the .app-container rule in
   mobile-design.css so TenantAdmin pages (which use AdminLayout instead of MainLayout)
   also clear the iOS/Android status bar when installed as a PWA. */
@media (display-mode: standalone) {
    .admin-frame {
        margin-top: calc(24px + env(safe-area-inset-top, 0px));
    }
}

/* ─── SIDEBAR ─── */
.sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 22px;
    font-size: 17px;
    font-weight: 800;
    color: #e2e8f0;
    letter-spacing: -0.3px;
}

.sidebar-brand span {
    color: #3b82f6;
}

.sidebar-section-label {
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 10px 6px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    margin-bottom: 2px;
    text-decoration: none;
}

.sidebar-item .ic {
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.sidebar-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.sidebar-item:hover {
    background: rgba(59, 130, 246, 0.08);
}

.sidebar-footer {
    margin-top: auto;
    padding: 12px 10px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #475569;
}

.sidebar-footer img {
    height: 14px;
    opacity: 0.7;
}

/* ─── MAIN AREA ─── */
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.topbar-title {
    font-size: 19px;
    font-weight: 700;
    color: #1a202c;
}

.topbar-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Content topbar (from mockup) */
.content-topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a202c;
}

.page-subtitle {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 2px;
}

.topbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-primary-lg {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 11px 18px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary-lg:hover {
    background: #2563eb;
}

/* DEACTIVATED: Conflicting with mockup-based .btn-outline-sm */
/*
.btn-outline-sm {
    background: #fff;
    color: #3b82f6;
    border: 2px solid #bfdbfe;
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-outline-sm:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}
*/

.content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 22px 28px 28px;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

.content-scroll::-webkit-scrollbar {
    width: 5px;
}

.content-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.content-scroll::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}

/* ─── SEARCH & FILTERS ─── */
.search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.search-input {
    flex: 1;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #1a202c;
}

.search-input::placeholder {
    color: #94a3b8;
}

.filter-select {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #1a202c;
    cursor: pointer;
    min-width: 140px;
}

/* ─── TABLE ─── */
.data-table {
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.data-table td {
    padding: 13px 16px;
    font-size: 13px;
    color: #1a202c;
    border-bottom: 1px solid #f1f5f9;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: #f8fafc;
}

.row-with-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.seat-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #bfdbfe, #93c5fd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #1d4ed8;
    flex-shrink: 0;
}

.tenant-name {
    font-weight: 700;
}

.tenant-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.row-action {
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
}

.row-action:hover {
    color: #64748b;
}

/* ─── BADGES & PILLS ─── */
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.plan-solo {
    background: #f1f5f9;
    color: #475569;
}

.plan-team {
    background: #dbeafe;
    color: #1d4ed8;
}

.plan-business {
    background: #ede9fe;
    color: #6d28d9;
}

.status-pill-sm {
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}

.st-active {
    background: #dcfce7;
    color: #15803d;
}

.st-trial {
    background: #fef3c7;
    color: #92400e;
}

.st-suspended {
    background: #fee2e2;
    color: #991b1b;
}

/* ─── SEAT BAR ─── */
.seat-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.seat-bar {
    width: 60px;
    height: 5px;
    border-radius: 4px;
    background: #e2e8f0;
    overflow: hidden;
}

.seat-bar-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 4px;
}

/* ─── TABS ─── */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.tab {
    padding: 10px 4px;
    margin-right: 22px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab:hover {
    color: #64748b;
}

/* "NEU"-Hinweis an einem Tab (z. B. Tenant-Detail "Export-Mapping"); Farben wie .founding-badge */
.tab-new-badge {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .05em;
    color: #fff;
    background: #92400e;
    padding: 2px 6px;
    border-radius: 20px;
    margin-left: 5px;
    vertical-align: 1px;
}

/* ─── DETAIL CARDS ─── (OLD - replaced by mockup styles below) */
/* 
.tenant-detail-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tenant-detail-name {
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
}

.tenant-detail-meta {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}
*/

/* ─── SEAT CARDS ─── */
.seat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.seat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #bfdbfe, #93c5fd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8;
}

.seat-info {
    flex: 1;
}

.seat-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #1a202c;
}

.seat-role {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 2px;
}

/* ─── PLAN VERSION CARDS ─── */
.plan-version-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 14px;
}

.plan-version-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.plan-version-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a202c;
}

.plan-version-sub {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.5;
}

.founding-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 20px;
}

/* ─── PLAN CATALOG ─── */
.plan-catalog-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.plan-catalog-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.plan-catalog-name {
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
}

.plan-catalog-sub {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 10px;
}

.plan-catalog-tenants {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

/* ─── VERSION TABLE ─── */
.version-table {
    width: 100%;
    border-collapse: collapse;
}

.version-table th {
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.version-table td {
    padding: 10px 0;
    font-size: 12.5px;
    color: #1a202c;
    border-bottom: 1px solid #f8fafc;
}

.version-table tr:last-child td {
    border-bottom: none;
}

.version-current {
    background: #f8fafc;
}

.version-name {
    font-weight: 700;
    color: #3b82f6;
}

/* ─── ADDON CARDS ─── */
.addon-catalog-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.addon-catalog-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.addon-catalog-info {
    flex: 1;
}

.addon-catalog-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 4px;
}

.addon-catalog-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 10px;
}

.addon-catalog-meta {
    display: flex;
    gap: 18px;
    font-size: 11px;
    color: #94a3b8;
}

.addon-catalog-price {
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 2px;
}

.feature-key-tag {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 4px;
}

/* ─── LICENSE GRID ─── */
.license-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

.license-col-main {
    min-width: 0;
}

.license-col-side {
    min-width: 0;
}

/* ─── FEATURE-QUOTA TABLE ─── */
.feature-quota-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12.5px;
}

.feature-quota-item:last-child {
    border-bottom: none;
}

.feature-quota-name {
    font-weight: 600;
    color: #1a202c;
}

.feature-quota-value {
    font-size: 12px;
    color: #64748b;
}

/* ─── STAT CARDS (Übersicht Tab) ─── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-top: 0.5rem;
}

.stat-value-small {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.stat-delta {
    margin-top: 0.5rem;
    font-size: 12px;
    font-weight: 600;
}

.stat-delta.positive {
    color: #10b981;
}

.stat-delta.negative {
    color: #ef4444;
}

/* Skeleton loader für Stats */
.skeleton-text {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Status Pills */
.pill-active {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: #dcfce7;
    color: #166534;
}

.pill-paused {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: #fef3c7;
    color: #92400e;
}

.pill-gray {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

/* ─── TABLE CARD & FILTER TABS ─── */
.table-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.filter-tabs {
    display: flex;
    gap: 0;
    padding: 1rem 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.filter-tab {
    padding: 0.625rem 1rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.filter-tab:hover {
    color: #3b82f6;
}

.filter-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.table-search-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    gap: 1rem;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input-wrap .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.search-input-wrap .search-input {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}

.search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.search-clear:hover {
    background: #f1f5f9;
    color: #475569;
}

.search-result-count {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

/* ─── TENANT CELL ─── */
.tenant-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tenant-cell-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.tenant-cell-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
}

.tenant-cell-domain {
    font-size: 12px;
    color: #64748b;
}

/* ─── STATUS PILLS (in table) ─── */
.status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* ─── VERSION LABEL BADGE (Tarifstufen-Tabelle, Teil B) ─── */
.version-label-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

/* ─── ROW ACTIONS ─── */
.row-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.row-action {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.row-action:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

/* ─── INFO CARD ─── */
.info-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
}

/* ─── DOCX TEMPLATE CARDS ─── */
.docx-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.docx-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.docx-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.docx-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.docx-meta {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.docx-description {
    font-size: 13px;
    color: #475569;
    margin-top: 0.5rem;
}

.docx-status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.docx-status-badge.status-active {
    background: #d1fae5;
    color: #065f46;
}

.docx-status-badge.status-inactive {
    background: #f1f5f9;
    color: #64748b;
}

.docx-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.docx-date {
    font-size: 12px;
    color: #94a3b8;
}

.docx-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-link {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-link:hover {
    background: #eff6ff;
    color: #2563eb;
}

.btn-primary-sm, .btn-outline-sm {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* DEACTIVATED: Incomplete button rules, replaced by mockup-based rules below */
/*
.btn-primary-sm {
    background: #3b82f6;
    color: white;
}

.btn-primary-sm:hover {
    background: #2563eb;
}

.btn-outline-sm {
    background: white;
    border-color: #cbd5e1;
    color: #475569;
}

.btn-outline-sm:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}
*/

/* ─── ADDON CARDS (für FormTemplates im Formulare-Tab) ─── */
/* DEACTIVATED: Conflicting with mockup-based .addon-card (line 1380+) */
/*
.addon-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: border-color 0.15s;
}

.addon-card:hover {
    border-color: #cbd5e1;
}
*/

/* DEACTIVATED: Old .addon-icon with wrong size (42px vs mockup 36px) */
/*
.addon-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.addon-info {
    flex: 1;
    min-width: 0;
}
*/

.addon-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.addon-price {
    font-size: 12px;
    color: #64748b;
}

/* ─── LIST HEADER ─── */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.list-header-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

/* ─── MODAL ───
   Hinweis: display darf hier NICHT gesetzt werden (kein "display:none" +
   ".open"-Gate mehr), da app.css .modal-overlay bereits display:flex setzt
   und diese Datei nach app.css geladen wird (siehe index.html). Ein erneutes
   "display:none" hier würde jeden .modal-overlay ohne literales "open"-Klassen-
   Suffix unsichtbar machen (Root Cause des verschwundenen Löschdialogs in
   Reports.razor). Admin-Modale funktionieren unverändert weiter, da sie
   statisch "modal-overlay open" im Markup verwenden. */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 20px;
}

.modal-card {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-head {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.modal-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #1a202c;
}

.modal-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 3px;
}

.modal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.modal-actions {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

/* ─── FIELD GROUP ─── */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label-sm {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.field-input {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13.5px;
    color: #1a202c;
    width: 100%;
    background: #fff;
}

.field-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.field-static {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13.5px;
    color: #1a202c;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.field-static-tag {
    font-size: 10.5px;
    color: #94a3b8;
}

/* ─── DOC CHOICE ROW ─── */
.doc-choice-row {
    display: flex;
    gap: 10px;
}

.doc-choice-card {
    flex: 1;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.15s;
}

.doc-choice-card:hover {
    border-color: #cbd5e1;
}

.doc-choice-card.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.doc-choice-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 3px;
}

.doc-choice-sub {
    font-size: 11px;
    color: #94a3b8;
}

/* ─── UPLOAD DROPZONE ─── */
.upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    color: #94a3b8;
    font-size: 12.5px;
    cursor: pointer;
    display: block;
    transition: border-color 0.15s, background 0.15s;
}

.upload-dropzone:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.upload-dropzone strong {
    color: #3b82f6;
    font-weight: 700;
}

.upload-filename {
    font-size: 12px;
    color: #1a202c;
    font-weight: 600;
    margin-top: 8px;
}

/* ─── CHECKBOX ROW ─── */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ─── FORM HINT ─── */
.form-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 10px;
    line-height: 1.6;
}

/* ─── TENANT DETAIL CARDS ─── */
/* ─── INFO GRID (Stammdaten) ─── */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.info-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}

.info-value {
    font-size: 13.5px;
    color: #1a202c;
    font-weight: 600;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
}

/* ─── STAT GRID (Benutzer & Lizenzierung) ─── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 14px;
}

.stat-value {
    font-size: 21px;
    font-weight: 800;
    color: #1a202c;
}

.stat-label {
    font-size: 10.5px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 2px;
}

.banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
}

.banner-warn {
    background: #fef3c7;
    color: #92400e;
}

.banner-ok {
    background: #dcfce7;
    color: #15803d;
}

/* ─── LIST ROWS (Features / Add-ons / Formulare) ─── */
.addon-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.addon-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.addon-info {
    flex: 1;
    min-width: 0;
}

.addon-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 7px;
}

.addon-price {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 1px;
}

.action-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.list-header-label {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ─── DOCX TEMPLATE ROWS ─── */
.doc-row {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.doc-row.archived {
    opacity: 0.65;
}

.doc-row-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.doc-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.doc-info {
    flex: 1;
    min-width: 0;
}

.doc-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 6px;
}

.doc-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 1px;
}

.version-badge {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 8px;
}

.doc-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    margin-left: 48px;
    flex-wrap: wrap;
}

.btn-danger-outline {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #fecaca;
    background: #fff;
    color: #dc2626;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.btn-danger-outline:hover {
    background: #fef2f2;
}

/* ═══════════════════════════════════════════════════════════════════
   TENANT DETAIL - MOCKUP STYLES (AUTHORITATIVE)
   Based on: tenant-detail-interaktiv-mockup.html
   ═══════════════════════════════════════════════════════════════════ */

/* ─── DETAIL HEADER ─── */
.tenant-detail-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 18px 20px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.tenant-detail-name { font-size: 17px; font-weight: 700; color: #1a202c; }
.tenant-detail-meta { font-size: 12px; color: #94a3b8; margin-top: 4px; }

.plan-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.plan-business { background: #ede9fe; color: #6d28d9; }
.plan-startup { background: #dbeafe; color: #1e40af; }
.plan-enterprise { background: #fee2e2; color: #991b1b; }

.status-pill-sm { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.st-active { background: #dcfce7; color: #15803d; }
.st-warn { background: #fef3c7; color: #92400e; }
.st-muted { background: #f1f5f9; color: #64748b; }

.founding-badge { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: #fef3c7; color: #92400e; }

/* NOTE: .tabs and .tab rules already defined at line 359-379 */

/* ─── GENERIC CARD ─── */
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; }
.card-title { font-size: 12px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }

/* NOTE: .info-grid, .info-label, .info-value, .mono already defined at line 1105-1129 */

/* NOTE: .stat-grid, .stat-value, .stat-label already defined at line 1132-1151 */

/* NOTE: .banner, .banner-warn, .banner-ok already defined at line 1153-1171 */

/* NOTE: .addon-card, .addon-icon, .addon-info, .addon-name, .addon-price already defined at line 1186-1230 */

.btn-outline-sm { padding: 8px 14px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; color: #475569; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn-primary-sm { padding: 8px 14px; border-radius: 10px; border: none; background: #3b82f6; color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn-danger-text { background: none; border: none; color: #dc2626; font-size: 12px; font-weight: 600; cursor: pointer; }

.action-row { display: flex; gap: 8px; margin-top: 4px; }

.form-hint { font-size: 11px; color: #94a3b8; margin-top: 10px; line-height: 1.6; }
.list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.list-header-label { font-size: 12px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; }

/* NOTE: Modal rules (.modal-overlay, .modal-card, .modal-head, .modal-title, .modal-sub, .modal-body, .modal-actions) already defined at line 891+ with position: fixed (correct for Blazor) */

.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-label-sm { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; }
.field-input { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; color: #1a202c; width: 100%; background: #fff; }
.field-static { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; color: #1a202c; background: #f8fafc; display: flex; align-items: center; justify-content: space-between; }
.field-static-tag { font-size: 10.5px; color: #94a3b8; }

.doc-choice-row { display: flex; gap: 10px; }
.doc-choice-card { flex: 1; border: 2px solid #e2e8f0; border-radius: 14px; padding: 14px; cursor: pointer; }
.doc-choice-card.selected { border-color: #3b82f6; background: #eff6ff; }
.doc-choice-title { font-size: 12.5px; font-weight: 700; color: #1a202c; margin-bottom: 3px; }
.doc-choice-sub { font-size: 11px; color: #94a3b8; }

.upload-dropzone {
  border: 2px dashed #cbd5e1; border-radius: 12px; padding: 22px;
  text-align: center; color: #94a3b8; font-size: 12.5px; cursor: pointer; display: block;
  transition: border-color .15s, background .15s;
}
.upload-dropzone:hover { border-color: #93c5fd; background: #f8fafc; }
.upload-dropzone strong { color: #3b82f6; font-weight: 700; }
.upload-filename { font-size: 12px; color: #1a202c; font-weight: 600; margin-top: 8px; }

.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #475569; font-weight: 600; }

/* NOTE: .doc-row base rule already defined at line 1247+; child rules below are authoritative */

/* ─── DOCX-VORLAGEN LISTE ─── */
.doc-row.archived { opacity: 0.65; }
.doc-row-top { display: flex; align-items: center; gap: 12px; }
.doc-icon { width: 36px; height: 36px; border-radius: 10px; background: #f1f5f9; color: #64748b; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-size: 12.5px; font-weight: 700; color: #1a202c; display: flex; align-items: center; gap: 6px; }
.doc-meta { font-size: 11px; color: #94a3b8; margin-top: 1px; }
.version-badge { font-size: 10px; font-weight: 700; color: #64748b; background: #f1f5f9; padding: 2px 7px; border-radius: 8px; }
.doc-actions { display: flex; gap: 8px; margin-top: 10px; margin-left: 48px; flex-wrap: wrap; }
.btn-danger-outline { padding: 8px 14px; border-radius: 10px; border: 1px solid #fecaca; background: #fff; color: #dc2626; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }

/* ─── SEAT BAR (Progress) ─── */
.seat-bar-wrap { margin-top: 14px; }
.seat-text { display: flex; justify-content: space-between; font-size: 11.5px; color: #64748b; font-weight: 600; margin-bottom: 6px; }
.seat-bar { height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.seat-bar-fill { height: 100%; background: #3b82f6; border-radius: 4px; transition: width 0.3s ease; }

/* ─── MITARBEITER TAB (Tenant-Detail) ─── */
.employee-cell { display: flex; align-items: center; gap: 10px; }
.avatar-circle {
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    flex-shrink: 0;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 11.5px; 
    font-weight: 700; 
    color: #fff;
    background: #64748b;
}
.employee-name { font-weight: 700; font-size: 12.5px; color: #1a202c; }
.employee-email { font-size: 11px; color: #94a3b8; margin-top: 1px; }

.role-badge { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.role-admin { background: #ede9fe; color: #6d28d9; }
.role-office { background: #dbeafe; color: #1d4ed8; }
.role-technician { background: #dcfce7; color: #15803d; }

.licensed-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #475569; }
.licensed-dot .dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-yes { background: #22c55e; }
.dot-no { background: #cbd5e1; }

.table-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ─── LIZENZZUORDNUNG MODAL (Phase 6, Schritt 4.2/4.3) ─── */
.license-progress-row { display: flex; gap: 10px; flex-wrap: wrap; }
.license-progress-card { flex: 1; min-width: 150px; background: #f8fafc; border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.license-progress-card .n { font-size: 18px; font-weight: 800; color: var(--text-dark); }
.license-progress-card .l { font-size: 10.5px; font-weight: 700; color: var(--text-muted-2); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }
.license-progress-card.ok { border-color: #86efac; background: #f0fdf4; }
.license-progress-card.ok .n { color: var(--success-text); }

.license-row { display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; flex-wrap: wrap; }
.license-row-left { display: flex; align-items: center; gap: 12px; min-width: 170px; }
.license-row-meta { font-size: 11px; color: var(--text-muted-2); margin-top: 1px; }

.segmented-control { display: flex; gap: 6px; flex: 1; min-width: 320px; }
.segmented-option { flex: 1; text-align: center; padding: 9px 8px; border-radius: 9px; border: 1.5px solid var(--border); font-size: 11.5px; font-weight: 700; cursor: pointer; color: var(--text-muted-2); line-height: 1.35; }
.segmented-option.selected-included { background: var(--success-bg); color: var(--success-text); border-color: #86efac; }
.segmented-option.selected-additional { background: var(--blue-bg); color: var(--blue-text); border-color: #93c5fd; }
.segmented-option.selected-removed { background: var(--danger-bg); color: var(--danger-text); border-color: #fca5a5; }
.segmented-option.disabled-opt { opacity: 0.4; cursor: not-allowed; }

.alert-error { display: flex; align-items: flex-start; gap: 10px; background: var(--danger-bg); border: 1.5px solid #fca5a5; border-radius: 10px; padding: 12px 14px; font-size: 12.5px; color: var(--danger-text); line-height: 1.5; }

/* ====== MODAL (CreateTenantModal & EditTenantModal) ====== */
.modal-scrim {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-card {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 640px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-head {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #1a202c;
}

.modal-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 3px;
}

.modal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.modal-actions {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ====== PLAN PICKER (CreateTenantModal) ====== */
.plan-pick-row {
    display: flex;
    gap: 10px;
}

.plan-pick-card {
    flex: 1;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plan-pick-card:hover {
    border-color: #cbd5e1;
}

.plan-pick-card.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.plan-pick-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #1a202c;
}

.plan-pick-price {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 4px;
}

.plan-pick-version {
    font-size: 10px;
    color: #cbd5e1;
    margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════════
   LICENSE PAGE SPECIFIC STYLES (from mockup)
   ═══════════════════════════════════════════════════════════════════ */

/* Seat usage mini widget in table */
.seat-usage-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 90px;
}

.seat-mini {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.seat-bar {
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: #f1f5f9;
    overflow: hidden;
}

.seat-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.seat-bar-fill.full {
    background: #92400e;
}

/* Add-on chips in table */
.addon-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.addon-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 12px;
    background: #ede9fe;
    color: #6d28d9;
    white-space: nowrap;
}

.addon-chip.more {
    background: #f1f5f9;
    color: #64748b;
}

/* Price cell formatting */
.price-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-main {
    font-weight: 700;
    font-size: 13px;
    color: #1a202c;
}

.price-cell-sub {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
}

/* Warning row highlight */
.row-warn {
    background-color: #fef3c7 !important;
}

.row-warn:hover {
    background-color: #fde68a !important;
}

/* Pill variations */
.pill-warn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    background: #fef3c7;
    color: #92400e;
    margin-left: 6px;
}

/* Stats card warn variation */
.stat-value.warn {
    color: #92400e;
}

/* Provider badge */
.badge-provider {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    background: #ede9fe;
    color: #6d28d9;
    margin-left: 8px;
}

/* Tenant name cell */
.tenant-name-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Footer action groups */
.footer-actions-left {
    display: flex;
    gap: 10px;
}

.footer-actions-right {
    display: flex;
    gap: 10px;
}

/* Button: Danger outline */
.btn-danger-outline {
    padding: 11px 17px;
    background: #fff;
    color: #ef4444;
    border: 1.5px solid #fca5a5;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger-outline:hover {
    background: #fef2f2;
    border-color: #f87171;
}

/* Invoice list (for future use) */
.invoice-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.invoice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
}

.invoice-row:last-child {
    border-bottom: none;
}

.invoice-date {
    font-weight: 600;
    color: #1a202c;
}

.invoice-amount {
    font-weight: 700;
    color: #1a202c;
}

.invoice-link {
    font-size: 12px;
    font-weight: 700;
    color: #3b82f6;
    cursor: pointer;
    text-decoration: none;
}

.invoice-link:hover {
    text-decoration: underline;
}

/* ============================================
   LIZENZ MANUELL ANLEGEN - MOCKUP-BASIERT
   ============================================ */

/* Tenant-Suche & Auswahl */
.tenant-search-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 13px;
    border: 1.5px solid #3b82f6;
    border-radius: 10px;
    background: #fff;
    font-size: 14.5px;
    color: #1a202c;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.tenant-search-input .icon {
    color: #94a3b8;
    font-size: 14px;
}

.tenant-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    z-index: 5;
    max-height: 280px;
    overflow-y: auto;
}

.tenant-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
}

.tenant-option:last-child {
    border-bottom: none;
}

.tenant-option.selected-option {
    background: #eff6ff;
}

.tenant-option:hover {
    background: #f8fafc;
}

.tenant-option-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 800;
    flex-shrink: 0;
}

.tenant-option-name {
    font-size: 13px;
    font-weight: 700;
    color: #1a202c;
}

.tenant-option-sub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 1px;
}

.tenant-option-existing-tag {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    background: #fef3c7;
    color: #92400e;
    white-space: nowrap;
}

.tenant-selected-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border: 1.5px solid #bfdbfe;
    background: #eff6ff;
    border-radius: 10px;
}

.tenant-selected-chip .tenant-option-avatar {
    background: #3b82f6;
}

.tenant-selected-chip .change-link {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: #3b82f6;
    cursor: pointer;
}

/* Sitzplatz-Stepper */
.seats-stepper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.seats-stepper-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    cursor: pointer;
    flex-shrink: 0;
}

.seats-stepper-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

.seats-stepper-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.seats-stepper-value {
    font-size: 16px;
    font-weight: 800;
    color: #1a202c;
    min-width: 32px;
    text-align: center;
}

/* Preisvorschau-Karte */
.price-preview-card {
    background: #f8fafc;
    border: 1.5px dashed #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-preview-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.price-preview-value {
    font-size: 17px;
    font-weight: 800;
    color: #1a202c;
}

.price-preview-value span {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

/* ═══════════════════════════════════════════════════════════════
   PACKAGES PAGE (Pakete & Versionen)
   ═══════════════════════════════════════════════════════════════ */

/* Stat Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #1a202c;
}

.stat-delta {
    font-size: 11.5px;
    color: #15803d;
    margin-top: 4px;
    font-weight: 600;
}

.stat-delta.warn {
    color: #92400e;
}

.stat-delta.neutral {
    color: #64748b;
}

/* Base Package Card */
.base-package-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 22px;
}

.base-package-header {
    padding: 18px 22px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.base-package-title {
    font-size: 15.5px;
    font-weight: 800;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 8px;
}

.base-package-desc {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 6px;
    line-height: 1.6;
    max-width: 560px;
}

.base-package-body {
    padding: 18px 22px;
}

.feature-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 20px;
    background: #dcfce7;
    color: #15803d;
}

/* Tier Table */
.table-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 22px;
}

.table-card-header {
    padding: 16px 22px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.table-card-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #1a202c;
}

.table-card-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 22px;
    border-bottom: 1px solid #e2e8f0;
    background: #fbfcfe;
}

.data-table td {
    padding: 14px 22px;
    font-size: 13.5px;
    color: #1a202c;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.tier-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tier-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tier-dot-solo {
    background: #94a3b8;
}

.tier-dot-team {
    background: #3b82f6;
}

.tier-dot-pro {
    background: #8b5cf6;
}

.tier-dot-business {
    background: #0f172a;
}

.tier-name {
    font-weight: 800;
}

.tier-sub {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 1px;
}

.price-main {
    font-weight: 700;
}

.price-sub {
    font-size: 11.5px;
    color: #64748b;
}

.version-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: #dbeafe;
    color: #1d4ed8;
    margin-left: 8px;
}

.row-action {
    font-size: 12px;
    font-weight: 700;
    color: #3b82f6;
    cursor: pointer;
    text-decoration: none;
}

.row-action:hover {
    text-decoration: underline;
}

/* Version History */
.version-list {
    display: flex;
    flex-direction: column;
}

.version-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    border-bottom: 1px solid #e2e8f0;
    gap: 14px;
}

.version-row:last-child {
    border-bottom: none;
}

.version-row-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.version-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.version-icon.active-icon {
    background: #dbeafe;
}

.version-row-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #1a202c;
}

.version-row-meta {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.pill-active {
    background: #dcfce7;
    color: #15803d;
}

.pill-draft {
    background: #fef3c7;
    color: #92400e;
}

.pill-archived {
    background: #fee2e2;
    color: #991b1b;
}

.pill-gray {
    background: #f1f5f9;
    color: #475569;
}

/* ──── VERSION MODAL COMPONENTS ──── */
.version-tier-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.version-tier-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.field-group-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field-group-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.base-package-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 13px;
    color: #1e40af;
    margin-top: 1rem;
}

/* Phase 10 (Mockup Screen 6): Bestandskunden-Migration vorbereiten.
   Root-Cause-Fix: Diese Klassen existierten bereits in Talk2Form.UI/wwwroot/css/admin.css,
   aber index.html (Talk2Form.Web) laedt admin-styles.css, nicht admin.css - dadurch waren
   Toggle-Switch/Duration-Optionen unstyled und damit visuell nicht wahrnehmbar. */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.toggle-switch {
    width: 42px;
    height: 24px;
    border-radius: 20px;
    background: var(--primary, #2563eb);
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    border: none;
    padding: 0;
}

.toggle-switch.off {
    background: #cbd5e1;
}

.toggle-switch .knob {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: right 0.15s ease, left 0.15s ease;
}

.toggle-switch.off .knob {
    right: auto;
    left: 3px;
}

.duration-option-row {
    display: flex;
    gap: 8px;
}

.duration-option {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    color: #64748b;
    background: #fff;
}

.duration-option.selected {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

.readonly-field {
    background: #f8fafc;
    cursor: not-allowed;
    color: #64748b;
}

.entitlement-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.entitlement-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    gap: 1rem;
}

.entitlement-info {
    flex: 1;
}

.entitlement-name {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
}

.entitlement-key {
    font-size: 12px;
    color: #64748b;
    font-family: 'Consolas', 'Monaco', monospace;
    margin-top: 2px;
}

.entitlement-quota {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.btn-text-danger-sm {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.15s;
}

.btn-text-danger-sm:hover {
    background: #fee2e2;
}

.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: #94a3b8;
}

/* ══════════════════════════════════════════════════════════════
   PACKAGE MODALS - From Mockup (talk2form_admin_pakete_versionen_mockup.html)
   ══════════════════════════════════════════════════════════════ */

.modal-card-wide {
    width: 100%;
    max-width: 700px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,0.45);
    color: var(--text-dark);
}

/* Phase 12 (Modal 8 "Sonderkondition pruefen"): Mockup-Referenz (talk2form_vertragsversionen_mockup_v1.html,
   Abschnitt #s8) sieht fuer dieses Modal bewusst eine schmalere Breite vor als die uebrigen 700px-Modale. */
.modal-card-narrow {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,0.45);
    color: var(--text-dark);
}

/* Phase 12 (Modal 8 "Sonderkondition pruefen"): Radio-Auswahl mit Preisbeispiel je Option.
   Normale Satzschreibweise gemaess Mockup - kein text-transform: uppercase. Selektoren mit
   erhoehter Spezifitaet (.field-group .review-option...), da .review-option ein <label>
   innerhalb von .field-group ist und die generische ".field-group label" Regel sonst
   (hoehere Spezifitaet durch Element-Selektor) die Grossschreibung erzwingen wuerde. */
.field-group .review-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    margin-bottom: 8px;
    text-transform: none;
}

.field-group .review-option.selected {
    border-color: var(--primary);
    background: #eff6ff;
}

.field-group .review-option input[type="radio"] {
    margin-top: 2px;
}

.field-group .review-option-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.5;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 4px;
}

.field-group .review-option-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted-2);
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 4px;
}

.modal-header {
    padding: 22px 26px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

.modal-subtitle {
    font-size: 12.5px;
    color: var(--text-muted-2);
    margin-top: 3px;
    line-height: 1.5;
    max-width: 560px;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--gray-bg);
    color: var(--gray-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

.modal-body {
    padding: 22px 26px;
    max-height: 62vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field-group-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.field-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.field-group input,
.field-group textarea {
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
    outline: none;
}

.field-group input:focus,
.field-group textarea:focus {
    border-color: var(--primary);
    background: #fff;
}

.field-hint {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.field-input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 1px #dc2626;
}

.package-select-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.package-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark, #1e293b);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.package-option:hover {
    border-color: var(--primary, #2563eb);
    background: #f8fafc;
}

.package-option.selected {
    border-color: var(--primary, #2563eb);
    background: #eff6ff;
    box-shadow: 0 0 0 1px var(--primary, #2563eb);
}

.package-option .tier-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.package-fixed {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 10px;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark, #1e293b);
}

.package-fixed .tier-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.package-fixed .sub {
    font-weight: 500;
    font-size: 11.5px;
    color: var(--text-muted, #64748b);
    margin-left: 4px;
}

.field-error-text {
    font-size: 11.5px;
    color: #dc2626;
    margin-top: 2px;
    font-weight: 600;
}

.base-package-note {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eff6ff;
    border: 1.5px dashed #bfdbfe;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12px;
    color: var(--blue-text);
    line-height: 1.5;
}

.base-package-note a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.base-package-note a:hover {
    text-decoration: underline;
}

.modal-footer {
    padding: 18px 26px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
}

.footer-actions-left,
.footer-actions-right {
    display: flex;
    gap: 10px;
}

.btn-cancel {
    padding: 12px 18px;
    background: #fff;
    color: var(--text-muted-2);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}

.btn-cancel:hover {
    background: #f8fafc;
}

.btn-save {
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(59,130,246,0.35);
}

.btn-save:hover {
    background: #2563eb;
}

.btn-save:disabled {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-back {
    padding: 12px 16px;
    background: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    margin-right: auto;
}

.btn-back:hover {
    background: #f8fafc;
}

.btn-danger-ghost {
    padding: 12px 16px;
    background: #fff;
    color: var(--danger-text);
    border: 1.5px solid #fecaca;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.btn-danger-ghost:hover {
    background: #fef2f2;
}

.status-select-row {
    display: flex;
    gap: 8px;
}

.status-option {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-muted-2);
    background: #fff;
}

.status-option:hover {
    background: #f8fafc;
}

.status-option.selected-active {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: #86efac;
}

.status-option.selected-draft {
    background: var(--pending-bg);
    color: var(--pending-text);
    border-color: #fcd34d;
}

.status-option.selected-archived {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-color: #fca5a5;
}

.tier-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.tier-dot-solo {
    background: #10b981;
}

.tier-dot-team {
    background: #3b82f6;
}

.tier-dot-pro {
    background: #8b5cf6;
}

.tier-dot-business {
    background: #f59e0b;
}

/* ══════════════════════════════════════════════════════════════
   DIMENSION CARDS - From Mockup (talk2form_pakete_dimensionsmodell_mockup_v1.html)
   ══════════════════════════════════════════════════════════════ */

.section-label {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.section-label .count-badge {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-muted-2);
    background: var(--gray-bg);
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: none;
}

.dimensions-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dimension-card {
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}

.dimension-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 10px;
}

.dimension-head-left {
    display: flex;
    align-items: center;
    gap: 9px;
}

.dimension-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--blue-bg);
    color: var(--blue-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.dimension-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-dark);
}

.dimension-sub {
    font-size: 11px;
    color: var(--text-muted-2);
    margin-top: 1px;
}

.default-badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--success-text);
    background: var(--success-bg);
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

.dimension-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.dimension-fields .field-group label {
    font-size: 10.5px;
}

.input-with-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-suffix .currency-input {
    width: 100%;
    padding: 9px 28px 9px 10px;
    font-size: 12.5px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--text-dark);
    background: #fff;
    box-sizing: border-box;
}

.input-with-suffix .input-suffix {
    position: absolute;
    right: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted-2);
    pointer-events: none;
}

.field-group-currency {
    position: relative;
    display: flex;
    align-items: center;
}

.field-group-currency input {
    padding-right: 28px;
}

.field-group-currency .input-suffix {
    position: absolute;
    right: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted-2);
    pointer-events: none;
}

.cycle-select {
    font-size: 12.5px !important;
    padding: 9px 10px !important;
}

/* ── Zusatz-/Grundpaket-Features (Chips) ── */
.feature-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-editable {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 10px 7px 13px;
    border-radius: 20px;
    background: var(--purple-bg);
    color: var(--purple-text);
}

.chip-editable.on-off {
    background: var(--success-bg);
    color: var(--success-text);
}

.chip-editable.numeric {
    background: var(--blue-bg);
    color: var(--blue-text);
}

.chip-remove {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
}

.chip-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 20px;
    border: 1.5px dashed var(--border);
    color: var(--text-muted-2);
    cursor: pointer;
    background: transparent;
}

.global-limit-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #eff6ff;
    border: 1.5px dashed #bfdbfe;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12px;
    color: var(--blue-text);
    line-height: 1.55;
}

.base-package-note .note-text,
.global-limit-note .note-text {
    flex: 1 1 auto;
    min-width: 0;
}

.base-package-note .link,
.global-limit-note .link {
    text-decoration: underline;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}

/* ──── VERSIONSHISTORIE: Paketbezug in der Zeile (Versionsdetails-Modal v10) ──── */
.version-icon.tier-solo {
    background: #f1f5f9;
}

.version-icon.tier-team {
    background: #dbeafe;
}

.version-icon.tier-pro {
    background: #ede9fe;
}

.version-icon.tier-business {
    background: #e2e8f0;
}

.version-label {
    font-weight: 500;
    color: #64748b;
    margin-left: 4px;
}

/* ──── VERSIONSDETAILS MODAL ──── */
.version-details-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.version-details-meta-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
}

.version-details-meta-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.version-details-meta-value {
    font-size: 13.5px;
    font-weight: 700;
    color: #1a202c;
}

.snapshot-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.snapshot-price-headline {
    font-size: 22px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 12px;
}

.snapshot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    gap: 10px;
}

.snapshot-row:last-child {
    border-bottom: none;
}

.snapshot-row-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.snapshot-row-value {
    font-size: 13px;
    color: #475569;
    text-align: right;
}

.cycle-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    margin-left: 6px;
    text-transform: uppercase;
}

.chip-readonly {
    display: inline-flex;
    align-items: center;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
}

.note-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}

.note-block.empty {
    font-style: italic;
    color: #94a3b8;
}

.version-chain {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #3b82f6;
    font-weight: 600;
    cursor: pointer;
    margin-top: 14px;
}

.version-chain:hover {
    text-decoration: underline;
}

/* ─── Kostenpreview / Vergleichstabelle (Mockup Screen 4: "Vertragswechsel verbindlich planen") ─── */
.comparison-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.comparison-table th { text-align: left; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 0 10px 10px; border-bottom: 1.5px solid var(--border); }
.comparison-table th:not(:first-child) { text-align: right; }
.comparison-table td { padding: 10px; border-bottom: 1px dashed var(--border); color: var(--text-muted-2); }
.comparison-table td:not(:first-child) { text-align: right; font-weight: 700; color: var(--text-dark); }
.comparison-table tr.total td { border-bottom: none; padding-top: 14px; font-size: 14px; font-weight: 800; color: var(--text-dark); }
.comparison-table tr.diff td { color: var(--orange-text); font-weight: 800; }

.validation-list { display: flex; flex-direction: column; gap: 8px; }
.validation-item { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-dark); font-weight: 600; }
.validation-check { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; font-weight: 800; }
.validation-check.ok { background: var(--success-bg); color: var(--success-text); }
.validation-check.fail { background: var(--danger-bg); color: var(--danger-text); }

/* ─── Phase 11: Massenmigrations-Uebersicht (Mockup Screen 7 "Migration: ... -> ...") ───
   Root-Cause-Fix: Diese Klassen existierten bereits in Talk2Form.UI/wwwroot/css/admin.css,
   aber index.html (Talk2Form.Web) laedt admin-styles.css, nicht admin.css - dadurch war die
   Migrationstabelle im Browser vollstaendig ungestylt (analog zum Phase-10-Fix oben). */
.migration-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1.5px solid var(--border); flex-wrap: wrap; }
.migration-title { font-size: 18px; font-weight: 800; color: var(--text-dark); }
.migration-meta { font-size: 12px; color: var(--text-muted-2); margin-top: 4px; }

.bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #eff6ff; border: 1.5px solid #bfdbfe; border-radius: 12px; padding: 14px 18px; flex-wrap: wrap; margin-bottom: 16px; }
.bulk-bar-text { font-size: 13px; font-weight: 700; color: var(--blue-text); }
.bulk-bar-sub { font-size: 11.5px; color: var(--text-muted-2); margin-top: 2px; font-weight: 500; }

.migration-table-wrap { overflow-x: auto; }
.migration-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 980px; }
.migration-table th { text-align: left; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); padding: 12px 14px; border-bottom: 1.5px solid var(--border); background: #f8fafc; white-space: nowrap; }
.migration-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.migration-table td.mt-status-cell { white-space: normal; min-width: 220px; }
.migration-table tr.row-skipped td { opacity: 0.5; }

.mt-tenant { font-weight: 700; color: var(--text-dark); }
.mt-price-diff.up { color: var(--orange-text); font-weight: 800; }
.mt-price-diff.down { color: var(--success-text); font-weight: 800; }
.mt-action-link { color: var(--blue-text); font-weight: 700; cursor: pointer; text-decoration: underline; }

.conflict-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.conflict-badge.ok { background: var(--success-bg); color: var(--success-text); }
.conflict-badge.warn { background: #fef3c7; color: #92400e; }
.conflict-badge.none { background: #f1f5f9; color: #94a3b8; }

.pill-orange { background: #ffedd5; color: #9a3412; }
.pill-scheduled { background: #dbeafe; color: #1e40af; }
.pill-failed { background: #fee2e2; color: #b91c1c; }

/* ═══════ GDPR-Verwaltung: 1:1-Übernahme aus mockup_dsgvo_verwaltung_v2.html ═══════ */

/* ── Search card (Auskunft / Benutzer löschen / Tenant löschen) ── */
.search-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px 22px; display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap;
}
.search-input-group { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 6px; }
.search-input-group label {
    font-size: 12px; font-weight: 700; color: var(--text-muted-2);
    text-transform: uppercase; letter-spacing: 0.05em;
}
.search-input-group input, .search-input-group select {
    font-family: inherit; font-size: 14px; color: var(--text-dark);
    padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 10px;
    background: #f8fafc; outline: none; width: 100%;
}
.search-input-group input:focus, .search-input-group select:focus { border-color: var(--primary); background: #fff; }

/* ── Result identity card ── */
.identity-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.identity-left { display: flex; align-items: center; gap: 14px; }
.identity-avatar {
    width: 46px; height: 46px; border-radius: 12px; background: var(--dark-bg);
    display: flex; align-items: center; justify-content: center; color: #fff;
    font-weight: 800; font-size: 15px; flex-shrink: 0;
}
.identity-name { font-size: 15.5px; font-weight: 800; color: var(--text-dark); }
.identity-meta { font-size: 12px; color: var(--text-muted-2); margin-top: 3px; }
.identity-meta code { background: var(--gray-bg); padding: 1px 6px; border-radius: 5px; font-size: 11px; }
.identity-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.identity-tag { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: var(--gray-bg); color: var(--gray-text, #475569); }

/* ── Workflow-Gruppen (Erasure / Tenant-Kündigung) ── */
.workflow-group { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.workflow-group-head {
    padding: 12px 22px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
}
.workflow-group-head.head-auto { background: var(--success-bg); color: var(--success-text); }
.workflow-group-head.head-todo { background: var(--blue-bg); color: var(--blue-text); }
.workflow-group-head.head-blocked { background: var(--danger-bg); color: var(--danger-text); }

.workflow-list { display: flex; flex-direction: column; background: #fff; }
.workflow-step { display: flex; align-items: flex-start; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--border); }
.workflow-step:last-child { border-bottom: none; }
.workflow-body { flex: 1; min-width: 0; }
.workflow-title { font-size: 13.5px; font-weight: 700; color: var(--text-dark); }
.workflow-desc { font-size: 12px; color: var(--text-muted-2); margin-top: 4px; line-height: 1.55; }
.workflow-src { font-size: 10.5px; color: var(--text-muted); margin-top: 5px; font-family: 'SF Mono', monospace; }

/* ── Retention config rows ── */
.config-list { display: flex; flex-direction: column; }
.config-row {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 16px; align-items: center;
    padding: 15px 22px; border-bottom: 1px solid var(--border);
}
.config-row:last-child { border-bottom: none; }
.config-name { font-size: 13px; font-weight: 700; color: var(--text-dark); }
.config-sub { font-size: 11px; color: var(--text-muted-2); margin-top: 2px; }
.config-input {
    font-family: inherit; font-size: 13.5px; color: var(--text-dark);
    padding: 9px 11px; border: 1.5px solid var(--border); border-radius: 9px; background: #f8fafc; outline: none; width: 100%;
}
.config-input:disabled { color: var(--text-muted); background: #f1f5f9; cursor: not-allowed; }
.config-input:focus { border-color: var(--primary); background: #fff; }
.config-current { font-size: 12.5px; color: var(--text-muted-2); }
.config-current b { color: var(--text-dark); }

/* ── Gap-Kategorie-Karten (Compliance-Status) ── */
.gap-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gap-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.gap-card-icon { font-size: 22px; }
.gap-card-title { font-size: 14.5px; font-weight: 800; color: var(--text-dark); }
.gap-card-desc { font-size: 12.5px; color: var(--text-muted-2); line-height: 1.6; flex: 1; }

/* ── Generic banners (info / warning / danger) ── */
.info-banner {
    display: flex; align-items: flex-start; gap: 10px;
    background: #eff6ff; border: 1.5px dashed #bfdbfe; border-radius: 10px;
    padding: 12px 14px; font-size: 12.5px; color: var(--blue-text); line-height: 1.55;
}
.warning-banner {
    display: flex; align-items: flex-start; gap: 10px;
    background: var(--pending-bg); border: 1.5px dashed #fcd34d; border-radius: 10px;
    padding: 12px 14px; font-size: 12.5px; color: var(--pending-text); line-height: 1.55;
}
.danger-banner {
    display: flex; align-items: flex-start; gap: 10px;
    background: var(--danger-bg); border: 1.5px dashed #fca5a5; border-radius: 10px;
    padding: 12px 14px; font-size: 12.5px; color: var(--danger-text); line-height: 1.55;
}
.info-banner b, .warning-banner b, .danger-banner b { font-weight: 800; }

/* ── Tabs-Leiste (klickbar) ── */
.tabs-row {
    display: flex; gap: 0; padding: 0; background: #fff;
    border-bottom: 1px solid var(--border); overflow-x: auto;
}
.tab-item {
    padding: 15px 4px; margin-right: 26px; font-size: 13px; font-weight: 700;
    color: var(--text-muted-2); cursor: pointer; border: none; background: none;
    border-bottom: 2.5px solid transparent;
    white-space: nowrap; display: flex; align-items: center; gap: 6px; font-family: inherit;
}
.tab-item .tab-icon { font-size: 13.5px; }
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── Button-Varianten (Ergänzung: outline/ghost/disabled für GDPR-Kontext) ── */
.btn-ghost-sm {
    padding: 10px 16px; background: #fff; color: var(--text-muted-2); border: 1.5px solid var(--border);
    border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.btn-disabled-sm {
    padding: 10px 16px; background: #f1f5f9; color: var(--text-muted); border: 1.5px solid var(--border);
    border-radius: 10px; font-size: 13px; font-weight: 700; cursor: not-allowed; white-space: nowrap;
}


/* ══════════════════════════════════════════════════════
   PlatformAdmin-Verwaltung responsive (adm-rsp-*)
   Quelle: mockup_verwaltung_responsive_querformat_v1.html. Gilt ausschliesslich unter .adm-rsp-shell
   (PlatformAdmin-Zweig in AdminLayout) und nur in diesen Media Queries:
     Tablet/schmales Fenster:  (max-width: 1279.98px)
     Smartphone quer:          (max-width: 1279.98px) and (max-height: 500px) and (orientation: landscape)
   Ab 1280 px gelten unveraendert die Regeln oben. Shell/Sidebar: AdminLayout.razor.css, AdminSidebar.razor.css.
   ══════════════════════════════════════════════════════ */

/* ─── Seitenkopf und Inhalt ─── */
@media (max-width: 1279.98px) {
    .adm-rsp-shell .topbar,
    .adm-rsp-shell .content-topbar {
        flex: none;
        gap: 16px;
        min-height: 72px;
        padding: 14px 24px;
    }

    .adm-rsp-shell .topbar > :first-child,
    .adm-rsp-shell .content-topbar > :first-child {
        min-width: 0;
    }

    .adm-rsp-shell .topbar > :last-child:not(:first-child),
    .adm-rsp-shell .content-topbar > :last-child:not(:first-child) {
        flex: none;
        margin-left: auto;
    }

    .adm-rsp-shell .topbar-title,
    .adm-rsp-shell .page-title {
        margin: 0;
        overflow: hidden;
        font-size: 22px;
        font-weight: 900;
        line-height: 1.25;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    /* Kompakte Zeilenhoehe wie im Mockup (App-Basis body line-height 1.6 aus mobile-design.css). */
    .adm-rsp-shell .topbar-sub,
    .adm-rsp-shell .page-subtitle {
        margin: 2px 0 0;
        overflow: hidden;
        font-size: 13px;
        line-height: 1.35;
        color: #64748b;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .adm-rsp-shell .content-scroll {
        display: flex;
        flex: 1;
        flex-direction: column;
        gap: 16px;
        min-height: 0;
        padding: 20px 24px 28px;
    }

    .adm-rsp-shell .content-scroll > * {
        flex-shrink: 0;
        margin-top: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 1279.98px) and (max-height: 500px) and (orientation: landscape) {
    .adm-rsp-shell .topbar,
    .adm-rsp-shell .content-topbar {
        gap: 10px;
        min-height: 56px;
        padding: 6px 12px 6px 16px;
    }

    .adm-rsp-shell .topbar-title,
    .adm-rsp-shell .page-title {
        font-size: 18px;
    }

    .adm-rsp-shell .topbar-sub,
    .adm-rsp-shell .page-subtitle {
        font-size: 12px;
    }

    .adm-rsp-shell .content-scroll {
        gap: 10px;
        padding: 10px 12px 16px;
    }
}

/* --- Neutrale Desktop-Defaults der neuen Elemente (ab 1280 px kein zusaetzlicher Box-Baum, nichts sichtbar) --- */
.adm-rsp-table,
.adm-rsp-table-scroll {
    display: contents;
}

.adm-rsp-swipe-hint,
.adm-rsp-short,
.adm-rsp-only,
.adm-rsp-act-ic {
    display: none;
}

/* Freigegebene Desktop-Korrektur (Ausnahmen 2 und 3): Plan-, Betrags- und Datumszellen ohne unguenstigen Umbruch. */
.adm-rsp-nowrap {
    white-space: nowrap;
}

/* --- Bedienelemente, Tabellen und Kennzahlen unter 1280 px --- */
@media (max-width: 1279.98px) {
    /* Kurz-/Langlabel und Icon-Aktionen (zugaenglicher Name ueber aria-label/title am Button). */
    .adm-rsp-shell .adm-rsp-only {
        display: block;
    }

    .adm-rsp-shell .adm-rsp-glyph {
        display: none;
    }

    .adm-rsp-shell .adm-rsp-act-ic {
        display: block;
        flex: none;
    }

    /* Primaer-, Sekundaer- und Gefahrenbuttons mit 44-px-Klickflaeche (Farben laut Mockup). */
    .adm-rsp-shell .btn-primary-sm,
    .adm-rsp-shell .btn-primary-lg {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        padding: 0 18px;
        border: 0;
        border-radius: 12px;
        background: #3b82f6;
        font-size: 14px;
        font-weight: 800;
        color: #fff;
        white-space: nowrap;
    }

    .adm-rsp-shell .btn-primary-sm:hover,
    .adm-rsp-shell .btn-primary-lg:hover {
        background: #2563eb;
    }

    .adm-rsp-shell .btn-outline-sm,
    .adm-rsp-shell .btn-danger-outline {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        padding: 0 14px;
        border: 1px solid #bfdbfe;
        border-radius: 12px;
        background: #fff;
        font-size: 14px;
        font-weight: 800;
        color: #1d4ed8;
        white-space: nowrap;
    }

    .adm-rsp-shell .btn-danger-outline {
        border-color: #fecaca;
        color: #b91c1c;
    }

    /* Zeilenaktionen: Radius 10 px, blau; Varianten neutral (Oeffnen/Details), violett (Duplizieren/Migration), rot. */
    .adm-rsp-shell .row-action:not(td),
    .adm-rsp-shell .data-table .btn-outline-sm,
    .adm-rsp-shell .data-table .btn-danger-outline {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 44px;
        min-height: 44px;
        padding: 0 12px;
        border: 1px solid #bfdbfe;
        border-radius: 10px;
        background: #fff;
        font-size: 13px;
        font-weight: 800;
        color: #1d4ed8;
        white-space: nowrap;
        cursor: pointer;
    }

    .adm-rsp-shell .row-action:not(td):hover {
        background: #eff6ff;
    }

    .adm-rsp-shell .adm-rsp-act-neutral {
        border-color: #e2e8f0;
        color: #475569;
    }

    .adm-rsp-shell .adm-rsp-act-violet {
        border-color: #ddd6fe;
        color: #6d28d9;
    }

    .adm-rsp-shell .adm-rsp-act-violet:hover {
        background: #f5f3ff;
    }

    .adm-rsp-shell .data-table .btn-danger-outline,
    .adm-rsp-shell .adm-rsp-act-danger {
        border-color: #fecaca;
        color: #b91c1c;
    }

    .adm-rsp-shell .adm-rsp-act-danger:hover {
        background: #fef2f2;
    }

    .adm-rsp-shell .adm-rsp-act-disabled {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 44px;
        min-height: 44px;
        padding: 0 12px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        background: #fff;
        font-size: 13px;
        font-weight: 800;
        white-space: nowrap;
    }

    .adm-rsp-shell .row-actions,
    .adm-rsp-shell .table-actions {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: flex-end;
    }

    /* Eingaben, Suche und Filter: 44 px hoch, flexibel umbrechend, ohne erzwungene Seitenueberbreite. */
    .adm-rsp-shell .search-input,
    .adm-rsp-shell .filter-select,
    .adm-rsp-shell .content-scroll select.field-input,
    .adm-rsp-shell .content-scroll .config-input {
        min-height: 44px;
        border-radius: 12px;
        font-size: 14px;
    }

    .adm-rsp-shell .filter-select,
    .adm-rsp-shell .content-scroll select.field-input {
        min-width: min(170px, 100%);
        max-width: 100%;
    }

    .adm-rsp-shell .search-row,
    .adm-rsp-shell .table-search-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .adm-rsp-shell .search-row .search-input {
        flex: 1 1 300px;
        min-width: 0;
    }

    .adm-rsp-shell .search-input-wrap {
        flex: 1 1 300px;
        min-width: 0;
        max-width: none;
    }

    .adm-rsp-shell .search-input-wrap .search-input {
        padding-left: 42px;
    }

    .adm-rsp-shell .search-clear {
        right: 0;
        width: 44px;
        height: 44px;
    }

    .adm-rsp-shell .search-result-count {
        margin-left: auto;
        white-space: nowrap;
    }

    /* Tabs horizontal scrollen statt unkontrolliert umbrechen. */
    .adm-rsp-shell .filter-tabs,
    .adm-rsp-shell .tabs-row {
        flex-wrap: nowrap;
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .adm-rsp-shell .filter-tabs::-webkit-scrollbar,
    .adm-rsp-shell .tabs-row::-webkit-scrollbar {
        display: none;
    }

    .adm-rsp-shell .filter-tab,
    .adm-rsp-shell .tab-item {
        display: inline-flex;
        flex: none;
        align-items: center;
        min-height: 44px;
        white-space: nowrap;
    }

    .adm-rsp-shell .table-card-header {
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    /* Kennzahlen: so viele Karten je Zeile wie Platz (bei 1180 px vier), Werte einzeilig. */
    .adm-rsp-shell .stats-grid,
    .adm-rsp-shell .stats-row {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
        gap: 12px;
    }

    .adm-rsp-shell .stat-card {
        min-width: 0;
        padding: 14px 16px;
        border-radius: 14px;
    }

    .adm-rsp-shell .stat-label {
        overflow: hidden;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .adm-rsp-shell .stat-value {
        margin: 6px 0 2px;
        overflow: hidden;
        font-size: 24px;
        font-weight: 900;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .adm-rsp-shell .stat-delta {
        margin-top: 0;
        overflow: hidden;
        font-size: 12px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    /* Tabellen: eigener horizontaler Scrollbereich je Tabelle, sichtbare Scrollbar (soweit das Betriebssystem
       Scrollbars nicht ausblendet), Hinweis nur bei tatsaechlichem Ueberlauf (data-adm-rsp-overflow, adminResponsive.js). */
    .adm-rsp-shell .adm-rsp-table {
        display: block;
        min-width: 0;
    }

    .adm-rsp-shell .adm-rsp-table-scroll {
        display: block;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #94a3b8 #e9eef4;
    }

    .adm-rsp-shell .adm-rsp-table-scroll::-webkit-scrollbar {
        height: 10px;
    }

    .adm-rsp-shell .adm-rsp-table-scroll::-webkit-scrollbar-track {
        border-radius: 8px;
        background: #e9eef4;
    }

    .adm-rsp-shell .adm-rsp-table-scroll::-webkit-scrollbar-thumb {
        border: 2px solid #e9eef4;
        border-radius: 8px;
        background: #94a3b8;
    }

    .adm-rsp-shell .adm-rsp-table[data-adm-rsp-overflow] > .adm-rsp-swipe-hint {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        border-bottom: 1px solid #eef2f7;
        background: #f8fafc;
        font-size: 12px;
        font-weight: 700;
        color: #475569;
    }

    .adm-rsp-shell .adm-rsp-table-scroll > table {
        width: max-content;
        min-width: 100%;
        overflow: visible;
        border-collapse: separate;
        border-spacing: 0;
    }

    .adm-rsp-shell .adm-rsp-table-scroll > table > thead > tr > th,
    .adm-rsp-shell .adm-rsp-table-scroll > table > tbody > tr > td {
        white-space: nowrap;
        vertical-align: middle;
    }

    .adm-rsp-shell .adm-rsp-table-scroll > table > tbody > tr > td[colspan] {
        white-space: normal;
    }

    .adm-rsp-shell .adm-rsp-table-scroll .adm-rsp-num {
        text-align: right;
    }

    /* Fixierte Identitaets- (links) und Aktionsspalte (rechts) mit eigenem opaken Hintergrund je Zustand.
       Nur Tabellen mit adm-rsp-sticky (einzeln geprueft); colspan-Zeilen (Leer-/Ladezustand) ausgenommen. */
    .adm-rsp-shell .adm-rsp-sticky > table > thead > tr > th:first-child,
    .adm-rsp-shell .adm-rsp-sticky > table > tbody > tr > td:first-child:not([colspan]) {
        position: sticky;
        left: 0;
        z-index: 1;
        background: #fff;
        box-shadow: inset -1px 0 0 #e2e8f0;
    }

    .adm-rsp-shell .adm-rsp-sticky > table > thead > tr > th:last-child,
    .adm-rsp-shell .adm-rsp-sticky > table > tbody > tr > td:last-child:not([colspan]) {
        position: sticky;
        right: 0;
        z-index: 1;
        background: #fff;
        box-shadow: inset 1px 0 0 #e2e8f0;
        text-align: right;
    }

    .adm-rsp-shell .adm-rsp-sticky > table > thead > tr > th:first-child,
    .adm-rsp-shell .adm-rsp-sticky > table > thead > tr > th:last-child {
        z-index: 2;
        background: #f8fafc;
    }

    .adm-rsp-shell .adm-rsp-sticky > table > tbody > tr:hover > td:first-child:not([colspan]),
    .adm-rsp-shell .adm-rsp-sticky > table > tbody > tr:hover > td:last-child:not([colspan]) {
        background: #f8fafc;
    }

    .adm-rsp-shell .adm-rsp-sticky > table > tbody > tr.row-warn > td:first-child,
    .adm-rsp-shell .adm-rsp-sticky > table > tbody > tr.row-warn > td:last-child {
        background: #fef3c7;
    }

    .adm-rsp-shell .adm-rsp-sticky > table > tbody > tr.row-warn:hover > td:first-child,
    .adm-rsp-shell .adm-rsp-sticky > table > tbody > tr.row-warn:hover > td:last-child {
        background: #fde68a;
    }
}

/* --- Smartphone quer --- */
@media (max-width: 1279.98px) and (max-height: 500px) and (orientation: landscape) {
    .adm-rsp-shell .adm-rsp-long {
        display: none;
    }

    .adm-rsp-shell .adm-rsp-short {
        display: inline;
    }

    .adm-rsp-shell .btn-primary-sm,
    .adm-rsp-shell .btn-primary-lg {
        padding: 0 14px;
    }

    .adm-rsp-shell .btn-outline-sm,
    .adm-rsp-shell .btn-danger-outline {
        padding: 0 12px;
    }

    /* Zeilen- und Kopfaktionen mit Icon nur als 44x44-Icon (Name ueber aria-label/title). */
    .adm-rsp-shell .adm-rsp-act:not(td) {
        min-width: 44px;
        padding: 0;
    }

    .adm-rsp-shell .adm-rsp-act .adm-rsp-act-label {
        display: none;
    }

    .adm-rsp-shell .filter-select,
    .adm-rsp-shell .content-scroll select.field-input {
        min-width: min(140px, 100%);
    }

    .adm-rsp-shell .search-row .search-input,
    .adm-rsp-shell .search-input-wrap {
        flex-basis: 220px;
    }

    /* Kennzahlen als wischbare Leiste (eine Zeile, Snap). */
    .adm-rsp-shell .stats-grid,
    .adm-rsp-shell .stats-row {
        display: flex;
        gap: 8px;
        padding-bottom: 6px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        scrollbar-color: #94a3b8 #e9eef4;
    }

    .adm-rsp-shell .stats-grid > .stat-card,
    .adm-rsp-shell .stats-row > .stat-card {
        flex: 0 0 176px;
        padding: 10px 12px;
        scroll-snap-align: start;
    }

    .adm-rsp-shell .stat-value {
        margin: 4px 0 0;
        font-size: 18px;
    }

    .adm-rsp-shell .adm-rsp-table-scroll > table > thead > tr > th {
        padding: 10px 12px;
    }

    .adm-rsp-shell .adm-rsp-table-scroll > table > tbody > tr > td {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Kompakte Identitaetsspalte: lange Namen/Mails ellipsieren (voller Text im title-Attribut). */
    .adm-rsp-shell .adm-rsp-ident {
        min-width: 0;
        max-width: 170px;
    }

    .adm-rsp-shell .adm-rsp-ident > * {
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ═══════ Talk2Form "Clean White" in der Verwaltung (mockup_tenantdetails_gruen_v1.html, mockup_word_bericht_import_v2.html) ═══════
   Gilt nur unterhalb von .t2f-clean: TenantAdmin-Ansicht der Mandantenverwaltung (TenantDetail) und "Aus Word-Bericht erstellen".
   Kein eigenes Farbsystem: Werte = Clean-White-Tokens (mobile-design.css bzw. Farbschema-Referenz v3). Komponenten mit eigenem
   Scoped-CSS lesen var(--primary*) mit dem bisherigen Blau als Rueckfall - ausserhalb von .t2f-clean bleibt alles wie bisher.
   Fehler, Warnungen und destruktive Aktionen behalten ihre semantischen Farben. Der Wrapper erzeugt keine eigene Box. */
.t2f-clean {
    display: contents;
    --primary: var(--accent, #2b6e66);
    --primary-hover: #245d56;
    --primary-tint: #eef6f4;
    --primary-ring: #cfe3df;
    --primary-ink: var(--success-soft-text, #12463d);
    --primary-soft: var(--success-soft, #ddf3ee);
    --primary-focus: var(--accent, #2b6e66);
    --border: #e6e6e2;
    --success-bg: var(--success-soft, #ddf3ee);
    --success-text: var(--success-soft-text, #12463d);
    --clean-bg: #f9f9f7;
    --clean-border-strong: #d7d7d2;
    --clean-text: #1a1f2e;
    --clean-text-2: #4b5563;
    --clean-muted: #6b7280;
    --clean-faint: #9aa0a6;
    --clean-icon-bg: var(--icon-badge-bg, #f0f0ec);
    --clean-pill-bg: #eeeeea;
    --clean-warn-soft: #fbe8d9;
    --clean-warn-border: #f3d3ae;
    --clean-danger-soft: #f6dedb;
}

.t2f-clean .topbar { border-bottom-color: var(--chrome-line, #ebebe7); box-shadow: var(--chrome-shadow, 0 1px 3px rgba(20, 20, 25, .04)); }
.t2f-clean .content-scroll { background: var(--clean-bg); }
.t2f-clean :where(button, a, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.t2f-clean input[type=checkbox], .t2f-clean input[type=radio] { accent-color: var(--primary); }

/* Reiter: aktiv gruen mit gruener Unterstreichung, inaktiv gedaempft */
.t2f-clean .tabs { border-bottom-color: var(--chrome-line, #ebebe7); }
.t2f-clean .tab { color: var(--clean-faint); font-weight: 700; font-size: 12.5px; }
.t2f-clean .tab:hover:not(.active) { color: var(--clean-text-2); }
.t2f-clean .tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Aktionen: Pill-Buttons */
.t2f-clean .btn-primary-lg,
.t2f-clean .btn-primary-sm { background: var(--primary); color: #fff; border: 0; border-radius: 22px; font-weight: 700; }
.t2f-clean .btn-primary-lg:hover:not(:disabled),
.t2f-clean .btn-primary-sm:hover:not(:disabled) { background: var(--primary-hover); }
.t2f-clean .btn-primary-lg:disabled,
.t2f-clean .btn-primary-sm:disabled { background: var(--primary-ring); color: #fff; cursor: not-allowed; opacity: 1; }
.t2f-clean .btn-outline-sm { border: 1px solid var(--primary-ring); background: #fff; color: var(--primary); border-radius: 20px; font-weight: 700; }
.t2f-clean .btn-outline-sm:hover:not(:disabled) { background: var(--primary-tint); }
.t2f-clean .btn-outline-sm:disabled { color: var(--clean-faint); border-color: var(--border); cursor: not-allowed; }
.t2f-clean .btn-link { color: var(--primary); font-weight: 700; }
.t2f-clean .btn-danger-outline { border: 1px solid var(--clean-danger-soft); background: #fff; color: var(--danger, #a13f35); border-radius: 20px; font-weight: 700; }
.t2f-clean .btn-danger-outline:hover:not(:disabled) { background: var(--clean-danger-soft); }

/* Karten, Kopfkarte, Pakethinweis, Listen */
.t2f-clean .card,
.t2f-clean .addon-card,
.t2f-clean .tenant-detail-card { border-color: var(--border); border-radius: 14px; }
.t2f-clean .tenant-detail-name { color: var(--clean-text); font-size: 16px; }
.t2f-clean .tenant-detail-meta { color: var(--clean-faint); font-size: 11.5px; }
.t2f-clean .plan-badge { background: var(--primary-tint); color: var(--primary); border-radius: 9px; font-size: 10.5px; }
.t2f-clean .addon-icon { background: var(--clean-icon-bg) !important; color: #33383f !important; border-radius: 10px; }
.t2f-clean .addon-name { color: var(--clean-text); font-size: 13.5px; }
.t2f-clean .addon-price,
.t2f-clean .form-hint { color: var(--clean-muted); }
.t2f-clean .list-header-label { color: var(--clean-faint); font-size: 10px; letter-spacing: .08em; }
.t2f-clean .st-active { background: var(--primary-soft); color: var(--primary-ink); border-radius: 9px; }
.t2f-clean .st-muted { background: var(--clean-pill-bg); color: var(--clean-text-2); border-radius: 9px; }
.t2f-clean .pill-active { background: var(--primary-soft); color: var(--primary-ink); border-radius: 9px; }
.t2f-clean .pill-gray { background: var(--clean-pill-bg); color: var(--clean-text-2); border-radius: 9px; }
.t2f-clean .pill-orange { background: var(--clean-warn-soft); color: var(--warn-text, #9a4a1d); border: 1px solid var(--clean-warn-border); border-radius: 9px; }

/* Hinweise: helle gruene Info-Karte statt blauer Leiste */
.t2f-clean .info-card { background: var(--primary-tint); border: 0; border-radius: 14px; color: var(--primary-ink); padding: 12px 15px; }

/* Eingaben */
.t2f-clean .field-input { border-color: var(--border); border-radius: 11px; }
.t2f-clean .field-input:focus { border-color: var(--primary); outline: 2px solid var(--primary); outline-offset: 0; }
.t2f-clean .doc-choice-card { border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.t2f-clean .doc-choice-card:hover:not(:disabled) { border-color: var(--primary-ring); }
.t2f-clean {
    --primary-glow: rgba(43, 110, 102, .12);
    --dark-bg: var(--chrome-dark, #1e222b);
    --text-dark: #1a1f2e;
    --text-muted: #9aa0a6;
    --text-muted-2: #6b7280;
}
.t2f-clean {
    --preview-card: #262b36;
    --preview-border: #333a47;
    --preview-head: var(--accent-on-dark, #a9ecdd);
}
.t2f-clean {
    --pending-bg: var(--clean-warn-soft);
    --pending-text: var(--warn-text, #9a4a1d);
}
.t2f-clean .section-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--clean-faint); }
.t2f-clean {
    --mark-bg: var(--primary-tint);
    --mark-text: var(--primary);
}
