﻿/* ============================================================
   页面样式：首页 / 案件列表 / 案件详情各子页
   ============================================================ */

/* ---------- 首页 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
  padding: 34px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #0f3a72 0%, #17509b 46%, #2b7ce5 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(16, 60, 120, 0.22);
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -110px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  letter-spacing: 1px;
}

.hero h1 {
  margin: 14px 0 10px;
  font-size: 28px;
  letter-spacing: 1px;
  line-height: 1.4;
}

.hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.hero-actions .btn {
  height: 38px;
  padding: 0 22px;
}

.btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--brand-700);
}

.btn-light:hover {
  background: #eef5ff;
  color: var(--brand-700);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.hero-panel {
  position: relative;
  z-index: 1;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.hero-panel h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-flow {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hero-flow li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-flow li i {
  flex: none;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-700);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.hero-flow li.done i {
  background: #ffd166;
  color: #7a4b00;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-700);
  background: var(--brand-50);
}

.stat-icon.orange {
  color: var(--orange-dark);
  background: var(--orange-50);
}

.stat-icon.green {
  color: var(--green);
  background: var(--green-50);
}

.stat-icon.purple {
  color: var(--purple);
  background: var(--purple-50);
}

.stat-card .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-900);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-3);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.home-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fbfcfe;
  color: var(--text);
}

.quick-item:hover {
  border-color: var(--brand-100);
  background: var(--brand-50);
  color: var(--brand-700);
}

.quick-item .quick-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-item .quick-no {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-600);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.quick-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.quick-item small {
  color: var(--text-3);
  font-size: 11px;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cap-card {
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fafcff);
}

.cap-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--brand-900);
  margin-bottom: 6px;
}

.cap-card h4 span {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.cap-card p {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.8;
}

/* ---------- 案件列表 ---------- */
.filter-card {
  margin-bottom: 14px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 18px;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.case-name-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 240px;
}

.case-name-cell strong {
  color: var(--brand-700);
  font-size: 13px;
}

.case-name-cell small {
  color: var(--text-3);
  font-size: 11px;
}

.table-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- 案件详情 ---------- */
.case-head {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.case-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.case-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 21px;
  font-weight: 700;
  color: var(--brand-900);
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.case-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12px;
  color: var(--text-3);
}

.case-meta b {
  color: var(--text-2);
  font-weight: 400;
}

.detail-tabs {
  overflow: hidden;
}

.tab-content {
  padding: 18px 20px 24px;
}

.tab-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 16px;
}

/* 流程步骤条 */
.stepper {
  display: flex;
  padding: 6px 4px 2px;
  overflow-x: auto;
}

.step {
  position: relative;
  flex: 1;
  min-width: 118px;
  padding-top: 30px;
  text-align: center;
}

.step::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  right: 50%;
  height: 2px;
  background: var(--line);
}

.step::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  right: 0;
  height: 2px;
  background: var(--line);
}

.step:first-child::before,
.step:last-child::after {
  display: none;
}

.step .dot {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--text-3);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  z-index: 1;
}

.step .step-name {
  font-size: 12px;
  color: var(--text-2);
}

.step .step-time {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

.step.done::before,
.step.done::after {
  background: #a9cdf5;
}

.step.done .dot {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.step.done .step-name {
  color: var(--brand-700);
}

.step.active .dot {
  background: #fff;
  border-color: var(--orange);
  color: var(--orange-dark);
  box-shadow: 0 0 0 4px rgba(232, 131, 58, 0.15);
}

.step.active .step-name {
  color: var(--orange-dark);
  font-weight: 700;
}

.step.active::before {
  background: #a9cdf5;
}

/* 时间线 */
.timeline {
  position: relative;
  padding-left: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 16px 8px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b9c8dd;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #b9c8dd;
}

.timeline-item.active::before {
  background: var(--brand-600);
  box-shadow: 0 0 0 1px var(--brand-600);
}

.timeline-item strong {
  display: block;
  font-size: 13px;
  color: var(--text);
}

.timeline-item small {
  color: var(--text-3);
  font-size: 11px;
}

.timeline-item p {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

/* 文件管理 */
.file-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0 14px;
}

.file-toolbar .spacer {
  flex: 1;
}

.file-name {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 190px;
}

.file-name > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-review-flag {
  display: inline-block;
  margin-top: 4px;
  padding: 0 6px;
  height: 18px;
  line-height: 18px;
  border-radius: 9px;
  background: var(--orange-50);
  color: var(--orange-dark);
  font-size: 11px;
}

.file-name-edit {
  display: flex;
  align-items: stretch;
}

.file-name-edit.has-ext .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.file-name-ext {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 12px;
  white-space: nowrap;
}

/* 待处理文件表：深色表头 */
.pending-table thead th {
  background: var(--brand-800);
  color: #fff;
  text-align: center;
  border-bottom: 1px solid var(--brand-900);
}

.pending-table thead th.th-left {
  text-align: left;
}

.pending-table tbody td {
  vertical-align: middle;
  padding-top: 8px;
  padding-bottom: 8px;
}

.pending-table td.stage-cell {
  padding-left: 16px;
  padding-right: 16px;
}

.file-name-link {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
}

.file-name-link:hover > span {
  color: var(--brand-600);
}

.type-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.type-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-2);
}

.type-inline .stage-btn {
  width: 30px;
  height: 30px;
}

.stage-cell {
  vertical-align: middle;
}

.stage-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 36px;
}

.stage-stamp {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 74px;
  min-height: 32px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.stage-stamp b {
  font-weight: 400;
  font-size: 11px;
  color: var(--text-3);
}

.stage-stamp i {
  font-style: normal;
  font-size: 12px;
  color: var(--text-2);
}

.stage-stamp .stage-empty {
  font-style: normal;
  font-size: 12px;
  color: var(--text-3);
}

.stage-btn {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--text-3);
  padding: 0;
  transition: all 0.15s ease;
}

/* OCR 人工审核状态角标 */
.stage-btn.is-reviewed::after,
.stage-btn.is-unreviewed::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid #fff;
}

.stage-btn.is-reviewed::after {
  background: var(--green);
}

.stage-btn.is-unreviewed::after {
  background: var(--orange);
}

.stage-btn::before {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: -2px;
}

.stage-btn:hover:not(:disabled) {
  border-color: var(--brand-500);
  background: var(--brand-50);
  color: var(--brand-600);
}

.stage-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.stage-btn.is-done {
  color: var(--green);
  border-color: #bfe4d2;
  background: var(--green-50);
}

.stage-btn.is-warn {
  color: var(--orange-dark);
  border-color: #f2d0b4;
  background: var(--orange-50);
}

.stage-btn.is-error {
  color: var(--red);
  border-color: #f2c2c2;
  background: var(--red-50);
}

.stage-btn.is-running {
  color: var(--brand-600);
  border-color: var(--brand-100);
  background: var(--brand-50);
}

.stage-btn.is-log {
  color: var(--brand-700);
}

.stage-btn.is-config {
  color: var(--brand-600);
}

.row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.row-actions .processing-text {
  font-size: 12px;
  color: var(--orange-dark);
}

/* 文件处理公共菜单 */
.modal-mask:has(.modal-workspace) {
  padding-top: 4vh;
}

.modal.modal-workspace {
  width: min(1440px, calc(100vw - 48px));
}

.modal-workspace .modal-head h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-workspace .modal-body {
  max-height: 76vh;
  padding: 12px 14px;
}

.ws {
  display: grid;
  grid-template-columns: minmax(520px, 58%) minmax(0, 1fr);
  gap: 14px;
  min-height: 540px;
}

.ws-preview {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  height: 68vh;
  min-height: 480px;
  max-height: 780px;
}

.ws-pdf {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.ws-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: 68vh;
  overflow-y: auto;
  padding-right: 4px;
}

.ws-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.ws-tab {
  position: relative;
  padding: 0 2px 6px;
  border: 0;
  background: none;
  color: var(--text-2);
  font-size: 13px;
}

.ws-tab.active {
  color: var(--brand-600);
  font-weight: 700;
}

.ws-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 2px;
  background: var(--brand-600);
}

.ws-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ws-block {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.ws-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ws-block-head h4 {
  font-size: 13px;
  color: var(--brand-900);
}

.ws-block-body {
  font-size: 12px;
  color: var(--text-2);
}

.ws-sep {
  height: 2px;
  margin: 14px 0;
  background: var(--orange);
  opacity: 0.45;
}

.ws-status-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ws-time {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.ws-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.ws-check-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ws-check-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line-2);
}

.ws-check-list li:last-child {
  border-bottom: 0;
}

.ws-check-list span {
  color: var(--text-3);
}

.ws-check-list b {
  color: var(--text);
  font-weight: 600;
}

.ws-review-state {
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--orange-dark);
}

.ws-run-no {
  padding: 1px 8px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 11px;
}

.ws-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.ws-progress .progress {
  flex: 1;
}

