/* stylelint-disable property-no-unknown */

// primary color

.primary(@alpha: 1) {
  rgb: rgb(var(--lemon-primary-color));
  rgba: rgba(var(--lemon-primary-color), @alpha);
}

// popover

.popoverInner(@width: 120px) {
  position: relative;
  width: @width;
  padding: 8px 0;
  background-color: #fff;
  border-radius: 8px;
  border-image: linear-gradient(147deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)) 1 1;
  box-shadow: 0 12px 48px 16px rgba(0, 0, 0, 0.03), 0 9px 28px 0 rgba(0, 0, 0, 0.05),
    0 6px 16px -8px rgba(0, 0, 0, 0.08);
}

.popover(@width: 120px) {
  padding-top: 0 !important;

  .@{ant-prefix}-popover-arrow {
    display: none;
  }

  .@{ant-prefix}-popover-inner {
    .popoverInner(@width);
  }

  .@{ant-prefix}-popover-inner-content {
    padding: 0;
  }
}

.popoverItem() {
  position: relative;
  width: 100%;
  height: 36px;
  padding: 0 @space-h;
  overflow-x: hidden;
  color: #333;
  font-size: 14px;
  line-height: 36px;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background-color 0.2s;
  user-select: none;

  &:hover {
    background-color: #eee;
  }
}

// tabs

.fullTabs() {
  height: 100%;

  & > .@{ant-prefix}-tabs-nav {
    margin-bottom: @padding-md;

    .@{ant-prefix}-tabs-tab {
      padding: 0 0 5px;

      &.@{ant-prefix}-tabs-tab-active .@{ant-prefix}-tabs-tab-btn {
        text-shadow: unset;
      }
    }

    .@{ant-prefix}-tabs-nav-more {
      padding: 0;
    }
  }

  & > .@{ant-prefix}-tabs-content-holder {
    flex: 1;

    & > .@{ant-prefix}-tabs-content {
      height: 100%;

      & > .@{ant-prefix}-tabs-tabpane {
        height: 100%;
      }
    }
  }
}

.scrollBar (@width: 8px) {
  // scrollbar-width: thin;

  // &::-webkit-scrollbar {
  //   width: @width;
  //   height: 8px;
  // }

  // &::-webkit-scrollbar-track {
  //   background-color: #fff;
  //   border-radius: 4px;
  // }

  // &::-webkit-scrollbar-thumb {
  //   background-color: #ddd;
  //   border-radius: 4px;
  // }
}
