:root {
  --sidebar-w: 180px;
  --topbar-h: 52px;
  --bg: #f5f7fa;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #333639;
  --muted: #8a9eab;
  --primary: #00A2B1;
  --primary-soft: #E6F5F6;
  --danger: #d03050;
  --danger-soft: #fce8eb;
  --warning: #f0a020;
  --warning-soft: #fef5e6;
  --success: #18a058;
  --success-soft: #eaf5ec;
  --sidebar-bg: #F7F8FA;
  --sidebar-text: #333639;
  --sidebar-active: #00A2B1;
  --sidebar-active-bg: #E6F5F6;
  --sidebar-hover: #F0F2F5;
}
* { box-sizing: border-box; margin: 0; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background-color: transparent; }
::-webkit-scrollbar-thumb { background-color: #d4d9de; border-radius: 10px; min-height: 30px; border: 1px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: #b0b7be; }
::-webkit-scrollbar-corner { background-color: transparent; }

body { font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; color: var(--text); background: var(--bg); }

.app-layout { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  position: fixed; left: 0; top: 0; bottom: 0;
  overflow-y: auto; overflow-x: hidden;
  z-index: 100;
  padding: 0;
  border-right: 1px solid var(--border);
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.12) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 4px; }
.sidebar-brand {
  height: 64px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 16px;
  font-weight: 700; font-size: 15px; color: var(--text);
  margin-bottom: 8px;
  flex-shrink: 0;
}
.sidebar-brand .brand-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

