Fixes 12822: Scope panel collapse styles to immediate panel bodies only

BS3 commits: 66a229bdbf05861b5fa7e63f898e67bad38923a0