.vehicle-location-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  min-height: 36px;
  margin: 8px 0 2px;
  padding: 7px 11px;
  border: 1px solid #d9b86f;
  border-radius: 9px;
  background: #fffaf0;
  color: #6d4a13;
  font: 700 13px/1.2 inherit;
  cursor: pointer;
}

.vehicle-location-pill b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-location-pill .vehicle-location-pin-icon {
  display: block;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vehicle-location-pill i {
  margin-left: auto;
  font-style: normal;
}

.vehicle-location-pill:hover {
  border-color: #b9872f;
  background: #fff6e3;
}

.vehicle-location-pill.is-home-location {
  border-color: #9fbd96;
  background: #e5f3e2;
  color: #3f6b38;
}

.vehicle-location-pill.is-home-location:hover {
  border-color: #86aa7c;
  background: #dcefd8;
}

.vehicle-location-desktop-row-entry {
  display: none;
}

.vehicle-location-open {
  overflow: hidden;
}

.vehicle-location-modal-shell[hidden] {
  display: none !important;
}

.vehicle-location-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 12px;
}

.vehicle-location-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(54, 68, 82, .42);
  backdrop-filter: blur(3px);
}

.vehicle-location-modal {
  position: relative;
  box-sizing: border-box;
  width: min(440px, 100%);
  max-width: 100%;
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #dfe4e8;
  background: #f5f7f9;
  color: #172332;
  box-shadow: 0 24px 70px rgba(27, 43, 56, .28);
}

.vehicle-location-modal header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #dfe4e8;
  background: #fff;
  color: #172332;
}

.vehicle-location-modal header h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}

.vehicle-location-modal header p {
  margin: 7px 0 0;
  color: #5b6d82;
  font-size: 11px;
}

.vehicle-location-modal header button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef2f3;
  color: #20303d;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.vehicle-location-modal nav {
  display: flex;
  gap: 18px;
  padding: 0 16px;
  border-bottom: 1px solid #d9dee3;
  background: #fff;
}

.vehicle-location-modal nav button {
  min-height: 42px;
  padding: 0 1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #647184;
  font: 700 13px/1 inherit;
  cursor: pointer;
}

.vehicle-location-modal nav button.active {
  border-color: #8b662d;
  color: #7b5416;
}

.vehicle-location-modal main {
  max-height: calc(100dvh - 136px);
  overflow: auto;
  padding: 16px;
  background: #f5f7f9;
}

.vehicle-location-current {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 12px;
  border-radius: 9px;
  background: #eff1f1;
  color: #122435;
}

.vehicle-location-current span {
  color: #647184;
  font-size: 11px;
}

.vehicle-location-current strong {
  font-size: 16px;
  line-height: 1.2;
}

.vehicle-location-current small {
  color: #68788b;
  font-size: 11px;
}

.vehicle-location-help {
  margin: 12px 0;
  color: #66758a;
  font-size: 11px;
}

.vehicle-location-form {
  display: grid;
  gap: 9px;
}

.vehicle-location-form label {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  color: #172332;
}

.vehicle-location-form label > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.vehicle-location-form input,
.vehicle-location-form select,
.vehicle-location-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #cfd7df;
  border-radius: 7px;
  background: #fff;
  color: #142536;
  font: inherit;
}

.vehicle-location-form input[type="datetime-local"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.vehicle-location-form input[type="datetime-local"]::-webkit-date-and-time-value,
.vehicle-location-form input[type="datetime-local"]::-webkit-datetime-edit,
.vehicle-location-form input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
  min-width: 0;
  padding: 0;
}

.vehicle-location-step {
  overflow: hidden;
  border: 1px solid #d9e1e8;
  border-radius: 8px;
  background: #fff;
  color: #172332;
}

.vehicle-location-step > button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 67px;
  padding: 11px;
  border: 0;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.vehicle-location-step > button > i {
  display: grid;
  flex: 0 0 25px;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #eef2f3;
  color: #83919e;
  font-style: normal;
  font-size: 12px;
}

.vehicle-location-step > button > span {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 4px;
}

.vehicle-location-step > button b {
  font-size: 14px;
}

.vehicle-location-step > button small {
  overflow: hidden;
  color: #66758a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-location-step > button > em {
  font-style: normal;
  font-size: 22px;
}

