:root {
  --pr-navy: #0f172a;
  --pr-teal: #14b8a6;
  --pr-teal-dark: #0d9488;
  --pr-gray: #f5f7fa;
  --pr-border: #e5e7eb;
}
* { -webkit-tap-highlight-color: transparent; }
body {
  background: var(--pr-gray);
  color: var(--pr-navy);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
.text-navy { color: var(--pr-navy) !important; }
.text-teal { color: var(--pr-teal) !important; }

.brand-logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--pr-teal), var(--pr-teal-dark));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}

.btn-teal { background: var(--pr-teal); border-color: var(--pr-teal); color: #fff; }
.btn-teal:hover, .btn-teal:focus { background: var(--pr-teal-dark); border-color: var(--pr-teal-dark); color: #fff; }
.btn-outline-teal { color: var(--pr-teal); border-color: var(--pr-teal); }
.btn-outline-teal:hover { background: var(--pr-teal); color: #fff; }

.card { border: 1px solid var(--pr-border); border-radius: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.card-stat { transition: transform .15s ease; }
.card-stat:hover { transform: translateY(-2px); }
.stat-num { font-size: 1.8rem; font-weight: 700; color: var(--pr-navy); line-height: 1.1; }
.stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; font-weight: 600; }

.nav-link { color: var(--pr-navy) !important; font-weight: 500; }
.nav-link:hover, .nav-link.active { color: var(--pr-teal) !important; }

.form-control:focus, .form-select:focus {
  border-color: var(--pr-teal);
  box-shadow: 0 0 0 .2rem rgba(20,184,166,.15);
}

/* Driver mobile-first */
.driver-action-btn {
  min-height: 64px; font-size: 1.05rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 12px; width: 100%;
}
.delivery-card {
  border-left: 4px solid var(--pr-teal);
  transition: box-shadow .15s ease;
}
.delivery-card:active { box-shadow: 0 4px 12px rgba(20,184,166,.25); }

/* QR scanner */
#qr-reader { border-radius: 14px; overflow: hidden; background:#000; }
#qr-reader video { border-radius: 14px; width: 100% !important; height: auto !important; }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: var(--pr-border);
}
.timeline-item { position: relative; padding-bottom: 1.1rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -24px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--pr-teal);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--pr-border);
}
.timeline-time { font-size: .72rem; color: #6b7280; font-weight: 600; }
.timeline-title { font-weight: 600; color: var(--pr-navy); }

.scan-btn { font-size: 1.15rem; padding: 1rem 1.5rem; font-weight: 600; }

@media (max-width: 575.98px) {
  .stat-num { font-size: 1.4rem; }
  .container-fluid { padding-left: .75rem !important; padding-right: .75rem !important; }
}