* {
	box-sizing: border-box;
}

html {
	font-size: 62.5%;
	font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
	background: #FFFFFF;
}

body {
	margin: 0;
	padding: 0;	
	font-size: 1.5rem;
	color: #5C5C5C;
}

a {
	color: #5C5C5C;
	text-decoration: none;
}

a:hover {
	color: #5C5C5C;
	text-decoration: underline;
}

a.colored {
	color: #4a8bee;
}

.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: 0;
    transform: translateX(-50%) translateY(-50%);
}

.centered-full-width {
	width: 95%;
	max-width: 50rem;	
}

header {
	background: #FAFAFA;
	height: 4.5rem;
	border-bottom: 1px solid #E3E3E3;
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	z-index: 1000;
}

.header-container {
	position: relative;
}

.logo {
	position: absolute;
	top: 0;
	left: auto;
	right: 3.5rem; 
	background: url('../images/logo_color.png');
	background-size: 9rem 4.5rem;
	height: 4.5rem;
	width: 9rem;
}

.nav-tools {
	position: absolute;
	top: 0;
	right: 0;
	height: 4.5rem;
	padding-right: 1rem;
}

.nav-tools-content {
	position: relative;
}

.nav-tools .fa {
	font-size: 2.5rem;
	line-height: 4.5rem;
}

.nav-tools a .caret {
	margin-bottom: 0.8rem;
}

.nav-tools a {
	text-decoration: none;
}

.nav-tools-popup {
	display: none;
	right: 0;
	position: absolute;
	border: 1px solid #D5D5D5;
	border-top: 0;
	z-index: 10001;
	background: #fff;
	min-width: 15rem;
}

.nav-tools-popup ul {
	padding: 0;
	margin: 0;
}

.nav-tools-popup li {
	list-style: none;
	margin: 0;
}

.nav-tools-popup li:hover {
	background: #4a8bee;
	color: #fff;
}

.nav-tools-popup a {
	display: block;
	padding: 1rem;
}

.nav-tools-popup a:hover {
	text-decoration: none;
	color: #fff;
}

.nav-tools-popup-overlay {
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    z-index: 10000;
}

.drawer-invisible .logo {
	left: 50%;
	right: auto;
	margin-left: -4.5rem;
}

.drawer-invisible .drawer-nav {
	display: none;
}

.drawer-invisible .drawer-contents {
	margin-left: 0 !important;
}

.page-title {
	font-size: 1.8rem;
	font-weight: normal;
	position: absolute;
	line-height: 4.5rem;
	padding-left: 2rem;
	color: #5C5C5C;
	top: 0;
	bottom: 0;
	left: 2rem;
}

.no-sub-menu {
	height: 0.6rem;
}

.sub-menu {
	border-bottom: 1px solid #eee;
	display: block;
}

.sub-menu:before, .sub-menu:after {
	content: " ";
	display: table;
}

.sub-menu-link {
	display: inline-block;
	width: 100%;
	padding: 0;
	margin: 0;
	list-style: none;
	height: auto;
}

.sub-menu-link li {
	display: inline-block;
}

.sub-menu-link li a {
	padding: 1.3rem 1.5rem 1.3rem;
	text-decoration: none;
	line-height: 4.5rem;
	color: #959494;
	font-size: 1.5rem;
}

.sub-menu-link li a.active {
	border-bottom: 2px solid #4a8bee;
	color: #000;
}

.sub-menu-controls {
	width: 100%;
	display: inline-block;
	float: right;
	text-align: left;
	padding: 1.5rem 0;
	margin: 0
}

.sub-menu-controls ul {
	margin: 0;
	padding: 0;
}

.sub-menu-controls li {
	display: inline-block;
	margin-left: 0.6rem;
	list-style: none;
}

.sub-menu-controls .button, .sub-menu-controls .ui-button, .sub-menu-controls .form-field {
	line-height: 1.9rem;
	display: inline-block;
	height: 3.3rem;
}

.sub-menu-controls .form-field {
	margin: 0;
}

.sub-menu-controls .form-field input[type=text],
.sub-menu-controls .form-field input[type=number] {
	height: 33px;
}

.sub-menu-controls .button {
	width: 100%;
}

.sub-menu-controls .ui-button {
	margin-bottom: 0.4rem;
}
 
.sub-menu-controls .ui-selectmenu-icon.ui-icon {
	margin-top: 0.2rem;
}

