* {
    margin: 0;
    padding: 0;
}

body, html {
    font-family: Helvetica, serif;
    background-color: rgba(205,92,92,0.3);
}

button,
input,
select,
textarea {
    font: inherit;
}

input[type="email"] {
    box-sizing: border-box;
    max-width: 100%;
    min-width: min(100%, 22rem);
    width: min(100%, 34rem);
}

.form-checkbox-line {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: start;
    gap: 0.45rem;
}

.form-checkbox-line input[type="checkbox"] {
    margin-top: 0.2rem;
}

.page-container {
    height: 100vh;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
}

.page-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    height: 5rem;
    background-color: rgba(205,92,92);
    color: rgb(255, 255, 255);
    align-items: center;
    font-size: 2.2rem;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);*/
}

.page-header-logo {
    display: inline;
    max-height:  6rem;
    max-width: 6rem;
    margin-left: 1rem;
}
.page-header-logo img {
    max-height: 100%;
    max-width: 100%;
}

.page-header-title {
    display: inline;
}

.page-header-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    margin-right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.page-header-user-block {
    margin-top: .5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap:  1rem;
    font-size: 1rem;
    position: relative;
}

.page-header-event-context {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    max-width: 18rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    line-height: 1.15;
}

.page-header-event-context strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
}

.page-header-event-switch form {
    display: inline-block;
}

.page-header-event-switch select {
    max-width: 14rem;
}

@media (min-width: 900px) {
    .page-header-event-context {
        display: flex;
    }
}

.page-header-usermenu {
    display: none;
    position: absolute;
    top: 2.6rem;
    right: 0.5rem;
    min-width: 9rem;
    list-style-type: none;
    background-color: rgb(71, 75, 80);
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 120;
}

.page-header-usermenu li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
}

.page-header-usermenu a {
    color: rgb(255, 255, 255);
    text-decoration: none;
}

.page-header-menu-button {
    border: 0;
    background: transparent;
    color: rgb(255, 255, 255);
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-align: left;
}

.page-header-panic-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 2.2rem;
    padding: 0 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 0.4rem;
    background-color: #7d1f1f;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.page-header-panic-button:hover,
.page-header-panic-button:focus {
    background-color: #5f1717;
}

.page-header-panic-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.page-header-usermenu li:hover {
    background-color: #4c2828;
}

.account-email-modal-open {
    overflow: hidden;
}

.app-popup-modal-open {
    overflow: hidden;
}

.account-email-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.45);
    overflow: auto;
}

.app-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(28, 36, 48, 0.58);
}

.app-popup-overlay[hidden] {
    display: none;
}

.app-popup-dialog {
    width: min(1080px, 96vw);
    height: min(820px, 92vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(12, 20, 32, 0.28);
}

.app-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid #d7dde7;
    background: #f8fafc;
}

.app-popup-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.app-popup-close {
    border: 0;
    background: transparent;
    color: #283445;
    font-size: 1.1rem;
    cursor: pointer;
}

.app-popup-dialog iframe {
    width: 100%;
    flex: 1;
    border: 0;
    background: #fff;
}

.account-email-overlay[hidden] {
    display: none !important;
}

.account-email-overlay.is-open {
    display: flex !important;
}

.account-email-dialog {
    width: min(44rem, calc(100vw - 2rem));
    height: min(42rem, calc(100dvh - 2rem));
    min-width: min(22rem, calc(100vw - 2rem));
    min-height: min(26rem, calc(100dvh - 2rem));
    max-width: calc(100vw - 2rem);
    max-height: calc(100dvh - 2rem);
    border: 1px solid rgb(255, 255, 255);
    border-radius: 0.5rem;
    padding: 0;
    background-color: #cd5c5c;
    color: rgb(255, 255, 255);
    overflow: hidden;
    resize: both;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.35);
}

.account-email-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    height: 100%;
    max-height: calc(100dvh - 2rem);
    box-sizing: border-box;
    overflow-y: auto;
    padding: 1.25rem;
    background-color: #cd5c5c;
}

.account-email-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: -1.25rem -1.25rem 0;
    padding: 0.9rem 1.25rem;
    background-color: rgb(71, 75, 80);
    border-bottom: 1px solid rgb(255, 255, 255);
}

.account-email-dialog-header h2 {
    font-size: 1.25rem;
    color: rgb(255, 255, 255);
}

.account-email-close {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 0.25rem;
    background: rgb(198, 199, 201);
    color: rgb(54, 69, 79);
    cursor: pointer;
}

.account-email-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.95rem;
    font-weight: bold;
    color: rgb(255, 255, 255);
}

.account-email-field input,
.account-email-field textarea {
    border: 1px solid rgb(125, 126, 131);
    border-radius: 0.5rem;
    box-sizing: border-box;
    width: 100%;
    padding: 0.5rem;
    font: inherit;
    font-weight: normal;
    background-color: #f9f9f9;
    color: rgb(36, 36, 37);
}

.account-email-field textarea {
    min-height: 9rem;
    resize: vertical;
}

.account-email-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    margin: 0 -1.25rem -1.25rem;
    padding: 0.9rem 1.25rem;
    background-color: rgba(71, 75, 80, 0.28);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
}

@media (max-width: 34rem), (max-height: 34rem) {
    .account-email-overlay {
        align-items: flex-start;
        padding: 0.5rem;
    }

    .account-email-dialog {
        width: calc(100vw - 1rem);
        height: calc(100dvh - 1rem);
        min-width: 0;
        min-height: 0;
        max-width: calc(100vw - 1rem);
        max-height: calc(100dvh - 1rem);
        resize: none;
    }
}

.account-email-flash {
    margin: 0.7rem 0.3rem 0;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: rgb(54, 69, 79);
    font-weight: bold;
}

.account-email-flash.error {
    border-left: 0.35rem solid #b42318;
}

.account-email-flash.success {
    border-left: 0.35rem solid #2e6785;
}

.panic-flash {
    margin: 0.7rem 0.3rem 0;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: rgb(54, 69, 79);
    font-weight: bold;
}

.panic-flash[hidden] {
    display: none;
}

.panic-flash.error {
    border-left: 0.35rem solid #b42318;
}

.panic-flash.success {
    border-left: 0.35rem solid #2e6785;
}

.page-navigation {
    margin-top: 0.7rem;
    margin-left: 0.3rem;
    margin-right: 0.3rem;
    background-color: rgb(71, 75, 80);
    font-size: 0.8rem;
    color: rgb(255, 255, 255); /*wit*/
    justify-content: space-between;
    border-radius: .5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-navigation-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    margin: 0.7rem 0.7rem 0;
    padding: 0 1rem;
    border: 0;
    border-radius: 0.5rem;
    background-color: rgb(71, 75, 80);
    color: rgb(255, 255, 255);
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.page-navigation ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.page-navigation ul li {
    position: relative;
}

.page-navigation ul li a {
    display: block;
    border-radius: 0.5rem;
    color: rgb(255, 255, 255);
    text-align: center;
    min-height: 2.5rem;
    box-sizing: border-box;
    padding: 0.7rem 1rem;
    text-decoration: none;
}

.page-navigation ul li a:hover {
    background-color: #4c2828;
    border: 1px solid rgb(255, 255, 255) ;
}

.page-navigation .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 10rem;
    background-color: rgb(71, 75, 80);
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.page-navigation .has-submenu:hover > .submenu,
.page-navigation .has-submenu:focus-within > .submenu {
    display: block;
}

.page-navigation .submenu li {
    width: 100%;
}

.page-navigation .submenu a {
    text-align: left;
    white-space: nowrap;
}

.page-navigation .submenu .submenu {
    border-radius: 0.5rem;
    left: 100%;
    top: 0;
}

.page-main-container {
    display: flex;
    /*border: 1px solid rgb(255, 255, 255);*/
    flex-direction: column;
    /*justify-content: center;*/
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: .5rem;
    margin: 0.7rem 0.3rem;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);*/
}

@media (max-width: 760px) {
    .page-container {
        min-height: 100dvh;
        height: auto;
        grid-template-rows: auto auto auto 1fr auto;
    }

    .page-header {
        box-sizing: border-box;
        min-height: 4.25rem;
        height: auto;
        gap: 0.55rem;
        padding: 0.45rem 0.65rem;
        font-size: 1.15rem;
    }

    .page-header-logo {
        flex: 0 0 auto;
        max-height: 3.4rem;
        max-width: 3.4rem;
        margin-left: 0;
    }

    .page-header-title {
        flex: 1 1 auto;
        min-width: 0;
        font-size: clamp(1rem, 5vw, 1.35rem);
        line-height: 1.1;
    }

    .page-header-user-block {
        gap: 0.25rem;
        margin-top: 0;
    }

    .page-header-username {
        display: none;
    }

    .page-header-menu-icon {
        margin-right: 0;
    }

    .page-header-panic-button {
        min-width: 2.75rem;
        width: 2.75rem;
        padding: 0;
    }

    .page-header-panic-button i {
        font-size: 1.1rem;
        margin: 0;
    }

    .page-header-panic-button {
        font-size: 0;
    }

    .page-header-usermenu {
        position: fixed;
        top: 4.25rem;
        left: 0.7rem;
        right: 0.7rem;
        min-width: 0;
        border-radius: 0.5rem;
    }

    .page-header-usermenu li,
    .page-header-usermenu a,
    .page-header-menu-button {
        width: 100%;
    }

    .page-header-event-switch form,
    .page-header-event-switch select {
        width: 100%;
        max-width: none;
    }

    .page-navigation-toggle {
        display: inline-flex;
    }

    .page-navigation {
        display: none;
        margin: 0.5rem 0.7rem 0;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    }

    .page-navigation.is-open {
        display: block;
    }

    .page-navigation ul {
        display: grid;
        grid-template-columns: 1fr;
    }

    .page-navigation ul li a {
        text-align: left;
    }

    .page-navigation .submenu,
    .page-navigation .submenu .submenu {
        display: block;
        position: static;
        min-width: 0;
        border-radius: 0;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.08);
    }

    .page-navigation .submenu a {
        padding-left: 2rem;
        white-space: normal;
    }

    .page-navigation .submenu .submenu a {
        padding-left: 3rem;
    }

    .page-main-container {
        align-items: stretch;
        gap: 0.75rem;
        margin: 0.6rem 0;
        padding: 0.7rem;
    }

    .app-popup-overlay {
        align-items: stretch;
        padding: 0.5rem;
    }

    .app-popup-dialog {
        width: 100%;
        height: calc(100dvh - 1rem);
    }

    .app-popup-header {
        padding: 0.75rem 0.9rem;
    }
}

.page-footer {
    background: rgba(205,92,92);
    height: 2rem;
}

.formulierbeheer {
    width: min(1100px, 100%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.formulierbeheer-section {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(132, 55, 55, 0.22);
    border-radius: 0.5rem;
}

.formulierbeheer-section h1,
.formulierbeheer-section h2 {
    margin-bottom: 0.75rem;
}

.formulierbeheer-actions {
    display: flex;
    justify-content: flex-end;
}

.formulierbeheer-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.formulierbeheer-title-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.formulierbeheer-form {
    display: grid;
    grid-template-columns: minmax(10rem, 14rem) minmax(14rem, 1fr);
    gap: 0.65rem 1rem;
    align-items: center;
}

.formulierbeheer-form input,
.formulierbeheer-form select,
.formulierbeheer-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.45rem 0.55rem;
}

.formulierbeheer-form input[type="checkbox"] {
    width: auto;
}

.formulierbeheer-form input[type="submit"] {
    grid-column: 2;
    width: fit-content;
    min-width: 10rem;
}

.formulierbeheer-inline-fields {
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) minmax(6rem, 0.7fr);
    gap: 0.5rem;
}

.formulierbeheer-sort-input {
    max-width: 5rem;
}

.record-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.record-checkbox-list label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.45rem;
    align-items: start;
}

.admin-warning {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #d09a2d;
    background: #fff7e5;
}

.choice-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.choice-button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(54, 69, 79, 0.24);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.82);
    color: rgb(54, 69, 79);
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.choice-button.is-active {
    background: rgb(31, 92, 121);
    color: white;
}

.existing-volunteer-panel {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.existing-volunteer-panel[hidden] {
    display: none;
}

.existing-volunteer-panel select {
    min-height: 12rem;
}

.volunteer-search-meta {
    color: #36454F;
    font-size: 0.9rem;
}

.internal-next-actions {
    justify-content: flex-start;
    padding-top: 0.75rem;
}

.formulierbeheer-fieldset {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 18rem;
    overflow-y: auto;
    padding: 0.75rem;
    border: 1px solid rgba(132, 55, 55, 0.25);
    border-radius: 0.35rem;
    background: #fff;
}

.formulierbeheer-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.formulierbeheer-check-full {
    grid-column: 1 / -1;
}

.formulierbeheer-check input {
    margin-top: 0.2rem;
}

.formulierbeheer-step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 1rem;
}

