/* ==========================================================================
   Praxys WMS — "01 · Toplu sipariş toplama" bölüm görseli: iki modlu izometrik depo rotası
   Yalnız praxys-wms.html yükler. İşaretleme: praxys-wms.html içinde.
   Kart sitenin .mock / .mock-bar dilini kullanır; renkler style.css token'larına bağlı. Küçük yazılar 13 px.
   ==========================================================================*/
/* bölüm görselleri sitede eğik çizilir (.prod-vis); en kötü köşede 11 px altına inmesin diye küçük yazılar 13 px (ölçüldü) */
.wmsr-card { --wmsr-fs: 13px; --wmsr-warn: #9a4a00; font-size: 13px; line-height: 1.4; }
.wmsr-in { container-type: inline-size; }
.wmsr-bar { flex-wrap: wrap; row-gap: 8px; padding: 9px 12px 9px 16px; }
.wmsr-bar b { white-space: nowrap; }

/* mod seçimi: tıklanır; otomatik geçişte etkin düğmede ilerleme çizgisi */
.wmsr-seg { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.wmsr-seg button { position: relative; padding: 4px 11px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: var(--wmsr-fs); line-height: 16px; white-space: nowrap; cursor: pointer; transition: background .25s, color .25s; }
.wmsr-seg button:hover { color: var(--tq-d); }
.wmsr-seg button.wmsr-on { background: var(--tq-l); color: var(--tq-d); font-weight: 600; }
.wmsr-seg button:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.wmsr-prog { position: absolute; left: 10px; right: 10px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--grad-brand); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; }
.wmsr-on .wmsr-prog { opacity: 1; }

/* sahne */
.wmsr-scene { position: relative; background: linear-gradient(180deg, var(--blue-50), #fff 78%); }
.wmsr-stage { position: relative; }
.wmsr-scene-svg { display: block; width: 100%; height: auto; }
.wmsr-tr-s .wmsr-halo { stroke: #6B7280; stroke-opacity: .12; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.wmsr-tr-s .wmsr-ln { stroke: #6B7280; stroke-width: 1.6; stroke-dasharray: 3 4; stroke-linecap: round; stroke-linejoin: round; }
.wmsr-tr-b .wmsr-halo { stroke: #4062F4; stroke-opacity: .16; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.wmsr-tr-b .wmsr-ln { stroke: url(#wmsr-gRoute); stroke-width: 2.4; stroke-dasharray: 0 6 0 6 18 7; stroke-linecap: round; stroke-linejoin: round; }
.wmsr-rl { position: absolute; transform: translate(-50%, -100%); display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 7px; background: var(--navy-800); box-shadow: 0 4px 10px -4px rgba(var(--navy-950-rgb), .5); color: #fff; font-size: 13.5px; line-height: 1; font-weight: 700; }
.wmsr-rl::after { content: ""; position: absolute; inset: -4px; border-radius: 10px; border: 2px solid var(--blue-500); opacity: var(--on, 0); }
.wmsr-st { position: absolute; transform: translate(-50%, -100%); padding: 2px 7px; border-radius: 7px; background: rgba(255, 255, 255, .95); border: 1px solid var(--blue-200); font-size: 13px; line-height: 16px; font-weight: 600; color: var(--navy-800); white-space: nowrap; }
.wmsr-ord { position: absolute; right: 2%; bottom: 4%; padding: 2px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; line-height: 17px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }

/* sayaçlar */
.wmsr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 12px 12px; }
.wmsr-stats > div { position: relative; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.wmsr-stats > div::after { content: ""; position: absolute; inset: -3px; border-radius: 14px; border: 2px solid var(--blue-500); opacity: var(--on, 0); }
.wmsr-stats small { display: block; font-size: var(--wmsr-fs); color: var(--muted); white-space: nowrap; }
.wmsr-stats b { display: block; font-size: 18px; line-height: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wmsr-card[data-mode="single"] .wmsr-stats b { color: var(--wmsr-warn); }
.wmsr-card[data-mode="batch"] .wmsr-stats b { color: var(--tq-d); }

@container (max-width: 400px) {
  .wmsr-bar { padding: 9px 10px; }
  .wmsr-seg button { padding: 4px 8px; }
  .wmsr-stats { gap: 6px; padding: 8px 10px 10px; }
  .wmsr-stats > div { padding: 6px 8px; }
  .wmsr-stats b { font-size: 16px; line-height: 22px; }
  .wmsr-st, .wmsr-ord { display: none; }
}
