.ol-map-tools {
    position: absolute;
    background: #fff;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.26);

    .ol-map-tools-open {
        opacity: 1;
        transition: max-height 0.3s, opacity 0.3s;
    }

    .ol-map-tools-close {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }
}

.ol-map-tools-layer-tree-wrap {
    max-height: 400px;
    overflow-y: auto;
    background: transparent;

    &::-webkit-scrollbar {
        /*滚动条整体样式*/
        width: 0; /*高宽分别对应横竖滚动条的尺寸*/
        height: 0;
    }

    .ol-map-tools-layer-tree {
        background: transparent;
        color: #fff;

        .ant-tree-icon__customize {
            margin-right: 4px;

            .ol-map-tools-layer-tree-legend {
                max-height: 24px;
                padding-bottom: 4px;
            }
        }
    }
}

.base-map-switch-list-wrap {
    width: 300px;

    .base-map-switch-list-title {
        font-size: 18px;
    }

    .base-map-switch-list {
        max-height: 400px;
        overflow-y: scroll;

        &::-webkit-scrollbar {
            /*滚动条整体样式*/
            width: 0;
            /*高宽分别对应横竖滚动条的尺寸*/
            height: 0;
        }

        .base-map-switch-list-label {
            font-size: 14px;
            margin: 5px 0;
        }

        .base-map-switch-list-item-wrap {
            // border: 1px solid #999;
            border-radius: 5px;
            padding: 5px;
        }

        .base-map-switch-list-item {
            cursor: pointer;

            .base-map-switch-list-item-img {
                width: 100%;
                border: solid 1px #999;
                border-radius: 9px;
            }

            .base-map-switch-list-item-label {
                margin-top: 4px;
                text-align: center;
                font-size: 12px;
                // color: #FFF;
            }

            &:hover {
                .base-map-switch-list-item-img {
                    border-color: #fff;
                    box-shadow: 0 0 8px #fff, 0 0 8px #fff;
                }
            }
        }

        .base-map-switch-list-item-active {
            .base-map-switch-list-item-img {
                border: double 4px #0080ff;
            }

            .base-map-switch-list-item-label {
                color: #0080ff;
            }

            &:hover {
                .base-map-switch-list-item-img {
                    border: double 4px #0080ff;
                }

                .base-map-switch-list-item-label {
                    color: #0080ff;
                }
            }
        }
    }
}

.analysis-tool-list {
    max-height: 60vh;
    user-select: none;

    overflow-y: auto;

    .anticon {
        padding-right: 6px;
    }

    .analysis-tool-list-title {
        display: flex;
        align-items: center;
        font-weight: bold;
    }

    .analysis-tool-list-sub {
        margin-left: 8px;

        .analysis-tool-list-sub-item {
            display: flex;
            align-items: center;
            cursor: pointer;
            padding: 5px 8px;
            border-bottom: 1px dashed #cccccc;
            font-size: 14px;
            user-select: none;
        }

        .analysis-tool-list-sub-item-active {
            background: #aedcff;
        }
    }
}
