/*
Author: Dương Quốc Hưng
Copyright By DQH.VN
*/
/* 
    Created on : Sep 11, 2016, 8:17:05 PM
    Author     : DQHUNG
*/

/* Search Field */
.DQH_Search_Box
{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    
    float: left;
    width: calc(100% - 20px);
    padding: 4px 8px;
    background-color: #2f2f2f;
    border-radius: 4px;
    
    font-size: 13px;
    margin: 10px;
    color: #eee;
}

.DQH_Search_Box input
{
    background-color: transparent;
    border: 0px;
    width: calc(100% - 20px);
    color: #eee;
}

/* Select */
select.dqh
{
    padding: 6px;
    color: #333;
    background-color: #fff;
    border: 1px solid #cecece;
    border-radius: 4px;
}

select.dqh:focus
{
    border: 1px solid rgba(82, 168, 236, 0.8);
}

/* Checkbox */
input[type="checkbox"].dqh + label:hover > span, input[type="checkbox"].dqh + label span:hover
{
    border: 1px solid #999;
}

input[type="checkbox"].dqh + label
{
    width:18px;
    height:18px;
    line-height: 16px;
    font-size: 12px;
    text-shadow: none !important;
    float: left;
    
    cursor:pointer;
    background-color: #fff;
    border: 1px solid #999;
    color: #fff;
    border-radius: 2px;
    text-align: center;
    
    -moz-transition: all linear 0.2s; /* Firefox 4 */
    -webkit-transition: all linear 0.2s; /* Safari and Chrome */
    -o-transition: all linear 0.2s; /* Opera */
    transition: all linear 0.2s; /* Opera */
}

input[type="checkbox"].dqh.grayed + label
{
    background-color: #999999;
    border: 1px solid #999999;
}

input[type="checkbox"].dqh:checked + label
{
    background-color: #105EDE;
    border: 1px solid #105EDE;
}

input[type="checkbox"].dqh
{
    display:none;
}

/* Radio */
input[type="radio"].dqh + label:hover > span, input[type="radio"].dqh + label span:hover
{
    border: 1px solid #999;
}

input[type="radio"].dqh + label
{
    width:20px;
    height:20px;
    line-height: 18px;
    font-size: 14px;
    
    float: left;
    
    cursor:pointer;
    background-color: #fff;
    border: 1px solid #999;
    color: #fff;
    border-radius: 2px;
    text-align: center;
    
    
    
    -moz-transition: all linear 0.2s; /* Firefox 4 */
    -webkit-transition: all linear 0.2s; /* Safari and Chrome */
    -o-transition: all linear 0.2s; /* Opera */
    transition: all linear 0.2s; /* Opera */
    
    border-radius: 10px;
}

input[type="radio"].dqh.grayed + label
{
    background-color: #999999;
    border: 1px solid #999999;
}

input[type="radio"].dqh:checked + label
{
    background-color: #105EDE;
    border: 1px solid #105EDE;
}

input[type="radio"].dqh
{
    display:none;
}

.radio-caption{
    margin-left: 5px;
}

.radio-box
{
    float: left;
    width: 100%;
    padding: 5px;
}

.dqh-btn-tiny
{
    padding: 2px;
}

/* DQH. Button Groups*/
.dqh-btn-group
{
    display: inline;
}

.dqh-btn-group input[type="submit"].dqh-btn.active ,
.dqh-btn-group input[type="button"].dqh-btn.active,
.dqh-btn-group .dqh-btn.active
{
    background-color: #255dac;
    color: #fff;
    box-shadow: none;
    border: 1px solid #255dac;
}

.dqh-btn-group  .dqh-btn-primary.active
{
    background-color: #255dac;
    color: #fff;
    box-shadow: none;
    border: 1px solid #255dac;
}

.dqh-btn-group .dqh-btn
{
    border-radius: 0px;
    color: #255DAC;
    padding: 6px 12px;
    background-color: #fff;
    box-shadow: none;
    border: 1px solid #255dac;
}

.dqh-btn-group .dqh-btn:first-child
{
    border-radius: 15px 0 0 15px;
}

.dqh-btn-group .dqh-btn.last-child,
.dqh-btn-group .dqh-btn:last-child
{
    border-radius: 0 15px 15px 0;
}

.dqh-btn-group .dqh-btn:hover
{
    color: #fff;
    background-color: #5481C1;
    border: 1px solid  #5481C1;
}

.dqh-btn-group .dqh-btn:active
{
    background-color: #2e5ae2;
    box-shadow: none;
}

