@import "effects";
@import "variables";

.vn-drop-down > .window > .content {
    display: flex;
    flex-direction: column;
    height: inherit;

    & > .filter {
        position: relative;

        & > .search {
            display: block;
            width: 100%;
            box-sizing: border-box;
            padding: $spacing-sm;
        }
        & > vn-icon[icon=clear] {
            display: none;
            cursor: pointer;
            position: absolute;
            right: 8px;
            top: 9px;
            height: 16px;
            color: #888;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, .8);
            font-size: 1.125rem; 
    
            &:hover {
                color: $color-font;
            }
        }
        &:hover > vn-icon[icon=clear] {
            display: block;
        }
    }
    & > .list {
        max-height: 320px;
        overflow: auto;

        ul {
            padding: 0;
            margin: 0;
            list-style-type: none;
        }
        li, .status {
            @extend %clickable;
            padding: 9px;
            white-space: nowrap;
            display: flex;

            & > input[type=checkbox] {
                margin: 0;
                margin-right: 9px;
            }
            &.active {
                @extend %active;
            }
        }
        .status {
            color: $color-main;
            font-weight: bold;
        }
    }
}