.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-step-dialog-shell {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 12px;
}

.vehicle-location-step-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 48, 60, .46);
  backdrop-filter: blur(2px);
}

.vehicle-location-step-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  box-sizing: border-box;
  width: min(560px, 100%);
  max-width: 100%;
  max-height: calc(100% - 24px);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e1e8;
  border-radius: 14px;
  background: #f5f7f8;
  box-shadow: 0 18px 54px rgba(21, 34, 46, .3);
}

.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 h3 {
  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-form-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 1px 9px;
  color: #526273;
  font-size: 11px;
}

.vehicle-location-form-summary small {
  flex: 0 0 auto;
  color: #718096;
  font-size: 11px;
}

.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-height: 42px;
  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 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-step-dialog-shell {
    padding: 8px;
  }

  .vehicle-location-step-dialog {
    width: 100%;
    max-height: calc(100% - 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 {
    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-dialog {
  grid-template-columns: minmax(0, 1fr);
  height: 100%;
  max-height: 100%;
}
.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;
}
.vehicle-location-modal:has(.vehicle-location-step-dialog) main {
  overflow: hidden;
}
.vehicle-location-modal:has(.vehicle-location-step-dialog) {
  width: min(720px, 100%);
  height: min(820px, calc(100dvh - 24px));
}
@media (max-width: 899px) {
  .vehicle-location-step-fields { grid-template-columns: minmax(0, 1fr); }
  .vehicle-location-modal-shell:has(.vehicle-location-step-dialog) {
    --vehicle-location-top: max(24px, env(safe-area-inset-top, 0px));
    --vehicle-location-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    padding-inline: 8px;
  }
  .vehicle-location-modal:has(.vehicle-location-step-dialog) {
    height: calc(100dvh - var(--vehicle-location-top) - var(--vehicle-location-bottom));
  }
  .vehicle-location-step-dialog-shell { padding: 6px; }
}

/* 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;
}
