/*
 * 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;
}

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */
.navbar-fixed-top {
  border: 0;
}

/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
  display: none;
}
@media (min-width: 768px) {
  .sidebar,
  .sidebar.col-sm-3,
  .sidebar.col-md-2 {
    position: fixed;
    top: 51px;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    /* Width set in JS: longest top-level menu item + ~50px */
    width: auto;
    max-width: none;
    padding: 12px 0 0;
    /* Pane height is fixed (top/bottom); the nav list scrolls. overflow stays
       visible on this wrapper so position:fixed flyouts are not clipped. */
    overflow: visible;
    /* Match Bootstrap btn-primary blue */
    background-color: #337ab7;
    border-right: 1px solid #2e6da4;
  }

  /* Content offset synced to measured sidebar width (see _Layout.cshtml) */
  .main.col-sm-offset-3,
  .main.col-md-offset-2 {
    margin-left: var(--sidebar-width, 200px);
    width: calc(100% - var(--sidebar-width, 200px));
  }
}

/* Sidebar navigation — scroll when the list is taller than the pane.
   Flyouts are moved to .sidebar-flyout-host so they are not clipped. */
.nav-sidebar {
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  padding-bottom: 16px;
  width: 100%;
}
.sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
}
.sidebar-nav::-webkit-scrollbar {
  width: 8px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}
/* Holds open flyouts so they are not clipped by the scrolling nav list */
.sidebar-flyout-host {
  flex: 0 0 auto;
  height: 0;
  width: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: none;
  pointer-events: none;
}
.sidebar-flyout-host > .dropdown-menu {
  pointer-events: auto;
}
.nav-sidebar > li {
  width: 100%;
}
.nav-sidebar > li > a {
  padding-right: 22px;
  padding-left: 14px;
  white-space: nowrap;
  display: block;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden; /* keep carets inside the hover bar */
}
.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
  color: #ffffff;
  background-color: transparent;
}


/*
 * Main content
 */

.main {
  padding: 20px;
}
@media (min-width: 768px) {
  .main {
    padding-right: 40px;
    padding-left: 40px;
  }
}
.main .page-header {
  margin-top: 0;
}


/*
 * 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%;
}