/* =============================================================
   Falcon Express — Design System
   Inter only · Light theme · shadcn-style tokens · clean
============================================================= */

/* ── Google Fonts — Inter only ──────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── CSS Variables ──────────────────────────────────────── */
:root {
  --bg:           #ffffff;
  --fg:           #0f0f0f;
  --card-bg:      #ffffff;
  --muted-bg:     #f4f4f5;
  --muted-fg:     #71717a;
  --border:       #e4e4e7;
  --input-border: #d1d1d6;
  --ring:         rgba(0,0,0,0.07);

  --primary:      #0f0f0f;
  --primary-fg:   #fafafa;
  --destructive:  #dc2626;

  --brand:        #002ba8;
  --brand-dark:   #001f7a;

  --radius:       6px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }

/* ── Card ───────────────────────────────────────────────── */
.shad-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.shad-card-header { padding: 16px 16px 0; }
.shad-card-title  { font-size: 13px; font-weight: 600; margin: 0 0 3px; }
.shad-card-desc   { font-size: 12px; color: var(--muted-fg); margin: 0; }
.shad-card-body   { padding: 16px; }
.shad-card-footer { padding: 0 16px 16px; display: flex; align-items: center; gap: 8px; }

/* ── Button ─────────────────────────────────────────────── */
.shad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.1s, background 0.12s;
  outline: none;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.shad-btn:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary); }
.shad-btn:disabled      { opacity: 0.45; pointer-events: none; }

.shad-btn-default    { background: var(--primary); color: var(--primary-fg); }
.shad-btn-default:hover { opacity: 0.82; }

.shad-btn-outline    { background: transparent; border: 1px solid var(--border); color: var(--fg); }
.shad-btn-outline:hover { background: var(--muted-bg); }

.shad-btn-ghost      { background: transparent; color: var(--fg); }
.shad-btn-ghost:hover { background: var(--muted-bg); }

