:root {
  --brand-ink: #1d2025;
  --brand-yellow: #ffca08;
  --navy: #071d37;
  --blue: #0967d8;
  --blue-soft: #eef6ff;
  --line: #dce4ef;
  --line-dark: #c7d2e1;
  --text: #0f1f35;
  --muted: #61708a;
  --bg: #fafafa;
  --card: #ffffff;
  --orange: #f59e0b;
  --green: #0f9f5f;
  --red: #dc2626;
  --shadow: none;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
}
button, input, select, textarea { font: inherit; }
button {
  border: 1px solid var(--line-dark);
  background: #fff;
  color: var(--text);
  border-radius: 4px;
  padding: 4px 10px;
  height: 30px;
  font-weight: 400;
  cursor: pointer;
}
button.primary { background: var(--brand-yellow); color: var(--navy); border-color: #e0b000; }

.df-app { min-height: 100vh; }
.df-topbar {
  height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.df-logo { display: flex; align-items: center; gap: 12px; }
.df-logo img { height: 34px; width: auto; display: block; }
.df-env {
  border: 1px solid var(--brand-yellow);
  background: #fff8e1;
  color: #7a5c00;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.df-nav { display: flex; gap: 18px; align-items: center; min-width: 0; overflow-x: auto; }
.df-nav a { font-weight: 700; color: var(--text); text-decoration: none; padding: 8px 0; white-space: nowrap; }
.df-nav a.active { color: var(--blue); border-bottom: 3px solid var(--blue); }
.df-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.df-actions > * { flex-shrink: 0; }
.df-upload { display: flex; align-items: center; gap: 8px; }
.df-upload input[type=file] { width: 145px; font-size: 12px; }
.df-upload button { padding: 9px 12px; }
.df-exact-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 8px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  background: #fff8e1;
}
.df-exact-bar.ok { background: #ecfdf3; }
.df-exact-bar.niet_ingesteld, .df-exact-bar.niet_verbonden, .df-exact-bar.geen_admin { background: #fff8e1; }
.df-exact-bar-actions { display: flex; gap: 8px; align-items: center; }
.df-exact-bar-actions a, .df-exact-bar-actions button {
  font-size: 12px;
  padding: 5px 10px;
}
.df-exact-bar-actions form { margin: 0; }
.df-admin-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}
.df-admin-choice small { display: block; color: var(--muted); font-weight: 500; }
.df-error {
  margin: 14px 18px 0;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  color: #991b1b;
  background: #fff1f2;
  border-radius: 12px;
  font-weight: 700;
}
.df-ok {
  margin: 14px 18px 0;
  padding: 12px 14px;
  border: 1px solid #bbf7d0;
  color: #166534;
  background: #ecfdf3;
  border-radius: 12px;
  font-weight: 700;
}
.df-exact-bar-actions a {
  text-decoration: none;
  border: 1px solid var(--line-dark);
  background: #fff;
  color: var(--text);
  border-radius: 7px;
  padding: 5px 10px;
  font-weight: 700;
}
.df-exact-bar-actions a.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.df-admin-choice-btn {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
}
.df-admin-choice-btn strong { display: block; }
.df-admin-choice-btn small { display: block; color: var(--muted); font-weight: 500; margin-top: 2px; }
.df-admin-choice-btn.is-current { border-color: var(--blue); background: var(--blue-soft); }

.df-workspace {
  display: grid;
  grid-template-columns: 255px 430px minmax(560px, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 16px 16px;
  align-items: stretch;
  height: calc(100vh - 64px);
  overflow: hidden;
}
.df-invoices,
.df-center,
.df-document,
.df-bookings {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 31, 53, .04);
}

.df-invoices {
  height: 100%;
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
}
.df-sidebar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.df-sidebar-head h2 { font-size: 17px; margin: 0; }
.df-sidebar-head button { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; font-size: 18px; }
.df-small-label { display: block; font-size: 12px; font-weight: 800; margin: 0 0 6px; }
.df-admin-filter,
.df-search {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fff;
  height: 38px;
  padding: 0 12px;
  margin-bottom: 12px;
}
.df-invoices form { min-width: 0; max-width: 100%; }
.df-search { margin-bottom: 10px; }
.df-tile {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  margin-bottom: 12px;
  background: #fff;
}
.df-tile.selected { border-color: var(--blue); background: linear-gradient(135deg, #fff, #f7fbff); box-shadow: inset 4px 0 0 var(--blue); }
.df-docicon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.df-docicon.muted { color: #7c3aed; background: #f3e8ff; }
.df-tile strong { display: block; font-size: 14px; margin-bottom: 4px; }
.df-tile span { display: block; color: var(--text); font-size: 12px; line-height: 1.35; }
.df-tile b { display: block; margin-top: 5px; font-size: 14px; }
.df-tile em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; margin-top: 4px; color: #0f1f35; font-size: 12px; }
.df-tile em::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--orange); }
.df-sidebar-foot { display: flex; justify-content: space-between; color: var(--muted); padding: 8px 4px 0; }

.df-center { padding: 14px 18px; height: 100%; min-height: 0; overflow-y: auto; }
.df-center h2,
.df-document h2,
.df-bookings h2 { margin: 0 0 16px; font-size: 18px; }
.df-field { margin-bottom: 10px; }
.df-field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; color: var(--text); }
.df-field input,
.df-field select,
.df-field textarea {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  outline: 0;
}
.df-field input:focus,
.df-field select:focus,
.df-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(9, 103, 216, .12); }
.df-field.with-link { position: relative; }
.df-field.with-link input { padding-right: 43px; }
.df-field.with-link > button:not(.df-small-action) {
  position: absolute;
  right: 6px;
  top: 24px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 17px;
}
.df-field small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.df-flow { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.df-flow h3 { margin: 0 0 12px; font-size: 14px; }
.flowline { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.flowline span {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #eef2f7;
  font-weight: 800;
  color: var(--muted);
  font-size: 12px;
}
.flowline span.active { background: var(--blue); color: #fff; }
.flowline small { font-size: 9px; font-weight: 600; line-height: 1.1; }
.flowline i { color: var(--blue); font-style: normal; }
.df-flow button { color: var(--blue); border-color: #b7d2ff; padding: 8px 12px; }

.df-document { padding: 14px; height: 100%; min-height: 0; overflow: hidden; }
.df-doc-head { display: flex; justify-content: space-between; align-items: center; }
.df-viewer-toolbar {
  height: 42px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  background: #f8fafc;
  color: var(--text);
  font-weight: 700;
}
.df-preview {
  border: 1px solid var(--line);
  border-top: 0;
  height: calc(100% - 86px);
  background: #fff;
  overflow: hidden;
}
.df-preview iframe,
.df-preview img { width: 100%; height: 100%; border: 0; object-fit: contain; display: block; }
.df-placeholder { height: 100%; display: grid; place-items: center; text-align: center; color: var(--muted); }
.df-placeholder strong { color: var(--text); font-size: 18px; }

.df-bookings {
  grid-column: 1 / -1;
  padding: 12px;
  max-height: 255px;
  overflow: hidden;
}
.df-booking-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.df-booking-head button { color: var(--blue); border-color: #b7d2ff; }
.df-booking-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.df-booking-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.df-booking-table th,
.df-booking-table td { border-bottom: 1px solid var(--line); padding: 7px; text-align: left; vertical-align: middle; }
.df-booking-table th { background: #f8fafc; font-size: 12px; color: #24364e; }
.df-booking-table td { background: #fff; }
.df-booking-table input,
.df-booking-table textarea,
.df-booking-table select {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  min-height: 30px;
  padding: 7px 9px;
  background: #fff;
}
.df-booking-table textarea { min-height: 36px; resize: vertical; }
.df-booking-buttons { display: flex; gap: 10px; margin-top: 8px; }
.df-booking-buttons button { font-size: 12px; }
.df-totals {
  margin: 10px -12px -12px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 58px;
  background: #f8fafc;
  border-radius: 0 0 12px 12px;
}
.df-totals span { display: block; color: var(--text); font-weight: 800; font-size: 12px; }
.df-totals strong { font-size: 17px; }
.df-totals .ok { color: var(--green); }
.df-totals .bad { color: var(--red); }

@media (max-width: 1300px) {
  .df-topbar { grid-template-columns: auto 1fr; height: auto; padding: 14px 18px; }
  .df-nav, .df-upload, .df-actions { grid-column: 1 / -1; }
  .df-workspace { grid-template-columns: 240px 1fr; height: auto; overflow: visible; }
  .df-document { grid-column: 2; }
}
@media (max-width: 900px) {
  .df-workspace { grid-template-columns: 1fr; }
  .df-invoices { position: static; min-height: auto; }
  .df-document, .df-bookings { grid-column: auto; }
}


.df-vat-card {
  margin: 14px 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}
.df-vat-card h3 { margin: 0 0 10px; font-size: 14px; }
.df-vat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.df-vat-grid .df-field { margin-bottom: 0; }
.df-vat-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.df-line-note { color: var(--muted); font-weight: 700; font-size: 12px; margin-left: 10px; }
.df-booking-table select {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  min-height: 30px;
  padding: 5px 7px;
  background: #fff;
}
@media (max-width: 1400px) {
  .df-workspace { grid-template-columns: 245px 410px minmax(500px, 1fr); }
}
@media (max-width: 1300px) {
  .df-topbar { grid-template-columns: auto 1fr; height: auto; padding: 14px 18px; }
  .df-nav, .df-upload, .df-actions { grid-column: 1 / -1; }
  .df-workspace { grid-template-columns: 240px 1fr; height: auto; overflow: visible; }
  .df-invoices, .df-center, .df-document { height: auto; overflow: visible; }
  .df-document { grid-column: 2; }
}

/* v7 layout fixes */
.df-topbar {
  grid-template-columns: minmax(250px, auto) 1fr auto;
}
.df-actions button {
  border-radius: 8px;
  min-width: 0;
}
.df-workspace {
  grid-template-columns: 250px 420px minmax(620px, 1fr);
  grid-template-rows: minmax(0, 1fr) 225px;
  height: calc(100vh - 64px);
  overflow: hidden;
}
.df-invoices,
.df-center {
  overflow-y: auto;
  max-height: 100%;
}
.df-document {
  overflow: hidden;
}
.df-preview {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.df-preview iframe,
.df-preview img { object-fit: contain; }
.df-pdf-click-viewer {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
}
.df-pdf-click-viewer iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.pdf-canvas {
  display: block;
  box-shadow: 0 1px 8px rgba(15,31,53,.12);
}
.pdf-text-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.pdf-token {
  position: absolute;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: transparent;
  cursor: copy;
  border-radius: 2px;
  pointer-events: auto;
}
.pdf-token:hover {
  background: rgba(9,103,216,.16);
  outline: 1px solid rgba(9,103,216,.35);
}
.pdf-loading {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}
.df-test-upload {
  border: 1px dashed var(--line-dark);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 10px;
  background: #fbfdff;
}
.df-test-upload label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--muted);
}
.df-test-upload input[type=file] {
  width: 100%;
  font-size: 11px;
  margin-bottom: 6px;
}
.df-test-upload button {
  width: 100%;
  padding: 6px 10px;
  font-size: 12px;
}
.df-vat-card {
  background: #fff;
  border-color: #cfe0f5;
}
.df-field input[readonly] {
  background: #f8fafc;
  color: var(--muted);
}
.df-bookings {
  max-height: none;
  height: 225px;
  display: flex;
  flex-direction: column;
}
.df-booking-head {
  flex: 0 0 auto;
}
.df-booking-actions {
  display: flex;
  gap: 8px;
}
.df-booking-table-wrap {
  flex: 1 1 auto;
  overflow: auto;
}
.df-booking-table {
  min-width: 1200px;
}
.df-booking-table th,
.df-booking-table td {
  padding: 5px 7px;
}
.df-booking-table input,
.df-booking-table textarea,
.df-booking-table select {
  min-height: 28px;
  padding: 5px 7px;
  font-size: 12px;
}
.df-booking-table textarea {
  min-height: 34px;
  max-height: 52px;
}
.df-booking-buttons {
  flex: 0 0 auto;
  margin-top: 6px;
}
.df-totals {
  flex: 0 0 auto;
  margin-top: 8px;
  padding: 8px 18px;
  gap: 46px;
}
.df-totals strong { font-size: 15px; }
.df-modal {
  position: fixed;
  inset: 0;
  background: rgba(7,29,55,.32);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
.df-modal.open { display: flex; }
.df-modal-card {
  width: min(820px, 100%);
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 18px;
}
.df-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.df-modal-head h2 { margin: 0; font-size: 18px; }
.df-modal-head button {
  border: 0;
  background: transparent;
  font-size: 24px;
  padding: 0 6px;
}
.df-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.df-modal-grid label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
}
.df-modal-grid input,
.df-modal-grid select {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  height: 36px;
  padding: 0 10px;
}
.df-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 1100px) {
  .df-workspace { grid-template-columns: 230px 390px minmax(520px, 1fr); overflow-x: auto; }
}
@media (min-width: 901px) {
  .df-topbar { height: 64px !important; grid-template-columns: minmax(250px, auto) 1fr auto !important; padding: 0 20px !important; }
  .df-nav, .df-actions { grid-column: auto !important; }
  .df-workspace { height: calc(100vh - 64px) !important; overflow: hidden !important; }
  .df-invoices, .df-center, .df-document { height: 100% !important; min-height: 0 !important; }
  .df-document { grid-column: auto !important; }
}

/* v8: restore calmer document view + recognized-field selection only */
.df-workspace {
  grid-template-columns: 250px 420px minmax(680px, 1fr);
  grid-template-rows: minmax(0, 1fr) 205px;
  gap: 10px;
}
.df-bookings {
  height: 205px;
}
.df-document {
  padding: 14px;
  overflow: hidden;
}
.df-viewer-toolbar {
  gap: 18px;
  justify-content: center;
  height: 42px;
}
.df-viewer-toolbar button,
.df-viewer-toolbar .df-download {
  border: 0;
  background: transparent;
  padding: 4px 10px;
  min-width: auto;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}
.df-viewer-toolbar .js-zoom-reset {
  border: 1px solid var(--line-dark);
  background: #fff;
  border-radius: 7px;
}
.df-preview {
  height: calc(100% - 82px);
  overflow: hidden;
  background: #f8fafc;
}
.df-pdf-click-viewer {
  overflow: auto;
  background: #f8fafc;
}
.pdf-canvas {
  background: #fff;
  box-shadow: 0 2px 14px rgba(15,31,53,.14);
}
.pdf-region-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.pdf-region {
  position: absolute;
  border: 1px solid rgba(9,103,216,.20);
  background: rgba(255, 216, 77, .08);
  color: transparent;
  font-size: 1px;
  padding: 0;
  margin: 0;
  border-radius: 3px;
  cursor: copy;
  pointer-events: auto;
}
.pdf-region:hover {
  border-color: rgba(9,103,216,.75);
  background: rgba(255, 216, 77, .28);
}
.pdf-region.selected {
  border-color: var(--blue);
  background: rgba(9,103,216,.24);
  box-shadow: 0 0 0 2px rgba(9,103,216,.12);
}
.is-active-input {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(9,103,216,.12) !important;
}
.df-booking-table th,
.df-booking-table td {
  padding: 4px 6px;
}
.df-booking-table input,
.df-booking-table textarea,
.df-booking-table select {
  min-height: 26px;
  padding: 4px 6px;
}
.df-booking-buttons {
  margin-top: 5px;
}
.df-totals {
  padding: 7px 18px;
}

@media (min-width: 1500px) {
  .df-workspace { grid-template-columns: 250px 430px minmax(760px, 1fr); }
}

/* v9: restore scrollable dark document viewer and make booking area resizable */
.df-workspace {
  grid-template-rows: minmax(0, 1fr) var(--booking-height, 260px) !important;
}
.df-document {
  overflow: hidden !important;
}
.df-preview {
  height: calc(100% - 82px) !important;
  overflow: hidden !important;
  background: #242424 !important;
  border-color: #1f2933 !important;
}
.df-pdf-click-viewer {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: auto !important;
  background: #242424 !important;
  padding: 24px 0 !important;
}
.pdf-canvas {
  display: block !important;
  margin: 0 auto !important;
  background: #fff !important;
  box-shadow: 0 4px 22px rgba(0,0,0,.45) !important;
}
.pdf-region-layer {
  position: absolute !important;
  left: 50% !important;
  top: 24px !important;
  transform: translateX(-50%) !important;
  pointer-events: none !important;
  z-index: 3 !important;
}
.pdf-region {
  position: absolute !important;
  border: 2px solid rgba(9,103,216,.65) !important;
  background: rgba(255, 213, 79, .22) !important;
  color: transparent !important;
  font-size: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 3px !important;
  cursor: copy !important;
  pointer-events: auto !important;
}
.pdf-region:hover,
.pdf-region.selected {
  border-color: #0967d8 !important;
  background: rgba(255, 213, 79, .42) !important;
  box-shadow: 0 0 0 2px rgba(9,103,216,.20) !important;
}
.df-viewer-toolbar {
  background: #f8fafc !important;
  height: 42px !important;
  gap: 22px !important;
  justify-content: center !important;
}
.df-viewer-toolbar button,
.df-viewer-toolbar .df-download {
  border: 0 !important;
  background: transparent !important;
  padding: 4px 8px !important;
  min-width: 28px !important;
  color: var(--text) !important;
  text-decoration: none !important;
  font-weight: 900 !important;
}
.df-viewer-toolbar .js-zoom-reset {
  border: 1px solid var(--line-dark) !important;
  background: #fff !important;
  border-radius: 7px !important;
}
.df-bookings {
  position: relative !important;
  height: var(--booking-height, 260px) !important;
  min-height: 180px !important;
  max-height: 55vh !important;
  overflow: hidden !important;
  padding-top: 18px !important;
}
.df-booking-resizer {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 12px;
  cursor: ns-resize;
  background: linear-gradient(to bottom, transparent, rgba(9,103,216,.06));
  border-radius: 12px 12px 0 0;
}
.df-booking-resizer::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  border-radius: 999px;
  background: #c7d2e1;
  margin: 4px auto 0;
}
.is-resizing-bookings,
.is-resizing-bookings * {
  cursor: ns-resize !important;
  user-select: none !important;
}
.df-booking-table-wrap {
  max-height: calc(var(--booking-height, 260px) - 120px) !important;
  overflow: auto !important;
}
.df-booking-table textarea {
  min-height: 42px !important;
  max-height: 80px !important;
}

/* v10: exact native PDF viewer terug. Geen eigen PDF-knoppen of canvas-viewer. */
.df-document {
  overflow: hidden !important;
}
.df-native-preview {
  height: calc(100% - 42px) !important;
  overflow: hidden !important;
  background: #242424 !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
}
.df-native-preview iframe,
.df-native-preview img {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block !important;
}
.df-native-preview img {
  object-fit: contain !important;
  background: #242424 !important;
}

.df-small-action {
  position: static !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  width: fit-content;
  height: auto;
  padding: 8px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #0b63ce;
  font-weight: 800;
  cursor: pointer;
  font-size: 13px;
}
.df-modal-intro {
  margin: 0 0 14px;
  color: #60708a;
  font-size: 14px;
}
.df-modal-grid label button {
  width: 100%;
  min-height: 40px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #0b63ce;
  font-weight: 800;
  cursor: pointer;
}

/* v12: IBAN-controle. Geen bankgegevens wijzigen vanuit Scan & Herken. */
.df-iban-check {
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.35;
}
.df-iban-check strong {
  display: block;
  margin-bottom: 3px;
}
.df-iban-check.ok { border-color: #bbf7d0; background: #f0fdf4; color: #14532d; }
.df-iban-check.mismatch,
.df-iban-check.new_number_text,
.df-iban-check.no_known_iban { border-color: #fed7aa; background: #fff7ed; color: #7c2d12; }
.df-iban-check.missing,
.df-iban-check.unknown_supplier { border-color: #dbeafe; background: #eff6ff; color: #1e3a8a; }
.df-iban-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.df-iban-actions button {
  padding: 5px 8px;
  font-size: 12px;
  color: var(--blue);
  border-color: #b7d2ff;
}
.df-iban-actions label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}
.df-iban-actions input[type="checkbox"] {
  width: auto;
  height: auto;
}


/* v13: alleen functionaliteit voor boekingsregels. Geen layoutwijziging. */
.df-booking-table tbody tr.is-selected-row td {
  background: #f7fbff !important;
}
.df-booking-table tbody tr.is-selected-row td:first-child {
  border-left: 3px solid var(--blue);
}

/* v14: echte acties in boekingsregels, zonder layoutwijziging */
.df-line-actions {
  white-space: nowrap;
}
.df-line-actions button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 16px;
  line-height: 1;
}
.df-line-actions button:hover {
  background: #eef5ff;
  border-radius: 6px;
}
.df-booking-table tr.is-selected-row {
  box-shadow: inset 3px 0 0 #0b63ce;
}

/* v16: resterende functionele correcties zonder hoofdindeling te wijzigen */
.df-tile {
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}
.df-tile[hidden] { display: none !important; }
.df-icon-button {
  border: 1px solid var(--line-dark);
  background: #fff;
  border-radius: 8px;
  padding: 5px 9px;
  min-width: 34px;
  font-size: 15px;
}
.df-supplier-alert {
  margin: -4px 0 12px;
  padding: 9px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #0b3b78;
}
.df-supplier-alert .df-small-action {
  margin: 0;
  white-space: nowrap;
}
.df-modal-card-small { width: min(460px, 100%); }
.df-modal-grid.one-col { grid-template-columns: 1fr; }
.df-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-weight: 800;
}
.df-check input { width: auto; height: auto; }
.df-document-modal-card {
  width: min(1100px, 96vw);
  height: 92vh;
  display: flex;
  flex-direction: column;
}
.df-document-large {
  flex: 1;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #242424;
  overflow: hidden;
}
.df-document-large iframe,
.df-document-large img {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
}
.df-booking-table [data-col][hidden] { display: none !important; }
.df-booking-actions button { white-space: nowrap; }

/* v18: leverancier aanmaken, niet-opgeslagen werk en boekingssjablonen */
.has-unsaved-changes .df-actions button:not(.primary)::after {
  content: " *";
  color: var(--orange);
}
.df-modal-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
  background: #fbfdff;
}
.df-modal-section h3 {
  margin: 0 0 10px;
  font-size: 14px;
}
.df-modal-intro {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.45;
}
.df-modal-warning {
  margin: 12px 0 0;
  padding: 9px 10px;
  border: 1px solid #fed7aa;
  border-radius: 9px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
}
.df-label-button {
  align-content: end;
}
.df-label-button button {
  height: 36px;
}
.df-kvk-results {
  margin-top: 10px;
}
.df-kvk-result,
.df-template-choice {
  width: 100%;
  display: grid;
  gap: 4px;
  text-align: left;
  border: 1px solid var(--line-dark);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
}
.df-kvk-result span,
.df-template-choice span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.df-supplier-alert.is-linked {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.df-supplier-alert.is-linked span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #166534;
}
.df-template-preview {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}
.df-template-preview > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}
.df-template-preview-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 6px 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.df-template-preview-row:first-of-type {
  border-top: 0;
}
.df-template-preview-row b {
  grid-row: span 2;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
}
.df-template-preview-row span {
  font-weight: 700;
}
.df-template-preview-row small {
  color: var(--muted);
}
.df-template-list {
  display: grid;
  gap: 10px;
}
.df-empty-list {
  margin: 0;
  color: var(--muted);
}
.df-modal-actions-split {
  justify-content: space-between;
}
.df-modal-actions-split button:last-child {
  margin-left: auto;
}

.df-user {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  text-align: right;
  padding: 0 2px;
  white-space: nowrap;
}
.df-user-naam { font-weight: 800; font-size: 13px; }
.df-user-rol { color: var(--muted); font-size: 11px; font-weight: 700; }
.df-logout {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  padding: 8px 12px;
  font-weight: 700;
}
.df-small-note { color: var(--muted); font-size: 12px; }

.df-readonly .df-center input,
.df-readonly .df-center select,
.df-readonly .df-center textarea,
.df-readonly .df-bookings input,
.df-readonly .df-bookings select,
.df-readonly .df-bookings textarea {
  background: #f4f7fb;
  pointer-events: none;
}
.df-readonly .df-review textarea,
.df-readonly .df-review select,
.df-readonly .df-review button { pointer-events: auto; background: #fff; }
.df-readonly .df-line-actions { display: none; }

.df-review {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.df-review h3 { margin: 0 0 10px; font-size: 14px; }
.df-review select, .df-review textarea {
  width: 100%;
  margin: 0 0 10px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  padding: 8px;
}
.df-review-status { margin: 0 0 10px; font-weight: 700; }
.df-opmerkingen { display: grid; gap: 8px; margin-bottom: 12px; }
.df-opmerkingen article {
  background: #f7f9fc;
  border-radius: 8px;
  padding: 8px 10px;
}
.df-opmerkingen strong { display: block; }
.df-opmerkingen small { color: var(--muted); }
.df-opmerkingen p { margin: 6px 0 0; }
.df-review-fout { color: var(--red); font-weight: 700; }

.df-login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
  padding: 24px;
}
.df-login-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
  padding: 28px 28px 22px;
}
.df-login-card-wide { width: min(560px, 100%); }
.df-login-logo { height: 48px; width: auto; display: block; margin-bottom: 18px; }
.df-login-card h1 { margin: 0 0 8px; font-size: 22px; }
.df-login-intro { color: var(--muted); margin: 0 0 18px; line-height: 1.45; }
.df-login-form { display: grid; gap: 12px; }
.df-login-form label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; }
.df-login-form input {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 500;
}
.df-login-error, .df-login-warning, .df-login-note {
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 14px;
  line-height: 1.4;
}
.df-login-error { background: #fff1f2; color: #991b1b; border: 1px solid #fecaca; font-weight: 700; }
.df-login-warning { background: #fff8e1; border: 1px solid var(--brand-yellow); }
.df-login-warning span, .df-login-warning strong { display: block; }
.df-login-note { background: var(--blue-soft); }
.df-login-foot { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.df-login-links {
  margin: 16px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 12px;
}
.df-login-links a { font-weight: 700; }
.df-proef-eisen { margin: 0 0 16px; padding-left: 18px; color: var(--text); font-size: 14px; line-height: 1.5; }
.df-ww-regel { position: relative; display: block; }
.df-login-form .df-ww-regel input { display: block; width: 100%; padding-right: 64px; box-sizing: border-box; }
.df-login-form .df-ww-toon {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: auto;
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 6px;
  box-shadow: none;
}
.df-login-form .df-ww-toon:hover { color: var(--text); }
.df-login-form .df-ww-voorstel {
  justify-self: start;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  box-shadow: none;
  text-decoration: underline;
}
.df-login-form .df-ww-voorstel:hover { color: var(--navy); }
.df-proef-banner {
  margin: 0 24px 0;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.df-proef-banner.is-stop { background: #fff1f2; color: #991b1b; }
.df-proef-banner a { color: inherit; text-decoration: underline; }

.df-subnav {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
}
.df-subnav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
.df-subnav a.is-on {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-soft);
}

.df-herinner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 700;
}
.df-keuze {
  display: inline-flex;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  overflow: hidden;
}
.df-keuze label {
  margin: 0;
  padding: 6px 14px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  color: var(--muted);
}
.df-keuze label.is-on {
  background: var(--brand-yellow);
  color: var(--navy);
}
.df-keuze input { position: absolute; opacity: 0; pointer-events: none; }

.df-verbruik-kaarten {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 24px;
}
.df-verbruik-kaart {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  display: grid;
  gap: 4px;
}
.df-verbruik-kaart span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.df-verbruik-kaart strong {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
}
.df-verbruik-kaart em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}
.df-admin-wissel {
  display: flex;
  align-items: center;
  margin: 0;
}
.df-admin-wissel label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 0;
}
.df-admin-wissel select {
  min-width: 180px;
  padding: 6px 8px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.df-route-lijst {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}
.df-route-kaart {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.df-route-kaart h3 { margin: 0 0 6px; font-size: 16px; }
.df-route-stappen { margin: 0 0 6px; font-weight: 700; }
.df-route-acties { display: flex; gap: 12px; align-items: center; margin: 8px 0 0; }
.df-route-acties form { margin: 0; }
.df-stappen-keuze {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 12px;
}
.df-stappen-keuze legend { font-weight: 700; padding: 0 6px; }
.df-stappen-keuze .df-check { display: block; margin: 6px 0; }

.df-ligt-bij {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 18px;
}
.df-ligt-bij h2 { margin: 0 0 4px; font-size: 16px; }

.df-admin-lijst {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.df-admin-lijst li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.df-admin-lijst li.is-on { border-color: var(--blue); background: var(--blue-soft); }
.df-admin-lijst span { font-weight: 700; color: var(--blue); font-size: 13px; }

.df-juridisch h2 { font-size: 16px; margin: 18px 0 6px; }
.df-juridisch p { margin: 0 0 10px; line-height: 1.5; color: var(--text); }
.df-login-form .df-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.df-login-form .df-check a { font-weight: 700; }
@media (max-width: 700px) {
  .df-verbruik-kaarten { grid-template-columns: 1fr; }
  .df-herinner { flex-direction: column; align-items: flex-start; }
}
.df-hash-result {
  margin-top: 16px;
  padding: 12px;
  background: #f7f9fc;
  border-radius: 10px;
}
.df-hash-result code { display: block; margin-top: 8px; word-break: break-all; font-size: 12px; }
.df-setup-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.df-setup-table th, .df-setup-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.df-setup-table code { font-size: 14px; }
.df-setup-code { width: 100%; font-family: ui-monospace, monospace; font-size: 12px; }
.df-connect-exact {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border-radius: 7px;
  padding: 10px 16px;
  font-weight: 700;
}

.df-invoer {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}
.df-invoer-kop h1 { margin: 0 0 8px; font-size: 26px; }
.df-invoer-kop p { margin: 0 0 10px; color: var(--muted); line-height: 1.45; }
.df-invoer-mail { margin-bottom: 18px !important; }
.df-voor-kaart {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}
.df-voor-kaart.is-over { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(9,103,216,.15); }
.df-voor-kaart-kop {
  padding: 16px 20px 4px;
}
.df-voor-kaart-kop h2 {
  margin: 0;
  font-size: 18px;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.df-voor-kaart-kop h2 small {
  background: #eef6ff;
  color: var(--blue);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
}
.df-voor-kaart-kop h2 small.is-open {
  background: #fee2e2;
  color: #dc2626;
}
.df-drop-voor {
  margin: 12px 20px 16px;
  padding: 22px 16px;
  border-radius: 12px;
  background: #f8fafc;
}
.df-drop-voor strong {
  font-size: 15px;
  font-weight: 800;
  text-transform: none;
}
.df-drop-voor span { font-size: 13px; }
.df-voor-balk {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 20px 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #fff;
}
.df-voor-balk button:disabled,
.df-prul:disabled {
  opacity: .4;
  cursor: default;
}
.df-voor-balk-ruimte { flex: 1; }
.df-prul {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #64748b;
}
.df-prul:hover:not(:disabled) {
  color: var(--red);
  border-color: #fecaca;
  background: #fef2f2;
}
.df-voor-tabel-wrap {
  margin: 0 20px 20px;
  border: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  overflow: auto;
}
.df-voor-balk + .df-voor-tabel-wrap { border-radius: 0 0 10px 10px; }
.df-voor-tabel {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.df-voor-tabel th,
.df-voor-tabel td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.df-voor-tabel th {
  background: #f8fafc;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: none;
}
.df-voor-tabel tbody tr:last-child td { border-bottom: 0; }
.df-voor-tabel tbody tr:hover { background: #f8fafc; }
.df-voor-tabel tbody tr:has(.js-stuk-check:checked) { background: #eef6ff; }
.df-voor-tabel tr.is-dubbel { background: #fffbeb; }
.df-voor-check { width: 36px; }
.df-voor-tabel .df-doc-naam { font-weight: 700; }
.df-voor-tabel em { display: block; color: #9a3412; font-style: normal; font-weight: 700; font-size: 12px; margin-top: 2px; }
.df-voor-leeg td { color: var(--muted); padding: 28px 12px; }
.df-type-keuze {
  display: grid;
  gap: 6px;
  margin: 0 20px 8px;
  font-weight: 700;
  font-size: 13px;
}
.df-type-keuze select {
  padding: 8px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}
.df-drop {
  display: grid;
  gap: 8px;
  justify-items: center;
  border: 2px dashed var(--line-dark);
  background: #fff;
  border-radius: 16px;
  padding: 42px 24px;
  text-align: center;
}
.df-drop strong { font-size: 18px; }
.df-drop span { color: var(--muted); }
.df-drop.is-over { border-color: var(--blue); background: var(--blue-soft); }
.df-drop-locked { background: #f7f9fc; }
.df-drop-btn {
  margin-top: 8px;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}
.df-stukken { margin-top: 32px; }
.df-stukken h2 { font-size: 16px; margin: 0 0 12px; }
.df-stuk {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 8px;
}
.df-stuk strong, .df-stuk small { display: block; }
.df-stuk small { color: var(--muted); margin-top: 4px; font-weight: 500; }
.df-stuk em { color: var(--blue); font-style: normal; font-weight: 800; font-size: 13px; }
.df-stuk a { color: inherit; text-decoration: none; flex: 1; }
.df-stuk.is-open, .df-stuk.df-stuk-fout { border-color: #fecaca; }
.df-stuk.is-open { border-color: var(--blue); box-shadow: inset 4px 0 0 var(--blue); }

.df-invoer-breed { max-width: 1080px; }
.df-drop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.df-tabel {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 0 24px;
}
.df-tabel th, .df-tabel td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.df-tabel th { background: #f8fafc; font-size: 12px; color: var(--muted); }
.df-tabel input, .df-tabel select { width: 100%; }
.df-filterbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.df-filterbar input, .df-filterbar select { min-width: 180px; padding: 8px 10px; border: 1px solid var(--line-dark); border-radius: 8px; }
.df-filterchips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.df-filterchips a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 12px;
}
.df-filterchips a.is-on { background: var(--blue); color: #fff; border-color: var(--blue); }
.df-beoordel-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 18px;
  align-items: start;
}
.df-beoordel-kaart {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.df-preview-frame, .df-preview-img {
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #242424;
}
.df-split-form { display: flex; gap: 6px; align-items: center; }
.df-split-form input { width: 64px; padding: 6px 8px; border: 1px solid var(--line-dark); border-radius: 7px; }
.df-checks { display: grid; gap: 8px; margin: 12px 0 28px; }
.df-ok { margin: 14px 18px 0; }
main .df-ok, main .df-error { margin: 0 0 16px; }
.df-nav { overflow-x: auto; }
a.df-tile { text-decoration: none; color: inherit; }
.df-opmerkingen { display: grid; gap: 10px; margin: 16px 0; }
.df-opmerkingen div { background: #f8fafc; border-radius: 10px; padding: 10px 12px; }
.df-opmerkingen small { display: block; color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.df-voorbereiden {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}
.df-vakken {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.df-vak {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.df-vak.is-over { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(9,103,216,.15); }
.df-vak-fout { background: #fffafa; }
.df-vak-kop { padding: 16px 16px 8px; }
.df-vak-kop h2 { margin: 0 0 6px; font-size: 18px; display: flex; gap: 8px; align-items: baseline; }
.df-vak-kop h2 small {
  background: #eef6ff;
  color: var(--blue);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
}
.df-vak-kop h2 small.is-open {
  background: #fee2e2;
  color: #dc2626;
}
.df-vak-kop p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.df-drop-vak { margin: 12px 16px; padding: 18px 12px; }
.df-vak-lijst { padding: 8px 12px 12px; overflow: auto; flex: 1; }
.df-vak-acties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.df-vak-acties a.df-drop-btn { text-decoration: none; display: inline-flex; }
.df-split-aantal { display: flex; gap: 6px; align-items: center; font-weight: 700; font-size: 13px; }
.df-split-aantal input { width: 56px; padding: 6px 8px; border: 1px solid var(--line-dark); border-radius: 7px; }
.df-vak-lijst { display: flex; flex-direction: column; gap: 18px; }
.df-doc {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  position: relative;
  border: 1.5px solid #d7dee8;
  border-radius: 12px;
  padding: 16px 44px 14px 16px;
  margin-bottom: 0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.df-doc.is-dubbel { border-color: var(--orange); background: #fffbeb; }
.df-doc-body strong, .df-doc-body small, .df-doc-body em { display: block; }
.df-doc-body small { color: var(--muted); margin-top: 3px; font-weight: 500; }
.df-doc-body em, .df-doc em { color: #9a3412; font-style: normal; font-weight: 800; font-size: 12px; margin-top: 2px; }
.df-doc-kop {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  padding-right: 4px;
}
.df-doc-kop .df-doc-naam { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.df-doc-kop small { color: var(--muted); font-weight: 700; white-space: nowrap; }
.df-doc-fout { display: block; color: #9a3412; font-weight: 700; }
.df-doc-a {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.df-doc-a-tip {
  display: none;
  position: absolute;
  top: 28px;
  right: 0;
  z-index: 5;
  width: max-content;
  max-width: 240px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #172033;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
}
.df-doc-a:hover, .df-doc-a:focus { color: var(--ink); border-color: var(--ink); }
.df-doc-a:hover .df-doc-a-tip, .df-doc-a:focus .df-doc-a-tip { display: block; }
.df-doc-naam, .df-doc-link {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--blue);
}
.df-doc-naam { font-weight: 800; color: var(--ink); }
.df-doc-naam:hover, .df-doc-link:hover { text-decoration: underline; }
.df-doc-link { margin-top: 6px; font-size: 12px; font-weight: 700; }
.df-doc-kaart {
  grid-template-columns: 1fr;
  gap: 8px;
}
.df-doc-kaart .df-small-label { margin: 0; }
.df-doc-kaart .df-doc-admin { max-width: none; width: 100%; }
.df-doc-acties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.df-doc-acties .primary, .df-doc-acties a.primary {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.df-split-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.df-split-tool {
  border: 1px solid var(--line-dark);
  background: #fff;
  font-weight: 800;
  font-size: 13px;
}
.df-split-tool.is-on { outline: 2px solid var(--blue); }
.df-split-tool.is-factuur.is-on { background: #eff6ff; }
.df-split-tool.is-bijlage.is-on { background: #fffbeb; }
.df-split-tool.is-weg.is-on { background: #fef2f2; }
.df-split-uitleg { color: var(--muted); font-weight: 600; margin: 0 0 16px; }
.df-split-paginas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.df-split-kaart {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.df-split-kaart.is-factuur { border-color: #2563eb; }
.df-split-kaart.is-bijlage { border-color: #d97706; background: #fffbeb; }
.df-split-kaart.is-weg { border-color: #dc2626; opacity: .55; }
.df-split-thumb { width: 100%; height: auto; border-radius: 8px; background: #edf1f6; }
.df-split-xml {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 8px;
  font-weight: 800;
}
.df-split-kaart-kop { font-size: 12px; color: var(--muted); font-weight: 700; }
.df-split-kaart em { font-style: normal; font-weight: 800; font-size: 13px; }
.df-split-voet { margin-top: 8px; }
.df-doc-head-acties { display: flex; gap: 8px; align-items: center; }
.df-audit { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 55vh; overflow: auto; }
.df-audit li, .df-audit-kaart {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  border-left: 3px solid var(--blue);
}
.df-audit-kaart strong { display: block; font-size: 14px; }
.df-audit-kaart small { display: block; color: var(--muted); margin-top: 2px; font-weight: 600; }
.df-audit-actor, .df-audit-start { margin: 4px 0 0; font-size: 13px; }
.df-audit-start { color: var(--muted); }
.df-audit-kaart details { margin-top: 8px; }
.df-audit-kaart summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
}
.df-audit-kaart details p { margin: 6px 0 0; font-size: 13px; color: var(--text); }
.df-audit-meta {
  margin: 8px 0 0;
  display: grid;
  gap: 1px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 1100px) {
  .df-vakken { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .df-beoordel-grid { grid-template-columns: 1fr; }
  .df-topbar { grid-template-columns: 1fr; height: auto; padding: 10px 16px; }
}

.df-verstuur-balk {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, .08);
}
.df-verstuur-acties { display: flex; gap: 8px; flex-shrink: 0; }

.df-bezig {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 29, 55, .52);
}
.df-bezig[hidden] { display: none !important; }
body.df-bezig-aan { overflow: hidden; }
.df-bezig-kaart {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 28px 26px 24px;
  text-align: center;
  box-shadow: 0 24px 48px rgba(7, 29, 55, .22);
  border-top: 5px solid var(--brand-yellow);
}
.df-bezig-wacht {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 4px solid #f3e7b0;
  border-top-color: var(--brand-yellow);
  animation: df-bezig-draai .8s linear infinite;
}
@keyframes df-bezig-draai {
  to { transform: rotate(360deg); }
}
.df-bezig-titel {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}
.df-bezig-tekst {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}
.df-verstuur-acties .primary { min-width: 0; }
@media (min-width: 901px) {
  body.df-heeft-verstuur .df-workspace {
    height: calc(100vh - 64px - 64px) !important;
  }
}
@media (max-width: 900px) {
  .df-verstuur-balk { flex-direction: column; align-items: stretch; }
}

.df-voorraad {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}
.df-voorraad-kaarten {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}
.df-voorraad-kaart {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.df-voorraad-kaart span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.25;
}
.df-voorraad-kaart strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.df-voorraad-kaart strong.is-open { color: #dc2626; }
.df-voorraad-kaart.is-on {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.df-voorraad-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 0 0 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.df-voorraad-filters label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.df-voorraad-filters input,
.df-voorraad-filters select {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  font-weight: 500;
  color: var(--text);
}
.df-voorraad-filteracties {
  display: flex;
  align-items: end;
  gap: 12px;
  grid-column: span 1;
}
.df-voorraad-filteracties a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.df-voorraad-tabelwrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.df-voorraad .df-tabel {
  margin: 0;
  border: 0;
  border-radius: 0;
  min-width: 1100px;
}
.df-voorraad-tabel th {
  white-space: nowrap;
}
.df-voorraad-tabel td {
  font-size: 13px;
}
.df-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eef2f7;
  color: var(--text);
  white-space: nowrap;
}
.df-status.is-fout { background: #fee2e2; color: #b91c1c; }
.df-status.is-voorbereiden { background: #eef2f7; color: #334155; }
.df-status.is-in_validatie { background: #dbeafe; color: #1d4ed8; }
.df-status.is-wacht_op_beoordeling { background: #ffedd5; color: #c2410c; }
.df-status.is-afgekeurd { background: #fee2e2; color: #991b1b; }
.df-status.is-klaar_voor_boeken { background: #ccfbf1; color: #0f766e; }
.df-status.is-geboekt { background: #dcfce7; color: #166534; }
.df-status.is-archief { background: #f1f5f9; color: #475569; }
.df-waarschuwing {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap;
}
.df-waarschuwing.is-ok { background: #ecfdf3; color: #166534; }
.df-waarschuwing.is-letop { background: #ffedd5; color: #c2410c; }
.df-waarschuwing.is-fout { background: #fee2e2; color: #b91c1c; }
.df-voorraad-acties {
  white-space: nowrap;
}
.df-voorraad-acties a {
  margin-right: 8px;
  font-weight: 700;
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
}
.df-voorraad-acties a:hover { text-decoration: underline; }
.df-voorraad-voet {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 1100px) {
  .df-voorraad-kaarten { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .df-voorraad-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .df-voorraad-kaarten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .df-voorraad-filters { grid-template-columns: 1fr; }
}

/* Rustige administratieve werkruimte */
.df-app {
  display: block;
  min-height: 100vh;
  padding-left: 0;
  background: #f5f6f8;
}
.df-shell {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 56px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  background: #fff;
  color: var(--text);
  border-bottom: 1px solid #e5e7eb;
  overflow: visible;
}
.df-shell-merk {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  padding: 0;
  margin: 0;
  border: 0;
  flex-shrink: 0;
}
.df-shell-merk img { width: 24px; height: 24px; border-radius: 4px; background: #fff; }
.df-env-label {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #7a5b00;
  background: #ffca08;
  border: 1px solid #e0b000;
  border-radius: 2px;
  vertical-align: middle;
}
.df-env-bar {
  font-size: 12px;
  padding: 4px 16px;
  background: #fff8dc;
  border-bottom: 1px solid #ffca08;
  color: #3d2e00;
}
.df-shell-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.df-shell-nav a, .df-beheer > span {
  color: #475569;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 0;
  font-weight: 400;
  font-size: 14px;
  border-bottom: 1px solid transparent;
}
.df-shell-nav a:hover, .df-beheer:hover > span { color: var(--navy); }
.df-shell-nav a.active, .df-beheer.is-on > span {
  color: var(--navy);
  font-weight: 500;
  border-bottom-color: var(--navy);
}
.df-beheer { position: relative; }
.df-beheer > span { display: inline-block; cursor: default; }
.df-beheer-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
  padding: 4px 0;
  z-index: 40;
}
.df-beheer:hover .df-beheer-menu, .df-beheer:focus-within .df-beheer-menu { display: block; }
.df-beheer-menu a {
  display: block;
  padding: 7px 12px;
  color: #334155;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  border: 0;
}
.df-beheer-menu a:hover, .df-beheer-menu a.active { background: #f8fafc; color: var(--navy); }
.df-shell-rechts {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.df-shell-rechts > a {
  color: #475569;
  text-decoration: none;
  font-size: 13px;
}
.df-shell-rechts > a:hover { color: var(--navy); }
.df-shell-rechts button {
  font-weight: 400;
  padding: 4px 10px;
  height: 30px;
  border-radius: 4px;
}
.df-admin-wissel { margin: 0; }
.df-admin-wissel select {
  height: 30px;
  font-size: 13px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 0 8px;
  font-weight: 400;
}
.df-user {
  display: grid;
  line-height: 1.2;
  text-align: right;
}
.df-user-naam { font-size: 13px; font-weight: 500; color: var(--navy); }
.df-user-rol { font-size: 12px; font-weight: 400; color: var(--muted); }
.df-logout {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  color: var(--blue);
  border: 0;
  background: none;
  height: auto;
  padding: 0 2px;
}
.df-pagehead { margin: 0 0 18px; }
.df-pagehead h1, .df-invoer-kop h1, h1 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
}
.df-pagehead p, .df-invoer-kop p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 400; }
h2 { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.df-kaart {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 16px 18px;
  margin: 0 0 16px;
}
.df-kaart h2 { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
button.primary, .df-drop-btn, a.df-drop-btn {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 400;
  height: 30px;
  padding: 4px 12px;
  border-radius: 4px;
}
.df-error, .df-ok {
  margin: 8px 20px 0;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 400;
  font-size: 13px;
  border: 1px solid #fecaca;
}
.df-ok { border-color: #bbf7d0; }
.df-proef-banner {
  margin: 0;
  padding: 6px 20px;
  border-radius: 0;
  font-weight: 400;
  font-size: 13px;
}
.df-tabel { border-radius: 4px; border-color: #e5e7eb; font-size: 13px; }
.df-tabel th { font-weight: 600; font-size: 12px; padding: 8px 10px; }
.df-tabel td { padding: 7px 10px; font-weight: 400; }
.df-invoer, .df-voorbereiden, .df-voorraad {
  max-width: none;
  padding: 20px 24px 32px;
}
.df-invoer-breed { max-width: 1100px; }
.df-field label, .df-small-label { font-weight: 400; font-size: 13px; }
.df-field input, .df-field select, .df-field textarea,
.df-login-form input, .df-login-form select {
  height: 32px;
  border-radius: 4px;
  border-color: #e5e7eb;
  font-size: 13px;
  font-weight: 400;
}

/* Validatie: lijst 260, gegevens 360, document rest, regels volle breedte */
.df-workspace {
  display: grid !important;
  grid-template-columns: 260px 360px minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  height: calc(100vh - 56px) !important;
  padding: 12px 16px 12px;
  gap: 12px;
  overflow: hidden;
  align-items: stretch;
}
body.df-heeft-verstuur .df-workspace { height: calc(100vh - 56px - 44px) !important; }
.df-invoices, .df-center, .df-document, .df-bookings {
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: none;
}
.df-invoices { padding: 12px; }
.df-center { padding: 12px 14px; }
.df-document { padding: 10px 12px; grid-column: auto !important; }
.df-bookings {
  grid-column: 1 / -1 !important;
  height: 200px;
  max-height: 220px;
  padding: 10px 12px;
}
.df-tile {
  min-height: 0;
  border-radius: 4px;
  margin-bottom: 6px;
  padding: 8px;
}
.df-preview { background: #f8fafc; border-radius: 4px; }
.df-verstuur-balk { padding: 8px 16px; box-shadow: none; }
.df-booking-table-wrap, .df-booking-table th, .df-booking-table td { border-radius: 4px; }
.df-booking-table th, .df-booking-table td { padding: 4px 6px; }

/* Voorbereiden: breed links, splitsen/fout rechts */
.df-voor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}
.df-voor-hoofd, .df-vak {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: none;
  margin: 0;
  min-height: 0;
}
.df-voor-hoofd { padding: 16px 18px 18px; }
.df-voor-zij { display: grid; gap: 20px; }
.df-voor-hoofd-kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.df-voor-hoofd-kop h2, .df-vak-kop h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.df-voor-hoofd-kop h2 small, .df-vak-kop h2 small {
  background: #f1f5f9;
  color: #475569;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 500;
}
.df-voor-hoofd-kop h2 small.is-open, .df-vak-kop h2 small.is-open {
  background: #fee2e2;
  color: #b91c1c;
}
.df-voor-balk {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
}
.df-drop, .df-drop-voor {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px dashed #d1d5db;
  border-radius: 4px;
  background: #fafafa;
  text-align: left;
}
.df-drop span, .df-drop-voor span { font-size: 13px; color: var(--muted); font-weight: 400; }
.df-drop-btn { margin-top: 0; }
.df-voor-tabel-wrap {
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  overflow: auto;
}
.df-voor-tabel th, .df-voor-tabel td { padding: 8px 10px; font-size: 13px; font-weight: 400; }
.df-voor-tabel th { font-weight: 600; }
.df-voor-rij-actie { white-space: nowrap; }
.df-vak-kop { padding: 14px 16px 8px; }
.df-vak-kop p { margin: 4px 0 0; font-size: 13px; color: var(--muted); font-weight: 400; }
.df-vak-lijst { padding: 0 16px 12px; }
.df-vak-acties { padding: 8px 16px 14px; border-top: 1px solid #eef2f6; }
.df-doc-naam {
  font-weight: 400;
  background: none;
  border: 0;
  padding: 0;
  height: auto;
  color: var(--blue);
  cursor: pointer;
  text-align: left;
}
.df-empty-list { margin: 8px 0; font-size: 13px; color: var(--muted); font-weight: 400; }
.df-leeg-status, .df-leeg-paneel {
  margin: 8px 0;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Voorraad */
.df-voorraad-kaarten {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.df-voorraad-kaart {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px;
  min-height: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: none;
}
.df-voorraad-kaart span { font-size: 12px; font-weight: 400; }
.df-voorraad-kaart strong { font-size: 14px; font-weight: 600; }
.df-voorraad-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: flex-end;
  margin: 0 0 16px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.df-voorraad-filters label {
  min-width: 150px;
  flex: 1 1 150px;
  font-size: 13px;
  font-weight: 400;
}
.df-voorraad-filters input,
.df-voorraad-filters select {
  border-radius: 4px;
  font-weight: 400;
}
.df-voorraad-filteracties { flex: 0 0 auto; }
.df-filterchips { display: none; }
.df-ligt-bij {
  margin: 0 0 16px;
  padding: 0;
  background: none;
  border: 0;
}
.df-ligt-bij h2 { font-size: 16px; font-weight: 600; }
.df-voorraad-tabelwrap { border-radius: 4px; }
.df-prul { height: 30px; width: 30px; min-width: 30px; border-radius: 4px; }

@media (min-width: 1100px) {
  .df-workspace {
    display: grid !important;
    grid-template-columns: 260px 360px minmax(0, 1fr) !important;
    height: calc(100vh - 56px) !important;
    overflow: hidden !important;
  }
  .df-invoices, .df-center, .df-document { height: 100% !important; min-height: 0 !important; }
  .df-document { grid-column: auto !important; }
  .df-bookings { grid-column: 1 / -1 !important; }
}
@media (max-width: 1099px) {
  .df-voor-grid { grid-template-columns: 1fr; }
  .df-workspace {
    grid-template-columns: 240px 1fr !important;
    height: auto !important;
    overflow: visible !important;
  }
  .df-document { grid-column: 2 !important; }
  .df-bookings { grid-column: 1 / -1 !important; }
}
.df-account { position: relative; }
.df-account > summary {
  display: grid;
  line-height: 1.2;
  text-align: right;
  list-style: none;
  cursor: pointer;
  padding: 4px 2px;
}
.df-account > summary::-webkit-details-marker,
.df-account > summary::marker { display: none; }
.df-account-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
  padding: 4px 0;
  z-index: 40;
}
.df-account-menu a {
  display: block;
  padding: 7px 12px;
  color: #334155;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
}
.df-account-menu a:hover,
.df-account-menu a.active { background: #f8fafc; color: var(--navy); }

.df-beheer-app {
  display: block;
  min-height: 100vh;
  background: #f5f6f8;
}
.df-app-platform,
.df-app-instellingen,
.df-app-account {
  min-height: 100vh;
}
.df-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  overflow-x: auto;
}
.df-subnav a {
  padding: 10px 12px;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.df-subnav a:hover { color: var(--navy); }
.df-subnav a.active {
  color: var(--navy);
  border-bottom-color: var(--brand-yellow);
  font-weight: 500;
}
.df-beheer-zij { display: none; }
.df-beheer-merk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 16px 24px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.df-beheer-merk img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
}
.df-beheer-nav { display: grid; }
.df-beheer-nav a {
  color: #c5d0de;
  text-decoration: none;
  padding: 8px 20px;
  font-size: 14px;
}
.df-beheer-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.df-beheer-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.1);
  font-weight: 500;
}
.df-beheer-kader {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}
.df-beheer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 48px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.df-beheer-top a {
  color: var(--blue);
  text-decoration: none;
  font-size: 13px;
}
.df-beheer-top-rechts {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.df-beheer-main {
  flex: 1;
  padding: 24px 32px 40px;
}
@media (max-width: 900px) {
  .df-shell { height: auto; flex-wrap: wrap; padding: 8px 12px; }
  .df-shell-nav { flex-wrap: wrap; }
  .df-shell-rechts { width: 100%; justify-content: flex-end; }
  .df-workspace { grid-template-columns: 1fr !important; }
  .df-document, .df-bookings { grid-column: auto !important; }
  .df-beheer-app { grid-template-columns: 1fr; }
  .df-beheer-zij { position: static; height: auto; }
}

/* Merk: geel als primaire actie, blauw alleen voor links */
button.primary,
.df-drop-btn,
a.df-drop-btn,
.df-connect-exact,
.df-exact-bar-actions a.primary,
a.primary {
  background: var(--brand-yellow);
  border: 1px solid #e0b000;
  color: var(--navy);
  font-weight: 500;
  height: 32px;
  padding: 4px 12px;
  border-radius: 4px;
  box-shadow: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button.primary:hover,
.df-drop-btn:hover,
a.df-drop-btn:hover,
.df-connect-exact:hover,
a.primary:hover {
  background: #ffe06a;
}
.df-app { background: #fafafa; }
.df-shell-nav a.active,
.df-beheer.is-on > span {
  color: var(--navy);
  font-weight: 500;
  border-bottom: 2px solid var(--brand-yellow);
}
.df-kaart,
.df-voor-hoofd,
.df-vak,
.df-invoices,
.df-center,
.df-document,
.df-bookings,
.df-beoordel-kaart {
  border-top: 2px solid var(--brand-yellow);
  border-radius: 4px;
  padding: 12px 16px;
  box-shadow: none;
}
.df-beoordel-kaart { padding: 14px 16px; }
.df-beoordel-grid { gap: 12px; }
.df-preview-frame, .df-preview-img {
  min-height: 420px;
  border-radius: 4px;
}
.df-voor-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}
.df-voor-zij {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.df-drop, .df-drop-voor { padding: 8px 10px; margin: 0 0 12px; }
.df-voorraad-acties { white-space: nowrap; }
.df-voorraad-acties a { margin-right: 10px; font-size: 13px; }
.df-voorraad-filteracties button.primary { min-width: 72px; }
.df-voorraad-tabelwrap {
  border: 1px solid #e5e7eb;
  border-top: 2px solid var(--brand-yellow);
  background: #fff;
  border-radius: 4px;
  overflow: auto;
}
.df-ligt-bij { margin-bottom: 12px; }
.df-ligt-bij h2 { font-size: 14px; margin: 0 0 6px; }
.df-pagehead { margin: 0 0 12px; }
.df-instel-app .df-beheer-zij {
  background: #fff;
  color: var(--navy);
  border-right: 1px solid #e5e7eb;
}
.df-instel-app .df-beheer-merk { color: var(--navy); }
.df-instel-app .df-beheer-merk img { background: #fff; }
.df-instel-app .df-beheer-nav a { color: #475569; }
.df-instel-app .df-beheer-nav a:hover { color: var(--navy); background: #fffbeb; }
.df-instel-app .df-beheer-nav a.active {
  color: var(--navy);
  background: #fffbeb;
  box-shadow: inset 3px 0 0 var(--brand-yellow);
  font-weight: 500;
}
.df-app-platform .df-shell-nav a.active {
  box-shadow: none;
}
.df-platform-app .df-beheer-merk span { max-width: 160px; }
.df-platform-app .df-tabel,
.df-instel-app .df-tabel {
  border-top: 2px solid var(--brand-yellow);
}
.df-cijfers th, .df-cijfers td { text-align: left; }
@media (max-width: 900px) {
  .df-voor-zij { grid-template-columns: 1fr; }
}

.df-kop-icoon {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #475569;
  border-radius: 4px;
  cursor: pointer;
}
.df-kop-icoon:hover { background: #fffbeb; color: var(--navy); }
.df-kop-menu { position: relative; }
.df-kop-menu > summary { list-style: none; }
.df-kop-menu > summary::-webkit-details-marker { display: none; }
.df-kop-drop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
  padding: 6px 0;
  z-index: 50;
}
.df-kop-drop a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: #334155;
  text-decoration: none;
  font-size: 13px;
}
.df-kop-drop a:hover { background: #f8fafc; }
.df-kop-drop-kop {
  margin: 6px 12px 4px;
  padding-top: 6px;
  border-top: 1px solid #e5e7eb;
  font-size: 11px;
  color: #94a3b8;
  text-transform: none;
}
.df-account-samenvatting {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.df-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  background: #fff;
}
.df-user-blok { display: grid; line-height: 1.2; }
.df-account-kop {
  padding: 8px 12px 6px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 4px;
  display: grid;
  gap: 2px;
}
.df-account-kop strong { font-size: 13px; font-weight: 600; }
.df-account-kop span { font-size: 12px; color: var(--muted); font-weight: 400; }
.df-menu-knop {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 7px 12px;
  height: auto;
  font-size: 13px;
  color: #334155;
  border-radius: 0;
}
.df-menu-knop:hover { background: #f8fafc; }
.df-fb-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .25);
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
}
.df-fb-modal[hidden] { display: none; }
.df-fb-kaart {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 2px solid var(--brand-yellow);
  border-radius: 4px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}
.df-fb-kop { display: flex; justify-content: space-between; align-items: center; }
.df-fb-kop h2 { margin: 0; font-size: 16px; }
.df-fb-kaart label { display: grid; gap: 4px; font-size: 13px; }
.df-fb-kaart textarea, .df-fb-kaart select { width: 100%; }
.df-fb-meta { margin: 0; font-size: 12px; color: var(--muted); }
.df-fb-acties { display: flex; justify-content: flex-end; gap: 8px; }
.df-fb-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 3px solid var(--brand-yellow);
  padding: 8px 12px;
  font-size: 13px;
  z-index: 90;
}
.df-actiebalk { display: flex; gap: 8px; margin: 0 0 12px; }
.df-sec-knop, a.df-sec-knop {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--navy);
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
}
.df-admin-tabel input[type=text], .df-admin-tabel input:not([type=checkbox]) {
  width: 100%;
  height: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 0 6px;
}
.df-admin-tabel th, .df-admin-tabel td { vertical-align: middle; }
.df-account-app .df-beheer-zij {
  background: #fff;
  color: var(--navy);
  border-right: 1px solid #e5e7eb;
}
.df-account-app .df-beheer-merk { color: var(--navy); }
.df-account-app .df-beheer-nav a { color: #475569; }
.df-account-app .df-beheer-nav a:hover { color: var(--navy); background: #fffbeb; }
.df-account-app .df-beheer-nav a.active {
  color: var(--navy);
  background: #fffbeb;
  box-shadow: inset 3px 0 0 var(--brand-yellow);
}
.df-leeg-status { margin: 8px 0; font-size: 14px; color: var(--muted); font-weight: 400; }