.vehicle-location-step.is-disabled,
.vehicle-location-step.is-disabled > button {
  border-color: #dfe4e8;
  background: #edf0f2;
  color: #87929d;
}

.vehicle-location-step.is-disabled > button {
  cursor: not-allowed;
}

.vehicle-location-step.is-disabled > button > i {
  background: #e0e5e9;
  color: #929ca5;
}

.vehicle-location-step.is-disabled > button small {
  color: #929ca5;
}

.vehicle-location-step.is-complete > button > i {
  background: #fff3dc;
  color: #9b6a18;
}

.vehicle-location-step.is-active {
  border-color: #d6a451;
  box-shadow: 0 0 0 2px rgba(214, 164, 81, .14);
}

.vehicle-location-modal.is-step-view {
  width: min(560px, 100%);
}

.vehicle-location-modal.is-step-view > [data-vehicle-location-content] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  max-height: inherit;
  min-width: 0;
  overflow: hidden;
}

.vehicle-location-step-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #dfe4e8;
  background: #fff;
}

.vehicle-location-step-dialog-header span {
  display: block;
  margin-bottom: 3px;
  color: #9b6a18;
  font-size: 11px;
  font-weight: 800;
}

.vehicle-location-step-dialog-header h2 {
  margin: 0;
  color: #172332;
  font-size: 17px;
  line-height: 1.25;
}

.vehicle-location-step-dialog-header > button {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef2f3;
  color: #20303d;
  font: 400 20px/1 inherit;
  cursor: pointer;
}

.vehicle-location-step-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  gap: 10px;
  padding: 14px;
  overflow: auto;
  background: #f5f7f8;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.vehicle-location-step-fields label {
  min-width: 0;
  max-width: 100%;
  padding: 0;
  background: transparent;
}

.vehicle-location-step-fields label:last-of-type:nth-child(3) {
  grid-column: 1 / -1;
}

.vehicle-location-driver-field {
  grid-column: 1 / -1;
}

.vehicle-location-step-dialog-footer {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid #dfe4e8;
  background: #fff;
}

.vehicle-location-step-dialog-footer > button {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #cfd7df;
  border-radius: 8px;
  background: #f8fafb;
  color: #263746;
  font: 800 13px/1.2 inherit;
  cursor: pointer;
}

.vehicle-location-step-dialog-footer > button:last-child {
  border-color: #b98938;
  background: #b98938;
  color: #fff;
}

.vehicle-location-pickup-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.vehicle-location-preset-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  color: #526273;
  font-size: 12px;
}

.vehicle-location-preset-heading > b {
  color: #526273;
  font-size: 12px;
  font-weight: 750;
}

.vehicle-location-preset-heading > button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #d6a451;
  border-radius: 7px;
  background: #fffaf0;
  color: #8d5a0b;
  font: 750 12px/1.2 inherit;
  cursor: pointer;
}

.vehicle-location-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.vehicle-location-preset-item {
  position: relative;
  min-width: 0;
}

.vehicle-location-preset-select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  overflow: hidden;
  border: 1px solid #d5dde5;
  border-radius: 7px;
  background: #fff;
  color: #263746;
  font: 700 13px/1.3 inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.vehicle-location-preset-item:has(.vehicle-location-preset-delete) .vehicle-location-preset-select {
  padding-right: 38px;
}

.vehicle-location-preset-item.is-selected .vehicle-location-preset-select {
  border-color: #d6a451;
  background: #fff7e8;
  color: #8d5a0b;
  box-shadow: inset 0 0 0 1px rgba(214, 164, 81, .18);
}

.vehicle-location-preset-delete {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid #edc6c6;
  border-radius: 50%;
  background: #fff8f8;
  color: #b73a3a;
  font: 800 17px/1 inherit;
  transform: translateY(-50%);
  cursor: pointer;
}

.vehicle-location-preset-heading > button:hover,
.vehicle-location-preset-select:hover {
  border-color: #bd8c3b;
}

.vehicle-location-preset-delete:hover {
  border-color: #d98282;
  background: #fff0f0;
}

.vehicle-location-preset-manager {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px dashed #d6b46f;
  border-radius: 8px;
  background: #fffaf0;
}

.vehicle-location-preset-manager > b {
  color: #75501a;
  font-size: 12px;
}

