/* ── Variables ──────────────────────────────────────────────────────────────── */
:root {
  --sidebar-bg:   #1a2535;
  --sidebar-text: #94a3b8;
  --sidebar-w:    230px;
  --sidebar-rail: 56px;
  --accent:       #3b82f6;
  --accent-dark:  #2563eb;
  --success:      #16a34a;
  --danger:       #dc2626;
  --warning:      #d97706;
  --bg:           #f1f5f9;
  --card-bg:      #ffffff;
  --border:       #e2e8f0;
  --text:         #1e293b;
  --muted:        #64748b;
  --radius:       8px;
  --shadow:       0 1px 4px rgba(0,0,0,.08), 0 2px 12px rgba(0,0,0,.06);
}

/* ── Reset & Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; }

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

/* ── Sidebar ────────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-links {
  padding: 12px 0;
  flex: 1;
}

.nav-links li { margin: 2px 8px; }

.nav-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  color: var(--sidebar-text);
  border-radius: 6px;
  font-size: 13.5px;
  transition: background .15s, color .15s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(59,130,246,.18);
  color: #fff;
}

.nav-links a.active { font-weight: 600; }

.nav-icon { font-size: 15px; width: 18px; text-align: center; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.logout-link {
  color: var(--sidebar-text);
  font-size: 13px;
  text-decoration: none;
}
.logout-link:hover { color: #fff; text-decoration: none; }

/* ── Mobiel menu (uitklap-pijltje op de rail) ────────────────────────────────── */
.rail-toggle {
  display: none;
  background: rgba(255,255,255,.08);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}
.rail-toggle:hover { background: rgba(255,255,255,.16); }

.sidebar-backdrop { display: none; }

/* ── Content ────────────────────────────────────────────────────────────────── */
.content {
  flex: 1;
  min-width: 0;
  padding: 28px 32px;
}

