/* ============================================================
   Sprint 52 — "Project Command Center"-shell (fase 1, desktop)
   Sidebar + topbar volgens docs/DESIGN-COMMAND-CENTER.md.
   Alleen actief bij ingelogde staat (body.cc-authed) op ≥1100px;
   mobiel/tablet behoudt de bestaande topbar + burger (fase 5).
   ============================================================ */

#cc-sidebar, #cc-topbar, #cc-scrim { display: none; }

/* ---------- Sidebar-componenten (desktop-sidebar én mobiele drawer) ---------- */
#cc-sidebar { flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; width: 216px; background: var(--navy-950, #041a32); color: #fff; z-index: 80; padding: 14px 12px 12px; gap: 4px; }
#cc-sidebar .cc-logo { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; cursor: pointer; }
#cc-sidebar .cc-logo img { width: 40px; height: 40px; object-fit: contain; flex: none; }
#cc-sidebar .cc-brand { font-size: 12px; font-weight: 750; letter-spacing: 0.4px; line-height: 1.25; color: #fff; }
#cc-sidebar .cc-brand-sub { font-size: 9.5px; font-weight: 600; letter-spacing: 1.6px; color: var(--cyan, #06a9bb); margin-top: 2px; }
#cc-sidebar .cc-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; scrollbar-color: #1d3a5c transparent; }
.cc-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; background: transparent; border: none; cursor: pointer; color: #c6d4e6; font: 500 13.5px/1.2 var(--font-sans); padding: 10px 10px; border-radius: 7px; text-align: left; transition: background var(--transition-fast), color var(--transition-fast); }
.cc-nav-item svg { width: 17px; height: 17px; flex: none; stroke-width: 1.8; }
.cc-nav-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.cc-nav-item.active { background: #0c3d75; color: #fff; font-weight: 620; }
.cc-nav-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cc-badge { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.cc-divider { height: 1px; background: rgba(255, 255, 255, 0.1); margin: 10px 6px; flex: none; }
.cc-section-label { font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #5f7391; padding: 2px 10px 6px; }
#cc-sidebar .cc-foot { flex: none; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.cc-workdays { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #c6d4e6; cursor: pointer; padding: 2px 10px; }
.cc-workdays input { accent-color: var(--accent); width: 14px; height: 14px; }
.cc-user { display: flex; align-items: center; gap: 10px; background: transparent; border: none; cursor: pointer; padding: 8px 8px; border-radius: 8px; width: 100%; transition: background var(--transition-fast); }
.cc-user:hover { background: rgba(255, 255, 255, 0.07); }
.cc-user:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cc-avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--cyan, #06a9bb); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; letter-spacing: 0.3px; }
.cc-user-meta { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; flex: 1; }
.cc-user-meta #cc-user-name { color: #fff; font-size: 13px; font-weight: 650; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-user-meta #cc-user-role { color: #788ba6; font-size: 11px; }
.cc-user svg { width: 15px; height: 15px; color: #788ba6; flex: none; }

@media (min-width: 1100px) {
  body.cc-authed { padding-left: 216px; }
  body.cc-authed .topbar { display: none; }
  body.cc-authed #cc-sidebar { display: flex; }

  /* ---------- Topbar ---------- */
  body.cc-authed #cc-topbar {
    display: flex;
    align-items: center; gap: 20px;
    position: sticky; top: 0; z-index: 60;
    background: var(--surface);
    border-bottom: 1px solid var(--line-soft, #e8eef5);
    padding: 12px 28px;
    min-height: 62px;
  }
  #cc-topbar .cc-page-title { font-size: 17px; font-weight: 720; letter-spacing: -0.3px; color: var(--text); flex: none; min-width: 170px; }
  .cc-search {
    display: flex; align-items: center; gap: 10px;
    flex: 1; max-width: 560px; margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 9px 12px;
    cursor: pointer;
    color: var(--muted-soft);
    font: 400 14px/1.2 var(--font-sans);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  }
  .cc-search:hover { border-color: var(--border-strong); }
  .cc-search:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-color: var(--accent); }
  .cc-search svg { width: 16px; height: 16px; flex: none; color: var(--muted-soft); }
  .cc-search span { flex: 1; text-align: left; }
  .cc-search kbd {
    font: 600 11px/1 var(--font-sans);
    color: var(--muted);
    background: var(--grid);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 4px 6px;
  }
  #cc-topbar .cc-topbar-right { display: flex; align-items: center; gap: 10px; flex: none; }
  .cc-cta {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--accent); color: #fff;
    border: none; border-radius: 7px; cursor: pointer;
    font: 680 13px/1.2 var(--font-sans);
    padding: 10px 16px;
    box-shadow: 0 3px 10px rgba(23, 105, 232, 0.18);
    transition: background var(--transition-fast), transform var(--transition-fast);
  }
  .cc-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
  .cc-cta:active { transform: translateY(0); }
  .cc-cta:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
  .cc-cta svg { width: 15px; height: 15px; }
}

/* ---------- Fase 5: mobiele drawer (<1100px) ---------- */
@media (max-width: 1099px) {
  body.cc-authed #cc-sidebar {
    display: flex;
    width: 276px;
    z-index: 1200;
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    box-shadow: 18px 0 50px rgba(4, 26, 50, 0.35);
    padding-top: max(14px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  body.cc-authed.cc-drawer-open #cc-sidebar { transform: translateX(0); }
  body.cc-authed.cc-drawer-open #cc-scrim { display: block; position: fixed; inset: 0; background: rgba(4, 26, 50, 0.55); z-index: 1190; }
  body.cc-authed.cc-drawer-open { overflow: hidden; }
  /* Drawer-items iets ruimer voor touch */
  body.cc-authed #cc-sidebar .cc-nav-item { padding: 12px 10px; min-height: 44px; }
  /* Topbar ontrommeld: deze acties zitten in de drawer */
  body.cc-authed .topbar #btn-ai-generate,
  body.cc-authed .topbar #btn-cloud,
  body.cc-authed .topbar #btn-team,
  body.cc-authed .topbar .switch { display: none !important; }
  /* Mobiele zoek-knop zichtbaar */
  body.cc-authed #btn-mobile-search { display: inline-flex !important; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; background: transparent; border: none; box-shadow: none; color: #fff; border-radius: 8px; }
  body.cc-authed #btn-mobile-search svg { width: 19px; height: 19px; }
}
#btn-mobile-search { display: none; }
@media (prefers-reduced-motion: reduce) {
  #cc-sidebar { transition: none !important; }
}
/* Gantt-tijdlijn: soepel touch-scrollen */
.timeline { -webkit-overflow-scrolling: touch; }
/* Golf 2C — touch-drag: een vinger op een balk/mijlpaal/handle sleept de taak
   (pant niet); scrollen kan via de lege rij-ruimte ernaast. */
.bar, .milestone, .dep-handle { touch-action: none; }

/* ============================================================
   Golf 3A — toasts wegklikbaar, undo/redo-knoppen, reduced motion
   ============================================================ */
.toast { cursor: pointer; }
.toast .toast-close { background: none; border: none; cursor: pointer; color: var(--muted-soft); font-size: 12px; line-height: 1; padding: 2px 4px; margin-left: 2px; flex: none; border-radius: 4px; }
.toast .toast-close:hover { color: var(--text); background: var(--grid); }
.cc-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: transparent; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; color: var(--muted); transition: color var(--transition-fast), border-color var(--transition-fast); }
.cc-iconbtn:hover { color: var(--text); border-color: var(--border-strong); }
.cc-iconbtn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.cc-iconbtn svg { width: 16px; height: 16px; }
#btn-mobile-undo { display: none; }
@media (max-width: 1099px) {
  body.cc-authed #btn-mobile-undo { display: inline-flex !important; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; background: transparent; border: none; box-shadow: none; color: #fff; border-radius: 8px; }
  body.cc-authed #btn-mobile-undo svg { width: 18px; height: 18px; }
}
/* Beheer → Stats: rustige statkaarten (Golf 3A) */
.cc-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 900px) { .cc-stat-grid { grid-template-columns: 1fr 1fr; } }
.cc-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-stat b { font-size: 24px; font-weight: 720; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; color: var(--text); }
.cc-stat span { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Sprint 55 — anti-flash: neutrale splash terwijl een opgeslagen sessie herstelt
   (voorkomt dat elke refresh eerst de uitgelogde landingskaart laat flitsen) */
/* Sprint 58A — de landing is nu een volledige marketing-pagina: verberg alle secties
   tijdens sessie-herstel en leg een dekkende splash over de viewport. */
html.landing-restoring #landing-page > * { display: none !important; }
html.landing-restoring .landing-wrap::after {
  content: 'Bezig met laden…';
  position: fixed; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  background: #f6f8fc;
  color: #5a6b82; font: 600 14px/1 var(--font-sans); letter-spacing: 0.4px;
}
/* Landing-knoppen in CC-stijl: effen actieblauw i.p.v. gradient */
.landing-btn.primary { background: var(--accent) !important; }
.landing-btn.primary:hover { background: var(--accent-hover) !important; }

/* Audit: respecteer reduced-motion app-breed */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Shell nooit mee-printen */
@media print {
  #cc-sidebar, #cc-topbar, #cc-scrim { display: none !important; }
  body.cc-authed { padding-left: 0 !important; }
}

/* ============================================================
   Fase 2 — dashboard-componenten (alle viewports)
   ============================================================ */
.cc-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-card); }
.cc-dash-head { margin: 6px 0 20px; }
.cc-hello { font-size: 28px; font-weight: 720; letter-spacing: -0.5px; margin: 0; color: var(--text); }
.cc-date { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

.cc-kpis { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; }
.cc-kpi { display: flex; gap: 14px; align-items: center; padding: 20px 22px; border-left: 1px solid var(--line-soft, #e8eef5); min-width: 0; }
.cc-kpi:first-child { border-left: none; }
.cc-kpi-ic { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.cc-kpi-ic svg { width: 20px; height: 20px; }
.cc-kpi-ic.blue { background: var(--accent-soft); color: var(--accent); }
.cc-kpi-ic.red { background: var(--red-soft); color: var(--red); }
.cc-kpi-ic.purple { background: var(--purple-soft); color: var(--purple); }
.cc-kpi-ic.cyan { background: #d9f1f4; color: #067585; }
.cc-kpi-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-kpi-num { font-size: 27px; font-weight: 720; letter-spacing: -0.5px; color: var(--text); line-height: 1.15; font-variant-numeric: tabular-nums; }
.cc-kpi-num.alarm { color: var(--red); }
.cc-kpi-sub { font-size: 12px; color: var(--muted-soft); }

.cc-dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; margin-bottom: 18px; }
.cc-dash-grid > * { min-width: 0; } /* voorkomt dat de tabel (min-width) de grid buiten de viewport duwt */
.cc-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--line-soft, #e8eef5); }
.cc-card-head h3 { margin: 0; font-size: 15px; font-weight: 680; color: var(--text); }
.cc-card-sub { font-size: 12px; color: var(--muted-soft); }
.cc-link { color: var(--accent); font-size: 12px; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap; }
.cc-link:hover { text-decoration: underline; }
.cc-empty { padding: 18px 20px; font-size: 13px; color: var(--muted); }

/* Projectgezondheid-tabel */
.cc-table-wrap { overflow-x: auto; }
table.cc-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.cc-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); padding: 10px 9px; border-bottom: 1px solid var(--line-soft, #e8eef5); }
.cc-table td { padding: 12px 9px; border-bottom: 1px solid var(--line-soft, #e8eef5); font-size: 13px; vertical-align: middle; }
.cc-table th:first-child, .cc-table td:first-child { padding-left: 16px; }
.cc-table th:last-child, .cc-table td:last-child { padding-right: 16px; }
.cc-table tbody tr { cursor: pointer; }
.cc-table tbody tr:hover { background: var(--surface-2); }
.cc-table tbody tr:last-child td { border-bottom: none; }
.cc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cc-proj-cell { display: flex; gap: 10px; align-items: flex-start; }
.cc-proj-nr { color: var(--accent); font-weight: 650; font-size: 12.5px; }
.cc-proj-name { color: var(--muted); font-size: 12px; margin-top: 1px; max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-progress { display: flex; align-items: center; gap: 7px; min-width: 92px; }
.cc-progress-track { flex: 1; height: 5px; border-radius: 99px; background: var(--line-soft, #e8eef5); overflow: hidden; }
.cc-progress-fill { height: 100%; border-radius: 99px; background: var(--accent); }
.cc-pct { font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; min-width: 34px; }
.cc-date-late { color: var(--red); font-weight: 650; }
.cc-health-lbl { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 12.5px; color: var(--text); }
.cc-health-sub { font-size: 11.5px; color: var(--muted-soft); margin: 2px 0 0 16px; }
.cc-table-foot { text-align: center; padding: 12px; }

/* Aandacht vereist */
.cc-attn-row { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--line-soft, #e8eef5); cursor: pointer; }
.cc-attn-row:last-child { border-bottom: none; }
.cc-attn-row:hover { background: var(--surface-2); }
.cc-attn-t { font-size: 13px; font-weight: 650; color: var(--text); }
.cc-attn-s { font-size: 12px; color: var(--muted-soft); margin-top: 1px; }
.cc-attn-arrow { margin-left: auto; color: var(--muted-soft); flex: none; }

/* Komende mijlpalen */
.cc-mile-row { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line-soft, #e8eef5); cursor: pointer; }
.cc-mile-row:last-child { border-bottom: none; }
.cc-mile-row:hover { background: var(--surface-2); }
.cc-mile-date { text-align: center; min-width: 34px; flex: none; }
.cc-mile-day { font-size: 17px; font-weight: 720; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--text); }
.cc-mile-mon { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-soft); }
.cc-mile-t { font-size: 13px; font-weight: 650; color: var(--text); }
.cc-mile-s { font-size: 11.5px; color: var(--muted-soft); margin-top: 1px; }
.cc-mile-pill { margin-left: auto; flex: none; background: var(--accent-soft); color: var(--accent-hover); font-size: 11px; font-weight: 650; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.cc-mile-pill.soon { background: var(--yellow-soft); color: #8a5a00; }
.cc-mile-pill.now { background: var(--red-soft); color: #b42318; }

/* Werkdruk per teamlid */
.cc-workload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 40px; padding: 14px 20px 18px; }
.cc-wl-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; min-width: 0; }
.cc-wl-av { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: none; }
.cc-wl-name { font-size: 13px; font-weight: 600; color: var(--text); width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: none; }
.cc-wl-track { flex: 1; height: 6px; border-radius: 99px; background: var(--line-soft, #e8eef5); overflow: hidden; }
.cc-wl-fill { height: 100%; background: var(--accent); border-radius: 99px; }
.cc-wl-count { font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; min-width: 56px; text-align: right; color: var(--muted); }

@media (max-width: 1100px) {
  .cc-dash-grid { grid-template-columns: 1fr; }
  .cc-kpis { grid-template-columns: 1fr 1fr; }
  .cc-kpi:nth-child(odd) { border-left: none; }
  .cc-kpi:nth-child(n+3) { border-top: 1px solid var(--line-soft, #e8eef5); }
  .cc-workload-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .cc-hello { font-size: 22px; }
  .cc-kpi { padding: 16px 18px; }
  .cc-wl-name { width: 110px; }
}

/* ============================================================
   Fase 3 — Projecten-lijst + projectdetail-tabs
   ============================================================ */
.cc-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.page-title { font-weight: 720; letter-spacing: -0.4px; }

.cc-mini-kpis { display: flex; align-items: stretch; margin: 4px 0 14px; overflow-x: auto; }
.cc-mini-kpi { display: flex; align-items: center; gap: 8px; padding: 12px 22px; font-size: 12.5px; color: var(--muted); border-left: 1px solid var(--line-soft, #e8eef5); white-space: nowrap; }
.cc-mini-kpi:first-child { border-left: none; }
.cc-mini-kpi b { font-size: 19px; font-weight: 720; color: var(--text); font-variant-numeric: tabular-nums; }
.cc-mini-kpi b.cc-mini-alarm { color: var(--red); }

/* Projecten-tabel in CC-stijl (klasse .proj-table blijft — mobiele card-transform intact) */
.proj-table thead th { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.proj-table td.num { color: var(--accent); font-weight: 650; }
.proj-table tbody tr:hover { background: var(--surface-2); }

/* Projectdetail-tabs */
.cc-dtabs { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 4px; margin: 0 0 14px; box-shadow: var(--shadow-card); overflow-x: auto; }
.cc-dtab-btn { border: none; background: transparent; cursor: pointer; font-family: var(--font-sans); font-size: 13px; font-weight: 620; color: var(--muted); padding: 9px 16px; border-radius: 7px; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; transition: background var(--transition-fast), color var(--transition-fast); }
.cc-dtab-btn:hover { color: var(--text); background: var(--grid); }
.cc-dtab-btn.active { color: var(--accent); background: var(--accent-soft); }
.cc-dtab-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cc-dtab-count { background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.cc-dtab-btn.active .cc-dtab-count { border-color: var(--accent); color: var(--accent); }
.cc-hide { display: none; }
/* Audit-fix: Project Health-grid was hardcoded 6 kolommen inline (kapte af op mobiel);
   nu class-gebaseerd met responsive fallback. */
.health-grid { display: grid; grid-template-columns: auto 1fr 1fr 1fr 1fr 1fr; gap: 18px; align-items: center; }
@media (max-width: 900px) { .health-grid { grid-template-columns: 1fr 1fr; gap: 14px; } }
/* ============================================================
   Fase 4 — Beheer-tabgroepen, Kanban/Calendar/modal-polish
   ============================================================ */
.cc-admin-tabs { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; box-shadow: var(--shadow-card); }
.cc-atab-group { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.cc-atab-label { font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted-soft); width: 110px; flex: none; }
.cc-atab { border: none; background: transparent; cursor: pointer; font-family: var(--font-sans); font-size: 12.5px; font-weight: 620; color: var(--muted); padding: 7px 13px; border-radius: 7px; transition: background var(--transition-fast), color var(--transition-fast); white-space: nowrap; }
.cc-atab:hover { color: var(--text); background: var(--grid); }
.cc-atab.active { color: var(--accent); background: var(--accent-soft); }
.cc-atab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 768px) { .cc-atab-label { width: 100%; } }

/* Kanban in CC-stijl */
.kanban-card { border-radius: 8px; box-shadow: var(--shadow-xs); }
.kanban-card:hover { box-shadow: var(--shadow-sm); }

/* Calendar-chips: leesbaarder (audit micro-tekst) — labelkleur komt inline per chip */
.cal-day .cd-task { font-size: 11px !important; font-weight: 600; }
.cal-day .cd-more { font-size: 11px !important; }

/* Modal-polish */
.modal { border-radius: 12px !important; box-shadow: 0 20px 60px rgba(4, 26, 50, 0.28) !important; }
.modal h2 { font-weight: 700; letter-spacing: -0.3px; }

/* Golf 2A — eigen bevestigings-dialoog (ccConfirm) */
#cc-confirm-overlay { position: fixed; inset: 0; background: rgba(4, 26, 50, 0.55); z-index: 99500; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cc-cfm { background: var(--surface); border-radius: 12px; box-shadow: 0 20px 60px rgba(4, 26, 50, 0.35); width: 460px; max-width: 96vw; padding: 22px 24px; }
.cc-cfm h2 { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -0.2px; color: var(--text); }
.cc-cfm-msg { font-size: 13.5px; color: var(--text-soft); line-height: 1.55; white-space: pre-line; max-height: 50vh; overflow-y: auto; }
.cc-cfm-type { margin-top: 14px; }
.cc-cfm-type label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.cc-cfm-type input { width: 100%; }
.cc-cfm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* Rapport/PDF-export toont altijd alle secties, tabs verborgen */
body.report-mode .cc-dpane { display: block !important; }
body.report-mode .cc-dtabs { display: none !important; }
@media print {
  .cc-dtabs { display: none !important; }
  .cc-dpane { display: block !important; }
}
