:root {
  --brand: #174b3b;
  --brand-dark: #0e382b;
  --brand-deep: #0a2a21;
  --brand-soft: #e8f1ed;
  --gold: #c7a54a;
  --gold-soft: #f7f1df;
  --ink: #1d2a26;
  --muted: #6e7b76;
  --line: #e7ece9;
  --canvas: #f5f7f6;
  --white: #ffffff;
  --danger: #b64242;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.min-w-0 { min-width: 0; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; background: linear-gradient(180deg, var(--brand-deep), var(--brand)); color: white; display: flex; flex-direction: column; z-index: 1040; box-shadow: 10px 0 30px rgba(12, 44, 35, .08); }
.sidebar-brand { height: 78px; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-mark { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; background: var(--gold); color: var(--brand-deep); display: grid; place-items: center; font-weight: 900; font-size: 20px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.brand-mark-lg { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 18px; font-size: 30px; }
.brand-copy { line-height: 1.12; }
.brand-copy strong { display: block; letter-spacing: .03em; }
.brand-copy span { display: block; margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.62); }
.sidebar-close { margin-left: auto; color: white; text-decoration: none; }
.workspace-pill { margin: 18px 16px 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); }
.workspace-pill .small { color: rgba(255,255,255,.52); font-size: 10px; letter-spacing: .12em; }
.workspace-pill strong { display: block; font-size: 13px; margin-top: 2px; }
.sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  list-style: none;
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-nav .nav-link { width: 100%; border: 0; background: transparent; color: rgba(255,255,255,.72); border-radius: 10px; padding: 11px 12px; display: flex; align-items: center; gap: 12px; font-size: 14px; text-align: left; transition: .16s ease; }
.sidebar-nav .nav-link i { width: 20px; text-align: center; font-size: 16px; }
.sidebar-nav .nav-link:hover { color: white; background: rgba(255,255,255,.07); }
.sidebar-nav .nav-link.active { background: rgba(255,255,255,.13); color: white; font-weight: 650; box-shadow: inset 3px 0 0 var(--gold); }
.sidebar-nav .badge { font-size: 10px; }
.sidebar-footer { margin-top: auto; padding: 16px 18px; border-top: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.07); }
.sidebar-footer strong { font-size: 13px; }
.sidebar-footer span { color: rgba(255,255,255,.55); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--brand-deep); display: grid; place-items: center; font-size: 11px; font-weight: 800; }