.ws-progress > span {
  min-width: 38px;
  text-align: right;
  font-size: 12px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.ws-logs {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-2);
}

.ws-logs summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--brand-600);
  user-select: none;
}

.ws-logs .stage-log-list {
  margin-top: 10px;
}

.ws-version-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 700;
}

.ws-version-list {
  display: flex;
  flex-direction: column;
}

.ws-version-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px dashed var(--line-2);
}

.ws-version-row:last-child {
  border-bottom: 0;
}

.ws-version-row.is-applied {
  background: var(--brand-50);
  border-radius: var(--radius);
}

.ws-version-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ws-version-main b {
  font-weight: 400;
  font-size: 12px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.ws-version-main small {
  font-size: 11px;
  color: var(--text-3);
}

.ws-version-actions {
  display: flex;
  gap: 10px;
}

/* OCR 结果审核工作台（内嵌 React 应用） */
.modal-mask:has(.modal-workbench) {
  padding-top: 3vh;
}

.modal.modal-workbench {
  display: flex;
  flex-direction: column;
  width: min(1560px, calc(100vw - 32px));
  height: 92vh;
  overflow: hidden;
}

.modal-workbench .modal-head {
  flex: 0 0 auto;
  padding: 10px 16px;
}

.modal-workbench .modal-head h3 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-workbench .modal-body {
  flex: 1;
  min-height: 0;
  max-height: none;
  padding: 0;
  overflow: hidden;
  line-height: normal;
}

.modal-workbench #wb-root {
  height: 100%;
}

.modal-workbench .modal-foot {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-top: 1px solid var(--line-2);
}

.wb-save-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  font-size: 12px;
  color: var(--text-3);
}

.wb-save-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.wb-save-state.is-pending .wb-save-dot {
  background: var(--orange);
}

.wb-save-state.is-saving .wb-save-dot {
  background: var(--brand-500);
  animation: wb-save-pulse 0.9s ease-in-out infinite;
}

.wb-save-state.is-error {
  color: var(--red);
}

.wb-save-state.is-error .wb-save-dot {
  background: var(--red);
}

@keyframes wb-save-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.wb-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-3);
  font-size: 13px;
}

.wb-loading.is-error {
  color: var(--red);
}

.ws-manual-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.ws-manual-panel[hidden] {
  display: none;
}

.ws-manual-panel .form-control {
  flex: 1;
  min-width: 0;
}

.stage-log-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
}

.stage-log-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--line-2);
  padding-left: 14px;
}

.stage-log-item {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line-2);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-2);
}

.stage-log-item:last-child {
  border-bottom: 0;
}

.stage-log-item::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-500);
}

.stage-log-time {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.file-badge {
  flex: none;
  width: 26px;
  height: 30px;
  border-radius: 3px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-size: 9px;
  line-height: 30px;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.file-badge.xls {
  color: var(--green);
  background: var(--green-50);
  border-color: #c9ecdb;
}

.file-badge.img {
  color: var(--purple);
  background: var(--purple-50);
  border-color: #ded7fb;
}

.file-badge.doc {
  color: #2b6cb0;
  background: #eaf2fd;
  border-color: #cfe1f7;
}

.file-status {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 96px;
}

.file-select {
  width: 14px;
  height: 14px;
  accent-color: var(--brand-600);
  cursor: pointer;
}

.file-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 2px 0;
  font-size: 12px;
  color: var(--text-3);
}

.file-summary b {
  color: var(--brand-700);
}

/* 信息抽取 */
.extract-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border: 1px solid var(--brand-100);
  border-radius: var(--radius);
  background: linear-gradient(100deg, #f2f8ff, #ffffff);
}

.extract-banner h3 {
  font-size: 16px;
  color: var(--brand-900);
  margin-bottom: 4px;
}

.extract-banner p {
  font-size: 12px;
  color: var(--text-3);
}

.extract-banner .extract-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kpi {
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.kpi .kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-900);
  font-variant-numeric: tabular-nums;
}

.kpi .kpi-value small {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
  margin-left: 4px;
}

.kpi .kpi-label {
  font-size: 12px;
  color: var(--text-3);
}

.confidence {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.confidence .bar {
  flex: 1;
  height: 5px;
  background: #e8edf6;
  border-radius: 4px;
  overflow: hidden;
}

.confidence .bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--green);
}

.confidence .bar i.mid {
  background: var(--orange);
}

.confidence span {
  font-size: 12px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

/* 归档整理 */
.archive-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
}

.archive-tree {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
}

.archive-tree .tree-head {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-2);
}

.tree-list li {
  border-bottom: 1px solid var(--line-2);
}

.tree-list li:last-child {
  border-bottom: 0;
}

.tree-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}

.tree-node:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}

.tree-node.active {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--brand-600);
}

.tree-node .count {
  font-size: 11px;
  color: var(--text-3);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 7px;
}

.tree-node .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}

.check-item .check-mark {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green);
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  font-weight: 700;
}

.check-item .check-mark.warn {
  background: var(--orange-50);
  color: var(--orange-dark);
}

.check-item small {
  display: block;
  color: var(--text-3);
  font-size: 11px;
}

.archive-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.archive-tip {
  font-size: 12px;
  color: var(--text-3);
}

/* 抽屉式预览 */
.preview-doc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  padding: 22px;
  text-align: center;
}

.preview-doc .preview-icon {
  width: 62px;
  height: 70px;
  margin: 0 auto 12px;
  border: 1px solid var(--brand-100);
  border-radius: 4px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 12px;
  line-height: 70px;
  font-weight: 700;
}

.preview-doc h4 {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
  word-break: break-all;
}

.preview-lines {
  margin: 18px auto 0;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-lines i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #edf1f7;
}

.preview-lines i:nth-child(2) { width: 88%; }
.preview-lines i:nth-child(3) { width: 72%; }
.preview-lines i:nth-child(4) { width: 94%; }
.preview-lines i:nth-child(5) { width: 60%; }

/* 响应式 */
@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid-2 { grid-template-columns: 1fr; }
  .archive-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 24px; }
  .hero h1 { font-size: 22px; }
  .filter-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .tab-content { padding: 14px 14px 20px; }
}

/* ---------- 详情页补充 ---------- */
.head-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  font-size: 12px;
  color: var(--text-3);
}

.head-progress .progress {
  width: 90px;
}

.head-progress b {
  color: var(--brand-700);
  font-variant-numeric: tabular-nums;
}

.info-block {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.info-block h4 {
  font-size: 13px;
  color: var(--brand-900);
  margin-bottom: 6px;
}

.info-block p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.9;
}

.file-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--text-3);
}

.file-meta-grid b {
  color: var(--text-2);
  font-weight: 400;
}

/* ---------- 档案管理 ---------- */
.archive-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.archive-page-head h2 {
  font-size: 19px;
  color: var(--brand-900);
  letter-spacing: 0.5px;
}

.archive-page-head .sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-3);
}

.archive-page-head .sub b {
  color: var(--brand-700);
}

.archive-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 20px;
}

.archive-detail-head .case-title {
  margin-bottom: 8px;
}

.archive-table {
  min-width: 1200px;
}

/* ---------- 档案筛选与模板选择 ---------- */
.archive-filter-grid {
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1.7fr;
}

.date-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-range > span {
  flex: none;
  font-size: 12px;
  color: var(--text-3);
}

.date-range .form-control {
  flex: 1;
  min-width: 0;
}

.cascade-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cascade-trigger {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.cascade-trigger:hover {
  border-color: var(--brand-500);
}

#af-cascade-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cascade-arrow {
  flex: none;
  font-size: 11px;
  color: var(--text-3);
}

.cascade-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.cascade-group-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.cascade-group-title:hover {
  background: var(--surface-2);
}

.cascade-caret {
  font-size: 11px;
  color: var(--text-3);
}

.cascade-children {
  display: flex;
  flex-direction: column;
}

.cascade-children[hidden] {
  display: none;
}

.cascade-option-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cascade-option-row .cascade-option {
  flex: 1;
  min-width: 0;
}

.cascade-option-row .link-btn {
  flex: none;
  padding: 0 8px;
}

.cascade-option {
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  text-align: left;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}

.cascade-option:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}

.cascade-option.active {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 700;
}

.classify-hint {
  margin-top: 6px;
  font-size: 12px;
}

.classify-hint.ok {
  color: var(--green);
}

.classify-hint.bad {
  color: var(--red);
}

@media (max-width: 1180px) {
  .archive-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .archive-filter-grid {
    grid-template-columns: 1fr;
  }
}

.tpl-dims {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tpl-dim-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tpl-dim-row .tpl-dim-index {
  flex: none;
  width: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}

.tpl-dim-row .form-control {
  flex: 1;
}

.tpl-dim-row .tag {
  flex: none;
}

/* ---------- 卷宗材料清单 ---------- */
.material-table {
  min-width: 1100px;
}

.material-volume td {
  background: #e9f0fa;
  color: var(--brand-800);
  font-weight: 700;
  letter-spacing: 3px;
  padding: 10px 14px;
}

.material-group td {
  background: #f5f8fd;
  padding: 10px 14px;
}

.material-group td > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-700);
}

