/* Globelink SEA freight quote wizard — cargo · origin cartage · review */

:root {
  --gl-globelink-green: #cae501;
  --gl-globelink-green-ink: #3d4a00;
  --gl-globelink-green-soft: rgba(202, 229, 1, 0.22);
  --nv-rail: #081553;
  --nv-rail-soft: #0c1a5c;
  --nv-done: #1f9d6b;
  --nv-done-soft: #7ddea8;
}

/* —— Rates page: Globelink green on routing / vessels —— */
.gl-card-journey .panel-head h2 {
  color: var(--gl-ink);
}
.gl-card-journey .panel-head h2::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gl-globelink-green);
  box-shadow: 0 0 0 3px var(--gl-globelink-green-soft);
  vertical-align: middle;
}
.gl-journey-map {
  background: linear-gradient(180deg, #f7fbe8 0%, #eef1ff 72%);
  border-color: #d5e48a;
}
.gl-journey-dot {
  border-color: var(--gl-globelink-green-ink);
  box-shadow: 0 0 0 3px var(--gl-globelink-green-soft);
}
.gl-journey-point.is-hub .gl-journey-dot {
  background: var(--gl-globelink-green);
  border-color: var(--gl-globelink-green-ink);
  box-shadow: 0 0 0 4px var(--gl-globelink-green-soft);
}
.gl-journey-point.is-hub .gl-journey-label {
  color: var(--gl-globelink-green-ink);
}
.gl-journey-connector {
  border-top-color: #b8c84a;
}
.gl-sail-hint {
  color: var(--gl-globelink-green-ink);
}
.gl-sail-option.is-selected {
  background: var(--gl-globelink-green-soft) !important;
  box-shadow: inset 3px 0 0 var(--gl-globelink-green);
}
/* Timeline accents live on .gl-tl-card--* (three-card Full timeline). */
.gl-itinerary-route {
  border-left: none;
}

/* Hazardous Yes/No — same width/height as .gl-field select.ba-inp / .nv-yn */
.gl-haz-field {
  display: block;
  min-width: 0;
  width: 100%;
}
.gl-haz-yn {
  display: flex;
  align-items: stretch;
  gap: 0;
  box-sizing: border-box;
  width: 100%;
  height: var(--ba-field-h, 32px);
  min-height: var(--ba-field-h, 32px);
  max-height: var(--ba-field-h, 32px);
  border: 1px solid #e4d6ee;
  border-radius: var(--ba-field-radius, 8px);
  overflow: hidden;
  background: #fff;
}
.gl-haz-yn-btn {
  appearance: none;
  border: none;
  background: transparent;
  flex: 1 1 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 0 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--ba-field-font, 13px);
  font-weight: 700;
  line-height: 1;
  color: var(--gl-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.gl-haz-yn-btn + .gl-haz-yn-btn {
  border-left: 1px solid #e4d6ee;
}
.gl-haz-yn-btn.is-on.gl-haz-yn-yes {
  background: #fff6e8;
  color: var(--gl-warn);
}
.gl-haz-yn-btn.is-on.gl-haz-yn-no {
  background: var(--gl-ok-bg);
  color: var(--gl-ok);
}
.gl-via-dropdown-item.is-haz-blocked {
  opacity: 0.45;
  pointer-events: none;
  text-decoration: line-through;
}
.gl-via-haz-note {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--gl-warn);
}

/* Generate quote CTA */
.gl-book-cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 4px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--gl-line);
  border-radius: 14px;
  box-shadow: var(--gl-shadow);
}
.gl-book-cta-copy {
  min-width: 0;
}
.gl-book-cta-copy strong {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: var(--gl-ink);
  margin-bottom: 2px;
}
.gl-book-cta-copy span {
  font-size: 12px;
  color: var(--gl-muted);
}
.gl-book-cta-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #1a2200;
  background: var(--gl-globelink-green);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(61, 74, 0, 0.15);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.gl-book-cta-btn:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}
.gl-book-cta-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Page footer — brand left, legal links right */
.gl-page-footer {
  margin-top: auto;
  border-top: 1px solid var(--gl-line);
  background: #fff;
  padding: 18px 20px 22px;
}
.gl-page-footer-inner {
  width: 100%;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.gl-page-footer-brand {
  margin: 0;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gl-ink);
  letter-spacing: -0.01em;
}
.gl-page-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 14px;
  margin-left: auto;
}
.gl-legal-link {
  appearance: none;
  border: none;
  background: transparent;
  padding: 6px 2px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--gl-ink);
  text-decoration: none;
  border-bottom: 2px solid var(--gl-globelink-green, #cae501);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.gl-legal-link:hover {
  color: var(--gl-brand);
  border-bottom-color: var(--gl-brand);
}
.gl-legal-sep {
  color: var(--gl-muted-soft);
  font-size: 13px;
  font-weight: 600;
  user-select: none;
}
@media (max-width: 640px) {
  .gl-page-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .gl-page-footer-nav {
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* Legal / booking modals */
.nv-modal-root[hidden] {
  display: none !important;
}
.nv-modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.nv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 21, 83, 0.42);
}
.nv-modal {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(78vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(8, 21, 83, 0.22);
  padding: 22px 24px 20px;
}
.nv-modal--legal {
  width: min(760px, 100%);
  max-height: min(86vh, 880px);
  padding: 28px 28px 24px;
}
.nv-modal-kicker {
  margin: 0 0 6px;
  padding-right: 36px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gl-muted-soft);
}
.nv-modal h2 {
  margin: 0 0 12px;
  padding-right: 36px;
  font-family: 'Lato', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gl-ink);
  line-height: 1.25;
}
.nv-modal-body {
  font-size: 13px;
  line-height: 1.55;
  color: #334;
}
.nv-modal-body p {
  margin: 0 0 10px;
}
.nv-modal-body ul {
  margin: 0 0 10px;
  padding-left: 18px;
}
.nv-legal-sub {
  margin: 0 0 14px !important;
  font-size: 12px;
  font-style: italic;
  color: var(--gl-muted);
}
.nv-legal-prose p {
  margin: 0 0 11px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #2a3358;
}
.nv-legal-h {
  margin: 18px 0 8px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--gl-ink);
}
.nv-legal-prose .nv-legal-h:first-child {
  margin-top: 0;
}
.nv-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: var(--gl-wash);
  color: var(--gl-ink);
  font-size: 18px;
  cursor: pointer;
}

/* —— Quote wizard shell —— */
.nv-booking-root[hidden] {
  display: none !important;
}
.nv-booking-root {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--gl-wash);
}
/* Wizard carries its own copy of the shared branch topbar so the main menu
 * (Logistx · Globelink + Dashboard / Tariff Quote · Sign out) is never lost
 * while quoting, even though the overlay sits above the rates page chrome. */
