async function loadInquiries() { // Adjust sticky thead position based on header height const header = document.getElementById('stickyHeader'); const thead = document.querySelector('.inquiry-table thead'); if (header && thead) { const headerHeight = header.offsetHeight; const totalOffset = 36 + headerHeight; // topbar(36) + sticky header height document.querySelectorAll('.inquiry-table thead th').forEach(th => { th.style.top = totalOffset + 'px'; }); } const pmType = document.getElementById('filterPmType').value; const category = document.getElementById('filterCategory').value; const status = document.getElementById('filterStatus').value; const keyword = document.getElementById('searchKeyword').value; const params = new URLSearchParams({ pm_type: pmType, category: category, status: status, keyword: keyword }); const response = await fetch(`/api/inquiries?${params}`); const data = await response.json(); const tbody = document.getElementById('inquiryList'); tbody.innerHTML = data.map(item => `