.add-menu {
  --select-panel-min-height: 74px;
  --select-panel-min-width: 270px;
  --select-panel-width: 270px;
}

.user-menu {
  --select-panel-min-height: 50px;
  --select-panel-min-width: 210px;
  --select-panel-width: 210px;
  .mat-mdc-menu-item[disabled] {
    opacity: 1 !important;
    .mdc-list-item__primary-text {
      line-height: 1.2;
    }
  }
}
.mdc-list-item__primary-text {
  line-height: 1.2 !important;
}

.main-app-popover {
  position: static !important;
  left: 0px !important;
  top: 0px !important;

  &--backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    filter: blur(4);
  }
}
.main-apps {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  width: 100vw;
  background-color: var(--white);
  padding: 40px 80px;

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  box-shadow: 0 14px 20px rgba(var(--rgb-black), 0.15);

  @media (max-width: 1024px) {
    padding: 1rem;
    position: relative !important;
    height: Calc(100% - 67px);
    overflow: scroll;
  }

  &--item {
    background-color: var(--light-gray);
    border-radius: 4px;
    padding: 1rem;
    min-height: 110px;
    display: flex;
    align-items: center;
    //justify-content: center;
    gap: 1rem;
    cursor: pointer;

    box-shadow: none;

    figure {
      min-width: 70px;
      width: 70px;
      height: 70px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.5rem;
      border-radius: 4px;
      background-color: var(--white);
    }

    &:hover {
      .main-apps--details {
        transform: translateY(-10px);
      }
    }
  }

  &--description {
    max-height: 42px;
    overflow: hidden;
  }

  &--details {
    position: relative;
    transition: var(--default-transition);

    .arrow-icon {
      //position: static;
      bottom: -1.5rem;
    }
  }
}

.service-card-popover {
  width: 300px;
  padding: 1rem;
  --popover-bc: var(--black);
  --popover-before-width: 0.5rem;
}

.cdk-overlay-container .main-app-popover--backdrop + .cdk-overlay-connected-position-bounding-box {
  left: 0px !important;
  top: 0px !important;
  //  animation: main-app-off-popover;
  animation-duration: 300ms;
  .sat-popover-container.sat-popover-center.sat-popover-below {
    transform: scale(1) !important;
    opacity: 1 !important;
  }
}

.cdk-overlay-container .main-app-popover--backdrop + .cdk-overlay-connected-position-bounding-box {
  animation: main-app-off-popover;
  animation-duration: 300ms;
}

.cdk-global-scrollblock .cdk-overlay-container .main-app-popover--backdrop + .cdk-overlay-connected-position-bounding-box {
  animation: main-app-popover;
  animation-duration: 300ms;
}

@keyframes main-app-popover {
  from {
    transform: translateY(-500px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes main-app-off-popover {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-500px);
  }
}

.mat-tooltip-panel {
  .mat-tooltip {
    background: #1d252d;
    //  overflow: initial;
    position: relative;
  }
  &.mat-tooltip-panel-right {
    mat-tooltip-component {
      .mat-tooltip {
        &::before {
          content: '';
          position: absolute;
          top: 50%;
          margin: -7px calc(0% - 7px);
          width: 0;
          height: 0;
          border-top: 7px solid transparent;
          border-right: 7px solid var(--black);
          border-bottom: 7px solid transparent;
          left: -7px;
        }
      }
    }
  }
  &.mat-tooltip-panel-left {
    mat-tooltip-component {
      .mat-tooltip {
        &::before {
          display: none;
        }
        &::after {
          content: '';
          position: absolute;
          top: calc(50% - 7px);
          /* margin: -7px calc(50% - 7px - 0.6rem); */
          width: 0;
          height: 0;
          border-top: 7px solid transparent;
          border-left: 7px solid var(--black);
          border-bottom: 7px solid transparent;
          right: -7px;
        }
      }
    }
  }
}

.mat-menu-panel.categories-menu {
  min-width: 305px !important;
}

.default-popover {
  max-width: 320px;
}

.attachment-sidenav {
  position: fixed;
  top: 0 !important;
  bottom: 0;
  right: 0;
  left: auto !important;
  height: 100vh;
  max-height: 100vh;

  [dir='rtl'] & {
    left: 0 !important;
    right: auto !important;
  }
}

.add-comment-popup {
  background-color: var(--white);
  box-shadow: var(--box-shadow);

  z-index: 1;
  max-width: 550px;
  width: 100%;
  height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  @media (max-width: 768px) {
    height: 100vh;
  }
  @media (min-width: 768px) {
    min-width: 550px;
    margin: 1rem;
    border-radius: 10px;
    height: calc(100vh - 2rem);
  }
  .add-comment-title {
    border-bottom: 1px solid #f3f3f1;
    //background-color: var(--light-gray);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .close-comment {
      min-width: 35px;
      width: 35px;
      height: 35px;
      background-color: #f3f3f1;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      &:hover {
        opacity: 0.9;
      }
    }
  }

  .add-comment-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    overflow: auto;
    flex-grow: 1;
    .custom-textarea {
      --input-height: 100px;
    }

    .info-section {
      --name-width: 100%;
      --disc-width: 100%;
      --info-gap: 0.3rem;
      margin: 0 -1rem;
    }
  }
}

.attachment-sidenav-backdrop {
  background-color: rgba(var(--rgb-black), 0.6);
}

.support-menu {
  --select-panel-min-height: 74px;
  --select-panel-min-width: 280px;
  --select-panel-width: 280px;
  .mat-mdc-menu-item[disabled] {
    opacity: 1 !important;
    .mdc-list-item__primary-text {
      line-height: 1.2;
    }
  }
}

.autocompleteSupport {
  .mat-mdc-form-field-icon-prefix span {
    color: var(--dark-gray);
  }
  .mat-mdc-form-field-infix label {
    width: 100%;
    margin-top: 4px;
    height: 100%;
    display: flex;
    align-items: center;
  }
}