.nv-wizard-topbar {
  flex-shrink: 0;
  position: static;
}
/* Global Admin: left dark sidebar + main-column topbar in the quote overlay. */
.nv-booking-root.nv-booking-root--vendor {
  flex-direction: row;
  align-items: stretch;
}
.nv-booking-root--vendor .nv-wizard-vendor-sidebar {
  flex-shrink: 0;
  height: 100%;
  max-height: 100vh;
  position: relative;
}
.nv-booking-root--vendor .nv-shell {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.nv-booking-root--vendor .nv-wizard-vendor-topbar {
  flex-shrink: 0;
  position: static;
}
/* —— Selection summary off-canvas + shared chip / route tokens —— */
.nv-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  flex: 1 1 100%;
  min-width: min(100%, 320px);
}
.nv-top-titles {
  min-width: 0;
}
.nv-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
/* Outline Fill — same idea as booking Fill; keeps Summary as the peer CTA. */
.nv-demo-fill-btn.nv-btn-ghost {
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  background: #fff;
  color: #081553;
  border: 1px solid #c9d2fb;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
}
.nv-demo-fill-btn.nv-btn-ghost:hover {
  border-color: #081553;
  background: #f4f6fc;
}
.nv-summary-open-btn {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
}
.nv-summary-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.nv-summary-drawer:not([hidden]) {
  pointer-events: auto;
}
.nv-summary-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(8, 21, 83, 0.34);
  cursor: default;
  animation: fadeIn 0.2s ease-out;
}
.nv-summary-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(480px, 94vw);
  background: #eef1ff;
  box-shadow: -16px 0 44px rgba(8, 21, 83, 0.22);
  display: flex;
  flex-direction: column;
  animation: drawerIn 0.28s ease-out;
  outline: none;
}
.nv-summary-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--gl-line);
  background: #fff;
}
.nv-summary-panel-head h2 {
  margin: 0;
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--gl-ink);
  letter-spacing: -0.02em;
}
.nv-summary-panel-sub {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--gl-muted);
}
.nv-summary-panel-close {
  position: static;
  flex-shrink: 0;
}
.nv-summary-panel-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nv-sum-acc {
  border: 1px solid var(--gl-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.nv-sum-acc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa3c7;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.nv-sum-acc-summary::-webkit-details-marker {
  display: none;
}
.nv-sum-acc-summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid #b7bfe4;
  border-bottom: 2px solid #b7bfe4;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.nv-sum-acc[open] .nv-sum-acc-summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.nv-sum-acc-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 14px 14px;
  border-top: 1px solid #eef0f8;
}
.nv-sum-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gl-ink);
}
.nv-sum-arrow {
  color: #b7bfe4;
  font-weight: 400;
}
.nv-sum-hub {
  color: var(--gl-globelink-green-ink);
  background: var(--gl-globelink-green-soft);
  padding: 1px 8px;
  border-radius: 999px;
}
.nv-sum-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nv-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f7f8fe;
  border: 1px solid var(--gl-line);
  font-size: 11px;
  font-weight: 600;
  color: var(--gl-ink);
  white-space: nowrap;
}
.nv-chip.is-warn {
  background: var(--gl-warn-bg);
  border-color: #f0d9a8;
  color: var(--gl-warn);
}
.nv-chip.is-muted {
  background: transparent;
  border-style: dashed;
  color: #9aa3c7;
  font-weight: 500;
}
.nv-chip.is-step {
  background: var(--gl-globelink-green-soft);
  border-color: #d5e48a;
  color: var(--gl-globelink-green-ink);
}
.nv-sum-note {
  font-size: 11px;
  color: var(--gl-muted);
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .nv-sum-note {
    max-width: 220px;
  }
  .nv-summary-panel {
    width: min(100vw, 480px);
  }
}
/* —— Rail + main body wrapper — scrolls under the wizard header. —— */
.nv-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}
.nv-rail {
  background: linear-gradient(180deg, var(--nv-rail) 0%, var(--nv-rail-soft) 100%);
  color: #c9d0ef;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px 14px 16px;
}
.nv-rail-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 6px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}
.nv-rail-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b95c7;
}
.nv-rail-title {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.nv-rail-progress {
  margin: 0 6px 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}
.nv-rail-progress-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa3c7;
  margin-bottom: 4px;
}
.nv-rail-progress-value {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.nv-rail-progress-bar {
  margin-top: 8px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.nv-rail-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gl-globelink-green), #7ddea8);
  border-radius: inherit;
  transition: width 0.25s ease;
}
.nv-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nv-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: #9aa3c7;
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}
.nv-step:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  color: #d7ddf8;
}
.nv-step:disabled {
  cursor: default;
  opacity: 0.55;
}
.nv-step.is-active {
  background: rgba(1, 169, 206, 0.16);
  color: #fff;
}
.nv-step.is-done:not(.is-active) {
  color: var(--nv-done-soft);
}
.nv-step-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  flex-shrink: 0;
}
.nv-step.is-active .nv-step-ico {
  background: rgba(202, 229, 1, 0.22);
  color: var(--gl-globelink-green);
}
.nv-step.is-done .nv-step-ico {
  background: rgba(31, 157, 107, 0.28);
  color: var(--nv-done-soft);
}
.nv-step-meta {
  min-width: 0;
  padding-top: 3px;
}
.nv-step-name {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}
.nv-step-state {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}
.nv-rail-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.nv-rail-back {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #d7ddf8;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.nv-rail-back:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nv-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.nv-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px 22px 12px;
  background: rgba(238, 241, 255, 0.92);
  border-bottom: 1px solid var(--gl-line);
}
.nv-top h1 {
  margin: 0;
  font-family: 'Lato', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--gl-ink);
  letter-spacing: -0.02em;
}
.nv-top-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--gl-muted);
}
.nv-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px 22px 28px;
}
.nv-card-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nv-card {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--gl-line);
  border-radius: 14px;
  box-shadow: var(--gl-shadow);
  padding: 18px 20px 20px;
}
.nv-card--party .nv-grid + .nv-grid {
  margin-top: 12px;
}
.nv-card-head {
  margin-bottom: 16px;
}
.nv-card-head h2 {
  margin: 0 0 4px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--gl-ink);
}
.nv-card-head p {
  margin: 0;
  font-size: 12px;
  color: var(--gl-muted);
  line-height: 1.45;
}
.nv-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gl-line);
}
.nv-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.nv-section-title {
  margin: 0 0 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gl-muted);
}
.nv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  align-items: start;
}
.nv-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nv-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.nv-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.nv-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nv-field-full {
  grid-column: 1 / -1;
}
/* Match Branch Admin .ba-lbl + Globelink .gl-field label */
.nv-field .ba-lbl,
.nv-field > label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9aa3c7;
  margin: 0 0 5px;
}
.nv-req {
  color: #c0566f;
  text-transform: none;
  letter-spacing: 0;
}
/* Match Branch Admin .ba-inp geometry + mono value text */
.nv-booking-root .ba-inp,
.nv-booking-root select.ba-inp,
.nv-booking-root textarea.ba-inp {
  width: 100%;
  box-sizing: border-box;
  height: var(--ba-field-h, 32px);
  min-height: var(--ba-field-h, 32px);
  padding: var(--ba-field-pad-y, 5px) var(--ba-field-pad-x, 10px);
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--ba-field-font, 12px);
  font-weight: 400;
  line-height: 1.25;
  color: #081553;
  border: 1px solid #e4d6ee;
  border-radius: var(--ba-field-radius, 8px);
  outline: none;
  background-color: #fff;
}
/* Select chevrons must clear the right edge (standalone + unit pairs). */
.nv-booking-root select.ba-inp {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--lx-select-arrow-pad, 32px);
  background-image: var(--lx-select-arrow);
  background-repeat: no-repeat;
  background-position: right var(--lx-select-arrow-inset, 12px) center;
}
.nv-booking-root select.ba-book-select.ba-inp,
.nv-booking-root select.ba-inp.ba-book-select {
  padding-right: var(--lx-select-arrow-pad, 32px) !important;
  background-position: right var(--lx-select-arrow-inset, 12px) center;
}
.nv-booking-root .ba-book-unit-select {
  padding: 0 30px 0 10px;
  background-position: right 12px center;
}
/* Add / Save flush with adjacent inputs (mini, same height). */
.nv-booking-root .ba-add-btn,
.nv-pack-cell-add .ba-add-btn,
.nv-carrier-add-actions .ba-add-btn,
.nv-fee-addl-composer .ba-add-btn {
  box-sizing: border-box;
  height: var(--ba-field-h, 32px);
  min-height: var(--ba-field-h, 32px);
  max-height: var(--ba-field-h, 32px);
  padding: 0 12px;
  border-radius: var(--ba-field-radius, 8px);
  line-height: 1;
  white-space: nowrap;
}
.nv-booking-root textarea.ba-inp {
  height: auto;
  min-height: 72px;
  line-height: 1.4;
  resize: vertical;
}
.nv-booking-root .ba-inp::placeholder {
  color: #aab2d6;
}
.nv-booking-root .ba-inp:focus,
.nv-booking-root select.ba-inp:focus,
.nv-booking-root textarea.ba-inp:focus {
  border-color: #5e79ff;
  box-shadow: 0 0 0 3px rgba(94, 121, 255, 0.16);
}
.nv-yn {
  display: inline-flex;
  border: 1px solid #e4d6ee;
  border-radius: var(--ba-field-radius, 8px);
  overflow: hidden;
  background: #fff;
  height: var(--ba-field-h, 32px);
  min-height: var(--ba-field-h, 32px);
}
.nv-yn-btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--ba-field-font, 12px);
  font-weight: 500;
  color: #7480a8;
  cursor: pointer;
  line-height: 1.25;
}
.nv-yn-btn.is-on {
  background: var(--gl-wash);
  color: var(--gl-brand);
}
.nv-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px 16px;
  background: #fff;
  border-top: 1px solid var(--gl-line);
}
.nv-foot-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.nv-btn {
  appearance: none;
  border-radius: 999px;
  padding: 11px 20px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
}
.nv-btn-ghost {
  background: #fff;
  border-color: var(--gl-line);
  color: var(--gl-ink);
}
.nv-btn-primary {
  background: var(--gl-ink);
  color: #fff;
}
.nv-btn-accent {
  background: var(--gl-globelink-green);
  color: #1a2200;
}
.nv-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.nv-table-wrap {
  overflow: auto;
  border: 1px solid var(--gl-line);
  border-radius: 12px;
}
.nv-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--ba-field-font, 12px);
  color: #081553;
}
.nv-table th,
.nv-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--gl-line);
  text-align: left;
  vertical-align: middle;
}
.nv-table th {
  background: #f7f8fe;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9aa3c7;
  white-space: nowrap;
}
.nv-table .ba-inp,
.nv-table select.ba-inp {
  width: 100%;
  min-width: 0;
}
.nv-table tr:last-child td {
  border-bottom: none;
}
/* Origin / Destination handling — fixed fee grid (2–3 cols). */
.nv-fixed-fees-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: start;
}
.nv-fixed-fee {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nv-fixed-fee-title {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #081553;
  letter-spacing: 0;
  line-height: 1.3;
}
.nv-fee-addls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nv-fee-addl-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.nv-fee-add {
  margin-top: 2px;
  padding: 12px 14px 14px;
  background: #f7f8fe;
  border: 1px solid var(--gl-line);
  border-radius: 12px;
  box-sizing: border-box;
}
.nv-fee-addl-composer {
  margin: 0;
}
.nv-fee-addl-composer .ba-add-btn {
  white-space: nowrap;
}
@media (max-width: 960px) {
  .nv-fixed-fees-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .nv-fixed-fees-grid {
    grid-template-columns: 1fr;
  }
  .nv-fee-addl-row {
    grid-template-columns: 1fr auto;
  }
  .nv-fee-addl-row > :nth-child(1) {
    grid-column: 1 / -1;
  }
}
.nv-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.nv-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--gl-wash);
  border: 1px solid var(--gl-line);
  font-size: 11px;
  color: var(--gl-ink);
}
.nv-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}
.nv-summary-item dt {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gl-muted);
  margin: 0 0 2px;
}
.nv-summary-item dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--gl-ink);
}
.nv-banner {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--gl-ok-bg);
  color: var(--gl-ok);
  font-size: 12px;
  font-weight: 600;
}
.nv-banner.is-warn {
  background: var(--gl-warn-bg);
  color: var(--gl-warn);
}
.nv-hidden-note {
  font-size: 11px;
  color: var(--gl-muted);
  margin: 6px 0 0;
}
.nv-add-row {
  margin-top: 10px;
}

