/* ===== 出函台账 ===== */

.chuhan-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.chuhan-shell {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 20px 20px;
  gap: 12px;
}

/* ---- 第二行：问候 + 导航 + 搜索 ---- */
.workbench-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  backdrop-filter: blur(6px);
}

.workbench-greeting {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.greeting-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  align-items: center;
  justify-content: center;
}

.greeting-icon svg {
  width: 16px;
  height: 16px;
}

.workbench-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.wb-tab {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-secondary);
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.wb-tab:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.wb-tab.is-active {
  color: #fff;
  background: var(--primary);
  font-weight: 600;
}

.ledger-search {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  overflow: hidden;
  background: #fff;
  min-width: 300px;
}

.ledger-search select {
  appearance: none;
  border: 0;
  border-right: 1px solid var(--border);
  background: #f7f8fa;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-secondary);
  padding: 0 28px 0 12px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.ledger-search input {
  flex: 1;
  border: 0;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  padding: 8px 12px;
  color: var(--ink);
  min-width: 0;
}

/* ---- 主体：左日期 + 右台账 ---- */
.chuhan-body {
  flex: 1;
  display: flex;
  gap: 12px;
  min-height: 0;
}

/* ---- 出函日期筛选（与状态页签同行、靠右） ---- */
.issue-date-filter {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 16px;
}

.idf-item {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-secondary);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.idf-item:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.idf-item.is-active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

.idf-pick {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.idf-pick svg {
  width: 14px;
  height: 14px;
}

/* ---- 右侧台账 ---- */
.ledger-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px 16px;
}

/* 台账类型：履约 / 投标（一级状态页签下的次级切换） */
.ledger-topline {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ledger-tab {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-secondary);
  padding: 4px 2px;
  cursor: pointer;
  white-space: nowrap;
}

.ledger-tab .tab-count {
  font-weight: 600;
  margin-left: 2px;
}

.ledger-tab:hover {
  color: var(--primary);
}

.ledger-tab.is-active {
  color: var(--primary);
  font-weight: 600;
}

/* 未完成 / 已完成 一级页签 */
.status-row {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.status-tab {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-secondary);
  padding: 8px 2px 10px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.status-tab .tab-count {
  font-weight: 600;
  margin-left: 2px;
}

.status-tab:hover {
  color: var(--primary);
}

.status-tab.is-active {
  color: var(--primary);
  font-weight: 600;
}

.status-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* 渠道 chips + 录入按钮 */
.channel-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.channel-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-filter {
  appearance: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.btn-filter svg {
  width: 14px;
  height: 14px;
}

.btn-filter:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-filter.is-active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}

/* 组合筛选面板 */
.filter-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 14px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.filter-field span {
  font-size: 12px;
  color: var(--muted);
}

.filter-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 10px;
}

.filter-field input {
  appearance: none;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  color: var(--ink);
  min-width: 0;
}

.filter-field input:focus {
  border-color: var(--primary);
  outline: none;
}

/* 日期段筛选：起止两个日期输入 */
.filter-range {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.filter-range input {
  flex: 1;
  min-width: 0;
}

.filter-field .filter-range-sep {
  flex: none;
  font-size: 12px;
  color: var(--muted);
}

.filter-field select {
  appearance: none;
  height: 30px;
  padding: 0 26px 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.filter-field select:focus {
  border-color: var(--primary);
  outline: none;
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn-filter-reset,
.btn-filter-apply {
  appearance: none;
  font-family: inherit;
  font-size: 12px;
  height: 30px;
  padding: 0 16px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-filter-reset {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-secondary);
}

.btn-filter-reset:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-filter-apply {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.btn-filter-apply:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-entry {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 6px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.btn-entry svg {
  width: 14px;
  height: 14px;
}

.btn-entry:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.channel-chip {
  appearance: none;
  font-family: inherit;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.channel-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.channel-chip.is-active {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
}

.chip-count {
  margin-left: 2px;
}

/* ---- 表格 ---- */
.table-wrap {
  position: relative;
  flex: 1;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 240px;
}

.ledger-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}

.ledger-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f5f7fa;
  color: var(--ink-secondary);
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid #eef0f3;
  white-space: nowrap;
}

.ledger-table tbody td {
  padding: 7px 10px;
  border-bottom: 1px solid #f0f2f5;
  border-right: 1px solid #f5f6f8;
  color: var(--ink);
  vertical-align: middle;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.ledger-table tbody tr:hover {
  background: var(--primary-light);
}

/* 列宽 / 对齐 */
.col-check {
  width: 40px;
  text-align: center !important;
}

/* 控件列（勾选/核对状态）不做文本省略，避免单元格右侧出现多余的「…」 */
.ledger-table tbody td.col-check {
  overflow: visible;
  text-overflow: clip;
}

.col-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  vertical-align: middle;
  cursor: pointer;
  accent-color: var(--primary);
}

/* 勾选行高亮 */
.ledger-table tbody tr.row-selected {
  background: var(--primary-light);
}

.ledger-table tbody tr.row-selected:hover {
  background: #e3edff;
}

.col-seq {
  width: 52px;
  text-align: center !important;
}

/* 序号可点击查看详情 */
.seq-link {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

.seq-link:hover {
  text-decoration: underline;
}

/* 序号右侧审批状态列（需容纳「已复审待确认」6 字标签） */
.col-approve {
  width: 116px;
  min-width: 116px;
  text-align: center !important;
}

.approve-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 20px;
  color: #16a34a;
  background: #e9f9ef;
  border: 1px solid #b7ebc6;
  white-space: nowrap;
}

.approve-tag.approve-reviewing {
  color: #d97706;
  background: #fff6e8;
  border-color: #f5d9a8;
}

/* 已复审待确认：蓝色标签 */
.approve-tag.approve-waiting {
  color: #1e6bff;
  background: #eef3ff;
  border-color: #c3d4ff;
}

/* 排队中：灰色标签 */
.approve-tag.approve-queue {
  color: #6b7280;
  background: #f3f4f6;
  border-color: #d9e0ea;
}

.approve-empty {
  color: #b6bcc6;
}

/* 核对状态列：开关样式——未核对灰底、圆点在左；已核对蓝底、圆点在右 */
.col-rowcheck {
  width: 98px;
  min-width: 98px;
  text-align: center !important;
}

/* 开关自身已占满单元格内容宽，关掉单元格的省略号（否则右侧会多出「…」） */
.ledger-table tbody td.col-rowcheck {
  overflow: visible;
  text-overflow: clip;
}

.rowcheck-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 76px;
  height: 24px;
  padding: 2px 4px;
  border: 0;
  border-radius: 12px;
  background: #d7dbe2;
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease;
}

.rowcheck-switch:hover {
  background: #c8ced8;
}

.rowcheck-switch .rcs-knob {
  order: 0;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
}

.rowcheck-switch .rcs-text {
  order: 1;
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.rowcheck-switch.is-on {
  background: var(--primary);
}

.rowcheck-switch.is-on:hover {
  background: #155fe6;
}

.rowcheck-switch.is-on .rcs-knob {
  order: 2;
}

.rowcheck-switch.is-on .rcs-text {
  order: 1;
}

.col-num {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

.col-wide {
  min-width: 200px;
}

.col-mid {
  min-width: 130px;
}

.ledger-table tbody td.col-seq {
  text-align: center;
}

.ledger-table tbody td.col-num {
  text-align: right;
}

/* 列宽可拖拽：启用 fixed 布局，宽度由 colgroup 决定 */
.ledger-table.col-widths-ready {
  table-layout: fixed;
}

.ledger-table.col-widths-ready tbody td {
  max-width: none;
}

.ledger-table.col-widths-ready .cell-input {
  min-width: 0;
}

/* 表头右边缘拖拽手柄 */
.ledger-table thead th .col-resizer {
  position: absolute;
  top: 0;
  right: -3px;
  width: 7px;
  height: 100%;
  cursor: col-resize;
  z-index: 3;
  user-select: none;
}

.ledger-table thead th .col-resizer::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
  background: transparent;
  border-radius: 1px;
}

.ledger-table thead th .col-resizer:hover::after {
  background: var(--primary);
}

/* 拖拽中全局光标 + 禁止选中 */
body.col-resizing,
body.col-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

/* 空状态 */
.empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
}

.empty-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.empty-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- 分页 ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* 左下角操作按钮组（完成 / 登台账） */
.pagination-left {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-complete,
.btn-ledger-entry {
  appearance: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 20px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-complete {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
}

.btn-complete:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* 登台账：描边次按钮，位于完成右侧 */
.btn-ledger-entry {
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary);
}

.btn-ledger-entry:hover:not(:disabled) {
  background: rgba(30, 107, 255, 0.06);
}

/* 归档：已完成台账左下角，中性墨色实心 */
.btn-archive {
  appearance: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 20px;
  border-radius: 6px;
  border: 1px solid #475569;
  background: #475569;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.btn-archive:hover:not(:disabled) {
  background: #334155;
  border-color: #334155;
}

.btn-complete:disabled,
.btn-ledger-entry:disabled,
.btn-archive:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 列配置：左下角描边按钮，各页签通用 */
.btn-colcfg {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.btn-colcfg svg {
  width: 15px;
  height: 15px;
}

.btn-colcfg:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(30, 107, 255, 0.04);
}

/* ---- 列配置弹窗 ---- */
.colcfg-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
}

.colcfg-dialog {
  width: 640px;
  max-width: calc(100vw - 32px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

.colcfg-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.colcfg-locate {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

.colcfg-toolbar input {
  appearance: none;
  flex: 1;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.colcfg-toolbar input:focus {
  outline: none;
  border-color: var(--primary);
}

.colcfg-body {
  overflow-y: auto;
  max-height: 48vh;
}

.colcfg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.colcfg-table th,
.colcfg-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.colcfg-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f5fb;
  color: var(--ink);
  font-weight: 600;
}

.colcfg-table tbody tr:nth-child(even) {
  background: #fafbfe;
}

.colcfg-no {
  width: 64px;
  color: var(--muted);
}

.colcfg-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--ink-secondary);
  word-break: break-all;
}

.colcfg-label {
  color: var(--ink);
}

/* 列配置：行拖拽排序 */
.colcfg-th-handle {
  width: 52px;
}

.colcfg-handle {
  width: 36px;
  text-align: center;
  color: #a3adbd;
  font-size: 13px;
  letter-spacing: -2px;
  cursor: grab;
  user-select: none;
}

.colcfg-table tbody tr[draggable="true"]:active .colcfg-handle {
  cursor: grabbing;
}

.colcfg-table tbody tr.is-dragging {
  opacity: 0.45;
}

.colcfg-table tbody tr.drag-over-top td {
  box-shadow: inset 0 2px 0 var(--primary);
}

.colcfg-table tbody tr.drag-over-bottom td {
  box-shadow: inset 0 -2px 0 var(--primary);
}

.colcfg-show {
  width: 64px;
  text-align: center !important;
}

.colcfg-show input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
  vertical-align: middle;
}

.colcfg-empty {
  text-align: center !important;
  color: var(--muted);
  padding: 28px 0 !important;
}

.colcfg-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.page-total {
  font-size: 12px;
  color: var(--muted);
}

.page-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn,
.page-num {
  appearance: none;
  font-family: inherit;
  font-size: 12px;
  min-width: 28px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.page-num {
  padding: 0;
}

.page-btn:hover:not(:disabled),
.page-num:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-num.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- 登台账弹窗 ---- */
.entry-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
}

.entry-dialog {
  width: 760px;
  max-width: calc(100vw - 32px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

.entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.entry-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.entry-close {
  appearance: none;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}

.entry-close:hover {
  color: var(--ink);
}

.entry-body {
  padding: 18px 20px;
  overflow-y: auto;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.entry-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.entry-field.is-wide {
  grid-column: 1 / -1;
}

.entry-field label {
  font-size: 12px;
  color: var(--ink-secondary);
}

.entry-field input,
.entry-field textarea {
  appearance: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.15s;
}

.entry-field input:focus,
.entry-field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.entry-field textarea {
  resize: vertical;
  min-height: 56px;
}

.entry-field-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.entry-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.entry-btn {
  appearance: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 22px;
  border-radius: 6px;
  cursor: pointer;
}

.entry-btn-cancel {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-secondary);
}

.entry-btn-cancel:hover {
  border-color: var(--muted);
}

.entry-btn-ok {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
}

.entry-btn-ok:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* ---- 单元格行内编辑 ---- */
.ledger-table tbody td[data-key] {
  cursor: text;
}

.ledger-table tbody td.editing {
  padding: 0;
  overflow: visible;
  background: #fff;
  cursor: default;
}

.cell-input {
  width: 100%;
  min-width: 120px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  outline: none;
  font-family: inherit;
  font-size: 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(30, 107, 255, 0.12);
}

.ledger-table tbody td.col-num .cell-input {
  text-align: right;
}

/* ---- 日期单元格：日历图标按钮 + 日历小弹窗 ---- */
.ledger-table tbody td.editing-date {
  position: relative;
  padding: 4px 22px 4px 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--primary);
  border-radius: 3px;
  cursor: default;
}

.cell-more-btn {
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 3px;
  background: none;
  color: #2f9fd6;
  cursor: pointer;
}

.cell-more-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  margin: 0 auto;
}

.cell-more-btn:hover {
  background: #eaf6fd;
}

.date-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.35);
}

/* 从要素核对弹窗内（term）/ 顶部日期筛选（filter）打开：去掉遮罩底色，当浮层用 */
.date-mask.is-term,
.date-mask.is-filter {
  background: transparent;
}

.date-dialog {
  position: absolute;
  width: 300px;
  max-width: calc(100vw - 16px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.dp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px 8px;
}

.dp-nav-btn {
  width: 30px;
  height: 26px;
  border: none;
  border-radius: 4px;
  background: none;
  color: #8a93a2;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.dp-nav-btn:hover {
  background: #f0f2f6;
  color: #4a5568;
}

.dp-ym {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #1f2430;
}

.dp-week,
.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 12px;
}

.dp-week {
  padding-bottom: 6px;
}

.dp-week span {
  text-align: center;
  font-size: 13px;
  color: #8a93a2;
}

.dp-day {
  height: 40px;
  margin: 1px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: none;
  font-family: inherit;
  font-size: 15px;
  color: #2b3240;
  cursor: pointer;
}

.dp-day:not(.is-selected):hover {
  background: #f0f3f9;
}

.dp-day.is-outside {
  color: #c6ccd6;
}

.dp-day.is-selected {
  background: #2e3bb3;
  color: #fff;
  font-weight: 500;
}

.dp-foot {
  margin-top: 8px;
  border-top: 1px solid #eef0f4;
}

.dp-today {
  width: 100%;
  height: 52px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 16px;
  color: #555d6e;
  cursor: pointer;
}

.dp-today:hover {
  color: #2e3bb3;
  background: #f5f6fa;
}

/* toast（复用 styles.css 的同名样式，兜底定义） */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  background: rgba(26, 26, 46, 0.9);
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 2000;
}

/* 顶部居中提示（要素核对弹窗确定修改后的提示），始终浮在遮罩之上 */
.toast.toast-top {
  bottom: auto;
  top: 32px;
}

/* ===== 核心要素比对弹窗（5.10/5.12：未完成/已完成台账） ===== */

/* 要素单元格：右侧「⋯」入口 */
.core-cell {
  position: relative;
}

.core-more {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #d9e0ea;
  border-radius: 4px;
  background: #fff;
  color: #8a94a6;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.core-more:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== 弹窗框架：宽版三栏（上传 / 比对 / 表单），布局按需求文档截图 ===== */

.core-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
}

.core-mask.hidden {
  display: none;
}

.core-dialog {
  display: flex;
  flex-direction: column;
  width: 1440px;
  max-width: calc(100vw - 48px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

.core-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px 12px;
}

.core-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1f2733;
}

/* 标题右侧提示：四类要素仅可保留一个 */
.core-tip {
  font-size: 12px;
  font-weight: 400;
  color: #e5482f;
  line-height: 1.5;
}

/* 上传后：标题旁「重新上传」 */
.core-reupload {
  padding: 4px 12px;
  border: none;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.core-reupload:hover {
  opacity: 0.9;
}

.core-head .entry-close {
  margin-left: auto;
}

.core-body {
  /* 左右两栏等宽（1fr），中间箭头列固定 56px */
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
  /* 加高到 700，右侧要素表单内容可完整展示而不出现滚动条；窗口过矮时按视口收缩 */
  height: min(700px, calc(100vh - 190px));
  padding: 0 24px;
}

/* 左侧：上传区（初始态）/ 保函文本预览；与右侧要素表单等宽 */
.core-left {
  flex: 1 1 0;
  min-width: 0;
}

.core-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  border: 1px solid #e3e8f0;
  border-radius: 8px;
  background: #fbfcfe;
  text-align: center;
  cursor: pointer;
}

.core-upload-zone:hover {
  border-color: var(--primary);
}

.core-box-icon {
  width: 52px;
  height: 52px;
}

.core-upload-text {
  margin: 0;
  font-size: 13px;
  color: #555d6e;
}

.core-upload-ext {
  margin: 0;
  font-size: 12px;
  color: #9aa3b2;
}

/* 左侧：上传后的保函文本预览（Word 版式，识别要素红字） */
.core-preview-doc {
  height: 100%;
  overflow-y: auto;
  border: 1px solid #e3e8f0;
  border-radius: 8px;
  background: #fff;
}

.core-doc-page {
  padding: 20px 22px 26px;
  font-family: "Songti SC", "SimSun", "STSong", serif;
  font-size: 12.5px;
  line-height: 1.9;
  color: #2b3240;
}

.core-doc-page p {
  margin: 0 0 4px;
  text-indent: 2em;
  word-break: break-all;
}

.core-doc-page p.cd-title {
  text-indent: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.core-doc-page p.cd-no {
  text-indent: 0;
  text-align: right;
  margin-bottom: 10px;
}

.core-doc-page b.hl {
  color: #e5484d;
  font-weight: 600;
}

/* 中间：双向箭头 + 替换左图 */
.core-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 0 0 56px;
}

.core-swap-icon {
  width: 30px;
  height: 30px;
}

.core-swap-btn {
  padding: 5px 12px;
  border: none;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.core-swap-btn:hover {
  opacity: 0.9;
}

/* 右侧：要素表单（蓝色边框面板） */
.core-form {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  border: 1.5px solid var(--primary);
  border-radius: 10px;
  padding: 16px 18px;
}

.cf-field {
  margin-bottom: 14px;
}

.cf-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1f2733;
}

.cf-label i {
  color: #e5484d;
  font-style: normal;
}

/* 字段属性小标签 */
.cf-chip {
  padding: 1px 8px;
  border-radius: 3px;
  background: #e8f0ff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 400;
}

.cf-chip.is-gray {
  background: #eef0f4;
  color: #8a94a6;
}

.cf-chip.is-red {
  background: #fdecec;
  color: #e5484d;
}

/* 保函类型下方的分组标签：可切换、可删除，不可新增 */
.cf-groups {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 14px;
}

.cf-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid #d9dee8;
  border-radius: 4px;
  background: #fff;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}

.cf-group:hover {
  border-color: var(--primary);
}

.cf-group.is-active {
  border-color: var(--primary);
  background: #f3f7ff;
  color: var(--primary);
}

.cf-group-x {
  font-style: normal;
  font-weight: 400;
  color: #9aa3b2;
  line-height: 1;
  cursor: pointer;
}

.cf-group-x:hover {
  color: #e5484d;
}

/* 仅剩一个组时不可再删 */
.cf-group.is-only .cf-group-x {
  display: none;
}

.cf-group-add {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px dashed #c9d0dc;
  border-radius: 4px;
  background: #f7f9fc;
  color: #8a94a6;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.cf-group-add:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cf-two {
  display: flex;
  gap: 10px;
}

.cf-two .cf-input {
  flex: 1;
}

.cf-two .cf-select {
  flex: 0 0 128px;
}

.cf-input {
  display: flex;
  align-items: center;
  border: 1px solid #d9e0ea;
  border-radius: 6px;
  background: #fff;
}

.cf-input:focus-within {
  border-color: var(--primary);
}

.cf-input input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: #1f2733;
}