.vehicle-location-preset-manager > small {
  color: #7c6a50;
  font-size: 11px;
}

.vehicle-location-preset-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.vehicle-location-preset-create > input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #dcc99f;
  border-radius: 7px;
  background: #fff;
  color: #263746;
  font: 700 13px/1.25 inherit;
  text-align: left;
}

.vehicle-location-preset-create > input:focus {
  border-color: #bd8c3b;
  outline: 2px solid rgba(189, 140, 59, .16);
  outline-offset: 0;
}

.vehicle-location-preset-create > button {
  box-sizing: border-box;
  min-width: 68px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid #d6a451;
  border-radius: 7px;
  background: #b98938;
  color: #fff;
  font: 800 13px/1.2 inherit;
  cursor: pointer;
}

.vehicle-location-preset-create > button:disabled,
.vehicle-location-preset-create > input:disabled {
  cursor: wait;
  opacity: .65;
}

.vehicle-location-pickup-panel > label {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.vehicle-location-pickup-panel > label > span {
  color: #526273;
  font-size: 12px;
  font-weight: 750;
}

.vehicle-location-pickup-help {
  color: #718096;
  font-size: 11px;
  line-height: 1.45;
}

.vehicle-location-driver-selector {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d9e1e8;
  border-radius: 9px;
  background: #fff;
}

.vehicle-location-driver-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vehicle-location-driver-heading > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.vehicle-location-driver-heading b {
  color: #172332;
  font-size: 14px;
}

.vehicle-location-driver-entry {
  display: grid;
  min-width: 0;
}

.vehicle-location-driver-entry > label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: #526273;
  font-size: 11px;
  font-weight: 750;
}

.vehicle-location-driver-entry input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 8px 10px;
  border: 1px solid #cfd7df;
  border-radius: 7px;
  background: #fff;
  color: #142536;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
}

.vehicle-location-driver-modes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

.vehicle-location-driver-modes > button,
.vehicle-location-driver-person {
  min-width: 0;
  min-height: 40px;
  padding: 8px;
  border: 1px solid #cfd7df;
  border-radius: 7px;
  background: #f8fafb;
  color: #263746;
  font-family: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  cursor: pointer;
}

.vehicle-location-driver-modes > button.is-selected,
.vehicle-location-driver-person.is-selected {
  border-color: #b98938;
  background: #fff7e8;
  color: #805817;
  box-shadow: 0 0 0 1px rgba(185, 137, 56, .12);
}

.vehicle-location-driver-modes > button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.vehicle-location-driver-staff,
.vehicle-location-driver-external {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.vehicle-location-driver-staff > label,
.vehicle-location-driver-external {
  display: grid;
  gap: 5px;
  color: #526273;
  font-size: 11px;
  font-weight: 750;
}

.vehicle-location-driver-staff input,
.vehicle-location-driver-external input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #cfd7df;
  border-radius: 7px;
  background: #fff;
  color: #142536;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.vehicle-location-driver-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 168px;
  overflow: auto;
  overscroll-behavior: contain;
}

.vehicle-location-driver-people > p {
  grid-column: 1 / -1;
  margin: 4px 0;
  color: #718096;
  font-size: 11px;
  text-align: center;
}

.vehicle-location-driver-person {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  text-align: left;
}

.vehicle-location-driver-person[hidden] {
  display: none;
}

