/* ── Organisatie backend specifieke componenten ─────────────────────── */

body.v2 #view-klantbackend .org-welcome-sub {
  font-size: 13px;
  color: var(--c-text-2);
  font-weight: 500;
  margin-top: 4px;
}

body.v2 #view-klantbackend .org-project-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

body.v2 #view-klantbackend .org-team-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
}

body.v2 #view-klantbackend .org-team-label {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-3);
  font-weight: 600;
  margin-bottom: 8px;
}

body.v2 #view-klantbackend .org-team-row {
  display: flex;
  align-items: center;
  gap: 0;
}

body.v2 #view-klantbackend .org-team-avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
  border: 2px solid var(--c-surface);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-sand), var(--brand-taupe));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--brand-black);
  flex-shrink: 0;
}

body.v2 #view-klantbackend .org-team-avatar + .org-team-avatar {
  margin-left: -6px;
}

body.v2 #view-klantbackend .org-team-empty {
  font-size: 11.5px;
  color: var(--c-text-3);
  font-style: italic;
}

body.v2 #view-klantbackend .org-placeholder {
  padding: 48px 20px;
  text-align: center;
  color: var(--c-text-3);
  font-size: 13px;
  font-weight: 500;
  background: var(--c-surface);
  border: 1px dashed var(--c-border);
  border-radius: 14px;
}

/* ── Read-only notice banner (meldingen bovenaan) ─────────────────── */
body.v2 #view-klantbackend .org-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(179, 155, 136, 0.14), rgba(179, 155, 136, 0.05));
  border: 1px solid rgba(179, 155, 136, 0.3);
  border-radius: 14px;
  color: var(--c-text);
}
body.v2 #view-klantbackend .org-notice-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(179, 155, 136, 0.25);
  color: var(--brand-taupe-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.v2 #view-klantbackend .org-notice-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}
body.v2 #view-klantbackend .org-notice-body {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--c-text-2);
  font-weight: 500;
}
body.v2 #view-klantbackend .org-notice-body strong {
  color: var(--c-text);
  font-weight: 600;
}

/* ── Filter rij ───────────────────────────────────────────────────── */
body.v2 #view-klantbackend .org-filterbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
body.v2 #view-klantbackend .org-filterrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
body.v2 #view-klantbackend .org-filterlabel {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-3);
  min-width: 72px;
}

/* ── Priority pill ────────────────────────────────────────────────── */
body.v2 #view-klantbackend .priority-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
body.v2 #view-klantbackend .priority-pill.critical {
  background: var(--st-critical-bg);
  color: var(--st-critical);
}
body.v2 #view-klantbackend .priority-pill.high {
  background: var(--st-picked-bg);
  color: var(--st-picked);
}
body.v2 #view-klantbackend .priority-pill.normal {
  background: rgba(26, 25, 25, 0.06);
  color: var(--c-text-2);
}
body.v2 #view-klantbackend .priority-pill.low {
  background: var(--st-resolved-bg);
  color: var(--st-resolved);
}

/* ── SLA cel ─────────────────────────────────────────────────────── */
body.v2 #view-klantbackend .org-sla {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── Meldingen tabel row hover ────────────────────────────────────── */
body.v2 #view-klantbackend .work-table tbody tr[data-mlid] { cursor: pointer; }
body.v2 #view-klantbackend .work-table tbody tr[data-mlid]:hover td {
  background: rgba(179, 155, 136, 0.06);
}

/* ── Empty state ──────────────────────────────────────────────────── */
body.v2 #view-klantbackend .empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--c-text-3);
  font-size: 13px;
  font-weight: 500;
}

/* ── Document items (backend scope) ──────────────────────────────── */
body.v2 #view-klantbackend .doc-item {
  background: var(--c-surface);
  border-radius: var(--r-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--c-border);
  margin: 4px 14px;
  cursor: pointer;
  transition: border-color 120ms, background 120ms;
}
body.v2 #view-klantbackend .doc-item:hover {
  border-color: var(--brand-taupe);
  background: rgba(179, 155, 136, 0.05);
}
body.v2 #view-klantbackend .doc-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--brand-taupe-deep);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  border: 1px solid var(--c-border);
}
body.v2 #view-klantbackend .doc-icon.type-tekening    { color: var(--st-picked); }
body.v2 #view-klantbackend .doc-icon.type-rapport     { color: var(--st-resolved); }
body.v2 #view-klantbackend .doc-icon.type-sla         { color: var(--st-scheduled); }
body.v2 #view-klantbackend .doc-icon.type-certificaat { color: var(--brand-taupe-deep); }
body.v2 #view-klantbackend .doc-info { flex: 1; min-width: 0; }
body.v2 #view-klantbackend .doc-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.v2 #view-klantbackend .doc-meta {
  font-size: 11px;
  color: var(--c-text-2);
  font-weight: 500;
}
body.v2 #view-klantbackend .doc-download {
  color: var(--brand-taupe-deep);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}
