/* Hallmark · built: the project · redesign: polish · genre: modern-minimal · scope: app · 2026-11-12 · alleen css, layout en teksten ongewijzigd */
/* PRPP.Online - Responsive Stylesheet for PC/Laptop, Tablet & Smartphone (Touchscreen-friendly) */
:root {
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --primary: #475e53;
  --primary-dark: #35473e;
  --indigo: #475e53;
  --violet: #475e53;
  --green: #16803c;
  --green-light: #dcfce7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --orange: #ea580c;
  --bg-page: #f3f6f4;
  --bg-card: #ffffff;
  --text-main: #17211c;
  --text-muted: #5d6b65;
  --border: #cfd9d4;
  --border-light: #dfe6e2;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 12px;
  --shadow-sm: none;
  --shadow-md: 0 6px 20px -4px rgba(23, 33, 28, 0.10);
  /* Ontwerpwaarden (UI-opfrisser nov 2026) */
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-lg: 1.125rem;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px;
  --radius-pill: 999px;
  --shadow-lg: 0 14px 36px -6px rgba(23, 33, 28, 0.14);
  /* Polish nov 2026: donkerdere inktkleuren voor contrast (min. 4,5:1) */
  --danger-ink: #b91c1c;
  --warn-ink: #c2410c;
  --primary-muted: #5d756a;
  /* Afstandstokens (4px-raster): --space-N = N x 4px */
  --space-5: 20px;
  --space-7: 28px;
  --space-9: 36px;
  --space-10: 40px;
  /* Kleurtokens (afgeleid uit bestaande waarden, geen kleurwijziging): familie-lichtheid */
  --white: #ffffff;
  --amber-53: #facc15;
  --amber-77: #fde68a;
  --amber-88: #fef9c3;
  --amber-89: #fef3c7;
  --amber-96: #fffbeb;
  --blue-11: #111827;
  --blue-26: #0f4c75;
  --blue-27: #374151;
  --blue-33: #1e3a8a;
  --blue-34: #4b5563;
  --blue-40: #1e40af;
  --blue-41: #3730a3;
  --blue-48: #1d4ed8;
  --blue-62: #8b9bb0;
  --blue-65: #9ca3af;
  --blue-78: #93c5fd;
  --blue-84: #d1d5db;
  --blue-91: #e5e7eb;
  --blue-93: #dbeafe;
  --blue-94: #e0e7ff;
  --blue-95: #eef2f6;
  --blue-95-2: #eef3f7;
  --blue-96: #f3f4f6;
  --blue-98: #f9fafb;
  --gray-8: #141414;
  --gray-12: #1e1e1e;
  --gray-18: #2d2d2d;
  --gray-30: #46544d;
  --gray-45: #6b7a73;
  --gray-46: #6b8277;
  --gray-46-2: #6b7280;
  --gray-57: #8a9891;
  --gray-57-2: #8a9a92;
  --green-20: #14532d;
  --green-24: #166534;
  --green-27: #1e6b3a;
  --green-29: #15803d;
  --green-34: #2e7d32;
  --green-36: #16a34a;
  --green-39: #10b981;
  --green-45: #22c55e;
  --green-52: #34d399;
  --green-85: #bbf7d0;
  --orange-15: #431407;
  --orange-26: #713f12;
  --orange-26-2: #78350f;
  --orange-31: #92400e;
  --orange-37: #b45309;
  --orange-44: #d97706;
  --orange-50: #f59e0b;
  --orange-61: #fb923c;
  --orange-75: #f5d98b;
  --orange-92: #ffedd5;
  --orange-96: #fff7ed;
  --red-35: #991b1b;
  --red-41: #be123c;
  --red-71: #fb7185;
  --red-82: #fca5a5;
  --red-82-2: #fda4af;
  --red-89: #fecaca;
  --red-95: #ffe4e6;
  --red-97: #fff1f2;
  --red-98: #fff5f5;
  --sage-14: #1f2a25;
  --sage-16: #203130;
  --sage-17: #24312b;
  --sage-18: #24382e;
  --sage-21: #2f3d37;
  --sage-24: #334847;
  --sage-24-2: #2f4a3c;
  --sage-25: #384941;
  --sage-26: #335244;
  --sage-26-2: #335449;
  --sage-27: #43513a;
  --sage-29: #3d5654;
  --sage-35: #4f655b;
  --sage-37: #54685e;
  --sage-58: #8aa095;
  --sage-63: #8fb09f;
  --sage-75: #b8c7bf;
  --sage-76: #bacbc2;
  --sage-79: #c3d2d2;
  --sage-80: #c4d3cb;
  --sage-81: #c7d5cd;
  --sage-83: #cdd8d2;
  --sage-84: #d0ddd6;
  --sage-85: #d5ded9;
  --sage-85-2: #d3dfdf;
  --sage-85-3: #d9ded5;
  --sage-86: #d8e0db;
  --sage-86-2: #d7e2dc;
  --sage-86-3: #d6e1dd;
  --sage-88: #dbe4df;
  --sage-90: #e2e8e4;
  --sage-92: #e6efe9;
  --sage-92-2: #e8efef;
  --sage-93: #ebf1ee;
  --sage-93-2: #ecefea;
  --sage-93-3: #e6f4ea;
  --sage-94: #edf2ef;
  --sage-94-2: #eef3f0;
  --sage-94-3: #ebf2ef;
  --sage-95: #eff3f1;
  --sage-95-2: #f2f5f3;
  --sage-95-3: #eff4f1;
  --sage-96: #f4f7f5;
  --sage-96-2: #f2f6f4;
  --sage-97: #f6f8f7;
  --sage-97-2: #f5f8f6;
  --sage-97-3: #f6f9f7;
  --sage-98: #fafcfb;
  --violet-39: #6b21a8;
  /* RGB-kanalen voor transparante varianten */
  --ink-rgb: 23, 33, 28;
  --white-rgb: 255, 255, 255;
  --primary-rgb: 71, 94, 83;
  --black-rgb: 0, 0, 0;
  --deep-rgb: 6, 44, 26;
  --rgb-24-38-30: 24, 38, 30;
  --rgb-225-29-72: 225, 29, 72;
  --rgb-36-56-46: 36, 56, 46;
  --rgb-226-232-240: 226, 232, 240;
  --rgb-22-163-74: 22, 163, 74;
  --rgb-209-250-229: 209, 250, 229;
  --rgb-220-245-230: 220, 245, 230;
  --rgb-190-230-210: 190, 230, 210;
  --rgb-219-227-223: 219, 227, 223;
  --rgb-93-117-106: 93, 117, 106;
  --rgb-11-114-185: 11, 114, 185;
  --danger-rgb: 220, 38, 38;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

h1, h2, h3, h4,
.prpp-brand-logo,
.card-title-lg,
.section-card-title,
.assessment-main-title,
.ip-main-title,
.stage-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* =========================================================================
   BRAND LOGO (ORIGINAL PRPP ONLINE LOGO)
   ========================================================================= */
.prpp-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--blue-11);
  user-select: none;
}
.prpp-brand-logo .prpp-original-logo-img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}
.prpp-brand-logo .brand-prpp {
  letter-spacing: 0.03em;
}
.prpp-brand-logo .brand-online {
  font-weight: 700;
}

/* =========================================================================
   MODERN GREEN PASTEL BENTO LANDING PAGE & LOGIN MODAL (Ontwerp 1)
   ========================================================================= */

.landing-page-root {
  min-height: 100vh;
  background-color: var(--sage-97-3);
  color: var(--sage-14);
  font-family: var(--font-body);
  position: relative;
  overflow-x: hidden;
}

/* Landing Header */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(var(--white-rgb), 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(var(--rgb-209-250-229), 0.85);
}
.landing-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.landing-brand-col {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.landing-brand-tagline {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--sage-26);
  border-left: 2px solid var(--sage-80);
  padding-left: var(--space-4);
  display: inline-block;
  line-height: 1.3;
}
@media (max-width: 860px) {
  .landing-brand-tagline { display: none; }
}

.landing-nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.lang-select-pill-modern {
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  border: 1px solid var(--sage-84);
  background: var(--white);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--sage-26);
  cursor: pointer;
  outline: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
.lang-select-pill-modern:hover {
  border-color: var(--sage-76);
  background: var(--sage-96);
}
.btn-landing-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border-radius: 999px;
  background: var(--sage-94);
  color: var(--sage-26);
  font-weight: 700;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  border: 1px solid var(--sage-85);
}
.btn-landing-secondary:hover {
  background: var(--sage-90);
  color: var(--sage-17);
  text-decoration: none;
}
.btn-landing-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.22);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.btn-landing-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.30);
}

/* Bento Hero Section (Smaller, Refined Size) */
.landing-main-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) 60px var(--space-5);
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
}

/* Bento Card Base (More Compact & Refined) */
.bento-card {
  position: relative;
  border-radius: 24px;
  padding: var(--space-6) var(--space-6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 16px -2px rgba(var(--deep-rgb), 0.04);
}

/* Card Badges and Typography */
.bento-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  width: fit-content;
}

.bento-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-2);
  color: var(--sage-18);
}
.bento-card-desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--sage-21);
  margin-bottom: var(--space-4);
}

/* Green Color Themes for Bento Cards (Desaturated Sage / Eucalyptus) */
.bento-green-sage {
  background-color: var(--sage-93);
  border: 1px solid var(--sage-86-2);
}
.bento-green-sage .bento-badge-pill {
  background: var(--sage-86-2);
  color: var(--primary-dark);
}
.bento-green-sage .bento-icon-svg {
  color: var(--primary);
}
.bento-green-sage .bento-arrow-btn {
  background: var(--sage-86-2);
  color: var(--primary-dark);
}
.bento-green-sage .bento-arrow-btn:hover {
  background: var(--sage-81);
  color: var(--sage-17);
}

.bento-green-teal {
  background-color: var(--sage-92-2);
  border: 1px solid var(--sage-85-2);
}
.bento-green-teal .bento-badge-pill {
  background: var(--sage-85-2);
  color: var(--sage-24);
}
.bento-green-teal .bento-icon-svg {
  color: var(--sage-29);
}
.bento-green-teal .bento-arrow-btn {
  background: var(--sage-85-2);
  color: var(--sage-24);
}
.bento-green-teal .bento-arrow-btn:hover {
  background: var(--sage-79);
  color: var(--sage-16);
}

.bento-green-olive {
  background-color: var(--sage-93-2);
  border: 1px solid var(--sage-85-3);
}
.bento-green-olive .bento-badge-pill {
  background: var(--sage-85-3);
  color: var(--sage-27);
}
.bento-green-olive .bento-icon-svg {
  color: var(--sage-27);
}

.bento-green-mint {
  background-color: var(--sage-94-3);
  border: 1px solid var(--sage-86-3);
}
.bento-green-mint .bento-badge-pill {
  background: var(--sage-86-3);
  color: var(--sage-26-2);
}
.bento-green-mint .bento-icon-svg {
  color: var(--sage-26-2);
}

/* Large Hero Bento Card */
.bento-hero-main {
  grid-column: span 12;
  background: linear-gradient(135deg, var(--sage-96) 0%, var(--sage-98) 50%, var(--sage-95-3) 100%);
  border: 1px solid var(--sage-88);
  padding: var(--space-9) var(--space-10);
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: var(--space-8);
  border-radius: 28px;
  min-height: 360px;
  box-shadow: 0 8px 24px -4px rgba(var(--rgb-36-56-46), 0.05);
}
.bento-hero-title {
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.16;
  color: var(--sage-18);
  margin: var(--space-3) 0 var(--space-4) 0;
}
.bento-hero-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--sage-21);
  max-width: 560px;
  margin-bottom: var(--space-6);
}
.bento-hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* =========================================================================
   REALISTIC TABLET MOCKUP IN PHOTOREALISTIC CLINICAL WORKSPACE
   ========================================================================= */
.tablet-scene-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--space-2);
}

.tablet-scene-backdrop {
  position: relative;
  width: 100%;
  max-width: 440px;
}

/* Desk Surface & Ambient Lighting */
.tablet-ambient-desk {
  position: absolute;
  inset: -14px -14px -22px -14px;
  background: radial-gradient(circle at 65% 35%, rgba(var(--white-rgb), 0.95) 0%, rgba(var(--rgb-220-245-230), 0.5) 45%, rgba(var(--rgb-190-230-210), 0.25) 100%);
  border-radius: 34px;
  box-shadow: inset 0 1px 3px rgba(var(--white-rgb), 0.9), 0 20px 40px -15px rgba(var(--deep-rgb), 0.12);
  z-index: 1;
}

/* Tablet Device Chassis */
.tablet-device {
  position: relative;
  z-index: 2;
  background: var(--text-main);
  border-radius: 24px;
  padding: var(--space-2);
  box-shadow: 
    0 24px 48px -12px rgba(var(--deep-rgb), 0.26),
    0 8px 18px -4px rgba(var(--black-rgb), 0.14),
    0 0 0 1px rgba(var(--white-rgb), 0.15) inset;
  transform: perspective(1000px) rotateY(-2.5deg) rotateX(1.5deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.tablet-device:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  box-shadow: 
    0 28px 56px -12px rgba(var(--deep-rgb), 0.32),
    0 10px 22px -4px rgba(var(--black-rgb), 0.16);
}

/* Camera Dot */
.tablet-camera-notch {
  width: 5px;
  height: 5px;
  background: var(--sage-21);
  border-radius: 50%;
  margin: 0 auto var(--space-2) auto;
  box-shadow: 0 0 2px rgba(var(--black-rgb), 0.5);
}

/* Screen Glass Surface */
.tablet-screen {
  background: var(--white);
  border-radius: 17px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(var(--black-rgb), 0.06);
}

/* Subtle Screen Reflection Sheen */
.tablet-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(var(--white-rgb), 0.24) 0%, rgba(var(--white-rgb), 0.04) 40%, transparent 60%);
  pointer-events: none;
}

/* Tablet Screen UI: PRPP Assessment Scoreformulier */
.mock-app-header {
  background: var(--primary);
  color: var(--white);
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
}
.mock-app-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.mock-app-title {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.mock-app-badge {
  background: rgba(var(--white-rgb), 0.25);
  padding: 2px var(--space-2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.mock-client-bar {
  background: var(--sage-97);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--gray-30);
}
.mock-client-name {
  font-weight: 700;
  color: var(--text-main);
}

/* Stage One Mockup Banner */
.mock-stage1-banner {
  background: var(--sage-96-2);
  border-left: 3px solid var(--gray-46);
  padding: var(--space-2) var(--space-3);
  margin: var(--space-2) var(--space-3) var(--space-1) var(--space-3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mock-stage1-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sage-25);
}
.mock-stage1-score {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sage-18);
  background: var(--sage-88);
  padding: 2px var(--space-2);
  border-radius: 4px;
}

/* Stage Two Kwadranten Grid Mockup */
.mock-stage2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3) var(--space-2) var(--space-3);
}
.mock-quadrant-tile {
  border-radius: 8px;
  padding: var(--space-2) var(--space-2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid transparent;
}
/* Eén groene schaal: hoe donkerder, hoe hoger de score */
.mock-tile-perceive { background: var(--sage-85); border-color: var(--sage-80); }
.mock-tile-recall   { background: var(--sage-90); border-color: var(--sage-85); }
.mock-tile-plan     { background: var(--sage-94); border-color: var(--sage-86); }
.mock-tile-perform  { background: var(--sage-80); border-color: var(--sage-75); }

.mock-tile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mock-tile-letter {
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
}
.mock-tile-perceive .mock-tile-letter { color: var(--primary); }
.mock-tile-recall .mock-tile-letter   { color: var(--primary); }
.mock-tile-plan .mock-tile-letter     { color: var(--primary); }
.mock-tile-perform .mock-tile-letter  { color: var(--primary); }

.mock-tile-score {
  font-size: 0.75rem;
  font-weight: 700;
}
.mock-tile-perceive .mock-tile-score { color: var(--primary-dark); }
.mock-tile-recall .mock-tile-score   { color: var(--primary-dark); }
.mock-tile-plan .mock-tile-score     { color: var(--primary-dark); }
.mock-tile-perform .mock-tile-score  { color: var(--primary-dark); }

.mock-tile-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sage-21);
  margin-top: 2px;
}

