/* Transfer Job Orders (Tour CSS moved to css/tour/) */
/* Transfer Job Orders */
.trjo-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #f5ecd8;
  border-bottom: 1px solid #d4c4a0;
}
.trjo-date-lbl { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 11px; }
.trjo-toggles { display: flex; flex-wrap: wrap; gap: 4px; }
.trjo-depfax-btn { white-space: nowrap; }
.trjo-search { max-width: 12rem; margin-left: auto; }
.trjo-section { margin: 0; }
.trjo-section-hd {
  font-weight: 700;
  letter-spacing: .04em;
  padding: 6px 10px;
  background: var(--ops-hd-bg, #0f9a8e);
  color: var(--ops-hd-fg, #fff);
  font-size: 11px;
}
.trjo-section-hd-assigned {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
}
.trjo-section-hd-title { flex: 0 1 auto; }
.trjo-group-bulk {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.trjo-bulk-btn {
  margin: 0;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 2px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}
.trjo-bulk-btn:hover,
.trjo-bulk-btn:focus-visible {
  background: rgba(255, 255, 255, .22);
  outline: none;
}
.trjo-section-hd-unassigned { background: #7c2d12; }
.trjo-driver-group { margin: 0; }
.trjo-driver-group + .trjo-driver-group {
  margin-top: 8px; /* gap before next driver group (6–10px) */
}
.trjo-driver-hd {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 10px;
  width: calc(100% - 16px);
  box-sizing: border-box;
  padding: 5px 10px;
  margin: 0 8px;
  background: #d9a01b; /* mustard-gold — operational group header */
  color: #111827;
  border: 0;
  border-radius: 2px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.trjo-driver-hd:hover,
.trjo-driver-hd:focus-visible {
  filter: brightness(1.04);
  outline: 2px solid #111827;
  outline-offset: 1px;
}
.trjo-driver-group.is-no-driver .trjo-driver-hd {
  background: #5d4037;
  color: #fff;
}
.trjo-driver-group.is-no-driver .trjo-driver-hd:hover,
.trjo-driver-group.is-no-driver .trjo-driver-hd:focus-visible {
  outline-color: #fff;
}
.trjo-driver-chevron {
  flex: 0 0 auto;
  width: 0.9rem;
  font-size: 10px;
  line-height: 1;
  opacity: .9;
}
.trjo-driver-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.2;
}
.trjo-driver-meta {
  flex: 0 1 auto;
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  opacity: .92;
  white-space: nowrap;
}
.trjo-driver-group.is-collapsed .trjo-driver-jobs {
  display: none;
}
.trjo-driver-jobs .trjo-car { margin-top: 6px; }
.trjo-car {
  border: 1px solid #b0b0b0;
  margin: 8px;
  background: #fff;
}
.transfer-job-orders-page {
  --job-identity-width: 5.75rem;
  --job-direction-width: 28px;
}
.trjo-job-hd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 8px;
  align-items: start;
  padding: 4px 6px;
  background: #b2ebf2;
}
.trjo-job-shell {
  --trjo-id-col: var(--job-identity-width);
  display: grid;
  grid-template-columns: var(--trjo-id-col) minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, auto);
  align-items: stretch;
}
.trjo-job-identity {
  grid-column: 1;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
  background: transparent;
  border-right: 1px solid #cfd8dc;
  min-width: 0;
}
.trjo-id-band {
  width: 100%;
  box-sizing: border-box;
  color: #fff;
  padding: 3px 6px;
}
.trjo-id-trj {
  background: var(--ops-hd-teal, #0f9a8e);
}
.trjo-id-pax.trjo-id-band {
  background: var(--ops-hd-teal-deep, #0d9488);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
}
.trjo-job-identity .trjo-jobid {
  font-size: 13px;
  margin: 0;
  line-height: 1.2;
}
.trjo-id-agent {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #111;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  padding: 4px 6px;
  min-width: 0;
  min-height: 0;
  width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
  margin: 0;
  align-self: stretch;
}
.trjo-job-hd-row {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem auto;
  gap: 4px 6px;
  align-items: end;
  padding: 3px 6px;
  background: #b2ebf2;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.trjo-job-meta-row {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem;
  align-items: stretch;
  min-width: 0;
}
.trjo-job-ops-body {
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
  background: #fff;
}
.trjo-pricing-reserve {
  min-height: 24px;
  background: rgba(255, 255, 255, .2);
  border: 1px dashed rgba(0, 0, 0, .14);
  border-radius: 2px;
}
.trjo-pricing-reserve-meta {
  background: rgba(0, 0, 0, .04);
  border-color: rgba(0, 0, 0, .1);
}
.trjo-meta-mode {
  font-weight: 800;
  color: #b71c1c;
}
.trjo-assign-band {
  display: grid;
  grid-template-columns: minmax(56px, .6fr) minmax(72px, .75fr) minmax(84px, .9fr) minmax(110px, 1.15fr) minmax(80px, .85fr);
  gap: 4px 6px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  align-items: end;
}
.trjo-assign-mobile {
  display: none;
}
.trjo-assign-desktop {
  display: contents;
}
.trjo-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 10px;
  font-weight: 700;
  margin: 0;
}
.trjo-field .lbl { opacity: .75; letter-spacing: .04em; }
.trjo-field-carid { min-width: 0; }
.trjo-combo { width: 100%; }
.trjo-combo .combo-input-wrap { width: 100%; }
.trjo-combo .control {
  width: 100%;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  white-space: normal;
  height: auto;
  min-height: var(--touch-min, 40px);
  line-height: 1.35;
  padding-top: 6px;
  padding-bottom: 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.trjo-combo-carid .control {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}
.trjo-readout {
  display: flex;
  align-items: center;
  min-height: var(--touch-min, 40px);
  padding: 6px 8px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #1a1a1a;
}
.trjo-readout.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}
.trjo-field-guide .control { font-size: 12px; font-weight: 500; }
.trjo-job-acts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
  justify-content: flex-start;
}
.trjo-job-ops-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trjo-job-acts .btn,
.trjo-line-acts .trjo-job-ops-stack .btn {
  width: 100%;
  min-width: 28px;
  justify-content: center;
}
.trjo-line-acts {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 2px 4px;
  gap: 2px;
}
.trjo-line-acts.is-empty {
  min-width: 2rem;
}
.trjo-m-side-acts {
  display: none;
}
.trjo-tariff-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  padding: 4px 10px;
  background: #ffe082;
  border-top: 1px solid #e0b840;
  font-size: 10px;
  font-weight: 700;
}
.trjo-job-meta-row .trjo-tariff-strip {
  border-top: 0;
}
.trjo-tbd { opacity: .65; font-weight: 600; border-bottom: 1px dashed #999; }
.trjo-line-legacy {
  display: flex;
  gap: 0;
  border-top: 1px solid #ddd;
  min-height: 0;
}
.trjo-line-assigned {
  border-top-color: #e8e8e8;
}
.trjo-job-ops-body .trjo-line-legacy:first-child {
  border-top: 0;
}
.trjo-dir {
  flex: 0 0 var(--job-direction-width, 28px);
  width: var(--job-direction-width, 28px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  color: #fff;
}
.trjo-dir.is-in { background: #2e7d32; }
.trjo-dir.is-out { background: #e65100; }
.trjo-dir.is-tr { background: #ef6c00; }
.trjo-line-body {
  flex: 1;
  padding: 4px 8px;
  font-size: 11px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trjo-line-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  align-items: baseline;
  min-width: 0;
}
.trjo-time {
  flex: 0 0 auto;
  color: #0d47a1;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.trjo-pax {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  color: #546e7a;
  white-space: nowrap;
}
.trjo-flight-slot {
  flex: 0 0 6.25rem;
  min-width: 6.25rem;
  font-size: 11px;
  font-weight: 600;
  color: #607d8b;
  white-space: nowrap;
  letter-spacing: .01em;
}
.trjo-flight-slot.is-empty {
  visibility: hidden;
}
.trjo-flight-time {
  font-weight: 600;
  color: #546e7a;
}
.trjo-loc-air-ico {
  opacity: .72;
  margin-right: 3px;
  font-size: 11px;
}
.trjo-loc-val.is-airport .trjo-loc-air-ico {
  color: #1565c0;
}
.trjo-guest-name {
  flex: 1 1 10rem;
  min-width: 0;
  font-weight: 700;
  font-size: 14px;
  color: #212121;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.trjo-line-body-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.trjo-line-body-stack .trjo-route-stack {
  border-top: 1px dotted rgba(0, 0, 0, .09);
  padding-top: 2px;
  margin-top: 1px;
}
.trjo-route-stack {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) minmax(0, max-content);
  grid-template-areas:
    "pupl pupv meta"
    "dopl dopv meta";
  column-gap: 8px;
  row-gap: 1px;
  align-items: baseline;
  min-width: 0;
}
.trjo-route-stack .pup { grid-area: pupl; }
.trjo-route-stack .dop { grid-area: dopl; }
.trjo-loc-val-pup { grid-area: pupv; }
.trjo-loc-val-dop { grid-area: dopv; }
.trjo-route-stack .trjo-refs {
  grid-area: meta;
  align-self: end;
  justify-self: end;
  text-align: right;
  max-width: 16rem;
}
.trjo-loc-val {
  font-weight: 700;
  font-size: 14px;
  color: #212121;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.trjo-loc-val-pup::before {
  content: "➜";
  margin-right: 5px;
  font-weight: 600;
  color: #90a4ae;
  font-size: 11px;
}
.trjo-loc-val-dop {
  padding-left: calc(11px + 5px);
}
.trjo-refs {
  margin-top: 0;
  font-size: 10px;
  line-height: 1.3;
  color: #78909c;
  overflow-wrap: anywhere;
}
.trjo-refs.is-empty { min-height: 0; }
.trjo-refs .mono { color: #607d8b; font-weight: 600; }
.trjo-mode-meta { font-weight: 600; opacity: .9; }
.pup { color: #1565c0; font-weight: 800; font-size: 11px; letter-spacing: .04em; }
.dop { color: #c62828; font-weight: 800; font-size: 11px; letter-spacing: .04em; }
.trjo-booking-remark {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 2px;
  padding-top: 3px;
  border-top: 1px dotted rgba(0, 0, 0, .12);
  min-width: 0;
}
.trjo-booking-remark.is-empty {
  padding-top: 2px;
  margin-top: 1px;
}
.trjo-booking-remark-lbl {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: #546e7a;
  white-space: nowrap;
  padding-top: 1px;
}
.trjo-booking-remark-face {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  border: 1px dashed transparent;
  background: transparent;
  padding: 0 2px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #263238;
  cursor: pointer;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.trjo-booking-remark.is-empty .trjo-booking-remark-face { color: #90a4ae; font-weight: 500; }
.trjo-booking-remark-face:hover,
.trjo-booking-remark-face:focus {
  border-color: rgba(0, 0, 0, .2);
  background: rgba(255, 255, 255, .7);
  outline: none;
}
.trjo-booking-remark-ico {
  flex-shrink: 0;
  opacity: .55;
  min-height: 22px;
  padding: 0 2px;
}
.trjo-booking-remark:hover .trjo-booking-remark-ico,
.trjo-booking-remark:focus-within .trjo-booking-remark-ico {
  opacity: 1;
}
.trjo-booking-remark-edit {
  flex: 1 1 auto;
  min-width: 8rem;
  box-sizing: border-box;
  resize: none;
  overflow: hidden;
  min-height: 22px;
  padding: 1px 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.trjo-booking-remark-edit[hidden],
.trjo-remark-edit[hidden] {
  display: none !important;
}
.trjo-remark-status {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #90a4ae;
  line-height: 1.2;
  padding-top: 2px;
  min-width: 0;
}
.trjo-remark-status:empty { display: none; }
.trjo-remark-status.is-saving { color: #90a4ae; }
.trjo-remark-status.is-saved { color: #2e7d32; }
.trjo-remark-status.is-failed { color: #c62828; }
.trjo-remark {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  background: #fffde7;
  border-top: 1px dotted rgba(0, 0, 0, .16);
  font-size: 11px;
}
.trjo-remark-lbl { flex-shrink: 0; font-weight: 700; white-space: nowrap; padding-top: 2px; }
.trjo-remark-face {
  flex: 1;
  min-width: 0;
  text-align: left;
  border: 1px dashed transparent;
  background: transparent;
  padding: 2px 4px;
  font: inherit;
  color: inherit;
  cursor: text;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.trjo-remark.is-empty .trjo-remark-face { color: #888; }
.trjo-remark-face:hover,
.trjo-remark-face:focus {
  border-color: #c9a227;
  background: #fff;
  outline: none;
}
.trjo-remark-edit {
  flex: 1;
  min-width: 0;
  resize: none;
  overflow: hidden;
  min-height: 22px;
  padding: 1px 4px;
  font-size: 11px;
  line-height: 1.35;
}
.trjo-unassigned {
  margin: 8px;
  border: 1px solid #b0b0b0;
  background: #fffaf5;
}
.trjo-unassigned .trjo-line-legacy { align-items: stretch; }
.trjo-line-unassigned {
  --trjo-unassigned-id-col: var(--job-identity-width);
}
.trjo-unassigned-id {
  flex: 0 0 var(--trjo-unassigned-id-col);
  width: var(--trjo-unassigned-id-col);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
  padding: 4px 3px;
  border-right: 1px solid #e0d5c8;
  background: #fff;
  min-width: 0;
}
.trjo-move-car-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid #2e7d32;
  border-radius: 4px;
  background: #e8f5e9;
  color: #1b5e20;
  cursor: pointer;
  flex-shrink: 0;
}
.trjo-move-car-btn:hover {
  background: #c8e6c9;
  border-color: #1b5e20;
}
.trjo-move-car-btn .btn-ico {
  width: 1.15rem;
  height: 1.15rem;
}
.trjo-unassigned-agent {
  margin-top: auto;
  padding: 2px 2px 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #111;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
}
.trjo-unassigned-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 4px;
  justify-content: flex-start;
  align-items: center;
}
.trjo-need-car { margin-top: 4px; font-size: 10px; }

/* Desktop operational density — do not apply to mobile touch layout */
@media (min-width: 901px) {
  .transfer-job-orders-page.legacy-ops {
    margin-top: -4px;
  }
  .transfer-job-orders-page .legacy-chrome-hd {
    padding: 4px 10px;
    font-size: 13px;
  }
  .transfer-job-orders-page .legacy-chrome-co { font-size: 11px; }
  .transfer-job-orders-page .legacy-chrome-bar {
    gap: 6px;
    padding: 3px 8px;
  }
  .transfer-job-orders-page .ops-subnav-legacy a,
  .transfer-job-orders-page .ops-subnav-legacy .ops-subnav-btn,
  .transfer-job-orders-page .legacy-exit {
    padding: 4px 8px;
    font-size: 11px;
    min-height: 28px;
  }
  .transfer-job-orders-page .trjo-filterbar {
    gap: 6px;
    padding: 3px 8px;
  }
  .transfer-job-orders-page .trjo-filterbar .btn-legacy,
  .transfer-job-orders-page .trjo-filterbar .legacy-toggle,
  .transfer-job-orders-page .trjo-filterbar .control {
    min-height: 28px;
    height: 28px;
    padding-top: 2px;
    padding-bottom: 2px;
    font-size: 11px;
  }
  .transfer-job-orders-page .trjo-date-lbl { font-size: 10px; }
  .transfer-job-orders-page .trjo-section-hd {
    padding: 3px 8px;
    font-size: 10px;
  }
  .transfer-job-orders-page .trjo-bulk-btn {
    padding: 1px 5px;
    font-size: 9px;
  }
  .transfer-job-orders-page .trjo-driver-group { margin: 0; }
  .transfer-job-orders-page .trjo-driver-group + .trjo-driver-group {
    margin-top: 6px;
  }
  .transfer-job-orders-page .trjo-driver-hd {
    padding: 3px 8px;
    margin: 0 4px;
    width: calc(100% - 8px);
    font-size: 10px;
    line-height: 1.25;
    gap: 4px 8px;
  }
  .transfer-job-orders-page .trjo-driver-name { font-size: 12px; }
  .transfer-job-orders-page .trjo-driver-meta { font-size: 10px; }
  .transfer-job-orders-page .trjo-driver-jobs .trjo-car { margin-top: 2px; }
  .transfer-job-orders-page .trjo-car {
    margin: 2px 4px;
  }
  .transfer-job-orders-page {
    --job-identity-width: 5.75rem;
    --job-direction-width: 22px;
  }
  .transfer-job-orders-page .trjo-job-shell {
    --trjo-id-col: var(--job-identity-width);
  }
  .transfer-job-orders-page .trjo-job-hd-row {
    gap: 3px 5px;
    padding: 2px 4px;
    grid-template-columns: minmax(0, 1fr) 4.75rem auto;
  }
  .transfer-job-orders-page .trjo-job-meta-row {
    grid-template-columns: minmax(0, 1fr) 4.75rem;
  }
  .transfer-job-orders-page .trjo-pricing-reserve {
    min-height: 22px;
  }
  .transfer-job-orders-page .trjo-jobid {
    font-size: 12px;
    margin-bottom: 0;
    line-height: 1.2;
  }
  .transfer-job-orders-page .trjo-job-identity {
    padding: 0;
    gap: 0;
  }
  .transfer-job-orders-page .trjo-id-band { padding: 2px 4px; }
  .transfer-job-orders-page .trjo-id-pax.trjo-id-band { font-size: 10px; }
  .transfer-job-orders-page .trjo-id-agent {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 4px;
    text-align: center;
    margin-top: 0;
  }
  .transfer-job-orders-page .trjo-job-idblock { font-size: 9px; line-height: 1.2; }
  .transfer-job-orders-page .trjo-assign-band {
    gap: 3px 5px;
    padding: 2px 4px;
    align-items: center;
  }
  .transfer-job-orders-page .trjo-field {
    flex-direction: row;
    align-items: center;
    gap: 3px;
    font-size: 9px;
  }
  .transfer-job-orders-page .trjo-field .lbl {
    flex: 0 0 auto;
    opacity: .8;
  }
  .transfer-job-orders-page .trjo-combo,
  .transfer-job-orders-page .trjo-readout,
  .transfer-job-orders-page .trjo-field-guide .control {
    flex: 1;
    min-width: 0;
  }
  .transfer-job-orders-page .trjo-combo .control,
  .transfer-job-orders-page .trjo-field-guide .control {
    min-height: 24px;
    height: 24px;
    padding: 0 4px;
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .transfer-job-orders-page .trjo-readout {
    min-height: 24px;
    height: 24px;
    padding: 0 4px;
    font-size: 11px;
    line-height: 1.15;
  }
  .transfer-job-orders-page .trjo-job-acts { gap: 2px; }
  .transfer-job-orders-page .trjo-job-acts .btn {
    min-height: 22px;
    padding: 0 2px;
  }
  .transfer-job-orders-page .trjo-tariff-strip {
    gap: 3px 6px;
    padding: 0 6px;
    font-size: 9px;
    line-height: 1.2;
    min-height: 16px;
  }
  .transfer-job-orders-page .trjo-line-legacy {
    min-height: 0;
  }
  .transfer-job-orders-page .trjo-dir {
    flex: 0 0 var(--job-direction-width);
    width: var(--job-direction-width);
    font-size: 10px;
    letter-spacing: .04em;
  }
  .transfer-job-orders-page .trjo-line-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 3px 6px;
    font-size: 11px;
    line-height: 1.3;
  }
  .transfer-job-orders-page .trjo-line-ops {
    gap: 2px 8px;
    flex-wrap: wrap;
  }
  .transfer-job-orders-page .trjo-time {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
  }
  .transfer-job-orders-page .trjo-pax {
    font-size: 11px;
    font-weight: 600;
  }
  .transfer-job-orders-page .trjo-flight-slot {
    flex-basis: 5.75rem;
    min-width: 5.75rem;
    font-size: 11px;
    font-weight: 600;
  }
  .transfer-job-orders-page .trjo-guest-name {
    font-size: 14px;
    line-height: 1.2;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-width: none;
  }
  .transfer-job-orders-page .trjo-route-stack {
    grid-template-columns: 2.2rem minmax(0, 1fr) minmax(0, max-content);
    column-gap: 6px;
    row-gap: 0;
    padding-top: 1px;
    margin-top: 0;
    border-top-color: rgba(0, 0, 0, .08);
  }
  .transfer-job-orders-page .trjo-loc-val {
    font-size: 13px;
    font-weight: 700;
  }
  .transfer-job-orders-page .pup,
  .transfer-job-orders-page .dop {
    font-size: 10px;
  }
  .transfer-job-orders-page .trjo-loc-val-dop {
    padding-left: calc(10px + 5px);
  }
  .transfer-job-orders-page .trjo-route-stack .trjo-refs {
    max-width: 14rem;
    font-size: 10px;
  }
  .transfer-job-orders-page .trjo-refs {
    margin-top: 0;
    font-size: 10px;
    line-height: 1.2;
    color: #90a4ae;
  }
  .transfer-job-orders-page .trjo-line-acts {
    padding: 2px 3px;
    align-items: stretch;
  }
  .transfer-job-orders-page .trjo-line-acts .trjo-job-ops-stack {
    gap: 1px;
  }
  .transfer-job-orders-page .trjo-line-acts .btn {
    min-height: 22px;
    padding: 0 2px;
  }
  .transfer-job-orders-page .trjo-remark {
    align-items: center;
    gap: 6px;
    padding: 0 6px;
    font-size: 10px;
    min-height: 18px;
    border-top-style: dotted;
    border-top-color: rgba(0, 0, 0, .1);
  }
  .transfer-job-orders-page .trjo-booking-remark {
    margin-top: 1px;
    padding-top: 2px;
  }
  .transfer-job-orders-page .trjo-booking-remark.is-empty {
    margin-top: 0;
    padding-top: 1px;
  }
  .transfer-job-orders-page .trjo-booking-remark-lbl {
    font-size: 9px;
    padding-top: 0;
  }
  .transfer-job-orders-page .trjo-booking-remark-face {
    font-size: 11px;
    line-height: 1.25;
  }
  .transfer-job-orders-page .trjo-booking-remark-ico {
    min-height: 20px;
  }
  .transfer-job-orders-page .trjo-booking-remark {
    align-items: center;
    flex-wrap: nowrap;
  }
  .transfer-job-orders-page .trjo-booking-remark-edit {
    min-height: 20px;
    font-size: 11px;
    padding: 1px 4px;
  }
  .transfer-job-orders-page .trjo-remark-status {
    font-size: 8px;
    padding-top: 1px;
  }
  .transfer-job-orders-page .trjo-remark-lbl { padding-top: 0; }
  .transfer-job-orders-page .trjo-remark-face {
    padding: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .transfer-job-orders-page .trjo-remark.is-long .trjo-remark-face {
    white-space: nowrap;
  }
  .transfer-job-orders-page .trjo-remark.is-long .trjo-remark-edit {
    white-space: normal;
  }
  .transfer-job-orders-page .trjo-remark-edit {
    min-height: 24px;
    padding: 1px 5px;
  }
  .transfer-job-orders-page .trjo-unassigned {
    margin: 2px 4px;
  }
  .transfer-job-orders-page .trjo-line-unassigned {
    --trjo-unassigned-id-col: var(--job-identity-width);
  }
  .transfer-job-orders-page .trjo-unassigned-id {
    padding: 2px 2px;
    gap: 2px;
  }
  .transfer-job-orders-page .trjo-move-car-btn {
    width: 1.65rem;
    height: 1.65rem;
  }
  .transfer-job-orders-page .trjo-move-car-btn .btn-ico {
    width: 1rem;
    height: 1rem;
  }
  .transfer-job-orders-page .trjo-unassigned-agent {
    font-size: 12px;
    font-weight: 700;
    padding: 1px 1px 0;
  }
  .transfer-job-orders-page .trjo-unassigned-actions {
    flex-direction: column;
    align-items: center;
    padding: 2px 3px;
    gap: 2px;
  }
  .transfer-job-orders-page .trjo-unassigned-actions .btn {
    min-height: 24px;
    padding: 0 3px;
  }
}

@media (max-width: 900px) {
  .legacy-ops { margin: 0; }
  .legacy-colbar { display: none; }
  .tb-program-hd {
    grid-template-columns: 6px 1fr;
  }
  .tb-mm, .tb-pa, .tb-pc, .tb-pi, .tb-pt { display: none; }
  .tb-col-show,
  .tb-col-create,
  .tb-col-cancel,
  .tb-col-jobid { display: none; }
  .tb-product { grid-column: 2; }
  .legacy-colbar-tb-detail { display: none; }
  .tb-detail-row {
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
    padding: 8px 10px 8px 14px;
  }
  .tb-bk { grid-column: 1 / -1; }
  .tb-guest { grid-column: 1 / -1; font-weight: 700; }
  .tb-hotel { grid-column: 1 / -1; }
  .tb-subagent { grid-column: 1 / -1; }
  .tb-jo {
    grid-column: 1 / -1;
    text-align: left;
    justify-self: stretch;
  }
  .tb-jo::before {
    content: "Job Order ID · ";
    font-weight: 700;
    font-family: inherit;
    color: #555;
  }
  .tjo-hd-legacy { grid-template-columns: 1fr; }
  .tjo-seg-blue { min-height: 40px; }
  .tjo-line {
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
    padding: 8px 10px;
  }
  .tjo-gear { display: none; }
  .tjo-time { font-size: 14px; }
  .tjo-loc,
  .tjo-names,
  .tjo-bk,
  .tjo-agent,
  .tjo-row-acts {
    grid-column: 1 / -1;
  }
  .tjo-names {
    -webkit-line-clamp: 3;
    font-weight: 700;
  }
  .trjo-search { margin-left: 0; max-width: none; width: 100%; }
  .trjo-job-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .trjo-job-identity {
    grid-column: 1;
    grid-row: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    border-right: 0;
    border-bottom: 1px solid #cfd8dc;
  }
  .trjo-id-band { flex: 1 1 auto; }
  .trjo-id-agent { flex: 1 1 100%; margin-top: 0; }
  .trjo-job-hd-row,
  .trjo-job-meta-row,
  .trjo-job-ops-body {
    grid-column: 1;
    grid-row: auto;
  }
  .trjo-job-hd-row {
    grid-template-columns: minmax(0, 1fr) 2rem !important;
    align-items: stretch;
    gap: 4px;
    padding: 4px 4px 4px 6px;
    position: relative;
  }
  .transfer-job-orders-page .trjo-job-hd-row {
    grid-template-columns: minmax(0, 1fr) 2rem;
    padding-right: 4px;
  }
  .trjo-pricing-reserve { display: none !important; }
  .trjo-job-meta-row {
    grid-template-columns: 1fr;
  }
  .trjo-assign-band {
    display: flex;
    flex-direction: column;
    gap: 2px;
    grid-template-columns: none;
    background: transparent;
    padding: 0;
    min-width: 0;
    width: 100%;
  }
  .trjo-assign-mobile {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    width: 100%;
    flex: 1 1 auto;
  }
  .trjo-assign-desktop {
    display: none;
  }
  .trjo-car.is-m-picking .trjo-assign-mobile {
    display: none;
  }
  .trjo-car.is-m-picking .trjo-assign-desktop {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    width: 100%;
    padding: 4px;
    background: #e0f7fa;
    border: 1px solid #80deea;
  }
  .trjo-car.is-m-picking .trjo-assign-desktop > .trjo-field {
    display: none;
  }
  .trjo-car.is-m-picking-car .trjo-assign-desktop > .trjo-field-carid {
    display: flex;
  }
  .trjo-car.is-m-picking-driver .trjo-assign-desktop > .trjo-field-driver {
    display: flex;
  }
  .trjo-car.is-m-picking-guide .trjo-assign-desktop > .trjo-field-guide {
    display: flex;
  }
  .trjo-m-assign {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 32px;
    max-height: 38px;
    margin: 0;
    padding: 4px 8px;
    border: 1px solid #cfd8dc;
    border-radius: 2px;
    background: #fff;
    text-align: left;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    color: #263238;
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;
  }
  .trjo-m-assign:hover,
  .trjo-m-assign:focus {
    border-color: #00838f;
    outline: none;
    background: #f7feff;
  }
  .trjo-m-assign.is-empty {
    color: #78909c;
    font-weight: 500;
  }
  .trjo-m-ico {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1;
  }
  .trjo-m-body {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .trjo-m-k {
    font-weight: 700;
    color: #546e7a;
  }
  .trjo-m-value {
    font-weight: 600;
  }
  .trjo-field-guide,
  .trjo-field-driver,
  .trjo-field-vehicle {
    grid-column: auto;
  }
  /* Desktop print/more hidden on mobile — side acts take the right column */
  .trjo-job-acts {
    display: none !important;
  }
  .trjo-m-side-acts {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    gap: 2px;
    width: 2rem;
    min-width: 2rem;
    align-self: stretch;
  }
  .trjo-m-side-btn {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 2px;
    background: rgba(255, 255, 255, .65);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .trjo-m-side-btn .btn-ico {
    width: 14px;
    height: 14px;
  }
  .trjo-line-ops {
    gap: 4px 8px;
  }
  .trjo-time {
    font-size: 17px;
  }
  .trjo-guest-name {
    flex: 1 1 100%;
  }
  .trjo-route-stack {
    grid-template-columns: 2.4rem minmax(0, 1fr);
    grid-template-areas:
      "pupl pupv"
      "dopl dopv"
      "meta meta";
  }
  .trjo-route-stack .trjo-refs {
    justify-self: start;
    text-align: left;
    max-width: none;
  }
  .trjo-readout.mono {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .trjo-job-acts { justify-content: flex-end; }
  /* Mobile Unassigned: compact identity row — icon + agent side-by-side, no tall empty cell */
  .trjo-line-unassigned {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
  }
  .trjo-unassigned-id {
    flex: 0 0 auto;
    width: auto;
    max-width: 5.5rem;
    min-height: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 3px 4px;
    border-right: 1px solid #e0d5c8;
  }
  .trjo-move-car-btn {
    width: 1.75rem;
    height: 1.75rem;
    align-self: center;
  }
  .trjo-move-car-btn .btn-ico {
    width: 1rem;
    height: 1rem;
  }
  .trjo-unassigned-agent {
    margin-top: 0;
    flex: 0 1 auto;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
    padding: 0;
    text-align: left;
  }
  .trjo-unassigned .trjo-dir {
    flex: 0 0 22px;
    width: 22px;
    align-self: stretch;
    font-size: 10px;
  }
  .trjo-unassigned .trjo-line-body {
    padding: 3px 6px;
  }
  .trjo-unassigned .trjo-time {
    font-size: 16px;
  }
  .trjo-unassigned .trjo-guest-name {
    flex: 1 1 100%;
    font-size: 13px;
  }
  .trjo-unassigned .trjo-booking-remark {
    margin-top: 1px;
    padding-top: 2px;
  }
  .trjo-unassigned .trjo-booking-remark.is-empty:not(.is-editing) {
    margin: 0;
    padding: 0;
    border-top: 0;
    max-height: 1.15rem;
    overflow: hidden;
  }
  .trjo-unassigned .trjo-booking-remark-face {
    font-size: 11px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .trjo-unassigned .trjo-booking-remark-ico {
    display: none;
  }
  .trjo-unassigned-actions {
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 2px 3px;
    align-self: flex-start;
  }
}

/* Prototype Mobile toggle — same Unassigned density without relying on viewport width */
html.force-mobile .trjo-line-unassigned {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
}
html.force-mobile .trjo-unassigned-id {
  flex: 0 0 auto;
  width: auto;
  max-width: 5.5rem;
  min-height: 0;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 3px 4px;
  border-right: 1px solid #e0d5c8;
}
html.force-mobile .trjo-move-car-btn {
  width: 1.75rem;
  height: 1.75rem;
  align-self: center;
}
html.force-mobile .trjo-move-car-btn .btn-ico {
  width: 1rem;
  height: 1rem;
}
html.force-mobile .trjo-unassigned-agent {
  margin-top: 0;
  flex: 0 1 auto;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  padding: 0;
  text-align: left;
}
html.force-mobile .trjo-unassigned .trjo-dir {
  flex: 0 0 22px;
  width: 22px;
  align-self: stretch;
  font-size: 10px;
}
html.force-mobile .trjo-unassigned .trjo-line-body {
  padding: 3px 6px;
}
html.force-mobile .trjo-unassigned .trjo-time {
  font-size: 16px;
}
html.force-mobile .trjo-unassigned .trjo-guest-name {
  flex: 1 1 100%;
  font-size: 13px;
}
html.force-mobile .trjo-unassigned .trjo-booking-remark {
  margin-top: 1px;
  padding-top: 2px;
}
html.force-mobile .trjo-unassigned .trjo-booking-remark.is-empty:not(.is-editing) {
  margin: 0;
  padding: 0;
  border-top: 0;
  max-height: 1.15rem;
  overflow: hidden;
}
html.force-mobile .trjo-unassigned .trjo-booking-remark-face {
  font-size: 11px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html.force-mobile .trjo-unassigned .trjo-booking-remark-ico {
  display: none;
}
html.force-mobile .trjo-unassigned-actions {
  flex-direction: column;
  flex-wrap: nowrap;
  padding: 2px 3px;
  align-self: flex-start;
}
html.force-mobile .trjo-route-stack {
  grid-template-columns: 2.4rem minmax(0, 1fr);
  grid-template-areas:
    "pupl pupv"
    "dopl dopv"
    "meta meta";
  column-gap: 6px;
  row-gap: 1px;
}
html.force-mobile .trjo-route-stack .trjo-refs {
  justify-self: start;
  text-align: left;
  max-width: none;
}
html.force-mobile .trjo-guest-name {
  flex: 1 1 100%;
}
html.force-mobile .trjo-unassigned .trjo-loc-val-dop {
  padding-left: 0;
}

/* Assigned jobs — 3-line assignment summary under prototype Mobile toggle */
html.force-mobile .trjo-job-shell {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}
html.force-mobile .trjo-job-identity {
  grid-column: 1;
  grid-row: auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  border-right: 0;
  border-bottom: 1px solid #cfd8dc;
}
html.force-mobile .trjo-id-band { flex: 1 1 auto; }
html.force-mobile .trjo-id-agent { flex: 1 1 100%; margin-top: 0; }
html.force-mobile .trjo-job-hd-row,
html.force-mobile .trjo-job-meta-row,
html.force-mobile .trjo-job-ops-body {
  grid-column: 1;
  grid-row: auto;
}
html.force-mobile .trjo-job-hd-row {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 2rem;
  align-items: stretch;
  gap: 4px;
  padding: 4px 4px 4px 6px;
}
html.force-mobile .transfer-job-orders-page .trjo-job-hd-row {
  grid-template-columns: minmax(0, 1fr) 2rem;
  padding-right: 4px;
}
html.force-mobile .trjo-pricing-reserve { display: none !important; }
html.force-mobile .trjo-job-meta-row { grid-template-columns: 1fr; }
html.force-mobile .trjo-assign-band {
  display: flex;
  flex-direction: column;
  gap: 2px;
  grid-template-columns: none;
  background: transparent;
  padding: 0;
  min-width: 0;
  width: 100%;
}
html.force-mobile .trjo-assign-mobile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
}
html.force-mobile .trjo-assign-desktop {
  display: none;
}
html.force-mobile .trjo-car.is-m-picking .trjo-assign-mobile {
  display: none;
}
html.force-mobile .trjo-car.is-m-picking .trjo-assign-desktop {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
  padding: 4px;
  background: #e0f7fa;
  border: 1px solid #80deea;
}
html.force-mobile .trjo-car.is-m-picking .trjo-assign-desktop > .trjo-field {
  display: none;
}
html.force-mobile .trjo-car.is-m-picking-car .trjo-assign-desktop > .trjo-field-carid {
  display: flex;
}
html.force-mobile .trjo-car.is-m-picking-driver .trjo-assign-desktop > .trjo-field-driver {
  display: flex;
}
html.force-mobile .trjo-car.is-m-picking-guide .trjo-assign-desktop > .trjo-field-guide {
  display: flex;
}
html.force-mobile .trjo-m-assign {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 32px;
  max-height: 38px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #cfd8dc;
  border-radius: 2px;
  background: #fff;
  text-align: left;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: #263238;
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
}
html.force-mobile .trjo-m-assign.is-empty {
  color: #78909c;
  font-weight: 500;
}
html.force-mobile .trjo-m-ico {
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1;
}
html.force-mobile .trjo-m-body {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.force-mobile .trjo-m-k {
  font-weight: 700;
  color: #546e7a;
}
html.force-mobile .trjo-job-acts {
  display: none !important;
}
html.force-mobile .trjo-m-side-acts {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  gap: 2px;
  width: 2rem;
  min-width: 2rem;
  align-self: stretch;
}
html.force-mobile .trjo-m-side-btn {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 2px;
  background: rgba(255, 255, 255, .65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
html.force-mobile .trjo-m-side-btn .btn-ico {
  width: 14px;
  height: 14px;
}

/* ——— Print scope menu (desktop popover + mobile sheet) ——— */
.trjo-print-menu {
  position: fixed;
  z-index: 12000;
  min-width: 280px;
  max-width: min(360px, calc(100vw - 16px));
  max-height: min(70vh, 420px);
  overflow: auto;
  padding: 6px 0;
  margin: 0;
  border: 1px solid #90a4ae;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(38, 50, 56, .22);
}
.trjo-print-menu-group {
  padding: 8px 12px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #607d8b;
  text-transform: uppercase;
}
.trjo-print-menu-group:not(:first-child) {
  margin-top: 4px;
  border-top: 1px solid #eceff1;
  padding-top: 10px;
}
.trjo-print-menu-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #263238;
  cursor: pointer;
  box-sizing: border-box;
}
.trjo-print-menu-item:hover:not(:disabled),
.trjo-print-menu-item:focus-visible:not(:disabled) {
  background: #e3f2fd;
  outline: none;
}
.trjo-print-menu-item.is-disabled,
.trjo-print-menu-item:disabled {
  color: #90a4ae;
  cursor: not-allowed;
  opacity: .85;
}
.trjo-print-menu-label {
  line-height: 1.25;
}
.trjo-print-menu-hint {
  font-size: 11px;
  font-weight: 500;
  color: #78909c;
  line-height: 1.2;
}
.trjo-print-sheet {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: -4px 0;
}
.trjo-print-sheet .trjo-print-menu-group {
  padding-left: 4px;
  padding-right: 4px;
}
.trjo-print-sheet .trjo-print-menu-item {
  padding: 10px 8px;
  border-radius: 4px;
  min-height: 40px;
}
.trjo-print-preview-dl {
  display: grid;
  gap: 6px 12px;
  margin: 0;
}
.trjo-print-preview-dl > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}
.trjo-print-preview-dl dt {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #607d8b;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.trjo-print-preview-dl dd {
  margin: 0;
  font-size: 13px;
  color: #263238;
}
/* Mobile: Print sits above ops in side rail — light separator */
html.force-mobile .trjo-m-side-btn[data-trjo-print-job],
.trjo-m-side-btn[data-trjo-print-job] {
  flex: 0 0 auto;
  min-height: 28px;
  margin-bottom: 2px;
  background: rgba(227, 242, 253, .9);
}

/* ——— ALL FOR THIS DRIVER — print sheet preview ——— */
.trjo-driver-print-layer {
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: flex;
  flex-direction: column;
  background: #eceff1;
  overflow: auto;
}
.trjo-dprint-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 8px 12px;
  background: #263238;
  color: #fff;
}
.trjo-dprint-toolbar-lead {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.trjo-dprint-toolbar-lead .muted { color: #b0bec5; font-size: 12px; }
.trjo-dprint-toolbar-acts { display: flex; gap: 8px; flex-shrink: 0; }
.trjo-dprint-doc {
  width: min(210mm, 100% - 24px);
  margin: 12px auto 24px;
  padding: 12px 14px 18px;
  background: #fff;
  color: #111;
  border: 1px solid #cfd8dc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  font-size: 11px;
  line-height: 1.35;
  box-sizing: border-box;
}
.trjo-dprint-doc-hd {
  border-bottom: 2px solid #111;
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.trjo-dprint-doc-hd h1 {
  margin: 0;
  font-size: 16px;
  letter-spacing: .04em;
  font-weight: 800;
}
.trjo-dprint-co {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
}
.trjo-dprint-ctx {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 6px;
  font-size: 11px;
}
.trjo-dprint-empty {
  padding: 24px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #455a64;
}
.trjo-dprint-job {
  border: 1px solid #90a4ae;
  margin: 0 0 8px;
  break-inside: avoid;
  page-break-inside: avoid;
}
.trjo-dprint-job-hd {
  padding: 4px 6px;
  background: #eceff1;
  border-bottom: 1px solid #b0bec5;
}
.trjo-dprint-job-id {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  font-weight: 700;
}
.trjo-dprint-job-id .mono { font-size: 12px; }
.trjo-dprint-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin-top: 3px;
  font-size: 10px;
}
.trjo-dprint-job-meta em {
  font-style: normal;
  font-weight: 700;
  color: #546e7a;
  margin-right: 3px;
}
.trjo-dprint-line {
  padding: 4px 6px;
  border-top: 1px solid #eceff1;
}
.trjo-dprint-line:first-child { border-top: 0; }
.trjo-dprint-line-ops {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}
.trjo-dprint-dir {
  display: inline-block;
  min-width: 2.2rem;
  padding: 1px 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  border: 1px solid #111;
  letter-spacing: .03em;
}
.trjo-dprint-dir.is-in { background: #2e7d32; }
.trjo-dprint-dir.is-out { background: #c62828; }
.trjo-dprint-dir.is-tr { background: #ef6c00; }
.trjo-dprint-time {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.trjo-dprint-pax { font-weight: 700; font-size: 10px; }
.trjo-dprint-flight { font-size: 10px; }
.trjo-dprint-guest {
  flex: 1 1 10rem;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}
.trjo-dprint-route {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 1px 6px;
  margin-top: 2px;
  align-items: start;
}
.trjo-dprint-loc-lbl {
  font-size: 9px;
  font-weight: 800;
  color: #546e7a;
  letter-spacing: .04em;
}
.trjo-dprint-loc {
  min-width: 0;
  overflow-wrap: anywhere;
}
.trjo-dprint-refs {
  margin-top: 2px;
  font-size: 10px;
  color: #455a64;
}
.trjo-dprint-bk-remark,
.trjo-dprint-job-remark {
  margin-top: 3px;
  padding: 2px 0 0;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.trjo-dprint-job-remark {
  padding: 4px 6px;
  border-top: 1px dashed #90a4ae;
  background: #fffde7;
}
.trjo-dprint-rk {
  font-weight: 800;
  margin-right: 4px;
}

/* ——— ARRIVAL LIST (Airport Rep) — print sheet (Legacy-like) ——— */
.trjo-aprint-doc {
  width: min(297mm, 100% - 16px);
  font-size: 10px;
  font-family: Arial, Helvetica, sans-serif;
  color: #000;
}
.trjo-aprint-doc-hd {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 8px;
  border-bottom: 0;
  padding-bottom: 0;
}
.trjo-aprint-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.trjo-aprint-date {
  text-align: center;
}
.trjo-aprint-date-box {
  display: inline-block;
  border: 1px solid #000;
  padding: 3px 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.trjo-aprint-co {
  text-align: right;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.trjo-aprint-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid #000;
}
.trjo-aprint-table th,
.trjo-aprint-table td {
  border: 1px solid #000;
  padding: 2px 4px;
  vertical-align: middle;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
}
.trjo-aprint-table thead {
  display: table-header-group;
}
.trjo-aprint-table thead th {
  background: #b7dfb9;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  text-transform: none;
  letter-spacing: 0;
  padding: 4px 3px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.trjo-aprint-th-sub {
  display: block;
  font-weight: 700;
  font-size: 10px;
}
.trjo-aprint-flight-hd td {
  background: #fff59d;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 6px;
  letter-spacing: .01em;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.trjo-aprint-r1 td,
.trjo-aprint-r2 td {
  background: #fff;
  font-size: 10px;
}
.trjo-aprint-time,
.trjo-aprint-flight,
.trjo-aprint-pax,
.trjo-aprint-car,
.trjo-aprint-trf {
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.trjo-aprint-time { font-weight: 700; width: 4.2rem; }
.trjo-aprint-flight { font-weight: 700; width: 5.5rem; }
.trjo-aprint-pax { font-weight: 700; width: 3.2rem; }
.trjo-aprint-hotel,
.trjo-aprint-guest,
.trjo-aprint-driver {
  font-weight: 700;
  text-transform: uppercase;
}
.trjo-aprint-agent { font-size: 9.5px; }
.trjo-aprint-empty { background: #fff; }
.trjo-aprint-remark-row td {
  background: #fff9c4;
  font-size: 10px;
  padding: 3px 6px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.trjo-aprint-remark-row.is-empty td {
  background: #fffde7;
  height: 1.1em;
}
.trjo-aprint-rk-main {
  color: #1b5e20;
  font-weight: 700;
}
.trjo-aprint-rk-hotel {
  color: #bf360c;
  font-weight: 700;
}
body.is-trjo-printing {
  overflow: hidden;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }
  @page trjo-arrival {
    size: A4 landscape;
    margin: 8mm;
  }
  body.is-trjo-printing:has(#trjo-arrival-print-layer) .trjo-aprint-doc {
    page: trjo-arrival;
  }
  body.is-trjo-printing {
    overflow: visible !important;
    background: #fff !important;
  }
  body.is-trjo-printing .app-shell,
  body.is-trjo-printing .bottom-nav,
  body.is-trjo-printing .proto-sheet,
  body.is-trjo-printing .nav-backdrop,
  body.is-trjo-printing .proto-backdrop,
  body.is-trjo-printing #ui-modal,
  body.is-trjo-printing #trjo-print-menu {
    display: none !important;
  }
  .trjo-driver-print-layer {
    position: static !important;
    inset: auto !important;
    background: #fff !important;
    overflow: visible !important;
  }
  .trjo-dprint-toolbar,
  [data-no-print] {
    display: none !important;
  }
  .trjo-dprint-doc {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .trjo-dprint-job {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .trjo-aprint-flight-hd {
    break-after: avoid;
    page-break-after: avoid;
  }
  .trjo-aprint-r1 {
    break-inside: avoid;
    page-break-inside: avoid;
    break-after: avoid;
    page-break-after: avoid;
  }
  .trjo-aprint-table thead th,
  .trjo-aprint-flight-hd td,
  .trjo-aprint-remark-row td,
  .trjo-aprint-rk-main,
  .trjo-aprint-rk-hotel {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .trjo-dprint-dir.is-in,
  .trjo-dprint-dir.is-out,
  .trjo-dprint-dir.is-tr {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}