﻿body {
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
}

.content-pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
}

.status-enabled {
    color: #28a745;
}

.status-disabled {
    color: #dc3545;
}

.flag-circle {
/*    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;*/
}

/* 修复 SweetAlert2 叠在 Bootstrap 模态框之上时，背景表格宽度抖动的问题。
   原因：Bootstrap 模态框给 body.modal-open 加 padding-right:17px 补偿滚动条，
   SweetAlert2 打开时又会接管/恢复该补偿，两者交替导致 body 内容区宽度在
   0/17px 之间跳变，DataTables 随之重算列宽，弹窗关闭后又恢复。
   方案：后台为 AdminLTE 布局（滚动发生在 content-wrapper，body 无滚动条），
   统一禁用两个库对 body 的滚动条宽度补偿，保证背景布局恒定不动。 */
body.modal-open,
body.swal2-shown,
body.swal2-toast-shown {
    padding-right: 0 !important;
}

.swal2-container {
    padding-right: 0 !important;
}