.formulierbeheer-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.formulierbeheer-list-row {
    display: grid;
    grid-template-columns: minmax(14rem, 1.4fr) minmax(9rem, 0.8fr) minmax(7rem, auto) minmax(9rem, auto) minmax(8rem, auto) minmax(8rem, auto);
    gap: 1rem;
    align-items: center;
    padding: 0.7rem 0.8rem;
    color: #222;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(132, 55, 55, 0.18);
    border-radius: 0.35rem;
}

@media (max-width: 760px) {
    .formulierbeheer-section {
        padding: 0.85rem;
    }

    .formulierbeheer-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .formulierbeheer-title-actions,
    .formulierbeheer-actions {
        justify-content: stretch;
    }

    .formulierbeheer-title-actions > *,
    .formulierbeheer-actions > *,
    .formulierbeheer-step-actions > * {
        flex: 1 1 100%;
    }

    .formulierbeheer-form,
    .formulierbeheer-inline-fields,
    .formulierbeheer-list-row {
        grid-template-columns: 1fr;
    }

    .formulierbeheer-form input[type="submit"] {
        grid-column: 1;
        width: 100%;
    }

    .onderdeel-filter {
        display: flex;
        align-items: stretch;
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
    }

    .onderdeel-filter select,
    .compact-filter {
        width: 100%;
        max-width: none;
    }
}

.formulierbeheer-list-row:hover,
.formulierbeheer-list-row.is-selected {
    border-color: #cd5c5c;
    background: #fff7f7;
}

.formulierbeheer-list-row span:first-child {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.formulierbeheer-list-row small {
    color: #555;
}

.formulierbeheer-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1rem 0;
    border-bottom: 1px solid rgba(132, 55, 55, 0.25);
}

.formulierbeheer-tabs a {
    padding: 0.55rem 0.8rem;
    color: #222;
    text-decoration: none;
    border: 1px solid rgba(132, 55, 55, 0.25);
    border-bottom: 0;
    border-radius: 0.35rem 0.35rem 0 0;
    background: rgba(255, 255, 255, 0.62);
}

.formulierbeheer-tabs a.is-active {
    background: #fff;
    color: #8e3333;
    font-weight: 700;
}

.aanmelding-question {
    display: grid;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.aanmelding-option-list {
    display: grid;
    gap: 0.35rem;
}

.aanmelding-option-line {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.45rem;
    align-items: start;
}

.aanmelding-option-line input {
    margin-top: 0.25rem;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.inline-form button.link-button {
    border: 0;
    background: transparent;
    color: #8e3333;
    cursor: pointer;
    padding: 0;
}

.compact-filter {
    max-width: 26rem;
    margin-bottom: 1rem;
}

.onderdeel-toolbar {
    margin: 0.8rem 0;
}

.onderdeel-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(54, 69, 79, 0.16);
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.75);
}

.onderdeel-filter label {
    font-weight: 700;
}

.onderdeel-filter select {
    min-width: 14rem;
}

.aanmelding-filter-form,
.aanmelding-search-form,
.vrijwilliger-search-form {
    display: grid;
    grid-template-columns: auto minmax(16rem, 1fr) auto auto auto;
    gap: 0.65rem;
    align-items: end;
    margin: 0 0 1rem;
    padding: 0.7rem;
    border: 1px solid rgba(54, 69, 79, 0.16);
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.74);
}

.aanmelding-search-form,
.vrijwilliger-search-form {
    grid-template-columns: minmax(14rem, auto) minmax(18rem, 1fr) auto;
}

.aanmelding-filter-form label,
.aanmelding-search-form label,
.vrijwilliger-search-form label {
    font-weight: 700;
}

.aanmelding-filter-form input,
.aanmelding-filter-form select,
.aanmelding-search-form input,
.vrijwilliger-search-form input {
    min-height: 38px;
    box-sizing: border-box;
    border: 1px solid rgba(54, 69, 79, 0.28);
    border-radius: 4px;
    padding: 0.45rem 0.55rem;
    font: inherit;
}

.aanmelding-list-panel {
    margin-top: 0.75rem;
}

.aanmelding-list-panel .admin-panel-heading {
    margin-bottom: 0.75rem;
}

.aanmelding-list-panel .admin-panel-heading h2 {
    margin-bottom: 0.2rem;
}

.aanmelding-list-panel .admin-panel-heading p {
    margin: 0;
}

.aanmelding-list-filter {
    margin-bottom: 0.85rem;
}

.aanmelding-grid-list {
    border: 1px solid rgba(54, 69, 79, 0.18);
    border-radius: 0.35rem;
    overflow-x: auto;
}

.aanmelding-grid-row {
    display: grid;
    grid-template-columns: minmax(14rem, 1.45fr) minmax(4.5rem, 0.45fr) minmax(7rem, 0.7fr) minmax(10rem, 0.95fr) minmax(10rem, 0.95fr) minmax(10rem, 0.95fr) minmax(16rem, 1.65fr) minmax(8rem, auto);
    min-width: 86rem;
    align-items: stretch;
    background-color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(54, 69, 79, 0.1);
}

.aanmelding-grid-row.is-even {
    background-color: rgba(255, 255, 255, 0.62);
}

.aanmelding-grid-row > span,
.aanmelding-grid-row > a {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0.55rem 0.65rem;
    overflow-wrap: anywhere;
}

.aanmelding-grid-header {
    background-color: rgb(46, 103, 133);
    border-top: 0;
    color: rgb(255, 255, 255);
    font-weight: 700;
}

.aanmelding-grid-header > a {
    color: inherit;
    text-decoration: none;
}

.aanmelding-grid-header > a:hover {
    text-decoration: underline;
}

.aanmelding-grid-row .is-number {
    justify-content: flex-end;
}

.aanmelding-grid-actions {
    justify-content: flex-end;
    white-space: nowrap;
}

.availability-popout {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(20, 30, 40, 0.42);
}

.availability-popout[hidden] {
    display: none;
}

.availability-popout-panel {
    display: grid;
    gap: 1rem;
    width: min(34rem, 100%);
    padding: 1rem;
    border: 1px solid rgba(54, 69, 79, 0.18);
    border-radius: 0.45rem;
    background: #fff;
    box-shadow: 0 1.4rem 3rem rgba(20, 30, 40, 0.22);
}

.availability-popout-header,
.availability-popout-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.availability-popout-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.availability-popout-header p {
    margin: 0.2rem 0 0;
    color: #52606b;
}

.availability-popout-close {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid rgba(54, 69, 79, 0.18);
    border-radius: 0.25rem;
    background: #fff;
    color: rgb(54, 69, 79);
}

.availability-popout-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.availability-popout-fields label {
    display: grid;
    gap: 0.25rem;
    color: rgb(54, 69, 79);
    font-weight: 700;
}

.availability-popout-fields input {
    min-height: 2.35rem;
}

.availability-popout-reason {
    grid-column: 1 / -1;
}

.availability-popout-actions {
    justify-content: flex-end;
}

.voorkeuren-beheer {
    display: grid;
    gap: 1rem;
}

.voorkeur-add-form {
    grid-template-columns: minmax(12rem, 1fr) minmax(14rem, 1.3fr) minmax(12rem, 1fr) minmax(6rem, 0.45fr) auto;
    align-items: end;
}

.voorkeur-list {
    display: grid;
    border: 1px solid rgba(54, 69, 79, 0.18);
    border-radius: 0.35rem;
    overflow-x: auto;
}

.voorkeur-list-row {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) minmax(16rem, 1.35fr) minmax(12rem, 0.9fr) minmax(5rem, 0.35fr) minmax(7rem, 0.45fr) minmax(4rem, auto);
    gap: 0.4rem;
    align-items: center;
    min-width: 72rem;
    padding: 0.55rem;
    border-top: 1px solid rgba(54, 69, 79, 0.1);
    background: rgba(255, 255, 255, 0.86);
}

.voorkeur-list-fields {
    display: contents;
}

.voorkeur-list-header {
    background-color: rgb(46, 103, 133);
    color: #fff;
    font-weight: 700;
    border-top: 0;
}

.voorkeur-list-row input,
.voorkeur-list-row select {
    min-width: 0;
}

.compact-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.table-action-link.is-danger {
    color: #8f2424;
}

.dashboard-card-note {
    margin-top: 0.55rem;
    font-weight: 700;
}

.dashboard-link-card {
    display: grid;
    gap: 0.75rem;
}

.dashboard-direct-link {
    display: grid;
    gap: 0.35rem;
    font-weight: 700;
}

.dashboard-direct-link input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid rgba(54, 69, 79, 0.2);
    border-radius: 6px;
    padding: 0.55rem 0.65rem;
    background: rgba(255, 255, 255, 0.9);
    color: rgb(54, 69, 79);
    font: inherit;
    font-size: 0.9rem;
}

.dashboard-link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.beheer-aanmelding-form {
    display: grid;
    gap: 16px;
}

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

.beheer-aanmelding-grid label,
.beheer-aanmelding-checks label {
    display: grid;
    gap: 5px;
    font-weight: 700;
}

.beheer-aanmelding-grid input,
.beheer-aanmelding-grid select,
.beheer-aanmelding-grid textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(54, 69, 79, 0.32);
    border-radius: 4px;
    padding: 0.5rem 0.6rem;
    font: inherit;
    font-weight: 400;
}

.beheer-aanmelding-grid textarea {
    min-height: 110px;
    resize: vertical;
}

.beheer-aanmelding-full {
    grid-column: 1 / -1;
}

.beheer-aanmelding-checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 0.65rem 1rem;
}

.beheer-aanmelding-checks label {
    grid-template-columns: auto 1fr;
    align-items: start;
    border: 1px solid rgba(54, 69, 79, 0.12);
    border-radius: 4px;
    padding: 0.55rem;
    background: rgba(255, 255, 255, 0.68);
}

.beheer-aanmelding-actions {
    justify-content: flex-end;
}

.admin-parameter-row {
    grid-template-columns: minmax(10rem, 0.8fr) minmax(12rem, 1fr) minmax(18rem, 2fr) auto;
    align-items: end;
}

.admin-parameter-row label {
    display: grid;
    gap: 0.35rem;
    font-weight: 700;
}

.admin-parameter-row input,
.admin-parameter-row textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(54, 69, 79, 0.28);
    border-radius: 4px;
    padding: 0.45rem 0.55rem;
    font: inherit;
    font-weight: 400;
}

.groep-form-panel {
    margin: 1rem 0;
}

.groep-form {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) minmax(16rem, 1.4fr) minmax(14rem, 1fr);
    gap: 0.75rem 1rem;
    align-items: end;
}

.groep-form label,
.groep-add-member {
    display: grid;
    gap: 0.35rem;
    font-weight: 700;
}

.groep-form input,
.groep-form select,
.groep-form textarea,
.groep-add-member select {
    box-sizing: border-box;
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(54, 69, 79, 0.28);
    border-radius: 4px;
    padding: 0.5rem 0.6rem;
    font: inherit;
}

.groep-form .form-actions {
    margin: 0;
}

.groep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
    gap: 1rem;
}

.groep-card {
    display: grid;
    gap: 0.85rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(54, 69, 79, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 8px 22px rgba(54, 69, 79, 0.1);
}

.groep-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.groep-card-header > div {
    min-width: 0;
}

.groep-card-header h2,
.groep-card-header p {
    margin: 0;
    overflow-wrap: anywhere;
}

.groep-card-header span {
    white-space: nowrap;
    color: rgb(54, 69, 79);
    font-weight: 700;
}

.groep-edit-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto;
}

.groep-edit-form .form-actions {
    align-self: end;
}

.groep-edit-form .secondary-action {
    white-space: nowrap;
}

.groep-members {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.groep-member-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0.55rem;
    border: 1px solid rgba(54, 69, 79, 0.12);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.82);
}

.groep-member-row span {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.groep-member-row small {
    color: rgb(83, 93, 101);
    overflow-wrap: anywhere;
}

.groep-add-member {
    grid-template-columns: 1fr;
    min-width: 0;
}

.groep-member-search {
    font-weight: 400;
}

.groep-member-search input[type="search"] {
    box-sizing: border-box;
    min-height: 38px;
    width: 100%;
}

.groep-search-empty {
    grid-template-columns: 1fr;
    color: rgb(83, 93, 101);
}

.groep-delete-form {
    margin: 0;
    justify-self: end;
}

@media (max-width: 980px) {
    .groep-edit-form {
        grid-template-columns: 1fr;
    }

    .groep-edit-form .form-actions {
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .aanmelding-filter-form,
    .aanmelding-search-form,
    .vrijwilliger-search-form,
    .beheer-aanmelding-grid,
    .groep-form,
    .groep-add-member {
        grid-template-columns: 1fr;
    }
}

.onderdeel-form-panel {
    max-width: 1120px;
    padding: 18px;
    border: 1px solid rgba(54, 69, 79, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 22px rgba(54, 69, 79, 0.12);
}

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

.onderdeel-field {
    display: flex;
    flex-direction: column;
    grid-column: span 4;
    gap: 5px;
    min-width: 0;
}

.onderdeel-field-wide {
    grid-column: span 6;
}

.onderdeel-field-full {
    grid-column: 1 / -1;
}

.onderdeel-field-date {
    grid-column: 1 / span 3;
}

.onderdeel-field-time {
    grid-column: 4 / span 3;
}

.onderdeel-field-check {
    justify-content: end;
}

.onderdeel-field-check input[type="checkbox"] {
    align-self: start;
    height: 28px;
    margin: 0;
    width: 28px;
}

.onderdeel-field label {
    color: rgb(36, 36, 37);
    font-weight: 700;
}

.onderdeel-field input,
.onderdeel-field select,
.onderdeel-field textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 36px;
    border: 1px solid rgba(54, 69, 79, 0.34);
    border-radius: 4px;
    padding: 7px 9px;
    background: #fff;
    color: rgb(36, 36, 37);
    font: inherit;
}

.onderdeel-field textarea {
    min-height: 110px;
    resize: vertical;
}

.onderdeel-form .form-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 4px;
}

.onderdeel-day-times {
    border: 1px solid rgba(54, 69, 79, 0.16);
    border-radius: 6px;
    padding: 0.75rem;
}

.event-workgroup-list {
    display: grid;
    gap: 1rem;
}

.event-workgroup-card {
    border: 1px solid rgba(54, 69, 79, 0.16);
    border-radius: 8px;
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.72);
}

