.cmf-feed-edit {
  // min-height: calc(100vh - 101px);
  position: relative;
  display: flex;
  flex-direction: column;

  .right {
    // padding-top: 20px;
    min-width: 350px;

    .settings-buttons {
      position: relative;
      top: -16px;

      float: right;
      display: flex;
      flex-direction: row;

      padding-right: 25px;
    }
  }

  .left {
    flex-grow: 1;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
  }
}

.dummy-actions {
  position: fixed;
  right: 5px;
  bottom: 5px;

  display: flex;
  gap: 5px;
}

.task-close-popup {
  cursor: pointer;
  position: absolute;
  right: 0;
}

.task-cancel {
  position: relative;
  top: -16px;
  float: right;
  padding-right: 30px;
}

.feed-edit {
  display: flex;
  flex-direction: row;
  width: calc(100% - 16px);

  .feed-edit-main {
    flex: 1;
    width: 100%;
    padding: 0;
  }

  .feed-edit-options {
    width: 23%;
    min-width: 420px;
    margin-top: 17px;
    padding: 20px;
    padding-top: 0;

    border-left: 1px solid #ccc;

    div {
      margin-bottom: 13px;
    }

    .field-alarm_date .mat-icon {
      position: relative;
      top: 3px;
      left: 5px;

      font-size: 18px;
      color: #777;
    }

    .field-alarm_date .right-col {
      /* color:#E74C3C; */
    }

    tr:nth-child(3) td {
      padding-bottom: 15px;
    }
  }

  .feed-edit-header {
    display: flex;
    flex-direction: row;
    align-items: center;

    h1 {
      margin-right: auto;
    }

    .buttons button:not(:last-child) {
      margin-right: 10px;
    }
  }

  .field-lists {
    margin-bottom: 26px !important;
  }

  .app-wrapper-communication-panel {
    padding-top: 30px;
  }

  .app-wrapper-planning-panel {
    padding-top: 10px;
  }

  .app-wrapper-custom-panel {
    padding-top: 10px;
  }

  .app-wrapper-panel-content {
    // animation: show 0.3s 1;
    // animation-fill-mode: forwards;
    // animation-delay: 0.2s;
    padding-top: 10px;
    // opacity:0;
    transition: 0.3s;

    // @keyframes show{
    //   0%{
    //   opacity:0;
    //   }
    //   100% {
    //   opacity:1;
    //   }
    // }
  }

  .app-feed-edit-options-communication {
    cursor: pointer;
    display: contents;
    color: #777;
  }

  .app-feed-edit-options-planning {
    cursor: pointer;
    display: contents;
    color: #777;
  }

  .app-feed-edit-options-custom {
    cursor: pointer;
    display: contents;
    color: #777;
  }
}

