:root {
    --ngo-font-sans: "Helvetica Neue", Arial, sans-serif;
    --ngo-font-size-base: 13px;
    --ngo-line-height-base: 21px;
    --ngo-font-weight-base: 400;
}

html,
body,
body.ngo-admin-body,
button,
input,
select,
textarea,
.table,
.nav-link,
.dropdown-menu,
.modal,
.offcanvas,
.btn,
.form-control,
.form-select,
.form-label,
.badge,
.card,
.alert {
    font-family: var(--ngo-font-sans) !important;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--ngo-primary) 8%, transparent), transparent 24%),
        linear-gradient(180deg, #f4f7fb 0%, #eef3f8 100%);
    color: #243447;
    font-size: var(--ngo-font-size-base);
    line-height: var(--ngo-line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--ngo-secondary);
}

img {
    max-width: 100%;
}

.ngo-shell {
    display: flex;
    min-height: 100vh;
}

.ngo-main {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.ngo-main-content {
    flex: 1 1 auto;
    padding: 1.4rem 1.5rem 1.6rem;
}

.container-fluid {
    max-width: 100%;
}

main h1.h3,
.ngo-page-head .h3 {
    font-size: 22px;
    line-height: 24px;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: #233245;
}

h2.h5,
.ngo-card-title,
.card-body > .h5 {
    font-size: 14px;
    line-height: 15px;
    font-weight: 500;
    color: #344054;
}

.small,
.form-text,
.text-muted,
.ngo-meta,
.ngo-topbar-app-subtitle,
.ngo-topbar-user-role {
    font-size: 13px;
    line-height: 18px;
}

.form-label {
    font-size: 13px;
    line-height: 15px;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: #344054;
}

.form-control,
.form-select,
.btn {
    border-radius: 0.7rem;
    font-size: var(--ngo-font-size-base);
    line-height: var(--ngo-line-height-base);
}

.form-control,
.form-select {
    border-color: #d9e2ec;
    min-height: 42px;
    background: #fff;
    color: #243447;
}

.form-control::placeholder,
.form-select::placeholder {
    color: #98a2b3;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--ngo-primary);
    box-shadow: 0 0 0 0.16rem color-mix(in srgb, var(--ngo-primary) 15%, transparent);
}

.btn {
    font-weight: 500;
}

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--ngo-button-hover) !important;
    border-color: var(--ngo-button-hover) !important;
    color: var(--ngo-button-hover-text) !important;
}

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

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

.btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe7f0;
    background: #fff;
    padding: 0;
}

.btn-icon:hover {
    background: #fff;
    border-color: color-mix(in srgb, var(--ngo-primary) 36%, #dfe7f0);
}

.card {
    border: 0;
    border-radius: 1rem;
    box-shadow: var(--ngo-shadow);
}

.ngo-section-card {
    border: 1px solid var(--ngo-border);
    background: var(--ngo-card-bg);
    border-radius: 1rem;
    box-shadow: var(--ngo-shadow);
}

.ngo-section-card .card-body {
    padding: 1.35rem 1.35rem;
}

.ngo-page-head {
    padding: 0.15rem 0 0.1rem;
}

.ngo-kicker {
    font-size: 10px;
    line-height: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ngo-secondary);
    margin-bottom: 0.35rem;
}

.ngo-alert-soft {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 0.18rem 0.75rem rgba(15, 23, 42, 0.04);
}