.shad-btn-destructive { background: transparent; border: 1px solid #fca5a5; color: var(--destructive); }
.shad-btn-destructive:hover { background: #fef2f2; }

.shad-btn-brand      { background: var(--brand); color: #fff; }
.shad-btn-brand:hover { opacity: 0.9; }

.shad-btn-sm   { height: 28px; padding: 0 10px; font-size: 11px; }
.shad-btn-lg   { height: 38px; padding: 0 18px; font-size: 13px; }
.shad-btn-icon { width: 32px; padding: 0; }

/* ── Input ──────────────────────────────────────────────── */
.shad-input {
  display: block;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font-size: 13px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
  -webkit-appearance: none;
  appearance: none;
}
.shad-input::placeholder { color: var(--muted-fg); opacity: 1; }
.shad-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.shad-textarea {
  display: block;
  width: 100%;
  min-height: 80px;
  padding: 8px 10px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font-size: 13px;
  font-family: 'Inter', system-ui, sans-serif;
  resize: vertical;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
  -webkit-appearance: none;
  appearance: none;
}
.shad-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

/* ── Select ─────────────────────────────────────────────── */
.shad-select {
  display: block;
  width: 100%;
  height: 34px;
  padding: 0 32px 0 10px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2371717a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: var(--fg);
  font-size: 13px;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
}
.shad-select::-ms-expand { display: none; }
.shad-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

/* ── Label ──────────────────────────────────────────────── */
.shad-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 4px;
  font-family: 'Inter', system-ui, sans-serif;
}
.required { color: var(--destructive); }

/* ── Badge ──────────────────────────────────────────────── */
.shad-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  padding: 2px 9px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.shad-badge-outline     { border: 1px solid var(--border); color: var(--muted-fg); }
.shad-badge-success     { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.shad-badge-warning     { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.shad-badge-destructive { background: #fef2f2; color: var(--destructive); border: 1px solid #fecaca; }
.shad-badge-brand       { background: #fff7ed; color: var(--brand); border: 1px solid #fed7aa; }
.shad-badge-info        { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ── Separator ──────────────────────────────────────────── */
.shad-separator { height: 1px; background: var(--border); margin: 12px 0; }

/* ── Alert ──────────────────────────────────────────────── */
.shad-alert {
  display: flex; gap: 8px; align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px;
}
.shad-alert svg { flex-shrink: 0; margin-top: 1px; }
.shad-alert-destructive { background: #fef2f2; border-color: #fecaca; color: var(--destructive); }
.shad-alert-title { font-size: 13px; font-weight: 600; margin: 0 0 2px; }
.shad-alert-desc  { font-size: 12px; margin: 0; opacity: 0.85; }

/* ── Tabs ───────────────────────────────────────────────── */
.shad-tabs-list {
  display: flex;
  background: var(--muted-bg);
  border-radius: var(--radius);
  padding: 3px;
  gap: 2px;
}
.shad-tabs-trigger {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--muted-fg);
  background: transparent; border: none; cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.shad-tabs-trigger.active {
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.shad-tabs-content        { display: none; }
.shad-tabs-content.active { display: block; }

/* ── Progress ───────────────────────────────────────────── */
.shad-progress     { height: 8px; background: var(--muted-bg); border-radius: 9999px; overflow: hidden; }
.shad-progress-bar { height: 100%; background: var(--brand); border-radius: 9999px; transition: width 0.5s; }

/* ── Table ──────────────────────────────────────────────── */
.shad-table { width: 100%; border-collapse: collapse; font-size: 13px; font-family: 'Inter', system-ui, sans-serif; }
.shad-table th {
  text-align: left; font-size: 11px; font-weight: 600;
  color: var(--muted-fg); padding: 8px 12px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
  letter-spacing: 0.01em; text-transform: uppercase;
}
.shad-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle;
}
.shad-table tr:last-child td { border-bottom: none; }
.shad-table tbody tr:hover   { background: var(--muted-bg); }

/* ── Form group ─────────────────────────────────────────── */
.shad-form-group { display: flex; flex-direction: column; gap: 4px; }
.shad-section-label {
  font-size: 10px; font-weight: 600; color: var(--muted-fg);
  text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 8px;
}

/* =============================================================
   LAYOUT UTILITIES
============================================================= */
.container-app { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.flex            { display: flex; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.flex-1 { flex: 1; } .w-full { width: 100%; } .min-w-0 { min-width: 0; }
.text-xs  { font-size: 11px; }
.text-sm  { font-size: 12px; }
.text-muted { color: var(--muted-fg); }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.mt-2 { margin-top: 8px; }   .mt-3 { margin-top: 12px; }  .mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }.mb-3 { margin-bottom: 12px; }.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }.mb-6 { margin-bottom: 24px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.mono { font-family: 'Inter', system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =============================================================
   NAVIGATION
============================================================= */
.shad-nav,
.admin-nav {
  display: flex; align-items: center;
  height: 58px; padding: 0 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 9999; gap: 8px;
}
.shad-nav-logo,
.admin-nav-brand { display: flex; align-items: center; flex-shrink: 0; margin-right: 8px; }
.shad-nav-logo img,
.admin-nav-brand img { height: 40px; width: auto; }
.shad-nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* Inline nav search */
.nav-search {
  flex: 1; max-width: 280px;
  display: flex; align-items: center;
  height: 30px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  overflow: hidden; background: var(--bg);
}

.nav-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  padding: 0 10px; font-size: 12px; font-family: 'Inter', system-ui, sans-serif;
  color: var(--fg); height: 100%; -webkit-appearance: none;
}
.nav-search input::placeholder { color: var(--muted-fg); }
.nav-search button {
  flex-shrink: 0; height: 100%; padding: 0 10px;
  background: var(--brand); border: none; color: #fff;
  font-size: 11px; font-weight: 600; font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.1s;
}
.nav-search button:hover { opacity: 0.88; }

/* =============================================================
   PAGE HEADER
============================================================= */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 24px;
}
.page-header h1 { font-size: 16px; font-weight: 700; margin: 0 0 2px; letter-spacing: -0.02em; }
.page-header p  { font-size: 12px; color: var(--muted-fg); margin: 0; }
.page-header-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* =============================================================
   ADMIN FORM LAYOUT
============================================================= */
.admin-form-layout {
  display: grid; grid-template-columns: 1fr 260px; gap: 20px; align-items: start;
}
.admin-sidebar {
  display: flex; flex-direction: column; gap: 12px; position: sticky; top: 68px;
}
.logs-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.auth-center {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 16px; background: var(--muted-bg);
}

/* =============================================================
   GRID HELPERS
============================================================= */
.form-grid-2      { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid-3      { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.form-grid-1-auto { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.stat-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stat-card  { background: var(--muted-bg); border-radius: var(--radius); padding: 10px 12px; }
.stat-card-label { font-size: 10px; font-weight: 600; color: var(--muted-fg); text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 3px; }
.stat-card-value { font-size: 14px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }

.receipt-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 20px; }
.receipt-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

/* =============================================================
   TRACKING HERO (landing page)
============================================================= */
.track-hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 32px 16px; position: relative; overflow: hidden;
}
.track-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.32); z-index: 0;
}
.track-hero-content {
  position: relative; z-index: 1; width: 100%; max-width: 440px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
}
.track-hero-glass {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px; padding: 32px 28px;
  backdrop-filter: blur(20px); width: 100%;
}
.search-pill-wrap {
  display: flex; align-items: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 9999px; overflow: hidden;
  background: rgba(255,255,255,0.1); height: 44px; width: 100%;
}
.search-pill-wrap input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  padding: 0 18px; color: #fff; font-size: 14px;
  font-family: 'Inter', system-ui, sans-serif; -webkit-appearance: none;
}
.search-pill-wrap input::placeholder { color: rgba(255,255,255,0.45); }
.search-pill-wrap button {
  flex-shrink: 0; height: 100%; padding: 0 20px;
  background: var(--brand); border: none; cursor: pointer;
  color: #fff; font-weight: 700; font-size: 13px;
  font-family: 'Inter', system-ui, sans-serif;
  display: flex; align-items: center; gap: 6px; transition: opacity 0.1s;
}
.search-pill-wrap button:hover { opacity: 0.9; }
.search-pill-wrap button svg { width: 14px; height: 14px; }

/* =============================================================
   TRACKING RESULT PAGE  –  fully reworked
============================================================= */
.track-page { min-height: 100vh; background: var(--bg); }

/* Split layout: left panel + map */
.track-split {
  display: grid;
  grid-template-columns: 400px 1fr;
  min-height: calc(100vh - 52px);
}

/* Left info panel */
.track-panel {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;               /* sections handle own spacing */
  background: var(--bg);
}

/* Map pane */
.track-map { position: relative; background: var(--muted-bg); }
#map { height: 100%; min-height: 480px; width: 100%; }

/* ── Panel section wrapper ───────────────────── */
.tp-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.tp-section:first-child { padding-top: 0; }
.tp-section:last-child  { border-bottom: none; padding-bottom: 0; }

/* ── Mobile search (hidden on desktop) ──────── */
.tp-search {
  display: none;       /* shown via media query */
  align-items: center;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 40px;
  width: 100%;
  margin-bottom: 20px;
  background: var(--bg);
}
.tp-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  padding: 0 12px; font-size: 13px; font-weight: 400;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--fg); height: 100%; -webkit-appearance: none;
}
.tp-search input::placeholder { color: var(--muted-fg); }
.tp-search button {
  flex-shrink: 0; height: 100%; padding: 0 16px;
  background: var(--brand); border: none; color: #fff;
  font-size: 12px; font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer; white-space: nowrap; transition: opacity 0.1s;
  letter-spacing: 0.01em;
}
.tp-search button:hover { opacity: 0.88; }

/* ── Tracking number heading ─────────────────── */
.tp-label {
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--muted-fg); margin: 0 0 5px;
  font-family: 'Inter', system-ui, sans-serif;
}
.tp-code-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  flex-wrap: wrap;
}
.tp-code {
  font-size: 19px; font-weight: 700; color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: 0.04em;
  word-break: break-all;
}

/* ── Route bar ───────────────────────────────── */
.tp-route {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; font-size: 12px;
}
.tp-route-city {
  font-size: 12px; font-weight: 600; color: var(--fg);
  flex-shrink: 0; max-width: 38%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  font-family: 'Inter', system-ui, sans-serif;
}
.tp-route-line {
  flex: 1; height: 1px; background: var(--border); position: relative;
}
.tp-route-plane {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 16px; line-height: 1;
  background: var(--bg); padding: 0 4px;
}

/* ── Progress ────────────────────────────────── */
.tp-progress-wrap { margin-top: 12px; }
.tp-progress-meta {
  display: flex; justify-content: space-between; margin-top: 5px;
}
.tp-progress-meta span {
  font-size: 11px; font-weight: 500; color: var(--muted-fg);
  font-family: 'Inter', system-ui, sans-serif;
}
.tp-progress-pct { color: var(--fg) !important; font-weight: 600 !important; }

/* ── Tabs ────────────────────────────────────── */
.tp-tabs-wrap { margin-top: 0; }

/* ── Timeline ────────────────────────────────── */
.tl { list-style: none; padding: 0; margin: 0; position: relative; }
.tl::before {
  content: '';
  position: absolute;
  /* time-col(54px) + gap(10px) + dot-wrap-half(10px) - line-half(1px) = 73px */
  left: 72px;
  top: 8px; bottom: 8px;
  width: 4px; background: var(--border);
}
.tl-node {
  display: flex; align-items: flex-start;
  gap: 10px; padding-bottom: 20px; position: relative;
}
.tl-node:last-child { padding-bottom: 0; }

.tl-time {
  width: 54px; flex-shrink: 0; text-align: right; padding-top: 2px;
}
.tl-time-day  {
  font-size: 11px; font-weight: 600; color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
}
.tl-time-hour {
  font-size: 10px; font-weight: 500; color: var(--muted-fg);
  font-family: 'Inter', system-ui, sans-serif;
  margin-top: 1px;
}

.tl-dot-wrap {
  width: 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding-top: 3px; position: relative; z-index: 1;
}
.tl-dot {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--border); border: 2.5px solid var(--bg);
  box-shadow: 0 0 0 1.5px var(--border);
  flex-shrink: 0;
}
.tl-node.current .tl-dot {
  width: 15px; height: 15px;
  background: var(--brand); border-color: var(--bg);
  box-shadow: 0 0 0 3px rgba(0,43,168,0.18);
}
.tl-node.current .tl-dot::after {
  content: '';
  position: absolute; inset: -5px; border-radius: 50%;
  
}
@keyframes tl-pulse {
  0%,100% { transform: scale(1);    opacity: 0.3; }
  50%      { transform: scale(1.6); opacity: 0; }
}

.tl-body { flex: 1; min-width: 0; }
.tl-location {
  font-size: 12px; font-weight: 600; margin: 0 0 2px; color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
}
.tl-event {
  font-size: 11px; font-weight: 400; color: var(--muted-fg); margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
}
.tl-node.current .tl-location { color: var(--brand); }

/* ── Stat grid (Shipment tab) ────────────────── */
.stat-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stat-card  { background: var(--muted-bg); border-radius: var(--radius); padding: 10px 12px; }
.stat-card-label {
  font-size: 10px; font-weight: 600; color: var(--muted-fg);
  text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 4px;
  font-family: 'Inter', system-ui, sans-serif;
}
.stat-card-value {
  font-size: 14px; font-weight: 700; margin: 0; color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif; letter-spacing: -0.01em;
}

/* ── Detail rows (Shipment/Billing tab) ──────── */
.det-label {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted-fg); margin: 0 0 3px;
  font-family: 'Inter', system-ui, sans-serif;
}
.det-val {
  font-size: 13px; font-weight: 500; margin: 0; color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
}

