/* Disciplina — mobile-first styles on top of Bootstrap 5 */
:root {
    --brand: #0f766e;
    --brand-dark: #115e59;
    --brand-soft: #ccfbf1;
    --bottom-nav-height: 64px;
}

body {
    background: #f4f6f8;
    -webkit-tap-highlight-color: transparent;
}

.bg-brand { background-color: var(--brand) !important; }
.text-brand { color: var(--brand) !important; }

.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
}

.btn-outline-brand {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-bg: var(--brand-dark);
}

a { color: var(--brand); }

/* ---------- Mobile header + bottom navigation ---------- */
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1rem;
    padding-top: calc(.75rem + env(safe-area-inset-top));
    position: sticky;
    top: 0;
    z-index: 1020;
}

.has-bottom-nav main {
    padding-bottom: calc(var(--bottom-nav-height) + 1.5rem + env(safe-area-inset-bottom)) !important;
}

@media (min-width: 768px) {
    .has-bottom-nav main { padding-bottom: 2rem !important; }
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1030;
}

.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6b7280;
    text-decoration: none;
    font-size: .7rem;
    gap: 2px;
}

.bottom-nav a i { font-size: 1.3rem; }
.bottom-nav a.active { color: var(--brand); font-weight: 600; }

.bottom-nav-add {
    width: 56px;
    height: 56px;
    margin-top: -28px;
    border-radius: 50%;
    border: 4px solid #f4f6f8;
    background: var(--brand);
    color: #fff;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 118, 110, .35);
}

.quick-add { height: auto !important; border-radius: 1rem 1rem 0 0; }
.quick-add-list .dropdown-item {
    padding: .9rem .5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid #f1f1f1;
}
.quick-add-list .dropdown-item i { width: 1.8rem; display: inline-block; }

