*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sidebar-w: 80px;
  --sidebar-bg: #1c3d38;
  --sidebar-border: rgba(255,255,255,0.08);
  --sidebar-text: rgba(255,255,255,0.62);
  --sidebar-text-active: #ffffff;
  --sidebar-active-bg: rgba(255,255,255,0.14);
  --sidebar-hover-bg: rgba(255,255,255,0.08);
  --green: #1c8c7a;
  --green-hover: #155f55;
  --green-light: #bfe9e2;
  --green-xlight: #edf8f6;
  --bg: #edf8f6;
  --white: #ffffff;
  --text: #302922;
  --text-muted: rgba(48,41,34,0.58);
  --text-light: rgba(48,41,34,0.38);
  --border: rgba(28,140,122,0.18);
  --border-light: rgba(28,140,122,0.09);
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06),
               0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.07),
            0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12),
               0 4px 8px rgba(0,0,0,0.06);
  --radius-sm: 7px;
  --radius: 10px;
  --radius-lg: 14px;
  --color-success: #4caf50;
  --color-success-bg: #dcfce7;
  --color-success-text: #166534;
  --color-error: #dc2626;
}

html, body { height: 100%; font-family: 'Poppins', sans-serif; font-size: 14px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }

.hidden { display: none !important; }

/* ═══ TOAST ═══ */
#toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-80px);
  z-index: 9999; background: #1a1a1a; color: white;
  padding: 12px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap;
}
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.green { background: var(--green); }

/* ═══════════════════════════════════════════
   SCREEN: LOGIN
═══════════════════════════════════════════ */
#screen-login {
  display: flex; height: 100vh;
  transition: opacity 0.3s ease;
}
#screen-login.fade-out { opacity: 0; pointer-events: none; }

.login-left {
  width: 42%; background: var(--sidebar-bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px 48px 40px;
  position: relative; overflow: hidden;
}
.login-left::before {
  content: '';
  position: absolute; bottom: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.login-left::after {
  content: '';
  position: absolute; top: -60px; left: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}
.login-logo {
  display: flex; align-items: center; gap: 12px;
}
.login-logo-icon {
  width: 42px; height: 42px; border-radius: 11px;
  /*background: rgba(255,255,255,0.15);*/
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.login-logo-icon svg { width: 22px; height: 22px; fill: white; }
.login-logo-text { font-size: 18px; font-weight: 700; color: white; letter-spacing: -0.3px; line-height: 1;}
.login-logo-sub { font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.4px; line-height: 1;}

.login-tagline {
  position: relative; z-index: 1;
}
.login-tagline h2 {
  font-size: 28px; font-weight: 800; color: white;
  letter-spacing: -0.8px; line-height: 1.2; margin-bottom: 16px;
}
.login-tagline p { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.65; }

.login-bottom { font-size: 12px; color: rgba(255,255,255,0.3); }

.login-right {
  flex: 1; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 32px;
}
.login-form-wrap { width: 100%; max-width: 380px; }
.login-form-wrap h1 {
  font-size: 24px; font-weight: 700; color: var(--text);
  letter-spacing: -0.5px; margin-bottom: 6px;
}
.login-form-wrap .login-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.form-input {
  width: 100%; height: 44px;
  border: 1px solid rgba(28,140,122,0.45);
  border-radius: 25px;
  padding: 0 18px;
  font-family: 'Poppins', sans-serif; font-size: 14px; color: var(--text);
  background: rgba(191,233,226,0.55); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input::placeholder { color: rgba(48,41,34,0.45); }
.form-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(28,140,122,0.10); background: rgba(191,233,226,0.8); }
.input-wrap { position: relative; }
.input-wrap .form-input { padding-right: 44px; }
.toggle-pw {
  position: absolute; right: 0; top: 0; bottom: 0; width: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; color: var(--text-light);
  transition: color 0.15s;
}
.toggle-pw:hover { color: var(--green); }
.toggle-pw svg { width: 16px; height: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 44px; padding: 0 24px;
  border-radius: 300px;
  font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; border: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s, color 0.15s, border-color 0.15s;
  letter-spacing: 0.41px; text-decoration: none; white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-primary { background: var(--green); color: white; box-shadow: 0 2px 6px rgba(48,41,34,0.22); }
.btn-primary:hover { background: var(--green-hover); box-shadow: 0 4px 12px rgba(48,41,34,0.32); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: var(--white); color: var(--green); border: 1.5px solid var(--green); }
.btn-secondary:hover { background: var(--green-xlight); }
.btn-ghost { background: none; color: var(--text-muted); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: rgba(28,140,122,0.45); color: var(--text); }
.btn-full { width: 100%; }
.btn-sm { height: 34px; padding: 0 16px; font-size: 13px; }

.login-help { margin-top: 20px; text-align: center; font-size: 13px; color: var(--text-muted); }
.login-help strong { white-space: nowrap; color: var(--text); }

@media (max-width: 700px) {
  .login-left { display: none; }
  .login-right { padding: 32px 24px; }
}

/* ═══════════════════════════════════════════
   APP SHELL
═══════════════════════════════════════════ */
#screen-app {
  display: flex; height: 100vh; overflow: hidden;
  opacity: 0; transition: opacity 0.3s ease;
}
#screen-app.visible { opacity: 1; }

/* ── MATERIAL SYMBOLS ── */
.material-symbols-outlined {
  font-size: 22px;
  font-variation-settings: 'wght' 200;
  line-height: 1;
  display: inline-flex;
  vertical-align: middle;
}

/* ── SIDEBAR ── */
#sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--sidebar-bg);
  height: 100vh; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1), width 0.25s ease;
  z-index: 200;
}
#sidebar.expanded { width: 260px; }
.sidebar-top { padding: 18px 16px 0; flex-shrink: 0; }
.sidebar-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 20px; padding: 0 12px; text-align: left; }
.sidebar-logo:hover { opacity: 0.85; transition: opacity 0.15s; }
/*.sidebar-logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}*/
.sidebar-logo-icon svg { width: 18px; height: 18px; fill: white; }
.sidebar-logo-text { font-size: 15px; font-weight: 700; color: white; letter-spacing: -0.2px; line-height: 1;}
.sidebar-logo-sub { font-size: 10px; color: rgba(255,255,255,0.45); letter-spacing: 0.4px; line-height: 1;}

.sidebar-user {
  padding: 14px 16px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 11px;
}
.sidebar-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white; flex-shrink: 0;
  letter-spacing: 0.5px;
}
.sidebar-user-name { font-size: 13px; font-weight: 600; color: white; line-height: 1.2; }
.sidebar-user-org { font-size: 11px; color: rgba(255,255,255,0.5); }

