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

:root {
  --page-topbar-h: 80px;
  --sidebar-w: 90px;
  --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: #2e8375;
  --green-hover: #267165;
  --green-light: #CDE6E050;
  --bg: #edf8f6;
  --white: #ffffff;
  --text: #231f20;
  --text-muted: rgba(35,31,32,0.58);
  --text-light: rgba(35,31,32,0.38);
  --border: rgba(35,31,32,0.18);
  --border-light: rgba(35,31,32,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(42, 27, 27, 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;
  --color-error-bg: #fee2e2;
  --color-error-text: #991b1b;
  --color-warn: #d97706;
  --color-warn-bg: #fef3c7;
  --color-warn-text: #92400e;
  --color-info: #2563eb;
  --color-info-bg: #dbeafe;
  --color-info-text: #1e40af;
  --color-neutral-bg: #f3f4f6;
  --color-neutral-text: #374151;
  --content-max-width: none;
  --font-family-poppins: 'Poppins', sans-serif;
}

html, body { height: 100%; font-family: var(--font-family-poppins); 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;
  max-width: min(520px, calc(100% - 32px));
}
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.green { background: var(--green); }

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

.login-left {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  width: 50%;
  overflow: hidden;
}
.login-left-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.login-left-img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.login-left-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 48px 48px 40px;
}/*
.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: inline-block;
  margin: 0 auto 30px auto;
}
.login-logo img {
  display: inline-block;
  width: 100%; height: auto; max-width: 240px;
}
.login-logo p{
  margin: 0;
  font-size: 28px;
  font-weight: bold;
}
.login-tagline {
  position: relative; z-index: 1;
  margin-top: auto; margin-bottom: auto;
  padding-top: 230px;
}
.login-tagline h2 {
  font-size: 28px; font-weight: 800; color: var(--white);
  letter-spacing: -0.8px; line-height: 1.2; margin-bottom: 16px;
}
.login-tagline p { font-size: 15px; color: var(--white); line-height: 1.65; }

.login-bottom { font-size: 14px; color: var(--white); }

.login-right {
  flex: 1; background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 32px;
}
.login-form-wrap { width: 100%; max-width: 420px; }
.login-form-wrap h1 {
  font-size: 16px; font-weight: 600; color: var(--text);
  letter-spacing: -0.5px; margin-bottom: 0; text-align: center;
  margin: 0 0 10px 0;
}
/*.login-form-wrap .form-input{
  text-align: center;
}*/


.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; 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: var(--font-family-poppins); 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(35,31,32,0.45); }*/
.form-input::placeholder { color: rgba(35,31,32,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[type="date"].form-input,
input[type="time"].form-input { cursor: pointer; }
.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-muted);
  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: var(--font-family-poppins); 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(35,31,32,0.22); }
.btn-primary:hover { background: var(--green-hover); box-shadow: 0 4px 12px rgba(35,31,32,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-light); }
.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-ghost-danger { background: none; color: var(--color-error); border: 1.5px solid rgba(220,38,38,0.3); }
.btn-ghost-danger:hover { background: rgba(220,38,38,0.06); border-color: var(--color-error); }
.btn-danger { background: var(--color-error); color: var(--white); border: none; box-shadow: 0 2px 6px rgba(220,38,38,0.25); }
.btn-danger:hover { background: #b91c1c; }
.btn-full { width: 100%; }
.btn-sm { height: 34px; padding: 0 16px; font-size: 14px; }

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

.login-help a{ color: var(--text-muted);}

.form-button-wrap{
  display: flex; flex-direction: row; justify-content: space-between;
}

@media (max-width: 700px) {
  .login-left { display: none; }
  .login-right { padding: 32px 24px; }
  .form-button-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .form-button-wrap .btn { width: 100%; }
  .form-button-wrap .login-help { margin-top: 8px; }
}

/* ═══════════════════════════════════════════
   APP SHELL
═══════════════════════════════════════════ */
#screen-app {
  display: flex; height: 100vh; height: 100dvh; 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(--green);
  height: 100vh; height: 100dvh; 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;
  width: 120px;
}
#sidebar.expanded { width: 280px; }
.sidebar-top { padding: 22px 16px 0; flex-shrink: 0; }
.sidebar-logo { display: flex; flex-direction: column; align-items: center; /*margin-bottom: 20px;*/ }
.sidebar-logo:hover { opacity: 0.85; transition: opacity 0.15s; }
.sidebar-logo-img {
  /*width: 100%; height: auto; max-width: 100px;*/
  width: auto; height: 35px; margin: 0 auto;
}
.sidebar-logo p{
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  font-weight: bold;
  text-align: center;
  color: white;
}
/*.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-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: 14px; 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: 14px; 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: var(--font-family-poppins); font-size: 14px; 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: 84px; padding: 10px 8px 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(35,31,32,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: 32px; }

.sidebar-icon-badge {
  position: absolute; top: -4px; right: -6px;
  z-index: 1;
  background: #fff;
  color: var(--green);
  font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1; pointer-events: none;
}
.sidebar-icon-item.active .sidebar-icon-badge {
  background: var(--green);
  color: #fff;
}

.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: 13px; 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: 14px; 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: 12px; 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: 14px; font-weight: 500;
  padding: 5px 11px; border-radius: 6px;
  white-space: nowrap; pointer-events: none;
  z-index: 300; font-family: var(--font-family-poppins);
  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;
}

/* ── TOPBAR ACTIONS ── */
.topbar-actions {
  position: absolute; top: 0; right: 28px; z-index: 190;
  height: var(--page-topbar-h);
  display: flex; align-items: center; gap: 28px;
}

/* ── APOTHEEKSTATUS (pil + paneel) ── */
.apotheek-status-wrap { position: relative; }
.apotheek-status-pill {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px 0 11px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--white); cursor: pointer;
  font-family: var(--font-family-poppins); font-size: 13px; font-weight: 600;
  color: var(--text); transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.apotheek-status-pill:hover { background: var(--bg); }
.apotheek-status-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: var(--text-muted);
}
.apotheek-status-caret {
  font-size: 18px; color: var(--text-muted);
  transition: transform 0.2s;
}
.apotheek-status-wrap.open .apotheek-status-caret { transform: rotate(180deg); }

/* Pil-states */
.apotheek-status-wrap.is-open .apotheek-status-dot {
  background: var(--color-success);
  box-shadow: 0 0 0 3px rgba(76,175,80,0.18);
}
.apotheek-status-wrap.is-closing .apotheek-status-dot {
  background: var(--color-warn);
  box-shadow: 0 0 0 3px rgba(217,119,6,0.16);
}
.apotheek-status-wrap.is-closed .apotheek-status-dot {
  background: var(--color-error);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.14);
}

/* Paneel */
.apotheek-status-panel {
  display: none; position: absolute; left: 0; top: calc(100% + 8px);
  width: 320px; max-width: calc(100vw - 36px);
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  overflow: hidden; z-index: 200;
}
.apotheek-status-panel.open { display: block; }
.apotheek-status-phead {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 15px 16px; border-bottom: 1px solid var(--border-light);
}
.apotheek-status-phead-dot {
  width: 11px; height: 11px; border-radius: 50%; margin-top: 4px; flex-shrink: 0;
  background: var(--text-muted);
}
.apotheek-status-panel.is-open .apotheek-status-phead-dot { background: var(--color-success); }
.apotheek-status-panel.is-closing .apotheek-status-phead-dot { background: var(--color-warn); }
.apotheek-status-panel.is-closed .apotheek-status-phead-dot { background: var(--color-error); }
.apotheek-status-phead-name { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; }
.apotheek-status-phead-state { font-size: 13px; font-weight: 500; color: var(--text); margin-top: 1px; }
.apotheek-status-panel.is-open .apotheek-status-phead-state { color: var(--color-success-text); }
.apotheek-status-panel.is-closing .apotheek-status-phead-state { color: var(--color-warn); }
.apotheek-status-panel.is-closed .apotheek-status-phead-state { color: var(--color-error); }

.apotheek-status-row {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
}
.apotheek-status-row:last-child { border-bottom: none; }
.apotheek-status-row .material-symbols-outlined {
  font-size: 20px; color: var(--green); flex-shrink: 0; margin-top: 1px;
}
.apotheek-status-row-body { flex: 1; min-width: 0; }
.apotheek-status-row-title { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.apotheek-status-row-text { font-size: 13.5px; font-weight: 500; color: var(--text); margin-top: 2px; line-height: 1.4; }
.apotheek-status-row-text strong { font-weight: 700; }

.apotheek-status-hours { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.apotheek-status-hours-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--text); }
.apotheek-status-hours-line.today { font-weight: 700; }
.apotheek-status-hours-line.today .apotheek-status-hours-day { color: var(--green); }
.apotheek-status-hours-day { color: var(--text-muted); }
.apotheek-status-hours-closed { color: var(--text); }

.apotheek-status-row.urgent { background: #fff8f5; }
.apotheek-status-row.urgent .material-symbols-outlined { color: var(--color-error); }
.apotheek-status-phone { font-weight: 700; color: var(--text); white-space: nowrap; }

.apotheek-status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--green-light); color: var(--green); margin-top: 4px;
}

/* ── CONTEXTUELE INFO binnen het controle-infoblok ── */
.chg-intro-context {
  margin-top: 9px; padding-top: 9px;
  border-top: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: 3px;
}
.chg-intro-context-line { font-size: 13.5px; color: var(--text); line-height: 1.5; }
.chg-intro-context-line strong { font-weight: 600; color: var(--text); }
.chg-intro-context-head {
  font-weight: 700; display: inline-flex; align-items: center; gap: 5px;
}
.chg-intro-context-head .material-symbols-outlined { font-size: 17px; }
.chg-intro-context.warn .chg-intro-context-head { color: var(--color-warn); }
.chg-intro-context.urgent .chg-intro-context-head { color: var(--color-error); }

/* ── "APOTHEEK ONDERWEG"-BANNER (home) ── */
.levering-onderweg-banner {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 18px; margin-bottom: 14px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #2e8375, #37a08e);
  color: #fff; box-shadow: var(--shadow-sm);
}
.levering-onderweg-icon {
  font-size: 26px; flex-shrink: 0;
  animation: onderweg-rijden 2.2s ease-in-out infinite;
}
@keyframes onderweg-rijden {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
.levering-onderweg-text { font-size: 14px; line-height: 1.4; }
.levering-onderweg-text strong { font-weight: 700; }
.levering-onderweg-text span { opacity: 0.9; }
@media (prefers-reduced-motion: reduce) {
  .levering-onderweg-icon { animation: none; }
}

/* ── USER AVATAR (topbar) ── */
.user-avatar-wrap {
  position: relative;
  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);
  line-height: 1.3;
}
.user-topbar-namedept {
  font-size: 15px; 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: 14px; 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: 280px; overflow: hidden;
}
body[data-demo-role="verpleegkundige"] [data-demo-tile="algemeen"],
body[data-demo-role="verpleegkundige"] [data-demo-tile="mpi"],
body[data-demo-role="algemeen"] [data-demo-tile="logistiek"],
body[data-demo-role="algemeen"] [data-demo-tile="mpi"],
body[data-demo-role="mpi"] [data-demo-tile="algemeen"] {
  display: none !important;
}
.user-dropdown.open { display: block; }
.user-dropdown-item {
  padding: 11px 16px; font-size: 15px; cursor: pointer;
  color: var(--text); display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-family-poppins);
}
.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);
}
@media (max-width: 768px) {
  #mobile-topbar {
    height: calc(56px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  }
}
.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); }
#mobile-page-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 8px;
}
.mobile-topbar-spacer { width: 44px; flex-shrink: 0; }
#sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 199;
}

