/* Global org chart styles (applies to JS-created DOM elements) */
.orgchart-canvas {
  width: 100%;
  height: calc(100vh - 180px);
  min-height: 420px;
  background: radial-gradient(1200px 600px at 20% 0%, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.orgchart-svg {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

.orgchart-link {
  fill: none;
  stroke: #cbd5e1;
  stroke-width: 2;
}

.orgchart-node-rect {
  fill: #ffffff;
  stroke: #cbd5e1;
  stroke-width: 1;
  rx: 12px; /* fallback if not set on rect element */
  filter: none !important; /* disable any SVG drop-shadow filters applied in JS */
}

.orgchart-node:hover .orgchart-node-rect {
  stroke: #94a3b8;
}

.orgchart-card {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 14px 14px 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
}

.orgchart-accent {
  width: 10px;
  height: 40px;
  border-radius: 999px;
  /* single green color */
  background: #25715d;
  flex: 0 0 auto;
  margin-top: 2px;
  opacity: 1;
}

.orgchart-name {
  font-size: 15px; /* slightly larger */
  line-height: 1.35rem;
  font-weight: 600;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.orgchart-node.is-synthetic-root .orgchart-node-rect {
  fill: #f8fafc;
  stroke: #cbd5e1;
}

.orgchart-node.is-synthetic-root .orgchart-accent {
  background: linear-gradient(180deg, #64748b 0%, #94a3b8 100%);
  opacity: 0.6;
}

/* small ID badge in the bottom-right of the card */
.orgchart-id {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 12px;
  color: #6b7280;
  background: rgba(255,255,255,0.0);
  padding: 0 4px;
  pointer-events: none;
}

/* small responsive tweaks */
@media (max-width: 800px) {
  .orgchart-canvas { min-height: 360px; }
}