.material-group td > div span:last-child {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-3);
}

.material-group-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.material-volume-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
}

.material-add-btn {
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.row-actions .link-btn {
  padding: 3px 7px;
  border-radius: 4px;
}

.row-actions .link-btn:hover {
  background: var(--brand-50);
  text-decoration: none;
}

.row-actions .link-btn.danger:hover {
  background: var(--red-50);
}

.row-actions-divider {
  width: 1px;
  height: 12px;
  margin: 0 4px;
  background: var(--line);
}

.th-inline-btn {
  margin-left: 6px;
  padding: 0 4px;
  font-size: 11px;
}

.page-stale {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--orange-dark);
}

.page-stale::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.material-head-extra {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- 归档历史 ---------- */
.history-summary {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-2);
}

.diff-detail {
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-2);
}

.history-draft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--brand-100);
  border-radius: var(--radius);
  background: var(--brand-50);
  font-size: 12px;
  color: var(--text-2);
}

.history-draft b {
  margin-right: 8px;
  color: var(--brand-700);
}

.restore-notice {
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid var(--brand-100);
  border-radius: var(--radius);
  background: var(--brand-50);
  font-size: 12px;
  color: var(--brand-700);
}

.mode-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.mode-btn {
  padding: 4px 12px;
  border: 0;
  background: #fff;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
}

.mode-btn + .mode-btn {
  border-left: 1px solid var(--line);
}

.mode-btn:hover {
  color: var(--brand-600);
}

.mode-btn.active {
  background: var(--brand-600);
  color: #fff;
}

.material-dimension-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
}

.dimension-btn {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  text-align: left;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s ease;
}

.dimension-btn small {
  font-size: 10px;
  color: var(--text-3);
}

.dimension-btn:hover {
  border-color: var(--brand-100);
  color: var(--brand-700);
}

.dimension-btn.active {
  border-color: var(--brand-600);
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 700;
}

.dimension-btn.active small {
  color: var(--brand-600);
}

/* ---------- 原文对照编辑工作台 ---------- */
.material-editor {
  display: flex;
  align-items: stretch;
  gap: 18px;
}

.material-preview {
  flex: 1.55;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
}

.material-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  color: var(--text-2);
}

.material-preview-head b {
  color: var(--brand-900);
  word-break: break-all;
}

.material-preview-canvas {
  flex: 1;
  min-height: 280px;
  max-height: 56vh;
  overflow-y: auto;
  padding: 14px;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 12px;
}

.page-grid-empty {
  padding: 40px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}

.page-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: all 0.12s ease;
}

.page-thumb:hover {
  border-color: var(--brand-500);
  box-shadow: var(--shadow-sm);
}

.page-thumb-sheet {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 10px 8px;
  border: 1px solid #e6ebf4;
  border-radius: 3px;
  background: #fdfefe;
}

.page-thumb-sheet i {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #dfe7f2;
}

.page-thumb-sheet i:nth-child(2) {
  width: 82%;
}

.page-thumb-sheet i:nth-child(3) {
  width: 92%;
}

.page-thumb-sheet i:nth-child(4) {
  width: 64%;
}

.page-thumb-no {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}

.page-thumb.selected {
  border-color: var(--brand-600);
  background: var(--brand-50);
  box-shadow: inset 0 0 0 1px var(--brand-600);
}

.page-thumb.selected .page-thumb-sheet {
  border-color: var(--brand-100);
}

.page-thumb.selected .page-thumb-no {
  color: var(--brand-700);
  font-weight: 700;
}

.material-preview-tip {
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-3);
}

.material-form {
  flex: 1;
  min-width: 0;
  max-height: 56vh;
  overflow-y: auto;
  padding-right: 4px;
}

@media (max-width: 860px) {
  .archive-page-head {
    align-items: flex-start;
  }

  .archive-detail-head {
    flex-direction: column;
  }

  .material-editor {
    flex-direction: column;
  }

  .material-form {
    max-height: none;
  }
}

/* ---------- 文件工作流（来自 feature/file-management） ---------- */
.processed-card-body {
  padding-top: 4px;
}

.card-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.volume-table-wrap {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow-x: auto;
}

.volume-files-table {
  width: 100%;
  min-width: 780px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.volume-files-table th,
.volume-files-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  vertical-align: middle;
}

.volume-files-table thead th {
  background: #f4f7fb;
  color: var(--text-2);
  font-weight: 700;
  white-space: nowrap;
}

.volume-col-name { width: 44%; }
.volume-col-submitted { width: 22%; }
.volume-col-uploaded { width: 22%; }
.volume-col-actions { width: 170px; }

.volume-type-row td {
  padding: 9px 12px;
  background: #eef5ff;
  border-top: 1px solid var(--brand-100);
  border-bottom: 1px solid #cfe0f6;
}

.volume-type-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.volume-type-head strong {
  color: var(--brand-900);
  font-size: 13px;
}

.volume-file-row {
  transition: background 0.12s ease;
}

.volume-file-row:hover {
  background: var(--brand-50);
}

.volume-file-name {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}

.volume-file-name span:last-child {
  min-width: 0;
  line-height: 1.55;
  word-break: break-all;
}

.volume-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.volume-empty-row td {
  padding: 22px 12px;
  color: var(--text-3);
  text-align: center;
}

.volume-empty-row span,
.volume-empty-row small {
  display: block;
}

.volume-empty-row small {
  margin-top: 3px;
  font-size: 10px;
}

.volume-type-row .file-type-badges {
  flex: none;
}

.file-type-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}

.type-required,
.type-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 10px;
  white-space: nowrap;
}

.type-required {
  color: var(--red);
  background: var(--red-50);
  border-color: #f7d5d5;
}

.type-state.done {
  color: var(--green);
  background: var(--green-50);
  border-color: #c9ecdb;
}

.type-state.pending {
  color: var(--brand-700);
  background: var(--brand-50);
  border-color: var(--brand-100);
}

.type-state.empty {
  color: var(--text-3);
  background: #f7f9fc;
  border-color: var(--line-2);
}

.type-check-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.type-check-summary span {
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 11px;
  text-align: center;
}

.type-check-summary b {
  display: block;
  margin-bottom: 2px;
  color: var(--brand-900);
  font-size: 18px;
}

.type-check-summary .has-error b {
  color: var(--red);
}

.type-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.type-check-section {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}

.type-check-section.is-required {
  border-color: #f3d4c7;
  background: #fffaf8;
}

.type-check-section h4 {
  margin-bottom: 7px;
  color: var(--brand-900);
  font-size: 12px;
}

.type-check-section ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.type-check-section li {
  color: var(--text-2);
  font-size: 11px;
  line-height: 1.6;
}

.type-check-section li small {
  color: var(--text-3);
}

.type-check-section .type-check-empty {
  color: var(--green);
}

.type-check-section.is-required li:not(.type-check-empty)::before {
  content: "!";
  display: inline-grid;
  width: 14px;
  height: 14px;
  margin-right: 5px;
  place-items: center;
  border-radius: 50%;
  background: var(--red-50);
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
}

.pending-table {
  min-width: 1260px;
}

.file-inline-select,
.file-inline-input {
  width: 100%;
  height: 30px;
  min-width: 0;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.file-inline-input {
  flex: 1;
}

.file-inline-select:focus,
.file-inline-input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(43, 124, 229, 0.1);
}

.file-phase-status {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 205px;
  padding: 8px 9px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: var(--surface-2);
}

.file-phase-status.running {
  border-color: var(--brand-100);
  background: var(--brand-50);
}

.file-phase-status.warning {
  border-color: #f6ddc7;
  background: var(--orange-50);
}

.file-phase-status.success {
  border-color: #c9ecdb;
  background: var(--green-50);
}

.file-phase-status.error {
  border-color: #f7d5d5;
  background: var(--red-50);
}

.file-phase-status .progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.8);
}

.file-phase-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  line-height: 1;
  color: var(--text-3);
}

.file-phase-meta span {
  font-weight: 700;
}

