00); // Delay to ensure tab content is visible
            }
            if (nestedTabName) {
                setTimeout(function() {
                    var parentContainer = $('.nav-link[data-tab-name="' + tabName + '"]').attr('data-bs-target');
                    activaTab(nestedTabName, parentContainer); // Dynamically find the parent container
                }, 200); // Delay to ensure parent tab content is visible
            }
        } else {
            // Default to the first tab if no tab is sp