@import 'modules/app/viewports';

.menu-item-collapse-icon-menu {
  cursor: pointer;
  position: relative;
  top: 6px;
}

.app-main-menu {
  display: flex;
  flex-direction: column;

  height: 100%;

  background-color: var(--app-bg-color-l2);

  // background-image: var(--app-bg-image);
  background-position-y: 60px;

  .collapse {
    cursor: pointer;
    user-select: none;
    align-items: center;
    margin-top: auto;
  }

  .activities {
    overflow: hidden;
    flex: 1;
    margin-bottom: 20px;

    .activities-bar:not(.menu-bar) {
      overflow: hidden;
      height: min-content;

      .type {
        font-size: 10px;
        color: #707070;
      }
    }
  }

  .menu-item-text-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    /* margin-top: 5px; */
    height: 61px;
    margin-bottom: 19px;
    padding-bottom: 0;

    background-color: var(--app-toolbar-bg-color);
    border-bottom: 1px solid var(--border-primary-color);

    .hamburger {
      cursor: pointer;

      display: flex;
      align-items: center;
      justify-content: center;

      margin: 0;

      border-radius: 50%;

      .hamburger-icon {
        position: relative;
        display: flex;
      }
    }
  }

  .menu-item-text {
    position: relative;
    top: 4px;
    padding-right: 5px;
    padding-left: 8px;
  }

  .menu-item-empty {
    display: flex;

    min-height: 25px;
    margin-top: 15px;
    margin-right: 5px;
    margin-left: 5px;
    padding-left: 10px;

    font-size: 12px;
    color: #2b2b2b;
    text-align: center;
    text-decoration: none;

    border-radius: 10px;
  }

  .menu-item {
    // &:hover {
    // background: #e8e8e8;
    // opacity: var(--menu-item-opacity-on-hover);
    // }

    @include viewport-mobile {
      margin-bottom: 10px;
      text-decoration: none;
      white-space: nowrap;
    }

    display: flex;

    margin: 15px 10px 10px 9px;
    padding-bottom: 6px;
    padding-left: 7px;

    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--user-sidebar-color, var(--menu-item-color));
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.25px;

    .all-counter-menu-item {
      position: relative;
      top: 4px;
      margin-right: 30px;
      color: #202124;
    }

    &.active {
      background-color: var(--menu-item-active-color-bg);

      .menu-item-text {
        color: var(--menu-item-text-color-active);
      }
    }

    .menu-item-icon {
      @include viewport-mobile {
        margin-right: 5px;
      }

      position: relative;
      top: 2px;

      display: inline-block;

      padding: 1px 28px 0 13px;

      line-height: 0;
    }

    .menu-item-counter {
      display: inline-block;

      width: 20px;
      height: 20px;
      margin-left: 10px;

      font-size: 10px;
      line-height: 20px;
      color: #fff;
      text-align: center;

      background: #2980b9;
      border-radius: 50%;
    }
  }

  .menu-header {
    margin-bottom: 10px;
    padding: 0;
    font-size: 10px;
    color: grey;
  }

  .menu-item-button-more {
    cursor: pointer;
    user-select: none;

    width: 100%;
    margin-bottom: 10px;
    padding: 0;

    font-size: 10px;
    color: grey;
  }
}

.logo {
  user-select: none;

  position: relative;
  left: 10px;

  display: flex;
  align-items: center;
  margin-left: 50px;
  padding: 10px;
  padding-left: 0;

  font-size: 17px;
  font-weight: 500;
  color: var(--color-gray-222);
  text-decoration: none;

  .logo-wrapper {
    display: block;

    width: 50px;
    height: 35px;

    background-image: var(--app-logo);
    background-repeat: no-repeat;
    background-size: var(--app-bg-logo-size);
  }
}

.logo-text {
  //
  position: relative;
  top: 7px;
  left: -10px;

  font-size: 22px;
  font-weight: 600;
  color: #e04200;
  letter-spacing: 2px;
}

.chat-cloud,
.whatsapp-cloud {
  position: fixed;
  top: 250px;

  display: block;

  width: min-content;
  height: min-content;
}

.whatsapp-cloud {
  z-index: 100;
  top: 100px;
}

.chat-cloud-image,
.whatsapp-cloud-image {
  position: relative;
  z-index: 1000;
  top: 10px;
  left: 10px;

  width: 45px;
  height: 45px;

  border-radius: 50%;
}

.chat-cloud-message-wrapper,
.whatsapp-cloud-message-wrapper {
  display: flex;
  flex-direction: column;

  width: 100%;
  height: 100%;
  padding-top: 10px;
  padding-right: 5px;
  padding-left: 20px;

  .chat-cloud-title,
  .whatsapp-cloud-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;

    font-size: 14px;
    text-align: start;

    -webkit-line-clamp: 1;
  }

  .chat-cloud-body,
  .whatsapp-cloud-body {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;

    font-size: 12px;
    text-align: start;

    -webkit-line-clamp: 2;
  }
}

.chat-cloud-text-wrapper,
.whatsapp-cloud-text-wrapper {
  position: absolute;

  width: 200px;

  color: #fff;

  background: #f6f9fe;
  border-radius: 10px;
  box-shadow: 0 1px 2px #777;
}

.chat-cloud-text-wrapper {
  height: 70px;
}

.whatsapp-cloud-text-wrapper {
  max-height: 70px;
  padding: 3px 0 10px 5px;
}

.chat-cloud-text-wrapper::after,
.chat-cloud-text-wrapper::before,
.whatsapp-cloud-text-wrapper::after,
.whatsapp-cloud-text-wrapper::before {
  content: '';

  position: absolute;
  z-index: -1;
  bottom: -8px;
  left: 7px;
  transform: rotate(45deg);
  transform: rotate(45deg);

  width: 25px;
  height: 25px;

  background: #f6f9fe;
  box-shadow: 0 1px 2px #777;
}

.whatsapp-cloud-text-wrapper::after,
.whatsapp-cloud-text-wrapper::before {
  top: -8px;
}

.chat-cloud-text-wrapper::before,
.whatsapp-cloud-text-wrapper::before {
  z-index: 100;
  box-shadow: none;
}

.chat-cloud-message,
.whatsapp-cloud-message {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;

  width: 100%;
  height: 100%;

  color: #2b2b2b;
}

.whatsapp-cloud-message .icon {
  position: relative;
  z-index: 101;
  top: 10px;
  left: 10px;
}

// .menu-icon {
// position: relative;
// top: 11px;
// left: 6px;
// }
