.cardColumnsConfigurationComponent {
    position: relative;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .columnsComponentsdDragging {
    cursor: move !important;
}
.cardColumnsConfigurationComponent--overlay .menuButtons-container .columnsComponentsdDragging.dropingIsNotAllowed {
    cursor: not-allowed !important;
}

.cardColumnsConfigurationComponent .mainButton {
    cursor: pointer;
}

/* No-permission gear — mirrors .schemeSelector.disabled / .calcMethodTrigger.disabled
   (milestone-card-payments-tab). pointer-events:none blocks the click epicflow-connected-overlay
   listens for directly on this origin element, so the popup can't be opened at all. */
.cardColumnsConfigurationComponent .mainButton.disabled {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

/* Title-header row — shown when [title] input is provided. */
.cardColumnsConfigurationComponent--overlay .menuButtons-container .cardColumnsConfigurationTitleHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 28px;
    margin: 0 20px 2px 20px;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .cardColumnsConfigurationTitleHeader__title {
    font-family: GlowSemiBold;
    font-size: 14px;
    color: #4a4a4a;
    display: flex;
    align-items: center;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .cardColumnsConfigurationTitleHeader__title img {
    margin-left: 4px;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .cardColumnsConfigurationTitleHeader .ui-btn-link {
    font-size: 14px;
    line-height: normal;
}

/* leftColumnsHeader--noActions: label-only variant used under a title-header (no Default/info). */
.cardColumnsConfigurationComponent--overlay .menuButtons-container .leftColumnsHeader--noActions,
.cardColumnsConfigurationComponent--overlay .menuButtons-container .leftColumnsHeader--noActions:hover {
    display: flex;
    height: 24px;
    cursor: default;
    color: #b6b6b6;
    margin: 4px 20px 0 18px;
    justify-content: space-between;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .leftColumnsHeader,
.cardColumnsConfigurationComponent--overlay .menuButtons-container .leftColumnsHeader:hover {
    display: flex;
    height: 24px;
    cursor: default;
    color: #b6b6b6;
    margin: 10px 20px 0 18px;
    justify-content: space-between;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .rightColumnsHeader,
.cardColumnsConfigurationComponent--overlay .menuButtons-container .rightColumnsHeader:hover {
    display: flex;
    height: 24px;
    margin: 10px 0 0 18px;
    cursor: default;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .leftColumnsHeader .cardColumnsConfigurationTitle {
    font-family: GlowSemiBold;
    font-size: 14px;
    color: #4a4a4a;
    cursor: default;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .leftColumnsHeader .cardColumnsConfigurationTitle img {
    margin-left: 4px;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .rightColumnsHeader .cardColumnsConfigurationTitle {
    font-family: GlowSemiBold;
    font-size: 14px;
    color: #4a4a4a;
    cursor: default;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .leftColumnsHeader .ui-btn-link {
    font-size: 14px;
    line-height: normal;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .menuButtonCardConfiguration,
.columnCardDragHelperContainer .menuButtonCardConfiguration {
    position: relative;
    font-family: GlowRegular;
    color: #4a4a4a;
    font-size: 14px;
    height: 28px;
    cursor: pointer;
    padding-left: 20px;
    padding-right: 28px;
    text-align: left;
    display: flex;
    align-items: center;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .menuButtonCardConfiguration .ui-checkbox,
.columnCardDragHelperContainer .menuButtonCardConfiguration .ui-checkbox {
    flex: 0 0 16px;
}

.disabledColumnCardConfiguration {
    opacity: 0.4;
    cursor: default;
}

.disabledColumnCardConfiguration:hover {
    opacity: 0.4;
    cursor: default;
    border: solid 1px #b6b6b6;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .menuButtonCardConfiguration .text,
.columnCardDragHelperContainer .menuButtonCardConfiguration .text {
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .menuButtonCardConfiguration .reorderIcon,
.columnCardDragHelperContainer .menuButtonCardConfiguration .reorderIcon {
    visibility: hidden;
    position: absolute;
    top: 0;
    right: 12px;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 2px;
    padding-right: 6px;
    cursor: move;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .menuButtonCardConfiguration .reorderIcon img {
    vertical-align: top;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .menuButtonCardConfiguration:hover .reorderIcon {
    visibility: visible;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .menuButtonCardConfiguration:hover {
    background: #f6f7fe;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .menuButtonCardConfiguration.emptySpaceLeft,
.cardColumnsConfigurationComponent--overlay .menuButtons-container .menuButtonCardConfiguration.emptySpaceLeft:hover {
    background: transparent;
    cursor: default;
    color: #b6b6b6;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .menuButtonCardConfiguration.emptySpaceRight,
.cardColumnsConfigurationComponent--overlay .menuButtons-container .menuButtonCardConfiguration.emptySpaceRight:hover {
    background: transparent;
    cursor: default;
    color: #b6b6b6;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .menuButtonCardConfiguration.disabledColumnCardConfiguration {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.cardColumnsConfigurationComponent--overlay
    .menuButtons-container
    .menuButtonCardConfiguration.disabledColumnCardConfiguration:hover {
    background: transparent;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .menuButtonCardConfiguration.hiddenWhileDragging {
    visibility: hidden;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .menuButtonCardConfiguration.hoveredOnTop {
    -webkit-box-shadow: inset 0 1px 0 0 #5774e7;
    -ms-box-shadow: inset 0 1px 0 0 #5774e7;
    box-shadow: inset 0 1px 0 0 #5774e7;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .menuButtonCardConfiguration.hoveredOnBottom {
    -webkit-box-shadow: 0 1px 0 0 #5774e7;
    -ms-box-shadow: 0 1px 0 0 #5774e7;
    box-shadow: 0 1px 0 0 #5774e7;
}

/*Container with clone of the dragged column item*/
.columnCardDragHelperContainer {
    position: absolute;
    background-color: #ffffff;
    box-shadow: 0 2px 4px 0 rgba(0, 41, 199, 0.2);
    z-index: 100000000;
    pointer-events: none;
}

/*Contnainer placeholder to show on the place of dragged resource*/
.draggableCardColumnPlaceholderAreaContainer {
    position: absolute;
    z-index: 1001;
    background-color: #f4f5fc;
    border: dashed 2px #abb8f8;
    cursor: move;
}

/* Badges for dynamic Custom Field ("CF") / Attribute ("A") rows in the card configurator popup.
   Colors mirror the badges used in the Pipeline columns menu overlay
   (columns-menu-overlay.component.scss) for visual consistency.
   Row markup order is: checkbox, text, badge, reorderIcon - the "text" element has
   flex: 1 1 auto and therefore fills the remaining row width, which already pushes the
   badge to the row's right edge. "margin-left: auto" is added defensively so the badge
   stays flush right even if "text" flex-basis changes in the future. */
.cardColumnsConfigurationComponent--overlay .menuButtons-container .menuButtonCardConfiguration .customfield-badge,
.cardColumnsConfigurationComponent--overlay .menuButtons-container .menuButtonCardConfiguration .attribute-badge,
.columnCardDragHelperContainer .menuButtonCardConfiguration .customfield-badge,
.columnCardDragHelperContainer .menuButtonCardConfiguration .attribute-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin-left: auto;
    margin-right: 6px;
    padding: 0;
    border-radius: 2px;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .menuButtonCardConfiguration .customfield-badge,
.columnCardDragHelperContainer .menuButtonCardConfiguration .customfield-badge {
    background-color: #eef1fe;
    color: #8197ed;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .menuButtonCardConfiguration .attribute-badge,
.columnCardDragHelperContainer .menuButtonCardConfiguration .attribute-badge {
    background-color: #eef1fe;
    color: #8197ed;
}

/* ── Nested layout (financial tab) ─────────────────────────────────────── */

/* Bold label for parent rows and leaf rows in nested layout */
.cardColumnsConfigurationComponent--overlay .menuButtons-container .columnGroup__parent .text {
    font-family: GlowSemiBold;
}

/* Indent children one extra level (20px) past the parent checkbox at 40px → 60px total. */
.cardColumnsConfigurationComponent--overlay .menuButtons-container .columnGroup__child {
    padding-left: 40px;
}

/* Deeper nesting (3+ levels, e.g. effort tab) — additive, one more 20px step per level.
   Depth 0/1 above are untouched, so existing 2-level consumers look exactly the same. */
.cardColumnsConfigurationComponent--overlay .menuButtons-container .columnGroup__child--depth-2 {
    padding-left: 60px;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .columnGroup__child--depth-3 {
    padding-left: 80px;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .columnGroup__child--depth-4 {
    padding-left: 100px;
}

/* Chevron before checkbox — fixed width so checkboxes align across all rows */
.cardColumnsConfigurationComponent--overlay .menuButtons-container .columnGroup__chevron {
    flex: 0 0 16px;
    width: 16px;

    margin-right: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Spacer keeps checkbox aligned on leaf-parent rows (no chevron) */
.cardColumnsConfigurationComponent--overlay .menuButtons-container .columnGroup__chevronSpacer {
    flex: 0 0 20px;
    width: 20px;
}

/* Collapsed: expand-gray.svg points right (›) — 0deg */
.cardColumnsConfigurationComponent--overlay .menuButtons-container .columnGroup__chevron img {
    width: 16px;
    height: 16px;
    transform: rotate(0deg);
    transition: transform 0.12s;
}

/* Expanded: rotate 90deg → points down (˅) */
.cardColumnsConfigurationComponent--overlay .menuButtons-container .columnGroup__chevron.expanded img {
    transform: rotate(90deg);
}

/* Indeterminate dash: centered horizontal bar matching the checkbox check color (#5774e7).
   No indeterminate/partial class exists in global MainUIKit.css — added here for nested layout only. */
.cardColumnsConfigurationComponent--overlay .menuButtons-container .ui-checkbox.indeterminate {
    position: relative;
}

.cardColumnsConfigurationComponent--overlay .menuButtons-container .ui-checkbox.indeterminate::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 2px;
    background-color: #2F2F2F;
    border-radius: 1px;
}
