/* data-flow.html — Tek Kare Akış Haritası (doc-dfl) */

.doc-dfl {
  margin: 1.15rem 0 0.35rem;
  border-radius: 16px;
  border: 1px solid rgba(94, 180, 255, 0.26);
  background: linear-gradient(168deg,
      rgba(16, 22, 42, 0.82) 0%,
      rgba(10, 14, 28, 0.72) 48%,
      rgba(14, 22, 36, 0.78) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.42) inset,
    0 12px 38px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.doc-dfl__top {
  padding: 0.75rem 0.9rem 0.9rem;
  background:
    radial-gradient(110% 85% at 50% 8%, rgba(46, 231, 242, 0.07) 0%, transparent 52%),
    rgba(5, 8, 18, 0.52);
  border-bottom: 1px solid rgba(110, 150, 210, 0.14);
}

.doc-dfl__stage {
  position: relative;
  margin: 0 auto;
  max-width: min(100%, 1180px);
  height: clamp(360px, 52vmin, 560px);
  min-height: 340px;
  border-radius: 14px;
  border: 1px solid rgba(110, 150, 210, 0.2);
  overflow: hidden;
  background:
    radial-gradient(ellipse 75% 55% at 50% 42%, rgba(46, 231, 242, 0.05) 0%, transparent 58%),
    rgba(5, 10, 22, 0.55);
  touch-action: none;
  cursor: grab;
}

.doc-dfl__stage:active {
  cursor: grabbing;
}

.doc-dfl__stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.doc-dfl__hud {
  position: absolute;
  left: 0.65rem;
  top: 0.65rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  pointer-events: none;
}

.doc-dfl__badge,
.doc-dfl__chip {
  padding: 0.32rem 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(120, 190, 255, 0.22);
  background: linear-gradient(165deg,
      rgba(18, 28, 48, 0.55) 0%,
      rgba(10, 14, 28, 0.72) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(210, 235, 255, 0.92);
}

.doc-dfl__chip {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(150, 220, 255, 0.88);
}

.doc-dfl__pane-label {
  position: absolute;
  left: 0.65rem;
  bottom: 0.55rem;
  z-index: 2;
  padding: 0.28rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(110, 150, 210, 0.22);
  background: rgba(10, 12, 24, 0.72);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(175, 205, 248, 0.82);
  pointer-events: none;
}

.doc-dfl__error {
  margin: 0.85rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 90, 120, 0.35);
  background: rgba(80, 16, 28, 0.45);
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 200, 210, 0.95);
}

.doc-dfl__desc {
  margin: 0.9rem 0 0;
  padding: 0.7rem 0.8rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(110, 150, 210, 0.14);
  border-left: 3px solid rgba(46, 231, 242, 0.55);
  background: rgba(8, 14, 28, 0.48);
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(185, 205, 235, 0.9);
}

.doc-dfl__desc:empty {
  display: none;
}

.doc-dfl__bottom {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0.75rem;
  align-items: stretch;
  padding: 0.75rem 0.9rem 0.85rem;
  border-bottom: 1px solid rgba(110, 150, 210, 0.12);
}

.doc-dfl__panel {
  border-radius: 12px;
  border: 1px solid rgba(94, 200, 255, 0.14);
  background: rgba(8, 14, 28, 0.55);
  padding: 0.65rem 0.7rem 0.7rem;
  min-width: 0;
}

.doc-dfl__h {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(190, 208, 240, 0.9);
}

.doc-dfl__stages {
  display: grid;
  gap: 0.35rem;
}

