/* ── Design tokens ──────────────────────────────────────────────────────────── */
:root {
  --wine:        #563435;
  --wine-dark:   #3d2425;
  --wine-hover:  #6b4243;
  --gold:        #A0824E;
  --beige:       #F5EDE6;
  --beige-dark:  #E0CFC0;
  --warm-white:  #FAF5EF;
  --border:      #E0CFC0;
  --text:        #1a1209;
  --text-muted:  #7a6655;
  --sidebar-w:   210px;
  --radius:      8px;
}

/* ── Reset & base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--warm-white);
  display: flex;
  min-height: 100vh;
}
a { color: inherit; }
button, input, select, textarea {
  font: inherit;
}

body.auth-body {
  display: block;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(160,130,78,.18), transparent 36%),
    linear-gradient(180deg, #faf5ef 0%, #f6ebe0 100%);
}

/* ── Auth screen ─────────────────────────────────────────────────────────────── */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-page {
  width: 100%;
  max-width: 440px;
}
.auth-card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(61,36,37,.12);
  padding: 30px 28px;
  backdrop-filter: blur(8px);
}
.auth-form-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
}
.auth-title {
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
  color: var(--wine-dark);
}
.auth-copy {
  margin: 0;
  color: var(--text-muted);
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.auth-input {
  width: 100%;
}
.auth-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  color: #991b1b;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
}
.auth-submit {
  width: 100%;
}

/* ── Sidebar ────────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--wine);
  color: var(--beige);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 100;
}
.sidebar-logo {
  padding: 18px 16px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(245,237,230,.15);
}
.sidebar-app-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: .9;
}
.sidebar-nav {
  padding: 8px 0;
  flex: 1;
}
/* Groups carry the separation a divider used to, and disappear with their items when a
   role cannot see any of them — see NAV in layout.tsx. */
