/* ============================================================
   OffRio 2040 — Master Stylesheet · assets/offrio.css
   Pagina's: index.php · offerte.php · velden.php · auth pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

/* ============================================================
   VARIABELEN
   ============================================================ */
:root {
    --groen:       #0f3d2e;
    --marine:      #0f3d2e;
    --groen-mid:   #1a5c44;
    --marine-mid:  #1a5c44;
    --groen-licht: rgba(15,61,46,.08);
    --goud:        #c2a164;
    --goud-dim:    rgba(194,161,100,.13);
    --goud-rand:   rgba(194,161,100,.22);
    --goud-donker: #7a5c2a;
    --goud-hex:    #d4b87a;
    --blauw:       #2b6cb0;
    --blauw-licht: rgba(99,179,237,.13);
    --oranje:      #b7791f;
    --oranje-licht:rgba(251,191,36,.13);
    --rood:        #c53030;
    --rood-licht:  rgba(252,129,129,.13);
    --succes:      #22543d;
    --succes-licht:rgba(72,187,120,.13);
    --bg:          #f4f1eb;
    --pagina-bg:   #f4f1eb;
    --kaart-bg:    #ffffff;
    --wit:         #ffffff;
    --tekst:       #1a1a1a;
    --tekst-zacht: #6b6560;
    --rand:        #e3ddd4;
    --font-display:'Syne', sans-serif;
    --font-body:   'DM Sans', sans-serif;
    --shadow:      0 1px 3px rgba(15,61,46,.06), 0 2px 8px rgba(15,61,46,.04);
    --shadow-lg:   0 4px 16px rgba(15,61,46,.10), 0 1px 3px rgba(15,61,46,.06);
    --shadow-goud: 0 4px 20px rgba(194,161,100,.25);
    --r-sm:  8px;
    --r-md:  12px;
    --r-lg:  16px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }

body {
    font-family: var(--font-body);
    background: var(--pagina-bg);
    color: var(--tekst);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
}

/* ============================================================
   AUTH PAGINA — login.php · registreer.php · betalen.php
   ============================================================ */
body.auth-page {
    background: var(--groen);
    background-image:
        radial-gradient(ellipse at 15% 15%, rgba(194,161,100,.07) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 85%, rgba(15,61,46,.35) 0%, transparent 55%);
    display: flex; align-items: center; justify-content: center; padding: 24px;
}

.auth-box {
    background: var(--wit); border-radius: 20px; padding: 44px 40px;
    width: 100%; max-width: 460px;
    box-shadow: 0 32px 64px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.06);
}

.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }

.auth-logo-mark {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--groen), var(--groen-mid));
    border-radius: 9px; display: flex; align-items: center;
    justify-content: center; font-size: 16px; flex-shrink: 0;
}

.auth-logo-naam { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--groen); letter-spacing: -.3px; }
.auth-logo-naam span { color: var(--goud); }
.auth-logo-badge { font-size: 10px; font-weight: 600; color: var(--goud-donker); background: var(--goud-dim); border: 1px solid var(--goud-rand); padding: 2px 8px; border-radius: 100px; }

.auth-box h1 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--groen); letter-spacing: -.3px; margin-bottom: 5px; line-height: 1.2; }
.auth-box .subtitle { font-size: 14px; color: var(--tekst-zacht); margin-bottom: 28px; line-height: 1.5; }

.auth-box .sectie { font-size: 10.5px; font-weight: 700; color: var(--tekst-zacht); letter-spacing: 1.4px; text-transform: uppercase; margin: 22px 0 14px; display: flex; align-items: center; gap: 10px; }
.auth-box .sectie::after { content: ''; flex: 1; height: 1px; background: var(--rand); }

.auth-box label { display: block; font-size: 12.5px; font-weight: 600; color: var(--tekst-zacht); margin-bottom: 6px; }

.auth-box input, .auth-box select {
    width: 100%; padding: 12px 14px; font-family: var(--font-body); font-size: 14px;
    color: var(--tekst); background: var(--bg); border: 1.5px solid var(--rand);
    border-radius: var(--r-sm); margin-bottom: 14px;
    transition: border-color .15s, box-shadow .15s, background .15s; -webkit-appearance: none;
}

