/**
 * Osan Air Base (APO AP 96266) - PSC 3, Bldg 701
 * Stylesheet: Tactical Visual Enhancements & Manifest Layout (styles.css)
 * Build Version: v2.6.7 (Build 2026.11.22)
 * 
 * Capabilities:
 *  - Modal Live Flash-Update Animation (.modal-flash-update) for instant deep-link refresh
 *  - 3-Column Equal-Height Clamping & Momentum Scrolling for LITE Row 2
 *  - LITE Column 1 2-Tab Switcher (.intel-col1-tab, .active-col1-tab) & Calibration Panel
 *  - LITE Multi-Select Status Toggle Chips (.intel-status-chip, .active-status-chip, incl. UPDATED)
 *  - LITE Source Filter Pills (incl. PUSH)
 *  - Interactive Velocity Gauge Track & Zone Hover Styling (.intel-gauge-track, .intel-zone)
 *  - Live Dynamic Hover Telemetry Readout (#intelHoverTelemetryDisplay)
 *  - Mobile Phone Alert Checkboxes & Push Toggle Panel Styling
 *  - Compressed Origin-Grouped Nodal Arc Cards (.intel-nodal-origin-card)
 *  - Dual-Zone All-Time System Velocity Card (Air Lift vs Ocean Sealift)
 *  - Logistics Intelligence & Telemetry Engine Fullscreen Modal Styling (#intelligenceModal)
 *  - Hermetic Background Scroll Lock: Prevents background scroll chaining on html & body
 *  - Modal Inline Description & Store Tag Editing Control Styles
 *  - Desktop Header Search Bar Focus & Hover Accents
 *  - Interactive Directed Logistics Network Graph (DAG) Fullscreen Layout
 *  - Active Toolbar Toggle States (.active-toolbar-toggle for Metrics & Choke Points)
 *  - Member Print Stylesheet (@media print) for Counter Reference Slips
 */

/* ==========================================================================
   1. GLOBAL THEME, PWA SAFE-AREAS & HERMETIC SCROLL LOCKING
   ========================================================================== */

:root {
  --color-defense-bg: #070b12;
  --color-defense-surface: #0c1322;
  --color-defense-border: #16223b;
  --color-accent-cyan: #38bdf8;
  --color-accent-amber: #f59e0b;
  --color-accent-purple: #c084fc;
  --color-accent-emerald: #10b981;
  --color-accent-maritime: #06b6d4; /* Transpacific Surface Sealift Ocean Cyan */
  --color-accent-danger: #ef4444;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--color-defense-bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.02) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(16, 185, 129, 0.02) 0px, transparent 50%);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
  
  /* Bottom safe-area spacing to clear iOS Home Indicator */
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* Header Safe Area: Expanded Top Buffer Prevents Dynamic Island & Top Fade Collisions */
header.safe-top {
  padding-top: max(1.15rem, calc(env(safe-area-inset-top, 0px) + 0.75rem));
  padding-left: max(0.75rem, env(safe-area-inset-left, 0.75rem));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0.75rem));
}

@media (max-width: 767px) {
  header.safe-top {
    padding-top: max(2.25rem, calc(env(safe-area-inset-top, 0px) + 1.25rem)) !important;
  }
}

/* Modals Safe Top Buffer: Pushes Search & Dialogs Down Under Dynamic Island */
.safe-modal-top {
  padding-top: max(3.5rem, calc(env(safe-area-inset-top, 0px) + 2.25rem)) !important;
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px)) !important;
}

@media (max-width: 767px) {
  #timelineModal {
    height: 100%;
    height: 100dvh;
    padding-top: max(4.25rem, calc(env(safe-area-inset-top, 0px) + 2.75rem)) !important;
    padding-bottom: max(1.5rem, calc(env(safe-area-inset-bottom, 0px) + 0.75rem)) !important;
  }
}

/* Scroll Lock Preserving Exact Background Page Scroll Offset on iOS WebKit */
html.modal-open-scroll-lock {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body.modal-open-scroll-lock {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  overflow: hidden !important;
  overscroll-behavior: contain !important;
}

/* Scroll containment helper for modal cards */
.overscroll-contain {
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch;
}

/* Custom Sleek Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #090e18;
}

::-webkit-scrollbar-thumb {
  background: #1e2e4f;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #324b7d;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #1e2e4f #090e18;
}

/* ==========================================================================
   2. DESKTOP HEADER SEARCH BAR
   ========================================================================== */

#desktopHeaderSearch {
  transition: all 0.15s ease-in-out;
}