.nav-groep + .nav-groep { margin-top: 14px; }
.nav-groep-label {
  padding: 0 18px 4px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(245,237,230,.38);
}
.nav-item {
  display: block;
  padding: 6px 18px;
  color: rgba(245,237,230,.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background .12s, color .12s;
}
.nav-item:hover {
  background: rgba(255,255,255,.08);
  color: var(--beige);
}
.nav-item.active {
  background: rgba(255,255,255,.13);
  color: #fff;
  border-left-color: var(--gold);
}
.sidebar-footer {
  padding: 12px 18px;
  font-size: 10px;
  opacity: .35;
  border-top: 1px solid rgba(245,237,230,.1);
  word-break: break-all;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-role {
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sidebar-logout { margin: 0; }
.sidebar-logout-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(245,237,230,.8);
  font-size: 11px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.sidebar-logout-btn:hover { color: #fff; }

/* ── Content ────────────────────────────────────────────────────────────────── */
.content {
  margin-left: var(--sidebar-w);
  padding: 36px 40px;
  flex: 1;
  max-width: calc(1200px + var(--sidebar-w));
}

/* ── Page chrome ────────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.page-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--wine-dark);
}
.page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.page-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Kalender ─────────────────────────────────────────────────────────────── */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.calendar-header-day {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  padding: 4px 6px;
}
.calendar-cell {
  min-height: 150px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calendar-cell-muted { opacity: .45; }
.calendar-cell-today {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(160,130,78,.12);
}
.calendar-cell-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calendar-date-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--wine-dark);
}
.calendar-cell-events {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calendar-event-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 6px 8px;
  background: #fffdfb;
  transition: box-shadow .12s, border-color .12s;
}
.calendar-event-card:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 10px rgba(61,36,37,.08);
}
.calendar-event-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}
.calendar-event-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.calendar-event-ruimte {
  font-size: 10px;
  color: var(--text-muted);
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 5px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.calendar-event-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calendar-event-pax {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
.status-border-concept { border-left-color: #94a3b8; }
.status-border-menus-verstuurd { border-left-color: #14b8a6; }
.status-border-in-optie { border-left-color: #3b82f6; }
.status-border-bevestigd { border-left-color: #22c55e; }
.status-border-uitgevoerd { border-left-color: #a855f7; }
.status-border-geannuleerd { border-left-color: #ef4444; }

@media (max-width: 1100px) {
  .calendar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .calendar-grid { grid-template-columns: 1fr; }
  .calendar-cell { min-height: 110px; }
}

/* ── Section title ───────────────────────────────────────────────────────────── */
.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* ── Filter bar ─────────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-input { max-width: 160px; }
.filter-select { max-width: 200px; }

/* ── Table ──────────────────────────────────────────────────────────────────── */
.table-wrap {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--warm-white);
  padding: 9px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--beige-dark);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fdf8f4; }
.td-date  { white-space: nowrap; font-weight: 600; }
.td-time  { white-space: nowrap; }
.td-pax   { text-align: center; font-variant-numeric: tabular-nums; }
.td-muted { color: var(--text-muted); }
.td-actions { white-space: nowrap; text-align: right; }
.td-actions .btn + .btn { margin-left: 4px; }
.cell-naam { font-weight: 600; }
.cell-sub  { font-size: 12px; color: var(--text-muted); }

/* ── Status pills ───────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.pill-xs { font-size: 10px; padding: 1px 7px; }
.pill-concept               { background: #e5e7eb; color: #374151; }
.pill-menus-verstuurd { background: #ccfbf1; color: #115e59; }
.pill-in-optie    { background: #dbeafe; color: #1e40af; }
.pill-bevestigd             { background: #d1fae5; color: #065f46; }
.pill-uitgevoerd            { background: #f3f4f6; color: #6b7280; }
.pill-geannuleerd           { background: #fee2e2; color: #991b1b; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 15px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  gap: 5px;
  transition: background .12s, border-color .12s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}
.btn-primary:hover { background: var(--wine-hover); border-color: var(--wine-hover); }
.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--warm-white); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--warm-white); color: var(--text); }
.btn-danger {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
  margin-left: auto;
}
.btn-danger:hover { background: #fecaca; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

/* ── Danger zone (form-level destructive action) ───────────────────────────── */
.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  background: #fff5f5;
  border-radius: 10px;
}
.danger-zone-info { display: flex; flex-direction: column; gap: 2px; }
.danger-zone-info strong { color: #991b1b; font-size: 13px; }
.danger-zone-info span { color: #7f1d1d; font-size: 12px; opacity: .85; }
.danger-zone form { margin-left: auto; }

/* ── Forms ──────────────────────────────────────────────────────────────────── */
.event-form { max-width: 860px; }
.form-section {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.92));
  border: 1px solid rgba(224,207,192,.9);
  border-radius: 16px;
  padding: 22px 24px 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(61,36,37,.04);
}
.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.form-group {
  display: flex;
  flex-direction: column;
  min-width: 120px;
  margin-bottom: 14px;
}
.form-label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.label-optional { font-weight: 400; opacity: .5; }
.accent-label  { color: #b91c1c; }
.form-input,
.form-select,
.form-textarea {
  padding: 10px 12px;
  border: 1px solid rgba(224,207,192,.95);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(160,130,78,.12);
}
.form-textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
}
.link-sm {
  font-size: 12px;
  color: var(--gold);
  text-decoration: none;
}
.link-sm:hover { text-decoration: underline; }

/* ── SunEditor v3 styling ───────────────────────────────────────────── */
.editor-group { gap: 8px; }
.suneditor-wrapper { position: relative; }
.sun-editor {
  border: 1px solid rgba(224,207,192,.95) !important;
  border-radius: 10px !important;
  background: #fff !important;
  overflow: hidden !important;
}
.sun-editor .se-toolbar {
  border-bottom: 1px solid rgba(224,207,192,.95) !important;
  border-radius: 10px 10px 0 0 !important;
  background: #faf8f5 !important;
}
.sun-editor .se-toolbar button {
  font-size: 13px !important;
  color: var(--wine-dark) !important;
}
.sun-editor .se-toolbar button:hover {
  background: rgba(160,130,78,.08) !important;
}
/* v3: editable area class is .sun-editor-editable */
.sun-editor-editable {
  padding: 10px 12px !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: var(--text) !important;
}
/* Restore list styles zeroed by global * { margin:0; padding:0 } */
.sun-editor-editable ul,
.sun-editor-editable ol {
  padding-left: 1.6em !important;
  margin: 4px 0 !important;
}
.sun-editor-editable ul { list-style: disc !important; }
.sun-editor-editable ol { list-style: decimal !important; }
.sun-editor-editable li { display: list-item !important; }



/* ── Guest typeahead ────────────────────────────────────────────────────────── */
.typeahead-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  z-index: 200;
  min-width: 300px;
  max-height: 280px;
  overflow-y: auto;
}
.typeahead-dropdown:empty { display: none; }
/* Make parent relative so dropdown positions correctly */
.form-group:has(#guest-search) { position: relative; }
.typeahead-list { padding: 4px 0; }
.typeahead-item {
  display: flex;
  flex-direction: column;
  padding: 8px 14px;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  gap: 1px;
}
.typeahead-item:hover { background: var(--warm-white); }
.typeahead-naam { font-weight: 600; font-size: 13px; }
.typeahead-meta { font-size: 11px; color: var(--text-muted); }
.typeahead-empty { padding: 12px 14px; color: var(--text-muted); font-size: 13px; }

.guest-selected-card {
  background: linear-gradient(180deg, rgba(255,252,248,.95), rgba(250,245,239,.98));
  border: 1px solid rgba(224,207,192,.95);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 10px;
  display: grid;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(61,36,37,.05);
}
.guest-selected-card.hidden { display: none; }
.guest-card-naam { font-weight: 800; font-size: 16px; color: var(--wine-dark); }
.guest-card-sub  { font-size: 12px; color: var(--text-muted); }

/* ── Empty state ────────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state p { margin: 0 0 16px; font-size: 15px; }
.text-muted { color: var(--text-muted); }

/* ── Home layout ────────────────────────────────────────────────────────────── */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: start;
}
.home-main {}
.home-sidebar {}

.event-cards { display: flex; flex-direction: column; gap: 10px; }
.event-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-decoration: none;
  transition: border-color .12s, box-shadow .12s;
}
.event-card:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(86,52,53,.08);
}
.event-card-time {
  font-size: 15px;
  font-weight: 700;
  color: var(--wine);
  min-width: 100px;
  font-variant-numeric: tabular-nums;
}
.event-card-body { flex: 1; }
.event-card-naam { font-weight: 700; font-size: 15px; }
.event-card-org  { font-weight: 400; color: var(--text-muted); }
.event-card-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.event-card-status { flex-shrink: 0; }

.upcoming-list { display: flex; flex-direction: column; gap: 12px; }
.upcoming-day {}
.upcoming-datum {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.upcoming-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.upcoming-item:hover .upcoming-naam { color: var(--wine); }
.upcoming-time { font-size: 12px; color: var(--text-muted); min-width: 40px; }
.upcoming-naam { font-size: 13px; flex: 1; }

/* ── Guest detail layout ────────────────────────────────────────────────────── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.event-history { display: flex; flex-direction: column; gap: 4px; }
.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 13px;
}
.history-item:hover { background: var(--warm-white); }
.history-datum { font-weight: 600; min-width: 110px; }
.history-detail { flex: 1; color: var(--text-muted); font-size: 12px; }

/* ── Dashboards ─────────────────────────────────────────────────────────────── */
.dashboard-page { padding: 0; background: linear-gradient(180deg, #fbf7f2 0%, #f7efe6 100%); }
.dashboard-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(4px);
}
.dashboard-header-copy { flex: 1; }
.dashboard-title { font-size: 20px; font-weight: 800; margin: 0; }
.dashboard-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.dashboard-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(160,130,78,.18);
}
.dashboard-metric-value { font-size: 14px; font-weight: 700; color: var(--wine-dark); }
.dashboard-metric-label { font-size: 11px; font-weight: 600; color: var(--text-muted); }

.dashboard-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.dash-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
}
.dash-row:last-child { border-bottom: none; }
.dash-done-bar {
  padding: 10px 32px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.3);
}

.dash-tijd {
  font-size: 16px;
  font-weight: 800;
  min-width: 96px;
  font-variant-numeric: tabular-nums;
  color: var(--wine);
  padding-top: 2px;
}
.dash-body { flex: 1; min-width: 0; }
.dash-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.dash-naam { font-size: 16px; font-weight: 800; line-height: 1.2; }
.dash-meta { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.dash-chipline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(160,130,78,.1);
  color: var(--wine-dark);
  font-size: 11px;
  font-weight: 700;
}
.dash-chip-link { text-decoration: none; }
.dash-chip-warn { background: #fef2f2; color: #7f1d1d; }
.dash-updated {
  padding: 6px 32px;
  font-size: 11px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.4);
}
.dash-notes { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.dash-note {
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(255,255,255,.65);
  color: var(--text);
  font-size: 12px;
}
.dash-note-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.dash-note-warn { background: #fef2f2; color: #7f1d1d; }
.dash-note-warn .dash-note-label { color: #b91c1c; }
.dash-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 110px;
  padding-top: 2px;
}
.dash-status-form { display: inline-flex; }
.dashboard-empty {
  padding: 48px 32px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .content { padding: 20px; margin-left: 0; }
  .home-layout, .detail-layout { grid-template-columns: 1fr; }
}

/* ── Fullscreen ──────────────────────────────────────────────────────────────── */
:fullscreen .sidebar,
:-webkit-full-screen .sidebar {
  display: none !important;
}
:fullscreen .content,
:-webkit-full-screen .content {
  margin-left: 0 !important;
  max-width: 100% !important;
}

/* ── Checklist print view ───────────────────────────────────────────────────── */
.checklist-print { max-width: 780px; font-family: Arial, sans-serif; font-size: 13px; }

/* Header */
.cl-header {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 6px;
}
.cl-header-text { flex: 1; }
.cl-title { font-size: 22px; font-weight: 700; margin: 0; color: var(--wine-dark); }
.cl-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.cl-intern-label {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  padding-bottom: 4px;
  flex-shrink: 0;
}
.cl-title-rule {
  border: none;
  border-top: 2.5px solid var(--wine);
  margin: 10px 0 18px;
}

/* Sections */
.cl-section { margin-bottom: 14px; }
.cl-section-header {
  background: var(--wine);
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 2px 2px 0 0;
}
.cl-section-body {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 3px 3px;
  padding: 12px 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cl-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cl-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}
.cl-field:last-child { margin-bottom: 0; }
.cl-field-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: .04em;
}
.cl-field-value { font-size: 12.5px; color: var(--text); }
.cl-field-value ul, .cl-field-value ol { padding-left: 1.6em; margin: 3px 0; }
.cl-field-value ul { list-style: disc; }
.cl-field-value ol { list-style: decimal; }
.cl-field-value li { display: list-item; }
.cl-empty { font-size: 12px; color: var(--text-muted); margin: 0; font-style: italic; }

/* Allergy */
.cl-allergy-box {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-top: 2px solid #ef4444;
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #7f1d1d;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 4px;
}
.cl-allergy-icon { flex-shrink: 0; font-size: 13px; }

/* Warning */
.cl-warning-box {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #7f1d1d;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.cl-actions { margin-top: 20px; display: flex; gap: 10px; }

/* ── Print media ────────────────────────────────────────────────────────────── */
@media print {
  .sidebar, .cl-actions, .no-print, .page-actions { display: none !important; }
  .content { margin-left: 0 !important; padding: 0 !important; }
  body { padding: 0 !important; margin: 0 !important; }
  .checklist-print { max-width: 100%; }
  .cl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
    margin-bottom: 12px;
  }
  .cl-grid .cl-section { margin-bottom: 0; }
  .cl-section-header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cl-allergy-box, .cl-warning-box { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cl-section { break-inside: avoid; page-break-inside: avoid; margin-bottom: 10px; }
  .cl-section-header { break-after: avoid; page-break-after: avoid; }
  /* Per-page margins ensure padding on EVERY printed page, not just page 1 */
  @page { margin: 0.8cm 0.9cm; size: A4; }
}

/* ── Voorstel builder ───────────────────────────────────────────────────────── */
.voorstel-form { max-width: 900px; }
.voorstel-intro { width: 100%; min-height: 140px; }
.vb-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.voorstel-block {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.vb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.vb-title { flex: 1; font-weight: 600; }
.vb-bullets { width: 100%; }
.vb-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin-top: auto;
  padding-bottom: 7px;
}
.voorstel-hint {
  color: var(--text-muted);
  font-size: 13px;
  margin: 10px 0 0;
  font-style: italic;
}

/* ── Timing rondes (timetable editor) ─────────────────────────────────── */
.timing-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.timing-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.timing-row .timing-tijd {
  max-width: 110px;
  flex: 0 0 110px;
  font-variant-numeric: tabular-nums;
}
.timing-row .timing-oms { flex: 1; }
.timing-actions { margin-top: 8px; }

/* ── Drankfacturatie (checkbox row) ───────────────────────────────────── */
.checkbox-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 6px 0 2px;
}
.checkbox-row .vb-checkbox-label {
  margin-top: 0;
  padding-bottom: 0;
}

/* ── Pax range input ───────────────────────────────────────────────────── */
.pax-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pax-input { width: 80px !important; flex: none; }
.pax-sep { color: var(--text-muted); font-weight: 600; font-size: 15px; }

/* ── Timing as table in checklist ─────────────────────────────────────── */
.cl-field-block { display: block; }
.cl-field-block .cl-field-label {
  display: block;
  margin-bottom: 4px;
}
.cl-timing-table {
  width: auto;
  min-width: 220px;
  border-collapse: collapse;
  margin-top: 2px;
}
.cl-timing-table tr + tr td {
  border-top: 1px dashed rgba(160,130,78,.20);
}
.cl-timing-table td {
  padding: 4px 10px 4px 0;
  font-size: 12.5px;
  vertical-align: top;
}
.cl-timing-table .cl-timing-tijd {
  width: 64px;
  font-variant-numeric: tabular-nums;
  color: var(--wine-dark);
  font-weight: 600;
  white-space: nowrap;
}
.cl-timing-table .cl-timing-oms {
  color: var(--text);
}
/* Aanslag table: item left, price right-aligned */
.cl-aanslag-table { min-width: 280px; }
.cl-aanslag-table .cl-aanslag-item { color: var(--text); padding-right: 18px; }
.cl-aanslag-table .cl-aanslag-prijs {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--wine-dark);
  font-weight: 600;
  white-space: nowrap;
  padding-right: 0;
}

/* Aanslag editor: € prefix inside the price input */
.aanslag-prijs-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 130px;
}
.aanslag-euro {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  font-weight: 600;
  pointer-events: none;
  font-size: 13px;
}
.aanslag-prijs-wrap .aanslag-prijs {
  padding-left: 22px !important;
  width: 100%;
  text-align: right;
}

/* Prices table (builder) */
.prices-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 4px;
}
.prices-table thead th {
  background: var(--warm-white);
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.prices-table tbody td { border-bottom: 1px solid var(--beige-dark); }
.prices-table tbody tr:last-child td { border-bottom: none; }
.prices-foot-label {
  text-align: right;
  padding: 7px 10px;
  font-size: 13px;
  border-top: 1px solid var(--border);
}
.prices-foot-amount {
  padding: 7px 10px;
  font-variant-numeric: tabular-nums;
  border-top: 1px solid var(--border);
  white-space: nowrap;
}
.prices-foot-muted { color: var(--text-muted); }
.prices-foot-total { font-weight: 700; font-size: 15px; color: var(--wine-dark); }

/* ── Voorstel print (branded document) ─────────────────────────────────────── */
body.vp-body {
  display: block;
  background: #EDE0D4;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* Screen: white card on warm background */
.vp-doc-wrap {
  max-width: 820px;
  margin: 28px auto 56px;
  background: white;
  box-shadow: 0 4px 24px rgba(0,0,0,.14);
}
.vp-doc-inner {
  padding: 44px 52px 52px;
}

/* Toolbar above card */
.vp-toolbar {
  max-width: 820px;
  margin: 0 auto 12px;
  display: flex;
  gap: 10px;
}

/* Header row: logo | VOORSTEL badge */
.vp-doc-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.vp-proposal-badge { text-align: right; }
.vp-badge-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--wine);
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 8px;
}
.vp-meta-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 12px;
  text-align: left;
}
.vp-meta-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.vp-meta-val { font-size: 12px; color: var(--text); }

