:root {
  --ink: #16120b;
  --paper: #eef1ee;
  --paper-2: #faf8f4;
  --line: #e0dbd0;
  --gold: #c9a96e;
  --gold-2: #c69a59;
  --gold-soft: #efe2ca;
  --muted: #6b6460;
  --green: #376d45;
  --blue: #315f7d;
  --steel: #52656f;
  --mint: #dfeade;
  --red: #a83d32;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(22, 18, 11, 0.12);
  font-family: "DM Sans", Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
}

.portal-body {
  background:
    linear-gradient(180deg, rgba(250, 248, 244, 0.92), rgba(238, 241, 238, 0.98)),
    url("https://i0.wp.com/veldhuisbouw.nl/wp-content/uploads/2026/04/ChatGPT-Image-23-apr-2026-14_00_07.png") center/cover fixed;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(22, 18, 11, 0.9), rgba(22, 18, 11, 0.36)),
    url("https://i0.wp.com/veldhuisbouw.nl/wp-content/uploads/2026/04/ChatGPT-Image-23-apr-2026-14_00_07.png") center/cover;
}

.login-card {
  width: min(430px, 100%);
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.login-logo {
  width: 168px;
  height: auto;
  padding: 9px;
  border-radius: 8px;
  background: var(--white);
}

.portal-login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.portal-login-card {
  background: rgba(250, 248, 244, 0.94);
}

.portal-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(22, 18, 11, 0.08);
}

.portal-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  background:
    linear-gradient(90deg, rgba(250, 248, 244, 0.96), rgba(250, 248, 244, 0.82)),
    url("https://i0.wp.com/veldhuisbouw.nl/wp-content/uploads/2026/04/ChatGPT-Image-23-apr-2026-14_00_07.png") center/cover;
}

.portal-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
}

.portal-hero p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portal-grid .panel:nth-last-child(-n + 2) {
  grid-column: auto;
}

.portal-list,
.portal-note {
  display: grid;
  gap: 12px;
}

.portal-note {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.portal-note p {
  margin: 0;
  color: var(--muted);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
}

.mobile-app-header,
.mobile-menu-backdrop,
.mobile-menu-actions {
  display: none;
}

.mobile-brand {
  min-width: 0;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.mobile-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.mobile-brand strong {
  min-width: 0;
  color: var(--ink);
  font-family: "Jost", sans-serif;
  font-size: 20px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  overflow-y: auto;
  color: var(--white);
  background: var(--ink);
}

.brand {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
}

.brand-logo {
  width: 74px;
  height: 58px;
  object-fit: contain;
  padding: 8px;
  border-radius: 8px;
  background: var(--paper-2);
}

.brand p,
.brand span,
.sidebar-contact span {
  display: block;
  margin: 0;
}

.brand p {
  font-family: "Jost", sans-serif;
  font-weight: 800;
  font-size: 18px;
}

.brand span,
.sidebar-contact {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.sidebar-contact,
.searchbox {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-contact {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.side-nav,
.sidebar-customer-tools {
  display: grid;
  gap: 10px;
}

.side-nav-button {
  min-height: 44px;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
}

.side-nav-button svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.side-nav-button.active,
.side-nav-button:hover {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.side-nav-button.active svg,
.side-nav-button:hover svg {
  color: var(--ink);
}

.searchbox {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
}

.searchbox svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.searchbox input {
  border: 0;
  color: var(--white);
  background: transparent;
}

.searchbox input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.filter-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.filter-tab {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
}

.filter-tab.active {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.customer-list {
  display: grid;
  gap: 10px;
}

.customer-card {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--white);
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
}

.customer-card:hover,
.customer-card.active {
  border-color: rgba(201, 169, 110, 0.85);
  background: rgba(201, 169, 110, 0.12);
}

.customer-card strong,
.customer-card span,
.customer-card small {
  display: block;
}

.customer-card span,
.customer-card small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.customer-card-top,
.customer-card-meta,
.topbar,
.top-actions,
.panel-heading,
.action-row,
.modal-actions,
.quote-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.main {
  min-width: 0;
  padding: 28px;
}

.topbar {
  margin-bottom: 20px;
  align-items: flex-start;
}

.top-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.page-subtitle {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Jost", sans-serif;
}

h1 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
}

h2 {
  font-size: 22px;
  line-height: 1.08;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--ink);
  font-weight: 800;
}

.primary-button {
  border-color: var(--gold);
  background: var(--gold);
}

.secondary-button {
  border-color: var(--line);
  background: var(--paper-2);
}

.secondary-button.active {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold-soft);
}

.ghost-button {
  color: inherit;
  border-color: var(--line);
  background: transparent;
}

.icon-button {
  width: 40px;
  padding: 0;
  border-color: var(--line);
  background: var(--paper-2);
}

.primary-button svg,
.secondary-button svg,
.ghost-button svg,
.icon-button svg {
  width: 17px;
  height: 17px;
}

.insight-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.view-panel {
  min-width: 0;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  background:
    linear-gradient(90deg, rgba(250, 248, 244, 0.96), rgba(250, 248, 244, 0.78)),
    url("https://i0.wp.com/veldhuisbouw.nl/wp-content/uploads/2026/04/ChatGPT-Image-23-apr-2026-14_00_07.png") center/cover;
  color: var(--ink);
}

.dashboard-hero .eyebrow {
  color: var(--gold);
}

.dashboard-hero h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.dashboard-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
}

.dashboard-hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-list {
  display: grid;
  gap: 10px;
}

.dashboard-row {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  background: var(--white);
}

.dashboard-row:hover {
  border-color: rgba(201, 169, 110, 0.9);
}

.dashboard-row span,
.dashboard-row small {
  position: relative;
  z-index: 1;
}

.dashboard-row span {
  font-weight: 800;
}

.dashboard-row strong {
  position: relative;
  z-index: 1;
  font-family: "Jost", sans-serif;
  font-size: 24px;
}

.dashboard-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-row i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  background: var(--gold);
}

.dashboard-row.passive {
  cursor: default;
}

.customer-directory {
  display: grid;
  gap: 12px;
}

.directory-card {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(360px, 1.4fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.directory-card h3 {
  font-size: 22px;
}

.directory-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.directory-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(68px, 1fr));
  gap: 8px;
}

.directory-stats div {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.directory-stats strong,
.directory-stats span {
  display: block;
  margin: 0;
}

.directory-stats strong {
  font-size: 13px;
}

.directory-stats span {
  font-size: 11px;
}

.metric,
.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.64) inset;
}

