@import './vars';

.vtj-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;

  &__header-wrapper {
    display: flex;
    align-items: center;
  }
  &__back {
    font-size: 16px;
    padding: 5px;
    cursor: pointer;
    &:hover {
      opacity: 0.9;
      background-color: $--vtj-primary-color-light-9;
      border-radius: 4px;
      color: $--vtj-primary-color;
    }
  }

  &__header {
    display: flex;
    justify-content: space-between;
    height: 32px;
    align-items: center;
    padding: 0 10px;
    flex-shrink: 0;
    flex-grow: 1;
  }

  &__title {
    font-size: 14px;
    font-weight: bold;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  &__subtitle {
    font-size: 12px;
    font-weight: normal;
    color: $--vtj-secondary-color;
  }

  &__tools {
    font-size: 14px;
    i {
      padding: 5px;
      cursor: pointer;
      &:hover {
        opacity: 0.9;
        background-color: $--vtj-primary-color-light-9;
        border-radius: 4px;
        color: $--vtj-primary-color;
      }
    }
  }
  &__body {
    flex-grow: 1;
    // height: 1px;
    overflow: auto;
    .el-collapse {
      --el-collapse-header-height: 36px;
    }
    &.is-padding {
      padding: 10px;
    }
  }
  &__footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
  }
  &__icon {
    font-weight: normal;
  }
}

.vtj-sub-panel {
  height: auto;

  .vtj-panel__header {
    height: 30px;
    padding: 10px !important;
    background-color: $--vtj-background-color-dark-9;
    border-top: 1px solid $--vtj-border-color;
  }
  .vtj-panel__title {
    font-weight: normal;
    color: $--vtj-secondary-color;
    opacity: 0.9;
  }
  .vtj-panel__tools {
    color: $--vtj-secondary-color;
    opacity: 0.9;
  }
  .vtj-panel__body {
    background-color: $--vtj-background-color !important;
    height: auto;
  }
  .el-empty {
    padding: 10px;
  }
}

.dd {
  position: absolute;
  .vtj-dialog {
    position: static !important;
  }
}