.cf-input select {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: #1f2733;
}

.cf-select {
  display: flex;
  align-items: center;
  border: 1px solid #d9e0ea;
  border-radius: 6px;
}

.cf-select select {
  width: 100%;
  height: 36px;
  padding: 0 8px;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: #1f2733;
}

.cf-unit {
  padding-right: 10px;
  font-size: 12px;
  color: #8a94a6;
}

.cf-chev {
  width: 14px;
  height: 14px;
  margin-left: auto;
  margin-right: 10px;
  flex-shrink: 0;
}

/* 与识别文本不一致：红框标识，改为一致后消失 */
.cf-input.is-diff {
  border-color: #e5484d;
  box-shadow: inset 0 0 0 0.5px #e5484d;
}

.cf-hint {
  margin-top: 5px;
  font-size: 11px;
  color: #9aa3b2;
}

/* tag（保函类型 / 出函方） */
.cf-tagbox {
  padding: 0 10px;
}

.cf-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 5px 0;
  padding: 3px 8px;
  border-radius: 4px;
  background: #eef1f6;
  font-size: 12px;
  color: #555d6e;
}

.cf-tag-x {
  cursor: pointer;
  font-style: normal;
  font-weight: 400;
  color: #8a94a6;
}

.cf-tag-x:hover {
  color: #e5484d;
}

