.leaflet-pane.leaflet-marker-pane {
  .marker-cluster span {
    display: block;
    width: fit-content;
    min-width: 30px;
  }
}
.map-select-layout {
  .device-list-layout {
    width: 300px;
    height: calc(~'100% - 76px - 20px');
    z-index: 4;
    position: absolute;
    background: #fff;
    top: 76px;
    right: 20px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    .device-item {
      cursor: auto;
    }
  }
}
.map-select-draw-tools {
  position: absolute;
  right: 20px;
  top: 20px;
  height: 36px;
  line-height: 36px;
  background: #fff;
  width: 300px;
  cursor: auto;
  z-index: 2;
  .tools-layout {
    width: 100%;
    height: 100%;
    box-shadow: 2px 4px 10px 0 rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    display: flex;
    align-items: center;
    & > div {
      flex: 1;
      align-self: center;
      text-align: center;
      font-size: var(--fs-small);
      position: relative;
      height: 100%;
      cursor: pointer;
      .anticon {
        padding-right: 5px;
        color:  #8899bb;
      }
      &:hover {
        color: #189ddb;
        .anticon {
          color: #189ddb;
        }
      }
      &:before {
        content: '';
        position: absolute;
        width: 1px;
        height: 90%;
        top: 5%;
        left: 0;
        background-image: #dbe1ea;
      }
      &:first-child {
        &:before {
          content: none;
        }
      }
    }
    .draw-way {
      display: flex;
      justify-content: space-between;
    }
  }
}

.map-select-draw-operations {
  position: absolute;
  right: 20px;
  top: 20px;
  height: 44px;
  line-height: 44px;
  z-index: 2;
  display: flex;
  justify-content: space-around;
  box-shadow: 1px 1px 30px rgba(0, 0, 0, 0.2);
  .popover-switch {
    padding: 0 13px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 2px 4px 10px 0 rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    text-align: center;
    font-size: var(--fs-small);
    display: flex;
    justify-content: center;
    align-items: center;
    span {
      padding-right: 10px;
    }
  }
  .tools-layout-operations {
    width:460px;
    height: 100%;
    border-radius: 3px;
    display: flex;
    align-items: center;
    background: #fff;
    padding: 0 10px;

    & > div {
      flex: auto;
      align-self: center;
      text-align: center;
      font-size: var(--fs-small);
      position: relative;
      height: 100%;
      cursor: pointer;
      .anticon {
        padding-right: 5px;
        color:  #8899bb;
      }
      &:hover {
        color: #189ddb;
        .anticon {
          color: #189ddb;
        }
      }
      &:before {
        content: '';
        position: absolute;
        width: 1px;
        height: 90%;
        top: 5%;
        left: 0;
        background-image: #dbe1ea;
      }
      &:first-child {
        &:before {
          content: none;
        }
      }
    }
    .last-tools-draw{
      margin-right: 10px;
    }
    .draw-way {
      display: flex;
      justify-content: space-between;
    }
  }
  .tools-layout-switch {
    width: 100px;
    text-align: center;
    height: 100%;
    background: #fff;
    box-shadow: 2px 4px 10px 0 rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    cursor: pointer;
  }
}

.video-map-device-list-layout {
  width: 300px;
  height: 60%;
  position: absolute;
  background: #fff;
  top: 76px;
  right: 20px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  z-index: 4;
  .device-list-layout {
    position: unset;
    width: 100%;
    height: calc(~'100% - 48px');
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #dbe1ea;
  }
  .s-link-tools {
    height: 48px;
  }
}

.map-layout-checkbox-list {
  width: 126px;
  p {
    margin-bottom: 0;
    padding: 6px 0;
    line-height: var(--fs-small);
    font-size: var(--fs-small);
    display: flex;
    align-items: center;
    & > span {
      flex: 1;
      padding: 0 9px;
    }
  }
}