.event-workgroup-card h3 {
    margin: 0 0 0.25rem;
}

.event-workgroup-card p {
    margin: 0;
}

.event-workgroup-members {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.workgroup-checkbox-list {
    border: 1px solid rgba(54, 69, 79, 0.16);
    border-radius: 6px;
    display: grid;
    gap: 0.45rem;
    padding: 0.75rem;
}

.workgroup-checkbox-list label {
    align-items: center;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: auto 1fr;
}

.workgroup-checkbox-list .workgroup-assignment-row {
    align-items: center;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: minmax(180px, 0.45fr) minmax(220px, 1fr);
}

.workgroup-assignment-choice {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    min-width: 0;
}

.workgroup-assignment-row input[type="text"]:disabled {
    background: rgba(54, 69, 79, 0.06);
    color: rgba(54, 69, 79, 0.55);
}

.workgroup-checkbox-list input[type="checkbox"] {
    height: 20px;
    margin: 0;
    width: 20px;
}

.workgroup-member-inputs {
    display: grid;
    gap: 0.5rem;
}

.volunteer-search {
    display: grid;
    gap: 0.45rem;
    position: relative;
}

.volunteer-search-results {
    display: grid;
    gap: 0.35rem;
}

.volunteer-search-result {
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(54, 69, 79, 0.16);
    border-radius: 4px;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr 2.5rem;
    padding: 0.35rem 0.45rem;
}

.volunteer-search-result button,
.selected-volunteer button {
    align-items: center;
    border-radius: 4px;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 28px;
    padding: 0 0.6rem;
}

.selected-volunteer-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.selected-volunteer {
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(54, 69, 79, 0.16);
    border-radius: 4px;
    display: inline-flex;
    gap: 0.45rem;
    max-width: 100%;
    padding: 0.25rem 0.35rem 0.25rem 0.55rem;
}

.selected-volunteer span {
    overflow-wrap: anywhere;
}

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

.event-workgroup-table th,
.event-workgroup-table td {
    border-bottom: 1px solid rgba(54, 69, 79, 0.14);
    padding: 0.65rem;
    text-align: left;
    vertical-align: top;
}

.event-workgroup-table tr.is-selected {
    background: rgba(255, 255, 255, 0.72);
}

.event-workgroup-table td:last-child {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 900px) {
    .onderdeel-field,
    .onderdeel-field-wide,
    .onderdeel-field-date,
    .onderdeel-field-time {
        grid-column: span 6;
    }
}

@media (max-width: 640px) {
    .onderdeel-form {
        grid-template-columns: 1fr;
    }

    .onderdeel-field,
    .onderdeel-field-wide,
    .onderdeel-field-date,
    .onderdeel-field-time,
    .onderdeel-field-full,
    .onderdeel-form .form-actions {
        grid-column: 1;
    }

    .workgroup-checkbox-list .workgroup-assignment-row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }
}

.detail-list {
    display: grid;
    grid-template-columns: minmax(10rem, 14rem) 1fr;
    gap: 0.5rem 1rem;
}

.detail-list dt {
    font-weight: 700;
}

.table-action-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    width: 100%;
}

.table-action-form {
    display: inline-flex;
    margin: 0;
}

.table-action-link,
.table-action-form .table-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(54, 69, 79, 0.18);
    border-radius: 0.25rem;
    background: #fff;
    color: rgb(54, 69, 79);
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}

.table-action-link:hover {
    border-color: rgb(46, 103, 133);
    color: rgb(46, 103, 133);
    background: rgba(46, 103, 133, 0.08);
}

.table-action-link.is-danger:hover {
    border-color: #b42318;
    color: #b42318;
    background: rgba(180, 35, 24, 0.08);
}

.list-header.gebied-list-row,
.list-row.gebied-list-row {
    grid-template-columns: 6.5rem 8rem 11rem 11rem 11rem 6.5rem minmax(12rem, 1fr) minmax(14rem, 1.2fr) 4.75rem 6rem 4.75rem;
    min-width: 100rem;
}

.list-header.gebied-list-row.is-admin-context,
.list-row.gebied-list-row.is-admin-context {
    grid-template-columns: 6.5rem minmax(11rem, 1fr) 11rem 6.5rem minmax(12rem, 1fr) minmax(14rem, 1.2fr) 4.75rem 6rem 4.75rem;
    min-width: 78rem;
}

.gebied-list {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
}

.list-row.gebied-list-row {
    margin: 0;
}

.gebied-inline-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    margin: 0;
}

.gebied-inline-form input[type="text"],
.gebied-list-row input[type="text"],
.gebied-list-row select,
.gebied-list-row textarea {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 2rem;
    border: 1px solid rgba(54, 69, 79, 0.34);
    border-radius: 4px;
    padding: 0.35rem 0.5rem;
    background: #fff;
    color: rgb(36, 36, 37);
    font: inherit;
}

.gebied-list-row textarea {
    min-height: 3rem;
    resize: vertical;
}

.gebied-list-row .row_column {
    align-items: flex-start;
}

.gebied-list-row .row_column.right,
.gebied-list-row .row_column.actions {
    align-items: center;
}

.gebied-list-row .row_column.actions {
    flex-wrap: wrap;
    gap: 0.25rem;
}

.gebied-list-row .gebied-primary-actions {
    align-items: flex-start;
}

.gebied-list-row .table-action-link.has-label,
.gebied-overview-actions .table-action-link.has-label {
    width: auto;
    min-width: 0;
    height: 2rem;
    padding: 0 0.55rem;
    gap: 0.35rem;
    white-space: nowrap;
}

.gebied-overview-list {
    display: grid;
    gap: 0.65rem;
}

.gebied-overview-item {
    display: grid;
    grid-template-columns: minmax(18rem, 1fr) auto auto;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(54, 69, 79, 0.14);
    border-radius: 6px;
    background: #fff;
}

.gebied-overview-main {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.gebied-overview-main > div:first-child {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
    min-width: 0;
}

.gebied-overview-main strong,
.gebied-overview-main p {
    min-width: 0;
    overflow-wrap: anywhere;
}

.gebied-overview-main p {
    margin: 0;
    color: rgba(36, 36, 37, 0.78);
}

.gebied-overview-main > div:first-child span,
.gebied-overview-meta span,
.gebied-overview-usage span {
    color: rgba(36, 36, 37, 0.66);
    font-size: 0.9rem;
}

.gebied-overview-meta,
.gebied-overview-usage,
.gebied-overview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.gebied-overview-usage {
    justify-content: flex-end;
    min-width: 8rem;
}

.gebied-overview-actions {
    justify-content: flex-end;
    min-width: 18rem;
}

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

@media (max-width: 760px) {
    .list-header.gebied-list-row,
    .list-row.gebied-list-row {
        grid-template-columns: 6.5rem 8rem 10rem 10rem 10.5rem 6.25rem 12rem 13rem 4.75rem 5rem 4.75rem;
        min-width: 92rem;
    }

    .list-header.gebied-list-row.is-admin-context,
    .list-row.gebied-list-row.is-admin-context {
        grid-template-columns: 6.5rem 10rem 10.5rem 6.25rem 12rem 13rem 4.75rem 5rem 4.75rem;
        min-width: 74rem;
    }

    .gebied-overview-item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .gebied-overview-usage,
    .gebied-overview-actions {
        justify-content: flex-start;
        min-width: 0;
    }
}

.formulierbeheer-workflow,
.formulierbeheer-items {
    margin-left: 1.4rem;
    line-height: 1.8;
}

.inventory-page {
    display: grid;
    gap: 1rem;
}

.inventory-page.volunteer-detail-popout {
    max-width: 1240px;
}

.inventory-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.inventory-heading p {
    color: rgb(71, 75, 80);
    margin: 0;
}

.inventory-action-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.inventory-action-tiles .admin-card {
    min-height: 7.2rem;
    color: rgb(54, 69, 79);
    text-decoration: none;
}

.inventory-action-tiles .admin-card.is-active {
    border-color: rgb(31, 92, 121);
    background: rgba(31, 92, 121, 0.1);
}

.inventory-layout {
    display: grid;
    grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 2fr);
    gap: 1rem;
    align-items: start;
}

.inventory-detail-grid {
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.75fr);
}

.inventory-sidebar,
.inventory-main {
    display: grid;
    gap: 1rem;
}

.inventory-profile-panel .form-section,
.inventory-main .form-section {
    margin: 0;
}

.inventory-summary-block {
    grid-template-columns: 76px minmax(0, 1fr);
}

.inventory-summary-block .volunteer-photo {
    width: 76px;
    height: 76px;
}

.inventory-form {
    display: grid;
    gap: 0.65rem;
}

.inventory-form label,
.inventory-dynamic-panel label {
    display: grid;
    gap: 0.35rem;
    font-weight: 700;
}

.inventory-form input,
.inventory-form select,
.inventory-form textarea,
.inventory-dynamic-panel input,
.inventory-dynamic-panel select {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.4rem;
    border: 1px solid rgba(54, 69, 79, 0.28);
    border-radius: 4px;
    padding: 0.5rem 0.6rem;
    font: inherit;
}

.inventory-dynamic-panel {
    display: grid;
    gap: 0.65rem;
    padding: 0.85rem;
    border: 1px solid rgba(31, 92, 121, 0.18);
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.62);
}

.inventory-dynamic-panel h3 {
    margin: 0;
    font-size: 1rem;
}

.inventory-dynamic-panel [data-inventory-fields],
.inventory-inline-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.inventory-field-config {
    display: grid;
    gap: 0.55rem;
    padding: 0.8rem;
    border: 1px solid rgba(54, 69, 79, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.64);
}

.inventory-field-config h3 {
    margin: 0;
    font-size: 0.98rem;
}

.inventory-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(7rem, 0.55fr) minmax(0, 1.2fr);
    gap: 0.45rem;
}

.inventory-item-list,
.inventory-unit-list,
.inventory-search-list,
.inventory-category-list {
    display: grid;
    gap: 0.55rem;
}

.inventory-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid rgba(54, 69, 79, 0.14);
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.72);
    color: #222;
    text-decoration: none;
}

.inventory-item-row strong {
    overflow-wrap: anywhere;
}

.inventory-item-row:hover,
.inventory-item-row.is-active {
    border-color: #1f5c79;
    background: #fff;
}

.inventory-item-row span:first-child,
.inventory-counts {
    display: grid;
    gap: 0.15rem;
}

.inventory-item-row small,
.muted {
    color: rgb(71, 75, 80);
}

.inventory-search-row {
    color: rgb(54, 69, 79);
    text-decoration: none;
}

.inventory-search-row small {
    display: block;
    color: rgb(83, 93, 101);
}

.inventory-counts {
    justify-items: end;
    color: rgb(54, 69, 79);
    font-size: 0.88rem;
    font-weight: 700;
}

.inventory-unit-list {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.inventory-all-unit-list {
    grid-template-columns: 1fr;
}

.inventory-unit-card {
    display: grid;
    gap: 0.55rem;
    padding: 0.85rem;
    border: 1px solid rgba(54, 69, 79, 0.14);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.78);
}

.inventory-unit-card textarea,
.inventory-composition-add textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 5rem;
    border: 1px solid rgba(54, 69, 79, 0.28);
    border-radius: 4px;
    padding: 0.45rem 0.55rem;
    font: inherit;
}

.inventory-category-card {
    padding: 0.85rem;
    border: 1px solid rgba(54, 69, 79, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.72);
}

.inventory-unit-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.inventory-unit-card p {
    margin: 0;
}

.inventory-unit-edit {
    display: grid;
    gap: 0.55rem;
}

.inventory-unit-copy {
    display: grid;
    gap: 0.55rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(54, 69, 79, 0.14);
}

.inventory-unit-copy h3 {
    margin: 0;
    font-size: 0.95rem;
}