.sidebar-nav { flex: 1; padding: 0 6px; }
.nav-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.9px;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  padding: 0 10px; margin-bottom: 4px; margin-top: 4px;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 9px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--sidebar-text);
  font-size: 14px; font-weight: 500;
  transition: background 0.14s, color 0.14s;
  position: relative;
  margin-bottom: 2px;
  border-left: 3px solid transparent;
  user-select: none;
}
.nav-item:hover { background: var(--sidebar-hover-bg); color: rgba(255,255,255,0.85); }
.nav-item.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-text-active);
  border-left-color: rgba(255,255,255,0.7);
  font-weight: 600;
}
.nav-item-icon { text-align: center; flex-shrink: 0; }
.nav-item-label { font-size: 13px; font-weight: 500; line-height: 1.2; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.nav-badge {
  position: absolute; top: 5px; right: 10px;
  background: var(--color-error, #dc2626); color: white;
  font-size: 10px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.nav-divider {
  height: 1px; background: rgba(255,255,255,0.10);
  margin: 10px 10px;
}

.sidebar-bottom {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.btn-signout {
  width: 100%; height: 38px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm); color: rgba(255,255,255,0.65);
  font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background 0.14s, color 0.14s;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.btn-signout:hover { background: rgba(255,255,255,0.14); color: white; }
.btn-signout svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── SIDEBAR: UITSCHUIFBARE ICONENLIJST ── */
.sidebar-icon-nav {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; padding: 20px 8px 10px 8px; gap: 8px;
  overflow: hidden;
}
#sidebar.expanded .sidebar-icon-nav { align-items: stretch; padding: 10px 10px; }

.sidebar-icon-item {
  display: flex; flex-direction: column; align-items: center;
  width: 64px; padding: 10px 4px 9px;
  border-radius: var(--radius-sm); cursor: pointer;
  color: rgba(255,255,255,0.65);
  transition: background 0.14s, color 0.14s, box-shadow 0.14s;
  overflow: visible; position: relative;
  background: rgba(255,255,255,0.07);
  border-left: 3px solid transparent;
}
.sidebar-icon-item:hover {
  background: rgba(255,255,255,0.15); color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  border-left-color: rgba(255,255,255,0.2);
}
.sidebar-icon-item.active {
  background: rgba(255,255,255,0.92);
  color: var(--text);
  border-left-color: #a8c090;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.sidebar-icon-item.active .sidebar-item-label { color: var(--text); }
#sidebar.expanded .sidebar-icon-item {
  flex-direction: row; width: 100%;
  padding: 11px 14px; gap: 14px; align-items: center; overflow: hidden;
}
#sidebar.expanded .sidebar-icon-item.active .sidebar-item-label { color: var(--text); }
#sidebar.expanded .sidebar-icon-item.active .sidebar-item-desc { color: rgba(48,41,34,0.55); }

.sidebar-item-icon-wrap {
  position: relative; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-item-icon-wrap .material-symbols-outlined { font-size: 24px; }

.sidebar-icon-badge {
  position: absolute; top: -5px; right: -8px;
  background: var(--color-error, #dc2626); color: white;
  font-size: 9px; font-weight: 700;
  min-width: 15px; height: 15px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1; pointer-events: none;
}

.sidebar-item-text {
  display: flex; flex-direction: column; align-items: center; width: 100%;
}
#sidebar.expanded .sidebar-item-text { align-items: flex-start; flex: 1; overflow: hidden; }

.sidebar-item-label {
  font-size: 10px; font-weight: 500;
  color: rgba(255,255,255,0.65); text-align: center;
  margin-top: 4px; line-height: 1.2; white-space: nowrap;
}
#sidebar.expanded .sidebar-item-label {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.9); text-align: left; margin-top: 0;
}

.sidebar-item-desc { display: none; }
#sidebar.expanded .sidebar-item-desc {
  display: block; font-size: 11px; color: rgba(255,255,255,0.42);
  line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Tooltip alleen in collapsed mode */
.sidebar-icon-item[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute; left: calc(100% + 12px); top: 50%;
  transform: translateY(-50%);
  background: rgba(20,20,20,0.92); color: white;
  font-size: 12px; font-weight: 500;
  padding: 5px 11px; border-radius: 6px;
  white-space: nowrap; pointer-events: none;
  z-index: 300; font-family: 'Poppins', sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
#sidebar.expanded .sidebar-icon-item[data-tooltip]:hover::after { display: none; }

/* Toggle knop */
.sidebar-toggle {
  padding: 14px 0; flex-shrink: 0;
  display: flex; justify-content: center; align-items: center;
  cursor: pointer; color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(255,255,255,0.08);
  transition: color 0.14s;
}
.sidebar-toggle:hover { color: rgba(255,255,255,0.75); }
.sidebar-toggle .material-symbols-outlined { font-size: 18px; }

/* ── MAIN WRAP ── */
.main-wrap {
  flex: 1; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}

/* ── USER AVATAR (topbar) ── */
.user-avatar-wrap {
  position: absolute; top: 12px; right: 18px; z-index: 190;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
}
.user-topbar-info {
  text-align: right;
}
.user-topbar-role {
  font-size: 11px; font-weight: 400; color: var(--text-muted);
  line-height: 1.3;
}
.user-topbar-namedept {
  font-size: 13.5px; font-weight: 700; color: var(--text);
  line-height: 1.25; letter-spacing: -0.2px;
}
.user-topbar-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-light); color: #2d4a3e;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s;
  user-select: none; flex-shrink: 0;
}
.user-topbar-avatar:hover { background: #d9d4c7; }
.user-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  min-width: 190px; overflow: hidden;
}
.user-dropdown.open { display: block; }
.user-dropdown-item {
  padding: 11px 16px; font-size: 13.5px; cursor: pointer;
  color: var(--text); display: flex; align-items: center; justify-content: space-between;
  font-family: 'Poppins', sans-serif;
}
.user-dropdown-item:hover { background: var(--bg); }
.user-dropdown-item.disabled { opacity: 0.5; cursor: default; pointer-events: none; }
.user-dropdown-divider { height: 1px; background: var(--border); margin: 2px 0; }
.badge-soon {
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  background: var(--bg); border-radius: 4px; padding: 2px 6px;
}

/* Mobile hamburger */
#mobile-topbar {
  display: none; position: fixed; top: 0; left: 0; right: 0; height: 56px;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 16px; align-items: center; justify-content: space-between;
  z-index: 150; box-shadow: var(--shadow-xs);
}
.hamburger {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: none; border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); font-size: 18px;
}
.hamburger:hover { background: var(--bg); }
#sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 199;
}

@media (max-width: 768px) {
  #mobile-topbar { display: flex; }
  #sidebar {
    position: fixed; top: 0; left: 0; height: 100vh;
    transform: translateX(-100%);
  }
  #sidebar.open { transform: translateX(0); }
  #sidebar-overlay { display: block; opacity: 0; pointer-events: none; transition: opacity 0.28s; }
  #sidebar-overlay.open { opacity: 1; pointer-events: all; }
  #main-content { margin-top: 56px; }
}

/* ── MAIN CONTENT ── */
#main-content {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  background: var(--bg);
  display: flex; flex-direction: column;
  position: relative;
}
.page { display: none; flex: 1; }
.page.active { display: flex; flex-direction: column; }

/* ── PAGE HEADER BAR ── */
.page-topbar {
  height: 60px; background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 240px 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  position: sticky; top: 0; z-index: 100;
}
.page-topbar h1 { font-size: 18px; font-weight: 700; letter-spacing: -0.4px; }
.page-topbar .topbar-actions { display: flex; align-items: center; gap: 10px; }

/* ── PAGE FOOTER ── */
.page-footer {
  padding: 16px 28px;
  font-size: 11px; color: var(--text-light);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content:center; gap: 0;
}
.page-footer a {
  color: var(--text-light); text-decoration: none;
  cursor: pointer;
}
.page-footer a:hover { color: var(--text-muted); }

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 7px 28px; font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 5px;
  background: var(--white); flex-shrink: 0;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 60px;
}
.breadcrumb-link {
  color: var(--text-muted); cursor: pointer;
  transition: color 0.14s; text-decoration: none;
}
.breadcrumb-link:hover { color: var(--text); }
.breadcrumb-sep { color: var(--text-light); font-size: 11px; }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ── CONTENT BODY ── */
.page-body { padding: 28px; flex: 1; width: 100%; }