/* Mock Descriptors mini row */
.mock-descriptor-preview {
  background: var(--sage-97);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin: 0 var(--space-3) var(--space-2) var(--space-3);
  padding: var(--space-1) var(--space-2);
  font-size: 0.75rem;
  color: var(--gray-30);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mock-descriptor-tag {
  background: var(--primary-muted);
  color: var(--white);
  padding: 1px var(--space-1);
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.75rem;
}

/* Stylus Pen next to tablet */
.tablet-stylus {
  position: absolute;
  right: -15px;
  top: 36px;
  bottom: 46px;
  width: 6px;
  background: linear-gradient(180deg, var(--gray-57) 0%, var(--border) 30%, var(--text-muted) 85%, var(--sage-21) 100%);
  border-radius: 999px;
  box-shadow: 2px 8px 12px rgba(var(--ink-rgb), 0.22);
  z-index: 3;
}

/* Bento Arrow Button */
.bento-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.bento-card:hover .bento-arrow-btn {
  transform: translate(2px, -2px);
}

/* Secondary Scroll Sections */
.landing-section {
  margin-top: 60px;
  padding-top: var(--space-10);
  border-top: 1px solid var(--border-light);
}
.section-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  background: var(--sage-94-2);
  color: var(--primary);
  border: 1px solid var(--sage-86);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--sage-18);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
.section-desc {
  font-size: 0.9375rem;
  color: var(--gray-30);
  max-width: 680px;
  line-height: 1.6;
}

/* Methodology Stages Cards */
.prpp-stages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-7);
}
.stage-card {
  background: var(--white);
  border-radius: 20px;
  padding: var(--space-6);
  border: 1px solid var(--sage-86);
  box-shadow: 0 4px 12px -2px rgba(var(--rgb-36-56-46), 0.03);
}
.stage-card-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-muted);
  margin-bottom: var(--space-2);
}
.stage-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--sage-18);
  margin-bottom: var(--space-2);
}
.stage-card p {
  color: var(--gray-30);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Security Grid */
.prpp-security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-7);
}
.security-card {
  background: var(--white);
  border-radius: 20px;
  padding: var(--space-6);
  border: 1px solid var(--sage-86);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.sec-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sage-94-2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.security-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--sage-18);
}
.security-card p {
  font-size: 0.8125rem;
  color: var(--gray-30);
  line-height: 1.5;
}

/* Landing Footer */
.landing-footer {
  margin-top: 72px;
  border-top: 1px solid var(--border-light);
  padding: var(--space-9) 0 52px 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-links {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--gray-30);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================================================
   LOGIN POP-UP MODAL (Overlay)
   ========================================================================= */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(var(--rgb-24-38-30), 0.50);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  overflow-y: auto;
  animation: modalOverlayIn 0.2s ease-out;
}
@keyframes modalOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.login-modal-card {
  background: var(--white);
  border-radius: 28px;
  max-width: 480px;
  width: 100%;
  padding: var(--space-9) var(--space-8);
  position: relative;
  box-shadow: 0 25px 60px -15px rgba(var(--rgb-24-38-30), 0.35);
  border: 1px solid rgba(var(--rgb-219-227-223), 0.9);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--sage-86);
  background: var(--sage-95-2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9375rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
.login-modal-close:hover {
  background: var(--sage-90);
  color: var(--sage-18);
}

.login-modal-brand {
  text-align: center;
  margin-bottom: var(--space-6);
}
.login-modal-sub {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: var(--space-1);
}

/* Modal Tab Switcher */
.login-modal-tabs {
  display: flex;
  background: var(--sage-95-2);
  padding: var(--space-1);
  border-radius: 12px;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
  border: 1px solid var(--sage-86);
}
.login-tab-btn {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--sage-37);
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.login-tab-btn.active {
  background: var(--white);
  color: var(--sage-18);
  box-shadow: 0 2px 6px rgba(var(--black-rgb), 0.06);
}

.form-input-modern {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input-modern:focus {
  outline: none;
  border-color: var(--primary-muted);
  box-shadow: 0 0 0 3px rgba(var(--rgb-93-117-106), 0.18);
}

.accesscode-input-modern {
  width: 100%;
  padding: var(--space-4);
  font-size: 1.35rem;
  letter-spacing: 0.22em;
  text-align: center;
  border: 2px dashed var(--gray-46);
  border-radius: 12px;
  background: var(--sage-97-2);
  font-weight: 700;
  color: var(--sage-18);
}

.label-with-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}
.forgot-pw-link {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.forgot-pw-link:hover {
  text-decoration: underline;
  color: var(--sage-18);
}

.btn-pill-lg {
  padding: var(--space-3) var(--space-5);
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.login-modal-card .btn-login-blue,
.login-modal-card .btn-purple-full {
  background: var(--primary) !important;
  color: var(--white) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.22);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.login-modal-card .btn-login-blue:hover,
.login-modal-card .btn-purple-full:hover {
  background: var(--primary-dark) !important;
  opacity: 1 !important;
  box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.30);
}

.modal-footer-switch {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.link-switch-tab {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.link-switch-tab:hover {
  color: var(--sage-18);
}

.modal-order-sub-banner {
  background: var(--sage-97-2);
  border: 1px solid var(--sage-86);
  border-radius: 12px;
  padding: var(--space-3) var(--space-4);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--sage-25);
}
.modal-order-sub-banner a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.modal-order-sub-banner a:hover {
  color: var(--sage-18);
  text-decoration: underline;
}

.modal-tab-desc {
  font-size: 0.8125rem;
  color: var(--gray-30);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.check-label-modal {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.8125rem;
  color: var(--gray-30);
  line-height: 1.45;
}
.check-label-modal input {
  margin-top: var(--space-1);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .bento-hero-main {
    grid-template-columns: 1fr;
    padding: var(--space-8) var(--space-6);
  }
  .bento-hero-title {
    font-size: 2rem;
  }
  .tablet-scene-container {
    margin-top: var(--space-3);
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card {
    grid-column: span 1 / -1 !important;
  }
  .bento-hero-main {
    grid-column: span 1 / -1 !important;
  }
  .landing-main-wrap {
    padding: var(--space-4) var(--space-4) var(--space-10) var(--space-4);
  }
}

/* Legacy Screen classes kept for backward compatibility */
.welcome-light-bg {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, var(--sage-96) 0%, var(--sage-94) 45%, var(--sage-97) 100%);
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
}

.welcome-topbar {
  display: flex;
  justify-content: flex-end;
}

.lang-select-pill {
  padding: var(--space-2) var(--space-4);
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
}

.welcome-center {
  max-width: 780px;
  width: 100%;
  margin: auto;
  text-align: center;
  padding: var(--space-6) var(--space-3);
}

.welcome-logo-large .prpp-brand-logo {
  font-size: 2.3rem;
}
.welcome-logo-large .prpp-original-logo-img {
  height: 76px;
  width: auto;
}
.welcome-logo-large .brand-wheel {
  width: 68px;
  height: 68px;
}

.welcome-h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: var(--space-4);
}
.welcome-sub {
  color: var(--text-muted);
  margin-top: var(--space-2);
  font-size: 1.125rem;
}

.welcome-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.welcome-choice-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-7);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.welcome-choice-card h2 {
  font-size: 1.125rem;
}
.welcome-choice-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  min-height: 44px;
}

.choice-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}
.choice-icon-blue {
  background: var(--sage-90);
  color: var(--indigo);
}
.choice-icon-purple {
  background: var(--sage-94);
  color: var(--violet);
}

.btn-indigo-full, .btn-violet-full, .btn-purple-full, .btn-login-blue {
  width: 100%;
  padding: var(--space-3) var(--space-5);
  border-radius: 8px;
  border: none;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-indigo-full { background: var(--primary-dark); }
.btn-violet-full { background: var(--primary); }
.btn-purple-full { background: var(--primary-dark); }
.btn-login-blue { background: var(--primary); }
.btn-indigo-full:hover, .btn-violet-full:hover, .btn-purple-full:hover, .btn-login-blue:hover {
  opacity: 0.92;
}

.welcome-footer-links {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  font-size: 0.9375rem;
}

.password-input-group {
  display: flex;
}
.password-input-group .form-input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.password-eye-btn {
  padding: 0 var(--space-4);
  border: 1px solid var(--border);
  border-left: none;
  background: var(--white);
  cursor: pointer;
  font-size: 1.125rem;
}

.demo-accounts-title {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Access Code Screen (Matches Code invoeren scherm.png) */
.accesscode-wrap {
  max-width: 480px;
  width: 100%;
  margin: auto;
  text-align: center;
}
.accesscode-icon-badge {
  font-size: 2.5rem;
  color: var(--indigo);
}
.accesscode-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-top: var(--space-2);
}
.accesscode-back-link {
  display: inline-block;
  margin-top: var(--space-2);
  color: var(--indigo);
  font-weight: 600;
}
.accesscode-card {
  text-align: left;
  padding: var(--space-7);
}
.accesscode-input {
  width: 100%;
  padding: var(--space-3);
  font-size: 1.125rem;
  letter-spacing: 0.25em;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* =========================================================================
   TOP NAVBAR & APP SHELL
   ========================================================================= */
.top-navbar {
  background: rgba(var(--white-rgb), 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(var(--ink-rgb), 0.03);
}

.navbar-inner {
  /* Zelfde breedte en zijmarge als .main-workspace, zodat logo/menu uitlijnen met de pagina-inhoud */
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-7);
  flex-wrap: wrap;
}

.brand-link:hover {
  text-decoration: none;
}

/* Top-Menu Stijl A: Zachte Capsule-balk (Segmented) */
.main-nav {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  background: var(--sage-95);
  padding: var(--space-1);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.nav-pill {
  font-family: var(--font-heading);
  background: transparent;
  border: 1px solid transparent;
  padding: var(--space-2) var(--space-4);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-30);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 38px;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}
.nav-pill svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  opacity: 0.72;
  flex-shrink: 0;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}
.nav-pill:hover {
  background: rgba(var(--white-rgb), 0.55);
  color: var(--text-main);
  text-decoration: none;
}
.nav-pill:hover svg {
  opacity: 1;
}
.nav-pill.active {
  background: var(--white);
  color: var(--text-main);
  font-weight: 700;
  border-color: rgba(var(--rgb-226-232-240), 0.9);
  box-shadow: 0 2px 8px rgba(var(--ink-rgb), 0.08), 0 1px 2px rgba(var(--ink-rgb), 0.04);
}
.nav-pill.active svg {
  color: var(--primary);
  opacity: 1;
}
.nav-pill-remco {
  background: var(--amber-89);
  color: var(--orange-31);
  border-color: var(--orange-50);
}
.nav-badge {
  background: var(--danger);
  color: var(--white);
  font-size: 0.75rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-profile-trigger {
  font-family: var(--font-heading);
  background: var(--sage-97);
  border: 1px solid var(--border-light);
  padding: var(--space-1) var(--space-4) var(--space-1) var(--space-2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--sage-14);
  min-height: 40px;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}
.user-profile-trigger:hover {
  background: var(--sage-95);
  border-color: var(--border);
  box-shadow: 0 2px 6px rgba(var(--ink-rgb), 0.05);
}
/* Gebruikersnaam + uitlogicoon rechtsboven naast elkaar */
.navbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.btn-logout-icon {
  background: var(--sage-97);
  border: 1px solid var(--border-light);
  color: var(--gray-30);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}
.btn-logout-icon:hover,
.btn-logout-icon:focus-visible {
  background: var(--danger-light);
  border-color: var(--red-82);
  color: var(--danger-ink);
}
.user-avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--blue-34);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
}

/* =========================================================================
   COMMON CARDS, BUTTONS (STIJL 2 — OPVALLENDER), INPUTS, TABLES
   ========================================================================= */
.main-workspace {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-6) 64px;
}

.page-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Brede variant (o.a. Gebruikersoverzicht): groeit buiten de standaard 1200px
   als het scherm dat toelaat, zodat brede tabellen geen horizontale scrollbar nodig hebben. */
.page-container.page-container-wide {
  --wide-page-width: min(1640px, calc(100vw - 60px));
  width: var(--wide-page-width);
  max-width: none;
  margin-left: calc((100% - var(--wide-page-width)) / 2);
}

@media (max-width: 1260px) {
  .page-container.page-container-wide {
    width: auto;
    margin-left: 0;
  }
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-7);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.card-title-lg {
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--text-main);
}
.section-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
/* Teller achter een titel: "Overzicht: Cliënten (12)" of "(3 van 12)" */
.title-count {
  font-weight: 400;
  color: var(--text-muted);
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: var(--space-1);
}

/* Knoppen Stijl 2 — Opvallender: Afgeronde Pills met rijke tint, krachtige rand & subtiele gloed */
.btn {
  font-family: var(--font-heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8125rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  min-height: 40px;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
  letter-spacing: -0.005em;
}
.btn-sm { padding: var(--space-2) var(--space-4); font-size: 0.83rem; min-height: 36px; }
.btn-xs { padding: var(--space-1) var(--space-3); font-size: 0.79rem; min-height: 32px; }

.btn-primary {
  background: linear-gradient(180deg, var(--sage-94) 0%, var(--sage-85) 100%);
  color: var(--sage-17);
  border-color: var(--gray-46);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.18), inset 0 1px 0 rgba(var(--white-rgb), 0.75);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 5px 14px rgba(var(--primary-rgb), 0.34);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--sage-96);
  color: var(--primary-dark);
  border-color: var(--sage-85);
  box-shadow: 0 1px 4px rgba(var(--primary-rgb), 0.10), inset 0 1px 0 rgba(var(--white-rgb), 0.8);
}
.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
  transform: translateY(-1px);
}

.btn-close-soft {
  background: var(--red-97);
  color: var(--red-41);
  border-color: var(--red-82-2);
}
.btn-close-soft:hover {
  background: var(--red-95);
  border-color: var(--red-71);
}

.btn-danger {
  background: var(--red-97);
  color: var(--danger-ink);
  border-color: var(--red-82-2);
  box-shadow: 0 1px 4px rgba(var(--rgb-225-29-72), 0.10), inset 0 1px 0 rgba(var(--white-rgb), 0.8);
}
.btn-danger:hover {
  background: var(--red-95);
  color: var(--red-41);
  border-color: var(--red-71);
  box-shadow: 0 4px 12px rgba(var(--rgb-225-29-72), 0.22);
  transform: translateY(-1px);
}
.btn-danger .prpp-trash-svg {
  flex-shrink: 0;
}

.btn-green {
  background: linear-gradient(180deg, var(--green-light) 0%, var(--green-85) 100%);
  color: var(--green-20);
  border-color: var(--green-52);
  box-shadow: 0 2px 8px rgba(var(--rgb-22-163-74), 0.16), inset 0 1px 0 rgba(var(--white-rgb), 0.75);
}
.btn-green:hover {
  background: linear-gradient(180deg, var(--green-36) 0%, var(--green-29) 100%);
  color: var(--white);
  border-color: var(--green-29);
  box-shadow: 0 5px 14px rgba(var(--rgb-22-163-74), 0.32);
  transform: translateY(-1px);
}

.btn-purple {
  background: linear-gradient(180deg, var(--sage-90) 0%, var(--sage-85) 100%);
  color: var(--sage-17);
  border-color: var(--gray-46);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.18), inset 0 1px 0 rgba(var(--white-rgb), 0.75);
}
.btn-purple:hover {
  background: linear-gradient(180deg, var(--primary-muted) 0%, var(--primary) 100%);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 5px 14px rgba(var(--primary-rgb), 0.34);
  transform: translateY(-1px);
}

.btn-light-grey {
  background: var(--sage-95);
  color: var(--sage-21);
  border-color: var(--border);
}
.btn-light-grey:hover {
  background: var(--border-light);
  color: var(--text-main);
}

.btn-disabled {
  background: var(--sage-95);
  color: var(--text-muted);
  border-color: var(--border-light);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-chip {
  background: var(--blue-96);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-1) var(--space-3);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-chip:hover {
  background: var(--sage-90);
  border-color: var(--indigo);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--white);
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.16);
}

.field-label {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--blue-27);
  margin-bottom: var(--space-1);
}

.user-filter-toggle.has-filters { background: var(--sage-92); border-color: var(--sage-63); font-weight: 700; }
.user-filter-panel {
  background: var(--sage-97);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.user-filter-group-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.user-filter-checks { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.user-filter-check {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--white);
  border: 1px solid var(--sage-86);
  border-radius: 999px;
  font-size: 0.86rem;
  cursor: pointer;
  user-select: none;
}
.user-filter-check:hover { border-color: var(--sage-63); }
.user-filter-check.on { background: var(--sage-92); border-color: var(--primary); font-weight: 700; }
.user-filter-check input { margin: 0; accent-color: var(--primary); }
.user-filter-count { color: var(--gray-45); font-size: 0.78rem; font-weight: 600; }
.user-filter-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }

