:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #17a2b8;
    --navbar-height: 53px;
    --sidebar-width: 72px;

    /* 主题颜色变量 - 紫色调（默认） */
    --theme-navbar-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --theme-sidebar-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --theme-navbar-hover: linear-gradient(135deg, #5568d3 0%, #653a91 100%);
    --theme-sidebar-hover: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    --theme-sidebar-submenu: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --theme-sidebar-submenu-hover: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.15) 100%);
    --theme-page-header: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --theme-btn-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --theme-btn-primary-hover: linear-gradient(135deg, #5568d3 0%, #653a91 100%);
    --theme-border-color: rgba(102, 126, 234, 0.1);
    /* 二级菜单弹出层不透明底色 */
    --theme-popup-solid-0: #2A3558;
    --theme-popup-solid-1: #3A4578;
    --theme-popup-solid-2: #222A48;
    /* 列表偶数行条纹浅色（随主题） */
    --theme-table-stripe: rgba(102, 126, 234, 0.08);
    /* 列表行选中背景（主题色 60% 深度） */
    --theme-row-selected: rgba(102, 126, 234, 0.6);
    /* 确认框内“具体删除内容”高亮色（与主题一致） */
    --theme-confirm-highlight: #667eea;
}

/* 绿色调主题 */
body.theme-green {
    --theme-navbar-gradient: linear-gradient(135deg, #00B248 0%, #009624 100%);
    --theme-sidebar-gradient: linear-gradient(135deg, #00B248 0%, #009624 100%);
    --theme-navbar-hover: linear-gradient(135deg, #009624 0%, #007A1F 100%);
    --theme-sidebar-hover: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    --theme-sidebar-submenu: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --theme-sidebar-submenu-hover: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.15) 100%);
    --theme-page-header: linear-gradient(135deg, #00B248 0%, #009624 100%);
    --theme-btn-primary: linear-gradient(135deg, #00B248 0%, #009624 100%);
    --theme-btn-primary-hover: linear-gradient(135deg, #009624 0%, #007A1F 100%);
    --theme-border-color: rgba(0, 178, 72, 0.1);
    --theme-popup-solid-0: #0A4A28;
    --theme-popup-solid-1: #0D5C38;
    --theme-popup-solid-2: #093F1C;
    --theme-table-stripe: rgba(0, 178, 72, 0.08);
    --theme-row-selected: rgba(0, 178, 72, 0.6);
    --theme-confirm-highlight: #00B248;
}

/* 蓝色调主题 */
body.theme-blue {
    --theme-navbar-gradient: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    --theme-sidebar-gradient: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    --theme-navbar-hover: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    --theme-sidebar-hover: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    --theme-sidebar-submenu: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --theme-sidebar-submenu-hover: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.15) 100%);
    --theme-page-header: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    --theme-btn-primary: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    --theme-btn-primary-hover: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    --theme-border-color: rgba(33, 150, 243, 0.1);
    --theme-popup-solid-0: #0A4568;
    --theme-popup-solid-1: #0D5C82;
    --theme-popup-solid-2: #093F5C;
    --theme-table-stripe: rgba(33, 150, 243, 0.08);
    --theme-row-selected: rgba(33, 150, 243, 0.6);
    --theme-confirm-highlight: #2196F3;
}

/* 青绿色调主题 */
body.theme-teal {
    --theme-navbar-gradient: linear-gradient(135deg, #009688 0%, #00796B 100%);
    --theme-sidebar-gradient: linear-gradient(135deg, #009688 0%, #00796B 100%);
    --theme-navbar-hover: linear-gradient(135deg, #00796B 0%, #00695C 100%);
    --theme-sidebar-hover: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    --theme-sidebar-submenu: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --theme-sidebar-submenu-hover: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.15) 100%);
    --theme-page-header: linear-gradient(135deg, #009688 0%, #00796B 100%);
    --theme-btn-primary: linear-gradient(135deg, #009688 0%, #00796B 100%);
    --theme-btn-primary-hover: linear-gradient(135deg, #00796B 0%, #00695C 100%);
    --theme-border-color: rgba(0, 150, 136, 0.1);
    --theme-popup-solid-0: #0A4A48;
    --theme-popup-solid-1: #0D5C58;
    --theme-popup-solid-2: #093F3C;
    --theme-table-stripe: rgba(0, 150, 136, 0.08);
    --theme-row-selected: rgba(0, 150, 136, 0.6);
    --theme-confirm-highlight: #009688;
}

/* 确认框内“具体内容”高亮（与主题色一致） */
#confirmMessage .confirm-msg-highlight {
    color: var(--theme-confirm-highlight);
    font-weight: 600;
}

/* 数据列表行：手型。凡 Bootstrap table-hover 的列表与显式 table-cursor-pointer 行为一致 */
.table-cursor-pointer tbody tr,
.table.table-hover tbody tr {
    cursor: pointer;
}
.table-cursor-pointer tbody tr button,
.table-cursor-pointer tbody tr select,
.table-cursor-pointer tbody tr textarea,
.table-cursor-pointer tbody tr a,
.table-cursor-pointer tbody tr .btn,
.table.table-hover tbody tr button,
.table.table-hover tbody tr select,
.table.table-hover tbody tr textarea,
.table.table-hover tbody tr a,
.table.table-hover tbody tr .btn {
    cursor: pointer;
}
.table-cursor-pointer tbody tr input[type="checkbox"],
.table-cursor-pointer tbody tr input[type="radio"],
.table.table-hover tbody tr input[type="checkbox"],
.table.table-hover tbody tr input[type="radio"] {
    cursor: pointer;
}
.table-cursor-pointer tbody tr input[type="text"],
.table-cursor-pointer tbody tr input[type="number"],
.table-cursor-pointer tbody tr input[type="search"],
.table-cursor-pointer tbody tr input[type="password"],
.table-cursor-pointer tbody tr input[type="email"],
.table-cursor-pointer tbody tr input[type="tel"],
.table-cursor-pointer tbody tr input[type="url"],
.table-cursor-pointer tbody tr input[type="datetime-local"],
.table.table-hover tbody tr input[type="text"],
.table.table-hover tbody tr input[type="number"],
.table.table-hover tbody tr input[type="search"],
.table.table-hover tbody tr input[type="password"],
.table.table-hover tbody tr input[type="email"],
.table.table-hover tbody tr input[type="tel"],
.table.table-hover tbody tr input[type="url"],
.table.table-hover tbody tr input[type="datetime-local"] {
    cursor: text;
}

/* 全站 checkbox/radio 垂直对齐：统一去掉默认上偏移，避免“勾选框与文字一上一下” */
input.form-check-input[type="checkbox"],
input.form-check-input[type="radio"] {
    margin-top: 0;
    vertical-align: middle;
}
label.form-check-label:has(> input.form-check-input[type="checkbox"]),
label.form-check-label:has(> input.form-check-input[type="radio"]),
label.form-check:has(> input.form-check-input[type="checkbox"]),
label.form-check:has(> input.form-check-input[type="radio"]) {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* 列表行选中背景：与派警工单(Order)一致，随主题 --theme-row-selected */
.table tbody tr.selected > td,
.table tbody tr.selected td,
.table tbody tr.dev-row-focus > td,
.table tbody tr.dev-row-focus td,
.table tbody tr.row-selected > td,
.table tbody tr.row-selected td,
.table tbody tr[class*="row-selected"] > td,
.table tbody tr[class*="row-selected"] td,
.table tbody tr.table-active > td,
.table tbody tr.table-active td {
    background-color: var(--theme-row-selected) !important;
}
.table.table-hover tbody tr.selected:hover > td,
.table.table-hover tbody tr.selected:hover td,
.table.table-hover tbody tr.dev-row-focus:hover > td,
.table.table-hover tbody tr.dev-row-focus:hover td,
.table.table-hover tbody tr.row-selected:hover > td,
.table.table-hover tbody tr.row-selected:hover td,
.table.table-hover tbody tr[class*="row-selected"]:hover > td,
.table.table-hover tbody tr[class*="row-selected"]:hover td,
.table.table-hover tbody tr.table-active:hover > td,
.table.table-hover tbody tr.table-active:hover td {
    background-color: var(--theme-row-selected) !important;
}

html,
body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    scrollbar-width: none;
    /* Firefox 隐藏垂直滚动条 */
    -ms-overflow-style: none;
    /* IE/Edge 隐藏滚动条 */
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

body>.main-content {
    flex: 1;
    min-height: 0;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Edge 隐藏垂直滚动条 */
}

.navbar {
    background: var(--theme-navbar-gradient);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
    min-height: var(--navbar-height);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    z-index: 1030;
}

.navbar > .container-fluid {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-height: calc(var(--navbar-height) - 0.5rem);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
    color: white !important;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    max-width: none;
    min-width: 0;
    z-index: 2;
    margin-right: 0;
}

.navbar-title-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    max-width: min(48vw, 520px);
    text-align: center;
    pointer-events: auto;
}

.navbar-title-center #navbarSoftName {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.navbar-toggler {
    margin-left: auto;
    z-index: 2;
}

#navbarNav {
    margin-left: auto;
    z-index: 2;
}

@media (max-width: 992px) {
    .navbar-title-center {
        max-width: 36vw;
        font-size: 1rem;
    }
    .navbar-title-center #navbarSoftName {
        font-size: 1.05rem;
    }
}

.navbar-brand img {
    height: 32px;
    margin-right: 10px;
    object-fit: contain;
}

.navbar-brand .navbar-brand-logo-wrap {
    display: inline-flex;
    align-items: center;
}

.navbar-brand .navbar-brand-logo-wrap--static {
    cursor: default;
    pointer-events: none;
}

/* 顶栏右侧：退出与全屏同一行垂直居中，全屏与退出之间略加大间距 */
#navbarNav .navbar-nav.ms-auto {
    align-items: center;
}
#navbarNav .navbar-nav.ms-auto > .nav-item.nav-item-fullscreen {
    margin-left: 0.75rem;
}
#navbarNav .navbar-nav.ms-auto > .nav-item:nth-last-child(2) > .nav-link,
#navbarNav .navbar-nav.ms-auto > .nav-item.nav-item-fullscreen > .nav-link {
    display: inline-flex;
    align-items: center;
}

/* 顶栏全屏：无外框；图标略收以显细 */
.navbar .nav-link.nav-link-fullscreen {
    justify-content: center;
    padding: var(--bs-nav-link-padding-y, 0.5rem) var(--bs-nav-link-padding-x, 0.5rem);
    margin-left: 0;
    color: rgba(255, 255, 255, 0.88) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    font-size: 1rem;
    line-height: inherit;
}
.navbar .nav-link.nav-link-fullscreen:hover,
.navbar .nav-link.nav-link-fullscreen:focus-visible {
    color: #fff !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.navbar .nav-link.nav-link-fullscreen .nav-fullscreen-icon {
    display: block;
    /* 与顶栏文字同基准略收一号，观感更细，仍落在同一行框内 */
    font-size: 0.94em;
    line-height: 1;
    vertical-align: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: 0.9;
    filter: none;
}

/* 主题下拉：颜色圆点展示，单列 */
.theme-dropdown-menu {
    display: none;
    min-width: auto;
    width: auto;
    padding: 0.5rem;
    flex-direction: column;
}

.theme-dropdown-menu.show {
    display: flex !important;
}

.theme-dropdown-menu li {
    list-style: none;
}

.theme-dropdown-menu .dropdown-item.theme-option {
    padding: 0.35rem;
    justify-content: center;
}

.sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    height: calc(100vh - var(--navbar-height));
    width: var(--sidebar-width, 72px);
    background: var(--theme-sidebar-gradient);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1000;
    transition: width 0.25s ease, margin-left 0.25s ease, opacity 0.2s ease;
    border-right: 1px solid var(--theme-border-color);
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* 后台管理：传统宽侧栏（块级纵向列表），不受业务站图标轨 flex 布局影响 */
body.layout-shell-back {
    --sidebar-width: 176px;
}
body.layout-shell-back .sidebar {
    display: block;
    padding-left: 5px;
    padding-right: 5px;
    width: 176px;
    z-index: 1000;
    overflow-x: hidden;
    overflow-y: auto;
}
body.layout-shell-back .main-content {
    margin-left: 176px;
}
body.layout-shell-back.sidebar-collapsed .sidebar {
    width: 176px;
    margin-left: 0;
    opacity: 1;
    pointer-events: auto;
    border-right-width: 1px;
    overflow-x: hidden;
    overflow-y: auto;
}
body.layout-shell-back.sidebar-collapsed .main-content {
    margin-left: 176px;
}
/* 强制后台菜单逐项纵向排布，避免 flex 压缩导致项重叠 */
body.layout-shell-back #sidebarMenu.nav {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    flex: none;
    overflow: visible;
    padding: 0;
    margin: 0;
    list-style: none;
}
body.layout-shell-back #sidebarMenu .nav-item,
body.layout-shell-back #sidebarMenu .submenu {
    list-style: none;
}
body.layout-shell-back #sidebarMenu .nav-item {
    display: block;
    position: relative;
    float: none;
    width: 100%;
    height: auto;
    flex: none;
    margin: 0;
    padding-left: 0;
}
body.layout-shell-back #sidebarMenu .nav-link {
    height: auto;
    min-height: 44px;
}
body.layout-shell-back .sidebar .menu-parent,
body.layout-shell-back .sidebar .menu-parent span {
    height: auto;
}
body.layout-shell-back .sidebar .submenu {
    display: block;
    position: static;
    height: auto;
    float: none;
}
body.layout-shell-back .sidebar .submenu.show {
    max-height: none;
    overflow: visible;
}

.sidebar.sidebar-rail .sidebar-rail-header {
    flex-shrink: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-rail-collapse-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.sidebar-rail-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.sidebar.sidebar-rail #sidebarMenu {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 6px 0;
    background: transparent;
}

.sidebar.sidebar-rail .menu-rail-item {
    width: 100%;
}

.sidebar.sidebar-rail .menu-rail-btn {
    --menu-rail-accent: #E3F2FD;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6px 0;
    min-height: 72px;
    height: 72px;
    width: calc(100% - 10px);
    border-left: none;
    border-radius: 8px;
    margin: 3px 5px;
    gap: 4px;
    white-space: normal;
    background: transparent !important;
    color: var(--menu-rail-accent) !important;
}

.sidebar.sidebar-rail .menu-rail-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.sidebar.sidebar-rail .menu-rail-item.is-active > .menu-rail-btn,
.sidebar.sidebar-rail .menu-rail-btn.active {
    background: rgba(255, 255, 255, 0.18) !important;
}

.sidebar.sidebar-rail .menu-rail-icon-well {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.2px solid var(--menu-rail-accent);
    background: rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
}

