/*
 * jQuery UI 1.13 compat shim.
 *
 * jQuery UI dropped explicit z-index rules on .ui-widget-overlay and
 * .ui-dialog around 1.10. Without them, the modal backdrop renders ABOVE
 * the dialog (since the overlay is appended last), making dialogs
 * unclickable. Re-add the rules from the 1.7-1.10 themes.
 *
 * Load this AFTER the theme stylesheet (ui.all.css / jquery-ui.css).
 */
.ui-widget-overlay { z-index: 100; }
.ui-dialog        { z-index: 101; }

/*
 * jQuery UI eagerly appends <div id="ui-datepicker-div"> on init and toggles
 * its visibility via inline `display:` when the calendar opens/closes. Old
 * themes shipped with `display: none` as the resting default; 1.13's pared-
 * down theme dropped that, so the empty container renders as a visible
 * (zero-content but block-level) element on every page that uses datepicker.
 */
#ui-datepicker-div { display: none; }
