.scrollbar-container {
    width: 5px !important;

    .scrollbar {
        width: 5px !important;
        @include border-radius(10px);
    }
}

.scroll-area-container {
    max-height: 240px;
}

.scroll-container {
    height: auto;
}

.file-list-area-container {
    max-height: 100%;

    .scrollbar {
        background: #636b8b !important;
    }
}

.#{$uiName}-field {
    margin: 0;

    &:not(:last-child) {
        margin-bottom: 0;
    }

    .#{$uiName}-help {
        margin: 0;
    }

    input[type='checkbox'] {
        height: 0;
        width: 0;
        left: 0;

        &.is-small {
            & + label {
                padding-left: 30px;
                &:before {
                    width: 21px;
                    height: 21px;
                    border-radius: 3px;
                    background-color: transparent !important;
                }

                &:after {
                    width: 8px;
                    height: 15px;
                    top: 2px;
                    left: 8px;
                }
            }
        }

        &.is-default, &.is-normal {
            & + label {
                &:before {
                    background-color: transparent !important;
                }
                &:after {
                    width: 9px;
                    height: 16px;
                    top: 2px;
                    left: 8px;
                }
            }
        }

        &.is-medium {
            & + label {

                &:before {
                    background-color: transparent !important;
                    width: 30px;
                    height: 30px !important;
                }
                &:after {
                    width: 11px;
                    height: 19px;
                    top: 3px;
                    left: 11px;
                }
            }
        }

        &.is-large {
            & + label {
                &:after {
                    width: 13px;
                    height: 24px;
                    top: 2px;
                    left: 12px;
                }

                &:before {
                    background-color: transparent !important;
                    width: 34px !important;
                }
            }
        }


    }

    input[type='radio'] {
        height: 0;
        width: 0;
        left: 0;

        &.is-large {
            & + label {
                &:after {
                    top: -5px;
                    height: 44px;
                    width: 44px;
                    left: -5px;
                }
                &:before {
                    height: 34px !important;
                    width: 34px !important;
                }
            }
        }

        &.is-medium {
            & + label {
                &:before {
                    height: 30px !important;
                    width: 30px !important;
                }
            }
        }

        &.is-default, &.is-normal {
            & + label {
                &:before {
                    height: 24px !important;
                    width: 24px !important;
                }
            }
        }

        &.is-small {
            & + label {
                padding-left: 30px;

                &:after {
                    top: -2px;
                    height: 25px;
                    width: 25px;
                    left: -2px;
                }

                &:before {
                    width: 21px;
                    background-color: transparent !important;
                }
            }
        }


    }

    > label {
        margin: 0 !important;

        &:before {
            outline: none !important;
            height: 100% !important;
        }
    }
}


.#{$uiName}-control {
    position: relative;
    > input {
        box-shadow: none;
        //padding-top: 15px;

        &::-ms-clear {
            display: none;
        }
        &:-webkit-autofill {
            -webkit-box-shadow: 0 0 0 1000px white inset;
        }

        &:focus {
            box-shadow: none;
        }
    }

    > .caption-text-ui {
        left: -100%;
        top: 5px;
        height: auto;
        position: absolute;
        color: hsl(0, 0%, 48%);
        transition: 200ms all;
        z-index: -1;
        visibility: hidden;
        opacity: 0;

        &.is-data {
            font-size: 9px;
            height: auto;
            top: 5px;
            z-index: 4;
            visibility: visible;
            opacity: 1;
        }
    }

    &.is-small {
        .caption-text-ui {
            display: none;
        }
    }

    &.is-default {

        > .caption-text-ui {
            left: 10px;

            &.is-data {
                font-size: 8px;
                line-height: 8px;
                top: 1px;
            }
        }

        &.has-icons-left {
            > .caption-text-ui {
                left: 38px;
            }
        }

    }

    &.is-medium {

        > .caption-text-ui {
            left: 13px;

            &.is-data {
                font-size: 9px;
                line-height: 9px;
                top: 5px;
            }
        }

        &.has-icons-left {
            > .caption-text-ui {
                left: 47px;
            }
        }

    }

    &.is-large {

        > .caption-text-ui {
            left: 16px;

            &.is-data {
                font-size: 10px;
                line-height: 10px;
                top: 5px;
            }
        }

        &.has-icons-left {
            > .caption-text-ui {
                left: 56px;
            }
        }

    }



    > .#{$uiName}-dropdown {
      .#{$uiName}-dropdown-menu {
            padding: 0;
            right: 1px;
            min-width: 150px;

        .#{$uiName}-dropdown-content {
                @include border-radius-top(0);
            }
        }
    }
}

.result-box {
    display: block !important;
    padding: 0;
    width: auto;
    left: 1px;

    &.is-full {
        width: calc(100% - 2px);
    }

    > .#{$uiName}-dropdown-content {
        @include border-radius-top(0);
        padding: 0;
        overflow: hidden;

        a.#{$uiName}-dropdown-item {
            border-bottom: 1px solid rgba(0,0,0,.03);
            padding: 10px;

            &.activeHover {
                background-color: whitesmoke;
                color: #0a0a0a;
            }

            &.with-icon {
                padding: 10px 4px;

                span.#{$uiName}-icon {
                    height: 100%;
                    position: relative;
                }

                i {
                    color: #eee;
                }

                &.active {
                    i {
                        color: #0a0a0a;
                    }
                }
            }
        }
    }
}

.is-bottom-radius-none {
    @include border-radius-bottom(0 !important);
}

.d-none {
    display: none;
}

.no-radius {
    @include border-radius(0 !important);
}
.no-border {
    border-color: transparent !important;
}
