/*
 * Sri Sathya Sai Rehabilitation Programme: the design layer on top of Bootstrap 5, shared with the medical camp app.
 * Bootstrap does the layout and components; this file only sets the look (tokens, glass
 * surfaces, pipeline, ticket) and the print layout for tickets.
 */

:root {
    color-scheme: light;
    /* the brand colour, saffron, the same on every page; desks show their own colour only in icons */
    --camp-primary: #e8700a;
    --camp-primary-strong: #b45309;
    --camp-primary-rgb: 232, 112, 10;
    --camp-primary-soft: #fff1e0;
    --camp-violet: #f59e0b; /* second colour of gradients */
    --camp-accent: #0d9488;
    --camp-accent-soft: #ccfbf1;
    --camp-ink: #1e1b4b;
    --camp-muted: #64748b;
    --camp-line: rgba(30, 27, 75, 0.1);
    --camp-glass: rgba(255, 255, 255, 0.74);
    --camp-glass-border: rgba(255, 255, 255, 0.7);
    --camp-radius: 1.25rem;
    --camp-radius-sm: 0.85rem;
    --camp-shadow: 0 18px 48px -20px rgba(49, 46, 129, 0.35);
    --camp-shadow-soft: 0 6px 20px -10px rgba(49, 46, 129, 0.25);
    --camp-touch: 3.25rem;

    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
        "Noto Sans Tamil", "Nirmala UI", "Tamil Sangam MN", sans-serif;
    --bs-body-color: var(--camp-ink);
    --bs-body-bg: #ffffff;
    --bs-primary: var(--camp-primary);
    --bs-primary-rgb: var(--camp-primary-rgb);
    --bs-link-color: var(--camp-primary-strong);
    --bs-link-color-rgb: 180, 83, 9;
    --bs-border-radius: var(--camp-radius-sm);
    --bs-border-radius-lg: var(--camp-radius-sm);
    --bs-focus-ring-color: rgba(var(--camp-primary-rgb), 0.25);
}

/* ---------- Page and backdrop ---------- */

.camp-body {
    min-height: 100vh;
    background: var(--bs-body-bg);
    -webkit-font-smoothing: antialiased;
}

.camp-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(60rem 40rem at 10% -10%, var(--camp-primary-soft) 0%, transparent 60%),
        radial-gradient(50rem 40rem at 110% 10%, #ccfbf1 0%, transparent 55%),
        radial-gradient(50rem 50rem at 50% 120%, #fff7ed 0%, transparent 60%),
        var(--bs-body-bg);
}

.camp-backdrop::before,
.camp-backdrop::after {
    content: "";
    position: absolute;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
    animation: camp-drift 22s ease-in-out infinite alternate;
}

.camp-backdrop::before {
    top: 8%;
    left: -6rem;
    background: var(--camp-violet);
}

.camp-backdrop::after {
    right: -8rem;
    bottom: 4%;
    background: #5eead4;
    animation-delay: -11s;
}

@keyframes camp-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(4rem, 3rem, 0) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
    .camp-backdrop::before,
    .camp-backdrop::after,
    .camp-step--now .camp-step__dot {
        animation: none;
    }
}

.camp-main {
    padding-top: 1.25rem;
    padding-bottom: 3rem;
}

/* ---------- Glass surfaces ---------- */

.camp-glass {
    background: var(--camp-glass);
    border: 1px solid var(--camp-glass-border);
    border-radius: var(--camp-radius);
    box-shadow: var(--camp-shadow);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
}

.camp-card {
    padding: 1.25rem;
}

@media (min-width: 576px) {
    .camp-card {
        padding: 1.75rem;
    }
}

.camp-card__title {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.camp-card__title > .bi {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    color: var(--tone, var(--camp-primary));
    font-size: 1rem;
    background: var(--tone-soft, var(--camp-primary-soft));
}

/* ---------- Top bar ---------- */

.camp-topbar {
    background: rgba(255, 255, 255, 0.65);
    border-bottom: 1px solid var(--camp-glass-border);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.camp-brand {
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
    color: var(--camp-ink);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.camp-brand__logo {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    color: #fff;
    background: linear-gradient(135deg, var(--camp-primary), var(--camp-violet));
    box-shadow: var(--camp-shadow-soft);
}

.camp-chip {
    gap: 0.4rem;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    color: var(--camp-muted);
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--camp-line);
}

.camp-avatar {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: var(--camp-primary-strong);
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--camp-primary-soft);
}

/* ---------- Headings ---------- */

/* every page opens the same way: label, title, one line on what it is for; actions on the right */
.camp-desk-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.camp-desk-head__text {
    flex: 1 1 20rem;
    min-width: 0;
}

.camp-desk-head__lead {
    max-width: 46rem;
    margin: 0.4rem 0 0;
    color: var(--camp-muted);
}

.camp-desk-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.camp-title {
    margin: 0;
    font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ---------- Buttons ---------- */

.camp-btn-cta {
    min-height: var(--camp-touch);
    border: 0;
    border-radius: 999px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--camp-primary), var(--camp-violet));
    box-shadow: 0 12px 24px -12px rgba(var(--camp-primary-rgb), 0.8);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.camp-btn-cta:hover,
.camp-btn-cta:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px -12px rgba(var(--camp-primary-rgb), 0.9);
}

.camp-btn-ghost {
    min-height: 2.25rem;
    color: var(--camp-primary-strong);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--camp-line);
}

.camp-btn-ghost:hover {
    color: var(--camp-primary-strong);
    background: #fff;
    border-color: rgba(var(--camp-primary-rgb), 0.35);
}

.btn-lg.camp-btn-ghost {
    min-height: var(--camp-touch);
    border-radius: 999px;
}

/* ---------- Pipeline ---------- */

.camp-pipeline {
    margin-bottom: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.camp-pipeline::-webkit-scrollbar {
    display: none;
}

.camp-pipeline__list {
    display: flex;
    min-width: max-content;
    margin: 0;
    padding: 0.85rem 1rem;
    list-style: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--camp-glass-border);
}

.camp-step {
    position: relative;
    display: flex;
    gap: 0.55rem;
    align-items: center;
    padding-right: 2.25rem;
    color: var(--camp-muted);
}

.camp-step:last-child {
    padding-right: 0.25rem;
}

.camp-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0.5rem;
    width: 1.25rem;
    border-top: 2px solid var(--camp-line);
}

.camp-step__dot {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--camp-line);
}

.camp-step__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.camp-step__name {
    font-size: 0.9rem;
    font-weight: 600;
}

.camp-step__badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.camp-step--done {
    color: var(--tone, var(--camp-accent));
}

.camp-step--done .camp-step__dot {
    color: #fff;
    background: var(--tone, var(--camp-accent));
    border-color: var(--tone, var(--camp-accent));
}

.camp-step--done:not(:last-child)::after {
    border-top-color: var(--tone, var(--camp-accent));
}

.camp-step--now {
    color: var(--tone, var(--camp-primary-strong));
}

.camp-step--now .camp-step__dot {
    color: #fff;
    background: linear-gradient(135deg, var(--tone, var(--camp-primary)), var(--tone-2, var(--camp-violet)));
    border-color: transparent;
    animation: camp-pulse 2.4s ease-out infinite;
}

@keyframes camp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--camp-primary-rgb), 0.45); }
    70% { box-shadow: 0 0 0 0.6rem rgba(var(--camp-primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--camp-primary-rgb), 0); }
}

.camp-step--next {
    color: var(--camp-ink);
}

.camp-step--next .camp-step__dot {
    color: var(--tone, var(--camp-primary-strong));
    border: 2px dashed var(--tone, rgba(var(--camp-primary-rgb), 0.6));
}

.camp-step--optional .camp-step__dot {
    border-style: dashed;
}

/* ---------- Desk guide ---------- */

.camp-guide {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
}

.camp-guide__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.9rem;
    color: var(--camp-accent);
    font-size: 1.25rem;
    background: var(--camp-accent-soft);
}

.camp-guide__heading {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.camp-guide__steps {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.camp-guide__step {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
    color: #334155;
}

.camp-guide__number {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    color: var(--camp-primary-strong);
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--camp-primary-soft);
}

/* ---------- Forms ---------- */

.form-floating > .form-control {
    border-color: var(--camp-line);
    background-color: rgba(255, 255, 255, 0.9);
}

.form-floating > .form-control:focus {
    border-color: rgba(var(--camp-primary-rgb), 0.6);
    box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color);
}

.form-floating > label {
    color: var(--camp-muted);
}

.camp-legend {
    margin-bottom: 0.5rem;
    color: var(--camp-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.camp-segment {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.camp-segment__option {
    min-height: var(--camp-touch);
    display: grid;
    place-items: center;
    border-radius: var(--camp-radius-sm);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--camp-line);
}

.camp-segment__option:hover {
    border-color: rgba(var(--camp-primary-rgb), 0.45);
}

.btn-check:checked + .camp-segment__option {
    color: #fff;
    background: linear-gradient(135deg, var(--camp-primary), var(--camp-violet));
    border-color: transparent;
    box-shadow: var(--camp-shadow-soft);
}

.btn-check:focus-visible + .camp-segment__option {
    box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color);
}

.camp-segment.is-invalid .camp-segment__option {
    border-color: var(--bs-form-invalid-border-color);
}

/* ---------- Alerts ---------- */

.camp-alerts .alert {
    margin-bottom: 0;
    border: 0;
    border-radius: var(--camp-radius-sm);
    box-shadow: var(--camp-shadow-soft);
}

/* ---------- Success + ticket ---------- */

.camp-success {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.camp-success__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    background: var(--camp-accent);
    box-shadow: 0 10px 24px -10px var(--camp-accent);
}

.camp-success__label {
    margin: 0;
    color: var(--camp-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.camp-success__name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.camp-ticket {
    position: relative;
    max-width: 22rem;
    margin: 0 auto;
    overflow: hidden;
    color: #0f172a;
    background: #fff;
    border-radius: 1.1rem;
    box-shadow: 0 24px 50px -24px rgba(15, 23, 42, 0.45);
}

.camp-ticket__head {
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 1.1rem;
    color: var(--camp-muted);
    font-size: 0.8rem;
}

.camp-ticket__brand {
    color: var(--camp-ink);
    font-weight: 700;
}

.camp-ticket__go {
    display: flex;
    flex-direction: column;
    padding: 0.9rem 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--camp-primary), var(--camp-violet));
}

.camp-ticket__go-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
}

.camp-ticket__station {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.camp-ticket__body {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem;
}

.camp-ticket__name {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.camp-ticket__meta {
    margin-bottom: 0.6rem;
    color: var(--camp-muted);
}

.camp-ticket__code-label {
    color: var(--camp-muted);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.camp-ticket__code,
.camp-mono {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    letter-spacing: 0.12em;
}

.camp-ticket__code {
    font-size: 1.35rem;
    font-weight: 700;
}

.camp-ticket__qr {
    flex: none;
    width: 7rem;
    height: 7rem;
}

.camp-ticket__tear {
    position: relative;
    height: 1.25rem;
    margin: 0 0.75rem;
    border-top: 2px dashed var(--camp-line);
}

.camp-ticket__tear::before,
.camp-ticket__tear::after {
    content: "";
    position: absolute;
    top: -0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--bs-body-bg);
}

.camp-ticket__tear::before {
    left: -1.6rem;
}

.camp-ticket__tear::after {
    right: -1.6rem;
}

.camp-ticket__foot {
    padding: 0 1.1rem 1rem;
    color: var(--camp-muted);
    font-size: 0.8rem;
    text-align: center;
}

.camp-ticket-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (min-width: 576px) {
    .camp-ticket-actions {
        grid-template-columns: 1fr 1.4fr;
    }
}

/* ---------- Today list ---------- */

.camp-count {
    color: var(--camp-primary-strong);
    background: var(--camp-primary-soft);
}

.camp-today__row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--camp-line);
}

.camp-today__row:last-child {
    border-bottom: 0;
}