/* 保函金额 + 保函期限（同行） */
.cf-row2 {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}

/* 单选项 + 搜索框同一行（空间不足时自动换行） */
.cf-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cf-radios-sm {
  flex: 0 0 auto;
  gap: 12px;
}

/* 项目所在地搜索下拉：输入框 + 展开的行政区面板 */
.cf-loc {
  position: relative;
  flex: 1 1 180px;
  min-width: 0;
}

.cf-loc-field {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px 0 10px;
  border: 1px solid #e1e6ef;
  border-radius: 6px;
  background: #f7f9fc;
  cursor: pointer;
}

.cf-loc.is-open .cf-loc-field {
  border-color: var(--primary);
  background: #fff;
}

.cf-loc.is-open .cf-dd-arrow {
  transform: rotate(180deg);
}

.cf-loc-field input {
  flex: 1;
  min-width: 0;
  height: 32px;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  color: #1f2733;
}

.cf-loc-field input::placeholder {
  color: #9aa3b2;
}

.cf-loc-panel {
  display: none;
  position: absolute;
  z-index: 30;
  left: 0;
  top: calc(100% + 6px);
  width: 250px;
  max-width: 100%;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 32, 63, 0.15);
}

.cf-loc.is-open .cf-loc-panel {
  display: block;
}

