﻿:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --sidebar: #102a43;
    --sidebar-soft: #183b5b;
    --primary: #167d8d;
    --primary-soft: #e9f7f8;
    --text: #172b3a;
    --muted: #6b7c8d;
    --border: #e3e9ef;
    --success: #17845c;
    --warning: #b7791f;
    --danger: #c2414b;
    --purple: #6656a8;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 9px;
    --shadow: 0 8px 28px rgba(31, 50, 73, 0.07);
    --shadow-soft: 0 3px 14px rgba(31, 50, 73, 0.05);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

body {
    min-height: 100vh;
}

button,
select {
    font: inherit;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
}

/* Sidebar */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    padding: 26px 18px 20px;
    display: flex;
    flex-direction: column;
    background: var(--sidebar);
    color: white;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 28px;
}

.brand-mark {
    display: block;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.brand strong,
.brand span {
    display: block;
}

.brand strong {
    font-size: 14px;
    line-height: 1.2;
}

.brand span {
    margin-top: 3px;
    color: #aebfd0;
    font-size: 11px;
}

.navigation {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    padding: 12px 14px;
    border-radius: 11px;
    color: #c4d2df;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: .18s ease;
}

.nav-item:hover:not(.disabled) {
    background: rgba(255,255,255,.07);
    color: white;
}

.nav-item.active {
    background: var(--sidebar-soft);
    color: white;
    box-shadow: inset 3px 0 0 #53c4c9;
}

.nav-item.disabled {
    opacity: .45;
    cursor: default;
}

#help-nav { margin-top: 14px; border-top: 1px solid rgba(255,255,255,.1); border-radius: 0 0 11px 11px; }
#help-nav span { display: inline-grid; width: 18px; height: 18px; margin-right: 7px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; }

.sidebar-footer {
    margin-top: auto;
    padding: 16px 8px 4px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.13);
    font-weight: 700;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-info strong,
.user-info span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-info strong {
    font-size: 12px;
}

.user-info span {
    margin-top: 2px;
    color: #aebfd0;
    font-size: 10px;
}

.sidebar-footer .logout-button {
    display: inline-block;
    margin-top: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #aebfd0;
    font-size: 10px;
    box-shadow: none;
}

.sidebar-footer .logout-button:hover,
.sidebar-footer .logout-button:focus-visible {
    background: transparent;
    color: #fff;
    text-decoration: underline;
}

/* Main content */

.main-content {
    grid-column: 2;
    width: 100%;
    max-width: 1700px;
    padding: 34px 38px 55px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 25px;
}

.eyebrow,
.section-label {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}

.page-header h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 39px);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.page-description {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.logout-button {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.logout-button:hover {
    border-color: #cbd5df;
    background: #fbfcfd;
}

.page-actions { display: flex; align-items: center; gap: 9px; }
.print-button { padding: 10px 16px; border: 1px solid var(--primary); border-radius: 10px; background: var(--primary); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-soft); }
.print-button:hover, .print-button:focus-visible { background: var(--sidebar-soft); outline: none; }
.print-context { display: none; }

/* Filters */

.filter-panel {
    display: grid;
    grid-template-columns: minmax(340px, 2.2fr) repeat(3, minmax(145px, 1fr));
    gap: 12px;
    padding: 16px;
    margin-bottom: 27px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.disease-filter-field { min-width: 0; }

.disease-combobox { position: relative; width: 100%; min-width: 0; }

.filter label {
    display: block;
    margin: 0 0 7px 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.filter select,
.compact-select {
    width: 100%;
    border: 1px solid var(--border);
    outline: none;
    background: var(--surface-soft);
    color: var(--text);
    transition: .18s ease;
}

.filter select {
    height: 42px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 13px;
}

.disease-selector {
    width: 100%;
    height: 42px;
    padding: 0 38px 0 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 13px;
}

.disease-selector:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,125,141,.1); outline: none; }
.disease-combobox-toggle { position: absolute; top: 1px; right: 1px; width: 36px; height: 40px; padding: 0; border: 0; border-radius: 0 9px 9px 0; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; }
.disease-combobox-toggle:hover, .disease-combobox-toggle:focus-visible { color: var(--primary); background: #f3f8f9; outline: none; }
.disease-options { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 40; box-sizing: border-box; width: 100%; max-width: 100%; max-height: 260px; overflow-x: hidden; overflow-y: auto; padding: 5px; border: 1px solid var(--border); border-radius: 9px; background: #fff; box-shadow: 0 12px 28px rgba(17,38,54,.18); }
.disease-option { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font: inherit; font-size: 12px; line-height: 1.35; text-align: left; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
.disease-option:hover, .disease-option.active { background: #edf8f8; color: var(--primary); }
.disease-option[aria-selected="true"] { font-weight: 750; }

.filter select:focus,
.compact-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22,125,141,.1);
}

/* Disease heading */

.disease-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin: 0 2px 16px;
}

.disease-heading h2 {
    margin: 0;
    font-size: 23px;
    letter-spacing: -.02em;
}

.context-badge {
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}

/* Summary cards */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.metric-card {
    position: relative;
    min-height: 142px;
    padding: 19px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.metric-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    width: 42px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--primary);
}

.metric-label {
    margin: 5px 0 13px;
    min-height: 31px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
}

.metric-value {
    margin: 0;
    font-size: 29px;
    font-weight: 750;
    letter-spacing: -.035em;
}

.metric-footnote {
    margin-top: 9px;
    color: var(--muted);
    font-size: 10px;
}

.skeleton-card {
    background:
        linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent),
        #edf1f5;
    background-size: 200% 100%;
    animation: skeleton 1.4s infinite;
}

