/* ht-fast.css — pager, filter box and progress bar injected by ht-fast.js.
   Deliberately scoped to .htf-* so it cannot collide with portal-theme.css. */

.htf-hide { display: none !important; }

.htf-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 10px 0 18px;
  padding: 9px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 12.5px;
  color: #475569;
}

.htf-pager-left,
.htf-pager-right { display: flex; align-items: center; gap: 8px; }

.htf-search {
  width: 220px;
  max-width: 46vw;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  color: #0f172a;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.htf-search:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}

.htf-count {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
}

.htf-size {
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: #334155;
  cursor: pointer;
}

.htf-btn {
  min-width: 32px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background .12s, border-color .12s, opacity .12s;
}
.htf-btn:hover:not(:disabled) { background: #eef2ff; border-color: #a5b4fc; }
.htf-btn:disabled { opacity: .38; cursor: default; }

.htf-page {
  min-width: 108px;
  text-align: center;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}

/* thin top progress bar while /api calls are in flight */
.htf-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  z-index: 2147483647;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.htf-bar.on {
  opacity: 1;
  animation: htf-bar-run 1.4s ease-in-out infinite;
}
@keyframes htf-bar-run {
  0%   { transform: scaleX(0);   }
  55%  { transform: scaleX(.75); }
  100% { transform: scaleX(1);   }
}

@media (max-width: 720px) {
  .htf-pager { justify-content: center; }
  .htf-search { width: 100%; max-width: none; }
  .htf-pager-left { width: 100%; }
}

@media print {
  .htf-pager, .htf-bar { display: none !important; }
  .htf-hide { display: table-row !important; }
}

/* ==========================================================================
   ht-track.js — live BlueDart status chips and scan-history modal
   ========================================================================== */

.htt-bar-solo { margin: 8px 0; }

.htt-go { width: auto; padding: 0 12px; font-size: 12px; font-weight: 600; }

.htt-chip {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1.6;
  white-space: nowrap;
  cursor: pointer;
  vertical-align: middle;
  border: 1px solid transparent;
}
.htt-chip:hover { filter: brightness(.96); }
.htt-ok   { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.htt-transit { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.htt-warn { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.htt-info { background: #e2e8f0; color: #334155; border-color: #cbd5e1; }
.htt-err  { background: #fee2e2; color: #991b1b; border-color: #fecaca; cursor: help; }

.htt-modal-back {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 2147483000;
}
.htt-modal {
  background: #fff; border-radius: 18px; width: 100%; max-width: 620px;
  max-height: 88vh; overflow: auto;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.4);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
.htt-modal-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 20px 14px; border-bottom: 1px solid #f1f5f9;
}
.htt-modal-title { font-weight: 800; font-size: 15px; color: #0f172a; }
.htt-modal-sub { font-size: 12px; color: #64748b; margin-top: 3px; }
.htt-x {
  margin-left: auto; width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid #e2e8f0; background: #f8fafc; color: #64748b;
  font-size: 18px; line-height: 1; cursor: pointer;
}

.htt-banner { margin: 14px 20px; padding: 12px 14px; border-radius: 12px; font-size: 13px; }
.htt-b-ok   { background: #ecfdf5; color: #065f46; }
.htt-b-transit { background: #eff6ff; color: #1e40af; }
.htt-b-warn { background: #fffbeb; color: #92400e; }
.htt-b-info { background: #f8fafc; color: #334155; }
.htt-when { opacity: .75; font-weight: 500; }

.htt-meta {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; padding: 0 20px 14px;
}
.htt-meta-k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: #94a3b8; font-weight: 700; }
.htt-meta-v { font-size: 12.5px; color: #0f172a; margin-top: 2px; word-break: break-word; }

.htt-scans { border-top: 1px solid #f1f5f9; padding: 6px 0 14px; }
.htt-scan { padding: 10px 20px; border-bottom: 1px solid #f8fafc; }
.htt-scan-w { font-size: 13px; font-weight: 600; color: #0f172a; }
.htt-scan-m {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 11.5px; color: #64748b; margin-top: 3px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.htt-scan-t { color: #94a3b8; }
.htt-empty { padding: 24px 20px; text-align: center; color: #94a3b8; font-size: 13px; }
