/* MarketingZaak — hoofdstijl (Bootstrap 5.3 aanvulling) */
html { font-size: 15px; }
:root {
    --mz-accent: #2563eb;
    --mz-accent-2: #4f46e5;
    --mz-teal: #14b8a6;
    --mz-info: #5eead4;
    --mz-ink: #0f172a;
    --mz-muted: #64748b;
    --mz-line: #e2e8f0;
    --mz-bg: #eef2f8;
    --mz-radius: 8px;
    --bs-border-radius: 8px;
    --bs-border-radius-sm: 6px;
    --bs-border-radius-lg: 8px;
    --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --bs-body-color: #1e293b;
}
body.app { background: var(--mz-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg fill='none' stroke='%232563eb' stroke-width='1.6' opacity='.09'%3E%3Crect x='18' y='26' width='34' height='24' rx='4'/%3E%3Cpath d='M18 30l17 12 17-12'/%3E%3Ccircle cx='128' cy='120' r='9'/%3E%3Cpath d='M137 120v3a4 4 0 0 0 8 0v-3a17 17 0 1 0-7 13.7'/%3E%3C/g%3E%3Cg fill='none' stroke='%2314b8a6' stroke-width='1.6' opacity='.12'%3E%3Cpath d='M120 34l14-6-4 15-4-5-6 2z'/%3E%3Cpath d='M40 140c6-8 18-8 24 0'/%3E%3C/g%3E%3C/svg%3E") repeat; font-size: .9rem; min-height: 100vh; }
.mz-container { max-width: 1400px; width: 100%; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.main-content { min-width: 0; padding-top: 1rem; padding-bottom: 1.5rem; }
.mz-infobar-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; }
.mz-infobar-btn:hover { color: var(--mz-ink); }

/* Kop: infobalk + menubalk (niet sticky) */
.mz-chrome { padding-left: 1.25rem; padding-right: 1.25rem; }
.mz-infobar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--mz-info); color: #134e4a; font-size: .78rem; font-weight: 600; padding: .4rem 1.1rem; }
.mz-infobar a, .mz-infobar span { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.mz-infobar a:hover { color: var(--mz-ink); }
.mz-infobar-left, .mz-infobar-right { display: flex; align-items: center; gap: 1.1rem; }
.mz-infobar-right a + a { padding-left: 1.1rem; border-left: 1px solid rgba(19,78,74,.25); }
.mz-infobar-badge { background: var(--mz-ink); color: #fff !important; border-radius: 6px; padding: .1rem .5rem; font-size: .72rem; }
.mz-chrome-admin .mz-infobar { background: #fcd34d; color: #713f12; }
.mz-chrome-admin .mz-infobar-right a + a { border-color: rgba(113,63,18,.25); }
.mz-nav { background: linear-gradient(90deg, var(--mz-accent) 0%, var(--mz-accent-2) 100%); border-radius: 0 0 var(--mz-radius) var(--mz-radius); padding: .4rem 1rem; box-shadow: 0 10px 24px -18px rgba(30,41,99,.8); }
.mz-chrome-admin .mz-nav { background: linear-gradient(90deg, #312e81 0%, #1e1b4b 100%); }
.mz-nav .navbar-brand { font-size: 1rem; margin-right: 1.5rem; color: #fff; }
.mz-nav .navbar-brand strong { font-weight: 800; letter-spacing: -.01em; }
.mz-nav .navbar-nav .nav-link { color: rgba(255,255,255,.85); font-weight: 600; padding: .45rem .75rem; position: relative; }
.mz-nav .navbar-nav .nav-link:hover, .mz-nav .navbar-nav .show > .nav-link { color: #fff; }
.mz-nav .navbar-nav .nav-link.active { color: #fff; }
.mz-nav .navbar-nav .nav-link.active::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .15rem; height: 2px; border-radius: 2px; background: #fff; }
.mz-nav .navbar-nav .dropdown-toggle.active::after { right: 1.6rem; }
.mz-nav .dropdown-toggle::after { vertical-align: .15em; }
.mz-nav-right { display: flex; align-items: center; gap: .6rem; }
.mz-cta { font-weight: 700; color: var(--mz-accent) !important; }
.mz-user { display: inline-flex; align-items: center; gap: .25rem; color: #fff; text-decoration: none; }
.mz-user:hover { color: #fff; }
.mz-user .avatar { width: 32px; height: 32px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.5); color: #fff; }
.mz-user-head { padding: .35rem .7rem; line-height: 1.3; }
.mz-user-head strong { display: block; }
.mz-user-head span { color: var(--mz-muted); font-size: .78rem; }
.mz-logo { width: 32px; height: 32px; border-radius: var(--mz-radius); background: #fff; color: var(--mz-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.mz-nav .dropdown-menu { border: 1px solid var(--mz-line); border-top: 3px solid var(--mz-accent); border-radius: var(--mz-radius); padding: .4rem; min-width: 270px; margin-top: .55rem; }
.mz-nav .dropdown-item { display: flex; align-items: flex-start; gap: .7rem; border-radius: 6px; padding: .5rem .7rem; white-space: normal; font-weight: 600; font-size: .875rem; }
.mz-nav .dropdown-item > .bi { width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #eff6ff; color: var(--mz-accent); font-size: .95rem; }
.mz-nav .dropdown-item small { display: block; color: var(--mz-muted); font-size: .75rem; font-weight: 500; }
.mz-nav .dropdown-item:hover, .mz-nav .dropdown-item:focus { background: #f1f5f9; color: var(--mz-ink); }
.mz-nav .dropdown-item.active, .mz-nav .dropdown-item:active { background: #eff6ff; color: var(--mz-accent); }
.mz-nav .dropdown-item.active > .bi { background: var(--mz-accent); color: #fff; }
.mz-nav .dropdown-item.text-danger > .bi { background: #fef2f2; color: #dc2626; }
@media (min-width: 992px) {
    .mz-nav .navbar-nav .dropdown:hover > .dropdown-menu { display: block; }
    .mz-nav .navbar-nav .dropdown > .dropdown-menu { margin-top: .1rem; }
    .mz-nav .navbar-nav .dropdown > .dropdown-menu::before { content: ""; position: absolute; top: -.6rem; left: 0; right: 0; height: .6rem; }
}
@media (max-width: 991.98px) {
    .mz-chrome { padding-left: 0; padding-right: 0; }
    .mz-nav { border-radius: 0; }
    .mz-nav-right { padding: .5rem 0; }
    .mz-nav .navbar-nav .nav-link.active::after { display: none; }
    .mz-nav .navbar-nav .nav-link.active { background: rgba(255,255,255,.15); border-radius: 6px; }
    .main-content { padding-left: .75rem !important; padding-right: .75rem !important; }
}

/* Cards, tabellen, formulieren */
.card { border: 1px solid var(--mz-line); border-top: 3px solid var(--mz-accent); border-radius: var(--mz-radius); box-shadow: 0 6px 18px -14px rgba(15,23,42,.35); }
.card .card { border-top-width: 1px; box-shadow: none; }
.modal-content { border-radius: var(--mz-radius); border: 0; border-top: 3px solid var(--mz-accent); }
.card-header { background: #fff; font-weight: 700; color: var(--mz-ink); border-bottom: 1px solid var(--mz-line); padding: .55rem .9rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card-header:first-child { border-radius: 5px 5px 0 0; }
.card-header > .bi:first-child, .mz-icon { width: 26px; height: 26px; border-radius: 6px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #eff6ff; color: var(--mz-accent); font-size: .95rem; }
.mz-icon-teal { background: #ccfbf1; color: #0f766e; }
.card-footer { background: #f8fafc; border-top: 1px solid var(--mz-line); }
.mz-card-accent { border-top-color: var(--mz-teal); }
.table { --bs-table-bg: transparent; }
.table > :not(caption) > * > * { padding: .45rem .65rem; border-color: var(--mz-line); }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--mz-muted); font-weight: 700; background: #f8fafc; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #f8fafc; }
.form-control, .form-select { border-color: #cbd5e1; border-radius: var(--mz-radius); }
.form-control:focus, .form-select:focus { border-color: var(--mz-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mz-accent) 18%, transparent); }
.form-label { font-weight: 600; font-size: .82rem; margin-bottom: .3rem; color: #334155; }
.form-check-input:checked { background-color: var(--mz-accent); border-color: var(--mz-accent); }
.btn { border-radius: var(--mz-radius); font-weight: 600; }
.btn-primary { --bs-btn-bg: var(--mz-accent); --bs-btn-border-color: var(--mz-accent); --bs-btn-hover-bg: color-mix(in srgb, var(--mz-accent) 85%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--mz-accent) 85%, #000); --bs-btn-active-bg: color-mix(in srgb, var(--mz-accent) 75%, #000); --bs-btn-active-border-color: transparent; }
.btn-outline-primary { --bs-btn-color: var(--mz-accent); --bs-btn-border-color: var(--mz-accent); --bs-btn-hover-bg: var(--mz-accent); --bs-btn-hover-border-color: var(--mz-accent); --bs-btn-active-bg: var(--mz-accent); }
.nav-pills .nav-link { border-radius: var(--mz-radius); font-weight: 600; color: #475569; }
.nav-pills .nav-link.active { background: var(--mz-accent); }
.badge { border-radius: 6px; font-weight: 700; }
.alert { border-radius: var(--mz-radius); border-width: 1px 1px 1px 4px; }
.dropdown-menu { border-radius: var(--mz-radius); }

/* Paginatitel: rij met h1 + knoppen wordt een titelbalk */
.main-content > div:has(> h1.h3),
.main-content > div:has(> div > h1.h3):not(:has(.card)),
.main-content > h1.h3, .company-title { background: #fff; border: 1px solid var(--mz-line); border-left: 4px solid var(--mz-accent); border-radius: var(--mz-radius); padding: .6rem .9rem; margin-bottom: .85rem !important; box-shadow: 0 6px 18px -14px rgba(15,23,42,.35); }
.main-content h1.h3, .main-content > h1 { font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; color: var(--mz-ink); }

.brand-dot { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; display: inline-block; box-shadow: inset 0 0 0 3px rgba(255,255,255,.25); }
.brand-logo { width: 34px; height: 34px; border-radius: 8px; background: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 3px; flex-shrink: 0; }
.brand-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.auth-brand-logo { max-width: 200px; max-height: 80px; object-fit: contain; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .85rem; flex-shrink: 0; }
.stat-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.mini-chart { display: flex; align-items: flex-end; gap: 3px; height: 180px; }
.mini-chart-day { flex: 1; display: flex; align-items: flex-end; gap: 1px; height: 100%; border-radius: 3px; min-width: 4px; }
.mini-chart-day:hover { background: #f1f5f9; }
.mini-chart-day span { flex: 1; min-height: 1px; border-radius: 2px 2px 0 0; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.list-card { transition: transform .12s; }
.list-card:hover { transform: translateY(-2px); }
.media-thumb { aspect-ratio: 4 / 3; background: repeating-conic-gradient(#f1f5f9 0 25%, #fff 0 50%) 0 0 / 16px 16px; display: flex; align-items: center; justify-content: center; border-radius: .75rem .75rem 0 0; overflow: hidden; }
.media-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-option input { display: none; }
.logo-option span { display: flex; width: 110px; height: 70px; border: 2px solid #e2e8f0; border-radius: .5rem; padding: 6px; cursor: pointer; background: #fff; }
.logo-option span img { max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; }
.logo-option input:checked + span { border-color: var(--mz-accent); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.bulk-bar.show { display: flex !important; }
.public-page { background: #f4f6fb; }

/* Inlogpagina's */
.auth-page { background: var(--mz-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg fill='none' stroke='%232563eb' stroke-width='1.6' opacity='.09'%3E%3Crect x='18' y='26' width='34' height='24' rx='4'/%3E%3Cpath d='M18 30l17 12 17-12'/%3E%3Ccircle cx='128' cy='120' r='9'/%3E%3Cpath d='M137 120v3a4 4 0 0 0 8 0v-3a17 17 0 1 0-7 13.7'/%3E%3C/g%3E%3Cg fill='none' stroke='%2314b8a6' stroke-width='1.6' opacity='.12'%3E%3Cpath d='M120 34l14-6-4 15-4-5-6 2z'/%3E%3Cpath d='M40 140c6-8 18-8 24 0'/%3E%3C/g%3E%3C/svg%3E") repeat; font-family: var(--bs-body-font-family); }
.auth-card { width: 100%; max-width: 440px; }
.auth-logo { font-size: 2.4rem; color: var(--mz-accent); }
.card-body { padding: .9rem; }
.form-control:not(.form-control-sm):not(.form-control-lg):not(.form-control-color) { font-size: .9rem; padding: .35rem .65rem; }
.form-select:not(.form-select-sm):not(.form-select-lg) { font-size: .9rem; padding: .35rem 2.1rem .35rem .65rem; }
.btn:not(.btn-sm):not(.btn-lg) { font-size: .9rem; padding: .35rem .8rem; }
.input-group > .btn:not(.btn-sm):not(.btn-lg) { padding: .35rem .7rem; }
body.app, .auth-page { background-attachment: fixed; }

/* Formulieren: velden als regels (icoon + label links, veld rechts, lijntje ertussen); zie app.js */
.form-lines { --mz-label-w: 210px; --bs-gutter-y: 0; }
.form-lines > * { flex: 0 0 100%; width: 100%; max-width: 100%; margin-top: 0 !important; margin-bottom: 0 !important; padding-top: .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--mz-line); }
.form-lines > *:last-child { border-bottom: 0; }
.form-lines > :has(> .form-label) { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.form-lines > :not(:has(> .form-label)) { padding-left: calc(var(--mz-label-w) + 1rem + var(--bs-gutter-x, 0rem) * .5); }
.form-lines > * > .form-label { flex: 0 0 var(--mz-label-w); margin: 0; display: flex; align-items: center; gap: .5rem; }
.form-lines > * > .form-label ~ * { flex: 1 1 0; min-width: 0; }
.form-lines > * > .form-label ~ .form-check, .form-lines > * > .form-label ~ .form-text, .form-lines > * > .form-label ~ .invalid-feedback { flex-basis: 100%; margin-left: calc(var(--mz-label-w) + 1rem); margin-top: 0; }
.fl-icon { width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #eff6ff; color: var(--mz-accent); font-size: .8rem; }
.fl-tip { color: var(--mz-muted); cursor: help; font-size: .85rem; margin-left: auto; }
.fl-tip:hover { color: var(--mz-accent); }
@media (max-width: 767.98px) {
    .form-lines > * > .form-label { flex-basis: 100%; }
    .form-lines > :not(:has(> .form-label)) { padding-left: calc(var(--bs-gutter-x, 0rem) * .5); }
    .form-lines > * > .form-label ~ .form-check, .form-lines > * > .form-label ~ .form-text, .form-lines > * > .form-label ~ .invalid-feedback { margin-left: 0; }
}
/* Velden in regels: geen kader, alleen een lijntje eronder */
.form-lines > * { border-bottom: 0; padding-top: .35rem; padding-bottom: .35rem; }
.form-lines .form-control:not(.form-control-color), .form-lines .form-select, .form-lines .input-group-text {
    border: 0; border-bottom: 1px solid var(--mz-line); border-radius: 0; background-color: transparent; padding-left: .15rem; box-shadow: none;
}
.form-lines .form-select { background-position: right .15rem center; }
.form-lines .form-control:not(.form-control-color):focus, .form-lines .form-select:focus { border-bottom-color: var(--mz-accent); box-shadow: 0 1px 0 0 var(--mz-accent); background-color: transparent; }
.form-lines textarea.form-control { border: 1px solid var(--mz-line); border-radius: var(--mz-radius); padding-left: .5rem; }
.form-lines .input-group-text { color: var(--mz-muted); }
.form-lines .form-control-color { border: 0; padding: 0; height: 1.6rem; background: transparent; }
.company-icon, .user-avatar { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--mz-accent); color: #fff; font-weight: 800; font-size: .9rem; letter-spacing: .02em; }
.row-link { cursor: pointer; }
.title-filter { margin: .55rem 0 0 !important; padding-top: .45rem; border-top: 1px solid var(--mz-line); }
.title-filter .form-control, .title-filter .form-select { border: 0; border-bottom: 1px solid var(--mz-line); border-radius: 0; background-color: transparent; box-shadow: none; padding-left: .15rem; }
.title-filter .form-control:focus, .title-filter .form-select:focus { border-bottom-color: var(--mz-accent); box-shadow: 0 1px 0 0 var(--mz-accent); background-color: transparent; }
.live-tile { display: flex; align-items: center; gap: .65rem; padding: .55rem .75rem; border: 1px solid var(--mz-line); border-left-width: 3px !important; border-radius: var(--mz-radius); background: #fff; height: 100%; }
.live-tile > .bi { font-size: 1.35rem; }
.live-progress { height: 12px; }
.company-icon-lg { width: 76px; height: 76px; font-size: 2rem; box-shadow: 0 2px 8px rgba(15,23,42,.12); overflow: hidden; }
.company-icon-lg img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 6px; }
.company-head > div { margin-top: .15rem; }
.company-head .bi { width: 1.1em; display: inline-block; }
.settings-tabs { display: flex; gap: .25rem; background: #fff; border: 1px solid var(--mz-line); border-radius: var(--mz-radius); padding: .3rem; margin-bottom: 1rem; box-shadow: 0 6px 18px -14px rgba(15,23,42,.35); overflow-x: auto; }
.settings-tab { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 0; background: transparent; color: #475569; font-weight: 600; padding: .55rem .75rem; border-radius: 6px; white-space: nowrap; }
.settings-tab .bi { font-size: 1rem; }
.settings-tab:hover { background: #f1f5f9; color: var(--mz-ink); }
.settings-tab.active { background: var(--mz-accent); color: #fff; }
/* Brede formulieren: twee velden naast elkaar, uitleg/kopjes/schakelaars over de volle breedte */
.card:has(> .form-lines) { container-type: inline-size; }
@container (min-width: 700px) {
    .form-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; --mz-label-w: 170px; }
    .form-lines > :not(:has(> .form-label)), .form-lines > :has(> textarea), .form-lines > .col-12:has(> .form-text:not(.d-none)) { grid-column: 1 / -1; }
}
@container (min-width: 700px) and (max-width: 1099px) {
    .form-lines > :has(> .form-label) { align-items: flex-start; }
    .form-lines > * > .form-label { flex-basis: 100%; }
    .form-lines > :not(:has(> .form-label)) { padding-left: calc(var(--bs-gutter-x, 0rem) * .5); }
    .form-lines > * > .form-label ~ .form-check, .form-lines > * > .form-label ~ .form-text, .form-lines > * > .form-label ~ .invalid-feedback { margin-left: 0; }
}
.form-lines > * > .form-label ~ .form-control-color { flex: 0 0 auto; width: 3.25rem; height: 1.9rem; border-radius: 6px; cursor: pointer; }
.form-lines > :has(> strong:first-child) { padding-left: calc(var(--bs-gutter-x, 0rem) * .5) !important; margin-top: .6rem !important; padding-top: .7rem !important; border-top: 1px solid var(--mz-line); }
.form-lines > :has(> strong:first-child) > strong { font-size: .85rem; color: var(--mz-ink); }
