.resultordering_asc {
    cursor: pointer;
}

.resultordering_asc .fa-gray
{
    color: #acacac;
}

.resultordering_asc .fa-sort-asc
{
    position: relative;
    top: 3px;
}

.resultordering_asc .fa-sort-desc
{
    position: relative;
    top: -3px;
}

.panel-athletesearch-control .chevron
{
    cursor: pointer;
}

.panel-athletesearch-control .chevron:after {
    content: "\f077";   
}
.panel-athletesearch-control.collapsed .chevron:after {
    content: "\f078";   
}

.panel-athletesearch-control .expandsearch_label
{
    display: none;
}

.panel-athletesearch-control.collapsed .expandsearch_label
{
    display: inherit;
    font-size: 11px;
    color: #ffffff;
}

.athletesearchpanel
{
    margin-top: 10px;
}

/* Page-top search/filter/info bar */
.page-filter-bar {
    padding: 20px 0 25px;
    background-color: #333333;
    color: #ffffff;
}

.page-filter-bar-with-advancedsearch {
    padding: 20px 0 0;
}

.page-filter-bar ul.nav-tabs li.active {
    margin-top: 2px;
}

.galleryimg {
    padding: 10px;
}

/* Radio-button groups */
.btn-group-radio {
    width: 100%;
}
.btn-group-radio input[type=radio] {
  visibility: hidden;
  display: none;  
}

.btn-group-radio input[type=radio] + .btn {
  text-transform: inherit;
}
.btn-group-radio-withspacing input[type=radio] + .btn {
  margin: 5px;
}

.btn-group-radio input[type=radio]:checked + .btn {
  color: #ffffff;
  background-color: #555555;
  background-image: none;
  outline: 0;
}

/*Error State*/
.state-error input,
.state-error select,
.state-error textarea,
.radio.state-error i,
.checkbox.state-error i,
.toggle.state-error i {
	background: #fff0f0;
}

.state-error select + i {
	background: #fff0f0;
	box-shadow: 0 0 0 12px #fff0f0;
}

.toggle.state-error input:checked + i {
	background: #fff0f0;
}

.state-error + em {
	display: block;
	color: #ee9393;
	padding: 0 1px;
	font-size: 11px;
	margin-top: 6px;
	line-height: 15px;
	font-style: normal;
}

.rating.state-error + em {
	margin-top: -4px;
	margin-bottom: 4px;
}

/*Success State*/
.state-success input,
.state-success select,
.state-success textarea,
.radio.state-success i,
.checkbox.state-success i,
.toggle.state-success i {
	background: #f0fff0;
}

.state-success select + i {
	background: #f0fff0;
	box-shadow: 0 0 0 12px #f0fff0;
}

.toggle.state-success input:checked + i {
	background: #f0fff0;
}

.state-success + em {
	display: block;
	color: #6fb679;
	padding: 0 1px;
	margin-top: 6px;
	font-size: 11px;
	line-height: 15px;
	font-style: normal;
}

.note-success {
	color: #6fb679;
}

/* Detail-view collapse icon */
.detail-collapse a:after {
    font: normal 14px FontAwesome;
    content: '\f077';
}

.detail-collapse a.collapsed:after {
    content: '\f078';
}


