@base-color: var(--bi-jz-font-color);
@color1: #2e74ff;
.dashboard-designer {
  background-color: #f0f2f5;
  .text-overflow{
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .middle{
    vertical-align: middle;
  }

  //input
  .jzliu-bi-engine-bi-header-name-input {
    transition: 0.3s all;
    width: 300px;
    min-width: 150px;
    border: 1px solid transparent;
    box-shadow: none;
    font-size: 16px;
    background-color: transparent;
    color: var(--bi-jz-font-color);
    height: 30px;
    padding: 0 10px;
    outline: none;
    &:hover {
      border: 1px solid @color1;
    }
  }

  //button
  .jzliu-bi-engine-bi-header-btn {
    min-width: 108px;
    height: 26px;
    border-radius: 20px;
    border: 1px solid @color1;
    color: var(--bi-jz-font-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
  }

  .jzliu-bi-engine-bi-header-btn.primary {
    background: @color1;
  }

  .jzliu-bi-engine-bi-header-btn.default {
    background: transparent;
  }

  .close-setting-panel {
    width: 40px !important;

    .el-icon-s-unfold {
      transform: rotate(180deg);
    }
  }

  .self-icon {
    color: @base-color;
    position: absolute;
    right: 12px;
    display: inline-flex;
    margin-top: 14px;
    font-size: 20px;
    cursor: pointer;
    transition: all .2s ease;
  }

  .jzliu-bi-engine-chart-warp {
    width: 100%;
    height: 100%;
  }

  .shadow {
    border-color: #468cff !important;
  }

  li {
    list-style: none;
  }

  .el-button--primary {
    width: 100%;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 2px;
    background-color: @color1;
    border-color: @color1;
    border-radius: 0;

    &:hover {
      background-color: #4794ff;
      border-color: #4794ff;
    }
  }

  .drag-warp {
    width: 100%;
    height: 100%;
  }

  .components-widgets {
    display: flex;
    align-items: center;
  }


  //顶部logo

  .component-type-cross-table {
    background-position: 15px -875px;
  }

  .component-type-bar {
    background-position: -143px -875px;
  }

  .component-type-pie {
    background-position: -543px -875px;
  }

  .component-type-line {
    background-position: -306px -875px;
  }

  .component-type-indicator-card {
    background-position: -63px -875px;
  }  
  
  .component-type-gauge {
    background-position: -700px -880px
  }


  .seprate {
    border-right: 1px solid hsla(0, 0%, 100%, .3);
    width: 0;
    height: 20px;
    margin: 0 4px
  }

  .components-item {
    width: 35px;
    height: 35px;
    border-radius: 2px;
    margin: 0 2px;

    :hover {
      background-color: hsla(0, 0%, 100%, .15)
    }

    > div {
      width: 70px;
      height: 70px;
      display: block;
      position: relative;
      left: 0;
      top: 0;
      background-image: url('../img/panel.png');
      background-repeat: no-repeat;
      -webkit-transform: scale(.5);
      transform: scale(.5);
      transform-origin: left top;
      cursor: pointer;
    }
  }

  .require-icon {
    color: #f23c3c;
    font-size: 14px;
    margin-right: 4px;
  }

  .vue-grid-item.vue-grid-placeholder {
    background: #ada3a3;
  }

  .ui-schema-antd-tree {
    flex-grow: 1;
    overflow-y: auto;
    padding: 8px 12px;
    padding-top: 0;
    box-sizing: border-box;
    color: rgba(0, 0, 0, .65);
    font-size: 14px;
    font-variant: tabular-nums;
    line-height: 1.5;
    list-style: none;
    font-feature-settings: "tnum";
    margin: 0;

    > li {
      padding: 2px 0;
    }

    li {
      margin: 0;
      padding: 4px 0;
      white-space: nowrap;
      list-style: none;
      outline: 0;
    }

    .field-tree-left {
      cursor: pointer;

      li {
        .field-tree-item-warp {
          padding-left: 29px;
        }
      }

      ul {
        padding-left: 0;
      }

      .open-rotate {
        transform: rotate(90deg);
      }

      .el-icon-caret-right {
        transition: all 0.3s;
        color: @base-color;
        font-size: 12px;
      }

      .field-tree-item-warp-flex{
        display: flex;
        align-items: center;
      }

      .field-tree-item-warp {
        transition: all 0.3s;
        flex: 1;
        margin-left: 4px;
        .bi_dashboard_text_overflow

        &:hover {
          background-color: hsla(0, 0%, 100%, .1);
        }
      }

      .field-tree-text {
        max-width: 140px;
        color: @base-color;
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        display: inline-block;
        line-height: 1;
      }
    }
  }
}

.jzliu-bi-engine-vertical-text {
  height: 60px;
  width: 100%;
  color: var(--bi-jz-font-color);
  font-size: 14px;
  letter-spacing: 3px;
  cursor: pointer;
  writing-mode: tb-rl;
  writing-mode: vertical-lr;
  justify-content: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  &:hover {
    color: #5890FF;
  }
}

/* Element UI 组件 label 样式 */
.cdsp_dashboard .el-input__label,
.cdsp_dashboard .el-form-item__label,
.cdsp_dashboard .el-checkbox__label,
.cdsp_dashboard .el-radio__label,
.cdsp_dashboard .el-select__label,
.cdsp_dashboard .el-cascader__label,
.cdsp_dashboard .el-date-editor__label,
.cdsp_dashboard .el-time-picker__label,
.cdsp_dashboard .el-switch__label,
.cdsp_dashboard .el-slider__label,
.cdsp_dashboard .el-rate__label,
.cdsp_dashboard .el-color-picker__label,
.cdsp_dashboard .el-transfer__label,
.cdsp_dashboard .el-upload__label,
.cdsp_dashboard .el-button__label,
.cdsp_dashboard .el-tag__label,
.cdsp_dashboard .el-badge__label,
.cdsp_dashboard .el-alert__label,
.cdsp_dashboard .el-message__label,
.cdsp_dashboard .el-notification__label,
.cdsp_dashboard .el-dialog__label,
.cdsp_dashboard .el-drawer__label,
.cdsp_dashboard .el-popover__label,
.cdsp_dashboard .el-tooltip__label,
.cdsp_dashboard .el-pagination__label,
.cdsp_dashboard .el-table__label,
.cdsp_dashboard .el-tree__label,
.cdsp_dashboard .el-menu__label,
.cdsp_dashboard .el-breadcrumb__label,
.cdsp_dashboard .el-steps__label,
.cdsp_dashboard .el-tabs__label,
.cdsp_dashboard .el-card__label,
.cdsp_dashboard .el-collapse__label,
.cdsp_dashboard .el-timeline__label,
.cdsp_dashboard .el-carousel__label,
.cdsp_dashboard .el-image__label,
.cdsp_dashboard .el-avatar__label,
.cdsp_dashboard .el-skeleton__label,
.cdsp_dashboard .el-empty__label,
.cdsp_dashboard .el-result__label,
.cdsp_dashboard .el-descriptions__label,
.cdsp_dashboard .el-calendar__label,
.cdsp_dashboard .el-backtop__label,
.cdsp_dashboard .el-affix__label,
.cdsp_dashboard .el-anchor__label,
.cdsp_dashboard .el-page-header__label,
.cdsp_dashboard .el-divider__label,
.cdsp_dashboard .el-link__label,
.cdsp_dashboard .el-text__label,
.cdsp_dashboard .el-space__label,
.cdsp_dashboard .el-scrollbar__label,
.cdsp_dashboard .el-infinite-scroll__label,
.cdsp_dashboard .el-loading__label,
.cdsp_dashboard .el-message-box__label,
.cdsp_dashboard .el-popconfirm__label,
.cdsp_dashboard .el-autocomplete__label,
.cdsp_dashboard .el-input-number__label,
.cdsp_dashboard .el-rate__label,
.cdsp_dashboard .el-slider__label,
.cdsp_dashboard .el-switch__label,
.cdsp_dashboard .el-time-select__label,
.cdsp_dashboard .el-time-picker__label,
.cdsp_dashboard .el-date-picker__label,
.cdsp_dashboard .el-date-range-picker__label,
.cdsp_dashboard .el-month-picker__label,
.cdsp_dashboard .el-year-picker__label,
.cdsp_dashboard .el-week-picker__label,.cdsp_dashboard .el-quarter-picker__label,
.cdsp_dashboard .el-datetime-picker__label,
.cdsp_dashboard .el-datetime-range-picker__label {
  font-size: 12px !important;
}

.cdsp_dashboard .sortable-ghost {
  margin: 9px 9px;
  padding: 4px 8px;
  background-color: var(--color-primary);
  border: 1px dashed var(--color-primary);
  color: #fff !important;
}
