/* GPS-Ortung (PAJ GPS): Karte, Fahrzeugkarten, Einrichtung */
.pjm {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft, #eef1f4);
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.pjm.drag {
  cursor: grabbing;
}
.pjm-plain .pjm-layer {
  background-image:
    linear-gradient(to right, rgba(127, 127, 127, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(127, 127, 127, 0.14) 1px, transparent 1px);
  background-size: 64px 64px;
}
.pjm-layer,
.pjm-svg,
.pjm-marks {
  position: absolute;
  inset: 0;
}
.pjm-svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.pjm-marks {
  pointer-events: none;
}
.pjm-layer img {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  pointer-events: none;
}
.pjm-empty {
  padding: 40px;
  text-align: center;
}
.pjm-pin {
  position: absolute;
  transform: translate(-9px, -9px);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  font: inherit;
  color: inherit;
}
.pjm-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  flex: none;
}
.pjm-pin.ok .pjm-dot {
  background: var(--ok, #158a43);
}
.pjm-pin.warn .pjm-dot {
  background: #f59e0b;
}
.pjm-pin.bad .pjm-dot {
  background: var(--bad, #c0392b);
}
.pjm-lbl {
  background: var(--card, #fff);
  color: var(--text, #111);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.pjm-ctl {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pjm-ctl .btn {
  min-width: 34px;
  font-size: 18px;
  line-height: 1;
}
.pjm-attr {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 11px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
}
.pj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.pj-veh.sel {
  outline: 2px solid var(--accent);
}
.pj-days {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 6px 0;
}
.pj-privacy {
  margin: 10px 0;
}
.pj-al {
  padding: 4px 0;
  border-top: 1px solid var(--line, #e5e7eb);
  font-size: 14px;
}
.pj-al.new b {
  color: var(--bad, #c0392b);
}
.pj-mini {
  display: grid;
  gap: 2px;
  margin-top: 6px;
}
.pj-mini-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
  color: inherit;
  text-decoration: none;
  flex-wrap: wrap;
}
.pj-plan {
  margin-bottom: 12px;
}
.pj-links {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pj-trips tr.pj-late td:first-child {
  box-shadow: inset 3px 0 0 var(--bad, #c0392b);
}
@media (max-width: 700px) {
  .pj-card .table-wrap {
    margin: 0 -8px;
  }
  .pj-map select {
    min-width: 160px;
  }
  .pj-filter select {
    flex: 1 1 100%;
  }
}
.pj-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.pj-filter select {
  width: auto;
  max-width: 340px;
}
@media (max-width: 700px) {
  .pj-filter select {
    max-width: none;
    flex: 1 1 100%;
  }
}
