/* .grid__actions__>span{
    font-size: 12px !important;
    display:inline-block !important;
    padding:0 !important;
    margin-right:5px;
} */
.btn-style{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 .35rem !important;
    margin: 0 .12rem .12rem 0;
    font-size: 11px;
    height: 1.55rem;
    min-height: 1.55rem;
    line-height: 1 !important;
    box-sizing: border-box;
    vertical-align: middle;
}
.btn-style i,
.btn-style .feather {
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* ========== 全局：列表操作列「删除」红框红字（外层 a 不描边，避免与内层按钮双框） ========== */
.dcat-box .grid__actions__ a[data-action="delete"],
.dcat-box .table-wrap.table-fixed-right .grid__actions__ a[data-action="delete"],
.dcat-box .grid-dropdown-actions a[data-action="delete"] {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 0.08rem 0.1rem 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none !important;
    vertical-align: middle !important;
}
/* 仅无内层按钮时：给 a 本身一个红框（裸图标删除） */
.dcat-box .grid__actions__ a[data-action="delete"]:not(:has(button)),
.dcat-box .table-wrap.table-fixed-right .grid__actions__ a[data-action="delete"]:not(:has(button)),
.dcat-box .grid-dropdown-actions a[data-action="delete"]:not(:has(button)) {
    gap: 0.15rem !important;
    padding: 0 0.32rem !important;
    height: 1.5rem !important;
    color: #dc2626 !important;
    border: 1px solid #fca5a5 !important;
    background: #fff !important;
    border-radius: 3px !important;
}
.dcat-box .grid__actions__ a[data-action="delete"]:not(:has(button)) > i,
.dcat-box .grid__actions__ a[data-action="delete"]:not(:has(button)) .feather {
    color: #dc2626 !important;
}
.dcat-box .grid__actions__ .btn-outline-danger,
.dcat-box .table-wrap.table-fixed-right .grid__actions__ .btn-outline-danger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #dc2626 !important;
    border: 1px solid #fca5a5 !important;
    background: #fff !important;
}
.dcat-box .grid__actions__ .btn-outline-danger > i,
.dcat-box .grid__actions__ .btn-outline-danger .feather {
    color: #dc2626 !important;
}
.dcat-box .grid__actions__ a[data-action="delete"]:not(:has(button)):hover,
.dcat-box .grid__actions__ .btn-outline-danger:hover {
    color: #b91c1c !important;
    border-color: #f87171 !important;
    background: #fef2f2 !important;
}
/* 操作列：可换行收窄（旧版 120px 锁死 / max-content 撑半屏均禁止） */
.table-collapse .custom-data-table td.grid__actions__,
.table-collapse .custom-data-table th.grid__actions__,
.dcat-box .table-wrap.table-fixed-right td,
.dcat-box .table-wrap.table-fixed-right th {
    width: auto !important;
    min-width: 0 !important;
    max-width: min(38vw, 360px) !important;
    box-sizing: border-box !important;
}

