.tracking-container {
  min-height: 400px;
  padding: 8rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-link.active {
  color: #f8a03c !important;
  font-weight: 500;
  border: 2px solid #f8a03c;
  border-radius: 20px;
  padding: 6px 16px !important;
}
.tracking-header {
  background-color: #f8a03c;
  color: white;
  padding: 1.5rem;
  opacity: 0.7;
}
.tracking-events {
  background: white;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.timeline {
  position: relative;
  padding: 1rem 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e9ecef;
}
.timeline-item {
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  border-bottom: 1px solid #e9ecef;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f8a03c;
  border: 2px solid white;
}
.timeline-item.active::before {
  background: #28a745;
  width: 14px;
  height: 14px;
  left: 14px;
}
.timeline-date {
  color: #6c757d;
  font-size: 0.9rem;
}
.location-icon {
  color: #6c757d;
  margin-right: 0.5rem;
}
.carrier-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.2rem;
  color: white;
}
.timezoneSelect {
  border: none;
  padding: 0.12em 0.65em;
}

#reslutsBox {
  display: flex;
}

/* #trackingList {
  width: 250px;
  margin-right: 30px;
  overflow-x: auto;
} */

#trackingList li {
  cursor: pointer;
}

#trackingList li.trackActive {
  color: #f8a03c;
}

#trackingResults {
  width: 0;
  flex: 1;
}
.form-control {
  height: 3.5rem;
  min-height: 3.5rem !important;
}
.input-group-box {
  position: relative;
}

.trackingCount {
  position: absolute;
  z-index: 999;
  right: 5.5rem;
  bottom: 0.2rem;
  color: #999;
}

.order-list {
  margin-bottom: 20px;
}

.tracking-header {
  position: relative;
  border-bottom: 1px solid #fff;
}

.operate-group {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translate(0, -50%);
}

.order-list > div:first-child .tracking-result .tracking-header {
  border-radius: 8px 8px 0 0;
  opacity: 1;
}

.order-list > div:last-child .tracking-result .tracking-header {
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}

.tracking-header.showTrack {
  border-bottom-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.btn.btn-operate {
  padding: 0.3rem 0.6rem;
}

.lastTrashShow {
  font-weight: 500;
  margin-top: 0.1rem;
}

#mainTrackingInput {
  border-color: var(--primary-color);
  resize: none;
}

@media screen and (max-width: 576px) {
  .order-list {
    margin-bottom: 10px;
  }
  .tracking-header {
    padding: 0.6rem;
  }
  .ms-2 {
    margin-left: 0 !important;
  }
  .badge {
    font-size: 0.65rem;
  }
  .operate-group {
    position: relative;
    transform: translate(0, 0);
    right: 0;
    top: 0;
  }
  .operate-group .btn-operate {
    background-color: transparent;
    display: block;
    width: 100%;
    text-align: left;
    color: white;
    border: none;
    font-size: 0.8rem;
    padding: 0.3rem 0 0;
    border-top: 1px solid #fff;
    border-radius: 0;
    margin-top: 0.2rem;
    position: relative;
  }
  .operate-group .btn-operate i {
    position: absolute;
    right: 0;
    top: 0.55rem;
  }
  .tracking-container.with-results {
    margin-bottom: 0;
  }
  .mb-4 {
    margin-bottom: 1rem !important;
  }
  #mainTrackingInput {
    height: 6rem;
  }
  .input-group-box .btn {
    margin-bottom: 0;
  }
  .trackingCount {
    right: 0.5rem;
    bottom: 2.5rem;
  }

  .modal-dialog-positioned {
    top: 50% !important;
    transform: translate(0, -50%) !important;
  }
  .modal-body {
    max-height: 70vh;
    overflow-y: auto;
  }
}
.bg-light {
  color: #888 !important;
}
@media screen and (min-width: 576px) {
  .lastTrashShow {
    display: flex;
    margin-top: 0.3rem;
    font-size: 1.2rem;
  }
  .lastTrashShow > div:first-child {
    margin-right: 0.5rem;
  }
  .input-group-box .btn {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    z-index: 999;
    padding: 0.25rem 0.5rem;
    border-top-left-radius: var(--border-radius) !important;
    border-bottom-left-radius: var(--border-radius) !important;
  }
  #mainTrackingInput {
    height: 8rem;
  }
}

#reslutsBox {
  display: none;
}

.input-group-box .btn:focus {
  z-index: 999 !important;
}
