@import 'modules/app/viewports';

.project-module {
  display: grid;
  width: 100vw;
  height: 100%;
  transition: width 0.2s ease;

  &.closed {
    width: 0;
  }
}

.project-module-sidenav {
  z-index: 4;

  width: 90vw;
  max-width: 320px;

  background-color: var(--color-gray-fff);
  background-image: var(--app-bg-image);

  transition: width 0.2s ease;
}

.project-content {
  margin: 0;
}

.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: 100%;
}

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

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

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

.mat-sidenav-content {
  .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: #202020;
  text-decoration: none;
  text-overflow: ellipsis;

  -webkit-line-clamp: 2;
}

.search {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 300px;
  height: 36px;
  margin: 6px;

  background-color: var(--color-gray-fff);
  border: 1px solid #939393;
  border-radius: 4px;

  app-cmf-icon {
    width: 18px;
    height: 18px;
  }

  input {
    width: calc(100% - 35px);
    margin-left: 5px;

    line-height: 24px;

    border: none;
    outline: none;
  }
}

::ng-deep {
  .mat-drawer-backdrop {
    z-index: 4 !important;
  }
}