.file-phase-meta b {
  font-size: 11px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.file-phase-status.running .file-phase-meta {
  color: var(--brand-700);
}

.file-phase-status.success .file-phase-meta {
  color: var(--green);
}

.file-phase-status.warning .file-phase-meta {
  color: var(--orange-dark);
}

.file-phase-status.error .file-phase-meta {
  color: var(--red);
}

.file-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-actions .processing-text {
  color: var(--brand-600);
  font-size: 12px;
}

.file-empty {
  padding: 32px 20px;
}

.field-hint {
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.6;
}

.select-with-action {
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-with-action .form-control {
  flex: 1;
}

.inline-type-create {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.inline-type-create[hidden] {
  display: none;
}

.ocr-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.ocr-review-head > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ocr-review-head strong {
  color: var(--text);
}

.ocr-review-head span {
  color: var(--text-3);
  font-size: 12px;
}

.ocr-editor-field {
  margin-top: 16px;
}

.ocr-editor.form-control {
  min-height: 260px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.8;
}

.ocr-log {
  margin-top: 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
}

.ocr-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-2);
}

.ocr-log-head > span {
  color: var(--orange-dark);
  font-size: 11px;
}

.ocr-log-head > span.is-reviewed {
  color: var(--green);
}

.ocr-log pre {
  margin: 0;
  padding: 12px;
  max-height: 220px;
  overflow: auto;
  background: #fff;
  color: var(--text-2);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
}

@media (max-width: 860px) {
  .card-head-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .type-check-grid {
    grid-template-columns: 1fr;
  }

  .type-check-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- 首页 · 最近案件 ---------- */
.home-table {
  min-width: 0;
}

.case-name-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.case-name-row .cell-link {
  flex: 1;
  min-width: 0;
}

.case-name-row .case-overview-btn {
  margin-left: auto;
  flex: none;
}

.case-name-row strong {
  cursor: pointer;
}

.cell-action-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 6px;
  background: var(--brand-50);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  white-space: nowrap;
}

.cell-action-box .btn-sm {
  height: 26px;
  padding: 0 8px;
}

.btn-plain.is-danger {
  color: var(--red);
  border-color: var(--red);
}

.file-nums {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.file-nums b {
  font-weight: 700;
}

.file-nums i {
  font-style: normal;
  color: var(--text-3);
}

.file-nums .is-green,
.cell-action-box .is-green {
  color: #16a34a;
}

.file-nums .is-blue {
  color: #2563eb;
}

.file-nums .is-dark {
  color: var(--text);
}

.cell-link {
  cursor: pointer;
}

.case-name-row .cell-link {
  color: var(--brand-700);
}

.cell-link:hover {
  text-decoration: underline;
}

.extract-nums {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.extract-nums b {
  font-weight: 700;
}

.extract-nums i {
  font-style: normal;
  color: var(--text-3);
}

.extract-nums .is-orange {
  color: #ea580c;
}

.ai-nums {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.ai-nums b {
  font-weight: 700;
}

.ai-nums i {
  font-style: normal;
  color: var(--text-3);
}

.ai-nums .is-orange {
  color: #ea580c;
}

.ai-nums .is-dark {
  color: var(--text);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.icon-btn::before {
  content: "";
  width: 14px;
  height: 14px;
  background-color: var(--text-3);
  -webkit-mask: url("../icons/page.svg") center / contain no-repeat;
  mask: url("../icons/page.svg") center / contain no-repeat;
}

.icon-btn:hover {
  border-color: var(--brand-500);
}

.icon-btn:hover::before {
  background-color: var(--brand-600);
}

/* ---------- 页面看板 ---------- */
.dashboard-card .card-body {
  display: grid;
  gap: 14px;
}

.dash-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 13px;
  color: var(--text-2);
}

.dash-nums b {
  font-size: 16px;
  color: var(--text);
  margin-right: 2px;
}

.dash-nums .is-danger,
.dash-nums .is-danger b {
  color: var(--red);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dash-col h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-2);
}

.dash-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
}

.dash-chip:hover {
  border-color: var(--brand-500);
  color: var(--brand-600);
}

.dash-chip.is-danger {
  border-color: var(--red);
  color: var(--red);
}

.dash-chip small {
  color: var(--text-3);
}

.dash-empty {
  font-size: 12px;
  color: var(--text-3);
}

.locate-highlight {
  animation: locateFlash 1.8s ease;
}

/* ---------- 详情顶栏 / 概览 / 折叠 ---------- */
.case-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.case-topbar .breadcrumb,
.case-topbar .page-actions {
  margin: 0;
}

.case-head {
  margin-bottom: 16px;
}

#case-overview {
  margin-bottom: 16px;
}

#case-overview:empty {
  display: none;
}

.is-collapsed > .collapse-target {
  display: none;
}

.ext-board.is-collapsed .ext-board-body,
.ext-board.is-collapsed .ext-board-foot,
.ext-board.is-collapsed .ext-progress-line {
  display: none;
}

/* 案件列表：五个筛选条件一行展示 */
.case-filter-grid {
  grid-template-columns: minmax(240px, 1.7fr) minmax(120px, 1fr) minmax(90px, 0.7fr) minmax(150px, 1fr) minmax(130px, 1fr);
}

/* ---------- 整理进度 ---------- */
.progress-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-2);
}

.progress-summary:hover {
  border-color: var(--brand-500);
}

.progress-summary-stage {
  font-weight: 700;
  color: var(--brand-700);
}

.progress-summary-arrow {
  color: var(--text-3);
}

.progress-dialog-head {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #f4f7fb;
  border-radius: 8px;
}

.progress-dialog-head div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-3);
}

.progress-dialog-head b {
  font-size: 14px;
  color: var(--text);
}

.progress-group {
  margin-bottom: 12px;
}

.progress-group h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin: 0 0 6px;
}

.progress-group h4 small {
  color: var(--text-3);
  font-weight: 400;
}

.progress-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 4px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  text-align: left;
}

.progress-item:hover {
  border-color: var(--brand-500);
  color: var(--brand-600);
}

.progress-item small {
  color: var(--text-3);
  font-size: 12px;
}

/* ---------- 操作记录 ---------- */
.op-records {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.op-record {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 70px 150px 16px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
}

.op-record:hover {
  border-color: var(--brand-500);
  background: var(--brand-50);
}

.op-record-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.op-record-type.is-result {
  color: var(--brand-700);
  background: var(--brand-50);
}

.op-record-type.is-log {
  color: var(--text-2);
  background: #eef2f7;
}

.op-record-title {
  color: var(--text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.op-record-status {
  color: var(--green);
  font-size: 12px;
}

.op-record-time {
  color: var(--text-3);
  font-size: 12px;
}

.op-record-arrow {
  color: var(--text-3);
}

.op-record-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.op-record-detail-title {
  margin: 6px 0 10px;
  font-size: 15px;
}

.op-record-section {
  margin-top: 14px;
}

.op-record-section h5 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-2);
}

.op-record-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.op-record-more {
  margin-top: 8px;
}

.op-record-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.op-record-reason {
  color: var(--red);
  font-size: 11px;
}

.op-record-status.is-success {
  color: var(--green);
}

.op-record-status.is-fail {
  color: var(--red);
}

.op-record-status.is-abort {
  color: var(--orange-dark);
}

/* 操作记录详情：结果卡片 */
.op-result-card {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 14px 16px;
  background: #f8fafc;
  margin-bottom: 16px;
}

.op-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.op-result-head h5 {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
}

.op-result-outcome {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.op-result-outcome.is-success {
  color: var(--green);
  background: #e9f8ef;
}

.op-result-outcome.is-fail {
  color: var(--red);
  background: #fdecec;
}

.op-result-outcome.is-abort {
  color: var(--orange-dark);
  background: #fff4e5;
}

.op-result-summary {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.op-result-reason {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--red);
}

.op-result-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 8px;
}

.op-result-targets,
.op-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
  margin-top: 6px;
}

/* 操作记录详情：日志时间线 */
.op-log-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.op-log-item {
  display: grid;
  grid-template-columns: 150px 54px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fafbfc;
  font-size: 12px;
}

.op-log-time {
  color: var(--text-3);
}

.op-log-level {
  font-weight: 700;
}

.op-log-item.is-info .op-log-level {
  color: var(--brand-600);
}

.op-log-item.is-warn .op-log-level {
  color: var(--orange-dark);
}

.op-log-item.is-error .op-log-level {
  color: var(--red);
}

.op-log-action {
  color: var(--text-2);
}

/* ---------- AI 工具 ---------- */
.ai-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ai-filter-grid {
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.8fr) minmax(240px, 1.6fr);
}

.ai-task-group.is-collapsed > .ai-task-body {
  display: none;
}

.ai-task-group .card-head h3 small {
  color: var(--text-3);
  font-weight: 400;
}

.ai-task-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-task-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.6fr) 170px 150px minmax(180px, auto);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}

.ai-task-status {
  font-size: 12px;
  font-weight: 700;
}

.ai-task-status.is-success {
  color: var(--green);
}

.ai-task-status.is-fail {
  color: var(--red);
}

.ai-task-status.is-abort,
.ai-task-status.is-manual {
  color: var(--orange-dark);
}

.ai-task-status.is-running {
  color: var(--brand-600);
}

.ai-task-status.is-idle {
  color: var(--text-3);
}

