/* ==========================================================================
   TraceTrack - Hub Staff Shipment Receiving Stylesheet (Phase 7 Hub Staff)
   Professional Glassmorphism, Micro-Animations, High-Contrast Typography
   ========================================================================== */

.hub-portal-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 80px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==========================================================================
   1. Hub Staff Header Banner
   ========================================================================== */
.hub-header-card {
  background: var(--glass-surface, rgba(255, 255, 255, 0.88));
  backdrop-filter: var(--glass-blur, blur(18px));
  -webkit-backdrop-filter: var(--glass-blur, blur(18px));
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-lg, 18px);
  padding: 20px 24px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hub-profile-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hub-avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
  flex-shrink: 0;
}

.hub-title-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hub-portal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-900, #0f172a);
  letter-spacing: -0.02em;
  margin: 0;
}

.hub-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #64748b;
}

.hub-scope-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 3px 10px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.hub-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: hubPulse 2s infinite;
}

@keyframes hubPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hub-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-hub-sync {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-hub-sync:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* ==========================================================================
   2. Hub Metrics 4-Grid Cards
   ========================================================================== */
.hub-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.hub-metric-card {
  background: var(--glass-surface, rgba(255, 255, 255, 0.88));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hub-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.hub-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.hub-metric-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.hub-metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-arrived { background: #ecfdf5; color: #059669; }
.icon-received { background: #eff6ff; color: #2563eb; }
.icon-sorting { background: #f5f3ff; color: #7c3aed; }
.icon-sorted { background: #f0fdf4; color: #059669; }
.icon-incoming { background: #fffbeb; color: #d97706; }
.icon-total { background: #f1f5f9; color: #475569; }

.hub-metric-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  font-family: 'JetBrains Mono', monospace;
}

.hub-metric-desc {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* ==========================================================================
   3. Barcode & AWB Rapid Scanner Bar
   ========================================================================== */
.hub-scanner-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
  backdrop-filter: blur(16px);
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  position: relative;
}

.scanner-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.scanner-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.scanner-heading svg {
  color: #d97706;
}

.scanner-hint {
  font-size: 0.75rem;
  color: #64748b;
}

.scanner-input-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.scanner-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.scanner-input-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  pointer-events: none;
}

.hub-scanner-input {
  width: 100%;
  padding: 14px 44px 14px 48px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  outline: none;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.hub-scanner-input:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.15);
}

.scanner-clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-clear-btn:hover {
  color: #334155;
  background: #f1f5f9;
}

.btn-scan-lookup {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-scan-lookup:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.4);
}

.sample-awb-chips {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: #64748b;
}

.sample-chip {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #0284c7;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sample-chip:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0369a1;
}

/* ==========================================================================
   4. Live Scan Result Card (Instant Receiving Action)
   ========================================================================== */
.scan-result-card {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.scan-result-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.scan-awb-badge {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1.1rem;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.scan-meta-details {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #64748b;
}

.scan-eligibility-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.75rem;
}

.eligibility-ready {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.eligibility-received {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.eligibility-uneligible {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.btn-receive-direct {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.btn-receive-direct:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.btn-receive-direct:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-startsort-direct {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transition: all 0.2s ease;
}

.btn-startsort-direct:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45);
}

.btn-completesort-direct {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  transition: all 0.2s ease;
}

.btn-completesort-direct:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.45);
}

/* ==========================================================================
   5. Incoming & Arrived Shipments Table Card
   ========================================================================== */
.hub-content-card {
  background: var(--glass-surface, rgba(255, 255, 255, 0.88));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.hub-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hub-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
}

.hub-tab-btn {
  background: none;
  border: none;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hub-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.tab-badge {
  background: #e2e8f0;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
}

.hub-tab-btn.active .tab-badge {
  background: #d97706;
  color: #ffffff;
}

.hub-table-search {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 0.82rem;
  background: #ffffff;
  min-width: 240px;
}

/* ==========================================================================
   Table Styles
   ========================================================================== */
.hub-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.hub-shipments-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
}

.hub-shipments-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1.5px solid #e2e8f0;
}

.hub-shipments-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #1e293b;
}

.hub-shipments-table tr:hover td {
  background: rgba(248, 250, 252, 0.8);
}

.awb-cell-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #0284c7;
  cursor: pointer;
}

.awb-cell-text:hover {
  text-decoration: underline;
}

.route-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.route-arrow {
  color: #94a3b8;
}

/* Badges */
.badge-hub-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-arrived { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-received { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-sorting { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.badge-sorted { background: #f0fdf4; color: #047857; border: 1px solid #bbf7d0; }
.badge-intransit { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-pickedup { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.badge-other { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

.table-action-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-table-detail {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-table-detail:hover {
  background: #e2e8f0;
}

.btn-table-receive {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #10b981;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-table-receive:hover {
  background: #059669;
  transform: translateY(-1px);
}

.btn-table-receive:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

.btn-table-startsort {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #7c3aed;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-table-startsort:hover {
  background: #6d28d9;
  transform: translateY(-1px);
}

.btn-table-completesort {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #0d9488;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-table-completesort:hover {
  background: #0f766e;
  transform: translateY(-1px);
}

.badge-ready-departure {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.73rem;
  font-weight: 800;
  background: #f0fdf4;
  color: #15803d;
  border: 1px dashed #22c55e;
}

/* Departure Action Buttons & Badges */
.btn-depart-direct {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  background: #2563eb;
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-depart-direct:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-table-depart {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #2563eb;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-table-depart:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.icon-departed {
  background: #eff6ff;
  color: #2563eb;
}

.badge-departed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.btn-exception-direct {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fcd34d;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-exception-direct:hover {
  background: #fef3c7;
  color: #92400e;
  transform: translateY(-1px);
}

.btn-resolve-direct {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-resolve-direct:hover {
  background: #d1fae5;
  color: #065f46;
  transform: translateY(-1px);
}

.btn-table-exception {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-table-exception:hover {
  background: #fef3c7;
  border-color: #fcd34d;
  transform: translateY(-1px);
}

.btn-table-resolve {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #059669;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-table-resolve:hover {
  background: #047857;
  transform: translateY(-1px);
}

.badge-onhold,
.badge-hub-status.badge-onhold {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 700;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.icon-exception {
  background: #fef2f2;
  color: #dc2626;
}

/* ==========================================================================
   6. Modals (Detail & Receive Confirmation)
   ========================================================================== */
.hub-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.hub-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.hub-modal-dialog {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  transform: translateY(20px) scale(0.98);
  transition: all 0.2s ease;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.hub-modal-overlay.active .hub-modal-dialog {
  transform: translateY(0) scale(1);
}

.hub-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.hub-modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.hub-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.hub-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hub-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: #f8fafc;
}

.btn-hub-cancel {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  cursor: pointer;
}

.btn-hub-cancel:hover {
  background: #e2e8f0;
}

.btn-hub-confirm {
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hub-confirm:hover {
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.btn-hub-confirm:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

/* Detail modal specifics */
.detail-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.detail-item-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.detail-item-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.detail-section-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 8px;
  margin-bottom: 4px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  padding-left: 20px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #cbd5e1;
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #d97706;
}

.timeline-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}

.timeline-time {
  font-size: 0.7rem;
  color: #64748b;
}

/* Visual Stepper Progress in Hub Detail Modal */
.hub-detail-stepper-card {
  transition: all 0.3s ease;
}

.hub-step-node {
  transition: transform 0.2s ease;
}

.hub-step-dot {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.hub-step-node.active .hub-step-dot {
  animation: pulse-hub-node 2s infinite ease-in-out;
}

@keyframes pulse-hub-node {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .hub-portal-wrapper {
    padding: 10px 10px 80px 10px;
  }
  .scanner-input-container {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-scan-lookup {
    justify-content: center;
  }
  .detail-summary-card {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Hub Table Pagination Component (10 rows/page)
   ========================================================================== */
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 12px 12px;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  box-sizing: border-box;
}

.pagination-info {
  color: #475569;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-info strong {
  color: #0f172a;
  font-weight: 700;
}

.pagination-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  user-select: none;
  font-family: inherit;
  line-height: 1;
}

.pagination-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #d97706;
}

.pagination-btn.active {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.25);
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