.task-header {
  overflow: hidden;
  display: flex;
  flex-direction: row;
  padding: 0;

  .dialog-close-button {
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .task-header-text {
    width: calc(100vw - 30px);
  }

  .task-from-to {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .avatar,
  .details {
    float: left;
  }

  .avatar {
    width: 32px;
    height: 32px;
    margin-right: 10px;

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

    background: #777;
    border-radius: 50%;
  }

  .details {
    position: relative;
    width: 100%;
  }

  .details .from {
    margin-bottom: 4px;
    font-weight: 500;
    color: #222;
  }

  .details .to {
    font-size: 14px;
    font-weight: 400;
    color: #222;

    .responsible-title-wrapper {
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
    }
  }

  .details {
    .detail {
      display: grid;
      grid-template-columns: max-content;

      font-size: 14px;
      font-weight: 400;
      color: #777;

      .detail-item {
        position: relative;
        display: flex;
        margin-right: 20px;
      }
    }
  }

  .detail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: 100%;
    padding: 12px 0;

    color: #777;

    .detail-item {
      overflow: hidden;
      display: flex;
      height: auto;
      min-height: 22px;

      .settings-icon {
        display: inline-flex;
        transition: transform 300ms ease;

        &.opened {
          transform: rotate(180deg);
        }
      }

      .label {
        padding-right: 12px;
        font-weight: bold;
      }
    }

    .detail-item-two {
      overflow: hidden;
      display: flex;
      flex-flow: row-reverse wrap;

      width: 100%;
      height: auto;
      min-height: 22px;

      .item {
        overflow: hidden;
        display: flex;
        height: auto;
        min-height: 22px;

        .settings-icon {
          display: inline-flex;
          transition: transform 300ms ease;

          &.opened {
            transform: rotate(180deg);
          }
        }

        .label {
          padding-right: 12px;
          font-weight: bold;
        }
      }
    }

    .settings-block {
      overflow: hidden;
      height: 0;
      opacity: 0;
      transition:
        opacity 1s ease,
        height 300ms ease;

      &.opened {
        height: fit-content;
        opacity: 1;
      }
    }
  }

  .details .row:nth-child(2) {
    margin-top: -5px;
  }

  .from-owner-title {
    font-size: 14px;
    font-weight: 400;
    color: #777;
  }

  .editable-field {
    position: relative;
    display: inline-block;
  }

  .task-status {
    flex: 0.5;
  }

  .task-status .row:nth-child(2) {
    margin-top: -5px;
  }

  .app-feed-executor-link {
    color: inherit;
    text-decoration: none;
  }
}

.task-top {
  position: relative;

  .task-name-edit {
    display: block;
    margin-bottom: 30px;
    color: #2b2b2b;
  }

  .app-task-text-wrapper {
    overflow: hidden;
  }
}

.date {
  position: absolute;
  top: 15px;
  right: 35px;

  width: 210px;

  font-size: 14px;

  mat-icon {
    width: 18px;
    height: 18px;
    font-size: 18px;
    vertical-align: baseline;
  }
}

.date span {
  position: relative;
  top: -22px;
  left: 26px;
  display: block;
}

.date .mat-icon {
  color: #777;
}

.task-details {
  .block > strong {
    display: block;
    margin-bottom: 15px;
    color: #2b2b2b;
  }

  .task-comments {
    margin-top: 0;
  }
}

.app-wrapper-content {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: left;

  .app-change-audit-button,
  .app-add-attachment-button {
    cursor: pointer;

    padding-left: 10px;

    font-size: 12px;
    color: #777;

    border-left: solid 1px #777;
  }

  .app-add-attachment-button {
    padding-right: 10px;
    padding-left: 0;
    border: none;
  }
}

.app-wrapper-panel-instructions {
  display: table;

  width: 100%;
  margin-bottom: 3px;

  background-color: #faf9e8;
  border-radius: 5px;

  // opacity:0;
  transition: 0.3s;

  .panel-instructions-icon {
    position: relative;
    top: 1px;
    bottom: 7px;

    padding-right: 5px;
    padding-left: 5px;
  }

  .panel-instructions-text {
    position: relative;
    bottom: 3px;
    padding-right: 5px;
    font-size: 12px;
  }

  // animation: show 0.3s 1;
  // animation-fill-mode: forwards;
  // animation-delay: 0.2s;

  // @keyframes show{
  //   0%{
  //     opacity:0;
  //   }
  //   100% {
  //     opacity:1;
  //   }
  // }
}

.task-attachments {
  margin-top: 55px;
  margin-bottom: 5px;
  font-weight: bold;
  color: #a0a0a0;
}

.task-comments {
  margin-bottom: 20px;
  padding: 0;
  padding-left: 0;

  color: #2b2b2b;

  // animation: show 0.3s 1;
  // animation-fill-mode: forwards;
  // animation-delay: 0.2s;
  background-color: var(--app-bg-color-l3);
  border-radius: 7px;

  // opacity:0;
  transition: 0.3s;

  // @keyframes show{
  //   0%{
  //     opacity:0;
  //   }
  //   100% {
  //     opacity:1;
  //   }
  // }
}

.left-col {
  width: 140px;
  vertical-align: top;
}

.vertical-top {
  vertical-align: top;
}

.task-status .status-marker {
  display: inline-block;

  width: 10px;
  height: 10px;
  margin-right: 5px;
  margin-left: 5px;

  background: #3498db;
  border-radius: 2px;
}

.task-status .status-marker-open,
.task-status .status-marker-opened {
  background: #e74c3c;
}

.task-status .status-marker-close,
.task-status .status-marker-closed {
  background: #2ecc71;
}

.embedded {
  .task-header {
    justify-content: space-between;
    padding: 0;
  }

  .feed-edit-main {
    padding-left: 0;
  }

  .feed-edit-options {
    padding-right: 0;
  }

  .task-status {
    flex: 0.25;
    margin-left: 6%;
  }

  .task-details {
    margin-left: 0;
  }

  .task-top {
    margin-left: 0;
  }
}

.cmf-locked {
  color: #e74c3c;
}

.from__wrapper {
  display: flex;

  .from__owner {
    margin-right: 5px;
  }

  .from__responsible {
    margin-left: 5px;
  }
}

::ng-deep .cmf-feed-edit {
  .tinymce-editor {
    width: 100%;
    max-width: 100%;
  }

  .crud-column {
    margin-top: 0 !important;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #f1f3f4;
  }

  // fixme
  .app-task-text-wrapper .pencil,
  .app-task-name-wrapper .pencil {
    position: relative;
    top: -2px;
  }

  .app-task-text-wrapper .filled .pencil {
    top: 11px;
    right: 1px;
  }

  .empty-warn {
    .inline-edit-text-placeholder {
      color: #c52a00 !important;
    }
  }

  span.right .crud-column {
    margin-top: 0;
    margin-bottom: 10px;
  }
}

.false-flying-button {
  position: fixed;
  top: 10px;
  left: 12px;

  width: 40px;
  height: 40px;

  line-height: 40px;

  border-radius: 50%;

  .icon {
    cursor: pointer;

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

    height: 34px;
    margin: 0;
    padding: 0;

    line-height: normal;
  }
}
