/* ============================================================
   RSW Portaal — components.css
   Herbruikbare UI-componenten
   ============================================================ */

/* ── Material Icons ── */
.material-icons {
  font-size: inherit;
  vertical-align: middle;
  line-height: 1;
  user-select: none;
}

.nav-group-icon .material-icons,
.nav-subgroup-icon .material-icons,
.nav-item-icon .material-icons {
  font-size: 1.1rem;
}

.nav-group-chevron .material-icons {
  font-size: 1rem;
}

.card-icon .material-icons {
  font-size: 2rem;
}

.stat-icon .material-icons {
  font-size: 2rem;
}

.quick-action-icon .material-icons {
  font-size: 1.8rem;
}

.empty-state-icon .material-icons {
  font-size: 3rem;
}

.alert-icon .material-icons {
  font-size: 1.1rem;
  vertical-align: text-bottom;
}

/* ── Knoppen ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
}
.btn-accent:hover {
  background: var(--color-accent-dark);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-surface-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  background: #d5deea;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-icon {
  padding: 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background var(--transition), color var(--transition);
  font-size: 1.1rem;
  font-family: inherit;
}
.btn-icon:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
}

/* ── Cards ── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-icon {
  font-size: 1.2rem;
}

.card-body {
  color: var(--color-text);
}

.card-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Card kleur-accenten */
.card-accent-primary { border-left: 4px solid var(--color-primary); }
.card-accent-success { border-left: 4px solid var(--color-success); }
.card-accent-warning { border-left: 4px solid var(--color-warning); }
.card-accent-info    { border-left: 4px solid var(--color-info); }

/* ── Dashboard grid ── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}

.dashboard-grid .card-full {
  grid-column: 1 / -1;
}

.dashboard-grid .card-half {
  grid-column: span 1;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-primary { background: rgba(30,58,95,0.1);  color: var(--color-primary); }
.badge-accent  { background: rgba(232,160,32,0.15); color: #92680a; }
.badge-success { background: rgba(34,197,94,0.12); color: #15803d; }
.badge-warning { background: rgba(245,158,11,0.12); color: #92400e; }
.badge-error   { background: rgba(239,68,68,0.12); color: #991b1b; }
.badge-info    { background: rgba(59,130,246,0.12); color: #1d4ed8; }
.badge-muted   { background: rgba(107,125,144,0.12); color: var(--color-text-muted); }

/* ── Ranglijst / top 10 ── */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: background var(--transition);
}

.ranking-item:hover {
  background: var(--color-surface-alt);
}

.ranking-position {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-text-muted);
}