#desktopHeaderSearch:focus {
  background-color: #0c1322;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5), 0 0 12px rgba(56, 189, 248, 0.15);
}

/* ==========================================================================
   3. DROPDOWN MENU PHONE ALERTS & PUSH TOGGLES
   ========================================================================== */

#toggleNotifyScrapes,
#toggleNotifyAmps,
#mToggleNotifyScrapes,
#mToggleNotifyAmps {
  accent-color: #38bdf8;
  cursor: pointer;
}

#btnEnableNotifications,
#mBtnEnableNotifications {
  transition: all 0.15s ease;
}

#btnEnableNotifications:hover,
#mBtnEnableNotifications:hover {
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

/* ==========================================================================
   4. LOGISTICS INTELLIGENCE & TELEMETRY ENGINE DASHBOARD (#intelligenceModal)
   ========================================================================== */

#intelligenceModal {
  animation: intelligenceModalFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes intelligenceModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.99);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Equal-Height Row-2 Scroll Containers */
#intelVendorDistributions,
#intelCalibrationPanel,
#intelNodalArcsGrouped,
#intelEventFeedList {
  scrollbar-width: thin;
  scrollbar-color: #1e2e4f #090e18;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#intelNodalArcsGrouped {
  scroll-behavior: smooth !important;
}

@keyframes nodalCardFlash {
  0% {
    border-color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.55);
    background-color: rgba(14, 165, 233, 0.16);
  }
  50% {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
  }
  100% {
    border-color: rgba(30, 41, 59, 1);
    box-shadow: none;
    background-color: inherit;
  }
}

.intel-nodal-card-highlight {
  animation: nodalCardFlash 1.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Column 1 2-Tab Switcher */
.intel-col1-tab {
  user-select: none;
  background-color: rgba(7, 11, 18, 0.65);
  border-color: rgba(34, 52, 89, 0.8);
  color: #94a3b8;
}

.intel-col1-tab:hover {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.45);
  background-color: rgba(22, 34, 59, 0.6);
}

.intel-col1-tab.active-col1-tab {
  background-color: rgba(56, 189, 248, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.8) !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2), inset 0 0 6px rgba(56, 189, 248, 0.12) !important;
}

/* Streamlined Filter Pills for 1/3-Width Column */
#intelFilterPillsContainer,
#intelStatusPillsContainer {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#intelFilterPillsContainer::-webkit-scrollbar,
#intelStatusPillsContainer::-webkit-scrollbar {
  display: none;
}

.intel-filter-pill {
  user-select: none;
  color: #94a3b8;
  border: 1px solid transparent;
  transition: all 0.12s ease-in-out;
  white-space: nowrap;
}

.intel-filter-pill:hover {
  color: #ffffff;
  background-color: rgba(22, 34, 59, 0.6);
}

.intel-filter-pill.active-intel-filter {
  background-color: rgba(56, 189, 248, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.8) !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25), inset 0 0 6px rgba(56, 189, 248, 0.15) !important;
}

.intel-filter-pill.active-intel-filter[data-filter="AMPS"] {
  background-color: rgba(59, 130, 246, 0.2) !important;
  border-color: #3b82f6 !important;
  color: #93c5fd !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3) !important;
}

.intel-filter-pill.active-intel-filter[data-filter="SCRAPER"] {
  background-color: rgba(16, 185, 129, 0.2) !important;
  border-color: #10b981 !important;
  color: #6ee7b7 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3) !important;
}

.intel-filter-pill.active-intel-filter[data-filter="PUSH"] {
  background-color: rgba(245, 158, 11, 0.2) !important;
  border-color: #f59e0b !important;
  color: #fcd34d !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3) !important;
}

.intel-filter-pill.active-intel-filter[data-filter="POSTGRESQL"] {
  background-color: rgba(168, 85, 247, 0.2) !important;
  border-color: #a855f7 !important;
  color: #d8b4fe !important;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3) !important;
}

