
.btn-instance-submit .record-edit-text{
    color: #ffffff;
}
.btn-instance-submit .record-edit-text:hover{
    color: #ffffff;
}
.btn-instance-submit .record-edit-text:focus{
    color: #ffffff;
}

.relative {
    position: relative!important;
}
.flex-1 {
    flex: 1 1 0%!important;
}

.flex-col {
    flex-direction: column!important;
}
.flex {
    display: flex!important;
}

/* 修复全局样式.collapse引起的 日期时间选择异常问题 */
.bootstrap-datetimepicker-widget .collapse{
    visibility: visible !important;
}

/* 增加旧表单设计器的宽度 */
.flow-modal .modal-lg{
	width: 100%;
	margin-left: 0px;
	margin-right: 0px;
}

.flow-modal .modal-lg .slds-modal__container{
    width: 90% !important;
    max-width: 90% !important;
    min-width: 90% !important;
}

/*申请单中使用 旧版中的 inline-block样式 */
.instance-wrapper .instance-form .inline-block{
    display: block !important;
}

.instance-print .instance-form .inline-block{
    display: block !important;
}


.steedos-table-modal-body{
    display: initial !important;
}

.instance-trace-detail-modal .modal-body{
    display: initial !important;
}


.steedos-instance-wrapper input[disabled], input:disabled, input.disabled, input.is-disabled {
    -webkit-text-fill-color: inherit !important;
}


.instance-trace-detail-modal .weui-input{
    color: #777;
}

tbody .color-priority-danger *{
    color: red !important;
}

tbody .color-priority-warning *{
    color: purple !important;
}

tbody .color-priority-muted *{
    color: blue !important;
}

.steedos-object-listview .unread-instance .antd-Table-checkCell {
    position: relative
}

/* PC端未读列表蓝色圆点 */
.steedos-object-listview .unread-instance .antd-Table-checkCell:before {
    content: " ";
    position: absolute;
    right: -6px;
    width: 10px;
    height: 10px;
    background-color: #1890ff;
    border-radius: 6px;
    top: 50%;
    margin-top: -6px;
}

/* 分栏/手机端：含未读行的列表中所有行统一缩进，保持已读与未读左侧对齐 */
.steedos-object-listview:has(.unread-instance) .steedos-listview-item {
    position: relative;
    padding-left: 12px;
}

/* 手机端及分栏模式未读列表蓝色圆点 */
.steedos-object-listview .unread-instance .steedos-listview-item:before {
    content: " ";
    position: absolute;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: #1890ff;
    border-radius: 5px;
    top: 10px;
}

#instanceAmisView fieldset{
    width: 100%;
}


#serverList{
    display: none !important;
}

.instance-suggestion{
    background: #ffffff !important;
}

.instance .form-group select.form-control{
    height: 34px;
}



.af-steedos-field .antd-FileControl-dropzone.disabled{
    display: none;
}

.af-steedos-field .antd-ImageControl-addBtn.is-disabled{
    display: none;
}

#instanceform .antd-ImageControl-item{
    border: none;
    padding: 0px;
    margin-bottom: 6px;
    margin-right: 6px;
}


.instance-print #instanceAmisView .antd-Table-placeholder{
    display: none;
}

.instance-print #instanceAmisView .antd-Table-table > thead > tr{
    border-bottom: none;
}

.instance-print #instanceAmisView .antd-Table-table > thead > tr > th{
    background: #ffffff;
    border-color: #000000;
    border-bottom: none;
    padding-left: 4px;
    padding-right: 4px;
}


.instance-print #instanceAmisView .antd-Table-table td {
    border-bottom: #000000 1px solid;
    padding-top: 0px;
    padding-bottom: 0px;
    margin: 0px;
}

.instance-print #instanceAmisView .antd-Table-table tr:last-child td {
    border-bottom: none;
   }

.instance-print #instanceAmisView .antd-Table-table > thead > tr:not(:last-child) {
    border-bottom: #000000 1px solid;
}

.instance-print #instanceAmisView .antd-Table-table > tbody > tr:last-child {
    border-bottom: none;
}

.instance-print #instanceAmisView .antd-Table-table > tbody > tr > td:not(:last-child) {
    border-right: #000000 1px solid;
}

.instance-print #instanceAmisView .antd-Table-table > tbody > tr:first-child {
    border-top: #000000 1px solid;
}

.instance-print #instanceAmisView .antd-Table-table > tbody > tr:not(:last-child) {
    border-bottom: #000000 1px solid;
}

.instance-print #instanceAmisView .steedos-field-section{
    font-weight: 700;
    font-size: 15px;
}

.instance-print #instanceAmisView .antd-Table {
    margin-bottom: 0px;
}

.instance-print #instanceAmisView .antd-Table-table > thead > tr > th:first-child {
    text-align: center;
}

.instance-print #instanceAmisView .antd-Table-table > tbody > tr > td:first-child {
    text-align: center;
}

