/* Fix overflow issue when collapsing chat input */
#active-mainTabsSection {
    position: relative;
    overflow: hidden !important;
}

/* Ensure chat input transitions smoothly without causing overflow */
.search-chat-input-container {
    overflow: hidden !important;
}

.search-chat-input-container.collapsed {
    overflow: hidden !important;
}

/* Hide content immediately when collapsing to prevent overflow */
.search-chat-input-container.collapsed .chat-input-content {
    display: none !important;
}

/* Ensure the parent container clips any overflow */
.main-tabs-section {
    overflow: hidden !important;
}

/* Fix search tab specific overflow - override global right-tab-content */
#active-searchTab.right-tab-content {
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* This is the container that needs to scroll - contains both header and results */
#active-searchTab #searchScrollContainer {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

/* Results container should not scroll itself */
#active-searchTab #searchResultsContainer {
    overflow: visible !important;
}