// (C) 2007-2020 GoodData Corporation
@import "mixins";

.gd-dropdown.overlay {
    // reset overlays padding
    padding: 0;
}

.gd-dropdown-search {
    margin: 8px;
    vertical-align: baseline;
}

.gd-dropdown-buttons {
    padding: 8px;
    text-align: right;

    .gd-button {
        margin-left: 10px;
    }
}

.gd-dropdown {
    .gd-input-label {
        margin-bottom: 5px;
    }
}

.gd-dropdown,
.dropdown-body {
    .gd-list,
    .gd-list-view,
    .gd-infinite-list {
        margin: 6px 0;

        @media #{$small-only} {
            margin: 0;
        }
    }
}

.gd-dropdown,
.gd-dropdown-small {
    .gd-list-view {
        font-size: 12px;
    }

    .gd-list-view-item,
    .gd-list-view-item-header {
        height: 25px;

        & > div {
            line-height: 25px;
        }
    }
}

.gd-dropdown-normal {
    .gd-list-view {
        font-size: 14px;
    }

    .gd-list-view-item,
    .gd-list-view-item-header {
        height: 28px;

        & > div {
            line-height: 28px;
        }
    }
}

.gd-no-data {
    margin: 12px;
    color: $gd-color-state-blank;
    text-align: center;
}

.gd-no-data,
.gd-no-data-headline {
    line-height: 19px;
    font-size: 14px;
}

.gd-no-data-text {
    line-height: 16px;
    font-size: 12px;

    .gd-no-data-headline + & {
        margin-top: 13px;
    }
}

.gd-list-searchfield,
.gd-dropdown-searchfield {
    margin: 10px;
}

.gd-dropdown-tabs {
    margin: 0 10px;
}

.gd-mobile-dropdown-overlay {
    height: 100%;
    background-color: #f8fafb;

    .gd-mobile-dropdown-header {
        .gd-button,
        .gd-header-project {
            margin: 0;
            box-shadow: 0 1px 2px 0 rgba(20, 56, 93, 0.1);
            color: $gd-color-dark;
            padding-right: 30px;
            border-bottom: 1px solid #c9d5e0;

            &.is-expanded,
            &.is-collapsed {
                // refactor
                // stylelint-disable-next-line max-nesting-depth
                &::after {
                    right: 10px;
                    color: $gd-color-text;
                    opacity: 1;
                }

                // refactor
                // stylelint-disable-next-line max-nesting-depth
                &,
                &:hover {
                    background-color: #fff;
                }
            }
        }
    }
}