@media (max-width: 768px) {
  :root { --page-topbar-h: 0px; }
  #mobile-topbar { display: flex; }
  #sidebar {
    position: fixed; top: 0; left: 0; height: 100vh; height: 100dvh;
    transform: translateX(-100%);
  }
  #main-content { margin-top: calc(56px + env(safe-area-inset-top, 0px)); }

  .hamburger { width: 44px; height: 44px; }
  #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; }

  /* Topbar-acties centreren in de 56px mobile-topbar, zodat de pil het logo niet overlapt */
  .topbar-actions { top: 0; height: 56px; right: 14px; gap: 10px; }
  .user-topbar-info { display: none; }
  .apotheek-status-pill {
    width: 36px; padding: 0; justify-content: center;
  }
  .apotheek-status-label,
  .apotheek-status-caret { display: none; }
  .apotheek-status-dot { width: 11px; height: 11px; }
  .apotheek-status-panel { left: auto; right: 0; }
}

/* ── 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: var(--page-topbar-h); 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; }

@media (max-width: 768px) {
  /* Acties zitten in #mobile-topbar; 240px rechts is overbodig */
  .page-topbar {
    padding: 0 16px;
    gap: 12px;
  }
  .page-topbar h1 {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
  }
  .page-topbar .badge { flex-shrink: 0; }
}

/* ── PAGE TOP NOTIFICATION ── */
.page-topnotification {
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-light);
}
.topnotification-item {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  padding: 10px 28px;
  min-height: 44px;
}
@media (max-width: 768px) {
  .topnotification-item {
    padding: 10px 16px;
  }
}
.topnotification-item.hidden { display: none; }
.topnotification-content {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: calc(100% - 48px);
  text-align: center;
}
.topnotification-urgent {
  background: #fff7ed;
  color: #9a3412;
  border-bottom: 1px solid rgba(217, 119, 6, 0.22);
}
.topnotification-urgent .topnotification-icon { color: var(--color-warn); }
.topnotification-reminder {
  background: var(--green-light);
  color: #1e4d44;
  border-bottom: 1px solid rgba(42, 128, 114, 0.18);
}
.topnotification-reminder .topnotification-icon { color: var(--green); }
.topnotification-icon {
  font-size: 20px;
  flex-shrink: 0;
  font-variation-settings: 'FILL' 1;
}
.topnotification-text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}
.topnotification-close {
  grid-row: 1;
  grid-column: 1;
  justify-self: end;
  align-self: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s, background 0.15s;
}
.topnotification-close .material-symbols-outlined { font-size: 18px; }
.topnotification-urgent .topnotification-close { color: #9a3412; }
.topnotification-reminder .topnotification-close { color: #1e4d44; }
.topnotification-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}
.topnotification-dots-outer {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 5px 0 7px;
  background: inherit;
}
.topnotification-dots-outer:empty { display: none; padding: 0; }
.topnotification-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(48, 41, 34, 0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.topnotification-dot.active {
  background: rgba(48, 41, 34, 0.55);
  transform: scale(1.15);
}

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

/* Ondersteunende voetnoot onder pagina-inhoud (niet core) */
.page-supplementary-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
.page-supplementary-note strong {
  font-weight: 600;
  color: var(--text);
}

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 7px 28px; font-size: 14px; 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: var(--page-topbar-h);
  z-index: 10;
}
.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-muted); 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; white-space: nowrap;
  padding: 3px 10px; border-radius: 99px;
  font-size: 14px; font-weight: 600;
}
.badge-green { background: var(--color-success-bg); color: var(--color-success-text); }
.badge-amber { background: var(--color-warn-bg); color: var(--color-warn-text); }
.badge-blue { background: var(--color-info-bg); color: var(--color-info-text); }
.badge-red { background: var(--color-error-bg); color: var(--color-error-text); }
.badge-gray { background: var(--color-neutral-bg); color: var(--color-neutral-text); }

/* ── 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: 40px; }
.greeting-row h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 4px; }
.greeting-row .sub { font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sub-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }

.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: 14px; 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; }
@media (hover: none) {
  .action-card .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: 14px; 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: 14px; font-weight: 500; letter-spacing: 0.5px;
  color: var(--text);
  padding: 14px 16px 12px; text-align: left;
  border-bottom: 1.5px solid var(--border);
}
.activity-table td {
  padding: 14px 16px; font-size: 15px;
  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-light); cursor: pointer; }
.type-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; 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');*/
  --banner-text-color: var(--green);
  background-color: opacity(#2e8375, 15); color: var(--banner-text-color);
  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='mydosix']{
    background-image: url('../images/banner-mydosix.jpg');
  }
  &[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');
  }
  &[data-image='opleiding']{
    background-image: url('../images/banner-opleiding.jpg');
  }
}
.banner-logo{
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translate(0%, -50%);
  /*width: 140px;*/
  width: 170px;
  height: auto;
  z-index: 5;
}
@media (max-width: 820px) {
  .banner-logo{
   display: none;
  }
}
.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: 16px; font-weight: 700; letter-spacing: -0.2px; margin-bottom: 5px; }
/*.banner-desc { font-size: 14px; color: var(--banner-text-color); line-height: 1.55; max-width: 480px; }*/
.banner-desc { font-size: 14px; color: var(--banner-text-color); line-height: 1.55; max-width: 560px; }
.banner-link {
  display: inline-flex;
  margin-top: 14px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.2px;
  color: var(--banner-text-color); border: 1.5px solid currentColor;
  border: none;
}
.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: 14px;
  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:empty {
  min-height: 8px;
}
.banner-dots-outer .banner-dot {
  width: 8px; height: 8px;
  background: rgba(35,31,32,0.18);
}
.banner-dots-outer .banner-dot.active { background: var(--text); }

/* ── TILE GRID ── */
.tiles-group+.tiles-group{
  margin-top: 50px;
}
.tiles-title{
  font-size: 16px; font-weight: 700; letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 20px 0;
}
.tiles-grid {
  display: grid; grid-template-columns: repeat(8, 1fr);
  gap: 14px; margin-bottom: 4px;
}
@media (max-width: 1200px) { .tiles-grid { grid-template-columns: repeat(4, 1fr); } }
@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; align-items: center; gap: 20px;
  user-select: none;
}
.tile-card:hover { background-color: rgba(255,255,255,0.25);/*box-shadow: var(--shadow); border-color: rgba(28,140,122,0.22);*/ transform: translateY(-2px); }
.tile-card:active { transform: translateY(0); }
.tile-text{ padding-top: 5px; text-align: center;}
.tile-icon {
  --tile-icon-size: 45px;
  --tile-icon-zoom: 2; /* 1 = volledige artboard, hoger = inzoomen */
  width: var(--tile-icon-size);
  height: var(--tile-icon-size);
  min-width: var(--tile-icon-size);
  min-height: var(--tile-icon-size);
  border-radius: 12px;
  /*padding: 25px;*/
  /*background: var(--green-light);*/
  display: flex; align-items: center; justify-content: center;
  /*margin-bottom: 6px; flex-shrink: 0;*/
  box-sizing: border-box;
  flex-shrink: 0;
  overflow: visible;
  position: relative;
}
.tile-icon-inner{
  /* Groter tekenen i.p.v. de artboard croppen — anders worden strokes aan de rand afgesneden */
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--tile-icon-zoom) * 100%);
  height: calc(var(--tile-icon-zoom) * 100%);
  transform: translate(-50%, -50%);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.tile-icon .material-symbols-outlined { font-size: 22px; color: var(--text); }
.tile-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: 5px;}
.tile-desc { font-size: 14px; 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(35,31,32,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(35,31,32,0.45); font-weight: 600; }
.tile-card:has(.tile-soon-badge) .tile-desc { color: rgba(35,31,32,0.30); }*/

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

.tile-info-btn {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; padding: 0;
  border: none; border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  opacity: 0; transform: scale(0.82);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.tile-info-btn .material-symbols-outlined {
  font-size: 18px; color: var(--green);
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}
.tile-card:hover .tile-info-btn,
.tile-card:focus-within .tile-info-btn {
  opacity: 1; transform: scale(1); pointer-events: auto;
}
.tile-info-btn:hover {
  background: var(--green-light);
  box-shadow: var(--shadow);
}
.tile-info-btn:focus-visible {
  opacity: 1; transform: scale(1); pointer-events: auto;
  outline: 2px solid var(--green); outline-offset: 2px;
}
@media (hover: none) {
  .tile-info-btn { opacity: 1; transform: scale(1); pointer-events: auto; }
}

.tile-info-modal { max-width: 420px; }
.tile-info-modal .modal-header { margin-bottom: 12px; }
.tile-info-modal-heading {
  display: flex; align-items: center; gap: 10px; min-width: 0;
}
.tile-info-modal-heading .material-symbols-outlined {
  font-size: 22px; color: var(--green); flex-shrink: 0;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.tile-info-text {
  font-size: 14px; color: var(--text); line-height: 1.55; margin: 0;
}

/* ── 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); font-weight: 500; }
.orders-empty-desc { font-size: 14px; color: var(--text-muted); 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: var(--font-family-poppins); font-size: 14px; font-weight: 500;
  color: var(--text); 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: 14px; color: var(--text); }
.order-card-meta { font-size: 14px; color: var(--text-muted); 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: 14px; 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-light);
}
.btn-retour .material-symbols-outlined { font-size: 15px; }

.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-light);
}
.retour-product-check {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}
.retour-product-naam {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.retour-product-cnk { font-size: 14px; color: var(--text); }
.retour-product-aantal-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
}
.retour-product-aantal {
  width: 52px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  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: 14px; 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: 14px; }
.detail-table thead tr { border-bottom: 1.5px solid var(--border-light); }
.detail-table th { text-align: left; font-size: 14px; font-weight: 500; letter-spacing: 0.5px; color: var(--text); 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); }

.order-detail-pending-banner {
  display: flex; align-items: center; gap: 10px;
  background: var(--green-light); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
  font-size: 14px; 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: 14px; 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: var(--font-family-poppins); 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='%23231f20' stroke-width='2' stroke-opacity='0.55'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  padding-right: 35px;
  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-muted); }
.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: 14px;
  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-light); }
.ac-name { font-weight: 600; }
.ac-cnk { font-size: 14px; color: var(--text); }

/* Order list table */
.order-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.order-table th {
  font-size: 14px; font-weight: 500; letter-spacing: 0.5px;
  color: var(--text);
  padding: 0 10px 10px; text-align: left;
  border-bottom: 1.5px solid var(--border);
}
.order-table td {
  padding: 12px 10px; font-size: 14px;
  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: var(--font-family-poppins);
  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: 14px; 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-muted);
  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: var(--font-family-poppins); 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(35,31,32,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); font-size: 14px; }
.empty-panel-icon { font-size: 28px; margin-bottom: 8px; }

/* ═══════════════════════════════════════════
   PAGE: BERICHTEN — MAIL STIJL
═══════════════════════════════════════════ */
.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: var(--font-family-poppins); font-size: 14px; 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(35,31,32,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-light); }
.mail-item.active { background: var(--green-light); 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: 14px; 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-muted); flex-shrink: 0; margin-left: 8px; }
.mail-item-subject {
  font-size: 14px; 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: 14px; 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: 14.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-light);
  color: var(--green);
  border: 1px solid rgba(28,140,122,0.25);
}
.mail-meta-row {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 14px; 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: 14px; }