.ai-task-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ai-task-main b {
  color: var(--text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-task-main small {
  color: var(--red);
  font-size: 11px;
}

.ai-task-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-task-progress i {
  font-style: normal;
  font-size: 12px;
  color: var(--text-3);
}

.ai-task-time {
  color: var(--text-3);
  font-size: 12px;
}

.ai-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@keyframes locateFlash {
  0% {
    background: #fff4d6;
  }
  100% {
    background: transparent;
  }
}

/* ---------- 异常检测 / 任务管理 ---------- */
.run-nums {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.run-nums b { font-weight: 700; }
.run-nums i { font-style: normal; color: var(--text-3); }
.run-nums .is-red { color: var(--red); }
.run-nums .is-orange { color: #ea580c; }
.run-nums .is-blue { color: var(--brand-600); }
.run-nums .is-green { color: var(--green); }

.run-filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.run-group.is-collapsed > .run-list {
  display: none;
}

.run-group .card-head h3 small {
  color: var(--text-3);
  font-weight: 400;
}

.run-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.run-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.5fr) 170px 150px minmax(200px, auto);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
}

.run-status {
  font-size: 12px;
  font-weight: 700;
}

.run-status.is-success { color: var(--green); }
.run-status.is-fail { color: var(--red); }
.run-status.is-abort { color: var(--text-3); }
.run-status.is-running { color: var(--brand-600); }
.run-status.is-manual { color: #ea580c; }
.run-status.is-idle { color: var(--text-3); }

.run-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.run-main b {
  color: var(--text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-main small {
  color: var(--text-3);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.run-progress i {
  font-style: normal;
  color: var(--text-3);
  font-size: 11.5px;
}

.run-time {
  color: var(--text-3);
  font-size: 11.5px;
}

.run-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.link-btn.is-danger { color: var(--red); }

/* 异常行 */
.anomaly-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1.6fr) 64px minmax(160px, auto);
  align-items: start;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #fff;
}

.anomaly-row.is-ignored {
  background: #fafbfc;
  opacity: 0.72;
}

.anomaly-level {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.anomaly-level.is-blocker { color: var(--red); background: #fdecec; }
.anomaly-level.is-warning { color: #b45309; background: #fff4e5; }
.anomaly-level.is-info { color: var(--text-2); background: #f1f5f9; }

.anomaly-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.anomaly-main b { font-size: 13px; color: var(--text); }
.anomaly-main small { font-size: 12px; color: var(--text-2); line-height: 1.6; }
.anomaly-main em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.anomaly-ignore-note { font-style: normal; font-size: 11.5px; color: var(--text-3); }

.anomaly-status {
  font-size: 12px;
  color: #b45309;
  font-weight: 600;
}

.anomaly-status.is-ignored { color: var(--text-3); }

.anomaly-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

/* 任务详情 */
.task-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 16px;
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #f8fafc;
  margin-bottom: 12px;
}

.task-detail-grid span {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 2px;
}

.task-detail-grid b {
  font-size: 12.5px;
  color: var(--text);
}

.task-warn {
  padding: 8px 10px;
  border-radius: 8px;
  background: #fdecec;
  color: var(--red);
  font-size: 12px;
  margin-bottom: 10px;
}

.task-anomalies {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-2);
}

.task-log-title {
  margin: 10px 0 6px;
  font-size: 13px;
  color: var(--text);
}

.run-progress .progress {
  flex: 1;
  min-width: 60px;
}


.file-nums em,
.extract-nums em,
.run-nums em {
  font-style: normal;
  color: var(--text-3);
  font-size: 12px;
}

.run-nums {
  font-size: 12.5px;
}


.case-no {
  white-space: normal;
  line-height: 1.5;
}


/* ---------- 工作检查列 ---------- */
.home-table {
  min-width: 1680px;
}

.work-th {
  min-width: 125px;
  vertical-align: middle;
}

.work-th span {
  display: block;
  font-size: 13px;
  color: var(--text);
}

.work-th small {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--text-3);
  white-space: nowrap;
}

.work-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
}

.work-cell.is-empty {
  color: var(--text-3);
  font-size: 12px;
}

.work-nums {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: normal;
  color: var(--text);
}

.work-nums-btn {
  display: block;
  min-width: 0;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
  line-height: 1.15;
  word-break: normal;
  overflow-wrap: normal;
}

.work-status {
  width: 22px;
  border-radius: 50%;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.work-status.is-problem { background: #fdecec; }
.work-status.is-ok { background: #eaf8f1; }

.work-status img {
  width: 22px;
  height: 22px;
  display: block;
}

.work-hint {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12px;
}

.work-hint.is-problem {
  color: var(--red);
  background: #fdecec;
}

.work-hint.is-ok {
  color: var(--green);
  background: #eaf8f1;
}

.work-check-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #f8fafc;
}

.work-check-nums {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.work-check-state {
  font-size: 13px;
  font-weight: 700;
}

.work-check-state.is-problem { color: var(--red); }
.work-check-state.is-ok { color: var(--green); }

.work-check-summary {
  display: flex;
  gap: 18px;
  margin: 12px 0;
  font-size: 12.5px;
  color: var(--text-2);
}

.work-check-list h4 {
  margin: 8px 0;
  font-size: 13px;
}

.work-check-item {
  padding: 7px 10px;
  margin-bottom: 5px;
  border-radius: 7px;
  background: #fdecec;
  color: var(--red);
  font-size: 12px;
}

.work-check-ok {
  padding: 14px;
  border-radius: 8px;
  background: #eaf8f1;
  color: var(--green);
  font-size: 13px;
}

/* ---------- 内容摘要 ---------- */
.summary-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  width: fit-content;
}

.summary-tab {
  border: 0;
  background: transparent;
  padding: 7px 16px;
  border-radius: 7px;
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
}

.summary-tab.active {
  background: #eaf2ff;
  color: var(--brand-700);
  font-weight: 700;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-card {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
}

.summary-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-card-head b {
  margin-right: 8px;
}

.summary-actions {
  display: flex;
  gap: 10px;
}

.summary-content {
  margin-top: 9px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 12.5px;
  line-height: 1.8;
  white-space: pre-wrap;
  color: var(--text);
}

.summary-meta {
  margin-top: 7px;
  font-size: 11px;
  color: var(--text-3);
}

.summary-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.summary-suggest {
  border: 1px solid #cfe0fb;
  background: #f6f9ff;
  color: var(--brand-700);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.summary-file-text {
  max-width: 560px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ---------- 内容检测：16 类分组 + 逐项检测 ---------- */
.detect-filter-grid {
  grid-template-columns: 1.4fr 1fr 1.4fr 0.8fr;
  align-items: end;
}

.detect-toolbar {
  padding-bottom: 12px;
}

.detect-toolbar-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

.detect-only-field {
  justify-content: flex-end;
}

.detect-group {
  margin-bottom: 10px;
}

.detect-group-head h3 small {
  color: var(--text-3);
  font-weight: 400;
}

.detect-file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detect-file {
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--green);
  border-radius: 9px;
  background: #fff;
}

.detect-file.is-problem {
  border-left-color: var(--red);
}

.detect-file-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}

.detect-file-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.detect-file-title b {
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detect-file-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.detect-file-status {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.detect-file-status.is-problem {
  color: var(--red);
  background: #fdecec;
}

.detect-file-status.is-ok {
  color: var(--green);
  background: #eaf8f1;
}

.detect-file-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.detect-items {
  border-top: 1px solid var(--line-2);
  padding: 2px 12px 8px;
}

.detect-item {
  display: grid;
  grid-template-columns: 110px 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-2);
}

.detect-item:last-child {
  border-bottom: 0;
}

.detect-item-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.detect-status {
  display: inline-block;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.detect-status.is-success { color: var(--green); background: #eaf8f1; }
.detect-status.is-fail { color: var(--red); background: #fdecec; }
.detect-status.is-running { color: var(--brand-600); background: #eaf2ff; }
.detect-status.is-idle { color: var(--text-3); background: #f1f5f9; }

.detect-item-result {
  font-size: 12px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detect-item-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.detect-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  padding: 12px;
  border-radius: 9px;
  background: #f8fafc;
  margin-bottom: 12px;
}

.detect-detail > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.detect-detail span {
  color: var(--text-3);
  font-size: 11px;
}

.detect-detail b {
  color: var(--text);
  font-weight: 600;
}

.detect-detail-result {
  grid-column: 1 / -1;
}

.detect-items.is-modal {
  border-top: 1px solid var(--line-2);
}

@media (max-width: 1200px) {
  .detect-filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .detect-file-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .detect-file-meta {
    justify-content: flex-start;
  }
  .detect-item {
    grid-template-columns: 100px 64px minmax(0, 1fr);
  }
  .detect-item-actions {
    grid-column: 2 / -1;
  }
}


/* ---------- OCR 识别 ---------- */
.ocr-issue-list {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}

.ocr-issue-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 7px;
}

.ocr-issue-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ocr-issue-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  max-width: 320px;
  padding: 7px 10px;
  border: 1px solid #f3c6c6;
  border-radius: 8px;
  background: #fff7f7;
  text-align: left;
  cursor: pointer;
}

.ocr-issue-chip:hover {
  border-color: var(--red);
}

.ocr-issue-chip b {
  font-size: 12px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

.ocr-issue-chip small {
  font-size: 10.5px;
  color: #b45309;
}

.ocr-table td {
  vertical-align: middle;
}

.ocr-file-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.ocr-cell-progress {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ocr-cell-progress .progress {
  flex: 1;
  min-width: 48px;
}

.ocr-cell-progress small {
  font-size: 10.5px;
  color: var(--text-3);
  white-space: nowrap;
}

.ocr-row-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.ocr-toolbar-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ---------- 内容检测看板：异常文件 ---------- */
.detect-issue-list {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}

.detect-issue-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 7px;
}

.detect-issue-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detect-issue-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  max-width: 340px;
  padding: 7px 10px;
  border: 1px solid #f3c6c6;
  border-radius: 8px;
  background: #fff7f7;
  text-align: left;
  cursor: pointer;
}

.detect-issue-chip:hover {
  border-color: var(--red);
  background: #fff1f1;
}

.detect-issue-chip b {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text);
}

.detect-issue-chip small {
  font-size: 10.5px;
  color: #b45309;
}

.detect-file.is-focus {
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.22);
  border-color: var(--brand-500);
}

/* ---------- 智能分类 ---------- */
.classify-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.classify-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--brand-700);
  font-size: 11.5px;
  white-space: nowrap;
}

.classify-tag.is-primary {
  background: #1c63c4;
  color: #fff;
}

.classify-tag small {
  font-size: 10px;
  opacity: 0.75;
}

.classify-multi {
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff4e5;
  color: #b45309;
  font-size: 10.5px;
}

.classify-section .card-head h3 small {
  color: var(--text-3);
  font-weight: 400;
}

.classify-classified {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.classify-classified-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.classify-classified-head h3 {
  margin: 0;
  font-size: 16px;
}

.classify-classified-head .muted {
  font-size: 12px;
  margin-left: 8px;
}

tr.is-focus td {
  background: #eaf2ff !important;
}

/* 分类工作台 */
.classify-wb {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 18px;
  min-height: 420px;
}

.classify-wb-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #f8fafc;
}

.classify-wb-file {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.classify-wb-file b {
  font-size: 14px;
  color: var(--text);
}

.classify-wb-file span {
  font-size: 12px;
  color: var(--brand-700);
}

.classify-wb-file small {
  font-size: 11px;
  color: var(--text-3);
}

.classify-wb-preview {
  flex: 1;
  min-height: 240px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text-3);
  font-size: 12px;
}

.classify-wb-note {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.7;
}

.classify-wb-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 26px 14px 0;
}

.cw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cw-head h4 {
  margin: 0;
  font-size: 13px;
}

.cw-head span {
  font-size: 11px;
  color: var(--text-3);
}

.cw-labels {
  border: 1px solid var(--line-2);
  border-radius: 9px;
  overflow: hidden;
}

.cw-label-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
}

.cw-label-row:last-child {
  border-bottom: 0;
}

.cw-label-row:hover {
  background: #f7faff;
}

.cw-label-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cw-label-main b {
  font-size: 12.5px;
  color: var(--text);
}

.cw-label-main small {
  font-size: 10.5px;
  color: var(--text-3);
}

.cw-label-evidence {
  font-size: 10.5px;
  color: var(--text-3);
}

.cw-add-row {
  display: flex;
  gap: 8px;
}

.cw-add-row .form-control {
  flex: 1;
}

.cw-primary-field {
  margin-top: 2px;
}

@media (max-width: 1100px) {
  .classify-wb {
    grid-template-columns: 1fr;
  }
}

.cw-head {
  padding-right: 4px;
}

.cw-head h4 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cw-head h4 small {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
}

/* ---------- 内容摘要：固定维度与编辑弹窗 ---------- */
.summary-fixed {
  display: inline-block;
  margin: 0 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--brand-700);
  font-size: 10.5px;
  font-weight: 600;
}

.summary-card.is-focus {
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.2);
  border-color: var(--brand-500);
}

.summary-edit {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 18px;
  min-height: 460px;
}

.summary-edit-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #f8fafc;
}

.summary-edit-file {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-edit-file b {
  font-size: 14px;
  color: var(--text);
}

.summary-edit-file small {
  font-size: 11px;
  color: var(--text-3);
}

.summary-edit-preview {
  flex: 1;
  min-height: 230px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.8;
}

.summary-edit-preview span {
  color: var(--text-3);
  font-size: 11px;
}

.summary-edit-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 26px 14px 0;
}

.summary-edit-right label {
  font-size: 12px;
  color: var(--text-2);
}

.summary-edit-right textarea {
  flex: 1;
  min-height: 380px;
  resize: vertical;
  line-height: 1.8;
}

.summary-edit-sources {
  border-top: 1px solid var(--line-2);
  padding-top: 9px;
}

.summary-edit-sources h4 {
  margin: 0 0 6px;
  font-size: 11.5px;
  color: var(--text-3);
}

.summary-source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 6px;
  background: #fff;
  margin-bottom: 4px;
}

.summary-source-item b {
  font-size: 11.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-source-item small {
  font-size: 10.5px;
  color: var(--text-3);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .summary-edit {
    grid-template-columns: 1fr;
  }
}

/* ---------- 任务管理：实时详情与已完成收起 ---------- */
.run-task-detail {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: var(--brand-700);
  line-height: 1.5;
}

.run-empty {
  padding: 10px 0;
  font-size: 12px;
  color: var(--text-3);
}

.run-done-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fafbfc;
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
}

.run-done-toggle:hover {
  border-color: var(--brand-500);
  color: var(--brand-700);
}

.run-row.is-focus {
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.2);
  border-color: var(--brand-500);
}

