/* Excelloite E2S Donor Management System — RIOS prototype + brand #117db7 */

:root {
    --ngo-primary: #117db7;
    --ngo-primary-rgb: 17, 125, 183;
    --ngo-primary-hover: #0e6a9e;
    --ngo-primary-dark: #0d6290;
    --ngo-primary-light: #e3f0f7;
    --ngo-primary-muted: #d6eaf4;
    --ngo-primary-faint: #f0f7fb;
    --excelloite-filter-field-width: 10rem;
    --ngo-secondary: #405189;
    --ngo-secondary-rgb: 64, 81, 137;
    --ngo-table-border: rgba(17, 125, 183, 0.38);
    --ngo-table-border-soft: rgba(17, 125, 183, 0.14);
    --ngo-table-border-light: rgba(17, 125, 183, 0.12);
    --ngo-table-head-bg: #e3f0f7;
    --ngo-table-cell-bg: #ffffff;
    --ngo-table-cell-hover: #f0f7fb;
    --excelloite-primary: var(--ngo-secondary);
    --excelloite-primary-rgb: var(--ngo-secondary-rgb);
    --tb-primary: var(--ngo-primary);
    --tb-primary-rgb: var(--ngo-primary-rgb);
    --vz-primary: var(--ngo-primary);
    --vz-primary-rgb: var(--ngo-primary-rgb);
    --bs-primary: var(--ngo-primary);
    --bs-primary-rgb: var(--ngo-primary-rgb);
}

/* Sidebar — dedicated layout (logo + scrollable nav) */
body.excelloite-app-page .excelloite-sidebar {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: var(--tb-vertical-menu-width, 250px) !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
}

body.excelloite-app-page .excelloite-sidebar__brand {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    flex: 0 0 auto !important;
    z-index: 2;
    margin-top: 20px;
    margin-bottom: 12px;
}

body.excelloite-app-page .excelloite-sidebar__scroll {
    position: relative !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

body.excelloite-app-page .excelloite-sidebar__scroll::-webkit-scrollbar {
    width: 8px;
}

body.excelloite-app-page .excelloite-sidebar__scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

body.excelloite-app-page .excelloite-sidebar #navbar-nav {
    position: relative !important;
    padding-bottom: 2.5rem;
}

body.excelloite-app-page .excelloite-sidebar #scrollbar,
body.excelloite-app-page .excelloite-sidebar .excelloite-sidebar__scroll {
    pointer-events: auto;
}

html[data-sidebar-size="sm"] body.excelloite-app-page .excelloite-sidebar,
html[data-sidebar-size="sm-hover"] body.excelloite-app-page .excelloite-sidebar,
html[data-sidebar-size="sm-hover-active"] body.excelloite-app-page .excelloite-sidebar {
    width: var(--tb-vertical-menu-width, 250px) !important;
    position: fixed !important;
    padding: 0 !important;
    padding-top: 0 !important;
}

html[data-sidebar-size="sm"] body.excelloite-app-page .excelloite-sidebar__brand,
html[data-sidebar-size="sm-hover"] body.excelloite-app-page .excelloite-sidebar__brand,
html[data-sidebar-size="sm-hover-active"] body.excelloite-app-page .excelloite-sidebar__brand {
    position: relative !important;
    width: auto !important;
    padding: 0 !important;
    background: transparent !important;
    top: auto !important;
    left: auto !important;
}

html[data-sidebar-size="sm"] body.excelloite-app-page .excelloite-sidebar .simplebar-mask,
html[data-sidebar-size="sm-hover"] body.excelloite-app-page .excelloite-sidebar .simplebar-mask,
html[data-sidebar-size="sm-hover-active"] body.excelloite-app-page .excelloite-sidebar .simplebar-mask,
html[data-sidebar-size="sm"] body.excelloite-app-page .excelloite-sidebar .simplebar-content-wrapper,
html[data-sidebar-size="sm-hover"] body.excelloite-app-page .excelloite-sidebar .simplebar-content-wrapper,
html[data-sidebar-size="sm-hover-active"] body.excelloite-app-page .excelloite-sidebar .simplebar-content-wrapper {
    overflow: visible !important;
    height: auto !important;
}

html[data-sidebar-size="sm"] body.excelloite-app-page .excelloite-sidebar .navbar-nav .nav-link span,
html[data-sidebar-size="sm"] body.excelloite-app-page .excelloite-sidebar .menu-title span,
html[data-sidebar-size="sm-hover"] body.excelloite-app-page .excelloite-sidebar .navbar-nav .nav-link span,
html[data-sidebar-size="sm-hover"] body.excelloite-app-page .excelloite-sidebar .menu-title span,
html[data-sidebar-size="sm-hover-active"] body.excelloite-app-page .excelloite-sidebar .navbar-nav .nav-link span,
html[data-sidebar-size="sm-hover-active"] body.excelloite-app-page .excelloite-sidebar .menu-title span {
    display: inline !important;
}

body.excelloite-app-page #vertical-hover {
    display: none !important;
}

@media (max-width: 1024.98px) {
    body.excelloite-app-page .excelloite-sidebar {
        position: fixed !important;
        left: 0 !important;
        margin-left: calc(-1 * var(--tb-vertical-menu-width, 250px)) !important;
        z-index: 1005 !important;
        transition: margin-left 0.25s ease-in-out;
        box-shadow: none;
    }

    body.vertical-sidebar-enable.excelloite-app-page .excelloite-sidebar {
        margin-left: 0 !important;
        box-shadow: 0 0.25rem 1rem rgba(15, 34, 58, 0.18);
    }

    body.excelloite-app-page .vertical-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background-color: rgba(15, 17, 20, 0.35);
        z-index: 1004;
    }

    body.vertical-sidebar-enable.excelloite-app-page .vertical-overlay {
        display: block !important;
        z-index: 1004 !important;
    }

    body.excelloite-app-page .main-content {
        margin-left: 0 !important;
    }

    #page-topbar .topnav-hamburger,
    #topnav-hamburger-icon {
        position: relative;
        z-index: 1006;
        flex-shrink: 0;
        pointer-events: auto !important;
        touch-action: manipulation;
    }

    #page-topbar .navbar-header {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    #page-topbar .navbar-brand-box.horizontal-logo .logo-lg {
        display: none !important;
    }

    #page-topbar .navbar-brand-box.horizontal-logo .logo-sm {
        display: inline-block !important;
    }
}

.app-menu .navbar-brand-box .logo-lg img {
    height: 75px !important;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

#page-topbar .navbar-brand-box.horizontal-logo .logo-lg img {
    height: 75px !important;
    width: auto;
}

/* Header — global donor profile search */
#page-topbar .navbar-header > .d-flex:first-child {
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: visible;
}

.header-donor-search {
    flex: 1;
    min-width: 0;
    max-width: 17.6rem;
    overflow: visible;
}

.header-donor-search-toolbar,
.donor-search-toolbar {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
}

.header-donor-search-toolbar .header-donor-search-wrap,
.donor-search-toolbar .donor-search-wrap {
    flex: 1;
    min-width: 0;
}

.btn-donor-create-from-search {
    flex-shrink: 0;
    white-space: nowrap;
    height: 2.25rem;
    min-height: 2.25rem;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.875rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    border-radius: 50%;
    background: #212529;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
}

@media (min-width: 768px) {
    .header-donor-search {
        max-width: 28rem;
    }
}

.header-donor-search-wrap {
    position: relative;
    overflow: visible;
}

.header-donor-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ngo-primary);
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
}

.header-donor-search-input {
    height: 2.25rem;
    padding-left: 2.25rem;
    padding-right: 0.75rem;
    font-size: 0.875rem;
    border-color: rgba(var(--ngo-primary-rgb), 0.3);
    background: #fff;
}

.header-donor-search-input:focus {
    border-color: var(--ngo-primary);
    box-shadow: 0 0 0 0.15rem rgba(var(--ngo-primary-rgb), 0.12);
}

.header-donor-search-input::placeholder {
    color: #98a6ad;
}

.header-donor-search-dropdown {
    position: absolute;
    left: 0;
    right: auto;
    top: calc(100% + 4px);
    z-index: 1100;
    width: max-content;
    min-width: 100%;
    max-width: min(28rem, calc(100vw - 1.5rem));
    background: #fff;
    border: 1px solid var(--ngo-table-border);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.25rem rgba(15, 34, 58, 0.14);
    max-height: 320px;
    overflow-x: visible;
    overflow-y: auto;
}

