/* team-cards (G4 / B17) — card sub-line on payment rows, the full/split
   switch, and Settings › Inventory › Cards & accounts. Tokens only. */
.wf-ledger--edit .wfc-sub { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.wf-ledger--edit .wfc-due-l { display: inline-flex; align-items: center; gap: 8px; color: var(--white); }
.wf-ledger--edit .wfc-due:not([type=hidden]) { min-height: 34px; padding: 0 8px; font-size: 13px; }
.wfc-note { color: var(--muted); }
.wfc-mode { display: inline-flex; gap: 0; margin: 8px 0 4px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.wfc-mode button { background: transparent; border: 0; padding: 7px 12px; font-size: 12.5px; color: var(--muted); cursor: pointer; min-height: 34px; }
.wfc-mode button + button { border-left: 1px solid var(--border); }
.wfc-mode button.on { background: var(--bg-hover); color: var(--white); font-weight: 600; }
.wfc-settings .wfc-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.wfc-settings .wfc-row, .wfc-settings .wfc-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wfc-settings .wfc-row { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.wfc-settings .wfc-in { min-height: 36px; font-size: 13px; }
.wfc-settings input.wfc-in[data-f="name"], .wfc-settings #wfc-new-name { flex: 1 1 160px; min-width: 0; }
.wfc-settings .wfc-l4 { width: 72px; }
.wfc-settings .wfc-num { width: 72px; }
.wfc-settings .wfc-duebox { display: inline-flex; gap: 6px; align-items: center; }
.wfc-settings .wfc-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.wfc-settings .wfc-empty { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
@media (max-width: 640px) {
  .wfc-settings .wfc-row > *, .wfc-settings .wfc-add > * { flex: 1 1 100%; }
  .wfc-settings .wfc-l4, .wfc-settings .wfc-num { flex: 0 0 auto; }
}

/* JJ's new pop-ups: "Card bill due" is the icon-tile date field (label above, field full width). A team with no JJ keys never gets .wfc-sub--tile. */
.wf-ledger--edit .wfc-sub--tile { gap: 6px 12px; }
.wf-ledger--edit .wfc-sub--tile .wfc-due-tile { display: flex; flex-direction: column; align-items: stretch; gap: 6px; flex: 1 1 100%; min-width: 0; }
.wfc-sub--tile .wfc-due-cap { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--off-white, var(--muted)); }
.wfc-sub--tile .wfc-note { flex: 1 1 100%; }

/* JJ card config (2026-10-19): custom tap-menus (no native select / date), owner + closing/due day per card */
.wfc-settings .wfc-pick { position: relative; display: inline-flex; }
.wfc-settings .wfc-pickbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--white); cursor: pointer; font-size: 13px; text-align: left; }
.wfc-settings .wfc-pick-l { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.wfc-settings .wfc-pick-v { font-weight: 600; }
.wfc-settings .wfc-pickbtn[aria-expanded="true"] { border-color: var(--gold, #c9a96e); }
.wfc-settings .wfc-cfg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 100%; }
.wfc-settings .wfc-menu { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; min-width: 100%; max-height: 280px; overflow: auto; display: flex; flex-direction: column; gap: 2px; padding: 6px; background: var(--bg-raised, #fff); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.wfc-settings .wfc-menu--days { display: grid; grid-template-columns: repeat(7, 44px); gap: 4px; max-height: none; width: max-content; }
.wfc-settings .wfc-menu--days .wfc-opt--none { grid-column: 1 / -1; }
.wfc-settings .wfc-opt { flex: 0 0 auto; min-height: 44px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--white); cursor: pointer; text-align: left; font-size: 13px; white-space: nowrap; }
.wfc-settings .wfc-menu--days .wfc-opt { padding: 0; text-align: center; }
.wfc-settings .wfc-opt:hover, .wfc-settings .wfc-opt:focus-visible { background: var(--bg-hover); outline: none; }
.wfc-settings .wfc-opt.is-on { background: var(--gold, #8b7355); color: var(--bg-void, #fff); font-weight: 700; }
.wfc-settings .wfc-liability-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 100%; }
.wfc-settings .wfc-liab-l { color: var(--muted); font-size: 12px; }
@media (max-width: 640px) {
  .wfc-settings .wfc-pick { flex: 1 1 100%; } .wfc-settings .wfc-pickbtn { width: 100%; justify-content: space-between; }
  /* phone: a sheet above the bottom nav, never clipped by it */
  .wfc-settings .wfc-menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 1100; max-height: 50vh; min-width: 0; width: auto; }
  .wfc-settings .wfc-menu--days { width: auto; max-height: 60vh; grid-template-columns: repeat(7, 1fr); }
}

/* ── Company card (owner's runner setup; moved from runner-polish.css, which is runner-only) + card charges (opt-in key runnerCardCharges) ── */
.rs-card-lbl { margin: 14px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--off-white); }
.rs-card-list { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-card-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-raised); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rs-card-chip-x { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--off-white); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 999px; }
.rs-card-chip-x:hover { color: var(--red, #d64545); }
.rs-card-pick { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px dashed var(--border); background: transparent; color: var(--white); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rs-card-pick:hover { border-color: var(--blue, var(--gold)); }
.rs-card-add { display: flex; gap: 8px; align-items: stretch; }
.rs-card-add input { flex: 1; min-width: 0; min-height: 44px; font-size: 16px; font-weight: 700; letter-spacing: 3px; font-variant-numeric: tabular-nums; }
.rs-card-add .btn { min-height: 44px; min-width: 76px; }
.rs-cc-list { display: grid; gap: 8px; }
.rs-cc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-raised); }
.rs-cc-t { display: grid; gap: 2px; font-size: 14px; font-weight: 600; min-width: 0; }
.rs-cc-s { font-size: 12px; font-weight: 500; color: var(--off-white); }
.rs-cc-a { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--red, #d64545); }
/* Holder menu search (buyers join the list, Hal 10-20) */
.wfc-settings .wfc-menu .wfc-menu-q { position: sticky; top: 0; z-index: 1; margin: 0 0 4px; min-height: 40px; }
.wfc-settings .wfc-menu .wfc-opt[hidden] { display: none; }

/* Settings › Cards & accounts, new UI (Hal 10-20): one rounded card per card/account, holders as chips. Block id: #wfc-cards-block (self-contained, movable). */
.wfc-settings .wfc-list { gap: 12px; }
.wfc-settings .wfc-row { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; gap: 10px; }
.wfc-settings .wfc-card-head { display: flex; align-items: center; gap: 12px; flex: 1 1 100%; min-width: 0; }
.wfc-settings .wfc-card-ic { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--blue, var(--gold)); background: color-mix(in srgb, var(--blue, var(--gold)) 11%, transparent); font-weight: 700; }
.wfc-settings .wfc-card-ic svg { width: 18px; height: 18px; }
.wfc-settings .wfc-card-id { min-width: 0; }
.wfc-settings .wfc-card-name { font-size: 15px; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wfc-settings .wfc-card-l4 { font-weight: 500; color: var(--off-white); font-variant-numeric: tabular-nums; }
.wfc-settings .wfc-card-sub { font-size: 12.5px; color: var(--off-white); margin-top: 2px; }
.wfc-settings .wfc-in { border-radius: 10px; min-height: 44px; }
.wfc-settings .wfc-holders { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 100%; }
.wfc-settings .wfc-hl { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-right: 2px; }
.wfc-settings .wfc-hchip { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; padding: 0 4px 0 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--white); background: color-mix(in srgb, var(--blue, var(--gold)) 6%, transparent); }
.wfc-settings .wfc-hx { min-width: 44px; min-height: 44px; margin: -4px 0; border: 0; background: transparent; color: var(--off-white); font-size: 20px; line-height: 1; cursor: pointer; border-radius: 999px; }
.wfc-settings .wfc-hx:hover { color: var(--red, #d64545); }
.wfc-settings .wfc-hnone { color: var(--muted); font-size: 13px; }
.wfc-settings .wfc-hadd { min-height: 44px; padding: 0 14px; border: 1px dashed var(--border); border-radius: 999px; background: transparent; color: var(--white); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.wfc-settings .wfc-hadd:hover, .wfc-settings .wfc-hadd[aria-expanded="true"] { border-color: var(--blue, var(--gold)); }
.wfc-settings .wfc-all-link { margin-top: 10px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--blue, var(--gold)); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.wfc-settings .wfc-all-link:hover { text-decoration: underline; }
.wfc-settings .wfc-liability-settings { padding-top: 10px; border-top: 1px solid var(--border); }
.wfc-settings .wfc-add { background: var(--bg-raised); border: 1px dashed var(--border); border-radius: 14px; padding: 12px 14px; }
@media (max-width: 640px) { .wfc-settings .wfc-holders > .wfc-pick { flex: 0 0 auto; } .wfc-settings .wfc-holders .wfc-pick .wfc-hadd { width: auto; } }

/* the editable fields inside a card: rounded, token borders (no bare browser inputs) */
.wfc-settings input.wfc-in { box-sizing: border-box; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-void, transparent); color: var(--white); font-family: var(--font-body); font-size: 14px; outline: 0; }
.wfc-settings input.wfc-in:focus { border-color: var(--blue, var(--gold)); }
.wfc-settings input.wfc-in::placeholder { color: var(--off-white); }
.wfc-settings .wfc-chk { min-height: 44px; }

/* Person's card with no due day (cardsVsBills): a plain, non-blocking warning under the Bill due date field, with one tap to set the due day. */
.wfc-warn { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 2px; padding: 8px 10px; border-radius: 10px;
  background: var(--amber-bg, rgba(196, 140, 24, .12)); color: var(--ink, inherit); font-size: 12.5px; line-height: 1.35; }
.wfc-warn[hidden] { display: none; }
.wfc-warn-t { font-weight: 600; }
.wfc-warn-hint { color: var(--muted); }
.wfc-warn-btn { min-height: 44px; padding: 0 14px; border: 1px solid var(--border, rgba(0, 0, 0, .18)); border-radius: 10px; background: var(--card-bg, #fff); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }

/* Runner's Quick Capture line with the card groups on (cardsVsBills): "Who paid" is set from the card, so it is not asked. One plain line says what happens. */
.runner-fund-row.wfc-who-auto > .wf-lr-who { display: none !important; }
.wf-ledger--edit .wfc-sub[data-wfc-auto] { padding: 4px 0 0; font-size: 13px; line-height: 1.4; }
.wfc-auto-line { color: var(--white); font-weight: 600; }
html.wf-ship-on #page-inv-add-simple-review .wf-ledger--edit .runner-fund-row.wfc-who-auto:has(> .wfsp-method) { grid-template-areas: "amt amt rm" "how how how" "note note note"; }

/* Owner Add flows: a runner's own card makes the line runner-paid. One line + a Change control (44px tap), then the existing Who-paid choices. */
.wf-ledger--edit .wfc-sub[data-wfc-auto="payer"] { align-items: center; gap: 6px 12px; }
.wfc-change { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--blue); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.wfc-change-pick { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; }
.wfc-change-pick[hidden] { display: none; }
.wfc-change-l { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.wfc-change-pick select { min-height: 44px; flex: 1 1 auto; max-width: 260px; }
