@import './vars.less';

.jad-tree-select-search-box {
    display: flex;

    .card-style {
        flex-basis: 400px;
        border: 1px solid @JG_BLACK_20_HSV;
        margin-right: 16px;
        overflow: auto;

        &.ant-card-small>.ant-card-body {
            height: 560px;
            padding: 8px 12px;

            .ant-card-head {
                font-size: 14px;
                padding: 0 12px;
            }
        }

        .select-search-tree {
            overflow: auto;
            max-height: calc(100% - 40px);
            .search-tree-node {
                .ant-tree-title {
                    display: flex;
                    > span {
                        max-width: 100%;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                    }
                }
            }
        }

        .selected-tree {
            overflow: auto;
            max-height: calc(100%);

            .selected-tree-node {
                .ant-tree-title {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;

                    > span {
                        max-width: calc(100% - 14px);
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                    }

                    .delete-icon {
                        visibility: hidden;
                        color: @primary-color;
                        font-size: 14px;
                    }

                    &:hover {
                        .delete-icon {
                            visibility: visible;
                            transition: all 1s;
                        }
                    }
                }

            }
        }
    }
}