.intel-filter-pill.active-intel-filter[data-filter="OPERATOR"] {
  background-color: rgba(56, 189, 248, 0.2) !important;
  border-color: #38bdf8 !important;
  color: #7dd3fc !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3) !important;
}

/* ==========================================================================
   4b. STATUS MULTI-SELECT TOGGLE CHIPS
   ========================================================================== */

.intel-status-chip {
  user-select: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid rgba(51, 65, 85, 0.6);
  color: #64748b;
  background-color: transparent;
  opacity: 0.45;
  transition: all 0.12s ease-in-out;
  cursor: pointer;
  white-space: nowrap;
}

.intel-status-chip:hover {
  opacity: 0.8;
  border-color: rgba(100, 116, 139, 0.8);
}

.intel-status-chip.active-status-chip {
  opacity: 1 !important;
  font-weight: 700;
}

.intel-status-chip.active-status-chip[data-status="ALERTED"] {
  background-color: rgba(16, 185, 129, 0.18) !important;
  border-color: #10b981 !important;
  color: #6ee7b7 !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.25) !important;
}

.intel-status-chip.active-status-chip[data-status="HEALED"] {
  background-color: rgba(6, 182, 212, 0.18) !important;
  border-color: #06b6d4 !important;
  color: #67e8f9 !important;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.25) !important;
}

.intel-status-chip.active-status-chip[data-status="SKIPPED"] {
  background-color: rgba(51, 65, 85, 0.45) !important;
  border-color: #64748b !important;
  color: #cbd5e1 !important;
}

.intel-status-chip.active-status-chip[data-status="PARSED"] {
  background-color: rgba(59, 130, 246, 0.2) !important;
  border-color: #3b82f6 !important;
  color: #93c5fd !important;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.25) !important;
}

.intel-status-chip.active-status-chip[data-status="TRAINED"] {
  background-color: rgba(168, 85, 247, 0.2) !important;
  border-color: #a855f7 !important;
  color: #d8b4fe !important;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.25) !important;
}

.intel-status-chip.active-status-chip[data-status="UPDATED"] {
  background-color: rgba(14, 165, 233, 0.2) !important;
  border-color: #0ea5e9 !important;
  color: #7dd3fc !important;
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.25) !important;
}

.intel-status-chip.active-status-chip[data-status="INFO"] {
  background-color: rgba(56, 189, 248, 0.18) !important;
  border-color: #38bdf8 !important;
  color: #7dd3fc !important;
}

.intel-status-chip.active-status-chip[data-status="ERROR"] {
  background-color: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.25) !important;
}

/* Interactive Velocity Gauge Track & Hover Tooltip */
.intel-gauge-track {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.intel-gauge-track:hover {
  border-color: rgba(56, 189, 248, 0.6) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.intel-zone {
  position: relative;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.intel-zone:hover {
  filter: brightness(1.25);
}

#intelHoverTelemetryDisplay {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Compressed Origin-Grouped Nodal Arc Card */
.intel-nodal-origin-card {
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.intel-nodal-origin-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background-color: rgba(12, 19, 34, 0.95);
  transform: translateY(-1px);
}

/* Compact Column-3 Audit Stream Card */
.intel-audit-card {
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.intel-audit-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background-color: rgba(12, 19, 34, 0.95);
}

/* ==========================================================================
   5. PACKAGE MODAL INLINE EDITING & LIVE FLASH-UPDATE ANIMATION
   ========================================================================== */

#modalBtnEditPackage {
  transition: transform 0.12s ease, background-color 0.12s ease;
}

#modalBtnEditPackage:hover {
  background-color: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

#modalBtnEditPackage:active {
  transform: scale(0.92);
}

#modalEditSection {
  animation: editSectionSlideDown 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Live Modal Flash-Update: Ambient glow & cyan border pulse when live cloud scan hydrates */
@keyframes modalLiveUpdateFlash {
  0% {
    border-color: rgba(56, 189, 248, 1);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.5), inset 0 0 15px rgba(56, 189, 248, 0.2);
  }
  50% {
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3), inset 0 0 8px rgba(56, 189, 248, 0.1);
  }
  100% {
    border-color: #223459;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  }
}