/* ---------- Guest pages ---------- */
.guest-body { background: linear-gradient(180deg, var(--brand-soft) 0%, #f4f6f8 45%); min-height: 100vh; }
.guest-container { max-width: 440px; padding-top: 3rem; padding-bottom: 3rem; }
.brand-mark {
    width: 56px; height: 56px; border-radius: 16px; margin: 0 auto;
    background: var(--brand); color: #fff; font-size: 1.8rem;
    display: flex; align-items: center; justify-content: center;
}

/* ---------- Components ---------- */
.card { border-radius: .9rem; }
.progress-thin { height: 6px; }
.progress-bar { width: 0; transition: width .4s ease; }

.metric {
    display: flex;
    flex-direction: column;
    padding: .6rem .75rem;
    background: #fff;
    border-radius: .75rem;
    height: 100%;
}
.metric-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; }
.metric-value { font-size: clamp(.9rem, 4vw, 1.1rem); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-hint { font-size: .72rem; color: #9ca3af; }
.metric-grid .metric { background: #f8fafc; }
.metric-grid .card.metric { background: #fff; }
.metric-link { cursor: pointer; transition: box-shadow .15s ease, transform .15s ease; }
.metric-link:hover { box-shadow: 0 .35rem 1rem rgb(15 23 42 / 10%) !important; transform: translateY(-1px); }
.metric-link:focus-visible { outline: 3px solid #0f766e; outline-offset: 2px; }

.chart-box { position: relative; height: 240px; }
.chart-mode-toolbar { display: flex; justify-content: flex-end; margin: 0 0 .35rem; }
.chart-mode-trigger { display: inline-flex; width: 2.1rem; height: 1.9rem; align-items: center; justify-content: center; padding: .1rem .25rem; font-size: .75rem; }
.chart-mode-trigger::after { margin-left: .2rem; }
.chart-mode-trigger:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.chart-mode-menu { min-width: 2.6rem; padding: .2rem; }
.chart-mode-option { display: flex; width: 2.2rem; height: 2.2rem; align-items: center; justify-content: center; padding: .35rem; }
.chart-mode-option i { font-size: .95rem; }
.chart-box--doughnut { height: 320px; }
.chart-box-sm { height: 160px; }
.chart-box-sm.chart-box--doughnut { height: 300px; }
.net-worth-chart { height: 280px; }
.recurring-projection-chart { height: 270px; }
.net-worth-range-input { width: 150px; }
.recurring-summary-tile {
    display: grid;
    grid-template-columns: 2.25rem 1fr;
    align-items: center;
    column-gap: .65rem;
    row-gap: .2rem;
    min-height: 78px;
    padding: .75rem;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    background: #fff;
}
.recurring-summary-icon {
    grid-row: span 2;
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    font-size: 1.1rem;
}
.recurring-summary-tile strong { font-size: 1.05rem; }
.recurring-summary-tile--income { border-left: 3px solid #15803d; }
.recurring-summary-tile--income .recurring-summary-icon { color: #15803d; background: #dcfce7; }
.recurring-summary-tile--expense { border-left: 3px solid #dc2626; }
.recurring-summary-tile--expense .recurring-summary-icon { color: #dc2626; background: #fee2e2; }
.recurring-summary-tile--margin { border-left: 3px solid var(--brand); }
.recurring-summary-tile--margin .recurring-summary-icon { color: var(--brand); background: var(--brand-soft); }
.projection-month-item {
    min-height: 112px;
    padding: .65rem;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    background: #fff;
}
.projection-month-item > strong { display: block; font-size: .82rem; }
.projection-month-item .small { display: flex; justify-content: space-between; gap: .3rem; font-size: .72rem; }
.projection-month-item .small span { white-space: nowrap; }
.projection-month-net { display: flex; justify-content: space-between; gap: .3rem; margin-top: .35rem; padding-top: .3rem; border-top: 1px solid #e5e7eb; font-size: .72rem; }
.projection-month-net strong { white-space: nowrap; }
.card-spending-chart--compact { height: 220px; }
.card-spending-chart--medium { height: 380px; }
.card-spending-chart--tall { height: 560px; }
.card-spending-chart--compact.chart-box--doughnut { height: 390px; }
.card-spending-chart--medium.chart-box--doughnut { height: 480px; }
.card-spending-chart--tall.chart-box--doughnut { height: 560px; }
.card-spending-total { display: flex; min-height: 54px; flex-direction: column; justify-content: center; gap: .15rem; padding: .35rem .65rem; border-left: 3px solid #64748b; }
.card-spending-total strong { font-size: 1.05rem; }
.card-spending-total--fixed { border-color: #b91c1c; }
.card-spending-total--variable { border-color: #ea580c; }
.card-spending-total--debt { border-color: #2563eb; }
.card-spending-fixed { color: #b91c1c; }
.card-spending-variable { color: #c2410c; }
.card-spending-debt { color: #1d4ed8; }
.card-spending-account { display: flex; min-height: 64px; align-items: center; gap: .65rem; padding: .6rem .7rem; border: 1px solid #e5e7eb; border-radius: .4rem; color: inherit; text-decoration: none; background: #fff; }
.card-spending-account:hover { border-color: #9ca3af; background: #f9fafb; }
.card-spending-account-icon { display: inline-flex; width: 2rem; height: 2rem; flex: 0 0 2rem; align-items: center; justify-content: center; border-radius: .4rem; color: #475569; background: #f1f5f9; }
.card-spending-account > strong { font-size: .9rem; }
.card-spending-account .small { font-size: .75rem; }
.category-chart { height: 440px; }
.category-chart.chart-box--doughnut { height: 520px; }
.annual-breakdown-chart--compact { height: 300px; }
.annual-breakdown-chart--medium { height: 500px; }
.annual-breakdown-chart--tall { height: 720px; }
.annual-breakdown-chart--compact.chart-box--doughnut { height: 360px; }
.annual-breakdown-chart--medium.chart-box--doughnut { height: 540px; }
.annual-income-card .card-body { display: flex; flex-direction: column; }
.annual-income-chart { flex: 1 1 auto; width: 100%; }
.shared-share-input { max-width: 130px; }

@media (max-width: 575.98px) {
    .net-worth-chart { height: 230px; }
    .recurring-projection-chart { height: 240px; }
    .net-worth-range-input { width: 100%; }
}

.amount-input { font-size: 1.6rem; font-weight: 600; }

.module-option { cursor: pointer; border: 2px solid transparent; }
.module-option:has(input:checked) { border-color: var(--brand); background: #f0fdfa; }

.wizard-steps { display: flex; gap: .75rem; }
.wizard-step { display: flex; align-items: center; gap: .35rem; color: #9ca3af; text-decoration: none; font-size: .85rem; }
.wizard-dot {
    width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid currentColor;
    display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 600;
}
.wizard-step.current { color: var(--brand); font-weight: 600; }
.wizard-step.done { color: var(--brand-dark); }
.wizard-step.done .wizard-dot { background: var(--brand); color: #fff; border-color: var(--brand); }

.tx-void { opacity: .55; }
.tx-void .fw-semibold { text-decoration: line-through; }

.kind-tabs .nav-link { border-radius: .6rem; }
.kind-tabs .nav-link.active:not(.bg-danger):not(.bg-success) { background: var(--brand); }

.debug-trace { white-space: pre-wrap; max-height: 60vh; overflow: auto; }

details > summary { cursor: pointer; }
.provider-logo {
    width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid #e5e7eb; border-radius: 8px;
    background: #fff; display: inline-flex; align-items: center; justify-content: center;
    color: #374151; font-size: .85rem; font-weight: 700;
}
.provider-logo img { width: 22px; height: 22px; object-fit: contain; }
.provider-suggestions {
    position: absolute; z-index: 1080; top: calc(100% + 4px); left: 0; right: 0;
    max-height: 320px; overflow-y: auto;
}
.provider-suggestions [hidden] { display: none; }
.min-w-0 { min-width: 0; }
.recurring-card-grid .card { min-height: 220px; }
.upcoming-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.upcoming-card-grid .card { min-width: 0; }
.upcoming-compact-card .card-body { padding: .8rem; }
.upcoming-card-actions { display: flex; align-items: stretch; gap: .4rem; margin-top: .7rem; padding-top: .65rem; border-top: 1px solid #eef0f2; }
.upcoming-card-actions form { display: flex; margin: 0; }
.upcoming-header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.upcoming-header p { font-size: .88rem; }
.upcoming-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.upcoming-metric { display: grid; min-width: 0; gap: .35rem; padding: .9rem 1rem; border: 1px solid #e5e7eb; border-top: 3px solid var(--upcoming-accent); border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
.upcoming-metric--pending { --upcoming-accent: #0f766e; }
.upcoming-metric--overdue { --upcoming-accent: #c2413a; }
.upcoming-metric--archived { --upcoming-accent: #15803d; }
.upcoming-metric--expense { --upcoming-accent: #c2413a; }
.upcoming-metric > span { display: flex; align-items: center; gap: .4rem; color: #475569; font-size: .76rem; font-weight: 600; }
.upcoming-metric > span i { color: var(--upcoming-accent); font-size: 1rem; }
.upcoming-metric > strong { font-size: 1.55rem; line-height: 1.05; }
.upcoming-metric-amount { display: grid; gap: .1rem; }
.upcoming-metric-amount > span { font-size: 1.25rem; overflow-wrap: anywhere; }
.upcoming-metric > small { color: #64748b; font-size: .72rem; }
.upcoming-tabs { display: flex; gap: .35rem; padding: .3rem; border: 1px solid #e5e7eb; border-radius: 8px; background: #f8fafc; }
.upcoming-tab { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.45rem; padding: .45rem .75rem; border-radius: 6px; color: #475569; font-size: .82rem; font-weight: 600; text-decoration: none; }
.upcoming-tab:hover { background: #fff; color: #0f766e; }
.upcoming-tab.is-active { background: #fff; color: #0f766e; box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.upcoming-tab-count { display: inline-grid; min-width: 1.3rem; height: 1.3rem; place-items: center; padding-inline: .25rem; border-radius: 1rem; background: #edf2f5; color: #475569; font-size: .68rem; }
.upcoming-tab.is-active .upcoming-tab-count { background: #e5f5f1; color: #0f766e; }
.upcoming-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.upcoming-item-card { display: flex; min-width: 0; flex-direction: column; padding: .9rem; border: 1px solid #e5e7eb; border-top: 3px solid var(--upcoming-accent); border-radius: 8px; background: #fff; box-shadow: 0 3px 12px rgba(15,23,42,.055); }
.upcoming-item-card--income { --upcoming-accent: #15803d; }
.upcoming-item-card--expense { --upcoming-accent: #c2413a; }
.upcoming-item-card--overdue { --upcoming-accent: #b42318; }
.upcoming-item-card--archived { --upcoming-accent: #15803d; }
.upcoming-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.upcoming-item-top .provider-logo { width: 34px; height: 34px; flex-basis: 34px; }
.upcoming-kind-label, .upcoming-detail-label { color: #64748b; font-size: .7rem; }
.upcoming-item-top .badge { flex: 0 0 auto; font-size: .66rem; }
.upcoming-item-main { display: flex; align-items: end; justify-content: space-between; gap: .7rem; margin-top: .9rem; padding-top: .7rem; border-top: 1px solid #eef0f2; }
.upcoming-item-main > div:first-child { display: grid; gap: .15rem; }
.upcoming-amount { font-size: 1.2rem; line-height: 1.15; }
.upcoming-date { display: flex; align-items: center; gap: .35rem; color: #475569; font-size: .75rem; white-space: nowrap; }
.upcoming-date i { color: var(--upcoming-accent); }
.upcoming-item-note { display: flex; align-items: flex-start; gap: .35rem; margin-top: .55rem; color: #64748b; font-size: .7rem; line-height: 1.35; }
.upcoming-item-note i { color: var(--upcoming-accent); }
.upcoming-item-card .upcoming-card-actions { margin-top: auto; padding-top: .7rem; }
.upcoming-empty { display: grid; justify-items: center; gap: .4rem; padding: 2.5rem 1rem; border: 1px dashed #cbd5e1; border-radius: 8px; background: #fff; text-align: center; }
.upcoming-empty-icon { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; margin-bottom: .3rem; border-radius: 50%; background: #e8f5f2; color: #0f766e; font-size: 1.2rem; }
.upcoming-archive-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.upcoming-archive-filters { display: flex; width: fit-content; gap: .2rem; padding: .22rem; border: 1px solid #e5e7eb; border-radius: 7px; background: #f8fafc; }
.upcoming-archive-filter { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .65rem; border-radius: 5px; color: #475569; font-size: .78rem; font-weight: 600; text-decoration: none; }
.upcoming-archive-filter:hover { background: #fff; color: #0f766e; }
.upcoming-archive-filter.is-active { background: #fff; color: #0f766e; box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.upcoming-archive-list, .upcoming-archive-declared-list { display: grid; gap: .35rem; padding: .25rem .8rem .7rem; }
.upcoming-archive-declared-card { gap: .3rem; padding: .45rem .6rem; border-top-width: 2px; border-radius: .5rem; box-shadow: none; }
.upcoming-archive-declared-card .provider-logo { width: 28px; height: 28px; flex-basis: 28px; }
.upcoming-archive-declared-card .upcoming-kind-label, .upcoming-archive-declared-card .upcoming-detail-label { font-size: .65rem; }
.upcoming-archive-declared-card .upcoming-item-top .badge { font-size: .6rem; }
.upcoming-archive-declared-card .upcoming-item-main { align-items: center; margin-top: .25rem; padding-top: .3rem; }
.upcoming-archive-declared-card .upcoming-amount { font-size: .86rem; }
.upcoming-archive-declared-card .upcoming-date { font-size: .68rem; }
.upcoming-archive-declared-card .upcoming-item-note { margin-top: .2rem; font-size: .64rem; }
.upcoming-year-filter { display: flex; align-items: end; gap: .45rem; }
.upcoming-year-filter .form-select { width: 7rem; }
.context-note-success { color: #14532d; background: #f0fdf4; border-color: #16a34a; }
.finance-main { width: 100%; max-width: none; margin-inline: auto; }
.finance-shell, .finance-workspace { min-width: 0; }
.finance-mobile-bar {
    min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .55rem .7rem; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff;
}
.finance-mobile-bar > div { min-width: 0; }
.finance-mobile-bar strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finance-mobile-module { display: block; color: #6b7280; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.finance-sidebar-title {
    display: flex; align-items: center; gap: .55rem; color: #111827; text-decoration: none;
    font-size: 1.05rem; font-weight: 700; padding: .2rem .55rem .8rem;
}
.finance-sidebar-title i { color: var(--brand); }
.finance-nav-groups { display: grid; gap: .9rem; padding-top: .9rem; }
.finance-nav-group h3 {
    margin: 0 0 .25rem; padding: 0 .55rem; color: #6b7280; font-size: .66rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.finance-nav-group nav { display: grid; gap: .12rem; }
.finance-nav-disclosure { border-bottom: 1px solid #eef0f2; padding-bottom: .35rem; }
.finance-nav-disclosure > summary {
    padding: .5rem .55rem; color: #4b5563; font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; list-style: none;
}
.finance-nav-disclosure > summary::-webkit-details-marker { display: none; }
.finance-nav-disclosure > summary::after { content: '\F285'; float: right; font-family: 'bootstrap-icons'; transition: transform .15s ease; }
.finance-nav-disclosure[open] > summary::after { transform: rotate(90deg); }
.finance-nav-items { display: grid; gap: .12rem; }
.finance-nav-link {
    min-height: 36px; display: flex; align-items: center; gap: .6rem; padding: .42rem .55rem;
    border-left: 3px solid transparent; border-radius: 0 5px 5px 0; color: #374151;
    text-decoration: none; font-size: .84rem;
}
.finance-nav-link i { width: 1.15rem; color: #6b7280; text-align: center; }
.finance-nav-link:hover { color: var(--brand-dark); background: #f0fdfa; }
.finance-nav-link.active { border-left-color: var(--brand); color: var(--brand-dark); background: #ccfbf1; font-weight: 600; }
.finance-nav-link.active i { color: var(--brand); }
.finance-menu-offcanvas { --bs-offcanvas-width: min(88vw, 330px); }
.account-list-card { border-left: 3px solid transparent !important; }
.account-list-card:hover { border-left-color: var(--brand) !important; }
.finance-account-section { display: grid; gap: .65rem; padding-top: .9rem; border-top: 1px solid #e5e7eb; }
.finance-account-section + .finance-account-section { margin-top: 1.25rem; }
.finance-account-section-heading { display: flex; min-height: 2.5rem; align-items: center; gap: .65rem; }
.finance-account-section-icon { display: inline-flex; width: 2.25rem; height: 2.25rem; flex: 0 0 2.25rem; align-items: center; justify-content: center; border-radius: 6px; color: #15803d; background: #dcfce7; }
.finance-account-section--liability .finance-account-section-icon { color: #dc2626; background: #fee2e2; }
.finance-summary-account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: .55rem; }
.finance-account-tile { display: grid; min-width: 0; min-height: 4.35rem; grid-template-columns: 2.1rem minmax(0, 1fr) auto .75rem; align-items: center; gap: .6rem; padding: .62rem .7rem; border: 1px solid #e3e8ed; border-left: 3px solid #15803d; border-radius: 8px; color: inherit; text-decoration: none; background: #fff; box-shadow: 0 2px 7px rgba(15, 23, 42, .045); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.finance-account-tile:hover,.finance-account-tile:focus-visible { border-color: #a9cec7; border-left-color: #15803d; color: inherit; box-shadow: 0 4px 11px rgba(15, 23, 42, .085); transform: translateY(-1px); }
.finance-account-tile:focus-visible { outline: 2px solid #137768; outline-offset: 2px; }
.finance-account-tile--liability { border-left-color: #dc2626; }
.finance-account-tile--liability:hover { border-left-color: #dc2626; }
.finance-account-tile-icon { display: inline-flex; width: 2.1rem; height: 2.1rem; align-items: center; justify-content: center; border-radius: 6px; color: #15803d; background: #f0fdf4; }
.finance-account-tile--liability .finance-account-tile-icon { color: #dc2626; background: #fef2f2; }
.finance-account-tile-copy { display: grid; min-width: 0; gap: .12rem; }
.finance-account-tile-copy > strong { overflow: hidden; font-size: .82rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.finance-account-tile-copy > small { overflow: hidden; color: #64748b; font-size: .65rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.finance-account-tile-balance { display: grid; justify-items: end; gap: .1rem; min-width: 0; text-align: right; }
.finance-account-tile-balance > small { max-width: 12rem; color: #64748b; font-size: .58rem; line-height: 1.2; }
.finance-account-tile .finance-account-balance { color: #176b4a; font-size: .84rem; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.finance-account-tile .finance-account-balance.text-danger { color: #b42318 !important; }
.finance-account-chevron { color: #94a3b8; font-size: .72rem; }
.financing-schedule { overflow: hidden; border: 1px solid #e5e7eb !important; border-radius: .65rem !important; }
.financing-schedule-heading { background: #f8fafc; border-bottom: 1px solid #e5e7eb; }
.financing-schedule-range { padding: .3rem .55rem; border-radius: .35rem; color: #475569; background: #e2e8f0; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.financing-schedule-table { font-size: .82rem; }
.financing-schedule-table thead th { padding: .65rem .7rem; color: #64748b; background: #f8fafc; font-size: .68rem; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.financing-schedule-table tbody td { padding: .55rem .7rem; border-color: #eef0f2; }
.financing-schedule-table tbody tr { border-left: 3px solid transparent; }
.financing-row--historical { background: #f0fdfa; border-left-color: #0f766e !important; }
.financing-row--paid { border-left-color: #16a34a !important; }
.financing-row--partial { background: #fffbeb; border-left-color: #d97706 !important; }
.financing-row--overdue { background: #fff7f7; border-left-color: #dc2626 !important; }
.financing-row--skipped { color: #64748b; }
.financing-due-date { white-space: nowrap; font-weight: 600; }
.financing-status { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .45rem; border-radius: 999px; font-size: .69rem; font-weight: 650; white-space: nowrap; }
.financing-status--historical { color: #115e59; background: #ccfbf1; }
.financing-status--paid { color: #166534; background: #dcfce7; }
.financing-status--partial { color: #92400e; background: #fef3c7; }
.financing-status--skipped { color: #475569; background: #e2e8f0; }
.financing-status--overdue { color: #991b1b; background: #fee2e2; }
.financing-status--pending { color: #1e40af; background: #dbeafe; }
.financing-status-note { display: block; margin-top: .18rem; color: #64748b; font-size: .68rem; }
.financing-amount, .financing-balance { font-variant-numeric: tabular-nums; white-space: nowrap; }
.financing-amount { font-weight: 600; }
.financing-secondary-amount { color: #64748b; font-variant-numeric: tabular-nums; white-space: nowrap; }
.financing-balance { color: #0f172a; font-weight: 700; }
@media (max-width: 767.98px) {
    .financing-schedule-scroll { overflow: visible; }
    .financing-schedule-table, .financing-schedule-table tbody { display: block; width: 100%; }
    .financing-schedule-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .financing-schedule-table tbody { padding: .5rem; }
    .financing-schedule-table tbody tr {
        display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-areas: "number due status" "payment interest capital" "balance balance balance";
        gap: .45rem .55rem; margin-bottom: .5rem; padding: .65rem;
        border: 1px solid #e2e8f0; border-left: 3px solid #cbd5e1; border-radius: .45rem;
    }
    .financing-schedule-table tbody tr:last-child { margin-bottom: 0; }
    .financing-schedule-table tbody td { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: .1rem; padding: 0; border: 0; text-align: left !important; font-size: .76rem; }
    .financing-schedule-table tbody td::before { content: attr(data-label); color: #64748b; font-size: .63rem; font-weight: 600; }
    .financing-schedule-table tbody td:nth-child(1) { grid-area: number; }
    .financing-schedule-table tbody td:nth-child(2) { grid-area: due; }
    .financing-schedule-table tbody td:nth-child(3) { grid-area: status; }
    .financing-schedule-table tbody td:nth-child(4) { grid-area: payment; }
    .financing-schedule-table tbody td:nth-child(5) { grid-area: interest; }
    .financing-schedule-table tbody td:nth-child(6) { grid-area: capital; }
    .financing-schedule-table tbody td:nth-child(7) { grid-area: balance; display: flex; flex-direction: row; justify-content: space-between; align-items: baseline; padding-top: .35rem; border-top: 1px solid #e2e8f0; }
    .financing-schedule-table tbody td:nth-child(7)::before { font-size: .68rem; }
    .financing-schedule-table .payment-number { width: 1.65rem; height: 1.65rem; flex-basis: 1.65rem; }
    .financing-schedule-table .financing-status-note { max-width: 100%; font-size: .61rem; }
}
@media (min-width: 992px) {
    .finance-main { padding-inline: clamp(.75rem, 1.25vw, 1.5rem) !important; }
    .finance-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: clamp(1.5rem, 2vw, 2.25rem); align-items: start; }
    .finance-sidebar {
        position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto;
        padding: .75rem 1.25rem; border-right: 1px solid #dfe3e8;
    }
}
.forecast-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.forecast-eyebrow { display: inline-flex; align-items: center; gap: .35rem; color: var(--brand-dark); font-size: .72rem; font-weight: 700; text-transform: uppercase; margin-bottom: .35rem; }
.forecast-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.forecast-metric { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: 1rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
.forecast-metric > span { display: flex; align-items: center; gap: .4rem; color: #475569; font-size: .76rem; font-weight: 600; }
.forecast-metric > span i { color: var(--brand); font-size: 1rem; }
.forecast-metric > strong { font-size: clamp(1.15rem, 1.6vw, 1.55rem); line-height: 1.15; overflow-wrap: anywhere; }
.forecast-metric > small { color: #64748b; font-size: .72rem; line-height: 1.35; }
.forecast-metric--projected { border-top: 3px solid var(--brand); }
.forecast-chart-panel { overflow: visible; }
.forecast-chart-caption { display: inline-flex; align-items: center; gap: .35rem; color: #64748b; font-size: .75rem; }
.forecast-balance-chart { height: 290px; }
.forecast-period { position: relative; overflow: hidden; padding: 1rem; background: #fff; border: 1px solid #e5e7eb; border-top: 3px solid var(--forecast-accent, var(--brand)); border-radius: 8px; box-shadow: 0 3px 12px rgba(15,23,42,.055); }
.forecast-period--1 { --forecast-accent: #0f766e; }
.forecast-period--2 { --forecast-accent: #2563eb; }
.forecast-period--3 { --forecast-accent: #15803d; }
.forecast-period--4 { --forecast-accent: #b45309; }
.forecast-period--5 { --forecast-accent: #c2413a; }
.forecast-period--6 { --forecast-accent: #475569; }
.forecast-period-heading { display: flex; align-items: center; gap: .65rem; }
.forecast-period-heading > i { margin-left: auto; color: var(--forecast-accent); font-size: 1.15rem; }
.forecast-step { width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 2rem; color: var(--forecast-accent); background: color-mix(in srgb, var(--forecast-accent) 10%, white); border-radius: 50%; font-size: .68rem; font-weight: 800; }
.forecast-horizon-title { display: grid; gap: .12rem; }
.forecast-horizon-title strong { font-size: .92rem; line-height: 1.1; }
.forecast-horizon-title span { color: #64748b; font-size: .75rem; }
.forecast-period-total { display: grid; gap: .18rem; margin: .9rem 0 .8rem; padding: .85rem; background: #f8fafc; border-radius: 6px; }
.forecast-period-total > span { color: #64748b; font-size: .76rem; }
.forecast-period-total > strong { font-size: 1.55rem; line-height: 1.2; overflow-wrap: anywhere; }
.forecast-period-total > small { font-size: .72rem; font-weight: 600; }
.forecast-breakdown-label { margin-bottom: .1rem; color: #64748b; font-size: .67rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.forecast-breakdown { display: grid; gap: 0; margin: 0; }
.forecast-breakdown > div { display: flex; justify-content: space-between; gap: .6rem; padding: .48rem 0; border-top: 1px solid #eef0f2; font-size: .77rem; }
.forecast-breakdown dt { display: inline-flex; align-items: center; gap: .35rem; color: #64748b; font-weight: 400; }
.forecast-breakdown dt i { width: .9rem; color: var(--forecast-accent); text-align: center; }
.forecast-breakdown dd { margin: 0; color: #334155; font-weight: 600; text-align: right; white-space: nowrap; }
.forecast-breakdown .is-income dd { color: #15803d; }
.forecast-breakdown .is-expense dd, .forecast-breakdown .is-average dd { color: #c2413a; }
.forecast-period-footnote { display: flex; align-items: center; gap: .3rem; margin-top: .4rem; padding-top: .45rem; border-top: 1px solid #eef0f2; color: #64748b; font-size: .67rem; line-height: 1.35; }
@media (max-width: 767.98px) {
    .forecast-header { align-items: flex-start; flex-direction: column; }
    .forecast-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
    .forecast-metric { padding: .75rem; }
    .forecast-metric > span { font-size: .7rem; }
    .forecast-metric > small { font-size: .67rem; }
    .forecast-balance-chart { height: 230px; }
    .forecast-period { padding: .85rem; }
    .forecast-period-total > strong { font-size: 1.4rem; }
}
.context-note {
    display: flex; align-items: flex-start; gap: .65rem; padding: .7rem .8rem;
    border-left: 4px solid; border-radius: 6px; font-size: .79rem; line-height: 1.35;
}
.context-note > i { font-size: 1.15rem; margin-top: .05rem; }
.context-note > div { display: grid; gap: .15rem; }
.context-note strong { font-size: .82rem; }
.context-note-info { color: #134e4a; background: #ecfdf5; border-color: #0f766e; }
.context-note-warning { color: #78350f; background: #fffbeb; border-color: #f59e0b; }
.finance-filter-bar { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .2rem; }
.transaction-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.transaction-lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-items: start; }
.transaction-lane { min-width: 0; }
.transaction-lane-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .45rem; }
.transaction-lane-list { display: grid; gap: .45rem; }
.transaction-compact-card .card-body { padding: .7rem .8rem; }
.transaction-other-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.transaction-card-actions { display: flex; justify-content: flex-end; gap: .15rem; border-top: 1px solid #eef0f2; padding-top: .25rem; }
.transaction-icon-action { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; text-decoration: none; }
.transaction-icon-action:hover { color: var(--brand-dark) !important; background: #f0fdfa; }
.transaction-action-label { display: none; }
.payment-calendar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.payment-number { width: 2rem; height: 2rem; flex: 0 0 2rem; border-radius: 50%; background: #f0fdfa; color: var(--brand-dark); display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; }
.activity-date { width: 145px; }
.activity-log-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.habit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.habit-card { border-top: 4px solid var(--brand) !important; }
.habit-card.habit-blue { border-top-color: #2563eb !important; }.habit-card.habit-red { border-top-color: #dc2626 !important; }.habit-card.habit-amber { border-top-color: #d97706 !important; }.habit-card.habit-violet { border-top-color: #7c3aed !important; }
.habit-icon { width: 34px; height: 34px; flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #f0fdfa; color: var(--brand); }
.habit-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .2rem; color: #9ca3af; font-size: .68rem; }.habit-day i { font-size: 1rem; }.habit-day.done { color: #15803d; }.habit-day.skipped { color: #6b7280; }
.habit-calendar { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: .25rem; }
.habit-calendar-day span { font-size: .65rem; }
@media (max-width: 1199.98px) { .upcoming-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
    .upcoming-card-grid { grid-template-columns: 1fr; }
    .upcoming-header { align-items: flex-start; flex-direction: column; }
    .upcoming-overview { gap: .45rem; }
    .upcoming-metric { padding: .7rem; }
    .upcoming-metric > span { font-size: .68rem; }
    .upcoming-metric > small { font-size: .63rem; }
    .upcoming-metric > strong { font-size: 1.3rem; }
    .upcoming-metric-amount > span { font-size: .96rem; }
    .upcoming-tabs { display: grid; grid-template-columns: 1fr 1fr; }
    .upcoming-tab { justify-content: center; gap: .3rem; padding-inline: .4rem; font-size: .72rem; }
    .upcoming-archive-toolbar { align-items: flex-start; flex-direction: column; }
    .upcoming-archive-filters { width: 100%; }
    .upcoming-archive-filter { flex: 1; justify-content: center; padding-inline: .4rem; }
    .upcoming-archive-list, .upcoming-archive-declared-list { padding-inline: .65rem; }
    .upcoming-year-filter { width: 100%; }
    .upcoming-year-filter .form-select { flex: 1; }
}
@media (max-width: 767.98px) { .transaction-card-grid, .transaction-lanes, .transaction-other-list, .payment-calendar-grid { grid-template-columns: 1fr; } }
@media (max-width: 767.98px) { .activity-log-grid { grid-template-columns: 1fr; } }
@media (max-width: 991.98px) { .habit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .habit-grid { grid-template-columns: 1fr; } }
.setup-card:hover { box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .08) !important; }

/* Finance activity, budgets, and projects */
.finance-kicker { display: flex; align-items: center; gap: .4rem; color: var(--brand); font-size: .7rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.movement-header, .budget-page-header, .project-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.movement-heading, .budget-page-header > div:first-child, .project-page-header > div:first-child { min-width: 0; }
.movement-actions, .budget-header-actions, .project-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
.movement-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.movement-summary-card { display: grid; min-width: 0; gap: .4rem; padding: 1rem 1.1rem; border: 1px solid var(--bs-border-color); border-radius: .65rem; background: var(--bs-body-bg); box-shadow: 0 .15rem .5rem rgba(17, 24, 39, .04); }
.movement-summary-card > span { display: flex; align-items: center; gap: .4rem; color: var(--bs-secondary-color); font-size: .78rem; font-weight: 650; }
.movement-summary-card > span i { font-size: 1rem; }
.movement-summary-card > strong { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: 1.35rem; line-height: 1.2; }
.movement-summary-card > small { color: var(--bs-secondary-color); font-size: .72rem; }
.movement-summary-card--income { border-top: 3px solid #16834a; }
.movement-summary-card--income > span i { color: #16834a; }
.movement-summary-card--expense { border-top: 3px solid #c64242; }
.movement-summary-card--expense > span i { color: #c64242; }
.movement-summary-card--count { border-top: 3px solid #0f766e; }
.movement-summary-card--count > span i { color: #0f766e; }
.movement-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .55rem; border: 1px solid var(--bs-border-color); border-radius: .6rem; background: var(--bs-body-bg); }
.movement-filter { display: flex; gap: .25rem; overflow-x: auto; }
.movement-filter-link { display: inline-flex; align-items: center; gap: .4rem; flex: 0 0 auto; padding: .5rem .75rem; border-radius: .4rem; color: var(--bs-secondary-color); font-size: .83rem; text-decoration: none; }
.movement-filter-link:hover { background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
.movement-filter-link.is-active { background: #e5f5f1; color: #075c54; font-weight: 700; }
.transaction-search-form { display: grid; gap: .75rem; }
.transaction-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: .65rem; }
.transaction-search-input { display: flex; align-items: center; gap: .65rem; min-width: 0; padding: .35rem .4rem .35rem .8rem; border: 1px solid var(--bs-border-color); border-radius: .6rem; background: var(--bs-body-bg); }
.transaction-search-input > i { flex: 0 0 auto; color: var(--bs-secondary-color); }
.transaction-search-input .form-control { min-width: 0; padding-inline: .1rem; border: 0; box-shadow: none; }
.transaction-search-input .form-control:focus { box-shadow: none; }
.transaction-search-input .btn { flex: 0 0 auto; }
.movement-period-picker { position: relative; min-width: 190px; }
.movement-period-picker > summary { display: flex; height: 100%; min-height: 3.25rem; align-items: center; gap: .6rem; padding: .45rem .7rem; border: 1px solid var(--bs-border-color); border-radius: .6rem; background: var(--bs-body-bg); cursor: pointer; list-style: none; }
.movement-period-picker > summary::-webkit-details-marker { display: none; }
.movement-period-picker > summary > i:first-child { color: #0f766e; }
.movement-period-picker > summary span { display: grid; min-width: 0; line-height: 1.2; }
.movement-period-picker > summary small { color: var(--bs-secondary-color); font-size: .68rem; }
.movement-period-picker > summary strong { overflow: hidden; font-size: .78rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.movement-period-chevron { margin-left: auto; color: var(--bs-secondary-color); font-size: .75rem; }
.movement-period-picker[open] .movement-period-chevron { transform: rotate(180deg); }
.movement-period-fields { position: absolute; z-index: 10; top: calc(100% + .35rem); right: 0; display: grid; grid-template-columns: auto minmax(145px, 1fr); align-items: center; gap: .5rem; width: min(440px, calc(100vw - 3rem)); padding: .8rem; border: 1px solid var(--bs-border-color); border-radius: .6rem; background: var(--bs-body-bg); box-shadow: 0 .5rem 1.25rem rgba(17, 24, 39, .12); }
.movement-period-fields .form-control { font-size: .85rem; }
.transaction-filter-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.movement-period-picker summary:focus-visible { outline: 3px solid rgba(15, 118, 110, .3); outline-offset: 2px; }
@media (max-width: 575.98px) { .transaction-search-row { grid-template-columns: 1fr; } .movement-period-picker { min-width: 0; } .movement-period-picker > summary { min-height: 2.8rem; } .movement-period-fields { position: static; width: 100%; margin-top: .35rem; box-shadow: none; } .transaction-filter-footer { align-items: flex-start; flex-direction: column; } }
.movement-tag-filter { display: flex; flex: 0 1 20rem; align-items: center; gap: .4rem; }
.movement-month { overflow: hidden; border: 1px solid var(--bs-border-color); border-radius: .7rem; background: var(--bs-body-bg); box-shadow: 0 .2rem .7rem rgba(17, 24, 39, .04); }
.movement-month-summary { position: relative; display: block; padding-right: 2.25rem; cursor: pointer; list-style: none; }
.movement-month-summary::-webkit-details-marker { display: none; }
.movement-month-summary::after { position: absolute; top: 1.35rem; right: 1rem; width: .55rem; height: .55rem; border-right: 2px solid var(--bs-secondary-color); border-bottom: 2px solid var(--bs-secondary-color); content: ""; transform: rotate(45deg); transition: transform .15s ease; }
.movement-month[open] > .movement-month-summary::after { transform: rotate(225deg); }
.movement-month-summary:focus-visible { outline: 3px solid #0f766e; outline-offset: -3px; }
.movement-month-content { padding-bottom: .25rem; }
.movement-month-header { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem 1rem .7rem; }
.movement-month-count { display: inline-flex; align-items: center; gap: .35rem; color: var(--bs-secondary-color); font-size: .75rem; }
.movement-month-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; padding: 0 1rem .8rem; }
.movement-month-totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .55rem .7rem; border-radius: .4rem; background: var(--bs-tertiary-bg); }
.movement-month-totals span { color: var(--bs-secondary-color); font-size: .74rem; }
.movement-month-totals strong { display: flex; flex-wrap: wrap; gap: .25rem .6rem; font-size: .86rem; text-align: right; }
.movement-month-lanes { padding: 0 1rem 1rem; }
.movement-other-group { padding: 0 1rem 1rem; }
.movement-other-group .transaction-lane-header { margin-top: .4rem; }
.transaction-lane-header strong { font-size: .8rem; }
.transaction-card-polished { overflow: hidden; border: 1px solid #e7ebef !important; border-left: 3px solid #94a3b8 !important; border-radius: .5rem !important; transition: box-shadow .15s ease, transform .15s ease; }
.transaction-card-polished:hover { box-shadow: 0 .35rem .9rem rgba(17, 24, 39, .09) !important; transform: translateY(-1px); }
.transaction-card-polished--expense { border-left-color: #c64242 !important; }
.transaction-card-polished--income { border-left-color: #16834a !important; }
.transaction-card-polished--transfer { border-left-color: #0f766e !important; }
.transaction-card-polished .card-body { padding: .72rem .8rem; }
.transaction-polished-main { display: flex; align-items: flex-start; gap: .65rem; min-width: 0; }
.transaction-polished-icon { display: grid; flex: 0 0 2rem; width: 2rem; height: 2rem; place-items: center; border-radius: .45rem; background: #f0f3f5; font-size: .95rem; }
.transaction-card-polished--expense .transaction-polished-icon { background: #fff0ef; }
.transaction-card-polished--income .transaction-polished-icon { background: #eaf7ef; }
.transaction-card-polished--transfer .transaction-polished-icon { background: #e8f5f2; }
.transaction-polished-content { flex: 1; min-width: 0; }
.transaction-polished-title-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.transaction-polished-title-row > span:first-child { min-width: 0; font-size: .86rem; }
.transaction-polished-amount { flex: 0 0 auto; font-size: .86rem; }
.transaction-polished-meta { display: flex; flex-wrap: wrap; gap: .15rem .55rem; margin-top: .2rem; color: var(--bs-secondary-color); font-size: .7rem; line-height: 1.35; }
.transaction-polished-meta > span + span::before { content: "·"; margin-right: .5rem; color: #a0aab3; }
.transaction-polished-tags { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .4rem; }
.transaction-detail-chip { display: inline-flex; align-items: center; gap: .25rem; max-width: 100%; padding: .16rem .4rem; border-radius: 999px; background: #f2f5f6; color: #4c5b63; font-size: .66rem; text-decoration: none; }
.transaction-detail-chip--cfdi { background: #e8f5ff; color: #17628c; }
.transaction-polished-status { display: flex; gap: .25rem; margin-top: .3rem; }
.transaction-card-polished .transaction-card-actions { display: flex; justify-content: flex-end; gap: .1rem; margin-top: .25rem !important; border-top: 1px solid #edf0f2; }
.transaction-utility-actions { display: flex; justify-content: flex-end; gap: .2rem; margin-top: .45rem; padding-top: .35rem; border-top: 1px solid #edf0f2; }
.transaction-utility-actions .transaction-icon-action { border: 1px solid #e8ecef; background: #f8fafb; color: #52616a; }
.transaction-utility-actions .transaction-icon-action:hover { border-color: #b9d9d3; background: #effaf7; }
.transaction-stream { display: grid; gap: .35rem; padding: 0 1rem 1rem; }
.transaction-card-dense .card-body { display: grid; grid-template-columns: 1.7rem minmax(0, 1fr) auto auto auto; grid-template-rows: auto auto auto auto auto; align-items: center; column-gap: .5rem; row-gap: .08rem; padding: .42rem .6rem; }
.transaction-card-dense .transaction-polished-main, .transaction-card-dense .transaction-polished-content { display: contents; }
.transaction-card-dense .transaction-polished-icon { flex-basis: 1.7rem; width: 1.7rem; height: 1.7rem; font-size: .8rem; }
.transaction-card-dense .transaction-polished-title-row > span:first-child, .transaction-card-dense .transaction-polished-amount { font-size: .8rem; }
.transaction-card-dense .transaction-polished-icon { grid-column: 1; grid-row: 1 / span 5; align-self: center; }
.transaction-card-dense .transaction-polished-title-row { grid-column: 2; grid-row: 1; align-items: center; }
.transaction-card-dense .transaction-polished-meta { grid-column: 2; grid-row: 2; margin: 0; font-size: .66rem; }
.transaction-card-dense .transaction-polished-tags { grid-column: 2; grid-row: 3; margin: 0; }
.transaction-card-dense .transaction-polished-status { grid-column: 2; grid-row: 4; margin: 0; }
.transaction-card-dense .transaction-polished-amount { grid-column: 3; grid-row: 1 / span 5; align-self: center; white-space: nowrap; }
.transaction-card-dense .transaction-detail-chip { padding: .1rem .32rem; font-size: .62rem; }
.transaction-card-dense .transaction-utility-actions, .transaction-card-dense .transaction-card-actions { grid-row: 1 / span 5; align-self: center; margin: 0 !important; padding: 0; border: 0; }
.transaction-card-dense .transaction-utility-actions { grid-column: 4; }
.transaction-card-dense .transaction-card-actions { grid-column: 5; }
.transaction-card-dense .transaction-utility-actions .transaction-icon-action, .transaction-card-dense .transaction-card-actions .transaction-icon-action { width: 27px; height: 27px; }
.transaction-card-dense .transaction-utility-actions, .transaction-card-dense .transaction-card-actions { gap: 0; }
.transaction-card-dense > .card-body > a { grid-column: 2; grid-row: 5; }
.cfdi-document-list { display: grid; gap: .35rem; }
.cfdi-document-row { display: block; }
.cfdi-document-row .card-body { grid-template-columns: 1.7rem minmax(0, 1fr) auto; }
.cfdi-document-row .transaction-polished-icon { grid-row: 1 / span 3; }
.cfdi-document-row .transaction-polished-title-row { grid-row: 1; }
.cfdi-document-row .transaction-polished-meta { grid-row: 2; min-width: 0; }
.cfdi-document-row .transaction-polished-meta > span:last-child { max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfdi-document-row .transaction-polished-tags { grid-row: 3; }
.cfdi-document-row .transaction-polished-amount { grid-column: 3; grid-row: 1 / span 3; }
@media (max-width: 767.98px) {
    .transaction-stream { padding-inline: .75rem; }
    .transaction-card-dense .card-body { grid-template-columns: 1.6rem minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto auto; }
    .transaction-card-dense .transaction-polished-icon { grid-column: 1; grid-row: 1 / span 4; }
    .transaction-card-dense .transaction-polished-title-row, .transaction-card-dense .transaction-polished-meta, .transaction-card-dense .transaction-polished-tags, .transaction-card-dense .transaction-polished-status { grid-column: 2; }
    .transaction-card-dense .transaction-polished-meta { grid-row: 2; }
    .transaction-card-dense .transaction-polished-tags { grid-row: 3; }
    .transaction-card-dense .transaction-polished-status { grid-row: 4; }
    .transaction-card-dense .transaction-polished-amount { grid-column: 3; grid-row: 1 / span 4; }
    .transaction-card-dense .transaction-utility-actions { grid-column: 1 / -1; grid-row: 5; justify-self: start; }
    .transaction-card-dense .transaction-card-actions { grid-column: 1 / -1; grid-row: 6; justify-content: flex-start; }
    .transaction-card-dense > .card-body > a { grid-column: 1 / -1; grid-row: 7; }
    .transaction-utility-actions, .transaction-card-actions { flex-wrap: wrap; justify-content: flex-start; gap: .25rem; }
    .transaction-icon-action { width: auto; min-width: 2.75rem; max-width: 7rem; height: auto; min-height: 2.75rem; gap: .25rem; padding: .35rem .45rem; border-radius: .4rem; white-space: normal; }
    .transaction-action-label { display: inline-block; width: auto; max-width: 5rem; overflow-wrap: anywhere; text-align: center; font-size: .62rem; line-height: 1.1; }
}
.movement-empty, .budget-empty, .project-empty { display: grid; justify-items: center; padding: 3rem 1.25rem; border: 1px dashed #cbd5dc; border-radius: .7rem; background: var(--bs-body-bg); text-align: center; }
.movement-empty-icon, .budget-empty-icon, .project-empty-icon { display: grid; width: 3rem; height: 3rem; margin-bottom: .85rem; place-items: center; border-radius: .7rem; background: #e8f5f2; color: var(--brand); font-size: 1.35rem; }
.budget-header-actions { align-items: center; }
.budget-month-switch { display: inline-flex; align-items: center; gap: .55rem; padding: .2rem; border: 1px solid var(--bs-border-color); border-radius: .45rem; background: var(--bs-body-bg); }
.budget-month-switch > span { min-width: 4rem; font-size: .8rem; font-weight: 700; text-align: center; }
.budget-overview { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border: 1px solid #c8e8df; border-radius: .65rem; background: linear-gradient(110deg, #effaf6, #f8fbfa 65%); }
.budget-overview-icon, .budget-overview-mark { display: grid; flex: 0 0 2.6rem; width: 2.6rem; height: 2.6rem; place-items: center; border-radius: .5rem; background: #d7f1e9; color: #087568; font-size: 1.1rem; }
.budget-overview-copy { display: grid; gap: .15rem; min-width: 0; }
.budget-overview-copy > strong { font-size: .95rem; }
.budget-overview-copy > small { color: var(--bs-secondary-color); font-size: .75rem; }
.budget-overview-mark { margin-left: auto; background: transparent; color: #4f9186; font-size: 1.35rem; }
.budget-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.budget-progress-card { display: grid; min-width: 0; gap: .48rem; padding: .9rem; border: 1px solid var(--bs-border-color); border-radius: .6rem; background: var(--bs-body-bg); color: var(--bs-body-color); text-decoration: none; box-shadow: 0 .15rem .5rem rgba(17, 24, 39, .04); transition: border-color .15s ease, box-shadow .15s ease; }
.budget-progress-card:hover { border-color: #9bcfc3; box-shadow: 0 .3rem .8rem rgba(17, 24, 39, .08); color: var(--bs-body-color); }
.budget-progress-card.is-over { border-top: 3px solid #c64242; }
.budget-progress-top { display: flex; align-items: center; justify-content: space-between; }
.budget-category-icon { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: .4rem; background: #edf7f4; color: var(--brand); }
.budget-category-name { font-size: .96rem; }
.budget-limit-row { display: flex; justify-content: space-between; gap: .5rem; color: var(--bs-secondary-color); font-size: .73rem; }
.budget-funding-split { display: grid; gap: .2rem; padding: .45rem .55rem; border-radius: .35rem; background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); font-size: .68rem; }
.budget-progress-track { height: .48rem; border-radius: 999px; background: #e8edef; }
.budget-progress-track .progress-bar { background: #0f8a74; }
.budget-progress-bottom { display: flex; justify-content: space-between; gap: .5rem; font-size: .73rem; }
.budget-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: .4rem; border-top: 1px solid #edf0f2; color: var(--brand); font-size: .7rem; font-weight: 650; }
.budget-modal { overflow: hidden; border: 0; border-radius: .7rem; box-shadow: 0 1rem 3rem rgba(17, 24, 39, .2); }
.budget-modal .modal-header { align-items: flex-start; border-bottom-color: #edf0f2; }
.budget-modal-hint { display: flex; align-items: flex-start; gap: .5rem; padding: .65rem .75rem; border-radius: .4rem; background: #eff8f5; color: #315c55; font-size: .76rem; line-height: 1.45; }
.budget-modal-hint i { color: var(--brand); }
.project-header-actions { max-width: 100%; }
.project-overview { display: grid; grid-template-columns: minmax(10rem, .7fr) minmax(10rem, .7fr) minmax(15rem, 2fr); gap: .65rem; }
.project-overview > article { display: flex; align-items: center; gap: .6rem; padding: .75rem; border: 1px solid var(--bs-border-color); border-radius: .55rem; background: var(--bs-body-bg); }
.project-overview > article > div { display: grid; gap: .08rem; }
.project-overview small { color: var(--bs-secondary-color); font-size: .68rem; }
.project-overview article strong { font-size: 1.25rem; }
.project-overview-icon { display: grid; flex: 0 0 2.1rem; width: 2.1rem; height: 2.1rem; place-items: center; border-radius: .45rem; }
.project-overview-icon--active { background: #e9f6ed; color: #16834a; }
.project-overview-icon--completed { background: #e8f5f2; color: var(--brand); }
.project-overview-note { display: flex; align-items: center; gap: .55rem; padding: .75rem; border-radius: .55rem; background: #eff8f5; color: #42635d; font-size: .73rem; line-height: 1.45; }
.project-overview-note i { color: var(--brand); font-size: 1rem; }
.project-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.project-list-card { display: grid; min-width: 0; gap: .42rem; padding: .9rem; border: 1px solid var(--bs-border-color); border-radius: .6rem; background: var(--bs-body-bg); color: var(--bs-body-color); text-decoration: none; box-shadow: 0 .15rem .5rem rgba(17, 24, 39, .04); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.project-list-card:hover { border-color: #9bcfc3; box-shadow: 0 .35rem .9rem rgba(17, 24, 39, .08); color: var(--bs-body-color); transform: translateY(-1px); }
.project-list-card-top, .project-list-card-title { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.project-type-icon { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border-radius: .5rem; background: #e8f5f2; color: var(--brand); font-size: 1rem; }
.project-status-pill { padding: .22rem .5rem; border-radius: 999px; font-size: .65rem; font-weight: 700; }
.project-status-pill--active { background: #eaf7ef; color: #167341; }
.project-status-pill--completed { background: #e8f5f2; color: #0b695e; }
.project-status-pill--archived { background: #f0f2f3; color: #5c6870; }
.project-list-card-title strong { overflow: hidden; font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
.project-list-card-title > i { color: var(--bs-secondary-color); font-size: .8rem; }
.project-list-card-type { color: var(--bs-secondary-color); font-size: .73rem; }
.project-list-card-meta { display: grid; gap: .3rem; margin-top: .15rem; color: #52616a; font-size: .7rem; }
.project-list-card-meta > span { display: flex; align-items: center; gap: .35rem; min-width: 0; }
.project-list-card-meta i { color: #688078; }
.project-list-card-footer { display: flex; justify-content: space-between; padding-top: .45rem; border-top: 1px solid #edf0f2; color: var(--brand); font-size: .7rem; font-weight: 650; }
.project-create-heading { display: flex; align-items: center; gap: .8rem; }
.project-create-icon { display: grid; flex: 0 0 3rem; width: 3rem; height: 3rem; place-items: center; border-radius: .6rem; background: #e8f5f2; color: var(--brand); font-size: 1.35rem; }
.project-create-form { display: grid; gap: .75rem; max-width: 58rem; }
.project-form-section { display: grid; grid-template-columns: 2rem 1fr; align-items: start; gap: .75rem; padding: 1rem; border: 1px solid var(--bs-border-color); border-radius: .6rem; background: var(--bs-body-bg); }
.project-form-step { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: 50%; background: #e8f5f2; color: var(--brand); font-size: .8rem; font-weight: 750; }
.project-form-section-heading { grid-column: 2; }
.project-form-fields { display: grid; grid-column: 2; grid-template-columns: minmax(0, 1.4fr) minmax(10rem, .7fr); gap: .75rem; }
.project-form-fields--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-create-actions { display: flex; justify-content: flex-end; gap: .5rem; }
@media (max-width: 991.98px) { .project-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .project-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); } .project-overview-note { grid-column: 1 / -1; } }
@media (max-width: 767.98px) { .movement-header, .budget-page-header, .project-page-header { align-items: flex-start; flex-direction: column; } .movement-actions, .budget-header-actions, .project-header-actions { justify-content: flex-start; width: 100%; } .movement-actions .btn { flex: 1 1 auto; } .movement-actions .btn[aria-label] { flex: 0 0 2.6rem; } .movement-summary { gap: .45rem; } .movement-summary-card { padding: .65rem; } .movement-summary-card > span { font-size: .68rem; } .movement-summary-card > strong { font-size: 1rem; } .movement-summary-card > small { font-size: .62rem; } .movement-toolbar { align-items: stretch; flex-direction: column; } .movement-filter { padding-bottom: .1rem; } .movement-filter-link { padding: .45rem .55rem; font-size: .76rem; } .movement-tag-filter { flex-basis: auto; width: 100%; } .movement-month-header { padding-inline: .75rem; } .movement-month-totals { padding-inline: .75rem; } .movement-month-lanes, .movement-other-group { padding-inline: .75rem; } .movement-month-totals > div { align-items: flex-start; flex-direction: column; gap: .15rem; } .movement-month-totals strong { text-align: left; } .budget-card-grid { grid-template-columns: 1fr; } .budget-header-actions { align-items: stretch; } .budget-month-switch { justify-content: space-between; } .budget-header-actions > .btn { flex: 1; } .project-header-actions { align-items: stretch; } .project-header-actions .btn { flex: 1 1 auto; } .project-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); } .project-card-grid { grid-template-columns: 1fr; } .project-form-fields, .project-form-fields--three { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .movement-summary-card > span { min-height: 2rem; align-items: flex-start; } .movement-summary-card > strong { font-size: .9rem; } .movement-filter-link { gap: .25rem; padding-inline: .42rem; } .movement-filter-link span { font-size: .7rem; } .project-overview { grid-template-columns: 1fr 1fr; } .project-overview > article { padding: .55rem; } }

/* Project overview cards with real income, expense, and budget progress */
.project-hub { display: grid; gap: .9rem; }
.project-hub-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.project-hub-header > div { min-width: 0; }
.project-hub-eyebrow { display: flex; align-items: center; gap: .35rem; margin-top: .7rem; color: #667780; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.project-hub-header h1 { margin: .18rem 0 .2rem; font-size: 1.65rem; font-weight: 750; }
.project-hub-header p { margin: 0; color: var(--bs-secondary-color); font-size: .86rem; }
.project-hub-actions { display: flex; gap: .42rem; }
.project-hub-actions .btn { font-size: .76rem; }
.project-hub-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; max-width: 42rem; }
.project-hub-summary > article { display: flex; align-items: center; gap: .55rem; min-width: 0; padding: .65rem .75rem; border: 1px solid var(--bs-border-color); border-radius: .5rem; background: var(--bs-body-bg); }
.project-hub-summary > article > span { display: grid; flex: 0 0 1.9rem; width: 1.9rem; height: 1.9rem; place-items: center; border-radius: .4rem; background: #e9f6ed; color: #16834a; }
.project-hub-summary > article > span.is-planned { background: #fff5df; color: #92610e; }
.project-hub-summary > article > span.is-completed { background: #e8f5f2; color: var(--brand); }
.project-hub-summary > article > div { display: grid; min-width: 0; gap: .05rem; }
.project-hub-summary small { color: var(--bs-secondary-color); font-size: .66rem; }
.project-hub-summary strong { font-size: 1rem; line-height: 1.1; }
.project-hub-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.project-hub-toolbar > span { color: var(--bs-secondary-color); font-size: .7rem; }
.project-hub-search { display: flex; align-items: center; gap: .45rem; width: min(100%, 22rem); padding: 0 .6rem; border: 1px solid var(--bs-border-color); border-radius: .42rem; background: var(--bs-body-bg); color: #73838a; }
.project-hub-search input { min-width: 0; height: 2.15rem; padding: 0; border: 0; box-shadow: none !important; font-size: .73rem; }
.project-hub-section,.project-hub-history { display: grid; gap: .7rem; }
.project-hub-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; }
.project-hub-card { display: grid; align-content: start; gap: .5rem; min-width: 0; padding: .78rem; border: 1px solid var(--bs-border-color); border-radius: .55rem; background: var(--bs-body-bg); color: var(--bs-body-color); text-decoration: none; box-shadow: 0 .12rem .4rem rgba(17,24,39,.035); transition: border-color .15s ease,box-shadow .15s ease,transform .15s ease; }
.project-hub-card:hover { border-color: #9bcfc3; box-shadow: 0 .3rem .75rem rgba(17,24,39,.075); color: var(--bs-body-color); transform: translateY(-1px); }
.project-hub-card[hidden] { display: none; }
.project-hub-card.is-completed,.project-hub-card.is-archived { background: #fafcfb; }
.project-hub-card-top,.project-hub-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.project-hub-icon { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: .42rem; background: #e8f5f2; color: var(--brand); font-size: .95rem; }
.project-hub-card.is-planned .project-hub-icon { background: #fff5df; color: #92610e; }
.project-hub-card.is-completed .project-hub-icon,.project-hub-card.is-archived .project-hub-icon { background: #eef1f2; color: #64727a; }
.project-hub-status { padding: .2rem .45rem; border-radius: 999px; background: #e9f6ed; color: #167341; font-size: .62rem; font-weight: 700; }
.project-hub-card.is-planned .project-hub-status { background: #fff5df; color: #855b0b; }
.project-hub-card.is-completed .project-hub-status,.project-hub-card.is-archived .project-hub-status { background: #edf0f2; color: #5b6870; }
.project-hub-heading h3 { overflow: hidden; margin: 0; font-size: .91rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.project-hub-type { overflow: hidden; color: var(--bs-secondary-color); font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.project-hub-type span { margin-inline: .12rem; }
.project-hub-totals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .32rem; }
.project-hub-totals > div { display: grid; gap: .12rem; min-width: 0; padding: .42rem; border-radius: .35rem; background: #f5f7f8; }
.project-hub-totals span { color: var(--bs-secondary-color); font-size: .59rem; }
.project-hub-totals strong { overflow: hidden; font-size: .67rem; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.project-hub-budget-head,.project-hub-budget-foot { display: flex; justify-content: space-between; gap: .45rem; color: var(--bs-secondary-color); font-size: .63rem; }
.project-hub-budget-head strong,.project-hub-budget-foot strong { color: var(--bs-body-color); font-variant-numeric: tabular-nums; text-align: right; }
.project-hub-budget-foot strong.is-over { color: #a43333; }
.project-hub-progress { height: .35rem; margin-top: -.36rem; border-radius: 999px; background: #e8edef; }
.project-hub-progress .progress-bar { background: #16804c; }
.project-hub-progress .progress-bar.is-over { background: #bc4141; }
.project-hub-no-budget { display: flex; align-items: center; gap: .35rem; padding-top: .15rem; color: var(--bs-secondary-color); font-size: .67rem; }
.project-hub-no-budget i { color: #87959b; }
.project-hub-footer { display: flex; justify-content: space-between; padding-top: .42rem; border-top: 1px solid #edf0f2; color: var(--brand); font-size: .67rem; font-weight: 700; }
.project-hub-history { overflow: hidden; border: 1px solid var(--bs-border-color); border-radius: .5rem; background: var(--bs-body-bg); }
.project-hub-history > summary { display: flex; align-items: center; justify-content: space-between; gap: .55rem; padding: .7rem .8rem; cursor: pointer; list-style: none; color: #52616a; font-size: .77rem; font-weight: 700; }
.project-hub-history > summary::-webkit-details-marker { display: none; }
.project-hub-history > summary > span:first-child { display: flex; align-items: center; gap: .35rem; }
.project-hub-history > summary > span:last-child { font-size: .66rem; font-weight: 500; }
.project-hub-history[open] > summary { margin-bottom: .65rem; border-bottom: 1px solid var(--bs-border-color); background: #f8faf9; }
.project-hub-history > .project-hub-grid { padding: 0 .7rem .7rem; }
.project-hub-empty { display: grid; justify-items: center; padding: 2.5rem 1rem; border: 1px dashed #cbd5dc; border-radius: .6rem; background: var(--bs-body-bg); text-align: center; }
.project-hub-empty > span { display: grid; width: 2.7rem; height: 2.7rem; margin-bottom: .7rem; place-items: center; border-radius: .55rem; background: #e8f5f2; color: var(--brand); font-size: 1.2rem; }
.project-hub-empty h2 { margin-bottom: .25rem; font-size: 1.05rem; }
.project-hub-empty p { margin-bottom: .8rem; color: var(--bs-secondary-color); font-size: .8rem; }
.project-hub-no-results { margin: 0; padding: 1rem; border: 1px dashed var(--bs-border-color); border-radius: .45rem; color: var(--bs-secondary-color); text-align: center; font-size: .78rem; }
@media (max-width: 991.98px) { .project-hub-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 767.98px) { .project-hub-header { align-items: flex-start; flex-direction: column; } .project-hub-actions { width: 100%; } .project-hub-actions .btn { flex: 1 1 auto; } .project-hub-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .project-hub-summary { gap: .35rem; } .project-hub-summary > article { align-items: flex-start; flex-direction: column; gap: .28rem; padding: .5rem; } .project-hub-toolbar { align-items: stretch; flex-direction: column; } .project-hub-search { width: 100%; } .project-hub-history > summary { align-items: flex-start; flex-direction: column; } }

/* Shared-expense project overview */
.shared-hub { display: grid; gap: .9rem; }
.shared-hub-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.shared-hub-header > div { min-width: 0; }
.shared-hub-eyebrow { display: flex; align-items: center; gap: .35rem; margin-top: .7rem; color: #667780; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.shared-hub-header h1 { margin: .18rem 0 .2rem; font-size: 1.65rem; font-weight: 750; }
.shared-hub-header p { margin: 0; color: var(--bs-secondary-color); font-size: .86rem; }
.shared-hub-actions { display: flex; gap: .42rem; }
.shared-hub-actions .btn { font-size: .76rem; }
.shared-hub-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; max-width: 42rem; }
.shared-hub-metrics > article { display: flex; align-items: center; gap: .55rem; min-width: 0; padding: .65rem .75rem; border: 1px solid var(--bs-border-color); border-radius: .5rem; background: var(--bs-body-bg); }
.shared-hub-metrics > article > span { display: grid; flex: 0 0 1.9rem; width: 1.9rem; height: 1.9rem; place-items: center; border-radius: .4rem; background: #e9f6ed; color: #16834a; }
.shared-hub-metrics > article > span.is-invited { background: #fff5df; color: #92610e; }
.shared-hub-metrics > article > span.is-history { background: #eef1f2; color: #64727a; }
.shared-hub-metrics > article > div { display: grid; min-width: 0; gap: .05rem; }
.shared-hub-metrics small { color: var(--bs-secondary-color); font-size: .66rem; }
.shared-hub-metrics strong { font-size: 1rem; line-height: 1.1; }
.shared-hub-invitations { overflow: hidden; border: 1px solid #eadbbd; border-radius: .55rem; background: #fffdf8; }
.shared-hub-invitations > header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .72rem .8rem; border-bottom: 1px solid #f0e5d0; }
.shared-hub-invitations > header > div { display: flex; align-items: center; gap: .5rem; }
.shared-hub-invitations > header h2 { margin: 0; font-size: .83rem; font-weight: 750; }
.shared-hub-invitations > header > div > div > span { color: var(--bs-secondary-color); font-size: .65rem; }
.shared-hub-invitation-icon { display: grid; flex: 0 0 1.9rem; width: 1.9rem; height: 1.9rem; place-items: center; border-radius: .4rem; background: #fff0cf; color: #92610e; }
.shared-hub-invitations > header > a { color: #6f571e; font-size: .69rem; text-decoration: none; white-space: nowrap; }
.shared-hub-invitation-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; padding: .6rem; }
.shared-hub-invitation-list > article { display: flex; align-items: center; gap: .5rem; min-width: 0; padding: .55rem; border: 1px solid #efdfbd; border-radius: .45rem; background: #fff; }
.shared-hub-invitation-avatar { display: grid; flex: 0 0 1.8rem; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: 50%; background: #f2f4f5; color: #5d6b72; }
.shared-hub-invitation-name { display: grid; flex: 1 1 auto; min-width: 0; }
.shared-hub-invitation-name strong { overflow: hidden; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.shared-hub-invitation-name small { overflow: hidden; color: var(--bs-secondary-color); font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.shared-hub-invitation-actions { display: flex; flex: 0 0 auto; gap: .3rem; }
.shared-hub-invitation-actions .btn { padding: .3rem .48rem; font-size: .65rem; }
.shared-hub-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.shared-hub-toolbar > span { color: var(--bs-secondary-color); font-size: .7rem; }
.shared-hub-search { display: flex; align-items: center; gap: .45rem; width: min(100%,22rem); padding: 0 .6rem; border: 1px solid var(--bs-border-color); border-radius: .42rem; background: var(--bs-body-bg); color: #73838a; }
.shared-hub-search input { min-width: 0; height: 2.15rem; padding: 0; border: 0; box-shadow: none !important; font-size: .73rem; }
.shared-hub-section { display: grid; gap: .65rem; }
.shared-hub-section > header { display: flex; align-items: baseline; gap: .5rem; }
.shared-hub-section > header h2 { margin: 0; font-size: 1rem; font-weight: 750; }
.shared-hub-section > header > span { color: var(--bs-secondary-color); font-size: .7rem; }
.shared-hub-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; }
.shared-hub-card { display: grid; align-content: start; gap: .48rem; min-width: 0; padding: .78rem; border: 1px solid var(--bs-border-color); border-radius: .55rem; background: var(--bs-body-bg); color: var(--bs-body-color); text-decoration: none; box-shadow: 0 .12rem .4rem rgba(17,24,39,.035); transition: border-color .15s ease,box-shadow .15s ease,transform .15s ease; }
.shared-hub-card:hover { border-color: #9bcfc3; box-shadow: 0 .3rem .75rem rgba(17,24,39,.075); color: var(--bs-body-color); transform: translateY(-1px); }
.shared-hub-card[hidden] { display: none; }
.shared-hub-card.is-closed { background: #fafcfb; }
.shared-hub-card-top,.shared-hub-title-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.shared-hub-project-icon { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: .42rem; background: #e8f5f2; color: var(--brand); }
.shared-hub-card.is-closed .shared-hub-project-icon { background: #eef1f2; color: #64727a; }
.shared-hub-state { padding: .2rem .45rem; border-radius: 999px; background: #e9f6ed; color: #167341; font-size: .62rem; font-weight: 700; }
.shared-hub-state.is-closed { background: #edf0f2; color: #5b6870; }
.shared-hub-title-row > div { min-width: 0; }
.shared-hub-title-row h3 { overflow: hidden; margin: 0; font-size: .9rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.shared-hub-title-row small { display: block; margin-top: .08rem; color: var(--bs-secondary-color); font-size: .65rem; }
.shared-hub-facts { display: flex; flex-wrap: wrap; gap: .3rem .65rem; color: var(--bs-secondary-color); font-size: .65rem; }
.shared-hub-facts > span { display: inline-flex; align-items: center; gap: .25rem; }
.shared-hub-facts i { color: #718078; }
.shared-hub-summary { display: grid; grid-template-columns: 1.4fr .8fr .6fr; gap: .32rem; }
.shared-hub-summary > div { display: grid; gap: .1rem; min-width: 0; padding: .42rem; border-radius: .35rem; background: #f5f7f8; }
.shared-hub-summary span { color: var(--bs-secondary-color); font-size: .59rem; }
.shared-hub-summary strong { overflow: hidden; font-size: .69rem; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.shared-hub-pending { display: flex; align-items: center; gap: .3rem; color: #855b0b; font-size: .64rem; }
.shared-hub-footer { display: flex; justify-content: space-between; padding-top: .4rem; border-top: 1px solid #edf0f2; color: var(--brand); font-size: .67rem; font-weight: 700; }
.shared-hub-history { overflow: hidden; border: 1px solid var(--bs-border-color); border-radius: .5rem; background: var(--bs-body-bg); }
.shared-hub-history > summary { display: flex; align-items: center; justify-content: space-between; gap: .55rem; padding: .7rem .8rem; cursor: pointer; list-style: none; color: #52616a; font-size: .77rem; font-weight: 700; }
.shared-hub-history > summary::-webkit-details-marker { display: none; }
.shared-hub-history > summary > span:first-child { display: flex; align-items: center; gap: .35rem; }
.shared-hub-history > summary > span:last-child { color: var(--bs-secondary-color); font-size: .66rem; font-weight: 500; }
.shared-hub-history[open] > summary { margin-bottom: .65rem; border-bottom: 1px solid var(--bs-border-color); background: #f8faf9; }
.shared-hub-history > .shared-hub-grid { padding: 0 .7rem .7rem; }
.shared-hub-empty { display: grid; justify-items: center; padding: 2.5rem 1rem; border: 1px dashed #cbd5dc; border-radius: .6rem; background: var(--bs-body-bg); text-align: center; }
.shared-hub-empty--compact { padding: 1.4rem 1rem; }
.shared-hub-empty > span { display: grid; width: 2.7rem; height: 2.7rem; margin-bottom: .7rem; place-items: center; border-radius: .55rem; background: #e8f5f2; color: var(--brand); font-size: 1.2rem; }
.shared-hub-empty h2 { margin-bottom: .25rem; font-size: 1.05rem; }
.shared-hub-empty p { margin-bottom: .8rem; color: var(--bs-secondary-color); font-size: .8rem; }
.shared-hub-no-results { margin: 0; padding: 1rem; border: 1px dashed var(--bs-border-color); border-radius: .45rem; color: var(--bs-secondary-color); text-align: center; font-size: .78rem; }
@media (max-width: 991.98px) { .shared-hub-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .shared-hub-invitation-list { grid-template-columns: 1fr; } }
@media (max-width: 767.98px) { .shared-hub-header { align-items: flex-start; flex-direction: column; } .shared-hub-actions { width: 100%; } .shared-hub-actions .btn { flex: 1 1 auto; } .shared-hub-grid { grid-template-columns: 1fr; } .shared-hub-invitation-list { padding: .45rem; } }
@media (max-width: 420px) { .shared-hub-metrics { gap: .35rem; } .shared-hub-metrics > article { align-items: flex-start; flex-direction: column; gap: .28rem; padding: .5rem; } .shared-hub-toolbar { align-items: stretch; flex-direction: column; } .shared-hub-search { width: 100%; } .shared-hub-history > summary { align-items: flex-start; flex-direction: column; } .shared-hub-invitation-list > article { flex-wrap: wrap; } .shared-hub-invitation-actions { width: 100%; } .shared-hub-invitation-actions form { flex: 1; } .shared-hub-invitation-actions .btn { width: 100%; } }

/* Debt, financing, and receivable overview cards */
.debt-page-header, .receivable-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.debt-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.debt-summary-card { display: grid; min-width: 0; gap: .35rem; padding: .85rem .95rem; border: 1px solid var(--bs-border-color); border-top: 3px solid #64748b; border-radius: .6rem; background: var(--bs-body-bg); box-shadow: 0 .15rem .5rem rgba(17, 24, 39, .04); }
.debt-summary-card > span { display: flex; align-items: center; gap: .4rem; color: var(--bs-secondary-color); font-size: .73rem; font-weight: 650; }
.debt-summary-card > span i { font-size: .95rem; }
.debt-summary-card > strong { font-size: 1.2rem; line-height: 1.25; }
.debt-summary-card > small { color: var(--bs-secondary-color); font-size: .68rem; }
.debt-summary-card--principal { border-top-color: #c64242; }
.debt-summary-card--principal > span i, .debt-summary-card--principal > strong { color: #b83232; }
.debt-summary-card--interest { border-top-color: #c78118; }
.debt-summary-card--interest > span i { color: #a66508; }
.debt-summary-card--total { border-top-color: #0f766e; }
.debt-summary-card--total > span i, .debt-summary-card--total > strong { color: #0c6a60; }
.debt-summary-card--next { border-top-color: #526a9b; }
.debt-summary-card--next > span i { color: #526a9b; }
.debt-list-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 1.1rem 0 .65rem; }
.debt-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.debt-card { display: grid; align-content: start; gap: .65rem; min-width: 0; padding: .95rem; border: 1px solid var(--bs-border-color); border-radius: .65rem; background: var(--bs-body-bg); box-shadow: 0 .15rem .5rem rgba(17, 24, 39, .045); }
.debt-card.is-closed { background: #fbfcfc; }
.debt-card-top { display: flex; align-items: center; justify-content: space-between; }
.debt-type-icon { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: .5rem; background: #fff0ef; color: #b83232; font-size: 1.05rem; }
.debt-status-pill, .receivable-state-pill { padding: .24rem .55rem; border-radius: 999px; background: #edf0f2; color: #5b6870; font-size: .67rem; font-weight: 700; }
.debt-status-pill.is-active { background: #fff2dd; color: #885313; }
.debt-status-pill.is-closed { background: #eaf7ef; color: #167341; }
.debt-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.debt-card-heading > div:first-child { min-width: 0; }
.debt-kind-label { color: var(--bs-secondary-color); font-size: .67rem; }
.debt-card-heading h3 { overflow: hidden; margin: .12rem 0; font-size: 1rem; font-weight: 700; text-overflow: ellipsis; }
.debt-creditor { color: var(--bs-secondary-color); font-size: .75rem; }
.debt-balance { flex: 0 0 auto; text-align: right; }
.debt-balance small { display: block; color: var(--bs-secondary-color); font-size: .65rem; }
.debt-balance strong { display: block; color: #b83232; font-size: 1.12rem; white-space: nowrap; }
.debt-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; padding: .65rem; border-radius: .45rem; background: #f5f7f8; }
.debt-breakdown > div { display: flex; justify-content: space-between; gap: .4rem; min-width: 0; }
.debt-breakdown span { color: var(--bs-secondary-color); font-size: .68rem; }
.debt-breakdown strong { font-size: .73rem; text-align: right; }
.debt-progress-copy { display: flex; justify-content: space-between; gap: .5rem; color: var(--bs-secondary-color); font-size: .69rem; }
.debt-progress-copy strong { color: var(--bs-body-color); }
.debt-progress { height: .4rem; margin-top: -.45rem; border-radius: 999px; background: #ebeff1; }
.debt-progress .progress-bar { background: #0f8a74; }
.debt-card-meta { display: flex; flex-wrap: wrap; gap: .3rem .65rem; color: var(--bs-secondary-color); font-size: .67rem; }
.debt-card-meta > span { display: inline-flex; align-items: center; gap: .25rem; }
.debt-card-meta i { color: #73838a; }
.debt-card-actions { display: flex; gap: .4rem; padding-top: .15rem; }
.debt-empty, .receivable-empty { display: grid; justify-items: center; padding: 3rem 1.25rem; border: 1px dashed #cbd5dc; border-radius: .7rem; background: var(--bs-body-bg); text-align: center; }
.debt-empty-icon, .receivable-empty-icon { display: grid; width: 3rem; height: 3rem; margin-bottom: .85rem; place-items: center; border-radius: .7rem; background: #fff0ef; color: #b83232; font-size: 1.35rem; }
.unlinked-financing-section { padding: .95rem; border: 1px solid #f0d6a5; border-radius: .65rem; background: #fffaf0; }
.unlinked-financing-heading { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .75rem; }
.unlinked-financing-heading h2 { font-size: 1rem; }
.unlinked-financing-heading p { max-width: 48rem; }
.unlinked-financing-icon { display: grid; flex: 0 0 2rem; width: 2rem; height: 2rem; place-items: center; border-radius: .4rem; background: #ffedc9; color: #92610e; }
.unlinked-financing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.unlinked-financing-card { padding: .8rem; border: 1px solid #efdfbd; border-radius: .5rem; background: #fff; }
.receivable-summary { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: .7rem; }
.receivable-summary > article { display: flex; align-items: center; gap: .65rem; min-width: 0; padding: .8rem .9rem; border: 1px solid var(--bs-border-color); border-radius: .6rem; background: var(--bs-body-bg); box-shadow: 0 .15rem .5rem rgba(17, 24, 39, .04); }
.receivable-summary-icon { display: grid; flex: 0 0 2.25rem; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: .5rem; background: #e7f5ee; color: #17804c; }
.receivable-summary-icon--count { background: #e8f5f2; color: var(--brand); }
.receivable-summary-icon--archive { background: #f0f2f3; color: #64727a; }
.receivable-summary > article > div { display: grid; min-width: 0; gap: .12rem; }
.receivable-summary small { color: var(--bs-secondary-color); font-size: .68rem; }
.receivable-summary strong { display: flex; flex-wrap: wrap; gap: .2rem .7rem; font-size: 1.05rem; }
.receivable-tabs { display: flex; gap: .25rem; padding: .35rem; border: 1px solid var(--bs-border-color); border-radius: .55rem; background: var(--bs-body-bg); }
.receivable-tab { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border-radius: .4rem; color: var(--bs-secondary-color); font-size: .8rem; text-decoration: none; }
.receivable-tab:hover { background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
.receivable-tab.is-active { background: #e5f5f1; color: #075c54; font-weight: 700; }
.receivable-tab-count { display: inline-grid; min-width: 1.25rem; height: 1.25rem; place-items: center; padding: 0 .2rem; border-radius: 999px; background: rgba(17, 24, 39, .07); font-size: .65rem; }
.receivable-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.receivable-card { display: grid; align-content: start; gap: .62rem; min-width: 0; padding: .95rem; border: 1px solid var(--bs-border-color); border-radius: .65rem; background: var(--bs-body-bg); box-shadow: 0 .15rem .5rem rgba(17, 24, 39, .045); }
.receivable-card.is-archived { background: #fbfcfc; }
.receivable-card-top { display: flex; align-items: center; justify-content: space-between; }
.receivable-person-icon { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: .5rem; background: #e7f5ee; color: #17804c; font-size: 1.05rem; }
.receivable-state-pill { background: #e7f5ee; color: #167341; }
.receivable-state-pill.is-archived { background: #edf0f2; color: #5b6870; }
.receivable-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .65rem; }
.receivable-card-heading > div:first-child { min-width: 0; }
.receivable-debtor { color: var(--bs-secondary-color); font-size: .7rem; }
.receivable-card-heading h2 { overflow: hidden; margin: .1rem 0; font-size: .98rem; font-weight: 700; text-overflow: ellipsis; }
.receivable-start-date { color: var(--bs-secondary-color); font-size: .68rem; }
.receivable-current-balance { flex: 0 0 auto; text-align: right; }
.receivable-current-balance small { display: block; color: var(--bs-secondary-color); font-size: .65rem; }
.receivable-current-balance strong { display: block; color: #167341; font-size: 1.08rem; white-space: nowrap; }
.receivable-current-balance.is-settled strong { color: #53616a; }
.receivable-progress-label { display: flex; justify-content: space-between; color: var(--bs-secondary-color); font-size: .69rem; }
.receivable-progress-label strong { color: var(--bs-body-color); }
.receivable-progress { height: .42rem; margin-top: -.42rem; border-radius: 999px; background: #e8edef; }
.receivable-progress .progress-bar { background: #18804f; }
.receivable-card.is-archived .receivable-progress .progress-bar { background: #708078; }
.receivable-breakdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; padding: .65rem .55rem; border-radius: .45rem; background: #f5f7f8; }
.receivable-breakdown > div { display: grid; gap: .16rem; min-width: 0; }
.receivable-breakdown span { color: var(--bs-secondary-color); font-size: .63rem; }
.receivable-breakdown strong { overflow-wrap: anywhere; font-size: .73rem; }
.receivable-interest-note, .receivable-archive-note { display: flex; align-items: flex-start; gap: .4rem; padding: .55rem .65rem; border-radius: .4rem; background: #f5f7f8; color: #52616a; font-size: .68rem; line-height: 1.45; }
.receivable-interest-note i { flex: 0 0 auto; color: #88631d; }
.receivable-archive-note { background: #edf7f0; color: #356247; }
.receivable-archive-note i { flex: 0 0 auto; color: #17804c; }
.receivable-collect { overflow: hidden; border: 1px solid #d6e9e1; border-radius: .45rem; }
.receivable-collect > summary { display: flex; align-items: center; gap: .45rem; padding: .65rem .75rem; color: #146b48; cursor: pointer; font-size: .78rem; font-weight: 700; list-style: none; }
.receivable-collect > summary::-webkit-details-marker { display: none; }
.receivable-collect[open] > summary { border-bottom: 1px solid #e3eee8; background: #f5fbf7; }
.receivable-collect-form { display: grid; gap: .55rem; padding: .7rem; }
.receivable-collect-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.receivable-collect-fields > div { min-width: 0; }
.receivable-collect-fields .form-label { margin-bottom: .2rem; color: var(--bs-secondary-color); font-size: .67rem; }
.aging-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.25rem; }
.aging-header > div { min-width: 0; }
.aging-date-form { flex: 0 0 min(100%, 20rem); padding: .75rem; border: 1px solid var(--bs-border-color); border-radius: .55rem; background: var(--bs-body-bg); }
.aging-date-form .form-label { margin-bottom: .3rem; font-size: .72rem; font-weight: 650; }
.aging-date-form .form-control { min-width: 0; }
.aging-summary-section, .aging-plans-section { margin-top: 1.4rem; }
.aging-section-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .7rem; }
.aging-asof { display: inline-flex; align-items: center; gap: .35rem; color: var(--bs-secondary-color); font-size: .75rem; }
.aging-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.aging-summary-card, .aging-plan-card { display: grid; align-content: start; gap: .65rem; min-width: 0; padding: .9rem; border: 1px solid var(--bs-border-color); border-radius: .6rem; background: var(--bs-body-bg); box-shadow: 0 .15rem .5rem rgba(17, 24, 39, .04); }
.aging-summary-top, .aging-plan-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.aging-status { display: inline-flex; align-items: center; width: fit-content; padding: .25rem .5rem; border-radius: 999px; font-size: .68rem; font-weight: 700; }
.aging-status--recoverable { background: #e7f5ee; color: #167341; }
.aging-status--disputed { background: #fff2d9; color: #855b0b; }
.aging-status--uncollectible { background: #fce9e8; color: #a43333; }
.aging-currency { color: var(--bs-secondary-color); font-size: .68rem; font-weight: 700; }
.aging-summary-card > small { margin-bottom: -.55rem; color: var(--bs-secondary-color); font-size: .68rem; }
.aging-summary-amount { color: var(--bs-body-color); font-size: 1.35rem; line-height: 1.2; }
.aging-summary-amount span, .aging-plan-balance strong span { color: var(--bs-secondary-color); font-size: .68rem; font-weight: 600; }
.aging-bucket-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
.aging-bucket-grid > div { display: grid; align-content: space-between; gap: .3rem; min-width: 0; min-height: 3.2rem; padding: .45rem; border-radius: .4rem; background: var(--bs-tertiary-bg); }
.aging-bucket-grid span { color: var(--bs-secondary-color); font-size: .62rem; line-height: 1.25; }
.aging-bucket-grid strong { overflow-wrap: anywhere; font-size: .72rem; font-variant-numeric: tabular-nums; }
.aging-bucket-grid--summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aging-bucket-grid--summary > div { min-height: 2.8rem; }
.aging-extra-details { border-top: 1px solid var(--bs-border-color); padding-top: .5rem; }
.aging-extra-details > summary { color: var(--bs-secondary-color); cursor: pointer; font-size: .68rem; font-weight: 650; }
.aging-extra-list { display: grid; gap: .4rem; margin: .55rem 0 0; }
.aging-extra-list > div { display: flex; justify-content: space-between; gap: .75rem; font-size: .67rem; }
.aging-extra-list dt { color: var(--bs-secondary-color); font-weight: 400; }
.aging-extra-list dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 650; text-align: right; }

/* Unified debt overview */
.finance-debts-overview { display: grid; gap: 1rem; }
.debt-overview-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.debt-overview-header > div { min-width: 0; }
.debt-overview-eyebrow { display: flex; align-items: center; gap: .35rem; margin-top: .7rem; color: #667780; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.debt-overview-header h1 { margin: .18rem 0 .2rem; font-size: 1.65rem; font-weight: 750; }
.debt-overview-header p { margin: 0; color: var(--bs-secondary-color); font-size: .86rem; }
.debt-overview-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.debt-overview-metric { display: grid; gap: .3rem; min-width: 0; padding: .8rem .9rem; border: 1px solid var(--bs-border-color); border-radius: .55rem; border-top: 3px solid #64748b; background: var(--bs-body-bg); }
.debt-overview-metric > span { display: flex; align-items: center; gap: .4rem; color: var(--bs-secondary-color); font-size: .72rem; font-weight: 650; }
.debt-overview-metric > span i { font-size: .9rem; }
.debt-overview-metric > strong { overflow-wrap: anywhere; font-size: 1.15rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.debt-overview-metric > small { color: var(--bs-secondary-color); font-size: .67rem; }
.debt-overview-metric.is-capital { border-top-color: #c64242; }
.debt-overview-metric.is-capital > span i,.debt-overview-metric.is-capital > strong { color: #b83232; }
.debt-overview-metric.is-interest { border-top-color: #c78118; }
.debt-overview-metric.is-interest > span i { color: #a66508; }
.debt-overview-metric.is-total { border-top-color: #0f766e; }
.debt-overview-metric.is-total > span i,.debt-overview-metric.is-total > strong { color: #0c6a60; }
.debt-overview-metric.is-next { border-top-color: #526a9b; }
.debt-overview-metric.is-next > span i { color: #526a9b; }
.debt-overview-footnote { display: flex; align-items: center; gap: .4rem; margin: -.6rem 0 0; color: var(--bs-secondary-color); font-size: .7rem; }
.debt-overview-section { display: grid; gap: .7rem; }
.debt-overview-section-header { display: flex; align-items: center; gap: .65rem; }
.debt-overview-section-header > div { display: flex; align-items: baseline; gap: .55rem; margin-right: auto; }
.debt-overview-section-header h2 { margin: 0; font-size: 1.05rem; font-weight: 750; }
.debt-overview-section-header > div > span,.debt-overview-count { color: var(--bs-secondary-color); font-size: .72rem; }
.debt-overview-search { display: flex; align-items: center; gap: .5rem; width: min(100%, 21rem); padding: 0 .65rem; border: 1px solid var(--bs-border-color); border-radius: .45rem; background: var(--bs-body-bg); color: #73838a; }
.debt-overview-search input { min-width: 0; height: 2.25rem; padding: 0; border: 0; box-shadow: none !important; font-size: .75rem; }
.debt-overview-count { min-width: 1.5rem; text-align: right; }
.debt-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.debt-overview-card { display: flex; flex-direction: column; gap: .55rem; min-width: 0; height: 100%; padding: .8rem; border: 1px solid var(--bs-border-color); border-radius: .55rem; background: var(--bs-body-bg); box-shadow: 0 .12rem .4rem rgba(17,24,39,.035); }
.debt-overview-card.is-settled { background: #fafcfb; }
.debt-overview-card[hidden] { display: none; }
.debt-overview-top { display: flex; align-items: center; justify-content: space-between; }
.debt-overview-icon { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: .45rem; background: #fff0ef; color: #b83232; font-size: .95rem; }
.debt-overview-card.is-settled .debt-overview-icon { background: #eaf5ef; color: #167341; }
.debt-overview-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; min-width: 0; }
.debt-overview-title { min-width: 0; }
.debt-overview-title > span { color: var(--bs-secondary-color); font-size: .65rem; }
.debt-overview-title h3 { overflow: hidden; margin: .08rem 0; font-size: .92rem; font-weight: 750; text-overflow: ellipsis; }
.debt-overview-title small { display: block; overflow: hidden; color: var(--bs-secondary-color); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.debt-overview-balance { flex: 0 0 auto; text-align: right; }
.debt-overview-balance small { display: block; color: var(--bs-secondary-color); font-size: .61rem; }
.debt-overview-balance strong { display: block; color: #b83232; font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.debt-overview-card.is-settled .debt-overview-balance strong { color: #52616a; }
.debt-overview-breakdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem .45rem; padding: .5rem .55rem; border-radius: .4rem; background: #f5f7f8; }
.debt-overview-breakdown > div { display: grid; gap: .12rem; min-width: 0; }
.debt-overview-breakdown span { color: var(--bs-secondary-color); font-size: .61rem; }
.debt-overview-breakdown strong { overflow-wrap: anywhere; font-size: .67rem; font-variant-numeric: tabular-nums; }
.debt-overview-payments { display: grid; align-content: start; gap: .32rem; min-height: 2rem; }
.debt-overview-progress-label { display: flex; justify-content: space-between; gap: .5rem; color: var(--bs-secondary-color); font-size: .66rem; }
.debt-overview-progress-label strong { color: var(--bs-body-color); }
.debt-overview-progress { height: .35rem; margin-top: -.42rem; border-radius: 999px; background: #ebeff1; }
.debt-overview-payments .debt-overview-progress { margin-top: 0; }
.debt-overview-progress--empty { background: #ebeff1; }
.debt-overview-progress .progress-bar { background: #0f8a74; }
.debt-overview-card.is-settled .debt-overview-progress .progress-bar { background: #5a9a73; }
.debt-overview-meta { display: flex; flex-wrap: wrap; gap: .25rem .55rem; min-height: 1.1rem; color: var(--bs-secondary-color); font-size: .64rem; }
.debt-overview-meta span { display: inline-flex; align-items: center; gap: .22rem; }
.debt-overview-meta i { color: #73838a; }
.debt-overview-note { display: flex; gap: .35rem; margin: 0; color: #765b2d; font-size: .66rem; }
.debt-overview-actions { display: flex; gap: .35rem; margin-top: auto; padding-top: .1rem; }
.debt-overview-actions .btn { flex: 1 1 auto; font-size: .7rem; }
.debt-overview-empty { display: grid; justify-items: center; padding: 2.5rem 1rem; border: 1px dashed #cbd5dc; border-radius: .6rem; background: var(--bs-body-bg); text-align: center; }
.debt-overview-empty > span { display: grid; width: 2.7rem; height: 2.7rem; margin-bottom: .7rem; place-items: center; border-radius: .55rem; background: #e8f5f2; color: var(--brand); font-size: 1.2rem; }
.debt-overview-empty h2 { margin-bottom: .25rem; font-size: 1.05rem; }
.debt-overview-empty p { margin-bottom: .8rem; color: var(--bs-secondary-color); font-size: .8rem; }
.debt-overview-no-results { margin: 0; padding: 1.2rem; border: 1px dashed var(--bs-border-color); border-radius: .5rem; color: var(--bs-secondary-color); text-align: center; font-size: .8rem; }
.debt-overview-history,.debt-overview-unlinked { overflow: hidden; border: 1px solid var(--bs-border-color); border-radius: .55rem; background: var(--bs-body-bg); }
.debt-overview-history > summary,.debt-overview-unlinked > summary { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .75rem .85rem; cursor: pointer; list-style: none; font-size: .82rem; font-weight: 700; }
.debt-overview-history > summary::-webkit-details-marker,.debt-overview-unlinked > summary::-webkit-details-marker { display: none; }
.debt-overview-history > summary > span:first-child,.debt-overview-unlinked > summary { color: #52616a; }
.debt-overview-history[open] > summary,.debt-overview-unlinked[open] > summary { border-bottom: 1px solid var(--bs-border-color); background: #f8faf9; }
.debt-overview-history > .debt-overview-grid { padding: .75rem; }
.debt-overview-unlinked { border-color: #eadbbd; background: #fffdf8; }
.debt-overview-unlinked > summary span { display: inline-grid; min-width: 1.3rem; height: 1.3rem; place-items: center; border-radius: 999px; background: #fff0cf; color: #765b2d; font-size: .66rem; }
.debt-overview-unlinked > p { margin: .7rem .85rem; color: var(--bs-secondary-color); font-size: .75rem; }
.debt-overview-unlinked-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; padding: 0 .75rem .75rem; }
.debt-overview-unlinked-grid > article { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .3rem .6rem; padding: .65rem; border: 1px solid #efdfbd; border-radius: .45rem; background: #fff; }
.debt-overview-unlinked-grid > article > div { display: grid; min-width: 0; }
.debt-overview-unlinked-grid > article > div strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; }
.debt-overview-unlinked-grid > article > div span { color: var(--bs-secondary-color); font-size: .65rem; }
.debt-overview-unlinked-balance { color: #b83232; font-size: .78rem; white-space: nowrap; }
.debt-overview-unlinked-grid .btn { grid-column: 1 / -1; justify-self: start; font-size: .68rem; }
.app-form-modal .modal-content { overflow: hidden; border: 1px solid #e2e9e7; border-radius: .75rem; box-shadow: 0 1rem 3rem rgba(17,35,31,.18); }
.app-form-modal .modal-body { min-height: 10rem; padding: .75rem; }
.app-form-modal .modal-body > main { padding: 0 !important; }
.app-form-modal .finance-shell { display: block; }
.app-form-modal .finance-workspace { min-width: 0; }
.app-form-modal .modal-body .finance-sidebar,.app-form-modal .modal-body .finance-nav { display: none !important; }
.app-form-modal-loading { display: flex; min-height: 9rem; align-items: center; justify-content: center; gap: .7rem; color: #607078; font-size: .85rem; }
.app-inline-form-trigger { margin-block: .15rem; }
.app-form-modal .receivable-collect-form { display: block; padding: 0; }
.app-confirm-modal .modal-content { overflow: hidden; border: 1px solid #e2e9e7; border-radius: .85rem; box-shadow: 0 1rem 3rem rgba(17,35,31,.2); }
.app-confirm-modal .modal-header { align-items: flex-start; padding: 1.15rem 1.25rem .25rem; border: 0; }
.app-confirm-modal .modal-body { padding: .25rem 1.25rem 1rem; }
.app-confirm-modal .modal-footer { gap: .5rem; padding: 0 1.25rem 1.25rem; border: 0; }
.app-confirm-icon { display: grid; width: 2.7rem; height: 2.7rem; place-items: center; border-radius: 50%; background: #e2f3ef; color: #0f766e; font-size: 1.2rem; }
.app-confirm-icon.is-danger { background: #fff0ed; color: #bd3d32; }
.app-confirm-modal .modal-title { font-weight: 700; }
.app-confirm-modal [data-confirm-message] { color: #53615e; line-height: 1.55; overflow-wrap: anywhere; }
.app-confirm-modal .modal-footer .btn { min-width: 6.5rem; }
@media (max-width: 575.98px) { .app-confirm-modal .modal-dialog { margin: .75rem; } .app-confirm-modal .modal-footer { flex-wrap: nowrap; } .app-confirm-modal .modal-footer .btn { flex: 1 1 0; min-width: 0; } }
@media (max-width: 767.98px) {
    .app-form-modal .modal-dialog { width: 100%; min-height: 100%; margin: 0; }
    .app-form-modal .modal-content { min-height: 100dvh; border: 0; border-radius: 0; }
    .app-form-modal .modal-body { padding: .6rem; }
}
@media (max-width: 991.98px) { .debt-overview-summary { grid-template-columns: repeat(2, minmax(0,1fr)); } .debt-overview-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 767.98px) { .debt-overview-header { align-items: flex-start; flex-direction: column; } .debt-overview-header > .btn { width: 100%; } .debt-overview-metric { padding: .65rem; } .debt-overview-metric > strong { font-size: .98rem; } .debt-overview-section-header { flex-wrap: wrap; } .debt-overview-search { order: 3; width: 100%; } .debt-overview-grid,.debt-overview-unlinked-grid { grid-template-columns: 1fr; } .debt-overview-card { padding: .72rem; } }
.aging-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.aging-plan-title { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; }
.aging-plan-title > div:first-child { min-width: 0; }
.aging-plan-title h3 { margin: 0; font-size: .95rem; font-weight: 700; overflow-wrap: anywhere; }
.aging-plan-title > div:first-child > span { color: var(--bs-secondary-color); font-size: .72rem; }
.aging-plan-balance { flex: 0 0 auto; text-align: right; }
.aging-plan-balance small { display: block; color: var(--bs-secondary-color); font-size: .64rem; }
.aging-plan-balance strong { color: #167341; font-size: 1rem; white-space: nowrap; }
.aging-warning { display: flex; gap: .4rem; padding: .5rem .6rem; border-radius: .4rem; background: #fff6e5; color: #765313; font-size: .68rem; }
.aging-warning i { flex: 0 0 auto; }
.aging-plan-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.aging-interest { color: var(--bs-secondary-color); font-size: .68rem; }
.aging-interest i { margin-right: .15rem; }
.aging-empty-inline { padding: 1rem; border: 1px dashed var(--bs-border-color); border-radius: .5rem; color: var(--bs-secondary-color); }
.receivable-status-form-heading { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; }
.receivable-status-form-heading > div { min-width: 0; }
@media (max-width: 991.98px) { .aging-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .aging-header { align-items: stretch; flex-direction: column; } .aging-date-form { flex-basis: auto; } .aging-summary-grid, .aging-plan-grid { grid-template-columns: 1fr; } .aging-plan-title { flex-direction: column; } .aging-plan-balance { text-align: left; } .aging-plan-footer { align-items: flex-start; flex-direction: column; } }
@media (max-width: 991.98px) { .debt-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .debt-card-grid, .receivable-card-grid { grid-template-columns: 1fr; } }
@media (max-width: 767.98px) { .debt-page-header, .receivable-page-header { align-items: flex-start; flex-direction: column; } .debt-page-header > .btn, .receivable-page-header > .btn { width: 100%; } .debt-summary-grid { gap: .45rem; } .debt-summary-card { padding: .65rem; } .debt-summary-card > span { align-items: flex-start; font-size: .66rem; } .debt-summary-card > strong { font-size: .98rem; } .debt-summary-card > small { font-size: .62rem; } .debt-card { padding: .8rem; } .debt-card-heading { align-items: flex-start; } .debt-breakdown { gap: .35rem; padding: .55rem; } .debt-breakdown > div { flex-direction: column; gap: .15rem; } .debt-breakdown strong { text-align: left; } .unlinked-financing-grid { grid-template-columns: 1fr; } .receivable-summary { grid-template-columns: 1fr 1fr; gap: .45rem; } .receivable-summary > article:first-child { grid-column: 1 / -1; } .receivable-summary > article { padding: .65rem; } .receivable-summary small { font-size: .64rem; } .receivable-summary strong { font-size: .95rem; } .receivable-card { padding: .8rem; } .receivable-breakdown { gap: .25rem; padding: .55rem .4rem; } .receivable-breakdown span { font-size: .59rem; } .receivable-breakdown strong { font-size: .68rem; } }
@media (max-width: 420px) { .debt-summary-card > span { min-height: 2rem; } .debt-card-heading { flex-direction: column; } .debt-balance { text-align: left; } .receivable-summary > article { gap: .4rem; } .receivable-summary-icon { flex-basis: 1.9rem; width: 1.9rem; height: 1.9rem; } .receivable-card-heading { flex-direction: column; } .receivable-current-balance { text-align: left; } }

/* Receivables list, aligned with the financial account and debt overviews */
.receivable-hub { display: grid; gap: .9rem; }
.receivable-hub-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.receivable-hub-header > div { min-width: 0; }
.receivable-hub-eyebrow { display: flex; align-items: center; gap: .35rem; margin-top: .7rem; color: #667780; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.receivable-hub-header h1 { margin: .18rem 0 .2rem; font-size: 1.65rem; font-weight: 750; }
.receivable-hub-header p { margin: 0; color: var(--bs-secondary-color); font-size: .86rem; }
.receivable-hub-actions { display: flex; gap: .45rem; }
.receivable-hub-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .65rem; }
.receivable-hub-summary > article { display: grid; gap: .3rem; min-width: 0; padding: .75rem .85rem; border: 1px solid var(--bs-border-color); border-top: 3px solid #64748b; border-radius: .55rem; background: var(--bs-body-bg); }
.receivable-hub-summary > article > span { display: flex; align-items: center; gap: .4rem; color: var(--bs-secondary-color); font-size: .71rem; font-weight: 650; }
.receivable-hub-summary > article > span i { font-size: .9rem; }
.receivable-hub-summary > article > strong { display: flex; flex-wrap: wrap; gap: .15rem .6rem; overflow-wrap: anywhere; font-size: 1.12rem; font-variant-numeric: tabular-nums; line-height: 1.25; }
.receivable-hub-summary .is-balance { border-top-color: #16804c; }
.receivable-hub-summary .is-balance > span i,.receivable-hub-summary .is-balance > strong { color: #167341; }
.receivable-hub-summary .is-count { border-top-color: #0f766e; }
.receivable-hub-summary .is-count > span i { color: #0f766e; }
.receivable-hub-summary .is-disputed { border-top-color: #c78118; }
.receivable-hub-summary .is-disputed > span i { color: #a66508; }
.receivable-hub-summary .is-history { border-top-color: #718096; }
.receivable-hub-summary .is-history > span i { color: #64727a; }
.receivable-hub-tabs { display: flex; gap: .25rem; padding: .3rem; overflow-x: auto; border: 1px solid var(--bs-border-color); border-radius: .5rem; background: var(--bs-body-bg); scrollbar-width: thin; }
.receivable-hub-tab { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .4rem; padding: .45rem .62rem; border-radius: .35rem; color: var(--bs-secondary-color); font-size: .76rem; text-decoration: none; white-space: nowrap; }
.receivable-hub-tab:hover { background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
.receivable-hub-tab.is-active { background: #e5f5f1; color: #075c54; font-weight: 700; }
.receivable-hub-tab-count { display: inline-grid; min-width: 1.2rem; height: 1.2rem; place-items: center; padding: 0 .18rem; border-radius: 999px; background: rgba(17,24,39,.07); font-size: .62rem; font-variant-numeric: tabular-nums; }
.receivable-hub-list { display: grid; gap: .65rem; }
.receivable-hub-list-header { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.receivable-hub-list-header > div { display: flex; align-items: baseline; gap: .55rem; }
.receivable-hub-list-header h2 { margin: 0; font-size: 1.02rem; font-weight: 750; }
.receivable-hub-list-header > div > span { color: var(--bs-secondary-color); font-size: .71rem; }
.receivable-hub-search { display: flex; align-items: center; gap: .45rem; width: min(100%, 20rem); padding: 0 .6rem; border: 1px solid var(--bs-border-color); border-radius: .42rem; background: var(--bs-body-bg); color: #73838a; }
.receivable-hub-search input { min-width: 0; height: 2.15rem; padding: 0; border: 0; box-shadow: none !important; font-size: .73rem; }
.receivable-hub-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; }
.receivable-hub-card { display: grid; align-content: start; gap: .5rem; min-width: 0; padding: .78rem; border: 1px solid var(--bs-border-color); border-radius: .55rem; background: var(--bs-body-bg); box-shadow: 0 .12rem .4rem rgba(17,24,39,.035); }
.receivable-hub-card.is-archived { background: #fafcfb; }
.receivable-hub-card[hidden] { display: none; }
.receivable-hub-card-top { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.receivable-hub-person { display: grid; width: 1.95rem; height: 1.95rem; place-items: center; border-radius: .42rem; background: #e7f5ee; color: #17804c; }
.receivable-hub-status { display: inline-flex; align-items: center; max-width: 75%; padding: .22rem .45rem; overflow: hidden; border-radius: 999px; background: #e7f5ee; color: #167341; font-size: .63rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.receivable-hub-status.is-overdue,.receivable-hub-status.is-uncollectible { background: #fce9e8; color: #a43333; }
.receivable-hub-status.is-disputed,.receivable-hub-status.is-interest_pending { background: #fff2d9; color: #855b0b; }
.receivable-hub-status.is-settled,.receivable-hub-status.is-written_off,.receivable-hub-status.is-recovered { background: #edf0f2; color: #5b6870; }
.receivable-hub-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; min-width: 0; }
.receivable-hub-title { min-width: 0; }
.receivable-hub-title > span { display: block; overflow: hidden; color: var(--bs-secondary-color); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.receivable-hub-title h3 { overflow: hidden; margin: .06rem 0; font-size: .9rem; font-weight: 750; text-overflow: ellipsis; }
.receivable-hub-title small { color: var(--bs-secondary-color); font-size: .65rem; }
.receivable-hub-balance { flex: 0 0 auto; text-align: right; }
.receivable-hub-balance small { display: block; color: var(--bs-secondary-color); font-size: .6rem; }
.receivable-hub-balance strong { display: block; color: #167341; font-size: .98rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.receivable-hub-card.is-archived .receivable-hub-balance strong { color: #52616a; }
.receivable-hub-due { display: flex; align-items: center; gap: .35rem; color: #765b2d; font-size: .67rem; }
.receivable-hub-aging { display: grid; gap: .35rem; padding: .5rem; border: 1px solid #e4e9ec; border-radius: .4rem; background: #f8fafb; }
.receivable-hub-aging-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: #596870; font-size: .65rem; }
.receivable-hub-aging-heading > span { display: inline-flex; align-items: center; gap: .3rem; font-weight: 650; }
.receivable-hub-aging-heading > strong { color: #a33c38; font-size: .64rem; text-align: right; }
.receivable-hub-aging-overdue { display: flex; justify-content: space-between; gap: .5rem; color: #8e3734; font-size: .65rem; }
.receivable-hub-aging-buckets { display: flex; flex-wrap: wrap; gap: .3rem; }
.receivable-hub-aging-buckets > span { display: grid; gap: .08rem; min-width: 4.8rem; padding: .28rem .38rem; border-radius: .3rem; background: #edf1f3; }
.receivable-hub-aging-buckets small { color: #68757b; font-size: .57rem; line-height: 1.2; }
.receivable-hub-aging-buckets strong { font-size: .62rem; font-variant-numeric: tabular-nums; }
.receivable-hub-aging-unavailable { color: #68757b; font-size: .62rem; }
.receivable-hub-progress-label { display: flex; justify-content: space-between; color: var(--bs-secondary-color); font-size: .65rem; }
.receivable-hub-progress-label strong { color: var(--bs-body-color); }
.receivable-hub-progress { height: .36rem; margin-top: -.4rem; border-radius: 999px; background: #e8edef; }
.receivable-hub-progress .progress-bar { background: #18804f; }
.receivable-hub-card.is-archived .receivable-hub-progress .progress-bar { background: #708078; }
.receivable-hub-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .35rem; }
.receivable-hub-facts > div { display: grid; gap: .12rem; min-width: 0; padding: .42rem; border-radius: .35rem; background: #f5f7f8; }
.receivable-hub-facts span { color: var(--bs-secondary-color); font-size: .6rem; }
.receivable-hub-facts strong { overflow: hidden; font-size: .68rem; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.receivable-hub-interest,.receivable-hub-followup,.receivable-hub-settled { display: flex; align-items: flex-start; gap: .32rem; color: #52616a; font-size: .64rem; line-height: 1.35; }
.receivable-hub-interest i { color: #88631d; }
.receivable-hub-followup i { flex: 0 0 auto; color: #88631d; }
.receivable-hub-settled { color: #167341; }
.receivable-hub-settled i { flex: 0 0 auto; }
.receivable-hub-card-actions { display: flex; align-items: stretch; gap: .35rem; margin-top: .1rem; }
.receivable-hub-card-actions > .btn { flex: 1 1 0; font-size: .68rem; }
.receivable-hub-card-actions .receivable-collect { flex: 1 1 0; min-width: 0; }
.receivable-hub-card-actions .receivable-collect > summary { justify-content: center; gap: .28rem; padding: .48rem .4rem; border: 1px solid #cfe4da; border-radius: .4rem; background: #f5fbf7; font-size: .68rem; }
.receivable-hub-card-actions .receivable-collect > summary .ms-auto { margin-left: 0 !important; }
.receivable-hub-card-actions .receivable-collect-form { padding: .6rem .1rem .1rem; }
.receivable-hub-empty { display: grid; justify-items: center; padding: 2.5rem 1rem; border: 1px dashed #cbd5dc; border-radius: .6rem; background: var(--bs-body-bg); text-align: center; }
.receivable-hub-empty > span { display: grid; width: 2.7rem; height: 2.7rem; margin-bottom: .7rem; place-items: center; border-radius: .55rem; background: #e8f5f2; color: var(--brand); font-size: 1.2rem; }
.receivable-hub-empty h2 { margin-bottom: .25rem; font-size: 1.05rem; }
.receivable-hub-empty p { margin-bottom: .8rem; color: var(--bs-secondary-color); font-size: .8rem; }
.receivable-hub-no-results { margin: 0; padding: 1rem; border: 1px dashed var(--bs-border-color); border-radius: .45rem; color: var(--bs-secondary-color); text-align: center; font-size: .78rem; }
@media (max-width: 991.98px) { .receivable-hub-summary { grid-template-columns: repeat(2,minmax(0,1fr)); } .receivable-hub-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 767.98px) { .receivable-hub-header { align-items: flex-start; flex-direction: column; } .receivable-hub-actions { width: 100%; } .receivable-hub-actions .btn { flex: 1; } .receivable-hub-list-header { align-items: stretch; flex-direction: column; } .receivable-hub-search { width: 100%; } .receivable-hub-grid { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .receivable-hub-summary > article { padding: .62rem; } .receivable-hub-summary > article > strong { font-size: .95rem; } .receivable-hub-tabs { margin-inline: -.25rem; } .receivable-hub-tab { padding-inline: .48rem; font-size: .7rem; } .receivable-hub-card-actions { flex-direction: column; } }

/* Larger tap targets on touch screens */
@media (pointer: coarse) {
    .btn-sm { padding: .4rem .7rem; }
    .list-group-item { padding-top: .8rem; padding-bottom: .8rem; }
}
.exercise-media img {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: contain;
    width: 100%;
    background: var(--bs-tertiary-bg);
}
.choice-card{display:flex;gap:.75rem;align-items:flex-start;border:1px solid var(--bs-border-color);border-radius:.5rem;padding:1rem;background:var(--bs-body-bg);cursor:pointer}.choice-card:has(input:checked){border-color:var(--brand);box-shadow:0 0 0 .15rem rgba(13,148,136,.12)}.choice-card span{min-width:0}.choice-card strong,.choice-card small{display:block}.choice-card small{color:var(--bs-secondary-color);margin-top:.2rem}
.notification-badge {
    position: absolute;
    top: -0.4rem;
    right: -0.45rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.2rem;
    border: 2px solid #0f766e;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 0.9rem;
    text-align: center;
}

.notification-dropdown { color: inherit; }
.notification-toggle {
    position: relative;
    display: inline-grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.1rem;
}
.notification-toggle-desktop {
    border: 1px solid rgba(255,255,255,.55);
    border-radius: .375rem;
    color: #fff;
}
.notification-toggle-desktop:hover,
.notification-toggle-desktop:focus-visible { background: rgba(255,255,255,.12); color: #fff; }
.notification-toggle-mobile { color: #fff; font-size: 1.25rem; }
.notification-menu {
    width: min(24rem, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
    max-height: min(72vh, 36rem);
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    background: var(--bs-body-bg);
    box-shadow: 0 .75rem 2rem rgba(17, 24, 39, .18);
    color: var(--bs-body-color);
}
.notification-menu-header,
.notification-menu-footer { display: flex; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; }
.notification-menu-header { align-items: baseline; border-bottom: 1px solid var(--bs-border-color); }
.notification-menu-footer { justify-content: center; border-top: 1px solid var(--bs-border-color); color: var(--bs-secondary-color); font-size: .75rem; }
.notification-menu-list { max-height: min(60vh, 30rem); overflow-y: auto; overscroll-behavior: contain; }
.notification-menu-empty { margin: 0; padding: 1.5rem 1rem; color: var(--bs-secondary-color); text-align: center; font-size: .875rem; }
.notification-row { display: flex; align-items: center; gap: .25rem; padding: .35rem .5rem .35rem .65rem; border-bottom: 1px solid var(--bs-border-color); }
.notification-row:last-child { border-bottom: 0; }
.notification-row.is-unread { background: #f0faf7; }
.notification-row--finance .notification-icon { background: #fff4e5; color: #b45309; }
.notification-row--payment .notification-icon { background: #edf4ff; color: #2563eb; }
.notification-row--social .notification-icon { background: #e8f5f2; color: #0f766e; }
.notification-entry { display: flex; flex: 1; min-width: 0; align-items: flex-start; gap: .65rem; padding: .45rem; border-radius: .375rem; color: inherit; text-decoration: none; }
.notification-entry:hover,
.notification-entry:focus-visible { background: var(--bs-tertiary-bg); color: inherit; }
.notification-entry-content { display: grid; min-width: 0; gap: .15rem; }
.notification-entry-content strong { overflow: hidden; font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.notification-entry-body { display: -webkit-box; overflow: hidden; color: var(--bs-secondary-color); font-size: .78rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.notification-entry-time { color: var(--bs-secondary-color); font-size: .7rem; }
.notification-delete { display: grid; flex: 0 0 2rem; width: 2rem; height: 2rem; place-items: center; border: 0; border-radius: .375rem; background: transparent; color: var(--bs-secondary-color); }
.notification-delete:hover,
.notification-delete:focus-visible { background: #fff0f0; color: #b42318; }

.notification-icon {
    display: grid;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 50%;
    background: #e8f5f2;
    color: #0f766e;
    font-size: 1.15rem;
}

.notification-unread {
    border-left: 3px solid #0f766e !important;
    background: #f2fbf8;
}

.notification-page-header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.notification-page-eyebrow { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .25rem; color: var(--brand); font-size: .72rem; font-weight: 700; }
.notification-page-list { display: grid; gap: .5rem; }
.notification-card { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .75rem .85rem; border: 1px solid #e7ebef; border-left: 3px solid #a8b4bc; border-radius: .55rem; background: var(--bs-body-bg); box-shadow: 0 .15rem .55rem rgba(17,24,39,.04); }
.notification-card.is-unread { background: #f7fbfa; border-left-color: var(--brand); }
.notification-card--finance { border-left-color: #d97706; }
.notification-card--payment { border-left-color: #2563eb; }
.notification-card--social { border-left-color: #0f766e; }
.notification-card-icon { display: grid; width: 2.4rem; height: 2.4rem; place-items: center; border-radius: .55rem; background: #f0f3f5; color: #52616a; font-size: 1rem; }
.notification-card--finance .notification-card-icon { background: #fff4e5; color: #b45309; }
.notification-card--payment .notification-card-icon { background: #edf4ff; color: #2563eb; }
.notification-card--social .notification-card-icon { background: #e8f5f2; color: #0f766e; }
.notification-card-copy { min-width: 0; }
.notification-card-title { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.notification-card-title h2 { font-size: .88rem; }
.notification-card-copy > p { margin: .2rem 0 .35rem; color: var(--bs-secondary-color); font-size: .78rem; line-height: 1.4; }
.notification-card-meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; color: var(--bs-secondary-color); font-size: .68rem; }
.notification-card-meta > span { color: var(--brand-dark); font-weight: 600; }
.notification-card-actions { display: flex; align-items: center; gap: .35rem; }
.notification-card-actions .btn { white-space: nowrap; font-size: .73rem; }
.notification-read-button { display: grid; width: 1.9rem; height: 1.9rem; place-items: center; border: 1px solid var(--bs-border-color); border-radius: .4rem; background: #fff; color: #52616a; }
.notification-read-button:hover { border-color: #0f766e; color: #0f766e; }
.notification-empty-state { display: grid; justify-items: center; gap: .25rem; padding: 3rem 1rem; border: 1px dashed #cbd5dc; border-radius: .65rem; background: var(--bs-body-bg); color: var(--bs-secondary-color); text-align: center; }
.notification-empty-state > span { display: grid; width: 3rem; height: 3rem; margin-bottom: .4rem; place-items: center; border-radius: .6rem; background: #e8f5f2; color: var(--brand); font-size: 1.25rem; }
.notification-empty-state strong { color: var(--bs-body-color); }
.notification-empty-state p { margin: 0; font-size: .82rem; }

.financial-alert-page { width: min(100%, 54rem); margin-inline: auto; }
.financial-alert-card { padding: 1.15rem; border: 1px solid #e7ebef; border-top: 3px solid #d97706; border-radius: .65rem; background: #fff; box-shadow: 0 .25rem 1rem rgba(17,24,39,.06); }
.financial-alert-card--liquidity { border-top-color: #2563eb; }
.financial-alert-heading { display: flex; align-items: center; gap: .75rem; }
.financial-alert-heading > div { flex: 1; }
.financial-alert-icon { display: grid; flex: 0 0 2.8rem; width: 2.8rem; height: 2.8rem; place-items: center; border-radius: .6rem; background: #fff4e5; color: #b45309; font-size: 1.2rem; }
.financial-alert-card--liquidity .financial-alert-icon { background: #edf4ff; color: #2563eb; }
.financial-alert-entity { display: block; margin-bottom: .12rem; color: var(--bs-secondary-color); font-size: .72rem; }
.financial-alert-category { margin: 1.1rem 0 .25rem; }
.financial-alert-fund { display: flex; align-items: center; gap: .35rem; color: var(--bs-secondary-color); font-size: .76rem; }
.financial-alert-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin-top: .9rem; }
.financial-alert-metrics > div { display: grid; gap: .2rem; min-width: 0; padding: .7rem .75rem; border: 1px solid #e7ebef; border-radius: .5rem; background: #fafbfc; }
.financial-alert-metrics span { color: var(--bs-secondary-color); font-size: .7rem; }
.financial-alert-metrics strong { overflow-wrap: anywhere; font-size: 1rem; }
.financial-alert-excess strong { color: #b42318; }
.financial-alert-remaining strong { color: #15803d; }

/* Shared card language outside the finance summary. */
body:not([data-page="/finance"]) .card:not(.modal-content) {
    border: 1px solid #e3e8ed !important;
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(15, 23, 42, .045) !important;
    background-color: #fff;
}
body:not([data-page="/finance"]) .card:not(.modal-content) > .card-body { padding: 1rem; }
body:not([data-page="/finance"]) .card:not(.modal-content) > .card-header,
body:not([data-page="/finance"]) .card:not(.modal-content) > .card-footer { border-color: #e8edf1; background: transparent; }
body:not([data-page="/finance"]) .form-control,
body:not([data-page="/finance"]) .form-select,
body:not([data-page="/finance"]) .input-group-text { border-radius: 6px; }
body:not([data-page="/finance"]) .form-control:focus,
body:not([data-page="/finance"]) .form-select:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .14);
}
body:not([data-page="/finance"]) .btn { border-radius: 6px; }

/* Recurring commitments: scan amount, frequency, next date, then action. */
.recurring-page-header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.recurring-page-header h1 { margin: .18rem 0 .25rem; font-size: 1.65rem; font-weight: 700; }
.recurring-page-header p { margin: 0; color: #64748b; font-size: .9rem; }
.recurring-eyebrow { display: inline-flex; align-items: center; gap: .35rem; color: #0f766e; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.recurring-header-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.recurring-header-actions .btn { display: inline-flex; align-items: center; gap: .4rem; }
.recurring-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.recurring-summary-card { display: flex; min-width: 0; align-items: flex-start; gap: .7rem; padding: .9rem 1rem; border: 1px solid #e3e8ed; border-radius: 8px; background: #fff; box-shadow: 0 2px 7px rgba(15, 23, 42, .045); }
.recurring-summary-icon { display: grid; width: 2.15rem; height: 2.15rem; flex: 0 0 2.15rem; place-items: center; border-radius: 6px; background: #f1f5f9; color: #475569; }
.recurring-summary-card--outflow .recurring-summary-icon { background: #fff1f0; color: #b42318; }
.recurring-summary-card--income .recurring-summary-icon { background: #ecfdf3; color: #15803d; }
.recurring-summary-card--change .recurring-summary-icon { background: #eff6ff; color: #1d4ed8; }
.recurring-summary-card > div { display: grid; min-width: 0; gap: .12rem; }
.recurring-summary-label { color: #64748b; font-size: .72rem; font-weight: 600; }
.recurring-summary-card strong { color: #17212b; font-size: 1.25rem; line-height: 1.15; }
.recurring-summary-card small { color: #64748b; font-size: .7rem; }
.recurring-list-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: .6rem; }
.recurring-list-heading h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.recurring-list-heading span { color: #64748b; font-size: .75rem; }
.recurring-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.recurring-item { min-width: 0; padding: .8rem .9rem; border: 1px solid #e3e8ed; border-left: 3px solid #dc2626; border-radius: 8px; background: #fff; box-shadow: 0 2px 7px rgba(15, 23, 42, .045); }
.recurring-item.is-income { border-left-color: #15803d; }
.recurring-item.is-inactive { opacity: .72; }
.recurring-item-main { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; align-items: center; gap: .65rem; }
.recurring-item .provider-logo { width: 2.25rem; height: 2.25rem; flex-basis: 2.25rem; }
.recurring-item-copy { min-width: 0; }
.recurring-item-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; }
.recurring-item-title-row > a { max-width: 100%; overflow: hidden; color: #17212b; font-size: .94rem; font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.recurring-item-title-row > a:hover { color: #0f766e; text-decoration: underline; }
.recurring-kind, .recurring-estimated { display: inline-flex; align-items: center; padding: .13rem .4rem; border-radius: 4px; font-size: .64rem; font-weight: 700; line-height: 1.3; }
.recurring-kind.is-income { color: #166534; background: #dcfce7; }
.recurring-kind.is-expense { color: #991b1b; background: #fee2e2; }
.recurring-estimated { color: #854d0e; background: #fef3c7; }
.recurring-item-meta { display: flex; flex-wrap: wrap; gap: .25rem .8rem; margin-top: .22rem; color: #64748b; font-size: .72rem; }
.recurring-item-meta > span { display: inline-flex; align-items: center; gap: .25rem; }
.recurring-item-meta i { color: #8492a0; }
.recurring-item-amount { display: grid; justify-items: end; gap: .1rem; white-space: nowrap; }
.recurring-item-amount > span { color: #64748b; font-size: .65rem; }
.recurring-item-amount > strong { color: #b42318; font-size: 1.08rem; }
.recurring-item-amount.is-income > strong { color: #15803d; }
.recurring-item-footer { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin: .6rem 0 0 2.9rem; padding-top: .5rem; border-top: 1px solid #edf0f2; }
.recurring-next-date { display: inline-flex; align-items: center; gap: .35rem; color: #334155; font-size: .73rem; font-weight: 600; }
.recurring-next-date i { color: #0f766e; }
.recurring-next-date.is-muted { color: #94a3b8; font-weight: 400; }
.recurring-actions { display: flex; gap: .35rem; }
.recurring-actions .btn { display: inline-flex; align-items: center; gap: .3rem; }
.recurring-contract-label, .recurring-state-note { color: #64748b; font-size: .68rem; }
.recurring-contract-label { display: inline-flex; align-items: center; gap: .3rem; }
.recurring-state-note { display: block; margin-top: .18rem; }
.recurring-empty { display: grid; justify-items: center; gap: .45rem; padding: 2.5rem 1rem; border: 1px dashed #cbd5e1; border-radius: 8px; background: #fff; text-align: center; }
.recurring-empty > span { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border-radius: 50%; background: #e8f5f2; color: #0f766e; font-size: 1.2rem; }
.recurring-empty h2 { margin: .2rem 0 0; font-size: 1rem; }
.recurring-empty p { margin: 0 0 .3rem; color: #64748b; font-size: .82rem; }

@media (max-width: 767.98px) {
    body:not([data-page="/finance"]) .card:not(.modal-content) > .card-body { padding: .85rem; }
    .recurring-page-header { align-items: flex-start; flex-direction: column; }
    .recurring-header-actions { width: 100%; }
    .recurring-header-actions .btn { flex: 1; justify-content: center; padding-inline: .55rem; font-size: .78rem; }
    .recurring-summary { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .recurring-summary-card { gap: .5rem; padding: .7rem; }
    .recurring-summary-card:last-child { grid-column: 1 / -1; }
    .recurring-list { grid-template-columns: 1fr; }
    .recurring-summary-card strong { font-size: 1.05rem; }
    .recurring-summary-card small { font-size: .65rem; }
    .recurring-item { padding: .7rem; }
    .recurring-item-main { grid-template-columns: 2rem minmax(0, 1fr); gap: .55rem; }
    .recurring-item .provider-logo { width: 2rem; height: 2rem; flex-basis: 2rem; }
    .recurring-item-amount { grid-column: 2; justify-items: start; margin-top: .05rem; }
    .recurring-item-amount > span { display: none; }
    .recurring-item-amount > strong { font-size: 1rem; }
    .recurring-item-footer { align-items: flex-start; flex-direction: column; margin-left: 0; }
    .recurring-actions { width: 100%; }
    .recurring-actions .btn { flex: 1; justify-content: center; }
}

@media (min-width: 1400px) {
    .recurring-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.financial-alert-hint { display: flex; align-items: center; gap: .45rem; margin-top: .65rem; padding: .55rem .7rem; border-left: 3px solid #d97706; border-radius: .25rem; background: #fff8eb; color: #734b0b; font-size: .76rem; }
.financial-alert-body { margin-top: 1rem; padding: .75rem; border-radius: .45rem; background: #f7f9fa; color: #42515a; font-size: .88rem; }
.financial-alert-footnote { display: flex; align-items: center; gap: .35rem; margin-top: .75rem; color: var(--bs-secondary-color); font-size: .7rem; }
.financial-alert-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
@media (max-width: 575.98px) {
    .notification-page-header { align-items: flex-start; flex-direction: column; }
    .notification-card { grid-template-columns: 2.2rem minmax(0, 1fr); align-items: start; gap: .55rem; padding: .65rem; }
    .notification-card-icon { width: 2.1rem; height: 2.1rem; }
    .notification-card-actions { grid-column: 2; justify-content: flex-start; }
    .financial-alert-card { padding: .85rem; }
    .financial-alert-heading { gap: .5rem; }
    .financial-alert-icon { flex-basis: 2.3rem; width: 2.3rem; height: 2.3rem; }
    .financial-alert-heading .badge { margin-left: auto; }
    .financial-alert-metrics { grid-template-columns: 1fr; }
}

.net-worth-custom-horizon { width: 140px; }

.debt-detail-page { display: grid; gap: 1rem; max-width: 112rem; }
.debt-back-link { display: inline-flex; align-items: center; gap: .4rem; width: fit-content; color: #53616a; font-size: .78rem; font-weight: 650; text-decoration: none; }
.debt-back-link:hover { color: var(--brand); }
.debt-detail-hero { padding: clamp(1rem, 2vw, 1.5rem); border: 1px solid #e6e9eb; border-left: 4px solid #b83232; border-radius: .65rem; background: #fff; box-shadow: 0 .15rem .55rem rgba(17, 24, 39, .04); }
.debt-detail-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.debt-detail-title { display: grid; justify-items: start; gap: .45rem; min-width: 0; }
.debt-detail-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; color: #65717a; font-size: .75rem; font-weight: 650; }
.debt-detail-kicker > i { color: #62717a; }
.debt-detail-title h1 { margin: 0; font-size: 1.35rem; line-height: 1.25; font-weight: 750; overflow-wrap: anywhere; }
.debt-kind-tag { padding: .18rem .45rem; border-radius: .3rem; background: #eef2f4; color: #56636c; font-size: .65rem; }
.debt-status-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .23rem .52rem; border-radius: 999px; font-size: .67rem; font-weight: 700; }
.debt-status-pill.is-active { background: #fff2dd; color: #805215; }
.debt-status-pill.is-closed { background: #e8f5ed; color: #17683d; }
.debt-detail-total { display: grid; justify-items: end; gap: .1rem; text-align: right; }
.debt-detail-total > span { color: #56636c; font-size: .72rem; font-weight: 650; }
.debt-detail-total > strong { color: #a83232; font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.18; font-variant-numeric: tabular-nums; }
.debt-detail-total > small { color: #77838a; font-size: .67rem; }
.debt-detail-hero-footer { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-top: 1.1rem; padding-top: .85rem; border-top: 1px solid #edf0f1; }
.debt-next-due { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.debt-next-icon { display: grid; flex: 0 0 2.15rem; width: 2.15rem; height: 2.15rem; place-items: center; border-radius: .45rem; background: #eaf5f2; color: #137768; }
.debt-next-due > span:nth-child(2) { display: grid; gap: .08rem; }
.debt-next-due small { color: #65717a; font-size: .66rem; }
.debt-next-due strong { font-size: .85rem; font-variant-numeric: tabular-nums; }
.debt-next-due.is-overdue .debt-next-icon { background: #fff0ed; color: #b83232; }
.debt-next-due.is-overdue strong { color: #a83232; }
.debt-overdue-label { padding: .2rem .4rem; border-radius: .3rem; background: #fff0ed; color: #a83232; font-size: .62rem; font-weight: 700; }
.debt-primary-action { display: inline-flex; align-items: center; gap: .4rem; }
.debt-detail-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.debt-detail-metric { display: grid; align-content: start; gap: .45rem; min-width: 0; padding: .78rem .85rem; border: 1px solid #e6e9eb; border-radius: .55rem; background: #fff; }
.debt-detail-metric > span { display: flex; align-items: center; gap: .35rem; color: #65717a; font-size: .69rem; font-weight: 650; }
.debt-detail-metric > span i { color: #73838a; font-size: .85rem; }
.debt-detail-metric > strong { font-size: 1rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.debt-detail-metric > small { color: #77838a; font-size: .63rem; }
.debt-detail-metric--principal > strong { color: #a83232; }
.debt-detail-metric--interest > strong, .debt-detail-metric--interest > span i { color: #a4660d; }
.debt-detail-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(18rem, .9fr); align-items: start; gap: .85rem; }
.debt-detail-main, .debt-detail-aside { display: grid; align-content: start; gap: .85rem; min-width: 0; }
.debt-detail-panel, .debt-action-panel, .debt-conditions-panel, .debt-tool-panel { min-width: 0; border: 1px solid #e6e9eb; border-radius: .6rem; background: #fff; box-shadow: 0 .12rem .45rem rgba(17, 24, 39, .035); }
.debt-detail-panel, .debt-action-panel, .debt-conditions-panel { padding: .95rem; }
.debt-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: .7rem; }
.debt-panel-heading h2 { margin: .08rem 0 0; font-size: .95rem; line-height: 1.3; font-weight: 720; }
.debt-panel-eyebrow { color: #758189; font-size: .62rem; font-weight: 700; text-transform: uppercase; }
.debt-panel-count { display: inline-grid; min-width: 1.45rem; height: 1.45rem; place-items: center; padding: 0 .35rem; border-radius: 999px; background: #eef1f2; color: #56636c; font-size: .66rem; font-weight: 700; }
.debt-payment-list, .debt-charge-list, .debt-terms-list { display: grid; }
.debt-payment-row { display: grid; grid-template-columns: 2rem minmax(7rem, .8fr) minmax(11rem, 1.2fr) auto; align-items: center; gap: .65rem; padding: .7rem 0; border-top: 1px solid #edf0f1; }
.debt-payment-icon, .debt-term-icon { display: grid; width: 1.9rem; height: 1.9rem; place-items: center; border-radius: .42rem; background: #eaf5ef; color: #167341; }
.debt-payment-date, .debt-payment-split { display: grid; gap: .14rem; min-width: 0; }
.debt-payment-date strong { font-size: .75rem; }
.debt-payment-date small { color: #78848a; font-size: .64rem; }
.debt-payment-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
.debt-payment-split > span { display: grid; gap: .08rem; color: #77838a; font-size: .61rem; }
.debt-payment-split strong { color: #445159; font-size: .68rem; font-variant-numeric: tabular-nums; }
.debt-payment-total { font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.debt-detail-empty { display: flex; align-items: center; gap: .6rem; padding: .8rem 0 .2rem; border-top: 1px solid #edf0f1; color: #68757c; font-size: .76rem; }
.debt-detail-empty > i { color: #73838a; font-size: 1rem; }
.debt-charge-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .65rem; padding: .65rem 0; border-top: 1px solid #edf0f1; }
.debt-charge-row > div { display: grid; gap: .12rem; min-width: 0; }
.debt-charge-row > div strong, .debt-charge-row > strong { font-size: .75rem; }
.debt-charge-row small { color: #76828a; font-size: .66rem; overflow-wrap: anywhere; }
.debt-charge-row.is-voided { opacity: .62; }
.debt-detail-disclosure { padding: 0; overflow: hidden; }
.debt-detail-disclosure > summary, .debt-tool-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .85rem .95rem; color: #34434b; cursor: pointer; list-style: none; font-size: .8rem; font-weight: 700; }
.debt-detail-disclosure > summary::-webkit-details-marker, .debt-tool-panel > summary::-webkit-details-marker { display: none; }
.debt-detail-disclosure > summary > span, .debt-tool-panel > summary > span { display: flex; align-items: center; gap: .45rem; }
.debt-detail-disclosure[open] > summary, .debt-tool-panel[open] > summary { border-bottom: 1px solid #edf0f1; }
.debt-detail-disclosure[open] > summary > i:last-child, .debt-tool-panel[open] > summary > i:last-child { transform: rotate(180deg); }
.debt-term-row { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .7rem .95rem; border-top: 1px solid #f0f2f3; }
.debt-term-row:first-child { border-top: 0; }
.debt-term-icon { background: #edf3f5; color: #536c78; }
.debt-term-row > div { display: grid; gap: .12rem; min-width: 0; }
.debt-term-row > div strong { font-size: .72rem; }
.debt-term-row > div small, .debt-term-validity { color: #77838a; font-size: .63rem; }
.debt-term-validity { display: grid; text-align: right; white-space: nowrap; }
.debt-term-validity small { font-size: .61rem; }
.debt-action-panel--primary { border-top: 3px solid #137768; }
.debt-action-panel > p { margin: -.15rem 0 .8rem; color: #6a767d; font-size: .7rem; line-height: 1.45; }
.debt-action-symbol, .debt-conditions-icon { color: #137768; font-size: 1.1rem; }
.debt-action-form { display: grid; gap: .65rem; }
.debt-action-form .form-label { margin-bottom: .22rem; color: #56636c; font-size: .67rem; font-weight: 650; }
.debt-action-form .form-control, .debt-action-form .form-select { min-width: 0; font-size: .78rem; }
.debt-form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.debt-form-hint { display: flex; gap: .35rem; margin: 0; color: #6d7a80; font-size: .65rem; line-height: 1.4; }
.debt-form-hint i { flex: 0 0 auto; color: #137768; }
.debt-conditions-rate { display: grid; gap: .05rem; padding: .7rem; border-radius: .45rem; background: #f4f7f7; }
.debt-conditions-rate strong { font-size: 1.3rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.debt-conditions-rate span { color: #6b787e; font-size: .67rem; }
.debt-conditions-list { display: grid; gap: .48rem; margin: .75rem 0 0; }
.debt-conditions-list > div { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.debt-conditions-list dt { color: #6d7a80; font-size: .67rem; font-weight: 400; }
.debt-conditions-list dd { margin: 0; font-size: .68rem; font-weight: 650; text-align: right; }
.debt-tool-panel { overflow: hidden; }
.debt-tool-panel > summary { padding: .75rem .85rem; font-size: .74rem; }
.debt-tool-body { padding: .8rem; }
.debt-simulation-result { display: grid; gap: .55rem; margin-top: .8rem; padding: .7rem; border-radius: .45rem; background: #f3f7f6; }
.debt-simulation-result > strong { font-size: .72rem; }
.debt-simulation-result dl { display: grid; gap: .4rem; margin: 0; }
.debt-simulation-result dl > div { display: flex; justify-content: space-between; gap: .6rem; }
.debt-simulation-result dt, .debt-simulation-result dd { margin: 0; font-size: .66rem; }
.debt-simulation-result dt { color: #66737a; }
.debt-simulation-result dd { font-weight: 650; text-align: right; }
.debt-simulation-result small { color: #728087; font-size: .62rem; }
.debt-settled-panel { display: flex; align-items: center; gap: .6rem; padding: .85rem; border: 1px solid #cce6d4; border-radius: .55rem; background: #f1faf4; color: #17683d; }
.debt-settled-panel > i { font-size: 1.25rem; }
.debt-settled-panel > div { display: grid; gap: .08rem; }
.debt-settled-panel strong { font-size: .78rem; }
.debt-settled-panel span { color: #52715d; font-size: .66rem; }
.debt-detail-footnote { display: flex; align-items: flex-start; gap: .4rem; color: #748087; font-size: .66rem; }
.debt-detail-footnote > i { flex: 0 0 auto; color: #668078; }
.debt-payment-modal .modal-content { overflow: hidden; border: 1px solid #e3e9e7; border-radius: .75rem; box-shadow: 0 1rem 3rem rgba(17, 35, 31, .18); }
.debt-payment-modal .modal-header { align-items: center; padding: 1rem 1.1rem; border-bottom-color: #edf0ef; }
.debt-payment-modal-heading { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.debt-payment-modal-heading > div { display: grid; gap: .12rem; min-width: 0; }
.debt-payment-modal-heading .modal-title { font-size: 1rem; font-weight: 700; }
.debt-payment-modal-heading > div > span { color: #69777a; font-size: .75rem; overflow-wrap: anywhere; }
.debt-payment-modal-icon { display: grid; width: 2.5rem; height: 2.5rem; flex: 0 0 auto; place-items: center; border-radius: .6rem; background: #e8f5f1; color: #137768; font-size: 1.15rem; }
.debt-payment-modal .modal-body { display: grid; gap: .8rem; padding: 1rem 1.1rem; }
.debt-payment-modal .modal-footer { gap: .5rem; padding: .8rem 1.1rem; border-top-color: #edf0ef; }
@media (max-width: 991.98px) {
    .debt-detail-layout { grid-template-columns: minmax(0, 1fr); }
    .debt-detail-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .debt-action-panel--primary { grid-row: span 2; }
}
@media (max-width: 767.98px) {
    .debt-detail-hero { padding: .9rem; }
    .debt-detail-heading { flex-direction: column; }
    .debt-detail-title h1 { font-size: 1.15rem; }
    .debt-detail-total { justify-items: start; text-align: left; }
    .debt-detail-total > strong { font-size: 1.65rem; }
    .debt-detail-hero-footer { align-items: stretch; flex-direction: column; }
    .debt-primary-action { justify-content: center; width: 100%; }
    .debt-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
    .debt-detail-metric { padding: .65rem; }
    .debt-detail-metric > span { align-items: flex-start; font-size: .62rem; }
    .debt-detail-metric > strong { font-size: .88rem; }
    .debt-detail-aside { grid-template-columns: minmax(0, 1fr); }
    .debt-action-panel--primary { grid-row: auto; }
    .debt-payment-row { grid-template-columns: 1.9rem minmax(0, 1fr) auto; gap: .45rem; }
    .debt-payment-split { grid-column: 2 / -1; grid-row: 2; }
    .debt-payment-total { grid-column: 3; grid-row: 1; }
    .debt-charge-row { grid-template-columns: minmax(0, 1fr) auto; }
    .debt-charge-row form { grid-column: 1 / -1; }
}
@media (max-width: 390px) {
    .debt-payment-split { grid-template-columns: 1fr; }
    .debt-payment-split > span { display: flex; justify-content: space-between; gap: .4rem; }
    .debt-term-row { grid-template-columns: 1.8rem minmax(0, 1fr); }
    .debt-term-validity { grid-column: 2; display: flex; justify-content: space-between; gap: .5rem; text-align: left; }
}

.owned-assets-page { display: grid; gap: 1rem; max-width: 92rem; margin-inline: auto; }
.owned-assets-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.owned-assets-header > div { min-width: 0; }
.owned-assets-eyebrow { display: flex; align-items: center; gap: .4rem; margin-bottom: .25rem; color: #137768; font-size: .7rem; font-weight: 700; }
.owned-assets-header h1 { margin: 0; font-size: 1.35rem; font-weight: 750; }
.owned-assets-header p { margin: .3rem 0 0; color: #65717a; font-size: .78rem; }
.owned-assets-add { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.owned-assets-overview { display: flex; align-items: center; gap: 1rem; min-height: 3.5rem; padding: .65rem .9rem; border-block: 1px solid #e6e9eb; background: #f7faf9; }
.owned-assets-overview > div { display: flex; align-items: baseline; gap: .35rem; }
.owned-assets-overview > div > strong { color: #24343b; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.owned-assets-overview > div > span, .owned-assets-overview-note { color: #69777c; font-size: .7rem; }
.owned-assets-overview-divider { align-self: stretch; width: 1px; background: #dce4e2; }
.owned-assets-overview-note { margin-left: auto; }
.owned-assets-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.owned-assets-search { position: relative; width: min(100%, 24rem); }
.owned-assets-search > i { position: absolute; top: 50%; left: .75rem; color: #76838a; transform: translateY(-50%); }
.owned-assets-search .form-control { min-height: 2.45rem; padding-left: 2.2rem; border-color: #dfe5e6; font-size: .78rem; }
.owned-assets-result-count { color: #6d7a80; font-size: .69rem; white-space: nowrap; }
.owned-assets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: .7rem; }
.owned-asset-card { position: relative; display: grid; gap: .9rem; min-width: 0; min-height: 8rem; padding: .9rem; border: 1px solid #e3e8e8; border-radius: .55rem; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 .12rem .4rem rgba(17, 24, 39, .035); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.owned-asset-card:hover, .owned-asset-card:focus-visible { border-color: #95c9c1; color: inherit; box-shadow: 0 .28rem .75rem rgba(17, 62, 57, .1); transform: translateY(-1px); }
.owned-asset-card:focus-visible { outline: 2px solid #137768; outline-offset: 2px; }
.owned-asset-card-top { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.owned-asset-icon { display: grid; flex: 0 0 2.2rem; width: 2.2rem; height: 2.2rem; place-items: center; border-radius: .45rem; background: #e9f5f2; color: #137768; font-size: 1rem; }
.owned-asset-type { color: #65717a; font-size: .68rem; font-weight: 650; }
.owned-asset-financed { display: inline-flex; align-items: center; gap: .25rem; margin-left: auto; padding: .2rem .38rem; border-radius: .3rem; background: #fff3df; color: #895b10; font-size: .6rem; font-weight: 700; white-space: nowrap; }
.owned-asset-card-main { display: flex; justify-content: space-between; align-items: flex-end; gap: .65rem; min-width: 0; }
.owned-asset-name-block { display: grid; gap: .2rem; min-width: 0; }
.owned-asset-name-block h2 { margin: 0; overflow-wrap: anywhere; font-size: .9rem; font-weight: 720; line-height: 1.3; }
.owned-asset-name-block > span { color: #738087; font-size: .65rem; line-height: 1.35; }
.owned-asset-value { display: grid; justify-items: end; gap: .13rem; min-width: 6rem; text-align: right; }
.owned-asset-value > span { color: #748087; font-size: .6rem; }
.owned-asset-value > strong { color: #176b4a; font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.owned-asset-open { position: absolute; top: .95rem; right: .85rem; display: grid; width: 1.5rem; height: 1.5rem; place-items: center; border-radius: .3rem; color: #87938f; font-size: .72rem; opacity: 0; transition: opacity .15s ease; }
.owned-asset-card:hover .owned-asset-open, .owned-asset-card:focus-visible .owned-asset-open { opacity: 1; }
.owned-assets-empty { display: grid; justify-items: center; gap: .55rem; padding: 3rem 1.25rem; border: 1px dashed #b9cbc8; border-radius: .6rem; background: #f8fbfa; text-align: center; }
.owned-assets-empty-icon { display: grid; width: 3rem; height: 3rem; place-items: center; border-radius: .6rem; background: #e8f4f1; color: #137768; font-size: 1.35rem; }
.owned-assets-empty h2 { margin: .2rem 0 0; font-size: 1rem; }
.owned-assets-empty p { max-width: 25rem; margin: 0 0 .35rem; color: #68757c; font-size: .75rem; }
.owned-assets-no-results { margin: 0; padding: 1rem; border-radius: .45rem; background: #f5f7f7; color: #68757c; font-size: .75rem; text-align: center; }
.owned-assets-history { overflow: hidden; border: 1px solid #e3e8e8; border-radius: .55rem; background: #fff; }
.owned-assets-history > summary { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding: .8rem .9rem; color: #34434b; cursor: pointer; list-style: none; font-size: .76rem; font-weight: 700; }
.owned-assets-history > summary::-webkit-details-marker { display: none; }
.owned-assets-history > summary > span { display: inline-flex; align-items: center; gap: .4rem; }
.owned-assets-history > summary > span:last-child { color: #77838a; font-size: .65rem; font-weight: 500; }
.owned-assets-history[open] > summary { border-bottom: 1px solid #edf0f1; }
.owned-assets-history[open] > summary > span:last-child > i { transform: rotate(180deg); }
.owned-assets-history-list { display: grid; }
.owned-assets-history-list > a { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .65rem .9rem; border-bottom: 1px solid #edf0f1; color: inherit; text-decoration: none; }
.owned-assets-history-list > a:last-child { border-bottom: 0; }
.owned-assets-history-list > a:hover { background: #f7faf9; }
.owned-assets-history-list > a > span:first-child { display: grid; gap: .12rem; min-width: 0; }
.owned-assets-history-list strong { overflow-wrap: anywhere; font-size: .73rem; }
.owned-assets-history-list small { color: #78848a; font-size: .63rem; }
.owned-assets-history-status { display: inline-flex; align-items: center; gap: .35rem; color: #137768; font-size: .65rem; white-space: nowrap; }
.owned-assets-history-status.is-void { color: #a83232; }
.owned-assets-pagination { display: flex; justify-content: flex-end; align-items: center; gap: .75rem; padding: .65rem .9rem; border-top: 1px solid #edf0f1; color: #748087; font-size: .65rem; }
.owned-assets-pagination a { color: #137768; font-weight: 650; text-decoration: none; }
@media (max-width: 575px) {
    .owned-assets-header { align-items: flex-start; }
    .owned-assets-header h1 { font-size: 1.15rem; }
    .owned-assets-header p { max-width: 20rem; font-size: .7rem; }
    .owned-assets-add { flex: 0 0 auto; padding: .45rem .55rem; font-size: .68rem; }
    .owned-assets-overview { flex-wrap: wrap; gap: .45rem .7rem; padding-inline: .6rem; }
    .owned-assets-overview > div { gap: .25rem; }
    .owned-assets-overview > div > strong { font-size: .9rem; }
    .owned-assets-overview > div > span, .owned-assets-overview-note { font-size: .62rem; }
    .owned-assets-overview-note { flex-basis: 100%; margin-left: 0; }
    .owned-assets-toolbar { align-items: flex-end; }
    .owned-assets-search { width: 100%; }
    .owned-assets-result-count { padding-bottom: .55rem; }
    .owned-asset-card { min-height: 7.4rem; padding: .75rem; }
    .owned-asset-card-main { align-items: flex-start; flex-direction: column; }
    .owned-asset-value { justify-items: start; text-align: left; }
    .owned-asset-open { opacity: 1; }
}
@media (max-width: 380px) {
    .owned-assets-header { flex-direction: column; }
    .owned-assets-add { align-self: flex-start; }
    .owned-assets-toolbar { align-items: stretch; flex-direction: column; }
    .owned-assets-result-count { padding-bottom: 0; text-align: right; }
}

.finance-accounts-page { display: grid; gap: 1rem; max-width: 94rem; margin-inline: auto; }
.finance-accounts-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.finance-accounts-header > div { min-width: 0; }
.finance-accounts-eyebrow { display: flex; align-items: center; gap: .38rem; margin-bottom: .2rem; color: #137768; font-size: .68rem; font-weight: 700; }
.finance-accounts-header h1 { margin: 0; font-size: 1.35rem; font-weight: 750; }
.finance-accounts-header p { margin: .25rem 0 0; color: #69777d; font-size: .7rem; }
.finance-account-reconcile { display: inline-flex; align-items: center; gap: .4rem; border-color: #dfe5e6; font-size: .7rem; white-space: nowrap; }
.finance-account-snapshot { display: grid; gap: .65rem; }
.finance-account-currency { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); align-items: center; gap: .55rem; }
.finance-account-currency > h2 { margin: 0; color: #647279; font-size: .68rem; font-weight: 700; }
.finance-account-snapshot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .5rem; }
.finance-account-snapshot-item { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-width: 0; padding: .65rem .75rem; border: 1px solid #e4e9e9; border-left-width: 3px; border-radius: .45rem; background: #fff; color: inherit; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.finance-account-snapshot-item:hover { background: #f8fbfa; border-color: #b8d6d0; color: inherit; }
.finance-account-snapshot-item > span { display: flex; align-items: center; gap: .35rem; color: #65717a; font-size: .66rem; font-weight: 650; }
.finance-account-snapshot-item > span > i { color: #71818a; }
.finance-account-snapshot-item > strong { font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.finance-account-snapshot-item.is-available { border-left-color: #168257; }
.finance-account-snapshot-item.is-available > strong { color: #167341; }
.finance-account-snapshot-item.is-credit { border-left-color: #c44545; }
.finance-account-snapshot-item.is-credit > strong { color: #b83232; }
.finance-account-snapshot-item.is-voucher { border-left-color: #d28a2f; }
.finance-account-snapshot-item.is-voucher > strong { color: #895b10; }
.finance-accounts-toolbar { display: flex; justify-content: flex-end; align-items: center; gap: .65rem; }
.finance-accounts-add { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.finance-account-group { display: grid; gap: .55rem; scroll-margin-top: 1rem; }
.finance-account-group-heading { display: flex; align-items: center; gap: .45rem; padding-bottom: .4rem; border-bottom: 1px solid #e7ebeb; }
.finance-account-group-heading > h2 { font-size: .82rem !important; font-weight: 720; }
.finance-account-group-icon { display: grid; width: 1.7rem; height: 1.7rem; place-items: center; border-radius: .38rem; background: #e9f5f2; color: #137768; font-size: .8rem; }
.finance-account-group-icon.is-credit { background: #fff0ed; color: #b83232; }
.finance-account-group-icon.is-investment { background: #edf3fb; color: #336a9e; }
.finance-account-group-icon.is-voucher { background: #fff4e4; color: #9a6419; }
.finance-account-group-count { margin-left: auto; color: #78848a; font-size: .65rem; font-variant-numeric: tabular-nums; }
.finance-account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 23rem), 1fr)); gap: .55rem; }
.finance-account-card { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto .8rem; align-items: center; gap: .65rem; min-width: 0; min-height: 4.2rem; padding: .65rem .75rem; border: 1px solid #e3e8e8; border-radius: .5rem; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 .1rem .35rem rgba(17, 24, 39, .03); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.finance-account-card:hover, .finance-account-card:focus-visible { border-color: #a9cec7; color: inherit; box-shadow: 0 .25rem .65rem rgba(17, 62, 57, .08); transform: translateY(-1px); }
.finance-account-card:focus-visible { outline: 2px solid #137768; outline-offset: 2px; }
.finance-account-card[hidden] { display: none; }
.finance-account-card-icon { display: grid; width: 2.1rem; height: 2.1rem; place-items: center; border-radius: .4rem; background: #e9f5f2; color: #137768; font-size: .9rem; }
.finance-account-card.is-investment .finance-account-card-icon { background: #edf3fb; color: #336a9e; }
.finance-account-card.is-credit .finance-account-card-icon { background: #fff0ed; color: #b83232; }
.finance-account-card.is-voucher .finance-account-card-icon { background: #fff4e4; color: #9a6419; }
.finance-account-card-copy { display: grid; gap: .16rem; min-width: 0; }
.finance-account-card-copy > strong { overflow-wrap: anywhere; font-size: .78rem; font-weight: 700; line-height: 1.25; }
.finance-account-card-copy > small { overflow-wrap: anywhere; color: #718087; font-size: .62rem; line-height: 1.3; }
.finance-account-closed { display: inline-block; margin-left: .2rem; padding: .12rem .28rem; border-radius: .25rem; background: #f0f2f3; color: #68757c; font-size: .56rem; font-weight: 650; vertical-align: .08rem; }
.finance-account-card-balance { display: grid; justify-items: end; gap: .08rem; min-width: 5.8rem; text-align: right; }
.finance-account-card-balance > small { color: #77838a; font-size: .58rem; }
.finance-account-card-balance > strong { color: #176b4a; font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.finance-account-card.is-credit .finance-account-card-balance > strong { color: #b83232; }
.finance-account-card-chevron { color: #899499; font-size: .68rem; }
.finance-accounts-empty { display: grid; justify-items: center; gap: .5rem; padding: 2.4rem 1rem; border: 1px dashed #c4d2d0; border-radius: .55rem; background: #f8fbfa; text-align: center; }
.finance-accounts-empty-icon { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border-radius: .55rem; background: #e9f5f2; color: #137768; font-size: 1.2rem; }
.finance-accounts-empty h2 { margin: .2rem 0 0; font-size: .98rem; }
.finance-accounts-empty p { max-width: 24rem; margin: 0 0 .35rem; color: #69777d; font-size: .72rem; }
.finance-accounts-archived { overflow: hidden; border: 1px solid #e3e8e8; border-radius: .5rem; background: #fff; }
.finance-accounts-archived > summary { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .75rem .85rem; color: #46555c; cursor: pointer; list-style: none; font-size: .72rem; font-weight: 700; }
.finance-accounts-archived > summary::-webkit-details-marker { display: none; }
.finance-accounts-archived > summary > span { display: inline-flex; align-items: center; gap: .4rem; }
.finance-accounts-archived > summary > span:last-child { color: #78848a; font-size: .65rem; font-weight: 500; }
.finance-accounts-archived[open] > summary { border-bottom: 1px solid #edf0f1; }
.finance-accounts-archived > .finance-account-grid { padding: .65rem; }
.finance-account-card.is-archived { background: #f8f9f9; box-shadow: none; }
.tanda-card { border: 1px solid #e6ebeb !important; border-radius: .6rem; }
.tanda-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.tanda-stats > div { display: grid; gap: .12rem; padding: .6rem; border-radius: .45rem; background: #f5f8f7; }
.tanda-stats span, .tanda-dates span { color: #68777c; font-size: .68rem; }
.tanda-stats strong, .tanda-dates strong { font-size: .8rem; font-variant-numeric: tabular-nums; }
.tanda-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.tanda-dates > div { display: grid; grid-template-columns: 1rem minmax(0, 1fr); gap: .15rem .4rem; align-items: center; }
.tanda-dates > div > i { grid-row: 1 / span 2; }
.tanda-contribution-preview { display: flex; align-items: center; gap: .7rem; padding: .8rem; border-left: 3px solid #168257; border-radius: .35rem; background: #eef8f3; color: #176b4b; }
.tanda-contribution-preview > i { font-size: 1.2rem; }
.tanda-contribution-preview > span { display: grid; gap: .1rem; }
.tanda-contribution-preview small { color: #4b6a5c; font-size: .7rem; }
.tanda-contribution-preview strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
    .finance-accounts-header { align-items: flex-start; }
    .finance-accounts-header h1 { font-size: 1.15rem; }
    .finance-account-reconcile { width: 2.25rem; height: 2.25rem; justify-content: center; padding: 0; }
    .finance-account-reconcile > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .finance-account-currency { grid-template-columns: 2rem minmax(0, 1fr); gap: .4rem; }
    .finance-account-snapshot-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: .35rem; }
    .finance-account-snapshot-item { align-items: flex-start; flex-direction: column; gap: .2rem; padding: .55rem; }
    .finance-account-snapshot-item > strong { font-size: .78rem; }
    .finance-accounts-toolbar { flex-wrap: wrap; }
    .finance-account-grid { grid-template-columns: minmax(0, 1fr); }
    .finance-account-card { grid-template-columns: 2rem minmax(0, 1fr) auto .65rem; gap: .45rem; min-height: 3.9rem; padding: .55rem; }
    .finance-account-card-icon { width: 1.9rem; height: 1.9rem; }
    .finance-account-card-balance { min-width: 5.2rem; }
}

/* Keep custom finance cards visually aligned with Recurring and Transactions. */
.upcoming-item-card,
.transaction-card-polished,
.finance-account-card,
.owned-asset-card,
.project-hub-card,
.shared-hub-card,
.budget-progress-card,
.debt-overview-card,
.receivable-hub-card,
.recurring-item {
    border-radius: 8px !important;
    box-shadow: 0 2px 7px rgba(15, 23, 42, .045) !important;
}
.upcoming-item-card {
    border-top: 1px solid #e3e8ed;
    border-left: 3px solid var(--upcoming-accent);
    transition: box-shadow .15s ease, transform .15s ease;
}
.upcoming-item-card:hover,
.transaction-card-polished:hover,
.finance-account-card:hover,
.owned-asset-card:hover,
.project-hub-card:hover,
.shared-hub-card:hover,
.budget-progress-card:hover {
    box-shadow: 0 4px 11px rgba(15, 23, 42, .085) !important;
    transform: translateY(-1px);
}
.upcoming-item-top .provider-logo { border-radius: 6px; }
.upcoming-item-top > div strong { color: #17212b; font-size: .92rem; }
.upcoming-item-main { border-top-color: #edf0f2; }
.upcoming-card-actions .btn { border-radius: 6px; }
.receivable-hub-card,
.debt-overview-card { border-color: #e3e8ed; }
.finance-account-card,
.owned-asset-card,
.project-hub-card,
.shared-hub-card,
.budget-progress-card { border-color: #e3e8ed; }

/* Debt cards use the same compact hierarchy as other finance lists. */
.debt-overview-summary { gap: .75rem; }
.debt-overview-metric {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 4.2rem;
    padding: .75rem .85rem;
    border: 1px solid #e3e8ed;
    border-top: 1px solid #e3e8ed;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(15, 23, 42, .045);
}
.debt-overview-metric-icon {
    display: grid;
    flex: 0 0 2.1rem;
    width: 2.1rem;
    height: 2.1rem;
    place-items: center;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: .9rem;
}
.debt-overview-metric > div { display: grid; min-width: 0; gap: .12rem; }
.debt-overview-metric-label { color: #64748b; font-size: .72rem; font-weight: 600; }
.debt-overview-metric > div > strong { overflow-wrap: anywhere; color: #17212b; font-size: 1.12rem; line-height: 1.15; }
.debt-overview-metric > div > small { color: #64748b; font-size: .68rem; }
.debt-overview-metric.is-capital .debt-overview-metric-icon { background: #fff1f0; color: #b42318; }
.debt-overview-metric.is-interest .debt-overview-metric-icon { background: #fff7e8; color: #a66508; }
.debt-overview-metric.is-total .debt-overview-metric-icon { background: #ecfdf3; color: #15803d; }
.debt-overview-metric.is-next .debt-overview-metric-icon { background: #eff6ff; color: #1d4ed8; }
.debt-overview-card {
    gap: .55rem;
    padding: .8rem .85rem;
    border: 1px solid #e3e8ed;
    border-left: 3px solid #dc2626;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(15, 23, 42, .045);
    transition: box-shadow .15s ease, transform .15s ease;
}
.debt-overview-card:hover { box-shadow: 0 4px 11px rgba(15, 23, 42, .085); transform: translateY(-1px); }
.debt-overview-card.is-settled { border-left-color: #94a3b8; background: #fff; }
.debt-overview-icon { width: 2.1rem; height: 2.1rem; border-radius: 6px; }
.debt-overview-title-row { align-items: center; }
.debt-overview-title h3 { font-size: .94rem; }
.debt-overview-title > span { font-size: .68rem; }
.debt-overview-title small { font-size: .7rem; }
.debt-overview-balance small { font-size: .64rem; }
.debt-overview-balance strong { font-size: 1.02rem; }
.debt-overview-breakdown {
    gap: .35rem;
    padding: .55rem 0;
    border-top: 1px solid #edf0f2;
    border-bottom: 1px solid #edf0f2;
    border-radius: 0;
    background: transparent;
}
.debt-overview-breakdown > div + div { padding-left: .5rem; border-left: 1px solid #e8edf1; }
.debt-overview-breakdown span { font-size: .64rem; }
.debt-overview-breakdown strong { font-size: .72rem; }
.debt-overview-payments { gap: .4rem; }
.debt-overview-progress-label { font-size: .69rem; }
.debt-overview-meta { gap: .3rem .7rem; font-size: .67rem; }
.debt-overview-actions { gap: .45rem; padding-top: .45rem; border-top: 1px solid #edf0f2; }
.debt-overview-actions .btn { min-height: 2rem; border-radius: 6px; }
.debt-overview-history,.debt-overview-unlinked { border-radius: 8px; }
.debt-overview-history > .debt-overview-grid { gap: .7rem; }

@media (max-width: 767.98px) {
    .debt-overview-metric { min-height: 3.7rem; gap: .5rem; padding: .6rem; }
    .debt-overview-metric-icon { flex-basis: 1.8rem; width: 1.8rem; height: 1.8rem; }
    .debt-overview-metric > div > strong { font-size: .98rem; }
    .debt-overview-card { padding: .72rem; }
    .debt-overview-title-row { align-items: flex-start; }
}

.receivable-hub-card { border-left: 3px solid #16804c; }
.receivable-hub-card.is-archived { border-left-color: #94a3b8; }
.receivable-hub-card-actions { justify-content: flex-end; gap: .4rem; padding-top: .35rem; border-top: 1px solid #edf0f2; }
.receivable-hub-card-actions > .btn,
.receivable-hub-card-actions .receivable-collect { flex: 0 0 auto; }
.receivable-hub-card-actions > .btn { display: inline-grid; width: 2.15rem; height: 2.15rem; place-items: center; padding: 0; border-radius: 6px; font-size: .9rem; }
.receivable-hub-card-actions > .btn:focus-visible { outline: 2px solid #0f766e; outline-offset: 2px; }
@media (max-width: 380px) { .receivable-hub-card-actions { flex-direction: row; } }

.btn-group[aria-label="Tu papel en la tanda"] > .btn-check:checked + .btn-outline-brand {
    --bs-btn-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0f766e;
    --bs-btn-active-border-color: #0f766e;
    color: #fff;
}

.icon-only-action:not(.w-100) {
    display: inline-flex;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 2.35rem;
    align-items: center;
    justify-content: center;
    padding: .25rem;
    line-height: 1;
}
.icon-only-action.w-100 {
    display: flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
}
.icon-only-action > i.bi { margin: 0 !important; font-size: 1rem; line-height: 1; }
.icon-only-action:focus-visible { outline: 2px solid #0f766e; outline-offset: 2px; }
@media (max-width: 767.98px) {
    .icon-only-action:not(.w-100) { width: auto; min-width: 4.25rem; max-width: min(7rem, 100%); height: auto; min-height: 3.25rem; flex: 0 1 auto; flex-direction: column; gap: .22rem; padding: .4rem .35rem; line-height: 1.15; white-space: normal; }
    .icon-only-action.w-100 { gap: .4rem; }
    .icon-only-action > .icon-only-action-label { position: static !important; display: block; width: 100% !important; max-width: 100%; height: auto !important; padding: 0 !important; margin: 0 !important; overflow: visible !important; clip: auto !important; clip-path: none !important; white-space: normal !important; overflow-wrap: normal; word-break: normal; hyphens: auto; text-align: center; font-size: .7rem; line-height: 1.15; }
    .investment-page-header { align-items: flex-start !important; flex-direction: column; }
    .investment-create-button { flex: 0 0 auto !important; min-width: 6rem; }
    .investment-create-button.icon-only-action { max-width: 8rem; }
}
