/* Smaller Idea — Application Styles
   Visuals aligned with the admin UI kit (colors, type, sidebar, topbar,
   cards, tables, forms, buttons, tiers, impersonation bars). */

@import url('./smaller-idea.css');

/* ─── Base ──────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--si-font-body);
    background: var(--si-bg);
    color: var(--si-fg-1);
    font-size: 14.4px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--si-teal-deep); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--si-navy); }

h1, h2, h3 {
    font-family: var(--si-font-display);
    color: var(--si-fg-1);
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    margin: 0 0 var(--si-space-4);
}
h4, h5, h6 {
    font-family: var(--si-font-body);
    color: var(--si-fg-1);
    line-height: var(--si-leading-tight);
    letter-spacing: -0.01em;
    margin: 0 0 var(--si-space-3);
}
h1 { font-size: var(--si-text-4xl); }
h2 { font-size: var(--si-text-3xl); }
h3 { font-size: var(--si-text-2xl); }
h4 { font-size: var(--si-text-xl);  font-weight: var(--si-weight-bold); }
h5 { font-size: var(--si-text-lg);  font-weight: var(--si-weight-semibold); }
h6 { font-size: var(--si-text-md);  font-weight: var(--si-weight-semibold); text-transform: uppercase; letter-spacing: 0.08em; color: var(--si-fg-3); }

/* ─── Wrapper ───────────────────────────────────────────────────── */
#wrapper {
    display: flex;
    min-height: 100vh;
}

/* ─── Sidebar ───────────────────────────────────────────────────── */
#sidebar {
    width: var(--si-sidebar-w);
    min-width: var(--si-sidebar-w);
    background: var(--si-surface-alt);
    border-right: 1px solid var(--si-line);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    transition: transform 0.22s ease;
    overflow: hidden;
}

.sidebar-brand {
    padding: 14px 20px 12px;
    min-height: var(--si-topbar-h);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.sidebar-brand .brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.sidebar-brand .brand-wm,
.sidebar-brand a {
    font-family: var(--si-font-display);
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    color: var(--si-ink);
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
}
.sidebar-brand a:hover,
.sidebar-brand .brand-wm:hover { color: var(--si-ink); }
.sidebar-brand .brand-mark {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}
.sidebar-brand .brand-dot { color: var(--si-teal); }
.sidebar-brand .brand-tenant {
    font-family: var(--si-font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--si-fg-3);
    margin-top: 3px;
    letter-spacing: 0.04em;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.sidebar-scrollable {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 0;
}

.sidebar-scrollable::-webkit-scrollbar { width: 4px; }
.sidebar-scrollable::-webkit-scrollbar-track { background: transparent; }
.sidebar-scrollable::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 2px;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-item {
    position: relative;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 22px 8px 19px;
    color: var(--si-fg-2);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.sidebar-nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--si-ink);
}

.sidebar-nav-link.active {
    background: rgba(245, 166, 35, 0.10);
    color: var(--si-ink);
    font-weight: 600;
    border-left-color: var(--si-orange);
}

.sidebar-nav-link.active .sidebar-nav-icon {
    color: var(--si-orange-deep);
}

.sidebar-nav-icon {
    width: 18px;
    font-size: 14px;
    text-align: center;
    color: var(--si-fg-3);
    flex-shrink: 0;
}

/* FA Pro 7 stacking */
.fa-sharp-duotone { position: relative; letter-spacing: normal; }
.fa-sharp-duotone::before { position: static; }

/* ─── Sidebar sub-menu / groups ─────────────────────────────────── */
.sidebar-nav-group-toggle {
    cursor: pointer;
    user-select: none;
}

.sidebar-nav-arrow {
    font-size: 0.65rem;
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.sidebar-nav-group-toggle[aria-expanded="true"] .sidebar-nav-arrow {
    transform: rotate(180deg);
}

.sidebar-sub-nav {
    list-style: none;
    padding: 4px 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.04);
}

.sidebar-sub-link {
    padding-left: 2.75rem;
    font-size: 13px;
}

/* ─── Sidebar footer ────────────────────────────────────────────── */
.sidebar-foot {
    margin-top: auto;
    padding: 12px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 11.5px;
    color: var(--si-fg-3);
}
.sidebar-foot a { color: var(--si-teal-deep); }

/* ─── Sidebar Overlay (mobile) ──────────────────────────────────── */
#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
}

