/* ============================================================================
   CLIENT FUNDS, THE SCREENS' HALF (9 Oct 2026): the Add client funds drawer (a match of real money in on Bank),
   the Charge to a client drawer, and the yellow "These look like the same client" card. js/client-funds-ui.js.
   Tokens only. The drawers wear the global drawer spacing (--drawer-*).
   ============================================================================ */
.cfu-drawer .cfu-body { gap: var(--drawer-section-gap); }
.cfu-lede { margin: 0; font-size: var(--text-sm); color: var(--color-text); }
.cfu-note { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.cfu-note:empty { display: none; }

/* the bank payments to pick from: one at a time; the picked one wears the 1px yellow ring */
.cfu-rows { display: flex; flex-direction: column; gap: var(--drawer-row-gap); }
.cfu-opt {
  display: flex; align-items: center; gap: var(--space-3); cursor: pointer;
  padding: var(--drawer-row-pad); background: var(--color-surface);
  border: var(--border-width) solid var(--color-border); border-radius: var(--radius-md);
  transition: border-color .15s ease;
}
.cfu-opt:hover { border-color: var(--color-border-strong); }
.cfu-opt.is-on { border-color: var(--color-hilite-strong); }
.cfu-opt input { flex: none; margin: 0; accent-color: var(--color-text); }
.cfu-opt__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cfu-opt__name { font-size: var(--text-sm); color: var(--color-text); }
.cfu-opt__sub { font-size: var(--text-sm); color: var(--color-text-muted); }
.cfu-opt__amt { flex: none; font-size: var(--text-sm); color: var(--color-success); }

.cfu-more { align-self: flex-start; margin-top: calc(-1 * var(--space-2)); padding: 0; border: none; background: none; font: inherit; font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: underline; cursor: pointer; }
.cfu-more:hover { color: var(--color-text); }
.cfu-2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.cfu-cards { display: flex; flex-direction: column; gap: var(--drawer-row-gap); }
.cfu-cards .todo--card { width: 100%; text-align: left; cursor: pointer; }

/* "These look like the same client. Merge them?" The note card (note-card.css) exactly, in the app's yellow highlighter:
   the light tint with the 1px yellow edge. Colour and the buttons' row only; spacing is the note card's. */
.note-card.cfu-dupe { align-items: center; flex-wrap: wrap; margin: 0 0 var(--space-6); background: var(--color-hilite); border-color: var(--color-hilite-strong); }
.cfu-dupe__body { flex: 1; }
.cfu-dupe__title { margin: 0; color: var(--color-text); }
.note-card .cfu-dupe__names { margin: var(--space-1) 0 0; color: var(--color-text-muted); }
.cfu-dupe__names strong { font-weight: var(--weight-regular); color: var(--color-text); }
.cfu-dupe__actions { display: flex; gap: var(--space-2); flex: none; }

.cfu-clientacts { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: 0 0 var(--space-4); }
.cfu-clientacts[hidden] { display: none; }

/* "Who is this for?" in the Add expenses drawer (js/payroll-expenses.js) */
.exp-who__q { margin: 0; font-size: var(--text-sm); color: var(--color-text); }

@media (max-width: 480px) {
  .cfu-2col { grid-template-columns: 1fr; }
  .cfu-dupe__actions { width: 100%; justify-content: flex-end; }
}