/* —— Cargo mode: Totals vs Individual lines —— */
.nv-mode-toggle {
  display: inline-flex;
  border: 1px solid #e4d6ee;
  border-radius: var(--ba-field-radius, 8px);
  overflow: hidden;
  background: #fff;
  height: var(--ba-field-h, 32px);
  min-height: var(--ba-field-h, 32px);
}
.nv-mode-btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--ba-field-font, 12px);
  font-weight: 500;
  color: #7480a8;
  cursor: pointer;
  line-height: 1.25;
  white-space: nowrap;
}
.nv-mode-btn + .nv-mode-btn {
  border-left: 1px solid #e4d6ee;
}
.nv-mode-btn.is-on {
  background: var(--gl-globelink-green-soft);
  color: var(--gl-globelink-green-ink);
  font-weight: 700;
}
.nv-cargo-totals-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7fbe8;
  border: 1px solid #d5e48a;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--gl-ink);
}
.nv-cargo-totals-bar strong {
  font-weight: 700;
  color: var(--gl-globelink-green-ink);
}
.nv-cargo-totals-sep {
  color: #9aa3c7;
}
.nv-rate-snap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.nv-rate-cell {
  padding: 10px 12px;
  border: 1px solid var(--gl-line);
  border-radius: 10px;
  background: #f7f8fe;
}
.nv-rate-lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gl-muted);
  margin-bottom: 4px;
}
.nv-rate-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--gl-ink);
}
.nv-rate-cur {
  font-size: 11px;
  font-weight: 500;
  color: var(--gl-muted);
}
.nv-rate-hint {
  margin-top: 2px;
  font-size: 10px;
  color: var(--gl-muted);
}
@media (max-width: 720px) {
  .nv-rate-snap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* —— SKU / package row actions —— */
.nv-line-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  flex-wrap: wrap;
}
.nv-actions-cell {
  width: 44px;
  text-align: center;
  vertical-align: middle;
}
.nv-trash-btn {
  border: none;
  background: transparent;
  color: #c0566f;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  line-height: 0;
  flex-shrink: 0;
}
.nv-trash-btn:hover:not(:disabled) {
  background: rgba(192, 86, 111, 0.1);
  color: #a6445a;
}
.nv-trash-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.nv-trash-btn svg {
  width: 15px;
  height: 15px;
  display: block;
}