.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: var(--font-family-poppins);
}

/* 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: var(--font-family-poppins);
}

/* 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: var(--font-family-poppins); 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(35,31,32,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; }
}

/* ═══════════════════════════════════════════
   INBOX — NEW TABLE DESIGN
═══════════════════════════════════════════ */
.inbox-page-body { flex: 1; width: 100%; display: flex; flex-direction: column; }
.inbox-main-tabs { margin-bottom: 0; padding: 0 28px; }
.inbox-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; border-radius: 99px;
  background: var(--green); color: #fff;
  font-size: 10px; font-weight: 700; padding: 0 5px;
  margin-left: 6px; vertical-align: middle; line-height: 1;
}
.inbox-badge-warn { background: var(--color-warn); }
.inbox-badge-urgent { background: var(--color-error); }
.inbox-badge-info { background: var(--color-info); }
.inbox-badge-communicatie { background: var(--color-error); }
.inbox-badge-todo { background: var(--color-warn); }
.inbox-badge-updates { background: var(--color-info); }
.inbox-panel { padding: 20px 28px 32px; }
.inbox-filters {
  display: flex; gap: 14px; margin-bottom: 14px;
  align-items: flex-end; flex-wrap: wrap;
}
.inbox-filter-group { display: flex; flex-direction: column; gap: 5px; }
.inbox-filter-group:first-child { flex: 1; min-width: 220px; }
.inbox-filter-label {
  font-size: 14px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.2px;
}
.inbox-filter-hint {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-light);
}
.inbox-search-input {
  height: 40px; width: 100%;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 14px; font-family: var(--font-family-poppins);
  font-size: 14px; color: var(--text); background: var(--white); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.inbox-search-input::placeholder {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inbox-search-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(28,140,122,0.10); }
.inbox-select { height: 40px; min-width: 190px;}
.inbox-refresh-btn { height: 40px; }
.inbox-results-bar { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.inbox-table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background-color: var(--white);}
.inbox-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.opvolg-table { table-layout: auto; }
#opvolg-cat-filter { min-width: 240px; }
.inbox-table thead { background: var(--bg); }
.inbox-th {
  padding: 11px 14px; text-align: left; font-size: 14px; font-weight: 500;
  color: var(--text); letter-spacing: 0.5px; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.inbox-th-dot, .inbox-th-action { width: 32px; border-bottom: 1px solid var(--border); }
.inbox-th.sortable { cursor: pointer; user-select: none; }
.inbox-th.sortable:hover { color: var(--green); }
.sort-icon { font-size: 10px; opacity: 0.6; margin-left: 2px; }
.inbox-table tbody tr {
  cursor: pointer; border-bottom: 1px solid var(--border-light); transition: background 0.1s;
}
.inbox-table tbody tr:last-child { border-bottom: none; }
.inbox-table tbody tr:hover { background: var(--green-light); }
.inbox-table-static tbody tr { cursor: default; }
.inbox-table-static tbody tr:hover { background: transparent; }
.inbox-table-footer {
  padding: 11px 14px; font-size: 14px; color: var(--text-muted);
  background: var(--bg); border-top: 1px solid var(--border-light);
}
.inbox-td { padding: 12px 14px; vertical-align: middle; color: var(--text); }
.inbox-td-dot { padding: 0 10px; vertical-align: middle; text-align: center; }
.inbox-td-action { padding: 0 12px; vertical-align: middle; text-align: right; }
.inbox-td-desc-text {
  display: block; max-width: 240px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.inbox-unread-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--color-error); }
.inbox-row-unread .inbox-td { font-weight: 600; }
.inbox-arrow-btn { color: var(--green); display: flex; align-items: center; justify-content: flex-end; }
.inbox-arrow-btn .material-symbols-outlined { font-size: 18px; }
.inbox-pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; font-size: 14.5px; color: var(--text-muted);
  background: var(--bg); border-top: 1px solid var(--border-light);
}
.inbox-page-btns { display: flex; gap: 3px; }
.inbox-page-btn {
  width: 30px; height: 30px; border-radius: 7px;
  border: 1px solid var(--border); background: var(--white);
  font-family: var(--font-family-poppins); font-size: 14.5px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.12s, border-color 0.12s; color: var(--text);
}
.inbox-page-btn:hover:not(:disabled) { background: var(--green-light); border-color: var(--green); color: var(--green); }
.inbox-page-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
.inbox-page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.inbox-subtab-nav { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.inbox-subtab {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 13px; border-radius: 300px;
  border: 1px solid var(--border); background: var(--white);
  font-family: var(--font-family-poppins); font-size: 14px; font-weight: 500;
  color: var(--text); cursor: pointer; transition: all 0.15s;
}
.inbox-subtab:hover { border-color: var(--green); color: var(--green); }
.inbox-subtab.active { background: var(--green); border-color: var(--green); color: var(--white); }
.todo-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px;
  display: flex; align-items: flex-start; gap: 14px; transition: box-shadow 0.15s;
}
.todo-card:hover { box-shadow: var(--shadow-sm); }
.todo-card-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-light);
}
.todo-card-icon .material-symbols-outlined { font-size: 21px; color: var(--green); }
.todo-card-icon.urgent { background: rgba(220,38,38,0.08); }
.todo-card-icon.urgent .material-symbols-outlined { color: #dc2626; }
.todo-card-icon.warn { background: rgba(217,119,6,0.08); }
.todo-card-icon.warn .material-symbols-outlined { color: var(--color-warn); }
.todo-card-icon.info { background: rgba(37,99,235,0.08); }
.todo-card-icon.info .material-symbols-outlined { color: var(--color-info); }
.todo-card-body { flex: 1; min-width: 0; }
.todo-card-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.todo-card-sub { font-size: 14px; color: var(--text); line-height: 1.5; }
.todo-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.todo-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; border: 1px solid;
}
.todo-tag .material-symbols-outlined { font-size: 14px; }
.todo-tag-verantwoordelijke { background: rgba(28,140,122,0.08); border-color: rgba(28,140,122,0.25); color: var(--green); }
.todo-tag-urgent { background: var(--color-error-bg); border-color: rgba(220,38,38,0.25); color: var(--color-error); }
.todo-tag-warn { background: var(--color-warn-bg); border-color: rgba(217,119,6,0.25); color: var(--color-warn); }
.todo-tag-success { background: var(--color-success-bg); border-color: rgba(22,101,52,0.25); color: var(--color-success-text); }
.todo-card-actions { display: flex; gap: 8px; align-items: flex-start; flex-shrink: 0; padding-top: 2px; }
.inbox-historiek-bar { margin-top: 18px; display: flex; flex-direction: row; justify-content: center;}
.inbox-historiek-table { border: none; border-radius: 0; }
.inbox-historiek-cards { padding: 12px 16px 4px; }
.inbox-historiek-cards .todo-card:last-child { margin-bottom: 8px; }
.inbox-historiek-cards .todo-card .todo-card-title { font-weight: 500; }
.inbox-empty-state,
.opvolg-empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 40px 20px; gap: 12px;
  color: var(--text-muted); font-size: 14px; text-align: center;
}
.inbox-empty-state .material-symbols-outlined,
.opvolg-empty-state .material-symbols-outlined { font-size: 40px; opacity: 0.4; }
.inbox-detail-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.38);
  backdrop-filter: blur(2px); z-index: 600;
  display: flex; align-items: stretch; justify-content: flex-end;
  opacity: 0; pointer-events: none; transition: opacity 0.22s;
}
.inbox-detail-overlay.open { opacity: 1; pointer-events: all; }
.inbox-detail-modal {
  width: 560px; max-width: 95vw; height: 100vh; height: 100dvh;
  background: var(--white); display: flex; flex-direction: column;
  box-shadow: -6px 0 32px rgba(0,0,0,0.13);
  transform: translateX(40px); transition: transform 0.25s ease;
}
.inbox-detail-overlay.open .inbox-detail-modal { transform: translateX(0); }
.inbox-detail-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 24px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.inbox-detail-subject { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; color: var(--text); flex: 1; line-height: 1.3; }
.inbox-detail-close {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); cursor: pointer; font-size: 16px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background 0.12s; line-height: 1;
}
.inbox-detail-close:hover { background: var(--green-light); }
.inbox-detail-meta { padding: 12px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.inbox-detail-ticket-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 14.5px; color: var(--text-muted); margin-bottom: 10px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border-light);
}
.inbox-detail-meta-row {
  display: flex; align-items: baseline; gap: 6px; font-size: 14px;
  margin-bottom: 4px; flex-wrap: wrap; color: var(--text);
}
.inbox-detail-meta-label { font-weight: 600; color: var(--text-muted); min-width: 36px; }
.inbox-detail-body-wrap { flex: 1; overflow-y: auto; padding: 20px 24px; background: var(--bg); }
.inbox-detail-body-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
  padding: 20px 24px; margin-bottom: 14px;
}
.inbox-detail-body-text { font-size: 14px; line-height: 1.75; color: var(--text); white-space: pre-wrap; font-family: var(--font-family-poppins); }
.inbox-detail-reply-block {
  background: #f5efe4; border-radius: var(--radius);
  border: 1px solid rgba(28,140,122,0.15); padding: 16px 20px; margin-bottom: 12px;
}
.inbox-detail-reply-label-inner {
  font-size: 11px; font-weight: 700; letter-spacing: 0.7px;
  text-transform: uppercase; color: var(--green); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.inbox-detail-reply-label-inner::before {
  content: ''; display: inline-block; width: 3px; height: 13px; background: var(--green); border-radius: 2px;
}
.inbox-detail-reply-text { font-size: 14px; line-height: 1.7; color: var(--text); white-space: pre-wrap; font-family: var(--font-family-poppins); }
.inbox-detail-reply-form { padding: 14px 24px 18px; background: var(--white); border-top: 1px solid var(--border); flex-shrink: 0; }
.inbox-detail-reply-divider {
  font-size: 13px; font-weight: 700; letter-spacing: 0.7px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px;
}
.inbox-detail-textarea {
  width: 100%; min-height: 80px; margin-bottom: 10px;
  border: 1.5px solid rgba(28,140,122,0.4); border-radius: 14px;
  padding: 12px 16px; font-family: var(--font-family-poppins);
  font-size: 14px; color: var(--text); /*background: rgba(191,233,226,0.55);*/
  resize: vertical; outline: none; transition: border-color 0.15s;
}
.inbox-detail-textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(28,140,122,0.10); }

