/* Local Fonts */
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('../fonts/bricolage.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('../fonts/bricolage-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/plus-jakarta.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/plus-jakarta-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --renac-red: #E2001A;
    --renac-red-dark: #B51621;
    --renac-red-light: rgba(226, 0, 26, 0.1);
    --renac-gray: #1a1a1a;
    --renac-gray-medium: #64748b;
    --renac-gray-light: #f8fafc;
    --text-color: #1e293b;
    --bg-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --font-heading: 'Plus Jakarta Sans', 'Montserrat', sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Open Sans', sans-serif;
    --font-special: 'Bricolage Grotesque', sans-serif;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 40px -10px rgba(0, 0, 0, 0.1), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
    --side-padding: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    background-image: 
        radial-gradient(at 0% 0%, rgba(226, 0, 26, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(226, 0, 26, 0.05) 0px, transparent 50%);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Header */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-top-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--renac-red), var(--renac-red-dark));
}

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

.nav-container {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-divider {
    color: #e2e8f0;
    font-size: 1.5rem;
    font-weight: 200;
}

.logo-subtext {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--renac-gray);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 140px 2rem 80px;
    gap: 5rem;
}

.hero-content {
    flex: 1;
    z-index: 10;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--renac-gray);
    font-weight: 700;
    letter-spacing: -2px;
}

.text-accent {
    color: var(--renac-red);
    position: relative;
    display: inline-block;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--renac-gray-medium);
    max-width: 580px;
    margin-bottom: 2.5rem;
    font-weight: 400;
}


.login-card {
    background: #ffffff;
    border-radius: 40px;
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.15),
        0 18px 36px -18px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 460px;
    animation: premiumFadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    margin-top: 3.5rem;
}

@keyframes premiumFadeUp {
    from { opacity: 0; transform: translateY(40px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-header {
    padding: 2.5rem 3rem 1.5rem;
    text-align: left;
}

.login-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--renac-gray);
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-header p {
    font-size: 0.95rem;
    color: var(--renac-gray-medium);
}

.login-form {
    padding: 0 3rem 3.5rem;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--renac-gray-medium);
    margin-left: 4px;
}

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

.input-with-icon i {
    position: absolute;
    left: 1.25rem;
    color: #94a3b8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    pointer-events: none;
}

/* ------------------------------------------------------------------------- */
/* Customer Contacts Page Specific Styles                                    */
/* ------------------------------------------------------------------------- */

.markdown-content p {
    margin-bottom: 0.5rem;
}
.markdown-content p:last-child {
    margin-bottom: 0;
}
.markdown-content ul, .markdown-content ol {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}
@keyframes searchLoaderSlide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.global-ajax-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    pointer-events: none;
    display: none;
    background: rgba(59, 130, 246, 0.1);
    overflow: hidden;
}
.global-ajax-loader-bar {
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #3b82f6, #60a5fa, #3b82f6, transparent);
    animation: searchLoaderSlide 1.5s infinite ease-in-out;
}
.hover-bg-slate:hover {
    background-color: #f1f5f9 !important;
}

/* Modern Styles for Change Contact Dialog */
.contact-dialog-content {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
}
.contact-dialog-header {
    background: #ffffff;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 16px;
}
.contact-dialog-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-card {
    display: block;
    padding: 16px;
    text-decoration: none !important;
    color: inherit !important;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 8px;
}
.contact-card:last-child {
    margin-bottom: 0;
}
.contact-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}
.contact-card.selected {
    border-color: #0ea5e9;
    background: #f0f9ff;
    box-shadow: 0 0 0 1px #0ea5e9, 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.contact-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}
.contact-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    position: relative;
}
.selected .contact-card-avatar {
    background: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
}
.contact-card-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.05rem;
    margin-bottom: 2px;
}
.contact-card-position {
    font-size: 0.7rem;
    color: #0369a1;
    background: #e0f2fe;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}
.contact-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
}
.contact-card-body {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}
.selected .contact-card-body {
    border-top-color: #e0f2fe;
}
.contact-dialog-list .comment-item {
    margin-bottom: 6px !important;
    padding: 8px 12px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 3px solid #cbd5e1 !important;
    border-radius: 8px !important;
    position: relative;
}
.selected .contact-dialog-list .comment-item {
    background: #ffffff !important;
    border-color: #e0f2fe !important;
    border-left-color: #0ea5e9 !important;
}
.contact-dialog-list .comment-item:last-child {
    margin-bottom: 0 !important;
}
.contact-dialog-list .comment-item-text {
    color: #334155 !important;
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
}
.contact-dialog-list .comment-item-meta {
    color: #94a3b8 !important;
    font-size: 0.65rem !important;
    margin-top: 2px !important;
}
/* Remove grey line above row expansion and adjust appearance */
.ui-datatable .ui-expanded-row-content {
    border-top: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}