/* ========== 后台 Grid 列表：顶底固定 + 上下压缩 ========== */
/* :has() 让列表首屏无需等 JS 加类即可固定底部分页 */
html.admin-grid-sticky-on,
html:has(.content-body .dcat-box table.custom-data-table),
html.admin-grid-sticky-on body,
html:has(.content-body .dcat-box table.custom-data-table) body,
body.admin-grid-sticky,
body:has(.content-body .dcat-box table.custom-data-table) {
    overflow: hidden !important;
    height: 100% !important;
    max-height: 100% !important;
}
body.admin-grid-sticky .wrapper,
body:has(.content-body .dcat-box table.custom-data-table) .wrapper,
body.admin-grid-sticky .app-content.content,
body:has(.content-body .dcat-box table.custom-data-table) .app-content.content,
body.admin-grid-sticky .app-content,
body:has(.content-body .dcat-box table.custom-data-table) .app-content {
    overflow: hidden !important;
    height: 100% !important;
    max-height: 100% !important;
}
body.admin-grid-sticky .main-footer,
body:has(.content-body .dcat-box table.custom-data-table) .main-footer {
    display: none !important;
}
body.admin-grid-sticky .btn.scroll-top,
body:has(.content-body .dcat-box table.custom-data-table) .btn.scroll-top {
    bottom: 12px !important;
}
body.admin-grid-sticky .content-wrapper,
body:has(.content-body .dcat-box table.custom-data-table) .content-wrapper {
    min-height: 0 !important;
    height: var(--admin-grid-body-h, calc(100vh - var(--admin-navbar-h, 60px))) !important;
    max-height: var(--admin-grid-body-h, calc(100vh - var(--admin-navbar-h, 60px))) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    padding-bottom: 0 !important;
}
/* 顶部：标题 + 面包屑（压缩） */
body.admin-grid-sticky .content-header,
body:has(.content-body .dcat-box table.custom-data-table) .content-header {
    flex: 0 0 auto !important;
    padding: 0.15rem 0.75rem 0.1rem !important;
    margin: 0 !important;
    background: #f7f7f9;
    border-bottom: 1px solid #ececf0;
    z-index: 40;
}
body.admin-grid-sticky .content-header .content-header,
body:has(.content-body .dcat-box table.custom-data-table) .content-header .content-header,
body.admin-grid-sticky .content-header .breadcrumbs-top,
body:has(.content-body .dcat-box table.custom-data-table) .content-header .breadcrumbs-top {
    margin: 0 !important;
    padding: 0 !important;
}
body.admin-grid-sticky .content-header h1,
body:has(.content-body .dcat-box table.custom-data-table) .content-header h1 {
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.admin-grid-sticky .content-header h1 small,
body:has(.content-body .dcat-box table.custom-data-table) .content-header h1 small {
    font-size: 0.75rem !important;
}
body.admin-grid-sticky .content-header .breadcrumb,
body:has(.content-body .dcat-box table.custom-data-table) .content-header .breadcrumb {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.75rem !important;
}
body.admin-grid-sticky .content-body,
body:has(.content-body .dcat-box table.custom-data-table) .content-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0.25rem 0.5rem 0 !important;
    margin: 0 !important;
}
body.admin-grid-sticky .content-body > .row,
body:has(.content-body .dcat-box table.custom-data-table) .content-body > .row {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    display: flex !important;
}
body.admin-grid-sticky .content-body > .row > [class*="col-"],
body:has(.content-body .dcat-box table.custom-data-table) .content-body > .row > [class*="col-"] {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
}
body.admin-grid-sticky .content-body .dcat-box,
body:has(.content-body .dcat-box table.custom-data-table) .content-body .dcat-box {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
}
/* 工具栏压缩 */
body.admin-grid-sticky .custom-data-table-header,
body:has(.content-body .dcat-box table.custom-data-table) .custom-data-table-header {
    flex: 0 0 auto !important;
    padding: 0.15rem 0.25rem !important;
    margin: 0 !important;
    background: #fff;
    z-index: 35;
    border-bottom: 1px solid #f0f0f0;
}
/* 列表顶栏：刷新/筛选/全部收起/列选择/新增 等文字与图标在框内居中 */
body.admin-grid-sticky .custom-data-table-header .btn,
body:has(.content-body .dcat-box table.custom-data-table) .custom-data-table-header .btn,
body.admin-grid-sticky .custom-data-table-header .btn-group > .btn,
body:has(.content-body .dcat-box table.custom-data-table) .custom-data-table-header .btn-group > .btn,
.custom-data-table-header .btn,
.custom-data-table-header .btn-group > .btn,
.custom-data-table-header .dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.2rem !important;
    padding: 0.2rem 0.45rem !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    min-height: 28px !important;
    height: auto !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}
