body.ahis-body {
  --nahis-ink: #20352b;
  --nahis-muted: #526861;
  --nahis-border: #dbe6df;
  --nahis-soft: #edf5ef;
  --ahis-topbar-h: 64px;
  --ahis-sidebar-w: 272px;
  --ahis-radius: 12px;
  --ahis-shadow: 0 4px 18px #20352b09;
  --ahis-shadow-soft: 0 2px 8px #20352b08;
  background: var(--ahis-bg);
}

body.ahis-body:is([data-standard-theme="neutral"], [data-standard-theme="niger"]) {
  --ahis-accent: #18573d;
  --ahis-accent-hover: #11452f;
  --ahis-accent-soft: var(--nahis-soft);
  --ahis-primary: var(--ahis-accent);
  --ahis-primary-hover: var(--ahis-accent-hover);
  --ahis-primary-soft: var(--ahis-accent-soft);
  --ahis-bg: #f6f8f6;
  --ahis-border: var(--nahis-border);
  --ahis-muted: var(--nahis-muted);
  --ahis-text: var(--nahis-ink);
}

.ahis-body .ahis-topbar {
  background: var(--ahis-surface);
  border-bottom: 1px solid var(--ahis-border);
}

.ahis-body .ahis-topbar :is(.ahis-brand, .ahis-brand-name, .ahis-brand-org, .ahis-top-search i, .ahis-top-search .form-control, .ahis-btn, .dropdown-toggle) {
  color: var(--ahis-text);
}

.ahis-body .ahis-topbar :is(.ahis-btn, .ahis-iconbtn, .ahis-top-search .form-control) {
  min-height: 44px;
  background: var(--ahis-bg);
  border-color: var(--ahis-border);
}

.ahis-body .ahis-topbar .ahis-top-search .form-control::placeholder { color: var(--ahis-muted); }
.ahis-body .ahis-topbar .ahis-btn:hover { background: var(--ahis-accent-soft); }
.ahis-topbar .ahis-brand { flex-shrink: 1; gap: .55rem; }
.ahis-topbar .ahis-brand-name { letter-spacing: 0; }
.ahis-topbar .ahis-brand-logo { flex: 0 0 36px; height: 36px; }
.ahis-topbar .ahis-brand-logo img { object-fit: contain; }
.ahis-topbar .ahis-flag-wrap { min-width: auto; }
.ahis-topbar .ahis-top-search { min-width: 10rem; max-width: 18rem; flex: 1; }
.ahis-topbar .ahis-top-search .form-control { border-radius: .55rem; }
.ahis-topbar .ahis-dropdown { max-width: calc(100vw - 1.25rem); }
.ahis-topbar :is(.ahis-dropdown-wide, .ahis-dropdown-notifications) { min-width: min(22rem, calc(100vw - 1.25rem)); }
.ahis-topbar .dropdown-item { white-space: normal; }
.ahis-surface::before { height: 2px; background: var(--ahis-accent); }

.nahis-skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 1100;
  transform: translateY(-200%);
  padding: .65rem 1rem;
  border-radius: .5rem;
  background: var(--ahis-surface);
  color: var(--ahis-text);
}
.nahis-skip-link:focus { transform: none; }
.ahis-main { scroll-margin-top: calc(var(--ahis-topbar-h) + .5rem); }
.ahis-body :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid #18573d;
  outline-offset: 2px;
}

