/* design-v2/balance-capture.css: the drawer that reads a balance from an account page, and its entry links. */
#balance-capture [hidden] { display: none !important; }
.bc-programme { margin: 4px 0 0; font-size: 0.9rem; color: var(--ink-muted); overflow-wrap: anywhere; }
.bc-programme:empty { display: none; }
.bc { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bc > section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bc-choice { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--paper-soft); min-width: 0; }
.bc-choice.is-over { border-color: var(--navy); }
.bc-choice__title, .bc-result__title { margin: 0; font-size: 1rem; }
.bc-hint { margin: 0; font-size: 0.8667rem; color: var(--ink-muted); }
.bc-textarea { width: 100%; max-width: 100%; box-sizing: border-box; resize: vertical; border: 1px solid var(--hairline); border-radius: 8px; padding: 8px; font: inherit; }
.bc-file { max-width: 100%; }
.bc-choice > .v2-btn { align-self: flex-start; }

/* Crop step: the canvas never grows past the drawer. */
.bc-crop { max-width: 100%; overflow: hidden; border: 1px solid var(--hairline); border-radius: 8px; }
.bc-crop__canvas { display: block; max-width: 100%; height: auto; touch-action: none; cursor: crosshair; }
.bc-crop__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Result step */
.bc-result__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; min-width: 0; }
.bc-result__crop { max-width: 100%; max-height: 120px; border: 1px solid var(--hairline); border-radius: 6px; }
.bc-result__figures { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bc-figure { margin: 0; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.bc-balance { width: 9em; max-width: 100%; box-sizing: border-box; border: 1px solid var(--hairline); border-radius: 6px; padding: 6px 8px; font: inherit; }
.bc-expiry, .bc-warnings, .bc-notes, .bc-expiry-result { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bc-check, .bc-confirm { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.bc-warning { padding: 8px 10px; border: 1px solid var(--pace-caution-border); border-radius: 8px; background: var(--pace-caution-paper); color: var(--ink); font-size: 0.9rem; overflow-wrap: anywhere; }
.bc-note { font-size: 0.8667rem; color: var(--ink-muted); overflow-wrap: anywhere; }
.bc-own-form a { color: var(--navy); }

/* Entry links beside the balance editors */
.lw-capture-row { margin: 0; }
.v2-bfm__capture { margin: 8px 0 0; }
.v2-bfm__capture-link { border: 0; background: none; padding: 8px 0; min-height: 44px; color: var(--navy); font: inherit; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.v2-bfm__capture-link:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 3px; }