.modal-flash-update {
  animation: modalLiveUpdateFlash 0.65s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.modal-store-pill-btn {
  user-select: none;
  transition: all 0.12s ease;
}

.modal-store-pill-btn:hover {
  transform: translateY(-1px);
}

.modal-store-pill-btn:active {
  transform: scale(0.95);
}

.modal-store-pill-btn.active-store-tag[data-tag="AMAZON"] {
  background-color: rgba(69, 26, 3, 0.8) !important;
  border-color: #f59e0b !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3) !important;
}

.modal-store-pill-btn.active-store-tag[data-tag="TARGET"] {
  background-color: rgba(69, 10, 10, 0.8) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3) !important;
}

.modal-store-pill-btn.active-store-tag[data-tag="WALMART"] {
  background-color: rgba(15, 23, 42, 0.9) !important;
  border-color: #3b82f6 !important;
  color: #93c5fd !important;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3) !important;
}

.modal-store-pill-btn.active-store-tag[data-tag="LEGO"] {
  background-color: rgba(66, 32, 6, 0.8) !important;
  border-color: #eab308 !important;
  color: #fde047 !important;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.3) !important;
}

.modal-store-pill-btn.active-store-tag[data-tag="NONE"] {
  background-color: rgba(30, 41, 59, 0.9) !important;
  border-color: #64748b !important;
  color: #f8fafc !important;
}

/* ==========================================================================
   6. ANALYSIS MODAL & "ANALYTICS ↓" JUMP BUTTON
   ========================================================================== */

#modalTimelineEvents {
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch;
}

#modalBtnJumpAnalytics {
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

#modalBtnJumpAnalytics:hover {
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
  border-color: rgba(56, 189, 248, 0.8);
}

#modalBtnJumpAnalytics:active {
  transform: scale(0.95);
}

#modalAnalyticsSection {
  scroll-margin-top: 14px;
}

/* ==========================================================================
   7. INTERACTIVE LOGISTICS NETWORK GRAPH (DAG) & TOOLBAR TOGGLES
   ========================================================================== */

#networkGraphModal {
  animation: graphModalFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes graphModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.99);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#networkGraphCanvas {
  outline: none !important;
}

#networkGraphCanvas canvas {
  cursor: grab;
}

#networkGraphCanvas canvas:active {
  cursor: grabbing;
}

.active-toolbar-toggle {
  background-color: rgba(56, 189, 248, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.8) !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25), inset 0 0 6px rgba(56, 189, 248, 0.15) !important;
}

#graphChokePointsBtn.active-toolbar-toggle {
  background-color: rgba(245, 158, 11, 0.2) !important;
  border-color: rgba(245, 158, 11, 0.9) !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35), inset 0 0 8px rgba(245, 158, 11, 0.2) !important;
}

div.vis-tooltip {
  position: absolute;
  visibility: hidden;
  padding: 6px 10px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 10.5px !important;
  color: #f8fafc !important;
  background-color: rgba(12, 19, 34, 0.95) !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.8) !important;
  pointer-events: none !important;
  z-index: 1000 !important;
}

.graph-node-bottleneck {
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.7) !important;
}

.inspector-pkg-card {
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.inspector-pkg-card:hover {
  border-color: rgba(56, 189, 248, 0.7);
  background-color: rgba(22, 34, 59, 0.8);
  transform: translateY(-1px);
}

/* ==========================================================================
   8. TOUCH SWIPE-TO-DISMISS GESTURE (MOBILE ANALYSIS MODAL)
   ========================================================================== */

#timelineModalCard {
  will-change: transform, opacity;
}

#timelineModalCard.modal-swiping {
  transition: none !important;
}

#timelineModalCard.modal-dismissing {
  transform: translateX(110%) !important;
  opacity: 0 !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease-out !important;
}

/* ==========================================================================
   9. STORE TAGS & BADGES
   ========================================================================== */

.store-pill-walmart {
  background-color: rgba(15, 23, 42, 0.9) !important;
  border-color: #3b82f6 !important;
  color: #93c5fd !important;
}

.badge-po-box-delivered {
  background-color: rgba(8, 51, 68, 0.85) !important;
  border: 1px solid rgba(6, 182, 212, 0.7) !important;
  color: #67e8f9 !important;
}

