/* Finance. Same tokens and the same square, ruled look as the rest; the table,
   the pills and the window are the CRM's and Tasks' own. */

/* Money lines up on the right, digit under digit. */
.fin-num { text-align: right; font-variant-numeric: tabular-nums; }
.fin-num-left { font-variant-numeric: tabular-nums; }

/* What the rows on screen come to, said once above them. */
.fin-summary {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6);
  padding: var(--space-3) var(--space-2); font-size: 13px; color: var(--color-neutral-700);
  font-variant-numeric: tabular-nums;
}
.fin-summary strong { color: var(--color-text); }
.fin-subtotal { margin-left: auto; font-size: 13px; color: var(--color-text); font-variant-numeric: tabular-nums; }

/* Two controls sharing one cell of the form. */
.fin-pair { display: flex; gap: var(--space-2); align-items: flex-end; }
.fin-pair > .input { flex: 1; min-width: 0; }
.fin-pair > .btn { flex: none; white-space: nowrap; }
/* "Payment" heads a tick box that has its own label, so it is words that look like a label. */
.fin-label { display: block; font-size: 12px; margin-bottom: 5px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.field > .fin-paid { margin-bottom: 0; color: var(--color-text); }
.fin-paid { min-height: 36px; font-size: 14px; gap: 8px; cursor: pointer; }