/* Gold rule */
.vp-gold-rule {
  border: none;
  border-top: 2px solid var(--gold);
  margin-bottom: 24px;
}

/* Two-column info */
.vp-info-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.vp-info-block h2 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  margin: 0 0 12px;
}
.vp-field-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 8px;
  font-size: 12.5px;
}
.vp-field-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: .03em;
}
.vp-field-val { color: var(--text); }

/* Sections */
.vp-section { margin-bottom: 28px; }
.vp-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--wine);
  border-bottom: 2px solid var(--beige);
  padding-bottom: 5px;
  margin: 0 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Intro */
.vp-intro {
  border-left: 3px solid var(--gold);
  background: var(--warm-white);
  padding: 12px 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
}

/* Blocks */
.vp-block {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
  break-inside: avoid;
}
.vp-block-head {
  background: var(--warm-white);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--wine);
  border-bottom: 1px solid var(--border);
}
.vp-block-body { padding: 8px 10px 6px; font-size: 12.5px; line-height: 1.55; }
.vp-block-body ul { list-style: disc; padding-left: 1.4em; margin: 3px 0; }
.vp-block-body ol { list-style: decimal; padding-left: 1.4em; margin: 3px 0; }
.vp-block-body li { display: list-item; }
.vp-block-body p { margin: 2px 0; }