/* 列选择/拆分下拉箭头：取消主题绝对定位与 margin-left，避免箭头贴右 */
.custom-data-table-header .column-selector > .dropdown-toggle,
.custom-data-table-header .btn-group > .btn.dropdown-toggle {
    position: relative !important;
    gap: 0.35rem !important;
}
.custom-data-table-header .column-selector > .dropdown-toggle::after,
.custom-data-table-header .btn-group > .btn.dropdown-toggle::after,
.custom-data-table-header .btn.dropdown-toggle-split::after {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    float: none !important;
    margin: 0 !important;
    transform: none !important;
    align-self: center !important;
}
.custom-data-table-header .column-selector > .dropdown-toggle > .caret,
.custom-data-table-header .btn-group > .btn.dropdown-toggle > .caret {
    display: none !important; /* 与 ::after 二选一，避免双箭头占位把视觉撑偏 */
}
/* 仅箭头的拆分钮：等宽内边距，箭头几何居中 */
.custom-data-table-header .btn-group > .btn.dropdown-toggle:not(:first-child),
.custom-data-table-header .btn.dropdown-toggle-split {
    padding-left: 0.45rem !important;
    padding-right: 0.45rem !important;
    min-width: 1.85rem !important;
}
body.admin-grid-sticky .custom-data-table-header .btn i,
body:has(.content-body .dcat-box table.custom-data-table) .custom-data-table-header .btn i,
body.admin-grid-sticky .custom-data-table-header .btn .feather,
body:has(.content-body .dcat-box table.custom-data-table) .custom-data-table-header .btn .feather,
.custom-data-table-header .btn i,
.custom-data-table-header .btn .feather,
.custom-data-table-header .btn svg {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    vertical-align: middle !important;
    position: relative !important;
    top: 0 !important;
}
/* 工具链里偶发 a.btn > button.btn：内层铺满外层，避免双重边框错位 */
.custom-data-table-header a.btn > .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: 0 !important;
    line-height: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
}
body.admin-grid-sticky .custom-data-table-header .quick-search,
body:has(.content-body .dcat-box table.custom-data-table) .custom-data-table-header .quick-search,
body.admin-grid-sticky .custom-data-table-header input.form-control,
body:has(.content-body .dcat-box table.custom-data-table) .custom-data-table-header input.form-control {
    height: 28px !important;
    min-height: 28px !important;
    padding-top: 0.15rem !important;
    padding-bottom: 0.15rem !important;
    font-size: 12px !important;
}
body.admin-grid-sticky .filter-box,
body:has(.content-body .dcat-box table.custom-data-table) .filter-box {
    flex: 0 0 auto !important;
    margin-bottom: 0.25rem !important;
}
body.admin-grid-sticky .filter-box .card-body,
body:has(.content-body .dcat-box table.custom-data-table) .filter-box .card-body,
body.admin-grid-sticky .filter-box .box-body,
body:has(.content-body .dcat-box table.custom-data-table) .filter-box .box-body {
    padding: 0.4rem 0.6rem !important;
}
/* 中间：父层/固定列禁止竖滚，仅 table-main 一条竖条 */
body.admin-grid-sticky .dcat-box > .table-responsive.table-wrapper,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box > .table-responsive.table-wrapper,
body.admin-grid-sticky .dcat-box > .table-responsive,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box > .table-responsive {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    margin: 0 !important;
    scrollbar-width: none !important;
}
body.admin-grid-sticky .dcat-box > .table-responsive.table-wrapper::-webkit-scrollbar,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box > .table-responsive.table-wrapper::-webkit-scrollbar,
body.admin-grid-sticky .dcat-box > .table-responsive::-webkit-scrollbar,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box > .table-responsive::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}
body.admin-grid-sticky .dcat-box .tables-container,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box .tables-container {
    height: 100% !important;
    min-height: 0 !important;
    /* Dcat FixColumns 注入的 margin-top:12px 会把 table-main 整体下移 12px，
       使其底部横滚条落到 table-responsive(overflow:hidden) 的裁切线之外、被底栏盖住。
       归零后横滚条回到裁切区内、与底栏齐平可见。 */
    margin-top: 0 !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
}
body.admin-grid-sticky .dcat-box .tables-container::-webkit-scrollbar,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box .tables-container::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}
body.admin-grid-sticky .dcat-box .table-wrap.table-main,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box .table-wrap.table-main {
    height: 100% !important;
    max-height: none !important;
    overflow: auto !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable;
    scrollbar-width: auto !important;
}
/* 主表按内容撑开：列一次展不全时底栏出现横滑 */
body.admin-grid-sticky .dcat-box .table-wrap.table-main > table.custom-data-table,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box .table-wrap.table-main > table.custom-data-table {
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
}
body.admin-grid-sticky .dcat-box .table-wrap.table-main th:not(.grid__actions__),
body.admin-grid-sticky .dcat-box .table-wrap.table-main td:not(.grid__actions__),
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box .table-wrap.table-main th:not(.grid__actions__),
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box .table-wrap.table-main td {
    white-space: nowrap !important;
}
body.admin-grid-sticky .dcat-box .table-wrap.table-main::-webkit-scrollbar,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box .table-wrap.table-main::-webkit-scrollbar {
    width: 12px !important;
    height: 12px !important;
    display: block !important;
}
/* 显式滑轨存在时只隐藏原生横条，竖条仍保留，避免底部出现两条横轨。 */
body.admin-grid-sticky .dcat-box.has-admin-grid-hscroll .table-wrap.table-main::-webkit-scrollbar,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box.has-admin-grid-hscroll .table-wrap.table-main::-webkit-scrollbar {
    width: 12px !important;
    height: 0 !important;
}
/* 始终可见的底部横滑轨：避免 Windows/Chrome 自动隐藏原生滚动条。 */
body.admin-grid-sticky .dcat-box > .admin-grid-hscroll,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box > .admin-grid-hscroll {
    position: relative;
    flex: 0 0 16px;
    width: 100%;
    height: 16px;
    min-height: 16px;
    margin: 0 !important;
    padding: 2px 3px;
    overflow: hidden;
    background: #e5e7eb;
    border-top: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
    box-sizing: border-box;
    cursor: ew-resize;
    z-index: 60;
    touch-action: none;
}
body.admin-grid-sticky .dcat-box > .admin-grid-hscroll > .admin-grid-hscroll-thumb,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box > .admin-grid-hscroll > .admin-grid-hscroll-thumb {
    display: block;
    height: 10px;
    min-width: 48px;
    border-radius: 5px;
    background: #7c8798;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
    cursor: grab;
    will-change: transform;
}
body.admin-grid-sticky .dcat-box > .admin-grid-hscroll > .admin-grid-hscroll-thumb:active,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box > .admin-grid-hscroll > .admin-grid-hscroll-thumb:active {
    cursor: grabbing;
    background: #596579;
}
/* 表格区域拖拽横滑中 */
body.admin-grid-panning,
body.admin-grid-panning * {
    cursor: grabbing !important;
    user-select: none !important;
}
.table-wrap.admin-grid-panning {
    cursor: grabbing !important;
}
/* 有竖滚时右固定层避开竖条，横条不被挡住 */
body.admin-grid-sticky .dcat-box .tables-container:has(.table-main)::after,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box .tables-container:has(.table-main)::after {
    content: none;
}
body.admin-grid-sticky .dcat-box .table-wrap.table-fixed-right,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box .table-wrap.table-fixed-right {
    bottom: 12px;
}
body.admin-grid-sticky .dcat-box .table-wrap.table-fixed,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box .table-wrap.table-fixed {
    height: 100% !important;
    max-height: none !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
}
body.admin-grid-sticky .dcat-box .table-wrap.table-fixed::-webkit-scrollbar,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box .table-wrap.table-fixed::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}
/* 无 table-wrap 的列表：table-responsive 自身作为唯一滚动层 */
body.admin-grid-sticky .dcat-box > .table-responsive:not(:has(.table-wrap)),
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box > .table-responsive:not(:has(.table-wrap)),
/* 无左右固定列时由 sticky.js 打标，强制可横滚（压过上方 overflow:hidden !important） */
body.admin-grid-sticky .dcat-box.admin-grid-plain-scroll > .table-responsive,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box.admin-grid-plain-scroll > .table-responsive {
    overflow: auto !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    scrollbar-width: auto !important;
}
body.admin-grid-sticky .dcat-box > .table-responsive:not(:has(.table-wrap))::-webkit-scrollbar,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box > .table-responsive:not(:has(.table-wrap))::-webkit-scrollbar,
body.admin-grid-sticky .dcat-box.admin-grid-plain-scroll > .table-responsive::-webkit-scrollbar,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box.admin-grid-plain-scroll > .table-responsive::-webkit-scrollbar {
    width: auto !important;
    height: auto !important;
    display: block !important;
}
/* 表头吸顶 */
body.admin-grid-sticky .dcat-box .table-wrap.table-main thead th,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box .table-wrap.table-main thead th,
body.admin-grid-sticky .dcat-box > .table-responsive:not(:has(.table-wrap)) thead th,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box > .table-responsive:not(:has(.table-wrap)) thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 5;
    background: #fff !important;
    box-shadow: 0 1px 0 #e5e5e5;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    font-size: 12px !important;
    white-space: nowrap;
}
body.admin-grid-sticky .dcat-box .table-wrap.table-fixed thead th,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box .table-wrap.table-fixed thead th {
    z-index: 6;
    position: sticky !important;
    top: 0 !important;
    background: #fff !important;
}
/* 底部分页固定（压缩，始终可见） */
body.admin-grid-sticky .dcat-box > .box-footer,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box > .box-footer {
    flex: 0 0 auto !important;
    padding: 0.25rem 0.5rem !important;
    margin: 0 !important;
    background: #fff;
    border-top: 1px solid #ececf0;
    z-index: 50;
    position: relative;
}
body.admin-grid-sticky .dcat-box > .box-footer .pagination,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box > .box-footer .pagination {
    margin: 0 !important;
}
body.admin-grid-sticky .dcat-box > .box-footer .pagination > li > a,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box > .box-footer .pagination > li > a,
body.admin-grid-sticky .dcat-box > .box-footer .pagination > li > span,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box > .box-footer .pagination > li > span {
    padding: 0.2rem 0.55rem !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
}
body.admin-grid-sticky .dcat-box > .box-footer .d-flex,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box > .box-footer .d-flex,
body.admin-grid-sticky .dcat-box > .box-footer .clearfix,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box > .box-footer .clearfix {
    min-height: 0 !important;
}
body.admin-grid-sticky .dcat-box tbody td,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box tbody td {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
    font-size: 12px !important;
}

