/* 员工业绩绩效面板样式（B 版：青绿配色）。设计见 docs/superpowers/specs/2026-10-20-ui-redesign-b-design.md */
:root {
  --bg: #f3f6f5; --card: #fff; --text: #0f1f1a; --muted: #5f6f6a; --line: #e3e9e7;
  --accent: #0f766e; --accent-dark: #115e59; --accent-soft: #e6f4f2; --ring: rgba(15, 118, 110, .15); --track: #e6eeec;
  --red-bg: #ffedd5; --red-fg: #c2410c; --yellow-bg: #fef9c3; --yellow-fg: #a16207; --green-bg: #d1fae5; --green-fg: #047857; --grey-bg: #eef2f1;
  --stripe: #fafcfb; --hover: #f1f6f5; --input-line: #cfd9d6;
  --row-red: #fff5ec; --row-yellow: #fffbe6; --row-green: #ecfdf5; --row-grey: #f3f6f5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.55 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0 0 8px; }
h2 { font-size: 22px; line-height: 1.3; } h3 { font-size: 16px; }
a { color: var(--accent); }
.muted { color: var(--muted); font-size: 13px; }
.small { font-size: 12px; }
.error { color: var(--red-fg); min-height: 1.4em; margin: 4px 0; }

/* ---------- 登录页 ---------- */
.login-view { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--bg); }
.login-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px; width: 100%; max-width: 380px; box-shadow: 0 10px 30px rgba(15, 31, 26, .08); display: flex; flex-direction: column; gap: 12px; }
.login-card h1 { font-size: 22px; margin: 0; color: var(--accent); }
.login-card h1::before { content: "●"; margin-right: 8px; font-size: 16px; vertical-align: 2px; }
.login-card p { margin: 0; }
.login-card label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.login-card button.primary { height: 38px; margin-top: 4px; }

/* ---------- 导航外壳：第一层顶栏（品牌 + 4 个分组 + 账号），第二层子导航（当前分组的页面） ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 0 24px; height: 56px; }
.brand { font-weight: 700; color: var(--accent); font-size: 16px; white-space: nowrap; }
.brand::before { content: "●"; margin-right: 8px; font-size: 13px; vertical-align: 1px; }
.tn { display: flex; gap: 4px; flex: 1; min-width: 0; }
.tn-group { position: relative; }
.tn-btn { height: auto; padding: 8px 14px; border: 0; border-radius: 8px; background: transparent; color: #334155; font-weight: 500; line-height: 1.55; white-space: nowrap; }
.tn-btn::after { content: "▾"; margin-left: 4px; font-size: 11px; opacity: .6; }
.tn-btn:hover { background: #f0f7f6; border: 0; }
.tn-group.active > .tn-btn { background: var(--accent-soft); color: var(--accent); }
.tn-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 6; padding-top: 6px; }
.tn-menu-in { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; min-width: 168px; box-shadow: 0 10px 30px rgba(15, 31, 26, .1); }
.tn-menu a { display: block; padding: 7px 10px; border-radius: 7px; color: #334155; text-decoration: none; white-space: nowrap; }
.tn-menu a:hover, .tn-menu a.active { background: #f0f7f6; color: var(--accent); }
.tn-menu a.active { font-weight: 600; }
@media (hover: hover) { .tn-group:hover .tn-menu { display: block; } }
.tn-group.open .tn-menu, .tn-group:has(:focus-visible) .tn-menu { display: block; }
.tn-group.suppress .tn-menu { display: none !important; } /* 刚点过菜单项：鼠标移开前先收起 */
.who { font-size: 13px; color: var(--muted); white-space: nowrap; }
.who button.link { font-size: 13px; }
.subnav-wrap { border-top: 1px solid var(--line); }
.subnav { max-width: 1320px; margin: 0 auto; padding: 0 24px; display: flex; gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { padding: 10px 12px; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--text); }
.subnav a.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.subnav:empty { display: none; }
.main { padding: 22px 24px; max-width: 1320px; margin: 0 auto; }

