/*
 * Datepicker / popover z-index fix
 *
 * Leaflet maps internally raise their panes to z-index 200–700 and their
 * controls to 1000. When a Leaflet map sits in the same page as a form
 * (e.g. CDepart detail with the geomap + an inline date field), the
 * datepicker dropdown can render *under* the map controls because the
 * default datepicker z-index is also ~1000.
 *
 * Force every popup-style overlay above the map. Safe blanket : these
 * classes are dropdowns appended to the body, never nested under the map
 * pane, so raising them never causes z-index regressions elsewhere.
 */
.datepicker-dropdown,
.datepicker.dropdown-menu,
.datepicker.datepicker-inline,
.flatpickr-calendar,
.daterangepicker {
    z-index: 1500 !important;
}

/* Bootstrap dropdowns + popovers triggered from form fields rendered above
 * the map (e.g. linkMultiple suggestion list, color picker). */
.dropdown-menu,
.popover {
    z-index: 1400;
}
