:root {
  --navy: #0f2744;
  --navy-2: #17375f;
  --gold: #c5a572;
  --gold-2: #e0c48a;
  --cream: #f6f1e8;
  --ink: #1c2430;
  --muted: #5c6570;
  --line: #d9d0c3;
  --ok: #1f7a4d;
  --warn: #b45309;
  --bad: #9f1239;
  --white: #fffdf8;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #eef2f6 0%, var(--cream) 220px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.has-logo::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--logo-url);
  background-repeat: no-repeat;
  background-position: center 40%;
  background-size: min(155vmin, 1500px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}
body.has-logo .card { background: rgba(255, 253, 248, 0.96); }
.logo-preview { max-height: 96px; max-width: 240px; object-fit: contain; background: #fff; padding: 0.4rem; border: 1px solid var(--line); border-radius: 8px; }
.inline-check { display: flex; align-items: center; gap: 0.45rem; color: var(--ink); }
.inline-check input { width: auto; }
h1, h2, h3, .brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}
a { color: var(--navy-2); }
.topbar {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.1rem;
  position: sticky;
  top: 0;
  z-index: 20;
  overflow: visible;
}
.card[id],
.activity-status[id],
h2[id],
h3[id],
#bestanden,
.sheet-piece[id],
.sheet-part[id],
.file-instrument[id],
tr[id] {
  scroll-margin-top: 5.25rem;
}
@keyframes row-focus-fade {
  0%, 55% { background: #fff4d6; }
  100% { background: transparent; }
}
tr.row-focus td,
tr:target td {
  animation: row-focus-fade 2.6s ease-out forwards;
  box-shadow: inset 3px 0 0 var(--gold);
}
.brand {
  color: var(--gold-2);
  font-size: 1.25rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex-shrink: 0;
}
.brand-logo {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  display: block;
  background: #fffdf8;
  border-radius: 8px;
  padding: 2px;
}
.brand-name { white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 0.85rem; align-items: center; }
.nav a { color: #e8eef5; text-decoration: none; font-size: 0.92rem; }
.nav a:hover, .nav a.active { color: var(--gold-2); }
.nav a.nav-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  line-height: 1.05;
  font-size: 0.78rem;
}
.nav a.nav-stack > span { display: block; }
.nav-drop {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  margin-top: -0.7rem;
  margin-bottom: -0.7rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.nav-drop-head {
  display: flex;
  align-items: center;
  gap: 0.05rem;
}
.nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.2rem 0.35rem;
  min-width: 1.7rem;
  min-height: 1.7rem;
  border: 0;
  background: transparent;
  color: #e8eef5;
  cursor: pointer;
  line-height: 1;
  border-radius: 6px;
}
.nav-drop-toggle:hover,
.nav-drop.is-open .nav-drop-toggle {
  color: var(--gold-2);
}
.nav-drop-caret {
  display: inline-block;
  font-size: 0.68rem;
  line-height: 1;
  opacity: 0.85;
  transform-origin: 50% 45%;
  transition: transform 0.15s ease;
}
.nav-drop.is-open .nav-drop-caret {
  transform: rotate(180deg);
}
.nav-drop-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  min-width: 13.5rem;
  margin: 0;
  padding: 0.4rem 0.55rem 0.5rem;
  background: var(--navy);
  border: 1px solid #38557a;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 24px rgba(8, 18, 32, 0.28);
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  max-height: min(24rem, calc(100vh - 4.5rem));
  overflow-y: auto;
  transition: opacity 0.12s ease, visibility 0s linear 0.2s;
}
.nav-drop-menu a { white-space: nowrap; }
.nav-drop.is-open .nav-drop-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}
.userbox { font-size: 0.85rem; color: #c9d4e3; white-space: nowrap; }
.wrap { width: min(1180px, calc(100% - 1.5rem)); margin: 1.2rem auto 2rem; flex: 1; position: relative; z-index: 1; }
body.nav-left {
  display: grid;
  grid-template-columns: 15.75rem minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100dvh;
}
body.nav-left .topbar {
  grid-column: 1;
  grid-row: 1 / span 2;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 15.75rem;
  min-width: 15.75rem;
  height: 100vh;
  height: 100dvh;
  position: sticky;
  top: 0;
  left: 0;
  gap: 0.55rem;
  padding: 0.85rem 0.8rem 1rem;
  overflow-x: hidden;
  overflow-y: auto;
}
body.nav-left .brand {
  padding: 0.15rem 0.2rem 0.45rem;
  border-bottom: 1px solid #38557a;
}
body.nav-left .nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0.12rem;
}
body.nav-left .nav a {
  padding: 0.38rem 0.5rem;
  border-radius: 8px;
}
body.nav-left .nav a:hover,
body.nav-left .nav a.active {
  background: rgba(255, 255, 255, 0.08);
}
body.nav-left .nav a.nav-stack {
  display: block;
  font-size: 0.92rem;
  line-height: 1.3;
}
body.nav-left .nav a.nav-stack > span {
  display: inline;
}
body.nav-left .nav-drop {
  flex-direction: column;
  align-items: stretch;
  align-self: auto;
  margin: 0;
  padding: 0;
  gap: 0.08rem;
}
body.nav-left .nav-drop-head {
  align-items: center;
  justify-content: space-between;
}
body.nav-left .nav-drop-menu {
  display: none;
  position: static;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  min-width: 0;
  margin: 0;
  padding: 0.05rem 0 0.25rem 0.7rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-height: none;
  overflow: visible;
  transition: none;
}
body.nav-left .nav-drop.is-open .nav-drop-menu {
  display: flex;
}
body.nav-left .nav-drop-menu a {
  white-space: normal;
  font-size: 0.86rem;
  padding: 0.28rem 0.45rem;
}
body.nav-left .userbox {
  margin-top: auto;
  white-space: normal;
  padding: 0.7rem 0.35rem 0.15rem;
  border-top: 1px solid #38557a;
}
body.nav-left .wrap {
  grid-column: 2;
  grid-row: 1;
  width: min(1180px, calc(100% - 1.5rem));
}
body.nav-left .footer {
  grid-column: 2;
  grid-row: 2;
}
body.nav-left .card[id],
body.nav-left .activity-status[id],
body.nav-left h2[id],
body.nav-left h3[id],
body.nav-left #bestanden,
body.nav-left .sheet-piece[id],
body.nav-left .sheet-part[id],
body.nav-left .file-instrument[id],
body.nav-left tr[id] {
  scroll-margin-top: 1rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.06);
  margin-bottom: 1rem;
}
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { padding: 0.8rem; border-left: 4px solid var(--gold); background: #fbf7f0; border-radius: 8px; }
a.stat { text-decoration: none; color: inherit; display: block; }
a.stat:hover { border-left-color: var(--navy); }
.stat b { display: block; font-size: 1.5rem; }
.on-demand summary { cursor: pointer; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; font-weight: 600; }
.on-demand[open] summary { margin-bottom: 0.6rem; }
.choice-panel {
  margin-top: 0.75rem;
}
.card > .choice-panel:first-child {
  margin-top: 0;
}
.choice-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.choice-panel > summary::-webkit-details-marker { display: none; }
.choice-panel > summary::after {
  content: "Openen";
  margin-left: auto;
  color: var(--gold-2);
  font-size: 0.8rem;
  font-weight: 600;
}
.choice-panel[open] > summary::after { content: "Sluiten"; }
.choice-panel > summary span {
  color: #dbe4ef;
  font-size: 0.82rem;
  font-weight: 400;
}
.choice-panel > summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold-2) 70%, white);
  outline-offset: 2px;
}
.choice-panel-content {
  padding: 0.75rem 0.25rem 0.15rem;
}
.extra-field-add {
  align-items: flex-end;
  max-width: 36rem;
}
.extra-field-add-btn { margin: 0; }
.extra-field-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
}
.extra-field-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}
.extra-field-list li span { font-weight: 600; }
.extra-field-list form { margin: 0; }
label { display: block; font-size: 0.85rem; color: var(--muted); margin: 0.6rem 0 0.25rem; }
input, select, textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}
.row { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.7rem; direction: ltr; }
.row > * { flex: 1; min-width: 160px; }
.name-fields,
.card-id {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(5.4rem, 0.7fr) minmax(0, 1.15fr) minmax(7.5rem, 0.9fr);
  gap: 0.35rem 0.6rem;
  direction: ltr;
  margin-bottom: 0.15rem;
}
.name-fields {
  grid-template-columns: minmax(0, 1.1fr) minmax(5.4rem, 0.7fr) minmax(0, 1.4fr);
}
.name-fields > div,
.card-id > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  direction: ltr;
}
.name-fields label,
.card-id label {
  margin: 0 0 0.12rem;
}
.name-fields input,
.card-id input,
.card-id select {
  padding: 0.4rem 0.55rem;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}
.card-id-status { min-width: 0; }
.card-id-email { grid-column: span 2; }
.card-id-phone { grid-column: span 2; }
.card-id-hint { margin-top: 0.4rem; }
.phone-fields {
  display: grid;
  grid-template-columns: minmax(9.5rem, 12.5rem) minmax(0, 1fr);
  gap: 0.35rem 0.6rem;
  direction: ltr;
}
.phone-fields > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.phone-fields label { margin: 0 0 0.12rem; }
.phone-fields input,
.phone-fields select {
  padding: 0.4rem 0.55rem;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}