.search-filter-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}
.search-box-wide {
  flex: 1;
  min-width: 260px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: 0 2px 6px rgba(var(--ink-rgb), 0.03);
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}
.search-box-wide:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.14);
}
.search-box-wide input {
  width: 100%;
  border: none;
  padding: var(--space-3) var(--space-1);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  outline: none;
  background: transparent;
}
.tag-filter-select {
  width: auto;
  min-width: 220px;
  border-radius: 999px;
  padding: var(--space-2) var(--space-4);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--sage-21);
  border: 1.5px solid var(--border);
  box-shadow: 0 2px 6px rgba(var(--ink-rgb), 0.03);
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.data-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border-light);
}
.data-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.clickable-row {
  cursor: pointer;
}
.clickable-row:hover {
  background: var(--sage-97);
}

.tag-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}
.tag-chip {
  background: var(--sage-94);
  color: var(--primary-dark);
  padding: 2px var(--space-2);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Compacte TAG-indicator in cliëntenoverzicht en cliëntdossier: een knop; aanwijzen toont de TAGS,
   klikken/tikken of Enter/Spatie zet het venster vast open of dicht (js/clients.js) */
.tag-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 24px;
  padding: 2px var(--space-2);
  border: 0;
  border-radius: 12px;
  background: var(--sage-95);
  color: var(--sage-35);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  outline: none;
}
.tag-indicator:hover,
.tag-indicator:focus-visible,
.tag-indicator[aria-expanded="true"] {
  background: var(--sage-94);
  box-shadow: 0 0 0 2px var(--sage-85);
}
.tag-indicator-pop {
  display: none;
  position: fixed;
  z-index: 1000;
  max-width: 280px;
  text-align: left;
  cursor: default;
  padding: var(--space-3) var(--space-3);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(var(--ink-rgb), 0.12);
  white-space: normal;
}
.tag-indicator-pop.open {
  display: block;
}
.tag-indicator-pop-title {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Status als bolletje met tekst (UI-opfrisser nov 2026, stap 6) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: var(--text-sm);
  font-weight: 600;
}
.status-pill.linked { background: var(--green-light); color: var(--green-29); }
.status-pill.unlinked { background: var(--danger-light); color: var(--danger-ink); }

/* =========================================================================
   PRPP ASSESSMENT SCOREFORMULIER (Exact match with deel 1..5.png)
   ========================================================================= */
.assessment-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}

.ip-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-sticky-bar {
  position: sticky;
  top: 61px;
  z-index: 80;
  background: rgba(var(--white-rgb), 0.96);
  backdrop-filter: blur(8px);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
}
/* Onder de titel: knoppen links, opslagstatus rechts. De status heeft een vaste breedte zodat de knoppen niet verspringen. */
.form-sticky-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
}

.form-sticky-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.assessment-main-title, .ip-main-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main);
}

.o365-autosave-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--sage-97);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  min-width: 265px;
  white-space: nowrap;
  margin-left: auto;
  box-sizing: border-box;
}
@media (max-width: 560px) {
  .o365-autosave-pill { min-width: 0; margin-left: 0; }
}
.o365-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.o365-dot.saved { background: var(--green-36); }

/* Na elke opslag licht de pil even groen op */
.o365-autosave-pill.just-saved { animation: autosaveFlash 1.6s ease-out; }
@keyframes autosaveFlash {
  0%, 25% {
    background: var(--green-light);
    border-color: var(--green-85);
    color: var(--green-24);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
  }
  100% {
    background: var(--sage-97);
    border-color: var(--border-light);
    color: var(--text-muted);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}
.o365-dot.saving { background: var(--orange-50); animation: pulse 0.9s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.form-sticky-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.client-therapist-bar {
  background: var(--sage-97);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
}

.occupation-row {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: var(--space-3);
  align-items: center;
}

.occupation-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.template-select {
  width: 100%;
  padding: var(--space-3) var(--space-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary);
  font-weight: 600;
  background: var(--white);
}

.date-row {
  margin-top: var(--space-4);
}

.activation-notice {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--sage-94);
  border: 1px solid var(--sage-85);
  border-radius: 8px;
  color: var(--sage-17);
  font-size: 0.9375rem;
}

.template-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}
.template-select-wrap .template-select {
  flex: 1 1 auto;
  min-width: 0;
}
/* Met het ?-icoon erbij past "Geen templates beschikbaar" nog volledig in de keuzelijst (smalle schermen: onder elkaar) */
@media (min-width: 681px) {
  .occupation-row:has(.onboarding-help-btn:not([hidden])) {
    grid-template-columns: 1fr 280px;
  }
}
.template-select:disabled {
  color: var(--text-muted);
  background: var(--bg-page);
  cursor: default;
}

/* Onboarding: ?-icoon met uitleg op de plek zelf (js/onboarding.js), bijv. over templates bij de betekenisvolle handeling */
.onboarding-help-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--primary);
  font-size: 1.125rem;
  cursor: pointer;
}
.onboarding-help-btn[hidden] {
  display: none;
}
.onboarding-help-btn:hover,
.onboarding-help-btn:focus-visible,
.onboarding-help-btn[aria-expanded="true"] {
  background: var(--sage-94);
  border-color: var(--primary);
}
.onboarding-popover {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  z-index: 40;
  width: min(440px, calc(100vw - 32px));
  padding: var(--space-4) var(--space-10) var(--space-4) var(--space-5);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
  font-size: var(--text-base);
  line-height: 1.5;
  text-align: left;
}
.onboarding-popover[hidden] {
  display: none;
}
.onboarding-popover p {
  margin: 0 0 var(--space-2);
}
.onboarding-hint-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-2);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}
.onboarding-hint-subtitle {
  font-weight: 600;
}
.onboarding-hint-list {
  margin: 0 0 var(--space-2);
  padding-left: var(--space-5);
}
.onboarding-hint-list li + li {
  margin-top: var(--space-1);
}
.onboarding-hint-note {
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.onboarding-hint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.onboarding-hint-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.onboarding-hint-close:hover,
.onboarding-hint-close:focus-visible {
  background: var(--bg-page);
  color: var(--text-main);
}
@media (max-width: 640px) {
  .onboarding-popover {
    left: 0;
    right: 0;
    width: auto;
    padding: var(--space-3) var(--space-9) var(--space-3) var(--space-4);
  }
  .onboarding-hint-actions .btn {
    flex: 1 1 100%;
  }
}

.section-disabled {
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

/* Two-Column Stage 1 (70%) & Stage 2 (30%) Layout */
.assessment-two-col {
  display: grid;
  grid-template-columns: 70fr 30fr;
  gap: var(--space-4);
  align-items: start;
}

.stage-heading {
  color: var(--primary);
  font-size: 1.125rem;
  font-weight: 700;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-4);
}

/* Percentage-vakje rechts naast het criterium-label */
.criterion-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.criterion-block .field-label {
  margin-bottom: 0;
}

/* Kwadrant/subkwadrant-termen met definitie (tooltip bij hover) */
.has-definition {
  cursor: help;
}

.criterion-pct-box {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--blue-91);
  padding: var(--space-2) var(--space-3);
  border-radius: 8px;
}
.criterion-pct-box input {
  width: 58px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.9375rem;
  text-align: right;
}

.criterion-desc-block {
  margin-top: var(--space-4);
}

/* Standard 3 rows high, scrollable when more text is entered */
.criterion-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.45;
  resize: vertical;
  overflow-y: auto;
}

.substeps-heading {
  margin-top: var(--space-5);
  font-size: 1.125rem;
  font-weight: 700;
}

/* Diagonal Error Headers (Accuratesse, Overslaan, Herhalen, Tempo) */
.substeps-header-row {
  display: flex;
  align-items: flex-end;
  padding: var(--space-9) var(--space-2) var(--space-2) var(--space-10);
  font-size: 0.8125rem;
  color: var(--blue-27);
}
.substeps-col-items {
  flex: 1;
}
.substeps-col-errors-slant {
  display: flex;
  gap: var(--space-3);
  margin-right: 88px;
}
.slant-label {
  width: 22px;
  display: inline-block;
  position: relative;
}
.slant-label > span {
  position: absolute;
  bottom: 0;
  left: 4px;
  transform: rotate(-45deg);
  transform-origin: bottom left;
  white-space: nowrap;
  font-size: 0.75rem;
  color: var(--blue-27);
}

.substeps-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.substep-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: opacity 0.15s;
}
.substep-row.inactive-step {
  opacity: 0.42;
}
.substep-row.drag-over {
  border-top: 2px solid var(--primary);
}

.drag-handle {
  cursor: grab;
  color: var(--blue-65);
  font-size: 1.125rem;
  padding: var(--space-1);
  user-select: none;
  touch-action: none;
}
.drag-handle:active,
.tpl-item-row.dragging .drag-handle,
.substep-row.dragging .drag-handle {
  cursor: grabbing;
}
.substep-num {
  width: 20px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.substep-main-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--sage-97);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-2) var(--space-3);
}

/* Strictly max 40 chars and no scrollbar as requested */
.substep-text-input {
  flex: 1;
  min-width: 120px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--sage-17);
  background: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.substep-header-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--sage-95);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-2) var(--space-3);
}
.substep-header-input {
  flex: 1;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--sage-14);
}

.substep-errors-group {
  display: flex;
  gap: var(--space-2);
}
.err-check-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}
.err-letter {
  font-size: 0.75rem;
  color: var(--blue-34);
  font-weight: 600;
}
.err-box {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--gray-57);
  border-radius: 4px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--danger);
  cursor: pointer;
  padding: 0;
}
.err-box.checked {
  border-color: var(--danger);
  background: var(--red-98);
}

.substep-row-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.icon-btn-placeholder {
  width: 28px;
  height: 28px;
  display: inline-block;
}
.icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--blue-62);
  min-width: 30px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s, background 0.12s, color 0.12s;
}
.icon-btn:hover {
  background: var(--sage-95);
}
.icon-btn.eye-btn {
  color: var(--blue-62);
}
.icon-btn.eye-btn.off {
  opacity: 0.55;
}
.icon-btn.delete-btn {
  color: var(--danger-ink);
  background: var(--red-97);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--red-82-2);
  box-shadow: 0 1px 3px rgba(var(--rgb-225-29-72), 0.10);
}
.icon-btn.delete-btn:hover {
  color: var(--red-41);
  background: var(--red-95);
  border-color: var(--red-71);
  box-shadow: 0 3px 8px rgba(var(--rgb-225-29-72), 0.22);
  transform: translateY(-1px);
}
.prpp-svg-icon {
  display: block;
}

.substeps-buttons-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.substeps-buttons-left {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.mastery-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-3);
}
.stat-readonly-box {
  background: var(--blue-95);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  color: var(--primary);
}

.mastery-result-block {
  margin-top: var(--space-4);
}
.mastery-result-label {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: var(--space-2);
}
.mastery-percentage-banner {
  background: var(--sage-90);
  border: 1px solid var(--gray-46);
  border-radius: 8px;
  padding: var(--space-4) var(--space-5);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* =========================================================================
   STAGE 2: 35 DESCRIPTORS & QUADRANTS
   ========================================================================= */
.stage2-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
}
.stage2-header-row .stage-heading {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.stage2-tools {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Subtle Dev Random 1/3 Button requested by user */
.dev-random-btn {
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: 8px;
  width: 26px;
  height: 26px;
  font-size: 0.8125rem;
  cursor: pointer;
  opacity: 0.55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dev-random-btn:hover {
  opacity: 1;
  background: var(--sage-95);
}

.score-info-wrapper {
  position: relative;
}
.info-circle-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: var(--white);
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
}
.score-legend-tooltip {
  display: none;
  position: absolute;
  right: 0;
  top: 115%;
  width: 310px;
  background: var(--sage-14);
  color: var(--white);
  padding: var(--space-3);
  border-radius: 8px;
  font-size: 0.8125rem;
  z-index: 110;
  box-shadow: var(--shadow-lg);
}
.score-legend-tooltip p {
  margin-top: var(--space-2);
}
.score-info-wrapper:hover .score-legend-tooltip {
  display: block;
}

.stage2-subheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.descriptor-scores-label {
  font-weight: 700;
  font-size: 0.8125rem;
}
.default3-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
}

.stage2-card {
  padding: var(--space-4) var(--space-4);
}

.quadrants-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.quadrant-box {
  border: 1.5px solid var(--gray-57);
  border-radius: 8px;
  padding: var(--space-2);
  background: var(--white);
}
.quadrant-title {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: var(--space-1);
}

.quadrant-header,
.subquadrant-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
}
.score-percent {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  white-space: nowrap;
}
.score-percent-quadrant {
  font-size: 0.8125rem;
}
.score-percent-subquadrant {
  font-size: 0.625rem;
}
.score-percent-ws-quadrant {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.6875rem;
  margin-bottom: var(--space-2);
}

.subquadrant-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-2) var(--space-2);
  margin-top: var(--space-2);
  background: var(--sage-97);
}
.subquadrant-title {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--sage-14);
  margin-bottom: var(--space-1);
}

.descriptor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--border-light);
}
.descriptor-row:last-child {
  border-bottom: none;
}

.descriptor-left {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  min-width: 0;
}
.descriptor-name {
  font-size: 0.8125rem;
  color: var(--sage-21);
  cursor: help;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.descriptor-scores-right {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.score-btn {
  min-width: 24px;
  height: 22px;
  padding: 0 var(--space-1);
  border: 1.5px solid transparent;
  border-radius: 5px;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sage-14);
  cursor: pointer;
}
/* Score 2 is greyed out to stimulate choosing 1 or 3 as requested */
.score-btn.score-2-grey {
  color: var(--blue-65);
}
.score-btn.selected {
  border-color: var(--primary);
  background: var(--sage-90);
  color: var(--primary);
  font-weight: 700;
}

/* Fase 2 met het toetsenbord (js/stage2-keyboard.js): duidelijke focusrand (3 px, zoals op de startpagina)
   en de descriptor met focus licht gemarkeerd */
.stage2-card .score-btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.stage2-card .descriptor-row:has(.score-btn:focus-visible) {
  background: var(--sage-95);
  margin: 0 calc(-1 * var(--space-1));
  padding-left: var(--space-1);
  padding-right: var(--space-1);
  border-radius: 6px;
}

/* Knopje met uitleg over de toetsen, naast de dobbelsteen en de i-knop */
.stage2-keys-wrapper {
  position: relative;
}
.stage2-keys-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--primary);
  font-size: 1rem;
  cursor: pointer;
}
.stage2-keys-btn:hover,
.stage2-keys-btn[aria-expanded="true"] {
  background: var(--sage-95);
  border-color: var(--primary);
}
.stage2-keys-popover {
  width: min(400px, calc(100vw - 32px));
  font-size: 0.8125rem;
  font-weight: 400;
}
.stage2-keys-list {
  list-style: none;
  margin: var(--space-2) 0 var(--space-3);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.stage2-keys-list kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 5px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--sage-97);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.stage2-keys-toggle {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-light);
  cursor: pointer;
}
.stage2-keys-toggle input {
  margin-top: 2px;
  accent-color: var(--primary);
}
/* Alleen aanraken (telefoon, tablet zonder toetsenbord): geen uitleg over toetsen */
@media (hover: none) and (pointer: coarse) {
  .stage2-keys-wrapper {
    display: none;
  }
}

/* Alleen voor schermlezers (bijv. de melding "Plannen: score 3" na scoren met het toetsenbord) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================================
   INTERPRETATIE WERKBLAD (Matches deel 3, 4, 5.png)
   ========================================================================= */
.worksheet-heading {
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 700;
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--primary);
  margin-bottom: var(--space-4);
}

.worksheet-table-wrapper {
  border: 1.5px solid var(--sage-14);
}

.ws-quadrant-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  border-bottom: 1.5px solid var(--sage-14);
}
.ws-quadrant-row:last-child {
  border-bottom: none;
}

.ws-quadrant-vertical-label {
  background: var(--sage-97);
  border-right: 1.5px solid var(--sage-14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ws-quadrant-vertical-label .ws-quadrant-name {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 700;
  font-size: 0.8125rem;
}

.ws-subquadrants-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.ws-subquad-col {
  border-right: 1px solid var(--gray-30);
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.ws-subquad-col:last-child {
  border-right: none;
}

.ws-subquad-header {
  background: var(--blue-95);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-1);
  text-align: left;
  font-weight: 700;
  font-size: 0.75rem;
  padding: var(--space-1);
  border-radius: 4px;
}

.ws-descriptor-cell {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.ws-desc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ws-desc-name {
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: help;
}
.ws-score-pills {
  display: flex;
  gap: var(--space-1);
}
.ws-pill {
  border: 1px solid var(--border);
  background: var(--sage-97);
  border-radius: 4px;
  padding: 1px var(--space-2);
  font-size: 0.75rem;
  cursor: pointer;
}
.ws-pill.ws-pill-grey {
  color: var(--blue-65);
}
.ws-pill.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  font-weight: 700;
}

.ws-note-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: var(--space-2) var(--space-2);
  font-family: inherit;
  font-size: 0.8125rem;
  resize: none;
  overflow: hidden;
  min-height: 54px;
}

/* =========================================================================
   INTERVENTIEPLANNER & INTERACTIVE CANVAS (Matches IP deel 1..7.png)
   ========================================================================= */
.ip-intended-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.caps-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sage-21);
  margin-bottom: var(--space-1);
}