.ngo-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    background: var(--ngo-chip-bg);
    color: color-mix(in srgb, var(--ngo-primary) 82%, #1f2937);
    border: 1px solid color-mix(in srgb, var(--ngo-primary) 15%, #dce3ea);
    font-size: 12px;
    line-height: 14px;
    font-weight: 500;
}

.ngo-chip-soft {
    background: #f6f8fb;
    color: #667085;
    border-color: #e5e7eb;
}

.ngo-chip-accent {
    background: var(--ngo-accent-bg);
    color: color-mix(in srgb, var(--ngo-accent) 88%, #1f2937);
    border-color: color-mix(in srgb, var(--ngo-accent) 16%, #dce3ea);
}

.ngo-meta {
    color: var(--ngo-muted);
}

.ngo-stat-label {
    font-size: 11px;
    line-height: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ngo-muted);
    margin-bottom: 0.25rem;
}

.ngo-stat-tile {
    border: 1px solid var(--ngo-border);
    border-radius: 1rem;
    padding: 1rem;
    background: linear-gradient(180deg, color-mix(in srgb, var(--ngo-primary) 3%, #ffffff) 0%, #fbfcfd 100%);
}

.ngo-stat-number {
    font-size: 28px;
    line-height: 28px;
    font-weight: 700;
    color: var(--ngo-primary);
    margin-bottom: 0.25rem;
}

.ngo-stat-text {
    font-size: 13px;
    line-height: 18px;
    color: var(--ngo-muted);
}

.ngo-text-block,
.beneficiary-soft-panel {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: var(--ngo-font-size-base);
    line-height: var(--ngo-line-height-base);
    background: color-mix(in srgb, var(--ngo-primary) 4%, #ffffff);
    border: 1px solid var(--ngo-border);
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
}

.table-responsive {
    overflow-x: auto;
}

.table {
    margin-bottom: 0;
}

.table th,
.table td {
    font-size: 14px;
    line-height: 21px;
    vertical-align: middle;
}

.table td {
    color: #253446;
    font-weight: 400;
}

.ngo-table-clean thead th {
    font-size: var(--ngo-font-size-base);
    line-height: var(--ngo-line-height-base);
    font-weight: 700;
    color: #3b4754;
    white-space: nowrap;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.ngo-table-clean tbody .ngo-meta,
.ngo-table-clean tbody .text-muted {
    color: #5c6877 !important;
}

.ngo-table-clean tbody .fw-semibold {
    color: #1f2d3d;
}

.ngo-table-compact th,
.ngo-table-compact td {
    padding: 0.72rem 0.7rem;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(246, 249, 252, 0.82);
}

.text-truncate-multi {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    font-size: var(--ngo-font-size-base);
    line-height: var(--ngo-line-height-base);
    color: var(--ngo-primary);
}

.pagination .active > .page-link,
.pagination .page-link.active {
    background: var(--ngo-primary);
    border-color: var(--ngo-primary);
    color: #fff;
}

/* Sidebar */
.ngo-sidebar {
    width: 272px;
    min-height: 100vh;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--ngo-sidebar-bg) 92%, #0b1320) 0%, var(--ngo-sidebar-bg) 100%);
    color: var(--ngo-sidebar-text);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
}

.ngo-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.ngo-sidebar-brand {
    padding: 1rem 1rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ngo-sidebar-logo-wrap,
.ngo-sidebar-logo-box {
    padding: 0.4rem 0.55rem;
    border-radius: 0.9rem;
}

.ngo-sidebar-logo-box {
    background: rgba(255, 255, 255, 0.96);
}

.ngo-sidebar-logo {
    max-width: 100%;
    max-height: 62px;
    width: auto;
    object-fit: contain;
    display: inline-block;
}

.ngo-sidebar-brand-name {
    color: #fff;
    font-size: 18px;
    line-height: 20px;
    font-weight: 700;
}

.ngo-sidebar-brand-tagline {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    line-height: 16px;
    margin-top: 0.35rem;
}

.ngo-sidebar-scroll {
    overflow-y: auto;
    padding: 0.9rem 0.75rem 1.25rem;
}

.ngo-sidebar-group {
    margin-bottom: 0.3rem;
}

.ngo-sidebar-group-toggle,
.ngo-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    width: 100%;
    color: var(--ngo-sidebar-text);
    border-radius: 0.85rem;
    padding: 0.62rem 0.8rem;
    transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

.ngo-sidebar-link-top {
    justify-content: flex-start;
    margin-bottom: 0.5rem;
}

.ngo-sidebar-group-toggle:hover,
.ngo-sidebar-link:hover,
.ngo-sidebar-link.active {
    background: var(--ngo-sidebar-hover);
    color: #fff;
}

.ngo-sidebar-group-label {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
}

.ngo-sidebar-group-icon,
.ngo-sidebar-link-icon {
    font-size: 14px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.ngo-sidebar-chevron {
    transition: transform .18s ease;
    font-size: 12px;
}

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

.ngo-sidebar-submenu {
    padding-left: 0.15rem;
    margin-top: 0.3rem;
}

.ngo-sidebar-submenu li {
    margin-bottom: 0.18rem;
}

.ngo-sidebar-submenu .ngo-sidebar-link {
    justify-content: flex-start;
    padding-left: 2.15rem;
    font-size: 14px;
    line-height: 15px;
    font-weight: 500;
    color: color-mix(in srgb, var(--ngo-sidebar-text) 88%, #ffffff);
}

/* Topbar */
.ngo-topbar {
    min-height: 74px;
    padding: 0.9rem 1.5rem;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--ngo-topbar-bg) 90%, #ffffff) 0%, var(--ngo-topbar-bg) 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 0 rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ngo-topbar-left {
    min-width: 0;
}

.ngo-topbar-app-title {
    color: var(--ngo-topbar-text);
    font-size: 16px;
    line-height: 18px;
    font-weight: 700;
}

.ngo-topbar-app-subtitle {
    color: var(--ngo-topbar-muted);
    margin-top: 0.2rem;
}

.ngo-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.ngo-topbar-user-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.45rem 0.8rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255,255,255,0.7);
}

.ngo-topbar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--ngo-primary) 12%, #ffffff);
    color: var(--ngo-primary);
    font-size: 14px;
    line-height: 14px;
    font-weight: 700;
    border: 1px solid color-mix(in srgb, var(--ngo-primary) 18%, #dce3ea);
}

.ngo-topbar-user-name {
    font-size: 14px;
    line-height: 15px;
    font-weight: 500;
    color: var(--ngo-topbar-text);
}

.ngo-topbar-logout-btn {
    border-radius: 0.8rem;
    background: #1f2a44;
    border: 1px solid #1f2a44;
    color: #fff;
    padding: 0.55rem 0.9rem;
    font-size: 13px;
    line-height: 15px;
    font-weight: 700;
    box-shadow: 0 0.25rem 0.8rem rgba(31, 42, 68, 0.16);
}

.ngo-topbar-logout-btn:hover {
    background: #162038;
    border-color: #162038;
    color: #fff;
}

.ngo-topbar-clock-card {
    min-width: 180px;
    padding: 0.52rem 0.9rem;
    border-radius: 0.9rem;
    border-left: 4px solid var(--ngo-accent);
    background: linear-gradient(135deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.72) 100%);
    box-shadow: 0 0.3rem 0.9rem rgba(15, 23, 42, 0.07);
    text-align: center;
}

.ngo-topbar-clock-time {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.18rem;
}

.ngo-topbar-clock-time-main {
    font-size: 24px;
    line-height: 24px;
    font-weight: 700;
    color: var(--ngo-primary);
}

.ngo-topbar-clock-time-seconds {
    font-size: 18px;
    line-height: 18px;
    font-weight: 700;
    color: var(--ngo-accent);
}

.ngo-topbar-clock-date {
    margin-top: 0.22rem;
    font-size: 11px;
    line-height: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ngo-secondary);
}

/* Beneficiary connector */
.beneficiary-link-list {
    border: 1px solid var(--ngo-border);
    border-radius: 1rem;
    background: color-mix(in srgb, var(--ngo-primary) 2%, #ffffff);
    max-height: 420px;
    overflow-y: auto;
}

.beneficiary-link-item + .beneficiary-link-item {
    border-top: 1px solid #edf2f7;
}

.beneficiary-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.72rem 0.9rem;
}

.beneficiary-link-row.is-selected {
    background: color-mix(in srgb, var(--ngo-primary) 6%, #ffffff);
}

.beneficiary-link-row-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.beneficiary-link-name {
    font-size: 14px;
    line-height: 15px;
    font-weight: 500;
    color: #243447;
}

.beneficiary-link-id {
    font-size: 12px;
    line-height: 16px;
    color: var(--ngo-muted);
}

.beneficiary-link-avatar,
.beneficiary-table-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
}

.beneficiary-link-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--ngo-primary) 12%, #ffffff);
    color: var(--ngo-primary);
    font-weight: 700;
    border: 1px solid color-mix(in srgb, var(--ngo-primary) 18%, #dce3ea);
}

.beneficiary-switch .form-check-input {
    width: 2.55rem;
    height: 1.3rem;
    cursor: pointer;
    border-color: #ccd6e0;
    box-shadow: none;
}

.beneficiary-switch .form-check-input:checked {
    background-color: var(--ngo-primary);
    border-color: var(--ngo-primary);
}

.remove-selected-beneficiary {
    white-space: nowrap;
}

/* Beneficiary profile visuals */
.beneficiary-profile-main-photo,
.beneficiary-profile-main-photo-placeholder {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center top;
}

.beneficiary-gallery-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #fff;
}