/* ── STATUS BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 600;
}
.badge-green { background: var(--color-success-bg); color: var(--color-success-text); }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-gray { background: #f3f4f6; color: #374151; }

/* ── NOTIFICATION BAR ── */
.notif-alert {
  background: #fffbeb; border: 1.5px solid #f59e0b;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-sm); padding: 14px 18px;
  margin-bottom: 24px;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; line-height: 1.55;
}
.notif-alert-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.notif-label { font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: #b45309; margin-bottom: 3px; }
.notif-text { color: #92400e; }

/* ═══════════════════════════════════════════
   PAGE: DASHBOARD
═══════════════════════════════════════════ */
.greeting-row { margin-bottom: 24px; }
.greeting-row h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 4px; }
.greeting-row .sub { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sub-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-light); }

.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 640px) { .quick-actions { grid-template-columns: 1fr; } }

.action-card {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 20px 20px 22px; cursor: pointer;
  transition: all 0.18s ease; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  user-select: none;
}
.action-card:hover { box-shadow: var(--shadow); border-color: rgba(28,140,122,0.30); transform: translateY(-2px); }
.action-card:active { transform: translateY(0); }
.action-card-icon {
  width: 40px; height: 40px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.action-card-label { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.2; }
.action-card-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; margin-top: -4px; }

.coming-soon-veil {
  position: absolute; inset: 0;
  background: rgba(244,246,244,0.75); backdrop-filter: blur(2px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; opacity: 0; transition: opacity 0.18s;
  border-radius: calc(var(--radius) - 1px);
}
.action-card:hover .coming-soon-veil { opacity: 1; }
.cs-pill {
  background: var(--green); color: white;
  font-size: 11px; font-weight: 700; letter-spacing: 0.7px;
  text-transform: uppercase; padding: 4px 12px; border-radius: 99px;
}

/* Section label */
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.7px;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 14px;
}

/* Activity table */
.activity-table { width: 100%; border-collapse: collapse; }
.activity-table th {
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--text-muted);
  padding: 14px 16px 12px; text-align: left;
  border-bottom: 1.5px solid var(--border);
}
.activity-table td {
  padding: 14px 16px; font-size: 13.5px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.activity-table tr:last-child td { border-bottom: none; }
.activity-table tbody tr:hover td { background: var(--green-xlight); cursor: pointer; }
.type-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  background: var(--bg); padding: 3px 9px; border-radius: 99px;
  border: 1px solid var(--border);
}
.type-tag .material-symbols-outlined { font-size: 14px; }
.badge .material-symbols-outlined { font-size: 14px; }

/* ── DASHBOARD BANNER ── */
.dashboard-banner {
  /*background-image: url('../images/delivery.png');*/
  background-color: var(--green); color: white;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  background-blend-mode: multiply;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 0;
  min-height: 200px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
  &[data-image='packing']{
    background-image: url('../images/banner-packing.jpg');
  }
  &[data-image='delivery']{
    background-image: url('../images/banner-delivery.jpg');
  }
  &[data-image='first-aid']{
    background-image: url('../images/banner-first-aid.jpg');
  }
}
.dashboard-banner::before {
  content: '';
  position: absolute; bottom: -60px; right: 160px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.04); pointer-events: none;
}
.dashboard-banner::after {
  content: '';
  position: absolute; top: -50px; left: 40%;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255,255,255,0.03); pointer-events: none;
}
.banner-content { display: flex; align-items: center; gap: 18px; flex: 1; position: relative; z-index: 1; }
.banner-icon-wrap {
  width: 48px; height: 48px; border-radius: 13px;
  background: rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.banner-icon-wrap .material-symbols-outlined { font-size: 26px; color: white; }
.banner-text { flex: 1; }
.banner-title { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; margin-bottom: 5px; }
.banner-desc { font-size: 12.5px; color: rgba(255,255,255,0.72); line-height: 1.55; max-width: 480px; }
.banner-graphic {
  font-size: 85px; opacity: 0.9; flex-shrink: 0;
  margin-left: 16px; line-height: 1; position: relative; z-index: 1;
  pointer-events: none; user-select: none;
  display: flex; align-items: center;
}
.banner-close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.14); border: none;
  color: rgba(255,255,255,0.8); cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.14s; line-height: 1;
}
.banner-close:hover { background: rgba(255,255,255,0.25); }
.banner-nav {
  position: absolute; bottom: 12px; right: 14px; z-index: 2;
  display: flex; align-items: center; gap: 5px;
}
.banner-arrow {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,0.14); border: none;
  color: rgba(255,255,255,0.8); cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.14s;
}
.banner-arrow:hover { background: rgba(255,255,255,0.26); }
.banner-dots { display: flex; gap: 4px; align-items: center; }
.banner-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.3); cursor: pointer;
  transition: background 0.14s;
}
.banner-dot.active { background: rgba(255,255,255,0.85); }

/* Bolletjes buiten de banner */
.banner-dots-outer {
  display: flex; justify-content: center; gap: 7px;
  margin-top: 10px; margin-bottom: 20px;
}
.banner-dots-outer .banner-dot {
  width: 8px; height: 8px;
  background: rgba(48,41,34,0.18);
}
.banner-dots-outer .banner-dot.active { background: var(--text); }

/* ── TILE GRID ── */
.tiles-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 4px;
}
@media (max-width: 820px) { .tiles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tiles-grid { grid-template-columns: 1fr; } }

.tile-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 20px 18px 18px; cursor: pointer;
  transition: all 0.18s ease; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
  user-select: none;
}
.tile-card:hover { box-shadow: var(--shadow); border-color: rgba(28,140,122,0.22); transform: translateY(-2px); }
.tile-card:active { transform: translateY(0); }
.tile-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px; flex-shrink: 0;
}
.tile-icon .material-symbols-outlined { font-size: 22px; color: var(--text); }
.tile-title { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.2; }
.tile-desc { font-size: 12px; color: var(--text-muted); line-height: 1.45; }

/* ── ACTIEVE VS BINNENKORT TEGELS ── */
.tile-card:not(:has(.tile-soon-badge)) .tile-icon { background: rgba(48,56,35,0.08); }
.tile-card:not(:has(.tile-soon-badge)) .tile-icon .material-symbols-outlined { color: var(--green); }
.tile-card:not(:has(.tile-soon-badge)):hover { background: rgba(48,56,35,0.04); }

.tile-card:has(.tile-soon-badge) { background: #F0EDE6; cursor: default; }
.tile-card:has(.tile-soon-badge):hover { box-shadow: var(--shadow-sm); border-color: var(--border-light); transform: none; }
.tile-card:has(.tile-soon-badge) .tile-icon { background: rgba(48,41,34,0.06); }
.tile-card:has(.tile-soon-badge) .tile-icon .material-symbols-outlined { opacity: 0.4; }
.tile-card:has(.tile-soon-badge) .tile-title { color: rgba(48,41,34,0.45); font-weight: 600; }
.tile-card:has(.tile-soon-badge) .tile-desc { color: rgba(48,41,34,0.30); }

.tile-soon-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.06); color: rgba(48,41,34,0.45);
  font-size: 10px; font-weight: 500;
  border-radius: 20px; padding: 2px 8px;
  line-height: 1.4; pointer-events: none;
}