.page-header {
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

/* ── Alerts ─────────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── Cards ──────────────────────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 13.5px;
  font-family: inherit;
  transition: background .15s, opacity .15s;
  text-decoration: none;
  line-height: 1.4;
}

.btn:hover { opacity: .88; text-decoration: none; }

.btn-primary   { background: var(--accent); color: #fff; }
.btn-success   { background: var(--success); color: #fff; }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-secondary { background: #e2e8f0; color: var(--text); }
.btn-ghost     { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-sm        { padding: 4px 10px; font-size: 12px; }

/* ── Forms ──────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }

label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

input[type=text],
input[type=password],
input[type=date],
textarea,
select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}

input[type=text]:focus,
input[type=password]:focus,
input[type=date]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

textarea { resize: vertical; min-height: 80px; }

.form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.form-row .form-group { flex: 1; margin-bottom: 0; }

/* ── Stats grid (dashboard) ─────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Project grid ───────────────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card h3 {
  font-size: 15px;
  font-weight: 600;
}

.project-card h3 a { color: var(--text); }
.project-card h3 a:hover { color: var(--accent); }

.project-card .desc {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}

/* ── Progress bar ───────────────────────────────────────────────────────────── */
.progress-wrap {
  background: #e2e8f0;
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}

.progress-bar {
  background: var(--accent);
  height: 100%;
  border-radius: 99px;
  transition: width .3s;
}

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

/* ── Task list ──────────────────────────────────────────────────────────────── */
.task-list { }

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.task-item:last-child { border-bottom: none; }

.task-item.done .task-title {
  text-decoration: line-through;
  color: var(--muted);
}

.task-check, .sprint-task-check {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.task-body { flex: 1; min-width: 0; }

.task-title { font-size: 14px; word-break: break-word; }

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}

.badge-high    { background: #fee2e2; color: #991b1b; }
.badge-low     { background: #dcfce7; color: #166534; }
.badge-normal  { background: #e0e7ff; color: #3730a3; }
.badge-done    { background: #dcfce7; color: #166534; }
.badge-overdue { background: #fee2e2; color: #991b1b; }

.task-actions { display: flex; gap: 4px; flex-shrink: 0; }

.subtask-list {
  margin-left: 28px;
  border-left: 2px solid var(--border);
  padding-left: 12px;
}

.subtask-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}

.subtask-item:last-child { border-bottom: none; }

.subtask-item.done .task-title {
  text-decoration: line-through;
  color: var(--muted);
}

/* add-subtask toggle */
.add-subtask-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 0;
  margin-top: 4px;
}

.add-subtask-form {
  display: none;
  margin-top: 8px;
}

.add-subtask-form.open { display: flex; gap: 8px; }

/* ── Board (sticky notes) ───────────────────────────────────────────────────── */
.board-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}

.color-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
}
.color-btn:hover, .color-btn.selected { transform: scale(1.2); border-color: var(--text); }

#board {
  position: relative;
  background:
    radial-gradient(circle, #d1d5db 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 640px;
  overflow: hidden;
}

.note {
  position: absolute;
  width: 220px;
  min-height: 120px;
  border-radius: 6px;
  padding: 12px 14px;
  box-shadow: 2px 4px 12px rgba(0,0,0,.12);
  cursor: grab;
  user-select: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow .15s;
}

.note:active { cursor: grabbing; box-shadow: 4px 8px 20px rgba(0,0,0,.2); }
.note.pinned { box-shadow: 2px 4px 12px rgba(0,0,0,.12), 0 0 0 2px var(--accent); }

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.note-title {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  word-break: break-word;
  flex: 1;
}

.note-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.note-btn {
  background: rgba(0,0,0,.08);
  border: none;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.note-btn:hover { background: rgba(0,0,0,.18); }

.note-body {
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
  flex: 1;
  color: rgba(0,0,0,.75);
  white-space: pre-wrap;
}

/* note colors */
.note-yellow  { background: #fef3c7; }
.note-pink    { background: #fce7f3; }
.note-blue    { background: #dbeafe; }
.note-green   { background: #dcfce7; }
.note-purple  { background: #ede9fe; }
.note-orange  { background: #ffedd5; }

/* ── Log table ──────────────────────────────────────────────────────────────── */
.log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.log-table th {
  text-align: left;
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 2px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.log-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.log-table tr:last-child td { border-bottom: none; }
.log-table tr:hover td { background: #f8fafc; }

/* Scrollt horizontaal i.p.v. de pagina te laten overlopen op smalle schermen */
.table-scroll { overflow-x: auto; }

/* ── Modal ──────────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
}

.modal-close {
  float: right;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

/* ── Login page ─────────────────────────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sidebar-bg);
}

.login-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}

.login-card h1 {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}

/* ── Misc helpers ───────────────────────────────────────────────────────────── */
.flex           { display: flex; flex-wrap: wrap; }
.gap-8          { gap: 8px; }
.gap-12         { gap: 12px; }
.align-center   { align-items: center; }
.justify-between{ justify-content: space-between; }
.mt-8           { margin-top: 8px; }
.mt-16          { margin-top: 16px; }
.mb-0           { margin-bottom: 0; }
.text-muted     { color: var(--muted); }
.text-sm        { font-size: 12px; }
.text-danger    { color: var(--danger); }
.drag-handle    { cursor: grab; color: var(--muted); font-size: 16px; flex-shrink: 0; }

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; }
  .content {
    flex: none;
    width: calc(100% - var(--sidebar-rail));
    margin-left: var(--sidebar-rail);
    padding: 16px;
  }
  .rail-toggle { display: block; }

  /* Altijd zichtbare, smalle icon-rail; klapt over de content heen uit naar
     volledige breedte zodra .open actief is (geen layout-shift van de content). */
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-rail);
    height: 100vh;
    z-index: 1000;
    overflow: hidden;
    transition: width .2s ease;
  }
  .sidebar.open {
    width: var(--sidebar-w);
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0,0,0,.35);
  }

  .sidebar:not(.open) .brand-name,
  .sidebar:not(.open) .nav-label,
  .sidebar:not(.open) .sidebar-footer {
    display: none;
  }

  .sidebar:not(.open) .sidebar-brand,
  .sidebar:not(.open) .nav-links a {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  .sidebar:not(.open) .rail-toggle { margin-left: 0; }

  .sidebar.open .rail-toggle { transform: scaleX(-1); }

  .sidebar-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 900;
  }

  .form-row { flex-wrap: wrap; }
  .form-row .form-group { min-width: 140px; }
}

/* ── Sprint: meetings & actiepunten ─────────────────────────────────────────── */
.meeting-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fcfcfd;
}
.meeting-card:last-child { margin-bottom: 0; }

.meeting-notes {
  font-size: 13px;
  color: var(--text);
  margin: 8px 0;
  white-space: pre-wrap;
}

.action-items {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.action-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.action-item .action-check { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.action-item.done .action-text { text-decoration: line-through; color: var(--muted); }
.action-text { font-size: 13px; }

/* assign-modal rijen */
.assign-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--text);
  font-size: 14px;
}
.assign-row:hover { background: #f1f5f9; }
.assign-row input[type=checkbox], .assign-check input { width: 16px; height: 16px; accent-color: var(--accent); }

/* ── Kalender (maandgrid) ───────────────────────────────────────────────────── */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-head { margin-bottom: 4px; }

.cal-dow {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 0;
}

.cal-cell {
  min-height: 96px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cal-other { background: #f8fafc; }
.cal-other .cal-daynum { color: #cbd5e1; }

.cal-today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.cal-daynum {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
  padding: 0 2px;
}

.cal-bar {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  line-height: 1.4;
  opacity: .9;
}
.cal-bar:hover { opacity: 1; text-decoration: none; }
.cal-bar-start { box-shadow: -2px 0 0 0 rgba(0,0,0,.25); }

.cal-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
}
.cal-legend:hover { background: #f1f5f9; text-decoration: none; }
.cal-legend-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

@media (max-width: 700px) {
  .cal-cell { min-height: 60px; }
  .cal-bar { font-size: 9px; padding: 1px 3px; }
}

/* ── Uren/dagen-schakelaar ──────────────────────────────────────────────────── */
.unit-toggle {
  display: flex;
  background: rgba(255,255,255,.06);
  border-radius: 99px;
  padding: 3px;
  margin-bottom: 12px;
}

.unit-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--sidebar-text);
  font-size: 12px;
  font-family: inherit;
  padding: 4px 0;
  border-radius: 99px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.unit-btn.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ── Personen ───────────────────────────────────────────────────────────────── */
.person-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.person-row:last-child { border-bottom: none; }

.person-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

input[type=color] {
  width: 100%;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

/* ── Assignee-badges ────────────────────────────────────────────────────────── */
.assignee-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  border: 1px solid var(--border);
  cursor: pointer;
}
.assignee-badge:hover { background: #e2e8f0; }

.assignee-hours { color: var(--muted); font-weight: 400; }

.assign-person-form.open {
  flex-direction: column;
  align-items: flex-start;
}

.assign-person-form input[type=number] {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
}

/* ── Tijd-per-persoon tabel ─────────────────────────────────────────────────── */
.time-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.time-table th {
  text-align: left;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 6px 4px;
  border-bottom: 2px solid var(--border);
}

.time-table td {
  padding: 7px 4px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.time-table td .person-dot { margin-right: 6px; vertical-align: middle; }

.time-table tfoot td {
  border-bottom: none;
  border-top: 2px solid var(--border);
}

/* ── Koppel-modal met uren ──────────────────────────────────────────────────── */
.assign-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.assign-check {
  display: flex; align-items: center; gap: 10px; flex: 1 1 100%; min-width: 0;
  cursor: pointer; text-transform: none; letter-spacing: normal;
  font-weight: 400; color: var(--text); font-size: 14px; margin: 0;
}
.assign-check span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assign-row input.assign-hours { width: 72px; height: auto; padding: 4px 8px; font-size: 13px;
  border: 1px solid var(--border); border-radius: 6px; font-family: inherit; }
.assign-hint { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ── Koppel-modal: zoeken, subtaken inklappen, volledig gepland ──────────────── */
.task-search {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px;
  font-family: inherit; font-size: 14px;
}
.subtask-toggle-icon {
  background: none; border: none; cursor: pointer; font-size: 12px;
  color: var(--muted); padding: 0 4px 0 0; line-height: 1;
}
/* .assign-check heeft flex-basis 100% (voor rijen zonder icoontje); met een
   toggle-icoontje ervoor moet er ruimte overblijven zodat beide op dezelfde
   regel passen in plaats van dat het icoontje alleen op de eerste regel valt. */
.subtask-toggle-icon + .assign-check { flex-basis: calc(100% - 22px); }
.subtask-rows { display: none; }
.subtask-rows.open { display: block; }
.fully-planned-section { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
.fully-planned-toggle { width: 100%; text-align: left; }
.fully-planned-rows { display: none; margin-top: 8px; }
.fully-planned-rows.open { display: block; }

/* ── Gantt (Sprints-tab) ────────────────────────────────────────────────────── */
.gantt { overflow-x: auto; }

/* Gemeenschappelijk referentiekader voor rijen + as + eind-lijnen, zodat een
   lijn precies kan doorlopen van een balkeinde (in .gantt-rows) naar de
   datum eronder (in .gantt-axis). */
.gantt-inner {
  position: relative;
  min-width: 640px;
}

.gantt-rows {
  position: relative;
  min-height: 24px;
  padding: 6px 0;
}

.gantt-end-line {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px dashed var(--muted);
  opacity: .55;
  pointer-events: none;
}

.gantt-row { position: relative; height: 26px; margin: 4px 0; }

.gantt-bar {
  position: absolute;
  top: 0;
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  opacity: .92;
}
.gantt-bar:hover { opacity: 1; text-decoration: none; }
.gantt-planning  { background: #64748b; }
.gantt-active    { background: var(--accent); }
.gantt-completed { background: var(--success); }

.gantt-today {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--danger);
  z-index: 2;
}

.gantt-axis {
  display: flex;
  border-top: 2px solid var(--border);
  margin-top: 4px;
}

.gantt-week {
  flex-shrink: 0;
  text-align: center;
  padding: 4px 0 0;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.gantt-week:last-child { border-right: none; }

.gantt-wk   { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.gantt-date { font-size: 10px; color: var(--muted); }