.ranking-position.top-1 { color: #ffd700; }
.ranking-position.top-2 { color: #c0c0c0; }
.ranking-position.top-3 { color: #cd7f32; }

.ranking-name {
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-score {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

/* ── Programma / tijdlijn ── */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.schedule-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  position: relative;
  padding-bottom: 16px;
}

.schedule-item:last-child {
  padding-bottom: 0;
}

.schedule-item::before {
  content: '';
  position: absolute;
  left: 39px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.schedule-item:last-child::before {
  display: none;
}

.schedule-time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: right;
  padding-top: 4px;
  white-space: nowrap;
}

.schedule-content {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  position: relative;
}

.schedule-content::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 12px;
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 2px solid var(--color-bg);
}

.schedule-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.schedule-desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ── Compacte programma tijdlijn (home card) ── */
.prog-dag-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding: 8px 0 4px;
}

.prog-dag-label:first-child {
  padding-top: 0;
}

.prog-rij {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.prog-tijdlijn {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
  flex-shrink: 0;
  padding-top: 5px;
}

.prog-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.prog-lijn {
  width: 2px;
  flex: 1;
  background: var(--color-border);
  margin-top: 3px;
  min-height: 8px;
}

.prog-inhoud {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  padding: 2px 0 8px;
  flex: 1;
  min-width: 0;
  align-items: center;
}

.prog-tijd {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  white-space: nowrap;
  text-align: center;
  letter-spacing: 0.02em;
}

.prog-naam {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prog-meer {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  padding: 6px 0 0 24px;
  font-style: italic;
}

/* ── Info card / statistieken ── */
.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ── Snelle actie kaarten ── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  gap: 12px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  color: var(--color-text);
  text-decoration: none;
  font-family: inherit;
}

.quick-action-btn:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
  transform: translateY(-2px);
}

.quick-action-icon {
  font-size: 1.8rem;
}

.quick-action-label {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ── Header component ── */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.header-logo:hover {
  color: var(--color-primary);
}

.header-logo-icon {
  font-size: 1.5rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-item-active {
  background: var(--color-surface-alt);
  color: var(--color-primary);
  font-weight: 600;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition);
  border: 1px solid transparent;
}

.user-menu:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-border);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.role-badge-header {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .user-name,
  .role-badge-header {
    display: none;
  }
}

/* Naam + rol bovenaan het dropdown */
.dropdown-user-info {
  padding: 10px 16px 8px;
}

.dropdown-user-naam {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.dropdown-user-rol {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 3px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  text-transform: uppercase;
  display: inline-block;
}

/* ── Sidebar component ── */
.sidebar-inner {
  padding: 8px 0 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px 12px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 12px;
}

/* ── Editie-switcher in sidebar ── */
.sidebar-editie-info-tekst {
  padding: 8px 16px 10px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--color-border);
}

.sidebar-editie-info-tekst strong {
  color: var(--color-text);
}

.sidebar-editie-optie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 20px;
  background: none;
  border: none;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--color-text-muted);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition), color var(--transition);
  border-left: 3px solid transparent;
  gap: 8px;
}

.sidebar-editie-optie:hover {
  color: var(--color-text);
  background: var(--color-surface-alt);
  border-left-color: var(--color-border);
}

.sidebar-editie-optie.actief {
  color: var(--color-primary);
  font-weight: 600;
  border-left-color: var(--color-primary);
}

.sidebar-editie-laden {
  display: block;
  padding: 9px 20px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ── Hoofd nav-groepen ── */
.nav-group {
  border-top: 1px solid var(--color-border);
}

.nav-group:first-of-type {
  border-top: none;
}

.nav-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px 10px 16px;
  background: var(--color-bg);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.nav-group-header:hover {
  background: var(--color-surface-alt);
}

.nav-group-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.nav-group-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.nav-group-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
}

/* Uitklap-knop */
.nav-group-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--color-border);
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.nav-group-chevron svg {
  display: block;
}

.nav-group-header:hover .nav-group-chevron,
.nav-subgroup-header:hover .nav-group-chevron {
  background: var(--color-primary);
  color: #fff;
}

.nav-group-header.collapsed .nav-group-chevron,
.nav-subgroup-header.collapsed .nav-group-chevron {
  transform: rotate(-90deg);
}

.nav-group-items {
  overflow: hidden;
  padding-bottom: 4px;
}

.nav-group-items.hidden {
  display: none;
}

/* ── Sub-groepen (binnen Organisatie) ── */
.nav-subgroup {
  margin: 2px 8px 2px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  overflow: hidden;
}

.nav-subgroup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 7px 10px 7px 12px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background var(--transition);
}

.nav-subgroup-header:hover {
  background: var(--color-surface-alt);
}

.nav-subgroup-header.collapsed {
  border-bottom-color: transparent;
}

.nav-subgroup-header-left {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
}

.nav-subgroup-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.nav-subgroup-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
}

.nav-subgroup-items {
  overflow: hidden;
}

.nav-subgroup-items.hidden {
  display: none;
}

/* Sub-groep nav-items: compact en ingesprongen */
.nav-subgroup-items .nav-item {
  padding: 7px 10px 7px 28px;
  font-size: 0.85rem;
  border-left-width: 2px;
}

/* ── Nav items (hoofd-niveau) ── */
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}

.nav-item:hover {
  color: var(--color-text);
  background: var(--color-surface-alt);
  border-left-color: var(--color-border);
}