/* ---------- 看板明细：默认收起 ---------- */
.dash-details {
  margin-top: 10px;
  border-top: 1px solid var(--line-2);
  padding-top: 8px;
}

.dash-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}

.dash-details > summary::-webkit-details-marker {
  display: none;
}

.dash-details > summary::after {
  content: '展开';
  font-weight: 400;
  color: var(--brand-600);
}

.dash-details[open] > summary::after {
  content: '收起';
}

.dash-details-body {
  margin-top: 8px;
}

.dash-details .detect-issue-list,
.dash-details .ocr-issue-list {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.run-done-details {
  margin-top: 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fafbfc;
}

.run-done-details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-2);
}

.run-done-details > summary::-webkit-details-marker {
  display: none;
}

.run-done-details > summary::after {
  content: '展开';
  color: var(--brand-600);
}

.run-done-details[open] > summary::after {
  content: '收起';
}

.run-done-body {
  padding: 0 8px 8px;
}


/* ---------- 案件表格：不横向滚动 ---------- */
.home-table.case-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

.case-table .work-th {
  min-width: 0;
  width: 92px;
}

.case-table .work-th span {
  font-size: 12px;
}

.case-table .work-th small {
  font-size: 9.5px;
  line-height: 1.25;
  white-space: normal;
}

.case-table .work-nums {
  font-size: 14px;
}

.case-table .work-status {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}

.case-table .work-status img {
  width: 22px;
  height: 22px;
}

.case-overview-btn {
  width: 26px;
  height: 26px;
}

.case-overview-btn img {
  width: 22px;
  height: 22px;
  display: block;
}

.case-table .case-name-row strong {
  white-space: normal;
  word-break: break-all;
}

/* ---------- 智能存储进度 ---------- */
.storage-mini-progress {
  margin-top: 4px;
}

.storage-mini-progress .progress {
  height: 5px;
}

.storage-mini-progress small {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  color: var(--text-3);
  white-space: nowrap;
}



.work-nums-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: inherit;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  cursor: pointer;
}

.work-nums-btn:hover {
  color: var(--brand-600);
  text-decoration: underline;
}

.work-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.work-check-item b {
  font-size: 11px;
  color: var(--brand-700);
  white-space: nowrap;
}

.work-check-item:hover {
  background: #fff1f1;
}

.update-cell {
  white-space: nowrap;
  line-height: 1.35;
  font-size: 12px;
  text-align: right;
}

.update-time {
  color: var(--text-3);
  font-size: 11px;
}


/* ---------- 工作检查弹窗：左总览 / 右问题 ---------- */
.work-check-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  min-height: 430px;
}

.work-check-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #f8fafc;
}

.work-check-left-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.work-check-left-head b {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
}

.work-check-left-head b.is-problem { color: var(--red); background: #fdecec; }
.work-check-left-head b.is-ok { color: var(--green); background: #eaf8f1; }

.work-check-rate-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.work-check-rate-bar {
  height: 7px;
  margin: 7px 0 6px;
  border-radius: 999px;
  background: #e8edf6;
  overflow: hidden;
}

.work-check-rate-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-600));
}

.work-check-rate small {
  font-size: 11px;
  color: var(--text-3);
}

.work-check-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.work-check-stats > div {
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line-2);
}

.work-check-stats b {
  display: block;
  font-size: 18px;
  line-height: 1.1;
  color: var(--text);
}

.work-check-stats span {
  font-size: 10.5px;
  color: var(--text-3);
}

