
.evep-tabs-header {
    position: relative;
    display: flex;
    gap: var(--enriched-spacing-xl);
}

.evep-tabs-header.evep-tabs--full .evep-tab {
    flex: 1 1 0;
    min-width: 0;
}

.evep-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--enriched-spacing-sm) var(--enriched-spacing-md);
    background: transparent;
    border: none;
    color: var(--enriched-text-lighter);
    cursor: pointer;
    transition: all 0.3s var(--enriched-easing);
    font-weight: 600;
    font-size: 14px;
    outline: none;
    flex: 1;
    white-space: nowrap;
    box-shadow: var(--enriched-shadow-md);
    border-radius: 20px;
    overflow: hidden;
}

.evep-tab:hover:not(.active) {
    color: var(--enriched-text);
}

.evep-tab:focus-visible {
    box-shadow: 0 0 0 2px var(--enriched-focus-ring);
    border-radius: var(--enriched-border-radius-sm);
}

.evep-tab.active {
    color: #fff;
    background: var(--enriched-primary);
}

.evep-tab-content {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s var(--enriched-easing), transform 0.3s var(--enriched-easing);
}

.evep-tab-content.active {
    display: block;
    opacity: 1;
    transform: none;
}

@media (max-width: 768px) {
    .evep-tabs-header {
        flex-direction: column;
        gap: var(--enriched-spacing-xs);
        border-bottom: none;
        padding: 0;
    }

    .evep-tab {
        padding: var(--enriched-spacing-md);
        justify-content: flex-start;
        border-radius: var(--enriched-border-radius-md);
        border: 1px solid var(--enriched-border-light);
        margin-bottom: var(--enriched-spacing-xs);
        background: var(--enriched-surface);
    }

    .evep-tab::after {
        display: none;
    }

    .evep-tab.active {
        background: var(--enriched-primary);
        color: white;
        border-color: var(--enriched-primary);
    }

    .evep-tab:hover:not(.active) {
        background: color-mix(in oklab, var(--enriched-primary) 8%, transparent);
        border-color: color-mix(in oklab, var(--enriched-primary) 20%, transparent);
    }
}

[data-theme="dark"] .evep-tabs-header {
    border-bottom-color: var(--enriched-border);
}

[data-theme="dark"] .evep-tab {
    background: transparent;
}

@media (max-width: 768px) {
    [data-theme="dark"] .evep-tab {
        background: var(--enriched-surface-dark);
        border-color: var(--enriched-border);
    }

    [data-theme="dark"] .evep-tab.active {
        background: var(--enriched-primary);
        color: white;
    }
}

.evep-organization-wrap {
    margin: var(--enriched-spacing-xl) 0;
}

.evep-search-container {
    margin-bottom: var(--enriched-spacing-xl);
}

.evep-search-box {
    display: block;
}

.evep-entities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--enriched-spacing-lg);
}

@media (max-width:768px) {
    .evep-entities-grid {
        grid-template-columns: 1fr;
        gap: var(--enriched-spacing-md);
    }
}

.evep-org-tab-content {
    opacity: 1;
    display: block;
    transition: opacity 0.3s ease;
}

.evep-org-tab-content:not(.active) {
    position: absolute;
    opacity: 0;
    display: none;
    pointer-events: none;
    visibility: hidden;
}

.evep-org-tabs-header {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: var(--enriched-spacing-sm);
}

.evep-org-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--enriched-spacing-sm) var(--enriched-spacing-md);
    background: transparent;
    border: none;
    color: var(--enriched-text-lighter);
    cursor: pointer;
    transition: all 0.3s var(--enriched-easing);
    font-weight: 600;
    font-size: 14px;
    outline: none;
    white-space: nowrap;
    box-shadow: var(--enriched-shadow-md);
    border-radius: 20px;
    overflow: hidden;
}

.evep-org-tab:hover:not(.active) {
    color: var(--enriched-text);
}

.evep-org-tab:focus-visible {
    box-shadow: 0 0 0 2px var(--enriched-focus-ring);
    border-radius: var(--enriched-border-radius-sm);
}

.evep-org-tab.active {
    color: #fff;
    background: var(--enriched-primary);
}

@media (max-width:768px) {
    .evep-org-tabs-header {
        justify-content: center;
    }
}

.evep-organization-tabs {
    position: relative;
}

.evep-org-tab-content {
    opacity: 0;
    transition: opacity .28s ease;
    will-change: opacity;
}

.evep-org-tab-content.active {
    opacity: 1;
}

.evep-org-tab-content.leaving {
    opacity: 0;
}

.evep-organization-tabs.is-switching {
    pointer-events: none;
}

.evep-organization-tabs.evep-org-tab-switching {
    display: grid;
    grid-template-rows: 1fr;
    overflow: hidden;
}

.evep-organization-tabs.evep-org-tab-switching>.evep-org-tab-content {
    grid-area: 1/1;
    display: block !important;
}

.evep-organization-tabs.evep-org-tab-switching>.evep-org-tab-content:not(.active):not(.leaving) {
    opacity: 0;
}