/* Price table */
.vp-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.vp-price-table th {
  background: var(--wine);
  color: white;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 10px;
  text-align: left;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.vp-price-table th:nth-child(2),
.vp-price-table th:nth-child(3) { text-align: center; }
.vp-price-table th:nth-child(4) { text-align: right; }
.vp-price-table tbody td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.vp-price-table tbody tr:last-child td { border-bottom: none; }
.vp-row-even { background: var(--warm-white); }
.vp-price-table tfoot td {
  padding: 7px 10px;
  font-size: 12.5px;
}
.vp-foot-label { color: var(--text-muted); }
.vp-foot-amt { text-align: right; padding-right: 12px !important; font-variant-numeric: tabular-nums; }
.vp-foot-sub td, .vp-foot-btw td { color: var(--text-muted); font-size: 11.5px; }
.vp-foot-total td {
  border-top: 2px solid var(--wine);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--wine);
}
.vp-foot-incl { font-size: 10px; font-weight: 400; color: var(--text-muted); }

/* Notes / terms */
.vp-notes-text {
  font-size: 13px;
  color: var(--text);
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.6;
}
.vp-terms-text {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
}

/* Document footer: akkoord | contact */
.vp-doc-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.vp-akkoord-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.vp-akkoord-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 14px;
}
.vp-akkoord-link {
  display: inline-block;
  background: var(--wine);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: .03em;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.vp-contact-block {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
}
.vp-cb-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--wine);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.vp-cb-role {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gold);
  margin-bottom: 8px;
}
.vp-cb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #444;
  margin-bottom: 4px;
}
.vp-cb-icon { width: 14px; text-align: center; font-size: 11px; color: var(--gold); flex-shrink: 0; }