/* —— OCR bar + 60/40 split (Branch Admin pattern) —— */
.nv-ocr-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #e6f7fb;
  border: 1px solid #9ad8e8;
}
.nv-ocr-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.nv-ocr-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: #067a95;
  line-height: 1.3;
}
.nv-ocr-sub {
  font-size: 12px;
  color: #5b6794;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nv-ocr-actions {
  flex-shrink: 0;
}
.nv-ocr-actions-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nv-ocr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  line-height: 1.2;
  background: #3650e0;
  border: 1px solid #3650e0;
  color: #fff;
}
.nv-ocr-btn.is-busy {
  opacity: 0.7;
  pointer-events: none;
  background: rgba(94, 121, 255, 0.12);
  border-color: #c9d2fb;
  color: #3650e0;
}
.nv-ocr-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  line-height: 1.2;
  background: rgba(94, 121, 255, 0.07);
  border: 1px solid #c9d2fb;
  color: #3650e0;
}
.nv-ocr-tool-btn:hover {
  background: rgba(94, 121, 255, 0.12);
}
.nv-ocr-tool-btn.is-on {
  background: #3650e0;
  border-color: #3650e0;
  color: #fff;
}
.nv-ocr-remove-txt {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 0 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: #c0566f;
  cursor: pointer;
  line-height: 1.2;
}
.nv-ocr-remove-txt:hover {
  color: #a6445a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nv-ocr-split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 14px;
  align-items: stretch;
  width: 100%;
  min-height: calc(100vh - 160px);
}
.nv-ocr-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  max-height: calc(100vh - 160px);
  padding-right: 2px;
}
.nv-ocr-tool {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e7eaf9;
  border-radius: 14px;
  overflow: hidden;
  min-height: calc(100vh - 160px);
  max-height: calc(100vh - 160px);
  animation: nvOcrIn 0.28s ease-out;
}
@keyframes nvOcrIn {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .nv-ocr-tool { animation: none; }
}
.nv-ocr-tool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #f0f2fb;
}
.nv-ocr-tool-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #081553;
}
.nv-ocr-tool-sub {
  font-size: 11.5px;
  color: #7480a8;
  margin-top: 2px;
}
.nv-ocr-tool-x {
  appearance: none;
  border: 0;
  background: transparent;
  color: #7480a8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.nv-ocr-tool-x:hover { color: #081553; }
.nv-ocr-tool-tabs {
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 0 12px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #e7eaf9;
}
.nv-ocr-tool-tab {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: #7480a8;
  padding: 10px 12px 12px;
  border-radius: 9px 9px 0 0;
}
.nv-ocr-tool-tab.is-on {
  color: #3650e0;
  background: #f7f8fe;
}
.nv-ocr-tool-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.nv-ocr-pdf-frame {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}
.nv-ocr-md-pane {
  flex: 1;
  overflow: auto;
  padding: 18px 20px 28px;
}
.nv-ocr-md-pane pre {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  line-height: 1.5;
  color: #081553;
  white-space: pre-wrap;
  word-break: break-word;
}
.nv-ocr-empty {
  padding: 24px;
  font-size: 12px;
  color: #7480a8;
}

/* —— HTS lookup (input + search button + modal) —— */
.nv-hts-combo {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.nv-hts-combo .ba-inp {
  flex: 1;
  min-width: 0;
}
.nv-hts-lookup-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c9d2fb;
  border-radius: 7px;
  cursor: pointer;
  background: rgba(94, 121, 255, 0.07);
  color: #3650e0;
}
.nv-hts-lookup-btn:hover {
  background: rgba(94, 121, 255, 0.14);
}
.nv-hts-lookup-btn svg { display: block; }
.nv-hts-modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.nv-hts-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 21, 83, 0.42);
}
.nv-hts-modal {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, 92vw);
  max-height: min(720px, 86vh);
  background: #eef1ff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(8, 21, 83, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.nv-hts-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  flex-shrink: 0;
}
.nv-hts-modal-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #081553;
}
.nv-hts-modal-sub {
  font-size: 11.5px;
  color: #7480a8;
  margin-top: 3px;
}
.nv-hts-modal-search {
  padding: 0 18px 12px;
  flex-shrink: 0;
}
.nv-hts-modal-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 0 18px;
  padding: 8px;
  border: 1px solid #dde3ff;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nv-hts-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: 1px solid #e7eaf9;
  border-radius: 9px;
  background: #fff;
  padding: 8px 10px;
  cursor: pointer;
}
.nv-hts-opt:hover {
  border-color: #c9d2fb;
  background: #f5f7ff;
}
.nv-hts-opt.is-on {
  border-color: #3650e0;
  background: #eef1ff;
}
.nv-hts-code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #081553;
}
.nv-hts-desc {
  font-size: 12px;
  color: #3a4677;
}
.nv-hts-empty {
  font-size: 12px;
  color: #7480a8;
  padding: 12px 4px;
}
.nv-hts-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .nv-ocr-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .nv-ocr-main {
    max-height: none;
    overflow: visible;
    order: 1;
  }
  .nv-ocr-tool {
    min-height: 42vh;
    max-height: 48vh;
    order: 2;
    animation: none;
  }
  .nv-ocr-sub {
    white-space: normal;
  }
}