.header-donor-search-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    min-width: max-content;
    padding: 0.65rem 0.85rem;
    padding-right: 5.75rem;
    position: relative;
    border: 0;
    border-bottom: 1px solid rgba(var(--ngo-primary-rgb), 0.1);
    background: #fff;
    text-align: left;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.header-donor-search-item:hover,
.header-donor-search-item:focus,
.header-donor-search-item.is-highlighted {
    background: rgba(var(--ngo-primary-rgb), 0.06);
    color: inherit;
}

.header-donor-search-item:last-of-type {
    border-bottom: none;
}

.header-donor-search-item-avatar {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--ngo-primary-rgb), 0.1);
    color: var(--ngo-primary);
    font-size: 1rem;
}

.header-donor-search-item-body {
    flex: 1;
    min-width: max-content;
}

.header-donor-search-item-name {
    font-weight: 600;
    color: #212529;
    white-space: nowrap;
}

.header-donor-search-item-meta {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.35;
}

.header-donor-search-item-meta-line {
    display: block;
    white-space: nowrap;
}

.header-donor-search-item-code {
    position: absolute;
    top: 0.65rem;
    right: 0.85rem;
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
}

.header-donor-search-empty,
.header-donor-search-loading {
    padding: 0.85rem 1rem;
    font-size: 0.8125rem;
    color: #6c757d;
}

.header-donor-search-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Content panel — match RIOS main area */
.excelloite-app-page .page-content {
    background-color: #f3f6f9;
}

.excelloite-app-page .page-content > .container-fluid {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}

.excelloite-app-page .page-title-box {
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
}

.excelloite-app-page .page-title-box h4 {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--tb-body-color, #212529);
}

.excelloite-app-page .page-title-box.rios-page-title-plain h4 {
    text-transform: uppercase;
}

.excelloite-app-page .breadcrumb-item a {
    color: var(--ngo-primary);
}

/* List cards */
.excelloite-app-page .rios-data-table-card > .card-body {
    padding: 1rem 1.25rem !important;
}

.excelloite-app-page .rios-data-table-card .card-title {
    font-size: 1rem;
    font-weight: 600;
}

/* Filter bar — single row (inputs + buttons), scroll if needed */
.excelloite-app-page .filter-bar,
.excelloite-app-page .rios-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0.5rem 0.65rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(var(--ngo-primary-rgb), 0.05);
    border: 1px solid var(--ngo-table-border);
    border-radius: 0.5rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1rem;
}

.excelloite-app-page .filter-bar > .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    flex: 1 1 auto;
    min-width: min-content;
    margin: 0;
    gap: 0.5rem 0.65rem;
    width: 100%;
}

.excelloite-app-page .filter-bar > .row > [class*="col-"] {
    flex: 0 0 auto;
    width: auto !important;
    max-width: none;
    padding: 0;
    margin-top: 0 !important;
}

.excelloite-app-page .filter-bar > .row > [class*="col-"]:not(.filter-bar-actions):not(:has(.form-check)) {
    flex: 0 0 var(--excelloite-filter-field-width);
    width: var(--excelloite-filter-field-width) !important;
}

.excelloite-app-page .filter-bar > .row > .col-12 {
    flex: 0 0 auto;
    width: auto !important;
}

.excelloite-app-page .filter-bar .filter-bar-actions,
.excelloite-app-page .filter-bar > .row > [class*="col-"].d-flex {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    align-self: flex-end;
    flex-shrink: 0;
}

.excelloite-app-page .filter-bar .form-label {
    font-weight: 500;
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
}

.excelloite-app-page .filter-bar .form-control,
.excelloite-app-page .filter-bar .form-select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    min-height: calc(1.4em + 0.5rem + 2px);
}

.excelloite-app-page .filter-bar .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.excelloite-app-page .filter-bar .btn.w-100 {
    width: auto !important;
}

.excelloite-app-page .filter-bar > .row > [class*="col-"]:has(.form-check) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.excelloite-app-page .filter-bar .form-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0;
    padding-left: 0;
    white-space: nowrap;
    min-height: calc(1.4em + 0.5rem + 2px);
}

.excelloite-app-page .filter-bar .form-check.mt-4,
.excelloite-app-page .filter-bar .row > [class*="col-"] .form-check.mt-4 {
    margin-top: 0 !important;
    padding-top: 0;
}

.excelloite-app-page .filter-bar .form-check .form-check-input {
    float: none;
    margin: 0;
    flex-shrink: 0;
}

.excelloite-app-page .filter-bar .form-check .form-check-label {
    margin-bottom: 0;
    padding-left: 0;
    line-height: 1.3;
}

.excelloite-app-page .filter-bar .filter-group {
    flex: 0 0 auto;
    min-width: 0;
}

/* Inline filters in table card toolbar (masters lists) */
.excelloite-app-page .table-toolbar-filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    margin-left: auto;
}

.excelloite-app-page .table-toolbar-filters .form-control,
.excelloite-app-page .table-toolbar-filters .form-select {
    width: var(--excelloite-filter-field-width) !important;
    min-width: var(--excelloite-filter-field-width) !important;
    max-width: var(--excelloite-filter-field-width) !important;
}

.excelloite-app-page .rios-card-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0.75rem;
}

.excelloite-app-page .rios-card-toolbar .card-title {
    flex-shrink: 0;
}

/* Primary / theme buttons */
.btn-excelloite-primary,
.excelloite-app-page .page-title-box .btn-primary,
.excelloite-app-page .rios-card-toolbar > .btn-primary,
.excelloite-app-page .rios-card-toolbar .btn-primary[id^="btnAdd"],
.excelloite-app-page button[id^="btnAdd"].btn-primary,
.excelloite-app-page #btnUploadDocument,
.excelloite-app-page #btnGenerate10bd,
.excelloite-app-page #btnGenerateCert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: #fff;
    background-color: var(--ngo-primary);
    border-color: var(--ngo-primary);
}

.btn-excelloite-primary i,
.btn-excelloite-primary .bi,
.excelloite-app-page .page-title-box .btn-primary i,
.excelloite-app-page .page-title-box .btn-primary .bi,
.excelloite-app-page .rios-card-toolbar > .btn-primary i,
.excelloite-app-page .rios-card-toolbar > .btn-primary .bi,
.excelloite-app-page .rios-card-toolbar .btn-primary[id^="btnAdd"] i,
.excelloite-app-page .rios-card-toolbar .btn-primary[id^="btnAdd"] .bi,
.excelloite-app-page button[id^="btnAdd"].btn-primary i,
.excelloite-app-page #btnUploadDocument i,
.excelloite-app-page #btnGenerate10bd i,
.excelloite-app-page #btnGenerateCert i {
    color: #fff;
    line-height: 1;
    vertical-align: middle;
}

/* Outline variant — same family as primary (toolbar secondary actions) */
.btn-excelloite-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 500;
    color: var(--ngo-primary);
    background-color: #fff;
    border-color: var(--ngo-primary);
}

.btn-excelloite-outline i,
.btn-excelloite-outline .bi {
    color: var(--ngo-primary);
    line-height: 1;
    vertical-align: middle;
}

.btn-excelloite-outline:hover,
.btn-excelloite-outline:focus,
.btn-excelloite-outline:active {
    color: #fff;
    background-color: var(--ngo-primary);
    border-color: var(--ngo-primary);
}

.btn-excelloite-outline:hover i,
.btn-excelloite-outline:hover .bi,
.btn-excelloite-outline:focus i,
.btn-excelloite-outline:focus .bi,
.btn-excelloite-outline:active i,
.btn-excelloite-outline:active .bi {
    color: #fff;
}

.btn-excelloite-primary:hover,
.btn-excelloite-primary:focus,
.btn-excelloite-primary:active,
.excelloite-app-page .page-title-box .btn-primary:hover,
.excelloite-app-page .page-title-box .btn-primary:focus,
.excelloite-app-page .page-title-box .btn-primary:active,
.excelloite-app-page .rios-card-toolbar > .btn-primary:hover,
.excelloite-app-page .rios-card-toolbar > .btn-primary:focus,
.excelloite-app-page .rios-card-toolbar .btn-primary[id^="btnAdd"]:hover,
.excelloite-app-page .rios-card-toolbar .btn-primary[id^="btnAdd"]:focus,
.excelloite-app-page button[id^="btnAdd"].btn-primary:hover,
.excelloite-app-page button[id^="btnAdd"].btn-primary:focus,
.excelloite-app-page #btnUploadDocument:hover,
.excelloite-app-page #btnUploadDocument:focus,
.excelloite-app-page #btnGenerate10bd:hover,
.excelloite-app-page #btnGenerate10bd:focus,
.excelloite-app-page #btnGenerateCert:hover,
.excelloite-app-page #btnGenerateCert:focus {
    color: #fff;
    background-color: var(--ngo-primary-hover);
    border-color: var(--ngo-primary-hover);
}

