/* —— Branch portal · fixed topbar (Logistx | Globelink + nav | Sign out) —— */
.gl-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(238, 241, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #dfe4fa;
}
.gl-topbar-inner {
  max-width: none;
  margin: 0;
  width: 100%;
  padding: 12px 20px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 20px;
}
.gl-topbar-zone {
  min-width: 0;
}
.gl-topbar-zone--left {
  display: flex;
  align-items: center;
  justify-self: start;
  grid-column: 1;
}
.gl-topbar-zone--center {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  grid-column: 2;
}
.gl-topbar-zone--center:empty {
  display: block;
}
.gl-topbar-zone--right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  justify-self: end;
  grid-column: 3;
}
.gl-brand-logistx {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-decoration: none;
  flex-shrink: 0;
}
.gl-product-of {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa3c7;
  line-height: 1;
}
.gl-brand-logistx img {
  display: block;
  height: 40px;
  min-height: 40px;
  width: auto;
  max-width: min(533px, 42vw);
  line-height: 0;
}
.gl-brand-globelink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 0;
}
.gl-globelink-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(320px, 42vw);
  object-fit: contain;
  object-position: center center;
}
.gl-globelink-fallback {
  font-family: 'Lato', 'IBM Plex Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #081553;
}
.gl-branch-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.gl-branch-nav-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #dfe4fa;
  background: #fff;
  color: #5b6794;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.gl-branch-nav-btn:hover {
  border-color: #c9d2fb;
  color: #081553;
  background: #f7f8fe;
}
.gl-branch-nav-btn.is-active {
  background: rgba(202, 229, 1, 0.28);
  border-color: rgba(202, 229, 1, 0.65);
  color: #3d4a00;
  font-weight: 600;
}
.gl-branch-nav-chevron {
  font-size: 10px;
  line-height: 1;
  opacity: 0.65;
  pointer-events: none;
}
.gl-vendor-nav .gl-branch-nav-btn {
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .gl-topbar-inner {
    grid-template-columns: auto 1fr auto;
    padding: 12px 14px;
    gap: 8px 10px;
  }
  .gl-topbar-zone--left {
    min-width: 0;
  }
  .gl-topbar-zone--center {
    grid-column: 2;
    min-width: 0;
  }
  .gl-topbar-zone--right {
    grid-column: 3;
  }
  .gl-globelink-logo {
    height: 36px;
    max-width: min(200px, 38vw);
  }
  .gl-brand-logistx img {
    height: 26px;
    min-height: 26px;
    max-width: min(383px, 38vw);
  }
  .gl-product-of {
    font-size: 7px;
  }
  .gl-branch-nav-btn {
    height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }
}