.vehicle-location-driver-person b {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-location-recorder {
  display: flex;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 9px;
  border-radius: 7px;
  background: #eff3f6;
  color: #526273;
  font-size: 11px;
}

.vehicle-location-recorder-item {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.vehicle-location-recorder-item b {
  overflow: hidden;
  color: #172332;
  text-overflow: ellipsis;
}

.vehicle-location-recorder > i {
  width: 1px;
  height: 14px;
  flex: 0 0 auto;
  background: #cfd7df;
}

.vehicle-location-actions {
  position: sticky;
  bottom: -16px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  margin: 4px -16px -16px;
  padding: 12px 16px 16px;
  border-top: 1px solid #dfe4e8;
  background: #fff;
}

.vehicle-location-actions > button {
  min-width: 0;
  min-height: 42px;
  overflow-wrap: anywhere;
  border: 0;
  border-radius: 8px;
  font: 800 14px/1 inherit;
  cursor: pointer;
}

.vehicle-location-actions > button:first-child {
  border: 1px solid #cfd7df;
  background: #f8fafb;
  color: #263746;
}

.vehicle-location-actions > .vehicle-location-primary {
  margin: 0;
  background: #c3923f;
  color: #fff;
}

.vehicle-location-actions > .vehicle-location-primary:disabled {
  border: 1px solid #d7dde3;
  background: #e8ecef;
  color: #929ba4;
  opacity: 1;
  cursor: not-allowed;
}

.vehicle-location-gap-form {
  display: grid;
  gap: 12px;
}

.vehicle-location-gap-alert {
  padding: 13px;
  border: 1px solid #e2d1b1;
  border-radius: 9px;
  background: #fff7e8;
}

.vehicle-location-gap-alert h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #805817;
  font-size: 15px;
}

.vehicle-location-gap-alert h3 > span {
  display: grid;
  flex: 0 0 20px;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #c59442;
  border-radius: 50%;
  font-size: 12px;
}

.vehicle-location-gap-alert dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  margin: 0;
  font-size: 12px;
}

.vehicle-location-gap-alert dt {
  color: #6f7c8c;
}

.vehicle-location-gap-alert dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.vehicle-location-gap-label {
  color: #66758a;
  font-size: 12px;
  font-weight: 700;
}

.vehicle-location-gap-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #eff1f1;
  font-size: 14px;
}

.vehicle-location-gap-route b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.vehicle-location-gap-route > span {
  color: #778493;
  font-size: 18px;
}

.vehicle-location-gap-form > label,
.vehicle-location-gap-times > label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #172332;
  font-size: 12px;
  font-weight: 800;
}

.vehicle-location-gap-form select,
.vehicle-location-gap-form input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #cfd7df;
  border-radius: 7px;
  background: #fff;
  color: #142536;
  font: inherit;
}

.vehicle-location-gap-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vehicle-location-gap-help {
  margin: -2px 0 0;
  color: #718096;
  font-size: 11px;
  line-height: 1.55;
}

.vehicle-location-success {
  display: grid;
  gap: 12px;
  text-align: center;
}

.vehicle-location-success-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 2px auto 0;
  border-radius: 50%;
  background: #eef4e9;
  color: #536d49;
  font-size: 24px;
  font-weight: 800;
}

.vehicle-location-success h3 {
  margin: 0;
  font-size: 18px;
}

.vehicle-location-success-summary {
  display: grid;
  gap: 5px;
  padding: 13px;
  border-radius: 8px;
  background: #eff1f1;
  text-align: left;
  font-size: 13px;
}

.vehicle-location-success-summary span,
.vehicle-location-history article p {
  overflow-wrap: anywhere;
}

.vehicle-location-success-summary b {
  margin-bottom: 3px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.vehicle-location-success > p {
  margin: 0;
  color: #66758a;
  font-size: 11px;
  line-height: 1.55;
}

.vehicle-location-history article {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 12px;
}

.vehicle-location-history article > i {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border: 2px solid #d3a24f;
  border-radius: 50%;
  box-sizing: border-box;
}

.vehicle-location-history article > div {
  min-width: 0;
}

.vehicle-location-history article b {
  color: #172332;
  font-size: 14px;
}

.vehicle-location-history article p {
  margin: 5px 0 0;
  color: #66758a;
  font-size: 11px;
}

.vehicle-location-history-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 7px;
  border-radius: 5px;
  background: #fff3dc;
  color: #8b5e16;
  font-size: 10px;
  font-weight: 800;
}

.vehicle-location-history-help {
  margin: 14px 4px 0;
  color: #66758a;
  font-size: 11px;
}

.vehicle-location-loading {
  padding: 50px 18px;
  color: #66758a;
  text-align: center;
}

