/* FinRunway Receivables — accent colour and screens specific to collections. */
:root { --teal: #2F5FD0; --teal-dark: #244BAA; --teal-light: #8FB0F5; --teal-wash: #ECF1FC; }
.input:focus { box-shadow: 0 0 0 3px rgba(47,95,208,.15); }

/* aging buckets */
.aging--current { background: #3FA67A; }
.aging--b1 { background: #E3B341; }
.aging--b2 { background: #E08A3C; }
.aging--b3 { background: #D0634F; }
.aging--b4 { background: #9E2F2A; }
.aging-bar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; gap: 2px; background: var(--line); }
.aging-bar__seg { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12.5px; font-weight: 700; text-decoration: none; min-width: 4px; }
.aging-bar__seg:hover { filter: brightness(1.08); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 0; }

/* risk grade */
.grade { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; font-size: 12px; font-weight: 800; color: #fff; vertical-align: middle; }
.grade--A { background: #1F8A5B; } .grade--B { background: #6E9F3A; } .grade--C { background: #D08A2E; } .grade--D { background: #B23A31; }
.hbar__fill.grade-A { background: #1F8A5B; } .hbar__fill.grade-B { background: #6E9F3A; } .hbar__fill.grade-C { background: #D08A2E; } .hbar__fill.grade-D { background: #B23A31; }
.pill--warn { background: #FBEBD7; color: #9A5B12; }

/* charts */
.chart__promised { fill: var(--teal); opacity: .8; }
.chart__late { fill: rgba(192,70,59,.5); }

/* tables */
.tbl--click tbody tr[data-go] { cursor: pointer; }
.tbl--click tbody tr[data-go]:hover td { background: var(--teal-wash); }
.tbl--aging td, .tbl--aging th { white-space: nowrap; }
.tbl--aging td:first-child { white-space: normal; min-width: 180px; }

/* to collect */
.collect-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.collect-row:first-of-type { border-top: 0; }
.collect-row__rank { width: 30px; height: 30px; border-radius: 50%; background: var(--teal-wash); color: var(--teal); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.collect-row.is-waiting .collect-row__rank { background: #F1EFE8; color: var(--muted); }
.collect-row__name { font-weight: 700; font-size: 16px; }
.collect-row__name a { color: var(--ink); text-decoration: none; }
.collect-row__why { margin-top: 4px; }
.collect-row__meta { margin-top: 4px; }
.collect-row__acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) { .collect-row { grid-template-columns: 30px 1fr; } .collect-row__acts { grid-column: 1 / -1; justify-content: flex-start; } }

/* customer page */
.cust-card { margin-top: 18px; }
.cust-card__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.cust-card__grid > div > div { overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); align-items: start; }
.timeline li:first-child { border-top: 0; }
.timeline__date { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr auto; } .timeline__date { grid-column: 1 / -1; } }

/* letters */
.letter-text { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; }
.letter-preview { white-space: pre-wrap; font: 14px/1.55 Georgia, 'Times New Roman', serif; background: #FBFAF7; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0; max-height: 460px; overflow: auto; }

@media print { .collect-row__acts, .row-actions, .edit-only { display: none !important; } }