.ip-chunking-section {
  margin: var(--space-3) 0;
}
.chunking-main-title {
  font-size: 1.125rem;
  font-weight: 700;
}

.ip-canvas-wrapper {
  max-width: 960px;
  margin: 0 auto;
}
.ip-canvas-wrapper.ip-canvas-fullscreen {
  position: fixed;
  inset: 16px;
  max-width: none;
  z-index: 300;
  background: var(--white);
  padding: var(--space-4);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: auto;
}

.ip-canvas-helper-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  font-size: 0.8125rem;
}

.ip-canvas-board {
  position: relative;
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--gray-57);
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.ip-canvas-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Floating Left Toolbar inside IP Canvas (Matches IP deel 4.png) */
.ip-canvas-toolbar {
  position: absolute;
  left: 16px;
  top: 28px;
  z-index: 25;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  box-shadow: var(--shadow-md);
}
.ip-tool-dots {
  color: var(--text-muted);
  font-size: 0.9375rem;
  padding: 2px 0;
}
.ip-tool-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-21);
}
.ip-tool-btn:hover {
  background: var(--sage-95);
}
.ip-tool-btn.active {
  background: var(--primary);
  color: var(--white);
}
.ip-tool-btn.ip-tool-danger {
  color: var(--danger);
}

.ip-items-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Placed Descriptor Node on Canvas (Matches IP deel 4 ingevuld voorbeeld.png) */
.ip-descriptor-node {
  position: absolute;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--green-34);
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(var(--black-rgb), 0.08);
  cursor: grab;
  touch-action: none;
}
.ip-descriptor-node.selected {
  box-shadow: 0 0 0 2.5px var(--primary);
}
.ip-node-num {
  padding: var(--space-1) var(--space-2);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--blue-11);
  border-right: 1px solid var(--border);
  background: var(--sage-97);
}
.ip-node-grip {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--gray-57, #8a8a8a);
  background: var(--sage-97);
  border-right: 1px solid var(--border);
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.ip-descriptor-node:active .ip-node-grip {
  cursor: grabbing;
}
select.ip-node-num-select {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  font-family: inherit;
  cursor: pointer;
  align-self: stretch;
  text-align: center;
  text-align-last: center;
  min-width: 2.1em;
  padding-left: var(--space-1);
  padding-right: var(--space-1);
}
select.ip-node-num-select:hover,
select.ip-node-num-select:focus {
  background: var(--sage-93, var(--sage-97));
  outline: none;
}
.ip-node-select {
  border: none;
  background: transparent;
  padding: var(--space-1) var(--space-2);
  font-size: 0.75rem;
  color: var(--sage-21);
  font-weight: 500;
  outline: none;
  cursor: pointer;
}
.ip-node-arrow-pin {
  border: none;
  border-left: 1px solid var(--border-light);
  background: var(--sage-96);
  color: var(--primary);
  padding: var(--space-1) var(--space-1);
  font-size: 0.75rem;
  cursor: crosshair;
}
.ip-node-remove {
  border: none;
  border-left: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  padding: 2px var(--space-2);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}
.ip-node-remove:hover {
  color: var(--danger-ink);
  background: var(--danger-light);
}

.checkbox-row-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}
.check-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: 0.9375rem;
}
.check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.feedback-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.checkbox-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* =========================================================================
   MODALS, SLIDE-OVER PROFILE DRAWER, SETTINGS & STAPPENPLAN
   ========================================================================= */
.drawer-backdrop, .modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(var(--ink-rgb), 0.48);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.profile-drawer {
  margin-left: auto;
  width: 380px;
  max-width: 100%;
  height: 100vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.drawer-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-body {
  padding: var(--space-6);
  flex: 1;
  overflow-y: auto;
}
.drawer-footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border-light);
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.profile-initials-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-name {
  font-size: 1.125rem;
  font-weight: 700;
}
.profile-roles {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.drawer-lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.drawer-lang-btn {
  padding: var(--space-2) var(--space-2);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--blue-96);
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
}
.drawer-lang-btn.active {
  background: var(--primary);
  color: var(--white);
}

.extend-input-row {
  display: flex;
  gap: var(--space-2);
}
.btn-logout-outline {
  background: var(--white);
  border: 1px solid var(--border);
  font-weight: 700;
  padding: var(--space-3);
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.modal-card.modal-lg {
  max-width: 720px;
}
/* Dialogen met een <form> om body en footer (o.a. nieuwe cliënt): het formulier moet meekrimpen,
   anders schuift de inhoud buiten beeld en kan de body niet scrollen. */
.modal-card > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.modal-header, .modal-footer { flex-shrink: 0; }
.modal-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-body {
  padding: var(--space-5) var(--space-6);
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

.btn-close-x {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

/* Settings & Sub-navigation Tabs (Stijl A: Zachte Capsule-balk) */
.settings-tabs-bar, .tabs-bar {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  background: var(--sage-95);
  padding: var(--space-1);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  align-self: flex-start;
}
.settings-tab, .tab-link {
  font-family: var(--font-heading);
  background: transparent;
  border: 1px solid transparent;
  padding: var(--space-2) var(--space-4);
  border-radius: 8px;
  font-weight: 600;
  color: var(--gray-30);
  cursor: pointer;
  font-size: 0.8125rem;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.settings-tab:hover, .tab-link:hover {
  background: rgba(var(--white-rgb), 0.55);
  color: var(--text-main);
}
.settings-tab.active, .tab-link.active {
  background: var(--white);
  color: var(--text-main);
  font-weight: 700;
  border-color: rgba(var(--rgb-226-232-240), 0.9);
  box-shadow: 0 2px 8px rgba(var(--ink-rgb), 0.08), 0 1px 2px rgba(var(--ink-rgb), 0.04);
}

.tags-management-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-5);
}
.tag-group-item {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: var(--space-2);
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
.tag-group-item:hover {
  border-color: var(--sage-85);
  transform: translateY(-1px);
}
.tag-group-item.active {
  background: var(--sage-96);
  border-color: var(--gray-46);
  box-shadow: 0 4px 12px -2px rgba(var(--primary-rgb), 0.08);
}
.tag-row-item {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: var(--space-2);
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
.tag-row-item:hover {
  border-color: var(--border);
}

.code-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: var(--sage-96);
  color: var(--primary-dark);
  border: 1px solid var(--sage-85);
  padding: var(--space-1) var(--space-3);
  border-radius: 8px;
}

.tpl-items-scroll {
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-right: var(--space-1);
}
.tpl-item-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-top: 2px solid transparent;
  transition: opacity 0.15s, border-color 0.15s;
}
.tpl-item-row.dragging {
  opacity: 0.42;
}
.tpl-item-row.drag-over {
  border-top-color: var(--primary);
}
.tpl-header-pill {
  flex: 1;
  background: var(--sage-95);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
}
.tpl-header-input {
  flex: 1;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
}
.tpl-add-row {
  display: flex;
  gap: var(--space-2);
}
.btn-dashed-add {
  flex: 1;
  padding: var(--space-3);
  border: 1.5px dashed var(--border);
  background: var(--white);
  color: var(--indigo);
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
}

.segmented-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.seg-btn {
  padding: var(--space-3);
  border: none;
  background: var(--white);
  font-weight: 700;
  cursor: pointer;
}
.seg-btn.active {
  background: var(--indigo);
  color: var(--white);
}
.generated-code-row {
  display: flex;
  gap: var(--space-3);
}
.generated-code-display {
  flex: 1;
  text-align: center;
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--sage-97);
}

/* Client Tags Selector in Modal */
.tag-selector-group {
  margin-bottom: var(--space-3);
}
.tag-selector-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}
.tag-selector-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.tag-select-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 0.8125rem;
  cursor: pointer;
  background: var(--sage-97);
}
.tag-select-pill.selected {
  background: var(--sage-94);
  border-color: var(--indigo);
  color: var(--indigo);
  font-weight: 700;
}

/* Badges & Utilities */
.badge {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-blue { background: var(--sage-90); color: var(--primary-dark); }
.badge-green { background: var(--green-light); color: var(--green-29); }
.badge-purple { background: var(--sage-94); color: var(--violet-39); }
.badge-orange { background: var(--orange-92); color: var(--warn-ink); }
.badge-grey { background: var(--blue-96); color: var(--blue-34); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.flex-row { display: flex; align-items: center; }
.gap-2 { gap: var(--space-2); }
.mt-1 { margin-top: var(--space-2); }
.mt-2 { margin-top: var(--space-4); }
.mt-3 { margin-top: var(--space-6); }
.mb-1 { margin-bottom: var(--space-2); }
.mb-2 { margin-bottom: var(--space-4); }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.divider { border: none; border-top: 1px solid var(--border-light); margin: var(--space-5) 0; }
.dashed-divider { border: none; border-top: 1px dashed var(--border); margin: var(--space-4) 0; }
.error-banner { background: var(--danger-light); color: var(--danger-ink); padding: var(--space-3) var(--space-3); border-radius: 8px; font-size: 0.88rem; font-weight: 600; }

.prpp-copyright-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  padding: var(--space-5) 0 var(--space-3);
}

/* Stappen, e-mailsjablonen en 2FA-instellingen */
.step-num { background: var(--indigo); color: var(--white); padding: var(--space-1) var(--space-3); border-radius: 8px; font-weight: 700; font-size: 0.85rem; }
.step-list { padding-left: var(--space-6); margin-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
.email-templates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--space-4); }
.email-tpl-card { border: 1px solid var(--border); border-radius: 8px; padding: var(--space-4); background: var(--sage-97); }
.email-preview-box { background: var(--white); border: 1px solid var(--border-light); padding: var(--space-3); border-radius: 8px; font-family: inherit; font-size: 0.82rem; white-space: pre-wrap; max-height: 140px; overflow-y: auto; }
.totp-setup-box { background: var(--sage-97); border: 1px solid var(--border); border-radius: 8px; padding: var(--space-4); }
.totp-grid { display: grid; grid-template-columns: 170px 1fr; gap: var(--space-4); align-items: center; }
.qr-box { text-align: center; background: var(--white); padding: var(--space-3); border-radius: 8px; border: 1px solid var(--border-light); }
.secret-code-pill { font-size: 0.76rem; margin-top: var(--space-2); word-break: break-all; }

/* =========================================================================
   RESPONSIVE BREAKPOINTS FOR TABLET (<= 1024px) & SMARTPHONE (<= 680px)
   ========================================================================= */
@media (max-width: 1024px) {
  .assessment-two-col {
    /* minmax(0, …): de kolom groeit nooit breder dan het scherm mee met de inhoud */
    grid-template-columns: minmax(0, 1fr);
  }
  .ip-intended-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ws-subquadrants-grid {
    grid-template-columns: 1fr;
  }
  .ws-subquad-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .tags-management-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .welcome-cards-grid,
  .grid-2,
  .ip-intended-grid,
  .feedback-two-col,
  .totp-grid,
  .occupation-row,
  .mastery-stats-grid {
    grid-template-columns: 1fr;
  }
  .substep-main-box {
    flex-direction: column;
    align-items: stretch;
  }
  .substep-errors-group {
    justify-content: space-around;
    padding-top: var(--space-1);
  }
  .substeps-header-row {
    display: none;
  }
  .form-sticky-bar {
    top: 0;
    padding: var(--space-3) var(--space-3);
    gap: var(--space-2);
  }
  .btn, .score-btn, .err-box {
    min-height: 36px;
  }
}

/* =========================================================================
   PRINT SELECTION MODAL & CLIENT SAMENVATTING (SUMMARY) MODAL
   (Matches 'Samenvatting deel 1.png' .. 'Samenvatting deel 4.png')
   ========================================================================= */
.print-sections-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--sage-97);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: var(--space-4);
}
.print-check-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}
.print-check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}
.print-pdf-tip {
  background: var(--sage-94);
  border: 1px solid var(--sage-85);
  border-radius: 8px;
  padding: var(--space-3) var(--space-3);
  font-size: 0.8125rem;
  color: var(--sage-17);
}

.selected-summary-row {
  background: var(--sage-96) !important;
}

.summary-modal-backdrop {
  z-index: 320;
  padding: var(--space-5) var(--space-3);
  align-items: flex-start;
  overflow-y: auto;
}

.summary-modal-card {
  background: var(--white);
  border-radius: 8px;
  width: 100%;
  max-width: 960px;
  margin: auto;
  padding: var(--space-7) var(--space-9) var(--space-9);
  box-shadow: 0 20px 50px rgba(var(--ink-rgb), 0.28);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.summary-top-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

.summary-main-title {
  color: var(--primary-dark);
  font-size: 1.5rem;
  font-weight: 700;
}

.summary-date-line {
  font-size: 0.9375rem;
  color: var(--sage-14);
  margin-top: var(--space-2);
}

.summary-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: var(--space-4) 0;
}

.summary-client-bar {
  background: var(--sage-97);
  border-radius: 8px;
  padding: var(--space-4) var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 0.9375rem;
}

.summary-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.summary-block-toolbar,
.summary-block-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.summary-block-hint {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.summary-block-btns {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.summary-section-title {
  color: var(--primary-dark);
  font-size: 1.32rem;
  font-weight: 600;
}

/* Comparison Table matching Samenvatting deel 1.png */
.summary-comparison-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  font-size: 0.9375rem;
}
.summary-comparison-table th,
.summary-comparison-table td {
  border: 1px solid var(--border);
  padding: var(--space-3) var(--space-4);
  text-align: center;
}
.summary-comparison-table thead th {
  background: var(--sage-95);
  color: var(--sage-21);
  font-weight: 600;
}
.summary-comparison-table th.sum-col-label {
  text-align: left;
  background: var(--blue-95-2);
  width: 200px;
}
.summary-comparison-table th.sum-col-avg {
  background: var(--border-light);
  width: 135px;
}
.summary-comparison-table td.sum-row-title {
  text-align: left;
  background: var(--sage-97);
  color: var(--sage-14);
}
.summary-comparison-table tr.sum-row-mastery td {
  background: var(--sage-97);
}
.summary-comparison-table td.sum-col-avg-cell {
  background: var(--blue-95-2);
}

.summary-chart-container {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  padding: var(--space-2) 0;
}
.summary-chart-container canvas {
  max-width: 100%;
  height: auto !important;
}

.summary-footer {
  border-top: 1px solid var(--border-light);
  margin-top: var(--space-3);
  padding-top: var(--space-5);
}
.summary-footer-warning {
  color: var(--blue-26);
  margin-top: var(--space-2);
}

/* =========================================================================
   PRINT & PDF EXPORT STYLESHEET (Clean, readable, stripped of menus/UI)
   ========================================================================= */
@media print {
  @page {
    margin: 12mm;
  }

  .no-print,
  .top-navbar,
  .form-sticky-actions,
  .o365-autosave-pill,
  .substeps-buttons-bar,
  .substep-row-actions,
  .drag-handle,
  .ip-canvas-helper-bar,
  .ip-canvas-toolbar,
  .dev-random-btn,
  .score-info-wrapper,
  .default3-toggle,
  .note-anchor,
  .print-excluded {
    display: none !important;
  }

  html, body, .app-shell, .main-workspace {
    background: var(--white) !important;
    color: var(--text-main) !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  .form-sticky-bar {
    position: static !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 0 var(--space-2) 0 !important;
  }

  .card {
    background: var(--white) !important;
    box-shadow: none !important;
    border: 1px solid var(--border) !important;
    padding: var(--space-4) var(--space-4) !important;
    margin-bottom: var(--space-3) !important;
    break-inside: avoid;
  }

  .worksheet-card, .stage1-card, .stage2-card {
    break-inside: auto;
  }

  .assessment-two-col {
    /* minmax(0, ...): de kolommen mogen smaller worden dan hun inhoud, anders loopt Fase 2 van de pagina */
    grid-template-columns: minmax(0, 66fr) minmax(0, 34fr) !important;
    gap: var(--space-3) !important;
  }
  .assessment-two-col.print-only-one-col {
    grid-template-columns: 1fr !important;
  }

  textarea.form-input,
  textarea.criterion-textarea,
  textarea.ws-note-textarea,
  textarea.general-notes-ta {
    overflow: visible !important;
    height: auto !important;
  }

  /* When printing while the Samenvatting Modal is open, print ONLY the Samenvatting */
  body.summary-modal-open .top-navbar,
  body.summary-modal-open .page-container {
    display: none !important;
  }
  body.summary-modal-open .summary-modal-backdrop {
    position: static !important;
    background: var(--white) !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  body.summary-modal-open .summary-modal-card {
    box-shadow: none !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .summary-block {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* =========================================================================
   ADMIN BULK IMPORT MODAL FOR PRPP COURSE PARTICIPANTS (CURSISTEN)
   ========================================================================= */
.modal-card.modal-xl {
  max-width: 960px;
}

.status-pill.pending-course {
  background: var(--amber-89);
  color: var(--orange-37);
}

.import-settings-box {
  background: var(--sage-96);
  border: 1px solid var(--sage-85);
  border-radius: 8px;
  padding: var(--space-4) var(--space-5);
}

.import-checks-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.import-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-4);
}

.import-dropzone-card {
  border: 2px dashed var(--gray-57);
  border-radius: 8px;
  padding: var(--space-5) var(--space-4);
  text-align: center;
  background: var(--sage-97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: border-color 0.15s, background 0.15s;
}
.import-dropzone-card.drag-active {
  border-color: var(--primary);
  background: var(--sage-90);
}
.import-drop-icon {
  font-size: 2rem;
  margin-bottom: var(--space-2);
  color: var(--primary);
}

.import-paste-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-4) var(--space-4);
  background: var(--white);
}
.import-paste-ta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.45;
  white-space: pre;
  overflow-x: auto;
}

.import-preview-scroll {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--white);
}

@media (max-width: 820px) {
  .import-methods-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   USER PROFILE AVATARS, 12 PREDEFINED ICONS & PHOTO UPLOAD/SCALE/CROP
   ========================================================================= */
.prpp-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
  user-select: none;
  box-shadow: 0 2px 6px rgba(var(--ink-rgb), 0.14);
}
.prpp-avatar-sm {
  width: 34px;
  height: 34px;
  font-size: 0.8125rem;
}
.prpp-avatar-md {
  width: 48px;
  height: 48px;
  font-size: 1.125rem;
}
.prpp-avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 1.65rem;
}
.prpp-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prpp-avatar-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58%;
  height: 58%;
}
.prpp-avatar-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}
.prpp-avatar-initials {
  letter-spacing: 0.03em;
}

