use direct-child selector more in table styles to better support nested tables; fixes #10231