/* ============================================================
   Design System v1 — ECW / fr8manage
   Reusable token layer + component classes for all modules.
   Import once in index.html before style.css.
   Theme override: add a class to <body> and redefine tokens.
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --ds-color-primary: #0b4272;
  --ds-color-primary-dark: #07345c;
  --ds-color-primary-light: #dff0fb;
  --ds-color-accent: #0f6fb3;
  --ds-color-accent-dark: #0b5c94;
  --ds-color-success: #008f1f;
  --ds-color-success-bg: #e8f7e8;
  --ds-color-success-text: #006b17;
  --ds-color-warning: #d97706;
  --ds-color-warning-bg: #fff4d6;
  --ds-color-warning-text: #b45309;
  --ds-color-danger: #d71920;
  --ds-color-danger-bg: #fde4e6;
  --ds-color-danger-text: #b91c1c;
  --ds-color-info-bg: #eff9fe;
  --ds-color-info-border: #bae6fd;
  --ds-color-info-text: #0369a1;

  --ds-grey-50: #f7f9fb;
  --ds-grey-100: #eef6fb;
  --ds-grey-200: #d7e1ea;
  --ds-grey-300: #c9d9e8;
  --ds-grey-400: #8fa8bc;
  --ds-grey-500: #657786;
  --ds-grey-600: #475569;
  --ds-grey-700: #334155;
  --ds-grey-800: #1f2933;

  --ds-radius-xs: 2px;
  --ds-radius-sm: 3px;
  --ds-radius-md: 6px;
  --ds-radius-lg: 8px;

  --ds-shadow-card: 0 1px 4px rgba(15, 65, 100, .16);
  --ds-shadow-modal: 0 20px 60px rgba(0, 0, 0, .2);

  --ds-font-mono: 'Geist Mono', monospace;
  --ds-font-body: 'Geist', sans-serif;

  --ds-row-height: 42px;
  --ds-header-height: 42px;
  --ds-tab-height: 42px;
  --ds-topbar-height: 44px;
}

/* ── CHIPS / BADGES ─────────────────────────────────────── */
.ds-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.ds-chip-green {
  background: var(--ds-color-success-bg);
  color: var(--ds-color-success-text);
}

.ds-chip-amber {
  background: var(--ds-color-warning-bg);
  color: var(--ds-color-warning-text);
}

.ds-chip-red {
  background: var(--ds-color-danger-bg);
  color: var(--ds-color-danger-text);
}

.ds-chip-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.ds-chip-navy {
  background: #e6f2fb;
  color: var(--ds-color-primary);
}

.ds-chip-cyan {
  background: #e0f7fd;
  color: #0e7490;
}

.ds-chip-purple {
  background: #ede9fe;
  color: #6d28d9;
}

.ds-chip-grey {
  background: var(--ds-grey-200);
  color: var(--ds-grey-600);
}

.ds-chip--clickable {
  cursor: pointer;
  transition: opacity .15s, box-shadow .15s;
}
.ds-chip--clickable:hover {
  opacity: .82;
  box-shadow: 0 0 0 2px rgba(0,0,0,.12);
}

.ds-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
}

.ds-badge-red {
  background: var(--ds-color-danger-bg);
  color: var(--ds-color-danger-text);
}

.ds-badge-grey {
  background: var(--ds-grey-200);
  color: var(--ds-grey-500);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.ds-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--ds-radius-sm);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--ds-font-body);
  cursor: pointer;
  border: none;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
  text-decoration: none;
}

.ds-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.ds-btn-primary {
  background: var(--ds-color-primary);
  color: #fff;
  border: 1px solid var(--ds-color-primary-dark);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.ds-btn-primary:hover:not(:disabled) {
  background: var(--ds-color-primary-dark);
}

.ds-btn-secondary {
  background: #fff;
  color: var(--ds-grey-700);
  border: 1px solid var(--ds-grey-300);
}

.ds-btn-secondary:hover:not(:disabled) {
  background: var(--ds-grey-50);
  border-color: var(--ds-grey-400);
}

.ds-btn-ghost {
  background: transparent;
  color: var(--ds-grey-600);
  border: 1px solid transparent;
}

.ds-btn-ghost:hover:not(:disabled) {
  background: var(--ds-grey-100);
}

.ds-btn-danger {
  background: var(--ds-color-danger-bg);
  color: var(--ds-color-danger-text);
  border: 1px solid #fca5a5;
}

.ds-btn-danger:hover:not(:disabled) {
  background: #fecaca;
}

.ds-btn-sm {
  height: 26px;
  padding: 0 9px;
  font-size: 11px;
}

/* ── TAB BAR ─────────────────────────────────────────────── */
.ds-tab-bar {
  height: var(--ds-tab-height);
  background: #fff;
  border-bottom: 1px solid var(--ds-grey-200);
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  padding: 0 10px;
  gap: 2px;
  flex-shrink: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -ms-overflow-style: none;
}

.ds-tab-bar::-webkit-scrollbar {
  height: 4px;
}

.ds-tab-bar::-webkit-scrollbar-thumb {
  background: var(--ds-grey-200);
  border-radius: 2px;
}

.ds-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  height: 36px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--ds-grey-500);
  background: #f2f6fa;
  border: 1px solid var(--ds-grey-200);
  border-bottom: none;
  border-radius: 0;
  white-space: nowrap;
  transition: background .15s;
}

.ds-tab:hover {
  background: var(--ds-grey-200);
}

.ds-tab.active {
  background: var(--ds-color-primary-light);
  color: var(--ds-color-primary-dark);
  font-weight: 600;
  border-top: 3px solid var(--ds-color-primary);
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
  position: relative;
}

.ds-tab-close {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  color: var(--ds-grey-400);
  font-size: 12px;
  margin-left: 2px;
  line-height: 1;
}

.ds-tab-close:hover {
  background: var(--ds-grey-200);
  color: var(--ds-grey-700);
}

/* ── FILTER BAR ──────────────────────────────────────────── */
.ds-filter-bar {
  background: #fff;
  border: 1px solid var(--ds-grey-200);
  border-radius: var(--ds-radius-sm);
  margin: 8px 10px 0;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.ds-filter-input,
.ds-filter-select {
  height: 30px;
  border: 1px solid var(--ds-grey-300);
  border-radius: var(--ds-radius-sm);
  padding: 0 8px;
  font-size: 12px;
  font-family: var(--ds-font-body);
  color: var(--ds-grey-800);
  background: #fff;
  outline: none;
  transition: border-color .15s;
}

.ds-filter-input:focus,
.ds-filter-select:focus {
  border-color: var(--ds-color-accent);
}

.ds-filter-input.w-sm {
  width: 110px;
}

.ds-filter-input.w-md {
  width: 140px;
}

.ds-filter-input.w-date {
  width: 130px;
}

.ds-filter-sep {
  width: 1px;
  height: 20px;
  background: var(--ds-grey-200);
}

/* ── DATA GRID ───────────────────────────────────────────── */
.ds-grid-wrap {
  margin: 6px 10px 0;
  border: 1px solid var(--ds-grey-200);
  border-radius: var(--ds-radius-sm);
  background: #fff;
  overflow: auto;
}

.ds-grid-wrap::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.ds-grid-wrap::-webkit-scrollbar-thumb {
  background: var(--ds-grey-300);
  border-radius: 3px;
}

.ds-grid-wrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 5px;
  font-size: 12px;
}