.inventory-memo-form {
    padding-top: 0.65rem;
    border-top: 1px solid rgba(54, 69, 79, 0.14);
}

.inventory-checkbox-line,
.inventory-label-select {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
}

.inventory-form .inventory-checkbox-line {
    display: flex;
    align-items: center;
}

.inventory-checkbox-line input,
.inventory-label-select input {
    width: 1.1rem;
    min-height: 1.1rem;
}

.inventory-label-batch-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.inventory-label-layout-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    align-items: center;
    margin: 0;
    padding: 0.5rem 0.65rem;
    border: 1px solid rgba(54, 69, 79, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.72);
}

.inventory-label-layout-choice legend {
    padding: 0 0.25rem;
    font-weight: 800;
}

.inventory-label-layout-choice label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
}

.inventory-label-layout-choice input {
    width: 1rem;
    min-height: 1rem;
}

.inventory-code-panel {
    display: grid;
    gap: 0.45rem;
    padding: 0.65rem;
    border: 1px solid rgba(31, 92, 121, 0.18);
    border-radius: 6px;
    background: rgba(31, 92, 121, 0.06);
}

.inventory-code-panel h3 {
    margin: 0;
    font-size: 0.95rem;
}

.inventory-code-panel label {
    display: grid;
    gap: 0.3rem;
    font-weight: 700;
}

.inventory-code-panel input {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.35rem;
    border: 1px solid rgba(54, 69, 79, 0.22);
    border-radius: 4px;
    padding: 0.45rem 0.55rem;
    font: inherit;
    background: rgba(255, 255, 255, 0.76);
}

.inventory-composition-panel,
.inventory-composition-add {
    display: grid;
    gap: 0.75rem;
}

.inventory-composition-list {
    display: grid;
    gap: 0.55rem;
}

.inventory-composition-row {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content max-content;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid rgba(54, 69, 79, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.78);
}

.inventory-composition-row strong,
.inventory-composition-row small {
    display: block;
    overflow-wrap: anywhere;
}

.inventory-composition-row small {
    color: rgb(71, 75, 80);
}

.inventory-composition-type {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0 0.55rem;
    border: 1px solid rgba(31, 92, 121, 0.2);
    border-radius: 999px;
    background: rgba(31, 92, 121, 0.08);
    color: rgb(31, 92, 121);
    font-size: 0.82rem;
    font-weight: 800;
}

.inventory-unit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid rgba(54, 69, 79, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.74);
}

.inventory-unit-row.is-active {
    border-color: #1f5c79;
    background: #fff;
}

.inventory-unit-row .inventory-label-select {
    min-width: 0;
}

.inventory-unit-row .inventory-label-select span,
.inventory-unit-row small {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.inventory-unit-row strong,
.inventory-unit-row small {
    overflow-wrap: anywhere;
}

.inventory-unit-row small {
    color: rgb(83, 93, 101);
    font-size: 0.86rem;
}

.inventory-unit-detail-card {
    position: fixed;
    z-index: 80;
    top: clamp(1rem, 5vh, 3rem);
    right: clamp(1rem, 5vw, 4rem);
    bottom: clamp(1rem, 5vh, 3rem);
    width: min(42rem, calc(100vw - 2rem));
    overflow: auto;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.inventory-unit-detail-card header h3 {
    margin: 0;
    font-size: 1.12rem;
}

.inventory-unit-popout {
    position: fixed;
    z-index: 79;
    inset: 0;
}

.inventory-unit-popout-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(32, 36, 39, 0.36);
}

.inventory-unit-popout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

.inventory-history-panel {
    display: grid;
    gap: 0.45rem;
    padding: 0.65rem;
    border: 1px solid rgba(54, 69, 79, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.64);
}

.inventory-history-panel h3 {
    margin: 0;
    font-size: 0.95rem;
}

.inventory-unit-edit label {
    display: grid;
    gap: 0.3rem;
    font-weight: 700;
}

.inventory-unit-edit input,
.inventory-unit-edit select,
.inventory-unit-copy input {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.35rem;
    border: 1px solid rgba(54, 69, 79, 0.28);
    border-radius: 4px;
    padding: 0.45rem 0.55rem;
    font: inherit;
}

.inventory-attributes {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.25rem 0.65rem;
    margin: 0;
    color: rgb(54, 69, 79);
    font-size: 0.9rem;
}

.inventory-attributes dt {
    font-weight: 700;
}

.inventory-delete-form {
    margin-top: 0.75rem;
}

.inventory-scan-page {
    max-width: 920px;
}

.inventory-scan-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
    gap: 1rem;
    align-items: stretch;
}

.inventory-scan-camera {
    position: relative;
    overflow: hidden;
    min-height: 20rem;
    border: 1px solid rgba(54, 69, 79, 0.22);
    border-radius: 8px;
    background: #1d252b;
}

.inventory-scan-camera video {
    width: 100%;
    height: 100%;
    min-height: 20rem;
    object-fit: cover;
    display: block;
}

.inventory-scan-reticle {
    position: absolute;
    inset: 22% 14%;
    border: 3px solid rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.inventory-scan-detected-box {
    position: absolute;
    display: none;
    pointer-events: none;
    z-index: 2;
}

.inventory-scan-detected-box.is-visible {
    display: block;
}

.inventory-scan-detected-box span {
    position: absolute;
    width: 26px;
    height: 26px;
    border-color: #35e37b;
    border-style: solid;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.45));
}

.inventory-scan-detected-box span:nth-child(1) {
    top: 0;
    left: 0;
    border-width: 4px 0 0 4px;
}

.inventory-scan-detected-box span:nth-child(2) {
    top: 0;
    right: 0;
    border-width: 4px 4px 0 0;
}

.inventory-scan-detected-box span:nth-child(3) {
    right: 0;
    bottom: 0;
    border-width: 0 4px 4px 0;
}

.inventory-scan-detected-box span:nth-child(4) {
    bottom: 0;
    left: 0;
    border-width: 0 0 4px 4px;
}

.inventory-scan-controls {
    display: grid;
    align-content: start;
    gap: 0.75rem;
}

.inventory-scan-detail-page {
    max-width: 860px;
}

.inventory-scan-detail-card {
    display: grid;
    gap: 0.85rem;
}

.inventory-scan-detail-status {
    display: flex;
    justify-content: flex-start;
}

.inventory-label-print-body {
    margin: 0;
    background: #f5f6f4;
    color: #202427;
    font-family: Arial, sans-serif;
}

.inventory-label-print-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

.inventory-label-print-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.inventory-label-print-toolbar div {
    display: flex;
    gap: 0.55rem;
}

.inventory-print-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(58mm, 1fr));
    gap: 6mm;
}

.inventory-print-label {
    display: grid;
    grid-template-columns: 26mm minmax(0, 1fr);
    gap: 3mm;
    align-items: center;
    min-height: 34mm;
    padding: 3mm;
    border: 1px solid #c9ced1;
    border-radius: 4px;
    background: #fff;
    page-break-inside: avoid;
}

.inventory-print-label-code_onder {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

.inventory-print-code img {
    display: block;
    max-width: 26mm;
    max-height: 26mm;
    width: 100%;
    height: auto;
}

.inventory-print-label-code_onder .inventory-print-code img {
    max-width: 30mm;
    max-height: 30mm;
}

.inventory-print-code-text {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 10pt;
}

.inventory-print-meta {
    display: grid;
    gap: 1mm;
    min-width: 0;
    font-size: 9pt;
}

.inventory-print-meta strong,
.inventory-print-meta span,
.inventory-print-meta small {
    overflow-wrap: anywhere;
}

.inventory-print-meta small {
    color: #535d65;
}

@media print {
    .inventory-label-print-body {
        background: #fff;
    }

    .inventory-label-print-page {
        max-width: none;
        padding: 0;
    }

    .inventory-label-print-toolbar {
        display: none;
    }

    .inventory-print-grid {
        gap: 4mm;
    }

    .inventory-print-label {
        border-color: #888;
        box-shadow: none;
    }
}

@media (max-width: 760px) {
    .formulierbeheer-form,
    .formulierbeheer-list-row {
        grid-template-columns: 1fr;
    }

    .formulierbeheer-form input[type="submit"] {
        grid-column: 1;
    }

    .inventory-heading,
    .inventory-action-tiles,
    .inventory-layout,
    .inventory-scan-panel {
        grid-template-columns: 1fr;
    }

    .inventory-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .inventory-dynamic-panel [data-inventory-fields],
    .inventory-inline-fields,
    .inventory-field-row,
    .inventory-item-row,
    .inventory-unit-row,
    .inventory-composition-row {
        grid-template-columns: 1fr;
    }

    .inventory-counts {
        justify-items: start;
    }

    .inventory-scan-camera,
    .inventory-scan-camera video {
        min-height: 16rem;
    }

    .inventory-unit-detail-card {
        top: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
        width: auto;
    }

    .inventory-unit-detail-card header {
        align-items: flex-start;
        flex-direction: column;
    }

    .inventory-unit-popout-actions {
        justify-content: flex-start;
    }
}

.home-welcome {
    position: relative;
    background-color: rgba(205,92,92);
    width: 50%;
    height: 50%;
    margin: auto;
    align-content: center;
    text-align: center;
    padding: 30px;
    font-size: 27px;
    color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.home-welcome-login {
    position: absolute;
    bottom: 25px;
    right: 25px;
    font-size: 15px;
    color: white;
}

.home-welcome-login a {
    color: white;
    text-decoration: none;
    margin-right: 5px;
}
.login-page {
    display: grid;
    grid-row: 2 / 5;
    place-items: center;
    box-sizing: border-box;
    min-height: 100%;
    padding: clamp(1.25rem, 5vw, 4rem) 1rem;
}

.login-card {
    box-sizing: border-box;
    width: min(100%, 30rem);
    overflow: hidden;
    border: 1px solid rgba(82, 42, 42, 0.16);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.97);
    color: #24313a;
    box-shadow: 0 1.25rem 3.5rem rgba(73, 35, 35, 0.22);
}

.login-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem 1.75rem 1.25rem;
}

.login-card__header h1,
.login-card__header p {
    margin: 0;
}

.login-card__header h1 {
    margin: 0.15rem 0 0.35rem;
    color: #2d3035;
    font-size: clamp(1.6rem, 6vw, 2rem);
    line-height: 1.1;
}

.login-card__header > div > p:last-child {
    color: #626a72;
    line-height: 1.45;
}

.login-card__eyebrow {
    color: #a14242;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-card__icon {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: #cd5c5c;
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 0.5rem 1.2rem rgba(161, 66, 66, 0.24);
}

.login-card__icon i,
.login-submit i {
    margin: 0;
}

.login-form {
    display: grid;
    gap: 1rem;
    padding: 0.5rem 1.75rem 1.5rem;
}

.login-field {
    display: grid;
    gap: 0.45rem;
    color: #343b42;
    font-size: 0.92rem;
    font-weight: 700;
}

.login-field input[type="text"],
.login-field input[type="password"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 3rem;
    margin: 0;
    padding: 0.65rem 0.8rem;
    border: 1px solid #aeb6bd;
    border-radius: 0.65rem;
    outline: none;
    background: #ffffff;
    color: #242425;
    opacity: 1;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.login-field input:hover {
    border-color: #6d777f;
}

.login-field input:focus-visible {
    border-color: #2e6785;
    box-shadow: 0 0 0 0.2rem rgba(46, 103, 133, 0.2);
}

.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3rem;
    margin-top: 0.25rem;
    padding: 0.65rem 1rem;
    border: 0;
    border-radius: 0.65rem;
    background: #2e6785;
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    transition: background-color 120ms ease, transform 120ms ease;
}

.login-submit:hover {
    background: #24536c;
}

.login-submit:focus-visible {
    outline: 0.2rem solid rgba(46, 103, 133, 0.28);
    outline-offset: 0.15rem;
}

.login-submit:active {
    transform: translateY(1px);
}

.login-message {
    margin: 0 1.75rem 1rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid;
    border-radius: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.login-message--error {
    border-color: #dc9b9b;
    background: #fff0f0;
    color: #812e2e;
}

.login-message--success {
    border-color: #8fbea0;
    background: #edf8f0;
    color: #245c33;
}

.login-card__footer {
    padding: 1rem 1.75rem 1.25rem;
    border-top: 1px solid #e2e5e8;
    background: #f6f7f8;
    text-align: center;
}

.login-card__footer a {
    color: #2e6785;
    font-size: 0.9rem;
    font-weight: 700;
    text-underline-offset: 0.18rem;
}

@media (max-width: 32rem) {
    .login-page {
        place-items: start center;
        padding: 1rem 0.65rem;
    }

    .login-card__header {
        align-items: flex-start;
        padding: 1.25rem 1.2rem 1rem;
    }

    .login-card__icon {
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 0.8rem;
    }

    .login-form {
        padding: 0.35rem 1.2rem 1.25rem;
    }

    .login-message {
        margin-right: 1.2rem;
        margin-left: 1.2rem;
    }

    .login-card__footer {
        padding: 0.9rem 1.2rem 1rem;
    }
}

.account-page {
    width: min(100% - 2rem, 70rem);
    margin: 3rem auto;
    padding-bottom: 3rem;
}

.account-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(46, 103, 133, 0.18);
    border-radius: 1rem;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    box-shadow: 0 1rem 2.5rem rgba(54, 69, 79, 0.18);
    color: #24313a;
}