.ahis-body :is(.page-header, .ahis-page-header, .nahis-dashboard-header) {
  padding: .95rem 1rem;
  color: var(--ahis-text);
  background: var(--ahis-accent-soft);
  border: 1px solid var(--ahis-border);
  border-inline-start: 4px solid var(--ahis-accent);
  border-radius: var(--ahis-radius);
  box-shadow: none;
}
.ahis-body :is(.page-header, .ahis-page-header, .nahis-dashboard-header) h1 {
  margin: 0 0 .3rem;
  color: var(--ahis-text);
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  font-weight: 750;
  letter-spacing: -.025em;
}
.ahis-body .nahis-dashboard {
  color: var(--ahis-text);
  background: transparent;
  padding: 0;
  margin: 0;
}
.nahis-dashboard .nahis-dashboard-header::before { content: none; }
.ahis-body .nahis-dashboard :is(.nahis-filter-card, .nahis-panel, .nahis-kpi) {
  background: var(--ahis-surface);
  border-color: var(--ahis-border);
  border-radius: var(--ahis-radius);
  box-shadow: var(--ahis-shadow-soft);
  min-width: 0;
}
.nahis-dashboard .nahis-kpi { border-top: 2px solid var(--ahis-accent); }
.nahis-dashboard .nahis-kpi .kpi-value,
.nahis-dashboard .nahis-kpi .value {
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  font-variant-numeric: tabular-nums;
}
.nahis-dashboard :is(.btnx-primary, .btn-niger) {
  background: var(--ahis-primary);
  color: #fff;
  border-color: var(--ahis-primary);
}
.nahis-dashboard :is(.btnx-primary, .btn-niger):hover { background: var(--ahis-primary-hover); }
.nahis-dashboard .btnx-export { color: var(--ahis-primary); border-color: var(--ahis-primary); background: var(--ahis-surface); }
.nahis-dashboard .btnx-export:hover { color: var(--ahis-primary-hover); background: var(--ahis-primary-soft); }
.nahis-dashboard :is(.btnx, .filter-action, .form-control, .form-select) { min-height: 44px; }
.ahis-body :is(.nahis-dashboard table, .ahis-table, .summary-table) { font-variant-numeric: tabular-nums; }
.ahis-body :is(.nahis-dashboard table, .ahis-table, .summary-table) thead th { background: var(--ahis-accent-soft); color: var(--ahis-text); }
.ahis-body :is(.ahis-form, .ahis-toolbar, .ahis-detail-card) { border-color: var(--ahis-border); }

@media (max-width: 991.98px) {
  .ahis-sidebar:not(.open) { visibility: hidden; }
  .ahis-topbar .ahis-topbar-inner { gap: .4rem !important; padding-inline: .55rem; }
  .ahis-topbar .ms-auto { gap: .25rem !important; }
  .ahis-topbar :is(.ahis-btn, .ahis-iconbtn) { width: 44px; padding-inline: .35rem; }
  .ahis-topbar .nahis-top-label { display: none; }
  .ahis-topbar .ahis-brand-name { white-space: nowrap; }
}
@media (max-width: 420px) {
  .ahis-topbar .ahis-brand { flex-wrap: wrap; gap: .2rem .35rem; }
  .ahis-topbar .ahis-brand-name { font-size: .8rem; }
  .ahis-topbar .ahis-brand-logo { flex-basis: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ahis-sidebar { transition: none; }
}

@media (min-width: 768px) {
  .health-summary .summary-kpis > .summary-kpi:only-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1.25rem;
  }
  .health-summary .summary-kpis > .summary-kpi:only-child :is(h2, p, a) { margin: 0; }
  .health-summary .summary-kpis > .summary-kpi:only-child h2 { justify-content: flex-start; }
}

