.map {
  width: 100%;
  height: calc(100% - 80px);
}

body {
  overflow: hidden;
}

#map {
  position: absolute;
  top: 50px;
  bottom: 0px;
  left: 0px;
  right: 0px;
  /*z-index: 1;*/
}

.ol-overviewmap {
  right: 10px;
  left: unset;
  bottom: 0.5em;
  
}
.ol-overviewmap .ol-overviewmap-map {
  width: 200px;
}

.ol-overviewmap-box {
  border: 1px solid #6c757d;
  background-color: #8080806e;
}

.ol-overviewmap:not(.ol-collapsed) button {
  bottom: 1px;
  right: 1px;
  left: unset;
  position: absolute;
}


a {
  color: rgba(0, 59, 136, 0.5);
  text-decoration: none;
}

a:focus,
a:hover {
  color:rgba(1, 68, 157); 
  text-decoration: none;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.panel-title {
  margin: auto;
  margin-top: 10px;
  text-align: center;
}

#drawTools {
  display: none;
  position: absolute;
  top: 221px;
  right: 60px;
  transform: translateX(0); 
  z-index: 1000;
  border-radius: 5px;
  max-width: max-content;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
}



#atributeInfoButton {
  position: absolute;
  right: -2px;
  top: 115px;
  height: 43px;
  width: 42px;
  border: var(--bs-btn-border-width) solid #0d6efd00;
  z-index: 1000;
}
#selectButton{
  position: absolute;
  right: -2px;
  top: 163px;
  height: 43px;
  width: 42px;
  border: var(--bs-btn-border-width) solid #0d6efd00;
  z-index: 1000;
}

#toggleDrawButtons{
  position: absolute;
  right: -2px;
  top: 210px;
  height: 43px;
  border: var(--bs-btn-border-width) solid #0d6efd00;
  z-index: 1000;
}

#addUserDataButton{
  position: absolute;
  right: -2px;
  top: 257px;
  height: 43px;
  border: var(--bs-btn-border-width) solid #0d6efd00;
  z-index: 1000;
}

#instructionButton{
  position: absolute;
  right: -2px;
  top: 305px;
  height: 43px;
  border: var(--bs-btn-border-width) solid #0d6efd00;
  z-index: 1000;
}

.instructionPanelText {
  text-align: justify;
  margin-bottom: 5px;
}

#instructionPanel {
  position: fixed;
  top: 50px;
  bottom: 30px;
  right: -320px;
  width: 300px;
 /* height: 100%;*/
  padding: 10px;
  background-color: #fff;;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow: auto; 
}


.navbar-header {
  display: flex;
}

.text {
  padding: 10px 15px 5px 20px;
  font-family: 'Days One', sans-serif;
  font-size: 20px;
  color: #f3f3f3 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.navbar>.container-fluid {
  display: unset;
}


.navbar-default {
  background: rgba(0, 59, 136, 0.6);
}

.panel {
  border-color: #ddd;
  background-color: rgba(0, 60, 136, .5);
  margin-bottom: 20px;
  padding: 10px;
}

.panel-body {
  border-color: #ddd;
  background-color: rgb(226, 226, 226);
}

.panel-default>.panel-heading {
  color: #333;
  background-color: unset;
  border-color: #ddd;
}


/*Кнопки зума и разворачивания базовых слоев*/
.webmap-ctrl-top-left {
  left: unset;
  right: 10px;
  top: 0;
}
div.webmap-ctrl-top-left {
  left: unset;
}

.webmap-ctrl-group button {
  display: block;
  padding: 0 0 4px 0;
  color: rgba(0, 59, 136, 0.5);
  font-size: 1.14em;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  line-height: .4em;
  background-color: #fff;
  border: none;
  border-radius: 2px;
}

.ol-zoom {
  font-size: 1.2em;
  top: 5px;
  right: 10px;
  left: unset
}

/***************/
.ol-control {
  background-color: var(--ol-subtle-background-color);
    border-radius: 4px;
}

.ol-control button {
  display: block;
  padding: 0 0 4px 0;
  color: rgba(0, 59, 136, 0.5);
  font-size: 1.14em;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  line-height: .4em;
  background-color: #fff;
  border: none;
  border-radius: 2px;
}


.sidebar {
  z-index: 3;
}

/*кнопки запуска сервисов и рисования*/
.btn {
  margin: 10px;
  background-color: rgba(0, 59, 136, 0.5);
  --bs-btn-hover-bg: rgba(0, 59, 136, 0.8);
}

.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
  background-color: rgba(0, 59, 136, 0.8);
}

.toolbox {
  margin: 20px 20px 0 0;
}

.service-name {
  display: inline;
  text-align: center;
  color: white;
}

.service_info{
  text-align: justify;
  margin: 10px;
  color: rgba(0, 59, 136, 0.8);
}

.main-row {
  position: relative;
  top: 0;
}

/*Всплывающее окно с атрибутивной информацией*/
.ol-popup {
  position: absolute;
  background-color: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #cccccc;
  bottom: 12px;
  left: -50px;
  min-width: 300px;
}