@media (max-width: 960px) {
  .nv-grid-3,
  .nv-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .nv-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .nv-rail {
    max-height: 42vh;
  }
}
@media (max-width: 720px) {
  .nv-grid,
  .nv-grid-3,
  .nv-grid-4,
  .nv-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* —— IMO 41 / Forwarding instruction tabs —— */
.nv-docs-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nv-docs-tabs {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  padding: 3px;
  border-radius: 10px;
  background: #eef0f8;
  border: 1px solid #e4e8f4;
  max-width: 100%;
  flex-wrap: wrap;
}
.nv-docs-tab {
  appearance: none;
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7480a8;
  cursor: pointer;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nv-docs-tab:hover {
  color: #081553;
}
.nv-docs-tab.is-on {
  background: #fff;
  color: #081553;
  box-shadow: 0 1px 2px rgba(8, 21, 83, 0.08);
}
.nv-docs-tab-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.08em;
  background: #fff3cd;
  color: #8a6d1a;
  font-weight: 700;
}
.nv-docs-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nv-docs-panel[hidden] {
  display: none !important;
}

/* FI top Agent / Bill to — two cards in one row; stack on narrow. */
.nv-docs-party-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.nv-docs-party-row .nv-card {
  height: 100%;
}
.nv-docs-party-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 720px) {
  .nv-docs-party-row {
    grid-template-columns: 1fr;
  }
}

.nv-price-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #e7eaf9;
  border-radius: 12px;
  background: #f7f8fe;
}
.nv-price-totals > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nv-price-totals span {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa3c7;
}
.nv-price-totals strong {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #081553;
}
.nv-price-totals .is-grand {
  padding-left: 10px;
  border-left: 2px solid #cae501;
}

.nv-card--price-preview .nv-price-preview-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.nv-price-include-bar {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e7eaf9;
  border-radius: 12px;
  background: #f7f8fe;
}
.nv-price-include-bar__label {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7399;
  margin-bottom: 10px;
}
.nv-price-include-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nv-price-include-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #e4d6ee;
  background: #fff;
  color: #6b7399;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.nv-price-include-chip:hover {
  border-color: #c9d2fb;
  background: #fafbff;
}
.nv-price-include-chip.is-on {
  border-color: var(--gl-globelink-green-ink);
  background: var(--gl-globelink-green-soft);
  color: var(--gl-globelink-green-ink);
}
.nv-price-include-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5cbe3;
  flex-shrink: 0;
}
.nv-price-include-chip.is-on .nv-price-include-chip__dot {
  background: var(--gl-globelink-green-ink);
}
.nv-price-preview-section {
  border: 1px solid #e7eaf9;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.nv-price-preview-section.is-excluded {
  opacity: 0.55;
  background: #fafbff;
}
.nv-price-preview-section.is-excluded .nv-price-preview-lines {
  display: none;
}
.nv-price-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef1fb;
  background: #f7f8fe;
}
.nv-price-preview-section.is-excluded .nv-price-preview-head {
  border-bottom: none;
}
.nv-price-preview-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.nv-price-preview-label {
  font-family: 'Lato', sans-serif;
  font-weight: 800;
  color: #081553;
  font-size: 13.5px;
}
.nv-price-preview-state {
  font-size: 11px;
  font-weight: 700;
  color: #9aa3c7;
}
.nv-price-preview-state.is-on {
  color: var(--gl-globelink-green-ink);
}
.nv-price-preview-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nv-price-preview-amt {
  font-family: 'Lato', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #081553;
  white-space: nowrap;
}
.nv-price-preview-lines {
  margin: 0;
}
.nv-price-preview-lines .nv-charges-table {
  table-layout: fixed;
  width: 100%;
}
/* Charge ~40% · Unit/Sell ~20% · UOM ~20% · Sell % · Component total rest */
.nv-price-preview-lines .nv-col-component {
  width: 40%;
}
.nv-price-preview-lines .nv-col-sell {
  width: 20%;
}
.nv-price-preview-lines .nv-col-unit {
  width: 20%;
}
.nv-price-preview-lines .nv-col-pct {
  width: 8%;
}
.nv-price-preview-lines .nv-col-ext {
  width: 12%;
}
.nv-price-preview-lines .nv-table-compact td,
.nv-price-preview-lines .nv-table-compact th {
  font-size: 12px;
  padding: 8px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nv-price-preview-lines .nv-col-component {
  white-space: nowrap;
}
/* Full VAN/TRUCK payload on Preview (not collapsed) — Vehicle ID always listed. */
.nv-vehicle-detail {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--gl-line, #c9d2ef);
  border-radius: 12px;
  background: #f7f8fe;
}
.nv-vehicle-detail__title {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #3a4677;
  margin: 0 0 10px;
}
.nv-vehicle-detail__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
}
.nv-vehicle-detail__item {
  min-width: 0;
  margin: 0;
}
.nv-vehicle-detail__item dt {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a759c;
}
.nv-vehicle-detail__item dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #163a8a;
  word-break: break-word;
}
.nv-vehicle-detail__missing {
  color: #b42318;
  font-weight: 700;
}
@media (max-width: 720px) {
  .nv-vehicle-detail__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.nv-price-preview-empty {
  margin: 10px 14px 12px;
}
.nv-empty-cell {
  text-align: center;
  color: #9aa3c7;
  padding: 14px !important;
}
@media (max-width: 720px) {
  .nv-price-totals {
    grid-template-columns: 1fr 1fr;
  }
}

/* —— Generic hint text —— */
.nv-hint {
  font-size: 11px;
  color: var(--gl-muted);
  line-height: 1.4;
}

/* —— Step 0: "What do you need?" picker —— */
.nv-rail-pick-hint {
  margin: 0 6px 14px;
  padding: 0 6px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #9aa3c7;
}
.nv-pick-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nv-pick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--gl-line);
  cursor: pointer;
}
.nv-pick-row:last-child {
  border-bottom: none;
}
.nv-pick-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.nv-pick-name {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--gl-ink);
}
.nv-pick-row.is-on .nv-pick-name {
  color: var(--gl-globelink-green-ink);
}
.nv-pick-desc {
  font-size: 12px;
  color: var(--gl-muted);
  line-height: 1.4;
}
.nv-pick-toggle {
  appearance: none;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid #e4d6ee;
  background: #eef0f8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nv-pick-toggle.is-on {
  background: var(--gl-globelink-green);
  border-color: var(--gl-globelink-green-ink);
  justify-content: flex-end;
}
.nv-pick-knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(8, 21, 83, 0.25);
  transition: transform 0.15s ease;
}
.nv-edit-steps-link {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 700;
  color: var(--gl-brand, #3650e0);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.nv-edit-steps-link:hover {
  color: #081553;
}

/* —— Rating factor tiles (Flat / Breakpoint / CWT / Fixed) —— */
.nv-rate-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.nv-rate-tile {
  appearance: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  border: 1px solid #e4d6ee;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nv-rate-tile:hover {
  border-color: #c9d2fb;
  background: #f7f8fe;
}
.nv-rate-tile.is-on {
  border-color: var(--gl-globelink-green-ink);
  background: var(--gl-globelink-green-soft);
}
.nv-rate-tile-title {
  font-family: 'Lato', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--gl-ink);
}
.nv-rate-tile.is-on .nv-rate-tile-title {
  color: var(--gl-globelink-green-ink);
}
.nv-rate-tile-sub {
  font-size: 10.5px;
  color: var(--gl-muted);
}
.nv-bp-range {
  max-width: 840px;
}
.nv-bp-range-row {
  display: grid;
  /* From / To narrower; Rate+UOM gets the wider VTR-style slot */
  grid-template-columns: minmax(96px, 1fr) minmax(96px, 1fr) minmax(220px, 2.2fr);
  gap: 12px 14px;
  align-items: start;
}
@media (max-width: 720px) {
  .nv-bp-range-row {
    grid-template-columns: 1fr;
  }
}

