.side-drawer {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateZ(0);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1001;
  height: 100%;
  width: 0;
  background-color: var(--color-bg-primary);
  border-right: solid 1px var(--color-border-secondary);
  overflow-x: hidden;
  overflow-y: auto;

  /* Hide scrollbar */
  scrollbar-width: none;  /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  &::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
  }

  &.expand {
    width: 311px;
    transition: width 0.3s ease-in-out;
  }

  &.closed {
    width: 0;
    transition: width 0.3s ease-in-out;
  }

  .drawer-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 8px;

    .drawer-section {
      width: 100%;
    }

    .drawer-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 8px;
      margin-bottom: 20px;

      .drawer-brand {
        padding-top: 2px;
      }

      .drawer-close {
        padding: 16px;
        margin-right: -16px;

        i {
          font-size: 20px;
        }
      }
    }

    .drawer-items-column {
      .drawer-item {
        &:not(:last-child) {
          margin-bottom: 8px;
        }
      }
    }

    .drawer-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 16px;
      padding: 8px;
      width: 100%;
      height: 44px;

      &:hover, &.active {
        background-color: var(--color-bg-primary_hover);
        border-radius: 6px;
      }

      .drawer-item-title {
        i {
          font-size: 16px;
          margin-right: 8px;
        }

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }

    button {
      &.link {
        padding: 8px !important; /* If drawer items are generated by using button_to helper */
      }
    }
  }
}
