.threeDotsStepMenuComponent {
    cursor: pointer;
    position: absolute;
    z-index: 999;

}

.threeDotsStepMenuComponent.disabled {
    cursor: default;
}

.threeDotsStepMenuComponent .arrow-container {
    content: '';
    width: 0;
    height: 0;
    position: absolute;
    left: 46%;
}

.threeDotsStepMenuComponent .arrow-container.arrowUp {
    border-bottom: 6px solid #ffffff;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    -webkit-filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.1));
    -moz-filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.1));
    -o-filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.1));
    filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.1));
    top: -6px;
}

.threeDotsStepMenuComponent .arrow-container.arrowDown {
    border-top: 6px solid #ffffff;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    top: 400px;
}

.threeDotsStepMenuComponent .menuButtons-container {
    width: 240px;
    border-radius: 4px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px 0 rgba(0, 41, 199, 0.2), 0 0 2px 0 rgba(70, 89, 191, 0.3);
    padding-top: 12px;
    padding-bottom: 12px;
    /* make text non-selectable for all children elements */
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Chrome/Safari/Opera */
    -khtml-user-select: none; /* Konqueror */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                              not supported by any browser */
    height: 100%;
}

.threeDotsStepMenuComponent .menuButtons-container.isShownUp {
    box-shadow: 0 -1px 4px 0 rgba(0, 41, 199, 0.2), 0 0 2px 0 rgba(70, 89, 191, 0.3);
}

.threeDotsStepMenuComponent .menuButtons-container .creation-section {
    border-bottom: 1px solid #EBEBEB;
    padding-bottom: 6px;
    margin-bottom: 6px;
}

/* Top section: wraps the up-to-5 conditional items (Magnetize, Select summaries,
   Show list of tasks, Stagger, Add to module library). Rendered only when at least
   one middle-section button is displayed; acts as a visually distinct group sitting
   above the Create section. The separator between this group and the Create section
   is drawn by .bar-section's own border-top (see below), so .top-section itself
   needs no extra visual styling — its role is purely semantic/structural and lets
   us target the non-top-section (empty) case via the sibling selectors below. */
.threeDotsStepMenuComponent .menuButtons-container .top-section {
    /* intentionally empty: current visual grouping is already produced by the
       child .menuButton rows above and .bar-section's border-top below. */
}

/* In Quick Edit mode the wrapper receives .no-border. In that mode all 5 top items
   are hidden (isQuickEditMode gates them off), so the wrapper is empty and the
   :empty rules below already collapse it. This rule just makes the intent explicit
   and protects the rare case where .top-section + .no-border are both present but
   the wrapper still has a child (e.g. Quick Edit with isSelectSummarysMilestonesButtonShown
   true via parent input), by ensuring no extra separator is painted. */
.threeDotsStepMenuComponent .menuButtons-container .top-section.no-border {
    border-bottom: none;
}

/* When every conditional top item is hidden, Angular's *ngIf removes them from the
   DOM and the wrapper div becomes empty (HTML comments do not break :empty).
   The wrapper is the first-child of perfect-scrollbar's projected .ps-content, so
   we scope the :empty collapse to that exact position to avoid matching unrelated
   empty elements elsewhere (e.g. .arrowIcon, .line-before-arrow, .icon-bar). */
.threeDotsStepMenuComponent .menuButtons-container .ps-content > div:first-child:empty {
    padding: 0;
    margin: 0;
    border: none;
    height: 0;
}

/* When the wrapper above .creation-section is empty, the Create row's own top
   separator (border-top + margin-top on .bar-section) would paint a floating
   divider line with an arrow above the first real item. Strip it in that case so
   .creation-section becomes the first visual section flush with the 12px gutter. */
.threeDotsStepMenuComponent .menuButtons-container .ps-content > div:first-child:empty + .creation-section .bar-section {
    border-top: none;
    margin-top: 0;
}

/* When the wrapper above is empty, hide the Create section's expand/collapse
   chevron UI entirely — there is no content above it to collapse toward, so the
   chevron looks orphaned. This covers the EXPANDED state (the strip made of two
   horizontal lines flanking a chevron). The create items themselves (Create task /
   summary / milestone) still render in the expanded template below this strip. */
.threeDotsStepMenuComponent .menuButtons-container .ps-content > div:first-child:empty + .creation-section .collapse-section {
    display: none;
}

/* Same rationale for the COLLAPSED state of the Create section: hide the chevron
   button on the right side of the bar. The "Create" label with its task / summary /
   milestone icons (.icon-bar) stays visible and clickable, so the user can still
   trigger creation; only the orphan chevron is suppressed. */
.threeDotsStepMenuComponent .menuButtons-container .ps-content > div:first-child:empty + .creation-section .bar-section .arrow-section {
    display: none;
}