.profile-avatar-btn,
.settings-avatar-preview-wrap {
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  display: inline-flex;
  transition: transform 0.15s;
}
.profile-avatar-btn:hover,
.settings-avatar-preview-wrap:hover {
  transform: scale(1.04);
}

.avatar-edit-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
}

.drawer-avatar-picker-box {
  background: var(--sage-97);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: var(--space-3) var(--space-3);
}

.btn-link-xs {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-link-xs:hover {
  text-decoration: underline;
}

.drawer-icons-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-2);
}

.drawer-icon-option {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0 auto;
  transition: transform 0.12s, box-shadow 0.12s;
}
.drawer-icon-option:hover {
  transform: scale(1.08);
}
.drawer-icon-option.selected {
  border-color: var(--blue-11);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--primary);
}

.settings-avatar-banner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-4);
  background: var(--sage-97);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.avatar-section-card {
  background: var(--sage-97);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: var(--space-4);
}

.avatar-icons-modal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.avatar-modal-icon-card {
  background: var(--white);
  border: 2px solid var(--border-light);
  border-radius: 8px;
  padding: var(--space-3) var(--space-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.avatar-modal-icon-card:hover {
  border-color: var(--sage-75);
  transform: translateY(-1px);
}
.avatar-modal-icon-card.selected {
  border-color: var(--primary);
  background: var(--sage-94);
  box-shadow: 0 0 0 2px rgba(var(--rgb-11-114-185), 0.18);
}
.avatar-modal-icon-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sage-21);
  text-align: center;
}

.avatar-cropper-workspace {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-5);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: var(--space-4);
}

.cropper-canvas-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cropper-viewport-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-md);
  cursor: grab;
  touch-action: none;
  background: var(--sage-95);
}
.cropper-viewport-wrap:active {
  cursor: grabbing;
}
.cropper-viewport-wrap canvas {
  display: block;
  width: 220px;
  height: 220px;
}
.cropper-circle-guide {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(var(--white-rgb), 0.55);
  pointer-events: none;
}

.cropper-zoom-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.cropper-zoom-row input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
  cursor: pointer;
}

@media (max-width: 680px) {
  .avatar-icons-modal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .avatar-cropper-workspace {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   USER SELECTION & EMAIL DASHBOARD GROUP / INDIVIDUAL RECIPIENT TARGETING
   ========================================================================= */
.user-group-chips-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.btn-chip.chip-clear {
  background: var(--danger-light);
  color: var(--danger-ink);
  border-color: var(--red-82);
}
.btn-chip.chip-clear:hover {
  background: var(--red-89);
}

.user-selection-action-bar {
  background: var(--sage-94);
  border: 1.5px solid var(--sage-75);
  border-radius: 8px;
  padding: var(--space-3) var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.user-row-selected {
  background: var(--sage-94) !important;
}

.user-row-checkbox,
#chk-select-all-users {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  cursor: pointer;
}

.email-recipients-panel {
  border-left: 4px solid var(--primary);
}

.email-dash-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: var(--space-5);
  align-items: start;
}

.email-dash-users-checklist,
.modal-recipients-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--sage-97);
  padding: var(--space-1);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.modal-recipients-list {
  max-height: 310px;
}

.dash-user-check-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: 8px;
  background: var(--white);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.8125rem;
}
.dash-user-check-row:hover {
  background: var(--sage-95);
}
.dash-user-check-row.checked {
  background: var(--sage-94);
  border-color: var(--sage-85);
}
.dash-user-check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.dash-user-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.dash-user-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.send-mail-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: var(--space-5);
  align-items: start;
}

.send-mail-recipients-col {
  background: var(--sage-97);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: var(--space-4);
}

.mail-live-preview-card {
  background: var(--sage-97);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-3) var(--space-3);
  max-height: 160px;
  overflow-y: auto;
}

@media (max-width: 820px) {
  .email-dash-controls-grid,
  .send-mail-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   STIJL 2: CLIENT HERO CARD + FLOATING CARD ROWS
   ========================================================================= */
.client-hero-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--sage-97) 100%);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px -10px rgba(var(--ink-rgb), 0.06), 0 2px 6px rgba(var(--ink-rgb), 0.02);
  padding: var(--space-2) var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.client-hero-left {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.client-name-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.client-hero-name {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.client-ref-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-30);
  background: var(--sage-95);
  border: 1px solid var(--border-light);
  padding: var(--space-1) var(--space-3);
  border-radius: 8px;
}

.floating-rows-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Compacte rijen (één regel tekst), bijv. Handelingen Templates */
.floating-rows-list.compact {
  gap: var(--space-2);
}
.floating-row-card.compact {
  padding: var(--space-2) var(--space-4);
}
.floating-row-card.compact .floating-row-left {
  gap: var(--space-3);
}
.floating-row-card.compact .floating-task-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 1rem;
}

.example-templates {
  margin: var(--space-3) 0 var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--sage-94);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}
.floating-rows-list + .example-templates {
  margin-top: var(--space-5);
}
.example-templates-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-1);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}
.example-templates-intro {
  margin: 0 0 var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.example-tpl-card {
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}
.example-tpl-card + .example-tpl-card {
  margin-top: var(--space-2);
}
.example-tpl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.example-tpl-name {
  font-weight: 700;
  color: var(--text-main);
}
.example-tpl-body {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-8);
}
.example-tpl-group-title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.example-tpl-steps {
  margin: var(--space-1) 0 0;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-main);
}

.floating-select-all-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.floating-row-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.floating-row-card:hover {
  border-color: var(--sage-85);
  box-shadow: 0 6px 18px -4px rgba(var(--primary-rgb), 0.09);
  transform: translateY(-1px);
}

.floating-row-card.selected-summary-row {
  background: var(--sage-96) !important;
  border-color: var(--gray-46);
}

.floating-row-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: 220px;
  flex: 1;
}

.floating-task-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--sage-96);
  color: var(--primary);
  border: 1px solid var(--sage-85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.floating-task-icon.indigo {
  background: var(--sage-94);
  color: var(--indigo);
  border-color: var(--sage-85);
}

.floating-item-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.9375rem;
}

.floating-item-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.floating-row-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.mastery-progress-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--sage-97);
  border: 1px solid var(--border-light);
  padding: var(--space-2) var(--space-3);
  border-radius: 999px;
}

.mastery-bar-track {
  width: 68px;
  height: 6px;
  background: var(--border-light);
  border-radius: 999px;
  overflow: hidden;
}

.mastery-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--green-39));
}

.mastery-pct-strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--text-main);
}

.mastery-steps-muted {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.floating-row-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.client-row-avatar {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary-muted) 0%, var(--primary-muted) 100%);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -2px rgba(var(--primary-rgb), 0.32);
  letter-spacing: -0.02em;
}

.client-stat-chip {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  background: var(--sage-97);
  color: var(--gray-30);
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.client-stat-chip.has-items {
  background: var(--sage-96);
  color: var(--primary-dark);
  border-color: var(--sage-85);
}

.client-stat-chip.has-ip {
  background: var(--sage-94);
  color: var(--primary-dark);
  border-color: var(--sage-85);
}

.icon-btn.edit-pill-btn {
  color: var(--gray-30);
  background: var(--sage-97);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  width: 34px;
  height: 34px;
}
.icon-btn.edit-pill-btn:hover {
  color: var(--primary);
  background: var(--sage-96);
  border-color: var(--sage-85);
}

/* =========================================================================
   VOORSTEL B: ULTRA-CLEAN COMPACTE GEBRUIKERSTABEL (1 REGEL PER GEBRUIKER)
   + GEBRUIKER DETAIL POPUP MODAL
   ========================================================================= */
.users-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--white);
}

.users-clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.users-clean-table thead th {
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: var(--space-3) var(--space-4);
  background: var(--sage-97);
  border-bottom: 1.5px solid var(--border-light);
  white-space: nowrap;
}

.users-clean-table tbody tr {
  border-bottom: 1px solid var(--sage-95);
  transition: background 0.14s ease;
  cursor: pointer;
}

.users-clean-table tbody tr:last-child {
  border-bottom: none;
}

.users-clean-table tbody tr:hover {
  background: var(--sage-97);
}

.users-clean-table tbody tr.user-row-selected {
  background: var(--sage-96) !important;
}

.users-clean-table td {
  padding: var(--space-2) var(--space-4);
  vertical-align: middle;
  white-space: nowrap;
  color: var(--sage-14);
}

.user-cell-inline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.user-name-strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-main);
}

.users-clean-table tbody tr:hover .user-name-strong {
  color: var(--primary);
  text-decoration: none;
}

.admin-mini-pill {
  background: var(--amber-89);
  color: var(--orange-31);
  border: 1px solid var(--amber-77);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px var(--space-2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}

.status-dot-inline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--green-29);
}

.status-dot-inline::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-45);
  flex-shrink: 0;
}

.status-dot-inline.pending {
  color: var(--orange-37);
}

.status-dot-inline.pending::before {
  background: var(--orange-50);
}

.status-dot-inline.unlinked {
  color: var(--text-muted);
}

.status-dot-inline.unlinked::before {
  background: var(--gray-57);
}

/* iOS-stijl Aan/Uit Schakelaar voor IP-Recht */
.ip-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  border: none;
  padding: 2px var(--space-1);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
}

.ip-switch-track {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  transition: background 0.16s ease;
  flex-shrink: 0;
}

.ip-switch-track.on {
  background: var(--green-39);
}

.ip-switch-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.16s ease;
  box-shadow: 0 1px 3px rgba(var(--ink-rgb), 0.25);
}

.ip-switch-track.on .ip-switch-thumb {
  transform: translateX(16px);
}

