/* ============================================
   RSL Tabs Component v2.4.0
   WCAG 2.1 Level AA Compliant
   ============================================ */

/* Base Tabs Container */
.tabs-display {
    width: 100%;
}

/* Tab Links Container - Default (Horizontal) */
.slot-layout.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 0;
}

/* Tab Link - Default Style (Underline) */
.slot-item.tab-link {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    margin-bottom: -2px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.slot-item.tab-link:hover {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

.slot-item.tab-link.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background-color: transparent;
}

.slot-item.tab-link:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Disabled Tab */
.slot-item.tab-link.disabled {
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

/* Tab Content Container */
.slot-layout.tabs-content {
    width: 100%;
    display: block;
}

.slot-item.tab-content {
    display: none;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: #fff;
}

.slot-item.tab-content.active {
    display: block;
}

/* ============================================
   Tab Variants
   ============================================ */

/* Pills Variant */
.tabs-display.tabs-pills .slot-layout.tabs {
    border-bottom: none;
    gap: 0.5rem;
    background: #f5f5f5;
    padding: 0.5rem;
    border-radius: 8px;
}

.tabs-display.tabs-pills .slot-item.tab-link {
    border-radius: 6px;
    margin-bottom: 0;
    border-bottom: none;
}

.tabs-display.tabs-pills .slot-item.tab-link.active {
    background: #007bff;
    color: #fff;
    border-bottom-color: transparent;
}

.tabs-display.tabs-pills .slot-item.tab-link:hover:not(.active) {
    background: rgba(0, 123, 255, 0.1);
}

.tabs-display.tabs-pills .slot-item.tab-content {
    border: none;
    border-radius: 8px;
    margin-top: 0.5rem;
}

/* Boxed Variant */
.tabs-display.tabs-boxed .slot-layout.tabs {
    border-bottom: 1px solid #e0e0e0;
    gap: 0;
}

.tabs-display.tabs-boxed .slot-item.tab-link {
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    margin-bottom: -1px;
    background: #f8f9fa;
}

.tabs-display.tabs-boxed .slot-item.tab-link.active {
    border-color: #e0e0e0;
    border-bottom-color: #fff;
    background: #fff;
}

.tabs-display.tabs-boxed .slot-item.tab-link:hover:not(.active) {
    background: #e9ecef;
}

.tabs-display.tabs-boxed .slot-item.tab-content {
    border-radius: 0 8px 8px 8px;
}

/* Minimal Variant */
.tabs-display.tabs-minimal .slot-layout.tabs {
    border-bottom: none;
    gap: 1rem;
}

.tabs-display.tabs-minimal .slot-item.tab-link {
    padding: 0.5rem 0;
    border-bottom: none;
    margin-bottom: 0;
    font-weight: 400;
}

.tabs-display.tabs-minimal .slot-item.tab-link.active {
    font-weight: 600;
    color: #333;
}

.tabs-display.tabs-minimal .slot-item.tab-content {
    border: none;
    padding: 1rem 0;
}

/* ============================================
   Tab Alignments
   ============================================ */

.tabs-display[data-tabs-alignment="center"] .slot-layout.tabs {
    justify-content: center;
}

.tabs-display[data-tabs-alignment="right"] .slot-layout.tabs {
    justify-content: flex-end;
}

.tabs-display[data-tabs-alignment="stretch"] .slot-layout.tabs {
    justify-content: stretch;
}

.tabs-display[data-tabs-alignment="stretch"] .slot-item.tab-link {
    flex: 1;
    justify-content: center;
}

/* ============================================
   Vertical Tabs (Sidebar)
   ============================================ */

.tabs-display.tabs-vertical {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tabs-display.tabs-vertical .slot-layout.tabs {
    flex-direction: column;
    border-bottom: none;
    border-right: 2px solid #e0e0e0;
    padding-right: 1rem;
    gap: 0.25rem;
    min-width: 150px;
    flex: 0 0 auto;
}

.tabs-display.tabs-vertical .slot-item.tab-link {
    border-bottom: none;
    border-right: 2px solid transparent;
    margin-bottom: 0;
    margin-right: -2px;
    padding: 0.75rem 1rem;
    text-align: left;
    justify-content: flex-start;
}

.tabs-display.tabs-vertical .slot-item.tab-link.active {
    border-right-color: #007bff;
    border-bottom-color: transparent;
}

.tabs-display.tabs-vertical .slot-layout.tabs-content {
    flex: 1;
    min-width: 0;
}

.tabs-display.tabs-vertical .slot-item.tab-content {
    border: none;
    border-left: 1px solid #e0e0e0;
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.5rem;
}

/* Vertical + Pills */
.tabs-display.tabs-vertical.tabs-pills .slot-layout.tabs {
    border-right: none;
    padding-right: 0;
    background: #f5f5f5;
    padding: 0.5rem;
    border-radius: 8px;
}

.tabs-display.tabs-vertical.tabs-pills .slot-item.tab-link {
    border-right: none;
    margin-right: 0;
}

/* ============================================
   Animation Control
   ============================================ */

.tabs-display:not([data-tabs-animated="false"]) .slot-item.tab-content {
    animation: tabFadeIn 0.2s ease-out;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tabs-display[data-tabs-animated="false"] .slot-item.tab-content {
    animation: none;
}

/* ============================================
   Dark Mode Support
   ============================================ */

[data-theme="dark"] .slot-layout.tabs {
    border-bottom-color: #444;
}

[data-theme="dark"] .slot-item.tab-link {
    color: #aaa;
}

[data-theme="dark"] .slot-item.tab-link:hover {
    color: #60a5fa;
    background-color: rgba(96, 165, 250, 0.1);
}

[data-theme="dark"] .slot-item.tab-link.active {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
}

[data-theme="dark"] .slot-item.tab-link.disabled {
    color: #666;
}

[data-theme="dark"] .slot-item.tab-content {
    border-color: #444;
    background: #1a1a1a;
}

/* Dark Mode - Pills */
[data-theme="dark"] .tabs-display.tabs-pills .slot-layout.tabs {
    background: #2a2a2a;
}

[data-theme="dark"] .tabs-display.tabs-pills .slot-item.tab-link.active {
    background: #60a5fa;
    color: #fff;
}

[data-theme="dark"] .tabs-display.tabs-pills .slot-item.tab-link:hover:not(.active) {
    background: rgba(96, 165, 250, 0.15);
}

/* Dark Mode - Boxed */
[data-theme="dark"] .tabs-display.tabs-boxed .slot-item.tab-link {
    background: #2a2a2a;
}

[data-theme="dark"] .tabs-display.tabs-boxed .slot-item.tab-link.active {
    border-color: #444;
    border-bottom-color: #1a1a1a;
    background: #1a1a1a;
}

/* Dark Mode - Vertical */
[data-theme="dark"] .tabs-display.tabs-vertical .slot-layout.tabs {
    border-right-color: #444;
}

[data-theme="dark"] .tabs-display.tabs-vertical .slot-item.tab-link.active {
    border-right-color: #60a5fa;
}

[data-theme="dark"] .tabs-display.tabs-vertical .slot-item.tab-content {
    border-left-color: #444;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    /* Stack vertical tabs on mobile */
    .tabs-display.tabs-vertical {
        flex-direction: column;
    }

    .tabs-display.tabs-vertical .slot-layout.tabs {
        flex-direction: row;
        flex-wrap: wrap;
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
        padding-right: 0;
        padding-bottom: 0.5rem;
        min-width: auto;
    }

    .tabs-display.tabs-vertical .slot-item.tab-link {
        border-right: none;
        border-bottom: 2px solid transparent;
        margin-right: 0;
        margin-bottom: -2px;
    }

    .tabs-display.tabs-vertical .slot-item.tab-link.active {
        border-right-color: transparent;
        border-bottom-color: #007bff;
    }

    .tabs-display.tabs-vertical .slot-item.tab-content {
        border-left: none;
        border-top: 1px solid #e0e0e0;
        border-radius: 0 0 8px 8px;
        padding: 1rem;
    }

    [data-theme="dark"] .tabs-display.tabs-vertical .slot-layout.tabs {
        border-bottom-color: #444;
    }

    [data-theme="dark"] .tabs-display.tabs-vertical .slot-item.tab-link.active {
        border-bottom-color: #60a5fa;
    }

    [data-theme="dark"] .tabs-display.tabs-vertical .slot-item.tab-content {
        border-top-color: #444;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .slot-item.tab-link {
        transition: none;
    }

    .tabs-display:not([data-tabs-animated="false"]) .slot-item.tab-content {
        animation: none;
    }
}
.skip-link {
    position: absolute;
    top: -1000px;
    left: -1000px;
    height: 1px;
    width: 1px;
    text-align: left;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
    height: auto;
    width: auto;
    overflow: visible;
}

.skip-target {
    height: 0;
    width: 0;
    overflow: hidden;
}
.adaContentJump {
    color:orange !important;
}

/* ============================================
   FilterBus Visibility
   Show/hide tabs components based on filter state
   ============================================ */

/* Only apply transitions AFTER initialization to prevent flicker on page load */
.tabs-display.tabs-display-initialized {
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.tabs-display.tabs-display-hidden {
    opacity: 0;
    transform: scale(0.95);
    visibility: hidden;
    pointer-events: none;
    position: absolute;
}

/* For grid layouts - hide the slot-item container when tabs are hidden */
.slot-item:has(.tabs-display.tabs-display-hidden) {
    display: none;
}

/* Alternative: fade only without collapsing (use data-filter-fade-only attribute) */
.tabs-display[data-filter-fade-only].tabs-display-hidden {
    opacity: 0.3;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    position: relative;
}

/* ============================================
   Date Range Filtering
   Show/hide tabs based on date picker selection
   ============================================ */

.tabs-display.tabs-display-date-hidden {
    display: none !important;
}

/* For grid layouts - hide the slot-item container when tabs are date-hidden */
.slot-item:has(.tabs-display.tabs-display-date-hidden) {
    display: none !important;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .tabs-display.tabs-display-initialized {
        transition: none;
    }

    .tabs-display.tabs-display-hidden {
        transition: none;
    }
}