/**
 * Ecava IGX 数据对接模块样式（深蓝科技风，与视频监控/能耗大屏统一）
 */
/* IGX 页专属：压缩全局 page-content 的 20px/24px 外圈留白，大屏内容贴边（离开页面由 JS 移除该类） */
.page-content.igx-flush { padding: 6px 8px; }

.igx-root {
  --igx-bg: #0b1220;
  --igx-panel: #111c2e;
  --igx-panel-2: #16243a;
  --igx-line: #1e3252;
  --igx-text: #e6eefc;
  --igx-dim: #8aa0c0;
  --igx-accent: #2f7bff;
  --igx-ok: #22c55e;
  --igx-err: #ef4444;
  --igx-warn: #f59e0b;
  --igx-idle: #64748b;
  position: relative;
  height: 100%;
  min-height: 0;
  background: radial-gradient(1200px 600px at 70% -10%, #14264a 0%, var(--igx-bg) 55%);
  color: var(--igx-text);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 13px;
}

/* ---------- 顶栏 ---------- */
.igx-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  background: linear-gradient(90deg, #0d1830 0%, #132344 60%, #0d1830 100%);
  border-bottom: 1px solid var(--igx-line);
  flex-wrap: wrap;
}
.igx-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.igx-title .logo { font-size: 16px; }
.igx-overview { display: flex; gap: 20px; margin-left: 8px; flex-wrap: wrap; }
.igx-stat { color: var(--igx-dim); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.igx-stat b { color: var(--igx-text); font-size: 15px; font-weight: 700; }
.igx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--igx-err); display: inline-block; }
.igx-stat.ok .igx-dot { background: var(--igx-ok); box-shadow: 0 0 8px var(--igx-ok); }
.igx-stat.err .igx-dot { background: var(--igx-err); box-shadow: 0 0 8px var(--igx-err); }
.igx-spacer { flex: 1; }
.igx-btn {
  background: #1b2d4d; color: var(--igx-text); border: 1px solid #2c4774;
  border-radius: 5px; padding: 6px 14px; font-size: 12px; cursor: pointer; white-space: nowrap;
  transition: all .15s;
}
.igx-btn:hover { background: #24406e; border-color: var(--igx-accent); }
.igx-btn.primary { background: linear-gradient(180deg, #2f7bff, #1f5fd6); border-color: #2f7bff; color: #fff; }
.igx-btn.danger { background: #4a1d24; border-color: #7f2a36; color: #ffb3ba; }
.igx-btn.sm { padding: 3px 9px; font-size: 11px; }
.igx-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Tab ---------- */
.igx-tabs { display: flex; gap: 4px; padding: 0 10px; background: #0d1830; border-bottom: 1px solid var(--igx-line); }
.igx-tab { padding: 4px 12px; cursor: pointer; color: var(--igx-dim); font-size: 12px; border-bottom: 2px solid transparent; }
.igx-tab:hover { color: var(--igx-text); }
.igx-tab.on { color: #9cc2ff; border-bottom-color: var(--igx-accent); }
.igx-tab .badge { background: var(--igx-err); color: #fff; border-radius: 9px; padding: 0 6px; font-size: 10px; margin-left: 5px; }

/* ---------- 主体 ---------- */
.igx-body { flex: 1; overflow: auto; padding: 6px 8px; }
.igx-panel { background: var(--igx-panel); border: 1px solid var(--igx-line); border-radius: 8px; margin-bottom: 14px; }
.igx-panel-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--igx-line); font-weight: 600; }
.igx-panel-head .spacer { flex: 1; }
.igx-panel-body { padding: 12px 14px; }

/* ---------- 筛选栏 ---------- */
.igx-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.igx-filter select, .igx-filter input[type=text] {
  background: #0e1a2e; color: var(--igx-text); border: 1px solid #2c4774; border-radius: 5px;
  padding: 6px 10px; font-size: 12px; outline: none;
}
.igx-filter select:focus, .igx-filter input:focus { border-color: var(--igx-accent); }
.igx-filter label { color: var(--igx-dim); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- 表格 ---------- */
.igx-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.igx-table th { text-align: left; color: #9cc2ff; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--igx-line); white-space: nowrap; background: #0e1a2e; position: sticky; top: 0; }
.igx-table td { padding: 7px 10px; border-bottom: 1px solid #16263f; color: var(--igx-text); }
.igx-table tr:hover td { background: #13233d; }
.igx-table .mono { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: #b9cdec; }
.igx-table .dim { color: var(--igx-dim); }
.igx-table .val { font-family: ui-monospace, Consolas, monospace; color: #7fd0ff; font-weight: 600; }
.igx-table-wrap { max-height: calc(100vh - 280px); overflow: auto; border-radius: 0 0 8px 8px; }

/* 状态徽标 */
.igx-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 11px; font-size: 11px; white-space: nowrap; }
.igx-badge.online { background: rgba(34,197,94,.15); color: #6ee7a0; border: 1px solid rgba(34,197,94,.35); }
.igx-badge.offline { background: rgba(239,68,68,.12); color: #ff9aa2; border: 1px solid rgba(239,68,68,.3); }
.igx-badge.run { background: rgba(34,197,94,.15); color: #6ee7a0; border: 1px solid rgba(34,197,94,.35); }
.igx-badge.fault { background: rgba(239,68,68,.15); color: #ff9aa2; border: 1px solid rgba(239,68,68,.35); }
.igx-badge.idle { background: rgba(100,116,139,.18); color: #a9b8cc; border: 1px solid rgba(100,116,139,.35); }
.igx-badge.unknown { background: rgba(100,116,139,.12); color: #8aa0c0; border: 1px solid #2c4774; }
.igx-badge.role { background: #16263f; color: #9cc2ff; border: 1px solid #2c4774; }
.igx-badge.level-一般 { background: rgba(47,123,255,.15); color: #8fb6ff; border: 1px solid rgba(47,123,255,.35); }
.igx-badge.level-重要 { background: rgba(245,158,11,.15); color: #fcd34d; border: 1px solid rgba(245,158,11,.35); }
.igx-badge.level-紧急 { background: rgba(239,68,68,.18); color: #ff9aa2; border: 1px solid rgba(239,68,68,.4); }
.igx-lamp { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.igx-lamp.run { background: var(--igx-ok); box-shadow: 0 0 8px var(--igx-ok); }
.igx-lamp.fault { background: var(--igx-err); box-shadow: 0 0 8px var(--igx-err); animation: igx-blink 1s infinite; }
.igx-lamp.idle { background: var(--igx-idle); }
.igx-lamp.unknown { background: #475569; }
@keyframes igx-blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- 设备实时卡片 ---------- */
.igx-dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.igx-dev-card {
  background: linear-gradient(160deg, #13233d 0%, #0e1a2e 100%);
  border: 1px solid var(--igx-line); border-radius: 10px; padding: 14px; position: relative; overflow: hidden;
}
.igx-dev-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--igx-idle); }
.igx-dev-card.run::before { background: var(--igx-ok); box-shadow: 0 0 10px var(--igx-ok); }
.igx-dev-card.fault::before { background: var(--igx-err); box-shadow: 0 0 10px var(--igx-err); }
.igx-dev-card.idle::before { background: var(--igx-idle); }
.igx-dev-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.igx-dev-head .name { font-size: 14px; font-weight: 700; flex: 1; }
.igx-dev-head .code { font-size: 10px; color: var(--igx-dim); font-family: ui-monospace, monospace; }
.igx-dev-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.igx-kv { background: rgba(13,24,48,.6); border: 1px solid #1b2d4d; border-radius: 6px; padding: 7px 10px; }
.igx-kv .k { font-size: 10px; color: var(--igx-dim); margin-bottom: 2px; }
.igx-kv .v { font-size: 15px; font-weight: 700; font-family: ui-monospace, Consolas, monospace; color: #7fd0ff; }
.igx-kv .v.small { font-size: 12px; font-weight: 600; }
.igx-kv.full { grid-column: 1 / -1; }
.igx-dev-foot { margin-top: 9px; font-size: 10px; color: var(--igx-dim); display: flex; justify-content: space-between; }

/* ---------- 实时标签滚动 ---------- */
.igx-tag-flow { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.igx-tag-cell { background: #0e1a2e; border: 1px solid #1b2d4d; border-radius: 6px; padding: 8px 10px; }
.igx-tag-cell .tn { font-size: 11px; font-family: ui-monospace, monospace; color: #9cc2ff; word-break: break-all; }
.igx-tag-cell .tv { font-size: 17px; font-weight: 700; color: #7fd0ff; font-family: ui-monospace, Consolas, monospace; margin-top: 2px; }
.igx-tag-cell .tt { font-size: 10px; color: var(--igx-dim); margin-top: 2px; }
.igx-tag-cell.flash { border-color: var(--igx-accent); box-shadow: 0 0 0 1px var(--igx-accent); }

/* ---------- 分页 ---------- */
.igx-pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 10px 14px; color: var(--igx-dim); font-size: 12px; }
.igx-pager button { background: #1b2d4d; color: var(--igx-text); border: 1px solid #2c4774; border-radius: 4px; padding: 3px 10px; cursor: pointer; }

/* ---------- 表单（弹窗内，跟随系统 Modal 主题变量，深色/light 自动统一） ---------- */
.igx-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.igx-form .full { grid-column: 1 / -1; }
.igx-form label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; font-weight: 500; }
.igx-form input, .igx-form select, .igx-form textarea {
  width: 100%; background: var(--bg-primary); color: var(--text-primary); border: 1px solid var(--border);
  border-radius: 5px; padding: 7px 10px; font-size: 13px; outline: none; box-sizing: border-box;
}
.igx-form input:focus, .igx-form select:focus, .igx-form textarea:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 2px rgba(59,130,246,.15); }
.igx-form .check { display: inline-flex; align-items: center; gap: 6px; color: var(--text-primary); font-size: 13px; }
.igx-form .hint { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
/* 弹窗内表格/按钮：映射到系统 .btn/.table 主题变量，与全站弹窗一致 */
.modal-body .igx-table th { background: var(--bg-hover); color: var(--text-primary); }
.modal-body .igx-table td { color: var(--text-secondary); border-bottom-color: var(--border); }
.modal-body .igx-table .mono { color: var(--text-primary); }
.modal-body .igx-table .dim { color: var(--text-muted); }
.modal-body .igx-table select { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border); }
.modal-body .igx-btn { background: rgba(0,0,0,0.3); color: var(--text-secondary); border: 1px solid var(--border); }
.modal-body .igx-btn:hover { background: var(--bg-hover); border-color: var(--accent-blue); color: var(--text-primary); }
.modal-body .igx-btn.primary { background: var(--gradient-primary); border: none; color: #fff; }
.modal-body .igx-btn.primary:hover { box-shadow: var(--shadow-glow); }
.modal-body .igx-btn.danger { color: var(--accent-red); border-color: rgba(239,68,68,0.3); }
.modal-body .igx-btn.danger:hover { background: rgba(239,68,68,0.1); border-color: var(--accent-red); }

/* ---------- SVG 趋势 ---------- */
.igx-trend { width: 100%; height: 180px; background: #0b1220; border: 1px solid #1b2d4d; border-radius: 6px; }
.igx-trend-wrap { padding: 10px 14px; }
.igx-trend-title { font-size: 12px; color: #9cc2ff; margin-bottom: 6px; }

/* ---------- 空态 ---------- */
.igx-empty { text-align: center; color: var(--igx-dim); padding: 50px 20px; font-size: 13px; }
.igx-empty .big { font-size: 40px; display: block; margin-bottom: 10px; opacity: .5; }

/* ---------- 实时连接状态 ---------- */
.igx-sse { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--igx-dim); }
.igx-sse .igx-dot { background: var(--igx-err); }
.igx-sse.on .igx-dot { background: var(--igx-ok); box-shadow: 0 0 8px var(--igx-ok); }

/* 滚动条 */
.igx-body::-webkit-scrollbar, .igx-table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.igx-body::-webkit-scrollbar-thumb, .igx-table-wrap::-webkit-scrollbar-thumb { background: #24406e; border-radius: 4px; }
.igx-body::-webkit-scrollbar-track, .igx-table-wrap::-webkit-scrollbar-track { background: transparent; }

/* =====================================================================
   监控画面（Inkscape SVG 组态）
   ===================================================================== */
.igx-scn-wrap { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.igx-scn-main { flex: 1; display: flex; gap: 10px; min-height: 0; }

/* 左侧面板：工具按钮竖排 + 画面列表（一键隐藏：点「隐藏侧栏」整体消失，画面左上角悬浮按钮恢复） */
.igx-scn-side { width: 168px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.igx-scn-fold { flex-shrink: 0; height: 22px; width: 100%; line-height: 1; text-align: center;
  background: var(--igx-panel); color: var(--igx-dim); border: 1px solid var(--igx-line); border-radius: 5px;
  cursor: pointer; font-size: 12px; padding: 0; transition: all .15s; }
.igx-scn-fold:hover { color: var(--igx-text); border-color: var(--igx-accent); background: #16243a; }
.igx-scn-side-body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
.igx-scn-unfold { position: absolute; top: 10px; left: 10px; z-index: 5;
  padding: 4px 12px; font-size: 12px; line-height: 1.4;
  background: rgba(13, 24, 48, .78); color: #9cc2ff; border: 1px solid #2c4774; border-radius: 5px;
  cursor: pointer; backdrop-filter: blur(4px); transition: all .15s; }
.igx-scn-unfold:hover { background: rgba(47, 123, 255, .85); color: #fff; border-color: var(--igx-accent); }
.igx-scn-toolbar { display: flex; flex-direction: column; gap: 6px;
  padding: 8px; background: var(--igx-panel); border: 1px solid var(--igx-line); border-radius: 8px; }
.igx-scn-toolbar .igx-btn { width: 100%; text-align: center; }
.igx-scn-status { color: var(--igx-dim); font-size: 11px; text-align: center; white-space: normal; line-height: 1.4; }

/* 左侧画面列表 */
.igx-scn-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 2px; }
.igx-scn-list-empty { color: var(--igx-dim); font-size: 12px; text-align: center; padding: 20px 8px; border: 1px dashed var(--igx-line); border-radius: 8px; }
.igx-scn-item { background: var(--igx-panel); border: 1px solid var(--igx-line); border-radius: 8px; padding: 6px; cursor: pointer; transition: border-color .15s; }
.igx-scn-item:hover { border-color: var(--igx-accent); }
.igx-scn-item.on { border-color: var(--igx-accent); box-shadow: 0 0 0 1px var(--igx-accent) inset; }
.igx-scn-item .thumb { height: 78px; border-radius: 5px; background: #05080f; border: 1px solid var(--igx-line); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.igx-scn-item .thumb img { width: 100%; height: 100%; object-fit: contain; background: #05080f; }
.igx-scn-item .thumb.thumb-html { background: linear-gradient(135deg,#0e1a2e,#0a1422); }
.igx-scn-item .thumb .thumb-html-badge { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #8fd0ff; border: 1px solid rgba(143,208,255,.45); border-radius: 4px; padding: 3px 9px; background: rgba(143,208,255,.08); }

.igx-scn-item .nm { font-size: 12px; margin-top: 5px; color: var(--igx-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.igx-scn-item .cnt { font-size: 11px; color: var(--igx-dim); }

/* SVG 舞台（黑底，等比居中） */
.igx-scn-stage { flex: 1; min-width: 0; position: relative; background: #05080f; border: 1px solid var(--igx-line); border-radius: 8px;
  overflow: hidden; display: flex; }
.igx-scn-stage-inner { flex: 1; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.igx-scn-stage-inner .igx-svg { width: 100%; height: 100%; display: block; }
.igx-scn-stage-inner .igx-html-frame { width: 100%; height: 100%; border: 0; border-radius: 4px; background: #fff; display: block; }
.igx-scn-stage:fullscreen .igx-scn-stage-inner .igx-html-frame { border-radius: 0; }

.igx-scn-empty { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center;
  color: var(--igx-dim); text-align: center; font-size: 13px; padding: 40px; gap: 12px; pointer-events: none; }
.igx-scn-empty .big { font-size: 44px; opacity: .5; }
.igx-scn-stage:fullscreen { border-radius: 0; background: #000; }
.igx-scn-stage:fullscreen .igx-scn-stage-inner { padding: 28px; }

/* ---------- SVG 画面灯光动画与交互 ---------- */
/* 绑定元素的透明度/颜色/光晕平滑过渡（SCADA 灯光质感） */
.igx-svg .igx-anim { transition: opacity .35s ease, fill .35s ease, stroke .35s ease, filter .35s ease; }
.igx-svg .igx-hit { cursor: pointer; }
/* 悬停实时值浮层 */
.igx-tip { position: absolute; z-index: 10; pointer-events: none; max-width: 300px;
  background: rgba(10, 18, 34, .93); border: 1px solid #2c4774; border-radius: 6px;
  padding: 7px 11px; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); color: var(--igx-text); }
.igx-tip .t { color: #9cc2ff; font-weight: 600; font-size: 12px; margin-bottom: 2px; }
.igx-tip .v { font-size: 15px; font-weight: 700; }
.igx-tip .s { color: var(--igx-dim); font-size: 11px; margin-top: 3px; }

/* 底部制作说明 */
.igx-scn-help { margin-top: 10px; padding: 10px 14px; background: var(--igx-panel); border: 1px solid var(--igx-line);
  border-left: 3px solid var(--igx-accent); border-radius: 6px; color: var(--igx-dim); font-size: 12px; line-height: 1.8; }
.igx-scn-help code { background: #0e1a2e; color: #8fd0ff; padding: 1px 6px; border-radius: 4px; font-size: 11px; margin: 0 2px; }

/* =====================================================================
   浅色主题适配（data-theme="light"）
   外围面板/表格/表单跟随 MES 浅色；SVG 监控舞台与缩略图保持黑底，
   以保证车间组态画面色彩准确（同真实监控大屏）。
   ===================================================================== */
[data-theme="light"] .igx-root {
  --igx-bg: #f0f2f5;
  --igx-panel: #ffffff;
  --igx-panel-2: #f8fafc;
  --igx-line: #e4e7ed;
  --igx-text: #1f2937;
  --igx-dim: #6b7280;
  --igx-accent: #2563eb;
  --igx-ok: #16a34a;
  --igx-err: #dc2626;
  --igx-warn: #d97706;
  --igx-idle: #94a3b8;
  background: radial-gradient(1200px 600px at 70% -10%, #e8f0fe 0%, #f0f2f5 55%);
}
[data-theme="light"] .igx-topbar { background: linear-gradient(90deg,#ffffff 0%,#f4f8ff 60%,#ffffff 100%); }
[data-theme="light"] .igx-stat b { color: #1f2937; }
[data-theme="light"] .igx-tabs { background: #f8fafc; }
[data-theme="light"] .igx-tab.on { color: #2563eb; }
[data-theme="light"] .igx-btn { background: #f1f5f9; color: #1f2937; border-color: #cbd5e1; }
[data-theme="light"] .igx-btn:hover { background: #e2e8f0; border-color: #2563eb; }
[data-theme="light"] .igx-btn.primary { background: linear-gradient(180deg,#3b82f6,#2563eb); border-color: #2563eb; color: #fff; }
[data-theme="light"] .igx-btn.danger { background: #fef2f2; border-color: #fecaca; color: #dc2626; }
[data-theme="light"] .igx-filter select,
[data-theme="light"] .igx-filter input[type=text] { background: #fff; color: #1f2937; border-color: #cbd5e1; }
[data-theme="light"] .igx-filter label { color: #6b7280; }
[data-theme="light"] .igx-table th { background: #f1f5f9; color: #1e40af; }
[data-theme="light"] .igx-table td { border-bottom-color: #eef1f6; color: #1f2937; }
[data-theme="light"] .igx-table tr:hover td { background: #f8fafc; }
[data-theme="light"] .igx-table .mono { color: #475569; }
[data-theme="light"] .igx-table .val { color: #0369a1; }
[data-theme="light"] .igx-badge.online,
[data-theme="light"] .igx-badge.run { background: rgba(22,163,74,.12); color: #15803d; border-color: rgba(22,163,74,.3); }
[data-theme="light"] .igx-badge.offline,
[data-theme="light"] .igx-badge.fault { background: rgba(220,38,38,.1); color: #b91c1c; border-color: rgba(220,38,38,.28); }
[data-theme="light"] .igx-badge.idle { background: rgba(148,163,184,.16); color: #64748b; border-color: rgba(148,163,184,.35); }
[data-theme="light"] .igx-badge.unknown { background: #f1f5f9; color: #64748b; border-color: #cbd5e1; }
[data-theme="light"] .igx-badge.role { background: #f1f5f9; color: #1e40af; border-color: #cbd5e1; }
[data-theme="light"] .igx-badge.level-一般 { background: rgba(37,99,235,.12); color: #1d4ed8; border-color: rgba(37,99,235,.3); }
[data-theme="light"] .igx-badge.level-重要 { background: rgba(217,119,6,.12); color: #b45309; border-color: rgba(217,119,6,.3); }
[data-theme="light"] .igx-badge.level-紧急 { background: rgba(220,38,38,.12); color: #b91c1c; border-color: rgba(220,38,38,.35); }
[data-theme="light"] .igx-dev-card { background: linear-gradient(160deg,#ffffff 0%,#f6f9ff 100%); }
[data-theme="light"] .igx-dev-head .code { color: #6b7280; }
[data-theme="light"] .igx-kv { background: rgba(241,245,249,.85); border-color: #e2e8f0; }
[data-theme="light"] .igx-kv .k { color: #6b7280; }
[data-theme="light"] .igx-kv .v { color: #0369a1; }
[data-theme="light"] .igx-dev-foot { color: #6b7280; }
[data-theme="light"] .igx-tag-cell { background: #f8fafc; border-color: #e2e8f0; }
[data-theme="light"] .igx-tag-cell .tn { color: #1e40af; }
[data-theme="light"] .igx-tag-cell .tv { color: #0369a1; }
[data-theme="light"] .igx-tag-cell .tt { color: #6b7280; }
[data-theme="light"] .igx-pager { color: #6b7280; }
[data-theme="light"] .igx-pager button { background: #f1f5f9; color: #1f2937; border-color: #cbd5e1; }
[data-theme="light"] .igx-trend { background: #fff; border-color: #e2e8f0; }
[data-theme="light"] .igx-trend-title { color: #1e40af; }
[data-theme="light"] .igx-empty { color: #6b7280; }
[data-theme="light"] .igx-sse { color: #6b7280; }
[data-theme="light"] .igx-scn-list-empty { color: #6b7280; }
[data-theme="light"] .igx-scn-help { color: #475569; }
[data-theme="light"] .igx-scn-help code { background: #f1f5f9; color: #1e40af; }
[data-theme="light"] .igx-body::-webkit-scrollbar-thumb,
[data-theme="light"] .igx-table-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; }
/* SVG 舞台与缩略图保持黑底（组态画面色彩准确） */

/* 监控页标题栏实时统计（画面/绑定/实时点/报警），紧凑不换行 */
.igx-topbar .igx-mon-stats { gap: 16px; margin-left: 0; flex-wrap: nowrap; flex-shrink: 0; }
.igx-topbar .igx-mon-stats .igx-stat { font-size: 12px; }
.igx-topbar .igx-mon-stats .igx-stat b { font-size: 14px; }
@media (max-width: 1100px) {
  .igx-topbar .igx-mon-stats { gap: 10px; }
  .igx-topbar .igx-mon-stats .igx-stat { font-size: 11px; }
  .igx-topbar .igx-mon-stats .igx-stat b { font-size: 12px; }
}
