.account {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    display: grid;
    gap: 16px;
}

.account,
.account * {
    box-sizing: border-box;
}

﻿.panel {
    box-sizing: border-box;
}

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: 999px;
    font-size: .8rem;
    background: rgba(255,255,255,.10);
    overflow-wrap: normal;
    word-break: normal;
}

.badge--primary {
    background: rgba(0,140,255,.25);
}

.badge--muted {
    background: rgba(255,255,255,.06);
    opacity: .75;
}

/* ---------- Labels/Values ---------- */
.label {
    opacity: .75;
    font-weight: 700;
    white-space: nowrap; /* label blijft 1 regel */
}

.value {
    font-weight: 600;
    min-width: 0;
    /* ✅ niet afkappen, maar wrappen (adres/bedrijf etc) */
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ---------- Rows: icon | label | value ---------- */
.dash-card__row {
    display: grid;
    grid-template-columns: 22px 140px minmax(0, 1fr); /* icon | label | value */
    align-items: center;
    column-gap: 10px;
}

    /* optional: icon netjes centreren */
    .dash-card__row .icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* ❌ ellipsis eruit (dit brak lange teksten) */
/* .dash-card__row .value {
    overflow: hidden;
    text-overflow: ellipsis;
} */

/* ---------- Address inline + maps icon ---------- */
.address-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    min-width: 0;
}

.address-map-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

    .address-map-link svg {
        display: block;
    }

/* ---------- Header layout (titel + pen) ---------- */
.account-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* ---------- Edit button ---------- */
#accEditBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: var(--color-text-secondary);
}

    #accEditBtn:hover {
        background: rgba(255,255,255,.10);
    }

    #accEditBtn svg {
        width: 18px;
        height: 18px;
        stroke-width: 2.2;
    }

/* ---------- Inputs ---------- */
.input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: inherit;
}

.name-edit {
    display: flex;
    gap: 8px;
}

/* Address edit */
.address-edit {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-row {
    display: flex;
    gap: 8px;
}

/* Actions row */
.account-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ---------- Mobile ---------- */
@media (max-width:600px) {
    /* ✅ blijft 3 kolommen: icon | label | value */
    .dash-card__row {
        grid-template-columns: 22px 120px minmax(0, 1fr);
        align-items: start; /* value kan multi-line worden */
    }

    .name-edit {
        flex-direction: column;
    }

    .address-row {
        flex-direction: column;
    }

    .account-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ---------- Edit field styling ---------- */

/* container voor edit UI zodat alles netjes onder elkaar valt */
.edit-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* mini label boven input (iets donkerder dan lichtgrijs) */
.field-label {
    font-size: .78rem;
    font-weight: 700;
    color: rgba(20, 20, 20, .62); /* ✅ half-grijs op wit input */
    opacity: 1; /* ✅ geen extra vervaging */
    margin-bottom: 6px;
}


/* input look: wit, geen border, afgerond, subtiele schaduw */
.input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px; /* ✅ iets kleiner */
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,.92);
    color: #111;
    box-shadow: 0 1px 0 rgba(0,0,0,.10), 0 6px 16px rgba(0,0,0,.14);
    outline: none;
}

    /* placeholders */
    .input::placeholder {
        color: rgba(0,0,0,.45);
    }

    /* focus state */
    .input:focus {
        box-shadow: 0 1px 0 rgba(0,0,0,.10), 0 10px 22px rgba(0,0,0,.18), 0 0 0 3px rgba(0,140,255,.25); /* ✅ zachte blauwe ring */
    }

/* name edit: 2 kolommen desktop, 1 kolom mobiel */
.name-edit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    min-width: 0;
}

@media (max-width: 600px) {
    .name-edit {
        grid-template-columns: 1fr;
    }
}

/* address edit: straat full, nr/toevoeging 2 kolommen, rest full */
.address-edit {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.address-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    min-width: 0;
}

@media (max-width: 600px) {
    .address-row {
        grid-template-columns: 1fr;
    }
}

/* Alleen in Persoon kaart wanneer edit-mode aan staat */
#accountCard.is-editing .dash-card__body {
    display: flex;
    flex-direction: column;
    gap: 14px; /* ✅ meer ruimte tussen rows */
}

/* In edit-mode willen we dat rows niet “grid-row” spacing afdwingen */
#accountCard.is-editing .dash-card__row {
    /* laat de row-grid staan voor icon/label/value, maar geef extra padding */
    padding: 6px 0;
    align-items: start; /* zodat multi-line inputs/labels mooi uitlijnen */
}

    #accountCard.is-editing .dash-card__row .icon,
    #accountCard.is-editing .dash-card__row .label {
        align-self: center;
    }

/* het HR’tje kan dan iets meer lucht krijgen */
#accountCard.is-editing hr {
    margin: 10px 0;
    opacity: .18;
}

.card-header-with-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    display: inline-block;
    position: relative;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .35), inset 0 2px 3px rgba(255, 255, 255, .22), 0 2px 6px rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 255, 255, .18);
}

    .status-dot::before {
        content: "";
        position: absolute;
        top: 2px;
        left: 3px;
        width: 6px;
        height: 6px;
        border-radius: 999px;
        background: rgba(255,255,255,.55);
        opacity: .75;
    }

.status-dot--active {
    background: radial-gradient(circle at 28% 28%, rgba(255,255,255,.65), rgba(255,255,255,0) 42%), radial-gradient(circle at 50% 75%, #4ADE80, /* green-400 */
    #16A34A 70%); /* green-600 */
}

.status-dot--inactive {
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), rgba(255,255,255,0) 45%), radial-gradient(circle at 50% 70%, #FB7185, #DC2626 70%);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 9999;
}

.modal {
    width: min(520px, 100%);
    border-radius: 16px;
    /* ✅ zelfde vibe als dash-card */
    background: var(--color-secondary);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
    color: inherit;
    overflow: hidden;
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

    .modal__header h3 {
        margin: 0;
        font-size: 1.05rem;
    }

.modal__body {
    padding: 14px;
}

.modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid rgba(255,255,255,.10);
}

.value-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.inline-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    line-height: 1;
}

.dash-card__row--small .label,
.dash-card__row--small .icon,
.dash-card__row--small .value {
    align-self: center;
    line-height: 1;
}

.icon-btn--ghost svg {
    color: var(--color-text-secondary);
}

.member-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

.member-info {
    min-width: 0;
}

.member-meta {
    opacity: .75;
    font-size: .9em;
}

.member-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-role {
    min-width: 140px;
}

.divider-soft {
    opacity: .15;
    margin: 14px 0;
}

.account-actions--mt {
    margin-top: 14px;
}

.dash-card--mt12 {
    margin-top: 12px;
}

.is-fullwidth {
    width: 100%;
}

.stack--mt10 {
    margin-top: 10px;
}

.stack--mt12 {
    margin-top: 12px;
}

.stack--mt16 {
    margin-top: 16px;
}

.hh-card {
    padding: 10px;
    border-radius: 12px;
}

.hh-card__row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.hh-card__title {
    font-weight: 600;
}

.hh-card__sub {
    opacity: .75;
    font-size: .9em;
}

.hh-card__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.co-card {
    padding: 10px;
    border-radius: 12px;
}

.co-card__sublines {
    opacity: .75;
    font-size: .9em;
    line-height: 1.25;
}

.co-card__meta {
    opacity: .75;
    font-size: .9em;
}

.hint-text {
    opacity: .7;
    font-size: .85em;
    margin-top: 6px;
}