/* ========== 表单编辑页：底栏提交始终可见并居中 ========== */
.content-body form .box-footer,
.form-content .box-footer {
    display: block !important;
    visibility: visible !important;
    overflow: visible !important;
    clear: both !important;
    min-height: 56px !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    background: #fff !important;
    border-top: 1px solid #ececf0 !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 40 !important;
}
.content-body form .box-footer::after,
.form-content .box-footer::after {
    content: "";
    display: table;
    clear: both;
}
.content-body form .box-footer > .col-md-2,
.content-body form .box-footer > [class*="col-md-"][style*="display: none"] {
    display: none !important;
}
.content-body form .box-footer > [class*="col-md-"],
.form-content .box-footer > [class*="col-md-"] {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 !important;
}
.content-body form .box-footer .btn-group,
.form-content .box-footer .btn-group {
    float: none !important;
    display: inline-flex !important;
    margin: 0 !important;
}
.content-body form .box-footer .btn,
.form-content .box-footer .btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ========== Grid 左右固定列（Dcat fixColumns）紧凑 ========== */
.dcat-box .tables-container {
    position: relative;
}
/* 有左固定时容器白底，避免预留宽与左栏差 1px 时露出灰缝 */
.dcat-box .tables-container:has(.table-wrap.table-fixed-left) {
    background: #fff !important;
}
/* 主表预留左右固定栏：
   - Dcat 实页 table-main 常为 position:static → 用 margin 让出左右固定层
   - 绝对定位（测试夹具等）由 JS 再写 left/right */