.account-card--compact {
    max-width: 36rem;
    margin-inline: auto;
}

.account-card__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.account-card h1,
.account-card h2,
.account-card p {
    margin-top: 0;
}

.account-card h1 {
    margin-bottom: 0.4rem;
}

.account-card h2 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.account-eyebrow {
    margin-bottom: 0.35rem;
    color: #2e6785;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.account-section {
    padding: 1.5rem 0;
    border-top: 1px solid #dce3e7;
}

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

.account-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: #36454f;
    font-weight: 700;
}

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

.account-card .account-field input,
.account-field select {
    width: 100%;
    min-height: 2.8rem;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem;
    border: 1px solid #aebbc3;
    border-radius: 0.5rem;
    background: #fff;
    color: #242425;
    font: inherit;
    font-weight: 400;
    opacity: 1;
    margin: 0;
}

.account-card .account-field input:focus,
.account-field select:focus {
    border-color: #2e6785;
    outline: 3px solid rgba(46, 103, 133, 0.18);
}

.account-field small {
    color: #5b6971;
    font-weight: 400;
}

.account-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    align-self: end;
    min-height: 2.8rem;
}

.account-security {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.account-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.account-actions .button {
    max-width: none;
    flex: 0 0 auto;
    margin-left: 0;
}

.account-secondary-actions {
    border-top: 1px solid #d8e0e5;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

.account-message {
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid;
}

.account-message--success {
    border-color: #77a985;
    background: #edf8f0;
    color: #245c33;
}

.account-message--error {
    border-color: #cc7373;
    background: #fff0f0;
    color: #812e2e;
}

@media (max-width: 42rem) {
    .account-page {
        width: min(100% - 1rem, 70rem);
        margin-top: 1rem;
    }

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

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

    .account-security {
        align-items: stretch;
        flex-direction: column;
    }

    .account-actions {
        justify-content: stretch;
    }

    .account-actions .button {
        flex: 1 1 auto;
    }
}

.tabbed-form {
    padding: 1rem;
    background-color:  #cd5c5c;
    border-radius: 0.5rem;
    width: 50%;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.tabbed-form-buttons-container {
    display: flex;
    justify-content: right;
    margin-bottom: 1.5rem;
}

.button {
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    height: 2.5rem; /* Vaste hoogte werkt het beste voor gelijkheid */
    max-width: 8rem;
    flex: 1;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.3);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none; /* Verwijdert streep onder link */
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.button:hover {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid rgb(255, 255, 255); /* Witte omlijning */
}

.button.button-cancel {
    background-color: rgb(198, 199, 201); /*lichtgrijs*/
    color: rgb(54, 69, 79); /*donkergrijs*/
}

.button.button-submit {
    font-weight: bold;
    background-color: rgb(46, 103, 133);
    color: rgb(255, 255, 255);
}

.button.button-new {
    background-color: rgb(49, 162, 221);
    color: rgb(255, 255, 255);
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    max-width: 60rem;
}

.tab-label {
    padding: 0.5rem 0.8rem;
    font-size: 0.90rem;
    cursor: pointer;
    background-color: rgb(125, 126, 131);
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    color: rgb(255, 255, 255);
    width: 10rem;
    margin-right: 0.5rem;
}
.tab-radio {
    display: none;
}
.tab-content {
    border-top: 2px solid rgb(125, 126, 131);
    flex-direction: column;
    order: 1;
    width: 100%;
    line-height: 1.5;
    font-size: 0.9em;
    display: none;
    padding: .5rem;
    padding-top: 1rem;
    width: 100%;
}
.tab-radio:checked+.tab-label {
    border: 1px solid rgb(125, 126, 131);;
    background-color: rgb(71, 75, 80);
}
.tab-radio:checked+.tab-label+.tab-content {
    display: flex;
    width: 80%;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.input-group label {
    color: rgb(255, 255, 255);
}

.input-group input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="date"], input[type="number"] {
    border-color: rgb(125, 126, 131);
    border-radius: 0.5rem;
    background-color: #f9f9f9;
    padding: 0.30rem;
    color: rgb(36, 36, 37);
    opacity: 0.6;
    margin-bottom: 0.8rem;
}
.input-group input[type="radio"] {
    margin-bottom: 0.8rem;
}
.list-container {
    padding-left: 10px;
    padding-right: 10px;
    display: grid;
    grid-template-rows: auto 1fr auto;
}
.list-titel {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    padding: 15px;
    text-shadow: 2px 2px 2px #36454F;
}
.list-buttons {
    border: 1px rgb(250, 249, 248, 0.5);
    border-radius: 15px;
    display: flex;
    height: 50px;
    padding: 10px;
    justify-content: right;
}

.aanmelding-overzicht-actions {
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    height: auto;
    min-height: 50px;
    padding: 10px 0;
}

.aanmelding-overzicht-actions .button {
    flex: 0 0 auto;
    margin-left: 0;
    max-width: none;
    min-width: 7rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    white-space: nowrap;
}

.weblink-toolbar {
    height: auto;
    min-height: 50px;
}

.weblink-modal-toggle {
    display: none;
}

.weblink-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: end;
    gap: 0.5rem;
    width: 100%;
}

.weblink-form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: rgb(255, 255, 255);
    font-size: 0.85rem;
    font-weight: bold;
}

.weblink-form input,
.weblink-form select,
.weblink-settings-form input,
.weblink-settings-form select {
    width: 100%;
    min-width: 0;
    border: 1px solid rgb(125, 126, 131);
    border-radius: 0.5rem;
    background-color: #f9f9f9;
    color: rgb(36, 36, 37);
    padding: 0.45rem 0.55rem;
}

.weblink-settings-list {
    display: grid;
    gap: 1rem;
    padding: 0 15px 15px;
}

.weblink-settings-card {
    position: relative;
    display: grid;
    gap: 1rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.92);
    color: rgb(36, 36, 37);
    padding: 1rem;
}

.weblink-settings-form {
    display: grid;
    gap: 1rem;
}

.weblink-settings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-right: 2.5rem;
}

.weblink-settings-head h2 {
    margin: 0.2rem 0 0;
    font-size: 1.2rem;
}

.weblink-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.75rem;
}

.weblink-settings-grid label,
.weblink-detail-fields label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: bold;
}

.weblink-settings-grid .wide {
    grid-column: 1 / -1;
}

.weblink-detail-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 46rem;
}

.weblink-detail-fields label {
    width: 100%;
}

.weblink-overview {
    display: grid;
    gap: 0.35rem;
    padding: 0 15px 15px;
}

.weblink-overview-header,
.weblink-summary {
    display: grid;
    grid-template-columns: minmax(8rem, 1.1fr) minmax(10rem, 1.2fr) minmax(10rem, 1.2fr) minmax(5rem, 0.55fr) minmax(6rem, 0.65fr) minmax(12rem, 1.8fr) minmax(5rem, 0.55fr);
    align-items: center;
    gap: 0.75rem;
}

.weblink-overview-header {
    border-radius: 0.5rem;
    background-color: rgb(71, 75, 80);
    color: rgb(250, 249, 248);
    font-weight: bold;
    padding: 0.65rem 0.85rem;
}

.weblink-row {
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.92);
    color: rgb(36, 36, 37);
}

.weblink-summary {
    cursor: pointer;
    list-style: none;
    padding: 0.7rem 0.85rem;
}

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

.weblink-summary > span,
.weblink-summary > code {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weblink-summary-action {
    color: #2e6785;
    font-weight: bold;
    text-align: right;
}

.weblink-row[open] .weblink-summary {
    border-bottom: 1px solid rgba(125, 126, 131, 0.35);
}

.weblink-detail-panel {
    position: relative;
    display: grid;
    gap: 1rem;
    padding: 1rem;
    padding-right: 3rem;
}

.weblink-detail-actions,
.weblink-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.weblink-delete-inline {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
}

.weblink-empty-row {
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.92);
    color: rgb(36, 36, 37);
    padding: 0.85rem;
}

.weblink-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 30;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.weblink-modal-toggle:checked ~ .weblink-modal {
    display: flex;
}

.weblink-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(36, 36, 37, 0.65);
}

.weblink-modal-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    width: min(58rem, 96vw);
    max-height: 90vh;
    overflow: auto;
    border-radius: 0.5rem;
    background-color: rgb(250, 249, 248);
    color: rgb(36, 36, 37);
    padding: 1rem;
}

.weblink-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.weblink-modal-head h2 {
    margin: 0;
    font-size: 1.25rem;
}

.weblink-secret {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(125, 126, 131, 0.45);
    border-radius: 0.5rem;
    background-color: #f9f9f9;
    padding: 0.55rem;
    white-space: normal;
    overflow-wrap: anywhere;
}

.weblink-script {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.weblink-examples {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.weblink-script pre {
    max-width: 100%;
    margin: 0 0 0.5rem;
    overflow: auto;
    border-radius: 0.5rem;
    background-color: rgb(36, 36, 37);
    color: rgb(250, 249, 248);
    padding: 0.85rem;
}

.weblink-delete-form {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

@media (max-width: 900px) {
    .weblink-overview-header {
        display: none;
    }

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

    .weblink-summary > span:nth-child(2),
    .weblink-summary > span:nth-child(3),
    .weblink-summary > code,
    .weblink-summary > span:nth-child(5),
    .weblink-summary > span:nth-child(6) {
        display: none;
    }
}

.list-message {
    margin: 0 15px 8px;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.85);
    color: rgb(54, 69, 79);
    font-weight: bold;
}

.list-message.error {
    border-left: 0.35rem solid #b42318;
}

.list-message.success {
    border-left: 0.35rem solid #2e6785;
}

.icon-action-button {
    border: 0;
    background: transparent;
    color: rgb(54, 69, 79);
    cursor: pointer;
    font: inherit;
    padding: 0.2rem 0.35rem;
}

.icon-action-button:hover {
    color: #E71919FF;
}
.list {
    display: grid;
    grid-template-rows: auto auto;
    border: 1px solid rgba(54, 69, 79, 0.18);
    border-radius: 0.35rem;
    overflow: hidden;
}
.list-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    background-color: rgb(46, 103, 133);
    color: rgb(255, 255, 255) ;
}
.column-header {
    display: flex;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    justify-content: flex-start;
    font-weight: 700;
}

.list-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: inherit;
    text-decoration: none;
}

.list-sort-link:hover {
    text-decoration: underline;
}

.list-sort-link.is-active {
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.sort-indicator {
    min-width: 1em;
    font-weight: 700;
}

.list-body {
    display: block;
    overflow: auto;
    height: 60vh;
    scrollbar-width: auto;
}
.list-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    background-color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(54, 69, 79, 0.1);
}

.list-row.even {
    background-color: rgba(255, 255, 255, 0.62);
}

.list-row:hover {
    background-color: #fff;
}

.row-column,
.row_column {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0.45rem 0.65rem;
}

.row_column span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.row-primary-link {
    color: rgb(31, 92, 121);
    font-weight: bold;
    text-decoration: none;
}

.row-primary-link:hover {
    text-decoration: underline;
}

.event-stats-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    margin-top: 1rem;
}

.stat-list,
.history-diff-list {
    display: grid;
    gap: 0.35rem;
}

.stat-list-row,
.history-diff-row {
    display: grid;
    gap: 0.75rem;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(54, 69, 79, 0.14);
}

.stat-list-row {
    grid-template-columns: 1fr auto;
}

.stat-count-link {
    color: rgb(31, 92, 121);
    font-weight: 700;
    text-decoration: underline;
}

.event-volunteer-selection {
    margin-top: 1rem;
}

.event-volunteer-list {
    display: grid;
    gap: 0;
}

.event-volunteer-row {
    display: grid;
    grid-template-columns: minmax(10rem, 1.3fr) minmax(8rem, 0.8fr) minmax(12rem, 1.2fr) minmax(8rem, 0.8fr);
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(54, 69, 79, 0.14);
}

.event-volunteer-row.is-compact {
    grid-template-columns: minmax(10rem, 1.3fr) minmax(8rem, 0.8fr) minmax(12rem, 1.2fr);
}

.event-volunteer-header {
    color: rgb(54, 69, 79);
    font-weight: 700;
}

.preference-marker {
    display: inline-flex;
    align-items: center;
    border-radius: 0.25rem;
    background-color: rgba(46, 103, 133, 0.12);
    color: rgb(31, 92, 121);
    cursor: help;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
}

.muted-text {
    color: rgba(54, 69, 79, 0.65);
}

.history-diff-row {
    grid-template-columns: minmax(8rem, 0.8fr) repeat(2, minmax(0, 1fr));
}

.history-diff-header {
    color: rgb(54, 69, 79);
    font-weight: 700;
}

