/* ─────────────────────────────────────────────────────────────────────────────
   BrandMonks Portaal CSS
   Gebaseerd op het design systeem van de bestaande intakeformulieren.
───────────────────────────────────────────────────────────────────────────── */

:root {
    --primary:             #FF7B62;
    --primary-dark:        #e56a52;
    --primary-bg:          #FFF5F2;
    --text-dark:           #1F2937;
    --text-darker:         #111827;
    --text-grey:           #6B7280;
    --text-light:          #9CA3AF;
    --border:              #E5E7EB;
    --border-light:        #F3F4F6;
    --bg-dark:             #0f0f0f;
    --bg-public:           #0a0a0a;
    --bg-nav:              #141414;
    --bg-white:            #ffffff;
    --bg-grey:             #F9FAFB;
    --bg-page:             #faf9f6;
    --font:                'Inter', system-ui, -apple-system, sans-serif;
    --radius-sm:           6px;
    --radius-md:           10px;
    --radius-lg:           16px;
    --shadow-sm:           0 1px 3px rgba(0,0,0,.08);
    --shadow-md:           0 4px 12px rgba(0,0,0,.1);
    --btn-primary-bg:      var(--primary);
    --btn-primary-color:   #fff;
    --btn-secondary-bg:    #fff;
    --btn-secondary-color: var(--text-dark);
    --nav-width:           240px;
    --nav-collapsed-width: 60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.bm-portaal-body {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--bg-page);
    min-height: 100vh;
}
.bm-portaal-body a { color: var(--text-dark); text-decoration: none; }
.bm-portaal-body a:hover { text-decoration: underline; }
.bm-portaal-body .bm-btn-primary,
.bm-portaal-body .bm-btn-primary:hover,
.bm-portaal-body .bm-btn-sm,
.bm-portaal-body .bm-btn-sm:hover { color: #fff; text-decoration: none; }
.bm-portaal-body .bm-btn-primary:disabled { background: #D1D5DB; color: #9CA3AF; cursor: not-allowed; pointer-events: none; text-decoration: none; }
.bm-portaal-body .bm-btn-secondary:not(.bm-btn-sm),
.bm-portaal-body .bm-btn-secondary:not(.bm-btn-sm):hover { color: var(--text-dark); text-decoration: none; }

/* ── Portaal banner ──────────────────────────────────────────────────────── */
.bm-portaal-banner {
    background: var(--primary);
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    line-height: 1.4;
}

.bm-portaal-banner a { color: #fff; text-decoration: underline; }
.bm-portaal-banner a:hover { color: #fff; text-decoration: none; }

/* ── Layout: authenticeerde portaalpagina's ──────────────────────────────── */
.bm-portaal-layout {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar nav ─────────────────────────────────────────────────────────── */
.bm-nav {
    width: var(--nav-width);
    background: var(--bg-nav);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: width .25s ease, transform .25s ease;
}
.bm-nav-logo {
    padding: 28px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    min-height: 80px;
    display: flex;
    align-items: center;
}
.bm-nav-logo-link { display: flex; align-items: center; }
.bm-nav-logo img { height: 32px; transition: opacity .25s ease, max-width .25s ease; max-width: 160px; }
.bm-nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.bm-nav-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
    flex-shrink: 0;
}
.bm-nav-user-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bm-nav-user-name  { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-nav-user-company { font-size: 11px; color: var(--text-light); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-nav-menu {
    list-style: none !important;
    padding: 16px 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}
.bm-nav-menu li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}
.bm-nav-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,255,255,.7);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .15s;
    border-radius: 0;
}
.bm-nav-menu li a:hover,
.bm-nav-menu li.active a {
    color: #fff;
    background: rgba(255,255,255,.06);
}
.bm-nav-menu li.active a {
    color: var(--primary);
    background: rgba(255,123,98,.1);
}
.bm-nav-menu li.active a svg { stroke: var(--primary); }
.bm-nav-bottom {
    padding: 12px 20px 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex; flex-direction: column; gap: 4px;
}
.bm-nav .bm-nav-logout {
    display: flex; align-items: center; gap: 12px;
    color: rgba(255,255,255,.65);
    font-size: 14px;
    text-decoration: none;
    padding: 8px 0;
    transition: color .15s;
}
.bm-nav .bm-nav-logout:hover { color: #fff; }
.bm-nav .bm-nav-logout.active { color: var(--primary); }
.bm-nav .bm-nav-logout.active svg { stroke: var(--primary); }

/* ── Sidebar toggle knop ─────────────────────────────────────────────────── */
.bm-nav-toggle {
    position: absolute;
    top: 26px;
    right: -14px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--bg-nav);
    border: 2px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.7);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s, border-color .15s;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
    padding: 0;
    z-index: 101;
}
.bm-nav-toggle:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.bm-nav-toggle svg { flex-shrink: 0; transition: transform .25s ease; }

/* ── Sidebar ingeklapt ───────────────────────────────────────────────────── */
.bm-portaal-layout.nav-collapsed .bm-nav { width: var(--nav-collapsed-width); }
.bm-portaal-layout.nav-collapsed .bm-content { margin-left: var(--nav-collapsed-width); }
.bm-portaal-layout.nav-collapsed .bm-nav-logo { padding: 20px 0; justify-content: center; }
.bm-portaal-layout.nav-collapsed .bm-nav-logo img { opacity: 0; max-width: 0; pointer-events: none; }
.bm-portaal-layout.nav-collapsed .bm-nav-toggle svg { transform: rotate(180deg); }
.bm-portaal-layout.nav-collapsed .bm-nav-user { padding: 10px 0; justify-content: center; }
.bm-portaal-layout.nav-collapsed .bm-nav-user-info { display: none; }
.bm-portaal-layout.nav-collapsed .bm-nav-menu li a { padding: 13px 0; justify-content: center; gap: 0; }
.bm-portaal-layout.nav-collapsed .bm-nav-menu li a span { display: none; }
.bm-portaal-layout.nav-collapsed .bm-nav-badge { display: none; }
.bm-portaal-layout.nav-collapsed .bm-nav-bottom { padding: 12px 0 20px; flex-direction: column; align-items: center; }
.bm-portaal-layout.nav-collapsed .bm-nav .bm-nav-logout { justify-content: center; gap: 0; padding: 8px 0; }
.bm-portaal-layout.nav-collapsed .bm-nav .bm-nav-logout span { display: none; }

/* ── Main content ────────────────────────────────────────────────────────── */
.bm-content {
    background: var(--bg-page);
    margin-left: var(--nav-width);
    transition: margin-left .25s ease;
    flex: 1;
    padding: 40px;
    min-width: 0;
}

/* ── Publieke layout (registreren / inloggen) ────────────────────────────── */
.bm-public-wrapper {
    display: flex;
    min-height: 100vh;
    align-items: flex-start;
    background: var(--bg-public);
}
.bm-sidebar-public {
    width: 320px;
    min-height: 100vh;
    background: var(--bg-public);
    padding: 48px 40px;
    color: #fff;
    flex-shrink: 0;
    position: sticky;
    top: 0;
}
.bm-sidebar-public h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.bm-sidebar-public p  { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.6; }
.bm-usp-list { list-style: none; margin: 28px 0; }
.bm-usp-list li { font-size: 14px; color: rgba(255,255,255,.7); padding: 6px 0; padding-left: 22px; position: relative; }
.bm-usp-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.bm-sidebar-contact { font-size: 13px; color: rgba(255,255,255,.5); margin-top: auto; }
.bm-sidebar-contact a { color: rgba(255,255,255,.6); }
.bm-brand-logo img { height: 36px; margin-bottom: 32px; }
.bm-main-card {
    flex: 1;
    background: var(--bg-white);
    min-height: 100vh;
    padding: 60px 48px;
    max-width: 680px;
}
.bm-form-header { margin-bottom: 36px; }
.bm-form-header h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.bm-form-header p  { font-size: 15px; color: var(--text-grey); }
.bm-form-footer-text { text-align: center; font-size: 14px; color: var(--text-grey); margin-top: 20px; }

/* ── Page header ─────────────────────────────────────────────────────────── */
.bm-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 16px;
}
.bm-page-title    { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.bm-page-subtitle { font-size: 15px; color: var(--text-grey); margin-top: -1rem; }
.bm-back-link     { font-size: 14px; color: var(--text-grey); text-decoration: none; display: block; margin-bottom: 8px; }
.bm-back-link:hover { color: var(--text-dark); }

/* ── Sections ────────────────────────────────────────────────────────────── */
.bm-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.bm-section-highlight { border-left: 4px solid var(--primary); }
.bm-section-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.bm-section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.bm-section-title-row .bm-section-title { margin-bottom: 0; }
.bm-section-title-row .bm-table-link { display: flex; align-items: center; gap: 5px; font-size: 13px; }
.bm-section-desc  { font-size: 14px; color: var(--text-grey); margin-bottom: 20px; margin-top: -8px; }

/* ── Dashboard top 2 kolommen + full-width aanvragen ────────────────────── */
.bm-dashboard-cols {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) {
    .bm-dashboard-cols { grid-template-columns: 1fr; }
}

/* ── Verwachte oplevering (rechter kolom) ────────────────────────────────── */
.bm-oplevering-list { display: flex; flex-direction: column; gap: 8px; }
.bm-opl-item {
    display: flex; align-items: center; gap: 40px;
    padding: 12px 14px;
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none; color: inherit;
    transition: box-shadow .15s;
}
.bm-opl-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,.07); text-decoration: none; }
.bm-opl-datum {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 44px; text-align: center;
}
.bm-opl-dag { font-size: 15px; font-weight: 700; color: var(--text-darker); line-height: 1.2; }
.bm-opl-info { flex: 1; min-width: 0; }
.bm-opl-dienst { font-size: 13px; font-weight: 600; color: var(--text-darker); }
.bm-opl-relatief { font-size: 12px; color: var(--text-grey); margin-top: -8px; }