.ahis-body .ahis-sidebar {
  --sidebar-bg: #102d25;
  --sidebar-text: #f2faf5;
  --sidebar-muted: #aec7ba;
  --sidebar-line: #315146;
  --sidebar-hover: #1d4035;
  --sidebar-active: #d9f0e3;
  --sidebar-active-text: #15392a;
  color: var(--sidebar-text);
  background: var(--sidebar-bg);
  border-color: var(--sidebar-line);
}
.ahis-sidebar .ahis-sidebar-scroll {
  padding: 0 .75rem 1.25rem;
  scrollbar-color: #608374 var(--sidebar-bg);
  overscroll-behavior: contain;
}
.nahis-sidebar-tools {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-block: .85rem .5rem;
  background: var(--sidebar-bg);
}
.nahis-sidebar-search { display: flex; align-items: center; position: relative; }
.nahis-sidebar-search i {
  position: absolute;
  inset-inline-start: .8rem;
  color: var(--sidebar-muted);
  pointer-events: none;
}
.nahis-sidebar-search input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .45rem .65rem .45rem 2.15rem;
  color: var(--sidebar-text);
  background: var(--sidebar-hover);
  border: 1px solid #628376;
  border-radius: .6rem;
  font: inherit;
  font-size: .875rem;
  color-scheme: dark;
}
.nahis-sidebar-search input::placeholder { color: var(--sidebar-muted); }
.nahis-sidebar-section { padding-block: .65rem .45rem; }
.nahis-sidebar-section + .nahis-sidebar-section { border-top: 1px solid var(--sidebar-line); }
.ahis-sidebar .ahis-sidebar-title {
  gap: .55rem;
  margin: 0 .55rem .3rem;
  color: var(--sidebar-muted);
  font-size: .7rem;
  letter-spacing: .08em;
}
.ahis-sidebar :is(.ahis-nav-link, .ahis-group-btn) {
  min-height: 44px;
  margin-inline: 0;
  padding: .45rem .6rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  color: var(--sidebar-text);
  background: transparent;
  gap: .6rem;
  text-decoration: none;
}
.ahis-sidebar :is(.ahis-nav-link, .ahis-group-btn):hover {
  border-color: var(--sidebar-line);
  color: var(--sidebar-text);
  background: var(--sidebar-hover);
}
.ahis-sidebar .ahis-nav-link.active {
  border-color: var(--sidebar-active);
  background: var(--sidebar-active);
  color: var(--sidebar-active-text);
  box-shadow: inset 3px 0 #bd571f;
}
.ahis-sidebar .ahis-group-btn[aria-expanded="true"] {
  color: var(--sidebar-text);
  background: var(--sidebar-hover);
}
.ahis-sidebar :is(.ahis-nav-icon, .ahis-group-icon) {
  flex: 0 0 1.9rem;
  width: 1.9rem;
  height: 1.9rem;
  color: inherit;
  border: 0;
  border-radius: .45rem;
  background: #ffffff12;
}
.ahis-sidebar .ahis-nav-link.active .ahis-nav-icon { background: #18573d18; }
.ahis-sidebar :is(.ahis-nav-label, .ahis-group-label) {
  color: inherit;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  line-height: 1.25;
  font-weight: 640;
}
.ahis-sidebar .ahis-group-chevron { color: var(--sidebar-muted); }
.ahis-sidebar .ahis-group-children {
  margin: .25rem 0 .35rem .55rem;
  padding-inline-start: .35rem;
  border-color: #69887b;
}
.ahis-sidebar :is(a, button, input) { scroll-margin-top: 4.5rem; }
.ahis-sidebar :is(a, button, input):focus-visible { outline: 2px solid #a7ebc7; outline-offset: 1px; }
.nahis-sidebar-status { color: var(--sidebar-muted); padding: .4rem .55rem; margin: .35rem 0; font-size: .82rem; }
.nahis-sidebar-result small {
  display: block;
  margin-top: .25rem;
  color: var(--sidebar-muted);
  font-weight: 400;
}
.nahis-sidebar-result.active small { color: var(--sidebar-active-text); }
@media (prefers-reduced-motion: reduce) {
  .ahis-sidebar :is(.ahis-group-children, .ahis-group-chevron i) { transition: none; }
}

.nahis-dashboard .nahis-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem 1rem;
  margin-bottom: .85rem;
}
.nahis-dashboard .nahis-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.nahis-dashboard .nahis-dashboard-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 44px;
}
.nahis-dashboard .nahis-section-title,
.nahis-dashboard .section-title { font-size: 1.1rem; font-weight: 750; color: var(--ahis-text); }
.nahis-dashboard .nahis-filter-card .nahis-section-title { margin: 0 0 .65rem; }
.nahis-dashboard .cardx-hd .nahis-section-title { margin: 0; }
.nahis-dashboard .nahis-section-heading { margin: 1.35rem 0 .6rem; }
.nahis-dashboard .nahis-dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
.nahis-dashboard .nahis-dashboard-kpis .nahis-kpi {
  min-height: 0;
  padding: .72rem .8rem;
  border-top-width: 2px;
}
.nahis-dashboard .nahis-dashboard-kpis .nahis-kpi:first-child {
  background: var(--ahis-accent-soft);
  border-top-color: var(--ahis-accent);
}
.nahis-dashboard-vaccination .nahis-dashboard-kpis .nahis-kpi:first-child { background: var(--ahis-surface); }
.nahis-dashboard-vaccination .nahis-dashboard-kpis .nahis-kpi:nth-child(2) { background: var(--ahis-accent-soft); }
.nahis-dashboard .nahis-dashboard-kpis .nahis-kpi::after { content: none; }
.nahis-dashboard .nahis-dashboard-kpis :is(.kpi-label, .nahis-kpi .title) {
  color: var(--ahis-muted);
  font-size: .86rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}