/* Print adjustments for voorstel */
@media print {
  body.vp-body { background: white; padding: 0 !important; margin: 0 !important; }
  .vp-doc-wrap { box-shadow: none; margin: 0; }
  .vp-doc-inner { padding: 0; }
  .vp-block { break-inside: avoid; page-break-inside: avoid; }
  .vp-section { break-inside: avoid; page-break-inside: avoid; }
  .vp-price-table { break-inside: avoid; page-break-inside: avoid; }
  .vp-doc-footer { break-inside: avoid; page-break-inside: avoid; }
  .vp-contact-block { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* Per-page margins so every printed page gets padding, not just page 1 */
  @page { margin: 0.8cm 0.9cm; size: A4; }
}

/* ── Staff meals: Hub overview ──────────────────────────────────────────────── */
/* One row per day in the app's standard table (see Events/Gasten/Weeklijst) — seven
   cards that mostly read "Niemand" wasted the screen for what a table shows at a glance. */
.meal-row-today { background: #fffdf7; }
.meal-day-cell { white-space: nowrap; }
.meal-day-name { font-weight: 700; color: var(--wine-dark); }
.meal-today-tag {
  margin-left: 8px;
  font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: var(--gold); color: #fff; border-radius: 20px; padding: 2px 7px;
  vertical-align: 1px;
}
.meal-count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 7px;
  background: var(--wine); color: #fff;
  border-radius: 20px; font-size: 12px; font-weight: 700;
}
.meal-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.meal-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 7px 4px 11px;
  font-size: 12.5px;
  line-height: 1.3;
}
.meal-chip-naam { font-weight: 600; }
.meal-chip-dieet {
  font-size: 10.5px;
  font-weight: 700;
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  padding: 0 7px;
  white-space: nowrap;
}
.meal-dieet { display: block; font-size: 11px; font-weight: 700; color: #7f1d1d; }

/* Dietary callout — same red warning idiom as the checklist's allergy box, because a
   badge beside a name is easy to skim past when you are actually cooking. */
.meal-diet-box { margin-top: 8px; font-size: 12px; }
.meal-diet-title {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 3px;
}
.meal-diet-line { line-height: 1.45; }
/* On paper, the name itself is flagged too, so the list and the callout agree at a glance. */
.cl-name-diet { color: #7f1d1d; }
/* A no-show stays listed — the portion was still cooked — but reads as struck through. */
.meal-chip-noshow { text-decoration: line-through; opacity: .55; border-color: #fca5a5; }
.meal-chip-form { display: contents; }
.meal-chip-btn {
  flex: none;
  border: 0;
  background: rgba(160,130,78,.14);
  color: var(--text-muted);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  line-height: 1;
  font-size: 10px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.meal-chip-btn:hover { background: #fca5a5; color: #991b1b; }

/* Employee admin: a CSS grid standing in for a table, because each row needs two
   independent <form>s (save, delete) and a <form> cannot be a table row. One grid with
   one column-track definition, shared by the header cells AND every row's cells, is what
   actually guarantees they line up — a <table> header next to a differently-configured
   grid inside a colspan'd cell never can, since the two layout systems size columns
   independently of one another. */
/* Kept from the employee admin: the "Actief" checkbox label, now on the edit form. */
.meal-actief {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
}
.meal-cancels-warn { color: #991b1b; font-weight: 700; }

/* Shared form feedback — a failed save and the note under a field. */
.form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  color: #991b1b;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 16px;
}
.form-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 5px 0 0;
}

/* ── Staff meals: print ─────────────────────────────────────────────────────── */
/* Reuses the checklist's own document chrome (.cl-header, .cl-title-rule, .cl-section)
   rather than a parallel set of rules, so every printed page in the Hub shares one
   look. .meal-print itself only sets the page width, same as .checklist-print. */
.meal-print { max-width: 780px; font-family: Arial, sans-serif; font-size: 13px; }
.cl-day-badge {
  background: rgba(255,255,255,.22);
  border-radius: 20px;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 700;
}
.cl-namelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.cl-namelist li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  font-size: 12.5px;
  color: var(--text);
}
.cl-namelist li + li { border-top: 1px dashed var(--border); }

/* ── Staff meals: the eten.* sign-up site ───────────────────────────────────── */
/* Phone-first and standalone: this host has no sidebar and no link back into the Hub.
   Borrows the auth screen's warm gradient + glass card language rather than the Hub's
   flat white — this is the one page most staff open daily, so it earns the same amount
   of polish as the login screen instead of looking like an unstyled admin form. */
.eten-body {
  /* The base rule sets `display: flex` for the Hub's sidebar layout. This page has no
     sidebar, and leaving it flex makes .eten-wrap a stretched flex item that clips its
     own top padding. .auth-body resets this for the same reason. */
  display: block;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(160,130,78,.18), transparent 36%),
    linear-gradient(180deg, #faf5ef 0%, #f6ebe0 100%);
}
.eten-wrap { max-width: 440px; margin: 0 auto; padding: 28px 16px 40px; }
.eten-brand { display: flex; justify-content: center; margin-bottom: 22px; opacity: .9; }
.eten-card {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(61,36,37,.12);
  padding: 26px 22px;
  backdrop-filter: blur(8px);
}
.eten-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.eten-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  margin: 0 0 4px;
}
.eten-title { font-size: 24px; line-height: 1.15; margin: 0; color: var(--wine-dark); }
.eten-sub { font-size: 15px; margin: 0 0 4px; color: var(--wine-dark); }
.eten-lead { color: var(--text-muted); font-size: 13px; margin: 6px 0 18px; }
.eten-error {
  background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5;
  border-radius: 8px; padding: 8px 12px; font-size: 13px; margin: 0 0 14px;
}
.eten-form { display: flex; flex-direction: column; gap: 12px; }
/* Wide-spaced and large: this gets typed on a phone, often with wet hands. A pill rather
   than a plain box, so it reads as "the one thing on this screen" rather than a form field. */
.eten-pin {
  font: inherit;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .5em;
  text-align: center;
  text-indent: .5em; /* re-centres the glyphs against the trailing letter-spacing gap */
  padding: 16px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  color: var(--wine-dark);
  box-shadow: inset 0 1px 3px rgba(61,36,37,.06);
}
.eten-pin:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(160,130,78,.18);
}
.eten-pin::placeholder { color: var(--border); letter-spacing: .5em; }
.eten-btn { padding: 13px; font-size: 15px; border-radius: 12px; font-weight: 700; }

.eten-weekswitch {
  display: flex;
  gap: 4px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  margin-top: 16px;
}
.eten-weektab {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
}
.eten-weektab-on { background: var(--wine); color: #fff; }
.eten-days { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
/* A day already gone stays visible for context but stops competing for attention. */
.eten-day-past { opacity: .5; }
.eten-day {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px 12px 18px;
  background: #fff;
  overflow: hidden;
}
/* A coloured edge reads faster than re-scanning each row's text: gold = aangemeld,
   quiet border = open and untouched, muted = gesloten. */
.eten-day-status {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--border);
}
.eten-day-on { border-color: var(--gold); background: #fffdf7; }
.eten-day-on .eten-day-status { background: var(--gold); }
.eten-day-today { box-shadow: 0 0 0 2px rgba(160,130,78,.14); }
.eten-day-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.eten-day-name {
  display: flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 14.5px; color: var(--wine-dark);
}
.eten-day-tag {
  font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: var(--gold); color: #fff; border-radius: 20px; padding: 1px 7px;
}
.eten-day-count { font-size: 12px; color: var(--text-muted); }
.eten-locked {
  flex: none; font-size: 11px; font-weight: 600; color: var(--text-muted);
  background: var(--warm-white); border-radius: 20px; padding: 5px 11px;
}
/* A pill button rather than the app's small secondary btn — this is the one action on
   the page and it is tapped with a thumb, so it gets a bigger, rounder target. */
.eten-toggle {
  flex: none;
  appearance: none;
  border: 1px solid var(--wine);
  background: var(--wine);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.eten-toggle-on { background: #fff; border-color: var(--border); color: var(--text-muted); }
.eten-toggle-warn { background: #fff; border-color: #fca5a5; color: #991b1b; }
.eten-cancel { margin-top: 20px; border-top: 1px dashed var(--border); padding-top: 16px; }
.eten-cancel-actions { display: flex; gap: 8px; margin-top: 12px; }

/* ── Staff meals: one-time PIN slip ─────────────────────────────────────────── */
.pin-slip { max-width: 420px; }
.pin-slip-card {
  background: #fff;
  border: 2px dashed var(--gold);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
}
.pin-slip-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #991b1b;
  margin: 0 0 14px;
}
.pin-slip-naam { font-size: 18px; margin: 0 0 10px; color: var(--wine-dark); }
.pin-slip-pin {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: .3em;
  font-variant-numeric: tabular-nums;
  color: var(--wine);
  padding: 10px 0;
}
.pin-slip-hint { font-size: 12px; color: var(--text-muted); margin: 10px 0 0; }
@media print {
  .pin-slip-card { border-style: solid; }
}

/* ── Dashboard: staff-meal ticker ───────────────────────────────────────────── */
/* Fixed along the bottom like a news crawl. The dashboard is a wall display glanced at
   from across the room, so this belongs in a constant, predictable place rather than in
   the scroll flow where it moves as the day's events change. */
.dash-meals {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 150;
  display: flex;
  align-items: stretch;
  background: var(--wine);
  color: var(--beige);
  box-shadow: 0 -6px 24px rgba(61,36,37,.22);
}
.dash-meals-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 0 16px;
  background: var(--wine-dark);
}
.dash-meals-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  white-space: nowrap;
}
.dash-meals-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 7px;
  background: var(--gold); color: #fff;
  border-radius: 20px; font-size: 12.5px; font-weight: 700;
}
/* The viewport for the crawl: the track inside is twice the content, so when it has
   moved exactly half its width the second copy sits where the first began and the loop
   is seamless. */
.dash-meals-track {
  flex: 1;
  overflow: hidden;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.dash-meals-names {
  display: flex;
  gap: 10px;
  width: max-content;
  padding-left: 16px;
  animation: dash-crawl var(--crawl, 40s) linear infinite;
}
@keyframes dash-crawl {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Few enough names to fit: scrolling them would be motion for its own sake. */
.dash-meals-static .dash-meals-names { animation: none; }
.dash-meals:hover .dash-meals-names { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .dash-meals-names { animation: none; flex-wrap: wrap; }
}
.dash-meal-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(245,237,230,.20);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.dash-meal-dieet {
  font-size: 10.5px; font-weight: 700;
  color: #fff; background: #b91c1c;
  border-radius: 10px; padding: 1px 7px;
}
/* Keeps the last event row clear of the fixed bar. */
.dashboard-page { padding-bottom: 64px; }

/* Change notification. Fixed to the corner so it is visible in fullscreen kiosk mode. */
.dash-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  background: var(--wine);
  color: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(61,36,37,.28);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.dash-toast-on { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .dash-toast { transition: none; }
}

/* Login fields on eten.*: the username sits above the PIN in one form. */
.eten-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-top: 2px;
}
.eten-user {
  font: inherit;
  font-size: 17px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--wine-dark);
  width: 100%;
}
.eten-user:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(160,130,78,.18);
}


/* ── Staff meals: printable sheet of new accounts ───────────────────────────── */
/* The only time these PINs are ever visible, so it is built to be printed and cut up. */
.pin-sheet-page { max-width: 780px; }
.pin-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.pin-sheet-card {
  border: 1px dashed var(--gold);
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
  break-inside: avoid;
}
.pin-sheet-naam {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--wine-dark);
}
.pin-sheet-rij { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pin-sheet-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.pin-sheet-user { font-size: 14px; font-weight: 600; }
.pin-sheet-pin {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  color: var(--wine);
}
.pin-sheet-hint { margin: 8px 0 0; font-size: 10.5px; color: var(--text-muted); }
@media print {
  .pin-sheet { grid-template-columns: repeat(2, 1fr); }
  .pin-sheet-card { border-style: solid; border-color: var(--border); }
}

/* ── Knowledge hub, staff portal ────────────────────────────────────────────── */
/* A reading surface, not the meal card. Wider measure, no white box boxing the text in,
   and edge-to-edge on a phone — this is read standing up in a kitchen, one-handed. */
.wiki-wrap {
  max-width: 720px;
  padding-left: 18px;
  padding-right: 18px;
}
.wiki-kop { margin-bottom: 22px; }
.portal-nav { margin-top: 14px; }

.wiki-zoek {
  width: 100%;
  margin-top: 12px;
  font: inherit;
  font-size: 16px; /* 16px or iOS zooms the page on focus */
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--wine-dark);
}
.wiki-zoek:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(160,130,78,.18);
}

