/* GENERATED FILE - DO NOT EDIT.
   Source: shared/balance-pay.css - run `npm run sync:shared` after editing. */

/* Balance Pay (owner-approved mock 2026-10-18; shared/balance-pay.js + shared/expense-balance.js): web + app. */

/* The card: one Pay, the working, the two sub-lists. */
.bal-group .bal-net { margin: 0.1rem 0.5rem 0.45rem; }
.bal-group .bal-net.is-paid { margin-top: 0.45rem; }
.bal-net li.is-paid { margin-top: 0; padding-top: 0; border-top: 0; }
.bal-net li.is-paid + li.is-paid { margin-top: 0.25rem; }
.bal-net li.bal-net-proof { padding: 0.25rem 0 0; }
/* Proof + "Undo payment" wrap at 360 px instead of running off the card (Run 9 sim 2026-10-18 A-8). */
.bal-net li.bal-net-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; min-width: 0; }
.bal-net-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.bal-group > .bal-net-acts { margin: 0.5rem 0.75rem 0.15rem; }
.bal-small { font-size: 0.78rem; color: #6b766f; }
.bal-pay { min-height: 2.4rem; padding: 0 1.1rem; border: 0; border-radius: 999px; background: #1d5c63; color: #fff; font: inherit; font-size: 0.88rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.bal-pay:focus-visible, .bal-proof:focus-visible, .bpay-btn:focus-visible, .bpay-qr-thumb:focus-visible, .bpay-qr-add:focus-visible { outline: 3px solid #8a5a0a; outline-offset: 2px; }
.bal-sub { margin: 0.6rem 0.85rem 0.25rem; font-size: 0.78rem; font-weight: 700; color: #6b766f; } /* sentence case: no all-caps names (W-39, 2026-10-21) */
.bal-line.is-off { background: #f3f8f6; }
.bal-line.is-off .bal-what small { color: #6b766f; }
.bal-line.is-off.st-paid { background: #e3f1e9; }
.bal-mark.is-pay { border-color: #1d5c63; color: #1d5c63; }
.bal-proofs { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.3rem; }
/* Balance settling (Run 18 C-110 / C-112 / C-113): the Pay row's new "Paid ✓ · Undo · 📷" sits on the row as it was. */
.bal-stack { display: grid; }
.bal-stack > * { grid-area: 1 / 1; }
.bal-stack-was { visibility: hidden; }
.bal-acts-in { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.bal-stack-now { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.5rem; }
.bal-paid-now { font-size: 0.88rem; font-weight: 800; color: #2f7a4f; white-space: nowrap; }
.bal-proof.is-icon { flex: none; min-height: 2rem; padding: 0 0.55rem; margin-right: 0.3rem; }
.bal-proof { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 1.75rem; padding: 0 0.6rem; border: 0; border-radius: 999px; background: #e7f3ec; color: #12673d; font: inherit; font-size: 0.74rem; font-weight: 800; cursor: pointer; }

/* "How people pay you". */
.bpay-mine { padding: 0.75rem 0.9rem; border: 1px solid #e8e0cf; border-radius: 16px; background: #fff; }
.bpay-qr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.bpay-qr-thumb, .bpay-qr-add { display: grid; place-items: center; width: 56px; height: 56px; padding: 4px; border-radius: 8px; cursor: pointer; }
.bpay-qr-thumb { border: 1px solid #e8e0cf; background: #fff; }
.bpay-qr-thumb img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.bpay-qr-thumb.is-on, .bpay-qr-add.is-on { outline: 2px solid #1d5c63; outline-offset: 1px; }
.bpay-qr-add { border: 1.5px dashed rgba(29, 92, 99, 0.55); background: transparent; color: #1d5c63; font: inherit; font-size: 1.4rem; font-weight: 500; }
.bpay-small { margin: 0.5rem 0 0; font-size: 0.78rem; color: #6b766f; }
.bpay-qr-row .bpay-small { margin: 0; flex: 1 1 10rem; }

/* The window: a sheet on a phone, beside Balance on a wide screen (the website). */
.bpay-sheet { position: fixed; inset: 0; z-index: 2147481950; display: grid; place-items: end center; background: rgba(15, 20, 18, 0.45); -webkit-tap-highlight-color: transparent; }
.bpay-card { width: 100%; max-height: calc(100dvh - 24px); overflow: auto; display: grid; gap: 0.55rem; padding: 0.6rem 1rem max(18px, var(--safe-bot, env(safe-area-inset-bottom, 0px))); border-radius: 22px 22px 0 0; background: #fff; color: #1b2a23; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18); }
.bpay-grab { width: 40px; height: 4px; margin: 0 auto 0.3rem; border-radius: 4px; background: #e6dfd2; }
@media (min-width: 700px) {
  .bpay-sheet { place-items: center end; padding: 24px; background: rgba(15, 20, 18, 0.18); }
  .bpay-card { width: 380px; max-height: calc(100dvh - 48px); border-radius: 18px; padding: 1rem; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14); }
  .bpay-grab { display: none; }
}
.bpay-title { margin: 0; font-family: var(--serif, "Playfair Display", Georgia, serif); font-size: 1.2rem; overflow-wrap: anywhere; }
.bpay-big { margin: 0; font-size: 1.7rem; font-weight: 800; color: #1d5c63; font-variant-numeric: tabular-nums; }
.bpay-swipe { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.bpay-arrow { flex: none; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: #f3f8f6; color: #1d5c63; font-size: 1.3rem; cursor: pointer; }
.bpay-qr-big { display: block; width: min(220px, 60vw); aspect-ratio: 1; padding: 10px; border: 1px solid #e6dfd2; border-radius: 12px; background: #fff; cursor: zoom-in; }
.bpay-qr-big img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.bpay-qr-label { margin: 0; text-align: center; font-weight: 800; font-size: 0.9rem; }
.bpay-count { margin: -0.2rem 0 0; text-align: center; font-size: 0.75rem; color: #6b766f; }
.bpay-dots { display: flex; justify-content: center; gap: 6px; }
.bpay-dots i { width: 7px; height: 7px; border-radius: 50%; background: #e6dfd2; }
.bpay-dots i.on { background: #1d5c63; }
.bpay-none { margin: 0.4rem 0; padding: 0.9rem; border: 1.5px dashed #e6dfd2; border-radius: 12px; text-align: center; font-weight: 700; color: #6b766f; }
.bpay-note { margin: 0; padding: 0.45rem 0.65rem; border-radius: 10px; background: #fdf3dc; color: #8a5a0a; font-size: 0.78rem; }
.bpay-note.is-info { background: #f3f8f6; color: #1d5c63; }
.bpay-warn { margin: 0; color: #b2462b; font-size: 0.85rem; font-weight: 700; }
.bpay-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.3rem; }
.bpay-btn { min-height: 44px; padding: 0 1rem; border: 0; border-radius: 999px; font: inherit; font-size: 0.9rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.bpay-btn.is-solid { background: #1d5c63; color: #fff; }
.bpay-btn.is-quiet { background: transparent; color: #1d5c63; border: 1px solid rgba(29, 92, 99, 0.4); }
.bpay-btn.is-danger { background: transparent; color: #b2462b; border: 1px solid rgba(178, 70, 43, 0.4); justify-self: start; min-height: 38px; }
.bpay-btn:disabled { opacity: 0.6; cursor: default; }
.bpay-pick { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bpay-field { display: grid; gap: 0.25rem; font-size: 0.82rem; font-weight: 700; }
.bpay-field input { min-height: 42px; padding: 0 0.7rem; border: 1px solid #e6dfd2; border-radius: 10px; background: #fbf8f2; color: #1b2a23; font: inherit; font-size: 0.95rem; }
.bpay-proofs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bpay-proof, .bpay-proof-add { position: relative; width: 84px; height: 110px; border-radius: 10px; overflow: hidden; }
.bpay-proof { border: 1px solid #e6dfd2; background: #eef3f0; }
.bpay-proof img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.bpay-proof.is-up { display: grid; place-items: end stretch; padding: 6px 4px; }
.bpay-up { padding: 2px 3px; border-radius: 6px; background: rgba(255, 255, 255, 0.9); color: #1d5c63; font-size: 0.62rem; font-weight: 800; text-align: center; }
.bpay-photo-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.72rem; cursor: pointer; }
.bpay-proof-add { display: grid; place-items: center; border: 1.5px dashed rgba(29, 92, 99, 0.55); background: transparent; color: #1d5c63; font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; }

/* Full screen: the QR (white, big, crisp) and the proof photos (dark, zoom). */
html.bpay-full-open, html.bpay-full-open body { overflow: hidden; }
.bpay-full { position: fixed; inset: 0; z-index: 2147482350; display: flex; flex-direction: column; align-items: center; padding: max(14px, env(safe-area-inset-top, 0px)) 18px max(18px, env(safe-area-inset-bottom, 0px)); outline: none; }
.bpay-full.is-qr { background: #fff; color: #1a1f1c; overflow: auto; }
.bpay-full.is-dark { background: #0f1412; color: #e8ede9; }
.bpay-full-top { width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #6b766f; }
.bpay-full.is-dark .bpay-full-top { color: #9aa69f; }
.bpay-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #eef1ef; color: #1a1f1c; font-weight: 800; font-size: 1rem; cursor: pointer; }
.bpay-full.is-dark .bpay-x { background: #26302b; color: #e8ede9; }
.bpay-fs-who { margin: 28px 0 0; font-weight: 800; }
.bpay-fs-amt { margin: 2px 0 16px; font-size: 1.8rem; font-weight: 800; color: #1d5c63; font-variant-numeric: tabular-nums; }
.bpay-qr-full { width: min(320px, 88vw, 55vh); aspect-ratio: 1; height: auto; object-fit: contain; image-rendering: pixelated; }
.bpay-fs-name { margin: 14px 0 6px; font-weight: 800; }
.bpay-fs-hint { margin: 6px 0 0; font-size: 0.8rem; color: #6b766f; }
.bpay-full.is-qr .bpay-dots i { background: #dde3df; }
.bpay-full.is-dark .bpay-dots i { background: #34403a; }
.bpay-full.is-dark .bpay-dots i.on { background: #7cc4c9; }
.bpay-full .bpay-stage { flex: 1 1 auto; width: 100%; min-height: 0; margin: 12px 0; padding: 0; touch-action: pan-x pan-y; }
.bpay-full.is-zoomed .bpay-stage { overflow: auto; place-items: start; -webkit-overflow-scrolling: touch; }
.bpay-full.is-zoomed .lb-receipt-img { object-fit: initial; }
.bpay-cap { display: grid; gap: 2px; margin-bottom: 8px; text-align: center; }
.bpay-cap span { font-size: 0.8rem; color: #9aa69f; }
/* Run 10 sim A-11: the picked QR sat on top of "Name of this QR" — the tile keeps its own box and the row its gap. */
.bpay-qr-row { margin-bottom: 0.75rem; }
.bpay-qr-thumb, .bpay-qr-add { flex: none; box-sizing: border-box; overflow: hidden; }
