/* Why the last save was refused, above the fields: the error text the other edit
   modals use. */
.workflow-step-modal--error {
  margin: 0;
  font-size: var(--rem-13);
  color: var(--text-error);
}

/* The step's activity under its fields: scrolls when long, so the modal's buttons stay
   in view, and starts closer to its heading than the full-width Activity tab does. */
.workflow-step-modal--activity {
  display: flex;
  flex-direction: column;
  gap: var(--rem-4);

  /* Reads as one more field label, like Status and Owner above it. */
  .workflow-step-modal--activity-title {
    margin: 0;
    font-size: var(--rem-14);
    font-variation-settings: 'wght' var(--text-medium);
    color: var(--text-label);
  }

  .medications--activity {
    max-height: 16rem;
    overflow-y: auto;
    padding-top: var(--rem-8);
  }
}

/* Why the last save was refused, above the fields: the error text the other edit
   modals use. */
.workflow-step-modal--error {
  margin: 0;
  font-size: var(--rem-13);
  color: var(--text-error);
}

/* The step's comments, in the Inbox's log entry list: scrolls when long, so the
   modal's buttons stay in view. The list is built for a full page, so inside this
   compact form its cards take the form's own text sizes and a lighter frame. */
.workflow-step-modal--comments {
  max-height: 14rem;
  margin-top: var(--rem-8);
  overflow-y: auto;
  padding: 1px;

  .log-entries--entry-container {
    gap: var(--rem-4);
    padding: var(--rem-8) var(--rem-12);
    box-shadow: none;
  }

  .log-entries--description {
    font-size: var(--rem-13);
  }

  .log-entries--date {
    font-size: var(--rem-12);
  }
}

/* Why the last save was refused, above the fields: the error text the other edit
   modals use. */
.workflow-step-modal--error {
  margin: 0;
  font-size: var(--rem-13);
  color: var(--text-error);
}

/* The step's comments, in the Inbox's log entry list: scrolls when long, so the
   modal's buttons stay in view. */
.workflow-step-modal--comments {
  max-height: 14rem;
  margin-top: var(--rem-8);
  overflow-y: auto;
}
