/*
Author: Dương Quốc Hưng
Copyright By DQH.VN
*/
/* 
    Created on : Sep 12, 2016, 9:53:32 PM
    Author     : DQHUNG
*/

.dqh-selectbox
{
    float: left;
    width: 100%;
    position: relative;
    margin-bottom: 4px;
}

.dqh-selectbox .dqh-selectbox-text
{
    float: left;
    width: 100%;
    padding: 6px 10px;
    min-height: 30px;
    
    color: #555;
    font-family: tahoma;
    font-size: 13px;
    
    border: 1px solid #cecece;
    border-radius: 3px;
    cursor: pointer;
    
    background: rgb(255,255,255); /* Old browsers */
    background: -moz-linear-gradient(top,  rgba(255,255,255,1) 0%, rgba(247,247,247,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(100%,rgba(247,247,247,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(247,247,247,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(247,247,247,1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(247,247,247,1) 100%); /* IE10+ */
    background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(247,247,247,1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f7f7f7',GradientType=0 ); /* IE6-9 */
    
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    box-shadow: inset -1px -1px 1px rgba(255,255,255, 1);
}

.dqh-selectbox.error .dqh-selectbox-text
{
    border: 1px solid #990000 !important;
    box-shadow: none !important;
}

.dqh-selectbox.active .dqh-selectbox-text
{
    background: #ebf1f6; /* Old browsers */
    background: -moz-linear-gradient(top, #ebf1f6 0%, #abd3ee 50%, #89c3eb 51%, #d5ebfb 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, #ebf1f6 0%,#abd3ee 50%,#89c3eb 51%,#d5ebfb 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, #ebf1f6 0%,#abd3ee 50%,#89c3eb 51%,#d5ebfb 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ebf1f6', endColorstr='#d5ebfb',GradientType=0 ); /* IE6-9 */

    border: 1px solid rgba(82, 168, 236, 0.8);
    box-shadow: 1px 1px 3px rgba(82, 168, 236, 0.24);
}

.dqh-selectbox .dqh-selectbox-text input
{
    float: left;
    display: none;
}

.dqh-selectbox .dqh-selectbox-text:hover
{
    box-shadow:  inset -1px -1px 1px rgba(255,255,255, 1), 1px 1px 2px 0px rgba(0,0,0, .08);
}

.dqh-selectbox .dqh-selectbox-text span
{
    float: left;
    width: calc(100% - 15px);
    overflow: hidden;
    white-space: nowrap; 
    text-overflow: ellipsis;
}

.dqh-selectbox .dqh-selectbox-text i.arrow
{
    float: right;
    position: absolute;
    right: 8px;
    top: 8px;
}



.dqh-selectbox .dqh-selectbox-items
{
    display: none;
    margin: 0px;
    padding: 0px;
    box-shadow: 1px 1px 4px rgba(0,0,0, .2);
    list-style: none;
}

.dqh-selectbox .dqh-selectbox-items.active
{
    display: block;
    float: left;
    position: absolute;
    width: 100%;
    max-height: 340px;
    
    color: #333;
    background-color: #fff;
    border: 1px solid #ababab;
    top: 30px;
    left: 0px;
    z-index: 9999999;
}

.dqh-selectbox ul
{
    float: left;
    width: 100%;
    padding: 0px;
    margin: 0px;
    max-height: 250px;
    overflow: auto;
}

.dqh-selectbox .dqh-selectbox-items ul label
{
    float: left;
    width: 100%;
    padding: 6px 10px;
}

.dqh-selectbox .dqh-selectbox-items li
{
    float: left;
    width: 100%;
    padding: 6px 10px;
    font-size: 13px;
    font-family: tahoma;
    
    cursor: pointer;
    
    overflow: hidden;
    white-space: nowrap; 
    text-overflow: ellipsis;
}

.dqh-selectbox .dqh-selectbox-items li.label
{
    color: #000;
    font-weight: bold;
}

.dqh-selectbox .dqh-selectbox-items li.sub
{
    padding-left: 40px;
}

.dqh-selectbox .dqh-selectbox-items li:hover
{
    background-color: #eee;
}

.dqh-selectbox .dqh-selectbox-items li.active
{
    color: highlighttext;
    background-color: highlight;
}
