@charset "utf-8";

/**
 * container
 */
.sp_container {
    border: none;
    margin: 0;
    padding: 0;
    display: inline-block;
    position: relative;
    vertical-align: middle;
}

.sp_input {
    background-color: white;

    border: 1px solid #ccc;
    border-radius: 0px;

    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
    margin: 0 !important;
    /* width: 320px; */

    padding: 4px 6px;
    vertical-align: middle;
    display: block;
    width: 100%;
    outline: none;
    box-sizing: border-box;
}

.sp_input:focus {
    border: 1px solid #ccc;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.sp_container_open .sp_input {
    border-radius: 2px !important;
}

/**
 * "get all" button
 */
div.sp_button {
    display: inline-block;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;

    border: 0;
    width: 24px;
    height: 100%;
    padding: 0;
    vertical-align: middle;
    line-height: 100%;
    position: absolute;
    top: 0;
    right: 0;
}

.sp_container_open > .sp_button {
    border-bottom-right-radius: 0 !important;
}

div.sp_button span.sp_caret {
    position: absolute;
    top: 50%;
    right: 12px;
    margin-top: -1px;
    vertical-align: middle;
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    /*vertical-align: middle;*/
    border-top: 4px dashed;
    /*border-top: 4px solid\9;*/
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

div.sp_clear_btn {
    position: absolute;
    top: 0;
    right: 25px;
    display: block;
    width: auto;
    height: 100%;
    cursor: pointer;
    font-size: 18px;
    color: #666666;
    font-weight: 600;
    margin: 0;
    padding: 5px 0 0 0;
    box-sizing: border-box;
    line-height: 1;
    font-family: "helvetica neue light", "helveticaneue-light", "helvetica neue", calibri, helvetica, arial;
}

div.sp_clear_btn:hover {
    color: black;
    font-weight: bold;
}

div.sp_clear_btn i {
    font-size: 12px;
}

div.sp_clear_btn.sp_align_right {
    right: 10px;
}

/**
 * results
 */
.sp_result_area {
    /* background-color: transparent; */
    background-color: white;
    /*border: 1px solid #d6d7d7;*/
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    z-index: 100;
    width: 300px;
    border-radius: 2px;
}

div.sp_result_area.shadowdown {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

div.sp_result_area.shadowup {
    box-shadow: 0 -1px 12px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 -1px 12px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 -1px 12px rgba(0, 0, 0, 0.2);
}

.sp_results {
    background-color: white;
    list-style: none;
    margin: 0;
    padding: 3px 0;
}

.sp_results > li {
    height: auto !important;
    margin: 0;
    overflow: hidden;
    padding: 5px 8px;
    position: relative;
    text-align: left;
    white-space: nowrap;
    font-size: 13px;
    color: black;
    cursor: pointer;
    text-overflow: ellipsis;
}

.sp_results > li.sp_message_box {
    height: 30px;
    line-height: 30px;
    text-align: center;
    box-sizing: content-box;
    font-size: 14px;
    cursor: default;
}

ul.sp_results > li.sp_over {
    background-color: #53a4ea !important;
    color: #fff !important;
    cursor: pointer;
}

ul.sp_results > li.sp_selected {
    color: #cccccc;
    cursor: default;
}

.sp_control_box {
    padding: 0;
    height: 27px;
}

.sp_control_box p {
    margin: 0;
    line-height: 27px;
    padding-left: 8px;
    font-size: 13px;
    font-weight: 400;
}

.sp_control_box button {
    height: 27px;
    line-height: 20px;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    font-size: 13px !important;
    padding: 0 13px;
    border: 0;
    background: white none;
    color: #666666;
    text-align: left;
    -webkit-transition: all .5s cubic-bezier(.175, .885, .32, 1);
    transition: all .5s cubic-bezier(.175, .885, .32, 1);
    outline: none !important;
    float: right;
    opacity: .3;
}

.sp_control_box:hover {
    background-color: #f8f8f8;
}

.sp_control_box:hover button {
    background-color: #f8f8f8;
    opacity: 1;
}

.sp_control_box:hover button:hover {
    background-color: #eeeeee;
    color: black;
}

/**
 * 多选模式相关样式
 */
div.sp_container_combo {
    border: 1px solid #cccccc;
    border-radius: 0px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-sizing: border-box;
}

/* 多选模式的禁用状态样式 */
div.sp_container_combo.sp_disabled {
    box-shadow: none;
}

div.sp_container_combo.sp_disabled,
div.sp_container_combo.sp_disabled ul.sp_element_box,
div.sp_container_combo.sp_disabled .sp_input,
div.sp_container.sp_disabled .sp_input {
    background-color: #eeeeee;
    cursor: not-allowed !important;
}

div.sp_container.sp_disabled .sp_clear_btn,
div.sp_container_combo.sp_disabled ul.sp_element_box span.tag_close {
    display: none;
}

div.sp_container_combo.sp_container_open {
    border-radius: 0px;
}

input.sp_combo_input {
    border: 0 !important;
    box-shadow: none;
    background-color: transparent;
    max-width: 100%;
    padding: 0;
    height: 34px !important;
    line-height: 34px !important;
    min-height: 34px !important;
}

input.sp_combo_input:focus {
    box-shadow: none;
    border: 0;
}

input.sp_combo_input[readonly],
input.sp_combo_input[disabled] {
    background-color: white;
}

ul.sp_element_box {
    margin: 0;
    padding: 3px 0 0 3px;
    position: relative;
    overflow: hidden;
    clear: both;
    cursor: text;
    margin-right: 24px;
    list-style: none;
    height: auto;
    min-height: 25px;
}

ul.sp_element_box > li {
    list-style: none;
    padding: 0 5px;
    margin-right: 3px;
    /*margin-bottom: 3px;*/
    margin-bottom: 2px;
    float: left;
    position: relative;
    box-sizing: content-box;
    z-index: 1;
}

ul.sp_element_box li.full_width {
    width: 100%;
}

ul.sp_element_box li.full_width input {
    width: 100% !important;
}

ul.sp_element_box li.selected_tag {
    border: 1px solid #aaaaaa;
    border-radius: 3px;
    background-color: #efefef;
    cursor: pointer;
    max-width: 100%;
    box-shadow: 0 0 2px white inset, 0 1px 0 rgba(0, 0, 0, 0.05);
    height: 22px;
    line-height: 22px;
    -webkit-transition: all .5s cubic-bezier(.175, .885, .32, 1);
    transition: all .5s cubic-bezier(.175, .885, .32, 1);
    position: relative;
    padding-right: 20px;
    overflow: hidden;
}

ul.sp_element_box li.selected_tag .tag_close {
    position: absolute;
    top: 0;
    right: 2px;
    width: 15px;
    height: 15px;
}

ul.sp_element_box li.selected_tag:hover {
    background-color: white;
    border: 1px solid #d0d0d0;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .1);
}

ul.sp_element_box li.selected_tag i {
    font-size: 12px;
    color: #aaaaaa;
}

ul.sp_element_box li.selected_tag i:hover {
    color: black;
}

ul.sp_element_box li.input_box {
    padding: 0;
    /* margin: 0; */
    margin-top: 0;
    height: 24px;
    min-height: 24px;
}

ul.sp_element_box li.input_box input {
    height: 26px !important;
    line-height: 26px !important;
    min-height: 26px !important;
}

ul.sp_element_box li.selected_tag span.tag_close {
    cursor: pointer;
    margin-left: 5px;
    font-size: 14px;
    font-family: "helvetica neue light", "helveticaneue-light", "helvetica neue", calibri, helvetica, arial;
}


/**
 * 加深颜色表示非选中
 */
.sp_results_off {
    /*background: rgba(255, 255, 255, 0.8);*/
}

.sp_input_off {
    background: #eee;
    color: #333333;
}

.sp_hide {
    display: none;
}

/**
 * navi
 */
.sp_navi {
    background: #eee;
    border-bottom: 1px solid #79b;
    font-size: 13px;
    font-weight: normal;
    line-height: 1;
    margin: 0;
    padding: 4px;
    text-align: right;
}

.sp_navi > p > a:link,
.sp_navi > p > a:visited,
.sp_navi > p > a:hover,
.sp_navi > p > a:active {
    color: blue;
    font-weight: normal;
    margin: 0 4px;
    text-decoration: underline;
}

.sp_navi > p {
    color: black;
    font-size: 15px;
    margin: 0;
    padding-top: 4px;
    text-align: center;
}

.sp_navi > p > a > .current {
    color: #00c;
    font-size: 16px;
    font-weight: bold;
}

.sp_navi > p > .page_end {
    color: gray;
    font-weight: normal;
    margin: 0 4px;
}

.navi_page,
.navi_first,
.navi_prev,
.navi_next,
.navi_last {
    margin: auto 4px !important;
}

.sp_navi > .info {
    margin: 0 !important;
    padding: 0 !important;
}

/**
 * select only
 */
.sp_container > .sp_select_ng {
    background: #fcc;
}

/*输入框设置了input-block-level样式时的特殊情况修复*/
div.sp_container input.sp_input.input-block-level {
    box-sizing: border-box;
    height: 30px;
    line-height: 30px;
    min-height: 30px;
    width: 100%;
}

div.sp_container_open .sp_input::-ms-clear {
    display: none;
}

/* 移除微软浏览器，在输入框输入文本后，会出现x的问题，but is look like not working */
input::-ms-clear {
    display: none;
}

/*隐藏文本框叉子*/
input::-ms-reveal {
    display: none;
}

/*隐藏密码框小眼睛*/

div.sp_navi > p {
    font-size: 12px;
}

/**
 * 分页条样式（基于bootstrap2的样式进行调整）
 */
div.sp_result_area div.sp_pagination {
    margin: 0;
    padding: 0;
    height: 26px;
    line-height: 26px;
    width: 100%;
    /* border-top: 1px solid #dddddd; */
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    display: block;
}

div.sp_result_area div.sp_pagination.hide {
    display: none;
}

div.sp_result_area div.sp_pagination ul {
    width: 100%;
    display: inline-block;
    margin: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    /*     -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        box-shadow: 0 1px 2px rgba(0,0,0,0.05); */
    padding: 0;
}

div.sp_result_area div.sp_pagination li {
    text-align: center;
    display: inline;
    box-sizing: border-box;
}

div.sp_result_area div.sp_pagination > ul > li > a {
    margin: 0;
    /* border: 1px solid #ddd; */
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    background-color: white;

    float: left;
    text-decoration: none;

    border: 0;
    box-sizing: content-box;
    color: #666666;
    font-size: 13px;
    height: 26px;
    line-height: 26px;
    -webkit-transition: all .5s cubic-bezier(.175, .885, .32, 1);
    transition: all .5s cubic-bezier(.175, .885, .32, 1);
}

div.sp_result_area div.sp_pagination li.csfirstpage a,
div.sp_result_area div.sp_pagination li.cspreviouspage a,
div.sp_result_area div.sp_pagination li.csnextpage a,
div.sp_result_area div.sp_pagination li.cslastpage a {
    width: 30px;
}

div.sp_result_area div.sp_pagination li.csfirstpage a {
    border-left: 0;
    border-bottom-left-radius: 2px;
}

div.sp_result_area div.sp_pagination li.cslastpage a {
    border-right: 0;
    border-bottom-right-radius: 2px;
}

div.sp_result_area div.sp_pagination > ul > li > a:hover {
    color: #000000;
    background-color: #e8e8e8;
}

div.sp_result_area div.sp_pagination > ul > li.disabled > a {
    color: #dddddd;
    cursor: default;
}

div.sp_result_area div.sp_pagination > ul > li.disabled > a:hover {
    color: #dddddd;
    background-color: white;
}

div.sp_result_area div.sp_pagination > ul > li.pageinfobox > a {
    width: 178px;
    text-align: center;
    /* padding-left: 4px;
    padding-right: 4px; */
    color: #666666;
    font-size: 13px;
}

div.sp_result_area div.sp_pagination > ul > li.pageinfobox > a:hover {
    background-color: inherit;
    color: #666666;
    cursor: default;
}

/* icons */
@font-face {
    font-family: "spfont";
    src: ; /* ie9*/
    src:  format('embedded-opentype'), /* ie6-ie8 */  format('woff'),
     format('truetype'), /* chrome, firefox, opera, safari, android, ios 4.2 */  format('svg'); /* ios 4.1- */
}

.spfont {
    font-family: "spfont" !important;
    font-size: 13px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sp-unselect-all:before {
    content: "\e634";
}

.sp-clear:before {
    content: "\e68c";
}

.sp-select-all:before {
    content: "\e628";
}

.sp-last:before {
    content: "\e67e";
}

.sp-first:before {
    content: "\e681";
}

.sp-next:before {
    content: "\e70d";
}

.sp-warning:before {
    content: "\e63c";
}

.sp-previous:before {
    content: "\e65a";
}

.sp-close:before {
    content: "\e600";
}