/* ── LEGE STATE BESTELLINGEN ── */
.orders-empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 20px; text-align: center; gap: 8px;
}
.orders-empty-state .material-symbols-outlined { font-size: 48px; opacity: 0.2; color: var(--text); font-variation-settings: 'wght' 200; }
.orders-empty-title { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.orders-empty-desc { font-size: 12px; color: var(--text-light); line-height: 1.5; }

/* ═══════════════════════════════════════════
   PAGE: BESTELLINGEN
═══════════════════════════════════════════ */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  padding: 10px 20px; background: none; border: none;
  font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--text-muted); cursor: pointer; position: relative; bottom: -2px;
  border-bottom: 2px solid transparent; transition: color 0.15s;
}
.tab-btn.active { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }
.tab-btn:hover { color: var(--text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.order-card {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm); padding: 20px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 16px;
  transition: box-shadow 0.15s;
}
.order-card:hover { box-shadow: var(--shadow); }
.order-card-main { flex: 1; }
.order-card-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.order-card-sub { font-size: 12px; color: var(--text-muted); }
.order-card-meta { font-size: 12px; color: var(--text-light); margin-top: 6px; }
.order-card-clickable { cursor: pointer; transition: box-shadow 0.15s, transform 0.15s; }
.order-card-clickable:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.order-card-icon { font-size: 24px; color: var(--green); flex-shrink: 0; }
.order-card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }

.btn-retour {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: 25px;
  font-size: 12px; font-weight: 600; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  background: var(--white); color: var(--text-muted);
  border: 1.5px solid var(--border);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.btn-retour:hover {
  border-color: rgba(28,140,122,0.45);
  color: var(--text);
  background: var(--green-xlight);
}
.btn-retour .material-symbols-outlined { font-size: 15px; }

.retour-info-banner {
  background: var(--green-xlight);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.retour-product-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: 8px;
  background: var(--white);
  transition: border-color 0.15s, background 0.15s;
}
.retour-product-row:has(.retour-product-check:checked) {
  border-color: var(--green);
  background: var(--green-xlight);
}
.retour-product-check {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}
.retour-product-naam {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.retour-product-cnk { font-size: 12px; color: var(--text-muted); }
.retour-product-aantal-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.retour-product-aantal {
  width: 52px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  padding: 0 6px;
}
.retour-product-aantal:disabled { opacity: 0.35; background: var(--bg); }

.detail-info-grid { display: flex; flex-direction: column; gap: 12px; }
.detail-info-row { display: flex; gap: 12px; align-items: baseline; }
.detail-info-label { font-size: 12px; color: var(--text-muted); min-width: 120px; flex-shrink: 0; }
.detail-info-value { font-size: 14px; font-weight: 500; color: var(--text); }

.detail-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.detail-table thead tr { border-bottom: 1.5px solid var(--border-light); }
.detail-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-muted); padding: 0 12px 10px 0; }
.detail-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--border-light); color: var(--text); }
.detail-table tbody tr:last-child td { border-bottom: none; }
.detail-table td.text-muted { color: var(--text-muted); }

.order-detail-pending-banner {
  display: flex; align-items: center; gap: 10px;
  background: var(--green-xlight); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
  font-size: 13px; color: var(--text); margin-bottom: 20px;
}
.order-detail-pending-banner .material-symbols-outlined { color: var(--green); font-size: 20px; flex-shrink: 0; }

.step-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.7px;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 10px; margin-top: 20px;
}
.step-label:first-child { margin-top: 0; }

.form-select {
  width: 100%; height: 44px;
  border: 1px solid rgba(28,140,122,0.45); border-radius: 25px;
  padding: 0 18px;
  font-family: 'Poppins', sans-serif; font-size: 14px; color: var(--text);
  background: rgba(191,233,226,0.55);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23302922' stroke-width='2' stroke-opacity='0.55'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  cursor: pointer; outline: none;
  transition: border-color 0.15s;
}
.form-select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(28,140,122,0.10); background: rgba(191,233,226,0.8); }

.search-wrap { position: relative; }
.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-light); }
.search-icon svg { width: 15px; height: 15px; }
.search-wrap .form-input { padding-left: 40px; }

.ac-drop {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  z-index: 50; overflow: hidden; display: none;
}
.ac-drop.open { display: block; }
.ac-item {
  padding: 11px 15px; cursor: pointer; font-size: 13px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.12s;
  display: flex; align-items: center; justify-content: space-between;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover { background: var(--green-xlight); }
.ac-name { font-weight: 600; }
.ac-cnk { font-size: 12px; color: var(--text-muted); }

/* Order list table */
.order-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.order-table th {
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--text-muted);
  padding: 0 10px 10px; text-align: left;
  border-bottom: 1.5px solid var(--border);
}
.order-table td {
  padding: 12px 10px; font-size: 13px;
  border-bottom: 1px solid var(--border-light); vertical-align: middle;
}
.order-table tr:last-child td { border-bottom: none; }

.qty-ctrl { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn {
  width: 28px; height: 28px; background: none; border: none;
  font-size: 16px; cursor: pointer; color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s;
}
.qty-btn:hover { background: var(--green-light); color: var(--green); }
.qty-num { min-width: 28px; text-align: center; font-size: 13px; font-weight: 600; border-left: 1px solid var(--border); border-right: 1px solid var(--border); line-height: 28px; }
.del-btn {
  width: 28px; height: 28px; border-radius: 6px; border: none;
  background: none; cursor: pointer; color: var(--text-light);
  transition: background 0.12s, color 0.12s;
  display: flex; align-items: center; justify-content: center;
}
.del-btn:hover { background: #fee2e2; color: var(--color-error, #dc2626); }

.form-textarea {
  width: 100%; min-height: 80px;
  border: 1px solid rgba(28,140,122,0.45); border-radius: 16px;
  padding: 14px 18px;
  font-family: 'Poppins', sans-serif; font-size: 14px; color: var(--text);
  background: rgba(191,233,226,0.55);
  resize: vertical; outline: none;
  transition: border-color 0.15s;
}
.form-textarea::placeholder { color: rgba(48,41,34,0.45); }
.form-textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(28,140,122,0.10); background: rgba(191,233,226,0.8); }

.empty-panel { text-align: center; padding: 28px 16px; color: var(--text-muted); font-size: 13px; }
.empty-panel-icon { font-size: 28px; margin-bottom: 8px; }

/* ═══════════════════════════════════════════
   PAGE: BERICHTEN — MAIL STIJL
═══════════════════════════════════════════ */
#page-messages {
  overflow: hidden;
}
.mail-cols-row {
  flex: 1; display: flex; overflow: hidden;
}

