/* Summary rows and detail lists (brandbook "Summary").
   .mm-summary: what a step charges. Dark rules above and below the total,
   label left, amount right in tabular figures; emitted by
   templates/components/_summary.html.twig rows() and the wizard step
   (a small muted line under a value: the e-mail under a name).
   .mm-dl: a note's details. Label left, value right, light rules. */
.mm-summary {
  border-top: 1px solid var(--mm-text);
}

.mm-summary > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--mm-space-4);
  padding: 10px 0;
  border-bottom: 1px solid var(--mm-line);
}

.mm-summary dt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--mm-muted);
  font-size: 15px;
}

.mm-summary dt small {
  font-size: 13px;
}


.mm-summary dd {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.mm-summary dd small {
  display: block;
  color: var(--mm-muted);
  font-size: 13px;
  font-weight: 400;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* A note row (set-off pages, summary.row()): label and outcome on the first
   line, wrapping the outcome onto its own line when the two do not fit;
   the note's number, maker, holder and due date across the full width. */
.mm-summary > .mm-summary__row--note {
  flex-wrap: wrap;
  row-gap: 2px;
}

.mm-summary__row--note > dd:not(.mm-summary__note) {
  margin-left: auto;
  white-space: normal;
}

.mm-summary .mm-summary__note {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  font-weight: 400;
  text-align: left;
}

.mm-summary .mm-summary__meta {
  line-height: 1.4;
}

.mm-summary small:not(.mm-summary__meta) + .mm-summary__meta {
  margin-top: 2px;
}

.mm-summary .is-total {
  border-bottom-color: var(--mm-text);
}

.mm-summary .is-total dt {
  color: var(--mm-text);
  font-weight: 600;
}

.mm-summary .is-total dd {
  font-size: 21px;
  font-weight: 700;
}

.mm-dl {
  border-top: 1px solid var(--mm-line);
}

.mm-dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--mm-space-3);
  padding: 7px 0;
  border-bottom: 1px solid var(--mm-line);
}

.mm-dl dt {
  color: var(--mm-muted);
  font-size: 14px;
  white-space: nowrap;
}

.mm-dl dd {
  min-width: 0;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
}

.mm-dl dd small {
  display: block;
  color: var(--mm-muted);
  font-size: 14px;
}