/* Responsive */
@media (max-width: 991.98px) {
    .ngo-topbar {
        padding: 0.85rem 1rem;
    }

    .ngo-main-content {
        padding: 1rem;
    }

    .ngo-topbar-right {
        width: 100%;
        justify-content: flex-end;
    }

    .ngo-topbar-clock-card {
        min-width: 160px;
    }
}

@media (max-width: 767.98px) {
    .ngo-shell {
        display: block;
    }

    .ngo-sidebar {
        width: 100%;
        min-height: auto;
    }

    .ngo-sidebar-inner {
        height: auto;
    }

    .ngo-sidebar-scroll {
        overflow: visible;
    }

    .ngo-main-content {
        padding: 0.9rem;
    }

    .ngo-section-card .card-body {
        padding: 1rem;
    }

    .ngo-topbar {
        align-items: flex-start;
    }

    .ngo-topbar-clock-time-main {
        font-size: 22px;
        line-height: 22px;
    }

    .ngo-topbar-clock-time-seconds {
        font-size: 16px;
        line-height: 16px;
    }

    .beneficiary-link-row {
        padding: 0.68rem 0.75rem;
    }

    .beneficiary-link-avatar,
    .beneficiary-table-avatar {
        width: 36px;
        height: 36px;
    }
}
/* --------------------------------------------------------------------------
   Topbar and sidebar compact restore, 2026-05-08
   Keeps the clock inline and restores sidebar weights after the global UI pass.
   -------------------------------------------------------------------------- */
