/* Layout - from sticky-footer-navbar example */

html,
body {
  height: 100%;
}

#wrap {
  min-height: 100%;
  height: auto !important;
  height: 100%;
  margin: 0 auto -55px;
  padding: 0 0 55px;
}

#content {
  padding: 0 15px 20px;
}

/* Map overlays have a z-index of 1000 */
.navbar {
  margin-bottom: 5px;
  z-index: 1001;
}

#footer {
  height: 55px;
  background-color: #f5f5f5;
}

.dl-horizontal > dd:after {
  display: table;
  content: "";
  clear: both;
}
@media (min-width: 768px) {
  .dl-horizontal-lg dt {
    width: 240px;
  }
  .dl-horizontal-lg dd {
    margin-left: 260px;
  }
}

/* Styles */

#footer p {
  line-height: 55px;
  margin: 0;
}

.navbar-brand {
  padding-top: 5px;
  padding-bottom: 5px;
}

#footer img {
  max-height: 40px;
  margin-top: -12px;
  margin-right: 10px;
}

.navbar img {
  max-height: 40px;
  max-width: 100px;
}

#flash {
  position: absolute;
  left: 0;
  right: 0;
  top: 50px;
  pointer-events: none;
  z-index: 3;
}

#cd-feedback {
  position: absolute;
  z-index: 4;
  height: 0;
  overflow: visible;
  padding-right: 15px;
  padding-left: 15px;
  left: 0;
  right: 0;
}

#cd-feedback > div:first-child {
  padding-top: 50px;
  max-width: 400px;
  width: 100%;
  margin-left: auto;
}

#cd-feedback > div:first-child > form {
  display: none;
  padding: 0;
  background-image: -webkit-linear-gradient(top, #3c3c3c 0%, #222 100%);
  background-image:         linear-gradient(to bottom, #3c3c3c 0%, #222 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);
  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  background-repeat: repeat-x;
  color: #ddd;
/*  border: 1px solid #080808;*/
  border-bottom-left-radius: 4px;
}

#cd-feedback > div:first-child > form > div {
  padding: 8px 0 15px;
}

#cd-feedback > div:first-child > form .form-group:last-child {
  margin-bottom: 0;
}

#cd-feedback > div:last-child {
  position: relative;
}

#cd-feedback > div:last-child > a {
  color: #ddd;
  background-color: #222;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  padding: 3px 8px;
  text-decoration: none;
/*  border: 1px solid #080808;*/
  border-top-color: #222;
  position: absolute;
  top: 0;
  right: 0;
}

#cd-feedback.fail > div:last-child > a {
  background-color: #d9534f;
  color: #fff;
}

#cd-feedback.done > div:last-child > a {
  background-color: #5cb85c;
  color: #fff;
}

#cd-feedback > div:last-child > a:hover {
  color: #fff;
}

@media (max-width: 767px) {
  #cd-feedback {
    padding-left: 0;
    padding-right: 0;
  }
  
  #cd-feedback > div:first-child > form .form-group {
    margin-bottom: 10px;
  }
  
  #cd-feedback > div:first-child > form > div {
    padding-left: 15px;
    padding-right: 15px;
  }

  #cd-feedback > div:last-child > a {
    padding: 6px 8px;
  }
}


#flash > div {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  pointer-events: auto;
}

iframe {
  border: 0;
  padding: 0;
  background-color: transparent;
}

.club-selector-dropdown {
  font-weight: bold;
}

.form-inline {
  line-height: 2.6;
}

.form-inline label {
  padding-left: 3px;
  padding-right: 1px;
}

.form-inline .form-group {
  white-space: nowrap;
}

@media (max-width: 767px) {
  h2 {
    font-size: 20px;
    margin-top: 5px;
    text-align: center;
  }
  h3 {
    font-size: 18px;
    margin-top: 5px;
    text-align: center;
  }
  h4 {
    font-size: 16px;
    margin-rop: 5px;
  }
}