.icon-mail-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--sage-97);
  color: var(--sage-21);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8125rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.icon-mail-btn:hover {
  background: var(--sage-90);
  border-color: var(--sage-85);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

/* Gebruiker Detail Popup Overzicht */
.user-detail-header-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg, var(--sage-97) 0%, var(--sage-96) 100%);
  border: 1px solid var(--sage-85);
  border-radius: 12px;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.user-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.user-detail-tile {
  background: var(--sage-97);
  border: 1px solid var(--border-light);
  border-radius: 11px;
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.user-detail-tile-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.user-detail-tile-value {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
}

@media (max-width: 680px) {
  .user-detail-grid {
    grid-template-columns: 1fr;
  }
}




/* Snelle aantekeningen-knop en pop-up in het assessment scoreformulier */
.btn-notes-quick {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.btn-notes-quick svg {
  width: 15px;
  height: 15px;
}
.btn-notes-quick:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Opslagfout zichtbaar maken (autosave-indicator en melding) */
.o365-dot.error { background: var(--danger); }
.o365-text-error { color: var(--danger-ink); font-weight: 700; }
.prpp-save-error-banner {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 10000; max-width: min(640px, calc(100vw - 28px));
  background: var(--danger-light); color: var(--red-35); border: 1px solid var(--red-82);
  border-radius: 12px; padding: var(--space-3) var(--space-5); font-size: .9rem; font-weight: 600;
  box-shadow: 0 10px 30px rgba(var(--ink-rgb), .18); cursor: pointer;
}

/* Meldingen in de inlogflow */
.success-banner { background: var(--sage-93-3); color: var(--green-27); padding: var(--space-3) var(--space-3); border-radius: 8px; font-size: 0.88rem; font-weight: 600; }

/* =========================================================================
   LOGIN-POPUP: COMPACT OP LAGE SCHERMEN + LAADSTATUS
   (scrollen en maximale hoogte staan bij .login-modal-overlay en .login-modal-card)
   ========================================================================= */
@media (max-height: 820px) {
  .login-modal-overlay { padding: var(--space-3); }
  .login-modal-card { padding: var(--space-6) var(--space-7); border-radius: 22px; }
  .login-modal-close { top: 12px; right: 12px; width: 32px; height: 32px; }
  .login-modal-brand { margin-bottom: var(--space-3); }
  .login-modal-brand img, .login-modal-brand svg { max-height: 44px; width: auto; }
  .login-modal-sub { font-size: 0.78rem; margin-top: 2px; }
  .login-modal-tabs { margin-bottom: var(--space-3); }
  .login-tab-btn { padding: var(--space-2) var(--space-3); font-size: 0.84rem; }
  .login-modal-card .form-group label { margin-bottom: var(--space-1); font-size: 0.86rem; }
  .login-modal-card .mt-2 { margin-top: var(--space-2) !important; }
  .login-modal-card .mt-3 { margin-top: var(--space-3) !important; }
  .form-input-modern { padding: var(--space-2) var(--space-3); font-size: 0.92rem; }
  .accesscode-input-modern { padding: var(--space-2); font-size: 1.15rem; }
  .btn-pill-lg { padding: var(--space-2) var(--space-5); font-size: 0.94rem; }
  .modal-footer-switch { font-size: 0.82rem; gap: 2px; }
  .modal-order-sub-banner { padding: var(--space-2) var(--space-3); font-size: 0.78rem; }
  .login-modal-card .label-with-action { margin-bottom: var(--space-1); }
}
@media (max-height: 500px) {
  .login-modal-overlay { align-items: flex-start; padding: var(--space-2); }
  .login-modal-card { padding: var(--space-4) var(--space-5); max-height: calc(100dvh - 16px); }
  .login-modal-brand { margin-bottom: var(--space-2); }
  .login-modal-brand img, .login-modal-brand svg { max-height: 32px; }
  .login-modal-sub { display: none; }
  .login-modal-tabs { margin-bottom: var(--space-2); }
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(var(--white-rgb), 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
  vertical-align: -3px;
  margin-right: var(--space-2);
}
.btn-spinner-lg {
  width: 36px;
  height: 36px;
  border-width: 3px;
  border-color: rgba(var(--primary-rgb), 0.25);
  border-top-color: var(--primary);
  margin: 0 0 var(--space-3);
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
.login-modal-card .btn-login-blue:disabled {
  background: var(--primary-muted);
  color: var(--white);
  cursor: progress;
  transform: none;
}
.login-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(var(--rgb-24-38-30), 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-busy-box {
  background: var(--white);
  border-radius: 20px;
  padding: var(--space-7) var(--space-9);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 700;
  color: var(--sage-18);
  box-shadow: 0 25px 60px -15px rgba(var(--rgb-24-38-30), 0.4);
}

/* =========================================================================
   UITKLAPBARE SUBMENU'S IN DE BOVENBALK + VASTE ACTIEBALKEN
   ========================================================================= */
/* Tweede menurij met de onderdelen van het actieve hoofdmenu-item (onderdeel van de vaste bovenbalk) */
.subnav-row {
  background: var(--sage-94);
  border-top: 1px solid var(--sage-86);
  border-bottom: 1px solid var(--sage-86);
}
.subnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.subnav-parent {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.subnav-arrow { font-size: 1.1rem; color: var(--sage-58); }
.subnav-items { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.subnav-item {
  font-family: var(--font-heading);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: var(--space-1) var(--space-3);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-30);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: background 0.15s ease, color 0.15s ease;
}
.subnav-item:hover { background: rgba(var(--white-rgb), 0.7); color: var(--text-main); }
.subnav-item.active {
  background: var(--white);
  color: var(--sage-18);
  font-weight: 700;
  border-color: var(--sage-83);
  box-shadow: 0 1px 4px rgba(var(--ink-rgb), 0.08);
}
@media (max-width: 680px) {
  .subnav-inner { padding: var(--space-2) var(--space-3); gap: var(--space-2); }
  .subnav-parent { width: 100%; }
}
@media (max-height: 500px) {
  .subnav-inner { padding-top: var(--space-1); padding-bottom: var(--space-1); }
  .subnav-item { padding: var(--space-1) var(--space-3); }
}

/* Actieknoppen blijven in beeld onder de vaste bovenbalk */
.page-action-bar {
  position: sticky;
  top: var(--navbar-h, 64px);
  z-index: 60;
  background: var(--bg-card, var(--white));
  padding: var(--space-3) 0;
  margin-top: calc(var(--space-3) * -1);
  border-bottom: 1px solid transparent;
}
.user-selection-sticky {
  position: sticky;
  top: calc(var(--navbar-h, 64px) + var(--action-bar-h, 0px));
  z-index: 55;
  box-shadow: 0 6px 14px -8px rgba(var(--ink-rgb), 0.25);
}
.sticky-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 40;
  background: var(--bg-card, var(--white));
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border-light, var(--border-light));
}
@media (max-height: 500px) {
  .page-action-bar { padding: var(--space-2) 0; margin-top: calc(var(--space-2) * -1); }
}

/* =========================================================================
   DEV-BACKLOG (alleen beheerders)
   ========================================================================= */
.dev-filter-row {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) repeat(5, minmax(120px, 1fr));
  gap: var(--space-2);
}
@media (max-width: 980px) { .dev-filter-row { grid-template-columns: 1fr 1fr 1fr; } .dev-filter-row #dev-search { grid-column: 1 / -1; } }
@media (max-width: 560px) { .dev-filter-row { grid-template-columns: 1fr 1fr; } }
.dev-list { display: flex; flex-direction: column; gap: var(--space-2); }
.dev-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--border);
  border-radius: 12px;
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.dev-row:hover { box-shadow: 0 4px 14px -6px rgba(var(--ink-rgb), 0.25); }
.dev-row:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.dev-row.dev-prio-kritiek { border-left-color: var(--danger); }
.dev-row.dev-prio-hoog { border-left-color: var(--orange-50); }
.dev-row.dev-prio-normaal { border-left-color: var(--primary); }
.dev-row.dev-prio-laag { border-left-color: var(--border); }
.dev-row-main { min-width: 0; flex: 1; }
.dev-row-title { font-weight: 700; color: var(--text-main); overflow-wrap: anywhere; }
.dev-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-top: var(--space-1); font-size: 0.8rem; }
.dev-meta-text { color: var(--text-muted); }
.dev-chip { display: inline-flex; align-items: center; gap: var(--space-1); padding: 1px var(--space-2); border-radius: 999px; font-size: 0.76rem; font-weight: 700; background: var(--sage-95); color: var(--gray-30); }
.dev-type-bug { background: var(--danger-light); color: var(--danger-ink); }
.dev-type-aanpassing { background: var(--blue-94); color: var(--blue-41); }
.dev-type-wens { background: var(--amber-89); color: var(--orange-31); }
.dev-chip-prio-kritiek { background: var(--danger); color: var(--white); }
.dev-chip-prio-hoog { background: var(--orange-92); color: var(--warn-ink); }
.dev-chip-prio-normaal { background: var(--sage-90); color: var(--primary-dark); }
.dev-chip-prio-laag { background: var(--blue-96); color: var(--blue-34); }
.dev-status-select { width: auto; min-width: 118px; padding: var(--space-2) var(--space-3); font-weight: 700; font-size: 0.84rem; }
/* Statuskleuren: nieuw = lichtgeel, gepland = lichtblauw, bezig = diepblauw, test = oranje, klaar = groen, afgewezen = rood */
.dev-status-select.dev-status-nieuw { background-color: var(--amber-88); color: var(--orange-26); border-color: var(--amber-53); }
.dev-status-select.dev-status-gepland { background-color: var(--blue-93); color: var(--blue-33); border-color: var(--blue-78); }
.dev-status-select.dev-status-bezig { background-color: var(--blue-48); color: var(--white); border-color: var(--blue-40); }
.dev-status-select.dev-status-test { background-color: var(--orange-61); color: var(--orange-15); border-color: var(--orange); }
.dev-status-select.dev-status-klaar { background-color: var(--green-29); color: var(--white); border-color: var(--green-24); }
.dev-status-select.dev-status-afgewezen { background-color: var(--danger); color: var(--white); border-color: var(--danger-ink); }
.dev-status-select option { background: var(--white); color: var(--text-main); }
/* Afgeronde items (status Klaar): lichter en grijs, duidelijk niet meer actief */
.dev-row.dev-row-done { opacity: 0.55; background: var(--blue-96); border-color: var(--blue-91); border-left-color: var(--blue-84); filter: grayscale(0.6); }
.dev-row.dev-row-done .dev-row-title { color: var(--gray-46-2); text-decoration: line-through; text-decoration-color: var(--blue-65); }
.dev-row.dev-row-done:hover, .dev-row.dev-row-done:focus-visible { opacity: 0.85; }

/* Gewijzigd-markering en slepen in de DEV-backlog */
.dev-row-changed { background: var(--amber-96); border-color: var(--orange-75); }
.dev-changed-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange-50);
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
}
.dev-chip-changed { background: var(--amber-89); color: var(--orange-31); }
.dev-changed-count {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: var(--space-2);
  padding: 2px var(--space-3);
  border-radius: 999px;
  background: var(--amber-89);
  color: var(--orange-31);
  font-size: 0.78rem;
  font-weight: 700;
}
.dev-drag-hint { margin: 0 0 var(--space-2); font-size: 0.8rem; color: var(--gray-45); }
.dev-reorder { flex: 0 0 auto; display: flex; align-items: center; gap: var(--space-2); }
.dev-drag-handle {
  cursor: grab;
  color: var(--gray-57-2);
  font-size: 1.25rem;
  line-height: 1;
  padding: var(--space-1) 2px;
  user-select: none;
}
.dev-drag-handle:hover { color: var(--primary); }
.dev-drag-handle:active { cursor: grabbing; }
.dev-move-btns { display: flex; flex-direction: column; gap: 2px; }
.dev-move-btn {
  width: 22px;
  height: 17px;
  padding: 0;
  border: 1px solid var(--sage-86);
  border-radius: 5px;
  background: var(--white);
  color: var(--primary);
  font-size: 0.6rem;
  line-height: 1;
  cursor: pointer;
}
.dev-move-btn:hover { background: var(--sage-94); }
.dev-row-dragging { opacity: 0.45; }
.dev-row.dev-drop-before { box-shadow: 0 -3px 0 0 var(--primary); }
.dev-row.dev-drop-after { box-shadow: 0 3px 0 0 var(--primary); }
@media (max-width: 560px) { .dev-row { flex-wrap: wrap; } .dev-status-select { width: 100%; } }

.dev-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.dev-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 560px) { .dev-grid-3, .dev-grid-2 { grid-template-columns: 1fr; } }
.dev-thumbs { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.dev-thumb { position: relative; width: 120px; height: 90px; border-radius: 8px; border: 1px solid var(--sage-86); overflow: hidden; background: var(--sage-97); }
.dev-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.dev-thumb-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(var(--ink-rgb), 0.75); color: var(--white); cursor: pointer; line-height: 1; font-size: 1rem; }
.dev-thumb-add { display: flex; align-items: center; justify-content: center; border-style: dashed; color: var(--primary); font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.dev-thumb-add:hover { background: var(--sage-94); }
.dev-lightbox { position: fixed; inset: 0; z-index: 900; background: rgba(var(--ink-rgb), 0.85); display: flex; align-items: center; justify-content: center; padding: var(--space-5); cursor: zoom-out; }
.dev-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.dev-comments { display: flex; flex-direction: column; gap: var(--space-2); max-height: 220px; overflow-y: auto; margin-bottom: var(--space-2); }
.dev-comment { background: var(--sage-97); border: 1px solid var(--border-light); border-radius: 8px; padding: var(--space-2) var(--space-3); }
.dev-comment-system { background: transparent; border-style: dashed; color: var(--text-muted); }
.dev-comment-head { font-size: 0.74rem; color: var(--text-muted); font-weight: 700; margin-bottom: 2px; }
.dev-comment-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.88rem; }
.dev-comment-new { display: flex; gap: var(--space-2); align-items: flex-end; }
.dev-comment-new textarea { flex: 1; }

/* =========================================================================
   CLIËNTEXPORT
   ========================================================================= */
.cx-toolbar { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; margin-bottom: var(--space-2); }
.cx-toolbar .form-input { flex: 1; min-width: 180px; }
.cx-check { display: flex; align-items: flex-start; gap: var(--space-2); cursor: pointer; font-size: 0.9rem; margin: var(--space-1) 0; }
.cx-check input { margin-top: var(--space-1); }
.cx-list { border: 1px solid var(--border-light); border-radius: 12px; max-height: 260px; overflow-y: auto; background: var(--white); }
.cx-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--sage-95); cursor: pointer; }
.cx-row:last-child { border-bottom: none; }
.cx-row:hover { background: var(--sage-97); }
.cx-row-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.cx-row-meta { color: var(--text-muted); font-size: 0.8rem; white-space: nowrap; }
.cx-warning { background: var(--amber-89); border: 1px solid var(--orange-50); border-radius: 12px; padding: var(--space-3) var(--space-4); color: var(--orange-26-2); }
.cx-warning p { margin: var(--space-1) 0 var(--space-2); font-size: 0.86rem; }
@media (max-height: 640px) { .cx-list { max-height: 150px; } }

/* Iconen (vervangen de emoji, nov 2026) */
.ico { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; flex: none; }

.bento-icon-svg {
  display: block;
  margin-bottom: var(--space-4);
}

.client-hero-card > div:first-child {
  flex: 1 1 var(--hero-text-min, 320px);
  min-width: 0;
}


/* =========================================================================
   2FA-CODESCHERM (in de stijl van de login-popup)
   ========================================================================= */
.twofa-icon-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  background: var(--sage-95-2);
  border: 1px solid var(--sage-86);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.twofa-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sage-18);
  margin: 0 0 var(--space-2);
}
.twofa-desc {
  text-align: center;
  margin: 0;
  overflow-wrap: anywhere;
}
.twofa-trust {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.twofa-trust input {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary);
}
.twofa-card .accesscode-input-modern:focus {
  outline: none;
  border-style: solid;
  border-color: var(--primary-muted);
  box-shadow: 0 0 0 3px rgba(var(--rgb-93-117-106), 0.18);
}

/* Privacyverklaring: koppen vet, tekst normaal */
#privacy-modal-overlay h3 { font-size: 1rem; font-weight: 700; margin: 18px 0 4px; }
#privacy-modal-overlay p { font-weight: 400; margin: 0 0 8px; line-height: 1.5; }

/* =========================================================================
   PRPP.Online — UI-laag "landingspagina-stijl"
   Knoppen, tabs en schakelaars in Gebruikersoverzicht, Cliëntenoverzicht, Toegangscodes,
   Instellingen en Handelingen Templates volgen de stijl van de landingspagina:
   afgeronde pills in rustig saliegroen (primair = donkergroen, secundair = zacht groen).

   Geldt voor de ingelogde app (.app-shell) en alle dialoogvensters (.modal-backdrop).
   Voorheen het losse bestand css/ui-landing.css; in KonMari 3f hier achteraan gezet,
   in dezelfde volgorde, zodat de cascade precies gelijk blijft.
   ========================================================================= */

:is(.app-shell, .modal-backdrop) {
  --ui-sage: var(--primary);
  --ui-sage-dark: var(--primary-dark);
  --ui-sage-soft: var(--sage-94);
  --ui-sage-soft-hover: var(--sage-90);
  --ui-sage-border: var(--sage-85);
  --ui-sage-text: var(--sage-26);
  --ui-sage-ink: var(--sage-17);
}

:is(.app-shell, .modal-backdrop) .btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

:is(.app-shell, .modal-backdrop) .btn-primary,
:is(.app-shell, .modal-backdrop) .btn-green,
:is(.app-shell, .modal-backdrop) .btn-purple,
:is(.app-shell, .modal-backdrop) .btn-purple-full {
  background: var(--ui-sage);
  color: var(--white);
  border-color: transparent;
  box-shadow: none;
}
:is(.app-shell, .modal-backdrop) .btn-primary:hover,
:is(.app-shell, .modal-backdrop) .btn-green:hover,
:is(.app-shell, .modal-backdrop) .btn-purple:hover,
:is(.app-shell, .modal-backdrop) .btn-purple-full:hover {
  background: var(--ui-sage-dark);
  color: var(--white);
  border-color: transparent;
  box-shadow: none;
}

:is(.app-shell, .modal-backdrop) .btn-secondary,
:is(.app-shell, .modal-backdrop) .btn-light-grey {
  background: var(--ui-sage-soft);
  color: var(--ui-sage-text);
  border-color: var(--ui-sage-border);
  box-shadow: none;
}
:is(.app-shell, .modal-backdrop) .btn-secondary:hover,
:is(.app-shell, .modal-backdrop) .btn-light-grey:hover {
  background: var(--ui-sage-soft-hover);
  color: var(--ui-sage-ink);
  border-color: var(--ui-sage-border);
  transform: none;
  box-shadow: none;
}

:is(.app-shell, .modal-backdrop) .btn-danger {
  border-width: 1px;
  box-shadow: none;
}

:is(.app-shell, .modal-backdrop) .btn-chip {
  background: var(--ui-sage-soft);
  color: var(--ui-sage-text);
  border: 1px solid var(--ui-sage-border);
  border-radius: 999px;
}
:is(.app-shell, .modal-backdrop) .btn-chip:hover {
  background: var(--ui-sage-soft-hover);
  border-color: var(--ui-sage-border);
}
:is(.app-shell, .modal-backdrop) .btn-chip.chip-clear {
  background: var(--danger-light);
  color: var(--danger-ink);
  border-color: var(--red-82);
}
:is(.app-shell, .modal-backdrop) .btn-dashed-add {
  border-color: var(--ui-sage-border);
  color: var(--ui-sage-text);
  border-radius: 999px;
}
:is(.app-shell, .modal-backdrop) .btn-dashed-add:hover {
  background: var(--ui-sage-soft);
}

:is(.app-shell, .modal-backdrop) .icon-mail-btn,
:is(.app-shell, .modal-backdrop) .icon-btn.edit-pill-btn {
  background: var(--ui-sage-soft);
  border: 1px solid var(--ui-sage-border);
  color: var(--ui-sage-text);
}
:is(.app-shell, .modal-backdrop) .icon-mail-btn:hover,
:is(.app-shell, .modal-backdrop) .icon-btn.edit-pill-btn:hover {
  background: var(--ui-sage-soft-hover);
  border-color: var(--ui-sage-border);
  color: var(--ui-sage-ink);
}

:is(.app-shell, .modal-backdrop) .tabs-bar,
:is(.app-shell, .modal-backdrop) .settings-tabs-bar {
  background: var(--ui-sage-soft);
  border: 1px solid var(--ui-sage-border);
  border-radius: 999px;
}
:is(.app-shell, .modal-backdrop) .tab-link,
:is(.app-shell, .modal-backdrop) .settings-tab {
  border-radius: 999px;
  color: var(--ui-sage-text);
  font-weight: 700;
}
:is(.app-shell, .modal-backdrop) .tab-link:hover,
:is(.app-shell, .modal-backdrop) .settings-tab:hover {
  background: rgba(var(--white-rgb), 0.6);
  color: var(--ui-sage-ink);
}
:is(.app-shell, .modal-backdrop) .tab-link.active,
:is(.app-shell, .modal-backdrop) .settings-tab.active {
  background: var(--ui-sage);
  color: var(--white);
  border-color: transparent;
  box-shadow: none;
}

