/* Morris Regie: één hiërarchie voor dienstoverzicht, leden en bewerken. */
.morris-nav-end .nav-command {
  width: 44px;
  height: 44px;
  min-height: 44px;
  color: var(--ink2);
  border-radius: 10px;
}
.m-editor {
  width: min(680px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.m-editor[open] {
  display: flex;
  flex-direction: column;
  animation: m-feedback-in 160ms ease-out;
}
.m-editor::backdrop {
  background: rgba(10, 12, 16, 0.36);
  backdrop-filter: blur(3px);
}
.m-editor-head,
.m-editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--m-space-16);
  padding: var(--m-space-24);
  flex: none;
}
.m-editor-head {
  border-bottom: 1px solid var(--border-light);
}
.m-editor-head h2 {
  font:
    600 20px "Syne",
    sans-serif;
  margin: 0;
}
.m-editor-head .m-icon-button {
  width: 44px;
  height: 44px;
}
.m-editor-body {
  padding: var(--m-space-24);
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
  flex: 1;
}
.m-editor-foot {
  border-top: 1px solid var(--border-light);
  padding-bottom: max(var(--m-space-24), env(safe-area-inset-bottom));
  font-size: 12px;
}
body:has(.m-editor[open]) {
  overflow: hidden;
}
#loyalBeheer {
  display: flex;
  flex-direction: column;
  gap: var(--m-space-20);
}
.loyal-program {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--m-space-24);
  padding: var(--m-space-28);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.loyal-program::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--amber);
}
.loyal-program h2 {
  font:
    600 clamp(20px, 2.2vw, 28px) / 1.15 "Syne",
    sans-serif;
  letter-spacing: -0.035em;
  margin: var(--m-space-12) 0;
}
.loyal-program p {
  font-size: 12px;
  color: var(--ink3);
  margin: 0;
}
.loyal-program > .btn {
  flex: none;
}
.loyal-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--m-space-16);
}
.loyal-tier {
  padding: var(--m-space-20);
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
}
.loyal-tier > div {
  display: flex;
  align-items: center;
  gap: var(--m-space-12);
}
.loyal-tier .badge {
  margin-left: auto;
}
.loyal-tier-number {
  font:
    600 12px "Syne",
    sans-serif;
  color: var(--ink3);
}
.loyal-tier h3 {
  font:
    600 17px "Syne",
    sans-serif;
  margin: 0;
}
.loyal-tier p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink3);
  margin: var(--m-space-12) 0 0;
}
.loyal-tier[data-tier="goud"] {
  background: var(--amber-light);
  border-color: var(--amber);
}
.loyal-jump {
  display: flex;
  flex-wrap: wrap;
  gap: var(--m-space-8);
  font-size: 12px;
}
.loyal-jump a {
  color: var(--ink2);
  padding: var(--m-space-8) var(--m-space-12);
  border-radius: var(--r-sm);
  text-decoration: none;
}
.loyal-jump a:hover {
  background: var(--surface-active);
}
#loyalBeheer section {
  scroll-margin-top: 110px;
  min-width: 0;
}
#loyalBeheer .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--m-space-12);
  flex-wrap: wrap;
}
#loyalBeheer .card-header h3 {
  font:
    600 15px "Syne",
    sans-serif;
  margin: 0;
}
#loyalBeheer .card-body {
  min-width: 0;
}
#loyalBeheer .kpi-value {
  font:
    600 30px "Syne",
    sans-serif;
  letter-spacing: -0.04em;
  display: block;
}
#loyalBeheer .kpi-sub {
  color: var(--ink3);
  font-size: 11px;
}
.loyal-search {
  display: flex;
  gap: var(--m-space-10);
  margin-bottom: var(--m-space-16);
}
.loyal-search input {
  flex: 1;
  min-width: 0;
}
#loyalBeheer table,
.loyal-editor table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
#loyalBeheer th,
.loyal-editor th {
  color: var(--ink3);
  font-weight: 500;
  font-size: 11px;
  text-align: left;
}
#loyalBeheer td,
#loyalBeheer th,
.loyal-editor td,
.loyal-editor th {
  padding: var(--m-space-14) var(--m-space-12);
  border-bottom: 1px solid var(--border-light);
}
#loyalBeheer tbody tr:hover {
  background: var(--surface-hover);
}
#loyalBeheer .loyal-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.loyal-guest {
  display: flex;
  align-items: center;
  gap: var(--m-space-12);
}
.loyal-guest strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
}
.loyal-guest small {
  font-size: 11px;
  color: var(--ink3);
  overflow-wrap: anywhere;
  display: block;
  margin-top: var(--m-space-3);
}
.loyal-avatar {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--surface-active);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font:
    600 13px "Syne",
    sans-serif;
}
.loyal-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--m-space-12);
  padding-top: var(--m-space-16);
  font-size: 11px;
  color: var(--ink3);
}
.loyal-pagination > div {
  display: flex;
  gap: var(--m-space-8);
}
.loyal-rewards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--m-space-16);
}
.loyal-reward {
  display: flex;
  flex-direction: column;
  gap: var(--m-space-16);
  padding: var(--m-space-20);
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-hover);
}
.loyal-reward-top,
.loyal-reward-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--m-space-12);
  font-size: 11px;
  color: var(--ink3);
}
.loyal-reward h3 {
  font:
    600 16px "Syne",
    sans-serif;
  margin: 0;
  overflow-wrap: anywhere;
}
.loyal-reward-value {
  font:
    600 30px "Syne",
    sans-serif;
  letter-spacing: -0.04em;
}
.loyal-reward p {
  font-size: 12px;
  color: var(--ink3);
  margin: 0;
}
.loyal-reward-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: var(--m-space-12);
  margin-top: auto;
}
.loyal-bottom {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--m-space-20);
  align-items: start;
}
.loyal-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.loyal-timeline li {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--m-space-12);
  padding: var(--m-space-12) 0 var(--m-space-20) var(--m-space-24);
  margin-left: var(--m-space-6);
  border-left: 1px solid var(--border);
}
.loyal-timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--surface);
}
.loyal-timeline li:last-child {
  border-color: transparent;
  padding-bottom: 0;
}
.loyal-timeline strong {
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.loyal-timeline p {
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink3);
  margin: var(--m-space-6) 0;
  overflow-wrap: anywhere;
}
.loyal-timeline .loyal-error {
  color: var(--red);
}
.loyal-editor form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--m-space-16);
  align-items: end;
  padding: var(--m-space-20) 0;
  border-bottom: 1px solid var(--border-light);
}
.loyal-editor form:last-child {
  border-bottom: 0;
}
.loyal-editor label {
  display: flex;
  flex-direction: column;
  gap: var(--m-space-8);
  font-size: 12px;
  color: var(--ink2);
}
.loyal-editor label:has([type="hidden"]) {
  display: none;
}
.loyal-editor label:has([type="checkbox"]) {
  flex-direction: row;
  align-items: center;
  align-self: center;
}
.loyal-editor label:has(textarea) {
  grid-column: 1/-1;
}
.loyal-editor input:not([type="checkbox"]),
.loyal-editor select,
.loyal-editor textarea {
  width: 100%;
  min-width: 0;
}
.loyal-editor textarea {
  min-height: 160px;
  resize: vertical;
}
.loyal-template-help {
  color: var(--ink3);
  font-size: 11px;
  font-weight: 400;
}
.loyal-rule-actions {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--m-space-10);
}
.loyal-form-section {
  grid-column: 1/-1;
  padding-bottom: var(--m-space-8);
  border-bottom: 1px solid var(--border-light);
}
.loyal-form-section h3,
.loyal-form-section p { margin: 0; }
.loyal-form-section p,
.loyal-field-note {
  color: var(--ink3);
  font-size: 12px;
}
.loyal-form-section p { margin-top: var(--m-space-4); }
.loyal-target {
  grid-column: 1/-1;
  min-width: 0;
  margin: var(--m-space-8) 0 0;
  padding: var(--m-space-18);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.loyal-target legend {
  padding: 0 var(--m-space-8);
  font-weight: 700;
}
.loyal-target-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--m-space-14);
  margin-top: var(--m-space-16);
  padding-top: var(--m-space-16);
  border-top: 1px solid var(--border-light);
}
.loyal-target-panel[hidden] { display: none; }
.loyal-target-panel > label:has(textarea),
.loyal-target-panel > .loyal-field-note,
.loyal-target-panel > .btn { grid-column: 1/-1; }
.loyal-target-panel textarea { min-height: 130px; }
.loyal-reward-target {
  color: var(--amber-text) !important;
  font-weight: 650;
}
.loyal-editor form > button {
  justify-self: start;
}
.loyal-editor .card {
  border: 0;
  box-shadow: none;
  background: transparent;
}
.loyal-editor .card-body,
.loyal-editor .card-header {
  padding: 0;
}
.loyal-editor .card-body {
  overflow-x: auto;
}
.loyal-editor h3 {
  margin: var(--m-space-24) 0 var(--m-space-12);
  font:
    600 15px "Syne",
    sans-serif;
}
.loyal-editor p,
.loyal-intro {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.6;
}
.loyal-mail-preview {
  width: min(860px, calc(100% - 32px));
  height: min(88dvh, 900px);
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.loyal-mail-preview[open] {
  display: flex;
  flex-direction: column;
}
.loyal-mail-preview::backdrop {
  background: rgba(10, 12, 16, 0.5);
  backdrop-filter: blur(4px);
}
.loyal-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--m-space-16);
  padding: var(--m-space-18) var(--m-space-20);
  border-bottom: 1px solid var(--border-light);
  flex: none;
}
.loyal-preview-head > div { min-width: 0; }
.loyal-preview-head > div > span {
  display: block;
  margin-bottom: var(--m-space-4);
  color: var(--amber-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.loyal-preview-head h2 {
  margin: 0;
  font: 600 17px "Syne", sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loyal-preview-head small {
  display: block;
  margin-top: var(--m-space-5);
  color: var(--ink3);
  font-size: 11px;
}
.loyal-mail-preview iframe {
  width: 100%;
  min-height: 0;
  flex: 1;
  border: 0;
  background: #f3ede3;
}
.loyal-detail {
  display: flex;
  flex-direction: column;
  gap: var(--m-space-20);
}
.loyal-member-head {
  display: flex;
  align-items: center;
  gap: var(--m-space-16);
}
.loyal-member-head > div { min-width: 0; }
.loyal-editor .loyal-member-head h3 { margin: 0 0 var(--m-space-10); font-size: 19px; overflow-wrap: anywhere; }
.loyal-member-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--r);
  background: var(--amber-light);
  color: var(--amber-text);
  font: 600 22px 'Syne', sans-serif;
}
.loyal-member-badges { display: flex; flex-wrap: wrap; gap: var(--m-space-8); }
.loyal-member-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--m-space-16);
  margin: 0;
  padding: var(--m-space-20);
  border-radius: var(--r);
  background: var(--surface-active);
}
.loyal-member-stats > div { display: flex; flex-direction: column; }
.loyal-member-stats dt { font-size: 11px; color: var(--ink3); line-height: 1.5; }
.loyal-member-stats dd { margin: auto 0 0; padding-top: var(--m-space-6); font: 600 28px 'Syne', sans-serif; font-variant-numeric: tabular-nums; }
.loyal-detail-section {
  padding: var(--m-space-20);
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  min-width: 0;
}
.loyal-editor .loyal-detail-section h3 { margin: 0 0 var(--m-space-16); font-size: 14px; }
.loyal-editor .loyal-detail-section form { padding: 0; border: 0; align-items: start; }
.loyal-editor .loyal-detail-section form[data-form="gast"],
.loyal-editor .loyal-detail-section form[data-form="cadeau"] { grid-template-columns: 1fr; }
.loyal-editor .loyal-detail-section label { margin: 0; min-width: 0; line-height: 1.5; }
.loyal-preferences { display: flex; flex-direction: column; gap: var(--m-space-12); }
.loyal-editor .loyal-preferences label {
  justify-content: space-between;
  flex-direction: row-reverse;
  width: 100%;
  min-height: 40px;
  padding: var(--m-space-10) 0;
  border-bottom: 1px solid var(--border-light);
}
.loyal-preferences input { flex: none; }
.loyal-detail-actions { grid-column: 1/-1; display: flex; justify-content: flex-end; padding-top: var(--m-space-4); }
.loyal-detail-actions button { max-width: 100%; white-space: normal; }
.loyal-member-history { list-style: none; padding: 0; margin: 0; }
.loyal-member-history li { display: flex; align-items: start; justify-content: space-between; gap: var(--m-space-16); padding: var(--m-space-14) 0; border-top: 1px solid var(--border-light); }
.loyal-member-history li:first-child { border-top: 0; padding-top: 0; }
.loyal-member-history li:last-child { padding-bottom: 0; }
.loyal-member-history li > div { min-width: 0; }
.loyal-member-history strong { display: block; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.loyal-member-history span { display: block; margin-top: var(--m-space-6); font-size: 11px; color: var(--ink3); overflow-wrap: anywhere; }
.loyal-history-points { flex: none; font: 600 16px 'Syne', sans-serif; font-variant-numeric: tabular-nums; }
.loyal-editor .loyal-detail-empty { margin: 0; color: var(--ink3); font-size: 12px; }
@media (max-width: 480px) {
  .loyal-editor .m-editor-body { padding: var(--m-space-16); }
  .loyal-detail-actions button { width: 100%; }
}
.m-upload {
  position: relative;
  border: 1px dashed var(--border);
  border-radius: var(--r);
  padding: var(--m-space-20);
  background: var(--surface-hover);
  display: flex;
  flex-direction: column;
  gap: var(--m-space-10);
}
.m-upload:focus-within,
.m-upload.is-dragging {
  border-color: var(--amber);
  background: var(--amber-light);
}
.m-upload small {
  font-size: 11px;
  color: var(--ink3);
  overflow-wrap: anywhere;
}
.m-upload input[type="file"] {
  max-width: 100%;
}
.m-upload input::file-selector-button {
  font:
    600 12px "DM Sans",
    sans-serif;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-right: var(--m-space-12);
  cursor: pointer;
}
@media (max-width: 900px) {
  .loyal-bottom {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .loyal-program {
    align-items: flex-start;
    flex-direction: column;
  }
  .loyal-tiers {
    grid-template-columns: 1fr;
  }
  .loyal-tier p {
    margin-top: var(--m-space-8);
  }
  .loyal-editor form {
    grid-template-columns: 1fr;
  }
  .loyal-rule-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .loyal-target-panel { grid-template-columns: 1fr; }
  .loyal-rule-actions .btn { width: 100%; }
  .loyal-mail-preview {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .loyal-search {
    flex-wrap: wrap;
  }
  .loyal-search input {
    min-width: 140px;
  }
  .loyal-avatar {
    display: none;
  }
  .loyal-pagination {
    flex-wrap: wrap;
  }
  .morris-nav-end .nav-command {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }
}
.regie {
  display: flex;
  flex-direction: column;
  gap: var(--m-space-20);
}
.regie-heading {
  display: flex;
  align-items: center;
  gap: var(--m-space-16);
  flex-wrap: wrap;
}
.regie-heading h2 {
  font:
    600 17px "Syne",
    sans-serif;
  margin: 0;
  letter-spacing: -0.02em;
}
.regie-heading > span {
  font-size: 12px;
  color: var(--ink3);
}
.regie-segments {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  padding: var(--m-space-4);
  gap: var(--m-space-4);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.regie-segments button {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--ink3);
  font-size: 12px;
  min-height: 36px;
  padding: 6px var(--m-space-16);
  border-radius: 7px;
}
.regie-segments button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--surface);
}
.regie-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--m-space-20);
  align-items: stretch;
}
.regie-service {
  --regie-muted: var(--ink3);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--m-space-28);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.regie-service-head {
  display: flex;
  justify-content: space-between;
  gap: var(--m-space-12);
  font-size: 12px;
  color: var(--regie-muted);
}
.regie-service-head > span:first-child {
  color: var(--ink);
  font-weight: 600;
}
.regie-total {
  display: flex;
  align-items: baseline;
  gap: var(--m-space-16);
  padding: var(--m-space-20) 0;
}
.regie-total strong {
  font:
    600 clamp(44px, 5vw, 68px) / 1 "Syne",
    sans-serif;
  letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
}
.regie-total > span {
  font-size: 13px;
  color: var(--regie-muted);
}
/* Verhouding aan tafel / verwacht / afgerond als één balk onder het totaal. */
.regie-mix {
  display: flex;
  gap: 2px;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-active);
}
.regie-mix span {
  min-width: 4px;
}
.regie-mix .seated {
  background: var(--amber);
}
.regie-mix .expected {
  background: var(--blue);
}
.regie-mix .finished {
  background: color-mix(in srgb, var(--ink3) 45%, var(--surface));
}
.regie-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--m-space-12);
  padding-top: var(--m-space-16);
}
.regie-stats b {
  font:
    600 24px "Syne",
    sans-serif;
  display: block;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.regie-stats span {
  font-size: 11px;
  color: var(--regie-muted);
  display: flex;
  align-items: center;
  gap: var(--m-space-6);
  margin-top: var(--m-space-4);
}
/* Kleur zit op het bolletje, de cijfers blijven inkt. */
.regie-stats span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--ink3) 45%, var(--surface));
}
.regie-stats .seated span::before {
  background: var(--amber);
}
.regie-stats .expected span::before {
  background: var(--blue);
}
.regie-kop {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--regie-muted);
  margin-bottom: var(--m-space-10);
}
.regie-arrivals {
  margin: var(--m-space-24) 0 var(--m-space-16);
  border-top: 1px solid var(--border-light);
  padding-top: var(--m-space-16);
}
.regie-bars {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 2px;
  align-items: end;
  height: 112px;
  padding-top: var(--m-space-16);
  border-bottom: 1px solid var(--border);
}
.regie-slot {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  border-radius: 4px 4px 0 0;
}
.regie-slot:hover {
  background: color-mix(in srgb, var(--amber) 8%, transparent);
}
.regie-bar {
  position: relative;
  width: 100%;
  max-width: 28px;
  background: color-mix(in srgb, var(--amber) 70%, var(--surface));
  border-radius: 4px 4px 0 0;
}
.regie-slot.piek .regie-bar,
.regie-slot:hover .regie-bar {
  background: var(--amber);
}
/* Alleen de piek draagt standaard een getal; de rest verschijnt bij hover. */
.regie-bar-value {
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  pointer-events: none;
}
.regie-slot.piek .regie-bar-value,
.regie-slot:hover .regie-bar-value {
  opacity: 1;
}
.regie-axis {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 2px;
  margin-top: var(--m-space-6);
  font-size: 10px;
  color: var(--regie-muted);
  font-variant-numeric: tabular-nums;
}
.regie-axis span {
  white-space: nowrap;
  overflow: visible;
}
.regie-quiet {
  font-size: 12px;
  color: var(--regie-muted);
  padding: var(--m-space-24) 0;
}
.regie-next {
  margin-bottom: var(--m-space-16);
}
.regie-next-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--m-space-12);
  padding: var(--m-space-8) 0;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
}
.regie-next-row b {
  font-variant-numeric: tabular-nums;
}
.regie-next-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.regie-next-row small {
  font-size: 11px;
  color: var(--regie-muted);
  white-space: nowrap;
}
.regie-next-row em {
  font-style: normal;
  color: var(--amber-hover);
  font-weight: 600;
}
.regie-service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--m-space-12);
  flex-wrap: wrap;
  font-size: 11px;
  border-top: 1px solid var(--border-light);
  padding-top: var(--m-space-16);
  margin-top: auto;
  color: var(--regie-muted);
}
.regie-service-foot a {
  display: flex;
  align-items: center;
  gap: var(--m-space-8);
  color: var(--ink);
  text-decoration: none;
  min-height: 32px;
}
.regie-service-foot a:hover {
  text-decoration: underline;
}
.regie-floor-body {
  padding: var(--m-space-20);
  flex: 1;
  overflow: auto;
  max-height: 560px;
}
.regie-area-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--m-space-12);
  margin: 0 0 var(--m-space-10);
}
.regie-area h4 {
  font:
    600 12px "DM Sans",
    sans-serif;
  color: var(--ink);
  margin: 0;
  text-transform: capitalize;
}
.regie-area-head span {
  font-size: 11px;
  color: var(--ink3);
  font-variant-numeric: tabular-nums;
}
.regie-area + .regie-area {
  margin-top: var(--m-space-20);
}
/* Plattegrond: licht stippelraster als vloer; de tafels zijn ingezoomd op
   het deel van het canvas waar ze staan (zie uitsnede()). */