.history-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (max-width: 760px) {
    .event-volunteer-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .event-volunteer-header {
        display: none;
    }

    .history-diff-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .history-diff-header {
        display: none;
    }
}

.row-column.right,
.row_column.right {
    justify-content: right;
}

.row_column.actions {
    justify-content: center;
    align-items: center;
}

.volunteer-form-page {
    max-width: 980px;
    margin: 0 auto 40px;
    padding: 12px 16px 32px;
}

.compact-form-page {
    max-width: 860px;
}

.volunteer-form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 16px;
}

.volunteer-form-header p {
    color: rgb(54, 69, 79);
    margin: 4px 0 0;
}

.list-title {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    padding: 15px;
    text-shadow: 2px 2px 2px #36454F;
}

.form-section {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(54, 69, 79, 0.16);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 8px 22px rgba(54, 69, 79, 0.12);
}

.volunteer-form {
    display: grid;
    gap: 16px;
}

.volunteer-form .form-section {
    margin-bottom: 0;
}

.volunteer-form .form-row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px 16px;
    margin-bottom: 14px;
}

.volunteer-form .form-row:last-child {
    margin-bottom: 0;
}

.volunteer-form .field {
    display: grid;
    grid-column: span 6;
    gap: 6px;
    min-width: 0;
    color: rgb(36, 36, 37);
    font-weight: 700;
}

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

.volunteer-form .name-row .field,
.volunteer-form .address-line .street-field {
    grid-column: span 5;
}

.volunteer-form .name-row .prefix-field,
.volunteer-form .address-line .letter-field,
.volunteer-form .address-line .number-field,
.volunteer-form .postal-line .postcode-field {
    grid-column: span 3;
}

.volunteer-form .field input,
.volunteer-form .field select,
.volunteer-form .field textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(54, 69, 79, 0.28);
    border-radius: 4px;
    padding: 0.5rem 0.6rem;
    background: #fff;
    color: rgb(36, 36, 37);
    font: inherit;
    font-weight: 400;
}

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

.approval-message-list,
.availability-list {
    display: grid;
    gap: 0.6rem;
}

.approval-message-item,
.availability-item {
    display: grid;
    gap: 0.35rem;
    padding: 0.75rem;
    border: 1px solid rgba(54, 69, 79, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.72);
}

.approval-message-item header,
.approval-message-item footer,
.availability-item {
    color: rgb(83, 93, 101);
    font-size: 0.9rem;
}

.approval-message-item header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.approval-message-item p {
    margin: 0;
    color: rgb(36, 36, 37);
}

.availability-entry-row .field {
    grid-column: span 3;
}

.availability-entry-row .availability-reason-field {
    grid-column: span 3;
}

.volunteer-form .choice-group,
.volunteer-form .toggle-field {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    margin-bottom: 14px;
    color: rgb(36, 36, 37);
    font-weight: 700;
}

.volunteer-form .choice-group label,
.volunteer-form .toggle-field {
    font-weight: 400;
}

.volunteer-form .toggle-field {
    margin: 0;
}

.volunteer-form .checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 10px;
}

.volunteer-form .checkbox-tile {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid rgba(54, 69, 79, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.76);
    color: rgb(36, 36, 37);
}

.volunteer-form .checkbox-tile input {
    margin-top: 2px;
}

.volunteer-form .checkbox-tile span {
    display: grid;
    gap: 2px;
}

.volunteer-form .checkbox-tile small {
    color: rgb(83, 93, 101);
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: rgb(54, 69, 79);
    font-size: 1.1rem;
    font-weight: bold;
}

.detail-list {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 10px 14px;
    color: rgb(54, 69, 79);
}

.detail-list dt {
    font-weight: bold;
}

.detail-list dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.volunteer-detail-popout {
    max-width: 1180px;
    margin: 0 auto 42px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(54, 69, 79, 0.16);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(54, 69, 79, 0.22);
}

.volunteer-detail-message {
    margin-bottom: 12px;
    color: rgb(54, 69, 79);
    font-weight: bold;
}

.volunteer-detail-header {
    padding: 0 2px;
}

.volunteer-detail-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.7fr);
    gap: 16px;
    align-items: start;
}

.volunteer-profile-panel {
    display: grid;
    gap: 18px;
}

.volunteer-photo-block {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.volunteer-photo-block h2 {
    margin: 0 0 8px;
    color: rgb(36, 36, 37);
    font-size: 1.2rem;
}

.volunteer-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(31, 92, 121, 0.28);
    background: #fff;
}

.volunteer-photo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(31, 92, 121);
    color: white;
    font-size: 1.7rem;
    font-weight: bold;
}

.volunteer-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(31, 92, 121, 0.12);
    color: rgb(31, 92, 121);
    font-weight: bold;
    font-size: 0.86rem;
}

.volunteer-photo-form,
.volunteer-memo-add {
    display: grid;
    gap: 8px;
    color: rgb(54, 69, 79);
    font-weight: bold;
}

.volunteer-photo-form input,
.volunteer-memo-filter select,
.volunteer-memo-add select,
.volunteer-memo-add textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid rgba(54, 69, 79, 0.28);
    border-radius: 4px;
    padding: 0.5rem 0.6rem;
    background: #fff;
    color: rgb(36, 36, 37);
    font: inherit;
    font-weight: 400;
}

.volunteer-photo-form small,
.volunteer-memo-add small,
.volunteer-muted {
    color: rgb(83, 93, 101);
    font-weight: 400;
}

.volunteer-detail-subtitle {
    margin-bottom: 0;
}

.volunteer-compact-detail-list {
    grid-template-columns: 120px minmax(0, 1fr);
}

.volunteer-tag-list {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.volunteer-tag-list li {
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid rgba(54, 69, 79, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.72);
    color: rgb(54, 69, 79);
    font-weight: bold;
}

.volunteer-tag-list small {
    font-weight: 400;
}

.volunteer-detail-main {
    display: grid;
    gap: 16px;
}

.volunteer-event-list {
    display: grid;
    gap: 8px;
}

.volunteer-event-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(54, 69, 79, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.7);
    color: rgb(54, 69, 79);
}

.volunteer-event-row span {
    color: rgb(31, 92, 121);
    font-weight: bold;
}

.volunteer-memo-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    margin-bottom: 14px;
}

.volunteer-memo-filter {
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr);
    gap: 8px;
    align-items: center;
    color: rgb(54, 69, 79);
    font-weight: bold;
}

.volunteer-memo-add {
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(31, 92, 121, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.64);
}

.volunteer-memo-add textarea {
    min-height: 96px;
    resize: vertical;
}

.volunteer-memo-add-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.volunteer-memo-list {
    display: grid;
    gap: 12px;
}

.volunteer-memo-item {
    padding: 12px 14px;
    border-left: 4px solid rgb(31, 92, 121);
    border-radius: 0 6px 6px 0;
    background: rgba(255, 255, 255, 0.76);
    color: rgb(54, 69, 79);
}

.volunteer-memo-item header,
.volunteer-memo-item footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgb(83, 93, 101);
    font-size: 0.9rem;
}

.volunteer-memo-item header strong {
    color: rgb(31, 92, 121);
}

.volunteer-memo-item p {
    margin: 10px 0;
    color: rgb(36, 36, 37);
    line-height: 1.5;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.event-map-block {
    display: grid;
    gap: 10px;
    margin: 10px 0 18px;
}

.event-map-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.event-map-controls .secondary-action {
    min-height: 34px;
    padding: 0 12px;
    box-shadow: none;
}

.event-map {
    width: 100%;
    height: 360px;
    min-height: 260px;
    border: 1px solid rgba(54, 69, 79, 0.22);
    border-radius: 8px;
    overflow: hidden;
    background: #eef1f2;
}

.event-map-detail {
    height: 540px;
    min-height: 34rem;
}

.event-map-editor {
    border-radius: 0;
    height: calc(100vh - 72px);
    min-height: 520px;
}

.gebied-map-editor-page {
    display: flex;
    min-height: calc(100vh - 58px);
    overflow: hidden;
}

.gebied-map-sidebar {
    background: #1f2328;
    color: #f7f8f8;
    display: flex;
    flex: 0 0 19rem;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100vh - 58px);
    overflow: auto;
    padding: 1rem;
}

.gebied-map-title {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.gebied-map-title h1 {
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.2;
    margin: 0;
}

.gebied-map-kicker,
.gebied-map-code {
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffd6cf;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.16rem 0.55rem;
    text-transform: uppercase;
}

.gebied-map-code {
    background: rgba(185, 63, 50, 0.24);
}

.gebied-map-canvas {
    border: 0;
    border-radius: 0;
    flex: 1 1 auto;
    height: calc(100vh - 58px);
    min-height: 520px;
}

.gebied-tool-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    display: grid;
    gap: 0.55rem;
    padding-bottom: 1rem;
}

.gebied-tool-section:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.gebied-tool-section h2 {
    color: #fff;
    font-size: 1rem;
    line-height: 1.2;
    margin: 0;
}

