.rescue-entry-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
#dialog:is([data-kind="dispatch-picker"], [data-kind="dispatch-complete"]) {
  width: min(94vw, 764px, calc(100% - var(--phone-left, 0px) - var(--phone-right, 0px)));
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.dispatch-brief { margin-block: 0 12px; color: #435c68; font-size: 13px; line-height: 1.4; }
.dispatch-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.dispatch-list-single { grid-template-columns: minmax(0, 1fr); }
.dispatch-contract { display: grid; grid-template-rows: auto 1fr auto auto; align-items: start; gap: 8px; min-width: 0; padding: 12px; border: 1px solid #749b96; border-radius: 11px; background: #eff6ed; }
.dispatch-contract[data-dispatch="relay"] { border-color: #7f9da1; background: #ebf4f5; }
.dispatch-contract-head { display: flex; align-items: center; gap: 8px; }
.dispatch-contract-head > [data-icon] { width: 38px; height: 38px; border-radius: 8px; background: #f8e4b5; color: #725735; font-size: 19px; }
.dispatch-contract[data-dispatch="relay"] .dispatch-contract-head > [data-icon] { background: #c9ece0; color: #365f61; }
.dispatch-contract h3 { margin: 0; color: #263d46; font-size: 17px; }
.dispatch-contract-head b { display: block; color: #263d46; font-size: 15px; }
.dispatch-contract-head span { color: #465e63; font-size: 11px; font-weight: 750; }
.dialog-content .dispatch-contract p { margin: 0; color: #415960; font-size: 12px; line-height: 1.45; }
.dispatch-contract > button { grid-row: 4; justify-self: stretch; min-height: 44px; }
.dispatch-atlas { color: #203f47; }
.dispatch-atlas-head, .dispatch-atlas-head b, .dispatch-atlas-head > span, .dispatch-free {
  display: flex;
  align-items: center;
  gap: 7px;
}
.dispatch-atlas-head {
  justify-content: space-between;
  margin-bottom: 9px;
  padding-bottom: 6px;
  border-bottom: 1px solid #c8c5ac;
}
.dispatch-atlas-head b { font-size: 16px; }
.dispatch-atlas-head [data-icon] { color: #916735; }
.dispatch-atlas-head > span { color: #50605c; font-size: 12px; }
.dispatch-atlas-head strong, .dispatch-route-copy small { font-variant-numeric: tabular-nums; }
.dispatch-atlas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dispatch-route-card {
  display: grid;
  grid-template-columns: 36% minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  min-height: 91px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #899c8e;
  border-radius: 9px;
  background: #fbf8e9;
  color: #233f49;
  box-shadow: 0 2px #c4c7b4;
  text-align: start;
}
.dispatch-route-chart { display: block; width: 100%; height: 100%; min-width: 0; background: #26555e; }
.dispatch-route-copy { display: grid; align-content: center; gap: 4px; padding: 8px 9px; min-width: 0; }
.dispatch-route-copy strong { font-size: 18px; font-weight: 900; line-height: 1.15; }
.dispatch-route-copy > span { color: #445651; font-size: 12px; line-height: 1.3; }
.dispatch-route-copy small {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #665c50;
  font-size: 11px;
  font-weight: 750;
}
.dispatch-route-copy small i { width: 8px; height: 8px; border: 1px dashed currentColor; border-radius: 50%; }
.dispatch-route-copy small [data-icon] { width: 13px; height: 13px; background: none; }
.dispatch-route-card[data-recorded] { border-color: #548579; }
.dispatch-route-card[data-recorded] small { color: #285d50; }
.dispatch-free, .dispatch-next-route {
  min-height: 44px;
  border: 1px solid #8daba2;
  border-radius: 8px;
  background: #e9efe1;
  color: #2c514d;
}
.dispatch-free { justify-content: flex-start; width: 100%; margin-top: 8px; padding: 5px 12px; }
.dispatch-free b { font-size: 14px; }
.dispatch-free > span:not([data-icon]) { color: #4d625c; font-size: 12px; }
.dispatch-free > [data-icon]:last-child { margin-inline-start: auto; }
:is(.dispatch-route-card,.dispatch-free,.dispatch-next-route):focus-visible { outline: 3px solid #216f65; outline-offset: 1px; }
:is(.dispatch-route-card,.dispatch-free,.dispatch-next-route):active { box-shadow: none; background: #e1ebd7; }
@media (hover: hover) {
  :is(.dispatch-route-card,.dispatch-free,.dispatch-next-route):hover { border-color: #365f56; background: #e5eddd; }
}
.dispatch-map-plan, .dispatch-map-step { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #2d515c; }
.dispatch-map-step { padding: 5px 7px; border: 1px solid #95b8b0; border-radius: 7px; background: #e4f5ed; }
.dispatch-record { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: #415d53; font-size: 11px; }
.dispatch-record b { font-variant-numeric: tabular-nums; }
.dispatch-consignment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; color: #213e45; }
.dispatch-receipt-head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(85px, 150px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #c3c7b3;
}
.dispatch-receipt-head .dispatch-route-chart { width: 100%; height: auto; border-radius: 6px; }
#dialog .dispatch-receipt-head p { margin: 0 0 2px; color: #4c655c; font-size: 12px; }
#dialog .dispatch-receipt-head h2 { margin: 0; color: #24474b; font-size: clamp(24px, 3vw, 36px); line-height: 1.12; }
.dispatch-receipt-head small { color: #50655e; font-size: 11px; font-weight: 700; }
.dispatch-receipt-times { display: grid; align-content: start; gap: 5px; margin: 0; }
.dispatch-receipt-times > div { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.dispatch-receipt-times dt { font-size: 12px; color: #52645c; }
.dispatch-receipt-times dd { margin: 0; font-size: 17px; font-weight: 850; font-variant-numeric: tabular-nums; }
.dispatch-receipt-times > div:first-child dd { color: #235d54; font-size: 26px; }
.dispatch-receipt-times .dispatch-pace { display: block; padding-top: 4px; border-top: 1px dashed #b8c1ac; }
.dispatch-pace dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.dispatch-pace dd { font-size: 11px; color: #475f54; }
.dispatch-arrivals { padding-left: 14px; border-left: 1px solid #c4cbb7; }
.dispatch-arrivals header, .dispatch-cart-line, .dispatch-arrival-details { display: flex; align-items: center; gap: 5px; }
.dispatch-arrivals header { justify-content: space-between; margin-bottom: 7px; }
.dispatch-arrivals h3 { margin: 0; color: #294a4a; font-size: 15px; }
.dispatch-arrivals header > span { display: flex; align-items: center; gap: 3px; color: #576358; font-size: 10px; }
.dispatch-arrivals header i, .dispatch-arrival-track em {
  background: repeating-linear-gradient(120deg, #f6da97 0 2px, #795e3d 2px 3.5px);
}
.dispatch-arrivals header i { width: 12px; height: 7px; border: 1px solid #917d5a; }
.dispatch-arrivals ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dispatch-arrival { --cart-ink: #b26d46; }
.dispatch-arrival[data-bank="east"] { --cart-ink: #42877d; }
.dispatch-cart-line b { color: #273f46; font-size: 13px; }
.dispatch-cart-line small, .dispatch-cart-line > span, .dispatch-arrival-details small { color: #50615e; font-size: 11px; white-space: nowrap; }
.dispatch-cart-line > span { margin-inline-start: auto; }
.dispatch-cart-line strong { font-variant-numeric: tabular-nums; color: #243f42; }
.dispatch-arrival-track { flex: 1; display: block; height: 6px; border-radius: 2px; background: #e0e3d3; }
.dispatch-arrival-track i { display: block; height: 100%; min-width: 2px; box-shadow: inset -2px 0 #2c4445; background: var(--cart-ink); }
.dispatch-arrival-track em { display: block; height: 100%; margin-left: auto; }
.dispatch-receipt-notes { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #5c543a; font-size: 12px; font-weight: 750; }
.dispatch-receipt-notes span { display: inline-flex; align-items: center; gap: 4px; }
.dispatch-next-route { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 10px; text-align: left; }
.dispatch-next-route span:not([data-icon]) { color: #53665a; font-size: 11px; }
.dispatch-next-route b { margin-inline-start: auto; font-size: 15px; }
#dialog[data-kind="dispatch-complete"] .dialog-actions button { min-height: 44px; }
@media (orientation: portrait) and (max-width: 480px) {
  .rescue-entry-actions { justify-content: flex-start; }
  .dispatch-list { grid-template-columns: minmax(0, 1fr); }
  .dispatch-atlas-grid, .dispatch-consignment { grid-template-columns: minmax(0, 1fr); }
  .dispatch-route-card { min-height: 76px; }
  .dispatch-arrivals { padding: 8px 0 0; border: 0; border-top: 1px solid #c4cbb7; }
  .dispatch-receipt-head { grid-template-columns: 102px minmax(0,1fr); gap: 10px; }
}
@media (orientation: landscape) and (max-height: 420px) {
  .dispatch-contract { padding: 8px 10px; gap: 6px; }
  .dispatch-brief { margin-bottom: 8px; }
  #dialog:is([data-kind="dispatch-picker"],[data-kind="dispatch-complete"]) .dialog-content { padding: 9px 14px; }
  #dialog[data-kind="dispatch-picker"] h2 { margin-bottom: 4px; font-size: 26px; }
  .dispatch-atlas-head { justify-content: flex-start; gap: 12px; padding-bottom: 3px; margin-bottom: 5px; }
  .dispatch-atlas-head b { font-size: 14px; }
  .dispatch-atlas-grid { gap: 6px; }
  .dispatch-route-card { grid-template-columns: 31% minmax(0,1fr); min-height: 62px; }
  .dispatch-route-copy { padding: 4px 7px; gap: 2px; }
  .dispatch-route-copy strong { font-size: 15px; }
  .dispatch-route-copy > span { font-size: 11px; }
  .dispatch-free { margin-top: 6px; }
  #dialog[data-kind="dispatch-complete"] .dialog-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
  }
  .dispatch-consignment {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 6px 14px;
  }
  .dispatch-receipt-head { grid-column: 1; grid-row: 1; grid-template-columns: 70px minmax(0,1fr); gap: 7px; padding-bottom: 5px; }
  #dialog .dispatch-receipt-head p, .dispatch-receipt-head small { font-size: 10px; }
  #dialog .dispatch-receipt-head h2 { font-size: 20px; }
  .dispatch-receipt-times { grid-column: 1; grid-row: 2; gap: 1px; }
  .dispatch-receipt-times dd { font-size: 14px; }
  .dispatch-receipt-times > div:first-child dd { font-size: 19px; }
  .dispatch-arrivals { grid-column: 2; grid-row: 1 / 3; align-self: center; padding: 2px 0 2px 12px; }
  .dispatch-receipt-notes { justify-content: flex-end; }
  #dialog[data-kind="dispatch-complete"] .dialog-actions { margin: 2px 0 0; }
  #dialog[data-kind="dispatch-complete"] .result-activity-footer { align-self: end; margin: 0; padding: 0; border: 0; }
  #dialog[data-kind="dispatch-complete"] .result-activity-link { min-height: 44px; }
}
@media (orientation: landscape) and (max-height: 310px) {
  #dialog:is([data-kind="dispatch-picker"], [data-kind="dispatch-complete"]) .dialog-content { padding-block: 6px; }
}