#sidebar-overlay.active {
    display: block;
}

/* ─── Content Wrapper ───────────────────────────────────────────── */
#content-wrapper {
    flex: 1;
    margin-left: var(--si-sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

/* ─── Topbar ────────────────────────────────────────────────────── */
#topbar {
    height: var(--si-topbar-h);
    background: var(--si-surface);
    border-bottom: 1px solid var(--si-line);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

#sidebar-toggle {
    background: none;
    border: none;
    color: var(--si-fg-2);
    font-size: 1.1rem;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    margin-right: 0.25rem;
    border-radius: 6px;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}

#sidebar-toggle:hover {
    background: var(--si-bg-soft);
    color: var(--si-ink);
}

.topbar-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--si-ink);
    flex: 1;
    min-width: 0;
}

.topbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.topbar-nav-link {
    color: var(--si-fg-2);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s, background 0.15s;
}

.topbar-nav-link:hover,
.topbar-nav-link.show {
    background: var(--si-bg-soft);
    color: var(--si-ink);
}

.topbar-nav-link i { font-size: 14px; }

/* Hide Bootstrap dropdown caret */
.topbar-nav-link::after { display: none; }

/* ─── Impersonation Bar ─────────────────────────────────────────── */
:root {
    --impersonation-bar-height: 40px;
}

#impersonation-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--impersonation-bar-height);
    background: var(--si-impersonate);
    text-align: center;
    z-index: 2000;
    padding: 0;
    margin: 0;
}

#impersonation-bar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 0 1rem;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.15s;
}

#impersonation-bar button:hover {
    background: rgba(0, 0, 0, 0.15);
}