@keyframes skeleton {
    from { background-position: 180% 0; }
    to { background-position: -180% 0; }
}

/* Panels */

.analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr);
    gap: 16px;
    margin-bottom: 16px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.trend-panel,
.availability-panel,
.regional-panel,
.indicator-panel {
    padding: 21px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.panel-header h3 {
    margin: 0;
    font-size: 17px;
    letter-spacing: -.015em;
}

.compact-select {
    max-width: 260px;
    min-width: 160px;
    height: 36px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 11px;
}

.chart-container {
    min-height: 275px;
}

.availability-content {
    min-height: 275px;
}

.loading-state,
.empty-state,
.error-state {
    min-height: 180px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

/* Trend SVG */

.trend-svg {
    width: 100%;
    height: 270px;
    overflow: visible;
}

.chart-grid-line {
    stroke: #edf1f4;
    stroke-width: 1;
}

.chart-line {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-area {
    fill: rgba(22,125,141,.08);
}

.chart-point {
    fill: var(--surface);
    stroke: var(--primary);
    stroke-width: 3;
}

.chart-label {
    fill: var(--muted);
    font-size: 10px;
}

.chart-value {
    fill: var(--text);
    font-size: 10px;
    font-weight: 700;
}

/* Availability */

.availability-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0 21px;
}

.availability-ring {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--primary) var(--coverage), #e8edf1 0);
    position: relative;
}

.availability-ring::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--surface);
}

.availability-ring-value {
    position: relative;
    z-index: 1;
    text-align: center;
}

.availability-ring-value strong {
    display: block;
    font-size: 21px;
}

.availability-ring-value span {
    color: var(--muted);
    font-size: 9px;
}

.status-list {
    display: grid;
    gap: 9px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 9px;
    background: var(--surface-soft);
    font-size: 11px;
}

.status-name {
    display: flex;
    align-items: center;
    gap: 7px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.status-dot.reported { background: var(--success); }
.status-dot.missing { background: #98a6b3; }
.status-dot.no-programme { background: var(--purple); }
.status-dot.partial { background: var(--warning); }

/* Regional analysis */

.regional-panel {
    margin-bottom: 16px;
}

.regional-chart {
    min-height: 260px;
}

.region-row {
    display: grid;
    grid-template-columns: minmax(125px, 190px) minmax(120px, 1fr) 75px;
    gap: 12px;
    align-items: center;
    min-height: 31px;
    font-size: 11px;
}

.region-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #42576a;
}

.region-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f5;
}

.region-bar {
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: var(--primary);
}

.region-value {
    text-align: right;
    font-weight: 700;
}

.region-row.unknown {
    margin-top: 8px;
    padding-top: 9px;
    border-top: 1px dashed var(--border);
}

/* Status badges */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 750;
    white-space: nowrap;
}

.status-reported {
    background: #e8f6ef;
    color: var(--success);
}

.status-missing {
    background: #eef1f4;
    color: #647382;
}

.status-no-programme {
    background: #f0edfa;
    color: var(--purple);
}

.status-partial {
    background: #fff5df;
    color: var(--warning);
}

/* Indicator table */

.indicator-panel {
    overflow: hidden;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.indicator-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.indicator-table th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    text-align: right;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.indicator-table th:first-child {
    text-align: left;
}

.indicator-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #edf1f4;
    text-align: right;
    vertical-align: middle;
}

.indicator-table td:first-child {
    max-width: 430px;
    text-align: left;
    font-weight: 600;
}

.indicator-table tbody tr:hover {
    background: #fafcfd;
}

.indicator-table tbody tr:last-child td {
    border-bottom: 0;
}

.all-diseases-matrix {
    min-width: 1460px;
    border-collapse: separate;
    border-spacing: 0;
}

.all-diseases-matrix th {
    position: sticky;
    top: 0;
    z-index: 2;
    min-width: 72px;
    background: var(--surface);
    white-space: nowrap;
}

.all-diseases-matrix th:first-child,
.all-diseases-matrix td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 150px;
    background: var(--surface);
}

.all-diseases-matrix th:nth-child(2),
.all-diseases-matrix td:nth-child(2) {
    position: sticky;
    left: 150px;
    z-index: 3;
    min-width: 300px;
    max-width: 360px;
    background: var(--surface);
}

