/* ===================================================
   DINOKANA YOUTH DEVELOPMENT PLATFORM
   Main Stylesheet
=================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&display=swap');

:root {

    --primary: #1B5E20;
    --secondary: #2E7D32;
    --accent: #66BB6A;

    --background: #F4F8F4;

    --card: #FFFFFF;

    --text: #263238;

    --shadow: 0 10px 30px rgba(0,0,0,.08);

}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    font-family:'Nunito',sans-serif;

    background:var(--background);

    color:var(--text);

}

.container{

    width:90%;
    max-width:1100px;

    margin:auto;

    padding:40px;

}

header{

    text-align:center;

    margin-bottom:50px;

}

header h1{

    font-size:42px;

    color:var(--primary);

    font-weight:800;

}

header p{

    margin-top:10px;

    color:#666;

    font-size:18px;

}

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:25px;

}

.card{

    background:var(--card);

    border-radius:18px;

    padding:30px;

    text-decoration:none;

    color:inherit;

    box-shadow:var(--shadow);

    transition:.25s;

}

.card:hover{

    transform:translateY(-8px);

}

.icon{

    font-size:45px;

    margin-bottom:20px;

}

.card h2{

    color:var(--primary);

    margin-bottom:10px;

}

.card p{

    color:#666;

    line-height:1.6;

}

.site-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 55px;
    padding: 24px 10px 10px;
}

.studio-brand {
    display: inline-flex;
    text-decoration: none;
}

.studio-logo {
    width: 230px;
    height: auto;
    overflow: visible;
    transition: transform 0.2s ease;
}

.studio-logo-box {
    fill: #202124;
}

.studio-logo-k {
    fill: none;
    stroke: #ffffff;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.studio-logo-name {
    fill: var(--primary);
    font-family: "Nunito", sans-serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.studio-logo-subtitle {
    fill: #6b746d;
    font-family: "Nunito", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}

.studio-brand:hover .studio-logo {
    transform: translateY(-2px);
}

/* ===================================================
   SHARED BRAND SYSTEM
=================================================== */

.app-brandbar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    margin: 0;
    padding: 10px clamp(18px, 4vw, 58px);
    border-bottom: 1px solid #dce7de;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 22px rgba(18, 61, 36, 0.055);
    text-align: left;
}

.app-user-context {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-left: auto;
    color: #607067;
    font-size: 0.72rem;
}

.app-user-context strong,
.app-user-context a {
    padding: 6px 9px;
    border-radius: 999px;
    background: #edf5ef;
    color: #1e6331;
    font-weight: 900;
    text-decoration: none;
}

.app-user-context a:hover {
    background: #dfeee3;
}

.app-brand-home {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.app-brand-logo-frame {
    display: grid;
    place-items: center;
    width: 108px;
    height: 58px;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 9px;
    background: #ffffff;
}

.app-brand-logo {
    position: static;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.app-brand-copy,
.app-brand-name,
.app-brand-tagline {
    display: block;
}

.app-brand-name {
    color: #123d24;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.15;
}

.app-brand-tagline {
    margin-top: 3px;
    color: #6d7971;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.25px;
}

.branded-site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    margin-top: 58px;
    padding: 28px 20px 34px;
    border-top: 1px solid #dce7de;
    background: #ffffff;
    color: #718077;
    text-align: center;
}

.branded-site-footer p,
.branded-site-footer span {
    margin: 0;
    color: #718077;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.kmathole-footer-logo {
    display: block;
    width: min(330px, 82vw);
    height: auto;
}

/* ===================================================
   PROFESSIONAL DASHBOARD
=================================================== */

.dashboard-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 90% 3%,
            rgba(231, 174, 64, 0.12),
            transparent 24rem
        ),
        linear-gradient(180deg, #f7faf7 0%, #edf4ee 100%);
}

.dashboard-shell {
    flex: 1 0 auto;
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(24px, 5vw, 58px) 0 20px;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.5fr);
    align-items: center;
    gap: clamp(28px, 6vw, 76px);
    overflow: hidden;
    margin: 0 0 54px;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid rgba(20, 77, 40, 0.12);
    border-radius: 30px;
    background:
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.98),
            rgba(239, 247, 241, 0.96)
        );
    box-shadow: 0 24px 70px rgba(18, 61, 36, 0.12);
    text-align: left;
}

.dashboard-logo-panel {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    place-items: center;
    height: 190px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid #e3eae4;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 13px 34px rgba(18, 61, 36, 0.08);
}

.dashboard-dyd-logo {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}

.dashboard-logo-tagline {
    margin-top: -8px;
    color: #174629;
    font-size: 0.61rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #a36b0d;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.dashboard-eyebrow::before {
    width: 27px;
    height: 2px;
    background: #d69a2e;
    content: "";
}

.dashboard-hero h1 {
    max-width: 720px;
    margin: 0;
    color: #123d24;
    font-size: clamp(34px, 5.2vw, 64px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -2px;
}

.dashboard-hero-copy > p {
    max-width: 690px;
    margin: 18px 0 22px;
    color: #53645a;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.65;
}

.dashboard-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #e8f2ea;
    color: #315d3d;
    font-size: 11px;
    font-weight: 900;
}

.dashboard-hero-meta i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3c9a55;
    box-shadow: 0 0 0 4px rgba(60, 154, 85, 0.13);
}

.dashboard-section {
    margin: 0 0 48px;
}

.dashboard-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin: 0 3px 18px;
}

.dashboard-section-heading h2 {
    margin: 3px 0 0;
    color: #1d3828;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 900;
}

.dashboard-section-heading > p {
    max-width: 480px;
    margin: 0;
    color: #68776d;
    line-height: 1.55;
}

.dashboard-card-grid {
    display: grid;
    gap: 18px;
}

.dashboard-card-grid-primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-card-grid-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 17px;
    min-height: 190px;
    padding: 25px;
    border: 1px solid #dde7df;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 13px 34px rgba(25, 72, 39, 0.07);
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    border-color: #98bfa2;
    box-shadow: 0 20px 42px rgba(25, 72, 39, 0.13);
}

.dashboard-card:focus-visible {
    outline: 3px solid rgba(44, 126, 67, 0.28);
    outline-offset: 3px;
}

.dashboard-card-featured {
    border-color: #9bc3a5;
    background: linear-gradient(145deg, #ffffff, #f0f8f2);
}

.dashboard-card-warning {
    border-color: #ead2a1;
    background: linear-gradient(145deg, #fffdf8, #fff7e7);
}

.dashboard-card-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: #e5f1e8;
    color: #1d6a35;
}

.dashboard-card-warning .dashboard-card-icon {
    background: #f8e8be;
    color: #926411;
}

.dashboard-card-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-card-copy,
.dashboard-card-copy > * {
    display: block;
}

.dashboard-card-copy small {
    margin-bottom: 6px;
    color: #77847b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dashboard-card-copy strong {
    margin-bottom: 8px;
    color: #173d25;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
}

.dashboard-card-copy > span {
    color: #65736a;
    font-size: 13px;
    line-height: 1.55;
}

.dashboard-card-arrow {
    align-self: end;
    color: #2e7041;
    font-size: 24px;
    font-weight: 800;
    transition: transform 0.18s ease;
}

.dashboard-card:hover .dashboard-card-arrow {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .dashboard-logo-panel {
        width: min(360px, 100%);
    }

    .dashboard-card-grid-primary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .app-brandbar {
        min-height: 64px;
        padding: 8px 14px;
    }

    .app-user-context > span,
    .app-user-context a {
        display: none;
    }

    .app-user-context strong {
        max-width: 135px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-brand-logo-frame {
        width: 88px;
        height: 48px;
    }

    .app-brand-logo {
        width: 100%;
        height: 100%;
    }

    .app-brand-name {
        font-size: 14px;
    }

    .app-brand-tagline {
        display: none;
    }

    .dashboard-shell {
        width: min(100% - 22px, 1220px);
        padding-top: 18px;
    }

    .dashboard-hero {
        gap: 23px;
        margin-bottom: 38px;
        padding: 23px;
        border-radius: 22px;
    }

    .dashboard-logo-panel {
        height: 145px;
    }

    .dashboard-hero h1 {
        letter-spacing: -1px;
    }

    .dashboard-section-heading {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .dashboard-card-grid-secondary {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        min-height: 0;
        padding: 20px;
    }
}

/* =========================================================
   Activity form
   ========================================================= */

.form-page {
    width: min(100% - 32px, 920px);
    margin: 0 auto;
    padding: 42px 0 70px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.form-card {
    padding: 38px;
    background: #ffffff;
    border: 1px solid #e4ebe5;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(22, 64, 31, 0.08);
}

.form-heading {
    margin-bottom: 32px;
}

.form-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.form-heading h1 {
    margin: 0 0 10px;
    color: #202124;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.1;
}

.form-heading p {
    max-width: 620px;
    margin: 0;
    color: #68726a;
    font-size: 16px;
    line-height: 1.65;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-wide {
    grid-column: 1 / -1;
}

.form-group label {
    color: #26352a;
    font-size: 14px;
    font-weight: 800;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccd7ce;
    border-radius: 12px;
    background: #fbfdfb;
    color: #202124;
    font-family: "Nunito", sans-serif;
    font-size: 15px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group input,
.form-group select {
    min-height: 48px;
    padding: 0 14px;
}

.form-group textarea {
    min-height: 120px;
    padding: 13px 14px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e7ece8;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    font-family: "Nunito", sans-serif;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(27, 94, 32, 0.18);
}

.button-primary:hover {
    box-shadow: 0 12px 24px rgba(27, 94, 32, 0.24);
}

.button-secondary {
    background: #edf3ee;
    color: #36533c;
}

.button-secondary:hover {
    background: #e3ece5;
}

@media (max-width: 680px) {
    .form-page {
        width: min(100% - 22px, 920px);
        padding-top: 24px;
    }

    .form-card {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group-wide {
        grid-column: auto;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .button {
        width: 100%;
    }
}

/* =========================================================
   Activity lifecycle progress
   ========================================================= */

.lifecycle-progress {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin: 0 0 34px;
    padding: 20px 22px;
    box-sizing: border-box;
    background: #f4f7f4;
    border: 1px solid #e3e9e4;
    border-radius: 18px;
}

.lifecycle-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    min-width: 92px;
    color: #8a948c;
    text-align: center;
}

.lifecycle-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
    border: 2px solid #cbd4cd;
    border-radius: 50%;
    background: #ffffff;
    color: #7b857d;
    font-size: 14px;
    font-weight: 900;
}

.lifecycle-label {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.lifecycle-line {
    flex: 1 1 auto;
    min-width: 22px;
    height: 2px;
    margin: 16px 8px 0;
    background: #d7ded8;
}

.lifecycle-step-active {
    color: var(--primary);
}

.lifecycle-step-active .lifecycle-number {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(27, 94, 32, 0.2);
}

@media (max-width: 680px) {
    .lifecycle-progress {
        overflow-x: auto;
        align-items: flex-start;
        padding: 18px 14px;
        scrollbar-width: thin;
    }

    .lifecycle-step {
        min-width: 84px;
    }

    .lifecycle-line {
        min-width: 20px;
        margin-right: 2px;
        margin-left: 2px;
    }

    .lifecycle-label {
        font-size: 11px;
    }
}

/* =========================================================
   Form validation
   ========================================================= */

.form-alert {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid #e5b9b5;
    border-radius: 12px;
    background: #fff7f6;
    color: #8a2822;
    font-size: 14px;
}

.form-alert strong {
    font-weight: 900;
}

.field-error {
    color: #a52f28;
    font-size: 12px;
    font-weight: 800;
}

/* =========================================================
   Activity confirmation
   ========================================================= */

.confirmation-page {
    max-width: 780px;
}

.confirmation-card {
    text-align: center;
}

.success-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(27, 94, 32, 0.22);
}

.confirmation-heading {
    max-width: 590px;
    margin: 0 auto 28px;
}

.confirmation-heading h1 {
    margin: 0 0 10px;
    color: #202124;
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 900;
    line-height: 1.1;
}

.confirmation-heading p {
    margin: 0;
    color: #68726a;
    font-size: 16px;
    line-height: 1.6;
}

.activity-reference {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 auto 28px;
    padding: 20px;
    border: 1px dashed #a9bbaa;
    border-radius: 16px;
    background: #f4f8f4;
}

.activity-reference span {
    color: #6d776f;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.activity-reference strong {
    color: var(--primary);
    font-size: clamp(21px, 4vw, 30px);
    font-weight: 900;
    letter-spacing: 0.5px;
}

.activity-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin: 0;
    border: 1px solid #e1e8e2;
    border-radius: 16px;
    background: #e1e8e2;
    text-align: left;
}

.activity-summary div {
    min-width: 0;
    padding: 17px 18px;
    background: #ffffff;
}

.activity-summary dt {
    margin-bottom: 5px;
    color: #7a847c;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.activity-summary dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #26352a;
    font-size: 15px;
    font-weight: 800;
}

.status-badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e6f2e7;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.confirmation-actions {
    justify-content: center;
}

@media (max-width: 680px) {
    .activity-summary {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Activity details
   ========================================================= */

.activity-page {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    padding: 36px 0 70px;
}

.activity-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.activity-topbar .back-link {
    margin-bottom: 0;
}

.activity-id-small {
    color: #728078;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.activity-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 26px;
    align-items: center;
    padding: 34px;
    border: 1px solid #e1e8e2;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(22, 64, 31, 0.08);
}

.activity-hero h1 {
    margin: 0 0 16px;
    color: #202124;
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 900;
    line-height: 1.05;
}

.activity-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: #66726a;
    font-size: 14px;
    font-weight: 800;
}

.activity-next-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 20px;
    border-radius: 18px;
    background: #f2f7f2;
}

.activity-next-step > span {
    color: #748079;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.activity-next-step strong {
    margin-bottom: 12px;
    color: #25342a;
    font-size: 20px;
    font-weight: 900;
}

.button-disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none !important;
    box-shadow: none !important;
}

.activity-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin: 22px 0;
    padding: 8px;
    border: 1px solid #e1e8e2;
    border-radius: 16px;
    background: #ffffff;
}

.activity-tab {
    flex: 0 0 auto;
    padding: 10px 15px;
    border-radius: 10px;
    color: #66726a;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.activity-tab-active {
    background: var(--primary);
    color: #ffffff;
}

.activity-tab:not(.activity-tab-active):is(a):hover {
    background: #eef5ef;
    color: var(--primary);
}

.activity-tab-completed:not(.activity-tab-active) {
    background: #edf6ef;
    color: #2d7040;
}

.activity-tab-attention {
    background: #fff2d7;
    color: #865d0d;
}

.activity-tab-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.activity-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
}

.activity-panel {
    padding: 28px;
    border: 1px solid #e1e8e2;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(22, 64, 31, 0.055);
}

.panel-heading h2,
.activity-panel h2 {
    margin: 0;
    color: #25342a;
    font-size: 24px;
    font-weight: 900;
}

.panel-heading {
    margin-bottom: 22px;
}

.activity-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin: 0;
    border: 1px solid #e3e9e4;
    border-radius: 15px;
    background: #e3e9e4;
}

.activity-detail-grid div {
    min-width: 0;
    padding: 17px;
    background: #ffffff;
}

.activity-detail-grid dt {
    margin-bottom: 5px;
    color: #7a857d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.activity-detail-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #26352a;
    font-size: 15px;
    font-weight: 800;
}

.activity-notes {
    margin-top: 22px;
    padding: 19px;
    border-radius: 15px;
    background: #f6f8f6;
}

.activity-notes-label {
    display: block;
    margin-bottom: 7px;
    color: #68746b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.activity-notes p {
    margin: 0;
    color: #354139;
    line-height: 1.65;
}

.activity-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.compact-panel {
    padding: 24px;
}

.activity-status-list {
    display: flex;
    flex-direction: column;
    gap: 17px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.activity-status-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #879088;
}

.activity-status-list li > span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 2px solid #d1d9d2;
    border-radius: 50%;
    background: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.activity-status-list strong,
.activity-status-list small {
    display: block;
}

.activity-status-list strong {
    color: #455047;
    font-size: 14px;
    font-weight: 900;
}

.activity-status-list small {
    margin-top: 2px;
    font-size: 12px;
}

.activity-status-current {
    color: var(--primary) !important;
}

.activity-status-current > span {
    border-color: var(--primary) !important;
    background: var(--primary) !important;
    color: #ffffff;
}

.activity-status-current strong {
    color: var(--primary);
}

.activity-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .activity-hero,
    .activity-layout {
        grid-template-columns: 1fr;
    }

    .activity-next-step {
        align-items: stretch;
    }
}

