.layout-datasource {
    .datasource-body {
        padding: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        &>.ant-card-head {
            padding: 0 10px;
            .datasource-tools {
                flex: 1;
                flex-wrap: nowrap;
                .anticon-bars {
                    cursor: pointer;
                    line-height: 1.6;
                    font-size: 20px;
                    margin-right: 6px;
                    &> svg {
                        height: 100%;
                    }
                }
                .group {
                    line-height: 2.1;
                    white-space: normal;
                    .ant-breadcrumb-link {
                        .ant-tag {
                            max-width: 200px;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                            overflow: hidden;
                            margin: -6px 0;
                        }
                    }
                    &.nogroup {
                        opacity: .7;
                    }
                }
                .search {
                    display: flex;
                    >div {
                        margin-left: 8px;
                    }
                    .btn-refresh {
                        border: none;
                        box-shadow: none;
                        font-size: 18px;
                        &:after {
                            content: none;
                        }
                    }
                }
            }
        }
        &>.ant-card-body {
            flex: 1;
            overflow: auto;
        }
    }
    .ant-card-body {
        height: 100%;
        padding: 0;
        .datasource-table{
            .ant-table {
                .ant-table-scroll {
                    .ant-table-header {
                        overflow: hidden;
                        table {
                            thead {
                                th {
                                    .ant-table-column-sorter, .ant-table-filter-icon {
                                        opacity: 0;
                                    }
                                    :hover {
                                        .ant-table-column-sorter, .ant-table-filter-icon {
                                            opacity: 1;
                                        }
                                    }
                                }
                                .column-filtered {
                                    .ant-table-filter-icon {
                                        opacity: 1;
                                        color: red;
                                    }
                                }
                            }
                        }
                    }
                    .ant-table-body {
                        margin-top: 0px;
                        overflow-y: auto !important;
                        table {
                            padding: 0;
                            .ant-table-row {
                                td {
                                    padding: 8px;
                                    .datasource-name {
                                        display: flex;
                                        .datasource-type {
                                            margin-right: 5px;
                                        }
                                    }
                                    .datasource-tag {
                                        margin: 2px;
                                        cursor: default;
                                    }
                                    .ant-dropdown-trigger {
                                        font-size: 18px;
                                        cursor: pointer;
                                    }
                                }
                                .action-col {
                                    display: flex;
                                    .operation {
                                        cursor: pointer;
                                    }
                                    .operation:hover {
                                        color: #40a9ff;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
.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;
}

.operationmenu {
    padding: 0;
    width: 120px;
    .ant-dropdown-menu-item {
        .anticon {
            margin-right: 6px;
        }
    }
    .ant-dropdown-menu-item-divider {
        margin: 0;
    }
    .setgroupmenu {
        .ant-dropdown-menu-submenu-title {
            display: flex;
        }
    }
}

// .ant-table-body::-webkit-scrollbar {/*滚动条整体样式*/
//     width: 6px;     /*高宽分别对应横竖滚动条的尺寸*/
//     height: 4px;
// }
// .ant-table-body::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
//     border-radius: 5px;
//     box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
//     background: rgba(0,0,0,0.2);
// }
// .ant-table-body::-webkit-scrollbar-track {/*滚动条里面轨道*/
//     box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
//     border-radius: 0;
//     background: rgba(0,0,0,0.1);
// }

.custom-filter-dropdown {
    padding: 8px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .2);
  }
  
  .custom-filter-dropdown input {
    width: 130px;
    margin-right: 8px;
  }