/* ── ORDERS SECTION (Modern style, renamed for HTML) ── */

/* Outer container – matches .TrackOrder-container */
.TrackOrder-container {
  background: white;
  width: 100%;
  max-width: 1200px;
  border-radius: 22px;
  margin: auto;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Heading inside the order box */
.TrackOrder-container h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #334155;
}
.TrackOrder-container h2 svg {
  width: 1.2em;
  height: 1.2em;
}

/* Table wrapper */
.order-table-container {
  overflow-x: auto;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.order-table th,
.order-table td {
  padding: 10px 10px;
  text-align: center;
  font-size: 0.87rem;
}

.order-table thead {
  background: linear-gradient(135deg, #444 0%, #333 100%);
}

.order-table th {
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.order-table tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.order-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.order-table tbody tr:hover {
  background: #fff9e0;
}

/* Empty state row (colspan) */
.order-table .no-orders {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
}
.order-table .no-orders svg {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}
.order-table .no-orders p {
  margin: 0;
  font-size: 0.9rem;
}

/* Status badges */
.delivered,
.processing,
.placed,
.failed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  color: white;
  min-width: 90px;
  height: 24px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 4px;
}

.beneficiary {
  font-weight: 700;
  color: #444;
}

.delivered {
  background: #34c759;
}

.processing {
  background: #ff9500;
}

.placed {
  background: #444;
}

.failed {
  background: #ff3b30;
}

.state-icon {
  width: 14px;
  height: 14px;
}

.processing .state-icon {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.type-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  background: #f0f0f2;
  color: #444;
  min-width: 90px;
  height: 24px;
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.order-time,
.order-date {
  font-size: 0.78rem;
  margin: 0;
  padding: 0;
}

/* Controls row */
.table-controls {
  gap: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  padding: 0 16px;
}

.show-entries {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  color: #444;
  font-size: 0.9rem;
  width: 100%;
  flex-wrap: wrap;
}

.show-entries select,
#orderSearch {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  background: white;
  transition: all 0.2s;
  color: #444;
}

.show-entries select:focus,
#orderSearch:focus {
  border-color: #ffcc00;
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.15);
}

#orderSearch {
  width: 200px;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
  gap: 10px;
  padding: 0 16px;
}

.pagination-container button {
  padding: 8px 16px;
  border-radius: 99px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: white;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  transition: all 0.2s;
  color: #444;
}

.pagination-container button:hover {
  background: #ffcc00;
  border-color: #e6b800;
  color: #444;
}

#prevPage,
#nextPage {
  padding: 8px 16px;
  border-radius: 99px;
  background: #ffcc00;
  border: none;
  color: #444;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

#prevPage:hover,
#nextPage:hover {
  background: #e6b800;
  transform: translateY(-1px);
}

#pageInfo {
  font-weight: 700;
  margin: 0 8px;
  font-size: 0.85rem;
  color: #666;
}