md-dropdown-menu {
  display: inline-flex;
}

.md-dropdown-menu {
  position: relative;
}

/* Surface, padding and scroll come from .md-dropdown-panel (styles/mdds/components.css). */
.md-dropdown-menu .md-dropdown-menu__panel {
  position: absolute;
  top: 100%;
  right: 0;
  /* Over the page content, which in legacy screens goes up to 25 (beyond.css gives every checkbox
     12, style2.css the header 25); under the navbar (200) and the modals (1050). */
  z-index: var(--md-z-index-sm);
  /* As wide as its longest item: MDDS sets no menu width. */
  width: max-content;
}
