/* The Cash drill (BL-108.07): the list trail and the account movement statement
   table. The list sub and trail helpers duplicate the receivables ones for the
   moment. Move the two to a shared list stylesheet when a third list view wants
   them (CSS convention: project-level when reusable). The detail pane itself is
   the canonical `detail-pane__` shell (ADR-038). */

.cash-list__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  color: var(--md-sys-color-on-surface-variant);
}

.cash-list__trail {
  display: flex;
  align-items: center;
  column-gap: 8px;
  font-variant-numeric: tabular-nums;
}

/* The movement statement (a module-local table, like receivables-lines). A
   table is not one of ADR-038's blessed section body types. */
.cash-movements {
  width: 100%;
  border-collapse: collapse;
}

.cash-movements th,
.cash-movements td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.cash-movements th {
  color: var(--md-sys-color-on-surface-variant);
}

.cash-movements__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cash-movements__num--in {
  color: var(--md-sys-color-primary);
}

.cash-movements__num--out {
  color: var(--md-sys-color-error);
}