.ui-datatable tr.ui-row-expansion, 
.ui-datatable tr.ui-row-expansion:hover {
    background: transparent !important;
}
/* Fix for status selection spacing */
.ui-datatable tr.ui-expanded-row td .ui-column-custompadding {
    padding-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Ensure the selectOneMenu doesn't push down content in expanded rows */
.ui-datatable tr.ui-expanded-row .ui-selectonemenu {
    margin-bottom: 0 !important;
}

/* Target the TD in expansion row specifically */
.ui-datatable .ui-row-expansion > td {
    border-top: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Global table cleanup for expanded rows */
.ui-datatable tr.ui-expanded-row + tr.ui-row-expansion > td,
.ui-datatable tr.ui-row-expansion > td {
    padding: 0 !important;
    margin: 0 !important;
    border-top: none !important;
}
.contact-card-title {
    font-size: 0.85rem;
    color: #64748b;
}
.contact-card-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}
.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #475569;
}
.contact-detail-item i {
    width: 14px;
    color: #94a3b8;
}
.selected-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #0ea5e9;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Responsive fixes for columns */
.ui-datatable th.ui-column-priority-1 {
    min-width: 350px !important;
}
@media screen and (max-width: 1200px) {
    .ui-datatable th.ui-column-priority-1 {
        min-width: 250px !important;
    }
}

/* Force no padding on the expansion content wrapper */
.ui-datatable .ui-row-expansion .ui-expanded-row-content {
    padding: 0 !important;
    margin: 0 !important;
    border-top: none !important;
}

.ui-datatable tr.ui-expanded-row > td {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    vertical-align: top !important;
}

.relevance-badge {
    padding: 5px;
    border-radius: 50%;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-weight: bold;
    color: white;
}

/* New helper classes for consistent button positioning */
.column-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 40px;
}

.column-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.column-title {
    flex-grow: 1;
    padding-right: 70px; /* Space for buttons */
}

.column-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.relevance-badge {
    padding: 5px;
    border-radius: 50%;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-weight: bold;
    color: white;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    background: #f1f5f9;
    color: #64748b;
}
.relevance-high { color: #22c55e !important; border-color: #bbf7d0 !important; }
.relevance-medium { color: #f59e0b !important; border-color: #fef3c7 !important; }
.relevance-low { color: #ef4444 !important; border-color: #fecaca !important; }

/* AI Analysis Box improvements */
.ai-analysis-box {
    padding: 12px 20px;
    margin: 0 15px 15px 15px;
    font-size: 0.85rem;
    color: #334155;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
    border-left: 4px solid #64748b;
    background: #f1f5f9;
}
.ai-analysis-high { background: #f0fdf4 !important; border-left-color: #22c55e !important; }
.ai-analysis-medium { background: #fffbeb !important; border-left-color: #f59e0b !important; }
.ai-analysis-low { background: #fee2e2 !important; border-left-color: #ef4444 !important; }

.ai-analysis-title {
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.ai-analysis-title-high { color: #15803d !important; }
.ai-analysis-title-medium { color: #b45309 !important; }
.ai-analysis-title-low { color: #b91c1c !important; }

/* Ensure p:rowExpansion doesn't add any height if it's not rendered or empty */
/* === AI & Agent specific styles === */
.ai-toast {
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    padding: 6px 18px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 700px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(10px);
    animation: aiToastIn 0.3s ease forwards;
    border: 1px solid rgba(100, 116, 139, 0.2);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.ai-toast .ai-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #22d3ee;
    animation: aiPulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
.ai-toast.ai-toast-out {
    animation: aiToastOut 0.4s ease forwards;
}
@keyframes aiToastIn {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes aiToastOut {
    to { opacity: 0; transform: translateY(6px); }
}
@keyframes aiPulse {
    0% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(227, 6, 19, 0); }
    100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0); }
}
.agent-active-pulse {
    animation: aiPulse 2s infinite !important;
}
@keyframes pulse-neu {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.7; }
}
@keyframes pulse4 {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.45); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 14px rgba(227, 6, 19, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(227, 6, 19, 0); }
}
.active-filter-alert {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
}
.pulse-4 {
    animation: pulse4 1.2s ease-in-out 4 !important;
}
.agent-log-container {
    transition: all 0.3s ease-in-out;
    max-height: 200px;
}
.agent-log-container.collapsed {
    max-height: 48px !important;
    overflow: hidden !important;
}
.pretty-tooltip .ui-tooltip-text {
    max-width: 520px !important;
    line-height: 1.4 !important;
    font-size: 0.85rem !important;
    white-space: normal !important;
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    padding: 12px !important;
    border-radius: 8px !important;
}

/* === Eigene Liste – Genesis-inspired premium panel === */
#eigeneListePanel {
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    font-family: 'Inter', -apple-system, sans-serif;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
#eigeneListePanel:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}
#eigeneListePanel.has-liste {
    border-left: 4px solid #3b82f6;
}

/* Toolbar-Zeile */
#eigeneListePanel .el-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #fafafa;
    border-bottom: 1px solid #f1f5f9;
}

/* Icon + Titel */
#eigeneListePanel .el-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 6px 10px;
    margin-left: -10px;
    border-radius: 10px;
    transition: background 0.2s ease;
    cursor: pointer;
    text-decoration: none !important;
}
#eigeneListePanel .el-brand:hover {
    background: #f1f5f9;
}
#eigeneListePanel .el-brand .el-brand-title { 
    color: #1e293b !important; 
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    user-select: none;
}
#eigeneListePanel .el-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #3b82f6;
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    user-select: none;
}
#eigeneListePanel .el-brand-icon .el-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid white;
}

