:root {
  --bg: #f3f5f2;
  --surface: #ffffff;
  --primary: #1a4336;
  --primary-soft: #e7f3ee;
  --primary-hover: #12352b;
  --accent: #0f6b56;
  --accent-soft: #e7f3ee;
  --accent-link: #0f6b56;
  --danger: #b4453c;
  --success: #1c8a52;
  --text: #1c2824;
  --text-secondary: #4e5c56;
  --text-muted: #8a948e;
  --label: #6b7d74;
  --border: #e3e9e4;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(22, 40, 32, .04), 0 8px 24px rgba(22, 40, 32, .05);
  --shadow-hover: 0 10px 28px rgba(22, 40, 32, .09);
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

.app {
  max-width: 1800px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}

/* Header / Nav */
.header {
  background: transparent;
  margin-bottom: 28px;
  box-shadow: none;
  padding: 0;
}

.header-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 18px;
}

.biz-day-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 10px 6px 14px;
}

.biz-day-label { color: var(--text-muted); letter-spacing: .02em; }
#biz-day-display {
  padding: 2px 10px;
  background: var(--primary-soft);
  color: var(--accent-link);
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  background: transparent;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px;
  box-shadow: var(--shadow);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.tab {
  padding: 10px 18px;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: .92rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: background .15s, color .15s;
  white-space: nowrap;
  font-family: inherit;
}

.main-nav > .tab {
  padding: 9px 16px;
}

.tab:hover { color: var(--text); background: rgba(15, 107, 86, .06); }
.tab.active {
  background: var(--primary-soft);
  color: var(--accent-link);
  border: none;
}

.nav-group {
  position: relative;
}

.nav-group-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: .92rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: inherit;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.nav-group-btn:hover {
  color: var(--text);
  background: rgba(15, 107, 86, .06);
}

.nav-group.open > .nav-group-btn,
.nav-group.has-active > .nav-group-btn {
  background: var(--primary-soft);
  color: var(--accent-link);
}

.nav-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .55;
  transition: transform .15s;
}

.nav-group.open > .nav-group-btn .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 168px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-hover);
  z-index: 40;
  flex-direction: column;
  gap: 2px;
}

.nav-group.open > .nav-dropdown {
  display: flex;
}

.nav-dropdown .tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .9rem;
}

.nav-dropdown .tab.active {
  background: var(--primary-soft);
  color: var(--accent-link);
}

.panel { display: none; }
.panel.active { display: block; animation: fadeIn .25s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Portal / Dashboard */
.hero-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-radius: 20px;
  background: linear-gradient(112deg, #14382e 0%, #1c4d3d 54%, #246454 100%);
  border: 1px solid transparent;
  padding: 32px 40px;
  margin-bottom: 18px;
  min-height: 160px;
  box-shadow: 0 14px 36px rgba(16, 48, 38, .16);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -55%;
  width: 58%;
  height: 210%;
  background:
    radial-gradient(ellipse 50% 120% at 86% 12%, rgba(214, 186, 120, .26), transparent 58%),
    radial-gradient(ellipse 42% 90% at 68% 100%, rgba(80, 160, 130, .20), transparent 60%);
  filter: blur(18px);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; flex: 1 1 auto; max-width: 620px; }
.eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-link);
  margin-bottom: 10px;
}
.hero-card .eyebrow { color: #d7b56a; }
.hero-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
  color: #f7f4ee;
}
.hero-content p {
  color: rgba(247, 244, 238, .72);
  font-size: .95rem;
  max-width: 560px;
}

/* 右侧承载「我在哪一天、今天走到第几步」，避免首屏右半整块空着 */
.hero-aside {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 44px;
  flex: 0 0 auto;
  padding-right: 4px;
}

.hero-fact {
  display: flex;
  flex-direction: column;
  min-width: 96px;
}

.hero-fact-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(247, 244, 238, .5);
  margin-bottom: 6px;
}

.hero-fact-value {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  color: #f7f4ee;
  font-variant-numeric: tabular-nums;
}

.hero-fact-value small {
  font-size: .8rem;
  font-weight: 500;
  color: rgba(247, 244, 238, .55);
  margin-left: 3px;
}

.hero-progress {
  display: block;
  width: 120px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(247, 244, 238, .16);
  overflow: hidden;
}

.hero-progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #d7b56a;
  transition: width .45s ease;
}

@media (max-width: 900px) {
  .hero-card { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-aside { gap: 32px; padding-right: 0; }
}

.notice-card {
  background: #f7faf8;
  border: 1px solid #e3eee7;
  border-radius: 18px;
  padding: 22px 28px;
  margin-bottom: 18px;
}

.notice-card .eyebrow { color: #0f6b56; }
.notice-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.notice-card p {
  color: var(--text-secondary);
  font-size: .9rem;
  margin: 0;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.portal-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 168px;
  transition: box-shadow .2s, transform .2s;
}

.portal-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.portal-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.portal-card p {
  color: var(--text-secondary);
  font-size: .9rem;
  flex: 0 0 auto;
  /* 描述统一占三行高度：各卡文案长短不同，若由内容撑高，下面的入口就会高低不齐 */
  min-height: calc(3 * 1.55 * 0.9rem);
  max-height: calc(3 * 1.55 * 0.9rem);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

/* 入口区固定从同一基线开始，不足的留白统一落在底部 */
.portal-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
}

.portal-link {
  color: var(--accent-link);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  align-self: flex-start;
  line-height: 1.5;
}
.portal-link:hover { text-decoration: underline; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-chip {
  background: var(--surface);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.stat-chip:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.stat-chip .label {
  display: block;
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--label);
  margin-bottom: 6px;
  font-weight: 600;
}
.stat-chip .value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}
.stat-chip .value.warn-text { color: #b4453c; }

.section-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.section-card .section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.section-card .section-head h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.section-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.section-head .filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Toolbar / forms */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.filters { display: flex; gap: 8px; flex-wrap: wrap; }

select, input[type="date"], input[type="text"], input[type="number"], input[type="password"], input[type="file"], textarea {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .9rem;
  background: var(--surface);
  font-family: inherit;
  color: var(--text);
}

.btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 500;
  transition: all .15s;
  font-family: inherit;
  color: var(--text-secondary);
  white-space: nowrap;
}

.btn:hover { border-color: var(--accent-link); color: var(--accent-link); background: var(--accent-soft); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; border-color: var(--primary-hover); }
.btn-danger { color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; color: var(--danger); }
.btn-sm { padding: 5px 12px; font-size: .8rem; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
}

.table-wrap {
  background: transparent;
  border-radius: var(--radius-sm);
  box-shadow: none;
  overflow-x: auto;
}

.section-card .table-wrap,
.recon-card .table-wrap,
.import-card .table-wrap {
  margin: 0 -4px;
}

table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--border); }
th {
  background: transparent;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafafb; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 500;
  white-space: nowrap;
  margin-right: 4px;
}