@media (max-width: 680px) {
    .activity-page {
        width: min(100% - 22px, 1180px);
        padding-top: 22px;
    }

    .activity-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .activity-hero {
        padding: 24px 19px;
        border-radius: 19px;
    }

    .activity-detail-grid {
        grid-template-columns: 1fr;
    }

    .activity-panel {
        padding: 22px 18px;
    }
}

/* =========================================================
   Volunteer Management
   ========================================================= */

.volunteer-page {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    padding: 36px 0 70px;
}

.directory-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 30px;
    align-items: center;
    padding: 36px;
    border: 1px solid #e1e8e2;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(22, 64, 31, 0.08);
}

.directory-hero h1 {
    margin: 0 0 12px;
    color: #202124;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.05;
}

.directory-hero p {
    max-width: 670px;
    margin: 0;
    color: #68726a;
    font-size: 16px;
    line-height: 1.65;
}

.directory-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    padding: 20px;
    border-radius: 19px;
    background: #f1f7f2;
    text-align: center;
}

.directory-stat strong {
    color: var(--primary);
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
}

.directory-stat span {
    margin-top: 7px;
    color: #617066;
    font-size: 13px;
    font-weight: 800;
}

/* Protected administration */

.admin-page {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    padding: 36px 0 70px;
}

.admin-hero {
    grid-template-columns: minmax(0, 1fr) 280px;
}

.admin-role-stat {
    min-width: 0;
}

.admin-role-stat strong {
    max-width: 100%;
    font-size: clamp(24px, 2.2vw, 30px);
    line-height: 1.1;
    white-space: nowrap;
}

.admin-foundation-panel {
    margin-top: 24px;
}

.admin-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.admin-success-banner {
    margin-top: 16px;
    padding: 13px 16px;
    border: 1px solid #9bc9a6;
    border-radius: 13px;
    background: #edf8ef;
    color: #1f6332;
    font-size: 0.84rem;
    font-weight: 900;
}

.admin-backup-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.admin-backup-heading form {
    flex-shrink: 0;
}

.admin-backup-list {
    display: grid;
    gap: 9px;
    margin-top: 20px;
}

.admin-backup-list > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    border: 1px solid #e0e9e2;
    border-radius: 12px;
    background: #f8faf8;
}

.admin-backup-list strong {
    overflow-wrap: anywhere;
    color: #26372b;
    font-size: 0.78rem;
}

.admin-backup-list span,
.admin-empty-state,
.admin-backup-warning {
    color: #69756c;
    font-size: 0.74rem;
}

.admin-restore-note {
    display: grid;
    gap: 4px;
    margin-top: 14px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #edf5ef;
    color: #31513a;
    font-size: 0.75rem;
    line-height: 1.5;
}

.admin-restore-note strong {
    color: #1e6331;
    font-size: 0.79rem;
}

.role-readonly-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.role-readonly-fieldset:disabled {
    opacity: 1;
}

.role-readonly-notice {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #cbdccf;
    border-radius: 12px;
    background: #f1f6f2;
    color: #46604d;
    font-size: 0.78rem;
    font-weight: 800;
}

.role-page-readonly form input,
.role-page-readonly form select,
.role-page-readonly form textarea,
.role-page-readonly form button {
    pointer-events: none;
    opacity: 0.65;
}

.admin-backup-list span {
    flex-shrink: 0;
}

.admin-empty-state {
    margin: 20px 0 0;
}

.admin-backup-warning {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid #e3e9e4;
    line-height: 1.5;
}

.admin-user-panel {
    margin-top: 24px;
}

.admin-user-list,
.admin-audit-list {
    display: grid;
    gap: 10px;
}

.admin-user-row {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e1e9e3;
    border-radius: 14px;
    background: #f9fbf9;
}

.admin-user-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
}

.admin-user-identity {
    display: grid;
    gap: 2px;
}

.admin-user-identity strong,
.admin-audit-row strong {
    color: #25362a;
    font-size: 0.86rem;
}

.admin-user-identity small,
.admin-audit-row small {
    color: #6a766e;
    font-size: 0.72rem;
}

.admin-audit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    padding: 14px 4px;
    border-bottom: 1px solid #e4eae5;
}

.admin-audit-row > div {
    display: grid;
    gap: 3px;
}

.admin-audit-row > div:last-child {
    text-align: right;
}

.admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.admin-metric-card {
    display: grid;
    gap: 5px;
    padding: 22px;
    border: 1px solid #dfe9e1;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(22, 64, 31, 0.055);
}

.admin-metric-card span {
    color: #6c786f;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.admin-metric-card strong {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.admin-metric-card small {
    color: #6c786f;
    font-size: 0.78rem;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    gap: 20px;
    margin-top: 24px;
}

.admin-alert-list,
.admin-status-list {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
}

.admin-alert {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    padding: 13px;
    border: 1px solid #dfe7e0;
    border-radius: 13px;
    background: #f7faf8;
}

.admin-alert > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #e4efe7;
    color: #236336;
    font-weight: 900;
}

.admin-alert div {
    display: grid;
    gap: 2px;
}

.admin-alert strong {
    color: #26372b;
    font-size: 0.86rem;
}

.admin-alert small {
    color: #68736b;
    font-size: 0.75rem;
    line-height: 1.45;
}

.admin-alert-warning {
    border-color: #ead49b;
    background: #fffbf0;
}

.admin-alert-warning > span {
    background: #f7e9bd;
    color: #8a5c00;
}

.admin-alert-critical {
    border-color: #edc5c1;
    background: #fff6f5;
}

.admin-alert-critical > span {
    background: #f5d8d5;
    color: #9b2e27;
}

.admin-status-list div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e7ece8;
}

.admin-status-list dt,
.admin-status-list dd {
    margin: 0;
    font-size: 0.76rem;
}

.admin-status-list dt {
    color: #6e7971;
}

.admin-status-list dd {
    max-width: 180px;
    overflow-wrap: anywhere;
    color: #26372b;
    font-weight: 900;
    text-align: right;
}

.admin-status-list .admin-status-danger {
    color: #a33129;
}

.report-review-panel,
.report-returned-alert {
    margin-top: 24px;
}

