
:root {
  --c-bg: #f5f6f8;
  --c-surface: #ffffff;
  --c-border: #e1e4e8;
  --c-text: #1b1f24;
  --c-muted: #57606a;
  --c-accent: #0b4c8c;
  --c-accent-hover: #083c6e;
  --c-focus: #5aa0e6;

  --drive-rood: #e4002b;
  --drive-blauw: #0b85c7;
  --drive-oranje: #f39200;
  --drive-geel: #ffd200;
  --drive-groen: #8bc53f;

  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.app-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--c-accent);
  color: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rol-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 2px;
}
.rol-toggle button {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
}
.rol-toggle button:hover { color: white; }
.rol-toggle button.active {
  background: white;
  color: var(--c-accent);
}

.rol-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.35rem;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.rol-badge-pol      { background: #e6eef7; color: #0b4c8c; border: 1px solid #c8d9ec; }
.rol-badge-opleider { background: #f3ebe0; color: #8a5a00; border: 1px solid #e4d2b2; }
.rol-badge-beide    { background: #eef5ec; color: #2a6b1a; border: 1px solid #c9e0c0; }

.form-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.55rem;
  border-radius: 3px;
  margin-right: 0.35rem;
  letter-spacing: 0.04em;
  vertical-align: middle;
  color: white;
}
.form-tag-plm {
  background: #c8102e;
  border: 1px solid #9a0a21;
  text-transform: uppercase;
}

.toepassing-box {
  background: #fff9ec;
  border: 1px solid #f1d88a;
  border-left: 4px solid #f39200;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0 1.25rem;
}
.toepassing-box h3 { margin-top: 0; color: #8a5a00; }
.toepassing-box ul { padding-left: 1rem; margin: 0; }
.toepassing-box li { margin-bottom: 0.35rem; }
.toepassing-box .waar { font-weight: 600; color: #5b3b00; }
.toepassing-box .wanneer { color: var(--c-text); }

.categorie-section { margin-top: 2rem; }
.categorie-section h2 {
  border-bottom: 2px solid var(--c-accent);
  padding-bottom: 0.3rem;
  margin-bottom: 0.75rem;
}
.categorie-section .cat-desc {
  color: var(--c-muted);
  font-size: 0.95rem;
  margin-top: -0.3rem;
  margin-bottom: 0.75rem;
}

.brand { display: flex; align-items: baseline; gap: 0.5rem; }
.brand-mark { font-weight: 700; font-size: 1.25rem; letter-spacing: 0.05em; }
.brand-sub { font-weight: 300; opacity: 0.85; font-size: 0.95rem; }

.search-wrap {
  display: flex;
  justify-content: center;
}

#global-search {
  width: 100%;
  max-width: 480px;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: white;
  border-radius: var(--radius);
  outline: none;
}
#global-search::placeholder { color: rgba(255,255,255,0.7); }
#global-search:focus {
  background: rgba(255,255,255,0.95);
  color: var(--c-text);
  border-color: white;
}
#global-search:focus::placeholder { color: var(--c-muted); }

.main-nav {
  display: flex;
  gap: 0.25rem;
}

.main-nav a {
  color: white;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  opacity: 0.85;
  font-size: 0.95rem;
  transition: background 0.15s, opacity 0.15s;
}
.main-nav a:hover { opacity: 1; text-decoration: none; background: rgba(255,255,255,0.1); }
.main-nav a.active {
  opacity: 1;
  background: rgba(255,255,255,0.18);
  font-weight: 600;
}

.view {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

h1 { font-size: 1.75rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.3rem; margin: 1.5rem 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 1rem 0 0.5rem; }
p { margin: 0 0 0.75rem; }

.page-intro { color: var(--c-muted); margin-bottom: 1.5rem; max-width: 65ch; }

.home-block {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
}
.home-block h2 {
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.home-block-icon { font-size: 1.4rem; }
.home-block-desc {
  color: var(--c-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.home-block-vinden { border-top: 4px solid #0b85c7; }
.home-block-maken  { border-top: 4px solid #8bc53f; }

.tile-primary {
  background: #fbfdff;
  border-color: #cadef0;
  border-left-color: #0b85c7;
}
.tile-primary:hover { border-color: var(--c-accent); border-left-color: var(--c-accent); }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.tile {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-left: 4px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.1rem 2.4rem 1.1rem 1.2rem;
  box-shadow: 0 2px 6px rgba(20, 40, 30, 0.08);
  display: block;
  color: inherit;
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.15s, transform 0.1s, border-color 0.15s;
}
.tile::after {
  content: '›';
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-accent);
  opacity: 0.55;
  transition: opacity 0.15s, transform 0.15s;
}
.tile:hover {
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(20, 40, 30, 0.14);
  transform: translateY(-2px);
  border-color: var(--c-accent);
  border-left-color: var(--c-accent);
}
.tile:hover::after { opacity: 1; transform: translateY(-50%) translateX(3px); }
.tile:active { transform: translateY(0); }
.tile-title { font-weight: 600; font-size: 1.05rem; margin-bottom: 0.3rem; color: var(--c-accent); }
.tile-desc  { color: var(--c-muted); font-size: 0.92rem; margin: 0; }

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.75rem;
}

.card-clickable {
  cursor: pointer;
  position: relative;
  border-left: 4px solid var(--c-border);
  padding-right: 2.4rem;
  transition: box-shadow 0.15s, transform 0.1s, border-color 0.15s;
}
.card-clickable::after {
  content: '›';
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-accent);
  opacity: 0.55;
  transition: opacity 0.15s, transform 0.15s;
}
.card-clickable:hover {
  box-shadow: 0 6px 16px rgba(20, 40, 30, 0.14);
  transform: translateY(-2px);
  border-color: var(--c-accent);
  border-left-color: var(--c-accent);
  text-decoration: none;
}
.card-clickable:hover::after { opacity: 1; transform: translateY(-50%) translateX(3px); }

.drive-band {
  display: inline-block;
  width: 6px;
  min-height: 1.4rem;
  vertical-align: middle;
  margin-right: 0.5rem;
  border-radius: 3px;
}
.drive-rood  { background: var(--drive-rood); }
.drive-blauw { background: var(--drive-blauw); }
.drive-oranje{ background: var(--drive-oranje); }
.drive-geel  { background: var(--drive-geel); }
.drive-groen { background: var(--drive-groen); }

.drive-chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: white;
  margin-right: 0.35rem;
}
.chip-rood   { background: var(--drive-rood); }
.chip-blauw  { background: var(--drive-blauw); }
.chip-oranje { background: var(--drive-oranje); }
.chip-geel   { background: #b89100; color: white; }
.chip-groen  { background: var(--drive-groen); color: #1b3b00; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
}

.filter-btn {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 1rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  color: var(--c-muted);
}
.filter-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.filter-btn.active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: white;
}

.back-link {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--c-muted);
  font-size: 0.9rem;
}
.back-link:hover { color: var(--c-accent); }

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.detail-section { margin-bottom: 1.25rem; }
.detail-section h3 { margin-bottom: 0.4rem; color: var(--c-accent); }

ol.steps, ul.bullets {
  padding-left: 1.25rem;
  margin: 0;
}
ol.steps li, ul.bullets li { margin-bottom: 0.35rem; }

.sectie-intro {
  background: #f5f7fa;
  border-left: 3px solid var(--c-accent);
  padding: 0.5rem 0.85rem;
  margin: 0 0 0.8rem;
  color: #444;
  font-size: 0.92rem;
  line-height: 1.5;
}

.ondersteunende-vragen {
  background: #fbf4ff;
  border: 1px solid #d9c2ea;
  border-left: 4px solid #7b3fbf;
  border-radius: 4px;
  padding: 0.4rem 0.85rem;
  margin: 0.5rem 0 1rem;
}
.ondersteunende-vragen summary {
  cursor: pointer;
  font-weight: 600;
  color: #4a1f80;
  padding: 0.3rem 0;
  user-select: none;
}
.ondersteunende-vragen summary:hover { color: #2d0d56; }
.ondersteunende-vragen .hulp-toelichting {
  margin: 0.5rem 0 0.3rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.65);
  border-left: 2px solid #7b3fbf;
  border-radius: 3px;
  color: #3a1a66;
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.5;
}
.ondersteunende-vragen ul {
  margin: 0.5rem 0 0.3rem;
  padding-left: 1.25rem;
}
.ondersteunende-vragen li {
  margin-bottom: 0.3rem;
  color: #333;
  font-size: 0.9rem;
}
.ondersteunende-vragen li.hulp-vraag-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.15rem 0;
  border-radius: 3px;
}
.ondersteunende-vragen li.hulp-vraag-row:hover {
  background: rgba(123, 63, 191, 0.06);
}
.hulp-vraag-tekst { flex: 1; }

.hulp-plak-btn {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  background: #ede3f6;
  border: 1px solid #c9aee0;
  border-radius: 4px;
  color: #4a1f80;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.hulp-plak-btn:hover {
  background: #7b3fbf;
  color: white;
  border-color: #4a1f80;
}
.hulp-plak-btn-done {
  background: #2a6b1a !important;
  color: white !important;
  border-color: #1e4f12 !important;
}

.hulp-plak-alles {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  padding: 0.35rem 0.7rem;
}
.ondersteunende-vragen li.hulp-subkop {
  list-style: none;
  font-weight: 600;
  color: #4a1f80;
  margin-top: 0.6rem;
  margin-left: -1rem;
}
.ondersteunende-vragen li.hulp-spacer {
  list-style: none;
  height: 0.3rem;
}

.comp-legenda {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.9rem;
  color: var(--c-muted);
}
.comp-cluster {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: white;
}
.comp-cluster-denken    { background: #5b7cff; }
.comp-cluster-doen      { background: #e87a2a; }
.comp-cluster-verbinden { background: #2a9d5f; }

.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.comp-tegel {
  display: block;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: box-shadow 0.15s, transform 0.1s;
}
.comp-tegel:hover {
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.comp-tegel-kop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}
.comp-nr {
  display: inline-block;
  min-width: 1.7rem;
  height: 1.7rem;
  line-height: 1.7rem;
  text-align: center;
  background: var(--c-accent);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.82rem;
}
.comp-naam { font-weight: 600; font-size: 1.02rem; flex: 1; min-width: 0; }

.comp-beschrijving {
  color: var(--c-muted);
  font-size: 0.88rem;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.comp-kernwoorden {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.comp-kw {
  display: inline-block;
  background: #eef4fb;
  color: var(--c-accent);
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  font-size: 0.78rem;
  border: 1px solid #d2e2f1;
}

.comp-niveau {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 4px solid #ccd5e0;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
}
.comp-niveau-1 { border-left-color: #b8d9b3; }
.comp-niveau-2 { border-left-color: #7fb77a; }
.comp-niveau-3 { border-left-color: #e8a33a; }
.comp-niveau-4 { border-left-color: #c8102e; }

.comp-niveau-kop {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.comp-niveau-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: #eef4fb;
  color: var(--c-accent);
  border: 1px solid #d2e2f1;
}
.comp-niveau-1 .comp-niveau-badge { background: #eaf5e6; color: #2a6b1a; border-color: #c9e0c0; }
.comp-niveau-2 .comp-niveau-badge { background: #d9ecd4; color: #1e4f12; border-color: #a5d19c; }
.comp-niveau-3 .comp-niveau-badge { background: #fff0d6; color: #8a5a00; border-color: #eacf8b; }
.comp-niveau-4 .comp-niveau-badge { background: #fde0e5; color: #8a0a22; border-color: #eca8b5; }

.comp-relaties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.comp-relatie-chip {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  background: #eef4fb;
  border: 1px solid #cadef0;
  color: var(--c-accent);
  font-size: 0.82rem;
}
a.comp-relatie-chip:hover { background: var(--c-accent); color: white; text-decoration: none; }

.return-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #e6f4e1;
  border: 1px solid #b6dba3;
  border-left: 4px solid #5aa23a;
  border-radius: var(--radius);
  padding: 0.5rem 0.85rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.return-banner-btn {
  color: #2a6b1a;
  font-weight: 600;
  text-decoration: none;
  flex: 1;
}
.return-banner-btn:hover { text-decoration: underline; }
.return-banner-close {
  background: none;
  border: none;
  color: #2a6b1a;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.3rem;
}
.return-banner-close:hover { color: #164205; }

.tile-concept {
  background: #fff9ec;
  border-color: #f1d88a;
  border-left: 4px solid #f39200;
}
.concept-badge {
  display: inline-block;
  background: #f39200;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.3rem;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.concept-meta {
  margin-top: 0.4rem;
  color: #8a5a00;
  font-size: 0.82rem;
  font-style: italic;
}

.autosave-flash {
  background: #e6f4e1;
  color: #2a6b1a !important;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  font-weight: 600;
  transition: background 0.2s;
}

.autosave-hint {
  color: var(--c-muted);
  font-size: 0.86rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.6rem;
  background: #f7f9fc;
  border-radius: 4px;
}

.view-formulier { max-width: 1400px; font-family: Arial, Helvetica, sans-serif; }

.view-formulier .form-section {
  font-family: Arial, Helvetica, sans-serif;
}
.view-formulier .form-section > h3 {
  text-align: center;
  background: #e7ecf3;
  border: 1px solid #9aa9bb;
  padding: 0.45rem 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  color: #1b2838;
  margin: 0 0 0.4rem;
  border-radius: 3px;
}
.view-formulier .form-section > .sectie-intro,
.view-formulier .form-section > p.sectie-intro {
  font-style: italic;
  color: #2c3e50;
  margin: 0.2rem 0 0.6rem;
}

.form-section-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.25rem;
  margin-bottom: 1rem;
  align-items: start;
}
.form-section-wrap .form-section {
  margin-bottom: 0;
}

.context-paneel {
  position: sticky;
  top: 80px;
  align-self: start;
}
.context-paneel-inner {
  background: #fbfdff;
  border: 1px solid #cadef0;
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
  font-size: 0.88rem;
}
.context-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--c-accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.context-collapse {
  background: none;
  border: none;
  color: var(--c-accent);
  font-size: 1.1rem;
  padding: 0 0.3rem;
  line-height: 1;
  cursor: pointer;
}
.context-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.context-list li {
  margin: 0;
  padding: 0;
}
.context-list a {
  display: block;
  padding: 0.45rem 0.5rem;
  border-radius: 4px;
  color: var(--c-text);
  text-decoration: none;
  border-top: 1px solid #e4eef7;
}
.context-list li:first-child a { border-top: none; }
.context-list a:hover {
  background: #eef4fb;
  text-decoration: none;
}
.ctx-label  { display: block; font-weight: 600; color: var(--c-accent); }
.ctx-sub    { display: block; font-size: 0.82rem; color: var(--c-muted); margin-top: 0.1rem; }

@media (max-width: 1000px) {
  .form-section-wrap {
    grid-template-columns: 1fr;
  }
  .context-paneel {
    position: static;
    order: 2;
  }
  .context-paneel-inner {
    margin-top: -0.5rem;
  }
}

.form-section {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}
.form-section h3 { margin-top: 0; color: var(--c-accent); }

.field { display: block; margin-bottom: 0.85rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; }
.field .hint  { display: block; font-size: 0.82rem; color: var(--c-muted); margin-bottom: 0.3rem; }

.field input[type="text"],
.field input[type="date"],
.field textarea,
.field select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #b9c2cc;
  border-radius: 4px;
  background: #f1f4f8;
  color: var(--c-text);
  transition: background 0.15s, border-color 0.15s;
}
.field input[type="text"]:hover,
.field input[type="date"]:hover,
.field textarea:hover,
.field select:hover {
  border-color: #8fa0b3;
}
.field input[type="text"]:focus,
.field input[type="date"]:focus,
.field textarea:focus,
.field select:focus {
  background: #fffdf4;
  border-color: var(--c-accent);
}
.field textarea {
  min-height: 12rem;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

.rich-toolbar {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.3rem 0.4rem;
  background: #e9edf3;
  border: 1px solid #b9c2cc;
  border-bottom: none;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
.rich-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0.15rem 0.55rem;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--c-text);
  cursor: pointer;
  min-width: 1.8rem;
}
.rich-btn:hover { background: white; border-color: #b9c2cc; }
.rich-btn:active { background: #d5dce4; }
.rich-sep {
  display: inline-block;
  width: 1px;
  height: 1.1rem;
  background: #b9c2cc;
  margin: 0 0.3rem;
}

.rich-editor {
  min-height: 12rem;
  max-height: 40rem;
  overflow-y: auto;
  padding: 0.5rem 0.65rem;
  border: 1px solid #b9c2cc;
  border-top-color: transparent;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  background: #f1f4f8;
  color: var(--c-text);
  font-family: inherit;
  font-size: inherit;
  line-height: 1.5;
  transition: background 0.15s, border-color 0.15s;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.rich-editor:hover { border-color: #8fa0b3; }
.rich-editor:focus {
  background: #fffdf4;
  outline: 2px solid var(--c-focus);
  outline-offset: -1px;
  border-color: var(--c-focus);
}
.rich-editor ul, .rich-editor ol { padding-left: 1.4rem; margin: 0.3rem 0; }
.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #8fa0b3;
  font-style: italic;
}

.print-only { display: none; }
.print-mirror { display: none; }

.rich-editor-standalone {
  border: 1px solid #b9c2cc;
  border-radius: 4px;
}

.rich-toolbar-compact {
  padding: 0.15rem 0.2rem;
  gap: 0.05rem;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}
.rich-toolbar-compact .rich-btn {
  padding: 0.05rem 0.35rem;
  font-size: 0.8rem;
  min-width: 1.4rem;
}
.rich-editor-cell {
  min-height: 2.2rem;
  max-height: none;
  padding: 0.3rem 0.4rem;
  border-radius: 0;
  border: none;
  background: #f7f9fc;
  font-size: 0.92rem;
}
.rich-cell {
  padding: 0 !important;
  vertical-align: top;
}
.rich-cell .rich-toolbar-compact { background: #eef1f6; }

@media print {
  .rich-toolbar { display: none !important; }
  .rich-editor {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .rich-cell { padding: 0.25rem 0.4rem !important; }
}

.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--c-focus);
  outline-offset: -1px;
  border-color: var(--c-focus);
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--c-accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
}
.btn:hover { background: var(--c-accent-hover); }
.btn-secondary {
  background: white;
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
}
.btn-secondary:hover { background: #eef4fb; }
.btn-danger { background: #b42318; }
.btn-danger:hover { background: #9a1e14; }

.btn-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; }

.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}
.check-row input[type="checkbox"] { margin-top: 0.25rem; }

.lesplan-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  margin-bottom: 1rem;

}
.lesplan-table th,
.lesplan-table td {
  border: 1px solid var(--c-border);
  padding: 0.35rem 0.5rem;
  vertical-align: top;
  font-size: 0.9rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.lesplan-table th {
  background: #eef2f7;
  font-weight: 600;
  text-align: left;
}
.lesplan-table .kol-sublabel {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--c-muted);
  margin-top: 1px;
  line-height: 1.1;
}
.lesplan-table textarea,
.lesplan-table input[type="text"] {
  width: 100%;
  border: 1px solid transparent;
  background: #f1f4f8;
  padding: 0.25rem 0.4rem;
  resize: vertical;
  font-family: inherit;
  font-size: inherit;
  min-height: 1.8rem;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-wrap: break-word;
  border-radius: 3px;
  transition: background 0.15s, border-color 0.15s;
}
.lesplan-table textarea:hover,
.lesplan-table input[type="text"]:hover { border-color: #b9c2cc; }
.lesplan-table textarea:focus,
.lesplan-table input[type="text"]:focus {
  background: #fffdf4;
  outline: 2px solid var(--c-focus);
  outline-offset: -1px;
}
.lesplan-table textarea {
  field-sizing: content;
  min-height: 3.6rem;
}

.side-panel {
  position: fixed;
  top: 56px;
  left: 0;
  width: 360px;
  max-width: 95vw;
  height: calc(100vh - 56px);
  background: #fbfdff;
  border-right: 1px solid var(--c-border);
  box-shadow: 2px 0 12px rgba(0,0,0,0.12);
  z-index: 900;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.side-panel[hidden] { display: none !important; }
.side-panel-kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: var(--c-accent);
  color: white;
  font-size: 0.9rem;
}
.side-panel-close {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 1rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.side-panel-close:hover { background: rgba(255,255,255,0.3); }
.side-panel-knoppen { display: flex; align-items: center; gap: 0.4rem; }
.side-panel-min {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 1rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.side-panel-min:hover { background: rgba(255,255,255,0.3); }
.pin-chip {
  position: fixed;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: min(92vw, 420px);
  background: var(--c-accent);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  cursor: pointer;
  animation: pin-chip-in 0.2s ease;
}
.pin-chip-titel {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pin-chip-x {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
}
.pin-chip-x:hover { background: rgba(255,255,255,0.35); }
@keyframes pin-chip-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.side-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
}
.side-panel-body h2 { font-size: 1.15rem; }
.side-panel-body h3 { font-size: 1rem; color: var(--c-accent); margin-top: 1rem; }
.side-panel-body ol, .side-panel-body ul { padding-left: 1.25rem; margin: 0.35rem 0; }
.side-panel-body li { margin-bottom: 0.3rem; }
.side-panel-body .card {
  padding: 0.5rem 0.7rem;
  margin-bottom: 0.4rem;
  border: 1px solid var(--c-border);
  background: white;
  border-radius: 4px;
  box-shadow: none;
}

.tijd-check {
  margin: 0.75rem 0 1rem;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  position: sticky;
  top: 64px;
  z-index: 50;
}
.tijd-check-ok {
  background: #e8f5e9;
  border-color: #81c784;
  color: #1b5e20;
}
.tijd-check-over {
  background: #fff3cd;
  border-color: #e0a800;
  color: #856404;
}

@media (min-width: 721px) {
  body.side-panel-open .view { margin-left: 380px; }
}
@media (max-width: 1000px) and (min-width: 721px) {
  .side-panel { width: 340px; }
  body.side-panel-open .view { margin-left: 355px; }
}

.ctx-row {
  position: relative;
  padding: 0 !important;
}
.ctx-row .ctx-link {
  padding-right: 2.2rem;
}
.ctx-pin {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0.2rem 0.35rem;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s, background 0.15s;
}
.ctx-pin:hover {
  opacity: 1;
  background: var(--c-accent);
  border-color: var(--c-accent);
}

.wv-cell { position: relative; }
.wv-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}
.wv-input {
  flex: 1;
  padding-right: 1.6rem !important;
  background-color: #f5eedc !important;
  field-sizing: content;
  min-width: 7rem;
  max-width: 32rem;
}
.wv-input:focus { background-color: #fffdf4 !important; }
.wv-toggle {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--c-muted);
  font-size: 0.85rem;
  padding: 0.1rem 0.35rem;
  cursor: pointer;
  line-height: 1;
}
.wv-toggle:hover { color: var(--c-accent); }

.wv-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-height: 340px;
  overflow-y: auto;
  min-width: 240px;
  padding: 0.3rem 0;
  font-size: 0.88rem;
}
.wv-cat + .wv-cat {
  border-top: 1px solid #eceff2;
  margin-top: 0.3rem;
  padding-top: 0.3rem;
}
.wv-cat-kop {
  padding: 0.2rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-accent);
  background: #f5f7fa;
}
.wv-cat-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wv-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0.35rem 0.75rem;
  font: inherit;
  color: var(--c-text);
  cursor: pointer;
}
.wv-item:hover { background: #eef4fb; color: var(--c-accent); }
.lesplan-table textarea:focus,
.lesplan-table input[type="text"]:focus {
  outline: 2px solid var(--c-focus);
  background: white;
}
.lesplan-table .fase-row td {
  background: #f5f6f8;
  font-weight: 600;
  color: var(--c-accent);
}
.row-actions button {
  background: none;
  border: none;
  color: var(--c-muted);
  padding: 0.2rem;
}
.row-actions button:hover { color: var(--c-accent); }

.app-footer {
  text-align: center;
  padding: 1rem;
  color: var(--c-muted);
  font-size: 0.85rem;
}
.app-footer a { color: var(--c-muted); }

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--c-muted);
}

.kbd {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 0.82em;
  padding: 0.1em 0.45em;
  background: #eef2f7;
  border: 1px solid var(--c-border);
  border-radius: 3px;
}

@media print {
  @page { size: A4; margin: 2cm; }

  .no-print { display: none !important; }
  body { background: white; font-family: Arial, sans-serif; }
  h1, h2, h3, h4, p, td, th, li, input, textarea, select, label { font-family: Arial, sans-serif !important; }

  .view { max-width: none; padding: 0; }
  .card, .form-section { box-shadow: none; border: none; padding: 0; margin-bottom: 1rem; }
  .form-section-wrap { display: block; }

  .form-section-wrap { page-break-before: always; }
  .form-section-wrap:first-of-type { page-break-before: auto; }
  h3 { page-break-after: avoid; }

  .lesplan-table { table-layout: fixed; width: 100%; page-break-inside: auto; }
  .lesplan-table tr { page-break-inside: avoid; page-break-after: auto; }
  .lesplan-table th, .lesplan-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    vertical-align: top;
  }
  .lesplan-table textarea, .lesplan-table input[type="text"] {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    height: auto !important;
    overflow: visible !important;
  }

  .lesplan-table .wv-input,
  .lesplan-table td > input[type="text"] { display: none !important; }
  .lesplan-table .wv-wrap { display: none !important; }
  .print-only, .print-mirror {
    display: block !important;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    min-height: 1.2em;
    font-family: Arial, sans-serif;
    font-size: 10pt;
  }

  .rich-editor-cell {
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .field input, .field textarea, .field select {
    border: none;
    padding: 0;
    background: transparent;
  }
}

.hidden { display: none !important; }
.tb-btn {
  border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text);
  border-radius: 8px; padding: 0.4rem 0.7rem; font: inherit; font-size: 0.85rem; cursor: pointer; white-space: nowrap;
}
.tb-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.tb-chip {
  border: 2px solid rgba(255,255,255,0.7); background: rgba(255,255,255,0.18); border-radius: 50%;
  width: 34px; height: 34px; padding: 0; cursor: pointer; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
}
.tb-chip:hover { background: rgba(255,255,255,0.28); border-color: #fff; }
.tb-chip .chip-avatar { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.tb-chip .chip-fallback { font-size: 0.75rem; font-weight: 700; color: #fff; }
.auth-gate {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--c-bg); z-index: 1000; padding: 20px;
}
.auth-gate-card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px;
  padding: 2.2rem 2.6rem; text-align: center; max-width: 420px; box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.auth-gate-badge { font-size: 2.6rem; margin-bottom: 0.4rem; }
.auth-gate-card .btn { display: inline-block; margin-top: 1rem; text-decoration: none; }
.ecod-toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 1200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ecod-toast {
  background: #2d4a3e; color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 0.9rem; box-shadow: 0 4px 14px rgba(0,0,0,0.25); animation: ecod-toast-in 0.2s ease;
  max-width: min(90vw, 520px);
}
.ecod-toast.err { background: #8c2f2f; }
@keyframes ecod-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ecod-modal-overlay {
  position: fixed; inset: 0; background: rgba(20, 24, 28, 0.45); z-index: 1100;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.ecod-modal-overlay.open { display: flex; }
.ecod-modal {
  background: var(--c-surface); border-radius: 12px; padding: 1.4rem 1.6rem; max-width: 460px; width: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.ecod-modal-head { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; }
.ecod-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 1.1rem; }
.ecod-modal-actions button {
  font: inherit; padding: 0.45rem 1rem; border-radius: 8px; cursor: pointer; border: 1px solid var(--c-border);
}
.ecod-modal-actions .btn-secondary { background: var(--c-surface); color: var(--c-text); }
.ecod-modal-actions .btn-primary { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.doc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 0.6rem 0.2rem; border-bottom: 1px solid var(--c-border); flex-wrap: wrap;
}
.doc-row:last-child { border-bottom: none; }
.doc-row-info { display: flex; flex-direction: column; min-width: 0; }
.doc-row-info strong { word-break: break-word; }
.doc-row-meta { font-size: 0.82rem; color: var(--c-muted); }
.doc-row-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

@media (max-width: 720px) {
  .app-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.55rem 0.8rem;
    gap: 0.55rem;
  }
  .header-right { display: contents; }
  .brand { order: 1; margin-right: auto; }
  .tb-btn { order: 2; min-height: 40px; }
  .tb-chip { order: 3; width: 40px; height: 40px; }
  .search-wrap { order: 4; width: 100%; }
  .search-wrap input { width: 100%; min-height: 44px; }
  .rol-toggle { order: 5; width: 100%; justify-content: stretch; }
  .rol-toggle button { flex: 1; padding: 0.55rem 0.5rem; min-height: 42px; }
  .main-nav {
    order: 6;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a {
    white-space: nowrap;
    padding: 0.5rem 0.8rem;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    opacity: 1;
  }
  .main-nav a.active { background: white; color: var(--c-accent); border-color: white; }
  .view { padding: 0.9rem 0.8rem; }
  .tile-grid { grid-template-columns: 1fr; }
  .btn-row { flex-wrap: wrap; }
  .btn-row .btn { flex: 1 1 auto; min-height: 44px; }
  .side-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 45vh;
    border-right: none;
    border-top: 1px solid var(--c-border);
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.22);
    animation: ecod-sheet-in 0.2s ease;
    transition: transform 0.18s ease, height 0.18s ease;
  }
  .side-panel.side-panel-tall { height: 88vh; }
  .side-panel-kop { border-radius: 14px 14px 0 0; touch-action: none; cursor: grab; }
  .side-panel-kop::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.5);
  }
  .side-panel-close { min-width: 40px; min-height: 40px; }
  body.side-panel-open .view { padding-bottom: 47vh; }
  body.side-panel-open:has(.side-panel-tall) .view { padding-bottom: 90vh; }
  .ecod-account-menu { left: 0.8rem; right: 0.8rem; max-width: none; }
  .tijd-check { position: static; }
  input, textarea, select { font-size: 16px; }
}
.ecod-account-menu {
  position: fixed; top: 3.6rem; right: 1rem; z-index: 1150;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18); color: var(--c-text);
  padding: 0; overflow: hidden; min-width: 270px; max-width: 320px;
  animation: ecod-menu-in 0.15s ease;
}
.ecod-account-menu .ecod-account-note { font-size: 0.82rem; color: var(--c-muted); }
@keyframes ecod-menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ecod-account-top {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.1rem; background: var(--c-accent); color: #fff;
}
.ecod-account-avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.7); flex-shrink: 0;
}
.ecod-account-avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.18); font-weight: 700; font-size: 0.95rem; color: #fff;
}
.ecod-account-who { min-width: 0; }
.ecod-account-menu .ecod-account-name { font-weight: 700; color: #fff; }
.ecod-account-menu .ecod-account-mail { font-size: 0.8rem; color: rgba(255,255,255,0.85); margin-bottom: 0; word-break: break-all; }
.ecod-account-divider { height: 1px; background: var(--c-border); }
.ecod-account-menu .ecod-account-note { padding: 0.8rem 1.1rem 0; margin-bottom: 0.8rem; }
.ecod-account-btn {
  display: block; width: calc(100% - 2.2rem); margin: 0 1.1rem 1rem;
  padding: 0.6rem 1rem; border-radius: 8px; border: none; cursor: pointer;
  background: var(--c-accent); color: #fff; font: inherit; font-weight: 600;
  min-height: 44px; transition: filter 0.15s;
}
.ecod-account-btn:hover { filter: brightness(1.12); }
.doc-shared-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; vertical-align: middle;
  background: #e6f2e6; color: #2a6b1a; border: 1px solid #bcd9b4;
  border-radius: 999px; padding: 0.05rem 0.55rem; margin-left: 0.4rem;
}
.shared-veld { margin-bottom: 0.9rem; }
.shared-veld-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; }
.shared-veld-waarde {
  background: #fafbfc; border: 1px solid var(--c-border); border-radius: 6px;
  padding: 0.55rem 0.8rem; min-height: 1.4rem; word-break: break-word;
}
.shared-veld-leeg { color: var(--c-muted); }
.rich-toolbar-float {
  position: absolute; z-index: 600; display: none;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.16); padding: 3px; gap: 2px;
}
.rich-toolbar-float.visible { display: inline-flex; align-items: center; }
.rich-toolbar-float .rich-btn {
  min-width: 34px; min-height: 34px; padding: 0.25rem 0.55rem;
  border: 1px solid transparent; border-radius: 6px; background: transparent; font-size: 0.9rem;
}
.rich-toolbar-float .rich-btn:hover { background: #eef3f9; border-color: var(--c-border); }
.rich-toolbar-float .rich-btn.on { background: var(--c-accent); color: #fff; }
.rich-toolbar-float .rich-btn.on strong, .rich-toolbar-float .rich-btn.on em, .rich-toolbar-float .rich-btn.on u { color: #fff; }
.rich-toolbar-float .rich-sep { width: 1px; height: 20px; background: var(--c-border); margin: 0 3px; }
@media (max-width: 720px) {
  .rich-toolbar-float .rich-btn { min-width: 42px; min-height: 42px; }
}
@keyframes ecod-sheet-in { from { transform: translateY(30%); opacity: 0.6; } to { transform: none; opacity: 1; } }
@media (max-width: 720px) {
  .lesplan-table { border: none; }
  .lesplan-table, .lesplan-table tbody, .lesplan-table tr, .lesplan-table td { display: block; width: 100%; }
  .lesplan-table thead { display: none; }
  .lesplan-table tr {
    border: 1px solid var(--c-border); border-left: 4px solid var(--c-accent); border-radius: 8px;
    margin-bottom: 0.85rem; padding: 0.6rem 0.7rem 0.3rem; background: var(--c-surface);
    box-shadow: var(--shadow-sm); position: relative;
  }
  .lesplan-table td { border: none; padding: 0 0 0.6rem; }
  .lesplan-table td[data-label]::before {
    content: attr(data-label);
    display: block; font-weight: 600; font-size: 0.8rem; color: var(--c-accent);
    margin-bottom: 0.2rem; text-transform: uppercase; letter-spacing: 0.03em;
  }
  .lesplan-table td.row-actions { padding: 0; position: absolute; top: 0.3rem; right: 0.3rem; width: auto; }
  .lesplan-table td.row-actions button { min-width: 36px; min-height: 36px; }
  .lesplan-table input[type="text"], .lesplan-table .rich-editor-cell { width: 100%; }
}
@media (max-width: 720px) {
  .ecod-account-menu { left: 0.8rem; right: 0.8rem; min-width: 0; max-width: none; }
  .shared-tabel-wrap { overflow-x: auto; }
}
