import streamlit as st from core.constants import COLOR_PRIMARY, COLOR_HEADER def fmt_num(n): if n >= 1000: return f"{n:,}" return str(n) def metric_card(col, label, value, suffix=""): col.markdown( f"""
{label}
{value}
{f'
{suffix}
' if suffix else ''}
""", unsafe_allow_html=True, ) def styled_header(title, subtitle=""): st.markdown( f"""
{title}
{f'
{subtitle}
' if subtitle else ''}
""", unsafe_allow_html=True, ) def section_header(text): st.markdown( f"

{text}

", unsafe_allow_html=True, )