:root {
  color-scheme: light;
  /* Huisstijlkleuren mobielconnect.nl (overgenomen uit het logo en de site): */
  --mc-blue: #0f438c;       /* "MOBIEL" in het logo, primaire knoppen op de site */
  --mc-blue-dark: #0a2f61;
  --mc-lightblue: #6ea2d1;  /* "CONNECT" in het logo, categorie-vlakken op de site */
  --mc-accent: #e31e30;     /* rood accent-vlak + tagline in het logo */
  --bg: #f4f6fa;
  --card-bg: #ffffff;
  --border: #e3e7ee;
  --text: #1c2430;
  --text-muted: #6b7686;
  --green: #1a9e5c;
  --orange: #e08a1e;
  --red: #d64545;
  --grey: #8a93a1;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: white;
  border-right: 1px solid var(--border);
  border-top: 3px solid var(--mc-accent);
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
}
.sidebar-logo {
  width: 100%;
  height: auto;
  padding: 2px 8px 10px;
}
.sidebar-sub {
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 8px 18px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 2px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.nav-item:hover { background: #f2f4f8; color: var(--text); }
.nav-item.active { background: linear-gradient(100deg, var(--mc-blue-dark), var(--mc-blue) 65%, var(--mc-lightblue)); color: white; }
.nav-item .nav-badge {
  margin-left: auto;
  background: #eef1f6;
  color: var(--text-muted);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}
.nav-item.active .nav-badge { background: rgba(255,255,255,0.25); color: white; }
.nav-item.warn .nav-badge { background: var(--red); color: white; }
.sidebar-footer { margin-top: auto; font-size: 10.5px; color: var(--text-muted); padding: 8px; }
.sidebar-user { font-size: 12.5px; font-weight: 700; color: var(--text); }

/* Geneste navigatiegroepen (Netwerk, Beheer) */
.nav-group { margin-bottom: 2px; }
.nav-group-label {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-muted); padding: 10px 12px 2px;
}
.nav-item.nav-sub { padding-left: 24px; font-size: 12.5px; }

/* Login-scherm */
.login-screen {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--mc-blue-dark), #0b1524 55%);
}
.login-screen.active { display: flex; }
.login-box {
  background: white; border-radius: 16px; padding: 36px 32px; width: 100%; max-width: 360px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35); text-align: center;
}
.login-logo { width: 100%; max-width: 220px; height: auto; margin-bottom: 18px; }
.login-box h1 { font-size: 17px; margin: 0 0 20px; color: var(--text); }
.login-box form { text-align: left; }

/* Secret Share: standalone weergavepagina (secret.html), zelfde gestijlde kader
   als het login-scherm maar iets breder zodat gedeelde tekst goed leesbaar is. */
.secret-view-box { max-width: 460px; text-align: center; }
.secret-view-box h1 { text-align: center; }
#secret-plaintext { min-height: 140px; white-space: pre-wrap; }

/* MAIN */
.main { flex: 1; min-width: 0; padding: 22px 28px; overflow-y: auto; }
.page { display: none; }
.page.active { display: block; }
.page-header { margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-header h1 { font-size: 19px; margin: 0 0 4px; color: var(--text); }
.page-header p { margin: 0; font-size: 12.5px; color: var(--text-muted); }
.header-actions { display: flex; gap: 8px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px; cursor: pointer; }
.tile-num { font-size: 24px; font-weight: 700; color: var(--text); }
.tile-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.tile.good .tile-num { color: var(--green); }
.tile.bad .tile-num { color: var(--red); }
.tile.warn .tile-num { color: var(--orange); }

/* --- Aanpasbaar dashboard (widgets) ---
   Vast 6-koloms grid met expliciete grid-column/grid-row per widget (via JS,
   zie applyDashboardLayout). Bewust GEEN grid-auto-flow:dense: een rij zonder
   widgets erin blijft dus ook echt leeg in plaats van dat latere widgets
   omhoog "vloeien" om het gat op te vullen — dat is precies wat vrij plaatsen
   en bewust een rij leeg laten mogelijk maakt. */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(70px, auto);
  grid-auto-flow: row;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
  position: relative;
}
.dashboard-grid.dashboard-grid-drop-target { outline: 2px dashed var(--mc-blue); outline-offset: -2px; border-radius: 12px; }
/* Elke widget krijgt zijn eigen lichte kaart-achtergrond + rand — ook grafieken,
   lijsten, de klok en het notitieblok, die daarvoor los op de paginakleur stonden.
   Geeft een consistente, duidelijk afgebakende look op zowel de gewone (lichte)
   Dashboard-pagina als in TV-modus/Slideshow (waar dit voorheen zelfs onleesbaar
   wegviel tegen de donkere achtergrond). */
