/* Shared navigation.css composes the existing styles in order for its page consumers. */
/* navigation.css base styles, retained in source order by the shared page build. */
.fleetdesk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border-bottom: 1px solid #e3e7e1;
  position: relative;
  z-index: 1100;
  flex-shrink: 0;
}
.fleetdesk-navigation {
  position: relative;
  margin-left: auto;
}
.fleetdesk-menu {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font: inherit;
  color: #166b52;
  background: #fff;
  border: 1px solid #d8e1d9;
  border-radius: 9px;
  cursor: pointer;
  margin: 0;
}
.fleetdesk-menu:focus-visible,
.fleetdesk-pages a:focus-visible {
  outline: 2px solid #166b52;
  outline-offset: 3px;
}
.menu-lines {
  position: relative;
  width: 24px;
  height: 24px;
  display: block;
}
.menu-lines span {
  position: absolute;
  left: 0;
  top: 11px;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.menu-lines span:nth-child(1) {
  transform: translateY(-7px);
}
.menu-lines span:nth-child(3) {
  transform: translateY(7px);
}
.fleetdesk-menu[aria-expanded='true'] .menu-lines span:nth-child(1) {
  transform: translateX(-7px) rotate(90deg);
}
.fleetdesk-menu[aria-expanded='true'] .menu-lines span:nth-child(2) {
  transform: rotate(90deg);
}
.fleetdesk-menu[aria-expanded='true'] .menu-lines span:nth-child(3) {
  transform: translateX(7px) rotate(90deg);
}
.fleetdesk-header .fleetdesk-pages {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 180px;
  padding: 6px;
  background: #fff;
  border: 1px solid #d8e1d9;
  border-radius: 10px;
  box-shadow: 0 8px 24px #203c2520;
}
.fleetdesk-header .fleetdesk-pages[hidden] {
  display: none;
}
.fleetdesk-pages a {
  display: block;
  padding: 11px 12px;
  border-radius: 6px;
  color: #166b52;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
}
.fleetdesk-pages a:hover,
.fleetdesk-pages a[aria-current='page'] {
  background: #e8f3eb;
}
#status.navigation-status {
  text-align: left;
  max-width: none;
  margin: 0 0 12px;
}
body:has(> .phone) > .fleetdesk-header {
  width: 100%;
  max-width: 900px;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 10px;
}
body:has(> .phone) > .fleetdesk-header strong {
  font-size: 22px;
}
@media (prefers-reduced-motion: reduce) {
  .menu-lines span {
    transition: none;
  }
}

