/* ==========================================================================
   Gönderi (Sevkiyat) Detay Sayfası özel stilleri
   Tüm sınıflar "sdx-" prefix'i taşır — Bootstrap/tema sınıflarıyla çakışmaz.
   Sadece Themes/<Tema>/Views/Order/ShipmentDetails.cshtml tarafından kullanılır.
   Kart/tablo ortak parçaları için order-details.css'teki "odx-" sınıfları
   yeniden kullanılır (bu sayfada da yüklüdür).
   ========================================================================== */

.sdx,
.sdx * {
  box-sizing: border-box;
}

/* ---------- Başlık satırı ---------- */
.sdx-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
}

.sdx-page-head > .generalTitle,
.sdx-page-head > .sdx-title {
  margin: 0;
  flex: 1 1 auto;
  border-left: 3px solid var(--theme-color-primary, #c0392b) !important;
  border-bottom: none;
  padding-left: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #222;
  text-align: left;
}

.sdx-back-link {
  color: var(--theme-color-primary, #c0392b);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.sdx-back-link:hover {
  text-decoration: underline;
}

/* ---------- Durum rozetleri ---------- */
.sdx-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
}

.sdx-badge-warn {
  background: #fff7e6;
  color: #b97909;
  border-color: #f3dfa8;
}

.sdx-badge-info {
  background: #e8f1fd;
  color: #2371c9;
  border-color: #c3daf5;
}

.sdx-badge-ok {
  background: #e8f7ee;
  color: #1e9e50;
  border-color: #bfe8cd;
}

/* ---------- Hero özet kartı ---------- */
.sdx-hero {
  background: #fff;
  border: 1px solid #e4e6ea;
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 16px;
}

.sdx-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.sdx-hero-top .sdx-lbl {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.sdx-hero-top .sdx-val {
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

/* ---------- İlerleme adımları ---------- */
.sdx-steps {
  display: flex;
  align-items: center;
  margin: 6px 0 4px;
}

.sdx-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.sdx-step::before {
  content: "";
  position: absolute;
  top: 13px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: #e6e8eb;
}

.sdx-step:first-child::before {
  display: none;
}

.sdx-step.done::before,
.sdx-step.active::before {
  background: #1e9e50;
}

.sdx-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e6e8eb;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.sdx-step.done .sdx-dot {
  background: #1e9e50;
}

.sdx-step.active .sdx-dot {
  background: #fff;
  border: 3px solid #1e9e50;
  color: #1e9e50;
}

.sdx-step .sdx-step-lbl {
  font-size: 11px;
  color: #999;
  margin-top: 6px;
}

.sdx-step.done .sdx-step-lbl,
.sdx-step.active .sdx-step-lbl {
  color: #333;
  font-weight: 600;
}

/* ---------- Hero alt meta satırı ---------- */
.sdx-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  border-top: 1px solid #f0f1f3;
  padding-top: 14px;
  margin-top: 14px;
  font-size: 13px;
}

.sdx-hero-meta .sdx-k {
  color: #999;
  margin-right: 6px;
}

.sdx-hero-meta .sdx-v {
  font-weight: 600;
  color: #333;
}

.sdx-hero-meta .sdx-v a {
  color: var(--theme-color-primary, #c0392b);
  text-decoration: none;
}

/* ---------- Dikey timeline (kargo hareketleri) ---------- */
.sdx-timeline {
  padding: 18px 20px;
}

.sdx-t-item {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 20px;
}

.sdx-t-item:last-child {
  padding-bottom: 0;
}

.sdx-t-item::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: #e6e8eb;
}

.sdx-t-item:last-child::before {
  display: none;
}

.sdx-t-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1e9e50;
  color: #fff;
  flex: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-top: 2px;
}

.sdx-t-event {
  font-weight: 600;
  font-size: 14px;
  color: #222;
}

.sdx-t-meta {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 576px) {
  .sdx-step .sdx-step-lbl {
    font-size: 10px;
  }

  .sdx-hero-top .sdx-val {
    font-size: 15px;
  }
}
