$prefix: 'teamix-pro-page-header';

.#{$prefix} {
  position: relative;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: auto 100%;

  & > .#{$prefix}-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 18px;
    height: var(--layout-header-height, auto);
    margin-bottom: var(--s-2, 8px);

    &.with-description {
      margin-bottom: 0;
      .#{$prefix}-right {
        align-self: flex-start;
        margin-top: 2px;
      }
    }
  }

  .#{$prefix}-left {
    padding-right: var(--s-4, 16px);
    min-width: 0;
  }

  .#{$prefix}-right {
    flex-shrink: 0;
  }

  .#{$prefix}-info {
    padding-top: var(--s-2, 8px);
    margin-bottom: 0;
    flex-direction: column;
  }

  .#{$prefix}-title {
    display: flex;
    font-size: var(--font-size-display-1, 24px);
    line-height: 1.5;
    flex-shrink: 0;
    font-weight: 500;
    align-items: center;
    word-break: break-all;
    color: var(--color-text1-4);

    &-name {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    &-tooltip-icon {
      position: relative;
      margin-left: 2px;
      display: inline-flex;
      top: -7px;
    }

    &-icon {
      padding: var(--s-1, 4px);
    }

    & > * {
      &:not(:last-child) {
        margin-right: var(--s-2, 8px);
      }
    }
  }

  .#{$prefix}-description {
    margin: var(--s-2, 8px) 0;
    color: var(--color-text1-2, #5a5a5a);
  }

  .#{$prefix}-data {
    margin: var(--s-4, 16px) 0;
    display: flex;
    align-items: center;

    &-item {
      &:not(:first-child) {
        margin-left: var(--s-6, 24px);
      }

      &-title {
        color: var(--color-text1-8, #848484);
      }

      &-num {
        font-size: var(--font-size-subhead, 16px);
        font-family: TXD-DIN-Medium;
        line-height: 1;
        margin-top: var(--s-1, 4px);
        color: var(--color-text1-3, #333333);
      }
    }
  }

  .#{$prefix}-operation {
    display: flex;

    & > * {
      &:not(:first-child) {
        margin-left: var(--s-2, 8px);
      }
    }
  }

  .#{$prefix}-nav {
    display: flex;
    flex-shrink: 0;
    align-items: center;
  }

  .#{$prefix}-extra {
    display: flex;
    align-items: center;
    color: var(--color-text1-2, #5a5a5a);
  }

  .#{$prefix}-link {
    color: var(--color-text1-2, #5a5a5a);
    margin-left: var(--s-4, 16px);
    &:first-child {
      margin-left: 0;
    }
  }

  .#{$prefix}-goback {
    cursor: pointer;
  }

  .#{$prefix}-color {
    &-blue {
      color: var(--color-notice-5);
    }
    &-green {
      color: var(--color-success-5);
    }
    &-orange {
      color: var(--color-warning-5);
    }
    &-red {
      color: var(--color-error-5);
    }
    &-yellow {
      color: var(--color-help-5);
    }
  }

  .#{$prefix}-bg-color {
    &-blue {
      background-color: var(--color-notice-5);
    }
    &-green {
      background-color: var(--color-success-5);
    }
    &-orange {
      background-color: var(--color-warning-5);
    }
    &-red {
      background-color: var(--color-error-5);
    }
    &-yellow {
      background-color: var(--color-help-5);
    }
  }

  .#{$prefix}-bg-type {
    &-circle {
      border-radius: 100%;
    }
    &-square {
      border-radius: 4px;
    }
  }
}

.#{$prefix}-link {
  display: inline-flex !important;
  align-items: center;

  & > i {
    margin-right: var(--s-1, 4px);
  }
}