@supports (background: color-mix(in srgb, #fff 25%, transparent)) {
    .sidebar.sidebar-rail .menu-rail-icon-well {
        background: color-mix(in srgb, var(--menu-rail-accent) 25%, transparent);
    }
    .sidebar.sidebar-rail .menu-rail-item.is-active > .menu-rail-btn,
    .sidebar.sidebar-rail .menu-rail-btn.active {
        background: color-mix(in srgb, var(--menu-rail-accent) 33%, transparent) !important;
    }
    .menu-rail-flyout .menu-tab-link.active {
        background: color-mix(in srgb, var(--menu-rail-accent) 35%, #000);
    }
}

.sidebar.sidebar-rail .menu-rail-item.is-active > .menu-rail-btn .menu-rail-icon-well,
.sidebar.sidebar-rail .menu-rail-btn.active .menu-rail-icon-well {
    border-width: 2px;
}

.sidebar.sidebar-rail .menu-rail-btn i.menu-rail-icon {
    margin-right: 0;
    width: auto;
    font-size: 1.05rem;
    color: var(--menu-rail-accent);
    text-shadow: none;
}

.sidebar.sidebar-rail .menu-rail-label {
    display: block;
    width: 100%;
    max-width: 64px;
    margin: 0 auto;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* 主题渐变侧栏上用实白字；强调色留给图标，避免浅色字糊在亮底上 */
    color: #ffffff !important;
    opacity: 1 !important;
    /* 轻描边，避免字看起来过粗 */
    text-shadow:
        -0.5px 0 0 rgba(0, 0, 0, 0.35),
        0.5px 0 0 rgba(0, 0, 0, 0.35),
        0 -0.5px 0 rgba(0, 0, 0, 0.35),
        0 0.5px 0 rgba(0, 0, 0, 0.35);
    -webkit-font-smoothing: antialiased;
}

.sidebar.sidebar-rail .menu-toggle {
    display: none !important;
}

body.sidebar-collapsed .sidebar {
    width: 0;
    margin-left: 0;
    opacity: 0;
    pointer-events: none;
    border-right-width: 0;
    overflow: hidden;
}

body.sidebar-collapsed .main-content {
    margin-left: 0;
}

.sidebar-expand-fab {
    position: fixed;
    left: 10px;
    top: auto;
    bottom: 14px;
    z-index: 1001;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 18px;
    background: var(--theme-btn-primary, #667eea);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

body.sidebar-collapsed .sidebar-expand-fab {
    display: inline-flex !important;
}

.menu-rail-flyout {
    --menu-rail-accent: #7FDBFF;
    position: fixed;
    z-index: 1100;
    min-width: 200px;
    max-width: 280px;
    max-height: min(70vh, 520px);
    display: none;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.4));
}

.menu-rail-flyout.is-open {
    display: block;
}

.menu-rail-flyout-inner {
    position: relative;
    border-radius: 16px;
    border: 1px solid var(--menu-rail-accent);
    background: linear-gradient(160deg, var(--theme-popup-solid-0) 0%, var(--theme-popup-solid-1) 45%, var(--theme-popup-solid-2) 100%);
    overflow: hidden;
    color: #f5fcff;
    opacity: 1;
}

.menu-rail-flyout-accent-bar {
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 16px 0 0 16px;
    background: var(--menu-rail-accent);
    z-index: 1;
}

.menu-rail-flyout-header {
    position: relative;
    padding: 14px 16px 12px;
    text-align: center;
    margin-left: 3px;
    background: rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.menu-rail-flyout-header::before,
.menu-rail-flyout-header::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: #fff;
    pointer-events: none;
}

.menu-rail-flyout-header::before {
    width: 90px;
    height: 90px;
    left: -20px;
    top: -36px;
    opacity: 0.1;
}

.menu-rail-flyout-header::after {
    width: 56px;
    height: 56px;
    right: -12px;
    bottom: -18px;
    opacity: 0.08;
}

.menu-rail-flyout-title {
    display: block;
    position: relative;
    z-index: 1;
    font-size: 15px;
    font-weight: 700;
    color: var(--menu-rail-accent);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.menu-rail-flyout-title-line {
    display: block;
    position: relative;
    z-index: 1;
    width: 40px;
    height: 2.5px;
    margin: 6px auto 0;
    border-radius: 1.5px;
    background: var(--menu-rail-accent);
    opacity: 0.95;
}

.menu-rail-flyout-header-divider {
    height: 1px;
    margin: 0 16px;
    background: rgba(255, 255, 255, 0.16);
}

.menu-rail-flyout-body {
    padding: 10px 2px 12px;
    max-height: min(58vh, 440px);
    overflow-y: auto;
}

.menu-rail-flyout-group-title {
    padding: 8px 16px 4px;
    font-size: 12px;
    opacity: 0.75;
    font-weight: 600;
    color: #f5fcff;
}

.menu-rail-flyout .menu-tab-link,
.menu-rail-flyout .menu-rail-flyout-link {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 3px 10px;
    padding: 0;
    min-height: 40px;
    height: 40px;
    border-radius: 20px;
    color: #fff !important;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 14px;
    transition: background 0.15s ease, border-color 0.15s ease;
    overflow: hidden;
}

.menu-rail-flyout .menu-tab-link:hover,
.menu-rail-flyout .menu-rail-flyout-link:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff !important;
}

.menu-rail-flyout .menu-tab-link.active {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--menu-rail-accent);
    font-weight: 600;
}

.menu-rail-flyout .menu-rail-leaf-strip {
    flex: 0 0 auto;
    width: 3px;
    height: 18px;
    margin: 0 12px;
    border-radius: 2px;
    background: var(--menu-rail-accent);
    opacity: 0.55;
}

.menu-rail-flyout .menu-tab-link.active .menu-rail-leaf-strip {
    opacity: 1;
}

.menu-rail-flyout .menu-rail-leaf-text {
    flex: 1;
    min-width: 0;
    padding-right: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-rail-flyout .menu-tab-link i {
    display: none;
}

.sidebar .nav-link {
    color: white;
    padding: 12px 12px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    line-height: 1.5;
    font-size: 1rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: var(--theme-sidebar-hover);
    border-left-color: transparent;
    color: white;
    font-weight: 500;
}

.sidebar .nav-link i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar .menu-parent {
    font-weight: 500;
    justify-content: space-between;
    cursor: pointer;
    align-items: center;
    line-height: 1.5;
    min-height: 44px;
    height: 100%;
}

.sidebar .menu-parent span {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    line-height: 1.5;
    height: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar .menu-parent span i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 1em;
    height: 1em;
}

.sidebar .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--theme-sidebar-submenu);
}

.sidebar .submenu.show {
    max-height: 580px;
}

.sidebar .submenu .nav-link {
    padding: 10px 12px 10px 12px;
    font-size: 0.95rem;
    justify-content: flex-start;
    color: white;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar .submenu .nav-link:hover,
.sidebar .submenu .nav-link.active {
    background: var(--theme-sidebar-submenu-hover);
    border-left-color: transparent;
    color: white;
}

/* 二级菜单中有三级菜单的父菜单项样式 - 确保与普通二级菜单项左对齐 */
.sidebar .submenu .menu-parent {
    padding: 10px 12px 10px 12px;
    font-size: 0.95rem;
    color: white;
}

.sidebar .submenu .menu-parent:hover,
.sidebar .submenu .menu-parent.active {
    background: var(--theme-sidebar-submenu-hover);
    border-left-color: transparent;
    color: white;
}

/* 三级菜单样式 - 更深的缩进和不同的背景色 */
.sidebar .submenu .submenu {
    background: var(--theme-sidebar-submenu);
}

.sidebar .submenu .submenu .nav-link {
    padding: 8px 12px 8px 20px;
    font-size: 0.875rem;
    color: white;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar .submenu .submenu .nav-link:hover,
.sidebar .submenu .submenu .nav-link.active {
    background: var(--theme-sidebar-submenu-hover);
    color: white;
}

/* 三级菜单的父菜单项样式 */
.sidebar .submenu .submenu>.nav-item>.menu-parent {
    padding: 8px 12px 8px 36px;
    font-size: 0.875rem;
    color: white;
}

.sidebar .submenu .submenu>.nav-item>.menu-parent:hover {
    background: var(--theme-sidebar-submenu-hover);
    color: white;
}

.menu-toggle {
    transition: transform 0.3s;
    font-size: 0.8rem;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1;
    width: 1em;
    height: 1em;
    transform: translateY(3px);
}

.menu-toggle.rotate {
    transform: rotate(90deg) translateY(3px);
}

.main-content {
    margin-left: var(--sidebar-width, 72px);
    padding: 0;
    padding-top: 0;
    margin-top: 0;
    height: calc(100vh - var(--navbar-height));
    min-height: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.25s ease;
}

/* ========== 页签栏（多页签并存、选中与主题同色、首页不可关闭、其他可单独关闭） ========== */
.main-content>.tab-bar {
    display: flex !important;
    visibility: visible !important;
}

.tab-bar {
    align-items: stretch;
    background: #e8eaed;
    border-bottom: 2px solid #b0b4b8;
    padding: 0 8px 0 6px;
    min-height: 38px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tab-list {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: flex-end;
    min-width: 0;
    scrollbar-width: thin;
}

.tab-list::-webkit-scrollbar {
    height: 4px;
}

.tab-list::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 2px;
}

.tab-list li {
    display: flex;
    align-items: center;
    background: #e9ecef;
    border: 1px solid #b8bcc0;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    padding: 0 12px 0 14px;
    height: 36px;
    max-width: 200px;
    min-width: 72px;
    box-sizing: border-box;
    cursor: pointer;
    font-size: 13px;
    color: #495057;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.tab-list li:hover {
    background: #f1f3f5;
    color: #212529;
}

/* 选中页签：与导航栏主题色一致（随主题切换紫色/绿色） */
.tab-list li.active {
    background: var(--theme-navbar-gradient);
    border-color: transparent;
    border-bottom: 2px solid transparent;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: -1px;
    padding-bottom: 1px;
}

.tab-list li.active:hover {
    color: #fff;
    filter: brightness(1.02);
}

.tab-list li .tab-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.tab-list li .tab-close {
    margin-left: 8px;
    padding: 0;
    width: 18px;
    height: 18px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #6c757d;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
    transition: color 0.15s, background 0.15s;
}

.tab-list li:hover .tab-close {
    color: #495057;
}

.tab-list li .tab-close:hover {
    color: #dc3545;
    background: rgba(0, 0, 0, 0.06);
}

.tab-list li.active .tab-close {
    color: rgba(255, 255, 255, 0.85);
}

.tab-list li.active .tab-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
}

/* 首页页签：无关闭按钮，仅占位保持对齐；标题在整格内水平居中 */
.tab-list li.tab-default {
    position: relative;
}

.tab-list li.tab-default .tab-title {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 28px;
    pointer-events: none;
}

.tab-list li.tab-default .tab-close-placeholder {
    flex-shrink: 0;
    width: 18px;
    margin-left: 8px;
    visibility: hidden;
    pointer-events: none;
}

/* 关闭全部：文字按钮，与页签栏垂直居中 */
.tab-close-all {
    flex-shrink: 0;
    align-self: center;
    margin-left: 10px;
    padding: 4px 10px;
    height: 28px;
    border: none;
    background: transparent;
    color: #6c757d;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    transition: color 0.2s, background 0.2s;
}

.tab-close-all:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.08);
}

#tabCloseAll {
    display: none;
}

