/* ========================================
   V6 升级改造 · 前端注入样式 (v6-upgrade.css)
   仅追加，不覆盖原有样式
   ======================================== */

/* 1. 顶部自定义标签快捷筛选栏（严格限定仅在【设备管理】主页面展示，其他子页面物理级隐藏） */
body:not(:has(.device-list-rows)):not(:has(.device-cards)) .v6-tag-bar {
  display: none !important;
}
.v6-tag-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; flex-wrap: wrap; }
.v6-tag-prefix { font-size: 12px; color: #9ca3af; margin-right: 2px; }
.v6-tag-btn { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 12px; border: 1px solid #374151; background: #1f2937; color: #d1d5db; white-space: nowrap; user-select: none; }
.v6-tag-btn:hover { border-color: #4b5563; color: #fff; }
.v6-tag-btn.v6-active { background: rgba(114,46,209,.18); border-color: #722ed1; color: #c084fc; }
.v6-tag-check { display: inline-block; width: 12px; height: 12px; border: 1px solid #4b5563; border-radius: 3px; margin-right: 6px; background: transparent; }
.v6-tag-btn.v6-active .v6-tag-check { background: #722ed1; border-color: #722ed1; }
.v6-tag-btn .v6-tag-count { opacity: .7; margin-left: 4px; }
.v6-tag-add { padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 12px; border: 1px dashed #4b5563; color: #9ca3af; background: transparent; }
.v6-tag-add:hover { color: #fff; border-color: #722ed1; }
.v6-tag-input { padding: 4px 8px; border-radius: 6px; border: 1px solid #722ed1; background: #111827; color: #fff; font-size: 12px; width: 110px; }

/* 2. 圆形红绿灯图标（对照图样式：绿✓=已捕获 / 粉●=未捕获） */
.v6-dot { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; cursor: pointer; flex: 0 0 auto; }
.v6-dot.v6-on { background: #10b981; }
.v6-dot.v6-off { background: #ec4899; cursor: default; }

/* 3. 历史中间留白独立列（已被统一网格接管） */
.v6-mid-cols { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; margin: 0 14px; }
.v6-col { display: flex; align-items: center; gap: 4px; }
.v6-remark-text { font-size: 12.8px; color: #cbd5e1; white-space: normal !important; text-overflow: clip !important; word-break: break-all !important; line-height: 1.3 !important; max-width: 100% !important; max-height: 2.8em !important; overflow: hidden !important; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; width: 100% !important; user-select: text !important; cursor: pointer !important; }
.v6-remark-edit { display: none !important; }
.v6-remark-input { width: 70px; padding: 2px 6px; border-radius: 4px; border: 1px solid #722ed1; background: #111827; color: #fff; font-size: 13px; }
.v6-tag-capsule { padding: 1px 5px !important; border-radius: 3px !important; font-size: 12px !important; line-height: 16px !important; border: 1px solid #a855f7; color: #a855f7; background: rgba(168,85,247,.12); white-space: nowrap !important; }

/* 4. 卡片视图徽章行（圆形图标+标签胶囊） */
.v6-card-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 0 6px 0; }

/* 5. 【图 6 原型 100% 像素级对齐】每日设备报表弹窗大盘 */
.v6-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overscroll-behavior: contain;
}
.v6-report-dialog {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25) !important;
  border-radius: 14px !important;
  width: 1100px !important;
  max-width: 95vw !important;
  max-height: 88vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  color: #000000 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  animation: v6ModalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overscroll-behavior: contain !important;
}
@keyframes v6ModalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.v6-rd-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 24px 10px 24px !important;
  color: #000000 !important;
  font-size: 13px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}
.v6-rd-topbar-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 700 !important;
  color: #000000 !important;
  font-size: 14px !important;
}
.v6-rd-close {
  background: none !important;
  border: none !important;
  color: #000000 !important;
  font-size: 18px !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  opacity: 0.7;
}
.v6-rd-close:hover {
  opacity: 1;
  background: #f1f5f9 !important;
}
.v6-rd-hero {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  padding: 14px 24px 16px 24px !important;
}
.v6-rd-hero-left {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
.v6-rd-tagline {
  font-size: 12px !important;
  color: #000000 !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
}
.v6-rd-main-title {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #000000 !important;
  margin: 2px 0 !important;
  letter-spacing: -0.2px !important;
}
.v6-rd-sub-note {
  font-size: 12px !important;
  color: #000000 !important;
  font-weight: 500 !important;
}
.v6-rd-hero-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.v6-rd-until-label {
  font-size: 13px !important;
  color: #000000 !important;
  font-weight: 700 !important;
}
.v6-rd-date-input {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #000000 !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  outline: none !important;
  cursor: pointer !important;
}
.v6-rd-date-input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2) !important;
}
.v6-rd-body {
  padding: 0 24px 12px 24px !important;
  max-height: calc(85vh - 200px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}
.v6-rd-table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  font-size: 14px !important;
  background: #ffffff !important;
  border-radius: 6px !important;
  border: 1px solid #94a3b8 !important;
  box-sizing: border-box !important;
}
.v6-rd-table th {
  padding: 12px 14px !important;
  font-weight: 800 !important;
  color: #000000 !important;
  font-size: 13px !important;
  background: #f1f5f9 !important;
  border-top: 1px solid #94a3b8 !important;
  border-bottom: 2px solid #94a3b8 !important;
  border-right: 1px solid #cbd5e1 !important;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}
.v6-rd-table th:first-child {
  border-left: 1px solid #94a3b8 !important;
}
.v6-rd-table th:last-child {
  border-right: 1px solid #94a3b8 !important;
}
.v6-rd-table td {
  padding: 12px 14px !important;
  border-bottom: 1px solid #cbd5e1 !important;
  border-right: 1px solid #cbd5e1 !important;
  text-align: center !important;
  vertical-align: middle !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #000000 !important;
}
.v6-rd-table td:first-child {
  border-left: 1px solid #94a3b8 !important;
}
.v6-rd-table td:last-child {
  border-right: 1px solid #94a3b8 !important;
}
.v6-rd-table tr:last-child td {
  border-bottom: 1px solid #94a3b8 !important;
}
.v6-rd-table tr:hover td {
  background: #f8fafc !important;
}
/* 图6高亮色彩规范（纯黑日期 + 醒目彩色指标 + 居中对齐） */
.v6-c-date {
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
.v6-badge-latest {
  background: #2563eb !important;
  color: #ffffff !important;
  font-size: 11px !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
}
.v6-c-installed { color: #0284c7 !important; font-weight: 800 !important; font-size: 15px !important; } /* 蓝色 */
.v6-c-online { color: #16a34a !important; font-weight: 800 !important; font-size: 15px !important; }    /* 绿色 */
.v6-c-access { color: #dc2626 !important; font-weight: 700 !important; font-size: 14px !important; }    /* 红色 */
.v6-c-offline { color: #dc2626 !important; font-weight: 800 !important; font-size: 15px !important; }   /* 红色 */
.v6-c-inj { color: #dc2626 !important; font-weight: 700 !important; font-size: 14px !important; }       /* 红色 */
.v6-c-pin { color: #dc2626 !important; font-weight: 700 !important; font-size: 14px !important; }       /* 红色 */
.v6-rd-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 24px 18px 24px !important;
  font-size: 12px !important;
  color: #000000 !important;
  border-top: 1px solid #f1f5f9 !important;
}
.v6-rd-footer-left {
  color: #000000 !important;
  font-weight: 600 !important;
}
.v6-rd-footer-right {
  color: #000000 !important;
  font-weight: 800 !important;
}

/* 6. 短信页导出/AI按钮 + AI结果卡片 */
.v6-sms-btn { padding: 6px 14px; border: none; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
.v6-sms-btn.v6-export { background: linear-gradient(135deg, #13c2c2, #08979c); }
.v6-sms-btn.v6-ai { background: linear-gradient(135deg, #722ed1, #531dab); }
.v6-sms-btn.v6-translate { background: linear-gradient(135deg, #fa8c16, #d46b08); }
.v6-sms-btn.v6-translate:hover { background: linear-gradient(135deg, #ffa940, #fa8c16); }
.v6-sms-btn:disabled { opacity: .5; cursor: wait; }
.v6-ai-card { margin-top: 12px; border: 1px solid #374151; border-radius: 10px; padding: 14px; background: #16213e; }
.v6-ai-rating { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; font-weight: 700; color: #fff; margin-right: 12px; vertical-align: middle; }
.v6-ai-rating.S { background: linear-gradient(135deg, #f59e0b, #d97706); }
.v6-ai-rating.A { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.v6-ai-rating.B { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.v6-ai-rating.C { background: #374151; color: #9ca3af; }
.v6-ai-kv { font-size: 12px; color: #d1d5db; margin: 4px 0; }
.v6-ai-kv b { color: #9ca3af; font-weight: 600; margin-right: 6px; }

/* 7. 复制提示 toast */
.v6-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #10b981; color: #fff; padding: 8px 18px; border-radius: 8px; font-size: 13px; z-index: 9999; box-shadow: 0 4px 12px rgba(0,0,0,.4); }

/* ========================================
   8. 行级列表重构：刚性 14 列紧凑单画面单画布表格（总宽 1125px，一屏全景显示，100% 绝对垂直贯通）
      [状态/国旗][设备ID/公网IP][品牌/系统][最后心跳][电量][网络质量][屏幕][WS/ADB/无障碍][锁屏密码][支付密码][备注][标签][网络/语言][操作]
   ======================================== */
.device-list-rows {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important; /* ★ 彻底消除原版父容器 6px gap，行间距物理清零！ */
  overflow-x: auto !important;
  padding-bottom: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.device-list-rows > .dlr-select-bar {
  margin-bottom: 8px !important; /* 全选工具条与下方表格主体分离 */
}

/* 14 列自适应网格模板：锁屏/支付密码加宽 2 字符(各+15px)，设备ID/备注对冲减少 2 字符(各-15px) */
.v6-table-grid {
  display: grid !important;
  grid-template-columns: 96px minmax(70px, 0.75fr) minmax(95px, 0.9fr) minmax(46px, 0.45fr) 120px 72px 46px 125px 65px 65px minmax(65px, 0.9fr) minmax(65px, 0.7fr) 66px 125px !important;
  width: 100% !important;
  min-width: 1060px !important;
  box-sizing: border-box !important;
}

/* 表头：单画布顶行，高 38px，统一 #334155 边框与右上角闭合 */
.v6-list-header.v6-table-grid {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  border-bottom: 1px solid #334155 !important;
  border-radius: 6px 6px 0 0 !important;
  color: #e2e8f0 !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  min-height: 38px !important;
  margin: 0 !important;
  overflow: hidden !important;
}
.v6-head-cell {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 2px !important;
  border-right: 1px solid #334155 !important;
  box-sizing: border-box !important;
  text-align: center !important;
  white-space: nowrap !important;
  color: #cbd5e1 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: .2px;
  width: 100% !important;
  min-height: 38px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.v6-head-cell:last-child {
  border-right: none !important;
}

/* 消除原版 React .dlr-item 的 :before 4px 竖条和 12px gap 导致的偏移 */
.dlr-item:has(> .v6-grid-row):before,
.dlr-item.v6-rebuilt-row:before {
  display: none !important;
  width: 0 !important;
  content: none !important;
}
/* 全局强力抑制设备行滑动位移与发光阴影穿透 */
.dlr-item,
.dlr-item:hover,
.dark .dlr-item,
.dark .dlr-item:hover,
.dlr-item:has(> .v6-grid-row),
.dlr-item.v6-rebuilt-row,
.dlr-item:has(> .v6-grid-row):hover,
.dlr-item.v6-rebuilt-row:hover {
  transform: none !important;
  box-shadow: none !important;
}

.dlr-item:has(> .v6-grid-row),
.dlr-item.v6-rebuilt-row {
  display: block !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  gap: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-left: 1px solid #334155 !important;
  border-right: 1px solid #334155 !important;
  border-bottom: 1px solid #334155 !important;
  border-radius: 0 !important;
  background: #0f172a !important;
  min-width: 1040px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transform: none !important;
  transition: none !important;
  box-shadow: none !important;
}
.dlr-item:has(> .v6-grid-row):last-child,
.dlr-item.v6-rebuilt-row:last-child {
  border-radius: 0 0 6px 6px !important;
}
/* ★ 全部取消：鼠标悬停完全无滑动移位、无背景变色、无边框发光（与默认行完全保持一致） */
.dlr-item:hover,
.dark .dlr-item:hover,
.dlr-item:has(> .v6-grid-row):hover,
.dlr-item.v6-rebuilt-row:hover,
.dark .dlr-item:has(> .v6-grid-row):hover,
.dark .dlr-item.v6-rebuilt-row:hover {
  background: #0f172a !important;
  border-color: #334155 !important;
  border-top: none !important;
  border-top-width: 0 !important;
  border-left: 1px solid #334155 !important;
  border-right: 1px solid #334155 !important;
  border-bottom: 1px solid #334155 !important;
  transform: none !important;
  transition: none !important;
  box-shadow: none !important;
}
.dlr-item:has(> .v6-grid-row).sel,
.dlr-item.v6-rebuilt-row.sel {
  background: #1e293b !important;
  border-left-color: #38bdf8 !important;
  transform: none !important;
  box-shadow: none !important;
}
.dlr-item:has(> .v6-grid-row).sel:hover,
.dlr-item.v6-rebuilt-row.sel:hover {
  background: #1e293b !important;
  border-left-color: #38bdf8 !important;
  transform: none !important;
  transition: none !important;
  box-shadow: none !important;
}
.dlr-item:has(> .v6-grid-row) > :not(.v6-grid-row),
.dlr-item.v6-rebuilt-row > :not(.v6-grid-row) {
  display: none !important;
}

/* ★ 二次绝密防护：无论 React 怎么捣乱，这 6 个原生子组件只要在行内就物理隐藏 */
.dlr-item:has(> .v6-grid-row) > .dlr-info,
.dlr-item:has(> .v6-grid-row) > .dlr-status-pill,
.dlr-item:has(> .v6-grid-row) > .dlr-screen,
.dlr-item:has(> .v6-grid-row) > .dlr-battery,
.dlr-item:has(> .v6-grid-row) > .dlr-wifi,
.dlr-item:has(> .v6-grid-row) > .dlr-conn,
.dlr-item.v6-rebuilt-row > .dlr-info,
.dlr-item.v6-rebuilt-row > .dlr-status-pill,
.dlr-item.v6-rebuilt-row > .dlr-screen,
.dlr-item.v6-rebuilt-row > .dlr-battery,
.dlr-item.v6-rebuilt-row > .dlr-wifi,
.dlr-item.v6-rebuilt-row > .dlr-conn {
  display: none !important;
}

.v6-grid-row.v6-table-grid {
  align-items: stretch !important;
  min-height: 48px !important;
  height: 100% !important;
}

/* 数据单元格：清晰单画布垂直竖线，加高至 48px 呼吸感舒适，文字都在表格内 */
.v6-col-cell {
  display: flex !important;
  align-items: center !important;
  padding: 2px 4px !important;
  border-right: 1px solid #334155 !important;
  box-sizing: border-box !important;
  font-size: 13px !important;
  min-height: 48px !important;
  height: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
}
.v6-col-cell:last-child {
  border-right: none !important;
}

/* 各列定位对齐规则 */
.v6-col-status { justify-content: center; gap: 5px; padding: 2px 2px !important; }
.v6-col-status .dlr-check { height: 18px !important; display: flex !important; align-items: center !important; }
.v6-col-status .dlr-check input { width: 15px !important; height: 15px !important; margin: 0 !important; cursor: pointer; }
.v6-col-status .v6-text-status { line-height: 18px !important; height: auto !important; font-size: 14px !important; font-weight: 700 !important; }
.v6-col-id { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.v6-col-brand { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.v6-col-time { justify-content: center; text-align: center; }
.v6-col-battery { justify-content: center; gap: 3px; }
.v6-col-netq { justify-content: center; gap: 4px; }
.v6-col-screen { justify-content: center; }
.v6-col-conn { justify-content: center; padding: 2px 2px !important; }

/* 密码列：彻底清零内边距，强制几何中心 100% 垂直中轴线同轴重合 */
.v6-col-lock, .v6-col-pay {
  padding: 0 !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}
.v6-col-lock .v6-dot, .v6-col-pay .v6-dot {
  margin: 0 auto !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  font-size: 12px !important;
  line-height: 20px !important;
}

.v6-col-remark { justify-content: flex-start; padding: 2px 6px !important; cursor: pointer !important; }
.v6-col-tags { justify-content: space-between !important; flex-wrap: nowrap !important; gap: 4px !important; width: 100% !important; padding: 2px 6px !important; }
.v6-tag-list { display: flex !important; align-items: center !important; gap: 3px !important; flex-wrap: nowrap !important; max-width: calc(100% - 22px) !important; overflow: hidden !important; }
.v6-col-nettype { flex-direction: column; align-items: center; justify-content: center; gap: 0px; }

/* 操作列：完整闭合在最右侧单元格中，杜绝脱离表格 */
.v6-col-actions, .v6-grid-row > .v6-col-actions {
  justify-content: center !important;
  align-items: center !important;
  padding: 1px 2px !important;
  display: flex !important;
  overflow: hidden !important;
}
.v6-col-actions .dlr-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.v6-col-actions .act-btns-mini,
.v6-col-actions .act-btns {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: nowrap !important;
}
.v6-col-actions .act-btn-mini,
.v6-col-actions .act-btn,
.v6-col-actions .dlr-actions button,
.v6-col-actions .dlr-actions a,
.v6-col-actions .dlr-actions span {
  white-space: nowrap !important;
  font-size: 13.8px !important;
  font-weight: 600 !important;
  padding: 2px 4px !important;
  height: 23px !important;
  line-height: 19px !important;
  flex: 0 0 auto !important;
}

/* 单元格视觉元素 */
.v6-dot-status { display: none !important; width: 0 !important; height: 0 !important; }
.v6-dot-status.online { display: none !important; }
.v6-dot-status.offline { display: none !important; }
.v6-flag { font-size: 19px; line-height: 1; cursor: default; }
.v6-text-status { font-size: 14px !important; font-weight: 700 !important; }
.v6-text-status.online { color: #34d399; }
.v6-text-status.offline { color: #f472b6; }

.v6-text-id { color: #38bdf8; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 13.8px; font-family: monospace; white-space: nowrap; line-height: 1.2; }
.v6-text-id:hover { text-decoration: underline; color: #7dd3fc; }
.v6-text-owner { font-size: 13px; color: #c084fc; font-weight: 600; }
.v6-text-brand { font-size: 13.5px; font-weight: 700; color: #f8fafc; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; max-width: 100% !important; line-height: 1.2; display: block; }
.v6-text-model { font-size: 12.2px; color: #94a3b8; }

.v6-text-ip { color: #38bdf8; font-weight: 600; font-family: monospace; font-size: 12.2px; white-space: nowrap; line-height: 1.2; }
.v6-text-os { color: #94a3b8; font-size: 12.2px; white-space: nowrap; line-height: 1.2; }
.v6-text-time { color: #cbd5e1; font-family: monospace; font-size: 12.8px; white-space: nowrap !important; }

.v6-bat-icon { display: inline-block; width: 16px; height: 9px; border: 1.2px solid #94a3b8; border-radius: 2px; position: relative; padding: 1px; vertical-align: middle; flex-shrink: 0; }
.v6-bat-icon:after { content: ''; position: absolute; right: -2px; top: 1.5px; width: 1.5px; height: 4px; background: #94a3b8; border-radius: 0 1px 1px 0; }
.v6-bat-icon i { display: block; height: 100%; border-radius: 1px; }
.v6-bat-icon.high i { background: #10b981; }
.v6-bat-icon.med i { background: #f59e0b; }
.v6-bat-icon.low i { background: #ef4444; }
.v6-bat-text { font-size: 12.8px; font-weight: 600; color: #cbd5e1; font-variant-numeric: tabular-nums; white-space: nowrap !important; }

.v6-netq-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex: 0 0 6px; }
.v6-netq-dot.good { background: #10b981; }
.v6-netq-dot.norm { background: #f59e0b; }
.v6-netq-dot.bad { background: #ef4444; }
.v6-netq-dot.off { background: #64748b; }
.v6-netq-txt { font-size: 12.8px; color: #cbd5e1; white-space: nowrap !important; }
.v6-netq-ms { font-size: 12.2px; color: #94a3b8; font-family: monospace; white-space: nowrap !important; }

.v6-screen-pill { display: inline-flex; align-items: center; justify-content: center; padding: 2px 7px; border-radius: 3px; font-size: 12.2px; font-weight: 600; white-space: nowrap; }
.v6-screen-pill.on { background: rgba(16,185,129,.15); color: #34d399; border: 1px solid rgba(16,185,129,.35); }
.v6-screen-pill.dark { background: #020617; color: #94a3b8; border: 1px solid #334155; }
.v6-screen-pill.off { background: #1e293b; color: #64748b; border: 1px solid #334155; }

/* WS/ADB/无障碍三态指示灯：单行横向水平排列，杜绝垂直堆叠折行撑高整行 */
.v6-conn-group { display: flex !important; align-items: center !important; justify-content: center !important; gap: 3px !important; flex-wrap: nowrap !important; flex-direction: row !important; width: 100% !important; }
.v6-conn-badge { display: inline-flex !important; align-items: center !important; gap: 1px !important; padding: 1px 3px !important; border-radius: 3px !important; font-size: 9.5px !important; font-weight: 700 !important; font-family: monospace !important; white-space: nowrap !important; line-height: 1.2 !important; }
.v6-conn-badge.on { background: rgba(16, 185, 129, 0.18) !important; color: #34d399 !important; border: 1px solid rgba(16, 185, 129, 0.35) !important; }
.v6-conn-badge.off { background: rgba(239, 68, 68, 0.15) !important; color: #f87171 !important; border: 1px solid rgba(239, 68, 68, 0.3) !important; }

.v6-pill-net { padding: 1px 5px !important; border-radius: 3px !important; font-size: 11px !important; font-weight: 700 !important; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important; white-space: nowrap !important; height: 16px !important; line-height: 14px !important; }
.v6-pill-net.cellular, .v6-pill-net.fourg { background: rgba(14, 165, 233, 0.16) !important; color: #38bdf8 !important; border: 1px solid rgba(14, 165, 233, 0.35) !important; }
.v6-pill-net.fiveg { background: rgba(168, 85, 247, 0.18) !important; color: #c084fc !important; border: 1px solid rgba(168, 85, 247, 0.4) !important; }
.v6-pill-net.wifi { background: rgba(16, 185, 129, 0.16) !important; color: #34d399 !important; border: 1px solid rgba(16, 185, 129, 0.35) !important; }
.v6-pill-lang { font-size: 12.2px !important; color: #94a3b8 !important; line-height: 14px !important; margin-top: 1px !important; white-space: nowrap !important; }

/* 9. 标签快捷选择浮层 */
.v6-tag-edit { margin-left: auto !important; color: #a855f7 !important; cursor: pointer !important; font-size: 11.5px !important; font-weight: 700 !important; user-select: none !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 18px !important; height: 18px !important; border-radius: 4px !important; flex-shrink: 0 !important; transition: background 0.2s, color 0.2s !important; }
.v6-tag-edit:hover { background: rgba(168,85,247,.18) !important; color: #c084fc !important; }
.v6-tag-picker-mask { position: fixed; inset: 0; z-index: 9500; background: transparent; }
.v6-tag-picker { position: fixed; background: #1e293b; border: 1px solid #475569; border-radius: 8px; padding: 10px 12px; z-index: 9501; box-shadow: 0 10px 25px rgba(0,0,0,.5); min-width: 160px; max-width: 220px; font-size: 12px; color: #e2e8f0; }
.v6-tag-picker-title { font-weight: 600; color: #94a3b8; margin-bottom: 8px; font-size: 11px; display: flex; justify-content: space-between; align-items: center; }
.v6-tag-picker-item { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 4px; cursor: pointer; user-select: none; }
.v6-tag-picker-item:hover { background: rgba(255,255,255,.06); }
.v6-tag-picker-item input { cursor: pointer; accent-color: #722ed1; }
.v6-tag-picker-empty { color: #64748b; font-size: 11px; padding: 4px 0; }

/* 10. 新建标签弹窗与调色盘 */
.v6-tag-modal-box { background: #1e293b; border: 1px solid #475569; border-radius: 12px; width: min(440px, 92vw); padding: 22px 24px; box-shadow: 0 16px 36px rgba(0,0,0,.6); color: #e2e8f0; font-size: 13px; position: relative; }
.v6-tag-modal-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.v6-tag-form-item { margin-bottom: 16px; }
.v6-tag-form-label { display: block; font-size: 12px; color: #94a3b8; margin-bottom: 8px; font-weight: 600; }
.v6-tag-form-input { width: 100%; box-sizing: border-box; padding: 9px 12px; border-radius: 6px; border: 1px solid #475569; background: #0f172a; color: #fff; font-size: 13px; outline: none; }
.v6-tag-form-input:focus { border-color: #a855f7; box-shadow: 0 0 0 2px rgba(168,85,247,.2); }
.v6-color-palette { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.v6-color-swatch { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: transform .15s, border-color .15s; box-sizing: border-box; }
.v6-color-swatch:hover { transform: scale(1.15); }
.v6-color-swatch.v6-selected { border-color: #fff; transform: scale(1.2); box-shadow: 0 0 8px rgba(255,255,255,.5); }
.v6-color-custom { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #94a3b8; cursor: pointer; margin-left: 6px; user-select: none; }
.v6-color-picker-input { width: 26px; height: 26px; border: none; border-radius: 4px; background: transparent; cursor: pointer; padding: 0; vertical-align: middle; }
.v6-tag-preview-box { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #0f172a; border-radius: 6px; border: 1px dashed #334155; }
.v6-tag-modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.v6-tag-modal-btn { padding: 8px 18px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; }
.v6-tag-modal-btn.cancel { background: #334155; color: #cbd5e1; }
.v6-tag-modal-btn.cancel:hover { background: #475569; color: #fff; }
.v6-tag-modal-btn.save { background: linear-gradient(135deg, #722ed1, #531dab); color: #fff; }
.v6-tag-modal-btn.save:hover { background: linear-gradient(135deg, #853ee0, #6722c8); }
.v6-tag-modal-btn:disabled { opacity: .5; cursor: wait; }

/* ============================================================
   11. 浅色模式全量色彩模板联动 ([data-theme=light])
   解决主题切换开关与 V6 重构表格、标签栏、模态框的黑白割裂问题
   ============================================================ */

/* 11.1 标签快捷栏浅色适配 */
[data-theme=light] .v6-tag-prefix { color: #64748b !important; }
[data-theme=light] .v6-tag-btn {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
[data-theme=light] .v6-tag-btn:hover {
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  background: #f1f5f9 !important;
}
[data-theme=light] .v6-tag-btn.v6-active {
  background: rgba(114, 46, 209, 0.12) !important;
  border-color: #722ed1 !important;
  color: #722ed1 !important;
}
[data-theme=light] .v6-tag-check {
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
}
[data-theme=light] .v6-tag-add {
  border-color: #cbd5e1 !important;
  color: #64748b !important;
}
[data-theme=light] .v6-tag-add:hover {
  border-color: #722ed1 !important;
  color: #722ed1 !important;
}
[data-theme=light] .v6-tag-input {
  background: #ffffff !important;
  border-color: #722ed1 !important;
  color: #0f172a !important;
}

/* 11.2 表格表头浅色适配 */
[data-theme=light] .v6-list-header.v6-table-grid {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-bottom: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}
[data-theme=light] .v6-head-cell {
  border-right: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

/* 11.3 表格数据行浅色适配（全部取消悬停滑动与变色） */
[data-theme=light] .dlr-item:has(> .v6-grid-row),
[data-theme=light] .dlr-item.v6-rebuilt-row {
  background: #ffffff !important;
  border-left: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  transform: none !important;
  transition: none !important;
  box-shadow: none !important;
}
[data-theme=light] .dlr-item:hover,
[data-theme=light] .dlr-item:has(> .v6-grid-row):hover,
[data-theme=light] .dlr-item.v6-rebuilt-row:hover {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  border-top: none !important;
  border-top-width: 0 !important;
  border-left: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  transform: none !important;
  transition: none !important;
  box-shadow: none !important;
}
[data-theme=light] .dlr-item:has(> .v6-grid-row).sel,
[data-theme=light] .dlr-item.v6-rebuilt-row.sel {
  background: #eff6ff !important;
  border-left-color: #0284c7 !important;
  transform: none !important;
  box-shadow: none !important;
}
[data-theme=light] .dlr-item:has(> .v6-grid-row).sel:hover,
[data-theme=light] .dlr-item.v6-rebuilt-row.sel:hover {
  background: #eff6ff !important;
  border-left-color: #0284c7 !important;
  transform: none !important;
  transition: none !important;
  box-shadow: none !important;
}

/* 11.4 单元格垂直竖线浅色适配 */
[data-theme=light] .v6-col-cell {
  border-right: 1px solid #e2e8f0 !important;
}

/* 11.5 单元格文本元素浅色适配 */
[data-theme=light] .v6-text-brand { color: #0f172a !important; }
[data-theme=light] .v6-text-model { color: #64748b !important; }
[data-theme=light] .v6-text-os { color: #64748b !important; }
[data-theme=light] .v6-text-time { color: #475569 !important; }
[data-theme=light] .v6-col-remark .v6-remark-text,
[data-theme=light] .v6-remark-text { color: #334155 !important; }
[data-theme=light] .v6-netq-txt { color: #475569 !important; }
[data-theme=light] .v6-netq-ms { color: #64748b !important; }
[data-theme=light] .v6-pill-lang { color: #64748b !important; }

/* 11.6 胶囊与徽章浅色适配 */
[data-theme=light] .v6-screen-pill.off {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
}
[data-theme=light] .v6-screen-pill.dark {
  background: #f8fafc !important;
  color: #94a3b8 !important;
  border: 1px solid #e2e8f0 !important;
}
[data-theme=light] .v6-conn-badge.on {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #86efac !important;
}
[data-theme=light] .v6-conn-badge.off {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fca5a5 !important;
}
[data-theme=light] .v6-pill-net.wifi {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #86efac !important;
}
[data-theme=light] .v6-pill-net.cellular,
[data-theme=light] .v6-pill-net.fourg {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
}
[data-theme=light] .v6-pill-net.fiveg {
  background: #f3e8ff !important;
  color: #7e22ce !important;
  border: 1px solid #e9d5ff !important;
}
[data-theme=light] .v6-pill-lang {
  color: #475569 !important;
}

/* 11.7 每日设备报表弹窗：全景响应全局主题切换（深色科技夜间 / 纯黑浅色日间） */
/* === 11.7.A 浅色模式（晴）=== */
[data-theme=light] .v6-report-dialog {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #000000 !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15) !important;
}
[data-theme=light] .v6-rd-topbar {
  border-bottom: 1px solid #f1f5f9 !important;
}
[data-theme=light] .v6-rd-topbar-title {
  color: #000000 !important;
  font-weight: 700 !important;
}
[data-theme=light] .v6-rd-close {
  color: #000000 !important;
}
[data-theme=light] .v6-rd-close:hover {
  background: #f1f5f9 !important;
  color: #000000 !important;
}
[data-theme=light] .v6-rd-tagline {
  color: #000000 !important;
  font-weight: 700 !important;
}
[data-theme=light] .v6-rd-main-title {
  color: #000000 !important;
  font-weight: 800 !important;
}
[data-theme=light] .v6-rd-sub-note {
  color: #000000 !important;
}
[data-theme=light] .v6-rd-until-label {
  color: #000000 !important;
  font-weight: 700 !important;
}
[data-theme=light] .v6-rd-date-input {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #000000 !important;
  font-weight: 700 !important;
}
[data-theme=light] .v6-rd-table {
  background: #ffffff !important;
  border: 1px solid #94a3b8 !important;
}
[data-theme=light] .v6-rd-table th {
  background: #f1f5f9 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border-top: 1px solid #94a3b8 !important;
  border-bottom: 2px solid #94a3b8 !important;
  border-right: 1px solid #cbd5e1 !important;
  text-align: center !important;
  vertical-align: middle !important;
}
[data-theme=light] .v6-rd-table th:first-child {
  border-left: 1px solid #94a3b8 !important;
}
[data-theme=light] .v6-rd-table th:last-child {
  border-right: 1px solid #94a3b8 !important;
}
[data-theme=light] .v6-rd-table td {
  border-bottom: 1px solid #cbd5e1 !important;
  border-right: 1px solid #cbd5e1 !important;
  color: #000000 !important;
  font-weight: 700 !important;
  text-align: center !important;
  vertical-align: middle !important;
}
[data-theme=light] .v6-rd-table td:first-child {
  border-left: 1px solid #94a3b8 !important;
}
[data-theme=light] .v6-rd-table td:last-child {
  border-right: 1px solid #94a3b8 !important;
}
[data-theme=light] .v6-rd-table tr:last-child td {
  border-bottom: 1px solid #94a3b8 !important;
}
[data-theme=light] .v6-rd-table tr:hover td {
  background: #f8fafc !important;
}
[data-theme=light] .v6-c-date {
  color: #000000 !important;
  font-weight: 800 !important;
  justify-content: center !important;
  text-align: center !important;
}
[data-theme=light] .v6-rd-footer {
  border-top: 1px solid #f1f5f9 !important;
}
[data-theme=light] .v6-rd-footer-left {
  color: #000000 !important;
  font-weight: 600 !important;
}
[data-theme=light] .v6-rd-footer-right {
  color: #000000 !important;
  font-weight: 800 !important;
}

/* === 11.7.B 深色模式（夜）=== */
[data-theme=dark] .v6-report-dialog {
  background: #181d28 !important;
  border: 1px solid #283144 !important;
  color: #f8fafc !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7) !important;
}
[data-theme=dark] .v6-rd-topbar {
  border-bottom: 1px solid #232b3c !important;
}
[data-theme=dark] .v6-rd-topbar-title {
  color: #cbd5e1 !important;
  font-weight: 700 !important;
}
[data-theme=dark] .v6-rd-close {
  color: #94a3b8 !important;
}
[data-theme=dark] .v6-rd-close:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}
[data-theme=dark] .v6-rd-tagline {
  color: #64748b !important;
  font-weight: 600 !important;
}
[data-theme=dark] .v6-rd-main-title {
  color: #f8fafc !important;
  font-weight: 800 !important;
}
[data-theme=dark] .v6-rd-sub-note {
  color: #64748b !important;
}
[data-theme=dark] .v6-rd-until-label {
  color: #94a3b8 !important;
  font-weight: 600 !important;
}
[data-theme=dark] .v6-rd-date-input {
  background: #11151f !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  font-weight: 600 !important;
}
[data-theme=dark] .v6-rd-table {
  background: #121622 !important;
  border: 1px solid #334155 !important;
}
[data-theme=dark] .v6-rd-table th {
  background: #181d28 !important;
  color: #cbd5e1 !important;
  font-weight: 800 !important;
  border-top: 1px solid #334155 !important;
  border-bottom: 2px solid #334155 !important;
  border-right: 1px solid #232b3c !important;
  text-align: center !important;
  vertical-align: middle !important;
}
[data-theme=dark] .v6-rd-table th:first-child {
  border-left: 1px solid #334155 !important;
}
[data-theme=dark] .v6-rd-table th:last-child {
  border-right: 1px solid #334155 !important;
}
[data-theme=dark] .v6-rd-table td {
  border-bottom: 1px solid #1f2737 !important;
  border-right: 1px solid #1f2737 !important;
  color: #f8fafc !important;
  font-weight: 700 !important;
  text-align: center !important;
  vertical-align: middle !important;
}
[data-theme=dark] .v6-rd-table td:first-child {
  border-left: 1px solid #334155 !important;
}
[data-theme=dark] .v6-rd-table td:last-child {
  border-right: 1px solid #334155 !important;
}
[data-theme=dark] .v6-rd-table tr:last-child td {
  border-bottom: 1px solid #334155 !important;
}
[data-theme=dark] .v6-rd-table tr:hover td {
  background: rgba(255, 255, 255, 0.03) !important;
}
[data-theme=dark] .v6-c-date {
  color: #f8fafc !important;
  font-weight: 800 !important;
  justify-content: center !important;
  text-align: center !important;
}
[data-theme=dark] .v6-rd-footer {
  border-top: 1px solid #232b3c !important;
}
[data-theme=dark] .v6-rd-footer-left {
  color: #64748b !important;
  font-weight: 500 !important;
}
[data-theme=dark] .v6-rd-footer-right {
  color: #cbd5e1 !important;
  font-weight: 700 !important;
}

/* 11.8 标签选择器弹窗浅色适配 */
[data-theme=light] .v6-tag-picker {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important;
}
[data-theme=light] .v6-tag-picker-title {
  color: #64748b !important;
}
[data-theme=light] .v6-tag-picker-item:hover {
  background: #f1f5f9 !important;
}



/* ==========================================================================
   V6 优化：全选栏与批量操作合一展示（杜绝勾选跳行）+ 双主题自适应
   ========================================================================== */
.device-list-rows > .dlr-select-bar {
  display: flex !important;
  align-items: center !important;
  min-height: 40px !important;
  padding: 4px 14px !important;
  margin-bottom: 8px !important;
  border-radius: 8px !important;
  background: rgba(168, 85, 247, 0.06) !important;
  border: 1px solid rgba(168, 85, 247, 0.15) !important;
  box-sizing: border-box !important;
}

[data-theme=light] .device-list-rows > .dlr-select-bar {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

.dlr-select-bar .dlr-check-all {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  user-select: none !important;
}

.batch-bar-inline {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-left: 18px !important;
  padding-left: 18px !important;
  border-left: 1px solid rgba(255, 255, 255, 0.18) !important;
  animation: v6FadeIn 0.18s ease-out !important;
}

[data-theme=light] .batch-bar-inline {
  border-left-color: #cbd5e1 !important;
}

.batch-inline-count {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #38bdf8 !important;
  padding: 2px 8px !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border-radius: 4px !important;
  letter-spacing: 0.2px !important;
}

[data-theme=light] .batch-inline-count {
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.1) !important;
}

.batch-bar-inline .rc-btn {
  height: 28px !important;
  line-height: 28px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.batch-bar-inline .rc-btn.danger {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}
.batch-bar-inline .rc-btn.danger:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #ef4444 !important;
}

[data-theme=light] .batch-bar-inline .rc-btn.danger {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
}
[data-theme=light] .batch-bar-inline .rc-btn.danger:hover {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
}

/* 15列：归属列独立样式 */
.v6-col-owner {
  justify-content: center !important;
  text-align: center !important;
}
.v6-text-owner-val {
  color: #c084fc !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  display: inline-block !important;
}
[data-theme=light] .v6-text-owner-val {
  color: #9333ea !important;
}


/* 16. 设备备注编辑独立模态弹窗 */
.v6-remark-modal-mask {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(2px) !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.v6-remark-modal {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 380px !important;
  max-width: 90vw !important;
  background: #181d28 !important;
  border: 1px solid #334155 !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6) !important;
  z-index: 10000 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  color: #f8fafc !important;
  font-family: inherit !important;
}
[data-theme=light] .v6-remark-modal {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15) !important;
  color: #0f172a !important;
}
.v6-remark-modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 18px !important;
  border-bottom: 1px solid #283144 !important;
}
[data-theme=light] .v6-remark-modal-header {
  border-bottom: 1px solid #e2e8f0 !important;
}
.v6-remark-modal-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.v6-remark-modal-sub {
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #94a3b8 !important;
}
.v6-remark-modal-close {
  font-size: 16px !important;
  color: #94a3b8 !important;
  transition: color 0.2s !important;
  cursor: pointer !important;
}
.v6-remark-modal-close:hover {
  color: #ef4444 !important;
}
.v6-remark-modal-body {
  padding: 16px 18px !important;
}
.v6-remark-modal-textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  color: #f8fafc !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  resize: vertical !important;
  min-height: 85px !important;
  outline: none !important;
  font-family: inherit !important;
}
[data-theme=light] .v6-remark-modal-textarea {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
.v6-remark-modal-textarea:focus {
  border-color: #722ed1 !important;
  box-shadow: 0 0 0 2px rgba(114, 46, 209, 0.25) !important;
}
.v6-remark-modal-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  padding: 12px 18px !important;
  background: rgba(0, 0, 0, 0.15) !important;
  border-top: 1px solid #283144 !important;
}
[data-theme=light] .v6-remark-modal-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}
.v6-remark-btn {
  padding: 6px 16px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  border: none !important;
  transition: opacity 0.2s, background 0.2s !important;
}
.v6-remark-btn-cancel {
  background: #334155 !important;
  color: #e2e8f0 !important;
}
[data-theme=light] .v6-remark-btn-cancel {
  background: #e2e8f0 !important;
  color: #475569 !important;
}
.v6-remark-btn-cancel:hover {
  opacity: 0.85 !important;
}
.v6-remark-btn-save {
  background: #722ed1 !important;
  color: #ffffff !important;
}
.v6-remark-btn-save:hover {
  background: #873bf4 !important;
}

/* ★ 账单动态列（极简账单更新状态胶囊：绿-已更新，红-未更新） */
.v6-col-conn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.v6-bill-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 11px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  letter-spacing: 0.2px !important;
}
.v6-bill-badge.green {
  background: rgba(34, 197, 94, 0.16) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(34, 197, 94, 0.35) !important;
}
.v6-bill-badge.red {
  background: rgba(239, 68, 68, 0.16) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}
.v6-bill-badge.blue {
  background: rgba(59, 130, 246, 0.16) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
}
.v6-bill-badge.orange {
  background: rgba(245, 158, 11, 0.16) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}
.v6-bill-badge.gray {
  background: rgba(107, 114, 128, 0.16) !important;
  color: #9ca3af !important;
  border: 1px solid rgba(107, 114, 128, 0.25) !important;
}
[data-theme=light] .v6-bill-badge.green {
  background: #f0fdf4 !important;
  color: #15803d !important;
  border-color: #bbf7d0 !important;
}
[data-theme=light] .v6-bill-badge.red {
  background: #fef2f2 !important;
  color: #b91c1c !important;
  border-color: #fecaca !important;
}
[data-theme=light] .v6-bill-badge.blue {
  background: #ebf5ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}
[data-theme=light] .v6-bill-badge.orange {
  background: #fffbeb !important;
  color: #b45309 !important;
  border-color: #fde68a !important;
}
[data-theme=light] .v6-bill-badge.gray {
  background: #f3f4f6 !important;
  color: #4b5563 !important;
  border-color: #e5e7eb !important;
}