/* Linkerkolom: berichtenlijst */
.mail-list-col {
  width: 300px; flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.mail-list-header {
  padding: 16px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.mail-list-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.2px; }
.mail-search {
  width: 100%; height: 34px;
  border: 1px solid rgba(28,140,122,0.35); border-radius: 99px;
  padding: 0 14px;
  font-family: 'Poppins', sans-serif; font-size: 13px; color: var(--text);
  background: rgba(191,233,226,0.55); outline: none;
  transition: border-color 0.15s; margin-bottom: 10px;
}
.mail-search::placeholder { color: rgba(48,41,34,0.40); }
.mail-search:focus { border-color: var(--green); background: rgba(191,233,226,0.85); }
.mail-list-items { flex: 1; overflow-y: auto; }

/* Individueel bericht in de lijst */
.mail-item {
  padding: 13px 16px 13px 20px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: background 0.12s;
  position: relative;
}
.mail-item:hover { background: var(--green-xlight); }
.mail-item.active { background: var(--green-xlight); border-right: 3px solid var(--green); }
.mail-item.unread::before {
  content: ''; position: absolute; left: 7px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
}
.mail-item-row1 {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 3px;
}
.mail-item-sender {
  font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;
}
.mail-item.unread .mail-item-sender { font-weight: 800; }
.mail-item-time { font-size: 11px; color: var(--text-light); flex-shrink: 0; margin-left: 8px; }
.mail-item-subject {
  font-size: 13px; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.mail-item.unread .mail-item-subject { font-weight: 700; }
.mail-item-preview {
  font-size: 12px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mail-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.mail-ticket-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1px 8px;
  letter-spacing: 0.3px;
}

/* Rechterkolom: berichtdetail */
.mail-detail-col {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
  background: var(--white);
}
.mail-detail-topbar {
  padding: 16px 24px; border-bottom: 1px solid var(--border);
  flex-shrink: 0; box-shadow: var(--shadow-xs);
}
.mail-detail-subject {
  font-size: 19px; font-weight: 800; letter-spacing: -0.4px; color: var(--text);
  margin-bottom: 6px;
}
.mail-detail-ticket {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 6px 0 10px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 4px;
}
.mail-detail-ticket .material-symbols-outlined {
  font-size: 16px;
  color: var(--green);
}
.mail-detail-ticket-status {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
  background: var(--green-xlight);
  color: var(--green);
  border: 1px solid rgba(28,140,122,0.25);
}
.mail-meta-row {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 13px; margin-bottom: 5px; flex-wrap: wrap;
}
.mail-meta-label { font-weight: 600; color: var(--text-muted); min-width: 32px; }
.mail-meta-value { color: var(--text); }
.mail-meta-email { color: var(--text-muted); font-size: 12px; }

.mail-body-wrap { flex: 1; overflow-y: auto; padding: 28px 32px; background: var(--bg); }
.mail-body-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
  padding: 28px 32px; margin-bottom: 16px;
}
.mail-body-text {
  font-size: 14.5px; line-height: 1.75; color: var(--text);
  white-space: pre-wrap; font-family: 'Poppins', sans-serif;
}

/* Antwoordblok na versturen */
.mail-reply-block {
  background: #f5efe4; border-radius: var(--radius);
  border: 1px solid rgba(28,140,122,0.16);
  padding: 20px 28px; margin-bottom: 16px;
}
.mail-reply-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.7px;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.mail-reply-label::before {
  content: ''; display: inline-block; width: 3px; height: 14px;
  background: var(--green); border-radius: 2px;
}
.mail-reply-text {
  font-size: 14px; line-height: 1.7; color: var(--text);
  white-space: pre-wrap; font-family: 'Poppins', sans-serif;
}

/* Antwoordveld onderaan */
.mail-reply-form {
  padding: 16px 24px; background: var(--white);
  border-top: 1px solid var(--border); flex-shrink: 0;
}
.mail-reply-divider {
  font-size: 11px; font-weight: 700; letter-spacing: 0.7px;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 10px;
}
.mail-reply-textarea {
  width: 100%; min-height: 88px;
  border: 1px solid rgba(28,140,122,0.45); border-radius: 16px;
  padding: 14px 18px;
  font-family: 'Poppins', sans-serif; font-size: 14px; color: var(--text);
  background: rgba(191,233,226,0.55);
  resize: vertical; outline: none; margin-bottom: 10px;
  transition: border-color 0.15s;
}
.mail-reply-textarea::placeholder { color: rgba(48,41,34,0.45); }
.mail-reply-textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(28,140,122,0.10); background: rgba(191,233,226,0.8); }
.mail-reply-row { display: flex; justify-content: flex-end; }

.mail-empty-state {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px; text-align: center;
  gap: 10px;
}
.mail-empty-icon { font-size: 40px; opacity: 0.5; }

@media (max-width: 768px) {
  #page-messages { flex-direction: column !important; }
  .mail-list-col { width: 100%; max-height: 240px; border-right: none; border-bottom: 1px solid var(--border); }
  .mail-body-wrap { padding: 16px; }
  .mail-body-card { padding: 18px 20px; }
  .mail-detail-topbar { padding: 14px 16px; }
}

/* ── MODAL ── */
.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,0.42);
  backdrop-filter: blur(3px); z-index: 600;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-bg.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; width: 100%; max-width: 460px;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px); transition: transform 0.22s;
}
.modal-bg.open .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.modal-title { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; }
.modal-close {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--bg); border: none; cursor: pointer;
  font-size: 16px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s;
}
.modal-close:hover { background: var(--border); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ═══════════════════════════════════════════
   PAGE: COMING SOON
═══════════════════════════════════════════ */
.coming-soon-page {
  flex: 1; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px; text-align: center; padding: 48px;
}
.cs-icon-wrap {
  width: 80px; height: 80px; border-radius: 20px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; margin-bottom: 8px;
}
.cs-title { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: var(--text); }
.cs-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; max-width: 360px; }

/* ═══════════════════════════════════════════
   PAGE: BESTELLING PLAATSEN
═══════════════════════════════════════════ */
.order-form-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px; margin-bottom: 20px;
}
.order-form-section-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.7px;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 18px;
}
.order-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 520px) { .order-form-row { grid-template-columns: 1fr; } }
.form-help {
  font-size: 12px; color: var(--text-muted); margin-top: 7px; line-height: 1.45;
}
.order-form-wrap {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}
.order-form-actions {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.of-empty-state {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 0; color: var(--text-muted); font-size: 13px;
}
.of-empty-state .material-symbols-outlined { font-size: 20px; opacity: 0.5; }
.of-add-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  cursor: pointer; padding: 10px 0;
  transition: color 0.14s;
}
.of-add-link:hover { color: var(--text); }
#of-table tfoot td { border-bottom: none; padding-top: 4px; }