body:has(#impersonation-bar) #wrapper { margin-top: var(--impersonation-bar-height); }
body:has(#impersonation-bar) #sidebar { top: var(--impersonation-bar-height); }

/* ─── Super Admin Impersonation Bar ────────────────────────────── */
:root {
    --super-admin-bar-height: 40px;
}

#super-admin-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--super-admin-bar-height);
    background: var(--si-super-admin);
    color: var(--si-super-admin-fg);
    text-align: center;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0 1rem;
}

#super-admin-bar strong { color: #fff; font-weight: 700; }
#super-admin-bar a { color: var(--si-super-admin-fg); text-decoration: underline; }

body:has(#super-admin-bar) #wrapper { margin-top: var(--super-admin-bar-height); }
body:has(#super-admin-bar) #sidebar { top: var(--super-admin-bar-height); }

/* ─── Page Content ──────────────────────────────────────────────── */
#page-content {
    flex: 1;
    padding: 28px 32px 64px;
}

/* ─── Cards ─────────────────────────────────────────────────────── */
.card {
    background: var(--si-surface);
    border: 1px solid var(--si-line);
    border-radius: var(--si-radius);
    box-shadow: 0 1px 3px rgba(31, 42, 68, 0.04);
}

.card-header {
    background: var(--si-surface);
    border-bottom: 1px solid var(--si-line);
    padding: 14px 18px;
    font-weight: 700;
    color: var(--si-ink);
    font-size: 14.5px;
}

.card-footer {
    background: var(--si-surface);
    border-top: 1px solid var(--si-line);
    padding: 10px 18px;
    font-size: 12.5px;
    color: var(--si-fg-3);
}

/* ─── Buttons (Bootstrap overrides) ─────────────────────────────── */
.btn {
    font-family: var(--si-font-body);
    font-weight: 700;
    font-size: 13.5px;
    border-radius: var(--si-radius);
    padding: 9px 16px;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-sm { padding: 6px 11px; font-size: 12.5px; }

.btn-primary {
    --bs-btn-bg: var(--si-orange);
    --bs-btn-border-color: var(--si-orange);
    --bs-btn-hover-bg: var(--si-orange-deep);
    --bs-btn-hover-border-color: var(--si-orange-deep);
    --bs-btn-active-bg: var(--si-orange-deep);
    --bs-btn-active-border-color: var(--si-orange-deep);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-bg: var(--si-orange);
    --bs-btn-disabled-border-color: var(--si-orange);
}

.btn-outline-primary {
    --bs-btn-color: var(--si-orange-deep);
    --bs-btn-border-color: var(--si-orange);
    --bs-btn-hover-bg: var(--si-orange);
    --bs-btn-hover-border-color: var(--si-orange);
    --bs-btn-active-bg: var(--si-orange-deep);
    --bs-btn-active-border-color: var(--si-orange-deep);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
}

.btn-success {
    --bs-btn-bg: var(--si-green);
    --bs-btn-border-color: var(--si-green);
    --bs-btn-hover-bg: var(--si-green-deep);
    --bs-btn-hover-border-color: var(--si-green-deep);
    --bs-btn-active-bg: var(--si-green-deep);
}

.btn-info {
    --bs-btn-bg: var(--si-teal);
    --bs-btn-border-color: var(--si-teal);
    --bs-btn-hover-bg: var(--si-teal-deep);
    --bs-btn-hover-border-color: var(--si-teal-deep);
    --bs-btn-active-bg: var(--si-teal-deep);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
}

.btn-danger {
    --bs-btn-bg: var(--si-danger);
    --bs-btn-border-color: var(--si-danger);
}

.btn-outline-secondary {
    --bs-btn-color: var(--si-fg-1);
    --bs-btn-border-color: var(--si-line);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: var(--si-fg-3);
    --bs-btn-hover-color: var(--si-ink);
}

/* ─── Form controls ─────────────────────────────────────────────── */
.form-control, .form-select {
    border: 1px solid var(--si-line);
    border-radius: var(--si-radius);
    padding: 8px 12px;
    font-size: 13.5px;
    color: var(--si-fg-1);
    background: #fff;
    font-family: inherit;
}
.form-control:focus, .form-select:focus {
    border-color: var(--si-orange);
    box-shadow: var(--si-shadow-focus);
    outline: none;
}
.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--si-fg-2);
    margin-bottom: 6px;
}
.form-text { font-size: 11.5px; color: var(--si-fg-3); }

.input-group-text {
    background: var(--si-bg-soft);
    border: 1px solid var(--si-line);
    color: var(--si-fg-3);
    font-size: 13.5px;
}

/* ─── Tables ────────────────────────────────────────────────────── */
.table {
    --bs-table-color: var(--si-fg-2);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--si-line-soft);
    --bs-table-striped-bg: var(--si-bg-soft);
    --bs-table-hover-bg: rgba(245, 166, 35, 0.04);
    font-size: 13.2px;
}
.table thead th {
    background: #F4F5F9;
    color: var(--si-fg-3);
    font-weight: 600;
    text-align: left;
    padding: 10px 16px;
    font-size: 12px;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--si-line);
    white-space: nowrap;
}
.table tbody td {
    padding: 11px 16px;
    border-top: 1px solid var(--si-line-soft);
    vertical-align: middle;
}

/* ─── Badges / tier pills / status ──────────────────────────────── */
.badge { font-weight: 700; letter-spacing: 0.02em; }