/* ==========================================================================
   10. MOBILE TELEMETRY BOTTOM SHEET & SEARCH MODAL ANIMATIONS
   ========================================================================== */

#mobileTelemetryModal > div {
  animation: sheetSlideUp 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sheetSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#mobileSearchModal {
  animation: modalFadeIn 0.15s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   11. SCRAPER DAEMON STATUS DOT STYLING
   ========================================================================== */

@keyframes scraperPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.scraper-dot-active {
  background-color: #10b981 !important;
  animation: scraperPulse 2s infinite ease-out;
}

.scraper-dot-stale {
  background-color: #f59e0b !important;
  box-shadow: 0 0 4px rgba(245, 158, 11, 0.5);
}

.scraper-dot-idle {
  background-color: #64748b !important;
}

/* ==========================================================================
   12. MOBILE STICKY COLUMNS & MOMENTUM HORIZONTAL SCROLLING (< 768px)
   ========================================================================== */

.table-scroll-container {
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  position: relative;
  width: 100%;
}

@media (max-width: 767px) {
  .mobile-sticky-col-1 {
    position: sticky !important;
    left: 0 !important;
    z-index: 25 !important;
    background-color: var(--color-defense-surface) !important;
    min-width: 60vw !important;
    max-width: 60vw !important;
    width: 60vw !important;
  }

  .mobile-sticky-col-2 {
    position: sticky !important;
    left: 60vw !important;
    z-index: 25 !important;
    background-color: var(--color-defense-surface) !important;
    min-width: 40vw !important;
    max-width: 40vw !important;
    width: 40vw !important;
    box-shadow: 6px 0 12px -3px rgba(0, 0, 0, 0.75) !important;
    border-right: 1px solid var(--color-defense-border) !important;
  }

  thead tr th.mobile-sticky-col-1,
  thead tr th.mobile-sticky-col-2 {
    background-color: #111a2e !important;
    z-index: 30 !important;
  }

  .mobile-offscreen-col {
    min-width: 160px !important;
  }
}

@media (min-width: 768px) {
  .mobile-sticky-col-1,
  .mobile-sticky-col-2 {
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    box-shadow: none !important;
    border-right: none !important;
  }
}

/* ==========================================================================
   13. MOBILE 6-ICON COMPRESSED KPI RIBBON & ACCORDION DRAWER
   ========================================================================== */

.mobile-kpi-btn {
  background-color: rgba(12, 19, 34, 0.7);
  touch-action: manipulation;
}

.mobile-kpi-btn.active-kpi {
  background-color: rgba(22, 34, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.8) !important;
  box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.15), 0 0 12px rgba(56, 189, 248, 0.25);
}

#mobileKpiDrawer {
  animation: drawerSlideDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   14. MOBILE SINGLE-COLUMN PIPELINE & COLLAPSED EMPTY STAGES
   ========================================================================== */

.mobile-empty-stage-bar {
  background-color: rgba(12, 19, 34, 0.6);
  border: 1px solid rgba(22, 34, 59, 0.7);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mobile-empty-stage-bar:hover {
  background-color: rgba(17, 26, 46, 0.8);
  border-color: rgba(34, 52, 89, 0.9);
}

/* ==========================================================================
   15. MOBILE FLOATING ACTION BUTTON (FAB) & SAFE-AREA OFFSET
   ========================================================================== */

#mobileFabAddTracking {
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  right: calc(1rem + env(safe-area-inset-right, 0px));
  box-shadow: 0 10px 25px -3px rgba(56, 189, 248, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
  touch-action: manipulation;
}

#mobileFabAddTracking:hover {
  background-color: #38bdf8;
  box-shadow: 0 14px 28px -3px rgba(56, 189, 248, 0.55), 0 6px 10px -2px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   16. ANCHORED DROPDOWN MENUS (DESKTOP & MOBILE) & COUNTDOWN TOOLTIP
   ========================================================================== */

#headerDropdownMenu,
#mobileDropdownMenu {
  transform-origin: top right;
  animation: dropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#cloudSyncTooltip {
  transform-origin: top right;
  animation: tooltipFadeIn 0.12s ease-out;
}

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