.widget {
  position: relative; min-width: 0;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
@media (max-width: 720px) {
  .widget { grid-column: 1 / -1 !important; grid-row: auto !important; }
}
/* Tegel-widgets hebben zelf ook al een wit .tile-vlak — voorkom een dubbele rand
   door die van de tegel weg te halen; het kader van .widget is hier genoeg. */
.widget .tile { border: none; box-shadow: none; background: transparent; }
.widget .tile, .widget .card { margin-bottom: 0; height: 100%; }
.widget .chart-wrap { height: 100%; min-height: 180px; }
.widget[data-size="lg"] .chart-wrap, .widget[data-size="xl"] .chart-wrap { min-height: 260px; }
.widget-controls {
  position: absolute; top: 6px; right: 6px; display: flex; gap: 4px;
  opacity: 0; transition: opacity .15s; z-index: 5;
}
.widget:hover .widget-controls, .widget:focus-within .widget-controls { opacity: 1; }
.widget-controls button {
  width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border);
  background: white; cursor: pointer; font-size: 12px; line-height: 1;
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
}
.widget-controls button:hover { background: #f2f4f8; color: var(--text); }
.widget-drag-handle { cursor: grab; }
.widget-resize-btn { font-size: 10.5px !important; font-weight: 700; }
.widget-position-btn { font-size: 11px !important; }
.widget-size-label {
  position: absolute; bottom: 6px; right: 8px; font-size: 10px; color: var(--text-muted);
  opacity: 0; transition: opacity .15s; pointer-events: none; z-index: 4;
}
.widget:hover .widget-size-label, .widget:focus-within .widget-size-label { opacity: 1; }
.widget.widget-dragging { opacity: .35; }
.widget.widget-drag-over { outline: 2px dashed var(--mc-blue); outline-offset: 3px; border-radius: 12px; }

.widget-picker-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: 6px; cursor: pointer; font-size: 13px;
}
.widget-picker-item:hover { background: #f2f4f8; }
.widget-picker-empty { color: var(--text-muted); font-size: 12.5px; padding: 10px 0; }
.widget-picker-group-label {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-muted); margin: 14px 0 6px;
}
.widget-picker-group-label:first-child { margin-top: 0; }

.dashboard-clock { text-align: center; padding: 10px 0; }
.dashboard-clock .time { font-size: 30px; font-weight: 700; color: var(--text); }
.dashboard-clock .date { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

.dashboard-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; }
.dashboard-shortcuts .btn { font-size: 12px; }

.dashboard-note textarea {
  width: 100%; min-height: 110px; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px; font-family: inherit; font-size: 13px; resize: vertical; box-sizing: border-box;
}

.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.card-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; flex-wrap: wrap; }
.card-title h2 { font-size: 14.5px; margin: 0; display: flex; align-items: center; gap: 8px; }
.count { background: var(--mc-blue); color: white; border-radius: 12px; padding: 1px 9px; font-size: 12px; font-weight: 600; }

