.tr-move {
  --move-ink: #142947;
  --move-muted: #536986;
  --move-line: #dce6f3;
  --move-fill: #f3f7fd;
  --move-blue: #2454bb;
  --move-ease: cubic-bezier(.23, 1, .32, 1);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  color: var(--move-ink);
}
.tr-move-heading, .tr-move-roster, .tr-move-detail {
  min-width: 0;
  border: 1px solid var(--move-line);
  border-radius: 15px;
  background: white;
}
.tr-move-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 18px 20px;
}
.tr-move-heading h2 { margin: 0; font-size: clamp(23px, 2.5vw, 34px); line-height: 1.1; letter-spacing: -.035em; }
.tr-move-heading p { margin: 5px 0 0; color: var(--move-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tr-move-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.tr-move-actions label, .tr-move-search { display: grid; gap: 4px; font-size: 12px; color: var(--move-muted); }
.tr-move-actions button { min-height: 40px; }
.tr-move-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.tr-move-filters button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
  min-height: 52px;
  padding: 9px 14px;
  border: 1px solid var(--move-line);
  border-radius: 10px;
  background: #fff;
  color: var(--move-muted);
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}
.tr-move-filters button strong { color: var(--move-ink); font-size: 20px; font-variant-numeric: tabular-nums; }
.tr-move-filters button[aria-pressed="true"] { border-color: #9bb8f3; background: #eaf1fe; color: var(--move-blue); }
.tr-move-board { display: grid; grid-template-columns: minmax(215px,.7fr) minmax(0,1.8fr); gap: 14px; align-items: start; }
.tr-move-roster { padding: 12px; }
.tr-move-search { padding: 3px 3px 9px; font-weight: 600; }
.tr-move-search input { min-width: 0; width: 100%; min-height: 42px; background: var(--move-fill); }
.tr-move-roster ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.tr-move-roster button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 10px;
  justify-content: space-between;
  min-height: 54px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--move-ink);
  padding: 8px 9px;
  cursor: pointer;
  touch-action: manipulation;
}
.tr-move-roster button[aria-pressed="true"] { background: #edf4ff; border-color: #c8dbfa; }
.tr-move-roster-driver { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.tr-move-roster-driver > span, .tr-move-roster-state { color: var(--move-muted); font-size: 11px; }
.tr-move-roster-state { display: flex; gap: 5px; align-items: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-move-dot { width: 8px; height: 8px; border-radius: 50%; background: #7b8ca1; flex: none; }
.tr-move-dot[data-phase="active"] { background: #436fd1; }
.tr-move-dot[data-phase="done"] { background: #20845a; }
.tr-move-detail { overflow: hidden; scroll-margin-block-start: 12px; }
.tr-move-driver {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: #122e54;
  color: #fff;
}
.tr-move-driver > div {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  min-width: 0;
  padding: clamp(16px, 2.6vw, 34px);
}
.tr-move-driver h3 { color: #fff; margin: 0; font-size: clamp(20px, 2.5vw, 34px); line-height: 1.15; letter-spacing: -.025em; overflow-wrap: anywhere; }
.tr-move-driver a { color: #d3e5ff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tr-move-driver .driver-vehicle {
  display: grid;
  align-content: center;
  justify-items: center;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 10px 16px 14px;
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--move-ink);
  background: radial-gradient(ellipse at 53% 21%, #f8fbff 0%, #e8f0fa 66%, #d7e4f2 100%);
  isolation: isolate;
}
.tr-move-driver .driver-vehicle-image {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: 100%;
  min-height: 0;
  height: clamp(142px, 15vw, 218px);
  aspect-ratio: auto;
  overflow: hidden;
  background: transparent;
  mix-blend-mode: multiply;
}
.tr-move-driver .driver-vehicle-image img {
  display: block;
  width: auto;
  max-width: min(100%, 484px);
  height: auto;
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
  opacity: 1;
  mix-blend-mode: normal;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent),
    linear-gradient(0deg, transparent, #000 8%, #000 94%, transparent);
  mask-composite: intersect;
}
.tr-move-driver .driver-vehicle figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  width: 100%;
  max-width: 484px;
  min-width: 0;
  background: transparent;
  color: var(--move-ink);
  padding: 0;
  text-align: center;
}
.tr-move-driver .driver-vehicle figcaption strong {
  color: var(--move-ink);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.tr-move-driver .driver-vehicle-number {
  padding: 4px 7px;
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
.tr-move-badge { display: inline-block; padding: 4px 7px; border-radius: 6px; background: #e9eff7; color: #3c536e; font-size: 11px; font-weight: 650; line-height: 1.35; }
.tr-move-badge[data-phase="active"] { background: #e5efff; color: #1b50ae; }
.tr-move-badge[data-phase="done"] { background: #e6f5ed; color: #13623e; }
.tr-move-brief { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 14px; }
.tr-move-brief > div { min-width: 0; display: grid; align-content: start; gap: 5px; padding: 12px 13px; border-radius: 10px; background: var(--move-fill); overflow-wrap: anywhere; }
.tr-move-brief > div:only-child { grid-column: 1 / -1; }
.tr-move-brief span,.tr-move-brief small { color: var(--move-muted); font-size: 12px; }
.tr-move-brief strong { font-size: 15px; line-height: 1.3; }
.tr-move-itinerary > header { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 0 16px 10px; }
.tr-move-itinerary h4 { margin: 0; font-size: 16px; }
.tr-move-progress { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--move-muted); font-variant-numeric: tabular-nums; }
.tr-move-progress progress { width: clamp(48px, 9vw, 110px); height: 7px; accent-color: #268253; }
.tr-move-itinerary ol { list-style: none; margin: 0; padding: 0; }
.tr-move-itinerary li { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(85px,auto); gap: 10px; align-items: start; border-top: 1px solid #edf1f7; padding: 12px 16px; }
.tr-move-itinerary li[data-phase="active"] { background: #f2f7ff; }
.tr-move-stop-index { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #eaf0f8; color: var(--move-muted); font-size: 12px; font-weight: 650; }
.tr-move-itinerary li[data-phase="active"] .tr-move-stop-index { background: #dfeaff; color: var(--move-blue); }
.tr-move-itinerary li[data-phase="done"] .tr-move-stop-index { background: #e7f4ed; color: #176148; }
.tr-move-stop-text { min-width: 0; display: grid; gap: 3px; overflow-wrap: anywhere; }
.tr-move-stop-text span, .tr-move-stop-text p, .tr-move-stop-status small { font-size: 12px; line-height: 1.4; color: var(--move-muted); margin: 0; }
.tr-move-stop-text .tr-move-comment { padding: 6px 8px; background: #f8f3ea; border-radius: 6px; color: #624923; }
.tr-move-stop-status { min-width: 0; display: grid; gap: 4px; justify-items: end; text-align: right; overflow-wrap: anywhere; }
.tr-move-empty,.tr-move-error { margin: 0; padding: 14px; border-radius: 9px; color: var(--move-muted); background: #fff; }
.tr-move-error { background: #fff2ec; color: #963e28; }
.tr-move :is(button,input,a):focus-visible { outline: 2px solid #3970da; outline-offset: 2px; }
.tr-move :is(.tr-move-filters,.tr-move-roster) button { -webkit-user-select: none; user-select: none; }
.tr-move-filters button:active,.tr-move-roster button:active { background: #e3eeff; }

@media (hover: hover) and (pointer: fine) {
  .tr-move-filters button,.tr-move-roster button { transition: transform 135ms var(--move-ease); }
  .tr-move-filters button:not([aria-pressed="true"]):hover,
  .tr-move-roster button:not([aria-pressed="true"]):hover { background: var(--move-fill); }
  .tr-move-filters button:active:not(:focus-visible),
  .tr-move-roster button:active:not(:focus-visible) { transform: scale(.98); }
}
@media (max-width: 760px) {
  .tr-move-heading { padding: 13px; }
  .tr-move-board { grid-template-columns: minmax(0,1fr); }
  .tr-move-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tr-move-filters button { padding-inline: 9px; min-height: 44px; font-size: 12px; }
  .tr-move-filters button strong { font-size: 17px; }
  .tr-move-roster ul { max-height: 12rem; overflow-y: auto; overscroll-behavior: contain; padding: 2px 3px; }
  .tr-move-search input { font-size: 16px; }
}
@media (max-width: 490px) {
  .tr-move-driver { grid-template-columns: minmax(0,1fr); }
  .tr-move-driver > div { padding: 14px; }
  .tr-move-driver .driver-vehicle { padding: 6px 10px 12px; }
  .tr-move-driver .driver-vehicle-image { height: clamp(100px, 39vw, 152px); }
  .tr-move-driver .driver-vehicle figcaption strong { font-size: 13px; }
  .tr-move-brief { grid-template-columns: minmax(0,1fr); padding: 9px; }
  .tr-move-itinerary li { grid-template-columns: 26px minmax(0,1fr); padding: 10px; gap: 5px 7px; }
  .tr-move-stop-status { grid-column: 2; justify-items: start; text-align: left; }
  .tr-move-itinerary > header { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .tr-move :is(button,a) { transition: none; transform: none !important; }
}

.order-carrier-control .order-carrier-manual {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: end;
  margin: 3px 0;
}
.logistics-order-card > .order-carrier-control {
  padding: 12px 14px;
  margin: 10px;
  border: 1px solid #d8e4f3;
  border-radius: 10px;
  background: #f7faff;
}
.logistics-order-card > .order-carrier-control :is(.order-carrier-manual,.order-carrier-review) { max-width: 470px; }
.logistics-order-card > .order-carrier-control .order-carrier-upload { justify-self: start; }
.order-carrier-manual label { flex: 1 1 7.5rem; min-width: 0; display: grid; gap: 4px; font-size: 12px; }
.order-carrier-manual input { min-height: 40px; min-width: 0; width: 100%; }
.order-carrier-manual button { min-height: 40px; max-width: 100%; }
.order-carrier-comparison {
  display: grid;
  gap: 3px;
  margin: 3px 0;
  padding: 6px 8px;
  color: #31567f;
  background: #eef4fd;
  border-radius: 7px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.order-carrier-comparison[data-status="matched"] { color: #166444; background: #e6f5ec; }
.order-carrier-comparison[data-status="mismatch"],
.order-carrier-comparison[data-status="awaiting_confirmation"] { color: #844a10; background: #fff2df; }
@media (max-width: 660px) {
  .order-carrier-manual input { font-size: 16px; min-height: 44px; }
  .order-carrier-manual button { min-height: 44px; }
}
