:root {
    --pink-light: rgba(219, 39, 119, 0.1);
    --gray-light: #f3f4f6;
    --gray-text: #6b7280;
}

/* ── Zoekbalk ── */
.search_container {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
}

.search_form {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    height: 36px;
    background: #fff;
    border: 1.5px solid #dde3ed;
    border-radius: 999px;
    transition: border-color 0.15s, box-shadow 0.15s;
    overflow: hidden;
}

.search_form:focus-within {
    border-color: #001b5e;
    box-shadow: 0 0 0 3px rgba(0,27,94,0.08);
    background: #fff;
}

.search_input {
    width: 100%;
    padding: 0.45rem 2.5rem 0.45rem 1rem;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: #1f2937;
    outline: none !important;
    line-height: 1.4;
}

.search_input::placeholder {
    color: #94a3b8;
}

.search_button {
    position: absolute;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.15s;
}

.search_button:hover { color: #001b5e !important; }
.search_button .material-symbols-outlined { font-size: 1.1rem; }

.header_container {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.header_filters {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
}

/* Verwijder losse margins die de gap verstoren */
.header_filters .btn { margin-right: 0 !important; }
.header_filters .search_container { margin-right: 0 !important; }
.header_filters .filter_form { margin-right: 0 !important; }

.filter_form{
    min-width: 150px;
    margin-right: 10px;
}

.pink_select {
    background-color: #fff;
    font-weight: 500;
    font-size: 0.875rem;
    color: #1e293b;
    height: 36px;
    padding: 0 2.2rem 0 1rem;
    border: 1.5px solid #dde3ed;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    min-width: 140px;
    width: auto;
}

.pink_select:focus {
    border-color: #001b5e;
    box-shadow: 0 0 0 3px rgba(0,27,94,0.08);
}

.pink_select option {
    background-color: #ffffff;
    color: #1f2937;
}

/* Header */

.header2 {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1;
    padding-bottom: 15px;
    flex-wrap: nowrap;
}

.dashboard_title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    line-height: 1.25;
    color: var(--primary);
}

/* Table styling */
.table_container {
    width: 100%;
    padding: 0;
}

.table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
}

.table_inner {
    display: grid;
    width: 100%;
    min-width: var(--min-breedte, 0px);
    grid-template-columns: var(--kolommen, repeat(auto-fit, minmax(120px, 1fr)));
}

.table_head,
.table_row {
    display: contents;
}

.table_head > div,
.table_row > div {
    padding: 22px 24px;
    display: flex;
    align-items: center;
}

.table_head > div {
    background: #f2f2f2;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: sticky;
    top: 0;
}

.table_body {
    display: contents;
}

.table_row > div {
    background: #ffffff;
    border-bottom: 1px solid #f2f2f2;
    transition: background .2s ease;
}

.table_row:nth-child(odd) > div {
    background: #f8f8f8;
}

.table_row:hover > div {
    background: #fdf2f8;
}

.table_row--klikbaar > div {
    cursor: pointer;
}
.table_row--klikbaar > div:last-child {
    cursor: default;
}

.table_actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 14px 12px;
    background: inherit;
    justify-content: flex-start;
    white-space: nowrap;
}

/* Actie-knoppen in tabelrijen */
.table_action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.table_action:hover { background: #f1f5f9; color: var(--primary, #001b5e); }
.table_action--verwijder:hover { background: #fef2f2; color: #dc2626; }
.table_action .material-symbols-outlined { font-size: 1.1rem; }

/* Naam-cel met avatar */
.table_naam_cel {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.table_avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--primary, #001b5e);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}
.table_naam_cel strong { font-weight: 600; color: #1e293b; }
.table_naam_cel span   { font-size: 0.8rem; color: #64748b; display: block; }

.table_row--link {
    display: contents;
    text-decoration: none;
    cursor: pointer;
}
.table_row--link > div { cursor: pointer; }

.table_leeg {
    padding: 2rem 24px;
    color: #94a3b8;
    font-size: 0.9rem;
    grid-column: 1 / -1;
}