/* Chevron */
#eigeneListePanel .el-chevron {
    font-size: 0.75rem;
    color: #94a3b8;
    transition: transform 0.3s ease;
    user-select: none;
}
#eigeneListePanel .el-brand:hover .el-chevron {
    color: #3b82f6;
}

/* Spacer */
#eigeneListePanel .el-spacer { flex: 1; }

/* Eigene Upload-Drop-Zone */
#eigeneListePanel .el-upload-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 50px;
    padding: 0 24px;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
#eigeneListePanel .el-upload-zone:hover,
#eigeneListePanel .el-upload-zone.drag-over {
    border-color: #3b82f6;
    background: #f0f7ff;
    color: #2563eb;
}
#eigeneListePanel .el-upload-zone .el-upload-icon {
    font-size: 1.1rem;
    color: #3b82f6;
}
#eigeneListePanel .el-upload-zone .el-upload-sub {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Buttons */
#eigeneListePanel .el-icon-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}
#eigeneListePanel .el-icon-btn:hover {
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    transform: translateY(-1px);
}
#eigeneListePanel .el-icon-btn.danger:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border-color: #fee2e2 !important;
}
.el-delete-link:hover {
    background: #fef2f2;
    transform: scale(1.1);
}
#eigeneListePanel .el-btn {
    height: 40px !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    border: 1px solid #e2e8f0 !important;
    background: white !important;
    color: #334155 !important;
    transition: all 0.2s ease !important;
}
#eigeneListePanel .el-btn:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}
#eigeneListePanel .el-btn.danger {
    background: #ef4444 !important;
    color: white !important;
    border: none !important;
}
#eigeneListePanel .el-btn.danger:hover {
    background: #dc2626 !important;
}
#eigeneListePanel .el-msg {
    margin: 0 16px 10px 16px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.01em;
}

.form-input {
    width: 100%;
    height: 54px;
    padding: 0 1rem 0 3.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fdfdfd;
    color: var(--renac-gray);
}

.form-input:focus {
    outline: none;
    border-color: var(--renac-red);
    background: #fff;
    box-shadow: 0 8px 20px rgba(226, 0, 26, 0.12);
    transform: translateY(-2px);
}

.form-input:focus ~ i {
    color: var(--renac-red);
    transform: scale(1.15);
}

.form-actions {
    margin-top: 2.5rem;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.flex-1 { flex: 1; min-width: 250px; }
.flex-2 { flex: 2; min-width: 250px; }

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 2rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--renac-red), var(--renac-red-dark));
    color: #fff;
    box-shadow: 0 10px 25px -5px rgba(226, 0, 26, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -10px rgba(181, 22, 33, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--renac-gray);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.btn-white {
    background: #ffffff;
    color: var(--renac-gray);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
}

.logout-btn {
    height: 40px;
    padding: 0 1.25rem;
    font-size: 0.8rem;
    background: #f1f5f9;
    color: var(--renac-gray);
    box-shadow: none;
    border: 1px solid #e2e8f0;
}

.logout-btn:hover {
    background: var(--renac-red-light);
    color: var(--renac-red);
    border-color: var(--renac-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 0, 26, 0.1);
}

.logout-btn i {
    display: none;
    font-size: 1.1rem;
}

.menu-trigger {
    font-size: 1.35rem;
    color: var(--renac-gray);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.menu-trigger:hover {
    color: var(--renac-red);
    background: white;
    border-color: var(--renac-red);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(226, 0, 26, 0.1);
}

/* Side Menu */
.side-menu {
    height: 100%;
    width: 320px;
    position: fixed;
    z-index: 2000;
    top: 0;
    right: -320px;
    left: auto;
    background-color: #fff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    overflow-x: hidden;
    transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    padding-top: 0;
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    right: 0;
    left: auto;
}

.side-menu-header {
    padding: 2rem;
    background: var(--renac-gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.side-menu-logo {
    height: 35px;
    width: auto;
}

.side-menu .close-btn {
    font-size: 2.5rem;
    color: var(--renac-gray-medium);
    text-decoration: none;
    line-height: 1;
}

.side-menu .close-btn:hover {
    color: var(--renac-red);
}

.side-menu-content {
    padding: 2rem 0;
}

.side-menu-content a {
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--renac-gray);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: 0.3s;
}

.side-menu-content a i {
    width: 24px;
    color: var(--renac-red);
    font-size: 1.2rem;
}

.side-menu-content a:hover {
    background-color: var(--renac-red-light);
    color: var(--renac-red);
    padding-left: 2.5rem;
}

.menu-divider {
    height: 1px;
    background: rgba(0,0,0,0.05);
    margin: 1.5rem 2rem;
}

.menu-overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1999;
    backdrop-filter: blur(4px);
    transition: opacity 0.5s;
    opacity: 0;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.welcome-text {
    font-weight: 600;
    color: var(--renac-gray-medium);
}

@media (max-width: 600px) {
    :root {
        --side-padding: 0;
    }
    .header {
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        border-top: none;
        border-left: none;
        border-right: none;
    }
    .side-menu {
        width: 100%;
        right: -100%;
        left: auto;
    }
    .welcome-text, .logout-text {
        display: none !important;
    }
    .logout-btn {
        padding: 0 !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .logout-btn i {
        display: block !important;
        margin: 0 !important;
        font-size: 1.4rem !important;
    }
    .nav-container {
        padding: 0.5rem var(--side-padding, 1rem);
    }
    .logo {
        padding-left: 0;
    }
    .nav-links {
        padding-right: 0;
        gap: 0.5rem;
        display: flex;
        align-items: center;
    }
    .logo-subtext, .logo-divider {
        display: none !important;
    }
    .logo-img {
        height: 25px;
    }
    #sideMenuTrigger {
        order: 10;
    }
    .menu-trigger {
        font-size: 1.8rem;
        padding: 0;
        color: var(--renac-red);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
    }
    .menu-trigger:hover {
        transform: scale(1.1);
        background: transparent;
    }
}

.btn-block {
    width: 100%;
}

/* Hero Image Section */
.hero-image {
    flex: 1;
    position: relative;
    height: 600px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.15);
    animation: premiumFadeRight 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes premiumFadeRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
    display: block;
}

.hero-image:hover .hero-img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 8px;
    right: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    font-weight: 400;
    pointer-events: none;
    z-index: 5;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(225deg, rgba(181, 22, 33, 0.2), transparent 70%);
}

/* Dashboard / Welcome */
.welcome-box {
    background: #fff;
    padding: 3rem;
    border-radius: 24px;
    border-left: 8px solid var(--renac-red);
    box-shadow: var(--shadow-premium);
    margin-bottom: 2.5rem;
}

.welcome-box h2 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--renac-gray);
}

