:root{ --bg1:#f2994a; --bg2:#f2c94c; --card:#fff; --text:#333; --panel:#242424; --panel-border:#3a3a3a; --accent:#d76a00; }
*{ box-sizing:border-box; }
body {
  /* Achtergrondafbeelding */
  background: url('/assets/background.png') center/cover no-repeat fixed;
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial;
  color: var(--text);
  position: relative; 
}


body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  background: #FFA534;
  background: linear-gradient(to bottom, #FFA534 0%, rgba(236, 22, 87, 0.6) 100%);
  background-size: 150% 150%;
}

.topbar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  left: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8); /* optioneel: achtergrond voor leesbaarheid */
  backdrop-filter: blur(10px); /* optioneel voor een moderne look */
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo {
  height: 40px;
  width: auto;
}

.top-actions {
  display: flex;
  gap: 0.5rem;
}

/* --- Mobiel --- */
@media (max-width: 768px) {
  .topbar {
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .logo {
    height: 32px; /* iets kleiner logo op mobiel */
  }

  .top-actions {
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

.btn{ padding:.6rem .9rem; border-radius:10px; background:#fff; border:1px solid #ddd; text-decoration:none; color:#111; box-shadow:0 1px 2px rgba(0,0,0,.06); }
.btn:hover{ filter:brightness(0.98); }
.btn-light{ background:#fafafa; }
.btn-danger{ background:#ffe2e2; border-color:#ffb3b3; }
.btn-small{ padding:.35rem .6rem; font-size:.9rem; }

.hero-bg {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 12rem 2rem 2rem;
}

/* Mobiel (bijv. tot 768px breed) */
@media (max-width: 1025px) {
  .hero-bg {
    padding: 5rem 2rem 2rem;
  }
}

h2 i {
    color: #e45d00;   /* Alleen het icoon kleurt oranje */
    font-size: 1rem;
}
/* var(--card) */

.grid{ width:100%; max-width:1200px; margin:0 auto; display:grid; grid-template-columns: 1fr 2fr; gap:2rem; }
.card{ background:#ffffff7d; border-radius:12px; padding:1.2rem 1.4rem; box-shadow:0 10px 30px rgba(0,0,0,.15);
  height:400px; overflow-y:auto; display:flex; flex-direction:column; }
.card h2{ margin-top:0; }
@media (max-width:900px){ .grid{ grid-template-columns:1fr; } }

/* Incidentlayout (datum + chip boven, titel onder) */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.list a {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #222;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.list a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.incident-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
}

.incident-meta time {
  font-variant-numeric: tabular-nums;
}

.incident-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.35rem;
  color: #111;
}

.incident-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.incident-main {
  flex: 2;
  min-width: 0;
}

.incident-updates {
  flex: 1;
  min-width: 280px;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.updates-list {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  gap: 1.5rem; /* wat ruimte tussen updates */
  padding-left: 2rem;
}


/* Elke update */
.update-row {
  position: relative;
  z-index: 1;
}

/* Cirkel/bullet */
.update-row::before {
  content: "";
  position: absolute;
  left: -1.05rem;     /* centreren op de lijn */
  top: 0.35rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #f58a1f;
  box-shadow: 0 0 0 4px #f58a1f22; /* zachte gloed */
}

/* Laatste (nieuwste) update accentkleur */
.update-row.latest::before {
  border-color: #d96a00;
}
.updates-list::before {
  top: -0.5rem;
  bottom: -0.5rem;
}

/* Datum */
.update-date {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.25rem;
}


@media (max-width: 900px) {
  .incident-layout {
    flex-direction: column;
  }

  .incident-updates {
    position: static;
    max-height: none;
    order: -1; 
  }
}


.list time{ font-variant-numeric:tabular-nums; width:145px; color:#666; }

/* --- SALES lijst: afbeelding links, tekst rechts --- */
.sales-list{
  display: grid;
  gap: .9rem;
}
.sales-list .sale-link{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: .9rem;
  align-items: center;
  background:#fff; border:1px solid #eee; border-radius:10px;
  padding:.6rem .8rem; text-decoration:none; color:#222;
  box-shadow:0 2px 5px rgba(0,0,0,.05);
}
.sales-list .sale-link:hover{ transform:translateY(-1px); box-shadow:0 5px 12px rgba(0,0,0,.08); }
.sales-list img{
  width:120px; height:80px; object-fit:cover; border-radius:8px;
}
.sale-meta{ display:flex; flex-direction:column; gap:.25rem; }
.sale-head{ display:flex; align-items:center; gap:.5rem; color:#666; font-size:.85rem; }
.sale-title{ font-weight:600; font-size:1rem; }

/* ===== Sales modal  ===== */
.sale-modal {
  position: relative;
  display: grid;
  grid-template-columns: 380px 1fr;
  align-items: start;
  gap: 1.25rem;
  width: min(900px, 95vw);
  padding: 1rem;
  overflow: hidden;
}

/* Mobiel en tablets */
@media (max-width: 768px) {
  .sale-modal {
    grid-template-columns: 1fr;   /* afbeelding boven tekst */
    width: 95vw;                  /* bijna volle schermbreedte */
    max-height: 90vh;             /* voorkomt dat het scherm overloopt */
    overflow-y: auto;             /* scrollbaar indien nodig */
  }

  .sale-modal .media img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
}


.sale-modal .close{
  position: absolute;        
  top: 10px; right: 12px;
  font-size: 22px;
  line-height: 1;
  background: #fff;
  border: 1px solid #e8e8ec;
  border-radius: 999px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  cursor: pointer;
}

.sale-modal .media{
  border-radius: 12px;
  overflow: hidden;
  background: #f6f6f8;
  align-self: start;
}
.sale-modal .media img{
  display: block;
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
}

.sale-modal .body h3{
  margin: .2rem 0 .4rem;
  font-size: 1.25rem;
}
.sale-modal .body .date{
  color: #666;
  font-size: .9rem;
  margin-bottom: .7rem;
}
.sale-modal .body .desc{
  margin: .5rem 0 1rem;
}

/* Responsive: 1 kolom op small */
@media (max-width: 780px){
  .sale-modal{
    grid-template-columns: 1fr;
  }
  .sale-modal .media img{
    max-height: 260px;
  }
}


.sales-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:1.2rem; }
.sales-card{ background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 2px 6px rgba(0,0,0,.1); display:flex; flex-direction:column; }
.sales-card img{ width:100%; height:160px; object-fit:cover; }
.sales-info{ padding:1rem; display:flex; flex-direction:column; gap:.4rem; }
.sales-meta{ display:flex; justify-content:space-between; align-items:center; margin-top:.4rem; }
.sales-link{ color:#0078d4; text-decoration:none; font-weight:500; }
.sales-link:hover{ text-decoration:underline; }

.modal{ position:fixed; inset:0; background:rgba(0,0,0,.45); display:none; place-items:center; padding:1rem; z-index:1000; }
.modal.show{ display:grid !important; }
.modal-content{ background:#fff; max-width:1000px; max-height:800px; width:100%; border-radius:12px; padding:1rem 1.2rem; box-shadow:0 15px 40px rgba(0,0,0,.25); }
.modal .close{ float:right; font-size:1.6rem; border:0; background:transparent; cursor:pointer; }
.code{ background:#d45e10; color:#e2e8f0; padding:.8rem; border-radius:8px; overflow:auto; }

/* Admin */
.panel{ background:#1f1f1f; color:#f1f1f1; border:1px solid var(--panel-border); border-radius:10px; padding:1rem; margin:1rem 0; }
.panel h3{ margin:0 0 .6rem; }
.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap:1rem; }
form input[type="text"], input[type="datetime-local"], textarea, select{ width:100%; padding:.6rem; border:1px solid #444; background:#2a2a2a; color:#eee; border-radius:8px; }
label{ display:block; margin:.6rem 0; }

/* Updates list (admin) */
.updates-list{ border:1px solid #444; border-radius:8px; overflow:hidden; }
.update-row{ display:grid; grid-template-columns: 180px 1fr; border-top:1px solid #444; }
.update-row:first-child{ border-top:0; }
.update-row .update-date{ background:#2a2a2a; color:#ddd; padding:.6rem; font-variant-numeric:tabular-nums; }
.update-row .update-body{ background:#3a3a3a; color:#fff; padding:.6rem .8rem; }
.update-row.latest .update-date, .update-row.latest .update-body{ background:var(--accent); color:#fff; }
.update-row.base .update-date{ background:#2a2a2a; }
.update-author{ font-weight:600; margin-bottom:.2rem; opacity:.9; }

/* Modal updates */
.updates{ margin:.5rem 0 1rem; border:1px solid #eee; border-radius:8px; overflow:hidden; }
.updates .item{ display:grid; grid-template-columns: 150px 1fr; }
.updates .item .dt{ background:#f7f7f7; padding:.5rem; font-variant-numeric:tabular-nums; }
.updates .item .msg{ padding:.5rem .7rem; }
.updates .item.latest .dt{ background:#ffe9d6; }

/* Empty message */
.empty-message {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  text-align: center;
  color: rgba(0, 0, 0, 0.55);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.4;
  border: 2px dashed rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  margin: 1rem 0;
  padding: 2rem 1.5rem;
  transition: background 0.3s ease;
}
.empty-message:hover {
  background: rgba(255, 255, 255, 0.8);
}


/* Error + Auth */
.error-page, .auth-page{ display:flex; align-items:center; justify-content:center; min-height:100vh; color:#fff; }
.error-container, .auth-container{ text-align:center; background:rgba(255,255,255,0.12); backdrop-filter:blur(6px); border-radius:16px; padding:2rem 3rem; box-shadow:0 10px 30px rgba(0,0,0,0.3); }
.error-container h1{ font-size:5rem; margin:0 0 .5rem; }
.auth-container h1{ margin:0 0 .5rem; }
.auth-container .btn-primary{ background:#fff; color:#e45d00; text-decoration:none; font-weight:700; padding:.8rem 1.2rem; border-radius:8px; display:inline-block; }
.auth-container .btn-primary:hover{ background:#ffe3d0; }
.auth-note{ margin-top:.75rem; }

/* --- Admin --- */
body.admin {

}

body.admin .container{
  max-width: 1200px;
  margin: 90px auto 40px;
  padding: 0 1rem;
}

/* Mobiel (schermen tot 768px breed) */
@media (max-width: 768px) {
  body.admin .container {
    max-width: 100%;
    margin: 70px 0 20px; /* minder marge voor kleine schermen */
    padding: 60px 1rem;
  }
}

/* Extra klein (tot 480px, bijv. smartphones in portretstand) */
@media (max-width: 480px) {
  body.admin .container {
    margin: 60px 0 15px;
    padding: 60px 1rem;
  }
}
/* cards/panel licht ipv donker */
body.admin .panel,
body.admin .table,
body.admin .admin-card {
  background: #fff;
  color: #222;
  border: 1px solid #e8e8ec;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
}

/* generieke panel spacing */
body.admin .panel { padding: 1rem 1.2rem; margin: 1rem 0; }

/* nette tabel */
body.admin .table { width: 100%; border-collapse: collapse; overflow: hidden; }
body.admin .table thead th { background: #f7f7fb; font-weight: 600; text-align: left; }
body.admin .table th, 
body.admin .table td { padding: .85rem 1rem; border-bottom: 1px solid #eee; }

/* formulier inputs licht */
body.admin input[type="text"],
body.admin input[type="email"],
body.admin input[type="datetime-local"],
body.admin select, 
body.admin textarea {
  width: 100%;
  padding: .65rem .7rem;
  background: #fff;
  border: 1px solid #dfe1e6;
  border-radius: 10px;
  color: #222;
}

/* modal in admin (licht) */
body.admin .modal-content{
  background: #fff;
  border: 1px solid #e8e8ec;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}

/* updateslijst */
body.admin .updates-list{
  --rail-x: 10px;
  --list-pl: 26px;
  --rail-w: 3px;
  --rail-color: rgba(255,165,52,.30); /* i.p.v. gradient voor perfecte match */
  --dot-size: 12px;
  --dot-border: 3px;
  --hole: calc(var(--dot-size) + (var(--dot-border) * 2) + 4px); /* gat-hoogte onder dot */
  isolation: isolate;
}

body.admin .update-row { grid-template-columns: 180px 1fr; border-top: 1px solid #eee; }
body.admin .update-row .update-date { background: #fafbff; color: #333; }
body.admin .update-row .update-body {
  background: transparent !important;
}

body.admin .update-row.latest .update-date,
body.admin .update-row.latest .update-body { background: #fff5e9; }

/* knoppen */
body.admin .btn { background: #fff; border: 1px solid #dfe1e6; }
body.admin .btn:hover { background: #f7f7fb; }

/* Quill editor fix */
.ql-container {
  min-height: 180px;
  border-radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  font-size: 15px;
}
.ql-toolbar {
  border-radius: 10px 10px 0 0;
}

/* Toast (flash message) */
.toast-wrap{ position:fixed; top:72px; right:16px; z-index:1100; display:flex; flex-direction:column; gap:.5rem; }
.toast{
  background:#fff; color:#222; border:1px solid #e8e8ec; border-radius:10px;
  box-shadow:0 12px 28px rgba(0,0,0,.12); padding:.7rem .9rem; min-width:240px;
  transition: opacity .3s ease, transform .3s ease;
}
.toast.success{ border-left:4px solid #16a34a; }
.toast.error{ border-left:4px solid #dc2626; }
.toast.hide{ opacity:0; transform:translateY(-6px); }

/* Status chips */
.chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  user-select: none;
}


.chip-open { background:#fff3cd; color:#b88c00; }
.chip-progress { background:#cfe2ff; color:#084298; }
.chip-ok { background:#d1e7dd; color:#0f5132; }

/* status badges (admin tabel) */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-align: center;
  min-width: 90px;
  color: #fff;
}

.status-open {
  background: #f39c12; /* oranje */
}

.status-progress {
  background: #3498db; /* blauw */
}

.status-ok {
  background: #27ae60; /* groen */
}

.status-unknown {
  background: #7f8c8d; /* grijs */
}

.btn-row {
  display: flex;
  gap: 10px;
}

.btn-row .btn {
  flex: 1; 
  text-align: center;
}
/* =======================================
   Admin – Timeline
   ======================================= */

/* Rechterkolom */
body.admin .incident-layout{
  display: grid;
  grid-template-columns: 2fr 1.2fr; 
  gap: 2rem;
}
@media (max-width: 900px){
  body.admin .incident-layout{ grid-template-columns: 1fr; }
}

/* Scrollbare, sticky updates-panel */
body.admin .incident-updates{
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}
body.admin .incident-updates .panel{
  position: sticky;
  top: 1rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  padding: 1.25rem 1.75rem; 
  box-sizing: border-box;
}

/* Sticky header  */
body.admin .incident-updates .panel > :first-child{
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  padding: .25rem 0 .5rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

/* =======================================
   Container + rail
   ======================================= */
body.admin .updates-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 26px;    
  margin: 2px;            
  border: 0;
  border-radius: 0;

  /* Scrollbeperking */
  max-height: 30rem;      
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable; 
  scroll-behavior: smooth;
}

/* Oranje verticale lijn */
body.admin .updates-list::before{
  content:"";
  position:absolute;
  left: var(--rail-x);
  top: -8px;
  bottom: -8px;
  width: var(--rail-w);
  background: var(--rail-color);
  border-radius: 2px;
  z-index: 0;
}
/* Scrollbarstijl passend bij jouw thema */
body.admin .updates-list::-webkit-scrollbar {
  width: 8px;
}
body.admin .updates-list::-webkit-scrollbar-thumb {
  background: rgba(215,106,0,.35);
  border-radius: 999px;
}
body.admin .updates-list::-webkit-scrollbar-thumb:hover {
  background: rgba(215,106,0,.55);
}

/* Kaart per update */
body.admin .update-row {
  position: relative;
  display: grid !important;
  grid-template-columns: clamp(120px, 22%, 160px) 1fr;
  align-items: start;
  gap: 12px;
  background: #fff;
  border: 1px solid #f0f0f0 !important;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease;
}

body.admin .update-row .update-body strong {
  font-size: 0.92rem;        
  font-weight: 600;          
  line-height: 1.3;
  color: #222;                
}

body.admin .update-row:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}


body.admin .update-row::before {
  content: "";
  position: absolute;
  left: calc(var(--rail-x) - var(--list-pl) - (var(--dot-size)/2) - var(--dot-border));
  top: 50%;
  transform: translateY(-50%);
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background: #fff; 
  border: var(--dot-border) solid var(--accent);
  box-shadow: 0 0 0 4px rgba(215, 106, 0, .1); 
  z-index: 2;
}
body.admin .update-row::after{
  content:"";
  position:absolute;
  left: calc(var(--rail-x) - var(--list-pl));
  top: 0;
  bottom: 0;
  width: var(--rail-w);
  background:
    linear-gradient(
      to bottom,
      var(--rail-color) 0,
      var(--rail-color) calc(50% - (var(--hole) / 2)),
      transparent       calc(50% - (var(--hole) / 2)),
      transparent       calc(50% + (var(--hole) / 2)),
      var(--rail-color) calc(50% + (var(--hole) / 2)),
      var(--rail-color) 100%
    );
  z-index: 1; /* boven rail, onder dot */
}
/* Nieuwste update accent */
body.admin .update-row.latest{
  background: #fff6ed;
  border-color: #ffd8b1 !important;
}
body.admin .update-row.latest::before{
  border-color:#ff8400;
  box-shadow:0 0 0 8px rgba(255,165,52,.15);
}

/* Startblokje subtiel */
body.admin .update-row.base{
  background: #fffaf3 !important;
  border-color: #ffe6c9 !important;
}

/* Datumchip */
body.admin .update-row .update-date{
  background: #fff8f1;
  color: #333;
  padding: .55rem .6rem;
  border-radius: 8px;
  text-align: center;
  font-size: .85rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
  border: 1px solid #f5d7b2;
}

/* Tekstvlak */
body.admin .update-row .update-body{
  color: #222;
  line-height: 1.45;
  overflow-wrap: anywhere;  
  word-break: break-word;
}
body.admin .update-row .update-body > div:last-child{
  margin-top: .3rem;
  font-size: .9rem; color: #666;
}

/* Oranje scrollbar  */
body.admin .incident-updates::-webkit-scrollbar{ width: 8px; }
body.admin .incident-updates::-webkit-scrollbar-thumb{
  background: rgba(215,106,0,.35);
  border-radius: 999px;
}
body.admin .incident-updates::-webkit-scrollbar-thumb:hover{
  background: rgba(215,106,0,.55);
}


@media (prefers-reduced-motion: reduce){
  body.admin .update-row,
  body.admin .incident-updates{ scroll-behavior: auto; }
  body.admin .update-row{ transition: none; }
}
body.admin .update-row .update-body p {
  margin: 0;               
  padding: 0;
  display: inline;       
}

/* === Sales-item edit === */
body.admin form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.admin .preview-thumb {
  margin: 1rem 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  max-width: 320px;
  background: #fafafa;
}

body.admin .preview-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

body.admin .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

body.admin label {
  display: block;
  font-weight: 500;
  margin-top: .75rem;
}

body.admin input[type="file"] {
  padding: .4rem;
  border: 1px solid #dfe1e6;
  border-radius: 8px;
  background: #fff;
}

body.admin .btn-row {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  margin-top: 1rem;
}

body.admin .btn-row .btn {
  min-width: 120px;
}

body.admin h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
/* Filterbalk: horizontaal naast elkaar */
body.admin .filter-bar{
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;             
  align-items: center;
  justify-content: flex-start;
  gap: 1rem 2rem;
  background: #fff;
  border: 1px solid #e8e8ec;
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
  margin-bottom: 1.2rem;
}


body.admin .filter-bar label{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  flex: 0 0 auto;                 
  width: auto;                 
  white-space: nowrap;
}


body.admin .filter-bar select{
  width: auto;
  min-width: 160px;
  padding: .45rem .6rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: .95rem;
}

body.admin .filter-bar{ max-width: none; }
.pagination {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin: 1rem 0 0;
}
.pagination .page-link {
  padding: .45rem .8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: #222;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
}
.pagination .page-link:hover {
  background: #f9f9f9;
}
.pagination .page-link.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
/* ===== Footer ===== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.page-wrap {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}


.site-footer {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
  font-size: 0.9rem;
  color: #333;
  backdrop-filter: blur(6px);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  transition: background 0.2s, transform 0.2s;
  color: #333;
  font-size: 18px;
}

.footer-link:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
  color: #e45d00;
}

.footer-right {
  text-align: right;
  color: rgba(0,0,0,0.6);
}
/* ===== Actieknoppen boven de cards ===== */
.action-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}


.btn-main {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.2rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  color: #222;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all .2s ease;
}

.btn-main:hover {
  background: #f8f8f8;
  transform: translateY(-2px);
}

.btn-main i {
  color: #e45d00;
  font-size: 1rem;
}

/* Mobiel: knoppen onder elkaar */
@media (max-width: 768px) {
  .action-buttons {
    flex-direction: column;
    gap: .8rem;
    margin-bottom: 1rem;
  }
}
/* Rechterkolom kan absolute elementen bevatten */
.col-right{
  position: relative;
}

/* Knoppen boven de rechter card, zonder invloed op card-hoogte */
.col-right .action-buttons{
  position: absolute;
  top: -56px;           /* schuif de knoppen boven de card */
  left: 0;             /* of left: 0; als je ze links wilt uitlijnen */
  display: flex;
  gap: 12px;
  z-index: 2;           /* boven de cards */
}

/* Maak de twee buttons exact even groot */
.col-right .action-buttons .btn-main{
  flex: 0 0 220px;      /* gelijke breedte */
  justify-content: center;
}

/* Op mobiel: knoppen niet overlappend maar in de flow boven de card */
@media (max-width: 900px){
  .col-right .action-buttons{
    position: static;
    margin-bottom: .75rem;
    justify-content: stretch;
  }
  .col-right .action-buttons .btn-main{
    flex: 1 1 auto;     /* volle breedte op mobiel */
  }
}

/* (optioneel) zorg dat de grid-items aan de bovenkant uitlijnen */
.grid{ align-items: start; }
.admin-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111;
  letter-spacing: -0.5px;
}

.admin-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.admin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(145deg, #f3f4f6, #ffffff);
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 500;
  color: #111;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.admin-btn:hover {
  background: linear-gradient(145deg, #e0e7ff, #f0f9ff);
  border-color: #c7d2fe;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.15);
  color: #1e3a8a;
}

.icon {
  font-size: 1.3rem;
}
.page-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* de hele < Incidenten link */
.back-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #2d2d2d;
}

/* witte knop met pijl */
.back-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  background: #fff;
  border-radius: 0.6rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.back-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.back-icon svg {
  width: 16px;
  height: 16px;
  stroke: #2d2d2d;
}

/* tekst */
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
}

#incident-modal .updates {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;

  /* Firefox ondersteuning */
  scrollbar-width: thin;
  scrollbar-color: #ffe9d6 #f5f5f5; /* thumb | track */
}

/* Chrome, Edge, Safari */
#incident-modal .updates::-webkit-scrollbar {
  width: 8px;
}

#incident-modal .updates::-webkit-scrollbar-track {
  background: #f5f5f5;       /* lichtere track */
  border-radius: 10px;
}

#incident-modal .updates::-webkit-scrollbar-thumb {
  background-color: #ffe9d6; /* jouw zachte oranje tint */
  border-radius: 10px;
  border: 1px solid #ffd7b3; /* subtiele rand voor contrast */
}

#incident-modal .updates::-webkit-scrollbar-thumb:hover {
  background-color: #ffd7b3; /* iets donkerder bij hover */
}

#s-desc {
  max-height: 200px;      /* bepaal zelf de limiet */
  overflow-y: auto;       /* scrollbar alleen als het nodig is */
  padding-right: 8px;     /* optioneel: ruimte naast scrollbar */

  /* Scrollbarstijl (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: #ffe9d6 #f5f5f5;
}

/* Scrollbarstijl (Chrome, Edge, Safari) */
#s-desc::-webkit-scrollbar {
  width: 8px;
}

#s-desc::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 10px;
}

#s-desc::-webkit-scrollbar-thumb {
  background-color: #ffe9d6;  /* jouw zachte oranje tint */
  border-radius: 10px;
  border: 1px solid #ffd7b3;
}

#s-desc::-webkit-scrollbar-thumb:hover {
  background-color: #ffd7b3;
}

/* === standaard (desktop) === */
.action-buttons-desktop {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.action-buttons-mobile {
  display: none;
}

/* === mobiel & tablet === */
@media (max-width: 1024px) {
  /* mobiele versie tonen */
  .action-buttons-mobile {
    display: flex;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin: 1rem 0;
  }

  /* desktopversie volledig verbergen */
  .action-buttons-desktop {
    display: none !important;
  }

  /* Remote Support-knop verbergen op mobiel */
  .action-buttons-mobile .btn-remote {
    display: none !important;
  }

  /* optioneel: mooi zwevend effect */
  .action-buttons-mobile {
    border-radius: 14px;
	  left: 0;
    padding: 0.6rem;
  }
}

.col-full {
  grid-column: 1 / -1; /* Laat de sectie over beide kolommen lopen */
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .grid-6 {
    grid-template-columns: repeat(1, 1fr);
  }
}

.contact{ background:#ffffff7d; border-radius:12px; padding:1.2rem 1.4rem; box-shadow:0 10px 30px rgba(0,0,0,.15);
  overflow-y:auto; display:flex; flex-direction:column; }
.contact h2{ margin-top:0; }


/* =======================================
   ADMIN: Responsive tabelweergave (mobiel)
   ======================================= */
@media (max-width: 640px) {
  body.admin .table {
    border: 0;
    min-width: auto;
  }

  body.admin .table thead {
    display: none;
  }

  body.admin .table tbody tr {
    display: block;
    background: #fff;
    border: 1px solid #e8e8ec;
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 6px rgba(0,0,0,.08);
  }

  body.admin .table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border: none;
    line-height: 1.4;
  }

  body.admin .table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--accent);
    flex: 0 0 45%;
    text-align: left;
    padding-right: 0.5rem;
  }

  body.admin .table tbody td.btn-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 0.6rem;
    border-top: 1px solid #f3f4f6;
    padding-top: 0.6rem;
  }

  .status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  body.admin .filter-bar {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  body.admin .filter-bar label {
    width: 100%;
  }
}
#push-toggle i {
  transition: color 0.3s;
}

#push-toggle .fa-bell {
  color: #007bff; /* blauw bij actief */
}

#push-toggle .fa-bell-slash {
  color: #666; /* grijs bij uit */
}
