html,body,p {
    margin: 0 !important;
    padding: 0 !important;
}
.vtx-business-modal-wrap {
    .mask {
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        z-index: 998;
        background: rgba(0, 0, 0, 0.8);
    }

    &.dark {
        --table-bg: transparent;
        --table-header-bg-color: #00adb11a;
        --table-color: white;
        --table-head-color: #d3fff9ff;
        --table-row-border: 1px solid transparent;
        --table-row-bg-color: #ffffff0d;
        a {
            color: #a9d5d3 !important;
        }
        .vtx-form-layout {
            padding: 30px 24px;
        }
        .vtx-form-pane-title {
            color: #95fff9;
        }
        .ant-form,
        .ant-card-head {
            color: var(--label-color);
        }
        .vtx-datagrid-toolbar-left,
        .vtx-datagrid-toolbar {
            color: var(--info-color);
        }
        .ant-card-head,
        .ant-card-bordered {
            border-color: rgba(255, 255, 255, 0.2);
        }
        .vtx-form-layout .vtx-form-card-expand-icon {
            color: var(--arrow-icon-color);
        }
        // font-family: PingFangSC-Regular, serif;
        .vtx-page--table {
            background: none;
        }
        .vtx-table-search {
            background: none;
        }
        .vtx-table-wrap {
            background: none;
        }
        .vtx-search {
            background: none;
        }
        .ant-card {
            background: none;
        }
        .ant-picker-range,
        .ant-picker {
            --color: #a9d5d3ff;
            --border: 1px solid #3c7073ff;
            --bg-color: #0d1a1b;
            --hover-color: white;
            .ant-picker-active-bar {
                background: #59ffe2;
            }
            background-color: var(--bg-color) !important;
            border: var(--border) !important;

            .ant-picker-suffix {
                color: var(--color);
            }

            &:hover {
                border-color: var(--hover-color);
            }

            .ant-picker-input {
                input {
                    color: var(--color);
                }
            }

            .ant-picker-separator {
                color: var(--color);
            }

            .ant-picker-clear {
                color: var(--color);
                background: transparent;
            }
        }
        .ant-descriptions-bordered {
            .ant-descriptions-item-label {
                background-color: inherit;
                color: var(--label-color);
            }
            .ant-descriptions-item-content {
                color: var(--info-color);
            }
        }
        .ant-pagination {
            color: white;
            .ant-pagination-item {
                background-color: transparent;
                border-color: #454847;
                > a {
                    color: white;
                }

                &.ant-pagination-item-active,
                &:hover {
                    border-color: #95fff9;
                    > a {
                        color: #95fff9;
                    }
                }
            }
            .ant-select-arrow {
                color: white;
            }
            .ant-pagination-item-link {
                color: white;
                background-color: transparent;
                border-color: #454847;
                &:hover :not(:disabled) {
                    color: #95fff9;
                    border-color: #95fff9;
                }
            }
            .ant-select-dropdown {
                background: #0d1a1b;
                .ant-select-item {
                    color: white;
                }
                .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
                    background-color: #2d575a;
                }
                .ant-select-item-option-active:not(.ant-select-item-option-disabled) {
                    background-color: #1c3436;
                }
            }
            .ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-ellipsis {
                color: #ffffff40;
            }
            .ant-pagination-options-quick-jumper input {
                color: white;
                background: transparent;
                border: 1px solid #3c7073;
                &:hover {
                    border: 1px solid #6cc9ce;
                }
            }
            .ant-select:not(.ant-select-customize-input) .ant-select-selector {
                background-color: transparent;
                border: 1px solid #3c7073;
            }
            .ant-select:not(.ant-select-disabled):hover .ant-select-selector {
                border: 1px solid #6cc9ce;
            }
            .ant-select {
                color: white;
            }
        }
        .ant-table {
            background: var(--table-bg);

            .ant-table-container {
                border: none;
                &::before {
                    display: none;
                }

                &::after {
                    display: none;
                }

                .ant-table-content {
                    padding-bottom: 10px;
                }
                table {
                    border-collapse: collapse;
                    border: none !important;
                    thead {
                        tr {
                            th {
                                padding: 8px 12px;
                                color: var(--table-head-color);
                                white-space: nowrap;
                                background-color: var(--table-header-bg-color);
                                border: none !important;

                                &::before {
                                    display: none;
                                }
                            }
                        }
                    }

                    tbody {
                        tr {
                            td {
                                padding: 8px 12px;
                                color: var(--table-color);
                                white-space: nowrap;
                                background-color: transparent;
                                border: none !important;
                            }

                            &:nth-child(odd) {
                                td {
                                    background-color: var(--table-row-bg-color);
                                    border-top: var(--table-row-border);
                                    border-bottom: var(--table-row-border);

                                    &:first-child {
                                        border-left: var(--table-row-border);
                                    }

                                    &:last-child {
                                        border-right: var(--table-row-border);
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        .vtx-ztree-select {
            .ant-input-affix-wrapper {
                background-color: #0d1a1b !important;
                border: 1px solid #3c7073 !important;
                color: #a9d5d3;
                .ant-input {
                    background-color: #0d1a1b !important;
                    color: #a9d5d3;
                }
            }
        }
        .ant-select-selector {
            background-color: #0d1a1b !important;
            border: 1px solid #3c7073 !important;
            .ant-select-selection-item {
                color: #a9d5d3;
            }
            &:hover {
                border: 1px solid #6cc9ce !important;
            }
        }
        .ant-select-clear,
        .ant-select-arrow {
            background-color: #0d1a1b !important;
            color: #a9d5d3;
        }
        .ant-btn-primary {
            background: #2bd8cf;
            border-color: #2bd8cf;
            > span {
                color: black;
            }
        }
        .vtx-form-layout .vtx-form-item--view .ant-form-item-label > label {
            color: var(--label-color);
        }
        .vtx-form-layout .vtx-form-item--view .ant-form-item-control {
            color: var(--info-color);
        }
        .vtx-datagrid-fit .ant-table-tbody > tr:nth-child(odd) {
            background: var(--table-row-bg-color);
            td {
                background: var(--table-row-bg-color) !important;
            }
        }
    }
}

.ant-select-dropdown {
    &.dark {
        background: #0d1a1b;
        .ant-select-item {
            color: white;
        }
        .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
            background-color: #2d575a;
        }
        .ant-select-item-option-active:not(.ant-select-item-option-disabled) {
            background-color: #1c3436;
        }
    }
}

.ant-picker-dropdown-range {
    &.dark {
        .ant-picker-range-arrow {
            background: none;
            &::before {
                background: #0d1a1be6;
            }
        }
        .ant-picker-panel-container {
            background: #0d1a1be6;
            box-shadow: 0 3px 6px -4px #ffffff1f, 0 6px 16px #ffffff14, 0 9px 28px 8px #5454540d;
            .ant-picker-header {
                button {
                    color: white;
                    &:hover {
                        color: #95fff9;
                    }
                }
            }
            .ant-picker-content {
                th {
                    color: white;
                }
                .ant-picker-cell-inner {
                    color: white;
                }
                .ant-picker-cell-in-view.ant-picker-cell-in-range::before {
                    background: #6cff2340;
                }
                .ant-picker-cell-in-view.ant-picker-cell-range-start:not(
                        .ant-picker-cell-range-start-single
                    )::before,
                .ant-picker-cell-in-view.ant-picker-cell-range-end:not(
                        .ant-picker-cell-range-end-single
                    )::before {
                    background: #6cff2340;
                }
                .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner,
                .ant-picker-cell-in-view.ant-picker-cell-range-start .ant-picker-cell-inner,
                .ant-picker-cell-in-view.ant-picker-cell-range-end .ant-picker-cell-inner {
                    background: #52c41a;
                }
                .ant-picker-cell:hover:not(.ant-picker-cell-in-view) .ant-picker-cell-inner,
                .ant-picker-cell:hover:not(.ant-picker-cell-selected):not(
                        .ant-picker-cell-range-start
                    ):not(.ant-picker-cell-range-end):not(.ant-picker-cell-range-hover-start):not(
                        .ant-picker-cell-range-hover-end
                    )
                    .ant-picker-cell-inner {
                    background: #f5f5f55e;
                }
                .ant-picker-cell-in-view.ant-picker-cell-today .ant-picker-cell-inner::before {
                    border: 1px solid #52c41a;
                }

                .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover::before,
                .ant-picker-cell-in-view.ant-picker-cell-range-start.ant-picker-cell-range-hover::before,
                .ant-picker-cell-in-view.ant-picker-cell-range-end.ant-picker-cell-range-hover::before,
                .ant-picker-cell-in-view.ant-picker-cell-range-start:not(
                        .ant-picker-cell-range-start-single
                    ).ant-picker-cell-range-hover-start::before,
                .ant-picker-cell-in-view.ant-picker-cell-range-end:not(
                        .ant-picker-cell-range-end-single
                    ).ant-picker-cell-range-hover-end::before,
                .ant-picker-panel
                    > :not(.ant-picker-date-panel)
                    .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start::before,
                .ant-picker-panel
                    > :not(.ant-picker-date-panel)
                    .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end::before {
                    background: #52c41abb;
                }

                .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start
                    .ant-picker-cell-inner::after,
                .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end
                    .ant-picker-cell-inner::after {
                    background: #52c41abb !important;
                }
            }
        }
    }
}

.vtx-business-modal {
    .background {
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }
    // width: 1478px;
    width: fit-content;
    min-height: 100px;
    max-height: calc(100vw - 80px);
    max-width: calc(100vw - 32px);
    overflow: hidden;
    position: absolute;
    left: 50%;
    top: 80px;
    z-index: 999;
    background: #0b1315;
    border: 2px solid #69958a;
    border-radius: 8px;
    &--head {
        background: #122a2c;
        height: 60px;
        line-height: 60px;
        margin: 3px 4px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 22px;
        &-title {
            font-family: HiraginoSansGB-W6, HiraginoSansGB;
            color: var(--title-color);
            position: relative;
            height: 100%;
            padding-left: 21px;
            &-bg {
                &.dark {
                    width: 90px;
                    height: 60px;
                    position: absolute;
                    top: 0;
                    left: 0;
                    .background();
                    background-image: url('../imgs/title-bg.png');
                }
            }
        }
        .close-btn {
            cursor: pointer;
            transition: transform 0.3s;

            &:hover {
                transform: rotate(180deg);
            }
        }
    }

    &--content {
        height: calc(~'100% - 60px');
        background: #0b1315;
        display: flex;
        justify-content: space-between;
    }
    &--main {
        width: calc(~'100% - 181px');
    }

    .vtx-modal-tabs {
        --tabs-bg-color: #fcfcfc;
        --tabs-btn-color: #666;

        &.dark {
            --tabs-bg-color: #fcfcfc;
            --tabs-btn-color: #9dbcbaff;
        }

        width: 181px;
        font-size: 18px;
        font-family: PingFangSC-Regular, PingFang SC;
        color: var(--tabs-btn-color);
        text-align: center;
        background: #091112;
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        display: flex;
        flex-flow: column;
        justify-content: center;
        &--tab {
            width: 181px;
            height: 64px;
            line-height: 64px;
            cursor: pointer;
            color: var(--tabs-btn-color);
            &_active {
                color: var(--title-color);
                background-image: url('../imgs/tab_bg.png');
                .background();
            }
        }
    }
}

.dark {
    .ant-popover-inner {
        background-color: #0d1a1b !important;
        .ant-input {
            background-color: #0d1a1b !important;
            color: #a9d5d3;
        }
    }

    .ztree li a {
        color: #a9d5d3 !important;
    }
}