.field-required { color: var(--color-error, #dc2626); font-weight: 400; }
.field-error { font-size: 12px; color: var(--color-error, #dc2626); margin-top: 6px; }
.form-input.input-error { border-color: var(--color-error, #dc2626); background: rgba(220,38,38,0.04); }
.form-input.input-error:focus { border-color: var(--color-error, #dc2626); box-shadow: 0 0 0 3px rgba(220,38,38,0.10); }

.order-review-intro {
  display: flex; align-items: center; gap: 14px;
  background: var(--green-xlight); border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 18px 22px;
  margin-bottom: 20px;
}
.order-review-intro .material-symbols-outlined { font-size: 28px; color: var(--text); opacity: 0.7; flex-shrink: 0; }
.order-review-intro-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.order-review-intro-sub { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }

.order-review-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border-light);
}
.order-review-row:last-child { border-bottom: none; padding-bottom: 0; }
.order-review-label { font-size: 12px; font-weight: 600; color: var(--text-muted); min-width: 60px; text-transform: uppercase; letter-spacing: 0.4px; }
.order-review-value { font-size: 14px; color: var(--text); font-weight: 500; }
.order-form-success-wrap {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; text-align: center; padding: 80px 24px;
}
.order-form-success-icon-symbol {
  font-size: 48px;
  color: var(--color-success);
}
.order-form-success-title {
  font-size: 16px; font-weight: 600; color: var(--text);
  max-width: 360px; line-height: 1.55;
}

/* ═══════════════════════════════════════════
   PAGE: MELDINGEN
═══════════════════════════════════════════ */
.notif-filter-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.notif-tabs {
  display: flex; gap: 3px;
  background: var(--white); border: 1.5px solid var(--border-light);
  border-radius: 99px; padding: 4px;
  box-shadow: var(--shadow-xs);
}
.notif-tab {
  padding: 7px 18px; border-radius: 99px;
  border: none; background: none; cursor: pointer;
  font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 500;
  color: var(--text-muted); transition: background 0.14s, color 0.14s;
  white-space: nowrap;
}
.notif-tab.active { background: var(--sidebar-bg); color: white; font-weight: 600; }
.notif-tab:not(.active):hover { color: var(--text); background: var(--bg); }

.notif-card {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm); margin-bottom: 12px;
  cursor: pointer; transition: box-shadow 0.15s, border-color 0.15s;
  overflow: hidden;
}
.notif-card:hover { box-shadow: var(--shadow); }
.notif-card.unread {
  border-left: 3px solid var(--green);
  background: var(--white);
}
.notif-card.expanded { border-color: var(--border); box-shadow: var(--shadow); }

.notif-card-inner {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 20px;
}
.notif-icon-circle {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-icon-circle .material-symbols-outlined { font-size: 20px; }

.notif-card-body { flex: 1; min-width: 0; }
.notif-card-title {
  font-size: 14px; font-weight: 500; color: var(--text);
  margin-bottom: 5px; line-height: 1.3;
}
.notif-card.unread .notif-card-title { font-weight: 700; }
.notif-card-text {
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-card.expanded .notif-card-text { display: block; overflow: visible; }
.notif-card-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.notif-card-actions {
  margin-top: 10px;
}
.notif-read-btn {
  border-color: rgba(28,140,122,0.45);
  color: var(--text);
}
.notif-read-btn:hover {
  border-color: rgba(28,140,122,0.45);
  color: var(--text);
}
.notif-card-date { font-size: 12px; color: var(--text-light); }
.notif-dept-tag {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 99px; padding: 2px 9px; line-height: 1.4;
}

.notif-unread-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0; margin-top: 4px;
}

.notif-empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 64px 20px; text-align: center; gap: 10px;
}
.notif-empty-state .material-symbols-outlined {
  font-size: 56px; opacity: 0.15; color: var(--text);
  font-variation-settings: 'wght' 200;
}
.notif-empty-title { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.notif-empty-sub { font-size: 13px; color: var(--text-light); }

/* ═══════════════════════════════════════════
   PAGE: NIEUWE OPNAME
═══════════════════════════════════════════ */
.admission-wrap { max-width: 720px; margin: 0 auto; }

.admission-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 10px; margin-top: 4px;
}
.admission-section-label:first-child { margin-top: 0; }

.admission-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px; margin-bottom: 24px;
}

.adm-optional { font-weight: 400; color: var(--text-muted); font-size: 13px; }

.adm-date-field { max-width: 260px; }

.form-select.input-error { border-color: var(--color-error, #dc2626); background: rgba(220,38,38,0.04); }

.adm-checkbox-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text); cursor: pointer; user-select: none;
}
.adm-checkbox {
  width: 16px; height: 16px; accent-color: var(--green);
  cursor: pointer; flex-shrink: 0;
}

.adm-upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  background: rgba(191,233,226,0.35);
  padding: 36px 24px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
.adm-upload-zone:hover { background: rgba(48,56,35,0.05); border-color: rgba(48,56,35,0.35); }
.adm-upload-zone.drag-over { background: rgba(48,56,35,0.08); border-color: var(--green); }
.adm-upload-icon {
  font-size: 34px; color: var(--text-muted); opacity: 0.55;
  font-variation-settings: 'wght' 200;
}
.adm-upload-text { font-size: 14px; font-weight: 600; color: var(--text); }
.adm-upload-sub { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.adm-upload-formats { font-size: 11px; color: var(--text-light); letter-spacing: 0.4px; }

.adm-file-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.adm-file-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 8px 12px;
  font-size: 13px; color: var(--text);
}
.adm-file-item .material-symbols-outlined { font-size: 16px; color: var(--text-muted); }
.adm-file-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-file-remove {
  background: none; border: none; cursor: pointer;
  color: var(--text-light); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 4px;
  transition: background 0.12s, color 0.12s;
}
.adm-file-remove:hover { background: #fee2e2; color: var(--color-error, #dc2626); }

.adm-flow-selector {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 28px;
}
@media (max-width: 520px) { .adm-flow-selector { grid-template-columns: 1fr; } }
.adm-flow-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 2px solid var(--border-light); box-shadow: var(--shadow-sm);
  padding: 18px 20px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  display: flex; flex-direction: column; gap: 6px; user-select: none;
}
.adm-flow-card:hover { border-color: rgba(48,56,35,0.25); box-shadow: var(--shadow); }
.adm-flow-card.selected { border-color: var(--green); background: rgba(48,56,35,0.05); box-shadow: var(--shadow); }
.adm-flow-card-title { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.2; }
.adm-flow-card.selected .adm-flow-card-title { color: var(--green); }
.adm-flow-card-sub { font-size: 12px; color: var(--text-muted); line-height: 1.45; }

.form-success-icon {
  font-size: 48px;
  color: var(--color-success);
}
.admission-success-wrap {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; text-align: center; padding: 80px 24px;
}
.admission-success-title {
  font-size: 16px; font-weight: 600; color: var(--text);
  max-width: 380px; line-height: 1.55;
}
.admission-success-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ═══ PAGE: WIJZIGINGEN ═══ */
.changes-steps {
  display: flex; align-items: flex-start; margin-bottom: 32px;
}
.changes-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0;
}
.changes-step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--text-muted);
  background: var(--white); transition: all 0.2s;
}
.changes-step.active .changes-step-circle { background: var(--green); border-color: var(--green); color: white; }
.changes-step.done .changes-step-circle { background: var(--green); border-color: var(--green); color: white; }
.changes-step-label {
  font-size: 11px; font-weight: 600; color: var(--text-muted); text-align: center; white-space: nowrap;
}
.changes-step.active .changes-step-label { color: var(--green); font-weight: 700; }
.changes-step.done .changes-step-label { color: var(--green); }
.changes-step-line {
  flex: 1; height: 2px; background: var(--border-light); margin: 18px 8px 0; min-width: 20px;
}
.changes-step-line.done { background: var(--green); }
.changes-type-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px;
}
@media (max-width: 520px) { .changes-type-grid { grid-template-columns: 1fr; } }
.changes-type-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 2px solid var(--border-light); box-shadow: var(--shadow-sm);
  padding: 16px 18px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  display: flex; align-items: flex-start; gap: 14px; user-select: none;
}
.changes-type-card:hover { border-color: rgba(48,56,35,0.25); box-shadow: var(--shadow); }
.changes-type-card.selected { border-color: var(--green); background: rgba(48,56,35,0.05); box-shadow: var(--shadow); }
.changes-type-icon {
  width: 38px; height: 38px; border-radius: 9px; background: var(--green-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.changes-type-card.selected .changes-type-icon { background: rgba(48,56,35,0.12); }
.changes-type-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; line-height: 1.2; }
.changes-type-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.changes-counter-banner {
  display: flex; align-items: center; gap: 8px;
  background: rgba(48,56,35,0.08); border: 1.5px solid rgba(48,56,35,0.2);
  border-radius: var(--radius); padding: 10px 16px; margin-bottom: 20px;
  font-size: 13px; font-weight: 600; color: var(--green);
}
.chg-radio-group { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.chg-radio-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text); cursor: pointer; user-select: none;
}
.chg-radio {
  width: 16px; height: 16px; accent-color: var(--green); cursor: pointer; flex-shrink: 0;
}