@media (max-width: 768px) {
  .form-input,
  .form-select,
  .form-textarea,
  .inbox-search-input,
  .inbox-select,
  .mail-reply-textarea,
  .inbox-detail-textarea {
    font-size: 16px;
  }
}

/* Chat-thread stijl in detail-paneel */
.inbox-chat-wrap { display: flex; flex-direction: column; gap: 10px; }
.inbox-chat-msg { display: flex; align-items: flex-end; gap: 9px; max-width: 88%; }
.inbox-chat-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.inbox-chat-msg.other { align-self: flex-start; }
.inbox-chat-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px; margin-bottom: 2px;
}
.inbox-chat-avatar.lamoot { background: var(--green); color: #fff; }
.inbox-chat-avatar.instelling { background: #e2dbd4; color: var(--text); }
.inbox-chat-bubble-wrap { display: flex; flex-direction: column; }
.inbox-chat-msg.mine .inbox-chat-bubble-wrap { align-items: flex-end; }
.inbox-chat-sender { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 3px; padding: 0 4px; }
.inbox-chat-bubble {
  padding: 10px 14px; border-radius: 16px; font-size: 15px;
  line-height: 1.55; color: var(--text); white-space: pre-wrap;
  font-family: var(--font-family-poppins); max-width: 380px; box-shadow: var(--shadow-xs);
}
.inbox-chat-msg.lamoot .inbox-chat-bubble { background: var(--white); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.inbox-chat-msg.mine .inbox-chat-bubble { background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.inbox-chat-msg.other:not(.lamoot) .inbox-chat-bubble { background: #f0ebe4; border: 1px solid rgba(0,0,0,0.06); border-bottom-left-radius: 4px; }
.inbox-chat-time { font-size: 10.5px; color: var(--text-muted); margin-top: 4px; padding: 0 4px; }
.inbox-chat-msg.mine .inbox-chat-time { color: rgba(255,255,255,0.55); }
.inbox-chat-date-sep {
  text-align: center; font-size: 11px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.3px; margin: 8px 0 4px;
  display: flex; align-items: center; gap: 10px;
}
.inbox-chat-date-sep::before, .inbox-chat-date-sep::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }
.inbox-chat-participants {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 14px; color: var(--text-muted); margin-bottom: 12px;
  padding: 8px 12px; background: var(--bg); border-radius: 8px;
  border: 1px solid var(--border-light);
}
.inbox-chat-participants .material-symbols-outlined { font-size: 15px; color: var(--green); }

@media (max-width: 768px) {
  .inbox-main-tabs {
    flex-wrap: wrap;
    padding: 0 16px;
  }
  .inbox-main-tabs .tab-btn {
    padding: 10px 12px;
    font-size: 13px;
  }
  .inbox-panel { padding: 14px 16px 24px; }
  .inbox-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .inbox-filter-group,
  .inbox-filter-group:first-child {
    flex: none;
    width: 100%;
    min-width: 0;
  }
  .inbox-select { min-width: 0; width: 100%; }
  .inbox-detail-modal { width: 100vw; }

  /* Inbox / Opvolging: rijen als kaarten i.p.v. afgesneden tabel */
  .inbox-table-wrap:has(.inbox-table:not(.inbox-table-static)) {
    overflow: visible;
    border: none;
    background: transparent;
  }
  .inbox-table:not(.inbox-table-static) thead { display: none; }
  .inbox-table:not(.inbox-table-static),
  .inbox-table:not(.inbox-table-static) tbody {
    display: block;
    width: 100%;
  }
  .inbox-table:not(.inbox-table-static) tbody tr {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) auto;
    grid-template-areas:
      "dot datum action"
      "dot ref action"
      "dot cat cat"
      "dot desc desc"
      "dot status status"
      "dot gewijzigd gewijzigd";
    column-gap: 10px;
    row-gap: 3px;
    align-items: start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 14px 14px 12px;
    margin-bottom: 10px;
  }
  .inbox-table.opvolg-table tbody tr {
    grid-template-areas:
      "dot datum action"
      "dot ref action"
      "dot cat cat"
      "dot bewoner bewoner"
      "dot desc desc"
      "dot status status";
  }
  .inbox-table:not(.inbox-table-static) tbody tr:last-child {
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
  }
  .inbox-table:not(.inbox-table-static) tbody tr:hover { background: var(--white); }
  .inbox-table:not(.inbox-table-static) .inbox-td,
  .inbox-table:not(.inbox-table-static) .inbox-td-dot,
  .inbox-table:not(.inbox-table-static) .inbox-td-action {
    padding: 0;
    border: none;
    min-width: 0;
  }
  .inbox-table:not(.inbox-table-static) .inbox-td-dot {
    grid-area: dot;
    padding-top: 5px;
    text-align: left;
  }
  .inbox-table:not(.inbox-table-static) [data-col="datum"] {
    grid-area: datum;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
  }
  .inbox-table:not(.inbox-table-static) [data-col="ref"] {
    grid-area: ref;
    font-size: 14px;
  }
  .inbox-table:not(.inbox-table-static) [data-col="cat"] {
    grid-area: cat;
    font-size: 13px;
    color: var(--text-muted);
  }
  .inbox-table:not(.inbox-table-static) [data-col="bewoner"] { grid-area: bewoner; }
  .inbox-table:not(.inbox-table-static) [data-col="desc"] { grid-area: desc; }
  .inbox-table:not(.inbox-table-static) [data-col="status"] { grid-area: status; padding-top: 6px; }
  .inbox-table:not(.inbox-table-static) [data-col="gewijzigd"] {
    grid-area: gewijzigd;
    padding-top: 2px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: left;
  }
  .inbox-table:not(.inbox-table-static) [data-col="gewijzigd"]::before {
    content: "Gewijzigd ";
  }
  .inbox-table:not(.inbox-table-static) .inbox-td-action {
    grid-area: action;
    align-self: center;
  }
  .inbox-table:not(.inbox-table-static) .inbox-td-desc-text {
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .inbox-pagination {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 2px;
    background: transparent;
    border-top: none;
  }
}

/* ═══════════════════════════════════════════
   PAGE: OPVOLGING
═══════════════════════════════════════════ */
.opvolg-tab-panel { margin-bottom: 22px; }
.opvolg-groep-header {
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.opvolg-groep-count {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--border-light); color: var(--text-muted);
  font-size: 11px; font-weight: 700; border-radius: 300px; padding: 1px 8px;
}
.inbox-unread-dot.urgent { background: var(--color-error); }
.opvolg-annuleer-confirm { border-top: 1px solid rgba(220,38,38,0.18); background: rgba(220,38,38,0.04); padding: 14px 20px; margin: 12px -24px -18px; }
.opvolg-annuleer-text { font-size: 14px; color: var(--text); }

/* ── 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; }

/* ═══════════════════════════════════════════
   AGENDA / POPUP MODALS
═══════════════════════════════════════════ */
.agenda-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(3px);
  z-index: 700;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.agenda-modal-overlay.hidden { display: none !important; }
.agenda-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 520px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: hidden;
}
.agenda-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.agenda-modal-header h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; margin: 0; }
.agenda-modal-close {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--bg); border: none; cursor: pointer;
  font-size: 18px; line-height: 1; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s;
}
.agenda-modal-close:hover { background: var(--border); }
.agenda-modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.agenda-modal-footer {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   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); 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: 14px; font-weight: 700; letter-spacing: 0.7px;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 18px;
}
.of-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.of-card-header .order-form-section-title { margin-bottom: 0; }
.of-historiek-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 8px;
  border: 1.5px solid var(--border); background: #fff;
  font-size: 14px; font-weight: 500; color: var(--text);
  cursor: pointer; transition: color 0.14s, border-color 0.14s, background 0.14s;
}
.of-historiek-btn .material-symbols-outlined { font-size: 15px; }
.of-historiek-btn:hover { color: var(--text); border-color: var(--green); background: var(--green-light); }
.of-historiek-btn.active { color: var(--text); border-color: var(--green); background: var(--green-light); }
.order-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 520px) { .order-form-row { grid-template-columns: 1fr; } }
.order-form-row.single-col { grid-template-columns: 1fr; }
.form-help {
  font-size: 14px; color: var(--text-muted); margin-top: 7px; line-height: 1.45;
}
.order-form-wrap {
  max-width: var(--content-max-width);
  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: flex-start; gap: 10px;
  padding: 20px 0; color: var(--text-muted); font-size: 14px;
}
.of-empty-state .material-symbols-outlined { font-size: 20px; opacity: 0.5; flex-shrink: 0; margin-top: 1px; }
.of-empty-state-text { display: flex; flex-direction: column; gap: 5px; }
.of-vrijtext-hint {
  font-size: 14px; color: var(--text-muted); cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
  transition: color 0.14s;
}
.of-vrijtext-hint:hover { color: var(--green); }
.of-add-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; 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; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.of-tfoot-sep { color: var(--border); font-size: 14px; user-select: none; }

.field-required { color: var(--color-error, #dc2626); font-weight: 400; }
.form-optional { font-weight: 400; color: var(--text-muted); }
.field-error { font-size: 14px; 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-light); 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: 14.5px; color: var(--text); 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: 14px; 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-review-empty { color: var(--text-muted); font-weight: 400; font-style: italic; }
.order-review-row.is-empty .order-review-value { color: var(--text-muted); }
.order-form-success-wrap {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; 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);
}
.order-form-success-icon-symbol {
  font-size: 48px;
  color: var(--color-success);
}
.order-form-success-title {
  font-size: 18px; font-weight: 700; 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: var(--font-family-poppins); font-size: 14px; font-weight: 500;
  color: var(--text); transition: background 0.14s, color 0.14s;
  white-space: nowrap;
}
.notif-tab.active { background: var(--green); 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 {
  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: 14px; color: var(--text); 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: 14px; color: var(--text-muted); }
.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); }
.notif-empty-sub { font-size: 14px; color: var(--text-muted); }