/* FleetDesk's shared visual language. Status colors remain owned by vehicle-status.css. */
:root {
  --fleet-bg: #eeeee8;
  --fleet-surface: #fafaf6;
  --fleet-text: #22392f;
  --fleet-muted: #59695d;
  --fleet-edge: #cdd3c8;
  --fleet-green: #24674b;
  --fleet-soft: #e0ebdf;
  --fleet-shadow: #22392f15;
}
body {
  background: var(--fleet-bg);
  color: var(--fleet-text);
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
}
.fleetdesk-header {
  height: 86px;
  padding: 18px 24px;
  background: #20392f;
  color: #eef3e9;
  border-bottom: 1px solid #ffffff20;
  box-shadow: inset 0 -1px 0 #ffffff10;
}
.fleetdesk-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fleetdesk-brand strong {
  display: block;
  font-size: 23px;
  letter-spacing: -0.7px;
  font-weight: 650;
}
.fleetdesk-brand small {
  display: block;
  color: #b9c9b7;
  font-size: 10px;
  letter-spacing: 2.4px;
  margin-top: 2px;
}
.fleetdesk-mark {
  display: flex;
  align-items: center;
  border: 1px solid #7c9781;
  border-radius: 9px;
  padding: 6px 9px;
  font-size: 22px;
  letter-spacing: -2px;
  background: #ffffff08;
  box-shadow: inset 0 1px 0 #ffffff20;
}
.fleetdesk-menu {
  width: 46px;
  height: 46px;
  border: 1px solid #6f8274;
  border-radius: 11px;
  color: #eaf1e6;
  background: linear-gradient(#ffffff16, #ffffff05);
  box-shadow:
    0 3px 0 #101d16,
    inset 0 1px 0 #ffffff20;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
/* navigation.css controls styles, retained in source order by the shared page build. */
.fleetdesk-menu:active {
  transform: translateY(2px);
  box-shadow: none;
}
.fleetdesk-menu:focus-visible {
  outline-color: #b9dfc4;
}
.fleetdesk-header .fleetdesk-pages {
  top: calc(100% + 12px);
  width: 230px;
  padding: 10px 10px 10px 36px;
  background: var(--fleet-surface);
  color: var(--fleet-text);
  border: 1px solid var(--fleet-edge);
  border-radius: 14px;
  box-shadow: 0 16px 30px #102a2033;
  animation: menu-engage 0.15s ease-out;
}
.fleetdesk-pages a {
  position: relative;
  color: var(--fleet-text);
  padding: 13px 10px;
  border-radius: 8px;
  font-size: 15px;
  min-height: 44px;
}
.fleetdesk-pages a:before {
  content: '';
  position: absolute;
  left: -17px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--fleet-edge);
}
.fleetdesk-pages a:first-child:before {
  top: 50%;
}
.fleetdesk-pages a:last-child:before {
  bottom: 50%;
}
.fleetdesk-pages a:hover,
.fleetdesk-pages a[aria-current='page'] {
  background: var(--fleet-soft);
  color: var(--fleet-green);
}
.fleetdesk-pages a[aria-current='page']:after {
  content: '';
  position: absolute;
  left: -21px;
  top: calc(50% - 5px);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--fleet-green);
  box-shadow: 0 0 0 4px var(--fleet-surface);
}
/* One shared manager disclosure; unsigned customer navigation stays flat. */
.fleetdesk-header .fleetdesk-pages {
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 114px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.fleetdesk-header .fleetdesk-pages.fleetdesk-manager-pages {
  width: 280px;
}
.fleetdesk-header .fleetdesk-page-group {
  min-width: 0;
}
.fleetdesk-header .fleetdesk-pages button.fleetdesk-more-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 13px 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  border: 0 !important;
  border-radius: 8px;
  color: var(--fleet-text) !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer;
}
.fleetdesk-header .fleetdesk-pages button.fleetdesk-more-toggle:hover {
  background: var(--fleet-soft) !important;
  color: var(--fleet-green) !important;
}
.fleetdesk-header .fleetdesk-pages button.fleetdesk-more-toggle:focus-visible {
  outline: 2px solid var(--fleet-green);
  outline-offset: 3px;
}
.fleetdesk-more-toggle:before {
  content: '';
  position: absolute;
  left: -17px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--fleet-edge);
}
.fleetdesk-more-toggle:after {
  content: '';
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  margin-right: 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.fleetdesk-more-toggle[aria-expanded='false']:after {
  transform: rotate(-45deg);
}
.fleetdesk-group-current {
  position: absolute;
  left: -21px;
  top: calc(50% - 5px);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--fleet-green);
  box-shadow: 0 0 0 4px var(--fleet-surface);
}
.fleetdesk-header .fleetdesk-more-pages {
  margin: 0 0 6px 12px;
  padding-left: 10px;
  border-left: 1px solid var(--fleet-edge);
}
.fleetdesk-header .fleetdesk-more-pages[hidden] {
  display: none;
}
.fleetdesk-header .fleetdesk-more-pages a {
  padding: 11px 10px;
  min-height: 46px;
  font-size: 14px;
  white-space: normal;
}
.fleetdesk-header .fleetdesk-more-pages a:before {
  display: none;
}
.fleetdesk-header .fleetdesk-more-pages a[aria-current='page']:after {
  width: 5px;
  height: 5px;
  left: -13px;
  top: calc(50% - 2.5px);
  box-shadow: none;
}
/* Configuration is a nested shared group; all destinations stay in pages. */
.fleetdesk-header .fleetdesk-more-pages .fleetdesk-more-toggle {
  font-size: 14px;
  padding: 11px 10px;
}
.fleetdesk-more-pages .fleetdesk-more-toggle:before {
  display: none;
}
.fleetdesk-more-pages .fleetdesk-more-toggle .fleetdesk-group-current {
  width: 5px;
  height: 5px;
  left: -13px;
  top: calc(50% - 2.5px);
  box-shadow: none;
}
@keyframes menu-engage {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* navigation.css cards styles, retained in source order by the shared page build. */
body:has(> .phone) > .fleetdesk-header {
  background: #20392f;
}
main > h1,
.reservation-heading h1 {
  font-size: 23px;
  letter-spacing: -0.6px;
  font-weight: 650;
}
button,
.guest-action,
.directions,
.calendar-picker {
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
button:not(:where(.gauntlet-status, .vehicle-map-thumbnail, .fleetdesk-menu, .vehicle-status, .cleaning-action)),
.calendar-picker {
  background: var(--fleet-surface);
  border-color: var(--fleet-edge);
  box-shadow:
    0 2px 0 var(--fleet-edge),
    inset 0 1px 0 #ffffff15;
}
button:not(.vehicle-status):not(.gauntlet-status):not(.vehicle-map-thumbnail):not(.fleetdesk-menu):active,
.calendar-picker:active,
.details a.guest-action:active {
  transform: translateY(2px);
  box-shadow: none;
}
button:disabled {
  transform: none !important;
  box-shadow: none;
}
#day-strip {
  padding-bottom: 12px;
}
#day-strip button {
  position: relative;
  border-radius: 11px;
  background: var(--fleet-surface);
  padding-bottom: 19px;
}
#day-strip button.active {
  color: var(--fleet-green);
  background: var(--fleet-soft);
  border-color: var(--fleet-green);
  box-shadow: inset 0 2px 4px var(--fleet-shadow);
}
#day-strip button.active:after {
  content: '';
  position: absolute;
  bottom: 7px;
  left: calc(50% - 9px);
  width: 18px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
}
.card {
  background: var(--fleet-surface);
  border-color: var(--fleet-edge);
  box-shadow: 0 4px 0 var(--fleet-shadow);
  margin-bottom: 15px;
}
.card .time,
.card .vehicle {
  font-weight: 650;
}
.card .kind:not(.return) {
  background: var(--fleet-soft);
  color: var(--fleet-green);
}
.pickup-evidence,
.inline-location,
.muted,
.next-trip,
#health,
#notice {
  color: var(--fleet-muted);
}
.details,
.reservation-details,
.vehicle-body {
  border-color: var(--fleet-edge);
}
.details a.guest-action {
  box-shadow: 0 2px 0 #bfd0c0;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}

.service {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.service > summary {
  padding: 10px 0;
  min-height: 44px;
}
#service-vehicles,
#trip-vehicles,
#all-vehicles {
  display: grid;
  gap: 15px;
  margin-top: 0;
}
#service-vehicles li,
#trip-vehicles li,
#all-vehicles li {
  padding: 0;
  border: 0;
}
.vehicle-details {
  background: var(--fleet-surface);
  border: 1px solid var(--fleet-edge);
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--fleet-shadow);
  padding: 16px;
}
.vehicle-details > summary:before {
  transition: transform 0.15s;
}
.vehicle-body {
  margin-top: 14px;
  padding-top: 14px;
}
.service-editor,
.vehicle-map-dialog {
  background: var(--fleet-surface);
  border-color: var(--fleet-edge);
  box-shadow: 0 20px 50px #102a2033;
  border-radius: 14px;
  color: var(--fleet-text);
}
.service-editor input {
  background: var(--fleet-surface);
  border-color: var(--fleet-edge);
  color: var(--fleet-text);
}
.editor-actions button[type='submit'],
button.fleet-primary-button {
  background: var(--fleet-green) !important;
  color: #fff;
  border-color: var(--fleet-green) !important;
  box-shadow: 0 2px 0 #184630 !important;
}
body:has(#map) > main {
  height: calc(100dvh - 86px);
}
body:has(#map) aside {
  background: var(--fleet-bg);
}
body:has(#map) .vehicle {
  background: var(--fleet-surface);
  border-color: var(--fleet-edge);
  box-shadow: 0 3px 0 var(--fleet-shadow);
  margin-bottom: 12px;
}
body:has(#map) .vehicle.active {
  background: var(--fleet-soft);
  border-color: var(--fleet-green);
  box-shadow: inset 0 2px 4px var(--fleet-shadow);
}
/* Operational alerts always outrank decorative selection styles. */
.card.return-alert,
#day-strip button.return-alert {
  border: 2px solid #ba3535;
  background: #fff0ef;
}
#day-strip button.return-alert.active {
  background: #a32626;
  color: #fff;
  border-color: #a32626;
  box-shadow: inset 0 2px 4px #0002;
}
/* navigation.css layout styles, retained in source order by the shared page build. */
@media (max-width: 550px) {
  .fleetdesk-header {
    padding: 16px;
    height: 86px;
  }
  .fleetdesk-brand strong {
    font-size: 23px;
  }
  .fleetdesk-brand small {
    font-size: 9px;
  }
  .fleetdesk-mark {
    font-size: 21px;
  }
  #day-strip .day-count {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button,
  .guest-action,
  .directions,
  .calendar-picker,
  .vehicle-details > summary:before {
    transition: none;
  }
  .fleetdesk-header .fleetdesk-pages {
    animation: none;
  }
}