/* ═══ PAGE: NOODKAST ═══ */
.nk-overview-title {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 16px;
}
.nk-action-list { display: flex; flex-direction: column; gap: 12px; }
.nk-action-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light); box-shadow: var(--shadow-sm);
  padding: 20px 18px; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  user-select: none;
}
.nk-action-card:hover {
  background: rgba(48,56,35,0.04);
  border-color: rgba(48,56,35,0.22);
  box-shadow: var(--shadow);
}
.nk-action-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nk-action-icon .material-symbols-outlined { font-size: 26px; color: var(--green); }
.nk-action-body { flex: 1; min-width: 0; }
.nk-action-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.nk-action-desc  { font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.nk-action-chevron { font-size: 20px; color: var(--text-muted); flex-shrink: 0; }
.nk-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  background: none; border: none; padding: 0; cursor: pointer;
  margin-bottom: 20px;
  transition: color 0.15s;
}
.nk-back-btn:hover { color: var(--green); }
.nk-conditional {
  overflow: hidden; max-height: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  opacity: 0;
}
.nk-conditional.hidden { display: none; }
.nk-conditional:not(.hidden) {
  max-height: 200px; opacity: 1;
  padding-top: 16px;
}
.nk-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.nk-table thead tr { background: var(--surface); }
.nk-table th {
  text-align: left; padding: 10px 16px;
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1.5px solid var(--border-light);
}
.nk-table td {
  padding: 11px 16px; color: var(--text);
  border-bottom: 1px solid var(--border-light);
}
.nk-table tbody tr:nth-child(odd)  { background: var(--white); }
.nk-table tbody tr:nth-child(even) { background: var(--surface); }
.nk-table tbody tr:last-child td   { border-bottom: none; }
.nk-table-footer {
  padding: 10px 16px;
  font-size: 12px; color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  background: var(--surface);
}

/* ═══ PAGE: DOCUMENTEN ═══ */
.doc-wrap {
  max-width: 860px; margin: 0 auto; padding: 24px 16px 48px;
}
.doc-filter-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
}
.doc-filter-btn {
  padding: 7px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--green); color: var(--green);
  background: var(--white);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.doc-filter-btn:hover  { background: rgba(48,56,35,0.07); }
.doc-filter-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
.doc-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light); box-shadow: var(--shadow-sm);
  padding: 16px 18px; margin-bottom: 10px;
  transition: background 0.15s, border-color 0.15s;
}
.doc-card:hover { background: rgba(48,56,35,0.03); border-color: rgba(48,56,35,0.18); }
.doc-card-icon { flex-shrink: 0; display: flex; align-items: center; }
.doc-icon { font-size: 32px !important; }
.doc-icon-pdf     { color: #d32f2f; }
.doc-icon-word    { color: #1565c0; }
.doc-icon-generic { color: var(--text-muted); }
.doc-card-body { flex: 1; min-width: 0; }
.doc-card-name {
  font-size: 14px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 5px;
}
.doc-card-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.doc-card-cat {
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .07em;
}
.doc-card-date { font-size: 12px; color: var(--text-muted); }
.doc-card-actions {
  display: flex; gap: 8px; flex-shrink: 0; align-items: center;
}
.doc-btn {
  padding: 6px 12px; font-size: 12px;
  display: inline-flex; align-items: center; gap: 5px;
}
.doc-empty {
  text-align: center; padding: 60px 24px; display: flex;
  flex-direction: column; align-items: center; gap: 12px;
}
.doc-empty-title {
  font-size: 14px; font-weight: 600; color: var(--text);
}
.doc-empty-sub { font-size: 13px; color: var(--text-muted); max-width: 360px; line-height: 1.55; }
.doc-infobar {
  margin-top: 20px; padding: 12px 16px;
  background: var(--surface); border-radius: var(--radius);
  font-size: 12px; color: var(--text-muted); line-height: 1.55;
}
@media (max-width: 600px) {
  .doc-card { flex-wrap: wrap; }
  .doc-card-actions { width: 100%; justify-content: stretch; }
  .doc-btn { flex: 1; justify-content: center; }
}

/* ══════════════════════════════════════
   AGENDA
══════════════════════════════════════ */
.agenda-wrap { max-width: 1100px; margin: 0 auto; padding: 0 0 40px; }


/* Tab panels */
.agenda-tab-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 24px;
  animation: agendaFadeIn 0.15s ease;
}

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

.agenda-tab-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.agenda-invite-btn {
  font-size: 13px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.agenda-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.agenda-filter-btn {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--green);
  background: transparent;
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.agenda-filter-btn.active {
  background: var(--green);
  color: #fff;
}

.agenda-filter-btn:hover:not(.active) { background: rgba(48,56,35,0.07); }

.agenda-items-list { display: flex; flex-direction: column; gap: 10px; }

.agenda-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}

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

.agenda-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 42px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 6px 8px;
  flex-shrink: 0;
}

.agenda-date-day {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.agenda-date-month {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.agenda-date-weekday {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: capitalize;
}

.agenda-item-content { flex: 1; min-width: 0; }

.agenda-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agenda-item-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.agenda-attest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.agenda-attest-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}

.agenda-attest-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.agenda-attest-type { font-size: 12px; color: var(--text-muted); }

.agenda-attest-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.agenda-attest-expiry { font-size: 12px; color: var(--text-muted); }

.agenda-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.agenda-chip--dringend   { background: #fde8e8; color: #c62828; }
.agenda-chip--binnenkort { background: #fff3e0; color: #e65100; }
.agenda-chip--ok         { background: #e8f5e9; color: var(--color-success); }

.agenda-empty {
  text-align: center;
  padding: 40px 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.agenda-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.agenda-modal-overlay.hidden { display: none; }

.agenda-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  overflow: hidden;
}

.agenda-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border-light);
}

.agenda-modal-header h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: 0; }

.agenda-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}

.agenda-modal-close:hover { color: var(--text); }

.agenda-modal-body { padding: 18px 22px 8px; }

.agenda-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--border-light);
}

.agenda-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--green);
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}

.agenda-toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.agenda-toast.hidden { display: none; }

@media (max-width: 760px) {
  .agenda-attest-grid { grid-template-columns: 1fr; }
.agenda-tab-topbar { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════
   OVERLIJDEN
══════════════════════════════════════ */
.overl-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 40px;
}

.overl-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 24px;
}

.overl-helptext {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.5;
}

.overl-date-input { max-width: 240px; }

.overl-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

/* Success state */
.overl-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 24px 40px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.overl-success.hidden { display: none; }

.overl-success-icon {
  font-size: 48px;
  color: var(--color-success);
  margin-bottom: 20px;
}

.overl-success-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}

.overl-success-sub {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.6;
  margin: 0 0 32px;
}

.overl-success-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ══════════════════════════════════════
   ZUURSTOFTHERAPIE
══════════════════════════════════════ */
.zuurstof-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 40px;
}

.zuurstof-date-input { max-width: 240px; }

/* Success state */
.zuurstof-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 24px 40px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.zuurstof-success.hidden { display: none; }

.zuurstof-success-icon {
  font-size: 48px;
  color: var(--color-success);
  margin-bottom: 20px;
}

.zuurstof-success-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}

.zuurstof-success-sub {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.6;
  margin: 0 0 32px;
}

.zuurstof-success-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ═══ PAGE: CONTACT ═══ */
.contact-infobalk {
  display: flex; align-items: center; gap: 12px;
  background: var(--green-xlight);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 24px;
  font-size: 13px; color: var(--text); line-height: 1.5;
}
.contact-infobalk-icon {
  font-size: 22px; color: var(--green); flex-shrink: 0;
}
.admission-success-sub {
  font-size: 13px; color: var(--text-muted);
  max-width: 420px; line-height: 1.6; text-align: center;
}
.contact-success-num {
  font-weight: 700; color: var(--color-success);
}