.btn-primary {
    background-color: var(--ngo-primary);
    border-color: var(--ngo-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--ngo-primary-hover);
    border-color: var(--ngo-primary-hover);
}

.btn-soft-primary {
    color: var(--ngo-primary);
    background-color: rgba(var(--ngo-primary-rgb), 0.1);
    border-color: transparent;
}

.btn-soft-primary:hover {
    color: #fff;
    background-color: var(--ngo-primary);
}

.text-primary {
    color: var(--ngo-primary) !important;
}

.bg-primary {
    background-color: var(--ngo-primary) !important;
}

.border-primary {
    border-color: var(--ngo-primary) !important;
}

.bg-primary-subtle {
    background-color: rgba(var(--ngo-primary-rgb), 0.12) !important;
}

a {
    color: var(--ngo-primary);
}

/* Stat cards */
.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ngo-secondary);
    font-variant-numeric: tabular-nums;
}

.excelloite-app-page .stat-card {
    transition: box-shadow 0.15s ease;
}

.excelloite-app-page .stat-card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(15, 34, 58, 0.08) !important;
}

.excelloite-app-page .rios-dashboard-page .page-title-box.rios-page-title-plain h4 {
    text-transform: uppercase;
}

.excelloite-app-page .rios-dash-kpi {
    background: #fff;
    border: 1px solid var(--ngo-table-border) !important;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(15, 34, 58, 0.04);
    transition: box-shadow 0.15s ease;
    overflow: hidden;
}

.excelloite-app-page .rios-dash-kpi:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(15, 34, 58, 0.08);
}

.excelloite-app-page .rios-dash-kpi .card-body {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 100%;
    padding: 1rem 1.15rem;
}

.excelloite-app-page .rios-dash-kpi-inner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    min-width: 0;
}

.excelloite-app-page .rios-dash-kpi-content {
    min-width: 0;
    flex: 1 1 0;
}

.excelloite-app-page .rios-dash-kpi-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.excelloite-app-page .rios-dash-kpi-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--tb-secondary-color);
    margin-bottom: 0.2rem;
    overflow-wrap: anywhere;
}

.excelloite-app-page .rios-dashboard-page .rios-dash-kpi-label {
    font-weight: 400;
}