.dcat-box .tables-container:has(.table-fixed-right) .table-wrap.table-main,
.dcat-box .tables-container:has(.table-fixed-left) .table-wrap.table-main {
    margin-left: var(--admin-grid-fixed-left-w, 0px) !important;
    margin-right: var(--admin-grid-fixed-right-reserve, var(--admin-grid-fixed-right-w, 0px)) !important;
    width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.dcat-box .table-wrap.table-fixed-left {
    z-index: 20;
    width: max-content !important;
    max-width: none !important;
    /* 阴影不占布局宽，避免右缘与主表之间露灰 */
    box-shadow: 3px 0 6px -4px rgba(0, 0, 0, 0.14);
    background: #fff !important;
}
.dcat-box .table-wrap.table-fixed-right {
    z-index: 20;
    box-shadow: -3px 0 6px -4px rgba(0, 0, 0, 0.14);
    /* 只设上限；精确宽度由 JS important 写入（账号等多按钮列需更宽） */
    max-width: min(38vw, 360px) !important;
}
.dcat-box .table-wrap.table-fixed-right:has(.project-action-card) {
    max-width: min(38vw, 340px) !important;
}
.dcat-box .table-wrap.table-fixed-left table {
    background: #fff;
    width: max-content !important;
    min-width: 0 !important;
    table-layout: auto !important;
}
.dcat-box .table-wrap.table-fixed-right table {
    background: #fff;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}
.dcat-box .table-wrap.table-fixed-left th,
.dcat-box .table-wrap.table-fixed-left td,
.dcat-box .table-wrap.table-fixed-right th,
.dcat-box .table-wrap.table-fixed-right td {
    background: #fff !important;
}
/* 左：勾选 + ID 尽量瘦（vs-checkbox 默认偏宽） */
.dcat-box .table-wrap.table-fixed-left th,
.dcat-box .table-wrap.table-fixed-left td {
    padding: 0.2rem 0.15rem !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}
.dcat-box .table-wrap.table-fixed-left th:first-child,
.dcat-box .table-wrap.table-fixed-left td:first-child,
.dcat-box .table-wrap.table-main thead th:first-child,
.dcat-box .table-wrap.table-main tbody td:first-child {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 32px !important;
    padding-left: 0.2rem !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}
.dcat-box .table-wrap.table-fixed-left th:first-child .vs-checkbox-con,
.dcat-box .table-wrap.table-fixed-left td:first-child .vs-checkbox-con,
.dcat-box .table-wrap.table-main th:first-child .vs-checkbox-con,
.dcat-box .table-wrap.table-main td:first-child .vs-checkbox-con {
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    width: auto !important;
    transform: scale(0.78);
    transform-origin: center center;
}
.dcat-box .table-wrap.table-fixed-left th:last-child,
.dcat-box .table-wrap.table-fixed-left td:last-child {
    width: 36px !important;
    min-width: 32px !important;
    max-width: 42px !important;
    padding-left: 0.08rem !important;
    padding-right: 0.2rem !important;
    text-align: center;
}
.dcat-box .table-wrap.table-fixed-left th:last-child .grid-column-header,
.dcat-box .table-wrap.table-main th .grid-column-header {
    margin: 0 !important;
}
/* 右：收窄约 1/3 + 按钮换行（行高增高，不挡主表中间列） */
.dcat-box .table-wrap.table-fixed-right th,
.dcat-box .table-wrap.table-fixed-right td {
    padding: 0.22rem 0.28rem !important;
    vertical-align: top !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}
.dcat-box .table-wrap.table-fixed-right .grid__actions__,
.dcat-box td.grid__actions__,
.dcat-box th.grid__actions__ {
    padding: 0.15rem 0.2rem !important;
    white-space: normal !important;
    line-height: 1.25;
    vertical-align: top !important;
    max-width: min(38vw, 360px) !important;
}
.dcat-box .table-wrap.table-fixed-right:has(.project-action-card) .grid__actions__,
.dcat-box td.grid__actions__:has(.project-action-card) {
    max-width: min(38vw, 340px) !important;
}
.dcat-box .table-wrap.table-fixed-right .grid__actions__,
.dcat-box td.grid__actions__ {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    align-content: flex-start !important;
    gap: 0.1rem 0.12rem !important;
    overflow: visible !important;
}
/* 内层操作容器也必须换行，避免 Dcat 默认 nowrap 导致按钮叠盖 */
.dcat-box .table-wrap.table-fixed-right .grid-row-actions,
.dcat-box td.grid__actions__ .grid-row-actions,
.dcat-box .table-wrap.table-fixed-right .grid-dropdown-actions,
.dcat-box td.grid__actions__ .grid-dropdown-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    align-content: flex-start !important;
    gap: 0.12rem !important;
    max-width: 100% !important;
    width: 100% !important;
    position: static !important;
    float: none !important;
}
.dcat-box .table-wrap.table-fixed-right .grid-row-actions > a,
.dcat-box td.grid__actions__ .grid-row-actions > a,
.dcat-box .table-wrap.table-fixed-right .grid__actions__ > a,
.dcat-box td.grid__actions__ > a {
    position: static !important;
    float: none !important;
    flex: 0 0 auto !important;
}
.dcat-box .table-wrap.table-fixed-right .btn-style,
.dcat-box .grid__actions__ .btn-style,
.dcat-box .table-wrap.table-fixed-right .btn.btn-xs,
.dcat-box .grid__actions__ .btn.btn-xs {
    padding: 0 0.32rem !important;
    margin: 0 0.08rem 0.1rem 0 !important;
    height: 1.5rem !important;
    line-height: 1.5rem !important;
    font-size: 11px !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}
.dcat-box .project-actions-line2,
.dcat-box .project-actions-line2-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.1rem 0.12rem;
    white-space: normal;
    margin-top: 0.12rem;
    max-width: 100%;
    width: 100%;
    flex-basis: 100%;
}
.dcat-box .table-wrap.table-fixed-right .custom-switch,
.dcat-box .grid__actions__ .custom-switch {
    margin: 0 0.12rem 0 0 !important;
    transform: scale(0.86);
    transform-origin: left center;
    vertical-align: middle;
}
body.admin-grid-sticky .dcat-box .table-wrap.table-fixed-left,
body.admin-grid-sticky .dcat-box .table-wrap.table-fixed-right,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box .table-wrap.table-fixed-left,
body:has(.content-body .dcat-box table.custom-data-table) .dcat-box .table-wrap.table-fixed-right {
    z-index: 25;
}

