/* ==========================================================================
   OPTICHAIN CONSULTING GROUP — Logistics Quote Platform
   Shared styles. 3D / virtual / glassmorphic dark theme.
   ========================================================================== */

:root {
  --bg-0: #03040a;
  --bg-1: #0a0e1f;
  --bg-2: #111634;
  --panel: rgba(18, 24, 50, 0.55);
  --panel-strong: rgba(22, 30, 60, 0.85);
  --border: rgba(120, 180, 255, 0.18);
  --border-strong: rgba(120, 180, 255, 0.35);
  --text: #e8eeff;
  --text-dim: #93a1c4;
  --text-muted: #6b7799;
  --cyan: #00e5ff;
  --cyan-dim: #00b8d4;
  --violet: #a855f7;
  --magenta: #ec4899;
  --orange: #ff9100;
  --green: #10d984;
  --red: #ff5470;
  --shadow-glow-cyan: 0 0 40px rgba(0, 229, 255, 0.35);
  --shadow-glow-violet: 0 0 60px rgba(168, 85, 247, 0.25);
  --grid: linear-gradient(rgba(120,180,255,0.06) 1px, transparent 1px),
          linear-gradient(90deg, rgba(120,180,255,0.06) 1px, transparent 1px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-0);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0, 229, 255, 0.12), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.15), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 145, 0, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 50%, var(--bg-0) 100%);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--grid);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: relative;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(3, 4, 10, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: conic-gradient(from 180deg at 50% 50%,
    var(--cyan), var(--violet), var(--orange), var(--magenta), var(--cyan));
  position: relative;
  box-shadow: var(--shadow-glow-cyan);
  flex-shrink: 0;
}
.brand-logo::before {
  /* Dark circular cutout — frames the globe SVG */
  content: '';
  position: absolute;
  inset: 4px;
  background: #0a1530;
  border-radius: 50%;
  z-index: 1;
}
.brand-logo::after {
  /* Embedded SVG with rotating-meridian animation */
  content: '';
  position: absolute;
  inset: 5px;
  background: url('logo.svg') center / contain no-repeat;
  border-radius: 50%;
  z-index: 2;
}
@keyframes spin { to { transform: rotate(360deg); } }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 17px; font-weight: 800; }
.brand-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  background: rgba(3, 4, 10, 0.55);
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 48px;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); background: rgba(120,180,255,0.06); }
.nav-links a.active {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.25);
}

.nav-cta {
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #001020 !important;
  font-weight: 700;
  border-radius: 8px;
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.35);
  background: linear-gradient(135deg, var(--cyan), var(--violet)) !important;
}

/* Hidden until sign-in (same as auth-gate.js on the original pages) */
html:not(.is-authed) [data-protected="1"] {
  display: none;
}

/* ==========================================================================
   LAYOUT PRIMITIVES
   ========================================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 2;
}

section { padding: 80px 0; position: relative; z-index: 2; }

h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 50%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ==========================================================================
   HERO (landing page)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 48px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-content { position: relative; z-index: 3; }
.hero h1 { margin: 18px 0 24px; }
.hero p.lead {
  font-size: 1.18rem;
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #001020;
  box-shadow: 0 12px 32px rgba(0, 229, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0, 229, 255, 0.4);
}
.btn:disabled,
.btn.is-loading {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}
.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn-ghost {
  background: transparent;
  color: var(--cyan);
  padding: 14px 0;
}

.hero-3d {
  position: relative;
  height: 560px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(0,229,255,0.18), transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(168,85,247,0.18), transparent 60%),
    rgba(8, 12, 28, 0.6);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow-cyan), var(--shadow-glow-violet);
}
#three-canvas { width: 100%; height: 100%; display: block; }

.hero-3d-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 16px;
  pointer-events: none;
  z-index: 4;
}
.hero-3d-corner {
  position: absolute;
  width: 24px; height: 24px;
  border-color: var(--cyan);
  z-index: 5;
  pointer-events: none;
}
.hero-3d-corner.tl { top: 6px; left: 6px; border-top: 2px solid; border-left: 2px solid; }
.hero-3d-corner.tr { top: 6px; right: 6px; border-top: 2px solid; border-right: 2px solid; }
.hero-3d-corner.bl { bottom: 6px; left: 6px; border-bottom: 2px solid; border-left: 2px solid; }
.hero-3d-corner.br { bottom: 6px; right: 6px; border-bottom: 2px solid; border-right: 2px solid; }

.hero-3d-readout {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 6;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(0,229,255,0.6);
}
.hero-3d-readout span { display: block; opacity: 0.75; }
.hero-3d-readout span:first-child { opacity: 1; font-weight: 700; }

/* ==========================================================================
   STATS / FEATURES
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-header h2 { margin: 14px 0 16px; }
.section-header p { color: var(--text-dim); font-size: 1.05rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.feature {
  padding: 32px 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0,229,255,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.feature:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,229,255,0.18), rgba(168,85,247,0.2));
  border: 1px solid rgba(0,229,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: var(--cyan);
  position: relative;
}
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--text-dim); font-size: 0.95rem; }

/* ==========================================================================
   QUOTE PAGES — split layout
   ========================================================================== */
.page-header {
  padding: 60px 48px 30px;
  max-width: 1280px;
  margin: 0 auto;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 14px 0 12px; }
.page-header p { color: var(--text-dim); font-size: 1.1rem; max-width: 640px; }

.blog-hero { max-width: 1280px; margin: 0 auto; padding: 60px 48px 30px; position: relative; z-index: 2; }
.blog-hero h1 { margin: 14px 0 14px; }
.blog-hero p.lead { color: var(--text-dim); font-size: 1.15rem; max-width: 760px; margin-bottom: 22px; }
.blog-filters { max-width: 1280px; margin: 0 auto 28px; padding: 0 48px; display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 2; }
.blog-chip { padding: 9px 18px; border-radius: 100px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-dim); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.blog-chip.active, .blog-chip:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0,229,255,0.06); }
.blog-grid { max-width: 1280px; margin: 0 auto; padding: 0 48px 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; z-index: 2; }
.blog-card { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; backdrop-filter: blur(10px); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: all 0.25s; padding: 0; }
.blog-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,0.4); }
.blog-card.hidden { display: none; }
.blog-img { aspect-ratio: 16/9; position: relative; overflow: hidden; background: linear-gradient(135deg, #0a1530 0%, #142042 100%); display: flex; align-items: center; justify-content: center; }
.blog-img-icon { font-size: 72px; opacity: 0.55; }
.blog-img.cat-ecom { background: linear-gradient(135deg, rgba(0,229,255,0.18), rgba(168,85,247,0.18)); }
.blog-img.cat-truck { background: linear-gradient(135deg, rgba(255,145,0,0.18), rgba(236,72,153,0.18)); }
.blog-img.cat-ocean { background: linear-gradient(135deg, rgba(0,229,255,0.18), rgba(16,217,132,0.18)); }
.blog-img.cat-air { background: linear-gradient(135deg, rgba(168,85,247,0.18), rgba(0,229,255,0.18)); }
.blog-img.cat-freight { background: linear-gradient(135deg, rgba(236,72,153,0.18), rgba(168,85,247,0.18)); }
.blog-img.cat-rail { background: linear-gradient(135deg, rgba(74,120,255,0.20), rgba(0,229,255,0.18)); }
.blog-img.cat-project { background: linear-gradient(135deg, rgba(255,145,0,0.20), rgba(168,85,247,0.18)); }
.blog-cat-tag { position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 100px; background: rgba(10,21,48,0.85); border: 1px solid var(--border-strong); color: var(--cyan); backdrop-filter: blur(8px); text-transform: uppercase; letter-spacing: 0.5px; }
.blog-img-mosaic { padding: 0; }
.blog-mosaic { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; width: 100%; height: 100%; }
.blog-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.blog-mosaic img.span-2 { grid-column: span 2; }
.blog-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 12px; margin-bottom: 10px; }
.blog-card h3 { font-size: 1.08rem; line-height: 1.35; margin-bottom: 10px; flex: 1; }
.blog-excerpt { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 16px; line-height: 1.55; }
.blog-read { font-size: 13px; font-weight: 600; color: var(--cyan); display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }
.blog-cta-wrap { max-width: 1280px; margin: 0 auto 60px; padding: 0 48px; position: relative; z-index: 2; }
.blog-cta { padding: 36px 40px; background: linear-gradient(135deg, rgba(0,229,255,0.08), rgba(168,85,247,0.08)); border: 1px solid rgba(0,229,255,0.25); border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.blog-cta h2 { margin-bottom: 8px; }
.blog-cta p { color: var(--text-dim); font-size: 1rem; max-width: 540px; }
.blog-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.blog-byline { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--text-muted); font-size: 0.82rem; font-weight: 600; margin-bottom: 12px; }
.blog-article { max-width: 820px; }
.blog-article p,
.blog-article li { color: var(--text-dim); font-size: 0.98rem; line-height: 1.7; }
.blog-article h2 { font-size: 1.25rem; margin: 28px 0 12px; }
.blog-article h3 { font-size: 1.05rem; margin: 22px 0 10px; }
.blog-article ul,
.blog-article ol { margin: 0 0 16px 1.2em; }
.blog-article-nav { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--border); }
.blog-article-nav a { color: var(--cyan); font-weight: 700; text-decoration: none; }
@media (max-width: 980px) {
  .blog-hero, .blog-filters, .blog-grid, .blog-cta-wrap { padding-left: 24px; padding-right: 24px; }
  .blog-grid { grid-template-columns: 1fr; }
}
@media (min-width: 981px) and (max-width: 1180px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

.quote-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  padding: 20px 48px 100px;
  max-width: 1280px;
  margin: 0 auto;
}

.quote-form, .quote-results, .quote-side {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  padding: 32px;
  position: relative;
}

.quote-form h2, .quote-results h2 { font-size: 1.4rem; margin-bottom: 8px; }
.quote-subtitle { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 28px; }

.form-section {
  border-top: 1px dashed var(--border);
  padding: 22px 0;
}
.form-section:first-of-type { border-top: none; padding-top: 0; }
.form-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-section-title::before {
  content: '';
  width: 4px; height: 16px;
  background: linear-gradient(to bottom, var(--cyan), var(--violet));
  border-radius: 2px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.form-row.four { grid-template-columns: repeat(4, 1fr); }

.form-row.cargo-counts {
  grid-template-columns: repeat(5, minmax(4.25rem, 6.75rem));
  justify-content: start;
  gap: 10px;
}
.form-row.cargo-counts .field input,
.form-row.cargo-counts .field select {
  padding: 10px 8px;
  font-size: 13px;
}
.form-row.cargo-package {
  grid-template-columns: minmax(14rem, 1fr);
}
.form-row.cargo-dims {
  grid-template-columns: repeat(3, minmax(5.5rem, 9rem));
  justify-content: start;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}
.field input, .field select, .field textarea {
  background: rgba(3, 4, 10, 0.55);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  width: 100%;
}

/* Solid dark background for dropdown menu options so they're readable
   when the dropdown is open. Browsers don't inherit page bg into the
   native option list — must be set explicitly. */
select,
select option,
select optgroup {
  background-color: #0a0e1f;
  color: var(--text);
}
select option {
  background-color: #0a0e1f;
  color: var(--text);
  padding: 8px;
}
select optgroup {
  background-color: #050816;
  color: var(--cyan);
  font-weight: 700;
  font-style: normal;
}
select option:checked,
select option:hover {
  background-color: #1a2350;
  color: var(--cyan);
}
/* Filter bar selects in dashboards too */
.filter-bar select,
.filter-bar select option {
  background-color: #1c2748;
  color: #f4f7ff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 84, 112, 0.12);
}
.field-error {
  font-size: 12px;
  color: var(--red);
  line-height: 1.35;
}
.field-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}
.req {
  display: inline-block;
  margin-left: 3px;
  color: #ff5470;
  font-size: 1.25em;
  font-weight: 800;
  line-height: 0.7;
  vertical-align: text-top;
  text-shadow: 0 0 10px rgba(255, 84, 112, 0.55);
}
.quote-create .field label .req {
  color: #ff5470;
}
.field-optional {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input::placeholder { color: var(--text-muted); }

.checkbox-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(3, 4, 10, 0.4);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
}
.checkbox:hover { border-color: var(--border-strong); background: rgba(0, 229, 255, 0.04); }
.checkbox input { width: 16px; height: 16px; accent-color: var(--cyan); cursor: pointer; }
.checkbox.checked { border-color: var(--cyan); background: rgba(0, 229, 255, 0.06); color: var(--cyan); }

