/* ============================================================================
   Veldhuisbouw projectsoftware – huisstijl (03-11-2026)
   Zwart, wit en goud (#d8b876), zoals het logo. Laadt NA styles.css en
   redesign.css en overschrijft alleen het uiterlijk: geen verlopen, geen
   schaduwen, geen sierlijnen, rechte hoeken, rustige vlakken.
   ========================================================================== */

:root {
  --ink: #111111;
  --paper: #f3f2ef;
  --paper-2: #ffffff;
  --line: #e2e0da;
  --line-2: #cfcdc6;
  --gold: #d8b876;
  --gold-2: #9c7f3c;
  --gold-soft: #f6f0e1;
  --muted: #6c6b67;
  --white: #ffffff;
  --green: #2f6b3d;
  --blue: #2e5a78;
  --steel: #5a6670;
  --mint: #e6efe7;
  --red: #a33a2f;
  --shadow: none;
  --shadow-sm: none;
  --r-radius: 8px;
  --r-radius-sm: 6px;
  --r-shadow: none;
  --r-shadow-lift: none;
  --r-gold-grad: #d8b876;
  --r-ink-grad: #111111;
  --r-cream: #f3f2ef;
  --vb-radius: 6px;
}

/* ---------- Basis ---------- */
html { background: var(--paper); }
body { background: var(--paper); color: var(--ink); }
body::before { display: none; }
::selection { background: var(--gold); color: #111; }
*:focus-visible { outline: 2px solid #111; outline-offset: 2px; border-radius: 4px; }
* { scrollbar-color: #c9c7c0 transparent; }
.main ::-webkit-scrollbar-thumb { background: #c9c7c0; }
.main ::-webkit-scrollbar-thumb:hover { background: #a9a7a0; }

h1, h2, h3, h4 { font-family: "DM Sans", Inter, Arial, sans-serif; font-weight: 700; letter-spacing: -0.01em; }
.eyebrow { display: none !important; }
#pageTitle::after, .panel-heading h3::before { display: none !important; }
#pageTitle { font-size: 20px; letter-spacing: -0.01em; }
.page-subtitle { color: var(--muted); font-size: 13px; }
a { color: var(--ink); }

/* ---------- Inloggen ---------- */
.login-view { background: var(--paper); padding: 20px; }
.login-card {
  gap: 12px;
  padding: 30px 28px 26px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: #fff;
  box-shadow: none !important;
}
.login-logo { width: 230px; max-width: 100%; height: auto; margin: 0 auto 8px; padding: 0; border-radius: 0; background: transparent; }
.login-card h1 { font-size: 22px; text-align: center; }
.login-sub { margin: -8px 0 6px; text-align: center; color: var(--muted); font-size: 13.5px; }
.login-card label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #333; }
.login-card input { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; font-size: 15px; }
.login-card input:focus { outline: none; border-color: #111; box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08); }
.login-card .primary-button { min-height: 44px; margin-top: 4px; font-size: 14px; }

/* ---------- Navigatie (desktop) ---------- */
.sidebar {
  color: var(--ink);
  background: #fff;
  border-right: 1px solid var(--line);
}
@media (min-width: 821px) {
  .sidebar {
    margin: 0;
    top: 0;
    height: 100vh;
    padding: 20px 16px 24px;
    gap: 16px;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }
  .app-shell { grid-template-columns: 248px minmax(0, 1fr); }
}
.brand, .brand-home { display: block; padding: 2px 4px 4px; }
.sidebar .brand-logo, .sidebar .brand-home img { width: 100% !important; max-width: 196px; height: auto !important; padding: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
#userLabel { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; }
.sidebar-contact { padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--muted); font-size: 12.5px; }
.sidebar-contact span { color: var(--muted); }
.side-nav { gap: 2px; }
.side-nav-label { margin: 12px 0 4px; padding: 0 10px; color: var(--muted) !important; font-size: 11.5px !important; font-weight: 600; letter-spacing: 0 !important; text-transform: none; opacity: 1; }
.side-nav-button {
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: #2b2b2b;
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
}
.side-nav-button svg { color: #6c6b67; }
.side-nav-button:hover { color: var(--ink); background: #f1f0ec; border-color: transparent; }
.side-nav-button:hover svg { color: var(--ink); }
.side-nav-button.active { color: #fff; background: #111; }
.side-nav-button.active svg { color: var(--gold); }
.side-nav-button.active::before { display: none; }

.searchbox { border: 1px solid var(--line-2); border-radius: 6px; background: #fff; }
.searchbox svg { color: var(--muted); }
.searchbox input { color: var(--ink); }
.searchbox input::placeholder { color: #9a9892; }
.filter-tab { min-height: 32px; border: 1px solid var(--line); border-radius: 6px; color: #333; background: #fff; font-weight: 600; font-size: 12.5px; }
.filter-tab.active { color: #fff; border-color: #111; background: #111; }
.customer-card { padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; }
.customer-card span, .customer-card small { color: var(--muted); }
.customer-card:hover, .customer-card.active { border-color: #111; background: #fff; }
.mobile-menu-actions .primary-button, .mobile-menu-actions .ghost-button { min-height: 40px; }

/* ---------- Bovenbalk ---------- */
.main > .topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.icon-button { border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.icon-button:hover { border-color: #111; }
.notif-badge { box-shadow: none; }

/* ---------- Knoppen ---------- */
.primary-button, .secondary-button, .ghost-button {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.12s ease, border-color 0.12s ease;
  transform: none !important;
  box-shadow: none !important;
}
.primary-button { color: #fff; border: 1px solid #111; background: #111; }
.primary-button:hover { background: #2b2b2b; border-color: #2b2b2b; }
.primary-button svg { color: var(--gold); }
.secondary-button { color: var(--ink); border: 1px solid var(--line-2); background: #fff; }
.secondary-button:hover, .secondary-button.active { border-color: #111; background: #fff; color: var(--ink); }
.ghost-button { color: var(--ink); border: 1px solid transparent; background: transparent; }
.ghost-button:hover { border-color: var(--line-2); background: #fff; }
.compact-button { min-height: 28px !important; padding: 0 9px !important; font-size: 12px !important; }
.full-button { width: 100%; }
.danger-button { border-radius: 6px; }

/* ---------- Invoervelden ---------- */
.main input[type="text"], .main input[type="email"], .main input[type="tel"],
.main input[type="number"], .main input[type="date"], .main input[type="time"],
.main input[type="datetime-local"], .main input[type="search"], .main input:not([type]), .main select, .main textarea,
.modal input[type="text"], .modal input[type="email"], .modal input[type="tel"],
.modal input[type="number"], .modal input[type="date"], .modal input[type="time"],
.modal input[type="datetime-local"], .modal input:not([type]), .modal select, .modal textarea {
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.main input:focus-visible, .main select:focus-visible, .main textarea:focus-visible,
.modal input:focus-visible, .modal select:focus-visible, .modal textarea:focus-visible {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

/* ---------- Panelen ---------- */
.panel, .metric {
  border: 1px solid var(--line);
  border-radius: 8px !important;
  background: #fff;
  box-shadow: none !important;
}
.panel:hover { box-shadow: none !important; }
.panel-heading h2 { font-size: 15px; }
.panel-heading h3 { font-size: 14px; }
.panel-subtitle { font-size: 12.5px; color: var(--muted); }
.collapse-toggle { width: 30px; height: 30px; border-radius: 6px; }
.empty-state { color: var(--muted); font-size: 13px; }
.section-divider { border-color: var(--line); }

/* ---------- Dashboard ---------- */
.dash-kop { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 4px 0 2px; }
.dash-kop h2 { margin: 0; font-size: 24px; }
#dashboardTodayLabel { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
#dashboardTodayLabel::first-letter { text-transform: uppercase; }
.dash-kop-acties { display: flex; gap: 8px; flex-wrap: wrap; }

.dash-cijfers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cijfer {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.cijfer:hover { border-color: #111; }
.cijfer span { color: var(--muted); font-size: 13px; font-weight: 600; }
.cijfer strong { font-size: clamp(21px, 1.9vw, 28px); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); overflow-wrap: anywhere; }
.cijfer small { color: var(--muted); font-size: 12px; }
.cijfer small b { color: var(--ink); font-weight: 700; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 12px; align-items: start; }
.dash-links, .dash-rechts { display: grid; gap: 12px; min-width: 0; }
.dashboard-today { margin: 0; border-radius: 8px; background: #fff; }
.dashboard-workspace { margin-top: 0; }

/* Weekstrip */
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.week-dag { min-width: 0; min-height: 96px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.week-dag.vandaag { border-color: #111; }
.week-dag.voorbij { opacity: 0.55; }
.week-dag-kop { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; margin-bottom: 6px; color: var(--muted); font-size: 11.5px; }
.week-dag-kop span::first-letter { text-transform: uppercase; }
.week-dag-kop strong { font-size: 13.5px; color: var(--ink); }
.week-dag.vandaag .week-dag-kop strong { padding: 0 5px; border-radius: 4px; background: #111; color: #fff; }
.week-item { display: block; width: 100%; margin-bottom: 4px; padding: 4px 6px; border: 0; border-radius: 4px; background: #f1f0ec; text-align: left; font-family: inherit; font-size: 11.5px; line-height: 1.3; cursor: pointer; }
.week-item:hover { background: #e7e5df; }
.week-item span { display: block; color: var(--muted); font-size: 10.5px; }
.week-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.week-leeg { color: #c8c6c0; font-size: 12px; }
.week-meer { padding: 0; border: 0; background: none; color: var(--muted); font-family: inherit; font-size: 11px; cursor: pointer; }

/* Vandaag */
.dashboard-today-head { display: none; }
.today-card { border-radius: 6px; }
.today-time strong { font-family: "DM Sans", sans-serif; }
.today-time small { letter-spacing: 0; text-transform: none; font-size: 11px; }
.today-btn { border-radius: 6px; padding: 8px 12px; font-weight: 600; }
.today-btn.icon { padding: 8px; }
.today-btn.primary { color: #fff; border-color: #111; background: #111; }
.today-btn.primary svg { color: var(--gold); }
.today-btn:hover { filter: none; border-color: #111; }
.today-empty { border-radius: 6px; border-style: solid; background: #fafaf8; }
.today-empty svg { color: var(--muted); }

.hero-next { margin: 0 0 10px; padding: 12px 14px; border: 1px solid #111; border-radius: 6px; background: #fff; color: var(--ink); }
.hero-next-pulse { background: var(--green); animation: none; box-shadow: none; }
.hero-next-body small { color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.hero-next-body strong { color: var(--ink); font-family: "DM Sans", sans-serif; font-size: 15px; }
.hero-next-body > span { color: var(--muted); }
.hero-next-vertrek { color: var(--ink) !important; }
.hero-next-vertrek svg, .hero-next-vertrek b { color: var(--ink); }
.hero-next-btn { border: 1px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--ink); }
.hero-next-btn:hover { background: #f1f0ec; }

/* Lijsten op het dashboard */
.dashboard-row { min-height: 0; padding: 10px 12px; border-radius: 6px; font-size: 13px; box-shadow: none; }
.dashboard-row:hover { border-color: #111; }
.dashboard-row strong { font-family: "DM Sans", sans-serif; font-size: 14.5px; }
.dashboard-row span { font-weight: 600; }
.dashboard-row i { height: 3px; background: var(--gold); }
.dashboard-row.highlight { border-color: #111; background: #fff; }
.dashboard-detail-metrics div { border-radius: 6px; }
.dashboard-conversion strong { font-family: "DM Sans", sans-serif; }

/* Grafieken */
.dashboard-charts { margin-top: 0; }
.vb-chart-card { border-radius: 8px; }
.vb-wbar i { border-radius: 3px 3px 1px 1px; background: var(--gold); box-shadow: none; }
.vb-wbar b { color: var(--ink); font-family: "DM Sans", sans-serif; }
.vb-doel-num { color: var(--ink); font-family: "DM Sans", sans-serif; }
.vb-donut-num { font-family: "DM Sans", sans-serif; }
.vb-donut-sub { letter-spacing: 0; text-transform: none; font-size: 10px; }
.radar-fill, .radar-doelbar div { background: var(--gold); }
.radar-tile { border-radius: 8px; border-color: var(--line); background: #fff; box-shadow: none; }
.radar-tile small { letter-spacing: 0; text-transform: none; font-weight: 600; }
.radar-tile strong { font-family: "DM Sans", sans-serif; }
.radar-tile.doel strong { color: var(--ink); }
.radar-month-bar { border-radius: 3px 3px 1px 1px; background: var(--gold); box-shadow: none; }
.radar-deal { border-radius: 6px; }
.radar-deal:hover { transform: none; border-color: #111; }
.deal-score { color: var(--ink); }
.metric-gold { border: 1px solid #111; background: #fff; border-radius: 8px; }

.opname-link-panel { display: grid; gap: 12px; justify-items: start; max-width: 560px; }
.opname-link-panel p { margin: 0; color: #333; font-size: 14px; line-height: 1.5; }

/* ---------- Kaart en route ---------- */
.route-map { border-radius: 6px; border-color: var(--line); }
.route-pin { font-family: "DM Sans", sans-serif; background: var(--gold); color: #111; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.route-pin.basis { background: #111; color: var(--gold); }
.route-pin.week { background: #b7b5ae; }
.route-sum-item { border-radius: 6px; background: #fff; }
.route-sum-item span { letter-spacing: 0; text-transform: none; font-size: 12px; }
.route-sum-item strong { font-family: "DM Sans", sans-serif; font-size: 16px; }
.route-leg { border-radius: 6px; }
.route-leg:hover { border-color: #111; }
.route-leg.basis-leg { background: #fafaf8; }
.route-leg-nr { font-family: "DM Sans", sans-serif; background: var(--gold); color: #111; }
.route-leg-nr.basis { background: #111; color: var(--gold); }
.route-leg-rit { font-family: "DM Sans", sans-serif; }
.route-tip { border: 1px solid var(--line); background: #fafaf8; color: #333; }
.route-warning { border-radius: 6px; }
.route-map-date { border-radius: 6px !important; }
.leaflet-container { font-family: "DM Sans", sans-serif; }
.leaflet-popup-content-wrapper { border-radius: 6px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); }
.leaflet-bar a { color: #111; }

/* ---------- Klantdossier ---------- */
.customer-dossier-header { background: #fff; }
.status-badge, .mini-badge { border-radius: 4px; font-weight: 600; }
.status-badge, .mini-badge { background: #f1f0ec; color: var(--ink); }
.phase { border-radius: 6px; }
.phase.active { border-color: #111; box-shadow: none; }
.phase.done { border-color: #bcd3c0; background: #f1f7f2; }
.phase span { background: #f1f0ec; font-weight: 700; }
.phase.active span { background: #111; color: #fff; }
.dossier-tabs { padding: 8px; border-radius: 8px; background: #fff; }
.dossier-tabs button { border-radius: 6px; font-weight: 600; }
.dossier-tabs button:hover { border-color: #111; background: #fff; }
.dossier-tabs button.active { border-color: #111; background: #111; color: #fff; }
.dossier-menu-toggle { border-radius: 6px; }
.dossier-menu-toggle > svg:first-child { color: var(--ink); }
.dossier-menu-toggle.open { border-color: #111; }
.dossier-menu-panel { border-radius: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12); }
.dossier-menu-panel button { border-radius: 6px; }
.dossier-menu-panel button.active { border-color: #111; background: #111; color: #fff; }
.dossier-menu-panel button.active svg { color: var(--gold); }
.customer-tab-page { border-radius: 8px; }
.directory-card { border-radius: 8px; }
.directory-card:hover { border-color: #111; transform: none; }
.directory-card h3 { font-size: 16px; }
.directory-stats div { border-radius: 6px; }
.directory-crm strong svg { color: var(--gold-2); }
.customer-new-badge, .source-badge, .followup-badge { border-radius: 4px; }
.actie-kaart { border-radius: 6px; }
.actie-chip { border-radius: 6px; }
.actie-chip.actief { border-color: #111; background: #111; color: #fff; }
.actie-chip.actief span { background: var(--gold); color: #111; }
.dossier-acties { border-radius: 6px; }
.kennismaker-row, .commissie-form { border-top-style: solid; border-top-color: var(--line); }
.kennismaker-row .kennismaker-label svg { color: var(--ink); }
.info-cell, .task-item, .note-item, .module-row, .quote-document-card, .photo-card, .service-chip, .check-item, .service-choice { border-radius: 6px; }
.module-row:hover { border-color: #111; }
.survey-detail-card, .survey-risk-alert, .archive-dossier-banner, .work-briefing-card, .fieldworker-card, .embed-frame, .beller-card, .beller-archief-rij { border-radius: 8px; }
.beller-card { background: #fff; }
.beller-nummer { font-family: "DM Sans", sans-serif; }
.fieldworker-avatar, .fieldworker-avatar.groot { border-radius: 6px; }

/* ---------- Vensters ---------- */
.modal-backdrop { background: rgba(17, 17, 17, 0.45); backdrop-filter: none; -webkit-backdrop-filter: none; }
.modal { border: 1px solid var(--line); border-radius: 8px !important; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18) !important; }
.modal-heading h2 { font-size: 18px; }
.request-wizard-steps button, .request-wizard-steps span { border-radius: 6px; }
.wizard-section { border-radius: 6px; }
.actie-soort, .actie-prio { border-radius: 6px; }
.actie-soort.actief { border-color: #111; background: #111; color: #fff; }
.actie-soort.actief svg { color: var(--gold); }
.toast { border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }

/* Zoeken en meldingen */
.gs-overlay { background: rgba(17, 17, 17, 0.5); backdrop-filter: none; -webkit-backdrop-filter: none; }
.gs-box { border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); }
.gs-input-row svg { color: var(--ink); }
.gs-input-row kbd { border-radius: 4px; }
.gs-item { border-radius: 6px; }
.gs-avatar { border-radius: 6px; background: #111; color: var(--gold); font-family: "DM Sans", sans-serif; }
.notif-panel { border-radius: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12); }
.notif-item { border-radius: 6px; }

/* Agenda */
.calendar-event { border-radius: 4px; }
.calendar-day-column, .calendar-month-day, .calendar-scroll { border-radius: 6px; }
.calendar-add-button { border-radius: 4px; }
.dagroute-panel, .dr-stop { border-radius: 6px; }

/* ---------- Mobiel ---------- */
.bottom-nav { display: none; }
@media (max-width: 820px) {
  .mobile-app-header {
    min-height: 56px !important;
    padding: 8px 14px !important;
    background: #fff !important;
    border-bottom: 1px solid var(--line);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .mobile-brand { display: block; }
  .mobile-brand img { width: auto !important; max-width: 150px; height: 30px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; }
  .sidebar {
    left: 10px; right: 10px; top: 66px;
    padding: 12px;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  }
  .mobile-menu-backdrop { inset: 56px 0 0; background: rgba(17, 17, 17, 0.35); }
  .side-nav-button { min-height: 40px; border-radius: 6px; }
  .main { padding: 12px 12px 0; }
  .main > .topbar { margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px solid var(--line); background: transparent; }
  .topbar h1, #pageTitle { font-size: 20px; }

  .bottom-nav {
    display: flex;
    left: 0; right: 0; bottom: 0;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .bottom-nav-btn { padding: 7px 4px; border-radius: 6px; color: var(--muted); font-weight: 600; font-size: 10.5px; }
  .bottom-nav-btn.active { color: var(--ink); background: #f1f0ec; box-shadow: none; }
  .bottom-nav-btn:not(.active):active { background: #f1f0ec; }

  .dash-kop { align-items: flex-start; flex-direction: column; gap: 10px; }
  .dash-kop h2 { font-size: 22px; }
  .dash-kop-acties { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .dash-kop-acties > * { width: 100%; min-height: 38px; }
  .dash-cijfers { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cijfer { padding: 12px 14px; }
  .cijfer strong { font-size: 22px; }
  .cijfer small { font-size: 11px; }
  .dash-grid { grid-template-columns: 1fr; gap: 10px; }
  .dash-links, .dash-rechts { gap: 10px; }
  .panel { padding: 13px 14px !important; }
  .today-card { padding: 10px 12px !important; }
  .route-map { height: 280px; }
}
@media (max-width: 640px) {
  .week-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .week-strip::-webkit-scrollbar { display: none; }
  .week-dag { flex: 0 0 118px; }
}
@media (max-width: 1180px) and (min-width: 821px) {
  .dash-grid { grid-template-columns: 1fr; }
}
/* Op het dashboard staat de begroeting al bovenaan; de paginatitel en de dubbele knop blijven dan weg. */
.main:has(#dashboardView:not([hidden])) > .topbar > div:first-child { display: none; }
.main:has(#dashboardView:not([hidden])) #openRequestModal { display: none; }
.main:has(#dashboardView:not([hidden])) > .topbar { align-items: center; }
@media (max-width: 360px) {
  .dash-cijfers { grid-template-columns: 1fr; }
}

/* ---------- Rust: geen opkom-animaties of zwevende hover-effecten ---------- */
.view-panel > section, .view-panel > div { animation: none !important; }
.directory-card:hover, .fieldworker-card:hover, .module-row:hover, .route-leg:not(.basis-leg):hover, .dashboard-quick-action:hover { transform: none !important; box-shadow: none !important; }

/* Kaartkop: datumkeuze blijft op één regel */
.route-map-panel > .panel-heading { flex-wrap: wrap; gap: 8px 12px; }
.route-map-actions { flex: none; display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; }
.route-map-date { max-width: 150px; min-height: 28px; padding: 0 8px !important; font-size: 12.5px !important; }
.route-nav-btn { min-width: 28px !important; padding-inline: 6px !important; font-size: 16px !important; }
@media (max-width: 640px) {
  .route-map-actions { width: 100%; }
  .route-map-date { flex: 1; max-width: none; }
}
@media (max-width: 820px) {
  /* Op de telefoon staat er op het dashboard niets in de bovenbalk: dan weg ermee. */
  .main:has(#dashboardView:not([hidden])) > .topbar { display: none; }
  .mobile-menu-button { display: none !important; }
}

/* Klantregels in de zijbalk: donkere tekst op wit */
.customer-card > span, .customer-card .customer-card-meta small { color: var(--muted); }
.customer-card.active { outline: 1px solid #111; border-color: #111; }
.customer-card .customer-card-badges .mini-badge { background: #c9c7c0; }
.filter-tab { border: 1px solid var(--line); border-radius: 6px; }

/* Dossier: werkbriefing en infocellen zonder gouden kaders */
.work-briefing-card { border: 1px solid #111; border-radius: 8px; background: #fff; }
.work-briefing-card h3 svg { color: var(--ink); }
.dmn-tekst small { text-transform: none !important; letter-spacing: 0 !important; font-weight: 600; color: var(--muted); }
.info-cell { border-left: 1px solid var(--line) !important; border-radius: 6px; }
.completion-bar i, .completion-bar > span { background: var(--gold) !important; }
.customer-dossier-heading h2 { font-size: 20px; }

/* Modulepagina's: de titel staat al in de bovenbalk; alleen de knoppen blijven over */
.module-command { padding: 0 !important; border: 0 !important; background: transparent !important; justify-content: flex-end; }
.module-command > div:first-child { display: none; }
.module-command:empty, .module-command:not(:has(button, a)) { display: none; }


/* ---------- Klantenpagina (ronde 2) ---------- */
.dir-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.dir-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; }
.dir-search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.dir-search input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; padding: 6px 0 !important; font-size: 14px !important; box-shadow: none !important; }
.dir-search input:focus { outline: none; }
.dir-search:focus-within { border-color: #111; }
#directorySort { min-height: 36px; padding: 0 10px !important; font-size: 13px !important; }
.dir-fasefilters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.dir-fasefilters .filter-tab { min-height: 30px; padding: 0 11px; font-size: 12.5px; width: auto; }
.directory-filters { margin-bottom: 8px; }
.dir-notice { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 2px 0 10px; }
.dir-telling { color: var(--muted); font-size: 12.5px; }
.dir-wachtend { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border: 1px solid #111; border-radius: 6px; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.dir-wachtend svg { width: 14px; height: 14px; }
.customer-directory { display: grid; gap: 8px; }
.dir-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.dir-card.heeft-afspraak { border-color: #cfcdc6; }
.dir-card.akkoord { box-shadow: inset 3px 0 0 #2e8540; }
.dir-main { min-width: 0; display: grid; gap: 3px; }
.dir-kop { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dir-naam { padding: 0; border: 0; background: none; color: var(--ink); font-family: inherit; font-size: 15.5px; font-weight: 700; text-align: left; cursor: pointer; }
.dir-naam:hover { text-decoration: underline; }
.dir-fase { background: #f1f0ec; }
.dir-regel { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-diensten { color: #333; }
.dir-feiten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 10px; margin-top: 5px; }
.dir-feiten > div { min-width: 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fafaf8; }
.dir-feiten span { display: block; color: var(--muted); font-size: 10.5px; font-weight: 600; }
.dir-feiten strong { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-feit-afspraak { border-color: #111 !important; background: #fff !important; }
.dir-feit-afspraak.vandaag { background: #111 !important; }
.dir-feit-afspraak.vandaag span, .dir-feit-afspraak.vandaag strong { color: #fff; }
.dir-feiten .crm-akkoord strong { color: #1d7a34; }
.dir-acties { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.dir-acties > * { min-height: 30px; justify-content: flex-start; font-size: 12.5px; }
@media (min-width: 1100px) {
  .dir-acties { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; max-width: 360px; }
  .dir-acties > * { justify-content: center; }
}
@media (max-width: 820px) {
  .dir-toolbar { gap: 6px; }
  #directorySort { flex: 1; }
  .dir-toolbar .primary-button { width: 100%; }
  .dir-fasefilters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .dir-fasefilters::-webkit-scrollbar { display: none; }
  .dir-fasefilters .filter-tab { flex: none; }
  .dir-card { grid-template-columns: 1fr; padding: 11px 12px; }
  .dir-feiten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dir-acties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dir-acties > * { justify-content: center; min-height: 36px; }
  .dir-acties .primary-button { grid-column: 1 / -1; }
  .mobile-icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-left: auto; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--ink); }
  .mobile-icon-btn svg { width: 18px; height: 18px; }
}
.mobile-icon-btn { display: none; }
@media (max-width: 820px) { .mobile-icon-btn { display: inline-grid; } }

/* Nieuwe aanvragen: besluitknoppen en mappen */
.lead-besluit { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); }
.lead-besluit .primary-button, .lead-besluit .secondary-button { min-height: 34px; }
.lead-weiger { color: var(--red); border-color: #e3c4bf; }
.lead-weiger:hover { border-color: var(--red); }
.lead-weiger svg { color: var(--red); }
.lead-besluit-uitleg { flex: 1 1 240px; color: var(--muted); font-size: 12px; }
.website-lead-review.needs-review { border-left: 3px solid #111; }
@media (max-width: 820px) {
  .lead-besluit > .primary-button, .lead-besluit > .secondary-button { flex: 1; justify-content: center; }
}

/* Aanvraagrij: op smallere schermen onder elkaar in plaats van ingeklemd */
@media (max-width: 1180px) {
  .website-lead-review { grid-template-columns: 1fr !important; }
  .lead-review-form { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lead-review-form > button { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .lead-review-form { grid-template-columns: 1fr !important; }
}
/* Op de klantenpagina staan zoeken en filters al op de pagina zelf: zijbalk-dubbel weg (desktop) */
@media (min-width: 821px) {
  .app-shell:has(#customersView:not([hidden])) #sidebarCustomerTools { display: none; }
}

/* Offertefilter-chips en cijferkaarten zonder goud */
.quote-chip { border-radius: 6px; font-weight: 600; }
.quote-chip.active { background: #111; border-color: #111; color: #fff; }
.quote-chip.active span { background: var(--gold); color: #111; }
.quote-chip:hover { border-color: #111; }
.directory-filters-label svg { color: var(--muted); }
.metric { border-left: 1px solid var(--line) !important; }
@media (max-width: 820px) {
  .insight-band { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
  .insight-band .metric { min-height: 0; padding: 10px 12px; }
}
