/* ══════════════════════════════════════════════════════
   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 ─── */
.admin-frame {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: #f8fafc;
    color: #1a202c;
}

/* ─── 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;
}

/* ─── 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 ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
}

.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 ─── */
/* DEACTIVATED: Conflicting with mockup-based rules below (line 1355+) */
/*
.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
}

.card-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
*/

/* ─── 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-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; }