/* Footer */
/* System Status */
.system-status-container {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.system-status-container h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--renac-gray);
    font-weight: 700;
}

.status-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--renac-gray-medium);
}

.status-item i {
    font-size: 1.1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-item.status-online i {
    color: #166534;
}

.status-item.status-offline i {
    color: #991b1b;
}

.status-online {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-offline {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.footer {
    background: #fff;
    padding: 4rem 2rem;
    margin-top: 6rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info p {
    color: var(--renac-gray-medium);
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-links a {
    color: var(--renac-gray-medium);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--renac-red);
}

.error-message {
    background: #fff1f2;
    color: #be123c;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    list-style: none;
    border: 1px solid #fecdd3;
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --side-padding: 1.5rem;
    }
    
    .hero {
        flex-direction: column;
        padding-top: 120px;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    
    .login-card {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    
    .hero-image {
        width: 100%;
        height: 400px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }
}

.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-group .form-input {
    flex: 1;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--renac-gray-light);
    color: var(--renac-gray);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    font-size: 1.2rem;
}

.btn-icon:hover {
    background: var(--renac-red-light);
    color: var(--renac-red);
    border-color: var(--renac-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 0, 26, 0.1);
}

.form-divider {
    display: flex;
    align-items: center;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1.5rem 0;
}

.form-divider::before,
.form-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.form-divider span {
    padding: 0 10px;
}

.pulse-important {
    animation: pulse-border 1.5s ease-in-out 3;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(226, 0, 26, 0.4);
        border-color: var(--renac-red);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(226, 0, 26, 0);
        border-color: var(--renac-red-dark);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(226, 0, 26, 0);
        border-color: #e2e8f0;
    }
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.flex-1 { flex: 1; min-width: 250px; }
.flex-2 { flex: 2; min-width: 250px; }

.container {
    width: 100%;
    margin: 0;
    padding-left: var(--side-padding);
    padding-right: var(--side-padding);
    box-sizing: border-box;
}
.data-table .ui-datatable-data td {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    padding: 2px 8px !important;
}

@keyframes aiPulseGlobal {
    0% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(227, 6, 19, 0); }
    100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0); }
}

.agent-active-pulse {
    animation: aiPulseGlobal 2s infinite !important;
    border-radius: 4px;
}

.data-table .ui-column-title {
    white-space: normal !important;
}

/* Deaktiviert Animationen/Transitions in Bereichen, die per Poll aktualisiert werden */
.no-anim, .no-anim * {
    animation: none !important;
    transition: none !important;
}


/* Modern Status Select Dropdown */
.status-select-modern .ui-selectonemenu-label {
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    border: 2px solid #e2e8f0 !important;
    background: linear-gradient(135deg, #f8fafc, #ffffff) !important;
}
.status-select-modern:hover .ui-selectonemenu-label {
    border-color: #00457d !important;
    box-shadow: 0 4px 12px rgba(0, 69, 125, 0.15) !important;
}
.status-select-modern .ui-selectonemenu-trigger {
    border-radius: 0 10px 10px 0 !important;
    background: linear-gradient(135deg, #00457d, #0066b3) !important;
    color: white !important;
    width: 40px !important;
}
.status-panel-modern {
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 69, 125, 0.2) !important;
    border: none !important;
    overflow: hidden !important;
}
.status-panel-modern .ui-selectonemenu-item {
    padding: 14px 18px !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
    border-left: 4px solid transparent !important;
}
.status-panel-modern .ui-selectonemenu-item:hover {
    background: linear-gradient(135deg, #e8f4fd, #d0e8f7) !important;
    border-left-color: #00457d !important;
    padding-left: 22px !important;
}
.status-panel-modern .ui-selectonemenu-item.ui-state-highlight {
    background: linear-gradient(135deg, #00457d, #0066b3) !important;
    color: white !important;
}

/* Premium Tooltip */
.ui-tooltip.premium-tooltip {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.premium-tooltip .ui-tooltip-text {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #1e293b !important;
    border: 1px solid rgba(226, 0, 26, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
    padding: 0 !important;
    overflow: hidden;
}

.tooltip-container {
    padding: 16px;
    max-width: 500px;
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tooltip-header i {
    color: var(--renac-red);
    font-size: 1.2rem;
}

.tooltip-header span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--renac-gray);
}

.tooltip-body {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #475569;
}

.tooltip-footer {
    margin-top: 10px;
    padding-top: 8px;
    font-size: 0.75rem;
    color: #94a3b8;
    border-top: 1px dotted #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

/* Autocomplete Styles */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    margin-top: 8px;
    z-index: 1100;
    display: none;
    overflow: hidden;
    padding: 8px 0;
}
.autocomplete-item {
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: all 0.2s;
    font-size: 0.95rem;
    color: #1e293b;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}
.autocomplete-item:last-child {
    border-bottom: none;
}
.autocomplete-item:hover, .autocomplete-item.active {
    background: #f8fafc;
    color: var(--renac-red);
    padding-left: 24px;
}
.autocomplete-label {
    font-weight: 600;
}
.autocomplete-sublabel {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
}
.autocomplete-sublabel i {
    font-size: 0.7rem;
    opacity: 0.6;
}
.global-autocomplete-dropdown {
    width: 300px;
    font-size: 0.85rem;
}
/* Styling für das Autocomplete in der Hauptsuche auf suchen.xhtml */
.search-input-wrapper .main-autocomplete-dropdown {
    right: 140px; /* Platz für den Suchen-Button lassen */
}

/* Filter Buttons */
.btn-filter {
    padding: 2px 10px !important;
    font-size: 0.75rem !important;
    height: 26px !important;
    border-radius: 15px !important;
    transition: all 0.2s ease-in-out !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* Verhindert Breitenänderung bei Auswahl durch reservierten Platz für Fettdruck */
.btn-filter::after {
    display: block !important;
    content: attr(data-text) !important;
    font-weight: 700 !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

.btn-filter.ui-state-active, .btn-filter.btn-primary {
    font-weight: 700 !important;
}

/* Technologie-Filter spezifisch */
.btn-tech {
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
    color: #64748b !important;
}

.btn-tech.is-project {
    border-color: #00457d !important;
    background: #e6f0f9 !important;
    color: #00457d !important;
    font-weight: 600 !important;
}

.btn-tech.ui-state-active, .btn-tech.btn-primary {
    border-color: #00457d !important;
    background: #00457d !important;
    color: white !important;
}

/* GeoLok-Filter spezifisch */
.btn-geolok {
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
    color: #64748b !important;
}

.btn-geolok.is-project {
    border-color: #00457d !important;
    background: #e6f0f9 !important;
    color: #00457d !important;
    font-weight: 600 !important;
}

.btn-geolok.ui-state-active, .btn-geolok.btn-primary {
    border-color: #00457d !important;
    background: #00457d !important;
    color: white !important;
}

/* Schnittmenge/Union Button */
.btn-logic {
    font-weight: 600 !important;
}

.btn-logic.is-intersection {
    border: 1px solid #059669 !important;
    background: #d1fae5 !important;
    color: #065f46 !important;
}

.btn-logic.is-union {
    border: 1px solid #f59e0b !important;
    background: #fef3c7 !important;
    color: #92400e !important;
}
.geolok-chip-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 36px;
    padding: 4px 0;
}
.geolok-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    border-radius: 999px;
    padding: 3px 10px 3px 8px;
    font-size: 0.85rem;
    color: #0369a1;
    white-space: nowrap;
}
.geolok-chip-typ {
    background: #0ea5e9;
    color: #fff;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.geolok-chip-remove.ui-button {
    background: transparent !important;
    border: none !important;
    color: #0369a1 !important;
    padding: 0 !important;
    width: 18px !important;
    height: 18px !important;
    min-width: unset !important;
    box-shadow: none !important;
    margin-left: 2px;
}
/* Dialog & Layout Enhancements */
.ui-dialog-no-padding {
    padding: 0 !important;
    border: none !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}
.ui-dialog-no-padding .ui-dialog-content {
    padding: 0 !important;
    background: none !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

@keyframes pulse-save {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 69, 125, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 69, 125, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 69, 125, 0); }
}
.pulsing-save, .pulse-button, .btn-save-pulsing-customer {
    animation: pulse-save 1.5s infinite !important;
    background: #27ae60 !important;
}

.diff-highlight {
    background-color: #fff9c4;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: bold;
    border-bottom: 1px dashed #fbc02d;
}

.preview-section-title {
    font-weight: bold;
    font-size: 0.9rem;
    color: #0d47a1;
    margin-bottom: 0.5rem;
    display: block;
}
.action-badge {
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 5px;
}
.action-merge { background: #fff9c4; color: #f57f17; border: 1px solid #fbc02d; }
.action-new { background: #c8e6c9; color: #2e7d32; border: 1px solid #81c784; }
.project-new { border-left: 3px solid #4caf50; padding-left: 5px; margin-bottom: 2px; }
.result-preview {
    background: #f1f8f1;
    border: 2px dashed #2e7d32;
    border-radius: 8px;
    padding: 1rem;
    margin: 0 1rem 1rem 1rem;
}
.result-preview h4 {
    margin-top: 0;
    color: #1b5e20;
    font-size: 1rem;
    border-bottom: 1px solid #c8e6c9;
    padding-bottom: 0.5rem;
}
.preview-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 5px;
    font-size: 0.85rem;
}
.preview-label { font-weight: bold; color: #555; }
.preview-value { width: 100%; display: block; }
.comment-item {
    border-bottom: 1px dotted #ccc;
    padding: 4px 0;
    font-size: 0.8rem;
}
.comment-meta {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 2px;
}
.merge-preview {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 1rem;
    margin: 0 1rem 1rem 1rem;
}
.merge-preview h4 {
    margin-top: 0;
    color: #0d47a1;
    font-size: 1rem;
    border-bottom: 1px solid #bbdefb;
    padding-bottom: 0.5rem;
}
.company-panel {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 1rem;
}
.company-panel.is-master {
    border-color: #2e7d32;
    background-color: #f1f8f1;
}
.master-badge {
    background: #2e7d32;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}
.reason-box {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 0.75rem;
    margin: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}
.list-title {
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 1rem;
    border-bottom: 1px solid #eee;
}
.item-list {
    font-size: 0.8rem;
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.geolok-chip-remove.ui-button:hover {
    color: #dc2626 !important;
}
.geolok-parent {
    font-size: 0.75rem;
    color: #0284c7;
    font-weight: 600;
    opacity: 0.7;
}
/* AI Dialog Styles */
.ai-dialog .ui-dialog-content { background: #f0f2f5; padding: 0 !important; }
.ai-dialog .ui-dialog-titlebar { background: linear-gradient(135deg, #00457d, #003060); color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: 0.5px; border: none; border-radius: 0; }
.ai-dialog .ui-dialog-titlebar-close span { color: #fff; }
.ai-dialog-body { display: flex; flex-direction: column; gap: 16px; padding: 20px 24px; height: 100%; box-sizing: border-box; }

.ai-section { background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); overflow: hidden; }
.ai-section-header { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; padding: 12px 18px; display: flex; align-items: center; gap: 8px; }
.ai-section-prompt { border-top: 3px solid #00457d; }
.ai-section-prompt .ai-section-header { color: #00457d; cursor: pointer; list-style: none; }
.ai-section-prompt .ai-section-header::-webkit-details-marker { display: none; }
.ai-section-prompt .ai-section-header::before { content: '▸'; transition: transform 0.2s; font-size: 0.7rem; }
.ai-section-prompt[open] .ai-section-header::before { transform: rotate(90deg); }
.ai-prompt-pre { white-space: pre-wrap; font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.82rem; color: #334155; background: #f8fafc; margin: 0; padding: 14px 18px; max-height: 140px; overflow-y: auto; border-top: 1px solid #e8ecf0; line-height: 1.6; }

.ai-section-result { border-top: 3px solid var(--renac-red, #E2001A); flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ai-section-header-result { color: var(--renac-red, #E2001A); }

.ai-result-container { flex: 1; overflow-y: auto; padding: 16px 18px; min-height: 80px; }
.ai-result-container > [id$="aiRawJson"] { display: none !important; }

/* Loading animation */
.ai-loading { display: flex; align-items: center; gap: 14px; padding: 24px 18px; color: #64748b; font-size: 0.95rem; }
.ai-loading-dots { display: flex; gap: 5px; }
.ai-loading-dots span { width: 8px; height: 8px; border-radius: 50%; background: #00457d; animation: ai-dot-bounce 1.4s ease-in-out infinite; }
.ai-loading-dots span:nth-child(2) { animation-delay: 0.16s; }
.ai-loading-dots span:nth-child(3) { animation-delay: 0.32s; }
@keyframes ai-dot-bounce { 0%,80%,100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }

/* JSON Tree */
.ai-json-tree { font-family: 'Open Sans', sans-serif; font-size: 0.9rem; }
.aj-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; animation: aj-fade-in 0.4s ease both; transition: box-shadow 0.2s, transform 0.2s; }
.aj-card:hover { box-shadow: 0 4px 16px rgba(0,69,125,0.1); transform: translateY(-1px); }
@keyframes aj-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.aj-key { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.8px; color: #00457d; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.aj-key::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, #00457d, #0070c0); flex-shrink: 0; }

.aj-val { color: #1e293b; line-height: 1.6; font-size: 0.92rem; }
.aj-high { background: linear-gradient(135deg, #e74c3c, #d35400); color: #fff !important; padding: 4px 14px; border-radius: 20px; font-weight: 700; font-size: 0.82rem; display: inline-block; text-transform: uppercase; letter-spacing: 0.5px; animation: aj-pulse-high 2s ease-in-out infinite; }
@keyframes aj-pulse-high { 0%,100% { box-shadow: 0 0 0 0 rgba(231,76,60,0.5); } 50% { box-shadow: 0 0 14px 4px rgba(231,76,60,0.2); } }
.aj-medium { background: #f59e0b; color: #fff !important; padding: 4px 14px; border-radius: 20px; font-weight: 700; font-size: 0.82rem; display: inline-block; text-transform: uppercase; }
.aj-low { color: #64748b; }
.aj-number { font-family: 'JetBrains Mono', 'Fira Code', monospace; color: #0070c0; font-weight: 600; }
.aj-bool-true { color: #16a34a; font-weight: 600; }
.aj-bool-false { color: #dc2626; font-weight: 600; }
.aj-null { color: #94a3b8; font-style: italic; }
.aj-link { color: #00457d; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.aj-link:hover { color: var(--renac-red, #E2001A); }

.aj-nested { margin-top: 8px; padding-left: 4px; }
.aj-array-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; animation: aj-fade-in 0.4s ease both; }
.aj-index { background: #00457d; color: #fff; min-width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.aj-value-wrap { flex: 1; }

.aj-primitive { color: #1e293b; }

.ai-json-fallback { white-space: pre-wrap; font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.85rem; color: #334155; background: #f8fafc; padding: 14px; border-radius: 8px; border: 1px solid #e2e8f0; line-height: 1.6; }

.ai-dialog-footer { text-align: right; padding-top: 4px; }
.ai-close-btn.ui-button { background: #00457d !important; border: none !important; border-radius: 6px !important; font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; letter-spacing: 0.3px; transition: background 0.2s !important; }
.ai-close-btn.ui-button:hover { background: #003060 !important; }

/* AI Loading Overlay */
.ai-overlay { position: fixed; inset: 0; z-index: 99999; background: rgba(0,20,50,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; }
.ai-overlay-card { background: #fff; border-radius: 16px; padding: 40px 48px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.25); animation: aj-fade-in 0.3s ease both; }
.ai-overlay-brain { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 20px; }
.ai-overlay-brain > i { font-size: 2rem; color: #00457d; z-index: 1; animation: ai-brain-pulse 2s ease-in-out infinite; }
@keyframes ai-brain-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.ai-overlay-rings { position: absolute; inset: 0; }
.ai-overlay-rings span { position: absolute; inset: 0; border: 2px solid transparent; border-top-color: #00457d; border-radius: 50%; animation: ai-ring-spin 1.6s linear infinite; }
.ai-overlay-rings span:nth-child(2) { inset: 6px; border-top-color: var(--renac-red, #E2001A); animation-duration: 2.2s; animation-direction: reverse; }
.ai-overlay-rings span:nth-child(3) { inset: 12px; border-top-color: #0070c0; animation-duration: 1.8s; }
@keyframes ai-ring-spin { to { transform: rotate(360deg); } }
.ai-overlay-text { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.15rem; color: #00457d; margin-bottom: 6px; }
.ai-overlay-sub { font-family: 'Open Sans', sans-serif; font-size: 0.85rem; color: #64748b; margin-bottom: 20px; }
.ai-overlay-bar { width: 180px; height: 4px; background: #e2e8f0; border-radius: 4px; overflow: hidden; margin: 0 auto; }
.ai-overlay-bar-fill { width: 40%; height: 100%; background: linear-gradient(90deg, #00457d, var(--renac-red, #E2001A), #00457d); border-radius: 4px; animation: ai-bar-slide 1.8s ease-in-out infinite; }
@keyframes ai-bar-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
.ai-overlay-card { min-width: 400px; max-width: 600px; }
.ai-overlay-log-container { margin-top: 20px; background: #1e293b; color: #e2e8f0; border-radius: 8px; padding: 10px 12px; font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace; font-size: 0.72rem; max-height: 150px; overflow-y: auto; text-align: left; line-height: 1.4; }
.ai-overlay-log-line { margin-bottom: 3px; padding: 3px 6px; border-left: 2px solid #3b82f6; background: rgba(59, 130, 246, 0.1); border-radius: 0 4px 4px 0; word-break: break-word; }
.ai-overlay-log-line:last-child { margin-bottom: 0; }

/* Pulsierender Suchbegriff */
@keyframes search-highlight-pulse {
    0%, 100% {
        background-color: #ffeb3b;
        box-shadow: 0 0 0 0 rgba(255, 235, 59, 0.7);
    }
    50% {
        background-color: #ffc107;
        box-shadow: 0 0 8px 4px rgba(255, 193, 7, 0.5);
    }
}
.search-highlight {
    background-color: #ffeb3b;
    padding: 1px 3px;
    border-radius: 3px;
    animation: search-highlight-pulse 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 69, 125, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 15px 5px rgba(0, 69, 125, 0.4);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 69, 125, 0.7);
        transform: scale(1);
    }
}

.ai-pulse-button {
    animation: pulse-glow 2s infinite ease-in-out;
    position: relative;
    overflow: visible;
}

/* Genesis Premium Table Customizations */
.ui-datatable-premium .ui-datatable-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 16px 24px !important;
}

.ui-datatable-premium .ui-datatable-data tr {
    transition: all 0.2s ease;
}

.ui-datatable-premium .ui-datatable-data tr:hover {
    background-color: #f1f5f9 !important;
}

/* Modern tooltips */
.modern-tooltip {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    max-width: 400px !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}

.modern-tooltip .ui-tooltip-arrow {
    border-bottom-color: #ffffff !important;
}

/* Premium card for statistics */
.stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 4px;
}

/* AI Log JSON Styles */
.ai-log-json .json-string {
    color: #86efac;
}
.ai-log-json .json-number {
    color: #fcd34d;
}
.ai-log-json .json-boolean {
    color: #f472b6;
}
.ai-log-json .json-null {
    color: #94a3b8;
}
.ai-section-logs summary {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 8px 8px 0 0;
}
.ai-section-logs[open] summary {
    border-radius: 8px 8px 0 0;
}
.ai-section-logs .ai-log-container {
    border-radius: 0 0 8px 8px;
}

/* KI-Analyse Styling */
.ai-analysis-display {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 5px;
    position: relative;
    min-height: 120px;
    max-height: 450px;
    overflow-y: auto;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-left: 4px solid #00457d;
}
.ai-analysis-display:hover {
    border-color: #00457d;
    box-shadow: 0 4px 12px rgba(0, 69, 125, 0.08);
}
.ai-analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-left: 4px;
}
.ai-analysis-header label {
    margin-bottom: 0 !important;
    color: #00457d !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ai-analysis-header label i {
    color: #00457d;
}
.ai-analysis-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
}
.ai-analysis-content p {
    margin-bottom: 1rem;
}
.ai-analysis-content p:last-child {
    margin-bottom: 0;
}
.ai-analysis-content strong {
    color: #00457d;
    font-weight: 600;
}
.ai-analysis-placeholder {
    color: #94a3b8;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    font-size: 0.9rem;
}

.data-table th {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 2px solid #00457d;
    color: #00457d;
    font-weight: 700;
}
.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}
.data-table tr:hover {
    background-color: #f9f9f9;
}
.contact-edit-dialog .ui-dialog-titlebar {
    display: none !important;
}
.contact-edit-dialog .ui-dialog-content {
    padding: 0 !important;
    background: #f8fafc;
}
.contact-edit-dialog .ui-dialog-footer {
    padding: 16px 24px !important;
    background: white !important;
    border-top: 1px solid #e2e8f0 !important;
}
.data-table tr:hover .lock-name {
    display: inline;
}
.badge {
    display: inline-block;
    white-space: nowrap;
}

@keyframes pulse-save {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 69, 125, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 69, 125, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 69, 125, 0); }
}
.pulsing-save {
    animation: pulse-save 1.5s infinite !important;
    background: #00457d !important;
}
.ui-dialog-no-padding .ui-dialog-content {
    padding: 0 !important;
}

/* Compact Form Styles */
.status-badge-input {
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    font-weight: 700;
    color: #00457d;
    padding: 8px 16px;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.status-badge-input:focus {
    background: #fff;
    border-color: #00457d;
    box-shadow: 0 4px 12px rgba(0, 69, 125, 0.15);
    transform: translateY(-1px);
}

.contact-edit-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
    background: #f8fafc;
}
.form-group-compact {
    margin-bottom: 12px;
}
.form-group-compact label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}
.form-input-compact, .form-input-compact.ui-selectonemenu {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    background: #ffffff;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input-compact.ui-selectonemenu .ui-selectonemenu-label {
    height: 40px;
    line-height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: left;
}
.form-input-compact.ui-selectonemenu .ui-selectonemenu-trigger {
    background: transparent;
    border: none;
    width: 30px;
}
.form-input-compact:focus {
    outline: none;
    border-color: #00457d;
    box-shadow: 0 0 0 3px rgba(0, 69, 125, 0.1);
}
textarea.form-input-compact {
    height: auto;
    min-height: 100px;
    padding: 12px 14px;
    line-height: 1.5;
}
.checkbox-compact {
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkbox-compact .ui-chkbox-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}
.checkbox-compact label {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
}

.ai-toggle-btn.ui-button {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
}
.ai-toggle-btn.ui-button:hover {
    background: #f1f5f9 !important;
    color: #00457d !important;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.data-table th {
    background: #f8fafc;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}
.data-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.data-table tr:hover td {
    background: #f1f5f9;
}
.data-table tr:last-child td {
    border-bottom: none;
}
.data-table tr.active-row td {
    background: #eff6ff;
    border-bottom-color: #dbeafe;
}
.data-table .lock-name {
    display: none;
    color: #64748b;
    font-size: 0.8rem;
    margin-left: 8px;
}
