@use '../styles/mat-selectors' as ms;

.aca-edit-rule-dialog-container {
  --edit-rule-dialog-padding: 8px 20px;

  #{ms.$mat-dialog-surface} {
    padding: 0;
  }
}

.aca-edit-rule-dialog {
  display: flex;
  flex-direction: column;
  height: 100%;

  input {
    box-sizing: border-box;
  }

  .aca-edit-rule-dialog__header {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding: var(--edit-rule-dialog-padding);
    box-sizing: border-box;
    border-bottom: 1px solid var(--theme-border-color);

    &__title {
      font-size: 16px;
      font-weight: bold;
      flex-grow: 1;
    }

    &__close {
      & .aca-edit-rule-dialog__header__icon {
        font-size: 18px;
      }
    }
  }

  .aca-edit-rule-dialog__content {
    padding: 0;

    &__spinner {
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 20px 0;
    }
  }

  .aca-edit-rule-dialog__footer {
    padding: var(--edit-rule-dialog-padding);
    box-sizing: border-box;
    border-top: 1px solid var(--theme-border-color);
  }
}
