/* ==========================================================================
   网印电器业务管理平台 - 现代化主题
   在 BJUI 之上做视觉重绘，保留其 navtab / dialog / ajax 交互能力
   ========================================================================== */

:root {
  --m-primary: #2563eb;
  --m-primary-dark: #1d4ed8;
  --m-primary-light: #eff4ff;
  --m-ink: #0f172a;
  --m-text: #1f2937;
  --m-text-2: #475569;
  --m-text-3: #94a3b8;
  --m-line: #e5e9f0;
  --m-bg: #f4f6fa;
  --m-surface: #ffffff;
  --m-side: #0f172a;
  --m-side-2: #162033;
--m-header-h: 64px;
--m-side-w: 232px;
--m-side-gap: 238px;
--m-tab-h: 40px;
  --m-radius: 10px;
  --m-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .18);
  --m-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 基础 ---------- */
html, body {
  height: 100%;
  font-family: var(--m-font) !important;
  font-size: 13px;
  color: var(--m-text);
  background: var(--m-bg) !important;
  -webkit-font-smoothing: antialiased;
}
body { overflow: hidden; }
a { color: var(--m-primary); text-decoration: none !important; }
a:hover { color: var(--m-primary-dark); }
label { font-weight: normal; color: var(--m-text-2); }
hr { border-color: var(--m-line); }
::selection { background: #dbeafe; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #cbd5e1; border-radius: 999px;
  border: 2px solid transparent; background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: #94a3b8; background-clip: content-box; }

/* ---------- 顶栏 ---------- */
#bjui-header {
  height: var(--m-header-h) !important;
  background: var(--m-side) !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0;
  display: flex;
  align-items: center;
}
#bjui-header > .bjui-navbar-header {
  float: none;
  display: flex;
  align-items: center;
  width: var(--m-side-w);
  height: var(--m-header-h);
  padding: 0 18px;
  box-sizing: border-box;
  border-right: 1px solid rgba(255, 255, 255, .07);
  flex: 0 0 var(--m-side-w);
}
#bjui-header > .bjui-navbar-header > .bjui-navbar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 0; color: #fff; text-decoration: none; white-space: nowrap;
}
.m-brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff; font-size: 16px; font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .9);
}
.m-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.m-brand-text b { font-size: 15px; font-weight: 600; letter-spacing: .5px; color: #fff; }
.m-brand-text span { font-size: 11px; color: #8fa0b8; letter-spacing: .6px; margin-top: 3px; }
#bjui-header > .bjui-navbar-header > .bjui-navbar-toggle {
  display: none;
  position: static; margin-right: 10px;
  background: transparent; border: 0; color: #cbd5e1; font-size: 16px;
}
#bjui-header > #bjui-navbar-collapse {
  float: none; flex: 1 1 auto;
  margin: 0; height: var(--m-header-h); display: flex; align-items: center; justify-content: flex-end;
  padding-right: 18px;
}
#bjui-header > #bjui-navbar-collapse > .bjui-navbar-right { float: none; display: flex; align-items: center; gap: 6px; }
#bjui-header > #bjui-navbar-collapse > .bjui-navbar-right > li {
  float: none; height: auto; border: 0 !important;
  display: flex; align-items: center;
}
.m-clock {
  color: #94a3b8; font-size: 12.5px; letter-spacing: .3px;
  padding-right: 10px; margin-right: 4px;
  border-right: 1px solid rgba(255, 255, 255, .08);
  height: 34px; display: flex; align-items: center;
}
.m-clock span { color: #e2e8f0; }
.m-user > a {
  display: flex !important; align-items: center; gap: 8px;
  height: 38px !important; padding: 0 10px !important; line-height: 38px !important;
  border-radius: 999px !important;
  color: #e2e8f0 !important; font-size: 13px;
}
.m-user > a:hover { background: rgba(255, 255, 255, .08) !important; }
.m-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.m-user .fa-angle-down { color: #7b8aa2; font-size: 12px; }
.m-user .dropdown-menu {
  top: 46px; right: 0; left: auto; min-width: 190px;
  padding: 6px; border: 0; border-radius: 12px;
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, .28);
}
.m-user .dropdown-menu li a {
  padding: 9px 12px; border-radius: 8px; color: var(--m-text); font-size: 13px;
}
.m-user .dropdown-menu li a:hover { background: var(--m-primary-light); color: var(--m-primary-dark); }
.m-user .dropdown-menu .divider { margin: 5px 0; }
.m-user .dropdown-menu a.red { color: #dc2626 !important; }
.m-login-btn {
  display: inline-flex; align-items: center; height: 36px; padding: 0 18px;
  border-radius: 999px; background: var(--m-primary); color: #fff !important;
  font-size: 13px; font-weight: 500;
}
.m-login-btn:hover { background: var(--m-primary-dark); }

/* ---------- 侧边导航 ---------- */
#bjui-sidebar {
  width: var(--m-side-w) !important;
  background: var(--m-side) !important;
  border: 0 !important;
  box-shadow: none !important;
  display: flex; flex-direction: column;
}
#bjui-sidebar > .toggleCollapse {
  height: 42px !important; line-height: 42px; flex: 0 0 42px;
  background: var(--m-side); border-bottom: 1px solid rgba(255, 255, 255, .06);
  border-radius: 0; padding: 0 18px; overflow: hidden;
}
#bjui-sidebar > .toggleCollapse h2 {
  display: inline-block; margin: 0; line-height: 42px; height: 42px;
  font-size: 12px !important; font-weight: 500; letter-spacing: 2px;
  color: #64748b !important; text-align: left;
}
#bjui-sidebar > .toggleCollapse h2 i { display: none; }
#bjui-sidebar > .toggleCollapse .lock {
  position: absolute; right: 14px; top: 12px;
  width: 20px; height: 20px; line-height: 20px; text-align: center;
  color: #64748b; opacity: .8;
}
#bjui-sidebar > .toggleCollapse .lock:hover { color: #cbd5e1; opacity: 1; }
#bjui-sidebar-s { background: transparent !important; }