/* Button */
input[type="submit"].dqh-btn, 
input[type="button"].dqh-btn,
.dqh-btn
{
    font-family: tahoma;
    font-size: 13px;
    padding: 4px 8px;
    
    border: 1px solid #bbb;
    border-radius: 2px;
    box-shadow: inset 0px 0px 1px 1px #fff;
    text-decoration: none;
    cursor: pointer;
    color: #333;
    
    background: #f0f0f2;
}

input[type="submit"].dqh-btn:active, 
input[type="button"].dqh-btn:active,
.dqh-btn:active
{
    border: 1px solid #444;
    background-color: #eaeaea;
    box-shadow: inset 1px 1px 2px #999;
}

input[type="submit"].dqh-btn:hover, 
input[type="button"].dqh-btn:hover,
.dqh-btn:hover
{
    border: 1px solid #999;
    background-color: #EBEBEB;
}

/* Primary */
.dqh-primary
{
    color: #fff !important;
    border: 1px solid #263bff !important;
    background: rgb(37,117,247) !important;
    box-shadow: none !important;
}

.dqh-primary:hover
{
    border: 1px solid #263bff !important;
    background: #105ede !important;
}

.dqh-primary:active
{
    border: 1px solid #263bff !important;
    box-shadow: inset 0px 0px 0px 1px #fff !important;
}

.dqh-changes
{
    background: #b1b111 !important;
    color: #eee !important;
    border: 1px solid #717107 !important;
    box-shadow: none !important;
}

.dqh-changes:hover
{
    background-color: #9d9d0d !important;
    border: 1px solid #77770a !important;
    box-shadow: none !important;
}

.dqh-changes:active
{
    background-color: #9d9d0d !important;
    border: 1px solid #77770a !important;
    box-shadow: inset 0px 0px 0px 1px #eee !important;
}

.dqh-green
{
    background: #009933 !important;
    color: #eee !important;
    border: 1px solid #016c25 !important;
    box-shadow: none !important;
}

.dqh-green:hover
{
    background-color: #00802a !important;
    border: 1px solid #006521 !important;
    box-shadow: none !important;
}

.dqh-green:active
{
    background-color: #00a838 !important;
    border: 1px solid #089638 !important;
    box-shadow: inset 0px 0px 0px 1px #fff !important;
}


.dqh-dangerous, dqh-red
{
    background: #D54937 !important;
    color: #eee !important;
    border: 1px solid #D54937 !important;
    box-shadow: none !important;
}

.dqh-dangerous:hover , dqh-red:hover
{
    background-color: #c93e3e !important;
    border: 1px solid #c24c4c !important;
    box-shadow: none !important;
}

.dqh-dangerous:active , dqh-red:active
{
    background-color: #e35454 !important;
    border: 1px solid #ff8080 !important;
    box-shadow: inset 0px 0px 0px 1px #eee !important;
}

.dqh-orange
{
    background: #009933 !important;
    border: 1px solid #9f5415 !important;
    background: #ff8000 !important;
    box-shadow: none !important;
    color: #eee;
}

.dqh-orange:hover
{
    background-color: #cd6700 !important;
    border: 1px solid #9a4d00 !important;
    box-shadow: none !important;
}

.dqh-orange:active
{
    border: 1px solid #9f5415 !important;
    box-shadow: inset 0px 0px 0px 1px #fff !important;
}


/* DQH Button Mini */
.dqh-btn-mini:hover
{
    color: #eee;
    background: #666;
}

.dqh-btn-mini.active
{
    color: #eee;
    background: #666;
}

.dqh-btn-mini
{
    font-family: tahoma;
    
    height: 32px;
    width: 32px;
    
    font-size: 13px;
    border: 1px solid #666;
    text-decoration: none;
    cursor: pointer;
    color: #333;
    border-radius: 20px;
    background: #fff;
    
    margin: 0px;
    padding: 0px;
    -webkit-transition: all linear .2s;
    -moz-transition: all linear .2s;
    -o-transition: all linear .2s;
    transition: all linear .2s;
}

.dqh-btn-mini-red
{
    color: #ff3333;
    border: 1px solid #ff3333;
}

.dqh-btn-mini-red:hover
{
    color: #eee;
    background-color: #ff3333;
}

.dqh-btn-mini-red.active
{
    color: #eee;
    background-color: #ff3333;
}

.dqh-btn-mini-blue
{
    color: #105EDE;
    border: 1px solid #105EDE;
}

.dqh-btn-mini-blue:hover
{
    color: #eee;
    background-color: #105EDE;
}

.dqh-btn-mini-green
{
    color: #006600;
    border: 1px solid #006600;
}

.dqh-btn-mini-green:hover
{
    color: #eee;
    background-color: #006600;
}

