:root {
    --green: #006633;
    --green-dark: #004f28;
    --yellow: #f6c744;
    --text: #233126;
    --muted: #697568;
    --border: #dbe7d1;
    --danger: #b00020;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7f1;
    color: var(--text);
    border-top: 8px solid var(--green);
}

a {
    color: var(--green);
    font-weight: 700;
}

.site-header {
    background: var(--white);
    padding: 24px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand-logo {
    width: 86px;
    height: 86px;
    flex: 0 0 86px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    border: 4px solid var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo img {
    width: 118%;
    height: 118%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.brand-title {
    color: var(--green);
    font-size: 24px;
    font-weight: 900;
}

.brand-subtitle {
    margin-top: 6px;
    color: var(--muted);
    font-size: 18px;
}

.back-link {
    color: var(--green);
    font-size: 20px;
    font-weight: 900;
}

.page {
    max-width: 1440px;
    margin: 44px auto;
    padding: 0 60px;
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #08733b, #004f28);
    color: white;
    border-radius: 22px;
    padding: 52px 48px 68px;
    margin-bottom: 34px;
}

.hero::after {
    content: "";
    position: absolute;
    right: -55px;
    top: -105px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(246,199,68,0.35);
}

.hero-label {
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 28px;
}

.hero h1 {
    margin: 0 0 28px;
    font-size: 58px;
    line-height: 1.08;
    font-weight: 900;
}

.hero p {
    margin: 0;
    max-width: 880px;
    font-size: 24px;
    line-height: 1.5;
    font-weight: 700;
}

.panel {
    background: white;
    border-radius: 22px;
    padding: 36px;
    box-shadow: 0 18px 45px rgba(0,80,40,0.08);
    margin-bottom: 34px;
}

h2 {
    color: var(--green);
    font-size: 30px;
    font-weight: 900;
    border-bottom: 3px solid var(--border);
    padding-bottom: 16px;
    margin: 0 0 28px;
}

h3 {
    color: var(--green);
    font-size: 23px;
    font-weight: 900;
    margin: 0 0 14px;
}

p {
    line-height: 1.5;
}

label {
    display: block;
    font-weight: 900;
    margin: 18px 0 8px;
}

input,
select,
textarea {
    width: 100%;
    border: 2px solid #cbd9c3;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 17px;
    background: white;
    color: var(--text);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(0,102,51,0.12);
}

button {
    background: var(--green);
    color: white;
    border: 0;
    border-radius: 14px;
    padding: 15px 22px;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    margin-top: 20px;
}

button:hover {
    background: var(--green-dark);
}

.notice,
.error {
    padding: 18px 22px;
    border-radius: 14px;
    font-weight: 800;
    margin-bottom: 24px;
}

.notice {
    background: #eef8ee;
    border-left: 6px solid var(--green);
}

.error {
    background: #fff0f0;
    border-left: 6px solid var(--danger);
}

.form-message {
    position: sticky;
    top: 12px;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.compact {
    margin: 0;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-label input {
    width: auto;
}

.progress {
    height: 18px;
    background: #e4ecdd;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 16px;
}

.progress span {
    display: block;
    height: 100%;
    background: var(--yellow);
    border-radius: 999px;
}

.progress-text {
    margin: 10px 0 0;
    color: var(--green);
    font-weight: 900;
}

.status-pill {
    display: inline-block;
    background: #eef8ee;
    color: var(--green);
    font-weight: 900;
    padding: 7px 14px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 15px;
}

.status-open {
    background: #eaf8ea;
}

.status-done {
    background: #eaf1fb;
}

.is-complete summary {
    background: #f3f9ff;
}

.is-complete summary:hover {
    background: #edf6ff;
}

.is-complete .status-pill {
    background: #eaf1fb;
}

.item-link-button {
    display: inline-block;
    background: var(--green);
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 900;
    margin: 10px 0 14px;
}

.item-link-button:hover {
    background: var(--green-dark);
    color: white;
}

/* Publieke sponsoroverzicht */

.sponsor-overview {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    overflow: hidden;
}

.sponsor-head,
.sponsor-row summary {
    display: grid;
    grid-template-columns: 2.4fr 1fr 1fr 1fr 1fr 1.25fr;
    gap: 16px;
    align-items: center;
}

.sponsor-head {
    background: #eef4ea;
    color: var(--green);
    font-weight: 900;
    padding: 14px 18px;
}

.sponsor-row {
    border-top: 1px solid var(--border);
}

.sponsor-row summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 18px;
    min-height: 76px;
}

.sponsor-row summary::-webkit-details-marker {
    display: none;
}

.sponsor-row summary:hover {
    background: #f8faf6;
}

.sponsor-title-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sponsor-title-cell::before {
    content: "▶";
    color: var(--green);
    font-weight: 900;
    flex: 0 0 auto;
}

.sponsor-row[open] .sponsor-title-cell::before {
    content: "▼";
}

.sponsor-title-cell strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-title-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.mobile-title-info small {
    display: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.sponsor-thumb {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    flex: 0 0 auto;
}

.sponsor-thumb-empty {
    background: var(--green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}

.sponsor-row-detail {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 30px;
    background: #f8faf6;
    border-top: 1px solid var(--border);
    padding: 26px;
}

.sponsor-detail-text,
.sponsor-detail-form {
    min-width: 0;
}

.sponsor-detail-form {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
}

.compact-form label {
    margin-top: 12px;
}

.compact-form input,
.compact-form textarea {
    font-size: 16px;
    padding: 12px 14px;
}

.compact-form textarea {
    min-height: 90px;
}

.empty-list {
    padding: 20px;
}

/* Nieuw item inklapbaar */

.add-item-slider > summary {
    cursor: pointer;
    list-style: none;
    color: var(--green);
    font-size: 24px;
    font-weight: 900;
}

.add-item-slider > summary::-webkit-details-marker {
    display: none;
}

.add-item-slider > summary::before {
    content: "▶ ";
}

.add-item-slider[open] > summary::before {
    content: "▼ ";
}

.add-item-slider form {
    margin-top: 24px;
    border-top: 3px solid var(--border);
    padding-top: 24px;
}

/* Admin */

.login-panel {
    max-width: 520px;
    margin: 80px auto;
}

.admin-compact-table {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    overflow: visible;
}

.admin-head,
.admin-row summary {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr 0.9fr 70px;
    gap: 14px;
    align-items: center;
}

.admin-head {
    background: #eef4ea;
    color: var(--green);
    font-weight: 900;
    padding: 14px 18px;
    border-radius: 16px 16px 0 0;
}

.admin-row {
    position: relative;
    border-top: 1px solid var(--border);
}

.admin-row summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
}

.admin-row summary::-webkit-details-marker {
    display: none;
}

.admin-row summary:hover {
    background: #f8faf6;
}

.admin-row summary span:first-child::before {
    content: "▶ ";
    color: var(--green);
    font-weight: 900;
}

.admin-row[open] summary span:first-child::before {
    content: "▼ ";
}

.admin-details {
    background: #f8faf6;
    padding: 26px;
    border-top: 1px solid var(--border);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
}

.admin-photo {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 18px;
}

.edit-item-form,
.mail-sponsors-form {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 24px;
}

.mail-sponsors-form textarea {
    min-height: 120px;
}

.admin-menu-wrap {
    position: relative;
    justify-self: end;
}

.menu-button {
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--green);
    border: 1px solid var(--border);
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
}

.menu-button:hover {
    background: #eef4ea;
    color: var(--green);
}

.admin-menu {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    z-index: 100;
    min-width: 190px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.14);
    overflow: hidden;
}

.admin-menu-wrap.open .admin-menu {
    display: block;
}

.admin-menu form {
    margin: 0;
}

.admin-menu button {
    display: block;
    width: 100%;
    background: white;
    color: var(--text);
    border: 0;
    border-radius: 0;
    padding: 12px 14px;
    margin: 0;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
}

.admin-menu button:hover {
    background: #eef4ea;
    color: var(--green);
}

.admin-menu .danger-link {
    color: var(--danger);
}

.admin-menu .danger-link:hover {
    background: #fff0f0;
    color: var(--danger);
}

.contribution-list {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: white;
    overflow: visible;
}

.contribution-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 60px;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

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

/* Fallback tabellen */

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    background: #eef4ea;
    color: var(--green);
    font-weight: 900;
}

/* Mobiel */

@media (max-width: 950px) {
    .site-header {
        padding: 20px;
        gap: 18px;
        align-items: flex-start;
    }

    .page {
        padding: 0 18px;
        margin: 28px auto;
    }

    .hero {
        padding: 34px 28px 44px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 19px;
    }

    .panel {
        padding: 24px;
    }

    .form-grid,
    .sponsor-row-detail,
    .detail-grid,
    .contribution-row {
        grid-template-columns: 1fr;
    }

    .sponsor-head,
    .admin-head {
        display: none;
    }

    .sponsor-row summary {
        grid-template-columns: 1fr auto;
    }

    .sponsor-row summary > span:not(:first-child):not(.mobile-value) {
        display: none;
    }

    .mobile-title-info small {
        display: block;
    }

    .mobile-value {
        display: block !important;
        justify-self: end;
        font-weight: 900;
        color: var(--green);
        white-space: nowrap;
    }

    .sponsor-title-cell strong {
        white-space: normal;
        line-height: 1.2;
    }

    .admin-row summary {
        grid-template-columns: 1fr 42px;
    }

    .admin-row summary > span:not(:first-child):not(.admin-menu-wrap) {
        display: none;
    }

    .admin-menu-wrap {
        justify-self: end;
    }
    .brand-logo {
        width: 72px;
        height: 72px;
    }
    /* FIX HEADER LOGO */
.site-header .brand .brand-logo {
    width: 86px !important;
    height: 86px !important;
    flex: 0 0 86px !important;
    max-width: 86px !important;
    max-height: 86px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: white !important;
    border: 4px solid var(--yellow) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.site-header .brand .brand-logo img {
    width: 118% !important;
    height: 118% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

@media (max-width: 950px) {
    .site-header .brand .brand-logo {
        width: 68px !important;
        height: 68px !important;
        flex-basis: 68px !important;
        max-width: 68px !important;
        max-height: 68px !important;
    }
}
.admin-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--border);
}

.admin-title-row h2 {
    margin: 0;
    padding: 0;
    border: 0;
}

.export-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: var(--green);
    color: #fff;
    text-decoration: none;

    padding: 12px 22px;
    border-radius: 14px;

    font-size: 16px;
    font-weight: 900;
    line-height: 1;

    transition: .2s ease;
    box-shadow: 0 6px 18px rgba(0,102,51,.18);
}

.export-button:hover {
    background: var(--green-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,102,51,.25);
}

.export-button:active {
    transform: translateY(0);
}

@media (max-width: 950px) {
    .admin-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .export-button {
        width: 100%;
        justify-content: center;
    }
}
/* CSV knop rechts naast Items */
.admin-title-row {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 20px !important;
    margin-bottom: 28px !important;
    padding-bottom: 16px !important;
    border-bottom: 3px solid var(--border) !important;
    width: 100% !important;
}

.admin-title-row h2 {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.admin-title-row .export-button {
    justify-self: end !important;
}
}