add z-index fallback

this makes the modal manager less dependent on CSS load order