.nav-item.active {
  color: var(--color-primary);
  background: rgba(233, 69, 96, 0.08);
  border-left-color: var(--color-primary);
  font-weight: 600;
}

.nav-item-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.nav-item-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Sidebar verborgen ── */
#sidebar.collapsed {
  overflow: hidden;
}

/* ── Hero sectie ── */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2d5986 100%);
  border: none;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,160,32,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero .hero-subtitle {
  color: rgba(255,255,255,0.75);
}

.hero .hero-meta-item {
  color: rgba(255,255,255,0.7);
}

.hero .hero-meta-item strong {
  color: #fff;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-title span {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.hero-meta-item strong {
  color: var(--color-text);
}

/* ── Lege staat ── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 0.9rem;
}

/* ── Alert / meldingen ── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.alert-info    { background: #eff6ff; border-left: 3px solid var(--color-info);    color: #1d4ed8; }
.alert-success { background: #f0fdf4; border-left: 3px solid var(--color-success); color: #15803d; }
.alert-warning { background: #fffbeb; border-left: 3px solid var(--color-warning); color: #92400e; }
.alert-error   { background: #fef2f2; border-left: 3px solid var(--color-error);   color: #991b1b; }

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 20px 0;
}

/* ── Sectie header ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.snelle-acties-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0 0 16px;
  cursor: default;
  text-align: left;
}

.snelle-acties-chevron {
  display: none;
}

@media (max-width: 768px) {
  .snelle-acties-header {
    cursor: pointer;
  }

  .snelle-acties-chevron {
    display: flex;
  }

  .quick-actions.hidden {
    display: none;
  }
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Welkomst card (ingelogd) ── */
.welcome-card {
  background: linear-gradient(135deg, var(--color-surface-alt) 0%, var(--color-surface) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.welcome-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.welcome-text h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.welcome-text p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ── User dropdown ── */
.user-dropdown {
  position: fixed;
  top: calc(var(--header-height) + 4px);
  right: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 200;
  overflow: hidden;
}

.user-dropdown.hidden {
  display: none;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 0.875rem;
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.dropdown-item:hover {
  background: var(--color-surface-alt);
}

.dropdown-item-danger {
  color: var(--color-error);
}

.dropdown-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* ── Auth layout (login / registreren) ── */
.auth-wrapper {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-top: 8px;
  margin-bottom: 2px;
}

.auth-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.auth-footer a {
  color: var(--color-primary);
  font-weight: 600;
}

/* ── Ontbrekende knop varianten ── */
.btn-danger {
  background: var(--color-error);
  color: #fff;
  border: none;
}
.btn-danger:hover {
  background: #dc2626;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: var(--color-success);
  color: #fff;
  border: none;
}
.btn-success:hover {
  background: #16a34a;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-warning {
  background: var(--color-warning);
  color: #fff;
  border: none;
}
.btn-warning:hover {
  background: #d97706;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Pagina header helpers ── */
.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ── Loading spinner alias ── */
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ── Formulier elementen ── */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-label-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.form-label-link:hover {
  color: var(--color-primary);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input-sm {
  padding: 5px 10px;
  font-size: 0.82rem;
}

select.form-input-sm {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236b7d90' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
  cursor: pointer;
}

.form-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.form-input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.form-hint.error {
  color: var(--color-error);
}

/* ── Bootstrap-aliassen — voor achterwaartse compatibiliteit ── */
.form-control,
.form-control-sm {
  width: 100%;
  padding: 10px 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control-sm { padding: 6px 10px; font-size: 0.82rem; }

.form-control:focus,
.form-control-sm:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

select.form-control,
select.form-control-sm {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236b7d90' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

textarea.form-control { resize: vertical; min-height: 96px; line-height: 1.6; }

/* Ghost + danger combinatie = outline danger */
.btn-ghost.btn-danger {
  background: transparent;
  color: var(--color-error);
  border-color: var(--color-error);
}
.btn-ghost.btn-danger:hover {
  background: var(--color-error);
  color: #fff;
  box-shadow: var(--shadow-md);
}

/* ── Select — ziet er exact uit als een text input ── */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236b7d90' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

select.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

/* ── Textarea ── */
textarea.form-input {
  resize: vertical;
  min-height: 96px;
  line-height: 1.6;
}

/* ── Number input — verberg browser spinner ── */
input[type="number"].form-input::-webkit-inner-spin-button,
input[type="number"].form-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"].form-input { -moz-appearance: textfield; }

/* ── Checkbox & radio ── */
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--color-text);
  user-select: none;
  margin-bottom: 8px;
}

.form-check:last-child { margin-bottom: 0; }

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

/* Losse checkbox/radio (buiten .form-check) — minimale reset */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* ── Input group (tekst + knop naast elkaar) ── */
.input-group {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.input-group .form-input {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  white-space: nowrap;
}

/* ── Form row (twee inputs naast elkaar) ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.input-with-icon {
  position: relative;
}

.input-with-icon .form-input {
  padding-right: 44px;
}

.input-icon-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 1rem;
  padding: 4px;
  line-height: 1;
  transition: color var(--transition);
}

.input-icon-btn:hover {
  color: var(--color-text);
}

/* ── Pagina header ── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.page-header-left h1 {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-header-left p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ── Filter balk ── */
/* ── Filter card ── */
.filter-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: default;
  user-select: none;
}

.filter-card-pijl {
  display: none; /* verborgen op desktop */
  transition: transform 0.2s ease;
  color: var(--color-text-muted);
}

.filter-card-body {
  display: flex;
  gap: 10px;
  padding: 0 16px 14px;
}

.filter-card-body .form-input {
  flex: 0 1 280px;
  min-width: 0;
}

/* ── Filter bar (legacy — behouden voor andere plekken) ── */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-bar .form-input {
  flex: 1;
  min-width: 200px;
}

.filter-bar select.form-input {
  flex: 0 0 auto;
  min-width: 160px;
}

/* ── Tabel ── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table thead th {
  background: var(--color-surface-alt);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--color-border);
}

.data-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: var(--color-surface-alt);
}

.data-table td {
  padding: 12px 16px;
  vertical-align: middle;
  color: var(--color-text);
}

.data-table td.muted {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.table-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

/* ── Uitslag ranglijst — responsive kolommen ── */
@media (max-width: 480px) {
  .col-hide-xs { display: none; }
}
@media (max-width: 600px) {
  .col-hide-sm { display: none; }
}
@media (max-width: 768px) {
  .col-hide-md { display: none; }
}

/* Scroll-wrapper: alleen horizontaal scrollen op desktop waar categoriekolommen zichtbaar zijn.
   Op mobiel past de tabel op het scherm — geen horizontaal scrollen nodig. */
.uitslag-tabel-scroll {
  overflow-x: auto;
}
.uitslag-tabel-scroll table.data-table {
  min-width: max-content;
}
@media (max-width: 768px) {
  .uitslag-tabel-scroll {
    overflow-x: visible;
  }
  .uitslag-tabel-scroll table.data-table {
    min-width: unset;
    width: 100%;
  }
}

/* Klikbare uitslag-rij: op mobiel wordt de hele rij de expand-trigger */
.uitslag-row { cursor: default; }
@media (max-width: 768px) { .uitslag-row.expandable-md { cursor: pointer; } }
@media (max-width: 600px) { .uitslag-row.expandable-sm { cursor: pointer; } }

/* Expand-indicator in de positie-cel (klein pijltje) */
.row-expand-hint {
  display: none;
  font-size: 0.65rem;
  color: var(--color-text-muted);
  margin-left: 5px;
  transition: transform 0.2s ease, color 0.2s ease;
  vertical-align: middle;
}
@media (max-width: 768px) { .row-expand-hint.hint-md { display: inline-block; } }
@media (max-width: 600px) { .row-expand-hint.hint-sm { display: inline-block; } }
.uitslag-row.expanded .row-expand-hint {
  transform: rotate(90deg);
  color: var(--color-primary);
}

/* ── Detail-dropdown ── */
.detail-row > td {
  padding: 0 !important;
}
.detail-row-inner {
  padding: 14px 16px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  background: var(--color-bg);
  border-top: 2px solid var(--color-primary);
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.25);
}

/* Detail-items zijn alleen zichtbaar wanneer de bijbehorende tabelkolom verborgen is */
.detail-item {
  display: none;
  flex-direction: column;
  gap: 3px;
  min-width: 80px;
}
@media (max-width: 480px) { .detail-item.for-xs { display: flex; } }
@media (max-width: 600px) { .detail-item.for-sm { display: flex; } }
@media (max-width: 768px) { .detail-item.for-md { display: flex; } }

.detail-item-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  font-weight: 700;
}
.detail-item-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}
.detail-item.for-md .detail-item-value {
  color: var(--color-primary);
}

/* Gebruiker naam-cel */
.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-cell-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.user-cell-info .name  { font-weight: 600; font-size: 0.875rem; }
.user-cell-info .email { font-size: 0.75rem; color: var(--color-text-muted); }

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s ease;
}

.modal-backdrop.hidden { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--color-border);
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--color-border);
}

