/*Caia PHP Framework
  Hỗ trợ một số style chuẩn sau:
	<table class="border_all hover even">
	<th class="sortable white">
	<div class='table border_all even hover'>
	<input type="checkbox" class="switch">
	<input type="radio" class="switch">
*/

body{
	font-family: Arial;
	font-size: 14px;
}

form#login{
	width:50%;	
}

form .feedback{
	text-align: center;	
}


h1.title{
	text-align: center;	
	margin-bottom: 20px;
	font-size: 28px;
}


/* BEGIN table va div.table chung */
/* <table class="border_all hover even"> */
/* <div class='table border_all even hover'> */
table.border_all, 
table.border_round {  
  border-collapse: collapse;   
  border-spacing: 0; 
  border: 1px solid #ddd; 
}

table.border_all td, 
table.border_all th {
  border: 1px solid #ddd;  
}

table.even tr:nth-child(even){
  background-color: #f2f2f2;
}

table.hover tr:hover {
  background-color: #ddd;
}

div.table.border_all,
div.table.border_round{  
  border: 1px solid #ddd; 
}

div.table.border_all div.tr {
  border-top: 1px solid #ddd;  
}
div.table.border_all div.tr:first-child {
  border-top: none;  
}

div.table.border_all div.td, 
div.table.border_all div.th {
  border-left: 1px solid #ddd;
  padding-left: 3px;  
}

div.table.border_all div.td:first-child, 
div.table.border_all div.th:first-child {
  border-left: none;  
}

div.table.even div.tr:nth-child(even){
  background-color: #f2f2f2;
}

div.table.hover div.tr:hover {
  background-color: #ddd;
}

div.table div.th{
  font-weight: bold;
}

th.sortable {
  position: relative;
}

th.sortable:before,
th.sortable.white:before {
    content: "";
    cursor: pointer;
    background: url('//co.caia.vn/view/ext/jquery/images/ui-icons_222222_256x240.png')no-repeat right -150px top 1px;
    background-size: 336px;
    width: 23px;
    height: 22px;
    position: absolute;
    right: 0;
    opacity: 0.5;
}

th.sortable.white:before {
    background: url(//co.caia.vn/view/ext/jquery/images/ui-icons_ffffff_256x240.png)no-repeat right -150px top 1px;
    background-size: 336px;
}


/*end css table va div.table chung*/



/* style checkbox radio */
/* <input type="checkbox" class="switch"> */
@supports (-webkit-appearance: none) or (-moz-appearance: none) {
  input[type="checkbox"].switch,
  input[type="radio"].switch {
    --active: #275efe;
    --active-inner: #fff;
    --focus: 2px rgba(39, 94, 254, 0.3);
    --border: #bbc1e1;
    --border-hover: #275efe;
    --background: #fff;
    --disabled: #f6f8ff;
    --disabled-inner: #e1e6f9;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 21px;
    outline: none;
    display: inline-block;    
    position: relative;
    margin: 0;
    cursor: pointer;
    border: 1px solid var(--bc, var(--border));
    background: var(--b, var(--background));
    -webkit-transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
    outline: none !important; 
    vertical-align: middle;   
  }
  input[type="checkbox"].switch:after,
  input[type="radio"].switch:after {
    content: "";
    display: block;
    left: 0;
    top: 0;
    position: absolute;
    -webkit-transition: opacity var(--d-o, 0.2s), -webkit-transform var(--d-t, 0.3s) var(--d-t-e, ease);
    transition: opacity var(--d-o, 0.2s), -webkit-transform var(--d-t, 0.3s) var(--d-t-e, ease);
    transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
    transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s), -webkit-transform var(--d-t, 0.3s) var(--d-t-e, ease);
  }
  input[type="checkbox"].switch:checked,
  input[type="radio"].switch:checked {
    --b: var(--active);
    --bc: var(--active);
    --d-o: 0.3s;
    --d-t: 0.6s;
    --d-t-e: cubic-bezier(0.2, 0.85, 0.32, 1.2);
  }
  input[type="checkbox"].switch:disabled,
  input[type="radio"].switch:disabled {
    --b: var(--disabled);
    cursor: not-allowed;
    opacity: 0.9;
  }
  input[type="checkbox"].switch:disabled:checked,
  input[type="radio"].switch:disabled:checked {
    --b: var(--disabled-inner);
    --bc: var(--border);
  }
  input[type="checkbox"].switch:disabled + label,
  input[type="radio"].switch:disabled + label {
    cursor: not-allowed;
  }
  input[type="checkbox"].switch:hover:not(:checked):not(:disabled),
  input[type="radio"].switch:hover:not(:checked):not(:disabled) {
    --bc: var(--border-hover);
  }
  input[type="checkbox"].switch:focus,
  input[type="radio"].switch:focus {
    box-shadow: 0 0 0 var(--focus);
  }

  input[type="checkbox"].switch + label,
  input[type="radio"].switch + label {
    font-size: 14px;
    line-height: 21px;
    display: inline-block;
    /*vertical-align: top;*/
    cursor: pointer;
    margin-left: 4px;    
  }  
  input[type="checkbox"].switch {
    width: 38px;
    border-radius: 11px;
  }
  input[type="checkbox"].switch:after {
    left: 2px;
    top: 2px;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    background: var(--ab, var(--border));
    -webkit-transform: translateX(var(--x, 0));
            transform: translateX(var(--x, 0));
  }
  input[type="checkbox"].switch:checked {
    --ab: var(--active-inner);
    --x: 17px;
  }
  input[type="checkbox"].switch:disabled:not(:checked):after {
    opacity: 0.6;
  }

  input[type="radio"].switch {
    border-radius: 50%;
  }
  input[type="radio"].switch:after {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--active-inner);
    opacity: 0;
    -webkit-transform: scale(var(--s, 0.7));
            transform: scale(var(--s, 0.7));
  }
  input[type="radio"].switch:checked {
    --s: 0.5;
  }
}