.threeDotsStepMenuComponent .menuButtons-container .menuButton {
    font-family: GlowRegular;
    color: #4a4a4a;
    font-size: 14px;
    height: 28px;
    padding-top: 5px;
    cursor: pointer;
    padding-left: 20px;
    padding-right: 20px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Copy project to Module Library item only: wider padding per design request */
.threeDotsStepMenuComponent .menuButtons-container .menuButton.menuButton--copyToMl {
    padding: 5px 20px 0 18px;
}

.threeDotsStepMenuComponent .menuButtons-container .menuButton:hover {
    background: #F6F7FE;
}

/* The Scripts section, between the middle section and the bottom one: "Scripts…", the favorite scripts that run on
   the project, and "N more…". Its border separates it as the other sections are separated. A long name is cut by the
   row's own ellipsis (.menuButton), and its title shows it whole. */
.threeDotsStepMenuComponent .menuButtons-container .scripts-section {
    border-top: 1px solid #EBEBEB;
    margin-top: 6px;
    padding-top: 6px;
}

/* With no row of the middle section shown, the Create section's own bottom border already separates the Scripts
   section, so it draws none of its own. */
.threeDotsStepMenuComponent .menuButtons-container .middle-section:empty + .scripts-section {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.threeDotsStepMenuComponent .menuButtons-container .menuButton.disabled {
    opacity: 0.4;
    cursor: default;
}

.threeDotsStepMenuComponent .menuButtons-container .menuButton.disabled:hover {
    background: transparent;
}

.threeDotsStepMenuComponent .menuButtons-container .menuButton .icon {
    width: 16px;
    height: 16px;
}

.threeDotsStepMenuComponent .menuButtons-container .menuButton span {
    display: inline;
    margin-left: 8px;
}

.threeDotsStepMenuComponent .menuButtons-container .menuButton toggle-button span {
    display: inline-block;
}

.threeDotsStepMenuComponent .bar-section {
	border-top: 1px solid #EBEBEB;
	margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: GlowRegular;
    color: #4a4a4a;
    font-size: 14px;
    height: 31px;
    padding-top: 5px;
    cursor: default;
    padding-left: 20px;
    padding-right: 19px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.threeDotsStepMenuComponent .bar-section .icon-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.threeDotsStepMenuComponent .bar-section .icon-bar .icon-title {
    padding-right: 6px;
}

.threeDotsStepMenuComponent .bar-section .icon-bar .icon {
    cursor: pointer;
    width: 28px;
    height: 28px;
    padding: 6px;
}

.threeDotsStepMenuComponent .bar-section .icon-bar .icon:hover {
    background: #EEF1FE;
    border-radius: 4px;
}

.threeDotsStepMenuComponent .bar-section .icon-bar .icon.disabled {
    opacity: 0.4;
    cursor: default;
}


.threeDotsStepMenuComponent .menuButtons-container .bar-section .arrow-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.threeDotsStepMenuComponent .menuButtons-container .bar-section .arrow-section:hover{
    background: #EEF1FE;
    border-radius: 4px;
}

.threeDotsStepMenuComponent .menuButtons-container .bar-section .arrowIcon {
    width: 10px;
    height: 9px;
    background: url('../../../../images/shared/arrowDownGrey.png');
}

.threeDotsStepMenuComponent .menuButtons-container .bar-section .arrow-section:hover .arrowIcon {
    transform: rotate(180deg);
    background: url('../../../../images/shared/arrowUpBlue.png');
}

.threeDotsStepMenuComponent .collapse-section {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.threeDotsStepMenuComponent  .line-before-arrow {
    width: 211px;
    height: 1px;
    background-color: #EBEBEB;
    margin-top: 4px;
}

.threeDotsStepMenuComponent .collapse-section .line-after-arrow {
    width: 27px;
    height: 1px;
    background-color: #EBEBEB;
    margin-top: 4px;
}

.threeDotsStepMenuComponent .collapse-section .arrow-collapse-container {
    height: 16px;
    width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.threeDotsStepMenuComponent .collapse-section .arrowIcon {
    width: 10px;
    height: 9px;
    margin-top: 6px;
    cursor: pointer;
    background: url('../../../../images/shared/arrowDownGrey.png');
    transform: rotate(180deg);
}

.threeDotsStepMenuComponent .collapse-section .arrowIcon:hover {
    background: url('../../../../images/shared/arrowUpBlue.png');
    transform: rotate(0deg);
}

/* Paste button with ellipsis for long item names */
.threeDotsStepMenuComponent .menuButtons-container .menuButton .paste-label-container {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    flex: 1;
}

.threeDotsStepMenuComponent .menuButtons-container .menuButton .paste-item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}
