/* ── RESET & TOKENS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg:        #f0f4f8;
    --surface:   #ffffff;
    --surface2:  #f7f9fc;
    --border:    #e2e8f0;
    --text:      #1a2332;
    --muted:     #64748b;
    --muted2:    #94a3b8;

    --blue-dk:   #006f99;
    --blue-md:   #00a8d4;
    --blue-lt:   #3ecfff;
    --teal:      #00c4b4;

    --grad: linear-gradient(135deg, #006f99, #00a8d4, #3ecfff);
    --grad-soft: linear-gradient(135deg, #e8f7fb, #f0fbfd);

    --koud:   #94a3b8;
    --warm:   #f59e0b;
    --heet:   #ef4444;
    --klant:  #10b981;
    --verloren: #6b7280;

    --shadow-sm: 0 1px 3px rgba(0,111,153,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,111,153,0.10), 0 2px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 12px 40px rgba(0,111,153,0.14), 0 4px 12px rgba(0,0,0,0.06);

    --radius: 12px;
    --radius-sm: 7px;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
}

h1,h2,h3,h4,h5 { font-family: 'Roboto', sans-serif; }

/* ── LOGIN ── */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #003d5c 0%, #006f99 40%, #00a8d4 70%, #3ecfff 100%);
    position: relative;
    overflow: hidden;
}
.login-wrap::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    top: -200px; right: -200px;
}
.login-wrap::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    bottom: -150px; left: -100px;
}
.login-box {
    background: white;
    border-radius: 20px;
    padding: 48px 44px;
    width: 380px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}