:is(.app-shell, .modal-backdrop) .ip-switch-track.on {
  background: var(--ui-sage);
}
:is(.app-shell, .modal-backdrop) .tag-filter-select {
  border: 1px solid var(--ui-sage-border);
  color: var(--ui-sage-text);
}
:is(.app-shell, .modal-backdrop) .tag-filter-select:focus,
:is(.app-shell, .modal-backdrop) .form-input:focus {
  outline: none;
  border-color: var(--ui-sage);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

/* ---- Paginering onder het cliëntenoverzicht ---- */
:is(.app-shell, .modal-backdrop) .pagination-footer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-4) var(--space-6);
  margin-top: var(--space-4);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
:is(.app-shell, .modal-backdrop) .pagination-footer-card strong {
  color: var(--ui-sage-ink);
}
:is(.app-shell, .modal-backdrop) .pagination-btns {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
:is(.app-shell, .modal-backdrop) .page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 var(--space-3);
  border-radius: 999px;
  border: 1px solid var(--ui-sage-border);
  background: var(--ui-sage-soft);
  color: var(--ui-sage-text);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
:is(.app-shell, .modal-backdrop) .page-btn:hover:not(:disabled):not(.active) {
  background: var(--ui-sage-soft-hover);
  color: var(--ui-sage-ink);
}
:is(.app-shell, .modal-backdrop) .page-btn.active {
  background: var(--ui-sage);
  border-color: transparent;
  color: var(--white);
  box-shadow: none;
}
:is(.app-shell, .modal-backdrop) .page-btn:disabled {
  background: var(--bg-page);
  color: var(--text-muted);
  border-color: var(--border-light);
  cursor: not-allowed;
}

/* ---- Dialoogvensters, uitgeschakelde knoppen, sluitknop ---- */
:is(.app-shell, .modal-backdrop) .btn:disabled,
:is(.app-shell, .modal-backdrop) .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
:is(.app-shell, .modal-backdrop) .btn-close-x {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
:is(.app-shell, .modal-backdrop) .btn-close-x:hover {
  background: var(--ui-sage-soft);
  color: var(--ui-sage-ink);
}
:is(.app-shell, .modal-backdrop) .btn-link-xs {
  color: var(--ui-sage-text);
}
:is(.app-shell, .modal-backdrop) .seg-btn.active,
:is(.app-shell, .modal-backdrop) .drawer-lang-btn.active {
  background: var(--ui-sage);
  color: var(--white);
}

/* ---- Instellingen > Gedeelde Tags ---- */
:is(.app-shell, .modal-backdrop) .tag-group-item:hover {
  border-color: var(--ui-sage-border);
}
:is(.app-shell, .modal-backdrop) .tag-group-item.active {
  background: var(--ui-sage-soft);
  border-color: var(--ui-sage);
  box-shadow: none;
}
:is(.app-shell, .modal-backdrop) .tag-mini-btns {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
:is(.app-shell, .modal-backdrop) .tag-mini-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--ui-sage-border);
  background: var(--ui-sage-soft);
  color: var(--ui-sage-text);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
:is(.app-shell, .modal-backdrop) .tag-mini-btn:hover {
  background: var(--ui-sage-soft-hover);
  color: var(--ui-sage-ink);
}

/* =========================================================================
   PRPP.Online — UI-opfrisser (nov 2026): rustiger, strakker, consistenter
   Voorheen het losse bestand css/ui-refresh.css (geladen na styles.css en
   ui-landing.css); in KonMari 3f hier achteraan gezet, in dezelfde volgorde.
   ========================================================================= */

/* Stap 4: kaarten met dunne rand, zonder schaduw */
.card,
.client-hero-card,
.security-card,
.avatar-section-card {
  box-shadow: none;
  border: 1px solid var(--border-light);
}

/* Stap 5: duidelijke toetsenbordfocus in salie */
:is(.app-shell, .modal-backdrop) :is(button, a, [role="button"], summary, .tab-link, .settings-tab, .nav-pill, .page-btn):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Stap 5: knoppen en tabs bewegen niet bij hover */
:is(.app-shell, .modal-backdrop) .btn:hover,
:is(.app-shell, .modal-backdrop) .btn:active {
  transform: none;
}

/* Stap 3: cijfers van gelijke breedte in tabellen en scores */
.data-table,
.users-clean-table,
.summary-comparison-table,
.ws-pill,
.ws-score-pills,
.title-count,
.mastery-progress-pill {
  font-variant-numeric: tabular-nums;
}

/* Stap 6: overzichten */
.data-table th,
.users-clean-table thead th {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border-bottom: 1px solid var(--border-light);
}
.users-clean-table tbody tr,
.data-table tbody tr {
  border-bottom: 1px solid var(--border-light);
}
.users-clean-table tbody tr:hover,
.clickable-row:hover {
  background: var(--sage-97);
}

/* Stap 6: status als bolletje met tekst in plaats van gekleurde pil (basisregel staat bij .status-pill hoger op) */
.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.status-pill.linked,
.status-pill.unlinked {
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Stap 8: formulieren — label boven het veld, rustige velden, sage focus */
.form-input,
.form-input-modern {
  min-height: 40px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.form-input { min-height: 88px; line-height: 1.5; }
.form-input:focus,
.form-input-modern:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.16);
}
.form-input::placeholder { color: var(--gray-57); }
.form-input:disabled { background: var(--bg-page); color: var(--text-muted); cursor: not-allowed; }
.form-input[aria-invalid="true"],
.form-input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(var(--danger-rgb), 0.10);
}
.field-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--sage-21);
  margin-bottom: var(--space-2);
}
/* Foutmelding direct onder een veld */
.field-error {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--danger);
}
.error-banner {
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid var(--red-82);
}

/* Stap 9: lege toestanden */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-10) var(--space-4);
  text-align: center;
  cursor: default;
}
.empty-state-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-main);
}
.empty-state-text {
  max-width: 46ch;
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.5;
}

/* Stap 10: aanraakdoelen, hoofdletters, contrast */
@media (pointer: coarse), (max-width: 1100px) {
  :is(.app-shell, .modal-backdrop) :is(.btn, .nav-pill, .subnav-item, .tab-link, .settings-tab, .page-btn, .btn-close-x) {
    min-height: 44px;
  }
  :is(.app-shell, .modal-backdrop) .page-btn { min-width: 44px; }
  .form-input, .form-input-modern { min-height: 44px; }
}
.tag-indicator-pop-title,
.badge,
.admin-mini-pill {
  text-transform: none;
  letter-spacing: 0;
}
.btn-secondary, .btn-light-grey { color: var(--sage-24-2); }

/* =========================================================================
   STARTPAGINA — verbeteringen november 2026
   ========================================================================= */
/* Voorbeeldlabel bij de fictieve cliënt op de tablet */
.mock-example-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--sage-94);
  color: var(--primary-dark);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
/* Tablet niet kantelen voor wie minder beweging wil */
@media (prefers-reduced-motion: reduce) {
  .tablet-device,
  .tablet-device:hover { transform: none; }
}

/* Knoppen reageren direct op indrukken */
.landing-page-root :is(button, .btn-landing-primary, .btn-landing-secondary):active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}
/* Duidelijke focusrand voor toetsenbordgebruikers */
.landing-page-root :is(button, a, select):focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Kop: korte tekst "Abonnement" alleen op een telefoon */
.landing-nav-right .label-short { display: none; }
@media (max-width: 640px) {
  .landing-header-inner {
    flex-wrap: wrap;
    padding: var(--space-3) var(--space-4);
    gap: var(--space-2);
  }
  .landing-nav-right {
    margin-left: auto;
    gap: var(--space-2);
  }
  .landing-nav-right .btn-landing-secondary {
    background: none;
    border: 0;
    padding: 0 var(--space-2);
    min-height: 44px;
    text-decoration: underline;
  }
  .landing-nav-right .btn-landing-secondary svg,
  .landing-nav-right .label-long { display: none; }
  .landing-nav-right .label-short { display: inline; }
}

/* =========================================================================
   Aantekeningen (nov 2026): één venster voor deelstap, descriptor en algemeen
   - popover vast aan het icoon, modal voor algemene aantekeningen,
     paneel van onderen op telefoons (max. 640px breed)
   - zelfde opbouw: titel, tekstveld, onderbalk met uitleg/teller en "Gereed"
   ========================================================================= */

/* Notitie-icoon: overal dezelfde grootte en kleuren (grijs = leeg, oranje = gevuld) */
.note-anchor {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.note-icon-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease, transform 0.1s ease;
}
.note-icon-btn .prpp-note-svg {
  width: 16px;
  height: 16px;
}
.note-icon-btn:hover {
  background: var(--sage-95);
  color: var(--sage-21);
}
.note-icon-btn:active {
  transform: scale(0.94);
}
.note-icon-btn.has-note {
  color: var(--warn-ink);
  background: var(--orange-96);
}
.note-anchor.is-editing .note-icon-btn {
  background: var(--sage-94);
  color: var(--sage-17);
  box-shadow: inset 0 0 0 1.5px var(--sage-85);
}
.note-anchor.is-editing .note-icon-btn.has-note {
  background: var(--orange-96);
  color: var(--warn-ink);
  box-shadow: inset 0 0 0 1.5px var(--warn-ink);
}
.note-icon-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Tooltip met het begin van de aantekening (alleen met muis, niet tijdens bewerken) */
.note-hover-tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  width: max-content;
  max-width: 260px;
  background: var(--sage-14);
  color: var(--white);
  padding: var(--space-2) var(--space-3);
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  z-index: 95;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}
.note-anchor-left .note-hover-tip { left: 0; }
.note-anchor-right .note-hover-tip { right: 0; }
@media (hover: hover) {
  .note-anchor:hover .note-hover-tip:not(:empty) {
    display: -webkit-box;
  }
}
.note-anchor.is-editing .note-hover-tip {
  display: none !important;
}

/* Laag van het venster (ligt boven het formulier, onder bevestigingsvensters) */
.modal-backdrop.note-editor-root {
  z-index: 450;
  padding: 0;
  background: rgba(var(--ink-rgb), 0);
  transition: background-color 0.24s ease;
}
.modal-backdrop.note-editor-root--popover {
  display: block;
  pointer-events: none;
  background: transparent;
}
.modal-backdrop.note-editor-root--modal {
  padding: var(--space-4);
}
.modal-backdrop.note-editor-root--sheet {
  align-items: flex-end;
}
.note-editor-root--modal.is-open,
.note-editor-root--sheet.is-open {
  background: rgba(var(--ink-rgb), 0.36);
}

/* De kaart zelf: overal dezelfde opbouw */
.note-editor-card {
  pointer-events: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 18px 48px -12px rgba(23, 33, 28, 0.22), 0 2px 6px rgba(23, 33, 28, 0.06);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.16s ease, transform 0.24s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.note-editor-root.is-open .note-editor-card {
  opacity: 1;
  transform: none;
}
.note-editor-root.is-closing .note-editor-card {
  opacity: 0;
  transform: scale(0.96);
  transition-duration: 0.12s, 0.16s;
}

.note-editor-root--popover .note-editor-card {
  position: fixed;
  width: min(360px, calc(100vw - 24px));
  overflow: auto;
}
.note-editor-root--modal .note-editor-card {
  width: min(640px, 100%);
  max-height: calc(100dvh - 32px);
}

/* Telefoon: paneel van onderen; naar beneden vegen sluit */
.note-editor-root--sheet .note-editor-card {
  width: 100%;
  max-height: 88dvh;
  border-radius: 18px 18px 0 0;
  border-bottom: none;
  padding-top: var(--space-2);
  padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  opacity: 1;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.note-editor-root--sheet.is-open .note-editor-card {
  transform: translateY(0);
}
.note-editor-root--sheet.is-closing .note-editor-card {
  opacity: 1;
  transform: translateY(100%);
  transition: transform 0.24s cubic-bezier(0.4, 0, 1, 1);
}
.note-editor-root--sheet.is-dragging .note-editor-card {
  transition: none;
}
.note-editor-grabber {
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background: var(--border);
  margin: 0 auto var(--space-1);
  flex-shrink: 0;
}
.note-editor-root--sheet .note-editor-grabber,
.note-editor-root--sheet .note-editor-head {
  touch-action: none;
  cursor: grab;
}

.note-editor-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.note-editor-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sage-17);
  line-height: 1.35;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--space-1);
}
.note-editor-kind {
  color: var(--text-muted);
  font-weight: 600;
}
.note-editor-sep {
  color: var(--text-muted);
}
.note-editor-detail {
  font-size: 0.8125rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-editor-ta {
  width: 100%;
  box-sizing: border-box;
  min-height: 112px;
  max-height: 45vh;
  max-height: 45dvh;
  resize: none;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-y: auto;
}
.note-editor-root--modal .note-editor-ta {
  min-height: 240px;
  max-height: 60dvh;
}
.note-editor-root--sheet .note-editor-ta {
  min-height: 140px;
  font-size: 1rem; /* voorkomt inzoomen op iPhone */
}

.note-editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.note-editor-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.note-editor-count {
  font-variant-numeric: tabular-nums;
  transition: color 0.15s ease;
}
.note-editor-count.is-near {
  color: var(--warn-ink);
  font-weight: 600;
}
.note-editor-done {
  flex-shrink: 0;
  min-width: 96px;
}

/* Minder beweging: alleen kort in- en uitfaden */
@media (prefers-reduced-motion: reduce) {
  .note-editor-card,
  .note-editor-root--sheet .note-editor-card,
  .note-editor-root.is-open .note-editor-card,
  .note-editor-root.is-closing .note-editor-card {
    transform: none !important;
    transition: opacity 0.15s ease !important;
  }
  .note-editor-root--sheet .note-editor-card { opacity: 0; }
  .note-editor-root--sheet.is-open .note-editor-card { opacity: 1; }
}

/* =========================================================================
   Telefoon (max. 680px): assessmentformulier en Interventieplanner (nov 2026)
   - bovenbalk scrolt mee weg, knoppenbalk van het formulier blijft compact bovenin
   - minder marge, deelstap op twee regels, grote tik-vlakken voor fouten en scores
   ========================================================================= */
.substeps-legend {
  display: none;
}

@media (max-width: 680px) {
  /* Bovenbalk (logo, menu, naam) niet vast in formulieren; de knoppenbalk staat dan echt bovenin */
  .app-shell--form-view .top-navbar {
    position: static;
  }
  .app-shell--form-view .form-sticky-bar {
    top: 0;
  }

  /* Minder lege ruimte rond de kaarten */
  .app-shell--form-view .main-workspace {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
  .app-shell--form-view .card {
    padding: var(--space-4);
  }

  /* Compacte knoppenbalk: titel kleiner, knoppen op één rij, Aantekeningen als icoon */
  .assessment-main-title,
  .ip-main-title {
    font-size: 1.15rem;
    line-height: 1.25;
    margin: 0;
  }
  .form-sticky-actions {
    flex-wrap: nowrap;
    gap: var(--space-2);
  }
  .form-sticky-actions .btn {
    min-height: 38px;
    padding: 0 var(--space-3);
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .btn-notes-quick {
    min-width: 40px;
    padding: 0 10px;
  }
  .btn-notes-quick .btn-label {
    display: none;
  }
  .form-sticky-bar .o365-autosave-pill {
    font-size: 0.75rem;
    padding: 2px var(--space-3);
  }

  /* A/O/H/T uitgelegd in één regel (de schuine kopjes zijn verborgen) */
  .substeps-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 6px;
    margin: var(--space-2) 0 var(--space-3);
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  .substeps-legend strong {
    color: var(--sage-21);
  }

  /* Deelstap op twee regels:  greep · nummer · tekst
                                 A  O  H  T  ...........  ✎ 👁 🗑  */
  .substep-row:not(.substep-header-item) {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-areas:
      "drag num  text text"
      "errs errs errs actions";
    align-items: center;
    gap: var(--space-2);
    background: var(--sage-97);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: var(--space-2) var(--space-3);
  }
  .substep-row:not(.substep-header-item) > .drag-handle { grid-area: drag; }
  .substep-row:not(.substep-header-item) > .substep-num { grid-area: num; width: auto; }
  .substep-row:not(.substep-header-item) .substep-main-box { display: contents; }
  .substep-row:not(.substep-header-item) .substep-text-input { grid-area: text; min-width: 0; }
  .substep-row:not(.substep-header-item) .substep-errors-group {
    grid-area: errs;
    justify-content: flex-start;
    gap: var(--space-3);
    padding-top: 0;
  }
  .substep-row:not(.substep-header-item) > .substep-row-actions {
    grid-area: actions;
    justify-self: end;
  }
  .substep-row .err-box {
    width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 8px;
    font-size: 1.1rem;
  }
  .substep-header-box {
    min-width: 0;
  }
  .substep-header-input {
    min-width: 0;
    width: 100%;
  }

  /* Fase 2: knoppen nvt/1/2/3 groot genoeg om te tikken; de naam krijgt de rest van de breedte */
  .quadrant-box,
  .subquadrant-box {
    padding: var(--space-2);
  }
  .descriptor-row {
    gap: var(--space-2);
    padding: 6px 0;
  }
  .descriptor-left {
    flex: 1;
  }
  .descriptor-name {
    font-size: 0.9rem;
  }
  .descriptor-scores-right {
    gap: 6px;
  }
  .score-btn {
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    border-radius: 8px;
    border-color: var(--border-light);
    background: var(--white);
    font-size: 0.9rem;
  }
}

/* Smalle telefoons: foutvakjes iets kleiner zodat alles op de regel past */
@media (max-width: 380px) {
  .substep-row .err-box {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }
  .substep-row:not(.substep-header-item) .substep-errors-group {
    gap: var(--space-2);
  }
  .score-btn {
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }
}

/* =========================================================================
   Bovenkant assessmentformulier en Interventieplanner (nov 2026)
   - cliëntnaam naast de titel (blijft zichtbaar tijdens scrollen)
   - de balk Cliënt/Ergotherapeut staat alleen nog op de print
   - handeling en datum op één regel
   ========================================================================= */
.form-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  min-width: 0;
}
.form-title-row > h1 {
  margin: 0;
  min-width: 0;
}
.form-client-name {
  min-width: 0;
  max-width: 50%;
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.form-client-name .text-muted {
  font-weight: 400;
}

/* Alleen op papier/PDF */
.client-therapist-bar.print-only {
  display: none;
}
.ass-header-group .occupation-card.mt-2 {
  margin-top: 0;
}

.occupation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: var(--space-3);
  align-items: start;
}
.occupation-main {
  min-width: 0;
}
.occupation-grid .date-row {
  margin-top: 0;
}
.occupation-grid .date-row .form-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
}

@media (max-width: 860px) {
  .occupation-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .form-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .form-client-name {
    max-width: 100%;
    font-size: 0.85rem;
  }
}

@media print {
  .client-therapist-bar.print-only {
    display: flex !important;
  }
  /* De template-keuze komt niet op papier: de handeling krijgt de volle breedte */
  .occupation-row {
    grid-template-columns: 1fr !important;
  }
  .ass-header-group .occupation-card.mt-2 {
    margin-top: var(--space-2) !important;
  }
}

/* =========================================================================
   Kopregels PAKKEN / DOEN (nov 2026): pas aanpassen na klik op het potloodje
   (assessmentformulier en template-editor)
   ========================================================================= */
.substep-header-box,
.tpl-header-pill {
  gap: var(--space-1);
  padding: var(--space-1) var(--space-1) var(--space-1) calc(var(--space-1) + 28px); /* tekst blijft in het midden */
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.header-edit-input {
  min-width: 0;
  padding: 4px var(--space-2);
  border-radius: 6px;
  font-family: inherit;
}
.header-edit-input[readonly] {
  pointer-events: none; /* in rust: klikken doet niets, de regel blijft te verslepen */
  cursor: default;
  caret-color: transparent;
}
.header-edit-input:focus,
.header-edit-input:focus-visible {
  outline: none;
  box-shadow: none;
}
.header-edit-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease, transform 0.1s ease;
}
.header-edit-btn svg {
  width: 16px;
  height: 16px;
}
.header-edit-btn:hover {
  background: var(--white);
  color: var(--sage-17);
}
/* Potloodje naast de naam in het cliëntdossier: de kaart is zelf al wit */
.client-name-row .header-edit-btn:hover {
  background: var(--sage-95);
}
.header-edit-btn:active {
  transform: scale(0.94);
}
.header-edit-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
/* Tijdens bewerken: zelfde look als een invulveld, potloodje wordt een vinkje */
.substep-header-box.is-editing,
.tpl-header-pill.is-editing {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.16);
}
.is-editing .header-edit-btn {
  background: var(--primary);
  color: var(--white);
}
@media print {
  .substep-header-box {
    padding: var(--space-2) var(--space-3) !important;
  }
}

