@import 'modules/app/viewports';

.project-module {
  display: grid;
  height: calc(100vh - 46px);

  &.displaced {
    height: calc(100vh - 95px); // delme
  }
}

.project-module-sidenav {
  background-color: var(--color-gray-fff);
  background-image: var(--app-bg-image);

  &.displaced {
    height: calc(100vh - 100px);
    margin-top: 48px;

    app-cmf-ui-menu-tree {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 100%;
    }
  }
}

.project-content {
  @include viewport-laptop {
    margin: 21px 0 0;
  }

  @include viewport-mobile {
    margin: 21px 0 0;
  }

  margin: 21px 0 0 30px;
}

.margin-0 {
  margin: 0;
}

app-cmf-ui-menu-tree {
  // display: block;
  // padding-left: 14px;
}

.active-list-item {
  text-decoration: dashed underline;
}

.buttons-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  margin: 15px 0;
  padding-right: 30px;

  .button-left {
    height: 24px !important;
    line-height: 24px !important;
  }
}

.mat-drawer-container {
  height: 100%;
  background-color: transparent;
}

.mat-sidenav-content {
  // fix overflow для всплывающих окон типа будильника
  // padding-bottom: 100px;
  height: calc(100vh - 45px);

  &.displaced {
    height: calc(100vh - 95px); // delme
  }
}

.mat-drawer-content {
  z-index: 50;
  overflow: hidden;
}

.mat-sidenav {
  // border-right: solid 4px #555;
}

.mat-sidenav ngx-simplebar {
  // height: calc(100vh - 81px);
  width: 350px;
}

.mat-sidenav-content {
  ngx-simplebar {
    // height: calc(100vh - 77px);
  }

  .mat-drawer {
    z-index: 10;
  }
}

.item-desk {
  overflow: auto;
  height: 100%;
}

// .router-wrapp {
//     padding: 20px;
// }

.root-tree {
  display: flex;
}

.spinner {
  position: absolute;
  z-index: 1;
  inset: 0;

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

  background: rgb(34 34 34 / 25.3%);
}

.groups-list-title {
  margin-bottom: 5px;
  font-weight: 500;
}

.projects-list-title {
  padding-left: 5px;
  color: var(--header-color);
}

.project-card {
  padding: 0;
}

.line-project {
  display: grid;
  grid-template-columns: 1fr 80px 130px 1fr 1fr 0.3fr;
  align-items: center;

  width: 100%;
  min-height: 44px;
  padding: 0 10px;

  .line-project-name-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
}

.item-project {
  display: flex;
  padding-left: 15px;
}

.item-link {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;

  color: var(--color-gray-222);
  text-decoration: none;
  text-overflow: ellipsis;

  -webkit-line-clamp: 2;
}

.search {
  display: flex;

  width: 100%;
  max-width: 300px;
  margin-bottom: 10px;
  margin-left: 5px;
  padding: 4px 10px;

  border: 1px solid var(--theme-hack-color, #939393);
  border-radius: 4px;

  input {
    width: calc(100% - 35px);
    margin-bottom: 1px; // хак для выравнивания с иконкой
    margin-left: 5px;

    border: none;
    outline: none;
  }
}