.instance-print #instanceAmisView .antd-Form-item {
    padding: 0px !important;
}

/* 平台内的table表头都变成了无边框，审批王内的打印需要边框 */
.instance-print #instanceAmisView .antd-Table-table thead > tr > th {
    border-right: var(--Table-thead-borderWidth) solid #000000;
}

/* 最后一列不需要边框 */
.instance-print #instanceAmisView .antd-Table-table thead > tr > th:last-child {
    border-right: none;
}

/* 实际的打印中service层未撑满 */
@media print {
    .instance-print #instanceAmisView .steedos-input-table>.antd-Service {
        width: 100%;
    }
}

/* 审批王的打印中的td需要换行，否则会撑出页面 */
.instance-print #instanceAmisView .antd-Table-table tbody > tr > td{
    white-space: normal;
}

/* 统一审批详细页的amisbutton样式 */
.instance-wrapper .instance-left-buttons .slds-button-group .steedos-amis-button button.antd-Button{
    padding: 0;
    margin: 0;
    color: #1890ff;
}
.instance-wrapper .instance-left-buttons .slds-button-group .steedos-amis-button button.antd-Button:hover{
    color: #40a9ff
}

/* .steedos-instance-print-wrapper .liquid-amis-container{
    width: 190mm;
} */

@media (max-width: 768px){
    /* 审批单详细页手机端附件预览按钮样式 */
    .instance-wrapper .instance_attachments .steedos-amis-button-instance-preview li.steedos-amis-button{
        width: -webkit-fill-available;
    }
}

/* amis 弹出窗口，包括弹出drawer中的审批单详细界面不显示左上角返回按钮 */
.amis-dialog-widget .instance-detail-service-wrapper .btn-instance-back{
    display: none;
}


.instance-table .inbox{
    width: auto !important;
    height: auto !important;
    display: block;
    box-shadow: none;
}

.steedos-instance-style-table .antd-RadiosControl{
    margin-left: 0.5rem !important;
}

.steedos-instance-style-table .antd-CheckboxesControl{
    margin-left: 0.5rem !important;
}

.instances-sidebar .steedos-listview-change-button > button > .fa-caret-down{
    display: none;
}

.instance-form-view .antd-Table-placeholder{
    display: none;
}

.steedos-amis-instance-view{
    background: #fff;
}

.steedos-amis-instance-view .instance-name{
    font-weight: 700;
}

.instance-applicant-view .inline-left {
    display: inline;
    float: left;
    line-height: 32px;
}

.steedos-instance-detail-wrapper{
    height: calc(100vh - 101px);
    height: calc(100dvh - 101px);
}

@media (max-width: 768px){
    .steedos-instance-detail-wrapper{
        height: calc(100vh - 64px);
        height: calc(100dvh - 64px);
    }
}

.steedos-amis-instance-view-body .antd-Panel-title{
    font-size: 14px;
    font-weight: 500;
}

.steedos-amis-instance-view-body .approve-button{
    z-index: 900;
}


.steedos-instance-related-view-wrapper{
    .antd-Page-header{
        display: none;
    }
}

.instance-form pre{
  white-space: pre-wrap;      /* 保留空白符，允许换行 */
  word-wrap: break-word;      /* 长单词或URL换行 */
  overflow-wrap: break-word;  /* 更现代的属性 */
}


.instance-form,.instance-template .td-title{
  text-align: center;
}

.instance-form .td-childfield{
    text-align: left;
}

.instance-template .table-page-body .antd-Form-label{
    display: none !important;
}

.instance-form .form-table {
    border-collapse: collapse;
    border: 2px solid black;
}
.instance-form .form-table td {
    border: 1px solid black;
    padding: 4px 6px;
    border-collapse: collapse;
}

/* 限定到 td：避免模板里裸 <div class="td-childfield"> 被错误地加上方框/清空 padding */
.instance-form td.td-childfield{
    padding: 0 !important;
    border: none !important;
}

/* #627 关键约束：仅对"内嵌 antd-Table 子表"的 td 生效，
   将 td 约束到父列宽，让内层 .antd-Table-content 的 overflow:auto 接管水平滚动，
   避免子表撑宽外层被 .liquid-amis-container 的 overflow:hidden 裁掉。
   用 :has() 精准命中，不影响其它无子表的 td.td-childfield（如 "注：" 提示行）。 */
.instance-form td.td-childfield:has(.antd-Table){
    max-width: 0;
    overflow: hidden;
}

.steedos-instance-style-table .instance-form td.td-childfield {
    padding: 0 !important;
    border: 1px solid black !important;
}
.steedos-instance-style-table .instance-form .td-childfield .antd-Table{
    margin-bottom: 0px !important;
}

.steedos-instance-style-table .instance-form .td-childfield .antd-Table .antd-Table-operationCell {
    border: none !important;
}