.excelloite-app-page .rios-dash-kpi-value {
    font-size: clamp(1.15rem, 1rem + 0.5vw, 1.65rem);
    font-weight: 800;
    color: var(--ngo-secondary);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.excelloite-app-page .rios-dash-kpi-meta {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--tb-secondary-color);
    margin-bottom: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.excelloite-app-page .rios-dash-kpi-projections {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px dashed rgba(15, 34, 58, 0.12);
}

.excelloite-app-page .rios-dash-kpi-projection {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--tb-secondary-color);
    margin-bottom: 0.15rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.excelloite-app-page .rios-dash-kpi-projection:last-child {
    margin-bottom: 0;
}

.excelloite-app-page .rios-dash-kpi-projection span {
    font-weight: 400;
    color: var(--ngo-secondary);
    font-variant-numeric: tabular-nums;
}

.excelloite-app-page .rios-dash-kpi-row--6 .rios-dash-kpi .card-body {
    padding: 0.85rem 0.9rem;
}

.excelloite-app-page .rios-dash-kpi-row--6 .rios-dash-kpi-inner {
    gap: 0.65rem;
}

.excelloite-app-page .rios-dash-kpi-row--6 .rios-dash-kpi-icon {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.1rem;
}

.excelloite-app-page .rios-dash-kpi-row--6 .rios-dash-kpi-value {
    font-size: clamp(0.8rem, 0.65rem + 0.45vw, 1.05rem);
    letter-spacing: -0.015em;
}

.excelloite-app-page .rios-dash-kpi--today .rios-dash-kpi-icon,
.excelloite-app-page .rios-dash-kpi--total .rios-dash-kpi-icon {
    background: var(--ngo-table-head-bg);
    color: var(--ngo-primary);
}

.excelloite-app-page .rios-dash-kpi--month .rios-dash-kpi-icon {
    background: var(--ngo-primary-muted);
    color: var(--ngo-primary-dark);
}

.excelloite-app-page .rios-dash-kpi--fy .rios-dash-kpi-icon,
.excelloite-app-page .rios-dash-kpi--fcra .rios-dash-kpi-icon {
    background: #e8ebf5;
    color: var(--ngo-secondary);
}

.excelloite-app-page .rios-dash-kpi--donors .rios-dash-kpi-icon,
.excelloite-app-page .rios-dash-kpi--tenbe .rios-dash-kpi-icon {
    background: #e8f6f1;
    color: #2d8f6f;
}

.excelloite-app-page .rios-dash-kpi--balance .rios-dash-kpi-icon {
    background: #fff4e5;
    color: #b7791f;
}

.excelloite-app-page .rios-dash-kpi--failed .rios-dash-kpi-icon,
.excelloite-app-page .rios-dash-kpi--missing .rios-dash-kpi-icon {
    background: #fdecea;
    color: #c0392b;
}

.excelloite-app-page .rios-dashboard-page .dashboard-chart-range-dropdown {
    min-width: 14rem;
}

/* List tables — Excelloite theme (#117db7), 1px solid borders (not Punjab cream) */
.excelloite-app-page .rios-list-panel,
.excelloite-app-page .rios-list-panel.bg-body,
.excelloite-app-page .rios-list-panel.border {
    border: none !important;
}

.excelloite-app-page .rios-list-panel {
    --rios-dash-table-border: var(--ngo-table-border);
    --rios-dash-table-head-bg: var(--ngo-table-head-bg);
    --rios-dash-table-cell-bg: var(--ngo-table-cell-bg);
    --rios-dash-table-cell-hover: var(--ngo-primary-light);
}

.excelloite-app-page .rios-list-panel,
.excelloite-app-page .rios-list-panel.bg-body {
    border-radius: 0 !important;
}

.excelloite-app-page .rios-list-panel.bg-body {
    background-color: var(--ngo-table-cell-bg) !important;

}

.excelloite-app-page .rios-list-panel .rios-dash-list-table {
    border: 1px solid var(--ngo-table-border) !important;
}

.excelloite-app-page .rios-list-panel .rios-dash-list-table thead.table-light th,
.excelloite-app-page .rios-list-panel .rios-dash-list-table thead th {
    background-color: var(--ngo-table-head-bg) !important;
    color: var(--ngo-primary) !important;
    border: 1px solid var(--ngo-table-border) !important;
}

.excelloite-app-page .rios-list-panel .rios-dash-list-table tbody td {
    background-color: var(--ngo-table-cell-bg);
    border: 1px solid var(--ngo-table-border) !important;
}

.excelloite-app-page .rios-list-panel .rios-dash-list-table tbody tr:hover td {
    background-color: var(--ngo-primary-light) !important;
}

/* Amount / money columns — right aligned */
.excelloite-app-page table th.col-amount,
.excelloite-app-page table td.col-amount,
.excelloite-app-page table th.text-amount,
.excelloite-app-page table td.text-amount {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
}

.excelloite-app-page .card .rios-table-scroll .rios-list-panel .rios-dash-list-table thead th:last-child {
    background-color: var(--ngo-table-head-bg) !important;
}

.excelloite-app-page .card .rios-table-scroll .rios-list-panel .rios-dash-list-table thead th:last-child,
.excelloite-app-page .card .rios-table-scroll .rios-list-panel .rios-dash-list-table tbody td:last-child {
    background-color: var(--ngo-table-cell-bg);
    border: 1px solid var(--ngo-table-border) !important;
}

.excelloite-app-page .rios-list-panel .rios-dash-list-table tbody tr:hover td:last-child {
    background-color: var(--ngo-primary-light) !important;
}

/* Horizontal scroll: wide tables scroll; last column stays sticky (rios-append) */
.excelloite-app-page .rios-data-table.rios-table-scroll,
.excelloite-app-page .table-responsive.rios-table-scroll,
.excelloite-app-page .card-excelloite > .table-responsive,
.excelloite-app-page .card-body > .table-responsive:not(.dropdown-menu) {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.excelloite-app-page .rios-list-panel {
    overflow: visible !important;
    width: max-content;
    min-width: 100%;
}

.excelloite-app-page .rios-list-panel .rios-dash-list-table,
.excelloite-app-page .rios-table-scroll > table,
.excelloite-app-page .rios-data-table-card table.table,
.excelloite-app-page .card-excelloite table.table,
.excelloite-app-page .table-responsive table.table,
.excelloite-app-page .table-responsive table.w-100 {
    width: max-content !important;
    min-width: 100%;
    table-layout: auto;
}

/* Single-line cells */
.excelloite-app-page .rios-data-table-card table th,
.excelloite-app-page .rios-data-table-card table td,
.excelloite-app-page .rios-list-panel table th,
.excelloite-app-page .rios-list-panel table td,
.excelloite-app-page .rios-table-scroll table th,
.excelloite-app-page .rios-table-scroll table td,
.excelloite-app-page .card-excelloite table th,
.excelloite-app-page .card-excelloite table td,
.excelloite-app-page .table-responsive table th,
.excelloite-app-page .table-responsive table td {
    white-space: nowrap;
}

/* Table action icons — RIOS outline buttons */
.excelloite-app-page .rios-list-panel .btn-excelloite-action,
.excelloite-app-page .rios-list-panel td .btn-sm.btn-soft-primary,
.excelloite-app-page .rios-list-panel td .btn-sm.btn-soft-danger {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
}

.excelloite-app-page .rios-list-panel td .btn-sm.btn-soft-primary {
    color: var(--ngo-primary);
    border: 1px solid var(--ngo-primary);
    background: transparent;
}

.excelloite-app-page .rios-list-panel td .btn-sm.btn-soft-danger {
    color: var(--tb-danger, #dc3545);
    border: 1px solid var(--tb-danger, #dc3545);
    background: transparent;
}

/* Modals */
.modal .form-label {
    font-weight: 500;
    margin-bottom: 0.35rem;
}

/* Modal forms — two fields per row (matches Record Donation popup) */
.modal .modal-body form .row.g-2,
.modal .modal-body form .row.g-3,
.modal .modal-body > .row.g-2,
.modal .modal-body > .row.g-3,
.modal .modal-body .tab-pane form .row.g-2,
.modal .modal-body .tab-pane form .row.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0.75rem;
}

@media (min-width: 768px) {
    .modal .modal-body form .row > .col-md-3:not(.col-12),
    .modal .modal-body > .row > .col-md-3:not(.col-12),
    .modal .modal-body .tab-pane form .row > .col-md-3:not(.col-12),
    .modal .modal-body form .row > .col-md-4:not(.col-12),
    .modal .modal-body > .row > .col-md-4:not(.col-12),
    .modal .modal-body .tab-pane .row > .col-md-4:not(.col-12) {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.nav-tabs-custom .nav-link,
.excelloite-app-page .nav-tabs .nav-link,
.rios-nav-tabs .nav-link {
    font-weight: 500;
}

.excelloite-app-page .rios-nav-tabs.nav-tabs {
    border-bottom: 1px solid var(--tb-border-color, #e9ebec);
}

.excelloite-app-page .rios-nav-tabs.nav-tabs .nav-link.active {
    color: var(--ngo-primary);
    border-bottom-color: var(--ngo-primary);
}

.excelloite-app-page .communication-center-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    line-height: 1.2;
}

.excelloite-app-page .communication-center-tabs .nav-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.excelloite-app-page .communication-logs-table .communication-log-attempts-count {
    display: inline-block;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ngo-secondary);
}

.excelloite-app-page .communication-logs-table .communication-log-retry-btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    border: 1px solid #e8bc5a;
    background: #fffaf0;
    color: #b7791f;
}

.excelloite-app-page .communication-logs-table .communication-log-retry-btn:hover,
.excelloite-app-page .communication-logs-table .communication-log-retry-btn:focus {
    color: #fff;
    background: #e8bc5a;
    border-color: #e8bc5a;
}

.excelloite-app-page .btn-retry-all-failed {
    border: 1px solid #212529 !important;
    color: #212529;
    background: #fffaf0;
}

.excelloite-app-page .btn-retry-all-failed:hover,
.excelloite-app-page .btn-retry-all-failed:focus {
    border-color: #212529 !important;
    color: #212529;
    background: #fff3d6;
}

.excelloite-app-page .template-placeholders-card {
    background: #f8f9fa;
    border: 1px solid #212529;
    border-radius: 0.4rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #212529;
}

.excelloite-app-page .template-placeholders-card strong {
    color: #212529;
    font-weight: 600;
}

.excelloite-app-page .report-split-layout > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.excelloite-app-page .report-split-layout > [class*="col-"] > .row {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
}

.excelloite-app-page .report-split-layout > [class*="col-"] > .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding-left: 0;
    padding-right: 0;
    min-height: 100%;
}

.excelloite-app-page .report-split-layout .rios-data-table-card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.excelloite-app-page .report-split-layout .rios-data-table-card > .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.excelloite-app-page .report-split-layout .rios-data-table-card .rios-data-table {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}

.excelloite-app-page .report-split-layout .report-split-table-card .rios-data-table.rios-table-scroll {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.excelloite-app-page .report-split-layout .report-split-table-card .rios-list-panel {
    flex: 1 1 auto;
    min-height: 0;
    width: max-content;
    min-width: 100%;
}

.excelloite-app-page .report-split-layout .report-split-table-card .rios-dash-list-table th,
.excelloite-app-page .report-split-layout .report-split-table-card .rios-dash-list-table td {
    white-space: nowrap;
}

.excelloite-app-page .report-split-layout .report-split-chart-card [id$="PieChart"],
.excelloite-app-page .report-split-layout .report-split-chart-card [id$="BarChart"] {
    width: 100%;
    min-height: 240px;
}

.excelloite-app-page .report-split-layout .report-split-chart-card .rios-list-panel.bg-body {
    border: none !important;
    background: transparent !important;
    display: block;
    width: 100%;
    overflow-y: auto;
    max-height: 100%;
}

.excelloite-app-page .campaign-preview-recipients-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #f8f9fa;
    border: 1px solid #212529;
    border-radius: 0.4rem;
    padding: 0.75rem 0.9rem;
    color: #212529;
}

.excelloite-app-page .campaign-preview-recipients-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(33, 37, 41, 0.15);
    font-size: 1.1rem;
    color: var(--ngo-primary);
    flex-shrink: 0;
}

.excelloite-app-page .campaign-preview-recipients-value {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
    color: #212529;
}

.excelloite-app-page .campaign-preview-recipients-label {
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #6c757d;
}

/* List footer */
.excelloite-list-meta {
    font-size: 0.75rem;
    color: var(--tb-secondary-color);
}

/* Login */
.auth-page-wrapper {
    position: relative;
    padding-bottom: 2.75rem;
}

.login-developed-by {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--tb-secondary-color, #878a99);
}

.login-developed-by a {
    color: var(--ngo-primary);
    text-decoration: none;
    font-weight: 500;
}

.login-developed-by a:hover {
    text-decoration: underline;
}

.auth-page-wrapper .btn-primary {
    background-color: var(--ngo-primary);
    border-color: var(--ngo-primary);
}

.auth-page-wrapper .login-page-logo,
.auth-page-wrapper .text-center.mb-4 img[alt],
.auth-page-wrapper .auth-login-header .login-page-logo {
    height: 52px;
    max-height: 52px;
    width: auto;
    max-width: min(100%, 200px);
    object-fit: contain;
}

.auth-page-wrapper .auth-login-header {
    margin-bottom: 1.25rem !important;
}

.auth-page-wrapper .auth-login-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--tb-heading-color, #212529);
}

.auth-page-wrapper .auth-login-tagline {
    font-size: 0.8125rem;
    line-height: 1.4;
}

.auth-page-wrapper .login-method-tabs {
    display: flex;
    width: 100%;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--tb-border-color, #e9ebec);
}

.auth-page-wrapper .login-method-tabs .nav-item {
    flex: 1;
}

.auth-page-wrapper .login-method-tabs .nav-link {
    width: 100%;
    margin-bottom: -1px;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--tb-secondary-color, #878a99);
    font-weight: 500;
    text-align: center;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.auth-page-wrapper .login-method-tabs .nav-link:hover,
.auth-page-wrapper .login-method-tabs .nav-link:focus {
    color: var(--ngo-primary);
    background: transparent;
    box-shadow: none;
}

.auth-page-wrapper .login-method-tabs .nav-link.active {
    color: var(--ngo-primary);
    background: transparent;
    border-bottom-color: var(--ngo-primary);
}

#excelloite-toast-container {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1090;
    max-width: 22rem;
    pointer-events: none;
}