.dqh-btn-mini.dqh-btn-nano
{
    width: 22px !important;
    height: 22px !important;
}

.search-textbox
{
    border: 1px solid #cecece;
    padding: 6px;
    color: #333;
    border-radius: 4px;
}

.dqh-bag
{
    display: inline-block;
    padding: 4px 8px;
    border-radius: 16px;
    font-family: tahoma;
    font-size: 11px;
    background: #666;
    margin-right: 2px;
    margin-bottom: 2px;
    color: #fff;
}

.dqh-bag.active
{
    background: #4d8f43;
}

.dqh-bag.deactive
{
    background: #8f2323;
}

/* Style Checkbox */
.dqh-checkbox {
	width: 44px;
	height: 26px;
	background: rgba(255, 255, 255, 0.5);

	position: relative;
        overflow: hidden;
        
	-webkit-border-radius: 50px;
	-moz-border-radius: 50px;
	border-radius: 50px;
        border: 1px solid transparent;
}

.dqh-checkbox input
{
    visibility: hidden;
}

.dqh-checkbox .dqh-checkbox-no {
	font: 12px/26px Arial, sans-serif;
	color: #000;
	position: absolute;
        top: -2px;
	right: -2px;
	z-index: 0;
	font-weight: bold;
	text-shadow: 1px 1px 0px rgba(255,255,255,.15);
        width: 28px;
        text-align: center;
}

.dqh-checkbox .dqh-checkbox-yes {
	font: 12px/26px Arial, sans-serif;
	color: #fff;
	position: absolute;
	left: -2px;
        top: -2px;
	z-index: 0;
	font-weight: bold;
        width: 28px;
        text-align: center;
}

.dqh-checkbox .dqh-checkbox-o {
	display: block;
	width: 22px;
	height: 22px;

	-webkit-border-radius: 50px;
	-moz-border-radius: 50px;
	border-radius: 50px;

	-webkit-transition: all .4s ease;
	-moz-transition: all .4s ease;
	-o-transition: all .4s ease;
	-ms-transition: all .4s ease;
	transition: all .4s ease;
	cursor: pointer;
	position: absolute;
	top: 1px;
	left: 1px;
	z-index: 1;
        
        background: none repeat scroll 0% 0% #FFF;
        border-radius: 100%;
        box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
}

.dqh-checkbox input[type=checkbox]:checked ~ .dqh-checkbox-o {
	left: 19px;
}

.dqh-checkbox .dqh-checkbox-background
{
    position: absolute;
    width: 44px;
    height: 24px;
    background: #dedede;
    left: 0px;
    top: 0px;
    transition: background-color linear 0.2s;
    
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    box-shadow: 0px 0px 0px 0px #DFDFDF inset;
    cursor: pointer;
}

.dqh-checkbox input[type=checkbox]:checked ~ .dqh-checkbox-background
{
    background-color: #009933;
}

.dqh-checkstate
{
    float: left;
    padding: 1px 5px;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 5px;
    
    -webkit-transition: all .4s linear;
    -moz-transition: all .4s linear;
    -o-transition: all .4s linear;
    -ms-transition: all .4s linear;
    transition: all .4s linear;
}

.dqh-checkstate.active
{
    border: 2px solid rgb(76, 218, 100);
    background-color: rgb(76, 218, 100);
    color: #fff;
}

.dqh-checkstate input[type="text"]
{
    display: none;
}

.dqh-txt
{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    
    padding: 4px;
    color: #333;
    
    background-color: #fff;
    border: 1px solid #cecece;
    
    -webkit-transition: border linear .2s, box-shadow linear .2s;
    -moz-transition: border linear .2s, box-shadow linear .2s;
    -o-transition: border linear .2s, box-shadow linear .2s;
    transition: border linear .2s, box-shadow linear .2s;
    vertical-align: top;
}

.dqh-txt:focus
{
    color: #000;
    background-color: #fff;
    outline: 0;
    outline: thin dotted \9;
    /* IE6-9 */
    border-color: rgba(82, 168, 236, 0.8);
}

.dqh-txt:focus + i
{
    color: rgba(82, 168, 236, 0.8);
}

.dqh-txt.error
{
    border: 1px solid #ff9999;
}

.dqh-txt.error:focus
{
    border-color: #d85252;
}

.dqh-txt.has-success
{
    border: 1px solid #68ac68;
}

.dqh-txt.has-success:focus
{
    border-color: #3C763D;
}

.dqh-txt.dark
{
    padding: 4px 8px;
    background-color: #2f2f2f;
    border-radius: 4px;
    font-size: 13px;
    margin: 10px;
    color: #eee;
}