/* ═══════════════════════════════════════════
   PAGE: NIEUWE OPNAME
═══════════════════════════════════════════ */
.admission-wrap { max-width: var(--content-max-width); margin: 0 auto; }

.admission-section-label {
  font-size: 16px; font-weight: 700; letter-spacing: -0.2px;
  color: var(--text);
  margin-bottom: 12px; margin-top: 8px;
}
.admission-section-label:first-child { margin-top: 0; }

.form-sub-label {
  font-size: 14px; font-weight: 700; letter-spacing: 0.7px;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 10px; margin-top: 20px;
}
.form-sub-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: 14px; }

.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: 14px; color: var(--text); line-height: 1.5; }
.section-hint {
  font-size: 13px; font-weight: 400; color: var(--text); margin-left: 6px;
}
.info-box {
  background: var(--green-light); border-radius: 10px; padding: 12px 14px;
  font-size: 13px; color: var(--text); display: flex; gap: 8px;
  align-items: flex-start; line-height: 1.55;
}
.form-inline-hint { font-size: 13px; color: var(--text); line-height: 1.5; }
.table-empty-msg { text-align: center; color: var(--text); padding: 24px; font-size: 14px; }
.adm-upload-formats { font-size: 11px; color: var(--text-muted); 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: 14px; 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-muted); 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: 14px; color: var(--text); 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: 60px 24px 40px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.admission-success-title {
  font-size: 18px; font-weight: 700; 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: 14px; 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); }
@media (max-width: 768px) {
  .changes-steps {
    width: 100%;
    min-width: 0;
    margin-bottom: 24px;
  }
  .changes-step {
    flex: 1 1 0;
    min-width: 0;
  }
  .changes-step-label {
    white-space: normal;
    font-size: 12px;
    line-height: 1.25;
    max-width: 100%;
  }
  .changes-step-line {
    flex: 0 1 24px;
    min-width: 8px;
    margin: 18px 4px 0;
  }
}
@media (max-width: 400px) {
  .changes-step-circle {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .changes-step-label {
    font-size: 11px;
    overflow: visible;
  }
  .changes-step-line {
    flex: 0 1 10px;
    min-width: 4px;
    margin: 16px 2px 0;
  }
}
.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: 1.5px solid var(--border-light); box-shadow: var(--shadow-sm);
  padding: 30px 18px; cursor: pointer;
  transition: all 0.18s ease; position: relative; overflow: hidden;
  user-select: none;
}
.changes-type-card:hover { box-shadow: var(--shadow); border-color: rgba(28,140,122,0.22); transform: translateY(-2px); background: rgba(48,56,35,0.04); }
.changes-type-card:active { transform: translateY(0); }
.changes-type-card.selected { border-color: var(--green); background: rgba(48,56,35,0.05); box-shadow: var(--shadow); }
.changes-type-name { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: 5px; }
.changes-type-desc { font-size: 14px; color: var(--text); line-height: 1.45; }
/* ═══════════════════════════════════════════
   CALLOUTS — canonieke info- en waarschuwingsblokken
   Eén stijl voor alle informatieteksten (groen) en
   één voor alle waarschuwingen (amber), platform-breed.
═══════════════════════════════════════════ */
.info-callout,
.chg-intro,
.chg-bestelling-note,
.todo-intro,
.ds-notice {
  display: flex; align-items: flex-start; gap: 11px;
  background: var(--green-light);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius); padding: 13px 16px;
  font-size: 14px; color: var(--text); line-height: 1.55;
}
.info-callout > .material-symbols-outlined,
.chg-bestelling-note > .material-symbols-outlined,
.todo-intro > .material-symbols-outlined,
.ds-notice > .material-symbols-outlined,
.ds-notice > .ds-notice-icon {
  font-size: 19px; color: var(--green); flex-shrink: 0; margin-top: 1px;
}
.info-callout strong,
.chg-intro strong,
.chg-bestelling-note strong,
.todo-intro strong,
.ds-notice strong { font-weight: 600; color: var(--text); }
.info-callout-title,
.chg-intro-title,
.ds-notice-title { font-weight: 600; color: var(--text); margin-bottom: 3px; font-size: 14px; }
.chg-intro p,
.info-callout p,
.ds-notice p { margin: 0; }

/* Context-specifieke marges */
.chg-intro-group {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 20px;
}
.chg-intro-group .chg-intro,
.chg-intro-group .chg-bestelling-note { margin: 0; }
.info-callout { margin-bottom: 18px; }
.chg-intro { margin-bottom: 20px; }
.chg-bestelling-note { margin-top: 20px; }
.chg-bestelling-routing { margin-top: 0; margin-bottom: 20px; }
.todo-intro { margin-bottom: 18px; }
.ds-notice { margin-bottom: 24px; }

.warn-callout {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fffbeb; border: 1.5px solid #fbbf24;
  border-radius: var(--radius); padding: 13px 16px;
  font-size: 13.5px; color: #92400e; line-height: 1.55;
}
.warn-callout > .material-symbols-outlined {
  font-size: 19px; color: #d97706; flex-shrink: 0; margin-top: 1px;
}
.warn-callout strong { font-weight: 700; }
.chg-autocomplete-wrap { position: relative; }
.chg-autocomplete-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 200;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  max-height: 240px; overflow-y: auto;
}
.chg-autocomplete-item {
  padding: 10px 14px; font-size: 14px; color: var(--text);
  cursor: pointer; border-bottom: 1px solid var(--border-light);
  transition: background 0.12s;
}
.chg-autocomplete-item:last-child { border-bottom: none; }
.chg-autocomplete-item:hover, .chg-autocomplete-item:active { background: rgba(28,140,122,0.07); }
.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: 14px; font-weight: 600; color: var(--green);
}
.changes-review-card-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.changes-review-card-header .order-form-section-title { margin-bottom: 0; }
.changes-review-edit-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--white);
  font-family: var(--font-family-poppins); font-size: 13px; font-weight: 600;
  color: var(--text); cursor: pointer; flex-shrink: 0;
  transition: color 0.14s, border-color 0.14s, background 0.14s;
}
.changes-review-edit-btn:hover { color: var(--green); border-color: var(--green); background: var(--green-light); }
.changes-review-edit-btn .material-symbols-outlined { font-size: 15px; }
.changes-review-nr {
  font-size: 12px; font-weight: 600; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 2px;
}
.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: 14px; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.7px;
  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: 14px; color: var(--text); 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;
  height: 34px; padding: 0 16px;
  border-radius: 300px;
  font-family: var(--font-family-poppins); font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  background: none; border: 1.5px solid var(--border);
  cursor: pointer; margin-bottom: 20px;
  transition: border-color 0.15s, color 0.15s;
}
.nk-back-btn:hover { border-color: rgba(28,140,122,0.45); color: var(--text); }

.nk-samenstelling-panel {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
}
.nk-samenstelling-panel .inbox-table-wrap { width: 100%; }
.nk-samenstelling-panel .admission-section-label { margin-top: 24px; }
.nk-samenstelling-panel .admission-section-label:first-of-type { margin-top: 0; }

.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: none; opacity: 1;
  padding-top: 16px;
}
.nk-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.nk-table thead tr { background: var(--bg); }
.nk-table th {
  text-align: left; padding: 10px 16px;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.5px;
  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:last-child td   { border-bottom: none; }
.nk-table-footer {
  padding: 10px 16px;
  font-size: 14px; color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  background: var(--surface);
}

/* ═══ PAGE: DOCUMENTEN ═══ */
.doc-wrap {
  max-width: var(--content-max-width); margin: 0 auto; padding: 24px 16px 48px;
}
.doc-filter-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
}
.doc-filter-btn {
  padding: 10px 20px; background: none; border: none;
  font-family: var(--font-family-poppins); font-size: 14px; font-weight: 500;
  color: var(--text); cursor: pointer; position: relative; bottom: -2px;
  border-bottom: 2px solid transparent; transition: color 0.15s;
  white-space: nowrap;
}
.doc-filter-btn:hover { color: var(--text); }
.doc-filter-btn.active { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }
.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-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: 14px; color: var(--text-muted); }
.doc-card-actions {
  display: flex; gap: 8px; flex-shrink: 0; align-items: center;
}
.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: 14px; color: var(--text); max-width: 360px; line-height: 1.55; }
@media (max-width: 768px) {
  #page-documents .page-body { padding: 16px 12px 24px; }
  .doc-wrap {
    min-width: 0;
    max-width: 100%;
    padding: 8px 0 32px;
  }
  .doc-wrap .tabs {
    flex-wrap: wrap;
    min-width: 0;
  }
  .doc-filter-btn { padding: 10px 14px; }
}
@media (max-width: 600px) {
  .doc-card { flex-wrap: wrap; }
  .doc-card-actions { width: 100%; justify-content: stretch; }
  .doc-card-actions .btn { flex: 1; justify-content: center; }
  .doc-card-name { white-space: normal; }
}

/* ══════════════════════════════════════
   AGENDA — KALENDER
══════════════════════════════════════ */

/* Cal layout neemt alle resterende hoogte in */
.cal-layout {
  flex: 1;
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

/* ── Zijbalk ── */
.cal-sidebar {
  width: 252px;
  min-width: 252px;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  padding: 16px 14px;
}

.cal-new-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 13px;
}

/* Mini kalender */
.cal-mini { margin-bottom: 18px; }

.cal-mini-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cal-mini-nav span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.cal-mini-nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 20px;
  padding: 0 4px;
  border-radius: var(--radius-sm);
  line-height: 1;
}
.cal-mini-nav-btn:hover { background: var(--green-light); color: var(--green); }

.cal-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  text-align: center;
}

.cal-mini-dow {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 3px 0;
  text-transform: uppercase;
}

.cal-mini-day {
  font-size: 11px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1px auto;
  transition: background 0.1s;
  position: relative;
}
.cal-mini-day:hover { background: var(--green-light); }
.cal-mini-day.other-month { color: var(--text-muted); }
.cal-mini-day.today { background: var(--green); color: white; font-weight: 700; }
.cal-mini-day.selected:not(.today) { background: var(--green-light); font-weight: 600; }
.cal-mini-day.has-events::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--green);
  border-radius: 50%;
}
.cal-mini-day.today.has-events::after { background: rgba(255,255,255,0.7); }

/* Filters */
.cal-filters {
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  margin-bottom: 14px;
}

.cal-filters-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text);
  margin-bottom: 10px;
}

.cal-filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  user-select: none;
}
.cal-filter-item input[type=checkbox] { display: none; }

.cal-filter-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.cal-filter-item input:not(:checked) ~ .cal-filter-dot { opacity: 0.25; }
.cal-filter-item input:not(:checked) ~ span:last-child { color: var(--text-muted); }