/* 标签页整体置底与侧边栏底部齐平；四边边距最小 */
.tab-content-wrap {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
    padding: 2px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    border: 1px solid #e2e6ea;
    border-top: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tab-content-wrap .default-page-content,
.tab-content-wrap .tab-panel {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 定位地图：根节点非 content-card，须占满页签内容区 */
.tab-content-wrap .default-page-content > .page-monitor-map,
.tab-content-wrap .tab-panel > .page-monitor-map {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    align-self: stretch;
    width: 100%;
}

/* 参考 LifeCycleServer 日志界面：列表页卡片填满高度，表格区 flex:1，分页贴底；页签内四边边距最小 */
.tab-content-wrap .default-page-content>.content-card,
.tab-content-wrap .tab-panel>.content-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    padding: 4px;
}

/* 报警历史页：左右布局（无 alarm-record-top-bar 时）；顶部查询栏布局（与日志一致） */
.tab-content-wrap .content-card.alarm-record-page {
    flex-direction: row;
}

.tab-content-wrap .content-card.alarm-record-page.alarm-record-top-bar {
    flex-direction: column;
    gap: 0;
}

.tab-content-wrap .content-card.alarm-record-page.alarm-record-top-bar .alarm-query-bar {
    flex-shrink: 0;
    margin-bottom: 16px;
}

.tab-content-wrap .content-card.alarm-record-page.alarm-record-top-bar .alarm-table-wrap {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    padding-top: 0;
}

.alarm-record-page {
    display: flex;
    gap: 12px;
    height: 100%;
    min-height: 0;
}

.alarm-record-page .alarm-table-wrap {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.alarm-record-page .alarm-table-wrap .table-responsive {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.alarm-record-page .alarm-filter-panel {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alarm-record-page .alarm-filter-panel label,
.alarm-record-page .alarm-filter-panel .form-label {
    white-space: nowrap;
    margin-bottom: 4px;
}

.alarm-record-page .alarm-filter-panel .form-control,
.alarm-record-page .alarm-filter-panel .form-select {
    height: 38px;
    padding: 0 12px;
    line-height: 36px;
    box-sizing: border-box;
}

.alarm-record-page .alarm-filter-panel .btn {
    height: 38px;
    padding: 0 20px;
    box-sizing: border-box;
}

.alarm-record-page .alarm-filter-panel input[type="datetime-local"] {
    width: 100%;
    min-width: 0;
}

.alarm-record-page .alarm-loading-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

.alarm-record-page .alarm-loading-overlay.show {
    display: flex;
}

/* 报警历史分页栏与列表页统一 */
.alarm-record-page nav[aria-label="分页"] {
    flex-shrink: 0;
    margin-top: auto;
    min-height: 40px;
    padding: 6px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 0;
    padding-bottom: 0px;
}

/* 事件字典页：左侧严格按参考图排版，右侧列表；页签内四边留白收紧（左/右/底与侧边栏和边缘间距小），分页在右侧区域内置底 */
.tab-content-wrap .content-card.event-dict-page {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: stretch;
    margin: 0;
    padding: 2px;
}

.event-dict-page .event-dict-form-panel {
    width: 190px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    border: 1px solid var(--theme-border-color, #e2e6ea);
    border-radius: 8px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.event-dict-page .event-dict-table-wrap {
    border: 1px solid var(--theme-border-color, #e2e6ea);
    border-radius: 8px;
    background: #fff;
    padding: 8px 8px 4px 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.event-dict-page .table tbody tr { cursor: pointer; }

.event-dict-page .event-dict-table-wrap .table th,
.event-dict-page .event-dict-table-wrap .table td,
.sys-dict-page .sys-dict-table-inner .table th,
.sys-dict-page .sys-dict-table-inner .table td,
.access-config-page .access-config-table-inner .table th,
.access-config-page .access-config-table-inner .table td {
    text-align: center;
    vertical-align: middle;
}

/* 搜索区：输入框与查询按钮等高 */
.event-dict-page .event-dict-search {
    margin-bottom: 6px;
}

.event-dict-page .event-dict-search-row {
    display: flex;
    align-items: stretch;
    gap: 4px;
}

.event-dict-page .event-dict-search-input {
    flex: 1;
    min-width: 0;
}

.event-dict-page .event-dict-search-input .form-control,
.event-dict-page .event-dict-search-input .form-control-sm {
    height: 20px;
    padding: 0 26px 0 5px;
    font-size: 13px;
    line-height: 20px;
    border-radius: 4px;
    box-sizing: border-box;
}

.event-dict-page .event-dict-query-btn {
    flex-shrink: 0;
    height: 28px;
    padding: 0 10px;
    font-size: 13px;
    line-height: 1;
    border-radius: 4px;
    box-sizing: border-box;
}

/* 表单区：与查询行间距拉开；第二行标签与查询行间距拉开 */
.event-dict-page .event-dict-form {
    margin-top: 14px;
    margin-bottom: 6px;
}

.event-dict-page .event-dict-form-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.event-dict-page .event-dict-voice-file-row,
.event-dict-page .event-dict-voice-file-col,
.event-dict-page .event-dict-play-count-row,
.event-dict-page .event-dict-play-count-col {
    display: none !important;
}

.event-dict-page .event-dict-form-row .event-dict-form-lbl {
    white-space: nowrap;
    width: 58px;
    flex-shrink: 0;
    margin: 0;
    font-size: 13px;
    line-height: 20px;
    padding-right: 4px;
}

.event-dict-page .event-dict-form-row .event-dict-form-lbl-empty {
    width: 0;
    min-width: 0;
    padding: 0;
    overflow: hidden;
}

.event-dict-page .event-dict-form-row .form-control,
.event-dict-page .event-dict-form-row .form-select {
    flex: 1;
    min-width: 0;
    height: 20px;
    padding: 0 5px;
    font-size: 13px;
    border-radius: 4px;
}

/* 两个下拉框：字体与标签一致，高度加大 */
.event-dict-page .event-dict-form-row .form-select,
.event-dict-page .event-dict-form-row.event-dict-label-top .form-select {
    height: 28px;
    font-size: 13px;
    line-height: 28px;
    padding: 0 8px;
}

.event-dict-page .event-dict-form-row textarea.form-control {
    height: auto;
    min-height: 32px;
    resize: vertical;
    border-radius: 4px;
    font-size: 13px;
}

/* 标签单独一行，控件在下一行 */
.event-dict-page .event-dict-form-row.event-dict-label-top,
.event-dict-page .event-dict-form-group.event-dict-label-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
}

.event-dict-page .event-dict-form-row.event-dict-label-top .event-dict-form-lbl,
.event-dict-page .event-dict-form-group.event-dict-label-top .event-dict-form-lbl {
    width: auto;
    line-height: 1.3;
    padding-right: 0;
    margin-bottom: 0;
}

.event-dict-page .event-dict-form-row.event-dict-label-top .form-control,
.event-dict-page .event-dict-form-row.event-dict-label-top .form-select,
.event-dict-page .event-dict-form-group.event-dict-label-top .form-control {
    flex: none;
    width: 100%;
}

/* 表单同一行两列布局（可选） */
.event-dict-page .event-dict-form-row-2col {
    display: flex;
    gap: 5px;
    align-items: flex-start;
}

.event-dict-page .event-dict-form-row-2col .event-dict-form-group {
    flex: 1;
    min-width: 0;
}

.event-dict-page .event-dict-form-row-2col .event-dict-form-group.event-dict-label-top {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.event-dict-page .event-dict-form-row-2col .event-dict-form-lbl {
    width: auto;
    flex-shrink: 0;
}

.event-dict-page .event-dict-form-row-2col .form-control {
    flex: none;
    min-width: 0;
    width: 100%;
}

/* 显示颜色：输入框背景即颜色值，点击弹出颜色选择器 */
.event-dict-page .event-dict-color-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.event-dict-page .event-dict-color-input {
    width: 68px !important;
    flex: none !important;
    color: #fff;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* 常用颜色多宫格 + 自定义：选择器面板（打开时挂到 body 固定定位置顶） */
.event-dict-color-panel .event-dict-color-custom-btn-wrap {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.event-dict-color-panel .event-dict-color-picker-native {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 28px;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    border: none;
}

.event-dict-color-panel {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 4px;
    z-index: 9999;
    background: #fff;
    border: 1px solid var(--theme-border-color, #e2e6ea);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 180px;
    flex-direction: column;
    gap: 8px;
}

.event-dict-color-panel.show {
    display: flex;
}

.event-dict-color-panel .event-dict-color-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
}

.event-dict-color-panel .event-dict-color-cell {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.event-dict-color-panel .event-dict-color-cell:hover {
    transform: scale(1.1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.event-dict-color-panel .event-dict-color-custom {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 4px;
    border-top: 1px solid #eee;
}

.event-dict-color-panel .event-dict-color-custom-lbl {
    font-size: 12px;
    color: #666;
}

.event-dict-color-panel .event-dict-color-custom-btn {
    display: inline-block;
    width: 48px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
    background: #f0f0f0;
    box-sizing: border-box;
}

.event-dict-color-panel .event-dict-color-custom-btn:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.event-dict-color-panel .event-dict-color-custom-btn-wrap:focus-within .event-dict-color-custom-btn {
    box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.4);
}

/* 列表颜色列：色块 + 十六进制值 */
.event-dict-table-color-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 4px;
}

.event-dict-page .event-dict-color-cell {
    white-space: nowrap;
}

.event-dict-page .event-dict-color-cell .event-dict-table-color-swatch+* {
    vertical-align: middle;
}

.event-dict-page .event-dict-check-row .event-dict-form-lbl {
    line-height: 18px;
}

.event-dict-page .event-dict-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    align-items: center;
    justify-content: flex-start;
}

.event-dict-page .event-dict-check-item {
    margin: 0;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
}

.event-dict-page .event-dict-check-item .form-check-input {
    margin: 0;
}

/* 操作按钮：2x2 网格，高度与查询按钮等高；带图标时宽度自适应 */
.event-dict-page .event-dict-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 6px;
    margin-top: 2px;
}

.event-dict-page .event-dict-btns .btn {
    height: 28px;
    padding: 0 10px;
    font-size: 13px;
    line-height: 1;
    border-radius: 4px;
    box-sizing: border-box;
    white-space: nowrap;
    min-width: fit-content;
}

.event-dict-page .event-dict-query-btn {
    white-space: nowrap;
    min-width: fit-content;
    padding: 0 10px;
}

.event-dict-page .event-dict-form-panel .form-control,
.event-dict-page .event-dict-form-panel .form-select {
    box-sizing: border-box;
}

.event-dict-page .event-dict-table-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.event-dict-page .event-dict-table-wrap .table-responsive {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

/* 事件字典分页栏与报警历史一致：底部无额外间距 */
.event-dict-page nav[aria-label="分页"] {
    flex-shrink: 0;
    margin-top: auto;
    min-height: 40px;
    padding: 6px 0;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tab-content-wrap .default-page-content>.content-card>.table-responsive,
.tab-content-wrap .tab-panel>.content-card>.table-responsive {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.tab-content-wrap .default-page-content>.content-card>.log-table-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tab-content-wrap .default-page-content>.content-card>.log-table-wrap .table-responsive,
.tab-content-wrap .tab-panel>.content-card>.log-table-wrap .table-responsive {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

/* 分页区域：底部固定区域内的分页控件整体垂直居中（上下对称留白，高度收紧） */
.tab-content-wrap .default-page-content>.content-card>nav[aria-label="分页"],
.tab-content-wrap .default-page-content>.content-card>nav[aria-label*="分页"],
.tab-content-wrap .tab-panel>.content-card>nav[aria-label="分页导航"],
.tab-content-wrap .tab-panel>.content-card>nav[aria-label*="分页"] {
    flex-shrink: 0;
    margin-top: auto;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 0;
    box-sizing: border-box;
}

.tab-content-wrap .default-page-content>.content-card>nav[aria-label="分页"]>.d-flex,
.tab-content-wrap .default-page-content>.content-card>nav[aria-label*="分页"]>.d-flex,
.tab-content-wrap .tab-panel>.content-card>nav[aria-label="分页导航"]>.d-flex,
.tab-content-wrap .tab-panel>.content-card>nav[aria-label*="分页"]>.d-flex {
    align-items: center;
    width: 100%;
}

.tab-content-wrap .tab-panels {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4px;
}

.tab-content-wrap .tab-panels.has-tabs {
    display: block;
}

.tab-content-wrap .tab-panel {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.tab-content-wrap .tab-panel.active {
    display: flex;
}

/* 转移设备页：上下布局（上搜索栏，下列表+分组树） */
.tab-content-wrap .tab-panel.active > .device-move-layout {
    flex: 1;
    min-height: 0;
    align-self: stretch;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.tab-content-wrap .tab-panel .device-move-layout > .content-card.device-move-page,
.tab-content-wrap .default-page-content > .device-move-layout > .content-card.device-move-page {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 4px 4px 0 4px;
}
.tab-content-wrap .default-page-content > .device-move-layout {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}
.device-move-page .device-move-body {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
}
.device-move-page .device-move-list-col {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 设备信息 / 转移设备左侧：上(查询) 中(表) 下(分页) 与转移设备相同 flex 策略；查询与分页不压缩，中间 table-responsive flex:1 1 0 吃满剩余高度 */
.tab-content-wrap .tab-panel.active > .device-list-layout {
    flex: 1;
    min-height: 0;
    align-self: stretch;
    width: 100%;
}
.tab-content-wrap .tab-panel .device-list-layout > .content-card.device-list-page,
.tab-content-wrap .default-page-content > .device-list-layout > .content-card.device-list-page,
.tab-content-wrap .tab-panel .device-list-layout > .content-card.device-tariff-page,
.tab-content-wrap .default-page-content > .device-list-layout > .content-card.device-tariff-page,
.tab-content-wrap .tab-panel .device-list-layout > .content-card.tariff-view-page,
.tab-content-wrap .default-page-content > .device-list-layout > .content-card.tariff-view-page {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 2px 4px 0 4px;
}
.tab-content-wrap .default-page-content > .device-list-layout {
    flex: 1;
    min-height: 0;
    display: flex;
    align-self: stretch;
}
.tab-content-wrap .tab-panel .device-list-layout > .content-card.device-list-page > .device-query-bar,
.tab-content-wrap .default-page-content > .device-list-layout > .content-card.device-list-page > .device-query-bar,
.tab-content-wrap .tab-panel .device-list-layout > .content-card.device-tariff-page > .device-query-bar,
.tab-content-wrap .default-page-content > .device-list-layout > .content-card.device-tariff-page > .device-query-bar,
.tab-content-wrap .tab-panel .device-move-layout > .content-card.device-list-page > .device-query-bar,
.tab-content-wrap .default-page-content .device-move-layout > .content-card.device-list-page > .device-query-bar {
    flex-shrink: 0;
}
.tab-content-wrap .tab-panel .device-move-layout > .content-card.device-list-page > .device-move-body,
.tab-content-wrap .default-page-content .device-move-layout > .content-card.device-list-page > .device-move-body {
    flex: 1 1 0;
    min-height: 0;
}

/* 消费记录：查询栏在 .consume-record-main 内，与设备信息查询栏同高（32px 按钮/控件） */
.content-card.device-list-page.consume-record-page .consume-record-main > .device-query-bar {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    row-gap: 2px;
}
.content-card.device-list-page.consume-record-page .consume-record-main > .device-query-bar .form-control,
.content-card.device-list-page.consume-record-page .consume-record-main > .device-query-bar .form-select {
    height: 32px;
    min-height: 32px;
    padding: 0 10px;
    line-height: 30px;
    font-size: 0.8125rem;
    box-sizing: border-box;
}
.content-card.device-list-page.consume-record-page .consume-record-main > .device-query-bar .btn {
    height: 32px;
    min-height: 32px;
    padding: 0 12px;
    line-height: 1;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.content-card.device-list-page.consume-record-page .consume-record-main > .device-query-bar .form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0;
    vertical-align: middle;
}
.content-card.device-list-page.consume-record-page .consume-record-main > .device-query-bar .form-check-label,
.content-card.device-list-page.consume-record-page .consume-record-main > .device-query-bar .cr-time-lbl {
    font-size: 0.8125rem;
    line-height: 32px;
}
.content-card.device-list-page.consume-record-page .consume-record-main > .device-query-bar label,
.content-card.device-list-page.consume-record-page .consume-record-main > .device-query-bar .cr-time-lbl {
    white-space: nowrap;
}
/* 消费记录查询栏：组间 > 组内；组内控件留间距避免挤在一起 */
.content-card.device-list-page.consume-record-page .consume-record-main > .device-query-bar.cr-consume-query-bar {
    gap: 12px;
    column-gap: 12px;
    row-gap: 12px;
}
.content-card.device-list-page.consume-record-page .consume-record-main > .device-query-bar .cr-qbar-grp {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    flex-shrink: 0;
}
.content-card.device-list-page.consume-record-page .consume-record-main > .device-query-bar .cr-qbar-grp .cr-qbar-inline {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    flex-shrink: 0;
}
.tab-content-wrap .tab-panel .device-list-layout > .content-card.device-list-page > .table-responsive,
.tab-content-wrap .default-page-content > .device-list-layout > .content-card.device-list-page > .table-responsive,
.tab-content-wrap .tab-panel .device-list-layout > .content-card.device-tariff-page > .table-responsive,
.tab-content-wrap .default-page-content > .device-list-layout > .content-card.device-tariff-page > .table-responsive,
.tab-content-wrap .tab-panel .device-move-layout .device-move-list-col > .device-list-table-wrap > .table-responsive,
.tab-content-wrap .default-page-content .device-move-layout .device-move-list-col > .device-list-table-wrap > .table-responsive {
    flex: 1 1 0;
    min-height: 0;
    overflow: auto;
}

.tab-content-wrap .tab-panel .device-list-layout > .content-card.device-list-page > .device-list-table-wrap,
.tab-content-wrap .default-page-content > .device-list-layout > .content-card.device-list-page > .device-list-table-wrap,
.tab-content-wrap .tab-panel .device-list-layout > .content-card.device-tariff-page > .device-list-table-wrap,
.tab-content-wrap .default-page-content > .device-list-layout > .content-card.device-tariff-page > .device-list-table-wrap,
.tab-content-wrap .tab-panel .device-list-layout > .content-card.device-tariff-page > .device-tariff-table-wrap,
.tab-content-wrap .default-page-content > .device-list-layout > .content-card.device-tariff-page > .device-tariff-table-wrap,
.tab-content-wrap .tab-panel .device-move-layout .device-move-list-col > .device-list-table-wrap,
.tab-content-wrap .default-page-content .device-move-layout .device-move-list-col > .device-list-table-wrap,
.content-card.device-list-page .consume-record-main > .device-list-table-wrap {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-x: auto;
    overflow-y: auto;
}

.tab-content-wrap .tab-panel .device-list-layout > .content-card.device-list-page > .device-list-table-wrap > .table-responsive,
.tab-content-wrap .default-page-content > .device-list-layout > .content-card.device-list-page > .device-list-table-wrap > .table-responsive,
.tab-content-wrap .tab-panel .device-list-layout > .content-card.device-tariff-page > .device-list-table-wrap > .table-responsive,
.tab-content-wrap .default-page-content > .device-list-layout > .content-card.device-tariff-page > .device-list-table-wrap > .table-responsive,
.tab-content-wrap .tab-panel .device-list-layout > .content-card.device-tariff-page > .device-tariff-table-wrap > .table-responsive,
.tab-content-wrap .default-page-content > .device-list-layout > .content-card.device-tariff-page > .device-tariff-table-wrap > .table-responsive,
.tab-content-wrap .tab-panel .device-move-layout .device-move-list-col > .device-list-table-wrap > .table-responsive,
.tab-content-wrap .default-page-content .device-move-layout .device-move-list-col > .device-list-table-wrap > .table-responsive,
.content-card.device-list-page .consume-record-main > .device-list-table-wrap > .table-responsive {
    flex: 1 1 0;
    min-height: 0;
    overflow: auto;
}

/* 指名页面兜底：按“操作日志/报警历史”同级强制高度链，确保 20 条/页列表区吃满 */
#devMoveRoot,
#deviceTariffRoot,
#rechargeRecordRoot,
#backMoneyRecordRoot,
#sendRecordRoot,
#consumeRecordRoot {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

#rechargeRecordRoot .recharge-record-table-inner,
#backMoneyRecordRoot .back-money-record-table-inner,
#sendRecordRoot .send-record-table-inner,
#consumeRecordRoot .consume-record-table-inner,
#deviceTariffRoot .device-tariff-table-wrap,
.device-move-page .device-move-list-col > .device-list-table-wrap {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

#rechargeRecordRoot .recharge-record-table-inner > .table-responsive,
#backMoneyRecordRoot .back-money-record-table-inner > .table-responsive,
#sendRecordRoot .send-record-table-inner > .table-responsive,
#consumeRecordRoot .consume-record-table-inner > .table-responsive,
#deviceTariffRoot .device-tariff-table-wrap > .table-responsive,
.device-move-page .device-move-list-col > .device-list-table-wrap > .table-responsive {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow: auto !important;
}

#backMoneyMealRoot.back-money-meal-page {
    min-height: 0 !important;
    overflow: hidden !important;
}

#backMoneyMealRoot .bmm-page-body {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

#backMoneyMealRoot .bmm-top-row {
    flex: 0 0 500px !important;
    height: 500px !important;
    max-height: 500px !important;
    min-height: 500px !important;
    overflow: hidden !important;
}

#backMoneyMealRoot .bmm-h-divider {
    flex: 0 0 3px !important;
    height: 3px !important;
    min-height: 3px !important;
    max-height: 3px !important;
}

#backMoneyMealRoot .bmm-bottom-row {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

#backMoneyMealRoot .bmm-top-left,
#backMoneyMealRoot .bmm-bottom-left,
#backMoneyMealRoot .bmm-meal-table-wrap,
#backMoneyMealRoot .bmm-type-table-wrap,
#backMoneyMealRoot .bmm-public-wrap,
#backMoneyMealRoot .bmm-cus-type-wrap,
#backMoneyMealRoot .bmm-cus-meal-wrap,
#backMoneyMealRoot .bmm-bottom-right {
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
}

#backMoneyMealRoot .bmm-bottom-right {
    display: flex !important;
    flex-direction: column !important;
}

#backMoneyMealRoot .device-list-table-wrap {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

#backMoneyMealRoot .device-list-table-wrap > .table-responsive {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow: auto !important;
}

#backMoneyMealRoot .bmm-toolbar.bmm-toolbar-cus-meal {
    flex-wrap: nowrap !important;
    width: 100%;
}

#backMoneyMealRoot .bmm-toolbar.bmm-toolbar-cus-meal .bmm-cus-money-input {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    flex: 0 0 50px !important;
}

#backMoneyMealRoot .bmm-toolbar.bmm-toolbar-cus-meal .bmm-cus-remark-input {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
}

#backMoneyMealRoot .bmm-toolbar.bmm-toolbar-cus-meal #bmmBtnModCusMeal {
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

#backMoneyMealRoot .bmm-toolbar {
    flex: 0 0 auto !important;
}

#backMoneyMealRoot .bmm-toolbar .form-check {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
    height: 30px !important;
    margin-bottom: 0 !important;
}

#backMoneyMealRoot .bmm-toolbar .form-check-input {
    width: 1em !important;
    height: 1em !important;
    min-width: 1em !important;
    margin-top: 0 !important;
    vertical-align: middle !important;
    flex-shrink: 0;
}

#backMoneyMealRoot .bmm-toolbar .form-check-label,
#backMoneyMealRoot .bmm-toolbar label.small {
    font-size: 12px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 30px !important;
    margin-bottom: 0 !important;
}

#backMoneyMealRoot .form-select-sm,
#backMoneyMealRoot select.form-select.form-select-sm {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 28px !important;
    vertical-align: middle;
}

#backMoneyMealRoot .table thead th {
    height: 32px !important;
    min-height: 32px !important;
    line-height: 20px !important;
    font-size: 13px !important;
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
}

#backMoneyMealRoot .table tbody tr {
    height: 32px !important;
}

#backMoneyMealRoot .table tbody td {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    line-height: 20px !important;
    font-size: 14px !important;
    padding: 0.2rem 0.45rem !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#backMoneyMealRoot .table .btn-ops {
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    line-height: 22px !important;
    padding: 0 6px !important;
    font-size: 13px !important;
}

