/* 弹窗外层容器：最小 280px，最高不超过视口 85% */
#maintainAddSecondInOrderDtPage .thorn6-popup-content,
#modifyCreateSecondInOrderPage .thorn6-popup-content {
  height: auto !important;
  min-height: 280px !important;
  max-height: 85vh !important;
  overflow-y: auto !important;
}

/* 弹窗内容区超出时允许滚动 */
#maintainAddSecondInOrderDtPage .thorn6-maintain-page,
#modifyCreateSecondInOrderPage .thorn6-maintain-page {
  overflow-y: auto !important;
}

/* 表格本身最小高度保护，防止被算成很小的高度 */
#maintainAddSecondInOrderDtPage .el-table.thorn6-table,
#modifyCreateSecondInOrderPage .el-table.thorn6-table {
  min-height: 240px !important;
}

/* 去掉框架 maintain 弹窗 800px 宽度下限（min-width 压过 max-width，须显式覆写），
   弹窗回落受 max-width:95vw 约束，手机视口内右上角关闭 X 回到可点区域 */
#maintainAddSecondInOrderDtPage .thorn6-popup.MaintainPageConfig {
  min-width: 0 !important;
}

/* 手机小屏：勾选列（fixed:left 浮层）防止 JS 算崩内联 height 导致整列消失；
   桌面端内联 height 用于让出横向滚动条，不覆写 */
@media (max-width: 900px) {
  #maintainAddSecondInOrderDtPage .el-table__fixed {
    /*height: auto !important;*/
    /*bottom: 0 !important;*/
  }
}