/* Sidebar attesten */
.cal-sidebar-section {
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.cal-sb-attest {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}
.cal-sb-attest:last-child { border-bottom: none; }
.cal-sb-attest:hover .cal-sb-att-name { color: var(--green); }

.cal-sb-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}
.cal-sb-att-name { font-size: 14px; font-weight: 600; color: var(--text); }
.cal-sb-att-sub  { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* ── Hoofd kalender ── */
.cal-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
}

.cal-sidebar-overlay,
.cal-nav-btn.cal-sidebar-toggle,
.cal-mobile-new { display: none; }

.cal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 10px;
}

.cal-topbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-nav-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: background 0.12s, color 0.12s;
}
.cal-nav-btn:hover { background: var(--green-light); border-color: var(--green); color: var(--green); }
.cal-nav-btn .material-symbols-outlined { font-size: 18px; }

.cal-today-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.12s;
}
.cal-today-btn:hover { background: var(--green-light); border-color: var(--green); color: var(--green); }

.cal-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0 6px;
}

.cal-view-switch {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.cal-view-btn {
  background: none;
  border: none;
  padding: 5px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-family-poppins);
  transition: background 0.12s;
}
.cal-view-btn.active { background: var(--white); color: var(--green); font-weight: 700; }
.cal-view-btn:hover:not(.active) { background: rgba(42,128,114,0.06); }

/* ── Kalenderweergaven ── */
.cal-view { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }

/* Maandweergave */
.cal-month-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.cal-month-header > div {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 9px 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(90px, 1fr);
  flex: 1;
}

.cal-cell {
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 6px 7px;
  cursor: pointer;
  transition: background 0.1s;
  min-width: 0;
}
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell:hover { background: var(--green-light); }
.cal-cell.other-month { background: rgba(237,248,246,0.35); }

.cal-cell-day {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 3px;
}
.cal-cell.other-month .cal-cell-day { color: var(--text-muted); font-weight: 400; }
.cal-cell.today .cal-cell-day { background: var(--green); color: white; font-weight: 700; }

.cal-cell-events { display: flex; flex-direction: column; gap: 2px; }

.cal-event-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  line-height: 1.55;
  transition: opacity 0.1s;
}
.cal-event-pill:hover { opacity: 0.78; }

.cal-event-more {
  font-size: 10px;
  color: var(--text-muted);
  padding: 1px 3px;
  cursor: pointer;
  font-weight: 500;
}
.cal-event-more:hover { color: var(--green); }

/* Event kleur per type */
.cal-ev-vergadering { background: #e8f0fe; color: #1a56d6; }
.cal-ev-opleiding   { background: #f3e8ff; color: #7b1fa2; }
.cal-ev-noodkast    { background: #fff3e0; color: #c25e00; }
.cal-ev-attest-dringend   { background: #fde8e8; color: #b91c1c; }
.cal-ev-attest-binnenkort { background: #fff7ed; color: #c2410c; }
.cal-ev-attest-ok         { background: #dcfce7; color: #166534; }

/* Weekweergave */
.cal-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 16px;
  flex: 1;
}

.cal-week-col {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 10px 8px;
  min-height: 200px;
}

.cal-week-col-header { text-align: center; margin-bottom: 10px; }
.cal-week-dow { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }

.cal-week-day-num {
  font-size: 20px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.3;
}
.cal-week-day-num.today {
  background: var(--green);
  color: white;
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  margin: 2px auto 0;
  font-size: 16px; font-weight: 700;
}

.cal-week-event {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  cursor: pointer;
  line-height: 1.4;
  transition: opacity 0.1s;
}
.cal-week-event:hover { opacity: 0.78; }

.cal-week-empty { font-size: 14px; color: var(--text-muted); text-align: center; margin-top: 16px; }

/* Lijstweergave */
.cal-list-empty {
  text-align: center;
  padding: 60px 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.cal-list-month-group { padding: 0; }

.cal-list-month-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  padding: 8px 20px;
  border-bottom: 1px solid var(--border-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 2;
}

.cal-list-day-group { padding: 0 20px; }

.cal-list-day-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 0 6px;
  border-bottom: 1px solid var(--border-light);
}

.cal-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.1s;
}
.cal-list-item:last-child { border-bottom: none; }
.cal-list-item:hover { background: var(--green-light); margin: 0 -12px; padding: 10px 12px; border-radius: var(--radius-sm); }

.cal-list-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.cal-list-info { flex: 1; min-width: 0; }
.cal-list-title { font-size: 14px; font-weight: 600; color: var(--text); }
.cal-list-meta  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.cal-list-badge {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  flex-shrink: 0;
}

/* ── Event detail modal ── */
.cal-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
}
.cal-detail-row:last-child { border-bottom: none; }
.cal-detail-row .material-symbols-outlined { font-size: 17px; color: var(--text-muted); flex-shrink: 0; margin-top: 1px; }
.cal-detail-row-text { font-size: 14px; color: var(--text); line-height: 1.5; }
.cal-detail-row-sub  { font-size: 11px; color: var(--text); margin-top: 2px; }

.cal-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

/* Event detail modal */
.cal-detail-box {
  max-width: 540px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
}
.cal-detail-box .modal-header { flex-shrink: 0; margin-bottom: 0; }
.cal-detail-scroll { overflow-y: auto; flex: 1; min-height: 0; }
.cal-detail-box .modal-actions { flex-shrink: 0; margin-top: 0; }

/* Inschrijfsectie opleiding */
.cal-enroll-section {
  border-top: 1px solid var(--border-light);
  padding: 14px 22px 6px;
}
.cal-enroll-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.cal-enroll-tabs {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 14px;
  width: fit-content;
}
.cal-enroll-tab {
  padding: 5px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  color: var(--text);
  border: none;
  background: none;
  font-family: var(--font-family-poppins);
}
.cal-enroll-tab.active { background: var(--white); color: var(--green); font-weight: 700; box-shadow: var(--shadow-xs); }
.cal-enroll-panel { padding-bottom: 6px; }
.cal-enroll-people-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.cal-enroll-capacity-hint {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.cal-enroll-person {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 16px 16px;
  margin-bottom: 10px;
  background: var(--white);
}
.cal-enroll-person.is-self {
  padding: 12px 14px;
  background: var(--green-light);
}
.cal-enroll-self {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cal-enroll-self-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cal-enroll-self-info { flex: 1; min-width: 0; }
.cal-enroll-self-name { font-size: 14px; font-weight: 700; color: var(--text); }
.cal-enroll-self-meta { font-size: 13px; color: var(--text-muted); margin-top: 1px; }
.cal-enroll-person.is-self .cal-enroll-person-remove { background: rgba(255,255,255,0.72); }
.cal-enroll-person-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.cal-enroll-person-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.cal-enroll-person-remove {
  width: 28px;
  height: 28px;
  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;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
}
.cal-enroll-person-remove:hover { background: rgba(220,38,38,0.08); color: var(--color-error); }
.cal-enroll-person .form-group { margin-bottom: 12px; }
.cal-enroll-person .form-group:last-child { margin-bottom: 0; }
.cal-enroll-person .order-form-row { gap: 12px; }
.cal-enroll-people-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.cal-enroll-restore,
.cal-enroll-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  color: var(--green);
  font-family: var(--font-family-poppins);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin: 2px 12px 4px 0;
}
.cal-enroll-restore .material-symbols-outlined,
.cal-enroll-add .material-symbols-outlined { font-size: 18px; }
.cal-enroll-restore:hover,
.cal-enroll-add:hover { color: var(--green-hover); }
.cal-enroll-add:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.65;
}
.cal-enroll-section .field-error { margin: 10px 0 4px; }
.cal-unenroll-person-meta { flex: 1; min-width: 0; }
.cal-unenroll-person-name { font-size: 14px; font-weight: 700; color: var(--text); }
.cal-unenroll-person-sub { font-size: 13px; color: var(--text-muted); margin-top: 1px; }
.cal-enroll-self .btn,
.cal-unenroll-row .btn { flex-shrink: 0; }
.cal-unenroll-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Capaciteitsbalk */
.cal-capacity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.cal-capacity-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.cal-capacity-fill { height: 100%; background: var(--green); border-radius: 3px; transition: width 0.3s; }

/* Toast */
.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;
  max-width: min(520px, calc(100% - 32px));
}
.agenda-toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.agenda-toast.hidden { display: none; }

@media (max-width: 900px) {
  .cal-nav-btn.cal-sidebar-toggle { display: flex; }
  .cal-mobile-new { display: inline-flex; flex-shrink: 0; }
  .cal-sidebar .cal-new-btn { display: none; }

  .cal-layout { position: relative; }
  .cal-sidebar-overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s;
  }
  .cal-sidebar-overlay.open {
    opacity: 1;
    pointer-events: all;
  }
  .cal-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    height: auto;
    z-index: 21;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
    box-shadow: none;
  }
  .cal-sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 24px rgba(0,0,0,0.12);
  }

  .cal-topbar {
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 8px;
  }
  .cal-topbar-left {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
  }
  .cal-title {
    flex: 1 1 100%;
    margin: 4px 0 0;
    font-size: 15px;
  }
  .cal-view-switch { flex-shrink: 0; }
  .cal-view-btn { padding: 5px 10px; font-size: 13px; }

  #cal-view-week { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cal-week-grid {
    grid-template-columns: repeat(7, minmax(148px, 1fr));
    width: max-content;
    min-width: 100%;
  }
}
@media (max-width: 600px) {
  .cal-month-grid { grid-auto-rows: minmax(72px, 1fr); }
  .cal-cell { padding: 4px 2px; min-height: 72px; }
  .cal-cell-day {
    width: 28px; height: 28px; font-size: 13px;
    margin: 0 auto 4px;
  }
  .cal-cell-events {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
  }
  .cal-event-pill {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    line-height: 0;
    color: transparent;
    overflow: hidden;
    margin: 0;
    flex-shrink: 0;
  }
  .cal-event-more {
    font-size: 9px;
    width: 100%;
    text-align: center;
    padding: 0;
  }
}

/* ══════════════════════════════════════
   OVERLIJDEN
══════════════════════════════════════ */
.overl-wrap {
  max-width: var(--content-max-width);
  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 28px;
  margin-bottom: 24px;
}

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

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

.overl-actions {
  display: flex;
  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: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}

.overl-success-sub {
  font-size: 14px;
  color: var(--text);
  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: var(--content-max-width);
  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: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}

.zuurstof-success-sub {
  font-size: 14px;
  color: var(--text);
  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-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 24px;
  font-size: 14px; color: var(--text); line-height: 1.5;
}
.contact-infobalk-icon {
  font-size: 22px; color: var(--green); flex-shrink: 0;
}
.admission-success-sub {
  font-size: 14px; color: var(--text);
  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: var(--content-max-width);
  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: var(--font-family-poppins); 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: var(--content-max-width);
  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: 14px; font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text);
  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(35,31,32,0.045); }
