:host {
  display: flex;
  flex-direction: column;

  width: 74vw;
  max-width: 1660px;
  height: 80vh;
  max-height: 800px;
}

.dialog-body {
  display: flex;
  flex: 1 1 auto;
  flex-flow: column nowrap;
  gap: 6px;

  height: 100%;

  > header {
    flex-flow: row nowrap;
    gap: 14px;
    justify-content: flex-start;

    span {
      font: var(--default-text-font);
      line-height: 1.3em;
    }

    span.status {
      display: flex;
      flex-flow: row nowrap;
      margin-left: auto;

      .caption {
        padding-bottom: 3px;
      }

      .status-change {
        position: relative;
        top: 1px;
        width: 285px;
        line-height: 16px;
      }
    }
  }

  > main {
    display: flex;
    flex: 1 1 auto;
    flex-flow: column nowrap;
    gap: 14px;
    align-items: flex-start;

    section {
      width: 100%;
    }

    section.approvers {
      .censor-button {
        cursor: pointer;

        font-size: 14px;
        color: var(--color-href);
        text-decoration: underline;

        background-color: transparent;
        border: none;

        transition: opacity 0.2s ease;

        &:hover {
          opacity: 0.7;
        }
      }
    }
  }

  > footer {
    gap: 6px;
  }
}

.overlay-backdrop {
  background-color: transparent;
}

.drop-button {
  display: flex;
  flex-flow: row nowrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.approval-sheet__item {
  overflow: hidden;
  display: flex;
  flex: 1 0 auto;
  flex-flow: column nowrap;

  .approval-item__title {
    display: inline-block;
    margin: 5px 0;
    font-size: 1rem;
    font-weight: 500;
  }

  .approval-item__body {
    overflow: auto;
    flex-grow: 1;

    padding: 10px;

    border: 1px solid #e8e8e8;
    border-radius: 5px;
  }

  &.diff {
    flex: 1 1 auto;

    .approval-item__body {
      .diff__text {
        ::ng-deep {
          // без ::ng-deep не применяется
          del {
            display: inline-block;
            padding: 3px;
            text-decoration: line-through;
            background-color: #fbe9eb;
          }

          ins {
            display: inline-block;
            padding: 3px;
            text-decoration: underline;
            background-color: #ecfdf0;
          }
        }
      }
    }

    .text {
      padding-left: 10px;
    }
  }
}
