/**
 * EE Activity Hub Styles (Fullscreen)
 *
 * Stufe 10 — Vollbild-Hub fuer Aktivitaeten + Aufgaben + Notizen + Uebergaben
 *
 * @package energyExperts
 * @since v2.11.0
 */

/* ===========================
 * Root + Backdrop + Container
 * =========================== */
.ee-activity-hub-root {
    position: fixed;
    inset: 0;
    z-index: 100100;
    display: none;
}
.ee-activity-hub-root.is-open {
    display: block;
}
body.ee-hub-open {
    overflow: hidden;
}

.ee-hub-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: pointer;
    z-index: 1;
}

.ee-hub-container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    background: #f8fafc;
    color: #1f2933;
    animation: ee-hub-slide-in 0.22s ease-out;
}
@keyframes ee-hub-slide-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
 * Sidebar (Tab-Nav)
 * =========================== */
.ee-hub-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #1f2933;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
    gap: 18px;
}

.ee-hub-brand {
    padding: 0 6px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ee-hub-brand-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #ffffff;
}

.ee-hub-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ee-hub-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: inherit;
}
.ee-hub-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}
.ee-hub-nav-item.is-active {
    background: var(--primary-color, #2d7a3e);
    color: #ffffff;
}
.ee-hub-nav-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
}
.ee-hub-nav-icon svg {
    width: 18px;
    height: 18px;
}
.ee-hub-nav-label {
    flex: 1 1 auto;
}
.ee-hub-nav-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.ee-hub-nav-badge:empty {
    display: none;
}

/* ===========================
 * Main (Topbar + Content)
 * =========================== */
.ee-hub-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ee-hub-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}
.ee-hub-tab-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2933;
}
.ee-hub-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #4b5563;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}
.ee-hub-close:hover {
    background: #f3f4f6;
    color: #1f2933;
}
.ee-hub-close svg {
    width: 18px;
    height: 18px;
}

.ee-hub-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px 24px;
}

/* ===========================
 * Sections
 * =========================== */
.ee-hub-section + .ee-hub-section {
    margin-top: 24px;
}

.ee-hub-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}
.ee-hub-section-head h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ee-hub-section-meta {
    font-size: 12px;
    color: #6b7280;
}

.ee-hub-loading,
.ee-hub-skel,
.ee-hub-empty {
    padding: 24px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px dashed #e5e7eb;
}

/* ===========================
 * KPI Cards
 * =========================== */
.ee-hub-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    background: transparent;
}

.ee-hub-kpi-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ee-hub-kpi-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.ee-hub-kpi-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.ee-hub-kpi-num {
    font-size: 28px;
    font-weight: 700;
    color: #1f2933;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.ee-hub-kpi-unit {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.ee-hub-kpi-trend {
    display: inline-flex;
    margin-left: auto;
}
.ee-hub-kpi-trend svg {
    width: 16px;
    height: 16px;
}