/* —— Branch Admin–style packing (Cargo step) —— */
.nv-pack-card {
  border: 1px solid var(--gl-line);
  border-radius: 12px;
  background: #f7f8fe;
  padding: 14px 16px 16px;
  margin-bottom: 14px;
}
.nv-pack-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.nv-pack-card-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gl-ink);
}
.nv-pack-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nv-pack-card-actions .nv-btn {
  padding: 8px 16px;
  font-size: 12px;
}
.nv-pack-row {
  display: grid;
  gap: 12px 14px;
  align-items: start;
  margin-top: 12px;
}
.nv-pack-card-head + .nv-pack-row {
  margin-top: 0;
}
.nv-pack-row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nv-pack-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.nv-dim-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 6px;
  align-items: center;
}
.nv-dim-group .ba-inp {
  min-width: 0;
}
.nv-unit-sel {
  width: 58px;
  flex-shrink: 0;
  padding-left: 6px;
  padding-right: 6px;
}
.nv-unit-pair {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nv-unit-pair .ba-inp:first-child {
  flex: 1;
  min-width: 0;
}
@media (max-width: 720px) {
  .nv-pack-row-2,
  .nv-pack-row-3 {
    grid-template-columns: 1fr;
  }
  .nv-dim-group {
    grid-template-columns: 1fr 1fr;
  }
}

.nv-pack-lines {
  margin-top: 4px;
}
.nv-pack-lines-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.nv-pack-table .nv-pack-row-click {
  cursor: pointer;
}
.nv-pack-table .nv-pack-row-click:hover {
  background: #f7f8fe;
}
.nv-pack-table tr.is-editing {
  background: var(--gl-globelink-green-soft);
}
.nv-pack-kind {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nv-pack-kind.is-pallet {
  background: #eef1ff;
  color: #3650e0;
}
.nv-pack-kind.is-box {
  background: #fff3cd;
  color: #8a6d1a;
}
.nv-pack-remove {
  appearance: none;
  border: none;
  background: transparent;
  color: #c0566f;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  white-space: nowrap;
}
.nv-pack-remove:hover {
  background: rgba(192, 86, 111, 0.1);
  color: #a6445a;
}
.nv-pack-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f7fbe8;
  border: 1px solid #d5e48a;
}
.nv-pack-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nv-pack-stat-lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gl-muted);
}
.nv-pack-stat strong {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--gl-globelink-green-ink);
}

/* —— Packing: single horizontal row (Cargo step rework) —— */
.nv-pack-row-flex,
.nv-pack-row-inline {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px 12px;
  align-items: flex-end;
}
.ba-book-packing-card .nv-pack-row-inline .nv-field {
  margin: 0;
}
.ba-book-packing-card .nv-pack-row-inline .ba-lbl {
  white-space: nowrap;
}
.nv-pack-cell { min-width: 0; }
.nv-pack-cell-unittype { flex: 0 1 118px; }
.nv-pack-cell-qty { flex: 0 1 96px; }
.nv-pack-cell-pallettype { flex: 0 1 148px; }
.nv-pack-cell-dims { flex: 1.5 1 260px; min-width: 260px; }
.nv-pack-cell-weight { flex: 0 1 152px; }
/* Package-line weight + unit: 60% value / 40% unit (was fixed 84px suffix ≈ 50/50) */
.nv-pack-cell-weight .ba-book-unit-pair > input {
  flex: 3 1 0%;
  width: auto;
  min-width: 0;
}
.nv-pack-cell-weight .ba-book-unit-pair > .ba-book-unit-select,
.nv-pack-cell-weight .ba-book-unit-pair > .lx-ss,
.nv-pack-cell-weight .ba-book-unit-pair > .lx-ss--ba-book-unit-select {
  flex: 2 1 0%;
  width: auto;
  min-width: 0;
  max-width: none;
}
.nv-pack-cell-marks { flex: 1 1 120px; min-width: 88px; }
.nv-pack-cell-add {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-bottom: 1px;
}
.nv-pack-cell-add .ba-add-btn {
  white-space: nowrap;
}
.ba-book-load-col-marks {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--gl-muted, #5c6478);
}
.nv-weight-combo {
  display: flex;
  gap: 6px;
}
.nv-weight-combo .ba-inp:first-child {
  flex: 3 1 0%;
  min-width: 0;
}
.nv-weight-combo select.ba-inp {
  flex: 1 1 0%;
  width: auto;
  min-width: 64px;
  padding-left: 6px;
  padding-right: 28px;
  background-position: right 10px center;
}
/* Density value + static VTR UOM (Kg/M³) */
.nv-density-pair > .ba-book-unit-select,
.nv-density-pair > .nv-density-unit-static {
  flex: 0 0 72px;
  width: 72px;
  min-width: 72px;
  max-width: 88px;
}
.nv-density-pair > .nv-density-unit-static {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-left: 1px solid #e4d6ee;
  border-radius: 0;
  background: #fafbff;
  color: #5a647e;
  font-size: 12px;
  font-weight: 600;
  padding: 0 8px;
  box-sizing: border-box;
  pointer-events: none;
  user-select: none;
}
/* Toll / fixed fee / money+UOM pairs — ~70% amount / 30% unit (not pack weight). */
.nv-money-unit-pair > input {
  flex: 7 1 0% !important;
  width: auto;
  min-width: 0;
}
.nv-money-unit-pair > .ba-book-unit-select,
.nv-money-unit-pair > .lx-ss,
.nv-money-unit-pair > .lx-ss--ba-book-unit-select {
  flex: 3 1 0% !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}