@media (max-width: 900px) {
    .admin-hero {
        grid-template-columns: 1fr;
    }

    .admin-role-stat {
        align-items: flex-start;
        min-height: auto;
        text-align: left;
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .admin-page {
        width: min(100% - 22px, 1180px);
        padding-top: 22px;
    }

    .admin-metric-grid {
        grid-template-columns: 1fr;
    }

    .admin-backup-heading,
    .admin-backup-list > div {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-backup-heading .button {
        width: 100%;
    }

    .admin-backup-list span {
        flex-shrink: 1;
    }

    .admin-user-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .admin-user-row > .status-badge,
    .admin-user-row > .button {
        grid-column: 2;
        justify-self: start;
    }

    .admin-audit-row {
        grid-template-columns: 1fr;
    }

    .admin-audit-row > div:last-child {
        text-align: left;
    }
}

.volunteer-list-section {
    margin-top: 24px;
    padding: 30px;
    border: 1px solid #e1e8e2;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(22, 64, 31, 0.055);
}

.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-heading-row h2 {
    margin: 0;
    color: #25342a;
    font-size: 27px;
    font-weight: 900;
}

.record-count {
    color: #738078;
    font-size: 13px;
    font-weight: 800;
}

.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.volunteer-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    padding: 18px;
    border: 1px solid #e1e8e2;
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.volunteer-card:hover {
    transform: translateY(-2px);
    border-color: #b8c9ba;
    box-shadow: 0 10px 24px rgba(22, 64, 31, 0.09);
}

.volunteer-avatar,
.profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-weight: 900;
}

.volunteer-avatar {
    width: 48px;
    height: 48px;
    font-size: 15px;
}

.volunteer-card-content {
    min-width: 0;
}

.volunteer-card-content h3 {
    margin: 0 0 3px;
    overflow: hidden;
    color: #26352a;
    font-size: 17px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.volunteer-id {
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.4px;
}

.volunteer-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-top: 7px;
    color: #78827a;
    font-size: 12px;
    font-weight: 700;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 24px;
    padding: 65px 25px;
    border: 1px solid #e1e8e2;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(22, 64, 31, 0.055);
    text-align: center;
}

.empty-state-icon {
    margin-bottom: 16px;
    font-size: 50px;
}

.empty-state h2 {
    margin: 0 0 10px;
    color: #25342a;
    font-size: 28px;
    font-weight: 900;
}

.empty-state p {
    max-width: 500px;
    margin: 0 0 23px;
    color: #6d786f;
    line-height: 1.65;
}

.form-section-heading {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin: 34px 0 20px;
    padding-top: 28px;
    border-top: 1px solid #e4eae5;
}

.form-section-heading:first-of-type {
    margin-top: 8px;
    padding-top: 0;
    border-top: 0;
}

.form-section-heading > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.form-section-heading h2 {
    margin: 0;
    color: #26352a;
    font-size: 20px;
    font-weight: 900;
}

.form-section-heading p {
    margin: 3px 0 0;
    color: #768178;
    font-size: 13px;
}

.optional-label {
    margin-left: 4px;
    color: #929b94;
    font-size: 11px;
    font-weight: 700;
}

.privacy-note {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 28px;
    padding: 15px 17px;
    border-radius: 13px;
    background: #f3f7f3;
    color: #56645a;
    font-size: 13px;
}

.privacy-note strong {
    color: var(--primary);
    font-weight: 900;
}

.success-banner {
    display: flex;
    gap: 13px;
    align-items: center;
    margin-bottom: 18px;
    padding: 15px 18px;
    border: 1px solid #bcd2bf;
    border-radius: 14px;
    background: #eff8f0;
}

.success-banner > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-weight: 900;
}

.success-banner strong,
.success-banner small {
    display: block;
}

.success-banner strong {
    color: var(--primary);
    font-size: 14px;
    font-weight: 900;
}

.success-banner small {
    margin-top: 2px;
    color: #667268;
}

.volunteer-profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 32px;
    border: 1px solid #e1e8e2;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(22, 64, 31, 0.08);
}

.profile-avatar {
    width: 88px;
    height: 88px;
    font-size: 25px;
    box-shadow: 0 12px 25px rgba(27, 94, 32, 0.19);
}

.profile-title h1 {
    margin: 0 0 13px;
    color: #202124;
    font-size: clamp(31px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.05;
}

.volunteer-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    margin-top: 22px;
}

.profile-side-list {
    margin: 19px 0 0;
}

.profile-side-list div {
    padding: 13px 0;
    border-bottom: 1px solid #e5ebe6;
}

.profile-side-list div:first-child {
    padding-top: 0;
}

.profile-side-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.profile-side-list dt {
    margin-bottom: 4px;
    color: #78837a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.profile-side-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #29372e;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .directory-hero,
    .volunteer-profile-hero,
    .volunteer-profile-layout {
        grid-template-columns: 1fr;
    }

    .directory-stat {
        align-items: flex-start;
        min-height: auto;
        text-align: left;
    }

    .profile-actions {
        display: flex;
    }
}

@media (max-width: 720px) {
    .volunteer-grid {
        grid-template-columns: 1fr;
    }

    .volunteer-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .volunteer-card > .status-badge {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 680px) {
    .volunteer-page {
        width: min(100% - 22px, 1180px);
        padding-top: 22px;
    }

    .directory-hero,
    .volunteer-profile-hero {
        padding: 24px 19px;
        border-radius: 19px;
    }

    .volunteer-list-section {
        padding: 22px 17px;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .profile-avatar {
        width: 72px;
        height: 72px;
        font-size: 21px;
    }
}

/* =========================================================
   Activity Directory
   ========================================================= */

.activity-directory-page {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    padding: 36px 0 70px;
}

.activity-directory-content {
    margin-top: 24px;
}

.activity-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.summary-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 21px;
    border: 1px solid #e1e8e2;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(22, 64, 31, 0.055);
}

.summary-card span {
    color: #78837a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.summary-card strong {
    color: var(--primary);
    font-size: 31px;
    font-weight: 900;
    line-height: 1;
}

.activity-directory-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 16px;
    padding: 25px;
    border: 1px solid #e1e8e2;
    border-radius: 19px;
    background: #ffffff;
}

.activity-directory-toolbar h2 {
    margin: 0;
    color: #25342a;
    font-size: 27px;
    font-weight: 900;
}

.activity-directory-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-directory-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 20px;
    border: 1px solid #e1e8e2;
    border-radius: 17px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(22, 64, 31, 0.045);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.activity-directory-card:hover {
    transform: translateY(-2px);
    border-color: #abc1ae;
    box-shadow: 0 14px 30px rgba(22, 64, 31, 0.09);
}

.activity-directory-main {
    min-width: 0;
}

.activity-directory-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.activity-directory-id {
    display: block;
    margin-bottom: 4px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.activity-directory-title-row h3 {
    margin: 0;
    color: #26352a;
    font-size: 19px;
    font-weight: 900;
}

.activity-directory-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
    margin-top: 11px;
    color: #748078;
    font-size: 12px;
    font-weight: 700;
}

.activity-directory-open {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.activity-directory-open strong {
    font-size: 19px;
}

@media (max-width: 900px) {
    .activity-summary-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .activity-directory-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .activity-directory-toolbar .volunteer-search {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .activity-directory-page {
        width: min(100% - 22px, 1180px);
        padding-top: 22px;
    }

    .activity-summary-cards {
        grid-template-columns: 1fr 1fr;
    }

    .activity-directory-card {
        grid-template-columns: 1fr;
    }

    .activity-directory-title-row {
        flex-direction: column;
        gap: 8px;
    }

    .activity-directory-open {
        justify-content: flex-end;
    }
}

/* =========================================================
   Team Assignment
   ========================================================= */

.assign-team-form {
    margin-top: 24px;
}

.assignment-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
    padding: 25px;
    border: 1px solid #e1e8e2;
    border-radius: 19px;
    background: #ffffff;
}

.assignment-toolbar h2 {
    margin: 0;
    color: #25342a;
    font-size: 26px;
    font-weight: 900;
}

.volunteer-search {
    width: min(100%, 390px);
}

.volunteer-search input {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 0 15px;
    border: 1px solid #ccd7ce;
    border-radius: 12px;
    background: #fbfdfb;
    color: #202124;
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    outline: none;
}

.volunteer-search input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.1);
}

.assignment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.assignment-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 18px;
    border: 2px solid #e1e8e2;
    border-radius: 17px;
    background: #ffffff;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.assignment-card:hover {
    transform: translateY(-2px);
    border-color: #abc1ae;
    box-shadow: 0 10px 25px rgba(22, 64, 31, 0.08);
}

.assignment-card > input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.assignment-card-selected {
    border-color: var(--primary);
    background: #f0f7f1;
}

.assignment-card-content h3 {
    margin: 0 0 3px;
    color: #25342a;
    font-size: 17px;
    font-weight: 900;
}

.assignment-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 7px;
    color: #748078;
    font-size: 12px;
    font-weight: 700;
}

.selection-indicator {
    display: inline-flex;
    min-width: 86px;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: #edf1ed;
    color: #6e7971;
    font-size: 12px;
    font-weight: 900;
}

.selection-checked {
    display: none;
}

.assignment-card-selected .selection-indicator {
    background: var(--primary);
    color: #ffffff;
}

.assignment-card-selected .selection-empty {
    display: none;
}

.assignment-card-selected .selection-checked {
    display: inline;
}

.assignment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding: 16px;
    border: 1px solid #dce5dd;
    border-radius: 16px;
    background: #ffffff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 850px) {
    .assignment-grid {
        grid-template-columns: 1fr;
    }

    .assignment-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .volunteer-search {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .assignment-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .selection-indicator {
        grid-column: 2;
        justify-self: start;
    }

    .assignment-actions {
        flex-direction: column-reverse;
    }

    .assignment-actions .button {
        width: 100%;
    }
}

/* =========================================================
   Attendance
   ========================================================= */

.attendance-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.attendance-form {
    margin-top: 22px;
}

.attendance-panel {
    padding: 28px;
    border: 1px solid #e1e8e2;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(22, 64, 31, 0.055);
}

.attendance-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attendance-row {
    display: grid;
    grid-template-columns: auto minmax(150px, 1fr) auto;
    gap: 15px;
    align-items: center;
    padding: 17px;
    border: 1px solid #e1e8e2;
    border-radius: 16px;
    background: #ffffff;
}

.attendance-person {
    min-width: 0;
}

.attendance-person strong,
.attendance-person span {
    display: block;
}

.attendance-person strong {
    color: #26352a;
    font-size: 16px;
    font-weight: 900;
}

.attendance-person span {
    margin-top: 3px;
    color: #78827a;
    font-size: 11px;
    font-weight: 700;
}

.attendance-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    margin: 0;
    padding: 0;
    border: 0;
}

.attendance-choice {
    display: inline-flex;
    cursor: pointer;
}

.attendance-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.attendance-choice span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d6ded7;
    border-radius: 999px;
    background: #f4f7f4;
    color: #68746b;
    font-size: 12px;
    font-weight: 900;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.attendance-choice:hover span {
    border-color: #abc1ae;
}

.attendance-choice-selected span {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

@media (max-width: 900px) {
    .attendance-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .attendance-options {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 63px;
    }
}

@media (max-width: 680px) {
    .attendance-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .attendance-panel {
        padding: 21px 17px;
    }

    .attendance-row {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 14px;
    }

    .attendance-options {
        padding-left: 0;
    }

    .attendance-choice span {
        padding: 0 10px;
        font-size: 11px;
    }
}

/* =========================================================
   Field Work
   ========================================================= */

.fieldwork-hero h1 {
    text-transform: none;
}

.fieldwork-status-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    padding: 20px;
    border-radius: 19px;
    background: #f1f7f2;
    text-align: center;
}

.fieldwork-status-box strong {
    margin-top: 6px;
    color: #26352a;
    font-size: 22px;
    font-weight: 900;
}

.fieldwork-status-box small {
    margin-top: 3px;
    color: #718076;
    font-size: 12px;
    font-weight: 700;
}

.fieldwork-status-dot {
    display: inline-block;
    width: 17px;
    height: 17px;
    border-radius: 50%;
}

.fieldwork-status-dot.ready {
    background: #98a39a;
}

.fieldwork-status-dot.live {
    background: #2e9b43;
    box-shadow: 0 0 0 7px rgba(46, 155, 67, 0.13);
}

.fieldwork-status-dot.completed {
    background: var(--primary);
}

