/* =========================================================
   保险理赔数据系统 · 视觉系统 v2（本地副本专用）
   风格：Modern SaaS · 高密度数据后台
   ========================================================= */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --brand: #2F6B4F;
  --brand-deep: #255740;
  --brand-2: #C08A3E;
  --brand-grad: linear-gradient(135deg, #255740 0%, #2F6B4F 55%, #3F8563 100%);
  --brand-soft: rgba(47, 107, 79, .10);

  --ink-900: #14201a;
  --ink-700: #3c4a43;
  --ink-500: #6d7d74;
  --ink-400: #8a9a91;
  --ink-300: #b3c2b8;

  --line: #e6ece7;
  --line-2: #dde5de;
  --bg-page: #eef0ec;
  --bg-card: #ffffff;
  --bg-soft: #f3f5f1;

  --r-xl: 18px;
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 8px;

  --sh-xs: 0 1px 2px rgba(20, 40, 30, .04);
  --sh-sm: 0 1px 2px rgba(20, 40, 30, .05), 0 8px 24px -18px rgba(20, 40, 30, .35);
  --sh-md: 0 1px 2px rgba(20, 40, 30, .05), 0 16px 36px -22px rgba(20, 40, 30, .38);
  --sh-pop: 0 24px 64px -28px rgba(20, 40, 30, .42);

  /* 数字字体：DIN Next LT Pro（系统已装）→ Bahnschrift → Segoe UI */
  --font-num: "DIN Next LT Pro", "DIN Alternate", "Bahnschrift", "Segoe UI", "Microsoft YaHei", sans-serif;

  /* element-plus 变量 */
  --el-color-primary: #2F6B4F;
  --el-color-primary-light-3: #5C9A77;
  --el-color-primary-light-5: #8FB8A0;
  --el-color-primary-light-7: #C8DFD2;
  --el-color-primary-light-8: #DCEDE3;
  --el-color-primary-light-9: #EEF5F0;
  --el-color-primary-dark-2: #255740;

  --el-border-radius-base: 10px;
  --el-border-radius-small: 8px;
  --el-border-color: #dfe7e0;
  --el-border-color-light: #eaf0eb;
  --el-border-color-lighter: #eff4ef;
  --el-text-color-primary: #14201a;
  --el-text-color-regular: #3c4a43;
  --el-text-color-secondary: #6d7d74;
  --el-font-size-base: 13.5px;
  --el-bg-color: #ffffff;
}

html, body {
  background: var(--bg-page) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink-900);
}

/* ---------- 2. 侧边栏 ---------- */
.sidebar-container,
.sidebar-container .el-menu,
.sidebar-container .sidebar-logo-container {
  background: linear-gradient(180deg, #0a1120 0%, #0c1626 58%, #080f1c 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, .05) !important;
}

.sidebar-container .sidebar-logo-container {
  height: 58px !important;
  border-bottom: 1px solid rgba(255, 255, 255, .06) !important;
}
.sidebar-container .sidebar-logo-container .sidebar-title,
.sidebar-container .sidebar-logo-container h1 {
  color: #f1f6f2 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: .5px;
}
.sidebar-container .sidebar-logo-container img {
  border-radius: 9px;
  box-shadow: 0 6px 18px -8px rgba(47, 107, 79, .9);
}

.sidebar-container .el-menu-item,
.sidebar-container .el-sub-menu__title {
  color: #93a4c2 !important;
  font-size: 13.5px !important;
  height: 42px !important;
  line-height: 42px !important;
  margin: 3px 10px !important;
  border-radius: 10px !important;
  transition: background .18s ease, color .18s ease !important;
}
.sidebar-container .el-menu-item .el-icon,
.sidebar-container .el-sub-menu__title .el-icon {
  font-size: 17px !important;
  color: #7f92b4 !important;
  transition: color .18s ease;
}
.sidebar-container .el-menu-item:hover,
.sidebar-container .el-sub-menu__title:hover {
  background: rgba(255, 255, 255, .06) !important;
  color: #e8eefc !important;
}
.sidebar-container .el-menu-item:hover .el-icon,
.sidebar-container .el-sub-menu__title:hover .el-icon { color: #c9d7f5 !important; }

.sidebar-container .el-menu-item.is-active {
  background: linear-gradient(90deg, rgba(47, 107, 79, .40), rgba(47, 107, 79, .07)) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: inset 0 0 0 1px rgba(120, 155, 255, .16);
}
.sidebar-container .el-menu-item.is-active .el-icon { color: #9db8ff !important; }
.sidebar-container .el-menu-item.is-active::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 17px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #7ea4ff, #4d7dff);
  box-shadow: 0 0 12px rgba(92, 132, 255, .85);
}

.sidebar-container .el-sub-menu .el-menu-item {
  background: transparent !important;
  height: 38px !important;
  line-height: 38px !important;
  font-size: 13px !important;
}
.sidebar-container .el-sub-menu.is-active > .el-sub-menu__title {
  color: #dfe9ff !important;
}

/* 折叠态 */
.el-menu--collapse .el-menu-item,
.el-menu--collapse .el-sub-menu__title {
  margin: 3px 8px !important;
  border-radius: 10px !important;
}

/* ---------- 3. 顶栏 ---------- */
.navbar {
  height: 56px !important;
  background: rgba(255, 255, 255, .84) !important;
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset !important;
  padding: 0 16px !important;
}
.navbar .hamburger-container {
  color: var(--ink-500) !important;
  transition: background .18s ease;
  border-radius: 9px;
}
.navbar .hamburger-container:hover { background: var(--bg-soft) !important; }

.navbar .el-breadcrumb__inner,
.navbar .el-breadcrumb__inner a {
  font-weight: 500 !important;
  color: var(--ink-500) !important;
  font-size: 13px !important;
}
.navbar .el-breadcrumb__item:last-child .el-breadcrumb__inner {
  color: var(--ink-900) !important;
  font-weight: 650 !important;
}

.navbar .right-menu .right-menu-item {
  border-radius: 9px;
  transition: background .18s ease, color .18s ease;
}
.navbar .right-menu .right-menu-item:hover { background: var(--bg-soft) !important; }
.navbar .avatar-container .avatar-wrapper { border-radius: 999px; }
.navbar .avatar-container .user-nickname { font-weight: 600; color: var(--ink-700); }

/* ---------- 4. 标签栏 ---------- */
.tags-view-container {
  height: 36px !important;
  background: transparent !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
  padding: 0 6px;
}
.tags-view-container .tags-view-wrapper .tags-view-item {
  height: 25px !important;
  line-height: 24px !important;
  padding: 0 11px !important;
  margin: 5px 4px 0 !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  border: 1px solid var(--line-2) !important;
  background: #fff !important;
  color: var(--ink-500) !important;
  transition: all .18s ease;
}
.tags-view-container .tags-view-wrapper .tags-view-item:hover {
  color: var(--brand) !important;
  border-color: #bfd4c5 !important;
}
.tags-view-container .tags-view-wrapper .tags-view-item.active {
  background: var(--brand-soft) !important;
  border-color: transparent !important;
  color: var(--brand-deep) !important;
  font-weight: 600 !important;
}
.tags-view-container .tags-view-wrapper .tags-view-item.active::before {
  display: none !important;
}
.tags-view-container .contextmenu { border-radius: 12px !important; }

/* ---------- 5. 内容区 ---------- */
.app-main {
  background: var(--bg-page) !important;
  padding: 16px 20px 24px !important;
}
.app-container { padding: 0 !important; }

/* ---------- 6. 搜索区卡片 ---------- */
.app-container > .el-form,
.app-container > form.el-form {
  background: var(--bg-card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-xl) !important;
  box-shadow: var(--sh-sm) !important;
  padding: 16px 18px 4px !important;
  margin-bottom: 14px !important;
}
.app-container > .el-form .el-form-item,
.app-container > form.el-form .el-form-item {
  margin-right: 18px !important;
  margin-bottom: 12px !important;
}
.app-container > .el-form .el-form-item__label,
.app-container > form.el-form .el-form-item__label {
  font-size: 12.5px !important;
  color: var(--ink-500) !important;
  font-weight: 500 !important;
  padding-right: 10px !important;
}

/* ---------- 7. 工具条 ---------- */
.app-container > .el-row.mb8,
.app-container > .mb8 {
  margin-bottom: 14px !important;
}
.app-container > .el-row.mb8 .el-col {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.app-container > .el-row.mb8 .el-button {
  margin-right: 8px !important;
  margin-bottom: 4px;
}

/* ---------- 8. 卡片 ---------- */
.el-card,
.stat-card,
.count-card,
.overview-card {
  border-radius: var(--r-xl) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--sh-sm) !important;
  background: var(--bg-card) !important;
  transition: transform .25s ease, box-shadow .25s ease !important;
}
.stat-card:hover,
.count-card:hover,
.overview-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--sh-md) !important;
}
.el-card__header { border-bottom: 1px solid var(--line) !important; }
.el-card .el-card__body { padding: 16px 18px !important; }

