/* Finance: treasury, close and reporting (fin- prefix). */
.fin-in { color: var(--okFg, #0b7a50); }
.fin-out { color: var(--badFg, #a3283d); }
.fin-late { color: var(--badFg, #a3283d); font-weight: 700; }
.fin-tick { width: 34px; text-align: center; }
.fin-tick input { width: 16px; height: 16px; }
.fin-h4 { margin: 4px 0 8px; font-size: 13px; font-weight: 700; color: var(--text, #09203b); }
.fin-notes { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--text2, #3d5166); font-size: 13px; }
.fin-seg { max-width: 100%; }
.fin-inline-form { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.fin-inline-form .ct-input { width: 150px; max-width: 100%; min-height: 28px; }

.fin-flow { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.fin-flow > i { align-self: center; font-size: 20px; color: var(--muted, #5f7184); }
.fin-flowbox { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; background: var(--panel, #fff);
    border: 1px solid var(--line, #cbd7e2); border-radius: 4px; overflow-wrap: anywhere; }
.fin-flowbox small { color: var(--muted, #5f7184); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.fin-flowbox span { color: var(--text2, #3d5166); font-size: 12px; }
.fin-flowbox strong { font-size: 18px; margin-top: 4px; }
.fin-flowbox strong small { text-transform: none; letter-spacing: 0; }

.fin-voucher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.fin-voucher > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--panel2, #f5f8fb); border: 1px solid var(--line2, #e0e7ed); border-radius: 4px; min-width: 0; overflow-wrap: anywhere; }
.fin-voucher small { color: var(--muted, #5f7184); font-size: 11.5px; }
.fin-voucher b { font-size: 15px; }

.fin-details summary { cursor: pointer; list-style: none; }
.fin-details summary::-webkit-details-marker { display: none; }
.fin-details summary::after { content: ' \25BE'; color: var(--muted, #5f7184); font-size: 11px; }
.fin-details .sub { display: block; white-space: normal; text-align: right; }

.fin-meterlink { display: block; color: inherit; text-decoration: none; border-radius: 4px; }
.fin-meterlink:hover { background: var(--panel2, #f5f8fb); }
.fin-areas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fin-meter-cell { min-width: 110px; }
.fin-meter { height: 6px; background: var(--line2, #e0e7ed); border-radius: 3px; overflow: hidden; }
.fin-meter span { display: block; height: 100%; background: var(--okFg, #0b7a50); }
.fin-meter.warn span { background: #e3a008; }
.fin-meter.bad span { background: var(--badFg, #a3283d); }

.fin-recon td:first-child { white-space: normal; }
.fin-recon tr:last-child td { border-top: 2px solid var(--line, #cbd7e2); font-weight: 700; }
.fin-tb td, .fin-tb th { white-space: nowrap; }
.fin-tb td:first-child { white-space: normal; min-width: 180px; }
.fin-close tr.fin-done td { color: var(--muted, #5f7184); }
.fin-close tr.fin-done td b { text-decoration: line-through; text-decoration-color: color-mix(in srgb, currentColor 50%, transparent); }

@media (max-width: 760px) {
    .fin-voucher { grid-template-columns: 1fr; }
    .fin-flow { flex-direction: column; }
    .fin-flow > i { transform: rotate(90deg); }
    .fin-meter-cell { min-width: 80px; }
}
.fin-close td:nth-child(3) { white-space: normal; min-width: 90px; }
.fin-close td:last-child { width: 1%; }
.fin-close td:last-child .ct-inline { display: block; margin: 2px 0; }
.fin-close td:last-child .ct-btn { width: 100%; justify-content: center; }
.fin-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
