@use "variables.scss";

#document-top-bar-component {
  width: 100%;
  height: variables.$top-bar-height;
  border-bottom: variables.$component-border;

  .loading-top-bar {
    height: 100%;
    display: flex;
    align-items: center;
  }

  .document-top-bar {
    width: 100%;
    height: 100%;
    background-color: variables.$top-bar-background;
    position: sticky;
    z-index: 39;
    display: flex;
    justify-content: space-between;

    flex: 1;
    top: 0;
    font-size: 14px;
    color: variables.$text-color;
    font-weight: 400px;

    .left-bar-components {
      flex-direction: row;
      display: flex;
      flex: 1;

      .app-info {
        color: variables.$grey;
        display: flex;
        align-items: center;
        padding: 12px 16px;
        gap: 6px;
        img {
          height: 100%;
        }
      }
    }

    .center-bar-components {
      display: flex;
      align-items: center;

      &.single-component {
        flex: 1;
        align-items: center;
        justify-content: center;
      }

      .navigation-arrow {
        &:hover {
          cursor: pointer;
        }
      }
    }

    .right-bar-components {
      flex: 1;

      .right-components {
        height: 100%;
        align-items: center;
        justify-content: flex-end;
        display: flex;

        .read-only-info {
          display: flex;
          align-items: center;
          justify-content: flex-end;
          padding-right: 24px;
          color: variables.$text-lighter;
          font-size: 14px;
          line-height: 20px;
          font-weight: 400;
          height: 100%;

          .info-icon {
            margin-left: 14px;
            vertical-align: text-top;

            &.info-reviewed {
              color: variables.$primary;
            }
          }

          .doc-reviewed {
            color: variables.$primary;
          }

          .read-only-details {
            white-space: normal;
            font-size: 12px;
          }
        }

        .keyboard-actions-info {
          margin-right: 16px;

          .tooltip-title {
            font-weight: 600;
            padding-bottom: 10px;
          }

          .tooltip-description {
            display: flex;
            flex-direction: column;
            row-gap: 8px;

            .content-line,
            .action-item {
              display: flex;
              flex-wrap: nowrap;
              justify-content: flex-start;
              gap: 6px;

              .tooltip-divider {
                width: 1px;
                background-color: variables.$grey-detail;
                height: 15px;
                margin-top: 3px;
                opacity: 30%;
              }

              .key {
                font-size: 12px;
                font-weight: 500;
                display: flex;
                align-items: center;
                background-color: variables.$low-opacity-white;
                border-radius: 4px;
                padding: 0 5px 0 5px;
              }

              .keyboard-action-text {
                font-weight: 400;
                line-height: 20px;
              }
            }
          }
        }

        .top-bar-buttons {
          .buttons {
            display: flex;
            align-items: center;
            margin-right: 16px;

            .edit-mode-btn {
              font-size: 14px;
            }
          }
        }
      }
    }
  }

  @media (max-width: 1300px) {
    .edit-mode-top-bar {
      .center-bar-components {
        flex: 1;
        justify-content: right;
      }

      .right-bar-components {
        flex: 2;
      }

      .left-bar-components {
        display: none;
      }
    }
  }
}

.btn-container {
  display: flex;
  align-items: center;
  cursor: pointer;
}
