/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
html,
body,
#root,
#app,
app {
    height: 100%;
}

.colorWeak {
    filter: invert(80%);
}

.ant-layout {
    min-height: 100vh;
    background: #fff !important;
}

canvas {
    display: block;
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
    list-style: none;
}

.action {
    cursor: pointer;
}

@media (max-width: 480px) {
    .ant-table {
        width: 100%;
        overflow-x: auto;
    }

    .ant-table-thead > tr > th,
    .ant-table-tbody > tr > th,
    .ant-table-thead > tr > td,
    .ant-table-tbody > tr > td {
        white-space: pre;
    }

        .ant-table-thead > tr > th > span,
        .ant-table-tbody > tr > th > span,
        .ant-table-thead > tr > td > span,
        .ant-table-tbody > tr > td > span {
            display: block;
        }
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    body .ant-design-pro > .ant-layout {
        min-height: 100vh;
        background: #fff !important;
    }
}
/*设置logo文字大小*/
.ant-pro-sider-logo h1 {
    font-size: 18px !important;
}

.ant-pro-global-footer {
    position: fixed;
    bottom: 0;
    text-align: center;
    display: block;
    color: rgba(0, 0, 0, .609);
    position: absolute;
    left: 0;
    bottom: -16px;
    width: 100%;
    text-align: center;
    /*    background-color: #fff;
*/
}


.main-card {
    border-radius: 0 !important;
    height: calc(100vh - 88px);
}

    .main-card .ant-table-body {
        height: calc(100vh - 290px);
    }

    .main-card .ant-table {
        border: 1px solid #f0f0f0 !important;
    }

    .main-card .ant-pagination {
        padding-top: 5px;
    }

.ant_basic_layout .ant-pro-basicLayout-content {
    height: 100% !important;
}

.main-card > .ant-card-body {
    padding: 10px 24px !important;
}

.main-card .ant-typography {
    margin-bottom: 0 !important;
}

.main-card .ant-card-head-title {
    padding: 10px 0 !important;
}

.ant_basic_layout .ant-pro-basicLayout-content {
    margin: 48px 0 0 0 !important;
}

.main-card .ant-input-textarea > .ant-input-affix-wrapper {
    padding: 0 !important;
}

.main-card .steps-action {
    margin: 10px 24px;
}

.main-card .ant-input-search-button {
    border-radius: 0 10px 10px 0 !important;
}

.ant-row-top {
    align-items: normal !important;
}




/* 增加拖拽图样式 */

.center-port {
    width: 16px;
    height: 16px;
    background-color: #007bff; /* 蓝色 */
    border-radius: 50%;
    border: 2px solid white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
}

.port-circle {
    width: 12px;
    height: 12px;
    background-color: #5A67D8; /* 可自定义颜色 */
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #5A67D8;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
}

.port-left {
    left: -6px; /* 向外一点 */
}


.port-circle {
    width: 12px;
    height: 12px;
    background-color: #5A67D8;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #5A67D8;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
}

.port-left {
    left: -6px;
}

/* 节点整体样式 */
.custom-node {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.port-renderer {
    position: absolute;
    z-index: 1;
}

/* 圆圈的基本样式 */
.port-circle {
    width: 20px; /* 可以根据需要调整大小 */
    height: 20px; /* 与宽度相同 */
    background-color: #5A67D8;
    border-radius: 50%; /* 确保是圆形 */
    border: 2px solid white;
    box-shadow: 0 0 0 2px #5A67D8;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
}

/* 左侧端口的样式 */
.port-left {
    left: -10px; /* 根据圆圈的大小和边框调整 */
}

/* 右侧端口的样式 */
.port-right {
    right: -10px; /* 根据圆圈的大小和边框调整 */
}
