/**
 * @file
 * Docks (templates/biopama-dock.html.twig): an open dock's body is capped so
 * the sidebar's main list keeps most of the height, and scrolls inside.
 *
 * The overflow is left off while Bootstrap animates the collapse: the
 * overflow-y-auto utility (!important) would beat .collapsing and flash a
 * scrollbar during the transition. overflow-y: auto makes the x-axis scroll
 * too; nothing is wider than the body, since the template's wrapper pads
 * the rows' negative gutters inside it (no overflow-x: hidden, which would
 * clip the touch targets).
 */

.biopama-dock-body {
  max-height: min(40vh, 20rem);
}

.biopama-dock-body:not(.collapsing) {
  overflow-y: auto;
}