.fieldwork-workspace {
    margin-top: 24px;
}

.fieldwork-primary-card,
.fieldwork-live-card,
.fieldwork-complete-card {
    padding: 42px;
    border: 1px solid #e1e8e2;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(22, 64, 31, 0.07);
    text-align: center;
}

.fieldwork-primary-card h2,
.fieldwork-complete-card h2 {
    margin: 0 0 10px;
    color: #25342a;
    font-size: 30px;
    font-weight: 900;
}

.fieldwork-primary-card p {
    max-width: 590px;
    margin: 0 auto 27px;
    color: #6f7b72;
    line-height: 1.65;
}

.gps-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
}

.fieldwork-main-button {
    min-width: min(100%, 360px);
    min-height: 70px;
    padding: 0 28px;
    border: 0;
    border-radius: 17px;
    background: var(--primary);
    color: #ffffff;
    font-family: "Nunito", sans-serif;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(27, 94, 32, 0.22);
}

.gps-status {
    color: #78837a;
    font-size: 12px;
    font-weight: 700;
}

.fieldwork-skip-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 760px;
    margin: 28px auto 0;
    padding: 18px;
    border: 1px solid #e5ddd1;
    border-radius: 14px;
    background: #fffaf4;
    text-align: left;
}

.fieldwork-skip-option strong,
.fieldwork-skip-option small {
    display: block;
}

.cancelled-activity-summary {
    display: block;
    max-width: 240px;
    color: #813a34;
    font-size: 14px;
    font-weight: 900;
}

.activity-directory-card[
    data-activity-status="cancelled"
] {
    border-left-color: #a6534c;
    background: #fff8f7;
}

.status-badge[
    data-activity-status="cancelled"
] {
    background: #f7dfdc;
    color: #873a34;
}

.activity-cancel-button {
    border-color: #e3b8b4;
    color: #8b332d;
}

.activity-delete-details {
    padding: 14px;
    border: 1px solid #ecc8c4;
    border-radius: 12px;
    background: #fff8f7;
}

.activity-delete-details summary {
    color: #962f2a;
    font-weight: 900;
    cursor: pointer;
}

.activity-delete-details p {
    color: #7a6562;
    font-size: 12px;
    line-height: 1.45;
}

.activity-delete-details form {
    display: grid;
    gap: 9px;
}

.activity-delete-details input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #dfc3c0;
    border-radius: 9px;
    font: inherit;
}

.fieldwork-skip-option strong {
    color: #5f4828;
}

.fieldwork-skip-option small {
    margin-top: 4px;
    color: #796c59;
    line-height: 1.45;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e9f6eb;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.live-indicator span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2e9b43;
    animation: fieldwork-pulse 1.4s infinite;
}

@keyframes fieldwork-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 155, 67, 0.5);
    }

    70% {
        box-shadow: 0 0 0 9px rgba(46, 155, 67, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 155, 67, 0);
    }
}

.fieldwork-timer-label {
    display: block;
    color: #758078;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.fieldwork-timer {
    display: block;
    margin: 5px 0 28px;
    color: #202124;
    font-size: clamp(48px, 10vw, 82px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 2px;
}

.fieldwork-live-details,
.fieldwork-complete-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin: 0 auto 28px;
    border: 1px solid #e0e7e1;
    border-radius: 16px;
    background: #e0e7e1;
    text-align: left;
}

.fieldwork-live-details div,
.fieldwork-complete-grid div {
    padding: 18px;
    background: #ffffff;
}

.fieldwork-live-details span,
.fieldwork-complete-grid span {
    display: block;
    margin-bottom: 4px;
    color: #78837a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.fieldwork-live-details strong,
.fieldwork-complete-grid strong {
    overflow-wrap: anywhere;
    color: #28372d;
    font-size: 14px;
    font-weight: 900;
}

.finish-fieldwork-form {
    padding-top: 7px;
}

.button-danger {
    background: #9f332d;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(159, 51, 45, 0.18);
}

.fieldwork-complete-card .success-symbol {
    margin-right: auto;
    margin-left: auto;
}

.fieldwork-message {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #d5dfd6;
    border-radius: 13px;
    background: #f7f9f7;
    color: #536158;
    font-size: 14px;
    font-weight: 800;
}

.fieldwork-reminder-dialog {
    width: min(560px, calc(100% - 32px));
    padding: 30px;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(18, 42, 24, 0.28);
}

.fieldwork-reminder-dialog::backdrop {
    background: rgba(15, 29, 19, 0.56);
}

.fieldwork-reminder-dialog h2 {
    margin: 8px 0 10px;
    color: #24352a;
    font-size: 26px;
}

.fieldwork-reminder-dialog p {
    color: #657269;
    line-height: 1.6;
}

.fieldwork-reminder-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

/* =========================================================
   Historical activities
   ========================================================= */

.historical-page {
    padding-bottom: 70px;
}

.historical-hero {
    margin-bottom: 24px;
}

.historical-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 26px;
}

.historical-action-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    padding: 28px;
    border: 1px solid #dde6df;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(22, 64, 31, 0.06);
}

.historical-action-card h2,
.historical-section h2 {
    margin: 5px 0 8px;
    color: #25352a;
    font-size: 23px;
}

.historical-action-card p,
.historical-section-heading p {
    color: #68756c;
    line-height: 1.55;
}

.historical-action-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #e8f2ea;
    color: var(--primary);
    font-size: 21px;
    font-weight: 900;
}

.historical-upload-form,
.historical-capture-form,
.historical-form-section {
    display: grid;
    gap: 16px;
}

.historical-upload-form {
    margin-top: 18px;
}

.historical-upload-form label,
.historical-capture-form label {
    display: grid;
    gap: 7px;
    color: #304238;
    font-size: 13px;
    font-weight: 900;
}

.historical-upload-form input,
.historical-upload-form textarea,
.historical-capture-form input,
.historical-capture-form select,
.historical-capture-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    border: 1px solid #d7e0d9;
    border-radius: 10px;
    background: #ffffff;
    color: #26352b;
    font: inherit;
}

.historical-upload-form small,
.historical-capture-form small {
    color: #718077;
    font-weight: 700;
}

.historical-capture-form .movement-distance-field {
    transition: color 160ms ease, opacity 160ms ease;
}

.historical-capture-form .movement-distance-field.is-disabled {
    color: #7d8981;
}

.historical-capture-form .movement-distance-field input:disabled {
    border-color: #e0e5e1;
    background: #f1f4f2;
    color: #89938d;
    cursor: not-allowed;
    opacity: 1;
}

.historical-section {
    margin-top: 24px;
    padding: 30px;
    border: 1px solid #e0e7e2;
    border-radius: 20px;
    background: #ffffff;
}

.historical-section-heading {
    margin-bottom: 20px;
}

.historical-section-heading p {
    max-width: 780px;
    margin-bottom: 0;
}

.historical-record-list {
    display: grid;
    gap: 12px;
}

.historical-record-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 19px;
    border: 1px solid #dde5df;
    border-radius: 14px;
    background: #fafcfb;
}

.historical-record-card.warning-record {
    border-left: 5px solid #c28a26;
    background: #fffaf1;
}

.historical-record-card h3 {
    margin: 6px 0 3px;
    color: #26352b;
}

.historical-record-card p {
    margin: 0 0 5px;
    color: #59685f;
}

.historical-record-card small {
    color: #748078;
    font-weight: 700;
}

.record-status,
.evidence-label {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #faedcf;
    color: #81590d;
    font-size: 11px;
    font-weight: 900;
}

.record-status.captured {
    background: #e5f2e8;
    color: #28653a;
}

.record-status.pending {
    background: #e8edf6;
    color: #405b86;
}

.evidence-label {
    background: #edf1ed;
    color: #536259;
}

.historical-empty-state {
    padding: 22px;
    border: 1px dashed #cfd9d1;
    border-radius: 13px;
    background: #fafcfb;
    color: #6b786f;
    text-align: center;
    font-weight: 800;
}

.historical-form-page {
    padding-bottom: 70px;
}

.historical-capture-form {
    margin-top: 24px;
}

.historical-form-section {
    padding: 28px;
    border: 1px solid #e0e7e2;
    border-radius: 18px;
    background: #ffffff;
}

.historical-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.historical-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.historical-not-held {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
    padding: 22px;
    border: 1px solid #ecd4d1;
    border-radius: 15px;
    background: #fff8f7;
}

.historical-not-held strong {
    color: #71342f;
}

.historical-not-held p {
    margin: 5px 0 0;
    color: #7c6663;
}

@media (max-width: 680px) {
    .fieldwork-primary-card,
    .fieldwork-live-card,
    .fieldwork-complete-card {
        padding: 27px 18px;
    }

    .fieldwork-live-details,
    .fieldwork-complete-grid {
        grid-template-columns: 1fr;
    }

    .fieldwork-reminder-actions {
        flex-direction: column;
    }

    .fieldwork-skip-option {
        align-items: stretch;
        flex-direction: column;
    }

    .historical-actions-grid,
    .historical-form-grid {
        grid-template-columns: 1fr;
    }

    .historical-action-card {
        grid-template-columns: 1fr;
    }

    .historical-record-card {
        align-items: stretch;
        flex-direction: column;
    }

    .historical-form-actions {
        flex-direction: column-reverse;
    }

    .historical-not-held {
        align-items: stretch;
        flex-direction: column;
    }

    .fieldwork-main-button {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================================
   Activity Reporting
   ========================================================= */

.report-page {
    width: min(100% - 32px, 1120px);
    margin: 0 auto;
    padding: 36px 0 70px;
}

.report-form {
    margin-top: 24px;
}

.report-form-section {
    padding: 34px;
}

.report-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.report-kpi-grid article {
    padding: 22px;
    border: 1px solid #e1e8e2;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(22, 64, 31, 0.055);
}

.report-kpi-grid span,
.report-complete-grid span {
    display: block;
    color: #78837a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.report-kpi-grid strong {
    display: block;
    margin-top: 7px;
    color: var(--primary);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.report-completion-warning {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 22px;
    padding: 17px 19px;
    border: 1px solid #c4d7c6;
    border-radius: 14px;
    background: #f1f8f2;
}

.report-completion-warning strong {
    color: var(--primary);
    font-size: 14px;
    font-weight: 900;
}

.report-completion-warning span {
    color: #68756b;
    font-size: 13px;
}

.report-complete-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 30px;
    border: 1px solid #dce6dd;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(22, 64, 31, 0.08);
    text-align: center;
}

.report-complete-hero h1 {
    margin: 7px 0 10px;
    color: #202124;
    font-size: clamp(34px, 6vw, 52px);
    font-weight: 900;
    line-height: 1.05;
}

.report-complete-hero p {
    max-width: 650px;
    margin: 0;
    color: #6d786f;
    line-height: 1.65;
}

.completed-status-badge {
    display: inline-flex;
    margin-top: 20px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.report-summary-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
}

.report-narrative-section {
    margin-top: 18px;
    padding: 19px;
    border-radius: 15px;
    background: #f6f8f6;
}

.report-narrative-section h3 {
    margin: 0 0 7px;
    color: #26352a;
    font-size: 16px;
    font-weight: 900;
}

.report-narrative-section p {
    margin: 0;
    color: #536158;
    line-height: 1.65;
    white-space: pre-wrap;
}

.report-evidence-manager,
.report-evidence-list {
    display: grid;
    gap: 16px;
}

.report-evidence-upload-row {
    padding: 20px;
    border: 1px solid #dce5de;
    border-radius: 16px;
    background: #f9fbf9;
}

.report-evidence-row-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    color: #26352a;
}

.report-evidence-remove {
    border: 0;
    background: transparent;
    color: #a33b34;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.report-evidence-remove:disabled {
    color: #a8b0aa;
    cursor: not-allowed;
}

.report-evidence-upload-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
}

