/* Import font from Google Fonts*/
@import url(http://fonts.googleapis.com/css?family=Open+Sans:300,400,600);

/*
 * Base structure
 */

/* Move down content because we have a fixed navbar that is 50px tall */
body {
  padding-top: 50px;
}

#rank-table th {
	text-align: center;
}

#rank-table td {
	text-align: center;
}

/*
 * Global add-ons
 */

.sub-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
  display: none;
}
@media (min-width: 768px) {
	.sidebar {
		position: fixed;
		top: 51px;
		bottom: 0;
		left: 0;
		z-index: 1000;
		display: block;
		padding: 20px;
		overflow-x: hidden;
		/*overflow-y: auto; *//* Scrollable contents if viewport is shorter than content. */
		background-color: #f5f5f5;
		border-right: 1px solid #eee;
  }
}


.navbar-brand {
	font-family: 'Open Sans', sans-serif;
	font-weight: bold;
	color: #e8c523 !important;
	font-size: 20px;
}

.navbar-inverse .navbar-nav>li>a {
	color: #fff;
}

#racecards-nav {
	margin-right: 20px;
}

/* Sidebar navigation */
.nav-sidebar {
  margin-right: -21px; /* 20px padding + 1px border */
  margin-bottom: 20px;
  margin-left: -20px;
}
.nav-sidebar > li > a {
  padding-right: 20px;
  padding-left: 20px;
}
.nav-sidebar > .active > a {
  color: #fff;
  background-color: #428bca;
}

.racecard {
	background-color: #474747;
	color: #ffffff !important;
	margin-top: 4px;
	margin-bottom: 4px;
	margin-right: 4px;
	margin-left: 4px;
	border: 1px solid #fff;
}

.racecard>a {
	padding-top: 10px !important;
	padding-bottom: 10px !important;
}

.racecard-selected {
	border: 2px solid yellow;
}

.user-dropdown {
	margin-right: 12px;
	padding-right: 4px;
}



/*
 * Main content
 */

.main {
  padding: 20px;
}
@media (min-width: 768px) {
  .main {
    padding-right: 10px;
    padding-left: 10px;
  }
}
.main .page-header {
  margin-top: 0;
}

.ppfilter {
	height: 30px !important;
}

.ppfilter-sidebar {
	padding: 10px;
}

#ppfilters {
	padding-bottom: 20px;
}

.ppfilter-label {
	font-weight: normal;
	cursor: pointer;
}

.ppfilter-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	text-align:center;
	z-index: 1000;
	display: block;
	padding-top:10px;
	padding-bottom:10px;
	padding-right:20px;
	padding-left:20px;
	background-color: #f5f5f5;
	border-right: 1px solid #eee;
}

.panel-body {
	white-space: nowrap;
	display: block;
	overflow: scroll;
	padding-right: 8px;
}

.scratchfilter {
	padding-right: 12px;
}

.borderless tbody tr td, .borderless tbody tr th, .borderless thead tr th {
	border: none;
}

.race-header {
	background: #5C5C5C;
	padding-top:8px;
	padding-bottom:8px;
	padding-right:8px;
	padding-left:8px;
}

.header-trackinfo {
	color: #FFFFFF;
	font-size: 18px;
	font-weight: bold;
	padding-right: 10px;
}

.header-raceselector {
    font-size: 18px;
    font-weight: bold;
    padding-right: 10px;
}

.track-header {
	padding-bottom: 4px;
}

.header-raceinfo {
    color: #FFFFFF;
	font-size: 12px;
	line-height: 80%;
}

.race-header-bottom {
	margin-top:5px;
}

.bettability {
	background: #eee;
	padding-top:3px;
	padding-bottom:3px;
	padding-right:3px;
	padding-left:3px;
	font-size: 12px;
}

.bettability-low {
	background: red !important;
	color: #ffffff !important;
}

.bettability-med {
	background: yellow !important;
	color: #000000 !important;
}

.bettability-high {
	background: green !important;
	color: #ffffff !important;
}