.work-check-desc span,
.work-check-scope span {
  display: block;
  margin-bottom: 3px;
  font-size: 10.5px;
  color: var(--text-3);
}

.work-check-desc p {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-2);
}

.work-check-scope b {
  font-size: 11.5px;
  color: var(--text);
  font-weight: 600;
}

.work-check-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
}

.work-check-right-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line-2);
  background: #fff;
}

.work-check-right-head b {
  font-size: 13px;
}

.work-check-right-head small {
  margin-left: 7px;
  font-size: 10.5px;
  color: var(--text-3);
}

.work-check-count {
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fdecec;
  color: var(--red);
  font-size: 11px;
  line-height: 20px;
  text-align: center;
}

.work-check-problem-list {
  flex: 1;
  overflow-y: auto;
  max-height: 420px;
  padding: 12px;
}

.work-check-problem-list .work-check-item {
  margin-bottom: 7px;
}

.work-check-problem-list .work-check-ok {
  margin: 20px 10px;
}

@media (max-width: 900px) {
  .work-check-layout {
    grid-template-columns: 1fr;
  }
  .work-check-problem-list {
    max-height: 300px;
  }
}


/* ---------- 统一概览按钮：白底、灰边、悬停黑边 ---------- */
.overview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.overview-btn img {
  width: 22px;
  height: 22px;
  display: block;
}

.overview-btn:hover,
.overview-btn:focus-visible {
  border-color: #111;
  background: #fff;
  outline: none;
}

.work-status {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.work-status.is-problem,
.work-status.is-ok {
  background: #fff;
}

.work-status:hover {
  border-color: #111;
  background: #fff;
}

.case-overview-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.case-overview-btn:hover {
  border-color: #111;
  background: #fff;
}

/* ---------- 统一编辑工作台 ---------- */
.ew-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  min-height: 470px;
}

.ew-source {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #f8fafc;
}

.ew-source-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ew-source-head div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ew-source-head b {
  font-size: 13px;
  color: var(--text);
}

.ew-source-head small {
  font-size: 11px;
  color: var(--text-3);
}

.ew-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.ew-page-toolbar {
  padding: 7px 10px;
  border-bottom: 1px solid var(--line-2);
  background: #fbfcfe;
  font-size: 11px;
  color: var(--text-3);
}

.ew-page-body {
  flex: 1;
  padding: 20px;
  font-size: 13px;
  line-height: 2;
  color: var(--text-2);
}

.ew-quote {
  background: #fff1b8;
  color: var(--text);
  padding: 2px 3px;
  border-radius: 3px;
}

.ew-page-lines {
  padding: 0 20px 18px;
}

.ew-page-lines i {
  display: block;
  height: 6px;
  margin-bottom: 7px;
  border-radius: 3px;
  background: #eef1f5;
}

.ew-page-lines i:nth-child(2) { width: 82%; }
.ew-page-lines i:nth-child(3) { width: 92%; }
.ew-page-lines i:nth-child(4) { width: 70%; }
.ew-page-lines i:nth-child(5) { width: 48%; }

.ew-page.is-located {
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.25);
}

.ew-page .ew-quote.is-located {
  background: #ffe066;
}

.ew-source-meta {
  font-size: 10.5px;
  color: var(--text-3);
}

.ew-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px 28px 14px 2px;
}

.ew-right-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.ew-right-head b {
  font-size: 13px;
}

.ew-right-head small {
  font-size: 10.5px;
  color: var(--text-3);
}

.ew-textarea {
  min-height: 230px;
  resize: vertical;
  line-height: 1.8;
}

.ew-editor {
  min-height: 230px;
}

.ew-versions {
  margin-top: 2px;
}

.ew-version {
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  margin-bottom: 6px;
}

.ew-version.is-applied {
  border-color: #bcd2f5;
  background: #f7faff;
}

.ew-version-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.ew-version-head b {
  font-size: 12px;
  color: var(--text);
}

.ew-version-head span {
  color: var(--text-3);
}

.ew-version-head em {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  color: var(--brand-700);
}

.ew-version-diff {
  margin: 4px 0;
  font-size: 10.5px;
  color: var(--text-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ew-version-actions {
  display: flex;
  gap: 10px;
}

.ew-empty {
  padding: 12px;
  font-size: 11.5px;
  color: var(--text-3);
}

@media (max-width: 900px) {
  .ew-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- 待处理文件：智能分类列 ---------- */
.classify-cell-btn {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.classify-cell-btn .tag {
  font-size: 10.5px;
}

.file-type-sub {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--text-3);
}

/* ---------- 文件工作台：五个标签 ---------- */
.fw-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.fw-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 18px 0;
  border-bottom: 1px solid var(--line-2);
  background: #fff;
  flex: 0 0 auto;
}

.fw-tab {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 122px;
  padding: 9px 12px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.fw-tab b {
  font-size: 12.5px;
  color: var(--text-2);
}

.fw-tab small {
  font-size: 10px;
  color: var(--text-3);
}

.fw-tab.is-active {
  border-bottom-color: var(--brand-500);
}

.fw-tab.is-active b {
  color: var(--brand-700);
}

.fw-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 16px;
  flex: 1;
  min-height: 0;
  padding: 14px 18px 16px;
  overflow: hidden;
}

.fw-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}

.fw-file {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
  background: #fff;
}

.fw-file b {
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fw-file small {
  flex: none;
  font-size: 10.5px;
  color: var(--text-3);
}

.fw-preview .ws-pdf {
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 0;
  background: #fff;
}

.fw-panel {
  min-width: 0;
  padding: 14px 26px 14px 2px;
  overflow-y: auto;
}

.fw-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.fw-section-head b {
  font-size: 13px;
}

.fw-section-head span {
  font-size: 10.5px;
  color: var(--text-3);
}

.fw-kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line-2);
  font-size: 11.5px;
}

.fw-kv span {
  color: var(--text-3);
}

.fw-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.fw-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fw-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
}

.fw-row > div {
  flex: 1;
  min-width: 0;
}

.fw-row b {
  display: block;
  font-size: 11.5px;
}

.fw-row small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--text-3);
}

.fw-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.fw-summary-text {
  width: 100%;
  resize: vertical;
  line-height: 1.8;
}

.fw-dimensions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fw-dimension {
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
}

.fw-dimension b {
  font-size: 11.5px;
}

.fw-dimension small {
  margin-left: 8px;
  color: var(--text-3);
}

.fw-dimension span {
  display: block;
  margin-top: 3px;
  color: var(--text-3);
  font-size: 10.5px;
}

@media (max-width: 900px) {
  .fw-body {
    grid-template-columns: 1fr;
  }
  .fw-tabs {
    overflow-x: auto;
  }
}


/* ---------- 待处理文件：明确入口、名称收窄 ---------- */
.pending-table .pending-name-cell {
  font-size: 13px;
}

.pending-table .pending-name-cell .file-name {
  font-size: 13px;
  gap: 6px;
}

.pending-table .file-type-sub {
  font-size: 11px;
}

.pending-table .type-cell {
  font-size: 11.5px;
}

.classify-cell-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.classify-cell-labels .tag {
  font-size: 10.5px;
}

.fw-check-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 8px;
}

.fw-check {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  font-size: 11.5px;
  cursor: pointer;
}

.fw-field-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.fw-field-row label {
  flex: none;
  font-size: 11.5px;
  color: var(--text-2);
}

.fw-field-edit {
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
}

.fw-field-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.fw-field-title b {
  font-size: 11.5px;
}

.fw-field-edit input {
  font-size: 12px;
}

.fw-field-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.fw-field-actions small {
  margin-right: auto;
  font-size: 10px;
  color: var(--text-3);
}

.fw-candidate {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #f3f8ff;
  font-size: 10.5px;
  color: var(--text-2);
}

.fw-candidate b {
  margin: 0 6px;
  color: var(--text);
}

details.fw-field-edit > summary {
  cursor: pointer;
  list-style: none;
  margin-bottom: 0;
}

details.fw-field-edit > summary::-webkit-details-marker {
  display: none;
}

details.fw-field-edit[open] > summary {
  margin-bottom: 5px;
}

details.fw-field-edit > summary::before {
  content: "▸";
  margin-right: 5px;
  color: var(--text-3);
  font-size: 10px;
}

details.fw-field-edit[open] > summary::before {
  content: "▾";
}

.fw-extract-group {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 0 8px 8px;
}

.fw-extract-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px;
  cursor: pointer;
  list-style: none;
}

.fw-extract-group > summary::-webkit-details-marker {
  display: none;
}

.fw-extract-group > summary b {
  font-size: 11.5px;
}

.fw-extract-fold {
  font-size: 10.5px;
  color: var(--brand-700);
}

/* ---------- 内容摘要：文件类型分组 ---------- */
.summary-file-groups {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-type-group {
  border: 1px solid var(--line-2);
  border-radius: 9px;
  overflow: hidden;
}

.summary-type-group > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  background: #fbfcfe;
}