.nahis-dashboard .nahis-dashboard-kpis :is(.kpi-value, .nahis-kpi .value) {
  color: var(--ahis-text);
  font-weight: 760;
}
.nahis-dashboard .nahis-dashboard-kpis .kpi-icon {
  width: 2rem;
  height: 2rem;
  flex-basis: 2rem;
  border-radius: .5rem;
  color: var(--ahis-text);
  background: var(--ahis-accent-soft);
}
.nahis-dashboard .nahis-dashboard-kpis .kpi-card { gap: .65rem; }
.nahis-dashboard .nahis-records { margin-top: 1.2rem; }
.nahis-dashboard .nahis-data-scroll { overflow-x: auto; }
.nahis-dashboard .nahis-records table { min-width: 52rem; }
.nahis-dashboard :is(.nahis-number-cell, .col-num) { text-align: right; white-space: nowrap; }
.nahis-dashboard .nahis-data-scroll thead th { border-bottom: 1px solid var(--ahis-border); }
.nahis-dashboard .nahis-data-scroll tbody tr:nth-child(even) :is(th, td) { background: var(--ahis-bg); }
.nahis-dashboard :is(.table-wrap, .table-responsive, .nahis-records) { max-width: 100%; }
.nahis-dashboard .nahis-dashboard-tabs {
  display: flex;
  gap: .35rem;
  align-items: stretch;
  border-bottom: 1px solid var(--ahis-border);
  padding-bottom: .45rem;
}
.nahis-dashboard .nahis-dashboard-tabs .nav-link {
  min-height: 44px;
  border: 1px solid var(--ahis-border);
  border-radius: .55rem;
  color: var(--ahis-text);
  background: var(--ahis-surface);
}
.nahis-dashboard .nahis-dashboard-tabs .nav-link.active {
  border-color: var(--ahis-accent);
  background: var(--ahis-accent);
  color: #fff;
}
.nahis-dashboard .nahis-analysis-grid .topitem .count { font-variant-numeric: tabular-nums; }

@media (min-width: 1150px) {
  .nahis-dashboard .nahis-dashboard-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nahis-dashboard-vaccination .nahis-dashboard-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .nahis-dashboard .nahis-dashboard-kpis .kpi-card { flex-wrap: wrap; }
  .nahis-dashboard .nahis-dashboard-kpis :is(.kpi-value, .nahis-kpi .value) { font-size: 1.15rem; }
  .nahis-dashboard .nahis-dashboard-actions { width: 100%; }
}

.nahis-dashboard .nahis-source-line {
  margin: 0 0 .85rem;
  color: var(--ahis-muted);
  font-size: .85rem;
}
.nahis-dashboard .nahis-dashboard-kpis .kpi-icon.tone-red {
  color: #9f2525;
  background: #fce9e8;
}
.nahis-dashboard .nahis-dashboard-kpis .kpi-icon.tone-orange {
  color: #8c420d;
  background: #fff0e2;
}

.nahis-detail-disclosure > summary {
  min-height: 44px;
  padding: .65rem .8rem;
  color: var(--ahis-text);
  font-weight: 700;
  cursor: pointer;
}
.nahis-detail-disclosure > summary::marker { color: var(--ahis-accent); }
.nahis-dashboard .nahis-detail-disclosure[open] > summary { border-bottom: 1px solid var(--ahis-border); }
.nahis-dashboard .nahis-detail-disclosure[open] > summary + :is(.chart-img, .table) { margin-top: .6rem; }
.nahis-dashboard .nahis-detail-disclosure[id] { scroll-margin-top: calc(var(--ahis-topbar-h) + 1rem); }
.nahis-dashboard .nahis-ranked-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .3rem .65rem;
  align-items: baseline;
}
.nahis-ranked-item progress,
.summary-ranking-list progress {
  grid-column: 1 / -1;
  width: 100%;
  height: .38rem;
  border: 0;
  border-radius: .3rem;
  overflow: hidden;
  appearance: none;
  accent-color: var(--ahis-primary);
  background: var(--ahis-accent-soft);
}
.nahis-ranked-item progress::-webkit-progress-bar,
.summary-ranking-list progress::-webkit-progress-bar { background: var(--ahis-accent-soft); }
.nahis-ranked-item progress::-webkit-progress-value,
.summary-ranking-list progress::-webkit-progress-value { background: var(--ahis-primary); border-radius: .3rem; }
.nahis-ranked-item progress::-moz-progress-bar,
.summary-ranking-list progress::-moz-progress-bar { background: var(--ahis-primary); border-radius: .3rem; }