.phone-fields select { min-width: 0; width: 100%; }
.activate-phone-head {
  margin: 1.1rem 0 0.35rem;
  font-size: 1.05rem;
}
.profile-id { margin-top: 0; }
.profile-mfa { margin-top: 0.35rem; }
.profile-pw-head { margin: 0 0 0.35rem; }
.name-fields.profile-pw {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.name-fields.profile-pw input { padding-right: 2.7rem; }
@media (max-width: 800px) {
  .name-fields,
  .card-id {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .name-fields.profile-pw { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-id-email { grid-column: span 1; }
  .card-id-phone { grid-column: span 2; }
}
@media (max-width: 560px) {
  .name-fields,
  .card-id,
  .name-fields.profile-pw { grid-template-columns: 1fr; }
  .card-id-status,
  .card-id-email,
  .card-id-phone { max-width: none; grid-column: auto; }
}
.time-span { white-space: nowrap; }
.time-24 select { width: auto; min-width: 4.6rem; flex: 0 0 auto; }
.time-sep { font-weight: 700; color: var(--ink); }
.date-nl { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.date-nl select { width: auto; min-width: 4.4rem; flex: 0 0 auto; }
.date-nl .date-nl-year { min-width: 5.4rem; }
.date-sep { font-weight: 700; color: var(--ink); }
.date-search {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  max-width: 100%;
}
.date-search-input {
  width: 11.5rem;
  max-width: calc(100% - 3rem);
  flex: 1 1 auto;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.date-search-cal {
  position: relative;
  flex: 0 0 2.55rem;
  width: 2.55rem;
  min-width: 2.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.date-search-cal svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.7;
  pointer-events: none;
}
.date-search-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  background: transparent;
  color: transparent;
}
.date-search-native::-webkit-calendar-picker-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
/* Global action colors — solid fills, white text, high contrast on cream */
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff !important;
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
}
.btn:hover { filter: brightness(1.08); }
.btn.ok { background: var(--btn-ok, var(--ok)); }
.btn.gold { background: var(--btn-gold, #8a6a32); }
.btn.teal { background: var(--btn-teal, #0e7490); }
.btn.warn { background: var(--btn-warn, var(--warn)); }
.btn.slate { background: var(--btn-slate, #334155); }
.btn.danger { background: var(--btn-danger, var(--bad)); }
.btn.ghost {
  background: var(--btn-ghost, #e8eef5);
  color: var(--navy) !important;
  border: 1px solid #9eb0c4;
}
.btn.ghost:hover { filter: brightness(0.96); }
.btn.small { padding: 0.3rem 0.6rem; font-size: 0.85rem; }
.btn-drop {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.btn-drop > .btn,
.btn-drop-menu .btn {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.btn-color-grid { align-items: end; }
.btn-color-field label { display: block; margin-bottom: 0.25rem; }
.btn-color-inputs {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.btn-color-inputs input[type="color"] {
  width: 2.4rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.btn-color-inputs input[type="text"] {
  width: 6.5rem;
  font-family: ui-monospace, Consolas, monospace;
  text-transform: lowercase;
}
.btn-color-preview { margin: 0.75rem 0 0.25rem; }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.actions form { margin: 0; }
.extra-codes-form {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin: 0;
}
.extra-codes-form input {
  min-width: 7.5rem;
  width: 12rem;
  max-width: 100%;
  padding: 0.3rem 0.45rem;
  font-size: 0.85rem;
}
.announcement-mail { display: inline; margin: 0; }
.wa-share {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  vertical-align: middle;
}
.wa-members {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 39, 68, 0.1);
}
.wa-members h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.wa-member-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.wa-member-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(15, 39, 68, 0.06);
}
.wa-member-list li:last-child { border-bottom: 0; }
.wa-member-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}
.wa-missing {
  margin-top: 0.75rem;
}
.wa-missing summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
}
.wa-member-list-missing li {
  justify-content: flex-start;
}
.file-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin: 0.15rem 0 0.4rem;
  position: relative;
}
.file-field-btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: auto;
  margin: 0;
  cursor: pointer;
}
.file-field-btn-text {
  pointer-events: none;
}
.file-field-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 100px;
}
.file-field-status {
  flex: 1 1 160px;
}
.file-field-status.err { color: var(--bad); }
.file-field-preview {
  margin: 0.35rem 0 0.55rem;
}
.file-field-preview .sheet-piece { padding-bottom: 0.1rem; }
.file-field-preview .sheet-actions .muted { font-size: 0.8rem; }
.flash { padding: 0.75rem 1rem; border-radius: 10px; margin-bottom: 1rem; scroll-margin: 0; white-space: pre-line; }
.flash.ok { background: #e8f6ee; color: #14532d; }
.flash.err { background: #fde8ee; color: #9f1239; }
.flash.info { background: #eef4fb; color: #1e3a5f; }
.flash.warn { background: #fff7ed; color: #9a3412; border: 1px solid #fdba74; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
a.th-sort { color: var(--muted); text-decoration: none; }
a.th-sort:hover { color: var(--navy); }
a.th-sort.active { color: var(--navy); }
a.th-sort.active::after { content: " \25BE"; }
.badge { display: inline-block; padding: 0.12rem 0.45rem; border-radius: 999px; font-size: 0.75rem; }
.badge.on { background: #dcfce7; color: var(--ok); }
.badge.priority-badge {
  background: #c2410c;
  color: #fff;
  font-weight: 700;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.badge.buma-badge {
  background: #eef4fb;
  color: #1e3a5f;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.sheet-buma-row .checks-dense {
  grid-template-columns: auto auto;
  width: max-content;
}
table tr.agenda-priority-row,
table.status-sheet tr.agenda-priority-row {
  background-color: var(--agenda-priority, #ffcc66) !important;
}
table tr.agenda-priority-row > td.agenda-priority-cell,
table.status-sheet tr.agenda-priority-row > td.agenda-priority-cell,
table tr.agenda-priority-row > td:nth-child(1),
table tr.agenda-priority-row > td:nth-child(2),
table tr.agenda-priority-row > td:nth-child(3),
table.status-sheet tr.agenda-priority-row > td:nth-child(1),
table.status-sheet tr.agenda-priority-row > td:nth-child(2),
table.status-sheet tr.agenda-priority-row > td:nth-child(3) {
  background-color: var(--agenda-priority, #ffcc66) !important;
  background: var(--agenda-priority, #ffcc66) !important;
  color: var(--agenda-priority-text, #0f2744) !important;
}
table tr.agenda-priority-row > td.agenda-priority-cell a,
table tr.agenda-priority-row > td:nth-child(1) a,
table tr.agenda-priority-row > td:nth-child(2) a,
table tr.agenda-priority-row > td:nth-child(3) a,
table.status-sheet tr.agenda-priority-row > td:nth-child(1) a,
table.status-sheet tr.agenda-priority-row > td:nth-child(2) a,
table.status-sheet tr.agenda-priority-row > td:nth-child(3) a {
  color: var(--agenda-priority-text, #0f2744);
}
table tr.agenda-priority-row > td.agenda-priority-cell .muted,
table tr.agenda-priority-row > td:nth-child(3) .muted {
  color: var(--agenda-priority-text, #0f2744);
  opacity: 0.82;
}
table tr.agenda-priority-row > td.agenda-priority-cell:first-child,
table.status-sheet tr.agenda-priority-row > td.agenda-priority-cell:first-child,
table tr.agenda-priority-row > td:nth-child(1),
table.status-sheet tr.agenda-priority-row > td:nth-child(1) {
  font-weight: 700;
  box-shadow: inset 4px 0 0 var(--navy);
}
.agenda-priority-preview {
  width: auto;
  max-width: 100%;
  margin: 0.55rem 0 1.1rem;
  border-collapse: collapse;
}
.agenda-priority-preview td {
  padding: 0.5rem 0.75rem;
}
.badge.off { background: #f3f4f6; color: var(--muted); }
.badge.warn { background: #ffedd5; color: var(--warn); }
.footer {
  margin-top: auto;
  background: var(--navy);
  color: var(--gold-2);
  text-align: center;
  font-size: 0.8rem;
  padding: 0.85rem 1rem;
  position: relative;
  z-index: 1;
}
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.35rem 1rem; }
.checks label { color: var(--ink); display: flex; gap: 0.45rem; align-items: center; margin: 0; }
.checks input { width: auto; }
.pick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 1rem;
  margin: 0.75rem 0 0.1rem;
}
.pick-row h3 {
  margin: 0;
  font-size: 1.2rem;
}
.pick-row label {
  margin: 0;
  width: auto;
}
.checks-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.95rem;
  flex: 1 1 14rem;
  grid-template-columns: none;
}
.checks-compact label { flex: 0 1 auto; }
.select-inline {
  width: auto;
  min-width: 5.5rem;
  padding: 0.35rem 0.5rem;
}
.sheet-add-card,
.sheet-card,
.sheet-edit-card,
.sheet-koppel-card,
.sheet-danger-card {
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.65rem;
  border-radius: 10px;
}
.sheet-card-heading {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
  line-height: 1.15;
}
.sheet-back { margin: 0 0 0.3rem; font-size: 0.92rem; }
.sheet-add-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.65rem;
  align-items: end;
}
.sheet-meta-fields {
  display: grid;
  grid-template-columns: minmax(7rem, 1.35fr) minmax(6rem, 1fr) minmax(6rem, 1fr);
  gap: 0.12rem 0.4rem;
  align-items: end;
  min-width: 0;
}
.sheet-field {
  display: flex;
  flex-direction: column;
  gap: 0.02rem;
  min-width: 0;
}
.sheet-add-head label,
.sheet-meta-fields label,
.sheet-field label,
.dist-leden-toggle > label {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.05;
  color: var(--muted);
  font-weight: 600;
}
.sheet-add-head input,
.sheet-meta-fields input,
.sheet-field input {
  padding: 0.22rem 0.35rem;
  font-size: 0.9rem;
  width: 100%;
  box-sizing: border-box;
}
.dist-leden-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.02rem;
  min-width: 0;
}
.dist-leden-toggle .pick-row {
  margin: 0;
  gap: 0.25rem 0.35rem;
}
.dist-leden-toggle .select-inline {
  padding: 0.2rem 0.35rem;
  min-width: 3.6rem;
  font-size: 0.9rem;
}
.sheet-form-hint,
.sheet-list-intro {
  margin: 0.15rem 0 0.2rem;
  font-size: 0.78rem;
  line-height: 1.3;
}
.sheet-form-actions { margin: 0.35rem 0 0; }
.sheet-section-title {
  display: block;
  margin: 0 0 0.08rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--muted);
}
.sheet-form-dense .file-field {
  margin: 0.05rem 0 0.2rem;
  gap: 0.35rem 0.55rem;
}
.sheet-dist-row {
  margin: 0.35rem 0 0.05rem;
  gap: 0.2rem 0.55rem;
  align-items: flex-start;
}
.sheet-dist-row .sheet-section-title,
.sheet-dist-label {
  flex: 0 0 auto;
  min-width: 4.5rem;
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--muted);
}
.sheet-dist-row .checks-dense {
  flex: 1 1 12rem;
  margin: 0;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.02rem 0.35rem;
}
.sheet-dist-row .checks-compact { display: grid; }
.sheet-dist-row .checks label {
  font-size: 0.84rem;
  gap: 0.25rem;
  line-height: 1.2;
}
@media (max-width: 900px) {
  .sheet-add-head { grid-template-columns: 1fr; }
  .dist-leden-toggle { justify-self: start; }
}
@media (max-width: 640px) {
  .sheet-meta-fields { grid-template-columns: 1fr; }
  .sheet-title-credits { grid-template-columns: 1fr; max-width: none; }
  .sheet-dist-row .checks-dense {
    grid-template-columns: 1fr 1fr;
  }
}
.group-head {
  display: grid;
  grid-template-columns: minmax(9rem, 0.85fr) minmax(12rem, 1.4fr);
  gap: 0.35rem 0.65rem;
  direction: ltr;
}
.group-head label { margin: 0 0 0.12rem; }
.group-head input,
.group-head textarea {
  padding: 0.4rem 0.55rem;
}
.group-card {
  padding: 0.35rem 0.55rem;
  margin-bottom: 0.4rem;
  border-radius: 10px;
}
.announcement-filter-card {
  margin-bottom: 1rem;
}
.announcement-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0;
}
.announcement-filter label {
  margin: 0;
  width: auto;
  font-size: 1rem;
  font-weight: 700;
}
.announcement-filter select,
.announcement-filter .select-inline {
  min-width: 18rem;
  max-width: 100%;
  min-height: 2.5rem;
  font-size: 1rem;
}
.group-form-dense .group-basics {
  display: grid;
  grid-template-columns: minmax(6rem, 0.75fr) minmax(9rem, 1.5fr);
  gap: 0.1rem 0.3rem;
  align-items: end;
  margin: 0;
  direction: ltr;
}
.group-form-dense .group-basics-add {
  grid-template-columns: minmax(6rem, 0.75fr) minmax(8rem, 1.4fr) auto;
}
.group-form-dense .group-field {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.group-form-dense .group-field label {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.05;
  color: var(--muted);
  font-weight: 600;
}
.group-form-dense .group-field input {
  padding: 0.22rem 0.35rem;
  font-size: 0.9rem;
}
.group-form-dense .group-field-submit {
  justify-content: flex-end;
  padding-bottom: 0.02rem;
}
.group-form-dense .group-field-submit .btn { width: auto; }
.group-form-hint {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  line-height: 1.25;
}
.group-form-actions { margin: 0.25rem 0 0; }
.group-section {
  margin: 0.28rem 0 0;
}
.group-section-title {
  display: block;
  margin: 0 0 0.08rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--muted);
}
.group-edit-card .checks-dense,
.group-edit-card .checks-compact {
  margin: 0;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.02rem 0.35rem;
}
.group-edit-card .checks-compact {
  display: grid;
}
.group-edit-card .checks label {
  font-size: 0.84rem;
  gap: 0.25rem;
  line-height: 1.2;
}
.group-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
  margin: 0.3rem 0 0;
  padding-top: 0.2rem;
  border-top: 1px solid var(--line);
}
.group-card-actions .btn { width: auto; }
.group-matrix-lock {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
}
.group-matrix-lock input { cursor: default; }
.group-delete-form {
  margin: 0.15rem 0 0;
  padding-top: 0.15rem;
  border-top: 1px solid var(--line);
}
.instrument-card {
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.7rem;
}
.instrument-back { margin: 0 0 0.35rem; font-size: 0.92rem; }
.instrument-form-dense .instrument-basics {
  display: grid;
  grid-template-columns:
    minmax(7.5rem, 1.15fr)
    minmax(4.2rem, 5.2rem)
    minmax(6.5rem, 1fr)
    minmax(8rem, 1.2fr)
    minmax(6.5rem, 0.95fr);
  gap: 0.15rem 0.4rem;
  align-items: end;
  margin: 0;
}
.instrument-form-dense .instrument-field {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.instrument-form-dense .instrument-field label {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.1;
  color: var(--muted);
  font-weight: 600;
}
.instrument-form-dense .instrument-field input {
  padding: 0.28rem 0.4rem;
  font-size: 0.95rem;
}
.instrument-form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
}
.instrument-form-actions { margin: 0.4rem 0 0; }
.instrument-list-card { padding-top: 0.45rem; padding-bottom: 0.35rem; }
.instrument-table { font-size: 0.9rem; }
.instrument-table th,
.instrument-table td {
  padding: 0.28rem 0.3rem;
  vertical-align: middle;
}
.instrument-table th {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
.instrument-col-code {
  white-space: nowrap;
  width: 3.5rem;
  font-variant-numeric: tabular-nums;
}
.instrument-col-wide {
  max-width: 12rem;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  color: var(--muted);
}
.instrument-col-actions { width: 1%; white-space: nowrap; }
.instrument-col-actions .actions { gap: 0.3rem; justify-content: flex-end; }
.instrument-danger-card h2 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
}
.alias-suggest-heading {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
}
.alias-suggest-list { margin-top: 0.35rem; }
.alias-suggest-group {
  padding: 0.45rem 0.55rem 0.22rem;
  background: #f4efe6;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.25;
  border-bottom: 1px solid var(--line);
}
.alias-suggest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-end;
  justify-self: end;
}
.alias-suggest-row .file-instrument-meta span {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.25;
}
@media (max-width: 980px) {
  .instrument-form-dense .instrument-basics {
    grid-template-columns:
      minmax(7rem, 1.1fr)
      minmax(4rem, 5rem)
      minmax(6rem, 1fr);
  }
  .instrument-form-dense .instrument-field-aliases,
  .instrument-form-dense .instrument-field-extra { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .instrument-form-dense .instrument-basics { grid-template-columns: 1fr 1fr; }
  .instrument-form-dense .instrument-field-name,
  .instrument-form-dense .instrument-field-aliases,
  .instrument-form-dense .instrument-field-extra { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .instrument-form-dense .instrument-basics { grid-template-columns: 1fr; }
  .instrument-form-dense .instrument-field-name,
  .instrument-form-dense .instrument-field-aliases,
  .instrument-form-dense .instrument-field-extra { grid-column: 1; }
}
.committee-grid { gap: 0.65rem; }
a.committee-card {
  text-decoration: none;
  color: inherit;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0;
}
a.committee-card h2 {
  margin: 0 0 0.15rem;
  font-size: 1.25rem;
}
a.committee-card p { margin: 0.12rem 0 0; }
.committee-desc { font-size: 0.95rem; }
.committee-new {
  grid-template-columns: minmax(8rem, 0.9fr) minmax(10rem, 1.2fr) minmax(9rem, 0.95fr);
}
.committee-title { align-items: baseline; margin: 0 0 0.35rem; }
.committee-title h1 { margin: 0; }
.committee-manager { min-width: 12rem; }
.committee-member-pick {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: flex-start;
}
.committee-mail-groups-flag {
  font-size: 0.9rem;
  margin-left: 1.4rem;
}
.committee-contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0 0 0.85rem;
}
.committee-contact-row.has-whatsapp {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.committee-contact-row > .card {
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .committee-contact-row.has-whatsapp {
    grid-template-columns: 1fr;
  }
}
.committee-mail textarea {
  min-height: 7rem;
  resize: vertical;
}
.committee-mail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  margin-top: 0.55rem;
}
.committee-mail-actions .btn { width: auto; }
.committee-mail-member { min-width: 12rem; }
.pick-row h2 { margin: 0; font-size: 1.25rem; }
.checks-dense {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.12rem 0.55rem;
}
@media (max-width: 700px) {
  .group-head,
  .committee-new,
  .group-form-dense .group-basics { grid-template-columns: 1fr; }
  .group-form-dense .group-basics-add {
    grid-template-columns: 1fr 1fr;
  }
  .group-form-dense .group-field-submit {
    grid-column: 1 / -1;
    align-items: stretch;
  }
  .group-form-dense .group-field-submit .btn { width: 100%; }
  .group-edit-card .checks-dense,
  .group-edit-card .checks-compact {
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  }
}
@media (max-width: 480px) {
  .group-form-dense .group-basics-add { grid-template-columns: 1fr; }
  .group-edit-card .checks-dense,
  .group-edit-card .checks-compact {
    grid-template-columns: 1fr 1fr;
  }
}
.help-list details { border-bottom: 1px solid var(--line); padding: 0.5rem 0; }
.rich, .prose table { width: 100%; }
.rich {
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem;
  background: #fff;
}
/* Getypte tekst: Enter = volgende regel. Lege regel alleen als u zelf een regel overslaat. */
.rich p, .rich > div,
.activity-body p, .activity-body > div,
.prose:not(.doc-preview) p, .prose:not(.doc-preview) > div {
  margin: 0;
}
.rich p:empty, .rich p:has(> br:only-child),
.rich > div:empty, .rich > div:has(> br:only-child),
.activity-body p:empty, .activity-body p:has(> br:only-child),
.activity-body > div:empty, .activity-body > div:has(> br:only-child),
.prose:not(.doc-preview) p:empty, .prose:not(.doc-preview) p:has(> br:only-child),
.prose:not(.doc-preview) > div:empty, .prose:not(.doc-preview) > div:has(> br:only-child) {
  min-height: 1.35em;
}
.rich table, .prose table, .activity-body table {
  border-collapse: collapse;
  width: auto;
  max-width: 100%;
  background: #fff;
}
.rich table th, .rich table td,
.prose table th, .prose table td,
.activity-body table th, .activity-body table td {
  border: 1px solid #b4b4b4;
  padding: 2px 6px;
  vertical-align: middle;
}
.activity-body, .rich { overflow-x: auto; }
.activity-plain { white-space: pre-wrap; line-height: 1.5; }
.muted { color: var(--muted); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 2.7rem; }
.password-toggle {
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0.35rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 0;
}
.password-toggle:hover,
.password-toggle:focus-visible { color: var(--navy); outline: none; }
.password-toggle .eye-off { display: none; }
.password-wrap.is-visible .eye-on { display: none; }
.password-wrap.is-visible .eye-off { display: block; }
.snippet {
  width: 100%;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88rem;
  background: #fbf7f0;
  resize: vertical;
}
.setup-steps {
  margin: 0.4rem 0 1.1rem;
  padding-left: 1.2rem;
}
.setup-steps li { margin: 0.45rem 0; }
.present-case {
  margin-top: 1.15rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}
.present-case:first-of-type {
  border-top: 0;
  padding-top: 0.35rem;
}
.present-case h3 { margin: 0 0 0.4rem; }
.mail-frame { padding: 0; overflow: hidden; }
.mail-frame iframe { display: block; width: 100%; height: 420px; border: 0; background: #fff; }
.doc-frame iframe { height: min(80vh, 920px); min-height: 480px; }
.doc-preview-frame {
  padding: 0;
  overflow: auto;
  max-height: min(80vh, 920px);
  background: #fff;
}
.doc-preview {
  padding: 1.15rem 1.3rem 1.4rem;
  line-height: 1.55;
  overflow-x: auto;
}
.doc-preview img { max-width: 100%; height: auto; }
.doc-preview .sheet-block { margin: 0 0 1.4rem; }
.doc-preview .sheet-title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}
.doc-preview .sheet-table-wrap { overflow-x: auto; }
.doc-preview table { width: auto; max-width: 100%; background: #fff; }
.doc-preview table th,
.doc-preview table td {
  border: 1px solid #b4b4b4;
  padding: 2px 8px;
  vertical-align: middle;
  white-space: nowrap;
}
.file-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  vertical-align: middle;
  min-width: 16rem;
}
.file-actions form { margin: 0; display: inline-flex; flex-shrink: 0; }
.file-actions .btn.small,
.file-actions .sheet-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  flex-shrink: 0;
  box-sizing: border-box;
}
.hidden-titles summary { cursor: pointer; color: var(--navy); font-weight: 600; }
.sheet-edit-card { overflow-x: visible; }
.sheet-edit-section {
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}
.sheet-edit-identity {
  margin-top: 0.35rem;
  padding-top: 0;
  border-top: 0;
}
.sheet-edit-piece {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 1.28rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.sheet-edit-section h3.sheet-section-title,
.sheet-edit-section .sheet-section-title { margin: 0 0 0.08rem; }
.sheet-edit-section > .muted,
.sheet-edit-section > .sheet-form-hint { margin: 0 0 0.25rem; }
.sheet-edit-files {
  margin-top: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.file-instrument {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(12rem, 17rem) auto;
  gap: 0.3rem 0.55rem;
  align-items: center;
  padding: 0.35rem 0.55rem;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.file-instrument:last-child { border-bottom: 0; }
.file-instrument-head {
  background: #fbf7f0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.28rem 0.55rem;
}
.file-instrument-actions-head { text-align: right; }
.file-instrument-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.file-instrument-meta strong {
  font-size: 0.86rem;
  line-height: 1.2;
}
.file-instrument-meta a {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.25;
}
.file-instrument-select { min-width: 0; }
.file-instrument-select-label {
  display: none;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 0.1rem;
  font-weight: 600;
}
.file-instrument select {
  width: 100%;
  max-width: none;
  padding: 0.22rem 0.35rem;
  font-size: 0.9rem;
}
.file-instrument .btn {
  width: auto;
  justify-self: end;
  white-space: nowrap;
}
.sheet-del-form { display: none; }
.sheet-edit-add {
  margin-top: 0.55rem;
  padding: 0.45rem 0.55rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7f0;
}
.sheet-edit-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem 0.55rem;
  margin-top: 0.1rem;
}
.sheet-edit-add-row .file-field {
  margin: 0;
  flex: 0 0 auto;
  min-width: auto;
}
.sheet-edit-add-row .file-field-status { flex: 0 1 auto; }
.sheet-edit-add-row .btn {
  width: auto;
  flex: 0 0 auto;
}
.sheet-edit-save { margin: 0.45rem 0 0.15rem; }
.sheet-mail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  margin: 0.35rem 0 0;
  padding-top: 0.3rem;
  border-top: 1px solid var(--line);
}
.sheet-edit-mail { margin: 0; }
.sheet-edit-mail .btn { width: auto; }
.koppel-note {
  background: #eef4fb;
  color: #1e3a5f;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0.1rem 0 0.35rem;
}
#koppelen { scroll-margin-top: 4.75rem; }
.loc-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.55rem; }
.loc-line a { color: var(--navy-2); }
.loc-label { font-weight: 600; color: var(--ink, #1a2433); }
.loc-maps { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.loc-line-dash {
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.28rem;
  margin-top: 0.08rem;
  max-width: 22rem;
  line-height: 1.2;
}
.loc-dash-link {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
  max-width: 100%;
  color: var(--navy-2);
  text-decoration: none;
}
.loc-dash-link:hover { text-decoration: underline; }
.loc-line-dash .loc-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loc-pin {
  flex: 0 0 auto;
  color: var(--navy-2);
}
.map-stage {
  opacity: 0;
  transform: translateY(14px);
}
.map-stage.map-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.map-stage.map-out {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.map-frame {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #eef2f6;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.06);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: min(68vh, 540px);
  border: 0;
}
.agenda-head {
  display: grid;
  grid-template-columns: minmax(10rem, 1.4fr) minmax(12rem, 0.9fr) minmax(8rem, 0.7fr);
  gap: 0.2rem 0.5rem;
  align-items: end;
  margin-bottom: 0.2rem;
}
.agenda-head label { margin: 0 0 0.05rem; }
.agenda-head input { padding: 0.32rem 0.45rem; }
.agenda-head-loc {
  grid-template-columns: minmax(12rem, 1fr) auto;
  align-items: end;
}
.agenda-form-dense .agenda-basics {
  display: grid;
  grid-template-columns:
    minmax(8rem, 1.35fr)
    minmax(7.2rem, 8.5rem)
    minmax(6.2rem, 7.2rem)
    minmax(6.2rem, 7.2rem)
    minmax(8rem, 1.15fr)
    auto;
  gap: 0.15rem 0.4rem;
  align-items: end;
  margin: 0 0 0.25rem;
}
.agenda-form-dense .agenda-field-type {
  min-width: 9.5rem;
}
.activity-rubriek {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.agenda-form-dense .agenda-field label {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.1;
  color: var(--muted);
  font-weight: 600;
}
.agenda-form-dense .agenda-field input,
.agenda-form-dense .agenda-field select,
.agenda-form-dense .agenda-basics .date-search-input {
  padding: 0.28rem 0.4rem;
  font-size: 0.95rem;
}
.agenda-form-dense .agenda-basics .time-24 { gap: 0.2rem; }
.agenda-form-dense .agenda-basics .time-24 select {
  min-width: 3.4rem;
  padding: 0.28rem 0.25rem;
}
.agenda-form-dense .agenda-basics .date-search { width: 100%; }
.agenda-form-dense .agenda-basics .date-search-cal {
  width: 1.7rem;
  height: 1.7rem;
}
.agenda-form-dense .agenda-basics .location-search {
  gap: 0;
  flex-wrap: nowrap;
}
.agenda-form-dense .agenda-basics .location-search input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}
.agenda-form-dense .agenda-maps-check {
  margin: 0 0 0.05rem !important;
  white-space: nowrap;
  font-size: 0.88rem;
  align-self: end;
  padding-bottom: 0.15rem;
}
.agenda-form-dense .agenda-map-actions { margin: 0.15rem 0 0; gap: 0.3rem; }
.agenda-form-dense .location-map-compact {
  height: 140px;
  margin-top: 0.25rem;
}
.agenda-meta {
  display: grid;
  grid-template-columns: minmax(12rem, 1.2fr) minmax(14rem, 1fr);
  gap: 0.35rem 0.85rem;
  align-items: start;
  margin: 0.45rem 0 0.4rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.agenda-meta-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.65rem;
}
.agenda-meta-label {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
}
.agenda-meta-hint {
  font-size: 0.82rem;
  font-weight: 400;
}
.agenda-meta .checks-compact { flex: 1 1 10rem; gap: 0.1rem 0.7rem; }
.agenda-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
}
.agenda-options .inline-check { margin: 0; }
.agenda-deadline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}
.agenda-deadline-hours {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.agenda-deadline-hours label { margin: 0; font-size: 0.85rem; }
.agenda-deadline-hours input {
  width: 3.8rem;
  padding: 0.28rem 0.35rem;
}
.agenda-content label { margin-top: 0.35rem; }
.agenda-content label:first-child { margin-top: 0; }
.agenda-program-field {
  margin: 0.65rem 0 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--teal, #0e7c7b) 35%, #d7e2ea);
  border-radius: 8px;
  background: color-mix(in srgb, var(--teal, #0e7c7b) 7%, #fff);
  scroll-margin-top: 4.75rem;
}
.agenda-program-field label { margin: 0 0 0.12rem; font-weight: 600; }
.agenda-program-field select { padding: 0.32rem 0.45rem; width: 100%; max-width: 32rem; }
.agenda-program-field .agenda-meta-hint { display: block; margin-top: 0.2rem; }
.activity-split-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem 1.2rem;
  align-items: start;
}
.activity-program { scroll-margin-top: 4.75rem; }
.activity-program h2 { margin-top: 0; }
@media (max-width: 800px) {
  .activity-split-2 { grid-template-columns: 1fr; }
}
.agenda-form-dense .rich {
  min-height: 100px;
  margin-bottom: 0.35rem;
}
.agenda-edit-delete { margin-top: 0.85rem; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.rehearsal-schedule-table {
  width: 100%;
  margin: 0.35rem 0 0.2rem;
}
.rehearsal-schedule-table th,
.rehearsal-schedule-table td {
  vertical-align: middle;
}
.rehearsal-schedule-table select {
  padding: 0.28rem 0.4rem;
}
.rehearsal-schedule-table .time-24,
.rehearsal-joint-times .time-24 {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.rehearsal-joint {
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.8rem 0.8rem;
  border: 1px solid var(--line, #d5dee8);
  border-radius: 8px;
  background: #f8fafc;
}
.rehearsal-joint-title {
  margin: 0;
  font-weight: 650;
}
.rehearsal-joint-hint {
  margin: 0.2rem 0 0.55rem;
  max-width: 46rem;
}
.rehearsal-joint-groups {
  margin: 0 0 0.7rem;
}
.rehearsal-joint-groups label {
  font-weight: 500;
}
.rehearsal-joint-times {
  display: grid;
  grid-template-columns: minmax(8.2rem, 10rem) max-content max-content;
  gap: 0.45rem 1.25rem;
  align-items: end;
  justify-content: start;
}
.rehearsal-joint-times label {
  display: block;
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.rehearsal-joint-times select {
  padding: 0.28rem 0.4rem;
}
@media (max-width: 640px) {
  .rehearsal-joint-times { grid-template-columns: 1fr; }
}
.rehearsal-schedule-range {
  display: grid;
  grid-template-columns: minmax(7.2rem, 10rem) minmax(7.2rem, 10rem);
  gap: 0.4rem 0.8rem;
  align-items: end;
  margin: 0.55rem 0 0;
}
.rehearsal-schedule-range label {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.rehearsal-skip-holidays {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.7rem 0 0;
  font-weight: 600;
}
.rehearsal-skip-holidays-hint {
  margin: 0.25rem 0 0;
}
.rehearsal-series-list {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line, #d5dee8);
}
.rehearsal-series-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.rehearsal-series-item {
  margin-top: 0.75rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line, #d5dee8);
  border-radius: 8px;
  background: #f8fafc;
}
.rehearsal-series-meta { margin: 0 0 0.2rem; }
.rehearsal-series-summary { margin: 0 0 0.45rem; }
.rehearsal-series-actions { margin: 0.35rem 0 0.2rem; }
.agenda-field-title .agenda-meta-hint {
  display: block;
  margin-top: 0.15rem;
}
.agenda-export-head {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(10rem, 1fr) minmax(8rem, 0.9fr);
  gap: 0.35rem 0.65rem;
  align-items: end;
}
.agenda-export-head label { margin: 0 0 0.12rem; }
.agenda-export-head select { padding: 0.4rem 0.55rem; }
.agenda-export-actions { margin-top: 0.55rem; }
@media (max-width: 1100px) {
  .agenda-form-dense .agenda-basics {
    grid-template-columns: minmax(8rem, 1.2fr) minmax(7rem, 8.2rem) minmax(6rem, 7rem) minmax(6rem, 7rem);
  }
  .agenda-form-dense .agenda-field-loc { grid-column: 1 / 3; }
  .agenda-form-dense .agenda-maps-check { grid-column: 3 / 5; align-self: end; }
}
@media (max-width: 800px) {
  .agenda-head,
  .agenda-export-head { grid-template-columns: 1fr 1fr; }
  .agenda-head-title,
  .agenda-head-loc { grid-column: 1 / -1; }
  .agenda-meta { grid-template-columns: 1fr; }
  .agenda-form-dense .agenda-basics {
    grid-template-columns: 1fr 1fr;
  }
  .agenda-form-dense .agenda-field-title { grid-column: 1 / -1; }
  .agenda-form-dense .agenda-field-date { grid-column: 1; }
  .agenda-form-dense .agenda-field-time { grid-column: auto; }
  .agenda-form-dense .agenda-field-loc { grid-column: 1; }
  .agenda-form-dense .agenda-maps-check { grid-column: 2; }
}
@media (max-width: 560px) {
  .agenda-head,
  .agenda-head-loc,
  .agenda-export-head { grid-template-columns: 1fr; }
  .agenda-form-dense .agenda-basics { grid-template-columns: 1fr; }
  .agenda-form-dense .agenda-field-title,
  .agenda-form-dense .agenda-field-loc,
  .agenda-form-dense .agenda-maps-check { grid-column: 1; }
}
.location-search { position: relative; display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.location-search input { flex: 1 1 220px; }
.location-search .btn { width: auto; flex: 0 0 auto; }
.location-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 30;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 39, 68, 0.12);
  max-height: 220px;
  overflow: auto;
}
.location-suggest li { margin: 0; }
.location-suggest button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0.5rem 0.7rem;
  font: inherit;
  cursor: pointer;
}
.location-suggest button:hover { background: #f6f1e8; }
.location-map {
  height: 260px;
  margin-top: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: 1;
}
.location-map .leaflet-pane,
.location-map .leaflet-top,
.location-map .leaflet-bottom { z-index: 1; }
a.activity-title { font-weight: 600; text-decoration: none; color: var(--navy-2); }
a.activity-title:hover { text-decoration: underline; color: var(--navy); }
.activity-body { margin: 0.4rem 0 1rem; line-height: 1.5; }
.excerpt { max-width: 42rem; }
.login-wrap { max-width: 420px; margin: 4rem auto; }
.login-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.15rem;
}
.login-heading h1 { margin: 0; }
.login-heading-logo {
  height: 64px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 3px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.status-present { color: #14532d; background: #e8f3ec; font-weight: 600; }
.status-cancelled { color: #9f1239; background: #f8eef0; font-weight: 600; }
.status-reserved { color: #9a3412; background: #f7f0e4; font-weight: 600; }
.status-absent { color: #4a0d0d; background: #e4b4b4; font-weight: 600; }
.status-heading {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.45rem;
}
.status-form {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  max-width: 38rem;
}
.activity-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0 0 1.1rem;
  max-width: 38rem;
}
.activity-status .status-heading {
  margin: 0;
  flex: 0 0 auto;
}
.activity-status .status-form {
  flex: 1 1 16rem;
}
.status-form .status-picks {
  flex: 1 1 16rem;
}
.status-form-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}
.status-form:has(textarea[name="reason"]) .status-form-meta {
  flex: 1 1 100%;
}
.status-form:has(input[name="status"][value="present"]:checked) .status-form-meta {
  display: none;
}
.status-reason-label {
  display: block;
  width: 100%;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}
.status-form-meta textarea {
  flex: 1 1 100%;
  min-width: 0;
  width: 100%;
  min-height: 3.2rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.9rem;
  resize: vertical;
}
.status-form-meta select {
  flex: 1 1 10rem;
  min-width: 0;
  width: auto;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
}
.status-form-meta .btn {
  flex: 0 0 auto;
  width: auto;
}
.status-picks {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid #b8ae9e;
  border-radius: 999px;
  overflow: hidden;
  background: #e4ddd2;
  align-items: stretch;
  gap: 0;
}
.status-picks .status-pick {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  margin: 0;
  padding: 0.32rem 0.28rem;
  border: 0;
  border-right: 1px solid #e0d7c9;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  line-height: 1.15;
  white-space: normal;
}
.status-picks .status-pick.is-locked {
  opacity: 0.45;
  cursor: not-allowed;
}
.status-picks .status-pick.is-locked input {
  cursor: not-allowed;
}
.status-deadline-note {
  flex: 1 1 100%;
  margin: 0.35rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
  font-size: 0.92rem;
  line-height: 1.35;
  white-space: pre-line;
}
.status-pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.status-pick:focus-within {
  z-index: 1;
  outline: 2px solid var(--navy);
  outline-offset: -2px;
}
.status-pick.status-present {
  background: #b7dfc6;
  color: #14532d;
}
.status-pick.status-cancelled {
  background: #efc0ca;
  color: #9f1239;
}
.status-pick.status-reserved {
  background: #f3d09a;
  color: #9a3412;
}
.status-pick.status-absent {
  background: #c9a0a0;
  color: #4a0d0d;
}
.status-pick.status-present:has(input:checked) {
  background: #1f7a4d;
  color: #fff;
}
.status-pick.status-cancelled:has(input:checked) {
  background: #be123c;
  color: #fff;
}
.status-pick.status-reserved:has(input:checked) {
  background: #b45309;
  color: #fff;
}
.status-pick.status-absent:has(input:checked) {
  background: #4c0519;
  color: #fff;
}
.status-sheet th:nth-child(1),
.status-sheet td:nth-child(1) {
  width: 7.2rem;
  white-space: nowrap;
}
.status-sheet th:nth-child(2),
.status-sheet td:nth-child(2) {
  width: 4.6rem;
  white-space: nowrap;
}
.status-sheet th:nth-child(4),
.status-sheet td:nth-child(4) {
  width: 30rem;
  max-width: 30rem;
}
.status-sheet .activity-title { font-size: 1rem; }
.opkomst-page-title { margin: 0 0 0.25rem; }
.opkomst-page-lead {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.35;
}
.opkomst-pick-card {
  padding: 0.55rem 0.65rem 0.4rem;
  margin-bottom: 0.75rem;
  max-height: min(22rem, 55vh);
  overflow: auto;
}
.opkomst-pick {
  font-size: 0.88rem;
  margin: 0;
}
.opkomst-pick thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--white, #fffdf8);
  box-shadow: 0 1px 0 var(--line);
}
.opkomst-sort {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.opkomst-sort::after {
  content: " ▾";
  font-size: 0.95em;
  opacity: 0.45;
}
.opkomst-sort.is-desc::after { opacity: 1; }
.opkomst-sort.is-asc::after { content: " ▴"; opacity: 1; }
.opkomst-sort:hover { text-decoration: underline; }
.opkomst-pick th,
.opkomst-pick td {
  vertical-align: middle;
  padding: 0.22rem 0.35rem;
  line-height: 1.25;
}
.opkomst-pick th {
  font-size: 0.72rem;
  padding-top: 0.1rem;
  padding-bottom: 0.2rem;
}
.opkomst-pick-when,
.opkomst-pick-time {
  width: 7.2rem;
  white-space: nowrap;
}
.opkomst-pick-time { width: 4.6rem; }
.opkomst-pick a {
  color: inherit;
  text-decoration: none;
  display: block;
}
.opkomst-pick-title a { color: var(--navy-2); font-weight: 600; }
.opkomst-pick tr:hover td { background: #f3f0ea; }
.opkomst-pick tr.is-selected td {
  background: #eef4fb;
  box-shadow: inset 3px 0 0 var(--navy);
}
.opkomst-pick tr.is-selected .opkomst-pick-title a { color: var(--navy); }
.opkomst-detail-card {
  padding: 0.65rem 0.75rem 0.7rem;
}
.opkomst-detail-title {
  margin: 0 0 0.1rem;
  font-size: 1.35rem;
  line-height: 1.2;
}
.opkomst-detail-meta {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
}
.opkomst-table {
  width: 100%;
  font-size: 0.82rem;
}
.opkomst-table th,
.opkomst-table td {
  vertical-align: middle;
  padding: 0.08rem 0.18rem;
  line-height: 1.2;
}
.opkomst-table th {
  font-size: 0.68rem;
  font-weight: 600;
  padding-top: 0.02rem;
  padding-bottom: 0.12rem;
  letter-spacing: 0.01em;
}
.opkomst-col-first,
.opkomst-col-infix,
.opkomst-col-last {
  width: 1%;
  white-space: nowrap;
  padding-right: 0.4rem;
}
.opkomst-col-infix {
  padding-left: 0;
  padding-right: 0.4rem;
  max-width: 4.4rem;
  white-space: normal;
  line-height: 1.05;
}
.opkomst-table td.opkomst-col-infix {
  white-space: nowrap;
  max-width: none;
}
.opkomst-col-last {
  padding-left: 0;
}
.opkomst-col-status {
  width: 1%;
  white-space: nowrap;
  padding-left: 0.55rem;
}
.opkomst-col-reason {
  min-width: 7rem;
}
.opkomst-table select,
.opkomst-table input[type="text"] {
  width: 100%;
  max-width: 100%;
  padding: 0.12rem 0.28rem;
  font-size: 0.8rem;
  border-radius: 5px;
}
.opkomst-col-status select {
  width: auto;
  min-width: 8rem;
}
.opkomst-form .actions { margin-top: 0.4rem; }
.opkomst-src {
  font-size: 0.74em;
  font-weight: 400;
  margin-left: 0.35rem;
  white-space: nowrap;
}
.signal-table { font-size: 0.86rem; width: 100%; }
.signal-table th,
.signal-table td {
  vertical-align: top;
  padding: 0.28rem 0.4rem;
  line-height: 1.3;
}
.signal-table th {
  font-size: 0.72rem;
  padding-top: 0.05rem;
  padding-bottom: 0.18rem;
}
.signal-table .signal-day,
.signal-table .signal-changed { white-space: nowrap; }
.signal-table .signal-fix { white-space: nowrap; }
.matrix-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
  margin: 0.2rem 0 0.55rem;
  font-size: 0.88rem;
}
.matrix th.matrix-sort-cell {
  white-space: nowrap;
  vertical-align: middle;
  padding: 0.1rem 0.2rem;
}
.matrix th.matrix-sort-pct { text-align: center; }
.matrix a.matrix-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  background: var(--navy);
  color: #fff !important;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.05;
  padding: 0.16rem 0.36rem;
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(15, 39, 68, 0.2);
}
.matrix a.matrix-sort::after {
  content: "▾";
  font-size: 0.85em;
  line-height: 1;
  opacity: 0.9;
}
.matrix a.matrix-sort:hover { filter: brightness(1.1); }
.matrix a.matrix-sort.active {
  background: var(--btn-gold, #8a6a32);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold-2) 70%, white);
}
.matrix a.matrix-sort.active::after { opacity: 1; }
.matrix th.matrix-name,
.matrix td.matrix-name {
  white-space: nowrap;
  width: 1%;
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 0.4rem;
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--white);
}
.matrix th.matrix-inst-code,
.matrix td.matrix-inst-code {
  white-space: nowrap;
  width: 1%;
  text-align: center;
  font-variant-numeric: tabular-nums;
  padding-left: 0.18rem;
  padding-right: 0.18rem;
  position: sticky;
  left: var(--matrix-sticky-2, 7.5rem);
  z-index: 3;
  background: var(--white);
}
.matrix th.matrix-inst-name,
.matrix td.matrix-inst-name {
  white-space: nowrap;
  width: 1%;
  max-width: 8.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 0.45rem;
  position: sticky;
  left: var(--matrix-sticky-3, 10.5rem);
  z-index: 4;
  background: var(--white);
  box-shadow: 6px 0 8px -6px rgba(15, 39, 68, 0.28);
}
.matrix thead th {
  position: relative;
  z-index: 0;
  background: var(--white);
}
.matrix thead th.agenda-priority-cell {
  z-index: 0;
}
.matrix thead th.matrix-name,
.matrix thead th.matrix-inst-code,
.matrix thead th.matrix-inst-name {
  z-index: 6;
  overflow: hidden;
}
.matrix-card { padding-bottom: 0.65rem; }
.matrix {
  overflow: auto;
  padding: 0.55rem 0.65rem 0.2rem;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.matrix table {
  width: max-content;
  min-width: 100%;
  font-size: 0.82rem;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
}
.matrix th,
.matrix td {
  padding: 0.1rem 0.22rem;
  line-height: 1.2;
  vertical-align: middle;
  border: 1px solid var(--line);
}
.matrix th {
  font-size: 0.68rem;
  padding-top: 0.06rem;
  padding-bottom: 0.14rem;
}
.matrix th.agenda-priority-cell {
  background: var(--agenda-priority, #ffcc66) !important;
  color: var(--agenda-priority-text, #0f2744) !important;
  box-shadow: inset 0 4px 0 var(--navy);
}
.matrix th.agenda-priority-cell .muted {
  color: var(--agenda-priority-text, #0f2744);
  opacity: 0.82;
}
.matrix th .muted {
  font-size: 0.64rem;
  line-height: 1.15;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0.04rem;
}
.matrix td.matrix-prio-col {
  box-shadow: inset 0 3px 0 var(--agenda-priority, #ffcc66);
}
.matrix td.status-present,
.matrix td.status-cancelled,
.matrix td.status-absent,
.matrix td.status-reserved {
  text-align: center;
  min-width: 2.1rem;
  max-width: 8rem;
  padding: 0.08rem 0.12rem;
  font-weight: 600;
}
.matrix td:has(.matrix-reason) {
  min-width: 5.2rem;
  max-width: 12rem;
  white-space: normal;
}
.matrix thead th:nth-child(n + 4):not(.matrix-sort-pct) {
  max-width: 5.1rem;
  white-space: normal;
}
.matrix-day-wd,
.matrix-day-num { display: block; line-height: 1.15; }
.matrix-day-num { font-variant-numeric: tabular-nums; }
.matrix thead th:nth-child(n + 4):not(.matrix-sort-pct) .muted {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.matrix-symbol { display: block; }
.matrix-reason {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1.25;
  margin-top: 0.2rem;
  word-break: break-word;
  color: inherit;
  opacity: 0.95;
}
.matrix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  margin: 0.4rem 0.65rem 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.75rem;
}
.matrix-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.matrix-legend .swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.78rem;
}
.matrix-stats {
  margin: 0.65rem 0.65rem 0;
  font-size: 0.88rem;
  color: var(--ink, #1c2430);
}
.sheet-card { overflow: visible; }
.sheet-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.5rem;
  margin-bottom: 0.2rem;
}
.sheet-toolbar h2,
.sheet-toolbar .sheet-card-heading {
  margin: 0;
  flex: 1 1 8rem;
}
.sheet-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  justify-content: flex-end;
}
.sheet-tools form { margin: 0; }
.sheet-tools .btn.small {
  padding: 0.22rem 0.45rem;
  font-size: 0.82rem;
}
.sheet {
  margin-top: 0.2rem;
}
.sheet-cols,
.sheet-title-row,
.sheet-part {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 7.2rem minmax(0, 1.05fr) minmax(11rem, auto);
  column-gap: 0.45rem;
  align-items: center;
}
.sheet-cols {
  padding: 0.08rem 0.15rem 0.28rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sheet-cols .th-sort { color: var(--muted); }
.sheet-cols > :last-child { text-align: right; }
.sheet-title-row .sheet-date,
.sheet-title-row .sheet-actions { padding-top: 0.08rem; }
.sheet-piece {
  border-bottom: 1px solid var(--line);
  padding: 0.28rem 0.1rem 0.2rem;
}
.sheet-piece:last-child { border-bottom: 0; }
.sheet-title-row {
  align-items: start;
  background: #fbf7f0;
  margin: 0 -0.1rem;
  padding: 0.28rem 0.35rem 0.25rem;
  border-radius: 6px;
}
.sheet-title {
  min-width: 0;
  text-align: left;
}
.sheet-title-text {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.sheet-title-credits {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.02rem 0.55rem;
  margin-top: 0.08rem;
  max-width: 28rem;
}
.sheet-credit {
  display: block;
  min-width: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.sheet-credit-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.85;
}
.sheet-title .muted {
  display: block;
  margin-top: 0.04rem;
  font-size: 0.78rem;
}
.sheet-date {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 0.86rem;
}
.sheet-part {
  margin-top: 0.1rem;
  align-items: start;
}
.sheet-part .sheet-file { grid-column: 1 / 3; }
.sheet-file {
  min-width: 0;
  padding: 0.04rem 0 0.04rem 0.5rem;
  border-left: 2px solid var(--gold);
}
.sheet-filename {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 0.86rem;
  color: var(--ink);
  line-height: 1.25;
}
.sheet-part-meta {
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.sheet-title-meta { align-self: center; }
.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
}
.sheet-actions form { margin: 0; }
.sheet-actions .btn.small {
  padding: 0.2rem 0.4rem;
  font-size: 0.8rem;
}
.sheet-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 1.7rem;
  padding: 0;
  border-radius: 6px;
  background: var(--navy);
  color: #fff !important;
  text-decoration: none;
  line-height: 0;
}
.sheet-download:hover { filter: brightness(1.12); }
.sheet-download:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.sheet-download svg { display: block; }
.dash-file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.22rem 0;
}
.dash-file form { margin: 0; }
.dash-file .sheet-filename {
  display: inline;
  font-size: inherit;
}
.file-open-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-2);
  text-decoration: none;
  white-space: nowrap;
}
.file-open-link:hover { text-decoration: underline; }
.dash-file a.sheet-filename {
  color: inherit;
  text-decoration: none;
}
.dash-file a.sheet-filename:hover { text-decoration: underline; }
.sheet-empty {
  text-align: center;
  padding: 1rem 0.6rem 0.7rem;
  color: var(--muted);
}
.sheet-empty p { margin: 0; }
@media (max-width: 1024px) {
  .status-sheet th:nth-child(4),
  .status-sheet td:nth-child(4) {
    width: 20rem;
    max-width: 20rem;
  }
  .status-form { max-width: 20rem; }
  .card { overflow-x: auto; }
  .card.sheet-card,
  .card.sheet-edit-card,
  .card.matrix-card { overflow-x: visible; }
  .matrix th.matrix-name,
  .matrix td.matrix-name { max-width: 7.6rem; }
  .matrix th.matrix-inst-name,
  .matrix td.matrix-inst-name { max-width: 6.8rem; }
  .sheet-cols { display: none; }
  .sheet-title-row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0.18rem;
  }
  .sheet-title-row .sheet-title { grid-column: 1; }
  .sheet-title-row .sheet-date { grid-column: 2; justify-self: end; }
  .sheet-title-row .sheet-part-meta { display: none; }
  .sheet-title-row .sheet-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .sheet-part {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0.1rem;
  }
  .sheet-part .sheet-file { grid-column: 1; }
  .sheet-part .sheet-part-meta {
    grid-column: 1 / -1;
    padding-left: 0.75rem;
  }
  .sheet-part .sheet-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    align-self: start;
  }
}
.menu-btn { display: none; background: transparent; color: #fff; border: 1px solid #38557a; border-radius: 8px; padding: 0.3rem 0.55rem; }
@media (max-width: 800px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); padding: 0.8rem 1rem 1rem; }
  .nav a.nav-stack { font-size: 0.92rem; line-height: 1.15; }
  .nav-drop {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: auto;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
  }
  .nav-drop-head {
    justify-content: space-between;
  }
  .nav-drop-menu {
    display: none;
    position: static;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    min-width: 0;
    margin: 0;
    padding: 0 0 0.15rem 0.85rem;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    transition: none;
  }
  .nav-drop.is-open .nav-drop-menu {
    display: flex;
  }
  .menu-btn { display: inline-block; }
  body.nav-left {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    grid-template-rows: none;
  }
  body.nav-left .topbar {
    grid-column: auto;
    grid-row: auto;
    width: auto;
    min-width: 0;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    overflow: visible;
    padding: 0.7rem 1.1rem;
    gap: 1rem;
  }
  body.nav-left .brand { padding: 0; border-bottom: 0; }
  body.nav-left .nav {
    flex: none;
    display: none;
  }
  body.nav-left .nav.open {
    display: flex;
  }
  body.nav-left .userbox {
    margin-top: 0;
    padding: 0;
    border-top: 0;
    white-space: nowrap;
  }
  body.nav-left .wrap,
  body.nav-left .footer {
    grid-column: auto;
    grid-row: auto;
  }
  .file-instrument-head { display: none; }
  .file-instrument {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 0.3rem;
    padding: 0.45rem 0.55rem;
  }
  .file-instrument-select-label { display: block; }
  .file-instrument .btn { justify-self: start; }
  .alias-suggest-actions { justify-content: flex-start; justify-self: start; }
}
@media (max-width: 640px) {
  .opkomst-pick-when { width: 6.4rem; }
  .opkomst-pick-time { width: 3.8rem; }
  .opkomst-pick th,
  .opkomst-pick td {
    padding: 0.28rem 0.28rem;
  }
  .opkomst-col-status select { min-width: 7.4rem; }
  .opkomst-table select,
  .opkomst-table input[type="text"] {
    font-size: 0.82rem;
    padding: 0.18rem 0.28rem;
  }
}
@media print {
  .topbar .nav, .topbar .menu-btn, .topbar .userbox, .footer, .no-print { display: none !important; }
  .topbar {
    position: static;
    background: transparent;
    color: inherit;
    padding: 0 0 0.55rem;
    gap: 0;
  }
  body.nav-left {
    display: flex;
    flex-direction: column;
  }
  body.nav-left .topbar {
    width: auto;
    min-width: 0;
    height: auto;
    position: static;
  }
  .brand { color: var(--navy); }
  .brand-logo { background: transparent; padding: 0; }
  body { background: #fff; }
  body.has-logo::before { display: none; }
  .matrix a.matrix-sort {
    background: none !important;
    color: inherit !important;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    filter: none;
  }
  .matrix a.matrix-sort::after { display: none; }
  .matrix {
    overflow: visible;
  }
  .matrix th.matrix-name,
  .matrix td.matrix-name,
  .matrix th.matrix-inst-code,
  .matrix td.matrix-inst-code,
  .matrix th.matrix-inst-name,
  .matrix td.matrix-inst-name {
    position: static;
    left: auto;
    box-shadow: none;
  }
}

@media (min-width: 768px) {
  body.dash-fill {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  body.dash-fill .wrap {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-bottom: 0.7rem;
  }
  body.nav-left.dash-fill .wrap {
    height: 100%;
    overflow: hidden;
  }
  body.dash-fill .card#bladmuziek {
    flex: 0 1 auto;
    max-height: min(30vh, 18rem);
    overflow: auto;
  }
  body.dash-fill .card.dash-agenda {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 12rem;
    margin-bottom: 0;
    overflow: hidden;
  }
  body.dash-fill .card.dash-agenda > h2 {
    flex-shrink: 0;
  }
  body.dash-fill .dash-agenda-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }
  body.dash-fill .dash-agenda-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--white);
  }
  body.dash-fill .dash-agenda-foot {
    flex-shrink: 0;
    margin: 0.7rem 0 0;
  }
}
@media (max-width: 1024px) {
  body.dash-fill .card.dash-agenda {
    overflow: hidden;
  }
}

/* ---------- Smoelenboek & pasfoto ---------- */
.pasfoto-edit { display: flex; gap: 1.2rem; align-items: flex-start; flex-wrap: wrap; }
.pasfoto-frame,
.smoel-photo {
  width: 140px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: #e8eef5;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pasfoto-frame img,
.smoel-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pasfoto-initials {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--navy-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.smoel-filter-form { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.smoel-filter-form > div { flex: 1 1 220px; }
.smoel-filters .muted { margin: 0.6rem 0 0; }
.smoel-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.smoel-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}
.smoel-card[hidden] { display: none; }
.smoel-card .smoel-photo { width: 100%; max-width: 160px; margin-bottom: 0.3rem; }
.smoel-name { font-weight: 600; color: var(--ink); }
.smoel-inst { font-size: 0.92rem; color: var(--navy-2); }
.smoel-edit { font-size: 0.85rem; margin-top: auto; }

/* ---------- Dashboard (begroeting, snelkoppelingen, aanwezigheid, nieuws) ---------- */
.dash-hello { margin: 0.4rem 0 1.2rem; }
.dash-hello h1 { margin: 0 0 0.2rem; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.dash-hello p { margin: 0; }

.dash-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.dash-tile {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.06);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.dash-tile:hover,
.dash-tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 39, 68, 0.12);
  border-left-color: var(--navy);
}
.dash-tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-tile-text { display: flex; flex-direction: column; line-height: 1.3; }
.dash-tile-text strong { font-size: 1.08rem; color: var(--navy); }
.dash-tile-text span { font-size: 0.9rem; color: var(--muted); }

.dash-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.dash-section-head h2 { margin: 0; }
.dash-section-head a { font-size: 0.92rem; white-space: nowrap; }

.dash-next-list { list-style: none; margin: 0; padding: 0; }
.dash-next-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.dash-next-item:first-child { border-top: 0; }
.dash-next-item.is-priority .dash-date { background: var(--agenda-priority, #ffcc66); color: var(--ink); }
.dash-date {
  width: 58px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 0.35rem 0;
  line-height: 1.1;
}
.dash-date-day { display: block; font-size: 1.4rem; font-weight: 700; }
.dash-date-mon { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.dash-next-title { font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.dash-next-title:hover { text-decoration: underline; }
.dash-next-action { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; text-align: right; }
.dash-rsvp { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; margin: 0; }
.dash-status {
  display: inline-block;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
}
.dash-status.is-present { background: #e3f3ea; color: var(--ok); }
.dash-status.is-away { background: #fbe7ec; color: var(--bad); }
.dash-status.is-maybe { background: #fdf1e0; color: var(--warn); }
.dash-change { font-size: 0.85rem; }
.dash-foot { margin: 0.6rem 0 0; font-size: 0.88rem; }
@media (max-width: 640px) {
  .dash-next-item { grid-template-columns: auto 1fr; }
  .dash-next-action { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
  .dash-rsvp { justify-content: flex-start; }
}

.dash-news { margin-top: 1.4rem; }
.dash-news-item { padding: 1rem 1.2rem; }
.dash-news-item.is-latest { border-left: 5px solid var(--gold); }
.dash-news-item h3 { margin: 0.15rem 0 0.4rem; font-size: 1.2rem; }
.dash-news-item h3 a { color: var(--navy); text-decoration: none; }
.dash-news-item h3 a:hover { text-decoration: underline; }
.dash-news-meta { margin: 0; font-size: 0.85rem; color: var(--muted); }
.dash-news-new { background: var(--gold); color: var(--navy); margin-right: 0.4rem; }
.dash-news-excerpt { margin: 0 0 0.4rem; line-height: 1.5; }
.dash-news-more { margin: 0; font-size: 0.92rem; }

/* =====================================================================
   Huisstijl-laag (afgeleid van harmonie-venlo.nl)
   Kleuren komen uit Instellingen: --navy = hoofdkleur, --gold = accent,
   --heading = kopkleur. Typografie: Montserrat (koppen) + Open Sans.
   ===================================================================== */
:root {
  --cream: #f8f7f2;
  --ink: #2b2b2b;
  --muted: #6b6b6b;
  --line: #e4e1d8;
  --white: #ffffff;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}
body.has-logo::before { opacity: 0.06; }
body.has-logo .card { background: rgba(255, 255, 255, 0.97); }

h1, h2, h3, .brand {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--heading);
}
h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.15; margin: 0.2rem 0 1rem; }
h2 { font-size: 1.35rem; line-height: 1.25; }
h3 { font-size: 1.1rem; }
.card h3, .card h3 a { color: var(--ink); }
a { color: var(--navy); }
a:hover { color: var(--heading); }

/* Bovenste kopjes in kapitalen, zoals op de website */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--heading);
  margin: 0 0 0.35rem;
}

/* Navigatie */
.topbar { background: var(--navy); box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12); }
.brand, .brand-name { color: #fff; font-weight: 700; }
.brand-logo { background: transparent; padding: 0; border-radius: 50%; }
.nav a { color: #fff; font-weight: 600; }
.nav a:hover, .nav a.active { color: var(--gold); }
.nav-drop-menu { background: var(--navy); border-color: rgba(255, 255, 255, 0.15); }
body.nav-left .brand,
body.nav-left .userbox { border-color: rgba(255, 255, 255, 0.18); }
body.nav-left .nav a {
  border-radius: 0;
  border-left: 3px solid transparent;
  padding-left: 0.65rem;
}
body.nav-left .nav a:hover,
body.nav-left .nav a.active {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--gold);
  color: #fff;
}
.userbox { color: rgba(255, 255, 255, 0.8); }

/* Kaarten */
.card {
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.4rem;
}
.card > h2:first-child { margin-top: 0; }

/* Knoppen: strak, kapitalen, met witte binnenrand zoals de website */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 2px;
  letter-spacing: 0.06em;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:not(.small) { text-transform: uppercase; font-size: 0.82rem; padding: 0.7rem 1.15rem; }
.btn.small { letter-spacing: 0.03em; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { box-shadow: none; border-color: var(--line); }

/* Formulieren */
label { color: var(--ink); font-weight: 600; font-size: 0.82rem; }
input, select, textarea { border-radius: var(--radius); border-color: #d6d2c6; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 18%, transparent);
}

/* Tabellen */
th { color: var(--heading); letter-spacing: 0.1em; font-size: 0.74rem; }
th, td { border-bottom-color: var(--line); }

/* Meldingen */
.flash { border-radius: var(--radius); border-left: 4px solid currentColor; }

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
}

/* Dashboard en smoelenboek in de huisstijl */
.dash-hello h1 { color: var(--heading); }
.dash-tile { border: 0; border-left: 5px solid var(--gold); border-radius: var(--radius); }
.dash-tile:hover, .dash-tile:focus-visible { border-left-color: var(--heading); }
.dash-tile-icon { border-radius: 50%; background: var(--navy); }
.dash-tile-text strong { font-family: var(--font-head); color: var(--ink); }
.dash-date { background: var(--heading); border-radius: 2px; }
.dash-next-title { color: var(--ink); font-family: var(--font-head); font-weight: 600; }
.dash-news-item h3 a { color: var(--heading); }
.dash-news-new { background: var(--gold); color: #fff; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.dash-news-item.is-latest { border-left-color: var(--gold); }
.smoel-card { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--heading); }
.smoel-name { font-family: var(--font-head); }
.smoel-photo, .pasfoto-frame { border-radius: 2px; border: 0; }
.pasfoto-initials { font-family: var(--font-head); color: var(--heading); }
.smoel-photo, .pasfoto-frame { background: #f1ede3; }

/* ---------- Gedempte variant (rustiger) ----------
   Titels in de hoofdkleur; de kopkleur (rood) alleen voor kleine kopjes. */
h1, h2, h3, .brand { color: var(--navy); }
.dash-hello h1 { color: var(--navy); }
.eyebrow { color: var(--heading); }
th { color: var(--muted); letter-spacing: 0.06em; }
a:hover { color: var(--navy); }
.btn {
  text-transform: none !important;
  letter-spacing: 0.01em;
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: none;
}
.btn:not(.small) { font-size: 0.92rem; padding: 0.6rem 1.05rem; }
.btn:hover { transform: none; filter: brightness(1.1); }
.dash-date { background: var(--navy); }
.dash-tile:hover, .dash-tile:focus-visible { border-left-color: var(--navy); }
.dash-news-item h3 a { color: var(--navy); }
.dash-news-new { text-transform: none; letter-spacing: 0.02em; }
.smoel-card { border-top: 3px solid var(--gold); }
.pasfoto-initials { color: var(--navy); }