/* 机构 / 账户类型徽标：统一低饱和，色相拉开
   —— 原来「基金行政」和「托管行」是同一种绿，TA 又是高饱和玫红，与整体基调不搭 */
.badge-bank { background: #eaeff2; color: #51636e; }        /* 雾灰 */
.badge-custodian { background: #dcefe8; color: #0d6553; }   /* 托管青 */
.badge-broker { background: #fbeed7; color: #8a5c12; }      /* 券商琥珀 */
.badge-admin { background: #edf0db; color: #5f6b2b; }       /* 行政橄榄 */
.badge-ta { background: #f2e7e9; color: #7d5560; }          /* TA 灰玫瑰 */
.badge-active { background: #e9f5ee; color: #157347; }      /* 状态：启用 */
.badge-closed { background: #eff1f3; color: #5b6b7f; }
.badge-fund { background: var(--accent-soft); color: var(--accent-link); }

.amount-pos { color: var(--success); }
.amount-neg { color: var(--danger); }

.page-hero {
  margin-bottom: 20px;
  max-width: 640px;
}

.page-hero .eyebrow {
  color: var(--label);
}

.page-hero h2 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: .95rem;
  margin: 0;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.import-card-wide {
  max-width: 760px;
}

.notice-card.compact {
  padding: 18px 22px;
  margin-bottom: 16px;
}

.notice-card.compact h3 {
  font-size: 1.05rem;
}

.dialog-body {
  padding: 28px;
}

#recon-details.hidden {
  display: none !important;
}

.hint {
  color: var(--text-secondary);
  font-size: .9rem;
  margin: 0 0 16px;
}

.pill-track {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.import-card, .recon-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.import-card { max-width: 720px; }
.import-card h2, .recon-card h2 { margin-bottom: 8px; font-size: 1.05rem; }
.hint { color: var(--text-muted); font-size: .875rem; margin-bottom: 20px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 500; color: var(--text-secondary); }
.form-group input, .form-group select, .form-group textarea { width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.template-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.template-section h3 { font-size: .9rem; margin-bottom: 8px; }
.template-section pre {
  background: #f7f8f9;
  padding: 12px;
  border-radius: 12px;
  font-size: .8rem;
  overflow-x: auto;
}

.import-result {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: .875rem;
}
.import-result.success { background: #e6f7ef; color: #065f46; }
.import-result.error { background: #fef2f2; color: #991b1b; }
.hidden { display: none; }

dialog {
  border: none;
  border-radius: 20px;
  padding: 0;
  margin: auto;
  box-shadow: 0 16px 48px rgba(16,24,40,.16);
  max-width: 560px;
  width: 90%;
  max-height: 88vh;
  overflow-y: auto;
}

dialog::backdrop { background: rgba(15, 23, 42, .35); }
dialog form { padding: 28px; }
dialog form > .eyebrow { margin-bottom: 8px; }
dialog h2 { margin-bottom: 20px; font-size: 1.2rem; font-weight: 700; }
dialog.wide-dialog { max-width: 960px; width: 95%; }

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.empty-state {
  text-align: center;
  padding: 36px;
  color: var(--text-muted);
}

.table-link, .stat-link, .portal-link {
  color: var(--accent-link);
}
.table-link, .stat-link {
  text-decoration: none;
  font-weight: 600;
}
.table-link:hover, .stat-link:hover { text-decoration: underline; }

.dash-row-link { cursor: pointer; }
.dash-row-link:hover td { background: #f6f5ff; }

.dash-link, .dash-stats, .link-value { /* legacy compat */ }
.dash-stats { display: none; }

.recon-type-switch {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.recon-type-switch.pill-track {
  margin-bottom: 20px;
}

.recon-type-btn {
  padding: 9px 20px;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background .15s, color .15s;
}

.recon-type-btn.active {
  background: var(--primary-soft);
  color: var(--accent-link);
}

.recon-type-panel { display: none; }
.recon-type-panel.active { display: block; }

.recon-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

/* 表格不折行后，栅格项必须允许收缩，否则会把整页顶出横向滚动 */
.recon-layout > * {
  min-width: 0;
}

.recon-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.recon-summary {
  background: var(--surface);
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.recon-summary .eyebrow { margin-bottom: 6px; }
.recon-summary.balanced { border-left-color: var(--success); }
.recon-summary.unbalanced { border-left-color: var(--danger); }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.summary-item .label {
  display: block;
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 4px;
  font-weight: 600;
}

.summary-item .value { font-size: 1rem; font-weight: 700; }
.success-text { color: var(--success); }
.warn-text { color: #c2410c; }
.text-muted { color: var(--text-muted); }

tr.row-warn td {
  background: rgba(220, 38, 38, 0.04);
}

.batch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--bg-soft, #f4f7f5);
  border-radius: 12px;
}

.batch-bar select,
.batch-bar input[type="text"] {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.recon-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.recon-tab {
  padding: 7px 14px;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: .85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.recon-tab.active {
  background: var(--primary-soft);
  color: var(--accent-link);
}

@media (max-width: 900px) {
  .recon-layout, .portal-grid, .stat-strip { grid-template-columns: 1fr; }
  .hero-card { padding: 28px 24px; }
  .hero-card::after { width: 70%; opacity: .7; }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .main-nav { justify-content: flex-start; border-radius: 16px; }
  .nav-dropdown { left: 0; transform: none; }
  .app { padding: 16px 14px 40px; }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.contact-card {
  background: #f7f8f9;
  border-radius: 14px;
  padding: 16px 18px;
}

.contact-card .contact-name {
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.contact-card .contact-meta {
  color: var(--text-secondary);
  font-size: .85rem;
  margin-bottom: 10px;
}

.contact-card .contact-reach {
  font-size: .88rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.contact-card .contact-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-primary-contact {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--accent-link);
  font-size: .72rem;
  font-weight: 600;
}

.filters-wrap {
  flex-wrap: wrap;
  max-width: 100%;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

@media (max-width: 1100px) {
  .chart-grid { grid-template-columns: 1fr; }
}

.chart-panel {
  background: var(--bg-soft, #f4f7f5);
  border-radius: 14px;
  padding: 14px 16px;
}

.chart-panel h3 {
  margin: 0 0 12px;
  font-size: .92rem;
  font-weight: 700;
}

.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 40px;
}

.chart-bar-row {
  display: grid;
  grid-template-columns: minmax(72px, 110px) 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: .82rem;
}

.chart-bar-row .chart-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-secondary, #555);
}

.chart-track {
  height: 10px;
  background: rgba(15, 107, 86, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.chart-fill {
  height: 100%;
  background: var(--accent-link);
  border-radius: 999px;
  min-width: 2px;
}

.chart-bar-row .chart-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.chart-empty {
  color: var(--text-muted);
  font-size: .85rem;
  padding: 8px 0;
}

/* Header 用户区 */
.header-top {
  gap: 16px;
  flex-wrap: wrap;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 6px;
  box-shadow: var(--shadow);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--accent-link);
  font-weight: 500;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  margin-right: 4px;
}

.user-meta strong {
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
}

.user-role {
  font-size: .7rem;
  color: var(--text-muted);
}

.tag {
  display: inline-block;
  font-size: .68rem;
  color: var(--accent-link);
  background: var(--primary-soft);
  border-radius: var(--radius-pill);
  padding: 1px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

/* 角色权限说明 */
.role-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.role-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: .78rem;
}

.role-chip strong {
  font-weight: 500;
  color: var(--text);
}

.role-chip span {
  color: var(--text-muted);
  font-size: .72rem;
}

/* 只读账号提示 */
body.role-readonly .main-nav::after {
  content: "只读账号：仅可查看，无法编辑或签核";
  font-size: .72rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  margin-left: auto;
  align-self: center;
}

/* 登录页 */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.login-shell {
  width: 100%;
  max-width: 400px;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px 24px;
}

.login-brand {
  margin-bottom: 22px;
}

.login-brand h1 {
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 6px 0 6px;
}

.login-sub {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.login-form .form-group {
  margin-bottom: 16px;
}

.login-form input {
  width: 100%;
}

.login-error {
  font-size: .78rem;
  color: var(--danger);
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 14px;
}

.login-submit {
  width: 100%;
  padding: 10px 16px;
  margin-top: 4px;
}

.login-foot {
  margin-top: 18px;
  font-size: .72rem;
  color: var(--text-muted);
  text-align: center;
}

/* 弹窗内的提示文字 */
#password-dialog .hint {
  margin-bottom: 14px;
  color: var(--danger);
}

input[readonly] {
  background: var(--bg);
  color: var(--text-secondary);
  cursor: not-allowed;
}

/* 统一聚焦态 */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--accent-link);
  box-shadow: 0 0 0 3px rgba(15, 107, 86, .16);
}

button:focus-visible,
.tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- 校验门禁与严重度 ---------- */

.blocker-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(180, 69, 60, .26);
  background: rgba(180, 69, 60, .085);
  color: #8e3630;
  font-size: .875rem;
  line-height: 1.6;
}

.blocker-bar .blocker-icon {
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1.5;
}

.blocker-bar strong { color: #7a2c26; }

.blocker-bar.is-ok {
  border-color: rgba(28, 138, 82, .24);
  background: rgba(28, 138, 82, .07);
  color: #14603a;
}

.blocker-bar.is-ok strong { color: #14603a; }

.gate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.gate-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--border);
}

.gate-card .gate-eyebrow {
  display: block;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--label);
  margin-bottom: 6px;
}

.gate-card .gate-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.gate-card .gate-meta {
  font-size: .8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.gate-card .gate-figure {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 2px 0 4px;
}

.gate-card .gate-figure small {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.gate-card.is-ok { border-left-color: var(--success); }
.gate-card.is-ok .gate-figure { color: var(--success); }

.gate-card.is-blocked { border-left-color: var(--danger); }
.gate-card.is-blocked .gate-figure { color: var(--danger); }

.gate-card.is-pending { border-left-color: #f59e0b; }
.gate-card.is-pending .gate-figure { color: #b45309; }

.gate-card.is-na { border-left-color: #cbd5e1; opacity: .78; }
.gate-card.is-na .gate-figure { color: var(--text-muted); }

/* 严重度标记 */
.sev-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

.sev-blocker { background: rgba(220, 38, 38, .1); color: #b91c1c; }
.sev-warning { background: rgba(245, 158, 11, .14); color: #b45309; }
.sev-info { background: rgba(100, 116, 139, .12); color: #475569; }

tr.row-blocker td {
  background: rgba(220, 38, 38, .045);
}

tr.row-blocker td:first-child {
  box-shadow: inset 3px 0 0 var(--danger);
}

.reason-hint {
  display: block;
  font-size: .74rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 2px;
  max-width: 320px;
}

.diff-pos { color: #b91c1c; font-weight: 700; }
.diff-neg { color: #b91c1c; font-weight: 700; }
.diff-zero { color: var(--success); font-weight: 700; }

.daily-attest-locked {
  opacity: .55;
  pointer-events: none;
}

.sev-badge.is-closed {
  background: rgba(100, 116, 139, .08);
  color: #94a3b8;
}

tr.row-closed td {
  color: var(--text-muted);
}

tr.row-closed td strong {
  font-weight: 600;
  color: var(--text-secondary);
}

/* ---------- 表格密度与差异表 ---------- */

.table-breaks th,
.table-breaks td {
  vertical-align: top;
}

.table-breaks td {
  padding: 12px 14px;
}

/* 差异队列：13 列，短字段不换行，原因列独占换行，超宽时横向滚动 */
#panel-breaks .table-wrap table {
  width: auto;
  min-width: 100%;
}

#panel-breaks .table-wrap th,
#panel-breaks .table-wrap td {
  white-space: nowrap;
}

#panel-breaks .table-wrap td:nth-child(7) {
  white-space: normal;
  min-width: 220px;
  max-width: 300px;
}

#panel-breaks .table-wrap td:nth-child(7) .reason-hint {
  max-width: none;
}

.table-breaks td:nth-child(4) {
  min-width: 260px;
}

.attest-layout form {
  max-width: 760px;
}

.recon-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.recon-actions .hint {
  flex: 1 1 320px;
  min-width: 260px;
  line-height: 1.5;
}

#daily-recon-status.is-blocked {
  background: rgba(220, 38, 38, .05);
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, .16);
}

#daily-recon-status.is-ok {
  background: rgba(5, 150, 105, .06);
  box-shadow: inset 0 0 0 1px rgba(5, 150, 105, .16);
}

#daily-recon-status.is-pending {
  background: rgba(245, 158, 11, .07);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .18);
}

button:disabled,
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

/* 差异队列表格密度：收紧内边距，尽量在常见屏宽内完整显示 */
#panel-breaks .table-wrap th,
#panel-breaks .table-wrap td {
  padding: 11px 9px;
}

#panel-breaks .table-wrap td:nth-child(7) {
  min-width: 126px;
  max-width: 190px;
}

#panel-breaks .table-wrap td:nth-child(7) .reason-hint {
  font-size: .7rem;
}

.form-group-check {
  display: flex;
  align-items: flex-end;
  min-height: 42px;
}

.form-group-check .checkbox-label {
  padding-bottom: 9px;
  line-height: 1.4;
}

.form-group-check .checkbox-label span {
  display: inline;
}

/* 修正：.form-group label 的 display:block 会覆盖 .checkbox-label 的 flex 布局，
   导致复选框被拉成整行宽度、文字掉到下一行 */
.form-group .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
}

.form-group .checkbox-label input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
}

.form-group .checkbox-label span {
  flex: 1 1 auto;
}

/* ---------- 结余勾稽摘要（7 项） ---------- */

#balance-summary {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px 12px;
}

#balance-summary .summary-item .value {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}

.summary-hint {
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

/* 摘要里的轻量链接按钮（用于「去导入流水」这类引导） */
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--accent-link);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

.link-btn:hover {
  background: var(--primary);
  color: #fff;
}

.link-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* 摘要里的链接按钮：与同行的数字基线对齐 */
#balance-summary .link-btn {
  align-self: flex-start;
  padding: 2px 10px;
  font-size: .76rem;
  line-height: 1.6;
}

/* ---------- 差异来源卡片 ---------- */

.adjust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 12px;
  margin: 14px 0 16px;
}

.adjust-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.adjust-card:hover {
  border-color: #d8d3ff;
  box-shadow: var(--shadow);
}

.adjust-card.is-empty {
  opacity: .58;
}

.adjust-card.is-active {
  border-color: var(--accent-link);
  background: var(--primary-soft);
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(15, 107, 86, .12);
}

.adjust-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.adjust-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.adjust-card-title {
  font-size: .86rem;
  font-weight: 700;
  color: var(--text);
}

.adjust-card-count {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f3f4f6;
  border-radius: var(--radius-pill);
  padding: 1px 8px;
  white-space: nowrap;
}

.adjust-card.is-active .adjust-card-count {
  background: #fff;
  color: var(--accent-link);
}

.adjust-card-amount {
  font-size: 1.02rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.adjust-card-hint {
  font-size: .71rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---------- 差异项明细表 ---------- */

.table-adjust td {
  vertical-align: top;
}

.table-adjust .adjust-amount {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.adjust-amount.is-pos { color: #b91c1c; }
.adjust-amount.is-neg { color: #047857; }

.adjust-card-amount.is-pos { color: #b91c1c; }
.adjust-card-amount.is-neg { color: #047857; }

.adj-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--accent-link);
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

.link-danger {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 600;
  color: var(--danger);
  cursor: pointer;
}

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

.table-adjust td .reason-hint {
  display: block;
}

/* 登记人姓名不折行 */
.table-adjust td:nth-child(7) {
  white-space: nowrap;
}

.bridge-value.is-neg { color: #047857; }

/* ---------- 差额分解表（现金对账 / 持仓对账） ---------- */

.table-decomp {
  min-width: 100%;
}

.table-decomp th.num,
.table-decomp td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table-decomp th.cat-col {
  background: #fafaff;
  color: var(--accent-link);
}

.table-decomp td.cat-col {
  background: #fcfbff;
}

.table-decomp tbody tr:hover td.cat-col {
  background: #f7f5ff;
}

.decomp-amt {
  display: block;
  font-weight: 700;
}

.decomp-amt.is-pos { color: #b91c1c; }
.decomp-amt.is-neg { color: #047857; }

.table-decomp td .reason-hint {
  display: block;
}

/* 卡片区块之间的小标题 */
.sub-head {
  margin: 22px 0 10px;
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

/* 差额分解筛选提示条 */
.decomp-filter-hint {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: #f5f0ff;
  border: 1px solid #e0d4ff;
  border-radius: 8px;
  font-size: .86rem;
  color: var(--text);
  margin-bottom: 2px;
}
.decomp-filter-hint strong {
  color: var(--accent-link);
}
.decomp-filter-hint .link-primary {
  background: none;
  border: none;
  color: var(--accent-link);
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.decomp-filter-hint .link-primary:hover {
  background: rgba(15, 107, 86, .08);
}

/* 已筛选徽章 */
.adjust-card-badge {
  font-size: .72rem;
  color: var(--accent-link);
  font-weight: 600;
  margin-left: 4px;
}

/* ---------- 联系人智能识别 ---------- */

.table-parse {
  min-width: 100%;
}

.table-parse th,
.table-parse td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table-parse thead th {
  background: #f8f9fa;
  font-size: .78rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.table-parse tbody tr:hover {
  background: #f8f9fa;
}

.table-parse td input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-link);
  cursor: pointer;
}

#contact-parse-text {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  resize: vertical;
  line-height: 1.6;
}

/* ---------- 机构类型 checkbox 组 ---------- */

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 8px 0;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.checkbox-inline input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-link);
  cursor: pointer;
}

.checkbox-inline:hover {
  color: var(--accent-link);
}

/* ---------------------------------------------------------------------------
   TA 模块
   --------------------------------------------------------------------------- */

.ta-layout {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 1100px) {
  .ta-layout { grid-template-columns: 1fr; }
}

.ta-fund-pane tbody tr {
  cursor: pointer;
}

.ta-fund-pane tbody tr.row-selected td {
  background: var(--primary-soft);
}

.ta-fund-pane tbody tr.row-selected td:first-child {
  box-shadow: inset 3px 0 0 var(--primary);
}

.badge-ta-subscribe {
  background: #eef0f2;
  color: #4a4f56;
}

.badge-ta-redeem {
  background: #fff4e5;
  color: #b45309;
}

.ta-pct {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 118px;
}

.ta-pct-track {
  flex: 1;
  height: 6px;
  background: #edeff1;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.ta-pct-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-pill);
  transition: width .25s ease;
}

.ta-pct span {
  font-size: .78rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#ta-import-dialog .template-section pre {
  white-space: pre-wrap;
  word-break: break-all;
}

/* 数值、日期、状态与操作列不换行，窄屏时由 table-wrap 横向滚动 */
#ta-sc-table td,
#ta-tx-table td:nth-child(1),
#ta-tx-table td:nth-child(3),
#ta-tx-table td:nth-child(5),
#ta-tx-table td:nth-child(6),
#ta-tx-table td:nth-child(7),
#ta-tx-table td:nth-child(8),
#ta-tx-table td:nth-child(9),
#ta-tx-table td:nth-child(10),
#ta-tx-table td:nth-child(11),
#ta-tx-table td:nth-child(12),
#ta-bal-table td:nth-child(n+2),
#ta-holder-table td:nth-child(1),
#ta-holder-table td:nth-child(n+3) {
  white-space: nowrap;
}

/* TA 导入弹窗：标题栏与表单两列布局 */
#ta-import-dialog .section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

#ta-import-form.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
}

@media (max-width: 720px) {
  #ta-import-form.form-grid { grid-template-columns: 1fr; }
}

/* 基金名称单行省略，避免窄列撑高行 */
.ta-fund-cell .reason-hint {
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 基金列表：名称省略、数值列不换行 */
.ta-fund-pane .reason-hint {
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#ta-funds-table td:nth-child(n+2) {
  white-space: nowrap;
}

/* ISIN：等宽字体，便于对码 */
.ta-isin {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .74rem;
  letter-spacing: .02em;
  color: var(--text-secondary);
}

/* 份额类表列数较多，收紧单元格内边距 */
#ta-sc-table th,
#ta-sc-table td {
  padding-left: 10px;
  padding-right: 10px;
}

/* 份额类代码较长时：收窄左栏、压缩内边距、允许首列换行，保证操作列可见 */
.ta-layout {
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
}

#ta-sc-table th,
#ta-sc-table td {
  padding: 10px 8px;
}

#ta-sc-table td:first-child {
  max-width: 200px;
  white-space: normal;
}

/* 左栏收窄后，基金名称与列宽同步压缩 */
.ta-fund-pane .reason-hint {
  max-width: 140px;
}

#ta-funds-table th,
#ta-funds-table td {
  padding-left: 8px;
  padding-right: 8px;
}

#ta-sc-table td:first-child {
  word-break: break-word;
}

/* 公募基金专属字段：非公募时整行隐藏 */
#fund-public-fields[hidden] {
  display: none !important;
}

/* 弹窗内的标题栏：标题在左、关闭按钮在右 */
.dialog-body > .section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

/* 基金总览：标识 / 配置检查 / 最近对账三行共用 3 列栅格与同一套标签度量，保证上下逐列对齐 */
#fund-overview-identifiers,
#fund-overview-checklist,
#fund-overview-runs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#fund-overview-identifiers .summary-item,
#fund-overview-checklist .summary-item,
#fund-overview-runs .summary-item {
  min-width: 0;
}

#fund-overview-identifiers .summary-item .label,
#fund-overview-checklist .summary-item .label,
#fund-overview-runs .summary-item .label {
  height: 18px;
  line-height: 18px;
  margin-bottom: 6px;
  white-space: nowrap;
}

.summary-item .label.label-en {
  font-size: .82rem;
  letter-spacing: .04em;
}

#fund-overview-identifiers .summary-item .value,
#fund-overview-checklist .summary-item .value,
#fund-overview-runs .summary-item .value {
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-all;
}

/* 基金总览列较多，单独放宽弹窗，保证 LEI 等 20 位代码单行显示 */
#fund-overview-dialog {
  max-width: 1040px;
}

/* 基金总览账户表：用途与日期不换行，账户名可换行 */
#fund-overview-body table th,
#fund-overview-body table td {
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
}

#fund-overview-body table td:first-child {
  white-space: normal;
  max-width: 220px;
}

/* 账户表首列与上方摘要标签左对齐 */
#fund-overview-body table th:first-child,
#fund-overview-body table td:first-child {
  padding-left: 0;
}