.btn {
  border: 1px solid var(--border); background: white; color: var(--text);
  font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 8px;
  cursor: pointer; font-family: inherit;
}
.btn:hover { background: #f2f4f8; }
.btn-primary { background: var(--mc-blue); color: white; border-color: var(--mc-blue); }
.btn-primary:hover { background: var(--mc-blue-dark); }
.btn-danger { color: var(--red); border-color: #f3c9c9; }
.btn-danger:hover { background: #fdecec; }
.btn-sm { padding: 4px 9px; font-size: 11.5px; }

input[type=text], input[type=number], input[type=password], input[type=email], input[type=date], select, textarea {
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px;
  font-size: 13px; font-family: inherit; width: 100%; background: white; color: var(--text);
}
label { font-size: 12px; font-weight: 600; color: var(--text-muted); display: block; margin: 10px 0 4px; }
.checkbox { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.checkbox input { width: auto; }

table.device-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.device-table th {
  text-align: left; color: var(--text-muted); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .03em; padding: 8px 10px; border-bottom: 1px solid var(--border);
}
table.device-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.device-table tr:last-child td { border-bottom: none; }
table.device-table tr.clickable { cursor: pointer; }
table.device-table tr.clickable:hover { background: #f7f9fc; }

/* Groepskop per centrale op de Trunks-pagina (public/app.js renderTrunksTable) */
table.device-table tr.table-group-row td { background: var(--bg); border-top: 2px solid var(--border); padding: 7px 10px; }
.table-group-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.table-group-header .hint { margin-left: 8px; }

.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.status-dot.up { background: var(--green); }
.status-dot.down { background: var(--red); }
.status-dot.unknown { background: var(--grey); }
.status-dot.error { background: var(--orange); } /* trunks: fout bij ophalen, geen bevestigde storing */

.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.pill-up { background: #e4f7ea; color: var(--green); }
.pill-down { background: #fbe2e2; color: var(--red); }
.pill-unknown { background: #eef1f6; color: var(--grey); }
.pill-error { background: #fdf1de; color: var(--orange); }

.empty { color: var(--text-muted); font-style: italic; padding: 12px 0; }
.updated { font-size: 11px; color: var(--text-muted); margin-top: 8px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.filter-bar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.filter-bar input, .filter-bar select { width: auto; min-width: 160px; }

/* Modal */
.modal-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(20,26,38,0.45);
  align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.modal-backdrop.active { display: flex; }
.modal {
  background: white; border-radius: 14px; padding: 22px; width: 100%; max-width: 560px;
  max-height: 88vh; overflow-y: auto;
}
.modal.modal-wide { max-width: 820px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-header h2 { margin: 0; font-size: 16px; }
.modal-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.hint { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.form-error { color: var(--red); font-size: 12.5px; margin-top: 8px; }

.detail-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px,1fr)); gap: 10px; margin-bottom: 16px; }
.detail-tile { background: #f7f9fc; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.detail-tile .n { font-size: 17px; font-weight: 700; }
.detail-tile .l { font-size: 10.5px; color: var(--text-muted); }

.chart-wrap { height: 180px; position: relative; margin-bottom: 6px; }
.map-wrap { height: 620px; border-radius: 10px; overflow: hidden; }
.map-popup { font-size: 12.5px; }
.map-popup .mp-title { font-weight: 700; margin-bottom: 2px; }
.map-popup .mp-ip { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text-muted); }
.charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
/* Aan/uit-schuifje (bv. overrule "altijd online" per apparaat) */
.switch { position: relative; display: inline-block; width: 36px; height: 20px; vertical-align: middle; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; cursor: pointer; inset: 0; background: #ccd2dc;
  border-radius: 20px; transition: background .15s;
}
.switch .slider::before {
  content: ""; position: absolute; height: 14px; width: 14px; left: 3px; bottom: 3px;
  background: white; border-radius: 50%; transition: transform .15s;
}
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider::before { transform: translateX(16px); }
.switch input:disabled + .slider { opacity: .5; cursor: not-allowed; }
.pill-override { background: #fdf1de; color: var(--orange); margin-left: 6px; }

/* Instellingen-pagina */
.settings-status { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 10px; }
.settings-status.ok { background: #e4f7ea; color: var(--green); }
.settings-status.off { background: #eef1f6; color: var(--grey); }
.settings-field { margin-bottom: 14px; }
.settings-field label { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.settings-field-source { font-size: 10px; font-weight: 600; text-transform: none; letter-spacing: 0; padding: 1px 6px; border-radius: 8px; background: #eef1f6; color: var(--text-muted); }
.settings-field-row { display: flex; gap: 8px; align-items: center; }
.settings-field-row input, .settings-field-row select { flex: 1; }
.settings-clear-btn { flex-shrink: 0; }

.tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--border); background: #f7f8fb; color: var(--text-muted);
  font-size: 12px; padding: 4px 10px; border-radius: 14px; cursor: pointer; font-family: inherit;
}
.tab.active { background: var(--mc-blue); color: white; border-color: var(--mc-blue); }

textarea.csv-input { min-height: 140px; font-family: ui-monospace, monospace; font-size: 12px; }

/* Dashboard mini-lijsten */
.mini-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--border); font-size: 13px; cursor: pointer;
}
.mini-row:last-child { border-bottom: none; }
.mini-row:hover { background: #f7f9fc; }
.mini-row .mini-title { font-weight: 600; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row .mini-sub { color: var(--text-muted); font-size: 11.5px; }
.mini-row .mini-value { font-weight: 600; font-size: 12px; white-space: nowrap; }

/* Merkbalk, alleen zichtbaar in TV-modus (sidebar met logo is dan verborgen) */
.tv-branding { display: none; }
body.tv-mode .tv-branding {
  display: flex; align-items: center; justify-content: space-between;
  background: white; padding: 10px 40px; margin: -26px -40px 22px;
  border-bottom: 3px solid var(--mc-accent);
  position: sticky; top: -26px; z-index: 40;
}
.tv-branding-logo { height: 32px; width: auto; }
.tv-branding-clock { font-size: 19px; font-weight: 700; color: var(--mc-blue-dark); font-variant-numeric: tabular-nums; }

/* Slideshow-voortgangsbalk onderaan, alleen zichtbaar tijdens Slideshow-modus */
.tv-slide-indicator {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  align-items: center; justify-content: center; gap: 16px;
  padding: 14px 20px; background: rgba(10,18,30,0.6); backdrop-filter: blur(4px);
  color: white; font-size: 16px; font-weight: 700; letter-spacing: .01em;
}
.tv-slide-indicator.active { display: flex; }
.tv-slide-dots { display: flex; gap: 8px; }
.tv-slide-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.3); transition: background .2s; }
.tv-slide-dot.active { background: var(--mc-accent); }

/* TV / status-scherm modus: grote letters, geen navigatie, geen klik-acties */
body.tv-mode { background: linear-gradient(160deg, var(--mc-blue-dark), #0b1524 55%); }
body.tv-mode .sidebar { display: none; }
body.tv-mode .main { padding: 26px 40px; max-width: none; }
body.tv-mode .page-header .header-actions .btn:not(#tv-mode-btn) { display: none; }
body.tv-mode #tv-mode-btn { position: fixed; top: 14px; right: 16px; z-index: 100; opacity: .35; }
body.tv-mode #tv-mode-btn:hover { opacity: 1; }
body.tv-mode .page-header h1 { font-size: 30px; }
body.tv-mode .page-header p { font-size: 15px; }
body.tv-mode .tile { padding: 22px; }
body.tv-mode .tile-num { font-size: 40px; }
body.tv-mode .tile-label { font-size: 14px; }
body.tv-mode .card-title h2 { font-size: 19px; }
body.tv-mode .chart-wrap { height: 260px; }
body.tv-mode .mini-row { font-size: 16px; padding: 12px 0; cursor: default; }
body.tv-mode .mini-row:hover { background: none; }
body.tv-mode .mini-sub { font-size: 13.5px; }
body.tv-mode .mini-value { font-size: 14px; }
body.tv-mode .tile { cursor: default; }
body.tv-mode .updated a { pointer-events: none; color: var(--text-muted); }

/* TV-modus/Slideshow: de kaart-look van .widget hierboven geldt hier ook al
   (zelfde rand/achtergrond als de gewone Dashboard-pagina) — hier alleen een iets
   steviger schaduw, zodat de witte kaarten duidelijker "los" komen te staan van
   de donkere achtergrond dan op de lichte pagina nodig is. */
body.tv-mode .widget { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28); }

/* PLANNING: bord/tijdlijn-toggle */
.view-toggle { display: flex; gap: 2px; background: #eef1f6; border-radius: 8px; padding: 2px; }
.view-toggle-btn { border: none; background: none; }
.view-toggle-btn.active { background: white; box-shadow: 0 1px 3px rgba(0,0,0,.15); font-weight: 700; color: var(--mc-blue); }

/* PLANNING: Kanban-bord */
.planning-board { display: flex; gap: 14px; align-items: flex-start; overflow-x: auto; padding-bottom: 10px; }
.planning-bucket {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
  width: 280px; flex-shrink: 0; display: flex; flex-direction: column;
  max-height: calc(100vh - 250px);
}
.planning-bucket.bucket-drag-over { outline: 2px dashed var(--mc-blue); outline-offset: 2px; }
.planning-bucket.bucket-dragging { opacity: .35; }
.planning-bucket-header {
  display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; cursor: grab;
}
.planning-bucket-header h3 {
  margin: 0; font-size: 13.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.planning-bucket-count {
  background: #eef1f6; color: var(--text-muted); border-radius: 10px; padding: 1px 7px; font-size: 11px; font-weight: 700;
}
.planning-bucket-edit { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 13px; padding: 2px 4px; }
.planning-bucket-edit:hover { color: var(--text); }
.planning-bucket-body { flex: 1; overflow-y: auto; padding: 2px 10px 6px; min-height: 50px; }
.planning-bucket-add { margin: 0 10px 10px; width: calc(100% - 20px); }
.planning-bucket-empty { color: var(--text-muted); font-size: 11.5px; font-style: italic; text-align: center; padding: 14px 4px; }

.planning-card {
  background: white; border: 1px solid var(--border); border-radius: 9px; padding: 10px 11px 9px;
  margin-bottom: 8px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.planning-card:hover { border-color: var(--mc-lightblue); }
.planning-card.card-dragging { opacity: .35; }
.planning-card.card-drag-over { outline: 2px dashed var(--mc-lightblue); outline-offset: 2px; }
.planning-card.card-completed { opacity: .6; }
.planning-card.card-completed .planning-card-title { text-decoration: line-through; }
.planning-card-title { font-size: 13px; font-weight: 600; margin-bottom: 6px; word-break: break-word; }
.planning-card-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: 11px; color: var(--text-muted); }
.planning-priority-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.planning-priority-dot.laag { background: var(--grey); }
.planning-priority-dot.normaal { background: var(--orange); }
.planning-priority-dot.hoog { background: var(--red); }
.planning-card-due { white-space: nowrap; }
.planning-card-due.overdue { color: var(--red); font-weight: 700; }
.planning-tag-pill { background: #eef1f6; color: var(--text-muted); border-radius: 8px; padding: 1px 7px; font-size: 10.5px; }
.planning-assignee-pill { background: #e7effa; color: var(--mc-blue); border-radius: 8px; padding: 1px 7px; font-size: 10.5px; font-weight: 700; }

/* PLANNING: tijdlijn/Gantt */
.planning-timeline { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
.timeline-header { display: flex; border-bottom: 2px solid var(--border); position: sticky; top: 0; background: var(--card-bg); z-index: 1; }
.timeline-header-label { width: 220px; flex-shrink: 0; }
.timeline-header-track { flex: 1; min-width: 480px; position: relative; height: 30px; }
.timeline-gridline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); }
.timeline-gridline-label { position: absolute; top: 6px; font-size: 10px; color: var(--text-muted); white-space: nowrap; transform: translateX(4px); }
.timeline-gridline.today { background: var(--mc-accent); }
.timeline-row { display: flex; border-bottom: 1px solid var(--border); }
.timeline-row:last-child { border-bottom: none; }
.timeline-label {
  width: 220px; flex-shrink: 0; padding: 8px 12px; font-size: 12px; display: flex; align-items: center; gap: 6px;
  position: sticky; left: 0; background: var(--card-bg); border-right: 1px solid var(--border);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.timeline-track { position: relative; flex: 1; min-width: 480px; min-height: 38px; }
.timeline-bar {
  position: absolute; top: 7px; height: 22px; border-radius: 6px; background: var(--mc-blue); color: white;
  font-size: 10.5px; display: flex; align-items: center; padding: 0 8px; white-space: nowrap; overflow: hidden;
  cursor: pointer; min-width: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.timeline-bar.prio-hoog { background: var(--red); }
.timeline-bar.prio-laag { background: var(--grey); }
.timeline-bar.completed { opacity: .5; }
.timeline-empty { padding: 30px; text-align: center; color: var(--text-muted); font-style: italic; }