.cf-loc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 16px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}

.cf-loc-item:hover {
  background: #f4f7fc;
  color: var(--primary);
}

/* 市级列表顶部的返回行（‹ 省份） */
.cf-loc-back {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  margin-bottom: 4px;
  padding: 0 12px;
  border-bottom: 1px solid #f0f2f7;
  font-size: 12.5px;
  font-weight: 600;
  color: #1f2733;
  cursor: pointer;
}

.cf-loc-back:hover {
  color: var(--primary);
}

.cf-loc-back svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: #8a94a6;
}

.cf-loc-empty {
  padding: 14px 16px;
  font-size: 12.5px;
  color: #9aa3b2;
}

.cf-loc-sub {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: #b7bfcc;
}

.cf-term-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

/* 保函期限：左侧值（数值 / 指定日期框）+ 右侧单位下拉（月/天/指定日期） */
.cf-term-row input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: #1f2733;
}

.cf-term-row input[readonly] {
  cursor: pointer;
}

.cf-term-row select {
  flex: 0 0 96px;
  height: 36px;
  padding: 0 8px;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: #1f2733;
}

/* 识别期限与台账一致：绿色 tag（可移除） */
.cf-term-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 3px;
  background: #e8f7ee;
  color: #1ca35a;
  font-size: 11px;
}