.on-trip-section {
  margin-top: 8px;
}
#trip-vehicles {
  list-style: none;
  padding: 0;
  margin: 0;
}
#trip-count {
  font-size: 14px;
  color: var(--fleet-muted);
  font-weight: 500;
  margin-left: 8px;
}

.vehicle-browser-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  margin-bottom: 8px;
}
.vehicle-browser-tools label {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 12px;
  line-height: 1.25;
  color: var(--fleet-muted);
}
.vehicle-search-control,
.vehicle-sort-control {
  grid-column: 1/-1;
}
.vehicle-browser-tools input,
.vehicle-browser-tools select {
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--fleet-edge);
  border-radius: 9px;
  background: var(--fleet-surface);
  color: var(--fleet-text);
  font: inherit;
  font-size: 16px;
}
.vehicle-browser-count {
  font-size: 12px;
  color: var(--fleet-muted);
  margin: 8px 0;
}
.vehicle-sort-controls button {
  height: 44px;
  padding: 0;
}
@media (min-width: 640px) {
  .vehicle-browser-tools {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .vehicle-search-control,
  .vehicle-sort-control {
    grid-column: span 2;
  }
}

.vehicle-details.vehicle-status-border {
  border: 3px solid var(--vehicle-status-color, var(--fleet-edge));
  background: var(--fleet-surface);
  color: var(--fleet-text);
}

.all-vehicles-section {
  margin-top: 8px;
}
#all-vehicles {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vehicle-reference {
  border-top: 1px solid var(--fleet-edge);
  padding-top: 8px;
  margin-top: 3px;
}
.vehicle-reference > summary {
  font-size: 14px;
  min-height: 44px;
  padding: 10px 0;
  font-weight: 600;
}
.vehicle-reference-body {
  display: grid;
  gap: 10px;
  padding: 8px 0;
  overflow-wrap: anywhere;
}