.wiki-groep + .wiki-groep { margin-top: 26px; }
.wiki-cat {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--gold);
  margin: 0 0 8px;
}
/* A list of rules, not a stack of cards: less furniture per row means more titles on
   screen at once, which is what a wiki index is for. */
.wiki-lijst {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.wiki-link {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--wine-dark);
  text-decoration: none;
}
.wiki-link + .wiki-link { border-top: 1px solid var(--border); }
.wiki-link:hover, .wiki-link:focus-visible { background: var(--warm-white); }
.wiki-leeg { color: var(--text-muted); font-size: 14px; padding: 8px 2px; }

.eten-back {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

/* The article itself. Sits on the page rather than in a card — a document, not a widget. */
.wiki-artikel { padding-bottom: 20px; }
.wiki-titel {
  font-size: 27px;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--wine-dark);
}
.wiki-body {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
}
.wiki-body > *:first-child { margin-top: 0; }
.wiki-body h1,
.wiki-body h2,
.wiki-body h3,
.wiki-body h4 {
  line-height: 1.25;
  color: var(--wine-dark);
}
.wiki-body h1 { font-size: 21px; margin: 32px 0 10px; }
.wiki-body h2 { font-size: 18px; margin: 28px 0 8px; }
.wiki-body h3 { font-size: 16px; margin: 22px 0 6px; }
.wiki-body h4 {
  font-size: 14px;
  margin: 18px 0 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}
