.vtx-business-modal-wrap {
    &.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 20px;
                                color: var(--table-head-color);
                                white-space: no-wrap;
                                background-color: var(--table-header-bg-color);
                                border: none !important;

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

                    tbody {
                        tr {
                            td {
                                padding: 8px 20px;
                                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 {
    max-width: unset !important;
    .ant-modal-content {
        padding: 0;
        overflow: hidden;
        background: var(--bg-color);
        border-radius: 10px;

        .close-btn {
            cursor: pointer;
            transition: transform 0.3s;

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

        .ant-modal-header {
            display: flex;
            align-items: center;
            height: 60px;
            background-color: var(--title-bg-color);
            border: none;
            border-bottom: var(--title-border);

            .modal-title {
                display: flex;
                align-items: center;
                width: 1200px;
                color: var(--title-color);
                font-weight: bold;
                .title {
                    color: var(--title-color);
                    font-size: 22px;
                }

                .sub-title {
                    margin-top: 5px;
                    color: var(--sub-title-color);
                    font-size: 16px;
                }
            }
            .ext {
                margin-left: auto;
            }
        }

        .ant-modal-body {
            padding: 0;
        }
    }

    .vtx-modal-tabs {
        min-height: 664px;

        --tabs-border-image: linear-gradient(to bottom, #fff0, #d3d3d3 50%, #fff0) 1 100%;
        --tabs-bg-color: #fcfcfc;
        --tabs-btn-color: #666;
        --tabs-btn-active-color: #1890ff;
        --tabs-bg-active: #188fff17;

        &.dark {
            --tabs-border-image: linear-gradient(to bottom, #fff0, #fff4 50%, #fff0) 1 100%;
            --tabs-bg-color: #fcfcfc;
            --tabs-btn-color: #9dbcbaff;
            --tabs-btn-active-color: white;
            --tabs-bg-active: linear-gradient(90deg, #216c79, #216c7900);
            .ant-tabs-ink-bar {
                background-color: #59ffe2;
            }
        }

        > .ant-tabs-content-holder {
            border-style: solid !important;
            border-width: 2px !important;
            border-top: 0 !important;
            border-bottom: 0 !important;
            border-left: 0 !important;
            border-image: var(--tabs-border-image);

            > .ant-tabs-content {
                height: 100%;
                padding: 0;

                > .ant-tabs-tabpane {
                    padding-right: 0;
                }
            }
        }

        > .ant-tabs-nav {
            > .ant-tabs-nav-wrap {
                width: 150px;
                background-color: var(--bg-color);

                > .ant-tabs-nav-list {
                    justify-content: center;

                    > .ant-tabs-tab {
                        align-items: center;
                        justify-content: center;
                        height: 50px;
                        padding: 0;

                        > .ant-tabs-tab-btn {
                            color: var(--tabs-btn-color);
                            font-size: 18px;
                        }

                        &.ant-tabs-tab-active {
                            background: var(--tabs-bg-active);

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

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

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