/* Globelink portal shell — dashboards, upload, tariff admin */
.gl-portal {
  --gl-ink: #081553;
  --gl-muted: #5b6794;
  --gl-line: #e7eaf9;
  --gl-green: #cae501;
  --gl-green-ink: #3d4a00;
  --gl-orange: #f97316;
  --gl-orange-ink: #fff;
  --gl-wash: #eef1ff;
  min-height: 100vh;
  margin: 0;
  background: var(--gl-wash);
  color: var(--gl-ink);
  font-family: 'IBM Plex Mono', monospace;
}
.gl-portal-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--gl-line);
  backdrop-filter: blur(10px);
}
.gl-portal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.gl-portal-brand img {
  height: 28px;
  width: auto;
  display: block;
}
.gl-portal-brand-sep {
  width: 1px;
  height: 22px;
  background: var(--gl-line);
}
.gl-portal-brand-name {
  font-family: 'Lato', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.gl-portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.gl-portal-nav a {
  text-decoration: none;
  color: var(--gl-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}
.gl-portal-nav a:hover {
  background: #f7f8fe;
  color: var(--gl-ink);
}
.gl-portal-nav a.is-on {
  background: rgba(202, 229, 1, 0.28);
  color: var(--gl-green-ink);
}
.gl-portal-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.gl-portal-user-meta {
  text-align: right;
  line-height: 1.3;
}
.gl-portal-user-meta strong {
  display: block;
  font-weight: 600;
}
.gl-portal-user-meta span {
  color: var(--gl-muted);
  font-size: 11px;
}
.gl-portal-role {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef1ff;
  color: #3650e0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gl-portal-logout {
  appearance: none;
  border: 1px solid var(--gl-line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 12px;
  color: var(--gl-ink);
  cursor: pointer;
}
.gl-portal-logout:hover {
  border-color: #c9d2fb;
}
.gl-portal-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 22px 56px;
}
.gl-portal--wide .gl-portal-main {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding: 28px 20px 56px;
}
.gl-portal--wide .gl-portal-card--quotes {
  width: 100%;
}
.gl-portal-table--quotes {
  width: 100%;
}
.gl-lane-sub {
  color: #7480a8;
  font-size: 11px;
  margin-top: 2px;
}
.gl-th-actions {
  width: 240px;
  text-align: right;
}
/* Keep td as table-cell + text-align:right so the group sits at the column edge
   (inline-flex on the td shrinks to content and leaves a gap on the right). */
.gl-quote-row-actions {
  text-align: right;
  white-space: nowrap;
}
.gl-quote-row-actions .gl-icon-btn,
.gl-quote-row-actions .gl-btn {
  display: inline-flex;
  vertical-align: middle;
}
.gl-quote-row-actions .gl-icon-btn + .gl-icon-btn,
.gl-quote-row-actions .gl-icon-btn + .gl-btn {
  margin-left: 6px;
}
.gl-btn-compact {
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 8px;
  line-height: 1;
}
.gl-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid #d7dcf0;
  background: #f7f8fe;
  color: #5b6794;
}
.gl-status-pill--quoted {
  background: #f7f8fe;
  color: #5b6794;
}
.gl-status-pill--confirmed {
  background: #eef4ff;
  border-color: #c9d2fb;
  color: #3650e0;
}
.gl-status-pill--booked {
  background: #e8f7ee;
  border-color: #9ed4b2;
  color: #146c3c;
}
.gl-status-pill--nvocc {
  background: #eef2ff;
  border-color: #c9d2fb;
  color: #3147a8;
}
.gl-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #d7dcf0;
  background: #fff;
  color: #081553;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.gl-icon-btn:hover {
  background: #eef1fb;
  border-color: #b8c0e4;
  color: #3650e0;
}
.gl-icon-action {
  width: 16px;
  height: 16px;
  display: block;
}
.gl-portal-h1 {
  margin: 0 0 6px;
  font-family: 'Lato', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.gl-portal-sub {
  margin: 0 0 20px;
  font-size: 12.5px;
  color: var(--gl-muted);
  line-height: 1.45;
}
.gl-dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.gl-dash-head .gl-portal-h1 {
  margin-bottom: 6px;
}
.gl-dash-head .gl-portal-sub {
  margin-bottom: 0;
  max-width: 720px;
}
.gl-kpi-strip-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 10px;
}
.gl-kpi-strip-hd-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #5b6794;
  letter-spacing: 0.02em;
}
.gl-kpi-period {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: #f3f4f8;
  border: 1px solid #e4e7f2;
  border-radius: 10px;
}
.gl-kpi-period-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  color: #5b6794;
  padding: 7px 12px;
  border-radius: 8px;
  line-height: 1.2;
  white-space: nowrap;
}
.gl-kpi-period-btn:hover {
  color: #081553;
  background: rgba(255, 255, 255, 0.7);
}
.gl-kpi-period-btn.is-on {
  background: #fff;
  color: #081553;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(8, 21, 83, 0.08);
}
.gl-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.gl-kpi-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gl-kpi-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gl-kpi-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.gl-kpi-grid--6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.gl-kpi.is-link {
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}
.gl-kpi.is-link:hover,
.gl-kpi.is-link:focus-visible {
  border-color: #c9d2fb;
  box-shadow: 0 0 0 3px rgba(54, 80, 224, 0.12);
  outline: none;
}
.gl-upload-meta {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--gl-line);
  border-radius: 10px;
  font-size: 12px;
  color: var(--gl-muted);
}
.gl-upload-meta strong {
  color: var(--gl-ink);
  font-weight: 600;
}
.gl-logo-preview {
  width: 160px;
  height: 56px;
  object-fit: contain;
  display: block;
  background: #f7f8fe;
  border: 1px solid var(--gl-line);
  border-radius: 8px;
  padding: 6px;
}
.gl-file-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.gl-file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gl-line);
  font-size: 12px;
}
.gl-file-list li:last-child {
  border-bottom: none;
}
.gl-kpi {
  background: #fff;
  border: 1px solid var(--gl-line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(8, 21, 83, 0.04);
}
/* Soft accent KPIs — light wash + top bar (Global Admin dashboard) */
.gl-kpi[class*="gl-kpi--"] {
  border-top: 3px solid var(--gl-kpi-accent, var(--gl-line));
  background: var(--gl-kpi-wash, #fff);
}
.gl-kpi[class*="gl-kpi--"] .gl-kpi-label {
  color: var(--gl-kpi-label, #9aa3c7);
}
.gl-kpi--tariff {
  --gl-kpi-accent: #8ea0e8;
  --gl-kpi-wash: #f5f7ff;
  --gl-kpi-label: #6b7ab8;
}
.gl-kpi--dest {
  --gl-kpi-accent: #6bb8a8;
  --gl-kpi-wash: #f2faf8;
  --gl-kpi-label: #3d8a7a;
}
.gl-kpi--quotes {
  --gl-kpi-accent: #9b8fd4;
  --gl-kpi-wash: #f7f5fc;
  --gl-kpi-label: #6f64a8;
}
.gl-kpi--time {
  --gl-kpi-accent: #d4a574;
  --gl-kpi-wash: #fbf7f1;
  --gl-kpi-label: #9a7048;
}
.gl-kpi--booked {
  --gl-kpi-accent: #a8c44a;
  --gl-kpi-wash: #f7fbee;
  --gl-kpi-label: #5a6e20;
}
.gl-kpi--agents {
  --gl-kpi-accent: #7a88b8;
  --gl-kpi-wash: #f4f6fb;
  --gl-kpi-label: #5b6794;
}
.gl-kpi-label {
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9aa3c7;
  margin-bottom: 8px;
}
.gl-kpi-value {
  font-family: 'Lato', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.gl-kpi-hint {
  margin-top: 4px;
  font-size: 11px;
  color: var(--gl-muted);
}
.gl-portal-card {
  background: #fff;
  border: 1px solid var(--gl-line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(8, 21, 83, 0.04);
  margin-bottom: 14px;
}
.gl-portal-card h2 {
  margin: 0 0 4px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.gl-portal-card .gl-card-lead {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--gl-muted);
}
.gl-portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gl-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.gl-btn-primary {
  background: var(--gl-ink);
  color: #fff;
}
.gl-btn-primary:hover {
  background: #0c1a5c;
}
.gl-btn-accent {
  gap: 6px;
  background: var(--gl-green);
  color: var(--gl-green-ink);
}
.gl-btn-orange {
  background: var(--gl-orange);
  color: var(--gl-orange-ink);
  border-color: var(--gl-orange);
}
.gl-btn-orange:hover {
  background: #ea580c;
  border-color: #ea580c;
}
.gl-btn-ghost {
  background: #fff;
  border-color: var(--gl-line);
  color: var(--gl-ink);
}
.gl-btn-ghost:hover {
  border-color: #c9d2fb;
}
/* After .gl-btn — higher specificity so padding:0 14px cannot crush the SVG */
.gl-btn.gl-topbar-signout,
.gl-topbar .gl-topbar-signout {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gl-btn.gl-topbar-signout svg,
.gl-topbar .gl-topbar-signout svg,
.gl-logout-icon {
  display: block;
  flex-shrink: 0;
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  stroke-width: 2;
}
.gl-table-wrap {
  overflow: auto;
  border: 1px solid var(--gl-line);
  border-radius: 12px;
}
.gl-portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.gl-portal-table th,
.gl-portal-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--gl-line);
  vertical-align: middle;
}
.gl-portal-table th {
  background: #f7f8fe;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa3c7;
  font-weight: 500;
}
.gl-portal-table tr:last-child td {
  border-bottom: none;
}
.gl-portal-table tr.gl-quote-row:hover td {
  background: #f7f8fe;
}
.gl-portal-table .gl-quote-row-actions {
  white-space: nowrap;
  text-align: right;
  min-width: 160px;
  width: auto;
}
.gl-customer-empty {
  color: #9aa3c7;
  font-style: italic;
  font-size: 12px;
}
.gl-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
}
.gl-status-draft { background: #eef1ff; color: #3650e0; }
.gl-status-quoted { background: #e6f7fb; color: #067a95; }
.gl-status-confirmed { background: #e8f8ef; color: #1f9d6b; }
.gl-status-booked { background: rgba(202, 229, 1, 0.35); color: var(--gl-green-ink); }
.gl-upload-zone {
  border: 1.5px dashed #c9d2fb;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  background: #f7f8fe;
}
.gl-upload-zone strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}
.gl-upload-zone p {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--gl-muted);
}
.gl-upload-zone.is-drag {
  border-color: #01a9ce;
  background: #eef9fc;
}
.gl-form-divider {
  height: 1px;
  background: var(--gl-line);
  margin: 18px 0;
}
.gl-agent-block-title {
  margin: 0 0 10px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b6794;
}
.gl-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  z-index: 80;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 10px;
  background: #081553;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 10px 28px rgba(8, 21, 83, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.gl-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.gl-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.gl-field-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gl-field-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gl-field-grid--1 {
  grid-template-columns: minmax(0, 1fr);
}
.gl-field-grid label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9aa3c7;
  margin-bottom: 5px;
}
.gl-field-grid input,
.gl-field-grid select,
.gl-field-grid textarea {
  width: 100%;
  box-sizing: border-box;
  height: 36px;
  padding: 6px 10px;
  border: 1px solid #e4d6ee;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  color: var(--gl-ink);
  background-color: #fff;
}
.gl-field-grid select {
  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;
}
.gl-field-grid textarea {
  height: auto;
  min-height: 64px;
}
.gl-empty {
  padding: 24px;
  text-align: center;
  color: var(--gl-muted);
  font-size: 12.5px;
}
@media (max-width: 1200px) {
  .gl-kpi-grid--6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .gl-kpi-grid--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gl-booking-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 960px) {
  .gl-kpi-grid,
  .gl-kpi-grid--2,
  .gl-kpi-grid--3,
  .gl-kpi-grid--5,
  .gl-kpi-grid--6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gl-agent-chips {
    grid-template-columns: 1fr;
  }
  .gl-field-grid,
  .gl-field-grid--2,
  .gl-field-grid--3 {
    grid-template-columns: 1fr;
  }
  .gl-portal-top {
    flex-wrap: wrap;
  }
}
@media (max-width: 640px) {
  .gl-kpi-grid,
  .gl-kpi-grid--2,
  .gl-kpi-grid--3,
  .gl-kpi-grid--5,
  .gl-kpi-grid--6 {
    grid-template-columns: 1fr;
  }
}

/* —— Global Admin · Excel-style tariff admin —— */
.gl-portal-main--wide {
  max-width: none;
  padding-left: 18px;
  padding-right: 18px;
}
.gl-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.gl-admin-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.gl-admin-head .gl-icon-btn {
  flex-shrink: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
/* Tariff admin hub: tabs → toolbar card → data card (BA pattern) */
.gl-ta-hub {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.gl-ta-hub > .gl-ta-hub-tabs {
  margin-bottom: 14px;
}
.gl-ta-hub > .gl-ta-toolbar {
  margin-bottom: 8px;
}
.gl-tariff-admin-card {
  padding: 12px 14px 14px;
  overflow: visible;
  margin-bottom: 0;
}
.gl-tariff-admin-card .gl-sheet-panel {
  padding: 0;
}
.gl-tariff-admin-card .gl-excel-wrap {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
/* BA-style hub tabs (Rates | Notes | Surcharges) — outside cards */
.gl-ta-hub-tabs {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: none;
}
.gl-ta-hub-flow {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: visible;
}
.gl-ta-hub-tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  padding: 11px 10px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: #7480a8;
  overflow: visible;
  white-space: nowrap;
}
.gl-ta-hub-tab:hover:not(.is-on) {
  background: #f7f8fe;
  color: var(--gl-ink);
}
.gl-ta-hub-tab.is-on {
  background: #dde3ff;
  box-shadow: none;
  border-color: #b8c4f5;
  color: #3650e0;
}
.gl-ta-hub-count {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 600;
  color: inherit;
  opacity: 0.85;
}
.gl-ta-hub-tab-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #dde3ff;
  border: none;
  border-right: 1px solid #b8c4f5;
  border-bottom: 1px solid #b8c4f5;
  border-radius: 0 0 1px 0;
  transform: translate(-50%, -42%) rotate(45deg);
  pointer-events: none;
  z-index: 4;
}
/* Toolbar card: filter left, Add right (own card, outside data card) */
.gl-ta-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--gl-line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(8, 21, 83, 0.04);
}
.gl-ta-toolbar-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.gl-ta-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 200px;
  flex: 0 0 200px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--gl-line);
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}
.gl-ta-search[hidden] {
  display: none !important;
}
.gl-ta-search svg {
  flex-shrink: 0;
}
.gl-ta-search-inp {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  color: var(--gl-ink);
}
.gl-ta-rowcount {
  font-size: 11px;
  color: var(--gl-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.gl-ta-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  border: none;
  border-radius: 10px;
  background: #081553;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(8, 21, 83, 0.22);
  white-space: nowrap;
}
.gl-ta-add-btn:hover {
  background: #0c1a5c;
}
.gl-ta-add-btn[hidden] {
  display: none !important;
}
.gl-ta-add-btn svg {
  flex-shrink: 0;
}
.gl-sheet-panel {
  display: none;
}
.gl-sheet-panel.is-on {
  display: block;
}
.gl-field-grid--6 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.gl-excel-wrap {
  overflow: auto;
  max-height: min(62vh, 720px);
  border: 1px solid var(--gl-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(8, 21, 83, 0.04);
}
.gl-excel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  min-width: 960px;
}
.gl-excel-table th,
.gl-excel-table td {
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid #eef0f8;
  border-right: 1px solid #f3f4fa;
  white-space: nowrap;
  vertical-align: middle;
}
.gl-excel-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f0f2fa;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8b94b8;
  font-weight: 600;
}
.gl-excel-table tbody tr:nth-child(even) td {
  background: #fafbff;
}
.gl-excel-table tbody tr:hover td {
  background: #f3f7e0;
}
.gl-excel-table tbody tr.is-active td {
  background: rgba(202, 229, 1, 0.22);
}
.gl-excel-table .gl-excel-notes {
  white-space: normal;
  min-width: 220px;
  max-width: 420px;
  line-height: 1.35;
  color: #3a4670;
}
.gl-excel-actions {
  white-space: nowrap;
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -6px 0 8px -6px rgba(8, 21, 83, 0.12);
  width: 1%;
  z-index: 1;
}
.gl-excel-table tbody tr:nth-child(even) td.gl-excel-actions {
  background: #fafbff;
}
.gl-excel-table tbody tr:hover td.gl-excel-actions {
  background: #f3f7e0;
}
.gl-excel-table tbody tr.is-editing td.gl-excel-actions {
  background: rgba(202, 229, 1, 0.18);
}
.gl-excel-table thead th:last-child {
  position: sticky;
  right: 0;
  z-index: 3;
  background: #f0f2fa;
  box-shadow: -6px 0 8px -6px rgba(8, 21, 83, 0.12);
}
.gl-ta-row-acts {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.gl-ta-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #3650e0;
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
}
.gl-ta-ico svg {
  width: 15px;
  height: 15px;
  display: block;
}
.gl-ta-ico--edit:hover,
.gl-ta-ico--save:hover {
  background: rgba(54, 80, 224, 0.1);
  color: #081553;
}
.gl-ta-ico--save {
  color: #1f9d6b;
}
.gl-ta-ico--save:hover {
  background: rgba(31, 157, 107, 0.12);
  color: #167a52;
}
.gl-ta-ico--danger {
  color: #c0566f;
}
.gl-ta-ico--danger:hover {
  background: rgba(192, 86, 111, 0.1);
  color: #a6445a;
}
.gl-excel-table tbody tr.is-editing td {
  background: rgba(202, 229, 1, 0.18);
  vertical-align: top;
}
.gl-excel-input {
  display: block;
  width: 100%;
  min-width: 68px;
  max-width: 220px;
  height: 30px;
  padding: 4px 8px;
  border: 1px solid var(--gl-line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 11.5px;
  background: #fff;
  color: var(--gl-ink);
  box-sizing: border-box;
}
.gl-excel-input--notes {
  min-width: 200px;
  max-width: 420px;
  height: auto;
  min-height: 52px;
  resize: vertical;
  white-space: pre-wrap;
}
@media (max-width: 1100px) {
  .gl-field-grid--6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* —— Branch dashboard hub: tabs → toolbar → list card —— */
.gl-dash-hub {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.gl-dash-hub > .gl-ta-hub-tabs {
  margin-bottom: 14px;
}
.gl-dash-hub > .gl-ta-toolbar {
  margin-bottom: 8px;
}
.gl-dash-hub > .gl-portal-card--quotes {
  margin-bottom: 0;
}
.gl-dash-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  grid-template-columns: none;
}
.gl-dash-toolbar .gl-ta-toolbar-filters {
  flex: 1 1 auto;
  min-width: 0;
}
.gl-dash-filter-combo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--gl-line);
  border-radius: 8px;
  background: #eef1ff;
  box-sizing: border-box;
  flex-shrink: 0;
}
.gl-dash-filter-combo[hidden] {
  display: none !important;
}
.gl-dash-filter-combo-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #5b6794;
  white-space: nowrap;
}
.gl-dash-filter-select {
  appearance: none;
  border: 0;
  outline: none;
  background-color: transparent;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #081553;
  min-width: 148px;
  max-width: 200px;
  cursor: pointer;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23081553' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.gl-dash-filter-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.gl-dash-timeline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
  flex-wrap: wrap;
  padding: 3px;
  background: #eef1ff;
  border: 1px solid #dfe4fa;
  border-radius: 10px;
}
.gl-dash-spantab {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  color: #5b6794;
  padding: 7px 10px;
  border-radius: 8px;
  line-height: 1.2;
  white-space: nowrap;
}
.gl-dash-spantab:hover {
  color: #081553;
  background: rgba(255, 255, 255, 0.55);
}
.gl-dash-spantab.is-on {
  background: #fff;
  color: #081553;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(8, 21, 83, 0.1);
}
.gl-dash-range-fields {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 0 2px;
}
.gl-dash-range-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #5b6794;
}
.gl-dash-range-field input[type="date"] {
  height: 28px;
  padding: 0 8px;
  border: 1px solid #dfe4fa;
  border-radius: 7px;
  background: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: #081553;
}
.gl-dash-range-field input[type="date"][readonly] {
  background: #f5f7ff;
  color: #081553;
  cursor: default;
  border-color: #e4e8f8;
}
.gl-dash-range-fields.is-custom .gl-dash-range-field input[type="date"] {
  background: #fff;
  border-color: #c5ceed;
  cursor: pointer;
}
@media (max-width: 900px) {
  .gl-dash-timeline {
    margin-left: 0;
    width: 100%;
  }
  .gl-dash-toolbar .gl-ta-toolbar-filters {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* —— Global Admin · left dark sidebar (~15%) + main —— */
.gl-vendor-shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  width: 100%;
}
.gl-vendor-sidebar {
  box-sizing: border-box;
  width: 15%;
  min-width: 176px;
  max-width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 10px 12px;
  background: #050d2e;
  color: #e8ecff;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.gl-vendor-sidebar-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 12px;
  border-bottom: 1px solid rgba(232, 236, 255, 0.12);
  text-align: center;
}
.gl-vendor-sidebar-logistx {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  width: 100%;
  max-width: 100%;
}
.gl-vendor-sidebar-logistx .gl-product-of {
  color: rgba(154, 163, 199, 0.85);
  text-align: center;
}
.gl-vendor-sidebar-logistx img {
  display: block;
  height: 24px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.gl-vendor-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
}
.gl-vendor-sidebar-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
  filter: brightness(0) invert(1);
}
.gl-vendor-sidebar .gl-globelink-fallback {
  color: #f4f6ff;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}
.gl-vendor-sidebar-role {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(202, 229, 1, 0.9);
  text-align: center;
}
.gl-vendor-side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
}
.gl-vendor-nav-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(232, 236, 255, 0.12);
}
.gl-vendor-nav-section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(154, 163, 199, 0.72);
  padding: 0 8px 2px;
}
.gl-vendor-nav-section + .gl-vendor-side-link,
.gl-vendor-side-link + .gl-vendor-nav-section {
  margin-top: 4px;
}
.gl-vendor-side-link {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(232, 236, 255, 0.82);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.gl-vendor-side-link .gl-nav-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  opacity: 0.85;
  stroke-width: 2;
}
.gl-vendor-side-label {
  min-width: 0;
  line-height: 1.25;
}
.gl-vendor-side-link:hover {
  background: rgba(238, 241, 255, 0.08);
  color: #fff;
}
.gl-vendor-side-link:hover .gl-nav-icon {
  opacity: 1;
}
.gl-vendor-side-link.is-active {
  background: rgba(202, 229, 1, 0.18);
  border-color: rgba(202, 229, 1, 0.45);
  color: #f7ffb0;
  font-weight: 600;
}
.gl-vendor-side-link.is-active .gl-nav-icon {
  opacity: 1;
  color: #cae501;
}

