document.querySelectorAll(".sub-tab").forEach(function(t){t.addEventListener("click",function(){document.querySelectorAll(".sub-tab").forEach(function(b){b.classList.remove("active");});t.classList.add("active");var panel=t.dataset.panel;document.querySelectorAll("[id^=panel-]").forEach(function(p){p.style.display="none";});var target=document.getElementById("panel-"+panel);if(target)target.style.display="block";});});