.report-evidence-upload-grid label {
    display: grid;
    align-content: start;
    gap: 8px;
    color: #26352a;
    font-size: 13px;
    font-weight: 800;
}

.report-evidence-upload-grid input,
.report-evidence-upload-grid select {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 0 13px;
    border: 1px solid #ccd7ce;
    border-radius: 11px;
    background: #ffffff;
    color: #202124;
    font: inherit;
}

.report-evidence-upload-grid input[type="file"] {
    padding: 9px;
}

.report-evidence-upload-grid input:focus,
.report-evidence-upload-grid select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.1);
}

.report-evidence-upload-grid small {
    color: #738078;
    font-size: 11px;
}

.report-evidence-caption {
    grid-column: 1 / -1;
}

.report-evidence-preview {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
    background: #edf4ee;
    color: #415148;
    font-size: 12px;
    font-weight: 800;
}

.report-evidence-preview[hidden] {
    display: none;
}

.report-evidence-preview img {
    width: 92px;
    height: 72px;
    border-radius: 9px;
    object-fit: cover;
}

.report-evidence-add {
    justify-self: start;
}

.report-evidence-add:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

.report-evidence-consent {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 16px;
    border: 1px solid #dce5de;
    border-radius: 13px;
    background: #f4f8f4;
    color: #46564c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.report-evidence-consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--primary);
}

.report-evidence-reselect {
    padding: 13px 15px;
    border: 1px solid #eed9a8;
    border-radius: 12px;
    background: #fff9e9;
    color: #775b18;
    font-size: 12px;
    font-weight: 800;
}

.report-evidence-gallery-section {
    margin-bottom: 24px;
}

.report-evidence-gallery-section .panel-heading p {
    margin: 6px 0 0;
    color: #6d786f;
}

.report-evidence-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.report-evidence-card {
    overflow: hidden;
    margin: 0;
    border: 1px solid #dce5de;
    border-radius: 15px;
    background: #ffffff;
}

.report-evidence-card a,
.report-evidence-card img {
    display: block;
    width: 100%;
}

.report-evidence-card img {
    height: 210px;
    object-fit: cover;
}

.report-evidence-card figcaption {
    display: grid;
    gap: 5px;
    padding: 14px;
}

.report-evidence-card figcaption span {
    color: var(--primary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.report-evidence-card figcaption strong {
    color: #26352a;
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .report-summary-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .report-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-evidence-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .report-page {
        width: min(100% - 22px, 1120px);
        padding-top: 22px;
    }

    .report-form-section {
        padding: 23px 18px;
    }

    .report-complete-hero {
        padding: 36px 19px;
    }

    .report-evidence-upload-grid,
    .report-evidence-gallery {
        grid-template-columns: 1fr;
    }
}

/* Activity journey guide */

.activity-journey {
    margin: 18px 0;
    padding: 22px 24px;
    border: 1px solid #dce7df;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(22, 45, 35, 0.05);
}

.activity-journey-heading {
    margin-bottom: 16px;
}

.activity-journey-heading h2 {
    margin: 4px 0 0;
    color: #173c27;
    font-size: 1.05rem;
}

.activity-journey-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.activity-journey-steps > span:not(.journey-arrow) {
    padding: 8px 11px;
    border-radius: 999px;
    background: #edf6f0;
    color: #245f36;
    font-size: 0.82rem;
    font-weight: 800;
}

.journey-arrow {
    color: #6e8b76;
    font-weight: 900;
}

@media (max-width: 700px) {
    .activity-journey-steps {
        align-items: stretch;
        flex-direction: column;
    }

    .activity-journey-steps > span:not(.journey-arrow) {
        text-align: center;
    }

    .journey-arrow {
        text-align: center;
        transform: rotate(90deg);
    }
}

/* Our Impact page */

.impact-page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 64px;
    font-family: "Nunito", Arial, sans-serif;
}

.impact-page-topbar {
    margin-bottom: 18px;
}

.impact-page-shell .directory-hero {
    margin-bottom: 18px;
}

.impact-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.impact-summary-card {
    display: flex;
    min-height: 150px;
    padding: 20px;
    flex-direction: column;
    border: 1px solid #dce7df;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(22, 45, 35, 0.05);
}

.impact-summary-card span {
    color: #55705e;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.impact-summary-card strong {
    margin: 10px 0 8px;
    color: #17652f;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}

.impact-summary-card small {
    margin-top: auto;
    color: #66736b;
    font-size: 0.8rem;
    line-height: 1.45;
}

.impact-page-shell .activity-journey {
    margin-top: 0;
}

@media (max-width: 1050px) {
    .impact-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .impact-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .impact-page-shell {
        width: min(100% - 20px, 1180px);
    }

    .impact-summary-grid {
        grid-template-columns: 1fr;
    }
}

.impact-reporting-period {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 18px 22px;
    border: 1px solid #dce7df;
    border-radius: 18px;
    background: #edf6f0;
}

.impact-reporting-period strong {
    display: block;
    margin-top: 4px;
    color: #17652f;
    font-size: 1.15rem;
    font-weight: 900;
}

.impact-reporting-period p {
    max-width: 430px;
    margin: 0;
    color: #5f6e65;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: right;
}

@media (max-width: 700px) {
    .impact-reporting-period {
        align-items: flex-start;
        flex-direction: column;
    }

    .impact-reporting-period p {
        text-align: left;
    }
}

/* Impact by programme */

.programme-impact-section {
    margin-bottom: 18px;
    padding: 26px;
    border: 1px solid #dce7df;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(22, 45, 35, 0.05);
}

.programme-impact-heading {
    margin-bottom: 20px;
}

.programme-impact-heading h2 {
    margin: 5px 0 6px;
    color: #173c27;
    font-size: 1.45rem;
}

.programme-impact-heading p {
    margin: 0;
    color: #637069;
    line-height: 1.6;
}

.programme-impact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.programme-impact-card {
    --impact-accent: #237a43;
    --impact-soft: #eaf6ee;

    overflow: hidden;
    border: 1px solid #dce7df;
    border-radius: 17px;
    background: #ffffff;
}

.programme-impact-card[data-programme="schools"] {
    --impact-accent: #2563a6;
    --impact-soft: #edf4fb;
}

.programme-impact-card[data-programme="youth_development"] {
    --impact-accent: #c76a18;
    --impact-soft: #fff3e8;
}

.programme-impact-card[data-programme="community_support"] {
    --impact-accent: #76509b;
    --impact-soft: #f4eef9;
}

.programme-impact-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 17px 18px;
    background: var(--impact-soft);
}

.programme-impact-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 11px;
    background: #ffffff;
    font-size: 1.15rem;
}

.programme-impact-title h3 {
    margin: 0;
    color: var(--impact-accent);
    font-size: 1.05rem;
}

.programme-impact-stats {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0 18px 8px;
}

.programme-impact-stats div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #e7eee9;
}

.programme-impact-stats div:last-child {
    border-bottom: 0;
}

.programme-impact-stats dt {
    color: #617068;
    font-size: 0.8rem;
    font-weight: 700;
}

.programme-impact-stats dd {
    margin: 0;
    color: var(--impact-accent);
    font-size: 1.15rem;
    font-weight: 900;
}

@media (max-width: 1000px) {
    .programme-impact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .programme-impact-section {
        padding: 20px;
    }

    .programme-impact-grid {
        grid-template-columns: 1fr;
    }
}

/* Attendance Hub */

.attendance-hub-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 40px;
    font-family: "Nunito", Arial, sans-serif;
}

.attendance-hub-hero {
    margin-bottom: 18px;
}

.attendance-hub-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.attendance-hub-list-section {
    padding: 24px;
    border: 1px solid #dce7df;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(22, 45, 35, 0.05);
}

.attendance-hub-list-section .section-heading-row {
    margin-bottom: 18px;
}

.attendance-hub-list-section h2 {
    margin: 5px 0 0;
    color: #173c27;
    font-size: 1.45rem;
}

.attendance-hub-list {
    display: grid;
    gap: 13px;
}

@media (max-width: 800px) {
    .attendance-hub-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .attendance-hub-page {
        width: min(100% - 20px, 1180px);
    }

    .attendance-hub-summary {
        grid-template-columns: 1fr;
    }

    .attendance-hub-list-section {
        padding: 18px;
    }
}

/* Attendance Hub activity cards */

.attendance-hub-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 22px;
    padding: 18px 20px;
    border: 1px solid #dfe8e2;
    border-radius: 16px;
    background: #ffffff;
}

.attendance-hub-card:hover {
    border-color: #b9cebf;
    box-shadow: 0 7px 20px rgba(22, 45, 35, 0.06);
}

.attendance-hub-card-main h3 {
    margin: 4px 0 7px;
    color: #173c27;
    font-size: 1.05rem;
}

.attendance-hub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: #657169;
    font-size: 0.8rem;
}

.attendance-hub-card-status {
    min-width: 210px;
}

.attendance-state-badge {
    display: inline-block;
    margin-bottom: 9px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf6f0;
    color: #25623a;
    font-size: 0.74rem;
    font-weight: 900;
}

.attendance-state-badge[data-attendance-state="ready"] {
    background: #edf4fb;
    color: #2563a6;
}

.attendance-state-badge[data-attendance-state="in_progress"] {
    background: #fff3e8;
    color: #a95612;
}

.attendance-state-badge[data-attendance-state="needs_team"] {
    background: #f7eeee;
    color: #944545;
}

.attendance-hub-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    color: #647169;
    font-size: 0.76rem;
}

.attendance-hub-counts strong {
    color: #1f6335;
}

.attendance-hub-card-action {
    min-width: 150px;
    text-align: right;
}

.attendance-hub-card-action .button {
    white-space: nowrap;
}

@media (max-width: 850px) {
    .attendance-hub-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .attendance-hub-card-status,
    .attendance-hub-card-action {
        min-width: 0;
    }

    .attendance-hub-card-action {
        text-align: left;
    }
}

/* Volunteer QR card */

.volunteer-qr-panel {
    overflow: hidden;
}

.volunteer-qr-intro {
    margin: 6px 0 14px;
    color: #647169;
    font-size: 0.84rem;
    line-height: 1.5;
}

.volunteer-qr-image {
    display: flex;
    justify-content: center;
    margin: 14px 0;
}

.volunteer-qr-image img {
    display: block;
    width: min(100%, 250px);
    height: auto;
    padding: 10px;
    border: 1px solid #dce7df;
    border-radius: 14px;
    background: #ffffff;
}

.volunteer-qr-details {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 14px;
    text-align: center;
}

.volunteer-qr-details strong {
    color: #173c27;
}

.volunteer-qr-details span {
    color: #68756d;
    font-size: 0.8rem;
}

.volunteer-qr-panel .button {
    display: flex;
    width: 100%;
    justify-content: center;
}

.volunteer-qr-note {
    display: block;
    margin-top: 12px;
    color: #6b776f;
    font-size: 0.75rem;
    line-height: 1.5;
    text-align: center;
}

/* QR attendance entry */

.attendance-scan-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 20px 22px;
    border: 1px solid #d7e5db;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 7px 22px rgba(22, 45, 35, 0.05);
}

.attendance-scan-entry-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.attendance-scan-icon {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    border-radius: 15px;
    background: #edf6f0;
    font-size: 1.55rem;
}

.attendance-scan-entry h2 {
    margin: 4px 0 4px;
    color: #173c27;
    font-size: 1.18rem;
}

.attendance-scan-entry p {
    margin: 0;
    color: #66736b;
    font-size: 0.86rem;
    line-height: 1.5;
}


/* QR attendance scanner page */

.attendance-scanner-page {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 44px;
}

.attendance-scanner-hero {
    margin-bottom: 18px;
}