.pptable {
	width: 100%;
	margin-bottom: 0px;
	overflow-y: hidden;
	overflow-x: auto;
	-ms-overflow-style: -ms-autohiding-scrollbar;
	border: 1px solid #ddd;
}

#wo-ranking-table {
    width: 40%;
}

#upload-response {
	padding-bottom: 10px;
}

/*
 * Placeholder dashboard ideas
 */

.placeholders {
  margin-bottom: 30px;
  text-align: center;
}
.placeholders h4 {
  margin-bottom: 0;
}
.placeholder {
  margin-bottom: 20px;
}
.placeholder img {
  display: inline-block;
  border-radius: 50%;
}

.tab-content {
	padding: 10px;
}

.horsenum {
	font-size: 16px;
	font-weight: bold;
	padding-left: 6px;
	padding-right: 6px;
	text-decoration: none;
	border: 1px solid #000;
	margin-right: 8px;
}

.horsenum-link {
	font-size: 16px;
	font-weight: bold;
	padding-left: 6px;
	padding-right: 6px;
	text-decoration: none;
	border: 1px solid #000;
}

.horsenum:link, .horsenum:visited, .horsenum:hover, .horsenum:active {
	text-decoration:none;
	color: initial;
}

.horsenum-1 {
	background: red;
	color: white !important;
}

.horsenum-1A {
	background: red;
	color: white !important;
}

.horsenum-2 {
	background: white;
	color: black !important;
}

.horsenum-2B {
	background: white;
	color: black !important;
}

.horsenum-3 {
	background: blue;
	color: white !important;
}

.horsenum-4 {
	background: gold;
	color: black !important;
}

.horsenum-5 {
	background: #00CC33;
	color: black !important;
}

.horsenum-6 {
	background: black;
	color: gold !important;
}

.horsenum-7 {
	background: red;
	color: black !important;
}

.horsenum-8 {
	background: pink;
	color: black !important;
}

.horsenum-9 {
	background: #00CCCC;
	color: black !important;
}

.horsenum-10 {
	background: purple;
	color: white !important;
}

.horsenum-11 {
	background: lightgrey;
	color: red !important;
}

.horsenum-12 {
	background: #00CC33;
	color: red !important;
}

.horsenum-13 {
	background: #663333;
	color: white !important;
}

.horsenum-14 {
	background: #663333;
	color: green !important;
}

.horsenum-15 {
	background: #A8A797;
	color: black !important;
}

.horsenum-16 {
	background: #8FCDF9;
	color: #888F93 !important;
}

.horsenum-17 {
	background: #0F1E30;
	color: #E5F4FF !important;
}

.horsenum-18 {
	background: #002200;
	color: #A1C986 !important;
}

.horsenum-19 {
	background: #023295;
	color: pink !important;
}

.horsenum-20 {
	background: #F93799;
	color: #FEAB9C !important;
}

.horsenum-21 {
	background: #BBBCFE;
	color: #3E2C75 !important;
}

.horsenum-22 {
	background: #000074;
	color: #DCDAFF !important;
}

.horsenum-23 {
	background: #B9E9D0;
	color: #18412F !important;
}

.horsenum-24 {
	background: #062E03;
	color: #CFEAC7 !important;
}

#horsePopoverBody {
	padding-top:5px;
	padding-left:2px;
}

#horsePopoverBody .propertyTable {
	border-spacing:0px;

}
#horsePopoverBody .propertyTable td {
	padding-right:5px;
}

#horsePopoverBody .propertyTable .propertyName {
	color:#828282;
	vertical-align:top;
	white-space:nowrap;
}

#horsePopoverBody .propertyTable .propertyValue {
	color:#000000;
}

#results-link {
	color: white;
	text-decoration: underline;
}

.popover{
	max-width: 75%; // Max Width of the popover (depending on the container!)
}

.centertext {
	font-size: 20px;
	color: #a8a8a8;
	left: 0;
	line-height: 200px;
	margin-top: -100px;
	position: absolute;
	text-align: center;
	top: 50%;
	width: 100%;
}