Charts · 13
Why z-index: 9999 does nothing
The menu has z-index: 9999 and it is still under the section below it. Nothing is broken: z-index only competes with siblings inside the same stacking context, and something on the card quietly created one. Six properties that do it are on the left; toggle them and the browser repaints the scene, while the panel shows the tree it built and the order it painted. Two fixes on the right, one of which is the start of the next war.
On the card
The fix
The menu's z-index: 9999 is only compared with its siblings inside the card. The card's whole context paints at z 0, under the next section at z 1.
Card stacking context · z 0
Next section position: relative; z-index: 1
The thing the menu needs to open over. A sticky header, a table, the next card, a map.