.menu-folder { margin-bottom: 2px; }
.menu-title {
  height: 48px; padding: 0 16px;
  display: flex; align-items: center;
  color: #333639; font-size: 14px; cursor: pointer;
  transition: color 0.3s; user-select: none;
}
.menu-title:hover { color: var(--primary); }
.menu-title i { font-size: 18px; margin-right: 8px; color: #333639; transition: color 0.3s; }
.menu-title:hover i { color: var(--primary); }
.menu-title .folder-arrow { margin-left: auto; margin-right: 0; font-size: 12px; transition: transform 0.3s; }
.menu-folder.expanded .folder-arrow { transform: rotate(180deg); }
.menu-folder.expanded .menu-title { color: var(--primary); }
.menu-folder.expanded .menu-title i { color: var(--primary); }

.menu-sub-list { display: none; flex-direction: column; overflow: hidden; }
.menu-folder.expanded .menu-sub-list { display: flex; }
.menu-sub-item {
  height: 40px; padding-left: 44px; margin: 2px 8px;
  display: flex; align-items: center;
  font-size: 14px; color: #333639; border-radius: 4px; cursor: pointer; text-decoration: none;
  transition: all 0.3s;
}
.menu-sub-item:hover { background: var(--sidebar-hover); color: var(--primary); }
.menu-sub-item.active { background: var(--sidebar-active-bg); color: var(--sidebar-active); font-weight: 500; }

a.menu-title.active {
  margin: 0 8px; border-radius: 4px; padding-left: 8px;
  background: var(--sidebar-active-bg); color: var(--sidebar-active); font-weight: 500;
}
a.menu-title.active i { color: var(--sidebar-active); }
/* ── Main ── */
.main-area { margin-left: var(--sidebar-w); flex: 1; min-width: 0; }

/* ── Topbar ── */
.topbar {
  height: var(--topbar-h);
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-title { font-size: 17px; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

/* ── Content ── */
.page-content { padding: 20px 24px 30px; }

/* ── Panels ── */
.panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(12,30,58,.04);
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.panel-title { font-size: 15px; font-weight: 700; }
.panel-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── KPIs ── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kpi-card {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; background: #fff;
}
.kpi-label { font-size: 12px; color: var(--muted); }
.kpi-value { font-size: 28px; font-weight: 700; margin-top: 4px; line-height: 1.1; }
.kpi-sub { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* ── Tables (升级版) ── */
.table { border-collapse: separate; border-spacing: 0; }
.table thead th {
  font-size: 11.5px; color: #5a6b80; font-weight: 600;
  letter-spacing: .4px; text-transform: none;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: #f8fafb;
  white-space: nowrap;
  position: sticky; top: 0; z-index: 2;
}
.table thead th:first-child { border-radius: 8px 0 0 0; }
.table thead th:last-child { border-radius: 0 8px 0 0; }
.table td {
  font-size: 13px; vertical-align: middle;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f3f7;
}
.table tbody tr { transition: background .12s; }
.table-hover tbody tr:hover { background: #f5f8fc; }
.td-name { font-weight: 600; color: var(--text); max-width: 260px; }
.td-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* 操作列 - 紧凑一行 */
.td-actions {
  white-space: nowrap;
  display: flex;
  gap: 4px;
  align-items: center;
}
.act-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid var(--border); background: #fff;
  color: var(--muted); cursor: pointer; font-size: 13px;
  transition: all .15s;
}
.act-btn:hover { background: var(--primary-soft); color: var(--primary); border-color: #bdd3f7; }
.act-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.act-btn.primary:hover { background: #00838f; }
.act-link {
  font-size: 12px; color: var(--primary); cursor: pointer;
  white-space: nowrap; background: none; border: none; padding: 4px 8px;
  border-radius: 4px; transition: background .12s;
}
.act-link:hover { background: var(--primary-soft); }

/* 更多操作下拉 */
.act-more {
  position: relative; display: inline-flex;
}
.act-more .act-btn { font-size: 16px; }
/* 桥接按钮与下拉菜单之间的视觉间隙，避免 hover 中断 */
/* 桥接宽度需大于 .act-dropdown 的 min-width，且与其同向右对齐 */
.act-more::after {
  content: ''; position: absolute; right: 0; top: 100%;
  width: 160px; height: 10px; display: block;
}
.act-dropdown {
  position: absolute; right: 0; top: 100%; margin-top: 8px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.1);
  min-width: 140px; z-index: 20;
  display: none; padding: 4px;
}
.act-more:hover .act-dropdown,
.act-more.open .act-dropdown { display: block; }
.act-dropdown a, .act-dropdown button {
  display: flex; align-items: center; gap: 6px;
  width: 100%; padding: 7px 10px; border: none; background: none;
  font-size: 12.5px; color: var(--text); cursor: pointer;
  border-radius: 5px; text-decoration: none; text-align: left;
}
.act-dropdown a:hover, .act-dropdown button:hover { background: #f1f5f9; }

/* ── Badges ── */
.risk-high { background: var(--danger); color: #fff; }
.risk-medium { background: var(--warning); color: #fff; }
.risk-low { background: var(--success); color: #fff; }
.status-pill {
  display: inline-block; padding: 3px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 500;
}
.status-active { background: var(--success-soft); color: var(--success); }
.status-warn { background: var(--warning-soft); color: var(--warning); }
.status-danger { background: var(--danger-soft); color: var(--danger); }
.status-info { background: var(--primary-soft); color: var(--primary); }
.status-muted { background: #f1f5f9; color: #64748b; }

/* ── Review Workbench 3-column ── */
.review-3col {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px;
  height: calc(100vh - var(--topbar-h) - 90px);
}
.col-box {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  display: flex; flex-direction: column; overflow: hidden;
}
.col-head {
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: #fafcff; flex-shrink: 0;
}
.col-head strong { font-size: 13px; }
.col-body { flex: 1; overflow-y: auto; padding: 12px 14px; }

.doc-body p { line-height: 1.9; margin-bottom: 8px; font-size: 14px; color: #2a3a52; }
.doc-body h6 { margin: 16px 0 8px; font-size: 14px; }
.anchor { background: #fff3c4; border-radius: 3px; padding: 1px 4px; cursor: pointer; transition: background .2s; }
.anchor.pulse { background: #ffd666; box-shadow: 0 0 0 3px rgba(255,214,102,.4); }

.issue-card {
  border: 1px solid var(--border); border-left: 4px solid var(--warning);
  border-radius: 8px; padding: 10px 12px; margin-bottom: 8px;
  cursor: pointer; transition: box-shadow .15s;
}
.issue-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.issue-card.high { border-left-color: var(--danger); }
.issue-card.medium { border-left-color: var(--warning); }
.issue-card.low { border-left-color: var(--success); }
.issue-card.selected { box-shadow: inset 0 0 0 1px var(--primary); background: var(--primary-soft); }
.issue-title { font-size: 13px; font-weight: 600; }
.issue-desc { font-size: 12px; color: var(--muted); margin-top: 4px; }

.evidence-block {
  border: 1px dashed #c3d0e0; border-radius: 8px;
  background: #f8faff; padding: 12px; margin-bottom: 10px;
}
.evidence-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.evidence-text { font-size: 13px; }

/* ── Flow Steps ── */
.flow-bar { display: flex; gap: 8px; }
.flow-step {
  flex: 1; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px; background: #fff; text-align: center;
}
.flow-step .num { font-size: 24px; font-weight: 700; color: var(--primary); }
.flow-step .label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── Progress Bar ── */
.progress-bar-wrap { background: #e9eef5; border-radius: 999px; height: 7px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #4dcad6); border-radius: 999px; }

/* ── Rule Cards ── */
.rule-card {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; margin-bottom: 10px; background: #fff;
}
.rule-card .rule-name { font-weight: 600; font-size: 14px; }
.rule-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.rule-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.rule-tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: #f1f5f9; color: #475569; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.tl-item { position: relative; margin-bottom: 16px; }
.tl-item::before {
  content: ''; position: absolute; left: -20px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); border: 2px solid #fff;
}
.tl-date { font-size: 12px; color: var(--muted); }
.tl-text { font-size: 13px; margin-top: 2px; }

/* ── Filters (内联紧凑版) ── */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  align-items: center;
  padding: 10px 16px;
  background: #fafbfd;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 14px;
}
.filter-bar .form-control {
  font-size: 12.5px; height: 34px; padding: 4px 10px;
  border-radius: 6px; border: 1px solid #d5dce6;
  background: #fff;
}
.filter-bar .form-select {
  font-size: 12.5px; height: 34px; padding: 4px 28px 4px 10px;
  border-radius: 6px; border: 1px solid #d5dce6;
  background-color: #fff;
  min-width: 110px; max-width: 150px;
}
.filter-bar .form-control { min-width: 160px; max-width: 220px; }
.filter-bar .btn {
  height: 34px; font-size: 12.5px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 4px;
}
.filter-bar .sep {
  width: 1px; height: 20px; background: #dde3ec; margin: 0 4px;
}
.filter-count {
  font-size: 12px; color: var(--muted); margin-left: auto; white-space: nowrap;
}

/* ── Modal Detail ── */
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.detail-item {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f3f7;
}
.detail-item:nth-child(odd) { border-right: 1px solid #f0f3f7; }
.detail-label { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.detail-value { font-size: 13.5px; font-weight: 500; }
.detail-full { grid-column: 1 / -1; }
.detail-section {
  font-size: 14px; font-weight: 700; padding: 12px 14px 6px;
  border-bottom: 2px solid var(--primary-soft); color: var(--primary);
  grid-column: 1 / -1;
}
.modal-content { border-radius: 12px; border: none; box-shadow: 0 20px 60px rgba(0,0,0,.15); }
.modal-header { border-bottom: 1px solid #eef1f6; padding: 14px 20px; }
.modal-title { font-size: 16px; font-weight: 700; }
.modal-body { padding: 0; }
.modal-body .detail-grid { padding: 0; }
.modal-body .form-section { padding: 16px 20px; }
.modal-footer { border-top: 1px solid #eef1f6; padding: 10px 20px; }

/* ── Responsive ── */
@media (max-width: 1400px) {
  .review-3col { grid-template-columns: 1fr; height: auto; }
  .col-box { min-height: 400px; }
}

/* ── Role Switcher ── */
.role-switcher { position: relative; }
.role-switcher-trigger {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 6px; border-radius: 10px;
  border: 1px solid transparent; background: transparent;
  cursor: pointer; transition: all .15s; user-select: none;
}
.role-switcher-trigger:hover { background: #f5f8fc; }
.role-avatar {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.role-info { min-width: 0; }
.role-name { font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.role-title { font-size: 11px; color: var(--muted); white-space: nowrap; }
.role-chevron { font-size: 12px; color: var(--muted); transition: transform .2s; margin-left: 2px; }

.role-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  width: 340px; background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  z-index: 200; overflow: hidden;
}
.role-dropdown-header {
  padding: 10px 16px; font-size: 12px; font-weight: 600;
  color: var(--muted); border-bottom: 1px solid #f0f3f7;
  background: #fafbfd;
}
.role-dropdown-list { padding: 6px; }
.role-option {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  cursor: pointer; transition: background .12s;
}
.role-option:hover { background: #f5f8fc; }
.role-option.active { background: #f0f5ff; }
.role-option-avatar {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.role-option-info { flex: 1; min-width: 0; }
.role-option-name { font-size: 13.5px; font-weight: 600; }
.role-option-title { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.current-badge {
  display: inline-block; font-size: 10px; font-weight: 600;
  padding: 1px 6px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  margin-left: 4px; vertical-align: middle;
}
.role-dropdown-footer {
  padding: 8px 16px; font-size: 11px;
  color: var(--muted); border-top: 1px solid #f0f3f7;
  background: #fafbfd;
}

/* ── Inner Lib Group View ── */
.il-section { margin-bottom: 20px; }
.il-section-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0 10px; margin-bottom: 12px;
  border-bottom: 2px solid #eef1f6;
}
.il-section-tag {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; flex-shrink: 0;
}
.il-section-title { font-size: 15px; font-weight: 700; }
.il-section-count {
  display: inline-block; min-width: 20px; text-align: center;
  padding: 0 6px; border-radius: 999px; font-size: 12px;
  font-weight: 700; background: #f1f5f9; color: var(--muted);
  margin-left: 6px;
}
.il-section-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

.il-company-group { margin-bottom: 14px; }
.il-company-label {
  font-size: 13px; font-weight: 600; color: #475569;
  padding: 4px 0 8px; display: flex; align-items: center; gap: 4px;
}

/* 集团/二级公司折叠面板 */
.il-section-collapse-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; margin-bottom: 10px; transition: background .12s; user-select: none;
}
.il-section-collapse-head:hover { background: #f5f8fc; }
.il-collapse-arrow { font-size: 10px; color: var(--muted); transition: transform .2s; }

/* 二级公司手风琴 */
.il-comp-accordion-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 6px; background: #fff; overflow: hidden; }
.il-comp-accordion-item.hidden { display: none; }
.il-comp-accordion-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer;
  font-size: 13px; font-weight: 600; transition: background .12s; user-select: none;
}
.il-comp-accordion-head:hover { background: #faf8ff; }
.il-comp-accordion-head.expanded { background: #f8f5ff; border-bottom: 1px solid #ede9ff; }
.il-comp-arrow { font-size: 10px; color: var(--muted); transition: transform .2s; }
.il-comp-accordion-head.expanded .il-comp-arrow { transform: rotate(90deg); }
.il-comp-accordion-body { padding: 12px 14px; background: #fcfbff; }
.il-comp-name { font-weight: 600; color: #1a2332; }

.il-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.il-reg-card {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; background: #fff;
  transition: box-shadow .15s, border-color .15s;
  cursor: default;
}
.il-reg-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  border-color: #c5d0de;
}
.il-card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.il-card-domain {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600;
}
.il-card-name {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 3px; line-height: 1.3;
}
.il-card-docno { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.il-card-parent {
  font-size: 11.5px; color: var(--primary); margin-bottom: 6px;
  display: flex; align-items: center; gap: 2px;
}
.il-card-risk {
  font-size: 11.5px; font-weight: 600;
  color: var(--danger); margin-bottom: 6px;
  display: flex; align-items: center; gap: 4px;
  padding: 4px 8px; background: var(--danger-soft); border-radius: 6px;
}
.il-card-meta {
  display: flex; gap: 12px; font-size: 11.5px; color: var(--muted);
  margin-bottom: 8px;
}
.il-card-meta span { display: flex; align-items: center; gap: 3px; }
.il-card-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; border-top: 1px solid #f0f3f7;
}
.il-card-dept { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 3px; }
.il-card-actions { display: flex; gap: 4px; align-items: center; }

/* 自动审查通知横幅 */
.il-auto-banner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; margin-bottom: 14px;
  background: linear-gradient(135deg, #fff6f0 0%, #fff0f0 100%);
  border: 1px solid #fdd8c5; border-left: 4px solid var(--danger);
  border-radius: 10px;
}
.il-auto-banner-left { display: flex; align-items: center; gap: 14px; }
.il-auto-banner-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--danger-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--danger); flex-shrink: 0;
}
.il-auto-banner-title { font-size: 14px; font-weight: 700; color: var(--text); }
.il-auto-banner-desc { font-size: 12.5px; color: #4b5563; margin-top: 2px; line-height: 1.5; }

/* 视图切换 */
.il-view-switch {
  display: flex; border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden;
}
.il-view-btn {
  width: 34px; height: 30px; border: none; background: #fff;
  color: var(--muted); cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all .12s;
}
.il-view-btn:not(:last-child) { border-right: 1px solid var(--border); }
.il-view-btn:hover { background: #f5f8fc; color: var(--text); }
.il-view-btn.active { background: var(--primary-soft); color: var(--primary); }

/* ===== 任务中心 ===== */
.tc-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px;
  margin-bottom: 8px;
}
.tc-toolbar-filter {
  display: flex; align-items: center; gap: 6px; padding: 4px 0;
}
.tc-workflow-tabs {
  display: flex; gap: 0; margin-bottom: 0; padding: 0;
}
.tc-workflow-tab {
  padding: 10px 12px; font-size: 14px; font-weight: 500; cursor: pointer;
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -3px;
  transition: color .15s, border-color .15s; display: flex; align-items: center;
  white-space: nowrap; user-select: none; gap: 6px;
}
.tc-workflow-tab:hover { color: var(--text); }
.tc-workflow-tab.active { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.tc-workflow-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 18px; padding: 0 6px;
  border-radius: 999px; font-size: 11px; font-weight: 600;
  background: #e5e7eb; color: var(--muted);
}
.tc-workflow-tab.active .tc-workflow-count {
  background: var(--primary-soft); color: var(--primary);
}
.tc-type-tabs {
  display: flex; gap: 0; margin: 6px 0 6px; padding: 10px 0;
}
.tc-type-tab {
  position: relative; cursor: pointer; user-select: none;
  margin-left: -14px;
  display: flex; align-items: center; justify-content: center;
  width: 102px; flex-shrink: 0;
}
.tc-type-tab:first-child { margin-left: 0; }
.tc-type-tab .tc-arrow-bg { width: 102px; height: 34px; display: block; }
.tc-type-tab .tc-arrow-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none;
  padding-left: 6px;
}
.tc-type-tab:first-child .tc-arrow-text { padding-left: 0; }
.tc-type-tab:hover .tc-arrow-bg path { fill: #d7eef1; }
.tc-type-tab.active:hover .tc-arrow-bg path { fill: var(--primary); }
/* 任务中心表格列宽控制：任务名称列有 max-width，其他列 nowrap */
.tc-table { table-layout: auto; }
.tc-table th, .tc-table td { white-space: nowrap; }
.tc-table th:first-child, .tc-table td:first-child {
  white-space: normal;
  max-width: 320px;
  min-width: 220px;
}
.tc-table .td-name { word-break: break-all; }
.tc-type-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; white-space: nowrap;
}
.tc-pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid var(--border);
}
.tc-page-info { font-size: 12px; color: var(--muted); }
.tc-page-btns { display: flex; align-items: center; gap: 4px; }
.tc-page-btn {
  min-width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 6px;
  background: #fff; color: var(--text); font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: all .12s;
}
.tc-page-btn:hover:not([disabled]):not(.active) { background: #f5f7fa; border-color: #c0c6cf; }
.tc-page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tc-page-btn[disabled] { opacity: .4; cursor: not-allowed; }
.tc-page-dots { font-size: 12px; color: var(--muted); padding: 0 4px; }