@media (max-width: 899px) {
  html.vehicle-location-open body > .mobile-floating-tools-handle {
    display: none !important;
  }

  .vehicle-location-modal-shell {
    --vehicle-location-top: max(24px, env(safe-area-inset-top, 0px));
    --vehicle-location-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    place-items: start center;
    padding: var(--vehicle-location-top) 12px var(--vehicle-location-bottom);
    box-sizing: border-box;
  }

  .vehicle-location-modal {
    max-height: calc(100dvh - var(--vehicle-location-top) - var(--vehicle-location-bottom));
  }

  .vehicle-location-modal main {
    max-height: calc(100dvh - 136px - var(--vehicle-location-top) - var(--vehicle-location-bottom));
    padding: 14px;
  }

  .vehicle-location-actions {
    bottom: -14px;
    margin: 4px -14px -14px;
    padding: 12px 14px 14px;
  }

  .vehicle-location-step-fields {
    grid-template-columns: 1fr;
  }

  .vehicle-location-gap-times {
    grid-template-columns: 1fr;
  }

  .vehicle-location-driver-heading {
    align-items: flex-start;
  }

  .vehicle-location-driver-staff input,
  .vehicle-location-driver-external input {
    font-size: 16px;
  }

  .vehicle-location-step-fields label:last-of-type:nth-child(3) {
    grid-column: auto;
  }

}