.auth-box input::placeholder { color: #b5b0aa; font-weight: 400; }
.auth-box input:focus, .auth-box select:focus { outline: none; background: var(--wit); border-color: var(--goud); box-shadow: 0 0 0 3px var(--goud-dim); }
.auth-box .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.auth-box .btn { width: 100%; padding: 13px; background: linear-gradient(135deg, var(--groen) 0%, var(--groen-mid) 100%); color: var(--wit); font-family: var(--font-body); font-size: 15px; font-weight: 600; border: none; border-radius: 100px; cursor: pointer; margin-top: 6px; letter-spacing: .2px; transition: transform .15s, box-shadow .15s, filter .15s; text-align: center; text-decoration: none; display: block; }
.auth-box .btn:hover { transform: translateY(-2px); filter: brightness(1.12); box-shadow: 0 8px 24px rgba(15,61,46,.35); }
.auth-box .btn.goud { background: linear-gradient(135deg, var(--goud) 0%, var(--goud-donker) 100%); color: var(--groen); }

.auth-box .fout { display: flex; align-items: flex-start; gap: 9px; background: var(--rood-licht); border: 1px solid rgba(197,48,48,.2); color: var(--rood); padding: 11px 14px; border-radius: var(--r-sm); font-size: 13px; line-height: 1.5; margin-bottom: 18px; }
.auth-box .info { display: flex; align-items: flex-start; gap: 9px; background: var(--oranje-licht); border: 1px solid rgba(183,121,31,.2); color: var(--oranje); padding: 11px 14px; border-radius: var(--r-sm); font-size: 13px; line-height: 1.55; margin: 2px 0 16px; }
.auth-box .succes { background: var(--succes-licht); border: 1.5px solid rgba(34,84,61,.2); border-radius: var(--r-lg); padding: 28px 20px; text-align: center; }
.auth-box .succes .succes-icon { font-size: 44px; margin-bottom: 12px; display: block; }
.auth-box .succes h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--groen); margin-bottom: 8px; }
.auth-box .succes p { font-size: 13.5px; color: var(--groen-mid); line-height: 1.6; margin: 3px 0; }

.auth-box .link, .link { color: var(--goud-donker); text-decoration: none; font-size: 13px; font-weight: 600; transition: color .15s; }
.auth-box .link:hover, .link:hover { color: var(--groen); text-decoration: underline; }
.auth-box .auth-footer { margin-top: 22px; text-align: center; font-size: 13px; color: var(--tekst-zacht); }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    position: sticky; top: 0; z-index: 100; background: var(--groen);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px; height: 58px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 2px 16px rgba(0,0,0,.15);
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; background: var(--goud); border-radius: 7px; display: grid; place-items: center; font-size: 14px; }
.logo-naam { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--wit); letter-spacing: -.3px; }
.logo-naam span { color: var(--goud); margin-left: 1px; }
.bedrijfsnaam { font-size: 12px; color: rgba(255,255,255,.4); margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.12); font-weight: 400; }
.topbar-acties, .topbar-right { display: flex; align-items: center; gap: 8px; }

.topbar-btn { font-family: var(--font-body); font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 7px; text-decoration: none; transition: all .18s; color: rgba(255,255,255,.7); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.topbar-btn:hover { background: rgba(255,255,255,.13); color: var(--wit); }
.topbar-btn.actief { background: rgba(194,161,100,.15); color: var(--goud); border-color: rgba(194,161,100,.25); }
.topbar-btn.velden { background: rgba(194,161,100,.13); color: var(--goud); border-color: rgba(194,161,100,.2); }
.topbar-btn.velden:hover { background: rgba(194,161,100,.22); color: var(--goud-hex); }
.topbar-btn.logout { color: rgba(194,161,100,.8); background: rgba(194,161,100,.07); border-color: rgba(194,161,100,.18); }
.topbar-btn.logout:hover { background: rgba(194,161,100,.14); color: var(--goud); }

/* ============================================================
   HERO
   ============================================================ */
.hero { background: var(--groen); padding: 32px 0 36px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 100% at 88% 50%, rgba(194,161,100,.11) 0%, transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 28px; background: var(--pagina-bg); border-radius: 24px 24px 0 0; }
.hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.greeting-label { font-size: 12.5px; color: rgba(255,255,255,.4); font-weight: 400; letter-spacing: .2px; margin-bottom: 6px; }
.greeting-naam { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--wit); letter-spacing: -.4px; line-height: 1.1; }
.greeting-naam span { color: var(--goud); }
.greeting-sub { font-size: 13px; color: rgba(255,255,255,.4); margin-top: 6px; font-weight: 300; }