.regie-map {
  position: relative;
  aspect-ratio: 2.2;
  min-height: 170px;
  background-color: var(--bg);
  background-image: radial-gradient(
    color-mix(in srgb, var(--ink3) 22%, transparent) 1px,
    transparent 1.2px
  );
  background-size: 16px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  overflow: hidden;
}
.regie-map .regie-table {
  position: absolute;
  padding: 0;
  min-height: 0;
  min-width: 0;
}
/* De plattegrond uit de bouwer. Maten uit schikPlattegrond()
   (plattegrond-schikken.js): bijgesneden tot waar tafels staan, met die
   verhouding als --ratio, en hooguit 480px hoog zodat hij zonder scrollen
   in de kaart past. Eén hiërarchie: tafel (kaart, rand, schaduw) boven
   stoel (klein zitje met leuning) boven vak (iets lichter dan de vloer).
   Geen stippelraster hier: de vakken zijn de vloer. In de tafel alleen het
   nummer en de plaatsen of "3/4"; wie er zit zie je aan de gevulde stoelen. */
.regie-map.regie-plan {
  aspect-ratio: var(--ratio, 1);
  width: min(100%, calc(480px * var(--ratio, 1)));
  min-height: 0;
  margin: 0 auto;
  background-image: none;
}
.regie-plan .regie-table {
  box-sizing: border-box;
  padding: 0 2px;
  gap: 0;
  line-height: 1;
  overflow: hidden;
  z-index: 1;
  container-type: size;
  border-radius: var(--r-sm);
  color: var(--ink);
}
.regie-plan .regie-table.seated,
.regie-plan .regie-table.expected {
  border-width: 1.5px;
}
/* De letters schalen met de tafel zelf (cqh, met een plafond op de
   breedte): nummer groot in Syne, eronder klein de plaatsen. Is de tafel
   laag, dan staan ze naast elkaar; is hij smal, dan blijft alleen het
   nummer over (de stoelen tonen de bezetting). Nooit afkappen. */
