body, html {
  font-family: Titillium Web, Calibri, sans-serif;
  margin: 0; padding: 0; overflow: hidden;
  height: 100vh; display: flex; flex-direction: column;
}
#dataTable td { white-space: pre; }
#dataTable thead th {
  position: sticky; top: 0; background: #fff; z-index: 10; cursor: pointer;
}
#toast {
  display: none; position: fixed; top: 20px; left: 50%;
  transform: translateX(-50%); background-color: red; color: white;
  padding: 10px; border-radius: 5px; z-index: 1000;
}
#container { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#topSection { display: flex; height: 50%; }
#map { flex: 1; }
#verticalDivider { width: 5px; background: #ccc; cursor: col-resize; }
#elevationContainer {
  width: 500px; display: block;
  border-left: 1px solid #ccc; box-sizing: border-box;
}
#divider { height: 5px; background: #ccc; cursor: row-resize; }
#tableContainer { flex: 1; overflow: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 5px; }
th, td { border: 1px solid #ccc; padding: 2px; text-align: left; }
#filterContainer {
  display: none; margin-bottom: 20px; margin-left: 5px; padding: 5px;
  align-items: center;
}
#autoZoomSwitchContainer { float: right; margin-top: 5px; }
.leaflet-tooltip {
  background: rgba(255,255,255,0.9) !important;
  background-color: rgba(255,255,255,0.9) !important;
  border: 1px solid rgba(255,255,255,0.9) !important;
  transition: none !important; box-shadow: none !important; color: black;
}
#uploadContainer { display: flex; align-items: center; margin-bottom: 0; padding: 5px; flex-wrap: wrap; gap: 4px; }
#autoZoomSwitchContainer.upload { margin-left: auto; gap: 10px; }
#legendContainer { display: flex; align-items: center; margin-left: auto; gap: 15px; }
.legendEntry { display: flex; align-items: center; }
.legendHigh img  { width: 32px; height: 32px; margin-right: 5px; }
.legendMedium img{ width: 26px; height: 26px; margin-right: 5px; }
.legendLow img   { width: 21px; height: 21px; margin-right: 5px; }
#clipboardOverlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 2000;
}
#clipboardModal {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); background: #fff; padding: 20px;
  border-radius: 5px; width: 80%; max-width: 600px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
#clipboardModal textarea { width: 100%; height: 200px; resize: vertical; }
#clipboardModal button { margin-top: 10px; }
.noUi-connect { background: red; }
#radiusFilter { height: 10px; top: 5px; }
.noUi-handle { height: 20px !important; width: 20px !important; top: 5px; }
#fileNameDisplay { display: none; }
.custom-file-input { position: relative; display: inline-block; }
.custom-file-input input[type="file"] {
  position: absolute; top: 0; right: 0; margin: 0;
  opacity: 0; width: 100%; height: 100%; cursor: pointer;
}
#copyClipboardBtn  { margin-left: 5px; }
#toggleFiltersBtn  { margin-left: 5px; }
#toggleProfileBtn  { margin-left: 5px; }
#filterContainer {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; margin-left: 5px; padding: 5px;
}
#afCheckPopup {
  display: none; position: fixed; top: 50%; left: 50%;
  transform: translate(-50%,-50%); background: #fff; border: 2px solid #333;
  padding: 14px 18px; border-radius: 8px;
  box-shadow: 0 0 14px rgba(0,0,0,0.35); z-index: 9999;
  min-width: 340px; max-width: 520px; font-size: 13px;
}
#afCheckPopup h3 { margin: 0 0 10px; text-align: center; font-size: 15px; }
#afCheckPopup .af-close {
  position: absolute; top: 6px; right: 10px;
  font-size: 18px; cursor: pointer; background: none; border: none;
}
.af-good   { color: #28a745; font-weight: bold; }
.af-medium { color: #fd7e14; font-weight: bold; }
.af-bad    { color: #dc3545; font-weight: bold; }
.af-check-col { display: none; }
tr[style*="background-color: red"] .af-good,
tr[style*="background-color: red"] .af-medium,
tr[style*="background-color: red"] .af-bad,
tr[style*="background-color: red"] td:last-child { color: white !important; }

/* === Highpoint's Webtools === */
:root {
  --wt-bg:#ffffff; --wt-text:#222222; --wt-border:#cccccc;
  --wt-muted:#6b7280; --wt-chip-bg:#f3f4f6;
  --wt-chip-bg-hover:#e5e7eb; --wt-shadow:0 10px 25px rgba(0,0,0,.10);
}
#webtools {
  position:relative; display:flex; flex-direction:column;
  align-items:center; z-index:1000; margin-top:-5px; font-family:inherit;
}
#webtools-toggle {
  display:inline-block; background:var(--wt-bg); color:var(--wt-text);
  border:1px solid var(--wt-border); padding:8px 18px;
  border-radius:0 0 10px 10px; font-size:14px; font-weight:700;
  cursor:pointer; box-shadow:var(--wt-shadow);
}
#webtools-toggle:hover { background:var(--wt-chip-bg); }
#webtools-panel {
  width:100%; max-width:750px; margin-top:8px;
  border:1px solid var(--wt-border); background:var(--wt-bg);
  box-shadow:var(--wt-shadow); overflow:hidden;
  max-height:0; opacity:0; border-radius:10px;
  transition:max-height .25s ease, opacity .2s ease;
}
#webtools.open #webtools-panel { max-height:330px; opacity:1; margin-bottom:8px; }
#webtools-links {
  display:flex; flex-wrap:wrap; justify-content:center; gap:10px; padding:12px;
}
#webtools-links a {
  flex:0 0 auto; display:flex; flex-direction:column;
  align-items:center; justify-content:center; min-width:120px;
  padding:10px 12px; text-decoration:none; color:var(--wt-text);
  background:var(--wt-chip-bg); border:1px solid var(--wt-border);
  border-radius:6px; transition:background .15s ease, transform .12s ease;
}
#webtools-links a:hover { background:var(--wt-chip-bg-hover); transform:translateY(-1px); }
#webtools-links .title { font-weight:700; font-size:14px; }
#webtools-links .desc  { color:var(--wt-muted); font-size:12px; line-height:1.2; }