/* 保函格式勾选组 */
.cf-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.cf-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 400;
  color: #344054;
  cursor: pointer;
}

.cf-check input,
.cf-radio input {
  accent-color: var(--primary);
  margin: 0;
}

/* 出函方行内小下拉（银行保函/公司保函） */
.cf-mini {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 3px;
  background: #f1f3f8;
  font-size: 11px;
  font-weight: 400;
  color: #6b7280;
}

.cf-mini select {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  color: #6b7280;
  cursor: pointer;
}

.cf-chev-sm {
  width: 10px;
  height: 10px;
}

/* 出函方：复选框选项行 + 单选下拉 */
.cf-checks-line {
  gap: 8px 18px;
  margin-bottom: 10px;
}

.cf-dd {
  position: relative;
}

.cf-dd-field {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #e4e8f0;
  border-radius: 6px;
  background: #f7f9fc;
  font-family: inherit;
  font-size: 13px;
  color: #6b7280;
  text-align: left;
  cursor: pointer;
}

.cf-dd-field:hover {
  border-color: #c9d4e6;
}

/* 出函方（公司保函）行尾的「+自定义」按钮 */
.cf-add-btn {
  padding: 3px 10px;
  border: 1px solid #d9dee8;
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 400;
  color: #344054;
  cursor: pointer;
}