.ngo-topbar {
    min-height: 50px !important;
    padding: .5rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .8rem !important;
    flex-wrap: nowrap !important;
    color: var(--ngo-topbar-text) !important;
    background:
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--ngo-topbar-bg) 92%, #000 8%) 0%,
            color-mix(in srgb, var(--ngo-topbar-bg) 78%, #000 22%) 100%
        ) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .10) !important;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .05) !important;
}

.ngo-topbar-left {
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
}

.ngo-topbar-brand-block {
    min-width: 0 !important;
}

.ngo-topbar-app-title,
.topbar-title {
    max-width: 560px !important;
    display: block !important;
    overflow: hidden !important;
    color: var(--ngo-topbar-text) !important;
    font-size: 14px !important;
    line-height: 18px !important;
    font-weight: 700 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
}

.ngo-topbar-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    gap: .72rem !important;
    margin-left: auto !important;
    color: var(--ngo-topbar-text) !important;
}

.ngo-topbar-inline-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: .38rem !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--ngo-topbar-text) !important;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
}

.ngo-topbar-clock-card {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
    color: var(--ngo-topbar-text) !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
}

.ngo-topbar-clock-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--ngo-topbar-text) !important;
    font-size: 13px !important;
    line-height: 1 !important;
    transform: translateY(-1px) !important;
}