.pallet-row {
  display: grid;
  grid-template-columns: 50px repeat(6, 1fr) 36px;
  gap: 8px;
  margin-bottom: 10px;
  align-items: end;
}
.pallet-row .field input,
.pallet-row .field select {
  padding: 10px 8px;
  font-size: 13px;
}
.pallet-row .field label { font-size: 10px; }
.pallet-num {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 8px;
  color: var(--cyan);
  font-weight: 700;
  font-size: 13px;
  margin-top: 18px;
}
.pallet-remove {
  height: 44px; width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--red);
  cursor: pointer;
  margin-top: 18px;
  transition: all 0.2s;
}
.pallet-remove:hover { background: rgba(255,84,112,0.1); border-color: var(--red); }

.add-pallet {
  background: transparent;
  border: 1px dashed var(--border-strong);
  color: var(--cyan);
  padding: 12px;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  margin-top: 6px;
  font-family: inherit;
  transition: all 0.2s;
}
.add-pallet:hover { background: rgba(0,229,255,0.06); border-style: solid; }

.btn-quote {
  width: 100%;
  margin-top: 22px;
  padding: 18px;
  background: linear-gradient(135deg, var(--cyan), var(--violet) 60%, var(--magenta));
  color: #001020;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
  box-shadow: 0 14px 36px rgba(0, 229, 255, 0.3);
}
.btn-quote:hover:not(:disabled) { transform: translateY(-2px); }
.btn-quote:disabled { opacity: 0.6; cursor: wait; }
.btn-quote.is-loading {
  pointer-events: none;
}
.btn-quote.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid rgba(0, 16, 32, 0.25);
  border-top-color: #001020;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.gtz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.gtz-actions .btn-quote {
  width: auto;
  flex: 1;
  min-width: 140px;
  margin-top: 0;
  padding: 12px 16px;
  font-size: 13px;
}
.gtz-test-btn {
  background: transparent;
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--cyan);
}
.gtz-mode-switch {
  display: flex;
  gap: 8px;
}
.gtz-mode-option {
  flex: 1;
  cursor: pointer;
  margin: 0;
}
.gtz-mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.gtz-mode-option span {
  display: block;
  text-align: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(3, 4, 10, 0.45);
}
.gtz-mode-option input:checked + span {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.1);
}
.gtz-mode-locked {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.gtz-mode-locked strong { color: var(--text); }
.gtz-toolbar-panel {
  margin-bottom: 18px;
}
.gtz-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 22px;
}
.gtz-toolbar-row .field {
  margin: 0;
  flex: 1 1 240px;
  max-width: 380px;
  gap: 12px;
}
.gtz-toolbar-row .gtz-mode-locked {
  flex: 1 1 280px;
  margin: 0;
}
.gtz-toolbar-row .gtz-actions {
  margin-top: 0;
  flex: 0 0 auto;
}
.gtz-toolbar-row .gtz-actions .btn-quote {
  flex: 0 0 auto;
  width: auto;
  min-width: 180px;
}
.gtz-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.gtz-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 20px 22px 22px;
}
.gtz-card.is-active {
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.18);
}
.gtz-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.gtz-card-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.gtz-card-copy {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.gtz-card .field {
  gap: 12px;
}
.gtz-card .field label {
  margin-bottom: 0;
  line-height: 1.4;
}
@media (max-width: 1100px) {
  .gtz-layout { grid-template-columns: 1fr; }
}

/* ==========================================================================
   QUOTE RESULTS
   ========================================================================== */
.results-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.results-empty .empty-glyph {
  width: 80px; height: 80px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.15), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.rate-card {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: rgba(3, 4, 10, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
  cursor: pointer;
}
.rate-card:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.05);
  transform: translateX(4px);
}
.rate-card.best {
  border-color: var(--green);
  background: linear-gradient(90deg, rgba(16,217,132,0.08), transparent 60%);
}
.rate-card .carrier-logo {
  width: 60px; height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: white;
}
.rate-info .carrier-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.rate-info .service { color: var(--text-dim); font-size: 12px; }
.rate-info .transit { color: var(--text-muted); font-size: 11px; margin-top: 4px; }
.rate-price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  text-align: right;
}
.rate-price small { display: block; font-size: 10px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }
.best-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--green);
  color: #001020;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 8px;
}

.results-summary {
  padding: 12px 14px;
  margin-bottom: 18px;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-dim);
}
.rate-breakdown {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* loading shimmer */
.skeleton {
  height: 86px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, rgba(0,229,255,0.04) 0%, rgba(0,229,255,0.12) 50%, rgba(0,229,255,0.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ==========================================================================
   AI IMAGERY (CSS-rendered futuristic illustrations)
   ========================================================================== */
.ai-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 240px;
}
.ai-image-warehouse {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(0,229,255,0.4), transparent 60%),
    radial-gradient(circle at 30% 30%, rgba(168,85,247,0.3), transparent 50%),
    linear-gradient(180deg, #0a0e1f 0%, #1a1f3d 100%);
}
.ai-image-warehouse::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent 60%, rgba(0,229,255,0.1) 60.5%, transparent 61%),
    linear-gradient(transparent 75%, rgba(0,229,255,0.15) 75.5%, transparent 76%),
    repeating-linear-gradient(90deg, transparent 0, transparent 30px, rgba(0,229,255,0.08) 30px, rgba(0,229,255,0.08) 31px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 60px 48px 40px;
  border-top: 1px solid var(--border);
  background: rgba(3, 4, 10, 0.7);
  margin-top: 60px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 18px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer a { color: var(--text-dim); text-decoration: none; font-size: 14px; }
.footer a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1280px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 12px;
  flex-wrap: nowrap;
}
.footer-bottom span {
  white-space: nowrap;
}

body.public-body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}
body.public-body .site-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}
body.public-body .footer {
  margin-top: 60px;
}
.site-copyright {
  flex-shrink: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 48px;
  border-top: 1px solid var(--border);
  background: rgba(3, 4, 10, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--text-muted);
  font-size: 12px;
}
.site-copyright span { white-space: nowrap; }

/* ==========================================================================
   API STATUS PILLS
   ========================================================================== */
.api-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.api-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(16, 217, 132, 0.08);
  border: 1px solid rgba(16, 217, 132, 0.3);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
}
.api-pill::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}
.api-pill.mock {
  background: rgba(255, 145, 0, 0.08);
  border-color: rgba(255, 145, 0, 0.3);
  color: var(--orange);
}
.api-pill.mock::before { background: var(--orange); box-shadow: 0 0 8px var(--orange); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
/* ==========================================================================
   LOGIN SCREEN
   ========================================================================== */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  position: relative;
  z-index: 2;
}
.login-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(0,229,255,0.18), transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(168,85,247,0.18), transparent 60%),
    linear-gradient(180deg, #050816 0%, #0a0e1f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
}
.login-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grid);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 80%);
}
#login-canvas { width: 100%; height: 100%; max-height: 600px; }
.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  background: var(--bg-0);
  border-left: 1px solid var(--border);
}
.login-card {
  width: 100%;
  max-width: 420px;
}
.login-card .brand { margin-bottom: 40px; }
.login-card h2 { font-size: 1.9rem; margin-bottom: 8px; }
.login-card p.sub { color: var(--text-dim); margin-bottom: 28px; }
.login-card .field { margin-bottom: 16px; }
.login-card .btn-quote { margin-top: 8px; }
.login-meta {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.login-meta a { color: var(--cyan); text-decoration: none; }
.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1; height: 1px;
  background: var(--border);
}
.sso-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sso-btn {
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.sso-btn:hover {
  border-color: var(--cyan);
  color: var(--text);
  background: rgba(0,229,255,0.05);
}
.sso-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.sso-btn-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
.demo-hint {
  background: rgba(255,145,0,0.08);
  border: 1px solid rgba(255,145,0,0.3);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--orange);
  font-size: 12px;
  margin-bottom: 20px;
}

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
.dash-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 32px 40px 80px;
  position: relative;
  z-index: 2;
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 18px;
}
.dash-header h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 4px; }
.dash-header p { color: var(--text-dim); font-size: 0.95rem; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
}
.user-chip .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #001020;
  font-weight: 800;
  font-size: 13px;
  overflow: hidden;
  flex-shrink: 0;
}
.user-chip .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-account > summary.user-chip .avatar {
  width: 40px;
  height: 40px;
  font-size: 14px;
}
.user-chip button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 6px;
}
.user-chip button:hover { color: var(--red); background: rgba(255,84,112,0.08); }