/* ── Billing rows ────────────────────────────── */
.bill-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.bill-row span:first-child {
  font-size: 13px; font-weight: 400; color: var(--muted-fg);
  font-family: 'Inter', system-ui, sans-serif;
}
.bill-row span:last-child {
  font-size: 13px; font-weight: 600; color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
}

/* ── Plane marker ────────────────────────────── */
.plane-wrap {
  width: 40px; height: 40px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.plane-wrap::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--brand); opacity: 0.18; animation: plane-pulse 2s infinite;
}
@keyframes plane-pulse {
  0%  { transform: scale(0.8); opacity: 0.25; }
  70% { transform: scale(1.8); opacity: 0; }
  100%{ opacity: 0; }
}
.plane-wrap img { width: 28px; height: 28px; position: relative; z-index: 1; }

/* ── Not found ───────────────────────────────── */
.not-found-wrap {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 60vh;
  text-align: center; gap: 12px; padding: 32px;
}
.not-found-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--muted-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-fg);
}

/* =============================================================
   PRINT RECEIPT
============================================================= */
.print-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.receipt-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.field-label {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted-fg); margin: 0 0 3px;
  font-family: 'Inter', system-ui, sans-serif;
}
.field-val { font-size: 13px; font-weight: 600; margin: 0; font-family: 'Inter', system-ui, sans-serif; }
.divider   { height: 1px; background: var(--border); margin: 20px 0; }