.ds-grid-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ds-color-primary);
  color: #fff;
  padding: 0 12px;
  height: var(--ds-header-height);
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, .25);
  user-select: none;
}

.ds-grid-wrap thead th:first-child {
  border-radius: 4px 0 0 0;
}

.ds-grid-wrap thead th:last-child {
  border-radius: 0 4px 0 0;
  border-right: none;
}

.ds-grid-wrap tbody tr {
  background: #fff;
  box-shadow: var(--ds-shadow-card);
  cursor: pointer;
  transition: background .1s;
}

.ds-grid-wrap tbody tr:hover {
  background: #f5fbff;
}

.ds-grid-wrap tbody tr.ds-row-selected td:first-child {
  border-left: 3px solid var(--ds-color-accent);
}

.ds-grid-wrap tbody td {
  padding: 0 12px;
  height: var(--ds-row-height);
  vertical-align: middle;
  font-weight: 400;
  white-space: nowrap;
  border-top: 1px solid #dbe7f1;
  border-bottom: 1px solid #dbe7f1;
}

.ds-grid-wrap tbody td:first-child {
  border-left: 1px solid #dbe7f1;
  border-radius: 5px 0 0 5px;
}

.ds-grid-wrap tbody td:last-child {
  border-right: 1px solid #dbe7f1;
  border-radius: 0 5px 5px 0;
}

.ds-mono {
  font-family: var(--ds-font-mono);
  font-size: 11.5px;
}

.ds-flight-no {
  font-family: inherit !important;
  /* override Courier New — has no true bold variant */
  font-size: 13px;
  font-weight: 700 !important;
  color: var(--ds-color-primary);
}

/* ── FILTER CHIPS ────────────────────────────────────────── */
.ds-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--ds-grey-200);
  background: #fff;
  color: var(--ds-grey-600);
  transition: all .15s;
  white-space: nowrap;
}

.ds-filter-chip:hover {
  border-color: var(--ds-grey-400);
}

.ds-filter-chip.active {
  background: var(--ds-color-primary);
  color: #fff;
  border-color: var(--ds-color-primary);
}

.ds-filter-chip .chip-count {
  background: rgba(0, 0, 0, .12);
  border-radius: 8px;
  padding: 0 5px;
  font-size: 10px;
}

.ds-filter-chip.active .chip-count {
  background: rgba(255, 255, 255, .25);
}

/* ── AWB TOOLBAR ─────────────────────────────────────────── */
.ds-awb-toolbar {
  background: #fff;
  border: 1px solid var(--ds-grey-200);
  border-radius: var(--ds-radius-sm);
  margin: 6px 10px 0;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.ds-search-input {
  height: 28px;
  border: 1px solid var(--ds-grey-300);
  border-radius: var(--ds-radius-sm);
  padding: 0 10px;
  font-size: 12px;
  font-family: var(--ds-font-body);
  outline: none;
  width: 200px;
}

.ds-search-input:focus {
  border-color: var(--ds-color-accent);
}

/* ── KPI STRIP ───────────────────────────────────────────── */
/* minmax(0,1fr) lets all 7 columns share available width equally —
   no fixed minimum so the strip never overflows or wraps inside the card. */
.ds-kpi-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--ds-grey-50);
  border: 1px solid var(--ds-grey-200);
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.ds-kpi-item {
  padding: 5px 8px;
  border-right: 1px solid var(--ds-grey-200);
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
}

.ds-kpi-item:last-child {
  border-right: none;
}

.ds-kpi-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--ds-grey-400);
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds-kpi-value {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--ds-font-mono);
  color: var(--ds-grey-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds-kpi-value--green {
  color: var(--ds-color-success-text);
}

.ds-kpi-value--amber {
  color: var(--ds-color-warning-text);
}

.ds-kpi-value--red {
  color: var(--ds-color-danger-text);
}

.ds-kpi-value--navy {
  color: var(--ds-color-primary);
}

/* ── PAGINATION BAR ─────────────────────────────────────── */
.ds-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border-top: 1px solid var(--ds-grey-200);
  font-size: 12px;
  color: var(--ds-grey-500);
  flex-shrink: 0;
}

.ds-pg-info {
  min-width: 90px;
}

.ds-pg-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.ds-pg-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--ds-radius-sm);
  border: 1px solid var(--ds-grey-200);
  background: #fff;
  color: var(--ds-grey-500);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .15s, color .15s, border-color .15s;
}

.ds-pg-btn:hover:not([disabled]) {
  background: var(--ds-color-primary);
  color: #fff;
  border-color: var(--ds-color-primary);
}

.ds-pg-btn[disabled] {
  opacity: .4;
  cursor: not-allowed;
}

.ds-pg-num {
  padding: 0 8px;
  font-weight: 600;
  color: var(--ds-grey-800);
  min-width: 48px;
  text-align: center;
}

.ds-pg-size {
  height: 28px;
  border: 1px solid var(--ds-grey-200);
  border-radius: var(--ds-radius-sm);
  padding: 0 4px;
  font-size: 12px;
  color: var(--ds-grey-800);
  background: #fff;
  cursor: pointer;
}

.ds-pg-size-label {
  color: var(--ds-grey-400);
}

/* ── FLIGHT HEADER ───────────────────────────────────────── */
.ds-flight-header {
  background: #fff;
  border: 1px solid var(--ds-grey-200);
  border-radius: 6px;
  margin: 6px 8px;
  padding: 8px 14px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.ds-fh-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin-bottom: 4px;
}

.ds-fh-id {
  font-size: 16px;
  font-weight: 900;
  color: var(--ds-color-primary);
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
}

.ds-fh-id::before {
  content: "\2708\00A0";
  color: var(--ds-color-primary);
}

.ds-fh-route {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ds-fh-route-node {
  display: inline-block;
  background: var(--ds-color-primary);
  color: #fff;
  font-family: var(--ds-font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--ds-radius-sm);
  white-space: nowrap;
  min-width: 54px;
  text-align: center;
}

.ds-fh-route-arrow {
  color: var(--ds-grey-700);
  margin: 0 2px;
  display: inline-flex;
  align-items: center;
}

.ds-fh-route-arrow::before {
  content: "";
  display: inline-block;
  width: 42px;
  border-top: 2px dotted var(--ds-grey-400);
  vertical-align: middle;
  margin-right: 4px;
}

/* Meta items: two-line label + value */
.ds-fh-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
}

.ds-fh-meta-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ds-grey-400);
}

.ds-fh-meta-value {
  font-size: 12px;
  font-weight: 800;
  color: var(--ds-color-primary);
  font-family: var(--ds-font-mono);
}

/* Sep divider — aligns to row height automatically */
.ds-fh-sep {
  width: 1px;
  align-self: stretch;
  background: var(--ds-grey-200);
  flex-shrink: 0;
  margin: 4px 0;
}

.ds-fh-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
}

/* Compact buttons inside the header action bar */
.ds-fh-actions .ds-btn {
  height: 24px;
  padding: 0 7px;
  font-size: 10px;
  border-radius: 3px;
  white-space: nowrap;
}

