/*
Basado en Metis Menu
https://github.com/onokumus/metismenu
*/

.sidebar-nav {
    /* background: #212529; */
}
.sidebar-nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    background: #292b2c;
    /* background: #343a40; */
}

.sidebar-nav .sidemenu {
    /* background: #212529;*/
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

/* Initially hide all nested unordered lists */
.sidebar-nav .sidemenu ul {
    max-height: 0;  /* Start with a height of 0 */
    overflow: hidden;  /* Hide the content of the ul when it is collapsed */
    transition: max-height 0.3s ease-out;  /* Smooth transition for expansion/collapse */
}

/* Display the nested unordered lists when the parent li has the active class */
.sidebar-nav .sidemenu li.active > ul {
    max-height: 500px;  /* A large enough height to allow the ul to fully expand */
    transition: max-height 0.5s ease-in;  /* Smooth transition for expansion/collapse */
}

.sidebar-nav .sidemenu li + li {
  margin-top: 5px;
}

.sidebar-nav .sidemenu li:first-child {
  margin-top: 5px;
}
.sidebar-nav .sidemenu li:last-child {
  margin-bottom: 5px;
}


.sidebar-nav .sidemenu > li {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    position: relative;
}
.sidebar-nav .sidemenu a {
    position: relative;
    display: block;
    padding: 8px 8px;
    color: #929498;
    /* color: #adb5bd;*/
    outline-width: 0;
    transition: all .3s ease-out;
}

.sidebar-nav .sidemenu ul a {
    padding: 5px 5px 5px 30px;
}

.sidebar-nav .sidemenu ul ul a {
    padding: 5px 5px 5px 45px;
}

.sidebar-nav .sidemenu a:hover,
.sidebar-nav .sidemenu a:focus,
.sidebar-nav .sidemenu a:active {
    color: #f8f9fa;
    text-decoration: none;
    /* background: #0b7285; */
    background: #0275D8;
}

///////////////////////////////////////


.sidemenu .arrow {
  float: right;
  line-height: 1.42857;
}
*[dir="rtl"] .sidemenu .arrow {
  float: left;
}

/*
 * Require Bootstrap 3.x
 * https://github.com/twbs/bootstrap
*/

.sidemenu .glyphicon.arrow:before {
  content: "\e079";
}
.sidemenu .active > a > .glyphicon.arrow:before {
  content: "\e114";
}

/*
 * Require Font-Awesome
 * http://fortawesome.github.io/Font-Awesome/
*/

.sidemenu .fa.arrow:before {
  content: "\f104";
}
.sidemenu .active > a > .fa.arrow:before {
  content: "\f107";
}

/*
 * Require Ionicons
 * http://ionicons.com/
*/

.sidemenu .ion.arrow:before {
  content: "\f3d2"
}
.sidemenu .active > a > .ion.arrow:before {
  content: "\f3d0";
}
.sidemenu .plus-times {
  float: right;
}
*[dir="rtl"] .sidemenu .plus-times {
  float: left;
}
.sidemenu .fa.plus-times:before {
  content: "\f067";
}
.sidemenu .active > a > .fa.plus-times {
  transform: rotate(45deg);
}
.sidemenu .plus-minus {
  float: right;
}
*[dir="rtl"] .sidemenu .plus-minus {
  float: left;
}
.sidemenu .fa.plus-minus:before {
  content: "\f067";
}
.sidemenu .active > a > .fa.plus-minus:before {
  content: "\f068";
}
.sidemenu .collapse {
  display: none;
}
.sidemenu .collapse.in {
  display: block;
}
.sidemenu .collapsing {
  position: relative;
  height: 0;
  overflow: hidden;
  transition-timing-function: ease;
  transition-duration: .35s;
  transition-property: height, visibility;
}

.sidemenu .has-arrow {
  position: relative;
}

.sidemenu .has-arrow::after {
  position: absolute;
  content: '';
  width: .5em;
  height: .5em;
  border-width: 1px 0 0 1px;
  border-style: solid;
  border-color: initial;
  right: 1em;
  transform: rotate(-45deg) translate(0, -50%);
  transform-origin: top;
  top: 50%;
  transition: all .3s ease-out;
}

*[dir="rtl"] .sidemenu .has-arrow::after {
  right: auto;
  left: 1em;
  transform: rotate(135deg) translate(0, -50%);
}

.sidemenu .active > .has-arrow::after,
.sidemenu .has-arrow[aria-expanded="true"]::after {
  transform: rotate(-135deg) translate(0, -50%);
}
