/* ============ 中视华凯 · 管理中心 ============ */
:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #1f2937;
  --ink-2: #6b7280;
  --line: #e5e7eb;
  --primary: #3b5bdb;
  --primary-dark: #2f4ac0;
  --danger: #e03131;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}
.hidden { display: none !important; }

/* ---------- 通用控件 ---------- */
.btn {
  border: none; border-radius: 8px; cursor: pointer;
  padding: 10px 16px; font-size: 14px; font-weight: 500;
  transition: all 0.15s ease; background: #eef1f6; color: var(--ink);
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-outline { background: #fff; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover:not(:disabled) { background: #eef2ff; }
.btn-soft { background: #e7f0fe; color: var(--primary); }
.btn-soft:hover:not(:disabled) { background: #d7e7fd; }
/* 日报看板工具栏：左组（新建/日期）居左，右组（操作按钮）居右 */
.dt-toolbar { flex: 0 0 100%; }
.toolbar.dt-toolbar { justify-content: space-between; }
.dt-toolbar .tb-group { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-text { background: transparent; color: var(--ink-2); }
.btn-text:hover { color: var(--ink); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }

input, select, textarea {
  width: 100%; padding: 10px 12px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 8px; outline: none;
  background: #fff; color: var(--ink); font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
label { display: block; font-weight: 500; margin-bottom: 6px; }
.field { margin-bottom: 14px; }

.form-error {
  background: #fff5f5; color: var(--danger); border: 1px solid #fecaca;
  padding: 8px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 13px;
}
.static-value { padding: 10px 0; color: var(--ink-2); }

/* ---------- 登录 / 完善信息 ---------- */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef2ff 0%, #f4f6fb 45%, #e7f5ff 100%);
  padding: 20px;
}
.auth-card {
  width: 380px; max-width: 100%;
  background: var(--card); border-radius: 16px; box-shadow: 0 8px 30px rgba(16, 24, 40, 0.1);
  padding: 34px 30px 26px;
}
.auth-brand { text-align: center; margin-bottom: 24px; }
.brand-logo {
  font-size: 26px; font-weight: 700; letter-spacing: 6px; color: var(--primary);
}
.brand-sub { margin-top: 6px; color: var(--ink-2); font-size: 13px; letter-spacing: 1px; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.code-row .btn { white-space: nowrap; }
.divider {
  display: flex; align-items: center; margin: 18px 0;
  color: var(--ink-2); font-size: 12px;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.divider span { padding: 0 12px; }
.btn-wechat { background: #07c160; color: #fff; }
.btn-wechat:hover:not(:disabled) { background: #06ad56; }
.auth-tip { margin-top: 16px; text-align: center; color: var(--ink-2); font-size: 12px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  height: 56px; display: flex; align-items: center; gap: 28px;
}
.topbar-brand {
  font-size: 18px; font-weight: 700; letter-spacing: 3px; color: var(--primary);
}
.topbar-brand .brand-img { height: 42px; width: auto; display: block; }
.brand-logo .brand-img-lg { height: 84px; width: auto; display: block; margin: 0 auto; }
.topbar-nav { display: flex; gap: 6px; flex: 1; }
.nav-btn {
  border: none; background: transparent; cursor: pointer;
  padding: 8px 14px; border-radius: 8px; font-size: 14px; color: var(--ink-2);
}
.nav-btn:hover { background: #f1f3f9; color: var(--ink); }
.nav-btn.active { background: #eef2ff; color: var(--primary); font-weight: 600; }
.topbar-user { display: flex; align-items: center; gap: 8px; }
.user-chip { font-size: 13px; color: var(--ink); }
.user-chip .role-badge { margin: 0 2px; }

/* ---------- 页面容器 ---------- */
.page-content { max-width: 1280px; margin: 0 auto; padding: 24px 20px 60px; }
.page-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; flex-wrap: wrap; gap: 12px;
}
.page-title { font-size: 20px; font-weight: 700; }
.page-sub { color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.toolbar select { width: auto; min-width: 150px; }

/* ---------- 徽标 ---------- */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; line-height: 1.5; white-space: nowrap;
}
.role-badge { background: #eef2ff; color: var(--primary); }
.center-badge { background: #f1f3f5; color: #495057; }

/* ---------- 首页看板 ---------- */
.board-hero {
  position: relative;
  background: url("../assets/banner-new.jpg") center / cover no-repeat #0b0b16;
  border-radius: var(--radius); color: #fff;
  padding: 52px 26px; margin-bottom: 20px;
  overflow: hidden;
}
.board-hero::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(6, 6, 18, 0.22);
}
.board-hero h1 {
  position: relative; z-index: 1;
  font-size: 24px; letter-spacing: 8px; font-weight: 600;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}
.board-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 1024px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .board-grid { grid-template-columns: 1fr; } }

.center-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border-top: 4px solid var(--accent, #3b5bdb);
  padding: 16px; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex; flex-direction: column;
}
.center-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(16,24,40,0.12); }
.cc-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.cc-index { font-size: 12px; color: var(--accent); font-weight: 700; }
.cc-title { font-size: 15px; font-weight: 700; }
.cc-slogan { font-size: 12px; color: var(--ink-2); }
.cc-body { display: flex; gap: 14px; flex: 1; }
.cc-col { flex: 1; min-width: 0; }
.cc-label {
  font-size: 12px; font-weight: 600; color: var(--accent);
  margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px dashed var(--line);
}
.cc-steps { list-style: none; }
.cc-steps li {
  font-size: 12px; color: var(--ink); background: #f6f7fb;
  border-radius: 5px; padding: 3px 8px; margin-bottom: 4px;
  text-align: center;
}
.cc-list { list-style: none; }
.cc-list li {
  font-size: 12px; color: #374151; padding: 2.5px 0 2.5px 16px; position: relative;
}
.cc-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-size: 11px;
}
.cc-foot {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px;
}
.cc-foot-item .k { font-size: 11px; color: var(--ink-2); margin-bottom: 3px; }
.cc-foot-item .v { font-size: 11.5px; color: #374151; line-height: 1.5; }

/* 中心主题色 */
.t1 { --accent: #7048e8; } .t2 { --accent: #2f9e44; } .t3 { --accent: #1971c2; }
.t4 { --accent: #0c8599; } .t5 { --accent: #e8590c; } .t6 { --accent: #d6336c; }
.t7 { --accent: #3b5bdb; } .t8 { --accent: #343a40; } .t9 { --accent: #087f5b; }

/* ---------- 图标卡片（首页看板） ---------- */
.tile-card {
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  border-top: 4px solid var(--tc, #3b5bdb);
  padding: 22px 20px 18px; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex; flex-direction: column;
}
.tile-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(16, 24, 40, 0.12); }
.tile-icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 14px;
}
.tile-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.tile-desc { font-size: 13px; color: var(--ink-2); line-height: 1.75; margin-bottom: 12px; flex: 1; }
.tile-link { font-size: 13.5px; font-weight: 600; }

/* ---------- 活动看板 ---------- */
.kanban-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start;
}
@media (max-width: 1024px) { .kanban-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .kanban-grid { grid-template-columns: 1fr; } }
.kanban-col {
  background: #eef0f6; border-radius: var(--radius); padding: 12px; min-height: 200px;
}
.kanban-col.drag-over { outline: 2px dashed var(--primary); outline-offset: -2px; }
.kc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 4px 10px;
}
.kc-title { font-weight: 700; font-size: 14px; }
.kc-title::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 7px; background: var(--dot, #adb5bd);
}
.col-planned { --dot: #adb5bd; } .col-doing { --dot: #4dabf7; }
.col-review { --dot: #ffa94d; } .col-done { --dot: #51cf66; }
.kc-count {
  background: #fff; border-radius: 999px; font-size: 12px; color: var(--ink-2);
  padding: 1px 9px;
}
.kc-daysub { font-size: 11.5px; color: var(--ink-2); padding: 0 4px 8px; }

/* ---------- 管理树 ---------- */
.tree-children { list-style: none; padding-left: 26px; border-left: 2px dashed #dbe2f0; margin-left: 8px; }
.tree-node {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #f8f9fc; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; margin: 6px 0; font-size: 13.5px;
}
.tree-node.d0 { background: #eef2ff; border-color: #c7d2fe; }
.tree-node.d1 { background: #f4f6ff; }
.tree-node .dim { color: var(--ink-2); font-size: 12px; }
/* 组织树：编辑/删除按钮 + 拖拽提示 */
.tree-node[draggable="true"] { cursor: grab; }
.tree-node[draggable="true"]:active { cursor: grabbing; }
.tree-node.drop-hint { outline: 2px dashed #4263eb; outline-offset: -2px; background: #edf2ff; }
.tree-ops { margin-left: auto; display: inline-flex; gap: 5px; }
.tn-btn {
  border: 1px solid #bac8ff; background: #fff; color: #3b5bdb;
  border-radius: 5px; font-size: 11.5px; padding: 2px 9px; cursor: pointer;
}
.tn-btn:hover { background: #edf2ff; }
.tn-btn.tn-del { color: #e03131; border-color: #ffc9c9; }
.tn-btn.tn-del:hover { background: #fff5f5; }
.cc-list li.dim { color: #adb5bd; }
.badge.pri-normal { background: #e7f5ff; color: #1971c2; }
.badge.pri-high { background: #fff4e6; color: #e8590c; }
.badge.pri-urgent { background: #fff0f0; color: #e03131; }
.kc-cards { display: flex; flex-direction: column; gap: 10px; min-height: 60px; }
.act-card {
  background: #fff; border-radius: 10px; box-shadow: var(--shadow);
  padding: 12px; cursor: grab;
}
.act-card:active { cursor: grabbing; }
.act-card.dragging { opacity: 0.5; }
.act-title { font-weight: 600; font-size: 13.5px; margin-bottom: 6px; word-break: break-all; }
.act-desc {
  font-size: 12px; color: var(--ink-2); margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 弹窗内的内容（员工日报/活动等）：完整展示不截断 */
.modal-root .act-desc {
  display: block; -webkit-line-clamp: unset; -webkit-box-orient: unset; overflow: visible;
  overflow-wrap: anywhere; word-break: break-word;
}
.act-meta {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 11.5px; color: var(--ink-2);
}
.pri-low { background: #f1f3f5; color: #868e96; }
.pri-normal { background: #e7f5ff; color: #1971c2; }
.pri-high { background: #fff4e6; color: #e8590c; }
.pri-urgent { background: #fff0f0; color: #e03131; }
.kc-empty { text-align: center; color: #adb5bd; font-size: 12px; padding: 18px 0; }

/* ---------- 成员管理 ---------- */
.table-wrap {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto;
}
table.members { width: 100%; border-collapse: collapse; min-width: 640px; }
table.members th, table.members td {
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
table.members th { background: #f8f9fc; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
table.members tr:last-child td { border-bottom: none; }
table.members select { width: auto; padding: 5px 8px; font-size: 13px; }

/* ---------- 操作记录：按人分组两级视图 ---------- */
table.members.au-table { min-width: 720px; }
.au-table tr.au-user { cursor: pointer; transition: background .15s; }
.au-table tr.au-user:hover { background: #f6f8fc; }
.au-table tr.au-user td { font-size: 13.5px; }
.au-arrow { display: inline-block; color: var(--ink-2); font-size: 11px; transition: transform .15s; }
.au-table tr.au-user.open-row .au-arrow { transform: rotate(0deg); }
.au-table .au-detail > td { background: #fbfcfe; }
.au-inner { width: 100%; border-collapse: collapse; }
.au-inner th {
  background: #f1f4fa; color: var(--ink-2); font-weight: 600;
  padding: 8px 14px; font-size: 12px; text-align: left; white-space: nowrap;
}
.au-inner td { padding: 8px 14px; border-bottom: 1px solid #eaedf3; font-size: 12.5px; vertical-align: middle; }
.au-inner tr:last-child td { border-bottom: none; }
.au-inner tr:hover td { background: #f4f7fd; }
.au-inner tr.au-undone td { color: #adb5bd; }
.au-undo { padding: 4px 10px; font-size: 12px; white-space: nowrap; }
.badge.c-red-fill { background: #ffe9ec; color: #d6336c; font-weight: 600; }

/* ---------- 项目日报模板（宽表） ---------- */
table.dt { min-width: 1500px; }
/* separate + spacing 0：修复 collapse 边框随冻结列滚动时的闪烁 */
table.dt { border-collapse: separate; border-spacing: 0; }
table.dt th, table.dt td { font-size: 12.5px; padding: 8px 10px; vertical-align: top; }
table.dt th { white-space: nowrap; }
table.dt td.dt-cell { white-space: normal; min-width: 90px; max-width: 220px; word-break: break-all; }
table.dt tr.dt-rejected td { background: #fffafa; }
table.dt td.dt-merge {
  vertical-align: middle; text-align: center; background: #fbfcff;
  border-right: 2px solid #eef0f6; font-size: 13.5px;
}
.person-btn {
  display: inline-block;
  border: 1px solid #bac8ff; background: #edf2ff; color: #3b5bdb;
  border-radius: 6px; padding: 2px 9px; font-size: 12px; cursor: pointer;
  margin: 2px 3px 2px 0; line-height: 1.7; vertical-align: middle;
  white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis;
}
.person-btn:hover { background: #dbe4ff; border-color: #91a7ff; text-decoration: none; }
.ppt-btn {
  display: inline-block; max-width: 190px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  border-color: #ffc9c9; background: #fff5f5; color: #e03131;
}
.ppt-btn:hover { background: #ffe3e3; border-color: #ffa8a8; }
th.dt-date-th { background: #e7f5ff !important; white-space: nowrap; color: #1971c2; }
td.dt-date-cell { min-width: 130px; background: #fbfdff; }
td.dt-date-cell .badge { display: inline-block; margin: 1px 0; }
/* 日报表内文字不得溢出格子 */
table.dt td.dt-cell { overflow-wrap: anywhere; word-break: break-word; }
table.dt td.dt-brief { cursor: help; }
/* 项目概述列宽度减半（td 会随行内合并单元格错位，只能约束 th） */
/* 项目概述 / 今日日报 两列各加宽 3cm（原 8cm 收窄 5cm）；列宽取整像素，避免 separate 模式下小数宽度产生渲染接缝竖线 */
table.dt thead th:nth-child(4) { width: 273px; }
table.dt thead th:nth-child(10) { width: 218px; }
table.dt thead th:nth-child(11) { width: 313px; }
/* 对应 td 放开 220px 上限，才能真正撑宽（用专用类：rowspan 下 nth-child 会错位） */
table.dt td.dt-col-overview { max-width: none; min-width: 273px; }
table.dt td.dt-col-collab { max-width: none; min-width: 218px; }
table.dt td.dt-col-today { max-width: none; min-width: 313px; }
/* 项目进展列横向加宽 5cm，徽章铺排更宽松 */
table.dt thead th:nth-child(12) { width: 189px; }
/* 历史日报列（10月X号日报）横向加宽到 5cm（同进展列口径 189px），不再被表格自动布局挤窄 */
table.dt th.dt-col-hist, table.dt td.dt-col-hist { width: 189px; min-width: 189px; max-width: none; }
/* 冻结窗口：最左三列（客户 / 品牌名称 / 项目名称）横向滚动时固定
   必须用专用类而非 nth-child：客户/品牌列有 rowspan，后续行 DOM 位置前移会错位 */
table.dt th.dt-col-client, table.dt td.dt-col-client { width: 100px; min-width: 100px; max-width: 100px; }
table.dt th.dt-col-brand, table.dt td.dt-col-brand { width: 90px; min-width: 90px; max-width: 90px; }
table.dt th.dt-col-name, table.dt td.dt-col-name { width: 190px; min-width: 190px; max-width: 190px; }
table.dt tr > .dt-col-client,
table.dt tr > .dt-col-brand,
table.dt tr > .dt-col-name {
  position: sticky; background: #fff; z-index: 2;
  /* 不加 will-change：会为每行创建合成层，层边缘在过期红底行上出现竖向接缝；
     滚动闪动已由 border-collapse:separate 根治 */
}
table.dt thead tr > .dt-col-client,
table.dt thead tr > .dt-col-brand,
table.dt thead tr > .dt-col-name { z-index: 5; }
table.dt tr > .dt-col-client { left: 0; }
table.dt tr > .dt-col-brand { left: 100px; }
table.dt tr > .dt-col-name { left: 190px; }
table.dt td.dt-col-client,
table.dt td.dt-col-brand { background: #fbfcff; border-right: 2px solid #eef0f6; }
table.dt tr > .dt-col-name { border-right: 2px solid #eef0f6; }
/* 项目周期已过期：行浅红底 + 周期格背景闪烁
   注意：动画只动 background-color，不可用 opacity——opacity 会把格子提升为
   独立合成层，层背景与行底色脱节，在格子左右边缘出现竖线接缝 */
@keyframes dtBlink { 0%, 100% { background-color: #ffe3e3; } 50% { background-color: #ff8787; } }
table.dt tr.dt-expired-row > td { background: #fff5f5 !important; }
table.dt td.dt-cycle-expired {
  color: #c92a2a; font-weight: 700; white-space: nowrap;
  animation: dtBlink 1.2s ease-in-out infinite;
}
/* 悬停浮窗：贴着触发文字旁边弹出（位置由 JS 计算） */
.center-pop {
  position: fixed; left: 0; top: 0;
  width: 360px; height: auto; min-height: 120px; max-width: 92vw; max-height: 70vh;
  background: #fff; border-radius: 12px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.28);
  border: 1px solid #edf2f7;
  padding: 18px 20px; z-index: 300;
  display: none; flex-direction: column;
  pointer-events: auto; /* 2026-10-27 用户要求：浮窗可悬停停留，鼠标移上去可滚动阅读 */
}
.center-pop .cp-title {
  font-weight: 700; font-size: 14px; color: #3b5bdb;
  padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid #edf2f7;
  flex: none;
}
.center-pop .cp-body {
  overflow: auto; font-size: 13px; line-height: 1.9; color: #343a40;
  white-space: pre-wrap; overflow-wrap: anywhere; flex: 1;
}
table.dt td.dt-cell .badge { white-space: normal; word-break: break-all; max-width: 100%; }
table.dt .act-desc { -webkit-line-clamp: unset; overflow: visible; overflow-wrap: anywhere; word-break: break-all; }

/* ---------- 弹窗 ---------- */
.modal-root {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: 14px; width: 460px; max-width: 100%;
  max-height: 88vh; overflow: auto; padding: 22px 22px 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}
.modal h3 { font-size: 16px; margin-bottom: 16px; }
/* 生成日报等大内容弹窗：接近全屏，报告/图表看得清楚 */
.modal.modal-wide {
  width: min(96vw, 1200px);
  max-height: 94vh;
  padding: 18px 22px 14px;
}
.modal.modal-wide h3 { margin-bottom: 10px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ---------- 轻提示 ---------- */
#toast-root { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 200; }
.toast {
  background: #343a40; color: #fff; padding: 10px 18px; border-radius: 8px;
  margin-bottom: 8px; font-size: 13px; box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  animation: toast-in 0.2s ease;
}
.toast.err { background: var(--danger); }
.toast.ok { background: #2f9e44; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; } }

/* ---------- 下属已交日报提醒 ---------- */
.submit-alert {
  margin: 0 0 14px; padding: 12px 14px;
  background: #fff9db; border: 1px solid #ffe066; border-left: 4px solid #f59f00;
  border-radius: 10px;
}
.submit-alert .sa-head { font-size: 13px; font-weight: 700; color: #b35c00; margin-bottom: 8px; }
.submit-alert .sa-list { display: flex; flex-wrap: wrap; gap: 8px; }
.submit-alert .sa-item {
  border: 1px solid #ffd43b; background: #fff; color: #7a4a00;
  border-radius: 8px; padding: 6px 12px; font-size: 12.5px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.submit-alert .sa-item:hover { background: #fff3bf; border-color: #f59f00; }
.submit-alert .sa-item b { color: #b35c00; }
.submit-alert .sa-time { color: #a0783a; font-size: 11.5px; }

/* ---------- 员工视角日报 ---------- */
.mine-hint {
  margin: 0 0 10px; padding: 8px 12px; font-size: 12.5px; color: #3b5bdb;
  background: #edf2ff; border: 1px solid #dbe4ff; border-radius: 8px;
}
/* 已完结项目行：中灰底 #e9ecef + 深灰文字（覆盖过期行的浅红底；2026-10-28 用户选定「中灰」） */
table.dt tr.dt-done td { background: #e9ecef !important; color: #33383f; border-color: #dee2e6; }
table.dt tr.dt-done td .dim { color: #5c636e; }
table.dt tr.dt-done td .person-btn { opacity: 0.95; }
.person-btn-tip { border-color: #ffd8a8; background: #fff4e6; color: #d9480f; }
.person-btn-tip:hover { border-color: #f59f00; }

/* ---------- 首页批示信息看板 ---------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.review-card {
  background: #fff; border: 1px solid #e9ecef; border-left: 4px solid #1971c2;
  border-radius: 12px; padding: 14px 16px; cursor: pointer;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.review-card:hover { box-shadow: 0 6px 18px rgba(25,113,194,.14); transform: translateY(-2px); border-color:#74c0fc; }
.review-card .rc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.review-card .rc-head b { font-size: 15px; }
.review-card .rc-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: #495057; margin-bottom: 8px; }
.review-card .rc-comments { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.review-card .rc-item {
  font-size: 12.5px; color: #343a40; background: #f8f9fa;
  border: 1px solid #eef0f3; border-radius: 8px; padding: 6px 10px;
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.review-card .rc-item .dim { font-size: 11.5px; margin-left: auto; }

/* ---------- 日报看板：批示定位高亮 ---------- */
@keyframes zshk-row-flash {
  0% { background: #fff3bf; box-shadow: inset 4px 0 0 #f59f00; }
  60% { background: #fff3bf; box-shadow: inset 4px 0 0 #f59f00; }
  100% { background: transparent; box-shadow: none; }
}
table.dt tr.row-flash td { animation: zshk-row-flash 3.2s ease; }

/* ---------- 首页通知看板 ---------- */
.notify-board {
  background: #fff; border: 1px solid #e9ecef; border-radius: 12px;
  padding: 14px 16px 8px; margin: 0 0 18px;
}
.notify-board.has-new { border-color: #ffd43b; box-shadow: 0 0 0 3px rgba(255,212,59,.16); }
.nb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.nb-title { font-size: 15px; font-weight: 700; color: #212529; }
.nb-title .nb-sub { font-size: 12px; font-weight: 400; color: #868e96; margin-left: 8px; }
.nb-title .nb-sub em { color: #e8590c; font-style: normal; font-weight: 700; }
.nb-list { display: flex; flex-direction: column; gap: 6px; max-height: 264px; overflow: auto; padding-right: 2px; }
.nb-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 10px; border-radius: 8px; border: 1px solid #f1f3f5; background: #fdfdfe;
}
.nb-item .nb-icon { font-size: 15px; line-height: 1.4; }
.nb-item .nb-body { min-width: 0; }
.nb-item .nb-line { font-size: 13px; color: #343a40; overflow-wrap: anywhere; }
.nb-item .nb-line b { color: #1971c2; margin-right: 4px; }
.nb-item .nb-meta { font-size: 11.5px; color: #adb5bd; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.nb-item .nb-dot {
  background: #e03131; color: #fff; border-radius: 999px;
  padding: 0 6px; font-size: 10.5px; line-height: 16px;
}
@keyframes nb-blink {
  0%, 100% { background: #fff9db; border-color: #ffe066; box-shadow: 0 0 0 0 rgba(245,159,0,.28); }
  50% { background: #fff3bf; border-color: #f59f00; box-shadow: 0 0 0 3px rgba(245,159,0,.18); }
}
.nb-item.nv-new { animation: nb-blink 1.6s ease-in-out infinite; animation-delay: var(--nb-delay, 0s); }
.nb-item.nv-new .nb-line b { color: #b35c00; }

/* 通知看板：新通知可点击标记已读 */
.nb-item.nv-new { cursor: pointer; }
.nb-item.nv-new:hover { border-color: #f59f00; box-shadow: 0 2px 8px rgba(245,159,0,.18); }
.nb-item.nv-new::after { content: "点击已读"; font-size: 11px; color: #b35c00; margin-left: auto; align-self: center; white-space: nowrap; opacity: .8; }

/* 今日要事：已结束（时间已过）的安排置底、深灰显示 */
.act-card.sch-over { background: #adb5bd; border-color: #868e96; opacity: 1; }
.act-card.sch-over .act-title { color: #212529; }
.act-card.sch-over .act-desc { color: #343a40; }
.act-card.sch-over .act-meta { color: #212529; }

/* 项目进展：「执行完」徽章灰色 */
.badge.ph-done { background: #e9ecef; color: #868e96; }

/* 首页卡片内容外显（今日要事 / 后续安排） */
.tile-list { margin: 8px 0 2px; border-top: 1px dashed #e9ecef; padding-top: 7px; display: flex; flex-direction: column; gap: 4px; }
.tile-list .tl-row { font-size: 12px; color: #343a40; background: #f8f9fa; border: 1px solid #f1f3f5; border-radius: 6px; padding: 3px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; word-break: keep-all; line-height: 1.7; }
.tile-list .tl-row.tl-over { color: #adb5bd; text-decoration: line-through; background: #f1f3f5; }
.tile-list .tl-more { font-size: 11px; color: #868e96; padding-left: 2px; }

/* 日况/周况磁贴：本部门提交情况（2026-10-27） */
.tile-dept { border-top: 1px dashed #e5e8ee; margin-top: 10px; padding-top: 8px; font-size: 12.5px; line-height: 2; color: #495057; }
.tile-dept .dept-lab { color: #6c757d; }
.tile-dept .dept-ok { font-weight: 800; color: #2b8a3e; margin: 0 3px; }
.tile-dept .dept-no { font-weight: 800; color: #d0342c; margin: 0 3px; }
.tile-dept .dept-ctr { color: #495057; }
.tile-dept .dept-ctr b { font-weight: 700; }
.dept-hov { position: relative; display: inline-block; cursor: default; border-bottom: 1px dotted #d0342c; }
.dept-hov .dept-pop { display: none; position: absolute; right: 0; bottom: 130%; z-index: 60; background: #fff; border: 1px solid #e5e8ee; border-radius: 10px; box-shadow: 0 12px 30px rgba(15, 23, 42, .18); padding: 9px 12px; width: 230px; text-align: left; font-size: 12px; color: #3b4252; line-height: 1.8; white-space: normal; }
.dept-hov:hover .dept-pop { display: block; }
.dept-pop .dp-t { font-weight: 700; margin-bottom: 2px; color: #212529; }

/* 日报邮箱设置：卡片鼠标滑过才出现「✏️ 修改」按钮（2026-10-27） */
.mail-chip .mail-edit { visibility: hidden; transition: opacity .12s; }
.mail-chip:hover .mail-edit { visibility: visible; }
.mail-chip:hover { border-color: #91a7ff; background: #f8f9ff; }
.mail-chip .mail-edit, .mail-chip .mail-del { cursor: pointer; }

/* 临时/定时补发日报：收件人点选 chip（2026-10-27） */
.ap-chip { display: inline-flex; align-items: center; background: #fff; border: 1px solid #e3e8ef; border-radius: 14px; padding: 3px 12px; font-size: 12.5px; cursor: pointer; user-select: none; color: #3b4252; }
.ap-chip:hover { border-color: #91a7ff; }
.ap-chip.ap-on { background: #eef2ff; border-color: #3b5bdb; color: #3b5bdb; font-weight: 700; }

/* 通知看板：批示条目「进入项目信息」提示 */
.nb-item .nb-go { color: #1971c2; font-size: 12px; margin-left: 8px; white-space: nowrap; }
.nb-item { cursor: pointer; }

/* 有内容外显的卡片：列表紧跟描述，不留大空隙 */
.tile-desc:has(+ .tile-list) { flex: 0 0 auto; margin-bottom: 6px; }
.tile-list { flex: 1; margin: 0 0 10px; padding-top: 6px; }

/* 通知看板：临近到期（提前1小时）安排条目闪烁 */
@keyframes nb-urgent-blink { 0%, 100% { background: #fff0f6; border-color: #ff8787; box-shadow: 0 0 0 3px rgba(224,49,49,.12); } 50% { background: #ffe3e3; border-color: #e03131; box-shadow: 0 0 0 5px rgba(224,49,49,.2); } }
.nb-item.nb-urgent { animation: nb-urgent-blink 1s ease-in-out infinite; }
.nb-item .nb-due { color: #e03131; font-weight: 700; margin-left: 8px; }

/* 已结束该项目的成员：人员按钮灰色 */
.person-btn.person-done { background: #e9ecef; color: #868e96; border-color: #dee2e6; }
.person-btn.person-done:hover { background: #e9ecef; color: #868e96; }

/* 今日已提交日报的成员：人员按钮置灰（悬停仍可查看日报） */
.person-btn.person-submitted, .person-btn.person-submitted.person-btn-tip { background: #e9ecef; color: #868e96; border-color: #dee2e6; }
.person-btn.person-submitted:hover, .person-btn.person-submitted.person-btn-tip:hover { background: #dee2e6; color: #495057; border-color: #ced4da; }

/* 部门日报按钮：有员工未提交 → 红色 */
.btn.dept-red { background: #e03131; color: #fff; border-color: #e03131; }
.btn.dept-red:hover { background: #c92a2a; color: #fff; }
/* 生成日报弹窗：字段罗列 */
.gd-kv { display: flex; gap: 8px; font-size: 13px; padding: 3px 0; border-top: 1px dashed #f1f3f5; }
.gd-kv .gd-k { color: #868e96; flex: 0 0 110px; }
.gd-kv .gd-v { flex: 1; color: #212529; white-space: pre-wrap; }
/* 部门日报弹窗：员工日报明细行 */
.dd-item { font-size: 12.5px; padding: 4px 0 2px; border-top: 1px dashed #f1f3f5; color: #343a40; }
.dd-item b { color: #1971c2; }

/* 提交周报弹窗 */
.wk-flds { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.wk-dates { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.wk-date { font-size: 13px; color: #343a40; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.wk-table td, .wk-table th { padding: 6px 8px; }
.wk-table .wk-proj { width: 100%; box-sizing: border-box; }
.wk-table .wk-prog { width: 100%; box-sizing: border-box; font-family: inherit; }
.wk-delrow { border: none; background: #fff5f5; color: #e03131; font-weight: 700; cursor: pointer; }

/* 部门日报总结：按行输出 */
.ds-line { font-size: 13px; color: #212529; padding: 5px 0; border-bottom: 1px dashed #e9ecef; line-height: 1.55; }
.ds-line .badge { margin: 0 8px 0 6px; vertical-align: 1px; }
.ds-line.ds-miss { color: #c92a2a; }
.ds-line:last-child { border-bottom: none; }

/* 周报看板：可点击的周报/日报链接 */
td.wk-view { cursor: pointer; }
td.wk-view:hover { background: #f1f3f5; }
td.wk-view .wk-go { color: #1971c2; font-size: 12px; margin-left: 8px; white-space: nowrap; }
a.dd-view { color: #1971c2; cursor: pointer; text-decoration: none; border-bottom: 1px dashed #74a9d8; }
a.dd-view:hover { color: #1864ab; }
.wvd-meta { font-size: 12.5px; color: #495057; background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px; padding: 8px 12px; }

/* 填写今日日报：多项目块 */
.qd-block { border: 1px solid #e9ecef; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #f8f9fa; }
.qd-block .qd-head { display: flex; gap: 8px; align-items: flex-start; }
.qd-block .qd-del { flex: 0 0 auto; margin-top: 22px; }
.qd-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }

/* 项目进展徽章：一行两个，装不下依次往下排（不截断总数） */
.prog-oneline { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; width: 100%; min-width: 150px; }
.prog-oneline .badge { flex: 0 0 auto; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 进展徽章保持横排：覆盖日报表格内 badge 的 break-all 规则，避免被窄列挤成一字一行 */
table.dt td.dt-cell .prog-oneline .badge { white-space: nowrap; word-break: keep-all; overflow: hidden; text-overflow: ellipsis; }
/* 进展列最小宽度：保证「环节名·状态」完整可读 */
table.dt td.dt-col-prog { min-width: 170px; }
/* 编辑日报弹窗 */
.ed-note { border: 1px solid #e9ecef; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #f8f9fa; }
.ed-note .ed-name { font-size: 13px; font-weight: 700; color: #1971c2; margin-bottom: 6px; }
.ed-note .ed-content { width: 100%; box-sizing: border-box; }

/* 会议纪要录音按钮：录制中红色闪烁 */
.mt-recording { background: #e03131 !important; color: #fff !important; border-color: #e03131 !important; animation: mt-blink 1s ease-in-out infinite; }
@keyframes mt-blink { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
/* 会议纪要实时转写区 */
.mt-tr { width: 100%; font-size: 13px; line-height: 1.6; background: #fff; border: 1px solid #e9ecef; border-radius: 8px; padding: 8px 10px; resize: vertical; color: #212529; }
.mt-tr:focus { outline: none; border-color: #74a9d8; box-shadow: 0 0 0 3px rgba(25, 113, 194, .08); }
/* 安排卡片下罗列的会议纪要 */
.mt-list { margin-top: 8px; border-top: 1px dashed #e9ecef; padding-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.mt-row { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; padding: 5px 8px; border-radius: 8px; cursor: pointer; background: #f8f9fa; border: 1px solid #eef1f4; }
.mt-row:hover { background: #eef6ff; border-color: #cfe5f8; }
.mt-row .mt-row-t { flex: 0 0 auto; font-weight: 700; color: #1971c2; }
.mt-row .mt-row-c { flex: 1 1 auto; color: #495057; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 通知看板展开全部 */
.nb-more { text-align: center; font-size: 13px; color: #1971c2; cursor: pointer; padding: 8px 0 2px; font-weight: 600; }
.nb-more:hover { text-decoration: underline; }

/* 填写今日日报：未写完提示条 + 项目自定义下拉 */
.qd-hint { margin: 10px 0 4px; font-size: 12.5px; color: #e8590c; background: #fff4e6; border: 1px solid #ffd8a8; border-radius: 8px; padding: 7px 12px; }
.qd-hint.qd-hint-ok { color: #2b8a3e; background: #ebfbee; border-color: #b2f2bb; }
.qd-proj-wrap { position: relative; }
/* 项目选择框拉高为两行，长项目名完整可见（2026-10-27 用户要求） */
textarea.qd-proj { resize: none; line-height: 1.5; overflow: hidden; white-space: pre-wrap; word-break: break-all; min-height: 0; }
/* 已锁定项目框：灰底、不可修改、不弹下拉（2026-10-27 用户要求） */
.qd-proj.qd-locked { background: #f1f3f6; color: #8a93a3; cursor: default; border-color: #e5e8ee; }
.qd-dd { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1px solid #dbe4ff; border-radius: 8px; box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18); max-height: 210px; overflow: auto; z-index: 60; display: none; }
.qd-dd.open { display: block; }
.qd-dd-item { padding: 7px 10px; font-size: 12.5px; cursor: pointer; color: #343a40; }
.qd-dd-item:hover { background: #edf2ff; color: #3b5bdb; }

/* 通知看板：单条清除按钮（flex 子项，位于「点击已读」提示左侧） */
.notify-board .nb-close {
  flex: 0 0 auto; align-self: center; margin-left: auto;
  width: 22px; height: 22px; line-height: 20px; text-align: center;
  border: none; border-radius: 50%; background: transparent; color: #adb5bd;
  font-size: 12px; cursor: pointer; padding: 0;
}
.notify-board .nb-close:hover { background: #e03131; color: #fff; }
.notify-board .nb-item.nv-new::after { margin-left: 0; }