.hero-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--goud); margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.hero-tag::before { content: ''; width: 18px; height: 2px; background: var(--goud); border-radius: 2px; }
.hero-titel { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--wit); letter-spacing: -.4px; line-height: 1.1; }
.hero-sub { font-size: 13px; color: rgba(255,255,255,.4); margin-top: 6px; font-weight: 300; }

.hero-stat { display: flex; align-items: center; gap: 20px; }
.hero-stat-item { text-align: center; }
.hero-stat-getal { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--goud); line-height: 1; }
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; font-weight: 500; }
.hero-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.1); }

.urgent-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.25); color: #fbbf24; padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.urgent-dot { width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }

/* ============================================================
   PAGE WRAPPERS
   ============================================================ */
.page    { max-width: 1100px; margin: 0 auto; padding: 32px 24px 64px; }
.content { max-width: 1100px; margin: 0 auto; padding: 28px 32px 60px; }

/* ============================================================
   STATS GRID
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }

.stat-kaart, .stat-card {
    background: var(--kaart-bg); border-radius: var(--r-lg); border: 1px solid var(--rand);
    padding: 22px 22px 18px; box-shadow: var(--shadow);
    position: relative; overflow: hidden; transition: box-shadow .2s, transform .2s;
}

.stat-kaart:hover, .stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.stat-kaart::before, .stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.stat-kaart.totaal::before, .stat-card.totaal::before { background: var(--goud); }
.stat-kaart.leads::before,  .stat-card.nieuw::before  { background: #63b3ed; }
.stat-kaart.goed::before,   .stat-card.goed::before   { background: #68d391; }
.stat-kaart.omzet::before,  .stat-card.omzet::before  { background: #48bb78; }

.stat-icoon, .stat-icon { font-size: 18px; margin-bottom: 12px; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--goud-dim); }
.stat-waarde { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--groen); letter-spacing: -.5px; line-height: 1; margin-bottom: 6px; }
.stat-card.omzet .stat-waarde { font-size: 22px; }
.stat-label { font-size: 11.5px; color: var(--tekst-zacht); font-weight: 500; text-transform: uppercase; letter-spacing: .6px; }

/* ============================================================
   SECTIE HEADER
   ============================================================ */
.sectie-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sectie-titel { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--groen); letter-spacing: -.2px; }
.sectie-teller { font-size: 12px; color: var(--tekst-zacht); background: var(--goud-dim); padding: 4px 10px; border-radius: 999px; font-weight: 500; }

/* ============================================================
   KAARTEN (gedeeld)
   ============================================================ */
