.MainGanttFiltersDropdown {
    margin-right: 0;
}

.MainGanttFiltersDropdown .dropdown-divider {
    border-color: var(--border-subtle);
}

.MainGanttFiltersDropdown.dropdown .dropdown-menu {
    border-color: var(--secondary-accent);
    padding: 0.75rem 0 0;
    height: calc(100vh - 80px);
}

.GanttFiltersDropdown.dropdown .dropdown-menu {
    overflow-y: visible;
}

.MainGanttFiltersDropdown.dropdown .NestedDropdown-submenu {
    height: calc(100vh - 80px);
    overflow-y: hidden;
}

.MainGanttFiltersDropdown.dropdown .dropdown-menu:not(.NestedDropdown-submenu) {
    width: 300px;
    margin-top: 4px;
}

.MainGanttFiltersDropdown > button {
    border-radius: 0.25rem 0 0 0.25rem;
}

.GanttFiltersDropdown .TreeSelector {
    min-width: 320px;
    padding: 0;
    max-height: none;
    height: auto;
    overflow-y: auto;
}

.GanttFiltersDropdown .TreeSelector-tree {
    padding-left: 0.75rem;
}

.GanttFiltersDropdown .TreeViewNew {
    scrollbar-gutter: stable;
    height: 100%;
}

.GanttFiltersDropdown .TreeSelector .form-control {
    height: revert;
}

.GanttFiltersDropdown .filter-count {
    font-size: smaller;
    display: inline-block;
}

.GanttFiltersDropdown .hidden-filter-count {
    display: none;
}

.MainGanttFiltersDropdown .NestedDropdown .NestedDropdown-toggleButtonContent,
.MainGanttFiltersDropdown .SelectableDropdownItem .SelectableDropdownItem-buttonContent,
.MainGanttFiltersDropdown .NestedDropdown .NestedDropdown-toggleButtonContent span {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.GanttFiltersDropdown .NestedDropdown .NestedDropdown-toggleButtonContent {
    padding-right: 4px;
}

.GanttFiltersDropdown .NestedDropdown.filter-active .NestedDropdown-toggleButtonContent {
    font-weight: var(--font-weight-semibold);
}

.MainGanttFiltersDropdown .GanttFiltersDropdown-dropdownMenuContainer {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.GanttFiltersDropdown-ScrollableContainer {
    overflow-y: auto;
    flex-grow: 1;
}

.GanttFiltersDropdown-dropdownMenuContainer .GanttFiltersDropdown-ControlsGroup {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.GanttFiltersDropdown-ScrollableContainer .TreeSelector-controls {
    padding: 0 0.75rem 0.75rem;
}

.GanttFiltersDropdown .NestedDropdown-customButtonContent {
    flex-wrap: nowrap;
    display: flex;
    width: 100%;
    justify-content: space-between;
}
