/**
 * JumpX OS - Dialog zum Zuschneiden von Bildern (assets/js/jumpx_image_crop.js)
 *
 * z-index bewusst ueber 10000: Das Theme setzt Modale auf 10000, der
 * Zuschneide-Dialog kann aus einem Modal heraus geoeffnet werden und muss
 * darueber liegen.
 */
.jx-crop-overlay {
  position: fixed;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(17, 24, 39, 0.55);
}

.jx-crop-dialog {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
  padding: 18px 18px 14px;
}

.jx-crop-head {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
}

.jx-crop-stage {
  display: flex;
  justify-content: center;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.jx-crop-canvas {
  display: block;
  cursor: grab;
  touch-action: none;
}

.jx-crop-canvas.is-dragging {
  cursor: grabbing;
}

.jx-crop-hint {
  font-size: 12.5px;
  color: #6b7280;
  margin: 8px 0 0;
}

.jx-crop-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.jx-crop-zoom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin: 0;
  flex: 1 1 auto;
}

.jx-crop-range {
  flex: 1 1 auto;
  width: 100%;
  margin: 0;
}

.jx-crop-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.jx-crop-foot .btn + .btn {
  margin-left: 8px;
}
