/*!
 * Start Bootstrap - Simple Sidebar (https://startbootstrap.com/templates/simple-sidebar)
 * Copyright 2013-2020 Start Bootstrap
 * Licensed under MIT (https://startbootstrap.com/templates/simple-sidebar)
 */

#wrapper {
  overflow-x: hidden;
}

#sidebar-wrapper {
  min-height: 100vh;
  margin-left: -15rem;
  -webkit-transition: margin .25s ease-out;
  -moz-transition: margin .25s ease-out;
  -o-transition: margin .25s ease-out;
  transition: margin .25s ease-out;
}

#sidebar-wrapper .sidebar-heading {
  padding: .875rem 1.25rem;
  font-size: 1.2rem;
}

#sidebar-wrapper .list-group {
  width: 15rem;
}

#page-content-wrapper {
  min-width: 100vw;
}

#wrapper.toggled #sidebar-wrapper {
  margin-left: 0;
}

@media (max-width: 767.98px) {
  #sidebar-wrapper {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0 0 0 -100vw !important;
    overflow-y: auto;
    background: #f8f9fa;
  }

  #sidebar-wrapper .sidebar-heading,
  #sidebar-wrapper .list-group,
  #sidebar-wrapper .mobile-sidebar-account {
    width: 100%;
  }

  .mobile-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    background: #343a40;
  }

  #menu-close {
    width: 44px;
    min-height: 44px;
    font-size: 2rem;
    line-height: 1;
  }

  .mobile-sidebar-account {
    border-top: 1px solid #dee2e6;
    padding-top: .5rem;
    padding-bottom: 1.5rem;
  }

  .mobile-sidebar-account__title {
    padding: .75rem 1.25rem;
    color: #6c757d;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .mobile-sidebar__section { padding: .5rem 0; }
  .mobile-sidebar__section + .mobile-sidebar__section { border-top: 1px solid #e5e7eb; }
  .mobile-sidebar__section-title {
    margin: 0 .75rem .35rem;
    padding: .45rem .65rem;
    border-radius: .4rem;
    background: #f1f3f5;
    color: #6b7280;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
  }
  .mobile-sidebar__item, .mobile-sidebar__account-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: .65rem 1.4rem;
    border: 0;
    background: transparent;
    color: #212529;
    font-size: 1rem;
    text-decoration: none;
  }
  .mobile-sidebar__item:hover, .mobile-sidebar__item:focus-visible, .mobile-sidebar__account-summary:hover, .mobile-sidebar__account-summary:focus-visible { background: #f8f9fa; color: #212529; text-decoration: none; }
  .mobile-sidebar__account-summary { justify-content: flex-start; gap: .7rem; font-weight: 700; }
  .mobile-sidebar__account-summary img { width: 38px; height: 38px; object-fit: cover; }
  .mobile-sidebar__item--logout { color: #b02a37; }
}

@media (min-width: 768px) {
  #sidebar-wrapper {
    margin-left: 0;
  }

  #page-content-wrapper {
    min-width: 0;
    width: 100%;
  }

  #wrapper.toggled #sidebar-wrapper {
    margin-left: -15rem;
  }
}