.main-content { margin-left: 270px; min-height: 100vh; }
.topbar { height: 78px; position: sticky; top: 0; z-index: 1030; padding: 0 28px; background: rgba(255,255,255,.95); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #87918d; font-weight: 700; }
.page-title { font-size: 22px; margin: 1px 0 0; font-weight: 750; letter-spacing: -.02em; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.search-box { height: 40px; min-width: 320px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #f9faf9; color: #89938f; }
.search-box input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-size: 13px; color: var(--ink); }
.search-box kbd { background: white; color: #87918d; border: 1px solid var(--line); box-shadow: none; font-size: 10px; padding: 2px 5px; }
.icon-btn { width: 40px; height: 40px; padding: 0; position: relative; }
.notification-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #d85d4d; right: 9px; top: 8px; box-shadow: 0 0 0 2px white; }
.content-wrap { padding: 26px 28px 40px; max-width: 1680px; margin: 0 auto; }
.app-section { display: none; }
.app-section.active { display: block; animation: sectionIn .16s ease; }
@keyframes sectionIn { from { opacity: .5; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.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-deep); --bs-btn-active-border-color: var(--brand-deep); }
.btn-outline-brand { color: var(--brand); border-color: #b8cbc4; background: white; }
.btn-outline-brand:hover { color: white; background: var(--brand); border-color: var(--brand); }
.form-control, .form-select, .input-group-text { border-color: #dce4e0; min-height: 42px; }
.form-control:focus, .form-select:focus { border-color: #80a596; box-shadow: 0 0 0 .2rem rgba(23,75,59,.11); }

.hero-card { min-height: 196px; border-radius: 20px; background: radial-gradient(circle at 88% 20%, rgba(199,165,74,.36), transparent 23%), linear-gradient(135deg, var(--brand-deep), #205f49); color: white; padding: 30px 34px; display: flex; justify-content: space-between; align-items: end; gap: 28px; overflow: hidden; position: relative; box-shadow: 0 12px 32px rgba(12, 52, 39, .16); }
.hero-card:after { content:""; position:absolute; width:220px; height:220px; border:1px solid rgba(255,255,255,.07); border-radius:50%; top:-70px; right:160px; box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 70px rgba(255,255,255,.018); }
.hero-card > * { position: relative; z-index: 1; }
.hero-card h2 { max-width: 680px; font-size: clamp(26px, 3vw, 38px); line-height: 1.05; letter-spacing: -.035em; margin: 7px 0 12px; }
.hero-card p { color: rgba(255,255,255,.72); max-width: 700px; }
.eyebrow-light { color: #e8d89f; text-transform: uppercase; letter-spacing: .13em; font-size: 10px; font-weight: 800; }
.hero-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: end; min-width: 310px; }

.metric-card, .panel-card, .compliance-card, .report-card { background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 6px 20px rgba(32, 57, 48, .04); }
.metric-card { padding: 19px 20px; height: 100%; position: relative; }
.metric-icon { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.metric-label { color: var(--muted); font-size: 12px; font-weight: 650; margin-bottom: 7px; }
.metric-value { font-size: 29px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; padding-right: 34px; }
.metric-value.metric-sm { font-size: 24px; }
.metric-note { font-size: 11px; color: #87918d; margin-top: 7px; }
.metric-note.positive, .positive { color: #218257; }
.warning-text { color: #a97615; }
.progress-thin { height: 5px; background: #edf1ef; }
.progress-thin .progress-bar { background: var(--brand); border-radius: 10px; }

.panel-card { padding: 20px; }
.table-card { padding: 0; overflow: hidden; }
.panel-header { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.panel-header h3 { font-size: 16px; margin: 0 0 3px; font-weight: 750; }
.panel-header p { margin: 0; font-size: 12px; color: var(--muted); }
.attention-list { margin: 0 -8px -6px; }
.attention-item { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: 10px; text-align: left; color: var(--ink); }
.attention-item:hover { background: #f8faf9; }
.attention-item strong, .attention-item small { display: block; }
.attention-item strong { font-size: 13px; }
.attention-item small { font-size: 11px; margin-top: 2px; color: var(--muted); }
.attention-item > .bi-chevron-right { color: #a3aca8; }
.attention-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 38px; }
.attention-icon.warning { background:#fff5dd; color:#b37a0b; }
.attention-icon.info { background:#eaf2fb; color:#346a9a; }
.attention-icon.danger { background:#fceaea; color:#ad4646; }
.attention-icon.success { background:#e6f4ed; color:#2b7f5c; }
.pipeline-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.pipeline-row:last-child { border-bottom: 0; }
.pipeline-row span { color: var(--muted); }
.pipeline-row strong { font-size: 16px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.quick-grid button { border: 1px solid var(--line); background: #fafcfb; border-radius: 11px; padding: 14px 8px; color: var(--brand); }
.quick-grid button:hover { background: var(--brand-soft); border-color: #cdded7; }
.quick-grid i, .quick-grid span { display: block; }
.quick-grid i { font-size: 18px; margin-bottom: 4px; }
.quick-grid span { font-size: 11px; font-weight: 700; color: var(--ink); }

.section-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.toolbar-search { min-width: 320px; max-width: 480px; flex: 1; height: 42px; border-radius: 10px; background: white; border: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #8d9893; }
.toolbar-search input { flex: 1; border: 0; outline: 0; min-width: 0; font-size: 13px; }
.table { --bs-table-bg: transparent; }
.table thead th { background: #f8faf9; color: #78837e; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; border-bottom-color: var(--line); padding: 12px 16px; white-space: nowrap; }
.table tbody td { border-color: #edf0ee; padding: 13px 16px; font-size: 12.5px; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfcfc; }
.member-cell { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.member-avatar { width: 36px; height: 36px; border-radius: 50%; background: #e6eee9; color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.member-cell strong, .member-cell small { display: block; }
.member-cell strong { font-size: 12.5px; }
.member-cell small { color: var(--muted); font-size: 10.5px; margin-top: 1px; }
.badge-status { border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 750; white-space: nowrap; display: inline-flex; align-items: center; }
.badge-status.success { background: #e4f4ec; color: #23714f; }
.badge-status.warning { background: #fff2d4; color: #956100; }
.badge-status.info { background: #e8f0fa; color: #315f8b; }
.badge-status.neutral { background: #ecefed; color: #5f6965; }
.badge-status.danger { background: #fae8e8; color: #9e3d3d; }
.badge-soft, .pill { border-radius: 999px; background: #f0f4f2; color: #5f6c66; padding: 4px 8px; font-size: 10px; font-weight: 650; }
.table-footer { padding: 11px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); }
.page-link { color: var(--brand); }
.page-item.active .page-link { background: var(--brand); border-color: var(--brand); }
.table-action { border: 1px solid var(--line); background: white; color: var(--brand); border-radius: 8px; width: 32px; height: 30px; }
.table-action:hover { background: var(--brand-soft); }
.clickable-row { cursor: pointer; }
.btn-filter { background: white; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.btn-filter span { margin-left: 4px; background: #eef2f0; padding: 2px 6px; border-radius: 99px; font-size: 9px; }
.btn-filter.active { color: var(--brand); border-color: #a9c1b7; background: var(--brand-soft); }
.timeline { position: relative; }
.timeline-item { position: relative; display: flex; gap: 12px; padding: 0 0 20px; }
.timeline-item:before { content:""; position:absolute; left:6px; top:13px; bottom:-1px; width:1px; background:#dce4e0; }
.timeline-item:last-child:before { display:none; }
.timeline-item > span { width:13px; height:13px; margin-top:3px; flex:0 0 13px; border-radius:50%; border:2px solid #c9d3cf; background:white; z-index:1; }
.timeline-item.done > span { background:#438467; border-color:#438467; }
.timeline-item.current > span { background:var(--gold); border-color:var(--gold); box-shadow:0 0 0 4px var(--gold-soft); }
.timeline-item strong, .timeline-item small { display:block; }
.timeline-item strong { font-size:12px; }
.timeline-item small { color:var(--muted); font-size:10px; margin-top:2px; }
.provider-card { display:flex; align-items:center; gap:10px; padding:11px 0; border-bottom:1px solid var(--line); }
.provider-card:last-child { border-bottom:0; }
.provider-logo { width:34px; height:34px; border-radius:10px; background:var(--brand-soft); color:var(--brand); display:grid; place-items:center; font-weight:800; }
.provider-card strong, .provider-card small { display:block; }
.provider-card strong { font-size:12px; }
.provider-card small { color:var(--muted); font-size:10px; }
.accent-panel { background:var(--gold-soft); border-color:#eadba9; color:#5f5126; }
.accent-panel p { color:#766a44; font-size:12px; }
.report-link { width:100%; border:0; border-top:1px solid var(--line); background:white; display:flex; align-items:center; gap:10px; padding:12px 0; text-align:left; color:var(--ink); }
.report-link:first-of-type { border-top:0; }
.report-link:hover { color:var(--brand); }
.report-link > i:first-child { width:34px; height:34px; border-radius:9px; background:var(--brand-soft); color:var(--brand); display:grid; place-items:center; }
.report-link span { flex:1; }
.report-link strong, .report-link small { display:block; }
.report-link strong { font-size:11.5px; }
.report-link small { color:var(--muted); font-size:10px; margin-top:2px; }

.compliance-hero { min-height: 200px; border-radius: 18px; background: linear-gradient(130deg, #0f3c2e, #286a51); color:white; padding: 27px 30px; display:flex; align-items:center; justify-content:space-between; gap:30px; }
.compliance-hero h2 { font-size:30px; letter-spacing:-.03em; margin:0 0 8px; }
.compliance-hero p { color:rgba(255,255,255,.72); max-width:680px; margin:0; }
.readiness-ring { --progress: 82; width:128px; height:128px; flex:0 0 128px; border-radius:50%; display:grid; place-items:center; background: conic-gradient(var(--gold) calc(var(--progress) * 1%), rgba(255,255,255,.12) 0); position:relative; }
.readiness-ring:after { content:""; position:absolute; width:104px; height:104px; border-radius:50%; background:#1b5a45; }
.readiness-ring div { z-index:1; text-align:center; }
.readiness-ring strong, .readiness-ring span { display:block; }
.readiness-ring strong { font-size:28px; line-height:1; }
.readiness-ring span { font-size:10px; color:rgba(255,255,255,.68); margin-top:5px; text-transform:uppercase; letter-spacing:.08em; }
.alert-soft-warning { background:#fff7e6; border-color:#f1dfad; color:#725618; }
.compliance-card { padding:18px; height:100%; }
.compliance-top { display:flex; align-items:flex-start; gap:12px; }
.compliance-icon { width:38px; height:38px; border-radius:11px; background:var(--brand-soft); color:var(--brand); display:grid; place-items:center; flex:0 0 38px; }
.compliance-card h3 { font-size:14px; margin:0 0 3px; }
.compliance-card p { font-size:10.5px; color:var(--muted); margin:0; }
.compliance-card .progress { margin:14px 0 10px; }
.compliance-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; color:var(--muted); font-size:10.5px; }
.activity-feed { margin-top:-4px; }
.activity-entry { display:flex; gap:11px; padding:11px 0; border-bottom:1px solid var(--line); }
.activity-entry:last-child { border-bottom:0; }
.activity-dot { width:9px; height:9px; border-radius:50%; background:var(--brand); margin:5px 0 0 3px; box-shadow:0 0 0 4px var(--brand-soft); flex:0 0 9px; }
.activity-entry strong, .activity-entry small { display:block; }
.activity-entry strong { font-size:12px; }
.activity-entry small { font-size:10px; color:var(--muted); margin-top:2px; }
.calendar-item { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); }
.calendar-item:last-child { border-bottom:0; }
.calendar-date { width:46px; height:46px; border-radius:11px; background:var(--brand-soft); display:grid; place-items:center; align-content:center; color:var(--brand); line-height:1; }
.calendar-date strong { font-size:16px; }
.calendar-date span { font-size:8px; margin-top:3px; letter-spacing:.06em; }
.calendar-item > div:last-child strong, .calendar-item > div:last-child small { display:block; }
.calendar-item > div:last-child strong { font-size:12px; }
.calendar-item > div:last-child small { color:var(--muted); font-size:10px; margin-top:3px; }

.section-kicker { text-transform:uppercase; letter-spacing:.11em; color:#8b7650; font-size:10px; font-weight:800; }
.ecosystem-intro h2 { font-size:30px; letter-spacing:-.03em; }
.ecosystem-intro p { color:var(--muted); }
.ecosystem-image { border-radius:12px; border:1px solid var(--line); box-shadow:0 10px 30px rgba(40,52,48,.08); }
.pill { padding:6px 10px; background:var(--brand-soft); color:var(--brand); }
.module-card { height:100%; padding:22px; border-radius:15px; border:1px solid var(--line); background:white; position:relative; overflow:hidden; box-shadow:0 6px 20px rgba(32,57,48,.04); }
.module-card.current { border-color:#acc8bc; box-shadow:inset 0 3px 0 var(--gold), 0 6px 20px rgba(32,57,48,.05); }
.module-number { position:absolute; right:14px; top:10px; color:#edf1ef; font-weight:900; font-size:38px; }
.module-card > i { width:42px; height:42px; border-radius:12px; background:var(--brand-soft); color:var(--brand); display:grid; place-items:center; margin-bottom:14px; font-size:18px; }
.module-card h3 { font-size:15px; }
.module-card p { color:var(--muted); font-size:11.5px; min-height:50px; }
.module-card > span { color:#8a7651; font-size:10px; font-weight:750; text-transform:uppercase; letter-spacing:.07em; }
.report-card { padding:22px; height:100%; }
.report-card.featured { border-color:#b8cfc5; box-shadow:inset 0 3px 0 var(--gold), 0 6px 20px rgba(32,57,48,.04); }
.report-icon { width:44px; height:44px; border-radius:12px; background:var(--brand-soft); color:var(--brand); display:grid; place-items:center; font-size:18px; margin-bottom:15px; }
.report-card h3 { font-size:15px; }
.report-card p { font-size:11.5px; color:var(--muted); min-height:52px; }

.modal-content { border:0; border-radius:16px; box-shadow:0 20px 60px rgba(20,45,36,.2); }
.modal-header, .modal-footer { border-color:var(--line); }
.modal-kicker { color:#8a7651; font-size:9px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; margin-bottom:2px; }
.form-section-title { font-size:12px; font-weight:800; color:var(--brand); margin-bottom:10px; }
.form-label { color:#59645f; font-size:11px; font-weight:650; }
.beneficiary-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; background:#f8faf9; border:1px solid var(--line); border-radius:9px; margin-bottom:7px; }
.beneficiary-row strong, .beneficiary-row small { display:block; }
.beneficiary-row strong { font-size:12px; }
.beneficiary-row small { color:var(--muted); font-size:10px; }
.receipt-preview { background:var(--brand-soft); border:1px dashed #a7c0b5; border-radius:10px; padding:13px; display:flex; justify-content:space-between; align-items:center; }
.receipt-preview span { font-size:11px; color:var(--muted); }
.receipt-preview strong { color:var(--brand); }
.eligibility-box { background:#f0f7f4; border:1px solid #c8ddd4; border-radius:12px; padding:15px; }
.eligibility-head { display:flex; align-items:center; gap:10px; }
.eligibility-head i { font-size:22px; color:#2d805d; }
.eligibility-head strong, .eligibility-head small { display:block; }
.eligibility-head strong { font-size:13px; color:#27684e; }
.eligibility-head small { font-size:10px; color:#6b8379; }
.eligibility-box .row span, .eligibility-box .row strong { display:block; font-size:10px; }
.eligibility-box .row span { color:var(--muted); margin-bottom:2px; }
.doc-check { padding:9px 0; border-bottom:1px solid var(--line); display:grid; grid-template-columns:24px 1fr auto; align-items:center; gap:5px; font-size:12px; }
.doc-check small { color:var(--muted); }
.quick-action-list { display:grid; gap:8px; }
.quick-action-list button { display:flex; align-items:center; gap:12px; border:1px solid var(--line); background:white; border-radius:11px; padding:12px; text-align:left; }
.quick-action-list button:hover { border-color:#b8cfc5; background:var(--brand-soft); }
.quick-action-list i { width:38px; height:38px; border-radius:10px; background:var(--brand-soft); color:var(--brand); display:grid; place-items:center; }
.quick-action-list strong, .quick-action-list small { display:block; }
.quick-action-list strong { font-size:12px; }
.quick-action-list small { color:var(--muted); font-size:10px; margin-top:2px; }
.member-offcanvas { width:min(510px, 100vw) !important; }
.member-profile-head { display:flex; gap:13px; align-items:center; padding:8px 0 18px; border-bottom:1px solid var(--line); }
.member-profile-avatar { width:54px; height:54px; border-radius:50%; background:var(--brand-soft); color:var(--brand); display:grid; place-items:center; font-size:17px; font-weight:850; }
.member-profile-head h3 { font-size:18px; margin:0; }
.member-profile-head p { margin:3px 0 0; color:var(--muted); font-size:11px; }
.member-summary-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin:16px 0; }
.summary-box { background:#f8faf9; border:1px solid var(--line); border-radius:10px; padding:11px; }
.summary-box span, .summary-box strong { display:block; }
.summary-box span { color:var(--muted); font-size:9.5px; text-transform:uppercase; letter-spacing:.05em; }
.summary-box strong { font-size:14px; margin-top:3px; }
.detail-tabs .nav-link { color:var(--muted); font-size:11px; font-weight:700; }
.detail-tabs .nav-link.active { color:var(--brand); }
.member-ledger-item { display:flex; justify-content:space-between; gap:10px; padding:10px 0; border-bottom:1px solid var(--line); }
.member-ledger-item strong, .member-ledger-item small { display:block; }
.member-ledger-item strong { font-size:11.5px; }
.member-ledger-item small { color:var(--muted); font-size:9.5px; }
.brand-dot { width:10px; height:10px; border-radius:50%; background:var(--brand); }
.login-view { position:fixed; inset:0; z-index:2000; background:radial-gradient(circle at 70% 20%, rgba(199,165,74,.28), transparent 27%), linear-gradient(145deg, #0b2d23, #1d654b); display:grid; place-items:center; padding:20px; }
.login-card { width:min(420px, 100%); background:white; border-radius:20px; padding:30px; }
.sidebar-backdrop { display:none; }

@media (max-width: 1199.98px) {
  .hero-card { align-items:start; flex-direction:column; }
  .hero-actions { min-width:0; justify-content:start; }
}
@media (max-width: 991.98px) {
  .sidebar { transform:translateX(-100%); transition:.2s ease; }
  .sidebar.open { transform:translateX(0); }
  .sidebar-backdrop { position:fixed; inset:0; background:rgba(7,26,20,.45); z-index:1035; }
  .sidebar-backdrop.show { display:block; }
  .main-content { margin-left:0; }
  .topbar { padding:0 18px; }
  .content-wrap { padding:20px 18px 32px; }
}
@media (max-width: 767.98px) {
  .topbar { height:auto; min-height:70px; padding-top:10px; padding-bottom:10px; }
  .page-eyebrow { display:none; }
  .page-title { font-size:18px; }
  .content-wrap { padding-left:13px; padding-right:13px; }
  .hero-card { padding:24px 20px; border-radius:16px; }
  .hero-card h2 { font-size:28px; }
  .section-toolbar { align-items:stretch; flex-direction:column; }
  .toolbar-search { min-width:0; width:100%; max-width:none; }
  .compliance-hero { flex-direction:column; align-items:flex-start; }
  .readiness-ring { width:110px; height:110px; flex-basis:110px; }
  .readiness-ring:after { width:88px; height:88px; }
  .table-footer { flex-direction:column; align-items:flex-start; gap:10px; }
}

/* Blazor solution additions */
a { text-decoration: none; }
.sidebar-nav a.nav-link { text-decoration: none; }
.sidebar-backdrop { border: 0; padding: 0; }
.brand-logo-sidebar-wrap { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; overflow: hidden; background: white; border: 1px solid rgba(255,255,255,.2); }
.brand-logo-sidebar { width: 100%; height: 100%; object-fit: cover; }
.brand-logo-login-wrap { width: 156px; height: 156px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; background: white; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(18, 60, 46, .12); }
.brand-logo-login { width: 100%; height: 100%; object-fit: cover; }
.modal.show { overflow-y: auto; }
.modal-backdrop { z-index: 1050; }
.modal { z-index: 1055; }
.toast-container { z-index: 1090; }
.member-drawer-backdrop { position: fixed; inset: 0; background: rgba(7,26,20,.42); z-index: 1060; }
.member-drawer { position: fixed; inset: 0 0 0 auto; width: min(510px, 100vw); background: white; z-index: 1065; box-shadow: -14px 0 44px rgba(14,56,43,.18); overflow-y: auto; }
.member-drawer .offcanvas-header { position: sticky; top: 0; background: white; z-index: 1; border-bottom: 1px solid var(--line); }
.member-drawer .offcanvas-body { padding: 20px; }
.detail-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 9px 10px; }
.detail-tabs .nav-link.active { border-bottom-color: var(--brand); }
.content-wrap > :first-child { animation: sectionIn .16s ease; }
.validation-message { color: var(--danger); font-size: 11px; }

@media (max-width: 575.98px) {
  .brand-copy span { display: none; }
}

/* Login validation intentionally uses app/Bootstrap feedback instead of native browser validation popups. */
.login-validation-summary {
    font-size: .875rem;
}

.login-card .form-control.is-invalid {
    background-image: none;
    padding-right: .75rem;
}


/* Shared application validation */
.form-validation-summary {
    font-size: .875rem;
}

.modal .form-control.is-invalid {
    background-image: none;
    padding-right: .75rem;
}

/* 2026-08 membership usability + typography refresh */
body {
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea,
.btn,
.form-control,
.form-select,
.input-group-text {
  font-family: inherit;
  font-size: 15px;
}

small,
.small {
  font-size: 14px;
}

.page-eyebrow {
  font-size: 11.5px;
}

.page-title {
  font-size: 25px;
  font-weight: 750;
}

.sidebar-nav .nav-link {
  font-size: 15.5px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand-copy span,
.workspace-pill strong,
.sidebar-footer strong {
  font-size: 14px;
}

.workspace-pill .small {
  font-size: 11px;
}

.search-box input,
.toolbar-search input {
  font-size: 15px;
}

.panel-header h3 {
  font-size: 18px;
}

.panel-header p,
.metric-label {
  font-size: 14px;
}

.metric-note,
.attention-item small,
.pipeline-row,
.quick-grid span {
  font-size: 13px;
}

.attention-item strong {
  font-size: 15px;
}

.table thead th {
  font-size: 12px;
  letter-spacing: .055em;
  padding: 14px 18px;
}

.table tbody td {
  font-size: 15px;
  padding: 15px 18px;
}

.member-cell strong {
  font-size: 15.5px;
}

.member-cell small {
  font-size: 13px;
  margin-top: 2px;
}

.member-avatar {
  width: 42px;
  height: 42px;
  font-size: 13px;
}

.badge-status {
  font-size: 12px;
  padding: 5px 10px;
}

.form-label {
  color: #4f5d57;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 6px;
}

.form-control,
.form-select,
.input-group-text {
  min-height: 46px;
}

.form-control,
.form-select {
  border-radius: 10px;
}

.modal-content {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(14, 47, 37, .24);
}

.modal-header {
  padding: 20px 24px;
  background: linear-gradient(180deg, #ffffff, #fbfcfb);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  background: #fbfcfb;
}

.modal-kicker {
  font-size: 11px;
}

.modal-title {
  font-size: 21px !important;
  font-weight: 750;
}

.form-validation-summary {
  border: 0;
  border-radius: 14px;
  padding: 15px 17px;
  box-shadow: inset 4px 0 0 #bd4242;
}

.validation-summary-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(182, 66, 66, .12);
  color: var(--danger);
  display: grid;
  place-items: center;
  flex: 0 0 36px;
}

.members-toolbar {
  align-items: stretch;
  gap: 12px;
}

.members-toolbar-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.members-search {
  min-width: 280px;
  max-width: none;
  height: 46px;
}

.members-status-dropdown {
  position: relative;
  width: 238px;
  flex: 0 0 238px;
}

.member-status-trigger {
  position: relative;
  z-index: 1046;
  width: 100%;
  height: 46px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 7px;
  border: 1px solid #d9e2de;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 1px 2px rgba(14, 47, 37, .025);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.member-status-trigger:hover {
  border-color: #b7cbc2;
  background: #fcfdfc;
}

.member-status-trigger:focus-visible {
  outline: 0;
  border-color: #7ea798;
  box-shadow: 0 0 0 4px rgba(23, 75, 59, .09);
}

.member-status-trigger.active {
  border-color: #a9c5b9;
  background: #f8fbf9;
}

.member-status-trigger-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #eef5f1;
  color: var(--brand);
  font-size: 15px;
}

.member-status-trigger-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.member-status-trigger-label {
  color: #89958f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.member-status-trigger-copy strong {
  overflow: hidden;
  color: #25342e;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-status-chevron {
  color: #73817b;
  font-size: 12px;
  transition: transform .16s ease;
}

.member-status-chevron.open {
  transform: rotate(180deg);
}

.member-status-dismiss-layer {
  position: fixed;
  inset: 0;
  z-index: 1045;
  background: transparent;
}

.member-status-menu {
  position: absolute;
  z-index: 1047;
  top: calc(100% + 8px);
  left: 0;
  width: 330px;
  padding: 8px;
  border: 1px solid #dfe7e3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(20, 52, 41, .16);
}

.member-status-menu-heading {
  padding: 9px 10px 10px;
  border-bottom: 1px solid #edf1ef;
  margin-bottom: 5px;
}

.member-status-menu-heading span,
.member-status-menu-heading small {
  display: block;
}

.member-status-menu-heading span {
  color: #27352f;
  font-size: 13px;
  font-weight: 750;
}

.member-status-menu-heading small {
  margin-top: 1px;
  color: #8a9691;
  font-size: 12px;
}

.member-status-option {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #283730;
  text-align: left;
  transition: background .14s ease, color .14s ease;
}

.member-status-option:hover,
.member-status-option:focus-visible {
  outline: 0;
  background: #f4f8f6;
}

.member-status-option.selected {
  background: #edf6f1;
  color: var(--brand);
}

.member-status-option-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f2f5f3;
  color: #73827b;
  font-size: 14px;
}

.member-status-option.selected .member-status-option-icon {
  background: #dcece4;
  color: var(--brand);
}

.member-status-option-copy {
  min-width: 0;
}

.member-status-option-copy strong,
.member-status-option-copy small {
  display: block;
}

.member-status-option-copy strong {
  font-size: 14px;
  font-weight: 700;
}

.member-status-option-copy small {
  margin-top: 1px;
  color: #85918c;
  font-size: 12px;
  line-height: 1.25;
}

.member-status-option-check {
  color: var(--brand);
  font-size: 15px;
  text-align: center;
}

.toolbar-clear-btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 17px;
}

.toolbar-clear-btn:disabled {
  opacity: .45;
}

.register-member-btn {
  min-height: 46px;
  white-space: nowrap;
  padding-inline: 18px;
}

.members-card {
  min-height: 360px;
}

.member-cell-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  width: 100%;
}

.member-cell-button:hover strong {
  color: var(--brand);
}

.members-table-footer {
  min-height: 50px;
  display: flex;
  align-items: center;
}

.members-loading-state {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
}

.members-loading-state strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 17px;
}

.empty-state {
  min-height: 340px;
  padding: 44px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.empty-state.compact {
  min-height: 220px;
  padding: 28px 18px;
}

.empty-state-visual {
  width: 118px;
  height: 98px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: linear-gradient(145deg, #eef6f2, #dfece6);
  border: 1px solid #d5e5de;
  box-shadow: 0 16px 34px rgba(23, 75, 59, .10);
  position: relative;
  z-index: 2;
  transform: rotate(-3deg);
}

.empty-state-icon i {
  font-size: 30px;
  transform: rotate(3deg);
}

.empty-state-orbit {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: .78;
}

.empty-state-orbit.orbit-one {
  width: 12px;
  height: 12px;
  top: 8px;
  right: 14px;
}

.empty-state-orbit.orbit-two {
  width: 8px;
  height: 8px;
  left: 10px;
  bottom: 12px;
  opacity: .48;
}

.empty-state h3 {
  font-size: 21px;
  font-weight: 750;
  margin: 0 0 7px;
  letter-spacing: -.015em;
}

.empty-state p {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.empty-state-actions {
  margin-top: 20px;
  display: flex;
  gap: 9px;
  justify-content: center;
  flex-wrap: wrap;
}

.member-registration-dialog {
  --bs-modal-width: 1080px;
}

.member-registration-dialog .modal-body {
  background: #f7f9f8;
}

.registration-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 20px;
  border-radius: 16px;
  color: white;
  background: radial-gradient(circle at 90% 0%, rgba(199, 165, 74, .35), transparent 25%), linear-gradient(135deg, var(--brand-deep), #21654d);
  box-shadow: 0 12px 30px rgba(13, 60, 45, .12);
}

.registration-banner-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 24px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .14);
}

.registration-eyebrow {
  display: block;
  color: #e5d397;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 750;
  font-size: 11px;
  margin-bottom: 3px;
}

.registration-banner h3 {
  font-size: 21px;
  margin: 0 0 3px;
  font-weight: 750;
}

.registration-banner p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}

.registration-status-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff2c7;
  background: rgba(0, 0, 0, .14);
  border: 1px solid rgba(255, 255, 255, .12);
}

.form-section-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(33, 59, 50, .035);
}

.form-section-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}

.form-section-heading.compact {
  align-items: flex-start;
}

.form-section-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 18px;
}

.form-section-heading h4 {
  font-size: 17px;
  margin: 0 0 2px;
  font-weight: 750;
}

.form-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.required-mark {
  color: #b64242;
  font-weight: 800;
}

.registration-address {
  resize: vertical;
  min-height: 88px;
}

.finance-setup-card {
  position: sticky;
  top: 0;
}

.registration-money-input .input-group-text {
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
}

.field-help {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

.registration-next-card {
  padding: 18px;
  border: 1px solid #dce7e2;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbfa, #f1f6f4);
}

.registration-next-title {
  color: var(--brand);
  font-weight: 750;
  font-size: 14px;
  margin-bottom: 13px;
}

.registration-next-step {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid #e0e9e5;
}

.registration-next-step:first-of-type {
  border-top: 0;
}

.registration-next-step > span {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #d9e4df;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.registration-next-step strong,
.registration-next-step small {
  display: block;
}

.registration-next-step strong {
  font-size: 14px;
}

.registration-next-step small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.registration-footer-copy {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.registration-footer-copy i {
  color: var(--brand);
}

@media (max-width: 767.98px) {
  .members-toolbar {
    flex-direction: column;
  }

  .members-toolbar-main {
    flex-wrap: wrap;
  }

  .members-search {
    min-width: 100%;
    flex-basis: 100%;
  }

  .members-status-dropdown {
    flex: 1 1 230px;
    width: auto;
  }

  .member-status-menu {
    width: min(330px, calc(100vw - 40px));
  }

  .register-member-btn {
    width: 100%;
  }

  .registration-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .registration-status-pill {
    margin-left: 70px;
  }

  .modal-body {
    padding: 18px;
  }
}

/* Item 6 - beneficiary dialogs opened from Member 360 */
.modal.member-nested-modal {
  z-index: 1090;
}

.modal-backdrop.member-nested-modal {
  z-index: 1085;
}

.beneficiary-dialog {
  --bs-modal-width: 820px;
}

.beneficiary-dialog .modal-body {
  background: #f7f9f8;
}

.beneficiary-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  border-radius: 15px;
  color: white;
  background: radial-gradient(circle at 90% 0%, rgba(199, 165, 74, .28), transparent 28%), linear-gradient(135deg, var(--brand-deep), #21654d);
}

.beneficiary-banner-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  background: rgba(255,255,255,.11);
  font-size: 20px;
}

.beneficiary-banner h3 {
  margin: 0 0 3px;
  font-size: 18px;
  font-weight: 750;
}

.beneficiary-banner p {
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: 13px;
  line-height: 1.45;
}

.beneficiary-context-card,
.beneficiary-status-card {
  padding: 18px;
  border: 1px solid #dce7e2;
  border-radius: 16px;
  background: #fff;
}

.beneficiary-context-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 11px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 17px;
}

.beneficiary-context-card > span,
.beneficiary-status-card > span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.beneficiary-context-card > strong,
.beneficiary-status-card > strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
}

.beneficiary-context-card p,
.beneficiary-status-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.beneficiary-footer-copy {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.beneficiary-footer-copy i {
  color: var(--brand);
}

.beneficiary-status-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 4px 0;
}

.beneficiary-status-confirmation-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 20px;
}

.beneficiary-status-confirmation h3 {
  margin: 1px 0 5px;
  font-size: 17px;
  font-weight: 750;
}

.beneficiary-status-confirmation p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 767.98px) {
  .beneficiary-banner {
    align-items: flex-start;
  }
}

/* Sidebar grouped navigation: Bootstrap collapse structure, Fortunato styling. */
.sidebar-nav > .nav-item {
  display: block;
  width: 100%;
  margin: 2px 0;
  padding: 0;
  list-style: none;
}

.sidebar-nav > .nav-item > .settings-toggle {
  width: 100%;
}

.sidebar-nav > .nav-item > .settings-toggle:not(.collapsed) {
  color: #fff;
  background: rgba(255,255,255,.13);
  font-weight: 650;
  box-shadow: inset 3px 0 0 var(--gold);
}

.sidebar-nav .settings-chevron {
  width: auto !important;
  margin-left: auto;
  flex: 0 0 auto;
  font-size: .75rem !important;
  transition: transform .16s ease;
}

.sidebar-nav .settings-toggle:not(.collapsed) .settings-chevron {
  transform: rotate(180deg);
}

.sidebar-nav .nav-content {
  width: auto;
  margin: 1px 0 5px 15px;
  padding: 2px 0 2px 10px;
  border-left: 1px solid rgba(255,255,255,.14);
  list-style: none;
}

.sidebar-nav .nav-content > li {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-nav .nav-content > li > .nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 30px;
  margin: 0 !important;
  padding: 5px 7px !important;
  gap: 0 !important;
  border-radius: 5px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255,255,255,.67) !important;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-nav .nav-content > li > .nav-link:hover {
  color: rgba(255,255,255,.94) !important;
  background: rgba(255,255,255,.05) !important;
  box-shadow: none !important;
}

.sidebar-nav .nav-content > li > .nav-link.active {
  color: #fff !important;
  background: transparent !important;
  box-shadow: none !important;
  font-weight: 700;
}

.sidebar-nav .nav-content > li > .nav-link > i:first-child {
  width: 11px !important;
  margin: 0 7px 0 0 !important;
  flex: 0 0 11px;
  color: currentColor !important;
  font-size: 6px !important;
  line-height: 1;
  text-align: center;
}

.sidebar-nav .nav-content > li > .nav-link > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



/* Dashboard readability and branding pass */
.dashboard-page .hero-card h2 {
  margin-top: 0;
}

.dashboard-page .hero-card p {
  font-size: 16px;
  line-height: 1.55;
}

.dashboard-page .metric-label,
.dashboard-page .panel-header p,
.dashboard-page .pipeline-row {
  font-size: 15px;
  line-height: 1.45;
}

.dashboard-page .metric-note,
.dashboard-page .attention-item small,
.dashboard-page .quick-grid span {
  font-size: 14.5px;
  line-height: 1.45;
}

.dashboard-page .attention-item strong {
  font-size: 15.5px;
  line-height: 1.4;
}

.dashboard-page .quick-grid button {
  min-height: 82px;
}

.dashboard-page .pipeline-row {
  padding-top: 13px;
  padding-bottom: 13px;
}

/* Dashboard action inbox and collection trend */
.dashboard-page .dashboard-attention-card .panel-header {
  margin-bottom: 8px;
}

.dashboard-work-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 750;
}

.dashboard-page .dashboard-attention-card .attention-item {
  border-bottom: 1px solid #edf0ee;
  border-radius: 0;
  padding-top: 13px;
  padding-bottom: 13px;
}

.dashboard-page .dashboard-attention-card .attention-item:last-child {
  border-bottom: 0;
}

.attention-open-label {
  color: var(--brand);
  font-size: 12px;
  font-weight: 750;
  opacity: .78;
}

.dashboard-chart-card {
  overflow: hidden;
}

.dashboard-chart-header {
  align-items: center;
  margin-bottom: 10px;
}

.dashboard-chart-summary {
  text-align: right;
  flex: 0 0 auto;
}

.dashboard-chart-summary small,
.dashboard-chart-summary strong {
  display: block;
}

.dashboard-chart-summary small {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 2px;
}

.dashboard-chart-summary strong {
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -.025em;
}

.dashboard-chart-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 0;
}

.dashboard-collection-chart {
  display: block;
  width: 100%;
  min-width: 720px;
  height: auto;
}

.dashboard-collection-chart .chart-grid-line {
  stroke: #e7ece9;
  stroke-width: 1;
}

.dashboard-collection-chart .chart-axis-value,
.dashboard-collection-chart .chart-month-label {
  color: #78837e;
  font-family: inherit;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
}

.dashboard-collection-chart .chart-axis-value {
  text-align: right;
}

.dashboard-collection-chart .chart-month-label {
  text-align: center;
}

.dashboard-collection-chart .chart-area {
  fill: rgba(23, 104, 79, .08);
}

.dashboard-collection-chart .chart-line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-collection-chart .chart-point {
  fill: #fff;
  stroke: var(--brand);
  stroke-width: 3;
  cursor: default;
}

.dashboard-collection-chart .chart-point:hover {
  fill: var(--brand);
}

.dashboard-chart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-chart-footer .bi-circle-fill {
  color: var(--brand);
  font-size: 8px;
  margin-right: 6px;
}

.dashboard-chart-empty {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
}

.dashboard-chart-empty i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 22px;
}

.dashboard-chart-empty strong {
  color: var(--ink);
  margin-bottom: 3px;
}

@media (max-width: 767.98px) {
  .dashboard-chart-header,
  .dashboard-chart-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-chart-summary {
    text-align: left;
  }

  .attention-open-label {
    display: none;
  }
}

/* Overdue contribution work queue */
.overdue-contribution-card {
  overflow: hidden;
}

.overdue-contribution-table th,
.overdue-contribution-table td {
  vertical-align: middle;
}

.overdue-obligation-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 220px;
}

.overdue-obligation-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.overdue-obligation-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff6df;
  color: #835d05;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.overdue-money {
  font-weight: 700;
}

.overdue-balance {
  color: #a43d35;
  font-weight: 800;
}

.overdue-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  white-space: nowrap;
}

.overdue-row-actions .btn-sm {
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
  padding: 7px 10px;
}

@media (max-width: 991.98px) {
  .overdue-obligation-list {
    min-width: 190px;
  }
}

/* Dashboard grouped action center */
.dashboard-action-center-header {
  align-items: center;
  gap: 20px;
}

.dashboard-action-summary {
  flex: 0 0 auto;
  text-align: right;
}

.dashboard-action-summary strong,
.dashboard-action-summary span {
  display: block;
}

.dashboard-action-summary strong {
  color: var(--brand);
  font-size: 22px;
  line-height: 1.1;
}

.dashboard-action-summary span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-action-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 155px));
  justify-content: center;
  gap: 10px;
}

.dashboard-action-group-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 132px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #dde6e1;
  border-radius: 13px;
  background: #fff;
  padding: 14px 10px 12px;
  text-align: center;
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.dashboard-action-group-card:hover,
.dashboard-action-group-card:focus-visible {
  border-color: rgba(18, 86, 64, .34);
  box-shadow: 0 10px 24px rgba(25, 54, 43, .08);
  transform: translateY(-1px);
  outline: none;
}

.dashboard-action-group-card.is-zero {
  background: #fbfcfb;
}

.dashboard-action-group-card:disabled {
  cursor: default;
  opacity: 1;
}

.dashboard-action-group-card:disabled:hover {
  border-color: #dde6e1;
  box-shadow: none;
  transform: none;
}

.dashboard-action-group-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 17px;
}

.dashboard-action-group-card .dashboard-action-group-icon {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-radius: 13px;
  font-size: 22px;
}

.dashboard-action-group-title {
  min-height: 2.5em;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 750;
}

.dashboard-action-group-count {
  color: var(--brand);
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
}

.dashboard-action-group-card.is-zero .dashboard-action-group-icon {
  background: #eef3f0;
  color: #728078;
}

.dashboard-action-group-card.is-zero .dashboard-action-group-count {
  color: #748078;
}

.dashboard-action-modal-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #dfe7e3;
  border-radius: 13px;
  background: #f8fbf9;
  padding: 13px 14px;
  margin-bottom: 12px;
}

.dashboard-action-modal-summary strong,
.dashboard-action-modal-summary span {
  display: block;
}

.dashboard-action-modal-summary strong {
  color: var(--ink);
  font-size: 14px;
}

.dashboard-action-modal-summary span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.dashboard-action-modal-list .attention-item {
  border-bottom: 1px solid #edf0ee;
  border-radius: 0;
  padding: 13px 8px;
}

.dashboard-action-modal-list .attention-item:last-child {
  border-bottom: 0;
}

/* Dashboard weekly and monthly calendar */
.dashboard-calendar-card {
  overflow: hidden;
}

.dashboard-calendar-header {
  align-items: center;
  gap: 18px;
}

.dashboard-calendar-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.dashboard-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid #e0e7e3;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.dashboard-week-day {
  min-width: 0;
  min-height: 185px;
  border-right: 1px solid #e8edea;
  background: #fff;
}

.dashboard-week-day:last-child {
  border-right: 0;
}

.dashboard-week-day.today {
  background: #f8fbf9;
}

.dashboard-week-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #edf1ef;
  padding: 10px 11px;
}

.dashboard-week-day-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.dashboard-week-day-head strong {
  display: inline-flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  font-size: 13px;
}

.dashboard-week-day.today .dashboard-week-day-head strong {
  background: var(--brand);
  color: #fff;
}

.dashboard-week-day-items {
  display: grid;
  gap: 6px;
  padding: 8px;
}

.dashboard-calendar-none {
  color: #a0aaa5;
  font-size: 12px;
  padding: 7px 3px;
}

.dashboard-calendar-item,
.dashboard-month-item {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #dde6e2;
  border-left-width: 3px;
  border-radius: 8px;
  background: #fff;
  padding: 6px 7px;
  text-align: left;
  color: var(--ink);
}

.dashboard-calendar-item:hover,
.dashboard-month-item:hover,
.dashboard-calendar-item:focus-visible,
.dashboard-month-item:focus-visible {
  border-color: #a7bdb4;
  background: #f9fbfa;
  outline: none;
}

.dashboard-calendar-item > span,
.dashboard-calendar-item > strong,
.dashboard-month-item > span,
.dashboard-month-item > strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-calendar-item > span,
.dashboard-month-item > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.dashboard-calendar-item > strong,
.dashboard-month-item > strong {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.3;
}

.dashboard-calendar-item.danger,
.dashboard-month-item.danger {
  border-left-color: #c94f4f;
}

.dashboard-calendar-item.warning,
.dashboard-month-item.warning {
  border-left-color: #d6a42c;
}

.dashboard-calendar-item.info,
.dashboard-month-item.info {
  border-left-color: #5f8fb9;
}

.dashboard-calendar-item.success,
.dashboard-month-item.success {
  border-left-color: #3d8b68;
}

.dashboard-calendar-item.primary,
.dashboard-month-item.primary {
  border-left-color: var(--brand);
}

.dashboard-calendar-more {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--brand);
  padding: 3px 4px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.dashboard-month-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}

.dashboard-month-toolbar > span {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-month-weekdays,
.dashboard-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.dashboard-month-weekdays {
  border: 1px solid #e0e7e3;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #f7faf8;
}

.dashboard-month-weekdays span {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
}

.dashboard-month-grid {
  border-top: 1px solid #e0e7e3;
  border-left: 1px solid #e0e7e3;
}

.dashboard-month-day {
  position: relative;
  min-height: 112px;
  border-right: 1px solid #e0e7e3;
  border-bottom: 1px solid #e0e7e3;
  padding: 7px;
  background: #fff;
}

.dashboard-month-day.outside {
  background: #fafbfa;
}

.dashboard-month-day.outside .dashboard-month-day-number,
.dashboard-month-day.outside .dashboard-month-day-items {
  opacity: .45;
}

.dashboard-month-day.today {
  box-shadow: inset 0 0 0 2px rgba(18, 86, 64, .24);
}

.dashboard-month-day-number {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-month-day.today .dashboard-month-day-number {
  background: var(--brand);
  color: #fff;
}

.dashboard-month-day-items {
  display: grid;
  gap: 4px;
  margin-top: 5px;
}

.dashboard-calendar-modal .modal-body {
  overflow-x: auto;
}

.app-filter-context {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  border: 1px solid #cfe0d8;
  border-radius: 10px;
  background: #f4faf7;
  color: var(--brand);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .dashboard-action-group-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 155px));
  }

  .dashboard-week-grid,
  .dashboard-month-weekdays,
  .dashboard-month-grid {
    min-width: 840px;
  }

  .dashboard-calendar-card {
    overflow-x: auto;
  }
}

@media (max-width: 575.98px) {
  .dashboard-action-group-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 155px));
  }

  .dashboard-action-center-header,
  .dashboard-calendar-header {
    align-items: flex-start;
  }

  .dashboard-action-summary {
    text-align: left;
  }

  .dashboard-calendar-actions {
    width: 100%;
  }
}

@media (max-width: 359.98px) {
  .dashboard-action-group-grid {
    grid-template-columns: 1fr;
  }
}

/* Standard boolean option control: use this instead of switch-style toggles. */
.app-checkbox-card {
    min-height: 68px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fbfcfb;
    cursor: pointer;
}

.app-checkbox-card:hover {
    border-color: #cbd8d2;
    background: #f8faf9;
}

.app-checkbox-card > input[type="checkbox"] {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin-top: 2px;
    accent-color: var(--brand);
}

.app-checkbox-card > span,
.app-checkbox-card strong,
.app-checkbox-card small {
    display: block;
}

.app-checkbox-card strong {
    color: var(--ink);
    font-size: 13.5px;
    line-height: 1.35;
}

.app-checkbox-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

/* Branding-aware staff sign-in */
.login-view {
    background:
        radial-gradient(circle at 72% 18%, color-mix(in srgb, var(--gold) 34%, transparent), transparent 28%),
        linear-gradient(145deg, var(--brand-dark), var(--brand));
}

.login-card {
    width: min(460px, 100%);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, .16);
}

.login-brand-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.login-brand-heading .brand-logo-login-wrap {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    margin: 0;
    border-radius: 16px;
    box-shadow: none;
}

.login-brand-heading h1 {
    margin: 2px 0 2px;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.15;
}

.login-brand-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.login-brand-kicker {
    color: var(--gold);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
}

.login-powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

.login-powered-by img {
    width: 92px;
    height: auto;
}

@media (max-width: 480px) {
    .login-card {
        padding: 24px 20px;
    }

    .login-brand-heading {
        align-items: flex-start;
    }

    .login-brand-heading .brand-logo-login-wrap {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }
}

/* Searchable business-data pickers must layer beyond modal content, just like standard Fortunato dropdowns. */
.modal-content:has(.fortunato-member-results) {
  overflow: visible;
}

.modal-content:has(.fortunato-member-results) > .modal-header {
  border-radius: 22px 22px 0 0;
}

.modal-content:has(.fortunato-member-results) > .modal-footer {
  border-radius: 0 0 22px 22px;
}
