.tracking-date {
  margin-top: 6px;
  font-size: 13px;
  color: #555;
  font-weight: 500;
}
.tracking-wrapper {
width: 94%;
}

/* wrapper centering */
.container-center {
  display: flex;
  justify-content: center;
  padding: 18px 12px;
  box-sizing: border-box;
}

/* Order Info Card */
.order-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 18px 22px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #333;
  max-width: 920px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 18px;
  border-radius: 12px; 
  border-left: 5px solid #a30745;
}
.order-info p {
  margin: 6px 0;
  display: flex;
  align-items: flex-start;
}
.order-info strong {
  font-weight: 700;
  color: #111;
  width: 150px;
  display: inline-block;
  flex-shrink: 0;
}
.order-info span { flex: 1; }



.tracking-line {
  position: relative;
  display: flex;
  gap: 0;
  align-items: flex-start;
  justify-content: space-between;
}

/* horizontal connecting line */
.tracking-line::before {
  content: "";
  position: absolute;
  left: 24px;      /* start after icon center */
  right: 24px;     /* end before icon center */
  top: 34px;       /* position aligned with icon center */
  height: 4px;
  background: #eee;
  z-index: 1;
  border-radius: 4px;
}

/* each step in desktop layout */
.erpsteps {
  z-index: 2;
  flex: 1;
  text-align: left;
  padding: 12px 14px;
  box-sizing: border-box;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

/* icon circle */
.tracking-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  border: 4px solid #fff; /* create separation from line */
}

/* text area */
.tracking-content {
  display: block;
}
.tracking-status {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 16px;
}
.tracking-message {
  color: #666;
  font-size: 14px;
  line-height: 1.3;
}

/* states */
.tracking-step.completed .tracking-icon { background: #a30745; }
.tracking-step.active    .tracking-icon { background: #8bc53d; }

.tracking-step.pending .tracking-icon {
    background: #c1c1c1;
    color: #fff;
}

/* For smaller screens: stack steps vertically with icon left and content right */
@media (max-width: 768px) {

  .order-info { grid-template-columns: 1fr; padding: 14px; }
  .order-info strong { width: 120px; }

  /* remove horizontal line */
  .tracking-line::before { display: none; }

  /* stack the steps vertically */
  .tracking-line {
    display: block;
  }
  .erpsteps {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 10px;
    border-bottom: 1px solid #f0f0f0;
  }
  .tracking-step:last-child { border-bottom: 0; }

  .tracking-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    font-size: 18px;
    border: 3px solid #fff;
  }
  
  .erpstepsicons{
      margin: 0px !important;
  }
  

  .tracking-status { font-size: 15px; }
  .tracking-message { font-size: 13px; color: #666; }
}

.erpsteps.cancelled .tracking-icon {
    background-color: #dc3545; /* red */
    color: #fff;
    border-color: #dc3545;
}

.erpsteps.cancelled .tracking-status {
    color: #dc3545;
    font-weight: bold;
}
