/* Shared #filters dropdown styling for the Map and Cases pages
   (the dropdowns themselves are built by filters.js). */
#filters .dropdown-toggle span {
    min-width: 0;
}
#filters .dropdown-toggle,
#filters .dropdown-toggle:hover,
#filters .dropdown-toggle:focus,
#filters .dropdown-toggle:active {
    background-color: var(--hm-panel);
    border-color: var(--hm-border);
}
#filters .dropdown-toggle[aria-expanded="true"] {
    border-color: var(--hm-muted);
    border-bottom-color: transparent;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
#filters .dropdown-menu {
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: -2px !important;
    border: 1px solid var(--hm-muted);
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
#filters .dropdown-item {
    font-size: 0.875rem;
    /* The menu is as wide as its button (w-100); wrap long labels instead of
       clipping or growing a horizontal scrollbar. */
    white-space: normal;
}
/* Category color dot (only rendered on the Map page). */
#filters .cat-dot {
    display: inline-block;
    width: 0.65em;
    height: 0.65em;
    border-radius: 50%;
    margin-right: 0.45em;
    vertical-align: middle;
    margin-top: -0.15em;
}