.login-logo {
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}
.login-sub { color: var(--muted); font-size: 13px; margin-bottom: 32px; }
.login-err { background: #fef2f2; color: #dc2626; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }

/* ── LAYOUT ── */
.app { display: flex; min-height: 100vh; }

.sidebar {
    width: 240px;
    background: var(--text);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
}
.sidebar-logo {
    padding: 28px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo-text {
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sidebar-logo-sub { color: rgba(255,255,255,0.35); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 1px; }

.nav { padding: 16px 12px; flex: 1; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s;
    margin-bottom: 2px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); }
.nav-item.active { background: rgba(62,207,255,0.15); color: #3ecfff; }
.nav-icon { width: 18px; height: 18px; opacity: 0.8; flex-shrink: 0; }
.nav-badge { margin-left: auto; background: #ef4444; color: white; border-radius: 20px; font-size: 10px; font-weight: 700; padding: 1px 7px; }

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── MAIN ── */
.main { flex: 1; overflow-x: hidden; }

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar-title { font-family: 'Roboto', sans-serif; font-size: 20px; font-weight: 700; flex: 1; }
.page { display: none; }
.page.active { display: block; }
.page-inner { padding: 28px; }

/* ── COMPONENTS ── */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600; font-family: 'Roboto', sans-serif;
    cursor: pointer; border: none; transition: all 0.15s; text-decoration: none;
}
.btn-primary { background: #3ecfff; color: white; box-shadow: 0 2px 8px rgba(62,207,255,0.35); }
.btn-primary:hover { background: #0d2d49; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(13,45,73,0.35); }
.btn-ghost { background: none; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface2); color: var(--text); }
.btn-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.btn-danger:hover { background: #dc2626; color: white; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }

.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.card-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.card-title { font-family: 'Roboto', sans-serif; font-size: 15px; font-weight: 700; flex: 1; }
.card-body { padding: 22px; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.form-control {
    width: 100%; padding: 10px 13px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-family: 'Roboto', sans-serif; font-size: 14px; color: var(--text);
    background: var(--surface); transition: border-color 0.15s;
    outline: none;
}
.form-control:focus { border-color: var(--blue-md); box-shadow: 0 0 0 3px rgba(0,168,212,0.12); }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { appearance: none; cursor: pointer; 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='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-row { display: grid; gap: 12px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── TAGS (lead status) ── */
.tag {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.tag-koud   { background: rgba(148,163,184,0.15); color: var(--koud); }
.tag-warm   { background: rgba(245,158,11,0.12);  color: var(--warm); }
.tag-heet   { background: rgba(239,68,68,0.12);   color: var(--heet); }
.tag-klant  { background: rgba(16,185,129,0.12);  color: var(--klant); }
.tag-verloren { background: rgba(107,114,128,0.12); color: var(--verloren); }

.tag-fase-oriëntatie   { background: #e0f2fe; color: #0369a1; }
.tag-fase-offerte      { background: #fef3c7; color: #b45309; }
.tag-fase-onderhandeling { background: #fce7f3; color: #9d174d; }
.tag-fase-gewonnen     { background: #dcfce7; color: #166534; }
.tag-fase-verloren     { background: #f1f5f9; color: #475569; }

.tag-type-notitie     { background: #f1f5f9; color: #475569; }
.tag-type-gesprek     { background: #e0f2fe; color: #0369a1; }
.tag-type-email       { background: #fef3c7; color: #b45309; }
.tag-type-meeting     { background: #f3e8ff; color: #7c3aed; }
.tag-type-telefonisch { background: #dcfce7; color: #166534; }

/* ── STAT CARDS ── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
    padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.stat-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; }
.stat-val { font-family: 'Roboto', sans-serif; font-size: 32px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-sub { font-size: 12px; color: var(--muted2); margin-top: 4px; }
.stat-icon { float: right; margin-top: -4px; opacity: 0.12; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { padding: 10px 16px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.1s; cursor: pointer; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface2); }
td { padding: 12px 16px; font-size: 13.5px; }
.td-main { font-weight: 600; color: var(--text); }
.td-sub { color: var(--muted); font-size: 12px; margin-top: 1px; }

/* ── CONTACT CARD LIST ── */
.contacts-grid { display: grid; gap: 12px; width: 100%; }
.contact-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px 20px; display: flex; align-items: center; gap: 14px;
    cursor: pointer; transition: all 0.15s; box-shadow: var(--shadow-sm);
    min-width: 0; max-width: 100%; box-sizing: border-box;
}
.contact-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-md); transform: translateY(-1px); }
.avatar {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: var(--grad); display: flex; align-items: center; justify-content: center;
    color: white; font-family: 'Roboto', sans-serif; font-size: 16px; font-weight: 700;
}
.contact-info { flex: 1; min-width: 0; }
.contact-name { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-meta { color: var(--muted); font-size: 12px; margin-top: 1px; }
.contact-actions { display: flex; gap: 6px; opacity: 0; transition: opacity 0.15s; }
.contact-card:hover .contact-actions { opacity: 1; }

/* ── MODAL ── */
.modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(15,25,40,0.55);
    z-index: 1000; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg);
    width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
    animation: slideUp 0.2s ease;
}
.modal-lg { max-width: 760px; }
.modal-header { padding: 22px 24px 0; display: flex; align-items: flex-start; gap: 12px; }
.modal-title { font-family: 'Roboto', sans-serif; font-size: 18px; font-weight: 700; flex: 1; padding-top: 2px; }
.modal-body { padding: 20px 24px; touch-action: manipulation; }
.modal-footer { touch-action: manipulation; }
.modal-footer { padding: 0 24px 22px; display: flex; gap: 8px; justify-content: flex-end; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--muted); padding: 4px; border-radius: 6px; }
.modal-close:hover { background: var(--surface2); color: var(--text); }

/* ── DETAIL ── */
.detail-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.detail-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; color: white; font-family: 'Roboto', sans-serif; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.detail-name { font-family: 'Roboto', sans-serif; font-size: 24px; font-weight: 800; }
.detail-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab { padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.15s; }
.tab.active { color: var(--blue-md); border-color: var(--blue-md); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── TIMELINE ── */
.timeline { position: relative; }
.timeline-item { display: flex; gap: 14px; margin-bottom: 16px; }
.timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-md); flex-shrink: 0; margin-top: 5px; }
.timeline-content { flex: 1; background: var(--surface2); border-radius: var(--radius-sm); padding: 12px 14px; border: 1px solid var(--border); }
.timeline-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.timeline-date { font-size: 11px; color: var(--muted2); margin-left: auto; white-space: nowrap; }

/* ── PIPELINE ── */
.pipeline-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 24px; }
.pipeline-col { background: var(--surface2); border-radius: var(--radius); padding: 14px; border: 1px solid var(--border); }
.pipeline-col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 12px; }
.deal-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 8px; cursor: pointer; transition: all 0.15s; box-shadow: var(--shadow-sm); }
.deal-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-md); }
.deal-title { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.deal-contact { font-size: 11px; color: var(--muted); }
.deal-waarde { font-family: 'Roboto', sans-serif; font-size: 15px; font-weight: 700; color: var(--blue-dk); margin-top: 8px; }

/* ── TAKEN ── */
.taak-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.taak-item:last-child { border-bottom: none; }
.taak-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; margin-top: 1px; cursor: pointer; transition: all 0.15s; display: flex; align-items: center; justify-content: center; }
.taak-check:hover { border-color: var(--blue-md); background: rgba(0,168,212,0.08); }
.taak-content { flex: 1; }
.taak-title { font-weight: 600; font-size: 13.5px; }
.taak-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.prio-hoog   { color: #ef4444; font-weight: 700; }
.prio-normaal { color: var(--muted); }
.prio-laag   { color: var(--muted2); }
.deadline-verstreken { color: #ef4444; font-weight: 600; }

/* ── SEARCH ── */
.search-wrap { position: relative; }
.search-wrap input { padding-left: 36px; }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted2); pointer-events: none; }

/* ── EMPTY ── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.4; }
.empty-title { font-family: 'Roboto', sans-serif; font-size: 16px; color: var(--text); margin-bottom: 6px; }

/* ── LOADER ── */
.loader { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(0,168,212,0.2); border-top-color: var(--blue-md); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── DIVIDER ── */
.section-title { font-family: 'Roboto', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.text-muted { color: var(--muted); }
.text-right { text-align: right; }

/* ── KANBAN CARDS ── */
.kanban-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.kanban-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-md); transform: translateY(-1px); }

/* ── PRODUCT CHIPS ── */
.prod-chip-selected { background: rgba(0,168,212,0.12) !important; border-color: var(--blue-md) !important; color: var(--blue-dk) !important; }

/* ── FILTER BAR ── */
.filter-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filter-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; color: var(--muted); }
.filter-btn.active { background: var(--blue-md); border-color: var(--blue-md); color: white; }
.filter-btn:hover:not(.active) { border-color: var(--blue-md); color: var(--blue-md); }

/* ── HERINNERINGEN BLOK ── */
.herin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.herin-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.herin-header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.herin-title { font-size: 13px; font-weight: 700; flex: 1; }
.herin-badge { background: #ef4444; color: white; border-radius: 20px; font-size: 10px; font-weight: 700; padding: 1px 7px; }
.herin-list { padding: 8px 0; }
.herin-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 18px; border-bottom: 1px solid var(--border); transition: background 0.1s; }
.herin-item:last-child { border-bottom: none; }
.herin-item:hover { background: var(--surface2); }
.herin-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.herin-dot-red { background: #ef4444; }
.herin-dot-orange { background: #f59e0b; }
.herin-dot-blue { background: var(--blue-md); }
.herin-dot-gray { background: var(--muted2); }
.herin-text { flex: 1; min-width: 0; }
.herin-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.herin-meta { font-size: 11px; color: var(--muted); margin-top: 1px; }
.herin-empty { padding: 20px 18px; color: var(--muted); font-size: 13px; text-align: center; }

/* ── AGENDA ── */
.agenda-iframe {
    width: 100%;
    height: 520px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    background: var(--surface);
}

/* ── KALENDER ── */
.cal-topbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.cal-month-label {
    font-family: 'Roboto', sans-serif; font-size: 18px; font-weight: 700;
    min-width: 160px; text-align: center;
}
.cal-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow-x: auto; overflow-y: hidden;
}
.cal-days-header {
    display: grid; grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid var(--border); min-width: 490px;
}
.cal-days-header > div {
    padding: 10px 0; text-align: center;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--muted);
}
.cal-weekend { color: var(--muted2) !important; }
.cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); min-width: 490px;
}
.cal-day {
    min-height: 100px; border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border); padding: 6px;
    cursor: pointer; transition: background 0.1s;
    position: relative;
}
.cal-day:nth-child(7n) { border-right: none; }
.cal-day:hover { background: var(--surface2); }
.cal-day.other-month { background: var(--bg); }
.cal-day.other-month .cal-day-num { color: var(--muted2); }
.cal-day.today { background: rgba(62,207,255,0.06); }
.cal-day.today .cal-day-num {
    background: #3ecfff; color: white;
    width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.cal-day-num {
    font-size: 12px; font-weight: 600; color: var(--text);
    margin-bottom: 4px; width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
}
.cal-event {
    font-size: 11px; font-weight: 600; border-radius: 4px;
    padding: 2px 6px; margin-bottom: 2px; cursor: pointer;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: white; transition: opacity 0.1s;
}
.cal-event:hover { opacity: 0.85; }
.cal-more { font-size: 10px; color: var(--muted); padding: 1px 4px; cursor: pointer; }

.cal-event-gcal {
    background: transparent !important;
    border: 1px solid #4285f4;
    color: #4285f4 !important;
    display: flex; align-items: center; gap: 4px;
}
.cal-event-gcal:hover { background: rgba(66,133,244,0.08) !important; }
.gcal-dot {
    font-size: 9px; font-weight: 700; flex-shrink: 0;
    background: #4285f4; color: white;
    border-radius: 3px; padding: 0 3px; line-height: 14px;
}

.cal-event-taak {
    background: white !important;
    border: 1.5px solid #f59e0b;
    color: #92400e !important;
    display: flex; align-items: center; gap: 3px;
}
.cal-event-taak:hover { background: rgba(245,158,11,0.1) !important; }
.taak-dot {
    font-size: 9px; font-weight: 700; flex-shrink: 0;
    background: #f59e0b; color: white;
    border-radius: 3px; padding: 0 3px; line-height: 14px;
}
.contact-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(0,168,212,0.1); border: 1px solid rgba(0,168,212,0.3);
    border-radius: 20px; padding: 3px 10px 3px 12px;
    font-size: 12px; font-weight: 500; color: var(--blue-dk);
}
.contact-chip button {
    background: none; border: none; cursor: pointer;
    color: var(--muted); font-size: 15px; line-height: 1;
    padding: 0; display: flex; align-items: center;
}
.contact-chip button:hover { color: var(--text); }

@media (max-width: 640px) {
    .cal-topbar { gap: 6px; }
    .cal-month-label { font-size: 14px; min-width: 110px; }
    .cal-day { min-height: 56px; padding: 3px 2px; }
    .cal-day-num { font-size: 10px; width: 18px; height: 18px; }
    .cal-days-header > div { font-size: 9px; padding: 6px 0; letter-spacing: 0; }
    .cal-event { font-size: 0 !important; padding: 3px; border-radius: 2px; margin-bottom: 1px; }
    .cal-event-gcal { font-size: 0 !important; }
    .cal-event-taak { font-size: 0 !important; }
    .gcal-dot, .taak-dot { display: none; }
    .cal-more { font-size: 8px; }
}

.kleur-dot {
    display: block; width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid transparent; transition: border-color 0.15s;
}
input[name="afspraak-kleur"]:checked + .kleur-dot {
    border-color: var(--text);
    box-shadow: 0 0 0 2px white inset;
}

/* ── HAMBURGER & MOBIEL MENU ── */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}
.hamburger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.25s;
    transform-origin: center;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,25,40,0.5);
    z-index: 99;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hamburger-btn { display: flex; }

    .sidebar {
        position: fixed;
        top: 0; left: 0;
        height: 100vh;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .sidebar.open { transform: translateX(0); }

    .topbar { padding: 12px 16px; }
    .page-inner { padding: 16px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .herin-grid { grid-template-columns: 1fr; }
    .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
    .pipeline-grid { grid-template-columns: 1fr; }
    .agenda-iframe { height: calc(100vh - 160px); }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .modal { max-width: calc(100vw - 32px); }
}
