/**
 * Tier-Badge SOT — Parität documents-overview AI-DMS / workspaces formatter_ai_dms.
 * Basic, Premium, Ultra: immer gleiche Farben + Icons (fa-cube, fa-gem, fa-bolt).
 */
.tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: none;
    min-width: 85px;
    box-sizing: border-box;
}

.tier-badge i {
    font-size: 11px;
}

.tier-badge.tier-ultra {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

.tier-badge.tier-premium {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.tier-badge.tier-basic {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.tier-badge.tier-disabled {
    background: #f9fafb;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
}

html.dark-side .tier-badge.tier-ultra,
[data-theme="dark"] .tier-badge.tier-ultra {
    background: rgba(109, 40, 217, 0.15);
    color: #c4b5fd;
    border-color: rgba(109, 40, 217, 0.35);
}

html.dark-side .tier-badge.tier-premium,
[data-theme="dark"] .tier-badge.tier-premium {
    background: rgba(37, 99, 235, 0.15);
    color: #93c5fd;
    border-color: rgba(37, 99, 235, 0.35);
}

html.dark-side .tier-badge.tier-basic,
[data-theme="dark"] .tier-badge.tier-basic {
    background: rgba(100, 116, 139, 0.15);
    color: #cbd5e1;
    border-color: rgba(100, 116, 139, 0.35);
}

html.dark-side .tier-badge.tier-disabled,
[data-theme="dark"] .tier-badge.tier-disabled {
    background: rgba(156, 163, 175, 0.12);
    color: #9ca3af;
    border-color: rgba(156, 163, 175, 0.25);
}

/* Trust-Profil (kein Verarbeitungs-Tier) */
.agent-profile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-sizing: border-box;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

html.dark-side .agent-profile-badge,
[data-theme="dark"] .agent-profile-badge {
    background: rgba(100, 116, 139, 0.15);
    color: #cbd5e1;
    border-color: rgba(100, 116, 139, 0.35);
}

/* Nachweis-Spalte (kein Tier) */
.agent-evidence-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    box-sizing: border-box;
    text-transform: none;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
}

.agent-evidence-badge.is-metadata {
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.agent-evidence-badge.is-evidence {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

html.dark-side .agent-evidence-badge.is-metadata,
[data-theme="dark"] .agent-evidence-badge.is-metadata {
    background: rgba(156, 163, 175, 0.12);
    color: #9ca3af;
    border-color: rgba(156, 163, 175, 0.25);
}

html.dark-side .agent-evidence-badge.is-evidence,
[data-theme="dark"] .agent-evidence-badge.is-evidence {
    background: rgba(37, 99, 235, 0.15);
    color: #93c5fd;
    border-color: rgba(37, 99, 235, 0.35);
}