/* ══════════════════════════════════════
   BEWONERSLIJST
══════════════════════════════════════ */

/* Zoekbalk */
.bewoners-search-wrap {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 20px;
}
.bewoners-search-icon {
  position: absolute;
  left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
  display: flex; align-items: center;
}
.bewoners-search-icon svg { width: 16px; height: 16px; }
.bewoners-search-input {
  width: 100%; height: 46px;
  border: 1px solid var(--border);
  border-radius: 300px;
  padding: 0 20px 0 46px;
  font-family: 'Poppins', sans-serif; font-size: 14px; color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-xs);
}
.bewoners-search-input::placeholder { color: var(--text-muted); }
.bewoners-search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(28,140,122,0.10);
}

/* Tabelwrap */
.bewoners-table-wrap {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

/* Tabel */
.bewoners-table {
  width: 100%;
  border-collapse: collapse;
}
.bewoners-table thead tr {
  border-bottom: 1px solid var(--border-light);
}
.bewoners-table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}
.bewoners-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.12s;
}
.bewoners-table th.sortable:hover { color: var(--text); }
.bewoners-table th.active-sort { color: var(--text); }
.sort-arrow { font-size: 11px; margin-left: 3px; opacity: 0.6; }
.bewoners-table th.active-sort .sort-arrow { opacity: 1; }

.bewoners-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.12s;
}
.bewoners-table tbody tr:last-child { border-bottom: none; }
.bewoners-table tbody tr:hover { background: rgba(48,41,34,0.045); }
.bewoners-table td {
  padding: 13px 16px;
  font-size: 14px; color: var(--text);
}
.bewoners-table td.kamer-col {
  font-weight: 600; font-size: 13px; color: var(--text-muted);
  white-space: nowrap;
}
.bewoners-table td.naam-col { font-weight: 500; }
.bewoners-table td.datum-col { font-size: 13px; color: var(--text-muted); }

/* Status chips */
.status-chip {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 300px;
  font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.status-chip.aanwezig {
  background: #e8f5e9; color: var(--color-success);
}
.status-chip.ziekenhuis {
  background: #fff3e0; color: #e65100;
}
.status-chip.kortverblijf {
  background: #e3f2fd; color: #1565c0;
}

/* Empty state tabel */
.bewoners-empty-state {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  padding: 48px 24px;
  font-size: 14px; color: var(--text-muted);
  text-align: center;
}
.bewoners-empty-state .material-symbols-outlined { font-size: 48px; color: var(--text-light); }

/* Terugknop op detailpagina */
.bewoners-back-btn {
  margin-bottom: 20px;
}

/* Bewonerskaart */
.bewoner-card {
  max-width: 800px;
  margin: 0 auto 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 24px 28px;
}
.bewoner-card-naam {
  font-size: 22px; font-weight: 700; color: var(--text);
  margin-bottom: 16px; letter-spacing: -0.3px;
}
.bewoner-card-meta {
  display: flex; flex-direction: column; gap: 8px;
}
.bewoner-card-meta-item {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; color: var(--text-muted);
}
.bewoner-card-meta-item .material-symbols-outlined {
  font-size: 18px; color: var(--text-light); flex-shrink: 0;
}

/* Historiek */
.bewoner-historiek-wrap {
  max-width: 800px;
  margin: 0 auto 40px;
}
.bewoner-historiek-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-bottom: 20px; letter-spacing: -0.2px;
}

/* Tijdlijn */
.bewoner-timeline {
  display: flex; flex-direction: column;
  gap: 0;
  position: relative;
}
.bewoner-timeline-item {
  display: flex; gap: 0; align-items: flex-start;
  position: relative;
}
.bewoner-timeline-left {
  display: flex; flex-direction: column; align-items: center;
  width: 52px; flex-shrink: 0; margin-right: 16px;
}
.bewoner-timeline-date {
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  text-align: center; line-height: 1.35;
  width: 52px;
}
.bewoner-timeline-line {
  width: 2px; flex: 1; min-height: 24px;
  background: var(--border-light);
  margin-top: 4px;
}
.bewoner-timeline-item:last-child .bewoner-timeline-line { display: none; }

.bewoner-timeline-dot {
  width: 12px; height: 12px; border-radius: 50%;
  flex-shrink: 0; margin-top: 3px;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px currentColor;
}
.bewoner-timeline-dot.bestelling { color: #1565c0; background: #1565c0; }
.bewoner-timeline-dot.wijziging  { color: var(--color-success); background: var(--color-success); }
.bewoner-timeline-dot.contact    { color: #78909c; background: #78909c; }
.bewoner-timeline-dot.opname     { color: #e65100; background: #e65100; }
.bewoner-timeline-dot.overlijden { color: #e65100; background: #e65100; }

.bewoner-timeline-body {
  flex: 1; padding-bottom: 24px;
}
.bewoner-timeline-type {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 3px;
}
.bewoner-timeline-type.bestelling { color: #1565c0; }
.bewoner-timeline-type.wijziging  { color: var(--color-success); }
.bewoner-timeline-type.contact    { color: #78909c; }
.bewoner-timeline-type.opname     { color: #e65100; }
.bewoner-timeline-type.overlijden { color: #e65100; }
.bewoner-timeline-desc {
  font-size: 14px; color: var(--text); line-height: 1.5;
}

.bewoner-timeline-item--link .bewoner-timeline-body {
  cursor: pointer;
}
.bewoner-timeline-item--link .bewoner-timeline-body:hover .bewoner-timeline-desc {
  color: var(--green);
  text-decoration: underline;
}
.bewoner-timeline-item--link .bewoner-timeline-body:hover {
  color: var(--green);
}

/* Empty historiek */
.bewoner-historiek-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 40px 24px;
  font-size: 14px; color: var(--text-muted);
  text-align: center; line-height: 1.6;
}

@media (max-width: 700px) {
  .bewoners-table td.datum-col { display: none; }
  .bewoners-table th:nth-child(3) { display: none; }
  .bewoner-card { padding: 18px; }
  .bewoner-card-naam { font-size: 18px; }
}

/* ══════════════════════════════════════
   TOOLS
══════════════════════════════════════ */
.tools-wrap {
  max-width: 860px; margin: 0 auto; padding: 24px 16px 48px;
}
.tools-infobar-top {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 10px 14px; margin-bottom: 24px;
  font-size: 12px; color: var(--text-muted); line-height: 1.5;
}
.tools-infobar-icon {
  font-size: 18px; color: var(--text-light); flex-shrink: 0;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.tools-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light); box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  text-decoration: none; color: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.tools-card:hover {
  background: rgba(48,56,35,0.04);
  border-color: rgba(48,56,35,0.18);
}
.tools-card-icon {
  font-size: 24px !important; color: #3d7a3a; flex-shrink: 0;
}
.tools-card-body { flex: 1; min-width: 0; }
.tools-card-name {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 4px;
}
.tools-card-desc {
  font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 5px;
}
.tools-card-url {
  font-size: 11px; color: var(--text-light); line-height: 1;
}
.tools-card-btn {
  flex-shrink: 0; pointer-events: none;
}
.tools-infobar-bottom {
  margin-top: 20px; padding: 12px 16px;
  background: var(--bg); border-radius: var(--radius-sm);
  font-size: 12px; color: var(--text-muted); line-height: 1.55;
}
@media (max-width: 600px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tools-card-btn { display: none; }
}