.attendance-scanner-panel {
    padding: 26px;
    border: 1px solid #dce7df;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 9px 26px rgba(22, 45, 35, 0.06);
}

.attendance-scanner-heading {
    margin-bottom: 18px;
}

.attendance-scanner-heading h2 {
    margin: 5px 0 0;
    color: #173c27;
    font-size: 1.35rem;
}

.scanner-status-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 20px;
    padding: 0;
    border: 0;
}

.scanner-status-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px 16px;
    border: 1px solid #dbe6de;
    border-radius: 14px;
    background: #f8fbf9;
    color: #506158;
    cursor: pointer;
    font-weight: 800;
}

.scanner-status-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.scanner-status-choice.is-selected {
    border-color: #27753f;
    background: #eaf5ed;
    color: #175e31;
    box-shadow: inset 0 0 0 1px #27753f;
}

.qr-reader {
    overflow: hidden;
    min-height: 280px;
    margin-bottom: 18px;
    border: 1px dashed #b9ccc0;
    border-radius: 18px;
    background: #f4f8f5;
}

.qr-reader:empty {
    display: grid;
    place-items: center;
}

.qr-reader:empty::before {
    content: "Camera preview will appear here";
    color: #758078;
    font-size: 0.88rem;
    font-weight: 700;
}

.qr-reader video {
    border-radius: 14px;
}

.qr-reader img {
    max-width: 100%;
}

.scanner-result {
    display: grid;
    gap: 4px;
    margin-bottom: 18px;
    padding: 15px 17px;
    border: 1px solid #dce7df;
    border-radius: 14px;
    background: #f6faf7;
}

.scanner-result strong {
    color: #173c27;
}

.scanner-result span {
    color: #657269;
    font-size: 0.85rem;
    line-height: 1.5;
}

.scanner-result-processing {
    border-color: #d8e2eb;
    background: #f1f6fa;
}

.scanner-result-success {
    border-color: #b8d9c2;
    background: #eaf6ed;
}

.scanner-result-notice {
    border-color: #ead8ae;
    background: #fff8e8;
}

.scanner-result-error {
    border-color: #e6c1c1;
    background: #fbefef;
}

.scanner-result-error strong {
    color: #8d3838;
}

.scanner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.scanner-actions .button {
    min-width: 150px;
    justify-content: center;
}

@media (max-width: 700px) {
    .attendance-scan-entry {
        align-items: stretch;
        flex-direction: column;
    }

    .attendance-scan-entry .button {
        width: 100%;
        justify-content: center;
    }

    .attendance-scanner-page {
        width: min(100% - 20px, 960px);
        padding-top: 20px;
    }

    .attendance-scanner-panel {
        padding: 18px;
    }

    .scanner-status-options {
        grid-template-columns: 1fr;
    }

    .scanner-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .scanner-actions .button {
        width: 100%;
    }
}

/* Hide the scanner stop button when the camera is inactive */
#stop-scanner:disabled {
    display: none;
}

/* QR scanner progress */

.scanner-progress-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

@media (max-width: 700px) {
    .scanner-progress-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Activity directory stage colours */

.activity-directory-group {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid #dce7df;
    border-radius: 20px;
}

.active-activity-group {
    background: #f7fafc;
    border-color: #dbe5ec;
}

.completed-activity-group {
    background: #f3f7f3;
    border-color: #d5e3d8;
}

.activity-directory-group .section-heading-row {
    margin-bottom: 18px;
}

.activity-directory-card {
    border-left: 6px solid transparent;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}

.activity-directory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(22, 45, 35, 0.08);
}


/* Planned */

.activity-directory-card[
    data-activity-status="planned"
] {
    border-left-color: #4b82bd;
    background: #f7fbff;
}

.status-badge[
    data-activity-status="planned"
] {
    background: #e5f0fb;
    color: #255d93;
}


/* Team assigned */

.activity-directory-card[
    data-activity-status="team-assigned"
] {
    border-left-color: #765aa7;
    background: #fbf9fe;
}

.status-badge[
    data-activity-status="team-assigned"
] {
    background: #eee8f8;
    color: #5e418e;
}


/* Attendance recorded */

.activity-directory-card[
    data-activity-status="attendance-recorded"
] {
    border-left-color: #287c75;
    background: #f5fbfa;
}

.status-badge[
    data-activity-status="attendance-recorded"
] {
    background: #dff2ef;
    color: #17665f;
}


/* Field work started */

.activity-directory-card[
    data-activity-status="field-work-started"
] {
    border-left-color: #c28a26;
    background: #fffaf1;
}

.status-badge[
    data-activity-status="field-work-started"
] {
    background: #faedcf;
    color: #8a5c08;
}


/* Field work completed */

.activity-directory-card[
    data-activity-status="field-work-completed"
] {
    border-left-color: #ca6a24;
    background: #fff8f2;
}

.status-badge[
    data-activity-status="field-work-completed"
] {
    background: #fbe7d7;
    color: #9a4810;
}


/* Report submitted */

.activity-directory-card[
    data-activity-status="report-submitted"
] {
    border-left-color: #5968aa;
    background: #f7f8fd;
}

.status-badge[
    data-activity-status="report-submitted"
] {
    background: #e6e9f8;
    color: #43528f;
}


/* Completed historical activity */

.completed-activity-card {
    border-left-color: #3d8354;
    background: #f7faf7;
}

.completed-activity-card:hover {
    border-left-color: #286a40;
}

.status-badge[
    data-activity-status="completed"
] {
    background: #dfeee2;
    color: #21663a;
}

.completed-activity-card .activity-directory-open {
    color: #45604e;
}

.completed-activity-card .activity-directory-id {
    color: #4d7059;
}


/* Compact layout on smaller screens */

@media (max-width: 700px) {
    .activity-directory-group {
        padding: 16px;
    }

    .activity-directory-card {
        border-left-width: 5px;
    }
}

/* Make Attendance Recorded clearly different from Completed */

.activity-directory-card[
    data-activity-status="attendance-recorded"
] {
    border-left-color: #367fc1;
    background: #f3f8fd;
}

.status-badge[
    data-activity-status="attendance-recorded"
] {
    background: #deecf9;
    color: #245f96;
}


/* Volunteer status colours */

.status-badge[data-volunteer-status] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.status-badge[data-volunteer-status]::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}


/* Active volunteer */

.status-badge[
    data-volunteer-status="active"
] {
    border: 1px solid #c9e2cf;
    background: #e2f1e5;
    color: #21663a;
}


/* Volunteer temporarily on pause */

.status-badge[
    data-volunteer-status="on-pause"
] {
    border: 1px solid #ead49c;
    background: #fff3d5;
    color: #8a5b08;
}


/* Former volunteer */

.status-badge[
    data-volunteer-status="former-volunteer"
] {
    border: 1px solid #d6dbd8;
    background: #eef1ef;
    color: #59625d;
}


/* Profile avatar reflects the current volunteer status */

.volunteer-profile-hero[
    data-volunteer-status="active"
] .profile-avatar {
    background: #1f6b32;
}

.volunteer-profile-hero[
    data-volunteer-status="on-pause"
] .profile-avatar {
    background: #b47813;
}

.volunteer-profile-hero[
    data-volunteer-status="former-volunteer"
] .profile-avatar {
    background: #68716c;
}


/* Status choices on the management page */

.volunteer-status-choice[
    data-volunteer-status="active"
] {
    border-left: 5px solid #34824b;
}

.volunteer-status-choice[
    data-volunteer-status="on-pause"
] {
    border-left: 5px solid #c18a26;
}

.volunteer-status-choice[
    data-volunteer-status="former-volunteer"
] {
    border-left: 5px solid #7a837e;
}

/* Volunteer Directory avatar status colours */

.volunteer-card[
    data-volunteer-status="active"
] .volunteer-avatar {
    background: #1f6b32;
}

.volunteer-card[
    data-volunteer-status="on-pause"
] .volunteer-avatar {
    background: #b47813;
}

.volunteer-card[
    data-volunteer-status="former-volunteer"
] .volunteer-avatar {
    background: #68716c;
}


/* Existing inactive activity assignments */

.inactive-assignment-panel {
    margin-bottom: 22px;
    padding: 22px;
    border: 1px solid #e3ddd0;
    border-radius: 18px;
    background: #fffdf8;
}

.inactive-assignment-panel .panel-heading {
    margin-bottom: 16px;
}

.inactive-assignment-panel .panel-heading p {
    max-width: 760px;
    margin-top: 6px;
    color: #68716c;
}

.inactive-assignment-list {
    display: grid;
    gap: 12px;
}

.inactive-assignment-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #dde4df;
    border-left: 5px solid #7a837e;
    border-radius: 15px;
    background: #ffffff;
}

.inactive-assignment-card[
    data-volunteer-status="on-pause"
] {
    border-left-color: #b47813;
    background: #fffaf0;
}

.inactive-assignment-card[
    data-volunteer-status="former-volunteer"
] {
    border-left-color: #68716c;
    background: #f5f7f6;
}

.inactive-assignment-card[
    data-volunteer-status="on-pause"
] .volunteer-avatar {
    background: #b47813;
}

.inactive-assignment-card[
    data-volunteer-status="former-volunteer"
] .volunteer-avatar {
    background: #68716c;
}

