﻿/*
* Notice: This source file was originally developed by Automatik IT, to make development of new projects more efficient, internally and externally for various clients.
* The functionality in this file is provided in source form instead of as a binary (NuGet Package etc.) to allow clients of Automatik IT to make changes on their own.
* Clients of Automatik IT have the right to modify this file and have ownership of the changes they make.
* Exclusive ownership of the original source file is not granted, as it's used in various projects for the sake of efficiency.
*/


/* SELECT 2*/

/* Hide original select as select2 is created */
li.Select > select {
    visibility: hidden;
}

.select2-hidden-accessible {
    display: none;
}


.select2-container {
    /*
            border-bottom: solid 1px rgba(0,0,0,.2);
            */
    position: relative;
    z-index: 1;
    margin-top: 4px;
}

.select2-selection {
    display: block;
    cursor: pointer;
    outline: none;
}

/* Show small domain object icon in select2 */
/*
            .select2-selection .DomainObjectHtml .Icon {
                font-size: 20px;
            }
                */


.select2-container--default .select2-selection--single .select2-selection__arrow {
    position: absolute;
    right: 1px;
    width: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #000 transparent;
    border-width: 0 4px 5px 4px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #000 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0;
}

/* Select2 dropdown under the item */
.select2-dropdown {
    display: block;
    background-color: #FFF;
    box-shadow: 1px 1px 8px 0px rgba(0,0,0,0.11);
    border: solid 1px rgba(0,0,0,.05);
}

.select2-results > ul {
    list-style: none;
    padding-left: 8px;
    padding-right: 8px;
}

    .select2-results > ul > li {
        /*
                        border-bottom: solid 1px rgba(0,0,0,.3);
                        margin-top: 8px;
                        margin-bottom: 8px;

                            */
        padding: 12px 8px 12px 8px;
        font-size: 16px;
        cursor: pointer;
    }

        .select2-results > ul > li:last-child {
            border-bottom: none;
        }


/* Show small domain object icon in select2 */
/*
                .select2-results > ul > li .DomainObjectHtml .Icon {
                    font-size: 20px;
                }*/


.select2-results__option--highlighted {
    background-color: rgba(0,0,0,.02);
}


/* Select2 searchbox in the dropdown */
.select2-selection__clear {
    cursor: pointer;
    /*float: right;
    margin-right: 24px;
    */
    position: absolute;
    top: 13px;
    right: 28px;
}

.select2-search {
    display: block;
    padding: 8px;
    display: none !important;
}


.select2-search__field {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: inherit;
}


/* SELECT 2 - Multi selection */

.select2-container--default.select2-container--focus .select2-selection--multiple {
    /*
            border: solid black 1px;
            */
    outline: 0;
}

.select2-container--default .select2-selection--multiple {
    background-color: white;
    /*
            border: 1px solid #aaa;
            */
    border-radius: 4px;
    cursor: text;
}

.select2-container .select2-selection--multiple {
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    min-height: 32px;
    user-select: none;
    -webkit-user-select: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    box-sizing: border-box;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: block;
    overflow: hidden;
    /*
            padding-left: 8px;
                */
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
    cursor: pointer;
    float: right;
    font-weight: bold;
    margin-top: 5px;
    margin-right: 10px;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
    list-style: none;
    padding: 8px;
    position: relative;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    /* background-color: #e4e4e4; */
    /* border: 1px solid #aaa; */
    border-radius: 4px;
    cursor: default;
    float: left;
    /*
            margin-right: 5px;
            margin-top: 5px;
                */
    margin: 4px;
    padding: 0 5px;
    /*
            border: solid 1px rgba(0,0,0,.2);
            */
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    margin-right: 2px;
    /*
            float: right;
            */
    position: absolute;
    top: 3px;
    right: 5px;
    display: none;
    background-color: rgba(255,255,255,.8);
    padding-left: 4px;
    padding-bottom: 4px;
}


.select2-container--default .select2-selection--multiple:hover .select2-selection__choice__remove {
    display: block;
    
}


.MultiSelectControl > .select2-container {
    border: 1px solid transparent;
    border-image: 2 repeating-linear-gradient(-45deg, rgba(0,0,0, .2) 0, rgba(0,0,0, .2) 8px, transparent 0, transparent 12px);
}


.SelectControl > .select2-container {
    border-bottom: solid 1px rgba(0,0,0,.2);
}