/* =========================================================================
   Afdrukken stap A (nov 2026): keuze cliëntnaam, tekst niet afkappen,
   duidelijke scores in zwart-wit, notities bij deelstappen
   ========================================================================= */
.print-client-name-choice {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.print-check-item.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
/* Alleen tijdens het printen aanwezig; op het scherm nooit zichtbaar */
.print-text-mirror {
  display: none;
}

@media print {
  /* Tekstvakken en gemarkeerde velden worden gewone tekst, zodat lange teksten niet worden afgekapt */
  textarea.print-mirrored,
  input.print-mirrored {
    display: none !important;
  }
  .print-text-mirror {
    display: block !important;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-main);
    background: var(--white);
  }
  .print-text-mirror-input {
    font-size: 1rem;
    font-weight: 600;
  }
  .print-text-mirror:empty {
    display: none !important;
  }

  /* Scores: de gekozen score valt op, ook zonder achtergrondkleuren en in zwart-wit */
  .score-btn,
  .ws-pill,
  .err-box {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .score-btn:not(.selected),
  .ws-pill:not(.active) {
    color: #9ca3af !important;
    background: transparent !important;
    border-color: transparent !important;
    font-weight: 500 !important;
  }
  .score-btn.selected,
  .ws-pill.active {
    color: #000 !important;
    background: var(--white) !important;
    border: 2px solid #000 !important;
    font-weight: 800 !important;
  }
  .err-box.checked {
    color: #000 !important;
    border-color: #000 !important;
    font-weight: 800;
  }

  /* Descriptornamen niet afkorten met "…" maar laten doorlopen */
  .descriptor-name {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: break-word;
    hyphens: auto;
    font-size: 0.75rem;
  }
}

/* =========================================================================
   Afdrukken stap B/C (nov 2026): snelkeuzes in het keuzevenster en het
   aparte printdocument van het assessment (.pdoc, js/print-assessment.js)
   ========================================================================= */
.print-presets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.print-preset-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-main);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.print-preset-btn:hover {
  border-color: var(--primary);
}
.print-preset-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
#prpp-print-modal-backdrop .field-label {
  display: block;
  margin-bottom: var(--space-1);
}

/* Het printdocument en de scoreformulieren in de samenvatting staan nooit op het scherm */
#prpp-print-doc,
.summary-print-forms {
  display: none;
}

@media print {
  body.print-doc-mode > :not(#prpp-print-doc) {
    display: none !important;
  }
  body.print-doc-mode {
    background: var(--white) !important;
  }
  body.print-doc-mode #prpp-print-doc,
  .summary-print-forms {
    display: block !important;
  }
  .summary-print-forms .pdoc {
    break-before: page;
  }
}

.pdoc {
  font-family: Inter, Arial, sans-serif;
  font-size: 10pt;
  line-height: 1.4;
  color: #111827;
}
.pdoc-title {
  margin: 0 0 4mm;
  font-size: 16pt;
  font-weight: 700;
  color: var(--primary);
}
.pdoc-sec {
  margin: 0 0 6mm;
}
.pdoc-new-page .pdoc-sec + .pdoc-sec:not(.pdoc-meta-sec + .pdoc-sec) {
  break-before: page;
}
.pdoc-sec h2 {
  margin: 0 0 2.5mm;
  padding-bottom: 1.5mm;
  border-bottom: 1.5px solid var(--primary);
  font-size: 11.5pt;
  font-weight: 700;
  color: var(--primary);
  break-after: avoid;
}
.pdoc-sec h2 em {
  font-weight: 600;
}
.pdoc-meta {
  width: 100%;
  border-collapse: collapse;
}
.pdoc-meta th {
  width: 1%;
  padding: 1.5mm 3mm 1.5mm 0;
  text-align: left;
  font-weight: 500;
  color: #4b5563;
  white-space: nowrap;
  vertical-align: top;
}
.pdoc-meta td {
  padding: 1.5mm 6mm 1.5mm 0;
  font-weight: 600;
  vertical-align: top;
}
.pdoc-meta td:last-child {
  white-space: nowrap;
}
.pdoc-meta tr + tr th,
.pdoc-meta tr + tr td {
  border-top: 1px solid #e5e7eb;
}
.pdoc-line,
.pdoc-label {
  margin: 0 0 1.5mm;
}
.pdoc-label {
  font-weight: 600;
}
.pdoc-text {
  margin-bottom: 3mm;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pdoc-empty,
.pdoc-muted {
  color: #6b7280;
}
.pdoc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9.5pt;
}
.pdoc-table th,
.pdoc-table td {
  padding: 1.2mm 1.5mm;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}
.pdoc-table thead th {
  border-bottom: 1.5px solid #9ca3af;
  font-size: 8.5pt;
  font-weight: 700;
  color: #374151;
}
.pdoc-table tr {
  break-inside: avoid;
}
.pdoc-num {
  width: 7mm;
  color: #6b7280;
}
.pdoc-table .pdoc-err {
  width: 7mm;
  text-align: center;
  font-weight: 800;
}
.pdoc-step-header td {
  padding-top: 2mm;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #9ca3af;
}
.pdoc-inactive td {
  color: #9ca3af;
}
.pdoc-note-row td {
  padding-top: 0;
  font-size: 8.5pt;
  font-style: italic;
  color: #374151;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pdoc-legend {
  margin: 1.5mm 0 3mm;
  font-size: 8pt;
  color: #4b5563;
}
.pdoc-score-legend div {
  margin-bottom: 0.5mm;
}
.pdoc-result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2mm 6mm;
  margin-top: 2mm;
  padding: 2mm 3mm;
  border: 1.5px solid #111827;
  border-radius: 2mm;
  break-inside: avoid;
}
.pdoc-result-main {
  margin-left: auto;
  font-size: 11pt;
}
.pdoc-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4mm 5mm;
  align-items: start;
}
.pdoc-stack > * + * {
  margin-top: 4mm;
}
.pdoc-table .pdoc-quad-row th {
  border-bottom: 1.5px solid #111827;
  font-size: 9.5pt;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pdoc-sub-row td {
  padding-top: 2mm;
  font-size: 8.5pt;
  font-weight: 700;
  color: #374151;
}
.pdoc-pct {
  margin-left: 1.5mm;
  font-weight: 600;
  color: #374151;
}
.pdoc-table .pdoc-pct-cell {
  width: 14mm;
  text-align: right;
  font-weight: 700;
}
.pdoc-compact tr:not(.pdoc-quad-row) td:first-child {
  padding-left: 4mm;
}
.pdoc-table .pdoc-score {
  width: 7mm;
  padding: 0.8mm;
  text-align: center;
  font-size: 8.5pt;
  color: #b8bec6;
}
.pdoc-score.is-sel span {
  display: inline-block;
  min-width: 5.5mm;
  border: 1.5px solid #111827;
  border-radius: 1.2mm;
  color: #111827;
  font-weight: 800;
}
.pdoc-desc-note {
  width: 45%;
  font-size: 8.5pt;
  color: #374151;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pdoc-ws-quad {
  margin-bottom: 3mm;
  border: 1px solid #d1d5db;
  border-radius: 2mm;
  break-inside: avoid;
}
.pdoc-ws-quad-title {
  padding: 1.5mm 3mm;
  border-bottom: 1px solid #d1d5db;
  font-size: 9.5pt;
  font-weight: 700;
  text-transform: uppercase;
}
.pdoc-ws-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pdoc-ws-col {
  padding: 2mm 3mm;
}
.pdoc-ws-col + .pdoc-ws-col {
  border-left: 1px solid #e5e7eb;
}
.pdoc-ws-sub {
  margin-bottom: 1.5mm;
  font-size: 8.5pt;
  font-weight: 700;
}
.pdoc-ws-item {
  margin-bottom: 1.5mm;
  font-size: 8.5pt;
}
.pdoc-ws-name {
  display: flex;
  justify-content: space-between;
  gap: 2mm;
}
.pdoc-ws-score {
  font-weight: 800;
}
.pdoc-ws-note {
  font-style: italic;
  color: #374151;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pdoc-footer {
  margin-top: 6mm;
  font-size: 7.5pt;
  color: #6b7280;
  text-align: center;
}

/* =========================================================================
   Afdrukken: snelkeuze "Scoreformulier (1 A4)" (to-do 17, dec 2026)
   Vaste opmaak zoals het papieren scoreformulier (js/print-assessment.js,
   renderAssessmentSheetHtml). Letters minimaal 8 pt (copyright 7 pt).
   ========================================================================= */
.print-fixed-hint {
  margin: 0 0 var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--sage-85);
  border-radius: var(--radius-sm);
  background: var(--sage-94);
  font-size: var(--text-sm);
  color: var(--sage-17);
}
.print-sections-checklist.is-fixed {
  opacity: 0.5;
}

.psheet {
  font-family: Inter, Arial, sans-serif;
  font-size: 8.5pt;
  line-height: 1.2;
  color: #111827;
}
.psheet-title {
  margin: 0 0 1.5mm;
  font-size: 12pt;
  font-weight: 700;
  color: var(--primary);
}
.psheet-meta {
  width: 100%;
  margin-bottom: 2mm;
  border: 1px solid #9ca3af;
  border-collapse: collapse;
}
.psheet-meta th {
  width: 1%;
  padding: 0.8mm 1.5mm;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-weight: 500;
  color: #4b5563;
  white-space: nowrap;
  vertical-align: top;
}
.psheet-meta td {
  padding: 0.8mm 3mm 0.8mm 0;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
  vertical-align: top;
}
.psheet-nowrap {
  white-space: nowrap;
}
.psheet-cols {
  display: grid;
  grid-template-columns: minmax(0, 57fr) minmax(0, 43fr);
  gap: 0 4mm;
  align-items: start;
}
.psheet h2 {
  margin: 0 0 1mm;
  padding-bottom: 0.8mm;
  border-bottom: 1.5px solid var(--primary);
  font-size: 9pt;
  font-weight: 700;
  color: var(--primary);
}
.psheet-crit {
  margin: 0 0 1.5mm;
  overflow-wrap: anywhere;
}
.psheet-table {
  width: 100%;
  border-collapse: collapse;
}
.psheet-table th,
.psheet-table td {
  padding: 0.55mm 1mm;
  border-bottom: 0.5pt solid #d1d5db;
  text-align: left;
  vertical-align: top;
}
.psheet-table tr {
  break-inside: avoid;
}
.psheet-steps thead th {
  border-bottom: 1pt solid #6b7280;
  font-size: 8pt;
}
.psheet-steps td {
  overflow-wrap: anywhere;
}
.psheet-table .psheet-num {
  width: 6.5mm;
  padding-right: 0;
  color: #6b7280;
  white-space: nowrap;
}
.psheet-table .psheet-err {
  width: 5mm;
  text-align: center;
  font-weight: 800;
}
.psheet-step-header td {
  border-bottom: 1pt solid #9ca3af;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.psheet-inactive td,
.psheet-muted {
  color: #9ca3af;
}
.psheet-result {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1mm 3mm;
  margin-top: 1.5mm;
  padding: 1mm 2mm;
  border: 1.2pt solid #111827;
  border-radius: 1.5mm;
  break-inside: avoid;
}
.psheet-result-main {
  font-size: 9.5pt;
}
.psheet-legend {
  margin: 1mm 0 0;
  font-size: 8pt;
  color: #4b5563;
}
.psheet-col-side {
  width: 5mm;
}
.psheet-col-score {
  width: 5.5mm;
}
.psheet-desc-table td {
  padding: 0.3mm 1mm;
  font-size: 8pt;
  line-height: 1.12;
}
.psheet-sub td {
  padding-top: 0.5mm;
  font-weight: 700;
  color: #374151;
}
.psheet-pct {
  font-weight: 600;
  color: #374151;
}
.psheet-table .psheet-score {
  padding: 0.2mm;
  text-align: center;
  color: #b8bec6;
}
.psheet-score.is-sel span {
  display: inline-block;
  min-width: 4.2mm;
  border: 1.2pt solid #111827;
  border-radius: 1mm;
  line-height: 1.05;
  color: #111827;
  font-weight: 800;
}
.psheet-table .psheet-side {
  padding: 0;
  border-right: 1pt solid #9ca3af;
  border-bottom: 1pt solid #111827;
  text-align: center;
  vertical-align: middle;
}
.psheet-side span {
  display: inline-block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 8pt;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.psheet-quad tr:last-child td {
  border-bottom: 1pt solid #111827;
}
.psheet-footer {
  margin-top: 2mm;
  font-size: 7pt;
  color: #6b7280;
  text-align: center;
}
