.zl-lagre-screen-wrap {
  z-index: 1020;
  position: relative;
  display: flex;
  width: 199px;
  height: 100%;
  border-right: 1px solid var(--color-black);
  background-color: var(--color-title-bg);
  flex-direction: column;

  .zl-lagre-layer-wrap {
    height: calc(100% - 300px);

    .zl-ls-block-title-outerLine {
      width: 100%;
      height: 10px;
      border-bottom: 1px solid var(--color-black);
      cursor: n-resize;

      &::before {
        content: '';
        position: relative;
        top: -5px;
        display: flex;
        width: 100%;
        height: 5px;

        align-items: center;
        justify-content: center;
      }
    }
  }

  //图层标题样式
  .zl-lagre-screen-title {
    width: 100%;
    height: 50px;
  }

  //图层的层级关系样式
  .zl-lagre-screen-hierarchy {
    display: flex;
    width: 100%;
    height: 38px;
    min-height: 38px;
    padding: 0 4px;
    border-bottom: 1px solid var(--color-black);
    background: var(--color-layer-icon-title);

    align-items: center;
    justify-content: space-between;

    .zl-lagre-screen-hierarchy-item {
      display: flex;
      width: 100%;
      height: 100%;
      color: var(--color-font);
      font-size: var(--font-size-14);
      cursor: pointer;

      align-items: center;
      justify-content: center;

      &:hover {
        background-color: var(--color-stroies-page-bg);
      }
    }
  }

  //图层列表样式
  .zl-lagre-screen-list {
    width: 100%;
    height: calc(100% - 90px);
    padding-top: 10px;

    .zl-lagre-screen-no-layer {
      display: flex;
      width: 100%;
      height: 100%;
      color: var(--color-font);
      flex-direction: column;

      align-items: center;
      justify-content: center;

      img {
        width: 96px;
        height: 70px;
      }

      span {
        margin-top: 10px;
        color: var(--color-font);
      }
    }

    .zl-lagre-screen-layer-data {
      z-index: 10000;
      position: relative;
      overflow: auto;
      display: block;
      width: 100%;
      height: 100%;
      min-height: 130px;
      margin: 0;
      padding: 0 0 10px 0;
      background-color: var(--color-title-bg);
      flex-direction: column;

      & > li {
        position: relative;
        display: inline-block;
        width: 100%;
        color: var(--color-font);
        font-size: 12px;

        .zl-lagre-screen-liBlock {
          display: flex;
          min-height: 34px;
          padding-left: 20px;
          border: 1px solid transparent;
          white-space: nowrap;
          cursor: pointer;
          flex-direction: row;

          align-items: center;
          justify-content: flex-start;

          &.hover {
            border: 1px solid var(--color-main);
            // background-color: var(--color-stroies-page-bg);
          }

          input {
            margin-left: 10px;

            flex: 1;
          }

          .zl-icon {
            width: var(--font-size-14);
            height: var(--font-size-14);
          }
        }

        .zl-lagre-screen-layer-name {
          overflow: hidden;
          width: 0;
          height: 34px;
          padding-right: 10px;
          padding-left: 10px;
          line-height: 34px;
          color: var(--color-stories-font);
          font-size: 12px;
          vertical-align: middle;
          white-space: nowrap;
          text-overflow: ellipsis;

          flex: 1;
        }
      }

      .zl-lagre-screen-active {
        background-color: var(--color-stroies-page-btn);

        span {
          color: var(--color-white);
        }


        // &:hover {
        //   background-color: var(--color-guides-text);
        // }
      }

      &::-webkit-scrollbar {
        display: none;
      }
    }

    .zl-lagre-screen-layer-list-child {
      display: block;
      width: 100%;
      margin: 0;
      padding: 0 0 0 18px;

      li {
        display: inline-block;
        width: 100%;
        color: var(--color-font);

        .zl-lagre-screen-expandSpan {
          font-size: 15px;

          .zl-icon {
            width: 12px;
            height: 12px;
          }
        }
      }
    }
  }

  .zl-ls-ant-input {
    margin-right: 10px;
    border: none;
    background-color: var(--color-black);
    color: var(--color-white);
    font-size: 12px;
  }

  .zl-ls-gis-title {
    display: flex;
    padding: 0 18px;
    border-top: 1px solid var(--color-stories-border);
    border-bottom: 1px solid var(--color-stories-border);
    line-height: 48px;
    background: var(--color-title-bg);
    color: var(--color-title-wrap);
    font-weight: 500;
    font-size: var(--font-size-14);

    align-items: center;

    span {
      margin-left: var(--spacing);
    }
  }

  .zl-lagre-screen-add-gis-child {
    display: flex;
    width: 100%;
    height: 36px;
    padding: 0 var(--spacing20);
    background: var(--color-layer-icon-title);

    align-items: center;
    justify-content: space-between;

    span {
      display: flex;
      color: var(--color-title-wrap);
      font-size: var(--font-size-12);
    }

    .zl-icon {
      width: 14px;
      height: 14px;
      color: var(--color-title-wrap);
    }
  }

  .zl-lagre-screen-gis-list {
    overflow-y: auto;
    width: 100%;
    height: calc(100% - 90px);

    &::-webkit-scrollbar {
      display: none;
    }

    .active {
      background-color: var(--color-stroies-page-btn);
    }

    p {
      display: inline-block;
      display: flex;
      width: 100%;
      min-height: 35px;
      padding-left: 20px;
      color: var(--color-font);
      font-size: 12px;
      white-space: nowrap;
      cursor: pointer;

      align-items: center;

      &:hover {
        background-color: var(--color-stroies-page-bg);
      }

      span {
        overflow: hidden;
        height: 35px;
        padding-right: 10px;
        padding-left: 10px;
        line-height: 35px;
        color: var(--color-moveable-control);
        color: var(--color-stories-font);
        font-size: var(--font-size-12);
        vertical-align: middle;
        white-space: nowrap;
        text-overflow: ellipsis;

        -webkit-box-flex: 1;
        flex: 1 1;
      }
    }
  }
}

