/* ============================================================
   工作台 - 样式表
   蓝白色 / 简洁专业 / 左侧深蓝导航 / 横向表格 / 弹窗详情
   ============================================================ */

:root {
  --blue-900: #15345b;
  --blue-800: #1d456f;
  --blue-700: #2457d8;
  --blue-600: #2f6bff;
  --blue-500: #2f6bff;
  --blue-100: #dce8ff;
  --blue-50: #f1f6ff;

  --bg: #f4f7fb;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cfd8e6;
  --text: #16233a;
  --text-soft: #56657a;
  --text-mute: #8c98a9;

  --green: #159a82;
  --green-bg: #e6f5f1;
  --orange: #e69118;
  --orange-bg: #fff4e2;
  --red: #d94a4a;
  --red-bg: #fdecec;
  --purple: #7656d6;
  --purple-bg: #f0ecff;
  --gray: #7b8797;
  --gray-bg: #eef2f6;
  --skyblue: #2f6bff;
  --sky-bg: #eaf1ff;
  --teal: #159a82;
  --teal-bg: #e1f3ef;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(21, 52, 91, 0.055);
  --shadow: 0 10px 28px rgba(21, 52, 91, 0.10);
  --shadow-lg: 0 22px 54px rgba(15, 35, 65, 0.24);
  --sidebar-w: 224px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font-family: inherit; font-size: 14px; }

/* ----------------------------- 按钮 ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  cursor: pointer;
  min-height: 36px;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:hover { border-color: var(--blue-500); color: var(--blue-600); background: var(--blue-50); }
.btn-primary {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}
.btn-primary { box-shadow: 0 3px 10px rgba(47,107,255,.20); }
.btn-primary:hover { background: var(--blue-700); border-color: var(--blue-700); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(47,107,255,.24); }
.btn:focus-visible, .link-btn:focus-visible { outline: 3px solid rgba(47,107,255,.22); outline-offset: 2px; }
.btn:disabled, .btn:disabled:hover {
  cursor: not-allowed; opacity: .55; color: var(--text-mute);
  border-color: var(--border); background: var(--gray-bg);
}
.btn-danger:hover { border-color: var(--red); color: var(--red); }
.btn-sm { min-height: 32px; padding: 4px 10px; font-size: 13px; }

/* link-like 操作按钮 */
.link-btn {
  border: none; background: none; color: var(--blue-600);
  cursor: pointer; padding: 2px 4px; font-size: 13px;
}
.link-btn:hover { text-decoration: underline; }
.link-btn:disabled,
.link-btn:disabled:hover {
  color: var(--text-mute);
  cursor: not-allowed;
  opacity: 1;
  text-decoration: none;
}
.link-btn:disabled:focus-visible { outline: none; }
.link-btn.danger { color: var(--red); }

/* ============================================================
   登录页
   ============================================================ */
