﻿.xelect-container {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    font-size: 13px;
    zoom: 1;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    width: 100%;
    /*height: 34px;*/
}

.xelect-single:focus{
    border-color: #3c8dbc !important;
}

.xelect-multi-focus{
    border-color: #3c8dbc !important;
}
/*.xelect-multi > .search-field > input:focus{
    
}*/

.xelect-single {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0 0 0 8px;
    height: 34px;
    border: 1px solid #aaa;
    border-radius: 5px;
    background-color: #fff;
    background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #ffffff), color-stop(50%, #f6f6f6), color-stop(52%, #eeeeee), color-stop(100%, #f4f4f4));
    background: -webkit-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
    background: -moz-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
    background: -o-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
    background: linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
    background-clip: padding-box;
    box-shadow: 0 0 3px white inset, 0 1px 1px rgba(0, 0, 0, 0.1);
    color: #444;
    text-decoration: none;
    white-space: nowrap;
    line-height: 34px;
    cursor: pointer;
}

.xelect-multi {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0 5px;
    width: 100%;
    height: auto;
    line-height: 34px;
    border: 1px solid #aaa;
    background-color: #fff;
    background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
    background-image: -webkit-linear-gradient(#eeeeee 1%, #ffffff 15%);
    background-image: -moz-linear-gradient(#eeeeee 1%, #ffffff 15%);
    background-image: -o-linear-gradient(#eeeeee 1%, #ffffff 15%);
    background-image: linear-gradient(#eeeeee 1%, #ffffff 15%);
    cursor: text;
}

    .xelect-multi > li {
        float: left;
        list-style: none;
    }

    .xelect-multi > .xelect-choice {
        position: relative;
        margin: 3px 5px 3px 0;
        padding: 3px 20px 3px 5px;
        border: 1px solid #aaa;
        max-width: 100%;
        border-radius: 3px;
        background-color: #eeeeee;
        background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
        background-image: -webkit-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
        background-image: -moz-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
        background-image: -o-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
        background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
        background-size: 100% 19px;
        background-repeat: repeat-x;
        background-clip: padding-box;
        box-shadow: 0 0 2px white inset, 0 1px 0 rgba(0, 0, 0, 0.05);
        color: #333;
        line-height: 13px;
        cursor: default;
    }

        .xelect-multi > .xelect-choice > .search-choice-close {
            position: absolute;
            top: 4px;
            right: 3px;
            display: block;
            width: 12px;
            height: 12px;
            background: url('xelect.png') -42px 1px no-repeat;
            font-size: 1px;
        }

            .xelect-multi > .xelect-choice > .search-choice-close:hover {
                background-position: -42px -10px;
                cursor: pointer;
            }

    .xelect-multi .search-field {
        margin: 0;
        padding: 0;
        white-space: nowrap;
    }

    .xelect-multi input {
        margin: 1px 0;
        padding: 0;
        height: 25px;
        outline: 0;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none;
        color: #999;
        font-size: 100%;
        font-family: sans-serif;
        line-height: normal;
        border-radius: 0;
    }

.xelect-open > a {
    border-bottom: none !important;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    border-color: #3c8dbc !important;
}

.xelect-single:hover {
    color: #999;
}

.xelect-single > span {
    display: block;
    overflow: hidden;
    margin-right: 38px; /* 26px*/
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xelect-single > div {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 18px;
    height: 100%;
}

.xelect-single > abbr {
    position: absolute;
    top: 11px;
    right: 26px;
    display: block;
    width: 12px;
    height: 12px;
    background: url('xelect.png') -42px 1px no-repeat;
    font-size: 1px;
}

    .xelect-single > abbr:hover {
        background-position: -42px -10px;
    }

.xelect-open .xelect-single > abbr {
    display:none;
}

#xelect-result-container {
    position: absolute;
    top: 100%;
    left: -9999px;
    z-index: 2000;
    width: 100%;
    border: 1px solid #aaa;
    border-top: 0;
    background: #fff;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
    border-color: #3c8dbc !important;
}

.xelect-result > ul {
    color: #444;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0 4px 4px 0;
    padding: 0 0 0 4px;
    max-height: 240px;
    -webkit-overflow-scrolling: touch;
    cursor: pointer;
}

    .xelect-result > ul > li {
        margin: 0;
        padding: 5px 6px;
        list-style: none;
        line-height: 15px;
        word-wrap: break-word;
    }

        .xelect-result > ul > li[data-xelect-result-value].highlighted {
            background: #215492 !important;
            color: white;
        }

.xelect-search {
    position: relative;
    z-index: 1010;
    margin: 0;
    padding: 3px 4px;
    white-space: nowrap;
}

    .xelect-search > input {
        margin: 1px 0;
        padding: 4px 20px 4px 5px;
        width: 100%;
        height: auto;
        outline: 0;
        border: 1px solid #aaa;
        /*background: white url('xelect.png') no-repeat 100% -20px;*/
        background: url('xelect.png') no-repeat 100% -20px;
        font-size: 1em;
        font-family: sans-serif;
        line-height: normal;
        border-radius: 0;
    }

.xelect-container .xelect-single div b {
    display: block;
    width: 100%;
    height: 100%;
    background: url('xelect.png') no-repeat 0px 8px;
}

.xelect-container.xelect-open .xelect-single div b {
    background: url('xelect.png') no-repeat -18px 8px;
}
