/**
 * Custermized bootstrap css for UDBA.
 * 
 * @version: 1.0
 * @author: Zeng Xi http://www.lovelucy.info/
 * @date: 2013-03-14
 * @copyright: Copyright (c) 2013 UDomain Web Hosting Company Limited. All rights reserved.
 * @license: Licensed under Apache License v2.0. See http://www.apache.org/licenses/LICENSE-2.0
 * @website: http://www.udomain.com.hk/
 */

/*---------- CUSTERMIZED CHECKBOX RADIO ------------*/
input[type='checkbox'] {
	box-shadow: 0 1px 0 #FFFFFF inset,0 1px 1px #CCCCCC;
	-webkit-appearance: none;
	-webkit-margin-end: 3px;
	background: -webkit-linear-gradient(top, #feffff 0%,#f8f8f8 49%,#efefef 100%); 
	border-radius: 1px;
	border: 1px solid #CFCFCF;
	display: inline-block;
	height: 15px;
	margin-bottom: 0;
	margin-top: 0;
	position: relative;
	width: 15px;
	-webkit-user-select: none;
}
input[type='checkbox']:disabled {
	background: #F0F0F0;
	background: -webkit-linear-gradient(-45deg, #F2F2F2 0%,#F6F6F6 20%,#FDFDFD 40%,#FFFFFF 100%); 
	border:1px solid #DFDFDF;
	cursor:default;
}
input[type='checkbox']:not(:disabled):not(:active):not(:checked):hover {
	background: -webkit-linear-gradient(top, #EDEDED 0%,#E7E7E7 49%,#E2E2E2 100%); 
	box-shadow: 0 1px 0 #FFFFFF inset,0 0 4px #C2C2C2,0 1px 1px #CCCCCC;
	border-color: #5ba900;
}
input[type='checkbox']:not(:disabled):not(:checked):active {
	background: -webkit-linear-gradient(top, #EDEDED 0%,#E7E7E7 49%,#E2E2E2 100%); 
	border-color: #5ba900;
	opacity: 0.8;
}
input[type='checkbox']:checked{
	border-color: #5ba900;
	box-shadow:0 0 3px RGBA(11,96,15,0.5);
}
input[type='checkbox']:checked::before {
	content: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAtklEQVQ4y2P4//8/A7Ux1Q0cxoaCADIbCUgCMTvVXAoE5kA8CYidyXYpGrAH4iVAHIXiCwoMDQTimUBcBsRMlBrKCsTpUANzkC0j11BuIK6EGlgKsoAkQ4FgChD7AzELVI8YEDdDDawDYk6YQaQY6gg1oAqILYC4D8oHGcyLbBAphoJAKtQgGO4EYiHk2CLHUJAXm6AG9gCxNHoSIMdQEJCFGqiALaGSayjMxQwUGzq0S6nhZygA2ojsbh6J67kAAAAASUVORK5CYII=');
	width: 11px;
	height: 9px;
	position: absolute;
	top: -4px;
	left: -3px;
}
input[type='checkbox']:active:checked::before{
	opacity: 0.8;
}
input[type='checkbox'].isHiddenCheckbox {
	background: url("../img/glyphicons-halflings-white.png") -120px -120px no-repeat;
	box-shadow: none;
	border: none;
}
input[type='checkbox'].isHiddenCheckbox:hover,
input[type='checkbox'].isHiddenCheckbox:checked,
input[type='checkbox'].isHiddenCheckbox:active{
	background: url("../img/glyphicons-halflings.png") -120px -120px no-repeat;
}
input[type='checkbox'].isHiddenCheckbox:not(:disabled):not(:active):not(:checked):hover {
	background: url("../img/glyphicons-halflings.png") -120px -120px no-repeat;
	box-shadow: none;
	border: none;
}
input[type='checkbox'].isHiddenCheckbox:not(:disabled):not(:checked):active {
	background: url("../img/glyphicons-halflings.png") -120px -120px no-repeat;
	border: none;
	opacity: 0.8;
}
input[type='checkbox'].isHiddenCheckbox:checked{
	border-color: #5ba900;
	box-shadow: none;
}
input[type='checkbox'].isHiddenCheckbox:checked::before {
	content: none;
}

input[type='radio'] {
	-webkit-appearance: none;
	-webkit-margin-end: 3px;
	border-radius: 100%;
	border: 1px solid #C4C4C4;
	display: inline-block;
	height: 15px;
	position: relative;
	width: 15px;
	-webkit-user-select: none;
}
input[type='radio']:disabled {
	background: -webkit-linear-gradient(-45deg, #F2F2F2 0%,#F6F6F6 20%,#FDFDFD 40%,#FFFFFF 100%); 
	border:1px solid #D7D7D7;
	cursor:default;
}
input[type='radio']:not(:disabled):not(:active):not(:checked):hover{
	border-color: #4C9D05;
}
input[type='radio']:not(:disabled):not(:checked):active {
	border-color: #4C9D05;
	opacity: 0.8;
}
input[type='radio']:checked{
	border-color: #4C9D05;
}
input[type='radio']:checked::before {
	-webkit-margin-start: 4px;
	background: #4C9D05;
	border-radius: 10px;
	content: '';
	display: inline-block;
	font-size: 13px;
	font-weight: bold;
	height: 5px;
	left: 0;
	margin-top: 4px;
	position: absolute;
	top: 0;
	vertical-align: top;
	width: 5px;
}
input[type='radio']:active:checked::before {
	opacity: 0.8;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
}
span.clear {
	display: inline-block;
	position: relative;
	left: -18px;
	font-weight: bold;
	cursor: pointer;
	visibility: hidden;
}
/* Only show cancel button when focused */
.focused span.clear {
	visibility: visible;
}
/* Add a hover color */
.focused span.clear:hover {
	color: red;
}

/*---------- BOOTSTRAP HACK ------------*/

/* reset */
h1, h2, h3, h4 {
	font-family: 'PT Sans', arial, tahoma, 'Microsoft Yahei', sans-serif;
	color: #444;
	text-shadow: gray 0px 0px 1px;
}
h1 {
	font-size: 28px;
}
h1 small {
	font-size: 16px;
}
h2 {
	font-size: 24px;
}
h3 {
	font-weight: normal;
	line-height: 0.4;
}

/* navigation */
form.advanced-search {
	margin: 10px 0 10px;
}

.navbar.blue .brand{
	color:rgb(255,255,255);
	font-size: 18px;
	text-shadow: none;
	-webkit-transition:color .2s ease-in-out;
	cursor:pointer;
}
.navbar.blue .brand:hover{
	color:rgba(0,215,249,1);
}

.navbar.blue .nav > a {
	text-shadow: none;
	font-size: 12px;
}
.navbar.blue .nav > a:hover{
	color: white;
	text-shadow: none;
	-webkit-transition:color .3s ease-in-out;
}
.navbar.blue .nav > .active > a,
.navbar.blue .nav > .active > a:hover,
.navbar.blue .nav > .active > a:focus{
	color: white;
}
.navbar.blacktrans .navbar-inner{
	box-shadow:none;
	background: -moz-linear-gradient(top,  rgba(51,51,51,0.8) 0%, rgba(34,34,34,0.85) 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(51,51,51,0.8)), color-stop(100%,rgba(34,34,34,0.85)));
	background: -webkit-linear-gradient(top,  rgba(51,51,51,0.8) 0%,rgba(34,34,34,0.85) 100%);
	background: -o-linear-gradient(top,  rgba(51,51,51,0.8) 0%,rgba(34,34,34,0.85) 100%);
	background: -ms-linear-gradient(top,  rgba(51,51,51,0.8) 0%,rgba(34,34,34,0.85) 100%);
	background: linear-gradient(top,  rgba(51,51,51,0.8) 0%,rgba(34,34,34,0.85) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cc333333', endColorstr='#d9222222',GradientType=0 );
}
.navbar.blue .navbar-inner{
	box-shadow:none;
	background: -moz-linear-gradient(top,  rgba(9,86,174,0.8) 0%, rgba(2,74,158,0.85) 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(9,86,174,0.8)), color-stop(100%,rgba(2,74,158,0.85)));
	background: -webkit-linear-gradient(top,  rgba(9,86,174,0.8) 0%,rgba(2,74,158,0.85) 100%);
	background: -o-linear-gradient(top,  rgba(9,86,174,0.8) 0%,rgba(2,74,158,0.85) 100%);
	background: -ms-linear-gradient(top,  rgba(9,86,174,0.8) 0%,rgba(2,74,158,0.85) 100%);
	background: linear-gradient(top,  rgba(9,86,174,0.8) 0%,rgba(2,74,158,0.85) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cc0956ae', endColorstr='#d9024a9e',GradientType=0 );
}
.navbar.blue .nav > li > a{
	text-shadow: none;
	color:rgb(255,255,255);
    opacity:0.8;
    -webkit-transition:opacity .3s ease-in-out;
}
.navbar.blue .nav > li > a:hover{
	opacity:1;
}
.navbar.blue .nav > .active > a{
    opacity:1;
	background-color:rgba(0,0,0,0.2);
}
.navbar.blue .divider-vertical {
	border-right-color: #FFF;
	opacity:0.5;
	border-left: 0;
}
.navbar.blue .nav li.dropdown > a:hover .caret,
.navbar.blue .nav li.dropdown > a:focus .caret {
	border-top-color: white;
	border-bottom-color: white;
}
.navbar.blue .nav li.dropdown > .dropdown-toggle .caret {
	border-top-color: white;
	border-bottom-color: white;
}
.navbar.blue .nav li.dropdown.open > .dropdown-toggle .caret,
.navbar.blue .nav li.dropdown.active > .dropdown-toggle .caret,
.navbar.blue .nav li.dropdown.open.active > .dropdown-toggle .caret {
	border-top-color: white;
	border-bottom-color: white;
}
.navbar.blue .nav li.dropdown.open > .dropdown-toggle,
.navbar.blue .nav li.dropdown.active > .dropdown-toggle,
.navbar.blue .nav li.dropdown.open.active > .dropdown-toggle {
	color: white;
	background-color: rgba(0, 0, 0, 0.2);;
}

.navbar-search {
	opacity:0.8;
    -webkit-transition:opacity .3s ease-in-out;
	-webkit-transition:background .3s ease-in-out;
}
.navbar-search:hover {
	opacity:1;
}
.navbar-search .dropdown {
	font-size: 14px;
	display: inline-block;
	vertical-align: top;
}
.navbar-search .search-query {
	color: white;
    padding-left: 29px;
    background-color:#4487D3;
    border:1px #0059BE solid;
    -webkit-transition:background .5s ease-in-out;
    -moz-transition:background .5s ease-in-out;
    -ms-transition:background .5s ease-in-out;
    -o-transition:background .5s ease-in-out;
    transition:background .5s ease-in-out;
}
.navbar-search .search-query:focus,
.navbar-search .search-query.focused {
    padding-left: 30px;
    background-color:#FFFFFF;
    text-shadow:none;
    color:#333;
/*	width: 210px;*/
}
.navbar-search .icon-search {
    z-index: 9;
	position: absolute;
    top: 8px;
    left: 12px;
	font-size: 13px;
	color: white;
}

.badge-nav{
	top:4px;
	background-color:#FFF;
	color:#444;
	-webkit-border-radius:1px;
	-moz-border-radius:1px;
	border-radius:1px;
	text-shadow:none;
}

.nav-pills {
	font-family: monospace;
}

/* table */
.table.lightblue th {
	background-color: #D9EDF7;
}
.table.darkblue th {
	background: -moz-linear-gradient(top,  rgba(9,86,174,0.8) 0%, rgba(2,74,158,0.85) 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(9,86,174,0.8)), color-stop(100%,rgba(2,74,158,0.85)));
	background: -webkit-linear-gradient(top,  rgba(9,86,174,0.8) 0%,rgba(2,74,158,0.85) 100%);
	background: -o-linear-gradient(top,  rgba(9,86,174,0.8) 0%,rgba(2,74,158,0.85) 100%);
	background: -ms-linear-gradient(top,  rgba(9,86,174,0.8) 0%,rgba(2,74,158,0.85) 100%);
	background: linear-gradient(top,  rgba(9,86,174,0.8) 0%,rgba(2,74,158,0.85) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cc0956ae', endColorstr='#d9024a9e',GradientType=0 );
	color: #FFF;
}
.table.darkblue th a {
	color: #FFF;
	opacity: 0.9;
}
.table.darkblue th a:hover {
	color: #FFF;
	opacity: 1;
}
.table .del-column {
	width: 25px;
	text-align: center;
	vertical-align: middle;
}
.table .template {
	display: none;
}
.table .close{
	float:none;
}
.table tfoot p{
	margin: 0;
}
.table-description tr td:first-child{
	text-align: right;
	font-weight: bold;
	width: 40%;
}
.table-edit .editable-label{
	text-align: right;
}
.table-edit .editable{
	padding: 5px;
}
.table-description input + .help-block{
	margin-top: 0;
}
.editable input,
.editable select,
.editable .add-on{
	margin-bottom: 0;
	padding: 2px 4px;
}
.editable .daterange {
	line-height: 18px;
	display: block;
}
.daterange .caret {
	margin-top: 0;
	vertical-align: middle;
}
.daterange input{
	margin-bottom: 0;
}
.editable [class*="span"]{
	min-height: 26px;
}
.editable select{
	height: 26px;
	line-height: 26px;
}
.input-append select:last-child{
	-webkit-border-radius: 0 4px 4px 0;
	-moz-border-radius: 0 4px 4px 0;
	border-radius: 0 4px 4px 0;
}

/* image */
.gravatar {
	border: 1px solid #ccc;
	margin-right: 5px;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	border-radius: 2px;
}

/* tooltip */
.tooltip{
	font-family: "Open Sans", Arial, serif;
	font-weight: 200;
}
.tooltip-inner{
	padding:5px 8px;
	-webkit-border-radius: 1px;
	-moz-border-radius: 1px;
	border-radius: 1px;
    background-color:rgba(0,0,0,0.9);

}
.tooltip.bottom .tooltip-arrow{
    border-bottom: 5px solid rgba(0,0,0,0.9);
}
.tooltip.top .tooltip-arrow{
    border-top: 5px solid rgba(0,0,0,0.9);
}
.popover-content{
	word-break: break-all;
}

/* misc */
.well-dark{
    padding:8px 14px;
    background-color:rgba(225,225,225,0.55);
    border-radius:2px;
    border:1px rgb(210,210,210) solid;
}
.well-large {
	padding: 24px;
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	border-radius: 6px;
}
.well-transparent {
	background-color: transparent;
}
.lead {
	margin-bottom: 20px;
	font-size: 21px;
	font-weight: 200;
	line-height: 30px;
}
.tab-content {
	display: table;
	width: 100%;
}

.alert h4 {
	color: inherit;
	text-shadow: inherit;
}

ul.horizontal li{
    display:inline-block;
    margin-right:5px;
    margin-bottom:5px;
}

/* button input form */
.btn-dashboard{
    padding:20px;
    height:100px;
    -webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	border-radius: 2px;
}
.btn-toolbar{
	margin-top: 0;
	text-align: right;
}
.btn-toolbar .dropdown-menu{
	text-align: left;
}
.btn-link:disabled{
	opacity: 0.5;
}
.sharp .btn:first-child,
.sharp .btn:last-child{
	-webkit-border-radius: 1px;
	-moz-border-radius: 1px;
	border-radius:1px;
}
.btn-sharp,
input.sharp,
select.sharp,
.btn.sharp,
.form.sharp input,
.form.sharp select,
.form.sharp .btn{
    -webkit-border-radius:0px;
	-moz-border-radius:0px;
	border-radius:0px;
}
.form.vertical input{
    display:block;
    clear:both;

}
.form.vertical h6{
    margin-top:-5px;
    margin-bottom:6px;
}
.form.vertical .btn,.form.vertical a{
    display:block;
    clear:both;
    margin-top:0;
    margin-bottom:20px;
}
.form.vertical .span4{
    margin-left:0;
}
.form-actions-small {
	padding: 10px 10px 10px;
	margin-top: 0;
	margin-bottom: 0;
}
.help-block.text-error {
	color: #b94a48;
}
button.sp{
    margin-bottom:20px;
    clear:both;
}
.modal legend {
	width: 96%;
	padding-left: 15px;
	margin-bottom: 0;
	background-color: #eee;
}

/* dropdown menu */
.dropdown-menu a.text-warning{
	color: #c09853;
}
.dropdown-menu a.text-error{
	color: #b94a48;
}
.dropdown-menu a.text-info{
	color: #3a87ad;
}
.dropdown-menu a.text-success{
	color: #468847;
}
.dropdown-menu-wide{
	width: 324px;
	padding: 10px 10px;
}
.dropdown-menu-wide li{
	width: 160px;
	display: inline-block;
}
.dropdown-menu-wide li a{
	padding: 10px 15px;
}

/* accordion */
.accordion-group-warning {
	border-color: #c09853;
}
.accordion-group-warning .accordion-heading {
	background-color: #fcf8e3;
}
.accordion-group-error {
	border-color: #b94a48;
}
.accordion-group-error .accordion-heading {
	background-color: #f2dede;
}
.accordion-group-info {
	border-color: #3a87ad;
}
.accordion-group-info .accordion-heading {
	background-color: #d9edf7;
}
.accordion-group-success {
	border-color: #468847;
}
.accordion-group-success .accordion-heading {
	background-color: #dff0d8;
}

/* wizard */
.wizard {
	margin-bottom: 20px;
	background-color: #f9f9f9;
	border: 1px solid #d4d4d4;
	-webkit-border-radius: 4px;
	   -moz-border-radius: 4px;
			border-radius: 4px;
	*zoom: 1;
	-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
	   -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
			box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
}
.wizard:before,
.wizard:after {
	display: table;
	line-height: 0;
	content: "";
}
.wizard:after {
	clear: both;
}

.wizard ul {
	padding: 0;
	margin: 0;
	list-style: none outside none;
}
.wizard ul li {
	position: relative;
	float: left;
	height: 46px;
	padding: 0 20px 0 30px;
	margin: 0;
	font-size: 16px;
	line-height: 46px;
	color: #999999;
	cursor: default;
	background: #ededed;
}
.wizard ul li .chevron {
	position: absolute;
	top: 0;
	right: -14px;
	display: block;
	border: 24px solid transparent;
	border-right: 0;
	border-left: 14px solid #d4d4d4;
}
.wizard ul li .chevron:before {
	position: absolute;
	top: -24px;
	right: 1px;
	display: block;
	border: 24px solid transparent;
	border-right: 0;
	border-left: 14px solid #ededed;
	content: "";
}
.wizard ul li.complete {
	color: #468847;
	background: #f3f4f5;
}
.wizard ul li.complete:hover {
	background: #e7eff8;
}
.wizard ul li.complete:hover .chevron:before {
	border-left: 14px solid #e7eff8;
}
.wizard ul li.complete .chevron:before {
	border-left: 14px solid #f3f4f5;
}
.wizard ul li.active {
	color: #3a87ad;
	background: #f1f6fc;
}
.wizard ul li.active .chevron:before {
	border-left: 14px solid #f1f6fc;
}
.wizard ul li .badge {
	margin-right: 8px;
}
.wizard ul li:nth-child(1) {
	z-index: 3;
	padding-left: 20px;
	border-radius: 4px 0 0 4px;
}
.wizard ul li:nth-child(2) {
	z-index: 2;
}
.wizard ul li:nth-child(3) {
	z-index: 1;
}
.wizard .actions {
	float: right;
	padding-right: 15px;
	line-height: 44px;
	vertical-align: middle;
}
/*.wizard .actions a {
	margin-right: 8px;
	font-size: 12px;
	line-height: 45px;
}*/
.wizard .actions .btn-prev i {
	margin-right: 5px;
}
.wizard .actions .btn-next i {
	margin-left: 5px;
}
.step-content .step-pane {
	display: none;
}
.step-content .active {
	display: block;
}

.panel {
  padding: 15px;
  margin-bottom: 20px;
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 4px;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.panel-heading {
  padding: 10px 15px;
  margin: -15px -15px 15px;
  font-size: 17.5px;
  font-weight: 500;      
  background-color: #f5f5f5;
  border-bottom: 1px solid #dddddd;
  border-top-right-radius: 3px;
  border-top-left-radius: 3px;
}

.panel-footer {
  padding: 10px 15px;
  margin: 15px -15px -15px;
  background-color: #f5f5f5;
  border-top: 1px solid #dddddd;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
}

.panel-primary {
  border-color: #428bca;
}

.panel-primary .panel-heading {
  color: #ffffff;
  background-color: #428bca;
  border-color: #428bca;
}

.panel-success {
  border-color: #d6e9c6;
}

.panel-success .panel-heading {
  color: #468847;
  background-color: #dff0d8;
  border-color: #d6e9c6;
}

.panel-warning {
  border-color: #fbeed5;
}

.panel-warning .panel-heading {
  color: #c09853;
  background-color: #fcf8e3;
  border-color: #fbeed5;
}

.panel-danger {
  border-color: #eed3d7;
}

.panel-danger .panel-heading {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

.panel-info {
  border-color: #bce8f1;
}

.panel-info .panel-heading {
  color: #3a87ad;
  background-color: #d9edf7;
  border-color: #bce8f1;
}
.modal.wide {
	width: 960px;
	margin-left: -480px;
}