/* 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;
*//*}*/

.ant-pro-global-footer {
    /* 移除不必要的全局 fixed/absolute，只保留在父容器内的绝对定位 */
    /* position: fixed;  <-- 移除 */
    /* bottom: 0;      <-- 移除 */
    /* display: block; <-- 保持 */
    color: var(--gray-500); 
    /* 核心定位 */
    position: absolute; /* 相对于 .sidebar 定位 */
    left: 0;
    bottom: 0; /* 紧贴 .sidebar 底部 */
    width: 100%;
    text-align: center;

    font-size: 13px;
    /* 清理您原有样式中的冲突或冗余项 */
    /* text-align: center; 保持 */
    /* color: rgba(0, 0, 0, .609); 更改为更明确的颜色或变量 */
    /* bottom: -16px; 可能会导致内容看不见或溢出，改为 0 */
}
.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;
    font-size: 14px;
}

.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; /* 根据圆圈的大小和边框调整 */
}


/* 基本表格样式 */
.markdown-table {
    border-collapse: separate; /* 使用 separate 以便 border-radius 生效 */
    width: 100%;
    margin-bottom: 1rem;
    color: #333; /* 文字颜色 */
    border: 1px solid #ddd; /* 边框颜色 */
    border-radius: 8px; /* 添加圆角 */
    overflow: hidden; /* 防止圆角被内容撑开 */
}

    .markdown-table th,
    .markdown-table td {
        border: none; /* 移除单元格边框 */
        padding: 0.75rem;
        text-align: left;
    }

    /* 表头样式 */
    .markdown-table thead th {
        background-color: #f2f2f2; /* 表头背景颜色 */
    }

    /* 奇数行背景色 */
    .markdown-table tbody tr:nth-child(odd) {
        background-color: #fff; /* 奇数行背景颜色 */
    }

    /* 偶数行背景色 */
    .markdown-table tbody tr:nth-child(even) {
        background-color: #f9f9f9; /* 偶数行背景颜色 */
    }

    /* 鼠标悬停行样式 */
    .markdown-table tbody tr:hover {
        background-color: #eaeaea; /* 鼠标悬停行背景颜色 */
    }
