//
// right-sidebar.scss
//

.right-bar {
  background-color: var(--#{$prefix}secondary-bg);
  box-shadow:
    0 0 24px 0 rgba(0, 0, 0, 0.06),
    0 1px 0 0 rgba(0, 0, 0, 0.02);
  display: block;
  position: fixed;
  transition: all 200ms ease-out;
  // width: $rightbar-width;
  width: $rightbar-width; // MC SINWEB-384 Se cambia a max-width para que no se rompa en modo mobile
  z-index: 9999;
  float: right !important;
  right: -($rightbar-width + 10px);
  top: 0;
  bottom: 0;

  .right-bar-toggle {
    background-color: #343a40;
    height: 24px;
    width: 24px;
    line-height: 24px;
    display: block;
    color: var(--#{$prefix}gray-200);
    text-align: center;
    border-radius: 50%;

    &:hover {
      background-color: var(--#{$prefix}secondary-bg);
    }
  }
}

// Rightbar overlay
.rightbar-overlay {
  background-color: rgba($dark, 0.55);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: none;
  z-index: 9998;
  transition: all 0.2s ease-out;
}

.right-bar-enabled {
  .right-bar {
    right: 0;
  }

  .rightbar-overlay {
    display: block;
  }
}

@include media-breakpoint-down(md) {
  .right-bar {
    overflow: auto;
    max-width: 100%; // MC SINWEB-384 Se cambia a 100% para ocupar todo el ancho en modo mobile

    .slimscroll-menu {
      height: auto !important;
    }
  }
}