/* ---------- 按钮 ---------- */
button { font: inherit; cursor: pointer; border: 1px solid var(--input-line); background: #fff; color: var(--text); border-radius: 8px; height: 34px; padding: 0 14px; line-height: 1; }
button:hover { border-color: #9db5b0; background: #fbfdfc; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
button.danger { color: var(--red-fg); border-color: #f4b98f; background: #fff; }
button.danger:hover { background: #fff7ed; border-color: var(--red-fg); }
button.link { background: none; border: none; height: auto; padding: 0 4px; line-height: inherit; color: var(--accent); text-decoration: none; }
button.link:hover { background: none; text-decoration: underline; }
button:disabled { opacity: .5; cursor: not-allowed; }
td button:not(.link):not(.tag-btn):not(.thumb-del):not(.chip-del), .tx-actions button:not(.link), .profile-actions button { height: 30px; padding: 0 12px; font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- 输入 ---------- */
input, select, textarea { font: inherit; height: 34px; padding: 0 10px; border: 1px solid var(--input-line); border-radius: 8px; background: #fff; color: var(--text); max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
input[type=checkbox], input[type=radio] { height: auto; width: auto; accent-color: var(--accent); box-shadow: none; }
input[type=file] { height: auto; padding: 5px 8px; }
textarea { width: 100%; height: auto; min-height: 90px; padding: 8px 10px; line-height: 1.55; }
input[type=number] { width: 110px; text-align: right; }
input:disabled, select:disabled, textarea:disabled { background: var(--row-grey); color: var(--muted); cursor: not-allowed; }
td input[type=number], td select, td input[type=text] { height: 32px; }

/* ---------- 卡片 / 面板 / 工具条 ---------- */
.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar h2 { margin: 0 10px 0 0; }
.toolbar .spacer { flex: 1; }
.month-fixed { font-weight: 600; padding: 0 4px; font-size: 15px; }
.panel-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 12px; }
.panel-head h3 { margin: 0; }

/* ---------- 数字卡 ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: 13px; color: var(--muted); }
.stat b { display: block; font-size: 26px; line-height: 1.3; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.stat.red b { color: var(--red-fg); } .stat.yellow b { color: var(--yellow-fg); } .stat.green b { color: var(--green-fg); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.card > .table-wrap, .panel > .table-wrap { border: 0; border-radius: 0; background: transparent; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { background: var(--card); font-size: 12px; font-weight: 700; color: var(--muted); position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:nth-child(even) td { background: var(--stripe); }
tbody tr:hover td { background: var(--hover); }
/* 状态行：柔和底色 + 第一格左侧 3px 色条（选择器写成 tbody tr.x td 以压过斑马纹和冻结列底色） */
tbody tr.row-red td { background: var(--row-red); } tbody tr.row-red td:first-child { box-shadow: inset 3px 0 0 var(--red-fg); }
tbody tr.row-yellow td { background: var(--row-yellow); } tbody tr.row-yellow td:first-child { box-shadow: inset 3px 0 0 #ca8a04; }
tbody tr.row-green td { background: var(--row-green); } tbody tr.row-green td:first-child { box-shadow: inset 3px 0 0 var(--green-fg); }
tbody tr.row-grey td { background: var(--row-grey); } tbody tr.row-grey td:first-child { box-shadow: inset 3px 0 0 #b6c4c0; }
tbody tr.row-inactive td:first-child { opacity: .6; }

/* ---------- 标签（胶囊） ---------- */
.tag, .pill, .tag-stage, .tag-btn, .ach-badge { display: inline-block; font-size: 12px; line-height: 1.6; padding: 0 9px; border-radius: 99px; border: 1px solid transparent; white-space: nowrap; vertical-align: middle; }
.tag { background: var(--grey-bg); color: #4b5f59; margin-left: 4px; }
.tag.warn { background: var(--yellow-bg); color: var(--yellow-fg); }
.tag.new { background: var(--accent-soft); color: var(--accent); }
.pill { font-weight: 600; padding: 1px 10px; }
.pill-red { background: var(--red-bg); color: var(--red-fg); } .pill-yellow { background: var(--yellow-bg); color: var(--yellow-fg); }
.pill-green { background: var(--green-bg); color: var(--green-fg); } .pill-grey { background: var(--grey-bg); color: #4b5f59; }
.status-red { color: var(--red-fg); font-weight: 600; } .status-yellow { color: var(--yellow-fg); font-weight: 600; } .status-green { color: var(--green-fg); font-weight: 600; }
.tag-stage, .tag-btn { margin-left: 4px; font-weight: 600; }
.tag-btn { cursor: pointer; height: auto; }
.tag-btn:hover { filter: brightness(.96); }
.tag-stage.pending, .tag-btn.pending { background: var(--yellow-bg); color: var(--yellow-fg); }
.tag-stage.following, .tag-btn.following { background: var(--accent-soft); color: var(--accent); }
.tag-stage.done-good, .tag-btn.done-good { background: var(--green-bg); color: var(--green-fg); }
.tag-stage.done-bad, .tag-btn.done-bad { background: var(--red-bg); color: var(--red-fg); }
/* 目标达成徽章（实际打款 ≥ 目标）：带文字，不单靠颜色 */
.ach-badge { margin-left: 6px; font-weight: 600; }
.ach-badge.ach-done { background: var(--green-bg); color: var(--green-fg); }
.ach-badge.ach-expect { background: #f3faf6; color: var(--green-fg); border: 1px dashed var(--green-fg); font-weight: 400; }
tbody tr td.cell-achieved { background: var(--row-green); }

/* ---------- 提醒条 / 说明条 ---------- */
.note { background: #f0f7f6; border: 1px solid #d9eae7; border-left: 3px solid var(--accent); border-radius: 10px; padding: 9px 14px; margin: 8px 0 14px; font-size: 13px; color: #3b4f4a; }
.note a, .note b { font-weight: 700; }
.birthday-bar { display: block; margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: #ecfdf5; color: #065f46; text-decoration: none; font-weight: 600; }
.birthday-bar:hover { filter: brightness(.97); }
/* 日报未录提醒条：全站顶部，橙红醒目；全部录完是绿色 */
.report-reminder-slot { max-width: 1320px; margin: 0 auto; padding: 14px 24px 0; }
.report-reminder-slot:empty { display: none; }
.report-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.report-bar.due { background: var(--red-bg); color: #9a3412; border-left: 4px solid #ea580c; }
.report-bar.ok { background: var(--green-bg); color: var(--green-fg); border-left: 4px solid var(--green-fg); }
.report-bar-link { color: inherit; text-decoration: none; flex: 1 1 320px; font-weight: 700; }
.report-bar-link:hover { text-decoration: underline; }
.report-bar-notify { height: 28px; font-size: 12px; padding: 0 10px; border-color: #ea580c; color: #9a3412; background: #fff; }
.report-entry-line { margin-bottom: 12px; padding: 8px 12px; border-radius: 10px; font-weight: 600; background: var(--grey-bg); color: var(--text); }
.report-entry-line.due { background: var(--red-bg); color: #9a3412; }
.report-entry-line.ok { background: var(--green-bg); color: var(--green-fg); }

/* ---------- 对话框 / toast ---------- */
dialog { border: none; border-radius: 14px; padding: 22px 24px; width: min(480px, 94vw); max-height: 92vh; overflow: auto; color: var(--text); box-shadow: 0 20px 50px rgba(15, 31, 26, .3); }
dialog::backdrop { background: rgba(15, 31, 26, .45); }
dialog h3 { font-size: 18px; margin: 0; }
dialog form { display: flex; flex-direction: column; gap: 12px; }
dialog p, dialog .note { margin: 0; }
dialog #lv-sick-proof { display: flex; flex-direction: column; gap: 10px; }
dialog label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
dialog label.inline-check { flex-direction: row; align-items: center; gap: 4px; color: var(--text); }
/* 长对话框里按钮吸在底部，不用滚到最下面才能保存 */
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 6px; position: sticky; bottom: -22px; padding: 12px 0 0; background: var(--card); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #0f1f1a; color: #fff; padding: 10px 20px; border-radius: 99px; z-index: 20; max-width: 90vw; box-shadow: 0 8px 24px rgba(15, 31, 26, .3); }
.toast.err { background: var(--red-fg); }
/* 员工搜索框下方的候选列表（bindEmployeeSearch）：在 label 内、select 之上，随对话框宽度，不用绝对定位以免撑出对话框 */
.emp-suggest { border: 1px solid var(--line); border-radius: 8px; background: var(--card); box-shadow: 0 4px 12px rgba(15, 31, 26, .08); max-height: 320px; overflow-y: auto; }
.emp-suggest-item { padding: 8px 10px; min-height: 20px; font-size: 14px; color: var(--text); cursor: pointer; border-bottom: 1px solid var(--line); }
.emp-suggest-item:last-child { border-bottom: none; }
.emp-suggest-item:hover { background: var(--hover); }
.emp-suggest-item.active { background: var(--accent-soft); color: var(--accent); }
.emp-suggest-empty { padding: 8px 10px; font-size: 14px; color: var(--muted); }

/* ---------- 进度条 ---------- */
.bar { position: relative; height: 8px; background: var(--track); border-radius: 99px; min-width: 120px; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.bar > s { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--red-fg); text-decoration: none; }

/* ---------- 通用小块 ---------- */
.settings-form { display: grid; gap: 12px; max-width: 560px; }
.settings-form label { display: flex; flex-direction: column; gap: 4px; }
.settings-form h3 { margin: 8px 0 0; }
.settings-form h3:first-child { margin-top: 0; }
.settings-form .note { margin: 0; }
.layout-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1100px) { .layout-2 { grid-template-columns: 1fr 340px; align-items: start; } }
.leader-head { margin: 20px 0 8px; font-size: 15px; }
.talk-card.closed { opacity: .85; }
.talk-card.focus { outline: 2px solid var(--accent); }
.talk-head { margin-bottom: 10px; }
.talk-head b { font-size: 16px; }
#dt-body > h3 { margin: 18px 0 8px; }
.talk-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.talk-steps > li { border-left: 3px solid var(--line); padding-left: 12px; }
.step-name { font-weight: 700; margin-right: 6px; }
.pre { white-space: pre-wrap; }
.followups { margin: 4px 0 0; padding-left: 18px; }
.trend.improved { color: var(--green-fg); font-weight: 600; }
.trend.worse { color: var(--red-fg); font-weight: 600; }
.trend.same { color: var(--muted); }
.rec-line { margin-top: 2px; }
.rec-link { margin-right: 6px; white-space: nowrap; }
.field-group { display: flex; flex-direction: column; gap: 4px; }
.field-caption { font-size: 13px; color: var(--muted); }
.birth-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.birth-row input[type=number] { width: 70px; text-align: center; }
.tab { border-radius: 99px; }
.tab.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.up-status { min-height: 1.4em; }

/* 看板：组长卡片（点了只看该组长的组员）+ 全宽表格，操作列不换行 */
.leader-cards { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.leader-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; height: auto; min-width: 170px; padding: 10px 14px; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; font: inherit; line-height: 1.45; color: var(--text); text-align: left; }
.leader-card b { font-size: 15px; }
.leader-card span { font-size: 13px; }
.leader-card:hover { border-color: #b7cdc9; border-left-color: #b7cdc9; background: var(--card); }
.leader-card.active { border-color: var(--accent); border-left-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.leader-card.static { cursor: default; } /* 组长账号只有自己一组，卡片不可点 */
.leader-card.static:hover { border-color: var(--line); border-left-color: var(--line); }
.leader-card .lc-perf { font-weight: 600; color: var(--text); margin-top: 2px; }
.leader-card .lc-line { font-size: 12px; color: var(--muted); }
.leader-card .lc-line em { font-style: normal; }
.dash-table td:last-child { white-space: nowrap; }

/* 冻结窗格（看板/日报/打款/目标/建议/员工）：容器自身滚动，表头吸顶、姓名/组别吸左；separate 避免 sticky 单元格丢边框。
   底色用低优先级的 .fz-col，让 tr.row-red td 等状态底色仍能盖过它。 */
.table-wrap.freeze { max-height: calc(100vh - 260px); min-height: 160px; overflow: auto; }
.table-wrap.freeze table { border-collapse: separate; border-spacing: 0; }
.table-wrap.freeze thead th { z-index: 2; }
.fz-col { background: var(--card); }
th.fz-col { background: var(--card); }
.table-wrap.freeze .fz-col { position: sticky; z-index: 1; }
.table-wrap.freeze thead .fz-col { z-index: 3; }
.table-wrap.freeze .fz-2 { box-shadow: 1px 0 0 var(--line); }
.table-wrap.freeze tbody tr.row-red td.fz-2, .table-wrap.freeze tbody tr.row-yellow td.fz-2, .table-wrap.freeze tbody tr.row-green td.fz-2, .table-wrap.freeze tbody tr.row-grey td.fz-2 { box-shadow: 1px 0 0 var(--line); }

/* 图片缩略图 */
.thumbs-cell { white-space: normal; min-width: 90px; }
.thumb-wrap { position: relative; display: inline-block; margin: 2px 6px 2px 0; vertical-align: top; }
.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; background: var(--grey-bg); display: block; }
.thumb-del { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; padding: 0; line-height: 18px; border-radius: 50%; font-size: 14px; color: var(--red-fg); border-color: #f4b98f; }
dialog:has(.photo-big) { width: min(900px, 96vw); }
.photo-big { max-width: 100%; max-height: 75vh; object-fit: contain; margin: 0 auto; display: block; }
/* 粘贴图片区（照片选择框下方） */
.paste-zone { border: 1px dashed #b9d0cc; border-radius: 8px; padding: 10px; color: var(--muted); font-size: 13px; background: var(--stripe); }
.paste-zone:focus { outline: 2px solid var(--accent); }
.paste-previews { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.paste-previews:empty { display: none; }
.paste-previews img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* 妙记文字稿与 AI 总结 */
.tx-block { margin: 8px 0 2px; padding: 8px 12px; border-left: 3px solid var(--accent); background: #f3f9f8; border-radius: 0 8px 8px 0; font-size: 13px; }
.tx-title { font-weight: 700; margin-bottom: 2px; }
.tx-summary { margin: 2px 0 4px; }
.tx-status { margin: 2px 0; padding-left: 18px; color: var(--muted); }
.tx-actions { margin-top: 4px; }
dialog:has(.tx-view) { width: min(760px, 96vw); }
.tx-text { max-height: 40vh; overflow: auto; padding: 10px; background: var(--grey-bg); border-radius: 8px; font-size: 13px; line-height: 1.6; }

/* 面试管理：简历文件、AI 评估正文、详情表单、人才画像 */
.file-chip { display: inline-flex; align-items: center; gap: 4px; margin: 2px 6px 2px 0; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--stripe); font-size: 13px; max-width: 100%; }
.file-chip a { overflow-wrap: anywhere; }
.chip-del { height: auto; padding: 0 6px; line-height: 18px; border-radius: 50%; color: var(--red-fg); border-color: #f4b98f; }
.resume-files { margin-bottom: 8px; }
.resume-text { margin: 8px 0; }
.resume-text summary { cursor: pointer; }
.review-text { line-height: 1.7; }
.iv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 10px; }
.iv-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.iv-form textarea { min-height: 50px; }
#ivd-root .card .tx-block { margin: 10px 0; }
#ivd-root .toolbar a { white-space: nowrap; }
.profile-card summary { cursor: pointer; }
.profile-body { margin-top: 12px; }
.profile-text { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; line-height: 1.55; min-height: 320px; }
.profile-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.md-preview { padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--stripe); max-height: 70vh; overflow: auto; font-size: 14px; }
.md-preview h3, .md-preview h4, .md-preview h5, .md-preview h6 { margin: 12px 0 4px; }
.md-preview p { margin: 4px 0; }
.md-preview ul { margin: 4px 0; padding-left: 20px; }
.md-preview blockquote { margin: 6px 0; padding: 4px 10px; border-left: 3px solid #ca8a04; background: var(--yellow-bg); color: var(--yellow-fg); }
.md-table { border-collapse: collapse; margin: 6px 0; font-size: 13px; }
.md-table th, .md-table td { border: 1px solid var(--line); padding: 4px 8px; text-align: left; vertical-align: top; white-space: normal; }

/* 员工访谈：提纲、进度卡、列表展开详情；人才画像页的访谈提炼草稿 */
.staff-outline summary { cursor: pointer; }
.staff-outline ol { margin: 4px 0 8px; padding-left: 22px; }
.staff-outline li { margin: 2px 0; }
.staff-outline h4 { margin: 10px 0 2px; }
.staff-progress .progress-line { margin: 6px 0; }
.missing-names { margin: 2px 0 0 0; }
.missing-names .tag { margin: 2px 4px 2px 0; }
tbody tr.detail-row td { white-space: normal; background: var(--stripe); box-shadow: none; }
.staff-detail { position: sticky; left: 8px; max-width: min(880px, 90vw); }
.profile-drafts { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.profile-drafts h4 { margin: 0 0 4px; }
dialog:has(.draft-view) { width: min(1180px, 96vw); }
.draft-view .draft-basis { margin-bottom: 8px; }
.draft-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.draft-compare .md-preview, .draft-view .md-preview { max-height: 60vh; }
@media (max-width: 760px) { .draft-compare { grid-template-columns: 1fr; } }

/* 绩效看板：总业绩主卡 + 数字卡一行（.kpis），分组业绩面板（占比条 + 图例 + 分组表） */
.kpis { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 16px; }
.kpis .stat { display: flex; flex-direction: column; justify-content: center; }
.kpi-hero { background: linear-gradient(135deg, #0f766e, #115e59); color: #fff; border-radius: 12px; padding: 16px 18px; min-width: 0; }
.kpi-label { font-size: 13px; color: #ccfbf1; }
.kpi-value { font-size: 30px; line-height: 1.25; font-weight: 700; margin: 4px 0; font-variant-numeric: tabular-nums; }
.kpi-sub, .kpi-foot { font-size: 13px; color: #ccfbf1; }
.kpi-sub b, .kpi-foot b { color: #fff; }
.kpi-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12px; }
.kpi-hero .bar { margin-top: 12px; background: rgba(255, 255, 255, .25); }
.kpi-hero .bar > i { background: #5eead4; }
.kpi-hero .bar > s { background: #fff; opacity: .7; }
.kpi-hero .status-red { color: #fed7aa; } .kpi-hero .status-yellow { color: #fde68a; } .kpi-hero .status-green { color: #a7f3d0; }
.ov-card { padding: 16px 18px; }
.ov-bar { display: flex; gap: 2px; height: 10px; margin: 2px 0 8px; border-radius: 99px; overflow: hidden; }
.ov-seg { min-width: 2px; cursor: default; }
.ov-seg:hover { filter: brightness(1.1); }
.seg-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.ov-swatch { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.ov-table td, .ov-table th { padding: 10px 12px; }
.lc-flags { display: flex; gap: 12px; margin-top: 2px; }
.lc-flags span { font-size: 12px; }
@media (max-width: 899px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi-hero { grid-column: 1 / -1; } }

/* 由内联 style 换来的小 class */
.toolbar-foot { margin-top: 14px; }
.toolbar-section { margin-top: 18px; }
.toolbar-section h3 { margin: 0; }
.note-error { border-left-color: var(--red-fg); background: #fff5ec; border-color: #fcd9bd; color: #9a3412; }
.col-month-head { text-align: center; border-left: 1px solid var(--line); }
.col-sep { border-left: 1px solid var(--line); }
td.wrap { white-space: normal; }
.cell-note { white-space: normal; max-width: 240px; }
.section-title { margin: 16px 0 8px; }
.section-hint { font-weight: normal; margin-left: 8px; }

/* 请假、生日、员工访谈、百万播放的页内小块 */
.mv-emp-wrap { width: fit-content; max-width: 100%; }
.mv-emp-wrap table { width: auto; }
.mv-emp-wrap th, .mv-emp-wrap td { padding: 8px 16px; }
.mv-emp-row { cursor: pointer; }
tbody tr.mv-emp-row:hover td { background: var(--accent-soft); }
tbody tr.mv-emp-row.selected td { background: var(--accent-soft); font-weight: 600; }
.mv-filter-note { font-size: 13px; font-weight: normal; margin-left: 10px; color: var(--text); }
.mv-filter-note button { margin-left: 8px; height: 26px; padding: 0 10px; font-size: 13px; }

/* < 900px：顶栏两行（品牌+账号 / 分组按钮，可横向滑），菜单点击展开（fixed 定位，不被横向滚动容器裁掉）；上面那行随滚动收起，分组和子导航仍吸顶 */
@media (max-width: 899px) {
  .topbar { top: -46px; }
  .top-in { flex-wrap: wrap; gap: 0 12px; padding: 0 12px; height: auto; }
  .brand { order: 1; height: 46px; line-height: 46px; }
  .who { order: 2; margin-left: auto; height: 46px; line-height: 46px; }
  .tn { order: 3; flex: 0 0 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .tn::-webkit-scrollbar { display: none; }
  .tn-group { position: static; }
  .tn-menu { position: fixed; padding-top: 0; }
  .tn-group:hover .tn-menu { display: none; }
  .tn-group.open .tn-menu { display: block; }
  .subnav { padding: 0 12px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .report-reminder-slot { padding: 10px 12px 0; }
  .main { padding: 14px 12px; } th, td { padding: 8px 10px; font-size: 13px; } input[type=number] { width: 90px; }
  h2 { font-size: 20px; }
  .card, .panel { padding: 14px; }
  .leader-card { flex: 1 1 calc(50% - 5px); min-width: 0; }
}

/* ===== 2026-10-20 二次精修：放大一号、说明文字降调、数字卡统一（说明在上数字在下 + 左侧语义色条） ===== */
body { font-size: 15px; line-height: 1.6; }
.main { max-width: 1440px; padding: 26px 32px 40px; }
h2 { font-size: 24px; letter-spacing: .01em; }
h3 { font-size: 17px; }
.muted { font-size: 13.5px; }
.toolbar { gap: 10px; margin-bottom: 16px; }
.toolbar h2 { margin-right: 14px; }

/* 表格：字号 14→14.5，表头更清楚，行更舒展 */
table { font-size: 14.5px; }
th { font-size: 13px; color: #51625d; letter-spacing: .02em; background: #f7faf9; }
th, td { padding: 12px 14px; }
th.fz-col { background: #f7faf9; }
tbody tr:hover td { background: #f4f9f8; }
.table-wrap { box-shadow: 0 1px 2px rgba(15, 31, 26, .04); }

/* 说明文字：去掉整条色块，改成带小图标的灰字，页面不再一条条绿底叠在一起 */
.note { background: transparent; border: 0; border-radius: 0; padding: 0 0 0 22px; margin: 4px 0 14px; position: relative; font-size: 13.5px; color: var(--muted); }
.note::before { content: "i"; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 700 11px/16px Georgia, serif; text-align: center; }
.note b, .note a { color: var(--text); }
/* 打款合计、达标汇总这类汇总行仍保留卡片底色，突出 */
#pay-ach-summary, .note.summary { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 12px 16px; color: var(--text); font-size: 14.5px; line-height: 1.75; }
#pay-ach-summary::before, .note.summary::before { content: none; }

/* 数字卡：说明在上、数字在下（与总业绩主卡一致），左侧语义色条 */
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 16px 20px; font-size: 13.5px; border-left: 4px solid #cbd8d5; box-shadow: 0 1px 2px rgba(15, 31, 26, .04); }
.stat b { font-size: 30px; line-height: 1.2; }
.stat.red { border-left-color: var(--red-fg); } .stat.yellow { border-left-color: #eab308; } .stat.green { border-left-color: var(--green-fg); }
.kpis .stat { flex-direction: column-reverse; justify-content: center; }
.kpi-hero { padding: 18px 22px; box-shadow: 0 6px 18px rgba(15, 118, 110, .18); }
.kpi-value { font-size: 34px; }
.kpi-label, .kpi-sub { font-size: 14px; }

/* 卡片 / 面板统一阴影 */
.card, .ov-card { box-shadow: 0 1px 2px rgba(15, 31, 26, .04); }

/* 组长卡：字放大、更舒展 */
.leader-card { min-width: 200px; padding: 12px 16px; gap: 3px; }
.leader-card b { font-size: 16px; }
.leader-card span { font-size: 13.5px; }
.leader-card .lc-line { font-size: 13px; }

/* 标签稍大 */
.tag, .pill, .tag-stage, .tag-btn, .ach-badge { font-size: 12.5px; padding: 1px 10px; }

@media (max-width: 900px) {
  .main { padding: 16px 14px 28px; }
  h2 { font-size: 21px; }
  .stat b { font-size: 26px; }
  .kpi-value { font-size: 30px; }
}
/* 出错提示（如重复登记 409）仍要醒目：红色卡片，不用灰字 */
.note.note-error { background: var(--red-bg); border: 1px solid #fdba74; border-radius: 10px; padding: 9px 14px; color: var(--red-fg); }
.note.note-error::before { content: none; }
/* 顶栏、子导航、提醒条与内容区同宽同边距，左边缘对齐 */
.top-in, .subnav { max-width: 1440px; padding-left: 32px; padding-right: 32px; }
.report-reminder-slot { max-width: 1440px; padding-left: 32px; padding-right: 32px; }
@media (max-width: 900px) { .top-in, .subnav, .report-reminder-slot { padding-left: 14px; padding-right: 14px; } }

/* 工资表 / 工资档案：表格里的输入框宽度 */
/* 考勤月度汇总里的应出勤/出勤天数/备注输入框 */
#att-table input[type=number] { width: 84px; }
#att-table input[type=text] { width: 150px; text-align: left; }
#att-due { width: 100px; }
.pr-table input[type=text] { width: 180px; text-align: left; }
.pr-table input[type=number] { width: 96px; }
#sp-table input[type=text] { width: 110px; text-align: left; }
#sp-table input[type=number] { width: 92px; }
#sp-table select { min-width: 84px; }
/* 手机上这两页只冻结姓名一列（冻两列会占掉大半屏宽，数据被挤到看不见） */
@media (max-width: 640px) {
  #sp-table.freeze .fz-2, .pr-table.freeze .fz-2 { position: static; box-shadow: none; }
}
@media (max-width: 640px) { .pr-stats { grid-template-columns: 1fr; } }
/* 软刷新时盖在原位的旧画面：不可点击；超过 0.4 秒还没刷新完就稍微变淡，提示正在更新 */
.main-ghost { pointer-events: none; z-index: 2; animation: ghost-dim .2s ease .4s forwards; }
@keyframes ghost-dim { to { opacity: .6; } }
/* 后台上传进度（百万播放截图）：右下角小条，不挡操作 */
.bg-upload { position: fixed; right: 16px; bottom: 16px; z-index: 60; background: #0f1f1a; color: #fff; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; box-shadow: 0 6px 20px rgba(0,0,0,.2); max-width: calc(100vw - 32px); }
.bg-upload[hidden] { display: none; }

/* ---------- 设置页：组长账号（仅老板） ---------- */
.la-section { max-width: 760px; }
.la-section h3 { margin: 0 0 8px; }
.la-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 14px; }
.la-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.la-password { font-size: 18px; letter-spacing: .5px; user-select: all; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }

/* ===== 2026-11-18 全局视觉精修（仅样式质感升级，不改任何内容与布局结构） ===== */
:root {
  --shadow-sm: 0 1px 2px rgba(15, 31, 26, .04), 0 2px 6px rgba(15, 31, 26, .03);
  --shadow-md: 0 4px 14px rgba(15, 31, 26, .07), 0 1px 3px rgba(15, 31, 26, .04);
  --ease: cubic-bezier(.22, .61, .36, 1);
}
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.topbar { background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line), 0 2px 10px rgba(15, 31, 26, .03); }
.brand { letter-spacing: -.01em; }
.tn-btn, .tn-menu a, .subnav a { transition: background-color .15s var(--ease), color .15s var(--ease); }
.tn-menu-in { box-shadow: 0 12px 32px rgba(15, 31, 26, .12), 0 2px 6px rgba(15, 31, 26, .04); border-color: #dce4e1; }
.subnav a.active { position: relative; }

button, input, select, textarea { transition: border-color .15s var(--ease), background-color .15s var(--ease), box-shadow .15s var(--ease), transform .08s var(--ease); }
button:active:not(:disabled) { transform: translateY(1px); }
button.primary { background: linear-gradient(180deg, #12847b, var(--accent)); box-shadow: 0 1px 2px rgba(15, 118, 110, .25); }
button.primary:hover:not(:disabled) { background: linear-gradient(180deg, #0f766e, var(--accent-dark)); box-shadow: 0 2px 6px rgba(15, 118, 110, .3); }

.card, .panel, .ov-card, .stat, .table-wrap { box-shadow: var(--shadow-sm); border-color: #dfe7e4; }
.kpi-hero { background: linear-gradient(135deg, #0f766e 0%, #0d5c56 55%, #094844 100%); box-shadow: 0 8px 24px rgba(15, 118, 110, .22), inset 0 1px 0 rgba(255, 255, 255, .16); }
.leader-card { box-shadow: var(--shadow-sm); transition: border-color .16s var(--ease), box-shadow .16s var(--ease), transform .16s var(--ease); }
.leader-card:not(.static):hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.leader-card.active { background: #f8fcfb; }

.table-wrap { border-radius: 14px; }
th { border-bottom-color: #dbe4e1; }
tbody td { transition: background-color .1s var(--ease); }
.table-wrap::-webkit-scrollbar { height: 8px; width: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: #cbd7d3; border-radius: 99px; }
.table-wrap::-webkit-scrollbar-thumb:hover { background: #aebfba; }

.pill, .ach-badge, .tag-stage, .tag-btn { border-color: rgba(15, 31, 26, .06); }
.ach-badge.ach-done { border-color: rgba(4, 120, 87, .18); }

dialog { border: 1px solid #dfe7e4; box-shadow: 0 24px 60px rgba(15, 31, 26, .25); }
dialog[open] { animation: dlg-in .16s var(--ease); }
dialog::backdrop { background: rgba(15, 31, 26, .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(6px) scale(.99); } to { opacity: 1; transform: none; } }

.login-view { background: radial-gradient(circle at 20% 15%, #e6f4f2 0%, var(--bg) 55%); }
.login-card { box-shadow: 0 16px 40px rgba(15, 31, 26, .1); border-color: #dce5e2; }

/* ===== 2026-11-18 大盘驾驶舱与全屏投屏 ===== */
.kpis { grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(150px, 1fr)); }
.cockpit-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.cockpit-grid > .panel { margin-bottom: 0; }
@media (max-width: 1100px) { .cockpit-grid { grid-template-columns: 1fr; } }
.cockpit-board { display: flex; flex-direction: column; gap: 12px; }
.cockpit-board .panel-head { margin-bottom: 0; }
.ck-group { display: flex; flex-direction: column; gap: 6px; }
.ck-title { font-size: 13px; font-weight: 700; }
.ck-list { display: flex; flex-direction: column; gap: 6px; }
.ck-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--stripe); text-align: left; }
.ck-item:hover { background: var(--accent-soft); border-color: #b7cdc9; }
.ck-item.ck-red { background: #fff8f2; border-color: #fed7aa; }
.ck-item.ck-red:hover { background: #ffedd5; }
.ck-item.ck-top { background: #f4fbf9; border-color: #cce8e3; }
.ck-name { font-weight: 600; color: var(--text); }
.ck-name em { font-style: normal; font-weight: 400; font-size: 12px; margin-left: 6px; }
.ck-right { display: flex; align-items: center; gap: 8px; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ck-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ck-tags .tag-btn { margin-left: 0; padding: 3px 10px; }

body.dash-fullscreen .topbar,
body.dash-fullscreen .report-reminder-slot,
body.dash-fullscreen .birthday-bar { display: none !important; }
body.dash-fullscreen .main { max-width: 100%; padding: 18px 28px 32px; }
body.dash-fullscreen .table-wrap.freeze { max-height: calc(100vh - 200px); }
