*, *:after, *:before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.navbar-brand {
  padding: 0;
  color: white;
}

.navbar {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 5px 15px;
}


.sidebar {
  width: 350px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: -355px;
  z-index: 999;
  background: #262626;
  color: #fff;
  transition: all .5s;
  box-shadow: 3px 0px 10px rgba(0,0,0,0.5);
  text-align: left;
   overflow-y: auto;                 /* ✅ habilita rolagem */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* ✅ rolagem suave no iOS */
}

.navbar-nav {
  list-style: none;
  padding-left: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  color: #fff;
  padding: 8px 15px;
  text-decoration: none;
  min-width: 210px;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ======== SUBMENUS ======== */

.submenu {
  display: none;
  position: static;
  background-color: #262626;
  list-style: none;
  padding-left: 15px;
  margin: 0;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
}

/* Quando aberto */

.submenu.open {
  display: block;
}

/* Indicadores */

.toggle-submenu::after {
  content: " ▸";
  float: right;
}

.has-submenu .toggle-submenu.open::after {
  content: " ▾";
}

.overlay {
  display: none;
  position: initial;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.3);
  z-index: 998;
  opacity: 0;
}

.overlay.active {
  display: none;
  opacity: 1;
}

.open-menu {
  position: fixed;
  top: 15px;
  right: 10px;
  z-index: 997;
  box-shadow: 3px 3px 3px rgba(51, 51, 51, 0.2);
}

.open-menu.btn-customized, .open-menu.btn-customized:hover, .open-menu.btn-customized:active, .open-menu.btn-customized:focus, .open-menu.btn-customized:active:focus, .open-menu.btn-customized.active:focus, .open-menu.btn-customized.btn.btn-primary:not(:disabled):not(.disabled):active, .open-menu.btn-customized.btn.btn-primary:not(:disabled):not(.disabled):active:focus {
  box-shadow: 3px 3px 10px rgba(0,0,0,0.5);
}

a.btn-customized {
  margin-left: 5px;
  margin-right: 5px;
  padding: 5px;
  background: #f4f4f4!important;
  border: 0;
  border-radius: 4px;
  font-size: 21px;
  color: rgba(255,255,255,0.85) !important;
  box-shadow: none;
}

a.btn-customized:hover, a.btn-customized:active, a.btn-customized:focus, a.btn-customized:active:focus, a.btn-customized.active:focus, a.btn-customized.btn.btn-primary:not(:disabled):not(.disabled):active, a.btn-customized.btn.btn-primary:not(:disabled):not(.disabled):active:focus {
  outline: 0;
  background: #c23318;
  border: 0;
  color: #fff !important;
  box-shadow: none;
}

.dismiss {
  font-size: 26px;
  width: 35px;
  height: 35px;
  position: absolute;
  top: 10px;
  right: 10px;
  transition: all .3s;
  background: #444;
  border-radius: 4px;
  text-align: center;
  line-height: 36px;
  cursor: pointer;
}

.dismiss:hover, .dismiss:focus {
  background: #555;
  color: #fff;
}

.sidebar .brand {
  padding: 40px 20px;
  border-bottom: 1px solid #444;
}

.sidebar.active {
  left: 0;
}