.ds-fh-actions .ds-report-btn {
  height: 24px;
  padding: 0 7px;
  font-size: 10px;
  border-radius: 3px;
  white-space: nowrap;
}

/* At ≤1500px: action buttons drop to their own full-width row */
@media (max-width: 1500px) {
  .ds-fh-row { flex-wrap: wrap; gap: 8px; }
  .ds-fh-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}


/* ── STATUS STEPPER ──────────────────────────────────────── */
.ds-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.ds-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--ds-radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
  white-space: nowrap;
}

.ds-step--done {
  background: var(--ds-color-success-bg);
  color: var(--ds-color-success-text);
  border-color: #86efac;
}

.ds-step--active {
  background: var(--ds-color-accent);
  color: #fff;
  border-color: var(--ds-color-accent-dark);
}

.ds-step--pending {
  background: var(--ds-grey-100);
  color: var(--ds-grey-400);
  border-color: var(--ds-grey-200);
  cursor: default;
}

.ds-step-arrow {
  color: var(--ds-grey-300);
  font-size: 12px;
  padding: 0 4px;
}

/* ── MILESTONE TRACK — icon-based (FWB→RCS→MAN→DEP→ARR→DLV) ── */
/* Uses Icon-N-green/gray PNGs, consistent with Res Dashboard milestone icons  */
.ds-ms-track {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
}

/* Icon wrapper — stacks icon + label vertically, centred on the track axis */
.ds-ms-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
}

/* Current/next milestone — soft glow only */
.ds-ms-icon-wrap--current .ds-ms-icon {
  filter: drop-shadow(0 0 5px rgba(11, 66, 114, 0.55));
}

/* Dim pending icons */
.ds-ms-icon-wrap--pending .ds-ms-icon {
  opacity: 0.32;
}

.ds-ms-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
  /* Prevent browser image drag/tooltip black-box on hover */
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.ds-ms-icon-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .4px;
  color: var(--ds-grey-500);
  line-height: 1;
  white-space: nowrap;
}

.ds-ms-icon-wrap--done    .ds-ms-icon-label { color: var(--ds-color-success); }
.ds-ms-icon-wrap--current .ds-ms-icon-label { color: var(--ds-color-primary); font-weight: 800; }
.ds-ms-icon-wrap--pending .ds-ms-icon-label { color: var(--ds-grey-400); }

.ds-ms-line {
  flex: 1;
  height: 2px;
  min-width: 6px;
}

.ds-ms-line--done {
  background: var(--ds-color-success);
}

.ds-ms-line--pending {
  background: var(--ds-grey-200);
}

/* ── SECTOR JOURNEY ──────────────────────────────────────── */
.ds-sector-journey {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.ds-sector-node {
  font-family: var(--ds-font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--ds-grey-200);
  color: var(--ds-grey-600);
  white-space: nowrap;
  flex-shrink: 0;
}

.ds-sector-node--current {
  background: var(--ds-color-primary);
  color: #fff;
}

.ds-sector-node--current::before {
  content: '\2708\00A0';
}

.ds-sector-arrow {
  color: var(--ds-grey-400);
  font-size: 10px;
  flex-shrink: 0;
}

/* Keep sector column from collapsing — min-width fits "NBO → JNB" comfortably */
.ds-grid-wrap td:nth-child(4) {
  min-width: 120px;
}

/* ── AWB STATE BLOCK ─────────────────────────────────────── */
.ds-awb-state-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 180px;
  line-height: 1.1;
}

.ds-awb-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ds-color-primary);
}

.ds-awb-state-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  background: var(--ds-color-accent);
  flex-shrink: 0;
}

.ds-awb-current--done .ds-awb-state-icon {
  background: var(--ds-color-success);
}

.ds-awb-current--warning .ds-awb-state-icon {
  background: var(--ds-color-warning);
}

.ds-awb-current--danger .ds-awb-state-icon {
  background: var(--ds-color-danger);
}

.ds-awb-current--pending .ds-awb-state-icon {
  background: var(--ds-grey-400);
}

.ds-awb-state-time {
  color: var(--ds-grey-500);
  font-size: 10px;
  font-weight: 700;
}

.ds-awb-next {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ds-grey-500);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.ds-awb-next b {
  color: var(--ds-color-primary);
  background: var(--ds-color-primary-light);
  border: 1px solid #b9d6eb;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
}

.ds-awb-next--action {
  color: var(--ds-color-danger);
  font-weight: 900;
}

/* ── FWB STATUS ───────────────────────────────────────────── */
.ds-fwb-ok {
  color: var(--ds-color-success-text);
  font-weight: 700;
  font-size: 11px;
}

.ds-fwb-missing {
  color: var(--ds-color-danger-text);
  font-weight: 700;
  font-size: 11px;
}

.ds-fwb-error {
  color: var(--ds-color-warning-text);
  font-weight: 700;
  font-size: 11px;
}

/* FWB outbound sent — amber/blue tone to distinguish from received (green) */
.ds-fwb-sent {
  color: #0369a1;   /* sky-700 */
  font-weight: 700;
  font-size: 11px;
}

/* ── UTIL BAR ────────────────────────────────────────────── */
.ds-util-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ds-util-bar {
  width: 90px;
  height: 8px;
  background: var(--ds-grey-200);
  border-radius: 4px;
  overflow: hidden;
}

.ds-util-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .3s;
}

.ds-util-fill--low {
  background: var(--ds-color-success);
}

.ds-util-fill--mid {
  background: var(--ds-color-warning);
}

.ds-util-fill--high {
  background: var(--ds-color-danger);
}

/* ── MODALS ──────────────────────────────────────────────── */
.ds-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  /* No CSS animation — keeps ng-hide/ng-show instant so ngAnimate never holds
     the backdrop open between digest cycles, which would block all click events */
}

.ds-modal {
  background: #fff;
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow-modal);
  width: 520px;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ds-modal-lg {
  width: 680px;
}

.ds-modal-sm {
  width: 400px;
}

.ds-modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--ds-grey-200);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ds-modal-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-grey-800);
  flex: 1;
}

.ds-modal-close {
  width: 28px;
  height: 28px;
  border-radius: var(--ds-radius-sm);
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ds-grey-400);
  font-size: 16px;
  transition: all .15s;
}

.ds-modal-close:hover {
  background: var(--ds-grey-100);
  color: var(--ds-grey-700);
}

.ds-modal-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
}

.ds-modal-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--ds-grey-200);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ── FORM ELEMENTS ───────────────────────────────────────── */
.ds-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.ds-form-row-full {
  grid-template-columns: 1fr;
}

.ds-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ds-form-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ds-grey-600);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.ds-form-control {
  height: 32px;
  border: 1px solid var(--ds-grey-300);
  border-radius: var(--ds-radius-sm);
  padding: 0 10px;
  font-size: 12.5px;
  font-family: var(--ds-font-body);
  outline: none;
  transition: border-color .15s;
  background: #fff;
}

.ds-form-control:focus {
  border-color: var(--ds-color-accent);
}

textarea.ds-form-control {
  height: 68px;
  padding: 8px 10px;
  resize: vertical;
}

.ds-form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  cursor: pointer;
}

