/* ==========================================
   🎨 DESIGN TOKENS
   ========================================== */
:root{
  --bg:#0b1220;
  --text:#e8eefc;
  --muted:#9fb0d0;
  --brand:#1b6ff6;
  --danger:#ff3b3b;
  --ok:#2bd97c;
  --border: rgba(255,255,255,.08);
  --scrollbar-track: transparent;
  --scrollbar-thumb: rgba(255,255,255,.15);
  --scrollbar-thumb-hover: rgba(255,255,255,.25);
}

/* ==========================================
   📐 BASE RESET + TYPOGRAPHY
   ========================================== */

*{ box-sizing:border-box; }
html,body{ height:100%; overflow-x:hidden; }
body{
  margin:0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(27,111,246,.35), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(43,217,124,.15), transparent 55%),
              var(--bg);
  color:var(--text);
}
/* Globale scrollbar-stijl (zelfde neutrale look als redactie-panelen) */
*{
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
*::-webkit-scrollbar{
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track{
  background: var(--scrollbar-track);
}
*::-webkit-scrollbar-thumb{
  background: var(--scrollbar-thumb);
  border-radius: 4px;
}
*::-webkit-scrollbar-thumb:hover{
  background: var(--scrollbar-thumb-hover);
}
*::-webkit-scrollbar-corner{
  background: var(--scrollbar-track);
}
body main.page{
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--bg); /* voorkomt blauwe gradient-band boven footer op korte pagina’s (profiel, management) */
}
a{ color:inherit; text-decoration:none; }
.container{ width:min(1200px, calc(100% - 32px)); margin:0 auto; }

/* ==========================================
   🧭 TOPBAR + NAVIGATIE
   ========================================== */
.topbar{
  position:sticky; top:0; z-index:10;
  background: rgba(11,18,32,.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:900; }
.brand__logo{ width:34px; height:34px; }
.brand__name{ opacity:.95; }
.topbar__nav{ display:flex; align-items:center; gap:10px; margin-left:10px; flex:1; }
.topbar__menuBtn{ display:none; border:1px solid var(--border); background: rgba(255,255,255,.06); color:var(--text); border-radius:12px; padding:8px 12px; height:40px; }
.topbar__navMobile{ display:none; width:100%; margin-top:8px; padding:10px; border:1px solid var(--border); border-radius:14px; background: rgba(0,0,0,.25); }
.topbar__navMobile .navlink{ display:block; padding:10px 12px; border-radius:12px; }
.topbar__navMobile.is-open{ display:block; }
.navlink{ color:var(--text); text-decoration:none; padding:8px 10px; border-radius:10px; opacity:.9; }
.navlink:hover{ background: rgba(255,255,255,.06); opacity:1; }

/* Desktop nav dropdown Afdelingen */
.nav-dropdown{ position:relative; display:inline-block; }
.nav-dropdown__trigger{ background:none; border:none; cursor:pointer; font:inherit; color:inherit; }
.nav-dropdown__menu{ display:none; position:absolute; top:100%; left:0; margin-top:4px; min-width:180px; padding:6px; background: rgba(0,0,0,.6); border:1px solid var(--border); border-radius:12px; box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index:100; }
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu{ display:block; }
.nav-dropdown__item{ display:block; color:var(--text); text-decoration:none; padding:10px 12px; border-radius:10px; opacity:.95; }
.nav-dropdown__item:hover{ background: rgba(255,255,255,.08); opacity:1; }

.topbar__right{ display:flex; align-items:center; gap:10px; }
.topbar__right .role-mobile-hide{
  white-space: nowrap;
}
.pilllink{ display:flex; align-items:center; gap:10px; }

/* User dropdown: klik op naam/foto opent menu met Notificaties + Profiel; badge op avatar */
.user-dropdown{ position:relative; display:inline-block; }
.user-dropdown__trigger{ background:none; border:none; cursor:pointer; font:inherit; color:inherit; padding:4px 6px; border-radius:12px; display:flex; align-items:center; gap:10px; }
.user-dropdown__trigger:hover{ background: rgba(255,255,255,.06); }
.user-dropdown__avatarWrap{ position:relative; display:inline-flex; flex-shrink:0; }
.user-dropdown__meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  min-width:0;
  line-height:1.15;
}
.user-dropdown__name{
  max-width:220px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:700;
  font-size:13px;
}
.user-dropdown__badge{ position:absolute; top:-2px; right:-2px; min-width:18px; height:18px; padding:0 5px; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; background:var(--danger); color:#fff; border-radius:999px; border:2px solid var(--bg); line-height:1; }
.user-dropdown__menu{ display:none; position:absolute; top:100%; right:0; margin-top:6px; min-width:180px; padding:6px; background: rgba(13, 20, 32, .98); border:1px solid rgba(255,255,255,.18); border-radius:12px; box-shadow: 0 12px 28px rgba(0,0,0,.48); z-index:100; }
.user-dropdown.is-open .user-dropdown__menu{ display:block; }
.user-dropdown__item{ display:flex; align-items:center; justify-content:space-between; gap:10px; color:var(--text); text-decoration:none; padding:10px 12px; border-radius:10px; opacity:.95; }
.user-dropdown__item:hover{ background: rgba(255,255,255,.08); opacity:1; }
button.user-dropdown__item{
  background:none;
  border:none;
  width:100%;
  text-align:left;
  font:inherit;
  padding:10px 12px;
  cursor:pointer;
}
.user-dropdown__role{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
  justify-content: center;
  color: var(--role-color, var(--muted));
  background: color-mix(in srgb, var(--role-color, #9fb0d0) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--role-color, #9fb0d0) 55%, transparent);
  border-radius: 10px;
  padding: 6px 8px;
  margin: 0 2px 4px;
}
.user-dropdown__itemBadge{ font-size:11px; font-weight:700; padding:2px 6px; background:var(--danger); color:#fff; border-radius:999px; }

/* ==========================================
   🧩 COMPONENTEN (pills, switches, cards, buttons, forms, tables)
   ========================================== */
.assignPills{ display:flex; flex-direction:column; gap:6px; align-items:flex-start; }
.assignPills .pill{ max-width:100%; }

.switch{ position:relative; display:inline-flex; }
.switch input{ position:absolute; opacity:0; width:0; height:0; }
.switch__track{ width:46px; height:26px; background: rgba(255,255,255,.12); border:1px solid var(--border); border-radius:999px; position:relative; transition:.2s; }
.switch__track:after{ content:''; position:absolute; top:3px; left:3px; width:20px; height:20px; background:#fff; border-radius:999px; transition:.2s; }
.switch input:checked + .switch__track{ background: rgba(255,255,255,.22); }
.switch input:checked + .switch__track:after{ transform: translateX(20px); }

.page{ padding:22px 0 28px; }
h1,h2{ margin:0 0 10px; }
h1{ font-size:28px; }
h2{ font-size:18px; }
.muted{ color:var(--muted); }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.grid{ display:grid; grid-template-columns: 1fr; gap:14px; }
@media (min-width: 920px){ .grid{ grid-template-columns: 1fr 1fr; } }

/* Mobile topbar: show hamburger, hide inline nav, avoid tiny links */
@media (max-width: 820px){
  .topbar__inner{ flex-wrap: wrap; gap: 10px; }
  .topbar__nav{ display:none; }
  .topbar__menuBtn{ display:inline-flex; align-items:center; justify-content:center; }
  .brand{ flex: 1; }
  .topbar__right{ width:100%; justify-content:flex-start; flex-wrap:nowrap; gap:8px; min-width:0; }
  .topbar__right .user-dropdown{ min-width:0; flex:1 1 auto; }
  .user-dropdown__name{ max-width:52vw; }
}

.span-2cols{ grid-column: span 2; }

.span-2{ grid-column: 1 / -1; }
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding:16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.card__head{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }

/* Management: actieknoppen naast titel (medewerkers, uren, medewerker-detail, …) */
.card--manager .manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.card--manager .manager-actions form {
  margin: 0;
  display: inline-flex;
}
.card--manager .manager-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  line-height: 1.2;
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 12px;
}
.card--manager .manager-actions button.btn.btn--ghost {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-decoration: none;
}

/* Algemene mobile hamburger voor manager-card headers (management/uren/medewerkers/etc.) */
.card--manager .manager-toolbar{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card--manager .manager-toolbar__toggle{
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.card--manager .manager-toolbar__toggle:hover{ background: rgba(255,255,255,.08); }
.card--manager .manager-toolbar__bar{
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #cfd8e8;
  transition: transform .18s ease, opacity .18s ease;
}
.card--manager .manager-toolbar__toggle[aria-expanded="true"] .manager-toolbar__bar:nth-child(1){
  transform: translateY(6px) rotate(45deg);
}
.card--manager .manager-toolbar__toggle[aria-expanded="true"] .manager-toolbar__bar:nth-child(2){ opacity: 0; }
.card--manager .manager-toolbar__toggle[aria-expanded="true"] .manager-toolbar__bar:nth-child(3){
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 700px){
  .card--manager .manager-toolbar__toggle{ display: inline-flex; }
  .card--manager .manager-toolbar .manager-actions[data-collapsible="1"]{
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    z-index: 80;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: #131a26;
    box-shadow: 0 12px 28px rgba(0,0,0,.45);
    flex-direction: column;
    gap: 6px;
  }
  .card--manager .manager-toolbar .manager-actions[data-collapsible="1"].is-open{ display: flex; }
  .card--manager .manager-toolbar .manager-actions[data-collapsible="1"] .btn{
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 10px 12px;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* Generieke header-toolbar (ook voor kalender/andere management cards) */
.card__head .manager-toolbar{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

@media (max-width: 700px){
  .card__head.has-mobile-toolbar{
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }
  .card__head.has-mobile-toolbar h2{
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
  }
  .card__head .manager-toolbar__toggle{
    display: inline-flex;
  }
  .card__head .manager-toolbar .manager-actions[data-collapsible="1"]{
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    z-index: 120;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: #131a26;
    box-shadow: 0 12px 28px rgba(0,0,0,.45);
    flex-direction: column;
    gap: 6px;
  }
  .card__head .manager-toolbar .manager-actions[data-collapsible="1"].is-open{
    display: flex;
  }
  .card__head .manager-toolbar .manager-actions[data-collapsible="1"] .btn{
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 10px 12px;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* Medewerkerslijst + medewerker bewerken: zelfde toolbar op mobiel */
@media (max-width: 700px) {
  .page-employees .card--manager > .card__head,
  .page-employee-detail .card--manager > .card__head {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
  .page-employees .card--manager > .card__head .manager-actions:not([data-collapsible="1"]),
  .page-employee-detail .card--manager > .card__head .manager-actions:not([data-collapsible="1"]) {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 2px;
  }
  .page-employees .card--manager > .card__head .manager-actions:not([data-collapsible="1"]) .btn,
  .page-employee-detail .card--manager > .card__head .manager-actions:not([data-collapsible="1"]) .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 10px;
  }
}
@media (max-width: 520px) {
  .page-employees .card--manager .manager-actions:not([data-collapsible="1"]),
  .page-employee-detail .card--manager .manager-actions:not([data-collapsible="1"]) {
    justify-content: flex-start;
    gap: 8px;
  }
  .page-employees .card--manager .manager-actions:not([data-collapsible="1"]) .btn,
  .page-employee-detail .card--manager .manager-actions:not([data-collapsible="1"]) .btn {
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
  }
}

.notif-list{ list-style:none; margin:0; padding:0; }
.notif-item{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); flex-wrap:wrap; }
.notif-item:last-child{ border-bottom:none; }
.notif-item--read .notif-item__title{ font-weight:500; opacity:.85; }
.notif-item__main{ flex:1; min-width:0; }
.notif-item__title{ display:block; margin-bottom:4px; }
.notif-item__body{ margin:0 0 4px; font-size:0.95rem; }
.notif-item__date{ font-size:0.85rem; }
.notif-item__actions{ display:flex; gap:8px; align-items:center; }

/* Medewerkerpagina: notificatietabel — Datum + Gelezen compact naast elkaar, actieknop netjes rechts */
.tablewrap--employee-notif .table--employee-notif{ table-layout:fixed; width:100%; }
.table--employee-notif th:nth-child(1),
.table--employee-notif td:nth-child(1){ width:20%; }
.table--employee-notif th:nth-child(2),
.table--employee-notif td:nth-child(2){ width:50%; }
.table--employee-notif th:nth-child(3),
.table--employee-notif td:nth-child(3){ width:14%; white-space:nowrap; font-size:0.9rem; }
.table--employee-notif .th--gelezen,
.table--employee-notif .td--gelezen{ width:6%; white-space:nowrap; text-align:center; padding-left:4px; padding-right:4px; }
.table--employee-notif .th--actie,
.table--employee-notif .td--actie{ width:20%; white-space:nowrap; padding-left:8px; text-align:right; }
.table--employee-notif .td--actie .btn{ white-space:nowrap; }

/* Bericht-sturen form: onderwerp en bericht exact even groot naast elkaar */
/* Bericht sturen: grid overschrijft .row, volle breedte van de card */
.form.form--message-row .form__message-row{ display:grid !important; grid-template-columns:1fr 1fr; gap:12px; align-items:stretch; width:100%; max-width:100%; }
.form.form--message-row .form__message-row .form__message-label{ min-width:0; display:flex; flex-direction:column; width:100%; }
.form__message-label span{ display:block; margin-bottom:4px; font-weight:700; }
.form__message-label input,
.form__message-label textarea{ width:100%; min-width:0; box-sizing:border-box; flex:1; min-height:5em; }
.form__message-label textarea{ resize:vertical; }
@media (max-width: 600px){ .form.form--message-row .form__message-row{ grid-template-columns:1fr; } }

.card--inner{ background: rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.08); box-shadow:none; }

.btn{
  border:0; border-radius: 12px; padding:10px 14px;
  font-weight:900; cursor:pointer;
  background: var(--brand); color:white;
}
.btn--ghost{
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--orange{
  background: #ea580c;
  border: none;
  color: #fff;
}
.btn--orange:hover{
  background: #c2410c;
  color: #fff;
}
.btn--danger{ background: var(--danger); }
.btn--success{ background: #2d7a3e; color: #fff; border: none; }
.btn--success:hover{ background: #246b30; color: #fff; }
.btn--activeer{ background: rgba(43,217,124,.25); border-color: rgba(43,217,124,.5); color: #fff; }
.btn--activeer:hover{ background: rgba(43,217,124,.4); border-color: rgba(43,217,124,.65); color: #fff; }
.btn--deactiveer{ background: rgba(255,59,59,.25); border-color: rgba(255,59,59,.5); color: #fff; }
.btn--deactiveer:hover{ background: rgba(255,59,59,.4); border-color: rgba(255,59,59,.65); color: #fff; }
.btn--sm{ padding:6px 10px; border-radius: 10px; font-weight:900; }
.btn--xs{ padding:5px 8px; border-radius: 8px; font-weight: 700; font-size: 12px; }
.btn:disabled{ opacity:.6; cursor:not-allowed; }

/* ==========================================
   📷 FOTOGRAFIE
   ========================================== */
.page-photography .card__actions{
  display:flex;
  gap:8px;
}
.page-photography .card__actions .btn{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  white-space:nowrap;
}

.pill{
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  font-size:13px;
  font-weight:900;
}

.pill--truncate{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
}

/* Give more room to full names in header + assignment areas on desktop */
.topbar__right .pill--truncate{
  max-width: none;
  flex: 1 1 auto;
  min-width: 0;
}
.assignName{ max-width: 320px; }

.heart{ color: var(--brand); font-weight: 900; }

.p2000time__t{ font-weight: 900; }
.p2000time__d{ font-size: 12px; margin-top: 2px; }

@media (max-width: 860px) {
  .topbar__inner{ flex-wrap: wrap; gap: 10px; }
  .brand__name{ font-size: 14px; }
  .tablewrap{ overflow-x: auto; }
  .staff{ grid-template-columns: 44px 1fr auto; gap: 10px; }
  .btnrow{ flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .container{ padding: 12px; }
  .card{ padding: 14px; border-radius: 16px; }
  .brand__logo{ width: 22px; height: 22px; }
  .pill--truncate{ max-width: 120px; }
  .topbar__right .user-dropdown__trigger{
    min-width: 0;
    max-width: 100%;
  }
  .topbar__right .role-mobile-hide{
    max-width: 44vw;
    font-size: 12px;
  }
}
.pill--muted{ color: var(--muted); }

.form{ display:grid; gap:10px; margin-top:12px; }
.form--row{ grid-template-columns: 1fr 1fr auto; align-items:end; }
.form--row-align-center{ align-items:center; }
@media (max-width: 700px){ .form--row{ grid-template-columns: 1fr; } }

.photoform__grid{
  display:grid;
  gap:10px;
}
@media (min-width: 960px){
  .photoform__grid{
    grid-template-columns: 1fr 1fr;
  }
  .photoform__grid .field.field--full{
    grid-column: 1 / -1;
  }
}

.photoform__actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.photoform__actions .btn{
  min-width:130px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
@media (max-width: 640px){
  .photoform__actions{
    flex-direction:column;
    align-items:center;
    justify-content:center;
  }
  .photoform__actions .btn{
    width:100%;
    max-width:none;
    text-align:center;
  }
}

.photoform__gpswrap{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:flex-start;
}
.photoform__gpsbtn{
  padding-inline:12px;
}
.photoform__gpshint{
  font-size:12px;
}

label span{ display:block; font-size:13px; margin-bottom:6px; color: var(--muted); font-weight:900; }
input,select,textarea{
  width:100%;
  padding:10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline:none;
}
select option,
select optgroup {
  background: #111927;
  color: var(--text);
}
input:focus,select:focus,textarea:focus{ border-color: rgba(27,111,246,.6); }

/* iOS datetime-local: zelfde aanpak als date-fields: 16px op mobiel tegen auto-zoom, verder normale breedte */
@media (max-width: 768px) {
  input[type="datetime-local"] {
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
    font-size:16px;
    -webkit-appearance:none;
    appearance:none;
  }
}

.alert{
  border-radius: 12px;
  padding:10px 12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  margin:10px 0;
}
.alert--error{ border-color: rgba(255,59,59,.4); background: rgba(255,59,59,.08); }
.alert--ok{ border-color: rgba(43,217,124,.35); background: rgba(43,217,124,.08); }

.deflist{
  margin:0;
}
.deflist > div{
  margin-bottom:8px;
}
.deflist dt{
  font-size:12px;
  color:var(--muted);
  font-weight:700;
  margin-bottom:2px;
}
.deflist dd{
  margin:0;
}
.deflist__text{
  white-space:pre-wrap;
  word-break:break-word;
}

.incidentgrid{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
@media (min-width: 900px){
  .incidentgrid{
    grid-template-columns: 1fr 1fr;
  }
}
.incidentgrid__item{
  padding:4px 0;
}
.incidentgrid__item--full{
  grid-column: 1 / -1;
}
.incidentgrid__label{
  font-size:12px;
  color:var(--muted);
  font-weight:700;
  margin-bottom:2px;
}
.incidentgrid__value{
  font-size:14px;
}

.incidentpill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  color:var(--text);
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Fotolijst: alleen cijfer — gelijke cijferbreedte + vaste minbreedte zodat 1 vs 2 cijfers optisch gecentreerd blijft */
.incidentpill.incidentpill--count{
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  min-width: 2.75em;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
  line-height: 1.2;
}
/* Mobiele fotocards: rij gebruikt baseline; pil visueel centreren */
.profile-card__row .incidentpill.incidentpill--count{
  align-self: center;
}

/* Pills als button (detailpagina copy): zelfde kleur, geen button-styling */
button.incidentpill{
  font:inherit;
  color:var(--text);
  cursor:pointer;
}

table.table.table--photography{
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}
/* Column widths – use table.table--photography prefix to beat generic .table nth-child rules */
table.table--photography th:nth-child(1),
table.table--photography td:nth-child(1){
  width:16%;
  overflow:hidden;
  text-align:left;
}
table.table--photography th:nth-child(2),
table.table--photography td:nth-child(2){
  width:12%;
  overflow:hidden;
  text-align:left;
}
table.table--photography td:nth-child(1) .incidentpill,
table.table--photography td:nth-child(2) .incidentpill{
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  box-sizing:border-box;
}
table.table--photography th.th--dt,
table.table--photography td.td--dt{
  width:12%;
  white-space:nowrap;
  text-align:left;
}
table.table--photography th.th--photos,
table.table--photography td.td--photos{
  width:7%;
  white-space:nowrap;
  text-align: center;
  vertical-align: middle;
}
table.table--photography th:nth-child(5),
table.table--photography td:nth-child(5){
  width:7%;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  padding-top: 12px;
  padding-bottom: 12px;
}
table.table--photography th:nth-child(6),
table.table--photography td:nth-child(6){
  width:30%;
  text-align:left;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  padding-right:8px;
}
table.table--photography td.td--creator{
  width:30%;
  max-width:none;
  overflow:hidden;
  text-overflow:ellipsis;
  padding-right:8px !important;
}
table.table--photography td.td--creator .incidentpill{
  display:block;
  width:100%;
  max-width:100%;
  text-align:left;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:1.25;
  box-sizing:border-box;
}
table.table--photography th:nth-child(7),
table.table--photography td:nth-child(7){
  width:16%;
  white-space:nowrap;
  text-align:left;
  vertical-align:middle;
}
table.table--photography td.td--actions{
  text-align:left;
  vertical-align:middle;
}
table.table--photography td.td--actions form{
  display:inline-flex;
  margin:0;
}
table.table--photography td.td--actions .btn + .btn,
table.table--photography td.td--actions form + form,
table.table--photography td.td--actions form + .btn,
table.table--photography td.td--actions .btn + form{
  margin-left:4px;
}

.table--photography .td--status {
  text-align: center;
  vertical-align: middle;
}
.incident-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
}
.incident-status-icon--published {
  background: rgba(45, 122, 62, 0.18);
  border: 1px solid rgba(45, 122, 62, 0.35);
}
.incident-status-icon--pending {
  background: rgba(201, 127, 16, 0.18);
  border: 1px solid rgba(201, 127, 16, 0.4);
}
.incident-status-icon--new {
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.38);
}

.page-photography .grid--2col-responsive{
  align-items:flex-start;
}

.photogrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:4px;
  margin-top:4px;
}
.photogrid__item{
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.photogrid__item img{
  display:block;
  width:100%;
  height:auto;
  max-height:420px;
  object-fit:cover;
}
.photogrid__caption-main{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:6px;
  margin-bottom:4px;
}
.photogrid__name{
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.photogrid__time{
  font-size:11px;
  color:var(--muted);
}
.photogrid__actions{
  display:flex;
  justify-content:center;
  gap:0;
  margin-top:4px;
}
.photogrid figcaption{
  padding:8px 8px 10px;
}

.photogrid__actions .btn{
  flex:1;
  text-align:center;
  font-weight:700;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
}
.photogrid__actions .btn-download{
  background: rgba(27,111,246,.12);
  border:1px solid rgba(27,111,246,.35);
  color:var(--text);
}

.photoLightbox__panel{
  max-width: min(960px, 100%);
}
.photoLightbox__body{
  max-height: calc(100vh - 160px);
  overflow:auto;
}
.photoLightbox__body img{
  display:block;
  width:100%;
  height:auto;
  border-radius:12px;
}
.photoLightbox__controls{
  display:flex;
  align-items:center;
  gap:6px;
}

.tablewrap{ overflow:auto; }
.table{
  width:100%;
  table-layout: fixed; width:100%; border-collapse: collapse; margin-top:10px; min-width: 780px; }

/* On the P2000 page we prefer full-width (no forced min width) */
.page--p2000 .table{
  width:100%;
  table-layout: fixed; min-width: 0; }

/* Make the actions column feel less "floating" */
.p2000actions .btnrow{ justify-content:flex-end; }
.table th, .table td{
  text-align:left;
  padding:10px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 13px;
}
.table th{ color: var(--muted); font-weight:900; }

.p2000filters{ margin-top: 14px; padding: 14px; }
.p2000filters__row{ display:flex; gap:10px; flex-wrap: wrap; margin-top: 10px; }
.p2000filters__row input, .p2000filters__row select{ max-width: 260px; }
@media (max-width: 520px){ .p2000filters__row input, .p2000filters__row select{ max-width: 100%; flex: 1 1 100%; } }

.auth{
  min-height: calc(100vh - 140px);
  display:flex; align-items:center; justify-content:center;
  padding: 40px 0;
}
.auth__card{ width:min(720px, 100%); }
.hint{ margin-top:12px; color: var(--muted); font-size: 13px; }

/* iOS Safari: voorkom auto-zoom bij focus in velden (<16px). */
@media (hover: none) and (pointer: coarse) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

.inline{ display:grid; gap:6px; margin: 10px 0; }
.row{ display:flex; gap:10px; flex-wrap:wrap; align-items:flex-start; }

.footer{
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 16px 0;
  color: var(--muted);
  background: var(--bg);
}

.avatar{
  width:34px; height:34px; border-radius: 10px;
  object-fit: cover; border:1px solid var(--border);
}
.avatar--ph{
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.06);
  font-weight:900;
}
.avatar--big{ width:72px; height:72px; border-radius: 18px; font-size: 24px; }

.stafflist{ display:grid; gap:10px; margin-top:10px; }
.staff{
  display:flex; gap:10px; align-items:center;
  padding:10px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.18);
}
.staff__meta{ flex:1; min-width: 220px; }
.staff__name{ font-weight:900; }
.staff__right{ display:flex; align-items:center; gap:10px; }
.miniSelect{ width:70px; padding:8px 8px; border-radius: 12px; }

.badge{
  padding:6px 10px; border-radius: 999px;
  border:1px solid var(--border);
  font-weight:900;
  font-size:12px;
}
.badge--s1{ background: rgba(43,217,124,.14); border-color: rgba(43,217,124,.30); }
.badge--s2{ background: rgba(27,111,246,.14); border-color: rgba(27,111,246,.30); }
.badge--s3{ background: rgba(255,193,7,.14); border-color: rgba(255,193,7,.30); }
.badge--s4{ background: rgba(255,59,59,.14); border-color: rgba(255,59,59,.30); }
.badge--s5{ background: rgba(160,160,255,.14); border-color: rgba(160,160,255,.30); }
.badge--s6{ background: rgba(0,200,255,.14); border-color: rgba(0,200,255,.30); }
.badge--s7{ background: rgba(255,0,120,.14); border-color: rgba(255,0,120,.30); }
.badge--s8{ background: rgba(255,140,0,.14); border-color: rgba(255,140,0,.30); }
.badge--s9{ background: rgba(180,120,255,.14); border-color: rgba(180,120,255,.30); }

.hidden{ display:none; }
.hr{ border:0; border-top:1px solid var(--border); margin:14px 0; }

.modal{
  position:fixed; inset:0; z-index: 50;
}
.modal__backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.55); }
.modal__panel{
  position:relative;
  width:min(900px, calc(100% - 24px));
  margin: 50px auto;
  background: rgba(11,18,32,.96);
  border:1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}
.modal__head{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.modal__title{ font-weight:900; font-size:16px; }

.panic{
  position:fixed; left:0; right:0; top:60px; z-index: 60;
  padding: 10px 0;
  background: rgba(255,59,59,.16);
  border-top: 1px solid rgba(255,59,59,.25);
  border-bottom: 1px solid rgba(255,59,59,.25);
  backdrop-filter: blur(10px);
}
.panic__inner{ width:min(1200px, calc(100% - 32px)); margin:0 auto; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.panic__left{ display:flex; gap:12px; align-items:flex-start; min-width:0; flex:1; }
.panic__dot{ flex-shrink:0; width:12px; height:12px; margin-top:6px; border-radius: 999px; background: var(--danger); box-shadow: 0 0 14px rgba(255,59,59,.9); animation: pulse 1s infinite; }
.panic__title{ font-weight:1000; letter-spacing:.6px; }
.panic__when{ font-size:12px; margin-top:2px; letter-spacing:.02em; }
.panic__text{ color: var(--text); opacity:.95; }
.panic__right{ flex-shrink:0; padding-top:2px; }
.panic__dismiss.hours-action-icon-btn{ min-width:40px; min-height:40px; font-size:16px; line-height:1; }
@keyframes pulse{ 0%{ transform: scale(1);} 50%{ transform: scale(1.35);} 100%{ transform: scale(1);} }

.contactAlert{
  position: fixed; left: 0; right: 0; top: 60px; z-index: 59;
  padding: 8px 0;
  background: rgba(27, 111, 246, .14);
  border-top: 1px solid rgba(74, 156, 255, .25);
  border-bottom: 1px solid rgba(74, 156, 255, .25);
  backdrop-filter: blur(8px);
}
.contactAlert.is-urgent{
  background: rgba(245, 158, 11, .18);
  border-top-color: rgba(245, 158, 11, .34);
  border-bottom-color: rgba(245, 158, 11, .34);
}
.contactAlert__inner{ width:min(1200px, calc(100% - 32px)); margin:0 auto; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.contactAlert__left{ display:flex; gap:12px; align-items:flex-start; min-width:0; flex:1; }
.contactAlert__dot{ flex-shrink:0; width:10px; height:10px; margin-top:6px; border-radius:999px; background:#60a5fa; box-shadow:0 0 12px rgba(96,165,250,.8); animation:pulse 1.2s infinite; }
.contactAlert.is-urgent .contactAlert__dot{ background:#f59e0b; box-shadow:0 0 12px rgba(245,158,11,.8); }
.contactAlert__title{ font-weight:900; letter-spacing:.5px; }
.contactAlert__when{ font-size:12px; margin-top:2px; letter-spacing:.02em; }
.contactAlert__text{ color: var(--text); opacity:.95; }

/* toggle switch */
.switch{ position:relative; display:inline-flex; align-items:center; }
.switch input{ position:absolute; opacity:0; width:0; height:0; }
.switch__track{ width:46px; height:26px; border-radius:999px; border:1px solid var(--border); background: rgba(255,255,255,.08); display:inline-block; position:relative; }
.switch__track::after{ content:""; width:20px; height:20px; border-radius:999px; background: rgba(255,255,255,.85); position:absolute; top:2px; left:2px; transition: transform .15s ease; }
.switch input:checked + .switch__track{ background: rgba(0,205,156,.18); }
.switch input:checked + .switch__track::after{ transform: translateX(20px); }

/* ==========================================
   📟 P2000
   ========================================== */
.btnrow{ display:flex; gap:6px; flex-wrap:wrap; }
/* Dashboard in-/uitklok: twee knoppen altijd op één rij (geen wrap door globale .btnrow) */
.clockbox .btnrow{ flex-wrap: nowrap; }

/* Better mobile actions */
.table td{ vertical-align: top; }
.table td form{ margin:0; }
.table td .btn{ white-space: nowrap; }
@media (max-width: 700px){
  .topbar__nav{ flex-wrap: wrap; gap:6px; }
  .navlink{ padding:8px 10px; font-size: 13px; }
  .row{ flex-direction: column; align-items: stretch; }
  .row > *{ width:100%; }
  .btnrow{ gap:8px; }
  /* Keep card headers left-right on mobile: title left, pill/button right */
  .card__head{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .card__head h2{ flex: 1; min-width: 0; margin: 0; }
  .card__head .pill{ margin-left: auto; white-space: nowrap; }
  .tablewrap{ border-radius: 14px; }
  /* Tijdregistratie (handmatig) op medewerkerpagina: knoppen volle breedte, gecentreerd */
  .row--tijdregistratie{ flex-direction: column; align-items: center; }
  .row--tijdregistratie form{ display: block; width: 100%; max-width: 100%; }
  .row--tijdregistratie .btn{ width: 100%; text-align: center; }
}


/* P2000 formatting */
.tablewrap--compact { padding: 0; }
.p2000pick .table th, .p2000pick .table td { padding-top: 10px; padding-bottom: 10px; }
.p2000meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; align-items: center; }
.p2000body { font-weight: 700; line-height: 1.35; }
.p2000body--line { font-weight: 600; letter-spacing: 0.01em; }
.p2000chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.95);
}
.p2000chip::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}

/* Dashboard picked table layout (4 kolommen: Status, Melding, Toegewezen, Laatste update+Actie) */
.p2000pick .table { width:100%; table-layout: fixed; }
.p2000pick .table th:nth-child(1), .p2000pick .table td:nth-child(1){ width: 100px; }
/* Toegewezen smaller → Melding krijgt meer ruimte, kolom Toegewezen begint verder rechts */
.p2000pick .table th:nth-child(3), .p2000pick .table td:nth-child(3){ width: 280px; }
.p2000pick .table th:nth-child(4), .p2000pick .table td:nth-child(4){ width: 400px; }

.p2000pick .table td { vertical-align: top; }
.p2000assign { display:flex; flex-direction:column; gap:6px; min-width:0; }
.p2000assign .pill { width:fit-content; }

/* Dashboard: keep "Toegewezen" tidy and actions aligned */
#p2000PickedTable td{ vertical-align: top; }
#p2000PickedTable .assignPills{ max-width:100%; }
#p2000PickedTable .assignPills .pill{ max-width:100%; }
/* ----- P2000 Dashboard: Actieknoppen (desktop = naast elkaar) ----- */
#p2000PickedTable .btnrow {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
#p2000PickedTable .btnrow .btn {
  width: auto;
  min-width: 5rem;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  transition: background .15s, border-color .15s, color .15s;
}
#p2000PickedTable .btnrow .btn:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.25);
}
/* Statuskolom: pil + daaronder laatste-update-tijd, gecentreerd */
#p2000PickedTable .p2000-status-cell {
  text-align: center;
}
#p2000PickedTable .p2000-status-cell .p2000time {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
}
/* Actiekolom: alleen knoppen (geen flex op cel, lijn blijft goed) */
#p2000PickedTable .p2000-actie-cell {
  min-width: 0;
}
#p2000PickedTable th:nth-child(4), #p2000PickedTable td:nth-child(4) {
  width: 400px;
  min-width: 400px;
}
/* Rijscheidingslijn gelijk over alle kolommen */
#p2000PickedTable tbody tr td {
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

/* /p2000 table: make Toegewezen readable and pull it slightly left by keeping action column compact */
#p2000Table{ table-layout: fixed; width:100%; }
#p2000Table th:nth-child(1), #p2000Table td:nth-child(1){ width: 120px; }
#p2000Table th:nth-child(3), #p2000Table td:nth-child(3){ width: 390px; }
#p2000Table th:nth-child(4), #p2000Table td:nth-child(4){ width: 150px; }
.p2000chip--prio1 { background: rgba(255, 69, 58, .16); border-color: rgba(255, 69, 58, .35); }
.p2000chip--prio2 { background: rgba(255, 159, 10, .16); border-color: rgba(255, 159, 10, .35); }
.p2000chip--prio3 { background: rgba(52, 199, 89, .14); border-color: rgba(52, 199, 89, .30); }
.p2000chip--ambu  { background: rgba(64, 156, 255, .16); border-color: rgba(64, 156, 255, .35); }
.p2000chip--brw   { background: rgba(255, 55, 95, .14); border-color: rgba(255, 55, 95, .30); }
.p2000chip--pol   { background: rgba(175, 82, 222, .14); border-color: rgba(175, 82, 222, .30); }
.p2000chip--cap   { background: rgba(142, 142, 147, .14); border-color: rgba(142, 142, 147, .30); }
.p2000chip--feed  { background: rgba(94, 92, 100, .2); border-color: rgba(94, 92, 100, .4); font-size: 11px; }
.p2000loc { margin-top: 3px; }

/* Feed filter chips (Alle, Brandweer, Politie, …) */
.p2000-feedchips { margin-bottom: 10px; }
.p2000-feedchip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.p2000-feedchip:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); }
.p2000-feedchip.is-active { background: rgba(64, 156, 255, .2); border-color: rgba(64, 156, 255, .45); color: #6eb3ff; }
.p2000-feedchip__count { opacity: .7; font-weight: 600; margin-left: 2px; }
.p2000-feedchip--empty { opacity: .55; }
.p2000-feedchip--empty:hover { opacity: .8; }
.p2000-feedchip--empty .p2000-feedchip__count { color: #ff8585; opacity: 1; }

/* Filterrij: zoekvelden + knoppen netjes naast elkaar */
.p2000-filterrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.p2000-filterrow .input { min-width: 140px; flex: 1; max-width: 200px; }
.p2000-filter-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.p2000-filter-tip { margin-top: 8px; font-size: 13px; }

/* --- Dashboard mobile polish --- */
.pill--select{ padding: 0; }
.pillSelect{
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-weight: 900;
  padding: 8px 12px;
  cursor: pointer;
}

/* clock row: keep dropdown usable */
.row{ display:flex; gap:12px; align-items:flex-end; flex-wrap:wrap; }
#statusSelect{ min-width: 260px; }
#btnPanic{
  white-space: nowrap;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  --panic-progress: 0%;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, .18) 0%,
    rgba(255, 255, 255, .18) var(--panic-progress),
    transparent var(--panic-progress),
    transparent 100%
  );
}

/* My shifts: cards on mobile, table on desktop */
.shiftsMobile{ display:none; margin-top: 10px; }
.shiftCard{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.02);
  margin-top: 10px;
}
.shiftCard__row{ display:flex; justify-content:space-between; gap:12px; padding: 6px 0; }
.shiftCard__label{ color: var(--muted); font-weight:900; font-size: 13px; }
.shiftCard__value{ text-align:right; }

@media (max-width: 700px){
  /* topbar spacing iets strakker op tablets/kleinere schermen */
  .topbar__inner{ gap: 8px; }
  .topbar__right{ justify-content:flex-start; gap: 8px; }
}

/* iPhone / heel smal: naam + rol geforceerd op één regel naast elkaar */
@media (max-width: 520px){
  .topbar__right{
    flex-wrap: nowrap;
  }
  .row{ flex-direction: column; align-items: stretch; }
  #statusSelect{ width: 100%; min-width: 0; }
  #btnPanic{ width: 100%; height: 46px; margin-top: 0; }
  /* Alleen Mijn-diensten-tabel op dashboard verbergen (die heeft desktopOnly); niet alle tablewraps (bv. management/hours) */
  .shiftsMobile{ display:block; }
}

/* P2000 page: reduce "centered narrow" feel on wide screens */
.page--p2000 .container{ width: min(1200px, calc(100% - 32px)); }

 

/* Responsive nav */
@media (max-width: 720px){
  .topbar__inner{ flex-wrap: wrap; gap:10px; }
  .nav{ flex-wrap: wrap; gap:8px; width:100%; }
  .nav a{ padding:10px 12px; font-size:14px; }
  .brand__name{ font-size:14px; }
}
@media (max-width: 420px){
  .nav a{ flex:1 1 auto; text-align:center; padding:10px 10px; }
}

@media (max-width: 720px){
  /* My shifts: allow message columns wrap */
  .table td .pill{ max-width: 100%; }
}


/* Responsive helpers */
.mobileOnly{ display:none; }
.desktopOnly{ display:block; }

@media (max-width: 820px){
  .mobileOnly{ display:block; }
  .desktopOnly{ display:none !important; }

  /* Prevent page-level horizontal scroll */
  html, body{ overflow-x:hidden; }

  /* Make the status + noodknop row stack nicely */
  .row{ flex-direction: column; align-items: stretch; }
  #btnPanic{ width:100%; margin-top:10px !important; height:46px; }

  /* Compact inner areas */
  .tablewrap{ overflow: visible; }

  /* Cards */
  .p2000card, .shiftcard{
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 12px;
    margin-top: 10px;
  }
  .p2000card__top{
    display:flex;
    justify-content: space-between;
    align-items:center;
    gap:10px;
    margin-bottom:8px;
  }
  .p2000card__time{ font-size:12px; }
  .p2000card__title a{ text-decoration:none; }
  .p2000card__title{ font-weight:600; line-height:1.25; margin-bottom:8px; }
  .p2000card__assign{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin-bottom:10px; }
  .p2000card__actions{ display:flex; gap:8px; flex-wrap:wrap; }
  .p2000card__actions .btn{ flex:1; min-width: 30%; }

  .shiftcard__row{
    display:flex;
    justify-content: space-between;
    align-items: baseline;
    gap:10px;
    padding: 4px 0;
  }
  .shiftcard__actions{ margin-top:10px; }
}

/* --- v10.14 tweaks --- */
.assignedStack{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.assignedPills{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.page--p2000 .table th:nth-child(3), .page--p2000 .table td:nth-child(3){padding-left:12px;padding-right:12px}
.page--p2000 .table th:nth-child(3){width:180px}


/* tighter assigned column */
#p2000Table th:nth-child(3), #p2000Table td:nth-child(3),
#p2000PickedTable th:nth-child(3), #p2000PickedTable td:nth-child(3){ padding-left:12px; }


/* --- v10.17: consistent assignment pills + header name space --- */
.assignPills{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:flex-start;
}
.assignPills .pill{max-width:100%;}
.topbar .pill--truncate{max-width:340px;}
/* Ensure assigned column doesn't squeeze too hard */
.table .p2000card__assign{min-width:0;}


/* Inline clock line */
.shiftline{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.shiftline__text{min-width:0}
.shiftline__btn{white-space:nowrap}

/* P2000 assigned stack */
.p2000assignStack{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.p2000assignStack .assignName{max-width:260px}
.p2000assignStack .pill{margin:0}

/* Employees table: keep status narrow so email has room */
.table th:nth-child(5), .table td:nth-child(5){width:72px;white-space:nowrap;text-align:center}
.table th:nth-child(6), .table td:nth-child(6){width:90px;white-space:nowrap;text-align:center}


/* Shift GPS details */
.shiftgps{width:100%;}
.shiftgps summary{list-style:none;cursor:pointer;}
.shiftgps summary::-webkit-details-marker{display:none;}
.shiftgps[open] summary{margin-bottom:8px;}
.shiftgps__body{padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(0,0,0,.18);}
.shiftgps__row{display:grid;grid-template-columns:110px 220px 1fr;gap:10px;align-items:center;padding:6px 0;border-top:1px solid rgba(255,255,255,.06);}
.shiftgps__row:first-child{border-top:none;}
.shiftgps__meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
@media (max-width: 820px){.shiftgps__row{grid-template-columns:1fr;}
.shiftgps__meta{justify-content:flex-start;}}


/* Panic banner: text + kaart op 1 regel */
.panic__textline{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.panic__locbtn{
  padding:4px 10px;
  font-size:12px;
  white-space:nowrap;
}

/* Manager pagina: Te keuren diensten - voorkom onnodige scrollbar */
@media (min-width: 900px){
  .tablewrap{ overflow-x: visible; }
}
.tablewrap table{ width:100%; table-layout: fixed; }
.tablewrap th, .tablewrap td{ word-break: break-word; }


/* === v11.1 UI polish === */

/* Panic kaart knop iets groter */
.panic__locbtn{
  padding: 6px 14px !important;
  font-size: 13px !important;
}

@media (max-width: 820px){
  .panic{
    top: 56px;
    padding: 8px 0;
  }
  .panic__inner{
    width: calc(100% - 16px);
    gap: 8px;
  }
  .panic__left{
    gap: 8px;
  }
  .panic__title{
    font-size: 13px;
    line-height: 1.2;
  }
  .panic__when{
    font-size: 11px;
  }
  .panic__textline{
    gap: 6px;
  }
  .panic__text{
    font-size: 13px;
    line-height: 1.3;
    word-break: break-word;
  }
  .panic__locbtn{
    padding: 5px 10px !important;
    font-size: 12px !important;
  }
}

/* Dashboard: two-column layout wrapper */
.grid > section.card{ margin: 0; } /* voorkomt rare gaps */

/* Tables: voorkom altijd-onzichtbare scrollbars, maar laat wel scrollen op mobiel */
.tablewrap{
  overflow-x: visible !important;
  overflow-y: visible !important;
}
@media (max-width: 820px){
  .tablewrap{ overflow-x: auto !important; }
}

/* Maak kolommen iets compacter zodat minder horizontale scroll ontstaat */
.table th, .table td{
  padding: 10px 12px;
  vertical-align: top;
}
.table td.actions, .table th.actions{
  width: 140px;
}

/* Toegewezen: nette spacing */
.assignedStack{ display:flex; flex-direction:column; gap:4px; min-width: 0; }
.assignedStack .pill{ align-self:flex-start; }

/* Shift GPS details: voorkom horizontale overflow door lange coords */
.shiftgps__meta{ min-width: 0; }
.shiftgps__meta .mono{ word-break: break-word; }

/* Minder brede status pill in staff list zodat email/naam ruimte krijgt */
.staff__sub .pill{ padding: 2px 8px; font-size: 12px; }

/* Topbar naam: meer ruimte */
.topbar .pill--truncate{ max-width: 460px; }


/* v11.2: Te keuren diensten-tabel desktop – duidelijke kolommen, acties in eigen kolom */
.table--approve {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}
.table--approve th:nth-child(1), .table--approve td:nth-child(1) { width: 140px; min-width: 100px; }
.table--approve th:nth-child(2), .table--approve td:nth-child(2) { width: 155px; min-width: 120px; }
.table--approve th:nth-child(3), .table--approve td:nth-child(3) { width: 155px; min-width: 120px; }
.table--approve th:nth-child(4), .table--approve td:nth-child(4) { width: 100px; min-width: 60px; overflow: hidden; text-overflow: ellipsis; }
.table--approve th:nth-child(5), .table--approve td:nth-child(5) { width: 200px; min-width: 180px; }
.card--approve-shifts .tablewrap { overflow-x: auto; max-width: 100%; }

.table--hours th, .table--hours td{ padding: 8px 10px; }
.table--hours th:nth-child(2), .table--hours td:nth-child(2),
.table--hours th:nth-child(3), .table--hours td:nth-child(3){
  width: 170px;
}

@media (max-width: 820px){
  .table--approve th:nth-child(2), .table--approve td:nth-child(2),
  .table--approve th:nth-child(3), .table--approve td:nth-child(3){
    width: auto;
  }
}


/* v11.2 tweaks */
.employeesTable{ table-layout: fixed; width: 100%; }
.employeesTable th,.employeesTable td{ overflow: hidden; text-overflow: ellipsis; }

/* Kolombreedtes: Medewerker compact, Email + Functie leesbaar, Status/Acties vast */
.employeesTable .col-medewerker{ width: 200px; min-width: 0; }
.employeesTable .col-email{ width: 240px; min-width: 0; }
.employeesTable .col-functie{ width: 165px; white-space: nowrap; text-align: center; }
.employeesTable .col-status{ width: 80px; text-align: center; white-space: nowrap; }
.employeesTable .col-actions{ width: 100px; white-space: nowrap; text-align: center; }

.employeesTable .employeesTable__functie{ text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-chip{
  color: var(--role-color, var(--muted));
  background: color-mix(in srgb, var(--role-color, #9fb0d0) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--role-color, #9fb0d0) 55%, transparent);
}
.employeesTable .employeesTable__status{ text-align: center; white-space: nowrap; }
.employeesTable .actionsCell{ text-align: center; }

.employeesTable .col-actions,
.employeesTable .actionsCell{
  overflow: visible;
  text-overflow: clip;
}
.employeesTable .actionsCell .btn{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  font-weight: 700;
}
.employeesTable .actionsCell .btn:hover{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.25);
}
/* Open-knop: groen = actief, rood = gedeactiveerd */
.employeesTable .actionsCell .btn--open-active{
  background: rgba(43,217,124,.2);
  border-color: rgba(43,217,124,.45);
  color: #fff;
}
.employeesTable .actionsCell .btn--open-active:hover{
  background: rgba(43,217,124,.35);
  border-color: rgba(43,217,124,.6);
  color: #fff;
}

/* Goedkeuren-knop: groen (desktop + mobiel) */
.btn--approve{
  background: rgba(43,217,124,.2);
  border-color: rgba(43,217,124,.45);
  color: #fff;
}
.btn--approve:hover{
  background: rgba(43,217,124,.35);
  border-color: rgba(43,217,124,.6);
  color: #fff;
}
.employeesTable .actionsCell .btn--open-inactive{
  background: rgba(255,59,59,.2);
  border-color: rgba(255,59,59,.45);
  color: #fff;
}
.employeesTable .actionsCell .btn--open-inactive:hover{
  background: rgba(255,59,59,.35);
  border-color: rgba(255,59,59,.6);
  color: #fff;
}

/* Medewerkerspagina: alleen user- en rolkolom centreren en niet te breed */
.employeesTable th,
.employeesTable td{ vertical-align: middle; }
.employeesTable .employeesTable__user{
  text-align: left;
  width: 200px;
  min-width: 0;
}
.employeesTable .employeesTable__user-inner{
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.employeesTable .employeesTable__user-text{ min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.employeesTable .employeesTable__user-name{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.employeesTable .employeesTable__user-name{ font-weight: 700; }
.employeesTable .actionsCell .btn,
.employeesTable .actionsCell form{ display: inline-block; }
.employeesTable .actionsCell .btn{ min-width: 5.5rem; box-sizing: border-box; }
.employeesTable .actionsCell form .btn{ min-width: 7.5rem; }
.employeesTable .actionsCell form{ display: inline-flex; margin: 0; align-items: center; }
.employeesTable tbody tr{ border-bottom: 1px solid var(--border); }
.employeesTable tbody td{ padding-top: 12px; padding-bottom: 12px; }
.employeesTable thead th{ padding-bottom: 10px; border-bottom: 1px solid var(--border); }

/* Medewerkers-tabel: blijft binnen card, scrollt horizontaal indien nodig */
.card--manager .tablewrap:has(.employeesTable){
  overflow-x: auto;
  overflow-y: visible;
}

/* Urenoverzicht: filter — desktop één regel, mobiel 2×2 + volle-breedte knop */
.hours-filter-form{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.hours-filter-form__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  width: 100%;
  min-width: 0;
}
.hours-filter-form__cell{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.hours-filter-form__cell span{
  font-size: 13px;
  font-weight: 600;
  color: var(--muted, #9fb0d0);
}
.hours-filter-form__cell select,
.hours-filter-form__cell input{
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.hours-filter-form__submit{ flex-shrink: 0; }

@media (max-width: 699px){
  .hours-filter-form{
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hours-filter-form__grid{
    /* Rij 1: Periode | Medewerker; rij 2: Van | Tot */
    grid-template-columns: 1fr 1fr;
  }
  .hours-filter-form__submit{
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 700px){
  .hours-filter-form{
    flex-wrap: nowrap;
    align-items: flex-end;
  }
  .hours-filter-form__grid{
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 10px;
    width: auto;
  }
  .hours-filter-form__cell:nth-child(1){ flex: 0 0 auto; }
  .hours-filter-form__cell:nth-child(2){ flex: 1 1 140px; min-width: 120px; }
  .hours-filter-form__cell:nth-child(3),
  .hours-filter-form__cell:nth-child(4){ flex: 0 0 auto; }
  .hours-filter-form__submit{ width: auto; }
}

/* Management Uren (page--hours): mobiele kaarten overzichtelijk; zelfde shift-kaart ook op shift bewerken (page--shift-edit) */
.page--hours .hours-summary-card,
.page--hours .hours-shift-card,
.page--shift-edit .hours-shift-card{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  margin-bottom: 10px;
}
.page--hours .hours-summary-card:last-child,
.page--hours .hours-shift-card:last-child,
.page--shift-edit .hours-shift-card:last-child{ margin-bottom: 0; }
.page--hours .hours-summary-card__name,
.page--hours .hours-shift-card__name,
.page--shift-edit .hours-shift-card__name{
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.page--hours .hours-summary-card__row,
.page--hours .hours-shift-card__row,
.page--shift-edit .hours-shift-card__row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  font-size: 14px;
}
/* Details-knop overzicht per medewerker: volle breedte, zoals download op profiel */
.page--hours .hours-summary-card__action{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.page--hours .btn--hours-details{
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border, rgba(255,255,255,.18));
  color: inherit;
  transition: background .15s, border-color .15s;
  box-sizing: border-box;
}
.page--hours .btn--hours-details:hover{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
}
.page--hours .hours-shift-card__row--status .hours-shift-status-value,
.page--shift-edit .hours-shift-card__row--status .hours-shift-status-value{
  text-align: right;
  max-width: 62%;
  line-height: 1.25;
  font-size: 0.9rem;
}
.page--hours .hours-shift-card__actions,
.page--shift-edit .hours-shift-card__actions{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  align-items: stretch;
  justify-items: center;
}
.page--hours .hours-shift-card__actions form,
.page--shift-edit .hours-shift-card__actions form{ margin: 0; width: 100%; min-width: 0; max-width: 100%; }
.page--hours .hours-shift-card__actions .btn,
.page--hours .hours-shift-card__actions form .btn,
.page--hours .hours-shift-card__actions a.btn,
.page--shift-edit .hours-shift-card__actions .btn,
.page--shift-edit .hours-shift-card__actions form .btn,
.page--shift-edit .hours-shift-card__actions a.btn{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
/* Geen Goedkeuren: 3 knoppen naast elkaar, netjes in de balon */
.page--hours .hours-shift-card--actions-3 .hours-shift-card__actions{
  grid-template-columns: repeat(3, 1fr);
}
.page--hours .hours-shift-card--actions-3 .hours-shift-card__actions .btn,
.page--hours .hours-shift-card--actions-3 .hours-shift-card__actions form .btn,
.page--hours .hours-shift-card--actions-3 .hours-shift-card__actions a.btn{
  font-size: 12px;
  padding-left: 8px;
  padding-right: 8px;
}

/* Uren + shift bewerken: icon-knoppen in shift-kaart / tabel (was inline in hours.ejs) */
.hours-action-icon-btn {
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}
.hours-action-icon-btn--edit {
  background: linear-gradient(135deg, #f59e0b, #b45309) !important;
  border-color: rgba(245, 158, 11, .7) !important;
  color: #fff !important;
}
.hours-action-icon-btn--map {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  border-color: rgba(59, 130, 246, .75) !important;
  color: #fff !important;
}
.hours-action-icon-btn--disabled {
  background: linear-gradient(135deg, #6b7280, #4b5563) !important;
  border-color: rgba(148, 163, 184, .45) !important;
  color: #e5e7eb !important;
  cursor: not-allowed;
  opacity: .85;
}

@media (max-width: 520px){
  .card__head{ align-items:center; }
  .card__head h2{ flex:1; min-width:0; }
  .card__head .pill--select{ margin-left:auto; }
  .card__head .pill{ margin-left:auto; }
  /* prevent horizontal scroll in tables on mobile */
  .tablewrap{ overflow-x:auto; }
}

/* Dashboard P2000 Overzicht: Toegewezen + Actie altijd strak uitlijnen */
#p2000PickedTable .assignedStack .assignPills{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:flex-start;
}
#p2000PickedTable .pill--truncate{
  max-width: 260px;
}
/* P2000 Actieknoppen: altijd naast elkaar (op heel smal scherm kunnen ze wrappen) */

/* P2000 titel chips: layout */
.p2000meta{ display:flex; gap:8px; flex-wrap:wrap; }

/* Mobile display V12 */
@media (max-width: 768px) {
  /* Rol blijft zichtbaar naast naam; geen force hide meer nodig */
}

@media (max-width: 520px){
  .topbar .pill--truncate{
    max-width: none;
  }
  .card__head h2{
    flex: 1 !important;
    min-width: 0 !important;
    margin: 0;
  }
  .card__head .pill{
    white-space: nowrap !important;
    margin-left: 12px !important;
  }
}

@media (max-width: 520px){
  /* P2000 header heeft meerdere regels (h2 + muted). Niet als flex row behandelen */
  .p2000pick .card__head{
    display: block !important;
  }

  .p2000pick .card__head .muted{
    margin-top: 6px;
    line-height: 1.35;
  }

  .p2000pick .card__head .mono{
    white-space: nowrap;
  }
}

@media (max-width: 520px){
  /* minder ruimte aan de zijkant van de pagina */
  .container, .wrap, .page, main{
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  /* cards iets breder laten voelen */
  .card{
    border-radius: 12px; /* optioneel: iets compacter */
  }
}

/* Datumvelden op mobiel: iPhone-vriendelijk (16px voorkomt zoom, links uitlijnen i.p.v. Safari’s rechts) */
@media (max-width: 768px) {
  input[type="date"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
  }

  input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
  }

  /* Urenformulier: datumveldenzelfde grootte als andere velden (zelfde font als rest van formulier) */
  .card--manager .form--row input[type="date"] {
    font-size: 13px;
  }
}

/* Verlofverzoeken-filters: wrap op mobiel, geen overlap */
.leave-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
/* Verlofverzoeken: desktop = knoppen rechts (zoals Actief nu), mobiel = eigen rij eronder */
.leave-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}
.card--leave .card__head {
  flex-wrap: wrap;
  align-items: center;
}
.card--leave .card__head-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-right: 10px;
}
.card--leave .card__head .leave-filters-row { margin-left: auto; }
.card--leave .card__head h2 { margin: 0; }
.card--leave .card__head .pill { margin: 0; }

/* Desktop: Verlofverzoeken-filters even groot als Actief nu (Uren/Medewerkers/Audit log) */
@media (min-width: 701px) {
  .card--leave .leave-filters-row .btn {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: inherit;
    font-weight: 900;
  }
}

/* Desktop: Te keuren diensten – Goedkeuren en Verwijderen naast elkaar, twee tikjes kleiner */
@media (min-width: 701px) {
  /* Acties-kolom: geen flex op td (breekt kolom), gewoon rechts uitlijnen met inline formulieren */
  .table--approve .approve-actions-cell {
    text-align: right;
    white-space: nowrap;
    vertical-align: middle;
  }
  .table--approve .approve-actions-cell form {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
  }
  .table--approve .approve-actions-cell form:first-child { margin-left: 0; }
  .table--approve .approve-actions-cell .btn {
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 8px;
  }
}

/* Gedeelde card-styling voor profiel (Mijn verlofverzoeken) én management (Verlofverzoeken) */
.profile-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border, rgba(255,255,255,.12));
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  min-width: 0;
}
.profile-card:last-child { margin-bottom: 0; }
.profile-card__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  min-width: 0;
}
.profile-card__row:last-child { margin-bottom: 0; }
.profile-card__row--wrap { flex-wrap: wrap; word-break: break-word; }
.profile-card__row--action { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border, rgba(255,255,255,.08)); }
.profile-card__label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, rgba(255,255,255,.55));
  min-width: 72px;
}
.profile-card__filename { word-break: break-all; }
.profile-card--slip .profile-card__row--action { border-top: none; padding-top: 8px; margin-top: 4px; }

/* Fotografie: mobiel cards ipv tabel */
.photography-list-desktop{ display:block; }
.photography-list-mobile{ display:none; margin-top:8px; }
.photography-card__action{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:8px;
  align-items:center;
}
.photography-card__action form,
.photography-card__action a{
  margin:0;
}
.photography-card__action .btn{
  display:inline-flex;
  width:100%;
  min-width:0;
  text-align:center;
  justify-content:center;
}

@media (max-width: 700px){
  .photography-list-desktop{ display:none; }
  .photography-list-mobile{ display:block; }
}

/* Profiel: knoppenzelfde grootte als rest van de pagina (niet groter) */
.card--profile .btn {
  font-size: 12px !important;
  font-weight: 700;
  padding: 8px 12px !important;
  border-radius: 10px;
}

/* Profiel + medewerker-detail: hero (foto, naam, mail, functie) */
.card--profile .profile-hero,
.card--manager .profile-hero{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.card--profile .profile-hero__aside,
.card--manager .profile-hero__aside{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* Desktop: één regel weergavenaam; mobiel: zie breakpoint (stack + brede functie) */
.card--profile .profile-hero__nameWrap,
.card--manager .profile-hero__nameWrap{
  min-width: 0;
  width: 100%;
}
.card--profile .profile-hero__name,
.card--manager .profile-hero__name{
  font-weight: 900;
  font-size: 18px;
  line-height: 1.25;
  word-break: break-word;
}
.card--profile .profile-hero__name--plain,
.card--manager .profile-hero__name--plain{
  display: block;
}
.card--profile .profile-hero__name--stack,
.card--manager .profile-hero__name--stack{
  display: none;
}
.card--profile .profile-hero__nameLine,
.card--manager .profile-hero__nameLine{
  display: block;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.card--profile .profile-hero__email,
.card--manager .profile-hero__email{
  font-size: 14px;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.45;
  min-width: 0;
  width: 100%;
}
.card--profile .profile-hero__role,
.card--manager .profile-hero__role{
  margin-top: 0;
  width: 100%;
  align-self: flex-start;
}
.card--profile .profile-hero__role .role-chip,
.card--manager .profile-hero__role .role-chip{
  display: inline-block;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
  vertical-align: middle;
}

/* Alleen Mijn profiel: grotere foto (in lijn met naam/functie), klik om te wisselen */
.card--profile .profile-hero .avatar--big,
.card--profile .profile-hero img.avatar.avatar--big{
  width: 88px;
  height: 88px;
  border-radius: 22px;
  font-size: 30px;
  object-fit: cover;
}
.card--profile .profile-hero__avatarTap{
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 22px;
  line-height: 0;
}
.card--profile .profile-hero__avatarWrap{
  position: relative;
  display: inline-block;
  line-height: 0;
  border-radius: inherit;
  overflow: hidden;
}
.card--profile .profile-hero__editOverlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.card--profile .profile-hero__editIcon{
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.card--profile .profile-hero__avatarTap:hover .profile-hero__editOverlay,
.card--profile .profile-hero__avatarTap:focus-within .profile-hero__editOverlay{
  opacity: 1;
}
.card--profile .profile-hero__avatarTap:focus-within{
  outline: 2px solid rgba(27, 111, 246, 0.65);
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine){
  .card--profile .profile-hero__avatarTap:hover .avatar--big{
    filter: brightness(1.05);
  }
}
.card--profile .profile-hero__fileInput{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Profielpagina: intro, secties, surfaces (zelfde taal als salarisstroken) */
/* Profiel: tweede kaart (verlofverzoeken + salaris) onder de eerste */
body.page-profiel .card--profile + .card--profile {
  margin-top: 18px;
}
.card--profile + .card--profile > .profile-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.card--profile .profile-intro {
  margin-top: 8px;
}
.card--profile .profile-intro .profile-hero {
  margin-top: 0;
}
.card--profile .profile-intro__alert {
  margin-top: 14px;
  margin-bottom: 0;
}
.card--profile .profile-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.12));
}
.card--profile .profile-section__title {
  margin: 0 0 6px 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text, inherit);
}
.card--profile .profile-section__lede {
  margin: 0 0 16px 0;
  font-size: 12px;
  line-height: 1.5;
  max-width: 42em;
}
.card--profile .profile-section__empty {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.card--profile .profile-surface {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.card--profile .profile-surface--pad {
  padding: 16px 18px 18px;
}
.card--profile .tablewrap--profile-leave {
  max-width: 100%;
  min-width: 0;
  margin: 0;
  border: 0;
  background: transparent;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.card--profile .profile-surface .table--profile-leave {
  min-width: 0 !important;
  width: 100%;
  margin-top: 0 !important;
  border-collapse: collapse;
}
.card--profile .profile-surface .table--profile-leave thead th {
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.14));
  padding-top: 11px;
  padding-bottom: 11px;
  vertical-align: middle;
}
.card--profile .profile-surface .table--profile-leave tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}
.card--profile .profile-surface .table--profile-leave tbody tr:last-child td {
  border-bottom: none;
}

/* Push-notificaties: inhoud binnen profile-surface */
.card--profile .profile-push {
  margin: 0;
  padding: 16px 18px 14px;
  border-radius: 0;
  background: transparent;
  border: none;
  text-align: left;
}
.card--profile .profile-push__form{
  margin: 0;
  display: block;
  width: 100%;
}
.card--profile .profile-push__options{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.card--profile .profile-push__option{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 12px 14px;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  min-width: 0;
}
.card--profile .profile-push__option:hover{
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
}
.card--profile .profile-push__switch{
  flex-shrink: 0;
  order: 2;
}
.card--profile .profile-push__optionTitle{
  order: 1;
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}
.card--profile .profile-push__tip{
  margin: 12px 0 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11px;
  line-height: 1.5;
  max-width: none;
}

/* Verlofverzoeken: desktop tabel, mobiel cards */
.leave-requests-mobile { display: none; }
.leave-requests-desktop { display: block; }
@media (max-width: 700px) {
  /* Verlofverzoeken-head: titel + open-pil op rij 1 (zoals "Te keuren diensten"), filter op rij 2 */
  .card--leave .card__head {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    gap: 10px;
  }
  .card--leave .card__head-title-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100%;
    margin-right: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    gap: 10px;
  }
  .card--leave .card__head-title-row h2 {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
  }
  .card--leave .card__head-title-row .pill {
    margin: 0 0 0 auto !important;
    display: inline-flex !important;
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .card--leave .leave-filters-row {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 12px !important;
    margin-bottom: 0;
    padding-top: 12px !important;
    padding-bottom: 4px;
    border-top: 1px solid var(--border, rgba(255,255,255,.1));
    clear: both;
  }
  .card--leave .leave-filters-row .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 4px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card--leave .leave-requests-desktop { display: none !important; }
  .card--leave .leave-requests-mobile {
    display: block !important;
    margin-top: 16px;
  }
  .card--leave .leave-requests-mobile .manager-leave-card {
    margin-bottom: 12px;
    min-width: 0;
    overflow: hidden;
    padding: 14px 12px;
  }
  .card--leave .leave-requests-mobile .manager-leave-card:last-child { margin-bottom: 0; }
  .card--leave .manager-leave-card .profile-card__row { min-width: 0; }
  .card--leave .manager-leave-card .profile-card__row--wrap .profile-card__label { flex-basis: 100%; margin-bottom: 4px; }
  /* Pills en lange woorden (Goedgekeurd, Geannuleerd) niet door de border */
  .card--leave .manager-leave-card .profile-card__row { word-break: break-word; overflow-wrap: break-word; }
  .card--leave .manager-leave-card .pill { max-width: 100%; white-space: normal; word-break: break-word; }
  /* Bewerken-knop even breed als Download op profiel (volle breedte) */
  .card--leave .manager-leave-card .profile-card__row--action {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border, rgba(255,255,255,.08));
  }
  .card--leave .manager-leave-card .profile-card__row--action .leave-edit-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* Zelfde ruimte tussen alle management-cards (Actief nu, Te keuren diensten, Verlofverzoeken) */
.card--approve-shifts {
  margin-top: 14px !important;
}
@media (max-width: 700px) {
  .card--manager {
    margin-bottom: 14px !important;
  }
  .card--approve-shifts {
    margin-top: 14px !important;
  }
}

/* Te keuren diensten: desktop tabel, mobiel cards */
.approve-shifts-mobile { display: none; }
.approve-shifts-desktop { display: block; }
.manager-approve-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border, rgba(255,255,255,.12));
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.manager-approve-card:last-child { margin-bottom: 0; }
.manager-approve-card__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}
.manager-approve-card__row:last-of-type { margin-bottom: 0; }
.manager-approve-card__label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, rgba(255,255,255,.55));
  min-width: 72px;
}
.manager-approve-card__actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border, rgba(255,255,255,.08));
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 700px) {
  .card--approve-shifts .approve-shifts-desktop { display: none !important; }
  .card--approve-shifts .approve-shifts-mobile { display: block !important; }
  /* Mobiel: Goedkeuren links, Verwijderen rechts, elk 50% breedte, gecentreerd */
  .manager-approve-card__actions {
    justify-content: center;
    gap: 12px;
  }
  .manager-approve-card__actions form {
    flex: 1;
    min-width: 0;
    max-width: 50%;
  }
  .manager-approve-card__actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Dashboard: Inklokken en Beschikbaar melden links/rechts 50% breedte (zelfde als Te keuren diensten) */
  .clockbox .btnrow {
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .clockbox .btnrow .btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: 50%;
    width: 100%;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    padding: 8px 6px;
    line-height: 1.2;
    white-space: nowrap;
  }
}

/* Alleen mobiel aanpassen */
@media (max-width: 520px){

  .card--manager .manager-actions{
    justify-content:flex-end;   /* rechts */
    gap:5px;
  }

  .card--manager .manager-actions .btn{
    padding:4px 7px;            /* kleiner */
    font-size:11px;
  }

}

/* ==========================================
   📋 AUDIT
   ========================================== */
body.page-audit .topbar{
  padding: 0 12px;
}
body.page-audit .footer{
  padding: 0 12px 8px;
}
.page-audit .container{
  max-width: none !important;
  width: 100% !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box;
}
.page-audit main.page{
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Audit card: zelfde rand/panel-stijl als redactie__panel */
.page-audit .card.card--audit{
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  overflow-x: hidden;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: none;
  box-sizing: border-box;
}
.page-audit .card__head--audit{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 4px;
  min-width: 0; /* flex child mag krimpen */
}

.page-audit .card__head--audit > div:first-child{
  min-width: 0;
  flex: 1 1 200px;
}

.page-audit .audit-subtitle{
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  max-width: 100%;
  overflow-wrap: break-word;
}

/* Toolbar: zoeken + auto-refresh */
.page-audit .audit-toolbar{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.page-audit .audit-search-wrap,
.page-audit .audit-refresh-wrap,
.page-audit .audit-interval-wrap{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.page-audit .audit-search-label{ font-weight: 600; }
.page-audit .audit-search{
  width: 260px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  color: var(--text);
  font-size: 13px;
}
.page-audit .audit-search::placeholder{ color: var(--muted); }
.page-audit .audit-interval-wrap select{
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  color: var(--text);
  font-size: 13px;
}

.page-audit .audit-tablewrap{
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: auto;
  width: 100%;
  min-width: 0;
  background: rgba(0,0,0,.15);
}

.page-audit .audit-table thead{
  background: rgba(255,255,255,.08);
}
.page-audit .audit-table thead th{
  padding: 12px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: rgba(11,18,32,.97);
  box-shadow: 0 1px 0 var(--border);
}
.page-audit .audit-table thead th:first-child{ border-radius: 10px 0 0 0; }
.page-audit .audit-table thead th:last-child{ border-radius: 0 10px 0 0; }

.page-audit .audit-table tbody td{
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.page-audit .audit-table tbody tr:hover{
  background: rgba(255,255,255,.03);
}

.page-audit .audit-table tbody tr:last-child td{
  border-bottom: none;
}

@media (min-width: 900px){
  .page-audit .audit-tablewrap{
    overflow-x: auto;
    width: 100%;
  }

  .page-audit .audit-table thead th{
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .page-audit .audit-table{
    table-layout: fixed;
    width: 100%;
    min-width: 0;
  }

  .page-audit .audit-table th:nth-child(1),
  .page-audit .audit-table td:nth-child(1){ width: 160px; }
  .page-audit .audit-table th:nth-child(2),
  .page-audit .audit-table td:nth-child(2){ width: 200px; }
  .page-audit .audit-table th:nth-child(3),
  .page-audit .audit-table td:nth-child(3){ width: 160px; }
  .page-audit .audit-table th:nth-child(4),
  .page-audit .audit-table td:nth-child(4){ width: 120px; }
  .page-audit .audit-table th:nth-child(5),
  .page-audit .audit-table td:nth-child(5){
    width: auto;
    min-width: 200px;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }
}

/* standaard verborgen */
.audit-mobile-warning{
  display:none;
}

/* Audit card responsive: head stapelt, geen vast plakkende header op kleinere schermen */
@media (max-width: 899px){
  .page-audit .card__head--audit{
    flex-direction: column;
    align-items: stretch;
  }
  .page-audit .card__head--audit .manager-actions{
    justify-content: flex-start;
  }
}

/* alleen mobiel tonen */
@media (max-width: 768px){
  .page-audit .card.card--audit{
    padding: 12px;
    border-radius: 12px;
  }

  .page-audit .audit-mobile-warning{
    display:block;
    background:#3a1212;
    border:1px solid #a33;
    color:#ffb3b3;
    padding:12px 14px;
    border-radius:10px;
    margin-bottom:14px;
    font-weight:500;
  }

  /* tabel volledig verbergen op mobiel; main mag weer scrollen */
  .page-audit main.page{
    overflow: auto;
  }
  .page-audit .tablewrap{
    display:none;
  }

  .page-audit .audit-toolbar{
    gap: 10px;
    padding: 8px 0;
  }
  .page-audit .audit-search{
    width: 100%;
  }
}

/* =========================
   Paginatie (audit, medewerkers, sessies)
   ========================= */
.pagination{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.pagination__info{
  font-size: 13px;
  color: var(--muted);
}
.pagination__links{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pagination__current{
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 0 4px;
}
.card--audit .pagination,
.card--manager .pagination{
  padding-left: 0;
  padding-right: 0;
}

/* List toolbar (medewerkers zoeken) */
.list-toolbar{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.list-toolbar__search{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.list-toolbar__search span{ font-weight: 600; }
.list-toolbar__search input{
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  color: var(--text);
  font-size: 13px;
  min-width: 320px;
  width: 320px;
  max-width: 100%;
}
@media (max-width: 520px){
  .pagination{ flex-direction: column; align-items: flex-start; }
  .list-toolbar__search input{ min-width: 0; width: 100%; }
}

/* Fotografie: zoekbalk op mobiel direct onder header, met nette witruimte */
@media (max-width: 520px){
  .page-photography .card__head{
    margin-bottom: 18px;
    display: block;
  }
  .page-photography .card__head h2{
    margin-bottom: 10px;
  }
  /* Actieknoppen onder titel, 1 kolom onder elkaar (niet door titel heen) */
  .page-photography .card__actions{
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .page-photography .card__actions .btn,
  .page-photography .card__actions form .btn,
  .page-photography .card__actions form{
    width: 100%;
  }
  .page-photography .card__actions form{
    display: block;
  }
  .page-photography .card__actions .btn{
    flex: none;
  }
  .page-photography .list-toolbar{
    margin-top: 0;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .page-photography .list-toolbar__search{
    width: 100%;
  }
}

#p2000Table{
  table-layout: fixed;
}

#p2000Table th:nth-child(4),
#p2000Table td:nth-child(4){
  width: 160px;               /* vaste breedte */
  white-space: nowrap;
}

#p2000Table td:nth-child(4) .btnrow .btn{
  width: 100%;                /* knoppen zelfde breedte */
}

/* =========================
   P2000 MOBILE (CLEAN V2)
   ========================= */
@media (max-width: 520px){

  /* ----- Header ----- */
  .card--p2000 .card__head{
    display:block !important;
  }

  .card--p2000 .card__head > h2{
    margin: 0 0 8px 0 !important;
    line-height: 1.2;
  }

  .card--p2000 .card__head .muted{
    margin-top: 6px !important;
    line-height: 1.35;
  }

  .card--p2000 .p2000-lastupdate{
    margin-top: 8px !important;
  }

  .card--p2000 .p2000-lastupdate .mono{
    white-space: nowrap;
    display:inline-block;
  }

  /* ----- Subscription grid ----- */
  .card--p2000 form .grid{
    grid-template-columns: 1fr !important;
  }

  /* ----- Filters compact ----- */
  .card--p2000 .p2000filters{
    padding: 14px;
  }

  .card--p2000 .p2000-filtergrid{
    display:grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .card--p2000 .p2000-filtergrid input{
    width:100%;
  }

  .card--p2000 .p2000-filter-actions{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .card--p2000 .p2000-filter-actions .btn{
    width:100%;
    padding: 6px 8px;
    font-size: 12px;
  }

  .card--p2000 .p2000filters .muted{
    font-size: 13px;
    line-height: 1.35;
  }

  /* ----- Scroll container ----- */
  .card--p2000 .tablewrap{
    display:block !important;
    max-height: 55vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 12px;
    overflow-x: hidden;
  }

  /* ----- Hide table header ----- */
  .card--p2000 #p2000Table thead{
    display:none !important;
  }

  /* ----- Base table reset ----- */
  .card--p2000 #p2000Table{
    width:100%;
    min-width:0 !important;
    table-layout: fixed;
  }

  /* ----- Hide Toegewezen (kolom 3) ----- */
  .card--p2000 #p2000Table th:nth-child(3),
  .card--p2000 #p2000Table td:nth-child(3){
    display:none !important;
  }

  /* ----- Convert each row to grid ----- */
  .card--p2000 #p2000Table tbody tr{
    display:grid !important;
    grid-template-columns: 92px 1fr;
    column-gap: 12px;
  }

  .card--p2000 #p2000Table tbody td{
    display:block !important;
    width:auto !important;
  }

  /* Tijd */
  .card--p2000 #p2000Table tbody td:nth-child(1){
    grid-column: 1;
    white-space: nowrap;
  }

  /* Melding */
  .card--p2000 #p2000Table tbody td:nth-child(2){
    grid-column: 2;
  }

  /* Melding clamp */
  .card--p2000 .p2000-msg,
  .card--p2000 .p2000-msg a{
    display:-webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow:hidden;
    word-break: break-word;
  }

  /* ----- Acties onder de melding ----- */
  .card--p2000 #p2000Table tbody td:nth-child(4){
    grid-column: 1 / -1;
    margin-top: 10px;
  }

  .card--p2000 #p2000Table tbody td:nth-child(4) .btnrow{
    display:grid !important;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }

  .card--p2000 #p2000Table tbody td:nth-child(4) .btnrow .btn{
    width:100%;
    padding: 8px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  /* Row spacing */
  .card--p2000 .table td{
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* iPhone fix: meldingtekst altijd zichtbaar */
@media (max-width: 520px){
  /* forceer dat de melding-td niet clipped */
  .card--p2000 #p2000Table td:nth-child(2){
    overflow: visible !important;
    color: var(--text) !important;
  }

  /* forceer meldingtekst zichtbaar, geen line-clamp gedoe */
  .card--p2000 #p2000Table .p2000-msg{
    display:block !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    margin-top: 8px !important;
    line-height: 1.3 !important;
  }

  .card--p2000 #p2000Table .p2000-msg a{
    display:block !important;
    color: var(--text) !important;
    opacity: 1 !important;
  }
}
/* Opslaan knop full width op mobiel */
.card--p2000 form button[type="submit"]{
  width: 100%;
  display: block;
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 14px;
}

/* Mijn profiel + medewerker bewerken: mobiel hero */
@media (max-width: 700px){
  .card--profile .card__head{
    margin-bottom: 6px;
    padding-bottom: 10px;
    gap: 10px;
    align-items: flex-start;
  }
  .card--profile .card__head h2{
    margin: 0;
    line-height: 1.2;
  }
  /* Mobiel: rij 1 = foto + naam; rij 2–3 = e-mail en functie over volle breedte */
  .card--profile .profile-hero,
  .card--manager .profile-hero{
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 14px;
    row-gap: 10px;
    align-items: start;
    text-align: left;
    padding: 8px 0 18px;
    margin-top: 4px;
  }
  .card--profile .profile-hero__aside,
  .card--manager .profile-hero__aside{
    display: contents;
  }
  /* Rij 1: foto + naam verticaal gecentreerd t.o.v. elkaar */
  .card--profile .profile-hero > :first-child,
  .card--manager .profile-hero > :first-child{
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }
  .card--profile .profile-hero__nameWrap,
  .card--manager .profile-hero__nameWrap{
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-width: 0;
    max-width: 100%;
  }
  .card--profile .profile-hero__name--plain,
  .card--manager .profile-hero__name--plain{
    display: none !important;
  }
  .card--profile .profile-hero__name--stack,
  .card--manager .profile-hero__name--stack{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
  }
  .card--profile .profile-hero__nameLine,
  .card--manager .profile-hero__nameLine{
    font-size: 17px;
  }
  .card--profile .profile-hero__email,
  .card--manager .profile-hero__email{
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 12px;
    line-height: 1.45;
    width: 100%;
    text-align: left;
    margin: 0;
    letter-spacing: 0.01em;
  }
  .card--profile .profile-hero__role,
  .card--manager .profile-hero__role{
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    text-align: left;
    margin: 0;
    align-self: stretch;
  }
  .card--profile .profile-hero__role .role-chip,
  .card--manager .profile-hero__role .role-chip{
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .card--profile .profile-hero .avatar--big,
  .card--profile .profile-hero img.avatar.avatar--big,
  .card--manager .profile-hero .avatar--big,
  .card--manager .profile-hero img.avatar.avatar--big{
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
    border-radius: 18px;
    font-size: 26px;
    flex-shrink: 0;
    object-fit: cover;
  }
  .card--profile .profile-hero__role .pill,
  .card--manager .profile-hero__role .pill{
    flex-shrink: 0;
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    line-height: 1.35;
    text-align: left;
    vertical-align: top;
  }
  .card--profile .profile-hero__avatarTap{
    border-radius: 18px;
  }
  .card--profile .profile-intro .profile-hero {
    padding-top: 0;
    padding-bottom: 12px;
  }
  .card--profile .profile-intro__alert {
    margin-top: 12px;
  }

  .card--profile .profile-push {
    padding: 14px 12px 12px;
  }
  .card--profile .profile-push__options {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .card--profile .profile-push__tip {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-width: none;
  }
  .card--profile .profile-push__option{
    padding: 12px 14px;
    min-height: 50px;
    border-radius: 12px;
  }
  .card--profile .profile-push__optionTitle{
    font-size: 14px;
  }
}

/* ==========================================
   🔐 LOGIN
   ========================================== */

body.page--login{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.page--login .auth{
  flex: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 16px;
}

body.page--login .auth__card{
  width: min(520px, 100%);
}

/* ===== Login: enterprise card content ===== */
.loginBrand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}
.loginBrand__logo{
  width:40px;
  height:40px;
}
.loginBrand__title{
  font-weight:900;
  letter-spacing:.2px;
  line-height:1.1;
}
.loginBrand__subtitle{
  font-size:13px;
  color: var(--muted);
  margin-top:2px;
}
.loginLead{
  max-width: 60ch;
}
.loginBtn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
}
.loginBtn__icon{
  width:18px;
  height:18px;
  border-radius:5px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 0 0 2px rgba(11,18,32,.22);
  flex: 0 0 auto;
}
.loginMeta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.loginFeatures{
  margin:12px 0 0;
  padding-left:18px;
  display:grid;
  gap:6px;
  font-size:13px;
}

@media (max-width: 520px){
  body.page--login{
    min-height: 100svh;
  }
}
/* ===== Login: desktop scroll kill ===== */
body.page--login{
  overflow: hidden;              /* voorkomt page-scroll */
}

body.page--login .page{
  padding: 0 !important;         /* jouw .page padding veroorzaakt vaak de scroll */
}

/* ook container padding kan net teveel zijn */
body.page--login .container{
  margin: 0 auto;
}
@media (max-width: 520px){
  body.page--login .auth{ padding: 6px; }
  body.page--login .auth__card{ border-radius: 14px; }
}

.auth__card .rememberInline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin: 12px 0 18px;
  font-size:14px;
  font-weight:600;
  color: rgba(255,255,255,.85);
}

.auth__card .rememberInline input{
  width:38px;
  height:20px;
  appearance:none;
  background: rgba(255,255,255,.18);
  border-radius:999px;
  position:relative;
  cursor:pointer;
  transition: background .2s ease;
}

.auth__card .rememberInline input::after{
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:16px;
  height:16px;
  background:#fff;
  border-radius:50%;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}

.auth__card .rememberInline input:checked{
  background: linear-gradient(90deg,#2b76ff,#1e56c9);
}

.auth__card .rememberInline input:checked::after{
  transform: translateX(18px);
}
/* Password field with icon */
.field--password .inputWrap{
  position: relative;
}

.field--password input{
  padding-right: 44px;
}

.togglePassword{
  position:absolute;
  right:12px;
  top:50%;
  transform: translateY(-50%);
  background:none;
  border:none;
  color: rgba(255,255,255,.6);
  cursor:pointer;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: opacity .2s ease;
}

.togglePassword:hover{
  color:#fff;
}

@media (max-width: 520px){

  /* Card head: "Actieve medewerkers" links, "x actief" rechts op 1 regel */
  .card__head{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:nowrap;
  }
  .card__head h2{
    flex:1;
    min-width:0;
  }
  .card__head .pill{
    margin-left:auto;
    white-space:nowrap;
  }

  /* Staff list row: stabiele grid layout */
  .stafflist .staff{
    display:grid !important;
    grid-template-columns: 44px 1fr 150px; /* avatar | text | right */
    gap:10px;
    align-items:center;
  }

  /* Avatar vaste maat zodat rijhoogte niet "schommelt" */
  .stafflist .staff .avatar{
    width:44px;
    height:44px;
    border-radius: 12px; /* match je theme */
    object-fit: cover;
  }

  /* Tekst mag NIET de layout duwen */
  .stafflist .staff__meta{
    min-width:0;
  }

  /* Naam: 1 regel met ... */
  .stafflist .staff__name{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  /* Subregel: ook 1 regel met ... */
  .stafflist .staff__sub{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:100%;
  }

  /* Rechterblok altijd strak en fixed */
  .stafflist .staff__right{
    width:150px;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
  }

  /* Badge niet laten wrappen */
  .stafflist .staff__right .badge{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    text-align:center;
  }

  /* Select full width */
  .stafflist .staff__right .miniSelect{
    width:100%;
  }
}

/* --- Group mail widget --- */
.gm-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.gm-item{
  display:block;
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  text-decoration:none;
  color:var(--text);
  background: rgba(255,255,255,.02);
}

.gm-item:hover{
  border-color: rgba(255,255,255,.18);
  /* geen transform -> voorkomt layout "schuiven" */
}

.gm-top{
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
}

.gm-subject{
  font-weight:700;
  line-height:1.2;
  max-width: 72%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.gm-time{
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  flex:0 0 auto;
}

.gm-from{
  margin-top:4px;
  font-size:13px;
  color:var(--muted);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.gm-preview{
  margin-top:6px;
  font-size:13px;
  line-height:1.3;
  color: rgba(232,238,252,.85);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.gm-unread{
  box-shadow: 0 0 0 2px rgba(27,111,246,.25) inset;
}

/* Redactie: nieuwste mail/website-item ~30s pulserend (na geluidje) */
@keyframes gmItemNewPulse {
  0%,
  100% {
    border-color: rgba(96,165,250,.55);
    background: linear-gradient(180deg, rgba(96,165,250,.10), rgba(96,165,250,.05));
  }
  50% {
    border-color: rgba(96,165,250,.98);
    background: linear-gradient(180deg, rgba(96,165,250,.24), rgba(96,165,250,.12));
  }
}
.gm-item.gm-item--newPulse {
  animation: gmItemNewPulse 1.35s ease-in-out infinite;
}

/* mobiel: onderwerp niet afkappen */
@media (max-width: 600px){
  .gm-subject{ max-width: 100%; }
  .gm-top{ flex-direction:column; gap:6px; }
  .gm-time{ align-self:flex-start; }
}
/* Groupmail header op mobiel: update onder de titel (zoals P2000) */
@media (max-width: 600px){
  .groupmailcard .card__head{
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .groupmailcard .card__head .muted{
    margin-top: 0 !important;
  }
}

/* =========================
   Redactie — Meldkamer-overzicht (1 pagina, alles in beeld)
   ========================= */
body.page-redactie{ overflow-y: hidden; }
body.page-redactie main.page{
  padding: 0;
  overflow: hidden; /* geen extra scrollbar buiten de redactie-kaart */
}
.page-redactie .container { max-width: none; width: 100%; padding: 0; }
body.page-redactie .topbar{ padding: 0 12px; }
body.page-redactie .footer{ padding: 0 12px 8px; }

/* ==========================================
   📰 REDACTIE
   ========================================== */
.redactie{
  height: calc(100vh - 56px);
  max-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}
.redactie__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: rgba(0,0,0,.15);
}
.redactie__title{
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Stattegels: compact en strak */
.redactie__stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px 24px;
  flex-shrink: 0;
}
.redactie__tile{
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.redactie__tile-label{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text);
}
.redactie__tile-num{
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.16);
  min-width: 40px;
  text-align: center;
}
.redactie__tile--accent{
  background: rgba(255,255,255,.05);
  border-color: var(--border);
}
.redactie__tile--accent .redactie__tile-num{
  color: var(--text);
}

/* Twee kolommen: links Team + Sneltoetsen, rechts Artikelen (website + mail) */
.redactie__panels{
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 24px 24px;
  min-height: 0;
  overflow: hidden;
}
@media (max-width: 800px){
  .redactie__panels{ grid-template-columns: 1fr; padding: 0 16px 16px; }
  .redactie__stats{ grid-template-columns: repeat(2, 1fr); padding: 12px 16px; }
  .redactie{ height: auto; max-height: none; overflow: visible; }
  body.page-redactie{ overflow-y: auto; }
  /* Mobiel: volledige pagina scrolt, geen "ingesloten" panel-scrolls */
  .redactie__leftCol,
  .redactie__rightCol,
  .redactie__panel{
    min-height: 0;
    overflow: visible;
  }
  /* Team-card mobiele layout wordt elders volledig met !important geregeld
     (zie ".page-redactie .redactie__panel--team ..." block).
     Hier alleen de generieke teamCol-scroll resetten voor andere gebruik. */
  .redactie__teamCol-scroll{
    overflow: visible;
    max-height: none;
  }
  .redactie__panel-body{
    overflow: visible;
    max-height: none;
  }
  .redactie__panel--mail .gm-list{
    max-height: none;
    overflow: visible;
  }
  /* Persbureaus verbergen op mobiel */
  .redactie__shortcuts-group--scroll{
    display: none;
  }
  .redactie__panel--shortcuts .redactie__panel-body{
    gap: 0;
  }
  .redactie__shortcuts{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  /* Stat-pills netjes binnen de tegel houden */
  .redactie__tile{
    min-width: 0;
    gap: 8px;
  }
  .redactie__tile-label{
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .redactie__tile-num{
    flex-shrink: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
    padding: 5px 10px;
  }
}
.redactie__panel{
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
/* Linkerkolom: Team Overzicht (zelfde hoogte als Artikelen website) + Sneltoetsen (zelfde hoogte als mail) */
.redactie__leftCol{
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow: hidden;
}
.redactie__leftCol .redactie__panel{
  flex: 1 1 0;
  min-height: 0;
}
.redactie__panel--team{
  min-height: 0;
}
/* Teamkaart: links medewerkers, rechts spraakaanvragen (audit STATUS_CONTACT_REDACTIE) */
.redactie__panel--team .redactie__panel-body.redactie__panel-body--teamSplit{
  display: flex;
  flex-direction: row;
  gap: 0 16px;
  min-height: 0;
  overflow: hidden;
}
.redactie__teamCol{
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.redactie__teamCol--speech{
  border-left: 1px solid rgba(255,255,255,.1);
  padding-left: 16px;
}
.redactie__speechItem.redactie__speechItem--newPulse{
  border-color: rgba(96,165,250,.95);
  background: linear-gradient(180deg, rgba(96,165,250,.20), rgba(96,165,250,.10));
  animation: redactieSpeechItemPulseBlue 1.1s ease-in-out infinite;
}
@keyframes redactieSpeechItemPulseBlue{
  0%   { border-color: rgba(96,165,250,.55); background: linear-gradient(180deg, rgba(96,165,250,.10), rgba(96,165,250,.05)); }
  50%  { border-color: rgba(96,165,250,.98); background: linear-gradient(180deg, rgba(96,165,250,.24), rgba(96,165,250,.12)); }
  100% { border-color: rgba(96,165,250,.55); background: linear-gradient(180deg, rgba(96,165,250,.10), rgba(96,165,250,.05)); }
}
.redactie__teamCol-title{
  margin: 0 0 10px 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  flex-shrink: 0;
}
.redactie__teamCol-lede{
  margin: 0 0 10px 0;
  font-size: 12px;
  line-height: 1.35;
  flex-shrink: 0;
}
.redactie__teamCol-scroll{
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}
.redactie__speechList{
  list-style: none;
  margin: 0;
  padding: 0;
}
.redactie__speechItem{
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
}
.redactie__speechItem:last-child{ margin-bottom: 0; }
.redactie__speechItem-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.redactie__speechItem-head strong{
  display: block;
  font-size: 14px;
  margin: 0;
  flex: 1;
  min-width: 0;
}
.redactie__speechItem-actions{
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.redactie__speechAction{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: inherit;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s ease, border-color .12s ease;
}
.redactie__speechAction:hover{
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.18);
}
.redactie__speechAction--call.redactie__speechAction--disabled{
  opacity: .38;
  cursor: not-allowed;
  pointer-events: none;
}
.redactie__speechAction--done{
  font-weight: 800;
  color: var(--ok);
  border-color: rgba(43,217,124,.35);
  background: rgba(43,217,124,.1);
}
.redactie__speechAction--done:hover{
  background: rgba(43,217,124,.18);
  border-color: rgba(43,217,124,.45);
}
.redactie__speechItem-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.redactie__speechItem-row .badge{
  flex-shrink: 0;
  transform: scale(1.02);
}
.redactie__speechTime{
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}
.redactie__panel--shortcuts .redactie__panel-body{
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 12px;
}
.redactie__shortcuts-group{
  flex-shrink: 0;
}
.redactie__shortcuts-group--scroll{
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.redactie__shortcuts-group--scroll .redactie__shortcuts{
  flex: 1;
  min-height: 0;
  overflow: auto;
  align-content: start;
}
.redactie__shortcuts-group--scroll .redactie__shortcuts::-webkit-scrollbar{
  width: 6px;
}
.redactie__shortcuts-group--scroll .redactie__shortcuts::-webkit-scrollbar-track{
  background: transparent;
}
.redactie__shortcuts-group--scroll .redactie__shortcuts::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.15);
  border-radius: 3px;
}
.redactie__shortcuts-heading{
  margin: 0 0 8px 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.redactie__shortcuts{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-content: start;
}
.redactie__shortcuts--pers{
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding-right: 4px;
}
.redactie__shortcut{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background .15s, border-color .15s;
  min-height: 40px;
  text-align: center;
}
.redactie__shortcut--sm{
  padding: 8px 10px;
  font-size: 11px;
  min-height: 36px;
}
.redactie__shortcut:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  color: var(--text);
}
.redactie__shortcut:active{
  background: rgba(255,255,255,.1);
}
.redactie__shortcut--placeholder{
  color: var(--muted);
  cursor: default;
  opacity: .85;
}
.redactie__shortcut--placeholder:hover{
  background: rgba(255,255,255,.05);
  border-color: var(--border);
  color: var(--muted);
}
@media (max-width: 1000px){
  .redactie__shortcuts{ grid-template-columns: repeat(3, 1fr); }
  .redactie__shortcuts--pers{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px){
  .redactie__stats{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px 12px;
  }
  .redactie__panels{
    padding: 0 12px 12px;
    gap: 12px;
  }
  .redactie__tile{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    gap: 6px;
  }
  .redactie__tile-num{
    align-self: auto;
    max-width: 100%;
    font-size: 15px;
    padding: 4px 8px;
  }
  .redactie__shortcuts{
    grid-template-columns: 1fr 1fr;
  }
}
.redactie__panel-title{
  margin: 0;
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: rgba(0,0,0,.1);
}
.redactie__panel-body{
  flex: 1;
  overflow: auto;
  padding: 16px 18px;
  font-size: 13px;
  min-height: 0;
  scroll-behavior: smooth;
}
/* Website/mail artikelkaarten iets kleiner font voor gelijk gevoel */
.redactie__panel--articles .redactie__panel-body,
.redactie__panel--mail .redactie__panel-body{
  font-size: 12px;
}
/* Rechterkolom: twee gelijke kaarten (website + mail) */
.redactie__rightCol{
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow: hidden;
}
.redactie__rightCol .redactie__panel{
  flex: 1 1 0;
  min-height: 0;
}
/* Artikelkaart: ~4 items zichtbaar, rest scrollen */
.redactie__panel--articles .redactie__panel-body{
  max-height: 100%;
  padding-right: 12px;
}
.redactie__panel--articles .redactie__articles{
  display: block;
}
.redactie__articles,
.redactie__staff{
  list-style: none;
  margin: 0;
  padding: 0;
}
.redactie__article{
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.redactie__article:last-child{ border-bottom: none; }
.redactie__article-cat{
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 4px;
}
.redactie__article a{
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}
.redactie__article a:hover{ color: var(--brand); }
.redactie__article-excerpt{
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
/* Website-artikellijst op redactie: reset eigen borders/padding zodat gm-item stijl identiek is aan mail */
.redactie__panel--articles .redactie__articles{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.redactie__panel--articles .redactie__article{
  padding: 0;
  border: 0;
}
.redactie__panel--articles .redactie__article a{
  font-weight: inherit;
  margin-bottom: 0;
}
.redactie__staff-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.redactie__staff-item:last-child{ margin-bottom: 0; }
.redactie__staff-item .avatar{ flex-shrink: 0; }
.redactie__staff-item .avatar{
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.redactie__staff-meta{ flex: 1; min-width: 0; }
.redactie__staff-item strong{ display: block; font-size: 14px; }
.redactie__staff-item .mono{ font-size: 13px; color: var(--muted); }
.redactie__staff-item .badge{ margin-left: auto; flex-shrink: 0; transform: scale(1.05); }
.redactie__staff-p2000{
  font-size: 12px;
}
.redactie__staff-p2000Label{
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.redactie__staff-p2000Title{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.redactie__panel--mail .gm-list{
  font-size: 12px;
  flex: 1;
  overflow: auto;
  min-height: 0;
}
.redactie__panel--mail .redactie__panel-body{
  display: block;
  padding-right: 12px;
  min-height: 0;
}
.page-redactie .redactieMailUpdate{
  display: none;
}
.redactie__panel--mail .muted{ margin-bottom: 8px; flex-shrink: 0; }

/* Artikel-assistent inbedden op redactie (iframe-paneel + open-animatie; geen backdrop-filter = minder lag) */
.redactie__artikelEmbed{
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: min(16px, 3vw);
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.redactie__artikelEmbed--open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.redactie__artikelEmbed-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.92);
}
.redactie__artikelEmbed-panel{
  position: relative;
  z-index: 1;
  width: min(1120px, 96vw);
  height: min(760px, 88vh);
  max-height: 88vh;
  background: var(--bg, #141418);
  background-image: none;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.2s ease;
}
.redactie__artikelEmbed--open .redactie__artikelEmbed-panel{
  transform: translateY(0);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce){
  .redactie__artikelEmbed,
  .redactie__artikelEmbed-panel{
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .redactie__artikelEmbed-panel{
    transform: none !important;
  }
  .redactie__artikelEmbed:not(.redactie__artikelEmbed--open) .redactie__artikelEmbed-panel{
    opacity: 0;
  }
  .redactie__artikelEmbed--open .redactie__artikelEmbed-panel{
    opacity: 1;
  }
}
.redactie__artikelEmbed-bar{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  background: rgba(255, 255, 255, 0.03);
}
.redactie__artikelEmbed-title{
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.redactie__artikelEmbed-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.redactie__artikelEmbed-frame{
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: var(--bg, #141418);
}

/* Profiel: salarisstrook bekijken — zelfde overlay + panel-animatie als artikel-assistent */
.profile-slip-embed{
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: min(16px, 3vw);
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.profile-slip-embed--open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.profile-slip-embed-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.92);
}
.profile-slip-embed-panel{
  position: relative;
  z-index: 1;
  width: min(1120px, 96vw);
  height: min(760px, 88vh);
  max-height: 88vh;
  background: var(--bg, #141418);
  background-image: none;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.2s ease;
}
.profile-slip-embed--open .profile-slip-embed-panel{
  transform: translateY(0);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce){
  .profile-slip-embed,
  .profile-slip-embed-panel{
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .profile-slip-embed-panel{
    transform: none !important;
  }
  .profile-slip-embed:not(.profile-slip-embed--open) .profile-slip-embed-panel{
    opacity: 0;
  }
  .profile-slip-embed--open .profile-slip-embed-panel{
    opacity: 1;
  }
}
.profile-slip-embed-bar{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  background: rgba(255, 255, 255, 0.03);
}
.profile-slip-embed-title{
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 8px;
}
.profile-slip-embed-actions{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.profile-slip-embed-frame{
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: var(--bg, #141418);
}

/* Mobile hardening: placed after base redactie rules to prevent override issues */
@media (max-width: 800px){
  body.page-redactie{
    overflow-y: auto;
  }
  body.page-redactie main.page{
    overflow: auto;
    padding-bottom: 10px;
  }
  .page-redactie .redactie{
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .page-redactie .redactie__panels,
  .page-redactie .redactie__leftCol,
  .page-redactie .redactie__rightCol,
  .page-redactie .redactie__panel,
  .page-redactie .redactie__panel-body{
    overflow: visible;
  }
  .page-redactie .redactie__shortcuts-group--scroll{
    display: none;
  }
  .page-redactie .redactie__leftCol .redactie__panel,
  .page-redactie .redactie__rightCol .redactie__panel{
    min-height: 0;
  }
  body.page-redactie .footer{
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding-top: 10px;
  }
}
@media (max-width: 800px){
  .redactie__rightCol .redactie__panel{ min-height: 220px; }
  .redactie__leftCol .redactie__panel{ min-height: 220px; }
}

/* Redactie mobile guardrails (final override) */
@media (max-width: 800px){
  .page-redactie .container{
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  body.page-redactie{
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  body.page-redactie main.page{
    overflow: auto !important;
    overflow-x: hidden !important;
    min-height: auto;
    padding-bottom: 12px;
  }
  .page-redactie .redactie{
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-x: hidden !important;
  }
  .page-redactie .redactie,
  .page-redactie .redactie *{
    min-width: 0;
  }
  .page-redactie .redactie__panels{
    grid-template-columns: 1fr !important;
    overflow: visible !important;
    overflow-x: hidden !important;
  }
  .page-redactie .redactie__leftCol,
  .page-redactie .redactie__rightCol{
    display: block !important;
    overflow: visible !important;
    overflow-x: hidden !important;
    min-width: 0 !important;
  }
  .page-redactie .redactie__panel{
    overflow: visible !important;
    overflow-x: hidden !important;
    height: auto !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }
  .page-redactie .redactie__leftCol .redactie__panel,
  .page-redactie .redactie__rightCol .redactie__panel{
    flex: 0 0 auto !important;
    min-height: 0 !important;
  }
  .page-redactie .redactie__leftCol .redactie__panel + .redactie__panel,
  .page-redactie .redactie__rightCol .redactie__panel + .redactie__panel{
    margin-top: 12px;
  }
  .page-redactie .redactie__panel-body{
    overflow: visible !important;
    max-height: none !important;
    overflow-x: hidden !important;
    min-width: 0 !important;
  }
  .page-redactie .redactie__panel--mail .gm-list{
    overflow: visible !important;
    max-height: none !important;
    min-width: 0 !important;
  }
  .page-redactie .gm-item,
  .page-redactie .redactie__article,
  .page-redactie .redactie__staff-item{
    min-width: 0 !important;
  }
  .page-redactie .gm-preview,
  .page-redactie .gm-from,
  .page-redactie .redactie__article-excerpt,
  .page-redactie .redactie__staff-clock{
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .page-redactie .redactie__shortcuts-group--scroll{
    display: none !important;
  }
  body.page-redactie .footer{
    position: relative;
    z-index: 1;
    margin-top: 0;
  }
}
@media (max-width: 520px){
  .page-redactie .redactie__stats{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Redactie Team Overzicht: mobiele kaart-layout */
@media (max-width: 800px){
  /* Hele card: geen interne scroll, automatische hoogte. */
  .page-redactie .redactie__panel--team{
    display: block !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.028)),
      rgba(255,255,255,.03);
    box-shadow: 0 12px 34px rgba(0,0,0,.18);
  }
  .page-redactie .redactie__panel--team .redactie__panel-title{
    display: block;
    padding: 16px 16px 0;
    margin: 0;
    font-size: 15px;
    letter-spacing: .01em;
  }
  /* Body niet als flex/grid: pure block layout — secties kunnen niet meer overlappen. */
  .page-redactie .redactie__panel--team .redactie__panel-body,
  .page-redactie .redactie__panel--team .redactie__panel-body--teamSplit{
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 16px !important;
    margin: 0 !important;
  }
  /* Elke subkolom als losse subcard, onder elkaar. */
  .page-redactie .redactie__panel--team .redactie__teamCol{
    display: block !important;
    width: 100%;
    min-width: 0;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 12px !important;
    margin: 0 0 12px 0 !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 14px !important;
    background: rgba(0,0,0,.12) !important;
    box-sizing: border-box;
  }
  .page-redactie .redactie__panel--team .redactie__teamCol:last-child{
    margin-bottom: 0 !important;
  }
  .page-redactie .redactie__panel--team .redactie__teamCol--speech{
    border-left: 1px solid rgba(255,255,255,.07) !important;
    padding: 12px !important;
    padding-top: 12px !important;
  }
  /* Lijst-container: gewoon block, geen interne scroll. */
  .page-redactie .redactie__panel--team .redactie__teamCol-scroll{
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }
  .page-redactie .redactie__panel--team .redactie__teamCol-title{
    display: block;
    margin: 0 0 8px 0;
  }
  .page-redactie .redactie__panel--team .redactie__teamCol-lede{
    display: block;
    margin: 0 0 10px 0;
    max-width: 36rem;
  }
  /* Lijsten: duidelijke block-lists, items niet meer in elkaar. */
  .page-redactie .redactie__panel--team .redactie__staff,
  .page-redactie .redactie__panel--team .redactie__speechList{
    display: block !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* Medewerker-rij: vaste 3-koloms grid, alles passend. */
  .page-redactie .redactie__staff-item{
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin: 0 0 10px 0 !important;
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
  }
  .page-redactie .redactie__staff-item:last-child{ margin-bottom: 0 !important; }
  .page-redactie .redactie__staff-item .avatar{
    width: 40px;
    height: 40px;
    border-radius: 11px;
    grid-column: 1;
    grid-row: 1;
  }
  .page-redactie .redactie__staff-meta{
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  .page-redactie .redactie__staff-item strong{
    display: block;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .page-redactie .redactie__staff-role{
    display: inline-block;
  }
  .page-redactie .redactie__staff-clock{
    display: block;
    margin-top: 4px;
    line-height: 1.35;
  }
  .page-redactie .redactie__staff-p2000Title{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .page-redactie .redactie__staff-item .badge{
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
    max-width: 100%;
    white-space: nowrap;
    line-height: 1.2;
    text-align: center;
    transform: none;
  }
  /* Spraakaanvraag-rij: naam links, knoppen rechts. */
  .page-redactie .redactie__speechItem{
    display: block !important;
    padding: 12px;
    margin: 0 0 10px 0 !important;
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
  }
  .page-redactie .redactie__speechItem:last-child{ margin-bottom: 0 !important; }
  .page-redactie .redactie__speechItem-head{
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
  }
  .page-redactie .redactie__speechItem-head strong{
    grid-column: 1;
    overflow-wrap: anywhere;
    margin: 0;
  }
  .page-redactie .redactie__speechItem-actions{
    grid-column: 2;
    display: inline-flex;
    gap: 6px;
    justify-self: end;
    margin-left: 0 !important;
  }
  .page-redactie .redactie__speechAction{
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }
  .page-redactie .redactie__speechItem-row{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .page-redactie .redactie__speechTime{
    margin-left: auto;
  }
}

@media (max-width: 520px){
  .page-redactie .redactie__panel--team .redactie__panel-title{
    padding: 14px 14px 0;
  }
  .page-redactie .redactie__panel--team .redactie__panel-body,
  .page-redactie .redactie__panel--team .redactie__panel-body--teamSplit{
    padding: 14px !important;
  }
  .page-redactie .redactie__panel--team .redactie__teamCol{
    padding: 10px !important;
    border-radius: 13px !important;
  }
  /* Heel smal scherm: badge onder de meta i.p.v. ernaast. */
  .page-redactie .redactie__staff-item{
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .page-redactie .redactie__staff-item .avatar{
    grid-row: 1 / span 2;
  }
  .page-redactie .redactie__staff-item .badge{
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-top: 6px;
  }
}

/* ==========================================
   📞 PERSVOORLICHTING
   ========================================== */
.page-persvoorlichting .list-toolbar { margin-bottom: 16px; }
.persvoorlichting-list { display: flex; flex-direction: column; gap: 24px; }
.persvoorlichting-gemeente__title {
  font-size: 1.1rem;
  margin: 0 0 12px 0;
  color: var(--text);
  border-bottom: 1px solid var(--border, rgba(255,255,255,.12));
  padding-bottom: 6px;
}
.persvoorlichting-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 520px) {
  .persvoorlichting-cards { grid-template-columns: 1fr; gap: 10px; }
}
.persvoorlichting-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border, rgba(255,255,255,.12));
  border-radius: 10px;
  padding: 12px 14px;
  height: 100%;
}
.persvoorlichting-card__type {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin: 0 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,.08));
}
.persvoorlichting-card--politie .persvoorlichting-card__type { color: #93c5fd; }
.persvoorlichting-card--brandweer .persvoorlichting-card__type { color: #fca5a5; }
.persvoorlichting-card--brandweer { padding-bottom: 16px; }
.persvoorlichting-card__list { list-style: none; margin: 0; padding: 0; }
.persvoorlichting-card__item {
  font-size: 14px;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.persvoorlichting-card__item:last-child { margin-bottom: 0; }
.persvoorlichting-card__name { font-weight: 500; margin-right: 4px; }
.persvoorlichting-card__link {
  color: var(--link, #60a5fa);
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.persvoorlichting-card__link:hover { text-decoration: underline; }
.persvoorlichting-card__link:visited { color: var(--link, #60a5fa); }
.persvoorlichting-card__opm { font-size: 12px; display: block; margin-top: 2px; }

/* Persvoorlichting pagina */
.card--persvoorlichting-lookup {
  padding: 20px 24px;
}
@media (max-width: 520px) {
  .card--persvoorlichting-lookup { padding: 16px; }
}
.persvoorlichting-title {
  font-size: 1.15rem;
  margin: 0 0 18px 0;
  font-weight: 600;
  color: var(--text);
}
.persvoorlichting-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 12px;
}
.persvoorlichting-toolbar--filters {
  justify-content: flex-start;
  margin-bottom: 20px;
}
.persvoorlichting-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.persvoorlichting-label { font-weight: 500; white-space: nowrap; }
.persvoorlichting-select {
  min-width: 200px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(255,255,255,.25));
  background: rgba(15, 23, 42, 0.95);
  color: #e2e8f0;
  font: inherit;
}
.persvoorlichting-select option {
  background: #1e293b;
  color: #f1f5f9;
}
.persvoorlichting-actions { margin-left: auto; display: flex; gap: 8px; }
.persvoorlichting-sheet { max-width: 980px; }
.persvoorlichting-sheet__twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.persvoorlichting-section {
  margin-bottom: 16px;
  border: 1px solid var(--border, rgba(255,255,255,.12));
  border-radius: 10px;
  overflow: hidden;
}
.persvoorlichting-sheet__twocol .persvoorlichting-section { margin-bottom: 0; }
.persvoorlichting-section__title {
  margin: 0;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.persvoorlichting-section--politie .persvoorlichting-section__title { background: rgba(30, 64, 175, 0.7); }
.persvoorlichting-section--brandweer .persvoorlichting-section__title { background: rgba(185, 28, 28, 0.7); }
.persvoorlichting-section--info .persvoorlichting-section__title { background: rgba(55, 65, 81, 0.7); }
.persvoorlichting-dl {
  margin: 0;
  padding: 12px 14px;
  background: rgba(255,255,255,.04);
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 12px;
}
@media (min-width: 380px) {
  .persvoorlichting-dl { grid-template-columns: 120px 1fr; gap: 8px 16px; }
}
.persvoorlichting-dl dt {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.persvoorlichting-dl dd {
  margin: 0;
  font-size: 14px;
}
.persvoorlichting-dl dd a {
  color: var(--link, #60a5fa);
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.persvoorlichting-dl dd a:hover { text-decoration: underline; }
.persvoorlichting-dl dd a:visited { color: var(--link, #60a5fa); }
.persvoorlichting-section--notities .persvoorlichting-section__title { background: rgba(55, 65, 81, 0.5); }
.persvoorlichting-notities { margin: 0; padding: 12px 14px; background: rgba(255,255,255,.04); font-size: 14px; }
.persvoorlichting-subtitle { font-size: 0.95rem; margin: 0 0 10px 0; color: var(--muted); }
.page-persvoorlichting .persvoorlichting-list .persvoorlichting-gemeente__title a { color: var(--link); text-decoration: none; }
.page-persvoorlichting .persvoorlichting-list .persvoorlichting-gemeente__title a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .persvoorlichting-sheet__twocol {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }
  .persvoorlichting-sheet__twocol .persvoorlichting-section { margin-bottom: 0; }
}
@media (max-width: 520px) {
  .page-persvoorlichting .card__head { margin-bottom: 14px; }
  .page-persvoorlichting .card__actions { flex-wrap: wrap; gap: 8px; }
  .persvoorlichting-cards { grid-template-columns: 1fr; }
  .persvoorlichting-toolbar { flex-direction: column; align-items: stretch; }
  .persvoorlichting-actions { margin-left: 0; }
  .persvoorlichting-title { font-size: 1rem; margin-bottom: 12px; }
  .persvoorlichting-sheet { max-width: 100%; }
  .persvoorlichting-section__title { padding: 8px 12px; font-size: 12px; }
  .persvoorlichting-dl { padding: 10px 12px; }
  .persvoorlichting-dl dt { font-size: 11px; }
  .persvoorlichting-dl dd { font-size: 13px; }
  .persvoorlichting-dl dd a { word-break: break-all; }
}

/* Regio bewerken pagina — meerdere secties */
.page-persvoorlichting-edit .persvoorlichting-edit-sections {
  display: grid;
  gap: 32px;
}
@media (min-width: 720px) {
  .page-persvoorlichting-edit .persvoorlichting-edit-sections {
    grid-template-columns: 1fr 1fr;
  }
}
.persvoorlichting-edit-divider {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

/* ==========================================
   🚧 MATRIXBORDEN
   ========================================== */
.card--matrixborden {
  max-width: none;
  margin: 0;
}
.page--matrixborden .matrixborden-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  margin-top: 12px;
}
.page--matrixborden .matrixborden-filters {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 14px;
  background: rgba(15,23,42,0.8);
}
.matrixborden-filters__group + .matrixborden-filters__group {
  margin-top: 16px;
}
.matrixborden-filters__title {
  margin: 0 0 6px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.matrixborden-filters select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(15,23,42,0.95);
  color: #e2e8f0;
  font: inherit;
}
.matrixborden-traject-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.matrixborden-traject {
  text-align: left;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(15,23,42,0.7);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.matrixborden-traject.is-active {
  background: rgba(27,111,246,0.4);
  border-color: var(--brand);
}
.matrixborden-content {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 16px;
  background: rgba(15,23,42,0.7);
}
.page--matrixborden #matrixborden-map {
  margin: 8px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  height: 420px;
  overflow: hidden;
}
.matrixborden-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.matrixborden-tab {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.matrixborden-tab.is-active {
  background: rgba(27,111,246,0.25);
  border-color: var(--brand);
  color: #e5edff;
}
.page--matrixborden .matrixborden-placeholder {
  margin-top: 4px;
  padding: 16px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: rgba(15,23,42,0.6);
}
.page--matrixborden .matrixborden-placeholder ul {
  padding-left: 18px;
  margin: 6px 0 0;
}
.page--matrixborden .matrixborden-placeholder li {
  list-style: disc;
  margin-bottom: 4px;
}
@media (max-width: 768px) {
  .page--matrixborden .matrixborden-layout {
    grid-template-columns: 1fr;
  }
}
.persvoorlichting-edit-section {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.persvoorlichting-edit-section__title {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 600;
}
.persvoorlichting-edit-section .form__hint { margin-bottom: 12px; }
.persvoorlichting-edit-section .form__actions { margin-top: 16px; }
.persvoorlichting-edit-blok {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.persvoorlichting-edit-blok:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.persvoorlichting-edit-blok__title {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

/* Chat widget: zie public/css/pages/chat-widget.css */

.brand__name--mobile{ display:none; }

/* Mobile topbar cleanup */
@media (max-width: 820px){
  .topbar__inner{
    display:grid;
    grid-template-columns: 40px 1fr auto;
    grid-template-areas:
      "menu brand user"
      "nav nav nav";
    align-items:center;
    column-gap:10px;
    row-gap:8px;
    min-height:58px;
    padding:10px 0 8px;
  }
  .topbar__nav{ display:none; }
  .brand{
    grid-area: brand;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-width:0;
    max-width:100%;
    justify-self:center;
  }
  .brand__logo{ display:none; }
  .brand__name--desktop{ display:none; }
  .brand__name--mobile{
    display:inline-block;
    font-size:17px;
    font-weight:900;
    letter-spacing:.01em;
    white-space:nowrap;
    max-width: calc(100vw - 120px);
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .topbar__menuBtn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    grid-area: menu;
    position: static;
    transform: none;
    height:36px;
    min-width:40px;
    padding:6px 10px;
    border-radius:10px;
    justify-self:start;
  }
  .topbar__right{
    grid-area: user;
    position: static;
    transform: none;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    min-width:0;
    justify-self:end;
  }
  .topbar__right .user-dropdown{ min-width:0; max-width:100%; }
  .topbar__right .user-dropdown__trigger{ max-width:100%; padding:3px 4px; gap:7px; }
  .topbar__right .user-dropdown__meta{ display:none; }
  .topbar__navMobile{
    grid-area: nav;
    width:100%;
    margin-top:8px;
  }
}

@media (max-width: 520px){
  .topbar__inner{ grid-template-columns: 36px 1fr auto; padding:9px 0 8px; }
  .brand__name--mobile{ font-size:16px; max-width: calc(100vw - 124px); }
  .topbar__right .user-dropdown__trigger{ padding:2px 3px; }
  /* Alleen header-avatar verkleinen — niet .avatar--big op o.a. profiel */
  .topbar .avatar{ width:30px; height:30px; border-radius:9px; }
}