.ngo-topbar-clock-inline,
.ngo-topbar-clock-time {
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 0 !important;
    line-height: 1 !important;
}

.ngo-topbar-clock-time-main {
    color: var(--ngo-topbar-text) !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
}

.ngo-topbar-clock-time-seconds {
    color: var(--ngo-topbar-text) !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
}

.ngo-topbar-inline-separator {
    color: var(--ngo-topbar-muted) !important;
    font-size: 10px !important;
    line-height: 1 !important;
    opacity: .92 !important;
}

.ngo-topbar-clock-date {
    margin-top: 0 !important;
    color: var(--ngo-topbar-text) !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
}

.ngo-topbar-icon-link,
.ngo-topbar-notification-toggle {
    width: 1.8rem !important;
    height: 1.8rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--ngo-topbar-text) !important;
    font-size: 15px !important;
    line-height: 1 !important;
}

.ngo-topbar-icon-link:hover,
.ngo-topbar-icon-link:focus,
.ngo-topbar-notification-toggle:hover,
.ngo-topbar-notification-toggle:focus {
    color: var(--ngo-topbar-text) !important;
    opacity: .86 !important;
}

.ngo-sidebar-dashboard-group .ngo-sidebar-link,
.ngo-sidebar-link-top,
.ngo-sidebar-group-label {
    color: var(--ngo-sidebar-heading) !important;
    font-size: 14px !important;
    line-height: 19px !important;
    font-weight: 700 !important;
    letter-spacing: .02em !important;
}

.ngo-sidebar-group-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: .58rem !important;
    min-width: 0 !important;
    text-transform: none !important;
}

.ngo-sidebar-submenu .ngo-sidebar-link,
.ngo-sidebar-link {
    color: var(--ngo-sidebar-text) !important;
    font-size: 13px !important;
    line-height: 18px !important;
    font-weight: 400 !important;
}

.ngo-sidebar-submenu .ngo-sidebar-link {
    justify-content: flex-start !important;
    padding-left: 2.15rem !important;
}

.ngo-sidebar-link:hover,
.ngo-sidebar-link.active,
.ngo-sidebar-group-toggle:hover {
    color: #ffffff !important;
    background: var(--ngo-sidebar-hover) !important;
}

.ngo-sidebar-link.active {
    font-weight: 500 !important;
}

@media (max-width: 991.98px) {
    .ngo-topbar {
        align-items: center !important;
        flex-wrap: wrap !important;
        padding: .5rem .85rem !important;
    }

    .ngo-topbar-right {
        width: 100% !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: .5rem .75rem !important;
    }
}

@media (max-width: 575.98px) {
    .ngo-topbar-clock-date,
    .ngo-topbar-inline-separator {
        display: none !important;
    }
}

/* Sidebar child-menu preference and collapsible groups */
.ngo-sidebar-menu-preference {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .75rem !important;
    margin: 0 0 .85rem 0 !important;
    padding: .55rem .68rem !important;
    border-radius: .85rem !important;
    background: rgba(255,255,255,.045) !important;
    border: 1px solid rgba(255,255,255,.065) !important;
}

.ngo-sidebar-menu-preference-text {
    color: rgba(255,255,255,.82) !important;
    font-size: 12px !important;
    line-height: 18px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.ngo-sidebar-menu-switch {
    position: relative !important;
    display: inline-flex !important;
    width: 38px !important;
    height: 20px !important;
    flex: 0 0 38px !important;
    cursor: pointer !important;
}

.ngo-sidebar-menu-switch input {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.ngo-sidebar-menu-slider {
    position: absolute !important;
    inset: 0 !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.18) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    transition: background-color .18s ease, border-color .18s ease !important;
}

.ngo-sidebar-menu-slider::before {
    content: "" !important;
    position: absolute !important;
    width: 14px !important;
    height: 14px !important;
    left: 3px !important;
    top: 2px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.22) !important;
    transition: transform .18s ease !important;
}