/* 顶部栏：工作日与用户菜单分列两端，导航与内容左边缘对齐 */
.header-top {
  justify-content: space-between;
}

.main-nav {
  margin-left: 0;
  margin-right: 0;
}

/* 首页今日流程 */
.workflow-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 16px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
  transition: box-shadow .15s, transform .15s;
}

.workflow-step:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.workflow-step.is-done {
  border-color: #cfe6da;
  background: #f4faf7;
  box-shadow: inset 3px 0 0 #7cb79b, var(--shadow);
}

/* 有未解决差异：警示但不等于报错，用琥珀 */
.workflow-step.is-warn {
  border-color: #e9dcbe;
  background: #fdfaf2;
  box-shadow: inset 3px 0 0 #cfa14e, var(--shadow);
}

/* 阻断级：必须清零才能签核，用砖红并加重左条 */
.workflow-step.is-blocked {
  border-color: #eecfc9;
  background: #fdf6f5;
  box-shadow: inset 3px 0 0 #b4453c, var(--shadow);
}

.workflow-step .step-index {
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.workflow-step .step-label {
  font-size: .92rem;
  font-weight: 700;
}

.workflow-step .step-detail {
  font-size: .78rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* 状态行贴底：明细一行或两行都能让整排卡片的状态字对齐 */
.workflow-step .step-state {
  margin-top: auto;
  padding-top: 4px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.workflow-step.is-done .step-state { color: var(--success); }
.workflow-step.is-warn .step-state { color: #9a6b1f; }
.workflow-step.is-blocked .step-state { color: var(--danger); }
.workflow-step.is-blocked .step-index { color: #b4453c; }

/* 交易方向徽标 */
.badge-trade-buy {
  background: #eef0f2;
  color: #4a4f56;
}

.badge-trade-sell {
  background: #fff4e5;
  color: #b45309;
}

/* 差异项生效区间与自动标记 */
.adj-period {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: .82rem;
  white-space: nowrap;
}

.adj-tag-auto {
  background: #e7f3ee;
  color: #0f6b56;
  font-weight: 600;
}

.adj-period-hint {
  display: block;
  white-space: nowrap;
}

/* 部分交收弹窗 */
.partial-summary {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  margin: 14px 0 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.partial-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: .86rem;
}

.partial-summary-row span {
  color: var(--text-secondary);
}

.partial-summary-row strong {
  font-variant-numeric: tabular-nums;
}

input.is-zero {
  color: var(--danger);
  font-weight: 600;
}

.adj-partial-hint {
  color: #b45309;
}

.adj-action {
  white-space: nowrap;
}

/* ---------- 运营分析 ---------- */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.metric-label {
  font-size: .8rem;
  color: var(--text-secondary);
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.metric-value.is-good { color: var(--success); }
.metric-value.is-warn { color: #b45309; }
.metric-value.is-bad { color: var(--danger); }

.metric-hint {
  font-size: .76rem;
  color: var(--text-muted);
}

.metric-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 40px;
}

.bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 72px;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
}

.bar-label {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.bar-track {
  height: 10px;
  background: #eef0f2;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  background: var(--accent-link);
  border-radius: var(--radius-pill);
}

.bar-fill.is-good { background: var(--success); }
.bar-fill.is-warn { background: #e8a33d; }
.bar-fill.is-bad { background: var(--danger); }

.bar-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.check-item.is-ok { border-color: #a7f3d0; background: #f0fdf9; }
.check-item.is-bad { border-color: #fecaca; background: #fef2f2; }

.check-mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 700;
  background: var(--success);
  color: #fff;
}

.check-item.is-bad .check-mark { background: var(--danger); }

.check-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.check-label {
  font-size: .88rem;
  font-weight: 600;
}

.check-detail {
  font-size: .78rem;
  color: var(--text-secondary);
}

@media print {
  .header, .main-nav, .section-head-actions, .page-hero .eyebrow {
    display: none !important;
  }
  .panel:not(.active) { display: none !important; }
  body { background: #fff; }
  .section-card { break-inside: avoid; box-shadow: none; }
  .main { padding: 0 !important; }
}

/* ---------- 工作日历 ---------- */

.biz-day-hint {
  font-size: .72rem;
  font-weight: 600;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  white-space: nowrap;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 16px 0 12px;
  font-size: .78rem;
  color: var(--text-secondary);
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cal-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.cal-dot.is-work { background: #fff; }
.cal-dot.is-weekend { background: #f0f2f4; }
.cal-dot.is-holiday { background: #fee2e2; border-color: #fecaca; }
.cal-dot.is-extra-work { background: #e9edf2; border-color: #ccd5e0; }
.cal-dot.is-extra-off { background: #fef3c7; border-color: #fde68a; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-head {
  font-size: .74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  padding: 4px 0 6px;
}

.cal-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 74px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color .12s, box-shadow .12s;
}

.cal-cell:hover { border-color: var(--accent-link); box-shadow: var(--shadow); }

.cal-cell.is-empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
  pointer-events: none;
}

.cal-cell.is-weekend { background: #f7f8f9; color: var(--text-secondary); }
.cal-cell.is-holiday { background: #fef2f2; border-color: #fecaca; }
.cal-cell.is-extra-work { background: #f0f3f7; border-color: #ccd5e0; }
.cal-cell.is-extra-off { background: #fffbeb; border-color: #fde68a; }
.cal-cell.is-current { box-shadow: inset 0 0 0 2px var(--primary); }

.cal-day {
  font-size: .95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cal-name {
  font-size: .7rem;
  color: var(--text-secondary);
  line-height: 1.3;
  word-break: break-all;
}

.cal-cell.is-holiday .cal-name { color: #b91c1c; }

.cal-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: auto;
}

.cal-tag {
  font-size: .62rem;
  padding: 1px 5px;
  border-radius: var(--radius-pill);
  background: #edeff1;
  color: var(--text-secondary);
}

.cal-tag.is-biz { background: var(--primary-soft); color: var(--accent-link); }
.cal-tag.is-manual { background: #fef3c7; color: #b45309; }

.biz-day-pending {
  font-size: .72rem;
  font-weight: 600;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  white-space: nowrap;
  cursor: help;
}

/* 交收匹配号 */
.settlement-code {
  display: inline-block;
  font-family: ui-monospace, "SFMono-Regular", "Consolas", monospace;
  font-size: .78rem;
  letter-spacing: .04em;
  padding: 2px 7px;
  border-radius: 6px;
  background: #e7f3ee;
  color: #0c5645;
  border: 1px solid #d3e6dc;
  white-space: nowrap;
}

.settlement-missing {
  font-size: .74rem;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  white-space: nowrap;
}

/* 交收匹配号：多市场标签 */
.settlement-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.settlement-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #e7f3ee;
  border: 1px solid #d3e6dc;
  font-family: ui-monospace, "SFMono-Regular", "Consolas", monospace;
  font-size: .76rem;
  color: #0c5645;
  white-space: nowrap;
}

.settlement-chip em {
  font-style: normal;
  font-family: var(--font);
  font-size: .64rem;
  color: #7aa898;
  letter-spacing: .02em;
}

/* 宽表：操作列吸附在右侧，横向滚动时按钮始终可见 */
.table-adjust th:last-child,
.table-adjust td:last-child {
  position: sticky;
  right: 0;
  background: var(--surface, #fff);
  box-shadow: -8px 0 10px -8px rgba(15, 23, 42, .18);
  z-index: 1;
}

.table-adjust th:last-child {
  background: #fafbfc;
}

/* 只读展示值（差异项弹窗里已由行确定的账户/币种） */
.readonly-value {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: #fafbfc;
  border: 1px solid var(--border);
  color: #334155;
  font-size: .9rem;
  line-height: 1.5;
  min-height: 38px;
}

/* 差异项分类列：整组淡底色，和对账主数据区分开 */
.col-group {
  background: #f1f3f5;
}

th.col-group {
  color: #0f6b56;
  font-weight: 600;
}

th.col-group:hover {
  background: #e7f3ee;
}

tr:hover td.col-group {
  background: #eff1f3;
}

/* 差异项分类标签：点一下筛选明细 */
.adj-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
  justify-content: flex-end;
}

.adj-chip {
  border: 1px solid #e2e8f0;
  background: #fafbfc;
  color: #475569;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: .72rem;
  line-height: 1.7;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}

.adj-chip:hover {
  border-color: #c5ddd2;
  background: #e7f3ee;
  color: #0f6b56;
}

/* 弹窗内号码行 */
.settlement-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settlement-row {
  display: grid;
  grid-template-columns: 168px 1fr 52px;
  align-items: center;
  gap: 8px;
}

.settlement-row select,
.settlement-row input {
  width: 100%;
}

.settlement-remove {
  font-size: .78rem;
  white-space: nowrap;
}

.settlement-add {
  margin-top: 8px;
}

.row-actions {
  white-space: nowrap;
}

.cell-nowrap {
  white-space: nowrap;
}

.row-actions .btn {
  padding: 4px 9px;
  font-size: .78rem;
}

/* ---------- 交收指令提醒 ---------- */

.instruction-banner {
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.instruction-banner.is-critical {
  border-color: #fecaca;
  background: #fef2f2;
}

.instruction-banner-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.instruction-banner-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d97706;
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
}

.instruction-banner.is-critical .instruction-banner-icon {
  background: var(--danger);
}

.instruction-banner-head > div {
  flex: 1;
  min-width: 0;
}

.instruction-banner-head strong {
  display: block;
  font-size: .96rem;
  margin-bottom: 3px;
}

.instruction-banner-head p {
  font-size: .8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.instruction-banner-list,
.instruction-alert-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.instruction-todo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.instruction-todo.is-overdue { border-color: #fecaca; background: #fff5f5; }
.instruction-todo.is-due { border-color: #fde68a; background: #fffdf5; }

.instruction-todo-time {
  flex: 0 0 auto;
  font-size: .74rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 82px;
}

.instruction-todo.is-overdue .instruction-todo-time { color: var(--danger); }
.instruction-todo.is-due .instruction-todo-time { color: #b45309; }

.instruction-todo-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.instruction-todo-body strong {
  font-size: .86rem;
}

.instruction-todo-body span {
  font-size: .74rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instruction-alert {
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.instruction-alert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.instruction-alert-head strong {
  font-size: .92rem;
}

.instruction-alert-sub {
  display: inline-flex;
  gap: 6px;
  margin-left: 10px;
  vertical-align: middle;
}

.instruction-pill {
  font-size: .72rem;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: #f0f2f4;
  color: var(--text-secondary);
}

.instruction-pill.is-overdue { background: #fee2e2; color: #b91c1c; }
.instruction-pill.is-due { background: #fef3c7; color: #b45309; }

/* 待签核日期浮层 */
.pending-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.biz-day-pending {
  cursor: pointer;
  user-select: none;
}

.biz-day-pending:hover {
  background: #fee2e2;
}

.pending-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 80;
  min-width: 268px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 28px rgba(16, 24, 40, .14);
}

.pending-popover-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.pending-popover-head strong {
  font-size: .84rem;
}

.pending-popover-head .hint {
  margin: 0;
  font-size: .72rem;
}

.pending-popover-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
}

.pending-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.pending-item:hover {
  background: var(--primary-soft);
  border-color: #d3d8de;
}

.pending-item.is-current {
  background: #fff7ed;
  border-color: #fed7aa;
}

.pending-date {
  font-variant-numeric: tabular-nums;
  font-size: .82rem;
  font-weight: 600;
}

.pending-weekday {
  font-size: .74rem;
  color: var(--text-muted);
}

.pending-tag {
  font-size: .66rem;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: #fed7aa;
  color: #9a3412;
}

.pending-go {
  margin-left: auto;
  font-size: .74rem;
  color: var(--accent-link);
}

.pending-more {
  margin-top: 6px;
  font-size: .72rem;
  color: var(--text-muted);
}

#fund-cash-table .btn {
  white-space: nowrap;
}

/* 长文本单元格：单行省略，完整值放 title */
.cell-ellipsis {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

/* 密集表格里的次级说明改为同行，避免每行两行高 */
.reason-hint.is-inline {
  display: inline;
  margin: 0 0 0 6px;
  max-width: none;
}

/* 中性提示条：数据不全但不算阻断 */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  font-size: .82rem;
  line-height: 1.6;
}

.notice-bar::before {
  content: "!";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f59e0b;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
}

/* 完成率：整体数字 + 只列未完成日 */
.completion-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.completion-figure {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.completion-figure strong {
  font-size: 1.6rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.completion-figure strong.is-good { color: var(--success); }
.completion-figure strong.is-warn { color: #b45309; }
.completion-figure strong.is-bad { color: var(--danger); }

.completion-figure span {
  font-size: .8rem;
  color: var(--text-secondary);
}

.completion-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: #eef0f2;
  overflow: hidden;
}

.completion-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--primary);
}

.completion-fill.is-good { background: var(--success); }
.completion-fill.is-warn { background: #e8a33d; }
.completion-fill.is-bad { background: var(--danger); }

.completion-sub {
  font-size: .8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.completion-ok {
  font-size: .84rem;
  color: var(--success);
}

.bar-chart.is-dense {
  gap: 5px;
}

.bar-chart.is-dense .bar-track {
  height: 8px;
}

/* 月结：检查清单与汇总之间加分隔 */
#month-close-summary {
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}

.stat-chip .stat-hint {
  display: block;
  font-size: .68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- 通用确认弹窗与轻提示 ---------- */
.confirm-message {
  white-space: pre-line;
  margin-bottom: 4px;
}

#confirm-dialog .dialog-actions {
  margin-top: 20px;
}

.toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 220px;
  max-width: 380px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hover);
  font-size: .88rem;
  color: var(--text);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-success { border-left: 3px solid var(--success); }
.toast.is-error { border-left: 3px solid var(--danger); }
.toast.is-info { border-left: 3px solid var(--accent-link); }

#confirm-input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 69, 60, .12);
}

/* 导入页：宽屏两张卡并排，避免右半屏整块空着 */
.import-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 18px;
  align-items: start;
}

.import-grid .import-card-wide {
  max-width: none;
}

.import-grid .template-section pre {
  overflow-x: auto;
}

/* 差异表勾选后给整行反馈，避免只靠小勾选框 */
tr.is-selected td {
  background: var(--accent-soft);
}

tr.row-blocker.is-selected td {
  background: rgba(180, 69, 60, .1);
}

/* 多个徽标并排：换行时保留行间距，避免上下贴住 */
.badge-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.badge-group .badge {
  margin-right: 0;
}

/* 实验：单元格默认不折行 */
table td { white-space: nowrap; }
table td.cell-wrap { white-space: normal; }

/* 空状态与长文本单元格允许折行（配合 td 默认 nowrap） */
table td.empty-state,
table td.cell-wrap {
  white-space: normal;
}

/* 表格分页条 */
.table-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.table-pager .pager-info {
  font-size: .82rem;
  color: var(--text-muted);
}

.table-pager .pager-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-pager .pager-current {
  font-size: .82rem;
  color: var(--text-secondary);
  min-width: 52px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* 表格被截断时的「另有 N 条」提示 */
tr .more-hint,
.more-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: .8rem;
  padding: 10px 12px;
}

/* 保存请求进行中：按钮置灰并显示进度光标，避免用户以为没点上又点一次 */
button.is-saving {
  opacity: .55;
  cursor: progress;
}

/* 轻提示承载长文本：保留换行、限制高度可滚动 */
.toast {
  white-space: pre-line;
  max-height: 50vh;
  overflow-y: auto;
}

/* 超阈值差异项：待复核状态 */
.adj-tag-pending {
  margin-left: 6px;
  background: #fff4e5;
  color: #b45309;
}

tr.row-pending-review td {
  background: rgba(180, 83, 9, .05);
}