.cf-add-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* 自定义出函方：按钮下方气泡 */
.cf-custom-wrap {
  position: relative;
  display: inline-flex;
}

.cf-custom-pop {
  position: relative;
  z-index: 35;
  width: 240px;
  margin: -4px 0 10px auto;
  padding: 8px;
  border: 1px solid #e6eaf2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 32, 63, 0.14);
}

.cf-custom-pop::before {
  content: "";
  position: absolute;
  right: 18px;
  top: -5px;
  width: 8px;
  height: 8px;
  border-left: 1px solid #e6eaf2;
  border-top: 1px solid #e6eaf2;
  background: #fff;
  transform: rotate(45deg);
}

.cf-custom-pop input {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #e4e8f0;
  border-radius: 6px;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  color: #1f2733;
}

.cf-custom-pop input:focus {
  border-color: var(--primary);
}

.cf-custom-tip {
  margin-top: 6px;
  font-size: 11px;
  color: #8a94a6;
}

.cf-dd.is-open .cf-dd-field {
  border-color: var(--primary);
}

.cf-dd-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-dd-text.is-empty {
  color: #a6b0c0;
}

.cf-dd-x {
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: #a6b0c0;
  padding: 0 2px;
  cursor: pointer;
}

.cf-dd-x:hover {
  color: #6b7280;
}

