/* Asset register (Asset Management on IQ Books ledgers). House tokens only. */
.far { display: flex; flex-direction: column; gap: 18px; padding-top: 4px; }
.far-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.far-kpi { background: #fff; border: 1px solid var(--liq-border, #dfe6e2); border-left: 4px solid #1f5c4d; border-radius: 10px; padding: 14px 16px; }
.far-kpi.warn { border-left-color: #c5891f; }
.far-kpi-label { font-family: var(--liq-font-mono, 'JetBrains Mono', monospace); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--liq-text-muted, #6b7a74); }
.far-kpi-value { font-family: var(--liq-font-mono, 'JetBrains Mono', monospace); font-size: 22px; font-weight: 600; color: var(--liq-text, #1a2420); margin: 6px 0 4px; }
.far-kpi-meta { font-size: 12px; color: var(--liq-text-secondary, #4b5854); line-height: 1.4; }
.far-tie { font-size: 13px; padding: 10px 14px; border-radius: 8px; line-height: 1.5; }
.far-tie.good { background: rgba(31, 92, 77, 0.07); color: #1f5c4d; }
.far-tie.bad { background: rgba(197, 137, 31, 0.1); color: #5e430d; border: 1px solid rgba(197, 137, 31, 0.3); }
.far-card { margin: 0; }
.far-lines-host { overflow-x: auto; }
.far-lines { width: 100%; min-width: 680px; height: auto; display: block; font-family: var(--liq-font-body, 'DM Sans', sans-serif); }
.far-lines .far-grid { stroke: var(--liq-border, #dfe6e2); stroke-dasharray: 3 4; }
.far-lines .far-tick { font-size: 11px; fill: var(--liq-text-muted, #6b7a74); font-family: var(--liq-font-mono, 'JetBrains Mono', monospace); }
.far-lines .far-today { stroke: #b0655a; stroke-width: 1.5; }
.far-lines .far-today-label { font-size: 10.5px; fill: #8e3f37; font-family: var(--liq-font-mono, 'JetBrains Mono', monospace); }
.far-lines .far-group { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; fill: var(--liq-text-secondary, #4b5854); font-family: var(--liq-font-mono, 'JetBrains Mono', monospace); }
.far-lines .far-group-rule { stroke: var(--liq-border, #dfe6e2); }
.far-lines .far-name { font-size: 12.5px; fill: var(--liq-text, #1a2420); }
.far-lines .far-life { stroke: rgba(31, 92, 77, 0.18); stroke-width: 8; stroke-linecap: round; }
.far-lines .far-used { stroke-width: 8; stroke-linecap: round; }
.far-lines .far-used.live { stroke: #1f5c4d; }
.far-lines .far-used.ending { stroke: #c5891f; }
.far-lines .far-used.spent { stroke: #8a948f; }
.far-lines .far-bought { fill: #fff; stroke: #1f5c4d; stroke-width: 2; }
.far-lines .far-end { stroke: #4b5854; stroke-width: 2; }
.far-lines .far-nbv { font-size: 11.5px; font-family: var(--liq-font-mono, 'JetBrains Mono', monospace); fill: var(--liq-text-secondary, #4b5854); }
.far-lines .far-nbv.spent { fill: #8a948f; }
.far-lines .far-nbv.ending { fill: #7f5a12; }
.far-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 4px 0; font-size: 12px; color: var(--liq-text-secondary, #4b5854); }
.far-legend span { display: inline-flex; align-items: center; gap: 6px; }
.far-legend i { width: 22px; height: 7px; border-radius: 4px; display: inline-block; }
.far-legend i.live { background: #1f5c4d; }
.far-legend i.ending { background: #c5891f; }
.far-legend i.spent { background: #8a948f; }
.far-legend i.rest { background: rgba(31, 92, 77, 0.18); }
.far-legend-note { color: var(--liq-text-muted, #6b7a74); }
.far-table-wrap { overflow-x: auto; }
.far-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.far-table th { text-align: left; font-family: var(--liq-font-mono, 'JetBrains Mono', monospace); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--liq-text-muted, #6b7a74); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--liq-border, #dfe6e2); white-space: nowrap; }
.far-table td { padding: 9px 10px; border-bottom: 1px solid var(--liq-border, #dfe6e2); vertical-align: top; }
.far-table .num { text-align: right; font-family: var(--liq-font-mono, 'JetBrains Mono', monospace); font-variant-numeric: tabular-nums; white-space: nowrap; }
.far-muted { color: var(--liq-text-muted, #6b7a74); font-size: 11.5px; }
.far-good { color: #0e6a4f; }
.far-bad { color: #8e3f37; }
.far-pill { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; }
.far-pill.spent { background: rgba(107, 122, 116, 0.15); color: #4b5854; }
.far-pill.ending { background: rgba(197, 137, 31, 0.15); color: #7f5a12; }
.far-empty { padding: 36px 18px; text-align: center; color: var(--liq-text-secondary, #4b5854); font-size: 14px; }
.far-spinner { display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px; border: 2px solid var(--liq-border, #dfe6e2); border-top-color: var(--liq-accent, #4a9080); border-radius: 50%; animation: far-spin 0.8s linear infinite; }
@keyframes far-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .far-spinner { animation: none; } }
@media (max-width: 900px) { .far-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Stock by item (Inventory Efficiency on IQ Books ledgers), shares the far- card styles */
.sbi-map { width: 100%; min-width: 640px; height: auto; display: block; font-family: var(--liq-font-body, 'DM Sans', sans-serif); }
.sbi-map .sbi-grid { stroke: var(--liq-border, #dfe6e2); stroke-dasharray: 3 4; }
.sbi-map .sbi-grid.warn { stroke: #c5891f; stroke-dasharray: 5 4; }
.sbi-map .sbi-tick { font-size: 11px; fill: var(--liq-text-muted, #6b7a74); font-family: var(--liq-font-mono, 'JetBrains Mono', monospace); }
.sbi-map .sbi-corner { font-size: 11px; fill: #8e3f37; font-family: var(--liq-font-mono, 'JetBrains Mono', monospace); letter-spacing: 0.06em; text-transform: uppercase; }
.sbi-map .sbi-still-bg { fill: rgba(107, 122, 116, 0.08); }
.sbi-map .sbi-dot { stroke: #fff; stroke-width: 1.5; opacity: 0.9; }
.sbi-map .sbi-dot.ok { fill: #1f5c4d; }
.sbi-map .sbi-dot.low { fill: #c5891f; }
.sbi-map .sbi-dot.slow { fill: #b0655a; }
.sbi-map .sbi-dot.still { fill: #8a948f; }
.sbi-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 4px 0; font-size: 12px; color: var(--liq-text-secondary, #4b5854); }
.sbi-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sbi-legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.sbi-legend i.ok { background: #1f5c4d; } .sbi-legend i.low { background: #c5891f; } .sbi-legend i.slow { background: #b0655a; } .sbi-legend i.still { background: #8a948f; }
.sbi-empty { padding: 36px 18px; text-align: center; color: var(--liq-text-secondary, #4b5854); font-size: 14px; }
.sbi-table-card .sbi-more { display: none; }
.sbi-all .sbi-more { display: table-row; }

/* Projects and time (Productivity on IQ Books ledgers), shares the far- card styles */
.prj-bars { width: 100%; min-width: 680px; height: auto; display: block; font-family: var(--liq-font-body, 'DM Sans', sans-serif); }
.prj-bars .prj-row-bg { fill: var(--liq-bg, #f6f8f7); }
.prj-bars .far-grid { stroke: var(--liq-border, #dfe6e2); stroke-dasharray: 3 4; }
.prj-bars .far-tick { font-size: 11px; fill: var(--liq-text-muted, #6b7a74); font-family: var(--liq-font-mono, 'JetBrains Mono', monospace); }
.prj-bars .far-name { font-size: 12.5px; fill: var(--liq-text, #1a2420); font-weight: 600; }
.prj-bars .prj-sub { font-size: 10.5px; fill: var(--liq-text-muted, #6b7a74); }
.prj-bars .prj-sub.bad { fill: #8e3f37; font-weight: 600; }
.prj-bars .prj-billed { fill: #1f5c4d; }
.prj-bars .prj-wip { fill: #c5891f; }
.prj-bars .prj-time { fill: #5b6eae; }
.prj-bars .prj-other { fill: #9fb3c8; }
.prj-bars .prj-budget { stroke: #8e3f37; stroke-width: 2.5; }
.prj-bars .prj-margin { font-size: 12px; font-family: var(--liq-font-mono, 'JetBrains Mono', monospace); fill: var(--liq-text-secondary, #4b5854); }
.prj-bars .prj-margin.good { fill: #0e6a4f; } .prj-bars .prj-margin.warn { fill: #7f5a12; } .prj-bars .prj-margin.bad { fill: #8e3f37; }
.sbi-legend i.prj-l { width: 18px; height: 8px; border-radius: 2px; }
.sbi-legend i.prj-l.billed { background: #1f5c4d; } .sbi-legend i.prj-l.wip { background: #c5891f; } .sbi-legend i.prj-l.time { background: #5b6eae; } .sbi-legend i.prj-l.other { background: #9fb3c8; }
.sbi-legend i.prj-l.budget { width: 3px; height: 14px; background: #8e3f37; }

/* The cycle from the documents (Cash Conversion Cycle on IQ Books ledgers) */
.ccc-docs-card { margin-bottom: 18px; }
.ccc-docs-loading { padding: 18px; color: var(--liq-text-secondary, #4b5854); font-size: 13px; }
.ccc-docs-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.ccc-docs-table th { text-align: left; font-family: var(--liq-font-mono, 'JetBrains Mono', monospace); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--liq-text-muted, #6b7a74); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--liq-border, #dfe6e2); }
.ccc-docs-table td { padding: 9px 10px; border-bottom: 1px solid var(--liq-border, #dfe6e2); }
.ccc-docs-table .num { text-align: right; font-family: var(--liq-font-mono, 'JetBrains Mono', monospace); white-space: nowrap; }
.ccc-docs-table .ccc-docs-note { color: var(--liq-text-muted, #6b7a74); font-size: 12px; }
.ccc-docs-table .ccc-docs-total td { border-top: 2px solid #4b5854; font-weight: 600; }

/* "Open in IQ Books": a finding's journal, opened where the books live */
.liq-open-iqb { display: inline-block; font-size: 11.5px; font-weight: 600; color: #1f5c4d; text-decoration: none; border: 1px solid rgba(31, 92, 77, 0.3); border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.liq-open-iqb:hover { background: rgba(31, 92, 77, 0.08); }
.liq-open-iqb:focus-visible { outline: 2px solid var(--liq-accent, #4a9080); outline-offset: 1px; }
