/* http://startbootstrap.com/templates/simple-sidebar.html */

#wrapper {
  padding-left: 200px;
  /* transition: all 0.4s ease 0s; */
}

#sidebar-wrapper {
  margin-left: -200px;
  left: 200px;
  width: 200px;
  background: #000;
  position: fixed;
  height: 100%;
  overflow-y: auto;
  z-index: 1000;
  /* transition: all 0.4s ease 0s; */
}

#page-content-wrapper {
  width: 100%;
}

.sidebar-nav {
  position: absolute;
  top: 0;
  width: 200px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav li {
  line-height: 40px;
}

/* indent everything except buttons. use padding instead of indent so text that wraps doesnt go to the left margin. 
   put the padding on the a instead of the li so that there isnt a bar on the left that gets missed when hovering. */
.sidebar-nav li:not(.full-width) a {
  padding-left: 15px;
}

/* pad the archive with double whatever the a is. */
#archive {
  padding-left: 25px;
}

.sidebar-nav li a {
  color: #999999;
  display: block;
  text-decoration: none;
}

.sidebar-nav li a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

/* Cancel the hover for dropdown menu items */
.sidebar-nav .dropdown-menu li a:hover {
  background: rgba(184, 184, 184, 0.8);
  color: inherit;
}

.sidebar-nav li a:active,
.sidebar-nav li a:focus {
  text-decoration: none;
}

.sidebar-nav>.sidebar-brand {
  height: 65px;
  line-height: 60px;
  font-size: 18px;
}

.sidebar-nav>.sidebar-brand a {
  color: #fff;
  background: none;
}

.content-header span {
  margin: 0;
  margin-left: 10px;
  display: inline-block;
}

#menu-toggle {
  display: none;
}

.inset {
  padding: 20px;
}

/* *** NEW MOBILE DROPDOWN CSS START *** */
@media (max-width:767px) {
  #wrapper {
    padding-left: 0;
  }

  .content-header {
    height: 80px;
    display: block; /* Fix for Safari sticky flex bug */
  }

  .content-header-inner {
    display: flex;
    align-items: center;
    min-height: 80px;
    height: 100%;
    width: 100%;
  }

  #sidebar-wrapper {
    left: 0;
    margin-left: 0;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    position: fixed;
    top: 80px;
    z-index: 1035;
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

  /* Expand the inner navigation list to fill the mobile width */
  .sidebar-nav {
    width: 100%;
    position: relative;
    padding-bottom: 20px;
  }

  /* Give regular links more breathing room on mobile */
  .sidebar-nav li:not(.full-width) a {
    padding: 0 25px;
    font-size: 15px;
  }

  /* Make the buttons fill the screen nicely with uniform padding */
  .sidebar-nav li.full-width {
    padding: 0 20px;
    margin-bottom: 5px;
  }

  .sidebar-nav li.full-width a {
    width: 100%;
    box-sizing: border-box;
    margin: 5px 0 !important;
    text-align: center;
  }

  #wrapper.active {
    position: relative;
    left: 0;
  }

  #wrapper.active #sidebar-wrapper {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  #menu-toggle {
    display: inline-block;
  }

  .inset {
    padding: 15px;
  }
}

/* *** NEW MOBILE DROPDOWN CSS END *** */