

/* personeel chips */
.roleline{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px; }
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  min-height:30px;
  padding:6px;
  border-radius:12px;
  background:rgba(0,0,0,.10);
  border:1px solid rgba(255,255,255,.08);
  margin-bottom:8px;
}
.chip{
  padding:4px 8px;
  border-radius:10px;
  background:rgba(124,92,255,.25);
  border:1px solid rgba(124,92,255,.40);
  font-size:12px;
  cursor:grab;
  user-select:none;
}
:root{
  --bg:#0b1020;
  --panel:#0f1630;
  --line:rgba(255,255,255,.08);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.62);
  --radius:14px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{ box-sizing:border-box }
body{
  margin:0;
  font-family:var(--font);
  background: radial-gradient(1200px 700px at 20% 0%, #1a2455 0%, var(--bg) 45%) fixed;
  color:var(--text);
}

.app{ display:grid; grid-template-columns:300px 1fr; min-height:100vh; }

.sidebar{
  padding:16px 14px;
  border-right:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}

.brand{
  display:flex; align-items:center; gap:10px;
  padding:10px; border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
  margin-bottom:14px;
}
.dot{ width:10px;height:10px;border-radius:3px;background:#7c5cff }
.brand b{ letter-spacing:.2px }
.muted{ color:var(--muted); font-size:12px }

.nav{ display:flex; flex-direction:column; gap:8px; margin-top:8px; }
.nav a{
  color:var(--muted); text-decoration:none;
  padding:10px; border-radius:12px;
  border:1px solid transparent;
  display:flex; gap:10px; align-items:center;
}
.nav a:hover{ background:rgba(255,255,255,.04); border-color:var(--line); color:var(--text) }
.nav a.active{ background:rgba(124,92,255,.16); border-color:rgba(124,92,255,.35); color:var(--text) }

.sidecard{
  margin-top:14px; padding:12px;
  border-radius:12px; border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  display:flex; flex-direction:column; gap:8px;
}
.sidecard-title{ color:var(--muted); font-size:12px; letter-spacing:.2px }

.boardslist{ display:flex; flex-direction:column; gap:8px; }
.boardpill{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:10px; border-radius:12px; border:1px solid var(--line);
  background:rgba(0,0,0,.10); cursor:pointer;
}
.boardpill:hover{ background:rgba(255,255,255,.05) }
.boardpill.active{ border-color:rgba(124,92,255,.45); background:rgba(124,92,255,.12) }
.boardpill b{ font-size:13px }
.boardpill .meta{ font-size:12px; color:var(--muted) }

.main{ padding:18px 18px 22px }
.view.hidden{ display:none }

.topbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px; border-radius:var(--radius);
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
}

.title{ display:flex; flex-direction:column; gap:6px }
.title h1{ margin:0; font-size:18px; font-weight:750 }
.title .sub{ color:var(--muted); font-size:12px }

.boardname{
  width:min(520px, 60vw);
  background:transparent; border:1px solid transparent;
  color:var(--text); font-weight:800; font-size:18px;
  padding:6px 8px; border-radius:12px; outline:none;
}
.boardname:hover{ border-color:rgba(255,255,255,.10); background:rgba(255,255,255,.03) }
.boardname:focus{ border-color:rgba(124,92,255,.45); background:rgba(124,92,255,.10) }

.tools{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.search{
  display:flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:12px;
  border:1px solid var(--line); background:rgba(0,0,0,.16);
}
.search input{ background:transparent; border:0; color:var(--text); outline:none; width:240px; }

.field{ display:flex; flex-direction:column; gap:6px; }
.field span{ font-size:11px; color:var(--muted); }

.btn{
  border:1px solid rgba(124,92,255,.35);
  background:rgba(124,92,255,.22);
  color:var(--text);
  padding:9px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:650;
}
.btn:hover{ background:rgba(124,92,255,.30) }
.btn-ghost{ border:1px solid var(--line); background:rgba(255,255,255,.04); }
.btn-ghost:hover{ background:rgba(255,255,255,.06) }
.split{ display:flex; gap:8px; flex-wrap:wrap; }

.board{ margin-top:14px; display:flex; flex-direction:column; gap:12px }

.group{
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  border-radius:var(--radius);
  overflow:hidden;
}
.group.drop-target{ outline: 2px dashed rgba(124,92,255,.55); outline-offset: -4px; }

.group-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 12px; background:rgba(255,255,255,.03);
  border-bottom:1px solid var(--line);
}
.group-title{ display:flex; align-items:center; gap:10px; font-weight:800; }
.pill{ width:8px;height:18px;border-radius:5px;background:#7c5cff; }
.group-actions{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.iconbtn{
  cursor:pointer;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  padding:7px 10px;
  border-radius:12px;
  color:var(--text);
  font-weight:750;
}
.iconbtn:hover{ background:rgba(255,255,255,.06) }

.colorpick{
  width:34px; height:34px; border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  padding:0; cursor:pointer;
}

.group-title-edit{
  width:min(420px, 50vw);
  background:transparent; border:1px solid transparent;
  color:var(--text); font-weight:850; font-size:14px;
  padding:6px 8px; border-radius:10px; outline:none;
}
.group-title-edit:hover{ border-color:rgba(255,255,255,.10); background:rgba(255,255,255,.03); }
.group-title-edit:focus{ border-color:rgba(124,92,255,.45); background:rgba(124,92,255,.10) }
.kicker{ color:var(--muted); font-size:12px }

.table{
  width:100%;
  display:grid;
  /* Hoofdtabel: [check] [drag] [taak] [kleur] [aantekeningen] [van] [tot] [del] */
  grid-template-columns: 34px 40px 2fr 80px 1.6fr 1fr 1fr 50px;
}
.th,.td{
  padding:9px 10px;
  border-bottom:1px solid var(--line);
  font-size:13px;
  display:flex;
  align-items:flex-start;
  min-height:40px;
}
.th{ color:var(--muted); font-weight:800; background:rgba(0,0,0,.10); align-items:center; }

.cell-edit,.small{
  width:100%;
  background:rgba(0,0,0,.12);
  border:1px solid rgba(255,255,255,.06);
  color:var(--text);
  border-radius:10px;
  padding:7px 8px;
  outline:none;
}
.cell-edit:focus,.small:focus{
  border-color:rgba(124,92,255,.45);
  background:rgba(124,92,255,.10);
}
.select{
  width:100%;
  padding:7px 8px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(0,0,0,.12);
  color:var(--text);
  outline:none;
}
.select option{ background: var(--panel); color: var(--text); }

.trash{
  color:rgba(255,255,255,.85);
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  width:34px; height:34px;
  border-radius:12px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:2px;
}
.trash:hover{ background:rgba(255,80,80,.18); border-color:rgba(255,80,80,.22) }

.footerhint{ margin-top:12px; color:var(--muted); font-size:12px }

/* taak + subtaken */
.taskcell{ width:100%; display:flex; flex-direction:column; gap:8px; }
.subtoggle{
  display:flex; align-items:center; gap:8px;
  padding:6px 8px; border-radius:10px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.10);
}
.subtoggle .chev{
  width:22px; height:22px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.subtoggle .label{ font-size:12px; color:var(--muted) }
.subtoggle .spacer{ flex:1; }

.subpanel{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.08);
  border-radius:12px;
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.subrow{ display:flex; gap:8px; align-items:center; }
.subrow input[type="text"]{ flex:1; }

.subadd{ display:flex; gap:8px; align-items:center; }
.subadd input{ flex:1; }

.smallbtn{
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  border-radius:12px;
  padding:7px 10px;
  cursor:pointer;
  font-weight:750;
}
.smallbtn:hover{ background:rgba(255,255,255,.06) }

/* drag handles */
.row-handle, .sub-handle{
  width:26px; height:26px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  display:flex; align-items:center; justify-content:center;
  cursor:grab; user-select:none;
}
.row-handle:active, .sub-handle:active{ cursor:grabbing; }
.dragging{ opacity:.45; }
.drop-hint{ outline:2px dashed rgba(124,92,255,.55); outline-offset:-4px; }

/* dashboard */
.dashgrid{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:12px;
}
.dashcard{
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  border-radius:16px;
  padding:12px;
}
.dashcard h3{ margin:0 0 6px 0; font-size:14px }
.dashcard .meta{ color:var(--muted); font-size:12px; margin-bottom:10px }
.dashcard .actions{ display:flex; gap:8px; flex-wrap:wrap }

/* transport */
.transport{
  margin-top:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  border-radius:16px;
  overflow:hidden;
}
.transport-head{
  padding:12px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  background:rgba(255,255,255,.03);
}
.transport-actions{ display:flex; gap:8px; flex-wrap:wrap; }
.transport-table{
  width:100%;
  display:grid;
  grid-template-columns: 34px 40px 140px 120px 1.6fr 1.2fr 50px;
}
.transport-table .th,.transport-table .td{ min-height:38px; align-items:center; }

/* personeel per groep */
.staff{
  border-top:1px solid var(--line);
  background:rgba(0,0,0,.10);
  padding:10px 12px 12px 12px;
}
.staff-head{
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  margin-bottom:10px;
}
.staff-title{ display:flex; gap:10px; align-items:center; }

.staff-rolesbox{ margin:10px 0 14px 0; }
.label{ font-size:11px; color:var(--muted); margin-bottom:6px; }
.ta{
  width:100%;
  min-height:140px;
  background:rgba(0,0,0,.12);
  border:1px solid rgba(255,255,255,.06);
  color:var(--text);
  border-radius:12px;
  padding:9px 10px;
  outline:none;
  resize:vertical;
}
.ta-small{ min-height:90px; }
.ta:focus{ border-color:rgba(124,92,255,.45); background:rgba(124,92,255,.10); }

.staff-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:10px;
}
.staff-card{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  border-radius:14px;
  padding:10px;
}
.staff-card .role{ font-weight:850; margin-bottom:8px; }
.staff-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  min-height:34px;
}
.staff-chip{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
  user-select:none;
}
.staff-chip-txt{ font-size:12.5px; }
.staff-chip-x{
  border:0;
  background:transparent;
  color:rgba(255,255,255,.75);
  cursor:pointer;
  font-size:12px;
}
.staff-chip-x:hover{ color:#fff; }
.staff-add{
  margin-top:10px;
  display:flex;
  gap:8px;
  align-items:center;
}

/* modal */
.modal::backdrop{ background: rgba(0,0,0,.55); }
.modal-card{
  width:min(1100px, 94vw);
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(15,22,48,.98);
  color:var(--text);
  padding:0;
}
.modal-head{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
}
.modal-pad{ padding:14px; }
.grid3{ display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; }
.smalltxt{ font-size:12px; margin-top:8px; }
.modal-actions{
  display:flex; justify-content:flex-end; gap:10px;
  padding:12px;
  border-top:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
}
.x{
  cursor:pointer;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  padding:7px 10px;
  border-radius:12px;
  color:var(--text);
}

/* dagplanning */
.dayplan-wrap{
  margin-top:14px;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background:rgba(255,255,255,.02);
}
.dayplan{
  background:#fff;
  color:#111;
  padding:12px;
}
.dayplan .head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:10px;
  border-bottom:1px solid #ddd;
  padding-bottom:8px;
  margin-bottom:10px;
}
.dayplan .head h2{
  margin:0;
  font-size:16px;
  font-weight:800;
}
.dayplan .meta{
  font-size:11px;
  color:#666;
}
.dayplan .logo img{
  max-height:28px;
  max-width:220px;
  object-fit:contain;
  filter: grayscale(1) contrast(1.05);
  opacity:.92;
}

.dayblock{ margin-top:12px; }
.dayblock-title{
  font-weight:800;
  font-size:13px;
  margin:0 0 6px 0;
}

.daygrid{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  border:1px solid #111;
}
.daygrid th, .daygrid td{
  border:1px solid #111;
  padding:6px 7px;
  font-size:12px;
  vertical-align:top;
  word-wrap:break-word;
}
.daygrid th{
  font-weight:800;
  background:#f7f7f7;
}
.barwrap{
  position:relative;
  height:24px;
  background:#fff;
}
.bar{
  position:absolute;
  top:2px; bottom:2px;
  background:#4b8fd1;
}
.bar.light{ background:#9ec3e6; }

.subtext{
  margin-top:4px;
  font-size:10.5px;
  color:#444;
}
.staffprint{
  margin-top:10px;
  border:1px solid #111;
}
.staffprint .stitle{
  font-weight:800;
  padding:6px 8px;
  border-bottom:1px solid #111;
  background:#f7f7f7;
  font-size:12px;
}
.staffprint .sgrid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:0;
}
.staffprint .scell{
  border-top:1px solid #111;
  border-right:1px solid #111;
  padding:6px 8px;
  font-size:12px;
}
.staffprint .scell:nth-child(1){ border-top:0; }
.staffprint .role{ font-weight:800; }
.staffprint .names{ margin-top:4px; color:#222; white-space:pre-wrap; }

.daytransport{ margin-top:14px; }

/* responsive */
@media (max-width: 980px){
  .app{ grid-template-columns: 1fr; }
  .sidebar{ border-right:0; border-bottom:1px solid var(--line); }
  .boardname{ width:100%; }
  .table{ grid-template-columns: 34px 40px 1.6fr 80px 1.3fr 1fr 1fr 50px; }
}


  .dpblock{ margin-top:10px; border:1px solid #111; }
  .dpblock .dptitle{ font-weight:800; padding:6px 8px; border-bottom:1px solid #111; background:#f7f7f7; font-size:12px; }
  .dptable{ width:100%; border-collapse:collapse; }
  .dptable th, .dptable td{ border:1px solid #111; padding:6px 7px; font-size:12px; vertical-align:top; }
  .dptable th{ background:#f7f7f7; font-weight:800; }


/* dagplanning iframe preview */
.dpframe{ width:100%; height:78vh; border:0; background:#fff; }
