@import url('doc-shared.css');

.diagram-wrap {
  background: white;
  border: 1px solid var(--border-brand);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.25rem 0;
  overflow-x: auto;
}

.diagram-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.25rem 0;
}

.flow-card {
  background: white;
  border: 1px solid var(--border-brand);
  border-radius: 10px;
  overflow: hidden;
}

.flow-card-header {
  padding: 0.75rem 1rem;
  font-size: 13px;
  font-weight: 600;
}

.flow-card-header.new {
  background: var(--brand-wash);
  color: var(--brand-navy);
  border-bottom: 1px solid var(--brand-pale);
}

.flow-card-header.existing {
  background: #F0FDF4;
  color: #14532D;
  border-bottom: 1px solid #BBF7D0;
}

.flow-card-body { padding: 1rem; }

.step {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  margin-top: 1px;
}

.step-num.blue { background: var(--brand-blue); }
.step-num.green { background: #15803D; }

.step-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-text strong {
  color: var(--text-primary);
  display: block;
  font-size: 12px;
  margin-bottom: 1px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 1rem 0;
  background: white;
  border: 1px solid var(--border-brand);
  border-radius: 8px;
  overflow: hidden;
}

.data-table th {
  background: var(--brand-wash);
  padding: 8px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--brand-pale);
}

.data-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #F3F4F6;
  color: var(--text-secondary);
  vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table td:first-child {
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.tag.api { background: var(--brand-wash); color: var(--brand-blue); }
.tag.batch { background: #F0FDF4; color: #15803D; }
.tag.stream { background: var(--brand-orange-light); color: #C2410C; }
.tag.manual { background: #F5F3FF; color: #6D28D9; }

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.security-card {
  background: white;
  border: 1px solid var(--border-brand);
  border-radius: 8px;
  padding: 0.875rem;
}

.security-card .icon { font-size: 18px; margin-bottom: 6px; }

.security-card h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.security-card p {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.ingestion-footer {
  margin-top: 0;
  padding-top: 1rem;
  border-top: none;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
}

@media print {
  body { background: white; }
}
