/* ===== DETAIL PESANAN — ACTIVE ORDER VIEW ===== */
/* File: public/assets/css/DetailPesananPage.css  */
/* Import di DetailPesananPage.jsx atau di index.html */

/* Main content area wrapper */
.dp-main-content {
  padding-left: 0;
  padding-right: 0;
}
@media (min-width: 992px) {
  .dp-main-content {
    padding: 0 32px;
  }
}

/* Row utama — padding top di sini agar sidebar & konten sama-sama turun */
.dp-main-row {
  padding-top: 12px;   /* mobile: sedikit jarak dari sub-header */
  padding-bottom: 80px; /* mobile: ruang untuk action bar fixed */
}
@media (min-width: 992px) {
  .dp-main-row {
    padding-top: 24px;
    padding-bottom: 40px;
  }
}

/* Sidebar kolom kiri */
.dp-sidebar-col {
  padding: 0;
}
@media (min-width: 992px) {
  .dp-sidebar-col {
    padding-right: 16px;
  }
}

/* buyer-order-content wrapper */
.buyer-order-content {
  padding: 0;
}
@media (min-width: 992px) {
  .buyer-order-content {
    padding: 0;
  }
}

/* ── Section card ──────────────────────────────────────────────────
   Setiap blok info: Informasi Pengiriman, Alamat, Produk, dll
─────────────────────────────────────────────────────────────────── */
.dp-process-section {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin: 0 16px 10px;
  border: 1px solid #eee;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
@media (min-width: 992px) {
  .dp-process-section {
    margin: 0 0 12px;
    padding: 18px 20px;
  }
}

/* Title tiap section */
.dp-process-section-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* ── Status highlight card ─────────────────────────────────────────
   Card paling atas berisi icon + label status aktif
─────────────────────────────────────────────────────────────────── */
.dp-process-highlight {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin: 16px 16px 10px;
  border: 1px solid #eee;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
@media (min-width: 992px) {
  .dp-process-highlight {
    margin: 0 0 12px;
    padding: 18px 20px;
  }
}

/* ── Pulse icon animasi (status: diproses, dikirim) ──────────────── */
.dp-pulse-container {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.dp-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0.25;
  animation: dp-pulse 1.6s ease-in-out infinite;
}

@keyframes dp-pulse {
  0%   { transform: scale(1);   opacity: 0.3; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.dp-pulse-icon {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

/* ── Icon box (status arrived — kotak, bukan lingkaran) ──────────── */
.dp-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ── Courier card ────────────────────────────────────────────────── */
.dp-courier-card {
  border: 1.5px solid #eee;
  border-radius: 12px;
  padding: 14px;
}

/* Badge status kurir (Menunggu Pick Up, Dalam Pengiriman, dll) */
.dp-courier-badge {
  font-size: 0.72rem;
  font-weight: 700;
  border: 1.5px solid;
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Thumbnail produk ────────────────────────────────────────────── */
.dp-process-thumb {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #f0f0f0;
  flex-shrink: 0;
}

/* ── Modal Lacak Paket — Timeline ───────────────────────────────── */
.dp-lacak-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 12px;
}

.dp-lacak-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 2px;
  padding-bottom: 24px;
  position: relative;
}

/* Garis vertikal penghubung antar item */
.dp-lacak-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: 0;
  width: 2px;
  background: #e0e0e0;
}
.dp-lacak-item.latest:not(:last-child)::before {
  background: #ff5200;
}

.dp-lacak-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ddd;
  border: 2px solid #ccc;
  grid-row: 1;
  grid-column: 1;
  margin-top: 2px;
  z-index: 1;
  position: relative;
}
.dp-lacak-item.latest .dp-lacak-dot {
  background: #ff5200;
  border-color: #ff5200;
  box-shadow: 0 0 0 4px #fff2ed;
}

.dp-lacak-date {
  grid-row: 1;
  grid-column: 2;
  font-size: 0.75rem;
  color: #aaa;
  line-height: 1.4;
}
.dp-lacak-item.latest .dp-lacak-date {
  color: #ff5200;
  font-weight: 600;
}

.dp-lacak-content {
  grid-row: 2;
  grid-column: 2;
  font-size: 0.83rem;
  color: #555;
  line-height: 1.5;
}
.dp-lacak-content strong {
  display: block;
  color: #222;
  font-weight: 700;
  margin-bottom: 2px;
}
.dp-lacak-item.latest .dp-lacak-content strong {
  color: #ff5200;
}

/* ── Sejajarkan sidebar kiri dengan konten kanan di desktop ── */
@media (min-width: 992px) {
  .detail-pesanan-wrapper .dp-sidebar-col .sidebar-account {
    margin-top: 24px;
  }
}