#excelloite-toast-container .toast {
    pointer-events: auto;
}

/* Page toolbar — consistent action button row */
.excelloite-app-page .page-toolbar-actions .btn-excelloite-primary,
.excelloite-app-page .page-toolbar-actions .btn-excelloite-outline {
    font-weight: 500;
}

.excelloite-app-page .page-toolbar-actions-compact {
    flex-shrink: 0;
    flex-wrap: nowrap;
}

@media (max-width: 991.98px) {
    .excelloite-app-page .page-toolbar-actions-compact {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

.excelloite-app-page .page-toolbar-actions .btn-group .btn-excelloite-outline.dropdown-toggle::after {
    margin-left: 0.35em;
    vertical-align: middle;
}

.excelloite-app-page .page-toolbar-actions .dropdown-menu {
    min-width: 11rem;
    border-color: rgba(var(--ngo-primary-rgb), 0.15);
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.1);
}

.excelloite-app-page .page-toolbar-actions .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0.45rem 0.85rem;
}

.excelloite-app-page .page-toolbar-actions .dropdown-menu .dropdown-item i {
    color: var(--ngo-primary);
    font-size: 1.05rem;
    line-height: 1;
}

.excelloite-app-page .page-toolbar-actions .dropdown-menu .dropdown-item:hover,
.excelloite-app-page .page-toolbar-actions .dropdown-menu .dropdown-item:focus {
    background-color: rgba(var(--ngo-primary-rgb), 0.08);
    color: var(--ngo-primary);
}

/* 10BD validation status badges — readable contrast (not subtle) */
.badge-tenbd-valid {
    background-color: #198754;
    color: #fff;
    font-weight: 600;
}

.badge-tenbd-invalid {
    background-color: #dc3545;
    color: #fff;
    font-weight: 600;
}

.badge-tenbd-warning {
    background-color: #e8a317;
    color: #1a1a1a;
    font-weight: 600;
}

/* Standard modal width — matches Record Donation popup (40rem) */
.excelloite-app-page .modal .excelloite-modal-dialog {
    max-width: 40rem;
}

@media (min-width: 576px) {
    .excelloite-app-page .modal .excelloite-modal-dialog {
        margin-left: auto;
        margin-right: auto;
    }
}

#donationModal .donation-form-block + .donation-form-block {
    margin-top: 1.35rem;
    padding-top: 1.35rem;
    border-top: 1px solid #e9ecef;
}

#donationModal .donation-form-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 1rem;
    padding: 0;
    background: none;
    border: none;
    text-transform: none;
    letter-spacing: normal;
}

#donationModal .donation-payment-detail-panel {
    margin-top: 1rem;
    padding: 1rem 1.15rem 1.1rem;
    background: rgba(var(--ngo-primary-rgb), 0.06);
    border: 1px solid rgba(var(--ngo-primary-rgb), 0.18);
    border-radius: 5px;
}

#donationModal .donation-payment-detail-heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

#donationModal .donation-payment-detail-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.45rem;
    background: rgba(var(--ngo-primary-rgb), 0.12);
    color: var(--ngo-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

#donationModal .donation-payment-detail-heading-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ngo-primary);
    letter-spacing: 0.01em;
}

#donationModal .donation-payment-detail-panel .form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

/* Record donation — donor picker */
#donationModal .donation-donor-picker {
    margin-bottom: 0;
}

#donationModal .donation-donor-locked #donorPickState {
    display: none !important;
}

#donationModal .donor-search-wrap {
    position: relative;
}

#donationModal .donor-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ngo-primary);
    font-size: 1.15rem;
    z-index: 2;
    pointer-events: none;
}

#donationModal .donor-search-input {
    padding-left: 2.5rem;
    border-color: rgba(var(--ngo-primary-rgb), 0.35);
}

#donationModal .donor-search-input:focus {
    border-color: var(--ngo-primary);
    box-shadow: 0 0 0 0.15rem rgba(var(--ngo-primary-rgb), 0.15);
}

#donationModal .donor-search-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 1060;
    background: #fff;
    border: 1px solid var(--ngo-table-border);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.25rem rgba(15, 34, 58, 0.12);
    max-height: 260px;
    overflow-y: auto;
}

#donationModal .donor-search-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 0;
    border-bottom: 1px solid rgba(var(--ngo-primary-rgb), 0.12);
    background: #fff;
    text-align: left;
    transition: background-color 0.15s ease;
}

#donationModal .donor-search-item:hover,
#donationModal .donor-search-item:focus {
    background: rgba(var(--ngo-primary-rgb), 0.06);
}

#donationModal .donor-search-item:last-of-type {
    border-bottom: none;
}

#donationModal .donor-search-item-avatar {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--ngo-primary-rgb), 0.1);
    color: var(--ngo-primary);
    font-size: 1.1rem;
}

#donationModal .donor-search-item-body {
    flex: 1;
    min-width: 0;
}

#donationModal .donor-search-item-name {
    font-weight: 600;
    color: #212529;
}

#donationModal .donor-search-item-meta {
    font-size: 0.8125rem;
    color: #6c757d;
}

#donationModal .donor-search-item-code {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
}

#donationModal .donor-search-empty {
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

#donationModal .donor-search-create {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 0;
    border-top: 1px dashed rgba(var(--ngo-primary-rgb), 0.35);
    background: rgba(var(--ngo-primary-rgb), 0.04);
    color: var(--ngo-primary);
    font-weight: 600;
    text-align: left;
}

#donationModal .donor-search-create:hover {
    background: rgba(var(--ngo-primary-rgb), 0.1);
}

#donationModal .donor-selected-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(var(--ngo-primary-rgb), 0.35);
    border-radius: 0.5rem;
    background: rgba(var(--ngo-primary-rgb), 0.06);
}

#donationModal .donor-selected-avatar {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ngo-primary);
    color: #fff;
    font-size: 1.35rem;
}

#donationModal .donor-selected-body {
    flex: 1;
    min-width: 0;
}

#donationModal .donor-selected-name {
    font-weight: 700;
    font-size: 1.05rem;
}

#donationModal .donor-selected-meta {
    font-size: 0.8125rem;
    color: #6c757d;
    margin-top: 0.15rem;
}

#donationModal .donor-new-card {
    padding: 1rem 1.15rem;
    border: 1px solid var(--ngo-table-border);
    border-radius: 0.5rem;
    background: #fff;
}

#donationModal .donor-id-proof-panel {
    padding: 0.85rem 1rem 1rem;
    border: 1px dashed #f0c674;
    border-radius: 0.5rem;
    background: #fff9e6;
}

@media (max-width: 767.98px) {
    .app-menu .navbar-brand-box .logo-lg img {
        height: 56px !important;
    }
}

/* Donor profile page */
.donor-profile-page .breadcrumb-sm {
    font-size: 0.8125rem;
    margin-bottom: 0;
}

.donor-profile-page .breadcrumb-sm .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}

.donor-profile-hero {
    background: linear-gradient(135deg, rgba(var(--ngo-primary-rgb), 0.05) 0%, #fff 60%);
    border: 1px solid var(--ngo-table-border) !important;
}

.donor-profile-avatar {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ngo-primary);
    background: rgba(var(--ngo-primary-rgb), 0.1);
}

.donor-profile-name {
    font-weight: 600;
    color: var(--ngo-secondary, #0f223a);
}

.donor-profile-code {
    font-size: 0.875rem;
}

.donor-profile-badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

.donor-profile-badge--active {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.donor-profile-badge--inactive {
    background: rgba(108, 117, 125, 0.12);
    color: #6c757d;
}

.donor-profile-badge--type {
    background: rgba(var(--ngo-primary-rgb), 0.12);
    color: var(--ngo-primary);
}

.donor-profile-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: var(--tb-body-color);
    text-decoration: none;
}

.donor-profile-contact-link:hover {
    color: var(--ngo-primary);
}

.donor-profile-contact-link--static {
    cursor: default;
}

.donor-profile-kpi {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #fff;
    border: 1px solid var(--ngo-table-border);
    border-radius: 0.5rem;
    padding: 1rem 1.15rem;
    height: 100%;
    box-shadow: 0 1px 2px rgba(15, 34, 58, 0.04);
}

.donor-profile-kpi-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--ngo-primary-rgb), 0.1);
    color: var(--ngo-primary);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.donor-profile-kpi-label {
    font-size: 0.75rem;
    color: var(--tb-secondary-color);
}