.expiration-pickers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.expiration-pickers label {
  min-width: 0;
}
.expiration-pickers select {
  width: 100%;
  min-height: 48px;
  font: inherit;
  padding: 10px;
  border: 1px solid var(--fleet-edge);
  border-radius: 10px;
  background: white;
  color: var(--fleet-ink);
}

.service-editor {
  border: 1px solid #d8e1d9;
  border-radius: 14px;
  width: calc(100% - 32px);
  max-width: 420px;
  padding: 20px;
  color: #22352e;
}
.service-editor::backdrop {
  background: #102a2066;
}
.service-editor h2 {
  margin: 0;
  font-size: 20px;
}
.service-editor p {
  font-size: 13px;
  line-height: 1.5;
}
.service-editor label {
  display: grid;
  gap: 6px;
  margin: 16px 0;
  font-size: 14px;
  font-weight: 600;
}
.service-editor input {
  min-width: 0;
  width: 100%;
  padding: 10px;
  min-height: 44px;
  border: 1px solid #a8bdb0;
  border-radius: 7px;
  font: inherit;
  background: #fff;
}
/* navigation.css details styles, retained in source order by the shared page build. */
.editor-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.editor-actions button {
  font: inherit;
  border: 1px solid #a8bdb0;
  border-radius: 8px;
  padding: 10px 18px;
  min-height: 44px;
  background: #fff;
  color: #22352e;
  cursor: pointer;
}
.editor-actions button[type='submit'] {
  background: #246c54;
  color: #fff;
  border-color: #246c54;
}
.save-message {
  color: #a32626;
}
.editor-actions button:disabled {
  opacity: 0.6;
}
.pickup-checks button.pickup-check {
  font: inherit;
  cursor: pointer;
  border: 1px solid currentColor;
}
.pickup-checks button.pickup-check:disabled {
  cursor: default;
}

.reservation-schedule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  margin: 0 0 10px;
}
.reservation-schedule-part {
  min-width: 0;
}
.reservation-schedule-label {
  display: block;
  font-size: 12px;
  color: var(--fleet-muted);
  margin-bottom: 4px;
}
.reservation-schedule-part strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.reservation-schedule-arrow {
  color: var(--fleet-muted);
}