.all-diseases-matrix th:first-child,
.all-diseases-matrix th:nth-child(2) { z-index: 4; }
.all-diseases-matrix th:nth-child(-n+2),
.all-diseases-matrix td:nth-child(-n+2) { text-align: left; }
.all-diseases-matrix tbody tr:hover td { background: #fafcfd; }
.all-diseases-matrix .matrix-indicator-cell span { display: block; font-weight: 600; }
.matrix-partial-marker { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 600; }
.all-diseases-matrix .matrix-value-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.all-diseases-matrix .matrix-status-cell { color: var(--muted); font-size: 10px; }
.all-diseases-matrix .matrix-repeated-disease { color: var(--muted); font-weight: 500; }
.all-diseases-matrix th:last-child,
.all-diseases-matrix td:last-child { background: #f1f7f7; border-left: 1px solid #cbdede; font-weight: 800; }
.regional-matrix-floating-scrollbar {
    position: fixed;
    bottom: 8px;
    z-index: 20;
    height: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 3px 12px rgb(25 48 60 / 18%);
}
.regional-matrix-floating-scrollbar > div { height: 1px; }

/* Progress to Elimination */

.progress-filter-panel {
    grid-template-columns: minmax(340px, 2fr) repeat(3, minmax(150px, 1fr));
}

.filter-label {
    display: block;
    margin: 0 0 7px 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.fixed-period {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 42px;
    padding: 0 12px;
    border-left: 1px solid var(--border);
}

.fixed-period strong { font-size: 14px; }
.fixed-period small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.progress-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 18px;
}

.progress-heading h2 { margin: 0; font-size: 22px; }

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.requirement-card {
    min-height: 105px;
    padding: 17px 18px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.requirement-card span, .requirement-card small { display: block; }
.requirement-card span { color: var(--muted); font-size: 11px; font-weight: 700; }
.requirement-card strong { display: block; margin: 6px 0 3px; font-size: 25px; }
.requirement-card small { color: var(--muted); line-height: 1.35; }
.requirement-additional { border-top-color: #d59c35; }
.requirement-clarification { border-top-color: #8f6ab3; }

.progress-panel { overflow: hidden; }
.fixed-comparison-header { display: block; margin-bottom: 0; padding: 20px 20px 16px; }
.fixed-comparison-header .section-label { display: block; margin-bottom: 7px; }
.fixed-comparison-header h3 { font-size: 17px; line-height: 1.3; }
.progress-legend { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: left; }
.progress-table th { font-size: 10px; font-weight: 750; }
.progress-table th:nth-child(n+2) { text-align: center; }
.progress-table td:nth-child(n+2) { text-align: center; }
.progress-table td:first-child strong, .progress-disease { display: block; }
.progress-disease { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 500; }
.progress-status { display: block; width: max-content; margin: 5px auto 0; }

.movement-result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    font-weight: 750;
}

.movement-favorable { color: #176b4d; border-color: #a8d8c6; background: #edf8f3; }
.movement-unfavorable { color: #a43e3e; border-color: #edbbbb; background: #fff1f1; }
.movement-neutral { color: #655183; border-color: #d1c4e1; background: #f6f2fa; }
.movement-additional, .movement-limited { color: #815e19; border-color: #e5cd96; background: #fff8e8; }
.movement-context { color: #655183; border-color: #d1c4e1; background: #f6f2fa; }
.movement-unavailable { color: var(--muted); }
.progress-table td:nth-last-child(2) small { display: block; margin-top: 5px; color: var(--muted); }

.info-button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
}

/* Data Entry and Administration foundation */
.foundation-grid, .admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.foundation-card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.foundation-card h2 { margin: 6px 0 9px; font-size: 18px; }
.foundation-card p, .foundation-panel-header p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.foundation-card-active { border-top: 3px solid var(--primary); }
.foundation-status, .foundation-note { display: block; margin-top: 14px; color: var(--muted); font-size: 11px; font-weight: 650; }
.foundation-panel { padding: 21px; margin-bottom: 18px; }
.foundation-panel-header { align-items: end; }
.secondary-button, .primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--primary); border-radius: 9px; font-weight: 700; text-decoration: none; cursor: pointer; }
.secondary-button { margin-top: 14px; background: var(--surface); color: var(--primary); }
.primary-button { background: var(--primary); color: #fff; }
.inline-filter { display: grid; gap: 6px; min-width: 180px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.inline-filter select { min-height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.population-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.population-summary.total-only { grid-template-columns: minmax(180px, 1fr); max-width: 320px; }
.population-dataset-context { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.population-dataset-context strong { color: var(--text); }
.population-total { padding: 12px; border-radius: 10px; background: var(--surface-soft); }
.population-total span, .population-total strong { display: block; }
.population-total span { color: var(--muted); font-size: 10px; }
.population-total strong { margin-top: 4px; font-size: 19px; }
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; padding: 14px; border-radius: 12px; background: var(--surface-soft); }
.admin-form label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.admin-form input, .admin-form select { min-width: 0; min-height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.admin-form .checkbox-label { display: flex; align-items: center; gap: 7px; }
.admin-form .checkbox-label input { min-height: 0; }
.disease-draft-panel { width: 100%; margin-bottom: 18px; }
.draft-step-heading { display: flex; align-items: center; gap: 9px; padding: 0 20px 10px; font-size: 12px; }
.draft-step-heading span, .draft-create-action > span, .draft-step-inline { color: var(--primary); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.draft-create-form { display: grid; grid-template-columns: .65fr 1.1fr 1.8fr auto; align-items: end; gap: 10px; padding: 0 20px 18px; }
.draft-create-form label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.draft-create-form select { width: 100%; min-width: 0; min-height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.draft-create-action { display: grid; gap: 5px; }
.draft-create-help { margin: -7px 20px 18px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.draft-workspace { display: grid; grid-template-columns: minmax(210px,.55fr) minmax(0,2fr); gap: 16px; padding: 0 20px 20px; }
.draft-list-area { min-width: 0; }
.draft-list-area h4, .draft-editor h4 { margin: 0 0 9px; }
.draft-list-area h4:not(:first-child) { margin-top: 18px; }
.draft-list { display: grid; gap: 7px; }
.draft-list-button { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; }
.draft-list-button:hover, .draft-list-button:focus-visible, .draft-list-button.selected { border-color: var(--primary); background: #edf8f8; outline: none; }
.draft-list-button strong, .draft-list-button small { display: block; }
.draft-list-button small { margin-top: 4px; color: var(--muted); }
.draft-editor { min-width: 0; padding: 15px; border: 1px solid var(--border); border-radius: 12px; }
.draft-editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.draft-editor-header p { margin: 0; color: var(--muted); font-size: 11px; }
.draft-context { display: grid; grid-template-columns: .65fr 1.1fr 1.8fr 1.25fr; gap: 8px; margin: 0 0 14px; padding: 11px; border-radius: 9px; background: var(--surface-soft); }
.draft-context div { min-width: 0; }
.draft-context dt { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.draft-context dd { margin: 4px 0 0; font-size: 11px; font-weight: 700; }
.draft-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.danger-button { min-height: 38px; padding: 0 13px; border: 1px solid var(--danger); border-radius: 9px; background: var(--surface); color: var(--danger); font-weight: 700; cursor: pointer; }
.draft-empty { align-self: stretch; display: grid; place-items: center; min-height: 150px; padding: 20px; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); text-align: center; }
.draft-table input { width: 100%; min-width: 105px; padding: 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); }
.draft-table .published-status { display: block; color: var(--muted); font-size: 10px; }
.draft-table-groups th { color: var(--primary); font-size: 9px; letter-spacing: .04em; }
.draft-entry-notice { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; background: var(--surface-soft); color: var(--text); font-size: 11px; line-height: 1.45; }
.draft-baseline-note { display: block; max-width: 210px; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.draft-final-value { display: block; min-width: 105px; font-weight: 800; }
.draft-return-reason { padding: 10px 12px; border-left: 3px solid #b57411; background: #fff8e8; font-size: 11px; }
.dashboard-message.success { color: var(--success); }
.dashboard-message.error { color: var(--danger); }
.reporting-year-form { grid-template-columns: minmax(110px, 1fr) auto auto auto; align-items: end; }
.admin-list { display: grid; gap: 9px; }
.admin-row { display: grid; grid-template-columns: minmax(140px, 1.2fr) minmax(120px, .8fr) auto; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--border); border-radius: 10px; }
.admin-row.reporting-year-row { grid-template-columns: minmax(90px, .4fr) minmax(0, 1.6fr); }
.admin-row strong, .admin-row small { display: block; }
.admin-row small { margin-top: 3px; color: var(--muted); }
.protected-administrator-badge { display: inline-block; margin-top: 7px; padding: 4px 8px; border: 1px solid #b9d8dc; border-radius: 999px; background: #e7f6f6; color: var(--primary-dark); font-size: 9px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.account-status { min-width: 60px; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; text-align: center; }
.account-status.active { background: #e6f4ec; color: #216a43; }
.account-status.inactive { background: #f1f3f5; color: #66727d; }
.admin-row-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.admin-row input, .admin-row select { min-height: 34px; padding: 0 8px; border: 1px solid var(--border); border-radius: 8px; }
.admin-row button { min-height: 34px; padding: 0 10px; border: 1px solid var(--primary); border-radius: 8px; background: var(--surface); color: var(--primary); font-weight: 700; cursor: pointer; }
.admin-row button:disabled, .admin-row select:disabled, .admin-row input:disabled { opacity: .58; cursor: not-allowed; }
.admin-row .remove-year-button { border-color: #c96a6a; color: var(--danger); }
.admin-row .delete-user-button { border-color: #c96a6a; color: var(--danger); }
.admin-row .delete-user-button:disabled { opacity: .55; cursor: not-allowed; }
.admin-security-note { margin: -5px 0 15px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.admin-search-controls { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto; align-items: center; gap: 8px; margin: 0 0 14px; }
.admin-search-controls label { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.admin-search-controls input, .admin-search-controls button, .audit-search-form input, .audit-search-form select, .audit-search-form button, .audit-pagination button { min-height: 36px; padding: 0 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.admin-audit-panel { grid-column: 1 / -1; }
.audit-search-form { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 9px; margin-bottom: 12px; }
.audit-search-form label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.audit-search-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 7px; grid-column: 1 / -1; }
.audit-search-actions #audit-search-button { min-height: 36px; border-color: var(--primary); background: var(--primary); color: #fff; }
.audit-search-actions #audit-search-button:hover { border-color: #0f6572; background: #0f6572; color: #fff; }
.audit-search-actions #audit-search-button:focus-visible { border-color: #0f6572; background: #0f6572; color: #fff; outline: 3px solid rgba(22, 125, 141, .25); outline-offset: 2px; }
.audit-search-actions #audit-search-button:disabled { border-color: #6c9fa7; background: #6c9fa7; color: #fff; opacity: 1; cursor: wait; }
.audit-search-actions .secondary-button { min-height: 36px; margin-top: 0; }
.audit-table-wrapper { max-height: 520px; }
.audit-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.audit-pagination span { color: var(--muted); font-size: 11px; font-weight: 700; }
.year-use-status { padding: 5px 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.foundation-feedback { min-height: 20px; color: var(--muted); font-size: 12px; }
.foundation-feedback.success { color: var(--success); }
.foundation-feedback.error { color: var(--danger); }
.help-introduction { margin-bottom: 18px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.help-introduction h2 { margin: 0 0 7px; font-size: 19px; }
.help-introduction > p { margin: 0; color: var(--muted); line-height: 1.55; }
.help-jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.help-jump-links a { padding: 7px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--primary-dark); background: var(--surface-soft); font-size: 11px; font-weight: 700; text-decoration: none; }
.help-jump-links a:hover, .help-jump-links a:focus-visible { border-color: var(--primary); outline: 2px solid transparent; background: #e7f6f6; }
.help-sections { display: grid; gap: 12px; max-width: 1100px; }
.help-topic { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); overflow: hidden; }
.help-topic summary { padding: 17px 20px; color: var(--text); font-size: 15px; font-weight: 800; cursor: pointer; }
.help-topic summary:hover, .help-topic summary:focus-visible { background: var(--surface-soft); outline: none; }
.help-topic[open] summary { border-bottom: 1px solid var(--border); }
.help-topic-content { padding: 18px 20px 20px; color: #425466; font-size: 12px; line-height: 1.65; }
.help-topic-content p { margin: 0 0 12px; }
.help-topic-content p:last-child { margin-bottom: 0; }
.help-topic-content h3 { margin: 17px 0 5px; color: var(--text); font-size: 13px; }
.help-topic-content ol { margin: 8px 0 16px; padding-left: 22px; }
.help-access-label { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #e8f3f7; color: var(--sidebar); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.help-example-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin: 13px 0; }
.help-example-grid div { padding: 11px 12px; border-radius: 9px; background: var(--surface-soft); }
.help-example-grid strong, .help-example-grid span, .help-example span { display: block; }
.help-example-grid span { margin-top: 3px; color: var(--muted); }
.help-example { display: grid; gap: 3px; margin: 13px 0; padding: 13px; border-left: 3px solid var(--primary); background: var(--surface-soft); }
.help-definitions { display: grid; gap: 9px; margin: 10px 0 15px; }
.help-definitions div { padding: 10px 12px; border-radius: 9px; background: var(--surface-soft); }
.help-definitions dt { color: var(--text); font-weight: 800; }
.help-definitions dd { margin: 2px 0 0; }

@media (max-width: 900px) {
    .foundation-grid, .admin-grid, .admin-form, .draft-create-form, .draft-workspace, .draft-context { grid-template-columns: 1fr; }
    .draft-editor-header { flex-direction: column; }
    .admin-row { grid-template-columns: 1fr; }
    .admin-row-controls { justify-content: flex-start; }
    .audit-search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foundation-panel-header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
    .admin-search-controls, .audit-search-form { grid-template-columns: 1fr; }
    .audit-search-actions { grid-column: 1; }
}

.info-button:hover, .info-button:focus-visible {
    border-color: var(--primary);
    background: #edf8f8;
    outline: none;
}

.info-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(10, 28, 43, .36);
}

.calculation-info {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 51;
    width: min(480px, 92vw);
    height: 100vh;
    overflow-y: auto;
    padding: 26px;
    background: var(--surface);
    box-shadow: -18px 0 50px rgba(17, 38, 54, .2);
}

.calculation-info-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.calculation-info-header h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.calculation-info-header p { margin: 6px 0 0; color: var(--muted); }
.info-close { border: 0; background: transparent; color: var(--primary); font-weight: 700; cursor: pointer; }
.calculation-info-content section { padding: 18px 0; border-bottom: 1px solid var(--border); }
.calculation-info-content h3 { margin: 0 0 9px; font-size: 13px; }
.calculation-info-content p { margin: 5px 0; color: #425466; font-size: 12px; line-height: 1.55; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Experimental regional map */

.map-panel { margin-bottom: 18px; overflow: hidden; }
.map-panel-header { align-items: flex-start; padding: 20px 20px 12px; }
.map-scope-note { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.map-controls { display: grid; grid-template-columns: 1fr 1.8fr .7fr; align-items: end; gap: 14px; padding: 0 20px 16px; }
.spread-map-controls { grid-template-columns: minmax(220px, 1.25fr) minmax(300px, 2fr) minmax(110px, .55fr) minmax(168px, .9fr); }
.progress-map-controls { grid-template-columns: minmax(220px, 1.25fr) minmax(300px, 2fr) minmax(160px, .8fr) minmax(180px, 1fr); }
.map-layout { display: grid; grid-template-columns: minmax(440px, 1.55fr) minmax(340px, .8fr); align-items: start; gap: 20px; padding: 0 20px 20px; }
.guyana-map { position: relative; min-height: 610px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-md); background: linear-gradient(145deg, #f7fbfc, #eef5f6); overflow: hidden; }
.guyana-map svg { display: block; width: 100%; max-width: 640px; height: 610px; }
.map-region { stroke: #fff; stroke-width: 1.6; vector-effect: non-scaling-stroke; cursor: pointer; transition: filter .15s ease, stroke-width .15s ease; }
.map-region:hover, .map-region:focus { filter: brightness(.95); stroke: #557985; stroke-width: 2.2; outline: none; }
.map-region-selected { stroke: #f4fbfc; stroke-width: 2.4; filter: brightness(.9) saturate(1.12) drop-shadow(0 0 1px rgba(29,91,103,.45)); }
.map-region-partial, .map-region-limited { stroke: #b57411; stroke-width: 3; stroke-dasharray: 6 3; }
.map-region-no-programme { stroke: #76508f; stroke-dasharray: 3 3; }
.progress-map-layout .map-region.map-region-selected {
    filter: none;
}
.progress-map-layout .map-region-selection-halo,
.progress-map-layout .map-region-selection-outline {
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}
.progress-map-layout .map-region-selection-halo {
    stroke: #fff;
    stroke-width: 9;
}
.progress-map-layout .map-region-selection-outline {
    stroke: #173747;
    stroke-width: 5;
    filter: drop-shadow(0 0 1px rgba(23,55,71,.35));
}
.progress-map-layout .map-region.map-region-selected:hover ~ .map-region-selection-halo,
.progress-map-layout .map-region.map-region-selected:focus ~ .map-region-selection-halo {
    stroke-width: 10;
}
.progress-map-layout .map-region.map-region-selected:hover ~ .map-region-selection-outline,
.progress-map-layout .map-region.map-region-selected:focus ~ .map-region-selection-outline {
    stroke-width: 6;
}
.map-region-label { fill: #173747; stroke: rgba(255,255,255,.85); stroke-width: 2.5px; paint-order: stroke; text-anchor: middle; dominant-baseline: middle; font-size: 11px; font-weight: 800; }
.map-region-label-compact { font-size: 9px; }
.map-hover-tooltip { position: absolute; top: 12px; right: 12px; z-index: 2; max-width: min(310px, calc(100% - 24px)); padding: 9px 11px; border: 1px solid rgba(23,55,71,.18); border-radius: 8px; background: rgba(255,255,255,.97); color: var(--text); box-shadow: 0 8px 20px rgba(17,38,54,.16); font-size: 10px; line-height: 1.45; white-space: pre-line; pointer-events: none; }
.map-side-column { display: grid; min-width: 0; align-content: start; gap: 14px; }
.map-region-details { min-height: 235px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-soft); }
.map-region-details h4 { margin: 3px 0 12px; font-size: 17px; line-height: 1.35; }
.map-region-details p { margin: 7px 0; color: #425466; font-size: 12px; line-height: 1.5; }
.map-region-details p strong { color: var(--text); }
.map-detail-indicator { padding-bottom: 11px; border-bottom: 1px solid var(--border); white-space: pre-line; font-weight: 650; }
.map-calculation-button { margin-top: 12px; padding: 9px 12px; border: 1px solid var(--primary); border-radius: 8px; background: var(--surface); color: var(--primary); font-weight: 700; cursor: pointer; }
.map-legend { display: flex; flex-wrap: wrap; gap: 9px 14px; padding: 12px 4px 0; color: var(--muted); font-size: 10px; }
.map-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 16px; height: 12px; border: 1px solid rgba(22,55,71,.18); border-radius: 3px; }
.legend-partial { border: 2px dashed #b57411; }
.map-unknown-data { display: flex; align-items: baseline; gap: 12px; margin: 0 20px 20px; padding: 12px 15px; border: 1px dashed #a7b4be; border-radius: 10px; background: #f7f9fa; font-size: 11px; }
.map-unknown-data strong { white-space: nowrap; }
.map-unknown-data span { color: var(--muted); line-height: 1.5; }
.regional-ranking, .interpretation-summary { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.regional-ranking h4, .interpretation-summary h4 { margin: 0 0 10px; font-size: 13px; }
#regional-ranking-list { display: grid; gap: 4px; }
.ranking-row { width: 100%; display: grid; grid-template-columns: minmax(205px, 1fr) auto; align-items: center; gap: 12px; padding: 8px 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.ranking-row:hover, .ranking-row:focus-visible { background: var(--surface-soft); outline: none; }
.ranking-row.selected { border-color: var(--primary); background: #edf8f8; box-shadow: inset 3px 0 0 var(--primary); }
.ranking-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.ranking-row strong { font-size: 10px; white-space: nowrap; }
#interpretation-summary-list { display: grid; gap: 7px; }
#interpretation-summary-list > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 9px; border-radius: 7px; background: var(--surface-soft); font-size: 11px; }
#interpretation-summary-list strong { min-width: 24px; text-align: center; font-size: 13px; }

/* Responsive */

@media (max-width: 1150px) {
    .filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .availability-content {
        min-height: auto;
    }

    .progress-filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spread-map-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .progress-map-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .map-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
        padding: 15px;
    }

    .navigation {
        flex-direction: row;
        overflow-x: auto;
    }

    .nav-item {
        white-space: nowrap;
    }

    .sidebar-footer {
        display: none;
    }

    .main-content {
        padding: 25px 18px 40px;
    }

    .page-header {
        align-items: center;
    }
}

@media (max-width: 600px) {
    .filter-panel,
    .summary-grid,
    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .fixed-period { border-left: 0; padding: 4px 3px; }
    .progress-heading { align-items: flex-start; flex-direction: column; }
    .movement-result { min-width: 105px; }
    .map-controls, .spread-map-controls, .progress-map-controls { grid-template-columns: 1fr; }
    .map-layout { padding: 0 12px 16px; }
    .guyana-map { min-height: 470px; }
    .guyana-map svg { height: 470px; }
    .map-unknown-data { align-items: flex-start; flex-direction: column; margin: 0 12px 16px; }

    .disease-heading,
    .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .compact-select {
        max-width: none;
    }

    .region-row {
        grid-template-columns: 105px 1fr 58px;
        gap: 8px;
    }

    .page-header h1 {
        font-size: 28px;
    }
}

/* Sign-in screen shares the dashboard palette and panel treatment. */
[hidden] { display: none !important; }
.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.login-panel { width: min(100%, 440px); overflow: hidden; }
.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 25px 30px;
    background: var(--sidebar);
    color: white;
}
.login-brand strong, .login-brand span { display: block; }
.login-brand .brand-mark { width: 58px; height: 58px; }
.login-brand span { margin-top: 3px; color: #aebfd0; font-size: 12px; }
.login-content { padding: 30px; }
.login-content h1 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.login-form { display: grid; gap: 10px; margin-top: 25px; }
.login-form label { font-size: 12px; font-weight: 650; }
.login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 8px;
    font: inherit;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--text);
}
.login-form input:focus-visible, .login-button:focus-visible, .logout-button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}
.login-button {
    padding: 13px;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    cursor: pointer;
}
.login-button:hover { background: var(--sidebar-soft); }
.login-form :disabled, .logout-button:disabled { opacity: .65; cursor: wait; }
.auth-error, .dashboard-message { color: var(--danger); font-size: 13px; line-height: 1.5; }
.password-change-user, .password-guidance { color: var(--muted); font-size: 12px; line-height: 1.5; }
.password-change-user { margin: 12px 0 0; font-weight: 700; }
.password-guidance { margin: 0; }
.secondary-auth-action { margin-top: 12px; padding: 4px 0; border: 0; background: transparent; color: var(--primary); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.secondary-auth-action:hover { text-decoration: underline; }
.secondary-auth-action:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.auth-error { margin: 0; }
.auth-error:empty, .dashboard-message:empty { display: none; }

@page {
    size: Letter portrait;
    margin: 0.4in;
}

@media print {
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    html, body { width: auto; min-width: 0; background: #fff; color: #111; }
    body.print-summary #progress-view,
    body.print-progress #summary-view,
    #population-view,
    #data-entry-view,
    #administration-view,
    #help-view,
    #login-screen,
    #password-change-screen,
    .sidebar,
    .page-actions,
    .dashboard-message,
    .filter-panel,
    .map-controls,
    .map-calculation-button,
    .info-button,
    .info-backdrop,
    .calculation-info,
    .map-hover-tooltip { display: none !important; }
    .regional-matrix-floating-scrollbar { display: none !important; }
    #dashboard-screen { display: block !important; min-height: 0; }
    .main-content { display: block; width: 100%; max-width: none; padding: 0; }
    .page-header { margin-bottom: 3mm; padding-bottom: 2mm; border-bottom: 1px solid var(--border); }
    .page-header h1 { font-size: 22pt; }
    .page-description { margin-bottom: 0; }
    .print-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5mm 4mm; margin: 0 0 3mm; padding: 2.5mm 3mm; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); }
    .print-context div { min-width: 0; font-size: 9pt; line-height: 1.35; }
    .print-context strong { display: block; margin-bottom: .5mm; color: var(--muted); font-size: 7.5pt; text-transform: uppercase; letter-spacing: .04em; }
    .summary-grid, .requirements-grid { break-inside: avoid; page-break-inside: avoid; }
    .analytics-grid, .map-panel, .map-layout, .indicator-panel, .progress-panel,
    .panel { break-inside: auto; page-break-inside: auto; }
    .metric-card, .requirement-card, .map-region-details, .regional-ranking,
    .interpretation-summary, .map-legend, .map-unknown-data,
    .trend-panel, .availability-panel { break-inside: avoid; page-break-inside: avoid; }
    .map-panel-header, .indicator-panel > .panel-header, .progress-panel > .panel-header {
        break-after: avoid; page-break-after: avoid;
    }
    .summary-grid, .analytics-grid, .requirements-grid, .panel, .map-panel { margin-bottom: 3mm; }
    .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .analytics-grid { grid-template-columns: 1fr; }
    .requirements-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body.print-progress .progress-heading { margin-bottom: 2mm; }
    body.print-progress .requirements-grid {
        gap: 2mm;
        margin-bottom: 2mm;
    }
    body.print-progress .requirement-card {
        min-height: 0;
        padding: 2.5mm 3mm;
        border-top-width: 2px;
    }
    body.print-progress .requirement-card span { font-size: 8pt; }
    body.print-progress .requirement-card strong {
        margin: 1mm 0 .5mm;
        font-size: 15pt;
        line-height: 1.1;
    }
    body.print-progress .requirement-card small {
        font-size: 8pt;
        line-height: 1.25;
    }
    body.print-summary .disease-heading { margin-bottom: 2mm; }
    body.print-summary .summary-grid {
        gap: 2mm;
        margin-bottom: 2mm;
    }
    body.print-summary .metric-card {
        min-height: 0;
        padding: 3mm 3.5mm;
    }
    body.print-summary .metric-label {
        min-height: 0;
        margin: 1mm 0 1.5mm;
        font-size: 8.5pt;
    }
    body.print-summary .metric-value { font-size: 18pt; }
    body.print-summary .metric-footnote {
        margin-top: 1.5mm;
        font-size: 8pt;
    }
    body.print-summary .analytics-grid {
        grid-template-columns: minmax(0, 1.6fr) minmax(2.2in, .8fr);
        gap: 3mm;
        align-items: start;
    }
    body.print-summary .trend-panel,
    body.print-summary .availability-panel { padding: 3mm; }
    body.print-summary .trend-panel .panel-header,
    body.print-summary .availability-panel .panel-header { margin-bottom: 2mm; }
    body.print-summary .compact-select { display: none !important; }
    body.print-summary .trend-svg { height: 2.45in; }
    body.print-summary .availability-summary { padding: 1mm 0 2mm; }
    body.print-summary .availability-ring {
        width: 24mm;
        height: 24mm;
    }
    body.print-summary .availability-ring::after {
        width: 17mm;
        height: 17mm;
    }
    body.print-summary .status-list { gap: 1.5mm; }
    body.print-summary .status-row { padding: 1.5mm 2mm; }
    .disease-heading, .progress-heading { margin-bottom: 3mm; break-after: avoid; page-break-after: avoid; }
    .panel-header { padding-top: 3mm; padding-bottom: 2mm; }
    table { width: 100%; break-inside: auto; page-break-inside: auto; }
    thead { display: table-header-group; }
    tr, th, td { break-inside: avoid; page-break-inside: avoid; }
    .table-wrapper { overflow: visible; }
    .chart-container, .availability-content, .guyana-map, .map-region-details { min-height: 0; }
    .guyana-map { height: auto; }
    .guyana-map svg { width: auto; max-width: 100%; height: auto; max-height: 5.7in; }
    .map-layout { grid-template-columns: 1fr; align-items: start; gap: 3mm; padding: 0 3mm 3mm; }
    .map-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    body.print-progress .map-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(2.35in, .8fr);
        align-items: start;
        gap: 3mm;
    }
    body.print-progress .map-layout > div:first-child { display: contents; }
    body.print-progress .guyana-map {
        grid-column: 1;
        grid-row: 1;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    body.print-progress .guyana-map svg { max-height: 4in; }
    body.print-progress .map-region-label {
        font-size: 14px;
        stroke-width: 3px;
    }
    body.print-progress .map-region-label-compact { font-size: 11px; }
    body.print-progress .map-side-column {
        grid-column: 2;
        grid-row: 1;
        grid-template-columns: 1fr;
        gap: 2mm;
        margin-top: 0;
    }
    body.print-progress .map-legend {
        grid-column: 1 / -1;
        grid-row: 2;
        gap: 1.5mm 3mm;
        padding: 2mm 0 0;
        break-after: avoid;
        page-break-after: avoid;
    }
    body.print-progress .map-unknown-data {
        margin: 0 3mm 2mm;
        padding: 2mm 3mm;
        break-before: avoid;
        page-break-before: avoid;
    }
    body.print-summary .spread-map-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(2.35in, .8fr);
        align-items: start;
        gap: 3mm;
    }
    body.print-summary .spread-map-layout > div:first-child { display: contents; }
    body.print-summary .guyana-map {
        grid-column: 1;
        grid-row: 1;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    body.print-summary .guyana-map svg { max-height: 4in; }
    body.print-summary .map-region-label {
        font-size: 14px;
        stroke-width: 3px;
    }
    body.print-summary .map-region-label-compact { font-size: 11px; }
    body.print-summary .map-side-column {
        grid-column: 2;
        grid-row: 1;
        grid-template-columns: 1fr;
        gap: 2mm;
    }
    body.print-summary .map-region-details,
    body.print-summary .regional-ranking {
        min-height: 0;
        padding: 2.5mm;
    }
    body.print-summary .map-region-details h4 { margin-bottom: 2mm; }
    body.print-summary .map-region-details p {
        margin: 1.5mm 0;
        font-size: 8.5pt;
        line-height: 1.35;
    }
    body.print-summary #regional-ranking-list { gap: .5mm; }
    body.print-summary .ranking-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 2mm;
        padding: 1mm 1.5mm;
    }
    body.print-summary .map-legend {
        grid-column: 1 / -1;
        grid-row: 2;
        gap: 1.5mm 3mm;
        padding: 2mm 0 0;
    }
    body.print-summary .map-unknown-data {
        margin: 0 3mm 2mm;
        padding: 2mm 3mm;
    }
    body.print-summary .indicator-panel,
    body.print-summary .indicator-panel .table-wrapper,
    body.print-summary .indicator-table {
        break-inside: auto;
        page-break-inside: auto;
    }
    body.print-summary .indicator-panel.all-diseases-history {
        break-before: page;
        page-break-before: always;
    }
    body.print-summary .all-diseases-matrix {
        min-width: 0;
        table-layout: fixed;
        font-size: 5.8pt;
    }
    body.print-summary .all-diseases-matrix th,
    body.print-summary .all-diseases-matrix td {
        position: static;
        min-width: 0;
        max-width: none;
        padding: 1mm .6mm;
        white-space: normal;
    }
    body.print-summary .all-diseases-matrix th:first-child,
    body.print-summary .all-diseases-matrix td:first-child { width: 12%; }
    body.print-summary .all-diseases-matrix th:nth-child(2),
    body.print-summary .all-diseases-matrix td:nth-child(2) { width: 24%; }
    body.print-summary .all-diseases-matrix .matrix-partial-marker { font-size: 5pt; }
    body.print-progress .progress-panel,
    body.print-progress .progress-panel .table-wrapper,
    body.print-progress .progress-table {
        break-inside: auto;
        page-break-inside: auto;
    }
    .map-unknown-data { margin: 0 3mm 3mm; }
    .panel, .metric-card, .requirement-card { box-shadow: none; }
    a { color: inherit; text-decoration: none; }
}

@media (max-width: 600px) {
    .login-content, .login-brand { padding: 24px; }
    .sidebar-footer { display: flex; }
    .help-introduction, .help-topic-content { padding: 16px; }
    .help-topic summary { padding: 15px 16px; }
    .help-example-grid { grid-template-columns: 1fr; }
}

.coverage-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.coverage-regions .region-row { grid-template-columns: minmax(125px, 270px) minmax(60px, 1fr) 90px; padding: 5px 0; }
.coverage-regions .region-name { white-space: normal; overflow: visible; line-height: 1.4; }
@media (max-width: 600px) {
    .coverage-regions .region-row { grid-template-columns: minmax(100px, 1.5fr) minmax(35px, 1fr) 80px; gap: 8px; }
}
