@import "./base/option.scss";

.os-dropdown {
    width: 100%;
    height: 32px;
    display: flex;
    align-items: center;
    position: relative;
    cursor: default;
    font-family: var(--segoe-ui);
    font-size: 11px;
    padding: 3px 8px;
    border: 2px solid #999999;
    background-color: #ffffff;
    box-sizing: border-box;
    appearance: none;
    border-radius: 0;
    appearance: none;
    padding-right: 32px;
    border-radius: 0;
    user-select: none;

    &::before {
        width: 12px;
        height: 7px;
        position: absolute;
        top: 12px;
        right: 10px;
        background-image: url("/assets/themes/win10/icons/dropdown.png");
        content: '';
    }

    &:active {
        background-color: #d7d7d7;
    }

    &.os-disabled {
        background-color: #cccccc;
        color: #919191;
        border: solid 2px #cccccc;

        &::before {
            background-position: 0px 7px;
        }
    }

    .os-placeholder {
        color: #666666;
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .os-value {
        color: #000000;
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    &.ng-touched.ng-invalid {
        background-color: rgba(var(--os-danger-color), .05);
    }
}

.os-dropdown-item {
    @include os-base-option;
}

.os-list.os-part-of-dropdown {
    position: absolute;
    z-index: 999;
    opacity: .999;
    left: -1px;
    top: 100%;
    box-shadow: 0px 7px 13px 3px rgba(0,0,0,0.2);
}