.camp-today__time {
    flex: none;
    width: 4.25rem;
    color: var(--camp-muted);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.camp-today__who {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.camp-today__name {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.camp-today__meta {
    color: var(--camp-muted);
    font-size: 0.8rem;
}

.camp-empty {
    padding: 1.5rem 0.5rem;
    color: var(--camp-muted);
    text-align: center;
}

.camp-empty .bi {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--camp-violet);
    font-size: 2rem;
}

.camp-empty .btn .bi { /* button icons stay button-sized */
    display: inline;
    margin: 0;
    color: inherit;
    font-size: inherit;
}

/* ---------- Login ---------- */

.camp-login {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 9rem);
}

.camp-login__card {
    width: 100%;
    max-width: 26rem;
    padding: 2rem 1.5rem;
}

@media (min-width: 576px) {
    .camp-login__card {
        padding: 2.5rem;
    }
}

.camp-login__badge {
    display: inline-grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.1rem;
    color: #fff;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--camp-primary), var(--camp-violet));
    box-shadow: var(--camp-shadow-soft);
}

.camp-login__help {
    margin: 1.5rem 0 0;
    color: var(--camp-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* ---------- Printing: only the ticket or medicine slip, sized for an 80 mm slip (also fine on A4) ---------- */

@page {
    margin: 4mm;
}

@media print {
    /* a slip (ticket, medicine slip) prints alone; a whole page prints with html.camp-print-page */
    html:not(.camp-print-page) body * {
        visibility: hidden;
    }

    .camp-backdrop {
        display: none;
    }

    html:not(.camp-print-page) .camp-printable,
    html:not(.camp-print-page) .camp-printable * {
        visibility: visible;
    }

    html:not(.camp-print-page) .camp-printable {
        position: absolute;
        top: 0;
        left: 0;
        width: 72mm;
        max-width: none;
        box-shadow: none;
        border: 1px solid #000;
    }

    .camp-ticket__go {
        color: #000;
        background: none;
        border-top: 1px solid #000;
        border-bottom: 1px solid #000;
    }

    .camp-ticket__tear::before,
    .camp-ticket__tear::after {
        display: none;
    }
}

/* ---------- Desk chooser ---------- */

.camp-desk-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.camp-desk-card {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    color: var(--camp-ink);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.camp-desk-card:hover,
.camp-desk-card:focus-visible {
    color: var(--camp-ink);
    transform: translateY(-2px);
    box-shadow: 0 22px 44px -22px var(--tone, rgba(var(--camp-primary-rgb), 0.55));
}

.camp-desk-card.is-disabled {
    pointer-events: none;
    opacity: 0.6;
}

.camp-desk-card__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    color: #fff;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--tone, var(--camp-primary)), var(--tone-2, var(--camp-violet)));
    box-shadow: 0 10px 22px -12px var(--tone, var(--camp-primary));
}

.camp-desk-card.is-disabled .camp-desk-card__icon {
    color: var(--camp-muted);
    background: #e2e8f0;
}

.camp-desk-card__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.camp-desk-card__name {
    font-size: 1.1rem;
    font-weight: 700;
}

.camp-desk-card__help {
    color: var(--camp-muted);
    font-size: 0.875rem;
}

.camp-desk-card__soon {
    align-self: flex-start;
    margin-bottom: 0.3rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    color: var(--camp-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #f1f5f9;
}

.camp-desk-card__go {
    color: var(--camp-primary);
    font-size: 1.25rem;
}

.camp-desk-card.is-disabled .camp-desk-card__go {
    visibility: hidden;
}

/* ---------- Volunteers ---------- */

.camp-role-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}

.camp-role-option {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: var(--camp-radius-sm);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--camp-line);
}

.camp-role-option__name {
    font-weight: 600;
}

.camp-role-option__help {
    color: var(--camp-muted);
    font-size: 0.8rem;
}

.btn-check:checked + .camp-role-option {
    color: #fff;
    background: linear-gradient(135deg, var(--camp-primary), var(--camp-violet));
    border-color: transparent;
}

.btn-check:checked + .camp-role-option .camp-role-option__help {
    color: rgba(255, 255, 255, 0.85);
}

.btn-check:focus-visible + .camp-role-option {
    box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color);
}

.camp-role-grid.is-invalid .camp-role-option {
    border-color: var(--bs-form-invalid-border-color);
}

.camp-person {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--camp-line);
}

.camp-person:last-child {
    border-bottom: 0;
}

.camp-person__tick {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.85rem; /* level with the avatar's middle */
}

.camp-person__who {
    flex: 1;
    min-width: 0;
}

.camp-person__name {
    font-weight: 700;
}

.camp-person__username,
.camp-person__meta {
    color: var(--camp-muted);
    font-size: 0.8rem;
}

.camp-person__roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0.35rem 0;
}

.camp-role-badge {
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    color: var(--camp-primary-strong);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--camp-primary-soft);
}

.camp-person__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.camp-status {
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.camp-status--active {
    color: var(--camp-accent);
    background: var(--camp-accent-soft);
}

.camp-status--locked {
    color: #b45309;
    background: #fef3c7;
}

.camp-status--off {
    color: var(--camp-muted);
    background: #f1f5f9;
}

/* ---------- Setup ---------- */

.camp-login__card--wide {
    max-width: 34rem;
}

.camp-setup-steps {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
    color: #334155;
}

.camp-setup-link {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    font-weight: 600;
    text-decoration: none;
}

/* ---------- Activity log ---------- */

.camp-audit__subject,
.camp-audit__details,
.camp-audit__client {
    color: var(--camp-muted);
    font-size: 0.8rem;
}

.camp-audit__details {
    overflow-wrap: anywhere;
}

.camp-audit-action {
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.camp-audit-action--info {
    color: var(--camp-primary-strong);
    background: var(--camp-primary-soft);
}

.camp-audit-action--patient {
    color: var(--camp-accent);
    background: var(--camp-accent-soft);
}

.camp-audit-action--warn {
    color: #b45309;
    background: #fef3c7;
}

/* ---------- Language switch ---------- */

.camp-lang {
    display: inline-flex;
    padding: 0.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--camp-line);
}

.camp-lang__option {
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    color: var(--camp-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.camp-lang__option.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--camp-primary), var(--camp-violet));
}

/* Tamil script needs a little more height to stay readable */
:lang(ta) {
    line-height: 1.6;
}

.camp-ticket__station-other {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

.camp-ticket__foot-other {
    display: block;
    margin-top: 0.2rem;
}

.camp-login__badge--warn {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.camp-error-ref {
    margin: 0;
    color: var(--camp-muted);
}

/* ---------- Camp dashboard ---------- */

.camp-tiles {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
}

.camp-tile {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem;
}

.camp-tile__count {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.camp-tile__label {
    color: var(--camp-muted);
    font-size: 0.85rem;
}

.camp-tile:first-child .camp-tile__count {
    color: var(--camp-primary-strong);
}

.camp-ticket__place {
    display: block;
    color: var(--camp-muted);
    font-size: 0.72rem;
    font-weight: 500;
}

/* ---------- Triage ---------- */

.camp-token {
    display: inline-grid;
    flex: none;
    place-items: center;
    min-width: 3.5rem;
    height: 3.5rem;
    padding: 0 0.6rem;
    border-radius: 1rem;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--camp-primary), var(--camp-violet));
}

.camp-token--small {
    min-width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
}

.camp-patient-head {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.camp-queue-row {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 0.6rem 0.25rem;
    color: var(--camp-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--camp-line);
}

.camp-queue-row:hover {
    color: var(--camp-ink);
    background: rgba(255, 255, 255, 0.6);
}

.camp-desk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--camp-line);
}

.camp-red-flags {
    border: 0;
    border-radius: var(--camp-radius-sm);
}

.form-floating > .camp-textarea {
    height: 5.5rem;
}

@media (min-width: 576px) {
    .d-sm-inline-grid {
        display: inline-grid !important;
    }
}

/* keep the top bar on one line on the narrowest phones */
@media (max-width: 399.98px) {
    .camp-lang__option {
        padding: 0.2rem 0.45rem;
    }
}

/* ---------- Lab ---------- */

.camp-lab-test {
    display: grid;
    gap: 0.5rem 1rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--camp-line);
}

@media (min-width: 768px) {
    .camp-lab-test {
        grid-template-columns: 1fr 16rem;
    }
}

.camp-lab-test.is-ordered {
    margin: 0 -0.75rem;
    padding: 0.75rem;
    border-radius: var(--camp-radius-sm);
    background: rgba(var(--camp-primary-rgb), 0.06);
}

.camp-lab-test__name {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.5rem;
    align-items: baseline;
}

.camp-lab-test__ta,
.camp-lab-test__normal {
    color: var(--camp-muted);
    font-size: 0.8rem;
}

.camp-lab-test__normal {
    width: 100%;
}

.camp-result {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--camp-line);
}

.camp-result__test {
    flex: 1;
}

.camp-result__value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.camp-result.is-abnormal .camp-result__value {
    color: var(--bs-danger);
}

/* ---------- Doctor ---------- */

.camp-summary .camp-legend {
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.camp-vitals {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.2rem 0.75rem;
    margin: 0;
}

.camp-vitals dt {
    color: var(--camp-muted);
    font-weight: 500;
}

.camp-vitals dd {
    margin: 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.camp-history li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--camp-line);
}

.camp-rx {
    display: grid;
    gap: 0.5rem;
}

.camp-rx__row {
    display: grid;
    gap: 0.4rem;
    grid-template-columns: 1.5rem 1fr 5rem 2rem;
    align-items: center;
}

.camp-rx__days,
.camp-rx__food {
    grid-column: 2 / span 2;
}

@media (min-width: 768px) {
    .camp-rx__row {
        grid-template-columns: 1.5rem 1fr 5.5rem 4.5rem 9rem 2rem;
    }

    .camp-rx__days,
    .camp-rx__food {
        grid-column: auto;
    }
}

.camp-rx__number {
    color: var(--camp-muted);
    font-size: 0.8rem;
    text-align: center;
}

.camp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.camp-chip-option {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--camp-line);
}

.btn-check:checked + .camp-chip-option {
    color: #fff;
    background: linear-gradient(135deg, var(--camp-primary), var(--camp-violet));
    border-color: transparent;
}

.camp-doctor-actions {
    display: grid;
    gap: 0.6rem;
}

@media (min-width: 768px) {
    .camp-doctor-actions {
        grid-template-columns: 1.4fr 1fr;
    }
}

/* ---------- Medicine slip ---------- */

.camp-slip__who {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0 1.1rem 0.5rem;
}

.camp-slip__legend {
    margin: 0;
    padding: 0.4rem 1.1rem;
    color: var(--camp-muted);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-top: 1px dashed var(--camp-line);
}

.camp-slip__item {
    padding: 0.6rem 1.1rem;
    border-top: 1px dashed var(--camp-line);
}

.camp-slip__times {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin: 0.4rem 0;
}

.camp-slip__time {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    border-radius: 0.6rem;
    font-size: 1.15rem;
    background: #f1f5f9;
}

.camp-slip__time b.is-none {
    opacity: 0.35;
}

.camp-slip__how,
.camp-slip__note {
    color: var(--camp-muted);
    font-size: 0.85rem;
}

.camp-slip__note {
    padding: 0.6rem 1.1rem;
    border-top: 1px dashed var(--camp-line);
}

@media print {
    .camp-slip__time {
        border: 1px solid #000;
        background: none;
    }
}

/* ---------- Pharmacy ---------- */

.camp-dispense {
    display: grid;
    gap: 0.6rem 1rem;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--camp-line);
    grid-template-columns: 1fr 6rem;
}

.camp-dispense__picks {
    color: var(--camp-accent);
}

.camp-supply {
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.camp-supply--enough {
    color: var(--camp-accent);
    background: var(--camp-accent-soft);
}

.camp-supply--short {
    color: #b45309;
    background: #fef3c7;
}

.camp-supply--none,
.camp-supply--not_stocked {
    color: #b91c1c;
    background: #fee2e2;
}

/* a count that does not add up (start vs end): someone should look */
td.camp-difference {
    color: #b91c1c;
    background: #fee2e2;
    font-weight: 600;
}

/* ---------- Stock ---------- */

.camp-stock {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--camp-line);
}

.camp-stock__usable {
    font-variant-numeric: tabular-nums;
}

.camp-stock__batches {
    margin-top: 0.4rem;
}

.camp-stock__batch {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    align-items: center;
    padding: 0.25rem 0.5rem;
    color: var(--camp-muted);
    font-size: 0.85rem;
    border-radius: 0.5rem;
}

.camp-stock__batch.is-expiring {
    background: #fee2e2;
}

/* ---------- Stock report ---------- */

.camp-stats {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.camp-stat {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: var(--camp-accent-soft);
}

.camp-stat__value {
    font-size: 1.6rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.camp-stat__label {
    color: var(--camp-muted);
    font-size: 0.85rem;
}

.camp-report td,
.camp-report th {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.camp-report td:first-child {
    white-space: normal;
}

.camp-leftover {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--camp-line);
}

@media print {
    .camp-printable.camp-printable--page {
        width: 100%;
        border: none;
    }

    .camp-no-print {
        display: none !important;
    }
}

/* ---------- Follow-up ---------- */

.camp-followup {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--camp-line);
}

.camp-followup__who {
    flex: 1 1 16rem;
    min-width: 0;
}

.camp-reason {
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--camp-accent);
    background: var(--camp-accent-soft);
}

.camp-reason--sent_to_hospital {
    color: #b91c1c;
    background: #fee2e2;
}

.camp-reason--medicines_short,
.camp-reason--doctor_referred {
    color: #b45309;
    background: #fef3c7;
}

