@charset "UTF-8";

/* ============================================================
   吉林省基层数据"一张表"填报系统 - 共享样式表
   覆盖：全局重置、布局框架、组件库、页面视图
   ============================================================ */

/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #303133;
  background: #f5f7fa;
  overflow: hidden;
  height: 100vh;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c0c4cc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #909399; }

/* ===== Layout Shell ===== */
.app-layout { display: flex; flex-direction: column; height: 100vh; }

/* ===== Header ===== */
.header {
  height: 50px;
  min-height: 50px;
  background: #4084f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 200;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.menu-toggle {
  width: 32px; height: 32px;
  border-radius: 4px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  border: none; background: transparent; padding: 0;
}
.menu-toggle:hover { background: rgba(255,255,255,.15); }
.menu-toggle svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.header-title { font-size: 16px; font-weight: 600; letter-spacing: .5px; }
.header-right { display: flex; align-items: center; gap: 6px; }

.nav-item {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 14px;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  border-radius: 4px;
  white-space: nowrap; user-select: none;
}
.nav-item:hover { background: rgba(255,255,255,.15); color: #fff; }
.nav-item svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active { background: rgba(255,255,255,.22); color: #fff; font-weight: 500; }



/* ===== Body Layout ===== */
.body-layout { display: flex; flex: 1; overflow: hidden; }

/* ===== Sidebar ===== */
.sidebar {
  width: 208px; min-width: 208px;
  background: #263238;
  color: #b0bec5;
  overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column;
  flex-shrink: 0;
  transition: width .25s ease, min-width .25s ease;
}
.sidebar.collapsed { width: 52px; min-width: 52px; }
.sidebar.collapsed .menu-text,
.sidebar.collapsed .section-title,
.sidebar.collapsed .arrow-icon,
.sidebar.collapsed .submenu { display: none; }
.sidebar.collapsed .menu-item { justify-content: center; padding-left: 0; padding-right: 0; }
.sidebar.collapsed .section-header { justify-content: center; padding-left: 0; padding-right: 0; }
.sidebar.collapsed .menu-icon { margin-right: 0; }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px;
  font-size: 13px; font-weight: 500;
  color: #90a4ae;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap; position: relative; user-select: none;
}
.section-header:hover { color: #eceff1; background: rgba(255,255,255,.04); }
.section-header::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: transparent; transition: background .2s;
}
.section-header:hover::before { background: rgba(64,132,242,.4); }
.section-title { flex: 1; overflow: hidden; text-overflow: ellipsis; }

.arrow-icon {
  width: 14px; height: 14px;
  stroke: #78909c; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s ease; flex-shrink: 0;
}
.section-header.expanded .arrow-icon { transform: rotate(90deg); }

.submenu {
  list-style: none; overflow: hidden;
  max-height: 0; transition: max-height .3s ease;
}
.section-header.expanded + .submenu { max-height: 400px; }
.top-menu-list { list-style: none; padding: 4px 0; }

.menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 28px;
  font-size: 13px; color: #b0bec5;
  cursor: pointer; transition: all .2s;
  white-space: nowrap; position: relative; user-select: none;
}
.menu-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: transparent; transition: background .2s;
}
.menu-item:hover { color: #eceff1; background: rgba(255,255,255,.05); }
.menu-item:hover::before { background: rgba(64,132,242,.4); }
.menu-item.active { color: #fff; background: rgba(64,132,242,.15); font-weight: 500; }
.menu-item.active::before { background: #4084f2; }

.menu-icon {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0; opacity: .75;
}
.menu-item.active .menu-icon { opacity: 1; }
.menu-text { overflow: hidden; text-overflow: ellipsis; }

/* ===== Main Content Area ===== */
.main-content {
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden; background: #f5f7fa;
}
.page-view { display: none; flex: 1; overflow: hidden; }
.page-view.active { display: flex; flex-direction: column; }

/* ===== Page Header ===== */
.page-header {
  padding: 18px 24px 12px;
  display: flex; align-items: center; gap: 12px;
}
.page-title {
  font-size: 18px; font-weight: 600;
  color: #303133; letter-spacing: -.3px;
}
.page-header .back-btn {
  height: 32px; padding: 0 14px; font-size: 13px;
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid #dcdfe6; border-radius: 4px;
  background: #fff; color: #606266; cursor: pointer;
  transition: all .2s; font-family: inherit; flex-shrink: 0;
}
.page-header .back-btn:hover { color: #4084f2; border-color: #c6e2ff; background: #ecf5ff; }
/* 反馈详情页返回按钮 — 与 page-header 统一 */
.fc-detail-header .back-btn {
  height: 32px; padding: 0 14px; font-size: 13px;
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid #dcdfe6; border-radius: 4px;
  background: #fff; color: #606266; cursor: pointer;
  transition: all .2s; font-family: inherit; flex-shrink: 0;
}
.fc-detail-header .back-btn:hover { color: #4084f2; border-color: #c6e2ff; background: #ecf5ff; }

/* ===== Search Bar ===== */
.search-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 24px; flex-wrap: wrap;
}
.search-field {
  display: flex; align-items: center; gap: 8px;
}
.search-label {
  font-size: 13px; color: #606266;
  white-space: nowrap; min-width: 56px;
}
.search-input {
  height: 34px; padding: 0 11px;
  border: 1px solid #dcdfe6; border-radius: 4px;
  font-size: 13px; color: #606266; background: #fff;
  outline: none; transition: border-color .2s;
  width: 240px; font-family: inherit;
}
.search-input:focus { border-color: #4084f2; box-shadow: 0 0 0 2px rgba(64,132,242,.1); }
.search-input::placeholder { color: #c0c4cc; }

/* 搜索栏右侧对齐批量操作按钮 */
.search-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Checkbox label styling */
.checkbox-label {
  font-size: 13px; color: #606266;
  display: flex; align-items: center; gap: 4px; cursor: pointer;
  user-select: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 18px;
  border-radius: 4px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .2s;
  border: 1px solid; font-family: inherit;
  white-space: nowrap; line-height: 1;
}
.btn-primary { background: #4084f2; border-color: #4084f2; color: #fff; }
.btn-primary:hover { background: #3370d9; border-color: #3370d9; }
.btn-default { background: #fff; border-color: #dcdfe6; color: #606266; }
.btn-default:hover { color: #4084f2; border-color: #c6e2ff; background: #ecf5ff; }

/* 草稿按钮红点角标 */
.draft-badge {
  position: absolute; top: -6px; right: -4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #f56c6c; color: #fff;
  font-size: 11px; font-weight: 600; line-height: 16px;
  text-align: center; border: 1.5px solid #fff;
  pointer-events: none; white-space: nowrap;
}
.btn-delete { background: #f56c6c; border-color: #f56c6c; color: #fff; }
.btn-delete:hover { background: #e64949; border-color: #e64949; }
.btn-danger { background: #f56c6c; border-color: #f56c6c; color: #fff; }
.btn-danger:hover { background: #e64949; border-color: #e64949; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }

/* ===== Table Area ===== */
.table-area {
  flex: 1; padding: 0 24px 16px;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.table-area .table-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.result-info {
  font-size: 13px; color: #909399;
  margin-bottom: 10px; padding-top: 4px;
}
.data-table-wrapper {
  background: #fff; border-radius: 4px;
  border: 1px solid #ebeef5;
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden;
}
.data-table {
  width: 100%; border-collapse: collapse; table-layout: fixed;
}
.data-table thead th {
  background: #fafafa; padding: 12px 14px;
  font-size: 13px; font-weight: 600; color: #909399;
  text-align: left; border-bottom: 1px solid #ebeef5;
  white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
.data-table thead th:first-child { padding-left: 20px; }
.data-table tbody td {
  padding: 12px 14px; font-size: 13px; color: #606266;
  border-bottom: 1px solid #f0f0f0; vertical-align: middle;
}
.data-table tbody td:first-child { padding-left: 20px; }
.data-table tbody tr:hover { background: #f5f7fa; }

.empty-state {
  text-align: center; padding: 80px 20px;
  color: #c0c4cc; font-size: 13px;
}

/* ===== Pagination ===== */
.pagination-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid #ebeef5;
  background: #fafafa; flex-shrink: 0;
}
.pagination-left {
  font-size: 13px; color: #606266;
  display: flex; align-items: center; gap: 12px;
}
.page-size-sel {
  height: 28px; padding: 0 8px;
  border: 1px solid #dcdfe6; border-radius: 4px;
  font-size: 12px; color: #606266; background: #fff;
  cursor: pointer; outline: none; font-family: inherit;
}
.pagination-right { display: flex; align-items: center; gap: 6px; }
.pagination-controls {
  display: flex; align-items: center; gap: 10px;
}
.page-nav {
  display: flex; align-items: center; gap: 4px;
}
.page-ellipsis {
  font-size: 13px; color: #c0c4cc;
  padding: 0 4px; user-select: none;
}
.page-btn {
  min-width: 28px; height: 28px; padding: 0 8px;
  border: 1px solid #dcdfe6; border-radius: 4px;
  background: #fff; color: #606266; font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; font-family: inherit;
}
.page-btn:hover:not(:disabled) { color: #4084f2; border-color: #c6e2ff; }
.page-btn.active { background: #4084f2; border-color: #4084f2; color: #fff; }
.page-btn:disabled, .page-btn.disabled { cursor: not-allowed; opacity: .5; }
.page-jump {
  font-size: 13px; color: #606266;
  display: flex; align-items: center; gap: 6px;
}
.page-jump input {
  width: 44px; height: 28px;
  border: 1px solid #dcdfe6; border-radius: 4px;
  text-align: center; font-size: 13px; color: #606266;
  outline: none; font-family: inherit;
}
.page-jump input:focus { border-color: #4084f2; }

/* ===== Action Links ===== */
.action-link {
  color: #4084f2; font-size: 13px; cursor: pointer;
  text-decoration: none; transition: color .2s;
  background: none; border: none; padding: 0; font-family: inherit;
}
.action-link:hover { color: #3370d9; text-decoration: underline; }
.action-link.danger { color: #f56c6c; }
.action-link.danger:hover { color: #dd6161; }
.action-link + .action-link { margin-left: 12px; }

/* ===== Blank Page ===== */
.blank-page {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #c0c4cc; background: #f5f7fa;
}
.blank-page svg {
  width: 80px; height: 80px;
  stroke: #dcdfe6; fill: none; stroke-width: 1.2;
  margin-bottom: 20px;
}
.blank-page .blank-text { font-size: 15px; color: #909399; }
.blank-page .blank-subtext { font-size: 13px; color: #c0c4cc; margin-top: 8px; }

/* ===== Feedback Modal ===== */
.modal-overlay {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.45);
  z-index: 2000; align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-dialog {
  width: 620px; max-height: 90vh;
  background: #fff; border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  display: flex; flex-direction: column; overflow: hidden;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid #ebeef5; flex-shrink: 0;
}
.modal-title { font-size: 16px; font-weight: 600; color: #303133; }
.modal-close {
  width: 28px; height: 28px;
  border: none; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; transition: background .2s; padding: 0;
}
.modal-close:hover { background: #f5f7fa; }
.modal-close svg { width: 18px; height: 18px; stroke: #909399; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid #ebeef5;
  display: flex; justify-content: flex-end; gap: 10px;
  flex-shrink: 0;
}

/* ===== Form Controls (Modal) ===== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 13px; font-weight: 500;
  color: #606266; margin-bottom: 8px;
}
.form-label .required { color: #f56c6c; margin-right: 3px; }
.form-select, .form-input, .form-textarea {
  width: 100%; height: 36px;
  padding: 0 12px;
  border: 1px solid #dcdfe6; border-radius: 4px;
  font-size: 13px; color: #606266; background: #fff;
  outline: none; transition: border-color .2s; font-family: inherit;
}
.form-select:focus, .form-input:focus, .form-textarea:focus {
  border-color: #4084f2; box-shadow: 0 0 0 2px rgba(64,132,242,.1);
}
.form-textarea { height: 120px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.textarea-footer { text-align: right; font-size: 12px; color: #c0c4cc; margin-top: 4px; }
.upload-area {
  border: 1px dashed #dcdfe6; border-radius: 4px;
  padding: 28px 20px; text-align: center;
  cursor: pointer; transition: border-color .2s, background .2s;
  background: #fafafa;
}
.upload-area:hover { border-color: #4084f2; background: #ecf5ff; }
.upload-area svg {
  width: 36px; height: 36px; stroke: #c0c4cc;
  fill: none; stroke-width: 1.5; margin-bottom: 8px;
}
.upload-tip { font-size: 12px; color: #909399; line-height: 1.6; }
.upload-tip a { color: #4084f2; cursor: pointer; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

/* ===== 关联报表名称搜索下拉 ===== */
.fb-search-wrap { position: relative; }
.fb-search-dropdown {
  display: none; position: absolute; z-index: 2100;
  top: 100%; left: 0; right: 0;
  max-height: 200px; overflow-y: auto;
  background: #fff; border: 1px solid #e4e7ed;
  border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,.1);
  list-style: none; margin: 4px 0 0; padding: 4px 0;
}
.fb-search-dropdown.show { display: block; }
.fb-rn-item {
  padding: 8px 12px; font-size: 13px; color: #303133;
  cursor: pointer; line-height: 1.4;
  transition: background .15s;
}
.fb-rn-item:hover { background: #ecf5ff; color: #4084f2; }
.fb-rn-item.fb-rn-empty {
  color: #c0c4cc; cursor: default;
}
.fb-rn-item.fb-rn-empty:hover { background: transparent; color: #c0c4cc; }

.btn-modal-cancel {
  height: 34px; padding: 0 20px;
  border: 1px solid #dcdfe6; border-radius: 4px;
  background: #fff; color: #606266; font-size: 13px;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.btn-modal-cancel:hover { color: #4084f2; border-color: #c6e2ff; background: #ecf5ff; }
.btn-modal-submit {
  height: 34px; padding: 0 20px;
  border: 1px solid #4084f2; border-radius: 4px;
  background: #4084f2; color: #fff; font-size: 13px;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.btn-modal-submit:hover { background: #3370d9; border-color: #3370d9; }

/* ===== Floating Button ===== */
.float-btn {
  position: fixed; right: 6px; bottom: 120px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #4084f2;
  box-shadow: 0 4px 16px rgba(64,132,242,.4);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: grab; z-index: 999;
  transition: box-shadow .2s, right .3s ease;
  border: none; padding: 0; user-select: none; touch-action: none;
}
.float-btn:active { cursor: grabbing; }
.float-btn:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(64,132,242,.5); }
.float-btn.dragging { transition: none !important; transform: none !important; }
.float-btn svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.float-text { font-size: 10px; color: #fff; margin-top: 1px; letter-spacing: .5px; }

/* ============================================================
   Access Management Pages (准入管理专用样式)
   ============================================================ */

/* Page content area for sub-pages */
.sub-page-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== Scroll chain fix: 修复所有页面无法滚动的问题 ===== */
/* 目录页表格视图容器 — 作为 flex 列容器 */
.catalog-content {
  display: flex; flex-direction: column;
  flex: 1; overflow: hidden;
}
/* 目录页空白子页面视图 — 作为 flex 列容器，约束子元素高度 */
.catalog-blank-view {
  display: flex; flex-direction: column;
  flex: 1; overflow: hidden;
}
/* 子页面内容区 — 填充高度，作为flex容器使子元素能正确计算高度，内容溢出时滚动 */
.sub-page-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
}

/* ===== 准入列表页 ===== */
.access-list-page {
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden;
}

/* ===== 准入申请表单页 — 全新排版 ===== */
.form-page {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 24px 24px;
}

/* -- 步骤指示器 -- */
.steps-bar {
  display: flex; align-items: center;
  padding: 20px 0;
  margin-bottom: 8px;
}
.step-item {
  display: flex; align-items: center;
  flex: 1; position: relative;
}
.step-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #f0f2f5;
  border: 2px solid #dcdfe6;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: #909399;
  flex-shrink: 0; transition: all .3s;
}
.step-item.active .step-circle {
  background: #4084f2; border-color: #4084f2; color: #fff;
}
.step-item.completed .step-circle {
  background: #67c23a; border-color: #67c23a; color: #fff;
}
.step-line {
  flex: 1; height: 2px;
  background: #dcdfe6; margin: 0 12px;
  transition: background .3s;
  min-width: 24px;
}
.step-item.completed .step-line { background: #67c23a; }
.step-item:last-child .step-line { display: none; }
.step-label {
  font-size: 13px; color: #909399;
  margin-left: 10px; white-space: nowrap;
  transition: color .3s;
}
.step-item.active .step-label { color: #4084f2; font-weight: 500; }
.step-item.completed .step-label { color: #67c23a; }

/* -- 表单卡片 -- */
.form-card {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #ebeef5;
  padding: 24px 28px;
  margin-bottom: 16px;
}
.form-card-title {
  font-size: 15px; font-weight: 600;
  color: #303133;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ebeef5;
  display: flex; align-items: center; gap: 8px;
}
.form-card-title::before {
  content: '';
  width: 4px; height: 18px;
  background: #4084f2; border-radius: 2px;
}
.form-card-desc {
  font-size: 13px; color: #909399;
  margin-bottom: 18px; line-height: 1.6;
}

/* -- 表单网格布局 (label在顶部) -- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px 20px;
}
.form-grid-item { min-width: 0; }
.form-grid-item.span-full { grid-column: 1 / -1; }

.form-grid-label {
  display: block;
  font-size: 13px; font-weight: 500;
  color: #606266;
  margin-bottom: 6px;
}
.form-grid-label .required { color: #f56c6c; margin-right: 3px; }

.form-grid-input,
.form-grid-select {
  width: 100%; height: 36px;
  padding: 0 12px;
  border: 1px solid #dcdfe6; border-radius: 4px;
  font-size: 13px; color: #303133; background: #fff;
  outline: none; transition: border-color .2s; font-family: inherit;
}
.form-grid-input:focus,
.form-grid-select:focus { border-color: #4084f2; box-shadow: 0 0 0 2px rgba(64,132,242,.1); }
.form-grid-input::placeholder { color: #c0c4cc; }

.form-grid-textarea {
  width: 100%; min-height: 70px;
  padding: 10px 12px;
  border: 1px solid #dcdfe6; border-radius: 4px;
  font-size: 13px; color: #303133; background: #fff;
  outline: none; transition: border-color .2s; font-family: inherit;
  resize: vertical; line-height: 1.7;
}
.form-grid-textarea:focus { border-color: #4084f2; box-shadow: 0 0 0 2px rgba(64,132,242,.1); }
.form-grid-hint {
  font-size: 12px; color: #909399;
  margin-top: 6px; line-height: 1.5;
}

/* -- 上传卡片区域 -- */
.attach-section { margin-top: 8px; }
.attach-notice {
  font-size: 13px; color: #e6a23c;
  padding: 10px 14px; margin-bottom: 16px;
  background: #fdf6ec; border: 1px solid #faecd8;
  border-radius: 4px;
  display: flex; align-items: center; gap: 8px;
}
/* -- 附件资料紧凑横排布局（参考截图）-- */
.attach-compact-row {
  border: 1px solid #ebeef5; border-radius: 4px; overflow: hidden;
}
.attach-compact-item {
  display: flex; align-items: center;
  padding: 0 12px; height: 40px;
  border-bottom: 1px solid #f0f0f0; background: #fff;
  font-size: 13px;
}
.attach-compact-item:last-child { border-bottom: none; }
.attach-compact-label {
  width: 80px; color: #606266; flex-shrink: 0; text-align: right; padding-right: 12px;
}
.attach-compact-upload {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; user-select: none;
}
.attach-compact-upload:hover .attach-compact-link {
  text-decoration: underline;
}
.attach-compact-link {
  font-size: 13px; color: #4084f2;
}
.attach-compact-status {
  font-size: 12px; color: #c0c4cc;
}
.attach-compact-format {
  font-size: 12px; color: #909399; margin-left: auto; flex-shrink: 0;
}

/* 已上传附件文件列表 */
.attach-file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  background: #f5f7fa;
  border-radius: 4px;
  border: 1px solid #ebeef5;
}
.attach-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #e4e7ed;
  font-size: 12px;
  transition: all .2s;
}
.attach-file-item:hover {
  border-color: #c6e2ff;
  box-shadow: 0 1px 4px rgba(64,132,242,.1);
}
.attach-file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.attach-file-name {
  color: #303133;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
  cursor: default;
}
.attach-file-size {
  color: #909399;
  font-size: 11px;
  margin-left: auto;
  flex-shrink: 0;
}
.attach-file-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #909399;
  font-size: 16px;
  font-style: normal;
  text-decoration: none;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all .2s;
  cursor: pointer;
  line-height: 1;
}
.attach-file-remove:hover {
  color: #f56c6c;
  background: #fef0f0;
}

.attach-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.attach-card {
  border: 1px solid #ebeef5;
  border-radius: 6px;
  padding: 10px 14px; background: #fafafa;
  transition: border-color .2s, box-shadow .2s;
}
.attach-card:hover { border-color: #4084f2; box-shadow: 0 2px 8px rgba(64,132,242,.1); }
.attach-card-header {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 8px;
}
.attach-card-icon {
  width: 24px; height: 24px;
  border-radius: 4px;
  background: #ecf5ff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.attach-card-icon svg { width: 14px; height: 14px; stroke: #4084f2; fill: none; stroke-width: 1.8; }
.attach-card-title { font-size: 12px; font-weight: 500; color: #303133; }
.attach-card-title .required { color: #f56c6c; margin-right: 3px; }
.attach-compact-label .required { color: #f56c6c; margin-right: 3px; }
.attach-card .upload-area {
  border: 1px dashed #dcdfe6; border-radius: 6px;
  padding: 14px 10px; text-align: center;
  cursor: pointer; transition: all .2s;
  background: #fff; margin-bottom: 6px;
}
.attach-card .upload-area:hover { border-color: #4084f2; background: #ecf5ff; }
.attach-card .upload-area svg {
  width: 24px; height: 24px; stroke: #c0c4cc;
  fill: none; stroke-width: 1.5; display: block;
  margin: 0 auto 4px;
}
.upload-card-text { font-size: 12px; color: #606266; font-weight: 500; margin-top: 2px; }
.upload-card-hint { font-size: 11px; color: #c0c4cc; margin-top: 2px; }
.upload-card-format { font-size: 11px; color: #909399; text-align: right; }

/* -- 提交按钮栏 -- */
.form-submit-bar {
  text-align: center; padding: 14px 0 18px;
}
.form-submit-bar .btn-submit-lg {
  height: 34px;
  padding: 0 20px; font-size: 13px; font-weight: 500;
  border-radius: 4px;
  background: #4084f2; border: 1px solid #4084f2;
  color: #fff; cursor: pointer;
  transition: all .2s; font-family: inherit;
}
.form-submit-bar .btn-submit-lg:hover { background: #3370d9; border-color: #3370d9; box-shadow: 0 2px 8px rgba(64,132,242,.3); }

/* ============================================================
   Design & Filing pages
   ============================================================ */
.sub-page-desc {
  background: #fff; border-radius: 4px;
  border: 1px solid #ebeef5;
  padding: 20px 24px; margin-bottom: 16px;
}
.sub-page-desc h3 { font-size: 14px; font-weight: 600; color: #303133; margin-bottom: 10px; }
.sub-page-desc p { font-size: 13px; color: #606266; line-height: 1.8; }

.sub-form-card {
  background: #fff; border-radius: 4px;
  border: 1px solid #ebeef5; padding: 20px 24px;
}
.sub-form-card h3 {
  font-size: 14px; font-weight: 600; color: #303133;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid #ebeef5;
}
.sub-form-row { display: flex; gap: 16px; margin-bottom: 14px; }
.sub-form-group { flex: 1; }
.sub-form-group.full-width { flex: 100%; }
.sub-form-label {
  display: block; font-size: 13px; color: #606266; margin-bottom: 6px;
}
.sub-form-label .required { color: #f56c6c; margin-right: 3px; }
.sub-form-input, .sub-form-select, .sub-form-textarea {
  width: 100%; height: 34px; padding: 0 11px;
  border: 1px solid #dcdfe6; border-radius: 4px;
  font-size: 13px; color: #606266; background: #fff;
  outline: none; transition: border-color .2s; font-family: inherit;
}
.sub-form-input:focus, .sub-form-select:focus, .sub-form-textarea:focus {
  border-color: #4084f2; box-shadow: 0 0 0 2px rgba(64,132,242,.1);
}
.sub-form-textarea { height: 80px; padding: 8px 11px; resize: vertical; line-height: 1.6; }
.sub-btn-bar {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid #ebeef5;
}

.sub-table-card {
  background: #fff; border-radius: 4px;
  border: 1px solid #ebeef5; overflow: hidden;
}
.sub-table-card h3 {
  font-size: 14px; font-weight: 600; color: #303133;
  padding: 16px 20px; border-bottom: 1px solid #ebeef5;
}
.sub-data-table { width: 100%; border-collapse: collapse; }
.sub-data-table th {
  background: #fafafa; padding: 10px 14px;
  font-size: 13px; font-weight: 600; color: #909399;
  text-align: left; border-bottom: 1px solid #ebeef5; white-space: nowrap;
}
.sub-data-table td {
  padding: 10px 14px; font-size: 13px; color: #606266;
  border-bottom: 1px solid #f0f0f0;
}
.sub-data-table tr:hover { background: #f5f7fa; }

/* ============================================================
   Toast 通知
   ============================================================ */
.app-toast {
  position: fixed; top: 60px; left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 12px 32px;
  background: #67c23a; color: #fff;
  font-size: 14px; border-radius: 6px;
  box-shadow: 0 4px 16px rgba(103,194,58,.35);
  z-index: 9999; opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none; white-space: nowrap;
}
.app-toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.app-toast.toast-success {
  background: #67c23a; color: #fff;
  box-shadow: 0 4px 16px rgba(103,194,58,.35);
}
.app-toast.toast-error {
  background: #f56c6c; color: #fff;
  box-shadow: 0 4px 16px rgba(245,108,108,.35);
}

/* ============================================================
   审核详情页 (access-review)
   ============================================================ */

.review-page {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* --- 审核页标题栏 --- */
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #ebeef5;
  flex-shrink: 0;
}
.review-header .review-title {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}
.review-header .back-btn {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  flex-shrink: 0;
}
.review-header .back-btn:hover {
  color: #4084f2;
  border-color: #c6e2ff;
  background: #ecf5ff;
}

/* --- 版本号切换 --- */
.version-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.version-label {
  font-size: 12px;
  color: #909399;
  white-space: nowrap;
}
.version-sel {
  height: 26px;
  padding: 0 8px;
  font-size: 12px;
  border: 1px solid #d9ecff;
  border-radius: 4px;
  background: #ecf5ff;
  color: #4084f2;
  cursor: pointer;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.version-sel:hover {
  border-color: #4084f2;
}
.version-sel:focus {
  border-color: #4084f2;
}
.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #4084f2;
  background: #ecf5ff;
  border: 1px solid #d9ecff;
  border-radius: 4px;
  white-space: nowrap;
}

/* --- 元信息条 --- */
.review-meta-bar {
  background: #f0f7ff;
  border-bottom: 1px solid #d6e8ff;
  padding: 12px 24px;
  flex-shrink: 0;
}
.review-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px 32px;
}
.review-meta-item {
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.8;
}
.review-meta-label {
  color: #909399;
  white-space: nowrap;
  margin-right: 8px;
}
.review-meta-value {
  color: #303133;
  word-break: break-all;
}

/* --- 主体区域：左内容 + 右侧边栏 --- */
.review-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  padding: 16px 24px 24px;
  gap: 16px;
}
.review-main {
  flex: 1;
  min-width: 0;
}
.review-sidebar {
  width: 320px;
  min-width: 320px;
  flex-shrink: 0;
}
.review-sidebar-title {
  font-size: 14px;
  font-weight: 600;
  color: #303133;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 6px 6px 0 0;
  border-bottom: none;
}

/* --- 流程步骤（审核页专用） --- */
.review-steps-container {
  display: flex;
  align-items: flex-start;
  padding: 8px 0 4px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c0c4cc transparent;
}
.review-steps-container::-webkit-scrollbar {
  height: 4px;
}
.review-steps-container::-webkit-scrollbar-thumb {
  background: #c0c4cc;
  border-radius: 2px;
}
.review-steps-container::-webkit-scrollbar-track {
  background: transparent;
}
.review-step-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  min-width: 120px;
  flex: 0 0 auto;
}
.review-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f2f5;
  border: 2px solid #dcdfe6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #909399;
  flex-shrink: 0;
  transition: all .3s;
}
.review-step-circle svg {
  width: 18px;
  height: 18px;
}
.review-step-item.active .review-step-circle {
  background: #4084f2;
  border-color: #4084f2;
  color: #fff;
}
.review-step-item.completed .review-step-circle {
  background: #4084f2;
  border-color: #4084f2;
  color: #fff;
}
.review-step-label {
  font-size: 13px;
  color: #606266;
  margin-top: 8px;
  white-space: nowrap;
}
.review-step-item.active .review-step-label {
  color: #4084f2;
  font-weight: 500;
}
.review-step-item.completed .review-step-label {
  color: #303133;
}

/* 流程步骤审核信息区域 */
.review-step-info {
  margin-top: 6px;
  width: 100%;
}
.review-step-dept {
  font-size: 12px;
  color: #909399;
  margin-top: 4px;
  white-space: normal;
  max-width: 180px;
  word-break: break-all;
  line-height: 1.4;
}
.review-step-item.active .review-step-dept {
  color: #606266;
}
.review-step-item.completed .review-step-dept {
  color: #909399;
}
.review-step-reviewer {
  font-size: 12px;
  color: #b0b3b8;
  margin-top: 2px;
  white-space: normal;
  max-width: 180px;
  word-break: break-all;
  line-height: 1.4;
}
.review-step-item.active .review-step-reviewer {
  color: #909399;
}
.review-step-item.completed .review-step-reviewer {
  color: #b0b3b8;
}
.review-step-time {
  font-size: 11px;
  color: #c0c4cc;
  margin-top: 2px;
  white-space: nowrap;
}
.review-step-item.completed .review-step-time {
  color: #c0c4cc;
}
.review-step-comment {
  font-size: 11px;
  color: #e6a23c;
  margin-top: 4px;
  white-space: normal;
  max-width: 180px;
  word-break: break-all;
  line-height: 1.5;
}
.review-step-line {
  width: 30px;
  min-width: 20px;
  height: 2px;
  background: #dcdfe6;
  margin-top: 17px;
  flex-shrink: 0;
  transition: background .3s;
}
.review-step-line.completed {
  background: #4084f2;
}

/* --- 基本信息网格 --- */
.review-info-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.review-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1px 8px;
  padding: 3px 0;
  border-bottom: 1px solid #f5f5f5;
}
.review-info-row:last-child {
  border-bottom: none;
}
.review-info-item {
  display: flex;
  align-items: baseline;
  font-size: 12px;
  line-height: 1.4;
}
.review-info-label {
  color: #909399;
  white-space: nowrap;
  margin-right: 3px;
  min-width: 40px;
  flex-shrink: 0;
  font-size: 12px;
}
.review-info-value {
  color: #303133;
  word-break: break-all;
  font-size: 12px;
}

/* --- 附件区域 --- */
.review-attach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.review-attach-item {
  border: 1px solid #ebeef5;
  border-radius: 4px;
  padding: 4px 8px;
  background: #fafafa;
}
.review-attach-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}
.review-attach-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: #ecf5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-attach-icon svg {
  width: 10px;
  height: 10px;
  stroke: #4084f2;
  fill: none;
  stroke-width: 1.8;
}
.review-attach-title {
  font-size: 11px;
  font-weight: 500;
  color: #303133;
}
.review-attach-body {
  display: flex;
  align-items: center;
  padding: 2px 0;
}
.review-attach-empty {
  color: #c0c4cc;
  font-size: 11px;
}
.review-attach-file {
  color: #4084f2;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}
.review-attach-file:hover {
  text-decoration: underline;
  color: #3370d9;
}

/* --- 流程动态（右侧边栏，匹配操作日志截图样式） --- */
.review-timeline {
  background: #fff;
  border: 1px solid #ebeef5;
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 12px 14px 20px;
}
/* 时间线主节点 */
.review-tl-item {
  display: flex; gap: 10px; position: relative; padding-bottom: 4px;
}
.review-tl-item::before {
  content: ''; position: absolute; left: 4.5px; top: 18px;
  bottom: -4px; width: 1px; background: #e0e3e8;
}
.review-tl-item:last-child::before { display: none; }
.review-tl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #4084f2; flex-shrink: 0; margin-top: 4px;
  position: relative; z-index: 1;
}
.review-tl-body { flex: 1; min-width: 0; padding-bottom: 14px; }
/* 节点名称行：名称 + 时间并排 */
.review-tl-row { font-size: 12px; line-height: 1.8; color: #606266; }
.review-tl-name-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.review-tl-name { font-size: 13px; font-weight: 600; color: #303133; }
.review-tl-time { font-size: 11px; color: #909399; white-space: nowrap; flex-shrink: 0; }
/* 标签 + 值（操作人为普通文本） */
.review-tl-label { color: #909399; flex-shrink: 0; }
.review-tl-operator-text { color: #303133; }
.review-tl-dept { color: #606266; }
.review-tl-content { color: #303133; word-break: break-all; }
/* 查看详情链接 */
.review-tl-link {
  color: #4084f2; font-size: 12px; cursor: pointer;
  text-decoration: none; margin-left: 6px;
}
.review-tl-link:hover { text-decoration: underline; }

/* 当前工单节点高亮（工单维度"审核动态"使用） */
.review-tl-item-current .review-tl-dot {
  background: #67c23a;
  box-shadow: 0 0 0 3px rgba(103, 194, 58, 0.18);
}
.review-tl-item-current .review-tl-name { color: #67c23a; }
.review-tl-current-badge {
  display: inline-block; margin-left: 6px; padding: 0 6px;
  font-size: 11px; font-weight: 500; line-height: 16px;
  color: #67c23a; background: #f0f9eb; border: 1px solid #e1f3d8;
  border-radius: 3px; vertical-align: middle;
}

/* --- 审核流程详情弹窗（流程动态"查看详情"触发） --- */
.audit-detail-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
}
.audit-detail-dialog {
  width: 780px; max-height: 80vh; border-radius: 8px;
  background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  display: flex; flex-direction: column;
}
.audit-detail-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #ebeef5;
  flex-shrink: 0;
}
.audit-detail-title { font-size: 15px; font-weight: 600; color: #303133; }
.audit-detail-close {
  width: 28px; height: 28px; border: none; background: none;
  font-size: 20px; color: #c0c4cc; cursor: pointer;
  border-radius: 50%; transition: all .2s;
}
.audit-detail-close:hover { background: #f5f5f5; color: #909399; }
.audit-detail-body { padding: 16px 20px; overflow-y: auto; flex: 1; }
.audit-detail-footer {
  padding: 12px 20px; border-top: 1px solid #ebeef5;
  text-align: right; flex-shrink: 0;
}

/* --- 审核详情页 - 详细模式专用样式 --- */

/* 标题栏（带背景色） */
.review-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #e8f3ff;
  border-bottom: 1px solid #d6e8ff;
  flex-shrink: 0;
}
.review-detail-header-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d2129;
}
.adjust-header-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #e6a23c;
  background: #fdf6ec;
  border: 1px solid #faecd8;
  border-radius: 12px;
  white-space: nowrap;
}
.adjust-tab-badge {
  font-size: 12px;
  font-weight: 400;
  background: #fdf6ec;
  color: #e6a23c;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #faecd8;
  margin-left: 4px;
  white-space: nowrap;
}
.review-detail-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* 导出按钮 */
.btn-export {
  height: 32px;
  padding: 0 16px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  border: none;
  border-radius: 4px;
  background: #4084f2;
  color: #fff;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  flex-shrink: 0;
}
.btn-export:hover {
  background: #3370d6;
}

/* 配置按钮（进入表格设计器） */
.btn-config {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #4084f2;
  border-radius: 4px;
  background: #fff;
  color: #4084f2;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  flex-shrink: 0;
}
.btn-config:hover {
  background: #ecf5ff;
  border-color: #4084f2;
}

/* 简单模式 header 右侧按钮区 */
.review-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* 审核详情页（详细模式）返回按钮 — 保持与 .review-header .back-btn 一致 */
.review-detail-header-actions .back-btn {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  flex-shrink: 0;
}
.review-detail-header-actions .back-btn:hover {
  color: #4084f2;
  border-color: #c6e2ff;
  background: #ecf5ff;
}

/* 申请调整按钮 */
.btn-adjust {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #67c23a;
  border-radius: 4px;
  background: #fff;
  color: #67c23a;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  flex-shrink: 0;
}
.btn-adjust:hover {
  background: #f0f9eb;
  border-color: #67c23a;
}

/* 申请退出按钮 */
.btn-exit {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #f56c6c;
  border-radius: 4px;
  background: #fff;
  color: #f56c6c;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  flex-shrink: 0;
}
.btn-exit:hover {
  background: #fef0f0;
  border-color: #f56c6c;
}

/* 退出申请弹窗 */
.exit-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exit-modal-dialog {
  background: #fff;
  border-radius: 8px;
  width: 580px;
  max-width: 90vw;
  max-height: 85vh;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.exit-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #ebeef5;
}
.exit-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}
.exit-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
.exit-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}
.exit-info-box {
  background: #f5f7fa;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.exit-info-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.exit-info-row:last-child {
  margin-bottom: 0;
}
.exit-label {
  font-size: 13px;
  color: #909399;
  width: 72px;
  flex-shrink: 0;
}
.exit-value {
  font-size: 13px;
  color: #303133;
}
.exit-form-group {
  margin-bottom: 16px;
}
.exit-form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #303133;
  margin-bottom: 8px;
}
.exit-textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  resize: vertical;
  font-family: inherit;
  color: #303133;
  box-sizing: border-box;
  outline: none;
  transition: border-color .2s;
}
.exit-textarea:focus {
  border-color: #4084f2;
}
.exit-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exit-radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #606266;
}
.exit-radio-item input[type="radio"] {
  accent-color: #4084f2;
}
.exit-radio-text {
  font-size: 13px;
}
.exit-task-link {
  padding: 10px 0 0;
  border-top: 1px solid #ebeef5;
}
.exit-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid #ebeef5;
}

/* 申请调整弹窗 — 统一全局弹窗风格 */
.adjust-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adjust-modal-dialog {
  background: #fff;
  border-radius: 8px;
  width: 480px;
  max-width: 90vw;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.adjust-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #ebeef5;
  flex-shrink: 0;
}
.adjust-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.adjust-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}
.adjust-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: background .2s;
}
.adjust-modal-close:hover {
  background: #f5f7fa;
}
.adjust-modal-close svg {
  width: 18px;
  height: 18px;
  stroke: #909399;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adjust-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}
.adjust-info-box {
  background: #f5f7fa;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.adjust-info-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.adjust-info-row:last-child {
  margin-bottom: 0;
}
.adjust-label {
  font-size: 13px;
  color: #909399;
  width: 72px;
  flex-shrink: 0;
}
.adjust-value {
  font-size: 13px;
  color: #303133;
}
.adjust-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  background: #fdf6ec;
  border: 1px solid #faecd8;
  border-radius: 6px;
  font-size: 13px;
  color: #e6a23c;
  line-height: 1.6;
}
.adjust-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1px solid #ebeef5;
  flex-shrink: 0;
}

/* ===== 调整内容对比区域 — 卡片分组精简版 ===== */
.adj-compare-card {
  margin: 12px 24px 0 24px;
  padding: 10px 14px !important;
  border-left: 3px solid #e6a23c !important;
}
.adj-compare-header {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 6px; margin-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
}
.adj-compare-title {
  font-size: 13px; font-weight: 600; color: #303133;
}
/* 可滚动内容区 */
.adj-compare-body {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}
.adj-compare-body::-webkit-scrollbar { width: 4px; }
.adj-compare-body::-webkit-scrollbar-thumb { background: #dcdfe6; border-radius: 2px; }
.adj-compare-body::-webkit-scrollbar-track { background: transparent; }
/* 分组 */
.adj-group { margin-bottom: 8px; }
.adj-group:last-child { margin-bottom: 0; }
.adj-group-title {
  display: flex; align-items: center; gap: 6px;
  padding: 2px 0; margin-bottom: 2px;
}
.adj-group-name {
  font-size: 12px; font-weight: 600; color: #606266;
  position: relative; padding-left: 10px;
}
.adj-group-name::before {
  content: ''; position: absolute; left: 0; top: 2px;
  width: 3px; height: 12px; background: #e6a23c; border-radius: 2px;
}
.adj-group-count {
  font-size: 11px; color: #909399;
}
/* 对比表格 */
.adj-table {
  width: 100%; border-collapse: collapse;
  font-size: 12px; line-height: 1.5;
  border: 1px solid #ebeef5; border-radius: 4px; overflow: hidden;
}
.adj-table thead th {
  background: #fafafa; color: #909399; font-weight: 500;
  padding: 4px 8px; text-align: left; font-size: 12px;
  border-bottom: 1px solid #ebeef5;
}
.adj-table tbody td {
  padding: 3px 8px; border-bottom: 1px solid #f5f5f5;
  vertical-align: top; word-break: break-all;
}
.adj-table tbody tr:last-child td { border-bottom: none; }
.adj-td-label {
  color: #909399; font-size: 12px; white-space: nowrap;
}
.adj-td-old {
  color: #909399;
}
.adj-td-arrow {
  text-align: center; color: #c0c4cc; font-size: 12px;
}
.adj-td-new {
  color: #303133; font-weight: 500;
}

/* ===== 已退出报表-还原确认弹窗 ===== */
.rb-restore-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.45); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.rb-restore-dialog {
  background: #fff; border-radius: 8px; width: 460px;
  box-shadow: 0 4px 24px rgba(0,0,0,.15); overflow: hidden;
}
.rb-restore-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid #f0f0f0;
}
.rb-restore-title { font-size: 15px; font-weight: 600; color: #303133; }
.rb-restore-close {
  background: none; border: none; cursor: pointer; padding: 2px;
  display: flex; align-items: center;
}
.rb-restore-body { padding: 16px 20px; }
.rb-restore-info {
  background: #fafafa; border-radius: 4px; padding: 10px 14px; margin-bottom: 12px;
}
.rb-restore-info-row {
  display: flex; align-items: center; padding: 3px 0; font-size: 13px;
}
.rb-restore-info-label { width: 72px; color: #909399; flex-shrink: 0; }
.rb-restore-info-value { color: #303133; }
.rb-restore-notice {
  display: flex; align-items: flex-start; gap: 8px;
  background: #fdf6ec; border: 1px solid #faecd8; border-radius: 4px;
  padding: 10px 12px; font-size: 13px; color: #606266; line-height: 1.6;
}
.rb-restore-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 12px 20px; border-top: 1px solid #f0f0f0;
}

/* ===== 审核操作自定义弹窗 ===== */
.audit-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.audit-modal-dialog {
  background: #fff;
  border-radius: 8px;
  width: 460px;
  max-width: 90vw;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.audit-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #ebeef5;
  flex-shrink: 0;
}
.audit-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.audit-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}
.audit-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: background .2s;
}
.audit-modal-close:hover {
  background: #f5f7fa;
}
.audit-modal-close svg {
  width: 18px;
  height: 18px;
  stroke: #909399;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.audit-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}
.audit-info-box {
  background: #f5f7fa;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.audit-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.audit-info-label {
  font-size: 13px;
  color: #909399;
  flex-shrink: 0;
}
.audit-info-value {
  font-size: 13px;
  color: #303133;
  font-weight: 500;
}
.audit-notice {
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: #606266;
  line-height: 1.6;
  white-space: pre-line;
}
.audit-form-group {
  margin-bottom: 8px;
}
.audit-form-label {
  display: block;
  font-size: 13px;
  color: #606266;
  margin-bottom: 8px;
  font-weight: 500;
}
.audit-reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.audit-reason-chip {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  color: #606266;
  background: #f5f7fa;
  border: 1px solid #dcdfe6;
  border-radius: 16px;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}
.audit-reason-chip:hover {
  color: #e6a23c;
  border-color: #e6a23c;
}
.audit-reason-chip.active {
  color: #e6a23c;
  background: #fdf6ec;
  border-color: #e6a23c;
}
.audit-reason-textarea {
  width: 100%;
  min-height: 60px;
  padding: 8px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  font-size: 13px;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  font-family: inherit;
}
.audit-reason-textarea:focus {
  border-color: #e6a23c;
  box-shadow: 0 0 0 2px rgba(230, 162, 60, 0.1);
}
.audit-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1px solid #ebeef5;
  flex-shrink: 0;
}

/* ===== 审核弹窗 — 简洁统一样式（匹配截图） ===== */
.audit-review-dialog {
  width: 520px !important;
}
.audit-review-header {
  padding: 16px 24px !important;
  border-bottom: none !important;
}
.audit-review-body {
  padding: 8px 24px 16px !important;
}
.audit-review-form-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.audit-review-label {
  flex-shrink: 0;
  width: 56px;
  font-size: 14px;
  color: #606266;
  line-height: 32px;
  font-weight: 500;
}
.audit-review-textarea-wrap {
  flex: 1;
  position: relative;
}
.audit-review-textarea {
  width: 100%;
  min-height: 88px;
  padding: 8px 12px;
  padding-right: 50px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 14px;
  color: #303133;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
}
.audit-review-textarea:focus {
  border-color: #4084f2;
  box-shadow: 0 0 0 2px rgba(64, 132, 242, 0.1);
}
.audit-review-textarea::placeholder {
  color: #c0c4cc;
}
.audit-review-char-count {
  position: absolute;
  right: 10px;
  bottom: 6px;
  font-size: 12px;
  color: #c0c4cc;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.audit-review-footer {
  padding: 12px 24px 18px !important;
  border-top: none !important;
}
/* 审核通过按钮 — 蓝色 */
.btn-audit-pass {
  background: #4084f2;
  border-color: #4084f2;
  color: #fff;
  padding: 8px 28px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s;
}
.btn-audit-pass:hover {
  background: #66b1ff;
  border-color: #66b1ff;
}
/* 审核退回按钮 — 红色 */
.btn-audit-reject {
  background: #f56c6c;
  border-color: #f56c6c;
  color: #fff;
  padding: 8px 28px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s;
}
.btn-audit-reject:hover {
  background: #f78989;
  border-color: #f78989;
}

/* 审核弹窗 — 审核结果单选 */
.audit-result-options {
  display: flex; gap: 16px; margin-top: 4px;
}
.audit-result-item {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border: 2px solid #e4e7ed; border-radius: 8px;
  cursor: pointer; font-size: 14px; color: #606266; font-weight: 500;
  transition: all 0.25s ease; flex: 1; justify-content: center;
  background: #fff; user-select: none;
}
.audit-result-item:hover {
  border-color: #c0c4cc; background: #fafafa;
}
.audit-result-item.selected {
  border-color: #4084f2; background: #f0f5ff; color: #303133;
  box-shadow: 0 2px 8px rgba(64, 132, 242, 0.15);
}
/* 不通过选中 — 红色警告 */
.audit-result-item.selected-deny {
  border-color: #f56c6c; background: #fef0f0; color: #303133;
  box-shadow: 0 2px 8px rgba(245, 108, 108, 0.15);
}
.audit-result-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #dcdfe6; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease; position: relative;
}
.audit-result-item:hover .audit-result-radio {
  border-color: #c0c4cc;
}
.audit-result-item.selected .audit-result-radio {
  border-color: #4084f2; background: #4084f2;
}
.audit-result-item.selected .audit-result-radio::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
}
/* 不通过选中 — 红色radio */
.audit-result-item.selected-deny .audit-result-radio {
  border-color: #f56c6c; background: #f56c6c;
}

/* Tab 导航头部 */
.review-tab-header {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 2px solid #ebeef5;
  padding: 0 4px;
}
.review-tab-item {
  position: relative;
  padding: 10px 18px;
  font-size: 13px;
  color: #606266;
  cursor: pointer;
  user-select: none;
  transition: color .2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.review-tab-item:hover {
  color: #4084f2;
}
.review-tab-item.active {
  color: #4084f2;
  font-weight: 500;
  border-bottom-color: #4084f2;
}

/* 流程步骤审核意见 */
.review-step-comment {
  font-size: 11px;
  color: #e6a23c;
  margin-top: 4px;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 附件文件列表 */
.review-file-list {
  border: 1px solid #ebeef5;
  border-radius: 6px;
  overflow: hidden;
}
.review-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid #ebeef5;
  transition: background .15s;
}
.review-file-item:last-child {
  border-bottom: none;
}
.review-file-item:hover {
  background: #f5f7fa;
}
.review-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.review-file-name {
  font-size: 13px;
  color: #303133;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-file-download {
  flex-shrink: 0;
  margin-left: 12px;
}

/* ============================================================
   流程图按钮 & 弹窗样式
   ============================================================ */

/* 流程图查看按钮 */
.btn-flow-diagram {
  height: 30px;
  padding: 0 14px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #4084f2;
  border-radius: 4px;
  background: #ecf5ff;
  color: #4084f2;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  white-space: nowrap;
}
.btn-flow-diagram:hover {
  background: #4084f2;
  color: #fff;
}
.btn-flow-diagram::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234084f2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E") center/contain no-repeat;
}
.btn-flow-diagram:hover::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* 流程图弹窗遮罩 */
.flow-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.45);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-modal-dialog {
  width: 720px;
  max-width: 90vw;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  overflow: hidden;
}
.flow-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #ebeef5;
}
.flow-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}
.flow-modal-close {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background .2s;
  padding: 0;
}
.flow-modal-close:hover {
  background: #f5f7fa;
}
.flow-modal-body {
  padding: 28px 24px 24px;
}

/* 流程图容器 */
.flow-diagram-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 0;
}

/* 流程图节点 */
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 8px;
  border-radius: 8px;
  background: #f5f7fa;
  border: 2px solid #e4e7ed;
  transition: all .3s;
  min-width: 0;
}
.flow-node.completed {
  background: #f0f9eb;
  border-color: #67c23a;
}
.flow-node.active {
  background: #ecf5ff;
  border-color: #4084f2;
  box-shadow: 0 2px 12px rgba(64,132,242,.2);
}

/* 流程图节点图标 */
.flow-node-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  transition: all .3s;
}
.flow-node-icon.pending {
  background: #e4e7ed;
  color: #909399;
}
.flow-node-icon.current {
  background: #4084f2;
  color: #fff;
}
.flow-node-icon.done {
  background: #67c23a;
  color: #fff;
}
.flow-node-icon svg {
  width: 18px;
  height: 18px;
}

/* 流程图节点标题 */
.flow-node-title {
  font-size: 13px;
  font-weight: 500;
  color: #606266;
  word-break: break-all;
  line-height: 1.4;
}
.flow-node.completed .flow-node-title {
  color: #67c23a;
}
.flow-node.active .flow-node-title {
  color: #4084f2;
}

/* 流程图节点子部门标签（多部门联合审查） */
.flow-node-sub-depts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 8px;
}
.flow-sub-dept-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  color: #909399;
  background: #f0f2f5;
  border-radius: 3px;
  white-space: nowrap;
  line-height: 1.4;
}
.flow-node.active .flow-sub-dept-tag {
  color: #4084f2;
  background: #ecf5ff;
}
.flow-node.completed .flow-sub-dept-tag {
  color: #67c23a;
  background: #f0f9eb;
}

/* 流程图箭头 */
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dcdfe6;
  padding: 0 2px;
  flex-shrink: 0;
}
.flow-arrow.completed {
  color: #67c23a;
}

/* 流程图描述文字 */
.flow-diagram-desc {
  text-align: center;
  font-size: 13px;
  color: #606266;
  padding: 16px 0 20px;
  line-height: 1.8;
  border-top: 1px solid #ebeef5;
  margin-top: 16px;
}

/* 流程图图例 */
.flow-diagram-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 12px;
  color: #909399;
}
.flow-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.flow-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.flow-legend-dot.completed {
  background: #67c23a;
}
.flow-legend-dot.current {
  background: #4084f2;
}
.flow-legend-dot.pending {
  background: #e4e7ed;
}

/* ============================================================
   表格预览 Tab — Excel 风格表格
   ============================================================ */
.excel-preview-container {
  padding: 16px;
  background: #fff;
}
.excel-table {
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  overflow: hidden;
}
.excel-row {
  display: flex;
  border-bottom: 1px solid #ebeef5;
}
.excel-row:last-child {
  border-bottom: none;
}
.excel-cell {
  min-height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 10px;
  border-right: 1px solid #ebeef5;
  box-sizing: border-box;
  font-size: 13px;
}
.excel-cell:last-child {
  border-right: none;
}
/* 标题行 */
.excel-title-row {
  background: #f5f7fa;
}
.excel-title {
  font-size: 14px;
  font-weight: 600;
  color: #303133;
  text-align: center;
  min-height: 42px;
}
/* 列头 */
.excel-header {
  background: #fafafa;
}
.excel-col-code {
  font-size: 11px;
  color: #909399;
  margin-bottom: 2px;
}
.excel-col-name {
  font-size: 13px;
  color: #303133;
  font-weight: 500;
}
/* 数据行 */
.excel-data {
  background: #fff;
  min-height: 32px;
}
/* 汇总行 */
.excel-summary {
  background: #fdf6ec;
  font-size: 13px;
  color: #606266;
}

/* ============================================================
   数据项 Tab — 字段配置表格
   ============================================================ */
.data-items-container {
  padding: 0;
}
.data-items-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #ebeef5;
}
.data-items-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #303133;
}
.data-items-actions {
  display: flex;
  gap: 8px;
}
.btn-export-sm {
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  border: none;
  border-radius: 4px;
  background: #4084f2;
  color: #fff;
  cursor: pointer;
  transition: background .2s;
  font-family: inherit;
}
.btn-export-sm:hover {
  background: #2d6fd6;
}
.data-items-table-wrap {
  overflow-x: auto;
}
.data-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.data-items-table thead th {
  background: #fafafa;
  padding: 10px 16px;
  text-align: left;
  font-weight: 500;
  color: #606266;
  border-bottom: 1px solid #ebeef5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.data-items-table tbody td {
  padding: 10px 16px;
  color: #303133;
  border-bottom: 1px solid #f2f3f5;
}
/* 最后一列（关联标准化数据项）允许内容展开但限制列宽 */
.data-items-table tbody td:last-child {
  overflow: visible;
}
.data-items-table tbody tr:last-child td {
  border-bottom: none;
}
.data-items-table tbody tr:hover {
  background: #f5f7fa;
}

/* ============================================================
   表格关系 Tab — 关联关系可视化
   ============================================================ */
.table-relation-container {
  padding: 24px 16px;
}
.relation-visual {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 0;
}
.relation-card {
  flex: 1;
  max-width: 280px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.relation-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f0f9eb;
  border-bottom: 1px solid #e1f3d8;
}
.relation-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #67c23a;
  display: inline-block;
}
.relation-card-label {
  font-size: 13px;
  font-weight: 500;
  color: #67c23a;
}
.relation-card-body {
  padding: 14px 16px;
}
.relation-table-name {
  font-size: 14px;
  font-weight: 500;
  color: #303133;
  display: block;
  margin-bottom: 8px;
  word-break: break-all;
}
.relation-metrics {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.relation-metric {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
.metric-label {
  color: #909399;
  background: #f5f7fa;
  padding: 2px 8px;
  border-radius: 3px;
}
.metric-value {
  color: #e6a23c;
  font-weight: 600;
}
.metric-count {
  color: #606266;
  font-weight: 500;
}
.metric-arrow {
  color: #c0c4cc;
  margin: 0 2px;
}
/* 连接线区域 */
.relation-line-area {
  width: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.relation-line-svg {
  width: 100%;
  height: 40px;
}
/* ============================================================
   报表清单查询 — 标签页 / 高级筛选样式
   ============================================================ */

/* --- 标签页切换栏 --- */
.rq-tab-bar {
  display: flex; align-items: center; gap: 2px;
  padding: 0 24px;
  border-bottom: 1px solid #e4e7ed;
  background: #fff;
}
.rq-tab-item {
  padding: 10px 20px;
  font-size: 14px;
  color: #606266;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .2s;
  user-select: none;
  background: transparent;
  border-radius: 0;
  font-family: inherit;
}
.rq-tab-item:hover {
  color: #4084f2;
}
.rq-tab-item.active {
  color: #4084f2;
  border-bottom-color: #4084f2;
  background: #ecf5ff;
}

/* --- 高级筛选区域 --- */
.rq-advanced-filter {
  padding: 0 24px 8px;
}
.rq-adv-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 0;
  user-select: none;
  border-top: 1px solid #ebeef5;
}
.rq-adv-toggle-text {
  font-size: 13px;
  color: #4084f2;
}
.rq-adv-body {
  padding: 8px 0 4px;
}
.rq-filter-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}
.rq-filter-label {
  font-size: 13px;
  color: #606266;
  white-space: nowrap;
  min-width: 72px;
  padding-top: 4px;
}
.rq-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.rq-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  font-size: 13px;
  color: #606266;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color .2s;
  user-select: none;
  font-family: inherit;
  white-space: nowrap;
}
.rq-filter-chip::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  background: #fff;
  flex-shrink: 0;
  transition: all .2s;
}
.rq-filter-chip:hover {
  color: #4084f2;
}
.rq-filter-chip:hover::before {
  border-color: #c6e2ff;
}
.rq-filter-chip.active {
  color: #4084f2;
  font-weight: 500;
}
.rq-filter-chip.active::before {
  background: #4084f2;
  border-color: #4084f2;
}
.rq-filter-chip.active::after {
  content: '';
  display: inline-block;
  position: relative;
  width: 4px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  margin-left: -17px;
  margin-right: 3px;
}


.rq-toast {
  display: none; align-items: center; gap: 10px;
  position: fixed; top: 72px; left: 50%; transform: translateX(-50%);
  z-index: 3000;
  padding: 12px 24px;
  background: #f0f9eb; border: 1px solid #e1f3d8; border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  font-size: 14px; color: #67c23a;
  white-space: nowrap;
}
.rq-toast.show { display: flex; }

/* ============================================================
   统一搜索筛选网格（合并高级筛选到搜索区）
   ============================================================ */

/* 筛选网格：每行3列 */
.sf-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px 16px;
  align-items: end;
}

/* 单个筛选单元 */
.sf-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

/* 筛选标签 */
.sf-cell-label {
  font-size: 12px;
  color: #909399;
  white-space: nowrap;
}

/* 输入框与下拉框统一样式 */
.sf-cell input,
.sf-cell select {
  height: 34px;
  padding: 0 10px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 13px;
  color: #303133;
  background: #fff;
  outline: none;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .2s;
}
.sf-cell input:focus,
.sf-cell select:focus {
  border-color: #4084f2;
}
.sf-cell input::placeholder { color: #c0c4cc; }

/* 日期范围容器 */
.sf-date-range {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sf-date-range input {
  flex: 1;
  min-width: 0;
}
.sf-date-range .sf-date-sep {
  color: #909399;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 筛选复选框组 */
.sf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
  min-height: 34px;
}

/* 筛选复选框（由 chip 改为 checkbox 样式） */
.sf-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: auto;
  padding: 4px 0;
  font-size: 13px;
  color: #606266;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: color .2s;
  user-select: none;
  white-space: nowrap;
}
.sf-chip::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  background: #fff;
  flex-shrink: 0;
  transition: all .2s;
}
.sf-chip:hover {
  color: #4084f2;
}
.sf-chip:hover::before {
  border-color: #c6e2ff;
}
.sf-chip.active {
  color: #4084f2;
  font-weight: 500;
}
.sf-chip.active::before {
  background: #4084f2;
  border-color: #4084f2;
}
.sf-chip.active::after {
  content: '';
  display: inline-block;
  position: relative;
  width: 4px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  margin-left: -17px;
  margin-right: 3px;
}

/* Checkbox 标签（事项类型/状态等） */
.sf-check-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #606266;
  cursor: pointer;
  margin-right: 14px;
  white-space: nowrap;
}
.sf-check-label input[type="checkbox"] {
  width: auto;
  height: auto;
  margin: 0;
  cursor: pointer;
}

/* 操作按钮区 */
.sf-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

/* 展开/收起按钮 */
.sf-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
  color: #4084f2;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: color .2s;
}
.sf-toggle-btn:hover {
  color: #66b1ff;
  background: #ecf5ff;
}
.sf-toggle-btn svg {
  transition: transform .2s;
}
.sf-toggle-btn.expanded svg {
  transform: rotate(180deg);
}

/* 右下角对齐操作按钮容器 */
.sf-actions-fixed {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  grid-column: 2 / span 2;
  padding-bottom: 6px;
}

/* 搜索筛选区网格操作行固定右侧 */
.sf-filter-grid .sf-actions-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 6px;
  gap: 8px;
}

/* ============================================================
   右上角用户头像下拉卡片
   ============================================================ */
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background .2s;
}
.user-avatar:hover {
  background: rgba(255,255,255,.3);
}
.user-avatar svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 1.8; }

/* 用户下拉卡片 */
.user-dropdown {
  position: absolute;
  top: 42px;
  right: 0;
  width: 240px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  padding: 0;
  display: none;
  z-index: 300;
  overflow: hidden;
}
.user-dropdown.show {
  display: block;
}
.user-dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 299;
  display: none;
}
.user-dropdown-overlay.show {
  display: block;
}
.user-info-card {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}
.user-name {
  font-size: 15px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 4px;
}
.user-detail {
  font-size: 12px;
  color: #909399;
  line-height: 1.6;
}
.user-menu {
  padding: 4px 0;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  color: #606266;
  cursor: pointer;
  transition: background .2s;
}
.user-menu-item:hover {
  background: #f5f7fa;
  color: #4084f2;
}
.user-menu-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.user-menu-item.danger {
  color: #ff4d4f;
}
.user-menu-item.danger:hover {
  background: #fff1f0;
  color: #ff4d4f;
}

/* 收起/展开区域 */
.sf-collapse-wrap {
  display: none;
}
.sf-collapse-wrap.show {
  display: contents;
}

/* 筛选容器（带圆角卡片效果） */
.sf-search-card {
  background: #fff;
  border-radius: 8px;
  padding: 14px 20px 10px;
  margin: 8px 24px 12px;
}

/* 常态报表准入 — Tab标签栏 */
.na-tab-bar {
  display: flex; gap: 4px; margin: 0 24px; padding: 0 4px;
  background: #f5f7fa; border-radius: 8px 8px 0 0;
  padding-top: 4px;
}
.na-tab-item {
  padding: 10px 32px; font-size: 14px; color: #909399;
  cursor: pointer; border-radius: 6px 6px 0 0;
  transition: all 0.25s ease; user-select: none;
  position: relative; letter-spacing: 0.5px;
  background: transparent;
}
.na-tab-item:hover {
  color: #4084f2; background: rgba(64, 132, 242, 0.06);
}
.na-tab-item.active {
  color: #4084f2; font-weight: 600;
  background: #fff;
  box-shadow: 0 -2px 8px rgba(64, 132, 242, 0.1);
}
.na-tab-item.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 24px; height: 3px;
  background: #4084f2; border-radius: 3px 3px 0 0;
}

/* 筛选网格所在行的操作列（网格第3列右对齐） */
.sf-cell-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  justify-content: flex-end;
  padding-bottom: 0;
}

/* ============================================================
   表格设计器页面样式
   ============================================================ */

/* --- 页面容器 --- */
.td-designer-page {
  display: flex; flex-direction: column;
  height: 100%; overflow: hidden;
  background: #f0f2f5;
}

/* --- 页头标题区 --- */
.td-header-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #e4e7ed;
  flex-shrink: 0;
}
.td-header-title {
  display: flex; align-items: center;
}
.td-title-input {
  border: 1px solid #dcdfe6; border-radius: 4px;
  padding: 6px 12px; font-size: 16px; font-weight: 600;
  color: #303133; background: #fafafa; outline: none;
  min-width: 260px; font-family: inherit;
}
.td-title-input:focus {
  border-color: #4084f2; background: #fff;
}

/* --- 页头右侧操作区 --- */
.td-header-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.td-header-icon-group {
  display: flex; align-items: center; gap: 4px;
  padding-right: 8px; margin-right: 4px;
}
.td-header-icon-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 10px;
  border: none; background: transparent; cursor: pointer;
  color: #4084f2; font-size: 12px; font-family: inherit;
  border-radius: 4px; transition: background .2s;
}
.td-header-icon-btn:hover { background: #ecf5ff; }
.td-header-icon-label { font-size: 11px; }
.td-header-btn-outline {
  height: 34px; padding: 0 18px;
  border: 1px solid #4084f2; border-radius: 4px;
  background: #fff; color: #4084f2; font-size: 13px;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.td-header-btn-outline:hover { background: #ecf5ff; }
.td-header-btn-solid {
  height: 34px; padding: 0 18px;
  border: none; border-radius: 4px;
  background: #4084f2; color: #fff; font-size: 13px;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.td-header-btn-solid:hover { background: #3370d6; }
.td-header-btn-link {
  border: none; background: transparent; color: #4084f2;
  font-size: 13px; cursor: pointer; padding: 0 4px;
  font-family: inherit; margin-left: 4px;
}
.td-header-btn-link:hover { color: #3370d6; text-decoration: underline; }

/* --- 标签栏 --- */
.td-tab-bar {
  display: flex; align-items: center; gap: 0;
  padding: 0 20px; background: #fff;
  border-bottom: 1px solid #e4e7ed;
  flex-shrink: 0;
}
.td-tab-item {
  padding: 10px 16px; font-size: 13px;
  color: #606266; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .2s; user-select: none;
  background: transparent; font-family: inherit;
}
.td-tab-item:hover { color: #4084f2; }
.td-tab-item.active {
  color: #4084f2; border-bottom-color: #4084f2;
  font-weight: 500;
}
.td-tab-item-preview {
  margin-left: auto;
}

/* --- 工具栏 --- */
.td-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; background: #fff;
  border-bottom: 1px solid #ebeef5;
  flex-shrink: 0; flex-wrap: wrap;
}
.td-toolbar-btn {
  height: 30px; padding: 0 12px;
  border: 1px solid #dcdfe6; border-radius: 4px;
  background: #fff; color: #606266; font-size: 12px;
  cursor: pointer; transition: all .2s; font-family: inherit;
  display: inline-flex; align-items: center;
  white-space: nowrap;
}
.td-toolbar-btn:hover {
  color: #4084f2; border-color: #c6e2ff; background: #ecf5ff;
}

/* --- 电子表格容器 --- */
.td-spreadsheet-container {
  flex: 1; overflow: auto; position: relative;
  background: #f0f2f5; padding: 0;
  /* Excel风格滚动条 */
  scrollbar-width: thin;
  scrollbar-color: #c0c4cc #f5f6f8;
}
.td-spreadsheet-container::-webkit-scrollbar {
  width: 8px; height: 8px;
}
.td-spreadsheet-container::-webkit-scrollbar-track {
  background: #f5f6f8; border-radius: 4px;
}
.td-spreadsheet-container::-webkit-scrollbar-thumb {
  background: #c0c4cc; border-radius: 4px;
}
.td-spreadsheet-container::-webkit-scrollbar-thumb:hover {
  background: #909399;
}

/* --- 电子表格数据表（table 布局保证列宽严格对齐）--- */
.td-spreadsheet-table {
  border-collapse: collapse; table-layout: fixed;
  margin: 8px; border: 1px solid #d0d5dd;
  background: #fff;
}
.td-spreadsheet-table thead { position: sticky; top: 0; z-index: 2; }
.td-spreadsheet-table th,
.td-spreadsheet-table td {
  height: 30px; padding: 0 6px; box-sizing: border-box;
  font-size: 12px; font-family: inherit;
  border-right: 1px solid #e0e3e8; border-bottom: 1px solid #e0e3e8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1;
}

/* 角头格 / 列标行 */
.td-cell-corner {
  width: 46px; min-width: 46px; max-width: 46px;
  background: #f5f6f8; text-align: center; font-weight: 600;
  color: #909399; border-color: #c0c4cc;
}
.td-col-label {
  background: #f5f6f8; text-align: center; font-weight: 600;
  font-size: 12px; color: #606266; border-color: #c0c4cc;
}

/* 行号列 */
.td-row-label {
  width: 46px; min-width: 46px; max-width: 46px;
  background: #f5f6f8; text-align: center; font-weight: 600;
  font-size: 12px; color: #606266; border-color: #c0c4cc;
}

/* 数据单元格 */
.td-data-cell {
  text-align: left; cursor: cell; user-select: text;
}
.td-data-cell:hover { background: #ecf5ff !important; }
.td-cell-locked {
  background: #f9f9f9 !important; color: #909399;
  cursor: default; user-select: none;
}
.td-cell-locked:hover { background: #f9f9f9 !important; }
.td-cell-active {
  outline: 2px solid #4084f2 !important;
  outline-offset: -2px; z-index: 1; position: relative;
}

/* 单元格内文本容器 */
.td-cell-text {
  display: block; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}

/* 单元格内编辑输入框 */
.td-cell-input {
  width: 100%; height: 100%; border: none; outline: none;
  font-size: 12px; font-family: inherit; color: #303133;
  background: transparent; padding: 0 4px;
  box-sizing: border-box;
}

/* 工具栏分隔线 */
.td-toolbar-sep {
  display: inline-block; width: 1px; height: 20px;
  background: #dcdfe6; margin: 0 4px; align-self: center;
}

/* --- 图例 --- */
.td-legend {
  display: flex; align-items: center; gap: 24px;
  padding: 10px 20px; background: #fff;
  border-top: 1px solid #ebeef5;
  flex-shrink: 0; font-size: 12px; color: #909399;
}
.td-legend-item {
  display: flex; align-items: center; gap: 6px;
}
.td-legend-dot {
  width: 12px; height: 12px; border-radius: 2px; display: inline-block;
}

/* ============================================================
   引用标准 — 弹窗样式
   ============================================================ */

/* 遮罩层 */
.ref-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.45); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}

/* 弹窗主体 */
.ref-modal-dialog {
  background: #fff; border-radius: 8px; width: 1050px; max-width: 95vw;
  max-height: 85vh; display: flex; flex-direction: column;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15); overflow: hidden;
}

/* 弹窗头部 */
.ref-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid #e8e8e8; flex-shrink: 0;
}
.ref-modal-title {
  font-size: 16px; font-weight: 600; color: #303133;
}
.ref-modal-close {
  width: 32px; height: 32px; display: flex; align-items: center;
  justify-content: center; border: none; background: none; cursor: pointer;
  border-radius: 4px;
}
.ref-modal-close:hover { background: #f5f5f5; }

/* 弹窗内容区域 */
.ref-modal-body {
  padding: 0 24px; flex: 1; overflow-y: auto; display: flex;
  flex-direction: column;
}

/* 数据表选择区域（顶部双列表格） */
.ref-table-select-area {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid #e8e8e8; border-radius: 4px; margin-top: 16px;
  overflow: hidden;
}
.ref-table-title {
  background: #fafafa; padding: 10px 16px; font-size: 13px;
  font-weight: 600; color: #606266; border-bottom: 1px solid #e8e8e8;
}
.ref-table-row {
  display: contents;
}
.ref-table-col {
  padding: 8px 16px; font-size: 13px; color: #303133;
  border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 6px;
}
.ref-table-row:last-child .ref-table-col { border-bottom: none; }
.ref-expand-icon {
  font-size: 10px; color: #909399; width: 14px; text-align: center;
  display: inline-block; cursor: pointer;
}

/* 配置表格容器 */
.ref-config-table-wrap {
  margin-top: 16px; border: 1px solid #e8e8e8; border-radius: 4px;
  overflow: auto; flex: 1; min-height: 280px;
}
.ref-config-table {
  width: 100%; border-collapse: collapse; table-layout: auto;
  min-width: 1050px;
}
.ref-config-table thead { position: sticky; top: 0; z-index: 2; }
.ref-config-table th {
  background: #fafafa; padding: 10px 8px; font-size: 13px;
  font-weight: 600; color: #606266; border-bottom: 1px solid #e8e8e8;
  text-align: center; white-space: nowrap;
}
.ref-config-table th:first-child { width: 70px; }
.ref-config-table th:nth-child(2) { width: 110px; }
.ref-config-table th:nth-child(3) { width: 140px; }
.ref-config-table th:nth-child(4) { width: 150px; }
.ref-config-table th:nth-child(5) { width: 130px; }
.ref-config-table th:nth-child(6) { width: 130px; }
.ref-config-table th:nth-child(7) { width: 100px; }
.ref-config-table th:nth-child(8) { width: 160px; }

.ref-config-table td {
  padding: 4px 6px; border-bottom: 1px solid #f0f0f0;
  font-size: 13px; color: #303133; text-align: center;
}

/* 弹窗内输入框和下拉框 */
.ref-input {
  width: 100%; height: 32px; padding: 0 8px; font-size: 13px;
  border: 1px solid #d9d9d9; border-radius: 4px; outline: none;
  color: #303133; background: #fff; box-sizing: border-box;
  font-family: inherit; text-align: center;
}
.ref-input:focus { border-color: #4084f2; box-shadow: 0 0 0 2px rgba(64,132,242,0.12); }
.ref-input:disabled {
  background: #f5f5f5; color: #bfbfbf; cursor: not-allowed;
}

.ref-select {
  width: 100%; height: 32px; padding: 0 6px; font-size: 13px;
  border: 1px solid #d9d9d9; border-radius: 4px; outline: none;
  color: #303133; background: #fff; cursor: pointer;
  font-family: inherit; box-sizing: border-box; appearance: auto;
}
.ref-select:focus { border-color: #4084f2; box-shadow: 0 0 0 2px rgba(64,132,242,0.12); }

/* 弹窗底部 */
.ref-modal-footer {
  display: flex; justify-content: flex-end; gap: 12px;
  padding: 16px 24px; flex-shrink: 0; border-top: 1px solid #e8e8e8;
}
.ref-btn-cancel {
  height: 36px; padding: 0 24px; font-size: 14px; border-radius: 4px;
  cursor: pointer; border: 1px solid #d9d9d9; background: #fff;
  color: #606266;
}
.ref-btn-cancel:hover { border-color: #4084f2; color: #4084f2; }

.ref-btn-confirm {
  height: 36px; padding: 0 24px; font-size: 14px; border-radius: 4px;
  cursor: pointer; border: none; background: #4084f2; color: #fff;
}
.ref-btn-confirm:hover { background: #3a7be0; }

/* 引用标准 — 标准化数据项多选行样式 */
.ref-std-items-wrap {
  display: flex; flex-direction: column; gap: 4px;
}

/* 引用标准 — 搜索下拉选择 */
.ref-search-select-wrap {
  position: relative; margin-top: 4px;
}
.ref-search-input {
  width: 100%; height: 30px; padding: 0 10px; padding-right: 28px;
  border: 1px solid #dcdfe6; border-radius: 4px;
  font-size: 12px; color: #303133; background: #fff;
  outline: none; transition: border-color .2s; font-family: inherit;
  box-sizing: border-box;
}
.ref-search-input:focus { border-color: #4084f2; }
.ref-search-input::placeholder { color: #c0c4cc; }

/* 引用标准 — 调整弹窗宽度适配新列 */
.ref-modal-dialog { width: 1400px; }

/* 引用标准 — 平铺式标准化数据项卡片 */
.ref-std-flat-area {
  display: flex; flex-direction: column; gap: 10px;
}
.ref-std-flat-card {
  border: 1px solid #e4e7ed; border-radius: 6px; overflow: hidden;
  background: #fff; transition: box-shadow .2s;
}
.ref-std-flat-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.ref-std-flat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: #f0f5ff; border-bottom: 1px solid #d9ecff;
}
.ref-std-flat-header-left {
  display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0;
}
.ref-std-flat-source {
  font-size: 12px; color: #409eff; font-weight: 600; white-space: nowrap;
}
.ref-std-flat-sep {
  font-size: 12px; color: #c0c4cc;
}
.ref-std-flat-name {
  font-size: 13px; color: #303133; font-weight: 600; white-space: nowrap;
}
.ref-std-flat-code {
  font-size: 11px; color: #909399; background: #f5f7fa;
  padding: 1px 6px; border-radius: 3px; white-space: nowrap; margin-left: 4px;
}
.ref-std-flat-remove {
  width: 20px; height: 20px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; cursor: pointer;
  color: #c0c4cc; font-size: 14px; font-weight: 600; flex-shrink: 0;
  transition: all .2s;
}
.ref-std-flat-remove:hover { color: #fff; background: #f56c6c; }
.ref-std-flat-add-btn {
  height: 24px; padding: 0 12px; font-size: 12px; border-radius: 4px;
  cursor: pointer; border: 1px solid #4084f2; background: #fff;
  color: #4084f2; white-space: nowrap; flex-shrink: 0; transition: all .2s;
}
.ref-std-flat-add-btn:hover { background: #4084f2; color: #fff; }
/* 卡片主体：横向滚动容器，三个属性分组横着放 */
.ref-std-flat-body {
  display: flex; gap: 0; overflow-x: auto; cursor: grab;
  scrollbar-width: thin; scrollbar-color: #c0c4cc transparent;
}
.ref-std-flat-body::-webkit-scrollbar { height: 5px; }
.ref-std-flat-body::-webkit-scrollbar-thumb { background: #c0c4cc; border-radius: 3px; }
.ref-std-flat-body::-webkit-scrollbar-track { background: transparent; }
.ref-std-flat-section {
  flex: 0 0 auto; min-width: 260px; padding: 8px 14px;
  border-right: 1px solid #f0f0f0;
}
.ref-std-flat-section:last-child { border-right: none; }
.ref-std-flat-section-title {
  font-size: 11px; color: #409eff; font-weight: 600;
  padding: 2px 0 6px; margin-bottom: 4px; white-space: nowrap;
}
.ref-std-flat-grid {
  display: flex; flex-direction: column; gap: 2px;
}
.ref-std-flat-kv {
  display: flex; align-items: baseline; gap: 4px; padding: 1px 0;
  font-size: 12px; line-height: 1.5;
}
.ref-std-flat-key {
  color: #909399; white-space: nowrap; min-width: 60px; flex-shrink: 0;
}
.ref-std-flat-val {
  color: #303133; word-break: break-all;
}
/* 搜索结果中的卡片样式微调 */
.ref-std-flat-card-search {
  margin: 4px 6px; cursor: default;
}
.ref-std-flat-card-search:hover { box-shadow: 0 2px 12px rgba(64,132,242,0.15); }
/* 搜索下拉面板增强 */
.ref-search-dropdown {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border: 1px solid #e4e7ed; border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15); z-index: 10001;
  max-height: 480px; overflow-y: auto; margin-top: 2px;
}
.ref-search-group-label {
  padding: 8px 12px 4px; font-size: 12px; color: #409eff;
  font-weight: 600; background: #f0f5ff; position: sticky; top: 0; z-index: 1;
  border-bottom: 1px solid #d9ecff;
}
.ref-search-empty {
  padding: 24px; text-align: center; font-size: 13px; color: #c0c4cc;
}
/* 表格中关联标准化数据项列宽度调整 */
.ref-std-items-cell {
  min-width: 480px; vertical-align: top; padding: 8px 10px !important;
}

/* ============================================================
   智能识别弹窗样式
   ============================================================ */

/* ============================================================
   AI识别 — 加载弹窗样式
   ============================================================ */
.ai-loading-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.45); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.ai-loading-dialog {
  background: #fff; border-radius: 8px; width: 360px;
  padding: 48px 32px 36px; text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.ai-loading-spinner {
  width: 56px; height: 56px; margin: 0 auto 20px;
}
.ai-spinner-svg {
  width: 56px; height: 56px;
  animation: aiSpin 1s linear infinite;
}
@keyframes aiSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.ai-loading-title {
  font-size: 16px; font-weight: 600; color: #303133; margin-bottom: 8px;
}
.ai-loading-desc {
  font-size: 13px; color: #909399; margin-bottom: 24px;
}
.ai-loading-btn {
  height: 34px; padding: 0 28px; font-size: 13px; border-radius: 4px;
  cursor: pointer; border: none; background: #4084f2; color: #fff;
  font-family: inherit;
}
.ai-loading-btn:hover { background: #3a7be0; }

/* ============================================================
   AI识别 — 完成确认弹窗样式
   ============================================================ */
.ai-result-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.45); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.ai-result-dialog {
  background: #fff; border-radius: 8px; width: 460px;
  padding: 28px 28px 22px; position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.ai-result-close {
  position: absolute; top: 12px; right: 14px;
  border: none; background: none; font-size: 20px; cursor: pointer;
  color: #c0c4cc; line-height: 1; padding: 2px;
}
.ai-result-close:hover { color: #909399; }
.ai-result-text {
  font-size: 14px; color: #303133; line-height: 1.8;
  text-align: center; margin-bottom: 24px; padding-right: 16px;
}
.ai-result-actions {
  display: flex; justify-content: center; gap: 12px;
}
.ai-btn-cancel {
  height: 34px; padding: 0 28px; font-size: 13px; border-radius: 4px;
  cursor: pointer; border: 1px solid #dcdfe6; background: #fff; color: #606266;
  font-family: inherit;
}
.ai-btn-cancel:hover { border-color: #c0c4cc; color: #303133; }
.ai-btn-apply {
  height: 34px; padding: 0 28px; font-size: 13px; border-radius: 4px;
  cursor: pointer; border: none; background: #4084f2; color: #fff;
  font-family: inherit;
}
.ai-btn-apply:hover { background: #3a7be0; }

/* ============================================================
   识别记录弹窗样式
   ============================================================ */
.ai-record-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.45); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.ai-record-dialog {
  background: #fff; border-radius: 8px; width: 780px; max-width: 94vw;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  display: flex; flex-direction: column; overflow: hidden;
}
.ai-record-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid #e8e8e8; flex-shrink: 0;
}
.ai-record-title {
  font-size: 15px; font-weight: 600; color: #303133;
}
.ai-record-close {
  border: none; background: none; font-size: 18px; cursor: pointer;
  color: #c0c4cc; line-height: 1; padding: 2px;
}
.ai-record-close:hover { color: #909399; }
.ai-record-body {
  padding: 0; flex: 1; overflow-y: auto; min-height: 0;
}
.ai-record-table {
  width: 100%; border-collapse: collapse; table-layout: fixed;
}
.ai-record-table thead th {
  background: #fafafa; font-size: 13px; font-weight: 500; color: #606266;
  padding: 10px 12px; border-bottom: 1px solid #e8e8e8; text-align: center;
  white-space: nowrap;
}
.ai-record-table thead th:first-child { text-align: left; padding-left: 20px; }
.ai-record-table tbody td {
  font-size: 13px; color: #303133; padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0; text-align: center;
  white-space: nowrap;
}
.ai-record-table tbody td:first-child { text-align: left; padding-left: 20px; }
.ai-record-table tbody tr:hover { background: #f5f7fa; }
.ai-record-footer {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-top: 1px solid #e8e8e8; flex-shrink: 0;
  font-size: 13px; color: #606266;
}
.ai-rec-total { color: #909399; white-space: nowrap; }
.ai-rec-page-size {
  height: 28px; border: 1px solid #dcdfe6; border-radius: 3px;
  font-size: 12px; padding: 0 4px; outline: none; color: #606266;
}
.ai-rec-paging {
  display: flex; align-items: center; gap: 6px; margin-left: 4px;
}
.ai-rec-paging a {
  display: inline-block; width: 24px; height: 24px; line-height: 24px;
  text-align: center; color: #4084f2; cursor: pointer; text-decoration: none;
  font-size: 13px; border-radius: 3px;
}
.ai-rec-paging a:hover:not(.disabled) { background: #ecf5ff; }
.ai-rec-paging a.disabled { color: #c0c4cc; cursor: not-allowed; }
.ai-rec-current {
  min-width: 24px; height: 24px; line-height: 24px;
  text-align: center; color: #4084f2; font-weight: 600; font-size: 13px;
}
.ai-rec-goto {
  margin-left: 8px; color: #909399; white-space: nowrap;
}
.ai-rec-jump-input {
  width: 42px; height: 24px; border: 1px solid #dcdfe6; border-radius: 3px;
  font-size: 12px; text-align: center; outline: none; color: #303133;
  margin: 0 4px;
}

/* ============================================================
   报表准入审核页面样式
   ============================================================ */

/* 审核Tab导航 */
.audit-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e4e7ed;
  margin-bottom: 16px;
  padding: 0;
}
.audit-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  color: #606266;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
  user-select: none;
}
.audit-tab:hover { color: #4084f2; }
.audit-tab.active {
  color: #4084f2;
  font-weight: 600;
  border-bottom-color: #4084f2;
}
.audit-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  color: #fff;
  background: #4084f2;
  border-radius: 9px;
  line-height: 1;
}

/* 审核表格操作按钮 */
.btn-approve-sm {
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #67c23a;
  border-radius: 3px;
  background: #fff;
  color: #67c23a;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  vertical-align: middle;
}
.btn-approve-sm:hover { background: #f0f9eb; border-color: #67c23a; }

.btn-reject-sm {
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #f56c6c;
  border-radius: 3px;
  background: #fff;
  color: #f56c6c;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  vertical-align: middle;
}
.btn-reject-sm:hover { background: #fef0f0; border-color: #f56c6c; }

/* 审核详情弹窗内容区 */
.audit-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid #4084f2;
}

/* 审核历史时间轴 */
.audit-timeline {
  padding-left: 8px;
  margin-bottom: 16px;
}
.audit-timeline-item {
  position: relative;
  padding-left: 28px;
  padding-bottom: 20px;
}
.audit-timeline-item:last-child { padding-bottom: 0; }
.audit-timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dcdfe6;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #dcdfe6;
}
.audit-timeline-item.completed .audit-timeline-dot {
  background: #67c23a;
  box-shadow: 0 0 0 2px #67c23a;
}
.audit-timeline-item.active .audit-timeline-dot {
  background: #4084f2;
  box-shadow: 0 0 0 2px #4084f2;
}
.audit-timeline-item::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 16px;
  width: 2px;
  height: calc(100% - 4px);
  background: #e4e7ed;
}
.audit-timeline-item:last-child::before { display: none; }
.audit-timeline-time {
  font-size: 12px;
  color: #909399;
  margin-bottom: 2px;
}
.audit-timeline-text {
  font-size: 13px;
  color: #303133;
}

/* 审核操作区域 */
.audit-action-area {
  margin-top: 16px;
  padding: 16px;
  background: #f5f7fa;
  border-radius: 6px;
}
.audit-action-title {
  font-size: 15px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 12px;
}
.audit-action-btns {
  display: flex;
  gap: 10px;
}

/* 侧边栏菜单红点提示 */
.menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #f56c6c;
  border-radius: 9px;
  margin-left: auto;
  line-height: 1;
}

/* ============================================================
   附件上传 — 文件信息展示区
   ============================================================ */
.attach-file-info {
  margin-top: 10px;
  padding: 8px 12px;
  background: #f0f9eb;
  border: 1px solid #e1f3d8;
  border-radius: 6px;
}
.attach-file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.attach-file-name {
  font-size: 13px;
  color: #303133;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attach-file-btn {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 4px;
  border: 1px solid;
  cursor: pointer;
  background: #fff;
  flex-shrink: 0;
}
.attach-file-btn.replace {
  color: #409eff;
  border-color: #c6e2ff;
}
.attach-file-btn.replace:hover {
  background: #ecf5ff;
}
.attach-file-btn.delete {
  color: #f56c6c;
  border-color: #fde2e2;
}
.attach-file-btn.delete:hover {
  background: #fef0f0;
}

/* ============================================================
   标准化数据项详情弹窗样式（Mod 1）
   ============================================================ */
.std-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.45); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.std-modal-dialog {
  background: #fff; border-radius: 8px; width: 720px; max-width: 94vw;
  max-height: 86vh; display: flex; flex-direction: column;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15); overflow: hidden;
}
.std-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid #e8e8e8; flex-shrink: 0;
}
.std-modal-title {
  font-size: 16px; font-weight: 600; color: #303133;
}
.std-modal-close {
  width: 32px; height: 32px; display: flex; align-items: center;
  justify-content: center; border: none; background: transparent;
  cursor: pointer; border-radius: 4px;
}
.std-modal-close:hover { background: #f5f5f5; }
.std-modal-body {
  padding: 20px 24px; flex: 1; overflow-y: auto; min-height: 0;
}
.std-modal-footer {
  display: flex; justify-content: flex-end; gap: 12px;
  padding: 16px 24px; flex-shrink: 0; border-top: 1px solid #e8e8e8;
}
.std-btn-cancel {
  height: 36px; padding: 0 24px; font-size: 14px; border-radius: 4px;
  cursor: pointer; border: 1px solid #d9d9d9; background: #fff;
  color: #606266;
}
.std-btn-cancel:hover { border-color: #4084f2; color: #4084f2; }

/* 标准化数据项详情 — 属性分组 */
.std-detail-group {
  margin-bottom: 20px;
}
.std-detail-group:last-child { margin-bottom: 0; }
.std-detail-group-title {
  font-size: 14px; font-weight: 600; color: #4084f2;
  padding-bottom: 8px; margin-bottom: 10px;
  border-bottom: 2px solid #4084f2;
  display: flex; align-items: center; gap: 8px;
}
.std-detail-group-title::before {
  content: ''; width: 4px; height: 16px; background: #4084f2;
  border-radius: 2px; display: inline-block;
}
.std-detail-group-body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.std-detail-item {
  display: flex; gap: 12px; padding: 6px 0;
  border-bottom: 1px dashed #f0f0f0;
}
.std-detail-label {
  font-size: 13px; color: #909399; white-space: nowrap;
  min-width: 120px; flex-shrink: 0;
}
.std-detail-value {
  font-size: 13px; color: #303133; word-break: break-all;
  flex: 1;
}

/* 数据项表格 — 关联标准化数据项平铺展开/收起展示 */
.std-flat-list {
  display: flex; flex-direction: column; gap: 4px; width: 100%;
}
.std-flat-row {
  border: 1px solid #ebeef5; border-radius: 4px; overflow: hidden;
  transition: border-color 0.2s; width: 100%;
}
.std-flat-row:hover {
  border-color: #c6e2ff;
}
.std-flat-row.std-flat-expanded {
  border-color: #4084f2;
}
.std-flat-header {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; cursor: pointer; user-select: none;
  background: #f5f7fa; transition: background 0.2s;
}
.std-flat-header:hover {
  background: #ecf5ff;
}
.std-flat-expanded > .std-flat-header {
  background: #ecf5ff; border-bottom: 1px solid #ebeef5;
}
.std-flat-arrow {
  width: 14px; height: 14px; flex-shrink: 0;
  transition: transform 0.2s;
}
.std-flat-expanded > .std-flat-header .std-flat-arrow {
  transform: rotate(180deg);
}
.std-flat-name {
  font-size: 12px; color: #4084f2; font-weight: 500;
}
.std-flat-body {
  display: none; padding: 12px 14px;
  background: #fff; overflow-x: auto;
}
.std-flat-expanded > .std-flat-body {
  display: block;
}
/* 属性分组 */
.std-flat-group {
  margin-bottom: 12px;
}
.std-flat-group:last-child {
  margin-bottom: 0;
}
.std-flat-group-title {
  font-size: 13px; font-weight: 600; color: #4084f2;
  padding-bottom: 6px; margin-bottom: 8px;
  border-bottom: 1px solid #d9ecff;
  display: flex; align-items: center; gap: 6px;
}
.std-flat-group-title::before {
  content: ''; width: 3px; height: 12px; background: #4084f2;
  border-radius: 1.5px; display: inline-block;
}
.std-flat-group-body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
}
.std-flat-item {
  display: flex; gap: 8px; padding: 4px 0;
  border-bottom: 1px dashed #f2f3f5;
}
.std-flat-label {
  font-size: 12px; color: #909399; white-space: nowrap;
  min-width: 100px; flex-shrink: 0;
}
.std-flat-value {
  font-size: 12px; color: #303133; word-break: break-all;
  flex: 1;
}
.std-item-none {
  color: #c0c4cc; font-size: 13px;
}
/* 工具栏文字链接按钮 */
.btn-text-link {
  background: none; border: none; color: #4084f2;
  font-size: 13px; cursor: pointer; padding: 0;
  font-family: inherit;
}
.btn-text-link:hover {
  color: #2d6fd6; text-decoration: underline;
}

/* ============================================================
   Excel Sheet 标签页样式（Mod 3）
   ============================================================ */
.sheet-tabs-bar {
  display: flex; align-items: center; gap: 0;
  border-bottom: 2px solid #e8e8e8; margin-bottom: 16px;
  padding: 0; flex-wrap: wrap;
}
.sheet-tab-item {
  padding: 8px 20px; font-size: 13px; color: #606266;
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all 0.2s; user-select: none;
  white-space: nowrap;
}
.sheet-tab-item:hover { color: #4084f2; }
.sheet-tab-item.active {
  color: #4084f2; font-weight: 600;
  border-bottom-color: #4084f2;
}
.ref-sheet-content {
  /* Sheet内容面板容器，通过 JS 控制 display 切换显隐 */
}

/* ============================================================
   去重检测弹窗样式 — 简化版
   ============================================================ */
.dedup-badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 12px; font-weight: 500; line-height: 1.4;
}
.dedup-badge-high { background: #fef0f0; color: #f56c6c; border: 1px solid #fde2e2; }
.dedup-badge-medium { background: #fdf6ec; color: #e6a23c; border: 1px solid #faecd8; }
.dedup-badge-low { background: #ecf5ff; color: #409eff; border: 1px solid #d9ecff; }

/* 摘要横幅 */
.dedup-summary-banner {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 12px 16px; background: #f5f7fa; border-radius: 6px;
  margin-top: 16px;
}
.dedup-summary-stat {
  font-size: 13px; color: #606266;
}

/* 建议横幅（1条简明建议） */
.dedup-suggest-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; margin-top: 12px;
  background: #fffbf5; border-radius: 6px;
  border: 1px solid #faecd8; border-left: 3px solid #e6a23c;
  font-size: 13px; color: #606266; line-height: 1.6;
}

/* ===== 表格设计器-标准化数据项详情弹窗 ===== */
.td-std-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.45); z-index: 10001;
  display: flex; align-items: center; justify-content: center;
}
.td-std-dialog {
  background: #fff; border-radius: 8px; width: 680px;
  max-height: 80vh; display: flex; flex-direction: column;
  box-shadow: 0 4px 24px rgba(0,0,0,.15);
}
.td-std-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
}
.td-std-title { font-size: 15px; font-weight: 600; color: #303133; }
.td-std-close {
  background: none; border: none; cursor: pointer; padding: 2px;
  display: flex; align-items: center;
}
.td-std-body {
  padding: 16px 20px; overflow-y: auto; flex: 1;
}
.td-std-detail-group { margin-bottom: 16px; }
.td-std-detail-group:last-child { margin-bottom: 0; }
.td-std-detail-group-title {
  font-size: 13px; font-weight: 600; color: #303133;
  padding: 6px 10px; background: #f5f7fa; border-radius: 4px;
  margin-bottom: 8px;
}
.td-std-detail-item {
  display: flex; padding: 4px 10px; font-size: 13px; line-height: 1.6;
}
.td-std-detail-label {
  width: 200px; color: #909399; flex-shrink: 0;
}
.td-std-detail-value {
  color: #303133; word-break: break-all;
}
.td-std-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 12px 20px; border-top: 1px solid #f0f0f0; flex-shrink: 0;
}


