.div-wrapper {
  --wbg-color: #fff;
  --w-color: #1f1f1f;
  --wborder-color: #f1f0f0;
  --wfilter-bg: #f5f5f5;
  --wtype-bg: #fff;
  --tab-active-color: #1677FF;

  &.dark {
    --wbg-color: rgba(0, 155, 233, 10%);
    --w-color: #fff;
    --wborder-color: #1064a7;
    --wfilter-bg: #0b588e;
    --wtype-bg: #0168b0;
    --tab-active-color: #009DFF;
  }

  &-tabs-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--w-color);
    font-size: 16px;
  }

  &-tabs-item {
    padding: 0 8px;
    cursor: pointer;
    &.active {
      color: var(--tab-active-color);
      position: relative;
      &:before {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background: var(--tab-active-color);
        bottom: -12px;
        left: 0;
      }
    }
  }

  width: 100%;
  background: var(--wbg-color);
  border-radius: 8px;
  color: var(--w-color);
  position: relative;
  font-size: 16px;
  font-family: Alibaba PuHuiTi 3, Alibaba PuHuiTi 30;
  border: 1px solid var(--wborder-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  &-head {
    padding: 11px 16px;
    border-bottom: 1px solid var(--wborder-color);
  }

  .extra {
    position: absolute;
    right: 16px;
    top: 8px;
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 14px;

    .extra-type {
      height: 32px;
      background: var(--wfilter-bg);
      border-radius: 8px;
      padding: 2px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 4px;
      &-item {
        width: 28px;
        height: 100%;
        border-radius: 6px;
        padding-left: 8px;
        cursor: pointer;
        svg {
          width: 14px;
          height: 14px;
          margin-bottom: -2px;
        }

        &.active {
          background: var(--wtype-bg);
          box-shadow: 0 0 2px 0 rgba(0, 0, 0, 20%);
        }
      }
    }
  }

  &-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    padding: 16px;
    font-size: 14px;
    overflow-x: hidden;
    overflow-y: auto;
  }
}