.m-menu {
  flex: 1 1 auto; overflow-y: auto; overflow-x: hidden;
  padding: 8px 10px 20px;
}
.m-menu::-webkit-scrollbar { width: 6px; }
.m-menu::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 3px; border: 0; }
.m-menu-group { margin-bottom: 4px; }
.m-menu-group-head {
  width: 100%; display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 10px; border: 0 !important; border-radius: 8px;
  background: transparent !important; box-shadow: none !important;
  color: #8fa0b8 !important; font-size: 11.5px; letter-spacing: 1.2px;
  cursor: pointer; text-align: left;
}
.m-menu-group-head i:first-child { font-size: 13px; color: #64748b; }
.m-menu-group-head .fa-angle-down { margin-left: auto; font-size: 12px; transition: transform .2s; color: #64748b; }
.m-menu-group.is-open .m-menu-group-head .fa-angle-down { transform: rotate(180deg); }
.m-menu-group-head:hover { background: rgba(255, 255, 255, .04); color: #cbd5e1; }
.m-menu-body { display: none; padding: 2px 0 6px; }
.m-menu-group.is-open .m-menu-body { display: block; }
.m-menu-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 38px; margin: 1px 0; padding: 0 12px; border-radius: 8px;
  color: #b8c4d6 !important; font-size: 13.5px;
  transition: background .15s, color .15s;
}
.m-menu-item i:first-child { width: 18px; text-align: center; font-size: 14px; color: #7c8ca6; }
.m-menu-item span { flex: 1; }
.m-menu-item:hover { background: rgba(255, 255, 255, .06); color: #fff !important; }
.m-menu-item:hover i { color: #93b4ff; }
.m-menu-item.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, .28), rgba(37, 99, 235, .06));
  color: #fff !important;
}
.m-menu-item.active::before {
  content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; background: #3b82f6;
}
.m-menu-item.active i { color: #93b4ff; }

/* ---------- 标签页 ---------- */
#bjui-navtab { left: var(--m-side-gap) !important; }
#bjui-navtab > .tabsPageHeader {
  height: var(--m-tab-h) !important;
  background: var(--m-surface);
  border-bottom: 1px solid var(--m-line) !important;
  padding: 0 6px;
}
#bjui-navtab > .tabsPageHeader > .tabsPageHeaderContent { height: var(--m-tab-h); }
#bjui-navtab > .tabsPageHeader > .tabsPageHeaderContent > ul { height: var(--m-tab-h); }
#bjui-navtab > .tabsPageHeader > .tabsPageHeaderContent > ul > li { margin: 0 2px; }
#bjui-navtab > .tabsPageHeader > .tabsPageHeaderContent > .nav > li > a {
  height: 30px; margin-top: 5px; padding: 0 22px 0 13px !important;
  border: 0 !important; border-radius: 8px;
  background: transparent !important; color: var(--m-text-2) !important;
  line-height: 30px; text-shadow: none;
}
#bjui-navtab > .tabsPageHeader > .tabsPageHeaderContent > .nav > li > a > span { font-size: 13px; }
#bjui-navtab > .tabsPageHeader > .tabsPageHeaderContent > .nav > li > a:hover { background: #f1f5fb !important; }
#bjui-navtab > .tabsPageHeader > .tabsPageHeaderContent > .nav > li.active > a {
  background: var(--m-primary-light) !important; color: var(--m-primary-dark) !important;
  font-weight: 500;
}
#bjui-navtab > .tabsPageHeader > .tabsPageHeaderContent > ul > li span.close {
  top: 8px; right: 7px; width: 14px; height: 14px; line-height: 14px; text-align: center;
  border-radius: 50%; color: #94a3b8; font-size: 10px;
}
#bjui-navtab > .tabsPageHeader > .tabsPageHeaderContent > ul > li span.close:hover { background: #e2e8f0; color: #475569; }
#bjui-navtab > .tabsPageHeader > .tabsLeft,
#bjui-navtab > .tabsPageHeader > .tabsRight,
#bjui-navtab > .tabsPageHeader > .tabsMore {
  height: 40px; line-height: 40px; color: #94a3b8;
}
#bjui-navtab > .tabsPageHeader > .tabsMore { border-radius: 0; }
#bjui-navtab > .tabsMoreList { top: var(--m-tab-h); border-radius: 0 0 10px 10px; box-shadow: var(--m-shadow); border-color: var(--m-line); }
#bjui-navtab > .tabsPageContent { border: 0 !important; background: var(--m-bg); }
.navtabPage { background: var(--m-bg); }

