/* =============================================================================
   The company layer's two shapes the finance components don't have
   (Portal 2.0, lane E): a target's progress bar, and the 13 weeks' columns.
   Tokens only, from css/system/finance.css. Everything else on the company
   pages is the finance components (components/finance.css).
   ============================================================================= */

.fin-progress { display: block; height: 8px; margin: 8px 0 4px; background: var(--fin-rule-1); border-radius: var(--fin-r-1); overflow: hidden; }
.fin-progress__fill { display: block; height: 100%; width: var(--fin-progress, 0%); background: var(--fin-ok); }
.fin-progress--behind .fin-progress__fill { background: var(--fin-warn); }

.fin-weeks { display: flex; align-items: flex-end; gap: 8px; height: 240px; padding: 16px 16px 0; }
.fin-weeks__col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.fin-weeks__val { font-size: var(--fin-t-micro); color: var(--fin-muted); text-align: center; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.fin-weeks__seg { display: block; height: var(--fin-seg, 0px); background: var(--fin-ink); }
.fin-weeks__seg--heavy { background: var(--fin-accent); }
.fin-weeks__seg--pencil { background: var(--fin-accent-soft); }
.fin-weeks__col.is-low .fin-weeks__seg:last-child { background: var(--fin-warn); }
.fin-weeks__labels { display: flex; gap: 8px; padding: 6px 16px 12px; }
.fin-weeks__label { flex: 1 1 0; min-width: 0; text-align: center; font-size: var(--fin-t-micro); color: var(--fin-muted); }
.fin-weeks__key { display: flex; flex-wrap: wrap; gap: 16px; padding: 0 16px 16px; font-size: var(--fin-t-label); color: var(--fin-muted); }
.fin-weeks__swatch { display: inline-block; width: 10px; height: 10px; margin-right: 6px; background: var(--fin-ink); }
.fin-weeks__swatch--heavy { background: var(--fin-accent); }
.fin-weeks__swatch--pencil { background: var(--fin-accent-soft); }

/* snag round 8 (item 14): money in reads green and money out red, on the
   cash page and the finance hub, in design system v2's success and danger
   text tokens (--z-ok, --z-bad), light and dark. Named directly: inside the
   boards' skin --fin-ok is the boards' own green, not v2's. Off v2 (a page
   for someone without portal.v2) the finance roles stand in. The sign, the
   column and the label stay, so colour is never the only cue. */
.fin-money-in { color: var(--z-ok, var(--fin-ok)); }
.fin-money-out { color: var(--z-bad, var(--fin-bad)); }
