/*
 * Base structure
 */

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

/*
 * 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;
  }
}

/* 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;
}

/*
 * Main content
 */

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

.carousel {
  height: 500px;
  margin-bottom: 60px;
}
/* Since positioning the image, we need to help out the caption */
.carousel-caption {
  z-index: 10;
}

/* Declare heights because of positioning of img element */
.carousel .item {
  height: 500px;
  background-color: #777;
}
.carousel-inner > .item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 500px;
}

ul.pagination {
  margin-bottom: 0;
}

fieldset {
  margin-bottom: 20px;
  /**
    biscuit likes me best.
    */
}

@media (min-width: 1200px) {
  div.actions {
    float: left;
    width: 20%;
  }

  div.form,
  div.view {
    float: right;
    width: 75%;
  }

  div.related {
    clear: both;
  }
}

@media (min-width: 320px) {
  .view .dl-horizontal dt {
    float: left;
    width: 160px;
    clear: left;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .view .dl-horizontal dd {
    margin-left: 180px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 13px;
  }

  .badge {
    font-size: 11px;
  }

  td.mobile-hide,
  th.mobile-hide {
    display: none;
  }

  .table > thead > tr > th,
  .table > tbody > tr > td {
    padding: 4px;
    vertical-align: middle;
  }
  .btn-sm {
    padding: 2px 3px;
  }
}

.navbar-inverse {
  background-color: maroon;
}

td.nowrap {
  white-space: nowrap;
}
.progress-bar-muted {
  background-color: #999999;
}
table a,
.table a {
  text-decoration: none;
}