.regie-plan .regie-table b {
  font-size: clamp(9px, 40cqh, 16px);
}
.regie-plan .regie-table small {
  font-size: clamp(8px, 24cqh, 10px);
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: 0;
  font-weight: 600;
}
.regie-plan .regie-table.seated small,
.regie-plan .regie-table.expected small {
  color: inherit;
}
@container (max-width: 30px) {
  .regie-plan .regie-table small {
    display: none;
  }
}
@container (max-height: 30px) and (min-width: 31px) {
  .regie-plan .regie-table {
    padding: 0 1px;
  }
  .regie-plan .regie-table-in {
    flex-direction: row;
    align-items: baseline;
    gap: 2px;
  }
  .regie-plan .regie-table b {
    font-size: clamp(9px, min(52cqh, 30cqw), 14px);
  }
  .regie-plan .regie-table small {
    font-size: clamp(8px, min(34cqh, 20cqw), 10px);
  }
}
/* De meetpas in regieClient() zet .krap als de regel toch niet past. */
.regie-plan .regie-table-in.krap small {
  display: none;
}
.regie-table-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: inherit;
  max-width: 100%;
  overflow: hidden;
}
/* Stoel: zitje met een donkerder leuning aan de kant van de tafel af
   (data-rug: n/o/z/w). Vrij = licht, bezet = gevuld in de tekstkleur van de
   status — dezelfde tokens als de legenda onderaan en als Reserveringen. */
