/**
 * Committee Profile Layout Styles
 * Handles loading overlay positioning and tab state management
 */

/* Loading indicator centered in tab content area */
#tabContentLoadingOverlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    border-radius: 8px;
}

/* Tab content container needs relative positioning and minimum height for overlay */
#committeeTabContent {
    position: relative;
    min-height: 400px;
}

/* Ensure tab panes have proper positioning */
.tab-pane {
    position: relative;
}

/* Disable all tabs except overview by default - highest specificity */
html.tabs-loading .nav-tabs .nav-link:not(#overview-tab),
html .nav-tabs .nav-link:not(#overview-tab):not(.tabs-enabled) {
    pointer-events: none !important;
    cursor: default !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* Enable tabs when loading is complete - highest specificity */
html.tabs-loaded .nav-tabs .nav-link:not(#overview-tab),
html .nav-tabs .nav-link:not(#overview-tab).tabs-enabled {
    pointer-events: auto !important;
    cursor: pointer !important;
    user-select: auto !important;
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
}

/* Hide loading overlay when not needed */
#tabContentLoadingOverlay.hidden {
    display: none !important;
}