.donor-profile-kpi-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ngo-secondary);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.donor-profile-main-card,
.donor-profile-activity-card {
    border: 1px solid var(--ngo-table-border) !important;
}

.donor-profile-split-row {
    align-items: stretch;
}

.donor-profile-split-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.donor-profile-main-card,
.donor-profile-activity-card {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
}

.donor-profile-activity-card {
    overflow: hidden;
}

.donor-profile-main-card > .card-body,
.donor-profile-activity-card > .card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.donor-profile-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 1rem 1.25rem 0;
    border-bottom: none;
}

.donor-profile-pills .nav-link {
    border: none;
    border-radius: 2rem;
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--tb-secondary-color);
    background: transparent;
}

.donor-profile-pills .nav-link:hover {
    color: var(--ngo-primary);
    background: rgba(var(--ngo-primary-rgb), 0.06);
}

.donor-profile-pills .nav-link.active {
    color: #fff;
    background: var(--ngo-primary);
}

.donor-profile-tab-body {
    padding: 1.25rem;
    min-height: 0;
}

.donor-profile-tab-filter {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.donor-profile-tab-filter-field {
    width: 100%;
    max-width: 11rem;
}

.donor-profile-tab-body > .tab-pane {
    height: 100%;
}

.donor-profile-group-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tb-secondary-color);
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
}

.donor-profile-group-label:first-child {
    margin-top: 0;
}

.donor-info-tile {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.donor-info-tile--wide {
    align-items: flex-start;
}

.donor-info-tile-icon {
    color: var(--ngo-primary);
    font-size: 1.1rem;
    line-height: 1.4;
    opacity: 0.85;
    flex-shrink: 0;
}

.donor-info-tile-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.donor-info-tile-label {
    font-size: 0.6875rem;
    color: var(--tb-secondary-color);
    line-height: 1.3;
}

.donor-info-tile-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tb-body-color);
    line-height: 1.35;
    word-break: break-word;
}

.donor-info-tile-value--mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 500;
    font-size: 0.8125rem;
}

.donor-profile-table thead th {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ngo-primary);
    font-weight: 600;
    background: rgba(var(--ngo-primary-rgb), 0.06);
    border-bottom: 1px solid var(--ngo-table-border);
    white-space: nowrap;
}

.donor-profile-table tbody td {
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(var(--ngo-primary-rgb), 0.08);
    vertical-align: middle;
}

.donor-profile-table tbody tr:last-child td {
    border-bottom: none;
}

.donor-profile-table tbody tr:hover td {
    background-color: var(--ngo-primary-light) !important;
}

.donor-profile-activity-heading {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--tb-body-color);
    flex-shrink: 0;
}

.donor-activity-feed {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-left: 0.25rem;
    padding-right: 0.15rem;
    -webkit-overflow-scrolling: touch;
}

.donor-activity-item {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
    position: relative;
}

.donor-activity-item:last-child {
    padding-bottom: 0;
}

.donor-activity-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 0.69rem;
    top: 1.5rem;
    bottom: 0;
    width: 2px;
    background: rgba(var(--ngo-primary-rgb), 0.15);
    border-radius: 1px;
}

.donor-activity-marker {
    flex-shrink: 0;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    z-index: 1;
    margin-top: 0.1rem;
}

.donor-activity-body {
    flex: 1;
    min-width: 0;
    padding-top: 0.05rem;
}

.donor-activity-title {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    line-height: 1.35;
}

.donor-activity-desc {
    font-size: 0.75rem;
    color: var(--tb-secondary-color);
    margin-bottom: 0.2rem;
    line-height: 1.45;
}

.donor-activity-time {
    font-size: 0.6875rem;
    color: var(--tb-secondary-color);
    opacity: 0.85;
}

.donor-profile-comms {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.donor-comm-slider-viewport {
    overflow: hidden;
}

.donor-comm-slider-track {
    display: flex;
    transition: transform 0.3s ease;
}

.donor-comm-slider-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.donor-comm-slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--tb-border-color, #e9ebec);
}

.donor-comm-slider-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
}

.donor-comm-slider-counter {
    font-size: 0.75rem;
    color: var(--tb-secondary-color);
    font-weight: 500;
}

.donor-comm-slider-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    max-width: 100%;
}

.donor-comm-slider-dot {
    width: 0.45rem;
    height: 0.45rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cbd5e1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.donor-comm-slider-dot.active {
    background: var(--ngo-primary);
    transform: scale(1.15);
}

.donor-profile-comms .donor-comm-item {
    padding: 0.75rem 0.85rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.donor-comm-message {
    max-height: 10rem;
    overflow-y: auto;
    padding: 0.5rem 0.65rem;
    margin-top: 0.35rem;
    background: #fff;
    border: 1px solid var(--tb-border-color, #e9ebec);
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    color: var(--tb-secondary-color);
    line-height: 1.5;
    word-break: break-word;
}

.donor-comm-message::-webkit-scrollbar {
    width: 5px;
}

.donor-comm-message::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.donor-comm-subject {
    color: var(--tb-body-color);
}

.donor-profile-comms .donor-comm-item .badge {
    font-size: 0.625rem;
    font-weight: 600;
}

.donor-profile-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--tb-secondary-color);
}

.donor-profile-empty i {
    font-size: 1.75rem;
    opacity: 0.3;
    display: block;
    margin-bottom: 0.35rem;
}

.excelloite-app-page .table-excelloite th.col-actions,
.excelloite-app-page .table-excelloite td.col-actions,
.excelloite-app-page .rios-dash-list-table th.col-actions,
.excelloite-app-page .rios-dash-list-table td.col-actions,
.excelloite-app-page .table-excelloite td:has(.btn-sm),
.excelloite-app-page .rios-dash-list-table td:has(.btn-sm) {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.excelloite-app-page .donors-list-table th.col-actions,
.excelloite-app-page .donors-list-table td.col-actions {
    text-align: right;
}

.excelloite-app-page .donors-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    width: 100%;
}

.excelloite-app-page .donations-list-table th.col-actions,
.excelloite-app-page .donations-list-table td.col-actions {
    min-width: 15rem;
}

.excelloite-app-page .donations-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.excelloite-app-page .donors-list-table tr.donor-row-merged > td {
    background-color: #fff8e6;
}

.excelloite-app-page .donors-list-table.table-hover > tbody > tr.donor-row-merged:hover > td {
    background-color: #fff3d4;
}

.excelloite-app-page .donors-list-table th.donors-sortable-th {
    white-space: nowrap;
    width: 1%;
}

.excelloite-app-page .donors-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.excelloite-app-page .donors-sort-link:hover {
    color: var(--excelloite-primary);
}

.excelloite-app-page .donors-sort-link.is-active {
    color: var(--excelloite-primary);
}

.excelloite-app-page .donors-sort-link i {
    font-size: 0.95rem;
    line-height: 1;
}

.bulk-receipt-progress {
    height: 10px;
    overflow: hidden;
}

#bulkReceiptProgressBar {
    transition: width 0.25s ease-out;
}

#bulkReceiptProgressBar.is-complete {
    width: 100% !important;
    background-color: var(--excelloite-primary);
}

/* Floating action — record donation */
.excelloite-fab-record-donation {
    position: fixed;
    right: 3rem;
    bottom: 3rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ngo-primary);
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    box-shadow: 0 0.35rem 1rem rgba(var(--ngo-primary-rgb), 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.excelloite-fab-record-donation:hover,
.excelloite-fab-record-donation:focus {
    background: var(--ngo-primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.25rem rgba(var(--ngo-primary-rgb), 0.5);
}

.excelloite-fab-record-donation:active {
    transform: translateY(0);
}

/* Role modal — donors & donations access rows */
.excelloite-app-page .role-resource-permissions .role-resource-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
}

.excelloite-app-page .role-resource-permissions .role-resource-row:last-child {
    border-bottom: 0;
}

.excelloite-app-page .role-resource-permissions .role-resource-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.excelloite-app-page .role-module-group {
    margin-top: 0.75rem;
}

.excelloite-app-page .role-module-group:first-of-type {
    margin-top: 0.25rem;
}

.excelloite-app-page .role-module-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 5.25rem 5.25rem;
    column-gap: 0.75rem;
    align-items: center;
    padding: 0.4rem 0.5rem;
}

.excelloite-app-page .role-module-header {
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.06);
    border-radius: 0.375rem;
    margin-bottom: 0.15rem;
}

