.form {
  display: flex;
  flex-direction: column;

  height: 100%;
  margin-top: 24px;
  padding: 0 20px;

  .header {
    margin: 0;
    font-size: 20px;
    line-height: 50px;
  }

  .wrapper {
    display: flex;
    gap: 40px;
    max-height: 400px;
  }

  .border-right {
    border-right: 1px solid var(--color-gray-eee);
  }

  .ml-20 {
    margin-left: 20px;
  }

  .content {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;

    &:not(:first-child) {
      padding-left: 20px;
      border-left: 1px solid var(--color-gray-eee);
    }

    .header {
      margin: 0;
      font-size: 22px;
      font-weight: 600;
    }

    .text {
      flex: 1 1 0;
      margin-bottom: 20px;
    }

    .create-board {
      cursor: pointer;

      align-self: flex-start;

      box-sizing: border-box;
      height: 36px;
      padding: 5px 10px;

      background-color: var(--color-gray-eee);
      border: none;
      border-radius: 5px;

      &:hover {
        background-color: var(--color-gray-ddd);
      }

      &:focus {
        outline: none;
      }
    }
  }

  .table {
    display: grid;
    grid-auto-rows: 1fr;
    grid-template-columns: 1fr 1fr;
    height: 100%;

    .element {
      display: flex;
      flex-direction: column;

      .wrapper {
        display: flex;
        flex-direction: column;
        height: 100%;
        margin-right: 20px;
      }

      .name {
        display: flex;
        flex-direction: column;
      }

      .label {
        font: var(--color-gray-444);
        font-size: 12px;
        font-weight: 600;
      }

      .star {
        color: var(--default-color-red);
      }

      .input {
        height: 32px;
        padding: 5px;

        border: 1px solid var(--color-gray-aaa);
        border-radius: 3px;
        outline: none;

        &:focus {
          border: 2px solid var(--app-time-widget-primary-color);
        }
      }

      .input-error {
        color: var(--default-color-red);
      }

      .field {
        display: flex;
        align-items: center;

        min-height: 32px;
        max-height: 80px;
        padding: 0 10px;

        color: var(--color-gray-666);

        border: 1px solid var(--color-gray-aaa);
        border-radius: 3px;

        app-cmf-select-model {
          width: 100%;
        }

        &.disabled {
          pointer-events: none;
          background-color: var(--color-gray-eee);
        }
      }

      .prompt {
        font: var(--default-text-font);
        font-size: 12px;
      }

      .text {
        flex: 1;
        margin-bottom: 40px;
        font-size: 14px;
        font-weight: 400;
      }

      .mb-5 {
        margin-bottom: 5px;
      }

      .mb-10 {
        margin-bottom: 10px;
      }

      .mb-15 {
        margin-bottom: 15px;
      }

      .radio-group {
        display: flex;
        flex-direction: column;
        gap: 20px;
      }

      .radio-group-element {
        display: flex;
        flex-direction: row;
        gap: 5px;
        align-items: flex-start;

        .textcontent {
          display: flex;
          flex-direction: column;

          span {
            display: inline-block;
            margin-top: 5px;
            font-size: 12px;
          }
        }
      }

      .checkbox-field {
        display: flex;
        flex-direction: row;
        gap: 8px;
        align-items: center;

        height: 20px;
        margin-bottom: 5px;

        .disabled {
          pointer-events: none;
          background-color: var(--color-gray-eee);
        }
      }
    }
  }
}

.width-limit {
  width: 60%;
}

.prompt {
  font: var(--default-text-font);
  font-size: 12px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 36px;

  .button {
    height: 36px;
    margin-right: 10px;

    &:last-child {
      margin-right: 0;
    }
  }

  .cancel {
    color: var(--color-href);
  }

  .back {
    background-color: var(--color-gray-eee);
  }

  .further {
    color: #fff;
    background-color: var(--accent-color-bg);

    &.mat-button-disabled {
      background-color: var(--color-gray-eee) !important;
    }
  }
}

.loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

.select {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;

  ::ng-deep {
    .inline-edit-wrap {
      width: 100%;

      .inline-edit-wrapper {
        justify-content: space-between;
        width: 100%;
      }
    }

    .inline-edit-item {
      display: flex;
    }
  }
}

// TODO: убрать когда появится нужный ui компонент
::ng-deep .stepper {
  width: 1000px;

  .mat-horizontal-stepper-header-container {
    display: none !important;
  }
}

// TODO: убрать когда появится нужный ui компонент
::ng-deep {
  .mat-autocomplete-panel {
    top: 10px;
    right: unset;
  }

  .mat-autocomplete-panel.field-fk__autocomplete {
    top: 15px;
    right: unset;
  }
}