.trip-earnings-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--fleet-edge);
}
.trip-earnings-row:last-child {
  border-bottom: 0;
}
.trip-earnings-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.trip-earnings-heading > div {
  min-width: 0;
}
.trip-earnings-heading > strong {
  white-space: nowrap;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.trip-earnings-number {
  display: block;
  font-size: 12px;
  color: var(--fleet-muted);
  margin-top: 3px;
}
.trip-earnings-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
  color: var(--fleet-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.trip-earnings-history > summary {
  padding: 8px 0;
}

.vehicle-sort-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.vehicle-sort-controls select {
  min-width: 0;
  flex: 1;
}
.vehicle-sort-controls button {
  flex: 0 0 44px;
  min-height: 44px;
  font-size: 22px;
  border: 1px solid var(--fleet-edge);
  border-radius: 8px;
  background: var(--fleet-surface);
  color: var(--fleet-text);
  cursor: pointer;
}

.cleaning-page {
  margin: 0;
  background: var(--fleet-bg);
  color: var(--fleet-text);
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
}
.cleaning-page main {
  max-width: 720px;
  margin: 24px auto;
  padding: 0 16px;
}
.cleaning-page h1 {
  text-align: center;
  font-size: 22px;
}
.cleaning-page h2,
.cleaning-completed > summary {
  font-size: 16px;
  margin: 18px 0 10px;
}
.cleaning-card {
  background: var(--fleet-surface);
  border: 1px solid var(--fleet-edge);
  border-radius: 14px;
  padding: 16px;
  margin: 10px 0;
}
.cleaning-card p,
#cleaning-session,
#cleaning-health {
  font-size: 13px;
  color: var(--fleet-muted);
  line-height: 1.5;
}
.cleaning-card button {
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 15px;
  border: 1px solid var(--fleet-green);
  border-radius: 8px;
  background: var(--fleet-green);
  color: white;
  font: inherit;
  cursor: pointer;
}
.cleaning-card button:disabled {
  opacity: 0.5;
  cursor: default;
}
.cleaning-good {
  color: var(--fleet-green);
}
.cleaning-pending,
.cleaning-needs_cleaning {
  color: #934b00;
}
.cleaning-unknown {
  color: var(--fleet-muted);
}
/* navigation.css navigation styles, retained in source order by the shared page build. */
.inline-location .cleaning-needs_cleaning,
.inline-location .cleaning-unknown {
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 2px 6px;
}
.cleaning-card {
  position: relative;
}
.cleaning-card .service-vehicle-heading {
  display: block;
  min-height: 20px;
  padding-right: 78px;
}
.cleaning-card .service-vehicle-heading strong {
  display: block;
  overflow-wrap: anywhere;
}
.cleaning-card .service-vehicle-heading .plate {
  position: absolute;
  top: 16px;
  right: 16px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 400;
}
.cleaning-notes {
  margin-top: 16px;
  border-top: 1px solid var(--fleet-edge);
  padding-top: 12px;
}
.cleaning-notes summary {
  cursor: pointer;
  font-weight: 650;
}
.cleaning-note {
  padding: 12px 0;
  border-bottom: 1px solid var(--fleet-edge);
}
.cleaning-note small,
.cleaning-note strong {
  display: block;
}
.cleaning-note p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cleaning-note img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin: 6px 6px 6px 0;
}
.cleaning-note button {
  margin-right: 8px;
}
.cleaning-attention {
  color: #a3480a;
}
.note-composer {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.note-composer textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--fleet-edge);
  border-radius: 10px;
  font: inherit;
  background: var(--fleet-surface);
  color: var(--fleet-text);
}
.note-composer label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.note-composer input[type='checkbox'] {
  width: 20px;
  height: 20px;
}
.note-composer input[type='file'] {
  max-width: 100%;
}
.inline-location button.cleaning-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  min-height: 34px;
  margin: 0 0 0 3px;
  padding: 4px 8px;
  border: 1.5px solid currentColor;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 3px 0 var(--fleet-edge),
    inset 0 1px 0 #ffffff66;
  transition:
    background 0.15s,
    transform 0.15s;
}
.inline-location button.cleaning-edit:disabled {
  cursor: default;
}
.inline-location button.cleaning-edit:not(:disabled):active {
  transform: translateY(2px);
  box-shadow: none;
}
.inline-location button.cleaning-edit:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.card .inline-location {
  align-items: center;
}
@media (prefers-reduced-motion: reduce) {
  .inline-location button.cleaning-edit {
    transition: none;
  }
}
.service-editor .editor-actions button.cleaning-choice {
  border: 2px solid currentColor;
  font-weight: 650;
}
.service-editor .editor-actions button.cleaning-choice-clean {
  color: #176442;
  background: #e3f2e8 !important;
  border-color: #24784f !important;
}
.service-editor .editor-actions button.cleaning-choice-dirty {
  color: #a12626;
  background: #fce5e5 !important;
  border-color: #c43939 !important;
}
.service-editor .editor-actions button.cleaning-choice-clean:hover {
  background: #cee7d8 !important;
}
.service-editor .editor-actions button.cleaning-choice-dirty:hover {
  background: #f6cccc !important;
}
.service-editor:is(.cleaning-editor, .fleet-editor) {
  box-sizing: border-box;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 24px;
  border: 2px solid var(--fleet-edge);
  border-radius: 18px;
  font:
    15px system-ui,
    -apple-system,
    sans-serif;
  background: var(--fleet-surface);
  color: var(--fleet-text);
  box-shadow:
    0 5px 0 var(--fleet-shadow),
    0 24px 60px #102a2033;
}
:is(.cleaning-editor, .fleet-editor)::backdrop {
  background: #102a2066;
  backdrop-filter: blur(3px);
}
:is(.cleaning-editor, .fleet-editor) h2 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}
:is(.cleaning-editor, .fleet-editor) p {
  color: var(--fleet-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0;
}
/* navigation.css appearance styles, retained in source order by the shared page build. */
:is(.cleaning-editor, .fleet-editor) p:first-of-type {
  font-size: 15px;
  color: var(--fleet-text);
  font-weight: 600;
}
:is(.cleaning-editor, .fleet-editor) .save-message:empty {
  display: none;
}
:is(.cleaning-editor, .fleet-editor) .editor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
:is(.cleaning-editor, .fleet-editor) .editor-actions button {
  font: inherit;
  min-height: 48px;
  padding: 12px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}
.cleaning-editor .editor-actions button:first-child {
  grid-column: 1/-1;
  grid-row: 2;
  color: var(--fleet-muted);
}
:is(.cleaning-editor, .fleet-editor) .editor-actions button:active {
  transform: translateY(2px);
  box-shadow: none;
}
:is(.cleaning-editor, .fleet-editor) .editor-actions button:focus-visible {
  outline: 2px solid var(--fleet-green);
  outline-offset: 3px;
}
:is(.cleaning-editor, .fleet-editor) .editor-actions button:disabled {
  opacity: 0.55;
  cursor: wait;
}
@media (prefers-reduced-motion: reduce) {
  :is(.cleaning-editor, .fleet-editor) .editor-actions button {
    transition: none;
  }
}
/* Readiness badges use the full row below the vehicle header. */
.card .top {
  position: relative;
  display: block;
}
.card .inline-location {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
  gap: 5px;
}
.card .inline-location > * {
  flex: 0 0 auto;
  white-space: nowrap;
}
.card .inline-location > :first-child {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card .inline-location .cleaning-edit {
  white-space: nowrap;
}
.card.statuses-current:not(.return-alert) {
  background: #e6efdf;
  border-color: #bed0b5;
  box-shadow: 0 4px 0 #8fa88525;
}

.card .pickup-address {
  display: block;
  width: 100%;
  color: var(--fleet-muted);
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

#cleaning-earnings {
  margin: 16px 0;
  padding: 16px;
  background: var(--fleet-surface);
  border: 1px solid var(--fleet-edge);
  border-radius: 14px;
}
#cleaning-earnings small {
  display: block;
  margin: 8px 0;
  color: var(--fleet-muted);
}
#cleaning-earnings details {
  margin-top: 12px;
}
#cleaning-earnings summary {
  cursor: pointer;
}
.cleaning-pay-entry {
  padding: 12px 0;
  border-bottom: 1px solid var(--fleet-edge);
}
.cleaning-pay-entry button {
  margin-right: 8px;
}

