/* Shared navigation, independent of the Bootstrap version used by each workspace. */
:root { --pc-ink: #244b3a; --pc-green: #12634b; --pc-muted: #687d6e; --pc-line: #e0e8de; }
.pc-topbar, .pc-public-nav, .pc-menu, .app-message-stack { font-family: "Segoe UI", Arial, sans-serif; color: var(--pc-ink); font-size: 14px; line-height: 1.5; }
:is(.pc-topbar,.pc-public-nav,.pc-menu,.app-message-stack) *, :is(.pc-topbar,.pc-public-nav,.pc-menu,.app-message-stack) *::before, :is(.pc-topbar,.pc-public-nav,.pc-menu,.app-message-stack) *::after { box-sizing: border-box; }
:is(.pc-topbar,.pc-public-nav,.pc-menu) a { text-decoration: none; }
:is(.pc-topbar,.pc-public-nav,.pc-menu,.app-message-stack) button { font: inherit; cursor: pointer; }
:is(.pc-topbar,.pc-public-nav,.pc-menu,.app-message-stack) :is(button,a,summary):focus-visible { outline: 3px solid #83b19b; outline-offset: 3px; }
.pc-icon { display: inline-block; width: 21px; height: 21px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.pc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.pc-icon-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; width: 42px; height: 42px; padding: 0; border: 1px solid transparent; border-radius: 11px; color: #577661; background: transparent; }
.pc-icon-button:hover, .pc-icon-button[aria-expanded="true"] { color: #12634b; background: #edf5eb; border-color: #dce7d8; }
.pc-topbar { position: fixed; top: 0; right: 0; left: 260px; height: 74px; z-index: 1030; background: #fff; border-bottom: 1px solid var(--pc-line); box-shadow: 0 3px 18px #253e2c05; transition: left .2s ease; }
.pc-topbar-inner { display: flex; align-items: center; gap: 15px; height: 100%; padding: 0 26px 0 18px; }
.pc-workspace { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--pc-ink); }
.pc-workspace:hover { color: var(--pc-green); }
.pc-workspace img { width: 32px; height: 38px; object-fit: contain; }
.pc-workspace strong { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.5px; }
.pc-workspace small { display: block; font-size: 11px; color: var(--pc-muted); margin-top: 1px; }
.pc-topbar-actions { display: flex; align-items: center; gap: 11px; margin-left: auto; flex-shrink: 0; }
.pc-dashboard-link { display: flex; align-items: center; gap: 7px; color: #5d7863; font-size: 12px; min-height: 42px; padding: 0 13px; border-radius: 9px; }
.pc-dashboard-link .pc-icon { width: 17px; height: 17px; }
.pc-dashboard-link:hover { background: #f1f6ed; color: var(--pc-green); }
.pc-disclosure { position: relative; }
.pc-notification-button { background: #f4f7f0; border-color: #e2e9dc; }
.pc-badge { position: absolute; min-width: 18px; height: 18px; top: -3px; right: -3px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; border-radius: 10px; background: #d5aa4c; color: #263d2d; font-size: 9px; font-weight: 700; line-height: 1; }
.pc-account { margin-left: 5px; padding-left: 15px; border-left: 1px solid var(--pc-line); }
.pc-account-button { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 8px 4px 3px; border: 0; border-radius: 10px; color: var(--pc-ink); background: transparent; text-align: left; }
.pc-account-button:hover, .pc-account-button[aria-expanded="true"] { background: #f2f6ee; }
.pc-avatar { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid #d5e3ce; border-radius: 12px; background: #e8f1e0; color: #4b7147; font-size: 14px; font-weight: 650; overflow: hidden; }
.pc-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-avatar img[hidden] { display: none; }
.pc-account-copy { display: block; max-width: 135px; }
.pc-account-copy strong { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-account-copy small { display: block; color: var(--pc-muted); font-size: 10px; max-width: 135px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pc-account-button > .pc-icon { width: 15px; height: 15px; color: #7a8d70; }
.pc-menu { position: absolute; z-index: 1060; top: calc(100% + 13px); right: 0; width: 380px; max-width: calc(100vw - 24px); border: 1px solid #dce6d9; border-radius: 16px; background: #fff; box-shadow: 0 16px 50px #163b2524; overflow: hidden; }
.pc-menu[hidden], .pc-sidebar-backdrop[hidden], .pc-icon-button[hidden] { display: none !important; }
.pc-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 19px 20px 16px; border-bottom: 1px solid #e7ede3; }
.pc-menu-heading h2 { color: #31543b; font-size: 17px; line-height: 1.4; font-weight: 650; margin: 0; }
.pc-menu-heading p { color: #708266; font-size: 11px; margin: 4px 0 0; overflow-wrap: anywhere; }
.pc-menu-heading .pc-icon-button { width: 36px; height: 36px; }
.pc-notification-scroll { max-height: min(65vh, 520px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c7d8c1 transparent; padding: 4px 0 7px; }
.pc-notice-group { border-bottom: 1px solid #e8eee3; margin: 0; }
.pc-notice-group:last-child { border-bottom: 0; }
.pc-notice-group > summary { display: flex; align-items: center; gap: 10px; list-style: none; padding: 14px 19px; color: #4d6e48; font-size: 12px; font-weight: 600; cursor: pointer; min-height: 50px; }
.pc-notice-group > summary::-webkit-details-marker { display: none; }
.pc-notice-group > summary:hover { background: #f6f9f2; }
.pc-notice-group > summary > .pc-icon { width: 18px; height: 18px; color: #7c9772; }
.pc-notice-group > summary > .pc-icon:last-child { width: 14px; height: 14px; }
.pc-notice-group[open] > summary > .pc-icon:last-child { transform: rotate(180deg); }
.pc-group-count { margin-left: auto; min-width: 23px; padding: 2px 6px; border-radius: 7px; color: #527947; background: #edf3e7; text-align: center; font-size: 10px; font-variant-numeric: tabular-nums; }
.pc-notice-items { padding: 0 9px 10px; }
.pc-notice { display: flex; align-items: center; gap: 11px; padding: 12px 10px; border-radius: 10px; color: #355b39; }
.pc-notice:hover, .pc-notice:focus-visible { color: #234d2c; background: #f2f7ec; }
.pc-notice-mark { display: inline-grid; place-items: center; flex: 0 0 32px; width: 32px; height: 35px; border-radius: 9px; background: #edf4e6; color: #69895c; font-size: 13px; }
.pc-notice-mark .pc-icon { width: 17px; height: 17px; }
.pc-notice > span:nth-child(2) { flex: 1; min-width: 0; }
.pc-notice strong { display: block; font-weight: 600; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.pc-notice small { display: block; color: #6a805f; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.pc-notice time { display: block; color: #809076; font-size: 10px; margin-top: 3px; }
.pc-notice > .pc-icon { width: 14px; height: 14px; color: #8da080; }
.pc-notice-empty { color: #7a8a70; font-size: 12px; padding: 9px 10px 14px; margin: 0; }
.pc-notice-view-all { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; min-height: 36px; color: #496f3f; font-size: 11px; text-underline-offset: 3px; }
.pc-notice-view-all:hover { color: #254f2e; text-decoration: underline; }
.pc-notice-view-all .pc-icon { width: 13px; height: 13px; }
.pc-notice-footer { display: flex; flex-wrap: wrap; }
.pc-account-menu { width: 260px; }
.pc-account-links { padding: 7px; }
.pc-account-links > a, .pc-account-links form > button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 44px; border: 0; border-radius: 8px; padding: 11px 13px; color: #4a6a42; background: transparent; font-size: 12px; text-align: left; }
.pc-account-links :is(a,button):hover { color: #254e30; background: #f0f5e9; }
.pc-account-links .pc-icon { width: 18px; height: 18px; color: #7b9570; }
.pc-account-links form { margin: 5px 0 0; padding-top: 5px; border-top: 1px solid #e5ecdf; }
body.app-dashboard-shell { --app-header-height: 74px; }
body.app-dashboard-shell:has(.pc-topbar) .main-panel { padding-top: 0; }
body.sidebar-icon-only .pc-topbar { left: 70px; }
.pc-sidebar-backdrop { display: none; }
body.app-dashboard-shell #sidebar { background: #f9fbf7; border-right: 1px solid #e0e8dd; }
body.app-dashboard-shell #sidebar .sidebar-brand-wrapper { height: 74px; border-bottom: 1px solid #e0e8dd; padding: 10px 17px; }
body.app-dashboard-shell #sidebar .sidebar-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; padding: 0; }
body.app-dashboard-shell #sidebar .sidebar-brand img { width: 31px; height: 38px; object-fit: contain; margin: 0; }
body.app-dashboard-shell #sidebar .sidebar-brand-copy { color: #244e3a; font: 650 14px/1.4 "Segoe UI", sans-serif; text-align: left; }
body.app-dashboard-shell #sidebar .sidebar-brand-copy small { display: block; color: #74866b; font-size: 10px; font-weight: 400; }
body.app-dashboard-shell #sidebar .nav .nav-item .nav-link { color: #526d4c; border-radius: 9px; }
body.app-dashboard-shell #sidebar .nav .nav-link .menu-title { color: inherit; }
body.app-dashboard-shell #sidebar .nav .nav-link .menu-icon { color: #6b896f; }
body.app-dashboard-shell #sidebar .nav .nav-link .menu-arrow { color: #8fa18a; }
body.app-dashboard-shell #sidebar .nav .nav-item > .nav-link:hover { background: #edf4e7; color: #2c5d37; }
body.app-dashboard-shell #sidebar .nav .nav-item.active > .nav-link { background: #e5f0dd; color: #2e6236; }
body.app-dashboard-shell #sidebar .sidebar-section-label { border: 0; background: transparent; color: #7d8d74; font-size: 10px; letter-spacing: 1px; padding: 4px 7px; }
body.sidebar-icon-only #sidebar .sidebar-brand-copy { display: none; }
body.sidebar-icon-only #sidebar .sidebar-brand.brand-logo { display: flex !important; }
body.sidebar-icon-only #sidebar .sidebar-brand-wrapper { justify-content: center; padding: 10px; }
/* Public and client headers. Donation actions stay visible when the menu collapses. */
.pc-public-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; border-bottom: 1px solid var(--pc-line); background: #fff; box-shadow: 0 4px 22px #254b3a06; }
.pc-public-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 23px; max-width: 1240px; min-height: 74px; padding: 12px 24px; margin: 0 auto; }
.pc-brand { display: inline-flex; align-items: center; gap: 10px; color: #214f3b; font-size: 20px; font-weight: 700; letter-spacing: -.6px; white-space: nowrap; }
.pc-brand:hover { color: #12634b; }
.pc-brand img { width: 33px; height: 42px; object-fit: contain; }
.pc-brand strong { color: #677d6e; font-weight: 400; }
.pc-public-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.pc-nav-link { display: inline-flex; align-items: center; gap: 6px; color: #5e7564; border: 1px solid transparent; border-radius: 8px; padding: 10px 11px; min-height: 42px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pc-nav-link:hover { color: #2d613d; background: #eff5e9; }
.pc-nav-link[aria-current="page"] { color: #2c6136; background: #edf4e6; border-color: #e0e9d9; }
.pc-nav-link.pc-portal-link { color: #365f3a; font-weight: 650; }
.pc-public-actions, .pc-public-controls, .pc-donations { display: flex; align-items: center; gap: 9px; }
.pc-donate { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 10px; padding: 10px 13px; min-height: 44px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.pc-donate .pc-icon { width: 17px; height: 17px; }
.pc-donate-ugx { background: #f0c56d; border-color: #e5b954; color: #2e4730; }
.pc-donate-ugx:hover { background: #ebbb58; color: #24432a; }
.pc-donate-usd { background: #12634b; border-color: #12634b; color: #fff; }
.pc-donate-usd:hover { background: #0e513d; color: #fff; }
.pc-public-toggle { display: none; border-color: #e0e8db; }
body.app-public-shell:has(.pc-public-nav) { padding-top: var(--pc-header-height, 74px); }
/* Shared status notifications. */
.app-message-stack { position: fixed; right: 22px; top: calc(var(--pc-header-height, 74px) + 14px); width: min(410px, calc(100% - 28px)); max-height: min(55vh, 540px); overflow-y: auto; display: grid; gap: 10px; z-index: 1080; padding: 4px; overscroll-behavior: contain; }
.app-message { display: flex; align-items: flex-start; gap: 12px; border: 1px solid #dae5d5; border-radius: 13px; background: #fff; box-shadow: 0 10px 32px #24452d18; padding: 15px 12px 15px 15px; color: #315138; }
.app-message-icon { display: inline-grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; color: #3c784b; background: #e9f3e4; }
.app-message.tone-error { border-color: #e8d4cb; }
.app-message.tone-error .app-message-icon { color: #a45740; background: #fbede7; }
.app-message.tone-warning .app-message-icon { color: #927132; background: #fbf3dd; }
.app-message.tone-info .app-message-icon { color: #4e7d89; background: #eaf4f4; }
.app-message-content { min-width: 0; flex: 1; }
.app-message-content strong { display: block; color: #35533b; font-size: 13px; font-weight: 650; margin: 0 0 4px; }
.app-message-content p { color: #65755e; font-size: 12px; line-height: 1.7; margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.app-message-close { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 0; background: transparent; border-radius: 9px; color: #85937a; padding: 0; }
.app-message-close:hover { color: #426a40; background: #f1f6ec; }
.app-message-close .pc-icon { width: 17px; height: 17px; }
/* Compact headers used by the public landing, payment and documentation pages. */
.pc-site-header.home-header { background: #fff; border-color: var(--pc-line); min-height: 74px; padding-top: 12px; padding-bottom: 12px; }
.pc-site-header .home-brand img { width: 34px; height: 42px; }
.pc-site-header .home-nav { gap: 12px; }
.pc-site-header .home-nav a { display: inline-flex; align-items: center; gap: 5px; min-height: 42px; border-radius: 8px; padding: 9px 10px; }
.pc-site-header .home-nav a:hover { color: var(--pc-green); background: #edf4e7; text-decoration: none; }
.pc-simple-header.page-header { border-color: var(--pc-line); box-shadow: 0 3px 18px #253e2c05; }
.pc-simple-header .header-inner { min-height: 74px; }
.pc-simple-header .home-link { border: 1px solid #e0e8db; border-radius: 9px; padding: 8px 13px; background: #f7faf3; }
.pc-docs-header.docs-header { background: #fff; color: var(--pc-ink); border-bottom: 1px solid var(--pc-line); }
.pc-docs-header .nav { min-height: 74px; }
.pc-docs-header .brand { color: var(--pc-ink); font-size: 20px; font-weight: 700; letter-spacing: -.6px; }
.pc-docs-header .brand b { color: var(--pc-muted); font-weight: 400; }
.pc-docs-header .brand small { color: var(--pc-muted); font-size: 10px; letter-spacing: .04em; text-transform: none; }
.pc-docs-header .brand img, .pc-paused-header .brand img { object-fit: contain; }
.pc-docs-header .nav-links { flex-wrap: wrap; }
.pc-docs-header .nav-links a { display: inline-flex; align-items: center; min-height: 42px; color: #55725b; font-size: 12px; font-weight: 500; }
.pc-docs-header .nav-links a:hover, .pc-docs-header .nav-links a:focus, .pc-docs-header .nav-links a[aria-current="page"] { background: #edf4e7; color: #2d6137; }
.pc-docs-header .app-link { border-color: var(--pc-line); }
.pc-paused-header.header { min-height: 74px; padding-top: 15px; padding-bottom: 15px; }
.ev-app .ev-skip:focus { z-index: 1100; }
.ev-app .ev-toast-stack[data-global-toasts] { top: calc(var(--pc-header-height, 74px) + 14px); }
@media (max-width: 760px) { .pc-site-header .home-nav { gap: 3px; } .pc-site-header .home-nav a { padding: 7px 8px; font-size: 11px; } }
@media (min-width: 992px) { .pc-workspace img, .pc-workspace strong { display: none; } .pc-workspace small { font-size: 16px; font-weight: 600; color: var(--pc-ink); margin: 0; } }
@media (max-width: 1199px) { .pc-fullscreen { display: none; } .pc-topbar-inner { padding-right: 18px; } .pc-account-copy { max-width: 110px; } }
@media (max-width: 1099px) {
  .pc-public-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; }
  .pc-public-menu { display: none; grid-column: 1 / -1; grid-row: 2; border-top: 1px solid #e6ece1; padding-top: 12px; }
  .pc-public-menu.is-open { display: flex; }
  .pc-public-toggle { display: inline-flex; }
  .pc-public-nav .pc-account-copy, .pc-public-nav .pc-account-button > .pc-icon { display: none; }
  .pc-public-nav .pc-account { padding-left: 8px; }
  .pc-public-nav .pc-account-button { padding: 3px; }
}
@media (max-width: 991px) {
  body.app-dashboard-shell { --app-header-height: 64px; }
  .pc-topbar, body.sidebar-icon-only .pc-topbar { left: 0; height: 64px; }
  .pc-topbar-inner { padding: 0 14px; gap: 10px; }
  .pc-topbar-actions { gap: 8px; }
  .pc-topbar .pc-workspace strong { font-size: 14px; }
  .pc-topbar .pc-workspace img { display: none; }
  .pc-topbar .pc-account-copy, .pc-topbar .pc-account-button > .pc-icon { display: none; }
  .pc-topbar .pc-account { padding-left: 8px; margin-left: 1px; }
  .pc-topbar .pc-account-button { padding: 2px; }
  body.app-dashboard-shell #sidebar.sidebar-offcanvas { z-index: 1029; top: 64px; left: 0; right: auto; bottom: 0; height: calc(100dvh - 64px); max-height: calc(100dvh - 64px); transform: translateX(-100%); transition: transform .2s ease; width: 260px; max-width: calc(100vw - 44px); }
  body.app-dashboard-shell #sidebar.sidebar-offcanvas.active { transform: translateX(0); }
  .pc-sidebar-backdrop:not([hidden]) { display: block; position: fixed; z-index: 1028; inset: 64px 0 0; background: #1b372b44; border: 0; width: 100%; height: calc(100dvh - 64px); }
  .pc-menu { position: fixed; top: calc(var(--pc-header-height, 64px) + 8px); right: 12px; left: 12px; width: auto; max-width: none; }
  .pc-notification-scroll { max-height: calc(100dvh - var(--pc-header-height, 64px) - 115px); }
  .pc-account-menu { left: auto; width: min(300px, calc(100vw - 24px)); }
  .pc-account-links { max-height: calc(100dvh - var(--pc-header-height, 64px) - 110px); overflow-y: auto; }
}
@media (max-width: 639px) {
  .pc-public-inner { padding: 11px 16px; min-height: 66px; gap: 10px; }
  .pc-brand { gap: 8px; font-size: 18px; }
  .pc-brand img { width: 28px; height: 36px; }
  .pc-public-actions { display: contents; }
  .pc-public-controls { grid-column: 2; grid-row: 1; gap: 5px; }
  .pc-donations { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding-bottom: 1px; }
  .pc-donate { min-height: 42px; font-size: 12px; }
  .pc-public-menu { grid-row: 3; flex-direction: column; align-items: stretch; max-height: min(50vh, 350px); overflow-y: auto; gap: 3px; }
  .pc-nav-link { font-size: 13px; padding: 10px 12px; }
  .pc-public-nav .pc-account { border: 0; padding-left: 0; margin-left: 0; }
  .pc-public-nav .pc-avatar { width: 31px; height: 33px; border-radius: 10px; }
  .pc-public-toggle { width: 36px; height: 38px; }
  body.app-public-shell:has(.pc-public-nav .pc-donations) { --pc-header-height: 122px; }
  .pc-dashboard-link { display: none; }
  .app-message-stack { right: 10px; top: calc(var(--pc-header-height, 66px) + 10px); width: calc(100% - 20px); }
  .pc-notice-group > summary { padding: 14px 16px; }
  .pc-menu-heading { padding: 16px; }
}
@media (max-width: 359px) { .pc-brand { font-size: 16px; gap: 6px; } .pc-brand img { width: 25px; } .pc-topbar-inner { gap: 6px; padding: 0 9px; } .pc-topbar .pc-workspace strong { font-size: 13px; } .pc-topbar .pc-workspace small { font-size: 9px; } .pc-topbar-actions { gap: 5px; } }
@media (prefers-reduced-motion: reduce) { .pc-topbar, body.app-dashboard-shell #sidebar.sidebar-offcanvas { transition: none; } }
@media print { .pc-topbar, .pc-public-nav, .pc-sidebar-backdrop, .app-message-stack { display: none !important; } body.app-public-shell:has(.pc-public-nav) { padding-top: 0 !important; } }
