/* A visit's workflow details: tabs of label/value rows, sized and spaced as the
   medication details modal's. */
dialog.modals--main-modal.workflow-details-modal {
  width: 40rem;
}

.workflow-details-modal--rows {
  display: flex;
  flex-direction: column;
  gap: var(--rem-12);
  padding-top: var(--rem-16);

  .details-row--group[data-size="sm"] .details-row--label {
    width: 15rem;
  }
}

/* The phase a group of steps belongs to, as a card's section title. */
.workflow-details-modal--phase {
  margin: var(--rem-8) 0 0;
  font-size: var(--rem-14);
  font-variation-settings: 'wght' var(--text-semibold);
  color: var(--text-heading);
}

.workflow-details-modal--step-link {
  color: var(--text-heading);
  text-decoration: none;
}

.workflow-details-modal--step-value {
  display: flex;
  flex-direction: column;
}

.workflow-details-modal--step {
  display: flex;
  align-items: center;
  gap: var(--rem-8);
}

.workflow-details-modal--note {
  display: block;
  margin-top: var(--rem-4);
  font-size: var(--rem-13);
  color: var(--text-additional);
  white-space: pre-line;
}

/* A step's newest comment under its status: the activity feed's comment box, flush with
   the value column, with who wrote it and when underneath. */
.workflow-details-modal--latest-comment {
  display: flex;
  flex-direction: column;
  gap: var(--rem-4);
  margin: var(--rem-6) 0 0;
}

.workflow-details-modal--latest-comment-meta {
  font-size: var(--rem-12);
  color: var(--text-additional);
}

/* The History tab's feed starts as close under the tabs as the other two tabs' rows. */
.workflow-details-modal .medications--activity {
  padding-top: var(--rem-16);
}

/* The fields to fill in (owner, auth, remarks) are not more facts about the visit: set
   apart from the rows above them. */
.workflow-details-modal--form {
  margin-top: var(--rem-12);
}

/* Auth status and its number side by side: one answer in two parts, each filling its
   half, at the modal's 40px field height. */
.workflow-details-modal--auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--rem-16);

  .input-groups--input-container,
  .select,
  .dropdowns--trigger-button,
  input[type="text"] {
    width: 100%;
  }

  input[type="text"] {
    height: 2.5rem;
    padding-inline: var(--rem-16);
    font-size: var(--rem-14);
  }
}

.workflow-details-modal--error {
  margin: 0;
  font-size: var(--rem-13);
  color: var(--text-error);
}