.wiki-body blockquote {
  margin: 0 0 14px;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--gold);
  color: var(--text-muted);
}
/* Uploaded photos: full width of the measure, never blown up past their own resolution. */
.wiki-body figure { margin: 18px 0; }
.wiki-body figcaption { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.wiki-body p { margin: 0 0 14px; }
.wiki-body ul, .wiki-body ol { padding-left: 1.3em; margin: 0 0 14px; }
.wiki-body li { margin-bottom: 5px; }
.wiki-body a { color: var(--gold); }
.wiki-body img { max-width: 100%; height: auto; border-radius: 8px; }
.wiki-body table { width: 100%; display: block; overflow-x: auto; }

/* PDFs are read in place. Tall enough to read a page without scrolling the frame into
   view first, and taller still on a phone where the viewport is the constraint. */
.wiki-bijlagen { margin-top: 26px; }
.wiki-doc + .wiki-doc { margin-top: 18px; }
.wiki-doc-naam {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.wiki-viewer {
  width: 100%;
  height: 72vh;
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 560px) {
  .wiki-wrap { padding-left: 12px; padding-right: 12px; }
  .wiki-titel { font-size: 23px; }
  .wiki-viewer { height: 64vh; min-height: 320px; }
}

/* ── Copy deterrents ────────────────────────────────────────────────────────────
   Worth being honest about what this is: friction, not protection. A rendered page is
   already on the reader's machine, so anyone willing to open devtools, disable
   JavaScript or photograph the screen still gets the text. What these do is stop a
   procedure being lifted by accident or on a whim — and the watermark, which is the only
   one that survives a screenshot, makes a leaked one traceable to whoever was signed in. */
.wiki-beschermd,
.wiki-viewer {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.wiki-beschermd { position: relative; }
.wiki-beschermd::after {
  content: attr(data-lezer);
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: rgba(86, 52, 53, 0.07);
  transform: rotate(-24deg);
  white-space: nowrap;
  overflow: hidden;
}
/* Printing the portal yields the notice, not the procedure. */
@media print {
  .wiki-beschermd .wiki-body,
  .wiki-viewer { display: none !important; }
  .wiki-beschermd::before {
    content: 'Niet voor verspreiding — lees mee op team.socialhospitality.party';
    display: block;
    padding: 40px 0;
    font-weight: 700;
  }
}