.summary-type-group > summary::-webkit-details-marker {
  display: none;
}

.summary-type-group > summary::before {
  content: "▸";
  color: var(--text-3);
  font-size: 10px;
}

.summary-type-group[open] > summary::before {
  content: "▾";
}

.summary-type-group > summary b {
  font-size: 12.5px;
}

.summary-type-group > summary small {
  font-size: 10.5px;
  color: var(--text-3);
}

/* ---------- 整体流程：客户关系图 ---------- */
.flow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.flow-head-state {
  font-size: 11px;
  color: var(--brand-700);
  background: var(--brand-50);
  border-radius: 999px;
  padding: 3px 10px;
}

.flow-map {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 8px 10px;
  background: #fbfcfe;
  border: 1px solid var(--line-2);
  border-radius: 12px;
}

.flow-main-chain {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 190px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 40, 80, 0.04);
}

.flow-node:hover {
  border-color: var(--brand-400);
}

.flow-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.flow-node-top b {
  font-size: 12.5px;
  color: var(--text);
}

.flow-node-top em {
  font-style: normal;
  font-size: 9.5px;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 5px;
}

.flow-node-state {
  font-size: 10.5px;
  color: var(--text-3);
}

.flow-node small {
  font-size: 10px;
  color: var(--text-3);
  line-height: 1.4;
}

.flow-node.done {
  border-color: #bfe4d2;
  background: #f5fcf8;
}

.flow-node.done .flow-node-state { color: var(--green); }
.flow-node.active {
  border-color: #bcd2f5;
  background: #f5f9ff;
}
.flow-node.active .flow-node-state { color: var(--brand-600); }
.flow-node.todo { opacity: 0.8; }

.flow-node.is-optional {
  border-style: dashed;
}

.flow-arrow {
  font-size: 10px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.4;
}

.flow-branch-area {
  width: 100%;
  padding-top: 4px;
  border-top: 1px dashed var(--line);
}

.flow-branch-title {
  margin-bottom: 10px;
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
}

.flow-branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.flow-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.flow-branch .flow-node {
  width: 100%;
  max-width: 210px;
}

.flow-archive {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
}

.flow-archive-note {
  font-size: 10.5px;
  color: var(--text-3);
  text-align: center;
}

.flow-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 14px;
  font-size: 11.5px;
  color: var(--text-2);
}

@media (max-width: 800px) {
  .flow-branches {
    grid-template-columns: 1fr;
  }
}

/* ---------- 整体流程：紧凑横向 ---------- */
.flow-h {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  background: #fbfcfe;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow-x: auto;
}

.flow-h-main {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 760px;
}

.flow-h .flow-node {
  width: 136px;
  flex: 0 0 136px;
  padding: 8px 10px;
  border-radius: 7px;
}

.flow-h .flow-node-top b {
  font-size: 11.5px;
}

.flow-h .flow-node-state,
.flow-h .flow-node small {
  font-size: 9.5px;
}

.flow-h-line {
  flex: 1;
  min-width: 18px;
  height: 1px;
  background: var(--line);
  position: relative;
}

.flow-h-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transform: rotate(45deg);
}

.flow-h-branch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 300px;
}

.flow-h-branch-label {
  font-size: 10.5px;
  color: var(--text-3);
  white-space: nowrap;
}

.flow-h-branch-items {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow-h-archive {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  padding-right: 12px;
}

.flow-h-down {
  font-size: 10px;
  color: var(--text-3);
}

@media (max-width: 800px) {
  .flow-h-branch-row {
    padding-left: 0;
    flex-wrap: wrap;
  }
}

/* ---------- 整体流程：横向花括号 ---------- */
.flow-tree {
  display: flex;
  align-items: center;
  min-width: 1040px;
  padding: 12px 14px;
  background: #fbfcfe;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow-x: auto;
}

.flow-tree-chain {
  display: flex;
  align-items: center;
  flex: none;
}

.flow-tree .flow-node {
  width: 132px;
  flex: 0 0 132px;
  padding: 8px 10px;
  border-radius: 7px;
}

.flow-tree .flow-node-top b { font-size: 11.5px; }
.flow-tree .flow-node-state,
.flow-tree .flow-node small { font-size: 9.5px; }

.flow-tree-line {
  width: 30px;
  height: 1px;
  background: var(--line);
  position: relative;
  flex: none;
}

.flow-tree-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transform: rotate(45deg);
}

.flow-tree-brace {
  position: relative;
  width: 28px;
  align-self: stretch;
  min-height: 174px;
  flex: none;
}

.flow-tree-brace::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16%;
  bottom: 16%;
  border-left: 1px solid var(--line);
}

.flow-tree-brace::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--line);
}

.flow-tree-branches {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 22px;
  flex: none;
}

.flow-tree-branches::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  border-left: 1px solid var(--line);
}

.flow-tree-branch {
  display: flex;
  align-items: center;
  min-height: 50px;
  position: relative;
}

.flow-tree-branch::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 22px;
  border-top: 1px solid var(--line);
}

.flow-tree-merge {
  position: relative;
  width: 30px;
  align-self: stretch;
  min-height: 174px;
  flex: none;
}

.flow-tree-merge::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  border-left: 1px solid var(--line);
}

.flow-tree-merge::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--line);
}

.flow-tree-archive {
  flex: none;
}

@media (max-width: 800px) {
  .flow-tree {
    min-width: 900px;
  }
}

/* ---------- 流程关系图居中 ---------- */
.flow-tree {
  display: block;
  min-width: 0;
  width: 100%;
  padding: 16px 20px;
  overflow-x: auto;
}

.flow-tree-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .flow-tree-inner {
    min-width: 960px;
  }
}

/* ---------- 首页：三阶段流程 ---------- */
.hero-flow-phases {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-top: 10px;
}

.hero-flow-phases > i {
  align-self: center;
  font-style: normal;
  color: var(--text-3);
  font-size: 12px;
}

.hero-phase {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-phase b {
  font-size: 11.5px;
  margin-bottom: 2px;
}

.hero-phase span {
  font-size: 10px;
  color: var(--text-3);
  line-height: 1.35;
}

.hero-phase.is-done {
  border-color: rgba(72, 203, 25, 0.6);
}

.hero-phase .is-optional {
  color: var(--text-3);
  opacity: 0.8;
}

.hero-flow-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--brand-100);
}

.hero-panel .hero-phase {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-panel .hero-phase b,
.hero-panel .hero-phase span,
.hero-panel .hero-flow-link {
  color: #fff;
}

.hero-panel .hero-phase span {
  opacity: 0.8;
}

.hero-panel .hero-phase .is-optional {
  opacity: 0.62;
}

/* ---------- 看板：业务数据 + 服务器负载 ---------- */
.ov-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.ov-left {
  min-width: 0;
}

.ov-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.ov-kpi-grid .ext-kpi {
  min-width: 0;
}

.ov-service {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #f8fafc;
}

.ov-service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ov-service-head b {
  font-size: 12.5px;
}

.ov-status-dot {
  font-size: 10.5px;
  color: var(--green);
  background: var(--green-50);
  border-radius: 999px;
  padding: 2px 8px;
}

.ov-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.ov-service-grid > div {
  padding: 7px 8px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid var(--line-2);
}

.ov-service-grid b {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

.ov-service-grid span {
  font-size: 10px;
  color: var(--text-3);
}

.ov-storage > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-3);
}

.ov-storage b {
  color: var(--text-2);
}

.ov-storage-bar {
  height: 5px;
  margin-top: 4px;
  border-radius: 999px;
  background: #e8edf6;
  overflow: hidden;
}

.ov-storage-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--brand-500);
}

.ov-advanced {
  margin-top: auto;
}

.ov-advanced-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  font-size: 10.5px;
  color: var(--text-3);
}

.ov-advanced-row b {
  color: var(--text-2);
}

@media (max-width: 900px) {
  .ov-split {
    grid-template-columns: 1fr;
  }
}

/* 自动左右分栏的看板 */
.dashboard-card .card-body.ov-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.ov-split .ov-left .ext-kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ov-split .ov-left .ext-kpi {
  min-width: 0;
}

@media (max-width: 900px) {
  .dashboard-card .card-body.ov-split {
    grid-template-columns: 1fr;
  }
}

/* 待处理文件：智能处理入口 */
.smart-cell {
  vertical-align: middle;
}

.smart-entry {
  display: block;
  width: 100%;
  margin-bottom: 3px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  font-size: 10px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.smart-entry:last-child {
  margin-bottom: 0;
}

.smart-entry.is-warn {
  color: var(--orange-dark);
  border-color: #f2d0b4;
  background: var(--orange-50);
}

.smart-entry.is-ok {
  color: var(--green);
  border-color: #bfe4d2;
  background: var(--green-50);
}

.smart-entry:disabled {
  color: var(--text-3);
  border-color: var(--line);
  background: #f7f8fa;
  cursor: not-allowed;
}