.kaart, .tabel-card, .tabel-kaart { background: var(--kaart-bg); border-radius: var(--r-lg); border: 1px solid var(--rand); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .2s; }
.kaart:hover, .tabel-card:hover { box-shadow: var(--shadow-lg); }
.kaart-header, .tabel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--rand); background: rgba(15,61,46,.025); }
.kaart-header-links { display: flex; align-items: center; gap: 10px; }
.kaart-icoon { width: 30px; height: 30px; background: var(--goud-dim); border-radius: 7px; display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.kaart-titel, .tabel-titel { font-family: var(--font-display); font-size: 13.5px; font-weight: 700; color: var(--groen); letter-spacing: -.1px; display: flex; align-items: center; gap: 8px; }
.kaart-body { padding: 20px 22px; }

/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-tabs { display: flex; gap: 4px; padding: 16px 20px 0; border-bottom: 1px solid var(--rand); overflow-x: auto; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.tab { padding: 9px 16px; font-size: 12.5px; font-weight: 600; color: var(--tekst-zacht); border-radius: 8px 8px 0 0; cursor: pointer; border: none; background: transparent; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s; font-family: var(--font-body); }
.tab:hover { color: var(--groen); }
.tab.actief { color: var(--groen); border-bottom-color: var(--goud); background: rgba(15,61,46,.03); }

/* ============================================================
   DESKTOP TABEL
   ============================================================ */
.tabel-desktop { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { background: rgba(15,61,46,.025); padding: 11px 16px; text-align: left; font-size: 10.5px; font-weight: 700; color: var(--tekst-zacht); text-transform: uppercase; letter-spacing: .7px; border-bottom: 1px solid var(--rand); white-space: nowrap; }
thead th:first-child { padding-left: 20px; }
thead th:last-child  { padding-right: 20px; }
tbody tr { transition: background .12s; cursor: pointer; }
tbody tr.verborgen { display: none; }
tbody tr:hover td  { background: rgba(15,61,46,.025); }
td { padding: 13px 16px; border-bottom: 1px solid var(--rand); font-size: 13.5px; vertical-align: middle; }
td:first-child { padding-left: 20px; }
td:last-child  { padding-right: 20px; }
tbody tr:last-child td { border-bottom: none; }

.offerte-link, .offerte-nr { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--groen); text-decoration: none; letter-spacing: -.1px; }
.offerte-link:hover, .offerte-nr:hover { text-decoration: underline; }
.klant-naam { font-weight: 600; color: var(--tekst); font-size: 13.5px; }
.klant-sub, .klant-meta { font-size: 11.5px; color: var(--tekst-zacht); margin-top: 2px; font-weight: 400; }
.bedrag { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--groen); }
.bedrag.leeg { font-family: var(--font-body); font-size: 12px; font-weight: 400; color: var(--tekst-zacht); }
.datum-cel, .datum { font-size: 12px; color: var(--tekst-zacht); }

.rij-actie { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--groen); background: var(--goud-dim); padding: 5px 12px; border-radius: 7px; text-decoration: none; border: 1px solid var(--goud-rand); transition: all .15s; white-space: nowrap; }
.rij-actie:hover { background: rgba(194,161,100,.25); transform: translateX(2px); }

/* ============================================================
   MOBIELE KAARTEN — vervangt tabel op ≤ 720px
   ============================================================ */
.mobiel-kaarten { display: none; flex-direction: column; }

.mobiel-kaart {
    display: flex; flex-direction: column; gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--rand);
    text-decoration: none;
    color: inherit;
    transition: background .12s;
    position: relative;
}

.mobiel-kaart:last-child { border-bottom: none; }
.mobiel-kaart:active { background: rgba(15,61,46,.03); }

/* gouden linkerbalk bij tap */
.mobiel-kaart::before {
    content: ''; position: absolute;
    left: 0; top: 14px; bottom: 14px;
    width: 3px; background: var(--goud);
    border-radius: 0 3px 3px 0;
    opacity: 0; transition: opacity .15s;
}

.mobiel-kaart:active::before { opacity: 1; }

.mobiel-kaart-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mobiel-kaart-links { flex: 1; min-width: 0; }

.mobiel-offerte-nr { font-family: var(--font-display); font-size: 11.5px; font-weight: 700; color: var(--tekst-zacht); letter-spacing: .5px; margin-bottom: 3px; text-transform: uppercase; }
.mobiel-klant-naam { font-size: 15px; font-weight: 600; color: var(--tekst); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobiel-klant-sub  { font-size: 12px; color: var(--tekst-zacht); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mobiel-kaart-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.mobiel-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--tekst-zacht); }
.mobiel-meta-item { display: flex; align-items: center; gap: 4px; }

.mobiel-bedrag { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--groen); white-space: nowrap; }
.mobiel-bedrag.leeg { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--tekst-zacht); }

/* ============================================================
   STATUS BADGES
   ============================================================ */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .3px; white-space: nowrap; }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge.nieuw, .badge.concept { background: var(--blauw-licht);  color: var(--blauw); }