.menu-item-disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
}

.menu-item-disabled:hover {
  background-color: transparent !important;
}

/* ==========================================================================
   17. WHOLE-WINDOW DRAG & DROP OVERLAY
   ========================================================================== */

#globalDragOverlay {
  transition: opacity 0.2s ease, backdrop-filter 0.2s ease;
  animation: dragOverlayGlow 2s infinite ease-in-out;
}

@keyframes dragOverlayGlow {
  0%, 100% {
    border-color: rgba(56, 189, 248, 0.6);
  }
  50% {
    border-color: rgba(56, 189, 248, 1);
    box-shadow: inset 0 0 50px rgba(56, 189, 248, 0.2);
  }
}

/* ==========================================================================
   18. OPERATIONAL SUPPLY CHAIN PIPELINE & RADAR ANIMATIONS
   ========================================================================== */

@keyframes radarPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.radar-dot {
  animation: radarPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes criticalActionPulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.7);
  }
  50% {
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.7);
    border-color: rgba(239, 68, 68, 1);
  }
}

.token-action-required {
  animation: criticalActionPulse 1.8s infinite ease-in-out;
}

.token-transit-delay {
  border-color: rgba(245, 158, 11, 0.75) !important;
  background-color: rgba(69, 26, 3, 0.35) !important;
}

.token-sealift {
  border-color: rgba(6, 182, 212, 0.7) !important;
  background: linear-gradient(135deg, rgba(8, 51, 68, 0.4) 0%, rgba(12, 19, 34, 0.9) 100%) !important;
}

.sealift-badge {
  background-color: rgba(8, 51, 68, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.6);
  color: #67e8f9;
}

.pipeline-token {
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.pipeline-token:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
  z-index: 20;
}

/* ==========================================================================
   19. MODAL ANIMATIONS
   ========================================================================== */

#timelineModal,
#addTrackingModal,
#pickupConfirmModal,
#resolveArchiveModal,
#postOfficeEmailModal,
#popupBlockerModal,
#cloudConfigModal,
#intelligenceModal {
  animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: scale(0.98); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}

#toastNotification {
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.8), 0 0 15px rgba(56, 189, 248, 0.2);
  pointer-events: none !important;
  user-select: none;
}

/* ==========================================================================
   20. MEMBER PRINT STYLESHEET (Ctrl+P / Mailroom Reference Slip)
   ========================================================================== */

@media print {
  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    overflow: visible !important;
  }

  header,
  #globalDragOverlay,
  #pipelineContainer,
  #btnAddTracking,
  #btnHeaderMenu,
  #btnMobileMenu,
  #headerDropdownMenu,
  #mobileDropdownMenu,
  #mobileFabAddTracking,
  #mobileKpiDrawer,
  .mobile-kpi-btn,
  #networkGraphModal,
  #intelligenceModal,
  #mobileSearchModal,
  #mobileTelemetryModal,
  #desktopHeaderSearch,
  .copy-btn,
  .view-timeline-btn,
  .open-email-modal-btn,
  .open-pickup-modal-btn,
  .open-resolve-modal-btn,
  .radar-dot,
  #toggleArchiveBtn,
  #toastNotification,
  #timelineModal,
  #modalBtnJumpAnalytics,
  #addTrackingModal,
  #pickupConfirmModal,
  #resolveArchiveModal,
  #postOfficeEmailModal,
  #popupBlockerModal,
  #cloudConfigModal {
    display: none !important;
  }

  main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  section {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  table {
    width: 100% !important;
    border-collapse: collapse !important;
    color: #000000 !important;
  }

  th, td {
    border: 1px solid #cccccc !important;
    padding: 6px 8px !important;
    color: #000000 !important;
    font-size: 8.5pt !important;
  }

  th {
    background-color: #f0f0f0 !important;
    font-weight: bold !important;
  }

  body::before {
    content: "OSAN AIR BASE (APO AP 96266 - PSC 3, BLDG 701) - INBOUND PACKAGE MANIFEST";
    display: block;
    font-family: monospace;
    font-size: 11pt;
    font-weight: bold;
    margin-bottom: 12px;
    border-bottom: 2px solid #000000;
    padding-bottom: 4px;
  }
}