:root {
    --page-background: #f3f5f7;
    --panel-background: #ffffff;
    --border: #d9dee4;
    --text: #20262d;
    --muted: #68717c;
    --primary: #174f72;
    --primary-hover: #103d59;

    --concept: #d5a900;
	--open: #378b55;
	--closed: #b64545;

	--capacity-incomplete: #d5a900;
	--capacity-complete: #378b55;
	--capacity-overbooked: #dc7b27;

    --radius: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--page-background);
    color: var(--text);
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 15px;
}

.site-header {
    background: #123f5b;
    color: white;
    border-bottom: 4px solid #8fbc4a;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-title {
    font-size: 23px;
    font-weight: 750;
}

.site-subtitle {
    margin-top: 3px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.76);
}

.site-nav a {
    color: white;
    text-decoration: none;
    font-weight: 650;
}

.page {
    width: min(1280px, calc(100% - 32px));
    margin: 28px auto 60px;
}

.page-heading {
    margin-bottom: 18px;
}

.page-heading h1 {
    margin: 0 0 5px;
    font-size: 27px;
}

.page-heading p {
    margin: 0;
    color: var(--muted);
}

.filters {
    display: grid;
    grid-template-columns:
        minmax(260px, 1fr)
        repeat(4, minmax(145px, 190px))
        auto;
    gap: 12px;
    align-items: end;

    margin-bottom: 16px;
    padding: 16px;

    background: var(--panel-background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-field label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.filter-field input,
.filter-field select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;

    background: white;
    border: 1px solid #bfc7cf;
    border-radius: 5px;

    color: var(--text);
    font: inherit;
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: var(--primary);
    outline: 3px solid rgba(23, 79, 114, 0.12);
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-row {
    position: relative;
    display: grid;
    grid-template-columns: 7px 82px minmax(0, 1fr) 130px;
    gap: 16px;

    min-height: 138px;
    padding: 0 16px 0 0;

    overflow: hidden;
    background: var(--panel-background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.event-row[hidden] {
    display: none;
}

.status-marker {
    height: 100%;
    background: var(--concept);
}

.status-0 .status-marker {
    background: var(--concept);
}

.status-1 .status-marker {
    background: var(--open);
}

.status-2 .status-marker {
    background: var(--closed);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 70px;
    text-align: center;
}

.event-day {
    color: #174f72;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.event-month {
    margin-top: 3px;
    color: #7a8591;
    font-size: 12px;
    font-weight: 600;
}

.event-content {
    min-width: 0;
    padding: 16px 0;
}

.event-topline h2 {
    margin: 0 0 7px;
    font-size: 18px;
    line-height: 1.25;
}

.event-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.event-title-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.event-uci-logo {
    flex: 0 0 auto;
    display: block;
    width: auto;
    height: 24px;
    margin-top: 1px;
    object-fit: contain;
}

.event-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.label,
.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;

    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.label {
    background: #eef1f4;
    color: #4c5661;
}

.status-badge-0 {
    background: #fff4c7;
    color: #765d00;
}

.status-badge-1 {
    background: #e3f4e8;
    color: #22663b;
}

.status-badge-2 {
    background: #f7e2e2;
    color: #8a3030;
}

.event-details {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(170px, 1fr));
    gap: 8px 22px;

    margin-top: 14px;
}

.detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.detail-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.event-date-closed {
    color: var(--closed);
    font-weight: 600;
}

.event-info {
    margin-top: 13px;
    padding: 9px 11px;

    background: #f7f8f9;
    border-left: 3px solid #c9d0d7;
    border-radius: 3px;

    color: #47505a;
    line-height: 1.4;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.event-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;

    padding: 16px 0;
}

.event-capacity {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin-bottom: 6px;
    padding: 8px 6px;

    border: 1px solid currentColor;
    border-radius: 6px;

    text-align: center;
}

.event-capacity-value {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.event-capacity-label {
    margin-top: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.capacity-incomplete {
    background: #fff9df;
    color: #806600;
}

.capacity-complete {
    background: #e8f6ec;
    color: #23683d;
}

.capacity-overbooked {
    background: #fff0e1;
    color: #995010;
}


.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 39px;
    padding: 8px 13px;

    border: 1px solid transparent;
    border-radius: 5px;

    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button-primary {
    background: var(--primary);
    color: white;
}

.button-primary:hover {
    background: var(--primary-hover);
}

.button-secondary {
    background: white;
    border-color: #bcc5ce;
    color: #35404a;
}

.button-secondary:hover:not(:disabled) {
    background: #f2f4f6;
}

/* ==========================================================
   Actieknoppen
   ========================================================== */

.button-success {
    background: var(--open);
    border-color: var(--open);
    color: white;
}

.button-success:hover:not(:disabled) {
    background: #2c7345;
}

.button-warning {
    background: #f3b347;
    border-color: #d8921b;
    color: #3a2b08;
}

.button-warning:hover:not(:disabled) {
    background: #e3a12d;
}

.button-danger {
    background: var(--closed);
    border-color: var(--closed);
    color: white;
}

.button-danger:hover:not(:disabled) {
    background: #8b3b3b;
}

.button-disabled {
    background: #8fa0ad;
    border-color: #8fa0ad;
    color: white;
}

.button:disabled {
    cursor: not-allowed;
}

.button-success:disabled,
.button-warning:disabled,
.button-danger:disabled {
    opacity: 1;
}

.no-results {
    margin-top: 16px;
    padding: 24px;

    background: white;
    border: 1px dashed #b9c1c9;
    border-radius: var(--radius);

    color: var(--muted);
    text-align: center;
}

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

    .filter-search {
        grid-column: 1 / -1;
    }

    .event-row {
        grid-template-columns: 7px 70px minmax(0, 1fr);
    }

    .event-actions {
        grid-column: 2 / -1;
        flex-direction: row;
        justify-content: flex-start;
        padding-top: 0;
    }

    .event-details {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
	
	    .event-title-group {
        gap: 8px;
    }

    .event-uci-logo {
        height: 20px;
    }

    .event-capacity {
        width: 100%;
        margin: 0 0 4px;
    }
}

@media (max-width: 620px) {
    .site-header-inner {
        width: min(100% - 22px, 1280px);
    }

    .site-subtitle,
    .site-nav {
        display: none;
    }

    .page {
        width: min(100% - 20px, 1280px);
        margin-top: 18px;
    }

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

    .filter-search {
        grid-column: auto;
    }

    .event-row {
        grid-template-columns: 6px 52px minmax(0, 1fr);
        gap: 10px;
        padding-right: 11px;
    }

    .event-day {
        font-size: 23px;
    }

    .event-month {
        font-size: 11px;
    }

    .event-details {
        grid-template-columns: 1fr;
    }

    .event-actions {
        grid-column: 2 / -1;
    }

    .event-actions .button {
        flex: 1;
    }
}

/* ==========================================================
   Event Edit
   ========================================================== */

.event-edit-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-section {
    background: var(--panel-background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

.form-section-heading {
    margin-bottom: 16px;
}

.form-section-heading h2 {
    margin: 0 0 4px;
    font-size: 19px;
}

.form-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.form-field label,
.form-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    font: inherit;
    border: 1px solid #bfc7cf;
    border-radius: 5px;
    background: white;
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 3px solid rgba(23,79,114,.12);
    border-color: var(--primary);
}

.form-field input[readonly] {
    background: #f5f6f7;
    color: #666;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
}

.checkbox-field input {
    width: auto;
    min-height: auto;
}

.form-help {
    font-size: 12px;
    color: var(--muted);
}

.current-status {
    display: flex;
    align-items: center;
    min-height: 42px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.button-draft {
    background: var(--concept);
    color: white;
}

.button-draft:hover:not(:disabled) {
    background: #b99000;
}

.button-open {
    background: var(--open);
    color: white;
}

.button-open:hover:not(:disabled) {
    background: #2c7345;
}

.button-close {
    background: #a74848;
    color: white;
}

.button-close:hover:not(:disabled) {
    background: #8b3b3b;
}

.form-message {
    margin-bottom: 16px;
    padding: 14px;
    border-radius: var(--radius);
    font-weight: 600;
}

.form-message-error {
    background: #fdeaea;
    color: #8b2f2f;
    border: 1px solid #efb8b8;
}

@media (max-width: 720px) {

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

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

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

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

}

/* ============================================================
   MOBS Events — Landingspagina
   ============================================================ */

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    gap: 32px;
    align-items: stretch;
    margin-bottom: 32px;
}

.home-hero-content,
.home-info-card {
    background: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.home-hero-content {
    padding: 52px;
    position: relative;
    overflow: hidden;
}

.home-hero-content::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    right: -90px;
    bottom: -120px;
    border-radius: 50%;
    background: rgba(128, 190, 54, 0.14);
}

.home-kicker {
    display: inline-block;
    margin-bottom: 18px;
    color: #074998;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-hero h1 {
    margin: 0;
    max-width: 700px;
    color: #17212b;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
}

.home-hero h1 span {
    color: #074998;
}

.home-intro {
    max-width: 680px;
    margin: 24px 0 0;
    color: #56616d;
    font-size: 19px;
    line-height: 1.65;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.home-actions .button {
    min-width: 150px;
    text-align: center;
}

.home-login-button[disabled] {
    cursor: not-allowed;
    opacity: 0.7;
}

.home-login-note {
    margin: 18px 0 0;
    color: #687481;
    font-size: 14px;
}

.home-info-card {
    padding: 36px;
    background: linear-gradient(
        145deg,
        #074998 0%,
        #0a5aad 100%
    );
    color: #ffffff;
}

.home-info-icon {
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 50%;
    background: #80be36;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
}

.home-info-card h2 {
    margin: 0 0 22px;
    font-size: 25px;
}

.home-feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-feature-list li {
    position: relative;
    padding: 12px 0 12px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    line-height: 1.45;
}

.home-feature-list li:last-child {
    border-bottom: 0;
}

.home-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #b8e779;
    font-weight: 700;
}

.home-panels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-panel {
    display: flex;
    gap: 18px;
    padding: 26px;
    background: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.035);
}

.home-panel-number {
    display: flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf4fb;
    color: #074998;
    font-size: 18px;
    font-weight: 700;
}

.home-panel h2 {
    margin: 3px 0 9px;
    color: #17212b;
    font-size: 19px;
}

.home-panel p {
    margin: 0;
    color: #64707d;
    line-height: 1.55;
}

.home-footer-note {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding: 20px 24px;
    border-radius: 10px;
    background: #edf4fb;
    color: #074998;
}

.home-footer-note span {
    color: #56616d;
}


/* ============================================================
   Responsive
   ============================================================ */

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

    .home-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .home-hero-content {
        padding: 34px 24px;
    }

    .home-info-card {
        padding: 28px 24px;
    }

    .home-actions {
        flex-direction: column;
    }

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

    .home-footer-note {
        flex-direction: column;
    }
}

.login-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #d8dee5;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.login-header h1 {
    margin-top: 0;
    margin-bottom: 18px;
}

.login-header p {
    line-height: 1.55;
}

.login-intro {
    font-weight: 700;
}

.login-card .form-group {
    margin-top: 24px;
    margin-bottom: 18px;
}

.login-card label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.login-card input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #b9c4ce;
    border-radius: 6px;
    font-size: 1rem;
}

.login-card input[type="email"]:focus {
    border-color: #17618a;
    outline: 2px solid rgba(23, 97, 138, 0.15);
}

.login-message {
    margin: 22px 0;
    padding: 14px 16px;
    border-radius: 6px;
    line-height: 1.45;
}

.login-message-success {
    background: #edf7ed;
    border: 1px solid #9ac89a;
}

.login-message-error {
    background: #fff1f1;
    border: 1px solid #d49a9a;
}

.login-help {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #d8dee5;
    color: #4f5f6d;
}

.login-help h2 {
    margin-top: 0;
    font-size: 1.05rem;
}

.login-help ul {
    padding-left: 22px;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .login-card {
        padding: 22px 18px;
    }
}

/* ==========================================================
   Gedeelde eventcomponenten
   ========================================================== */

.event-icons {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.event-icon {
    display: block;
    width: auto;
    height: 28px;
    object-fit: contain;
}

.event-header-card {
    margin-bottom: 18px;
    padding: 20px 22px;
    background: var(--panel-background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.event-header-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.event-header-kicker {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.event-header-card h1 {
    margin: 0;
    font-size: 27px;
    line-height: 1.2;
}

.event-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
    margin-top: 10px;
    color: var(--muted);
}

.event-header-meta span {
    position: relative;
}

.event-header-meta span:not(:last-child)::after {
    content: "•";
    position: absolute;
    right: -11px;
    color: #a3abb3;
}

.event-header-icons {
    padding-top: 2px;
}

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

    .filter-search {
        grid-column: 1 / -1;
    }

    .filter-actions {
        align-self: end;
    }
}

@media (max-width: 620px) {
    .event-topline,
    .event-header-main {
        gap: 12px;
    }

    .event-icon {
        height: 23px;
    }

    .event-header-card {
        padding: 17px;
    }

    .event-header-card h1 {
        font-size: 23px;
    }

    .event-header-meta {
        flex-direction: column;
        gap: 4px;
    }

    .event-header-meta span::after {
        display: none;
    }
}


/* ==========================================================
   Laatste EventAdmin / Event Edit verfijningen
   ========================================================== */

.event-header-identity {
    min-width: 0;
}

.event-header-side {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.event-header-controls {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.event-header-capacity {
    min-width: 125px;
    margin: 0;
}

.event-header-back {
    white-space: nowrap;
}

.form-status-actions {
    margin-top: 0;
}

.form-status-actions .button:disabled {
    background: #e4e7ea;
    border-color: #cdd3d9;
    color: #8a939c;
    opacity: 1;
}

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

    .filter-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .event-header-main {
        flex-direction: column;
    }

    .event-header-side {
        width: 100%;
        align-items: stretch;
    }

    .event-header-icons {
        justify-content: flex-start;
    }

    .event-header-controls {
        flex-wrap: wrap;
    }

    .event-header-capacity,
    .event-header-back {
        flex: 1 1 160px;
    }
}


/* ==========================================================
   Events — ledenmock-up
   ========================================================== */

.member-filters {
    grid-template-columns:
        minmax(280px, 1fr)
        repeat(3, minmax(150px, 190px))
        auto;
}

.member-event-row .status-marker {
    background: var(--open);
}

.member-event-row .button-close:disabled {
    background: var(--closed);
    border-color: var(--closed);
    color: white;
    opacity: 0.72;
}

@media (max-width: 1050px) {
    .member-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-filters .filter-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .member-filters {
        grid-template-columns: 1fr;
    }

    .member-filters .filter-search {
        grid-column: auto;
    }
}

@media (max-width: 620px) {
    .event-date {
        justify-content: flex-start;
        padding-top: 18px;
    }

    .event-day {
        font-size: 16px;
        white-space: nowrap;
    }

    .event-month {
        display: none;
    }
}

.event-day-full {
    display: none;
}

@media (max-width: 620px) {
    .event-day-short,
    .event-month {
        display: none;
    }

    .event-day-full {
        display: block;
        font-size: 14px;
        white-space: nowrap;
    }

    .event-date {
        justify-content: flex-start;
        padding-top: 18px;
    }
	.event-row {
    grid-template-columns: 6px 82px minmax(0, 1fr);
	}
}

/* ==========================================================
   Algemene meldingspagina's
   ========================================================== */

.message-card {
    max-width: 640px;
    margin: 30px auto;
    padding: 40px;

    background: #fff;
    border: 1px solid #d9dee5;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);

    text-align: center;
}

@media (max-width: 620px) {

    .message-card {
        margin: 20px auto;
        padding: 24px 18px;
    }

}

.message-icon {
    font-size: 42px;
    margin-bottom: 16px;
}

.message-card h1 {
    margin-bottom: 14px;
}

.message-card p {
    color: #5f6b7a;
    line-height: 1.6;
}

.message-actions {
    margin-top: 28px;
}

.duo-options {
    display: grid;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 18px;
}

.duo-option {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    padding: 14px 16px;

    border: 1px solid #cfd6dc;
    border-radius: 10px;

    background: #ffffff;
    cursor: pointer;

    box-sizing: border-box;
}

.duo-option:hover {
    border-color: #2f8f57;
    background: #f6fbf8;
}

.duo-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex: 0 0 auto;
}

.duo-option span {
    display: block;
}

.duo-option strong {
    display: block;
    font-size: 16px;
}

.duo-option small {
    display: block;
    margin-top: 3px;
    color: #667085;
}

.duo-option:has(input[type="radio"]:checked) {
    border: 2px solid #2f8f57;
    background: #eef8f2;
}

@media (max-width: 600px) {
    .duo-option {
        min-height: 58px;
        padding: 12px 14px;
    }
}

.registration-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;

    margin: 18px -16px 0;
    padding: 12px 16px;

    background: rgba(245, 247, 249, 0.96);
    border-top: 1px solid #d0d7de;
}

.registration-action-bar .button {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
}

.flash-container {
    margin-bottom: 20px;
}

.flash {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.flash-success {
    background: #d4edda;
}

.flash-error {
    background: #f8d7da;
}

.flash-info {
    background: #d1ecf1;
}

.event-capacity-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.event-capacity-link {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.85;
}

.capacity-empty {
    background: #ececec;
    border-color: #cfcfcf;
    color: #666;
}


/* ==========================================================
   Capaciteit / deelnemerslijst
   ========================================================== */

.capacity-open {
    background: #e8f6ec;
    border-color: #e8f6ec;
    color: #23683d;
}

.capacity-waiting {
    background: #fff4c7;
    border-color: #d5a900;
    color: #765d00;
}

.event-capacity-compact {
    min-height: 39px;
    margin: 0;
    padding: 8px 12px;
}

.event-capacity-compact .event-capacity-value {
    font-size: 16px;
}

/* ==========================================================
   Participant Table
   ========================================================== */

.participant-section {
    margin-top: 18px;
}

.participant-section h2 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 19px;
}

.participant-count {
    display: inline-block;

    margin-left: 8px;
    padding: 2px 10px;

    border-radius: 999px;

    background: #eef3f8;
    color: #34506d;

    font-size: 15px;
    font-weight: 700;
}

.participant-waiting-section .participant-count {
    background: #fff2d8;
    color: #b36b00;
}

.participant-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--panel-background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.participant-table {
    width: 100%;
    border-collapse: collapse;
}

.participant-table--management {
    min-width: 930px;
}

.participant-table th {
    padding: 9px 10px;
    border-bottom: 2px solid #d9dee4;
    background: #eef1f4;
    color: #4c5661;
    font-size: 12px;
    font-weight: 750;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.035em;
    white-space: nowrap;
}

.participant-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #e3e7eb;
    vertical-align: middle;
}

.participant-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.participant-table tbody tr:nth-child(even) {
    background: #f5f6f7;
}

.participant-table tbody tr:hover {
    background: #eef3f7;
}

.participant-table tbody tr:last-child td {
    border-bottom: 0;
}

.participant-number,
.participant-table th.participant-number {
    width: 42px;
    text-align: left;
    font-weight: 650;
}

.participant-name {
    min-width: 145px;
    font-weight: 600;
    text-align: left;
}

.participant-pilot {
    color: #1d3557;
}

.participant-duo {
    min-width: 155px;
}

.participant-date,
.participant-table th.participant-date {
    white-space: nowrap;
}

.participant-date-day,
.participant-date-time {
    display: block;
}

.participant-date-time {
    margin-top: 1px;
    color: var(--muted);
    font-size: 12px;
}

.participant-by {
    min-width: 145px;
}

.participant-empty {
    color: #888;
    font-style: italic;
}

/* ==========================================================
   Compacte duo-status
   ========================================================== */

.duo-status-icon {
    display: inline-flex;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;

    align-items: center;
    justify-content: center;

    margin-right: 7px;

    border: 1px solid currentColor;
    border-radius: 50%;

    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    vertical-align: 1px;
}

/* Duo bevestigd */
.duo-status-icon--confirmed {
    background: #d7efdf;
    color: #16713a;
}

/* Wacht op bevestiging */
.duo-status-icon--waiting {
    background: #ffe89a;
    color: #806000;
}

/* Actie piloot nodig */
.duo-status-icon--action {
    background: #ffd9b8;
    color: #a74d00;
}

/* Nieuwe duo-aanvraag */
.duo-status-icon--admin {
    background: #ead8fa;
    color: #7536a8;
}

/* Probleem / geweigerd */
.duo-status-icon--rejected {
    background: #ffd5d5;
    color: #b52626;
}

/* ==========================================================
   Vrije plaats
   ========================================================== */

.participant-free-row td {
    color: #888;
}

/* ==========================================================
   Wachtlijst
   ========================================================== */

.participant-waiting-section h2 {
    color: #b36b00;
}

/* ==========================================================
   Participant Table — responsive
   ========================================================== */

@media (min-width: 1050px) {
    .participant-table--management .participant-date-day,
    .participant-table--management .participant-date-time {
        display: inline;
    }

    .participant-table--management .participant-date-time {
        margin: 0 0 0 4px;
        font-size: inherit;
    }
}

@media (max-width: 720px) {
    .participant-table th,
    .participant-table td {
        padding: 9px 8px;
    }

    .participant-name {
        min-width: 145px;
    }

    .participant-duo {
        min-width: 150px;
    }

    .participant-table--management {
        min-width: 900px;
    }
}

/* ==========================================================
   Compacte ledenweergave — vaste kolomuitlijning
   ========================================================== */

.participant-table:not(.participant-table--management) {
    table-layout: fixed;
}

.participant-table:not(.participant-table--management)
th:nth-child(1),
.participant-table:not(.participant-table--management)
td:nth-child(1) {
    width: 48px;
}

.participant-table:not(.participant-table--management)
th:nth-child(2),
.participant-table:not(.participant-table--management)
td:nth-child(2) {
    width: 42%;
}

.participant-table:not(.participant-table--management)
th:nth-child(3),
.participant-table:not(.participant-table--management)
td:nth-child(3) {
    width: auto;
}

/* Event zonder duo: deelnemer links uitlijnen */
.participant-table:not(.participant-table--management)
th:nth-child(2):last-child,
.participant-table:not(.participant-table--management)
td:nth-child(2):last-child {
    width: auto;
    text-align: left;
}

a.busy-link.is-busy {
    pointer-events: none;
    cursor: wait;
    opacity: 0.85;
}

/* ==========================================================
   Acties deelnemerslijn en duo
   ========================================================== */

.participant-line-action,
.participant-table th.participant-line-action {
    width: 44px;
    min-width: 44px;
    padding-left: 6px;
    padding-right: 6px;
    text-align: center;
}

.participant-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;
    padding: 0;

    border: 1px solid transparent;
    border-radius: 5px;

    background: transparent;
    color: inherit;

    font: inherit;
    font-size: 16px;
    line-height: 1;

    cursor: pointer;
}

.participant-action:hover {
    background: #e7ebef;
    border-color: #c8d0d8;
}

.participant-action:focus-visible {
    outline: 3px solid rgba(23, 79, 114, 0.18);
    outline-offset: 1px;
}

.participant-action--delete:hover,
.participant-action--remove:hover {
    background: #f8e3e3;
    border-color: #dca9a9;
}

.participant-action--add:hover,
.participant-action--link:hover {
    background: #e4f3e8;
    border-color: #add0b8;
}

.participant-action--edit:hover {
    background: #fff3d6;
    border-color: #dbc486;
}

.participant-duo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.participant-duo-info {
    display: flex;
    align-items: center;
    min-width: 0;
}

.participant-duo-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.participant-duo-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    flex: 0 0 auto;
}

