/* Focus Shifter */
#focus-shifter > label {
    display: table;
    margin: -4px 4px -3px -24px;
}

#focus-shifter > label input {
    height: 22px;
    margin-bottom: -1px;
}

#focus-shifter > label > span {
    display: table-cell;
    font-weight: bold;
    padding-right: 4px;
}

#focus-shifter-content {
    display: table-cell;
    width: 250px;
}

#focus-shifter > .aui-close-button {
    background-position: 0 0;
    top: 14px;
}

/* JRADEV-18351 Tiny tweak to the header padding when inline edit turned on */
.ka .issue-header .issue-header-content > .aui-page-header {
    padding-bottom: 5px;

    .aui-page-header-actions {
        vertical-align: top;
    }
}

.issue-container {
    outline: none;
}

.aui-toolbar2-primary {
    padding-left: 0;
}

.issue-body-content {
    padding: 0 20px 20px;

    .module {
        > .mod-header {
            position: relative;

            > h1,
            > h2,
            > h3,
            > h4,
            > h5,
            > h6 {
                background-color: var(--ds-surface, #fff);
                padding-right: 5px;
            }

            .ops {
                background-color: var(--ds-surface, #fff);
                margin-top: 2px;
                cursor: pointer;

                .aui-button-compact {
                    padding-right: 4px;
                    padding-left: 4px;
                    height: 24px;
                }

                .aui-dd-parent {
                    margin-top: -3px;
                }
            }

        }

        + .module {
            border-top: none;

        }
    }

    .property-list .item .name,
    .item-details dl > dt {
        text-align: left;
    }
}

.navigator-issue-only {
    scrollbar-gutter: stable;

    .issue-body-content {
        border-bottom: 1px solid var(--ds-border-accent-gray, #ccc);
    }

    .command-bar {
        border-bottom: 2px solid var(--ds-border, #ebecf0); /* jira previous fallback value: @aui-color-N30 */
        padding: 0 10px 20px;
    }

    .issue-body-content {
        padding-top: 20px;
    }
}

.page-type-message {
    .issue-body-content {
        border-bottom: 1px solid var(--ds-border-accent-gray, #ccc);
        border-top: 1px solid var(--ds-border-accent-gray, #ccc);
        padding-top: 10px;

        .issue-error {
            padding-bottom: 150px;
        }
    }
}

/* TODO to remove this once we implement the buttons with toolbar2 (NEXT-857 if harvesting) */
.toolbar-group {
    .toolbar-item {
        a {
            border-radius: 0;
        }

        &:last-of-type {
            a {
                border-top-right-radius: 3px;
                border-bottom-right-radius: 3px;
            }
        }

        &:first-of-type {
            a {
                border-top-left-radius: 3px;
                border-bottom-left-radius: 3px;
            }
        }
    }
}

.aui-nav.saved-filter.favourite-filters .aui-button-subtle {
    display: none;
}

.aui-navgroup-vertical .aui-nav.saved-filter.favourite-filters {
    a:hover ~ .aui-button-subtle {
        display: inline-block;
    }

    .aui-button-subtle:hover {
        display: inline-block;
    }

    .aui-button-subtle.active {
        display: inline-block;
    }

    .aui-nav-selected > .aui-button-subtle {
        display: inline-block;
    }
}

.toggle-header {
    display: inline-block;
}

.toggle-header .aui-toggle-header-button-label {
    position: absolute;
    top: -3px;
    left: 20px;
    color: var(--aui-body-text);
}