/* ── Profiel key-value lijst ── */
.profiel-dl { display: flex; flex-direction: column; gap: 0; }

.profiel-dl-rij {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
  align-items: baseline;
}

.profiel-dl-rij:last-child { border-bottom: none; }

.profiel-dl-rij dt {
  color: var(--color-text-muted);
  font-weight: 500;
}

.profiel-dl-rij dd {
  font-weight: 600;
  color: var(--color-text);
}

/* ── Confirm dialog ── */
.confirm-dialog .modal-body p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* ── Stats rij ── */
.stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .stats-row .stat-chip:not(:first-child) {
    display: none;
  }
}

.stats-row .stat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.8rem;
}

.stats-row .stat-chip strong {
  font-weight: 700;
}

/* ── Responsive aanpassingen ── */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 24px 20px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-meta {
    gap: 16px;
  }

  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .card {
    padding: 14px;
  }

  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Actie-dropdown (tabelrijen) ── */
.actie-dropdown {
  position: relative;
  display: inline-block;
}

.actie-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 230px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  overflow: hidden;
}

.actie-dropdown.open .actie-menu {
  display: block;
}

/* Zorg dat het menu nooit buiten de kaart valt aan de linkerkant */
.actie-menu-left {
  right: auto;
  left: 0;
}

/* ── Responsieve tabelkolommen ── */

