﻿/* Select2 与后台 form-control 对齐: 字号13px, 高度与普通输入框一致, 文字垂直居中 */

.select2-container.select2-autocomplete-container,
.select2-container.form-control {
    display: block !important;
    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    vertical-align: middle;
}

.select2-container.select2-autocomplete-container .select2-choice,
.select2-container.form-control .select2-choice {
    display: block !important;
    height: 34px !important;
    line-height: 32px !important;
    padding: 0 30px 0 12px !important;
    overflow: hidden !important;
    border: 1px solid #e3e6f3 !important;
    border-radius: 3px !important;
    background-color: #fff !important;
    background-image: none !important;
    color: #555 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.select2-container.select2-autocomplete-container .select2-choice > .select2-chosen,
.select2-container.form-control .select2-choice > .select2-chosen,
.select2-container.select2-autocomplete-container .select2-choice > span:first-child,
.select2-container.form-control .select2-choice > span:first-child {
    display: block !important;
    margin-right: 0 !important;
    padding: 0 !important;
    line-height: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #555 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* placeholder */
.select2-container.select2-autocomplete-container .select2-default .select2-chosen,
.select2-container.form-control .select2-default .select2-chosen,
.select2-container.select2-autocomplete-container .select2-container-active .select2-default .select2-chosen,
.select2-container.form-control .select2-default.select2-default .select2-chosen {
    color: #c8c8c8 !important;
}

.select2-container.select2-autocomplete-container .select2-choice .select2-arrow,
.select2-container.form-control .select2-choice .select2-arrow {
    width: 28px !important;
    border-left: 1px solid #e3e6f3 !important;
    border-radius: 0 3px 3px 0 !important;
    background: #f7f8fc !important;
    background-image: none !important;
}

.select2-container.select2-autocomplete-container .select2-choice .select2-arrow b,
.select2-container.form-control .select2-choice .select2-arrow b {
    background-position: 5px 3px !important;
}

.select2-container.select2-autocomplete-container .select2-choice abbr,
.select2-container.form-control .select2-choice abbr {
    top: 10px !important;
    right: 32px !important;
}

.select2-container.select2-autocomplete-container.select2-dropdown-open .select2-choice,
.select2-container.form-control.select2-dropdown-open .select2-choice {
    border-color: #c8c8c8 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.select2-drop-active {
    border: 1px solid #c8c8c8 !important;
    border-top: none !important;
    border-radius: 0 0 3px 3px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08) !important;
}

.select2-search {
    padding: 6px !important;
}

.select2-search input {
    height: 30px !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    border: 1px solid #e3e6f3 !important;
    border-radius: 3px !important;
    background-image: none !important;
    font-size: 13px !important;
    box-shadow: none !important;
}

.select2-results {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
}

.select2-results .select2-result-label {
    padding: 6px 12px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

.select2-results .select2-highlighted {
    background: #5b9bd5 !important;
    color: #fff !important;
}

.select2-results .select2-no-results,
.select2-results .select2-searching {
    padding: 6px 12px !important;
    color: #999 !important;
    font-size: 13px !important;
}