#rechargeRecordRoot > .device-list-pagination-bar,
#backMoneyRecordRoot > .device-list-pagination-bar,
#sendRecordRoot > .device-list-pagination-bar,
#deviceTariffRoot > .device-list-pagination-bar,
#consumeRecordRoot .consume-record-main > .device-list-pagination-bar,
.device-move-page .device-move-list-col > .device-list-pagination-bar {
    flex-shrink: 0 !important;
}

/* 设备列表同构页（含通讯/充值记录）：表格区 loading 遮罩依赖相对定位；原仅 List.cshtml 内联，Fee 子页缺省会错位到整页 */
.tab-content-wrap .device-list-layout .device-list-table-wrap,
.default-page-content .device-list-layout .device-list-table-wrap {
    position: relative;
}
.tab-content-wrap .device-list-layout .device-list-loading-overlay,
.default-page-content .device-list-layout .device-list-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.72);
    pointer-events: auto;
    cursor: wait;
}

/* 设备信息 / 转移设备（左侧卡）/ 操作日志 / 报警历史：底部分页条高度贴合内容、上下无多余留白，行内垂直居中 */
.content-card.device-list-page > .device-list-pagination-bar,
.content-card.device-tariff-page > .device-list-pagination-bar,
.content-card.log-page-wrap > .device-list-pagination-bar,
.content-card.alarm-record-page > .device-list-pagination-bar {
    flex-shrink: 0;
    margin-top: 6px;
    margin-bottom: 0;
    padding-top: 2px;
    padding-bottom: 0;
    align-items: center;
}
.content-card.device-list-page:not(.device-move-page) > .device-list-pagination-bar,
.content-card.device-tariff-page > .device-list-pagination-bar,
.content-card.log-page-wrap > .device-list-pagination-bar,
.content-card.alarm-record-page > .device-list-pagination-bar {
    margin-top: 0;
    padding-top: 0;
}
.content-card.device-list-page .device-list-pagination-bar .stats-bar,
.content-card.device-list-page .device-list-pagination-bar .bottom-tools,
.content-card.device-tariff-page .device-list-pagination-bar .stats-bar,
.content-card.device-tariff-page .device-list-pagination-bar .bottom-tools,
.content-card.log-page-wrap .device-list-pagination-bar .bottom-tools,
.content-card.alarm-record-page .device-list-pagination-bar .bottom-tools {
    align-items: center;
    margin-bottom: 0;
}
.content-card.device-list-page .device-list-pagination-bar .pagination,
.content-card.device-tariff-page .device-list-pagination-bar .pagination,
.content-card.log-page-wrap .device-list-pagination-bar .pagination,
.content-card.alarm-record-page .device-list-pagination-bar .pagination {
    margin-top: 0;
    margin-bottom: 0;
}
.content-card.device-list-page .device-list-pagination-bar .page-item,
.content-card.device-tariff-page .device-list-pagination-bar .page-item,
.content-card.log-page-wrap .device-list-pagination-bar .page-item,
.content-card.alarm-record-page .device-list-pagination-bar .page-item {
    display: flex;
    align-items: center;
}
.content-card.device-list-page .device-list-pagination-bar .page-link,
.content-card.device-tariff-page .device-list-pagination-bar .page-link,
.content-card.log-page-wrap .device-list-pagination-bar .page-link,
.content-card.alarm-record-page .device-list-pagination-bar .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* 与 List.cshtml .device-list-page .bottom-tools 一致：分页区控件高度 30px */
.content-card.device-list-page .device-list-pagination-bar .bottom-tools .form-select-sm,
.content-card.device-list-page .device-list-pagination-bar .bottom-tools .form-control-sm,
.content-card.device-list-page .device-list-pagination-bar .bottom-tools .btn-sm,
.content-card.device-tariff-page .device-list-pagination-bar .bottom-tools .form-select-sm,
.content-card.device-tariff-page .device-list-pagination-bar .bottom-tools .form-control-sm,
.content-card.device-tariff-page .device-list-pagination-bar .bottom-tools .btn-sm,
.content-card.log-page-wrap .device-list-pagination-bar .bottom-tools .form-select-sm,
.content-card.log-page-wrap .device-list-pagination-bar .bottom-tools .form-control-sm,
.content-card.log-page-wrap .device-list-pagination-bar .bottom-tools .btn-sm,
.content-card.alarm-record-page .device-list-pagination-bar .bottom-tools .form-select-sm,
.content-card.alarm-record-page .device-list-pagination-bar .bottom-tools .form-control-sm,
.content-card.alarm-record-page .device-list-pagination-bar .bottom-tools .btn-sm {
    height: 30px;
    line-height: 28px;
    padding-top: 0;
    padding-bottom: 0;
}
.content-card.device-list-page .device-list-pagination-bar .bottom-tools .pagination-sm .page-link,
.content-card.device-tariff-page .device-list-pagination-bar .bottom-tools .pagination-sm .page-link,
.content-card.log-page-wrap .device-list-pagination-bar .bottom-tools .pagination-sm .page-link,
.content-card.alarm-record-page .device-list-pagination-bar .bottom-tools .pagination-sm .page-link {
    height: 30px;
    line-height: 18px;
}
.tab-content-wrap .tab-panel .device-list-layout > .content-card.device-list-page,
.tab-content-wrap .default-page-content > .device-list-layout > .content-card.device-list-page,
.tab-content-wrap .tab-panel .device-list-layout > .content-card.device-tariff-page,
.tab-content-wrap .default-page-content > .device-list-layout > .content-card.device-tariff-page,
.tab-content-wrap .tab-panel .device-list-layout > .content-card.tariff-view-page,
.tab-content-wrap .default-page-content > .device-list-layout > .content-card.tariff-view-page,
.tab-content-wrap .tab-panel > .content-card.device-list-page,
.tab-content-wrap .default-page-content > .content-card.device-list-page,
.tab-content-wrap .tab-panel > .content-card.device-tariff-page,
.tab-content-wrap .default-page-content > .content-card.device-tariff-page,
.tab-content-wrap .tab-panel > .content-card.tariff-view-page,
.tab-content-wrap .default-page-content > .content-card.tariff-view-page,
.tab-content-wrap .tab-panel > .content-card.log-page-wrap,
.tab-content-wrap .default-page-content > .content-card.log-page-wrap,
.tab-content-wrap .tab-panel > .content-card.alarm-record-page,
.tab-content-wrap .default-page-content > .content-card.alarm-record-page,
.tab-content-wrap .tab-panel > .content-card.iot-list-page,
.tab-content-wrap .default-page-content > .content-card.iot-list-page {
    padding: 2px 4px 0 4px;
    padding-bottom: 0;
    min-width: 0;
}
.tab-content-wrap .tab-panel > .content-card.device-list-page > .device-query-bar,
.tab-content-wrap .default-page-content > .content-card.device-list-page > .device-query-bar,
.tab-content-wrap .tab-panel > .content-card.device-tariff-page > .device-query-bar,
.tab-content-wrap .default-page-content > .content-card.device-tariff-page > .device-query-bar,
.tab-content-wrap .tab-panel > .content-card.log-page-wrap > .log-query-bar,
.tab-content-wrap .default-page-content > .content-card.log-page-wrap > .log-query-bar,
.tab-content-wrap .tab-panel > .content-card.alarm-record-page > .alarm-query-bar,
.tab-content-wrap .default-page-content > .content-card.alarm-record-page > .alarm-query-bar,
.tab-content-wrap .tab-panel > .content-card.iot-list-page > .iot-query-bar,
.tab-content-wrap .default-page-content > .content-card.iot-list-page > .iot-query-bar {
    flex-shrink: 0;
}
.tab-content-wrap .tab-panel > .content-card.device-list-page > .table-responsive,
.tab-content-wrap .default-page-content > .content-card.device-list-page > .table-responsive,
.tab-content-wrap .tab-panel > .content-card.device-tariff-page > .table-responsive,
.tab-content-wrap .default-page-content > .content-card.device-tariff-page > .table-responsive,
.tab-content-wrap .tab-panel > .content-card.iot-list-page > .table-responsive,
.tab-content-wrap .default-page-content > .content-card.iot-list-page > .table-responsive {
    flex: 1 1 0;
    min-height: 0;
    overflow: auto;
}

