:root {
  --bs-nav-tabs-border-width: 0px !important;
  --bs-border-width: 0px !important;
}

.first-tab-group {
  .nav {
    width: 640px;
    height: 48px;
    z-index: 10000;

    .nav-item {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 160px;
      height: 48px;
      font-size: 16px;
      line-height: 16px;
      letter-spacing: -0.64px;
      font-weight: 500;
      background-color: #f0f4fd;
      border-top: 1px solid #c2cadb !important;

      .nav-link {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 0;
        color: #5b6371;
        font-weight: 500;
      }
    }

    .nav-item:first-child {
      border-radius: 12px 0 0 0;
      border-right: none;
      border-left: 1px solid #c2cadb !important;

      background-color: #f0f4fd !important;
    }

    .nav-item:last-child {
      border-radius: 0 12px 0 0;
      border-right: 1px solid #c2cadb !important;
      border-bottom: none;
      background-color: #f0f4fd !important;
    }

    .nav-link.active {
      width: 160px;
      height: 47px;
      border-radius: 12px 12px 0 0;
      color: #0068ff;
      background-color: #ffffff;
      outline: 1px solid #c2cadb !important;
      border-radius: 1px solid #c2cadb !important;
      z-index: 10000;
    }
  }
}

.second-tab-group {
  position: relative;
  z-index: 2;

  .nav-tabs {
    border-bottom: none !important;
  }

  .nav-tabs .nav-link {
    padding: 0;
    color: #5b6371;

    font-size: 15px;
    line-height: 17px;
    letter-spacing: -0.6px;
  }

  .nav-item {
    display: flex;
    justify-content: center;
    width: 115px !important;
    height: 44px !important;
    border-bottom: 1px solid #aeb7c6;
    background: #f5f6f8;
  }

  .nav-item:first-child {
    border-radius: 8px 0 0 0;
  }

  .nav-item:last-child {
    width: 120px;
    border-radius: 0 8px 0 0;
  }

  .nav-item .active {
    width: 115px;
    height: 44px;
    background: #fff;
    font-weight: 500;

    color: #000 !important;

    border-top: 1px solid #aeb7c6;
    border-right: 1px solid #aeb7c6;
    border-left: 1px solid #aeb7c6;
  }

  .nav-item .active:first-child {
    border-radius: 8px 8px 0px 0px;
  }

  .nav-item .active:last-child {
    border-radius: 8px 8px 0px 0px;
  }
}

.carousel-tab-group {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#tab-carousel {
  /* width: 100%; */

  width: fit-content;
  max-width: 100%;

  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
  box-sizing: content-box;
}

#tab-carousel::-webkit-scrollbar {
  display: none;
}

.nav-tabs {
  display: inline-flex;
  flex-wrap: nowrap;
}

.nav-item {
  flex: 0 0 auto;
  margin-bottom: -1px;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #aeb7c6;
  z-index: 10;
  box-shadow: 4px 0px 12px 0px rgba(0, 0, 0, 0.2);
}

#scroll-left {
  left: 4px;
}

#scroll-right {
  right: 4px;
}

#scroll-left:hover,
#scroll-right:hover {
  border: 1px solid #aeb7c6;
  background: #ffffff;
}