/* KPI cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.kpi-card {
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(0,229,255,0.15), transparent 70%);
  opacity: 0.6;
}
.kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.kpi-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  margin-bottom: 6px;
}
.kpi-delta {
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.kpi-delta.up { color: var(--green); }
.kpi-delta.down { color: var(--red); }
.kpi-delta.flat { color: var(--text-muted); }
.kpi-icon {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 22px;
  opacity: 0.9;
  z-index: 1;
}

/* Map + table layout */
.dash-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
.dash-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dash-panel-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dash-panel-header h3 { font-size: 1rem; font-weight: 700; }
.dash-panel-header .sub { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.dash-panel-body { padding: 0; flex: 1; }
.dash-panel-body.is-form { padding: 22px 24px; }
.admin-body .dash-panel .quote-form {
  padding: 0;
  max-width: 720px;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}
.admin-body .gtz-toolbar-panel .quote-form,
.admin-body .gtz-card .quote-form {
  padding: 0;
  max-width: none;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0;
}

/* Map */
#shipment-map {
  height: 460px;
  width: 100%;
  background: #0a1530;
}
.leaflet-container { background: #0a1530 !important; font-family: inherit; }
.leaflet-popup-content-wrapper {
  background: var(--bg-1) !important;
  color: var(--text) !important;
  border-radius: 10px !important;
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.leaflet-popup-content {
  margin: 12px 14px !important;
  font-size: 13px;
  color: var(--text);
}
.leaflet-popup-tip { background: var(--bg-1) !important; }
.leaflet-popup-close-button { color: var(--text-muted) !important; }
.map-popup .pop-id { color: var(--cyan); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; margin-bottom: 4px; text-transform: uppercase; }
.map-popup .pop-customer { font-weight: 600; margin-bottom: 6px; }
.map-popup .pop-lane { color: var(--text-dim); font-size: 12px; }
.map-popup .pop-status { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* Custom map marker */
.shipment-marker {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.6);
  position: relative;
}
.shipment-marker::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.4;
  animation: pulse-marker 2s ease-out infinite;
}
@keyframes pulse-marker {
  0% { transform: scale(0.7); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Activity feed */
.activity-feed {
  padding: 12px 4px;
  max-height: 460px;
  overflow-y: auto;
}
.activity-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.2s;
  cursor: pointer;
}
.activity-item:hover { background: rgba(0,229,255,0.04); }
.activity-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 12px currentColor;
}
.activity-content .desc { font-size: 13px; font-weight: 500; }
.activity-content .meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.activity-content .id { color: var(--cyan); font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.activity-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
}

.activity-feed::-webkit-scrollbar { width: 6px; }
.activity-feed::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.activity-feed::-webkit-scrollbar-track { background: transparent; }

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.filter-bar input[type="search"],
.filter-bar input[type="text"],
.filter-bar input[type="date"],
.filter-bar select {
  background: #1c2748;
  border: 1px solid rgba(180, 210, 255, 0.42);
  border-radius: 8px;
  color: #f4f7ff;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  min-height: 42px;
}
.filter-bar input[type="search"] { flex: 1; min-width: 180px; }
.filter-bar input[type="text"] { min-width: 120px; }
.filter-bar input[type="date"] {
  min-width: 160px;
  color-scheme: dark;
}
.filter-bar input::placeholder {
  color: #9eb0d4;
  opacity: 1;
  font-weight: 500;
}
.filter-bar input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  cursor: pointer;
  filter: invert(1) brightness(1.4);
}
.filter-bar select option {
  background: #1c2748;
  color: #f4f7ff;
}
.filter-bar input[type="search"]:focus,
.filter-bar input[type="text"]:focus,
.filter-bar input[type="date"]:focus,
.filter-bar select:focus {
  outline: none;
  border-color: #00e5ff;
  background: #22315a;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.18);
}
.filter-bar button.sso-btn,
.filter-bar a.sso-btn {
  padding: 10px 16px;
  min-height: 42px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  background: #00e5ff;
  color: #031018;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
}
.filter-bar a.sso-btn {
  background: #2a3a68;
  color: #f4f7ff;
  border: 1px solid rgba(180, 210, 255, 0.42);
}
.filter-bar button.sso-btn:hover {
  background: #5ff0ff;
  color: #031018;
}
.filter-bar a.sso-btn:hover {
  background: #33467c;
  color: #fff;
}
.filter-date {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c5d4f5;
}
.filter-bar .result-count {
  color: #c5d4f5;
  font-weight: 600;
}
.filter-bar-shipments {
  align-items: flex-end;
  background: rgba(12, 20, 46, 0.9);
}
.grid-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.grid-foot-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 16px;
  margin-left: auto;
}
.grid-foot-meta .result-count {
  font-size: 12px;
  font-weight: 600;
  color: #c5d4f5;
  white-space: nowrap;
}
.grid-foot-per label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.grid-foot-per select {
  background: #1c2748;
  border: 1px solid rgba(180, 210, 255, 0.42);
  border-radius: 8px;
  color: #f4f7ff;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
}
.grid-foot .pager {
  border-top: 0;
  padding: 0;
  margin: 0;
}
.customer-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.customer-name-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: help;
  color: #9be7ff;
  opacity: 0.8;
  border: 0;
}
.customer-name-tip:hover,
.customer-name-tip:focus {
  opacity: 1;
  outline: none;
}
.customer-name-tip .admin-nav-icon {
  width: 14px;
  height: 14px;
}
.customer-float-tip {
  position: fixed;
  z-index: 120;
  min-width: 240px;
  max-width: 320px;
  padding: 12px 14px;
  background: #0d1430;
  border: 1px solid rgba(180, 210, 255, 0.45);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  color: #f4f7ff;
  pointer-events: none;
}
.customer-float-tip[hidden] { display: none; }
.customer-float-tip strong {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9be7ff;
  margin-bottom: 2px;
  font-weight: 800;
}
.customer-float-tip span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
  word-break: break-word;
  white-space: normal;
}
.customer-float-tip span:last-child { margin-bottom: 0; }
.customer-float-tip.is-simple {
  min-width: 0;
  max-width: 240px;
  padding: 8px 10px;
}
.customer-float-tip.is-simple span {
  margin-bottom: 0;
  font-size: 12px;
  font-weight: 700;
}
.filter-bar .result-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  align-items: center;
}
.pager a,
.pager span {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  background: rgba(3, 4, 10, 0.55);
}
.pager a:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.pager .is-current {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.1);
}
.pager .is-disabled {
  opacity: 0.4;
}
.pager .pager-gap {
  border: none;
  background: none;
  padding: 7px 2px;
}

/* Shipment table */
.shipment-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
}

.shipment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.shipment-table thead th {
  background: var(--bg-1);
  text-align: left;
  padding: 12px 14px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-strong);
  z-index: 2;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.shipment-table thead th:hover { color: var(--cyan); }
.shipment-table thead th.sort-asc::after { content: ' ↑'; color: var(--cyan); }
.shipment-table thead th.sort-desc::after { content: ' ↓'; color: var(--cyan); }
.shipment-table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.shipment-table tbody td:last-child {
  white-space: nowrap;
  width: 1%;
}
.shipment-table tbody tr {
  transition: background 0.15s;
  cursor: pointer;
}
.shipment-table tbody tr:hover { background: rgba(0,229,255,0.04); }
.shipment-table tbody tr.selected { background: rgba(0,229,255,0.08); border-left: 3px solid var(--cyan); }

.cell-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--cyan);
  font-weight: 700;
}
.cell-pro { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); }
.cell-customer { font-weight: 600; color: var(--text); }
.cell-mode {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cell-mode.LTL { background: rgba(168,85,247,0.15); color: var(--violet); border: 1px solid rgba(168,85,247,0.3); }
.cell-mode.Parcel { background: rgba(255,145,0,0.15); color: var(--orange); border: 1px solid rgba(255,145,0,0.3); }
.cell-lane { font-size: 12px; color: var(--text-dim); }
.cell-lane strong { color: var(--text); }
.cell-carrier { display: flex; align-items: center; gap: 8px; }
.carrier-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.cell-margin { font-weight: 700; color: var(--green); font-family: 'JetBrains Mono', monospace; }
.cell-revenue { font-weight: 700; font-family: 'JetBrains Mono', monospace; color: var(--text); }
.cell-eta { color: var(--text-dim); font-size: 12px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid;
  white-space: nowrap;
}
.status-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.status-pill.booked { color: #93a1c4; border-color: rgba(147,161,196,0.3); background: rgba(147,161,196,0.06); }
.status-pill.picked-up { color: var(--cyan); border-color: rgba(0,229,255,0.3); background: rgba(0,229,255,0.06); }
.status-pill.in-transit { color: var(--violet); border-color: rgba(168,85,247,0.3); background: rgba(168,85,247,0.06); }
.status-pill.out-for-delivery { color: var(--orange); border-color: rgba(255,145,0,0.3); background: rgba(255,145,0,0.06); }
.status-pill.delivered { color: var(--green); border-color: rgba(16,217,132,0.3); background: rgba(16,217,132,0.06); }
.status-pill.exception { color: var(--red); border-color: rgba(255,84,112,0.4); background: rgba(255,84,112,0.08); }

/* Detail drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 10, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(620px, 100%);
  background: var(--bg-1);
  border-left: 1px solid var(--border-strong);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}
.drawer.open { transform: translateX(0); }
.drawer-header {
  position: sticky;
  top: 0;
  padding: 22px 28px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-header h2 { font-size: 1.2rem; }
.drawer-close {
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
}
.drawer-close:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.drawer-body { padding: 24px 28px 60px; }

.detail-section { margin-bottom: 28px; }
.detail-section h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 12px;
  font-weight: 700;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.detail-grid .item .lab { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 4px; }
.detail-grid .item .val { font-weight: 600; color: var(--text); font-size: 14px; }
.detail-grid .item.full { grid-column: 1 / -1; }

.lane-visual {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: rgba(3, 4, 10, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.lane-stop .lab { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 4px; }
.lane-stop .city { font-weight: 700; font-size: 16px; }
.lane-stop .meta { font-size: 11px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; margin-top: 2px; }
.lane-arrow {
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  position: relative;
  border-radius: 1px;
}
.lane-arrow::after {
  content: '';
  position: absolute;
  right: -8px; top: -4px;
  width: 0; height: 0;
  border-left: 10px solid var(--violet);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-event { position: relative; padding-bottom: 22px; }
.timeline-event::before {
  content: '';
  position: absolute;
  left: -24px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 2px solid var(--text-muted);
}
.timeline-event:first-child::before {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.timeline-event .te-desc { font-weight: 600; color: var(--text); font-size: 14px; }
.timeline-event .te-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; font-family: 'JetBrains Mono', monospace; }
.timeline-event .te-loc { color: var(--text-dim); font-size: 12px; margin-top: 2px; }

.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.detail-actions .btn {
  padding: 10px 16px;
  font-size: 13px;
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

/* ==========================================================================
   CONTAINER TRACKING PAGE
   ========================================================================== */
.track-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 48px 30px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.track-hero h1 { margin: 14px 0 14px; }
.track-hero p.lead { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 36px; }
.track-input-row {
  display: flex;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 229, 255, 0.12);
}
.track-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px 18px;
  font-size: 18px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.track-input-row input:focus { outline: none; }
.track-input-row input::placeholder { color: var(--text-muted); letter-spacing: 0.06em; }
.track-input-row button {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #001020;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s;
}
.track-input-row button:hover:not(:disabled) { transform: translateY(-1px); }
.track-input-row button:disabled { opacity: 0.6; cursor: wait; }

.track-examples {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.track-examples .example {
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 10px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 6px;
  color: var(--cyan);
  cursor: pointer;
  transition: all 0.15s;
}
.track-examples .example:hover { background: rgba(0, 229, 255, 0.12); }

.track-error {
  max-width: 880px;
  margin: 16px auto;
  padding: 14px 18px;
  background: rgba(255, 84, 112, 0.08);
  border: 1px solid rgba(255, 84, 112, 0.3);
  border-radius: 10px;
  color: var(--red);
  text-align: center;
  font-size: 14px;
}

.track-result {
  max-width: 1480px;
  margin: 0 auto;
  padding: 20px 48px 80px;
  position: relative;
  z-index: 2;
  display: none;
}
.track-result.visible { display: block; }

.vessel-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.vessel-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--carrier-color, var(--cyan));
}
.vessel-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.vessel-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.vessel-meta strong { color: var(--text); font-weight: 700; }
.vessel-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.vessel-status::before {
  content: '';
  width: 8px; height: 8px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
  animation: pulse 1.6s ease-in-out infinite;
}
.vessel-tele {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 24px;
  text-align: right;
}
.tele {
  font-family: 'Space Grotesk', sans-serif;
}
.tele .num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}
.tele .lbl {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.track-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.track-map-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.track-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.track-map-header h3 { font-size: 14px; }
.track-map-header .live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
}
.track-map-header .live::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.5s ease-in-out infinite;
}
#track-map { height: 540px; width: 100%; background: #0a1530; }

/* Vessel marker (rotates with heading) */
.vessel-marker {
  width: 28px; height: 28px;
  pointer-events: auto;
  transform-origin: center center;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
}
.vessel-trail {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  opacity: 0.4;
  animation: pulse-marker 2.5s ease-out infinite;
  pointer-events: none;
}