.metric {
  min-height: 116px;
  padding: 16px;
  display: grid;
  align-content: space-between;
}

.metric span,
.metric small {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  margin-top: 8px;
  font-family: "Jost", sans-serif;
  font-size: 30px;
  line-height: 1;
}

.workspace {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.work-main,
.detail-column {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.panel {
  padding: 18px;
}

.panel-heading {
  align-items: flex-start;
  margin-bottom: 16px;
}

.panel-heading.compact {
  align-items: center;
}

.collapsible-panel > .panel-heading {
  gap: 12px;
}

.collapsible-content {
  display: grid;
  gap: 16px;
}

.collapsible-panel.collapsed > .collapsible-content {
  display: none;
}

.collapse-toggle {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

.collapse-toggle svg {
  width: 18px;
  height: 18px;
}

.status-badge,
.phase-pill,
.mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-badge,
.mini-badge {
  color: var(--ink);
  background: var(--gold-soft);
}

.status-badge.startklaar,
.status-badge.project {
  color: var(--white);
  background: var(--green);
}

.status-badge.offerte {
  color: var(--white);
  background: var(--blue);
}

.status-badge.kennismaking,
.status-badge.opname {
  color: var(--white);
  background: var(--steel);
}

.status-badge.nazorg {
  color: var(--white);
  background: var(--ink);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
}

.phase {
  min-height: 112px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.phase.done {
  border-color: rgba(55, 109, 69, 0.34);
  background: #f2f7f1;
}

.phase.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.22);
}

.phase span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--paper);
  font-weight: 900;
  font-size: 12px;
}

.phase strong,
.phase small {
  display: block;
}

.phase strong {
  margin: 10px 0 5px;
  font-size: 13px;
}

.phase small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.split-grid,
.form-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .full,
.split-grid .full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  padding: 9px 11px;
  outline: 0;
}

textarea {
  resize: vertical;
}

.info-cell,
.task-item,
.note-item {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.info-cell span,
.info-cell strong {
  display: block;
}

.info-cell span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.info-cell strong {
  margin-top: 5px;
  font-size: 14px;
}

.quote-panel {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.quote-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
}

.quote-table th,
.quote-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}

.quote-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  background: var(--paper);
}

.quote-table td:last-child,
.quote-table th:last-child {
  text-align: right;
}

.quote-form {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1.4fr 88px 120px auto;
  gap: 10px;
  align-items: end;
}

.quote-total {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--gold-soft);
}

.quote-total strong {
  font-family: "Jost", sans-serif;
  font-size: 24px;
}

.project-timeline,
.task-list,
.note-list,
.quick-fields {
  display: grid;
  gap: 10px;
}

.project-step {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.project-step svg {
  width: 20px;
  height: 20px;
  color: var(--gold-2);
}

.customer-hero {
  margin: -18px -18px 16px;
  min-height: 132px;
  position: relative;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.customer-hero img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  display: block;
}

.customer-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 18, 11, 0.02), rgba(22, 18, 11, 0.72));
}