/* Misc */
tr.eventListHeader, tr.eventListHeader td {
    background-image: linear-gradient(to bottom, #3C3C3C 0%, #222222 100%);
    background-repeat: repeat-x;
    background-color: #3C3C3C;
    color: #ffffff;
    font-weight: bold;
    font-size: small;
}


.jumbotron .profile-photo-container {
    position: relative;
}

.jumbotron .profile-photo {
    position:absolute;
    top: 60px;
    right: 50px;
}

.jumbotron .profile-photo img {
    height: 180px;
}

@media (max-width:1200px) { /* Bootstrap large: 1200px */
    .jumbotron .profile-photo {
        top: 25px;
        right: 10px;
    }

    .jumbotron .profile-photo img {
        height: 150px;
    }
}


.input-group .input-group-addon i {
    width: 20px;
}

@media print
{    
    .noprint, .noprint *
    {
        display: none !important;
    }
}


/* Header tabs overwrite */
.headertabs .nav-tabs li.tabitem.active > a,
.headertabs .nav-tabs li.tabitem.active > a:hover {
    background-color: #333333 !important;
}


/* Event page */
.eventpage-distance-header {
    padding-top: 5px;
    padding-bottom: 5px;
}

    .eventpage-distance-header a {
        font-size: 14px;
    }

.eventpage-distance-soldout {
    background-color: #C0392B;
    padding: 2px;
    color: #ffffff;
    font-size: small;
    position: absolute;
    width: 70px;
    right: 50px;
    text-align: center;
}

.eventpage-distance-fewleft {
    background-color: #E67E22;
    padding: 2px;
    color: #ffffff;
    font-size: small;
    position: absolute;
    width: 70px;
    right: 50px;
    text-align: center;
}

.eventpage-distance-iconcol {
    width: 25px;
}

.eventpage-header-icon {
    width: 55px;
    vertical-align: middle;
    color: #eeeeee;
}

.eventpage-header-icontext {
    text-align: left;
    color: #eeeeee;
}

.eventpage-signup-button {
    margin: 3px;
}

.eventpage-contactbar h2 {
    margin-top: 0px;
    margin-bottom: 10px;
}

.eventpage-contactbar i {
    margin-top: 0;
    margin-bottom: 10px;
}

.eventpage-contactbar,
.eventpage-contactbar a {
    color: #ffffff !important;
}

.eventpage-contactbar a:hover {
    color: #eeeeee !important;
}

.eventpage-progressbar {
    margin-bottom: 5px;
}

/* Countdown */

.countdown-labels-small span {
    font-weight: inherit !important;
    font-size: 14px !important;
    width: 67px !important;
}

/* Generic image overlay titles */
.img-title-small {
    background-color: rgba(0, 0, 0, 0.6);
    position: relative;
    top: -25px;
    height: 25px;
    line-height: 25px;
    padding-left: 7px;
    padding-right: 5px;
    color: #ffffff;
    font-size: 12px;
}


/* Profile page */
.profile-photo-item {
    margin-bottom: 0px;
}

.profile-record-typeicon {
    height: 30px;
    width: 30px;
}

/* Custom marings */

.margin-bottom-5, 
.margin-bottom-10, 
.margin-bottom-15, 
.margin-bottom-20,
.margin-bottom-25, 
.margin-bottom-30, 
.margin-bottom-35, 
.margin-bottom-40, 
.margin-bottom-45, 
.margin-bottom-50, 
.margin-bottom-55, 
.margin-bottom-60,
.margin-bottom-100 { 
   clear:both;
}
.margin-bottom-5  { margin-bottom:5px;}
.margin-bottom-10 { margin-bottom:10px;} 
.margin-bottom-15 { margin-bottom:15px;}
.margin-bottom-20 { margin-bottom:20px;}
.margin-bottom-25 { margin-bottom:25px;}
.margin-bottom-30 { margin-bottom:30px;}
.margin-bottom-35 { margin-bottom:35px;}
.margin-bottom-40 { margin-bottom:40px;}
.margin-bottom-45 { margin-bottom:45px;}
.margin-bottom-50 { margin-bottom:50px;}
.margin-bottom-55 { margin-bottom:55px;}
.margin-bottom-60 { margin-bottom:60px;}
.margin-bottom-100 { margin-bottom:100px;}

@media (max-width: 768px) {
  .sm-margin-bottom-10 {
    margin-bottom: 10px;
  }
  .sm-margin-bottom-20 {
    margin-bottom: 20px;
  }
  .sm-margin-bottom-30 {
    margin-bottom: 30px;
  }
  .sm-margin-bottom-40 {
    margin-bottom: 40px;
  }
  .sm-margin-bottom-50 {
    margin-bottom: 50px;
  }
  .sm-margin-bottom-60 {
    margin-bottom: 60px;
  }
}

@media (max-width: 992px) {
  .md-margin-bottom-10 {
    margin-bottom: 10px;
  }
  .md-margin-bottom-20 {
    margin-bottom: 20px;
  }
  .md-margin-bottom-30 {
    margin-bottom: 30px;
  }
  .md-margin-bottom-40 {
    margin-bottom: 40px;
  }
  .md-margin-bottom-50 {
    margin-bottom: 50px;
  }
  .md-margin-bottom-60 {
    margin-bottom: 60px;
  }
}


@media (max-width: 670px) {
    .nextEventCountdown {
        display: none;
    }
}

/* Checkboxes */
.checkbox input[type="checkbox"] {
    margin-left: 0px;   
}

li .checkbox input[type="checkbox"] {   /* Overruling for multiselect dropdown */
    margin-left: -20px !important;   
}

.checkbox, .radio {
    display: inline;
}

/* Tables without borders/lines */
.table-borderless td, .table-borderless th {
    border: none !important;
}

.table-nobackground
{
    background: none !important;
}

.table .highlightrow td
{
    background-color: #cbcbcb;
    font-weight: bold;
}

/* Map overlay marker */
.map-overlay-body {
    width: 75%;
}

.map-overlay-body h3 {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Custom table stuff */
.table-header {
    background-color: #ececec;
}

/* Make striped tables work with transparency */
.table-striped>tbody>tr:nth-child(odd) {
    background-color: rgba(240,240,240, 0.6);
}

.table-striped-noborder>tbody>tr:nth-child(odd) {
    background-color: rgba(255,255,255, 0.4);
}

.table-striped-noborder>thead>tr>th,
.table-striped-noborder>tbody>tr>th,
.table-striped-noborder>tfoot>tr>th,
.table-striped-noborder>thead>tr>td,
.table-striped-noborder>tbody>tr>td,
.table-striped-noborder>tfoot>tr>td {
    border-top: 0px;
}

/* Select2 fixes for bootstrap view */
.select2-container--default .select2-selection--single {
    border: 1px solid #D5D5D5;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top:6px;
}


/* Better optimizing of space on mobiles */
@media (max-width:768px)    /* Bootstrap small: 768px */
{
    .smaller-on-mobile {
        font-size: 11px;
    }

    .smaller-on-mobile td {
        padding: 2px;
    }

    .no-border-on-mobile {
        padding-left: 0px;
        padding-right: 0px;
    }

    .text-center-xs {
        text-align: center;
    }
}

@media (max-width:450px) {
    .hidden-xxs {
        display: none;
    }
}

/* Backend */
.backend-header {
    top: 50px !important;
    z-index: 999 !important;
}

.control-sidebar
{
    top: 50px !important;
    height: 100%;
    z-index: 900 !important;
}

.info-box a {
    color: #fff;
    text-decoration: underline;
}
.info-box a:hover {
    color: #ddd;
    text-decoration: underline;
}