/* Copied from the Activest design book (FRwCBAqUCf4Yu8JW8Z3nBT, the same book as tokens.css), project/components/bundle.css,
   on 2026-10-14 (commit a6ed80e). */
/* Owner Statement Platform: component styles. Load after tokens.css. Mulberry (accent, action) marks where the owner acts. */
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 26px; background: var(--surface); color: var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.osp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.osp-num { font-variant-numeric: tabular-nums; }

/* Rule */
.osp-rule { display: block; box-sizing: content-box; height: 0; margin: 0; border: 0; border-top: var(--stroke-hairline) solid var(--line); }
.osp-rule--strong { border-top-color: var(--text); }
.osp-rule--double { border-top: var(--stroke-double) double var(--text); }

/* Button: primary is the one act on a view */
.osp-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 44px; padding: 0 var(--space-5); box-sizing: border-box; font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; text-decoration: none; cursor: pointer; border-radius: var(--radius-none); border: var(--stroke-hairline) solid var(--line-strong); background: var(--surface); color: var(--text); transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out; }
.osp-btn:hover { border-color: var(--text); }
.osp-btn:focus-visible { outline: var(--stroke-strong) solid var(--focus); outline-offset: 2px; }
.osp-btn--primary { background: var(--action); border-color: var(--action); color: var(--on-action); }
.osp-btn--primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.osp-btn--quiet { background: transparent; border-color: transparent; padding: 0 var(--space-2); color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.osp-btn--quiet:hover { border-color: transparent; }
.osp-btn--sm { height: 36px; padding: 0 var(--space-4); font-size: 13px; }
.osp-btn[disabled], .osp-btn[aria-disabled="true"] { cursor: not-allowed; color: var(--text-3); border-color: var(--line); background: var(--surface-2); }
.osp-btn--quiet[disabled] { background: transparent; border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .osp-btn { transition: none; } }

/* Tag: states always carry a word */
.osp-tag { display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box; height: 24px; padding: 0 var(--space-2); font-family: var(--font-sans); font-size: 12px; line-height: 18px; font-weight: 500; white-space: nowrap; border-radius: var(--radius-none); border: var(--stroke-hairline) solid var(--line-strong); background: var(--surface-2); color: var(--text-2); }
.osp-tag__dot { flex: none; width: 6px; height: 6px; border-radius: var(--radius-round); background: currentColor; }
.osp-tag--positive { background: var(--positive-soft); color: var(--positive); border-color: var(--positive); }
.osp-tag--warning { background: var(--warning-soft); color: var(--warning); border-color: var(--warning); }
.osp-tag--negative { background: var(--negative-soft); color: var(--negative); border-color: var(--negative); }
.osp-tag--act { background: var(--surface); color: var(--accent); border-color: var(--accent); }

/* Figure: value, hairline, label */
.osp-figure { margin: 0; display: inline-flex; flex-direction: column; min-width: 7em; color: var(--text); }
.osp-figure__value { font-family: var(--font-display); font-size: 40px; line-height: 44px; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.osp-figure--lg .osp-figure__value { font-size: 64px; line-height: 64px; }
.osp-figure__rule { margin-top: var(--space-3); }
.osp-figure__caption { display: flex; flex-direction: column; margin-top: var(--space-2); font-family: var(--font-sans); }
.osp-figure__label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text); }
.osp-figure__note { margin-top: var(--space-1); font-size: 12px; line-height: 18px; color: var(--text-3); }

/* LedgerTable: the owner P&L */
.osp-ledger { width: 100%; border-collapse: separate; border-spacing: 0; font-family: var(--font-sans); font-size: 14px; line-height: 20px; color: var(--text); font-variant-numeric: tabular-nums; }
.osp-ledger caption { caption-side: top; text-align: start; font-size: 18px; line-height: 26px; font-weight: 600; padding-bottom: var(--space-3); }
.osp-ledger th, .osp-ledger td { padding: var(--space-3) var(--space-4) var(--space-3) 0; padding-inline-start: 0; padding-inline-end: var(--space-4); text-align: start; vertical-align: top; font-weight: 400; border-bottom: var(--stroke-hairline) solid var(--line); }
.osp-ledger th:last-child, .osp-ledger td:last-child { padding-inline-end: 0; }
.osp-ledger thead th { padding-top: 0; padding-bottom: var(--space-2); font-size: 12px; line-height: 18px; font-weight: 500; color: var(--text-2); vertical-align: bottom; border-bottom-color: var(--text); }
.osp-ledger .is-end { text-align: end; }
.osp-ledger .is-neg { color: var(--negative); }
.osp-ledger .is-gap { color: var(--text-3); }
.osp-ledger .is-sub { color: var(--text-2); }
.osp-ledger.has-total tbody tr:last-child > * { border-bottom: 0; }
.osp-ledger tfoot th, .osp-ledger tfoot td { font-weight: 600; border-top: var(--stroke-hairline) solid var(--text); border-bottom: var(--stroke-double) double var(--text); }