.bewoners-table td {
  padding: 13px 16px;
  font-size: 14px; color: var(--text);
}
.bewoners-table td.kamer-col {
  font-weight: 600; font-size: 14px; color: var(--text);
  white-space: nowrap;
}
.bewoners-table td.naam-col { font-weight: 500; }
.bewoners-table td.datum-col { font-size: 14px; color: var(--text); }

/* Status chips */
.status-chip {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 300px;
  font-size: 14px; 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-muted); }

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

/* Bewonerskaart */
.bewoner-card {
  max-width: var(--content-max-width);
  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;
}

/* Bovenste rij: naam + rechts status/type */
.bewoner-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.bewoner-card-naam-wrap { flex: 1; min-width: 0; }
.bewoner-card-naam {
  font-size: 22px; font-weight: 700; color: var(--text);
  letter-spacing: -0.3px; line-height: 1.2;
}
.bewoner-card-kamer-sub {
  font-size: 14px; color: var(--text); font-weight: 400;
  margin-top: 4px;
}
.bewoner-card-top-right {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 5px; flex-shrink: 0;
}
.bewoner-card-type-label {
  font-size: 14px; color: var(--text-muted); font-weight: 500;
}

/* Meta-rij horizontaal */
.bewoner-card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0;
}
.bewoner-card-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--text-muted);
}
.bewoner-card-meta-item .material-symbols-outlined {
  font-size: 16px; color: var(--text-muted); flex-shrink: 0;
}
.bewoner-card-meta-sep {
  width: 1px; height: 14px;
  background: var(--border);
  margin: 0 10px;
  flex-shrink: 0;
}

@media (max-width: 540px) {
  .bewoner-card-top { flex-direction: column-reverse; }
  .bewoner-card-top-right { flex-direction: row; align-items: center; }
  .bewoner-card-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .bewoner-card-meta-sep { display: none; }
}

/* Historiek */
.bewoner-historiek-wrap {
  max-width: var(--content-max-width);
  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-weight: 600;
  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);
}
.bewoner-timeline-item--link .bewoner-timeline-body:has(.bewoner-timeline-gebruiker:hover) .bewoner-timeline-desc {
  color: var(--text);
  text-decoration: none;
}
.bewoner-timeline-item--link .bewoner-timeline-body:has(.bewoner-timeline-gebruiker:hover) {
  color: inherit;
}

/* 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,
  .bewoners-table th.datum-col { display: none; }
  .bewoners-table td.afdeling-col,
  .bewoners-table th.afdeling-col { display: none; }
  .bewoner-card { padding: 18px; }
  .bewoner-card-naam { font-size: 18px; }
  .bewoner-historiek-title-bar { flex-direction: column; align-items: flex-start; }
  .bewoners-recente-datum { display: none; }
}

/* Afdeling groepering in overzicht */
.bewoners-groep {
  margin-bottom: 28px;
}
.bewoners-afdeling-header {
  max-width: var(--content-max-width);
  margin: 0 auto 10px;
  font-size: 14px; font-weight: 700;
  color: var(--text);
  text-transform: uppercase; letter-spacing: 0.07em;
  display: flex; align-items: center; gap: 8px;
}
.bewoners-afdeling-count {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--border-light);
  color: var(--text-muted);
  font-size: 11px; font-weight: 700;
  border-radius: 300px;
  padding: 1px 8px;
  letter-spacing: 0;
}

/* Recent badge naast bewonernaam */
.bewoners-recent-badge {
  display: inline-flex; align-items: center;
  padding: 1px 7px;
  border-radius: 300px;
  font-size: 11px; font-weight: 600;
  vertical-align: middle; margin-left: 6px;
}
.bewoners-recent-badge.opname  { background: #fff3e0; color: #e65100; }
.bewoners-recent-badge.verhuis { background: #f3e5f5; color: #6a1b9a; }

/* Afdeling kolom in zoekresultaten */
.bewoners-table td.afdeling-col { font-size: 14px; color: var(--text); }

/* Laatste wijzigingen sectie */
.bewoners-recente-wrap {
  max-width: var(--content-max-width);
  margin: 8px auto 40px;
}
.bewoners-recente-title {
  font-size: 14px; font-weight: 700;
  color: var(--text);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 12px;
}
.bewoners-recente-lijst {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.bewoners-recente-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.12s;
}
.bewoners-recente-item:last-child { border-bottom: none; }
.bewoners-recente-item:hover { background: rgba(35,31,32,0.04); }
.bewoners-recente-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.bewoners-recente-body { flex: 1; min-width: 0; }
.bewoners-recente-meta {
  display: flex; align-items: center; gap: 5px;
  flex-wrap: wrap;
  font-size: 14px; margin-bottom: 2px;
}
.bewoners-recente-naam  { font-weight: 600; color: var(--text); }
.bewoners-recente-sep   { color: var(--text-muted); font-size: 14px; }
.bewoners-recente-kamer, .bewoners-recente-afd { color: var(--text); font-size: 14px; }
.bewoners-recente-omschr {
  font-size: 14px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bewoners-recente-datum {
  font-size: 14px; color: var(--text-muted);
  white-space: nowrap; flex-shrink: 0;
}

/* Historiek filter chips op detailpagina */
.bewoner-historiek-title-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  margin-bottom: 20px;
}
.bewoner-historiek-title-bar .bewoner-historiek-title { margin-bottom: 0; }
.bewoner-hist-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.bewoner-hist-filter-btn {
  height: 30px; padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 300px;
  background: var(--white);
  font-family: var(--font-family-poppins);
  font-size: 14px; font-weight: 500; color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}
.bewoner-hist-filter-btn:hover { border-color: var(--green); color: var(--green); }
.bewoner-hist-filter-btn.active { background: var(--green); border-color: var(--green); color: var(--white); }

/* Verhuis event in tijdlijn */
.bewoner-timeline-dot.verhuis  { color: #6a1b9a; background: #6a1b9a; }
.bewoner-timeline-type.verhuis { color: #6a1b9a; }

/* Jaar dropdown */
.bewoner-hist-jaar-wrap {
  position: relative;
}
.bewoner-hist-jaar-btn {
  height: 30px; padding: 0 10px 0 13px;
  border: 1px solid var(--border);
  border-radius: 300px;
  background: var(--white);
  font-family: var(--font-family-poppins);
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  cursor: pointer;
  display: inline-flex; align-items: center;
  transition: all 0.15s;
  white-space: nowrap;
}
.bewoner-hist-jaar-btn:hover { border-color: var(--green); color: var(--green); }
.bewoner-hist-jaar-btn.open  { border-color: var(--green); color: var(--green); background: #f0f7f1; }
.bewoner-hist-jaar-btn .material-symbols-outlined {
  transition: transform 0.15s;
}
.bewoner-hist-jaar-btn.open .material-symbols-outlined {
  transform: rotate(180deg);
}
.bewoner-hist-jaar-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px 0;
  min-width: 130px;
  z-index: 100;
}
.bewoner-hist-jaar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  font-size: 13px; font-weight: 500; color: var(--text);
  cursor: pointer;
  transition: background 0.1s;
  user-select: none;
}
.bewoner-hist-jaar-item:hover { background: var(--bg-soft); }
.bewoner-hist-jaar-item input[type="checkbox"] {
  accent-color: var(--green);
  width: 15px; height: 15px;
  cursor: pointer; flex-shrink: 0;
}

/* Laad meer knop */
.bewoner-laadmeer-wrap {
  display: flex; justify-content: center;
  margin: 4px 0 24px;
}
.bewoner-laadmeer-btn {
  display: inline-flex; align-items: center;
  height: 34px; padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 300px;
  background: var(--white);
  font-family: var(--font-family-poppins);
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.bewoner-laadmeer-btn:hover { border-color: var(--green); color: var(--green); }

/* Herbruikbare klikbare gebruikersnaam (tijdlijn, inbox, opvolging, orders) */
.gebruiker-naam-link {
  background: none; border: none; padding: 0;
  font-family: inherit; font-size: inherit; font-weight: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.12s;
}
.gebruiker-naam-link:hover { color: var(--green); }

/* Gebruikerslabel in tijdlijn */
.bewoner-timeline-gebruiker {
  display: flex; align-items: center;
  margin-top: 5px;
}
.bewoner-timeline-gebruiker-btn {
  font-size: 14px; color: var(--text-muted);
}

/* Gebruiker popup modal */
.bewoner-gebruiker-modal-header {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-light);
}
.bewoner-gebruiker-modal-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: var(--white);
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; letter-spacing: 0.5px;
}
.bewoner-gebruiker-modal-naam {
  font-size: 15px; font-weight: 700; color: var(--text);
  letter-spacing: -0.2px;
}
.bewoner-gebruiker-modal-functie {
  font-size: 14px; color: var(--text); margin-top: 2px;
}
.bewoner-gebruiker-modal-body {
  padding: 14px 20px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.bewoner-gebruiker-modal-rij {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-muted);
}
.bewoner-gebruiker-modal-rij .material-symbols-outlined {
  font-size: 17px; color: var(--text-muted); flex-shrink: 0;
}

/* Historiek item modal */
.bewoner-hist-modal-type-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 300px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  flex-shrink: 0;
}
.bewoner-hist-modal-footer {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--border-light);
}

/* Uitgebreide bewoner-kaart */
.bewoner-card-extra-divider {
  border-top: 1px solid var(--border-light);
  margin: 18px 0 16px;
}
.bewoner-card-extra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
@media (max-width: 540px) {
  .bewoner-card-extra-grid { grid-template-columns: 1fr; }
}
.bewoner-card-extra-label {
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 3px;
}
.bewoner-card-extra-value {
  font-size: 14px; color: var(--text);
  font-weight: 500;
}

/* Toggle knop op bewoner-kaart */
.bewoner-card-toggle-btn {
  display: inline-flex; align-items: center;
  background: none; border: none;
  font-family: var(--font-family-poppins);
  font-size: 13px; font-weight: 500;
  color: var(--green);
  cursor: pointer; padding: 0;
}
.bewoner-card-toggle-btn:hover { text-decoration: underline; }