.ds-form-check input {
  width: 14px;
  height: 14px;
  accent-color: var(--ds-color-accent);
  cursor: pointer;
}

/* ── ALERT BOXES ─────────────────────────────────────────── */
.ds-info-box {
  background: var(--ds-color-info-bg);
  border: 1px solid var(--ds-color-info-border);
  border-radius: var(--ds-radius-sm);
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--ds-color-info-text);
}

.ds-warning-box {
  background: var(--ds-color-warning-bg);
  border: 1px solid #fcd34d;
  border-radius: var(--ds-radius-sm);
  padding: 10px 14px;
  margin-bottom: 12px;
}

.ds-warning-box h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--ds-color-warning-text);
  margin-bottom: 6px;
}

.ds-warning-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ds-color-warning-text);
  margin-bottom: 4px;
}

/* ── SECTION / DIVIDER ───────────────────────────────────── */
.ds-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ds-grey-500);
  margin-bottom: 8px;
}

.ds-divider {
  height: 1px;
  background: var(--ds-grey-200);
  margin: 12px 0;
}

/* ── ZERO / EMPTY STATE ──────────────────────────────────── */
.ds-zero-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ds-grey-400);
  padding: 48px 24px;
}

.ds-zero-state h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ds-grey-500);
}

.ds-zero-state p {
  font-size: 12px;
  text-align: center;
  max-width: 300px;
}

.ds-zero-state a {
  color: var(--ds-color-accent);
  cursor: pointer;
  text-decoration: underline;
}

/* ── LOADING ─────────────────────────────────────────────── */
.ds-loading-cell {
  text-align: center;
  padding: 40px;
  color: var(--ds-grey-400);
  font-size: 13px;
}

/* ── REPORT BUTTONS ──────────────────────────────────────── */
.ds-report-btn {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 7px;
  border-radius: var(--ds-radius-xs);
  border: 1px solid var(--ds-grey-300);
  background: #fff;
  color: var(--ds-color-primary);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--ds-font-body);
  cursor: pointer;
}

.ds-report-btn:hover {
  background: var(--ds-color-primary-light);
}

.ds-report-btn::before {
  margin-right: 4px;
  font-size: 10px;
}

.ds-report-booking::before {
  content: "📋";
}

.ds-report-offload::before {
  content: "⛔";
}

.ds-report-flown::before {
  content: "🛫";
}

.ds-report-cargo::before {
  content: "📦";
}

.ds-report-damage::before {
  content: "⚠";
}

.ds-report-print::before {
  content: "🖨";
}

/* ── AWB Grid Action Buttons (Milestone / Exception) ── */
.ds-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
  border: 1.5px solid;
}

.ds-action-btn--milestone {
  background: #eaf2fb;
  color: var(--ds-color-primary);
  border-color: #9db8ce;
}
.ds-action-btn--milestone:hover {
  background: var(--ds-color-primary);
  color: #fff;
  border-color: var(--ds-color-primary);
}

.ds-action-btn--exception {
  background: #fff8ec;
  color: #b45309;
  border-color: #f0c060;
}
.ds-action-btn--exception:hover {
  background: #d97706;
  color: #fff;
  border-color: #d97706;
}

.ds-action-btn--fwb {
  background: #e0f2fe;   /* sky-100 */
  color: #0369a1;        /* sky-700 */
  border-color: #7dd3fc; /* sky-300 */
}
.ds-action-btn--fwb:hover:not([disabled]) {
  background: #0369a1;
  color: #fff;
  border-color: #0369a1;
}
.ds-action-btn--fwb[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.ds-action-btn--resolve {
  background: #edfbf0;
  color: #166534;
  border-color: #86efac;
}
.ds-action-btn--resolve:hover {
  background: var(--ds-color-success);
  color: #fff;
  border-color: var(--ds-color-success);
}

/* ── PRINT ───────────────────────────────────────────────── */
@media print {

  .ds-tab-bar,
  .ds-filter-bar,
  .ds-awb-toolbar,
  .ds-fh-actions,
  .ds-modal-backdrop {
    display: none !important;
  }

  .ds-grid-wrap,
  .ds-flight-header {
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

/* ── FLIGHT OPS SHELL ────────────────────────────────────── */
.fo-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--ds-grey-50);
  overflow: hidden;
}

.fo-screen {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
}

/* ── RESPONSIVE BREAKPOINTS ──────────────────────────────── */
@media (max-width: 1200px) {
  .ds-filter-input.w-md {
    width: 120px;
  }

  .ds-filter-input.w-sm {
    width: 90px;
  }

  /* KPI strip uses minmax(0,1fr) — no min-width needed at any breakpoint */

  .ds-awb-state-block {
    min-width: 140px;
  }
}

@media (max-width: 900px) {
  .ds-kpi-strip {
    flex-wrap: wrap;
  }

  .ds-kpi-item {
    flex: 0 0 50%;
    border-bottom: 1px solid var(--ds-grey-200);
  }

  .ds-filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .ds-filter-input,
  .ds-filter-select {
    width: 100% !important;
  }

  .ds-fh-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .ds-stepper {
    flex-wrap: wrap;
  }
}

/* ── TAB CLOSE — easier hit target ──────────────────────── */
.ds-tab-close {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.ds-tab-close:hover {
  background: rgba(0, 0, 0, .12);
  color: var(--ds-grey-800);
}

/* ── AngularJS ng-show / ng-hide safety net ─────────────────── */
/* ── AngularJS ng-show / ng-hide safety net ─────────────────── */
.ng-hide:not(.ng-hide-animate) {
  display: none !important;
}

.fd-dashboard {
  --fm-brand-navy:#213569;
  --fm-brand-darkblue:#213469;
  --fm-brand-cyan:#33C1F1;
  --fm-brand-cyan-dark:#1da8d8;
  --fm-brand-grey:#707071;
  --fm-brand-silver:#B0B0B1;

  --fm-bg-app:#F1F5F9;
  --fm-bg-surface:#FFFFFF;
  --fm-bg-sunken:#F8FAFC;
  --fm-bg-active:#EFF9FE;
  --fm-bg-hover:#F1F5F9;

  --fm-border-default:#E2E8F0;
  --fm-border-subtle:#F1F5F9;

  --fm-text-strong:#0F172A;
  --fm-text-default:#334155;
  --fm-text-muted:#64748B;
  --fm-text-placeholder:#94A3B8;

  --fm-success-600:#16A34A; --fm-success-50:#F0FDF4; --fm-success-border:#BBF7D0;
  --fm-warning-600:#D97706; --fm-warning-500:#F59E0B; --fm-warning-50:#FFFBEB; --fm-warning-border:#FDE68A;
  --fm-danger-600:#DC2626;  --fm-danger-500:#EF4444;  --fm-danger-50:#FEF2F2;  --fm-danger-border:#FECACA;
  --fm-info-600:#2563EB;    --fm-info-500:#3B82F6;    --fm-info-50:#EFF6FF;    --fm-info-border:#BFDBFE;

  --fm-font-body:'Geist',sans-serif;
  --fm-font-mono:'Geist Mono',monospace;

  --fm-radius-sm:4px; --fm-radius-md:6px; --fm-radius-lg:8px;

  --fm-shadow-sm:0 1px 3px rgba(0,0,0,.06);
  --fm-shadow-md:0 4px 12px rgba(0,0,0,.08);

  --fm-topbar-h:56px;
  --fm-pagebar-h:52px;
  --fm-tabbar-h:40px;
  --fm-sidenav-w:240px;
  --fm-row-h:36px;
  --fm-header-h:40px;
}

.fd-dashboard {
  font-family: var(--fm-font-body);
  font-size: 13px;
  color: var(--fm-text-default);
  background: var(--fm-bg-app);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.fd-dashboard *, .fd-dashboard *::before, .fd-dashboard *::after {
  box-sizing: border-box;
}

.fd-dashboard .main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  height: 100%;
}

.fd-dashboard .topbar {
  height: var(--fm-topbar-h);
  background: var(--fm-bg-surface);
  border-bottom: 1px solid var(--fm-border-default);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  flex-shrink: 0;
}
.fd-dashboard .topbar-breadcrumb {
  font-size: 12px;
  color: var(--fm-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fm-font-body);
}
.fd-dashboard .topbar-breadcrumb a {
  color: var(--fm-brand-darkblue);
  text-decoration: none;
  font-weight: 600;
}
.fd-dashboard .topbar-breadcrumb a:hover {
  text-decoration: underline;
}
.fd-dashboard .topbar-spacer {
  flex: 1;
}
.fd-dashboard .topbar-meta {
  font-size: 12px;
  color: var(--fm-text-muted);
  font-family: var(--fm-font-body);
}
.fd-dashboard .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--fm-brand-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--fm-font-body);
  flex-shrink: 0;
}