/* Verberg op tablet en kleiner (≤ 900px) */
@media (max-width: 900px) {
  .col-tablet-hide { display: none !important; }
}

/* Verberg op mobiel (≤ 600px) */
@media (max-width: 600px) {
  .col-mobile-hide { display: none !important; }
}

/* Rol-badge compact in de gebruikersnaamcel — alleen zichtbaar op mobiel */
.mob-rol-badge {
  display: none;
  margin-top: 5px;
}

@media (max-width: 600px) {
  .mob-rol-badge { display: inline-block; }
}

/* ── Uitklapper (expander) per tabelrij ── */

/* Knop alleen tonen als er kolommen verborgen zijn */
.uitklap-toggle {
  display: none;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
  font-size: 0.75rem;
  line-height: 1;
}

.uitklap-toggle.open {
  transform: rotate(180deg);
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .uitklap-toggle { display: inline-flex; }
}

/* Uitklap-rij: standaard verborgen, getoond via .open klasse */
.uitklap-rij {
  display: none;
}

.uitklap-rij.open {
  display: table-row;
}

/* Op desktop nooit tonen, ook niet als .open staat */
@media (min-width: 901px) {
  .uitklap-rij { display: none !important; }
}

.uitklap-content {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 10px 16px 14px 60px; /* inspringen ter hoogte van de avatar */
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 480px) {
  .uitklap-content {
    padding-left: 16px;
    flex-direction: column;
    gap: 8px;
  }
}

