.admin {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    display: grid;
    gap: 16px;
}

.admin,
.admin * {
    box-sizing: border-box;
}

﻿.admin .panel__header {
    margin-bottom: 12px;
}

.admin .muted {
    opacity: .75;
}

.tabs {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.tab {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border, #ddd);
    background: var(--color-white);
    cursor: pointer;
    box-shadow: var(--rk-shadow-card);
    color: var(--color-text-secondary);
}

.tab:hover {
    transform: translateY(-1px);
}

.tab:active {
    transform: translateY(1px) scale(0.98);
}

    .tab.is-active {
        background: var(--btn-primary);
        border-color: var(--btn-primary);
        color: var(--btn-primary-text);
        box-shadow: 0 12px 26px rgba(37, 99, 235, .28);
    }

.admin__toolbar {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin: 10px 0 14px;
}

    .admin__toolbar .input {
        flex: 1;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid var(--border, #ddd);
    }

.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 12px;
    border: 1px solid var(--border, #ddd);
    border-radius: 14px;
    cursor: pointer;
    background: var(--color-white);
    box-shadow: var(--rk-shadow-card);
}

.list-row__main .title {
    display: flex;
    gap: 10px;
    align-items: center;
}

.list-row__main .meta {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    opacity: .75;
    font-size: .92rem;
}

.dot {
    opacity: .5;
}

.row-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon-btn--danger {
    color: #b00020;
}

.list-detail {
    padding: 12px 12px;
    border: 1px solid var(--border, #ddd);
    border-radius: 14px;
    margin-top: -6px;
    background: var(--color-white);
    box-shadow: var(--rk-shadow-card);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.detail-full {
    grid-column: 1 / -1;
}

.member-list {
    display: grid;
    gap: 10px;
}

.member-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px;
    background: var(--color-white);
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.member-meta {
    opacity: .75;
    font-size: .9rem;
}

.member-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

@media (max-width: 720px) {
    .member-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.admin-edit {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-edit__grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-edit__row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-edit__row--check {
    align-items: flex-start;
}

.admin-edit__row label {
    font-weight: 600;
    font-size: .9rem;
    opacity: .75;
}

.admin-edit__section-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.admin-edit__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 720px) {
    .admin-edit__grid {
        grid-template-columns: 1fr;
    }
}

.kv > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(0,0,0,.08);
}

    .kv > div span:first-child {
        opacity: .75;
    }

.badge {
    font-size: .8rem;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.15);
}

.badge--ok {
    background: rgba(0, 140, 0, .10);
}

.badge--muted {
    opacity: .65;
}

.badge--ghost {
    background: rgba(0,0,0,.04);
}

.skeleton {
    opacity: .75;
    padding: 12px;
    border: 1px dashed rgba(0,0,0,.2);
    border-radius: 14px;
}

.error {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(176,0,32,.35);
    background: rgba(176,0,32,.06);
}

.mini-list {
    margin: 0;
    padding-left: 18px;
}

.icon-btn.admin-button svg {
    color: black;
}

.btn-toggle svg{
    min-width: 25px;
}

.icon-btn--danger svg {
    color: red;
}

.mini-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

@media (max-width: 600px) {
    .list-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .list-row__main {
        width: 100%;
        min-width: 0; /* belangrijk voor ellipsis/overflow */
    }

        .list-row__main .title {
            flex-wrap: wrap; /* badges mogen wrappen */
            row-gap: 6px;
        }

        .list-row__main .meta {
            flex-wrap: wrap;
            gap: 6px;
        }

    .row-actions {
        width: 100%;
        justify-content: flex-end; /* actions rechts */
        flex-wrap: wrap; /* als veel buttons: wrap netjes */
        gap: 8px;
    }
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.admin-invite-btn {
    border: 1px solid var(--border, #ddd);
    border-radius: 12px;
    padding: 8px;
    background: rgba(0,0,0,.03);
}

.admin-invite-btn svg {
    color: black;
}

.admin-invite-btn:hover {
    background: rgba(0,0,0,.06);
}

/* Modal */
.rk-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 16px;
}

.rk-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
}

.rk-modal__panel {
    position: relative;
    width: min(520px, 100%);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: var(--color-secondary);
    padding: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.rk-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.rk-modal__body .form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.rk-modal__body label {
    opacity: .8;
    font-size: .95rem;
}

.rk-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.invite-ok {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(0,140,0,.25);
    background: rgba(0,140,0,.08);
}

/* Blauwe header (gebruik dezelfde var als je app header als je die hebt) */
.rk-modal__header--blue {
    /* kies 1 van deze:
     1) als je al een CSS var hebt voor je header kleur: */
    background: var(--color-primary);
    /* of 2) als je al een specifieke var gebruikt (pas aan):
     background: var(--header-bg);
  */
    border-radius: 14px 14px 0 0;
    padding: 10px 12px; /* compact */
    margin: -14px -14px 12px; /* trekt 'm strak tegen panel randen aan (panel heeft padding 14px) */

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

    .rk-modal__header--blue h2 {
        margin: 0;
        font-size: 1rem; /* compact */
        color: #fff;
        font-weight: 700;
    }

/* Close knop wit + netjes */
.rk-modal__close {
    border-radius: 10px;
    top: -7px;
    padding: 6px;
    width: 32px;
    height: 32px;
    position: relative;
}

    .rk-modal__close svg {
        color: #fff;
    }

    .rk-modal__close:hover {
        background: rgba(255,255,255,.14);
    }



