/* Brandon's Home (today/owner-today.js, money-clear.js): the exact-replica rebuild (Oct 23, 2026). The page is the
   design's /today (src/app/pages.tsx TodayPage) drawn with the frame's .ds-* classes (styles.css): PageHeader, the
   approval card, the three Metric cards and the Today card. This file holds only what the Hub adds to it: the "?" beside
   the hello, the Metric cards as buttons (the first two open their lists under the cards), the rest of Needs you, and
   the Money and Balances owed lists those open. Loaded after styles.css; colours only from its tokens; nothing here animates. */

/* ---------- The greeting: the "?" beside the hello ---------- */
.owner-today .greet-row { display: flex; align-items: center; gap: 12px; }
.owner-today .greet-row > h1 { margin-bottom: 5px; }
.owner-today .greet-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-top: 4px; font-size: .875rem; color: var(--text-3); }

/* ---------- The Metric cards as buttons: the card's look, a button's behaviour ---------- */
.owner-today button.ds-metric-card { display: block; width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.owner-today button.ds-metric-card:hover { border-color: var(--border-strong); }
.owner-today button.ds-metric-card[aria-expanded="true"] { border-color: var(--accent); }
.owner-today .ds-metric-card > .warnline { margin-top: 12px; }
.owner-today .ds-metric-card--wide { grid-column: 1 / -1; min-height: 0; }

/* ---------- What a Metric card opens: Money (Today / Weekly / Monthly and its lists) or Balances owed ---------- */
.ot-money-panel.ds-card { padding: 18px; }
.ot-money-panel > .money, .ot-money-panel > .owed-card { margin: 0; }

/* ---------- The rest of Needs you: short flat rows in a card, opened by the approval card's "+N more" ---------- */
.ot-needs.ds-card { padding: 6px; }
.ot-needs .need-rows { gap: 0; }
.ot-needs .need-rows > li + li { border-top: 1px solid var(--border); }
.ot-needs .need-row { min-height: 52px; padding: 6px 10px; border-radius: var(--r-box); background: transparent; }
.ot-needs button.need-row:hover { background: var(--surface-2); }
.ot-needs .need-row .ichip { width: 32px; height: 32px; border-radius: 50%; background: transparent; color: var(--text-2); }
.ot-needs .need-row .ichip .ic { width: 20px; height: 20px; }
.ot-needs .nr-t { font: 600 .9375rem/1.3 var(--rt-body); }
.ot-needs .nr-n { font: 700 1.125rem/1 var(--rt-cond); color: var(--text-2); }

/* ---------- Money: the switch, one box with Invoiced and Paid, then the quiet folds as one list ---------- */
.money { display: flex; flex-direction: column; gap: 12px; }
.money-h { gap: 0; }
.money-h .mp { margin-inline: auto; }
/* Fewer boxes (Brandon, Oct 22, 2026): Invoiced and Paid share one box, split by a line. */
.money-tiles, .money .tiles.money-tiles { gap: 0; border: 1px solid var(--border); border-radius: var(--r-box); background: var(--surface); overflow: hidden; }
.money-tiles .tile { padding: 14px 16px; border: 0; border-radius: 0; background: none; }
.money-tiles .tile + .tile { border-left: 1px solid var(--border); }
.money-tiles .tl { font-size: .8125rem; }
.money-tiles .tn { font-size: 1.875rem; }
.money .money-list { border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.money .money-list > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 4px 16px; cursor: pointer; list-style: none; }
.money .money-list > summary::-webkit-details-marker { display: none; }
.money .money-list > summary .sub-h { flex: 1; min-width: 0; margin: 0; padding: 0; font: 600 .9375rem/1.3 var(--rt-body); color: var(--text); }
.money .money-list > summary .chev { margin-left: auto; width: 20px; height: 20px; color: var(--text-3); }
.money .money-empty { padding: 12px 16px; }
.money .money-empty .sub-h { padding: 0; font: 600 .9375rem/1.3 var(--rt-body); color: var(--text-2); }
.money .money-empty > .meta { padding: 2px 0 0; }
/* The quiet folds (Today's payments, Deposits, Waiting on a deposit) are the foundation's "more" row inside a card. */
.money .more.money-list > .more-s { padding: 0 16px; color: var(--text); }
.money .more.money-list > .more-b { padding: 0 16px 12px; }
.money .more-b .need-list { padding: 0; }
/* Their rows the size of Balances owed's (name, then a smaller grey line), so the one list reads as one. */
.money .more-b .need-list li { flex-direction: column; gap: 0; padding: 8px 0; }
.money .more-b .need-list .who { font: 600 .9375rem/1.3 var(--rt-body); }
.money .more-b .need-list .m { font-size: .8125rem; color: var(--text-3); }
/* Balances owed: heading then rows with Clear at the right. */
.owed-card .owed-list .owed-row { padding: 6px 8px 6px 16px; }
.owed-card .owed-w .who { font-size: .9375rem; }
.owed-card .owed-w .m { font-size: .8125rem; }
.owed-card .owed-row > .amt { font-size: 1.25rem; }
.owed-card .more-rows > summary { padding: 12px 16px; min-height: 44px; }
.owed-card > .meta, .owed-card .owed-cleared { padding: 8px 16px 12px; }
/* The folds one after another read as one list: each joins the one above it, one line between, rounded only at the ends. */
.money > .money-list + .money-list { margin-top: -13px; border-top-left-radius: 0; border-top-right-radius: 0; }
.money > .money-list:has(+ .money-list) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
/* Nobody owes anything: the same quiet box as an empty Deposits (the shared .money-list paddings left out). */
.money .money-list.owed-none { padding: 12px 16px; }
.money .money-list.owed-none .sub-h { padding: 0; font: 600 .9375rem/1.3 var(--rt-body); color: var(--text); }
.money .money-list.owed-none > .meta { padding: 2px 0 0; }
.owed-cleared-list .owed-row { padding-left: 0; }
.owed-cleared-list .owed-row .ib { flex: none; }
.money > .meta[data-money-updated] { padding: 0 4px; font-size: .8125rem; color: var(--text-3); }

