This is working for me,
.my-table:has(tbody > tr > th) thead th:first-child { border-bottom: 1px solid #ddd !important; }