.excelloite-app-page .role-module-items .role-module-row {
    border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
}

.excelloite-app-page .role-module-items .role-module-row:last-child {
    border-bottom: 0;
}

.excelloite-app-page .role-module-access {
    margin-bottom: 0;
    min-height: 0;
    padding-left: 1.5em;
    white-space: nowrap;
}

.excelloite-app-page .role-module-label {
    font-weight: 500;
    min-width: 0;
}

.excelloite-app-page .role-module-toggle {
    border: 0;
    background: transparent;
    padding: 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--bs-body-color);
    text-align: left;
    cursor: pointer;
    min-width: 0;
}

.excelloite-app-page .role-module-toggle:hover,
.excelloite-app-page .role-module-toggle:focus {
    color: var(--bs-primary);
    outline: none;
}

.excelloite-app-page .role-resource-permissions .role-resource-actions .form-check-input:disabled + .form-check-label {
    opacity: 0.45;
}

@media (max-width: 575.98px) {
    .excelloite-app-page .role-resource-permissions .role-resource-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .excelloite-app-page .role-module-row {
        grid-template-columns: minmax(0, 1fr) 5.25rem 5.25rem;
    }
}

/* Master status switch — list tables & modals */
.master-status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 1.75rem;
}

.master-status-toggle__switch .form-check-input {
    width: 2.25rem;
    height: 1.15rem;
    cursor: pointer;
    margin-top: 0;
}

.master-status-toggle__label {
    min-width: 4.25rem;
    user-select: none;
    transition: color 0.15s ease;
}

.master-status-toggle--no-label {
    justify-content: center;
    gap: 0;
}

.master-status-toggle__spinner {
    display: none;
    line-height: 1;
}

.master-status-toggle.is-loading .master-status-toggle__spinner {
    display: inline-flex;
}

.master-status-toggle.is-loading .form-check-input {
    opacity: 0.45;
    pointer-events: none;
}

.master-status-toggle.is-loading .master-status-toggle__label {
    opacity: 0.55;
}

.master-status-field .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    cursor: pointer;
    margin-top: 0.1rem;
}

.master-status-field .form-check-label {
    cursor: pointer;
    padding-left: 0.25rem;
}

.master-status-field__text {
    transition: color 0.15s ease;
}

.donor-mobile-input-group .donor-mobile-code {
    flex: 0 0 auto;
    width: auto;
    min-width: 8.5rem;
    max-width: 11.5rem;
}

.donor-mobile-input-group .donor-mobile-local {
    min-width: 0;
}

/* Staff autosuggest — user account modal (matches header donor search dropdown) */
#userModal .modal-content,
#userModal .modal-body,
#userModal .modal-dialog {
    overflow: visible;
}

#userModal .user-staff-autosuggest {
    width: 100%;
}

#userModal .user-staff-autosuggest .header-donor-search-dropdown {
    z-index: 1080;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

#userModal .user-staff-autosuggest .header-donor-search-item {
    min-width: 0;
    padding-right: 4.5rem;
}

#userModal .user-staff-autosuggest .header-donor-search-item-body {
    min-width: 0;
}

#userModal .user-staff-autosuggest .header-donor-search-item-name,
#userModal .user-staff-autosuggest .header-donor-search-item-meta-line {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Causes, Funds & Finance modules */
.excelloite-finance-module .rios-data-table-card .rios-list-panel.bg-body {
    border: 0 !important;
    background: transparent !important;
}

.excelloite-finance-module .rios-dash-kpi-row--6 .rios-dash-kpi .card-body {
    padding: 0.85rem 1rem;
}

.excelloite-finance-module .rios-dash-kpi-label {
    font-weight: 400;
}

.excelloite-finance-module .cause-detail-dl dt {
    font-weight: 500;
    color: var(--tb-secondary-color);
}

.excelloite-finance-module .cause-detail-dl dd {
    margin-bottom: 0.65rem;
}

.excelloite-finance-module .finance-inline-table thead th {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--tb-secondary-color);
    font-weight: 600;
    border-bottom: 1px solid var(--ngo-table-border);
    background: var(--ngo-table-head-bg);
}

.excelloite-finance-module .finance-inline-table tbody td {
    border-bottom: 1px solid var(--ngo-table-border-soft);
    vertical-align: middle;
}

.excelloite-finance-module .finance-inline-table tbody tr:last-child td {
    border-bottom: 0;
}

.excelloite-finance-module .allocation-lines-table thead th {
    font-size: 0.6875rem;
    text-transform: uppercase;
    color: var(--tb-secondary-color);
    font-weight: 600;
    border-bottom: 1px solid var(--ngo-table-border);
    background: var(--ngo-table-head-bg);
}

.excelloite-finance-module .allocation-lines-table tbody td {
    border-bottom: 1px solid var(--ngo-table-border-light);
    vertical-align: middle;
}

.excelloite-finance-module .allocation-summary {
    font-size: 0.875rem;
    color: var(--tb-secondary-color);
}

.excelloite-finance-module .allocation-summary strong {
    color: var(--ngo-secondary);
}

/* Allocate donation modal — header-style autosuggest, same width as input column */
#allocationModal .modal-content,
#allocationModal .modal-body,
#allocationModal .modal-dialog {
    overflow: visible;
}

#allocationModal .allocation-donation-autosuggest {
    width: 100%;
}

#allocationModal .allocation-donation-autosuggest .header-donor-search-dropdown {
    z-index: 1080;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

#allocationModal .allocation-donation-autosuggest .header-donor-search-item {
    min-width: 0;
    padding-right: 4.5rem;
}

#allocationModal .allocation-donation-autosuggest .header-donor-search-item-body {
    min-width: 0;
}

#allocationModal .allocation-donation-autosuggest .header-donor-search-item-name,
#allocationModal .allocation-donation-autosuggest .header-donor-search-item-meta-line {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Donor merge modal — header-style autosuggest */
#donorMergeModal .modal-content,
#donorMergeModal .modal-body,
#donorMergeModal .modal-dialog {
    overflow: visible;
}

#donorMergeModal .donor-merge-autosuggest {
    width: 100%;
}

#donorMergeModal .donor-merge-autosuggest .header-donor-search-dropdown {
    z-index: 1080;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

#donorMergeModal .donor-merge-autosuggest .header-donor-search-item {
    min-width: 0;
    padding-right: 4.5rem;
}

#donorMergeModal .donor-merge-autosuggest .header-donor-search-item-body {
    min-width: 0;
}

#donorMergeModal .donor-merge-autosuggest .header-donor-search-item-name,
#donorMergeModal .donor-merge-autosuggest .header-donor-search-item-meta-line {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Cause profile page */
.cause-profile-page .breadcrumb-sm {
    font-size: 0.8125rem;
}

.cause-profile-page .breadcrumb-sm .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}

.cause-profile-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--ngo-primary-rgb), 0.12);
    color: var(--ngo-primary);
    font-size: 1.75rem;
}

.cause-profile-name {
    font-weight: 600;
    color: var(--ngo-secondary);
}

.cause-profile-meta,
.cause-profile-tags {
    font-size: 0.875rem;
}

.cause-profile-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--tb-secondary-color);
}

.cause-profile-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
}

.cause-profile-badge--open {
    background: rgba(var(--ngo-primary-rgb), 0.12);
    color: var(--ngo-primary);
}

.cause-profile-badge--progress {
    background: rgba(255, 193, 7, 0.15);
    color: #b78103;
}

.cause-profile-badge--closed {
    background: rgba(108, 117, 125, 0.12);
    color: #6c757d;
}

.cause-profile-badge--category {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.cause-profile-badge--inactive {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.cause-profile-main-card {
    border-radius: 0.5rem;
    overflow: hidden;
}

.cause-profile-page .donor-info-tile-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tb-body-color);
}

.cause-profile-page .donor-info-tile-value {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--tb-secondary-color);
}

.cause-profile-table thead th {
    white-space: nowrap;
}

.cause-profile-table tfoot th {
    font-size: 0.8125rem;
    font-weight: 600;
}

.cause-document-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--ngo-table-border);
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
}

.cause-document-card:hover {
    border-color: rgba(var(--ngo-primary-rgb), 0.35);
    box-shadow: 0 0.25rem 0.75rem rgba(var(--ngo-primary-rgb), 0.08);
    color: inherit;
}

.cause-document-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--ngo-primary-rgb), 0.1);
    color: var(--ngo-primary);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.cause-document-card-body {
    min-width: 0;
    flex: 1;
}