body.v2 #view-klantbackend .doc-download:hover {
  background: rgba(179, 155, 136, 0.12);
}
body.v2 #view-klantbackend .doc-download svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

/* ── Accordion (documenten per project) ──────────────────────────── */
body.v2 #view-klantbackend .org-acc {
  border-bottom: 1px solid var(--c-border);
}
body.v2 #view-klantbackend .org-acc:last-child { border-bottom: none; }

body.v2 #view-klantbackend .org-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--c-surface-2);
  cursor: pointer;
  user-select: none;
  transition: background 120ms;
}
body.v2 #view-klantbackend .org-acc-head:hover {
  background: rgba(179, 155, 136, 0.08);
}
body.v2 #view-klantbackend .org-acc.empty .org-acc-head {
  opacity: 0.7;
}
body.v2 #view-klantbackend .org-acc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
body.v2 #view-klantbackend .org-acc-sub {
  font-size: 11px;
  color: var(--c-text-3);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}
body.v2 #view-klantbackend .org-acc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-text-3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
body.v2 #view-klantbackend .org-acc-caret {
  width: 14px;
  height: 14px;
  stroke: var(--c-text-3);
  stroke-width: 1.8;
  fill: none;
  transition: transform 180ms ease;
}
body.v2 #view-klantbackend .org-acc.open .org-acc-caret { transform: rotate(90deg); }

body.v2 #view-klantbackend .org-acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}
body.v2 #view-klantbackend .org-acc.open .org-acc-body { grid-template-rows: 1fr; }
body.v2 #view-klantbackend .org-acc-body-inner {
  overflow: hidden;
  min-height: 0;
}
body.v2 #view-klantbackend .org-acc-body-inner > div { padding: 8px 4px; }

body.v2 #view-klantbackend .org-acc-empty {
  padding: 14px 20px;
  font-size: 12px;
  color: var(--c-text-3);
  font-style: italic;
  font-weight: 500;
}

/* ── Meldingdetail modal content ─────────────────────────────────── */
body.v2 #view-klantbackend .org-mld-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-border);
}
body.v2 #view-klantbackend .org-mld-row:last-child { border-bottom: none; }
body.v2 #view-klantbackend .org-mld-row .k {
  color: var(--c-text-3);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
body.v2 #view-klantbackend .org-mld-row .v {
  color: var(--c-text);
  font-weight: 500;
}
body.v2 #view-klantbackend .org-mld-desc {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--c-text);
  line-height: 1.5;
  margin-bottom: 16px;
}
body.v2 #view-klantbackend .org-mld-timeline {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.v2 #view-klantbackend .org-mld-tl {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
}
body.v2 #view-klantbackend .org-mld-tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--brand-taupe);
}
body.v2 #view-klantbackend .org-mld-tl-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-text);
}
body.v2 #view-klantbackend .org-mld-tl-meta {
  font-size: 11px;
  color: var(--c-text-2);
  margin-top: 2px;
}

/* ── Team: naam-cel met avatar-chip ──────────────────────────────── */
body.v2 #view-klantbackend .org-team-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
body.v2 #view-klantbackend .org-team-avatar-chip {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-sand), var(--brand-taupe));
  color: var(--brand-black);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
body.v2 #view-klantbackend .org-team-name-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
body.v2 #view-klantbackend .org-team-name-text .nm {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
body.v2 #view-klantbackend .org-team-name-text .sm {
  font-size: 11px;
  color: var(--c-text-3);
  font-family: 'JetBrains Mono', monospace;
}

/* ── Project-chip (compact, gebruikt in team tabel) ──────────────── */
body.v2 #view-klantbackend .org-project-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text-2);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 99px;
  margin: 2px 4px 2px 0;
  letter-spacing: 0.01em;
}

/* ── Team status-pill (hergebruikt work-badge-varianten visueel) ── */
body.v2 #view-klantbackend .org-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
body.v2 #view-klantbackend .org-status-pill.actief {
  background: var(--st-resolved-bg);
  color: var(--st-resolved);
}
body.v2 #view-klantbackend .org-status-pill.uitgenodigd {
  background: rgba(179, 155, 136, 0.18);
  color: var(--brand-taupe-deep);
}

