.vtx-sub-tabs {
    --border: 1px solid #dadadaff;
    --border-active: 1px solid #1890ffff;
    --border-image: none;
    --color: #222;
    --active-color: #1890ffff;
    --active-bg: transparent;
    min-width: 300px;
    img {
        margin: -2px 14px 0 0;
    }

    &.ghost {
        --border: 1px solid #4eadfb;

        --color: #1890ff;
        --active-color: #fff;
        --active-bg: linear-gradient(180deg, #62c1fd 0%, #1890ff 100%);
    }

    &.dark {
        --border: 1px solid #95fff933;
        --border-image: linear-gradient(180deg, #356178, #51e0ff) 1 1;
        --border-active: 1px solid #95fff9ff;
        --color: #8d9798ff;
        --active-color: #95fff9ff !important;
        --active-bg: linear-gradient(0deg, #1a606d, #192f3f);
    }
    &.blue {
        --border: 1px solid #1464a6;
        --border-image: linear-gradient(180deg, #356178, #51e0ff) 1 1;
        --border-active: 1px solid #018aff;
        --color: #fff;
        --active-color: #fff !important;
        --active-bg: linear-gradient(180deg, #2a55e9 0%, #0dbafe 100%);
    }
    color: var(--color);
    .tab-pane {
        padding: 18px 0;
    }
    > .ant-tabs-content-holder {
        color: var(--color);
    }
    > .ant-tabs-nav {
        // margin-bottom: 0;

        &::before {
            display: none;
        }

        > .ant-tabs-nav-wrap {
            > .ant-tabs-nav-list {
                > .ant-tabs-tab {
                    height: 32px;
                    margin-left: 0 !important;
                    color: var(--color);
                    background-color: transparent;
                    border: var(--border);
                    border-radius: 2px;
                }

                > .ant-tabs-tab-active {
                    background: var(--active-bg);
                    border: var(--border-active);
                    border-image: var(--border-image);

                    .ant-tabs-tab-btn {
                        color: var(--active-color);
                        &:focus {
                            color: var(--active-color);
                        }
                    }
                }
            }
        }
        .ant-tabs-tab-btn:active {
            color: var(--border-active);
        }
    }

    &.blue {
        .tab-pane {
            padding: 18px 0;
        }
        > .ant-tabs-nav {
            // margin-bottom: 0;

            &::before {
                display: none;
            }

            > .ant-tabs-nav-wrap {
                > .ant-tabs-nav-list {
                    > .ant-tabs-tab {
                        height: 32px;
                        margin-left: 0 !important;
                        color: var(--color);
                        background-color: var(--active-bg);
                        border: var(--border);
                        border-radius: 2px;
                    }

                    > .ant-tabs-tab-active {
                        background: var(--active-bg);
                        border: var(--border-active);
                        border-image: var(--border-image);

                        .ant-tabs-tab-btn {
                            color: var(--active-color);
                            &:focus {
                                color: var(--active-color);
                            }
                        }
                    }
                }
            }
            .ant-tabs-tab-btn:active {
                color: var(--border-active);
            }
        }
    }
}

.vtx-sub-tabs-line {
    --border: 1px solid #dadadaff;
    --border-active: 1px solid #1890ffff;
    --border-image: none;
    --color: #222;
    --active-color: #1890ffff;
    --active-bg: transparent;

    &.dark {
        --border: 1px solid #95fff933;
        --border-image: linear-gradient(180deg, #356178, #51e0ff) 1 1;
        --border-active: 1px solid #95fff9ff;
        --color: #8d9798ff;
        --active-color: #95fff9ff !important;
        --active-bg: linear-gradient(0deg, #1a606d, #192f3f);
    }

    &.blue {
        --border: 1px solid #95fff933;
        --border-image: linear-gradient(180deg, #356178, #51e0ff) 1 1;
        --border-active: 1px solid #018aff !important;
        --color: #ffffff;
        --active-color: #1890ffff !important;
        --active-bg: linear-gradient(180deg, #2a55e9 0%, #0dbafe 100%);
    }
    > .ant-tabs-nav {
        // margin-bottom: 0;

        &::before {
            border-bottom: 1px solid rgba(102, 244, 251, 0.1);
            content: '';
        }

        > .ant-tabs-nav-wrap {
            > .ant-tabs-nav-list {
                > .ant-tabs-tab {
                    height: 32px;
                    color: var(--color);
                    background-color: transparent;
                }

                > .ant-tabs-tab-active {
                    .ant-tabs-tab-btn {
                        color: var(--active-color);
                        &:focus {
                            color: var(--active-color);
                        }
                    }
                }
                > .ant-tabs-ink-bar {
                    background: var(--active-color);
                }
            }
        }
        .ant-tabs-tab-btn:active {
            color: var(--border-active);
        }
    }
}