/* StatementCheck: the reconciliation, to the cent */
.osp-check { max-width: 560px; font-family: var(--font-sans); color: var(--text); }
.osp-check__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-3); border-bottom: var(--stroke-hairline) solid var(--text); }
.osp-check__title { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; }
.osp-check__row { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-2) 0; font-size: 14px; line-height: 20px; border-bottom: var(--stroke-hairline) solid var(--line); font-variant-numeric: tabular-nums; }
.osp-check__row > :last-child { text-align: end; white-space: nowrap; }
.osp-check__row.is-total { font-weight: 600; border-top: var(--stroke-hairline) solid var(--text); border-bottom: var(--stroke-double) double var(--text); }
.osp-check__row.is-after { color: var(--text-2); }
.osp-check__row .is-neg { color: var(--negative); }
.osp-check__diff { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--warning-soft); color: var(--warning); font-size: 14px; line-height: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.osp-check__note { margin: var(--space-3) 0 0; font-size: 12px; line-height: 18px; color: var(--text-3); }

/* DoorRow: a door in the CRM and beside the map */
.osp-doors { margin: 0; padding: 0; list-style: none; font-family: var(--font-sans); color: var(--text); border-top: var(--stroke-hairline) solid var(--text); }
.osp-door { display: grid; grid-template-columns: 8px minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr); align-items: center; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: var(--stroke-hairline) solid var(--line); }
.osp-door.is-selected { background: var(--accent-soft); }
.osp-door__mark { width: 8px; height: 8px; }
.osp-door.is-act .osp-door__mark { background: var(--accent); }
.osp-door__name { display: block; font-size: 16px; line-height: 24px; font-weight: 500; }
.osp-door__sub { display: block; font-size: 12px; line-height: 18px; color: var(--text-3); }
.osp-door__cell { font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.osp-door__lbl { display: block; font-size: 12px; line-height: 18px; color: var(--text-2); }
.osp-door__act { justify-self: end; }

/* NoticeCard: a PM notice, decoded */
.osp-notice { display: flex; flex-direction: column; gap: var(--space-4); box-sizing: border-box; padding: var(--space-5); background: var(--surface-2); font-family: var(--font-sans); color: var(--text); }
.osp-notice__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.osp-notice__src { margin: 0; font-size: 12px; line-height: 18px; color: var(--text-3); }
.osp-notice__plain { margin: 0; font-size: 19px; line-height: 30px; font-weight: 300; max-width: 34em; }
.osp-notice__amt { font-family: var(--font-display); font-size: 40px; line-height: 44px; font-weight: 400; font-variant-numeric: tabular-nums; }
.osp-notice__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

/* Field */
.osp-field { display: flex; flex-direction: column; gap: var(--space-2); max-width: 420px; font-family: var(--font-sans); }
.osp-field__label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text); }
.osp-field__input { box-sizing: border-box; height: 44px; padding: 0 var(--space-3); font-family: inherit; font-size: 16px; line-height: 24px; color: var(--text); background: var(--surface); border: var(--stroke-hairline) solid var(--line-strong); border-radius: var(--radius-sm); font-variant-numeric: tabular-nums; }
.osp-field__input::placeholder { color: var(--text-3); }
.osp-field__input:hover { border-color: var(--text-2); }
.osp-field__input:focus-visible { outline: var(--stroke-strong) solid var(--focus); outline-offset: 2px; border-color: var(--text); }
.osp-field__msg { margin: 0; font-size: 12px; line-height: 18px; color: var(--text-3); }
.osp-field--error .osp-field__input { border-color: var(--negative); }
.osp-field--error .osp-field__msg { color: var(--negative); }