@media (max-width: 700px) {

    .participant-duo-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .participant-duo-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .participant-action {
        width: 32px;
        height: 32px;
    }
}

.participant-action-icon {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    pointer-events: none;
}

.participant-status-icon {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-right: 7px;
    object-fit: contain;
}

.participant-action--delete img {
    width: 22px;
    height: 22px;
}

.participant-table--management {
    table-layout: fixed;
}

.participant-table--management
.participant-line-action {
    width: 44px;
}

.participant-table--management
.participant-number {
    width: 42px;
}

.participant-table--management
.participant-pilot {
    width: 165px;
}

.participant-table--management
.participant-duo {
    width: 245px;
}

.participant-table--management
.participant-date {
    width: 135px;
}

.participant-table--management
.participant-by {
    width: 155px;
}


.participant-line-action--header {
    vertical-align: middle;
}

.participant-line-action--header .participant-action {
    margin: -4px 0;
}

@media (max-width: 1024px) {
    .participant-table--management {
        min-width: 880px;
    }

    .participant-table--management .participant-pilot {
        width: 150px;
    }

    .participant-table--management .participant-duo {
        width: 220px;
    }

    .participant-table--management .participant-by {
        width: 145px;
    }
}

/* =========================================
   Algemene schermblokkering tijdens actie
   ========================================= */