.fd-dashboard .tab-bar {
  height: var(--fm-tabbar-h);
  background: var(--fm-bg-surface);
  border-bottom: 1px solid var(--fm-border-default);
  display: flex;
  align-items: flex-end;
  padding: 0 16px;
  gap: 2px;
  flex-shrink: 0;
  overflow-x: auto;
}
.fd-dashboard .tab-bar::-webkit-scrollbar {
  height: 3px;
}
.fd-dashboard .tab-bar::-webkit-scrollbar-thumb {
  background: var(--fm-border-default);
  border-radius: 2px;
}
.fd-dashboard .browser-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 34px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--fm-text-muted);
  border: 1px solid transparent;
  border-bottom: none;
  white-space: nowrap;
  transition: all .15s;
  background: var(--fm-bg-sunken);
  font-family: var(--fm-font-body);
}
.fd-dashboard .browser-tab:hover {
  color: var(--fm-text-default);
  background: var(--fm-border-default);
}
.fd-dashboard .browser-tab.active {
  background: var(--fm-bg-surface);
  color: var(--fm-brand-navy);
  border-color: var(--fm-border-default);
  font-weight: 600;
  position: relative;
}
.fd-dashboard .browser-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--fm-bg-surface);
}
.fd-dashboard .tab-close-btn {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--fm-text-muted);
  transition: all .15s;
  flex-shrink: 0;
}
.fd-dashboard .tab-close-btn:hover {
  background: var(--fm-border-default);
  color: var(--fm-text-strong);
}
.fd-dashboard .tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fm-brand-cyan);
  flex-shrink: 0;
}

.fd-dashboard .content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.fd-dashboard .screen {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}
.fd-dashboard .screen.active {
  display: flex;
}

.fd-dashboard .page-bar {
  height: var(--fm-pagebar-h);
  background: var(--fm-bg-surface);
  border-bottom: 1px solid var(--fm-border-default);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  flex-shrink: 0;
}
.fd-dashboard .page-bar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fm-text-strong);
  font-family: var(--fm-font-body);
}
.fd-dashboard .page-bar-sub {
  font-size: 12px;
  color: var(--fm-text-muted);
  font-family: var(--fm-font-body);
}
.fd-dashboard .page-bar-spacer {
  flex: 1;
}

.fd-dashboard .fm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--fm-radius-md);
  font-family: var(--fm-font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
  white-space: nowrap;
  line-height: 1;
}
.fd-dashboard .fm-btn--primary {
  background: var(--fm-brand-darkblue);
  color: #fff;
  border-color: var(--fm-brand-darkblue);
}
.fd-dashboard .fm-btn--primary:hover {
  background: #1a2b56;
}
order-color: var(--fm-border-default);
}

.fd-dashboard .fm-btn--ghost {
  background: transparent;
  color: var(--fm-text-muted);
  border-color: transparent;
}
.fd-dashboard .fm-btn--ghost:hover {
  background: var(--fm-bg-sunken);
  color: var(--fm-text-default);
}
.fd-dashboard .fm-btn--success {
  background: var(--fm-success-600);
  color: #fff;
  border-color: #15803D;
}
.fd-dashboard .fm-btn--success:hover {
  background: #15803D;
}
.fd-dashboard .fm-btn--danger {
  background: var(--fm-danger-50);
  color: var(--fm-danger-600);
  border-color: var(--fm-danger-border);
}
.fd-dashboard .fm-btn--danger:hover {
  background: #fecaca;
}
.fd-dashboard .fm-btn--sm {
  padding: 4px 10px;
  font-size: 11px;
}
.fd-dashboard .fm-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.fd-dashboard .filter-bar {
  background: var(--fm-bg-surface);
  border-bottom: 1px solid var(--fm-border-default);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.fd-dashboard .filter-input {
  height: 32px;
  border: 1px solid var(--fm-border-default);
  border-radius: var(--fm-radius-md);
  padding: 0 10px;
  font-size: 12px;
  font-family: var(--fm-font-body);
  color: var(--fm-text-strong);
  background: var(--fm-bg-surface);
  outline: none;
  transition: border .15s;
}
.fd-dashboard .filter-input:focus {
  border-color: var(--fm-brand-cyan);
}
.fd-dashboard .filter-select {
  height: 32px;
  border: 1px solid var(--fm-border-default);
  border-radius: var(--fm-radius-md);
  padding: 0 8px;
  font-size: 12px;
  font-family: var(--fm-font-body);
  color: var(--fm-text-strong);
  background: var(--fm-bg-surface);
  outline: none;
  cursor: pointer;
}
.fd-dashboard .filter-select:focus {
  border-color: var(--fm-brand-cyan);
}
.fd-dashboard .filter-sep {
  width: 1px;
  height: 20px;
  background: var(--fm-border-default);
  margin: 0 2px;
}
.fd-dashboard .toggle-group {
  display: flex;
  border: 1px solid var(--fm-border-default);
  border-radius: var(--fm-radius-md);
  overflow: hidden;
}
.fd-dashboard .toggle-btn {
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background: var(--fm-bg-surface);
  color: var(--fm-text-muted);
  border: none;
  font-family: var(--fm-font-body);
  transition: all .15s;
}
.fd-dashboard .toggle-btn.active {
  background: var(--fm-brand-darkblue);
  color: #fff;
}

.fd-dashboard .grid-wrap {
  flex: 1;
  overflow: auto;
}
.fd-dashboard .grid-wrap::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.fd-dashboard .grid-wrap::-webkit-scrollbar-thumb {
  background: var(--fm-border-default);
  border-radius: 3px;
}
.fd-dashboard table.fm-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.fd-dashboard table.fm-grid thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--fm-bg-sunken);
  padding: 0 10px;
  height: var(--fm-header-h);
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--fm-text-muted);
  border-bottom: 2px solid var(--fm-border-default);
  white-space: nowrap;
  user-select: none;
  font-family: var(--fm-font-body);
}
.fd-dashboard table.fm-grid thead th.sortable {
  cursor: pointer;
}
.fd-dashboard table.fm-grid thead th.sortable:hover {
  color: var(--fm-text-strong);
}
.fd-dashboard table.fm-grid thead th.num {
  text-align: right;
}
.fd-dashboard table.fm-grid tbody tr {
  border-bottom: 1px solid var(--fm-border-subtle);
  cursor: pointer;
  transition: background .1s;
}
.fd-dashboard table.fm-grid tbody tr:hover {
  background: var(--fm-bg-hover);
}
.fd-dashboard table.fm-grid tbody tr.selected {
  background: var(--fm-bg-active);
}
.fd-dashboard table.fm-grid tbody tr.selected td:first-child {
  border-left: 3px solid var(--fm-brand-cyan);
}
.fd-dashboard table.fm-grid td {
  padding: 0 10px;
  height: var(--fm-row-h);
  vertical-align: middle;
  white-space: nowrap;
  font-family: var(--fm-font-body);
}
.fd-dashboard table.fm-grid td.mono {
  font-family: var(--fm-font-mono);
  font-size: 11.5px;
}
.fd-dashboard table.fm-grid td.num {
  text-align: right;
  font-family: var(--fm-font-mono);
  font-size: 11.5px;
}
.fd-dashboard .sort-icon {
  font-size: 9px;
  margin-left: 3px;
  color: var(--fm-brand-silver);
}
.fd-dashboard .sort-asc .sort-icon::after {
  content: '▲';
  color: var(--fm-brand-darkblue);
}
.fd-dashboard .sort-desc .sort-icon::after {
  content: '▼';
  color: var(--fm-brand-darkblue);
}
.fd-dashboard th:not(.sort-asc):not(.sort-desc) .sort-icon::after {
  content: '⇅';
  color: var(--fm-brand-silver);
}