.ol-popup:after,
.ol-popup:before {
  top: 100%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.ol-popup:after {
  border-top-color: white;
  border-width: 10px;
  left: 48px;
  margin-left: -10px;
}

.ol-popup:before {
  border-top-color: #cccccc;
  border-width: 11px;
  left: 48px;
  margin-left: -11px;
}

.ol-popup-closer {
  text-decoration: none;
  position: absolute;
  top: 2px;
  right: 2px;
  color: rgba(0, 59, 136, 0.5);
}

.ol-popup-closer:after {
  content: "✖";
}

.attribution {
  background-color: rgba(0, 59, 136, 0.5);
  color: white;
  padding: inherit;
  text-align: center;
}

code {
  padding: 2px 4px;
  font-size: 95%;
  color: rgb(0, 59, 136);
  background-color: unset;
  border-radius: 4px;
}

.popup-coordinates {
  border-radius: 8px;
  margin-bottom: 10px;
  margin-top: 15px;
  font-family: 'Arial', sans-serif;
}

.popup-attributes {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Arial', sans-serif;
}

.popup-attributes th,
.popup-attributes td {
  border: 1px solid #cccccc;
  padding: 8px;
  text-align: left;
}

.popup-attributes th {
  background-color: #f2f2f2; /* Серый фон для заголовка таблицы */
  font-weight: bold;
}

.popup-attributes tbody tr:nth-child(odd) {
  background-color: #f9f9f9; /* Полосатая таблица */
}

.layer-switcher li.group > label {
  font-weight: 500;
}

.layer-switcher li label {
  padding-right: unset;
}

/*Дерево слоев*/
.list-group {
  padding-right: 17px;
  margin-bottom: unset;
}

.list-group-item {
  padding: 10px;
  border: unset;

}


.layer-name {
  flex-grow: 1;
  font-size: 16px;
  /*font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;*/
  padding-left: 5px;
  display: inline;
  color: black;
  /*font-weight: 600;*/
  line-height: 1.2;
}

.fa-close {
  cursor: pointer;
  margin-left: 10px;
}

.layer-legend {
  display: none;
  margin-top: 10px
}

.layer-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ccc;
}
/*.layer-name:hover {
    color: rgba(1, 68, 157, 0.571);
}*/

.remove-layer {
  cursor: pointer;
  color: red;
  float: right;
  margin-top: 20px;
  margin-right: 10px;
}
.remove-label {
  cursor: pointer;
  color: red;
  float: right;
  margin-top: 20px;
  margin-right: 10px;
}

.polygonlayerslist {
  margin: 15px 10px 15px 10px;
}

/*sidebar*/
.layer-switcher {
  /*position: unset;*/
  top: unset;
  left: 0.2em;
}

.group > ul {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-5px);
  transition: max-height 0.5s ease-in-out, opacity 0s ease-in-out, transform 0.4s ease-in-out;
  padding: 0;
  margin: 0;
}

.group.layer-switcher-open > ul {
  max-height: max-content;
  opacity: 1;
  transform: translateY(0);
}



.layer-switcher .group button {
  margin: 5px 5px 0 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M4 6l4 4 4-4" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
 
}

.layer-switcher li input {
  margin-top: 5px;
}
.layer-switcher ul {
  margin-top: 10px;
  margin-bottom: 10px;
}
li.layer {
  margin-bottom: 15px;
}
/*Низ сайта*/
.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  padding-top: 5px;
  background-color: rgba(0, 59, 136, 0.897);
  color: white;
  text-align: center;
  height: 30px;
  z-index: 4000;
}


/*Индикатор загрузки при долгой загрузке данных*/
#loadingIndicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 5px;
  display: none;
  z-index: 7000;
}

#loadingIndicator .spinner {
  width: 24px;
  height: 24px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

.progress-bar-container {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  height: 24px;
  overflow: hidden;
  position: relative;
}

.loader {
  width: 10%;
  height: 100%;
  background-color: rgb(0 123 255 / 40%);
  border-radius: 4px;
  position: absolute;
  animation: moveLoader 2s linear infinite;
  
}

.progress-bar {
  height: 100%;
  background-color: #007bff;
  width: 0%;
  transition: width 0.5s ease;
}

#executeIndicator1, 
#executeIndicator2, 
#executeIndicator3, 
#executeIndicator4,
#executeIndicator5,
#executeIndicator6,
#executeIndicator7,
#executeIndicator8,
#executeIndicator {
  /*position: absolute;*/
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /*padding: 10px 20px;*/
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 5px;
  display: none;
  z-index: 4000;
}

#executeIndicator1 .spinner, 
#executeIndicator2 .spinner, 
#executeIndicator3 .spinner, 
#executeIndicator4 .spinner,
#executeIndicator .spinner
{
  width: 24px;
  height: 24px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes moveLoader {
  0% {
    left: 0;
  }

  100% {
    left: 100%
  }
}