.cecare-org-frontend {
  position: relative;
  overflow: auto;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  background: #f8fafc;
}

.cecare-org-frontend-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 10px;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e2e8f0;
}

.cecare-org-stage {
  position: relative;
  width: 1280px;
  height: 900px;
  transform-origin: top left;
}

.cecare-org-frontend .cecare-org-canvas,
.cecare-org-frontend .cecare-org-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cecare-org-frontend .cecare-org-lines {
  pointer-events: none;
}

.cecare-org-frontend .cecare-org-node {
  position: absolute;
  width: 220px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.cecare-org-frontend .cecare-org-node-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
}

.cecare-org-frontend .cecare-org-node-name {
  font-weight: 600;
  font-size: 16px;
  margin-top: 10px;
}

.cecare-org-frontend .cecare-org-node-role {
  color: #475569;
  font-size: 13px;
  margin-top: 4px;
}

.cecare-org-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  padding: 12px;
  border-radius: 8px;
}


.cecare-org-frontend-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cecare-org-filters,
.cecare-org-export-controls,
.cecare-org-zoom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cecare-org-search,
.cecare-org-status-filter {
  min-height: 36px;
  padding: 6px 10px;
}

.cecare-org-search {
  min-width: 240px;
}

.cecare-org-status-filter {
  min-width: 180px;
}

.cecare-org-frontend .cecare-org-node,
.cecare-org-frontend .cecare-org-lines line {
  transition: opacity .2s ease, filter .2s ease, box-shadow .2s ease, transform .2s ease;
}

.cecare-org-frontend .cecare-org-node.is-dimmed {
  opacity: .28;
  filter: grayscale(1);
}

.cecare-org-frontend .cecare-org-node.is-highlighted {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25), 0 8px 20px rgba(15, 23, 42, 0.12);
  border-color: #2563eb;
  transform: translateZ(0);
}

.cecare-org-frontend .cecare-org-lines line.is-dimmed {
  opacity: .18;
}

@media (max-width: 782px) {
  .cecare-org-search,
  .cecare-org-status-filter {
    width: 100%;
    min-width: 0;
  }

  .cecare-org-filters,
  .cecare-org-zoom-controls {
    width: 100%;
  }
}


.cecare-org-frontend .cecare-org-status-badge {
  display: inline-block;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 2px 4px 0 0;
}

.cecare-org-frontend .cecare-org-status-badge-secondary {
  opacity: .92;
}
