.control-group {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding-top: 5px;
  pointer-events: auto;
}

.message-view {
  background-color: #c4e3f3;
  border-bottom-color: #5bc0de;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  display: flex;
  flex-flow: row;
}

.tooltip {
  position: relative;
  display: inline;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 231px;
  background-color: #555;
  color: #fff;
  text-align: start;
  padding: 5px 0;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.tooltip-table {
  width: inherit;
  max-width: 225px;
  white-space: wrap;
  table-layout: auto;
  border-collapse: collapse;
  margin: 3px;
  font-size: x-small;
}

table.tooltip-table tr {
  width: inherit;
  flex-direction: column;
}

table.tooltip-table td {
  white-space: wrap;
}

.maplibregl-popup-close-button {
  background-color: transparent;
  border-radius: 0 3px 0 0;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 0;
  width: 16px;
  height: 16px;
  color: black;
  padding: 0;
}

div.maplibregl-popup-content table tr th {
  color: black;
  padding: 4px 8px;
  white-space: nowrap;
  text-wrap: nowrap;
  background-color: #DDD;
}

div.maplibregl-popup-content table tr td {
  color: black;
  padding: 4px 8px;
  background-color: #EEE;
}

div.maplibregl-popup-content table td div.wrappable {
  width: 125px;
  font-family: Arial;
  font-weight: lighter;
  text-wrap: wrap;
}

div.maplibregl-popup-content table tr td:first-child,
div.maplibregl-popup-content table tr th:first-child {
  white-space: nowrap;
  border-left: none;
}

div.maplibregl-popup-content table tr:first-of-type td,
div.maplibregl-popup-content table tbodytr:first-of-type th {
  border-top: none;
  white-space: nowrap;
  text-align: center;
  background-color: #EEEEEE;
}

.in-circle {
  display: inline-block;
  background: #333;
  color: #fff;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  line-height: 11px;
  text-align: center;
  font-size: 9px;
  font-family: Verdana;
  cursor: hand;
}

.tick-data {
  color: black;
}

.tick-larva {
  cursor: url("../res/infotick/tick_l.jpeg"), auto;
  width: 24px;
}

.tick-nymph {
  cursor: url("../res/infotick/tick_n.jpeg"), auto;
  width: 32px;
}

.tick-male {
  cursor: url("../res/infotick/tick_am.jpeg"), auto;
  width: 50px;
}

.tick-female {
  cursor: url("../res/infotick/tick_af.jpeg"), auto;
  width: 50px;
}

.selector-control.map-control-panel {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.map-control-title {
  color: #162033;
  font-size: 14px;
  font-weight: 700;
}

.map-control-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.map-control-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(23, 35, 78, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
}

.map-control-stat-label,
.map-control-label {
  color: rgba(22, 32, 51, 0.72);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.map-control-stat-value {
  color: #17234e;
  font-size: 15px;
  font-weight: 700;
}

.map-control-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.map-control-field-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-control-input,
.map-control-range {
  width: 100%;
  box-sizing: border-box;
}

.map-control-input {
  pointer-events: auto;
  padding: 8px 10px;
  border: 1px solid rgba(23, 35, 78, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  color: #152033;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.map-control-input:focus,
.map-control-range:focus {
  outline: 2px solid rgba(23, 35, 78, 0.16);
  outline-offset: 1px;
}

.map-control-input option {
  color: #152033;
}

.map-control-time.is-hidden {
  display: none;
}

.map-control-range {
  accent-color: #17234e;
}

.map-control-range-value {
  color: #17234e;
  font-size: 12px;
  font-weight: 600;
}

.map-control-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #17234e;
  font-size: 13px;
  font-weight: 500;
}

.map-control-toggle input {
  margin: 0;
  accent-color: #17234e;
}

.map-control-toggle.is-disabled {
  opacity: 0.55;
}


.selector-point-icon {
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAALdJREFUOI1jYMAOFID4GxD/h+JvUDGiQAkQX8QifgkqhxdwAPETJP40KIaBJ1A1OMEeIGaFskFOF4Pi/1AxkNxufAbAFDoCcRySeAIQO6CpwWuABBAvQRJfCsTixBiAHHingfg+FJ9CEr+Az4AcILbCI28DxNn4DACBc3jkzhPSDAL4/IjX/zCQDMSxWMTjoHJEAWw2EWU7DOQCcToSPwMqRhL4j4NNNJAE4ttQLEGOASCwFIpxAgBU8ChLMbI4+AAAAABJRU5ErkJggg==") no-repeat center;
  padding-left:16px;
}
.selector-poly-icon {
  padding-left:16px;
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAA3lBMVEUAAAAzMzMUFBQzMzMzMzMmJiYTExMwMDAxMTEyMjIzMzMcHBwyMjIzMzMzMzMdHR0wMDAMDAwVFRUwMDAcHBwzMzMyMjImJiYfHx8jIyMnJycxMTEnJycMDAwODg4vLy8zMzMsLCwhISEWFhYQEBAdHR0JCQkxMTEuLi4KCgotLS0wMDAeHh4wMDAzMzMrKyszMzMZGRkoKCgyMjIUFBQUFBQeHh4bGxszMzMQEBATExMzMzMmJiYzMzMcHBwNDQ0sLCwyMjItLS0zMzMjIyMnJychISEcHBwUFBQzMzOy2E7gAAAASXRSTlMA2irU8lIXnsLc6UjN3OBIqAEXtS30vW1DUmG1YAQJnf18RhsJLQTEpgSdsk2u+4XJNmTTCx8zJvcIEt5W+iMEhc+J6kdjQTcXgxA5kQAAAJhJREFUeF5NjtUagzAMRtOtDBkw5u7u7u7r+7/QaGj5OBdJzn/zBzgRQhIQJMpYMhcPBAV9mjXtDFWEN422O1NpVhVBsY4rrzmel8wyIBX9hQ21DwgaVgsbYiBxNAU63V4fJANGAYYj8BlPVIDZ3PfFcuVOey19Y2z52u2FH4746el8Qb3e7g88KHuGOZasV+k7xPkS8uP+BxJpDX3y3etIAAAAAElFTkSuQmCC") no-repeat center;
}

.btn-active {
  border: #17234E solid thin;
  background: #17234E;
}

.btn-inactive {
  border: #FFFFFF solid thin;
}

.invisible {
  visibility: collapse;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  display: block;
  margin: 10% auto;
  max-width: 90%;
  max-height: 80%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.record-counter {
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.4);
  color: #000;
  padding: 8px 8px;
  border-radius: 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-direction: column;
}

.record-counter .label {
  opacity: 0.75;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.record-counter .count {
  font-size: 20px;
  font-weight: 600;
  color: #00ff99;
}