.clear{
  clear:both;
}

.hidden{
  display:none;
}


form#view_contract_ranking_stat > div.col-sm-offset-4,
form#contract_404_log > div.col-sm-offset-4 {
	margin-left: 5%;
}

form#contract_remote_upgrade_1 > div.col-sm-8 {
	margin-left: 5%;
}


form#contract_focus_link_update div.col-sm-offset-4 {
	margin-left: 5%;
	float: left;
}

form#contract_focus_link_update div.col-sm-offset-4:nth-child(2) {
	margin-left: 5%;
	float: left;
}


form#contract_focus_link_update textarea#focus_link_keywords {
	width: 78%;
	white-space: pre;
	overflow-wrap: normal;
	overflow-x: scroll;
	width:100%;
	-webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

form#contract_focus_link_update textarea#keywords {
	width: 22%;
	float: right;
	white-space: pre;
	overflow-wrap: normal;
	overflow-x: scroll;
}

span.download_google_report{
	float:right;
}

div.menu{
	/*float:left;*/
	border-bottom: solid 1px #ddd;
	padding: 3px 5px;
}
div.user_profile{
	float:right;
	clear:both;
}
span.menu-item{
	margin-right: 1.8em;
}

/*menu dropdown*/
.dropbtn {
  /*background-color: #4CAF50;*/
  color: #337ab7;
  /*padding: 16px;*/
  /*font-size: 16px;*/
  border: none;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 10;
}

.dropdown-content a {
  color: black;
  padding: 8px 10px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {background-color: #ddd;}

.dropdown:hover .dropdown-content {display: block;}

/*.dropdown:hover .dropbtn {background-color: #3e8e41;}*/

/*end menu dropdown*/

.form-horizontal .form-group{
	margin: 0;
}


.contract_focus_link_update form#contract_focus_link_update div.col-sm-offset-4{
	margin-left: 1%;
    float: left;
    width: 70%;
}

.contract_focus_link_update form#contract_focus_link_update div.col-sm-offset-4:nth-child(2){
	margin-right: 1%;
    float: right;
    width: 28%;
    margin-left: 0;
}

.contract_focus_link_update form#contract_focus_link_update textarea#keywords{
	width: 100%;
}

@media only screen and (min-width: 768px){
	form#view_contract_ranking_stat div.col-sm-offset-4,
	form#contract_404_log div.col-sm-offset-4 {
		margin-left: 5%;
		width: 100%;
	}

	form#view_contract_ranking_stat label.checkbox-inline,
	form#contract_404_log label.checkbox-inline {
		width: 250px;
		margin-left: 0px;
	}

	form#contract_remote_upgrade_1 .control-label{
		width:18%;
	}

	form#contract_remote_upgrade_1 .col-sm-8{
		width:80%;
	}

	form#contract_remote_upgrade_1 label.checkbox-inline {
		width: 250px;
		margin-left: 0px;
	}

}

