/* Keep the native time-range filter's date picker usable inside Spaces
   embeds on short viewports.

   The "Edit time range" popover is pinned (DateFilterLabel passes
   autoAdjustOverflow={false}), so the antd picker below it always opens at
   a fixed offset of 304px and is always 414px tall — it needs 718px of
   iframe viewport. Spaces gives the iframe roughly `100vh - 240px`, so on
   any browser window under ~958px tall the Now/OK footer lands past the
   iframe edge, and .ant-picker-panel-container is overflow:hidden with
   scrollHeight == clientHeight, leaving nothing to scroll. Below ~570px
   antd flips the panel instead and clips its top.

   Capping the calendar+time area makes the required height a function of
   the available height, and leaves .ant-picker-footer (Now / OK) pinned
   below the scroll region rather than being the thing that scrolls away.

   380px = the 304px top offset + the 53px footer + margin. max-height
   never forces growth, so this is a no-op wherever the panel already fits.
   Revisit on Superset upgrade if the popover layout changes. */
.ant-picker-dropdown .ant-picker-datetime-panel {
  max-height: calc(100vh - 380px);
  overflow-y: auto;
}