@media (max-width: 700px) {
    .inactive-assignment-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .inactive-assignment-card .status-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

/* Distinguish Planned from Attendance Recorded */

.activity-directory-card[
    data-activity-status="planned"
] {
    border-left-color: #8296a5;
    background: #f7f9fa;
}

.status-badge[
    data-activity-status="planned"
] {
    border: 1px solid #d5dfe5;
    background: #eaf0f3;
    color: #4f6472;
}


/* Attendance Hub stage colours */

/* Ready for attendance: neutral grey-blue */

.attendance-hub-card[
    data-attendance-state="ready"
] {
    border-left: 6px solid #8296a5;
    background: #f7f9fa;
}

.attendance-state-badge[
    data-attendance-state="ready"
],
.attendance-summary-card[
    data-attendance-state="ready"
] {
    border-color: #d5dfe5;
    background: #eaf0f3;
    color: #4f6472;
}


/* Attendance in progress: amber */

.attendance-hub-card[
    data-attendance-state="in_progress"
] {
    border-left: 6px solid #c18a26;
    background: #fffaf1;
}

.attendance-state-badge[
    data-attendance-state="in_progress"
],
.attendance-summary-card[
    data-attendance-state="in_progress"
] {
    border-color: #ead49c;
    background: #fff3d5;
    color: #8a5b08;
}


/* Attendance recorded: blue */

.attendance-hub-card[
    data-attendance-state="recorded"
] {
    border-left: 6px solid #367fc1;
    background: #f3f8fd;
}

.attendance-state-badge[
    data-attendance-state="recorded"
],
.attendance-summary-card[
    data-attendance-state="recorded"
] {
    border-color: #c9dff2;
    background: #deecf9;
    color: #245f96;
}


/* Needs team assignment: purple */

.attendance-hub-card[
    data-attendance-state="needs_team"
] {
    border-left: 6px solid #765aa7;
    background: #fbf9fe;
}

.attendance-state-badge[
    data-attendance-state="needs_team"
],
.attendance-summary-card[
    data-attendance-state="needs_team"
] {
    border-color: #d9ceed;
    background: #eee8f8;
    color: #5e418e;
}


/* Completed attendance record: green and view only */

.attendance-hub-card[
    data-attendance-state="completed"
] {
    border-left: 6px solid #3d8354;
    background: #f7faf7;
}

.attendance-state-badge[
    data-attendance-state="completed"
] {
    border: 1px solid #c9e2cf;
    background: #e2f1e5;
    color: #21663a;
}


/* Summary cards keep readable text */

.attendance-summary-card {
    border: 1px solid transparent;
}

.attendance-summary-card span,
.attendance-summary-card strong {
    color: inherit;
}


@media (max-width: 700px) {
    .attendance-hub-card[
        data-attendance-state
    ] {
        border-left-width: 5px;
    }
}

/* Clear Attendance Hub workload indicators */

.attendance-workload-section {
    margin-bottom: 18px;
}

.attendance-workload-heading {
    margin-bottom: 14px;
}

.attendance-workload-heading h2 {
    margin: 4px 0 2px;
}

.attendance-workload-heading p {
    margin: 0;
    color: #68716c;
}

.attendance-summary-card {
    min-height: 124px;
}

.attendance-summary-card small {
    display: block;
    margin-top: auto;
    color: inherit;
    font-size: 0.78rem;
    line-height: 1.35;
    opacity: 0.82;
}

@media (max-width: 700px) {
    .attendance-summary-card {
        min-height: 112px;
    }
}


/* Manage Activities workload indicators */

.activity-workload-section {
    margin-bottom: 18px;
}

.activity-workload-heading {
    margin-bottom: 14px;
}

.activity-workload-heading h2 {
    margin: 4px 0 2px;
}

.activity-workload-heading p {
    margin: 0;
    color: #68716c;
}

.activity-workload-card {
    min-height: 124px;
    border: 1px solid transparent;
}

.activity-workload-card small {
    display: block;
    margin-top: auto;
    color: inherit;
    font-size: 0.78rem;
    line-height: 1.35;
    opacity: 0.82;
}


/* Needs setup: neutral grey-blue */

.activity-workload-card[
    data-workflow-stage="needs-setup"
] {
    border-color: #d5dfe5;
    background: #eaf0f3;
    color: #4f6472;
}


/* Team and attendance stage: blue */

.activity-workload-card[
    data-workflow-stage="attendance"
] {
    border-color: #c9dff2;
    background: #deecf9;
    color: #245f96;
}


/* Fieldwork and reporting: orange */

.activity-workload-card[
    data-workflow-stage="fieldwork-reporting"
] {
    border-color: #efcfb7;
    background: #fbe7d7;
    color: #934812;
}


/* Completed: green */

.activity-workload-card[
    data-workflow-stage="completed"
] {
    border-color: #c9e2cf;
    background: #e2f1e5;
    color: #21663a;
}

.activity-workload-card span,
.activity-workload-card strong {
    color: inherit;
}

@media (max-width: 700px) {
    .activity-workload-card {
        min-height: 112px;
    }
}


/* Our Impact verified snapshot */

.impact-snapshot-section {
    margin-bottom: 18px;
}

.impact-snapshot-heading {
    margin-bottom: 14px;
}

.impact-snapshot-heading h2 {
    margin: 4px 0 2px;
}

.impact-snapshot-heading p {
    margin: 0;
    color: #68716c;
}

.impact-metric-card {
    min-height: 138px;
    border: 1px solid transparent;
}

.impact-metric-card small {
    display: block;
    margin-top: auto;
    color: inherit;
    font-size: 0.78rem;
    line-height: 1.35;
    opacity: 0.82;
}

.impact-metric-card span,
.impact-metric-card strong {
    color: inherit;
}


/* Volunteer attendances: blue */

.impact-metric-card[
    data-impact-metric="attendance"
] {
    border-color: #c9dff2;
    background: #deecf9;
    color: #245f96;
}


/* Unique volunteers: purple */

.impact-metric-card[
    data-impact-metric="volunteers"
] {
    border-color: #d9ceed;
    background: #eee8f8;
    color: #5e418e;
}


/* Programmes with results: orange */

.impact-metric-card[
    data-impact-metric="programmes"
] {
    border-color: #efcfb7;
    background: #fbe7d7;
    color: #934812;
}


/* Locations reached: teal */

.impact-metric-card[
    data-impact-metric="locations"
] {
    border-color: #c5e2de;
    background: #dff2ef;
    color: #17665f;
}


@media (max-width: 700px) {
    .impact-metric-card {
        min-height: 120px;
    }
}


/* Keep programme colours exclusive to programme identity */

.impact-snapshot-section {
    padding: 22px;
    border: 1px solid #dce7df;
    border-radius: 20px;
    background: #f7faf8;
}

.impact-metric-card[
    data-impact-metric
] {
    border-color: #dce7df;
    background: #ffffff;
    color: #24382f;
    box-shadow:
        inset 0 4px 0 #2f7a4a,
        0 6px 18px rgba(22, 45, 35, 0.04);
}

.impact-metric-card[
    data-impact-metric
] span {
    color: #355347;
}

.impact-metric-card[
    data-impact-metric
] strong {
    color: #1f6b32;
}

.impact-metric-card[
    data-impact-metric
] small {
    color: #68716c;
    opacity: 1;
}


/* Attendance register grouping */

.attendance-group-panel {
    margin-bottom: 20px;
}

.attendance-group-panel .section-heading-row p {
    max-width: 680px;
    margin: 4px 0 0;
    color: #68716c;
}


/* Attendance still needed */

.attendance-group-pending {
    border-color: #ead49c;
    background: #fffdf8;
}

.attendance-row-pending {
    border-left: 5px solid #c18a26;
    background: #fffaf1;
}


/* Attendance already recorded */

.attendance-group-recorded {
    border-color: #c9e2cf;
    background: #f7faf8;
}

.attendance-row-recorded {
    border-left: 5px solid #3d8354;
    background: #ffffff;
}

.attendance-row-recorded .volunteer-avatar {
    background: #3d8354;
}


/* Recorded attendance details */

.attendance-recorded-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
}

.attendance-recorded-badge,
.attendance-detail-tag,
.attendance-source-label {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.attendance-recorded-badge {
    padding: 7px 10px;
    border: 1px solid #c9e2cf;
    background: #e2f1e5;
    color: #21663a;
}

.attendance-recorded-badge[
    data-attendance-status="late"
] {
    border-color: #ead49c;
    background: #fff3d5;
    color: #8a5b08;
}

.attendance-recorded-badge[
    data-attendance-status="absent"
] {
    border-color: #efc8c3;
    background: #fbe8e5;
    color: #984239;
}

.attendance-recorded-badge[
    data-attendance-status="excused"
] {
    border-color: #d5dfe5;
    background: #eaf0f3;
    color: #4f6472;
}

.attendance-detail-tag,
.attendance-source-label {
    padding: 6px 9px;
    border: 1px solid #dce4df;
    background: #f2f6f3;
    color: #526159;
}

.attendance-source-label {
    margin-top: 7px;
}


@media (max-width: 760px) {
    .attendance-group-panel .section-heading-row {
        align-items: flex-start;
    }

    .attendance-recorded-details {
        margin-bottom: 8px;
    }
}


/* Attendance action and recorded-entry lock */

.attendance-action-needed {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    margin-top: 7px;
    padding: 6px 9px;
    border: 1px solid #e5c36c;
    border-radius: 999px;
    background: #fff0c4;
    color: #805300;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}

.attendance-row-pending .attendance-options {
    padding: 8px;
    border: 1px solid #ead49c;
    border-radius: 14px;
    background: #ffffff;
}

.attendance-recorded-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 170px;
    padding: 11px 14px;
    border: 1px solid #c9e2cf;
    border-radius: 999px;
    background: #eaf4ec;
    color: #21663a;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    cursor: default;
    pointer-events: none;
    user-select: none;
}

.attendance-recorded-check {
    display: inline-grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: #3d8354;
    color: #ffffff;
    font-size: 0.72rem;
}

.attendance-row-recorded {
    cursor: default;
}

#save-attendance-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

@media (max-width: 760px) {
    .attendance-recorded-state {
        width: 100%;
        min-width: 0;
    }
}


/* Manual attendance fallback */

.manual-reason-field {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #e5c36c;
    border-radius: 14px;
    background: #fff9e8;
}

.manual-reason-field[hidden] {
    display: none;
}

.manual-reason-field label {
    display: block;
    margin-bottom: 7px;
    color: #5f4709;
    font-size: 0.8rem;
    font-weight: 900;
}

.manual-reason-field select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #d7c487;
    border-radius: 10px;
    background: #ffffff;
    color: #24382f;
    font: inherit;
}

.manual-reason-field small {
    display: block;
    margin-top: 7px;
    color: #76622c;
    font-size: 0.74rem;
}

.attendance-row-pending {
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;
}

@media (max-width: 760px) {
    .attendance-row-pending {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }

    .attendance-row-pending
    .attendance-options {
        grid-column: 1 / -1;
    }
}


/* Activity report location verification */

.location-verification-intro {
    margin: 4px 0 16px;
    color: #68716c;
    font-size: 0.82rem;
    line-height: 1.45;
}

.location-capture-list {
    display: grid;
    gap: 10px;
}

.location-capture-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #dce7df;
    border-radius: 14px;
    background: #f8faf8;
}

.location-capture-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #21663a;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
}

.location-capture-item div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.location-capture-item strong {
    color: #24382f;
    font-size: 0.85rem;
}

.location-capture-item span {
    color: #526159;
    font-size: 0.76rem;
}

.location-capture-item small {
    color: #68716c;
    font-size: 0.72rem;
}

.location-result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
}

.location-result-grid article {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid #dce7df;
    border-radius: 14px;
    background: #ffffff;
}

.location-result-grid span {
    color: #68716c;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.location-result-grid strong {
    color: #1f6b32;
    font-size: 1rem;
    line-height: 1.25;
}

.location-result-grid small {
    color: #68716c;
    font-size: 0.69rem;
    line-height: 1.35;
}

.location-verification-note {
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid #c9dff2;
    border-radius: 12px;
    background: #f1f7fc;
    color: #365e7e;
    font-size: 0.74rem;
    line-height: 1.45;
}

.gps-technical-details {
    margin-top: 14px;
    border-top: 1px solid #dce7df;
    padding-top: 12px;
}

.gps-technical-details summary {
    color: #21663a;
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
}

.gps-technical-details .profile-side-list {
    margin-top: 12px;
}

.gps-technical-details dd {
    overflow-wrap: anywhere;
    font-size: 0.74rem;
}


/* Location verification card */

.location-verification-intro {
    margin: 4px 0 14px;
    color: #68716c;
    font-size: 0.78rem;
    line-height: 1.4;
}

.location-verification-list,
.location-verification-metrics {
    display: grid;
    gap: 10px;
}

.location-verification-list article,
.location-verification-metrics article {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #dce7df;
    border-radius: 12px;
    background: #f8faf8;
}

.location-verification-metrics {
    margin-top: 10px;
}

.location-verification-list span,
.location-verification-metrics span {
    color: #68716c;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.location-verification-list strong,
.location-verification-metrics strong {
    color: #24382f;
    font-size: 0.84rem;
    line-height: 1.3;
}

.location-verification-list small,
.location-verification-metrics small {
    color: #68716c;
    font-size: 0.7rem;
    line-height: 1.35;
}

.location-verification-note {
    margin: 12px 0 0;
    padding: 11px;
    border: 1px solid #c9dff2;
    border-radius: 11px;
    background: #f1f7fc;
    color: #365e7e;
    font-size: 0.72rem;
    line-height: 1.45;
}

.gps-technical-details {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #dce7df;
}

.gps-technical-details summary {
    color: #21663a;
    font-size: 0.76rem;
    font-weight: 900;
    cursor: pointer;
}

.gps-technical-details .profile-side-list {
    margin-top: 12px;
}

.gps-technical-details dd {
    overflow-wrap: anywhere;
    font-size: 0.72rem;
}


/* Route checkpoints */

.route-checkpoint-card {
    width: 100%;
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #c9dff2;
    border-radius: 18px;
    background: #f5f9fc;
    text-align: left;
}

.route-checkpoint-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.route-checkpoint-heading h2 {
    margin: 4px 0 0;
}

.route-checkpoint-count {
    display: grid;
    min-width: 90px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #e3eef8;
    color: #245f91;
    text-align: center;
}

.route-checkpoint-count strong {
    font-size: 1.35rem;
    line-height: 1;
}

.route-checkpoint-count span {
    margin-top: 4px;
    font-size: 0.7rem;
    font-weight: 800;
}

.route-checkpoint-card > p {
    max-width: 660px;
    margin: 12px 0 16px;
    color: #526159;
    font-size: 0.84rem;
    line-height: 1.45;
}

.route-checkpoint-form {
    display: grid;
    gap: 8px;
}

.route-checkpoint-button {
    width: fit-content;
}

.route-checkpoint-list {
    display: grid;
    gap: 9px;
    margin-top: 16px;
}

.route-checkpoint-list article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid #d7e4ed;
    border-radius: 13px;
    background: #ffffff;
}

