
:root {
    /* Colors */
    --r-primary: #5da33f;
    --r-primary-transp: #5da33f4d;
    --r-hover: #3f9eb3;
    --r-yellow-brand: #ffa500;
    --r-brown-brand: #4a3c40;
    --r-gray-brand: #8c847f;
    --r-white: #ffffff;
    --r-link: #0d6efd;
    /* Size */
    --r-sidebar-width: 240px;
    --r-content-width: 1660px;
}

.sidebar-container {
  background-color: #f8f9fa;
}

.sidebar-container .accordion-button {
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

.navbar-toggler {
  position: fixed;
  top: 20px;
  left: 20px;
  outline: none !important;
  padding: 0 !important;
  z-index: 9999;
}

#sidebar {
  position: sticky;
  top: 0;
  width: var(--r-sidebar-width);
  min-height: 100vh;
  background-color: #212121;
  transition: all 0.3s;
}

#sidebar .simple-link:focus {
  color: #000 !important;
}

#sidebar a:hover {
  color: #fff;
}

#toggleSidebar>i {
    font-size: 1.7rem;
}

/* SIDEBAR HEADER*/
.sidebar-header {
    padding: 1.25rem;
}

.logo-menu {
    width: 100px;
    display: block;
    margin: 0 auto;
}

/* SIDEBAR MENU */
.sidebar-menu .btn,
.sidebar-menu a {
    color: #000000;
}

.accordion-header {
  margin-bottom: 0;
}
#sidebar .navigate-body {
  padding-left: 0 !important;

}
.navigate-body span {
  font-weight: 300;
}
.navigate-body span:hover {
  font-weight: 900;
}

#sidebar .accordion-button {
  display: flex;
  justify-content: start;
  padding: 10px 20px;
  width: 100%;
  border: none;
  font-size: 1rem;
  outline: none;
  font-weight: 300;
  align-items: center;
}

#sidebar .accordion-button>i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

#sidebar .accordion-button>svg {
  margin-right: 0.75rem;
  font-size: 1.2rem;
  vertical-align: middle;
}

#sidebar .accordion-button:hover svg path{
  fill: var( --r-yellow-brand);
}

.router-link-active svg path{
  fill: var( --r-yellow-brand);
}

/* Remove BT chevron */
#sidebar .accordion-button::after {
    -ms-flex-negative: 0;
    content: "";
    width: 0;
    background-image: url();
    background-size: 0;
}

#sidebar .accordion-item {
    background-color: inherit !important;
    border: none;
}

#sidebar .router-link-exact-active {
  color: #fff;
}


#sidebar .accordion-button.collapsed {
    background-color: inherit;
    color: var(--r-white);
}

/* Active menu */
#sidebar .accordion-button:not(.collapsed) {
    color: var(--r-yellow-brand);
    background-color: var(--r-brown-brand);
    font-weight: 900;
}

#sidebar .accordion-button:hover {
    color: var(--r-yellow-brand);
    background-color: var(--r-brown-brand);
    font-weight: 900;
}

#sidebar .header-link:hover {
  color: var(--r-yellow-brand);
  background-color: var(--r-brown-brand);
  font-weight: 900;
}

/* Submenu background */
#sidebar .accordion-collapse {
    background-color: var(--r-gray-brand);
}

#sidebar .nav-link.active {
    color: var(--r-white);
    font-weight: bold;
    border-right: 6px solid var(--r-white);
}

#sidebar .accordion-body {
    padding: 8px 0 8px 1.25rem;
}

#sidebar .nav-link {
    padding: 10px 0;
}

#sidebar .nav-link:hover,
#sidebar .nav-link:active,
#sidebar .nav-link:focus {
    color: var(--r-white);
    transition: all 0.2s;
}

/* SIDEBAR FOOTER */
.sidebar-footer {
    padding: 1.25rem;
    color: var(--r-white);
}
.sidebar-footer hr {
  background-color: #595959;
}

.copyright {
    opacity: 0.5;
}

.copyright a {
    color: var(--r-white);
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* Badge "NEW" */
#sidebar span.badge-new {
  width: 18px;
  height: 18px;
  /* format in case bootstrap badge-pill is nos displaying correctly*/
  background-color: #FF2542;
  color: #fff;
  position: absolute;
  right: 14px;
  margin-top: 6px;
  font-size: 14px;
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
}
#sidebar .submenu-item-badge {
  margin-top: 0 !important;
  padding: 0 !important;
}

#sidebar a.nav-link {
  /* needed to position badge to the right */
  position: relative;
}

/* FIX two lines */
#sidebar.accordion-button {
  text-align: left;
  line-height: 1.5;
}

#sidebar .hide-badge {
  display: none;
}

@media (max-width: 992px) {
    #sidebar {
        margin-left: -240px;
    }

    #sidebar.active {
        margin-left: 0;
    }

    .navbar-toggler.active {
      left: 230px !important;
      padding: 0 0 0 20px !important;
    }

    #content {
        /* padding: 1rem; */
    }
}