.route_dialog_container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: calc(100vh - 40px);
  background: #fff;
  overflow: hidden;
  z-index: 100;
}

.route_dialog_header {
  position: absolute;
  display: flex;
  left: 0;
  top: 0;
  padding: 0 20px;
  height: 40px;
  width: 100%;
  background: #fff;
  overflow: hidden;
  border-bottom: 1px solid #c4c4c4;
  justify-content: space-between;
  align-items: center;
}

.route_dialog_header h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin: 0;
  font-size: 1.2rem;
}

.route_dialog_header .route_dialog_close_button {
  color: #000;
  cursor: pointer;
  transition: .3s;
}

.route_dialog_header .route_dialog_close_button:hover {
  color: red;
  transform: rotate(90deg);
}

.route_dialog_sub_header {
  position: absolute;
  display: flex;
  left: 0;
  top: 40px;
  padding: 0 20px;
  height: 40px;
  width: 100%;
  background: #e5e5e5;
  overflow: hidden;
  border-bottom: 1px solid #c4c4c4;
  justify-content: space-between;
  align-items: center;
}

.route_dialog_body {
  position: relative;
  left: 0;
  top: 80px;
  height: calc(100% - 130px);
  width: 100%;
  overflow: hidden;
}

.route_dialog_footer {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  height: 50px;
  width: 100%;
  background: #e5e5e5;
  border-top: 1px solid #c4c4c4;
  overflow: hidden;
  justify-content: center;
  align-items: center;
}

.route_dialog_body_content {
  position: absolute;
  left: 0;
  top: 0;
  padding: 10px 5px;
  width: 100%;
  background: #fff;
  height: calc(100vh - 170px);
  overflow-y: auto;
  transition: .3s;
}

.route_dialog_body_settings {
  position: absolute;
  right: -20px;
  top: 0;
  background: #e5e5e5;
  border-left: 1px solid #c4c4c4;
  width: 0px;
  height: calc(100vh - 170px);
  padding: 15px 10px;
  overflow-y: auto;
  transition: .3s;
}

.route_dialog_body_content.panel_settings_visible {
  width: calc(100% - 300px);
}

.route_dialog_body_settings.panel_settings_visible {
  width: 300px;
  right: 0;
}

.route_dialog_sub_header .uk-icon-button {
  border-radius: 6px;
  background: #fff;
  border: 1px solid #c4c4c4;
  transition: .3s;
}

.route_dialog_sub_header .uk-icon-button:not([disabled]):hover,
.route_dialog_sub_header .uk-icon-button:not([disabled]):focus {
  border-color: #999;
}

.route_dialog_sub_header .uk-icon-button[disabled] {
  cursor: default;
  color: #d2d2d2;
  border-color: #d2d2d2;
  background: #ededed;
}

.route_dialog_panel_routes_group {
  border: 1px solid transparent;
}

.route_dialog_panel_routes_group.selected {
  border-color: #92adc6;
}

.route_dialog_panel_routes_group.selected .routes_group_header {
  background: #92adc6;
}

.routes_group_header {
  font-weight: bold;
  background: #e5e5e5;
  padding: 6px 20px;
  margin: 0;
}

.routes_group_content {
  padding: 5px 5px 5px 50px;
}

.route_item_panel_top {
  display: flex;
  gap: 5px;
}

.route_item_container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 20px;
}

.route_item_container::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #ececec;
  position: absolute;
  left: -20px;
  top: calc(50% - 5px);
  border-radius: 50%;
}

.route_item_container.selected {
  background: #deefff;
}

.route_item_container.selected::before {
  background: #87aec7;
}

.route_item_container:hover::before,
.route_item_container.is-linked::before {
  background: #666;
}

.route_item_container .line {
  position: absolute;
  width: 18px;
  border-top: 1px dotted #666;
  left: -40px;
  top: 50%;
  display: none;
}

.route_item_container.is-linked .line {
  display: block;
}

.route_item_container.is-linked::after {
  content: '';
  position: absolute;
  left: -40px;
  top: -50%;
  bottom: -50%;
  border-left: 1px dotted #666;
}

.route_item_container.is-first::after {
  top: 50%;
}

.route_item_container.is-last::after {
  bottom: 50%;
}

.route_item_container .delete_item_route_button {
  position: absolute;
  right: 5px;
  cursor: pointer;
}

.route_item_container .delete_item_route_button:hover {
  color: red;
}