@media ( min-width :45em) {
	.sub-menu-link {
	    width: 50%;
	}
	.sub-menu-controls {
		width: 50%;
		padding: 0.6rem 0;
		text-align: right;
	}
	.sub-menu-controls .button {
		width: auto;
	}
	.logo {
		left: 50%;
		right: auto;
		margin-left: -4.5rem;
	}
}

@media ( min-width :64em) {
	.page-title {
		padding-left: 0rem;
	}	
	header {
		left: 20rem;
	}
	.drawer-invisible header {
		left: 0;
	}
	.centered {
		margin-left: 10rem;
	}
	.drawer-invisible .centered {
		margin-left: 0;
	}
	.drawer-invisible .drawer-nav {
		display: none;
	}
}

.drawer-nav {
	background: #3D454D;
}

.drawer-menu {
	padding-top: 1rem;
}

.drawer-menu-item {
	color: #ddd;
	font-size: 1.5rem;
	padding: 1rem 2rem;
	outline: none;
}

.drawer-menu-item:hover {
	text-decoration: none;
	color: #fff;
	background: #363D44;
}

.drawer-menu-item.active {
	color: #fff;
	background: #363D44;
}

.drawer-menu-item.title {
	font-size: 1.3rem;
	font-weight: bold;
}

.drawer-hamburger-icon, .drawer-hamburger-icon:after, .drawer-hamburger-icon:before {
	background: #5C5C5C; 
}

.drawer-overlay {
	background: transparent;
	z-index: 1;
}

.drawer-invisible .drawer-hamburger {
	display: none;
}

.drawer-hamburger {
	height: 4.5rem;
	padding: 0 .75rem 0;	
}

.drawer-hamburger-icon {
	margin-top: 0;
}

.drawer-hamburger-icon:after {
	top: 7px;
}

.drawer-hamburger-icon:before {
	top: -7px;
}

.drawer-contents {
	margin: 4.5rem auto 2rem auto;
	font-size: 1.5rem;
}

.content {
	padding-left: .75rem;
	padding-right: .75rem;
}

.flash, .error {
	display: relative;
}

.flash ul, .error ul {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	background: #E22E5C;
	color: #fff;
}

.flash ul.success {
	background: #40AD69;
}

.flash li, .error li {
	list-style: none;
	padding: 1rem;
}

.table-list {
	border-spacing: 0;
	margin: 0;
	padding: 0;
	width: 100%;
} 

.table-list td {
	padding: 1.5rem;
	border-bottom: 1px solid #eee;
}

.table-list td a {
	font-weight: bold;
}

.table-list-icon {
	margin-right: 1rem;
}

.table-list .button {
	margin-left: 0.5rem;
}

.panel {
	border: 1px solid #E5E5E5;
	margin: 1.5rem 0 2rem;
}

.panel-header {
	border-bottom: 1px solid #E5E5E5;
	padding: 1rem 1rem 1rem 1.5rem;
	background: #FAFAFA;
	font-size: 1.5rem;
}

.panel-body {
	padding: 1.5rem 1.5rem;
}

.panel-body.panel-body-table {
	padding: 0rem;
}

.panel-footer {
	border-top: 1px solid #E5E5E5;
	padding: 1rem 1.5rem;
	background: #FAFAFA;
	font-size: 1.5rem;
}

.panel-footer-left {
	width: auto;
	display: inline-block;
}

.panel-footer-full-right {
	width: 100%;
	display: inline-block;
	text-align: right;
}

.panel-footer-right {
	width: auto;
	display: inline-block;
	text-align: right;
	float: right;
}

.panel-footer .ui-button {
	margin-bottom: 0.3rem;
}

.panel-body .table-list td {
	padding: 1rem;
}

.panel-body .table-list tr:last-child td {
	border-bottom: none;
}

hr {
	margin: 10px 0 8px 0;
}

h1 {
	font-size: 1.2rem;
	margin: 20px 0;
}

h1.big {
	font-size: 20px;
}

label {
	width: 35%; 
	display: inline-block;
	text-align: right;
	padding-right: 2rem;
	vertical-align: middle;
	padding-bottom: 0.5rem;
}

.form-field {
	margin: 1rem 0;
}

.form-field-error {
	margin-left: 35%;
}

.form-field-error ul {
	padding: 0;
	margin: 0;
}

.form-field-error li {
	color: red;
	padding: 0.5rem 0.5rem 0.5rem 0;
	list-style: none;
}

input[type=submit] {
    -webkit-appearance: none;
}

