/* Supply Chain Flow Diagram */
.flow-canvas-wrapper {
  overflow: auto;
  height: 65vh;
  min-height: 400px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  position: relative;
}

.flow-canvas {
  position: relative;
  min-height: 400px;
  margin: 0 auto;
}

.flow-arrows {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.flow-node {
  position: absolute;
  width: 220px;
  background: white;
  border: 1.5px solid #dee2e6;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.15s, opacity 0.2s;
  opacity: 0;
  z-index: 1;
}

.flow-node:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.flow-node--origin {
  border: 2px solid #ffc107 !important;
  width: 260px;
}

.flow-node--supplier {
  border: 2px solid #0d6efd !important;
}

.flow-node-company {
  font-weight: 600;
  font-size: 0.85rem;
  color: #212529;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flow-node-meta {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 6px;
  line-height: 1.5;
}

.flow-node-risk-badge {
  font-size: 0.78rem;
  padding: 0.3em 0.55em;
}

.flow-node-actions {
  margin-top: 10px;
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  border-top: 1px solid #f0f0f0;
  padding-top: 8px;
}

.btn-xs {
  padding: 0.15rem 0.4rem;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  line-height: 1.4;
}
