.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  box-sizing: border-box;
  padding: 8px 16px;
  border-bottom: 1px solid #000;
}

.map-toolbar .course-map-controls {
  flex-basis: 100%;
  order: 4;
}

.map-toolbar h1 {
  flex-shrink: 0;
  margin: 0;
  font-size: 16px;
}

.map-toolbar #center-carts {
  flex-shrink: 0;
  margin-left: auto;
}

.map-view {
  position: relative;
  background: #eee;
  min-height: 240px;
}

#cart-map {
  width: 100%;
  height: calc(100dvh - var(--site-header-height, 64px) - var(--map-toolbar-height, 58px));
  min-height: 240px;
}

#map-status {
  margin: 0;
  font-size: 13px;
}

body[data-page='map']:has(#operator:not([hidden])) #status:not(:empty) {
  position: fixed;
  z-index: 2;
  right: 16px;
  bottom: calc(var(--booking-dock-height, 0px) + 16px);
  left: 16px;
  width: fit-content;
  max-width: calc(100% - 32px);
  padding: 8px 12px;
  margin: 0;
  border: 1px solid #000;
  background: #fff;
  font-size: 13px;
}

#map-status:empty,
body[data-page='map'] #status:empty {
  display: none;
}

.cart-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 6px;
  border: 2px solid #000;
  background: #fff;
  color: #000;
}

.cart-marker.is-stale {
  border-style: dashed;
  opacity: 0.75;
}

.cart-label {
  max-width: 180px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 560px) {
  .map-toolbar {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .map-toolbar #map-status:not(:empty) {
    order: 3;
    flex-basis: 100%;
  }
}

.data-table {
  margin-top: 16px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid #000;
  border-radius: 0;
}

.data-table .tabulator-header {
  background: #fff;
  border-bottom: 1px solid #000;
  color: #000;
}

.data-table .tabulator-row {
  border-bottom: 1px solid #000;
  background: #fff;
  color: #000;
}

.data-table .tabulator-row .tabulator-cell,
.data-table .tabulator-header .tabulator-col .tabulator-col-content {
  padding: 10px;
}

.data-table .tabulator-row .tabulator-cell {
  border-right: 0;
}

.device-actions {
  display: flex;
  gap: 6px;
}

#history-section {
  margin-top: 24px;
}

#selected,
#delete-name {
  overflow-wrap: anywhere;
}

#expires {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: #000;
}