.regie-stoel {
  position: absolute;
  box-sizing: border-box;
  border-radius: 28% / 36%;
  pointer-events: none;
  --stoel-zit: color-mix(in srgb, var(--ink3) 30%, var(--surface));
  --stoel-rug: color-mix(in srgb, var(--ink3) 56%, var(--surface));
  --stoel-kant: to bottom;
  background: linear-gradient(var(--stoel-kant), var(--stoel-rug) 0 30%, var(--stoel-zit) 30%);
}
.regie-stoel[data-rug="z"] {
  --stoel-kant: to top;
}
.regie-stoel[data-rug="w"] {
  --stoel-kant: to right;
}
.regie-stoel[data-rug="o"] {
  --stoel-kant: to left;
}
.regie-stoel.bezet {
  --stoel-zit: color-mix(in srgb, var(--ink3) 72%, var(--surface));
  --stoel-rug: var(--ink3);
}
.regie-stoel.bezet.zit {
  --stoel-zit: color-mix(in srgb, var(--zit-tekst) 72%, var(--surface));
  --stoel-rug: var(--zit-tekst);
}
.regie-stoel.bezet.komt {
  --stoel-zit: color-mix(in srgb, var(--komt-tekst) 72%, var(--surface));
  --stoel-rug: var(--komt-tekst);
}
.regie-map .regie-table.vorm-rond {
  border-radius: 50%;
}
.regie-map .regie-table.vorm-vierkant,
.regie-map .regie-table.vorm-rechthoek {
  border-radius: var(--r-sm);
}
.regie-vak {
  position: absolute;
  box-sizing: border-box;
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--surface) 45%, transparent);
  pointer-events: none;
}
.regie-vak span {
  position: absolute;
  left: var(--m-space-8, 8px);
  top: var(--m-space-6, 6px);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
  white-space: nowrap;
}
.regie-vak.leeg span {
  color: color-mix(in srgb, var(--ink3) 75%, transparent);
}
.regie-plan + .regie-table-list {
  margin-top: var(--m-space-8);
}
.regie-table-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: var(--m-space-8);
}
.regie-table {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink2);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  min-height: 52px;
  padding: var(--m-space-6);
  line-height: 1.1;
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.regie-table:hover {
  border-color: var(--ink3);
  transform: translateY(-1px);
}
.regie-table b {
  font:
    700 13px "Syne",
    sans-serif;
  letter-spacing: -0.02em;
}
.regie-table small {
  font-size: 10px;
  color: var(--ink3);
  font-variant-numeric: tabular-nums;
}
/* Statuskleuren: dezelfde tokens als Reserveringen (--zit-*, --komt-*),
   zodat plattegrond, reserveringenlijst en legenda één taal spreken. */