.journey-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}
.journey-progress-block {
  padding: 22px 22px 8px;
  border-bottom: 1px solid var(--border);
}
.journey-bar {
  height: 6px;
  background: rgba(120, 180, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 18px 0 10px;
  position: relative;
}
.journey-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 3px;
  position: relative;
  transition: width 0.6s ease;
}
.journey-bar-fill::after {
  content: '🚢';
  position: absolute;
  right: -10px;
  top: -10px;
  font-size: 18px;
  filter: drop-shadow(0 0 6px var(--cyan));
}
.journey-stops {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.journey-stops .stop strong { display: block; color: var(--text); font-size: 12px; margin-bottom: 2px; font-family: 'Inter', sans-serif; }
.journey-meta {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.journey-meta .item .lab { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2px; }
.journey-meta .item .val { font-weight: 700; font-size: 14px; color: var(--text); }

.events-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.events-panel h3 {
  font-size: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.events-list {
  padding: 12px 22px 22px;
  position: relative;
}
.events-list::before {
  content: '';
  position: absolute;
  left: 30px; top: 24px; bottom: 24px;
  width: 2px;
  background: var(--border);
}
.event-item {
  position: relative;
  padding-left: 24px;
  padding-bottom: 18px;
}
.event-item::before {
  content: '';
  position: absolute;
  left: -2px; top: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  background: var(--bg-1);
}
.event-item.done::before {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 10px rgba(16, 217, 132, 0.5);
}
.event-item.current::before {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
.event-item.future::before { border-color: var(--text-muted); background: var(--bg-1); }
.event-desc { font-weight: 600; color: var(--text); font-size: 14px; }
.event-future .event-desc { color: var(--text-dim); font-style: italic; }
.event-loc { color: var(--text-dim); font-size: 12px; margin-top: 2px; }
.event-time { color: var(--text-muted); font-size: 11px; margin-top: 2px; font-family: 'JetBrains Mono', monospace; }

/* ── Watchlist sidebar (multi-container tracking) ──────────────────────── */
.watch-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 16px 32px 60px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  position: relative;
  z-index: 2;
}
.watch-sidebar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}
.watch-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.watch-sidebar-header h3 { font-size: 14px; }
.watch-sidebar-header .count {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.watch-sidebar-header button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
}
.watch-sidebar-header button:hover { color: var(--red); border-color: var(--red); }
.watch-list { overflow-y: auto; flex: 1; padding: 6px; }
.watch-list::-webkit-scrollbar { width: 6px; }
.watch-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.watch-item {
  padding: 12px 14px;
  margin: 4px 0;
  background: rgba(3, 4, 10, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.watch-item:hover { border-color: var(--cyan); background: rgba(0, 229, 255, 0.04); transform: translateX(2px); }
.watch-item.selected { border-color: var(--cyan); background: rgba(0, 229, 255, 0.08); box-shadow: 0 0 0 1px var(--cyan); }
.watch-row1 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.watch-cn { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; color: var(--cyan); letter-spacing: 0.04em; }
.watch-remove { background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; padding: 0 4px; border-radius: 4px; line-height: 1; }
.watch-remove:hover { color: var(--red); background: rgba(255,84,112,0.1); }
.watch-vessel { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.watch-route { font-size: 11px; color: var(--text-dim); margin-bottom: 6px; font-family: 'JetBrains Mono', monospace; }
.watch-progress { height: 4px; background: rgba(120, 180, 255, 0.1); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.watch-progress-fill { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); border-radius: 2px; transition: width 0.6s ease; }
.watch-row3 { display: flex; justify-content: space-between; align-items: center; font-size: 10px; }
.watch-status { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.watch-eta { color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.watch-empty { padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
.watch-empty .empty-glyph { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: radial-gradient(circle, rgba(0,229,255,0.15), transparent 70%); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.watch-map-wrap { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; backdrop-filter: blur(10px); }
.watch-map-wrap .track-map-header { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
#watch-map { height: 80vh; min-height: 540px; background: #0a1530; }

@media (max-width: 1100px) {
  .watch-shell { grid-template-columns: 1fr; padding: 16px 24px 40px; }
  .watch-sidebar { max-height: 50vh; }
  #watch-map { height: 60vh; min-height: 400px; }
}

@media (max-width: 1100px) {
  .track-grid { grid-template-columns: 1fr; }
  .vessel-card { grid-template-columns: 1fr; }
  .vessel-tele { grid-template-columns: repeat(2, 1fr); text-align: left; }
}

/* ==========================================================================
   DOCUMENT CARDS (customer drawer + customer page)
   ========================================================================== */
.docs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.doc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(3, 4, 10, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  font-family: inherit;
}
.doc-card:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.05);
  transform: translateY(-1px);
}
.doc-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(168,85,247,0.15));
  border: 1px solid rgba(0,229,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.doc-info { min-width: 0; flex: 1; }
.doc-name { font-weight: 600; font-size: 13px; color: var(--text); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta { font-size: 10px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.doc-arrow { color: var(--cyan); font-size: 18px; opacity: 0.6; }
.doc-card:hover .doc-arrow { opacity: 1; transform: translateX(2px); }

/* ==========================================================================
   OCEAN QUOTING
   ========================================================================== */
.mode-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(3, 4, 10, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 22px;
}
.mode-tab {
  flex: 1;
  padding: 14px 18px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mode-tab:hover { color: var(--text); }
.mode-tab.active {
  background: linear-gradient(135deg, rgba(0,229,255,0.18), rgba(168,85,247,0.18));
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(0,229,255,0.35);
}
.mode-tab .mode-tab-icon { font-size: 18px; }
.mode-tab .mode-tab-sub { display: block; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; opacity: 0.7; }

.port-pair {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 12px;
  align-items: end;
}
.port-pair .port-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-top: 18px;
  font-size: 22px;
  color: var(--cyan);
}

.cargo-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr 1fr 1fr 36px;
  gap: 10px;
  margin-bottom: 10px;
  align-items: end;
}
.container-row {
  display: grid;
  grid-template-columns: 80px 1fr 100px 36px;
  gap: 10px;
  margin-bottom: 10px;
  align-items: end;
}
.container-row .container-num {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 8px;
  color: var(--cyan);
  font-weight: 700;
  font-size: 13px;
  margin-top: 18px;
}

/* Ocean rate card */
.ocean-rate-card {
  background: rgba(3, 4, 10, 0.55);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.2s;
}
.ocean-rate-card:hover {
  border-color: var(--border-strong);
}
.ocean-rate-card.best {
  border-color: var(--green);
  background: linear-gradient(180deg, rgba(16,217,132,0.06) 0%, rgba(3,4,10,0.55) 50%);
}
.ocean-rate-head {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 14px;
  padding: 18px 20px;
  align-items: center;
}
.ocean-carrier-logo {
  width: 60px; height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.ocean-rate-info { min-width: 0; }
.ocean-carrier-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ocean-vessel {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.ocean-route {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.ocean-rate-price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 26px;
  text-align: right;
  white-space: nowrap;
}
.ocean-rate-price small {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: inherit;
}

.ocean-schedule {
  display: grid;
  grid-template-columns: 1fr 16px 1fr 16px 1fr 1fr;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(120, 180, 255, 0.04);
  border-top: 1px solid var(--border);
  align-items: center;
}
.sched-stop {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sched-stop span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}
.sched-stop strong {
  font-size: 13px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
}
.sched-arrow {
  color: var(--cyan);
  text-align: center;
  font-weight: 700;
  font-size: 18px;
}

.ocean-breakdown {
  border-top: 1px solid var(--border);
}
.ocean-breakdown summary {
  padding: 12px 20px;
  font-size: 12px;
  color: var(--cyan);
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.ocean-breakdown summary::-webkit-details-marker { display: none; }
.ocean-breakdown summary::before {
  content: '▸';
  display: inline-block;
  transition: transform 0.2s;
  color: var(--cyan);
}
.ocean-breakdown[open] summary::before { transform: rotate(90deg); }
.ocean-breakdown summary:hover { background: rgba(0,229,255,0.04); }

.breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin: 0 0 4px;
}
.breakdown-table thead th {
  text-align: left;
  padding: 10px 20px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: rgba(3, 4, 10, 0.45);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.breakdown-table tbody td {
  padding: 9px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}
.breakdown-table .amt {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  font-weight: 600;
}
.breakdown-table .total-row td {
  background: rgba(16, 217, 132, 0.06);
  color: var(--text);
  font-size: 14px;
}

/* Cargo summary banner */
.cargo-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 10px;
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.cargo-summary strong { color: var(--cyan); font-weight: 700; }

@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .login-wrap { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .ocean-schedule { grid-template-columns: 1fr 1fr; gap: 14px; }
  .ocean-schedule .sched-arrow { display: none; }
  .cargo-row { grid-template-columns: 1fr 1fr 1fr; }
  .cargo-row .pallet-num, .cargo-row .pallet-remove { display: none; }
}

@media (max-width: 980px) {
  .nav { padding: 14px 24px; }
  .container, .hero, .quote-layout, .page-header, .footer-inner, .footer-bottom, .site-copyright, .dash-shell { padding-left: 24px; padding-right: 24px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-3d { height: 380px; }
  .quote-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-row, .form-row.three, .form-row.four { grid-template-columns: 1fr 1fr; }
  .form-row.cargo-counts { grid-template-columns: repeat(3, minmax(4.25rem, 1fr)); }
  .form-row.cargo-dims { grid-template-columns: repeat(3, minmax(4.5rem, 1fr)); }
  .pallet-row { grid-template-columns: 1fr 1fr; }
  .pallet-num, .pallet-remove { display: none; }
  .dash-shell .shipment-table thead th:nth-child(2),
  .dash-shell .shipment-table tbody td:nth-child(2) { display: none; }
}
@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding: 12px 16px 18px;
    background: rgba(3, 4, 10, 0.97);
    border-bottom: 1px solid var(--border);
    gap: 4px;
    z-index: 120;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { width: 100%; }
}
@media (max-width: 560px) {
  h1 { font-size: 2rem; }
  section { padding: 50px 0; }
  .quote-form, .quote-results { padding: 22px; }
  .checkbox-row { grid-template-columns: 1fr; }
  .form-row, .form-row.three, .form-row.four { grid-template-columns: 1fr; }
  .form-row.cargo-counts,
  .form-row.cargo-dims { grid-template-columns: 1fr 1fr; }
  .capability-list { grid-template-columns: 1fr; }
  .footer-inner, .stats { grid-template-columns: 1fr; }
  .nav { padding: 12px 16px; }
  .site-copyright { padding: 10px 16px; flex-wrap: wrap; justify-content: center; text-align: center; }
}

/* Homepage capability grid (moved out of inline <style>) */
.capability-list {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
  margin-bottom: 22px;
}
.capability-list .cap-group h4 {
  font-size: 0.82rem;
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}
.capability-list .cap-group ul { list-style: none; padding: 0; margin: 0; }
.capability-list .cap-group li {
  padding: 1px 0 1px 12px;
  position: relative;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.capability-list .cap-group li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 9px;
  top: 4px;
}
.capability-list .cap-footer {
  grid-column: 1 / -1;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  font-size: 0.82rem;
  color: var(--cyan);
  font-style: italic;
}
@media (max-width: 720px) {
  .capability-list { grid-template-columns: 1fr; }
}

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.form-status.is-ok { color: var(--green); }
.form-status.is-error { color: var(--red); }

.rate-modal[hidden] { display: none; }
.rate-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.rate-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 16, 0.72);
}
.rate-modal-panel {
  position: relative;
  width: min(1180px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  padding: 28px 28px 24px;
}
.rate-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: rgba(3, 4, 10, 0.55);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.rate-modal-close:hover { color: var(--cyan); border-color: var(--cyan); }
.rate-modal-head { padding-right: 40px; margin-bottom: 22px; }
.rate-modal-head h2 { margin: 8px 0 6px; font-size: 1.45rem; }
.rate-modal-lane {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}
.rate-modal-ref {
  margin: 6px 0 0;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 1em;
}
.rate-modal-note {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}
.rate-modal-io {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.rate-modal-io[hidden] { display: none; }
.rate-modal-response {
  border: 1px solid var(--border);
  background: rgba(3, 4, 10, 0.55);
  padding: 12px 14px;
}
.rate-modal-response-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}
.rate-modal-response-body {
  margin: 0;
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-dim);
}
.rate-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rate-modal-body.is-single,
.rate-modal-body.is-message,
.rate-modal-body.is-table {
  grid-template-columns: 1fr;
}
.rate-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  background: rgba(3, 4, 10, 0.45);
}
.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.rate-table caption {
  text-align: left;
  padding: 12px 14px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}
.rate-table thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
  background: rgba(3, 4, 10, 0.35);
}
.rate-table thead th.amt,
.rate-table tbody td.amt {
  text-align: right;
}
.rate-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: middle;
}
.rate-table tbody tr:last-child td { border-bottom: none; }
.rate-table tbody tr.is-best { background: rgba(16, 217, 132, 0.06); }
.rate-table tbody tr.is-fast { background: rgba(0, 229, 255, 0.05); }
.rate-table tbody tr.is-best.is-fast { background: rgba(16, 217, 132, 0.08); }
.rate-table-carrier {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}
.rate-table-scac {
  margin-top: 4px;
  font-size: 11px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.rate-table-badge {
  display: inline-flex;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.rate-table-badge.is-best { color: var(--green); border-color: rgba(16, 217, 132, 0.4); }
.rate-table-badge.is-fast { color: var(--cyan); border-color: rgba(0, 229, 255, 0.4); }
.rate-table-total {
  font-weight: 800;
  color: var(--text);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  white-space: nowrap;
}
.rate-card {
  border: 1px solid var(--border);
  background: rgba(3, 4, 10, 0.45);
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}
.rate-card.is-best { border-color: rgba(16, 217, 132, 0.45); }
.rate-card.is-fast { border-color: rgba(0, 229, 255, 0.45); }
.rate-card-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.rate-card.is-best .rate-card-badge { color: var(--green); border-color: rgba(16, 217, 132, 0.4); }
.rate-card.is-fast .rate-card-badge { color: var(--cyan); border-color: rgba(0, 229, 255, 0.4); }
.rate-card h3 {
  margin: 0;
  font-size: 1.15rem;
}
.rate-card-service {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}
.rate-card-total {
  margin-top: auto;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--cyan), var(--violet), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rate-card-meta {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
}
.rate-card-meta span { display: flex; justify-content: space-between; gap: 12px; }
.rate-card-meta strong { color: var(--text); font-weight: 600; }
.rate-modal-empty,
.rate-modal-loading {
  text-align: center;
  padding: 36px 16px;
  color: var(--text-dim);
}
.rate-modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.rate-modal-spinner {
  width: 42px;
  height: 42px;
  border: 2px solid transparent;
  border-top-color: var(--cyan);
  border-right-color: var(--violet);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.rate-modal-error {
  color: var(--red);
  text-align: center;
  padding: 28px 12px;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .rate-modal-body { grid-template-columns: 1fr; }
  .rate-modal-io { grid-template-columns: 1fr; }
  .rate-modal-panel { padding: 22px 18px 18px; }
}

code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.85em;
  color: var(--cyan);
}

/* Admin shell */
.admin-body {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-0);
}
.admin-sidebar {
  width: 268px;
  flex-shrink: 0;
  padding: 22px 18px;
  border-right: 1px solid var(--border);
  background: rgba(3, 4, 10, 0.85);
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.admin-side-nav-main { flex: 1 1 auto; }
.admin-side-nav-dev {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.sso-log-details summary {
  cursor: pointer;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
}
.sso-log-details pre {
  margin-top: 10px;
  max-height: 280px;
  overflow: auto;
}
.admin-sidebar .brand { margin-bottom: 32px; }
.admin-side-nav { display: flex; flex-direction: column; gap: 6px; }
.admin-side-nav a,
.admin-side-nav .is-disabled {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.admin-side-nav a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.admin-side-nav a:hover { color: var(--text); background: rgba(120,180,255,0.06); }
.admin-side-nav a.active {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.25);
}
.admin-side-nav .is-disabled {
  color: var(--text-muted);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.45;
  cursor: not-allowed;
}
.admin-nav-icon {
  flex-shrink: 0;
  opacity: 0.8;
}
.admin-side-nav a.active .admin-nav-icon,
.admin-nav-group[open] > summary .admin-nav-icon {
  opacity: 1;
  color: var(--cyan);
}
.admin-nav-group {
  display: flex;
  flex-direction: column;
}
.admin-nav-group > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-dim);
  padding: 12px 10px 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex: 1;
}
.admin-nav-group > summary::-webkit-details-marker,
.admin-nav-group > summary::marker {
  display: none;
  content: '';
}
.admin-nav-group > summary:hover {
  color: var(--text);
  background: rgba(120,180,255,0.06);
}
.admin-nav-group[open] > summary {
  color: var(--text);
}
.admin-nav-caret {
  width: 0;
  height: 0;
  flex-shrink: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-muted);
  transition: transform 0.15s ease;
}
.admin-nav-group[open] > summary .admin-nav-caret {
  transform: rotate(180deg);
  border-top-color: var(--cyan);
}
.admin-nav-sub {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0 0;
}
.admin-nav-sub a {
  padding-left: 42px;
  font-size: 13px;
}
.admin-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.admin-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
  background: #0a0e1f;
  flex-shrink: 0;
  position: relative;
  z-index: 50;
}
.admin-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  margin-right: auto;
  border: 1px solid var(--border);
  background: rgba(3, 4, 10, 0.55);
  cursor: pointer;
}
.admin-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}
.admin-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(3, 4, 10, 0.62);
}
.admin-top-end { justify-content: flex-end; }
.admin-top > div:not(.admin-account) { display: none; }
.admin-body .dash-header .eyebrow { display: none !important; }
.admin-body .dash-header {
  margin-bottom: 24px;
  align-items: flex-start;
}
.admin-body .dash-header > div {
  min-width: 0;
  max-width: 100%;
}
.admin-body .dash-header h1 {
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.admin-body .dash-header p {
  font-size: 0.95rem;
  max-width: 100%;
  margin-top: 8px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}
.admin-body .dash-panel-header {
  padding: 16px 24px;
  gap: 16px;
}
.admin-body .dash-panel-header .sub {
  display: inline-block;
  margin-top: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.admin-body .shipment-table {
  font-size: 14px;
}
.admin-body .shipment-table thead th {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 14px 16px;
  background: rgba(0, 229, 255, 0.08);
  border-bottom: 1px solid rgba(0, 229, 255, 0.28);
  cursor: default;
}
.admin-body .shipment-table thead th:hover {
  color: var(--cyan);
}
.admin-body .shipment-table tbody td {
  color: var(--text);
  font-weight: 400;
}
.admin-body .shipment-table tbody tr {
  background: #3e5494;
}
.admin-body .shipment-table tbody tr:nth-child(even) {
  background: #4a62a8;
}
.admin-body .shipment-table tbody tr:hover {
  background: #3a78b0;
}
.admin-account { position: relative; z-index: 51; }
.admin-account[open] { z-index: 60; }
.admin-account > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
}
.admin-account > summary::-webkit-details-marker,
.admin-account > summary::marker {
  display: none;
  content: '';
}
.admin-account-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.2;
}
.admin-account-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-account-role {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.admin-account-caret {
  width: 0;
  height: 0;
  margin-right: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-muted);
}
.admin-account[open] .admin-account-caret {
  transform: rotate(180deg);
  border-top-color: var(--cyan);
}
.admin-account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 8px;
  background: #111634;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  z-index: 70;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.72);
}
.admin-account-menu a,
.admin-account-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-dim);
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.admin-account-menu a:hover,
.admin-account-menu button:hover {
  color: var(--text);
  background: rgba(120, 180, 255, 0.06);
}
.admin-account-menu a.active {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
}
.admin-account-menu button.admin-logout-btn {
  color: var(--red);
}
.admin-account-menu button.admin-logout-btn:hover {
  color: var(--red);
  background: rgba(255, 84, 112, 0.12);
}
.admin-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-name-cell .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #001020;
  font-weight: 800;
  font-size: 11px;
  overflow: hidden;
  flex-shrink: 0;
}
.admin-name-cell .avatar[data-photo-zoom] {
  cursor: zoom-in;
}
.admin-name-cell .avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.admin-content {
  padding: 28px 32px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.admin-copyright {
  flex-shrink: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-top: 1px solid var(--border);
  background: rgba(3, 4, 10, 0.92);
  backdrop-filter: blur(18px);
  color: var(--text-muted);
  font-size: 12px;
}
.admin-link-btn {
  background: none;
  border: none;
  color: var(--cyan);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}
.admin-link-btn:hover { color: var(--text); }
.admin-edit-btn {
  padding: 8px 16px;
  font-size: 12px;
  gap: 0;
  box-shadow: 0 8px 20px rgba(0, 229, 255, 0.28);
}
.admin-edit-btn:hover {
  transform: translateY(-1px);
}
.shipment-table .sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.quote-sub {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.shipment-table a.quote-id {
  color: #7ef6ff;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  border: 0;
  box-shadow: none;
}
.shipment-table a.quote-id:hover {
  color: #ffffff;
  text-decoration: none;
}
.admin-body .shipment-table tbody td.activity-when {
  color: #ffffff;
  font-weight: 600;
}
.quotes-review-table tbody td {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
}
.quotes-review-table a.quote-id {
  color: #7ef6ff;
  font-weight: 800;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quotes-review-table a.quote-id:hover {
  color: #ffffff;
}
.activity-table .activity-name {
  font-weight: 700;
  color: var(--text);
}
.activity-table .activity-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-top: 3px;
}
.activity-table .activity-email {
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  margin-top: 3px;
}
.activity-table .activity-when,
.activity-table .activity-action,
.activity-table .activity-details {
  color: var(--text);
  font-weight: 500;
}

.admin-body *:not(.avatar):not(.brand-logo) {
  border-radius: 0 !important;
}
.admin-body .bol-sheet {
  border-radius: 16px !important;
}
.admin-body .bol-number-card {
  border-radius: 12px !important;
}
.admin-body .avatar,
.admin-body .avatar img {
  border-radius: 50% !important;
}
.admin-body .avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.admin-body .brand-logo {
  border-radius: 11px !important;
}
.admin-body .brand-logo::before {
  border-radius: 50% !important;
}

.photo-field .photo-zoom {
  width: 112px;
  height: 112px;
  font-size: 32px;
  margin-bottom: 12px;
  cursor: zoom-in;
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-field .photo-zoom.is-empty,
.photo-field .photo-zoom:disabled {
  cursor: default;
}
.photo-field .photo-zoom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.photo-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
}
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 4, 10, 0.88);
  padding: 32px;
}
.photo-lightbox[hidden] { display: none; }
.photo-lightbox img {
  width: auto;
  height: auto;
  max-width: min(720px, 88vw);
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.photo-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
body.photo-lightbox-open,
body.rate-modal-open { overflow: hidden; }

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 24, 0.62);
  transition: opacity 0.38s ease, visibility 0.38s ease;
}
.app-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.app-loader-stage {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-loader-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--cyan);
  border-right-color: var(--violet);
  animation: spin 1.05s linear infinite;
}
.app-loader-logo {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  animation: loader-pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.28);
}
.app-loader-logo::before { inset: 6px; }
.app-loader-logo::after { inset: 7px; }
@keyframes loader-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.07); filter: brightness(1.18); }
}
.admin-body .app-loader-logo.brand-logo {
  border-radius: 15px !important;
}
.admin-body .app-loader-stage::before {
  border-radius: 50% !important;
}
@media (prefers-reduced-motion: reduce) {
  .app-loader-stage::before,
  .app-loader-logo { animation: none; }
}