/* ── Stats grid ──────────────────────────────────────────────────────────── */
.bm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.bm-stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.bm-stat-number { font-size: 36px; font-weight: 700; color: var(--text-dark); }
.bm-stat-label  { font-size: 13px; color: var(--text-grey); margin-top: 4px; }

/* ── Offerte excl BTW ────────────────────────────────────────────────────── */
.bm-offerte-excl-btw { font-size: 11px; color: var(--text-grey); margin-top: 2px; }

/* ── Actiepunten ─────────────────────────────────────────────────────────── */
.bm-action-list    { display: flex; flex-direction: column; gap: 12px; }
.bm-action-item    { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--radius-md); background: var(--bg-grey); border: 1px solid var(--border); font-size: 14px; }
.bm-action-download { border-color: #10B981; background: #F0FDF4; }
.bm-action-offerte  { border-color: #F59E0B; background: #FFFBEB; }

/* ── Aanvragen tabel ─────────────────────────────────────────────────────── */
.bm-aanvragen-table { }
.bm-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 90px;
    gap: 16px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-grey);
    background: var(--bg-grey);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    align-items: center;
}
.bm-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 90px;
    gap: 16px;
    align-items: center;
    padding: 16px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    transition: background .1s;
}
.bm-table-row:last-child { border-bottom: none; }
.bm-table-row:hover { background: var(--bg-grey); }
.bm-table-dienst { display: flex; flex-direction: column; gap: 3px; }
.bm-dienst-name  { font-weight: 600; }
.bm-aanvraag-subtitel { font-size: 12px; color: var(--text-grey); }
.bm-aanvraag-nr  { font-size: 12px; color: var(--text-light); }
.bm-section-afgerond { margin-top: 8px; opacity: .8; }
.bm-section-afgerond .bm-section-title { font-size: 15px; color: var(--text-grey); }
.bm-aanvragen-afgerond .bm-table-row { opacity: .75; }
.bm-title-product { font-size: 16px; font-weight: 400; color: var(--text-grey); margin-left: 8px; }
.bm-table-datum  { font-size: 14px; color: var(--text-grey); }
.bm-table-link,
.bm-portaal-body a.bm-table-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--text-dark); text-decoration: none; }
.bm-portaal-body a.bm-table-link:hover { color: var(--text-dark); text-decoration: underline; }