.route-checkpoint-number {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #347eb6;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
}

.route-checkpoint-list article div {
    display: grid;
    gap: 2px;
}

.route-checkpoint-list article strong {
    color: #24382f;
    font-size: 0.82rem;
}

.route-checkpoint-list article small {
    color: #68716c;
    font-size: 0.7rem;
}


@media (max-width: 700px) {
    .route-checkpoint-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .route-checkpoint-count {
        width: fit-content;
    }

    .route-checkpoint-button {
        width: 100%;
    }
}


/* Resume fieldwork message */

.next-step-context {
    display: block;
    max-width: 230px;
    margin-top: 10px;
    color: #68716c;
    font-size: 0.74rem;
    line-height: 1.4;
}


/* Fieldwork movement type */

.fieldwork-mode-options {
    display: grid;
    gap: 12px;
    margin: 20px 0;
    padding: 0;
    border: 0;
    text-align: left;
}

.fieldwork-mode-options legend {
    margin-bottom: 3px;
    color: #24382f;
    font-size: 0.88rem;
    font-weight: 900;
}

.fieldwork-mode-choice {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid #dce7df;
    border-radius: 15px;
    background: #ffffff;
    cursor: pointer;
}

.fieldwork-mode-choice:hover {
    border-color: #8fb69a;
    background: #f7faf8;
}

.fieldwork-mode-choice:has(input:checked) {
    border-color: #2f7a4a;
    background: #edf6f0;
    box-shadow: inset 0 0 0 1px #2f7a4a;
}

.fieldwork-mode-choice input {
    width: 18px;
    height: 18px;
    accent-color: #2f7a4a;
}

.fieldwork-mode-icon {
    font-size: 1.4rem;
}

.fieldwork-mode-content {
    display: grid;
    gap: 3px;
}

.fieldwork-mode-content strong {
    color: #24382f;
    font-size: 0.9rem;
}

.fieldwork-mode-content small {
    color: #68716c;
    font-size: 0.76rem;
    line-height: 1.4;
}


@media (max-width: 700px) {
    .fieldwork-mode-choice {
        grid-template-columns: auto auto minmax(0, 1fr);
        padding: 13px;
    }
}


/* Manual checkpoint and missing-route warning */

.manual-checkpoint-details {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #d7e4ed;
}

.manual-checkpoint-details summary {
    color: #245f91;
    font-size: 0.84rem;
    font-weight: 900;
    cursor: pointer;
}

.manual-checkpoint-intro {
    margin: 12px 0;
    padding: 11px 13px;
    border-radius: 12px;
    background: #fff7df;
    color: #625227;
    font-size: 0.77rem;
    line-height: 1.45;
}

.manual-checkpoint-form {
    display: grid;
    gap: 13px;
    margin-top: 14px;
}

.manual-checkpoint-form label,
.finish-without-route-form label {
    display: grid;
    gap: 6px;
    color: #24382f;
    font-size: 0.78rem;
    font-weight: 800;
}

.manual-checkpoint-form input,
.manual-checkpoint-form select,
.manual-checkpoint-form textarea,
.finish-without-route-form select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccd9d1;
    border-radius: 11px;
    background: #ffffff;
    font: inherit;
}

.manual-checkpoint-list {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.manual-checkpoint-list article {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border: 1px solid #ead79d;
    border-radius: 12px;
    background: #fffaf0;
}

.manual-checkpoint-list article div {
    display: grid;
    gap: 3px;
}

.manual-checkpoint-list article small {
    color: #6f6753;
    font-size: 0.72rem;
}

.manual-checkpoint-list article > span {
    height: fit-content;
    flex-shrink: 0;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f3e4b8;
    color: #6b571e;
    font-size: 0.65rem;
    font-weight: 900;
}

.finish-route-warning {
    width: 100%;
    margin: 22px 0;
    padding: 20px;
    border: 1px solid #e8c16c;
    border-radius: 17px;
    background: #fff8e7;
    text-align: left;
}

.finish-route-warning h2 {
    margin: 5px 0 8px;
    color: #563f12;
}

.finish-route-warning > p {
    margin: 0 0 16px;
    color: #6d5a2c;
    font-size: 0.82rem;
    line-height: 1.45;
}

.finish-warning-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.finish-without-route-form {
    display: grid;
    gap: 11px;
    padding-top: 16px;
    border-top: 1px solid #ead49e;
}

@media (max-width: 700px) {
    .finish-warning-actions {
        display: grid;
    }

    .finish-warning-actions .button,
    .finish-without-route-form .button {
        width: 100%;
    }

    .manual-checkpoint-list article {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Main DYD homepage heading */

h1.home-main-heading {
    font-family: "Nunito", sans-serif;
    font-weight: 800;
}

/* DYD authenticated session controls */
.app-logout-form {
    display: inline-flex;
    margin: 0;
}

.app-logout-button {
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    padding: 0.45rem 0.72rem;
}

.app-logout-button:hover,
.app-logout-button:focus-visible {
    background: rgba(20, 92, 49, 0.08);
}

@media (max-width: 720px) {
    .app-logout-button {
        font-size: 0.75rem;
        padding: 0.38rem 0.58rem;
    }
}

/* Strong activity edit lock warning */
.activity-edit-lock-warning {
    display: grid !important;
    gap: 0.25rem !important;
    margin: 1rem 0 1.35rem !important;
    padding: 0.95rem 1rem !important;
    border: 1px solid #d8a72f !important;
    border-left: 6px solid #b97800 !important;
    border-radius: 12px !important;
    background: #fff3cd !important;
    color: #5f4300 !important;
    box-shadow: 0 4px 12px rgba(120, 80, 0, 0.08) !important;
}

.activity-edit-lock-warning strong {
    color: #694900 !important;
    font-size: 0.95rem !important;
    font-weight: 900 !important;
}

.activity-edit-lock-warning span {
    color: #72530b !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
}

/* Simplified administration alert groups */
.admin-alert-group-heading {
    margin: 20px 0 9px;
    color: #425348;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-alert-group-heading:first-of-type {
    margin-top: 18px;
}

.admin-alert-empty {
    margin: 0;
    padding: 13px 14px;
    border: 1px solid #dfe8e1;
    border-radius: 12px;
    background: #f7faf8;
    color: #68746c;
    font-size: 0.78rem;
}

.admin-alert-info {
    border-color: #cfe2d3;
    background: #f3f8f4;
}

.admin-alert-info > span {
    background: #dcecdf;
    color: #236336;
}

/* Simplified administration identity area */
.admin-hero-simple {
    grid-template-columns: minmax(0, 1fr);
}

/* Administration activity status overview */
.admin-pipeline-panel {
    margin-top: 24px;
}

.admin-pipeline-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.admin-pipeline-heading .panel-heading p {
    max-width: 620px;
    margin: 7px 0 0;
    color: #68746c;
    line-height: 1.5;
}

.admin-pipeline-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-pipeline-card {
    display: flex;
    min-height: 132px;
    flex-direction: column;
    gap: 6px;
    padding: 19px;
    border: 1px solid #dce7df;
    border-radius: 16px;
    background: #ffffff;
    box-shadow:
        inset 0 4px 0 #8296a5,
        0 7px 20px rgba(22, 45, 35, 0.045);
}

.admin-pipeline-card > span {
    color: #53665a;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.admin-pipeline-card > strong {
    margin: 5px 0;
    color: #1f6b32;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.admin-pipeline-card > small {
    margin-top: auto;
    color: #68746c;
    font-size: 0.76rem;
    line-height: 1.4;
}

.admin-pipeline-card[
    data-pipeline-stage="team-assigned"
] {
    box-shadow:
        inset 0 4px 0 #765aa7,
        0 7px 20px rgba(22, 45, 35, 0.045);
}

.admin-pipeline-card[
    data-pipeline-stage="attendance-recorded"
] {
    box-shadow:
        inset 0 4px 0 #367fc1,
        0 7px 20px rgba(22, 45, 35, 0.045);
}

.admin-pipeline-card[
    data-pipeline-stage="fieldwork-pending"
],
.admin-pipeline-card[
    data-pipeline-stage="reports-needed"
] {
    box-shadow:
        inset 0 4px 0 #c98a24,
        0 7px 20px rgba(22, 45, 35, 0.045);
}

.admin-pipeline-card[
    data-pipeline-stage="waiting-review"
] {
    box-shadow:
        inset 0 4px 0 #5968aa,
        0 7px 20px rgba(22, 45, 35, 0.045);
}

.admin-pipeline-card[
    data-pipeline-stage="returned"
] {
    box-shadow:
        inset 0 4px 0 #a6534c,
        0 7px 20px rgba(22, 45, 35, 0.045);
}

.admin-pipeline-card[
    data-pipeline-stage="completed"
] {
    box-shadow:
        inset 0 4px 0 #3d8354,
        0 7px 20px rgba(22, 45, 35, 0.045);
}

.admin-pipeline-card[
    data-pipeline-stage="cancelled"
] {
    background: #fafafa;
    box-shadow:
        inset 0 4px 0 #8a918c,
        0 7px 20px rgba(22, 45, 35, 0.04);
}

@media (max-width: 900px) {
    .admin-pipeline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .admin-pipeline-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-pipeline-heading .button {
        width: 100%;
    }

    .admin-pipeline-grid {
        grid-template-columns: 1fr;
    }

    .admin-pipeline-card {
        min-height: 112px;
    }
}

/* Report draft workflow */
.report-draft-status {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    border: 1px solid #dfb84a;
    border-left: 4px solid #c78900;
    border-radius: 0.75rem;
    background: #fff8dd;
    color: #624600;
}

.report-draft-status strong {
    color: #4f3900;
}

.status-badge[data-activity-status="report-draft"] {
    border-color: #dfb84a;
    background: #fff3c6;
    color: #745000;
}

.admin-pipeline-card[data-pipeline-stage="report-drafts"] {
    border-top-color: #c99a27;
}

/* =========================================================
   Historical activity record details
   ========================================================= */

.historical-record-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.historical-record-text {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.historical-record-text article,
.historical-evidence-panel {
    padding: 20px;
    border: 1px solid #dde5df;
    border-radius: 14px;
    background: #fafcfb;
}

.historical-record-text h3 {
    margin: 0 0 8px;
    color: #26352b;
}

.historical-record-text p {
    margin: 0;
    white-space: pre-wrap;
    color: #59685f;
}

.historical-evidence-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.historical-evidence-panel strong,
.historical-evidence-panel small {
    display: block;
}

.historical-evidence-panel small {
    margin-top: 5px;
    color: #748078;
}

@media (max-width: 680px) {
    .historical-record-actions {
        align-items: stretch;
        justify-content: flex-start;
        flex-direction: column;
    }

    .historical-record-text {
        grid-template-columns: 1fr;
    }

    .historical-evidence-panel {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Historical programme-results spacing */
[data-historical-programme-results] h3 {
    margin-top: 20px;
    margin-bottom: 12px;
}