.camp-dial {
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

.camp-ask {
    padding: 0.5rem 0.75rem;
    border-left: 3px solid var(--camp-accent);
    border-radius: 0.5rem;
    background: var(--camp-accent-soft);
}

.camp-ask--danger {
    border-left-color: #b91c1c;
    background: #fee2e2;
}


/* ---------- Colours: every desk has its own, and so do the icons ----------
 * A tone sets --tone (main), --tone-2 (gradient end), --tone-soft (tile background),
 * --tone-strong (text on light backgrounds) and --tone-rgb (for see-through shades).
 * Desks get it as a class (Desk.Tone); card-title icons get it from their glyph, so a stock
 * card is amber and a lab card red on whichever page they appear. Blood is red, the heart pink.
 */
.camp-tone--blue,
.camp-card__title > .bi-person-vcard,
.camp-card__title > .bi-people,
.camp-card__title > .bi-person-plus,
.camp-card__title > .bi-pencil-square,
.camp-card__title > .bi-list-ol,
.camp-card__title > .bi-person-gear,
.camp-card__title > .bi-key {
    --tone: #2563eb;
    --tone-2: #60a5fa;
    --tone-soft: #dbeafe;
    --tone-strong: #1d4ed8;
    --tone-rgb: 37, 99, 235;
}

.camp-tone--pink,
.camp-card__title > .bi-heart-pulse,
.camp-card__title > .bi-activity {
    --tone: #db2777;
    --tone-2: #f472b6;
    --tone-soft: #fce7f3;
    --tone-strong: #be185d;
    --tone-rgb: 219, 39, 119;
}

.camp-tone--red,
.camp-card__title > .bi-droplet,
.camp-card__title > .bi-droplet-half,
.camp-card__title > .bi-eyedropper,
.camp-card__title > .bi-flag,
.camp-card__title > .bi-exclamation-triangle {
    --tone: #dc2626;
    --tone-2: #f87171;
    --tone-soft: #fee2e2;
    --tone-strong: #b91c1c;
    --tone-rgb: 220, 38, 38;
}

.camp-tone--teal,
.camp-card__title > .bi-clipboard2-pulse,
.camp-card__title > .bi-journal-medical,
.camp-card__title > .bi-journal-check {
    --tone: #0d9488;
    --tone-2: #2dd4bf;
    --tone-soft: #ccfbf1;
    --tone-strong: #0f766e;
    --tone-rgb: 13, 148, 136;
}

.camp-tone--green,
.camp-card__title > .bi-capsule,
.camp-card__title > .bi-bag-check,
.camp-card__title > .bi-check2-circle {
    --tone: #16a34a;
    --tone-2: #4ade80;
    --tone-soft: #dcfce7;
    --tone-strong: #15803d;
    --tone-rgb: 22, 163, 74;
}

.camp-tone--orange,
.camp-card__title > .bi-telephone,
.camp-card__title > .bi-telephone-outbound,
.camp-card__title > .bi-chat-square-text {
    --tone: #ea580c;
    --tone-2: #fb923c;
    --tone-soft: #ffedd5;
    --tone-strong: #c2410c;
    --tone-rgb: 234, 88, 12;
}

.camp-tone--amber,
.camp-card__title > .bi-box-seam,
.camp-card__title > .bi-boxes,
.camp-card__title > .bi-box-arrow-in-down,
.camp-card__title > .bi-truck,
.camp-card__title > .bi-sliders {
    --tone: #d97706;
    --tone-2: #fbbf24;
    --tone-soft: #fef3c7;
    --tone-strong: #b45309;
    --tone-rgb: 217, 119, 6;
}

.camp-tone--lime,
.camp-card__title > .bi-buildings,
.camp-card__title > .bi-send,
.camp-card__title > .bi-plus-square {
    --tone: #65a30d;
    --tone-2: #a3e635;
    --tone-soft: #ecfccb;
    --tone-strong: #4d7c0f;
    --tone-rgb: 101, 163, 13;
}

.camp-tone--cyan,
.camp-card__title > .bi-clipboard-data,
.camp-card__title > .bi-bar-chart {
    --tone: #0891b2;
    --tone-2: #22d3ee;
    --tone-soft: #cffafe;
    --tone-strong: #0e7490;
    --tone-rgb: 8, 145, 178;
}

.camp-tone--indigo,
.camp-card__title > .bi-speedometer2,
.camp-card__title > .bi-calendar-event,
.camp-card__title > .bi-calendar3 {
    --tone: #4f46e5;
    --tone-2: #818cf8;
    --tone-soft: #e0e7ff;
    --tone-strong: #4338ca;
    --tone-rgb: 79, 70, 229;
}

.camp-tone--sky {
    --tone: #0284c7;
    --tone-2: #38bdf8;
    --tone-soft: #e0f2fe;
    --tone-strong: #0369a1;
    --tone-rgb: 2, 132, 199;
}

.camp-tone--fuchsia,
.camp-card__title > .bi-shield-check,
.camp-card__title > .bi-funnel,
.camp-card__title > .bi-clipboard2-check,
.camp-card__title > .bi-file-earmark-text,
.camp-card__title > .bi-keyboard {
    --tone: #c026d3;
    --tone-2: #e879f9;
    --tone-soft: #fae8ff;
    --tone-strong: #a21caf;
    --tone-rgb: 192, 38, 211;
}

/* Bootstrap writes its blue into these directly, so they are pointed at the brand colour */
.btn-primary {
    --bs-btn-bg: var(--camp-primary);
    --bs-btn-border-color: var(--camp-primary);
    --bs-btn-hover-bg: var(--camp-primary-strong);
    --bs-btn-hover-border-color: var(--camp-primary-strong);
    --bs-btn-active-bg: var(--camp-primary-strong);
    --bs-btn-active-border-color: var(--camp-primary-strong);
    --bs-btn-disabled-bg: var(--camp-primary);
    --bs-btn-disabled-border-color: var(--camp-primary);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: rgba(var(--camp-primary-rgb), 0.55);
    box-shadow: 0 0 0 0.25rem rgba(var(--camp-primary-rgb), 0.2);
}

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

/* Tick boxes big enough for an older volunteer's thumb, with the words beside them still lined up */
.form-check:not(.form-switch) {
    min-height: 1.75rem;
    padding-left: 2.1em;
}

.form-check:not(.form-switch) .form-check-input {
    width: 1.4em;
    height: 1.4em;
    margin-top: 0.1em;
    margin-left: -2.1em;
}

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

/* a bright tile for an icon, in its tone */
.camp-icon {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    color: #fff;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--tone, var(--camp-primary)), var(--tone-2, var(--camp-violet)));
    box-shadow: 0 6px 14px -8px var(--tone, var(--camp-primary));
}

/* the page heading carries a thin bar of the desk's colour */
.camp-title {
    position: relative;
}

/* report numbers, each in its own colour */
.camp-stat:nth-child(4n + 1) { background: #dbeafe; }
.camp-stat:nth-child(4n + 2) { background: #dcfce7; }
.camp-stat:nth-child(4n + 3) { background: #ffedd5; }
.camp-stat:nth-child(4n + 4) { background: #cffafe; }

/* ---------- Layout with the desk menu ---------- */

.camp-shell__nav {
    padding-top: 1rem;
}

@media (min-width: 992px) {
    .camp-shell--with-nav {
        display: grid;
        gap: 1.75rem;
        grid-template-columns: 16rem minmax(0, 1fr);
        align-items: start;
    }

    .camp-shell--with-nav .camp-shell__nav {
        position: sticky;
        top: 4.25rem;
        max-height: calc(100vh - 4.5rem);
        padding-top: 1.25rem;
        overflow-y: auto;
    }
}

.camp-nav {
    display: flex;
    gap: 0.35rem;
    padding: 0.35rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    border: 1px solid var(--camp-glass-border);
    border-radius: 999px;
    background: var(--camp-glass);
    box-shadow: var(--camp-shadow-soft);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.camp-nav::-webkit-scrollbar {
    display: none;
}

.camp-nav__group {
    display: contents;
}

.camp-nav__heading {
    display: none;
}

.camp-nav__link {
    display: flex;
    flex: none;
    gap: 0.5rem;
    align-items: center;
    padding: 0.3rem 0.75rem 0.3rem 0.3rem;
    color: var(--camp-ink);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    border-radius: 999px;
    scroll-snap-align: start;
    transition: background 0.15s ease;
}

.camp-nav__link:hover {
    color: var(--camp-ink);
    background: rgba(255, 255, 255, 0.8);
}

.camp-nav__link.is-active {
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--camp-primary), var(--camp-shadow-soft);
}

.camp-nav__link .camp-icon {
    width: 1.85rem;
    height: 1.85rem;
}

.camp-nav__count {
    min-width: 1.5rem;
    padding: 0.05rem 0.45rem;
    color: #fff;
    font-size: 0.75rem;
    text-align: center;
    border-radius: 999px;
    background: #e11d48;
}

@media (min-width: 992px) {
    .camp-nav {
        flex-direction: column;
        gap: 0.15rem;
        padding: 0.75rem;
        overflow: visible;
        border-radius: var(--camp-radius);
    }

    .camp-nav__group {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }

    .camp-nav__group + .camp-nav__group {
        margin-top: 0.6rem;
    }

    .camp-nav__heading {
        display: block;
        margin: 0 0 0.2rem 0.5rem;
        color: var(--camp-muted);
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .camp-nav__link {
        padding: 0.4rem 0.6rem 0.4rem 0.4rem;
        border-radius: 0.85rem;
    }

    .camp-nav__name {
        flex: 1;
    }
}

/* the menu, like the rest of the screen, is not printed */
@media print {
    .camp-shell__nav {
        display: none;
    }
}

/* ---------- Activity log table ---------- */

.camp-audit-table th {
    color: var(--camp-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.camp-audit-table td {
    font-size: 0.85rem;
}

.camp-audit-table .camp-audit__when {
    color: var(--camp-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.camp-audit-table .camp-audit__actor {
    font-weight: 700;
}

/* ---------- Activity log: clickable rows and the full entry ---------- */

.camp-audit-table tr[data-camp-row] {
    cursor: pointer;
}

.camp-audit-table tr[data-camp-row]:hover > td {
    background: rgba(var(--camp-primary-rgb), 0.05);
}

.camp-facts {
    display: grid;
    gap: 0.5rem 1.5rem;
    grid-template-columns: minmax(8rem, max-content) 1fr;
    margin-bottom: 1.25rem;
}

.camp-facts dt {
    color: var(--camp-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.camp-facts dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.camp-facts__heading {
    margin-bottom: 0.75rem;
    color: var(--camp-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (max-width: 575.98px) {
    .camp-facts {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }

    .camp-facts dd {
        margin-bottom: 0.5rem;
    }
}

/* ---------- Keyboard ---------- */

.camp-kbd {
    display: inline-block;
    min-width: 1.4em;
    padding: 0.05rem 0.35rem;
    color: inherit;
    font-family: inherit;
    font-size: 0.7em;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    vertical-align: middle;
    border: 1px solid currentcolor;
    border-radius: 0.35rem;
    background: transparent;
    opacity: 0.6;
}

/* key hints only where there is a keyboard: wide screens with a mouse or trackpad */
@media (max-width: 991.98px), (hover: none) {
    .camp-kbd {
        display: none;
    }
}

/* a clear ring on whatever the keyboard is on */
:focus-visible {
    outline: 3px solid var(--camp-primary);
    outline-offset: 2px;
}

.camp-nav__link:focus-visible,
.camp-desk-card:focus-visible {
    outline: 3px solid var(--camp-primary);
    outline-offset: 2px;
}

.camp-main:focus {
    outline: none;
}

.camp-skip {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2000;
    padding: 0.5rem 1rem;
    color: #fff;
    border-radius: 999px;
    background: var(--camp-primary);
}

.camp-keys {
    width: min(32rem, calc(100vw - 2rem));
    padding: 1.5rem;
    color: var(--camp-ink);
    border: 0;
    border-radius: var(--camp-radius);
    box-shadow: var(--camp-shadow);
}

.camp-keys::backdrop {
    background: rgba(30, 27, 75, 0.35);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.camp-keys__list {
    display: grid;
    gap: 0.6rem 1rem;
    grid-template-columns: max-content 1fr;
    align-items: center;
}

.camp-keys__list dd {
    margin: 0;
}

.camp-keys .camp-kbd {
    display: inline-block;
    font-size: 0.85rem;
    opacity: 1;
}

/* ---------- Stores ---------- */

.camp-store-link {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.6rem 0.75rem;
    color: var(--camp-ink);
    text-decoration: none;
    border: 1px solid var(--camp-line);
    border-radius: var(--camp-radius-sm);
    background: rgba(255, 255, 255, 0.6);
}

.camp-store-link:hover {
    color: var(--camp-ink);
    background: #fff;
}

.camp-store-link.is-active {
    box-shadow: inset 0 0 0 2px var(--tone, #65a30d);
    background: #fff;
}

.camp-store-link__text {
    flex: 1;
    min-width: 0;
}

/* a filter whose fields depend on another choice: a column with nothing shown takes no room */
.camp-filter > :empty {
    display: none;
}

/* ---------- Brand: the organisation's logo and motto ---------- */

/* the logo is used exactly as supplied: only its height is set, so it is never stretched */
img.camp-brand__logo {
    display: block;
    width: auto;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: none;
    box-shadow: var(--camp-shadow-soft);
}

.camp-brand__text {
    flex-direction: column;
    gap: 0.25rem;
    line-height: 1.1;
}

/* the motto sits under the logo, the organisation unit under the app name */
.camp-brand__mark {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.camp-brand__motto {
    color: var(--camp-primary-strong);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
}

.camp-brand__unit {
    color: var(--camp-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.camp-login__logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: 6rem;
    margin: 0 auto;
    border-radius: 0.85rem;
    box-shadow: var(--camp-shadow-soft);
}

.camp-login__motto {
    margin: 0.5rem 0 0;
    color: var(--camp-primary-strong);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.camp-login__org {
    margin: 1rem 0 0;
    color: var(--camp-muted);
    font-size: 0.8rem;
    text-align: center;
}

/* ---------- Top bar buttons: icon and text centred both ways ---------- */

.camp-topbar .btn {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.camp-topbar .btn .bi {
    display: inline-flex;
    line-height: 1;
}

.camp-topbar .btn > span {
    margin: 0 !important;
}

/* ---------- Folding the desk menu down to icons (wide screens) ---------- */

.camp-nav__fold {
    display: none;
}

@media (min-width: 992px) {
    .camp-nav__fold {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 0.5rem;
        padding: 0.35rem 0.6rem;
        color: var(--camp-muted);
        font-size: 0.8rem;
        font-weight: 600;
        border: 0;
        border-radius: 0.65rem;
        background: transparent;
    }

    .camp-nav__fold:hover {
        color: var(--camp-ink);
        background: rgba(255, 255, 255, 0.8);
    }

    .camp-shell--with-nav {
        transition: grid-template-columns 0.2s ease;
    }

    .camp-shell--nav-folded {
        grid-template-columns: 4.25rem minmax(0, 1fr);
    }

    .camp-shell--nav-folded .camp-nav {
        align-items: center;
        padding: 0.5rem 0.35rem;
    }

    .camp-shell--nav-folded .camp-nav__fold {
        justify-content: center;
    }

    .camp-shell--nav-folded .camp-nav__fold .bi {
        transform: rotate(180deg);
    }

    .camp-shell--nav-folded .camp-nav__fold-text,
    .camp-shell--nav-folded .camp-nav__name {
        display: none;
    }

    /* groups stay apart: the heading becomes a short line */
    .camp-shell--nav-folded .camp-nav__heading {
        width: 1.75rem;
        height: 0;
        margin: 0.35rem auto;
        overflow: hidden;
        border-top: 2px solid var(--camp-line);
    }

    .camp-shell--nav-folded .camp-nav__link {
        position: relative;
        justify-content: center;
        padding: 0.35rem;
    }

    /* the waiting count sits on the icon's corner */
    .camp-shell--nav-folded .camp-nav__count {
        position: absolute;
        top: -0.15rem;
        right: -0.15rem;
        min-width: 1.15rem;
        padding: 0 0.3rem;
        font-size: 0.65rem;
        line-height: 1.15rem;
        box-shadow: 0 0 0 2px #fff;
    }
}


/* ---------- Plain, professional surfaces: white pages, white cards with a fine edge ---------- */

.camp-backdrop {
    display: none;
}

.camp-body {
    background: #fff;
}

.camp-topbar {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #e9ebf0;
}

.camp-glass {
    background: #fff;
    border: 1px solid #e9ebf0;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -16px rgba(16, 24, 40, 0.18);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.camp-btn-cta {
    box-shadow: 0 6px 16px -10px rgba(var(--camp-primary-rgb), 0.9);
}

.camp-btn-cta:hover,
.camp-btn-cta:focus-visible {
    box-shadow: 0 8px 18px -10px rgba(var(--camp-primary-rgb), 1);
}

.camp-nav {
    background: #fff;
    border: 1px solid #e9ebf0;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -16px rgba(16, 24, 40, 0.18);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* ---------- Every button: icon and text centred both ways ---------- */

.btn {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn > .bi {
    display: inline-flex;
    margin: 0 !important; /* the gap spaces icons; older markup still has me-1 / ms-1 */
    line-height: 1;
}

/* ---------- Where the patient goes next ---------- */

.camp-next-desk {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border: 1px dashed #e2e5ec;
    border-radius: var(--camp-radius-sm);
    background: #fafbfc;
}

.camp-next-desk__waiting {
    padding: 0.1rem 0.5rem;
    color: #fff;
    font-size: 0.75rem;
    border-radius: 999px;
    background: #e11d48;
}

/* how closely the follow-up team looks after a patient */
.camp-level {
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.camp-level--high {
    color: #fff;
    background: #dc2626;
}

.camp-level--medium {
    color: #92400e;
    background: #fef3c7;
}

.camp-level--low {
    color: #475569;
    background: #f1f5f9;
}

/* ---------- Doctor: rows that can be added and cleared ---------- */

.camp-row {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.camp-row__clear {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 2rem;
    height: 2rem;
    color: var(--camp-muted);
    border: 0;
    border-radius: 50%;
    background: transparent;
}

.camp-row__clear:hover {
    color: #b91c1c;
    background: #fee2e2;
}

/* lab test options: room between the lines */
.camp-chips {
    gap: 0.6rem 0.5rem;
    line-height: 1.6;
}

/* ---------- Beneficiaries: health and requests at a glance ---------- */

.camp-health {
    display: inline-block;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.camp-health--healthy {
    color: #166534;
    background: #dcfce7;
}

.camp-health--needs_attention {
    color: #92400e;
    background: #fef3c7;
}

.camp-health--unwell {
    color: #fff;
    background: #dc2626;
}

.camp-health--unknown {
    color: #475569;
    background: #f1f5f9;
}

.camp-family-chip {
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #f1f5f9;
}

.camp-step-chip {
    display: inline-block;
    margin: 0 0.25rem 0.25rem 0;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background: #f4f5f8;
}

.camp-request {
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f1f5f9;
}

.camp-request--requested {
    color: #92400e;
    background: #fef3c7;
}

.camp-request--accepted,
.camp-request--sent {
    color: #1d4ed8;
    background: #dbeafe;
}

.camp-request--delivered {
    color: #166534;
    background: #dcfce7;
}

.camp-card__title > .bi-person-lines-fill,
.camp-tone--violet {
    --tone: #7c3aed;
    --tone-2: #a78bfa;
    --tone-soft: #ede9fe;
    --tone-strong: #6d28d9;
    --tone-rgb: 124, 58, 237;
}

.camp-card__title > .bi-bag-plus,
.camp-tone--slate {
    --tone: #475569;
    --tone-2: #94a3b8;
    --tone-soft: #f1f5f9;
    --tone-strong: #334155;
    --tone-rgb: 71, 85, 105;
}

/* ---------- Tabs and request rows ---------- */

.camp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.camp-tab {
    padding: 0.4rem 0.9rem;
    color: var(--camp-ink);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e9ebf0;
    border-radius: 999px;
    background: #fff;
}

.camp-tab.is-active {
    color: #fff;
    border-color: var(--camp-primary);
    background: var(--camp-primary);
}

.camp-request-row {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--camp-line);
}

.camp-request-row:last-child {
    border-bottom: 0;
}

.camp-family-health {
    padding: 0.6rem 0;
    border-top: 1px solid var(--camp-line);
}

/* ---------- Medicines and quantities: a clear fixed-width face, so 1-0-1 and 30 line up ---------- */

.camp-med {
    font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.94em;
    font-weight: 500;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

/* long desk names never push the count or the key number out of the menu */
@media (min-width: 992px) {
    .camp-nav__name {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .camp-nav__count,
    .camp-nav__link .camp-icon {
        flex: none;
    }
}

/* a green "+" for adding */
.camp-plus {
    color: #16a34a;
    font-weight: 700;
    -webkit-text-stroke: 0.6px #16a34a;
}

/* health answers wear a light tint of their severity; chosen, the tint deepens */
.camp-segment__option--healthy {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.camp-segment__option--needs_attention {
    background: #fffbeb;
    border-color: #fde68a;
}

.camp-segment__option--unwell {
    background: #fef2f2;
    border-color: #fecaca;
}

.btn-check:checked + .camp-segment__option--healthy {
    color: #fff;
    border-color: #16a34a;
    background: #16a34a;
}

.btn-check:checked + .camp-segment__option--needs_attention {
    color: #fff;
    border-color: #d97706;
    background: #d97706;
}

.btn-check:checked + .camp-segment__option--unwell {
    color: #fff;
    border-color: #dc2626;
    background: #dc2626;
}

/* ---------- A visit, at a glance ---------- */

.camp-visit__head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eef0f4;
}

.camp-visit__date {
    font-weight: 700;
}

.camp-visit__place {
    color: var(--camp-muted);
}

.camp-visit__body {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .camp-visit__body {
        grid-template-columns: 12rem minmax(0, 1fr);
    }
}

.camp-badge {
    padding: 0.15rem 0.55rem;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    background: #f1f5f9;
}

.camp-badge--strong {
    color: #fff;
    background: #334155;
}

.camp-badge--teal {
    color: #0f766e;
    background: #ccfbf1;
}

/* where the visit went, top to bottom */
.camp-timeline {
    position: relative;
    margin: 0;
    padding: 0 0 0 1.1rem;
    list-style: none;
}

.camp-timeline::before {
    content: "";
    position: absolute;
    top: 0.4rem;
    bottom: 0.4rem;
    left: 0.3rem;
    border-left: 2px solid #e5e7eb;
}

.camp-timeline__step {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-bottom: 0.7rem;
}

.camp-timeline__step::before {
    content: "";
    position: absolute;
    top: 0.3rem;
    left: -1.05rem;
    width: 0.7rem;
    height: 0.7rem;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--camp-primary);
    box-shadow: 0 0 0 1px var(--camp-primary);
}

.camp-timeline__step:last-child::before {
    background: #fff;
}

.camp-timeline__time {
    color: var(--camp-muted);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.camp-timeline__what {
    font-size: 0.9rem;
    font-weight: 600;
}

.camp-timeline__by {
    color: var(--camp-muted);
    font-size: 0.75rem;
}

/* vitals as tiles */
.camp-vital {
    display: contents;
}

.camp-vitals-tiles .camp-vitals {
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
    gap: 0.5rem;
}

.camp-vitals-tiles .camp-vital {
    display: flex;
    flex-direction: column-reverse;
    padding: 0.5rem 0.65rem;
    border: 1px solid #eef0f4;
    border-radius: 0.75rem;
    background: #fafbfc;
}

.camp-vitals-tiles .camp-vital dt {
    font-size: 0.72rem;
}

.camp-vitals-tiles .camp-vital dd {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 1.05rem;
}

.camp-results {
    margin: 0;
    padding: 0;
    list-style: none;
}

.camp-results li.is-abnormal {
    color: #b91c1c;
}

.camp-visit__notes {
    margin: 0.25rem 0 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border-left: 3px solid #e5e7eb;
    background: #fafbfc;
}

/* medicines: name, dose, days, what was taken home */
.camp-rx-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.camp-rx-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.15rem 0.9rem;
    padding: 0.4rem 0;
    font-size: 0.88rem;
    border-bottom: 1px dashed #eef0f4;
}

.camp-rx-list__given {
    grid-column: 1 / -1;
    color: var(--camp-muted);
    font-size: 0.8rem;
}

.camp-rx-list__given.is-short {
    color: #b45309;
}



/* ---------- Rankings: one colour, thin bars, the number always written ---------- */

.camp-ranking {
    margin: 0;
    padding: 0;
    list-style: none;
}

.camp-ranking__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.15rem 0.75rem;
    padding: 0.35rem 0;
}

.camp-ranking__name {
    overflow: hidden;
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.camp-ranking__count {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.camp-ranking__track {
    grid-column: 1 / -1;
    height: 8px;
    border-radius: 999px;
    background: #f1f2f6;
}

.camp-ranking__bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: var(--camp-primary);
    transition: width 0.3s ease;
}

.camp-ranking__row:hover .camp-ranking__bar {
    background: var(--camp-primary-strong);
}

.camp-card__title > .bi-graph-up,
.camp-tone--emerald {
    --tone: #059669;
    --tone-2: #34d399;
    --tone-soft: #d1fae5;
    --tone-strong: #047857;
    --tone-rgb: 5, 150, 105;
}

.camp-card__title > .bi-calendar-event,
.camp-tone--rose {
    --tone: #e11d48;
    --tone-2: #fb7185;
    --tone-soft: #ffe4e6;
    --tone-strong: #be123c;
    --tone-rgb: 225, 29, 72;
}

/* the camp laptop's link to the cloud, and the cloud's register of laptops */
.camp-card__title > .bi-cloud-arrow-up,
.camp-card__title > .bi-cloud-arrow-down,
.camp-card__title > .bi-cloud-check,
.camp-tone--navy {
    --tone: #1e40af;
    --tone-2: #3b82f6;
    --tone-soft: #dbeafe;
    --tone-strong: #1e3a8a;
    --tone-rgb: 30, 64, 175;
}

.camp-card__title > .bi-laptop,
.camp-card__title > .bi-eraser,
.camp-tone--stone {
    --tone: #57534e;
    --tone-2: #a8a29e;
    --tone-soft: #f5f5f4;
    --tone-strong: #44403c;
    --tone-rgb: 87, 83, 78;
}

.camp-card__title > .bi-intersect,
.camp-tone--plum {
    --tone: #9d174d;
    --tone-2: #f472b6;
    --tone-soft: #fce7f3;
    --tone-strong: #831843;
    --tone-rgb: 157, 23, 77;
}

.camp-card__title > .bi-card-checklist,
.camp-tone--olive {
    --tone: #4d7c0f;
    --tone-2: #a3e635;
    --tone-soft: #f7fee7;
    --tone-strong: #3f6212;
    --tone-rgb: 77, 124, 15;
}

/* where a camp stands with the cloud (on .camp-status pills) */
.camp-status--sent {
    color: #166534;
    background: #dcfce7;
}

.camp-status--not_sent,
.camp-status--changed {
    color: #b45309;
    background: #fef3c7;
}

.camp-status--on_laptop {
    color: #1e40af;
    background: #dbeafe;
}

/* a laptop key, shown once: big, spaced, easy to read aloud */
.camp-laptop-key {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    word-break: break-all;
    user-select: all;
}

/* ---------- which camp a desk works for ---------- */

.camp-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid var(--camp-line);
    border-left: 4px solid var(--camp-primary);
    border-radius: var(--camp-radius-sm);
}

.camp-banner__icon {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    flex: none;
    border-radius: 0.625rem;
    color: #e11d48;
    background: #ffe4e6;
}

.camp-banner__text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.5rem;
    min-width: 0;
    margin-right: auto;
}

.camp-banner__label {
    width: 100%;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
}

.camp-banner__place {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.camp-banner__where {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
}

.camp-banner__token {
    flex: none;
    padding: 0.25rem 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 999px;
    background: var(--bs-tertiary-bg);
}

/* ---------- camps planned for today, on the "no camp" notice ---------- */

.camp-planned {
    max-width: 32rem;
    margin: 0 auto;
    color: var(--camp-ink);
}

.camp-planned__label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.camp-planned__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--camp-line);
    border-radius: var(--camp-radius-sm);
    background: #fff;
}

.camp-status--planned {
    color: var(--camp-primary-strong);
    background: var(--camp-primary-soft);
}

.camp-status--open {
    color: var(--camp-accent);
    background: var(--camp-accent-soft);
}

.camp-status--closed,
.camp-status--cancelled {
    color: var(--camp-muted);
    background: #f1f5f9;
}

.camp-status--missed {
    color: #b91c1c;
    background: #fee2e2;
}

.camp-pre-line {
    white-space: pre-line;
}

/* ---------- home page: desks in the same groups as the desk menu ---------- */

.camp-desk-group {
    margin-top: 1.5rem;
}

.camp-desk-group + .camp-desk-group {
    margin-top: 1.75rem;
}

.camp-desk-group__heading {
    margin-bottom: 0.75rem;
    color: var(--camp-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- reports ---------- */

.camp-report-menu {
    display: grid;
    gap: 0.25rem;
    padding: 0.5rem;
}

.camp-report-menu__item {
    display: grid;
    gap: 0.1rem;
    padding: 0.55rem 0.75rem;
    color: var(--camp-ink);
    text-decoration: none;
    border-radius: var(--camp-radius-sm);
}

.camp-report-menu__item:hover {
    color: var(--camp-ink);
    background: var(--camp-primary-soft);
}

.camp-report-menu__item.is-active {
    background: var(--camp-primary-soft);
    box-shadow: inset 3px 0 0 var(--camp-primary);
}

.camp-report-menu__name {
    font-weight: 600;
}

.camp-report-menu__help {
    color: var(--camp-muted);
    font-size: 0.78rem;
    line-height: 1.3;
}

.camp-report-table + .camp-report-table {
    margin-top: 1.75rem;
}

/* grid items may shrink below their content, so wide tables scroll inside their card */
.camp-reports-main > * {
    min-width: 0;
}

.camp-report-table td {
    white-space: nowrap; /* the table scrolls sideways instead of breaking a day or a place */
}

.camp-report-table th {
    color: var(--camp-muted);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

/* on phones and tablets the report list is a strip to swipe, names only */
@media (max-width: 991.98px) {
    .camp-report-menu {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .camp-report-menu__item {
        flex: none;
        white-space: nowrap;
    }

    .camp-report-menu__help {
        display: none;
    }
}

/* ---------- camps in progress, on the home page ---------- */

.camp-live + .camp-live {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--camp-line);
}

/* a desk opened by someone who may watch but not work it */
.camp-watch-only {
    padding: 0.6rem 0.9rem;
    color: var(--camp-ink);
    background: var(--camp-primary-soft);
    border-radius: var(--camp-radius-sm);
}

/* ---------- top bar: brand and Home on the left; language and the account menu on the right ---------- */

.camp-topbar__end {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.camp-home-link.is-active {
    color: var(--camp-primary-strong);
    border-color: var(--camp-primary);
    background: var(--camp-primary-soft);
}

.camp-user {
    position: relative;
}

.camp-user__toggle {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.2rem 0.55rem 0.2rem 0.2rem;
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--camp-line);
    border-radius: 999px;
    background: #fff;
}

.camp-user__toggle::-webkit-details-marker {
    display: none;
}

.camp-user__toggle:hover,
.camp-user[open] .camp-user__toggle {
    border-color: var(--camp-primary);
}

.camp-user__toggle:focus-visible {
    outline: 3px solid rgba(var(--camp-primary-rgb), 0.35);
    outline-offset: 2px;
}

.camp-user__name {
    max-width: 12rem;
    overflow: hidden;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.camp-user__chevron {
    color: var(--camp-muted);
    font-size: 0.75rem;
    transition: transform 0.15s ease;
}

.camp-user[open] .camp-user__chevron {
    transform: rotate(180deg);
}

.camp-user__menu {
    position: absolute;
    right: 0;
    z-index: 1040;
    width: min(17rem, calc(100vw - 2rem));
    margin-top: 0.4rem;
    padding: 0.4rem;
    background: #fff;
    border: 1px solid var(--camp-line);
    border-radius: var(--camp-radius-sm);
    box-shadow: var(--camp-shadow);
}

.camp-user__who {
    margin: 0;
    padding: 0.5rem 0.65rem 0.6rem;
    line-height: 1.3;
}

.camp-user__item {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    width: 100%;
    padding: 0.55rem 0.65rem;
    color: var(--camp-ink);
    font: inherit;
    text-align: left;
    text-decoration: none;
    border: 0;
    border-radius: 0.6rem;
    background: none;
}

.camp-user__item:hover,
.camp-user__item:focus-visible {
    color: var(--camp-ink);
    background: var(--camp-primary-soft);
}

.camp-user__item--out,
.camp-user__item--out:hover,
.camp-user__item--out:focus-visible {
    color: #b91c1c;
}

.camp-user__item--out:hover,
.camp-user__item--out:focus-visible {
    background: #fee2e2;
}

.camp-user__rule {
    margin: 0.35rem 0;
    border-color: var(--camp-line);
    opacity: 1;
}

/* ---------- page trail: Home › Reports › Camp days ---------- */

.camp-trail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.camp-trail a {
    color: var(--camp-muted);
    text-decoration: none;
}

.camp-trail a:hover {
    color: var(--camp-primary-strong);
    text-decoration: underline;
}

.camp-trail__sep {
    color: var(--camp-muted);
    font-size: 0.65rem;
    opacity: 0.7;
}

.camp-trail__here {
    color: var(--camp-ink);
    font-weight: 600;
}

/* on a phone a long camp name keeps the width; the token moves under it */
.camp-banner {
    flex-wrap: wrap;
}

.camp-banner__text {
    flex: 1 1 12rem;
}

/* the camp strip is a link to the camp for those who run camps */
a.camp-banner {
    color: var(--camp-ink);
    text-decoration: none;
}

a.camp-banner[href]:hover {
    border-color: var(--camp-primary);
}

.camp-banner__go {
    color: var(--camp-muted);
}

@media print {
    .camp-trail {
        display: none;
    }
}

/* ---------- home: today first, then depth ---------- */

.camp-home-stats {
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
}

a.camp-home-stat {
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.camp-home-stat:hover,
a.camp-home-stat:focus-visible {
    border-color: var(--camp-primary);
    box-shadow: 0 0 0 3px var(--camp-primary-soft);
}

.camp-home-stat.is-zero .camp-tile__count {
    color: var(--camp-muted);
}

.camp-home-stat--live:not(.is-zero) .camp-tile__count {
    color: #15803d;
}

.camp-home-stat--waiting:not(.is-zero) .camp-tile__count {
    color: #b45309;
}

.camp-home-group + .camp-home-group {
    margin-top: 1.25rem;
}

.camp-badge-count {
    min-width: 2rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--camp-primary-soft);
    color: var(--camp-primary-strong);
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.camp-home-desk {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.camp-home-desk__text {
    flex: 1 1 12rem;
}

.camp-home-all {
    margin-top: 0.5rem;
}

.camp-home-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.camp-home-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem 0.35rem 0.35rem;
    border: 1px solid var(--camp-line);
    border-radius: 999px;
    background: #fff;
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.camp-home-chip:hover,
.camp-home-chip:focus-visible {
    border-color: var(--camp-primary);
    color: var(--camp-primary-strong);
}

.camp-home-chip__icon {
    display: inline-grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--tone), var(--tone-2));
}

/* ---------- medicine stores: cards to open, a switcher once one is open ---------- */

.camp-store-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    height: 100%;
    padding: 1rem 1.1rem;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.camp-store-card:hover,
.camp-store-card:focus-visible {
    border-color: var(--camp-primary);
    box-shadow: 0 0 0 3px var(--camp-primary-soft);
}

.camp-store-card__text {
    flex: 1 1 auto;
    min-width: 0;
}

.camp-store-card__name {
    display: block;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.camp-store-card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.camp-fact {
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--camp-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.camp-fact--warn {
    background: #fef3c7;
    color: #b45309;
}

.camp-store-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    color: var(--camp-muted);
}

.camp-store-stats strong {
    color: var(--camp-ink);
    font-size: 1.15rem;
}

/* the desk progress strip: fits on a laptop screen; on a phone it scrolls, with a fade at the
   right edge so it reads as "more this way" rather than cut off */
@media (min-width: 992px) {
    .camp-pipeline__list {
        padding: 0.7rem 0.85rem;
    }

    .camp-step {
        gap: 0.4rem;
        padding-right: 1.05rem;
    }

    .camp-step:not(:last-child)::after {
        right: 0.25rem;
        width: 0.55rem;
    }

    .camp-step__dot {
        width: 2rem;
        height: 2rem;
    }
}

@media (max-width: 991.98px) {
    .camp-pipeline {
        -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
        mask-image: linear-gradient(to right, #000 85%, transparent);
    }
}

/* an empty list says so in words; its empty table (headings only) is not shown under it */
.camp-empty + .table-responsive {
    display: none;
}

/* a camp's steps (CampStepsPanel): one tone, the brand's; what does not apply is shown faintly */
.camp-camp-steps {
    --tone: var(--camp-primary);
    --tone-2: var(--camp-primary-strong);
}

.camp-step--not_needed {
    opacity: 0.55;
}

.camp-step--not_needed .camp-step__dot {
    border-style: dashed;
}

.camp-step__note {
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

/* the camp plan's team chooser: many volunteers at a glance, not one tall column */
.camp-role-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 0.4rem;
}

.camp-role-grid--compact .camp-role-option {
    padding: 0.45rem 0.7rem;
}

.camp-role-grid--compact .camp-role-option__help {
    font-size: 0.72rem;
}

.camp-token-chip {
    min-width: 2.5rem;
    text-align: center;
}

/* grid children may shrink below their content (a wide strip scrolls inside its card instead of
   pushing the page sideways) */
.d-grid > * {
    min-width: 0;
}

/* a camp's eight steps wrap onto a second row rather than scroll out of sight */
.camp-camp-steps {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
}

.camp-camp-steps .camp-pipeline__list {
    flex-wrap: wrap;
    row-gap: 0.6rem;
    min-width: 0;
    border-radius: var(--camp-radius-sm, 1rem);
}

/* ---------- lists that can grow: search above, "show more" below ---------- */

.camp-searchbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.camp-searchbar__box {
    position: relative;
    flex: 1 1 14rem;
}

.camp-searchbar__box .bi-search {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    color: var(--camp-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.camp-searchbar__box .form-control {
    padding-left: 2.4rem;
    border-radius: 999px;
}

.camp-searchbar__filter {
    flex: 0 1 10rem;
    width: auto;
    min-width: 0; /* a select is otherwise as wide as its longest choice, pushing Search to a line of its own */
    border-radius: 999px;
}

.camp-showmore {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* a long list as one line per row: name first, key numbers at the right */
.camp-rows {
    display: grid;
    gap: 0.4rem;
}

.camp-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--camp-line);
    border-radius: var(--camp-radius-sm, 0.75rem);
    background: #fff;
    color: inherit;
    text-decoration: none;
}

a.camp-row:hover,
a.camp-row:focus-visible {
    border-color: var(--camp-primary);
    box-shadow: 0 0 0 3px var(--camp-primary-soft);
}

.camp-row__main {
    flex: 1 1 auto;
    min-width: 0;
}

.camp-row__title {
    display: block;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.camp-row__facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

/* the overview of a list: counts that narrow it when tapped */
.camp-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
    align-items: center;
    margin: 0.75rem 0;
    color: var(--camp-muted);
}

.camp-summary a {
    padding: 0.2rem 0.75rem;
    border: 1px solid var(--camp-line);
    border-radius: 999px;
    background: #fff;
    color: var(--camp-ink);
    font-weight: 600;
    text-decoration: none;
}

.camp-summary a:hover,
.camp-summary a.is-active {
    border-color: var(--camp-primary);
    color: var(--camp-primary-strong);
    background: var(--camp-primary-soft);
}

/* a medicine is one line; its batches fold open under it */
.camp-stock__fold > summary {
    cursor: pointer;
    list-style: none;
    padding: 0.15rem 0;
}

.camp-stock__fold > summary::-webkit-details-marker {
    display: none;
}

.camp-stock__fold > summary::after {
    content: "\F282"; /* bootstrap-icons chevron-down */
    font-family: bootstrap-icons;
    color: var(--camp-muted);
    transition: transform 0.15s ease;
}

.camp-stock__fold[open] > summary::after {
    transform: rotate(180deg);
}

.camp-stock__fold > summary:focus-visible {
    outline: 3px solid var(--camp-primary-soft);
    border-radius: 0.4rem;
}

.camp-stock__batchcount {
    color: var(--camp-muted);
    font-size: 0.85rem;
}

.camp-stock__fold[open] > .camp-stock__batches {
    margin-top: 0.4rem;
}

/* on a phone a row's numbers go under its name, so the name is never cut short */
@media (max-width: 575.98px) {
    .camp-row {
        flex-wrap: wrap;
    }

    .camp-row__main {
        flex: 1 1 0;
    }

    .camp-row > .bi-chevron-right {
        order: 2;
    }

    .camp-row__facts {
        order: 3;
        justify-content: flex-start;
        width: 100%;
        padding-left: 3.1rem;
    }

    .camp-row__title {
        white-space: normal;
    }

    .camp-searchbar__filter {
        flex: 1 1 8rem;
    }

    .camp-searchbar .btn {
        flex: 1 1 auto;
    }
}

/* ---------- Find: the search box in the top bar, and what it finds ---------- */

.camp-find {
    position: relative;
    flex: 0 1 22rem;
    min-width: 12rem;
}

.camp-find .form-control {
    padding-left: 2.3rem;
    padding-right: 2.2rem;
    border-radius: 999px;
    background: var(--camp-surface-soft, #f8fafc);
}

.camp-find__icon {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    color: var(--camp-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.camp-find__panel {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    z-index: 1050;
    width: min(32rem, 92vw);
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.6rem;
    border: 1px solid var(--camp-line);
    border-radius: var(--camp-radius-sm, 0.75rem);
    background: #fff;
    box-shadow: 0 18px 40px rgb(15 23 42 / 0.16);
}

.camp-find__heading {
    margin: 0.4rem 0.3rem 0.35rem;
    color: var(--camp-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.camp-find__panel .camp-rows {
    gap: 0.25rem;
}

.camp-find__panel .camp-row {
    padding: 0.45rem 0.6rem;
    border-color: transparent;
}

.camp-find__panel .camp-row .camp-icon {
    width: 1.9rem;
    height: 1.9rem;
}

.camp-find__panel a:focus-visible,
.camp-find__item:hover {
    outline: none;
    border-color: var(--camp-primary);
    background: var(--camp-primary-soft);
}

.camp-find__item,
.camp-find__all {
    display: block;
    padding: 0.45rem 0.6rem;
    border: 1px solid transparent;
    border-radius: 0.6rem;
    color: var(--camp-ink);
    text-decoration: none;
}

.camp-find__all {
    margin-top: 0.3rem;
    color: var(--camp-primary-strong);
    font-weight: 600;
    text-align: center;
}

.camp-find__panel .camp-empty {
    margin: 0.4rem;
}

/* ---------- Phones: a bar at the bottom, within the thumb's reach ---------- */

.camp-phonebar {
    display: none;
}

@media (max-width: 991.98px) {
    .camp-phonebar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1040;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 0.3rem 0.4rem calc(0.3rem + env(safe-area-inset-bottom));
        border-top: 1px solid #e9ebf0;
        background: #fff;
        box-shadow: 0 -6px 20px -12px rgba(16, 24, 40, 0.25);
    }

    .camp-phonebar__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.1rem;
        min-width: 0;
        padding: 0.35rem 0.25rem;
        border: 0;
        border-radius: 0.75rem;
        background: none;
        color: var(--camp-muted);
        font-size: 0.72rem;
        font-weight: 600;
        text-decoration: none;
    }

    .camp-phonebar__item .bi {
        font-size: 1.25rem;
        line-height: 1;
    }

    .camp-phonebar__item span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .camp-phonebar__item.is-active,
    .camp-phonebar__item[aria-expanded="true"] {
        color: var(--camp-primary-strong);
        background: var(--camp-primary-soft);
    }

    .camp-body {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
    }

    /* the desk menu: hidden, opened from the bar as a sheet with every desk in its group */
    .camp-shell--with-nav .camp-shell__nav {
        display: none;
    }

    .camp-shell--with-nav.camp-shell--menu-open .camp-shell__nav {
        position: fixed;
        right: 0.5rem;
        bottom: calc(4.4rem + env(safe-area-inset-bottom));
        left: 0.5rem;
        z-index: 1039;
        display: block;
        max-height: 72vh;
        padding: 0;
        overflow-y: auto;
        border-radius: var(--camp-radius);
        box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
    }

    .camp-shell--menu-open .camp-nav {
        flex-direction: column;
        gap: 0.15rem;
        padding: 0.75rem;
        overflow: visible;
        border-radius: var(--camp-radius);
    }

    .camp-shell--menu-open .camp-nav__group {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }

    .camp-shell--menu-open .camp-nav__group + .camp-nav__group {
        margin-top: 0.5rem;
    }

    .camp-shell--menu-open .camp-nav__heading {
        display: block;
        margin: 0 0 0.2rem 0.5rem;
        color: var(--camp-muted);
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .camp-shell--menu-open .camp-nav__link {
        padding: 0.5rem 0.6rem 0.5rem 0.4rem;
        border-radius: 0.85rem;
    }

    .camp-shell--menu-open .camp-nav__name {
        flex: 1;
    }

    .camp-shell--menu-open .camp-nav__fold {
        display: none;
    }
}

@media print {
    .camp-phonebar {
        display: none;
    }
}

.camp-topbar .camp-home-link,
.camp-topbar__date {
    flex: none;
    white-space: nowrap;
}

.camp-topbar .camp-brand__name {
    white-space: nowrap;
}

/* the name and unit stay on every screen size; on a phone they get smaller, never hidden */
@media (max-width: 575.98px) {
    .camp-topbar img.camp-brand__logo {
        height: 2rem;
    }

    .camp-topbar .camp-brand {
        gap: 0.4rem;
        min-width: 0;
    }

    .camp-topbar .camp-brand__text {
        min-width: 0;
    }

    .camp-topbar .camp-brand__name {
        font-size: 0.82rem;
        white-space: normal;
    }

    .camp-topbar .camp-brand__unit {
        font-size: 0.62rem;
    }

    .camp-topbar .camp-brand__motto {
        font-size: 0.5rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .camp-find {
        flex-basis: 14rem;
    }
}

.camp-find__panel {
    overflow-x: hidden;
}

.camp-find__panel .camp-rows {
    grid-template-columns: minmax(0, 1fr);
}

/* the desk guide folds under its heading once the volunteer knows the way */
.camp-guide__fold > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: pointer;
    list-style: none;
}

.camp-guide__fold > summary::-webkit-details-marker {
    display: none;
}

.camp-guide__fold > summary::after {
    content: "\F282";
    font-family: bootstrap-icons;
    color: var(--camp-muted);
    transition: transform 0.15s ease;
}

.camp-guide__fold[open] > summary::after {
    transform: rotate(180deg);
}

.camp-guide__fold > summary .camp-guide__heading {
    margin: 0;
}

.camp-guide__fold[open] > summary {
    margin-bottom: 0.5rem;
}

/* "came from": what the desk before handed on, under the patient's name */
.camp-handover {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    margin: 0.75rem 0 0;
    padding: 0.55rem 0.8rem;
    border-left: 3px solid var(--camp-primary);
    border-radius: 0.5rem;
    background: var(--camp-primary-soft);
    color: var(--camp-ink);
    font-size: 0.92rem;
}

.camp-handover::before {
    content: "\F138"; /* bootstrap-icons arrow-right-circle */
    font-family: bootstrap-icons;
    color: var(--camp-primary-strong);
}

/* sign-in: the logo, then the app's name and unit as its caption */
.camp-login__name {
    margin: 0.75rem 0 0;
    color: var(--camp-ink);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.camp-login__unit {
    margin: 0.15rem 0 0;
    color: var(--camp-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* phones: short language names and a smaller account button leave room for the app's name */
.camp-lang__short {
    display: none;
}

@media (max-width: 575.98px) {
    .camp-lang__long {
        display: none;
    }

    .camp-lang__short {
        display: inline;
    }

    .camp-lang__option {
        min-width: 2rem;
        padding: 0.2rem 0.5rem;
        text-align: center;
    }

    .camp-user__chevron {
        display: none;
    }

    .camp-topbar .container-xl {
        gap: 0.4rem !important;
    }
}

/* list rows without an icon: on a phone their buttons line up with the name */
@media (max-width: 575.98px) {
    .camp-list-row .camp-row__facts {
        padding-left: 0;
    }
}

.camp-list-row.is-off .camp-row__title {
    color: var(--camp-muted);
    text-decoration: line-through;
}

/* a camp's next step: one sentence and the button that does it */
.camp-next {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--camp-primary-soft);
    border-radius: var(--camp-radius-sm, 0.75rem);
    background: var(--camp-primary-soft);
}

.camp-next__say {
    font-weight: 600;
    color: var(--camp-ink);
}

.camp-next__say .bi {
    color: var(--camp-primary-strong);
}

/* the camp laptop cannot be reached: a calm, plain banner at the top */
.camp-offline {
    position: sticky;
    top: 0;
    z-index: 1060;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    background: #fef3c7;
    color: #78350f;
    font-weight: 600;
    text-align: center;
}

.camp-offline[hidden] {
    display: none;
}

/* a sent form's buttons wait, so nobody presses twice */
.is-sending {
    pointer-events: none;
    opacity: 0.65;
}

/* registration: the mobile number and Find side by side */
.camp-lookup__box {
    flex: 1 1 12rem;
    min-width: 0;
}

/* Set up › Places */
.camp-card__title > .bi-geo-alt,
.camp-tone--gold {
    --tone: #a16207;
    --tone-2: #facc15;
    --tone-soft: #fefce8;
    --tone-strong: #854d0e;
    --tone-rgb: 161, 98, 7;
}

/* samithis sit under their district */
.camp-place--samithi .camp-row__main {
    padding-inline-start: 1.5rem;
}

/* ---------- Camp PIN slips (CampTeamPanel) ---------- */

.camp-pin-slip {
    padding: .5rem 0;
    border-bottom: 1px dashed var(--bs-border-color);
}

.camp-pin-slip__pin {
    font-family: var(--bs-font-monospace);
    font-size: 1.5rem;
    letter-spacing: .2em;
}

/* ---------- the guide as a ticked table (camp medicines) ---------- */
.camp-guide-pick > summary {
    cursor: pointer;
    list-style: none;
}

.camp-guide-pick > summary::-webkit-details-marker {
    display: none;
}

.camp-guide-pick > summary::after {
    content: "\25BE";
    margin-left: 0.5rem;
    color: var(--camp-muted);
}

.camp-guide-pick[open] > summary::after {
    content: "\25B4";
}

.camp-guide-pick__scroll {
    max-height: 60vh;
    overflow-y: auto;
    border: 1px solid var(--camp-line);
    border-radius: 0.75rem;
}

.camp-guide-pick__table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bs-body-bg, #fff);
    font-size: 0.8rem;
    color: var(--camp-muted);
    white-space: nowrap;
}

.camp-guide-pick__tick .form-check-input {
    width: 1.35rem;
    height: 1.35rem;
}

.camp-guide-pick__name label {
    cursor: pointer;
}

.camp-guide-pick__quantity .form-control {
    max-width: 6.5rem;
}

.camp-guide-pick__table tr:has(.form-check-input:not(:checked)) td:not(.camp-guide-pick__tick) {
    opacity: 0.55;
}

.camp-guide-pick__bar {
    position: sticky;
    bottom: 0;
    padding: 0.5rem 0;
    background: inherit;
}

/* a phone: each medicine one block, the tick and quantity on its first line */
@media (max-width: 767.98px) {
    .camp-guide-pick__table thead {
        display: none;
    }

    .camp-guide-pick__table tr {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 0.25rem 0.75rem;
        padding: 0.6rem 0.75rem;
        border-bottom: 1px solid var(--camp-line);
    }

    .camp-guide-pick__table td {
        border: 0;
        padding: 0;
    }

    .camp-guide-pick__tick { grid-row: 1; grid-column: 1; }
    .camp-guide-pick__name { grid-row: 1; grid-column: 2; }
    .camp-guide-pick__quantity { grid-row: 1; grid-column: 3; }
    .camp-guide-pick__notes { grid-column: 2 / span 2; }
}

/* ---------- a person's visits, newest first, one under the other ---------- */
.camp-glance {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid #eef0f4;
}

.camp-glance__trends {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.15rem 0.75rem;
}

.camp-glance__trends dt {
    color: var(--camp-muted);
    font-weight: 600;
}

.camp-glance__trends dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.camp-visit-list {
    position: relative;
    margin: 0;
    padding: 0 0 0 1.5rem;
    list-style: none;
}

.camp-visit-list::before {
    content: "";
    position: absolute;
    top: 0.9rem;
    bottom: 0.9rem;
    left: 0.45rem;
    border-left: 2px solid #e5e7eb;
}

.camp-visit-list__item {
    position: relative;
    padding-bottom: 0.75rem;
}

.camp-visit-list__item::before {
    content: "";
    position: absolute;
    top: 0.95rem;
    left: -1.35rem;
    width: 0.85rem;
    height: 0.85rem;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--camp-primary);
    box-shadow: 0 0 0 1px var(--camp-primary);
}

.camp-visit-entry {
    border: 1px solid #eef0f4;
    border-radius: 0.75rem;
    background: #fff;
}

.camp-visit-entry[open] {
    box-shadow: var(--camp-shadow-soft);
}

.camp-visit-entry__summary {
    display: block;
    padding: 0.75rem 1rem;
    cursor: pointer;
    list-style: none;
}

.camp-visit-entry__summary::-webkit-details-marker {
    display: none;
}

.camp-visit-entry__summary .camp-visit__head {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.camp-visit-entry__brief {
    display: block;
    margin-top: 0.25rem;
    color: #334155;
    font-size: 0.9rem;
}

.camp-visit-entry__toggle {
    color: var(--camp-primary);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.camp-visit-entry__hide,
.camp-visit-entry[open] .camp-visit-entry__show {
    display: none;
}

.camp-visit-entry[open] .camp-visit-entry__hide {
    display: inline;
}

.camp-visit--inside {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid #eef0f4;
}

/* how they are, over time */
.camp-health-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.camp-health-list__item {
    padding: 0.5rem 0;
    border-top: 1px solid #eef0f4;
}


/* ---------- medicine departments (Common Medicine Guide) ---------- */
.camp-dept {
    color: var(--bs-secondary-color);
}

.camp-dept-filter {
    width: auto;
    min-width: 12rem;
}

/* Reports: one tap for the camp Sunday, this month, three months, this year */
.camp-report-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.camp-report-quick__item.is-active {
    color: #fff;
    border-color: var(--camp-primary);
    background: var(--camp-primary);
}

/* Reports: a headline's change from the period before, and rows that open an area or a camp */
.camp-stat__change {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.78rem;
    color: var(--camp-muted);
}

.camp-report-open {
    font-weight: 600;
    color: var(--camp-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Second step of signing in: the QR code, the key to type, the recovery codes */
.camp-two-step__qr {
    width: 13rem;
    height: 13rem;
    background: #fff;
}

.camp-two-step__key {
    letter-spacing: 0.08em;
    word-break: break-all;
}

.camp-two-step__codes {
    columns: 2;
    font-size: 1.05rem;
}


/* ---------- Printing a whole page (coordinators, admins; Ctrl+P too) ----------
   On screen the frame is plain blocks; on paper its header and footer repeat on every page, the
   content is black on white (clear on a black-and-white printer) and controls are left out. */
.camp-print-frame,
.camp-print-frame__body,
.camp-print-frame__body > tr,
.camp-print-frame__body > tr > td {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
}

.camp-print-frame__head,
.camp-print-frame__foot {
    display: none;
}

@page {
    size: A4;
    margin: 10mm 12mm 12mm;

    @bottom-right {
        content: counter(page) " / " counter(pages);
        font-size: 8pt;
        color: #000;
    }
}

@media print {
    html.camp-print-page {
        font-size: 11pt;
    }

    html.camp-print-page body {
        background: #fff !important;
        color: #000 !important;
    }

    html.camp-print-page .camp-topbar,
    html.camp-print-page .camp-shell__nav,
    html.camp-print-page .camp-trail,
    html.camp-print-page .camp-phonebar,
    html.camp-print-page .camp-offline,
    html.camp-print-page .camp-backdrop,
    html.camp-print-page .camp-skip,
    html.camp-print-page dialog,
    html.camp-print-page .camp-no-print,
    html.camp-print-page .camp-main form:not(.camp-print-keep),
    html.camp-print-page .camp-main .btn,
    html.camp-print-page .camp-main button {
        display: none !important;
    }

    html.camp-print-page .camp-shell,
    html.camp-print-page .camp-main {
        display: block;
        max-width: none;
        width: auto;
        margin: 0;
        padding: 0;
    }

    html.camp-print-page .camp-print-frame {
        display: table;
        width: 100%;
        border-collapse: collapse;
    }

    html.camp-print-page .camp-print-frame__head {
        display: table-header-group;
    }

    html.camp-print-page .camp-print-frame__body {
        display: table-row-group;
    }

    html.camp-print-page .camp-print-frame__foot {
        display: table-footer-group;
    }

    html.camp-print-page .camp-print-frame__body > tr {
        display: table-row;
    }

    html.camp-print-page .camp-print-frame__body > tr > td {
        display: table-cell;
    }

    .camp-print-header {
        display: flex;
        align-items: center;
        gap: 4mm;
        padding-bottom: 2mm;
        margin-bottom: 4mm;
        border-bottom: 0.4mm solid #000;
    }

    .camp-print-header__logo {
        width: 15mm;
        height: auto;
        print-color-adjust: exact; /* in colour on a colour printer and in a PDF */
        -webkit-print-color-adjust: exact;
    }

    .camp-print-header__text p,
    .camp-print-header__title {
        margin: 0;
        color: #000;
    }

    .camp-print-header__org {
        font-weight: 700;
        font-size: 11pt;
    }

    .camp-print-header__unit,
    .camp-print-header__contact {
        font-size: 8.5pt;
    }

    .camp-print-header__title {
        margin-left: auto;
        font-size: 13pt;
        font-weight: 700;
        text-align: right;
    }

    .camp-print-footer {
        margin-top: 4mm;
        padding-top: 1.5mm;
        border-top: 0.3mm solid #000;
        font-size: 8pt;
        color: #000;
    }

    .camp-print-footer__confidential {
        display: block;
        font-weight: 700;
    }

    /* black on white: cards lose their glass, colours become ink, tables get lines */
    html.camp-print-page .camp-glass,
    html.camp-print-page .camp-card {
        background: #fff !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        border: 0.3mm solid #000 !important;
    }

    html.camp-print-page .camp-stat {
        background: #fff !important;
        border: 0.2mm solid #000;
        break-inside: avoid;
    }

    html.camp-print-page .table-responsive {
        overflow: visible !important;
    }

    html.camp-print-page .camp-main *:not(img):not(svg):not(svg *) {
        color: #000 !important;
        text-shadow: none !important;
    }

    html.camp-print-page .camp-main [class*="camp-chip"],
    html.camp-print-page .camp-main [class*="camp-status"],
    html.camp-print-page .camp-main [class*="badge"] {
        background: none !important;
        border: 0.2mm solid #000 !important;
    }

    html.camp-print-page .camp-main table {
        border-collapse: collapse;
    }

    html.camp-print-page .camp-main table:not(.camp-print-frame) th,
    html.camp-print-page .camp-main table:not(.camp-print-frame) td {
        border-bottom: 0.2mm solid #000 !important;
        background: none !important;
    }

    html.camp-print-page .camp-main thead {
        display: table-header-group; /* a long table's headings on every page */
    }

    /* wide tables fit the page: smaller type, headings may wrap */
    html.camp-print-page .camp-main table:not(.camp-print-frame) {
        width: 100% !important;
        font-size: 8pt;
    }

    html.camp-print-page .camp-main table:not(.camp-print-frame) th,
    html.camp-print-page .camp-main table:not(.camp-print-frame) td {
        white-space: normal !important;
        padding: 0.6mm 1mm !important;
    }

    html.camp-print-page .camp-main tr {
        break-inside: avoid;
    }

    html.camp-print-page .camp-ranking__bar {
        background: #000 !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    html.camp-print-page .camp-main a {
        text-decoration: none;
    }
}

/* Dashboard: what needs attention, and this machine's health */
.camp-attention__link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0;
    border-top: 1px solid var(--camp-line);
    color: inherit;
    text-decoration: none;
}

.camp-attention__count {
    min-width: 2.5rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--camp-primary-strong);
}

.camp-health__item {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.1rem 0.75rem;
    padding: 0.55rem 0;
    border-top: 1px solid var(--camp-line);
}

.camp-health__status {
    grid-row: span 2;
    align-self: start;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid currentColor;
}

.camp-health__value {
    grid-column: 2;
    font-size: 0.85rem;
    color: var(--camp-muted);
}

.camp-health__advice {
    grid-column: 2;
    font-size: 0.85rem;
}

.camp-health--ok .camp-health__status {
    color: #15803d;
}

.camp-health--warning .camp-health__status {
    color: #b45309;
}

.camp-health--problem .camp-health__status {
    color: #b91c1c;
}

/* ---------- "Aa": larger text and high contrast for this phone ----------
   Nothing here applies until a phone chooses: the default page is exactly as before. */
.camp-view {
    position: relative;
}

.camp-view__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.1rem;
    padding: 0 0.55rem;
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--camp-muted);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--camp-line);
    border-radius: 999px;
}

.camp-view__toggle::-webkit-details-marker {
    display: none;
}

.camp-view__menu {
    position: absolute;
    right: 0;
    z-index: 1040;
    width: min(16rem, calc(100vw - 2rem));
    margin-top: 0.4rem;
    padding: 0.6rem;
    background: #fff;
    border: 1px solid var(--camp-line);
    border-radius: var(--camp-radius-sm);
    box-shadow: var(--camp-shadow);
}

.camp-view__heading {
    margin: 0.25rem 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--camp-muted);
}

.camp-view__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}

.camp-view__option {
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--camp-line);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--camp-ink);
    text-decoration: none;
}

.camp-view__option.is-active {
    color: #fff;
    border-color: var(--camp-primary);
    background: var(--camp-primary);
}

/* larger text: every size is relative to the root, so the whole page grows and reflows */
html:has(body[data-camp-text="large"]) {
    font-size: 115%;
}

html:has(body[data-camp-text="extra-large"]) {
    font-size: 130%;
}

/* high contrast: darker text (AAA on white), solid white cards with black borders, a deeper saffron
   that stays the brand colour, underlined links, a thick focus outline */
body[data-camp-contrast="high"] {
    --camp-ink: #000;
    --camp-muted: #2b2b2b;
    --camp-line: rgba(0, 0, 0, 0.55);
    --camp-glass: #fff;
    --camp-glass-border: #000;
    --camp-primary: #8a3c00;
    --camp-primary-strong: #6e3000;
    --camp-primary-rgb: 138, 60, 0;
    --camp-violet: #8a3c00;
    --camp-shadow: none;
    --camp-shadow-soft: none;
    --bs-body-color: #000;
    --bs-secondary-color: #2b2b2b;
    --bs-primary: #8a3c00;
    --bs-primary-rgb: 138, 60, 0;
    --bs-link-color: #6e3000;
    --bs-link-color-rgb: 110, 48, 0;
    --bs-border-color: #000;
    color: #000;
}

body[data-camp-contrast="high"] .camp-backdrop {
    display: none;
}

body[data-camp-contrast="high"] .camp-glass,
body[data-camp-contrast="high"] .camp-card,
body[data-camp-contrast="high"] .camp-topbar {
    background: #fff !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: 2px solid #000 !important;
}

body[data-camp-contrast="high"] .text-body-secondary,
body[data-camp-contrast="high"] .text-muted {
    color: #2b2b2b !important;
}

body[data-camp-contrast="high"] .camp-main a:not(.btn) {
    text-decoration: underline;
}

body[data-camp-contrast="high"] .btn-primary,
body[data-camp-contrast="high"] .camp-btn-cta {
    color: #fff !important;
    background: #8a3c00 !important;
    border-color: #8a3c00 !important;
}

body[data-camp-contrast="high"] .form-control,
body[data-camp-contrast="high"] .form-select {
    border: 2px solid #000;
}

body[data-camp-contrast="high"] :focus-visible {
    outline: 3px solid #000 !important;
    outline-offset: 2px;
}

/* "Aa" sits in the top bar; on a phone, once signed in, it moves into the account menu (room for the name) */
.camp-user__view {
    display: none;
}

@media (max-width: 575.98px) {
    .camp-topbar__view--wide {
        display: none;
    }

    .camp-user__view {
        display: block;
        padding: 0.25rem 0.4rem;
        border-top: 1px solid var(--camp-line);
    }
}

.camp-view--inline .camp-view__toggle {
    display: none;
}

.camp-view--inline .camp-view__menu {
    position: static;
    width: auto;
    margin: 0;
    padding: 0.25rem 0;
    border: 0;
    box-shadow: none;
}

/* with larger text, names wrap rather than being cut, and the phone's top bar keeps only the logo */
html:has(body[data-camp-text]) .camp-today__name,
html:has(body[data-camp-text]) .camp-row__title {
    white-space: normal;
    overflow: visible;
}

@media (max-width: 575.98px) {
    html:has(body[data-camp-text]) .camp-brand__text {
        display: none !important;
    }
}

/* the top bar's print button: an icon (its name is read out and shown on hover) */
.camp-print-button {
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.1rem;
    white-space: nowrap;
}

/* =====================================================================
 * Sri Sathya Sai Rehabilitation Programme (added 2026-10-15)
 * Beneficiary rows, due chips, the story timeline, the visit form and the home tiles.
 * ===================================================================== */

/* ---------- a beneficiary in a list ---------- */

.camp-bene-list > li + li {
    border-top: 1px solid var(--camp-line);
}

.camp-bene-list__item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.camp-bene-list__tick {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 1.4rem;
}

.camp-bene {
    display: grid;
    gap: 0.35rem 1rem;
    padding: 0.9rem 0;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .camp-bene {
        grid-template-columns: minmax(14rem, 1.2fr) 1fr;
        align-items: center;
    }
    .camp-bene__facts {
        justify-content: flex-end;
    }
    .camp-bene__actions {
        grid-column: 1 / -1;
    }
}

.camp-bene__who {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
    color: var(--camp-ink);
    text-decoration: none;
}

.camp-bene__who:hover .camp-bene__name {
    color: var(--camp-primary-strong);
    text-decoration: underline;
}

.camp-bene__avatar {
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 0.95rem;
}

.camp-bene__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.camp-bene__name {
    font-size: 1.05rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.camp-bene__meta {
    color: var(--camp-muted);
    font-size: 0.85rem;
}

.camp-bene__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.camp-bene__detail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.9rem;
    grid-column: 1 / -1;
    padding-left: 3.5rem;
    color: var(--camp-muted);
    font-size: 0.85rem;
}

.camp-bene__treatment {
    color: var(--camp-ink);
    font-weight: 600;
}

.camp-row-nobody {
    color: #b45309;
    font-weight: 600;
}

.camp-bene__actions {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.camp-bene__actions .btn {
    min-height: var(--camp-touch);
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ---------- when the next visit is due, and how they were ---------- */

.camp-due {
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    color: #334155;
    background: #f1f5f9;
}

.camp-due--overdue,
.camp-due--flag {
    color: #b91c1c;
    background: #fee2e2;
}

.camp-due--soon {
    color: #b45309;
    background: #fef3c7;
}

.camp-due--later {
    color: #0f766e;
    background: #ccfbf1;
}

.camp-due--none {
    color: #6b21a8;
    background: #f3e8ff;
}

.camp-due--closed {
    color: #475569;
    background: #e2e8f0;
}

.camp-condition {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--camp-muted);
}

.camp-condition--better { color: #15803d; }
.camp-condition--worse { color: #b91c1c; }

/* ---------- My visits: group headings ---------- */

.camp-visits-group { font-size: 0.7rem; }
.camp-visits-group--overdue { color: #dc2626; }
.camp-visits-group--week { color: #f59e0b; }
.camp-visits-group--later { color: #14b8a6; }
.camp-visits-group--undated { color: #a855f7; }

/* ---------- a beneficiary's story ---------- */

.camp-story {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.camp-story::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 1.1rem;
    border-left: 2px dashed rgba(var(--camp-primary-rgb), 0.25);
}

.camp-story__entry {
    position: relative;
    display: flex;
    gap: 0.9rem;
    padding-bottom: 1.15rem;
}

.camp-story__dot {
    position: relative;
    z-index: 1;
    flex: none;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: var(--story, var(--camp-primary));
    background: #fff;
    border: 2px solid var(--story, var(--camp-primary));
    box-shadow: var(--camp-shadow-soft);
}

.camp-story__body {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.85rem;
    border-radius: var(--camp-radius-sm);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--camp-line);
}

.camp-story__date {
    margin: 0;
    color: var(--camp-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.camp-story__title {
    margin: 0;
    font-weight: 700;
}

.camp-story__subject {
    color: var(--camp-muted);
    font-weight: 500;
}

.camp-story__detail {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
}

.camp-story__visit {
    margin-top: 0.5rem;
}

.camp-story__prasadam {
    margin: 0 0 0.35rem;
    color: #b45309;
    font-size: 0.85rem;
    font-weight: 600;
}

.camp-story__person + .camp-story__person {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px dashed var(--camp-line);
}

.camp-story__answers {
    margin: 0 0 0.35rem;
    padding-left: 1.1rem;
    font-size: 0.9rem;
}

.camp-story__photos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.camp-story--admitted,
.camp-story--surgery,
.camp-story--discharged { --story: #0284c7; }
.camp-story--review_due { --story: #7c3aed; }
.camp-story--review_attended { --story: #15803d; }
.camp-story--review_missed { --story: #dc2626; }
.camp-story--visit { --story: #ea580c; }
.camp-story--visit_not_met { --story: #64748b; }
.camp-story--support { --story: #059669; }
.camp-story--red_flag { --story: #dc2626; }
.camp-story--closed { --story: #475569; }
.camp-story--next_visit { --story: #d97706; }

.camp-story--warning .camp-story__body {
    border-color: rgba(220, 38, 38, 0.35);
    background: #fff5f5;
}

.camp-story--future .camp-story__dot {
    border-style: dashed;
}

.camp-story--future .camp-story__body {
    border-style: dashed;
    background: rgba(255, 255, 255, 0.45);
}

.camp-photo-preview {
    width: 5.5rem;
    height: 5.5rem;
    object-fit: cover;
    border-radius: var(--camp-radius-sm);
    border: 1px solid var(--camp-line);
}

.camp-card--attention {
    box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.55), var(--camp-shadow);
}

.camp-review--due { color: #6d28d9; background: #ede9fe; }
.camp-review--attended { color: #15803d; background: #dcfce7; }
.camp-review--missed,
.camp-review--late { color: #b91c1c; background: #fee2e2; }

.camp-support--requested { color: #b45309; background: #fef3c7; }
.camp-support--approved { color: #0f766e; background: #ccfbf1; }
.camp-support--declined { color: #475569; background: #e2e8f0; }
.camp-support--given { color: #15803d; background: #dcfce7; }

.camp-status--open { color: #0f766e; background: #ccfbf1; }

/* ---------- the visit form ---------- */

.camp-visit-who__member + .camp-visit-who__member {
    margin-top: 0.4rem;
}

.camp-visit-who__name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-right: 0.4rem;
}

.camp-wizard__progress {
    display: flex;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
}

.camp-wizard__progress li {
    flex: 1;
    height: 0.4rem;
    border-radius: 999px;
    background: rgba(var(--camp-primary-rgb), 0.15);
}

.camp-wizard__progress li.is-done {
    background: rgba(var(--camp-primary-rgb), 0.55);
}

.camp-wizard__progress li.is-here {
    background: linear-gradient(90deg, var(--camp-primary), var(--camp-violet));
}

.camp-wizard__count {
    margin: 0;
    color: var(--camp-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.camp-wizard__question {
    margin: 0.15rem 0 1rem;
    font-size: 1.45rem;
    font-weight: 800;
}

.camp-wizard__date {
    max-width: 16rem;
}

.camp-wizard__nav {
    position: sticky;
    bottom: calc(4.25rem + env(safe-area-inset-bottom));
    z-index: 5;
    display: flex;
    gap: 0.6rem;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--camp-shadow-soft);
}

@media (min-width: 992px) {
    .camp-wizard__nav {
        bottom: 1rem;
    }
}

.camp-wizard__nav [data-camp-next-step],
.camp-wizard__nav [data-camp-save] {
    margin-left: auto;
}

.camp-outcomes {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .camp-outcomes {
        grid-template-columns: repeat(3, 1fr);
    }
}

.camp-outcome {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
    min-height: 6rem;
    padding: 0.75rem;
    text-align: center;
    font-weight: 700;
    border-radius: var(--camp-radius);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--camp-line);
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.12s ease;
}

.camp-outcome .bi {
    font-size: 2rem;
}

.camp-outcome--met .bi { color: #16a34a; }
.camp-outcome--not_home .bi,
.camp-outcome--unreachable .bi { color: #d97706; }
.camp-outcome--moved .bi { color: #0284c7; }
.camp-outcome--passed_away .bi { color: #7c3aed; }
.camp-outcome--declined .bi { color: #64748b; }

.btn-check:checked + .camp-outcome {
    border-color: var(--camp-primary);
    background: var(--camp-primary-soft);
    transform: scale(1.02);
}

.btn-check:focus-visible + .camp-outcome,
.btn-check:focus-visible + .camp-answer {
    outline: 3px solid rgba(var(--camp-primary-rgb), 0.45);
    outline-offset: 2px;
}

.camp-ask-block {
    margin: 0 0 1.25rem;
    padding: 0;
    border: 0;
}

.camp-ask-block > legend,
.camp-ask-block > label {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.camp-answers {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 576px) {
    .camp-answers {
        grid-template-columns: repeat(4, 1fr);
    }
}

.camp-answers--3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 576px) {
    .camp-answers--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.camp-answer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
    min-height: 4.25rem;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: var(--camp-radius-sm);
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid var(--camp-line);
    cursor: pointer;
}

.camp-answer .bi {
    font-size: 1.5rem;
}

.btn-check:checked + .camp-answer {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--camp-primary), var(--camp-violet));
}

.btn-check:checked + .camp-answer--better,
.btn-check:checked + .camp-answer--regular,
.btn-check:checked + .camp-answer--went,
.btn-check:checked + .camp-answer--normal {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.btn-check:checked + .camp-answer--worse,
.btn-check:checked + .camp-answer--stopped,
.btn-check:checked + .camp-answer--ran_out,
.btn-check:checked + .camp-answer--missed,
.btn-check:checked + .camp-answer--bedridden {
    background: linear-gradient(135deg, #dc2626, #f97316);
}

.camp-chip-option--big {
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.camp-prasadam .form-check-input {
    width: 3rem;
    height: 1.6rem;
}

.camp-prasadam .form-check-label {
    padding-left: 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.camp-photo-pick {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    min-height: 5rem;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--camp-primary-strong);
    border: 2px dashed rgba(var(--camp-primary-rgb), 0.5);
    border-radius: var(--camp-radius);
    background: var(--camp-primary-soft);
    cursor: pointer;
}

.camp-photo-pick .bi {
    font-size: 2rem;
}

.camp-photo-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.camp-consent {
    padding: 0.85rem 1rem;
    border-radius: var(--camp-radius-sm);
    background: #f8fafc;
    border: 1px solid var(--camp-line);
}

.camp-shake {
    animation: camp-shake 0.45s ease;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.35);
    border-radius: var(--camp-radius);
}

@keyframes camp-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

@media (prefers-reduced-motion: reduce) {
    .camp-shake { animation: none; }
}

/* ---------- home ---------- */

.camp-home-tiles {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}

.camp-home-tile {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem;
    color: var(--camp-ink);
    text-decoration: none;
    border-left: 4px solid var(--tile, var(--camp-primary));
    transition: transform 0.12s ease;
}

.camp-home-tile:hover {
    color: var(--camp-ink);
    transform: translateY(-2px);
}

.camp-home-tile__count {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.05;
    color: var(--tile, var(--camp-primary));
    font-variant-numeric: tabular-nums;
}

.camp-home-tile__label {
    color: var(--camp-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.camp-home-tile.is-quiet {
    opacity: 0.6;
}

.camp-home-tile--red { --tile: #dc2626; }
.camp-home-tile--amber { --tile: #d97706; }
.camp-home-tile--blue { --tile: #2563eb; }
.camp-home-tile--green { --tile: #059669; }
.camp-home-tile--violet { --tile: #7c3aed; }
.camp-home-tile--teal { --tile: #0d9488; }
.camp-home-tile--slate { --tile: #475569; }

.camp-home-pages {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.camp-home-page {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    color: var(--camp-ink);
    text-decoration: none;
}

.camp-home-page:hover {
    color: var(--camp-ink);
    background: #fff;
}

.camp-district-table td,
.camp-district-table th {
    background: transparent;
    font-variant-numeric: tabular-nums;
}

.camp-cell--attention { color: #b45309; font-weight: 700; }
.camp-cell--late { color: #b91c1c; font-weight: 700; }

/* ---------- coordinators' lists ---------- */

.camp-assign-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 0.5rem 0;
    padding: 0.5rem 0.75rem;
    border-radius: var(--camp-radius-sm);
    background: var(--camp-primary-soft);
}

.camp-flag + .camp-flag {
    padding-top: 1rem;
    border-top: 1px solid var(--camp-line);
}

.camp-flag__who {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    align-items: baseline;
}

.camp-flag__handle {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .camp-flag__handle {
        grid-template-columns: 14rem 1fr auto;
    }
}

.camp-support {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.9rem;
    border-radius: var(--camp-radius-sm);
    border: 1px solid var(--camp-line);
    background: rgba(255, 255, 255, 0.7);
}

.camp-support__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.camp-place-row {
    padding-bottom: 0.75rem;
}

.camp-place-row__form {
    display: grid;
    gap: 0.5rem;
    padding-left: 3.5rem;
}

@media (min-width: 768px) {
    .camp-place-row__form {
        grid-template-columns: auto minmax(14rem, 22rem) auto;
        align-items: center;
    }
}

/* ---------- sheets ---------- */

.camp-upload-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.camp-upload-steps li {
    counter-increment: step;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    color: var(--camp-muted);
    font-size: 0.85rem;
    font-weight: 600;
    background: #f1f5f9;
}

.camp-upload-steps li::before {
    content: counter(step) ". ";
}

.camp-upload-steps li.is-here {
    color: #fff;
    background: linear-gradient(135deg, var(--camp-primary), var(--camp-violet));
}

.camp-upload-steps li.is-done {
    color: #15803d;
    background: #dcfce7;
}

.camp-file-drop {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
    border: 2px dashed rgba(var(--camp-primary-rgb), 0.45);
    border-radius: var(--camp-radius);
    background: var(--camp-primary-soft);
}

.camp-file-drop .bi {
    font-size: 2.25rem;
    color: var(--camp-primary);
}

.camp-upload-table td,
.camp-upload-table th {
    background: transparent;
}

.camp-upload-goes {
    font-weight: 600;
}

.camp-upload-goes--to_sort { color: #b45309; }
.camp-upload-goes--other_state { color: #6b21a8; }

.camp-upload-outcome--added { color: #15803d; background: #dcfce7; }
.camp-upload-outcome--returned { color: #1d4ed8; background: #dbeafe; }
.camp-upload-outcome--unchanged { color: #475569; background: #e2e8f0; }
.camp-upload-outcome--skipped { color: #b91c1c; background: #fee2e2; }

.camp-upload-count--skipped .camp-tile__count { color: #b91c1c; }
.camp-upload-count--added .camp-tile__count { color: #15803d; }
.camp-upload-count--toSort .camp-tile__count { color: #b45309; }

/* ---------- settings ---------- */

.camp-map-row {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--camp-line);
}

.camp-map-row:last-child {
    border-bottom: 0;
}

.camp-map-row__main {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
}

.camp-map-row__editor {
    margin-top: 0.75rem;
    padding: 0.85rem;
    border-radius: var(--camp-radius-sm);
    background: #f8fafc;
}

.camp-map {
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.camp-map--one { color: #0f766e; background: #ccfbf1; }
.camp-map--split { color: #1d4ed8; background: #dbeafe; }
.camp-map--none { color: #b45309; background: #fef3c7; }

.camp-area-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.camp-area-option {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--camp-line);
    cursor: pointer;
}

.camp-area-option--state {
    font-weight: 700;
    border-color: rgba(var(--camp-primary-rgb), 0.45);
}

.btn-check:checked + .camp-area-option {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--camp-primary), var(--camp-violet));
}

@media print {
    .camp-wizard__nav,
    .camp-bene__actions,
    .camp-assign-bar {
        display: none !important;
    }
}

/* After a visit is saved: the WhatsApp share, in WhatsApp's own green so it is recognised at a glance */
.camp-share__lead {
    font-weight: 500;
}

.camp-btn-whatsapp {
    --bs-btn-color: #fff;
    --bs-btn-bg: #1f9d55;
    --bs-btn-border-color: #1f9d55;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #187d44;
    --bs-btn-hover-border-color: #187d44;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #146c3a;
    --bs-btn-active-border-color: #146c3a;
}

/* Red flags: the hospital's answer, and the box where its coordinator writes it */
.camp-flag__hospital {
    border-left: 3px solid var(--camp-primary);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(var(--camp-primary-rgb), 0.06);
    border-radius: 0.5rem;
}

.camp-flag__respond {
    margin-top: 0.5rem;
}

.camp-flag__answer > summary {
    list-style: none;
}

.camp-flag__answer > summary::-webkit-details-marker {
    display: none;
}

.camp-flag__answer[open] > summary {
    display: none;
}

/* Monthly report: the picker in a row on wide screens, stacked on a phone; the seen-this-month chips */
.camp-report-picker {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .camp-report-picker {
        grid-template-columns: 1fr 1.5fr auto;
        align-items: end;
    }
}

.camp-report-picker__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.camp-report-seen {
    display: inline-block;
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.camp-report-seen--visited {
    background: rgba(25, 135, 84, 0.12);
    color: #146c43;
}

.camp-report-seen--not_met {
    background: rgba(255, 193, 7, 0.18);
    color: #8a6100;
}

.camp-report-seen--missed {
    background: rgba(220, 53, 69, 0.12);
    color: #b02a37;
}

/* Programme overview: each month's visits as a bar beside the number, with no inline styles */
.camp-overview-months__bar {
    width: 40%;
}

.camp-overview-bar {
    width: 100%;
    height: 0.75rem;
}

.camp-overview-bar::-webkit-meter-optimum-value {
    background: var(--camp-primary);
}

.camp-overview-bar::-moz-meter-bar {
    background: var(--camp-primary);
}

@media (max-width: 575.98px) {
    .camp-overview-months__bar {
        display: none;
    }
}