.uitklap-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
}

.uitklap-item.uitklap-alleen-mobiel {
  display: none;
}

@media (max-width: 600px) {
  .uitklap-item.uitklap-alleen-mobiel { display: flex; }
}

.uitklap-label {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  min-width: 48px;
}

/* ── Catering instellingen — uitklapbare header ── */
.catering-instellingen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.catering-instellingen-header:hover {
  background: var(--color-surface-alt);
}

/* ── Catering statistieken ── */
.catering-stats-rij {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.catering-stat-card {
  flex: 1 1 80px;
  min-width: 0;        /* voorkomt overflow bij kleine schermen */
  padding: 12px 16px;
}

.catering-stat-card .stat-info {
  min-width: 0;
}

.catering-stat-card .stat-value {
  font-size: 1.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catering-stat-card .stat-label {
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .catering-stat-card {
    padding: 10px 12px;
    flex: 1 1 60px;
  }
  .catering-stat-card .stat-value { font-size: 1.15rem; }
  .catering-stat-card .stat-label { font-size: 0.7rem; }
}
@media (max-width: 600px) {
  .catering-stat-card.stat-hide-sm { display: none; }
}

/* ── Toast notificaties ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px 15px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  max-width: 360px;
  min-width: 220px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: all;
  overflow: hidden;
  position: relative;
}

.toast.toast-zichtbaar {
  opacity: 1;
  transform: translateX(0);
}

.toast-icon { font-size: 1.15rem; flex-shrink: 0; margin-top: 1px; }
.toast-tekst { flex: 1; line-height: 1.45; word-break: break-word; }

.toast-sluit {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.65;
  flex-shrink: 0;
  color: inherit;
  line-height: 1;
  transition: opacity 0.15s;
  pointer-events: all;
}
.toast-sluit:hover { opacity: 1; }
.toast-sluit .material-icons { font-size: 1rem; }

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.2);
}
.toast-progress-balk {
  height: 100%;
  width: 100%;
  background: rgba(255,255,255,0.55);
  animation: toast-drain linear forwards;
}

@keyframes toast-drain {
  from { width: 100%; }
  to   { width: 0%; }
}

.toast-success { background: var(--color-success); color: #fff; }
.toast-error   { background: var(--color-error);   color: #fff; }
.toast-info    { background: var(--color-info);     color: #fff; }
.toast-warning { background: var(--color-warning);  color: #fff; }

@media (max-width: 480px) {
  .toast-container { right: 12px; left: 12px; bottom: 16px; }
  .toast { max-width: 100%; }
}

/* ── Inschrijvingen-tabel — mobiel ── */

/* Op mobiel: toggle zichtbaar, header klikbaar, body standaard dicht */
@media (max-width: 768px) {
  .filter-card-header {
    cursor: pointer;
  }
  .filter-card-pijl {
    display: inline-block;
  }
  /* Dicht: body verbergen */
  .filter-card .filter-card-body {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding-top: 0;
  }
  .filter-card .filter-card-body .form-input,
  .filter-card .filter-card-body select.form-input {
    flex: none;
    width: 100%;
  }
  /* Open: body tonen, pijl draaien */
  .filter-card.filter-card--open .filter-card-body {
    display: flex;
  }
  .filter-card.filter-card--open .filter-card-pijl {
    transform: rotate(180deg);
  }
}

@media (max-width: 600px) {
  /* Groepsnaam te lang voor mobiel — toon hem als subtext onder de patrouillenaam */
  #pat-tabel td:nth-child(2) { display: none; }
  #pat-tabel th:nth-child(2) { display: none; }

  #pat-tabel .pat-rij td:nth-child(3)::after {
    content: attr(data-groep);
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 400;
  }

  /* Stat-chips compacter */
  .stats-row { gap: 6px; }
  .stats-row .stat-chip { font-size: 0.78rem; padding: 4px 8px; }
}