.page-busy-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(45,55,72,.18);
    backdrop-filter: blur(1px);
}

.page-busy-overlay.is-active {
    display: flex;
}

.page-busy-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;

    padding: 24px 28px;

    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.page-busy-spinner {
    width: 52px;
    height: 52px;

    border: 7px solid #d7dde3;
    border-top-color: #164c6b;
    border-radius: 50%;

    animation: page-busy-spin 0.8s linear infinite;
}

.page-busy-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222831;
}

@keyframes page-busy-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   HOOFDNAVIGATIE
   ========================================================= */

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;

    min-height: 42px;
    padding: 9px 14px;

    border-radius: 8px;

    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    text-decoration: none;
}


/* =========================================================
   WIE BEN IK
   ========================================================= */

.identity-panel {
    min-width: 240px;
    padding: 10px 14px;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.08);
}

.identity-summary {
    margin-bottom: 9px;
}

.identity-name {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.identity-role {
    margin-top: 2px;

    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.identity-logout {
    display: inline-block;
    margin-top: 9px;

    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.identity-logout:hover {
    color: #ffffff;
}


/* =========================================================
   TECHNISCHE INFO SCHUIVER
   ========================================================= */

.tech-info-toggle {
    display: flex;
    align-items: center;
    gap: 9px;

    cursor: pointer;
    user-select: none;
}

.tech-info-toggle-input {
    position: absolute;
    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}

.tech-info-toggle-slider {
    position: relative;
    flex: 0 0 auto;

    width: 42px;
    height: 23px;

    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);

    transition: background-color 0.18s ease;
}

.tech-info-toggle-slider::after {
    content: "";

    position: absolute;
    top: 3px;
    left: 3px;

    width: 17px;
    height: 17px;

    border-radius: 50%;
    background: #ffffff;

    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);

    transition: transform 0.18s ease;
}

.tech-info-toggle-input:checked
+ .tech-info-toggle-slider {
    background: #25b99a;
}

.tech-info-toggle-input:checked
+ .tech-info-toggle-slider::after {
    transform: translateX(19px);
}

.tech-info-toggle-input:focus-visible
+ .tech-info-toggle-slider {
    outline: 3px solid rgba(255, 255, 255, 0.48);
    outline-offset: 2px;
}

.tech-info-toggle-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.84rem;
    font-weight: 600;
}


/* =========================================================
   TECHNISCH INFORMATIEPANEEL
   ========================================================= */

.tech-info-panel {
    max-width: 1800px;
    margin: 14px auto 0;
    padding: 0 28px;
}

.tech-info-panel[hidden] {
    display: none;
}

.tech-info-inner {
    max-width: 760px;
    margin-left: auto;
    padding: 18px 20px;

    border: 1px solid #ccd6df;
    border-radius: 12px;

    background: #ffffff;
    box-shadow: 0 8px 24px rgba(35, 45, 55, 0.12);
}

.tech-info-heading {
    margin-bottom: 14px;

    color: #1d2733;
    font-size: 1.05rem;
    font-weight: 800;
}

.tech-info-list {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 9px 20px;

    margin: 0;
}

.tech-info-list > div {
    min-width: 0;
    padding: 9px 10px;

    border-radius: 7px;
    background: #f4f6f8;
}

.tech-info-list dt {
    margin: 0 0 3px;

    color: #667381;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.tech-info-list dd {
    margin: 0;

    color: #1f2933;
    font-size: 0.91rem;
    font-weight: 600;

    overflow-wrap: anywhere;
}


/* =========================================================
   SUPPORTACTIES
   ========================================================= */

.tech-info-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 16px;
    padding-top: 14px;

    border-top: 1px solid #dde3e8;
}

.tech-info-actions .btn {
    min-height: 40px;
    padding: 9px 15px;

    border: 1px solid #b9c5cf;
    border-radius: 7px;

    background: #ffffff;
    color: #263442;

    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;

    cursor: pointer;
}

.tech-info-actions .btn:hover {
    background: #edf2f5;
}

.tech-info-actions .btn:focus-visible {
    outline: 3px solid rgba(22, 75, 104, 0.25);
    outline-offset: 2px;
}


/* =========================================================
   RESPONSIVE HEADER
   ========================================================= */

@media (max-width: 1050px) {

    .site-header-inner {
        align-items: flex-start;
    }

    .site-header-user-area {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    .identity-panel {
        min-width: 225px;
    }

}

@media (max-width: 760px) {

    .site-header-inner {
        padding: 16px 18px;

        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .site-header-user-area {
        align-items: stretch;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .identity-panel {
        min-width: 0;
    }

    .tech-info-panel {
        padding: 0 16px;
    }

    .tech-info-inner {
        max-width: none;
    }

    .tech-info-list {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {

    .site-title {
        font-size: 1.65rem;
    }

    .site-nav {
        display: grid;
        grid-template-columns: 1fr;
    }

    .site-nav a {
        width: 100%;
    }

    .tech-info-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .tech-info-actions .btn {
        width: 100%;
    }

}

/* =========================================================
   VOORDEUR - LOGIN EN INFORMATIE
   ========================================================= */

.home-hero-login {
    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(360px, 0.75fr);
    gap: 36px;
    align-items: stretch;
}


/* Linker welkomstkaart */

.home-hero-content {
    padding: 56px 62px;

    border: 1px solid #d5dde5;
    border-radius: 16px;

    background: #ffffff;
    box-shadow: 0 10px 28px rgba(31, 43, 55, 0.08);
}

.home-kicker {
    margin-bottom: 26px;

    color: #0953a3;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.home-hero-content h1 {
    margin: 0;

    color: #18212b;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 0.98;
}

.home-hero-content h1 span {
    color: #0953a3;
}

.home-intro {
    max-width: 720px;
    margin: 34px 0 30px;

    color: #536170;
    font-size: 1.25rem;
    line-height: 1.55;
}


/* Blauwe informatiekaart */

.home-benefits {
    display: grid;
    gap: 0;

    margin-top: 30px;
    padding: 24px 28px;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #0756ad,
            #0b67bd
        );

    color: #ffffff;
    box-shadow: 0 10px 24px rgba(7, 72, 145, 0.18);
}

.home-benefit {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;

    padding: 13px 0;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.15);
}

.home-benefit:last-child {
    border-bottom: 0;
}

.home-benefit > span {
    color: #a5e535;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.2;
}

.home-benefit strong {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.45;
}


/* Ander toestel / andere browser */

.home-device-note {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;

    margin-top: 22px;
    padding: 18px 20px;

    border: 1px solid #d6e3c7;
    border-radius: 11px;

    background: #f3f9ec;
    color: #283422;
}

.home-device-note-icon {
    font-size: 1.35rem;
}

.home-device-note strong {
    display: block;
    margin-bottom: 5px;
}

.home-device-note p {
    margin: 0;
    color: #52604a;
    line-height: 1.5;
}


/* Rechter aanmeldkaart */

.home-login-card {
    padding: 42px 38px;

    border: 1px solid #d5dde5;
    border-radius: 16px;

    background: #ffffff;
    box-shadow: 0 10px 28px rgba(31, 43, 55, 0.08);
}

.home-login-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;
    margin-bottom: 22px;

    border-radius: 50%;

    background: #edf5fc;
    color: #164b68;
    font-size: 1.45rem;
}

.home-login-card h2 {
    margin: 0 0 14px;

    color: #18212b;
    font-size: 1.75rem;
    line-height: 1.2;
}

.home-login-card > p {
    margin: 0 0 28px;

    color: #536170;
    font-size: 1rem;
    line-height: 1.55;
}


/* Aanmeldformulier */

.home-login-form {
    display: block;
}

.home-login-form .form-group {
    display: block;
    margin-bottom: 18px;
}

.home-login-form label {
    display: block;
    margin-bottom: 8px;

    color: #1d2733;
    font-size: 1rem;
    font-weight: 800;
}

.home-login-form input[type="email"] {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 12px 14px;

    border: 1px solid #aebdca;
    border-radius: 8px;

    background: #ffffff;
    color: #1c2732;

    font: inherit;
    font-size: 1rem;

    box-sizing: border-box;
}

.home-login-form input[type="email"]:focus {
    border-color: #1672ad;
    outline: 3px solid rgba(22, 114, 173, 0.17);
    outline-offset: 1px;
}

.home-login-submit {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;

    border: 0;
    border-radius: 8px;

    background: #185b7d;
    color: #ffffff;

    font: inherit;
    font-size: 1rem;
    font-weight: 800;

    cursor: pointer;
}

.home-login-submit:hover {
    background: #124b69;
}

.home-login-submit:focus-visible {
    outline: 3px solid rgba(24, 91, 125, 0.28);
    outline-offset: 3px;
}

.home-login-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}


/* Wat gebeurt er daarna? */

.home-login-help {
    margin-top: 28px;
    padding-top: 24px;

    border-top: 1px solid #dbe2e8;
}

.home-login-help strong {
    display: block;
    margin-bottom: 10px;

    color: #263442;
    font-size: 1rem;
}

.home-login-help p {
    margin: 0 0 10px;

    color: #5d6a77;
    line-height: 1.55;
}


/* Drie stappen */

.home-panels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;

    margin-top: 30px;
}

.home-panel {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    align-items: start;

    padding: 28px;

    border: 1px solid #d5dde5;
    border-radius: 14px;

    background: #ffffff;
    box-shadow: 0 6px 18px rgba(31, 43, 55, 0.05);
}

.home-panel-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: #edf5fc;
    color: #0953a3;

    font-size: 1.1rem;
    font-weight: 800;
}

.home-panel h2 {
    margin: 2px 0 10px;

    color: #18212b;
    font-size: 1.25rem;
    line-height: 1.25;
}

.home-panel p {
    margin: 0;

    color: #657382;
    line-height: 1.55;
}


/* Footer van de voordeur */

.home-footer-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-top: 30px;
    padding: 22px 28px;

    border-radius: 12px;

    background: #edf5fc;
    color: #536170;
}

.home-footer-note strong {
    color: #0953a3;
}


/* Responsive */

@media (max-width: 1050px) {

    .home-hero-login {
        grid-template-columns: 1fr;
    }

    .home-login-card {
        max-width: none;
    }

}

@media (max-width: 780px) {

    .home-hero-content,
    .home-login-card {
        padding: 34px 26px;
    }

    .home-panels {
        grid-template-columns: 1fr;
    }

    .home-footer-note {
        align-items: flex-start;
        flex-direction: column;
    }

}

@media (max-width: 480px) {

    .home-hero-content,
    .home-login-card {
        padding: 28px 20px;
    }

    .home-panel {
        grid-template-columns: 44px 1fr;
        padding: 22px 18px;
    }

    .home-panel-number {
        width: 40px;
        height: 40px;
    }

}

/* =========================================================
   PORTAAL
   ========================================================= */

.portal-welcome {
    margin-bottom: 28px;
}

.portal-welcome-text {
    padding: 30px 34px;

    border: 1px solid #d5dde5;
    border-radius: 14px;

    background: #ffffff;
    box-shadow: 0 8px 24px rgba(31, 43, 55, 0.06);
}

.portal-welcome-kicker {
    margin-bottom: 10px;

    color: #51606f;
    font-size: 1rem;
}

.portal-welcome-text h1 {
    margin: 0 0 10px;

    color: #18212b;
    font-size: 2.2rem;
    line-height: 1.15;
}

.portal-welcome-text p {
    margin: 0;

    color: #657382;
    font-size: 1.05rem;
}


/* Tegeloverzicht */

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