/* ── Status badges ───────────────────────────────────────────────────────── */
.bm-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}
.bm-badge-lg { font-size: 14px; padding: 6px 14px; }
.status-nieuw          { background: #EFF6FF; color: #3B82F6; }
.status-behandeling    { background: #FFFBEB; color: #D97706; }
.status-review         { background: #F5F3FF; color: #7C3AED; }
.status-opgeleverd     { background: #ECFDF5; color: #059669; }
.status-afgerond       { background: #F0FDF4; color: #16A34A; }
.status-concept        { background: #F3F4F6; color: #6B7280; }
.status-verzonden      { background: #FFF7ED; color: #EA580C; }
.status-geaccepteerd   { background: #ECFDF5; color: #059669; }
.status-verlopen       { background: #FEF2F2; color: #DC2626; }
.status-afgewezen      { background: #FEF2F2; color: #DC2626; }
.status-default        { background: #F3F4F6; color: #6B7280; }

/* ── Progress steps ──────────────────────────────────────────────────────── */
.bm-progress-steps {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
}
.bm-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}
.bm-step-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600;
    border: 2px solid var(--border);
    background: var(--bg-white);
    color: var(--text-grey);
}
.bm-step.done   .bm-step-circle { background: #ECFDF5; border-color: #10B981; color: #10B981; }
.bm-step.active .bm-step-circle { background: var(--primary); border-color: var(--primary); color: #fff; }
.bm-step-label  { font-size: 11px; color: var(--text-grey); text-align: center; }
.bm-step.active .bm-step-label { color: var(--text-dark); font-weight: 600; }
.bm-step.done   .bm-step-label { color: #10B981; }
.bm-step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin-bottom: 24px;
    min-width: 24px;
}
.bm-step-line.done { background: #10B981; }

/* ── Detail grid ─────────────────────────────────────────────────────────── */
.bm-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.bm-detail-label { font-size: 12px; color: var(--text-grey); margin-bottom: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: .4px; }
.bm-detail-value { font-size: 15px; color: var(--text-dark); font-weight: 500; }
.bm-detail-bedrag { font-size: 24px; font-weight: 700; color: var(--text-dark); }

/* ── Bestanden grid ──────────────────────────────────────────────────────── */
.bm-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.bm-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-dark);
    transition: all .15s;
}
.bm-file-item:hover { border-color: var(--primary); background: var(--primary-bg); }
.bm-file-icon { color: var(--primary); flex-shrink: 0; }
.bm-file-name { font-size: 13px; font-weight: 600; word-break: break-word; }
.bm-file-size { font-size: 12px; color: var(--text-grey); }
.bm-files-list { display: flex; flex-direction: column; gap: 8px; }
.bm-file-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-grey);
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.bm-file-list-item img.bm-file-thumb,
.bm-file-thumb {
    width: 48px !important;
    height: 48px !important;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    display: block;
}
.bm-file-thumb-wrap { flex-shrink: 0; }
.bm-file-thumb-lg {
    width: 100%; height: 120px;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
    display: block;
}
.bm-file-list-icon { color: var(--text-grey); flex-shrink: 0; }
.bm-file-list-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-file-list-size { color: var(--text-grey); font-size: 12px; white-space: nowrap; }
.bm-file-list-name { flex: 1; font-weight: 500; }
.bm-file-list-size { color: var(--text-grey); font-size: 13px; }

/* ── Upload area ─────────────────────────────────────────────────────────── */
.bm-upload-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-grey);
    transition: all .15s;
    user-select: none;
}
.bm-upload-box:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }

/* ── Offerte card ────────────────────────────────────────────────────────── */
.bm-offerte-cta {
    margin-top: 28px;
    padding: 24px;
    background: var(--primary-bg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,123,98,.2);
}
.bm-offerte-cta h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.bm-offerte-cta p  { font-size: 14px; color: var(--text-grey); margin-bottom: 16px; }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.bm-empty-state {
    text-align: center;
    padding: 60px 32px;
    color: var(--text-grey);
    font-size: 15px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* ── Welkom pagina (na registratie, sidebar verborgen) ───────────────────── */
.bm-page-welkom .bm-public-wrapper { justify-content: center; }
.bm-page-welkom .bm-main-card { max-width: 520px; display: flex; align-items: center; justify-content: center; }

/* ── Welkom pagina (na registratie) ──────────────────────────────────────── */
.bm-welkom-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-light);
    padding: 40px 20px;
}
.bm-welkom-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 56px 48px;
    max-width: 480px;
    width: 100%;
    text-align: center;
}
.bm-welkom-icon {
    font-size: 56px;
    margin-bottom: 24px;
    display: block;
}
.bm-welkom-card h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px;
}
.bm-welkom-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 12px;
}
.bm-welkom-card p strong { color: var(--text-dark); }
.bm-welkom-sub { font-size: 13px !important; }
.bm-welkom-contact {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}
.bm-welkom-contact a { color: var(--primary); }

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.bm-alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}
.bm-alert-error   { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.bm-alert-success { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }
.bm-alert-warning { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.bm-btn-primary,
.bm-portaal-body .bm-btn-primary,
.bm-portaal-body button.bm-btn-primary,
.bm-portaal-body button[type="submit"].bm-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--btn-primary-bg) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px;
    border-radius: var(--radius-sm) !important;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .15s;
    font-family: var(--font);
    box-shadow: none !important;
    outline: none;
}
.bm-btn-primary:hover,
.bm-portaal-body button.bm-btn-primary:hover,
.bm-portaal-body button[type="submit"].bm-btn-primary:hover { background: var(--primary-dark) !important; color: #fff !important; text-decoration: none; }
.bm-btn-primary:disabled,
.bm-btn-primary.bm-btn-inactive {
    background: #D1D5DB !important;
    color: #9CA3AF !important;
    border-color: transparent !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    pointer-events: none;
    text-decoration: none !important;
}
.bm-portaal-body .bm-btn-primary:disabled,
.bm-portaal-body .bm-btn-primary.bm-btn-inactive,
.bm-portaal-body button.bm-btn-primary:disabled,
.bm-portaal-body button.bm-btn-primary.bm-btn-inactive,
.bm-portaal-body button[type="submit"].bm-btn-primary:disabled,
.bm-portaal-body button[type="submit"].bm-btn-primary.bm-btn-inactive {
    background: #D1D5DB !important;
    color: #9CA3AF !important;
    border-color: transparent !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    pointer-events: none;
    text-decoration: none !important;
}
.bm-btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-color) !important;
    border: 1.5px solid var(--border);
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: border-color .15s;
}
.bm-btn-secondary:hover { border-color: var(--text-dark); }
.bm-btn-sm.bm-btn-secondary { background: var(--btn-secondary-bg); color: var(--btn-secondary-color); border: 1.5px solid var(--border); }
.bm-btn-sm.bm-btn-secondary:hover { background: var(--btn-secondary-bg); border-color: var(--text-dark); color: var(--btn-secondary-color); text-decoration: none; }
.bm-btn-full { width: 100%; justify-content: center; }
.bm-btn-sm {
    display: inline-flex; align-items: center;
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font);
}
.bm-btn-sm:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; text-decoration: none; }
.bm-btn-icon {
    background: none; border: none; cursor: pointer; padding: 4px; color: var(--text-grey);
    font-size: 18px; line-height: 1;
}