.tier {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 700;
    padding: 3px 10px; border-radius: 999px;
    border: 1px solid transparent; white-space: nowrap;
}
.tier-prospect   { background: #EEF0F4; color: var(--si-fg-2); border-color: var(--si-line); }
.tier-donor      { background: #D3EFDF; color: #1A6B3C; border-color: #B9E4CC; }
.tier-major      { background: #FCE6BF; color: #8A5A0A; border-color: #F1D591; }
.tier-lapsed     { background: #FBDCD1; color: #A53513; border-color: #F5C5B7; }
.tier-recurring  { background: #CDEDEA; color: #0F6F66; border-color: #A9DCD7; }

.status {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; padding: 2px 8px;
    border-radius: 4px; color: #fff;
}
.status-active   { background: var(--si-green); }
.status-inactive { background: #9AA3B8; }
.status-archived { background: var(--si-danger); }
.status-draft    { background: var(--si-fg-3); }

/* ─── Stat block ────────────────────────────────────────────────── */
.stat {
    display: flex; flex-direction: column; gap: 2px;
    padding: 18px;
    border: 1px solid var(--si-line);
    border-radius: 10px;
    background: #fff;
}
.stat .lbl {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--si-fg-3);
}
.stat .val {
    font-family: var(--si-font-body);
    font-size: 28px; font-weight: 800;
    color: var(--si-ink);
    letter-spacing: -0.01em;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}
.stat .val.money { color: var(--si-green-deep); }
.stat .delta { font-size: 12.5px; color: var(--si-fg-3); margin-top: 4px; }
.stat .delta.up   { color: var(--si-green-deep); }
.stat .delta.down { color: var(--si-danger); }

/* ─── Chips / filter pills ──────────────────────────────────────── */
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    font-family: var(--si-font-body);
    font-size: 12.5px;
    line-height: 1.5;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--si-line);
    color: var(--si-fg-2);
    cursor: pointer;
}
button.chip { -webkit-appearance: none; appearance: none; }
.chip:hover { border-color: var(--si-fg-3); }
.chip.on {
    background: var(--si-orange);
    border-color: var(--si-orange);
    color: #fff;
    font-weight: 600;
}

/* ─── Page head ─────────────────────────────────────────────────── */
.page-head {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}
.page-head h1 {
    font-family: var(--si-font-display);
    font-size: 44px;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--si-ink);
    margin: 0 0 6px;
}
.page-head .sub { font-size: 14px; color: var(--si-fg-3); max-width: 640px; }
.page-head .actions { display: flex; gap: 8px; margin-left: auto; }

.eyebrow {
    font-family: var(--si-font-display);
    font-size: 13px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--si-orange-deep);
}

/* ─── Topbar avatar ─────────────────────────────────────────────── */
.topbar-avatar {
    width: 32px; height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--si-teal) 0%, var(--si-green) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

/* ─── Flash messages ────────────────────────────────────────────── */
.flash-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1055;
    min-width: 280px;
    max-width: 420px;
}

.alert {
    border: 1px solid transparent;
    border-radius: var(--si-radius);
    padding: 12px 16px;
    font-size: 13.5px;
}
.alert-success { background: var(--si-success-soft); border-color: #B9E4CC; color: #1A6B3C; }
.alert-warning { background: var(--si-warning-soft); border-color: #F1D591; color: #8A5A0A; }
.alert-danger  { background: var(--si-danger-soft);  border-color: #F5C5B7; color: #A53513; }
.alert-info    { background: var(--si-info-soft);    border-color: #A9DCD7; color: #0F6F66; }

/* ─── Loading spinner overlay ───────────────────────────────────── */
#app-loading {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(31, 42, 68, 0.2);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#app-loading.active { display: flex; }

/* ─── Notification dropdown ─────────────────────────────────────── */
.notif-drop-item { cursor: pointer; }
.notif-drop-item:hover { background: var(--si-bg-soft); }

.dropdown-menu {
    border: 1px solid var(--si-line);
    border-radius: var(--si-radius-md);
    box-shadow: var(--si-shadow-md);
    font-size: 13.5px;
    padding: 6px;
}
.dropdown-item {
    border-radius: var(--si-radius-sm);
    padding: 8px 10px;
    color: var(--si-fg-1);
}
.dropdown-item:hover, .dropdown-item:focus {
    background: var(--si-bg-soft);
    color: var(--si-ink);
}

/* ─── Bootstrap modal tweaks ────────────────────────────────────── */
.modal-content {
    border: none;
    border-radius: var(--si-radius-md);
    box-shadow: var(--si-shadow-lg);
}

/* ─── Tabs (reusable; also used for .nav-tabs) ──────────────────── */
.nav-tabs, .si-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid var(--si-line);
    padding: 0 18px;
    background: #fff;
}
.nav-tabs .nav-item, .si-tabs .nav-item { margin-bottom: 0; }
.nav-tabs .nav-link, .si-tabs .nav-link {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--si-fg-3);
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    background: transparent;
}
.nav-tabs .nav-link:hover, .si-tabs .nav-link:hover {
    color: var(--si-ink);
    border-color: transparent;
    background: transparent;
}
.nav-tabs .nav-link.active, .si-tabs .nav-link.active {
    color: var(--si-ink);
    border-bottom-color: var(--si-orange);
    background: transparent;
}

/* ─── Donor hero card ───────────────────────────────────────────── */
.donor-hero {
    background: #fff;
    border: 1px solid var(--si-line);
    border-radius: var(--si-radius);
    box-shadow: 0 1px 3px rgba(31, 42, 68, 0.04);
    margin-bottom: 16px;
    overflow: hidden;
}
.donor-hero .hero-body {
    display: flex;
    gap: 20px;
    padding: 22px 24px;
    align-items: center;
    flex-wrap: wrap;
}
.donor-hero h1 {
    font-family: var(--si-font-display);
    font-size: 42px;
    line-height: 1;
    color: var(--si-ink);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin: 4px 0 6px;
}
.donor-hero .hero-meta {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: var(--si-fg-2);
    flex-wrap: wrap;
}
.donor-hero .hero-meta i { color: var(--si-fg-4); margin-right: 6px; }
.donor-hero .hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-left: auto;
}
.donor-hero .lifetime-lbl {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--si-fg-3);
}
.donor-hero .lifetime-val {
    font-family: var(--si-font-body);
    font-size: 28px;
    font-weight: 800;
    color: var(--si-green-deep);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.donor-hero .hero-tree {
    flex-shrink: 0;
    height: 96px;
    width: auto;
    align-self: center;
}
@media (max-width: 768px) {
    .donor-hero .hero-tree { height: 64px; }
}

/* ─── Growth card (donor view) ──────────────────────────────────── */
.growth-steps {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    justify-content: space-around;
    padding: 6px 0 12px;
}
.growth-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.35;
    text-align: center;
}
.growth-step.on { opacity: 1; }
.growth-step img { display: block; width: auto; }
.growth-step .growth-step-lbl {
    font-family: var(--si-font-display);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--si-fg-3);
}
.growth-step.on .growth-step-lbl { color: var(--si-orange-deep); }
.growth-note {
    font-size: 12.5px;
    color: var(--si-fg-3);
    text-align: center;
}
.growth-note b { color: var(--si-ink); }

