/* OA 风格覆盖层：只调整视觉规范，不改变既有业务结构、接口或交互。 */

:root {
  --navy: #123c66;
  --blue: #1769aa;
  --blue-weak: #edf5fc;
  --green: #1b7f5b;
  --red: #c43a31;
  --amber: #a45d00;
  --text: #172b43;
  --muted: #697b90;
  --line: #dbe5ef;
  --bg: #f4f7fb;
  --white: #fff;
  --shadow: 0 4px 18px rgba(26, 58, 88, .07);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: .01em;
}

/* 左侧组织导航 */
.sidebar {
  background: linear-gradient(180deg, #123c66 0%, #0d3156 100%);
  border-right: 1px solid #0b2948;
  padding: 22px 12px;
}

.sidebar-brand { padding: 4px 10px 25px; }
.sidebar-brand strong { font-size: 16px; letter-spacing: .04em; }
.sidebar-brand small { margin-top: 2px; letter-spacing: .04em; }
.brand-mark {
  border-radius: 7px;
  background: linear-gradient(135deg, #1f76b9, #0e4d82);
  box-shadow: 0 4px 12px #061c3159;
}

.main-nav { position: relative; gap: 4px; padding-top: 26px; }
.main-nav::before {
  color: #91b6d8;
  content: "业务中心";
  font-size: 11px;
  font-weight: 700;
  left: 12px;
  letter-spacing: .14em;
  position: absolute;
  top: 3px;
}

.main-nav button {
  border-radius: 6px;
  color: #c8dbea;
  font-weight: 600;
  padding: 11px 12px;
  position: relative;
}

.main-nav button:hover { background: rgba(72, 133, 182, .26); }
.main-nav button.active {
  background: linear-gradient(90deg, #287bbd, #206aab);
  box-shadow: inset 3px 0 0 #80c5f5;
}

.main-nav button.active::after {
  background: #c9ebff;
  border-radius: 50%;
  content: "";
  height: 5px;
  position: absolute;
  right: 10px;
  width: 5px;
}

.sidebar-user {
  border-top-color: #315b81;
  margin: 18px 8px 0;
  padding: 15px 4px 3px;
}

/* 顶部和页面信息层级 */
.topbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 8px rgba(21, 49, 78, .04);
  min-height: 74px;
  padding: 14px 32px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar h2 { color: #1a3653; font-size: 21px; font-weight: 700; }
.eyebrow { color: #6f91af; font-weight: 800; letter-spacing: .13em; }
.page-view { max-width: 1520px; padding: 26px 32px 44px; }

.page-heading {
  border-bottom: 1px solid #e2eaf1;
  margin-bottom: 18px;
  padding: 2px 0 17px;
}

.page-heading h3 { color: #183b5f; font-size: 21px; font-weight: 700; }
.page-heading p { line-height: 1.7; max-width: 780px; }
.heading-actions { gap: 10px; }

/* 按钮、输入框和筛选区 */
.button { border-radius: 5px; font-weight: 700; letter-spacing: .01em; min-height: 34px; padding: 7px 14px; }
.button.primary { background: linear-gradient(135deg, #1d74b6, #155e9d); }
.button.primary:hover { background: #145b98; box-shadow: 0 3px 9px #1d65993d; }
.button.secondary { border-color: #b6cadc; color: #21496d; }
.text-button { color: #1c6ca9; font-weight: 700; }

.content-card,
.filter-card { border-color: #d8e3ed; border-radius: 8px; box-shadow: 0 3px 13px rgba(30, 65, 94, .045); }

.filter-card {
  background: #f9fbfd;
  border-left: 3px solid #4b90c5;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(155px, 1fr)) auto auto;
  padding: 17px 18px;
}

.filter-card label { color: #456078; font-size: 12px; }
.form-stack input,
.filter-card input,
.filter-card select,
.modal-form input,
.modal-form select,
.modal-form textarea {
  border-color: #bdcfdf;
  border-radius: 5px;
  box-shadow: inset 0 1px 2px rgba(18, 60, 102, .025);
  min-height: 36px;
}

.form-stack input:focus,
.filter-card input:focus,
.filter-card select:focus,
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  border-color: #2e83c2;
  box-shadow: 0 0 0 3px rgba(46, 131, 194, .13);
}

/* 工作台、表格和数据密度 */
.welcome-card {
  background: linear-gradient(105deg, #fff 0%, #f0f7fd 100%);
  border-color: #cbddeb;
  border-radius: 8px;
  box-shadow: 0 7px 22px rgba(25, 65, 96, .08);
  padding: 28px 30px;
}

.welcome-card h3 { color: #193d61; font-size: 25px; }
.quick-grid { gap: 14px; }
.quick-card {
  border-radius: 8px;
  box-shadow: 0 3px 13px rgba(30, 65, 94, .05);
  min-height: 118px;
  padding: 19px 20px;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}

.quick-card:hover {
  border-color: #92badd;
  box-shadow: 0 8px 20px rgba(30, 71, 104, .1);
  transform: translateY(-2px);
}

.quick-card b { color: #1b4368; font-size: 16px; }
.table-summary,
.section-title {
  background: linear-gradient(180deg, #fff, #fafcfe);
  border-bottom-color: #dfe8f0;
  color: #204462;
  min-height: 49px;
  padding: 13px 18px;
}

.section-title h4 { font-size: 15px; }
.section-title span { color: #788ca0; font-size: 12px; font-weight: 600; }
.table-scroll { max-height: 610px; }
table { min-width: 820px; }
th {
  background: #f3f7fa;
  border-bottom-color: #d9e5ee;
  color: #516d87;
  font-weight: 800;
  letter-spacing: .03em;
  padding: 10px 14px;
}

td { border-bottom-color: #e7eef4; color: #20384f; padding: 12px 14px; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #f5faff; }
.table-action { font-size: 13px; }

.badge { border: 1px solid transparent; font-size: 11px; line-height: 1.25; padding: 3px 9px; }
.badge.lead { border-color: #cce2f4; }
.badge.following { border-color: #f1dca5; }
.badge.contracted { border-color: #bfe5d1; }
.badge.dormant,
.badge.lost,
.badge.void { border-color: #e5d1d9; }
.pagination { background: #fbfcfd; padding: 14px 18px; }
.pagination button { border-color: #c5d4e1; border-radius: 4px; font-weight: 700; }

/* 详情、时间线、预警与弹窗 */
.detail-grid { gap: 14px; }
.detail-field {
  border-radius: 7px;
  border-top: 3px solid #d9e8f4;
  box-shadow: 0 2px 10px rgba(28, 67, 100, .045);
  padding: 15px 17px;
}

.detail-field small { color: #668097; font-size: 12px; }
.detail-field span { color: #1b3652; font-size: 14px; }
.timeline { padding: 8px 20px; }
.timeline-item { border-left-color: #b9d5e9; }
.timeline-item::before { background: #287bbb; box-shadow: 0 0 0 3px #e6f2fb; }
.project-row { padding: 14px 18px; }
.callout { background: #edf6fd; border-left-width: 4px; border-radius: 5px; }
.drop-zone { background: #fbfdff; border-radius: 7px; }

.workbench-alerts { border-left: 3px solid #db9b32; }
.workbench-alert-item { padding: 14px 18px; }
.workbench-alert-item.severe { background: #fffafa; border-left-width: 4px; }

.modal-head { background: #f6f9fc; padding: 16px 20px; }
.modal-form { gap: 16px; padding: 21px; }
.modal-form label { font-size: 13px; }
.modal-form .modal-actions { padding-top: 9px; }

.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-grid > .content-card:last-child { grid-column: 1 / -1; }
.admin-subtitle { margin-top: 4px; border-top: 1px solid var(--line); }
.admin-list { padding: 0 20px 18px; }
.admin-list-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.admin-list-row span { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.admin-task-list { display: flex; flex-wrap: wrap; gap: 12px; padding: 18px 20px 22px; }

@media (max-width: 960px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-grid > .content-card:last-child { grid-column: auto; }
}

/* 报表 */
.report-metrics { gap: 14px; }
.report-metric { border-radius: 8px; border-top: 3px solid #82b5d9; box-shadow: 0 3px 12px rgba(31, 71, 104, .05); }
.report-metric strong { font-size: 27px; }
.report-grid { gap: 18px; }
.report-line { padding: 13px 1px; }

@media (max-width: 960px) {
  .page-view { padding: 21px; }
  .topbar { padding: 14px 21px; }
  .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-card { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}

@media (max-width: 600px) {
  .page-view { padding: 16px 13px; }
  .topbar { padding: 12px 14px; }
  .topbar h2 { font-size: 18px; }
  .filter-card,
  .report-metrics { grid-template-columns: 1fr; }
  .page-heading { gap: 12px; }
  .button { width: 100%; }
}

/* 客户导入详情：作为独立审核页展示文件、查重提示与逐行客户数据。 */
.import-detail-page { margin: 0; }
.import-detail-page.hidden { display: none; }
.visually-hidden { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.import-detail-shell { display: grid; gap: 16px; }
.import-detail-page-head { align-items: flex-start; display: flex; justify-content: space-between; gap: 24px; padding: 4px 2px 0; }
.import-back-link { background: transparent; border: 0; color: #0d70d7; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; padding: 0 0 8px; }
.import-back-link:hover { color: #0757aa; text-decoration: underline; }
.import-detail-title { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.import-detail-title h3 { color: #15395f; font-size: 23px; letter-spacing: -.02em; margin: 0; }
.import-detail-page-head p { color: #7388a2; font-size: 13px; margin: 5px 0 0; }
.import-raw-jump { flex: none; margin-top: 9px; }
.import-file-overview { align-items: stretch; background: linear-gradient(112deg, #fff 0%, #f6faff 100%); border: 1px solid #e2ebf4; border-radius: 10px; display: grid; grid-template-columns: minmax(270px, .82fr) minmax(0, 2.7fr); overflow: hidden; }
.import-file-identity { align-items: center; border-right: 1px solid #dce8f3; display: flex; gap: 15px; padding: 22px; }
.import-file-excel { align-items: center; background: linear-gradient(145deg, #0bb161, #087849); border-radius: 9px 17px 9px 17px; box-shadow: 0 7px 16px rgba(8, 123, 73, .18); color: #fff; display: flex; flex: none; font-size: 20px; font-weight: 800; height: 50px; justify-content: center; width: 42px; }
.import-file-identity strong { color: #173c63; font-size: 15px; overflow-wrap: anywhere; }
.import-file-identity p { color: #65809c; font-size: 12px; line-height: 1.65; margin: 5px 0 0; }
.import-file-summary { background: transparent; border: 0; border-radius: 0; margin: 0; }
.import-file-summary > div { align-content: center; padding: 16px 20px; }
.import-file-summary strong { color: #173c63; font-size: 17px; }
.import-file-summary .import-status { font-size: 13px; }
.import-file-review-result { align-items: center; border: 1px solid; border-radius: 8px; display: flex; gap: 14px; min-height: 80px; padding: 14px 20px; }
.import-file-review-result.approved { background: linear-gradient(100deg, #edfff7, #f7fffb); border-color: #9ee2c4; color: #176f4c; }
.import-file-review-result.rejected { background: #fff7f6; border-color: #f1c2bd; color: #a63e36; }
.import-file-review-result.pending { background: #f2f8ff; border-color: #bbd8f6; color: #2569a4; }
.import-result-icon, .import-row-review-result > span { align-items: center; border-radius: 50%; display: flex; flex: none; font-size: 18px; font-weight: 800; height: 35px; justify-content: center; width: 35px; }
.approved .import-result-icon, .import-row-review-result.approved > span { background: #17aa68; color: #fff; }
.rejected .import-result-icon, .import-row-review-result.rejected > span { background: #d8534b; color: #fff; }
.pending .import-result-icon { background: #2c8ce6; color: #fff; }
.import-file-review-result strong { color: currentColor; font-size: 14px; }
.import-file-review-result p { color: #5f7890; font-size: 12px; margin: 5px 0 0; }
.import-file-review-result time { color: #6a839b; font-size: 12px; margin-left: auto; white-space: nowrap; }
.import-detail-item { background: #fff; border: 1px solid #e1eaf3; border-radius: 10px; box-shadow: 0 5px 18px rgba(34, 77, 118, .045); margin: 0; overflow: hidden; padding: 0; }
.import-detail-item-head { align-items: center; border-bottom: 1px solid #e5edf5; display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; }
.import-detail-item-head h5 { color: #173d66; font-size: 15px; margin: 0; }
.import-detail-item-head h5 small { color: #7990a6; font-size: 12px; font-weight: 500; margin-left: 6px; }
.import-row-controls { align-items: center; color: #6d86a0; display: flex; font-size: 12px; gap: 10px; }
.import-row-controls select { min-width: 122px; }
.import-detail-item > .error-text, .import-detail-item > .review-duplicate-hint, .import-detail-item > .import-row-review-result, .import-detail-item > .import-review-row-comment, .import-detail-item > .import-raw-payload { margin-left: 18px; margin-right: 18px; }
.import-detail-item > .error-text { margin-top: 13px; }
.review-duplicate-hint { align-items: center; background: linear-gradient(100deg, #fffaf0, #fffdf9); border-color: #f2cf88; border-radius: 8px; display: flex; gap: 18px; justify-content: space-between; margin-top: 14px; padding: 13px 16px; }
.review-duplicate-hint strong { color: #a36308; font-size: 14px; }
.review-duplicate-hint li { flex-wrap: wrap; }
.review-duplicate-hint li span { color: #846b3d; }
.duplicate-customer-button { flex: none; font-size: 12px; white-space: nowrap; }
.import-data-card { border-top: 1px solid #e4edf5; margin-top: 14px; padding: 0 18px 18px; }
.import-data-card h6 { color: #1a4e80; font-size: 15px; margin: 14px 0; }
.import-data-card .review-grid { gap: 12px 34px; }
.import-data-card .review-grid label { color: #526e8a; font-size: 12px; font-weight: 700; }
.import-data-card .review-grid input, .import-data-card .review-grid select { background: #fbfdff; border-color: #cdddec; color: #28496b; min-height: 36px; }
.import-data-card .review-grid input:disabled, .import-data-card .review-grid select:disabled { background: #f5f8fb; color: #425e7b; opacity: 1; }
.import-row-review-result { align-items: center; background: linear-gradient(100deg, #edfff7, #f9fffc); border: 1px solid #9de1c3; border-radius: 8px; display: flex; gap: 14px; margin-bottom: 18px; margin-top: 18px; padding: 13px 18px; }
.import-row-review-result.rejected { background: #fff8f7; border-color: #efc2be; }
.import-row-review-result strong { color: #18714d; font-size: 14px; }
.import-row-review-result.rejected strong { color: #a43b34; }
.import-row-review-result em { background: #d7f8e8; border-radius: 5px; color: #168253; font-size: 12px; font-style: normal; padding: 2px 8px; }
.import-row-review-result.rejected em { background: #ffe7e4; color: #ba4139; }
.import-row-review-result p { color: #647f98; font-size: 12px; margin: 5px 0 0; }
.import-detail-item > .import-raw-payload { border-top: 1px solid #e5edf5; margin-bottom: 0; margin-top: 0; padding: 15px 0; }
.import-detail-item > .import-raw-payload summary { color: #1e5e99; }

@media (max-width: 1000px) {
  .import-file-overview { grid-template-columns: 1fr; }
  .import-file-identity { border-bottom: 1px solid #dce8f3; border-right: 0; }
}
@media (max-width: 760px) {
  .import-detail-page-head, .review-duplicate-hint { align-items: flex-start; flex-direction: column; }
  .import-file-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .import-file-summary > div { border-bottom: 1px solid #dce8f0; }
  .import-file-review-result { align-items: flex-start; flex-wrap: wrap; }
  .import-file-review-result time { margin-left: 49px; white-space: normal; }
  .import-detail-item-head { align-items: flex-start; flex-direction: column; }
  .import-data-card .review-grid { gap: 10px; }
}


/* 工作台升级：让首页承担业务总览，而不只是功能入口。 */
.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.dashboard-stat {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  padding: 18px 20px;
  border: 1px solid #d8e3ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 13px rgba(30, 65, 94, .05);
}

.dashboard-stat::after {
  position: absolute;
  right: -18px;
  bottom: -25px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #edf6fd;
  content: "";
}

.dashboard-stat:nth-child(2)::after { background: #fff5df; }
.dashboard-stat:nth-child(3)::after { background: #eaf6f0; }
.dashboard-stat:nth-child(4)::after { background: #f1edf8; }
.dashboard-stat .stat-label { display: block; color: #58728d; font-size: 13px; font-weight: 700; }
.dashboard-stat strong { position: relative; z-index: 1; display: block; margin-top: 5px; color: #173e64; font-size: 30px; line-height: 1.15; }
.dashboard-stat small { position: relative; z-index: 1; display: block; margin-top: 7px; color: #8a9bad; font-size: 12px; }

.dashboard-lower {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-panel { min-width: 0; }
.dashboard-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #e8eef3; }
.dashboard-action { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 15px 16px; border: 0; background: #fff; color: var(--text); text-align: left; cursor: pointer; transition: background .15s; }
.dashboard-action:hover { background: #f4f9fd; }
.dashboard-action .action-icon { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: #eaf4fb; color: #1a69a5; font-size: 13px; font-weight: 800; }
.dashboard-action:nth-child(2) .action-icon { background: #fff5df; color: #986000; }
.dashboard-action:nth-child(3) .action-icon { background: #eaf6f0; color: #17704f; }
.dashboard-action:nth-child(4) .action-icon { background: #f1edf8; color: #69518e; }
.dashboard-action > span:nth-child(2) { min-width: 0; }
.dashboard-action b, .dashboard-action small { display: block; }
.dashboard-action b { color: #21486b; font-size: 13px; }
.dashboard-action small { overflow: hidden; margin-top: 2px; color: #8798aa; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-action i { margin-left: auto; color: #a5b5c2; font-size: 22px; font-style: normal; }

.dashboard-note .note-body { display: flex; gap: 12px; padding: 20px 18px 15px; }
.note-mark { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #eaf4fb; color: #1a69a5; font-weight: 800; }
.note-body b { color: #21486b; font-size: 14px; }
.note-body p { margin: 6px 0 0; color: #73869a; font-size: 12px; line-height: 1.7; }
.dashboard-meta { display: flex; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid #edf1f4; color: #8a9bad; font-size: 12px; }
.dashboard-meta b { color: #4d6880; font-weight: 700; }
.dashboard-meta .status-online { color: #20805b; }

.quick-grid { margin-top: 0; }
.quick-card { position: relative; }
.quick-card::after { position: absolute; right: 18px; bottom: 15px; color: #a1b3c1; content: "→"; font-size: 18px; }

@media (max-width: 960px) {
  .dashboard-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-lower { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .dashboard-summary { grid-template-columns: 1fr 1fr; gap: 9px; }
  .dashboard-stat { min-height: 104px; padding: 14px; }
  .dashboard-stat strong { font-size: 25px; }
  .dashboard-actions { grid-template-columns: 1fr; }
}

/* 业务 OA 视觉升级：统一桌面端中文字体、信息层级和数据操作密度。 */
:root {
  --oa-navy: #123a61;
  --oa-blue: #196fb2;
  --oa-blue-hover: #105d9b;
  --oa-blue-soft: #edf6fd;
  --oa-canvas: #f3f6fa;
  --oa-card: #ffffff;
  --oa-text: #1b2d42;
  --oa-secondary: #5f7185;
  --oa-border: #d9e3ed;
  --oa-border-light: #e9eef4;
  --oa-shadow: 0 8px 24px rgba(31, 61, 91, .055);
}

body {
  background: var(--oa-canvas);
  color: var(--oa-text);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea { font-family: inherit; }

.app-shell { grid-template-columns: 248px minmax(0, 1fr); }

.sidebar {
  background: linear-gradient(180deg, #163f68 0%, #0d2f52 100%);
  border-right: 0;
  box-shadow: 2px 0 18px rgba(17, 47, 78, .12);
  padding: 24px 13px 18px;
}

.sidebar-brand {
  align-items: center;
  border-bottom: 1px solid rgba(210, 231, 248, .16);
  margin: 0 7px;
  padding: 0 2px 21px;
}

.sidebar-brand strong { color: #fff; font-size: 16px; letter-spacing: .02em; }
.sidebar-brand small { color: #a9c4db; font-size: 12px; }
.sidebar .brand-mark {
  border: 1px solid rgba(170, 220, 255, .28);
  border-radius: 8px;
  box-shadow: 0 5px 14px rgba(1, 23, 44, .28);
}

.main-nav { gap: 5px; padding-top: 29px; }
.main-nav::before { color: #92b8d7; font-size: 11px; letter-spacing: .16em; }
.main-nav button {
  border-radius: 6px;
  color: #c2d6e7;
  font-size: 14px;
  font-weight: 600;
  min-height: 43px;
  padding: 10px 12px;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.main-nav button:hover { background: rgba(82, 146, 195, .22); color: #fff; }
.main-nav button.active {
  background: linear-gradient(90deg, #2b81c2, #226da9);
  box-shadow: inset 3px 0 0 #98d5ff, 0 4px 11px rgba(6, 31, 55, .15);
  color: #fff;
}
.main-nav button span { color: #b8d8ee; font-size: 16px; }
.main-nav button.active span { color: #fff; }

.sidebar-user {
  background: rgba(3, 26, 48, .18);
  border-top: 1px solid rgba(193, 222, 243, .16);
  border-radius: 6px;
  margin: auto 4px 0;
  padding: 13px 11px 11px;
}
.sidebar-user span { color: #e0edf7; font-weight: 600; }
.sidebar-user .text-button { color: #a9c9e2; font-weight: 500; }

.topbar {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #dde6ee;
  box-shadow: 0 2px 10px rgba(32, 61, 88, .035);
  min-height: 82px;
  padding: 16px 34px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .eyebrow { color: #6a8eae; font-size: 10px; letter-spacing: .13em; }
.topbar h2 { color: #1b3855; font-size: 21px; font-weight: 700; letter-spacing: .01em; }
.global-message {
  background: #edf8f3;
  border: 1px solid #ccebd9;
  border-radius: 5px;
  font-size: 12px;
  max-width: 430px;
  padding: 6px 10px;
}
.global-message.error { background: #fff3f2; border-color: #f1ceca; }

.page-view { max-width: 1600px; padding: 28px 34px 48px; }
.page-heading {
  align-items: center;
  border-bottom: 1px solid var(--oa-border-light);
  margin-bottom: 19px;
  padding-bottom: 17px;
}
.page-heading h3 { color: #173956; font-size: 21px; font-weight: 700; letter-spacing: .01em; }
.page-heading h3::before {
  background: var(--oa-blue);
  border-radius: 2px;
  content: "";
  display: inline-block;
  height: 18px;
  margin: 0 9px 0 0;
  vertical-align: -3px;
  width: 4px;
}
.page-heading p { color: #74869a; font-size: 13px; margin-top: 6px; }
.heading-actions { gap: 9px; }

.button {
  align-items: center;
  border-radius: 5px;
  display: inline-flex;
  gap: 5px;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.button.primary {
  background: linear-gradient(180deg, #247dbd, #1769aa);
  box-shadow: 0 3px 8px rgba(21, 97, 157, .16);
}
.button.primary:hover { background: linear-gradient(180deg, #1f73b1, #105d9b); box-shadow: 0 4px 11px rgba(21, 97, 157, .22); }
.button.secondary { background: #fff; border-color: #b9cee0; color: #285575; }
.button.secondary:hover { background: #f3f8fc; border-color: #87b3d1; }
.button.ghost { color: #61768a; }
.button.danger { background: linear-gradient(180deg, #d8554a, #c33f35); }
.button:active { transform: translateY(1px); }

.content-card,
.filter-card {
  background: var(--oa-card);
  border: 1px solid var(--oa-border);
  border-radius: 8px;
  box-shadow: var(--oa-shadow);
}

.filter-card {
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  border-left: 3px solid #8db9dc;
  gap: 13px;
  margin-bottom: 18px;
  padding: 16px 18px 17px;
}
.filter-card label { color: #49627a; font-size: 12px; font-weight: 700; }
.filter-card input,
.filter-card select,
.modal-form input,
.modal-form select,
.modal-form textarea,
.form-stack input {
  border-color: #c9d7e3;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(24, 53, 79, .02);
  color: #20364c;
  min-height: 34px;
  padding: 7px 10px;
}
.filter-card input::placeholder,
.modal-form input::placeholder,
.modal-form textarea::placeholder { color: #a4b1be; }
.filter-card input:focus,
.filter-card select:focus,
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus,
.form-stack input:focus {
  border-color: #4c99d1;
  box-shadow: 0 0 0 3px rgba(58, 143, 205, .14);
}

.table-card { box-shadow: var(--oa-shadow); }
.table-summary,
.section-title {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-bottom: 1px solid #dfe8f0;
  min-height: 52px;
  padding: 14px 18px;
}
.section-title h4 { color: #214360; font-size: 15px; font-weight: 700; }
.section-title h4::before {
  background: #5b98c8;
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 6px;
  margin: 0 8px 2px 0;
  width: 6px;
}
.section-title span { color: #8293a4; font-size: 12px; font-weight: 500; }
.table-scroll { max-height: 640px; }
table { font-size: 13px; min-width: 880px; }
th {
  background: #f2f6f9;
  border-bottom: 1px solid #d7e2eb;
  color: #526d85;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .025em;
  padding: 11px 15px;
  position: sticky;
  top: 0;
  z-index: 1;
}
td { border-bottom-color: #e9eef3; color: #263d52; padding: 13px 15px; }
tbody tr:hover { background: #f4f9fd; }
tbody tr:hover .table-action { color: #0f679f; }
.table-action { color: #2873aa; font-weight: 600; }
.pagination { background: #fbfcfd; border-top: 1px solid #edf1f5; padding: 13px 18px; }

.badge {
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.35;
  padding: 3px 9px;
}
.badge.lead { background: #eaf4fd; border-color: #c9e1f4; color: #2670a8; }
.badge.following { background: #fff7e6; border-color: #f1ddaa; color: #a26900; }
.badge.contracted { background: #eaf7f0; border-color: #c3e8d2; color: #16805a; }
.badge.dormant,.badge.lost,.badge.void { background: #f7eff2; border-color: #e9d3dc; color: #91546c; }

.welcome-card {
  border-color: #cddfec;
  border-radius: 9px;
  box-shadow: 0 9px 22px rgba(27, 69, 103, .07);
  min-height: 146px;
  overflow: hidden;
  padding: 29px 30px;
  position: relative;
}
.welcome-card::after {
  background: radial-gradient(circle, rgba(72, 151, 207, .12), transparent 67%);
  content: "";
  height: 240px;
  pointer-events: none;
  position: absolute;
  right: -46px;
  top: -82px;
  width: 240px;
}
.welcome-card > * { position: relative; z-index: 1; }
.welcome-card h3 { color: #1d4a72; font-size: 25px; }
.welcome-card p:not(.eyebrow) { max-width: 720px; }
.welcome-actions { align-self: flex-start; padding-top: 10px; }

.dashboard-summary { gap: 16px; margin: 19px 0; }
.dashboard-stat {
  border-color: #d9e4ed;
  border-radius: 8px;
  box-shadow: var(--oa-shadow);
  min-height: 122px;
  padding: 19px 20px;
}
.dashboard-stat::before {
  background: #438ec5;
  border-radius: 4px;
  content: "";
  height: 30px;
  left: 20px;
  opacity: .1;
  position: absolute;
  top: 18px;
  width: 4px;
}
.dashboard-stat .stat-label { color: #5b748b; font-size: 12px; padding-left: 11px; }
.dashboard-stat strong { color: #193f62; font-size: 31px; font-variant-numeric: tabular-nums; }
.dashboard-stat small { color: #899bad; }
.dashboard-lower { gap: 18px; margin-bottom: 19px; }
.dashboard-panel { box-shadow: var(--oa-shadow); }
.dashboard-action { min-height: 73px; padding: 15px 17px; }
.dashboard-action:hover { background: #f2f8fc; }
.dashboard-note .note-body { padding: 21px 19px 17px; }
.dashboard-meta { background: #fbfcfd; }

.quick-grid { gap: 16px; }
.quick-card {
  border-color: #dbe5ed;
  border-radius: 8px;
  box-shadow: var(--oa-shadow);
  min-height: 122px;
  padding: 20px;
}
.quick-card:hover { border-color: #8db7d7; box-shadow: 0 9px 21px rgba(30, 69, 101, .10); }
.quick-card b { color: #214866; font-size: 15px; }
.quick-card span { color: #77899a; font-size: 13px; }

.detail-grid { gap: 15px; }
.detail-field {
  border: 1px solid #dce6ee;
  border-top: 3px solid #9bc4e2;
  border-radius: 7px;
  box-shadow: 0 4px 13px rgba(29, 65, 95, .045);
  padding: 15px 17px;
}
.detail-field small { color: #668198; font-size: 12px; }
.detail-field span { color: #1d3b57; font-weight: 600; }
.timeline { padding: 8px 21px; }
.timeline-item { border-left-color: #bad6e9; }
.timeline-item::before { background: #2b7eb9; box-shadow: 0 0 0 3px #e4f1fa; }
.timeline-meta { color: #7c8f9f; }
.project-row { padding: 14px 18px; }
.project-row:hover { background: #f7fbfe; }

.workbench-alerts { border-left: 3px solid #d59a2d; box-shadow: var(--oa-shadow); }
.workbench-alert-item { padding: 14px 18px; }
.workbench-alert-item.severe { background: #fffafa; border-left: 4px solid #cf564b; }

dialog { border: 1px solid #ccd9e4; border-radius: 10px; box-shadow: 0 24px 72px rgba(9, 35, 59, .28); }
dialog::backdrop { backdrop-filter: blur(2px); background: rgba(13, 38, 62, .42); }
.modal-head { background: linear-gradient(180deg, #fbfdfe, #f4f8fb); border-bottom-color: #dce6ee; padding: 17px 21px; }
.modal-head h3 { color: #1d4263; font-size: 17px; }
.modal-message { background: #eff7ff; border-left: 3px solid #2f84c6; color: #28597d; font-size: 13px; font-weight: 600; line-height: 1.5; margin: 14px 21px 0; padding: 9px 11px; }
.modal-message.error { background: #fff1f0; border-left-color: #d95a4e; color: #a33c35; }
.modal-form { gap: 16px; padding: 22px; }
.modal-form label { color: #49627a; font-size: 12px; }
.modal-form .modal-actions { border-top: 1px solid #edf1f5; margin-top: 2px; padding-top: 14px; }
.modal-note { color: #718598; font-size: 12px; }

/* 工作台审批中心：客户导入与项目申请以页签分开展示。 */
.approval-center { min-width: min(680px, 78vw); padding: 20px; }
.approval-center-tabs { display: flex; gap: 8px; border-bottom: 1px solid #dbe6ee; margin-bottom: 16px; }
.approval-center-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: #667e92; cursor: pointer; font-weight: 700; padding: 9px 12px; }
.approval-center-tabs button.active { border-bottom-color: #1976bd; color: #17629b; }
.approval-center-tabs span { background: #eaf3fa; border-radius: 10px; font-size: 11px; margin-left: 4px; padding: 1px 6px; }
.approval-center-note { color: #718397; font-size: 12px; margin: 0 0 12px; }
.approval-center-list { display: grid; gap: 9px; }
.approval-center-row { align-items: center; background: #fbfdff; border: 1px solid #dce8f0; border-radius: 7px; display: flex; justify-content: space-between; padding: 12px 14px; }
.approval-center-row strong { color: #1e4868; font-size: 14px; }
.approval-center-row p { color: #6b8193; font-size: 12px; margin: 5px 0 0; }
.approval-center-row small { color: #55718a; line-height: 1.7; text-align: right; }
.approval-center-actions { align-items: flex-end; display: grid; gap: 8px; justify-items: end; }
.approval-center-actions .button { font-size: 12px; padding: 5px 9px; }
.approval-center-empty { background: #f7fafc; border: 1px dashed #cbdbe7; border-radius: 7px; color: #718397; padding: 22px; text-align: center; }
.import-review-modal { min-height: 0; overflow: auto; padding: 20px 24px; }
.import-review-summary { background: #f7fbfe; border: 1px solid #d6e6f1; border-radius: 8px; display: grid; gap: 0; grid-template-columns: repeat(5, minmax(100px, 1fr)); margin-bottom: 16px; overflow: hidden; }
.import-review-summary > div { border-right: 1px solid #dce8f0; min-width: 0; padding: 10px 12px; }
.import-review-summary > div:last-child { border-right: 0; }
.import-review-summary small { color: #70869a; display: block; font-size: 11px; margin-bottom: 3px; }
.import-review-summary strong { color: #214d70; display: block; font-size: 13px; overflow-wrap: anywhere; }
.import-review-history { background: #fffdf7; border-top: 1px solid #e8e1cb; color: #6f6040; grid-column: 1 / -1; padding: 9px 12px; }
.import-review-history strong { color: #765d24; display: inline; margin-right: 8px; }
.import-review-history span { font-size: 12px; }
.import-review-row { margin-bottom: 12px; }
.import-review-row-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 10px; }
.import-review-row-head h5 { color: #244f70; margin: 0; }
.import-review-row-head h5 small { color: #8294a5; font-size: 11px; font-weight: 400; }
.import-review-status { background: #edf5fa; border-radius: 99px; color: #45647d; font-size: 12px; font-weight: 700; padding: 3px 9px; }
.import-review-status.pending { background: #eef6ff; color: #2775ba; }
.import-review-status.rejected { background: #fff0ef; color: #b23f39; }
.import-system-fields { background: #f8fafc; border: 1px solid #e2eaf0; border-radius: 6px; margin-top: 11px; padding: 10px; }
.import-system-title { color: #61798d; font-size: 11px; font-weight: 700; margin-bottom: 7px; }
.import-system-grid { display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.import-system-grid label { color: #74899a; display: grid; font-size: 11px; gap: 4px; }
.import-system-grid input { background: #eef3f7; border: 1px solid #d7e2ea; border-radius: 4px; color: #536c80; min-width: 0; padding: 5px 7px; }
.review-grid .import-system-inline { border-top: 2px solid #91bfdf; color: #637c90; padding-top: 8px; }
.review-grid .import-system-inline input { background: #eef3f7; color: #536c80; }
.import-review-comment { color: #49627a; display: grid; font-size: 12px; gap: 6px; margin-top: 16px; }
.import-review-row-comment { color: #49627a; display: grid; font-size: 12px; font-weight: 700; gap: 5px; margin-top: 11px; }
.import-review-row-comment textarea, .import-review-comment textarea { border: 1px solid #c7d7e5; border-radius: 5px; min-height: 60px; padding: 8px; resize: vertical; }
.import-review-result { background: #f7fafc; color: #5e7286; font-size: 12px; margin: 11px 0 0; padding: 8px 10px; }
.review-duplicate-hint { background: #fff9ed; border: 1px solid #f1ddb0; border-radius: 6px; color: #805d17; font-size: 12px; margin: 0 0 10px; padding: 9px 11px; }
.import-item-rejected { background: linear-gradient(90deg, #fff7f6, #fff); border-color: #efbcb7; box-shadow: inset 4px 0 0 #dc625a; }
.import-row-rejected-notice { align-items: center; background: #fff0ef; border: 1px solid #f2c6c1; border-radius: 7px; color: #9e3933; display: flex; flex-wrap: wrap; font-size: 13px; gap: 10px; margin: 0 0 12px; padding: 10px 12px; }
.import-row-rejected-notice strong::before { align-items: center; background: #dc625a; border-radius: 50%; color: #fff; content: "!"; display: inline-flex; font-size: 11px; height: 17px; justify-content: center; margin-right: 7px; width: 17px; }

/* 客户文件审核：内容区独立滚动，底部决策始终可见。 */
dialog:has(.import-review-shell) { border: 0; border-radius: 14px; max-width: 1180px; overflow: hidden; width: min(96vw, 1180px); }
dialog:has(.import-review-shell) #modalBody { display: flex; flex-direction: column; height: min(78vh, 900px); overflow: hidden; }
.import-review-shell { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.import-review-shell .import-review-modal { flex: 1 1 auto; }
.import-review-decision-bar { align-items: center; background: #fff; border-top: 1px solid #e1eaf1; display: flex; gap: 18px; justify-content: space-between; padding: 15px 24px 17px; }
.import-review-decision-bar p { color: #71879b; font-size: 12px; line-height: 1.5; margin: 0; max-width: 520px; }
.import-review-decision-bar > div { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.import-review-decision-bar .button { min-width: 108px; }
.import-review-reject { background: #fff; border: 1px solid #e68e87; color: #bd453d; }
.import-review-reject:hover { background: #fff3f2; border-color: #d75f57; color: #a83630; }
@media (max-width: 700px) { .import-review-modal { padding: 16px; }.import-review-decision-bar { align-items: stretch; flex-direction: column; padding: 13px 16px; }.import-review-decision-bar > div { justify-content: stretch; }.import-review-decision-bar .button { flex: 1; }.import-row-rejected-notice { align-items: flex-start; flex-direction: column; gap: 5px; } }
.review-duplicate-hint strong, .review-duplicate-hint span { display: block; }
.review-duplicate-hint ul { display: grid; gap: 3px; list-style: none; margin: 7px 0; padding: 0; }
.review-duplicate-hint li { align-items: baseline; display: flex; gap: 8px; }
.review-duplicate-hint li span { color: #8c7651; }
.import-raw-payload { color: #5d7488; font-size: 12px; margin-top: 12px; }
.import-raw-payload summary { cursor: pointer; font-weight: 700; width: max-content; }
.import-raw-payload dl { display: grid; gap: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0 0; }
.import-raw-payload dl > div { background: #f8fafc; border: 1px solid #e2eaf0; min-width: 0; padding: 6px 8px; }
.import-raw-payload dt { color: #71879a; font-weight: 700; }
.import-raw-payload dd { color: #38536c; margin: 2px 0 0; overflow-wrap: anywhere; }
@media(max-width:760px) { .import-review-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .import-review-summary > div:nth-child(2n) { border-right: 0; } .import-raw-payload dl { grid-template-columns: 1fr; } }
@media(max-width:760px) { .import-system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.callout { border-left-width: 4px; border-radius: 5px; color: #315a78; }
.drop-zone { border-radius: 8px; min-height: 138px; transition: background .16s ease, border-color .16s ease; }
.drop-zone:hover { background: #f0f8fd; border-color: #428fc6; }
.empty { color: #8595a5; font-size: 13px; padding: 37px 20px; }
.empty::before { color: #a9c2d5; content: "—"; display: block; font-size: 19px; line-height: 1; margin-bottom: 7px; }

@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { padding: 13px 18px; }
  .sidebar-brand { border-bottom: 0; margin: 0; padding-bottom: 11px; }
  .main-nav { padding-top: 5px; }
  .main-nav::before { display: none; }
  .topbar { padding: 14px 22px; }
  .page-view { padding: 22px; }
}

@media (max-width: 600px) {
  .page-view { padding: 17px 13px 32px; }
  .topbar { min-height: 66px; padding: 12px 14px; }
  .topbar h2 { font-size: 18px; }
  .page-heading { align-items: flex-start; }
  .page-heading h3 { font-size: 18px; }
  .page-heading h3::before { height: 16px; width: 3px; }
  .filter-card { border-left-width: 2px; padding: 13px; }
  .button { width: 100%; }
  .dashboard-stat { min-height: 106px; padding: 15px; }
  .dashboard-stat::before { left: 15px; top: 14px; }
  .dashboard-stat .stat-label { padding-left: 9px; }
}

/* CRM visual refinement: calmer OA palette, clearer business status, less decorative chrome. */
:root {
  --oa-navy: #163f68;
  --oa-blue: #1769aa;
  --oa-blue-hover: #105d9b;
  --oa-blue-soft: #eef6fd;
  --oa-canvas: #f4f7fa;
  --oa-text: #1f3448;
  --oa-secondary: #718397;
  --oa-border: #d9e3ec;
  --oa-border-light: #e9eef4;
  --oa-shadow: 0 4px 16px rgba(31, 61, 91, .045);
}

body { background: var(--oa-canvas); color: var(--oa-text); }
.sidebar { background: #163f68; box-shadow: 2px 0 14px rgba(17, 47, 78, .09); }
.main-nav button.active { background: #2476b5; box-shadow: inset 3px 0 0 #a7dcff; }
.topbar { box-shadow: 0 1px 5px rgba(32, 61, 88, .025); }
.content-card, .filter-card, .dashboard-stat, .quick-card, .detail-field { box-shadow: var(--oa-shadow); }
.button.primary { background: var(--oa-blue); box-shadow: 0 2px 6px rgba(21, 97, 157, .12); }
.button.primary:hover { background: var(--oa-blue-hover); box-shadow: 0 3px 8px rgba(21, 97, 157, .16); }
.button.secondary { color: #285575; }
.page-heading h3 { color: #173956; }
.page-heading p, .modal-note, .section-title span { color: #718397; }

/* Status badges: each business state must be recognizable at a glance. */
.badge.lead { background: #edf6fd; border-color: #c9e1f4; color: #2670a8; }
.badge.following { background: #fff7e6; border-color: #f0dca9; color: #9b6507; }
.badge.contracted { background: #eaf7f0; border-color: #c3e8d2; color: #16805a; }
.badge.dormant { background: #f1eef8; border-color: #ddd3ed; color: #69518e; }
.badge.lost { background: #fff0ef; border-color: #f0c9c5; color: #b33f38; }
.badge.void { background: #f0f2f4; border-color: #d8dee4; color: #687582; }
.badge.S { background: #e8f1ff; border-color: #bfd6f5; color: #235c9a; }
.badge.A { background: #edf6fd; border-color: #c9e1f4; color: #2670a8; }
.badge.B { background: #fff7e6; border-color: #f0dca9; color: #9b6507; }
.badge.C { background: #f0f2f4; border-color: #d8dee4; color: #687582; }
.badge.S1, .badge.S2, .badge.S3, .badge.S4, .badge.S5, .badge.S6, .badge.S7 { background: #edf6fd; border-color: #c9e1f4; color: #2670a8; }

/* Risk rows remain visible without overpowering the rest of the list. */
tr.row-overdue { background: #fffaf1; }
tr.row-severe { background: #fff5f4; }
tr.row-overdue td:first-child, tr.row-severe td:first-child { border-left: 3px solid #d59a2d; }
tr.row-severe td:first-child { border-left-color: #c84b43; }
.workbench-alert-item.severe { background: #fff5f4; border-left-color: #c84b43; }

.table-scroll { scrollbar-color: #b9cbd9 transparent; }
th { color: #526d85; }
td small, .project-row small { color: #7b8c9d; }
.code-text, td:first-child { font-variant-numeric: tabular-nums; }
.detail-field { border-top-color: #8fbddd; }
.detail-field small { color: #71869a; }
dialog { box-shadow: 0 18px 55px rgba(9, 35, 59, .22); }
dialog::backdrop { background: rgba(13, 38, 62, .34); }

/* 客户导入：沿用工作台的轻量渐变与柔和状态色，而非普通数据表外观。 */
.import-history-card { margin-top: 18px; overflow: hidden; }
.import-history-head { align-items: center; background: linear-gradient(105deg, #fff 0%, #f6faff 100%); border-bottom: 1px solid #e5edf5; display: flex; justify-content: space-between; gap: 18px; padding: 18px 20px; }
.import-history-intro { align-items: center; display: flex; gap: 12px; }
.import-history-icon { align-items: center; background: linear-gradient(135deg, #ddebff, #c3dcff); border-radius: 14px; color: #176fd2; display: flex; font-size: 25px; font-weight: 800; height: 46px; justify-content: center; line-height: 1; width: 46px; }
.import-history-intro h4 { color: #173d69; font-size: 16px; margin: 0 0 3px; }
.import-history-intro p { color: #7187a0; font-size: 12px; margin: 0; }
.import-history-head .button.secondary { background: #fff; border-color: #b7d1eb; box-shadow: 0 3px 9px rgba(31, 104, 173, .06); color: #1768ad; }
.import-history-head .button.secondary:hover { background: #edf7ff; border-color: #79b4e4; }
.import-history-list { background: #fff; }
.import-file-list { padding: 10px 12px 2px; }
.import-file-list-head, .import-file-row { align-items: center; column-gap: 16px; display: grid; grid-template-columns: minmax(300px, 2.1fr) 116px 88px 178px 160px; }
.import-file-list-head { color: #8294a8; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 0 14px 8px 66px; text-transform: uppercase; }
.import-file-row { background: #fff; border: 1px solid transparent; border-radius: 10px; color: #27425d; cursor: pointer; font: inherit; min-height: 74px; padding: 10px 14px; position: relative; text-align: left; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; width: 100%; }
.import-file-row + .import-file-row { margin-top: 4px; }
.import-file-row:hover { background: linear-gradient(100deg, #f5faff, #fff); border-color: #c9e2f7; box-shadow: 0 7px 17px rgba(26, 95, 158, .08); transform: translateY(-1px); }
.import-file-mark { align-items: center; background: linear-gradient(135deg, #e9f4ff, #d6ecff); border-radius: 11px; color: #1680cb; display: flex; font-size: 10px; font-weight: 800; grid-row: 1; height: 38px; justify-content: center; letter-spacing: .04em; position: absolute; width: 38px; }
.import-file-name { display: grid; gap: 3px; padding-left: 50px; }
.import-file-name strong { color: #1d4268; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-file-name small, .import-file-count small, .import-file-time small { color: #8a9aad; font-size: 11px; }
.import-status { border-radius: 99px; display: inline-flex; font-size: 11px; font-weight: 700; justify-content: center; padding: 4px 9px; width: max-content; }
.import-status.blue { background: #e9f4ff; color: #2177bd; }
.import-status.amber { background: #fff2d7; color: #bc7310; }
.import-status.green { background: #e6f8ef; color: #159266; }
.import-status.red { background: #fff0ef; color: #ca5149; }
.import-status.neutral { background: #eff3f6; color: #718296; }
.import-file-count { display: grid; gap: 1px; }
.import-file-count b { color: #1b5fa1; font-size: 18px; line-height: 1; }
.import-file-time { color: #607991; display: grid; font-size: 12px; gap: 2px; }
.import-file-action { color: #1672c1; font-size: 12px; font-weight: 700; white-space: nowrap; }
.import-file-action i { font-size: 16px; font-style: normal; margin-left: 3px; transition: transform .16s ease; }
.import-file-row:hover .import-file-action i { display: inline-block; transform: translateX(3px); }
.import-file-action { align-items: center; display: flex; gap: 12px; }
.import-delete-button { background: transparent; border: 0; color: #c55353; cursor: pointer; font: inherit; font-size: 12px; padding: 4px 0; }
.import-delete-button:hover { color: #a52d2d; text-decoration: underline; }
.selected-files { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; min-height: 28px; }
.selected-files-count { color: #526d85; font-size: 12px; font-weight: 700; margin-right: 2px; }
.selected-file-chip { align-items: center; background: #eef6ff; border: 1px solid #c9e2f7; border-radius: 999px; color: #285b87; display: inline-flex; font-size: 12px; gap: 5px; max-width: 230px; padding: 4px 8px 4px 10px; }
.selected-file-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-file-chip button { background: transparent; border: 0; color: #6e87a0; cursor: pointer; font-size: 16px; line-height: 1; padding: 0; }
.selected-file-chip button:hover { color: #c55353; }
.import-history-empty { align-items: center; color: #7790a8; display: grid; justify-items: center; padding: 42px 20px; text-align: center; }
.import-history-empty > span { align-items: center; background: #e7f3ff; border-radius: 50%; color: #2478c4; display: flex; font-size: 25px; height: 48px; justify-content: center; margin-bottom: 9px; width: 48px; }
.import-history-empty strong { color: #315a7f; }
.import-history-empty p { font-size: 12px; margin: 3px 0 0; }

@media (max-width: 600px) {
  .heading-actions .button, .form-actions .button, .modal-form .button { width: auto; }
  .heading-actions, .form-actions, .modal-form .modal-actions { flex-wrap: wrap; }
  .heading-actions .button, .form-actions .button { flex: 1 1 auto; }
  .import-history-head { align-items: flex-start; flex-direction: column; }
  .import-file-list-head { display: none; }
  .import-file-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .import-file-status { grid-column: 1; grid-row: 2; padding-left: 50px; }
  .import-file-count, .import-file-time { display: none; }
  .import-file-action { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: flex-end; gap: 4px; }
}

/* CRM 工作台：以业务待办、数据总览与快捷入口作为首屏，而非静态欢迎页。 */
:root {
  --crm-deep: #0a315b;
  --crm-sidebar: #0c3e70;
  --crm-primary: #1373e8;
  --crm-canvas: #f5f8fc;
  --crm-card: #fff;
  --crm-ink: #142f4d;
  --crm-soft: #6b819a;
  --crm-line: #e4ebf3;
}

body { background: var(--crm-canvas); }
.app-shell { grid-template-columns: 246px minmax(0, 1fr); }
.sidebar {
  background: linear-gradient(180deg, #0d4377 0%, #092e56 100%);
  box-shadow: 4px 0 22px rgba(13, 45, 77, .12);
  padding: 13px 12px 17px;
}
.sidebar-brand { margin: 0 4px; padding: 7px 4px 20px; }
.sidebar-brand .brand-mark {
  width: 45px;
  height: 45px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #42a7ff 0%, #1768d7 100%);
  box-shadow: 0 8px 16px rgba(4, 32, 69, .28);
  font-size: 13px;
}
.sidebar-brand strong { font-size: 16px; letter-spacing: .025em; }
.sidebar-brand small { color: #a9cae3; font-size: 11px; margin-top: 2px; }
.main-nav { display: block; padding-top: 8px; }
.main-nav::before { display: none; }
.nav-section-label {
  color: #8db6d5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  margin: 15px 10px 7px;
  text-transform: uppercase;
}
.nav-section-label:first-child { margin-top: 0; }
.nav-section-tools,
.nav-section-system { border-top: 1px solid rgba(185, 218, 241, .13); padding-top: 15px; }
.main-nav button {
  border-radius: 7px;
  color: #c7ddef;
  font-size: 14px;
  font-weight: 600;
  min-height: 42px;
  margin: 2px 0;
  padding: 9px 12px;
}
.main-nav button span { color: #afcee7; font-size: 17px; }
.main-nav button.active {
  background: linear-gradient(90deg, #1d7beb, #176bd3);
  box-shadow: inset 3px 0 #99d8ff, 0 6px 14px rgba(4, 30, 61, .19);
}
.main-nav button.active::after { background: #e1f4ff; height: 6px; right: 12px; width: 6px; }
.sidebar-user { background: rgba(3, 24, 46, .18); margin: auto 4px 0; }

.topbar {
  gap: 20px;
  justify-content: space-between;
  min-height: 66px;
  padding: 10px 30px;
}
.global-search {
  align-items: center;
  background: #f1f6fb;
  border: 1px solid transparent;
  border-radius: 6px;
  display: flex;
  max-width: 360px;
  min-width: 250px;
  padding: 0 10px;
  transition: border-color .16s, box-shadow .16s;
}
.global-search:focus-within { background: #fff; border-color: #9cc7ef; box-shadow: 0 0 0 3px rgba(30, 122, 219, .1); }
.global-search span { color: #5f85ac; font-size: 21px; line-height: 1; transform: rotate(-18deg); }
.global-search input { background: transparent; border: 0; color: #27425d; flex: 1; min-width: 0; outline: 0; padding: 8px; }
.global-search input::placeholder { color: #98aac0; }
.global-search button { border: 0; background: transparent; color: #2771b3; cursor: pointer; font-size: 12px; font-weight: 700; padding: 4px 0 4px 5px; }
.topbar-context { align-items: center; display: flex; gap: 15px; min-width: 0; }
.topbar-icon { background: transparent; border: 0; color: #1d5686; cursor: pointer; font-size: 22px; line-height: 1; padding: 6px; position: relative; }
.topbar-icon:hover { color: var(--crm-primary); }
.topbar-icon i { background: #ef5265; border: 2px solid #fff; border-radius: 12px; color: #fff; font-size: 10px; font-style: normal; line-height: 17px; min-width: 17px; position: absolute; right: -3px; text-align: center; top: -3px; }
.topbar-user { align-items: center; border-left: 1px solid #e5ecf3; display: flex; gap: 9px; padding-left: 15px; }
.topbar-user > span { align-items: center; background: linear-gradient(135deg, #1c81f0, #115fc4); border-radius: 50%; color: #fff; display: flex; font-size: 15px; font-weight: 700; height: 35px; justify-content: center; width: 35px; }
.topbar-user b, .topbar-user small { display: block; }
.topbar-user b { color: #29435d; font-size: 13px; }
.topbar-user small { color: #8799ab; font-size: 11px; }
.global-message { margin-right: 4px; }

.page-view { max-width: 1720px; padding: 25px 29px 42px; }
.workbench-heading { align-items: center; display: flex; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.workbench-heading h1 { color: var(--crm-ink); font-size: 28px; letter-spacing: .01em; line-height: 1.2; margin: 0; }
.workbench-heading p { color: #71869e; display: inline; font-size: 13px; margin: 0 0 0 18px; }
.workbench-heading > div:first-child { align-items: baseline; display: flex; flex-wrap: wrap; }
.workbench-heading .button { min-height: 37px; }

.dashboard-summary { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 15px; }
.dashboard-stat { align-items: flex-start; border: 1px solid #e3ebf3; border-radius: 9px; box-shadow: 0 7px 21px rgba(30, 72, 111, .055); display: flex; gap: 13px; min-height: 148px; overflow: hidden; padding: 17px 18px; position: relative; }
.dashboard-stat::before { display: none; }
.dashboard-stat::after { border-radius: 100% 0 0; bottom: -42px; height: 93px; opacity: 1; right: -16px; width: 135px; }
.dashboard-stat.customer::after { background: #e6f3ff; }
.dashboard-stat.approval::after { background: #fff2db; }
.dashboard-stat.project::after { background: #e5f8f0; }
.dashboard-stat.milestone::after { background: #ffe9ec; }
.stat-icon { align-items: center; border-radius: 50%; display: flex; flex: 0 0 49px; font-size: 25px; height: 49px; justify-content: center; position: relative; width: 49px; z-index: 1; }
.customer .stat-icon { background: #ddecff; color: #1475df; }
.approval .stat-icon { background: #fff0d5; color: #f09020; }
.project .stat-icon { background: #daf7ea; color: #12a46b; }
.milestone .stat-icon { background: #ffe1e5; color: #e14c54; }
.dashboard-stat > div { min-width: 0; position: relative; z-index: 1; }
.dashboard-stat .stat-label { color: #28445f; font-size: 14px; font-weight: 700; padding: 0; }
.dashboard-stat strong { color: #0f3963; font-size: 31px; line-height: 1.1; margin: 4px 0 3px; }
.dashboard-stat small { color: #8193a6; font-size: 12px; margin: 0; }
.stat-link { background: transparent; border: 0; color: #277ce5; cursor: pointer; display: block; font-size: 12px; font-weight: 700; margin-top: 8px; padding: 0; }
.stat-link i { font-size: 15px; font-style: normal; margin-left: 4px; }
.approval .stat-link { color: #e98717; }.project .stat-link { color: #17a66f; }.milestone .stat-link { color: #e14851; }
.dashboard-load-error { background: #fff; border: 1px solid #f0d4d0; border-radius: 8px; color: #a9554c; grid-column: 1 / -1; padding: 22px; }

.dashboard-content { display: grid; gap: 15px; grid-template-columns: 1.24fr .76fr; margin-bottom: 15px; }
.dashboard-actions-panel, .dashboard-overview, .dashboard-activity, .workbench-alerts, .dashboard-no-alerts { box-shadow: 0 6px 19px rgba(30, 72, 111, .05); }
.panel-title { align-items: center; border-bottom: 1px solid var(--crm-line); display: flex; justify-content: space-between; min-height: 56px; padding: 13px 16px; }
.panel-title > div { align-items: center; display: flex; gap: 8px; }
.panel-title h4 { color: #24425f; font-size: 15px; margin: 0; }.panel-title small, .panel-title > span { color: #8396a9; font-size: 12px; }
.panel-icon { align-items: center; border-radius: 7px; display: flex; font-size: 17px; font-weight: 800; height: 28px; justify-content: center; width: 28px; }
.panel-icon.blue { background: #e4f1ff; color: #1476e5; }.panel-icon.green { background: #dff7eb; color: #17a367; }.panel-icon.purple { background: #eee8ff; color: #7654d7; }.panel-icon.amber { background: #fff0dc; color: #ee8a1c; }
.dashboard-actions { background: #edf2f7; display: grid; gap: 1px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-action { background: #fff; border: 0; cursor: pointer; display: flex; gap: 10px; min-height: 92px; padding: 16px 14px; text-align: left; transition: background .16s; }
.dashboard-action:hover { background: #f7fbff; }.dashboard-action i { color: #9badbf; font-size: 22px; font-style: normal; margin-left: auto; }
.dashboard-action b, .dashboard-action small { display: block; }.dashboard-action b { color: #24435f; font-size: 13px; }.dashboard-action small { color: #8a9aab; font-size: 11px; line-height: 1.55; margin-top: 3px; }
.action-icon { align-items: center; border-radius: 9px; display: flex; flex: 0 0 37px; font-size: 18px; height: 37px; justify-content: center; }
.action-icon.customer { background: #e6f2ff; color: #1a78e6; }.action-icon.import { background: #e0f8ed; color: #11a86c; }.action-icon.follow { background: #fff0d8; color: #f08b1c; }.action-icon.project { background: #e5efff; color: #356ed5; }.action-icon.report { background: #f0e9ff; color: #7755d8; }.action-icon.admin { background: #ffe8e9; color: #d64b57; }
.overview-list { padding: 6px 17px; }.overview-row { align-items: center; border-bottom: 1px solid #edf1f5; display: flex; justify-content: space-between; padding: 14px 0; }.overview-row:last-child { border: 0; }.overview-row b, .overview-row small { display: block; }.overview-row b { color: #38526a; font-size: 13px; }.overview-row small { color: #91a0b0; font-size: 11px; margin-top: 2px; }.overview-row strong { color: #176ec6; font-size: 24px; font-variant-numeric: tabular-nums; }.overview-empty { color: #8294a6; padding: 32px 0; text-align: center; }

.dashboard-bottom { display: grid; gap: 15px; grid-template-columns: 1fr 1fr; }.dashboard-bottom > * { min-width: 0; }.dashboard-activity { grid-row: span 1; }.process-list { counter-reset: step; list-style: none; margin: 0; padding: 9px 19px 13px; }.process-list li { border-left: 2px solid #cfe4fa; color: #63798e; font-size: 12px; line-height: 1.65; padding: 8px 0 14px 18px; position: relative; }.process-list li:last-child { border-left-color: transparent; }.process-list li::before { align-items: center; background: #e2f0ff; border: 2px solid #fff; border-radius: 50%; color: #1973d4; content: counter(step); counter-increment: step; display: flex; font-size: 10px; font-weight: 800; height: 19px; justify-content: center; left: -10px; position: absolute; top: 9px; width: 19px; }.process-list b { color: #2a4661; display: block; font-size: 13px; }.process-list span { display: block; }
.workbench-alerts { border-left: 0; }.workbench-alert-item { padding: 11px 15px; }.workbench-alert-item strong { color: #24445f; font-size: 13px; }.workbench-alert-item p { font-size: 12px; line-height: 1.45; }.workbench-alert-item small { color: #8a9bab; font-size: 11px; }.workbench-alert-item .button { font-size: 12px; min-height: 30px; padding: 5px 9px; }.dashboard-no-alerts > div:last-child { color: #7e91a5; padding: 25px 20px 26px; text-align: center; }.dashboard-no-alerts strong { color: #2c805d; display: block; font-size: 14px; }.dashboard-no-alerts p { font-size: 12px; margin: 6px 0 0; }

@media (max-width: 1180px) {
  .dashboard-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-content { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { padding: 12px 18px; }.sidebar-brand { padding-bottom: 10px; }.main-nav { display: flex; overflow-x: auto; }.nav-section-label { display: none; }.main-nav button { flex: 0 0 auto; width: auto; }.sidebar-user { display: none; }
  .page-view { padding: 21px; }.dashboard-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .topbar { padding: 9px 14px; }.global-search { max-width: none; min-width: 0; width: 100%; }.topbar-user { display: none; }.global-message { display: none; }
  .page-view { padding: 18px 13px 34px; }.workbench-heading { align-items: flex-start; flex-direction: column; gap: 12px; }.workbench-heading p { display: block; margin: 5px 0 0; }.heading-actions { width: 100%; }.heading-actions .button { flex: 1 1 30%; font-size: 12px; padding-left: 7px; padding-right: 7px; }
  .dashboard-summary, .dashboard-bottom { grid-template-columns: 1fr; }.dashboard-stat { min-height: 126px; }.dashboard-actions { grid-template-columns: 1fr; }.dashboard-action { min-height: 76px; }
}

/* 工作台首排：桌面端固定四张独立待办卡，整卡可点击，布局与 OA 工作台保持一致。 */
#dashboardSummary.dashboard-summary { align-items: stretch; width: 100%; }
#dashboardSummary > .dashboard-stat {
  cursor: pointer;
  height: 148px;
  margin: 0;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
#dashboardSummary > .dashboard-stat:hover,
#dashboardSummary > .dashboard-stat:focus-visible {
  border-color: #b9d4ec;
  box-shadow: 0 10px 25px rgba(30, 72, 111, .10);
  outline: 0;
  transform: translateY(-2px);
}
#dashboardSummary > .dashboard-stat::after { pointer-events: none; }
#dashboardSummary .dashboard-stat-copy { align-items: flex-start; display: flex; flex-direction: column; height: 100%; }
#dashboardSummary .stat-link { margin-top: auto; position: relative; z-index: 2; }

/* 工作台第二层视觉：用真实指标配合轻量数据图形，强化扫读而不新增虚构业务数据。 */
#dashboardView { position: relative; }
#dashboardView::before { background: radial-gradient(circle at 78% 8%, rgba(38, 131, 218, .06), transparent 27%); content: ""; inset: 0; pointer-events: none; position: absolute; }
#dashboardView > * { position: relative; }
.workbench-heading h1 { font-size: 30px; font-weight: 800; letter-spacing: -.025em; }
.workbench-heading p { color: #6c87a4; font-size: 14px; }
.heading-actions .button { border-radius: 7px; font-weight: 700; }
.heading-actions .button.primary { background: linear-gradient(135deg, #1686f2, #0866d6); border-color: #0866d6; box-shadow: 0 5px 12px rgba(19, 113, 220, .18); }
.heading-actions .button.primary:hover { box-shadow: 0 8px 16px rgba(19, 113, 220, .24); transform: translateY(-1px); }
#dashboardSummary > .dashboard-stat { backdrop-filter: blur(2px); background: linear-gradient(135deg, #fff 0%, #fff 72%, #f9fcff 100%); border-radius: 12px; min-height: 154px; padding: 18px; }
#dashboardSummary > .dashboard-stat::after { bottom: -56px; height: 123px; right: -33px; width: 178px; }
.stat-icon svg { fill: none; height: 25px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 25px; }
#dashboardSummary .dashboard-stat-copy { padding-right: 34px; }
#dashboardSummary .stat-label { letter-spacing: .01em; }
#dashboardSummary .dashboard-stat strong { font-size: 33px; letter-spacing: -.035em; }
.stat-visual { align-items: end; bottom: 18px; display: flex; gap: 4px; height: 52px; pointer-events: none; position: absolute; right: 18px; z-index: 1; }
.stat-visual i { border-radius: 4px 4px 1px 1px; display: block; height: 25%; opacity: .8; width: 7px; }
.stat-visual i:nth-child(2) { height: 48%; }.stat-visual i:nth-child(3) { height: 70%; }.stat-visual i:nth-child(4) { height: 100%; }
.customer .stat-visual i { background: linear-gradient(#9ed1ff, #4a9cee); }.approval .stat-visual i { background: linear-gradient(#ffd887, #f6ad35); }.project .stat-visual i { background: linear-gradient(#90e3bf, #35bb82); }.milestone .stat-visual i { background: linear-gradient(#ffadb7, #ef6873); }
.dashboard-content, .dashboard-bottom { gap: 18px; }
.dashboard-actions-panel, .dashboard-overview, .dashboard-activity, .workbench-alerts, .dashboard-no-alerts { border: 1px solid #e3ebf4; border-radius: 12px; overflow: hidden; }
.panel-title { background: linear-gradient(90deg, #fff, #fbfdff); min-height: 58px; padding: 14px 17px; }
.panel-title h4 { font-size: 15px; font-weight: 800; }.panel-title small, .panel-title > span { color: #8598ac; }
.panel-icon { border-radius: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.dashboard-actions { background: #edf2f7; grid-auto-rows: 92px; }
.dashboard-action { position: relative; transition: background .18s, box-shadow .18s, transform .18s; }
.dashboard-action:hover { background: linear-gradient(135deg, #fff, #f3f9ff); box-shadow: inset 0 0 0 1px #dcecf9; transform: translateY(-1px); z-index: 1; }
.dashboard-action b { font-size: 13px; font-weight: 800; }.dashboard-action small { line-height: 1.45; }.dashboard-action i { align-self: center; transition: color .18s, transform .18s; }.dashboard-action:hover i { color: #1977db; transform: translateX(3px); }
.action-icon { box-shadow: inset 0 1px 0 rgba(255,255,255,.65); }.action-icon.approval { background: #eee7ff; color: #7855d9; }
.dashboard-overview { background: linear-gradient(180deg, #fff, #fbfdff); }.overview-list { padding: 8px 18px; }.overview-row { padding: 15px 0; }.overview-row strong { background: #edf6ff; border-radius: 9px; color: #1775d4; font-size: 24px; min-width: 42px; padding: 2px 8px; text-align: center; }
.dashboard-activity { background: linear-gradient(135deg, #fff, #fbfdff); }.process-list { padding: 13px 21px 15px; }.process-list li { padding-bottom: 15px; }
.dashboard-no-alerts { background: linear-gradient(135deg, #fff, #f8fffb); }.dashboard-no-alerts > div:last-child { min-height: 164px; padding-top: 42px; }.dashboard-no-alerts strong::before { background: #dff7eb; border-radius: 50%; color: #18a56a; content: "✓"; display: inline-grid; height: 24px; margin: 0 7px 0 0; place-items: center; width: 24px; }

/* 项目详情把详情接口的完整结果一次呈现；明细区独立滚动，避免操作栏被长记录顶出屏幕。 */
dialog:has(.project-detail-modal) { max-height: calc(100vh - 30px); width: min(1080px, calc(100vw - 30px)); }
.project-detail-modal { max-height: calc(100vh - 105px); overflow-y: auto; }
.project-detail-modal > .full { grid-column: 1 / -1; }
.project-detail-groups { display: grid; gap: 13px; }
.project-detail-group { background: #fff; border: 1px solid #e0eaf3; border-radius: 8px; padding: 12px; }
.project-detail-group h4 { color: #285072; font-size: 13px; margin: 0 0 10px; }
.project-detail-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-detail-field { background: #f8fbfe; border: 1px solid #e0eaf3; border-radius: 7px; min-width: 0; padding: 10px 12px; }
.project-detail-field small { color: #7890a6; display: block; font-size: 11px; font-weight: 700; margin-bottom: 3px; }
.project-detail-field strong { color: #294b69; display: block; font-size: 13px; overflow-wrap: anywhere; }
.detail-section { background: #fff; border: 1px solid #e0eaf3; border-radius: 8px; min-width: 0; overflow: hidden; }
.detail-section-head { align-items: center; background: linear-gradient(90deg, #f7fbff, #fff); border-bottom: 1px solid #e8eff5; display: flex; justify-content: space-between; padding: 10px 13px; }
.detail-section-head h4 { color: #294c6b; font-size: 13px; margin: 0; }.detail-section-head small { color: #8194a8; font-size: 11px; }
.project-stage-catalog { display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 12px; }
.project-stage-item { background: #f8fbfe; border: 1px solid #e3ebf3; border-radius: 7px; padding: 9px 10px; }
.project-stage-item.active { background: #edf6ff; border-color: #78b2e6; box-shadow: inset 0 0 0 1px rgba(57, 139, 211, .12); }
.project-stage-item > div { align-items: baseline; display: flex; gap: 7px; }.project-stage-item b { color: #2476c2; font-size: 12px; }.project-stage-item strong { color: #294a67; font-size: 12px; }.project-stage-item small { color: #8093a6; display: block; font-size: 10px; line-height: 1.45; margin-top: 4px; }
.project-stage-changes, .project-follow-records { padding: 5px 13px 9px; }.project-stage-change, .project-follow-record { border-bottom: 1px solid #edf1f5; padding: 10px 0; }.project-stage-change:last-child, .project-follow-record:last-child { border-bottom: 0; }
.project-change-head { align-items: center; display: flex; gap: 10px; justify-content: space-between; }.project-change-head strong { color: #2a4f70; font-size: 12px; }.project-change-head span { color: #8a9bab; font-size: 11px; white-space: nowrap; }.project-stage-change > small, .project-follow-record > small { color: #8395a8; display: block; font-size: 11px; margin-top: 3px; }.project-stage-change p, .project-follow-record p { color: #506b83; font-size: 12px; line-height: 1.55; margin: 5px 0 0; }
.project-detail-table-wrap { overflow-x: auto; }.project-detail-table { min-width: 720px; width: 100%; }.project-detail-table th, .project-detail-table td { font-size: 11px; padding: 8px 10px; }.project-detail-table th { background: #f8fbfe; color: #71879d; }.project-detail-table td { color: #506b83; }.project-detail-table td strong { color: #2a4f70; }
.project-section-meta { color: #8a9bac; font-size: 11px; padding: 4px 0 5px; text-align: right; }
@media (max-width: 760px) { dialog:has(.project-detail-modal) { width: calc(100vw - 18px); }.project-detail-grid, .project-stage-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .project-detail-grid, .project-stage-catalog { grid-template-columns: 1fr; } }

@media (min-width: 961px) {
  #dashboardSummary.dashboard-summary { grid-template-columns: repeat(4, minmax(190px, 1fr)); }
}

@media (max-width: 960px) {
  #dashboardSummary.dashboard-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  #dashboardSummary.dashboard-summary { grid-template-columns: 1fr; }
  #dashboardSummary > .dashboard-stat { height: 132px; }
}

/* CRM Design System v2: compact enterprise workspace */
:root {
  --crm-primary: #1769aa;
  --crm-primary-hover: #125786;
  --crm-navy: #123f6d;
  --crm-bg: #f6f8fb;
  --crm-surface: #ffffff;
  --crm-surface-muted: #f7f9fc;
  --crm-ink: #263b55;
  --crm-muted: #718096;
  --crm-line: #dfe7ef;
  --crm-radius: 7px;
  --crm-radius-lg: 10px;
  --crm-shadow: 0 2px 10px rgba(26, 56, 86, .045);
  --crm-shadow-hover: 0 6px 18px rgba(26, 56, 86, .08);
  --crm-space-1: 6px;
  --crm-space-2: 10px;
  --crm-space-3: 14px;
  --crm-space-4: 18px;
  --crm-space-5: 24px;
}

html, body { background: var(--crm-bg); }
body { color: var(--crm-ink); font-size: 14px; }

/* layout */
.app-shell { grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { background: var(--crm-navy); border-right: 1px solid #0d345b; padding: 18px 12px; }
.sidebar-brand { padding: 4px 9px 20px; }
.brand-mark { background: #2078c4; box-shadow: none; }
.main-nav { gap: 3px; padding-top: 8px; }
.nav-section-label { color: #9bbbd5; font-size: 11px; letter-spacing: .08em; margin: 18px 10px 7px; }
.nav-section-label:first-child { margin-top: 0; }
.nav-section-tools, .nav-section-system { border-top: 1px solid rgba(212, 232, 247, .14); padding-top: 14px; }
.main-nav button { border-radius: var(--crm-radius); color: #c8dced; font-size: 14px; min-height: 42px; padding: 9px 12px; }
.main-nav button:hover { background: rgba(47, 140, 255, .11); color: #fff; }
.main-nav button.active { background: rgba(47, 140, 255, .18); box-shadow: inset 3px 0 #68b4ef; color: #fff; }
.main-nav button.active::after { display: none; }
.sidebar-user { background: transparent; border-top-color: rgba(212, 232, 247, .14); margin: auto 4px 0; }

.workspace { background: var(--crm-bg); }
.topbar { background: rgba(255, 255, 255, .98); box-shadow: 0 1px 0 rgba(31, 64, 95, .05); min-height: 64px; padding: 10px 28px; }
.global-search { max-width: 300px; min-width: 220px; }
.page-view { max-width: none; padding: 24px 28px 40px; }
.page-heading { border: 0; margin-bottom: 20px; padding: 0; }
.page-heading h3 { color: #1d3a58; font-size: 24px; font-weight: 600; line-height: 1.25; }
.page-heading p { color: var(--crm-muted); font-size: 13px; line-height: 1.5; }
.workbench-heading { margin-bottom: 20px; }
.workbench-heading h1 { color: #1d3a58; font-size: 28px; font-weight: 600; }
.workbench-heading p { color: var(--crm-muted); font-size: 13px; }

/* controls */
.button { border-radius: var(--crm-radius); font-size: 13px; font-weight: 600; min-height: 36px; padding: 8px 14px; transition: background .15s, border-color .15s, box-shadow .15s; }
.button.primary, .heading-actions .button.primary { background: var(--crm-primary); border-color: var(--crm-primary); box-shadow: none; color: #fff; }
.button.primary:hover, .heading-actions .button.primary:hover { background: var(--crm-primary-hover); box-shadow: none; transform: none; }
.button.secondary { background: #fff; border-color: #b8c9d9; color: #365675; }
.button.secondary:hover { background: #f5f9fc; border-color: #8eabc4; }
.button.danger { background: #c94742; }
.button.ghost { min-height: 36px; }
.filter-card { align-items: end; background: var(--crm-surface); border: 1px solid var(--crm-line); border-left: 3px solid #84b6dc; border-radius: var(--crm-radius-lg); box-shadow: var(--crm-shadow); display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; padding: 16px 18px; }
.filter-card label { flex: 1 1 170px; min-width: 145px; }
.filter-card > .button { flex: 0 0 auto; }
.filter-card > .button[type="submit"] { margin-left: auto; min-width: 80px; }
.filter-card > .button[type="button"] { order: 9; }
.filter-card > .button[type="submit"] { order: 10; }
.filter-card input, .filter-card select { background: #fff; border-color: #c8d6e3; border-radius: 6px; height: 36px; min-height: 36px; padding: 7px 10px; }
.filter-card label { color: #566b81; font-size: 12px; gap: 5px; }

/* cards, tables and tags */
.content-card, .filter-card, .table-card { background: var(--crm-surface); border-color: var(--crm-line); border-radius: var(--crm-radius-lg); box-shadow: var(--crm-shadow); }
.content-card:hover { box-shadow: var(--crm-shadow); }
.table-card { overflow: hidden; }
.table-summary, .section-title { background: #fff; border-bottom: 1px solid var(--crm-line); min-height: 50px; padding: 13px 18px; }
.table-summary { color: #3a5874; }
.table-scroll { max-height: none; overflow-x: auto; }
table { min-width: 760px; }
th { background: var(--crm-surface-muted); border-bottom: 1px solid var(--crm-line); color: #55657a; font-size: 12px; font-weight: 500; height: 44px; padding: 10px 14px; }
td { color: var(--crm-ink); font-size: 13px; height: 58px; padding: 10px 14px; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #f8fbff; }
.primary-cell strong { color: #263b55; display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.primary-cell small, td small { color: #8795a5; display: block; font-size: 12px; line-height: 1.45; margin-top: 2px; }
.table-action { white-space: nowrap; }
.text-button { color: var(--crm-primary); font-size: 13px; }
.badge, .status-tag { border: 1px solid transparent; border-radius: 999px; display: inline-flex; font-size: 12px; font-weight: 600; line-height: 1.3; padding: 4px 9px; white-space: nowrap; }
.badge.lead, .badge.S1, .badge.in_progress { background: #edf5ff; border-color: #cde1f6; color: #276aa1; }
.badge.following, .badge.S2, .badge.pending_review { background: #fff8e8; border-color: #f0deb0; color: #976719; }
.badge.contracted, .badge.S5, .badge.achieved { background: #edf9f3; border-color: #c8ead8; color: #19724e; }
.badge.S3, .badge.S4, .badge.S6 { background: #f1efff; border-color: #ddd7fa; color: #6551a6; }
.badge.S7 { background: #e9f8f1; border-color: #bee5d0; color: #147149; }
.badge.S { background: #fff4e5; border-color: #f1d5aa; color: #9b621b; }
.badge.A { background: #edf5ff; border-color: #cde1f6; color: #276aa1; }
.badge.B { background: #f1efff; border-color: #ddd7fa; color: #6551a6; }
.badge.dormant, .badge.lost, .badge.void, .badge.inactive_voided { background: #f7eff1; border-color: #ead6dc; color: #8a5364; }
.badge.C { background: #f1f4f7; border-color: #dbe3ea; color: #66788d; }
.pagination { background: #fff; border-top: 1px solid #eef2f6; min-height: 52px; padding: 12px 18px; }
.pagination button { background: #fff; border-color: #cbd7e2; border-radius: 6px; min-height: 32px; }

/* shared empty state */
.empty { color: var(--crm-muted); padding: 0 !important; }
.empty-state { align-items: center; display: flex; flex-direction: column; gap: 4px; justify-content: center; min-height: 132px; padding: 22px; text-align: center; }
.empty-state-icon { align-items: center; background: #eef4f9; border-radius: 50%; color: #8ca6bd; display: inline-flex; font-size: 22px; height: 42px; justify-content: center; margin-bottom: 3px; width: 42px; }
.empty-state strong { color: #465f77; font-size: 14px; font-weight: 600; }
.empty-state small { color: var(--crm-muted); font-size: 12px; }
.empty-state--table { min-height: 150px; }
td.empty .empty-state { min-height: 150px; }

/* detail and dashboard surfaces */
.detail-grid { gap: 12px; margin-bottom: 16px; }
.detail-field { border: 1px solid var(--crm-line); border-radius: var(--crm-radius); box-shadow: none; padding: 14px 16px; }
.detail-field small { color: var(--crm-muted); font-size: 12px; font-weight: 500; }
.detail-field span { color: var(--crm-ink); font-weight: 600; }
.welcome-card, .dashboard-stat, .dashboard-activity, .dashboard-overview, .dashboard-actions-panel, .dashboard-no-alerts { background: #fff; background-image: none; border-radius: var(--crm-radius-lg); box-shadow: var(--crm-shadow); }
.welcome-card { padding: 24px 26px; }
.quick-card, .dashboard-action { box-shadow: none; }
.quick-card:hover, .dashboard-action:hover { transform: none; }
.dashboard-stat { min-height: 132px !important; }
.dashboard-stat::after, #dashboardView::before { display: none; }

/* no decorative gradients in the enterprise system */
.sidebar, .brand-mark, .button.primary, .welcome-card, .table-summary, .section-title, .panel-title, .dashboard-stat, .dashboard-overview, .dashboard-activity, .dashboard-no-alerts, .action-icon, .stat-icon { background-image: none !important; }

@media (max-width: 1199px) {
  .filter-card label { flex-basis: 190px; }
}
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; padding: 12px 18px; }
  .sidebar-brand { padding-bottom: 10px; }
  .main-nav { display: flex; overflow-x: auto; }
  .nav-section-label { display: none; }
  .main-nav button { flex: 0 0 auto; width: auto; }
  .sidebar-user { display: none; }
  .page-view { padding: 20px; }
  .filter-card { gap: 10px; }
  .filter-card > .button[type="submit"] { margin-left: 0; }
}
@media (max-width: 600px) {
  .topbar { padding: 9px 14px; }
  .global-search { max-width: none; min-width: 0; width: 100%; }
  .page-view { padding: 18px 14px 32px; }
  .page-heading h3 { font-size: 21px; }
  .filter-card label { flex-basis: 100%; }
  .filter-card > .button { flex: 1 1 0; }
  .filter-card > .button[type="submit"] { min-width: 0; }
}

/* Keep dashboard decoration flat and restrained under the shared token system. */
.stat-visual i,
.stat-visual i::before,
.stat-visual i::after { background-image: none !important; }
.stat-visual i { background-color: #e7f1fb !important; }

/* 完成项目业绩：只呈现后端实时聚合的 S7 数据，不在浏览器重算业务口径。 */
.performance-report-card { margin-bottom: 18px; overflow: hidden; }
.performance-filter { border: 0; border-bottom: 1px solid var(--crm-line); border-left: 0; border-radius: 0; box-shadow: none; margin: 0; }
.performance-metrics { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 16px 18px 0; }
.performance-metrics .metric-card { background: #f8fbfe; border: 1px solid #e0eaf3; border-radius: 8px; min-height: 90px; padding: 14px; }
.performance-metrics .metric-card strong { color: #1e5f9e; font-size: 24px; }
.performance-panels { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .95fr); padding: 16px 18px 18px; }
.performance-panels > section { border: 1px solid var(--crm-line); border-radius: 8px; min-width: 0; overflow: hidden; }
.performance-panel-head { align-items: center; background: #f8fbfe; border-bottom: 1px solid var(--crm-line); display: flex; justify-content: space-between; min-height: 48px; padding: 12px 14px; }
.performance-panel-head h5 { color: #34536f; font-size: 13px; margin: 0; }.performance-panel-head span { color: var(--crm-muted); font-size: 12px; }
.performance-chart-meta { align-items: center; color: var(--crm-muted); display: flex; font-size: 12px; justify-content: space-between; padding: 12px 14px 0; }.performance-chart-meta b { color: #48647e; font-weight: 600; }
.performance-chart-scroll { overflow-x: auto; padding: 0 8px; }.performance-chart { display: block; min-width: 580px; width: 100%; }.performance-grid-line { stroke: #e9eff5; stroke-width: 1; }.performance-line { fill: none; stroke: #2577bb; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }.performance-dot { fill: #fff; stroke: #2577bb; stroke-width: 3; }.performance-axis-label { fill: #7c8fa3; font-size: 11px; }
.performance-tree { padding: 12px; }.performance-tree-department { border: 1px solid #e1eaf2; border-radius: 7px; margin-bottom: 10px; overflow: hidden; }.performance-tree-department:last-child { margin-bottom: 0; }.performance-tree-head { align-items: center; background: #fbfdff; display: flex; justify-content: space-between; padding: 10px 12px; }.performance-tree-head strong { color: #31536f; display: block; font-size: 13px; }.performance-tree-head small { color: var(--crm-muted); display: block; font-size: 11px; margin-top: 3px; }.performance-tree-head > b, .performance-tree-line b { color: #216da9; font-size: 12px; white-space: nowrap; }.performance-tree-children { padding: 3px 12px 5px 26px; }.performance-tree-line { align-items: center; border-top: 1px solid #edf1f5; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto auto; min-height: 38px; position: relative; }.performance-tree-line::before { background: #b7cce0; content: ""; height: 1px; left: -13px; position: absolute; top: 19px; width: 8px; }.performance-tree-line span { color: #526b82; font-size: 12px; }.performance-tree-line small { color: #8798a9; font-size: 11px; white-space: nowrap; }
@media (max-width: 960px) { .performance-panels { grid-template-columns: 1fr; }.performance-metrics { grid-template-columns: repeat(3, minmax(140px, 1fr)); overflow-x: auto; }.performance-metrics .metric-card { min-width: 140px; } }
@media (max-width: 600px) { .performance-panels { padding: 12px; }.performance-filter { padding: 14px; }.performance-tree-line { grid-template-columns: 1fr auto; }.performance-tree-line small { grid-column: 1 / -1; margin-top: -10px; }.performance-tree-line b { grid-column: 2; grid-row: 1; } }

/* 项目详情采用独立页面，保留与客户详情一致的页面层级；操作表单仍使用弹窗。 */
.project-detail-page-inner { display: grid; gap: 16px; }
.detail-hero-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: -7px 0 16px; }
.detail-hero-tags .badge { font-size: 13px; padding: 6px 13px; }
.project-detail-page .heading-actions { align-items: center; }
.project-detail-page .detail-page-status { color: var(--crm-muted); font-size: 12px; padding: 9px 0; }
.project-detail-page .project-detail-groups { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-detail-page .project-detail-group { background: #fff; border: 1px solid #dfe8f0; border-radius: 9px; box-shadow: 0 3px 13px rgba(30, 65, 94, .045); padding: 0; overflow: hidden; }
.project-detail-page .project-detail-group h4 { background: linear-gradient(90deg, #f7fbff, #fff); border-bottom: 1px solid #e8eff5; color: #294c6b; font-size: 14px; margin: 0; padding: 13px 16px; }
.project-detail-page .project-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.project-detail-page .project-detail-field { background: #fff; border: 0; border-bottom: 1px solid #edf1f5; border-right: 1px solid #edf1f5; border-radius: 0; min-height: 75px; padding: 13px 16px; }
.project-detail-page .project-detail-field:nth-child(3n) { border-right: 0; }
.project-detail-page .project-detail-field:nth-last-child(-n+3) { border-bottom: 0; }
.project-detail-page .project-detail-field small { color: #7890a6; font-size: 12px; }
.project-detail-page .project-detail-field strong { color: #203e5d; font-size: 14px; }
.project-detail-page .detail-section { box-shadow: 0 3px 13px rgba(30, 65, 94, .045); }
.project-detail-page .project-detail-note p { color: #2b4863; margin: 0; padding: 17px 18px; white-space: pre-wrap; }
.project-detail-page .project-stage-catalog { grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 16px; }
.project-detail-page .project-stage-item { min-height: 128px; }
.project-detail-page .project-stage-item.active { border-top: 3px solid #2c83c4; }
.project-detail-page .approval-history-wrap { display: grid; gap: 12px; padding: 14px 16px 16px; }
.project-detail-hero { align-items: center; display: flex; gap: 18px; padding: 20px 24px; }
.project-detail-hero-icon { align-items: center; background: #e8f3ff; border-radius: 12px; color: #1d73ba; display: flex; font-size: 36px; font-weight: 800; height: 70px; justify-content: center; width: 70px; }
.project-detail-hero-title { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; }
.project-detail-hero-title h2 { color: #173b60; font-size: 24px; margin: 0; }
.project-detail-hero-title > div { display: flex; flex-wrap: wrap; gap: 7px; }
.project-detail-hero p { color: var(--crm-muted); margin: 8px 0 0; }
.project-detail-page .project-stage-catalog { align-items: start; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; padding: 20px 24px 18px; }
.project-detail-page .project-stage-item { background: transparent; border: 0; border-radius: 0; min-height: 112px; padding: 0 7px; position: relative; text-align: center; }
.project-detail-page .project-stage-item:not(:last-child)::after { background: #d7e4ee; content: ""; height: 2px; left: 50%; position: absolute; top: 16px; width: 100%; z-index: 0; }
.project-detail-page .project-stage-item.active:not(:last-child)::after { background: #85bce5; }
.project-detail-page .project-stage-item > div { align-items: center; display: flex; flex-direction: column; gap: 5px; position: relative; z-index: 1; }
.project-detail-page .project-stage-item b { align-items: center; background: #f0f5f9; border: 2px solid #d6e4ee; border-radius: 50%; color: #7b91a5; display: flex; font-size: 11px; height: 32px; justify-content: center; width: 32px; }
.project-detail-page .project-stage-item.complete b { background: #e8f6ef; border-color: #79c6a3; color: #16754e; }
.project-detail-page .project-stage-item.active b { background: #1769aa; border-color: #1769aa; color: #fff; box-shadow: 0 0 0 4px #dceefa; }
.project-detail-page .project-stage-item strong { color: #2c4b67; font-size: 12px; }
.project-detail-page .project-stage-item.active strong { color: #1769aa; }
.project-detail-page .project-stage-item small { color: #8193a4; font-size: 11px; line-height: 1.45; margin-top: 7px; }
@media (max-width: 1100px) {
  .project-detail-page .project-stage-catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .project-detail-page .project-detail-groups { grid-template-columns: 1fr; }
  .project-detail-page .project-stage-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .project-detail-hero { align-items: flex-start; padding: 16px; }
  .project-detail-hero-icon { height: 52px; width: 52px; }
  .project-detail-hero-title h2 { font-size: 20px; }
  .project-detail-page .project-detail-grid { grid-template-columns: 1fr; }
  .project-detail-page .project-detail-field { border-right: 0; border-bottom: 1px solid #edf1f5; }
  .project-detail-page .project-detail-field:last-child { border-bottom: 0; }
  .project-detail-page .project-stage-catalog { grid-template-columns: 1fr; }
}

/* CRM Information Workspace v5
   统一以“业务对象档案 + 紧凑工作台”为界面语言；仅覆盖视觉和布局。 */
:root {
  --workspace-bg: #f4f7fb;
  --workspace-surface: #fff;
  --workspace-ink: #173b60;
  --workspace-body: #314d69;
  --workspace-muted: #7186a0;
  --workspace-line: #dce6f0;
  --workspace-blue: #1769d8;
  --workspace-blue-soft: #eaf3ff;
  --workspace-shadow: 0 4px 16px rgba(24, 61, 96, .055);
}

html, body, .workspace { background: var(--workspace-bg); }
body { color: var(--workspace-body); }
.app-shell { grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { background: #103d69; padding: 16px 12px; }
.sidebar-brand { height: 59px; margin: 0 7px 11px; padding: 0 2px 15px; }
.sidebar-brand strong { font-size: 15px; letter-spacing: .01em; }
.sidebar-brand small { font-size: 11px; }
.main-nav { gap: 3px; }
.nav-section-label { color: rgba(218, 235, 250, .57); font-size: 11px; font-weight: 600; letter-spacing: .07em; margin: 18px 10px 7px; }
.main-nav button { border-radius: 7px; min-height: 42px; }
.main-nav button.active { background: rgba(57, 143, 244, .18); box-shadow: inset 3px 0 #69b3ff; }

.topbar { background: rgba(255,255,255,.98); min-height: 62px; padding: 10px 28px; }
.global-search { background: #f3f6fa; border-radius: 7px; min-height: 36px; }
.page-view { max-width: none; padding: 24px 28px 42px; }
.page-heading, .workbench-heading { align-items: flex-start; margin-bottom: 18px; }
.page-heading h3, .workbench-heading h1 { color: var(--workspace-ink); font-size: 25px; font-weight: 700; letter-spacing: -.025em; }
.workbench-heading h1 { font-size: 28px; }
.page-heading p, .workbench-heading p { color: var(--workspace-muted); font-size: 13px; margin-top: 5px; }
.page-heading .back-link { color: #2674c9; font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.heading-actions { align-items: center; gap: 9px; }
.button { border-radius: 7px; font-weight: 600; height: 36px; min-height: 36px; }
.button.primary, .heading-actions .button.primary { background: var(--workspace-blue); border-color: var(--workspace-blue); }
.button.primary:hover, .heading-actions .button.primary:hover { background: #105abd; border-color: #105abd; }
.button.secondary { border-color: #c7d6e4; color: #2e536f; }

/* 所有列表遵循相同的标题、紧凑筛选和数据卡片节奏。 */
.content-card, .table-card, .filter-card { border-color: var(--workspace-line); border-radius: 10px; box-shadow: var(--workspace-shadow); }
.filter-card { align-items: flex-end; border-left: 1px solid var(--workspace-line); gap: 12px; margin-bottom: 14px; padding: 14px 16px; }
.filter-card label { color: #60758d; font-size: 12px; font-weight: 600; }
.filter-card input, .filter-card select { background: #fff; border-color: #cbd9e5; border-radius: 6px; color: var(--workspace-body); height: 36px; }
.filter-card input:focus, .filter-card select:focus, .modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus { border-color: #79afe5; box-shadow: 0 0 0 3px rgba(36, 117, 208, .10); outline: 0; }
.filter-card > .button[type="button"] { margin-left: auto; order: 8; }
.filter-card > .button[type="submit"] { margin-left: 0; min-width: 80px; order: 9; }
.section-title, .table-summary, .panel-title { background: #fff; min-height: 52px; padding: 13px 17px; }
.section-title h4, .panel-title h4 { color: #234563; font-size: 15px; font-weight: 700; }
th { background: #f5f8fc; color: #60748b; font-weight: 600; height: 43px; }
td { color: #2d4a66; height: 56px; }
tbody tr:hover { background: #f5faff; }
.table-action .text-button, .table-summary .text-button { color: #1f70c8; font-weight: 600; }
.primary-cell strong { color: #1d405f; font-size: 14px; }.primary-cell small { color: #8092a5; margin-top: 2px; }
.badge, .status-tag { border-radius: 999px; font-weight: 600; letter-spacing: 0; }
.pagination { color: #6b8198; }

/* 工作台不再有装饰性背景；用真实模块和整齐数据卡片建立层次。 */
#dashboardView::before { display: none; }
.dashboard-summary, .dashboard-metrics, .dashboard-content, .dashboard-bottom { gap: 14px; }
#dashboardSummary > .dashboard-stat { border-color: var(--workspace-line); border-radius: 10px; box-shadow: var(--workspace-shadow); height: 136px; min-height: 136px !important; padding: 16px; }
#dashboardSummary > .dashboard-stat:hover { border-color: #bcd5ec; box-shadow: 0 7px 18px rgba(28, 69, 108, .09); transform: translateY(-1px); }
#dashboardSummary > .dashboard-stat::after, .stat-visual { display: none; }
#dashboardSummary .dashboard-stat-copy { padding-right: 0; }
#dashboardSummary .stat-label { color: #36516a; font-size: 13px; }.dashboard-stat strong { font-size: 31px; }
.dashboard-metric { border-color: var(--workspace-line); border-radius: 10px; box-shadow: var(--workspace-shadow); min-height: 96px; }
.dashboard-metric-visual { opacity: .7; }
.dashboard-actions-panel, .dashboard-overview, .dashboard-activity, .workbench-alerts, .dashboard-no-alerts { border: 1px solid var(--workspace-line); border-radius: 10px; box-shadow: var(--workspace-shadow); }
.dashboard-actions { grid-auto-rows: 82px; }
.dashboard-action { min-height: 82px; padding: 13px 14px; }.dashboard-action:hover { background: #f6faff; box-shadow: none; transform: none; }
.panel-title { background: #fff; }.panel-icon { border-radius: 7px; }

/* 详情页：先识别业务对象，再分区读取字段和历史。 */
.detail-hero-tags { gap: 8px; margin: -6px 0 17px; }.detail-hero-tags .badge { padding: 5px 12px; }
.customer-profile-card { overflow: hidden; }
.customer-profile-identity { align-items: center; background: #fff; border-bottom: 1px solid #e5edf4; display: flex; gap: 13px; padding: 17px 20px; }
.customer-profile-icon { align-items: center; background: var(--workspace-blue-soft); border-radius: 9px; color: #1973ce; display: inline-flex; font-size: 22px; height: 44px; justify-content: center; width: 44px; }
.customer-profile-identity strong { color: #1b405f; display: block; font-size: 17px; }.customer-profile-identity small { color: #7890a7; display: block; font-size: 12px; margin-top: 3px; }
.customer-info-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.customer-info-group { min-width: 0; }.customer-info-group + .customer-info-group { border-left: 1px solid #e5edf4; }
.customer-info-group > header { align-items: center; border-bottom: 1px solid #e5edf4; display: flex; gap: 9px; min-height: 59px; padding: 11px 17px; }
.customer-info-group > header > span { align-items: center; background: #edf5ff; border-radius: 7px; color: #1974ce; display: inline-flex; height: 28px; justify-content: center; width: 28px; }
.customer-info-group h4 { color: #274b69; font-size: 14px; margin: 0; }.customer-info-group header small { color: #8294a7; display: block; font-size: 11px; margin-top: 2px; }
.customer-info-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.customer-info-fields .detail-field { border: 0; border-bottom: 1px solid #edf2f6; border-radius: 0; border-right: 1px solid #edf2f6; min-height: 72px; padding: 12px 15px; }
.customer-info-fields .detail-field:nth-child(3n) { border-right: 0; }.customer-info-fields .detail-field:nth-last-child(-n+3) { border-bottom: 0; }
.customer-info-fields .detail-field small { color: #8194a7; font-size: 11px; }.customer-info-fields .detail-field span { color: #244764; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.customer-profile-remark { align-items: flex-start; border-top: 1px solid #e5edf4; display: flex; gap: 10px; padding: 15px 19px; }.customer-profile-remark > span { color: #2675c7; font-size: 18px; }.customer-profile-remark small { color: #778da4; font-weight: 600; }.customer-profile-remark p { color: #36536d; line-height: 1.65; margin: 5px 0 0; white-space: pre-wrap; }
#customerDetail + #customerOperations { margin-top: 16px; }.timeline-item { border-left-color: #91bee8; }.project-row { border-color: #e4ecf3; }

/* 客户详情的跟进时间线：把人员、时间、沟通内容和下一步计划拆成清晰层级。 */
.customer-follow-timeline-item { border-left: 2px solid #b8daf4; margin-left: 10px; padding: 16px 18px 16px 24px; }
.customer-follow-timeline-item::before { background: #2583c8; box-shadow: 0 0 0 4px #e8f4fd; height: 10px; left: -6px; top: 21px; width: 10px; }
.customer-follow-head { align-items: center; display: flex; gap: 16px; justify-content: space-between; }
.customer-follow-head > div { align-items: center; display: flex; gap: 9px; min-width: 0; }
.customer-follow-head strong { color: #183d60; font-size: 15px; font-weight: 700; }
.customer-follow-type { background: #eaf4ff; border: 1px solid #cfe5fa; border-radius: 999px; color: #1672ba; font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 9px; white-space: nowrap; }
.customer-follow-head time { color: #6f879d; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.customer-follow-department { color: #7c91a5; font-size: 12px; margin-top: 7px; }
.customer-follow-content, .customer-follow-plan { border-radius: 7px; margin-top: 12px; padding: 10px 12px; }
.customer-follow-content { background: #f7fafc; border: 1px solid #e7eef4; }
.customer-follow-plan { background: #f0f7ff; border-left: 3px solid #65a8df; }
.customer-follow-content small, .customer-follow-plan small { color: #69839b; display: block; font-size: 11px; font-weight: 700; letter-spacing: .02em; margin-bottom: 4px; }
.customer-follow-content p, .customer-follow-plan p { color: #294c6b; font-size: 13px; line-height: 1.65; margin: 0; white-space: pre-wrap; }
@media (max-width: 620px) { .customer-follow-head { align-items: flex-start; flex-direction: column; gap: 8px; }.customer-follow-timeline-item { padding-right: 12px; } }

/* 项目档案与客户档案有共同语言，但保留阶段进度作为项目的主视觉。 */
.project-detail-page-inner { gap: 14px; }.project-detail-hero { border-color: var(--workspace-line); border-radius: 10px; box-shadow: var(--workspace-shadow); padding: 18px 21px; }
.project-detail-hero-icon { background: var(--workspace-blue-soft); border-radius: 10px; height: 60px; width: 60px; }.project-detail-hero-title h2 { font-size: 22px; }
.project-detail-page .project-detail-groups { gap: 14px; }.project-detail-page .project-detail-group, .project-detail-page .detail-section { border-color: var(--workspace-line); border-radius: 10px; box-shadow: var(--workspace-shadow); }
.project-detail-page .project-detail-group h4, .project-detail-page .detail-section-head { background: #fff; }
.project-detail-page .project-detail-field { min-height: 70px; }.project-detail-page .project-detail-field small { font-size: 11px; }.project-detail-page .project-detail-field strong { font-size: 13px; }
.project-detail-page .project-stage-catalog { padding: 20px 20px 14px; }.project-detail-page .project-stage-item small { display: none; }
.project-detail-page .project-stage-item { min-height: 74px; }.project-detail-page .project-stage-item:not(:last-child)::after { background: #d6e3ee; }
.project-detail-page .project-stage-item.active:not(:last-child)::after, .project-detail-page .project-stage-item.complete:not(:last-child)::after { background: #8fc0e6; }
.project-detail-page .project-stage-item strong { font-size: 12px; }.project-detail-page .project-stage-item b { height: 32px; width: 32px; }
.approval-history, .approval-record, .project-stage-change, .project-follow-record { border-color: #e6edf3; }

/* 导入、报表、系统管理和所有弹窗也使用相同的信息卡片与表单密度。 */
.performance-metrics .metric-card, .performance-panels > section, .report-metric { border-color: var(--workspace-line); border-radius: 8px; box-shadow: none; }
.performance-panel-head { background: #f7faff; }.performance-tree-department { border-color: #dfe8f0; }.performance-tree-head { background: #fafcff; }
.drop-zone { border-color: #8bb7df; border-radius: 9px; min-height: 158px; }.drop-zone:hover { background: #f5faff; }.callout { background: #f4f9fe; border-color: #cce1f2; color: #41627e; }
.import-history-head, .import-history-item, .import-review-row { border-color: #e2eaf1; }
.admin-grid .content-card { overflow: hidden; }.admin-task-list { padding: 16px; }.admin-list { padding: 0 16px 16px; }
.admin-users-card { grid-column: 1 / -1; }.admin-users-table { min-width: 860px; }.admin-table-actions, .admin-row-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }.admin-table-actions { min-width: 240px; }.admin-manage-row > div:first-child { display: grid; gap: 4px; }.admin-manage-row strong { color: #244866; }.admin-manage-row .badge { margin: 0; }.text-button.danger { color: #c4463d; }.text-button.danger:hover { color: #9c302a; }.admin-list-row.admin-manage-row { align-items: center; }
dialog { border: 1px solid #dbe5ee; border-radius: 12px; box-shadow: 0 18px 48px rgba(19, 51, 82, .22); } dialog::backdrop { background: rgba(14, 37, 60, .48); }
.modal-head { background: #fff; border-bottom-color: #e1eaf1; min-height: 58px; }.modal-head h3 { color: #1f4262; font-size: 17px; }.modal-form { gap: 14px; }.modal-form label { color: #526e87; font-size: 12px; font-weight: 600; }.modal-form input, .modal-form select, .modal-form textarea { border-color: #c9d8e5; border-radius: 6px; }.modal-actions { border-top-color: #e4ecf2; margin-top: 5px; padding-top: 14px; }

@media (max-width: 1180px) { .customer-info-groups { grid-template-columns: 1fr; }.customer-info-group + .customer-info-group { border-left: 0; border-top: 1px solid #e5edf4; } }
@media (max-width: 960px) { .filter-card { flex-wrap: wrap; }.filter-card label { flex: 1 1 180px; }.filter-card > .button[type="button"] { margin-left: 0; }.customer-info-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }.customer-info-fields .detail-field:nth-child(3n) { border-right: 1px solid #edf2f6; }.customer-info-fields .detail-field:nth-child(2n) { border-right: 0; }.customer-info-fields .detail-field:nth-last-child(-n+3) { border-bottom: 1px solid #edf2f6; }.customer-info-fields .detail-field:nth-last-child(-n+2) { border-bottom: 0; } }
@media (max-width: 600px) { .page-view { padding: 18px 14px 32px; }.page-heading { gap: 14px; }.heading-actions { flex-wrap: wrap; justify-content: flex-start; }.customer-info-fields { grid-template-columns: 1fr; }.customer-info-fields .detail-field, .customer-info-fields .detail-field:nth-child(3n) { border-right: 0; border-bottom: 1px solid #edf2f6; }.customer-info-fields .detail-field:last-child { border-bottom: 0; }.project-detail-page .project-stage-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }.project-detail-page .project-stage-item:not(:last-child)::after { display: none; } }

/* Reference-page refinement v6: 审批、跟进与客户/项目档案对应统一的业务工作台布局。 */
.approval-page { max-width: 1240px; }
.approval-workspace { overflow: hidden; }
.approval-center-loading, .approval-center-empty { align-items: center; color: #7890a7; display: flex; justify-content: center; min-height: 180px; padding: 28px; text-align: center; }
.approval-center-tabs { align-items: center; border-bottom: 1px solid #dce7f0; display: flex; gap: 30px; min-height: 65px; padding: 0 20px; }
.approval-center-tabs button { background: transparent; border: 0; border-bottom: 3px solid transparent; color: #627c95; cursor: pointer; font-size: 15px; font-weight: 700; height: 65px; padding: 0 10px; }
.approval-center-tabs button.active { border-bottom-color: #1977df; color: #146ac8; }.approval-center-tabs button span { background: #e7f1ff; border-radius: 999px; font-size: 12px; margin-left: 6px; padding: 2px 7px; }
.approval-center-note { background: #edf6ff; border: 1px solid #c8dff5; border-radius: 8px; color: #396584; margin: 17px 20px; padding: 14px 16px; }
.approval-center-note::before { color: #1674d5; content: "●"; font-size: 12px; margin-right: 9px; }.approval-center-list { display: grid; gap: 14px; padding: 0 20px 20px; }
.approval-work-item { align-items: center; border: 1px solid #d9e5ef; border-radius: 9px; display: grid; gap: 16px; grid-template-columns: 62px minmax(0, 1fr) auto; min-height: 126px; padding: 18px 20px; }
.approval-work-item:hover { border-color: #b9d7f1; box-shadow: 0 4px 14px rgba(25, 86, 140, .06); }.approval-file-icon { align-items: center; background: #e6f7f2; border-radius: 11px; color: #118a66; display: flex; font-family: Arial, sans-serif; font-size: 22px; font-weight: 800; height: 56px; justify-content: center; width: 56px; }
.approval-file-icon.project { background: #eaf2ff; color: #2778d3; }.approval-work-main strong { color: #1d4265; font-size: 16px; }.approval-work-main p { color: #7289a0; font-size: 13px; margin: 10px 0 0; }.approval-work-main i { border-left: 1px solid #b5c6d5; display: inline-block; height: 12px; margin: 0 10px; vertical-align: -2px; }
.approval-work-meta { align-items: flex-end; display: flex; flex-direction: column; gap: 13px; text-align: right; }.approval-work-meta small { color: #4d7194; font-size: 13px; line-height: 1.55; }.approval-work-meta .button { min-width: 132px; }
.approval-history-toolbar { align-items: center; border-bottom: 1px solid #e1eaf2; color: #597591; display: flex; justify-content: space-between; padding: 16px 20px; }.approval-history-filters { align-items: end; display: flex; flex-wrap: wrap; gap: 12px; }.approval-history-filters label { color: #54708a; display: grid; font-size: 12px; font-weight: 700; gap: 5px; }.approval-history-filters select { min-width: 135px; }.approval-history-filters .button { height: 38px; }.approval-history-list { display: grid; gap: 12px; padding: 16px 20px; }.approval-history-row { border: 1px solid #dbe6ef; border-radius: 9px; display: grid; gap: 9px; padding: 15px 17px; }.approval-history-top { align-items: center; display: flex; justify-content: space-between; gap: 15px; }.approval-history-top > div { align-items: center; color: #1f4568; display: flex; gap: 9px; }.approval-history-top time { color: #7188a0; font-size: 12px; white-space: nowrap; }.approval-history-target { align-items: center; color: #1e4264; display: flex; flex-wrap: wrap; gap: 9px; }.approval-history-target strong { font-size: 15px; }.approval-history-target span, .approval-history-meta { color: #748aa0; font-size: 12px; }.approval-history-meta { display: flex; flex-wrap: wrap; gap: 15px; }.approval-history-row p { background: #f7faff; border-radius: 6px; color: #526e88; font-size: 13px; line-height: 1.6; margin: 0; padding: 8px 10px; }.approval-history-row .badge { margin: 0; }

/* 图示跟进记录：以客户、沟通内容与下一步为主要扫描列。 */
.follow-list-page .filter-card { grid-template-columns: 1.1fr 1.1fr .85fr auto auto; }.follow-table-card { overflow: hidden; }.follow-table-card .table-summary { align-items: center; color: #244767; display: flex; font-size: 16px; font-weight: 700; min-height: 58px; }.follow-table-card table { min-width: 1080px; }.follow-table-card th { font-size: 13px; }.follow-time { color: #486581; font-variant-numeric: tabular-nums; white-space: nowrap; }.follow-content { color: #405d78; line-height: 1.65; max-width: 270px; }.follow-type-chip { background: #edf5ff; border-radius: 999px; color: #2778c9; display: inline-flex; font-size: 12px; font-weight: 700; padding: 5px 10px; white-space: nowrap; }.follow-type-chip.visit { background: #e7f8f1; color: #18875e; }.follow-type-chip.wechat { background: #eff2f7; color: #536d86; }.follow-type-chip.meeting { background: #f1ebff; color: #7655bb; }.follow-type-chip.email { background: #fff2df; color: #ae711c; }.follow-type-chip.other { background: #f2f5f8; color: #687e93; }

/* 客户档案用参考图中的大卡片、标签与页签呈现。 */
#customerDetail.detail-grid { display: block; margin-bottom: 0; }
.customer-detail-tabs { margin-top: 16px; overflow: hidden; }.customer-detail-tab-nav { border-bottom: 1px solid #dce6ef; display: flex; gap: 12px; min-height: 54px; padding: 0 18px; }.customer-detail-tab-nav button { background: transparent; border: 0; border-bottom: 3px solid transparent; color: #5d7790; cursor: pointer; font-size: 14px; font-weight: 700; padding: 0 14px; }.customer-detail-tab-nav button.active { border-bottom-color: #1474dc; color: #1474dc; }.customer-detail-tab-panel > .section-title { border-bottom-color: #e4ecf3; }.customer-detail-tab-panel .section-title > div { display: grid; gap: 2px; }.customer-detail-tab-panel .section-title span { color: #8294a6; font-size: 12px; }
.customer-profile-card { border-radius: 10px; }.customer-profile-identity { background: #fff; padding: 18px 21px; }.customer-info-groups { grid-template-columns: 1fr; }.customer-info-group + .customer-info-group { border-left: 0; border-top: 1px solid #e5edf4; }.customer-info-group > header { background: #fff; min-height: 61px; }.customer-info-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }.customer-info-fields .detail-field { min-height: 76px; }.customer-profile-remark { background: #fff; }
.customer-info-heading { align-items: center; background: #fff; border-bottom: 1px solid #e5edf4; display: flex; gap: 10px; min-height: 72px; padding: 13px 19px; }.customer-info-heading > span { align-items: center; background: #ecf5ff; border-radius: 7px; color: #1776d4; display: inline-flex; font-size: 17px; height: 31px; justify-content: center; width: 31px; }.customer-info-heading h4 { color: #244866; font-size: 15px; margin: 0; }.customer-info-heading small { color: #8194a7; display: block; font-size: 12px; margin-top: 2px; }

/* 项目详情保持独立页，参考图的顶部对象区、阶段线和四组信息卡片。 */
.project-detail-page { max-width: 1260px; }.project-detail-page .page-heading { margin-bottom: 14px; }.project-detail-page .project-detail-hero { border-radius: 11px; min-height: 102px; }.project-detail-hero p { color: #6d849b; font-size: 13px; }.project-detail-page .project-detail-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }.project-detail-page .project-detail-group h4::before, .project-detail-page .detail-section-head h4::before { color: #1977dc; content: "◈"; font-size: 15px; margin-right: 8px; }.project-detail-page .project-detail-field { background: #fff; }.project-detail-page .project-detail-field small { color: #7e91a5; }.project-detail-page .project-detail-field strong { color: #274967; }.project-detail-page .project-stage-catalog { padding-top: 22px; }.project-detail-page .project-stage-item.active b { box-shadow: 0 0 0 4px #deeffd; }

@media (max-width: 800px) { .approval-work-item { grid-template-columns: 48px minmax(0, 1fr); padding: 14px; }.approval-file-icon { height: 46px; width: 46px; }.approval-work-meta { align-items: flex-start; grid-column: 2; text-align: left; }.customer-info-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }.project-detail-page .project-detail-groups { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .approval-history-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }.approval-history-filters { width: 100%; }.approval-history-filters label { flex: 1; }.approval-history-filters select { min-width: 0; width: 100%; }.admin-row-actions { justify-content: flex-end; } }
@media (max-width: 560px) { .approval-center-tabs { gap: 6px; padding: 0 8px; }.approval-center-tabs button { font-size: 13px; padding: 0 8px; }.approval-center-note, .approval-center-list { margin-left: 12px; margin-right: 12px; }.approval-center-list { padding-left: 0; padding-right: 0; }.customer-info-fields { grid-template-columns: 1fr; }.customer-info-fields .detail-field { border-right: 0; }.customer-detail-tab-nav { overflow-x: auto; padding: 0 6px; }.customer-detail-tab-nav button { flex: 0 0 auto; }.follow-list-page .filter-card { display: flex; } }

/* 客户档案参考页：对象化抬头、三栏信息卡与操作/记录工作区。 */
#customerDetailView { max-width: none; padding-top: 18px; position: relative; }
#customerDetailView::before { background: linear-gradient(135deg, rgba(222, 237, 255, .78), rgba(244, 250, 255, .1) 58%); content: ""; height: 292px; left: 0; pointer-events: none; position: absolute; right: 0; top: 0; z-index: -1; }
.customer-detail-hero { align-items: flex-start; display: flex; justify-content: space-between; min-height: 194px; padding: 4px 8px 20px; position: relative; }
.customer-detail-hero::after { background: linear-gradient(180deg, rgba(164, 204, 252, .32), rgba(255,255,255,0)); border-radius: 10px 10px 0 0; box-shadow: -78px 65px 0 -10px rgba(199, 223, 252, .19), 76px 78px 0 -13px rgba(199, 223, 252, .18); content: ""; height: 153px; opacity: .75; position: absolute; right: 24%; top: 31px; transform: skewY(-28deg); width: 36px; }
.customer-detail-hero-copy, .customer-detail-hero-actions { position: relative; z-index: 1; }
.customer-detail-hero .back-link { color: #1477dd; font-size: 14px; font-weight: 700; margin: 0 0 26px; }
.customer-detail-identity { align-items: center; display: flex; gap: 18px; }
.customer-detail-identity-icon { align-items: center; background: linear-gradient(145deg, #dceeff, #f6fbff); border-radius: 13px; box-shadow: 0 12px 25px rgba(76, 142, 214, .13); color: #1979df; display: flex; font-size: 33px; height: 87px; justify-content: center; width: 91px; }
.customer-detail-identity h3 { color: #102e54; font-size: 31px; letter-spacing: -.035em; line-height: 1.25; margin: 0; }
.customer-detail-identity p { color: #637d9e; font-size: 17px; margin: 6px 0 13px; }
.customer-detail-hero .detail-hero-tags { margin: 0; }
.customer-detail-hero .detail-hero-tags .badge { align-items: center; border: 0; box-shadow: none; display: inline-flex; font-size: 14px; gap: 5px; padding: 8px 18px; }
.customer-detail-hero .detail-hero-tags .badge::before { color: currentColor; content: "●"; font-size: 10px; }
.customer-detail-hero .detail-hero-tags .badge.level-tag { background: #f0eaff; color: #7145d7; }.customer-detail-hero .detail-hero-tags .badge.contracted { background: #e2f8ec; color: #138a5c; }
.customer-detail-hero-actions { display: flex; gap: 14px; margin-top: 51px; }.customer-detail-hero-actions .button { align-items: center; border-radius: 9px; display: inline-flex; font-size: 15px; font-weight: 700; height: 54px; justify-content: center; min-width: 148px; padding: 0 20px; }.customer-detail-hero-actions .button.primary { box-shadow: 0 9px 18px rgba(20, 109, 223, .23); }
.customer-profile-card { background: rgba(255,255,255,.96); border: 1px solid #dce8f2; border-radius: 13px; box-shadow: 0 10px 32px rgba(34, 84, 132, .07); }
.customer-info-heading { min-height: 109px; padding: 21px 29px; }.customer-info-heading > span { background: linear-gradient(145deg, #ddecff, #f4f9ff); border-radius: 13px; box-shadow: 0 7px 15px rgba(29, 113, 219, .09); font-size: 24px; height: 64px; width: 64px; }.customer-info-heading h4 { color: #142f51; font-size: 23px; }.customer-info-heading small { color: #617e9d; font-size: 16px; margin-top: 5px; }
.customer-info-fields { margin: 0 27px; padding: 0 0 10px; }.customer-info-fields .detail-field { align-items: center; border-color: #e6edf5; display: flex; gap: 16px; min-height: 95px; padding: 17px 10px; }.customer-info-fields .detail-field > i { color: #8da3c0; font-size: 22px; font-style: normal; text-align: center; width: 35px; }.customer-info-fields .detail-field > div { display: grid; gap: 5px; min-width: 0; }.customer-info-fields .detail-field small { color: #7890ac; font-size: 14px; font-weight: 500; }.customer-info-fields .detail-field span { color: #142f52; font-size: 17px; font-weight: 700; }
.customer-profile-remark { background: linear-gradient(100deg, #eff7ff, #eaf4ff); border: 0; border-radius: 13px; margin: 0 27px 20px; min-height: 82px; padding: 17px 26px; }.customer-profile-remark > span { align-self: center; color: #1574dc; font-size: 23px; }.customer-profile-remark small { color: #1872cf; font-size: 14px; }.customer-profile-remark p { color: #1d395c; font-size: 16px; margin-top: 6px; }
.customer-operations-card { border: 1px solid #dce8f2; border-radius: 13px; box-shadow: 0 8px 26px rgba(34, 84, 132, .06); overflow: hidden; }.customer-operations-card > header { align-items: center; display: flex; gap: 18px; justify-content: space-between; min-height: 78px; padding: 13px 23px; }.customer-operation-heading { align-items: center; display: flex; gap: 12px; min-width: 0; }.customer-operation-heading > span { align-items: center; background: #edf5ff; border-radius: 9px; color: #1477df; display: inline-flex; font-size: 20px; height: 42px; justify-content: center; width: 42px; }.customer-operations-card h4 { color: #183b5c; font-size: 16px; margin: 0; }.customer-operations-card p { color: #7890a8; font-size: 12px; margin: 3px 0 0; }.customer-operation-actions { display: flex; flex-wrap: wrap; gap: 9px; }.customer-operation-actions .button { height: 38px; min-width: 112px; }
.customer-detail-tabs { border: 1px solid #dce8f2; border-radius: 13px; box-shadow: 0 8px 26px rgba(34, 84, 132, .06); margin-top: 28px; overflow: hidden; }.customer-detail-tab-nav { min-height: 72px; padding: 0 27px; }.customer-detail-tab-nav button { align-items: center; display: inline-flex; font-size: 17px; gap: 11px; padding: 0 20px; }.customer-detail-tab-nav button span { color: #587793; font-size: 22px; }.customer-detail-tab-nav button.active span { color: #1677e9; }.customer-detail-tab-panel > .section-title { align-items: center; min-height: 104px; padding: 21px 27px; }.customer-detail-tab-panel > .section-title h4 { color: #153453; font-size: 21px; }.customer-detail-tab-panel > .section-title h4::before { color: #1878eb; content: "●"; font-size: 13px; margin-right: 9px; vertical-align: 2px; }.customer-detail-tab-panel .section-title span { color: #7188a5; font-size: 15px; }.customer-detail-tab-panel .section-title > .button { height: 52px; min-width: 142px; }
.customer-detail-tab-panel .empty-state { align-content: center; min-height: 350px; padding: 44px 20px; }.customer-detail-tab-panel .empty-state-icon { align-items: center; background: radial-gradient(circle at 64% 65%, #247ee8 0 21%, transparent 22%), linear-gradient(145deg, #edf5ff, #dcecff); border-radius: 30px 30px 24px 24px; box-shadow: 0 11px 21px rgba(56, 123, 206, .12); color: #77adfa; display: flex; font-size: 56px; height: 116px; justify-content: center; margin-bottom: 18px; width: 142px; }.customer-detail-tab-panel .empty-state strong { color: #183656; font-size: 21px; }.customer-detail-tab-panel .empty-state small { color: #7b91aa; font-size: 15px; margin-top: 10px; }
.project-summary { display: grid; gap: 10px; padding: 16px 20px 20px; }.customer-project-row { align-items: center; background: #fff; border: 1px solid #dfe9f2; border-radius: 10px; display: grid; gap: 18px; grid-template-columns: minmax(220px, 1.4fr) minmax(330px, 1fr) auto; min-height: 82px; padding: 14px 16px; transition: border-color .18s, box-shadow .18s, transform .18s; }.customer-project-row:hover { border-color: #a9cceb; box-shadow: 0 7px 18px rgba(44, 108, 164, .08); transform: translateY(-1px); }.customer-project-main { min-width: 0; }.customer-project-main > strong { color: #1a405f; display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.customer-project-main > div { align-items: center; color: #7990a6; display: flex; font-size: 12px; gap: 8px; margin-top: 7px; }.customer-project-main i { background: #c7d5e2; height: 12px; width: 1px; }.customer-project-state { align-items: center; display: grid; gap: 14px; grid-template-columns: 1fr 1fr 1.25fr; }.customer-project-state > div { display: grid; gap: 4px; min-width: 0; }.customer-project-state small { color: #8196aa; font-size: 11px; }.customer-project-state strong, .customer-project-state time { color: #345875; font-size: 12px; font-weight: 600; white-space: nowrap; }.customer-project-state .badge { margin: 0; width: fit-content; }.customer-project-open { justify-self: end; white-space: nowrap; }
.customer-detail-tab-panel .pagination { border-top: 1px solid #e3ebf3; min-height: 68px; padding: 14px 27px; }.customer-detail-tab-panel .pagination button { border-radius: 8px; height: 38px; min-width: 94px; }
dialog:has(.project-create-form) { border: 0; border-radius: 14px; max-width: 972px; overflow: hidden; width: min(94vw, 972px); }.modal-head:has(.project-create-title-icon) { min-height: 102px; padding: 20px 32px; }.modal-head #modalTitle:has(.project-create-title-icon) { align-items: center; display: flex; gap: 15px; }.project-create-title-icon { align-items: center; background: linear-gradient(145deg, #ddedff, #f6fbff); border-radius: 10px; color: #1d80e7; display: inline-flex; font-size: 25px; height: 58px; justify-content: center; width: 58px; }.modal-head #modalTitle > span:last-child { color: #143153; font-size: 23px; }.modal-head #modalTitle small { color: #7087a3; display: block; font-size: 14px; font-weight: 500; margin-top: 5px; }.project-create-form { gap: 20px; padding: 25px 32px 26px; }.project-create-form label { color: #294a6e; font-size: 16px; }.project-create-form label b { color: #ed4c56; margin-left: 5px; }.project-create-form input, .project-create-form select { border-color: #bfd5e9; border-radius: 8px; font-size: 16px; height: 49px; padding: 0 16px; }.project-create-form textarea { border-color: #bfd5e9; border-radius: 8px; font-size: 16px; min-height: 106px; padding: 13px 16px; }.project-create-form .modal-note { background: #eef8ff; border: 0; border-radius: 9px; color: #547493; font-size: 14px; line-height: 1.7; margin: 0; padding: 16px 20px; }.project-create-form .modal-note::before { color: #2e93f2; content: "●"; font-size: 16px; margin-right: 12px; }.project-create-form .modal-actions { margin-left: -32px; margin-right: -32px; padding: 20px 32px 0; }.project-create-form .modal-actions .button { border-radius: 8px; font-size: 16px; height: 52px; min-width: 106px; }

@media (max-width: 900px) { .customer-detail-hero { min-height: auto; }.customer-detail-hero::after { opacity: .35; right: 17%; }.customer-detail-hero-actions { margin-top: 28px; }.customer-info-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }.customer-info-fields .detail-field:nth-child(3n) { border-right: 1px solid #e6edf5; }.customer-info-fields .detail-field:nth-child(2n) { border-right: 0; } }
@media (max-width: 640px) { .customer-detail-hero { flex-direction: column; gap: 18px; }.customer-detail-hero::after { display: none; }.customer-detail-hero-actions { margin-top: 0; width: 100%; }.customer-detail-hero-actions .button { flex: 1; min-width: 0; }.customer-detail-identity { align-items: flex-start; }.customer-detail-identity-icon { height: 63px; width: 63px; }.customer-detail-identity h3 { font-size: 23px; }.customer-detail-identity p { font-size: 13px; }.customer-info-heading { min-height: 84px; padding: 14px 18px; }.customer-info-heading h4 { font-size: 18px; }.customer-info-fields { grid-template-columns: 1fr; margin: 0 18px; }.customer-info-fields .detail-field, .customer-info-fields .detail-field:nth-child(3n) { border-right: 0; }.customer-profile-remark { margin-left: 18px; margin-right: 18px; }.customer-detail-tabs { margin-top: 18px; }.customer-detail-tab-nav { padding: 0 8px; }.customer-detail-tab-nav button { font-size: 14px; padding: 0 12px; }.customer-detail-tab-panel > .section-title { padding: 16px 18px; }.customer-detail-tab-panel .empty-state { min-height: 270px; }.customer-operation-actions { flex-wrap: wrap; }.customer-operation-actions .button { flex: 1; min-width: 140px; } dialog:has(.project-create-form) { width: min(96vw, 972px); }.modal-head:has(.project-create-title-icon), .project-create-form { padding-left: 20px; padding-right: 20px; }.project-create-form .modal-actions { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; } }

/* 新建项目弹窗：操作栏必须可见，不能因内容高度被裁切。 */
dialog:has(.project-create-form) {
  max-height: min(92vh, 860px);
  overflow-y: auto;
}
.modal-head:has(.project-create-title-icon) { min-height: 88px; padding-top: 15px; padding-bottom: 15px; }
.project-create-title-icon { height: 54px; width: 54px; }
.project-create-form { gap: 14px; padding-top: 20px; padding-bottom: 18px; }
.project-create-form input, .project-create-form select { height: 45px; }
.project-create-form textarea { min-height: 82px; }
.project-create-form .modal-note { line-height: 1.55; padding: 11px 16px; }
.project-create-form .modal-actions { padding-top: 14px; }
.project-create-form .modal-actions .button { height: 48px; }

/* 客户档案采用同一套线性 SVG 图标，避免文字符号混杂。 */
.customer-detail-identity-icon { font-size: 0; }
.customer-field-icon, .customer-heading-svg, .customer-remark-svg, .customer-identity-svg { align-items: center; color: #7f9cbd; display: inline-flex; flex: 0 0 auto; justify-content: center; }
.customer-field-icon { height: 35px; width: 35px; }
.customer-field-icon svg { height: 21px; width: 21px; }
.customer-heading-svg { background: linear-gradient(145deg, #ddecff, #f4f9ff); border-radius: 13px; box-shadow: 0 7px 15px rgba(29, 113, 219, .09); color: #1776d4; height: 64px; width: 64px; }
.customer-heading-svg svg { height: 28px; width: 28px; }
.customer-remark-svg { align-self: center; color: #1574dc; height: 28px; width: 28px; }
.customer-remark-svg svg { height: 22px; width: 22px; }
.customer-identity-svg { color: #1979df; height: 87px; width: 91px; }
.customer-identity-svg svg { height: 41px; width: 41px; }
.customer-info-heading > .customer-heading-svg { font-size: 0; }
.customer-info-fields .detail-field > i.customer-field-icon { font-size: 0; }

/* 全局跟进列表的“查看”只打开由该列表项数据组成的独立详情页。 */
.follow-detail-page { max-width: 1240px; padding-top: 28px; }
.follow-detail-hero { background: linear-gradient(135deg, #eef7ff 0%, #fbfdff 62%, #f1f7ff 100%); border: 1px solid #dce9f5; border-radius: 14px; box-shadow: 0 10px 28px rgba(34, 84, 132, .06); padding: 22px 28px 30px; }
.follow-detail-hero .back-link { color: #1477dd; font-size: 14px; margin-bottom: 22px; }
.follow-detail-title-row { align-items: center; display: flex; gap: 15px; }
.follow-detail-icon { align-items: center; background: linear-gradient(145deg, #dbeeff, #f7fbff); border-radius: 12px; color: #1776d9; display: inline-flex; height: 62px; justify-content: center; width: 62px; }
.follow-detail-icon svg { height: 31px; width: 31px; }
.follow-detail-title-row h3 { color: #153455; font-size: 26px; margin: 0; }.follow-detail-title-row p { color: #6d86a2; margin: 5px 0 0; }.follow-detail-title-row .follow-type-chip { margin-left: auto; }
.follow-detail-card { background: #fff; border: 1px solid #dce8f2; border-radius: 13px; box-shadow: none; margin-top: 25px; overflow: hidden; }
.follow-detail-card > header { align-items: center; border-bottom: 1px solid #e5edf4; display: flex; justify-content: space-between; min-height: 84px; padding: 18px 24px; }.follow-detail-card > header h4, .follow-detail-section h4 { color: #1b3b5b; font-size: 17px; margin: 0; }.follow-detail-card > header p { color: #7890aa; font-size: 13px; margin: 4px 0 0; }
.follow-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }.follow-detail-grid > div { border-bottom: 1px solid #e8eef5; border-right: 1px solid #e8eef5; display: grid; gap: 5px; min-height: 104px; padding: 18px 21px; }.follow-detail-grid > div:last-child { border-right: 0; }.follow-detail-grid small { color: #7a91ab; font-size: 13px; }.follow-detail-grid strong { color: #173757; font-size: 16px; overflow-wrap: anywhere; }.follow-detail-grid span { color: #7289a2; font-size: 13px; }
.follow-detail-section { border-bottom: 1px solid #e8eef5; padding: 22px 24px; }.follow-detail-section:last-child { border-bottom: 0; }.follow-detail-section h4::before { color: #1d7be1; content: "●"; font-size: 11px; margin-right: 8px; vertical-align: 1px; }.follow-detail-section p { color: #415f7c; line-height: 1.8; margin: 12px 0 0; white-space: pre-wrap; }
@media (max-width: 760px) { .follow-detail-hero { padding: 18px; }.follow-detail-title-row { align-items: flex-start; flex-wrap: wrap; }.follow-detail-title-row .follow-type-chip { margin-left: 77px; }.follow-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.follow-detail-grid > div:nth-child(2n) { border-right: 0; }.follow-detail-card > header { align-items: flex-start; gap: 14px; }.follow-detail-customer-button { flex: 0 0 auto; } }

/* 客户移交：将敏感归属变更明确呈现为独立业务操作。 */
dialog:has(.customer-transfer-form) { border: 0; border-radius: 14px; max-width: 660px; overflow: hidden; width: min(94vw, 660px); }
.modal-head:has(.transfer-title-icon) { min-height: 94px; padding: 17px 28px; }.modal-head #modalTitle:has(.transfer-title-icon) { align-items: center; display: flex; gap: 14px; }.transfer-title-icon { align-items: center; background: linear-gradient(145deg, #dceeff, #f8fbff); border-radius: 11px; color: #1979df; display: inline-flex; height: 54px; justify-content: center; width: 54px; }.transfer-title-icon svg { height: 27px; width: 27px; }.modal-head #modalTitle > span:last-child { color: #143153; font-size: 21px; }.modal-head #modalTitle small { color: #7087a3; display: block; font-size: 13px; font-weight: 500; margin-top: 4px; }
.customer-transfer-form { gap: 18px; padding: 23px 28px 0; }.customer-transfer-form label { color: #294a6e; font-size: 15px; }.customer-transfer-form label b { color: #ec4b55; margin-left: 4px; }.customer-transfer-form label > small { color: #8195aa; font-size: 12px; font-weight: 400; margin-top: 2px; }.customer-transfer-form select, .customer-transfer-form textarea { border-color: #bfd6eb; border-radius: 8px; font-size: 15px; }.customer-transfer-form select { height: 46px; }.customer-transfer-form textarea { min-height: 94px; padding: 12px 14px; }.transfer-customer-summary { align-items: center; background: linear-gradient(105deg, #eef7ff, #f9fcff); border: 1px solid #d4e6f7; border-radius: 10px; display: flex; gap: 14px; padding: 14px 16px; }.transfer-customer-icon { align-items: center; background: #fff; border-radius: 9px; color: #1979df; display: inline-flex; height: 45px; justify-content: center; width: 45px; }.transfer-customer-icon svg { height: 23px; width: 23px; }.transfer-customer-summary div { display: grid; gap: 3px; min-width: 0; }.transfer-customer-summary small { color: #7088a3; font-size: 12px; }.transfer-customer-summary strong { color: #193b5d; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.transfer-customer-summary span { color: #7188a0; font-size: 13px; }.transfer-note { background: #fff8e8; border: 1px solid #f4d88f; border-radius: 8px; color: #7b622c; font-size: 13px; line-height: 1.65; margin: 0; padding: 12px 14px; }.transfer-note::before { color: #d89518; content: "●"; font-size: 11px; margin-right: 8px; }.customer-transfer-form .modal-actions { background: #fff; border-top: 1px solid #e4edf5; margin: 0 -28px; padding: 16px 28px 18px; }.customer-transfer-form .modal-actions .button { border-radius: 8px; font-size: 15px; height: 46px; min-width: 106px; }
@media (max-width: 560px) { .modal-head:has(.transfer-title-icon), .customer-transfer-form { padding-left: 19px; padding-right: 19px; }.customer-transfer-form .modal-actions { margin-left: -19px; margin-right: -19px; padding-left: 19px; padding-right: 19px; }.transfer-customer-summary span { font-size: 12px; } }

/* 业务详情精修：客户信息与项目详情统一为可扫描的分组档案卡。 */
#customerDetail .customer-detail-groups { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#customerDetail .customer-detail-group { background: rgba(255,255,255,.98); border: 1px solid #dce8f2; border-radius: 11px; box-shadow: 0 5px 18px rgba(34, 84, 132, .055); overflow: hidden; }
#customerDetail .customer-detail-group h4 { background: linear-gradient(90deg, #f8fbff, #fff); border-bottom: 1px solid #e6edf4; color: #244a6c; font-size: 15px; margin: 0; padding: 15px 18px; }
#customerDetail .customer-detail-group h4::before { color: #1979df; content: "◇"; font-size: 14px; margin-right: 9px; }
#customerDetail .customer-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#customerDetail .customer-detail-field { border-bottom: 1px solid #e8eef5; border-right: 1px solid #e8eef5; display: grid; gap: 6px; min-height: 78px; padding: 15px 17px; }
#customerDetail .customer-detail-field:nth-child(3n) { border-right: 0; }
#customerDetail .customer-detail-field:nth-last-child(-n+3) { border-bottom: 0; }
#customerDetail .customer-detail-field small { color: #7c91a8; font-size: 12px; font-weight: 500; }
#customerDetail .customer-detail-field strong { color: #193b5d; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
#customerDetail .customer-profile-remark { align-items: flex-start; background: linear-gradient(100deg, #eef7ff, #f9fcff); border: 1px solid #d9e9f6; border-radius: 11px; display: flex; gap: 11px; margin: 14px 0 0; min-height: auto; padding: 15px 18px; }
#customerDetail .customer-profile-remark small { color: #1976d2; font-size: 12px; font-weight: 700; }
#customerDetail .customer-profile-remark p { color: #36536f; font-size: 13px; line-height: 1.65; margin: 4px 0 0; }

/* 阶段记录以时间线表达“何时、谁、从哪个阶段流转到哪里”。 */
.project-detail-page .project-stage-timeline { padding: 19px 22px 8px; }
.project-detail-page .project-stage-event { display: grid; grid-template-columns: 30px minmax(0, 1fr); position: relative; }
.project-detail-page .project-stage-event:not(:last-child)::before { background: #d7e5f1; bottom: -4px; content: ""; left: 14px; position: absolute; top: 28px; width: 2px; }
.project-stage-marker { align-items: flex-start; display: flex; justify-content: center; padding-top: 10px; position: relative; z-index: 1; }
.project-stage-marker span { background: #227bdd; border: 4px solid #e8f3ff; border-radius: 50%; box-shadow: 0 0 0 1px #a4cbed; height: 12px; width: 12px; }
.project-stage-event-body { border: 1px solid #e0eaf3; border-radius: 10px; margin: 0 0 14px; overflow: hidden; }
.project-stage-event-head { align-items: flex-start; background: linear-gradient(90deg, #fbfdff, #f4f9ff); border-bottom: 1px solid #e6edf4; display: flex; gap: 16px; justify-content: space-between; padding: 12px 15px; }
.project-stage-event-head > div { display: grid; gap: 4px; }.project-stage-event-head small { color: #7b91a8; font-size: 11px; }
.project-stage-event-head strong { align-items: center; color: #1c4265; display: flex; font-size: 14px; gap: 8px; }.project-stage-event-head strong em { font-style: normal; }.project-stage-event-head strong i { color: #4b91d4; font-size: 17px; font-style: normal; font-weight: 400; }.project-stage-event-head time { color: #7189a1; font-size: 12px; padding-top: 4px; white-space: nowrap; }
.project-stage-event-meta { color: #637e98; font-size: 12px; padding: 10px 15px 0; }
.project-stage-evidence { background: #f8fbfe; border: 1px solid #edf2f6; border-radius: 7px; margin: 10px 15px; padding: 9px 11px; }.project-stage-evidence small, .project-stage-remark small { color: #7d91a7; display: block; font-size: 11px; }.project-stage-evidence p { color: #385774; font-size: 13px; line-height: 1.6; margin: 4px 0 0; white-space: pre-wrap; }
.project-stage-remark { border-top: 1px solid #edf2f6; color: #607a94; display: grid; font-size: 12px; gap: 3px; padding: 10px 15px; }

/* 审批记录筛选采用明确的查询区，避免原始表单控件堆叠。 */
.approval-history-toolbar { background: linear-gradient(120deg, #f8fbff, #fff); display: grid; gap: 15px; padding: 18px 20px; }
.approval-history-toolbar-title { align-items: center; display: flex; gap: 18px; justify-content: space-between; }.approval-history-toolbar-title h5 { color: #234967; font-size: 16px; margin: 0; }.approval-history-toolbar-title p { color: #7389a0; font-size: 12px; margin: 5px 0 0; }.approval-history-toolbar-title > strong { background: #edf6ff; border-radius: 999px; color: #54748f; font-size: 12px; font-weight: 600; padding: 7px 11px; white-space: nowrap; }.approval-history-toolbar-title > strong b { color: #1476da; font-size: 15px; }
.approval-history-filters { align-items: end; background: #fff; border: 1px solid #dce8f2; border-radius: 9px; display: grid; gap: 12px; grid-template-columns: minmax(170px, 220px) minmax(170px, 220px) auto; padding: 12px; }
.approval-history-filters label { gap: 6px; }.approval-history-filters label > span { color: #58728c; font-size: 12px; font-weight: 700; }.approval-history-filters select { background-color: #fbfdff; border-color: #cbdbea; height: 40px; min-width: 0; padding-left: 11px; width: 100%; }.approval-history-filter-actions { display: flex; gap: 8px; }.approval-history-filter-actions .button { height: 40px; min-width: 82px; }

@media (max-width: 900px) { #customerDetail .customer-detail-groups { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .approval-history-filters { grid-template-columns: 1fr 1fr; }.approval-history-filter-actions { grid-column: 1 / -1; justify-content: flex-end; }.project-detail-page .project-stage-timeline { padding: 16px 14px 4px; }.project-stage-event-head { flex-direction: column; gap: 6px; }.project-stage-event-head time { padding-top: 0; } }
@media (max-width: 560px) { #customerDetail .customer-detail-grid { grid-template-columns: 1fr; } #customerDetail .customer-detail-field, #customerDetail .customer-detail-field:nth-child(3n) { border-right: 0; } #customerDetail .customer-detail-field:nth-last-child(-n+3) { border-bottom: 1px solid #e8eef5; } #customerDetail .customer-detail-field:last-child { border-bottom: 0; }.approval-history-toolbar-title { align-items: flex-start; flex-direction: column; gap: 9px; }.approval-history-filters { grid-template-columns: 1fr; }.approval-history-filter-actions { grid-column: auto; justify-content: stretch; }.approval-history-filter-actions .button { flex: 1; }.project-detail-page .project-stage-event { grid-template-columns: 24px minmax(0, 1fr); }.project-detail-page .project-stage-event:not(:last-child)::before { left: 11px; }.project-stage-marker span { height: 10px; width: 10px; }.project-stage-event-body { margin-bottom: 12px; } }

/* 工作台最近动态：复用审计日志，仅以紧凑时间线呈现权限范围内最近八条。 */
.dashboard-bottom { align-items: start; }
.dashboard-activity #dashboardActivityRows { min-height: 172px; }.dashboard-activity .process-list { padding: 12px 20px 15px; }.dashboard-activity .process-list li { padding-bottom: 14px; }.dashboard-activity .process-list li:last-child { padding-bottom: 2px; }.dashboard-activity .process-list b { color: #284a68; font-size: 13px; }.dashboard-activity .process-list span { color: #6f869d; font-size: 12px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.dashboard-activity .process-list time { color: #9aabba; display: block; font-size: 11px; margin-top: 4px; }.dashboard-activity .dashboard-activity-empty { min-height: 172px; }

/* 客户画像：醒目的生成状态、独立的结论卡和可展开的依据。 */
#customerProfilePanel { background: linear-gradient(180deg, #f4f9ff 0, #fff 280px); }
.customer-profile-hero { align-items: center; background: linear-gradient(105deg, #fff 40%, #eef6ff); border-bottom: 1px solid #dbe9f9; display: flex; gap: 22px; min-height: 148px; padding: 24px 30px; position: relative; }
.customer-profile-hero::after { background: radial-gradient(circle at 18% 68%, #a9cfff 0 4px, transparent 5px), linear-gradient(125deg, transparent 20%, #dbeaff 21% 28%, transparent 29% 40%, #e5f1ff 41% 52%, transparent 53%); content: ""; height: 100%; opacity: .7; pointer-events: none; position: absolute; right: 19%; top: 0; width: 230px; }
.customer-profile-hero-icon { align-items: center; background: linear-gradient(145deg, #edf6ff, #dcecff); border-radius: 19px; color: #2171df; display: flex; flex: 0 0 90px; height: 90px; justify-content: center; position: relative; }
.customer-profile-hero-icon svg { height: 54px; width: 54px; }.customer-profile-hero-icon span { background: #1765d9; border: 3px solid #fff; border-radius: 50%; bottom: 0; color: #fff; font-size: 12px; font-weight: 800; line-height: 27px; position: absolute; right: -5px; text-align: center; width: 33px; }
.customer-profile-hero-copy { min-width: 0; position: relative; z-index: 1; }.customer-profile-hero-copy h4 { color: #173454; font-size: 27px; line-height: 1.2; margin: 0 0 8px; }.customer-profile-hero-copy p { color: #627b98; font-size: 14px; line-height: 1.55; margin: 0; max-width: 800px; }
.customer-profile-action { display: grid; flex: 0 0 auto; gap: 6px; justify-items: center; margin-left: auto; position: relative; z-index: 1; }.customer-profile-action .button { align-items: center; box-shadow: 0 4px 10px rgba(17, 99, 213, .18); display: inline-flex; gap: 9px; min-height: 46px; padding: 0 18px; }.customer-profile-action .button span { font-size: 23px; font-weight: 400; line-height: 1; }.customer-profile-action small { color: #7890aa; font-size: 11px; white-space: nowrap; }
.customer-profile-result { padding: 18px 25px 25px; }.customer-profile-meta { align-items: center; color: #758aa0; display: flex; flex-wrap: wrap; font-size: 12px; gap: 18px; margin-top: 13px; }.customer-profile-meta time { color: #7187a4; }
.customer-profile-status, .customer-profile-stale { border-radius: 999px; font-weight: 700; padding: 5px 12px; }.customer-profile-status.is-completed { background: #def8ea; color: #13895b; }.customer-profile-status.is-running { background: #e4f0ff; color: #1769c8; }.customer-profile-status.is-failed { background: #fff0ee; color: #ba4a43; }.customer-profile-status.is-pending { background: #edf3fa; color: #647e9c; }.customer-profile-stale { background: #fff4d8; color: #9b6914; display: inline-block; margin: 0 0 13px; }
.customer-profile-placeholder, .customer-profile-error, .customer-profile-progress { border: 1px solid #dce8f2; border-radius: 11px; margin: 0 0 14px; padding: 20px; }.customer-profile-placeholder { background: #f7fbff; }.customer-profile-placeholder strong, .customer-profile-error strong, .customer-profile-progress strong { color: #183b5c; display: block; font-size: 16px; }.customer-profile-placeholder p, .customer-profile-error p, .customer-profile-progress p { color: #6c849e; font-size: 13px; line-height: 1.65; margin: 7px 0 0; }.customer-profile-error { background: #fff8f8; border-color: #f2caca; }.customer-profile-error strong { color: #b73a3a; }.customer-profile-error p { color: #926161; }.customer-profile-progress { align-items: center; background: #f5faff; display: flex; gap: 12px; }.customer-profile-progress > span { animation: customer-profile-spin .9s linear infinite; border: 3px solid #cfe5fa; border-radius: 50%; border-top-color: #1677e9; height: 20px; width: 20px; }
@keyframes customer-profile-spin { to { transform: rotate(360deg); } }
.customer-profile-summary, .customer-profile-columns { display: grid; gap: 14px; }.customer-profile-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.customer-profile-section { background: #fff; border: 1px solid #d4e6fb; border-radius: 11px; box-shadow: 0 3px 13px rgba(41, 105, 179, .035); min-width: 0; padding: 14px 17px 15px; }.customer-profile-section header { align-items: center; display: flex; gap: 12px; margin-bottom: 10px; }.customer-profile-section-icon { align-items: center; background: #e4f1ff; border-radius: 10px; color: #2376df; display: inline-flex; flex: 0 0 42px; height: 42px; justify-content: center; }.customer-profile-section-icon svg { height: 23px; width: 23px; }.customer-profile-section h5 { color: #1d3858; font-size: 17px; margin: 0; }.customer-profile-section-badge { background: #e7f2ff; border-radius: 999px; color: #246cc8; font-size: 12px; font-weight: 700; margin-left: auto; padding: 5px 12px; white-space: nowrap; }.customer-profile-section p { color: #425a74; font-size: 14px; line-height: 1.68; margin: 0; white-space: pre-wrap; }.customer-profile-section ul { color: #425a74; font-size: 13px; line-height: 1.62; margin: 0; padding-left: 18px; }.customer-profile-section li { padding-left: 2px; }.customer-profile-section li + li { margin-top: 5px; }.customer-profile-empty-text { color: #8a9caf !important; }
.customer-profile-section--person .customer-profile-section-icon, .customer-profile-section--person .customer-profile-section-badge { background: #f0e9ff; color: #7949d0; }.customer-profile-section--opportunity { border-color: #d7eee6; }.customer-profile-section--opportunity .customer-profile-section-icon, .customer-profile-section--opportunity .customer-profile-section-badge { background: #e4f8ee; color: #12965f; }.customer-profile-section--opportunity li::marker { color: #12a36b; }.customer-profile-section--visit { border-color: #f6e2d6; }.customer-profile-section--visit .customer-profile-section-icon, .customer-profile-section--visit .customer-profile-section-badge { background: #fff0e5; color: #db692a; }.customer-profile-section--visit li::marker { color: #ec7840; }.customer-profile-section--gap .customer-profile-section-icon, .customer-profile-section--gap .customer-profile-section-badge { background: #e7f2ff; color: #2777d7; }.customer-profile-section--gap li::marker { color: #267bdf; }
.customer-profile-evidence { background: #f4f9ff; border: 1px solid #d4e6fb; border-radius: 10px; color: #365873; margin-top: 12px; padding: 0 15px; }.customer-profile-evidence summary { align-items: center; cursor: pointer; display: flex; gap: 10px; list-style: none; min-height: 46px; }.customer-profile-evidence summary::-webkit-details-marker { display: none; }.customer-profile-evidence-icon { align-items: center; background: #e2f0ff; border-radius: 7px; color: #2173da; display: inline-flex; font-size: 20px; height: 28px; justify-content: center; width: 28px; }.customer-profile-evidence summary strong { color: #214767; font-size: 13px; }.customer-profile-evidence summary small { color: #8298af; font-size: 12px; }.customer-profile-evidence-arrow { color: #2472cc; font-size: 25px; line-height: 1; margin-left: auto; transform: rotate(-90deg); transition: transform .2s; }.customer-profile-evidence[open] .customer-profile-evidence-arrow { transform: rotate(0); }.customer-profile-evidence section { border-top: 1px solid #e2ebf3; padding: 13px 0; }.customer-profile-evidence h5 { color: #315a7e; font-size: 13px; margin: 0 0 7px; }.customer-profile-evidence p, .customer-profile-evidence ol { color: #5a728a; font-size: 12px; line-height: 1.65; margin: 0; white-space: pre-wrap; }.customer-profile-evidence ol { padding-left: 19px; }.customer-profile-evidence li + li { margin-top: 9px; }.customer-profile-evidence li p { margin-top: 3px; }
@media (max-width: 900px) { .customer-profile-hero { flex-wrap: wrap; }.customer-profile-hero::after { display: none; }.customer-profile-action { justify-items: start; margin-left: 112px; }.customer-profile-columns { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .customer-profile-hero { gap: 14px; padding: 19px 18px; }.customer-profile-hero-icon { flex-basis: 62px; height: 62px; }.customer-profile-hero-icon svg { height: 39px; width: 39px; }.customer-profile-hero-icon span { border-width: 2px; font-size: 10px; line-height: 21px; width: 25px; }.customer-profile-hero-copy { flex: 1 1 200px; }.customer-profile-hero-copy h4 { font-size: 21px; }.customer-profile-hero-copy p { font-size: 12px; }.customer-profile-meta { gap: 8px; }.customer-profile-action { margin-left: 0; width: 100%; }.customer-profile-action .button { width: 100%; }.customer-profile-action small { display: none; }.customer-profile-result { padding: 16px 14px 20px; }.customer-profile-section { padding: 13px; }.customer-profile-section h5 { font-size: 15px; }.customer-profile-section-badge { font-size: 11px; padding: 4px 8px; }.customer-profile-evidence summary { flex-wrap: wrap; padding: 9px 0; }.customer-profile-evidence summary small { flex-basis: 100%; order: 3; padding-left: 38px; } }