/* 有右固定操作列时：隐藏主表操作列，避免横滑出现双「操作」 */
.dcat-box:has(.table-wrap.table-fixed-right) .table-wrap.table-main th.grid__actions__,
.dcat-box:has(.table-wrap.table-fixed-right) .table-wrap.table-main td.grid__actions__ {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
    visibility: hidden;
    pointer-events: none;
}
/* CNAME 弹窗：可滚动内容区 + 底栏可见（避免 flex+min-height:0 把懒加载表单压成空白） */
.modal.project-cname-modal .modal-dialog {
    max-height: calc(100vh - 2.5rem);
    margin: 1.25rem auto;
}
.modal.project-cname-modal .modal-content {
    max-height: calc(100vh - 2.5rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal.project-cname-modal .modal-header {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}
.modal.project-cname-modal .modal-header .modal-title {
    flex: 1 1 auto;
    margin-right: 0.5rem;
}
.modal.project-cname-modal .modal-header .project-cname-open-log,
.modal.project-a-record-modal .modal-header .project-a-record-open-log {
    flex: 0 0 auto;
    margin-right: 0.35rem;
    padding: 0.15rem 0.55rem;
    line-height: 1.4;
}
.modal.project-a-record-modal .modal-header .modal-title {
    flex: 1 1 auto;
    margin-right: 0.5rem;
}
.modal.project-cname-modal .modal-body {
    flex: 1 1 auto;
    min-height: 280px;
    max-height: calc(100vh - 8rem);
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}
.modal.project-cname-modal form.project-cname-form {
    display: block;
    margin-bottom: 0;
    max-height: none;
    overflow: visible;
}
.modal.project-cname-modal form.project-cname-form > .box-body {
    overflow: visible;
}
.modal.project-cname-modal form.project-cname-form > .box-footer,
.modal.project-cname-modal form.project-cname-form > .form-footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: #fff;
    border-top: 1px solid #e4e7ed;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 0 !important;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.modal.project-cname-modal .project-cname-domain-list-wrap {
    max-height: 240px;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.modal.project-cname-modal .project-cname-domain-list-wrap > table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}
.modal.project-cname-modal .project-cname-domain-list-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8f9fa;
    box-shadow: inset 0 -1px 0 #dee2e6;
}