.cleaning-card .cleaning-hnl {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 4px;
  padding: 1px 5px;
  border: 1.5px solid #2a704e;
  border-radius: 5px;
  color: #2a704e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

/* Shared neutral saved-data action: color does not imply readiness. */
.fleet-data-button {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 8px 24px 8px 10px;
  background: var(--fleet-surface);
  color: var(--fleet-text);
  border: 1.5px solid var(--fleet-text);
  border-radius: 10px;
  box-shadow:
    0 4px 0 var(--fleet-edge),
    inset 0 1px 0 #ffffff15;
  text-decoration: none;
  text-align: left;
  font: inherit;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.fleet-data-button:hover {
  background: var(--fleet-bg);
}
.fleet-data-button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--fleet-edge);
}
.fleet-data-button:focus-visible {
  outline: 2px solid var(--fleet-text);
  outline-offset: 3px;
}
.fleet-data-button:after {
  content: '↗';
  position: absolute;
  right: 8px;
  top: 6px;
  font-size: 13px;
  line-height: 1;
  color: var(--fleet-muted);
}
.fleet-data-button .vehicle-map-label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 8px;
  font-size: 12px;
}
.fleet-data-button .vehicle-coordinate {
  font-size: 12px;
}
.fleet-data-button .fuel-update {
  font-size: 11px;
  font-weight: 400;
  color: var(--fleet-muted);
}
/* navigation.css responsive styles, retained in source order by the shared page build. */
.fleet-data-button .reservation-usage {
  font-size: 11px;
  font-weight: 400;
  color: var(--fleet-muted);
}
.details .vehicle-info .fleet-data-button {
  width: 100%;
  margin: 0;
  min-height: 0;
}
.vehicle-info .vehicle-map-thumbnail {
  height: 70px;
  align-self: center;
}
@media (prefers-reduced-motion: reduce) {
  .fleet-data-button {
    transition: none;
  }
}

/* Saved return badges use the shared status colors, separately from latest telemetry. */
.return-evidence-badge {
  display: inline-block;
  border: 1.5px solid currentColor;
  border-radius: 5px;
  padding: 1px 5px;
  font-weight: 600;
  line-height: 1.3;
}