@media (min-width: 900px) {
  html body.desktop-page .vehicle-location-modal.is-step-view {
    width: min(560px, calc(100vw - 64px));
  }

  html body.desktop-page .vehicle-location-modal {
    width: min(720px, calc(100vw - 64px));
    max-height: calc(100dvh - 48px);
    border-radius: 18px;
  }

  html body.desktop-page .vehicle-location-modal header {
    padding: 20px 24px;
  }

  html body.desktop-page .vehicle-location-modal header h2 {
    font-size: 20px;
  }

  html body.desktop-page .vehicle-location-modal header p {
    font-size: 12px;
  }

  html body.desktop-page .vehicle-location-modal nav {
    padding: 0 24px;
  }

  html body.desktop-page .vehicle-location-modal nav button {
    min-height: 48px;
    font-size: 14px;
  }

  html body.desktop-page .vehicle-location-modal main {
    max-height: calc(100dvh - 158px);
    padding: 24px;
  }

  html body.desktop-page .vehicle-location-form {
    gap: 12px;
  }

  html body.desktop-page .vehicle-location-actions {
    bottom: -24px;
    margin: 8px -24px -24px;
    padding: 16px 24px 20px;
  }

  html body.desktop-page .vehicle-location-history article {
    padding: 18px 14px;
    border-bottom: 1px solid #e1e6eb;
  }

  html body.desktop-page .desktop-app .page:is([data-panel="inventory"], [data-panel="sold"])
    .vehicle-location-desktop-row-entry {
    display: inline-flex !important;
    grid-row: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: calc(100% - 12px) !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 46px !important;
    margin: 0 6px !important;
    padding: 6px 9px !important;
    border: 1px solid #aaa497 !important;
    border-radius: 9px !important;
    background: #d8d3c7 !important;
    color: #6d4a13 !important;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .38), 0 1px 3px rgba(53, 47, 36, .18) !important;
    font: 800 13px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif !important;
    box-sizing: border-box !important;
  }

  html body.desktop-page .desktop-app .page:is([data-panel="inventory"], [data-panel="sold"])
    .vehicle-location-desktop-row-entry:hover {
    border-color: #8f8879 !important;
    background: #cec8ba !important;
  }

  html body.desktop-page .desktop-app .page:is([data-panel="inventory"], [data-panel="sold"])
    .vehicle-location-desktop-row-entry.is-home-location {
    border-color: #9fbd96 !important;
    background: #e5f3e2 !important;
    color: #3f6b38 !important;
  }

  html body.desktop-page .desktop-app .page:is([data-panel="inventory"], [data-panel="sold"])
    .vehicle-location-desktop-row-entry.is-home-location:hover {
    border-color: #86aa7c !important;
    background: #dcefd8 !important;
  }

  html body.desktop-page .desktop-app .page:is([data-panel="inventory"], [data-panel="sold"])
    .vehicle-location-desktop-row-entry > :is(span, i) {
    display: none !important;
  }

  html body.desktop-page .desktop-app .page[data-panel="inventory"]
    .vehicle-list[data-view="table"] .management-vehicle-table-head,
  html body.desktop-page .desktop-app .page[data-panel="inventory"]
    .vehicle-list[data-view="table"] .vehicle-card[data-management-detail-row] {
    min-width: 1588px !important;
    grid-template-columns: 174px minmax(280px, 1.45fr) minmax(128px, .64fr) minmax(180px, 1.45fr) minmax(86px, .58fr) repeat(4, minmax(118px, .62fr)) minmax(160px, .85fr) 40px !important;
  }

  html body.desktop-page .desktop-app .page[data-panel="inventory"]
    .vehicle-list[data-view="table"] .management-vehicle-table-head > span:nth-child(10),
  html body.desktop-page .desktop-app .page[data-panel="inventory"]
    .vehicle-list[data-view="table"] .vehicle-card > .management-row-chevron {
    grid-column: 11 !important;
  }

  html body.desktop-page .desktop-app .page[data-panel="inventory"]
    .vehicle-list[data-view="table"] .vehicle-card > .vehicle-location-desktop-row-entry {
    grid-column: 10 !important;
    place-self: center stretch !important;
  }

  html body.desktop-page .desktop-app .page[data-panel="sold"]
    .sold-list[data-view="table"] .sold-table-head,
  html body.desktop-page .desktop-app .page[data-panel="sold"]
    .sold-list[data-view="table"] .sold-card {
    min-width: 1248px !important;
    grid-template-columns: 174px minmax(145px, 1.35fr) minmax(72px, .62fr) minmax(145px, 1.35fr) minmax(68px, .58fr) minmax(65px, .56fr) minmax(65px, .56fr) repeat(3, minmax(72px, .62fr)) minmax(160px, .9fr) 40px !important;
  }

  html body.desktop-page .desktop-app .page[data-panel="sold"]
    .sold-list[data-view="table"] .management-sold-table-head > span:nth-child(11),
  html body.desktop-page .desktop-app .page[data-panel="sold"]
    .sold-list[data-view="table"] .sold-card > .sold-management-row-chevron {
    grid-column: 12 !important;
  }

  html body.desktop-page .desktop-app .page[data-panel="sold"]
    .sold-list[data-view="table"] .sold-card > .vehicle-location-desktop-row-entry {
    grid-column: 11 !important;
    place-self: center stretch !important;
  }

  html body.desktop-page .desktop-app .page[data-panel="sold"]
    .sold-list[data-view="table"].owner-company-cut .sold-table-head,
  html body.desktop-page .desktop-app .page[data-panel="sold"]
    .sold-list[data-view="table"].owner-company-cut .sold-card {
    min-width: 1328px !important;
    grid-template-columns: 174px minmax(145px, 1.35fr) minmax(72px, .62fr) minmax(145px, 1.35fr) minmax(68px, .58fr) minmax(65px, .56fr) minmax(65px, .56fr) repeat(4, minmax(72px, .62fr)) minmax(160px, .9fr) 40px !important;
  }

  html body.desktop-page .desktop-app .page[data-panel="sold"]
    .sold-list[data-view="table"].owner-company-cut .management-sold-table-head > span:nth-child(12),
  html body.desktop-page .desktop-app .page[data-panel="sold"]
    .sold-list[data-view="table"].owner-company-cut .sold-card > .sold-management-row-chevron {
    grid-column: 13 !important;
  }

  html body.desktop-page .desktop-app .page[data-panel="sold"]
    .sold-list[data-view="table"].owner-company-cut .sold-card > .vehicle-location-desktop-row-entry {
    grid-column: 12 !important;
  }

  html body.desktop-page .desktop-app .page[data-panel="sold"]
    .sold-list[data-view="legacy-table"] .sold-legacy-table-head,
  html body.desktop-page .desktop-app .page[data-panel="sold"]
    .sold-list[data-view="legacy-table"] .sold-card {
    min-width: 1802px !important;
    grid-template-columns: 84px 80px 104px 56px 86px 88px 106px 136px 136px 84px 84px 84px 84px 84px 76px 76px 94px 104px 150px !important;
  }

  html body.desktop-page .desktop-app .page[data-panel="sold"]
    .sold-list[data-view="legacy-table"] .sold-card > .vehicle-location-desktop-row-entry {
    grid-column: 19 !important;
    place-self: center stretch !important;
  }
}