.doc-dfl__radio {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(110, 150, 210, 0.14);
  background: rgba(8, 14, 28, 0.4);
  font-size: 0.82rem;
  color: rgba(200, 220, 245, 0.94);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.doc-dfl__radio:has(input:checked) {
  border-color: rgba(46, 231, 242, 0.5);
  background: rgba(46, 231, 242, 0.1);
  color: rgba(230, 245, 255, 0.98);
}

.doc-dfl__radio input {
  accent-color: #2ee7f2;
  flex-shrink: 0;
  margin-top: 0.12rem;
}

.doc-dfl__radio-meta {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.66rem;
  font-weight: 500;
  color: rgba(150, 185, 230, 0.72);
}

.doc-dfl__radio:has(input:checked) .doc-dfl__radio-meta {
  color: rgba(140, 220, 230, 0.88);
}

.doc-dfl__controls {
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(110, 150, 210, 0.12);
  display: grid;
  gap: 0.4rem;
}

.doc-dfl__chk {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: rgba(190, 208, 240, 0.94);
  cursor: pointer;
}

.doc-dfl__chk input {
  accent-color: #2ee7f2;
}

.doc-dfl__kv {
  display: grid;
  gap: 0.42rem;
}

.doc-dfl__kv-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
  padding-top: 0.38rem;
  border-top: 1px solid rgba(110, 150, 210, 0.1);
}

.doc-dfl__kv-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.doc-dfl__kv-k {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(150, 185, 230, 0.7);
  text-transform: uppercase;
}

.doc-dfl__kv-v {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  line-height: 1.4;
  color: rgba(210, 228, 255, 0.92);
}

.doc-dfl__timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.65rem;
}

.doc-dfl__step {
  flex: 1 1 auto;
  min-width: 3.2rem;
  padding: 0.35rem 0.4rem;
  border-radius: 8px;
  border: 1px solid rgba(110, 150, 210, 0.14);
  background: rgba(6, 10, 20, 0.55);
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(140, 170, 210, 0.65);
}

.doc-dfl__step.is-active {
  border-color: rgba(46, 231, 242, 0.55);
  background: rgba(46, 231, 242, 0.14);
  color: rgba(220, 245, 255, 0.98);
}

.doc-dfl__step.is-done {
  border-color: rgba(72, 220, 180, 0.28);
  color: rgba(160, 210, 200, 0.85);
}

.doc-dfl__carriers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.doc-dfl__flag {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(110, 150, 210, 0.16);
  background: rgba(6, 12, 22, 0.55);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  line-height: 1.3;
  color: rgba(185, 210, 240, 0.9);
}

.doc-dfl__flag strong {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(150, 185, 230, 0.72);
  font-weight: 800;
}

.doc-dfl__flag.is-hot {
  border-color: rgba(46, 231, 242, 0.4);
  background: rgba(46, 231, 242, 0.08);
  color: rgba(220, 245, 255, 0.96);
}

.doc-dfl__flag.is-hot strong {
  color: rgba(140, 220, 230, 0.9);
}

.doc-dfl__flag.is-off {
  opacity: 0.55;
  border-color: rgba(110, 150, 210, 0.1);
  color: rgba(140, 165, 200, 0.7);
}

.doc-dfl__code {
  margin: 0.55rem 0 0;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(110, 150, 210, 0.14);
  background: rgba(4, 8, 16, 0.7);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.64rem;
  line-height: 1.5;
  color: rgba(180, 210, 245, 0.92);
  white-space: pre-wrap;
  min-height: 4.2rem;
}

.doc-dfl__caption {
  margin: 0;
  padding: 0.75rem 0.9rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.52;
  color: rgba(165, 188, 228, 0.82);
  border-top: 1px solid rgba(110, 150, 210, 0.1);
}

.doc-dfl__caption strong {
  color: rgba(210, 235, 255, 0.95);
  font-weight: 700;
}

@media (max-width: 980px) {
  .doc-dfl__bottom {
    grid-template-columns: 1fr;
  }

  .doc-dfl__top {
    padding: 0.65rem 0.65rem 0.75rem;
  }

  .doc-dfl__stage {
    height: auto;
    min-height: 280px;
    aspect-ratio: 16 / 11;
    max-height: 480px;
  }
}

@media (max-width: 560px) {
  .doc-dfl__stage {
    aspect-ratio: 5 / 4;
    min-height: 250px;
    max-height: 380px;
  }

  .doc-dfl__badge,
  .doc-dfl__chip {
    font-size: 0.58rem;
    padding: 0.26rem 0.4rem;
  }

  .doc-dfl__step {
    min-width: 2.8rem;
    font-size: 0.52rem;
  }
}