/* Resolution is separate from the saved return time and fuel evidence. */
.return-resolution {
  margin: 16px 0;
  padding-top: 14px;
  border-top: 1px solid var(--fleet-edge);
  min-width: 0;
}
.return-resolution-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 650;
  color: var(--fleet-text);
}
.return-resolution-issue {
  padding: 14px 0;
  border-bottom: 1px solid var(--fleet-edge);
  min-width: 0;
}
.return-resolution-issue:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.return-resolution-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.return-resolution-heading > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.return-resolution-heading strong {
  font-size: 14px;
  font-weight: 650;
}
.return-resolution-fact {
  font-size: 14px;
  color: var(--status-overdue-ink, var(--fleet-danger));
}
.return-resolution-issue[data-issue='arrival'] .return-resolution-fact,
.return-resolution-issue[data-resolved='true'] .return-resolution-fact {
  color: var(--fleet-text);
}
.return-resolution-action {
  font:
    600 13px/1.35 system-ui,
    -apple-system,
    sans-serif;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--fleet-edge);
  border-radius: 9px;
  background: var(--fleet-soft);
  color: var(--fleet-text);
  box-shadow: 0 2px 0 var(--fleet-shadow);
  cursor: pointer;
  flex: 0 0 auto;
}
.return-resolution-action.fleet-primary-button {
  background: var(--fleet-green);
  color: var(--fleet-primary-ink, #fff) !important;
  border-color: var(--fleet-green);
}
.return-resolution-action:disabled {
  opacity: 0.55;
  cursor: default;
}
.return-resolution-action:focus-visible {
  outline: 2px solid var(--fleet-green);
  outline-offset: 3px;
}
.return-resolution-receipt,
.return-resolution-source,
.return-resolution-note,
.return-resolution-processing,
.return-resolution-message,
.return-resolution-summary {
  font-size: 12px;
  line-height: 1.5;
  color: var(--fleet-muted);
  overflow-wrap: anywhere;
}
.return-resolution-receipt {
  margin: 10px 0 0;
  color: var(--status-good-ink, var(--fleet-green));
}
.return-resolution-source {
  margin: 3px 0;
}
.return-resolution-note {
  margin: 7px 0;
  white-space: pre-wrap;
}
.return-resolution-processing {
  margin: 8px 0;
}
.return-resolution-message:empty {
  display: none;
}
.return-resolution-message {
  margin: 8px 0;
}
.return-resolution-summary {
  display: block;
  margin-top: 4px;
}
.return-resolution-notes {
  margin-top: 9px;
}
.return-resolution-notes > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  padding: 7px 10px;
  font-size: 12px;
  border: 1px solid var(--fleet-edge);
  border-radius: 8px;
  background: var(--fleet-surface);
  color: var(--fleet-muted);
  cursor: pointer;
}
.return-resolution-notes textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 9px 0 0;
  padding: 10px;
  border: 1px solid var(--fleet-edge);
  border-radius: 8px;
  background: var(--fleet-surface);
  color: var(--fleet-text);
  font:
    16px/1.4 system-ui,
    -apple-system,
    sans-serif;
  resize: vertical;
}
@media (max-width: 360px) {
  .return-resolution-heading {
    gap: 8px;
  }
  .return-resolution-action {
    padding: 10px;
    font-size: 12px;
  }
}
/* navigation.css compact styles, retained in source order by the shared page build. */
/* Booking source is neutral metadata, separate from operational status. */
.reservation-identity {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 0;
  width: 100%;
}
.reservation-identity > .vehicle {
  flex-basis: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.reservation-identity > .plate {
  margin-left: auto;
  padding: 0;
}
.booking-source-badge {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--fleet-edge);
  border-radius: 5px;
  background: var(--fleet-surface);
  color: var(--fleet-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
.booking-source-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--fleet-muted);
}
.booking-source-filter select {
  max-width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--fleet-edge);
  border-radius: 9px;
  background: var(--fleet-surface);
  color: var(--fleet-text);
  font: inherit;
}
@media (max-width: 550px) {
  .booking-source-filter {
    flex: 1;
    justify-content: flex-end;
  }
  .booking-source-filter select {
    min-width: 0;
  }
}