.login-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #15345b 0%, #2f6bff 100%);
  padding: 24px 24px 56px;
}
.login-card {
  width: 760px; max-width: 100%;
  min-height: 440px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(10, 25, 60, .35);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.login-left {
  background: linear-gradient(160deg, #15345b 0%, #2457d8 100%);
  color: #fff;
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
}
.login-brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; }
.login-logo {
  width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
}
.login-slogan { margin-top: 12px; opacity: .9; font-size: 13px; }
.login-illus { flex: 1; display: flex; align-items: center; justify-content: center; }
.illus-clipboard {
  width: 130px; height: 150px; border-radius: 14px;
  background: rgba(255,255,255,.16);
  border: 2px solid rgba(255,255,255,.35);
  display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center;
}
.illus-check {
  width: 70px; height: 16px; border-radius: 8px;
  background: rgba(255,255,255,.3);
  position: relative; color: #fff; font-size: 12px;
  display: flex; align-items: center; padding-left: 8px;
}
.login-copyright { font-size: 12px; opacity: .7; }
.login-right { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.login-title { font-size: 22px; margin-bottom: 26px; color: var(--text); }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-field {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0 12px; height: 44px;
  transition: border-color .15s;
}
.login-field:focus-within { border-color: var(--blue-600); }
.field-icon { color: var(--text-mute); font-size: 15px; }
.login-field input { border: none; outline: none; flex: 1; height: 100%; background: transparent; }
.login-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-soft); }
.login-remember { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.login-forgot { color: var(--blue-600); }
.login-btn { height: 44px; justify-content: center; font-size: 15px; margin-top: 6px; }
.login-error { color: var(--red); background: var(--red-bg); border: 1px solid #f4caca; border-radius: 8px; padding: 9px 11px; font-size: 13px; }
.login-help { color: var(--text-mute); font-size: 12px; line-height: 1.55; }

.site-icp {
  position: fixed; z-index: 3; left: 50%; bottom: 8px; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  max-width: calc(100vw - 20px); min-height: 28px; padding: 5px 12px;
  border: 1px solid rgba(207,216,230,.88); border-radius: 999px;
  background: rgba(255,255,255,.94); box-shadow: 0 2px 10px rgba(21,52,91,.10);
  font-size: 12px; line-height: 1.4; color: var(--text-soft); white-space: nowrap;
}
.site-icp a { color: inherit; }
.site-icp a:focus-visible { outline: 3px solid rgba(47,107,255,.22); outline-offset: 2px; border-radius: 3px; }
.site-icp a:hover { color: var(--blue-600); }
.account-center-body { display: grid; gap: 18px; }
.account-center-body .form-section { border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.viewer-mode .owner-only { display: none !important; }

/* ============================================================
   主应用布局
   ============================================================ */
.app-view { display: flex; min-height: 100vh; }

/* ---- 侧边栏 ---- */
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #15345b 0%, #102943 100%);
  color: #cdd9ef;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 40;
  transition: transform .2s ease;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 9px;
  padding: 18px 18px;
  font-size: 15px; font-weight: 700; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo {
  width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.16);
}
.sidebar-nav { flex: 1; padding: 10px 10px 14px; display: flex; flex-direction: column; overflow-y: auto; }
.nav-group {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 0 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.nav-group:first-child { padding-top: 0; border-top: none; }
.nav-group:last-child { padding-bottom: 0; }
.nav-group-title {
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px 5px;
  color: #748caf; font-size: 11px; font-weight: 600;
  line-height: 18px; letter-spacing: .08em;
  pointer-events: none; user-select: none;
}
.nav-group-title::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,.08);
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 8px;
  color: #b9c6e0; cursor: pointer; font-size: 14px;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; transform: translateX(1px); }
.nav-item.active { background: var(--blue-600); color: #fff; box-shadow: none; }
.nav-ico { width: 20px; text-align: center; font-size: 18px; line-height: 1; }
.nav-ico i { display: block; }
.sidebar-collapse {
  padding: 12px; text-align: center; cursor: pointer;
  color: #8aa0c6; border-top: 1px solid rgba(255,255,255,.08);
  user-select: none;
}
.sidebar-collapse:hover { color: #fff; }

/* ---- 主区域 ---- */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ---- 顶部栏 ---- */
.topbar {
  height: 60px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  padding: 0 22px;
  position: sticky; top: 0; z-index: 30;
  box-shadow: 0 1px 0 rgba(21,52,91,.025);
}
.topbar-menu { display: none; border: none; background: none; font-size: 20px; cursor: pointer; }
.topbar-title { font-size: 17px; font-weight: 600; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.topbar-user { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text-soft); white-space: nowrap; padding: 7px 9px; border-radius: 8px; }
.topbar-user:hover { background: var(--gray-bg); color: var(--text); }
.topbar-user .ti-user-circle { font-size: 19px; color: var(--blue-600); }

/* ---- 内容区 ---- */
.content { padding: 22px 22px 54px; flex: 1; }

/* ============================================================
   通用块 / 卡片 / 表格
   ============================================================ */
.page-sub { color: var(--text-soft); font-size: 13px; margin-top: 2px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.section-card { padding: 18px; margin-bottom: 18px; }
.section-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

/* 工具条 (筛选/搜索) */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 16px;
}
.toolbar label { color: var(--text-soft); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.toolbar select, .toolbar input {
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 6px 10px; background: #fff; color: var(--text);
}
.toolbar .spacer { flex: 1; }
.filter-more { position: relative; align-self: center; }
.filter-more > summary {
  list-style: none; cursor: pointer; user-select: none; white-space: nowrap;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 7px 11px; background: #f8faff; color: var(--text-soft); font-size: 13px;
}
.filter-more > summary::-webkit-details-marker { display: none; }
.filter-more > summary::after { content: '⌄'; margin-left: 6px; color: var(--text-mute); }
.filter-more[open] > summary { color: var(--blue-700); border-color: #b8cdf4; background: var(--blue-50); }
.filter-more[open] > summary::after { content: '⌃'; }
.filter-more-body { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.filter-more[open] { flex-basis: 100%; }
.expert-incomplete-filter.on { color: var(--blue-700); border-color: #a9c5f5; background: var(--blue-50); }
.expert-unassigned-filter.on { color: #a15c00; border-color: #f5c26b; background: #fff8e6; }
.expert-unassigned-badge {
  display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px;
  border: 1px solid #f5c26b; border-radius: 999px; background: #fff8e6;
  color: #9a5b05; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.expert-filter-toolbar { align-items: flex-end; overflow: visible; position: relative; gap: 10px 12px; }
.expert-filter-toolbar > .meeting-filter-field { flex: 1 1 132px; min-width: 122px; max-width: 166px; }
.expert-filter-toolbar .expert-filter-align-right .meeting-filter-menu { left: auto; right: 0; }
.expert-filter-actions { display: flex; flex: 1 1 100%; align-items: center; gap: 8px; min-width: 0; padding-top: 2px; }
.expert-filter-search { flex: 0 1 320px; min-width: 210px; margin-left: auto; height: 36px; box-sizing: border-box; }

/* 表格 */
.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; }
table.data thead th {
  background: #f7f9fd; color: var(--text-soft); font-weight: 600;
  text-align: left; padding: 11px 14px; font-size: 13px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data tbody td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:not(.empty-row):hover { background: var(--blue-50); box-shadow: inset 3px 0 0 var(--blue-600); }
table.data tbody tr.expert-click-row { cursor: pointer; }
table.data tbody tr.sponsor-click-row { cursor: pointer; }
table.data tbody tr.expert-click-row:hover,
table.data tbody tr.sponsor-click-row:hover {
  background: var(--blue-50);
  box-shadow: inset 3px 0 0 var(--blue-500);
}
table.data tbody tr.expert-click-row:focus-visible,
table.data tbody tr.sponsor-click-row:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: -2px;
  background: var(--blue-50);
}
.sponsor-process-table-wrap { overflow-x: auto; }
table.data.sponsor-process-table { table-layout: fixed; min-width: 1780px; }
.sponsor-process-table .sponsor-col-code { width: 110px; }
.sponsor-process-table .sponsor-col-office { width: 96px; }
.sponsor-process-table .sponsor-col-type { width: 108px; }
.sponsor-process-table .sponsor-col-name { width: 390px; }
.sponsor-process-table .sponsor-col-customer { width: 118px; }
.sponsor-process-table .sponsor-col-date { width: 112px; }
.sponsor-process-table .sponsor-col-progress { width: auto; }
.sponsor-process-table .sponsor-col-action { width: 66px; }
.sponsor-progress-heading-cell { padding-left: 8px !important; padding-right: 8px !important; }
.sponsor-progress-heading-track {
  display: block; position: relative; height: 18px; margin: 0 8px;
}
.sponsor-progress-heading-track > span {
  position: absolute; top: 0; left: 6.25%; transform: translateX(-13px); white-space: nowrap;
}
.sponsor-filter-toolbar { align-items: flex-end; overflow: visible; position: relative; }
.sponsor-filter-toolbar > .meeting-filter-field { flex-basis: 126px; min-width: 118px; max-width: 156px; }
.sponsor-toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sponsor-control-btn { white-space: nowrap; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.sponsor-control-btn.is-active {
  border-color: var(--blue-500); background: var(--blue-50); color: var(--blue-700); box-shadow: inset 0 0 0 1px rgba(37,99,235,.08);
}
.sponsor-control-btn:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.sponsor-filter-toolbar .btn:disabled { cursor: not-allowed; opacity: .48; }
.sponsor-name-cell span {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; white-space: normal; line-height: 1.45; max-height: 2.9em;
}
.sponsor-detail-title {
  max-width: 620px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; white-space: normal; line-height: 1.35;
}
.breakout-table-wrap { overflow-x: auto; }
table.data.breakout-table { table-layout: fixed; min-width: 1080px; }
.breakout-table th:nth-child(1), .breakout-table td:nth-child(1) { width: 10%; }
.breakout-table th:nth-child(2), .breakout-table td:nth-child(2) { width: 8%; }
.breakout-table th:nth-child(3), .breakout-table td:nth-child(3) { width: 30%; }
.breakout-table th:nth-child(4), .breakout-table td:nth-child(4) { width: 17%; }
.breakout-table th:nth-child(5), .breakout-table td:nth-child(5) { width: 10%; }
.breakout-table th:nth-child(6), .breakout-table td:nth-child(6) { width: 19%; }
.breakout-table th:nth-child(7), .breakout-table td:nth-child(7) { width: 6%; }
.breakout-session-copy {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; white-space: normal; line-height: 1.45; max-height: 2.9em;
}
.breakout-chair-cell { white-space: normal; line-height: 1.45; overflow-wrap: anywhere; }
.breakout-table .sponsor-session-flow { min-height: 48px; padding-right: 4px; padding-left: 4px; }
.breakout-table .actions { text-align: center; white-space: nowrap; }
.breakout-session-copy .session-kind-tag { margin-right: 7px; }
.breakout-node-progress .nodebar { max-width: 100%; }
table.data .col-name { font-weight: 600; color: var(--text); }
/* 注意: 这里不能用 display:flex —— <td> 一旦变成 flex 容器就不再参与表格行高对齐,
   操作列会比同行其它单元格矮一截、上下错位。用 nowrap + 行内按钮即可。 */
table.data .actions { white-space: nowrap; }
table.data .actions .link-btn { margin-right: 4px; }
table.data .actions .link-btn:last-child { margin-right: 0; }
.empty-row td { text-align: center; color: var(--text-mute); padding: 36px; }
.table-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; color: var(--text-soft); font-size: 13px; border-top: 1px solid var(--border); }

/* 徽章: 状态/优先级 */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 500;
  white-space: nowrap; line-height: 1.6;
}
.badge.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; background: currentColor; }
.st-未开始 { background: var(--gray-bg); color: #6b7280; }
.st-待推进 { background: var(--sky-bg); color: var(--skyblue); }
.st-进行中 { background: var(--green-bg); color: var(--green); }
.st-等反馈 { background: var(--orange-bg); color: var(--orange); }
.st-卡点中 { background: var(--red-bg); color: var(--red); }
.st-已完成 { background: var(--green-bg); color: var(--green); }
.st-已归档 { background: var(--gray-bg); color: #6b7280; }
.st-计划中 { background: var(--gray-bg); color: #6b7280; }
.st-申请中 { background: var(--orange-bg); color: var(--orange); }
.st-已过审 { background: var(--sky-bg); color: var(--skyblue); }
.st-入组中 { background: var(--green-bg); color: var(--green); }
.st-已取消 { background: var(--red-bg); color: var(--red); }
/* 中央系列「项目」专用的两个状态（PROJECT_STATUS_LIST）
   已截止不能跟未开始一样是灰的（一个是还没开始、一个是窗口已关），用暗红区分；
   也刻意避开卡点中的亮红，因为「截止」不是异常、是正常终态。 */
.st-已满额 { background: var(--sky-bg); color: var(--skyblue); }
.st-已截止 { background: #f2e6e6; color: #9b5b58; }

.pr-高 { background: var(--red-bg); color: var(--red); }
.pr-中 { background: var(--orange-bg); color: var(--orange); }
.pr-低 { background: var(--green-bg); color: var(--green); }

.deadline-overdue { color: var(--red); font-weight: 600; }
.deadline-soon { color: var(--orange); font-weight: 600; }

/* 类型小标签 */
.type-tag { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 12px; background: var(--blue-100); color: var(--blue-700); }

/* ============================================================
   首页工作台
   ============================================================ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm);
}
.stat-icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.stat-icon.blue { background: var(--blue-100); color: var(--blue-600); }
.stat-icon.green { background: var(--green-bg); color: var(--green); }
.stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-icon.orange { background: var(--orange-bg); color: var(--orange); }
.stat-icon.red { background: var(--red-bg); color: var(--red); }
.stat-meta { display: flex; flex-direction: column; }
.stat-label { color: var(--text-soft); font-size: 13px; }
.stat-value { font-size: 24px; font-weight: 700; }
.stat-value small { font-size: 13px; font-weight: 500; color: var(--text-soft); margin-left: 2px; }
.dashboard-intro {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 12px;
}
.dashboard-today { font-size: 16px; font-weight: 650; color: var(--text); }
.dashboard-guidance { margin-top: 2px; color: var(--text-mute); font-size: 12px; }
.dashboard-quick-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dashboard-quick-actions .btn { min-height: 34px; }
.dashboard-stat-grid { gap: 12px; margin-bottom: 12px; }
.dashboard-stat-card { min-width: 0; padding: 13px 14px; gap: 11px; }
.dashboard-stat-card .stat-icon {
  width: 40px; height: 40px; border-radius: 10px; font-size: 15px; font-weight: 700;
}
.dashboard-stat-card .stat-meta { min-width: 0; }
.dashboard-stat-card .stat-value { font-size: 22px; line-height: 1.05; }
.dashboard-stat-note {
  display: block; max-width: 100%; margin-top: 3px; color: var(--text-mute); font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dashboard-main-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 12px; align-items: start;
}
.dashboard-panel { padding: 0; min-width: 0; overflow: hidden; }
.dashboard-panel-head {
  min-height: 58px; padding: 12px 14px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.dashboard-panel-head h2 { margin: 0 0 2px; font-size: 15px; }
.dashboard-panel-head span { color: var(--text-mute); font-size: 11px; }
.dashboard-panel-head > b {
  min-width: 28px; height: 28px; padding: 0 7px; border-radius: 14px; background: var(--blue-50);
  color: var(--blue-700); display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.dashboard-sponsor-risk-panel { margin-bottom: 12px; }
.dashboard-sponsor-risk-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 12px 14px 14px; }
.dashboard-sponsor-risk-card {
  min-width: 0; min-height: 72px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; cursor: pointer; display: grid; grid-template-columns: 32px auto minmax(0,1fr); align-items: center; gap: 9px; text-align: left;
}
.dashboard-sponsor-risk-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.dashboard-sponsor-risk-card > span { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.dashboard-sponsor-risk-card > b { font-size: 24px; line-height: 1; }
.dashboard-sponsor-risk-card > em { font-style: normal; color: var(--text-soft); font-size: 12px; line-height: 1.35; }
.dashboard-sponsor-risk-card.red > span { color: var(--red); background: var(--red-bg); }
.dashboard-sponsor-risk-card.orange > span { color: var(--orange); background: var(--orange-bg); }
.dashboard-sponsor-risk-card.green > span { color: var(--green); background: var(--green-bg); }
.sponsor-risk-pill { display: inline-flex; padding: 3px 8px; border-radius: 14px; font-size: 12px; white-space: nowrap; }
.sponsor-risk-pill.overdue { color: var(--red); background: var(--red-bg); }
.sponsor-risk-pill.soon { color: var(--orange); background: var(--orange-bg); }
.sponsor-risk-pill.normal { color: var(--green); background: var(--green-bg); }
.dashboard-action-list, .dashboard-meeting-list { min-height: 228px; }
.dashboard-action-row {
  min-height: 46px; padding: 8px 14px; border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 90px minmax(0, 1fr) 74px; gap: 10px; align-items: center; cursor: pointer;
}
.dashboard-action-row:last-child, .dashboard-meeting-row:last-child { border-bottom: 0; }
.dashboard-action-row:hover, .dashboard-meeting-row:hover { background: var(--blue-50); }
.dashboard-action-row:focus-visible, .dashboard-meeting-row:focus-visible {
  outline: 2px solid var(--blue-500); outline-offset: -2px;
}
.dashboard-module-tag {
  display: inline-block; max-width: 90px; padding: 3px 7px; border-radius: 5px; font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
}
.dashboard-module-tag.tone-red { color: var(--red); background: var(--red-bg); }
.dashboard-module-tag.tone-orange { color: var(--orange); background: var(--orange-bg); }
.dashboard-module-tag.tone-blue { color: var(--blue-700); background: var(--blue-100); }
.dashboard-module-tag.tone-purple { color: #7c3aed; background: #ede9fe; }
.dashboard-action-copy { display: flex; flex-direction: column; min-width: 0; }
.dashboard-action-copy b, .dashboard-action-copy small {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dashboard-action-copy b { font-size: 13px; font-weight: 600; }
.dashboard-action-copy small { margin-top: 2px; color: var(--text-mute); font-size: 11px; }
.dashboard-action-date { text-align: right; color: var(--text-soft); font-size: 12px; white-space: nowrap; }
.dashboard-meeting-head, .dashboard-meeting-row {
  display: grid; grid-template-columns: 58px minmax(120px, 1.5fr) minmax(74px, .9fr) 66px 58px;
  gap: 8px; align-items: center;
}
.dashboard-meeting-head {
  padding: 7px 12px; color: var(--text-mute); background: #fafbfe; border-bottom: 1px solid var(--border); font-size: 10px;
}
.dashboard-meeting-row { min-height: 46px; padding: 7px 12px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 11px; }
.dashboard-meeting-date, .dashboard-meeting-office { color: var(--text-soft); white-space: nowrap; }
.dashboard-meeting-name, .dashboard-meeting-owner {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dashboard-meeting-name { color: var(--text); font-size: 12px; font-weight: 600; }
.dashboard-meeting-owner { color: var(--text-soft); }
.dashboard-meeting-stage .badge { padding: 2px 6px; font-size: 10px; white-space: nowrap; }
.dashboard-empty {
  min-height: 228px; display: flex; align-items: center; justify-content: center;
  color: var(--text-mute); font-size: 12px; text-align: center; padding: 24px;
}
.dashboard-meeting-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dashboard-meeting-choices button {
  min-height: 86px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 6px;
}
.dashboard-meeting-choices button:hover { border-color: var(--blue-500); background: var(--blue-50); }
.dashboard-meeting-choices b { color: var(--text); font-size: 14px; }
.dashboard-meeting-choices span { color: var(--text-mute); font-size: 12px; line-height: 1.5; }
/* ============================================================
   弹窗
   ============================================================ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(17, 28, 55, .45);
  display: flex; align-items: flex-start; justify-content: center;
  z-index: 100; padding: 40px 20px; overflow-y: auto;
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  width: 560px; max-width: 100%; animation: popIn .18s ease;
}
.modal.modal-lg { width: 820px; }
.modal.modal-xl { width: 940px; }
@keyframes popIn { from { transform: translateY(12px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.modal-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 22px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: #fff; border-radius: 14px 14px 0 0; z-index: 2;
}
.modal-head h3 { font-size: 17px; flex-shrink: 0; }
.modal-head .head-tags { display: flex; gap: 8px; align-items: center; }
.modal-head .head-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.modal-close { border: none; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--text-mute); padding: 0 4px; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.modal-foot .expert-delete-btn {
  margin-right: auto;
  border-color: #f4b7b7;
  color: var(--red);
}
.expert-seat-conflict-mask { z-index: 130; background: rgba(17, 28, 55, .56); }
.expert-seat-conflict-mask .modal { max-height: calc(100vh - 80px); display: flex; flex-direction: column; }
.expert-seat-conflict-mask .modal-head { align-items: flex-start; }
.expert-seat-conflict-mask .modal-head > div { min-width: 0; }
.expert-seat-conflict-mask .modal-head p { margin: 5px 0 0; max-width: 680px; line-height: 1.55; }
.expert-seat-conflict-body { display: grid; gap: 10px; min-height: 0; overflow-y: auto; }
.expert-seat-conflict-item {
  display: grid; gap: 8px; padding: 12px 14px; border: 1px solid #f2c7c5;
  border-left: 4px solid var(--red); border-radius: 9px; background: #fffafa;
}
.expert-seat-conflict-item > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.expert-seat-conflict-item > div span { flex: 0 0 auto; color: var(--text-mute); font-size: 12px; }
.expert-seat-conflict-item p { display: flex; align-items: center; gap: 10px; margin: 0; line-height: 1.5; }
.expert-seat-conflict-item del { color: #9c4141; text-decoration-thickness: 1px; }
.expert-seat-conflict-item ins { color: #166534; font-weight: 600; text-decoration: none; }
.expert-seat-conflict-item small { color: var(--text-soft); }

/* 详情字段网格 */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin-bottom: 6px; }
.detail-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.detail-item { display: flex; flex-direction: column; gap: 3px; }
.detail-item .dl { color: var(--text-mute); font-size: 12px; }
.detail-item .dv { font-size: 14px; color: var(--text); word-break: break-word; }

.block-title { font-size: 14px; font-weight: 600; margin: 20px 0 10px; padding-left: 9px; border-left: 3px solid var(--blue-600); }

/* 笔记内容块 */
.note-box { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; color: var(--text-soft); white-space: pre-wrap; }

/* 高亮信息卡片 (执行要求 / 注意事项) */
.notice-card {
  background: #fff8e6; border: 1px solid #ffe2a8; border-left: 4px solid #f0a500;
  border-radius: 8px; padding: 14px 16px;
}
.notice-card .notice-title { font-weight: 600; color: #a86a00; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.notice-card ol { margin: 0; padding-left: 20px; color: #7a5a14; }
.notice-card li { margin: 4px 0; }

/* 弹窗内小表格 */
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table th { text-align: left; padding: 8px 10px; background: #f7f9fd; color: var(--text-soft); border-bottom: 1px solid var(--border); font-weight: 600; white-space: nowrap; }
.mini-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.mini-table tr:last-child td { border-bottom: none; }
.mini-table-wrap { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }

/* ============================================================
   横向流程条
   ============================================================ */
.flow-bar { display: flex; align-items: flex-start; gap: 0; overflow-x: auto; padding: 8px 0 4px; }
.flow-node { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 72px; position: relative; }
.flow-node:not(:last-child)::after {
  content: ''; position: absolute; top: 13px; left: 50%; width: 100%; height: 2px; background: var(--border-strong); z-index: 0;
}
.flow-node.done:not(:last-child)::after { background: var(--green); }
.flow-dot {
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: #fff; z-index: 1; background: var(--gray);
}
.flow-node.done .flow-dot { background: var(--green); }
.flow-node.doing .flow-dot { background: var(--blue-600); box-shadow: 0 0 0 4px rgba(37,99,235,.18); }
.flow-node.block .flow-dot { background: var(--red); }
.sponsor-workflow .flow-node.rescheduled .flow-dot { background: #7c3aed; box-shadow: 0 0 0 4px rgba(124,58,237,.14); font-size: 15px; }
.sponsor-workflow .flow-node.cancelled .flow-dot { background: #4b5563; box-shadow: 0 0 0 4px rgba(75,85,99,.14); font-size: 15px; }
.flow-node.terminated .flow-dot { background: #e3e7ee; color: #aab2c0; }
.flow-node.todo .flow-dot { background: #c4cbd8; }
.flow-label { margin-top: 7px; font-size: 11px; color: var(--text-soft); text-align: center; line-height: 1.3; }
.flow-node.doing .flow-label { color: var(--blue-700); font-weight: 600; }
.flow-node.block .flow-label { color: var(--red); font-weight: 600; }
.sponsor-workflow .flow-node.rescheduled .flow-label { color: #7c3aed; font-weight: 600; }
.sponsor-workflow .flow-node.cancelled .flow-label { color: #4b5563; font-weight: 600; }
.flow-label small { display: block; margin-top: 3px; color: var(--text-mute); font-size: 10px; font-weight: 400; white-space: nowrap; }
.sponsor-workflow .flow-node.cancelled:not(:last-child)::after,
.sponsor-workflow .flow-node.terminated:not(:last-child)::after { height: 0; border-top: 2px dashed #d7dde7; background: none; }
.sponsor-workflow .flow-current-risk { font-weight: 600; }
.sponsor-workflow .flow-node.risk-overdue .flow-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(220,38,38,.14); }
.sponsor-workflow .flow-node.risk-soon .flow-dot { background: var(--orange); box-shadow: 0 0 0 4px rgba(217,119,6,.16); }
.sponsor-workflow .flow-risk-mark { font-size: 15px; font-weight: 800; line-height: 1; color: #fff; }
.sponsor-workflow .flow-risk-clock {
  display: block; position: relative; width: 12px; height: 12px; box-sizing: border-box;
  border: 1.5px solid #fff; border-radius: 50%;
}
.sponsor-workflow .flow-risk-clock::before,
.sponsor-workflow .flow-risk-clock::after {
  content: ''; position: absolute; display: block; background: #fff; border-radius: 1px;
}
.sponsor-workflow .flow-risk-clock::before { left: 4.75px; top: 2px; width: 1.5px; height: 4px; }
.sponsor-workflow .flow-risk-clock::after { left: 4.75px; top: 4.75px; width: 3.5px; height: 1.5px; }
.sponsor-workflow .flow-node.risk-overdue .flow-label,
.sponsor-workflow .flow-node.risk-overdue .flow-current-risk { color: var(--red); }
.sponsor-workflow .flow-node.risk-soon .flow-label,
.sponsor-workflow .flow-node.risk-soon .flow-current-risk { color: var(--orange); }
.sponsor-workflow .flow-node.rescheduled .flow-current-risk { color: #7c3aed; }
.sponsor-workflow .flow-node.cancelled .flow-current-risk { color: #4b5563; }
.sponsor-progress-cell { padding: 12px 8px !important; vertical-align: top; }
.sponsor-list-progress { min-height: 84px; display: grid; align-content: center; }
.sponsor-list-flow { min-width: 610px; box-sizing: border-box; padding: 6px 8px 0; }
.sponsor-list-flow .flow-node { min-width: 70px; }
.sponsor-list-flow .flow-node.done .flow-label,
.sponsor-list-flow .flow-node.todo .flow-label,
.sponsor-list-flow .flow-node.terminated .flow-label { visibility: hidden; }
.sponsor-progress-preview { margin: -8px 0 20px; }
.sponsor-progress-preview .block-title { margin-top: 0; }
.sponsor-editor-flow { margin-bottom: 4px; }
.sponsor-progress-risk { margin-top: 20px; }
.sponsor-progress-risk .block-title { margin-top: 0; }
.sponsor-progress-editor { max-width: 520px; margin: 0 auto; }
.sponsor-progress-editor th:last-child,
.sponsor-progress-editor td:last-child { width: 150px; }
.sponsor-progress-editor select { width: 120px; }
.block-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.block-title-row .block-title { margin: 0; }
.block-title-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sponsor-risk-summary { border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.sponsor-risk-summary > span { color: var(--text-soft); font-size: 12px; }
.sponsor-risk-summary.overdue { border-color: #f3c4c4; background: var(--red-bg); color: var(--red); }
.sponsor-risk-summary.soon { border-color: #f1d8aa; background: var(--orange-bg); color: var(--orange); }
.sponsor-risk-summary.normal { border-color: #bfe5d0; background: var(--green-bg); color: var(--green); }
.sponsor-risk-summary.pending { background: #f6f7f9; color: var(--text-soft); }
.sponsor-risk-summary.rescheduled { border-color: #d8ccff; background: #f5f3ff; color: #7c3aed; }
.sponsor-risk-summary.cancelled { border-color: #d1d5db; background: #f3f4f6; color: #4b5563; }
.sponsor-risk-summary ul { list-style: none; margin: 5px 0 0; padding: 0; display: grid; gap: 6px; }
.sponsor-risk-summary li { display: grid; grid-template-columns: minmax(100px,1fr) 90px minmax(130px,1.2fr); gap: 10px; align-items: center; padding-top: 6px; border-top: 1px solid rgba(0,0,0,.06); font-size: 12px; }
.sponsor-risk-summary li em { font-style: normal; }
.sponsor-time-rule-editor { margin-top: 14px; }
.sponsor-time-rule-editor select { min-width: 110px; }
.sponsor-time-rule-editor input { width: 110px; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-item { display: flex; flex-direction: column; gap: 5px; }
.form-item.full { grid-column: 1 / -1; }
.unified-sponsor-only { display: contents; }
.unified-sponsor-only[hidden] { display: none; }
.expert-conditional[hidden] { display: none; }
.form-item label { font-size: 13px; color: var(--text-soft); }
.form-item input, .form-item select, .form-item textarea {
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 8px 10px; background: #fff; color: var(--text); outline: none; width: 100%;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color: var(--blue-600); }
.form-item textarea { resize: vertical; min-height: 72px; }
.research-expert-editor { align-items: start; }
.research-expert-add-action { align-items: flex-end; }
.research-expert-role-row select { max-width: 360px; }
.research-expert-add-action .btn { min-width: 108px; }
#research_percent, #research_progress_percent { background: #f3f6fa; color: var(--blue-700); font-weight: 700; }
.req { color: var(--red); }
.preferred-city-list { display: flex; flex-direction: column; gap: 8px; }
.preferred-city-row { display: flex; align-items: center; gap: 8px; }
.preferred-city-row .preferred-city-input { flex: 1; }
.preferred-city-remove { flex: 0 0 auto; color: var(--red); }
.preferred-city-remove[hidden] { display: none; }
.preferred-city-add { align-self: flex-start; margin-top: 8px; color: var(--blue-700); }
.own-topic-list { display: flex; flex-direction: column; gap: 8px; }
.own-topic-row { display: flex; align-items: center; gap: 8px; }
.own-topic-row .own-topic-input { flex: 1; }
.own-topic-remove { flex: 0 0 auto; color: var(--red); }
.own-topic-remove[hidden] { display: none; }
.own-topic-add { align-self: flex-start; margin-top: 8px; color: var(--blue-700); }

/* 跟进记录条目 */
.follow-item { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; background: #fafbfe; }
.follow-item .fi-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-mute); margin-bottom: 4px; }
.follow-item .fi-action { font-weight: 500; }
.follow-item .fi-row { font-size: 13px; color: var(--text-soft); }

/* toast */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: #1f2937; color: #fff; padding: 10px 18px; border-radius: 8px;
  box-shadow: var(--shadow); z-index: 200; font-size: 14px;
  animation: toastIn .2s ease;
}
.toast.err { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* offline 提示条 */
.offline-bar {
  background: #fff4e0; color: #9a6a00; border: 1px solid #ffd98a;
  padding: 8px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px;
}
.offline-bar-compact {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; margin-bottom: 10px;
  border-color: #f1d69c; background: #fffaf0; font-size: 11px;
}
.offline-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* ============================================================
   数据备份页：全量导出、导入与恢复
   ============================================================ */
.backup-card { margin-top: 4px; }
.backup-lead { color: var(--text-soft); font-size: 13px; margin: -2px 0 14px; }
.backup-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.backup-status {
  background: var(--blue-50); border: 1px solid #d9e7ff; color: var(--blue-700);
  border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13px;
}
.backup-status.warn { background: var(--orange-bg); border-color: #f7d7a2; color: #a86700; }
.backup-rules {
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border);
  color: var(--text-soft); font-size: 12px; line-height: 1.75;
}
.backup-file-meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: #f7f9fd; color: var(--text-soft); font-size: 13px; margin-bottom: 14px;
}
.backup-summary {
  display: grid; grid-template-columns: 118px 1fr; gap: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px;
}
.backup-total {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--blue-50); border-radius: 8px; color: var(--blue-700);
}
.backup-total b { font-size: 26px; line-height: 1.15; }
.backup-total span { font-size: 12px; }
.backup-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px 12px; }
.backup-counts span { color: var(--text-soft); font-size: 12px; white-space: nowrap; }
.backup-counts b { color: var(--text); margin-left: 3px; }
.backup-warnings { margin-top: 14px; }
.backup-danger {
  margin-top: 14px; border: 1px solid #f5c5c5; background: #fff6f6; color: #a33a3a;
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; line-height: 1.65;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-main-grid { grid-template-columns: 1fr; }
  .dashboard-sponsor-risk-grid { grid-template-columns: 1fr; }
  .detail-grid, .detail-grid.cols-3, .form-grid { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .topbar-menu { display: block; }
  .topbar-title { font-size: 16px; }
  .expert-seat-conflict-mask { padding: 16px 10px; }
  .expert-seat-conflict-mask .modal { max-height: calc(100vh - 32px); }
  .expert-seat-conflict-item > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .expert-seat-conflict-item p { align-items: flex-start; flex-direction: column; gap: 3px; }
  .expert-seat-conflict-item p b { transform: rotate(90deg); align-self: center; }
  .expert-seat-conflict-mask .modal-foot .btn { flex: 1; }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr; }
  .dashboard-intro { align-items: flex-start; flex-direction: column; }
  .dashboard-quick-actions { width: 100%; }
  .dashboard-quick-actions .btn { flex: 1 1 auto; }
  .dashboard-action-row { grid-template-columns: 82px minmax(0, 1fr); }
  .dashboard-action-date { display: none; }
  .dashboard-meeting-head, .dashboard-meeting-row { grid-template-columns: 54px minmax(110px, 1fr) 58px; }
  .dashboard-meeting-owner, .dashboard-meeting-office { display: none; }
  .dashboard-meeting-choices { grid-template-columns: 1fr; }
  .block-title-row { align-items: flex-start; flex-direction: column; }
  .block-title-actions { width: 100%; }
  .block-title-actions .btn { flex: 1; }
  .sponsor-risk-summary li { grid-template-columns: 1fr; gap: 3px; }
  .login-card { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .content { padding: 14px 14px 54px; }
  .site-icp { width: max-content; max-width: calc(100vw - 20px); text-align: center; }
  .backup-file-meta, .backup-summary { grid-template-columns: 1fr; }
  .backup-total { padding: 10px; }
  .backup-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 表格在窄屏下横向滚动 */
.table-wrap { overflow-x: auto; }
table.data { min-width: 760px; }

/* ============================================================
   专家库 / 会议记录 组件
   ============================================================ */
/* 通用色调徽章 */
.badge.tone-green { background: var(--green-bg); color: var(--green); }
.badge.tone-orange { background: var(--orange-bg); color: var(--orange); }
.badge.tone-red { background: var(--red-bg); color: var(--red); }
.badge.tone-blue { background: var(--sky-bg); color: var(--skyblue); }
.badge.tone-gray { background: var(--gray-bg); color: #6b7280; }
.badge.tone-teal { background: var(--teal-bg); color: var(--teal); }

/* 模块头部：视图切换 + 操作按钮 */
.mod-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.mod-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.seg button { border: none; background: #fff; padding: 7px 18px; cursor: pointer; color: var(--text-soft); font-size: 13px; }
.seg button.on { background: var(--blue-600); color: #fff; }

/* 多选标签选择器 */
.tagpick-wrap { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
.tagpick { padding: 4px 12px; border-radius: 16px; border: 1px solid var(--border-strong); background: #fff; color: var(--text-soft); cursor: pointer; font-size: 13px; user-select: none; transition: all .12s; }
.tagpick:hover { border-color: var(--teal); }
.tagpick.on { background: var(--teal); border-color: var(--teal); color: #fff; }

/* 专家选择器 */
.exp-picker { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; background: #fafbfe; }
.exp-picker-label { font-size: 13px; color: var(--text-soft); margin-bottom: 6px; font-weight: 600; }
.exp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.exp-empty { color: var(--text-mute); font-size: 13px; }
.xchip { display: inline-flex; align-items: center; gap: 5px; background: var(--teal-bg); color: var(--teal); border-radius: 16px; padding: 3px 10px; font-size: 13px; }
.xchip i { font-style: normal; color: var(--text-mute); font-size: 12px; }
.xchip b.temp { background: var(--orange); color: #fff; border-radius: 8px; padding: 0 5px; font-size: 11px; font-weight: 500; }
.xchip a { cursor: pointer; color: var(--teal); font-weight: 700; margin-left: 2px; }
.xchip a:hover { color: var(--red); }
.exp-search { position: relative; }
.exp-search input { width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 7px 10px; outline: none; }
.exp-search input:focus { border-color: var(--teal); }
.exp-dropdown { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 10; background: #fff; border: 1px solid var(--border-strong); border-radius: 8px; box-shadow: var(--shadow); margin-top: 4px; max-height: 260px; overflow-y: auto; }
.exp-dd-item { padding: 8px 12px; cursor: pointer; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.exp-dd-item:hover { background: var(--blue-50); }
.exp-dd-item span { color: var(--text-soft); }
.exp-dd-item em { margin-left: auto; font-style: normal; color: var(--teal); font-size: 12px; }
.exp-dd-item.add { color: var(--blue-600); font-weight: 600; border-top: 1px solid var(--border); }

/* 会议详情 - 角色分组 */
.role-box { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.role-row { display: flex; border-bottom: 1px solid var(--border); }
.role-row:last-child { border-bottom: none; }
.role-label { width: 130px; flex-shrink: 0; padding: 10px 12px; background: #f7f9fd; color: var(--text-soft); font-size: 13px; font-weight: 600; }
.role-chips { padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* 看板 */
.board-grid { grid-template-columns: repeat(4, 1fr); }
.board-grid .stat-value { font-size: 22px; }
.board-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin: 7px 0; font-size: 13px; }
.bar-name { width: 130px; flex-shrink: 0; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; height: 12px; background: var(--gray-bg); border-radius: 6px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #14b8a6); border-radius: 6px; }
.bar-val { width: 34px; text-align: right; font-weight: 600; color: var(--text); }

/* 字段选项管理 */
.optmgr { display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.optmgr-side { border-right: 1px solid var(--border); padding-right: 10px; max-height: 460px; overflow-y: auto; }
.optmgr-group { margin-bottom: 12px; }
.optmgr-group-t { font-size: 12px; color: var(--text-mute); margin: 6px 0; font-weight: 600; }
.optmgr-tab { padding: 7px 10px; border-radius: 7px; cursor: pointer; color: var(--text-soft); font-size: 13px; }
.optmgr-tab:hover { background: var(--blue-50); }
.optmgr-tab.on { background: var(--blue-600); color: #fff; }
.optmgr-tab .mini-mark { font-size: 11px; opacity: .8; }
.optmgr-head { display: flex; align-items: center; gap: 8px; }
.optmgr-main .opt-name { width: 100%; border: 1px solid var(--border-strong); border-radius: 6px; padding: 5px 8px; }

@media (max-width: 900px) {
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .board-2col { grid-template-columns: 1fr; }
  .optmgr { grid-template-columns: 1fr; }
  .optmgr-side { border-right: none; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px; max-height: none; }
  .optmgr-group { margin-bottom: 6px; }
}

/* ============================================================
   人员组织架构：大区 → 办事处 → 代表 → 医院
   ============================================================ */
.org-mod-actions { align-items: center; }
.org-action-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.org-action-sep { width: 1px; height: 24px; background: var(--border-strong); }
.org-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.ostat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; box-shadow: var(--shadow-sm);
}
.ostat-l { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-soft); }
.ostat-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.ostat-v { font-size: 26px; font-weight: 700; margin-top: 6px; line-height: 1.15; }
.ostat-u { font-size: 12px; font-weight: 400; color: var(--text-mute); margin-left: 4px; }
.t-blue { color: var(--blue-600); }   .ostat-dot.t-blue { background: var(--blue-100); }
.t-green { color: var(--green); }     .ostat-dot.t-green { background: var(--green-bg); }
.t-orange { color: var(--orange); }   .ostat-dot.t-orange { background: var(--orange-bg); }
.t-red { color: var(--red); }         .ostat-dot.t-red { background: var(--red-bg); }
.t-gray { color: var(--text-mute); }  .ostat-dot.t-gray { background: var(--gray-bg); }
.t-teal { color: var(--teal); }       .ostat-dot.t-teal { background: var(--teal-bg); }

/* ---- 四级组织树：大区 → 办事处 → 代表 → 医院 ---- */
.org-chart-card {
  min-width: 0; overflow: hidden; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.org-chart-scroll { overflow-x: auto; }
.org-chart { min-width: 1160px; padding: 28px 24px 32px; }
.org-region-node {
  position: relative; width: 380px; max-width: calc(100% - 32px); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 13px 20px; color: var(--blue-700); background: var(--blue-50);
  border: 1px solid var(--blue-100); border-radius: 9px; text-align: center;
}
.org-region-node::after {
  content: ''; position: absolute; width: 1px; height: 22px; left: 50%; bottom: -23px;
  background: var(--border-strong);
}
.org-region-node strong { font-size: 17px; }
.org-region-node > span:last-child { color: var(--text-soft); font-size: 12px; }
.org-node-kicker {
  color: var(--blue-600); background: #fff; border: 1px solid var(--blue-100);
  border-radius: 12px; padding: 1px 8px; font-size: 11px;
}
.org-office-grid {
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px; margin-top: 44px;
}
.org-office-grid::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: -22px; height: 1px;
  background: var(--border-strong);
}
.org-office-node {
  position: relative; min-width: 0; border: 1px solid var(--border); background: #fff;
  border-radius: 9px; padding: 13px 14px; color: var(--text); text-align: center;
  cursor: pointer; box-shadow: 0 2px 8px rgba(20,40,80,.05); transition: .16s ease;
}
.org-office-node::before {
  content: ''; position: absolute; width: 1px; height: 22px; left: 50%; top: -23px;
  background: var(--border-strong);
}
.org-office-node:hover { border-color: var(--blue-500); transform: translateY(-1px); box-shadow: 0 5px 14px rgba(37,99,235,.11); }
.org-office-node.on { border-color: var(--blue-600); background: var(--blue-50); box-shadow: 0 0 0 2px rgba(37,99,235,.1); }
.org-office-node:focus-visible,
.org-rep-node:focus-visible { outline: 3px solid rgba(37,99,235,.25); outline-offset: 2px; }
.org-office-node-head { display: flex; align-items: center; justify-content: center; gap: 6px; }
.org-office-name { color: var(--blue-700); font-size: 15px; font-weight: 700; }
.org-vacancy-badge { position: absolute; top: 8px; right: 8px; color: var(--orange); background: var(--orange-bg); border-radius: 10px; padding: 1px 6px; font-size: 10px; white-space: nowrap; }
.org-office-manager { display: block; color: var(--text-soft); font-size: 12px; margin-top: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-office-node-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--border); }
.org-office-node-stats span { color: var(--text-mute); font-size: 11px; text-align: center; white-space: nowrap; }
.org-office-node-stats b { color: var(--text); font-size: 13px; }

.org-tree-level {
  position: relative; margin-top: 52px; padding: 18px; border: 1px solid var(--border);
  border-radius: 10px; background: #f9fbff;
}
.org-tree-level::before {
  content: ''; position: absolute; top: -53px; left: var(--branch-left, 50%);
  width: 1px; height: 53px; background: var(--border-strong);
}
.org-tree-level-hospitals { background: #fff; }
.org-level-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px; min-height: 24px;
}
.org-level-head strong { color: var(--text); font-size: 15px; }
.org-level-head > span:last-child { color: var(--text-mute); font-size: 12px; }
.org-level-kicker {
  flex: none; color: var(--blue-600); background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: 12px; padding: 2px 8px; font-size: 11px;
}
.org-rep-grid {
  display: grid; grid-template-columns: repeat(var(--item-count, 1), minmax(132px, 1fr)); gap: 10px;
}
.org-rep-node {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 8px;
  padding: 10px 12px; text-align: center; cursor: pointer; transition: .15s ease;
}
.org-rep-node:hover { border-color: var(--blue-500); }
.org-rep-node.on { border-color: var(--blue-600); background: var(--blue-50); box-shadow: 0 0 0 2px rgba(37,99,235,.08); }
.org-rep-node-top { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.org-rep-node-meta { color: var(--text-mute); font-size: 12px; }
.org-rep-empty,
.org-level-empty {
  grid-column: 1 / -1; color: var(--text-mute); font-size: 13px; text-align: center;
  padding: 24px 16px; border: 1px dashed var(--border-strong); border-radius: 8px; background: #fff;
}
.org-hospital-grid { display: grid; grid-template-columns: repeat(4, minmax(210px, 1fr)); gap: 10px; }
.org-hospital-node {
  min-width: 0; padding: 12px 13px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; box-shadow: 0 2px 7px rgba(20,40,80,.035);
}
.org-hospital-node-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.org-hospital-node-head strong {
  min-width: 0; color: var(--text); font-size: 13px; line-height: 1.4; overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.org-hospital-node-head > span { flex: none; color: var(--text-mute); font-size: 11px; white-space: nowrap; }
.org-hospital-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 10px; min-height: 20px; }
.org-hospital-untagged { color: var(--text-mute); font-size: 11px; }

.org-chip { font-size: 11px; background: var(--teal-bg); color: var(--teal); padding: 1px 7px; border-radius: 10px; white-space: nowrap; }
.org-tag { font-size: 11px; padding: 1px 7px; border-radius: 4px; margin-right: 3px; white-space: nowrap; }
.org-tag.t-core { background: var(--red-bg); color: var(--red); }
.org-tag.t-early { background: var(--sky-bg); color: var(--skyblue); }
.org-tag.t-late { background: var(--green-bg); color: var(--green); }
.org-empty { color: var(--text-mute); font-size: 13px; }
.org-sum { padding: 10px 2px; color: var(--text-mute); font-size: 12px; }
.org-hos-cell { color: var(--text-soft); font-size: 12px; max-width: 420px; }
.org-click-row { cursor: pointer; transition: background-color .15s ease; }
.org-click-row:hover { background: var(--blue-50); }
.org-click-row:focus-visible { outline: 2px solid var(--blue-500); outline-offset: -2px; background: var(--blue-50); }
.org-people-table, .org-hospital-table { table-layout: fixed; min-width: 920px; }
.org-people-table th:nth-child(1), .org-people-table td:nth-child(1) { width: 10%; }
.org-people-table th:nth-child(2), .org-people-table td:nth-child(2) { width: 10%; }
.org-people-table th:nth-child(3), .org-people-table td:nth-child(3) { width: 10%; }
.org-people-table th:nth-child(4), .org-people-table td:nth-child(4) { width: 11%; }
.org-people-table th:nth-child(5), .org-people-table td:nth-child(5) { width: 11%; }
.org-people-table th:nth-child(6), .org-people-table td:nth-child(6) { width: 8%; }
.org-people-table th:nth-child(7), .org-people-table td:nth-child(7) { width: 40%; }
.org-hospital-table th:nth-child(1), .org-hospital-table td:nth-child(1) { width: 12%; }
.org-hospital-table th:nth-child(2), .org-hospital-table td:nth-child(2) { width: 25%; }
.org-hospital-table th:nth-child(3), .org-hospital-table td:nth-child(3) { width: 13%; }
.org-hospital-table th:nth-child(4), .org-hospital-table td:nth-child(4) { width: 22%; }
.org-hospital-table th:nth-child(5), .org-hospital-table td:nth-child(5) { width: 10%; }
.org-hospital-table th:nth-child(6), .org-hospital-table td:nth-child(6) { width: 18%; }
/* 医院表「负责代表」：每行最多两人，靠 repsInPairs() 分组，这里保证每组独占一行不再回流 */
.org-reps-cell { white-space: nowrap; }
.org-rep-line { line-height: 1.6; }
.sec-t { font-size: 14px; font-weight: 600; margin: 18px 0 8px; }

/* 办事处统一维护 */
.org-office-manage-note { margin: 0 0 14px; }
.org-office-manage-list { display: flex; flex-direction: column; gap: 9px; }
.org-office-manage-row {
  width: 100%; display: grid; grid-template-columns: 1.35fr 1fr .8fr .8fr 50px;
  align-items: center; gap: 16px; padding: 13px 15px; border: 1px solid var(--border);
  border-radius: 9px; background: #fff; color: var(--text); text-align: left;
  font: inherit; cursor: pointer; transition: .15s ease;
}
.org-office-manage-row:hover { border-color: var(--blue-400); background: var(--blue-50); }
.org-office-manage-row:focus-visible { outline: 3px solid rgba(37,99,235,.22); outline-offset: 2px; }
.org-office-manage-row > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.org-office-manage-row strong, .org-office-manage-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-office-manage-row small { color: var(--text-mute); font-size: 11px; font-weight: 400; }
.org-office-manage-edit { color: var(--blue-600); font-size: 13px; font-weight: 600; text-align: right; }

/* 终端表单里的「负责同事」多选 */
.org-pick-wrap { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 10px 12px; max-height: 220px; overflow-y: auto; background: #fff; }
.org-pick-grp { margin-bottom: 10px; }
.org-pick-grp:last-child { margin-bottom: 0; }
.org-pick-t { font-size: 12px; color: var(--text-mute); margin-bottom: 5px; }
.org-pick { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; margin: 0 14px 6px 0; cursor: pointer; white-space: nowrap; }
/* .form-item input 有 width:100%，会把复选框撑满整行，这里精确覆盖 */
.org-pick input[type="checkbox"] { width: auto; flex: none; padding: 0; margin: 0; }

@media (max-width: 1180px) and (min-width: 821px) {
  .org-chart { min-width: 1040px; }
  .org-tree-level::before { display: none; }
}
@media (max-width: 1080px) {
  .org-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .org-stats { grid-template-columns: repeat(2, 1fr); }
  .org-action-sep { display: none; }
  .org-mod-actions { width: 100%; justify-content: space-between; }
  .org-chart { min-width: 940px; }
  .org-office-grid { grid-template-columns: repeat(5, minmax(150px, 1fr)); }
  .org-region-node::after, .org-office-grid::before, .org-office-node::before { display: none; }
  .org-office-grid { margin-top: 20px; }
  .org-tree-level::before { display: none; }
  .org-hospital-grid { grid-template-columns: repeat(3, minmax(200px, 1fr)); }
  .org-office-manage-row { grid-template-columns: 1.2fr 1fr .75fr .75fr 42px; gap: 8px; padding: 12px; }
}

/* ============================================================
   中央系列项目：可展开的项目行 + 进度条 + 节点条
   ============================================================ */
.cp-stats { grid-template-columns: repeat(6, 1fr); }

.cp-list { display: flex; flex-direction: column; gap: 10px; }
.cp-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.cp-item.open { border-color: var(--blue-500); }
/* 固定列宽的网格，保证不论项目名多长，进度条 / 数字 / 状态都在同一竖线上 */
.cp-head {
  display: grid; align-items: center; gap: 12px;
  grid-template-columns:
    12px                    /* 展开箭头 */
    260px                   /* 项目名称：固定到用户标注的红线位置 */
    68px                    /* 会议形式 */
    56px                    /* 类型标签 */
    minmax(360px, 1fr)      /* 进度条：吸收剩余空间，避免状态前出现无意义留白 */
    228px                   /* 数字 */
    88px                    /* 卡点 / 逾期 */
    58px                    /* 状态 */
    40px;                   /* 操作 */
  padding: 13px 16px; cursor: pointer;
}
.cp-head:hover { background: var(--blue-50); }
.cp-caret { color: var(--text-mute); font-size: 11px; }
/* 名称超长时省略，不允许把后面的列挤走 */
.cp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-name { font-weight: 600; font-size: 15px; }
.cp-form, .cp-type, .cp-status, .cp-flags { min-width: 0; }
.cp-form .type-tag, .cp-type .type-tag, .cp-status .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cp-form .type-tag { background: #eaf2ff; color: var(--blue-700); }

/* 分段进度条：已召开 / 进行中 / 剩余配额 */
.cp-bar {
  flex: 1; min-width: 120px; height: 10px; border-radius: 5px;
  background: var(--gray-bg); display: flex; overflow: hidden;
}
.cps { height: 100%; display: block; }
.cps.held { background: var(--green); }
.cps.doing { background: var(--blue-500); }
.cps.left { background: #dfe4ee; }
.cp-nums { font-size: 12px; color: var(--text-soft); white-space: nowrap; text-align: right; }
.cp-nums b { color: var(--text); }
.cp-warn {
  font-size: 12px; background: var(--orange-bg); color: var(--orange);
  padding: 2px 8px; border-radius: 10px; white-space: nowrap;
}
.cp-warn.over { background: var(--red-bg); color: var(--red); }
.cp-acts { white-space: nowrap; text-align: right; }

.cp-body { border-top: 1px solid var(--border); background: #fbfcfe; padding: 12px 16px 16px; }
.cp-body-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.central-project-toolbar > .meeting-filter-field { flex: 0 1 156px; min-width: 136px; max-width: 178px; }
.central-project-filter-clear { align-self: flex-end; }
.cp-office-filter { flex: 0 0 180px; min-width: 180px; max-width: 220px; }
.cp-office-filter .meeting-filter-menu { width: 250px; }
.cp-tip { flex: 1; font-size: 12px; color: var(--text-mute); }
/* v170 场次列表：按内容分配八列，主席完整展示，主要空间继续留给流程进度。 */
table.data.cp-sessions { min-width: 1280px; table-layout: fixed; }
.cp-sessions tbody tr.row-block { background: #fff8f8; }
.cp-sessions tbody tr.row-cancelled { background: #fff6f6; color: var(--text-soft); }
.cp-sessions th:nth-child(1), .cp-sessions td:nth-child(1) { width: 130px; } /* 场次编号 */
.cp-sessions th:nth-child(2), .cp-sessions td:nth-child(2) { width: 126px; } /* 会议日期 */
.cp-sessions th:nth-child(3), .cp-sessions td:nth-child(3) { width: 210px; } /* 主席     */
.cp-sessions th:nth-child(4), .cp-sessions td:nth-child(4) { width:  96px; } /* 办事处   */
.cp-sessions th:nth-child(5), .cp-sessions td:nth-child(5) { width: 100px; } /* 负责同事 */
.cp-sessions th:nth-child(6), .cp-sessions td:nth-child(6) { width: 150px; } /* MID编码  */
.cp-sessions th:nth-child(7), .cp-sessions td:nth-child(7) { width: auto; }  /* 流程进度 */
.cp-sessions th:nth-child(8), .cp-sessions td:nth-child(8) { width:  68px; } /* 操作     */
/* fixed 布局不会被内容撑开，超长编号、办事处、同事和 MID 单独截断。 */
.cp-sessions td:nth-child(1), .cp-sessions td:nth-child(4),
.cp-sessions td:nth-child(5), .cp-sessions td:nth-child(6) {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cp-sessions .central-chair-cell {
  white-space: normal; line-height: 1.45; overflow-wrap: anywhere; word-break: break-word;
}
.central-progress-heading-track {
  display: block; position: relative; height: 18px; margin: 0 8px;
}
.central-progress-heading-track > span {
  position: absolute; top: 0; left: 7.142857%; transform: translateX(-9px); white-space: nowrap;
}
.cp-session-row { cursor: pointer; transition: background-color .16s ease, box-shadow .16s ease; }
.cp-session-row:hover { background: #f3f7ff; }
.cp-session-row.row-block:hover { background: #fff0f0; }
.cp-session-row.row-cancelled:hover { background: #ffeded; box-shadow: inset 3px 0 0 #9f2634; }
.cp-session-row:focus-visible {
  outline: 2px solid var(--blue-500); outline-offset: -2px; background: #f3f7ff;
}
.cp-session-row .actions { white-space: nowrap; }

/* 场次流程条基础样式：完成=绿勾，当前=蓝色，未来=灰色；市场配套特殊状态见下方专用覆盖。 */
.central-session-flow { min-height: 42px; padding: 2px 8px 0; }
.central-flow-track { display: flex; align-items: flex-start; width: 100%; }
.central-flow-step {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; justify-content: center;
}
.central-flow-step:not(:last-child)::after {
  content: ''; position: absolute; z-index: 0; top: 8px; left: 50%; width: 100%; height: 2px;
  background: #dfe4ee;
}
.central-flow-step.complete:not(:last-child)::after { background: var(--green); }
.central-flow-dot {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; background: #cfd6e2; color: #fff;
  border: 2px solid #cfd6e2; font-size: 11px; line-height: 1; font-weight: 700;
}
.central-flow-step.complete .central-flow-dot { background: var(--green); border-color: var(--green); }
.central-flow-step.cancelled-complete .central-flow-dot {
  background: #cbd2dd; border-color: #cbd2dd; color: #fff;
}
.central-flow-step.current .central-flow-dot {
  background: var(--blue-500); border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 105, 230, .16);
}
.central-flow-step.blocked .central-flow-dot {
  background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px rgba(229, 72, 77, .14);
}
.central-flow-step.cancelled .central-flow-dot {
  background: #9f2634; border-color: #9f2634; color: #fff;
  box-shadow: 0 0 0 4px rgba(159, 38, 52, .14); font-size: 14px;
}
.central-flow-step.terminated .central-flow-dot { background: #e5e9f0; border-color: #e5e9f0; }
.central-session-flow.is-cancelled .central-flow-step:not(:last-child)::after {
  height: 0; background: none; border-top: 2px dashed #d7dde7;
}
.central-flow-label {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%); max-width: 88px;
  color: var(--blue-600); font-size: 11px; font-weight: 600; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.central-flow-step.blocked .central-flow-label { color: var(--red); }
.central-flow-step.cancelled .central-flow-label { color: #9f2634; overflow: visible; }
.central-flow-step.is-terminal .central-flow-label { color: var(--green); }
.central-flow-detail { padding: 14px 8px 4px; border: 1px solid var(--border); border-radius: 10px; background: #f8fafc; }
.central-flow-detail .central-session-flow { min-height: 50px; }

/* v172 市场配套场次特殊状态复用赞助跟进语义：改期紫色回转箭头、取消深灰叉号。 */
.central-session-flow.market-session-flow .central-flow-step.rescheduled .central-flow-dot {
  background: #7c3aed; border-color: #7c3aed; color: #fff;
  box-shadow: 0 0 0 4px rgba(124,58,237,.14); font-size: 15px;
}
.central-session-flow.market-session-flow .central-flow-step.rescheduled .central-flow-label {
  color: #7c3aed; font-weight: 600;
}
.central-session-flow.market-session-flow .central-flow-step.cancelled .central-flow-dot {
  background: #4b5563; border-color: #4b5563; color: #fff;
  box-shadow: 0 0 0 4px rgba(75,85,99,.14); font-size: 15px;
}
.central-session-flow.market-session-flow .central-flow-step.cancelled .central-flow-label {
  color: #4b5563; font-weight: 600; overflow: visible;
}

/* 会议日期的紧迫度 */
.mdate { display: inline-flex; flex-direction: column; line-height: 1.35; white-space: nowrap; }
.mdate em { font-style: normal; font-size: 11px; color: var(--text-mute); }
.mdate.done { color: var(--green); }
.mdate.soon { color: var(--orange); font-weight: 600; }
.mdate.soon em { color: var(--orange); }
.mdate.over { color: var(--red); font-weight: 600; }
.mdate.over em { color: var(--red); }
.mdate.cancelled { color: #9f2634; font-weight: 600; }
.mdate.cancelled em { color: #9f2634; }
.cp-cancelled { display: inline-flex; align-items: center; color: #9f2634; font-size: 12px; font-weight: 600; }

/* 6 段节点进度条 */
.nodebar { display: inline-flex; gap: 3px; cursor: help; }
.nd { width: 13px; height: 7px; border-radius: 2px; background: #dfe4ee; display: block; }
.nd.done { background: var(--green); }
.nd.doing { background: var(--blue-500); }
.nd.block { background: var(--red); }
.nd.wait { background: var(--orange); }
.nd.todo { background: #dfe4ee; }
.nodebar-empty { color: var(--text-mute); }

@media (max-width: 1200px) { .cp-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1500px) and (min-width: 1181px) {
  .cp-head {
    gap: 8px;
    grid-template-columns:
      12px
      190px
      60px
      50px
      minmax(180px, 1fr)
      200px
      76px
      58px
      40px;
  }
}
@media (max-width: 1180px) {
  /* 列放不下了，退回弹性换行；此时对齐让位于可读性 */
  .cp-head { display: flex; flex-wrap: wrap; }
  .cp-name { overflow: visible; }
  .cp-nums { text-align: left; }
  .cp-acts { margin-left: auto; }
}
@media (max-width: 820px) {
  .cp-stats { grid-template-columns: repeat(2, 1fr); }
  .cp-bar { min-width: 120px; }
  .cp-acts { margin-left: 0; }
  .central-project-toolbar > .meeting-filter-field,
  .cp-office-filter { width: 100%; min-width: 100%; max-width: none; }
  .central-project-toolbar .meeting-filter-menu,
  .cp-office-filter .meeting-filter-menu { width: 100%; box-sizing: border-box; }
}

/* ============================================================
   项目详情 = 执行说明书（结构对着用户的 SOP 一页纸）
   ============================================================ */
.cp-deadline {
  font-size: 12px; background: var(--orange-bg); color: var(--orange);
  padding: 2px 9px; border-radius: 10px; white-space: nowrap;
}

/* B. 单场会议配置 */
.cfg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.cfg-card {
  background: var(--blue-50); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px; text-align: center;
}
.cfg-role { font-size: 13px; color: var(--text-soft); }
.cfg-count { font-size: 24px; font-weight: 700; color: var(--blue-700); line-height: 1.25; }
.cfg-count span { font-size: 12px; font-weight: 400; color: var(--text-mute); margin-left: 2px; }
.cfg-req { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.cfg-audience {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px;
  background: var(--orange-bg); border: 1px solid #f3ddb4; border-radius: 8px; padding: 10px 14px;
  font-size: 13px; color: #7a5a14;
}
.cfg-au-t { font-weight: 600; color: var(--orange); }
.cfg-audience b { color: var(--orange); font-size: 15px; }
.cfg-au-i { color: #7a5a14; }

/* D. 执行流程 */
.sop-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.sop-stage { background: #fbfcfe; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.sop-stage-h {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--blue-700); margin-bottom: 8px;
}
.sop-no {
  width: 20px; height: 20px; border-radius: 50%; background: var(--blue-600); color: #fff;
  font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.sop-stage ul { margin: 0; padding-left: 17px; }
.sop-stage li { font-size: 13px; color: var(--text-soft); margin: 4px 0; }

/* E. 分工清单 */
.duty-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.duty-col { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.duty-h { padding: 9px 14px; font-weight: 600; font-size: 13px; }
.duty-col.self .duty-h { background: var(--green-bg); color: var(--green); }
.duty-col.sup .duty-h { background: var(--sky-bg); color: var(--skyblue); }
.duty-col.assoc .duty-h { background: #efe9f8; color: #6b4fa0; }
.duty-col ul { margin: 0; padding: 10px 14px 12px 30px; }
.duty-col li { font-size: 13px; color: var(--text-soft); margin: 5px 0; }

/* F. 单场费用标准 */
.fee-table { min-width: 480px; }
.fee-table .fee-sub { font-weight: 600; color: var(--text); }
.fee-table tr.fee-total td { background: var(--blue-50); font-weight: 700; color: var(--blue-700); }
.fee-table tr.fee-total td:first-child { text-align: right; }

@media (max-width: 820px) {
  .duty-cols { grid-template-columns: 1fr; }
  .sop-stages, .cfg-cards { grid-template-columns: 1fr; }
}

/* ---- 推流卡（无听众的线上会）---- */
.cfg-card.push { background: var(--orange-bg); border-color: #f3ddb4; }
.cfg-card.push .cfg-count { color: var(--orange); }
.cfg-card.push .cfg-req { color: #7a5a14; }

/* ---- F. 专家劳务参考 ---- */
.feeref-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feeref-col { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.feeref-h { padding: 9px 14px; font-weight: 600; font-size: 13px; background: var(--teal-bg); color: var(--teal); }
.feeref-h span { font-weight: 400; font-size: 12px; opacity: .85; }
.feeref-col ul { margin: 0; padding: 10px 14px 12px 28px; }
.feeref-col li { font-size: 13px; color: var(--text-soft); margin: 5px 0; }
.feeref-col li b { color: var(--text); font-weight: 600; }
.feeref-tip {
  margin-top: 10px; padding: 9px 14px; border-radius: 8px; font-size: 13px;
  background: var(--orange-bg); border: 1px solid #f3ddb4; color: #7a5a14;
}

/* ---- G. 费用预算（三层）---- */
.cost-sub { font-size: 13px; font-weight: 600; color: var(--text-soft); margin: 14px 0 8px; }
.cost-sum { min-width: 320px; }
.cost-sum td:first-child { color: var(--text-soft); }
.cost-sum td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.fee-table tr.fee-total.hi td { background: var(--blue-100); font-size: 15px; }

@media (max-width: 820px) {
  .feeref-cols { grid-template-columns: 1fr; }
}

/* 费用预算弹窗头部的单场金额徽标 */
.cost-badge {
  font-size: 12px; background: var(--blue-100); color: var(--blue-700);
  padding: 2px 9px; border-radius: 10px; white-space: nowrap; font-weight: 600;
}

/* ---- 供应商：详情里的卡片 ---- */
.sup-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.sup-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.sup-card-h {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px;
  background: var(--sky-bg); color: var(--skyblue); font-weight: 600; font-size: 14px;
}
.sup-no {
  width: 20px; height: 20px; border-radius: 50%; background: var(--skyblue); color: #fff;
  font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.sup-card-b { padding: 10px 14px 12px; }
.sup-card-b > div { font-size: 13px; color: var(--text); margin: 5px 0; }
.sup-card-b span { color: var(--text-mute); margin-right: 8px; }

/* ---- 供应商：表单里的动态行 ---- */
.sup-row { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px; background: #fbfcfe; }
.sup-row:last-child { margin-bottom: 0; }
.sup-row-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sup-row-no { font-size: 13px; color: var(--text-soft); }
.sup-row-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sup-row-grid input { width: 100%; }
.sup-row-grid .s-note { grid-column: 1 / -1; }
@media (max-width: 820px) { .sup-row-grid { grid-template-columns: 1fr; } }

/* ---- 场次表单：专家席位行 ---- */
.slot-list { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 10px 12px; background: #fbfcfe; max-height: 320px; overflow-y: auto; }
.slot-row { display: grid; grid-template-columns: 62px minmax(130px,1fr) 118px minmax(170px,1.35fr) 118px 108px; gap: 8px; align-items: center; margin-bottom: 8px; }
.slot-row:last-child { margin-bottom: 0; }
.slot-label { font-size: 13px; color: var(--blue-700); font-weight: 600; white-space: nowrap; }
.slot-row input, .slot-row select { width: 100%; }
.slot-row datalist { display: none; }
.breakout-seat-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.breakout-seat-controls select { width: 160px; }
.breakout-seat-controls span { margin-left: auto; color: var(--text-mute); font-size: 13px; }
.breakout-seat-list { max-height: 360px; }
.breakout-seat-row { grid-template-columns: 62px minmax(120px,1fr) 118px minmax(150px,1.25fr) 112px 102px 48px; }
.breakout-seat-remove { border: none; background: transparent; color: var(--red); cursor: pointer; padding: 6px 0; font-size: 13px; }
.breakout-seat-remove:hover { text-decoration: underline; }
.breakout-seat-empty { padding: 12px 4px; color: var(--text-mute); font-size: 13px; text-align: center; }
/* 只读输入框（办事处经理自动带出） */
.form-item input.ro { background: var(--gray-bg); color: var(--text-soft); cursor: not-allowed; }

/* ---- 场次详情：节点步骤条 ---- */
.node-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.node-step {
  font-size: 12px; padding: 4px 10px; border-radius: 12px;
  background: var(--gray-bg); color: var(--text-mute);
}
.node-step.past { background: var(--blue-50); color: var(--blue-600); }
.node-step.cur { background: var(--blue-600); color: #fff; font-weight: 600; }
.node-step.cur.block { background: var(--red); }

@media (max-width: 820px) {
  .slot-row { grid-template-columns: 52px 1fr 1fr; }
  .slot-row .sl-name { grid-column: 2; }
  .slot-row .sl-office { grid-column: 3; }
  .slot-row .sl-hospital { grid-column: 2 / 4; }
  .slot-row .sl-title { grid-column: 2; }
  .slot-row .sl-dept { grid-column: 3; }
  .breakout-seat-row { grid-template-columns: 52px 1fr 1fr 48px; }
  .breakout-seat-row .bs-name { grid-column: 2 / 4; }
  .breakout-seat-row .bs-office { grid-column: 2; }
  .breakout-seat-row .bs-hospital { grid-column: 3 / 5; }
  .breakout-seat-row .bs-title { grid-column: 2; }
  .breakout-seat-row .bs-dept { grid-column: 3 / 5; }
  .breakout-seat-row .breakout-seat-remove { grid-column: 4; grid-row: 1; }
}

/* ---- 项目状态是算出来的：详情里给一句说明 ---- */
.di-hint { color: var(--text-mute); font-size: 12px; margin-left: 4px; }

/* ---- 「+ 新增场次」在项目非进行中时锁住（仍可点，点了弹提示说明原因） ---- */
.btn.btn-locked {
  color: var(--text-mute); border-color: var(--border); background: var(--gray-bg);
  cursor: not-allowed;
}
.btn.btn-locked:hover { background: var(--gray-bg); border-color: var(--border); }

/* ---- 项目场次：按办事处筛选 ---- */
.cp-filter {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-soft); white-space: nowrap;
}
.cp-filter select {
  height: 28px; padding: 0 24px 0 8px; font-size: 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background-color: #fff; color: var(--text); cursor: pointer;
}
.cp-filter select:focus { outline: none; border-color: var(--blue-500); }

/* ============================================================
   个人赞助与预算 v52
   ============================================================ */
.module-tabs {
  display: flex; gap: 6px; margin-bottom: 14px; padding: 4px;
  width: fit-content; background: #eef2f8; border-radius: 10px;
}
.subtabs {
  display: flex; gap: 6px; margin-bottom: 14px; padding: 4px;
  width: fit-content; background: #eef2f8; border-radius: 10px;
}
.subtabs button {
  border: 0; background: transparent; color: var(--text-soft); cursor: pointer;
  font-size: 14px; padding: 8px 18px; border-radius: 8px;
}
.subtabs button.active { background: #fff; color: var(--blue-600); font-weight: 600; box-shadow: var(--shadow-sm); }
.module-tabs button, .budget-subtabs button {
  border: 0; background: transparent; color: var(--text-soft); cursor: pointer;
  font-size: 14px; padding: 8px 18px; border-radius: 8px;
}
.module-tabs button.on { background: #fff; color: var(--blue-600); font-weight: 600; box-shadow: var(--shadow-sm); }
.budget-head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 20px; margin-bottom: 12px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.budget-title { font-size: 19px; font-weight: 650; margin-bottom: 4px; }
.budget-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.budget-head-actions label { color: var(--text-soft); font-size: 13px; }
.budget-head-actions select, .monthly-head select {
  margin-left: 6px; border: 1px solid var(--border); border-radius: 7px; padding: 7px 28px 7px 10px; background: #fff;
}
.budget-subtabs { display: flex; gap: 20px; border-bottom: 1px solid var(--border); margin: 0 2px 15px; }
.budget-subtabs button { padding: 10px 4px; border-radius: 0; border-bottom: 2px solid transparent; }
.budget-subtabs button.on { color: var(--blue-600); font-weight: 600; border-bottom-color: var(--blue-600); }
.budget-finance-overview { display: grid; gap: 14px; margin-bottom: 14px; }
.budget-visual-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.budget-quarter-card { border-top: 3px solid #3b82f6; }
.budget-annual-card { border-top: 3px solid #0f9f8f; }
.budget-visual-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.budget-visual-head h3 { margin: 0 0 4px; font-size: 17px; color: var(--text); }
.budget-visual-head p { margin: 0; color: var(--text-mute); font-size: 12px; }
.budget-period-chip {
  display: inline-flex; align-items: center; white-space: nowrap; padding: 5px 9px; border-radius: 999px;
  background: #edf4ff; color: #2563eb; font-size: 12px; font-weight: 600;
}
.budget-period-chip.neutral { background: #f0f4f8; color: #607089; }
.budget-quarter-layout { display: grid; grid-template-columns: minmax(230px, .72fr) minmax(480px, 1.7fr); gap: 28px; align-items: center; }
.budget-donut-panel { min-height: 224px; display: grid; place-items: center; border-right: 1px solid #edf1f6; }
.budget-quarter-donut { width: 220px; height: 220px; display: block; }
.budget-quarter-summary { min-width: 0; }
.budget-quarter-total {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px;
  padding: 0 0 13px; border-bottom: 1px solid #edf1f6;
}
.budget-quarter-total > span { color: var(--text-soft); font-size: 13px; }
.budget-quarter-total > strong { grid-row: span 2; font-size: 27px; color: var(--text); }
.budget-quarter-total > small { color: var(--text-mute); font-size: 12px; }
.budget-allocation-list { display: grid; margin-top: 5px; }
.budget-allocation-row {
  display: grid; grid-template-columns: 11px minmax(150px, 1fr) minmax(92px, auto) 64px;
  align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f3f7;
}
.budget-allocation-row:last-child { border-bottom: 0; }
.budget-allocation-dot, .budget-legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.budget-allocation-row.allocated .budget-allocation-dot, .budget-legend-dot.actual { background: #0f9f8f; }
.budget-allocation-row.pending .budget-allocation-dot { background: #f59e0b; }
.budget-allocation-row.remaining .budget-allocation-dot, .budget-legend-dot.cash { background: #3b82f6; }
.budget-legend-dot.adjustment-out { background: #f59e0b; }
.budget-allocation-copy { display: grid; gap: 3px; }
.budget-allocation-copy b { font-size: 13px; font-weight: 600; }
.budget-allocation-copy small, .budget-allocation-percent { color: var(--text-mute); font-size: 12px; }
.budget-allocation-row > strong { font-size: 16px; text-align: right; }
.budget-allocation-percent { text-align: right; font-variant-numeric: tabular-nums; }
.budget-annual-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: stretch; }
.budget-annual-capacity { min-width: 0; padding: 2px 0; }
.budget-capacity-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 9px; }
.budget-capacity-head > div { display: grid; gap: 3px; }
.budget-capacity-head span { color: var(--text-soft); font-size: 13px; }
.budget-capacity-head small { color: var(--text-mute); font-size: 12px; }
.budget-capacity-head strong { font-size: 22px; color: var(--text); }
.budget-capacity-canvas { width: 100%; height: 52px; display: block; }
.budget-capacity-legend {
  display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: start;
  width: 100%; max-width: 800px; gap: 10px; margin-top: 10px;
}
.budget-capacity-legend > div {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 8px; background: #f7f9fc; font-size: 12px;
}
.budget-capacity-legend span:not(.budget-legend-dot) { color: var(--text-soft); }
.budget-capacity-legend strong { color: var(--text); font-size: 14px; }
.budget-capacity-legend strong.negative { color: #c62f2f; }
.budget-capacity-legend small { color: var(--text-mute); font-variant-numeric: tabular-nums; }
.budget-current-funds {
  display: flex; flex-direction: column; justify-content: center; min-height: 130px; padding: 18px;
  border-radius: 10px; background: linear-gradient(145deg, #f1f6ff, #e8f0ff); border: 1px solid #cfddf5;
}
.budget-current-funds > span { color: #4d6486; font-size: 13px; }
.budget-current-funds > strong { margin: 8px 0; color: #225ec9; font-size: 28px; }
.budget-current-funds > p { margin: 0; color: #718096; font-size: 12px; line-height: 1.55; }
.budget-current-funds.negative { border-color: #f3c3bd; background: #fff3f1; }
.budget-current-funds.negative > strong { color: #c62f2f; }
.budget-finance-alert { margin-top: 12px; padding: 9px 11px; border-radius: 8px; font-size: 12px; }
.budget-finance-alert.danger { color: #b42318; background: #fff0ee; border: 1px solid #f1c3bd; }
.budget-finance-alert.notice { color: #8a5a00; background: #fff8e8; border: 1px solid #f1d69a; }
.budget-cash-calibration {
  margin-top: 8px; padding: 16px; border: 1px solid #d7e4f5; border-radius: 11px;
  background: linear-gradient(145deg, #f9fbff, #f3f7fd);
}
.budget-calibration-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.budget-calibration-head > div:first-child { display: grid; gap: 4px; }
.budget-calibration-head > div:first-child > label { color: var(--text); font-size: 15px; font-weight: 650; }
.budget-calibration-head small { color: var(--text-mute); font-size: 12px; }
.budget-calibration-metrics { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.budget-calibration-metrics span { display: grid; gap: 3px; color: var(--text-soft); font-size: 12px; }
.budget-calibration-metrics b { color: var(--text); font-size: 17px; font-variant-numeric: tabular-nums; }
.budget-calibration-metrics b.negative { color: #c62f2f; }
.budget-calibration-fields {
  display: grid; grid-template-columns: minmax(180px, .75fr) minmax(300px, 1.7fr) auto;
  align-items: end; gap: 12px; margin-top: 14px;
}
.budget-calibration-fields .form-item { min-width: 0; }
.budget-calibration-fields textarea { min-height: 72px; }
.budget-calibration-action { display: flex; align-items: flex-end; padding-bottom: 1px; }
.budget-calibration-note { margin-top: 10px; color: var(--text-mute); font-size: 12px; line-height: 1.55; }
.budget-calibration-note.warn { color: #a65b00; }
.budget-calibration-log { min-width: 900px; }
.budget-calibration-log .positive { color: #087f5b; font-weight: 600; }
.budget-calibration-log .negative { color: #c62f2f; font-weight: 600; }
.budget-calibration-reason { min-width: 220px; white-space: normal; line-height: 1.45; }
.budget-grid-2 { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; }
.budget-grid-2 .section-card { margin-bottom: 14px; }
.budget-badge { display: inline-flex; align-items: center; width: fit-content; padding: 3px 8px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.budget-badge.done { color: #087f5b; background: #e8f8f1; }
.budget-badge.pending { color: #b45309; background: #fff4df; }
.budget-badge.planning { color: #5c6f88; background: #eef2f7; }
.budget-badge.unknown { color: #b42318; background: #fff0ee; }
.budget-badge.cancelled { color: #b42318; background: #fff0ee; }
.budget-status-control { display: inline-flex; align-items: center; gap: 7px; min-width: 124px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 8px; }
.budget-status-control .budget-status-mark { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; flex: 0 0 auto; }
.budget-status-control select { min-width: 92px; padding: 4px 22px 4px 2px; border: 0; background-color: transparent; color: inherit; }
.budget-status-control.done { color: #087f5b; background: #e8f8f1; border-color: #b8e7d3; }
.budget-status-control.done .budget-status-mark { background: #16a36a; }
.budget-status-control.pending { color: #b45309; background: #fff4df; border-color: #f5d79c; }
.budget-status-control.pending .budget-status-mark { background: #f59e0b; }
.budget-status-control.planning { color: #5c6f88; background: #eef2f7; border-color: #d7dee8; }
.budget-status-control.planning .budget-status-mark { background: #94a3b8; }
.budget-status-control.unknown { color: #b42318; background: #fff0ee; border-color: #f1c3bd; }
.budget-status-control.unknown .budget-status-mark { background: #dc493a; }
.budget-table { min-width: 1500px; }
.budget-table .budget-col-code,
.budget-table .budget-project-code,
.budget-table .budget-project-code-head { width: 88px; min-width: 88px; max-width: 88px; }
.budget-table .budget-project-code,
.budget-table .budget-project-code-head,
.budget-table .budget-office-name,
.budget-table .budget-office-name-head { white-space: nowrap; }
.budget-table .budget-col-office,
.budget-table .budget-office-name,
.budget-table .budget-office-name-head { width: 80px; min-width: 80px; max-width: 80px; }
.budget-table .budget-col-name,
.budget-table .budget-project-name,
.budget-table .budget-project-name-head { width: 240px; min-width: 240px; max-width: 240px; }
.budget-project-name span { display: -webkit-box; overflow: hidden; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.monthly-table { min-width: 1900px; }
.monthly-table .monthly-col-name { width: 240px; }
.monthly-table .monthly-project-name { width: 240px; min-width: 240px; max-width: 240px; }
.monthly-project-name span { display: -webkit-box; overflow: hidden; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.budget-lock { color: #b45309; font-size: 12px; }
.monthly-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; padding: 14px 18px; }
.monthly-head > div { display: flex; align-items: center; gap: 12px; }
.monthly-head label { color: var(--text-soft); font-size: 13px; }
.linked-budget-card {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  border: 1px solid #d9e4f4; background: #f7faff; border-radius: 9px; padding: 12px 14px;
}
.linked-budget-card > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.linked-budget-card span { color: var(--text-mute); font-size: 12px; }
.linked-budget-card b { margin-right: 4px; }
.linked-budget-card.disabled { background: #f7f7f8; border-color: var(--border); opacity: .78; }
.session-kind-tag {
  display: inline-flex; align-items: center; margin-right: 8px; padding: 2px 8px;
  border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 12px; font-weight: 600;
}
.session-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.sponsor-project-session-list { display: grid; gap: 10px; }
.sponsor-project-session-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid #d9e4f4; border-radius: 10px; padding: 12px 14px; background: #f8fbff;
}
.sponsor-project-session-card.disabled { background: #f7f7f8; border-color: var(--border); opacity: .78; }
.sponsor-project-session-card.draft { align-items: flex-end; border-style: dashed; background: #fff; }
.session-card-main { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.session-card-main > div { display: flex; align-items: center; min-width: 0; }
.session-card-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-card-main > span { color: var(--text-mute); font-size: 12px; }
.session-card-badge { flex: 0 0 auto; color: var(--blue-700); font-size: 12px; font-weight: 600; }
.session-card-fields { display: grid; grid-template-columns: 150px minmax(240px, 1fr) 170px; gap: 10px; flex: 1; }
.session-card-fields label { color: var(--text-soft); font-size: 12px; }
.session-card-fields input, .session-card-fields select { width: 100%; margin-top: 5px; }
.session-card-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
@media (max-width: 900px) {
  .sponsor-project-session-card, .sponsor-project-session-card.draft { align-items: stretch; flex-direction: column; }
  .session-card-fields { grid-template-columns: 1fr; }
  .session-card-actions { justify-content: flex-end; }
}
.budget-detail-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.budget-detail-summary > div { display: flex; flex-direction: column; gap: 5px; padding: 12px; border: 1px solid var(--border); background: #f8fafc; border-radius: 8px; }
.budget-detail-summary span { color: var(--text-mute); font-size: 12px; }
.budget-detail-summary b { font-size: 16px; }
.budget-form-grid input[readonly] { background: #f3f6fa; color: var(--text-soft); }
.budget-delete-btn { color: #d92d20; border-color: #f2b8b5; }
.budget-delete-btn:hover { background: #fff1f0; }
.modal-foot .spacer { flex: 1; }

/* ============================================================
   专家会议需求 v81
   ============================================================ */
.expert-request-stat-grid { margin-bottom: 14px; }
.expert-request-note { margin-bottom: 12px; }
.expert-request-toolbar { gap: 10px 14px; }
.expert-request-toolbar label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.expert-request-toolbar select { min-width: 118px; }
.expert-request-table { min-width: 1320px; }
.expert-request-row { cursor: pointer; transition: background .15s ease; }
.expert-request-row:hover, .expert-request-row:focus { background: #f3f7ff; outline: none; }
.expert-request-tag { display: inline-flex; margin: 2px 4px 2px 0; }
.expert-request-status { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.expert-request-status.pending { color: #a85b00; background: #fff2d8; }
.expert-request-status.done { color: #087f5b; background: #e5f7ef; }
.expert-request-status.cancelled { color: #65758b; background: #edf1f6; }
.expert-request-field-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.expert-request-inline-add { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; margin-top: 8px; padding: 10px; border: 1px solid var(--border); background: #f8fafc; border-radius: 9px; }
.expert-request-field-hint { min-height: 18px; margin-top: 5px; color: var(--text-mute); font-size: 12px; line-height: 1.45; }
.expert-request-field-hint.matched { color: #087f5b; }
.expert-request-field-hint.new { color: #1769d2; }
.expert-request-field-hint.warning { color: #b45309; }
.expert-request-city-list { display: grid; gap: 8px; }
.expert-request-city-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.expert-request-add-city { margin-top: 8px; }
.expert-request-delete { margin-right: auto; }
.expert-request-history-row { cursor: pointer; }
.expert-request-history-row:hover, .expert-request-history-row:focus { background: #f3f7ff; outline: none; }

/* ============================================================
   全局会议资源 v86
   ============================================================ */
.resource-tabs { margin-bottom: 14px; }
.resource-tabs button { min-width: 110px; }
.page-note { padding: 13px 16px; margin-bottom: 14px; border: 1px solid #dce5f5; border-radius: 10px; background: #f7f9fd; color: #667085; line-height: 1.6; }
.page-note-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-note-toolbar .btn { flex: 0 0 auto; }
@media (max-width: 720px) {
  .page-note-toolbar { align-items: flex-start; flex-direction: column; }
}
.resource-toolbar { justify-content: flex-start; margin-bottom: 14px; }
.resource-table .col-name { max-width: 360px; white-space: normal; line-height: 1.45; }
.external-resource-table { width: 100%; min-width: 1040px; table-layout: fixed; }
.external-resource-table .external-resource-col-name { width: 22%; }
.external-resource-table .external-resource-col-ownership { width: 14%; }
.external-resource-table .external-resource-col-date { width: 12%; }
.external-resource-table .external-resource-col-form { width: 10%; }
.external-resource-table .external-resource-col-location { width: 16%; }
.external-resource-table .external-resource-col-status { width: 10%; }
.external-resource-table .external-resource-col-experts { width: 16%; }
.external-resource-table th,
.external-resource-table td { vertical-align: middle; }
.external-resource-table th:nth-child(2),
.external-resource-table th:nth-child(3),
.external-resource-table th:nth-child(4),
.external-resource-table th:nth-child(6),
.external-resource-table td:nth-child(2),
.external-resource-table td:nth-child(3),
.external-resource-table td:nth-child(4),
.external-resource-table td:nth-child(6) { white-space: nowrap; }
.external-resource-name-cell,
.external-resource-location-cell,
.external-resource-experts-cell { white-space: normal; line-height: 1.45; overflow-wrap: anywhere; }
.click-row { cursor: pointer; transition: background .15s ease; }
.click-row:hover, .click-row:focus { background: #f3f7ff !important; outline: none; }
.relation-adder { display: grid; grid-template-columns: minmax(120px,180px) minmax(220px,1fr) minmax(180px,1fr) auto; gap: 10px; align-items: center; margin-bottom: 12px; padding: 12px; border: 1px solid #e3e8f2; border-radius: 10px; background: #fafbfe; }
.relation-adder input, .relation-adder select { width: 100%; }
.medical-seat-adder{grid-template-columns:minmax(180px,260px) auto;justify-content:start}
.medical-seat-table th:first-child,.medical-seat-table td:first-child{width:110px}
.medical-seat-table th:last-child,.medical-seat-table td:last-child{width:64px;text-align:right}
.medical-seat-table td input{min-width:130px;width:100%}
.medical-seat-table td:nth-child(2){min-width:240px}
.medical-seat-table td:first-child small{display:block;margin-top:3px;color:#98a2b3;font-weight:400}
.external-recommendation-list { width: 100%; }
.external-recommendation-row {
  display: grid;
  grid-template-columns: minmax(120px,.9fr) minmax(220px,1.6fr) minmax(110px,.8fr) 140px 140px 52px;
  gap: 14px;
  align-items: end;
  padding: 13px 2px;
  border-bottom: 1px solid #e8edf5;
}
.external-recommendation-row:first-child { border-top: 1px solid #e8edf5; }
.external-recommendation-value,
.external-recommendation-control { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.external-recommendation-value > span:first-child,
.external-recommendation-control > span { color: #8a94a6; font-size: 12px; }
.external-recommendation-value > span:last-child,
.external-recommendation-value > b { overflow: hidden; color: #344054; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.external-recommendation-control select { width: 100%; min-width: 0; }
.external-recommendation-delete { align-self: center; justify-self: end; }
.external-recommendation-empty { padding: 24px 4px; border-top: 1px solid #e8edf5; border-bottom: 1px solid #e8edf5; color: #98a2b3; text-align: center; }
.external-recommendation-detail-row { grid-template-columns: minmax(120px,.8fr) minmax(220px,1.6fr) minmax(110px,.8fr) minmax(120px,.8fr) minmax(120px,.8fr); align-items: center; }
@media (max-width: 980px) {
  .external-recommendation-row { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; }
  .external-recommendation-delete { justify-self: start; }
  .external-recommendation-detail-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .external-recommendation-row,
  .external-recommendation-detail-row { grid-template-columns: minmax(0,1fr); }
}
.quota-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.quota-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.quota-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 18px; background: #eef4ff; color: #315ca8; }
.quota-chip b { color: #163d7b; }
.resource-project-list { display: grid; gap: 14px; }
.resource-project-card { border: 1px solid #dfe6f2; border-radius: 12px; background: #fff; overflow: hidden; }
.resource-project-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; background: #f8faff; border-bottom: 1px solid #e6ebf4; }
.resource-project-head > div { min-width: 0; }
.resource-project-head h3 { margin: 5px 0 4px; font-size: 16px; line-height: 1.35; }
.resource-project-head p { margin: 0; color: #7b8496; font-size: 13px; }
.resource-session-row { display: grid; grid-template-columns: minmax(0,1fr) 120px 100px; gap: 16px; align-items: center; padding: 13px 18px; border-bottom: 1px solid #eef1f6; }
.resource-session-row:last-child { border-bottom: 0; }
.resource-session-row small { display: block; margin-top: 5px; color: #8a94a6; font-weight: 400; }
.resource-empty-session, .empty-card { padding: 22px; text-align: center; color: #9aa3b2; }

/* v119 专家讲者科室会：办事处 → 赞助规划 → 具体会议场次 */
.department-expert-toolbar { margin-bottom: 14px; }
.department-office-list { display: grid; gap: 14px; }
.department-office-card { overflow: hidden; border: 1px solid #dce5f2; border-radius: 13px; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.03); }
.department-office-card.is-open { border-color: #bfd1f2; box-shadow: 0 5px 18px rgba(37,99,235,.07); }
.department-office-toggle { display: grid; grid-template-columns: 24px minmax(150px,1fr) minmax(520px,2fr); gap: 14px; align-items: center; width: 100%; padding: 17px 20px; border: 0; background: #fff; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.department-office-toggle:hover { background: #f8fbff; }
.department-office-toggle:focus-visible, .department-plan-toggle:focus-visible, .department-session-row:focus-visible { outline: 2px solid var(--blue-500); outline-offset: -2px; }
.department-office-arrow, .department-plan-arrow { color: #7b8ba5; font-size: 26px; line-height: 1; transition: transform .15s ease; }
.department-office-card.is-open > .department-office-toggle .department-office-arrow,
.department-plan-card.is-open .department-plan-arrow { transform: rotate(90deg); }
.department-office-name { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.department-office-name b { font-size: 17px; }
.department-office-name small { overflow: hidden; color: #8a94a6; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.department-office-metrics { display: grid; grid-template-columns: repeat(4,minmax(90px,1fr)); gap: 10px; }
.department-office-metrics > span { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; border-radius: 9px; background: #f5f8fd; }
.department-office-metrics small { color: #778195; font-size: 12px; }
.department-office-metrics b { color: #1e4f9b; font-size: 17px; }
.department-office-body { display: grid; gap: 10px; padding: 14px 16px 16px; border-top: 1px solid #e8edf5; background: #f8faff; }
.department-office-empty { padding: 24px 18px; border: 1px dashed #d6dfed; border-radius: 10px; background: #fff; color: #98a2b3; text-align: center; }
.department-plan-card { overflow: hidden; border: 1px solid #dfe6f1; border-radius: 11px; background: #fff; }
.department-plan-card.is-open { border-color: #c9d8ef; }
.department-plan-summary { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 13px 15px; border: 0; background: #fff; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.department-plan-summary:hover { background: #f8fbff; }
.department-plan-toggle { min-width: 0; }
.department-plan-main { display: grid; grid-template-columns: minmax(88px,auto) minmax(180px,1fr) minmax(86px,auto); gap: 13px; align-items: center; min-width: 0; }
.department-plan-main > b { color: #3569bd; font-size: 13px; }
.department-plan-main > strong { overflow: hidden; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.department-plan-main > small { color: #7e899b; font-size: 12px; }
.department-plan-stats { display: grid; grid-template-columns: repeat(3,minmax(82px,auto)); gap: 9px; color: #667085; font-size: 12px; }
.department-plan-stats > span { padding: 7px 9px; border-radius: 8px; background: #f5f7fb; white-space: nowrap; }
.department-plan-stats b { color: #263b5d; font-size: 14px; }
.department-plan-stats .department-plan-over { background: #fff1f1; color: #cf3f3f; font-weight: 600; }
.department-plan-expanded { border-top: 1px solid #e9edf4; }
.department-plan-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 15px; background: #fbfcfe; color: #667085; font-size: 13px; }
.department-session-row { display: grid; grid-template-columns: minmax(260px,1fr) minmax(110px,140px) minmax(90px,110px); gap: 18px; align-items: center; width: 100%; padding: 13px 15px; border: 0; border-top: 1px solid #edf0f5; background: #fff; color: #344054; font: inherit; text-align: left; cursor: pointer; }
.department-session-row:hover { background: #f5f8ff; }
.department-session-row > span { min-width: 0; }
.department-session-row small { display: block; margin-bottom: 4px; color: #8a94a6; font-size: 12px; font-weight: 400; }
.department-session-name b { display: block; overflow: hidden; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.department-session-name small { margin-top: 5px; margin-bottom: 0; }
.department-seat-editor { grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0 0 14px; padding: 16px; border: 1px solid #e1e8f3; border-radius: 11px; background: #f9fbfe; }
.department-seat-editor .form-item { margin: 0; }
.department-seat-editor input,.department-seat-editor select { border-color: #cfd9e8; background: #fff; }
.department-seat-editor .research-expert-add-action { display: flex; justify-content: flex-end; }
.department-seat-editor .research-expert-add-action .btn { min-width: 116px; }

/* ============================================================
   会议资源总览 v122：平铺多选筛选与综合看板
   ============================================================ */
.meeting-overview-tabs { margin-bottom: 12px; }
.meeting-overview-toolbar { align-items: flex-end; overflow: visible; position: relative; }
.meeting-filter-field { display: flex; flex: 1 1 132px; min-width: 124px; max-width: 178px; flex-direction: column; align-items: stretch; gap: 5px; color: var(--text-soft); font-size: 13px; }
.meeting-overview-toolbar > .meeting-expert-filter-label { flex-basis: 170px; max-width: 230px; }
.meeting-filter-multi { position: relative; width: 100%; color: var(--text); }
.meeting-filter-multi > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 36px; box-sizing: border-box;
  padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff;
  color: var(--text); font-size: 13px; cursor: pointer; list-style: none; user-select: none; white-space: nowrap;
}
.meeting-filter-multi > summary::-webkit-details-marker { display: none; }
.meeting-filter-multi > summary:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.meeting-filter-multi[open] > summary { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,99,235,.10); }
.meeting-filter-chevron { color: var(--text-mute); transition: transform .15s ease; }
.meeting-filter-multi[open] .meeting-filter-chevron { transform: rotate(180deg); }
.meeting-filter-menu {
  position: absolute; z-index: 40; top: calc(100% + 7px); left: 0; width: max(240px,100%); padding: 9px;
  border: 1px solid #dbe3ef; border-radius: 10px; background: #fff; box-shadow: 0 14px 32px rgba(15,23,42,.16);
}
.meeting-filter-expert .meeting-filter-menu { width: min(360px,calc(100vw - 48px)); }
.meeting-filter-actions { display: flex; justify-content: flex-end; gap: 6px; padding: 0 2px 7px; border-bottom: 1px solid var(--border); }
.meeting-filter-actions button { border: 0; background: transparent; color: var(--blue-600); font-size: 12px; cursor: pointer; padding: 4px 6px; }
.meeting-filter-actions button:hover, .meeting-filter-actions button:focus-visible { background: var(--blue-50); border-radius: 5px; outline: none; }
.meeting-filter-options { max-height: 260px; overflow: auto; padding-top: 5px; }
.meeting-filter-option { display: flex; align-items: flex-start; gap: 8px; padding: 7px 8px; border-radius: 7px; color: var(--text); cursor: pointer; line-height: 1.35; }
.meeting-filter-option:hover { background: var(--blue-50); }
.meeting-filter-option input { width: 16px; height: 16px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--blue-600); }
.meeting-filter-option span { min-width: 0; white-space: normal; }
.meeting-filter-option[hidden] { display: none; }
.meeting-filter-search { width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.meeting-filter-empty { padding: 12px 8px; color: var(--text-mute); text-align: center; font-size: 12px; }
.meeting-filter-clear { flex: 0 0 auto; margin-left: auto; }
.meeting-overview-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.meeting-overview-detail-grids { align-items: start; }
.meeting-overview-detail-grids .section-card { margin-bottom: 8px; min-width: 0; }
.meeting-overview-mini-scroll { max-height: 360px; overflow: auto; }
.meeting-overview-mini-scroll .mini-table { min-width: 620px; }
.meeting-overview-mini-scroll .click-row:hover,
.meeting-overview-mini-scroll .click-row:focus { background: #f3f7ff; }
.dashboard-stat-action { cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.dashboard-stat-action:hover, .dashboard-stat-action:focus { border-color: #b8cdf4; outline: none; transform: translateY(-1px); }

@media (max-width: 1200px) {
  .budget-quarter-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
  .budget-annual-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 18px; }
  .budget-capacity-legend { grid-template-columns: repeat(2, minmax(0, 260px)); max-width: 530px; }
  .budget-grid-2 { grid-template-columns: 1fr; }
  .meeting-overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .department-office-toggle { grid-template-columns: 24px minmax(150px,1fr); }
  .department-office-metrics { grid-column: 2; }
  .department-plan-summary { grid-template-columns: 20px minmax(0,1fr); }
  .department-plan-stats { grid-column: 2; padding-left: 0; }
}
@media (max-width: 900px) {
  .budget-quarter-layout, .budget-annual-layout { grid-template-columns: 1fr; gap: 18px; }
  .budget-donut-panel { border-right: 0; border-bottom: 1px solid #edf1f6; padding-bottom: 14px; }
  .budget-capacity-legend { grid-template-columns: 1fr; max-width: none; }
  .budget-calibration-fields { grid-template-columns: 1fr; }
  .budget-calibration-action { justify-content: flex-end; }
}
@media (max-width: 700px) {
  .budget-head, .monthly-head { align-items: flex-start; flex-direction: column; }
  .budget-head-actions, .monthly-head > div { align-items: flex-start; }
  .budget-detail-summary { grid-template-columns: 1fr; }
  .budget-visual-card { padding: 16px; }
  .budget-visual-head { flex-direction: column; }
  .budget-quarter-layout, .budget-annual-layout { grid-template-columns: 1fr; gap: 16px; }
  .budget-donut-panel { border-right: 0; border-bottom: 1px solid #edf1f6; padding-bottom: 14px; }
  .budget-quarter-donut { width: 200px; height: 200px; }
  .budget-allocation-row { grid-template-columns: 11px minmax(120px, 1fr) auto; }
  .budget-allocation-percent { grid-column: 2 / -1; text-align: left; padding-left: 0; }
  .budget-capacity-legend { grid-template-columns: 1fr; }
  .budget-current-funds { min-height: auto; }
  .budget-capacity-head, .budget-calibration-head { align-items: flex-start; flex-direction: column; }
  .budget-calibration-metrics { width: 100%; justify-content: space-between; }
  .module-tabs { width: 100%; }
  .module-tabs button { flex: 1; }
  .budget-subtabs { overflow-x: auto; }
  .expert-request-field-action, .expert-request-inline-add { grid-template-columns: 1fr; }
  .relation-adder, .quota-grid, .resource-session-row { grid-template-columns: 1fr; }
  .resource-project-head { align-items: flex-start; flex-direction: column; }
  .meeting-overview-metrics { grid-template-columns: 1fr; }
  .meeting-overview-toolbar > .meeting-filter-field, .meeting-overview-toolbar > .meeting-expert-filter-label { width: 100%; min-width: 100%; max-width: none; }
  .expert-filter-toolbar > .meeting-filter-field { width: 100%; min-width: 100%; max-width: none; }
  .expert-filter-toolbar .meeting-filter-menu { left: 0; right: auto; }
  .expert-filter-actions { align-items: stretch; flex-direction: column; }
  .expert-filter-actions .expert-filter-search { width: 100%; min-width: 100%; margin-left: 0; }
  .expert-filter-actions .btn { width: 100%; }
  .sponsor-filter-toolbar > .meeting-filter-field { width: 100%; min-width: 100%; max-width: none; }
  .sponsor-toolbar-actions { width: 100%; }
  .sponsor-toolbar-actions .btn { flex: 1 1 auto; }
  .sponsor-filter-toolbar > .spacer { display: none; }
  .meeting-filter-menu, .meeting-filter-expert .meeting-filter-menu { width: 100%; box-sizing: border-box; }
  .meeting-filter-clear { width: 100%; margin-left: 0; }
  .filter-more, .filter-more > summary, .filter-more-body { width: 100%; }
  .filter-more-body { align-items: stretch; }
  .department-office-toggle { grid-template-columns: 22px minmax(0,1fr); padding: 15px; }
  .department-office-metrics { grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .department-office-metrics > span { flex-direction: column; align-items: flex-start; }
  .department-plan-summary { padding: 12px; }
  .department-plan-main { grid-template-columns: 1fr; gap: 4px; }
  .department-plan-stats { grid-column: 1 / -1; grid-template-columns: repeat(3,minmax(0,1fr)); padding-left: 0; }
  .department-plan-stats > span { overflow: hidden; text-overflow: ellipsis; }
  .department-plan-actions { align-items: flex-start; flex-direction: column; }
  .department-session-row { grid-template-columns: 1fr; gap: 9px; }
  .department-seat-editor { grid-template-columns: 1fr; }
}

/* ============================================================
   v144 深海蓝 + 青绿视觉体系与页面操作层级
   ============================================================ */
.page-action-row {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  margin: 0 0 14px;
}
.page-tabs-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 14px;
}
.page-tabs-row .module-tabs,
.page-tabs-row .subtabs { margin-bottom: 0; }
.page-primary-action { flex: 0 0 auto; }
.page-primary-action .ti { font-size: 17px; }

.toolbar {
  box-shadow: 0 2px 8px rgba(21,52,91,.035);
}
.toolbar select:focus,
.toolbar input:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(47,107,255,.11);
}
.module-tabs,
.subtabs { background: #eaf0f7; border: 1px solid #e2e8f0; }
.module-tabs button.on,
.subtabs button.active {
  color: var(--blue-600); box-shadow: 0 2px 8px rgba(21,52,91,.08);
}
.module-tabs button:focus-visible,
.subtabs button:focus-visible { outline: 3px solid rgba(47,107,255,.20); outline-offset: 1px; }

.ostat {
  position: relative; overflow: hidden; min-height: 96px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; border-radius: 12px; box-shadow: 0 2px 8px rgba(21,52,91,.055);
}
.ostat::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gray);
}
.ostat:has(.t-blue)::before { background: var(--blue-600); }
.ostat:has(.t-green)::before { background: var(--green); }
.ostat:has(.t-teal)::before { background: var(--teal); }
.ostat:has(.t-orange)::before { background: var(--orange); }
.ostat:has(.t-red)::before { background: var(--red); }
.ostat-l { justify-content: center; }
.ostat-v { margin-top: 7px; }
.ostat-dot { width: 8px; height: 8px; border-radius: 50%; }

.stat-card {
  position: relative; overflow: hidden; border-radius: 12px;
}
.stat-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--blue-600);
}
.stat-card:has(.stat-icon.green)::before { background: var(--green); }
.stat-card:has(.stat-icon.orange)::before { background: var(--orange); }
.stat-card:has(.stat-icon.red)::before { background: var(--red); }
.stat-card:has(.stat-icon.purple)::before { background: var(--purple); }
.stat-icon.green ~ .stat-meta + * { color: inherit; }
.stat-icon.purple { background: var(--purple-bg); color: var(--purple); }

.click-row,
.expert-request-row,
.cp-session-row { transition: background .16s ease, box-shadow .16s ease; }
.click-row:hover,
.click-row:focus-visible,
.expert-request-row:hover,
.expert-request-row:focus-visible,
.cp-session-row:hover,
.cp-session-row:focus-visible {
  background: var(--blue-50) !important;
  box-shadow: inset 3px 0 0 var(--blue-600);
  outline: none;
}
.click-row:focus-visible,
.expert-request-row:focus-visible,
.cp-session-row:focus-visible { outline: 2px solid rgba(47,107,255,.45); outline-offset: -2px; }

.cp-list { gap: 13px; }
.cp-item {
  border-color: #d7e1ef; border-radius: 12px;
  box-shadow: 0 3px 10px rgba(21,52,91,.05);
}
.cp-item.open {
  border-color: #8db1ff; box-shadow: 0 5px 16px rgba(47,107,255,.10);
}
.cp-head { min-height: 62px; background: #f8fbff; border-left: 4px solid #c7d9ff; padding-left: 13px; }
.cp-item.open .cp-head { background: #edf4ff; border-left-color: var(--blue-600); }
.cp-head:hover { background: #edf4ff; }
.cp-caret { color: var(--blue-600); }
.cp-bar {
  height: 14px; border-radius: 999px; background: #e8edf4;
  border: 2px solid #fff; box-shadow: 0 0 0 1px #d7e0ec, inset 0 1px 2px rgba(21,52,91,.06);
}
.cps.held { background: var(--green); }
.cps.doing { background: var(--blue-600); }
.cps.left { background: #dfe6ef; }
.cp-body {
  border-top: 1px solid #dce6f3; background: #f2f5f9;
  padding: 14px 18px 18px 26px;
}
.cp-body .table-wrap { border-color: #dbe3ee; }
.cp-body table.data tbody tr { background: #fff; }
.cp-body table.data tbody tr.row-block { background: #fff5f5; }
.cp-body table.data tbody tr.row-cancelled { background: #fff5f5; color: var(--text-soft); }
.cp-session-row:hover { background: #edf4ff !important; }
.cp-session-row.row-block:hover { background: #fff0f0 !important; box-shadow: inset 3px 0 0 var(--red); }
.cp-session-row.row-cancelled:hover { background: #ffeded !important; box-shadow: inset 3px 0 0 #9f2634; }

.central-flow-step.complete:not(:last-child)::after { background: var(--green); }
.central-flow-step.complete .central-flow-dot { background: var(--green); border-color: var(--green); }
.central-flow-step.current .central-flow-dot {
  background: var(--blue-600); border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(47,107,255,.16);
}
.central-flow-step.blocked .central-flow-dot {
  background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px rgba(217,74,74,.14);
}
.central-flow-step.cancelled .central-flow-dot {
  background: #9f2634; border-color: #9f2634; box-shadow: 0 0 0 4px rgba(159,38,52,.14);
}

.nav-item:focus-visible,
.org-office-node:focus-visible,
.org-rep-node:focus-visible,
.department-office-toggle:focus-visible,
.department-plan-toggle:focus-visible {
  outline: 3px solid rgba(47,107,255,.30); outline-offset: 2px;
}
.org-office-node:hover,
.org-rep-node:hover { border-color: var(--blue-600); box-shadow: 0 5px 14px rgba(47,107,255,.10); }
.org-office-node.on,
.org-rep-node.on { border-color: var(--blue-600); background: var(--blue-50); box-shadow: 0 0 0 2px rgba(47,107,255,.09); }

.analytics-card,
.budget-visual-card,
.bulk-module-card { border-radius: 12px; box-shadow: 0 2px 8px rgba(21,52,91,.055); }
.tone-purple { background: var(--purple-bg); color: var(--purple); }

@media (max-width: 760px) {
  .page-tabs-row { align-items: stretch; flex-direction: column; }
  .page-tabs-row .module-tabs,
  .page-tabs-row .subtabs { width: 100%; overflow-x: auto; }
  .page-tabs-row .page-primary-action,
  .page-action-row .page-primary-action { align-self: flex-end; }
}
/* ============================================================
   v101 Excel 批量数据管理
   ============================================================ */
.bulk-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.bulk-module-card{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;padding:18px;background:#fff;border:1px solid var(--border,#e5e7eb);border-radius:12px;box-shadow:0 1px 3px rgba(15,23,42,.04)}
.bulk-module-card h3{margin:7px 0 6px;font-size:17px;color:#172033}.bulk-module-card p{margin:0;color:#667085;line-height:1.55;max-width:560px}
.bulk-module-kind{display:inline-flex;padding:3px 8px;border-radius:999px;background:#eef5ff;color:#2563eb;font-size:12px}
.bulk-guard{display:flex;gap:14px;align-items:center;padding:12px 16px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;color:#526075}.bulk-guard strong{color:#172033;white-space:nowrap}
.bulk-data-summary{margin-top:14px;color:#667085;font-size:13px}.bulk-dialog-desc{margin-top:0;color:#526075}.bulk-rule-box{margin-top:16px;padding:12px 14px;border-radius:8px;background:#eef5ff;color:#315a92;line-height:1.55}
.bulk-project-matches{display:grid;gap:10px;margin-top:12px}.bulk-project-matches label{display:grid;grid-template-columns:minmax(220px,1fr) minmax(280px,1.4fr);gap:14px;align-items:center}.bulk-project-matches label>span{color:#526075}.bulk-project-matches select{width:100%;min-width:0}
.bulk-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.modal.modal-bulk-preview{display:flex;flex-direction:column;max-height:calc(100vh - 80px);overflow:hidden}.modal-bulk-preview .modal-head{flex:0 0 auto}.modal-bulk-preview .modal-head>div:first-child{min-width:0}.modal-bulk-preview .modal-head p{margin:4px 0 0;font-size:12px}.modal-bulk-preview .modal-body{min-height:0;overflow:auto}.modal-bulk-preview .modal-foot{flex:0 0 auto;background:#fff;border-radius:0 0 14px 14px}.bulk-preview{max-height:none}.bulk-preview-file{overflow-wrap:anywhere}.bulk-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px}.bulk-summary span{padding:12px;background:#f8fafc;border-radius:8px;text-align:center}.bulk-summary b{font-size:20px;color:#2563eb}
.bulk-preview-block{margin-top:14px;padding:14px;border:1px solid #dce4ef;border-radius:9px;background:#fff}.bulk-preview-block.error{border-color:#fecaca;background:#fff7f7}.bulk-preview-block.warning{border-color:#fde68a;background:#fffdf3}.bulk-preview-block ul{margin:8px 0 0;padding-left:22px;line-height:1.6}.bulk-error-list{max-height:min(42vh,420px);overflow:auto;margin:12px 0 0;padding:4px 8px 4px 32px;border:1px solid #fecaca;border-radius:8px;background:#fff;line-height:1.65}.bulk-error-list li{padding:5px 8px;overflow-wrap:anywhere}.bulk-error-list li+li{border-top:1px solid #fee2e2}
.bulk-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.bulk-preview-head>div{display:flex;flex-direction:column;gap:3px}.bulk-preview-head small{color:#667085;font-weight:400;line-height:1.45}.bulk-preview-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.bulk-conflicts{display:grid;gap:7px;margin-top:10px}.bulk-conflicts label,.bulk-confirm{display:flex;align-items:flex-start;gap:8px;padding:9px 10px;border-radius:7px;background:#f8fafc}.bulk-conflicts label span{min-width:210px}.bulk-conflicts label small{color:#667085}.bulk-confirm{margin-top:7px}.bulk-confirm input{margin-top:2px;flex:0 0 auto}.bulk-confirm-subhead{margin-top:16px;padding-top:14px;border-top:1px solid #e5e7eb;color:#526075;font-size:13px;font-weight:600}
@media(max-width:900px){.bulk-module-grid{grid-template-columns:1fr}.bulk-filter-grid{grid-template-columns:1fr 1fr}.bulk-module-card{align-items:flex-start;flex-direction:column}.bulk-summary{grid-template-columns:1fr 1fr}.modal.modal-bulk-preview{max-height:calc(100vh - 32px)}}
@media(max-width:700px){.bulk-project-matches label{grid-template-columns:1fr;gap:6px}.bulk-preview-head{align-items:flex-start;flex-direction:column}.bulk-preview-actions{justify-content:flex-start}.bulk-conflicts label{display:grid;grid-template-columns:auto 1fr}.bulk-conflicts label small{grid-column:2}.bulk-conflicts label span{min-width:0}.modal-bulk-preview .modal-foot{padding:12px 16px}.modal-bulk-preview .modal-foot .btn{flex:1}.bulk-error-list{max-height:38vh}}

/* v103-v107 专用 Excel 弹窗：项目上下文 / 月份多选导出条件 + 三个核心动作 */
.modal.modal-central-excel{width:660px}
.modal.modal-sponsor-budget-excel{width:720px}
.bulk-central-dialog{padding:22px}
.bulk-central-project,.bulk-central-project-select{padding:16px 18px;border:1px solid #dce6f5;border-radius:12px;background:#f8fbff}
.bulk-central-project{display:flex;flex-direction:column;gap:5px}
.bulk-central-project span,.bulk-central-project-select label{color:var(--text-mute);font-size:12px;font-weight:500}
.bulk-central-project strong{color:var(--text);font-size:18px;line-height:1.45}
.bulk-central-project small{color:var(--text-soft);font-size:12px}
.bulk-central-project-select label{display:block;margin-bottom:8px}
.bulk-central-project-select select{width:100%;height:42px;border:1px solid var(--border);border-radius:8px;background:#fff;padding:0 12px;color:var(--text);font-size:14px}
.bulk-central-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
.bulk-central-action{min-height:116px;padding:16px;border:1px solid #dbe3ef;border-radius:12px;background:#fff;color:var(--text);text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:8px;justify-content:flex-start;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.bulk-central-action strong{font-size:15px;line-height:1.35}
.bulk-central-action span{color:var(--text-mute);font-size:12px;line-height:1.55}
.bulk-central-action:hover:not(:disabled){border-color:var(--blue-500);box-shadow:0 6px 16px rgba(37,99,235,.10);transform:translateY(-1px)}
.bulk-central-action:focus-visible{outline:2px solid var(--blue-500);outline-offset:2px}
.bulk-central-action.primary{border-color:var(--blue-600);background:var(--blue-600);color:#fff}
.bulk-central-action.primary span{color:#dbeafe}
.bulk-central-action.primary:hover:not(:disabled){border-color:var(--blue-700);background:var(--blue-700)}
.bulk-central-action:disabled{cursor:not-allowed;opacity:.45;background:#f8fafc;box-shadow:none;transform:none}
.bulk-central-action.primary:disabled{background:#94b5f5;border-color:#94b5f5;color:#fff}
.bulk-central-note{margin:14px 2px 0;color:var(--text-mute);font-size:12px;line-height:1.55}
.bulk-budget-filter-card{padding:16px 18px;border:1px solid #dce6f5;border-radius:12px;background:#f8fbff}
.bulk-budget-filter-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.bulk-budget-filter-title strong{font-size:15px;color:var(--text)}
.bulk-budget-filter-title span{font-size:12px;color:var(--text-mute)}
.bulk-budget-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.bulk-month-field{display:flex;flex-direction:column;gap:7px;min-width:0}
.bulk-month-label{color:var(--text-soft);font-size:13px}
.bulk-month-multi{position:relative}
.bulk-month-multi summary{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;height:42px;box-sizing:border-box;border:1px solid var(--border);border-radius:8px;background:#fff;padding:0 12px;color:var(--text);font-size:14px;cursor:pointer;list-style:none;user-select:none}
.bulk-month-multi summary::-webkit-details-marker{display:none}
.bulk-month-multi summary:focus-visible{outline:2px solid var(--blue-500);outline-offset:2px}
.bulk-month-multi[open] summary{border-color:var(--blue-500);box-shadow:0 0 0 3px rgba(37,99,235,.10)}
.bulk-month-chevron{color:var(--text-mute);transition:transform .15s ease}
.bulk-month-multi[open] .bulk-month-chevron{transform:rotate(180deg)}
.bulk-month-options{position:absolute;z-index:8;left:0;right:0;top:calc(100% + 6px);max-height:240px;overflow:auto;padding:7px;background:#fff;border:1px solid #dbe3ef;border-radius:10px;box-shadow:0 12px 28px rgba(15,23,42,.14)}
.bulk-month-option{display:flex;align-items:center;gap:9px;padding:8px 9px;border-radius:7px;color:var(--text);font-size:14px;cursor:pointer}
.bulk-month-option:hover{background:var(--blue-50)}
.bulk-month-option input{width:16px;height:16px;margin:0;accent-color:var(--blue-600)}
.bulk-month-all{padding-bottom:10px;margin-bottom:3px;border-bottom:1px solid var(--border);font-weight:600}
@media(max-width:680px){.modal.modal-central-excel,.modal.modal-sponsor-budget-excel{width:100%}.bulk-central-actions,.bulk-budget-filter-grid{grid-template-columns:1fr}.bulk-central-action{min-height:auto}.bulk-central-dialog{padding:18px}}

/* v111 赞助项目场次 Excel：多项目导出、单项目模板导入 */
.modal.modal-sponsor-session-excel{width:min(780px,calc(100vw - 32px))}
.modal.modal-research-excel{width:min(720px,calc(100vw - 32px))}
.bulk-sponsor-session-dialog .bulk-budget-filter-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,.85fr)}
.bulk-sponsor-project-multi .bulk-month-options{min-width:360px;right:auto;width:100%;max-width:min(520px,calc(100vw - 64px))}
.bulk-sponsor-project-multi .bulk-month-option span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bulk-research-filter-grid{display:grid;grid-template-columns:minmax(0,1fr);margin-top:14px}
.bulk-research-topic-multi .bulk-month-options{min-width:420px;right:auto;width:100%;max-width:min(620px,calc(100vw - 64px))}
.bulk-research-topic-multi .bulk-month-option span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bulk-month-option[hidden]{display:none}
@media(max-width:680px){.modal.modal-sponsor-session-excel,.modal.modal-research-excel{width:100%}.bulk-sponsor-session-dialog .bulk-budget-filter-grid{grid-template-columns:1fr}.bulk-sponsor-project-multi .bulk-month-options,.bulk-research-topic-multi .bulk-month-options{min-width:0;right:0;width:auto}}
.modal.modal-medical-meeting-excel{width:min(900px,calc(100vw - 32px))}
.bulk-medical-meeting-dialog .bulk-budget-filter-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,.85fr)}
.bulk-medical-meeting-multi .bulk-month-options{min-width:360px;max-height:300px}
@media(max-width:680px){.modal.modal-medical-meeting-excel{width:100%}.bulk-medical-meeting-dialog .bulk-budget-filter-grid{grid-template-columns:1fr}.bulk-medical-meeting-multi .bulk-month-options{min-width:0;right:0;width:auto}}

/* v123 会议资源总览专用 Excel 导出 */
.modal.modal-meeting-overview-excel{width:min(840px,calc(100vw - 32px))}
.bulk-meeting-overview-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.bulk-overview-export-actions{display:flex;justify-content:flex-end;margin-top:18px}
.bulk-overview-export-actions .btn{min-width:148px;height:42px}
@media(max-width:760px){.modal.modal-meeting-overview-excel{width:100%}.bulk-meeting-overview-filter-grid{grid-template-columns:1fr}.bulk-overview-export-actions .btn{width:100%}}

/* v136 人员组织架构专用 Excel 导出 */
.modal.modal-organization-export{width:min(760px,calc(100vw - 32px))}
.org-export-modal{padding:22px;display:flex;flex-direction:column;gap:14px}
.org-export-all{
  width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:14px;
  padding:17px 18px;border:1px solid var(--blue-300);border-radius:11px;background:var(--blue-50);
  color:var(--text);text-align:left;font:inherit;cursor:pointer;transition:.16s ease
}

/* v137 专家参会需求专用 Excel 导出 */
.modal.modal-request-excel{width:min(840px,calc(100vw - 32px))}
.bulk-request-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
@media(max-width:760px){
  .modal.modal-request-excel{width:100%}
  .bulk-request-filter-grid{grid-template-columns:1fr}
  .bulk-request-export-dialog .bulk-overview-export-actions .btn{width:100%}
}
.org-export-all:hover{border-color:var(--blue-600);box-shadow:0 6px 18px rgba(37,99,235,.12);transform:translateY(-1px)}
.org-export-all:focus-visible,.org-export-action:focus-visible{outline:3px solid rgba(37,99,235,.23);outline-offset:2px}
.org-export-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:9px;background:var(--blue-600);color:#fff;font-size:22px}
.org-export-all strong{display:block;color:var(--blue-700);font-size:16px;margin-bottom:4px}
.org-export-all small{display:block;color:var(--text-soft);font-size:12px;line-height:1.5}
.org-export-arrow{color:var(--blue-600);font-size:13px;font-weight:600;white-space:nowrap}
.org-export-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.org-export-action{
  min-height:92px;padding:15px;border:1px solid var(--border);border-radius:10px;background:#fff;
  color:var(--text);text-align:left;font:inherit;cursor:pointer;transition:.15s ease
}
.org-export-action:hover{border-color:var(--blue-400);background:var(--blue-50)}
.org-export-action strong{display:block;color:var(--blue-700);font-size:14px;margin-bottom:7px}
.org-export-action span{display:block;color:var(--text-mute);font-size:12px;line-height:1.5}
@media(max-width:680px){
  .modal.modal-organization-export{width:100%}
  .org-export-modal{padding:17px}
  .org-export-all{grid-template-columns:40px minmax(0,1fr)}
  .org-export-arrow{grid-column:2}
  .org-export-actions{grid-template-columns:1fr}
  .org-export-action{min-height:auto}
}

/* ============================================================
   v140 会议执行与专家资源分析看板
   ============================================================ */
.analytics-control-card{
  display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin:14px 0;
  padding:17px 19px;background:#fff;border:1px solid var(--border);border-radius:12px;
  box-shadow:0 1px 3px rgba(15,23,42,.04)
}
.analytics-control-card h2{margin:0 0 5px;color:var(--text);font-size:17px;line-height:1.35}
.analytics-control-card p{margin:0;color:var(--text-mute);font-size:12px;line-height:1.55}
.analytics-control-groups{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:flex-end;gap:12px 16px}
.analytics-control-group{display:flex;flex-direction:column;gap:6px}
.analytics-control-group>span{color:var(--text-mute);font-size:12px}
.analytics-segments{display:inline-flex;align-items:center;padding:3px;background:#f1f5f9;border-radius:9px}
.analytics-segments button{height:31px;padding:0 11px;border:0;border-radius:7px;background:transparent;color:var(--text-soft);font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}
.analytics-segments button:hover{color:var(--blue-700);background:#fff}
.analytics-segments button.on{color:var(--blue-700);background:#fff;font-weight:600;box-shadow:0 1px 4px rgba(15,23,42,.10)}
.analytics-custom-range{display:flex;align-items:center;gap:7px}
.analytics-custom-range input{height:37px;box-sizing:border-box;padding:0 9px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text);font:inherit}
.analytics-custom-range span{color:var(--text-mute);font-size:12px}
.analytics-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin:14px 0}
.analytics-kpi{min-height:86px;padding:15px 16px;box-sizing:border-box;background:#fff;border:1px solid var(--border);border-radius:11px;box-shadow:0 1px 3px rgba(15,23,42,.035)}
.analytics-kpi span{display:block;color:var(--text-mute);font-size:12px;line-height:1.4}
.analytics-kpi b{display:block;margin-top:6px;color:var(--text);font-size:24px;line-height:1.1}
.analytics-kpi b.green{color:#159455}.analytics-kpi b.blue{color:#2563eb}.analytics-kpi b.purple{color:#7c3aed}.analytics-kpi b.orange{color:#d97706}
.analytics-kpi small{display:block;margin-top:6px;color:#98a2b3;font-size:11px}
.analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.analytics-coverage-grid{margin-top:14px}
.analytics-card{min-width:0;padding:17px 18px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 1px 3px rgba(15,23,42,.035);overflow:hidden}
.analytics-wide{grid-column:1/-1}
.analytics-card-title{margin-bottom:13px;color:var(--text);font-size:15px;font-weight:650;line-height:1.35}
.project-analysis-card{margin-top:14px;padding:18px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 1px 3px rgba(15,23,42,.035)}
.project-analysis-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px;padding-bottom:15px;border-bottom:1px solid #edf1f6}
.project-analysis-header h3{margin:0 0 5px;color:var(--text);font-size:17px;line-height:1.35}
.project-analysis-header p{margin:0;color:var(--text-mute);font-size:12px;line-height:1.55}
.project-analysis-tools{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.project-analysis-tools label{display:flex;align-items:center;gap:7px;color:var(--text-mute);font-size:12px;white-space:nowrap}
.project-analysis-tools select{height:37px;min-width:104px;padding:0 30px 0 10px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text);font:inherit;font-size:12px}
.project-analysis-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:14px}
.project-analysis-metrics.five{grid-template-columns:repeat(5,minmax(0,1fr))}
.project-analysis-metric{min-height:76px;padding:13px 14px;box-sizing:border-box;border:1px solid #e7edf5;border-radius:10px;background:#f8fafc}
.project-analysis-metric span{display:block;color:var(--text-mute);font-size:11px;line-height:1.4}
.project-analysis-metric b{display:block;margin-top:8px;color:var(--text);font-size:20px;line-height:1.1;white-space:nowrap}
.project-analysis-metric.blue{border-color:#bfdbfe;background:#eff6ff}.project-analysis-metric.blue b{color:#2563eb}
.project-analysis-metric.teal{border-color:#99f6e4;background:#f0fdfa}.project-analysis-metric.teal b{color:#0f8b78}
.project-analysis-metric.warn{border-color:#fed7aa;background:#fff7ed}.project-analysis-metric.warn b{color:#d97706}
.project-analysis-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.project-analysis-grid>.analytics-card{box-shadow:none;background:#fbfcfe}
.project-analysis-grid.relation{grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr)}
.project-analysis-detail{grid-column:1/-1;padding:0!important;overflow:hidden}
.project-analysis-detail .analytics-card-title{padding:16px 17px 0}
.project-analysis-detail .mini-table{width:100%;margin:0}
.project-analysis-detail .mini-table th,.project-analysis-detail .mini-table td{padding:10px 12px;font-size:11px}
.project-amount-list{display:grid;gap:10px;max-height:286px;overflow:auto;padding-right:3px}
.project-amount-row{display:grid;grid-template-columns:minmax(86px,130px) minmax(70px,1fr) auto;align-items:center;gap:8px 10px}
.project-amount-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-soft);font-size:12px}
.project-amount-name em{display:inline-block;margin-left:5px;padding:2px 5px;border-radius:999px;background:#fff1e8;color:#d97706;font-style:normal;font-size:9px;vertical-align:1px}
.project-amount-track{display:block;height:9px;overflow:hidden;border-radius:999px;background:#edf2f7}.project-amount-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#60a5fa)}
.project-amount-row b{color:var(--text);font-size:11px;white-space:nowrap}.project-amount-row small{grid-column:2/-1;margin-top:-5px;color:#98a2b3;font-size:10px}
.project-composition-bar{display:flex;height:22px;overflow:hidden;margin:26px 0 20px;border-radius:999px;background:#edf2f7}.project-composition-bar i{display:block;height:100%}
.project-composition-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.project-composition-legend>div{display:grid;grid-template-columns:9px minmax(0,1fr) auto;align-items:center;gap:7px;padding:10px;border:1px solid #e7edf5;border-radius:9px;background:#fff;font-size:11px}
.project-composition-legend i{width:9px;height:9px;border-radius:3px}.project-composition-legend span{color:var(--text-soft)}.project-composition-legend b{color:var(--text);white-space:nowrap}.project-composition-legend small{grid-column:2/-1;color:var(--text-mute)}
.project-office-note{margin:-7px 0 13px;color:var(--text-mute);font-size:10px;line-height:1.5}
.project-office-list{display:grid;gap:12px}.project-office-row{display:grid;grid-template-columns:minmax(72px,110px) minmax(0,1fr) auto;align-items:center;gap:10px;font-size:12px}
.project-office-row>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-soft)}.project-office-row>span:nth-child(2){display:block;height:9px;overflow:hidden;border-radius:999px;background:#edf2f7}.project-office-row i{display:block;height:100%;border-radius:inherit;background:#14b8a6}.project-office-row b{color:var(--text);font-size:11px;white-space:nowrap}
.project-pending-tag{display:inline-block;margin-left:4px;padding:2px 5px;border-radius:999px;background:#fff1e8;color:#d97706;font-size:9px;white-space:nowrap}
.analytics-empty{display:grid;place-items:center;min-height:100px;color:#98a2b3;font-size:12px;text-align:center}
.analytics-donut-wrap{position:relative;display:grid;grid-template-columns:142px minmax(0,1fr);align-items:center;gap:18px;min-height:150px}
.analytics-donut{display:block;width:136px;height:136px;transform:rotate(-90deg)}
.analytics-donut circle{transition:stroke-dasharray .25s ease}
.analytics-donut-center{position:absolute;left:68px;top:75px;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;pointer-events:none}
.analytics-donut-center b{color:var(--text);font-size:23px;line-height:1}.analytics-donut-center span{margin-top:5px;color:var(--text-mute);font-size:11px}
.analytics-legend{display:grid;gap:8px;min-width:0}
.analytics-legend-row{display:grid;grid-template-columns:9px minmax(0,1fr) auto;align-items:center;gap:8px;color:var(--text-soft);font-size:12px}
.analytics-legend-row i,.analytics-inline-legend i{width:8px;height:8px;border-radius:3px}.analytics-legend-row b{color:var(--text)}
.analytics-inline-legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin:-4px 0 12px;color:var(--text-mute);font-size:11px}
.analytics-inline-legend span{display:inline-flex;align-items:center;gap:5px}.analytics-inline-legend i{display:inline-block}
.analytics-hbars{display:grid;gap:10px}.analytics-hbar-row{display:grid;grid-template-columns:minmax(74px,120px) minmax(0,1fr) auto;align-items:center;gap:10px;min-height:24px}
.analytics-hbar-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-soft);font-size:12px}
.analytics-hbar-bars{display:grid;gap:4px}.analytics-hbar-track{display:block;height:8px;overflow:hidden;background:#edf2f7;border-radius:999px}.analytics-hbar-track i{display:block;height:100%;border-radius:inherit;min-width:0}
.analytics-hbar-row>b{min-width:32px;color:var(--text);font-size:12px;text-align:right;white-space:nowrap}
.analytics-trend{display:flex;align-items:flex-end;gap:16px;min-height:190px;padding:8px 4px 0;overflow-x:auto}
.analytics-trend-col{display:grid;grid-template-rows:18px 154px auto;min-width:55px;flex:1;align-items:end;text-align:center}.analytics-trend-col>b{color:var(--text);font-size:11px}
.analytics-trend-stack{display:flex;flex-direction:column-reverse;justify-content:flex-start;width:30px;height:150px;margin:auto;overflow:hidden;border-radius:5px 5px 2px 2px;background:#f4f6f9}.analytics-trend-stack i{display:block;width:100%;min-height:2px}
.analytics-trend-col>span{margin-top:7px;color:var(--text-mute);font-size:10px;white-space:nowrap}
.analytics-stack-rows{display:grid;gap:12px}.analytics-stack-row{display:grid;grid-template-columns:minmax(70px,106px) minmax(0,1fr) 28px;align-items:center;gap:10px;color:var(--text-soft);font-size:12px}
.analytics-stack-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.analytics-stack-row>div{display:flex;height:12px;overflow:hidden;border-radius:999px;background:#edf2f7}.analytics-stack-row>div i{height:100%;min-width:0}.analytics-stack-row>b{text-align:right;color:var(--text)}
.expert-trend{display:flex;align-items:flex-end;gap:18px;min-height:190px;padding:6px 4px 0;overflow-x:auto}
.expert-trend-col{display:grid;grid-template-rows:150px 18px auto;align-items:end;min-width:64px;flex:1;text-align:center}.expert-trend-values{display:flex;align-items:flex-end;justify-content:center;gap:5px;height:146px}.expert-trend-values i{display:block;width:16px;border-radius:4px 4px 1px 1px;background:#2563eb}.expert-trend-values i+ i{background:#8b5cf6}.expert-trend-col>b{font-size:10px;color:var(--text-soft)}.expert-trend-col>span{margin-top:6px;color:var(--text-mute);font-size:10px;white-space:nowrap}
.expert-efficiency{display:grid;gap:11px}.expert-efficiency-row{display:grid;grid-template-columns:minmax(70px,95px) minmax(0,1fr) auto 42px;align-items:center;gap:9px;font-size:12px}.expert-efficiency-row>span{color:var(--text-soft)}.expert-efficiency-row>div{height:10px;overflow:hidden;border-radius:999px;background:#edf2f7}.expert-efficiency-row>div i{display:block;height:100%;border-radius:inherit;background:#14b8a6}.expert-efficiency-row>b{color:var(--text)}.expert-efficiency-row>small{color:var(--text-mute);text-align:right}
.analytics-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.analytics-action-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.analytics-action-grid .analytics-card{padding:0}.analytics-action-grid .analytics-card-title{padding:16px 17px 0}.analytics-action-grid .mini-table{margin:0;width:100%}.analytics-action-grid .mini-table th,.analytics-action-grid .mini-table td{padding:9px 12px;font-size:11px}
.meeting-overview-mini-scroll{max-height:310px;overflow:auto}
@media(max-width:1180px){.analytics-control-card{flex-direction:column}.analytics-control-groups{justify-content:flex-start}.analytics-action-grid-three{grid-template-columns:1fr}.analytics-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.project-analysis-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.analytics-grid,.analytics-action-grid,.project-analysis-grid,.project-analysis-grid.relation{grid-template-columns:1fr}.analytics-wide{grid-column:auto}.analytics-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-donut-wrap{grid-template-columns:125px minmax(0,1fr)}.analytics-donut{width:120px;height:120px}.analytics-donut-center{left:60px}.analytics-control-groups{width:100%}.analytics-control-group{width:100%}.analytics-segments{width:100%;overflow-x:auto}.analytics-segments button{flex:1}.analytics-custom-range{width:100%;flex-wrap:wrap}.analytics-custom-range input{flex:1;min-width:128px}.project-analysis-header{flex-direction:column}.project-analysis-tools{width:100%;justify-content:flex-start}.project-analysis-detail{grid-column:auto}.project-analysis-metrics,.project-analysis-metrics.five{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.analytics-kpi-grid{grid-template-columns:1fr}.analytics-donut-wrap{grid-template-columns:1fr;justify-items:center}.analytics-donut-center{left:50%;top:60px}.analytics-legend{width:100%}.analytics-hbar-row{grid-template-columns:82px minmax(0,1fr) auto}.analytics-card{padding:14px}.analytics-stack-row{grid-template-columns:75px minmax(0,1fr) 24px}.project-analysis-card{padding:14px}.project-analysis-metrics,.project-analysis-metrics.five{grid-template-columns:1fr}.project-analysis-metric{min-height:68px}.project-analysis-tools .analytics-segments{width:100%}.project-analysis-tools label{width:100%}.project-analysis-tools select{flex:1}.project-amount-row{grid-template-columns:minmax(78px,100px) minmax(55px,1fr) auto}.project-composition-legend{grid-template-columns:1fr}}

/* v144 末端覆盖：保证后续看板样式也遵守固定语义色。 */
.analytics-kpi {
  position: relative; overflow: hidden; border-radius: 12px;
  box-shadow: 0 2px 8px rgba(21,52,91,.05);
}
.analytics-kpi::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--blue-600);
}
.analytics-kpi b.green { color: var(--green); }
.analytics-kpi b.blue { color: var(--blue-600); }
.analytics-kpi b.purple { color: var(--purple); }
.analytics-kpi b.orange { color: var(--orange); }
.analytics-card,
.project-analysis-card { box-shadow: 0 2px 8px rgba(21,52,91,.055); }
.expert-trend-values i { background: var(--blue-600); }
.expert-trend-values i + i { background: var(--purple); }
.expert-efficiency-row > div i,
.project-office-row i { background: var(--green); }
.project-amount-track i { background: linear-gradient(90deg,var(--blue-600),#74a0ff); }
.project-analysis-metric.blue { border-color:#c5d7ff; background:var(--blue-50); }
.project-analysis-metric.blue b { color:var(--blue-600); }
.project-analysis-metric.teal { border-color:#b9e3da; background:#f0faf7; }
.project-analysis-metric.teal b { color:var(--green); }
.project-analysis-metric.warn { border-color:#f5d49d; background:var(--orange-bg); }
.project-analysis-metric.warn b { color:var(--orange); }
