@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@device-tree-prefix-cls: ~'@{ant-prefix}-device-tree';

.@{device-tree-prefix-cls} {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 5px;

  .@{ant-prefix}-divider {
    margin: 6px 0 12px 0;
  }

  .@{ant-prefix}-tree-checkbox {
    margin: 7px 2px 0 0;
  }

  .@{ant-prefix}-tree-title {
    white-space: nowrap;
  }

  .@{ant-prefix}-tree-treenode {
    width: 100%;
  }

  .@{ant-prefix}-tree-switcher {
    line-height: 30px;
  }

  .@{ant-prefix}-tree-switcher-noop {
    width: 14px;
  }

  .@{ant-prefix}-tree-node-content-wrapper {
    flex: 1;
    min-height: 30px;
    overflow: hidden;
    line-height: 30px;
    text-overflow: ellipsis;
    border-radius: 3px;
  }

  .@{ant-prefix}-tree .@{ant-prefix}-tree-node-content-wrapper.@{ant-prefix}-tree-node-selected {
    color: #1890ff;
    background-color: #eaf1fe;
  }

  &-content {
    flex: 1;
    overflow-y: scroll;
  }
}