/* Flat / Breakpoint / CWT sea basis — keep chevron clear of the wall;
 * long WM label needs a floor wider than the default 84px unit slot. */
.nv-rate-basis-pair > .ba-book-unit-select {
  flex: 3 1 0% !important;
  min-width: 118px !important;
  max-width: none !important;
  padding-right: 28px;
  background-position: right 10px center;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 960px) {
  .nv-pack-row-flex,
  .nv-pack-row-inline {
    flex-wrap: wrap;
  }
  .nv-pack-cell-unittype,
  .nv-pack-cell-qty,
  .nv-pack-cell-pallettype,
  .nv-pack-cell-dims,
  .nv-pack-cell-weight,
  .nv-pack-cell-marks {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }
  .nv-pack-cell-add {
    flex: 1 1 100%;
    justify-content: flex-end;
  }
}

/* —— City select free-add link (Zone card) —— */
.nv-city-back-link {
  appearance: none;
  border: none;
  background: transparent;
  padding: 4px 0 0;
  margin: 0;
  font-size: 10.5px;
  color: var(--gl-brand, #3650e0);
  cursor: pointer;
  text-align: left;
}
.nv-city-back-link:hover { text-decoration: underline; }

/* —— Cartage carrier add (Zone card inner panel) —— */
.nv-carrier-add {
  margin-top: 14px;
  padding: 12px 14px 14px;
  background: #f7f8fe;
  border: 1px solid var(--gl-line);
  border-radius: 12px;
  box-sizing: border-box;
}
.nv-carrier-add-title {
  margin: 0 0 8px;
}
.nv-carrier-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
}
.nv-carrier-add-row > .nv-field {
  flex: 1 1 120px;
  min-width: 110px;
  margin: 0;
}
.nv-carrier-add-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  flex: 0 0 auto;
  padding-bottom: 1px;
}
.nv-carrier-add-actions .ba-add-btn {
  white-space: nowrap;
}
.nv-carrier-cancel-link {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--gl-brand, #3650e0);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  white-space: nowrap;
}
.nv-carrier-cancel-link:hover {
  color: #081553;
}
.nv-carrier-add .nv-hint {
  margin-top: 8px;
}
.nv-carrier-add-error {
  color: #b42318 !important;
}
.nv-carrier-detail-hint {
  margin: 6px 0 0;
}

/* —— Rating factor: outside any card, center-aligned, expand/collapse —— */
.nv-rate-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 4px 0 0;
}
.nv-rate-outer-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gl-muted);
  text-align: center;
}
.nv-rate-outer .nv-rate-tiles {
  justify-content: center;
  width: 100%;
  max-width: 620px;
  margin-bottom: 0;
}
.nv-rate-expand-toggle {
  appearance: none;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--gl-brand, #3650e0);
  cursor: pointer;
}
.nv-rate-expand-toggle:hover {
  background: rgba(94, 121, 255, 0.08);
}
.nv-rate-chevron {
  display: inline-flex;
  transition: transform 0.15s ease;
}
.nv-rate-chevron.is-open {
  transform: rotate(180deg);
}
.nv-rate-expand-body {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid var(--gl-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--gl-shadow);
}
.nv-fixed-rate-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Per CWT / Fixed rate are a single amount+unit control — half width, not 1/3. */
.nv-rate-single-half {
  width: 50%;
  max-width: 50%;
  min-width: 0;
}
@media (max-width: 720px) {
  .nv-rate-single-half {
    width: 100%;
    max-width: 100%;
  }
}
.nv-vehicle-payload {
  padding: 12px 14px;
  border: 1px solid var(--gl-line);
  border-radius: 12px;
  background: #f7f8fe;
}
.nv-vehicle-payload-title {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #3a4677;
  margin: 0 0 10px;
}
.nv-rank-lead {
  text-align: center;
  margin: -2px 0 2px;
}

/* —— Dangerous goods: stacked rows (YN → UN/class/division/PG → flash/MP/PSN),
   aligned with BA .ba-book-dg-grid spacing; temp card unchanged. —— */