/* ── Formulier elementen ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label, .bm-label, .bm-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.bm-required { color: #EF4444; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--bg-white);
    transition: border-color .15s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus  { border-color: var(--primary); }
.form-group input.input-error,
.form-group textarea.input-error { border-color: #EF4444 !important; }
.field-error-message { font-size: 12px; color: #EF4444; margin-top: 4px; }
.group-error-message { font-size: 12px; color: #EF4444; margin-top: 8px; }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-select { 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' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.bm-section-title.form-section-title { font-size: 13px; font-weight: 600; color: var(--text-dark); margin: 20px 0 12px; }

/* ── Service grid (wizard + registratie) ─────────────────────────────────── */
.bm-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.bm-service-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color .15s, background .15s;
    overflow: hidden;
}
.bm-service-card input { display: none; }
.bm-service-card:hover { border-color: var(--primary); background: var(--primary-bg); }
.bm-service-card.selected,
.bm-service-card:has(input:checked) { border-color: var(--primary); background: var(--primary-bg); }
.bm-card-inner { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.bm-cb-square {
    width: 18px; height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all .15s;
}
.bm-service-card.selected .bm-cb-square,
.bm-service-card:has(input:checked) .bm-cb-square {
    background: var(--primary);
    border-color: var(--primary);
}
.bm-service-card.selected .bm-cb-square::after,
.bm-service-card:has(input:checked) .bm-cb-square::after {
    content: '';
    position: absolute;
    left: 4px; top: 2px;
    width: 6px; height: 9px;
    border: 2px solid #fff;
    border-top: none; border-left: none;
    transform: rotate(45deg);
}
.bm-service-label { font-size: 13px; font-weight: 500; color: var(--text-dark); }
.type-card-label { color: var(--text-dark); }

/* ── Wizard type cards ───────────────────────────────────────────────────── */
.listing-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}
.type-card-label { cursor: pointer; }
.type-card-label input { display: none; }
.type-card-inner {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all .15s;
    position: relative;
}
.type-card-label:hover .type-card-inner { border-color: var(--primary); background: var(--primary-bg); }
.type-card-label:has(input:checked) .type-card-inner { border-color: var(--primary); background: var(--primary-bg); box-shadow: 0 0 0 3px rgba(255,123,98,.15); }
.type-icon { width: 48px; height: 48px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.custom-icon-svg { width: 32px; height: 32px; }
.icon-box-check {
    position: absolute; top: 8px; left: 8px;
    width: 18px; height: 18px;
    border: 2px solid var(--border);
    border-radius: 50%;
    transition: all .15s;
}
.type-card-label:has(input:checked) .icon-box-check {
    background: var(--primary);
    border-color: var(--primary);
}

/* ── Option cards (radio) ────────────────────────────────────────────────── */
.option-card-label { cursor: pointer; color: var(--text-dark); }
.option-card-inner span { color: var(--text-dark); }
.option-card-label input { display: none; }
.option-card-inner {
    display: flex; align-items: center; gap: 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 14px;
    transition: all .15s;
}
.option-card-label:hover .option-card-inner { border-color: var(--primary); }
.option-card-label:has(input:checked) .option-card-inner { border-color: var(--primary); background: var(--primary-bg); }
.custom-check {
    width: 20px; height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all .15s;
}
.option-card-label:has(input:checked) .custom-check {
    background: var(--primary);
    border-color: var(--primary);
}
.option-card-label:has(input:checked) .custom-check::after {
    content: '';
    position: absolute;
    left: 5px; top: 3px;
    width: 5px; height: 8px;
    border: 2px solid #fff;
    border-top: none; border-left: none;
    transform: rotate(45deg);
}

/* ── Upload boxes ────────────────────────────────────────────────────────── */
.upload-box-label {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 28px 20px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: all .15s;
    background: var(--bg-grey);
}
.upload-box-label:hover { border-color: var(--primary); background: var(--primary-bg); }
.upload-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.upload-icon { color: var(--primary); }

/* ── Thumbnail utility (S / M / L) ──────────────────────────────────────────── */
.bm-thumb {
    display: block;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.bm-thumb-s { width: 40px;  height: 40px;  }
.bm-thumb-m { width: 88px;  height: 88px;  }
.bm-thumb-l { width: 160px; height: 160px; }

/* ── Bestandenlijst (wizard) ─────────────────────────────────────────────── */
.file-list-container { margin-top: 10px; }

/* Afbeeldingen — kaartgrid */
.file-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 0;
}
.file-preview-card {
    flex-shrink: 0;
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-grey);
}
.file-preview-thumb {
    width: 88px;
    height: 88px;
    object-fit: cover;
    display: block;
}
.file-preview-icon {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .5px;
    background: var(--primary-bg);
}
.file-preview-name {
    font-size: 10px;
    color: var(--text-grey);
    padding: 4px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #fff;
    border-top: 1px solid var(--border);
}
.file-preview-remove {
    position: absolute;
    top: 5px; right: 5px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.file-preview-remove:hover { background: rgba(220,38,38,.85); }

/* Documenten — compacte rijen */
.file-doc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-grey);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 6px;
    font-size: 13px;
}
.file-doc-icon {
    flex-shrink: 0;
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 9px;
    font-weight: 700;
    padding: 3px 5px;
    border-radius: 3px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.file-doc-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-doc-size { flex-shrink: 0; color: var(--text-grey); font-size: 12px; }
.file-doc-remove {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 0 2px;
    transition: color .15s;
}
.file-doc-remove:hover { color: #dc2626; }

/* ── Dynamische producten ────────────────────────────────────────────────── */
.product-item { padding: 20px; border: 1.5px solid var(--border); border-radius: var(--radius-md); margin-bottom: 16px; }
.product-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.product-title { font-weight: 700; font-size: 16px; }
.btn-remove-product { color: #EF4444; background: none; border: none; cursor: pointer; font-size: 13px; text-decoration: underline; }
.btn-dashed-full {
    width: 100%; padding: 14px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    background: none; cursor: pointer;
    font-size: 14px; font-weight: 600; color: var(--text-grey);
    margin-bottom: 32px;
    font-family: var(--font);
    transition: all .15s;
}
.btn-dashed-full:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }

/* ── Wizard card wrapper ─────────────────────────────────────────────────── */
.bm-wizard-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

/* ── Wizard stappen ──────────────────────────────────────────────────────── */
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-progress-container { margin-bottom: 8px; }
.wizard-progress-track { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.wizard-progress-bar { height: 100%; background: var(--primary); border-radius: 2px; transition: width .3s ease; width: 0; }
.wizard-progress-label { font-size: 12px; color: var(--text-grey); margin-top: 6px; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ── Wizard wrapper (als subpagina van portaal) ───────────────────────────── */
.bm-page-aanvraag-nieuw .bm-content { max-width: 760px; }
.bm-page-aanvraag-nieuw .bm-content:has(.bm-aanvraag-nieuw-layout--admin) { max-width: 1080px; }

/* ── Gallery (oplevering + aanvraag-detail) ──────────────────────────────── */
.bm-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.bm-gallery-item {
    display: flex; flex-direction: column;
    align-items: center; gap: 6px; text-align: center;
}
.bm-gallery-image { cursor: pointer; }
.bm-gallery-thumb-wrap {
    position: relative; width: 100%; aspect-ratio: 1;
    border-radius: var(--radius-md); overflow: hidden; background: var(--border-light);
}
.bm-gallery-thumb {
    width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s;
}
.bm-gallery-image:hover .bm-gallery-thumb { transform: scale(1.04); }
.bm-gallery-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,.35);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s; color: #fff;
}
.bm-gallery-image:hover .bm-gallery-overlay { opacity: 1; }
.bm-gallery-file-icon {
    width: 100%; aspect-ratio: 1; border-radius: var(--radius-md);
    background: var(--border-light);
    display: flex; align-items: center; justify-content: center; color: var(--text-light);
}
.bm-gallery-name { font-size: 12px; color: var(--text-dark); word-break: break-all; line-height: 1.3; }
.bm-gallery-size { font-size: 11px; color: var(--text-light); }

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
.bm-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.92); display: none;
    align-items: center; justify-content: center;
}
.bm-lightbox.is-open { display: flex; }
.bm-lightbox-inner {
    display: flex; flex-direction: column; align-items: center;
    max-width: 90vw; max-height: 90vh;
}
#bm-lightbox-img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 4px; display: block; }
.bm-lightbox-caption { color: #E5E7EB; font-size: 13px; margin-top: 10px; text-align: center; }
.bm-lightbox-counter { color: var(--text-light); font-size: 12px; margin-top: 4px; }
.bm-lightbox-close {
    position: fixed; top: 20px; right: 24px;
    background: none; border: none; color: #fff;
    font-size: 36px; cursor: pointer; line-height: 1; padding: 0; opacity: .8;
}
.bm-lightbox-close:hover { opacity: 1; }
.bm-lightbox-prev, .bm-lightbox-next {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.1); border: none; color: #fff;
    font-size: 48px; cursor: pointer; padding: 8px 16px;
    border-radius: 4px; line-height: 1; opacity: .7;
    transition: opacity .15s, background .15s;
}
.bm-lightbox-prev:hover, .bm-lightbox-next:hover { opacity: 1; background: rgba(255,255,255,.2); }
.bm-lightbox-prev { left: 16px; }
.bm-lightbox-next { right: 16px; }
.bm-lightbox-prev[disabled], .bm-lightbox-next[disabled] { opacity: .2; cursor: default; }