.form-field input[type=text],
.form-field input[type=number],
.form-field input[type=email],
.form-field input[type=password],
.input-control {
	-webkit-appearance: none;
	display: inline-block;
	width: 65%;
	height: 35px;
	padding: 6px 10px;
	font-size: 15px;
	line-height: 1.42857143;
	color: #5c5c5c;
	background-color: #fff;
	background-image: none;
	border: 1px solid #ddd;
	border-radius: 3px;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	-webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
	-o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
	transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s
}

.ui-selectmenu-button {
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	-webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
	-o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
	transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s
} 

.form-field select {
	display: inline-block;
	height: 35px;
	padding: 6px 10px;
	font-size: 15px;
	line-height: 1.42857143;
	color: #5c5c5c;
	margin: 0.8rem 0;
}

@media ( min-width :45em) {
	label {
		width: 20%;
	}
	.form-field input[type=text],
	.form-field input[type=number],
	.form-field input[type=email],
	.form-field input[type=password], 
	.input-control {
		width: 80%;
	}
	.form-field-error {
		margin-left: 20%;
	}
	.form-field .datepicker {
		width: 20rem !important;
	}	
	
	.panel-login label {
		width: 40%;
	}
	.panel-login .form-field input[type=text],
	.panel-login .form-field input[type=email],
	.panel-login .form-field input[type=password], 
	.panel-login .input-control {
		width: 60%;
	}
	.panel-login .form-field-error {
		margin-left: 40%;
	}
}

form {
	padding: 0;
	margin: 0;
}

fieldset {
	position: relative;
	padding: 10px 15px 20px 15px;
	border: 1px solid #E5E5E5;
	border-radius: 1px;
	margin: 0 0 1rem 0;
	background: #fff;
	z-index: 0;
}

legend {
	font-weight: bold;
}

#actions {
	margin: 0 10px;
}

#race-steps {
	margin: 0;
}

.panel-body-race-steps {
	background: #FAFAFA;
}

hr {
	display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0; 
}

.step_actions {
	float: right;
	margin: 3px;
	/*right: 10px;
	top: 15px;*/
}

button, .button {
	display: inline-block;
	background: #4a8bee;
	border-radius: 3px;
	border: 1px solid transparent;
	color: #fff;
	box-shadow: none;
	padding: 0.6rem 1.0rem;
	font-size: 1.5rem;
	cursor: pointer;
	text-decoration: none;
	font-weight: normal;
	text-align: center;
	margin: 0;
}

.ui-button {
	padding: 0.4em 0.8em;
}

.ui-button, .ui-button:hover, .ui-button:focus {
	background: #fff;
	color: #5C5C5C;
	border: 1px solid #ddd;
}

button:disabled, .button:disabled, button[disabled]:hover, .button[disabled]:hover {
	background: #666666;
}

button:hover, .button:hover {
	text-decoration: none;
	color: #fff;
	background: #3a7bde;
}

.button-new {
	background: #40AD69;
	color: #fff;
}

.button-new:hover {
	background: #309D59;
	color: #fff;
}

.button-save {
	background: #40AD69;
	color: #fff;
}

.button-save:hover {
	background: #309D59;
	color: #fff;
}

.button-clean {
	background: transparent;
	border: 1px solid #E5E5E5;
	color: #333;
}

.button-clean:hover {
	background: rgba(0, 0, 0, 0.1);
	color: #333;
}

.button-delete {
	background: #E22E5C;
}

.button-delete:hover {
	background: #BF1A34;
}

.remove, .remove_inter {
	background: #E22E5C;
}

.remove:hover, .remove_inter:hover {
	background: #BF1A34;
}

.add_inter {
	margin-top: 10px;
}

.up, .down {
	background: #88B856;
}

.up:hover, .down:hover {
	background: #78A846;
}


.field {
	padding: 4px 0;
}

.inter_title {
	padding: 4px 0;
}

.ui-widget {
	font-size: 1.4rem;
}

.ui-menu-item-wrapper {
	padding: 1rem !important;
	border: 0 !important;
}

.ui-menu-item-wrapper.ui-state-active {
	padding: 1rem !important;
	border: 0 !important;
	background: #4a8bee;
	color: #fff;
}

.ui-selectmenu-button.ui-button {
	line-height: 1.5rem;
	padding: 8px 10px;
	font-size: 15px;
}

.caret {
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 2px;
	vertical-align: middle;
	border-top: 4px dashed;
	border-right: 4px solid transparent;
	border-left: 4px solid transparent;
}

.help {
	padding-right: 40px;
	background: url('../images/help.png') no-repeat;
	background-position: right center;
}

.times {
	color: #4a8bee;
}