.steedos-instance-style-table .instance-form .td-childfield .antd-Table td:first-child {
    border-right: none !important;
}
.steedos-instance-style-table .antd-Select-value{
    white-space: unset !important;
}


/* 1. 基础设置：合并边框并去掉表格容器的外边框 */
.instance-form .antd-Table-table {
  border-collapse: collapse;
  border: none !important; /* 强制移除最外层边框 */
}

/* 2. 给所有单元格添加边框（内部边框） */
.instance-form .antd-Table-table th,
.instance-form .antd-Table-table td {
  border: 1px solid #000; /* 这里可以修改你想要的颜色，比如 #000 */
  padding: 8px; /* 适当增加间距更美观 */
}

/* 3. 移除最左侧和最右侧的垂直边框 */
.instance-form .antd-Table-table tr th:first-child,
.instance-form .antd-Table-table tr td:first-child {
  border-left: none;
}
.instance-form .antd-Table-table tr th:last-child,
.instance-form .antd-Table-table tr td:last-child {
  border-right: none;
}

/* 4. 移除最顶部和最底部的水平边框 */
.instance-form .antd-Table-table thead tr:first-child th {
  border-top: none;
}
.instance-form .antd-Table-table tbody tr:last-child td {
  border-bottom: none;
}

.instance-form .steedos-input-table .antd-Service>.antd-Form-item {
    margin-bottom: 0px !important;
}

.instance-form .ant-select-selector{
    background: transparent !important;
    border: none !important;
}

.instance-form .antd-FileControl-selectBtn{
    border: none;
    background: transparent;
    color: #000;
}


.instance-form .antd-ImageControl-addBtn{
    border: none;
    background: transparent;
    color: #000;
}

.instance-form .steedos-input-table .antd-Table-table colgroup col:nth-child(2) {
    width: 0px !important;
    min-width: 0px !important;
}

.instance-form .steedos-input-table .antd-Table-table thead tr th:first-child {
    width: 60px;
}

.instance-form .steedos-input-table .antd-Table-table thead .antd-Table-operationCell {
    width: 0px !important;
}

.instance-form .steedos-input-table .antd-Table-table .steedos-input-table-column-operation {
    border: none !important;
}

.instance-form .steedos-input-table .antd-Table-table .steedos-input-table-column-operation .antd-OperationField {
    margin-left: -55px;
}

.instance-form td .loading {
    display: none !important;
}


.instance-form .antd-Table-headToolbar{
    display: none !important;
}

.table-page-title{
    border: none !important;
}

.instance-name .page-title{
    text-align: center;
    border: none !important;
}


.page-page_instance_print .instance-approve-history{
    width: 190mm;
}

/* 公共打印隐藏样式 */
@media print {
  .no-print {
    display: none !important;
    visibility: hidden !important;
  }
  .antd-Form-item{
    border: none !important;
    content: none !important;
  }
  .antd-Form-item::after{
    border: none !important;
  }
  .steedos-amis-instance-view-body{
    margin: 20px 0 0 0 !important;
  }

  a[href]:after {
    content: none !important;
  }

  /* .font-normal{
    border: none !important;
  } */
}

.antd-Combo-form .antd-Form-row .antd-Form-col{
    margin-bottom: 0.75rem !important;
}
.antd-Combo-form .antd-Form-row .antd-Form-col .antd-Form-rowInner > div{
    flex: 1;
}


  /* .steedos-instance-detail-wrapper{
        height: auto !important;
    }

    .steedos-amis-instance-view-body{
        height: auto !important;
    }
    .creator-content-wrapper{
        overflow: unset !important;
    }

    body{
        overflow: auto !important;
    } */
.workflow-form-print{
    height: auto !important;
}

.workflow-form-print th{
    background: #ffffff !important
}

.ant-picker-panel-container .ant-picker-content caption {
    text-align: center;
}

.ant-picker-panel-container .ant-picker-content td {
    text-align: center;
}

.ant-picker-panel-container .ant-picker-content th {
    text-align: center;
}

.ant-picker-cell-selected .ant-picker-cell-inner {
    background: var(--button-primary-default-bg-color) !important
}

.ant-btn-color-primary {
    background: var(--button-primary-default-bg-color) !important;
    border-color: var(--button-primary-default-bg-color) !important;
}

.ant-btn-color-primary:disabled{
    border-color: #d9d9d9 !important;
    color: rgba(0, 0, 0, 0.25) !important;
    background: rgba(0, 0, 0, 0.04) !important;
    box-shadow: none !important;
}

.select-popup-high-z {
  z-index: 9999 !important;
}

.md\:grid-cols-2 {
    @media (width >= 48rem) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ant-modal-root .multiselect-form-mode.ant-select-multiple .ant-select-selector .ant-select-selection-wrap{
  min-height: 36px !important;
}

.ant-tree-select-dropdown{
    z-index: 9999 !important;
}


.workflow-form-v2{
    text-align: unset !important;
}