.app-toasts {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(520px, calc(100vw - 40px));
  pointer-events: none;
}
.admin-body .app-toasts {
  top: 18px;
  left: calc(268px + (100vw - 268px) / 2);
}
.app-toast {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 16px 18px 18px;
  border: none;
  background: #3e5494;
  color: var(--text);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.app-toast.is-ok {
  background: #4a62a8;
}
.app-toast.is-err {
  background: #3e5494;
}
.app-toast::before { display: none; }
.app-toast-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.app-toast.is-ok .app-toast-icon { color: var(--cyan); background: rgba(0, 229, 255, 0.16); }
.app-toast.is-err .app-toast-icon { color: var(--red); background: rgba(255, 84, 112, 0.18); }
.app-toast-body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}
.app-toast-body strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.app-toast.is-ok .app-toast-body strong { color: var(--cyan); }
.app-toast.is-err .app-toast-body strong { color: var(--red); }
.app-toast-body span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}
.app-toast-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}
.app-toast-close:hover { opacity: 1; }
.app-toast-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  transform-origin: left center;
  animation: toast-progress 5s linear forwards;
}
.app-toast.is-ok .app-toast-progress { background: var(--cyan); }
.app-toast.is-err .app-toast-progress { background: var(--red); }
.app-toast.is-leaving {
  animation: toast-out 0.3s ease forwards;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-18px); }
}
@keyframes toast-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.admin-summary-grid {
  margin-bottom: 18px;
}
.a-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.a-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; backdrop-filter: blur(10px); overflow: hidden; }
.a-panel-header { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.a-panel-header h3 { font-size: 15px; }
.a-panel-header .sub { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.a-panel-body { padding: 20px 22px; }
.chart-wrap { position: relative; height: 280px; }
.lane-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--border); align-items: center; font-size: 13px; }
.lane-row:last-child { border-bottom: none; }
.lane-row .lane-name { font-weight: 600; }
.lane-row .lane-sub { font-size: 10px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; margin-top: 2px; }
.lane-bar { height: 4px; background: rgba(120, 180, 255, 0.1); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.lane-bar-fill { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); border-radius: 2px; }
.lane-stat { font-family: 'JetBrains Mono', monospace; text-align: right; font-size: 12px; }
.lane-stat strong { color: var(--cyan); display: block; }
.lane-stat small { color: var(--text-muted); font-size: 10px; }
.range-pills { display: flex; gap: 6px; }
.range-pill { padding: 7px 14px; background: rgba(3,4,10,0.55); border: 1px solid var(--border); border-radius: 100px; color: var(--text-dim); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.range-pill:hover { color: var(--text); border-color: var(--border-strong); }
.range-pill.active { background: rgba(0, 229, 255, 0.1); color: var(--cyan); border-color: var(--cyan); }
.grade { display: inline-block; padding: 3px 10px; border-radius: 6px; font-weight: 800; font-size: 12px; letter-spacing: 0.04em; }
.grade.A { background: rgba(16,217,132,0.15); color: var(--green); border: 1px solid rgba(16,217,132,0.4); }
.grade.B { background: rgba(0,229,255,0.15); color: var(--cyan); border: 1px solid rgba(0,229,255,0.4); }
.grade.C { background: rgba(255,145,0,0.15); color: var(--orange); border: 1px solid rgba(255,145,0,0.4); }
.grade.D { background: rgba(255,84,112,0.15); color: var(--red); border: 1px solid rgba(255,84,112,0.4); }
.carrier-card { display: flex; align-items: center; gap: 10px; }
.carrier-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }

@media (max-width: 1100px) { .a-row { grid-template-columns: 1fr; } }
@media (max-width: 1600px) {
  .admin-body .dash-header p { white-space: normal; }
}
@media (max-width: 1100px) {
  .admin-menu-btn { display: flex; }
  .admin-top {
    justify-content: space-between;
    padding: 12px 16px;
  }
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 40;
    width: min(280px, 86vw);
    height: 100vh;
    transform: translateX(-110%);
    transition: transform 0.2s ease;
  }
  .admin-nav-open .admin-sidebar { transform: translateX(0); }
  .admin-content { padding: 18px 16px; }
  .admin-copyright { padding: 12px 16px; }
  .admin-body .dash-header { margin-bottom: 16px; }
  .admin-body .dash-header h1 { font-size: 1.35rem; }
  .admin-body .dash-panel-header {
    padding: 14px 16px;
    flex-wrap: wrap;
  }
  .admin-body .shipment-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-body .shipment-table { min-width: 760px; }
  .admin-body .form-row,
  .admin-body .form-row.three,
  .admin-body .form-row.four { grid-template-columns: 1fr; }
  .admin-body .form-row.shipment-selects { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .admin-body .app-toasts {
    left: 50%;
    top: 12px;
    bottom: auto;
    width: calc(100vw - 24px);
  }
  .filter-bar .result-count { margin-left: 0; }
  .range-pills { flex-wrap: wrap; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .photo-lightbox { padding: 16px; }
  .photo-lightbox img {
    max-width: 94vw;
    max-height: 78vh;
  }
}
@media (max-width: 700px) {
  .admin-account > summary.user-chip .admin-account-meta { display: none; }
  .kpi-grid { grid-template-columns: 1fr; }
  .admin-body .dash-header h1 { font-size: 1.22rem; }
  .admin-edit-btn { padding: 8px 12px; }
}

.markup-settings {
  max-width: 760px;
}
.markup-enable {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: rgba(3, 4, 10, 0.35);
  cursor: pointer;
}
.markup-enable:hover {
  border-color: rgba(0, 229, 255, 0.35);
}
.markup-enable input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--cyan);
  cursor: pointer;
  flex-shrink: 0;
}
.markup-enable strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text);
}
.markup-enable small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}
.markup-fields.is-off {
  opacity: 0.48;
}
.markup-amount-row {
  align-items: start;
  margin-bottom: 16px;
}
.markup-value-input {
  display: flex;
  align-items: stretch;
}
.markup-value-input input {
  flex: 1 1 auto;
  min-width: 0;
}
.markup-value-prefix,
.markup-value-suffix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-weight: 700;
  font-size: 13px;
  background: rgba(3, 4, 10, 0.45);
}
.markup-value-prefix {
  border-right: 0;
}
.markup-value-suffix {
  border-left: 0;
}
.markup-value-input input {
  border-radius: 0;
}
.markup-preview {
  padding: 12px 14px;
  border: 1px dashed rgba(147, 161, 196, 0.28);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.45;
  background: rgba(3, 4, 10, 0.28);
}
.markup-actions {
  margin-top: 22px;
}
.markup-actions .btn-quote {
  width: auto;
  min-width: 200px;
  margin-top: 0;
}
.markup-settings .field-hint {
  margin-top: 8px;
}
@media (max-width: 700px) {
  .markup-settings { max-width: none; }
  .markup-actions .btn-quote { width: 100%; }
}

.shipment-selects {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.shipment-selects-hint {
  margin: -6px 0 14px;
}
.quote-create { max-width: none; }
.quote-create .dash-panel-body.is-form {
  padding-top: 16px;
}
.quote-create .quote-block {
  padding: 0 0 16px;
  margin: 0 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(3, 4, 10, 0.22);
  overflow: hidden;
}
.quote-create .quote-block:last-of-type {
  margin-bottom: 18px;
}
.quote-create .quote-block h2 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 14px;
  padding: 12px 16px;
  background: rgba(0, 229, 255, 0.08);
  border-bottom: 1px solid var(--border);
}
.quote-create .quote-block > *:not(h2) {
  margin-left: 16px;
  margin-right: 16px;
}
.quote-create .quote-block h3,
.quote-lane h3,
.quote-acc-group h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 10px;
}
.quote-create .field label {
  padding-top: 10px;
}
.quote-create .form-row {
  margin-bottom: 18px;
  row-gap: 16px;
}
.quote-create .quote-lane > .field {
  margin-bottom: 14px;
}
.quote-create .shipment-selects {
  margin-top: 4px;
}
.quote-create .commodity-line.is-bottom,
.quote-create .commodity-line.is-hazmat-toggle {
  margin-top: 16px;
}
.quote-mode-copy {
  font-size: 12px;
  color: var(--text-dim);
}
.quote-mode-copy strong { color: var(--cyan); }
.quote-alert { margin: 0 0 16px; }
.quote-alert a { color: var(--cyan); }
.quote-lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.quote-lane {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(3, 4, 10, 0.28);
}
.quote-acc-group { margin-top: 14px; }
.quote-acc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.quote-acc-grid .checkbox { padding: 10px 12px; margin: 0; }
.quote-acc-more {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px 12px;
}
.quote-acc-more summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 0;
  color: var(--text);
}
.quote-acc-more[open] summary { margin-bottom: 8px; }
.quote-results-panel { margin-top: 18px; scroll-margin-top: 24px; }
.quote-results-panel .dash-panel-body { padding: 0; }
.quote-results-panel.is-live .dash-panel-header h3 { color: var(--cyan); }
.quote-results-panel.is-sandbox .dash-panel-header h3 { color: #f5c16c; }
.quote-ship-panel { margin-top: 18px; scroll-margin-top: 24px; }
.quote-ship-panel .dash-panel-body.is-form { padding-top: 16px; }
.btn-ship {
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--cyan);
  color: #001018;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.btn-ship:hover { filter: brightness(1.08); }
.btn-ship:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-ship-cancel {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  box-sizing: border-box;
}
.rate-table tbody tr.is-shipping { outline: 1px solid rgba(0, 229, 255, 0.45); }
.quote-create .markup-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.quote-create .form-status { margin-top: 0; }
.quote-log {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(3, 4, 10, 0.4);
}
.quote-log summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--cyan);
}
.quote-log h4 {
  margin: 14px 0 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.quote-log pre {
  margin: 0;
  max-height: 280px;
  overflow: auto;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.quote-weight {
  display: flex;
  align-items: stretch;
}
.quote-weight input {
  flex: 1 1 auto;
  min-width: 0;
  border-right: 0;
  border-radius: 8px 0 0 8px;
}
.quote-weight select {
  width: 4.5rem;
  flex: 0 0 4.5rem;
  border-radius: 0 8px 8px 0;
  padding-left: 8px;
  padding-right: 8px;
}
.quote-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.quote-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
  cursor: pointer;
}
.quote-create .checkbox.is-locked,
.quote-create .field.is-locked,
.quote-create .quote-check.is-locked {
  opacity: 0.48;
  cursor: not-allowed;
}
.quote-create .checkbox.is-locked:hover {
  border-color: var(--border);
  background: rgba(3, 4, 10, 0.4);
}
.quote-create .checkbox.is-locked input,
.quote-create .field.is-locked select,
.quote-create .quote-check.is-locked input {
  cursor: not-allowed;
}
.quote-create [data-combo-hint]:empty {
  display: none;
}
.commodity-line.is-hazmat-toggle [data-hazmat-hint] {
  flex: 1 0 100%;
  margin: 0;
}
.quote-commodity {
  max-width: none;
  width: 100%;
}
.commodity-item {
  width: 100%;
  padding: 12px 12px 10px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(3, 4, 10, 0.28);
}
.commodity-item:last-child { margin-bottom: 0; }
.commodity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -4px 0 10px;
}
.commodity-head strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.commodity-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.commodity-line {
  display: grid;
  gap: 8px;
  align-items: start;
}
.commodity-line.is-top {
  grid-template-columns: minmax(8rem, 1.6fr) minmax(5rem, 0.6fr) minmax(4.5rem, 0.55fr) minmax(5rem, 0.6fr) minmax(8rem, 1.1fr);
}
.commodity-line.is-bottom {
  grid-template-columns: minmax(4.5rem, 0.7fr) minmax(4.5rem, 0.7fr) minmax(4.5rem, 0.7fr) minmax(6rem, 1fr) minmax(10rem, 2fr);
  margin-top: 8px;
}
.commodity-line.is-hazmat-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-top: 6px;
}
.commodity-line.is-hazmat-toggle > .field {
  flex: 0 0 auto;
}
.commodity-hazmat-extras {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: end;
  gap: 10px;
  min-width: 0;
}
.commodity-hazmat-extras .field:nth-child(1) {
  flex: 1.8 1 22rem;
  min-width: 22rem;
}
.commodity-hazmat-extras .field:nth-child(2) {
  flex: 1 1 11rem;
  min-width: 11rem;
}
.commodity-hazmat-extras .field:nth-child(3) {
  flex: 1 1 12rem;
  min-width: 12rem;
}
.commodity-hazmat-extras .field label {
  white-space: nowrap;
}
.commodity-hazmat-extras .field input,
.commodity-hazmat-extras .field select {
  width: 100%;
  padding: 7px 10px;
  font-size: 13px;
  white-space: nowrap;
}
.commodity-line .field { min-width: 0; }
.commodity-line .field input,
.commodity-line .field select {
  padding: 8px 8px;
  font-size: 13px;
}
.commodity-line .field-error {
  display: block;
  margin-top: 4px;
  max-width: 100%;
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.commodity-line .field.is-grow { min-width: 0; }
.commodity-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}
.commodity-btn.is-plus {
  background: #00e5ff;
  color: #001018;
}
.commodity-btn.is-plus:hover {
  background: #4df0ff;
}
.commodity-btn.is-minus {
  background: #ff5470;
  color: #140308;
}
.commodity-btn.is-minus:hover {
  background: #ff7a8e;
}
.commodity-btn:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}
.commodity-item .quote-check { min-height: 38px; }
@media (max-width: 900px) {
  .quote-commodity { max-width: none; }
  .commodity-line.is-top,
  .commodity-line.is-bottom { grid-template-columns: 1fr 1fr; }
  .commodity-line.is-hazmat-toggle { flex-wrap: wrap; }
  .commodity-hazmat-extras { flex-wrap: wrap; }
  .commodity-hazmat-extras .field:nth-child(1),
  .commodity-hazmat-extras .field:nth-child(2),
  .commodity-hazmat-extras .field:nth-child(3) { min-width: 11rem; }
}
.field.is-invalid .gtz-mode-switch {
  box-shadow: 0 0 0 3px rgba(255, 84, 112, 0.12);
}
@media (max-width: 900px) {
  .quote-lanes,
  .quote-acc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .quote-lanes,
  .quote-acc-grid { grid-template-columns: 1fr; }
  .admin-body .form-row.shipment-selects { grid-template-columns: 1fr 1fr; }
}