.badge.in_behandeling         { background: var(--oranje-licht); color: var(--oranje); }
.badge.verstuurd              { background: var(--goud-dim);     color: var(--goud-donker); }
.badge.geopend                { background: var(--succes-licht); color: var(--succes); }
.badge.geaccepteerd, .badge.goedgekeurd { background: var(--succes-licht); color: var(--succes); }
.badge.afgewezen, .badge.afgekeurd      { background: var(--rood-licht);   color: var(--rood); }
.badge.verlopen               { background: rgba(160,160,160,.12); color: #718096; }
.badge.bekeken                { background: rgba(214,158,46,.12);  color: #975a16; }

.badge-klein    { font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; letter-spacing: .2px; }
.badge-verplicht{ background: var(--blauw-licht);  color: var(--blauw); }
.badge-actief   { background: var(--succes-licht); color: var(--succes); }
.badge-inactief { background: rgba(160,160,160,.12); color: #718096; }

/* ============================================================
   LEEG STATES
   ============================================================ */
.leeg-scherm, .leeg-state {
    padding: 56px 24px 64px; text-align: center;
    display: flex; flex-direction: column; align-items: center;
}

.leeg-illustratie { width: 80px; height: 80px; background: linear-gradient(135deg, var(--groen-licht), var(--goud-dim)); border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 36px; margin: 0 auto 22px; box-shadow: 0 8px 24px rgba(15,61,46,.1); }
.leeg-titel        { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--groen); margin-bottom: 8px; }
.leeg-omschrijving, .leeg-sub { font-size: 14px; color: var(--tekst-zacht); max-width: 360px; line-height: 1.65; margin-bottom: 24px; }

/* Widget code blok */
.widget-blok { background: var(--kaart-bg); border: 1px solid var(--rand); border-radius: var(--r-md); padding: 20px; margin: 0 auto; max-width: 520px; text-align: left; box-shadow: var(--shadow); }
.widget-blok-titel { font-size: 13px; font-weight: 700; color: var(--tekst); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.widget-code { background: #1a1a1a; color: #d4d4d4; padding: 14px; border-radius: var(--r-sm); font-size: 12px; font-family: 'Courier New', monospace; overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: 0; line-height: 1.6; }
.widget-kopieer-btn { margin-top: 10px; background: var(--groen); color: var(--wit); border: none; padding: 8px 16px; border-radius: var(--r-sm); cursor: pointer; font-weight: 600; font-size: 13px; font-family: var(--font-body); transition: all .18s; display: inline-flex; align-items: center; gap: 6px; }
.widget-kopieer-btn:hover { background: var(--groen-mid); }

.leeg-stappen { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.stap { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--rand); padding: 8px 14px; border-radius: var(--r-md); font-size: 12px; color: var(--tekst-zacht); }
.stap-nr { width: 20px; height: 20px; border-radius: 50%; background: var(--goud); color: var(--wit); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ============================================================
   ACTIE KNOPPEN (offerte detail)
   ============================================================ */
.actie-btn { font-family: var(--font-body); font-size: 13.5px; font-weight: 600; padding: 10px 22px; border-radius: 9px; border: none; cursor: pointer; transition: all .18s; display: inline-flex; align-items: center; gap: 7px; }
.actie-btn.behandeling { background: rgba(251,191,36,.15); color: #fbbf24; border: 1px solid rgba(251,191,36,.3); }
.actie-btn.behandeling:hover { background: rgba(251,191,36,.25); transform: translateY(-1px); }
.actie-btn.verstuur { background: var(--goud); color: var(--groen); box-shadow: var(--shadow-goud); }
.actie-btn.verstuur:hover { background: var(--goud-hex); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(194,161,100,.35); }
.actie-btn.akkoord { background: rgba(72,187,120,.15); color: #48bb78; border: 1px solid rgba(72,187,120,.3); }
.actie-btn.akkoord:hover { background: rgba(72,187,120,.25); transform: translateY(-1px); }
.actie-btn.afwijzen { background: rgba(252,129,129,.1); color: #fc8181; border: 1px solid rgba(252,129,129,.25); }
.actie-btn.afwijzen:hover { background: rgba(252,129,129,.2); transform: translateY(-1px); }

/* ============================================================
   OFFERTE DETAIL
   ============================================================ */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,.4); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--goud); }
.breadcrumb-sep { opacity: .35; }
.hero-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero-acties { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-acties form { margin: 0; }
.offerte-nummer { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--wit); letter-spacing: -.5px; line-height: 1; margin-bottom: 8px; }
.offerte-datum { font-size: 13px; color: rgba(255,255,255,.45); font-weight: 300; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; margin-top: 10px; }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.nieuw, .status-pill.concept { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.status-pill.in_behandeling              { background: rgba(251,191,36,.15); color: #fbbf24; }
.status-pill.verstuurd                   { background: rgba(99,179,237,.15); color: #63b3ed; }
.status-pill.geaccepteerd                { background: rgba(72,187,120,.15); color: #48bb78; }
.status-pill.afgewezen                   { background: rgba(252,129,129,.15); color: #fc8181; }

.stepper-wrap { background: var(--groen); border-top: 1px solid rgba(255,255,255,.07); }
.stepper { max-width: 1080px; margin: 0 auto; padding: 0 32px; display: flex; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 18px 8px; position: relative; gap: 6px; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 27px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: rgba(255,255,255,.1); }
.step.voltooid:not(:last-child)::after, .step.actief:not(:last-child)::after { background: linear-gradient(90deg, var(--goud), rgba(194,161,100,.2)); }
.step-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); background: transparent; display: flex; align-items: center; justify-content: center; font-size: 11px; color: rgba(255,255,255,.3); font-weight: 700; z-index: 1; transition: all .3s; }
.step.voltooid .step-dot { background: var(--goud); border-color: var(--goud); color: var(--groen); }
.step.actief   .step-dot { background: var(--groen); border-color: var(--goud); color: var(--goud); box-shadow: 0 0 0 4px rgba(194,161,100,.2); }
.step-label { font-size: 11px; font-weight: 500; color: rgba(255,255,255,.3); text-align: center; }
.step.voltooid .step-label { color: rgba(255,255,255,.6); }
.step.actief   .step-label { color: var(--goud); font-weight: 600; }

.info-rij { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rand); font-size: 13.5px; }
.info-rij:last-child { border-bottom: none; }
.info-icoon { font-size: 14px; flex-shrink: 0; width: 22px; text-align: center; opacity: .6; margin-top: 1px; }
.info-label { color: var(--tekst-zacht); font-size: 12px; font-weight: 500; min-width: 68px; margin-top: 2px; }
.info-waarde { color: var(--tekst); font-weight: 500; flex: 1; }
.bedrag-totaal { background: linear-gradient(135deg, var(--groen) 0%, var(--groen-mid) 100%); border-radius: var(--r-sm); padding: 16px 18px; margin-top: 14px; display: flex; align-items: center; justify-content: space-between; }
.bedrag-totaal-label { font-size: 12px; color: rgba(255,255,255,.55); font-weight: 500; letter-spacing: .3px; text-transform: uppercase; }
.bedrag-totaal-waarde { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--goud); letter-spacing: -.5px; }
.ontvanger-rij { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--rand); font-size: 13.5px; }
.ontvanger-rij:last-child { border-bottom: none; }
.ontvanger-email { color: var(--tekst); font-weight: 500; }
.badge-type { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; letter-spacing: .3px; text-transform: uppercase; }
.badge-type.hoofd { background: var(--goud-dim); color: #a07c3a; }
.badge-type.extra { background: rgba(15,61,46,.07); color: var(--groen-mid); }
.sectie-kop { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--goud); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.sectie-kop::after { content: ''; flex: 1; height: 1px; background: var(--goud-dim); }
.antwoord-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.antwoord-item { background: rgba(15,61,46,.03); border: 1px solid var(--rand); border-radius: var(--r-sm); padding: 10px 14px; }
.antwoord-label { font-size: 11px; color: var(--tekst-zacht); font-weight: 500; margin-bottom: 3px; }
.antwoord-waarde { font-size: 13.5px; font-weight: 500; color: var(--tekst); }
.log-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rand); }
.log-item:last-child { border-bottom: none; }
.log-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--goud); margin-top: 5px; flex-shrink: 0; }
.log-tijd { font-size: 12px; color: var(--tekst-zacht); white-space: nowrap; font-weight: 400; min-width: 105px; }
.log-bericht { font-size: 13.5px; color: var(--tekst); font-weight: 400; line-height: 1.5; }

/* ============================================================
   VELDEN PAGINA
   ============================================================ */
.sectie-wrapper { margin-bottom: 20px; }
.sectie-kop-naam { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--groen); letter-spacing: -.1px; }
.velden-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 14px; }
.veld-kaart { background: var(--kaart-bg); border: 1px solid var(--rand); border-radius: var(--r-sm); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; transition: box-shadow .18s, transform .18s; position: relative; overflow: hidden; }
.veld-kaart:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.veld-kaart.inactief { opacity: .55; }
.veld-kaart::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--goud); border-radius: 3px 0 0 3px; }
.veld-kaart.inactief::before { background: var(--rand); }
.veld-kaart-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.veld-type-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--goud-dim); color: #7a5c2a; white-space: nowrap; flex-shrink: 0; }
.veld-label-naam { font-size: 14px; font-weight: 600; color: var(--tekst); line-height: 1.3; }
.veld-kaart-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.veld-acties { display: flex; gap: 6px; align-items: center; }
.toggle-wrap { display: flex; align-items: center; }
.toggle-wrap form { display: contents; }
.toggle-btn { position: relative; width: 38px; height: 22px; border: none; background: none; cursor: pointer; padding: 0; flex-shrink: 0; }
.toggle-track { position: absolute; inset: 0; border-radius: 999px; background: #d4cfc8; transition: background .2s; }
.toggle-btn.aan .toggle-track { background: var(--groen-mid); }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: white; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .2s; }
.toggle-btn.aan .toggle-thumb { transform: translateX(16px); }
.bewerk-btn { font-family: var(--font-body); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: var(--r-sm); border: 1px solid var(--rand); background: var(--pagina-bg); color: var(--tekst-zacht); cursor: pointer; transition: all .15s; white-space: nowrap; }
.bewerk-btn:hover { background: var(--goud-dim); border-color: var(--goud-rand); color: var(--groen); }
.sectie-titel-rij { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rand); }
.sectie-titel-rij:last-child { border-bottom: none; }
.sectie-key-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--tekst-zacht); min-width: 72px; }
.sectie-select { flex: 1; font-family: var(--font-body); font-size: 13.5px; font-weight: 500; color: var(--tekst); background: var(--pagina-bg); border: 1px solid var(--rand); border-radius: var(--r-sm); padding: 8px 12px; cursor: pointer; transition: border-color .15s; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6560' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.sectie-select:focus { outline: none; border-color: var(--goud); box-shadow: 0 0 0 3px var(--goud-dim); }
.opslaan-btn { font-family: var(--font-body); font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: var(--r-sm); border: none; cursor: pointer; background: var(--groen); color: var(--wit); transition: all .18s; white-space: nowrap; }
.opslaan-btn:hover { background: var(--groen-mid); }
.bewerk-paneel { display: none; background: rgba(15,61,46,.03); border: 1px solid var(--rand); border-radius: var(--r-sm); padding: 16px; margin-top: -4px; margin-bottom: 12px; }
.bewerk-paneel.open { display: block; animation: slideDown .2s ease; }
.toevoeg-paneel { display: none; background: var(--kaart-bg); border: 1px solid var(--goud-rand); border-radius: var(--r-sm); padding: 20px; box-shadow: 0 4px 16px rgba(194,161,100,.12); }
.toevoeg-paneel.open { display: block; animation: slideDown .2s ease; }
.toevoeg-titel { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--groen); margin-bottom: 14px; }
.bewerk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.form-groep { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--tekst-zacht); }
.form-input, .form-select { font-family: var(--font-body); font-size: 13.5px; font-weight: 400; color: var(--tekst); background: var(--wit); border: 1px solid var(--rand); border-radius: var(--r-sm); padding: 9px 12px; transition: border-color .15s, box-shadow .15s; width: 100%; }
.form-input:focus, .form-select:focus { outline: none; border-color: var(--goud); box-shadow: 0 0 0 3px var(--goud-dim); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6560' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--tekst); cursor: pointer; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--groen); cursor: pointer; }
.form-acties { display: flex; gap: 8px; align-items: center; }
.sectie-leeg { padding: 24px; text-align: center; color: var(--tekst-zacht); font-size: 13px; border: 1px dashed var(--rand); border-radius: var(--r-sm); background: rgba(15,61,46,.015); margin-bottom: 12px; }

/* ============================================================
   KNOPPEN (gedeeld)
   ============================================================ */
.btn-primair, .btn-primary { font-family: var(--font-body); font-size: 13px; font-weight: 600; padding: 9px 20px; border-radius: var(--r-sm); border: none; cursor: pointer; background: var(--groen); color: var(--wit); transition: all .18s; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn-primair:hover, .btn-primary:hover { background: var(--groen-mid); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,61,46,.2); }
.btn-goud { font-family: var(--font-body); font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: var(--r-sm); border: 1px dashed var(--goud-rand); cursor: pointer; background: var(--goud-dim); color: var(--groen); transition: all .18s; display: inline-flex; align-items: center; gap: 7px; width: 100%; justify-content: center; }
.btn-goud:hover { background: rgba(194,161,100,.22); border-color: var(--goud); transform: translateY(-1px); }
.btn-ghost { font-family: var(--font-body); font-size: 13px; font-weight: 500; padding: 9px 16px; border-radius: var(--r-sm); border: 1px solid var(--rand); cursor: pointer; background: transparent; color: var(--tekst-zacht); transition: all .15s; display: inline-flex; align-items: center; gap: 5px; }
.btn-ghost:hover { background: var(--pagina-bg); color: var(--tekst); }
.btn-sm { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 8px; font-size: 11px; font-weight: 600; border: none; cursor: pointer; transition: all .12s; font-family: var(--font-body); }
.btn-sm:hover { transform: translateY(-1px); }
.btn-sm.uit  { background: var(--rood-licht);   color: var(--rood); }
.btn-sm.aan  { background: var(--succes-licht);  color: var(--succes); }
.btn-sm.edit { background: rgba(251,191,36,.13); color: var(--oranje); }

/* ============================================================
   FEEDBACK
   ============================================================ */
.feedback { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500; margin-bottom: 22px; background: var(--succes-licht); color: var(--succes); border: 1px solid rgba(72,187,120,.25); animation: fadeIn .3s ease; }
.feedback::before { content: '✓'; font-weight: 700; font-size: 14px; }
.feedback.success { border-left: 3px solid var(--succes); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    /* Layout */
    .topbar      { padding: 0 16px; height: 52px; }
    .bedrijfsnaam{ display: none; }
    .hero-inner  { padding: 0 16px; }
    .content     { padding: 16px 14px 48px; }
    .page        { padding: 16px 14px 48px; }

    /* Hero */
    .hero        { padding: 22px 0 28px; }
    .greeting-naam { font-size: 21px; }
    .greeting-sub  { display: none; }
    .urgent-badge  { font-size: 12px; padding: 8px 14px; }

    /* Stats */
    .stats-grid  { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
    .stat-waarde { font-size: 22px; }
    .stat-icoon, .stat-icon { width: 32px; height: 32px; font-size: 16px; }

    /* Tabel ↔ kaarten */
    .tabel-desktop  { display: none !important; }
    .filter-tabs    { display: none; }
    .mobiel-kaarten { display: flex !important; }

    /* Offerte detail */
    .antwoord-raster { grid-template-columns: 1fr; }
    .hero-meta  { flex-direction: column; gap: 14px; }
    .offerte-nummer { font-size: 22px; }
    .step-label { display: none; }
    .stepper    { padding: 0 16px; }

    /* Velden */
    .bewerk-grid { grid-template-columns: 1fr; }
    .velden-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .topbar-btn.actief { display: none; }
    .topbar-btn { padding: 6px 10px; font-size: 12px; }
}