.customer-hero-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 13px;
  z-index: 1;
  color: var(--white);
}

.customer-hero-title strong,
.customer-hero-title span,
.task-item strong,
.task-item span,
.note-item strong,
.note-item span {
  display: block;
}

.customer-hero-title strong {
  font-family: "Jost", sans-serif;
  font-size: 24px;
  line-height: 1;
}

.customer-hero-title span,
.task-item span,
.note-item span {
  color: var(--muted);
  font-size: 12px;
}

.customer-hero-title span {
  color: rgba(255, 255, 255, 0.75);
}

.task-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  align-items: start;
}

.task-item input {
  min-height: auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.task-item.done strong {
  color: var(--muted);
  text-decoration: line-through;
}

.mini-form {
  margin-top: 11px;
  display: grid;
  gap: 8px;
}

.empty-state,
.form-error {
  color: var(--muted);
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(22, 18, 11, 0.55);
  z-index: 10;
}

.modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.modal-wide {
  width: min(1120px, 100%);
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  min-width: 250px;
  padding: 13px 15px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.danger-link {
  border: 0;
  color: var(--red);
  background: transparent;
  font-weight: 800;
}

.portal-box {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 13px;
  border: 1px solid rgba(201, 169, 110, 0.46);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--white), var(--gold-soft));
}

.portal-box > div:first-child strong,
.portal-box > div:first-child span {
  display: block;
}

.portal-box > div:first-child span,
.portal-actions span {
  color: var(--muted);
  font-size: 12px;
}

.portal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.danger-zone {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  padding: 13px;
  border: 1px solid rgba(182, 55, 44, 0.28);
  border-radius: 8px;
  background: rgba(182, 55, 44, 0.06);
}

.danger-zone strong,
.danger-zone span {
  display: block;
}