.cf-dd-x[hidden] {
  display: none;
}

.cf-dd-arrow {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: #8a94a6;
  transition: transform 0.15s;
}

.cf-dd.is-open .cf-dd-arrow {
  transform: rotate(180deg);
}

.cf-dd-panel {
  display: none;
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 224px;
  overflow-y: auto;
  padding: 4px 0;
  border: 1px solid #e6eaf2;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 32, 63, 0.12);
}

.cf-dd.is-open .cf-dd-panel {
  display: block;
}

.cf-dd.is-up .cf-dd-panel {
  top: auto;
  bottom: calc(100% + 4px);
}

.cf-dd-item {
  padding: 7px 12px;
  font-size: 13px;
  color: #344054;
  cursor: pointer;
}

.cf-dd-item:hover {
  background: #f4f7fc;
}

.cf-dd-item.is-active {
  color: var(--primary);
  font-weight: 500;
}

/* 是否转开 */
.cf-radios {
  display: flex;
  gap: 24px;
}

.cf-radio {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 400;
  color: #344054;
  cursor: pointer;
}

/* 底部：「取消」+「确定修改」按钮，右下角 */
.core-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 14px 24px 20px;
}

/* 底部：取消（次要按钮） */
.core-cancel {
  padding: 8px 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font-size: 14px;
  cursor: pointer;
}

.core-cancel:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.core-submit {
  padding: 9px 30px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(90deg, #1e6bff, #7b5bff);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.core-submit:hover {
  opacity: 0.92;
}

/* 问候语行：仅看个人下拉（仅此一项，默认选中） */
.scope-self {
  appearance: none;
  height: 26px;
  margin-left: 2px;
  padding: 0 24px 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  color: var(--ink-secondary);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12px' height='12px' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
}