/* ── Team row-acties (icon buttons) ──────────────────────────────── */
body.v2 #view-klantbackend .org-row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}
body.v2 #view-klantbackend .org-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--c-text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 120ms, color 120ms, border-color 120ms;
}
body.v2 #view-klantbackend .org-icon-btn:hover {
  background: var(--c-surface-2);
  color: var(--brand-taupe-deep);
  border-color: var(--c-border);
}
body.v2 #view-klantbackend .org-icon-btn.danger:hover {
  color: var(--st-critical);
  background: var(--st-critical-bg);
  border-color: transparent;
}
body.v2 #view-klantbackend .org-icon-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

/* ── Nieuw project aanvragen: tweekolom layout ───────────────────── */
body.v2 #view-klantbackend .org-request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 960px){
  body.v2 #view-klantbackend .org-request-layout {
    grid-template-columns: 1fr;
  }
}
body.v2 #view-klantbackend .org-request-info {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 18px 20px;
  position: sticky;
  top: 20px;
}
body.v2 #view-klantbackend .org-request-info-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-text-3);
  margin-bottom: 12px;
}
body.v2 #view-klantbackend .org-request-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.v2 #view-klantbackend .org-request-info-list li {
  font-size: 12.5px;
  color: var(--c-text-2);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}
body.v2 #view-klantbackend .org-request-info-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-taupe);
}

/* ── Lopende aanvragen (alle_projecten intro) ────────────────────── */
body.v2 #view-klantbackend .org-requests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
body.v2 #view-klantbackend .org-request-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.v2 #view-klantbackend .org-request-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
body.v2 #view-klantbackend .org-request-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
body.v2 #view-klantbackend .org-request-card-date {
  font-size: 11px;
  color: var(--c-text-3);
  font-family: 'JetBrains Mono', monospace;
}

/* ── Multi-select project chips (modal) ──────────────────────────── */
body.v2 #view-klantbackend .org-prj-select {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
body.v2 #view-klantbackend .org-prj-select .work-chip {
  cursor: pointer;
}

/* ── F-83a: info-icoon naast KPI/stat-labels voor tooltip uitleg ── */
body.v2 #view-klantbackend .org-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(26, 25, 25, 0.08);
  color: var(--c-text-2);
  font-size: 9px;
  font-weight: 700;
  font-style: italic;
  font-family: 'Inter', system-ui, sans-serif;
  margin-left: 6px;
  cursor: help;
  vertical-align: 1px;
  user-select: none;
}
body.v2 #view-klantbackend .org-info-icon:hover {
  background: rgba(26, 25, 25, 0.16);
  color: var(--c-text);
}

/* ── F-85: project-detail modal sub-blokken ─────────────────────── */
body.v2 #view-klantbackend .org-prj-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin: 14px 0 8px;
}
body.v2 #view-klantbackend .org-prj-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 150ms, border-color 150ms;
}
body.v2 #view-klantbackend .org-prj-row:hover {
  background: rgba(26, 25, 25, 0.04);
  border-color: var(--c-border-strong);
}
body.v2 #view-klantbackend .org-prj-row-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.v2 #view-klantbackend .org-prj-row-sub {
  font-size: 11px;
  color: var(--c-text-3);
  margin-top: 2px;
}
body.v2 #view-klantbackend .org-prj-empty {
  background: var(--c-surface-2);
  border: 1px dashed var(--c-border-strong);
  border-radius: 10px;
  padding: 14px 12px;
  font-size: 12.5px;
  color: var(--c-text-3);
  text-align: center;
}

/* F-100 a + F-95: Mijn profiel-acties (knoppen-rij)
   Generiek voor work-shell-views (zowel org-backend als darwin-backend) */
body.v2 .org-mijn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
body.v2 .org-mijn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid var(--c-border-strong);
  border-radius: 8px;
  background: var(--c-surface);
  color: var(--c-text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms, border-color 150ms;
}
body.v2 .org-mijn-btn:hover {
  background: var(--brand-ivory);
  border-color: var(--brand-taupe);
}
body.v2 .org-mijn-btn.primary {
  background: var(--brand-black);
  color: #fff;
  border-color: var(--brand-black);
}
body.v2 .org-mijn-btn.primary:hover {
  background: var(--brand-graphite);
}