/* Opname detail modal inhoud */
.opname-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin-bottom: 18px;
}
@media (max-width: 480px) {
  .opname-modal-grid { grid-template-columns: 1fr; }
}
.opname-modal-label {
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 3px;
}
.opname-modal-waarde {
  font-size: 14px; font-weight: 500; color: var(--text);
}
.opname-modal-documenten {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.opname-modal-badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px;
  border-radius: 300px;
  font-size: 14px; font-weight: 600;
}
.opname-modal-badge--ja  { background: #e8f5e9; color: #2e7d32; }
.opname-modal-badge--nee { background: #f5f5f5; color: #9e9e9e; }
.opname-modal-opmerking-wrap {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.opname-modal-opmerking {
  font-size: 14px; color: var(--text); line-height: 1.6;
  margin-top: 4px;
}

/* ══════════════════════════════════════
   TOOLS
══════════════════════════════════════ */
.tools-wrap {
  max-width: var(--content-max-width); margin: 0 auto; padding: 24px 16px 48px;
}
.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: var(--green); 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: 14px; color: var(--text); line-height: 1.5; margin-bottom: 5px;
}
.tools-card-url {
  font-size: 11px; color: var(--text-muted); line-height: 1;
}
.tools-card-btn {
  flex-shrink: 0; pointer-events: none;
}
@media (max-width: 600px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tools-card-btn { display: none; }
}

/* ═══════════════════════════════════════════
   HELPDESK MODAL (loginpagina)
═══════════════════════════════════════════ */
.helpdesk-success-wrap {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 16px 0 8px; gap: 12px;
}
.helpdesk-success-icon {
  font-size: 48px; color: var(--color-success);
  font-variation-settings: 'wght' 200;
}
.helpdesk-success-title {
  font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.4;
}
.helpdesk-success-sub {
  font-size: 14px; color: var(--text); line-height: 1.55; max-width: 320px;
}

/* ═══════════════════════════════════════════
   BESTELLINGEN — UITBREIDINGEN
═══════════════════════════════════════════ */
.of-besteltype-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.of-besteltype-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: 10px;
  border: 1.5px solid var(--border-light); background: var(--white);
  cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}
.of-besteltype-btn.active { border-color: var(--green); background: var(--green-light); color: var(--text); font-weight: 600; }
.of-besteltype-btn .material-symbols-outlined { font-size: 20px; }
@media (max-width: 600px) {
  .of-besteltype-row {
    grid-template-columns: 1fr;
  }
  .of-besteltype-btn {
    min-width: 0;
    justify-content: center;
  }
}

.of-vrijtext-panel { display: none; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.of-vrijtext-panel.open { display: block; }
.of-vrijtext-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: flex-end; }

.of-historiek-panel { display: none; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.of-historiek-panel.open { display: block; margin-top: 18px; }
.of-historiek-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--green-light); border-bottom: 1px solid var(--border); }
.of-historiek-header-title { font-size: 14px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.of-historiek-header-close { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 16px; padding: 2px 4px; border-radius: 4px; line-height: 1; }
.of-historiek-header-close:hover { color: var(--text); background: var(--border-light); }
.of-hist-order { padding: 12px 16px; border-bottom: 1px solid var(--border-light); }
.of-hist-order:last-child { border-bottom: none; }
.of-hist-order-meta { font-size: 11px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.03em; margin-bottom: 8px; }
.of-hist-product-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.of-hist-product-row + .of-hist-product-row { border-top: 1px solid var(--border-light); }
.of-hist-product-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.of-hist-product-name { font-size: 14px; font-weight: 500; color: var(--text); }
.of-hist-product-cnk { font-size: 14px; color: var(--text); }
.of-hist-add-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 8px; border: 1px solid var(--border); background: #fff; font-size: 14px; font-weight: 500; color: var(--green); cursor: pointer; transition: background 0.14s, border-color 0.14s; white-space: nowrap; }
.of-hist-add-btn:hover { background: var(--green-light); border-color: var(--green); }
.of-hist-add-btn.added { background: var(--green-light); border-color: var(--green); color: var(--green); pointer-events: none; }
.of-historiek-empty { padding: 20px 16px; font-size: 14px; color: var(--text); text-align: center; }
.of-historiek-empty .material-symbols-outlined { font-size: 28px; display: block; margin-bottom: 6px; opacity: 0.4; }

.of-vrijtext-badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  background: #fef3c7; color: #92400e; border-radius: 4px; padding: 2px 6px;
  vertical-align: middle; margin-left: 6px;
}

.btn-herbestel {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14.5px; font-weight: 500; color: var(--green);
  background: transparent; border: 1.5px solid currentColor;
  border-radius: 8px; padding: 5px 11px; cursor: pointer;
  transition: background 0.14s;
}
.btn-herbestel:hover { background: var(--green-light); }
.btn-herbestel .material-symbols-outlined { font-size: 15px; }

/* ══════════════════════════════════════
   PAGE: LEVERSCHEMA APOTHEEK
══════════════════════════════════════ */
.ds-wrap { max-width: var(--content-max-width); margin: 0 auto; padding: 0 0 40px; }

.ds-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ds-table thead tr { border-bottom: 1.5px solid var(--border-light); }
.ds-table th {
  text-align: left; font-size: 14px; font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text); padding: 0 12px 12px 0;
}
.ds-table th:first-child { padding-left: 4px; }
.ds-table td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--border-light); color: var(--text); vertical-align: middle; }
.ds-table td:first-child { padding-left: 4px; }
.ds-table tbody tr:last-child td { border-bottom: none; }
/*.ds-row-delivery { background: var(--green-light); }*/
.ds-row-delivery td { border-bottom-color: var(--border-light); }
.ds-day-name { font-weight: 500; }
.ds-day-muted { color: var(--text-muted); font-weight: 400; }
.ds-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 600; border-radius: 20px;
  padding: 3px 10px; letter-spacing: 0.1px;
}
.ds-badge-yes { background: #dcfce7; color: #166534; }
.ds-badge-no { background: var(--bg); color: var(--text-muted); font-weight: 400; }
.ds-time { font-variant-numeric: tabular-nums; }
.ds-time-muted { color: var(--text-muted); }

/* ═══════════════════════════════════════════
   LEVERBONNEN
═══════════════════════════════════════════ */
.lb-wrap { max-width: var(--content-max-width); margin: 0 auto; padding: 0 0 40px; }

.lb-filter-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
}
.lb-month-label {
  font-size: 15px; font-weight: 600; min-width: 140px; text-align: center;
  color: var(--text);
}
.lb-month-nav {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); cursor: pointer; color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s;
}
.lb-month-nav:hover { border-color: var(--green); color: var(--green); }
.lb-month-nav .material-symbols-outlined { font-size: 20px; }
.lb-summary { font-size: 14px; color: var(--text-muted); margin-left: auto; }

#lb-list { display: flex; flex-direction: column; gap: 10px; }

.lb-moment {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  padding: 14px 16px; gap: 12px;
}
.lb-moment-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.lb-moment-icon { color: var(--green); font-size: 20px; flex-shrink: 0; }
.lb-moment-date { font-size: 14px; font-weight: 600; color: var(--text); }
.lb-moment-meta { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.lb-moment-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.lb-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 14px; font-weight: 600; line-height: 1.4;
}
.lb-badge-geleverd { background: #dcfce7; color: #166534; }
.lb-badge-verwacht { background: #fef9c3; color: #854d0e; }

.lb-pdf-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text-muted);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  font-family: var(--font-family-poppins);
}
.lb-pdf-btn:hover { border-color: var(--green); color: var(--green); background: var(--green-light); }
.lb-pdf-btn .material-symbols-outlined { font-size: 16px; }

@media (max-width: 600px) {
  .lb-filter-row { flex-wrap: wrap; }
  .lb-summary { margin-left: 0; width: 100%; }
  .lb-moment { flex-wrap: wrap; align-items: flex-start; }
  .lb-moment-right {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .lb-badge { display: inline-flex; }
  .lb-month-nav { width: 44px; height: 44px; }
}

/* ── VERDOVENDE MEDICATIE ── */
.vm-radio-group {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px;
}
.vm-radio-card {
  display: flex; align-items: flex-start; gap: 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s;
  background: var(--white);
}
.vm-radio-card:hover { border-color: var(--green); background: rgba(191,233,226,.35); }
.vm-radio-card.selected { border-color: var(--green); background: rgba(191,233,226,.55); }
.vm-radio-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0; margin-top: 2px;
  transition: border-color .15s, background .15s;
}
.vm-radio-card.selected .vm-radio-dot {
  border-color: var(--green); background: var(--green);
  box-shadow: inset 0 0 0 3px white;
}
.vm-radio-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.vm-radio-sub { font-size: 13px; color: var(--text); line-height: 1.45; }
@media (max-width: 600px) {
  #page-verdovende-medicatie .nk-table th:nth-child(4),
  #page-verdovende-medicatie .nk-table td:nth-child(4),
  #page-verdovende-medicatie .nk-table th:nth-child(7),
  #page-verdovende-medicatie .nk-table td:nth-child(7),
  #page-verdovende-medicatie .nk-table th:nth-child(8),
  #page-verdovende-medicatie .nk-table td:nth-child(8) { display: none; }
}

/* ══════════════════════════════════════
   PROFIEL
══════════════════════════════════════ */
.profiel-hero-card {
  display: flex; align-items: center; gap: 24px;
}
.profiel-avatar-big {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--green); color: white;
  font-size: 24px; font-weight: 700; letter-spacing: 0.5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profiel-hero-naam {
  font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px;
}
.profiel-hero-functie {
  font-size: 14px; color: var(--text); font-weight: 500;
}
.profiel-label { min-width: 100px; }

@media (max-width: 768px) {
  :root { --page-topbar-h: 0px; }
  .page-topbar { display: none; }
  .page-footer {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 0;
    padding: 14px 16px;
    text-align: center;
  }
  .breadcrumb { padding-left: 16px; padding-right: 16px; }
  .page-body {
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .dashboard-banner {
    min-height: 0;
    padding: 18px 16px;
  }
  .banner-close {
    width: 44px;
    height: 44px;
  }

  .bewoners-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .order-table,
  .detail-table,
  .nk-table,
  .activity-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .order-table thead, .order-table tbody,
  .detail-table thead, .detail-table tbody,
  .nk-table thead, .nk-table tbody,
  .activity-table thead, .activity-table tbody {
    display: table;
    width: 100%;
    min-width: 480px;
  }

  .cal-nav-btn {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    box-sizing: border-box;
  }
  .qty-btn,
  .del-btn {
    width: 44px;
    height: 44px;
  }
  .qty-num { line-height: 44px; min-width: 36px; }
  .modal-close,
  .agenda-modal-close,
  .inbox-detail-close {
    width: 44px;
    height: 44px;
  }

  #toast,
  .agenda-toast {
    white-space: normal;
    text-align: center;
  }
  .agenda-toast {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 520px) {
  .page-footer { gap: 4px 12px; }
  .footer-sep { display: none; }
  .order-card,
  .todo-card {
    flex-wrap: wrap;
  }
  .order-card-actions,
  .todo-card-actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
  }
  .retour-product-row { flex-wrap: wrap; }
  .retour-product-naam { min-width: 0; flex: 1 1 140px; }
  .retour-product-aantal-wrap {
    margin-left: auto;
  }
  .of-card-header {
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
  }
  .of-vrijtext-row { grid-template-columns: 1fr; }
  .overl-actions,
  .modal-actions {
    flex-wrap: wrap;
  }
  .overl-actions .btn,
  .modal-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .profiel-hero-card { flex-wrap: wrap; }
}