.regie-table.seated {
  background: var(--zit-bg);
  color: var(--zit-tekst);
  border-color: var(--zit-rand);
}
.regie-table.expected {
  background: var(--komt-bg);
  color: var(--komt-tekst);
  border-color: var(--komt-rand);
}
.regie-table.seated small,
.regie-table.expected small {
  color: inherit;
  font-weight: 600;
}
.regie-table.unknown {
  box-shadow: none;
  background: var(--surface-active);
}
.regie-table[aria-expanded="true"] {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.regie-table-detail {
  padding: var(--m-space-14);
  margin-top: var(--m-space-12);
  border-radius: var(--r-sm);
  background: var(--surface-active);
  font-size: 12px;
}
.regie-table-detail p {
  color: var(--ink3);
  margin: var(--m-space-6) 0 0;
}
.regie-legend {
  flex-wrap: wrap;
  justify-content: flex-start !important;
  gap: var(--m-space-16) !important;
  font-size: 11px;
  color: var(--ink3);
}
.regie-legend b {
  color: var(--ink);
  font-weight: 700;
  margin-left: 2px;
  font-variant-numeric: tabular-nums;
}
.regie-legend span::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: inline-block;
  margin-right: 6px;
  vertical-align: -1px;
}
.regie-legend .seated::before {
  background: var(--zit-tekst);
  border-color: var(--zit-tekst);
}
.regie-legend .expected::before {
  background: var(--komt-tekst);
  border-color: var(--komt-tekst);
}
/* Per dienst: dienst- en tafelkaart met daaronder het team van die dienst. */
.regie [data-regie-view] {
  display: flex;
  flex-direction: column;
  gap: var(--m-space-20);
}
/* Team vandaag: afdelingen als kolommen, per persoon één compacte regel
   (starttijd · naam + functie · dienstbalk · status). */