/* ─── Tag pills (donor tags — arbitrary color per tag) ──────────── */
.tag-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    color: #fff;
    white-space: nowrap;
    line-height: 1.5;
}

/* ─── Donor row name square ─────────────────────────────────────── */
.donor-kind-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--si-bg-soft);
    color: var(--si-fg-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

/* ─── Count pill next to page title ─────────────────────────────── */
.count-pill {
    font-family: var(--si-font-body);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0;
    text-transform: none;
    background: var(--si-teal);
    padding: 3px 12px;
    border-radius: 999px;
    vertical-align: middle;
    display: inline-block;
    line-height: 1.35;
}

/* ─── Comm timeline ─────────────────────────────────────────────── */
.si-timeline {
    position: relative;
    padding-left: 14px;
}
.si-timeline::before {
    content: '';
    position: absolute;
    left: 29px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--si-line);
}
.si-timeline-row {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    position: relative;
}
.si-timeline-icon {
    width: 32px; height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    border: 2px solid #fff;
    background: #EEF0F4;
    color: var(--si-fg-2);
}
.si-timeline-icon.tone-green  { background: #D3EFDF; color: var(--si-green-deep); }
.si-timeline-icon.tone-teal   { background: #CDEDEA; color: var(--si-teal-deep); }
.si-timeline-icon.tone-orange { background: #FCE6BF; color: var(--si-orange-deep); }
.si-timeline-icon.tone-danger { background: var(--si-danger-soft); color: var(--si-danger); }

/* ─── Giving summary 4-up / 3-up ────────────────────────────────── */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.stat-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) {
    .stat-row, .stat-row.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Pagination (Bootstrap) ────────────────────────────────────── */
.pagination .page-link {
    color: var(--si-fg-2);
    border: 1px solid var(--si-line);
    border-radius: var(--si-radius-sm) !important;
    margin: 0 2px;
    padding: 6px 11px;
    font-size: 12.5px;
    font-weight: 700;
}
.pagination .page-item.active .page-link {
    background: var(--si-orange);
    border-color: var(--si-orange);
    color: #fff;
}
.pagination .page-item.disabled .page-link {
    color: var(--si-fg-4);
    background: transparent;
    border-color: var(--si-line-soft);
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    #sidebar { transform: translateX(-100%); }
    #sidebar.open { transform: translateX(0); }
    #content-wrapper { margin-left: 0; }
    #sidebar-toggle { display: inline-flex; }
    #page-content { padding: 20px 16px 64px; }
    .page-head h1 { font-size: 32px; }
}