/* A 记录弹窗：与 CNAME 同款可滚动 + sticky 底栏（含进度条） */
.modal.project-a-record-modal .modal-dialog {
    max-height: calc(100vh - 2.5rem);
    margin: 1.25rem auto;
}
.modal.project-a-record-modal .modal-content {
    max-height: calc(100vh - 2.5rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal.project-a-record-modal .modal-header {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}
.modal.project-a-record-modal .modal-body {
    flex: 1 1 auto;
    min-height: 280px;
    max-height: calc(100vh - 8rem);
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}
.modal.project-a-record-modal form.project-a-record-form {
    display: block;
    margin-bottom: 0;
    max-height: none;
    overflow: visible;
}
.modal.project-a-record-modal form.project-a-record-form > .box-body {
    overflow: visible;
}
.modal.project-a-record-modal form.project-a-record-form > .box-footer,
.modal.project-a-record-modal form.project-a-record-form > .form-footer {
    position: sticky;
    bottom: 0;
    z-index: 12;
    background: #fff;
}
.modal.project-a-record-modal .project-a-record-progress-dock {
    position: sticky;
    bottom: 3.4rem; /* 贴在 重置/提交 底栏上方 */
    z-index: 11;
    background: #fff;
    border-top: 1px solid #e4e7ed;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.04);
    margin: 0.75rem -0.25rem 0;
    padding: 0.65rem 0.75rem 0.35rem;
}
.modal.project-a-record-modal .project-a-record-progress-status {
    font-size: 12px;
    color: #606266;
    margin-bottom: 0.35rem;
}
.modal.project-a-record-modal .project-a-record-progress-dock .cname-task-progress {
    height: 18px;
    margin-bottom: 0;
}
.modal.project-a-record-modal form.project-a-record-form > .box-footer,
.modal.project-a-record-modal form.project-a-record-form > .form-footer {
    border-top: 1px solid #e4e7ed;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.03);
    margin-bottom: 0 !important;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.modal.project-a-record-modal .project-a-record-domain-list-wrap {
    max-height: 240px;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.modal.project-a-record-modal .project-a-record-domain-list-wrap > table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}
.modal.project-a-record-modal .project-a-record-domain-list-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8f9fa;
    box-shadow: inset 0 -1px 0 #dee2e6;
}

/* CNAME/A 记录任务日志 layer：关闭钮勿贴边/溢出 */
.layui-layer.cname-task-log-layer .layui-layer-title {
    padding-right: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.layui-layer.cname-task-log-layer .layui-layer-setwin {
    right: 14px;
    top: 14px;
}

/* CNAME 任务日志消息盒（宝塔风格） */
.cname-task-log-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
    background: #1e1e1e;
    color: #ddd;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}
.cname-task-log-head {
    flex: 0 0 auto;
    padding: 10px 12px 8px;
    background: #2a2a2a;
    border-bottom: 1px solid #3a3a3a;
}
.cname-task-log-status {
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 8px;
    max-height: 4.5em;
    overflow-x: hidden;
    overflow-y: auto;
    word-break: break-all;
    line-height: 1.4;
}
.cname-task-log-foot-text {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 8px;
}
.cname-task-log-copy {
    flex: 0 0 auto;
    padding: 0.1rem 0.45rem;
    line-height: 1.35;
    color: #ddd;
    border-color: #666;
}
.cname-task-log-copy:hover,
.cname-task-log-copy:focus {
    color: #fff;
    border-color: #aaa;
    background: rgba(255, 255, 255, 0.08);
}
.cname-task-stages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    line-height: 1.4;
}
.cname-stage-item {
    color: #888;
    padding: 1px 6px;
    border-radius: 3px;
}
.cname-stage-item.is-done {
    color: #8bc34a;
}
.cname-stage-item.is-current {
    color: #fff;
    background: #0d6efd;
}
.cname-stage-item.is-failed {
    color: #fff;
    background: #dc3545;
}
.cname-stage-sep {
    color: #555;
    margin: 0 2px;
}
.cname-task-progress {
    height: 14px;
    margin-bottom: 0;
    background: #333;
}
.cname-task-progress .progress-bar {
    font-size: 10px;
    line-height: 14px;
}
.cname-task-log-body {
    flex: 1 1 auto;
    min-height: 280px;
    max-height: 360px;
    overflow-y: auto;
    padding: 8px 12px;
    background: #111;
}
.cname-log-line {
    display: flex;
    gap: 10px;
    padding: 2px 0;
    white-space: pre-wrap;
    word-break: break-all;
}
.cname-log-ts {
    flex: 0 0 64px;
    color: #666;
}
.cname-log-line.level-info .cname-log-text { color: #c5c5c5; }
.cname-log-line.level-success .cname-log-text { color: #20c997; }
.cname-log-line.level-warn .cname-log-text { color: #ffc107; }
.cname-log-line.level-error .cname-log-text { color: #ff6b6b; }
.cname-task-log-foot {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid #3a3a3a;
    background: #2a2a2a;
    color: #aaa !important;
}

/* ========== 列表列头问号提示：更柔和 ========== */
a[class*="grid-column-help-"].feather.icon-help-circle {
    color: #8a96a8 !important;
    font-size: 14px;
    opacity: 0.9;
    vertical-align: -1px;
}
a[class*="grid-column-help-"].feather.icon-help-circle:hover {
    color: #5b8def !important;
    opacity: 1;
}

/* ========== 项目列表 ZIP 全页拖拽上传（S3 式） ========== */
.project-zip-dnd-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 35, 65, 0.52);
    border: 3px dashed rgba(255, 255, 255, 0.85);
    pointer-events: none;
    box-sizing: border-box;
}
.project-zip-dnd-overlay.is-active {
    display: flex;
}
.project-zip-dnd-overlay-inner {
    text-align: center;
    color: #fff;
    padding: 28px 36px;
    border-radius: 8px;
    background: rgba(8, 24, 48, 0.35);
    max-width: 90vw;
}
.project-zip-dnd-overlay-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.project-zip-dnd-overlay-sub {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.85;
}
.project-zip-dnd-overlay-target {
    margin-top: 14px;
    font-size: 15px;
    min-height: 1.4em;
    color: #cfe3ff;
}
tr.project-zip-dnd-row-hover > td {
    background: rgba(77, 163, 255, 0.22) !important;
    outline: 1px solid rgba(77, 163, 255, 0.55);
}
/* 行内 ZIP 进度（配置/路径列） */
.project-zip-progress {
    width: 100%;
    max-width: 220px;
    margin-top: 2px;
}
.project-zip-progress-track {
    height: 6px;
    border-radius: 3px;
    background: #e8eef5;
    overflow: hidden;
}
.project-zip-progress-bar {
    height: 100%;
    background: #586cb1;
    transition: width 0.12s linear;
}
.project-zip-progress-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 3px;
    font-size: 11px;
    color: #666;
    line-height: 1.2;
}
.project-zip-path-cell.is-uploading .project-zip-upload-btn {
    opacity: 0.55;
    cursor: not-allowed;
}

/* 配置/路径列：与操作卡行高对齐，收紧间距 */
.project-pz-path-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}
.project-pz-path-col .project-pz-modal-trigger {
    color: #586cb1;
    text-decoration: none;
    line-height: 1.2;
    font-size: 14px;
}
.project-zip-path-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}
.project-zip-path-text {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    color: #555;
    line-height: 1.25;
}
.project-zip-upload-btn {
    padding: 1px 8px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    height: auto !important;
    min-height: 22px;
}

/* 项目列表操作列：方案二卡片按钮（紧凑） */
.dcat-box td.grid__actions__:has(.project-action-card),
.dcat-box .table-wrap.table-fixed-right td.grid__actions__:has(.project-action-card) {
    display: block !important;
    max-width: min(38vw, 340px) !important;
    padding: 0.15rem 0.2rem !important;
}
.dcat-box .table-wrap.table-fixed-right:has(.project-action-card) .grid__actions__,
.dcat-box td.grid__actions__:has(.project-action-card) {
    max-width: min(38vw, 340px) !important;
}
.project-action-card {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    box-sizing: border-box;
    padding: 6px;
    border: 1px solid #e5e9f0;
    border-radius: 6px;
    background: #fff;
}
.project-action-card__switch {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 20px;
    flex-wrap: wrap;
}
.project-action-card__switch .project-link-task-log-btn {
    margin: 0;
    padding: 0 8px;
    line-height: 20px;
    height: 22px;
    font-size: 12px;
}
.link-task-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.link-task-tab {
    border: 1px solid #555;
    background: #2a2a2a;
    color: #ccc;
    border-radius: 3px;
    padding: 2px 10px;
    font-size: 12px;
    cursor: pointer;
}
.link-task-tab.is-active {
    background: #4876FF;
    border-color: #4876FF;
    color: #fff;
}
.link-task-log-layer .layui-layer-content {
    overflow: hidden;
}
.project-action-card__switch .project-status-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.project-action-card__switch .project-status-label {
    font-size: 12px;
    color: #666;
    margin: 0;
}
.project-action-card__grid,
.project-action-card__danger {
    /* 铺满卡片；卡片宽由最长按钮决定，两列 1fr 等宽 */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 100%;
}
.project-action-card__sep {
    height: 0;
    border: 0;
    border-top: 1px dashed #d5dbe5;
    margin: 1px 0;
    align-self: stretch;
    width: 100%;
}
.project-action-card__danger-full {
    grid-column: 1 / -1;
    width: 100%;
}
.project-action-card__grid > a,
.project-action-card__grid > span,
.project-action-card__grid > div,
.project-action-card__danger > a,
.project-action-card__danger > span,
.project-action-card__danger > div,
.project-action-card__danger-full > a,
.project-action-card__danger-full > span,
.project-action-card__danger-full > div {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    vertical-align: top;
}
.project-action-card .project-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 3px 6px !important;
    height: auto !important;
    min-height: 24px;
    line-height: 1.2 !important;
    font-size: 12px !important;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    border-radius: 5px !important;
    background: #fff !important;
    box-shadow: none !important;
    cursor: pointer;
    text-decoration: none !important;
}
.project-action-card .project-action-btn i {
    font-size: 12px;
    line-height: 1;
    flex: 0 0 auto;
}
.project-action-card .project-action-btn span {
    overflow: visible;
    text-overflow: unset;
    white-space: nowrap;
}
.project-action-card .project-action-btn--detail {
    color: #6b7c93 !important;
    border: 1px solid #c5d0de !important;
}
.project-action-card .project-action-btn--edit {
    color: #3b82f6 !important;
    border: 1px solid #93c5fd !important;
}
.project-action-card .project-action-btn--add {
    color: #16a34a !important;
    border: 1px solid #86efac !important;
}
.project-action-card .project-action-btn--cname {
    color: #0d9488 !important;
    border: 1px solid #5eead4 !important;
}
.project-action-card .project-action-btn--batch {
    color: #7c3aed !important;
    border: 1px solid #c4b5fd !important;
}
.project-action-card .project-action-btn--danger {
    color: #dc2626 !important;
    border: 1px solid #fca5a5 !important;
}
.project-action-card .project-action-btn--warning {
    color: #334155 !important;
    border: 1px solid #94a3b8 !important;
}
.project-action-card .project-action-btn--full {
    width: 100%;
}
.project-action-card a:hover .project-action-btn,
.project-action-card .project-action-btn:hover {
    filter: brightness(0.97);
    background: #fafbfc !important;
}
/* Modal / 编辑 / 删除触发器铺满格子，避免旧 btn 样式挤压 */
.project-action-card > .project-action-card__grid > a,
.project-action-card > .project-action-card__danger > a,
.project-action-card > .project-action-card__danger-full > a,
.project-action-card__grid > a,
.project-action-card__danger > a,
.project-action-card__danger-full > a {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: 1 !important;
    text-align: left;
}

/* ========== 全后台：顶栏/树工具/筛选按钮文字图标框内居中 ========== */
.content-body .grid-refresh,
.content-body .filter-btn,
.content-body .btn.btn-mini,
.content-header .btn.btn-sm,
.tree-box .btn.btn-sm,
.tree-box .btn.btn-outline-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}
.content-body .grid-refresh i,
.content-body .filter-btn i,
.content-body .btn.btn-mini i,
.content-header .btn.btn-sm i,
.tree-box .btn.btn-sm i,
.content-body .grid-refresh .feather,
.content-body .filter-btn .feather,
.content-body .btn.btn-mini .feather {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    vertical-align: middle !important;
}