/* 操作日志 / 报警历史：中间表格区与设备信息同 flex 策略（table-responsive 吃满剩余高度） */
.tab-content-wrap .tab-panel > .content-card.log-page-wrap > .log-table-wrap,
.tab-content-wrap .default-page-content > .content-card.log-page-wrap > .log-table-wrap,
.tab-content-wrap .tab-panel > .content-card.alarm-record-page.alarm-record-top-bar > .alarm-table-wrap,
.tab-content-wrap .default-page-content > .content-card.alarm-record-page.alarm-record-top-bar > .alarm-table-wrap {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tab-content-wrap .tab-panel > .content-card.log-page-wrap .log-table-wrap .table-responsive,
.tab-content-wrap .default-page-content > .content-card.log-page-wrap .log-table-wrap .table-responsive,
.tab-content-wrap .tab-panel > .content-card.alarm-record-page .alarm-table-wrap .table-responsive,
.tab-content-wrap .default-page-content > .content-card.alarm-record-page .alarm-table-wrap .table-responsive {
    flex: 1 1 0;
    min-height: 0;
    overflow: auto;
}

/*
 * 通用标准列表壳（与设备信息 List 同构）：根 content-card iot-list-page h-100 d-flex flex-column；
 * 顶栏 iot-query-bar（尺寸见下文与 device-query-bar 并列选择器）；中部 iot-list-table-wrap 包 table-responsive；
 * 底部 device-list-pagination-bar 或 nav[aria-label*="分页"]。
 */
.tab-content-wrap .tab-panel > .content-card.iot-list-page > .iot-list-table-wrap,
.tab-content-wrap .default-page-content > .content-card.iot-list-page > .iot-list-table-wrap {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tab-content-wrap .tab-panel > .content-card.iot-list-page > .iot-list-table-wrap > .table-responsive,
.tab-content-wrap .default-page-content > .content-card.iot-list-page > .iot-list-table-wrap > .table-responsive {
    flex: 1 1 0;
    min-height: 0;
    overflow: auto;
}

/* ========== 分组树（可复用，用于账户管理、角色管理等页面左侧） ========== */
.page-with-grouptree {
    display: flex;
    gap: 16px;
    align-items: stretch;
    height: 100%;
    min-height: 0;
}

.group-tree-panel {
    width: 440px;
    flex-shrink: 0;
    border: 1px solid var(--theme-border-color, #e2e6ea);
    border-radius: 8px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.group-tree-panel .tree-title {
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    flex-shrink: 0;
}

.group-tree-search-wrap {
    position: relative;
    flex-shrink: 0;
    margin-bottom: 8px;
    height: 32px;
    display: flex;
    align-items: center;
}

.group-tree-search-wrap .group-tree-search {
    flex: 1;
    min-width: 0;
    padding-left: 28px;
    padding-right: 88px;
    height: 100%;
    font-size: 13px;
    border-radius: 6px;
    box-sizing: border-box;
}

.group-tree-search-wrap .group-tree-search-icon {
    position: absolute;
    left: 10px;
    top: 0;
    height: 32px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #909399;
    font-size: 12px;
    pointer-events: none;
}

.group-tree-search-wrap .group-tree-search-clear {
    position: absolute;
    right: 52px;
    top: 0;
    height: 32px;
    width: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    color: #909399;
    cursor: pointer;
    border-radius: 4px;
    box-sizing: border-box;
}

.group-tree-search-wrap .group-tree-search-clear:hover {
    color: #606266;
    background: rgba(0, 0, 0, 0.06);
}

.group-tree-search-wrap.has-text .group-tree-search-clear {
    display: flex;
}

.group-tree-search-wrap .group-tree-search-submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    height: 26px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.group-tree-panel .group-tree-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.group-tree-node.group-tree-match {
    background: rgba(255, 193, 7, 0.35) !important;
    color: #333;
    font-weight: 600;
}

.group-tree-node.group-tree-match .group-tree-toggle {
    color: #333;
}

/* 命中高亮带 !important；选中时用同 .active 的主题渐变盖住黄底，切换为正式选中色 */
.group-tree-node.group-tree-match.active {
    background: var(--theme-navbar-gradient) !important;
    color: #fff;
    font-weight: normal;
}

.group-tree-node.group-tree-match.active .group-tree-toggle {
    color: rgba(255, 255, 255, 0.9);
}

body.theme-green .group-tree-node.group-tree-match {
    background: rgba(255, 193, 7, 0.4) !important;
}

.group-tree-ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.group-tree-ul ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    margin-left: 11px;
    padding-left: 6px;
    border-left: none;
    background-image: repeating-linear-gradient(to bottom, #c0c4cc 0px, #c0c4cc 1px, transparent 1px, transparent 3px);
    background-size: 1px 3px;
    background-repeat: repeat-y;
    background-position: 0 0;
}

.group-tree-ul>li>ul {
    background-image: none;
    background-size: auto;
}

.group-tree-ul li {
    position: relative;
}

.group-tree-ul li.group-tree-expanded>ul {
    display: block;
}

.group-tree-ul li.group-tree-collapsed>ul {
    display: none;
}

.group-tree-toggle {
    width: 18px;
    flex-shrink: 0;
    cursor: pointer;
    text-align: center;
    font-size: 12px;
    color: #606266;
    user-select: none;
    line-height: 1;
    position: relative;
}

.group-tree-toggle::after {
    content: '';
    position: absolute;
    left: 80%;
    top: 50%;
    width: 8px;
    height: 1px;
    margin-top: 1px;
    background: repeating-linear-gradient(to right, #c0c4cc 0px, #c0c4cc 1px, transparent 1px, transparent 3px);
    pointer-events: none;
}

.group-tree-toggle:hover {
    color: #409eff;
}

.group-tree-node.active .group-tree-toggle {
    color: rgba(255, 255, 255, 0.9);
}

.group-tree-node {
    padding: 2px 6px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 仅非选中行悬停高亮；选中行保持 .active 渐变，避免 body.theme-* 下更高特异性的 :hover 盖住选中背景导致白字看不清 */
.group-tree-node:not(.active):hover {
    background: rgba(102, 126, 234, 0.08);
}

.group-tree-node.active {
    background: var(--theme-navbar-gradient);
    color: #fff;
}

body.theme-green .group-tree-node:not(.active):hover {
    background: rgba(0, 178, 72, 0.08);
}

.group-tree-node .group-tree-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    object-fit: contain;
}

.page-with-grouptree .content-card {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 0;
    border: 1px solid var(--theme-border-color, #e2e6ea);
}

.page-with-grouptree .content-card>.d-flex {
    flex-shrink: 0;
}

.page-with-grouptree .content-card>.table-responsive {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.page-with-grouptree .content-card > .iot-list-table-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.page-with-grouptree .content-card > .iot-list-table-wrap > .table-responsive {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.page-with-grouptree .content-card > .iot-query-bar,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar {
    flex-shrink: 0;
}

.page-with-grouptree .content-card>nav {
    flex-shrink: 0;
}

/* 用户管理：左侧列表 + 中间分配 + 右侧菜单树 */
.page-with-grouptree .content-card .user-page-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
}

.page-with-grouptree .content-card .user-page-main__left {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.page-with-grouptree .content-card .user-page-main__left .table-responsive {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.page-with-grouptree .content-card .user-page-main__left>nav {
    flex-shrink: 0;
    margin-top: 0.35rem;
}

.page-with-grouptree .content-card .user-page-main__right {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.page-with-grouptree .content-card .user-menu-split__mid {
    flex: 0 0 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 2px 3px;
    border-left: 1px dashed var(--theme-border-color, #e2e6ea);
    border-right: 1px dashed var(--theme-border-color, #e2e6ea);
}

.page-with-grouptree .content-card .user-menu-split__mid .btn-assign-menu {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
}

.page-with-grouptree .content-card .user-menu-split__right {
    flex: 0 0 23%;
    max-width: 280px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1px 4px 2px;
    background: var(--theme-card-bg, #fafbfd);
    border: 1px solid var(--theme-border-color, #e2e6ea);
    border-radius: 8px;
    overflow: hidden;
}

.page-with-grouptree .content-card .user-menu-split__right--noassign {
    flex: 0 0 24%;
    max-width: 290px;
}

.page-with-grouptree .content-card .user-menu-split__right .user-menu-tree-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin: 0;
    padding-top: 0;
    font-size: 14px;
    line-height: 1.35;
}

.page-with-grouptree.user-page-layout .group-tree-panel {
    width: 320px;
}

.page-with-grouptree .content-card #userTable tr.user-row-selectable {
    cursor: pointer;
}

.page-with-grouptree .content-card .user-menu-tree-wrap .form-check-input {
    margin-top: 0;
}

.page-with-grouptree .content-card .user-menu-tree-wrap .form-check-label {
    line-height: 1.25;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 12px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.stat-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin-bottom: 10px;
}

.stat-card .icon.primary {
    background: var(--theme-btn-primary);
}

.stat-card .icon.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-card .icon.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card .icon.info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card h3 {
    font-size: 28px;
    font-weight: bold;
    margin: 6px 0;
    color: #2c3e50;
}

.stat-card p {
    color: #7f8c8d;
    margin: 0;
}

.content-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
}

.table {
    background: white;
}

/* 列表偶数行：浅色条纹，随主题变化（区域分组、账户管理、角色权限、日志等所有列表统一生效） */
.table-responsive .table tbody tr:nth-child(even),
.table-responsive .table tbody tr:nth-child(even) td {
    background-color: var(--theme-table-stripe) !important;
}

.table-responsive .table tbody tr:nth-child(even):hover,
.table-responsive .table tbody tr:nth-child(even):hover td {
    background-color: var(--theme-table-stripe) !important;
    filter: brightness(0.96);
}

/* 选中行须盖过上方偶数行条纹（二者均 !important，条纹选择器多一层 .table-responsive + :nth-child，特异度更高） */
.table-responsive .table tbody tr.selected > td,
.table-responsive .table tbody tr.selected td,
.table-responsive .table tbody tr.dev-row-focus > td,
.table-responsive .table tbody tr.dev-row-focus td,
.table-responsive .table tbody tr.row-selected > td,
.table-responsive .table tbody tr.row-selected td,
.table-responsive .table tbody tr[class*="row-selected"] > td,
.table-responsive .table tbody tr[class*="row-selected"] td,
.table-responsive .table tbody tr.table-active > td,
.table-responsive .table tbody tr.table-active td {
    background-color: var(--theme-row-selected) !important;
    filter: none;
}
.table-responsive .table tbody tr.selected:hover > td,
.table-responsive .table tbody tr.selected:hover td,
.table-responsive .table tbody tr.dev-row-focus:hover > td,
.table-responsive .table tbody tr.dev-row-focus:hover td,
.table-responsive .table tbody tr.row-selected:hover > td,
.table-responsive .table tbody tr.row-selected:hover td,
.table-responsive .table tbody tr[class*="row-selected"]:hover > td,
.table-responsive .table tbody tr[class*="row-selected"]:hover td,
.table-responsive .table tbody tr.table-active:hover > td,
.table-responsive .table tbody tr.table-active:hover td {
    background-color: var(--theme-row-selected) !important;
    filter: none;
}

/* 设备信息 / 转移设备：再抬高一级特异度，确保勾选行色一定压过偶数行条纹与其它表样式 */
.device-list-page .table-responsive .table tbody tr.selected > td,
.device-list-page .table-responsive .table tbody tr.selected td,
.device-list-page .table-responsive .table tbody tr.dev-row-focus > td,
.device-list-page .table-responsive .table tbody tr.dev-row-focus td,
.device-move-page .table-responsive .table tbody tr.selected > td,
.device-move-page .table-responsive .table tbody tr.selected td,
.device-move-page .table-responsive .table tbody tr.dev-row-focus > td,
.device-move-page .table-responsive .table tbody tr.dev-row-focus td {
    background-color: var(--theme-row-selected) !important;
    filter: none !important;
}
.device-list-page .table-responsive .table tbody tr.selected:hover > td,
.device-list-page .table-responsive .table tbody tr.selected:hover td,
.device-list-page .table-responsive .table tbody tr.dev-row-focus:hover > td,
.device-list-page .table-responsive .table tbody tr.dev-row-focus:hover td,
.device-move-page .table-responsive .table tbody tr.selected:hover > td,
.device-move-page .table-responsive .table tbody tr.selected:hover td,
.device-move-page .table-responsive .table tbody tr.dev-row-focus:hover > td,
.device-move-page .table-responsive .table tbody tr.dev-row-focus:hover td {
    background-color: var(--theme-row-selected) !important;
    filter: none !important;
}

.table td {
    vertical-align: middle;
    white-space: nowrap;
    /* 表格内容不换行 */
}

/* 表头文字不换行 */
.table th {
    white-space: nowrap;
}

/* 所有列表表头固定，不随滚动条滚动；浅灰底与白底查询栏区分（细则见 wisdomiot-list-thead-query-contrast） */
.table-responsive thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bs-secondary-bg, #f8f9fa);
    box-shadow: 0 1px 0 0 #dee2e6;
}

/* 表格容器水平与垂直滚动 */
.table-responsive {
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 全站列表基础规则：列超出可视宽度时自动显示横向滚动条 */
.content-card .table-responsive {
    overflow-x: auto !important;
    overflow-y: auto;
}

/* 确保表格不会因为内容过长而换行 */
.table-responsive .table {
    min-width: 100%;
    width: auto;
}

/* 底部分页控件紧凑样式：每页条数下拉框与页码输入框高度减小，供所有列表页统一使用 */
.pagination-controls-compact .form-select,
.pagination-controls-compact .form-control.form-control-sm {
    height: 28px;
    min-height: 28px;
    padding: 0 6px;
    font-size: 12px;
    line-height: 26px;
}

.pagination-controls-compact .form-control.form-control-sm[type="number"] {
    width: 48px;
    text-align: center;
}

.btn {
    border-radius: 5px;
    padding: 8px 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 列表操作按钮更小尺寸 */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.3;
}

.btn-sm i {
    font-size: 0.7rem;
}

.btn-primary {
    background: var(--theme-btn-primary);
    border: none;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: var(--theme-btn-primary-hover);
}

.form-control,
.form-select {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px;
}

/* 顶部搜索栏：日期/输入框与查询按钮同高（非设备信息列表的其它页默认 38px） */
.content-card:not(.share-meal-page)>.d-flex:first-child:not(.device-query-bar):not(.iot-query-bar) {
    margin-bottom: 8px;
}

.content-card:not(.share-meal-page)>.d-flex:first-child:not(.device-query-bar):not(.iot-query-bar) .form-control,
.content-card:not(.share-meal-page)>.d-flex:first-child:not(.device-query-bar):not(.iot-query-bar) .form-select {
    height: 38px;
    padding: 0 12px;
    line-height: 36px;
    box-sizing: border-box;
}

.content-card:not(.share-meal-page)>.d-flex:first-child:not(.device-query-bar):not(.iot-query-bar) .btn {
    height: 38px;
    padding: 0 20px;
    line-height: 36px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
}

/* 列表查询顶栏：不换行；项多时整栏横向滚动（设备信息 / 日志 / 报警 / 资费 / 通用 iot-query-bar） */
.content-card .device-query-bar,
.content-card .log-query-bar,
.content-card .alarm-query-bar,
.content-card.iot-list-page > .iot-query-bar,
.page-with-grouptree .content-card > .iot-query-bar,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
}

.iot-query-bar.iot-query-bar--allow-wrap {
    flex-wrap: wrap !important;
    overflow-x: visible;
    overflow-y: visible;
}

/* 广播直播等页：顶栏类名 bc-query-bar 与列表查询条同策略（单行、横滚） */
.content-card .bc-query-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
}

/* 操作日志 / 报警历史 / 设备信息：顶栏查询条（与卡片边、与列表间距加大；组与组之间 gap 加大，覆盖 Bootstrap gap-1） */
.content-card.log-page-wrap > .log-query-bar,
.content-card.alarm-record-page > .alarm-query-bar,
.content-card.iot-list-page > .iot-query-bar,
.page-with-grouptree .content-card > .iot-query-bar,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar {
    margin-top: 6px;
    margin-bottom: 6px;
    padding: 0px 0px;
    gap: 12px 14px !important;
}

/* 设备信息：顶栏与表格间距略收，1080 高度下 20 行/页时表区尽量不出现纵向滚动条 */
.content-card.device-list-page:not(.device-move-page) > .device-query-bar {
    margin-top: 2px;
    margin-bottom: 2px;
    padding: 0;
    gap: 12px 14px !important;
}

/* 设备资费顶栏：保持相对紧凑（非用户所述三页之一） */
.content-card.device-tariff-page > .device-query-bar {
    margin-top: 0;
    margin-bottom: 4px;
    padding-top: 0;
    padding-bottom: 0;
    row-gap: 2px;
}

/* 日志 / 报警 / 设备信息：顶栏内每一组（外层子级 d-flex）组内间距 */
.content-card.log-page-wrap > .log-query-bar > .d-flex,
.content-card.alarm-record-page > .alarm-query-bar > .d-flex,
.content-card.device-list-page:not(.device-move-page) > .device-query-bar > .d-flex,
.content-card.iot-list-page > .iot-query-bar > .d-flex,
.page-with-grouptree .content-card > .iot-query-bar > .d-flex,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar > .d-flex {
    gap: 0.425rem !important;
}

.content-card.log-page-wrap > .log-query-bar .form-control,
.content-card.log-page-wrap > .log-query-bar .form-select,
.content-card.alarm-record-page > .alarm-query-bar .form-control,
.content-card.alarm-record-page > .alarm-query-bar .form-select,
.content-card.device-list-page:not(.device-move-page) > .device-query-bar .form-control,
.content-card.device-list-page:not(.device-move-page) > .device-query-bar .form-select,
.content-card.iot-list-page > .iot-query-bar .form-control,
.content-card.iot-list-page > .iot-query-bar .form-select,
.page-with-grouptree .content-card > .iot-query-bar .form-control,
.page-with-grouptree .content-card > .iot-query-bar .form-select,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar .form-control,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar .form-select,
.content-card.device-tariff-page > .device-query-bar .form-control,
.content-card.device-tariff-page > .device-query-bar .form-select {
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    padding: 0 8px;
    line-height: 32px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* 顶栏关键词：在 32px/左右 8px 基础上为清除钮留出右侧内边距（提高优先级，压过上一段 .form-control 的 padding 简写） */
.content-card.log-page-wrap > .log-query-bar .search-input-wrap .form-control,
.content-card.log-page-wrap > .log-query-bar .search-input-wrap .form-control-sm,
.content-card.alarm-record-page > .alarm-query-bar .search-input-wrap .form-control,
.content-card.alarm-record-page > .alarm-query-bar .search-input-wrap .form-control-sm,
.content-card.device-list-page:not(.device-move-page) > .device-query-bar .search-input-wrap .form-control,
.content-card.device-list-page:not(.device-move-page) > .device-query-bar .search-input-wrap .form-control-sm,
.content-card.iot-list-page > .iot-query-bar .search-input-wrap .form-control,
.content-card.iot-list-page > .iot-query-bar .search-input-wrap .form-control-sm,
.page-with-grouptree .content-card > .iot-query-bar .search-input-wrap .form-control,
.page-with-grouptree .content-card > .iot-query-bar .search-input-wrap .form-control-sm,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar .search-input-wrap .form-control,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar .search-input-wrap .form-control-sm,
.content-card.device-tariff-page > .device-query-bar .search-input-wrap .form-control,
.content-card.device-tariff-page > .device-query-bar .search-input-wrap .form-control-sm {
    padding-right: 28px;
}

.content-card.log-page-wrap > .log-query-bar .btn,
.content-card.alarm-record-page > .alarm-query-bar .btn,
.content-card.device-list-page:not(.device-move-page) > .device-query-bar .btn,
.content-card.iot-list-page > .iot-query-bar .btn,
.page-with-grouptree .content-card > .iot-query-bar .btn,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar .btn,
.content-card.device-tariff-page > .device-query-bar .btn {
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    padding: 0 10px;
    line-height: 32px;
    font-size: 1rem;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.75rem;
}

.content-card.alarm-record-page > .alarm-query-bar .form-check-input,
.content-card.device-list-page:not(.device-move-page) > .device-query-bar .form-check-input,
.content-card.iot-list-page > .iot-query-bar .form-check-input,
.page-with-grouptree .content-card > .iot-query-bar .form-check-input,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar .form-check-input,
.content-card.device-tariff-page > .device-query-bar .form-check-input {
    width: 1em;
    height: 1em;
    min-width: 1em;
    margin-top: 0;
    vertical-align: middle;
    flex-shrink: 0;
}

.content-card.alarm-record-page > .alarm-query-bar .form-check-label,
.content-card.device-list-page:not(.device-move-page) > .device-query-bar .form-check-label,
.content-card.iot-list-page > .iot-query-bar .form-check-label,
.page-with-grouptree .content-card > .iot-query-bar .form-check-label,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar .form-check-label,
.content-card.device-tariff-page > .device-query-bar .form-check-label {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.content-card.log-page-wrap > .log-query-bar label,
.content-card.alarm-record-page > .alarm-query-bar label,
.content-card.device-list-page:not(.device-move-page) > .device-query-bar label,
.content-card.iot-list-page > .iot-query-bar label,
.page-with-grouptree .content-card > .iot-query-bar label,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar label,
.content-card.device-tariff-page > .device-query-bar label {
    font-size: 1rem;
}

.content-card.log-page-wrap > .log-query-bar .btn i,
.content-card.alarm-record-page > .alarm-query-bar .btn i,
.content-card.device-list-page:not(.device-move-page) > .device-query-bar .btn i,
.content-card.iot-list-page > .iot-query-bar .btn i,
.page-with-grouptree .content-card > .iot-query-bar .btn i,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar .btn i,
.content-card.device-tariff-page > .device-query-bar .btn i {
    font-size: 0.85rem;
}

.content-card.log-page-wrap > .log-query-bar .search-input-wrap .search-clear-btn,
.content-card.alarm-record-page > .alarm-query-bar .search-input-wrap .search-clear-btn,
.content-card.device-list-page:not(.device-move-page) > .device-query-bar .search-input-wrap .search-clear-btn,
.content-card.iot-list-page > .iot-query-bar .search-input-wrap .search-clear-btn,
.page-with-grouptree .content-card > .iot-query-bar .search-input-wrap .search-clear-btn,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar .search-input-wrap .search-clear-btn,
.content-card.device-tariff-page > .device-query-bar .search-input-wrap .search-clear-btn {
    font-size: 1.1rem;
}

/* 设备信息 / 操作日志 / 报警历史：列表每行高度统一（padding + line-height + 字号） */
.content-card.device-list-page > .table-responsive .table.table-sm > :not(caption) > * > *,
.content-card.iot-list-page > .iot-list-table-wrap .table-responsive .table.table-sm > :not(caption) > * > *,
.content-card.iot-list-page > .table-responsive .table.table-sm > :not(caption) > * > *,
.content-card.log-page-wrap .table-responsive .table.table-sm > :not(caption) > * > *,
.content-card.alarm-record-page .table-responsive .table.table-sm > :not(caption) > * > * {
    padding: 0.25rem 0.45rem !important;
    line-height: 1.45 !important;
    font-size: 1rem;
}

.content-card.device-list-page:not(.device-move-page) > .table-responsive .table.table-sm > :not(caption) > * > * {
    padding-top: 0.1875rem !important;
    padding-bottom: 0.1875rem !important;
    line-height: 1.38 !important;
}

/* 信息管理：表格在 .back-device-list-main-col 内，1080 高度下 20 行/页时表区尽量不出现纵向滚动条 */
.content-card.back-device-list-page > .device-query-bar {
    margin-top: 2px;
    margin-bottom: 2px;
}
.content-card.back-device-list-page .back-device-list-main-col > .table-responsive .table.table-sm > :not(caption) > * > * {
    padding-top: 0.1875rem !important;
    padding-bottom: 0.1875rem !important;
    line-height: 1.38 !important;
}
.content-card.back-device-list-page .device-list-pagination-bar {
    flex-shrink: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}
.content-card.back-device-list-page .stats-chip {
    padding-top: 2px;
    padding-bottom: 2px;
}

.content-card.log-page-wrap .table th,
.content-card.log-page-wrap .table td,
.alarm-record-page .table th,
.alarm-record-page .table td {
    text-align: center;
    vertical-align: middle;
}

/* 分润套餐：与设备信息 .device-query-bar 一致 — 工具栏 32px、表格内操作钮 24px（#id 提高优先级，避免其它 .btn/.form-control 覆盖） */
#shareMealRoot .sm-toolbar .form-control,
#shareMealRoot .sm-toolbar .form-select {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px;
    padding: 0 10px !important;
    line-height: 30px !important;
    font-size: 0.8125rem !important;
    box-sizing: border-box !important;
}
#shareMealRoot .sm-toolbar .btn {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px;
    padding: 0 12px !important;
    line-height: 1 !important;
    font-size: 0.8125rem !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
#shareMealRoot .sm-toolbar .form-check {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
    height: 32px !important;
    margin-bottom: 0 !important;
}
#shareMealRoot .sm-toolbar .form-check-input {
    width: 1em !important;
    height: 1em !important;
    min-width: 1em !important;
    margin-top: 0 !important;
    vertical-align: middle !important;
}
#shareMealRoot .sm-toolbar .form-check-label,
#shareMealRoot .sm-toolbar label.small {
    font-size: 0.8125rem !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 32px !important;
    margin-bottom: 0 !important;
}
#shareMealRoot .table .btn-sm {
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px;
    line-height: 22px !important;
    padding: 0 6px !important;
    font-size: 12px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.content-card:not(.share-meal-page)>.d-flex:first-child:not(.device-query-bar):not(.iot-query-bar) input[type="datetime-local"],
.content-card>.log-query-bar input[type="datetime-local"],
.content-card>.alarm-query-bar input[type="datetime-local"],
.content-card .device-query-bar input[type="datetime-local"],
.content-card.iot-list-page > .iot-query-bar input[type="datetime-local"] {
    width: 215px;
    min-width: 215px;
    max-width: 100%;
}

.content-card>.d-flex:first-child:not(.device-query-bar):not(.iot-query-bar) label,
.content-card>.log-query-bar label,
.content-card>.alarm-query-bar label,
.content-card.device-list-page:not(.device-move-page) > .device-query-bar label,
.content-card.iot-list-page > .iot-query-bar label,
.content-card.device-tariff-page > .device-query-bar label {
    white-space: nowrap;
}

/* 设备信息同构页：统一强制同款（查询栏 + 列表 + 分页） */
.content-card .device-query-bar,
.content-card .log-query-bar,
.content-card .alarm-query-bar,
.content-card .bc-query-bar,
.content-card .va-query-bar,
.content-card.iot-list-page > .iot-query-bar,
.page-with-grouptree .content-card > .iot-query-bar,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
    gap: 12px 14px !important;
    min-width: 0 !important;
    -webkit-overflow-scrolling: touch;
}

.content-card .device-query-bar > .d-flex,
.content-card .log-query-bar > .d-flex,
.content-card .alarm-query-bar > .d-flex,
.content-card .bc-query-bar > .d-flex,
.content-card .va-query-bar > .d-flex,
.content-card.iot-list-page > .iot-query-bar > .d-flex,
.page-with-grouptree .content-card > .iot-query-bar > .d-flex,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar > .d-flex {
    gap: 0.425rem !important;
}

.content-card .device-query-bar .form-control,
.content-card .device-query-bar .form-select,
.content-card .log-query-bar .form-control,
.content-card .log-query-bar .form-select,
.content-card .alarm-query-bar .form-control,
.content-card .alarm-query-bar .form-select,
.content-card .bc-query-bar .form-control,
.content-card .bc-query-bar .form-select,
.content-card .va-query-bar .form-control,
.content-card .va-query-bar .form-select,
.content-card.iot-list-page > .iot-query-bar .form-control,
.content-card.iot-list-page > .iot-query-bar .form-select,
.page-with-grouptree .content-card > .iot-query-bar .form-control,
.page-with-grouptree .content-card > .iot-query-bar .form-select,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar .form-control,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar .form-select {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 0 8px !important;
    line-height: 32px !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
}

.content-card .device-query-bar .btn,
.content-card .log-query-bar .btn,
.content-card .alarm-query-bar .btn,
.content-card .bc-query-bar .btn,
.content-card .va-query-bar .btn,
.content-card.iot-list-page > .iot-query-bar .btn,
.page-with-grouptree .content-card > .iot-query-bar .btn,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar .btn {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 0 10px !important;
    line-height: 32px !important;
    font-size: 1rem !important;
    min-width: 4.75rem !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.content-card .device-query-bar label,
.content-card .log-query-bar label,
.content-card .alarm-query-bar label,
.content-card .bc-query-bar label,
.content-card .va-query-bar label,
.content-card.iot-list-page > .iot-query-bar label,
.page-with-grouptree .content-card > .iot-query-bar label,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar label {
    font-size: 1rem !important;
    white-space: nowrap !important;
}

.content-card .device-query-bar .search-input-wrap .form-control,
.content-card .device-query-bar .search-input-wrap .form-control-sm,
.content-card .log-query-bar .search-input-wrap .form-control,
.content-card .log-query-bar .search-input-wrap .form-control-sm,
.content-card .alarm-query-bar .search-input-wrap .form-control,
.content-card .alarm-query-bar .search-input-wrap .form-control-sm,
.content-card .bc-query-bar .search-input-wrap .form-control,
.content-card .bc-query-bar .search-input-wrap .form-control-sm,
.content-card .va-query-bar .search-input-wrap .form-control,
.content-card .va-query-bar .search-input-wrap .form-control-sm,
.content-card.iot-list-page > .iot-query-bar .search-input-wrap .form-control,
.content-card.iot-list-page > .iot-query-bar .search-input-wrap .form-control-sm,
.page-with-grouptree .content-card > .iot-query-bar .search-input-wrap .form-control,
.page-with-grouptree .content-card > .iot-query-bar .search-input-wrap .form-control-sm,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar .search-input-wrap .form-control,
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar .search-input-wrap .form-control-sm {
    padding-right: 28px !important;
}

.content-card .device-query-bar input[type="datetime-local"],
.content-card .log-query-bar input[type="datetime-local"],
.content-card .alarm-query-bar input[type="datetime-local"],
.content-card .bc-query-bar input[type="datetime-local"],
.content-card .va-query-bar input[type="datetime-local"],
.content-card.iot-list-page > .iot-query-bar input[type="datetime-local"],
.page-with-grouptree .content-card > .iot-query-bar input[type="datetime-local"],
.page-with-grouptree .content-card .user-page-main__left > .iot-query-bar input[type="datetime-local"] {
    width: 215px !important;
    min-width: 215px !important;
    max-width: 100% !important;
}

.content-card.device-list-page > .table-responsive .table > :not(caption) > * > *,
.content-card.iot-list-page > .iot-list-table-wrap .table-responsive .table > :not(caption) > * > *,
.content-card.iot-list-page > .table-responsive .table > :not(caption) > * > *,
.content-card.log-page-wrap .table-responsive .table > :not(caption) > * > *,
.content-card.alarm-record-page .table-responsive .table > :not(caption) > * > *,
.page-with-grouptree .content-card .table-responsive .table > :not(caption) > * > * {
    padding: 0.25rem 0.45rem !important;
    line-height: 1.45 !important;
    font-size: 1rem !important;
}

/* 后台管理（layout-shell-back）：列表字号较原规范 +2px，行高同步；不含信息管理 .back-device-list-page */
body.layout-shell-back .content-card:not(.back-device-list-page) .table thead th,
body.layout-shell-back .content-card:not(.back-device-list-page) .table-responsive .table thead th {
    height: 32px !important;
    min-height: 32px !important;
    line-height: 20px !important;
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
    padding-left: 0.45rem !important;
    padding-right: 0.45rem !important;
    font-size: 13px !important;
    font-weight: 600;
    vertical-align: middle !important;
    text-align: center;
    box-sizing: border-box;
}

body.layout-shell-back .content-card:not(.back-device-list-page) .table tbody tr,
body.layout-shell-back .content-card:not(.back-device-list-page) .table-responsive .table tbody tr {
    height: 32px !important;
}

body.layout-shell-back .content-card:not(.back-device-list-page) .table tbody td,
body.layout-shell-back .content-card:not(.back-device-list-page) .table-responsive .table tbody td,
body.layout-shell-back .content-card:not(.back-device-list-page) .table-responsive .table > :not(caption) > * > *,
body.layout-shell-back .content-card:not(.back-device-list-page) .table-responsive .table.table-sm > :not(caption) > * > * {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    line-height: 20px !important;
    padding: 0.2rem 0.45rem !important;
    font-size: 14px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle !important;
    text-align: center;
    box-sizing: border-box;
}

body.layout-shell-back .content-card:not(.back-device-list-page) .table .btn-ops {
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    line-height: 22px !important;
    padding: 0 6px !important;
    font-size: 13px !important;
    box-sizing: border-box;
}

body.layout-shell-back .content-card:not(.back-device-list-page) .table .form-check-input {
    width: 1.15em !important;
    height: 1.15em !important;
    min-width: 1.15em !important;
    margin-top: 0 !important;
    vertical-align: middle !important;
    cursor: pointer;
}

.content-card.device-list-page > .device-list-pagination-bar,
.content-card.log-page-wrap > .device-list-pagination-bar,
.content-card.alarm-record-page > .device-list-pagination-bar,
.content-card.iot-list-page > nav[aria-label*="分页"],
.page-with-grouptree .content-card > nav[aria-label*="分页"] {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.content-card.device-list-page .device-list-pagination-bar .form-select-sm,
.content-card.device-list-page .device-list-pagination-bar .form-control-sm,
.content-card.device-list-page .device-list-pagination-bar .btn-sm,
.content-card.log-page-wrap .device-list-pagination-bar .form-select-sm,
.content-card.log-page-wrap .device-list-pagination-bar .form-control-sm,
.content-card.log-page-wrap .device-list-pagination-bar .btn-sm,
.content-card.alarm-record-page .device-list-pagination-bar .form-select-sm,
.content-card.alarm-record-page .device-list-pagination-bar .form-control-sm,
.content-card.alarm-record-page .device-list-pagination-bar .btn-sm,
.content-card.iot-list-page > nav[aria-label*="分页"] .form-select-sm,
.content-card.iot-list-page > nav[aria-label*="分页"] .form-control-sm,
.content-card.iot-list-page > nav[aria-label*="分页"] .btn-sm,
.page-with-grouptree .content-card > nav[aria-label*="分页"] .form-select-sm,
.page-with-grouptree .content-card > nav[aria-label*="分页"] .form-control-sm,
.page-with-grouptree .content-card > nav[aria-label*="分页"] .btn-sm {
    height: 30px !important;
    line-height: 28px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.content-card.device-list-page .device-list-pagination-bar .pagination .page-link,
.content-card.log-page-wrap .device-list-pagination-bar .pagination .page-link,
.content-card.alarm-record-page .device-list-pagination-bar .pagination .page-link,
.content-card.iot-list-page > nav[aria-label*="分页"] .pagination .page-link,
.page-with-grouptree .content-card > nav[aria-label*="分页"] .pagination .page-link {
    height: 30px !important;
    line-height: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.content-card.alarm-record-page .alarm-table-wrap > nav[aria-label*="分页"],
.content-card.order-page-wrap .alarm-table-wrap > nav[aria-label*="分页"],
.content-card.alarm-record-page .alarm-table-wrap nav.pagination-controls-compact {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.content-card.alarm-record-page .alarm-table-wrap > nav[aria-label*="分页"] > .d-flex,
.content-card.order-page-wrap .alarm-table-wrap > nav[aria-label*="分页"] > .d-flex,
.content-card.alarm-record-page .alarm-table-wrap nav.pagination-controls-compact > .d-flex {
    width: 100% !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.content-card.alarm-record-page .alarm-table-wrap > nav[aria-label*="分页"] .form-select-sm,
.content-card.alarm-record-page .alarm-table-wrap > nav[aria-label*="分页"] .form-control-sm,
.content-card.alarm-record-page .alarm-table-wrap > nav[aria-label*="分页"] .btn-sm,
.content-card.order-page-wrap .alarm-table-wrap > nav[aria-label*="分页"] .form-select-sm,
.content-card.order-page-wrap .alarm-table-wrap > nav[aria-label*="分页"] .form-control-sm,
.content-card.order-page-wrap .alarm-table-wrap > nav[aria-label*="分页"] .btn-sm,
.content-card.alarm-record-page .alarm-table-wrap nav.pagination-controls-compact .form-select-sm,
.content-card.alarm-record-page .alarm-table-wrap nav.pagination-controls-compact .form-control-sm,
.content-card.alarm-record-page .alarm-table-wrap nav.pagination-controls-compact .btn-sm {
    height: 30px !important;
    line-height: 28px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.content-card.alarm-record-page .alarm-table-wrap > nav[aria-label*="分页"] .pagination .page-link,
.content-card.order-page-wrap .alarm-table-wrap > nav[aria-label*="分页"] .pagination .page-link,
.content-card.alarm-record-page .alarm-table-wrap nav.pagination-controls-compact .pagination .page-link {
    height: 30px !important;
    line-height: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

@media (max-width: 768px) {
    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width, 72px));
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar.show {
        margin-left: 0;
    }

    body.sidebar-collapsed .sidebar-expand-fab {
        display: none !important;
    }
}

/* 已去掉每页顶部标题栏，保留类名避免报错 */
.page-header {
    display: none !important;
}

/* 主题切换下拉菜单样式（与 LifeCycleServer 一致） */
.dropdown-item.theme-option.active {
    background-color: rgba(0, 0, 0, 0.05);
}

.dropdown-item.theme-option.active .theme-color-dot {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0, 0, 0, 0.4);
}

.dropdown-item.theme-option:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

/* 侧栏/分区表单与远程参数弹窗：单行输入、下拉 32px（勿用 Bootstrap 默认高度）；多行 textarea 不设固定 height */
.iot-remote-modal-compact .form-select,
.iot-remote-modal-compact .form-select-sm,
.iot-remote-modal-compact .form-control:not(textarea),
.iot-form-compact .form-select,
.iot-form-compact .form-select-sm,
.iot-form-compact .form-control:not(textarea),
.iot-form-compact .form-control-sm:not(textarea) {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0 10px !important;
    line-height: 30px !important;
    font-size: 0.8125rem !important;
    box-sizing: border-box !important;
}

/* 侧栏内查询条与 iot-form-compact 同为 32px（压过 .content-card .device-query-bar 的 34px） */
.content-card .iot-form-compact .device-query-bar .form-control,
.content-card .iot-form-compact .device-query-bar .form-control-sm,
.content-card .iot-form-compact .device-query-bar .form-select,
.content-card .iot-form-compact .device-query-bar .form-select-sm,
.content-card .iot-form-compact .device-query-bar .btn,
.content-card .iot-form-compact .device-query-bar .btn-sm {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    line-height: 30px !important;
    font-size: 0.8125rem !important;
    box-sizing: border-box !important;
}

.content-card .iot-form-compact .device-query-bar .search-input-wrap .form-control,
.content-card .iot-form-compact .device-query-bar .search-input-wrap .form-control-sm {
    padding-right: 28px !important;
}

.iot-remote-modal-compact .form-select-sm,
.iot-form-compact .form-select-sm {
    padding: 0 1.75rem 0 8px !important;
    background-position: right 0.45rem center;
    background-size: 12px 10px;
}

.iot-remote-modal-compact textarea.form-control,
.iot-form-compact textarea.form-control,
.iot-form-compact textarea.form-control-sm {
    height: auto;
    max-height: none;
    padding: 6px 8px;
    line-height: 1.4;
    font-size: 0.8125rem;
    box-sizing: border-box;
    resize: vertical;
}

.iot-remote-modal-compact textarea.form-control {
    min-height: 100px;
}

.iot-form-compact textarea.form-control,
.iot-form-compact textarea.form-control-sm {
    min-height: 50px;
}

.iot-form-compact .btn-sm {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0 12px !important;
    line-height: 1 !important;
    font-size: 0.8125rem !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.iot-remote-modal-compact .modal-body .row.align-items-center > [class*="col-"] > label.form-label.small {
    line-height: 32px;
    margin-bottom: 0;
}

/* 全局模态框标题栏主题颜色样式 - 应用到所有模态框（新增、编辑、查看详情） */
.modal-header,
.modal .modal-header,
.modal-dialog .modal-header,
[id*="Modal"] .modal-header,
[id*="modal"] .modal-header {
    background: var(--theme-navbar-gradient) !important;
    color: white !important;
    border-bottom: none !important;
    padding: 15px 20px !important;
}

.modal-header .modal-title,
.modal .modal-header .modal-title,
.modal-dialog .modal-header .modal-title,
[id*="Modal"] .modal-header .modal-title,
[id*="modal"] .modal-header .modal-title {
    color: white !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

.modal-header .btn-close,
.modal .modal-header .btn-close,
.modal-dialog .modal-header .btn-close,
[id*="Modal"] .modal-header .btn-close,
[id*="modal"] .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
    opacity: 0.8 !important;
}

/* 上传附件区域图标使用主题色（采购申请/订单、付款申请/登记、收货、变更、资产入库等页面统一） */
#fileUploadArea .fa-cloud-upload-alt {
    color: #667eea;
}

body.theme-green #fileUploadArea .fa-cloud-upload-alt {
    color: #00B248;
}

.modal-header .btn-close:hover,
.modal .modal-header .btn-close:hover,
.modal-dialog .modal-header .btn-close:hover,
[id*="Modal"] .modal-header .btn-close:hover,
[id*="modal"] .modal-header .btn-close:hover {
    opacity: 1 !important;
}

/* 如果模态框已经有特定的背景色类（如 bg-info），则覆盖 */
.modal-header.bg-info,
.modal-header.bg-primary,
.modal-header.bg-success,
.modal-header.bg-warning,
.modal-header.bg-danger,
.modal-header.bg-secondary,
.modal-header.bg-dark {
    background: var(--theme-navbar-gradient) !important;
}

.modal-header .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* 微信推送权限 / 微信信息：弹窗可能挂到 body，不用页面包一层选择器 */
#wxdModalBindPush .btn,
#wxdModalWechatInfo .btn {
    white-space: nowrap;
}

/* 全局详情页和新增/编辑页样式 - 抬头和内容颜色区分 */
[id*="view"][id*="Modal"] .modal-body h6,
[id*="View"][id*="Modal"] .modal-body h6,
.modal-body h6.fw-bold,
.modal-body h6:has(i.fas),
.modal-body .d-flex h6.fw-bold {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
    padding: 10px 15px !important;
    border-radius: 5px !important;
    margin-bottom: 15px !important;
    border-left: 3px solid #667eea !important;
    color: #495057 !important;
}

/* 对于在d-flex中的h6，需要调整margin */
.modal-body .d-flex h6.fw-bold {
    margin-bottom: 0 !important;
    margin-right: auto;
}

body.theme-green [id*="view"][id*="Modal"] .modal-body h6,
body.theme-green [id*="View"][id*="Modal"] .modal-body h6,
body.theme-green .modal-body h6.fw-bold,
body.theme-green .modal-body h6:has(i.fas),
body.theme-green .modal-body .d-flex h6.fw-bold {
    background: linear-gradient(135deg, rgba(0, 178, 72, 0.1) 0%, rgba(0, 150, 36, 0.1) 100%) !important;
    border-left-color: #00B248 !important;
}

[id*="view"][id*="Modal"] .modal-body .form-label,
[id*="View"][id*="Modal"] .modal-body .form-label {
    color: #6c757d;
    font-weight: 500;
}

[id*="view"][id*="Modal"] .modal-body .form-control-plaintext,
[id*="View"][id*="Modal"] .modal-body .form-control-plaintext {
    color: #212529;
}

/* 角色分配菜单弹框：菜单树区域在无整页滚动条前提下尽量占满高度 */
.menu-assign-tree {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

/* ========== 列表/查询栏：搜索框右侧清除（×），与 .cursor/skills/wisdomiot-search-input-clear 一致 ========== */
.search-input-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}
.search-input-wrap .form-control,
.search-input-wrap .form-control-sm {
    padding-right: 26px;
}
.search-input-wrap .search-clear-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #999;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 5px;
    display: none;
    z-index: 2;
}
.search-input-wrap .search-clear-btn:hover {
    color: #333;
}
.search-input-wrap .form-control:not(:placeholder-shown) ~ .search-clear-btn,
.search-input-wrap .form-control-sm:not(:placeholder-shown) ~ .search-clear-btn {
    display: block;
}

/* 站内已有 .search-clear-btn 时隐藏 type="search" 的原生清除，避免双 X；无清除按钮时仍保留浏览器单 X */
.search-input-wrap:has(> .search-clear-btn) input[type="search"]::-webkit-search-cancel-button,
.search-input-wrap:has(> .search-clear-btn) input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}
.search-input-wrap:has(> .search-clear-btn) input[type="search"]::-moz-search-clear-button {
    display: none;
}

/* ========== 微信消息页面 ========== */
.wechat-message-page{display:flex;gap:16px;height:calc(100vh - var(--navbar-height) - 16px);padding:8px}
.wechat-message-page .left-panel{display:flex;flex-direction:column;gap:8px;min-width:0;flex:1}
.wechat-message-page .right-panel{display:flex;flex-direction:column;min-width:0;flex:2}
.wechat-message-page .query-bar{display:flex;align-items:center;gap:8px;padding:8px;background:#f8f9fa;border-radius:8px}
.wechat-message-page .query-bar .search-input-wrap{position:relative;flex:1;max-width:300px}
.wechat-message-page .query-bar .search-input-wrap input{width:100%;padding-right:28px}
.wechat-message-page .query-bar .search-clear-btn{position:absolute;right:6px;top:50%;transform:translateY(-50%);background:none;border:none;color:#6c757d;font-size:18px;line-height:1;cursor:pointer;padding:0 4px}
.wechat-message-page .query-bar .search-clear-btn:hover{color:#495057}
.wechat-message-page .section-title{font-weight:600;color:var(--bs-body-color);margin:0;padding:8px;background:#f8f9fa;border-radius:8px}
.wechat-message-page .table-container{flex:1;min-height:0;background:#fff;border-radius:8px;overflow:hidden}
.wechat-message-page .table-container .table{margin-bottom:0}
.wechat-message-page .table-container .table th{position:sticky;top:0;background:#f8f9fa;z-index:10}
.wechat-message-page .table-container .table tbody tr:nth-child(even){background:var(--theme-table-stripe)}
.wechat-message-page .table-container .table tbody tr.selected{background:var(--theme-row-selected)}
.wechat-message-page .table-container .table td,.wechat-message-page .table-container .table th{text-align:center;vertical-align:middle}
.wechat-message-page .table-container .table .form-check-input{cursor:pointer}
.wechat-message-page .device-section{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px}
.wechat-message-page .device-header{display:flex;align-items:center;justify-content:space-between;padding:8px;background:#f8f9fa;border-radius:8px}
.wechat-message-page .tab-content{flex:1;min-height:0;display:flex;flex-direction:column}
.wechat-message-page .chat-area{flex:1;min-height:0;display:flex;flex-direction:column;background:#fff;border-radius:8px;overflow:hidden}
.wechat-message-page .chat-messages{flex:1;min-height:0;overflow-y:auto;padding:16px;background:#f5f5f5}
.wechat-message-page .chat-message{margin-bottom:12px;display:flex;flex-direction:column}
.wechat-message-page .chat-message.from-me{align-items:flex-end}
.wechat-message-page .chat-message.from-other{align-items:flex-start}
.wechat-message-page .chat-message .message-time{font-size:12px;color:#999;margin-bottom:4px}
.wechat-message-page .chat-message .message-content{max-width:70%;padding:8px 12px;border-radius:8px;word-wrap:break-word}
.wechat-message-page .chat-message.from-me .message-content{background:#95ec69;color:#000}
.wechat-message-page .chat-message.from-other .message-content{background:#fff;color:#000}
.wechat-message-page .chat-input-area{padding:12px;background:#fff;border-top:1px solid #dee2e6}
.wechat-message-page .chat-input-area .current-wechat{font-size:14px;color:#667eea;margin-bottom:8px;font-weight:600}
.wechat-message-page .chat-input-area textarea{width:100%;height:100px;resize:none;border:1px solid #dee2e6;border-radius:8px;padding:8px}
.wechat-message-page .chat-input-area .button-row{display:flex;gap:8px;margin-top:8px}
.wechat-message-page .history-table-container{flex:1;min-height:0;background:#fff;border-radius:8px;overflow:hidden}
.wechat-message-page .history-table-container .table{margin-bottom:0}
.wechat-message-page .history-table-container .table th{position:sticky;top:0;background:#f8f9fa;z-index:10}
.wechat-message-page .history-table-container .table tbody tr:nth-child(even){background:var(--theme-table-stripe)}
.wechat-message-page .history-table-container .table td,.wechat-message-page .history-table-container .table th{text-align:center;vertical-align:middle}
.wechat-message-page .nav-tabs .nav-link{color:var(--bs-body-color)}
.wechat-message-page .nav-tabs .nav-link.active{color:var(--bs-body-color);background:var(--theme-btn-primary);border-color:var(--theme-btn-primary)}
.wechat-message-page .btn-sm{height:30px;line-height:28px;padding-top:0;padding-bottom:0}

/* 系统字典：四栏布局（200 + 250 + 200 + 剩余），对齐 1024×768 参考尺寸 */
.sys-dict-layout{display:flex;align-items:stretch;min-height:0;height:100%;width:100%;max-width:100%}
.tab-content-wrap .content-card.sys-dict-page,
.content-card.sys-dict-page{display:flex;flex-direction:row;align-items:stretch;gap:0;min-height:0;height:100%;width:100%;max-width:100%;padding:8px 10px;overflow:hidden}
.sys-dict-page .sys-dict-col{display:flex;flex-direction:column;min-height:0;min-width:0}
.sys-dict-page .sys-dict-type-form{width:200px;flex:0 0 200px;padding-right:8px}
.sys-dict-page .sys-dict-type-table{width:333px;flex:0 0 333px;background:#eef2f5;border-radius:6px;padding:4px}
.sys-dict-page .sys-dict-dic-form{width:200px;flex:0 0 200px;padding-left:8px;padding-right:8px}
.sys-dict-page .sys-dict-dic-table{flex:1 1 0;width:auto;min-width:0;background:#eef2f5;border-radius:6px;padding:4px}
.sys-dict-page .sys-dict-form-block{display:flex;flex-direction:column;gap:6px;min-height:0;overflow:visible}
.sys-dict-page .sys-dict-field{display:flex;flex-direction:column;gap:2px}
.sys-dict-page .sys-dict-inline-field{flex-direction:row;align-items:center;flex-wrap:wrap;gap:6px}
.sys-dict-page .sys-dict-inline-field .sys-dict-lbl{flex:0 0 auto;margin:0;white-space:nowrap}
.sys-dict-page .sys-dict-lbl{font-size:13px;color:#334155;margin:0;line-height:1.3}
.sys-dict-page .sys-dict-form-block .form-control,
.sys-dict-page .sys-dict-form-block .form-select{box-sizing:border-box;font-size:13px;border-radius:4px}
.sys-dict-page .sys-dict-form-block input.form-control:not(textarea),
.sys-dict-page .sys-dict-form-block .form-control:not(textarea){height:20px;padding:0 5px;line-height:20px}
.sys-dict-page .sys-dict-form-block .form-select,
.sys-dict-page .sys-dict-form-block select.form-select{height:28px;min-height:28px;padding:0 8px;line-height:28px}
.sys-dict-page .sys-dict-form-block textarea.form-control{height:auto;min-height:32px;padding:2px 5px;line-height:1.35;resize:vertical}
.sys-dict-page .sys-dict-config{min-height:32px}
.sys-dict-page .sys-dict-num-short{max-width:100px}
.sys-dict-page .sys-dict-check-field{display:flex;flex-direction:row;align-items:center;gap:4px;flex-wrap:nowrap;min-width:0}
.sys-dict-page .sys-dict-check-item{display:inline-flex;align-items:center;gap:4px;font-size:12px;margin:0;cursor:pointer;flex:0 0 auto;white-space:nowrap}
.sys-dict-page .sys-dict-check-item .form-check-input{margin-top:0;flex-shrink:0}
.sys-dict-page .sys-dict-check-field .btn{flex:1 1 auto;min-width:0;height:24px;line-height:22px;padding:0 4px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sys-dict-page .sys-dict-btn-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:4px}
.sys-dict-page .sys-dict-btn-grid .btn{height:24px;line-height:22px;padding:0 6px;font-size:12px}
.sys-dict-page .sys-dict-table-inner{flex:1;min-height:0;overflow:auto}
.sys-dict-page .table tbody tr{cursor:pointer}
.sys-dict-page .table tbody tr.wxd-row-selected > td{background-color:var(--theme-row-selected)!important;box-shadow:none!important}
.sys-dict-modal-checks{overflow:visible;max-height:none}
.sys-dict-device-fn-modal .modal-dialog{width:650px;max-width:min(650px,calc(100vw - 2rem));margin-left:auto;margin-right:auto}
.sys-dict-device-fn-modal .modal-content{display:flex;flex-direction:column;min-height:500px;max-height:none}
.sys-dict-device-fn-modal .modal-body{overflow:visible;flex:1 1 auto}
.sys-dict-fn-modal-cols{display:flex;align-items:flex-start;gap:0;min-height:0}
.sys-dict-fn-modal-col{flex:1 1 0;min-width:0;padding:0 8px}
.sys-dict-fn-modal-col:first-child{padding-left:0}
.sys-dict-fn-modal-col:last-child{padding-right:0}
.sys-dict-fn-modal-col-title{font-size:15px;font-weight:600;margin:0 0 8px 5px;line-height:1.3;color:#334155}
.sys-dict-bit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:6px;row-gap:2px;align-content:start}
.sys-dict-bit-item{display:flex;align-items:flex-start;gap:4px;min-height:30px;margin:0;padding:2px 0;font-size:13px;line-height:1.25;cursor:pointer}
.sys-dict-bit-item .form-check-input{flex:0 0 auto;margin-top:2px}
.sys-dict-bit-label{flex:1 1 auto;min-width:0;word-break:break-word}
.sys-dict-pushrule-head{font-size:12px;font-weight:600;margin-bottom:4px;min-height:32px}
.sys-dict-pushrule-search{width:150px;max-width:100%}
.sys-dict-pushrule-table{max-height:520px;overflow:auto;border:1px solid #dee2e6;border-radius:6px;background:#fff}
@media (max-width:991.98px){
    .content-card.sys-dict-page{flex-wrap:wrap;overflow:auto;max-width:100%}
    .sys-dict-page .sys-dict-type-form,.sys-dict-page .sys-dict-type-table,.sys-dict-page .sys-dict-dic-form,.sys-dict-page .sys-dict-dic-table{flex:1 1 100%;width:100%;max-width:100%}
    .sys-dict-page .sys-dict-type-table,.sys-dict-page .sys-dict-dic-table{min-height:200px}
}

/* 网关管理：左 200px 表单 + 右列表，尺寸参照 1024×710 */
.access-config-layout{display:flex;align-items:stretch;min-height:0;height:100%;width:100%;max-width:100%}
.tab-content-wrap .content-card.access-config-page,
.content-card.access-config-page{display:flex;flex-direction:row;align-items:stretch;gap:8px;min-height:0;height:100%;width:100%;max-width:min(1024px,100%);min-height:min(710px,100%);padding:8px 10px;overflow:hidden}
.access-config-page .access-config-col{display:flex;flex-direction:column;min-height:0;min-width:0}
.access-config-page .access-config-form-panel{width:200px;flex:0 0 200px;padding-right:8px}
.access-config-page .access-config-form-block{display:flex;flex-direction:column;gap:6px;min-height:0;overflow:visible}
.access-config-page .access-config-field{display:flex;flex-direction:column;gap:2px}
.access-config-page .access-config-lbl{font-size:13px;color:#334155;margin:0;line-height:1.3}
.access-config-page .access-config-form-block .form-control,
.access-config-page .access-config-form-block .form-select{box-sizing:border-box;font-size:13px;border-radius:4px;width:180px;max-width:100%}
.access-config-page .access-config-form-block input.form-control:not(textarea),
.access-config-page .access-config-form-block .form-control:not(textarea){height:20px;padding:0 5px;line-height:20px}
.access-config-page .access-config-form-block .form-select,
.access-config-page .access-config-form-block select.form-select{height:28px;min-height:28px;padding:0 8px;line-height:28px}
.access-config-page .access-config-rename-field{gap:2px}
.access-config-page .access-config-check-item{display:inline-flex;align-items:center;gap:4px;font-size:12px;margin:0;cursor:pointer;width:75px;flex:0 0 auto;white-space:nowrap}
.access-config-page .access-config-check-item .form-check-input{margin-top:0;flex-shrink:0}
.access-config-page .access-config-btn-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:4px}
.access-config-page .access-config-btn-grid .btn{height:24px;line-height:22px;padding:0 6px;font-size:12px}
.access-config-page .access-config-table-wrap{flex:1 1 0;min-width:0;display:flex;flex-direction:column;min-height:0;background:#eef2f5;border-radius:6px;padding:4px}
.access-config-page .access-config-table-inner{flex:1;min-height:0;overflow:auto}
.access-config-page .table tbody tr{cursor:pointer}
.access-config-page .table tbody tr.wxd-row-selected > td{background-color:var(--theme-row-selected)!important;box-shadow:none!important}
@media (max-width:991.98px){
    .content-card.access-config-page{flex-wrap:wrap;overflow:auto;max-width:100%}
    .access-config-page .access-config-form-panel,.access-config-page .access-config-table-wrap{flex:1 1 100%;width:100%;max-width:100%}
    .access-config-page .access-config-table-wrap{min-height:280px}
}

.back-device-list-layout{display:flex;align-items:stretch;gap:8px;min-height:0;height:100%}
.back-device-list-main{flex:1 1 0;min-width:0;min-height:0}
.tab-content-wrap .tab-panel > .content-card.back-device-list-page > .back-device-list-body,
.tab-content-wrap .default-page-content > .content-card.back-device-list-page > .back-device-list-body{
    flex:1 1 0;min-height:0;display:flex;align-items:stretch;gap:8px;overflow:hidden
}
.tab-content-wrap .tab-panel > .content-card.back-device-list-page > .back-device-list-body > .back-device-list-main-col,
.tab-content-wrap .default-page-content > .content-card.back-device-list-page > .back-device-list-body > .back-device-list-main-col{
    flex:1 1 0;min-width:0;min-height:0;display:flex;flex-direction:column
}
.tab-content-wrap .tab-panel > .content-card.back-device-list-page > .back-device-list-body > .back-device-list-main-col > .table-responsive,
.tab-content-wrap .default-page-content > .content-card.back-device-list-page > .back-device-list-body > .back-device-list-main-col > .table-responsive{
    flex:1 1 0;min-height:0;overflow:auto
}
.tab-content-wrap .tab-panel > .content-card.back-device-list-page,
.tab-content-wrap .default-page-content > .content-card.back-device-list-page {
    padding: 2px 4px 0 4px;
}
@media (max-width:1199.98px){
    .content-card.back-device-list-page > .back-device-list-body{flex-wrap:wrap;overflow:auto}
    .content-card.back-device-list-page .back-device-list-sidebar{flex:1 1 100%;width:100%;max-height:320px}
}

.tab-content-wrap .default-page-content > .page-with-grouptree.back-money-manage-page,
.tab-content-wrap .tab-panel > .page-with-grouptree.back-money-manage-page {
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}
.tab-content-wrap .default-page-content > .page-with-grouptree.back-money-manage-page > .back-money-manage-main,
.tab-content-wrap .tab-panel > .page-with-grouptree.back-money-manage-page > .back-money-manage-main {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}
.tab-content-wrap .bmm-account-table-wrap,
.default-page-content .bmm-account-table-wrap {
    position: relative;
}
.tab-content-wrap .bmm-loading-overlay,
.default-page-content .bmm-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
}

/* 资费管理：账户列表底部分页条与设备信息页同规格（30px 控件） */
.back-money-manage-page .bmm-account-list-col > .device-list-pagination-bar {
    flex-shrink: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding: 2px 4px 0;
    align-items: center;
}
.back-money-manage-page .bmm-account-list-col > .device-list-pagination-bar .bottom-tools {
    align-items: center;
    margin-bottom: 0;
    font-size: 13px;
}
.back-money-manage-page .bmm-account-list-col > .device-list-pagination-bar .pagination {
    margin-top: 0;
    margin-bottom: 0;
}
.back-money-manage-page .bmm-account-list-col > .device-list-pagination-bar .page-item {
    display: flex;
    align-items: center;
}
.back-money-manage-page .bmm-account-list-col > .device-list-pagination-bar .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.back-money-manage-page .bmm-account-list-col > .device-list-pagination-bar .bottom-tools .form-select-sm,
.back-money-manage-page .bmm-account-list-col > .device-list-pagination-bar .bottom-tools .form-control-sm,
.back-money-manage-page .bmm-account-list-col > .device-list-pagination-bar .bottom-tools .btn-sm {
    height: 30px;
    line-height: 28px;
    padding-top: 0;
    padding-bottom: 0;
}
.back-money-manage-page .bmm-account-list-col > .device-list-pagination-bar .bottom-tools .pagination-sm .page-link {
    height: 30px;
    line-height: 18px;
}
