/* -- Tracking results ------------------------------------------------------- */

#tracking-result {
  margin-top: 1.5rem;
}

.tr-flight-block {
  background: #ffffff;
  border: 1px solid #e0e4ea;
  border-radius: 6px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  animation: tr-slide-in 0.2s ease;
}

@keyframes tr-slide-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tr-flight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #1a1f2e;
  color: #ffffff;
}

.tr-flight-number {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.tr-flight-status {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.tr-ready      { color: #f59e0b; }
.tr-dispatched { color: #0066cc; }
.tr-arrived    { color: #00c48c; }

/* -- Table ------------------------------------------------------------------ */

.tr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.tr-table thead tr {
  background: #f4f6f9;
}

.tr-table th {
  padding: 9px 12px;
  border: 1px solid #e0e4ea;
  font-weight: 600;
  color: #4a5568;
  text-align: left;
  white-space: nowrap;
}

.tr-table td {
  padding: 8px 12px;
  border: 1px solid #e0e4ea;
  color: #1a1f2e;
}

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

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

.tr-tracking {
  font-weight: 600;
  color: #0066cc;
  white-space: nowrap;
}

/* -- Taken row -------------------------------------------------------------- */

.tr-taken td {
  opacity: 0.55;
  text-decoration: line-through;
  color: #8a97a8;
}

.tr-taken .tr-tracking,
.tr-taken .tr-status-cell {
  text-decoration: none;
  opacity: 1;
}

.tr-badge-taken {
  color: #00c48c;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
}

.tr-badge-pending {
  color: #f59e0b;
  font-size: 0.8rem;
  white-space: nowrap;
}

.tr-status-cell small {
  display: block;
  color: #8a97a8;
  font-size: 0.7rem;
  text-decoration: none;
}

/* -- States ----------------------------------------------------------------- */

.tracking-loading {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #8a97a8;
}

.tracking-loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #e0e4ea;
  border-top-color: #0066cc;
  border-radius: 50%;
  animation: tr-spin 0.7s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes tr-spin {
  to { transform: rotate(360deg); }
}

.tracking-empty {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #8a97a8;
}

.tracking-error {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #ff4d4d;
}