.regie-team-tel {
  display: flex;
  align-items: center;
  gap: var(--m-space-12);
  font-size: 11px;
  color: var(--ink3);
  font-variant-numeric: tabular-nums;
}
.regie-team-tel span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.regie-team-tel span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-sizing: border-box;
}
.regie-team-tel .in::before {
  background: var(--green);
}
.regie-team-tel .verwacht::before {
  border: 1.5px solid var(--ink3);
}
.regie-team-tel a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  margin-left: var(--m-space-4);
}
.regie-team-tel a:hover {
  text-decoration: underline;
}
.regie-afds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.regie-afd {
  padding: var(--m-space-12) var(--m-space-20) var(--m-space-14);
  min-width: 0;
}
.regie-afd + .regie-afd {
  border-left: 1px solid var(--border-light);
}
.regie-afd h4,
.regie-lid {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 64px 8px;
  gap: var(--m-space-10);
  align-items: center;
}
.regie-afd h4 {
  margin: 0 0 var(--m-space-4);
  font:
    600 10px "DM Sans",
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
}
.regie-afd h4 > span:first-child {
  grid-column: 1 / 3;
}
.regie-afd h4 small {
  font-size: 10px;
  letter-spacing: 0;
  margin-left: 4px;
  color: var(--ink3);
  font-weight: 500;
}
.regie-as {
  display: flex;
  justify-content: space-between;
  letter-spacing: 0;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.regie-as i {
  font-style: normal;
}
.regie-afd ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.regie-lid {
  min-height: 38px;
  border-top: 1px solid var(--border-light);
  font-size: 12.5px;
}
.regie-lid > b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.regie-lid-naam {
  display: flex;
  align-items: baseline;
  gap: var(--m-space-6);
  min-width: 0;
  white-space: nowrap;
}
.regie-lid-naam > span {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
}
.regie-lid-naam small {
  font-size: 11px;
  color: var(--ink3);
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 0;
  min-width: 0;
}
.regie-lid-naam em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--amber-hover);
  background: var(--amber-light);
  border-radius: 4px;
  padding: 1px 5px;
  flex: 0 0 auto;
}
.regie-shift {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-active);
}
.regie-shift i {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 3px;
  background: color-mix(in srgb, var(--ink3) 45%, var(--surface));
}
.regie-lid.in .regie-shift i {
  background: var(--green);
}
.regie-lid-st {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--ink3);
  box-sizing: border-box;
}
.regie-lid.in .regie-lid-st {
  background: var(--green);
  border-color: var(--green);
}
.regie-lid.uit {
  color: var(--ink3);
}
.regie-lid.uit .regie-lid-st {
  background: var(--border);
  border-color: var(--border);
}
@media (max-width: 720px) {
  .regie-afd + .regie-afd {
    border-left: 0;
    border-top: 1px solid var(--border-light);
  }
  .regie-team-tel span {
    display: none;
  }
}
.regie-attention-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-width: 0;
}
.regie-attention-list {
  max-height: 310px;
  overflow: auto;
  border-right: 1px solid var(--border-light);
}
.regie-attention-list > button {
  display: flex;
  align-items: center;
  gap: var(--m-space-12);
  text-align: left;
  width: 100%;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--border-light);
  box-shadow: none;
  padding: var(--m-space-16) var(--m-space-20);
  min-height: 68px;
}
.regie-attention-list > button:last-child {
  border-bottom: 0;
}
.regie-attention-list > button[aria-pressed="true"] {
  background: var(--amber-light);
  box-shadow: inset 3px 0 var(--amber);
}
.regie-attention-list > button > svg {
  flex: none;
  color: var(--ink3);
}
.regie-attention-list > button > span:first-of-type {
  min-width: 0;
  flex: 1;
}
.regie-attention-list strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.regie-attention-list small {
  display: block;
  font-size: 11px;
  color: var(--ink3);
  font-weight: 400;
  margin-top: var(--m-space-4);
  overflow-wrap: anywhere;
}
.regie-tag {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink3);
  text-align: right;
  max-width: 100px;
}
.regie-context {
  padding: var(--m-space-24);
  background: var(--surface-hover);
}
.regie-context h3 {
  font:
    600 20px/1.25 "Syne",
    sans-serif;
  letter-spacing: -0.025em;
  margin: var(--m-space-16) 0 var(--m-space-12);
  overflow-wrap: anywhere;
}
.regie-context p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink3);
  margin: 0 0 var(--m-space-20);
  overflow-wrap: anywhere;
}
.regie [hidden],
#loyalBeheer [hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .regie-top {
    grid-template-columns: 1fr 1fr;
  }
  .regie-total strong {
    font-size: 52px;
  }
  .regie-attention-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .regie-top,
  .regie-attention-grid {
    grid-template-columns: 1fr;
  }
  .regie-segments {
    margin-left: 0;
    width: 100%;
  }
  .regie-segments button {
    flex: 1;
    min-height: 40px;
  }
  .regie-attention-list {
    border-right: 0;
    border-bottom: 1px solid var(--border-light);
    max-height: 230px;
  }
  .regie-service {
    padding: var(--m-space-24);
  }
  .regie-total strong {
    font-size: 52px;
  }
  .regie-map {
    min-height: 220px;
  }
  .regie-tag {
    max-width: 75px;
  }
  .regie-floor-body {
    max-height: 380px;
  }
  .regie-map.regie-plan {
    width: min(100%, 300px);
  }
}
.m-date-day.is-range:not(.is-selected) {
  background: var(--amber-light);
  color: var(--ink);
}
.m-command-result {
  gap: var(--m-space-12);
}
.m-command-result svg {
  flex: none;
  color: var(--ink3);
}
.pos-modal-card {
  display: flex;
  flex-direction: column;
}
.pos-modal-card > .card-header {
  position: sticky;
  top: 0;
  z-index: 1;
  flex: none;
}
.pos-modal-body {
  overflow: auto;
  min-height: 0;
}
/* Reserveringsdetails delen de vaste kop en scrollbare inhoud van andere panelen. */
.res-detail-panel-inner {
  overflow: hidden !important;
  min-height: 0;
}
.res-detail-panel-inner > .rd-hero,
.res-detail-panel-inner > .rd-tabs {
  flex: none;
}
.res-detail-panel-inner > .res-detail-body {
  overflow: auto;
  min-height: 0;
  flex: 1;
}
.res-detail-overlay .rd-sluit {
  min-width: 40px;
  min-height: 40px;
}
.res-overlay .res-modal {
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
}
.res-overlay .res-modal > .card-header,
.res-overlay .res-modal-foot {
  flex: none;
}
.res-overlay .res-modal-body {
  overflow: auto;
  min-height: 0;
}
@media (max-width: 720px) {
  .res-detail-overlay {
    padding: 0 !important;
  }
  .res-detail-overlay .res-detail-panel.card {
    border-radius: 0;
    height: 100dvh;
    max-height: 100dvh;
  }
  .res-overlay {
    padding: var(--m-space-12) !important;
  }
  .res-overlay .res-modal {
    max-height: calc(100dvh - 24px);
  }
}
#dashKpis[data-compact]
  .kpi:not([data-k="omzet"]):not([data-k="spend"]):not([data-k="loon"]):not(
    [data-k="rev"]
  ) {
  display: none;
}
.dash-v4 .kpi .delta,
.dash-v4 .kpi .delta.neg,
.gasten-v4 .kpi .delta,
.gasten-v4 .kpi .delta.neg {
  background: var(--surface-active);
  color: var(--ink2);
  border-color: var(--border-light);
}
.res-detail-panel-inner > .res-create-head,
.res-detail-panel-inner > .res-detail-summary {
  flex: none;
}
.res-create-actions {
  background: var(--surface) !important;
}
.pm-upload-rij .m-upload {
  flex: 1;
  min-width: 0;
}
.res-detail-panel-inner > .res-detail-hero {
  flex: none;
  background: #1a1e26;
  color: #f3ede3;
}
.res-detail-hero .res-detail-name,
.res-detail-hero .res-detail-avatar,
.res-detail-hero .res-detail-status,
.res-detail-hero .res-detail-close {
  color: #f3ede3;
}
.res-detail-hero .res-detail-close:hover {
  background: #2b313b;
  border-color: #a9b0b9;
}
.res-detail-panel-inner .res-detail-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: res-step;
}
.res-detail-panel-inner .res-detail-summary-item {
  background: var(--surface-active);
  color: var(--ink);
  position: relative;
}
.res-detail-panel-inner .res-detail-summary-item.on {
  background: var(--amber-light);
  border-color: var(--amber);
}
.res-detail-panel-inner > .res-create-actions {
  position: static;
  margin: 0;
  flex: none;
  padding: var(--m-space-16);
  padding-bottom: max(var(--m-space-16), env(safe-area-inset-bottom));
}
.dash-activity a {
  color: var(--ink);
  text-decoration: none;
}
.dash-activity a:hover {
  text-decoration: underline;
}
@media (max-width: 720px) {
  .res-detail-panel-inner .res-detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .res-detail-hero .res-detail-name {
    font-size: 20px;
    white-space: normal;
    line-height: 1.15;
  }
  .res-detail-hero .res-detail-avatar {
    width: 32px;
    height: 32px;
  }
  .res-detail-hero .res-detail-sub {
    white-space: normal;
    font-size: 11px;
  }
  .res-detail-panel-inner .res-detail-summary-item {
    display: block;
  }
  .res-detail-panel-inner .res-detail-summary-item b {
    font-size: 13px;
  }
  .res-detail-panel-inner .res-detail-summary-item span {
    font-size: 9px;
  }
}
.regie [data-regie-view]:not([hidden]) .regie-total {
  animation: m-feedback-in 180ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .regie [data-regie-view]:not([hidden]) .regie-total,
  .m-editor[open] { animation: none; }
}
/* Datumbereik in één kalender (morris-datepicker, velden met data-range-partner):
   stapregel boven de weekdagen en het voorbeeld tussen begindag en hover/focus. */
.m-date-stap {
  margin: 0 0 var(--m-space-8, 8px);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink3);
  text-align: center;
}
.m-date-day.is-voorbeeld:not(.is-selected) {
  background: color-mix(in srgb, var(--amber) 14%, var(--surface));
  color: var(--ink);
}
