Fix #12353: Scope table border reset in panels to first-child rows