.map-app {
  position: relative;
}

.map-doc-hint {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.4;
}

.mini-button {
  min-height: 40px;
  min-width: 84px;
  font-size: .78rem;
  font-weight: 750;
}

.map-doc-popup {
  display: grid;
  gap: 7px;
  min-width: 190px;
}

.map-doc-popup > span {
  color: var(--muted);
  font-size: .8rem;
}

.map-doc-popup > button {
  min-height: 42px;
  margin-top: 3px;
  border: 0;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.doc-dialog {
  position: absolute;
  inset: 0;
  z-index: 2000;
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: rgba(12, 25, 22, .78);
}

.doc-dialog[hidden] {
  display: none !important;
}

.doc-dialog .doc-sheet {
  width: min(720px, 100%);
  max-height: calc(100% - 8px);
  overflow: auto;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
  overscroll-behavior: contain;
}

.doc-dialog .photo-actions label,
.doc-dialog .photo-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
}

@media (max-width: 560px) {
  .doc-dialog {
    align-items: end;
    padding: 8px;
  }

  .doc-dialog .doc-sheet {
    width: 100%;
    max-height: 94%;
    padding: 16px;
    border-radius: 18px 18px 12px 12px;
  }

  .doc-dialog .photo-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .doc-dialog .photo-actions #liveCamera {
    grid-column: 1 / -1;
  }
}
.package-download { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; }
.package-link { color: var(--brand); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Haltungen und Schächte bleiben anklickbar, ohne dass der Pfeil zur Hand wird. */
.map-line,
.map-hit,
.map-manhole,
.map-manhole-hit,
.line-row,
.map-canvas.leaflet-active,
.map-canvas.leaflet-active canvas,
.map-canvas.leaflet-active .leaflet-interactive,
.map-canvas.leaflet-active .leaflet-grab {
  cursor: default !important;
}
