/* FinRunway Payables — accent colour and screens specific to paying suppliers. */
:root { --teal: #B8621B; --teal-dark: #934C12; --teal-light: #E9B585; --teal-wash: #FBF1E7; }
.input:focus { box-shadow: 0 0 0 3px rgba(184,98,27,.16); }

/* 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; }

.pill--warn { background: #FBEBD7; color: #9A5B12; }

/* charts */
.chart__planned { fill: var(--teal); opacity: .85; }
.chart__due { fill: rgba(196,123,38,.55); }
.chart__cash { stroke: #1F8A5B; stroke-width: 2.5; stroke-dasharray: 6 4; }
.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; }

/* 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; } }

/* priority, discounts */
.prio { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; vertical-align: 1px; }
.prio--critical { background: #FBE3DF; color: #A2332A; }
.prio--flexible { background: #EEF1F4; color: #5B6B7A; }
.hbar__fill.prio-critical { background: #B23A31; } .hbar__fill.prio-normal { background: var(--teal); } .hbar__fill.prio-flexible { background: #8A9AAA; }
.pill--disc { background: #E3F4EA; color: #1C6B45; }
.pos { color: #1F8A5B; }

/* to pay */
.selbar { position: sticky; top: 64px; z-index: 5; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(11,31,51,.06); font-weight: 600; }
.selbar.is-on { border-color: var(--teal-light); background: var(--teal-wash); }
.tbl--pay td.chk, .tbl--pay th.chk { width: 34px; padding-right: 0; }
.tbl--pay input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--teal); }
.tbl--pay tr.is-sel td { background: var(--teal-wash); }
.run--done { opacity: .85; }
.run .card__title .pill { margin-left: 6px; vertical-align: 2px; }

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