@import "app/styles/variables";

bl-select-dropdown {
    display: block;
    min-width: 100%;
    z-index: 100;
    max-height: 50vh;
    overflow-y: auto;
    background: $input-background-color;

    box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);

    &.pos-above {
        box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 2px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px -2px rgba(0, 0, 0, 0.12);
    }

    > .option {
        cursor: pointer;
        padding: 3px 5px;
        height: 24px;
        line-height: 18px;
        display: flex;
        align-items: center;
        color: $input-text-color;

        &:hover:not(.disabled) {
            &.focused {
                background: $primary-color;
            }
            &:not(.focused) {
                background: $hover-bg-color;
            }
        }

        &.active {
            background: $hover-bg-color;
        }

        &.focused {
            color: $primary-contrast-color;
            background: $primary-color-light;
            padding-left: 3px;
            border-width: 2px;
            border-style: solid;
            border-color: $primary-color;
        }

        &.disabled {
            color: $button-disabled-text-color;
            cursor: default;
        }

        > .checkbox {
            border: 1px solid $border-color;
            width: 16px;
            height: 16px;
            padding: 1px;
            display: inline-block;
            position: relative;
            margin-right: 5px;

            > .fa-check {
                display: block;
                color: $secondary-text;
                font-size: 12px;
            }
        }

        > .option-content {
            min-width: 20px;
            word-wrap: none;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
    }

    > .unselect-all-option {
        justify-content: center;
        color: $secondary-text;
        border-bottom: 1px solid $border-color;
        > .checkbox {
            display: none;
        }
    }
    > .no-option {
        text-align: center;
    }
}