.ee-hub-kpi-card.is-up   .ee-hub-kpi-trend { color: #16a34a; }
.ee-hub-kpi-card.is-down .ee-hub-kpi-trend { color: #dc2626; }
.ee-hub-kpi-card.is-flat .ee-hub-kpi-trend { color: #94a3b8; }

.ee-hub-kpi-sub {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

.ee-hub-kpi-card.score {
    background: linear-gradient(135deg, #1f2933 0%, #2d7a3e 100%);
    color: #ffffff;
    border-color: transparent;
}
.ee-hub-kpi-card.score .ee-hub-kpi-label { color: rgba(255,255,255,0.75); }
.ee-hub-kpi-card.score .ee-hub-kpi-num   { color: #ffffff; }
.ee-hub-kpi-card.score .ee-hub-kpi-unit  { color: rgba(255,255,255,0.7); }
.ee-hub-kpi-card.score .ee-hub-kpi-sub   { color: rgba(255,255,255,0.7); }
.ee-hub-kpi-card.score.is-down {
    background: linear-gradient(135deg, #1f2933 0%, #b91c1c 100%);
}
.ee-hub-kpi-card.score.is-flat {
    background: linear-gradient(135deg, #1f2933 0%, #b45309 100%);
}

/* ===========================
 * Heatmap (GitHub-Style)
 * =========================== */
.ee-hub-heatmap-wrap {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
}

.ee-hub-heatmap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-x: auto;
}

.ee-hub-heatmap-daylabels {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: absolute;
    left: 4px;
    /* Labels werden inline gemacht via flex; wir nutzen sie als Hint-Text */
    display: none;
}

.ee-hub-heatmap-grid {
    display: flex;
    gap: 3px;
    padding: 4px 0;
}

.ee-hub-heatmap-week {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ee-hub-heatmap-cell {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    background: #ebedf0;
    transition: transform 0.1s ease, outline 0.1s ease;
    cursor: default;
}
.ee-hub-heatmap-cell.is-empty {
    background: transparent;
    pointer-events: none;
}
.ee-hub-heatmap-cell:hover:not(.is-empty) {
    outline: 1px solid #1f2933;
    transform: scale(1.18);
}

.ee-hub-heatmap-cell[data-level="0"] { background: #ebedf0; }
.ee-hub-heatmap-cell[data-level="1"] { background: #c6e48b; }
.ee-hub-heatmap-cell[data-level="2"] { background: #7bc96f; }
.ee-hub-heatmap-cell[data-level="3"] { background: #239a3b; }
.ee-hub-heatmap-cell[data-level="4"] { background: #196127; }

.ee-hub-heatmap-legend {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 11px;
    color: #6b7280;
}
.ee-hub-heatmap-legend .ee-hub-heatmap-cell {
    cursor: default;
}

/* ===========================
 * Timeline (im Hub)
 * =========================== */
.ee-hub-timeline-wrap {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
}

.ee-hub-filters {
    display: flex;
    gap: 8px;
}
.ee-hub-filter {
    height: 30px;
    padding: 0 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    color: #1f2933;
    background: #ffffff;
    cursor: pointer;
    font-family: inherit;
}

.ee-hub-tl-group + .ee-hub-tl-group {
    margin-top: 14px;
}
.ee-hub-tl-group-head {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    padding: 4px 0;
    border-bottom: 1px solid #f1f5f9;
}
.ee-hub-tl-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ee-hub-tl-card {
    position: relative;
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.ee-hub-tl-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.ee-hub-tl-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #eef2f7;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ee-hub-tl-icon svg { width: 14px; height: 14px; }

.ee-hub-tl-card.is-phone   .ee-hub-tl-icon { background: #dbeafe; color: #1e40af; }
.ee-hub-tl-card.is-meeting .ee-hub-tl-icon { background: #dcfce7; color: #166534; }
.ee-hub-tl-card.is-email   .ee-hub-tl-icon { background: #ede9fe; color: #6d28d9; }
.ee-hub-tl-card.is-other   .ee-hub-tl-icon { background: #e2e8f0; color: #475569; }
.ee-hub-tl-card.is-handover .ee-hub-tl-icon { background: #fed7aa; color: #9a3412; }
.ee-hub-tl-card.is-lost     .ee-hub-tl-icon { background: #fee2e2; color: #991b1b; }
.ee-hub-tl-card.is-ai       .ee-hub-tl-icon { background: #fef3c7; color: #854d0e; }

.ee-hub-tl-body {
    flex: 1 1 auto;
    min-width: 0;
}

.ee-hub-tl-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
}
.ee-hub-tl-type { font-weight: 700; color: #1f2933; }
.ee-hub-tl-mood { font-size: 14px; line-height: 1; }
.ee-hub-tl-time {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    color: #94a3b8;
}

/* Legacy title/content (kept for handover tab which still uses renderTimelineCard old format) */
.ee-hub-tl-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2933;
    margin-bottom: 2px;
}
.ee-hub-tl-content {
    font-size: 13px;
    color: #374151;
    line-height: 1.45;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.ee-hub-tl-content p { margin: 0 0 4px; }
.ee-hub-tl-content p:last-child { margin: 0; }

.ee-hub-tl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    font-size: 11px;
    color: #6b7280;
}
.ee-hub-tl-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
}
.ee-hub-tl-meta-item svg { width: 11px; height: 11px; }

/* ===========================
 * Compact Timeline Cards (new)
 * =========================== */
.ee-hub-card--compact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
}
.ee-hub-card--compact:hover {
    background: #f8fafc;
}
.ee-hub-card--compact:last-child {
    border-bottom: none;
}
.ee-hub-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: #eef2f7;
    color: #6b7280;
}
.ee-hub-card-icon svg {
    width: 16px;
    height: 16px;
}
/* Type-based icon colors (reuse same scheme as tl-card) */
.ee-hub-card--compact.is-phone   .ee-hub-card-icon { background: #dbeafe; color: #1e40af; }
.ee-hub-card--compact.is-meeting .ee-hub-card-icon { background: #dcfce7; color: #166534; }
.ee-hub-card--compact.is-email   .ee-hub-card-icon { background: #ede9fe; color: #6d28d9; }
.ee-hub-card--compact.is-other   .ee-hub-card-icon { background: #e2e8f0; color: #475569; }
.ee-hub-card--compact.is-handover .ee-hub-card-icon { background: #fed7aa; color: #9a3412; }
.ee-hub-card--compact.is-lost     .ee-hub-card-icon { background: #fee2e2; color: #991b1b; }
.ee-hub-card--compact.is-ai       .ee-hub-card-icon { background: #fef3c7; color: #854d0e; }

.ee-hub-card-main {
    flex: 1;
    min-width: 0;
}
.ee-hub-card-title {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1f2933;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ee-hub-card-title .ee-hub-src-badge {
    flex-shrink: 0;
}
.ee-hub-card-mood {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}
.ee-hub-card-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ee-hub-card-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
}
.ee-hub-card--compact:hover .ee-hub-card-actions {
    opacity: 1;
}

.ee-hub-src-badge {
    display: inline-flex;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.ee-hub-src-badge.is-sipgate { background: #ede9fe; color: #5b21b6; }
.ee-hub-src-badge.is-outlook { background: #dbeafe; color: #1e40af; }
.ee-hub-src-badge.is-system  { background: #e2e8f0; color: #475569; }

/* Hover-Actions */
.ee-hub-tl-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
.ee-hub-tl-card:hover .ee-hub-tl-actions {
    opacity: 1;
    pointer-events: auto;
}
.ee-hub-tl-action {
    width: 24px;
    height: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    color: #6b7280;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.ee-hub-tl-action svg { width: 12px; height: 12px; }
.ee-hub-tl-action:hover {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}
.ee-hub-tl-action.is-delete:hover {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

/* ===========================
 * TasksNotes-Host (Aufgaben/Notizen-Tabs)
 * =========================== */
.ee-hub-tn-host {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    min-height: 400px;
}

/* ===========================
 * Responsive
 * =========================== */
@media (max-width: 900px) {
    .ee-hub-sidebar {
        width: 64px;
        padding: 16px 8px;
    }
    .ee-hub-brand-title { display: none; }
    .ee-hub-nav-label { display: none; }
    .ee-hub-nav-item {
        justify-content: center;
        padding: 10px 0;
    }
    .ee-hub-nav-badge {
        position: absolute;
        top: 4px;
        right: 4px;
    }
    .ee-hub-content { padding: 14px; }
    .ee-hub-topbar  { padding: 12px 16px; }
}

@media (max-width: 600px) {
    .ee-hub-sidebar {
        width: 56px;
        padding: 12px 6px;
    }
    .ee-hub-kpis {
        grid-template-columns: repeat(2, 1fr);
    }
    .ee-hub-heatmap-cell {
        width: 9px;
        height: 9px;
    }
}

/* ============================================================
 * Stufe 11b: Sub-Filter-Pills
 * ============================================================ */
.ee-hub-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.ee-hub-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--ee-border, #d1d5db);
    background: #fff;
    color: #374151;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: background .12s, border-color .12s, color .12s;
}
.ee-hub-pill:hover { background: #f3f4f6; }
.ee-hub-pill.is-active {
    background: #1f2937;
    color: #fff;
    border-color: #1f2937;
}
.ee-hub-pill-count {
    display: inline-block;
    min-width: 18px;
    padding: 1px 6px;
    background: rgba(0, 0, 0, .08);
    border-radius: 10px;
    font-size: 11px;
    text-align: center;
}
.ee-hub-pill.is-active .ee-hub-pill-count {
    background: rgba(255, 255, 255, .25);
}

/* ============================================================
 * Stufe 11b: Status-Banner (Lost / On-Hold) im Uebergabe-Tab
 * ============================================================ */
.ee-hub-status-section { margin-bottom: 12px; }
.ee-hub-status-banner {
    border-left: 4px solid #9ca3af;
    background: #f9fafb;
    padding: 10px 14px;
    margin-bottom: 8px;
    border-radius: 6px;
}
.ee-hub-status-banner.is-lost {
    border-left-color: #dc2626;
    background: #fef2f2;
}
.ee-hub-status-banner.is-onhold {
    border-left-color: #f59e0b;
    background: #fffbeb;
}
.ee-hub-status-banner-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 4px;
}
.ee-hub-status-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    background: #1f2937;
    color: #fff;
}
.ee-hub-status-banner.is-lost .ee-hub-status-pill   { background: #dc2626; }
.ee-hub-status-banner.is-onhold .ee-hub-status-pill { background: #f59e0b; }
.ee-hub-status-phase { color: #4b5563; font-weight: 500; font-size: 13px; }
.ee-hub-status-banner-body { font-size: 13px; color: #374151; margin-top: 4px; }
.ee-hub-status-banner-meta { font-size: 12px; color: #6b7280; margin-top: 4px; }

/* =========================================================
 * Follow-up Pill in Hub Topbar (Schritt 7)
 * ========================================================= */
.ee-hub-followup-pill {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 16px;
    margin-left: auto;
    margin-right: 12px;
}
.ee-hub-followup-pill strong {
    font-weight: 700;
}
.ee-hub-followup-pill .ee-act-followup-pill-cd {
    font-size: 12px;
}

/* ── B.1: Statusverlauf (phase_log) ── */
.ee-hub-status-log {
    margin-top: 8px;
}
.ee-hub-log-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 12px 12px;
}
.ee-hub-log-entry {
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
}
.ee-hub-log-main {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.ee-hub-log-event {
    color: #93c5fd;
    text-transform: capitalize;
}
.ee-hub-log-arrow {
    color: rgba(255,255,255,0.7);
}
.ee-hub-log-note {
    margin-top: 4px;
    color: rgba(255,255,255,0.5);
    font-style: italic;
    font-size: 12px;
}
.ee-hub-log-meta {
    margin-top: 4px;
    display: flex;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 11px;
}

/* ===========================
 * Tasks/Notes Tab — Header, Liste, Cards
 * =========================== */
.ee-hub-tn-tab {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ee-hub-tn-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.ee-hub-tn-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.ee-hub-tn-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.ee-hub-tn-add-btn:hover { background: #15803d; }
.ee-hub-tn-add-btn svg { width: 16px; height: 16px; }

/* Filter-Bar (Task-Fallback) */
.ee-hub-tn-filter-bar {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    width: fit-content;
}
.ee-hub-tn-filter {
    padding: 6px 14px;
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.ee-hub-tn-filter:hover { color: #fff; background: rgba(255,255,255,0.08); }
.ee-hub-tn-filter.is-active { color: #fff; background: rgba(255,255,255,0.12); }

/* Liste */
.ee-hub-tn-list {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    overflow: hidden;
}

/* Item */
.ee-hub-tn-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: background 0.12s;
}
.ee-hub-tn-item:last-child { border-bottom: none; }
.ee-hub-tn-item:hover { background: rgba(255,255,255,0.05); }
.ee-hub-tn-item.is-done { opacity: 0.55; }
.ee-hub-tn-item.is-done .ee-hub-tn-title { text-decoration: line-through; }

/* Checkbox (Tasks) */
.ee-hub-tn-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.5);
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.12s;
}
.ee-hub-tn-check:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Body (Titel + Meta) */
.ee-hub-tn-body {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}
.ee-hub-tn-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ee-hub-tn-preview {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
}
.ee-hub-tn-meta {
    margin-top: 3px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* Due-Date Badge */
.ee-hub-tn-due {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
}
.ee-hub-tn-due svg { width: 12px; height: 12px; }
.ee-hub-tn-due.is-overdue {
    color: #fca5a5;
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
}

/* Note-Card spezifisch */
.ee-hub-tn-note {
    border-left: 3px solid rgba(250,204,21,0.4);
}
.ee-hub-tn-note:hover {
    border-left-color: rgba(250,204,21,0.7);
}

/* Gantt-Host innerhalb Hub: hintergrund-anpassung */
.ee-hub-tn-host .ee-tn-timeline {
    background: transparent;
    color: #fff;
}
.ee-hub-tn-host .ee-tn-empty {
    color: rgba(255,255,255,0.5);
}

/* AI Summary moved to org popup widget (ee-organization-styles.css) */

/* Handover Action Bar */
.ee-hub-handover-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 4px;
}
.ee-hub-handover-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.ee-hub-handover-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.ee-hub-handover-btn svg {
    width: 18px;
    height: 18px;
}
