:root {
  --bg: #ffffff;
  --line: #e2e4ea;
  --text: #1a1a2e;
  --text-dim: #6b7280;
  --amber: #f0a94e;
  --amber-deep: #d98a2b;
  --red: #e4483a;
  --red-deep: #c23527;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --green: #2f9e65;
  --radius: 6px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Work Sans", "Segoe UI", sans-serif;
  line-height: 1.5;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 32px 20px 80px; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 600; margin: 0 0 12px; color: var(--text); }
p.lede { color: var(--text-dim); margin: 0 0 28px; }
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
label { display: block; font-size: 0.9rem; color: var(--text-dim); margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=tel] {
  width: 100%; padding: 10px 12px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 1rem;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius); border: none;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  background: var(--red); color: white;
}
.btn:hover { background: var(--red-deep); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-danger { background: var(--red); color: white; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: transparent; border-color: var(--red); color: var(--red); }
.btn-success { background: var(--green); color: white; }
.btn-success:hover { background: #24804f; }

/* Datumkeuze */
.date-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.date-tab {
  padding: 10px 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg); color: var(--text); cursor: pointer; font-size: 0.95rem; font-weight: 600;
}
.date-tab.active { background: var(--red); border-color: var(--red-deep); color: white; }

.total-row { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; margin-top: 16px; }

.error { color: var(--red); font-size: 0.9rem; margin-top: 8px; }

/* Admin: tabel, zoeken, sorteren */
.admin-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.admin-toolbar input[type=search] {
  flex: 1; min-width: 200px; padding: 9px 12px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 0.95rem;
}
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--text-dim); font-weight: 600; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--text); }
th.sortable .arrow { font-size: 0.75em; margin-left: 2px; color: var(--text-dim); }
.badge { padding: 2px 8px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; border: 1px solid transparent; }
.badge.paid { background: rgba(47,158,101,0.12); color: var(--green); border-color: rgba(47,158,101,0.35); }
.badge.pending { background: rgba(240,169,78,0.15); color: var(--amber-deep); border-color: rgba(240,169,78,0.4); }
.badge.refunded { background: rgba(228,72,58,0.12); color: var(--red); border-color: rgba(228,72,58,0.35); }
.badge.cancelled { background: rgba(107,114,128,0.12); color: var(--text-dim); border-color: rgba(107,114,128,0.3); }
.ticket-line { display: flex; align-items: center; gap: 6px; }
.ticket-line + .ticket-line { margin-top: 2px; }
.ticket-line input[type=checkbox] { margin: 0; }
.pay-option { display: flex; align-items: center; gap: 8px; margin: 6px 0; color: var(--text); cursor: pointer; }
.pay-option input { margin: 0; }
/* Aantallen kiezen */
.qty-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.qty-title { font-weight: 600; }
.qty-price { color: var(--text-dim); font-size: 0.9rem; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper .step { width: 38px; height: 38px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 1.3rem; cursor: pointer; line-height: 1; }
.stepper .step:hover { border-color: var(--red); color: var(--red); }
.stepper input { width: 56px; height: 38px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); font-size: 1.05rem; background: var(--bg); color: var(--text); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