/* Saved direct-booking alerts share one compact navigation control. */
.fleetdesk-header button.fleetdesk-booking-bell {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
  min-width: 44px;
  width: 44px;
  height: 44px;
  color: var(--fleet-text);
  background: var(--fleet-control);
  border: 1px solid var(--fleet-edge);
  border-radius: 11px;
  box-shadow: 0 3px 0 var(--fleet-shadow);
}
.fleetdesk-header button.fleetdesk-booking-bell[hidden] {
  display: none;
}
.fleetdesk-booking-bell svg {
  width: 23px;
  height: 23px;
}
.booking-alert-count {
  position: absolute;
  right: -5px;
  top: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 12px;
  background: #b4142b;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  line-height: 19px;
  text-align: center;
  border: 1px solid var(--fleet-surface);
}
.booking-alert-count[hidden] {
  display: none;
}
.booking-alert-dialog {
  width: min(430px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid var(--fleet-edge);
  border-radius: 14px;
  padding: 16px;
  background: var(--fleet-surface);
  color: var(--fleet-text);
  box-shadow: 0 16px 45px var(--fleet-shadow);
}
.booking-alert-dialog::backdrop {
  background: #102a2077;
}
.booking-alert-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.booking-alert-heading h2 {
  font-size: 19px;
  margin: 0;
}
.booking-alert-dialog button,
.booking-alert-dialog .booking-alert-link {
  font: inherit;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--fleet-edge);
  border-radius: 8px;
  background: var(--fleet-control);
  color: var(--fleet-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.booking-alert-dialog button:focus-visible,
.booking-alert-dialog a:focus-visible {
  outline: 2px solid var(--fleet-green);
  outline-offset: 3px;
}
.booking-alert-dialog button:hover,
.booking-alert-dialog a:hover {
  background: var(--fleet-soft);
  color: var(--fleet-text);
}
.booking-alert-dialog button:disabled {
  cursor: default;
}
.booking-alert-note,
.booking-alert-dates {
  color: var(--fleet-muted);
  font-size: 13px;
  line-height: 1.5;
}
.booking-alert-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--fleet-edge);
}
.booking-alert-row strong {
  font-size: 15px;
}
.booking-alert-dates {
  margin: 5px 0 8px;
}
.booking-alert-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.booking-alert-row.is-read strong {
  font-weight: 500;
}
.booking-push-setup {
  margin-top: 16px;
  padding-top: 4px;
}
.booking-push-setup h3 {
  font-size: 15px;
}
/* navigation.css footer styles, retained in source order by the shared page build. */
.booking-push-setup > button {
  margin: 5px 6px 0 0;
}
@media (max-width: 360px) {
  .fleetdesk-header:has(.fleetdesk-booking-bell:not([hidden])) {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .fleetdesk-header:has(.fleetdesk-booking-bell:not([hidden])) .fleetdesk-brand {
    gap: 6px;
  }
  .fleetdesk-header:has(.fleetdesk-booking-bell:not([hidden])) .fleetdesk-brand strong {
    font-size: 17px;
  }
  .fleetdesk-header:has(.fleetdesk-booking-bell:not([hidden])) .fleetdesk-brand small {
    font-size: 7px;
    letter-spacing: 1.4px;
  }
  .fleetdesk-header:has(.fleetdesk-booking-bell:not([hidden])) .fleetdesk-mark {
    font-size: 17px;
    padding: 5px;
  }
}
.permission-preview-banner {
  position: sticky;
  top: 0;
  z-index: 1050;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 16px;
  border-bottom: 2px solid var(--fleet-green);
  background: var(--fleet-soft);
  color: var(--fleet-text);
  font:
    14px/1.4 system-ui,
    -apple-system,
    sans-serif;
}
.permission-preview-banner > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.permission-preview-banner > div > strong {
  font-size: 15px;
}
.permission-preview-banner > div > span {
  color: var(--fleet-text);
}
.permission-preview-exit {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-height: 44px;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid var(--fleet-edge);
  border-radius: 9px;
  background: var(--fleet-control, var(--fleet-surface));
  color: var(--fleet-text);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.permission-preview-exit:hover {
  background: var(--fleet-surface);
  color: var(--fleet-text);
}
.permission-preview-exit:focus-visible,
.permission-preview-pages > summary:focus-visible {
  outline: 2px solid var(--fleet-green);
  outline-offset: 3px;
}
.permission-preview-pages {
  grid-column: 1/-1;
  min-width: 0;
}
.permission-preview-pages > summary {
  min-height: 44px;
  box-sizing: border-box;
  padding: 11px 0;
  font-weight: 600;
  cursor: pointer;
}
.permission-preview-pages > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
  max-height: 40dvh;
  overflow: auto;
  margin: 0;
  padding: 0 0 0 20px;
}
.permission-preview-pages li {
  overflow-wrap: anywhere;
}
.permission-preview-notice {
  grid-column: 1/-1;
  margin: 0;
  overflow-wrap: anywhere;
}
.permission-preview-notice:empty {
  display: none;
}
.fleetdesk-header .fleetdesk-menu[hidden] {
  display: none;
}
@media (max-width: 550px) {
  .permission-preview-banner > div {
    grid-column: 1/-1;
  }
  .permission-preview-exit {
    justify-self: start;
  }
  .permission-preview-pages {
    grid-column: auto;
  }
  .permission-preview-pages > ul {
    grid-template-columns: minmax(0, 1fr);
  }
  .permission-preview-pages[open] {
    grid-column: 1/-1;
  }
}
.permission-preview-banner {
  max-height: var(--permission-preview-height-limit, 55dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.permission-preview-exit {
  position: sticky;
  top: 0;
  z-index: 1;
}
.permission-preview-pages > ul {
  max-height: calc(var(--permission-preview-height-limit, 55dvh) * 0.7);
}
.permission-preview-pages > h3 {
  font-size: 14px;
  margin: 8px 0;
  font-weight: 650;
}
.calendar-scroll > .permission-preview-banner {
  left: 0;
  width: 100vw;
  max-width: 100vw;
}
