.planner-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
}

.planner-grid {
    position: sticky;
    left: 0;
    background: var(--opw-surface);
    z-index: 10;
}

.planner-time-row {
    height: 40px; /* 30 min visueel */
    border-bottom: 1px solid var(--opw-card);
    box-sizing: border-box;
    font-size: 12px;
}

.planner-time-row.half {
    border-bottom: 2px solid var(--opw-border);
}

.planner-events {
    position: relative;
    width: max-content;
}

.planner-event {
    position: absolute;
    left: 0;
    right: 10px;
    background: var(--opw-card);
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    box-sizing: border-box;
    font-size: 10px;
    border-left: 4px solid var(--terrein-kleur);
}

.planner-header,
.planner-body {
    display: flex;
    width: max-content;
}

.planner-body {
    --width-rooster: 230px; 

    background-image:
        /* uurlijnen */
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 78px,
            var(--opw-border) 78px,
            var(--opw-border) 80px
        ),

        /* halfuurlijnen */
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 39px,
            var(--opw-card) 39px,
            var(--opw-card) 40px
        ),

        /* terreinlijnen */
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent calc(var(--width-rooster) - 1px),
            var(--opw-border) calc(var(--width-rooster) - 1px),
            var(--opw-border) var(--width-rooster)
        );

    background-position:
        0 0,
        0 0,
        40px 0;
}

.planner-header {
    position: sticky;
    top: 0;

    z-index: 20;

    background: var(--opw-surface);
}

.planner-header-time,
.planner-grid {
    width: 40px;
    flex-shrink: 0;
}

.planner-header-column {
    flex-shrink: 0;

    padding: 12px;
    font-weight: 400;
    text-align: center;

    border-bottom: 1px solid var(--opw-border);
    border-right: 1px solid var(--opw-border);

    box-sizing: border-box;
}

.planner-tolken {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.planner-tolken .tolk-badge,
.tolk-list .tolk-badge {
    width: 25px;
    height: 20px;
    padding: 0 6px;
    font-size: 10px;
    border-radius: 0px;
}

.zitplaats-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 20px;
    padding: 0 6px;
    font-size: 10px;
    font-weight:600;
    border-radius: 0px;
    background: var(--opw-surface);

}

.tolk-add,
.dienst-toggle {
    border: none;
    border-radius: 6px;
    padding: 0 6px;
    cursor: pointer;
}

#tolk-modal {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.5);

    z-index: 99999;

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

.tolk-modal-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 30px;
}

#dienst-modal {
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100dvh;

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

    padding: 1rem;

    background: rgba(0,0,0,.5);
    z-index: 999999;

    box-sizing: border-box;
    overflow: auto;
}

.tolk-dropdown-wrapper {
    position: relative;
}

.tolk-dropdown {
    position: absolute;
    top: 40px;
    left: 0;
    width: 280px;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;

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

    padding: 10px;
    z-index: 20000;
}

.tolk-dropdown.hidden {
    display: none;
}

.tolk-filters {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.tolk-filters button {
    font-size: 11px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    cursor: pointer;
    border-radius: 6px;
}

.tolk-filters button.active {
    background: #111;
    color: #fff;
}

.dienst-modal-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 1rem;
}

#dienst-modal .dashboard-card {
    width: min(100vw, 500px);
    display: flex;
    flex-direction: column;
}

.tolk-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 20px 0;
}

.tolk-columns h4 {
    margin-top: 0;
    margin-bottom: 12px;
}

.tolk-option {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 10px;

    cursor: pointer;
}

.planner-notification {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #00a32a;
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    z-index: 99999;
}

.tolken-aanwezig {
    overflow-x: auto;
    width:100%;
}

.tolken-aanwezig .widefat {
    border-collapse: collapse;
}

/* alle cellen */
.tolken-aanwezig .widefat th,
.tolken-aanwezig .widefat td {
    border: 1px solid #e6e6e6; /* lichtgrijs */
}

.planner-event.is-geannuleerd {
    background: var(--opw-geannuleerd);
    color: var(--opw-geannuleerd-text);
}

.planner-event.is-geannuleerd::after {
    content: 'GEANNULEERD';
    position: absolute;
    top: 0;
    right: 0;
    background: #ac1d1f;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    color: #fff;
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 400;
    padding: 2px 4px;
    border: 0px;
    border-radius: 0 4px 0 4px;
}

.tolk-modal-content,
.dashboard-card {
    max-height: 90vh;
    overflow-y: auto;
}

.tolk-dropdown-wrapper {
    position: relative;
}