.danger-zone span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.danger-button {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

.danger-button svg {
  width: 17px;
  height: 17px;
}

.full-button {
  width: 100%;
}

.wizard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wizard-section {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.wizard-section.full {
  grid-column: 1 / -1;
}

.wizard-section h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.service-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-group {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
}

.service-group legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 900;
  font-size: 13px;
}

.service-choice,
.check-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  min-height: 30px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.service-choice input,
.check-item input {
  width: 17px;
  min-height: auto;
  height: 17px;
  margin: 2px 0 0;
}

.intake-form,
.measurement-form,
.photo-form {
  display: grid;
  gap: 14px;
}

.calendar-sync {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.calendar-sync svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.calendar-sync a {
  margin-left: auto;
  color: var(--ink);
  text-decoration: underline;
}

.calendar-sync.success {
  border-color: rgba(37, 99, 70, 0.28);
  background: #eef7f1;
  color: #256346;
}

.calendar-sync.danger {
  border-color: rgba(154, 50, 54, 0.26);
  background: #fff2f2;
  color: #9a3236;
}

.selected-services {
  display: grid;
  gap: 9px;
}

.service-chip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-chip span,
.photo-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-chip strong {
  display: block;
  font-size: 14px;
}

.icon-link {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--red);
  background: var(--paper-2);
}

.icon-link svg {
  width: 15px;
  height: 15px;
}

.checklist-grid {
  display: grid;
  gap: 9px;
}

.check-item {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.measurement-table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.measurement-form {
  margin-top: 12px;
  grid-template-columns: 1fr 1fr repeat(4, minmax(86px, 0.55fr));
  align-items: end;
}

.measurement-form .full {
  grid-column: 1 / -2;
}

.quote-table small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.photo-form {
  grid-template-columns: 1.1fr 1fr 0.8fr 0.8fr;
  align-items: end;
}

.photo-form .full {
  grid-column: 1 / -2;
}

.photo-input input {
  padding-top: 10px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.photo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--paper);
}

.photo-card div {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.photo-card strong {
  font-size: 14px;
}

.photo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.quote-prep {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.quote-prep div {
  min-height: 82px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--white), var(--mint));
}

.quote-prep strong {
  font-family: "Jost", sans-serif;
  font-size: 28px;
}

.quote-prep span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .insight-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid,
  .workspace {
    grid-template-columns: 1fr;
  }

  .directory-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body,
  .app-shell,
  .main,
  .portal-shell,
  .view-panel,
  .workspace,
  .work-main,
  .detail-column,
  .panel,
  .collapsible-content,
  .quick-fields,
  form,
  label {
    min-width: 0;
    max-width: 100%;
  }

  .app-shell {
    display: block;
    width: 100%;
    overflow-x: hidden;
  }

  .mobile-app-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(250, 248, 244, 0.96);
    backdrop-filter: blur(16px);
  }

  .mobile-brand {
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  .mobile-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }

  .mobile-brand strong {
    min-width: 0;
    color: var(--ink);
    font-family: "Jost", sans-serif;
    font-size: 18px;
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .mobile-menu-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--gold-soft);
    font-weight: 800;
  }

  .mobile-menu-button svg {
    width: 18px;
    height: 18px;
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 68px 0 0;
    z-index: 25;
    display: block;
    background: rgba(22, 18, 11, 0.42);
  }

  .mobile-menu-backdrop[hidden] {
    display: none;
  }

  .sidebar {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 78px;
    z-index: 30;
    height: auto;
    max-height: calc(100vh - 92px);
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .app-shell.menu-open .sidebar {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .sidebar .brand {
    display: none;
  }

  .mobile-menu-actions {
    display: grid;
    gap: 8px;
  }

  .mobile-menu-actions a,
  .mobile-menu-actions button,
  .side-nav-button {
    width: 100%;
  }

  .main {
    padding: 18px 16px 24px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .portal-shell {
    width: 100%;
    padding: 12px 14px 24px;
  }

  .portal-header,
  .portal-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-header {
    top: 8px;
  }

  .portal-header .ghost-button {
    width: 100%;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-stats {
    grid-template-columns: 1fr;
  }

  .topbar,
  .dashboard-hero,
  .top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    display: none;
  }

  .topbar {
    margin-bottom: 16px;
  }

  .page-subtitle {
    font-size: 15px;
    line-height: 1.45;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 20px;
  }

  .panel {
    padding: 14px;
    width: 100%;
    overflow: hidden;
  }

  .panel-heading {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .panel-heading > div {
    min-width: 0;
    flex: 1 1 170px;
  }

  .collapse-toggle {
    margin-left: 0;
  }

  .dashboard-hero {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    background:
      linear-gradient(90deg, rgba(250, 248, 244, 0.98), rgba(250, 248, 244, 0.9)),
      url("https://i0.wp.com/veldhuisbouw.nl/wp-content/uploads/2026/04/ChatGPT-Image-23-apr-2026-14_00_07.png") center/cover;
  }

  .dashboard-hero-actions,
  .inline-actions {
    justify-content: stretch;
  }

  .top-actions button,
  .top-actions a,
  .dashboard-hero-actions button,
  .inline-actions button,
  .action-row a,
  .action-row button,
  .modal-actions button {
    width: 100%;
  }

  .action-row,
  .quote-actions,
  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pipeline,
  .form-grid,
  .split-grid,
  .info-grid,
  .quote-form,
  .insight-band,
  .wizard-grid,
  .service-choice-grid,
  .measurement-form,
  .photo-form,
  .quote-prep,
  .directory-stats {
    grid-template-columns: 1fr;
  }

  .quote-panel,
  .measurement-table-wrap {
    overflow-x: visible;
  }

  .quote-table {
    min-width: 0;
  }

  .measurement-table-wrap .quote-table,
  .measurement-table-wrap thead,
  .measurement-table-wrap tbody,
  .measurement-table-wrap tr,
  .measurement-table-wrap td {
    display: block;
    width: 100%;
  }

  .measurement-table-wrap .quote-table {
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
  }

  .measurement-table-wrap thead {
    display: none;
  }

  .measurement-table-wrap tr {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }

  .measurement-table-wrap td {
    min-height: 34px;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(224, 219, 208, 0.72);
    font-size: 14px;
    text-align: left !important;
  }

  .measurement-table-wrap td:last-child {
    border-bottom: 0;
  }

  .measurement-table-wrap td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .measurement-table-wrap td[colspan] {
    display: block;
  }

  .measurement-table-wrap td[colspan]::before {
    content: "";
    display: none;
  }

  .measurement-form,
  .photo-form,
  .quote-form,
  .mini-form {
    width: 100%;
  }

  input,
  select,
  textarea {
    max-width: 100%;
  }

  .photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .photo-card,
  .customer-hero {
    width: 100%;
    max-width: 100%;
  }

  .customer-hero {
    margin: 0 0 16px;
    border-radius: 8px;
  }

  .customer-hero img {
    height: auto;
    min-height: 180px;
    aspect-ratio: 4 / 3;
  }

  .danger-zone {
    grid-template-columns: 1fr;
  }

  .portal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .wizard-section.full,
  .measurement-form .full,
  .photo-form .full {
    grid-column: auto;
  }
}

@media print {
  .sidebar,
  .top-actions,
  .dashboard-hero-actions,
  .customer-directory-panel,
  .quote-form,
  .mini-form,
  .modal-backdrop {
    display: none !important;
  }

  .app-shell,
  .workspace,
  .insight-band {
    display: block;
  }

  .main {
    padding: 0;
  }

  .panel,
  .metric {
    break-inside: avoid;
    margin-bottom: 12px;
    box-shadow: none;
  }
}
