/* Finance Preview pages added in batch 4 (omni237 M5a Xero connect, M5c journal status): layout only,
   on pack tokens. The components are SM360.UI's; nothing here restyles one. Class names start fin- so
   they cannot meet another Preview family's rules. */
.fin { display: flex; flex-direction: column; gap: 16px; }
.fin-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 0; font-size: 0.8125rem; color: var(--sm360-text-muted); }
.fin-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fin-two { display: grid; gap: 16px; align-items: start; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.fin-two > * { min-width: 0; }
.fin-actions > * + * { margin-inline-start: 8px; }
.fin-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; justify-content: flex-end; align-items: center; }
.fin-hint { font-size: 0.8125rem; color: var(--sm360-text-muted); }
.fin-cell-name { display: block; font-weight: 500; font-size: 0.875rem; }
.fin-cell-sub { display: block; margin: 2px 0 0; font-size: 0.75rem; color: var(--sm360-text-muted); }
.fin-warn { color: var(--sm360-warning, var(--sm360-text-secondary)); }
.fin-link { color: var(--sm360-link, var(--sm360-action, var(--sm360-primary))); text-decoration: underline; font-size: 0.8125rem; }
.fin-rules { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; }
.fin-table { min-width: 0; }
.fin-table .sm360-table-container { overflow-x: auto; }
.fin-table th { white-space: nowrap; }
.fin-table .sm360-num, .fin-table .sm360-num * { white-space: nowrap; }

/* The Xero organisation chooser (M5a): three steps, then one organisation per radio card. */
.fin-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fin-step { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--sm360-border-primary); border-radius: 8px; font-size: 0.8125rem; }
.fin-step[data-current="true"] { border-color: var(--sm360-action, var(--sm360-primary)); font-weight: 600; }
.fin-step-no { flex: 0 0 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; background: var(--sm360-bg-secondary); }
.fin-choices { display: grid; gap: 8px; margin: 12px 0; }
.fin-choice { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--sm360-border-primary); border-radius: 8px; cursor: pointer; }
.fin-choice-on { border-color: var(--sm360-action, var(--sm360-primary)); }
.fin-choice-off { opacity: 0.7; cursor: not-allowed; }
.fin-choice-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

@media (max-width: 720px) {
    .fin-two, .fin-steps { grid-template-columns: minmax(0, 1fr); }
}