.gebied-tool-section label {
    align-items: center;
    color: #d8dde2;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.event-day-times,
.event-planning-summary {
    display: grid;
    gap: 0.5rem;
}

.event-day-time-row,
.event-planning-summary div {
    align-items: center;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: minmax(8rem, 1fr) minmax(6rem, auto) minmax(6rem, auto);
}

.event-planning-summary div {
    grid-template-columns: minmax(8rem, 1fr) minmax(6rem, 1fr);
}

.event-day-time-row input {
    min-width: 0;
}

.planning-duration-check {
    align-items: center;
    display: inline-grid;
    gap: 0.35rem;
    grid-template-columns: auto 1fr;
}

.planning-duration-check input[type="checkbox"] {
    margin: 0;
}

.inline-delete-form {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
    margin: 0.1rem 0.35rem 0.1rem 0;
}

.inline-delete-form button {
    border: 0;
    border-radius: 0.25rem;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
}

.gebied-tool-section select,
.gebied-tool-section input[type="range"] {
    max-width: 100%;
}

.gebied-tool-section select {
    background: #34383e;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: #fff;
    min-height: 2.25rem;
    padding: 0.4rem 0.55rem;
}

.gebied-tool-section button,
.gebied-sidebar-back {
    align-items: center;
    background: #3277c9;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    gap: 0.5rem;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.45rem 0.65rem;
    text-decoration: none;
    width: 100%;
}

.gebied-tool-section button:hover,
.gebied-sidebar-back:hover {
    background: #245fa6;
}

.gebied-tool-inline-actions {
    display: grid;
    gap: 0.4rem;
    grid-template-columns: 1fr 1fr;
}

.gebied-tool-inline-actions button {
    background: #44515f;
    font-size: 0.86rem;
    min-height: 2rem;
    padding: 0.32rem 0.45rem;
}

.gebied-tool-inline-actions button:hover {
    background: #566579;
}

.gebied-tool-section pre,
.gebied-selection-info {
    background: #34383e;
    border-radius: 6px;
    color: #f5f7f8;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.72rem;
    line-height: 1.35;
    margin: 0;
    max-height: 12rem;
    overflow: auto;
    padding: 0.65rem;
    white-space: pre-wrap;
}

.gebied-map-facts {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}

.gebied-map-facts div {
    display: grid;
    gap: 0.12rem;
}

.gebied-map-facts dt {
    color: #b8c0c8;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.gebied-map-facts dd {
    color: #fff;
    margin: 0;
}

.gebied-map-copy {
    color: #d8dde2;
    line-height: 1.45;
    margin: 0;
}

.gebied-map-copy.muted {
    color: #aeb6bd;
}

.gebied-tool-section a:not(.gebied-sidebar-back) {
    color: #9bc4ff;
}

.gebied-layer-list {
    display: grid;
    gap: 0.35rem;
}

.gebied-layer-list label {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    min-height: 1.8rem;
}

.gebied-layer-list label.is-disabled {
    color: #87919a;
}

.gebied-point-list {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    max-height: 15rem;
    overflow: auto;
    padding: 0;
}

.gebied-point-list li {
    align-items: center;
    background: #34383e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 2rem minmax(0, 1fr);
    min-height: 2.15rem;
    padding: 0.25rem 0.45rem;
}

.gebied-point-list button {
    align-items: center;
    background: #b93f32;
    border: 0;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-weight: 700;
    height: 1.45rem;
    justify-content: center;
    padding: 0;
    width: 1.45rem;
}

.gebied-point-list span {
    color: #eef2f4;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gebied-marker-label {
    background: #b93f32;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    height: 1.35rem;
    line-height: 1.35rem;
    padding: 0 0.45rem;
}

.gebied-map-canvas .leaflet-marker-icon.is-selected {
    filter: drop-shadow(0 0 0.45rem rgba(185, 63, 50, 0.85));
}

.kaart-editor-map-stack {
    flex: 1 1 auto;
    gap: 0;
    height: calc(100vh - 58px);
    min-height: 520px;
    overflow: auto;
    padding: 0;
}

.kaart-editor-map-stack section {
    display: grid;
    grid-template-rows: auto minmax(18rem, 1fr);
    min-height: 50%;
}

.kaart-editor-map-stack h2 {
    background: #fff;
    border-bottom: 1px solid rgba(54, 69, 79, 0.18);
    color: #23313c;
    font-size: 0.95rem;
    margin: 0;
    padding: 0.65rem 0.85rem;
}

.kaart-editor-map-stack .event-map {
    border: 0;
    border-radius: 0;
}

.kaart-point-dialog {
    border: 1px solid rgba(54, 69, 79, 0.18);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(12, 20, 32, 0.28);
    max-width: min(34rem, calc(100vw - 2rem));
    padding: 0;
    width: 34rem;
}

.kaart-point-dialog::backdrop {
    background: rgba(28, 36, 48, 0.58);
}

.kaart-point-dialog form {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.kaart-point-dialog h2 {
    color: #23313c;
    font-size: 1.15rem;
    margin: 0;
}

.kaart-point-dialog label {
    display: grid;
    gap: 0.25rem;
    font-weight: 700;
}

.kaart-point-dialog input,
.kaart-point-dialog select,
.kaart-point-dialog textarea {
    border: 1px solid rgba(54, 69, 79, 0.24);
    border-radius: 6px;
    box-sizing: border-box;
    font: inherit;
    min-height: 2.25rem;
    padding: 0.45rem 0.55rem;
    width: 100%;
}

.kaart-popup-edit {
    background: #1f5c79;
    border: 0;
    border-radius: 6px;
    color: #fff !important;
    cursor: pointer;
    display: inline-block;
    font: inherit;
    font-weight: 700;
    margin-top: 0.45rem;
    padding: 0.35rem 0.55rem;
    text-decoration: none;
}

.kaart-editor-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.kaart-editor-page.gebied-map-editor-page {
    flex-direction: row;
    min-height: calc(100vh - 58px);
}

.kaart-editor-toolbar {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid rgba(54, 69, 79, 0.18);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
}

.kaart-editor-toolbar button,
.kaart-editor-toolbar select {
    min-height: 2.25rem;
}

.toolbar-inline-control {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
}

.toolbar-inline-control input[type="range"] {
    width: 8rem;
}

.status-badge {
    border-radius: 999px;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0.2rem 0;
    padding: 0.2rem 0.55rem;
}

.status-ok {
    background: #d8f1df;
    color: #1f6b34;
}

.status-warning {
    background: #fff1cf;
    color: #745100;
}

.duplicate-comparison-warning {
    border: 2px solid #d7a326;
    background: #fffaf0;
}

.duplicate-picker-row {
    align-items: start;
    overflow: visible;
}

.duplicate-picker {
    position: relative;
}

.duplicate-picker input[type="search"] {
    width: 100%;
}

.duplicate-picker-selected {
    color: #1f6b34;
    font-size: 0.9rem;
    margin-top: 0.4rem;
}

.duplicate-picker-selected[hidden] {
    display: none;
}

.duplicate-picker-results {
    background: #fff;
    border: 1px solid rgba(54, 69, 79, 0.25);
    border-radius: 7px;
    box-shadow: 0 12px 28px rgba(54, 69, 79, 0.24);
    left: 0;
    max-height: 22rem;
    overflow-y: auto;
    position: absolute;
    right: 0;
    top: calc(100% - 0.1rem);
    z-index: 30;
}

.duplicate-picker-option {
    background: #fff;
    border: 0;
    border-bottom: 1px solid rgba(54, 69, 79, 0.1);
    color: #36454f;
    cursor: pointer;
    display: block;
    font: inherit;
    padding: 0.7rem 0.8rem;
    text-align: left;
    width: 100%;
}

.duplicate-picker-option:hover,
.duplicate-picker-option:focus-visible {
    background: #eef6fa;
    color: #1f5c79;
    outline: none;
}

.duplicate-picker-empty,
.duplicate-picker-loading {
    color: #53606a;
    margin: 0;
    padding: 0.8rem;
}

.duplicate-candidate {
    border-top: 1px solid rgba(116, 81, 0, 0.25);
    margin-top: 1rem;
    padding-top: 1rem;
}

.duplicate-comparison-warning:target {
    box-shadow: 0 0 0 4px rgba(215, 163, 38, 0.28), 0 12px 28px rgba(54, 69, 79, 0.18);
}

.duplicate-candidate-actions {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.duplicate-candidate-actions .button,
.duplicate-candidate-actions .secondary-action {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    width: auto;
    max-width: none;
    min-height: 2.75rem;
    height: auto;
    margin: 0;
    padding: 0.55rem 1rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
}

.duplicate-comparison-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.duplicate-select-card {
    border: 3px solid transparent;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.duplicate-select-card.is-leading {
    background: #eefaf1;
    border-color: #2f8a4c;
    box-shadow: 0 8px 22px rgba(47, 138, 76, 0.2);
}

.duplicate-select-card.is-archived {
    background: #fff2f1;
    border-color: #bd4b45;
    box-shadow: 0 8px 22px rgba(189, 75, 69, 0.16);
}

.duplicate-select-card:focus-visible {
    outline: 3px solid #2e6785;
    outline-offset: 3px;
}

.duplicate-leading-choice {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    gap: 0.55rem;
}

.duplicate-leading-choice input {
    height: 1.15rem;
    margin: 0;
    width: 1.15rem;
}

.duplicate-leading-explanation {
    background: rgba(255, 255, 255, 0.88);
    border-left: 5px solid #2f8a4c;
    border-radius: 0 6px 6px 0;
    color: #36454f;
    line-height: 1.5;
    margin: 1rem 0;
    padding: 0.85rem 1rem;
}

.duplicate-field-selection {
    margin-top: 1rem;
}

.duplicate-field-table {
    display: grid;
    grid-template-columns: minmax(9rem, 0.8fr) repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(54, 69, 79, 0.2);
    border-radius: 7px;
}

.duplicate-field-heading,
.duplicate-field-label,
.duplicate-field-option {
    border-bottom: 1px solid rgba(54, 69, 79, 0.14);
    padding: 0.7rem 0.8rem;
}

.duplicate-field-heading {
    background: #eef1f2;
    color: #36454f;
    font-weight: 700;
}

.duplicate-field-label {
    color: #36454f;
    font-weight: 700;
}

.duplicate-field-option {
    align-items: flex-start;
    cursor: pointer;
    display: flex;
    gap: 0.55rem;
    min-width: 0;
}

.duplicate-field-option:has(input:checked) {
    background: #eefaf1;
    box-shadow: inset 4px 0 #2f8a4c;
}

.duplicate-field-option input {
    flex: 0 0 auto;
    margin-top: 0.2rem;
}

.duplicate-field-option span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.duplicate-enrollment-conflicts {
    margin-top: 1rem;
}

.duplicate-enrollment-conflict {
    border: 1px solid rgba(189, 75, 69, 0.45);
    border-radius: 7px;
    margin: 1rem 0 0;
    padding: 0.9rem;
}

.duplicate-enrollment-conflict legend {
    color: #84342f;
    font-weight: 700;
    padding: 0 0.4rem;
}

.duplicate-enrollment-options {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.duplicate-enrollment-option {
    align-items: flex-start;
    background: #fff;
    border: 2px solid rgba(54, 69, 79, 0.18);
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    gap: 0.65rem;
    padding: 0.8rem;
}

.duplicate-enrollment-option:has(input:checked) {
    background: #eefaf1;
    border-color: #2f8a4c;
}

.duplicate-enrollment-option input {
    flex: 0 0 auto;
    margin-top: 0.2rem;
}

.duplicate-enrollment-option span,
.duplicate-enrollment-option small {
    display: block;
}

.duplicate-enrollment-option small {
    color: #53606a;
    margin-top: 0.25rem;
}

.duplicate-merge-actions {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.duplicate-merge-actions .button {
    flex: 0 1 auto;
    height: auto;
    margin: 0;
    max-width: none;
    min-height: 2.75rem;
    padding: 0.55rem 1rem;
    white-space: normal;
}

.duplicate-checked-action {
    background: #fff;
    border: 1px solid #9a6b00;
    color: #6f4d00;
}

.duplicate-checked-action:hover {
    background: #fff7df;
    border: 1px solid #9a6b00;
    color: #6f4d00;
}

.volunteer-merge-undo {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.volunteer-merge-undo .form-section-title,
.volunteer-merge-undo p {
    margin-bottom: 0.35rem;
}

.volunteer-merge-undo .button {
    margin: 0;
    max-width: none;
    white-space: nowrap;
}

@media (max-width: 800px) {
    .duplicate-candidate-actions {
        flex-direction: column;
    }

    .duplicate-candidate-actions .button,
    .duplicate-candidate-actions .secondary-action {
        width: 100%;
    }

    .duplicate-comparison-grid {
        grid-template-columns: 1fr;
    }

    .duplicate-merge-actions {
        flex-direction: column;
    }

    .duplicate-merge-actions .button {
        width: 100%;
    }

    .duplicate-field-table {
        grid-template-columns: minmax(7rem, 0.7fr) repeat(2, minmax(9rem, 1fr));
        overflow-x: auto;
    }

    .volunteer-merge-undo {
        align-items: stretch;
        flex-direction: column;
        gap: 0.75rem;
    }

    .duplicate-enrollment-options {
        grid-template-columns: 1fr;
    }
}

.kaart-editor-distance {
    background: #f8f5ef;
    border-bottom: 1px solid rgba(54, 69, 79, 0.16);
    min-height: 1.6rem;
    padding: 0.4rem 0.75rem;
}

.kaart-calibration-stack {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem;
}

.kaart-calibration-stack h2 {
    font-size: 1rem;
    margin: 0 0 0.35rem;
}

.kaart-marker-icon {
    align-items: center;
    display: flex;
    font-size: 1.5rem;
    justify-content: center;
}

.kaart-onderdeel-label {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(54, 69, 79, 0.28);
    border-radius: 0.3rem;
    box-shadow: 0 1px 4px rgba(30, 41, 49, 0.22);
    color: #263238;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.15;
    padding: 0.2rem 0.4rem;
    white-space: nowrap;
}

.event-map-editor-half {
    height: 42vh;
    min-height: 320px;
}

.form-grid-4 {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
}

.form-grid-4 label {
    display: grid;
    gap: 0.25rem;
}

.event-map-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(28, 36, 48, 0.58);
}

.event-map-popup-overlay[hidden] {
    display: none;
}

.event-map-popup-dialog {
    display: flex;
    flex-direction: column;
    width: min(980px, 96vw);
    height: min(760px, 92vh);
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(12, 20, 32, 0.28);
}

.event-map-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid #d7dde7;
    background: #f8fafc;
}

.event-map-popup-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.event-map-popup-close {
    border: 0;
    background: transparent;
    color: #283445;
    font-size: 1.1rem;
    cursor: pointer;
}

.event-map-popup-body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    min-height: 0;
    padding: 16px;
}

.event-map-popup-map {
    height: 100%;
    min-height: 420px;
}

.event-map-popup-actions {
    display: flex;
    justify-content: flex-end;
}

.standalone-map-selector {
    height: calc(100dvh - 36px);
    min-height: 520px;
    box-sizing: border-box;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid rgba(54, 69, 79, 0.18);
    font: inherit;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(54, 69, 79, 0.16);
}

.primary-action {
    background: rgb(31, 92, 121);
    color: white;
}

.secondary-action {
    background: rgba(255, 255, 255, 0.82);
    color: rgb(54, 69, 79);
}

.primary-action:hover {
    background: rgb(24, 76, 101);
}

.secondary-action:hover {
    background: white;
}

.modal-main {
    padding: 18px 12px 40px;
}

.record-editor-shell {
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(54, 69, 79, 0.16);
}

.record-editor-form {
    padding: 0 24px 24px;
}

.record-editor-toolbar {
    display: grid;
    grid-template-columns: 42px 42px 1fr 42px;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    margin: 0 -24px 20px;
    padding: 0 22px;
    border-bottom: 1px solid #e4e4e4;
    background: #fff;
}

.record-editor-toolbar strong {
    justify-self: center;
    color: rgb(54, 69, 79);
    font-size: 1.1rem;
}

.record-editor-toolbar a,
.record-editor-toolbar button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: rgb(46, 103, 133);
    font-size: 1.35rem;
    cursor: pointer;
}

.record-card-grid {
    display: grid;
    gap: 16px;
}

.record-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 8px;
    background: #f6f6fa;
}

.record-field > span {
    color: #111;
    font-size: 1rem;
    font-weight: bold;
}

.record-field input,
.record-field select,
.record-field textarea {
    width: 100%;
    min-height: 36px;
    border: 0;
    background: transparent;
    color: #050505;
    font: inherit;
    font-size: 1.15rem;
}

.record-field input:focus,
.record-field select:focus,
.record-field textarea:focus {
    outline: 0;
}

.volunteer-availability-list,
.record-availability-list {
    display: grid;
    gap: 0.65rem;
}

.volunteer-availability-item,
.record-availability-item {
    display: grid;
    gap: 0.25rem;
    padding: 0.75rem;
    border: 1px solid rgba(54, 69, 79, 0.14);
    border-radius: 0.45rem;
    background: #f8fafb;
}

.volunteer-availability-item span,
.volunteer-availability-item small {
    color: #52606b;
}

.record-availability-section {
    display: grid;
    gap: 0.85rem;
    padding: 0 24px 24px;
}

.record-availability-form {
    display: grid;
    grid-template-columns: minmax(10rem, 1.2fr) repeat(3, minmax(7rem, 0.7fr));
    gap: 0.65rem;
    align-items: end;
}

.record-availability-form strong,
.record-availability-form label {
    display: grid;
    gap: 0.25rem;
}

.record-availability-form label span {
    color: #36454f;
    font-size: 0.85rem;
    font-weight: 700;
}

.record-availability-form input {
    min-height: 2.2rem;
}

.record-availability-reason,
.record-availability-actions {
    grid-column: 1 / -1;
}

.record-availability-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.danger-action {
    min-height: 2.35rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid #efb4bc;
    border-radius: 0.35rem;
    background: #fff0f2;
    color: #9b202c;
    font-weight: 800;
}

.onderdeelimport-rollback-audit,
.onderdeelimport-rollback-panel {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(54, 69, 79, 0.16);
    border-radius: 0.45rem;
    background: #f8fafb;
}

.onderdeelimport-rollback-audit ul {
    margin-bottom: 0;
}

.onderdeelimport-rollback-panel {
    border-color: #efb4bc;
    background: #fff8f8;
}

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

.record-choice > div {
    display: flex;
    gap: 18px;
    font-size: 1.05rem;
}

.record-choice label,
.record-toggle {
    flex-direction: row;
    align-items: center;
}

.record-toggle input {
    width: 22px;
    min-height: 22px;
}

.notes-field textarea {
    min-height: 80px;
}

.formulierbeheer-template-list {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 12px 0 18px;
}

.formulierbeheer-template-preview {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(54, 69, 79, 0.18);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 14px;
}

.formulierbeheer-template-preview.is-selected {
    border-color: #1f7a4d;
    box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.14);
}

.formulierbeheer-template-preview span {
    color: #36454F;
}

.formulierbeheer-layout {
    display: grid;
    gap: 18px;
}

.formulierbeheer-template-editor {
    border: 1px solid rgba(54, 69, 79, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    margin-bottom: 12px;
    padding: 12px;
}

.formulierbeheer-template-editor summary {
    cursor: pointer;
    font-weight: 700;
}

.warning-message {
    border: 1px solid #9a6a00;
    border-left: 6px solid #9a6a00;
    border-radius: 6px;
    background: #fff7df;
    color: #5f4100;
    font-weight: 700;
    margin: 12px 0;
    padding: 10px 12px;
}

@media (max-width: 700px) {
    .gebied-map-editor-page {
        flex-direction: column;
        overflow: visible;
    }

    .kaart-editor-page.gebied-map-editor-page {
        flex-direction: column;
    }

    .gebied-map-sidebar {
        flex: none;
        max-height: none;
        order: 2;
    }

    .gebied-map-canvas {
        flex: none;
        height: 62vh;
        min-height: 360px;
        order: 1;
    }

    .volunteer-form-header {
        align-items: stretch;
        flex-direction: column;
    }

    .volunteer-detail-popout {
        padding: 10px;
    }

    .volunteer-detail-grid,
    .volunteer-event-row,
    .volunteer-memo-add-actions {
        grid-template-columns: 1fr;
    }

    .volunteer-photo-block {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .volunteer-photo {
        width: 80px;
        height: 80px;
    }

    .volunteer-memo-header,
    .volunteer-memo-item header,
    .volunteer-memo-item footer {
        flex-direction: column;
    }

    .volunteer-memo-filter {
        grid-template-columns: 1fr;
    }

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

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

    .record-editor-form {
        padding-left: 14px;
        padding-right: 14px;
    }

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

    .volunteer-form .field,
    .volunteer-form .name-row .field,
    .volunteer-form .name-row .prefix-field,
    .volunteer-form .address-line .street-field,
    .volunteer-form .address-line .letter-field,
    .volunteer-form .address-line .number-field,
    .volunteer-form .postal-line .postcode-field {
        grid-column: 1;
    }
}

.power-plan-page {
    background: #f4f6f8;
    padding: 18px;
}

.power-plan-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.power-plan-header h1 {
    margin: 4px 0 0;
}

.power-plan-layout {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 2.4fr) minmax(360px, 1fr);
    min-height: 680px;
}

.power-plan-map {
    border: 1px solid #ccd7dd;
    border-radius: 10px;
    min-height: 680px;
    overflow: hidden;
}

.power-plan-map.is-picking-point {
    cursor: crosshair;
    outline: 4px solid rgba(31, 92, 121, 0.24);
}

.power-point-marker-wrapper {
    background: transparent;
    border: 0;
}

.power-point-marker {
    background: var(--power-marker-fill);
    border: 3px solid var(--power-marker-border);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.45);
    box-sizing: border-box;
    display: block;
    height: var(--power-marker-size);
    width: var(--power-marker-size);
}

.power-point-marker-wrapper.is-cable-selected .power-point-marker {
    box-shadow: 0 0 0 4px #ffffff, 0 0 0 8px #7c3aed;
}

.power-point-marker-wrapper.is-cable-selected .power-rental-marker {
    box-shadow: 0 0 0 4px #ffffff, 0 0 0 8px #7c3aed;
}

.power-rental-marker-wrapper {
    background: transparent;
    border: 0;
}

.power-rental-marker {
    align-items: center;
    background: #fff;
    border: 3px solid var(--power-rental-color, #2563eb);
    border-radius: 50%;
    box-shadow: 0 2px 7px rgb(15 23 42 / 35%);
    color: var(--power-rental-color, #2563eb);
    display: flex;
    font-size: 15px;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.power-scalable-icon > span,
.power-scalable-icon .power-rental-marker,
.power-scalable-icon .power-point-marker {
    transform: scale(var(--power-map-icon-scale, 1));
    transform-origin: center;
    transition: transform 120ms ease-out;
}

.power-component-marker-wrapper {
    background: transparent;
    border: 0;
}

.power-component-marker {
    align-items: center;
    background: rgb(255 255 255 / 88%);
    border: 2px solid #64748b;
    border-radius: 6px;
    color: #475569;
    display: flex;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.power-component-marker.has-demand {
    border-color: #d97706;
    color: #d97706;
}

.power-plan-map.is-moving-points .power-point-marker-wrapper,
.power-plan-map.is-moving-points .power-component-marker-wrapper {
    cursor: grab;
}

.power-plan-map.is-moving-points .power-point-marker-wrapper:active {
    cursor: grabbing;
}

.power-move-control button {
    align-items: center;
    background: #ffffff;
    border: 0;
    cursor: pointer;
    display: flex;
    font-size: 20px;
    height: 32px;
    justify-content: center;
    padding: 0;
    width: 32px;
}

.power-move-control button.is-active {
    background: #1f5c79;
    color: #ffffff;
}

.gebied-tool-subselects {
    border-left: 2px solid #d7e0e4;
    display: grid;
    gap: 6px;
    margin: 8px 0 0 8px;
    padding-left: 10px;
}

.gebied-tool-subselects.is-disabled {
    opacity: 0.58;
}

.gebied-tool-subselects details {
    margin-top: 4px;
}

.gebied-tool-subselects details > summary {
    cursor: pointer;
    font-weight: 600;
}

.gebied-tool-subselects details > label {
    margin-left: 10px;
}

.power-plan-tools {
    align-self: start;
    background: #f6f8f9;
    border: 1px solid #d7e0e4;
    border-radius: 10px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 0 14px 14px;
}

.power-plan-tools details {
    border-top: 1px solid #d7e0e4;
    padding: 0;
}

.power-plan-tools summary {
    cursor: pointer;
    font-size: 0.98rem;
    font-weight: 700;
    padding: 12px 2px;
}

.power-plan-tools details[open] summary {
    border-bottom: 1px solid #e5eaed;
    margin-bottom: 12px;
}

.power-plan-tools .stacked-form {
    display: grid;
    gap: 10px;
}

.power-plan-tools .stacked-form > label,
.power-plan-tools .power-plan-grid > label {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.power-plan-tools input,
.power-plan-tools select,
.power-plan-tools textarea {
    box-sizing: border-box;
    max-width: none;
    width: 100%;
}

.power-plan-note {
    background: #fff8dd;
    border-left: 4px solid #d59b00;
    margin: 14px 0 10px;
    padding: 10px;
}

.power-plan-validation-note {
    background: #e8f6ed;
    border-left: 4px solid #15803d;
    padding: 10px;
}

.power-plan-validation-note.is-invalid {
    background: #fff1f2;
    border-left-color: #b91c1c;
}

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

.power-plan-check {
    align-items: flex-start;
    display: flex !important;
    gap: 8px;
}

.power-plan-check input {
    flex: none;
    margin-top: 4px;
}

.power-plan-overview {
    margin-top: 12px;
}

.power-plan-moment {
    background: #fff;
    border: 1px solid #d7e0e4;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 10px 12px;
}

.power-plan-moment form {
    align-items: end;
    display: flex;
    gap: 10px;
}

.power-plan-moment label {
    display: grid;
    gap: 3px;
}

.power-plan-list {
    padding: 0;
}

.power-plan-list > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 1.05rem;
    font-weight: 700;
    justify-content: space-between;
    padding: 14px 16px;
}

.power-plan-list > summary span {
    background: #e7eef2;
    border-radius: 999px;
    font-size: 0.8rem;
    min-width: 1.8rem;
    padding: 3px 8px;
    text-align: center;
}

.power-plan-list[open] > summary {
    border-bottom: 1px solid #d7e0e4;
}

.power-plan-list > :not(summary) {
    margin-left: 16px;
    margin-right: 16px;
}

.power-plan-list > :last-child {
    margin-bottom: 16px;
}

.power-component-demands,
.power-demand-items {
    display: grid;
    gap: 10px;
}

.power-component-demand {
    border: 1px solid #d7e0e4;
    border-radius: 8px;
    overflow: hidden;
}

.power-component-demand > header {
    align-items: center;
    background: #f4f7f8;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 10px 12px;
}

.power-component-demand > header div {
    display: grid;
    gap: 2px;
}

.power-component-demand > header div:last-child {
    text-align: right;
}

.power-demand-item {
    border-top: 1px solid #e2e8eb;
}

.power-demand-item > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 9px 12px;
}

.power-demand-item > summary span:last-child {
    color: #536973;
    font-size: 0.88rem;
    text-align: right;
}

.power-demand-item-details {
    background: #fff;
    padding: 2px 12px 12px;
}

.power-count-badge {
    background: #e7eef2;
    border-radius: 999px;
    font-size: 0.8rem;
    padding: 3px 8px;
}

.power-map-context-menu {
    display: grid;
    gap: 5px;
    min-width: 220px;
}

.power-map-context-menu strong {
    border-bottom: 1px solid #d7e0e4;
    margin-bottom: 3px;
    padding-bottom: 7px;
}

.power-map-context-menu button {
    background: #fff;
    border: 1px solid #c7d2d8;
    color: #173c4d;
    cursor: pointer;
    padding: 7px 9px;
    text-align: left;
    width: 100%;
}

.power-map-context-menu button:hover {
    background: #eaf3f7;
}

.power-map-selection-notice {
    align-items: center;
    background: #173c4d;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    color: #fff;
    display: flex;
    gap: 12px;
    left: 50%;
    padding: 9px 12px;
    position: absolute;
    top: 12px;
    transform: translateX(-50%);
    z-index: 1000;
}

.power-map-selection-notice[hidden] {
    display: none;
}

.power-map-selection-notice button {
    background: #fff;
    border: 0;
    border-radius: 4px;
    color: #173c4d;
    cursor: pointer;
    padding: 4px 8px;
}

.power-plan-map.is-selecting-cable {
    cursor: crosshair;
}

.power-plan-cards {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.power-plan-card {
    background: #fff;
    border: 1px solid #d7e0e4;
    border-left: 5px solid #1f5c79;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
}

.power-plan-card.has-water-crossing {
    border-left-color: #b91c1c;
}

.power-plan-card.power-status-waarschuwing {
    border-left-color: #d97706;
    background: #fffbeb;
}

.power-plan-card.power-status-fout {
    border-left-color: #b91c1c;
    background: #fef2f2;
}

.power-warning {
    color: #b91c1c;
    font-weight: 700;
}

.power-load-tooltip {
    min-width: 210px;
    white-space: normal;
}

.power-plan-card .form-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.power-plan-card .form-actions form {
    margin: 0;
}

.power-point-label {
    font-weight: 700;
}

@media (max-width: 900px) {
    .power-plan-page {
        padding: 12px;
    }

    .power-plan-layout {
        grid-template-columns: 1fr;
    }

    .power-plan-map {
        min-height: 55vh;
    }

    .power-plan-tools {
        max-height: none;
    }
}

@media (max-width: 520px) {
    .power-plan-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .power-plan-grid {
        grid-template-columns: 1fr;
    }
}