/* Keep movement steps within the dialog; only the fields scroll vertically. */
.vehicle-location-modal main {
  overflow-x: hidden;
  overflow-y: auto;
}
.vehicle-location-step-fields {
  box-sizing: border-box;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: pan-y pinch-zoom;
}
.vehicle-location-step-fields label,
.vehicle-location-step-fields input,
.vehicle-location-step-fields select {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
.vehicle-location-step-fields input,
.vehicle-location-step-fields select {
  width: 100%;
}
.vehicle-location-step-fields input[type="datetime-local"] {
  overflow: hidden;
}
.vehicle-location-step-dialog-header,
.vehicle-location-step-dialog-footer {
  min-width: 0;
}
.vehicle-location-step-dialog-footer {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}
.vehicle-location-step-dialog-footer > button {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 899px) {
  .vehicle-location-step-fields { grid-template-columns: minmax(0, 1fr); }
}

/* Keep page navigation out of the location dialog's controls and scroll area. */
.vehicle-location-modal-shell { z-index: 12020; }
html.vehicle-location-open body :is(.mobile-bottom-nav,[data-mobile-bottom-nav],.mobile-nav-branch-host,.mobile-floating-tools-handle,.backoffice-toolkit,.public-frontend-shortcut,.visitor-chat-floating) {
  visibility: hidden !important;
  pointer-events: none !important;
}
.vehicle-location-step-fields { overflow-x: hidden; overflow-y: auto; min-height: 0; }
.vehicle-location-pickup-panel { align-self: start; align-content: start; }
.vehicle-location-preset-select {
  padding-inline: 4px;
  font-size: clamp(12px, 3.6vw, 14px);
  text-align: center;
}
.vehicle-location-preset-heading > button[aria-expanded="true"] {
  background: #fff1bc;
  border-color: #b98938;
}

/* Vehicle location overview: compact grouped inventory on phones and desktops. */
.vehicle-location-modal header > div:first-child { min-width: 0; flex: 1; }
.vehicle-location-modal header > div:first-child > p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-location-modal .vehicle-location-header-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 7px; }
.vehicle-location-modal header { gap: 8px; }
.vehicle-location-modal header button { flex-shrink: 0; }
.vehicle-location-modal header .vehicle-location-overview-link {
  width: auto; height: auto; min-height: 36px; padding: 8px 10px; border: 1px solid #d6bf8b;
  border-radius: 8px; background: #fff9ed; color: #795b24; font: 700 12px/1.4 system-ui, sans-serif; white-space: nowrap;
}
.vehicle-location-overview-total { display: inline-block; margin-left: 7px; padding: 2px 6px; border: 1px solid #e8dfcb; border-radius: 5px; color: #8b713c; vertical-align: middle; font: 600 11px/1.3 system-ui, sans-serif; }
.vehicle-location-modal main.vehicle-location-overview-main { max-height: calc(100dvh - 150px); padding: 12px; }
.vehicle-location-overview-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.vehicle-location-overview-scopes { display: flex; flex: 1; min-width: 0; padding: 3px; background: #e9edf0; border-radius: 8px; }
.vehicle-location-overview-scopes button { flex: 1; min-width: 0; min-height: 36px; border: 0; border-radius: 6px; background: transparent; color: #607080; font: 600 12px/1.3 system-ui,sans-serif; cursor: pointer; }
.vehicle-location-overview-scopes button[aria-pressed="true"] { background: #fff; color: #283c4b; box-shadow: 0 1px 4px #1c324617; }
.vehicle-location-overview-refresh,.vehicle-location-overview-message button { min-height: 40px; padding: 8px 11px; border: 1px solid #d8dee3; border-radius: 8px; color: #344655; background: #fff; font: 600 12px/1.4 system-ui,sans-serif; cursor: pointer; }
.vehicle-location-overview-refresh:disabled { opacity: .55; cursor: wait; }
.vehicle-location-overview-search { box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; margin-bottom: 8px; padding: 9px 12px; border: 1px solid #d8dee3; border-radius: 8px; color: #243845; background: #fff; font: 16px/1.4 system-ui,sans-serif; }
.vehicle-location-overview-summary,.vehicle-location-overview-help { margin: 4px 2px 10px; color: #687788; font: 11px/1.6 system-ui,sans-serif; }
.vehicle-location-overview-help { margin-top: 14px; }
.vehicle-location-overview-group { margin-bottom: 10px; border: 1px solid #e2dac9; border-radius: 8px; overflow: hidden; background: #fff; }
.vehicle-location-overview-group > summary { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 10px; box-sizing: border-box; list-style: none; background: #f2eee5; color: #65502b; cursor: pointer; }
.vehicle-location-overview-group > summary::-webkit-details-marker { display: none; }
.vehicle-location-overview-group > summary strong { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 700 13px/1.4 system-ui,sans-serif; }
.vehicle-location-overview-group > summary > span { flex: 0 0 auto; font: 500 11px/1.4 system-ui,sans-serif; }
.vehicle-location-overview-group > summary svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.vehicle-location-overview-group > summary i { flex: 0 0 6px; width: 6px; height: 6px; margin: 0 2px 3px 4px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-45deg); }
.vehicle-location-overview-group[open] > summary i { transform: rotate(45deg); }
.vehicle-location-overview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: #e6e8eb; }
.vehicle-location-overview-car { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 76px; padding: 10px 8px; border: 0; border-radius: 0; text-align: left; color: #243442; background: #fff; cursor: pointer; }
.vehicle-location-overview-car:hover { background: #fffbf1; }
.vehicle-location-overview-car:focus-visible,.vehicle-location-overview-group > summary:focus-visible { position: relative; outline: 2px solid #98743b; outline-offset: -3px; }
.vehicle-location-overview-photo { position: relative; display: grid; place-items: center; flex: 0 0 clamp(38px,12vw,56px); width: clamp(38px,12vw,56px); height: 44px; overflow: hidden; border-radius: 5px; background: #edf0f2; color: #81909b; font: 9px/1.3 system-ui,sans-serif; }
.vehicle-location-overview-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vehicle-location-overview-car-text { display: grid; gap: 4px; min-width: 0; }
.vehicle-location-overview-car-text b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font: 700 12px/1.4 system-ui,sans-serif; }
.vehicle-location-overview-car-text small { color: #74818e; overflow-wrap: anywhere; font: 11px/1.3 system-ui,sans-serif; }
.vehicle-location-overview-car-text em { color: #9a793b; font: normal 10px/1.2 system-ui,sans-serif; }
.vehicle-location-overview-message { padding: 32px 10px; color: #67788a; text-align: center; font: 13px/1.6 system-ui,sans-serif; }
@media (max-width: 359px) {
  .vehicle-location-modal header { padding-inline: 12px; }
  .vehicle-location-modal header h2 { font-size: 15px; }
  .vehicle-location-modal header .vehicle-location-overview-link { padding-inline: 7px; font-size: 11px; }
  .vehicle-location-modal .vehicle-location-header-actions { gap: 4px; }
  .vehicle-location-modal header button[data-vehicle-location-close] { width: 30px; }
  .vehicle-location-modal main.vehicle-location-overview-main { padding-inline: 9px; }
}
@media (min-width: 900px) {
  html body.desktop-page .vehicle-location-modal main.vehicle-location-overview-main { max-height: calc(100dvh - 158px); padding: 20px 24px; }
  .vehicle-location-overview-car { min-height: 90px; padding: 12px; gap: 12px; }
  .vehicle-location-overview-photo { flex-basis: 72px; width: 72px; height: 52px; }
  .vehicle-location-overview-car-text b { font-size: 14px; }
  .vehicle-location-overview-car-text small { font-size: 12px; }
}

/* A departure-only company trip uses the same driver and audit record. */
.vehicle-location-movement-modes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.vehicle-location-movement-modes button { min-height:44px; padding:10px 8px; border:1px solid #d9dfe4; border-radius:9px; background:#fff; color:#536575; font:700 14px/1.4 system-ui,sans-serif; cursor:pointer; }
.vehicle-location-movement-modes button[aria-pressed="true"] { border-color:#b39354; background:#fff7e5; color:#79591d; box-shadow:inset 0 0 0 1px #b39354; }
.vehicle-location-movement-modes button:disabled { opacity:.6; cursor:wait; }
.vehicle-location-movement-modes button:focus-visible { outline:2px solid #a27a35; outline-offset:2px; }
.vehicle-location-business-trip-help { padding:12px 14px; border:1px solid #e8d6b0; border-radius:9px; background:#fffaf0; color:#6f552d; }
.vehicle-location-business-trip-help b { display:block; font-size:14px; }
.vehicle-location-business-trip-help p { margin:5px 0 0; font-size:12px; line-height:1.6; }