.tolk-dropdown {
    position: absolute;
    top: 100%;
    left: 0;

    width: 280px;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;

    z-index: 99999;

    max-height: 300px;
    overflow-y: auto;
}

.dienst-actions {
    display: flex;
    justify-content: right;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
}

.dienst-details {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 8px 12px;
    margin: 20px 0;
}

.dienst-details .label {
    font-weight: 600;
    color: #666;
}

.terrein-badge {
    display: inline-flex;
    align-items: center;

    padding: 4px 10px;
    border-radius: 5px;

    color: white;
    font-size: 0.85rem;
}

.dashboard-card-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 5px;

    flex-shrink: 0;

    background: linear-gradient(
        120deg,
        #D30A83,
        #EC1560,
        #FCAC2E
    );
}

.dashboard-card-content {
    flex: 1;
    overflow-y: auto;
}

.dashboard-modal-close {
    height: 40px;
    display: flex;
    border: 0px;
    justify-content: center;
    align-items: center;
    background: transparent;
    color: white;
    font-size: 28px;
    transition: background .2s ease;
}

.dashboard-modal-close:hover {
    background: rgba(0, 0,0,.2);
    color: #fff;
}

.dienst-overview{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
    margin:20px 0;
}

.info-card{
    background: var(--opw-bg);
    border:1px solid var(--opw-border);
    border-radius:14px;
    padding:16px;
    display:flex;
    flex-direction:column;
    gap:8px;

    box-shadow:0 2px 6px rgba(0,0,0,.05);
}

.info-card strong{
    font-size:25px;
    font-weight:600;
}

.small-version strong{
    font-size: 16px;
}

.info-label{
    color:#777;
    font-size:13px;
}

.detail-list{
    margin-top:20px;
    border:1px solid var(--opw-border);
    border-radius:14px;
    overflow:hidden;
    background: var(--opw-bg);
    box-shadow:0 2px 6px rgba(0,0,0,.05);
}



.detail-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: center;
    padding: 16px;
}

@media (max-width: 768px) {
    .account {
        display: block;
    }
}

.detail-row span {
    color: #666;
}

.detail-row strong {
    text-align: right;
    overflow-wrap: anywhere;
}

.detail-row + .detail-row{
    border-top:1px solid var(--opw-border);
}

.detail-row span{
    color:#777;
}

.dienst-status, 
.activiteit-status{
    display:inline-flex;
    padding:6px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:600;
}

.status-gepland{
    background:#b0e7c6;
    color:#208b4e;
}

.status-geannuleerd{
    background:#f5bab4;
    color:#c0392b;
}

.status-niet-gekoppeld{
    background:#fff7db;
    color:#a56b00;
}

.activiteit-button{
    color:#140064;
    background:#d0c9eb;
}

.dashboard-hamburger {
    position: relative;
}

.hamburger-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
}

.hamburger-divider {
    height: 1px;
    background: #ddd;
}

.hamburger-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;

    min-width: 220px;

    display: flex;
    flex-direction: column;
    gap: 6px;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 1000;
}

.hamburger-menu button {
    padding: 10px;
    text-align: left;
    border: none;
    background: white;
    cursor: pointer;
}

.hamburger-menu button:hover {
    background: #f5f5f5;
}

.hidden {
    display: none;
}

.planner-event {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.planner-content {
    flex: 1;
    min-width: 0;
}

.planner-sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.planner-zitplaatsen,
.planner-tolken {
    display: flex;
    gap: 0;
}

.tolk-badge {
    border-radius: 0;
    margin: 0;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
}

.planner-zitplaatsen .zitplaats-badge:first-child,
.planner-tolken .tolk-badge:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.planner-zitplaatsen .zitplaats-badge:last-child,
.planner-tolken .tolk-badge:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.planner-zitplaatsen .zitplaats-badge:only-child,
.planner-tolken .tolk-badge:only-child {
    border-radius: 4px;
}

#aanmeldingen-toggle {
    cursor: pointer;
    user-select: none;
}

.status-row {
    display: flex;
    gap: 10px; /* ruimte ertussen */
    align-items: center;
}

.password-field {
    position: relative;
}

.password-field input {
    width: 90%;
    padding-right: 42px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);

    border: none;
    background: none;
    cursor: pointer;

    padding: 0;
    color: var(--opw-text-secondary);
}

.password-toggle .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.password-toggle:hover {
    color: var(--opw-text);
}

@media (max-width: 768px) {

    .tolk-columns {
        grid-template-columns: 1fr;
        gap: 12px;
    }

}

@media (max-width: 768px) {

    .locatie,
    .tolken {
        grid-column: 1 / -1;
    }

}