body { background: #f5f6f8; }
.card-header.bg-warning { background: #ffc107 !important; }
.card-header h1, .card-header h2 { margin: 0; font-size: 1.3rem; }
.form-section-title { font-size: 1.15rem; font-weight: 600; margin: .25rem 0 1rem; }
.section-divider { border-top: 1px solid #ccc; margin: 1.75rem 0 1.25rem; opacity: .5; }
#editmap { height: 460px; border-radius: .4rem; border: 1px solid #ced4da; }
.geojson-area { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; }
.doc-current { font-size: .82rem; }
.doc-current a { margin-right: .4rem; }
.plan-table td, .plan-table th { vertical-align: middle; }
.plan-table tr.child td.nr { padding-left: 1.75rem; }
.plan-table tr.child td.nr::before { content: '↳ '; color: #999; }
.badge-status { font-weight: 500; }
.dot { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; vertical-align: -1px; }
.parent-pick { max-height: 240px; overflow: auto; }
.preview-swatch { display: inline-block; width: 2rem; height: 1.2rem; border: 1px solid #ccc; border-radius: 3px; vertical-align: middle; }
#fnpmap { height: 520px; border-radius: .4rem; }
.csv-preview { font-size: .8rem; }
.login-box { max-width: 420px; margin: 8vh auto; }
.sticky-save { position: sticky; bottom: 0; background: #fff; padding: .75rem 0; z-index: 500; border-top: 1px solid #eee; }

/* Vorschaubild zuschneiden */
.bp-crop-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 4000; display: flex; align-items: center; justify-content: center; padding: 2vh 2vw; }
.bp-crop-box { background: #fff; border-radius: .5rem; width: 100%; height: 100%; max-width: 1400px; display: flex; flex-direction: column; overflow: hidden; }
.bp-crop-head, .bp-crop-foot { padding: .6rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: center; border-bottom: 1px solid #dee2e6; }
.bp-crop-foot { border-top: 1px solid #dee2e6; border-bottom: 0; }
.bp-crop-stage { flex: 1; position: relative; background: #6c757d; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bp-crop-wrap { position: relative; user-select: none; touch-action: none; cursor: crosshair; }
.bp-crop-wrap canvas { width: 100%; height: 100%; display: block; }
.bp-crop-sel { position: absolute; border: 2px dashed #ffc107; box-shadow: 0 0 0 9999px rgba(0,0,0,.45); cursor: move; }
.bp-crop-sel i { position: absolute; width: 14px; height: 14px; background: #ffc107; border: 1px solid #000; }
.bp-crop-sel i[data-h=nw] { left: -8px; top: -8px; cursor: nwse-resize; }
.bp-crop-sel i[data-h=ne] { right: -8px; top: -8px; cursor: nesw-resize; }
.bp-crop-sel i[data-h=sw] { left: -8px; bottom: -8px; cursor: nesw-resize; }
.bp-crop-sel i[data-h=se] { right: -8px; bottom: -8px; cursor: nwse-resize; }
.bp-crop-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; }
.bp-thumb { max-width: 160px; max-height: 110px; border: 1px solid #ddd; background: #fff; }
/* 4-Eckpunkte-Entzerrung */
.bp-quad { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.bp-quad-shade { fill: rgba(0,0,0,.45); }
.bp-quad-line { fill: none; stroke: #ffc107; stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-dasharray: 6 4; }
.bp-q-h { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(255,193,7,.85);
  border: 2px solid #000; font: 700 12px/22px system-ui, sans-serif; text-align: center; color: #000; cursor: grab; touch-action: none; z-index: 2; }
.bp-q-h:active { cursor: grabbing; }
.bp-loupe { position: absolute; width: 180px; height: 180px; border: 3px solid #ffc107; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.5); pointer-events: none; z-index: 5; background: #fff; }
/* Planliste: Kacheln als Filter, Sammel-Aktionen */
.stat-tile { cursor: pointer; border: 1px solid #dee2e6; transition: box-shadow .15s, border-color .15s; background: #fff; }
.stat-tile:hover { border-color: #adb5bd; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.stat-tile.active { border-color: #ffc107; box-shadow: 0 0 0 .2rem rgba(255,193,7,.35); }
.bulkbar { background: #f1f3f5; border: 1px dashed #ced4da; }
.bulkbar.active { background: #fff8e1; border: 1px solid #ffc107; }
.plan-table td { padding-top: .45rem; padding-bottom: .45rem; }
.plan-table td .badge { font-weight: 500; }
.plan-table .btn-sm { padding: .15rem .45rem; }
/* Ausrichtung prüfen */
.rot-box { height: 220px; display: flex; align-items: center; justify-content: center; background: #f1f3f5; overflow: hidden; border-bottom: 1px solid #dee2e6; }
.rot-img { max-width: 200px; max-height: 200px; transition: transform .25s ease; box-shadow: 0 1px 4px rgba(0,0,0,.2); background: #fff; }
.rcard .card.border-danger { border-width: 2px; }
.rcard .card.border-warning { border-width: 2px; }
