/*
 * A LIGHT strip of aggregates between a toolbar and the rows it describes. The
 * column gap is wide enough that "value label" pairs read as pairs rather than
 * as one run of words — which is why the two gaps differ.
 */
@layer theme, base, lotics, components, utilities;
@layer lotics.tokens, lotics.reset, lotics.components;

@layer lotics.components {
  .lotics-totals-line {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: var(--lotics-space-24);
    row-gap: var(--lotics-space-8);
    flex-shrink: 0;
  }

  /* The ROW wraps, never the item: a "value label" pair is one object. */
  .lotics-totals-line__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    gap: var(--lotics-space-6);
  }

  /* Matches `LegendItem`'s swatch: the two annotate the same charts. */
  .lotics-totals-line__swatch {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: calc(var(--lotics-radius-control) - var(--lotics-space-8));
    background-color: var(--lotics-totals-line-swatch);
  }
}
