html, body {
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

.root {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: hidden;
}

@media (prefers-color-scheme: dark) {
  body {
    background: black;
  }
}

@media print {
  * {
    height: auto !important;
    overflow: visible !important;
  }
}

.geofence-info-popup .maplibregl-popup-content {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
}

.gf-pop {
  min-width: 200px;
  max-width: 280px;
  padding: 12px 14px 12px;
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

.gf-pop-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.gf-pop-flag {
  font-size: 18px;
  line-height: 1.2;
}

.gf-pop-name {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  color: #0f172a;
}

.gf-pop-type {
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.gf-pop-desc {
  margin-top: 8px;
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
}

.gf-pop-meta {
  margin-top: 8px;
  font-size: 11px;
  color: #64748b;
}

.gf-pop-edit {
  margin-top: 10px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}