/* --- Fonts (licht, niet te bold) --- */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap");

/* =========================================================
   PERFORMANCE / MIJN DAG SECTIE
   ========================================================= */
.perfSection{
  margin-bottom: 24px;
}
.perfSectionHead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.perfSectionTitle{
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-transform: capitalize;
}
.perfPeriodSwitch{
  display: flex;
  gap: 4px;
  background: var(--bg-soft, #f3f4f6);
  padding: 4px;
  border-radius: 10px;
}
.perfPeriodBtn{
  padding: 5px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.perfPeriodBtn.active{
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,.10);
}
.perfLegend{
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.perfLegend span{
  display: flex;
  align-items: center;
  gap: 5px;
}
.perfDot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.perfDot--green  { background: #22c55e; }
.perfDot--amber  { background: #f59e0b; }
.perfDot--red    { background: #ef4444; }

.perfGrid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
/* Als er maar 1 kaart is: volledige breedte */
.perfGrid:has(.perfUserCard:only-child) .perfUserCard{
  max-width: 640px;
}

/* ===== Mijn Dag / Week / Maand mini-kaarten ===== */
.mDagSection{
  margin-bottom: 24px;
  background: var(--card-bg, #fff);
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,.09);
  padding: 20px 20px 16px;
}
.mDagHead{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}
.mDagPeriodTitle{
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.mDagDate{
  font-size: 0.85rem;
  color: var(--text-muted, #6b7280);
  margin-top: 2px;
  text-transform: capitalize;
}
.mDagLegend{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted, #6b7280);
  margin-bottom: 14px;
}
.mDagGrid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.mDagCard{
  padding: 14px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 10px;
  background: var(--bg, #f9fafb);
  border: 1px solid var(--border, #e5e7eb);
  box-shadow: none;
}
.mDagCardTop{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 24px;
}
.mDagLabel{
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted, #6b7280);
  line-height: 1.3;
}
.mDagValue{
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin: 4px 0;
}
.mDagBadge{
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 7px;
  white-space: nowrap;
}
.mDagBadge--green{ background: #dcfce7; color: #15803d; }
.mDagBadge--amber{ background: #fef9c3; color: #92400e; }
.mDagBadge--red  { background: #fee2e2; color: #b91c1c; }
.mDagBarWrap{ width: 100%; }
.mDagBarTrack{
  position: relative;
  height: 6px;
  background: var(--border, #e5e7eb);
  border-radius: 4px;
  overflow: visible;
}
.mDagBarFill{
  position: absolute;
  left: 0; top: 0; bottom: 0;
  border-radius: 4px;
  transition: width .3s;
}
.mDagBarMark{
  position: absolute;
  top: -3px; bottom: -3px;
  width: 2px;
  background: #f59e0b;
  border-radius: 2px;
  transform: translateX(-50%);
}
.mDagTarget{
  font-size: 0.73rem;
  color: var(--text-muted, #6b7280);
  margin-top: 2px;
}
/* ===== end Mijn Dag ===== */
.perfUserCard{
  padding: 18px;
}
.perfUserHead{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.perfUserAvatar{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary, #3b82f6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.perfUserName{
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.perfHeader{
  display: grid;
  grid-template-columns: 1fr 60px 1fr 80px;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.perfRow{
  display: grid;
  grid-template-columns: 1fr 60px 1fr 80px;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.perfRow:last-child{ border-bottom: none; }
.perfRowLabel{ color: var(--text); font-weight: 500; }
.perfRowVal{
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.perfRowBar{ min-width: 0; }
.perfRowTarget{
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}
.perfTarget80 { color: #f59e0b; font-weight: 600; }
.perfTarget100{ color: #22c55e; font-weight: 600; }

.perfBar{
  display: flex;
  align-items: center;
  gap: 6px;
}
.perfBarTrack{
  flex: 1;
  height: 7px;
  background: var(--line);
  border-radius: 99px;
  position: relative;
  overflow: hidden;
}
.perfBarFill{
  height: 100%;
  border-radius: 99px;
  transition: width .3s ease;
}
.perfBarMark80{
  position: absolute;
  top: -1px;
  bottom: -1px;
  width: 2px;
  background: rgba(0,0,0,.18);
  border-radius: 2px;
}
.perfBarLabel{
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  min-width: 32px;
  text-align: right;
}


:root{
  --accent: #E65A2A;
  --accent-2: #ff8a4d;
  --sidebar: #4D3B42;
  --sidebar-2: #3d2f35;

  --bg: #f6f7f9;           /* licht hoofdvlak zoals pilot */
  --card: #ffffff;
  --line: #e8e8ea;

  --text: #2b2b2b;
  --muted: #6f6f74;

  --btn: #ffffff;
  --btn-line: #d9d9de;

  --danger: #e06262;
  --danger-soft: #ffe7e7;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --shadow-soft: 0 6px 18px rgba(0,0,0,.08);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: var(--bg);

  /* ✅ minder “bold” look in Chrome */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Layout --- */
.wrap{
  min-height:100vh;
  display:flex;
}

/* Sidebar */
.sidebar{
  width:270px;
  background: linear-gradient(180deg, var(--sidebar), var(--sidebar-2));
  color:#fff;
  padding:18px 14px;
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
}

.brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
  gap:8px;
}

.brandBox{
  flex:1;
  min-width:0;
  background:#fff;
  border-radius: 14px;
  padding:10px 12px;
  display:flex;
  justify-content:center;
  align-items:center;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.brandBox img{
  width:100%;
  max-width: 230px;          /* breder logo */
  height: 44px;
  object-fit: contain;
}

/* group title (strakker) */
.groupTitle{
  margin:12px 8px 4px 8px;   /* minder ruimte */
  font-size:12.5px;
  font-weight:600;
  color: rgba(255,255,255,.86);
}

.menu{
  display:flex;
  flex-direction:column;
  gap:1px;                  /* nog strakker */
  padding:0 4px;
}

.menu a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:7px 10px;         /* compacter */
  border-radius: 12px;
  color: rgba(255,255,255,.90);
  text-decoration:none;
  font-size:13px;
  font-weight:400;          /* ✅ submenus niet bold */
  line-height:1.15;
  opacity:.96;
}

.menu a span{ font-weight:inherit; }

.menu a:hover{
  background: rgba(255,255,255,.08);
}

.menu a.active{
  background: rgba(230,90,42,.20);
  box-shadow: inset 0 0 0 1px rgba(230,90,42,.30);
}

/* Main */
.main{
  flex:1;
  min-width:0;
  background: var(--bg);
  overflow-y: auto;
  height: 100vh;
}

/* Topbar met witte scheidingsbalk zoals oud */
.topbar{
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topLeft .title{
  font-size:16px;
  font-weight:600;
  color: var(--text);
}
.topLeft .sub{
  margin-top:2px;
  font-size:12px;
  color: var(--muted);
  font-weight:500;
}

.topRight{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Avatar(s) rechtsboven */
.avatars{
  display:flex;
  align-items:center;
  gap:6px;
}

.avatar{
  width:30px;
  height:30px;
  border-radius:999px;
  background:#fff;
  color: var(--sidebar);
  border:2px solid rgba(230,90,42,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
  font-size:12px;
}

.avatar.more{
  border-color: rgba(255,255,255,.35);
  color:#fff;
  background: rgba(255,255,255,.08);
}

/* Buttons ovaal, gelijk */
.btn{
  background: var(--btn);
  border:1px solid var(--btn-line);
  border-radius:999px;
  padding:8px 12px;
  font-size:13px;
  font-weight:600;
  color: var(--text);
  cursor:pointer;
}

.btn:hover{ box-shadow: var(--shadow-soft); }

.btnDanger{
  background: #fff;
  border:1px solid rgba(224,98,98,.55);
  color:#9c2f2f;
}

.btnDanger:hover{
  background: var(--danger-soft);
}

/* Content */
.content{
  padding:18px;
}

/* Cards */
.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.cardPad{ padding:14px; }

.grid4{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
}

@media (max-width: 1100px){
  .grid4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar{ position:relative; height:auto; }
}

@media (max-width: 700px){
  .grid4{ grid-template-columns: 1fr; }
  .sidebar{ width:240px; }
}

.kpiHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.kpiTitle{
  font-size:12px;
  letter-spacing:.02em;
  color: var(--muted);
  font-weight:600;
}

.kpiValue{
  margin-top:10px;
  font-size:22px;
  font-weight:600;
  color: var(--text);
}

.kpiSub{
  margin-top:6px;
  font-size:12px;
  color: var(--muted);
  font-weight:500;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:600;
  border:1px solid rgba(230,90,42,.25);
  background: rgba(230,90,42,.10);
  color: var(--accent);
  white-space:nowrap;
}

/* Login (licht, 1 kolom) */
.loginWrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background: radial-gradient(1200px 700px at 50% 0%, #ffffff 0%, var(--bg) 55%, #f2f3f6 100%);
}

.loginCard{
  width: min(520px, 100%);
  background:#fff;
  border:1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow:hidden;
}

.loginTop{
  padding:18px 18px 10px 18px;
  display:flex;
  align-items:center;
  justify-content:center; /* logo gecentreerd */
  background: #fff;
}

.loginTop .logoBox{
  width:100%;
  max-width:320px;
  background:#fff;
  border-radius:16px;
  padding:10px 14px;
  border:1px solid var(--line);
  display:flex;
  justify-content:center;
}

.loginTop img{
  width:100%;
  height:48px;
  object-fit:contain;
}

.loginBody{
  padding:16px 18px 16px 18px;
}

.h1{
  margin:0;
  font-size:18px;
  font-weight:600;
}
.p{
  margin:4px 0 0 0;
  color: var(--muted);
  font-size:13px;
  font-weight:500;
}

.field{
  margin-top:12px;
}

.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid #d9d9de;
  background:#f6f8ff;
  outline:none;
  font-size:13px;
  font-weight:500;
}

.input:focus{
  border-color: rgba(230,90,42,.45);
  box-shadow: 0 0 0 4px rgba(230,90,42,.12);
  background:#fff;
}

.loginActions{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.btnGreen{
  background: rgba(77, 201, 115, .18);
  border:1px solid rgba(77, 201, 115, .55);
  color:#1f6a38;
  padding:9px 14px;
}

.link{
  color: var(--accent);
  font-weight:600;
  font-size:13px;
  cursor:pointer;
  text-decoration:none;
}

.link:hover{ text-decoration:underline; }

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

/* Chips onder login (subtiel, klein) */
.chips{
  margin-top:14px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  opacity:.75; /* minder opvallend */
}

.chip{
  background:#f3f4f7;
  border:1px solid #e3e4ea;
  border-radius:999px;
  padding:6px 10px;
  font-size:11px;
  font-weight:600;
  color:#666;
}

/* Modal (logout / register / forgot / profiel) */
.modalOverlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:9999;
}

.modal{
  width:min(520px, 100%);
  background:#fff;
  border-radius:18px;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.modalHead{
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.modalTitle{
  font-weight:700;
  font-size:14px;
}

.modalBody{
  padding:14px 16px;
  color: var(--muted);
  font-size:13px;
  font-weight:500;
}

.modalActions{
  padding:14px 16px;
  border-top:1px solid var(--line);
  display:flex;
  gap:10px;
  justify-content:flex-end;
}

/* =========================================================
   DASHBOARD (nieuw - modern cards + kleur + trends/filters)
   ========================================================= */

.dashWrap{ display:flex; flex-direction:column; gap:14px; }

.dashGrid{ display:grid; gap:12px; }
.dashGrid--4{ grid-template-columns: repeat(4, minmax(0,1fr)); }
.dashGrid--5{ grid-template-columns: repeat(5, minmax(0,1fr)); }
.dashGrid--6{ grid-template-columns: repeat(6, minmax(0,1fr)); }
.dashGrid--3{ grid-template-columns: repeat(3, minmax(0,1fr)); }

@media (max-width: 1200px){
  .dashGrid--6{ grid-template-columns: repeat(3, minmax(0,1fr)); }
  .dashGrid--5{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 980px){
  .dashGrid--4{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashGrid--5{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashGrid--3{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .dashGrid--4{ grid-template-columns: 1fr; }
  .dashGrid--6{ grid-template-columns: 1fr; }
}

.dashCard{
  position:relative;
  overflow:hidden;
}
.dashCard--kpi{
  padding:14px 14px 12px 14px;
}
.dashCard--kpi:before{
  content:"";
  position:absolute;
  left:0; top:0; right:0;
  height:4px;
  background: linear-gradient(90deg, rgba(230,90,42,.55), rgba(255,138,77,.35));
}

.dashCardHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.dashCardTitle{
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color: var(--muted);
  font-weight:600;
}

.dashValue{
  margin-top:10px;
  font-size:26px;
  font-weight:600;
  color: var(--text);
  line-height:1.05;
}

.dashSubRow{
  margin-top:8px;
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
}
.dashSub{
  font-size:12px;
  color: var(--muted);
  font-weight:500;
}
.dashSub--right{
  color:#5f6168;
}

.dashCard--mini{ padding:12px; }
.dashMiniHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.dashMiniTitle{
  font-size:12px;
  color:#6b6e76;
  font-weight:600;
}
.dashMiniValue{
  margin-top:10px;
  font-size:20px;
  font-weight:600;
}
.dashMiniSub{
  margin-top:6px;
  font-size:11px;
  color: var(--muted);
  font-weight:500;
}

.dashPill{ border:1px solid transparent; }
.dashPill--green{
  background: rgba(34,197,94,.10);
  color: #15803d;
  border-color: rgba(34,197,94,.22);
}
.dashPill--orange{
  background: rgba(230,90,42,.10);
  color: var(--accent);
  border-color: rgba(230,90,42,.22);
}
.dashPill--indigo{
  background: rgba(99,102,241,.10);
  color: #4f46e5;
  border-color: rgba(99,102,241,.22);
}
.dashPill--red{
  background: rgba(239,68,68,.10);
  color: #dc2626;
  border-color: rgba(239,68,68,.22);
}
.dashPill--plum{
  background: rgba(77,59,66,.10);
  color: #4D3B42;
  border-color: rgba(77,59,66,.18);
}

.dashFocus{
  border:1px solid rgba(230,90,42,.25);
  box-shadow: var(--shadow-soft);
}
.dashFocusHead{
  padding:14px 14px 10px 14px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid rgba(232,232,234,.8);
}
.dashFocusTitle{
  font-size:14px;
  font-weight:700;
}
.dashFocusSub{
  margin-top:3px;
  font-size:12px;
  color: var(--muted);
  font-weight:500;
}

.dashFocusStats{
  padding:12px 14px 0 14px;
  display:grid;
  gap:10px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width: 980px){
  .dashFocusStats{ grid-template-columns: 1fr; }
}

.dashFocusStat{
  border-radius:14px;
  border:1px solid rgba(0,0,0,.06);
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.dashFocusStatLbl{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:700;
  opacity:.85;
}
.dashFocusStatVal{
  font-size:22px;
  font-weight:700;
}
.dashFocusStat--red{
  background: rgba(239,68,68,.07);
  border-color: rgba(239,68,68,.16);
}
.dashFocusStat--amber{
  background: rgba(245,158,11,.08);
  border-color: rgba(245,158,11,.16);
}
.dashFocusStat--green{
  background: rgba(34,197,94,.08);
  border-color: rgba(34,197,94,.16);
}

.dashFocusBlock{
  padding:12px 14px 14px 14px;
}
.dashBlockTitle{
  font-size:13px;
  font-weight:700;
  margin:8px 0 8px 0;
}

.dashTableWrap{
  width:100%;
  overflow:auto;
  border-radius:14px;
  border:1px solid rgba(232,232,234,.9);
  background:#fff;
}

.dashTable{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:12px;
}
.dashTable thead th{
  position:sticky;
  top:0;
  background:#fafafb;
  text-align:left;
  padding:10px 12px;
  border-bottom:1px solid rgba(232,232,234,.9);
  color:#6b6e76;
  font-weight:700;
}
.dashTable tbody td{
  padding:9px 12px;
  border-bottom:1px solid rgba(232,232,234,.7);
}
.dashTable tbody tr:last-child td{ border-bottom:none; }

.dashRight{ text-align:right; }

.dashEmpty{
  padding:12px;
  font-size:12px;
  color: var(--muted);
}

.dashCard--list{ padding:14px; }
.dashListHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.dashListTitle{
  font-size:13px;
  font-weight:700;
}
.dashListSub{
  font-size:12px;
  color: var(--muted);
  font-weight:500;
  margin-top:2px;
}
.dashListStats{
  text-align:right;
  font-size:11px;
  color:#6b6e76;
  line-height:1.35;
}
.dashMuted{ color: var(--muted); }

.dashList{ margin:0; padding:0; list-style:none; }
.dashListItem{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid rgba(232,232,234,.8);
}
.dashListItem:last-child{ border-bottom:none; }
.dashLIName{ font-weight:600; }
.dashLIMeta{ font-size:11px; color: var(--muted); font-weight:500; margin-top:2px; }
.dashLIRight{ font-size:11px; color:#7a7d85; white-space:nowrap; padding-left:10px; }

.dashTrends{ padding:14px; }
.dashTrendsHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.dashTrendsTitle{ font-size:14px; font-weight:800; }
.dashTrendsSub{ margin-top:2px; font-size:12px; color: var(--muted); font-weight:500; }

.dashTrendsBody{
  display:grid;
  grid-template-columns: 1fr 280px;
  gap:12px;
}
@media (max-width: 980px){
  .dashTrendsBody{ grid-template-columns: 1fr; }
}

.dashTrendsCharts{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 980px){
  .dashTrendsCharts{ grid-template-columns: 1fr; }
}

.dashChartCard{
  border:1px solid rgba(232,232,234,.9);
  border-radius:14px;
  padding:12px;
  background:#fff;
}
.dashChartTitle{ font-size:12px; font-weight:800; color:#4b4f57; }
.dashChartMeta{ margin-top:2px; font-size:11px; color: var(--muted); font-weight:500; }

.dashChartSvg{
  margin-top:10px;
  width:100%;
  height:150px;
  display:block;
}

.dashChartBg{ fill: rgba(246,247,249,.55); }
.dashBar{ fill: rgba(230,90,42,.42); }
.dashLine{ stroke: rgba(230,90,42,.75); stroke-width:3; }
.dashDot{ fill: rgba(230,90,42,.85); }

.dashChartAxis{
  display:flex;
  justify-content:space-between;
  gap:6px;
  margin-top:6px;
  font-size:10px;
  color:#7a7d85;
}
.dashChartAxis span{ flex:1; text-align:center; }

.dashTrendsFilters{
  border:1px solid rgba(232,232,234,.9);
  border-radius:14px;
  padding:12px;
  background:#fff;
  height:fit-content;
}
.dashFilterTitle{ font-size:12px; font-weight:800; margin-bottom:8px; color:#4b4f57; }
.dashFilterGroup{ margin-top:10px; }
.dashLabel{ display:block; font-size:11px; color: var(--muted); font-weight:600; margin-bottom:6px; }
.dashSelect{
  width:100%;
  border:1px solid rgba(217,217,222,.9);
  border-radius:12px;
  padding:9px 10px;
  background:#fff;
  font-size:12px;
  font-weight:600;
  color:#2b2b2b;
  outline:none;
}
.dashSelect:focus{
  border-color: rgba(230,90,42,.45);
  box-shadow: 0 0 0 4px rgba(230,90,42,.10);
}
.dashSelect--small{
  width:auto;
  padding:8px 10px;
}

.dashFilterHint{
  margin-top:10px;
  font-size:11px;
  color: var(--muted);
  font-weight:500;
  line-height:1.35;
}
.dashUpdated{
  margin-top:10px;
  font-size:11px;
  color:#6b6e76;
  font-weight:500;
}

.dashKanban{ padding:14px; }
.dashKanbanHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.dashKanbanTitle{ font-size:14px; font-weight:800; }
.dashKanbanSub{ margin-top:2px; font-size:12px; color: var(--muted); font-weight:500; }

.dashKanbanFilter{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:600;
}

.dashSkeleton{
  font-size:13px;
  color: var(--muted);
  font-weight:600;
}

.dashLoading{ opacity:.9; }

/* =========================
   TOPBAR DROPDOWNS (bel + user)
   ========================= */

/* topbar is sticky (regel 435), NIET overriden */

/* icon button basis */
.btn.iconBtn{
  width:38px;
  height:38px;
  padding:0;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  font-size:18px;
}

/* wrappers */
.topDrop{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

/* dropdown menu (algemeen) */
.dropMenu{
  position:absolute;
  top: calc(100% + 10px);
  right: 0;
  /* min-width weg hier óf alleen voor notif overschrijven (zie hieronder) */
  max-width: min(92vw, 420px);
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
  padding:10px;
  z-index:9999;
  box-sizing:border-box;
}

/* ✅ NOTIF: breedte beperken */
#notifMenu.dropMenu{
  width: 380px;
  max-width: min(92vw, 420px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  min-width: 0;
  z-index: 1001;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) transparent;
}

#notifMenu.dropMenu::-webkit-scrollbar {
  width: 6px;
}
#notifMenu.dropMenu::-webkit-scrollbar-track {
  background: transparent;
}
#notifMenu.dropMenu::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

/* tabs bepalen zich binnen de bestaande dropdownbreedte */
#notifMenu .dropTabs{
  display:flex;
  width:100%;
  gap:8px;
  justify-content:space-between;
  margin-bottom:10px;
}

/* 3 pillen even breed, netjes passend */
#notifMenu .dropTab{
  flex: 1 1 0;
  text-align:center;
  white-space:nowrap;
  padding:6px 8px;
  font-size:12px;
  line-height:1.1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
}

/* Tab badge — kleine rode pil in de tab */
.tabBadge {
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:10px;
  font-weight:800;
  line-height:1;
}
.tabBadge[hidden] { display:none !important; }


/* panes volgen exact de dropdown breedte */
#notifMenu .dropPane{
  width:100%;
  box-sizing:border-box;
}

/* items mogen niet oprekken */
#notifMenu .dropItem{
  width:100%;
  box-sizing:border-box;
}

/* ✅ notif dropdown: zelfde aanpak als webchat - relatief aan sticky topbar */
#notifWrap .dropMenu{
  right: 0;
  left: auto;
  transform: none;
  max-height: 70vh;
  overflow-y: auto;
  z-index: 1001;
}
#notifWrap{
  position: relative;
}

/* tabs (pillen) compacter zodat ze precies passen */
.dropTabs{
  display:inline-flex;
  gap:6px;
  margin-bottom:10px;
  justify-content:center;
  width:auto;
}

.dropTab{
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  border-radius:999px;
  padding:5px 9px;         /* ✅ kleiner */
  cursor:pointer;
  font-weight:600;
  font-size:11px;          /* ✅ kleiner */
  line-height:1.1;
  color: var(--text);
  white-space:nowrap;
}

.dropTab:hover{ background:#fafafa; }

.dropTab.isActive{
  color: var(--accent);
  border-color: rgba(230,90,42,.45);
  background: rgba(230,90,42,.06);
}

/* panes */
.dropPane{ display:none; }
.dropPane.isActive{ display:block; }

/* user actions */
.dropAction{
  width:100%;
  text-align:left;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.06);
  background:#fff;
  cursor:pointer;
  font-weight:700;
  margin-bottom:8px;
}

.dropAction:hover{ background:#fafafa; }
.dropAction.danger{ border-color: rgba(255,0,0,.18); color:#b12b2b; }

.caret{ opacity:.7; margin-left:6px; }

/* =========================
   BEL (notif)
   ========================= */

.topbar .btn.iconBtn.notifBtn{
  width:30px;
  height:30px;
  padding:0;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  position:relative; /* ✅ badge anchor */
}

.topbar .notifIco{
  width:22px;
  height:22px;
  display:block;
}

/* badge */
.notifBadge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background: var(--accent);
  color:#fff;
  font-size:11px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* =========================
   NOTIF LIST ITEMS (alle 3 tabs)
   ========================= */

/* ✅ 1 melding = klikbare rij, zonder dropdown breder te maken */
#notifMenu .dropItem{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.06);
  border-radius:12px;
  margin-bottom:8px;
  cursor:pointer;
  user-select:none;
  box-sizing:border-box;
}

#notifMenu .dropItem:hover{ background:#fafafa; }

#notifMenu .dropItem:focus{
  outline:none;
  box-shadow: 0 0 0 4px rgba(230,90,42,.12);
  border-color: rgba(230,90,42,.25);
}

/* links (titel + sub) */
#notifMenu .nLeft{
  min-width:0;     /* ✅ essentieel voor ellipsis in flex */
  flex:1 1 auto;
}

#notifMenu .nTitle{
  font-weight:700;
  font-size:12px;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

#notifMenu .nSub{
  margin-top:3px;
  font-size:11px;
  opacity:.72;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Actor info in dropdown */
#notifMenu .nActor {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  padding-left: 4px;
  border-left: 2px solid var(--primary, #e65a2a);
}

/* Meer meldingen knop */
.notif-more {
  cursor: pointer;
  transition: background 0.2s;
}
.notif-more:hover {
  background: #f3f4f6 !important;
}

/* tijd rechts: stabiel + scheiding */
#notifMenu .nTime{
  flex:0 0 auto;
  font-size:11px;
  font-weight:700;
  opacity:.75;
  white-space:nowrap;
  padding-left:12px;
  border-left:1px solid rgba(0,0,0,.08);
}

/* Notificatie footer met "Meer" knop */
.notifFooter{
  padding:8px 12px;
  border-top:1px solid rgba(0,0,0,.08);
  display:flex;
  gap:8px;
  justify-content:space-between;
  align-items:center;
}

.notifMoreBtn{
  background:transparent;
  border:none;
  color:var(--primary, #e65a2a);
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  padding:6px 12px;
  border-radius:8px;
  transition:background .15s;
}
.notifMoreBtn:hover{ background:rgba(230,90,42,.08); }

.notifMarkAllBtn{
  background:transparent;
  border:1px solid #e5e7eb;
  color:#6b7280;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  padding:5px 12px;
  border-radius:8px;
  transition:background .15s, color .15s;
  white-space:nowrap;
}
.notifMarkAllBtn:hover{ background:#f3f4f6; color:#374151; }

/* Loading en empty states */
.notif-loading,
.notif-empty{
  opacity:.6;
  font-style:italic;
}

/* Actor info (voor globale meldingen) */
#notifMenu .nActor{
  font-size:11px;
  color:var(--muted);
  margin-top:2px;
}

/* =========================
   COLLAPSIBLE SIDEBAR
   ========================= */

.wrap.sidebarCollapsed .sidebar{
  width: 0;
  padding: 0;
  overflow: hidden;
  min-width: 0;
  transition: width 0.25s ease;
}

.sidebar{
  transition: width 0.25s ease;
}

.sidebar .groupTitle{
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}

.sidebar .groupTitle:hover{
  background: rgba(255,255,255,.07);
}

.sidebar .groupArrow{
  font-size: 10px;
  opacity: .7;
  flex: 0 0 auto;
  transition: transform 0.2s;
}

.sidebar .groupTitle.groupClosed .groupArrow{
  transform: rotate(0deg);
}

.menu.menuClosed{
  display: none;
}

/* Hamburger button — nu in de sidebar */
.hamburgerBtn{
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.15);
}
.hamburgerBtn:hover{
  background: rgba(255,255,255,.28);
  color: #fff;
}

/* Topbar hamburger: alleen zichtbaar als sidebar ingeklapt */
.hamburgerBtnTop{
  width: 34px;
  height: 34px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--text);
  background: var(--bg-soft, #f3f4f6);
  border: 1px solid var(--border);
  margin-right: 8px;
}
.hamburgerBtnTop:hover{ background: var(--line); }
.wrap.sidebarCollapsed .hamburgerBtnTop{ display: inline-flex; }

/* Gebruikersstatus knop */
.statusBtn{
  display:flex; align-items:center; gap:6px;
  padding:5px 10px; border-radius:20px;
  font-size:13px; font-weight:600; color:var(--text);
  background:var(--bg); border:1px solid var(--border);
  cursor:pointer; transition:background .15s;
  white-space:nowrap;
}
.statusBtn:hover{ background:var(--bg-soft,#f3f4f6); }
.statusDot{
  width:9px; height:9px; border-radius:50%; flex-shrink:0;
  box-shadow:0 0 0 2px rgba(0,0,0,.08);
}
.statusLabel{ max-width:120px; overflow:hidden; text-overflow:ellipsis; }
.statusBtn .caret{ font-size:10px; color:var(--muted); }

/* Status dropdown menu */
.statusDropMenu{
  min-width: 200px;
  max-width: 220px;
  padding: 8px;
}
.statusMenuHeader{
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  padding: 4px 8px 8px;
}
.statusOptList{
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.statusOpt{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: background .12s;
  white-space: nowrap;
}
.statusOpt:hover{ background: var(--bg-soft, #f3f4f6); }
.statusOpt.active{ background: var(--bg-soft, #f3f4f6); font-weight: 700; }
.dashStatusDot{
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
  flex-shrink: 0;
}
.sOptDot{
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(0,0,0,.08);
}

/* User button in topbar */
.userBtn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
}

.userAvatar{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sidebar);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.userNameText{
  font-weight: 700;
  font-size: 13px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 600px){
  .userNameText{ display: none; }
}

/* =========================
   WEBCHAT DROPDOWN
   ========================= */

.webchatDropMenu{
  min-width: 340px;
  max-width: min(92vw, 400px);
  padding: 0;
  overflow: hidden;
}

#webchatWrap .dropMenu{
  right: 0;
  left: auto;
  transform: none;
}

/* =========================
   INTERNAL RECRUITER CHAT
   ========================= */

.iChat{
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9997;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.iChatBtn{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(230,90,42,.40);
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}

.iChatBtn:hover{
  transform: scale(1.07);
  box-shadow: 0 8px 28px rgba(230,90,42,.50);
}

.iChatBadge{
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.iChatPanel{
  width: 320px;
  max-width: calc(100vw - 48px);
  background: var(--sidebar);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.iChatPanel[hidden]{ display: none !important; }

.iChatHead{
  padding: 12px 14px;
  background: var(--sidebar-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
}

.iChatClose{
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.iChatClose:hover{ background: rgba(255,255,255,.2); }

.iChatMessages{
  flex: 1;
  min-height: 240px;
  max-height: 340px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.iChatEmpty{
  color: rgba(255,255,255,.55);
  font-size: 12px;
  text-align: center;
  padding: 20px;
  margin: auto;
}

.iChatMsg{
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.iChatMsgMe{
  flex-direction: row-reverse;
}

.iChatAvatar{
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.iChatBubble{
  max-width: 220px;
  background: rgba(255,255,255,.12);
  border-radius: 12px 12px 12px 4px;
  padding: 7px 10px;
  color: #fff;
}

.iChatMsgMe .iChatBubble{
  background: rgba(230,90,42,.75);
  border-radius: 12px 12px 4px 12px;
}

.iChatSender{
  font-size: 10px;
  font-weight: 800;
  opacity: .75;
  margin-bottom: 3px;
}

.iChatText{
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.iChatRef{
  margin-top: 4px;
  font-size: 10px;
  background: rgba(255,255,255,.15);
  border-radius: 6px;
  padding: 2px 6px;
  cursor: pointer;
  display: inline-block;
}
.iChatRef:hover{ background: rgba(255,255,255,.25); }

.iChatTime{
  font-size: 10px;
  opacity: .55;
  margin-top: 3px;
  text-align: right;
}

.iChatInputRow{
  display: flex;
  gap: 6px;
  padding: 10px;
  background: var(--sidebar-2);
  border-top: 1px solid rgba(255,255,255,.08);
}

.iChatInput{
  flex: 1;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 8px 10px;
  color: #fff;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}
.iChatInput::placeholder{ color: rgba(255,255,255,.45); }
.iChatInput:focus{ border-color: rgba(230,90,42,.6); background: rgba(255,255,255,.13); }

.iChatSendBtn{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.iChatSendBtn:hover{ background: var(--accent-2); }

/* =========================
   MODULE PAGE LAYOUT
   ========================= */

.modWrap{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Page-level tab navigation */
.modTabs{
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}
.modTabs::-webkit-scrollbar{ display: none; }

.modTab{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.09);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.modTab:hover{ background: #f4f5f8; color: var(--text); }
.modTab.modTabActive{
  background: rgba(230,90,42,.10);
  border-color: rgba(230,90,42,.35);
  color: var(--accent);
}

.modTabCount{
  background: rgba(0,0,0,.08);
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 800;
}
.modTabActive .modTabCount{
  background: rgba(230,90,42,.15);
  color: var(--accent);
}

/* Toolbar */
.modToolbar{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.modSearch{
  width: 100%;
  max-width: 260px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--btn-line);
  background: var(--bg);
  outline: none;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text);
}
.modSearch:focus{
  border-color: rgba(230,90,42,.45);
  box-shadow: 0 0 0 3px rgba(230,90,42,.10);
  background: #fff;
}

.modSelect{
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--btn-line);
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  outline: none;
  cursor: pointer;
  font-family: inherit;
}
.modSelect:focus{
  border-color: rgba(230,90,42,.45);
  box-shadow: 0 0 0 3px rgba(230,90,42,.10);
}

.modActions{
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.btnPrimary{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(230,90,42,.25);
}
.btnPrimary:hover{ filter: brightness(1.05); }

.btnSecondary{
  background: #fff;
  border: 1px solid var(--btn-line);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-family: inherit;
}
.btnSecondary:hover{ background: var(--bg); }

/* Status badges in tables */
.statusBadge{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.statusBadge:before{
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
}
.statusGreen{ background: rgba(34,197,94,.12); color: #15803d; }
.statusOrange{ background: rgba(245,158,11,.12); color: #92400e; }
.statusRed{ background: rgba(239,68,68,.12); color: #dc2626; }
.statusBlue{ background: rgba(59,130,246,.12); color: #1d4ed8; }
.statusGray{ background: rgba(107,114,128,.12); color: #374151; }
.statusPurple{ background: rgba(139,92,246,.12); color: #6d28d9; }

/* CRM specific */
.crmCard{
  display: flex;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.1s;
}
.crmCard:hover{ background: var(--bg); }

.crmAvatar{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sidebar);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.crmInfo{ flex: 1; min-width: 0; }
.crmName{ font-weight: 700; font-size: 14px; }
.crmMeta{ font-size: 12px; color: var(--muted); margin-top: 3px; }
.crmRight{ font-size: 11px; color: var(--muted); text-align: right; white-space: nowrap; flex-shrink: 0; }

/* Daily tasks (dashboard top) */
.dailyTasksWrap{
  background: linear-gradient(135deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
  border-radius: var(--radius);
  padding: 18px;
  color: #fff;
}
.dailyTasksTitle{
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}
.dailyTasksSub{
  font-size: 12px;
  opacity: .75;
  margin-bottom: 14px;
}
.dailyTasksGrid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.dailyTask{
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: #fff;
  display: block;
}
.dailyTask:hover{ background: rgba(255,255,255,.17); }
.dailyTaskCount{
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}
.dailyTaskLabel{
  font-size: 12px;
  opacity: .8;
  margin-top: 4px;
  font-weight: 600;
}
.dailyTaskUrgent{
  border-color: rgba(230,90,42,.6);
  background: rgba(230,90,42,.15);
}
.dailyTaskUrgent .dailyTaskCount{ color: #ffb38a; }

/* Modal large */
.modalLg{ width: min(780px, 100%); }
.modalXl{ width: min(1000px, 100%); }

/* Form grid in modals */
.formGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.formGrid--3{ grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 600px){
  .formGrid, .formGrid--3{ grid-template-columns: 1fr; }
}
.formCol2{ grid-column: span 2; }

.formGroup{ display: flex; flex-direction: column; gap: 4px; }
.formLabel{ font-size: 12px; font-weight: 700; color: var(--muted); }
.formInput{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--btn-line);
  background: var(--bg);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text);
  outline: none;
  width: 100%;
}
.formInput:focus{
  border-color: rgba(230,90,42,.45);
  box-shadow: 0 0 0 3px rgba(230,90,42,.10);
  background: #fff;
}
textarea.formInput{ resize: vertical; min-height: 80px; }
select.formInput{ cursor: pointer; }

/* Kanban columns */
.kanbanWrap{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.kanbanCol{
  flex: 0 0 240px;
  background: var(--bg);
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.kanbanColHead{
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 13px;
}
.kanbanColBody{
  padding: 8px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kanbanItem{
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  font-size: 13px;
}
.kanbanItem:hover{ border-color: rgba(230,90,42,.35); }
.kanbanItemTitle{ font-weight: 700; margin-bottom: 4px; }
.kanbanItemMeta{ font-size: 11px; color: var(--muted); }
.kanbanItem.dragging{ opacity: .4; cursor: grabbing; }
.kanbanColBody.dragOver{
  background: rgba(99,102,241,.10);
  outline: 2px dashed #6366f1;
  outline-offset: -2px;
  border-radius: 8px;
}

/* Section header inside pages */
.sectionHeader{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.sectionTitle{ font-size: 14px; font-weight: 800; }
.sectionSub{ font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Empty state */
.emptyState{
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}
.emptyStateIcon{ font-size: 40px; margin-bottom: 10px; opacity: .4; }
.emptyStateTitle{ font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.emptyStateSub{ font-size: 13px; opacity: .8; }

/* Loading spinner */
.spinner{
  width: 32px;
  height: 32px;
  border: 3px solid rgba(230,90,42,.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

/* Tag chips */
.tagList{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag{
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(230,90,42,.1);
  border: 1px solid rgba(230,90,42,.2);
  color: var(--accent);
}

/* Pagination */
.pagination{
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.pageBtn{
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--btn-line);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-family: inherit;
}
.pageBtn:hover{ background: var(--bg); }
.pageBtn.pageCurrent{ background: rgba(230,90,42,.1); border-color: rgba(230,90,42,.35); color: var(--accent); }

/* Stats row colors */
.statCard--blue{ border-top: 3px solid #3b82f6; }
.statCard--green{ border-top: 3px solid #22c55e; }
.statCard--orange{ border-top: 3px solid var(--accent); }
.statCard--purple{ border-top: 3px solid #8b5cf6; }
.statCard--red{ border-top: 3px solid #ef4444; }
.statCard--gray{ border-top: 3px solid #6b7280; }

/* Action row in tables */
.tableActions{
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}
.tableActionBtn{
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--btn-line);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  font-family: inherit;
}
.tableActionBtn:hover{ background: var(--bg); color: var(--text); }
.tableActionBtn.danger:hover{ background: var(--danger-soft); color: var(--danger); border-color: rgba(224,98,98,.35); }
.actionIcon{ width:16px; height:16px; object-fit:contain; display:block; opacity:.75; }
.tableActionBtn:hover .actionIcon{ opacity:1; }

/* Detail panel */
.detailPanel{
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 14px;
}
@media (max-width: 900px){
  .detailPanel{ grid-template-columns: 1fr; }
}
.detailMain{ display: flex; flex-direction: column; gap: 14px; }
.detailSide{ display: flex; flex-direction: column; gap: 14px; }

/* Timeline */
.timeline{ display: flex; flex-direction: column; gap: 0; }
.timelineItem{
  display: flex;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}
.timelineItem:not(:last-child):after{
  content: "";
  position: absolute;
  left: 14px;
  top: 36px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.timelineDot{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(230,90,42,.12);
  border: 2px solid rgba(230,90,42,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--accent);
  font-weight: 800;
}
.timelineBody{ flex: 1; min-width: 0; padding-top: 2px; }
.timelineTitle{ font-size: 13px; font-weight: 700; }
.timelineMeta{ font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Score/rating */
.scoreBar{
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.scoreBarFill{
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.5s ease;
}

/* Print helper */
@media print{
  .sidebar, .topbar, .iChat, .hamburgerBtn{ display: none !important; }
  .wrap{ display: block !important; }
  .main{ padding: 0 !important; }
  .content{ padding: 0 !important; }
}

/* Ensure [hidden] always hides */
.dropMenu[hidden],
.iChatPanel[hidden],
[hidden].dropMenu{ display: none !important; }

/* iChat recruiter selection bar */
.iChatRecBtn{
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  color: rgba(255,255,255,.8);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.15s;
}
.iChatRecBtn:hover{ background: rgba(255,255,255,.18); }
.iChatRecActive{
  background: rgba(230,90,42,.6) !important;
  border-color: rgba(230,90,42,.8) !important;
  color: #fff !important;
}

/* ============================================================
   RESPONSIVE — TABLET (≤1024px) + MOBILE (≤640px)
   ============================================================ */

/* ---- Tablet: 640–1024px ---- */
@media (max-width: 1024px){
  /* Sidebar: verberg op tablet, toon als overlay */
  .sidebar{
    position: fixed;
    left: 0; top: 0;
    height: 100vh;
    z-index: 1100; /* Hoger dan topbar (1000) */
    transform: translateX(0);
    transition: transform .25s ease;
    overflow-y: auto;
    width: 260px !important;
  }
  .wrap.sidebarCollapsed .sidebar{
    transform: translateX(-100%);
    width: 260px !important;
  }
  /* Overlay achtergrond wanneer sidebar open */
  .wrap:not(.sidebarCollapsed) .sidebarBackdrop{
    display: block;
  }
  .sidebarBackdrop{
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1099; /* Net onder sidebar */
  }
  /* Main neemt volledige breedte */
  .main{ margin-left: 0 !important; width: 100% !important; }
  /* Hamburger altijd zichtbaar in topbar */
  .hamburgerBtnTop{ display: inline-flex !important; }
  .hamburgerBtn{ display: none !important; }

  /* Topbar */
  .topbar{ padding: 10px 14px; z-index: 1000; }
  .topLeft .title{ font-size: 15px; }
  .topRight{ gap: 6px; }

  /* Content padding */
  .content{ padding: 14px !important; }

  /* KPI / dash grids: 2 kolommen */
  .dashGrid,
  .grid4{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  /* Mijn Dag mini-kaarten: 3 per rij op tablet */
  .mDagGrid{ grid-template-columns: repeat(3, 1fr) !important; }

  /* Kanban scrollen */
  .kanbanBoard{ overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Tabellen: horizontaal scrollen */
  .tableWrap,
  .uiTableWrap,
  .listTableWrap,
  .modWrap table,
  .tableScroll{ overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .tableWrap table,
  .uiTableWrap table,
  .listTableWrap table,
  .modWrap table{ min-width: 600px; }

  /* Rotterdam board */
  .rotterdamTable{ overflow-x: auto; }

  /* Perf grid */
  .perfGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  /* Status dropdown in topbar */
  .statusBtn span.statusLabel{ display: none; }
}

/* ---- Mobile: ≤640px ---- */
@media (max-width: 640px){

  /* Topbar compacter */
  .topbar{ padding: 8px 12px; gap: 8px; z-index: 1000; }
  .topLeft{ gap: 8px; }
  .topLeft .sub{ display: none; }
  .topLeft .title{ font-size: 14px; }

  /* Verberg minder kritieke topbar items op kleine schermen */
  .topRight .avatars{ display: none !important; }

  /* Content */
  .content{ padding: 10px !important; }

  /* KPI grids: 2 kolommen op mobiel */
  .dashGrid,
  .grid4{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }

  /* Mijn Dag: 2 per rij op mobiel */
  .mDagGrid{ grid-template-columns: repeat(2, 1fr) !important; }
  .mDagValue{ font-size: 1.5rem; }

  /* Kaarten */
  .card{ padding: 12px !important; }
  .dashCard{ padding: 12px !important; }

  /* Tabellen: scroll + compacte tekst */
  .tableWrap,
  .uiTableWrap,
  .uiListWrap,
  .listWrap,
  .listTableWrap,
  .modWrap table,
  .tableScroll{ overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .tableWrap table,
  .uiTableWrap table,
  .uiListWrap table,
  .listWrap table,
  .listTableWrap table,
  .modWrap table{ min-width: 500px; font-size: 12px; }
  th, td{ padding: 6px 8px !important; white-space: nowrap; }

  /* Filters boven tabel: stapel op mobiel */
  .listTop,
  .filterBar,
  .listFilters{ flex-direction: column !important; align-items: stretch !important; gap: 8px !important; }
  .listTop input,
  .listTop select,
  .filterBar input,
  .filterBar select{ width: 100% !important; }

  /* Modale dialogen: volledige breedte */
  .modal,
  .blogModal,
  .agendaModal,
  .formModal{ width: 100% !important; max-width: 100% !important; margin: 0 !important;
    border-radius: 0 !important; min-height: 100dvh; }
  .modalOverlay,
  .blogModalOverlay{ align-items: flex-end !important; padding: 0 !important; }

  /* Mijn dag sectie header: stapel */
  .mDagHead{ flex-direction: column !important; gap: 8px !important; }
  .perfPeriodSwitch{ width: 100%; justify-content: stretch; }
  .perfPeriodBtn{ flex: 1; }

  /* Kanban scrollen */
  .kanbanBoard{ overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .kanbanCol{ min-width: 260px; }

  /* Rotterdam tabel */
  .rotterdamTable{ overflow-x: auto; font-size: 12px; }

  /* Perf grid */
  .perfGrid{ grid-template-columns: 1fr !important; }

  /* Agenda views */
  .agendaWeekGrid,
  .agendaDayGrid{ overflow-x: auto; min-width: 480px; }
  .agendaWeekWrap,
  .agendaDayWrap{ overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Status knop tekst verbergen op mini schermen */
  .statusBtn .statusLabel{ max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Blog/vacature overzicht grids */
  .blogGrid,
  .vacatureGrid{ grid-template-columns: 1fr !important; }

  /* Sidebar op mobiel: smaller */
  .sidebar{ width: 240px !important; }
  
  /* Zorg dat content nooit breder is dan scherm */
  .wrap{ max-width: 100vw; overflow-x: hidden; }
  .main{ max-width: 100vw; }

  /* Blog/vacature overzicht grids */
  .blogGrid,
  .vacGrid{ grid-template-columns: 1fr !important; }

  /* Buttons kleiner */
  .btn{ font-size: 12px; padding: 6px 10px; }
  .btn.iconBtn{ width: 32px; height: 32px; }

  /* Mobiele dropdown fixes */
  .dropMenu{
    position: fixed !important;
    top: 60px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100vh - 80px) !important;
  }
  
  #notifMenu.dropMenu,
  #aiMatchesMenu.dropMenu,
  #webchatMenu.dropMenu,
  #userMenu.dropMenu,
  #statusMenu.dropMenu{
    width: auto !important;
    min-width: 0 !important;
    left: 10px !important;
    right: 10px !important;
  }

  /* Topbar compact op mobiel */
  .topbar{ padding: 8px 10px; }
  .topbarLeft{ gap: 8px; }
  .topbarRight{ gap: 6px; }
  
  /* Verberg tekst in topbar, toon alleen iconen */
  .topbar .btn span:not(.notifBadge){ display: none; }
}

/* ---- Sidebar backdrop JS hook ---- */
/* Voeg .sidebarBackdrop toe via JS als het nog niet bestaat */