.layout-chart {
    &>.ant-layout-content {
        display: flex;
        flex-direction: column;
        &>.ant-card {
            min-height: calc(~'100% - 64px');
            display: flex;
            flex-direction: column;
            &>.ant-card-head {
                height: 64px;
                min-height: 64px;
                padding: 0 10px;
                .tools {
                    flex: 1;
                    flex-wrap: nowrap;
                    .groups {
                        .group {
                            line-height: 2.1;
                            white-space: normal;
                            .ant-breadcrumb-link {
                                .ant-tag {
                                    cursor: default;
                                    max-width: 200px;
                                    white-space: nowrap;
                                    text-overflow: ellipsis;
                                    overflow: hidden;
                                    margin: -6px 0;
                                    .anticon-bars {
                                        cursor: pointer;
                                        vertical-align: middle;
                                        font-size: 16px;
                                        margin-right: 8px;
                                        line-height: 18px;
                                    }
                                    &> span {
                                        cursor: pointer;
                                        font-size: 14px;
                                    }
                                }
                            }
                            &.nogroup {
                                opacity: .5;
                            }
                        }
                    }
                    .search {
                        display: flex;
                        >div {
                            margin-left: 8px;
                        }
                        .btn-refresh {
                            border: none;
                            background: none;
                            box-shadow: none;
                            font-size: 18px;
                            &:after {
                                content: none;
                            }
                        }
                    } 
                }
            }
            &>.ant-card-body {
                flex: 1;
                padding: 10px;
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                overflow: auto;
                &:before {
                    content: none;
                }
                &>.chart-body {
                    .chart-card {
                        width: 207px;
                        text-align: center;
                        margin: 8px;
                        padding: 0;
                        box-shadow: none;
                        border-radius: @border-radius-base;
                        &:hover {
                            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
                        }
                        &.hidden {
                            display: none;
                        }
                        &>.ant-card {
                            &>.ant-card-head {
                                min-height: 20px;
                                cursor: default;
                                padding: 0;
                                &>.ant-card-head-wrapper {
                                    &>.ant-card-head-title {
                                        font-size: 14px;
                                        padding: 6px 0;
                                        .ant-row-flex {
                                            flex: 1;
                                            .label {
                                                width: 100%;
                                                text-align: center;
                                            }
                                        }
                                        .anticon {
                                            cursor: pointer;
                                        }
                                    }
                                }
                            }
                        }
                        .ant-card-cover {
                            .cover-body {
                                padding: 10px;
                                .thumb {
                                    height: 132px;
                                    .deny-body {
                                        height: 100%;
                                        width: 100%;
                                        display: flex;
                                        position: absolute;
                                        text-align: center;
                                        justify-content: center;
                                        flex-direction: column;
                                        z-index: 1;
                                        .deny-tip {
                                            height: 40px;
                                            line-height: 40px;
                                            background: rgba(218, 218, 218, 0.5);
                                            border: 2px solid #aaaaaa;
                                            font-weight: bold;
                                        }
                                    }
                                    cursor: pointer;
                                    canvas {
                                        cursor: pointer;
                                    }
                                    .chart-thumbnail {
                                        width: 100%;
                                        height: 100%;

                                        &-table {
                                            background-image: url(../../../static/images/thumbnail-table.png);
                                            background-position: center;
                                            background-size: contain;
                                            background-repeat: no-repeat;
                                            cursor: pointer;
                                        }
                                        &-aggregateTable {
                                            background-image: url(../../../static/images/thumbnail-aggregateTable.png);
                                            background-position: center;
                                            background-size: contain;
                                            background-repeat: no-repeat;
                                            cursor: pointer;
                                        }
                                        &-indicator {
                                            background-image: url(../../../static/images/thumbnail-indicator.png);
                                            background-position: center;
                                            background-size: contain;
                                            background-repeat: no-repeat;
                                            cursor: pointer;
                                        }
                                        &-empty {
                                            background-image: url(../../../static/images/thumbnail-default.png);
                                            background-position: center;
                                            background-size: contain;
                                            background-repeat: no-repeat;
                                            cursor: pointer;
                                            opacity: .3;
                                        }
                                    }
                                }
                                .desc {
                                    text-align: left;
                                    height: 41px;
                                }
                                .footer {
                                    margin-top: 6px;
                                }
                            }
                            .ant-row-flex-bottom {
                                cursor: default;
                                .anticon {
                                    cursor: pointer;
                                }
                            }
                        }
                        .ant-card-body {
                            padding: 0;
                        }
                    }
                }
            }
        }
        .ant-pagination {
            height: 64px;
            padding: 16px;
            text-align: end;
            background: @content-background-color;
        }
    }
}
.popover-group {
    width: 300px;
    .grouptree-title {
        .create-group {
            cursor: pointer;
            color: #40a9ff;
        }
    }
    .ant-popover-inner-content {
        cursor: default;
        max-height: 60vh;
        overflow: auto;
    }
    .tree-group {
        li.drag-over {
            input {
                background-color: #40a9ff;
            }
        }
        li {
            .ant-tree-node-content-wrapper {
                width: 90%;
                height: 28px;
                margin: 0 !important;
                padding: 0;
                background-color: transparent;

                :hover {
                    background-color: transparent !important;
                }
                .ant-tree-node-selected {
                    background-color: transparent !important;
                }
                input {
                    max-width: 180px;
                    border: none;
                }
                .anticon-plus-circle-o {
                    margin-left: 5px;
                }
                .anticon-minus-circle {
                    margin-left: 5px;
                }
            }
            .drag-over {
                span[draggable] {
                    opacity: .7;
                }
            }
        }
    }
}
.tree-group li.drag-over > span[draggable] {
    opacity: .5;
}
.menu-operation {
    padding: 0;
    .ant-dropdown-menu-item {
        .anticon {
            margin-right: 6px;
        }
    }
    .ant-dropdown-menu-item-divider {
        margin: 0;
    }
    .setgroupmenu {
        .ant-dropdown-menu-submenu-title {
            display: flex;
        }
    }
}
.ant-tooltip-inner {
    background-color: rgba(255, 255, 255, .9);
    color: #666
}
.setgroupmenu {
    .ant-dropdown-menu-item.current {
        background-color: fade(@item-active-bg-color, 25%);
    }
}