.fd-dashboard .fm-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  font-family: var(--fm-font-body);
}
.fd-dashboard .fm-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fd-dashboard .fm-chip--success {
  background: var(--fm-success-50);
  color: var(--fm-success-600);
  border: 1px solid var(--fm-success-border);
}
.fd-dashboard .fm-chip--warning {
  background: var(--fm-warning-50);
  color: var(--fm-warning-600);
  border: 1px solid var(--fm-warning-border);
}
.fd-dashboard .fm-chip--danger {
  background: var(--fm-danger-50);
  color: var(--fm-danger-600);
  border: 1px solid var(--fm-danger-border);
}
.fd-dashboard .fm-chip--info {
  background: var(--fm-info-50);
  color: var(--fm-info-500);
  border: 1px solid var(--fm-info-border);
}
.fd-dashboard .fm-chip--neutral {
  background: #F3F4F6;
  color: #374151;
  border: 1px solid #E5E7EB;
}
.fd-dashboard .fm-chip--brand {
  background: #EEF2FF;
  color: var(--fm-brand-darkblue);
  border: 1px solid #C7D2FE;
}
.fd-dashboard .fm-chip--air {
  background: var(--fm-info-50);
  color: #1D4ED8;
  border: 1px solid var(--fm-info-border);
  font-size: 10px;
}
.fd-dashboard .fm-chip--sea {
  background: var(--fm-success-50);
  color: #15803D;
  border: 1px solid var(--fm-success-border);
  font-size: 10px;
}
.fd-dashboard .fm-chip--truck {
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FED7AA;
  font-size: 10px;
}

.fd-dashboard .list-footer {
  background: var(--fm-bg-surface);
  border-top: 1px solid var(--fm-border-default);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.fd-dashboard .pagination {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}
.fd-dashboard .page-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--fm-border-default);
  border-radius: var(--fm-radius-sm);
  background: var(--fm-bg-surface);
  font-size: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--fm-text-muted);
  font-family: var(--fm-font-body);
}
.fd-dashboard .page-btn:hover {
  background: var(--fm-bg-sunken);
}
.fd-dashboard .page-btn.active {
  background: var(--fm-brand-darkblue);
  color: #fff;
  border-color: var(--fm-brand-darkblue);
}
.fd-dashboard .list-count {
  font-size: 12px;
  color: var(--fm-text-muted);
  margin-left: 8px;
  font-family: var(--fm-font-body);
}