/* Basistegel */

.portal-card {
    position: relative;

    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 18px;
    align-items: center;

    min-height: 150px;
    padding: 26px 28px;

    border: 1px solid #d5dde5;
    border-radius: 14px;

    background: #ffffff;
    color: #1d2733;

    text-decoration: none;

    box-shadow: 0 7px 20px rgba(31, 43, 55, 0.06);

    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease;
}

.portal-card:hover,
.portal-card:focus-visible {
    transform: translateY(-2px);

    border-color: #9fb4c4;

    box-shadow: 0 12px 28px rgba(31, 43, 55, 0.11);

    color: #1d2733;
    text-decoration: none;
}

.portal-card:focus-visible {
    outline: 3px solid rgba(22, 75, 104, 0.22);
    outline-offset: 3px;
}


/* Icoon */

.portal-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    border-radius: 14px;

    background: #edf5fc;
    color: #0953a3;

    font-size: 1.8rem;
}


/* Inhoud */

.portal-card-content h2 {
    margin: 0 0 8px;

    color: #18212b;
    font-size: 1.35rem;
    line-height: 1.2;
}

.portal-card-content p {
    margin: 0;

    color: #657382;
    line-height: 1.5;
}

.portal-card-arrow {
    color: #0953a3;
    font-size: 1.7rem;
    font-weight: 800;
}


/* Mijn omgeving - nog niet actief */

.portal-card-disabled {
    cursor: default;

    background: #f7f8f9;
    color: #7d8791;

    box-shadow: none;
}

.portal-card-disabled:hover {
    transform: none;

    border-color: #d5dde5;

    box-shadow: none;
}

.portal-card-disabled .portal-card-icon {
    background: #eceff2;
    color: #7d8791;
}

.portal-card-disabled .portal-card-content h2 {
    color: #5e6974;
}

.portal-card-status {
    display: inline-block;
    margin-top: 12px;
    padding: 5px 9px;

    border-radius: 999px;

    background: #e8edf1;
    color: #5f6b76;

    font-size: 0.78rem;
    font-weight: 800;
}


/* Eventbeheer - beheercontext */

.portal-card-admin {
    border-color: #e4c9a5;

    background: #fffaf3;
}

.portal-card-admin .portal-card-icon {
    background: #fff0dc;
    color: #a85d00;
}

.portal-card-admin .portal-card-arrow {
    color: #a85d00;
}


/* Footer op portaal */

.portal-grid + .home-footer-note {
    margin-top: 30px;
}


/* Responsive */

@media (max-width: 900px) {

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

}

@media (max-width: 560px) {

    .portal-welcome-text {
        padding: 24px 20px;
    }

    .portal-welcome-text h1 {
        font-size: 1.8rem;
    }

    .portal-card {
        grid-template-columns: 52px 1fr;
        min-height: 0;
        padding: 22px 20px;
    }

    .portal-card-icon {
        width: 48px;
        height: 48px;

        font-size: 1.45rem;
    }

    .portal-card-arrow {
        display: none;
    }

}

/* ==========================================================
   DEFINITIEVE COMPACTE HEADER
   Mobiel + tablet portrait:
   titel/naam links, iconen rechts.

   Tablet landscape + desktop:
   dezelfde structuur, aangevuld met tekstlabels.
   ========================================================== */

.site-header {
    position: relative;
    z-index: 100;

    background: #164b68;
    color: #ffffff;

    border-bottom: 4px solid #8fbc4a;
}

.site-header.management-mode {
    background: #fff1dc;
    color: #6f3b00;

    border-bottom-color: #d98218;
}

.site-header-inner {
    position: relative;

    width: min(1800px, 100%);
    min-height: 58px;
    margin: 0 auto;
    padding: 7px 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}


/* ==========================================================
   Identiteit links
   ========================================================== */

.site-header-identity {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
}

.site-brand-link {
    display: block;

    color: #ffffff;
    text-decoration: none;
}

.site-brand-link:hover,
.site-brand-link:focus-visible {
    color: #ffffff;
    text-decoration: none;
}

.site-title {
    display: block;

    color: inherit;

    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.15;

    white-space: nowrap;
}

.site-user-name,
.site-subtitle {
    display: block;
    max-width: 165px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.2;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-header.management-mode .site-brand-link,
.site-header.management-mode .site-title {
    color: #6f3b00;
}

.site-header.management-mode .site-user-name,
.site-header.management-mode .site-subtitle {
    color: rgba(111, 59, 0, 0.72);
}


/* ==========================================================
   Snelle acties rechts
   ========================================================== */

.site-header-quick-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.header-mode-form {
    margin: 0;
}

.header-quick-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;

    border: 1px solid transparent;
    border-radius: 8px;

    background: transparent;
    color: #ffffff;

    font: inherit;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.header-quick-action:hover,
.header-quick-action:focus-visible,
.header-quick-action.is-active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.18);

    color: #ffffff;
    text-decoration: none;
}

.header-quick-action:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

.header-quick-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.header-menu-icon {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
}

.header-mode-icon {
    display: block;

    width: 25px;
    height: 25px;

    object-fit: contain;
    pointer-events: none;
}

.header-quick-label {
    display: none;
}


/* Beheermodus */

.site-header.management-mode .header-quick-action {
    color: #6f3b00;
}

.site-header.management-mode .header-quick-action:hover,
.site-header.management-mode .header-quick-action:focus-visible,
.site-header.management-mode .header-quick-action.is-active {
    background: rgba(169, 93, 18, 0.13);
    border-color: rgba(169, 93, 18, 0.2);

    color: #512b00;
}

.site-header.management-mode
.header-quick-action:focus-visible {
    outline-color: rgba(169, 93, 18, 0.28);
}

/* ==========================================================
   Modusknop — kleur van de bestemming
   ========================================================== */

/* Lidmodus: knop naar beheer is oranje */
.site-header:not(.management-mode)
.header-mode-button {
    background: #d98218;
    border-color: #d98218;
    color: #ffffff;

    box-shadow:
        0 0 0 2px rgba(217, 130, 24, 0.16);
}

.site-header:not(.management-mode)
.header-mode-button:hover,
.site-header:not(.management-mode)
.header-mode-button:focus-visible {
    background: #bf6f10;
    border-color: #bf6f10;
    color: #ffffff;
}


/* Beheermodus: knop terug naar ledenwereld is blauw */
.site-header.management-mode
.header-mode-button,
.site-header.management-mode
.header-mode-button.is-active {
    background: #164b68;
    border-color: #164b68;
    color: #ffffff;

    box-shadow:
        0 0 0 2px rgba(22, 75, 104, 0.18);
}

.site-header.management-mode
.header-mode-button:hover,
.site-header.management-mode
.header-mode-button:focus-visible,
.site-header.management-mode
.header-mode-button.is-active:hover {
    background: #123d55;
    border-color: #123d55;
    color: #ffffff;
}



/* ==========================================================
   Hamburger-menu
   ========================================================== */

.header-menu {
    position: absolute;
    top: calc(100% + 7px);
    right: 12px;
    z-index: 200;

    width: min(330px, calc(100vw - 24px));
    padding: 8px;

    border: 1px solid #ccd5dd;
    border-radius: 11px;

    background: #ffffff;
    color: #20262d;

    box-shadow:
        0 12px 32px rgba(20, 30, 40, 0.2);
}

.header-menu[hidden] {
    display: none;
}

.header-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.header-menu-nav a,
.header-menu-link {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;

    display: flex;
    align-items: center;
    gap: 11px;

    border: 0;
    border-radius: 7px;

    background: transparent;
    color: #25313d;

    font: inherit;
    font-size: 0.95rem;
    font-weight: 650;
    text-align: left;
    text-decoration: none;

    cursor: pointer;
}

.header-menu-nav a:hover,
.header-menu-nav a:focus-visible,
.header-menu-nav a.is-active,
.header-menu-link:hover,
.header-menu-link:focus-visible {
    background: #edf3f7;
    color: #174f72;
    text-decoration: none;
}

.header-menu-nav a:focus-visible,
.header-menu-link:focus-visible {
    outline: 3px solid rgba(23, 79, 114, 0.17);
    outline-offset: 1px;
}

.header-menu-nav a > span:first-child,
.header-menu-link > span:first-child {
    width: 23px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 23px;
}

.header-menu-separator {
    height: 1px;
    margin: 6px 8px;

    background: #dce2e7;
}


/* ==========================================================
   Supportpaneel direct onder de compacte header
   ========================================================== */

.tech-info-panel {
    width: min(1800px, 100%);
    margin: 10px auto 0;
    padding: 0 12px;
}

.tech-info-inner {
    width: min(760px, 100%);
    margin-left: auto;
}

/* ==========================================================
   Desktopnavigatie
   ========================================================== */

.header-desktop-nav {
    display: none;
}

.header-desktop-nav a,
.header-desktop-link {
    min-height: 40px;
    padding: 8px 10px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    border: 1px solid transparent;
    border-radius: 7px;

    background: transparent;
    color: #ffffff;

    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;

    cursor: pointer;
}

.header-desktop-nav a:hover,
.header-desktop-nav a:focus-visible,
.header-desktop-nav a.is-active,
.header-desktop-link:hover,
.header-desktop-link:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    text-decoration: none;
}

.site-header.management-mode
.header-desktop-nav a,
.site-header.management-mode
.header-desktop-link {
    color: #6f3b00;
}

.site-header.management-mode
.header-desktop-nav a:hover,
.site-header.management-mode
.header-desktop-nav a:focus-visible,
.site-header.management-mode
.header-desktop-nav a.is-active,
.site-header.management-mode
.header-desktop-link:hover,
.site-header.management-mode
.header-desktop-link:focus-visible {
    background: rgba(169, 93, 18, 0.13);
    color: #512b00;
}


/* ==========================================================
   Tablet landscape en desktop
   Zelfde structuur, alleen tekstlabels worden zichtbaar.
   ========================================================== */