/* ---------- 页面骨架 ---------- */
.bjui-pageHeader {
  padding: 12px 18px !important;
  background: var(--m-surface);
  border-bottom: 1px solid var(--m-line);
}
.bjui-pageHeader h4,
.bjui-pageHeader .m-page-title {
  margin: 0 0 10px; font-size: 16px; font-weight: 600; color: var(--m-ink);
}
.bjui-pageHeader hr { display: none; }
.bjui-pageContent { padding: 18px !important; }
.bjui-pageContent.tableContent { padding: 0 !important; background: var(--m-surface); }
.bjui-pageFooter {
  min-height: 44px !important; padding: 6px 16px !important;
  background: var(--m-surface); border-top: 1px solid var(--m-line);
  display: flex; align-items: center;
}

/* 搜索栏 */
.bjui-searchBar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; width: 100%; }
.bjui-searchBar > label { margin: 0 0 0 2px; font-size: 12.5px; color: var(--m-text-2); white-space: nowrap; }
.bjui-searchBar > input,
.bjui-searchBar > select,
.bjui-searchBar .search-query,
.bjui-searchBar .input-medium {
  height: 32px !important; padding: 0 10px !important;
  border: 1px solid #dbe2ea !important; border-radius: 8px !important;
  background: #fff !important; font-size: 13px; color: var(--m-text);
  box-shadow: none !important;
}
.bjui-searchBar > select { padding-right: 26px; }
.bjui-searchBar > input:focus,
.bjui-searchBar > select:focus {
  border-color: #93b4ff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12) !important;
  outline: 0;
}
.bjui-searchBar .btn-group.bootstrap-select { margin: 0; }
.bjui-searchBar .bootstrap-select > .btn {
  height: 32px; min-height: 32px; border-radius: 8px; border: 1px solid #dbe2ea;
  background: #fff !important; font-size: 13px; color: var(--m-text);
  padding: 0 10px;
}
.bjui-searchBar .bootstrap-select > .btn .filter-option { line-height: 30px; }
.bjui-searchBar .bootstrap-select > .btn:hover { border-color: #b9c6d8; }
.bjui-searchBar .pull-right { margin-left: auto; }

/* 表单元素 */
.form-control {
  height: 32px; padding: 4px 10px; font-size: 13px;
  border: 1px solid #dbe2ea; border-radius: 8px; color: var(--m-text);
  box-shadow: none;
}
.form-control:focus {
  border-color: #93b4ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
textarea.form-control { height: auto; min-height: 90px; padding: 8px 10px; }
select.form-control { padding-right: 8px; }
.control-label { color: var(--m-text-2); font-size: 13px; }
.required { color: #dc2626; }

/* ---------- 按钮 ---------- */
.btn {
  height: 32px; padding: 0 14px; line-height: 30px;
  font-size: 13px; border-radius: 8px; border: 1px solid #dbe2ea;
  background: #fff; color: var(--m-text); box-shadow: none;
  transition: all .15s;
}
.btn:hover, .btn:focus { background: #f8fafc !important; color: var(--m-text) !important; border-color: #b9c6d8 !important; box-shadow: none !important; }
.btn i[class^="fa"], .btn i[class*=" fa"] { margin-right: 5px; }
.btn-sm { height: 26px; line-height: 24px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.btn-lg { height: 40px; line-height: 38px; padding: 0 20px; font-size: 14px; border-radius: 10px; }

.btn-default, .btn-close { background: #fff !important; border-color: #dbe2ea !important; color: var(--m-text) !important; }
.btn-default:hover, .btn-close:hover { border-color: #93b4ff !important; color: var(--m-primary-dark) !important; background: #f8fbff !important; }

.btn-green { background: var(--m-primary) !important; border-color: var(--m-primary) !important; color: #fff !important; box-shadow: 0 6px 14px -8px rgba(37, 99, 235, .8); }
.btn-green:hover { background: var(--m-primary-dark) !important; border-color: var(--m-primary-dark) !important; color: #fff !important; }

.btn-blue { background: #eff4ff !important; border-color: #cfe0ff !important; color: #1d4ed8 !important; }
.btn-blue:hover { background: #e0ebff !important; border-color: #b3ccff !important; color: #1d4ed8 !important; }

.btn-red { background: #fef2f2 !important; border-color: #fecaca !important; color: #dc2626 !important; }
.btn-red:hover { background: #fee2e2 !important; border-color: #fca5a5 !important; color: #b91c1c !important; }

.btn-orange { background: #fff7ed !important; border-color: #fed7aa !important; color: #c2410c !important; }
.btn-orange:hover { background: #ffedd5 !important; border-color: #fdba74 !important; color: #9a3412 !important; }

.btn-primary { background: var(--m-primary) !important; border-color: var(--m-primary) !important; color: #fff !important; }
.btn-primary:hover { background: var(--m-primary-dark) !important; border-color: var(--m-primary-dark) !important; }

/* 表格内按钮更轻 */
table .btn, .table .btn {
  height: 26px; line-height: 24px; padding: 0 9px; font-size: 12px; border-radius: 7px;
  margin: 1px 2px;
}

/* ---------- 表格 ---------- */
.table {
  margin: 0 !important; border-collapse: separate; border-spacing: 0;
  table-layout: auto !important;
  font-size: 13px; color: var(--m-text);
}
.table > thead > tr > th {
  height: 42px; padding: 0 9px !important;
  background: #f8fafc !important; color: #334155 !important;
  font-size: 12.5px; font-weight: 600; letter-spacing: .2px;
  border: 0 !important; border-bottom: 1px solid var(--m-line) !important;
  white-space: nowrap; min-width: 54px;
}
.table > tbody > tr > td {
  padding: 9px 9px !important; border: 0 !important;
  border-bottom: 1px solid #f0f3f8 !important;
  vertical-align: middle; line-height: 1.55; min-width: 38px;
}
.table > tbody > tr > td.tac, .table > thead > tr > th.tac { text-align: center; }
.table-hover > tbody > tr:hover > td { background: #f8fbff !important; }
.table > tbody > tr.selected > td { background: #eff4ff !important; }
.table small { color: #7b8aa2; font-size: 12px; }
.table a { color: var(--m-primary); }
.table .label { border-radius: 999px; padding: 3px 8px; font-weight: 500; font-size: 11.5px; }

/* tablefixed 生成的固定表头 */
.bjui-tablefixed { background: #fff; }
.bjui-tablefixed .table > thead > tr > th { background: #f8fafc !important; }
.tableContent > .table { background: #fff; }

/* 合计行 */
.table tr.total > td, .table tr.sum > td { background: #fbfcfe; font-weight: 600; }

/* 分页 */
.pagination-box ul { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pagination-box ul li a, .pagination-box ul li span {
  display: inline-block; min-width: 28px; height: 28px; line-height: 26px;
  padding: 0 8px; border: 1px solid var(--m-line); border-radius: 7px;
  background: #fff; color: var(--m-text-2); font-size: 12.5px; text-align: center;
}
.pagination-box ul li a:hover { border-color: #93b4ff; color: var(--m-primary-dark); }
.pagination-box ul li.active a, .pagination-box ul li.active span {
  background: var(--m-primary); border-color: var(--m-primary); color: #fff;
}
.bjui-pageFooter .pages { color: var(--m-text-3); font-size: 12.5px; }
.bjui-pageFooter .pages .selectPagesize { margin: 0 4px; }
.bjui-pageFooter .pages .selectPagesize .btn { height: 26px; min-height: 26px; padding: 0 8px; }
.bjui-pageFooter .pages .selectPagesize .btn .filter-option { line-height: 24px; }

/* ---------- 弹窗 ---------- */
.bjui-dialog {
  border-radius: 12px !important; overflow: hidden;
  box-shadow: 0 24px 64px -16px rgba(15, 23, 42, .45) !important;
  border: 0 !important;
  background: #fff;
}
.bjui-dialog > .dialogHeader {
  height: 46px !important; line-height: 46px; padding: 0 16px !important;
  background: #fff; border-bottom: 1px solid var(--m-line);
  font-size: 14px; font-weight: 600; color: var(--m-ink);
}
.bjui-dialog > .dialogHeader .close,
.bjui-dialog > .dialogHeader .maximize,
.bjui-dialog > .dialogHeader .minimize { color: #94a3b8; font-size: 13px; }
.bjui-dialog > .dialogHeader .close:hover { color: #dc2626; }
.bjui-dialog .bjui-pageContent { padding: 18px !important; }
.bjui-dialog .bjui-pageHeader { padding: 10px 18px !important; }
.bjui-dialog .bjui-pageFooter {
  min-height: 54px; padding: 10px 18px !important;
  background: #fbfcfe; border-top: 1px solid var(--m-line);
}
.bjui-dialog .dialogHeader h1 i { display: none !important; }
/* BJUI 图标字体（bjicon 的 @font-face 在 icon.css 内以 base64 内嵌，只有补回 font-family 才会出字） */
[class^="bjicon-"], [class*=" bjicon-"] {
  font-family: 'bjicon' !important; font-style: normal; font-weight: normal;
  line-height: 1; speak: none; -webkit-font-smoothing: antialiased;
}
.tac { text-align: center !important; }
.bjui-dialog > .dialogHeader > h1 { font-size: 14px; font-weight: 600; }

/* 提示框 */
.alert { border-radius: 10px; border: 0; box-shadow: var(--m-shadow); }
.alert-success { background: #ecfdf5; color: #047857; }
.alert-danger { background: #fef2f2; color: #b91c1c; }
.alert-info { background: #eff6ff; color: #1d4ed8; }

/* 表单页 */
.bjui-pageFormContent { padding: 4px 0; }
.bjui-pageFormContent .table > tbody > tr > td { border: 0 !important; padding: 8px 10px !important; }
.bjui-pageFormContent .table > tbody > tr > td:first-child { width: 130px; }
.bjui-pageFormContent .table { background: #fff; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--m-primary); }

/* iCheck 兼容 */
.icheckbox_minimal, .iradio_minimal { margin-right: 4px; }

/* ---------- 页脚 ---------- */
#bjui-footer {
  height: 30px; line-height: 30px;
  padding: 0 18px !important;
  background: var(--m-bg); border-top: 1px solid var(--m-line) !important;
  color: #94a3b8; font-size: 11.5px; text-align: center;
}
#bjui-footer a { color: #94a3b8; }
#bjui-footer a:hover { color: var(--m-primary); }

/* ---------- 首页仪表盘 ---------- */
.m-dash { height: 100%; overflow: hidden; }
.m-dash-scroll { height: 100%; overflow-y: auto; padding: 20px; box-sizing: border-box; }
.m-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 18px;
}
.m-hero h1 { margin: 0; font-size: 22px; font-weight: 600; color: var(--m-ink); letter-spacing: .3px; }
.m-hero p { margin: 6px 0 0; font-size: 13px; color: var(--m-text-3); }
.m-hero .m-hero-date {
  font-size: 13px; color: var(--m-text-2); background: #fff;
  border: 1px solid var(--m-line); border-radius: 999px; padding: 8px 16px;
  display: inline-flex; align-items: center; gap: 8px;
}
.m-hero .m-hero-date i { color: var(--m-primary); }

.m-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.m-card {
  background: var(--m-surface); border: 1px solid #e9edf4; border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.m-stat { padding: 18px 20px; position: relative; overflow: hidden; }
.m-stat .m-stat-top { display: flex; align-items: center; justify-content: space-between; }
.m-stat .m-stat-label { font-size: 12.5px; color: var(--m-text-3); letter-spacing: .4px; }
.m-stat .m-stat-icon {
  width: 34px; height: 34px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 15px;
  background: var(--m-primary-light); color: var(--m-primary);
}
.m-stat .m-stat-value { margin-top: 10px; font-size: 28px; font-weight: 650; color: var(--m-ink); letter-spacing: -.5px; line-height: 1.1; }
.m-stat .m-stat-value small { font-size: 13px; font-weight: 500; color: var(--m-text-3); margin-left: 4px; }
.m-stat .m-stat-foot { margin-top: 8px; font-size: 12px; color: var(--m-text-3); }
.m-stat .m-stat-foot b { color: #059669; font-weight: 600; }
.m-stat.alt .m-stat-icon { background: #ecfdf5; color: #059669; }
.m-stat.alt2 .m-stat-icon { background: #fff7ed; color: #ea580c; }
.m-stat.alt3 .m-stat-icon { background: #f5f3ff; color: #7c3aed; }

.m-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; }
.m-panel { padding: 0; overflow: hidden; }
.m-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #f0f3f8;
}
.m-panel-head h3 { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--m-ink); }
.m-panel-head .m-more { font-size: 12.5px; color: var(--m-text-3); }
.m-panel-head .m-more:hover { color: var(--m-primary); }
.m-panel-body { padding: 4px 0; }
.m-recent { width: 100%; border-collapse: collapse; }
.m-recent th {
  text-align: left; font-size: 11.5px; font-weight: 500; color: var(--m-text-3);
  letter-spacing: .5px; padding: 8px 20px;
}
.m-recent td { padding: 11px 20px; font-size: 13px; border-top: 1px solid #f4f6fa; color: var(--m-text); }
.m-recent tr:hover td { background: #fafcff; }
.m-recent td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--m-ink); }
.m-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; background: #eff4ff; color: #1d4ed8; }
.m-badge.plain { background: #f1f5f9; color: #475569; }

.m-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 20px 20px; }
.m-quick a {
  display: flex; align-items: center; gap: 10px; padding: 12px 12px;
  border: 1px solid #eef1f6; border-radius: 10px; color: var(--m-text);
  background: #fbfcfe; transition: all .15s;
}
.m-quick a:hover { border-color: #cfe0ff; background: #f6f9ff; color: var(--m-primary-dark); transform: translateY(-1px); }
.m-quick i { width: 30px; height: 30px; border-radius: 8px; background: var(--m-primary-light); color: var(--m-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.m-quick b { font-weight: 500; font-size: 13px; }

.m-memo { padding: 16px 20px 20px; }
.m-memo textarea {
  width: 100%; min-height: 180px; border: 1px solid #e6ebf2; border-radius: 10px;
  padding: 12px; font-size: 13px; line-height: 1.7; resize: vertical; outline: none;
}
.m-memo textarea:focus { border-color: #93b4ff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.m-guest { height: 100%; display: flex; align-items: center; justify-content: center; padding: 40px; box-sizing: border-box; }
.m-guest-card { max-width: 560px; width: 100%; padding: 48px 44px 44px; text-align: center; }
.m-guest-icon {
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--m-primary-light); color: var(--m-primary); font-size: 22px;
}
.m-guest h2 { margin: 0 0 10px; font-size: 21px; color: var(--m-ink); font-weight: 600; }
.m-guest p { color: var(--m-text-3); margin: 0 0 22px; font-size: 13.5px; }
.m-guest-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 26px; font-size: 12.5px; color: var(--m-text-2); }
.m-guest-points span { display: inline-flex; align-items: center; gap: 6px; }
.m-guest-points i { color: var(--m-primary); }

.m-side-guest { padding: 30px 18px; text-align: center; color: #7f8fa8; font-size: 13px; }
.m-side-guest i { display: block; font-size: 22px; color: #3f4d63; margin-bottom: 14px; }
.m-side-guest p { line-height: 1.75; margin: 0 0 16px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .m-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  #bjui-header > .bjui-navbar-header { width: auto; flex: 0 0 auto; border-right: 0; padding-right: 4px; }
  #bjui-header > .bjui-navbar-header > .bjui-navbar-toggle { display: inline-flex; }
  .m-brand-text span { display: none; }
  #bjui-sidebar { display: none; }
  #bjui-navtab { left: 0 !important; width: 100% !important; }
  #bjui-navtab > .tabsPageContent { width: 100% !important; }
  .m-grid { grid-template-columns: 1fr; }
}

/* 打印页面不套主题底色 */
@media print {
  body { background: #fff !important; }
}

/* 空数据占位行 */
.m-empty-row td {
  padding: 32px 0 !important; text-align: center; color: #94a3b8; font-size: 13px;
}
.m-empty-row i { margin-right: 6px; color: #cbd5e1; }
/* 移动端兜底：模块没有专属移动模板时，桌面页在窄屏下按单列布局显示 */
.m-side-toggle {
  display: none; align-items: center; gap: 6px;
  height: 34px; padding: 0 10px; margin-left: 4px;
  border: 0; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 12px;
}
.m-side-toggle i { font-size: 14px; }

@media (max-width: 900px) {
  :root { --m-header-h: 56px; --m-side-gap: 0px; --m-tab-h: 36px; }
  #bjui-header { padding: 0 8px; }
  .m-brand-text span { display: none; }
  .bjui-navbar-logo { padding-left: 0; }
  .m-clock { display: none; }
  #bjui-navtab { left: 0 !important; }
  #bjui-leftside { display: none; }
  #bjui-leftside.m-open {
    display: block !important;
    position: fixed; top: var(--m-header-h); bottom: 0; left: 0;
    width: 232px !important; z-index: 1400;
    box-shadow: 0 0 0 100vmax rgba(9, 14, 26, .5);
  }
  #bjui-leftside.m-open #bjui-sidebar { width: 232px !important; }
  .m-side-toggle { display: inline-flex; }
  .bjui-dialog { width: 96% !important; left: 2% !important; top: 10px !important; }
  .bjui-dialog .bjui-pageContent { padding: 12px !important; }
  .bjui-dialog .control-label { width: 96px !important; }
  .table { font-size: 12px; }
  .bjui-pageContent table.table { min-width: 620px; }
  #bjui-footer { font-size: 11px; }
}
/* ===== 移动端通用外壳（无专用移动模板的模块统一使用） ===== */
body.m-shell-body{background:#f1f4fa;color:#1f2733;-webkit-text-size-adjust:100%}
.m-shell-bar{position:sticky;top:0;z-index:999;height:56px;display:flex;align-items:center;gap:10px;padding:0 12px;background:linear-gradient(135deg,#101828 0%,#1d3557 100%);box-shadow:0 2px 10px rgba(16,24,40,.18)}
.m-shell-btn{flex:0 0 auto;width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;background:rgba(255,255,255,.14);color:#fff;font-size:17px;text-decoration:none}
.m-shell-btn:hover,.m-shell-btn:active{background:rgba(255,255,255,.26);color:#fff;text-decoration:none}
.m-shell-title{flex:1 1 auto;min-width:0;text-align:center;color:#fff;font-size:16px;font-weight:600;letter-spacing:.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.m-shell-main{min-height:calc(100vh - 56px);padding:10px 10px 26px;box-sizing:border-box;overflow-x:hidden}
.m-shell-main .bjui-pageHeader{background:#fff;border:1px solid #e4e9f2;border-radius:12px;padding:10px 10px 6px;margin-bottom:10px;box-shadow:0 1px 3px rgba(16,24,40,.04)}
.m-shell-main .bjui-searchBar{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.m-shell-main .bjui-searchBar>label{font-size:12px;color:#5b6472;margin:0}
.m-shell-main .bjui-searchBar .form-control,.m-shell-main .bjui-searchBar select{height:32px;padding:2px 8px;font-size:13px;border-radius:8px}
.m-shell-main .bjui-pageContent,.m-shell-main .bjui-pageFooter{background:transparent}
.m-shell-main .bjui-pageFooter{border:0;padding:6px 0}
.m-shell-main table,.m-shell-main .table{background:#fff;margin-bottom:0}
.m-shell-main .table>tbody>tr>td,.m-shell-main .table>thead>tr>th{padding:7px 8px;vertical-align:middle;font-size:12px;line-height:1.45}
.m-shell-main .table-bordered{border-radius:10px;border-color:#e4e9f2;overflow:hidden}
.m-shell-foot{padding:14px 10px 24px;text-align:center;font-size:11px;line-height:1.7;color:#8a93a5;background:#f1f4fa}
.m-shell-foot a{color:#8a93a5}
@media (max-width:900px){
  .m-shell-main .bjui-dialog{width:96%!important;left:2%!important}
}/* 移动外壳内的分页与页脚（片段页使用的是 Amaze 分页标记） */
.m-shell-main .bjui-pageFooter{clear:both;overflow:visible}
.m-shell-main .am-cf{clear:both;display:block}
.m-shell-main .am-pagination{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0 0;padding:0;list-style:none}
.m-shell-main .am-pagination>li{list-style:none}
.m-shell-main .am-pagination>li>a{display:block;min-width:30px;height:30px;line-height:28px;padding:0 6px;text-align:center;font-size:12px;color:#334155;background:#fff;border:1px solid #dde3ee;border-radius:8px;text-decoration:none}
.m-shell-main .am-pagination>li.am-active>a{background:#2563eb;border-color:#2563eb;color:#fff}
.m-shell-main .am-pagination>li.am-disabled>a{color:#aab3c2}
.m-shell-main .bjui-pageFooter .am-cf{font-size:12px;color:#5b6472;padding-top:4px}/* BJUI 片段页把内容区做成绝对定位（依赖 tab 容器），移动外壳内改为常规流式布局 */
.m-shell-main .bjui-pageContent{position:static!important;top:auto!important;bottom:auto!important;height:auto!important;overflow:visible!important;width:auto!important;padding:0!important}
.m-shell-main .bjui-pageFooter{position:static!important;top:auto!important;bottom:auto!important}/* 宽表在内容区内横向滚动，不撑破整页 */
.m-shell-main .bjui-pageContent{overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch}
.m-shell-main .bjui-pageContent::-webkit-scrollbar{height:6px}
.m-shell-main .bjui-pageContent::-webkit-scrollbar-thumb{background:#c8d2e0;border-radius:6px}/* 搜索栏按钮不挤成单字 */
.m-shell-main .bjui-searchBar .btn,.m-shell-main .bjui-pageHeader .btn{height:32px;padding:4px 12px;line-height:1.35;white-space:nowrap;border-radius:8px}/* 外壳内原生表单控件统一观感 */
.m-shell-main input[type=text],.m-shell-main input[type=password],.m-shell-main input[type=number],.m-shell-main input[type=date],.m-shell-main input[type=search],.m-shell-main select,.m-shell-main textarea{height:32px;padding:3px 8px;font-size:13px;color:#1f2733;background:#fff;border:1px solid #d8dfea;border-radius:8px;box-sizing:border-box;max-width:100%}
.m-shell-main textarea{height:auto;min-height:64px}
.m-shell-main input:focus,.m-shell-main select:focus,.m-shell-main textarea:focus{outline:0;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.m-shell-main .bjui-pageContent form{padding:4px 2px}
.m-shell-main form label{margin:0;font-size:13px;color:#44506a}/* 搜索栏按钮不被 flex 压扁 */
.m-shell-main .bjui-searchBar .btn{flex:0 0 auto;width:auto!important;min-width:52px;text-align:center}
.m-shell-main .bjui-searchBar label,.m-shell-main .bjui-searchBar select{flex:0 0 auto}/* 页头工具按钮（含非 .btn 的默认按钮）统一尺寸 */
.m-shell-main .bjui-pageHeader button,.m-shell-main .bjui-pageHeader .btn,.m-shell-main .bjui-pageHeader a.btn{width:auto!important;min-width:52px;height:32px;padding:4px 12px;line-height:1.35;white-space:nowrap;border-radius:8px;flex:0 0 auto;font-size:13px}