/* Afmeldingen overzicht styling – versie 3.9.12 */

.ha-filterform {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.9em;
}

.ha-filterform label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ha-filterform select {
    height: 32px;
    padding: 0 8px;
    font-size: 0.9em;
    border: 1px solid #ccc;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    border-radius: 4px;
}

/* Resetknop stijl */
.ha-filterform button {
    height: 32px;
    padding: 0 12px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
    border: none;
    background-color: #0073aa;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.ha-filterform button:hover {
    background-color: #005f8d;
}

.ha-year-total {
    font-style: italic;         /* maakt de tekst schuingedrukt */
    font-family: inherit;       /* neemt hetzelfde lettertype over als de omringende tekst */
    font-size: inherit;         /* neemt dezelfde lettergrootte over als .ha-summary */
    margin-top: 5px;            /* optioneel: iets dichter bij de tabel */
    color: inherit;             /* zelfde kleur als de tekst erboven */
}

.ha-summary {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 0.9em;
}

.ha-table-wrapper {
    overflow-x: auto;
}

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

.ha-table-wrapper table th,
.ha-table-wrapper table td {
    text-align: left;
    font-size: 0.9em;
    padding: 5px;
    border: 1px solid #ddd;
}

.ha-table-wrapper table th:nth-child(1),
.ha-table-wrapper table td:nth-child(1) {
    width: 120px;
    white-space: nowrap;
}

.ha-table-wrapper table th:nth-child(2),
.ha-table-wrapper table td:nth-child(2) {
    padding-right: 8px;
    white-space: nowrap;
}

.ha-table-wrapper table th:nth-child(3),
.ha-table-wrapper table td:nth-child(3) {
    width: 120px;
    white-space: nowrap;
}

.ha-table-wrapper table th:nth-child(4),
.ha-table-wrapper table td:nth-child(4) {
    min-width: 300px;
    white-space: normal;
}

.ha-table-wrapper table th:nth-child(5),
.ha-table-wrapper table td:nth-child(5) {
    width: 140px;
    white-space: nowrap;
}

/* Pagineringknoppen */
.pagination {
    margin-top: 10px;
}

.pagination button {
    margin: 0 2px;
    padding: 4px 10px;
    font-size: 0.9em;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.pagination button:hover {
    background-color: #005f8d;
}

.pagination button:disabled {
    background-color: #ccc;
    color: #333;
    cursor: default;
}

@media (max-width: 600px) {
    .ha-filterform {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .ha-filterform label {
        flex: 1 1 40%;
        min-width: 140px;
    }

    .ha-filterform select {
        width: 100%;
        box-sizing: border-box;
        font-size: 0.9em;
        height: 32px;
        padding: 0 8px;
        border: 1px solid #ccc;
        background-color: #fff;
        appearance: none;
        border-radius: 4px;
    }

    .ha-filterform button {
        flex: 0 0 auto;
        height: 32px;
        padding: 0 12px;
        font-size: 0.9em;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        line-height: 1;
        border: none;
        background-color: #0073aa;
        color: #fff;
        border-radius: 4px;
        cursor: pointer;
    }

    .ha-filterform button:hover {
        background-color: #005f8d;
    }

    .ha-summary {
        font-size: 0.85em;
    }

    .ha-table-wrapper table th,
    .ha-table-wrapper table td {
        font-size: 0.85em;
    }
}