.nv-dg-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nv-dg-form-row {
  display: grid;
  gap: 12px;
  align-items: end;
}
.nv-dg-form-row > .nv-field,
.nv-dg-form-row > .ba-book-yn-field {
  min-width: 0;
}
.nv-dg-form-row--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.nv-dg-form-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.nv-dg-form-row--yn {
  grid-template-columns: minmax(0, 1fr);
  max-width: 280px;
}
.ba-book-temp-grid.nv-temp-detail {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
}
@media (max-width: 1100px) {
  .nv-dg-form-row--4,
  .nv-dg-form-row--3 {
    grid-template-columns: 1fr 1fr;
  }
  .nv-dg-form-row--3 .nv-field:last-child {
    grid-column: 1 / -1;
  }
  .ba-book-temp-grid.nv-temp-detail {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 820px) {
  .nv-dg-form-row--4,
  .nv-dg-form-row--3,
  .nv-dg-form-row--yn {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .nv-dg-form-row--3 .nv-field:last-child {
    grid-column: auto;
  }
  .ba-book-temp-grid.nv-temp-detail {
    grid-template-columns: 1fr;
  }
}

/* Preview step — customer party (Branch Admin shipper layout) */
.nv-customer-party-card {
  margin-top: 4px;
}
.nv-customer-party-card > .nv-section-title {
  margin-bottom: 0;
}
.nv-customer-party-card .ba-bi-form {
  margin-top: 12px;
}
.nv-customer-party-card .nv-customer-party-grid .ba-bi-row + .ba-bi-row {
  margin-top: 0;
}
.nv-customer-party-card .ba-bi-row.nv-customer-street-zip {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.nv-customer-party-card .nv-customer-party-extras {
  margin-top: 14px;
  padding-top: 2px;
}
@media (max-width: 720px) {
  .nv-customer-party-card .ba-bi-row.nv-customer-street-zip {
    grid-template-columns: 1fr;
  }
}

/* Preview step — quote terms (separate card): Credit · Validity · Incoterm */
.nv-customer-quote-terms-card > .nv-section-title {
  margin-bottom: 0;
}
.nv-customer-quote-terms-card .ba-bi-form {
  margin-top: 12px;
}
/* Validity: native type=date with visible calendar control (not masked text). */
.nv-customer-quote-terms-card .ba-bi-field--date {
  min-width: 0;
}
.nv-customer-quote-terms-card input[type="date"].nv-date-input {
  display: block;
  width: 100%;
  min-width: 10.5rem;
  max-width: 100%;
  box-sizing: border-box;
  padding-right: 2.35rem;
  color-scheme: light;
  -webkit-appearance: auto;
  appearance: auto;
  cursor: pointer;
}
.nv-customer-quote-terms-card input[type="date"].nv-date-input::-webkit-calendar-picker-indicator {
  opacity: 1;
  cursor: pointer;
  width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.25rem;
}

/* —— Margin step: ocean freight sales-margin board (marginBoardCardHtml in
   globelink-nvocc-booking.js). —— */
.nv-margin-rank-card {
  border-top: 3px solid var(--gl-globelink-green);
}
.nv-margin-rank-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 12px;
}
.nv-margin-rank-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--gl-globelink-green-soft);
  color: var(--gl-globelink-green-ink);
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 800;
}
.nv-margin-rank-hint {
  margin: 0;
  font-size: 11.5px;
  color: var(--gl-muted);
}
/* Freight lane / validity meta strip (above margin table). */
.nv-margin-meta-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 1px;
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid #d8dce8;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f6fc 0%, #eef1f8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.nv-margin-meta-strip__cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.42);
}
.nv-margin-meta-strip__cell--lane {
  grid-column: span 1;
}
@media (min-width: 720px) {
  .nv-margin-meta-strip__cell--lane {
    grid-column: span 2;
  }
}
.nv-margin-meta-strip__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6b7289;
}
.nv-margin-meta-strip__value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--gl-ink);
  line-height: 1.35;
}
.nv-margin-meta-strip__lane {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.nv-margin-meta-strip__port {
  min-width: 0;
  word-break: break-word;
}
.nv-margin-meta-strip__arrow {
  flex-shrink: 0;
  color: #8b93a8;
  font-weight: 600;
}

/* Quote sell summary — rank totals + grand total panel. */
.nv-margin-summary-card .nv-card-head {
  margin-bottom: 14px;
}
.nv-margin-summary-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}
.nv-margin-summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  flex: 1 1 16rem;
  gap: 8px;
  margin: 0;
  min-width: 0;
}
.nv-margin-summary-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--gl-line);
  border-radius: 10px;
  background: #fafbfd;
}
.nv-margin-summary-stat dt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gl-muted);
  line-height: 1.35;
}
.nv-margin-summary-stat dd {
  margin: 0;
}
.nv-margin-summary-amt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--gl-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nv-margin-summary-grand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 10.5rem;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #b8e6cf;
  background: linear-gradient(165deg, #f3fbf7 0%, #e9f9f0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.nv-margin-summary-grand__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gl-globelink-green-ink);
}
.nv-margin-summary-grand__value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 17px;
  font-weight: 800;
  color: #1f9d6b;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
@media (max-width: 640px) {
  .nv-margin-summary-panel {
    flex-direction: column;
  }
  .nv-margin-summary-grand {
    width: 100%;
    box-sizing: border-box;
  }
}
.nv-pill-muted {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eef1ff;
  color: #3650e0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.nv-margin-synced-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px dashed var(--gl-line);
  border-radius: 12px;
  background: var(--gl-wash);
}
.nv-kv-row-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin: 0;
}
.nv-kv-row-list > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nv-kv-row-list dt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gl-muted);
}
.nv-kv-row-list dd {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gl-ink);
}
/* —— Rank margin block (cartage/handling/freight) — vendor cost shown as
   cost, branch adds price and/or %, rounding + rounding factor, same
   vendor (blue) / sell (green) color pairing as Branch Admin's Sales
   Management margin table (branch-admin/assets/js/branch-admin-tariff.js
   renderMarginTable: #eef1ff/#3650e0 vendor, #e9f9f0/#1f9d6b sell). —— */
.nv-margin-table .nv-col-num {
  text-align: right;
}
.nv-margin-table th.nv-col-num {
  text-align: right;
}
.nv-margin-cost-cell {
  color: #3650e0;
  font-weight: 600;
}
/* Freight's vendor cost is manually entered (no VTR step of its own), so
   its cost cell is an input rather than static text — same blue as every
   other rank's computed cost, right-aligned to match the column. */
.nv-margin-cost-inp {
  text-align: right;
  color: #3650e0;
  font-weight: 600;
}
.nv-margin-sell-cell,
.nv-margin-ext-cell {
  color: #1f9d6b;
}
.nv-margin-row-set .nv-margin-sell-cell {
  background: #f3fbf7;
}
.nv-margin-sell-pill {
  display: inline-block;
  min-width: 52px;
  padding: 2px 8px;
  border-radius: 7px;
  background: #e9f9f0;
  color: #1f9d6b;
  font-weight: 700;
  text-align: right;
}
.nv-margin-pct-only {
  text-align: center;
  color: var(--gl-muted);
  font-size: 12px;
}
.nv-margin-fuel-pct {
  color: var(--gl-muted);
  font-weight: 500;
  font-size: 11px;
}
/* Freight tariff basis radio — one of Per CBM / Per MT / Minimum / EIS. */
.nv-margin-tariff-select-cell {
  vertical-align: middle;
}
.nv-margin-tariff-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.nv-margin-tariff-radio input {
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--gl-globelink-green);
  cursor: pointer;
}
.nv-margin-tariff-radio__text {
  font-weight: 600;
}
.nv-margin-ref-tag {
  font-style: normal;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gl-muted);
}
.nv-margin-row-ref td {
  color: #6b7289;
  background: #f8f9fb;
}
.nv-margin-row-ref .nv-margin-cost-cell {
  color: #4b5568;
}
.nv-margin-row-selected td:first-child {
  box-shadow: inset 3px 0 0 var(--gl-globelink-green);
}
.nv-margin-ref-cell,
.nv-margin-ref-muted {
  color: #8b93a8;
  font-weight: 500;
}
.nv-margin-ref-label {
  display: inline-block;
  margin-right: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9aa3b5;
}
.nv-margin-table tfoot th,
.nv-margin-table tfoot td {
  background: #f7faf8;
  font-weight: 600;
  color: #081553;
}
.nv-margin-ext-note {
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: #e9f9f0;
  border: 1px solid #c8ebd8;
  color: #187a53;
  font-size: 11.5px;
}
.nv-margin-ext-note.is-muted {
  background: var(--gl-wash);
  border: 1px dashed var(--gl-line);
  color: var(--gl-muted);
}
.nv-no-vat-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #eef1ff;
  color: #3650e0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
