/* 嘉信人事薪酬系统：界面整体沿用业务系统 bos 的设计（bos.css 原样复用）。
   这里只补 bos 里没有、人事系统需要的少量样式。 */
:where(input[type=checkbox], input[type=radio]) { width: auto; padding: 0; accent-color: var(--brand); }  /* 零优先级，不盖过 bos 自己的勾选框样式 */
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-600); cursor: pointer; white-space: nowrap; }
.f { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink-600); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; }
.foot { display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line-light); }
/* 制度说明：与 bos 的浅蓝底 + 金色强调一致 */
.note { background: rgba(238,244,255,.72); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 8px; padding: 10px 14px; color: var(--ink-600); font-size: 12.5px; line-height: 1.7; margin: 0 0 14px; }
.note.warn { background: var(--gold-bg); }
.toast.err { background: rgba(122,46,31,.92); }
.brand-sys { padding: 0 20px 10px; font-size: 11.5px; color: var(--ink-400); letter-spacing: 3px; }
.page-head .back { margin-bottom: 4px; display: inline-block; }
.table-wrap td.wrap { white-space: normal; min-width: 180px; }
.modal h4 { font-size: 13px; font-weight: 600; margin: 4px 0 10px; color: var(--ink-600); }
.kpi-grid.cols3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .kpi-grid.cols3 { grid-template-columns: repeat(2, 1fr); } }
/* 人事系统的表格不写 tbody，补上 bos 依赖 tbody 的行样式 */
table > tr.clickable { cursor: pointer; }
table > tr.clickable:hover { background: #EEF4FF; }
table > tr:last-child td { border-bottom: none; }
.desc-grid > div > span:first-child { min-width: 128px; }  /* 人事字段名较长 */
/* 人事表格数字列多：单元格不换行，超宽时左右滑动；长说明列（.wrap）照常换行 */
.table-wrap th, .table-wrap td { white-space: nowrap; }
.table-wrap td.wrap { white-space: normal; }
@media (max-width: 860px) { .main > section { padding: 0 12px; } }
/* 头像与个人设置（头像样式沿用 bos 的 .avatar） */
.avatar-lg { width: 64px !important; height: 64px !important; font-size: 24px !important; }
.profile-row { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.modal-md { max-width: 560px; }
.sidebar-user > a { display: inline-flex; }

/* 多人协助登记：合计不符时标红 */
td.err { color: var(--red); font-weight: 600; }
/* 办公管理及财务管理系统补充 */
.nav-badge { margin-left: auto; background: var(--red, #c0392b); color: #fff; border-radius: 10px; font-size: 11px; padding: 1px 7px; }
.desc-grid > div.full { grid-column: 1 / -1; }
.form-grid > .full { grid-column: 1 / -1; }
.badge a { cursor: pointer; margin-left: 4px; }
@media print { .shell-nav, .topbar, .page-head .actions, .toolbar, .tabs, .ambient-canvas { display: none !important; } .main { margin: 0 !important; padding: 0 !important; } }
.table-wrap td select { min-width: 96px; }
/* 同一行的下拉框、输入框按内容宽度排列（bos 默认整行铺满） */
.row > select, .row > input:not([type=checkbox]):not([type=radio]), .row label.chk select { width: auto; min-width: 110px; flex: 0 1 auto; }
.toolbar > select, .toolbar > input:not([type=checkbox]):not([type=radio]), .page-head .actions > select { width: auto; min-width: 110px; flex: 0 1 auto; }
.modal-xl { max-width: 1120px; }
/* 上手清单、公告、消息 */
.setup-card, .side-card { padding: 14px 16px; margin-bottom: 14px; }
.setup-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 18px; margin-top: 10px; }
.setup-list a { display: flex; gap: 10px; align-items: flex-start; padding: 6px 4px; border-radius: 8px; color: inherit; text-decoration: none; }
.setup-list a:hover, .post-row:hover { background: rgba(31,58,110,.05); }
.setup-list .tick { flex: 0 0 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); text-align: center; line-height: 18px; font-size: 12px; color: #fff; }
.setup-list a.done .tick { background: var(--green, #2e9e6b); border-color: var(--green, #2e9e6b); }
.setup-list a, .post-row { transition: background-color var(--t-state) var(--ease); }
.setup-list a.done b { font-weight: 400; color: var(--ink-400); }
.setup-list small, .post-row small { display: block; color: var(--ink-400); font-size: 12px; font-weight: 400; line-height: 1.5; white-space: pre-wrap; }
.post-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 4px; border-radius: 8px; cursor: pointer; border-top: 1px solid var(--line-light, #eef0f4); }
.post-row .t { flex: 1; min-width: 0; }
.post-row .dot { flex: 0 0 8px; height: 8px; margin-top: 7px; border-radius: 50%; }
.post-row .dot.on { background: var(--red, #c0392b); }
@media (max-width: 760px) { .setup-list { grid-template-columns: 1fr; } .post-row { flex-wrap: wrap; } .post-row .t { flex: 1 1 80%; } }
/* 组织架构、图表 */
.org, .org ul { list-style: none; margin: 0; padding-left: 22px; }
.org { padding-left: 0; }
.org li { position: relative; padding: 4px 0 4px 14px; border-left: 1px solid var(--line); }
.org li::before { content: ''; position: absolute; left: 0; top: 20px; width: 12px; border-top: 1px solid var(--line); }
.org-card { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.org-card small { color: var(--ink-400); margin-left: 6px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 110px; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; }
.bar-row i { display: block; height: 10px; border-radius: 5px; background: #c9a46a; min-width: 2px; }
.bar-row span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.fin-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .fin-grid { grid-template-columns: 1fr; } }
/* ———— 导航：书脊 + 目录 ————
   左边一条墨蓝“书脊”，上面是四个工作域的索引标签（当前域有一道烫金）；旁边的目录只列当前域的页面，
   底色和页面相同，只用一条细线分开。内置模块（业务、薪酬绩效）的页面占满导航右侧，底色透出主系统的页面底。 */
:root { --spine: #071D3F; --gilt: #B8872B; --rule: rgba(7,29,63,.09); --nav-w: 260px; --paper: #E7EAEE; }
.shell-nav { position: fixed; inset: 0 auto 0 0; width: var(--nav-w); display: flex; z-index: 40; }
.spine { flex: 0 0 64px; background: var(--spine); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 0 12px; overflow-y: auto; }
.spine-mark { flex: 0 0 40px; width: 40px; border-radius: 10px; background: #fff; display: grid; place-items: center; margin-bottom: 14px; overflow: hidden; }
.spine-mark img { width: 34px; height: 34px; object-fit: contain; }
.spine-tab { position: relative; flex: 0 0 auto; width: 52px; padding: 9px 0 7px; border: 0; background: none; border-radius: 10px; color: rgba(255,255,255,.62);
  display: flex; flex-direction: column; align-items: center; gap: 4px; font: inherit; font-size: 11px; letter-spacing: .08em; cursor: pointer;
  transition: background-color .15s cubic-bezier(.23,1,.32,1), color .15s cubic-bezier(.23,1,.32,1); }
.spine-tab .ic { width: 20px; height: 20px; }
.spine-tab:hover { background: rgba(255,255,255,.07); color: #fff; }
.spine-tab:hover .ic { transform: translateY(-1px); }
.spine-tab:active { transform: scale(.97); }
.spine-tab.on { color: #fff; font-weight: 600; }
.spine-tab.on .ic { animation: tabSettle var(--t-focal) var(--ease); }
/* 换域：高亮块和烫金书签是同一块，从上一个域滑到这一个（--at 是当前域的序号，每格 60px） */
.spine-tabs { position: relative; display: flex; flex-direction: column; gap: 4px; }
.spine-tabs .spine-tab { height: 56px; z-index: 1; }
.spine-tabs::before, .spine-tabs::after { content: ''; position: absolute; left: 0; top: 0; transform: translateY(calc(var(--at, 0) * 60px)); transition: transform var(--t-focal) var(--ease); }
.spine-tabs::before { width: 52px; height: 56px; border-radius: 10px; background: rgba(255,255,255,.11); }
.spine-tabs::after { left: -6px; top: 15px; width: 3px; height: 26px; border-radius: 0 3px 3px 0; background: var(--gilt); }
@keyframes tabSettle { from { transform: translateY(3px) scale(.88); } }
.spine-tab:focus-visible, .spine-mark:focus-visible, .spine-me:focus-visible { outline: 2px solid var(--gilt); outline-offset: 2px; }
.spine-dot { position: absolute; top: 6px; right: 11px; width: 7px; height: 7px; border-radius: 50%; background: #E0563F; box-shadow: 0 0 0 2px var(--spine); }
.spine-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: dotPing 1.4s var(--ease) 2 backwards .4s; opacity: 0; }   /* 有新事项时闪两下就停 */
@keyframes dotPing { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(3); } }
.spine-me .avatar { transition: transform var(--t-state) var(--ease), box-shadow var(--t-state) var(--ease); }
.spine-me:hover .avatar { transform: scale(1.06); box-shadow: 0 0 0 2px var(--gilt); }
.spine-mark { transition: transform var(--t-state) var(--ease); }
.spine-mark:hover { transform: scale(1.04); } .spine-mark:active { transform: scale(.97); }
.spine-gap { flex: 1 0 12px; }
.spine-me { display: inline-flex; cursor: pointer; border-radius: 50%; margin-bottom: 2px; }
.spine-me .avatar { width: 34px; height: 34px; font-size: 14px; box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.spine-out { padding: 9px 0; }
.index { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 0 10px; border-right: 1px solid var(--rule); overflow-y: auto; }
.index-head { padding: 30px 10px 12px; }
/* 目录翻页：换域后各行从书脊一侧依次落位，前 12 行逐行，其余一起；fill 用 backwards，落位后不占着 transform */
.index > * { animation: indexIn .3s var(--ease) backwards .24s; }
.index > :nth-child(1) { animation-delay: 0s; } .index > :nth-child(2) { animation-delay: 22ms; } .index > :nth-child(3) { animation-delay: 44ms; } .index > :nth-child(4) { animation-delay: 66ms; }
.index > :nth-child(5) { animation-delay: 88ms; } .index > :nth-child(6) { animation-delay: 110ms; } .index > :nth-child(7) { animation-delay: 132ms; } .index > :nth-child(8) { animation-delay: 154ms; }
.index > :nth-child(9) { animation-delay: 176ms; } .index > :nth-child(10) { animation-delay: 198ms; } .index > :nth-child(11) { animation-delay: 220ms; }
@keyframes indexIn { from { opacity: 0; transform: translateX(-8px); } }
.index-head b { font-size: 20px; font-weight: 600; letter-spacing: .04em; color: var(--spine); }
.index-group { margin: 16px 10px 4px; font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--ink-400); }
.index a { display: flex; align-items: center; gap: 10px; flex: 0 0 34px; height: 34px; padding: 0 10px; margin: 1px 0; border-radius: 8px; font-size: 13.5px;
  color: var(--ink-600); text-decoration: none; letter-spacing: .02em;
  transition: background-color .15s cubic-bezier(.23,1,.32,1), color .15s cubic-bezier(.23,1,.32,1), box-shadow .18s cubic-bezier(.23,1,.32,1), transform .12s cubic-bezier(.23,1,.32,1); }
.index a .ic { flex: 0 0 16px; width: 16px; height: 16px; opacity: .66; }
.index a:hover .ic { opacity: 1; transform: translateX(1px); }
.index a:active { transform: scale(.985); }
.index a em { animation: riseIn .3s var(--ease) backwards; }
.index a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.index a:hover { background: rgba(7,29,63,.05); color: var(--ink-900); }
.index a.active { background: #fff; color: var(--spine); font-weight: 600; box-shadow: 0 0 0 1px rgba(7,29,63,.06), 0 1px 2px rgba(7,29,63,.06); }
.index a.active .ic { opacity: 1; }
.index a:focus-visible { outline: 2px solid var(--spine); outline-offset: 1px; }
.index a em { font-style: normal; font-size: 11px; font-weight: 600; min-width: 18px; padding: 1px 6px; text-align: center; border-radius: 9px;
  background: var(--spine); color: #fff; font-variant-numeric: tabular-nums; }
.nav-scrim { display: none; }
.nav-dim { position: fixed; inset: 0 auto 0 0; width: var(--nav-w); z-index: 45; }
.main.main { margin-left: var(--nav-w); }
.mod-frame { position: fixed; left: var(--nav-w); top: 0; right: 0; bottom: 0; }
.mod-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: transparent; transition: opacity var(--t-move) var(--ease); }
.mod-frame.loading iframe { opacity: 0; }
.mod-frame.loading::before { content: '正在打开…'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--ink-400); letter-spacing: .1em; }
.mod-frame.loading::after { content: ''; position: absolute; left: 0; top: 0; width: 28%; height: 2px; background: var(--gilt); animation: frameLoad 1.1s cubic-bezier(.77,0,.175,1) infinite; }   /* 顶上一道烫金进度线 */
@keyframes frameLoad { from { transform: translateX(-100%); } to { transform: translateX(460%); } }
@media (max-width: 860px) {
  .shell-nav { width: min(320px, 86vw); z-index: 90; transform: translateX(-102%); transition: transform .24s cubic-bezier(.23,1,.32,1); }
  .shell-nav.open { transform: none; box-shadow: 28px 0 76px -42px rgba(7,29,63,.6); }
  .index { background: var(--paper); border-right: 0; }
  .index a { flex-basis: 42px; height: 42px; font-size: 14.5px; }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 85; border: 0; padding: 0; background: rgba(7,29,63,.42); animation: fadeIn var(--t-move) var(--ease) backwards; }
  .nav-dim { width: 100%; bottom: auto; height: 72px; }
  .main.main { margin-left: 0; }
  .mod-frame { left: 0; top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .shell-nav, .spine-tab, .index a, .spine-tabs::before, .spine-tabs::after { transition: none; }
  .index > *, .index a em, .spine-tab.on .ic, .spine-dot::after, .nav-scrim, .mod-frame.loading::after, .quick a .ic { animation: none; }
}
/* 统一工作台 */
.board-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 22px 24px; margin-bottom: 14px; border-radius: 14px;
  background: var(--spine); color: #fff; }   /* 和书脊同一种墨蓝，不另起一个蓝 */
.board-hero h2 { margin: 0 0 6px; font-size: 22px; color: #fff; letter-spacing: var(--track-title); }
.board-hero .sub { color: rgba(255,255,255,.82); font-size: 13.5px; }
.board-hero .sub b { color: #f2cf8a; font-size: 16px; }
.board-kpi .kpi-value { font-size: 22px; }
.board-kpi .kpi-value small { font-size: 12px; margin-left: 3px; font-weight: 400; color: var(--ink-400); }
.todo-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line-light, #eef0f4); color: inherit; text-decoration: none; border-radius: 8px;
  transition: background-color var(--t-state) var(--ease); }
.todo-row:hover { background: rgba(31,58,110,.05); }
.todo-row .sys-tag { flex: 0 0 auto; min-width: 40px; text-align: center; color: var(--spine); background: rgba(7,29,63,.06); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; padding: 2px 8px; border-radius: 6px;
  transition: background-color var(--t-state) var(--ease), color var(--t-state) var(--ease); }
.todo-row:hover .sys-tag { background: var(--spine); color: #fff; }   /* 指到哪条，哪条的归属标签着墨 */
.todo-row > b { transition: transform var(--t-state) var(--ease); }
.todo-row:hover > b { transform: translateX(-3px); }
.todo-row:active { transform: scale(.995); }
.todo-row .t { flex: 1; min-width: 0; }
.todo-row .t small { display: block; color: var(--ink-400); font-size: 12px; }
.todo-row > b { font-size: 18px; font-variant-numeric: tabular-nums; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 13px; letter-spacing: var(--track-btn);
  transition: transform var(--t-press) var(--ease), border-color var(--t-state) var(--ease), background-color var(--t-state) var(--ease); }
.quick a:hover { border-color: var(--gold, #c9a46a); background: var(--gold-bg, #fbf6ec); }
.quick a:hover .ic { transform: translateY(-2px); }
.quick a:active { transform: scale(.97); }
i.lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 8px; }
i.lg.ln { width: 14px; height: 2px; vertical-align: middle; }