.ship-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-end;
  white-space: nowrap;
}
.ship-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--cyan);
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(0, 229, 255, 0.05);
}
.ship-actions a span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ship-actions a:hover {
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.12);
}
.ship-actions .admin-nav-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.ship-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.ship-subnav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
}
.ship-subnav a.is-active,
.ship-subnav a:hover {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.08);
}
.ship-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 18px;
}
.ship-facts span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.ship-facts strong { font-weight: 700; color: var(--text); }
.ship-track-panel .dash-panel-header {
  padding: 20px 28px;
}
.ship-track-body {
  padding: 24px 28px 28px 32px;
}
.ship-track-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}
.ship-track-facts > div {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 12, 28, 0.45);
}
.ship-track-facts span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.ship-track-facts strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  word-break: break-word;
}
.ship-track-empty {
  padding: 22px 20px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: rgba(8, 12, 28, 0.35);
}
.ship-track-empty strong { display: block; margin-bottom: 6px; }
.ship-track-empty p { margin: 0; color: var(--text-dim); font-size: 13px; }
.ship-track {
  list-style: none;
  margin: 0;
  padding: 4px 0 0 28px;
  position: relative;
}
.ship-track::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(120, 180, 255, 0.12));
}
.ship-track li {
  position: relative;
  padding: 0 0 16px 16px;
}
.ship-track li:last-child { padding-bottom: 0; }
.ship-track li::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0a0e1f;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.12);
  z-index: 1;
}
.ship-track li.is-current::before {
  background: var(--cyan);
}
.ship-track-card {
  padding: 14px 16px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(18, 24, 50, 0.55);
}
.ship-track-card strong {
  display: block;
  font-size: 14px;
}
.ship-track-card time {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.ship-track-card p {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 13px;
}
@media (max-width: 900px) {
  .ship-track-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ship-track-body { padding: 18px 16px 20px 18px; }
  .ship-track-facts { grid-template-columns: 1fr; }
}
.ship-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.ship-modal[hidden] { display: none; }
.ship-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 24px 32px;
}
.ship-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 16, 0.78);
}
.ship-modal-panel {
  position: relative;
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  margin-top: 8px;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  padding: 22px 24px 24px;
}
.ship-modal-title {
  margin: 0 48px 16px 0;
  font-size: 1.25rem;
}
.ship-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(3, 4, 10, 0.55);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ship-modal-close:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}
.ship-modal-loading {
  margin: 12px 0;
  color: var(--text-dim);
}
.ship-modal-body .bol-sheet {
  max-width: none;
  width: 100%;
}
.ship-modal-body .dash-panel {
  margin-top: 0;
  overflow: visible;
  background: #10183a;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.ship-detail {
  background: #10183a;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  -webkit-font-smoothing: subpixel-antialiased;
}
.ship-detail + .ship-detail,
.ship-modal-body .ship-detail + .ship-detail {
  margin-top: 18px;
}
.ship-detail .dash-panel-header h3,
.ship-modal-title {
  color: #fff;
  font-weight: 800;
}
.ship-detail .dash-panel-header .sub {
  color: #c5d2f0;
}
.ship-detail .quote-block {
  background: #162044;
  border-color: rgba(150, 190, 255, 0.32);
}
.ship-detail .quote-block h2 {
  background: rgba(0, 229, 255, 0.16);
  color: #fff;
}
.ship-detail .quote-lane {
  background: #1a2650;
  border-color: rgba(150, 190, 255, 0.28);
}
.ship-detail .quote-lane h3 {
  color: #9be7ff;
}
.ship-detail .quote-lane p,
.ship-detail .quote-block p {
  color: #f2f6ff;
  font-weight: 600;
}
.ship-detail .ship-facts span,
.ship-detail .ship-track-facts span {
  color: #c5d2f0;
  font-weight: 700;
}
.ship-detail .ship-facts strong,
.ship-detail .ship-track-facts strong {
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}
.ship-detail .field-hint,
.ship-detail .ship-track-empty p,
.ship-detail .ship-track-card p,
.ship-detail .ship-track-card time {
  color: #d5def5;
}
.ship-detail .ship-track-facts > div,
.ship-detail .ship-track-empty,
.ship-detail .ship-track-card {
  background: #162044;
  border-color: rgba(150, 190, 255, 0.28);
}
.ship-detail .ship-track-card strong {
  color: #fff;
}
.ship-detail .shipment-table tbody td {
  color: #f2f6ff;
  font-weight: 600;
}
body.ship-modal-open { overflow: hidden; }
@media (max-width: 700px) {
  .ship-modal { padding: 12px; }
  .ship-modal-panel { padding: 16px 14px 18px; max-height: calc(100vh - 24px); }
}
.bol-sheet {
  background: #fff;
  color: #12203a;
  border-radius: 16px;
  overflow: hidden;
  max-width: 880px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.bol-sheet,
.bol-sheet * {
  box-sizing: border-box;
}
.bol-banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: stretch;
  padding: 28px 32px;
  background-color: #0a4a73;
  background-image: linear-gradient(135deg, #062a4a 0%, #0a4a73 55%, #087ea8 100%);
  color: #fff;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.bol-banner > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}
.bol-banner h2 {
  color: #fff !important;
  font-size: 22px;
  margin: 4px 0 6px;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bol-banner p {
  color: #fff !important;
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bol-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 800;
  color: #c8f7ff !important;
  margin-bottom: 2px;
  overflow-wrap: anywhere;
}
.bol-number-card {
  flex: 0 1 240px;
  min-width: 0;
  max-width: 42%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: right;
}
.bol-number-card span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9be7ff;
  font-weight: 700;
}
.bol-number-card strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.15;
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bol-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid #d7e1ef;
}
.bol-meta div {
  padding: 14px 12px;
  border-right: 1px solid #d7e1ef;
  min-width: 0;
}
.bol-meta div:last-child { border-right: 0; }
.bol-meta span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7c99;
  font-weight: 700;
  margin-bottom: 4px;
}
.bol-meta strong {
  color: #12203a;
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bol-file {
  padding: 0;
  background: #f4f7fb;
}
.bol-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  background: #fff;
  border: 0;
  image-rendering: auto;
}
.bol-embed {
  display: block;
  width: 100%;
  min-height: 900px;
  border: 0;
  background: #fff;
}
.bol-billto {
  margin: 20px 32px 0;
  border: 2px solid #0a4a73;
  background: #eaf3fb;
  padding: 14px 18px;
}
.bol-billto span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a4a73;
  font-weight: 800;
  margin-bottom: 6px;
}
.bol-billto p { margin: 0; color: #12203a; }
.bol-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  margin: 20px 32px;
  border: 1px solid #d7e1ef;
}
.bol-grid section {
  padding: 16px 18px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bol-grid section:first-child { border-right: 1px solid #d7e1ef; }
.bol-sheet h3 {
  color: #0a4a73;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.bol-name { font-weight: 800; color: #0d1b33; }
.bol-sheet p { color: #12203a; margin: 0 0 4px; font-weight: 600; }
.bol-banner p { color: #fff !important; }
.bol-banner .bol-kicker { color: #c8f7ff !important; }
.bol-hours { color: #6b7c99; font-size: 12px; }
.bol-section { padding: 0 32px 8px; }
.bol-sheet table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 12px;
  table-layout: fixed;
}
.bol-sheet th, .bol-sheet td {
  border: 1px solid #d7e1ef;
  padding: 9px 10px;
  text-align: left;
  font-size: 13px;
  color: #12203a;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bol-sheet th {
  background: #0a4a73;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bol-total td { font-weight: 800; background: #f4f7fb; }
.bol-sheet .bol-note {
  font-size: 14px;
  color: #0a1a33;
  font-weight: 800;
  margin: 12px 32px 0;
  padding: 12px 14px;
  line-height: 1.45;
  background: #eaf3fb;
  border: 2px solid #0a4a73;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bol-end { padding-bottom: 8px; }
.bol-sign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 36px 32px 8px;
}
.bol-sign div {
  border-top: 1px solid #12203a;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #12203a;
}
.bol-print-bar {
  display: flex;
  justify-content: center;
  padding: 18px 0 8px;
  background: transparent;
  border: 0;
}
.bol-print-btn {
  min-width: 200px;
  width: auto;
  margin: 0;
  padding: 12px 28px;
  border: 0;
  border-radius: 8px;
  background: #0a4a73;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  cursor: pointer;
  font-family: inherit;
  box-shadow: none;
  text-transform: none;
}
.bol-print-btn:hover { background: #08395a; }
body.bol-print-page {
  display: flex !important;
  flex-direction: column !important;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  margin: 0;
  background: #e8edf3;
  color: #12203a;
  font-family: Inter, Arial, Helvetica, sans-serif;
}
.bol-print-top {
  flex-shrink: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  background: #fff;
  border-bottom: 1px solid #d5deea;
}
.bol-print-top .brand { text-decoration: none; color: #12203a; }
.bol-print-top .brand-tag { color: #0a4a73; }
.bol-print-top p {
  margin: 0;
  color: #4a5d78;
  font-weight: 600;
  font-size: 14px;
}
.bol-print-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 36px 32px 48px;
}
.bol-print-page .bol-sheet,
.bol-print-page .gtz-bol {
  margin: 0 auto;
}
.admin-content .gtz-bol,
.ship-modal-body .gtz-bol {
  margin: 8px auto 28px;
}
.bol-print-page .bol-sheet.bol-has-file {
  padding: 24px;
  background: #fff;
}
.gtz-bol {
  position: relative;
  isolation: isolate;
  background: #fff;
  color: #12203a;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid #1b3554;
  box-sizing: border-box;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  word-spacing: normal;
  letter-spacing: normal;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 12px 36px rgba(18, 32, 58, 0.1);
}
.gtz-bol,
.gtz-bol * { box-sizing: border-box; }
.gtz-bol > *:not(.gtz-bol-watermark) {
  position: relative;
  z-index: 1;
}
.gtz-bol section,
.gtz-bol header,
.gtz-bol h2,
.gtz-bol h3 {
  margin: 0;
  padding: 0;
  position: relative;
  z-index: auto;
  font-family: Inter, Arial, Helvetica, sans-serif;
  letter-spacing: normal;
  line-height: 1.35;
  -webkit-text-fill-color: inherit;
}
.gtz-bol-sample { overflow: hidden; }
.gtz-bol-watermark {
  position: absolute;
  top: 42%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 72px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(176, 32, 32, 0.07);
  transform: rotate(-18deg);
  pointer-events: none;
  z-index: 0;
}
.gtz-bol .gtz-bol-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.35fr) minmax(0, 0.9fr);
  background: #0a4a73;
  color: #fff;
  border-bottom: 0;
}
.gtz-bol-head,
.gtz-bol-cargo th {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.gtz-bol-brand,
.gtz-bol-title,
.gtz-bol-ids { padding: 18px 20px; min-width: 0; }
.gtz-bol-brand,
.gtz-bol-title { border-right: 1px solid rgba(255, 255, 255, 0.22); }
.gtz-bol-brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: #fff;
  font-weight: 800;
}
.gtz-bol-brand span {
  display: block;
  margin-top: 6px;
  color: #c8f7ff;
  font-weight: 600;
  font-size: 12px;
}
.gtz-bol-title p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 800;
  color: #c8f7ff;
}
.gtz-bol-title h2 {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.3;
  color: #fff;
  font-weight: 700;
}
.gtz-bol-ids div { margin-bottom: 10px; }
.gtz-bol-ids div:last-child { margin-bottom: 0; }
.gtz-bol-ids span,
.gtz-bol-meta span,
.gtz-bol-carrier span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7c99;
  font-weight: 700;
  margin-bottom: 4px;
}
.gtz-bol-ids span { color: #9be7ff; }
.gtz-bol-ids strong,
.gtz-bol-meta strong,
.gtz-bol-carrier strong {
  display: block;
  color: #12203a;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.gtz-bol-ids strong { color: #fff; }
.gtz-bol-meta,
.gtz-bol-parties,
.gtz-bol-carrier {
  display: grid;
  border-bottom: 1px solid #d5deea;
  background: #fff;
}
.gtz-bol-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gtz-bol-meta div,
.gtz-bol-carrier div {
  padding: 14px 18px;
  border-right: 1px solid #d5deea;
  min-width: 0;
}
.gtz-bol-meta div:nth-child(3n),
.gtz-bol-carrier div:last-child { border-right: 0; }
.gtz-bol-parties { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gtz-bol .gtz-bol-parties section {
  padding: 16px 18px 18px;
  border-right: 1px solid #d5deea;
  min-width: 0;
}
.gtz-bol .gtz-bol-parties section:last-child { border-right: 0; }
.gtz-bol h3 {
  display: block;
  margin: 0 0 10px;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #0a4a73;
  font-weight: 800;
}
.gtz-bol p {
  margin: 0 0 5px;
  color: #12203a;
  word-spacing: normal;
  letter-spacing: normal;
  line-height: 1.45;
}
.gtz-bol-name { font-weight: 800; color: #0d1b33; }
.gtz-bol-hours { color: #5b6b82; font-size: 12px; }
.gtz-bol-carrier { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1.4fr); }
.gtz-bol-cargo {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0;
}
.gtz-bol-cargo th:nth-child(1),
.gtz-bol-cargo td:nth-child(1) { width: 58px; }
.gtz-bol-cargo th:nth-child(2),
.gtz-bol-cargo td:nth-child(2) { width: 48px; text-align: center; }
.gtz-bol-cargo th:nth-child(4),
.gtz-bol-cargo td:nth-child(4) { width: 88px; }
.gtz-bol-cargo th:nth-child(5),
.gtz-bol-cargo td:nth-child(5) { width: 64px; }
.gtz-bol-cargo th:nth-child(6),
.gtz-bol-cargo td:nth-child(6) { width: 78px; }
.gtz-bol-cargo th:nth-child(7),
.gtz-bol-cargo td:nth-child(7) { width: 128px; }
.gtz-bol-cargo th,
.gtz-bol-cargo td {
  border: 1px solid #d5deea;
  padding: 10px 12px;
  text-align: left;
  color: #12203a;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.gtz-bol-cargo th {
  background: #0a4a73;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  font-weight: 700;
}
.gtz-bol-total td { font-weight: 800; background: #eef4fa; }
.gtz-bol .gtz-bol-notes {
  padding: 16px 18px 18px;
  margin: 0;
  background: #f7f9fc;
  border-bottom: 1px solid #d5deea;
}
.gtz-bol-legal {
  margin: 10px 0 0;
  font-size: 11px;
  color: #5b6b82;
  line-height: 1.55;
}
.gtz-bol .gtz-bol-certs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  background: #fff;
}
.gtz-bol .gtz-bol-certs section {
  padding: 18px 20px 20px;
  border-right: 1px solid #d5deea;
  min-width: 0;
}
.gtz-bol .gtz-bol-certs section:last-child { border-right: 0; }
.gtz-bol-signline {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 20px;
  margin-top: 36px;
}
.gtz-bol-signline span {
  border-top: 1px solid #1b3554;
  padding-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #5b6b82;
}
@media screen and (max-width: 800px) {
  .bol-print-wrap { padding: 20px 14px 32px; }
  .gtz-bol-head,
  .gtz-bol-meta,
  .gtz-bol-parties,
  .gtz-bol-carrier,
  .gtz-bol-certs { grid-template-columns: 1fr; }
  .gtz-bol-brand,
  .gtz-bol-title,
  .gtz-bol .gtz-bol-parties section,
  .gtz-bol .gtz-bol-certs section,
  .gtz-bol-meta div,
  .gtz-bol-carrier div { border-right: 0; border-bottom: 1px solid #d5deea; }
  .gtz-bol-brand,
  .gtz-bol-title { border-bottom-color: rgba(255, 255, 255, 0.22); }
  .bol-print-top { padding: 12px 16px; }
}
@media screen and (max-width: 800px) {
  .bol-banner {
    flex-wrap: wrap;
  }
  .bol-number-card {
    max-width: none;
    flex: 1 1 100%;
    text-align: left;
    margin-top: 8px;
  }
  .bol-banner, .bol-meta, .bol-grid, .bol-sign { grid-template-columns: 1fr; }
  .bol-banner, .bol-meta { display: block; }
  .bol-meta div, .bol-grid section:first-child { border-right: 0; border-bottom: 1px solid #d7e1ef; }
  .bol-embed { min-height: 560px; }
}
@media print {
  @page { size: letter portrait; margin: 0.35in; }
  html, body, body.admin-body, body.public-body {
    background: #fff !important;
    color: #12203a !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    display: block !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  .site-main {
    overflow: visible !important;
    height: auto !important;
    flex: none !important;
  }
  .admin-sidebar,
  .admin-top,
  .admin-nav-backdrop,
  .app-loader,
  .ship-print-hide,
  .bol-print-bar,
  .bol-print-top,
  .site-copyright,
  .admin-copyright {
    display: none !important;
  }
  .bol-print-page {
    padding: 0 !important;
    background: #fff !important;
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }
  .bol-print-wrap {
    overflow: visible !important;
    padding: 0 !important;
    height: auto !important;
  }
  .gtz-bol {
    max-width: none !important;
    border-width: 1px !important;
    box-shadow: none !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .gtz-bol-head,
  .gtz-bol-cargo th {
    background: #0a4a73 !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .gtz-bol-brand,
  .gtz-bol-title,
  .gtz-bol-ids { padding: 14px 16px !important; }
  .gtz-bol-brand strong { font-size: 17px !important; margin: 0 !important; }
  .gtz-bol-brand span { margin-top: 4px !important; font-size: 12px !important; }
  .gtz-bol-title p { font-size: 11px !important; }
  .gtz-bol-title h2 { font-size: 15px !important; margin: 6px 0 0 !important; }
  .gtz-bol-ids div { margin-bottom: 7px !important; }
  .gtz-bol-ids span,
  .gtz-bol-meta span,
  .gtz-bol-carrier span { margin-bottom: 3px !important; font-size: 10px !important; }
  .gtz-bol-ids strong,
  .gtz-bol-meta strong,
  .gtz-bol-carrier strong { font-size: 13px !important; }
  .gtz-bol-meta div,
  .gtz-bol-carrier div { padding: 12px 14px !important; }
  .gtz-bol .gtz-bol-parties section { padding: 14px 16px !important; }
  .gtz-bol h3 { margin: 0 0 8px !important; font-size: 10px !important; }
  .gtz-bol p { margin: 0 0 4px !important; line-height: 1.4 !important; }
  .gtz-bol-hours { font-size: 12px !important; }
  .gtz-bol-cargo th,
  .gtz-bol-cargo td { padding: 8px 10px !important; font-size: 12px !important; }
  .gtz-bol-cargo th { font-size: 10px !important; }
  .gtz-bol .gtz-bol-notes {
    padding: 14px 16px !important;
    background: #f7f9fc !important;
  }
  .gtz-bol-legal { margin-top: 8px !important; font-size: 10px !important; line-height: 1.45 !important; }
  .gtz-bol .gtz-bol-certs section { padding: 14px 16px 16px !important; min-height: 168px !important; }
  .gtz-bol-signline { margin-top: 48px !important; gap: 18px !important; }
  .gtz-bol-signline span { padding-top: 6px !important; font-size: 11px !important; }
  .gtz-bol-watermark { display: none !important; }
  .admin-main,
  .admin-content,
  .ship-modal,
  .ship-modal-panel,
  .ship-modal-body {
    display: block !important;
    flex: none !important;
    background: #fff !important;
    color: #12203a !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  .admin-main { width: 100% !important; }
  body.ship-modal-open .admin-content > *:not(.ship-modal) {
    display: none !important;
  }
  body.ship-modal-open .ship-modal {
    position: static !important;
    inset: auto !important;
    display: block !important;
  }
  body.ship-modal-open .ship-modal-backdrop,
  body.ship-modal-open .ship-modal-close,
  body.ship-modal-open .ship-modal-title,
  body.ship-modal-open .ship-subnav {
    display: none !important;
  }
  .bol-sheet {
    max-width: none !important;
    margin: 0 !important;
    overflow: visible !important;
    background: #fff !important;
    color: #12203a !important;
    border: 1px solid #d7e1ef !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    line-height: 1.35;
    overflow: hidden !important;
  }
  .bol-banner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 16px !important;
    padding: 14px 18px !important;
    background: #0a4a73 !important;
    background-image: linear-gradient(135deg, #062a4a 0%, #0a4a73 55%, #087ea8 100%) !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  .bol-banner h2 {
    color: #fff !important;
    font-size: 18px !important;
    margin: 2px 0 4px !important;
  }
  .bol-banner p {
    color: #fff !important;
    font-size: 12px !important;
  }
  .bol-kicker,
  .bol-number-card span {
    color: #9be7ff !important;
  }
  .bol-number-card strong {
    color: #fff !important;
    font-size: 20px !important;
    margin-top: 4px !important;
  }
  .bol-number-card {
    background: #1c638c !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 10px !important;
    text-align: right !important;
    margin-top: 0 !important;
    color: #fff !important;
    min-width: 180px !important;
    padding: 10px 12px !important;
  }
  .bol-meta {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    background: #fff !important;
  }
  .bol-meta div {
    padding: 8px 12px !important;
    border-right: 1px solid #d7e1ef !important;
    border-bottom: 0 !important;
  }
  .bol-meta div:last-child { border-right: 0 !important; }
  .bol-meta span { color: #6b7c99 !important; }
  .bol-meta strong { color: #12203a !important; font-size: 12px !important; }
  .bol-file {
    background: #fff !important;
    padding: 0 !important;
  }
  .bol-image,
  .bol-embed {
    background: #fff !important;
    border: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .bol-has-file .bol-image {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
    object-position: top center;
  }
  .bol-embed { min-height: 10in !important; height: 10in !important; }
  .bol-billto {
    margin: 10px 18px 0 !important;
    padding: 10px 12px !important;
    background: #eaf3fb !important;
    border-color: #0a4a73 !important;
  }
  .bol-billto span { color: #0a4a73 !important; margin-bottom: 4px !important; }
  .bol-billto p,
  .bol-sheet p,
  .bol-name,
  .bol-sheet td {
    color: #12203a !important;
  }
  .bol-banner p { color: #fff !important; }
  .bol-banner .bol-kicker { color: #c8f7ff !important; }
  .bol-sheet p { margin: 0 0 2px !important; }
  .bol-hours {
    color: #4d5e78 !important;
  }
  .bol-sheet .bol-note {
    color: #0a1a33 !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    margin: 8px 18px 0 !important;
    padding: 8px 10px !important;
    background: #eaf3fb !important;
    border: 2px solid #0a4a73 !important;
  }
  .bol-sign div {
    color: #12203a !important;
    font-weight: 700 !important;
  }
  .bol-grid {
    margin: 10px 18px !important;
    grid-template-columns: 1fr 1fr !important;
  }
  .bol-grid section { padding: 10px 12px !important; }
  .bol-section { padding: 0 18px 4px !important; }
  .bol-sheet h3 {
    color: #0a4a73 !important;
    margin: 0 0 4px !important;
  }
  .bol-sheet table { margin: 4px 0 8px !important; }
  .bol-sheet th, .bol-sheet td { padding: 5px 8px !important; font-size: 12px !important; }
  .bol-sheet th {
    background: #0a4a73 !important;
    color: #fff !important;
  }
  .bol-total td { background: #f4f7fb !important; }
  .bol-end {
    break-inside: avoid;
    page-break-inside: avoid;
    page-break-before: avoid;
  }
  .bol-sign {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin: 14px 18px 8px !important;
    break-inside: avoid;
    page-break-inside: avoid;
    page-break-before: avoid;
  }
  .bol-sign div { padding-top: 6px !important; }
}
