body {
	font-size: 13px;
}

form.ap-form fieldset.well {
	position: relative;
	margin-top: 15px;
	margin-bottom: 60px;
}

form.ap-form fieldset fieldset .form-group {
	padding-left: 0;
}

form.ap-form fieldset > legend {
	width: auto;
	color: #63a812;
	font-size: 20px;
	font-weight: normal;
	margin: 0 0 5px;
	padding: 0 5px;
	border: none;
}

form.ap-form fieldset.well > legend {
	position: absolute;
	margin: -45px 0 5px -15px;
}

form.ap-form fieldset fieldset > legend {
	color: #0e93d7;
	font-size: 13px;
	font-weight: bold;
	margin-bottom: 0;
	padding-left: 0;
	padding-top: 10px;
}
form.ap-form fieldset fieldset:first-of-type > legend {
	padding-top: 0;
}

form.ap-form fieldset fieldset > legend ~ div > label {
	padding-top: 5px;
}

form.ap-form .help-block {
	clear: both;
}

/* Fixed the help text colour regardless the status (error/success/info) */
form.ap-form .help-text{
	color: #737373 !important;
}


.hint-wrapper {
	display: table;
	width: 100%;
}

.hint-wrapper > * {
	display: table-cell;
}

.hint-icon-wrapper {
	text-align: right;
	padding-left: 5px;
}

form.ap-form i.ap-form-hint {
	color: #c3e2e9;
}

.tooltip-inner {
	background-color: #d9edf7;
	border: 1px solid #31708f;
	color: #31708f;
}

.tooltip .tooltip-arrow:after {
	content: ' ';
	position: absolute;
	border: 5px solid transparent;
	pointer-events: none;
}

.tooltip.top .tooltip-arrow {
	border-top-color: #31708f;
}
.tooltip.top .tooltip-arrow:after {
	border-top-color: #d9edf7;
	margin-left: -5px;
	top: -6px;
}

.tooltip.bottom .tooltip-arrow {
	border-bottom-color: #31708f;
}
.tooltip.bottom .tooltip-arrow:after {
	border-bottom-color: #d9edf7;
	margin-left: -5px;
	bottom: -6px;
}

.tooltip.left .tooltip-arrow {
	border-left-color: #31708f;
}
.tooltip.left .tooltip-arrow:after {
	border-left-color: #d9edf7;
	margin-top: -5px;
	left: -6px;
}

.tooltip.right .tooltip-arrow {
	border-right-color: #31708f;
}
.tooltip.right .tooltip-arrow:after {
	border-right-color: #d9edf7;
	margin-top: -5px;
	right: -6px;
}

.tooltip.in {
	opacity: 1;
}

.checkbox {
	margin-top: 32px;
}

.checkbox input[type='checkbox'] {
	margin-top: 2px;
}

.form-group {
	margin-bottom: 10px;
}

.well {
	background: none;
	border: 1px solid #e5e5e5;
	border-radius: 0;
	box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

ul.errors {
	padding-left: 25px;
}

.btn-success {
	border-color: #72BA33;
	box-shadow: 0 1px #62A12C;
	color: white;

	background: #60ba12; /* Old browsers */
	background: -moz-linear-gradient(top, #7dcb39 0%, #60ba12 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #7dcb39), color-stop(100%, #72bb33)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #7dcb39 0%, #60ba12 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, #7dcb39 0%, #60ba12 100%); /* Opera11.10+ */
	background: -ms-linear-gradient(top, #7dcb39 0%, #60ba12 100%); /* IE10+ */
	background: linear-gradient(top, #7dcb39 0%, #60ba12 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#7dcb39', endColorstr='#60ba12', GradientType=0); /* IE6-9 */
}

.btn-success:hover, .btn-success:active {
	border-color: #72BA33;

	background: #70ca22; /* Old browsers */
	background: -moz-linear-gradient(top, #70ca22 0%, #58af0b 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#70ca22), color-stop(100%,#58af0b)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #70ca22 0%,#58af0b 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, #70ca22 0%,#58af0b 100%); /* Opera11.10+ */
	background: -ms-linear-gradient(top, #70ca22 0%,#58af0b 100%); /* IE10+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#70ca22', endColorstr='#58af0b',GradientType=0 ); /* IE6-9 */
	background: linear-gradient(top, #70ca22 0%,#58af0b 100%); /* W3C */
}

/* Overwrite the bootstrap default when button on hover and focus. This is for primary button located top right of the form (Green) */
.button.primary:hover, .button.primary:focus {
	color: #FFFFFF;
	text-decoration: none;
}

/* Overwrite the bootstrap default when button on hover and focus. This is for default button location bottom right of the form (Blue) */
.bootstrap-friendly .btn-default:active:hover, .bootstrap-friendly .btn-default:active, .bootstrap-friendly .btn-default:hover, .bootstrap-friendly .btn-default:focus{
	color: #FFFFFF;
	text-decoration: none;
	border-color: #72BA33;

	background: #70ca22; /* Old browsers */
	background: -moz-linear-gradient(top, #70ca22 0%, #58af0b 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#70ca22), color-stop(100%,#58af0b)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #70ca22 0%,#58af0b 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, #70ca22 0%,#58af0b 100%); /* Opera11.10+ */
	background: -ms-linear-gradient(top, #70ca22 0%,#58af0b 100%); /* IE10+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#70ca22', endColorstr='#58af0b',GradientType=0 ); /* IE6-9 */
	background: linear-gradient(top, #70ca22 0%,#58af0b 100%); /* W3C */
}

/* forcing the default button to align right */
.bootstrap-friendly .btn-default {
	float: right;
	margin-right: 15px;
}


/* Move the label down to baseline with the input elements for horizontal forms */
form.ap-form.form-horizontal label {
    padding-top: 0.5em;
}

/* Old school forms have a grey dotted line between elements. We should keep the padding but remove the line at some point! */
form.ap-form.form-horizontal .row:not(:last-child) {
    border-bottom: 1px dotted #cccccc;
}
form.ap-form.form-horizontal .row {
    margin-bottom: 0.5em;
    padding-bottom: 0.5em;
}

.bootstrap-friendly .tab-content {
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
	padding: 10px;
}

.bootstrap-friendly .nav-tabs {
	margin-bottom: 0;
}

.bootstrap-friendly .nav-tabs > li.active > a,
.bootstrap-friendly .nav-tabs > li.active > a:focus
{
	background-color: #f5f5f5;
}

.bootstrap-friendly .alert {
	background-image: none;
}

.bootstrap-friendly .badge-primary {
	background-color: #3875d7;
	color:#FFFFFF;
}