@app-bar-color: var(--color-primary);
@app-bar-text-color: var(--color-text-main);
@app-bar-height: 44px;
@app-bar-padding: 0 10px;
@app-bar-title-line-height: 44px;

:root {
  --app-bar-color: @app-bar-color;
  --app-bar-text-color: @app-bar-text-color;
  --app-bar-height: @app-bar-height;
  --app-bar-padding: @app-bar-padding;
  --app-bar-title-line-height: @app-bar-title-line-height;
}

.ppsv-app-bar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: var(--app-bar-height);
  padding: var(--app-bar-padding);
  background: var(--app-bar-color);
  color: var(--app-bar-text-color);

  &__title {
    flex: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    line-height: var(--app-bar-title-line-height);
    display: flex;
  }

  &__title-center {
    justify-content: center;
  }

  &__title-left {
    justify-content: flex-start;
  }

  &__title-right {
    justify-content: flex-end;
  }

  &__left,
  &__right {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    z-index: 2;
  }

  &__left {
    position: absolute;
    top: 0;
    left: 0;
  }

  &__right {
    position: absolute;
    top: 0;
    right: 0;
  }
}