/* Global Admin dashboard — forwarders + booking cards */
.gl-card-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.gl-card-head-row h2 {
  margin: 0;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.gl-btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  min-height: 32px;
}
.gl-agent-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.gl-agent-chip {
  background: #f7f8fe;
  border: 1px solid var(--gl-line);
  border-radius: 12px;
  padding: 12px 14px;
}
.gl-agent-chip-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--gl-ink);
  margin-bottom: 4px;
}
.gl-agent-chip-meta {
  font-size: 12px;
  color: var(--gl-muted);
  line-height: 1.4;
}
.gl-booking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.gl-booking-card {
  background: #f7f8fe;
  border: 1px solid var(--gl-line);
  border-radius: 12px;
  padding: 14px 16px;
}
.gl-booking-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.gl-booking-id {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--gl-ink);
}
.gl-booking-dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}
.gl-booking-dl > div {
  min-width: 0;
}
.gl-booking-dl dt {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa3c7;
  margin: 0 0 2px;
}
.gl-booking-dl dd {
  margin: 0;
  font-size: 12.5px;
  color: var(--gl-ink);
  line-height: 1.35;
  word-break: break-word;
}
.gl-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gl-status-pill.is-booked {
  background: rgba(34, 160, 90, 0.12);
  color: #1a7a45;
}
.gl-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
}
.gl-bookings-table td,
.gl-bookings-table th {
  white-space: nowrap;
}
.gl-bookings-table td.gl-booking-cell-route,
.gl-bookings-table td.gl-booking-cell-pack,
.gl-bookings-table td.gl-booking-cell-deadline {
  white-space: normal;
  min-width: 120px;
}
.gl-bookings-table .gl-pack-sub,
.gl-bookings-table .gl-deadline-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--gl-muted, #7480a8);
  line-height: 1.3;
}
.gl-portal-card--latest-bookings .gl-table-wrap,
.gl-portal-card--vendor-bookings .gl-table-wrap {
  width: 100%;
}
.gl-vendor-sidebar-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 236, 255, 0.12);
  display: flex;
  justify-content: center;
  align-items: center;
}
.gl-vendor-content {
  flex: 1;
  min-width: 0;
  background: var(--gl-wash, #eef1ff);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.gl-vendor-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
  background: rgba(238, 241, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #dfe4fa;
}
.gl-vendor-topbar-inner {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.gl-vendor-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gl-topbar-notify,
.gl-vendor-topbar .gl-topbar-signout,
.gl-vendor-topbar .gl-btn.gl-topbar-signout {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gl-topbar-notify .gl-notify-icon,
.gl-vendor-topbar .gl-logout-icon,
.gl-vendor-topbar .gl-topbar-signout svg,
.gl-topbar-notify svg {
  display: block;
  flex-shrink: 0;
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  stroke-width: 2;
}
.gl-shell > .gl-vendor-topbar {
  width: 100%;
}
.gl-portal--vendor {
  background: #050d2e;
}
.gl-portal--vendor .gl-portal-main {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
  padding-top: 22px;
}
.gl-vendor-content > .gl-portal-main {
  flex: 1;
  min-width: 0;
}
body:not(.gl-portal--vendor) .gl-vendor-topbar {
  display: none !important;
}
body.gl-portal--vendor .gl-vendor-topbar[hidden] {
  display: block !important;
}
/* Shared tariff page: vendor uses sidebar; branch keeps topbar */
body.gl-portal--vendor.gl-page-full {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  background: #eef1ff;
}
body.gl-portal--vendor .gl-shell > .gl-topbar {
  display: none !important;
}
body.gl-portal--vendor > .gl-vendor-sidebar + .gl-shell,
body.gl-portal--vendor > .gl-vendor-sidebar ~ .gl-shell {
  flex: 1;
  min-width: 0;
  background: #eef1ff;
}
body.gl-portal--vendor > .gl-vendor-sidebar {
  display: flex;
}
body:not(.gl-portal--vendor) > .gl-vendor-sidebar {
  display: none !important;
}
@media (max-width: 900px) {
  .gl-vendor-shell {
    flex-direction: column;
  }
  .gl-vendor-sidebar {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
  }
  .gl-vendor-sidebar-top {
    border-bottom: none;
    padding-bottom: 0;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-align: left;
  }
  .gl-vendor-sidebar-brand {
    width: auto;
  }
  .gl-vendor-sidebar-role {
    text-align: left;
  }
  .gl-vendor-side-nav {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
  .gl-vendor-nav-section {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    gap: 4px;
  }
  .gl-vendor-nav-section-label {
    width: 100%;
    padding: 4px 10px 0;
  }
  .gl-vendor-sidebar-foot {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
    margin-left: auto;
  }
  .gl-vendor-sidebar-logo {
    height: 32px;
  }
  .gl-vendor-sidebar-logistx img {
    height: 22px;
  }
  .gl-vendor-content {
    min-height: 0;
  }
  .gl-vendor-topbar-inner {
    padding: 8px 14px;
  }
  .gl-topbar-notify,
  .gl-vendor-topbar .gl-topbar-signout,
  .gl-vendor-topbar .gl-btn.gl-topbar-signout {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
  }
  .gl-topbar-notify .gl-notify-icon,
  .gl-vendor-topbar .gl-logout-icon,
  .gl-vendor-topbar .gl-topbar-signout svg,
  .gl-topbar-notify svg {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
  }
}

/* —— Global Admin · Forwarder admin list + drawer —— */
.gl-agent-list-card {
  padding: 0;
  overflow: hidden;
}
.gl-agent-list-card .gl-grid-head {
  padding: 14px 16px 10px;
  margin-bottom: 0;
}
.gl-agent-list-card .gl-table-wrap {
  border: none;
  border-radius: 0;
}
.gl-agent-table th.gl-agent-metric-th,
.gl-agent-table td.gl-agent-metric-td {
  text-align: center;
  width: 1%;
  white-space: nowrap;
}
.gl-agent-table tr.gl-agent-row {
  cursor: pointer;
}
.gl-agent-table tr.gl-agent-row:hover td {
  background: #f7fbf0;
}
.gl-agent-table tr.gl-agent-row:focus {
  outline: none;
}
.gl-agent-table tr.gl-agent-row:focus td {
  background: #f3f8e6;
}
.gl-agent-metric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(202, 229, 1, 0.32);
  color: var(--gl-green-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
body.gl-agent-drawer-open {
  overflow: hidden;
}
.gl-agent-drawer-root:not([hidden]) {
  display: block;
}
.gl-agent-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(8, 21, 83, 0.34);
  animation: fadeIn 0.2s ease-out;
}
.gl-agent-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 71;
  display: flex;
  flex-direction: column;
  width: 60vw;
  max-width: 100vw;
  height: 100vh;
  background: #f7f8fe;
  box-shadow: -16px 0 44px rgba(8, 21, 83, 0.22);
  animation: drawerIn 0.3s ease-out;
}
.gl-agent-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid var(--gl-line);
}
.gl-agent-drawer-title {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gl-ink);
}
.gl-agent-drawer-sub {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--gl-muted);
  line-height: 1.4;
}
.gl-agent-drawer-close {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 9px;
  border: 1px solid #dfe4fa;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.gl-agent-drawer-close:hover {
  border-color: #c9d2fb;
}
.gl-agent-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 24px;
}
.gl-agent-drawer-body .gl-agent-block {
  margin: 0;
}
.gl-agent-drawer-body .gl-agent-block-title {
  margin-bottom: 12px;
}
.gl-agent-drawer-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 16px;
  background: #fff;
  border-top: 1px solid var(--gl-line);
}
.gl-agent-view-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.gl-agent-view-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 110px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--gl-line);
}
.gl-agent-view-metric-lbl {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa3c7;
}
.gl-agent-view-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 14px;
  margin-bottom: 14px;
}
.gl-agent-view-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gl-agent-view-field {
  min-width: 0;
}
.gl-agent-view-field dt {
  margin: 0 0 4px;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9aa3c7;
}
.gl-agent-view-field dd {
  margin: 0;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #e4d6ee;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  color: var(--gl-ink);
  line-height: 1.35;
  word-break: break-word;
}
.gl-agent-view-field dd.is-empty {
  color: #9aa3c7;
}
@media (max-width: 960px) {
  .gl-agent-view-grid,
  .gl-agent-view-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .gl-agent-drawer {
    width: 100vw;
  }
  .gl-agent-view-grid,
  .gl-agent-view-grid--2 {
    grid-template-columns: 1fr;
  }
}