/* ── Oplevering header ───────────────────────────────────────────────────── */
.bm-oplevering-header {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.bm-oplevering-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.bm-versie-badge {
    display: inline-block; background: var(--primary); color: #fff;
    font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 20px;
    vertical-align: middle; margin-left: 6px; letter-spacing: .3px;
}

/* ── Instellingen ─────────────────────────────────────────────────────────── */
.bm-instellingen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 768px) { .bm-instellingen-grid { grid-template-columns: 1fr; } }

.bm-instellingen-form .bm-form-row { margin-bottom: 18px; }
.bm-form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.bm-form-input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-dark); background: #fff; box-sizing: border-box; }
.bm-form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,123,98,.12); }
.bm-input-readonly { background: var(--bg-grey); color: var(--text-grey); cursor: not-allowed; }
.bm-form-hint { display: block; font-size: 12px; color: var(--text-light); margin-top: 4px; }
.bm-form-actions { margin-top: 24px; }
.bm-form-result { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.bm-result-success { background: #D1FAE5; color: #065F46; }
.bm-result-error   { background: #FEE2E2; color: #991B1B; }

.bm-instellingen-links { display: flex; flex-direction: column; gap: 12px; }
.bm-link-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); text-decoration: none; color: var(--text-dark); background: #fff; transition: box-shadow .15s; }
.bm-link-card:hover { box-shadow: var(--shadow-sm); border-color: #d1d5db; }
.bm-link-card-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bm-link-drive    { background: #EFF6FF; }
.bm-link-figma    { background: #FFF1F0; }
.bm-link-card-icon img { display: block; }
.bm-link-card-text { flex: 1; }
.bm-link-card-text strong { display: block; font-size: 14px; font-weight: 600; }
.bm-link-card-text span { font-size: 12px; color: var(--text-grey); }
.bm-link-card svg { color: var(--text-light); flex-shrink: 0; }

.bm-instellingen-account-info { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.bm-instellingen-sub-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--text-dark); }
.bm-account-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--border-light); }
.bm-account-row span { color: var(--text-grey); }

/* ── Agenda ───────────────────────────────────────────────────────────────── */
.bm-agenda-maand { margin-bottom: 32px; }
.bm-agenda-maand-header { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.bm-agenda-geen-datum .bm-agenda-maand-header { color: var(--text-light); }

.bm-agenda-items { display: flex; flex-direction: column; gap: 2px; }
.bm-agenda-item { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); text-decoration: none; color: var(--text-dark); transition: box-shadow .15s; }
.bm-agenda-item:hover { box-shadow: var(--shadow-sm); }
.bm-agenda-item + .bm-agenda-item { border-top: none; border-radius: 0; }
.bm-agenda-items .bm-agenda-item:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.bm-agenda-items .bm-agenda-item:last-child  { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.bm-agenda-items .bm-agenda-item:only-child  { border-radius: var(--radius-md); }

.bm-agenda-datum { width: 44px; text-align: center; flex-shrink: 0; }
.bm-agenda-dag   { display: block; font-size: 22px; font-weight: 700; line-height: 1; color: var(--text-darker); }
.bm-agenda-maandkort { display: block; font-size: 11px; text-transform: uppercase; color: var(--text-light); margin-top: 2px; }
.bm-agenda-datum-leeg .bm-agenda-dag { font-size: 18px; color: var(--text-light); }

.bm-agenda-info { flex: 1; min-width: 0; }
.bm-agenda-dienst   { font-size: 14px; font-weight: 600; }
.bm-agenda-subtitle { font-size: 12px; color: var(--text-grey); margin-top: 2px; }

.bm-agenda-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.bm-agenda-verleden-label { font-size: 11px; color: #EF4444; font-weight: 600; }
.bm-agenda-verleden { opacity: .65; }
.bm-agenda-item-geen-datum { background: var(--bg-grey); }

/* ── Agenda 2-kolom layout ───────────────────────────────────────────────── */
.bm-agenda-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    align-items: flex-start;
}
@media (max-width: 860px) {
    .bm-agenda-layout { grid-template-columns: 1fr; }
}
.bm-agenda-main  { min-width: 0; }
.bm-agenda-sidebar { min-width: 0; }

/* ── Kalender (single, navigeerbaar) ─────────────────────────────────────── */
.bm-kalender-single {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

/* Navigatiebalk */
.bm-kal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 8px;
}
.bm-kal-nav-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-grey);
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s, color .15s;
    line-height: 1;
}
.bm-kal-nav-btn:hover:not(:disabled) { background: var(--bg-grey); color: var(--text-dark); }
.bm-kal-nav-btn:disabled { opacity: .3; cursor: default; }
.bm-kal-nav-labels {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.bm-kal-nav-prev,
.bm-kal-nav-next {
    font-size: 12px;
    color: var(--text-light);
    text-transform: capitalize;
    white-space: nowrap;
}
.bm-kal-nav-current {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-darker);
    text-transform: capitalize;
    white-space: nowrap;
}

/* Slides wrapper */
.bm-kal-slides { position: relative; }

/* ── Kalender grid ───────────────────────────────────────────────────────── */
.bm-kalender-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.bm-kal-dagnam {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    color: var(--text-light);
    text-transform: uppercase;
    padding-bottom: 6px;
}
.bm-kal-dag {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 3px 3px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-dark);
    cursor: default;
}
.bm-kal-dag.bm-kal-leeg { background: transparent; }
.bm-kal-dag.bm-kal-verleden .bm-kal-getal { color: var(--text-light); }
.bm-kal-dag.bm-kal-vandaag {
    background: var(--primary-bg);
    border: 1px solid var(--primary);
}
.bm-kal-dag.bm-kal-vandaag .bm-kal-getal { color: var(--primary); font-weight: 700; }
.bm-kal-dag.bm-kal-heeft-event { background: var(--bg-grey); }
.bm-kal-getal {
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}
.bm-kal-stippen {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 2px;
    align-self: stretch;
    min-width: 0;
    padding: 12px;
}
.bm-kal-stip-rij {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
    line-height: 1.6;
}
.bm-kal-stip {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}
.bm-kal-stip-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
    line-height: 1.6;
}
.bm-kal-stip.status-nieuw          { background: #6B7280; }
.bm-kal-stip.status-in-behandeling { background: #3B82F6; }
.bm-kal-stip.status-offerte        { background: #8B5CF6; }
.bm-kal-stip.status-in-uitvoering  { background: var(--primary); }
.bm-kal-stip.status-oplevering     { background: #F59E0B; }
.bm-kal-stip.status-feedback       { background: #EF4444; }
.bm-kal-stip.status-afgerond       { background: #10B981; }
.bm-kal-meer {
    font-size: 12px;
    color: var(--text-grey);
    font-weight: 600;
    line-height: 1.6;
    padding: 0 12px;
}

/* Dag-cel actief (popover open) */
.bm-kal-dag.bm-kal-dag-active {
    outline: 2px solid var(--primary);
    outline-offset: -1px;
    z-index: 2;
}
.bm-kal-heeft-event { cursor: pointer; }

/* ── Kalender dagcel popover ─────────────────────────────────────────────── */
.bm-kal-popover {
    position: fixed;
    z-index: 1000;
    width: 256px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.bm-kal-popover-header {
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
    color: var(--text-grey);
    padding: 10px 14px 8px;
    border-bottom: 1px solid var(--border-light);
}
.bm-kal-popover-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background .12s;
    border-bottom: 1px solid var(--border-light);
}
.bm-kal-popover-item:last-child { border-bottom: none; }
.bm-kal-popover-item:hover { background: var(--bg-grey); text-decoration: none; }
.bm-kal-popover-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bm-kal-popover-dienst { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-kal-popover-sub    { font-size: 11px; color: var(--text-grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* ── Admin: namens klant – twee-kolom layout ─────────────────────────────── */
.bm-aanvraag-nieuw-layout { display: block; }
.bm-aanvraag-nieuw-layout--admin {
    display: grid;
    grid-template-columns: 1fr 280px;
    grid-template-areas: "main sidebar";
    gap: 24px;
    align-items: start;
}
.bm-aanvraag-nieuw-main { grid-area: main; order: 1; }

.bm-admin-klant-sidebar {
    grid-area: sidebar;
    order: 2;
    background: var(--bg-white);
    border: 1px solid #F59E0B;
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 24px;
}
.bm-admin-sidebar-header { display: flex; align-items: center; gap: 8px; }
.bm-admin-sidebar-badge {
    background: #FEF3C7; color: #92400E;
    font-size: 11px; font-weight: 700; letter-spacing: .5px;
    padding: 2px 7px; border-radius: 4px;
    text-transform: uppercase;
}
.bm-admin-sidebar-title { font-size: 15px; font-weight: 700; margin: 0; }

.bm-klant-geselecteerd {
    background: #F0FDF4; border: 1px solid #86EFAC;
    border-radius: 6px; padding: 10px 12px;
    display: flex; flex-direction: column; gap: 4px;
}
.bm-klant-geselecteerd-label { font-size: 11px; font-weight: 600; color: #166534; text-transform: uppercase; letter-spacing: .4px; }
.bm-klant-geselecteerd-naam  { font-size: 14px; font-weight: 600; color: #15803D; }
.bm-klant-deselecteer {
    background: none; border: none; padding: 0;
    font-size: 12px; color: #6B7280; text-decoration: underline;
    cursor: pointer; text-align: left; margin-top: 2px;
}
.bm-klant-deselecteer:hover { color: var(--text-dark); }

.bm-admin-sidebar-section { display: flex; flex-direction: column; gap: 4px; }
.bm-admin-sidebar-sectie-titel {
    font-size: 11px; font-weight: 700; color: #9CA3AF;
    text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 4px;
}

.bm-klant-recente-lijst,
.bm-klant-alle-lijst {
    display: flex; flex-direction: column; gap: 2px;
}
.bm-klant-alle-lijst {
    max-height: 260px; overflow-y: auto;
    scrollbar-width: thin;
}

.bm-klant-optie {
    display: flex; flex-direction: column; gap: 1px;
    background: none; border: none;
    padding: 7px 10px; border-radius: 6px;
    cursor: pointer; text-align: left; width: 100%;
    transition: background .12s;
}
.bm-klant-optie:hover { background: var(--bg-grey); }
.bm-klant-optie--actief { background: #EFF6FF !important; }
.bm-klant-optie--actief .bm-klant-optie-naam { color: var(--primary); }
.bm-klant-optie-naam    { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.bm-klant-optie-bedrijf { font-size: 12px; color: #6B7280; }

/* ── Feedback gallery ────────────────────────────────────────────────────── */
.bm-feedback-gallery { margin-top: 16px; }
.bm-feedback-item {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 14px 0; border-bottom: 1px solid var(--border-light);
}
.bm-feedback-item:last-of-type { border-bottom: none; }
.bm-feedback-thumb { flex-shrink: 0; width: 100px; }
.bm-feedback-thumb-wrap {
    position: relative; width: 100px; height: 100px;
    border-radius: var(--radius-md); overflow: hidden;
    background: var(--border-light); cursor: pointer;
}
.bm-feedback-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.bm-feedback-thumb-wrap:hover img { transform: scale(1.04); }
.bm-feedback-thumb-wrap .bm-gallery-overlay { opacity: 0; transition: opacity .2s; }
.bm-feedback-thumb-wrap:hover .bm-gallery-overlay { opacity: 1; }
.bm-feedback-file-icon {
    width: 100px; height: 100px; border-radius: var(--radius-md);
    background: var(--border-light);
    display: flex; align-items: center; justify-content: center; color: var(--text-light);
}
.bm-feedback-content { flex: 1; min-width: 0; }
.bm-feedback-bestandnaam { font-size: 14px; font-weight: 500; color: var(--text-dark); margin-bottom: 2px; word-break: break-all; }
.bm-feedback-size { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.bm-feedback-toggle { display: flex; gap: 6px; margin-bottom: 8px; }
.bm-toggle-akkoord, .bm-toggle-feedback {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 500;
    border: 1.5px solid var(--border-light); background: #fff; color: var(--text-mid);
    cursor: pointer; transition: all .15s;
}
.bm-toggle-akkoord.active { background: #ECFDF5; border-color: #10B981; color: #059669; }
.bm-toggle-feedback.active { background: #FFF7ED; border-color: #F59E0B; color: #D97706; }
.bm-toggle-akkoord:hover:not(.active) { border-color: #10B981; color: #059669; }
.bm-toggle-feedback:hover:not(.active) { border-color: #F59E0B; color: #D97706; }
.bm-feedback-tekst {
    width: 100%; min-height: 72px; padding: 8px 12px;
    border: 1.5px solid var(--border-light); border-radius: 8px;
    font-size: 13px; color: var(--text-dark); font-family: inherit;
    resize: vertical; transition: border-color .15s; box-sizing: border-box;
}
.bm-feedback-tekst:focus { border-color: var(--primary); outline: none; }
.bm-feedback-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-top: 20px; padding: 14px 16px;
    background: var(--bg-subtle); border-radius: var(--radius-md); border: 1px solid var(--border-light);
}
.bm-feedback-samenvatting { font-size: 13px; color: var(--text-mid); }
.bm-feedback-acties { display: flex; gap: 10px; }
.bm-feedback-result { margin-top: 12px; }
@media (max-width: 600px) {
    .bm-feedback-item { flex-direction: column; }
    .bm-feedback-thumb { width: 100%; }
    .bm-feedback-thumb-wrap, .bm-feedback-file-icon { width: 100%; height: 160px; }
    .bm-feedback-bar { flex-direction: column; align-items: flex-start; }
}

/* ── Offerte kaarten (overzicht) ─────────────────────────────────────────── */
.bm-offertes-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.bm-col-title {
    font-size: 15px; font-weight: 600; color: var(--text-darker);
    margin: 0 0 12px; padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}
.bm-offertes-leeg { color: var(--text-light); font-size: 14px; }
.bm-offerte-card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 16px; margin-bottom: 12px;
    transition: box-shadow .15s;
}
.bm-offerte-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.bm-offerte-verlopen  { border-color: #FCA5A5; background: #FFF5F5; }
.bm-offerte-geaccepteerd { border-color: #A7F3D0; background: #F0FDF4; }
.bm-offerte-card-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.bm-offerte-checkbox-wrap { cursor: pointer; margin-top: 2px; flex-shrink: 0; }
.bm-offerte-checkbox-wrap input { display: none; }
.bm-offerte-checkbox-box {
    display: block; width: 18px; height: 18px;
    border: 2px solid var(--border); border-radius: 4px;
    background: var(--bg-white); transition: background .15s, border-color .15s; position: relative;
}
.bm-offerte-checkbox-wrap input:checked + .bm-offerte-checkbox-box {
    background: var(--text-darker); border-color: var(--text-darker);
}
.bm-offerte-checkbox-wrap input:checked + .bm-offerte-checkbox-box::after {
    content: ''; position: absolute; top: 2px; left: 5px;
    width: 5px; height: 9px;
    border: 2px solid #fff; border-top: none; border-left: none; transform: rotate(45deg);
}
.bm-offerte-meta { flex: 1; min-width: 0; }
.bm-offerte-dienst { font-size: 14px; font-weight: 600; color: var(--text-darker); margin-bottom: 2px; }
.bm-offerte-product { font-size: 12px; color: var(--text-grey); margin-bottom: 4px; }
.bm-offerte-product-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.bm-offerte-tag { display: inline-block; font-size: 11px; font-weight: 500; color: var(--text-darker); background: var(--bg-page); border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px; }
.bm-offerte-date   { font-size: 12px; color: var(--text-light); }
.bm-offerte-bedrag-wrap { text-align: right; flex-shrink: 0; }
.bm-offerte-bedrag { font-size: 20px; font-weight: 700; color: var(--text-darker); margin-bottom: 2px; }
.bm-offerte-bedrag-pending { font-size: 13px; font-weight: 500; color: var(--text-light); }
.bm-offerte-geldig { font-size: 12px; color: var(--text-grey); }
.bm-offerte-geldig-verlopen { color: #EF4444; }
.bm-offerte-card-footer { border-top: 1px solid var(--border-light); padding-top: 12px; display: flex; gap: 8px; }
.bm-btn-full { display: block; text-align: center; }
.bm-btn-half { flex: 1; text-align: center; justify-content: center; }

/* ── Offerte detail: intake samenvatting ─────────────────────────────────── */
.bm-detail-item-full { grid-column: 1 / -1; }
.bm-intake-summary { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.bm-intake-row { display: flex; gap: 12px; font-size: 13px; }
.bm-offerte-regels { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.bm-regel-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.bm-offerte-regel { }
.bm-offerte-regel-titel { font-size: 14px; font-weight: 600; color: var(--text-darker); display: flex; align-items: center; gap: 10px; }
.bm-offerte-regel-aantal { font-size: 12px; font-weight: 500; color: var(--text-grey); background: var(--bg-grey); padding: 1px 7px; border-radius: 20px; }
.bm-offerte-regel-body { font-size: 13px; color: var(--text-grey); margin-top: 6px; line-height: 1.6; white-space: pre-wrap; }
.bm-intake-label { color: var(--text-grey); min-width: 160px; flex-shrink: 0; }
.bm-intake-val { color: var(--text-darker); }


/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .bm-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .bm-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .bm-nav { transform: translateX(-100%); }
    .bm-nav.open { transform: translateX(0); }
    .bm-content { margin-left: 0 !important; padding: 20px 16px; }
    .bm-offertes-columns { grid-template-columns: 1fr; }
    .bm-sidebar-public { display: none; }
    .bm-main-card { padding: 32px 24px; }
    .bm-table-header { display: none; }
    .bm-table-row { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
    .bm-stats-grid { grid-template-columns: 1fr 1fr; }
    .listing-type-grid { grid-template-columns: 1fr 1fr; }
    .bm-service-grid { grid-template-columns: 1fr 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }
    .wizard-nav { flex-direction: column; gap: 12px; }
    .wizard-nav button { width: 100%; justify-content: center; }
    .bm-page-header { flex-direction: column; }
}