// 右键菜单
.zl-ls-layer-content-context-menu {
  z-index: 3000;

  .zl-ls-ant-popover-content {
    width: 128px;
  }

  .zl-ls-ant-popover-arrow-content {
    background-color: var(--color-context-menu-arrow);

    &::before {
      background: -webkit-gradient(linear, right top, left top, color-stop(50%, var(--color-context-menu-arrow)), color-stop(0, var(--color-context-menu-arrow))) no-repeat -10px -10px;
    }
  }

  .zl-ls-ant-popover-inner {
    background-color: var(--color-component-select-menu);
    color: var(--color-select-font);

    .zl-ls-ant-popover-inner-content {
      padding: 4px 0;
    }
  }

  .zl-ls-board-content-menus {
    margin: 0;
    padding: 0;

    .zl-ls-board-content-item {
      display: flex;
      width: 128px;
      margin: 0;
      padding: 0 16px;
      line-height: 30px;
      color: var(--color-select-font);
      font-size: var(--font-size-12);
      cursor: pointer;

      align-items: center;

      &:hover {
        background-color: var(--color-box-menu-hover);
      }

      &:active {
        background-color: var(--color-box-menu-active);
      }
    }

    .zl-ls-board-content-item-disabled {
      display: flex;
      width: 140px;
      margin: 0;
      padding: 0 16px;
      line-height: 30px;
      color: var(--color-menu-list-disabled);
      font-size: var(--font-size-14);
      cursor: not-allowed;

      align-items: center;
    }

    .zl-icon {
      width: var(--font-size-14);
      height: var(--font-size-14);
      margin-right: 10px;
    }
  }
}

.zl-lagre-screen-add-gis-child-popover-wrap {
  .zl-ls-ant-popover-inner-content {
    padding: 0;
    background: var(--popover-background);
  }

  .zl-ls-ant-popover-arrow-content {
    display: none;
  }

  .zl-lagre-screen-add-gis-child-popover {
    width: 268px;
    height: auto;
    padding-bottom: 10px;
    border-radius: var(--border-radius-4);
    background: var(--popover-background);

    .zl-lagre-screen-add-gis-child-popover-title {
      display: flex;
      width: 100%;
      height: 49px;
      margin: 0;
      padding: 0 var(--spacing20);
      border-radius: var(--border-radius-4) var(--border-radius-4) 0 0;
      background: var(--popover-background);

      justify-content: space-between;
      align-items: center;

      span {
        color: var(--color-popconfirm--btn-font-color);
        font-size: var(--font-size-14);
      }

      .zl-icon {
        width: 14px;
        height: 14px;
        color: var(--color-popconfirm--btn-font-color);
        cursor: pointer;
      }
    }

    .zl-lagre-screen-add-gis-child-popover-content {
      display: flex;
      width: 100%;
      height: auto;
      padding: 10px var(--spacing20) 0 var(--spacing20);
      border-top: 1px solid var(--popover-gis-border);

      flex-wrap: wrap;
      justify-content: space-between;

      .zl-lagre-screen-add-gis-child-popover-content-div {
        display: flex;
        width: 104px;
        height: 100px;
        margin: 10px 0;
        border: 1px solid var(--color-compoent-card-boder);
        border-radius: var(--border-radius-4);
        cursor: pointer;
        flex-direction: column;

        img {
          height: calc(100px - 24px);
        }

        span {
          height: 24px;
          line-height: 24px;
          text-align: center;
          background: var(--color-compoent-card-boder);
          color: var(--color-popconfirm-font-color);
          font-size: var(--font-size-12);
        }
      }
    }
  }
}

.zl-lagre-screen-gis-list-menu-dropdown {
  .zl-ls-ant-dropdown-menu-item
  , .zl-ls-ant-dropdown-menu-submenu-title {
    color: var(--color-component-select-font-color);
    font-size: var(--font-size-12);
  }

  .zl-ls-ant-dropdown-menu-item-selected
  , .zl-ls-ant-dropdown-menu-submenu-title-selected {
    background: var(--color-select-wrap-active);
  }

  .zl-icon {
    margin-right: 12px;
  }

  .zl-icon-font {
    margin-right: 12px;
  }
}

.space-group {
  width: 24px;
  height: 100%;
}