/* =============================================================
   RESPONSIVE
============================================================= */

/* Tablet ≤860px */
@media (max-width: 860px) {
  .track-split  { grid-template-columns: 1fr; min-height: auto; }
  .track-panel  { border-right: none; border-bottom: 1px solid var(--border); }
  #map          { min-height: 300px !important; }
  .admin-form-layout { grid-template-columns: 1fr; }
  .logs-layout       { grid-template-columns: 1fr; }
  .admin-sidebar     { position: static; }
}

/* Mobile ≤640px */
@media (max-width: 640px) {
  .container-app    { padding: 0 14px; }
  .track-hero-glass { padding: 24px 18px; }
  .track-panel      { padding: 16px; }

  /* show in-panel search, hide nav search */
  .tp-search                  { display: flex; }
  .nav-search-desktop         { display: none !important; }

  .form-grid-2                { grid-template-columns: 1fr; }
  .form-grid-3                { grid-template-columns: 1fr; }
  .form-grid-2.keep-2         { grid-template-columns: 1fr 1fr; }
  .receipt-grid-3             { grid-template-columns: 1fr 1fr; }
  .receipt-grid-2             { grid-template-columns: 1fr; }
  .page-header                { flex-direction: column; align-items: flex-start; }
  .page-header-actions        { width: 100%; }
  .admin-nav, .shad-nav       { padding: 0 14px; gap: 6px; }
  .shad-tabs-trigger          { font-size: 11px; padding: 5px 6px; }

  /* tighten timeline on small screens */
  .tl::before { left: 62px; }  /* time(44px)+gap(10px)+dot-half(10px) */
  .tl-time    { width: 44px; }
}