.fd-dashboard .job-header {
  /*background: var(--fm-brand-darkblue);*/
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  flex-shrink: 0;
  color: white !important;
}
.fd-dashboard .job-header__field {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-right: none;
}
.fd-dashboard .job-header__field:first-child {
  padding-left: 0;
}
.fd-dashboard .job-header__label {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
  font-family: var(--fm-font-body);
}
.fd-dashboard .job-header__value {
  font-family: var(--fm-font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  height: 28px;
  box-sizing: border-box;
}
.fd-dashboard .job-header__value.plain {
  font-family: var(--fm-font-body);
}
.fd-dashboard .job-header__chips {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

/* Form controls styling in job-header */
.fd-dashboard .job-header__field input,
.fd-dashboard .job-header__field select {
  background: var(--fm-bg-surface);
  border: 1px solid var(--fm-border-default);
  border-radius: var(--fm-radius-sm);
  color: var(--fm-text-strong);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  height: 28px;
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.fd-dashboard .job-header__field input:focus,
.fd-dashboard .job-header__field select:focus {
  border-color: var(--fm-brand-cyan);
  box-shadow: 0 0 0 2px rgba(51, 193, 241, .15);
}

.fd-dashboard .job-header__field input:disabled,
.fd-dashboard .job-header__field select:disabled,
.fd-dashboard .job-header__field input[readonly] {
  background: rgba(255, 255, 255, 1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: black !important;
  opacity: 50% !important;
}

/* Autocomplete styles in job-header */
.fd-dashboard .job-header__field md-autocomplete,
.fd-dashboard .job-header__field ecw-autocomplete {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
}

.fd-dashboard .job-header__field md-autocomplete-wrap {
  box-shadow: none !important;
  background: transparent !important;
  height: 28px !important;
  border: none !important;
}

.fd-dashboard .job-header__field md-autocomplete input,
.fd-dashboard .job-header__field ecw-autocomplete input {
  background: var(--fm-bg-surface) !important;
  border: 1px solid var(--fm-border-default) !important;
  border-radius: var(--fm-radius-sm) !important;
  color: var(--fm-text-strong) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 4px 8px !important;
  height: 28px !important;
  box-sizing: border-box !important;
  outline: none !important;
  width: 100% !important;
  transition: border-color .15s, box-shadow .15s !important;
}

.fd-dashboard .job-header__field md-autocomplete input:focus,
.fd-dashboard .job-header__field ecw-autocomplete input:focus {
  border-color: var(--fm-brand-cyan) !important;
  box-shadow: 0 0 0 2px rgba(51, 193, 241, .15) !important;
}

.fd-dashboard .job-header__field md-autocomplete input:disabled,
.fd-dashboard .job-header__field ecw-autocomplete input:disabled {
  background: rgba(255, 255, 255, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #1e293b !important;
  cursor: not-allowed !important;
  opacity: 0.85 !important;
}

.fd-dashboard .detail-tabs {
  background: var(--fm-bg-surface);
  border-bottom: 1px solid var(--fm-border-default);
  padding: 0 20px;
  display: flex;
  gap: 0;
  flex-shrink: 0;
}
.fd-dashboard .detail-tab {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fm-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .15s;
  white-space: nowrap;
  font-family: var(--fm-font-body);
}
.fd-dashboard .detail-tab:hover {
  color: var(--fm-text-default);
}
.fd-dashboard .detail-tab.active {
  color: var(--fm-brand-navy);
  border-bottom-color: var(--fm-brand-navy);
}

.fd-dashboard .tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.fd-dashboard .tab-content::-webkit-scrollbar {
  width: 6px;
}
.fd-dashboard .tab-content::-webkit-scrollbar-thumb {
  background: var(--fm-border-default);
  border-radius: 3px;
}
.fd-dashboard .tab-pane {
  display: none;
}
.fd-dashboard .tab-pane.active {
  display: block;
}

.fd-dashboard .fm-card {
  background: var(--fm-bg-surface);
  border: 1px solid var(--fm-border-default);
  border-radius: var(--fm-radius-lg);
  overflow: hidden;
  box-shadow: var(--fm-shadow-sm);
}
.fd-dashboard .fm-card__header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--fm-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--fm-bg-sunken);
}
.fd-dashboard .fm-card__title {
  font-size: 11px;
  font-weight: 700;
  color: var(--fm-text-strong);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-family: var(--fm-font-body);
}
.fd-dashboard .fm-card__body {
  padding: 10px 16px;
}

.fd-dashboard .fm-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fd-dashboard .fm-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--fm-text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-family: var(--fm-font-body);
}
.fd-dashboard .fm-label__req {
  color: var(--fm-danger-500);
  margin-left: 2px;
}

.fd-dashboard .fm-input, .fd-dashboard .fm-select, .fd-dashboard .fm-textarea {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--fm-border-default);
  border-radius: var(--fm-radius-sm);
  font-family: var(--fm-font-body);
  font-size: 12px;
  color: var(--fm-text-strong);
  background: var(--fm-bg-surface);
  transition: border-color .15s;
  outline: none;
}
.fd-dashboard .fm-input:focus, .fd-dashboard .fm-select:focus, .fd-dashboard .fm-textarea:focus {
  border-color: var(--fm-brand-cyan);
  box-shadow: 0 0 0 2px rgba(51, 193, 241, .15);
}
.fd-dashboard .fm-input[readonly] {
  background: var(--fm-bg-sunken);
  color: var(--fm-text-muted);
  cursor: default;
}
.fd-dashboard .fm-textarea {
  resize: vertical;
  min-height: 72px;
}
.fd-dashboard .fm-input.mono {
  font-family: var(--fm-font-mono);
}
.fd-dashboard .fg-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fd-dashboard .fg-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.fd-dashboard .fg-4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px;
}

.fd-dashboard .booking-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.fd-dashboard .booking-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fd-dashboard .pricing-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.fd-dashboard .participant-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--fm-border-subtle);
}
.fd-dashboard .participant-row:last-child {
  border-bottom: none;
}
.fd-dashboard .participant-row__label {
  font-size: 10px;
  font-weight: 700;
  color: var(--fm-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  width: 88px;
  flex-shrink: 0;
  font-family: var(--fm-font-body);
}
.fd-dashboard .participant-row__input {
  flex: 1;
  padding: 5px 9px;
  border: 1px solid var(--fm-border-default);
  border-radius: var(--fm-radius-sm);
  font-size: 12px;
  font-family: var(--fm-font-body);
  color: var(--fm-text-strong);
  background: var(--fm-bg-surface);
  outline: none;
}
.fd-dashboard .participant-row__input:focus {
  border-color: var(--fm-brand-cyan);
}
.fd-dashboard .participant-row__addr-btn {
  padding: 5px 10px;
  border: 1px solid var(--fm-border-default);
  border-radius: var(--fm-radius-sm);
  background: var(--fm-bg-sunken);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--fm-text-muted);
  font-family: var(--fm-font-body);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all .15s;
}
.fd-dashboard .participant-row__addr-btn:hover {
  background: var(--fm-brand-navy);
  color: #fff;
  border-color: var(--fm-brand-navy);
}

.fd-dashboard .fm-grid-wrap {
  overflow-x: auto;
  border: 1px solid var(--fm-border-default);
  border-radius: var(--fm-radius-md);
}
.fd-dashboard .fm-inner-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.fd-dashboard .fm-inner-grid thead tr {
  background: var(--fm-bg-sunken);
}
.fd-dashboard .fm-inner-grid th {
  padding: 7px 10px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  color: var(--fm-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--fm-border-default);
  white-space: nowrap;
  font-family: var(--fm-font-body);
}
.fd-dashboard .fm-inner-grid th.num {
  text-align: right;
}
.fd-dashboard .fm-inner-grid td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--fm-border-subtle);
  color: var(--fm-text-default);
  vertical-align: middle;
  font-family: var(--fm-font-body);
}
.fd-dashboard .fm-inner-grid td.num {
  text-align: right;
  font-family: var(--fm-font-mono);
  font-size: 11px;
}
.fd-dashboard .fm-inner-grid td.mono {
  font-family: var(--fm-font-mono);
  font-size: 11px;
}
.fd-dashboard .fm-inner-grid tbody tr:last-child td {
  border-bottom: none;
}
.fd-dashboard .fm-inner-grid tbody tr:hover {
  background: var(--fm-bg-active);
}
.fd-dashboard .fm-inner-grid td input, .fd-dashboard .fm-inner-grid td select {
  padding: 3px 6px;
  border: 1px solid var(--fm-border-default);
  border-radius: 3px;
  font-size: 11px;
  font-family: var(--fm-font-body);
  background: var(--fm-bg-surface);
  outline: none;
}
.fd-dashboard .fm-inner-grid td input:focus, .fd-dashboard .fm-inner-grid td select:focus {
  border-color: var(--fm-brand-cyan);
}

.fd-dashboard .th-band-blue {
  background: #EBF8FE;
  color: #0369A1;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 5px 8px;
  border-bottom: 1px solid var(--fm-border-default);
  font-family: var(--fm-font-body);
}
.fd-dashboard .th-band-green {
  background: #F0FDF4;
  color: #15803D;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 5px 8px;
  border-bottom: 1px solid var(--fm-border-default);
  font-family: var(--fm-font-body);
}

.fd-dashboard .rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.fd-dashboard .rate-table th {
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--fm-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--fm-border-default);
  white-space: nowrap;
  text-align: right;
  font-family: var(--fm-font-body);
}
.fd-dashboard .rate-table th:first-child {
  text-align: left;
}
.fd-dashboard .rate-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--fm-border-subtle);
  font-family: var(--fm-font-mono);
  font-size: 11px;
  text-align: right;
}
.fd-dashboard .rate-table td:first-child {
  text-align: left;
  font-family: var(--fm-font-body);
  font-weight: 600;
  color: var(--fm-text-strong);
}
.fd-dashboard .rate-table tfoot td {
  font-weight: 700;
  background: var(--fm-bg-sunken);
  border-top: 2px solid var(--fm-border-default);
}