/* ── GA data grid hub: toolbar card → gap → results card (BA bookings / dash) ── */
.gl-grid-hub {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.gl-grid-hub > .gl-grid-toolbar-slot {
  margin-bottom: 8px;
}
.gl-grid-hub > .gl-grid-toolbar-slot .gl-grid-toolbar {
  margin-bottom: 0;
}
.gl-grid-hub > .gl-portal-card {
  margin-bottom: 0;
}
/* Flat bookings hub: no outer results card wrapping the list */
.gl-grid-hub--bookings-flat > .gl-bk-sort-wrap {
  margin-bottom: 10px;
}
.gl-grid-hub--bookings-flat > .gl-ga-booking-list {
  min-width: 0;
}

/* GA data grid toolbar (BA-style card: filters left · dates right; outside results card) */
.gl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.gl-grid-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--gl-line, #e7eaf9);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(8, 21, 83, 0.04);
}
.gl-grid-toolbar-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.gl-grid-search input,
.gl-grid-filter input,
.gl-grid-filter select {
  height: 32px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid #d4daf2;
  border-radius: 8px;
  background-color: #fff;
  color: #081553;
  font: inherit;
  font-size: 12px;
  min-width: 0;
}
.gl-grid-filter select {
  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;
}
.gl-grid-search input {
  width: 200px;
  max-width: 42vw;
}
.gl-grid-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gl-grid-filter-label {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9aa3c7;
  font-weight: 500;
  white-space: nowrap;
}
.gl-grid-filter select {
  min-width: 108px;
}
.gl-grid-toolbar-timeline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
  padding: 3px;
  background: #f3f4f8;
  border: 1px solid #e4e7f2;
  border-radius: 10px;
}
.gl-grid-spantabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.gl-grid-spantab {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  color: #5b6794;
  padding: 7px 10px;
  border-radius: 8px;
  line-height: 1.2;
  white-space: nowrap;
}
.gl-grid-spantab:hover {
  color: #081553;
  background: rgba(255, 255, 255, 0.7);
}
.gl-grid-spantab.is-on {
  background: #fff;
  color: #081553;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(8, 21, 83, 0.08);
}
.gl-grid-datenav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-left: 4px;
  margin-left: 2px;
  border-left: 1px solid #dde1ef;
  min-height: 32px;
}
.gl-grid-datenav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #3a4677;
  cursor: pointer;
  flex-shrink: 0;
}
.gl-grid-datenav-btn:hover {
  background: #fff;
  color: #081553;
}
.gl-grid-datenav-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #081553;
  min-width: 118px;
  max-width: 220px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 6px;
}
.gl-grid-date-input {
  height: 28px;
  box-sizing: border-box;
  padding: 0 6px;
  border: 1px solid #d4daf2;
  border-radius: 7px;
  background: #fff;
  color: #081553;
  font: inherit;
  font-size: 11.5px;
  width: 132px;
}
.gl-grid-date-sep {
  color: #9aa3c7;
  padding: 0 2px;
  font-size: 12px;
}
/* Segmented filter list (Import / Export / Cross trade) */
.gl-grid-seg {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  height: 32px;
  border: 1px solid #d8def5;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.gl-grid-seg-btn {
  border: 0;
  background: transparent;
  padding: 0 12px;
  height: 30px;
  font: inherit;
  font-size: 12px;
  color: #5a6487;
  cursor: pointer;
  white-space: nowrap;
}
.gl-grid-seg-btn + .gl-grid-seg-btn {
  border-left: 1px solid #d8def5;
}
.gl-grid-seg-btn:hover {
  color: #081553;
  background: #f5f7ff;
}
.gl-grid-seg-btn.is-on {
  background: #eef1ff;
  color: #3650e0;
  font-weight: 600;
}
/* Quotations-style From / To fields beside Today · Week · Month · Date range */
.gl-grid-toolbar-timeline--fields {
  flex-wrap: wrap;
}
.gl-grid-datenav--fields {
  gap: 8px;
  padding-left: 6px;
}
.gl-grid-date-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #5b6794;
  font-family: 'IBM Plex Mono', monospace;
}
.gl-grid-date-field input[type='date'][readonly] {
  background: #f5f7ff;
  color: #081553;
  cursor: default;
  border-color: #e4e8f8;
}
.gl-portal-table th.gl-grid-th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.gl-portal-table th.gl-grid-th:hover,
.gl-portal-table th.gl-grid-th.is-on {
  color: #5b6794;
  background: #f0f2fa;
}
.gl-grid-th-label {
  margin-right: 4px;
}
.gl-grid-sort-glyph {
  display: inline-block;
  font-size: 10px;
  opacity: 0.45;
  vertical-align: 1px;
}
.gl-grid-sort-glyph.is-on {
  opacity: 1;
  color: #3a4677;
}
/* Results-card list heading (inside the data card — not its own card) */
.gl-grid-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.gl-grid-heading {
  margin: 0;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--gl-ink, #081553);
}
.gl-grid-count {
  font-size: 11.5px;
  font-weight: 500;
  color: #9aa3c7;
  white-space: nowrap;
}
/* Legacy alias — prefer .gl-grid-head */
.gl-grid-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.gl-grid-meta .gl-card-lead {
  margin: 0;
}
@media (max-width: 900px) {
  .gl-grid-toolbar-timeline {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .gl-grid-search input {
    width: 160px;
  }
}

/* Forwarder dashboard — rank chips + wide quote columns */
.gl-lane-ranks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.gl-rank-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  background: #eef1ff;
  color: #3650e0;
  letter-spacing: 0.03em;
}
.gl-rank-chip.ba-rank-oc,
.gl-rank-chip--oc { background: #eef1ff; color: #3650e0; }
.gl-rank-chip.ba-rank-oh,
.gl-rank-chip--oh { background: #e6f7fb; color: #067a95; }
.gl-rank-chip.ba-rank-fr,
.gl-rank-chip--fr,
.gl-rank-chip--fre { background: #f3edff; color: #7b54e0; }
.gl-rank-chip.ba-rank-dh,
.gl-rank-chip--dh { background: #e9f9f0; color: #1f9d6b; }
.gl-rank-chip.ba-rank-dc,
.gl-rank-chip--dc { background: #fff4d6; color: #b07908; }
.gl-nvocc-sched {
  color: #1f9d6b !important;
  font-weight: 600;
}
.gl-portal-table--quotes {
  min-width: 1100px;
}
.gl-portal-table--quotes th,
.gl-portal-table--quotes td {
  font-size: 11.5px;
  white-space: nowrap;
}
.gl-portal-table--quotes td:nth-child(10) {
  white-space: normal;
  min-width: 160px;
}