.stat-card .stat-card__label,
.count-card .count-card__label {
  font-size: 12.5px !important;
  color: var(--ink-500) !important;
  letter-spacing: .2px;
}
.stat-card__value,
.count-card__value,
.el-statistic__number {
  font-family: var(--font-num) !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: -.2px;
  font-weight: 500;
}

/* ---------- 9. 表格（核心：不截断 + 高密度） ---------- */
.el-table {
  --el-table-border-color: #eff3ee;
  --el-table-header-bg-color: #f3f5f1;
  --el-table-row-hover-bg-color: #f1f6f2;
  --el-table-bg-color: #ffffff;
  --el-table-tr-bg-color: #ffffff;
  font-size: 12.5px !important;
  border-radius: var(--r-lg) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--sh-sm) !important;
  overflow: hidden;
}

/* 普通表格：紧凑内边距，内容还是按列宽省略 */
.el-table .cell {
  line-height: 1.5 !important;
  padding: 0 4px !important;
  letter-spacing: -.2px;
}

/* 宽表格（案件列表）：列宽按内容走，20 位号码不截断，超出横向滚动 */
.el-table.ops-sticky table { table-layout: auto !important; }
.el-table.ops-sticky .cell {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
.el-table.ops-sticky .el-table__body .cell { font-variant-numeric: tabular-nums; }

/* 宽表格（案件列表）操作列吸附右侧：横向滚动时也点得到 */
.el-table.ops-sticky .el-table__header th.el-table__cell:last-child,
.el-table.ops-sticky .el-table__body td.el-table__cell:last-child {
  position: sticky !important;
  right: 0;
  z-index: 3;
  background: #fff !important;
  box-shadow: -10px 0 14px -12px rgba(20, 40, 30, .45);
}
.el-table.ops-sticky .el-table__header th.el-table__cell:last-child {
  background: var(--el-table-header-bg-color) !important;
  z-index: 4;
}
.el-table.ops-sticky .el-table__body tr:hover > td.el-table__cell:last-child {
  background: var(--el-table-row-hover-bg-color) !important;
}

.el-table th.el-table__cell {
  font-weight: 600 !important;
  color: var(--ink-500) !important;
  background: var(--el-table-header-bg-color) !important;
  font-size: 11.5px !important;
  letter-spacing: .2px;
  height: 40px !important;
  border-bottom: 1px solid var(--line) !important;
}
.el-table td.el-table__cell {
  padding: 8px 0 !important;
  border-bottom: 1px solid #f0f5f1 !important;
  color: var(--ink-700) !important;
  font-size: 12px !important;
}
.el-table__body tr:last-child td.el-table__cell { border-bottom: 0 !important; }
.el-table__body tr:hover > td.el-table__cell { background: var(--el-table-row-hover-bg-color) !important; }

.el-table--border::after,
.el-table--group::after,
.el-table::before { display: none !important; }

/* 操作列按钮 */
.el-table .el-button.is-link {
  padding: 2px 5px !important;
  margin-left: 0 !important;
  font-weight: 550 !important;
  font-size: 12px !important;
  border-radius: 7px;
  transition: background .16s ease, color .16s ease;
}
.el-table .el-button.is-link:hover { background: var(--brand-soft) !important; }
.el-table .el-button.is-link .el-icon { display: none; }
.el-table .el-button.is-link + .el-button.is-link { margin-left: 2px !important; }
.el-table .el-button.is-link.is-danger { color: #e5484d !important; }
.el-table .el-button.is-link.is-danger:hover { background: rgba(229, 72, 77, .09) !important; }

/* 空状态 */
.el-table__empty-text { color: var(--ink-400); font-size: 13px; }

/* 表格里的标签 */
.el-table .el-tag {
  border-radius: 7px !important;
  font-weight: 550;
  border: none !important;
}

/* ---------- 10. 按钮 ---------- */
.el-button {
  height: 34px;
  border-radius: var(--r-md) !important;
  font-weight: 550;
  border-color: var(--line-2);
  color: var(--ink-700);
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.el-button:hover { border-color: #b9cfc0; color: var(--brand); background: #f4f8f4; }
.el-button:active { transform: translateY(1px); }
.el-button--small { height: 30px; }

.el-button--primary:not(.is-link):not(.is-text):not(.is-plain) {
  background: var(--brand-grad) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 20px -12px rgba(47, 107, 79, .95);
}
.el-button--primary:not(.is-link):not(.is-text):not(.is-plain) span { color: #fff !important; }
.el-button--primary:not(.is-link):not(.is-text):not(.is-plain):hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 26px -12px rgba(47, 107, 79, 1);
}

/* plain 按钮（工具条） */
.el-button.is-plain {
  background: #fff !important;
  border-color: var(--line-2) !important;
  color: var(--ink-700) !important;
}
.el-button.is-plain:hover {
  border-color: #b9cfc0 !important;
  color: var(--brand) !important;
  background: #f4f8f4 !important;
}
.el-button--primary.is-plain {
  color: var(--brand-deep) !important;
  border-color: #c9d8ff !important;
  background: #f2f6ff !important;
}
.el-button--primary.is-plain:hover { background: #e8efff !important; }

/* 禁用态 */
.el-button.is-disabled,
.el-button.is-disabled:hover,
.el-button.is-disabled:focus {
  opacity: 1 !important;
  background-color: #eff3ef !important;
  border-color: #e8edf6 !important;
  color: #a7b3c7 !important;
  box-shadow: none !important;
}
.el-button.is-disabled span { color: #a7b3c7 !important; }

/* 文字按钮 */
.el-button.is-link,
.el-button.is-text {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  height: auto;
}
.el-button.is-link:hover,
.el-button.is-text:hover { background: transparent !important; filter: none !important; }

/* ---------- 11. 表单控件 ---------- */
.el-input__wrapper,
.el-select__wrapper,
.el-textarea__inner {
  border-radius: var(--r-md) !important;
  box-shadow: 0 0 0 1px var(--line-2) inset !important;
  background: #fbfcfe !important;
  transition: box-shadow .18s ease, background .18s ease;
}
.el-input__wrapper:hover,
.el-select__wrapper:hover {
  box-shadow: 0 0 0 1px #c3d2c6 inset !important;
  background: #fff !important;
}
.el-input__wrapper.is-focus,
.el-select__wrapper.is-focused {
  background: #fff !important;
  box-shadow: 0 0 0 1px var(--brand) inset, 0 0 0 3px rgba(47, 107, 79, .12) !important;
}
.el-input__inner { font-size: 13px !important; }
.el-input__wrapper { padding: 1px 11px !important; }

/* 日期区间 */
.el-date-editor .el-range-input { font-size: 12.5px; }

/* ---------- 12. 分页 ---------- */
.el-pagination {
  font-weight: 500;
  padding: 14px 2px 2px !important;
  justify-content: flex-end;
}
.el-pagination .btn-prev,
.el-pagination .btn-next,
.el-pagination .el-pager li {
  border-radius: 9px !important;
  min-width: 30px;
  height: 30px;
  line-height: 30px;
  font-size: 12.5px;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  margin: 0 2px;
  transition: all .16s ease;
}
.el-pagination .el-pager li:hover { border-color: #b9cfc0 !important; color: var(--brand) !important; }
.el-pagination .el-pager li.is-active {
  background: var(--brand-grad) !important;
  border-color: transparent !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 6px 16px -10px rgba(47, 107, 79, .95);
}
.el-pagination .el-select .el-input .el-input__wrapper { height: 30px !important; }
.el-pagination__total,
.el-pagination__jump { font-size: 12.5px; color: var(--ink-500); }

/* ---------- 13. 弹窗 / 抽屉 / 下拉 ---------- */
.el-dialog {
  border-radius: var(--r-xl) !important;
  box-shadow: var(--sh-pop) !important;
  overflow: hidden;
  border: 1px solid var(--line);
}
.el-dialog__header {
  padding: 18px 22px 12px !important;
  margin-right: 0 !important;
  border-bottom: 1px solid var(--line);
}
.el-dialog__title { font-size: 15px !important; font-weight: 650 !important; }
.el-dialog__body {
  padding: 18px 22px !important;
  max-height: calc(100vh - 230px);
  overflow-y: auto;
}
.el-dialog__footer { padding: 12px 22px 18px !important; border-top: 1px solid var(--line); background: #fff; }
.el-dialog .el-form-item__label { font-size: 12.5px !important; color: var(--ink-500) !important; }

.el-drawer { box-shadow: var(--sh-pop) !important; }
.el-drawer__header { margin-bottom: 16px !important; padding: 18px 20px 12px !important; border-bottom: 1px solid var(--line); }

.el-message { border-radius: 12px !important; border: 1px solid var(--line) !important; box-shadow: var(--sh-md) !important; }
.el-message-box { border-radius: var(--r-xl) !important; padding: 20px !important; }
.el-message-box__title { font-size: 15px !important; font-weight: 650 !important; }

.el-dropdown-menu,
.el-select-dropdown,
.el-picker-panel {
  border-radius: var(--r-lg) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--sh-pop) !important;
  padding: 6px !important;
}
.el-dropdown-menu__item,
.el-select-dropdown__item {
  border-radius: var(--r-sm) !important;
  font-size: 13px !important;
  margin: 1px 0;
}
.el-dropdown-menu__item:hover,
.el-select-dropdown__item.is-hovering { background: var(--brand-soft) !important; color: var(--brand-deep) !important; }

.el-popper.is-light { border-color: var(--line) !important; }

/* ---------- 14. 标签 / 徽标 ---------- */
.el-tag {
  border-radius: 7px !important;
  border: none !important;
  font-weight: 550;
  padding: 0 9px;
}

/* ---------- 15. 滚动条 ---------- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb {
  background: #d3dcea;
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: #aab8cf; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 16. 登录页 ---------- */
.login {
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(47, 107, 79, .26), transparent 60%),
    radial-gradient(760px 480px at 88% 92%, rgba(139, 92, 246, .18), transparent 62%),
    linear-gradient(135deg, #080e1c 0%, #0b1526 50%, #060b16 100%) !important;
}
.login-form,
.login-form .el-form-item,
.login-container { color: #dfe7e0; }

.login .el-card,
.login .login-form {
  background: rgba(255, 255, 255, .06) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 22px !important;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8) !important;
}
.login .el-input__wrapper {
  background: rgba(255, 255, 255, .07) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset !important;
}
.login .el-input__inner { color: #f1f5f9 !important; }
.login .el-form-item__label { color: #cbd5e1 !important; }
.login .el-button--primary {
  background: var(--brand-grad) !important;
  color: #fff !important;
  font-weight: 650 !important;
  box-shadow: 0 14px 34px -14px rgba(47, 107, 79, .95) !important;
}
.login .el-button--primary:hover { filter: brightness(1.06); }
.login .login-title,
.login h3,
.login .title { color: #f8fafc !important; letter-spacing: 1px; }

/* ---------- 17. 统计页 ---------- */
.el-segmented {
  border-radius: 11px !important;
  background: #eff3ee !important;
  padding: 3px;
}
.el-segmented__item { border-radius: 9px !important; font-size: 12.5px; }

/* ---------- 18. 动效 ---------- */
.app-main .router-view,
.app-main > div { animation: pageIn .32s cubic-bezier(.2, .7, .3, 1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 19. 响应式 ---------- */
@media (max-width: 1200px) {
  .app-main { padding: 12px 12px 20px !important; }
  .app-container > .el-form { padding: 12px 14px 2px !important; }
}

/* =========================================================
   v3 · 数据洞察带（仅案件管理页，由 import-fix.js 注入）
   ========================================================= */
.ci-wrap {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr) 288px;
  gap: 14px;
  margin-bottom: 16px;
  animation: ciIn .45s cubic-bezier(.2, .7, .3, 1);
}
@keyframes ciIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 980px) {
  .ci-wrap { grid-template-columns: 1fr; }
}

.ci-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 18px;
  box-shadow: var(--sh-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .28s ease, transform .28s ease, border-color .28s ease;
}
.ci-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
  border-color: #d6e2d9;
}
/* 顶部一道极淡的镜面高光，Liquid Glass 的暗示 */
.ci-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 60%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.ci-title {
  position: relative;
  font-size: 11.5px;
  letter-spacing: .8px;
  color: var(--ink-400);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.ci-title i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 107, 79, .12);
  display: inline-block;
}
/* 案件结构卡上的保单选择器 */
.ci-policy {
  margin-left: auto;
  height: 24px;
  max-width: 230px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 11.5px;
  font-family: inherit;
  letter-spacing: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .14);
  color: inherit;
  outline: none;
  cursor: pointer;
}
.ci-policy:hover { border-color: rgba(255, 255, 255, .5); }
.ci-policy option { color: #14201a; background: #fff; }

/* 多选保单：按钮 + 复选面板 */
.ci-policy-wrap { position: relative; margin-left: auto; }
.ci-policy-btn {
  height: 24px; padding: 0 10px; border-radius: 7px;
  font: inherit; font-size: 11.5px; letter-spacing: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .14); color: inherit;
  cursor: pointer; white-space: nowrap; max-width: 280px;
  overflow: hidden; text-overflow: ellipsis;
}
.ci-policy-btn:hover { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .22); }
.ci-policy-panel {
  position: absolute; right: 0; top: 30px; z-index: 4000;
  display: none; min-width: 250px; max-height: 340px; overflow: auto;
  background: #fff; color: #14201a; border-radius: 11px; padding: 6px;
  border: 1px solid rgba(20, 32, 26, .1);
  box-shadow: 0 22px 48px -20px rgba(12, 26, 18, .5);
  font-size: 12px; text-align: left;
}
.ci-policy-panel.show { display: block; }
.ci-policy-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 7px; cursor: pointer; white-space: nowrap;
}
.ci-policy-item:hover { background: #eef4ef; }
.ci-policy-item input { width: 14px; height: 14px; margin: 0; accent-color: #2F6B4F; cursor: pointer; }
.ci-policy-item .cnt { margin-left: auto; color: #6d7d74; font-size: 11px; }
.ci-policy-all { border-bottom: 1px solid #edf1ee; border-radius: 7px 7px 0 0; margin-bottom: 3px; padding-bottom: 8px; }
.ci-policy-foot { display: flex; gap: 8px; padding: 7px 8px 3px; border-top: 1px solid #edf1ee; margin-top: 4px; }
.ci-policy-foot button {
  flex: 1; height: 27px; border-radius: 7px; cursor: pointer;
  border: 1px solid #d8e0da; background: #fff; font: inherit; font-size: 12px; color: #3c4a43;
}
.ci-policy-foot button:hover { background: #f4f7f4; }
.ci-policy-foot button.primary { background: #2F6B4F; border-color: #2F6B4F; color: #fff; }
.ci-policy-foot button.primary:hover { filter: brightness(1.08); background: #2F6B4F; }

/* --- 环图卡 --- */
.ci-donut-row {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  flex: 1;
  min-height: 96px;
}
.ci-donut {
  width: 82px; height: 82px;
  border-radius: 50%;
  flex: 0 0 auto;
  position: relative;
  display: grid;
  place-items: center;
  background: conic-gradient(#d5dbe8 0 100%);
  transition: background .6s ease;
}
.ci-donut::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(20, 40, 30, .06);
}
.ci-donut b {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
}
.ci-donut small { position: relative; z-index: 1; font-size: 10px; color: var(--ink-400); margin-top: -2px; }
.ci-donut-txt { display: flex; flex-direction: column; }

.ci-kv { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ci-kv-row { display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--ink-500); }
.ci-kv-row b { font-size: 13.5px; color: var(--ink-900); font-variant-numeric: tabular-nums; font-weight: 650; }
.ci-kv-row em { font-style: normal; color: var(--ink-400); font-size: 11px; }

.ci-legend { display: flex; gap: 14px; margin-top: 13px; position: relative; flex-wrap: wrap; }
.ci-legend span { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-500); }
.ci-legend i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }

/* --- 趋势柱状卡 --- */
.ci-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 112px;
  padding: 0 2px 18px;
  position: relative;
  flex: 1;
  margin-top: auto;
  margin-bottom: auto;
}
.ci-bars::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 18px;
  height: 1px; background: var(--line);
}
.ci-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  position: relative;
  gap: 6px;
}
.ci-bar {
  width: 100%;
  max-width: 56px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #9CC4AC 0%, #3F8563 60%, #2F6B4F 100%);
  position: relative;
  min-height: 4px;
  transition: filter .2s ease, transform .2s ease;
  box-shadow: 0 -1px 0 rgba(255,255,255,.6) inset;
}
.ci-bar.zero {
  background: repeating-linear-gradient(45deg, #dde5de, #dde5de 3px, transparent 3px, transparent 6px);
  border: 1px solid #dde5de;
  border-radius: 4px;
}
.ci-bar-col:hover .ci-bar { filter: brightness(1.08); transform: scaleY(1.02); transform-origin: bottom; }
.ci-bar-val {
  font-size: 11px;
  font-weight: 620;
  color: var(--ink-700);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ci-bar-lbl {
  position: absolute;
  bottom: -17px;
  font-size: 10.5px;
  color: var(--ink-400);
  white-space: nowrap;
}

/* --- 待办卡 --- */
.ci-todo { display: flex; flex-direction: column; gap: 9px; position: relative; }
.ci-todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-radius: 11px;
  background: #f4f7f3;
  border: 1px solid transparent;
  transition: all .2s ease;
  cursor: default;
}
.ci-todo-item:hover { background: #eef5f0; border-color: #d8e7dc; }
.ci-todo-name { font-size: 12px; color: var(--ink-700); display: flex; align-items: center; gap: 7px; }
.ci-todo-name i { width: 6px; height: 6px; border-radius: 50%; }
.ci-todo-num {
  font-size: 15px; font-weight: 700; color: var(--ink-900);
  font-variant-numeric: tabular-nums; letter-spacing: -.3px;
}
.ci-todo-num.warn { color: #c2740a; }
.ci-todo-num.danger { color: #dc2626; }

.ci-skeleton {
  height: 118px;
  border-radius: 18px;
  background: linear-gradient(90deg, #eff3ef 25%, #eef2fa 37%, #eff3ef 63%);
  background-size: 400% 100%;
  animation: ciShimmer 1.4s ease infinite;
  border: 1px solid var(--line);
}
@keyframes ciShimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* =========================================================
   v4 · 多彩分区：黄卡 / 深色卡，打破全白卡片的平淡
   ========================================================= */
.ci-card { border-radius: 20px; }

/* --- 关键指标卡（深绿，全场唯一一处 accent 填充） --- */
.ci-card.ci-yellow {
  background: linear-gradient(150deg, #2F6B4F 0%, #255740 55%, #1B4231 100%);
  border-color: #1B4231;
  box-shadow: 0 1px 2px rgba(20, 40, 30, .14), 0 18px 40px -26px rgba(47, 107, 79, .75);
}
.ci-card.ci-yellow::before { display: none; }
.ci-card.ci-yellow:hover {
  box-shadow: 0 2px 4px rgba(20, 40, 30, .16), 0 24px 52px -26px rgba(47, 107, 79, .92);
  border-color: #16382A;
}
.ci-card.ci-yellow .ci-title { color: rgba(236, 255, 245, .64); }
.ci-card.ci-yellow .ci-title i { background: #A8E0C2; box-shadow: 0 0 0 3px rgba(168, 224, 194, .18); }
.ci-card.ci-yellow .ci-kv-row { color: rgba(236, 255, 245, .74); }
.ci-card.ci-yellow .ci-kv-row b { color: #F3FFF9; font-size: 17px; }
.ci-card.ci-yellow .ci-kv-row em { color: rgba(236, 255, 245, .55); }
.ci-card.ci-yellow .ci-legend span { color: rgba(236, 255, 245, .74); }
.ci-card.ci-yellow .ci-legend i { box-shadow: 0 0 0 1px rgba(0, 0, 0, .18) inset; }
.ci-card.ci-yellow .ci-donut::after { background: #275B45; box-shadow: inset 0 1px 4px rgba(0, 0, 0, .26); }
.ci-card.ci-yellow .ci-donut b { color: #F3FFF9; font-size: 19px; }
.ci-card.ci-yellow .ci-donut small { color: rgba(236, 255, 245, .6); }

/* --- 深色卡 --- */
.ci-card.ci-dark {
  background: linear-gradient(160deg, #1D2129 0%, #12151B 60%, #0D1015 100%);
  border-color: #2A2F3A;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 20px 44px -28px rgba(0, 0, 0, .9);
}
.ci-card.ci-dark::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 55%);
}
.ci-card.ci-dark:hover {
  border-color: #3A4150;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 26px 54px -28px rgba(0, 0, 0, 1);
}
.ci-card.ci-dark .ci-title { color: rgba(255, 255, 255, .42); }
.ci-card.ci-dark .ci-title i { background: #FF8A3D; box-shadow: 0 0 0 3px rgba(255, 138, 61, .16); }
.ci-card.ci-dark .ci-todo-item {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .04);
}
.ci-card.ci-dark .ci-todo-item:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .10);
}
.ci-card.ci-dark .ci-todo-name { color: rgba(255, 255, 255, .68); }
.ci-card.ci-dark .ci-todo-num { color: #FFFFFF; font-size: 17px; }
.ci-card.ci-dark .ci-todo-num.warn { color: #FFB020; }
.ci-card.ci-dark .ci-todo-num.danger { color: #FF6B6B; }

/* --- 趋势卡里的柱子换成深色系，和白卡形成对比 --- */
.ci-card.ci-trend .ci-bar {
  background: linear-gradient(180deg, #4C5570 0%, #262C3A 100%);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .18) inset;
}
.ci-card.ci-trend .ci-bar.zero {
  background: repeating-linear-gradient(45deg, #dfe7e1, #dfe7e1 3px, transparent 3px, transparent 6px);
  border-color: #dfe7e1;
}
.ci-card.ci-trend .ci-bars::after { background: #E8EDF6; }
.ci-card.ci-trend .ci-bar-val { color: #2A3142; font-weight: 700; }

/* --- 大数字排版：数值更醒目 --- */
.ci-card .ci-todo-num,
.ci-card .ci-kv-row b { letter-spacing: -.6px; }

/* ---------- 右上角主题切换按钮 ---------- */
.claim-theme-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 100%;
  cursor: pointer;
  color: #6d7d74;
  transition: color .18s ease, background .18s ease;
}
.claim-theme-btn:hover { color: var(--brand); }
.claim-theme-btn svg { width: 17px; height: 17px; display: block; }
html.dark .claim-theme-btn { color: #8B92A0; }
html.dark .claim-theme-btn:hover { color: #FB923C; }

/* ---------- 浅色模式：表格强制回浅色（防止深色规则残留） ---------- */
html:not(.dark) .el-table,
html:not(.dark) .el-table__inner-wrapper,
html:not(.dark) .el-table__body-wrapper,
html:not(.dark) .el-table__header-wrapper,
html:not(.dark) .el-table__body,
html:not(.dark) .el-table__header,
html:not(.dark) .el-table table,
html:not(.dark) .el-table tbody,
html:not(.dark) .el-table thead {
  background-color: #ffffff !important;
}
html:not(.dark) .el-table tr,
html:not(.dark) .el-table td.el-table__cell,
html:not(.dark) .el-table .el-table__row {
  background-color: #ffffff !important;
  color: #3c4a43 !important;
}
html:not(.dark) .el-table th.el-table__cell {
  background-color: #f3f5f1 !important;
  color: #6d7d74 !important;
}
html:not(.dark) .el-table__body tr:hover > td.el-table__cell {
  background-color: #f1f6f2 !important;
}
html:not(.dark) .el-table .cell { color: inherit !important; }

/* =========================================================
   v7 · 浅色模式修正 + 导航图标美化
   ========================================================= */
/* 浅色下「当前待办」卡改成白卡（深色另有 html.dark 规则） */
.ci-card.ci-dark {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.ci-card.ci-dark::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 62%);
}
.ci-card.ci-dark:hover { border-color: #d6e2d9; }
.ci-card.ci-dark .ci-title { color: var(--ink-400); }
.ci-card.ci-dark .ci-title i { background: #2F6B4F; box-shadow: 0 0 0 3px rgba(47, 107, 79, .14); }
.ci-card.ci-dark .ci-todo-item { background: #f4f7f3; border-color: transparent; }
.ci-card.ci-dark .ci-todo-item:hover { background: #eef5f0; border-color: #d8e7dc; }
.ci-card.ci-dark .ci-todo-name { color: var(--ink-700); }
.ci-card.ci-dark .ci-todo-num { color: var(--ink-900); font-size: 17px; }
.ci-card.ci-dark .ci-todo-num.warn { color: #c2740a; }
.ci-card.ci-dark .ci-todo-num.danger { color: #dc2626; }

/* 导航右侧图标：统一成 40×40 圆角按钮 */
.navbar .right-menu {
  display: flex;
  align-items: center;
  height: 100%;
}
.navbar .right-menu .right-menu-item {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0 2px;
  border-radius: 11px;
  font-size: 17px;
  color: #6d7d74;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.navbar .right-menu .right-menu-item:hover {
  background: #eff3ee;
  color: #2563eb;
  transform: translateY(-1px);
}
.navbar .right-menu .right-menu-item svg,
.navbar .right-menu .right-menu-item .svg-icon {
  width: 17px;
  height: 17px;
}
/* 头像按钮 */
.navbar .avatar-container {
  display: flex;
  align-items: center;
  padding: 0 8px 0 10px;
  height: 38px;
  margin-left: 4px;
  border-radius: 11px;
  transition: background .18s ease;
}
.navbar .avatar-container:hover { background: #eff3ee; }
.navbar .avatar-container .avatar-wrapper { display: flex; align-items: center; gap: 5px; }
.navbar .avatar-container .user-avatar { width: 28px; height: 28px; border-radius: 9px; object-fit: cover; }
.navbar .avatar-container .user-nickname { font-size: 13px; font-weight: 600; color: #3c4a43; }
/* 折叠按钮 */
.navbar .hamburger-container {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #6d7d74;
}
.navbar .hamburger-container:hover { background: #eff3ee; color: #2563eb; }

/* ---------- 登录页：深色背景 + 网格 + 光斑 ---------- */
.login {
  background:
    radial-gradient(1100px 560px at 18% 8%, rgba(47, 107, 79, .20), transparent 62%),
    radial-gradient(900px 480px at 88% 88%, rgba(59, 130, 246, .16), transparent 60%),
    linear-gradient(140deg, #07090c 0%, #0d1117 52%, #05070a 100%) !important;
  position: relative;
  overflow: hidden;
}
.login::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, #000 18%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 42%, #000 18%, transparent 72%);
}
.login::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  top: -160px;
  right: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 79, .26), transparent 64%);
  filter: blur(36px);
  pointer-events: none;
}
.login .login-form {
  position: relative;
  z-index: 2;
  background: rgba(20, 22, 25, .72) !important;
  backdrop-filter: saturate(160%) blur(22px);
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 24px !important;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9) !important;
  padding: 34px 32px 22px !important;
}
.login .login-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
}
.login .login-form .el-form-item { margin-bottom: 22px; }
.login .el-input__wrapper {
  background: rgba(255, 255, 255, .05) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset !important;
  border-radius: 12px !important;
  height: 44px;
}
.login .el-input__wrapper.is-focus {
  box-shadow: 0 0 0 1px #2F6B4F inset, 0 0 0 3px rgba(47, 107, 79, .18) !important;
}
.login .el-input__inner { color: #F3F4F6 !important; font-size: 14px; }
.login .el-form-item__label { color: #9AA0A6 !important; font-size: 13px !important; }
.login .el-button--primary {
  height: 44px;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #3F8563 0%, #2F6B4F 55%, #255740 100%) !important;
  color: #fff !important;
  font-weight: 650 !important;
  letter-spacing: 1px;
  box-shadow: 0 16px 36px -14px rgba(47, 107, 79, .95) !important;
}
.login .login-title,
.login .title,
.login h3 { color: #F8FAFC !important; letter-spacing: 2px; }
.login .el-checkbox__label { color: #9AA0A6 !important; }

/* =========================================================
   v7 · 统计页数据图表（由 import-fix.js 注入）
   ========================================================= */
.sc-wrap {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 14px;
  margin: 0 0 16px;
  animation: ciIn .45s cubic-bezier(.2, .7, .3, 1);
}
@media (max-width: 1180px) { .sc-wrap { grid-template-columns: 1fr; } }

.sc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 18px;
  box-shadow: var(--sh-sm);
  position: relative;
  overflow: hidden;
}
.sc-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 60%;
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0));
  pointer-events: none;
}
html.dark .sc-card {
  background: #141619;
  border-color: rgba(255, 255, 255, .07);
}
html.dark .sc-card::before {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0));
}
.sc-title {
  position: relative;
  font-size: 11.5px; letter-spacing: .8px; font-weight: 600;
  color: var(--ink-400); margin-bottom: 14px;
  display: flex; align-items: center; gap: 7px;
}
.sc-title i { width: 5px; height: 5px; border-radius: 50%; background: #2F6B4F; box-shadow: 0 0 0 3px rgba(249,115,22,.14); }

/* 环图 */
.sc-donut-row { display: flex; align-items: center; gap: 18px; position: relative; }
.sc-donut {
  width: 96px; height: 96px; border-radius: 50%; flex: 0 0 auto;
  position: relative; display: grid; place-items: center;
  background: conic-gradient(#2F6B4F 0 100%);
}
.sc-donut::after {
  content: ""; position: absolute; inset: 12px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 1px 4px rgba(16,24,40,.08);
}
html.dark .sc-donut::after { background: #141619; box-shadow: inset 0 1px 4px rgba(0,0,0,.7); }
.sc-donut b { position: relative; z-index: 1; font-size: 19px; font-weight: 720; color: var(--ink-900); letter-spacing: -.5px; }
.sc-legend { display: flex; flex-direction: column; gap: 9px; }
.sc-legend-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-500); }
.sc-legend-row i { width: 8px; height: 8px; border-radius: 3px; flex: 0 0 auto; }
.sc-legend-row b { color: var(--ink-900); font-weight: 650; font-variant-numeric: tabular-nums; }
.sc-legend-row span { margin-left: auto; color: var(--ink-400); font-size: 11.5px; }

/* 横向条形 */
.sc-bar-list { display: flex; flex-direction: column; gap: 10px; position: relative; }
.sc-bar-row { display: grid; grid-template-columns: 62px 1fr 40px; align-items: center; gap: 10px; }
.sc-bar-name { font-size: 12px; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-bar-track { height: 8px; border-radius: 999px; background: rgba(120,130,150,.12); overflow: hidden; }
.sc-bar-fill {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #A8C9B6, #2F6B4F);
  transition: width .6s cubic-bezier(.2,.7,.3,1);
}
.sc-bar-num { font-size: 12px; color: var(--ink-500); text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* 双柱趋势 */
.sc-group-bars { display: flex; align-items: flex-end; gap: 12px; height: 120px; padding: 0 2px 20px; position: relative; }
.sc-group-bars::after { content: ""; position: absolute; left: 0; right: 0; bottom: 20px; height: 1px; background: var(--line); }
.sc-group { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 100%; position: relative; }
.sc-group-bar {
  width: 14px; border-radius: 5px 5px 2px 2px; min-height: 3px;
  transition: filter .2s ease;
}
.sc-group-bar.report { background: linear-gradient(180deg, #A8C9B6, #2F6B4F); }
.sc-group-bar.closed { background: linear-gradient(180deg, #C7D2E5, #8FA3C4); }
html.dark .sc-group-bar.closed { background: linear-gradient(180deg, #4B5563, #2F3644); }
.sc-group-lbl {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  font-size: 10.5px; color: var(--ink-400); white-space: nowrap;
}
.sc-group-legend { display: flex; gap: 14px; margin-top: 12px; position: relative; }
.sc-group-legend span { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-500); }
.sc-group-legend i { width: 8px; height: 8px; border-radius: 3px; }

/* v7.1 导航右侧再收紧，给头像留位置 */
.navbar .right-menu .right-menu-item {
  width: 34px !important;
  height: 34px !important;
  margin: 0 1px !important;
  font-size: 16px !important;
}
.navbar .right-menu .right-menu-item svg,
.navbar .right-menu .right-menu-item .svg-icon {
  width: 16px !important;
  height: 16px !important;
}
.navbar .avatar-container {
  padding: 0 4px !important;
  min-width: 0;
}
.navbar .avatar-container .user-nickname {
  white-space: nowrap;
  font-size: 12.5px !important;
}
.navbar .avatar-container .user-avatar {
  width: 26px !important;
  height: 26px !important;
}

/* ---------- 登录页品牌头 + 背景增强 ---------- */
.login::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(115deg, transparent 42%, rgba(47, 107, 79, .10) 50%, transparent 58%);
  background-size: 58px 58px, 58px 58px, 100% 100%;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.login-brand .lb-logo {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #3F8563 0%, #2F6B4F 55%, #255740 100%);
  box-shadow: 0 12px 28px -12px rgba(47, 107, 79, .95);
  flex: 0 0 auto;
}
.login-brand .lb-logo svg { width: 24px; height: 24px; }
.login-brand .lb-text { display: flex; flex-direction: column; gap: 3px; }
.login-brand .lb-text b {
  color: #F8FAFC;
  font-size: 17px;
  font-weight: 680;
  letter-spacing: .6px;
}
.login-brand .lb-text span {
  color: #8B92A0;
  font-size: 11.5px;
  letter-spacing: .4px;
}

/* =========================================================
   v8 · 右上角用户区重做（胶囊式）+ 导航精简
   ========================================================= */
.navbar .avatar-container.claim-avatar {
  display: flex !important;
  align-items: center;
  height: 40px;
  padding: 0 10px 0 5px !important;
  margin-left: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease;
}
.navbar .avatar-container.claim-avatar:hover {
  background: #eef0ec;
  border-color: var(--line);
}
.navbar .avatar-container.claim-avatar .avatar-wrapper {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 !important;
  height: auto !important;
}
.navbar .avatar-container.claim-avatar .user-avatar {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line), 0 4px 10px -4px rgba(20, 40, 30, .35);
  margin: 0 !important;
}
.navbar .avatar-container.claim-avatar .user-nickname {
  font-size: 13px !important;
  font-weight: 600;
  color: var(--ink-700) !important;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}
.navbar .avatar-container.claim-avatar .el-icon,
.navbar .avatar-container.claim-avatar .caret-icon {
  color: var(--ink-400) !important;
  margin-left: 1px !important;
  font-size: 12px !important;
}

/* 深色模式 */
html.dark .navbar .avatar-container.claim-avatar:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .08);
}
html.dark .navbar .avatar-container.claim-avatar .user-avatar {
  border-color: #1B1E24;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 4px 10px -4px rgba(0, 0, 0, .8);
}
html.dark .navbar .avatar-container.claim-avatar .user-nickname {
  color: #D9DDE5 !important;
}

/* v8 · 浅色模式下「近 6 个月报案量」柱子改成暖橙色（原来深墨蓝太突兀） */
.ci-card.ci-trend .ci-bar {
  background: linear-gradient(180deg, #C3DACB 0%, #3F8563 55%, #2F6B4F 100%);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .5) inset;
}
.ci-card.ci-trend .ci-bar.zero {
  background: repeating-linear-gradient(45deg, rgba(47, 107, 79, .22), rgba(47, 107, 79, .22) 3px, transparent 3px, transparent 6px);
  border: 1px solid rgba(47, 107, 79, .25);
}
.ci-card.ci-trend .ci-bars::after { background: #eaf0eb; }
.ci-card.ci-trend .ci-bar-val { color: #2A3142; font-weight: 700; }
.ci-card.ci-trend .ci-bar-lbl { color: #8a9a91; }

/* v8.1 头像区不再被挤裁 */
.navbar .right-menu { padding-right: 8px; }
.navbar .avatar-container.claim-avatar {
  flex-shrink: 0 !important;
  min-width: 96px;
  overflow: visible !important;
}
.navbar .avatar-container.claim-avatar .avatar-wrapper {
  overflow: visible !important;
  flex-shrink: 0;
}
.navbar .avatar-container.claim-avatar .user-nickname {
  max-width: none !important;
  overflow: visible !important;
  flex-shrink: 0;
}

/* v8.2 强制隐藏框架自带的主题/字号按钮 */
.navbar .right-menu > .nav-hide { display: none !important; }

/* v8.3 头像区强制对齐（不依赖类名，直接压 img / el-avatar） */
.navbar .avatar-container { display: flex !important; align-items: center !important; }
.navbar .avatar-container .avatar-wrapper {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  padding: 0 !important;
  gap: 9px;
}
.navbar .avatar-container img {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  margin: 0 !important;
  display: block !important;
  vertical-align: middle !important;
}
.navbar .avatar-container .el-avatar {
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  flex: 0 0 30px !important;
}
.navbar .avatar-container .user-nickname {
  line-height: 1 !important;
  white-space: nowrap;
  align-self: center;
}

/* v8.4 头像垂直居中修正 */
.navbar .avatar-container.claim-avatar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  max-height: 56px !important;
  min-height: 40px !important;
  padding: 0 12px 0 6px !important;
  margin: 0 !important;
  line-height: normal !important;
  vertical-align: middle !important;
}
.navbar .avatar-container.claim-avatar .avatar-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: normal !important;
}
.navbar .avatar-container.claim-avatar .avatar-wrapper > * {
  align-self: center !important;
}
.navbar .avatar-container.claim-avatar img {
  display: block !important;
  margin: 0 !important;
  transform: none !important;
  border: 1.5px solid #fff !important;
  box-shadow: 0 0 0 1px rgba(20, 40, 30, .10) !important;
}
html.dark .navbar .avatar-container.claim-avatar img {
  border-color: #23262D !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16) !important;
}

/* v8.5 用户名与头像同高对齐 */
.navbar .avatar-container.claim-avatar .user-nickname {
  display: inline-flex !important;
  align-items: center !important;
  height: 30px !important;
  line-height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 13px !important;
  align-self: center !important;
}
.navbar .avatar-container.claim-avatar .avatar-wrapper {
  align-items: center !important;
}
.navbar .avatar-container.claim-avatar .avatar-wrapper > i,
.navbar .avatar-container.claim-avatar .avatar-wrapper > .el-icon {
  display: inline-flex !important;
  align-items: center !important;
  height: 30px !important;
  line-height: 30px !important;
}

/* v8.6 统一字母头像 */
.claim-avatar-letter {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3F8563 0%, #2F6B4F 55%, #255740 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(47, 107, 79, .25), 0 6px 14px -6px rgba(47, 107, 79, .9);
  user-select: none;
}

/* =========================================================
   数字字体统一：DIN Next LT Pro
   表格、统计、图表里的数字全部走 DIN；中文自动回落到雅黑
   ========================================================= */
.el-table td.el-table__cell,
.el-table .cell,
.el-pagination,
.el-pagination__total,
.el-pagination__jump,
.ci-donut b,
.ci-kv-row b,
.ci-bar-val,
.ci-todo-num,
.ci-legend span,
.sc-legend-row b,
.sc-bar-num,
.sc-kpi-num,
.stat-card__value,
.count-card__value,
.el-statistic__number {
  font-family: var(--font-num) !important;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* DIN 偏窄，表格数字略放大一点更好读 */
.el-table td.el-table__cell { font-size: 12.5px !important; letter-spacing: .1px; }
.el-table td.el-table__cell .cell { font-size: 12.5px !important; }