.fd-dashboard .fin-bar {
  background: var(--fm-bg-sunken);
  border: 1px solid var(--fm-border-default);
  border-radius: var(--fm-radius-md);
  padding: 12px 16px;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.fd-dashboard .fin-bar__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fd-dashboard .fin-bar__label {
  font-size: 10px;
  font-weight: 700;
  color: var(--fm-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-family: var(--fm-font-body);
}
.fd-dashboard .fin-bar__value {
  font-family: var(--fm-font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--fm-text-strong);
}
.fd-dashboard .fin-bar__value.positive {
  color: var(--fm-success-600);
}
.fd-dashboard .fin-bar__sep {
  width: 1px;
  height: 36px;
  background: var(--fm-border-default);
}

.fd-dashboard .action-bar {
  background: var(--fm-bg-surface);
  border-top: 1px solid var(--fm-border-default);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.fd-dashboard .action-bar__spacer {
  flex: 1;
}

.fd-dashboard .audit-badge {
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--fm-font-body);
}
.fd-dashboard .audit-badge--create {
  background: var(--fm-success-50);
  color: var(--fm-success-600);
  border: 1px solid var(--fm-success-border);
}
.fd-dashboard .audit-badge--update {
  background: var(--fm-info-50);
  color: var(--fm-info-600);
  border: 1px solid var(--fm-info-border);
}
.fd-dashboard .audit-badge--finalize {
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FED7AA;
}

.fd-dashboard .doc-upload-zone {
  border: 2px dashed var(--fm-border-default);
  border-radius: var(--fm-radius-md);
  padding: 32px;
  text-align: center;
  color: var(--fm-text-muted);
  background: var(--fm-bg-sunken);
}

.fd-dashboard .job-ref-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.fd-dashboard .job-ref-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fd-dashboard .job-ref-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--fm-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-family: var(--fm-font-body);
}
.fd-dashboard .job-ref-value {
  font-family: var(--fm-font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fm-text-strong);
}
.fd-dashboard .job-ref-value.plain {
  font-family: var(--fm-font-body);
}

.fd-dashboard .contact-panel {
  background: var(--fm-bg-sunken);
  border: 1px solid var(--fm-border-subtle);
  border-radius: var(--fm-radius-md);
  padding: 12px;
  margin-top: 10px;
}
.fd-dashboard .contact-panel__title {
  font-size: 10px;
  font-weight: 700;
  color: var(--fm-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
  font-family: var(--fm-font-body);
}

.fd-dashboard .create-banner {
  background: #EFF9FE;
  border-bottom: 2px solid var(--fm-brand-cyan);
  padding: 8px 20px;
  font-size: 12px;
  color: var(--fm-brand-darkblue);
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: var(--fm-font-body);
}
.fd-dashboard .create-banner.visible {
  display: flex;
}

/* Modals and Toasts (can be opened at body level, prefix with fd-) */
.fd-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .52);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.fd-modal-backdrop.open {
  display: flex;
}
.fd-modal {
  background: #ffffff;
  border-radius: var(--fm-radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
  width: 540px;
  max-width: 95vw;
  overflow: hidden;
}
.fd-modal-header {
  background: #213569;
  color: #fff;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fd-modal-title {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--fm-font-body);
}
.fd-modal-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, .65);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--fm-font-body);
}
.fd-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, .15);
}
.fd-modal-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.fd-modal-footer {
  padding: 11px 18px;
  border-top: 1px solid var(--fm-border-default);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: var(--fm-bg-sunken);
}

.fd-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--fm-text-strong);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--fm-radius-md);
  font-size: 12px;
  font-family: var(--fm-font-body);
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(8px);
  transition: all .25s;
  pointer-events: none;
}
.fd-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.fd-zero-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--fm-text-muted);
  padding: 40px;
}
.fd-zero-state h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--fm-text-muted);
  font-family: var(--fm-font-body);
}
.fd-zero-state p {
  font-size: 12px;
  text-align: center;
  max-width: 300px;
  font-family: var(--fm-font-body);
}

.addr-modal {
    border-radius: 8px;
    overflow: hidden;
    min-width: 700px;
}

.addr-modal .agent-content {
    padding: 20px;
    background: #ffffff;
}

.fm-field {
    display: flex;
    flex-direction: column;
    /*margin-bottom: 14px;*/
}

.fm-label {
    font-size: 12px;
    font-weight: 600;
    color: #6f7c91;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.fm-input {
    width: 100%;
    height: 26px;
    border: 1px solid #d8dee8;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
    color: #2d3748;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s ease;
}

.fm-input:focus {
    border-color: #3f51b5;
}

.fm-textarea {
    height: 80px;
    resize: none;
    padding-top: 10px;
    line-height: 20px;
}

.addr-modal .agent-content {
    padding: 15px;
}

.addr-modal .md-dummy-container {
    margin-bottom: 12px;
}

.addr-modal .md-dummy-container input {
    width: 100%;
    height: 40px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.addr-modal .md-dummy-container input:focus {
    border-color: #3f51b5;
}

.addr-modal .action-button {
    min-width: 100px;
}

.addr-modal .margin-left-auto {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.routing-datepicker {
    margin: 0;
    min-width: 125px;
}

.routing-datepicker .md-datepicker-input {
    width: 70px;
    padding: 2px 4px;
    font-size: 11px;
    border: none !important;
}

.routing-datepicker .md-datepicker-button {
    margin-left: auto;
}

/* Autocomplete Dropdown Min-Height fixes specifically for Forwarding Dashboard Participant Fields (Customer, Shipper, Consignee) */
/* Bypasses wrapper transclusion limitations by dynamically matching dropdown containers that contain our quick creation buttons */
.md-autocomplete-suggestions-container.md-not-found:not(.ng-hide):has(button[onmousedown*="createQuickCompany"]) {
    height: auto !important;
    min-height: 110px !important;
    max-height: 250px !important;
    overflow: visible !important;
    z-index: 99999 !important;
}
.md-autocomplete-suggestions-container.md-not-found:not(.ng-hide):has(button[onmousedown*="createQuickCompany"]) .md-virtual-repeat-scroller {
    height: auto !important;
    min-height: 110px !important;
    max-height: 250px !important;
    overflow: visible !important;
}
.md-autocomplete-suggestions-container.md-not-found:not(.ng-hide):has(button[onmousedown*="createQuickCompany"]) ul.md-autocomplete-suggestions {
    height: auto !important;
    min-height: 110px !important;
    overflow: visible !important;
    padding: 0 !important;
}
.md-autocomplete-suggestions-container.md-not-found:not(.ng-hide):has(button[onmousedown*="createQuickCompany"]) li {
    height: auto !important;
    min-height: 110px !important;
    padding: 0 !important;
    display: block !important;
}
.fwd-input-container {
    position: relative !important;
}
.fwd-input-container md-icon {
    position: absolute !important;
    right: 8px !important;
    left: auto !important;
    top: 52% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    z-index: 2 !important;
}
.fwd-input-container ecw-autocomplete input {
    padding-right: 28px !important;
}