/* * FinanceBuddy styles. */ /* The column header (.board-column-expanded-header) is a flex row, so the total is a flex item. To drop it onto its own line under the title, let that header wrap (scoped with :has to headers that actually contain the total -- i.e. enabled boards only) and give the total full width. No background (dropped per request); "Total:" stays black, only the amount span is colored by sign. */ .board-column-expanded-header:has(.fb-column-total) { flex-wrap: wrap; } .fb-column-total { flex-basis: 100%; margin-top: 2px; font-weight: bold; font-size: 0.95em; color: #000; } /* Keep the signed amount together ("-R$450,00"); a break before it (after "Total:") is fine. */ .fb-amount { white-space: nowrap; } .fb-total-debit { color: #b94a48; } .fb-total-credit { color: #468847; } .fb-total-zero { color: #777; } /* Line-3 money badge on board cards. Its own background guarantees contrast on any card color. */ .fb-line { margin: 2px 0 4px; line-height: 1.4; } .fb-badge { display: inline-block; padding: 1px 6px; border-radius: 3px; color: #fff; font-weight: bold; font-size: 1.1em; white-space: nowrap; } .fb-badge-debit { background: #b94a48; } .fb-badge-credit { background: #468847; } .fb-installments { margin-left: 6px; color: #000; font-size: 1.05em; } /* Task-form finance fieldset (middle column). */ .fb-form-directions { margin-bottom: 8px; } .fb-form-inline { display: inline-block; margin-right: 14px; cursor: pointer; } .fb-form-installments { display: flex; align-items: center; } .fb-form-installments .fb-form-num { width: 5em; } .fb-form-installments span { margin: 0 8px; }