@media (min-width:768px) {
  .form-inline .input-group-wrap {
    width: 140px;
  }
  .form-inline .input-text-sm {
    width: 120px;
  }
  .form-inline .input-text-xs {
    width: 80px;
  }
  .form-inline .input-sm.input-text-sm {
    width: 90px;
  }
  .form-inline .input-sm.input-text-xs {
    width: 60px;
  }
  .form-inline .input-group-wrap {
    display: inline-block;
    vertical-align: middle;
  }

}

.c3-chart {
  height: 300px;
  margin-bottom: 16px;
}

@media (min-width:768px) {
  .c3-chart {
    height: 350px;
  }
}

@media (min-width: 992px) {
  .c3-chart {
    height: 400px;
  }
}

@media (min-width: 1200px) {
  .c3-chart {
    height: 450px;
  }
}

.c3-title {
  text-align: center;
  font-weight: bold;
}

.c3-tooltip {
  white-space: nowrap;
}

/* FIXME remove this when C3 is fixed and doesn't show resize cursor on charts without zooming */
.c3-zoom-rect {
  display: none;
}

.c3-tooltip {
  opacity: 1;
}

.c3-region.cd-c3-week-odd {
  display: none;
}

.c3-region.cd-c3-week-even {
  fill: #eee;
}

.show-on-load {
  display: none !important;
}

.tableFloatingHeaderOriginal {
  background-color: white;
}

.table-condensed-xs>thead>tr>th, .table-condensed-xs>tbody>tr>th, .table-condensed-xs>tfoot>tr>th,
.table-condensed-xs>thead>tr>td, .table-condensed-xs>tbody>tr>td, .table-condensed-xs>tfoot>tr>td {
  padding: 2px 4px;
}

/* dropdown submenus from http://www.bootply.com/nZaxpxfiXz */
.dropdown-submenu{position:relative;}
.dropdown-submenu>.dropdown-menu{top:0;left:100%;margin-top:-6px;margin-left:-1px;border-top-right-radius: 0;border-top-left-radius: 0}
.navbar-right .dropdown-submenu>.dropdown-menu{left:auto;right:100%;}
.dropdown-submenu>a:after{display:block;content:" ";float:right;width:0;height:0;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;border-left-color:#cccccc;margin-top:5px;margin-right:-10px;}
.dropdown-submenu:hover>a:after{border-left-color:#555;}
.dropdown-submenu.pull-left{float:none;}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px;}

.form-inline .form-control.selectize-control {
  height: 34px;
}

/* Stack tables on mobile */
@media (max-width: 767px) {
  .cd-table-responsive,
  .cd-table-responsive > thead,
  .cd-table-responsive > thead > tr,
  .cd-table-responsive > thead > tr > th,
  .cd-table-responsive > thead > tr > td,
  .cd-table-responsive > tbody,
  .cd-table-responsive > tbody > tr,
  .cd-table-responsive > tbody > tr > th,
  .cd-table-responsive > tbody > tr > td {
    display: block;
  }
  
  .cd-table-responsive > thead > tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .cd-table-responsive > tbody > tr {
    border: 1px solid #ccc;
  }

  .cd-table-responsive > tbody > tr > td {
    border: none;
    border-bottom: 1px solid #eee; 
    position: relative;
    padding-left: 40%; 
    white-space: normal;
    text-align:left;
  }
  
  .cd-table-responsive > tbody > tr > td:first-child {
    border-top: none;
  }

  .cd-table-responsive > tbody > tr > td:last-child {
    border-bottom: none;
  }

  .cd-table-responsive > tbody > tr > td:before {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 35%; 
    padding-right: 10px; 
    white-space: nowrap;
    text-align:left;
    font-weight: bold;
    color: #333;
  }
}
.cd-reports-menu ul {
  margin-bottom: 10px;
}