.cause-document-card-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tb-body-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cause-document-card-meta {
    display: block;
    font-size: 0.75rem;
    color: var(--tb-secondary-color);
    margin-top: 0.15rem;
}

.cause-document-card-action {
    color: var(--tb-secondary-color);
    flex-shrink: 0;
}

/* Theme overrides — sidebar, tables */
body.excelloite-app-page .navbar-menu .navbar-nav > .nav-item > .nav-link.menu-link[data-bs-toggle=collapse][aria-expanded=true],
body.excelloite-app-page .navbar-menu .navbar-nav > .nav-item > .nav-link.menu-link.active {
    color: var(--ngo-primary) !important;
    background-color: var(--ngo-primary-light) !important;
}

body.excelloite-app-page .navbar-menu .navbar-nav .nav-sm .nav-link.active {
    color: var(--ngo-primary) !important;
    background-color: transparent !important;
}

body.excelloite-app-page .navbar-menu .navbar-nav .nav-sm .nav-link.active:before {
    background-color: var(--ngo-primary) !important;
    opacity: 1 !important;
}

body.excelloite-app-page .navbar-menu .navbar-nav > .nav-item > .nav-link.menu-link[data-bs-toggle=collapse][aria-expanded=true]:after,
body.excelloite-app-page .navbar-menu .navbar-nav > .nav-item > .nav-link.menu-link[data-bs-toggle=collapse][aria-expanded=true]:before {
    color: var(--ngo-primary) !important;
}

body.excelloite-app-page .navbar-menu .navbar-nav > .nav-item > .nav-link.menu-link[data-bs-toggle=collapse][aria-expanded=true]:before {
    background-color: var(--ngo-primary) !important;
    opacity: 1 !important;
}

body.excelloite-app-page .navbar-menu .navbar-nav .nav-link:hover,
body.excelloite-app-page .navbar-menu .navbar-nav .nav-sm .nav-link:hover {
    color: var(--ngo-primary);
}

.excelloite-app-page .rios-pagination .page-link {
    color: var(--ngo-secondary);
}

.excelloite-app-page .rios-pagination .page-link:hover,
.excelloite-app-page .rios-pagination .page-link:focus {
    color: var(--ngo-primary);
    background-color: rgba(var(--ngo-primary-rgb), 0.08);
    border-color: rgba(var(--ngo-primary-rgb), 0.25);
}

.excelloite-app-page .rios-pagination .page-item.active .page-link,
.excelloite-app-page .rios-pagination .page-link.active {
    color: #fff !important;
    background-color: var(--ngo-primary) !important;
    border-color: var(--ngo-primary) !important;
}

.excelloite-app-page .rios-list-panel .rios-dash-list-table tbody tr:hover td {
    background-color: var(--ngo-primary-light) !important;
}

.excelloite-app-page .rios-list-panel .rios-dash-list-table tbody tr:hover td:last-child {
    background-color: var(--ngo-primary-light) !important;
}

.excelloite-app-page .table-hover > tbody > tr:hover > *,
.excelloite-app-page .rios-list-panel .rios-dash-list-table tbody tr:hover > *,
.excelloite-app-page .rios-data-table-card table tbody tr:hover > *,
.excelloite-app-page .card-excelloite table tbody tr:hover > *,
.excelloite-app-page .rios-list-panel .rios-dash-list-table tbody tr:hover td,
.excelloite-app-page .card .rios-table-scroll .rios-list-panel .rios-dash-list-table tbody tr:hover td:last-child {
    --bs-table-hover-bg: var(--ngo-primary-light);
    --rios-dash-table-cell-hover: var(--ngo-primary-light);
    background-color: var(--ngo-primary-light) !important;
}

.excelloite-app-page .alert-info,
#donationModal .alert-info {
    --tb-info: var(--ngo-primary);
    --tb-info-rgb: var(--ngo-primary-rgb);
    --tb-info-text-emphasis: var(--ngo-primary-dark);
    --tb-info-bg-subtle: rgba(var(--ngo-primary-rgb), 0.12);
    --tb-info-border-subtle: rgba(var(--ngo-primary-rgb), 0.28);
    color: var(--ngo-primary-dark) !important;
    background-color: rgba(var(--ngo-primary-rgb), 0.1) !important;
    border-color: rgba(var(--ngo-primary-rgb), 0.28) !important;
}

.excelloite-app-page .alert-info .ri-information-line,
#donationModal .alert-info .ri-information-line {
    color: var(--ngo-primary);
}

.excelloite-app-page .btn-group .btn-outline-primary {
    color: var(--ngo-primary);
    border-color: var(--ngo-primary);
}

.excelloite-app-page .btn-group .btn-outline-primary:hover,
.excelloite-app-page .btn-group .btn-outline-primary:focus,
.excelloite-app-page .btn-group .btn-outline-primary.active,
.excelloite-app-page .btn-group .btn-outline-primary:active {
    color: #fff !important;
    background-color: var(--ngo-primary) !important;
    border-color: var(--ngo-primary) !important;
}

.excelloite-app-page .btn-group .btn-primary,
.excelloite-app-page .btn-group .btn-primary.active {
    background-color: var(--ngo-primary) !important;
    border-color: var(--ngo-primary) !important;
}

.excelloite-app-page .badge.bg-info-subtle {
    background-color: rgba(var(--ngo-primary-rgb), 0.12) !important;
}

.excelloite-app-page .badge.text-info {
    color: var(--ngo-primary) !important;
}

/* All data tables — use system light accent on row hover (beats legacy sheet CSS) */
body.excelloite-app-page .page-content table tbody tr:hover > td,
body.excelloite-app-page .page-content table tbody tr:hover > th,
body.excelloite-app-page .page-content .table-hover > tbody > tr:hover > * {
    --tb-table-bg-state: var(--ngo-primary-light);
    --tb-table-hover-bg: var(--ngo-primary-light);
    --rios-dash-table-cell-hover: var(--ngo-primary-light);
    background-color: var(--ngo-primary-light) !important;
}

body.excelloite-app-page .page-content .card .rios-table-scroll .rios-list-panel table tbody tr:hover > td:last-child {
    background-color: var(--ngo-primary-light) !important;
}

/* —— Responsive: mobile, tablet, desktop —— */
@media (max-width: 991.98px) {
    .excelloite-app-page .page-title-box.d-sm-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .excelloite-app-page .page-toolbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .excelloite-app-page .filter-bar,
    .excelloite-app-page .rios-filter-bar {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .excelloite-app-page .filter-bar > .row {
        flex-wrap: wrap;
        min-width: 0;
        width: 100%;
    }

    .excelloite-app-page .filter-bar > .row > [class*="col-"]:not(.filter-bar-actions):not(:has(.form-check)) {
        flex: 1 1 calc(50% - 0.5rem);
        width: calc(50% - 0.5rem) !important;
        min-width: 9rem;
    }

    .excelloite-app-page .rios-card-toolbar {
        flex-wrap: wrap;
    }

    .excelloite-app-page .table-toolbar-filters {
        flex-wrap: wrap;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .excelloite-app-page .page-content > .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    #page-topbar .navbar-header > .d-flex:first-child {
        flex-wrap: wrap;
        width: 100%;
    }

    .header-donor-search {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
        margin-left: 0 !important;
        margin-top: 0.25rem;
    }

    .excelloite-app-page .filter-bar > .row > [class*="col-"]:not(.filter-bar-actions):not(:has(.form-check)) {
        flex: 1 1 100%;
        width: 100% !important;
    }

    .excelloite-app-page .rios-data-table-card > .card-body,
    .excelloite-app-page .rios-data-table-card .rios-table-scroll {
        padding-left: 0;
        padding-right: 0;
    }

    .excelloite-fab-record-donation {
        right: 1rem;
        bottom: 1rem;
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .excelloite-app-page .modal .excelloite-modal-dialog {
        max-width: calc(100vw - 1.5rem);
        margin-left: auto;
        margin-right: auto;
    }

    #excelloite-toast-container {
        left: 0.75rem;
        right: 0.75rem;
        max-width: none;
    }
}

@media (min-width: 768px) and (max-width: 1024.98px) {
    .excelloite-app-page .filter-bar > .row > [class*="col-"]:not(.filter-bar-actions):not(:has(.form-check)) {
        flex: 1 1 calc(33.333% - 0.5rem);
        width: calc(33.333% - 0.5rem) !important;
    }
}

@media (min-width: 1025px) {
    #page-topbar .topnav-hamburger {
        display: none;
    }
}