.ngo-sidebar-menu-switch input:checked + .ngo-sidebar-menu-slider {
    background: var(--ngo-sidebar-hover) !important;
    border-color: color-mix(in srgb, var(--ngo-sidebar-hover) 70%, #ffffff 30%) !important;
}

.ngo-sidebar-menu-switch input:checked + .ngo-sidebar-menu-slider::before {
    transform: translateX(17px) !important;
}

.ngo-sidebar-group-toggle {
    appearance: none !important;
    border: 0 !important;
    background: transparent !important;
    text-align: left !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .7rem !important;
    width: 100% !important;
    color: var(--ngo-sidebar-heading) !important;
    border-radius: .85rem !important;
    padding: .58rem .72rem !important;
    font-size: 14px !important;
    line-height: 19px !important;
    font-weight: 700 !important;
    transition: background-color .16s ease, color .16s ease !important;
}

.ngo-sidebar-group-toggle:hover,
.ngo-sidebar-group-toggle:focus {
    color: #ffffff !important;
    background: var(--ngo-sidebar-hover) !important;
    outline: none !important;
}

.ngo-sidebar-group-toggle .ngo-sidebar-group-label {
    color: inherit !important;
    font-size: 14px !important;
    line-height: 19px !important;
    font-weight: 700 !important;
}

.ngo-sidebar-chevron {
    color: inherit !important;
    font-size: 12px !important;
    line-height: 1 !important;
    transition: transform .18s ease !important;
    flex-shrink: 0 !important;
    opacity: .86 !important;
}

.ngo-sidebar-group-toggle[aria-expanded="true"] .ngo-sidebar-chevron {
    transform: rotate(180deg) !important;
}

.ngo-sidebar-submenu {
    display: flex !important;
    flex-direction: column !important;
    gap: .2rem !important;
    margin: .24rem 0 .4rem !important;
    padding-left: 0 !important;
}

.ngo-sidebar-submenu.is-collapsed {
    display: none !important;
}

.ngo-sidebar-submenu .ngo-sidebar-link {
    justify-content: flex-start !important;
    padding: .52rem .7rem .52rem 2.15rem !important;
    font-size: 13px !important;
    line-height: 18px !important;
    font-weight: 400 !important;
}

.ngo-sidebar-child-menus-collapsed .ngo-sidebar-section {
    margin-bottom: .18rem !important;
}

.ngo-sidebar-child-menus-collapsed .ngo-sidebar-section + .ngo-sidebar-section {
    margin-top: .32rem !important;
    padding-top: .32rem !important;
}

/* Sidebar height behavior: both expanded and collapsed modes should stretch naturally with the page. */
@media (min-width: 768px) {
    .ngo-sidebar,
    .ngo-sidebar.ngo-sidebar-child-menus-collapsed,
    .ngo-sidebar:not(.ngo-sidebar-child-menus-collapsed) {
        min-height: 100vh !important;
        height: auto !important;
        align-self: stretch !important;
        overflow: visible !important;
    }

    .ngo-sidebar-inner,
    .ngo-sidebar.ngo-sidebar-child-menus-collapsed .ngo-sidebar-inner,
    .ngo-sidebar:not(.ngo-sidebar-child-menus-collapsed) .ngo-sidebar-inner {
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
    }

    .ngo-sidebar-scroll,
    .ngo-sidebar.ngo-sidebar-child-menus-collapsed .ngo-sidebar-scroll,
    .ngo-sidebar:not(.ngo-sidebar-child-menus-collapsed) .ngo-sidebar-scroll {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}