/* Very small ≤420px */
@media (max-width: 420px) {
  .receipt-grid-3     { grid-template-columns: 1fr; }
  .nav-search-hide-xs { display: none; }
  .tp-code            { font-size: 19px; }
}

/* Print */
@media print {
  @page { size: A4; margin: 16mm; }
  .print-bar, .shad-btn, .shad-nav, .admin-nav { display: none !important; }
}

/* Leaflet override */
.leaflet-control-attribution { display: none !important; }

/* Desktop: nav search always visible */
.nav-search-desktop { display: flex; }

/* =============================================================
   TRACK PAGE — Panel search pill & nav desktop actions
   Screenshot: white pill, orange outline, dark-navy icon button
============================================================= */

/* ── Desktop nav: contact + quote buttons ─────────────── */
.nav-desktop-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;   /* push to right before .shad-nav-actions */
  margin-right: 8px;
}

/* ── Panel search pill ────────────────────────────────── */
/* Always shown in the panel, above the TN label          */
.panel-search {
  display: flex;
  align-items: center;
  height: 52px;
  border: 2.5px solid var(--brand);   /* orange border — screenshot */
  border-radius: 9999px;              /* full pill                  */
  overflow: hidden;
  background: #fff;
  margin-bottom: 20px;
  box-shadow: 0 0 0 4px rgba(0,43,168,0.08); /* soft orange glow    */
  transition: box-shadow 0.15s;
}
.panel-search:focus-within {
  box-shadow: 0 0 0 5px rgba(0,43,168,0.16);
}
.panel-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 400;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--fg);
  height: 100%;
  -webkit-appearance: none;
  caret-color: var(--brand);
}
.panel-search input::placeholder {
  color: var(--muted-fg);
  opacity: 1;
}
.panel-search button {
  flex-shrink: 0;
  width: 52px;
  height: 52px;        /* match container so it bleeds to edge   */
  margin: -1px;        /* cancel border bleed                    */
  background: var(--brand-dark);  /* dark navy — screenshot       */
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.15s;
  flex-shrink: 0;
}
.panel-search button:hover {
  background: #053b80;
}

/* ── Hide old mobile tp-search (replaced by panel-search) */
.tp-search { display: none !important; }

/* ── Responsive adjustments ──────────────────────────── */
@media (max-width: 640px) {
  /* Hide desktop nav actions on mobile */
  .nav-desktop-actions { display: none; }

  /* Panel search — slightly shorter on small screens */
  .panel-search { height: 46px; }
  .panel-search button { width: 46px; height: 46px; }
  .panel-search input  { font-size: 13px; padding: 0 16px; }
}

@media (min-width: 641px) {
  /* On desktop the panel search is always shown */
  .panel-search { display: flex; }
}
