.top-navigation-container {
  background-color: white !important;
  width: 100%;
  padding: 23px 20px;
  height: 100%;
  max-height: 70px;
  margin: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 0.5px solid var(--border-color);

  .middle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    p {
      text-align: center;
      margin-bottom: 0px;
      font-size: 16px;
      font-weight: 400;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      color: var(--text-color);
    }
    div{
      display: flex;
      justify-content: center;
      align-items: center;
        cursor: pointer;
        border-radius: 50%;
        padding: 5px;
        transition: 0.1s ease-in-out all;
        &:hover {
          background-color: rgba(0, 0, 0, 0.076);
        }
        svg{
          fill: var(--text-color);
        }
    }
  }

  & button {
    max-width: 120px !important;
    text-transform: capitalize;
    color: var(--text-color);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
  }

  & .MuiGrid-item {
    padding-top: 0 !important;
  }

  & .left {
    justify-content: flex-start !important;
  }

  & .right {
    gap: 10px !important;
  }

  .actionsBtnWrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    .download, .download-envelope, .clone, .add-page, .delete-page, .undo-page{
      max-width: 120px;
      min-height: 40px;
      background-color: #fff;
      color: var(--text-color);
      border: 0.5px solid var(--border-color);
      font-size: 15px;
      font-weight: 500;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 40px;
      font-weight: 400;
      max-width: auto;
      min-width: 50px;
      border-radius: 3px;
      cursor: pointer;
      &:hover{
        background: #00000012 !important;
      }
    }

    .add-page {
      border-color: var(--text-color);
      &:hover {
        background: var(--text-color);
      }
    }

    .delete-page {
      border-color: var(--text-color);
      &:hover {
        background: var(--text-color);
      }
    }

    .undo-page {
      border-color: var(--primary-color);
      &:hover {
        background: var(--primary-color)12 !important;
      }
      svg {
        fill: var(--primary-color);
      }
    }

    .delete-icon {
      fill: #dc3545 !important;
    }
  }

  .templateCreateBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }
}

.v2-top-navigation-container {
  background-color: white !important;
  width: 100%;
  padding: 30px 40px;
  height: 100%;
  // max-height: 84px;
  margin: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 0.5px solid var(--border-color);

  .create-template-title{
    width: 100%;
    font-size: 20px;
    font-weight: 600;
    color: #000000CC;
    margin: 0;

    @media (max-width: 960px) {
      text-align: center;
    }
  }

  .middle-v2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;

    @media (max-width: 960px) {
      margin: 10px 0;
    }

    .input-container{
      border-bottom: 0.5px solid var(--border-color);
      display: flex;
      align-items: center;
      gap: 5px;

      input{
        font-size: 20px;
        font-weight: 400;
        color: var(--text-color);
        border: none;
        outline: none;
        background-color: transparent;
      }
    }

    .pencil-icon{
      cursor: pointer;
      width: 20px;
      height: 20px;
    }

    p {
      text-align: center;
      margin-bottom: 0px;
      font-size: 20px;
      font-weight: 400;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      color: var(--text-color);
    }

    .icon-v2-container{
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        padding: 5px;
        transition: 0.1s ease-in-out all;
        
        svg{
          fill: var(--text-color);
        }
    }
  }

  & button {
    max-width: 120px !important;
    text-transform: capitalize;
    color: var(--text-color);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
  }

  & .MuiGrid-item {
    padding-top: 0 !important;
  }

  & .left {
    justify-content: flex-start !important;
  }

  & .right {
    gap: 12px !important;
  }

  .actionsBtnWrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    @media (max-width: 960px) {
      justify-content: center;
    }
    .download, .download-envelope, .clone, .add-page, .delete-page, .undo-page{
      max-width: 120px;
      min-height: 40px;
      background-color: #fff;
      color: var(--text-color);
      border: 0.5px solid var(--border-color);
      font-size: 15px;
      font-weight: 500;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      font-weight: 400;
      max-width: auto;
      min-width: 48px;
      border-radius: 4px;
      cursor: pointer;
      &:hover{
        background: #00000012 !important;
      }
    }

    .add-page {
      border-color: var(--text-color);
      &:hover {
        background: var(--text-color);
      }
    }

    .delete-page {
      border-color: var(--text-color);
      &:hover {
        background: var(--text-color);
      }
    }

    .undo-page {
      border-color: var(--primary-color);
      &:hover {
        background: var(--primary-color)12 !important;
      }
      svg {
        fill: var(--primary-color);
      }
    }

    .delete-icon {
      fill: #dc3545 !important;
    }
  }

  .templateCreateBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }
}