@media
    (min-width: 900px)
    and (orientation: landscape) {

    .site-header-inner {
        min-height: 66px;
        padding: 9px 24px;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .site-user-name,
    .site-subtitle {
        max-width: 260px;
        font-size: 0.78rem;
    }

    .site-header-quick-actions {
        gap: 8px;
    }

    .header-quick-action {
        width: auto;
        min-width: 42px;
        height: 42px;
        padding: 0 12px;
    }

    .header-quick-label {
        display: inline;
        font-size: 0.87rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .header-menu {
        right: 24px;
    }

    .tech-info-panel {
        padding: 0 24px;
    }

}

/* ==========================================================
   PC — menu-items rechtstreeks op de balk
   ========================================================== */

@media (min-width: 1280px) {

    /* Hamburger verdwijnt op pc */
    .header-menu-button {
        display: none;
    }

    /* Home en modusknop krijgen op pc altijd tekst */
    .header-quick-action {
        width: auto;
        min-width: 42px;
        height: 42px;
        padding: 0 12px;
    }

    .header-quick-label {
        display: inline;
        font-size: 0.87rem;
        font-weight: 700;
        white-space: nowrap;
    }

    /* Rechtstreekse desktopnavigatie tonen */
    .header-desktop-nav {
        display: flex;
        align-items: center;
        gap: 4px;
    }

}

/* ==========================================================
   Zeer smalle telefoons
   ========================================================== */

@media (max-width: 360px) {

    .site-header-inner {
        padding-left: 9px;
        padding-right: 9px;
        gap: 7px;
    }

    .site-user-name {
        max-width: 110px;
    }

    .site-header-quick-actions {
        gap: 2px;
    }

    .header-quick-action {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .header-mode-icon {
        width: 23px;
        height: 23px;
    }

    .header-menu {
        right: 9px;
        width: calc(100vw - 18px);
    }

}

/* ==========================================================
   Telefoon portrait — identiteit links, acties rechts
   ========================================================== */

@media
    (max-width: 620px)
    and (orientation: portrait) {

    .site-header-inner {
        min-height: 58px;
        padding: 7px 12px;

        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .site-header-identity {
        align-items: flex-start;
        text-align: left;
    }

    .site-header-quick-actions {
        margin-left: auto;
        justify-content: flex-end;
    }

}

/* ==========================================================
   Sprint 3A.2 — Eventkaart PRO 8 FINAL
   Eén raster, vaste placeholders en één responsive opbouw.
   ========================================================== */

.member-event-row {
    display: grid;
    grid-template-columns: 7px 92px minmax(0, 1fr) 336px;
    gap: 12px;
    min-height: 86px;
    padding: 0 12px 0 0;
    align-items: stretch;
    overflow: visible;
}

.member-event-row .status-marker {
    background: var(--open);
}

.member-event-row.event-registration-closed .status-marker {
    background: #d98218;
}

.member-event-row .event-date {
    min-width: 0;
    justify-content: center;
    padding: 0;
}

.member-event-row .event-day {
    font-size: 20px;
    white-space: nowrap;
}

.member-event-row .event-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 11px 0;
}

.event-identity-line {
    display: grid;
    grid-template-columns: 30px 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.event-status-slot,
.event-admin-slot {
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
}

.event-status-icon {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.event-admin-edit {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid #c7d5df;
    border-radius: 6px;
    background: #f5f9fb;
    color: var(--primary);
    text-decoration: none;
}

.event-admin-edit:hover,
.event-admin-edit:focus-visible {
    border-color: var(--primary);
    background: #eaf3f8;
}

.event-admin-edit img {
    width: 17px;
    height: 17px;
}

.member-event-row .event-title {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-event-row .event-more-info {
    display: block;
    width: fit-content;
    margin: 4px 0 0 76px;
    border: 0;
}

.member-event-row .event-more-info > summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    color: var(--primary);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    list-style: none;
    user-select: none;
    white-space: nowrap;
}

.member-event-row .event-more-info > summary::-webkit-details-marker {
    display: none;
}

.member-event-row .event-more-info > summary::after {
    content: "▾";
    font-size: 11px;
}

.member-event-row .event-more-info[open] {
    width: 100%;
}

.member-event-row .event-more-info[open] > summary::after {
    content: "▴";
}

.member-event-row .event-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e3e7eb;
}

.member-event-row .detail {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.member-event-row .detail-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    text-transform: none;
    letter-spacing: 0;
}

.member-event-row .detail-value {
    min-width: 0;
    overflow-wrap: anywhere;
}

.member-event-row .event-info {
    margin-top: 10px;
}

.event-info-link-wrap {
    margin-top: 10px;
}

.event-info-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* Rechterzijde: kenmerken + teller bovenaan, acties eronder. */
.event-side {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 9px 0;
}

.event-side-top {
    display: grid;
    grid-template-columns: 112px 112px;
    align-items: center;
    justify-content: end;
    gap: 8px;
}

/* Twee vaste kenmerken-slots:
   slot 1 = UCI of 3VL, slot 2 = duo. */
.event-icons-slot {
    width: 112px;
    min-width: 112px;
}

.member-event-row .event-icons {
    display: grid;
    grid-template-columns: 52px 52px;
    gap: 8px;
    width: 112px;
    min-width: 112px;
    align-items: center;
    justify-items: center;
}

.member-event-row .event-icons img[alt="3VL"],
.member-event-row .event-icons img[alt="UCI"] {
    grid-column: 1;
    grid-row: 1;
}

.member-event-row .event-icons img[alt="DUO"] {
    grid-column: 2;
    grid-row: 1;
}

.member-event-row .event-icon {
    display: block;
    width: 48px;
    max-width: 48px;
    height: 22px;
    object-fit: contain;
    object-position: center;
}

.member-event-row .event-capacity {
    width: 112px;
    min-width: 112px;
    min-height: 42px;
    margin: 0;
    padding: 7px 8px;
    text-decoration: none;
}

.member-event-row .event-capacity-value {
    font-size: 16px;
    white-space: nowrap;
}

.event-user-actions {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.event-action-button {
    width: 112px;
    min-width: 112px;
    min-height: 42px;
    padding: 7px 10px;
    white-space: nowrap;
}

.member-event-row.event-registration-closed .event-user-actions {
    display: none;
}

/* Smalle desktop en tablet portrait: raster blijft horizontaal. */
@media (max-width: 900px) {
    .member-event-row {
        grid-template-columns: 7px 82px minmax(0, 1fr) 232px;
        gap: 10px;
        min-height: 82px;
        padding-right: 10px;
    }

    .event-side {
        gap: 7px;
        padding: 8px 0;
    }

    .event-side-top {
        grid-template-columns: 108px 108px;
        gap: 8px;
    }

    .event-icons-slot,
    .member-event-row .event-icons {
        width: 108px;
        min-width: 108px;
    }

    .member-event-row .event-icons {
        grid-template-columns: 50px 50px;
    }

    .member-event-row .event-capacity,
    .event-action-button {
        width: 108px;
        min-width: 108px;
    }
}

/* Telefoon: identiteit bovenaan, kenmerken en teller eronder,
   acties over de volle beschikbare breedte. */
@media (max-width: 620px) {
    .member-event-row {
        grid-template-columns: 6px 70px minmax(0, 1fr);
        gap: 8px;
        min-height: 0;
        padding-right: 9px;
    }

    .member-event-row .event-day-short,
    .member-event-row .event-month {
        display: none;
    }

    .member-event-row .event-day-full {
        display: block;
        font-size: 13px;
        white-space: nowrap;
    }

    .member-event-row .event-content {
        justify-content: flex-start;
        padding: 10px 0 4px;
    }

    .event-identity-line {
        grid-template-columns: 28px 28px minmax(0, 1fr);
        gap: 5px;
    }

    .event-status-slot,
    .event-admin-slot {
        width: 28px;
        height: 28px;
    }

    .member-event-row .event-title {
        font-size: 16px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .member-event-row .event-more-info {
        margin-left: 66px;
    }

    .event-side {
        grid-column: 2 / -1;
        gap: 7px;
        padding: 0 0 9px;
    }

    .event-side-top {
        grid-template-columns: 108px 108px;
        justify-content: end;
    }

    .event-user-actions {
        width: 100%;
    }

    .event-action-button {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }

    .member-event-row .event-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .member-event-row {
        grid-template-columns: 6px 62px minmax(0, 1fr);
    }

    .member-event-row .event-more-info {
        margin-left: 66px;
    }

    .event-side-top {
        grid-template-columns: 100px 100px;
    }

    .event-icons-slot,
    .member-event-row .event-icons {
        width: 100px;
        min-width: 100px;
    }

    .member-event-row .event-icons {
        grid-template-columns: 46px 46px;
    }

    .member-event-row .event-capacity {
        width: 100px;
        min-width: 100px;
    }
}

/* ==========================================================
   Eventdetails — tablet portrait / smalle desktop
   ========================================================== */

@media (min-width: 721px) and (max-width: 900px) {

    .member-event-row .event-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .member-event-row .detail {
        grid-template-columns: 145px minmax(0, 1fr);
        gap: 8px;
    }

    .member-event-row .detail-label,
    .member-event-row .detail-value {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}


/* ==========================================================
   Eventdetails — mobiel / smalle schermen
   ========================================================== */

@media (max-width: 720px) {

    .member-event-row .event-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .member-event-row .detail {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .member-event-row .detail-label,
    .member-event-row .detail-value {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}


/* ==========================================================
   Sprint 3B — definitieve UX deelnemerslijst
   ========================================================== */

.participant-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.participant-section-heading h2 {
    margin: 0;
}

.participant-add-event-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid #9dc6aa;
    border-radius: 7px;
    background: #e8f6ec;
    color: #23683d;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    white-space: nowrap;
}

.participant-add-event-action:hover,
.participant-add-event-action:focus-visible {
    border-color: #6ca47d;
    background: #d9efdf;
}

.participant-add-event-action:focus-visible {
    outline: 3px solid rgba(55, 139, 85, 0.2);
    outline-offset: 2px;
}

.participant-add-event-icon {
    display: block;
    width: 23px;
    height: 23px;
    object-fit: contain;
    pointer-events: none;
}

.action-box--duo .action-box-intro {
    margin: -4px 0 18px;
    color: var(--muted);
    line-height: 1.5;
}

.duo-management-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.duo-management-button {
    min-height: 52px;
    gap: 10px;
    font-size: 16px;
}

.duo-management-button-icon {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    pointer-events: none;
}

/* De actiekolom is klein en blijft beschikbaar voor de eigen ledenlijn. */
.participant-table:not(.participant-table--management) {
    table-layout: fixed;
}

.participant-table:not(.participant-table--management)
th:nth-child(1),
.participant-table:not(.participant-table--management)
td:nth-child(1) {
    width: 44px;
}

.participant-table:not(.participant-table--management)
th:nth-child(2),
.participant-table:not(.participant-table--management)
td:nth-child(2) {
    width: 48px;
}

.participant-table:not(.participant-table--management)
th:nth-child(3),
.participant-table:not(.participant-table--management)
td:nth-child(3) {
    width: 42%;
}

.participant-table:not(.participant-table--management)
th:nth-child(4),
.participant-table:not(.participant-table--management)
td:nth-child(4) {
    width: auto;
}

.participant-table:not(.participant-table--management)
th:nth-child(3):last-child,
.participant-table:not(.participant-table--management)
td:nth-child(3):last-child {
    width: auto;
    text-align: left;
}

@media (max-width: 620px) {
    .participant-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .participant-add-event-action {
        width: 100%;
    }

    .duo-management-actions {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Sprint 3C — Mijn Evenementen en herbruikbare ledenzoeker
   ============================================================ */

.member-selector {
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color, #d9dde3);
    border-radius: 12px;
    background: #fff;
}

.member-selector-field {
    display: grid;
    gap: 0.35rem;
    max-width: 760px;
}

.member-selector-combobox {
    position: relative;
}

.member-selector-input {
    width: 100%;
    min-height: 46px;
    padding-right: 3rem;
    font-size: 1rem;
}

.member-selector-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 44px;
    height: 44px;
    border: 0;
    border-left: 1px solid var(--border-color, #d9dde3);
    border-radius: 0 7px 7px 0;
    background: transparent;
    color: #44505f;
    font-size: 1rem;
    cursor: pointer;
}

.member-selector-toggle:hover {
    background: #f3f5f7;
}

.member-selector-results {
    position: absolute;
    z-index: 50;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #b9c3cf;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(31, 42, 55, 0.16);
}

.member-selector-option {
    display: block;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 0;
    background: #fff;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.member-selector-option:hover,
.member-selector-option.is-active {
    background: #0b63ce;
    color: #fff;
}

.member-selector-option[hidden] {
    display: none;
}

.my-events-section {
    margin: 1rem 0;
    border: 1px solid var(--border-color, #d9dde3);
    border-radius: 12px;
    background: #fff;
    overflow: clip;
}

.my-events-section > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.my-events-section > summary::-webkit-details-marker {
    display: none;
}

.my-events-section > summary::before {
    content: "▶";
    margin-right: 0.55rem;
    font-size: 0.8rem;
}

.my-events-section[open] > summary::before {
    content: "▼";
}

.my-events-section > summary > span:first-child {
    margin-right: auto;
}

.my-events-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.65rem;
    min-height: 2.15rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid #c7d0da;
    border-radius: 999px;
    background: #e7edf3;
    color: #26384a;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1;
}

.my-events-list,
.my-events-section > .no-results,
.my-events-history-filter {
    margin-left: 1rem;
    margin-right: 1rem;
}

.my-events-list {
    margin-bottom: 1rem;
}

.my-events-history-filter {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.my-events-history-filter select {
    width: 100%;
    max-width: 180px;
}

@media (max-width: 760px) {
    .member-selector-field {
        max-width: none;
    }

    .member-selector-results {
        max-height: 260px;
    }
}


/* ==========================================================
   Sprint 3D.1 - bevestiging volledige inschrijving verwijderen
   ========================================================== */

.registration-delete-summary {
    display: grid;
    gap: 12px;
    margin: 18px 0 22px;
}

.registration-delete-summary > div {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel-background);
}

.registration-delete-summary dt {
    margin-bottom: 3px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
}

.registration-delete-summary dd {
    margin: 0;
    font-weight: 700;
}


.registration-delete-note {
    margin: 0 0 1rem;
}


/* Sprint 3D.1 UX-freeze - statusicoon in detailheader */
.event-header-status-icon {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.event-header-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.event-header-title-lock {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
/* Sprint A.1: duo-modus compact naast Meer info en in eventheader. */
.event-duo-mode-label {
    display: inline-flex;
    align-items: center;
    font-weight: 750;
    white-space: nowrap;
}

.member-event-row .event-more-info > summary .event-duo-mode-label {
    margin-left: 5px;
    padding-left: 9px;
    border-left: 1px solid #aeb8c1;
    color: var(--muted);
}

.event-header-meta .event-duo-mode-label {
    color: var(--primary);
    font-weight: 800;
}


/* Sprint A.2: dezelfde uitklapbare eventinfo ook in de deelnemersheader. */
.event-header-identity .event-more-info {
    display: block;
    width: fit-content;
    margin-top: 8px;
    border: 0;
}

.event-header-identity .event-more-info > summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    color: var(--primary);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    list-style: none;
    user-select: none;
    white-space: nowrap;
}

.event-header-identity .event-more-info > summary::-webkit-details-marker {
    display: none;
}

.event-header-identity .event-more-info > summary::after {
    content: "▾";
    font-size: 11px;
}

.event-header-identity .event-more-info[open] {
    width: 100%;
}

.event-header-identity .event-more-info[open] > summary::after {
    content: "▴";
}

.event-header-identity .event-more-info > summary .event-duo-mode-label {
    margin-left: 5px;
    padding-left: 9px;
    border-left: 1px solid #aeb8c1;
    color: var(--muted);
}

.event-header-identity .event-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e3e7eb;
}

.event-header-identity .detail {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.event-header-identity .detail-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.event-header-identity .detail-value {
    min-width: 0;
}

.event-header-identity .event-info,
.event-header-identity .event-info-link-wrap {
    margin-top: 10px;
}

@media (max-width: 620px) {
    .event-header-identity .event-details {
        grid-template-columns: 1fr;
    }
}


/* Sprint A RC: leesbare vrije infotekst en duidelijke externe infolink. */
.event-info--formatted {
    white-space: pre-line;
}

.event-info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 750;
}


/* v0.9 Pilot label en footer */
.site-version {
    margin-left: 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.72;
    white-space: nowrap;
}
.site-footer {
    margin-top: 2rem;
    padding: 1rem;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #69727c;
}

/* v0.9.1 pilot hotfix: duidelijke scheiding tussen de drie duo-keuzes. */
.duo-choice-section {
    margin: 0 0 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid #d7dee6;
}

.duo-choice-section:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.duo-choice-heading {
    margin-bottom: 0.55rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #52606d;
}

.duo-email-option {
    padding: 0.8rem 0.9rem;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    background: #ffffff;
}

.duo-email-option label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.duo-email-option input[type="email"] {
    width: min(100%, 34rem);
}

.duo-email-option .form-help {
    margin: 0.45rem 0 0;
}

/* Houd versielabel subtiel naast de titel, niet op een aparte regel. */
.site-brand-link {
    display: inline-flex;
    align-items: baseline;
}

.site-title {
    display: inline-block;
}


/* Sprint B1 - Mijn duo's */
.portal-grid-small { max-width: 48rem; }
.compact-welcome { margin-bottom: 1rem; }
.page-intro { color: var(--muted); }
.duo-admin-selector { margin-bottom: 1rem; }
.known-duo-list { display: grid; gap: .65rem; }
.known-duo-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.85rem 1rem; border:1px solid #d7dee6; border-radius:10px; background:#fff; }
.known-duo-row.is-hidden-duo { margin-top:.35rem; opacity:.72; background:#f5f6f7; }
.known-duo-main { display:flex; align-items:baseline; flex-wrap:wrap; gap:.35rem .7rem; min-width:0; }
.known-duo-main > span:first-of-type { color:var(--muted); font-size:.85rem; }
.known-duo-actions { display:flex; gap:.35rem; flex:0 0 auto; }
.known-duo-actions form { margin:0; }
.icon-action-button { display:grid; place-items:center; width:2.35rem; height:2.35rem; padding:.42rem; border:1px solid #cbd5df; border-radius:8px; background:#fff; color:#164b68; cursor:pointer; }
.icon-action-button:hover { background:#eef5f8; }
.icon-action-button img { width:100%; height:100%; }
.duo-state-badge, .duo-favorite-label { display:inline-flex; padding:.15rem .45rem; border-radius:999px; background:#fff3bf; color:#6b5100; font-size:.72rem; font-weight:800; }
.duo-state-muted { background:#e9ecef; color:#59636e; }
@media (max-width:620px) { .known-duo-row { align-items:flex-start; } .known-duo-main { display:grid; } }


/* RC Polish - Masterdata */
.masterdata-grid { margin-top: 1rem; }
.masterdata-form { display: grid; gap: .7rem; max-width: 38rem; }
.masterdata-form label { font-weight: 700; }
.masterdata-form input[type="email"], .masterdata-form select { width: 100%; }
.masterdata-scope-form { grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: end; max-width: none; }
.masterdata-scope-form label { grid-row: 1; }
.masterdata-scope-form select, .masterdata-scope-form button { grid-row: 2; }
.button-danger-text { border: 0; background: transparent; color: #a12622; font-weight: 800; cursor: pointer; padding: .45rem; }
.button-danger-text:hover { text-decoration: underline; }
@media (max-width: 720px) { .masterdata-scope-form { grid-template-columns: 1fr; } .masterdata-scope-form label, .masterdata-scope-form select, .masterdata-scope-form button { grid-row: auto; } }

/* RC Polish - herbruikbare MOBS aan/uit-schakelaar */
.mobs-toggle {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    width: fit-content;
    cursor: pointer;
    user-select: none;
}

.mobs-toggle-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.mobs-toggle-track {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 5.15rem;
    height: 2rem;
    padding: 0 .62rem;
    overflow: hidden;
    border: 1px solid #aeb8c2;
    border-radius: 999px;
    background: #d64545;
    color: #fff;
    font-size: .72rem;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
    transition: background-color .18s ease, border-color .18s ease;
}

.mobs-toggle-no,
.mobs-toggle-yes {
    z-index: 1;
    transition: opacity .18s ease;
}

.mobs-toggle-yes { opacity: 0; }
.mobs-toggle-no { opacity: 1; margin-left: auto; }

.mobs-toggle-knob {
    position: absolute;
    top: .18rem;
    left: .2rem;
    width: 1.62rem;
    height: 1.62rem;
    border: 1px solid #aeb8c2;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: transform .18s ease;
}

.mobs-toggle-input:checked + .mobs-toggle-track {
    border-color: #188447;
    background: #20a85a;
}

.mobs-toggle-input:checked + .mobs-toggle-track .mobs-toggle-knob {
    transform: translateX(3.08rem);
}

.mobs-toggle-input:checked + .mobs-toggle-track .mobs-toggle-yes {
    opacity: 1;
}

.mobs-toggle-input:checked + .mobs-toggle-track .mobs-toggle-no {
    opacity: 0;
}

.mobs-toggle-input:focus-visible + .mobs-toggle-track {
    outline: 3px solid rgba(22, 75, 104, .28);
    outline-offset: 2px;
}

.mobs-toggle-input:disabled + .mobs-toggle-track {
    opacity: .55;
    cursor: wait;
}

.mobs-toggle-label {
    font-weight: 750;
    color: #17212b;
}

.mobs-toggle-row {
    width: 100%;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.mobs-toggle-row .mobs-toggle-label {
    margin-right: auto;
}

/* RC Polish - uniforme Masterdata-editor en tabellen */
.masterdata-editor-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.masterdata-editor-heading h2,
.scope-switch-group h3 {
    margin-top: 0;
}

.masterdata-subsection {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #d7dee6;
}

.masterdata-form .button {
    width: fit-content;
    min-width: 12rem;
}

.masterdata-table th,
.masterdata-table td {
    vertical-align: middle;
}

.masterdata-table td:last-child,
.masterdata-table th:last-child {
    white-space: nowrap;
    text-align: right;
}

.button-compact {
    min-height: 2rem;
    padding: .35rem .7rem;
    font-size: .82rem;
}

.status-pill,
.scope-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: .22rem .55rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-pill.is-on {
    background: #dff4e7;
    color: #146c3a;
}

.status-pill.is-off {
    background: #edf0f2;
    color: #59636e;
}

.scope-chip {
    border: 1px solid #d7dee6;
    background: #f7f9fa;
    color: #34414d;
}

.scope-summary {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.scope-switch-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.scope-switch-group {
    padding: 1rem;
    border: 1px solid #d7dee6;
    border-radius: 12px;
    background: #fff;
}

.scope-switch-group-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #e2e7eb;
}

.scope-switch-group-heading h3 { margin-bottom: 0; }
.scope-bulk-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.scope-switch-list { display: grid; }
.scope-toggle-form { margin: 0; padding: .65rem 0; border-bottom: 1px solid #edf0f2; }
.scope-toggle-form:last-child { border-bottom: 0; }

@media (max-width: 760px) {
    .scope-switch-columns { grid-template-columns: 1fr; }
    .scope-switch-group-heading { align-items: flex-start; flex-direction: column; }
    .masterdata-table-wrapper { overflow-x: auto; }
}

/* Masterdata UX protocol: directe switches, tekstvelden met save, scopes in batch */
.masterdata-table-pilots th:nth-child(1),
.masterdata-table-pilots td:nth-child(1) { min-width: 13rem; }
.masterdata-table-pilots th:nth-child(2),
.masterdata-table-pilots td:nth-child(2) { min-width: 18rem; }
.masterdata-table-pilots th:nth-child(3),
.masterdata-table-pilots td:nth-child(3),
.masterdata-table-pilots th:nth-child(4),
.masterdata-table-pilots td:nth-child(4) { min-width: 8rem; }
.masterdata-table-organizers th:nth-child(1),
.masterdata-table-organizers td:nth-child(1) { min-width: 14rem; }
.masterdata-table-organizers th:nth-child(3),
.masterdata-table-organizers td:nth-child(3) { min-width: 18rem; }
.masterdata-email-cell { overflow-wrap: anywhere; }
.js-instant-toggle-form { display: inline-flex; margin: 0; border-radius: 999px; transition: box-shadow .2s ease; }
.js-instant-toggle-form.is-saved { box-shadow: 0 0 0 4px rgba(32, 168, 90, .18); }
.js-dirty-save:disabled,
.js-scope-save:disabled { opacity: .55; cursor: not-allowed; }
.js-dirty-save.is-dirty,
.js-scope-save.is-dirty { background: #b9362f; border-color: #9e2c27; }
.scope-toggle-row { margin: 0; padding: .65rem 0; border-bottom: 1px solid #edf0f2; }
.scope-toggle-row:last-child { border-bottom: 0; }
.scope-save-bar {
    position: sticky;
    bottom: .75rem;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: .85rem 1rem;
    border: 1px solid #cdd7df;
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 22px rgba(23, 33, 43, .11);
}
.scope-dirty-status {
    padding: .35rem .65rem;
    border-radius: 999px;
    background: #edf0f2;
    color: #59636e;
    font-size: .8rem;
    font-weight: 800;
    white-space: nowrap;
}
.scope-dirty-status.is-dirty { background: #fff0d8; color: #8a4b00; }
@media (max-width: 760px) {
    .scope-save-bar { align-items: stretch; flex-direction: column; }
    .scope-save-bar .button { width: 100%; }
    .masterdata-editor-heading { flex-direction: column; }
}

/* Eventbeheer v0.98 */
.status-3 .status-marker { background: #8b2f2f; }
.event-timeline { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 12px; margin-bottom: 16px; background: var(--panel-background); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.timeline-step { display:flex; align-items:center; gap:7px; padding:9px; border-radius:6px; background:#f3f5f7; }
.timeline-step small { display:block; color:var(--muted); margin-left:auto; }
.timeline-step.is-done { font-weight:700; background:#e8f4ec; }
.timeline-step.is-waiting { background:#fff5d9; }
.timeline-step.is-current { outline:2px solid var(--primary); }
.event-timeline.is-cancelled { display:flex; justify-content:space-between; background:#f8e8e8; border-color:#b76565; }
.event-save-bar { position:sticky; bottom:0; z-index:20; display:flex; justify-content:flex-end; align-items:center; gap:14px; padding:12px 16px; background:rgba(255,255,255,.96); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); }
#dirty-state { color:var(--muted); font-weight:700; } #dirty-state.is-dirty { color:#9a5a00; }
.event-admin-state { align-self:center; min-width:170px; display:flex; flex-direction:column; gap:3px; font-size:13px; } .event-admin-state span { color:var(--muted); }
@media(max-width:720px){ .event-timeline{position:static;grid-template-columns:1fr 1fr}.datetime-pair{grid-template-columns:1fr}.event-save-bar{position:sticky}.event-admin-state{grid-column:2/-1;min-width:0} }

/* Eventbeheer v0.98 polish
   Alleen het beheer-overzicht krijgt een compactere rechterkolom.
   De ledenlijsten blijven op het gedeelde member-event-row LEGO-blok. */
.admin-event-list .event-row {
    grid-template-columns: 7px 82px minmax(0, 1fr) 190px;
    min-height: 104px;
}


.admin-event-list .event-content { padding: 11px 0; display:flex; flex-direction:column; justify-content:center; }
.admin-event-list .event-identity-line { grid-template-columns: minmax(0,1fr); gap:0; }
.admin-event-list .event-admin-slot { display:none; }
.admin-event-list .event-title { margin:0 0 5px; }
.admin-event-list .event-more-info { margin-top:0; }
.admin-event-list .event-actions { padding:9px 0; gap:5px; }
.event-admin-actions .event-capacity { margin:0; padding:5px 6px; }
.event-admin-actions .event-capacity-value { font-size:17px; }
.event-admin-state { min-width:0; font-size:12px; line-height:1.25; }
.event-admin-buttons { display:grid; grid-template-columns:1fr 1fr; gap:5px; }
.event-admin-buttons .event-manage-button { grid-column:1 / -1; }
.event-admin-buttons .button { width:100%; padding-top:7px; padding-bottom:7px; }
.inline-form { margin:0; }
.event-quick-button { font-size:12px; }

.event-edit-sticky {
    position: sticky;
    top: 0;
    z-index: 30;
    margin-bottom: 14px;
    padding-bottom: 8px;
    background: rgba(244,246,248,.97);
    backdrop-filter: blur(4px);
}
.event-edit-sticky .event-header { margin-bottom:8px; }
.event-timeline {
    position: relative;
    display:block;
    margin:0 0 8px;
    padding:13px 18px 10px;
    background:#fff;
}
.timeline-track {
    position:relative;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:0;
}
.timeline-track::before {
    content:"";
    position:absolute;
    left:12.5%; right:12.5%; top:15px;
    height:3px;
    background:#d9dee3;
    z-index:0;
}
.timeline-step {
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:2px;
    padding:0 8px;
    background:transparent;
    text-align:center;
}
.timeline-dot {
    display:flex;
    width:30px; height:30px;
    align-items:center; justify-content:center;
    border:3px solid #d9dee3;
    border-radius:50%;
    background:#fff;
    color:#6d7882;
    font-weight:900;
}
.timeline-step.is-done .timeline-dot { border-color:#3b9459; background:#e4f3e9; color:#287344; }
.timeline-step.is-waiting .timeline-dot { border-color:#d7a900; background:#fff5cf; color:#8a6900; }
.timeline-step b { font-size:13px; }
.timeline-step small { margin:0; min-height:16px; color:var(--muted); font-size:11px; }
.event-timeline.is-cancelled { display:block; padding:10px 14px; }
.timeline-cancelled { display:flex; align-items:center; gap:9px; color:#8b2f2f; }
.timeline-cancelled small { margin-left:auto; color:#8b2f2f; }
.event-edit-toolbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:8px 10px;
    border:1px solid var(--border);
    border-radius:var(--radius);
    background:rgba(255,255,255,.98);
    box-shadow:var(--shadow);
}
.event-edit-quick-actions,
.event-edit-save-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.event-edit-form { gap:12px; }
.event-edit-form .form-section { padding:16px; }
.form-section-heading { margin-bottom:10px; }
.form-section-heading h2 { margin-bottom:2px; }
.form-section-heading p { margin:0; }
.form-grid-status { grid-template-columns:minmax(260px,.7fr) minmax(300px,1.3fr); }
.form-help-panel { justify-content:center; color:var(--muted); }
.calendar-release-row { max-width:560px; margin-bottom:12px; }
.registration-window-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.form-grid-settings { grid-template-columns:repeat(2,minmax(0,1fr)); }
.form-section-basis .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.datetime-pair { grid-template-columns:minmax(0,1fr) 172px; align-items:stretch; }
.form-field.has-error input,
.form-field.has-error select,
.has-error .datetime-pair input { border-color:#b9362f; background:#fff8f7; }
.field-error { display:block; margin-top:4px; color:#a62f29; font-size:12px; font-weight:700; }
#dirty-state { font-size:12px; }

@media(max-width:950px) {
    .admin-event-list .event-row { grid-template-columns:7px 70px minmax(0,1fr); }
    .admin-event-list .event-actions { grid-column:2/-1; display:grid; grid-template-columns:minmax(130px,.7fr) minmax(100px,.5fr) minmax(160px,1fr); align-items:center; }
    .event-admin-buttons { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .event-edit-sticky { position:static; }
}
@media(max-width:720px) {
    .timeline-track { grid-template-columns:1fr 1fr; gap:12px 0; }
    .timeline-track::before { display:none; }
    .event-edit-toolbar { align-items:stretch; flex-direction:column; }
    .event-edit-quick-actions, .event-edit-save-actions { width:100%; }
    .event-edit-save-actions { justify-content:space-between; }
    .registration-window-row,
    .form-grid-status,
    .form-grid-settings,
    .form-section-basis .form-grid { grid-template-columns:1fr; }
    .calendar-release-row { max-width:none; }
}

/* Eventbeheer v0.98 polish 3 - beheeracties */
.event-admin-actionline { display:flex; align-items:center; justify-content:flex-end; gap:5px; }
.event-admin-actionline .event-capacity { flex:1 1 auto; }
.event-quick-icon {
    width:36px; height:36px; padding:0; display:inline-flex; align-items:center; justify-content:center;
    border:1px solid #aeb9c3; border-radius:5px; background:#fff; cursor:pointer; font:inherit; font-weight:900;
}
.event-quick-calendar { color:#174f72; }
.event-quick-calendar:hover { background:#eef5fa; }
.event-quick-open { border-color:#174f72; background:#174f72; color:#fff; }
.event-quick-open:hover { background:#123f5b; }
.event-admin-buttons { display:block; }
.event-admin-buttons .event-manage-button { display:block; width:100%; }
.event-admin-actions { justify-content:center; }

/* Detailheader gebruikt dezelfde toestandstaal als de kaarten. */
.event-edit-state.status-0 .event-header-card { background:linear-gradient(90deg,rgba(222,183,0,.13),rgba(222,183,0,.045) 38%,#fff 72%); border-left:6px solid var(--concept); }
.event-edit-state.status-1 .event-header-card { background:linear-gradient(90deg,rgba(47,148,84,.14),rgba(47,148,84,.045) 38%,#fff 72%); border-left:6px solid var(--open); }
.event-edit-state.status-2 .event-header-card,
.event-edit-state.event-registration-closed .event-header-card { background:linear-gradient(90deg,rgba(183,72,72,.14),rgba(183,72,72,.045) 38%,#fff 72%); border-left:6px solid #b74848; }
.event-edit-state.status-3 .event-header-card { background:linear-gradient(90deg,rgba(139,47,47,.18),rgba(139,47,47,.055) 38%,#fff 72%); border-left:6px solid #8b2f2f; }
.event-edit-quick-actions .participant-add-event-action { margin:0; }

/* Ledenlijsten gebruiken dezelfde gedeelde statusvisuals hierboven. */

@media(max-width:950px) {
    .event-admin-actionline { justify-content:flex-start; }
}


/* Eventbeheer v0.98 final polish - functioneel gesloten is visueel gesloten */
.admin-event-list .event-row.event-registration-closed .event-admin-state strong { color:#8b3b3b; }
.admin-event-list .event-row.event-registration-closed .event-capacity { background:#f8e7e7; }
.admin-event-list .event-row.event-registration-closed .event-capacity-value { color:#8b3b3b; }


/* v0.98 HTML/CSS cleanup - gedeelde kaart en 24u-controls */
.member-event-list .member-event-row,
.my-events-list .member-event-row {
    /* Events en Mijn evenementen gebruiken exact dezelfde kaartgeometrie. */
    min-height: 86px;
}

/* Vaste icon-slots uit event_card.html blijven zichtbaar in ledenweergaven.
   Daardoor staan titel, slotje/beheericoon en Meer info weer op één raster. */
.member-event-list .event-status-slot,
.member-event-list .event-admin-slot,
.my-events-list .event-status-slot,
.my-events-list .event-admin-slot {
    display:flex;
}


/* Belgische datumweergave met browser-native kalender alleen als popup.
   Zichtbare waarde blijft altijd dd/mm/jjjj, onafhankelijk van OS/browser-locale. */
.date-picker-be {
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1fr) 40px;
    min-width:0;
}
.date-picker-display {
    width:100%;
    min-height:40px;
    padding:8px 42px 8px 10px;
    border:1px solid #bfc7cf;
    border-radius:5px;
    background:#fff;
    color:var(--text);
    font:inherit;
    grid-column:1 / -1;
    grid-row:1;
}
.date-picker-button {
    position:relative;
    z-index:2;
    grid-column:2;
    grid-row:1;
    width:40px;
    min-height:40px;
    padding:0;
    border:0;
    border-left:1px solid #d7dde2;
    background:transparent;
    color:#52606d;
    cursor:pointer;
    font:inherit;
}
.date-picker-button:hover { background:#eef5fa; }
.date-picker-native {
    position:absolute;
    right:0;
    bottom:0;
    width:1px;
    height:1px;
    opacity:0;
    pointer-events:none;
}
.date-picker-display.is-invalid,
.form-field.has-error .date-picker-display {
    border-color:#b9362f;
    background:#fff8f7;
}

    padding:10px;
    border:1px solid #bfc7cf;
    border-radius:7px;
    background:#fff;
    box-shadow:0 10px 28px rgba(31,48,61,.18);
}
.date-picker-popover[hidden] { display:none; }
.date-picker-nav {
    display:grid;
    grid-template-columns:34px 1fr 34px;
    align-items:center;
    gap:5px;
    margin-bottom:8px;
    text-align:center;
}
.date-picker-nav button {
    width:32px;
    height:32px;
    padding:0;
    border:1px solid #c7d0d8;
    border-radius:5px;
    background:#fff;
    color:var(--primary);
    font-size:20px;
    cursor:pointer;
}
.date-picker-weekdays,
.date-picker-days {
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:3px;
}
.date-picker-weekdays {
    margin-bottom:4px;
    color:var(--muted);
    font-size:11px;
    font-weight:700;
    text-align:center;
}
.date-picker-days button {
    width:34px;
    height:32px;
    justify-self:center;
    padding:0;
    border:0;
    border-radius:5px;
    background:transparent;
    color:var(--text);
    cursor:pointer;
}
.date-picker-days button:hover { background:#edf4f8; }
.date-picker-days button.is-selected {
    background:var(--primary);
    color:#fff;
    font-weight:800;
}
@media(max-width:720px) {
    .date-picker-popover { left:0; right:auto; max-width:calc(100vw - 44px); }
}


/* v0.98 final CSS baseline — gedeelde eventstates + 24u tijdcontrols */
.event-list .event-row.status-0 {
    background:linear-gradient(90deg,rgba(222,183,0,.13) 0%,rgba(222,183,0,.055) 28%,#fff 68%);
}
.event-list .event-row.status-1:not(.event-registration-closed) {
    background:linear-gradient(90deg,rgba(47,148,84,.18) 0%,rgba(47,148,84,.075) 30%,#fff 68%);
}
.event-list .event-row.status-2 {
    background:linear-gradient(90deg,rgba(122,133,145,.14) 0%,rgba(122,133,145,.05) 28%,#fff 68%);
}
.event-list .event-row.status-3 {
    background:linear-gradient(90deg,rgba(139,47,47,.18) 0%,rgba(139,47,47,.055) 28%,#fff 68%);
}
.event-list .event-row.event-registration-closed {
    background:linear-gradient(90deg,rgba(183,72,72,.15) 0%,rgba(183,72,72,.06) 28%,#fff 68%);
}
.event-list .event-row.event-registration-closed .status-marker { background:#b74848; }

/* Eén definitieve 24-uurs control: iets ruimere uur/minuut-kaders. */
.datetime-pair {
    grid-template-columns:minmax(0,1fr) 188px;
    align-items:stretch;
}
.time-picker-24 {
    display:grid;
    grid-template-columns:76px 10px 76px 18px;
    gap:4px;
    min-width:188px;
    width:188px;
    height:100%;
    align-items:center;
}
.time-picker-24 select {
    min-width:0;
    width:76px;
    min-height:40px;
    height:40px;
    padding:7px 24px 7px 8px;
    background:#fff;
    border:1px solid #bfc7cf;
    border-radius:5px;
    color:var(--text);
    font:inherit;
    line-height:1.2;
}
.time-picker-separator,
.time-picker-clock {
    align-self:center;
    justify-self:center;
}
.form-field.has-error .time-picker-24 select,
.has-error .time-picker-24 select {
    border-color:#b9362f;
    background:#fff8f7;
}
@media(max-width:720px) {
    .datetime-pair { grid-template-columns:1fr; }
    .time-picker-24 { width:188px; min-width:188px; }
}

/* Datum + 24u tijd compact op één lijn; logica en verborgen POST-waarden blijven identiek. */
.datetime-pair {
    grid-template-columns: 230px 188px;
    justify-content: start;
    align-items: center;
    gap: 8px;
}
.date-picker-be {
    width: 230px;
    min-width: 230px;
}
.time-picker-24 {
    width: 188px;
    min-width: 188px;
}
@media (max-width: 720px) {
    .datetime-pair {
        grid-template-columns: minmax(0,1fr);
        justify-content: stretch;
    }
    .date-picker-be {
        width: 100%;
        min-width: 0;
    }
}



/* v0.98 FINAL FINAL — compacte datetime op één lijn.
   Alleen presentatie: verborgen POST-velden en JS-logica blijven ongewijzigd. */
.event-edit-form .datetime-pair {
    display:flex;
    align-items:center;
    justify-content:flex-start;
    flex-wrap:nowrap;
    gap:8px;
    width:max-content;
    max-width:100%;
}
.event-edit-form .date-picker-be {
    flex:0 0 210px;
    width:210px;
    min-width:210px;
}
.event-edit-form .time-picker-24 {
    flex:0 0 188px;
    width:188px;
    min-width:188px;
}
@media (max-width:520px) {
    .event-edit-form .datetime-pair {
        flex-wrap:wrap;
        width:100%;
    }
    .event-edit-form .date-picker-be {
        flex:1 1 210px;
        width:auto;
        min-width:190px;
    }
}

/* v1.1 Historiek */
.history-filters{display:flex;gap:.75rem;align-items:end;flex-wrap:wrap;margin:1rem 0}.history-filters label{display:flex;flex-direction:column;gap:.3rem;font-weight:600}.history-filters select{min-width:150px;padding:.55rem}.history-event{border:1px solid #d9dde3;border-radius:10px;margin:.7rem 0;background:#fff;overflow:hidden}.history-event summary{cursor:pointer;display:flex;justify-content:space-between;gap:1rem;padding:.8rem 1rem}.history-count{font-size:.88rem;opacity:.7}.history-table-wrap{overflow-x:auto}.history-table{width:100%;border-collapse:collapse;font-size:.92rem}.history-table th,.history-table td{padding:.55rem .8rem;border-top:1px solid #edf0f3;text-align:left;vertical-align:top}.history-table th{white-space:nowrap}.history-person-filter{max-width:650px;margin:1rem 0}.history-change ul{margin-bottom:0}@media(max-width:700px){.history-filters{display:grid;grid-template-columns:1fr 1fr}.history-filters label,.history-filters select{width:100%;min-width:0}.history-table th:nth-child(3),.history-table td:nth-child(3){display:none}}

/* v1.1 H1.try2 - globale header blijft zichtbaar tijdens scrollen */
.site-header { position: sticky; top: 0; z-index: 1000; }
.history-table td:nth-child(3), .history-table td:nth-child(4), .history-table td:nth-child(5){white-space:nowrap;}
@media(max-width:900px){.history-table{font-size:.86rem}}

/* v1.1 Historiek try3 polish */
.history-head{margin-bottom:.5rem}.history-subtitle{font-style:italic;opacity:.65}.history-viewing{display:inline-block;margin:.25rem 0 .6rem;padding:.5rem .75rem;background:#fff;border:1px solid #d9dde3;border-radius:8px}.history-view-switch{display:flex;gap:.55rem;flex-wrap:wrap;margin:.4rem 0 1rem}.history-filters input[type=date]{padding:.52rem;min-width:145px}.history-table{table-layout:auto}.history-table thead th{background:#eef1f4;border-top:0}.history-table tbody tr:nth-child(even){background:#f7f8fa}.history-table tbody tr:nth-child(odd){background:#fff}.history-table tbody tr.history-admin-row{box-shadow:inset 3px 0 0 rgba(216,130,0,.55)}.history-admin-badge{font-size:.78rem}.history-detail{display:block;font-weight:400;font-size:.82rem;opacity:.7;margin-top:.12rem}.history-table th:first-child,.history-table td:first-child{width:145px;white-space:nowrap}.history-table th:nth-child(2),.history-table td:nth-child(2){min-width:210px}.history-event summary{background:#fff}.history-change{margin:.8rem 0}.history-change-head{display:flex;justify-content:space-between;gap:1rem;align-items:baseline}.history-change-head span{font-size:.9rem;opacity:.75}.history-change ul{margin-top:.65rem;line-height:1.65}.event-changes{max-width:1050px;margin:1rem auto}
@media(max-width:700px){.history-view-switch{display:grid;grid-template-columns:1fr}.history-change-head{display:block}.history-change-head span{display:block;margin-top:.25rem}.history-table th:nth-child(3),.history-table td:nth-child(3){display:table-cell}}
.participant-history-action{width:72px;text-align:center!important;white-space:nowrap}.participant-table th.participant-history-action{font-size:.72rem}

/* H1 final: historiek als vaste grid, gelijk aan de deelnemerslijst. */
.history-table{table-layout:fixed;width:100%}
.history-table .hc-when{width:150px}.history-table .hc-action{width:28%}.history-table .hc-event{width:22%}.history-table .hc-person{width:16%}.history-table .hc-mail{width:95px}
.history-table th,.history-table td{border-bottom:1px solid #e4e7eb}
.history-table tbody tr:nth-child(even){background:#f6f7f8}.history-table tbody tr:nth-child(odd){background:#fff}
.history-table td{overflow-wrap:anywhere}.history-table td:first-child{white-space:nowrap}
.history-admin-badge{margin-left:.2rem}
@media(max-width:900px){.history-table{min-width:900px}.history-table-wrap{overflow-x:auto}}

/* v1.1 H1 final: één compacte 4-koloms Historiek op alle schermen */
.history-table-compact{table-layout:fixed;width:100%;min-width:0}
.history-table-compact .hc-when{width:145px}
.history-table-compact .hc-context{width:auto}
.history-table-compact .hc-people{width:30%}
.history-table-compact .hc-mail{width:105px}
.history-table-compact th,.history-table-compact td{overflow-wrap:normal;word-break:normal}
.history-table-compact .history-when{white-space:nowrap}
.history-context .history-event-name{display:block;font-size:.86rem;font-weight:600;line-height:1.25;margin-bottom:.16rem}
.history-context .history-action{display:block;line-height:1.3}
.history-people span{display:block;line-height:1.35}
.history-people b{font-size:.78rem;opacity:.68;margin-right:.2rem}
.history-mail{white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important}

@media(max-width:900px){
  .history-table-compact{min-width:0;font-size:.84rem}
  .history-table-compact .hc-when{width:125px}
  .history-table-compact .hc-people{width:31%}
  .history-table-compact .hc-mail{width:92px}
  .history-table-compact th,.history-table-compact td{padding:.5rem .55rem}
}
@media(max-width:650px){
  .history-table-wrap{overflow-x:auto}
  .history-table-compact{min-width:650px}
  .history-table-compact .hc-when{width:120px}
  .history-table-compact .hc-people{width:190px}
  .history-table-compact .hc-mail{width:90px}
}


/* H1 Historiek - betrokkenen netjes uitlijnen */
.history-people b {
    display: inline-block;
    width: 42px;
}
/* v1.15 Historiek / deelnemerslijst polish */
.history-admin-icon {
    width: 15px;
    height: 15px;
    object-fit: contain;
    vertical-align: -2px;
    margin-left: .25rem;
}
.participant-table:not(.participant-table--management) .participant-duo-content {
    justify-content: flex-start;
}
.participant-table:not(.participant-table--management) .participant-duo-actions {
    justify-content: flex-start;
}

/* WordPress sync cockpit */
.wp-sync-page .page-header-row{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;flex-wrap:wrap}.wp-env-badge{padding:.65rem .9rem;border:1px solid #bbb;border-radius:8px;background:#fff}.wp-sync-table{min-width:980px}.wp-sync-table .inline-form{display:flex;gap:.45rem;flex-wrap:wrap;margin-top:.5rem}.wp-sync-table small{opacity:.75}

/* Sprint 36 - event lifecycle + eenvoudige jaarkalender */
.event-lifecycle-actions { display:grid; gap:8px; margin:0 0 12px; }
.lifecycle-state, .event-last-action { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:10px 12px; border:1px solid var(--border); border-radius:var(--radius); background:var(--panel-background); }
.lifecycle-state > div:first-child, .event-last-action > div { display:grid; gap:3px; min-width:0; }
.lifecycle-state span, .event-last-action span { color:var(--muted); font-size:13px; }
.lifecycle-state.is-ok { background:#e8f4ec; }
.lifecycle-state.is-waiting { background:#fff5d9; }
.lifecycle-state-cancelled { background:#f8e8e8; border-color:#b76565; }
.lifecycle-buttons { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.calendar-year-list { display:grid; gap:22px; }
.calendar-month h2 { margin:0 0 8px; }
.calendar-month-events { border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--panel-background); }
.calendar-event { display:grid; grid-template-columns:72px minmax(0,1fr) minmax(150px,240px); gap:14px; align-items:center; padding:11px 13px; border-bottom:1px solid var(--border); }
.calendar-event:last-child { border-bottom:0; }
.calendar-event.is-koers { background:linear-gradient(90deg, rgba(111,66,193,.10) 0%, rgba(111,66,193,.035) 48%, rgba(255,255,255,0) 100%); }
.calendar-event.is-other { background:linear-gradient(90deg, rgba(88,166,255,.11) 0%, rgba(88,166,255,.035) 48%, rgba(255,255,255,0) 100%); }
.calendar-event-date { font-weight:700; font-variant-numeric:tabular-nums; }
.calendar-event-main { display:grid; gap:3px; min-width:0; }
.calendar-event-main > span, .calendar-event-organizer { color:var(--muted); font-size:13px; }
.calendar-meta { display:flex; gap:6px; flex-wrap:wrap; margin-top:2px; }
.calendar-meta span { padding:2px 6px; border-radius:999px; background:#f1f3f5; font-size:11px; }
.calendar-event.is-cancelled .calendar-event-main > strong { text-decoration:line-through; }
.calendar-event.is-cancelled { background:#f8eeee; }
.calendar-cancelled-label { text-decoration:none; display:inline-block; margin-left:6px; font-size:11px; padding:2px 6px; border-radius:999px; background:#f0cccc; color:#7f2929; }
@media(max-width:720px){ .lifecycle-state,.event-last-action{align-items:flex-start;flex-direction:column}.lifecycle-buttons{justify-content:flex-start}.calendar-event{grid-template-columns:58px minmax(0,1fr)}.calendar-event-organizer{grid-column:2}.calendar-filters{grid-template-columns:1fr} }


/* 2026-08-18 event icon right alignment */
.member-event-row .event-icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
}

.member-event-row .event-icons .event-icon {
    flex: 0 0 46px;
}
