/* ============================================================
   企管部工作台 · Airtable 风格（2026-11-25）
   白底 #ffffff · 深藏青文字 #181d26 · Airtable Blue #1b61c9
   依据：awesome-design-md/design-md/airtable/DESIGN.md
   按钮 12px 圆角 · 卡片 1px #e0e2e6 边框 16px 圆角
   蓝调多层阴影 · 正文正向字距 · 间距 8px 基准
   结构：变量 → 基础 → 侧边栏/顶栏 → 卡片/表单/按钮
        → 列表/徽章/表格 → 总览 → 档案 → 详情抽屉 → 响应式
   公司 logo（static/company-logo.png）保留；金色刻度已按
   Airtable 语言改为蓝色 active 状态
   ============================================================ */
:root{
  --navy-950:#181d26;
  --navy-900:#181d26;
  --navy-800:#181d26;
  --navy-700:#254fad;
  --blue-600:#1b61c9;
  --blue-500:#254fad;
  --blue-100:#e8f0fc;
  --blue-50:#f2f6fd;
  --teal:#0d9488;
  --teal-bg:#ccfbf1;
  --ink:#181d26;
  --ink-2:#333333;
  --muted:rgba(4,14,32,0.69);
  --faint:rgba(4,14,32,0.45);
  --line:#e0e2e6;
  --line-soft:#eef1f6;
  --bg:#ffffff;
  --card:#ffffff;
  --surface:#f8fafc;
  --green:#006400;
  --green-bg:#e6f4ea;
  --red:#b91c1c;
  --red-bg:#fee2e2;
  --amber:#92400e;
  --amber-bg:#fef3c7;
  --radius-lg:16px;
  --radius-md:12px;
  --radius-sm:8px;
  --shadow-sm:0 1px 3px rgba(45,127,249,.28),0 0 2px rgba(0,0,0,.08);
  --shadow-md:0 0 20px rgba(15,48,106,.05),0 2px 8px rgba(45,127,249,.18);
  --shadow-lg:0 24px 64px rgba(24,29,38,.18),0 1px 3px rgba(45,127,249,.28);
  --shadow-focus:0 0 0 4px rgba(27,97,201,.16);
  --ease-out:cubic-bezier(.22,1,.36,1);
  --trans-control:border-color .22s var(--ease-out),box-shadow .22s var(--ease-out),background-color .22s var(--ease-out);
  --font:"Haas",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --font-num:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
*{box-sizing:border-box}
html{scrollbar-width:thin;scrollbar-color:#c9d9f2 transparent}
body{
  margin:0;font-family:var(--font);color:var(--ink);font-size:15px;line-height:1.6;letter-spacing:.08px;
  background:var(--bg);
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
::selection{background:#c9d9f2;color:var(--navy-900)}
a{color:var(--navy-700)}
h2{font-size:20px;font-weight:500;color:var(--navy-900);margin:0 0 16px}
h2 .muted{font-size:13px;font-weight:400}
h3{font-size:16px;font-weight:500;color:var(--navy-900)}
.muted{color:var(--muted);font-size:13px}
.hidden{display:none!important}
html.modal-open,html.modal-open body{overflow:hidden;overscroll-behavior:none}
body.modal-locked{position:fixed;left:0;right:0;width:100%}

/* ---------- 整体布局：侧边栏 + 主区 ---------- */
.app-shell{display:flex;min-height:100vh}
.sidebar{
  width:240px;flex:0 0 240px;min-height:100vh;position:sticky;top:0;height:100vh;
  background:#fff;border-right:1px solid var(--line);
  color:var(--ink);display:flex;flex-direction:column;z-index:60;
}
.side-brand{display:flex;align-items:center;gap:12px;padding:20px 16px 16px;border-bottom:1px solid var(--line-soft)}
.side-logo{width:40px;height:40px;border-radius:10px;flex:0 0 auto}
.side-brand-text strong{display:block;font-size:16px;font-weight:600}
.side-brand-text span{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.side-close{display:none;margin-left:auto;background:transparent;border:0;color:var(--muted);font-size:18px;cursor:pointer}
#nav{flex:1;overflow-y:auto;padding:8px 12px 16px}
.side-group{font-size:12px;color:var(--muted);padding:24px 12px 8px}
.side-group:first-child{padding-top:12px}
.side-group.nav-group{cursor:pointer;user-select:none;display:flex;align-items:center;justify-content:space-between}
.side-group.nav-group:hover{color:var(--ink)}
.nav-group .nav-caret{font-size:11px;transition:transform .2s;color:var(--muted)}
.nav-group.collapsed .nav-caret{transform:rotate(-90deg)}
#nav button.nav-collapsed-hidden{display:none}
.mod-group{font-size:12px;color:var(--muted);font-weight:600;padding:12px 2px 4px}
.mod-group:first-child{padding-top:2px}
#nav button{
  display:block;width:100%;text-align:left;background:transparent;border:0;color:var(--ink-2);
  font-size:14px;font-family:var(--font);padding:8px 12px;border-radius:8px;cursor:pointer;margin-bottom:2px;
}
#nav button:hover{background:var(--surface);color:var(--ink)}
#nav button.active{background:rgba(27,97,201,.08);color:var(--blue-600);font-weight:500;box-shadow:inset 3px 0 0 var(--blue-600)}
.side-foot{padding:12px 16px;font-size:12px;color:var(--muted);border-top:1px solid var(--line-soft)}
.side-overlay{display:none}
.main{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{
  height:56px;background:#fff;border-bottom:1px solid var(--line);
  display:flex;align-items:center;gap:16px;padding:0 20px;position:sticky;top:0;z-index:40;
}
.hamburger{display:none;background:transparent;border:0;font-size:20px;cursor:pointer;color:var(--navy-900);padding:6px}
.top-search{flex:1;max-width:460px;display:flex;gap:8px}
.top-search input{
  flex:1;background:#f8fafc;border:1px solid transparent;border-radius:10px;
  padding:8px 12px;font-size:14px;font-family:var(--font);transition:var(--trans-control);
}
.top-search input:focus{outline:none;background:#fff;border-color:var(--blue-600);box-shadow:var(--shadow-focus),0 2px 10px rgba(24,29,38,.08)}
.top-right{margin-left:auto;display:flex;align-items:center;gap:12px}
.user-chip{
  display:inline-flex;align-items:center;gap:8px;background:var(--blue-50);color:var(--navy-800);
  border-radius:8px;padding:4px 12px;font-size:13px;font-weight:500;white-space:nowrap;
}
main{padding:24px 32px 32px;max-width:1240px;width:100%;margin:0 auto}
main section{display:none}
main section.active{display:block;animation:fadeUp .25s ease}
@keyframes fadeUp{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.page-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.page-head h2{margin:0}

/* ---------- 卡片 / 表单 / 按钮 ---------- */
.card{
  background:var(--card);border:1px solid #e0e2e6;border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);padding:20px;margin-bottom:16px;
}
.card h3{margin-top:0}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px;margin-bottom:16px}
.stat{
  background:#fff;border:1px solid #e0e2e6;border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);
  padding:20px;
}
.stat b{display:block;font-size:28px;line-height:1.2;color:var(--navy-900);font-weight:500;font-variant-numeric:tabular-nums}
.stat b small{font-size:14px;font-weight:500;color:var(--muted)}
.stat span{font-size:13px;color:var(--muted)}
/* 工作汇总导出提示独占一行（2026-11-30 QA M-4）：提示原来是行内元素，挨着“导出 Word”按钮折成两行排版挤；改成块级独占一行 */
#sum-msg{display:block;margin-top:8px}
/* 绩效统计卡片标签不断字（2026-11-30 QA M-04）：标签 <span> 与小字 <small> 原来都是行内元素，连成一行“待审核人数等待结果审核”在窄卡片里断字换行；改成各占一行，5–6 字标签一行放得下 */
#perf-stats .stat span,#perf-stats .stat small{display:block}
label{display:block;font-size:13px;color:var(--ink-2);margin:12px 0 4px;font-weight:500}
input,select,textarea{
  width:100%;min-height:40px;padding:8px 12px;border:1px solid #e0e2e6;border-radius:10px;font-size:14px;
  font-family:var(--font);background:#fff;color:var(--ink);transition:var(--trans-control);
}
input::placeholder,textarea::placeholder{color:var(--faint)}
input:hover,select:hover,textarea:hover{border-color:#c3cede}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--blue-600);box-shadow:var(--shadow-focus),0 2px 10px rgba(24,29,38,.08)}
input:disabled,select:disabled,textarea:disabled{background:#f8fafc;color:var(--muted);cursor:not-allowed}
/* 下拉框：去掉原生粗糙箭头，换统一的精致 chevron；选中值字重稍强 */
select:not([multiple]){
  -webkit-appearance:none;appearance:none;cursor:pointer;font-weight:500;
  text-overflow:ellipsis;white-space:nowrap;overflow:hidden;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;background-size:14px 14px;
  padding-right:36px;
}
select:not([multiple]):focus{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
textarea{min-height:76px;resize:vertical}
input[type=checkbox],input[type=radio]{width:18px;height:18px;min-height:0;accent-color:var(--blue-600);vertical-align:middle}
.mod-row{display:flex;align-items:center;gap:12px;padding:8px 2px;border-bottom:1px solid var(--line);cursor:pointer}
.mod-row:last-child{border-bottom:0}
button{font-family:var(--font);cursor:pointer}
.primary{
  background:var(--blue-600);color:#fff;border:0;border-radius:12px;padding:8px 16px;min-height:40px;font-size:14px;font-weight:500;letter-spacing:.08px;
  transition:background-color .15s var(--ease-out),transform .1s var(--ease-out);
}
.primary:hover{background:#254fad}
.primary:active{transform:translateY(1px)}
.primary:disabled{background:#a8c4ea;cursor:not-allowed}
.ghost{
  background:#fff;color:var(--ink-2);border:1px solid #e0e2e6;border-radius:12px;padding:8px 16px;min-height:40px;font-size:14px;letter-spacing:.08px;
}
.ghost:hover{border-color:var(--blue-500);color:var(--navy-700)}
a.ghost{display:inline-flex;align-items:center;text-decoration:none}
.ghost.active{background:var(--blue-50);border-color:var(--blue-500);color:var(--blue-600);font-weight:600}
.danger{background:var(--red-bg);color:var(--red);border:1px solid #fecaca;border-radius:12px;padding:8px 16px;font-size:14px}
.small{padding:4px 12px;font-size:13px}
.row{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.row>div{min-width:0}
.filters{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:0 0 16px}
.filters input,.filters select{width:auto;min-width:150px}
/* 筛选栏复选框/单选框不吃 .filters 的 min-width:150px（否则复选框被撑成宽盒子） */
.filters input[type=checkbox],.filters input[type=radio]{min-width:0;width:18px;height:18px}
/* 筛选栏复选框标签做成和其他控件一样的框：同高、同边框、同圆角、同底色 */
.filters .filter-check{margin:0;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:8px 12px;border:1px solid #e0e2e6;border-radius:10px;background:#fff;font-size:14px;cursor:pointer;white-space:nowrap}
.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.item-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.item-head b{font-size:16px}
/* 人员异动：简约一行 + 点开展开 */
.move-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;cursor:pointer;padding:2px 0}
.move-row .chev{color:var(--ink-2);transition:transform .15s;font-size:14px;line-height:1}
.move-row.open .chev{transform:rotate(90deg)}
/* 人员异动：逐项勾选横向芯片（只作用于异动卡片，退休模块不动） */
.check-list-moves{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 2px}
.check-list-moves .check{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 12px;border:1px solid var(--line-soft);border-radius:999px;background:#fff;cursor:pointer;font-size:14px}
.check-list-moves .check:hover{border-color:var(--blue-500)}
.check-list-moves .check input{accent-color:#1a7f37;width:16px;height:16px;margin:0;flex:none;cursor:pointer}
.check-list-moves .check .t{display:inline-flex;align-items:baseline;gap:4px;min-width:0}
.check-list-moves .check .t b{font-weight:600;white-space:nowrap}
.check-list-moves .check .t small{color:var(--muted);white-space:nowrap}
.check-list-moves .check.done{background:var(--green-bg);border-color:#b7dfc0}
.check-list-moves .check.done .t b,.check-list-moves .check.done .t small{color:var(--green)}
@media (max-width:480px){
  .check-list-moves{gap:6px}
  .check-list-moves .check{padding:6px 10px}
  .check-list-moves .check .t small{display:none}
}
.badge{display:inline-block;padding:2px 8px;border-radius:6px;font-size:12px;font-weight:500;background:#e8f0fc;color:#1b61c9;white-space:nowrap}
.badge.red{background:var(--red-bg);color:var(--red)}
.badge.green{background:var(--green-bg);color:var(--green)}
.badge.gray{background:#f3f4f6;color:var(--ink-2)}
.badge.warn{background:var(--amber-bg);color:var(--amber)}
.badge.teal{background:var(--teal-bg);color:#0f766e}
details summary{cursor:pointer;color:var(--navy-700);font-weight:500;margin:12px 0;font-size:14px}

/* ---------- 表格 ---------- */
.table-wrap{overflow-x:auto;border:1px solid var(--line-soft);border-radius:var(--radius-md);background:#fff}
table{border-collapse:collapse;width:100%;font-size:14px}
.roster-table th,.roster-table td{padding:8px 12px;text-align:left;border-bottom:1px solid var(--line-soft);white-space:nowrap}
.roster-table th{background:#f8fafc;color:var(--muted);font-size:12px;font-weight:500;position:sticky;top:0;z-index:1}
.roster-table tbody tr:hover{background:#f8fafc}
.roster-table a{color:var(--blue-600);text-decoration:none}
.roster-table a:hover{text-decoration:underline}
.roster-pager{display:flex;align-items:center;gap:12px;justify-content:flex-end;margin-top:12px}
.page-info{font-size:13px;color:var(--muted)}

/* ---------- 徽章 / 花名册 ---------- */
.roster-pill{display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0 12px;border-radius:6px;font-size:12px;font-weight:500;line-height:1;white-space:nowrap;flex:0 0 auto}
.roster-pill.st-active{background:var(--green-bg);color:var(--green)}
.roster-pill.st-left{background:var(--red-bg);color:var(--red)}
.roster-pill.st-retire{background:#e8f0fc;color:#1b61c9}
.roster-pill.st-other{background:#f3f4f6;color:var(--ink-2)}
.roster-pill.st-warn{background:var(--amber-bg);color:var(--amber)}
.roster-pill.cat{background:var(--blue-100);color:var(--navy-700)}
.roster-count{font-size:13px;color:var(--muted);margin:8px 0}
.roster-namecell{display:flex;align-items:center;gap:8px}
.roster-mini-avatar{
  width:32px;height:32px;border-radius:50%;background:var(--blue-100);color:var(--navy-700);
  display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-size:14px;flex:0 0 auto;
}
.contract-strip{border-left:4px solid var(--amber)}
.contract-strip h3{margin:0 0 4px}
.contract-strip ul{margin:8px 0 0;padding:0;list-style:none}
.contract-strip li{
  display:flex;gap:12px;align-items:center;padding:8px 4px;border-top:1px solid var(--line-soft);
  cursor:pointer;font-size:14px;
}
.contract-strip li:hover{background:#f8fafc}
.contract-strip li b{color:var(--navy-900)}
.contract-strip li .muted{margin-left:auto;white-space:nowrap}

/* ---------- 详情抽屉（可滚动；iOS 锁定逻辑见 app.js lockScroll） ---------- */
.modal{position:fixed;inset:0;background:rgba(24,29,38,.45);z-index:200;display:flex;align-items:center;justify-content:center;padding:20px}
.modal.hidden{display:none}
.modal-box{
  background:#fff;border-radius:16px;box-shadow:var(--shadow-lg);width:min(880px,94vw);max-height:88vh;
  display:flex;flex-direction:column;overflow:hidden;position:relative;
}
.modal-box.roster-detail{animation:slideIn .22s ease}
@keyframes slideIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.ros-detail-body{
  flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  touch-action:pan-y;-webkit-overflow-scrolling:touch;
  padding-bottom:48px;
}
.modal{ touch-action:none }
.ros-scroll-fade{
  position:absolute;left:0;right:0;bottom:0;z-index:3;
  background:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.97) 55%);
  border-top:1px solid var(--line-soft);
  padding:14px 12px 10px;
  display:flex;align-items:center;justify-content:center;gap:8px;
  font-size:12px;color:var(--navy-700);font-weight:500;white-space:nowrap;
  opacity:0;transition:opacity .25s ease;pointer-events:none;
}
.modal-box.roster-detail.has-more .ros-scroll-fade{opacity:1}
.ros-scroll-fade::after{content:"⌄";font-size:15px;line-height:1;color:var(--navy-700)}
/* 人员详情弹窗关闭栏（2026-11-30）：常驻盒子顶部、滚动区之外，打开详情始终可见。
   44px 点按区，深灰圆底 + 白色 ×，高对比不藏在背景里；底部“向下滑动查看更多”浮条在盒子底端，两者不重叠。 */
.ros-closebar{flex:0 0 auto;display:flex;justify-content:flex-end;align-items:center;padding:8px 10px 0;background:#fff;z-index:5}
.ros-close-btn{width:44px;height:44px;min-width:44px;border-radius:50%;border:1px solid var(--line);background:#f1f5f9;color:#0f172a;font-size:22px;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.ros-close-btn:active{background:#e2e8f0}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin-bottom:0}
.detail-grid>div{font-size:14px;min-width:0}
.detail-grid .field-label{display:block;font-size:11px;color:var(--faint);margin-bottom:1px}
.detail-grid .field-value{font-size:14px;color:var(--ink);word-break:break-word;line-height:1.45}
.detail-grid .field-value.sensitive{font-family:var(--font-num);font-size:13px}
.detail-card{border:1px solid var(--line-soft);border-radius:var(--radius-md);padding:12px 14px;margin-bottom:10px}
/* ---------- 详情页统一版式（花名册 / 证书 / 退休 / 异动 / 合同共用） ----------
   标签灰 11px、值黑 14px、分组卡片、间距一致；所有详情面只用下面这套类，不再写内联样式 */
.detail-grid>div.full{grid-column:1/-1}
.detail-sub{margin-top:10px}
.detail-sub:first-child{margin-top:0}
.detail-sub>h4{margin:0 0 5px;font-size:12px;font-weight:600;color:var(--muted)}
.detail-sub .detail-grid{gap:8px 16px}
.detail-rows{display:flex;flex-direction:column}
.detail-rows .drow{display:flex;gap:12px;padding:6px 2px;border-bottom:1px solid var(--line-soft);font-size:14px;align-items:baseline}
.detail-rows .drow:last-child{border-bottom:0}
.detail-rows .field-label{flex:0 0 88px;font-size:11px;color:var(--faint)}
.detail-rows .field-value{flex:1;min-width:0;font-size:14px;color:var(--ink);line-height:1.45;word-break:break-word}
.detail-table{width:100%;border-collapse:collapse;font-size:13px}
.detail-table th{text-align:left;font-size:12px;font-weight:500;color:var(--faint);border-bottom:1px solid var(--line);padding:5px 8px 5px 0;white-space:nowrap}
.detail-table td{border-bottom:1px solid var(--line-soft);padding:6px 8px 6px 0;vertical-align:top;line-height:1.45}
.detail-table tr:last-child td{border-bottom:0}
.detail-table-wrap{overflow-x:auto;margin:0 -2px;padding:0 2px}

/* 证书/学历详情：单张卡内连续流——组标题通栏，条目跨组填满空位（dense 回填：单项组的下一项顶上来） */
.detail-card.detail-flow{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;grid-auto-flow:dense}
.detail-card.detail-flow>h3{grid-column:1/-1;margin:0}
.detail-card.detail-flow .detail-sub{display:contents}
.detail-card.detail-flow .detail-sub>h4{grid-column:1/-1;margin:2px 0 0}
.detail-card.detail-flow .detail-sub .detail-grid{display:contents}
.detail-chart{margin-top:4px}
.chart-bar-row{display:flex;align-items:center;gap:10px;margin:6px 0}
.chart-bar-label{flex:0 0 108px;font-size:13px;color:var(--muted);text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chart-bar-track{flex:1;min-width:0;height:10px;background:#eef1f6;border-radius:5px;overflow:hidden}
.chart-bar-fill{display:block;height:100%;border-radius:5px;background:var(--blue-600)}
.chart-bar-fill.green{background:#16a34a}
.chart-bar-fill.amber{background:#d97706}
.chart-bar-fill.red{background:#dc2626}
.chart-bar-val{flex:0 0 56px;font-size:13px;font-weight:600;color:var(--ink);text-align:right;white-space:nowrap}
.chart-donut{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.chart-donut svg{flex:0 0 auto}
.chart-legend{display:flex;flex-direction:column;gap:6px;font-size:13px}
.chart-legend .lg{display:flex;align-items:center;gap:6px;color:var(--ink-2)}
.chart-legend .lg i{width:10px;height:10px;border-radius:3px;flex:0 0 auto}
.chart-legend .lg b{margin-left:8px;font-weight:600;color:var(--ink)}
.detail-list{margin:0;padding-left:20px;font-size:14px;line-height:1.7;color:var(--ink)}
.detail-list li{margin-bottom:4px}
.detail-empty{color:var(--muted);font-size:14px;padding:4px 0}
.detail-card h3{margin:0 0 8px;font-size:14px}

/* ---------- 总览 ---------- */
.dash-banner{
  background:#fff;
  border:1px solid #e0e2e6;border-radius:var(--radius-lg);
  padding:24px;margin-bottom:16px;display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap;
}
.dash-banner-text{flex:1;min-width:280px}
.dash-greet{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.dash-greet h2{font-size:24px;font-weight:500;margin:0}
.dash-user{font-size:16px;color:var(--navy-800);font-weight:500}
.dash-sub{color:var(--ink-2);margin:8px 0 16px;font-size:14px}
.dash-chips{display:flex;gap:12px;flex-wrap:wrap}
.chip-stat{
  background:#fff;border:1px solid #e0e2e6;border-radius:16px;
  padding:12px 16px;min-width:132px;
}
.chip-stat span{display:block;font-size:12px;color:var(--muted)}
.chip-stat b{font-size:22px;color:var(--navy-900);font-weight:500;font-variant-numeric:tabular-nums}
.chip-stat b small{font-size:13px;color:var(--muted);font-weight:500}
.chip-stat .trend{font-size:12px;font-weight:500}
.chip-stat .trend.up{color:var(--green)}
.chip-stat .trend.down{color:var(--red)}
.dash-weather{
  flex:0 0 300px;background:#fff;border:1px solid var(--line);
  color:var(--ink);border-radius:16px;padding:16px 20px;position:relative;
}
.dash-weather .wx-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.dash-weather .wx-head span:first-child{font-size:16px;font-weight:500}
.dash-weather .muted{color:var(--muted)}
.dash-weather.wx-fallback{background:#f8fafc;color:var(--ink-2)}
.wx-main{display:flex;align-items:center;gap:12px;margin:8px 0 4px}
.wx-icon{width:52px;height:52px;flex:0 0 auto}
.wx-icon svg{width:100%;height:100%}
.wx-temp{font-size:40px;line-height:1;font-weight:500;font-variant-numeric:tabular-nums}
.wx-cond{font-size:15px;font-weight:500}
.wx-meta{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:8px;font-size:13px;color:var(--muted)}
.wx-advice{margin:12px 0 0;padding:8px 12px;border-radius:8px;background:var(--surface);font-size:13px;line-height:1.5}
.dash-row3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:16px}
.dash-row2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.dash-row3 .card,.dash-row2 .card{margin-bottom:0}
.dash-card-head{display:flex;align-items:center;gap:8px;margin:0 0 12px;padding:0 0 12px;border-bottom:1px solid var(--line-soft)}
.dash-card-head h3{color:var(--navy-900);margin:0;display:flex;align-items:center;gap:8px}
.dash-card-head h3::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--blue-600);flex:0 0 auto}
.dash-card-head.purple h3::before{background:var(--blue-500)}
.dash-card-head.green h3::before{background:var(--green)}
.dash-card-head.amber h3::before{background:var(--blue-600)}
.dash-card-head .badge{margin-left:auto}
.dash-card-head .muted{margin-left:auto}
.todo-row{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--line-soft);font-size:14px}
.todo-row:last-child{border-bottom:0}
.todo-row .muted{margin-left:auto;white-space:nowrap}
.app-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.app-grid button{
  background:#f8fafc;border:1px solid var(--line-soft);border-radius:12px;padding:12px 4px;
  font-size:13px;color:var(--ink-2);display:flex;flex-direction:column;align-items:center;gap:8px;
}
.app-grid button:hover{border-color:var(--blue-500);background:var(--blue-50);color:var(--navy-800)}
.app-ic{
  width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  background:#f8fafc;color:var(--navy-700);
}
.app-ic svg{width:20px;height:20px}
.donut-wrap{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.donut-legend{font-size:13px;line-height:1.9}
.donut-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px}
.dept-bar-row{display:grid;grid-template-columns:112px 1fr 52px;gap:12px;align-items:center;font-size:13px;padding:4px 0}
.dept-bar{height:8px;background:#f8fafc;border-radius:99px;overflow:hidden}
.dept-bar i{display:block;height:100%;background:var(--blue-600);border-radius:99px}
.timeline{position:relative;padding-left:20px}
.timeline::before{content:"";position:absolute;left:5px;top:8px;bottom:8px;width:2px;background:var(--line)}
.tl-item{position:relative;padding:8px 0 8px 12px;font-size:14px}
.tl-item::before{content:"";position:absolute;left:-20px;top:14px;width:10px;height:10px;border-radius:50%;background:var(--blue-500);border:2px solid #fff;box-shadow:0 0 0 2px var(--blue-100)}
.tl-item.done::before{background:var(--green)}
.tl-item .tl-date{color:var(--muted);font-size:12px;margin-right:8px;font-family:var(--font-num)}
.tl-item .badge{margin-left:8px}
.chart-empty{
  padding:36px 12px;text-align:center;color:var(--faint);font-size:14px;
  border:1px dashed var(--line);border-radius:12px;background:#ffffff;
}
.chart-note{font-size:12px;color:var(--muted);margin-top:8px}
.progress-bar{height:8px;background:#f8fafc;border-radius:99px;overflow:hidden}
.progress-bar i{display:block;height:100%;background:var(--blue-600);border-radius:99px}
.ring-wrap{display:flex;align-items:center;gap:16px}
.ring-num{font-size:26px;font-weight:500;color:var(--navy-900);font-variant-numeric:tabular-nums}
.funnel-row{display:grid;grid-template-columns:120px 1fr 60px;gap:12px;align-items:center;padding:8px 0;font-size:14px}
.funnel-bar{height:22px;border-radius:6px;background:var(--blue-600);color:#fff;font-size:12px;display:flex;align-items:center;padding:0 8px;min-width:34px}
.hbar-row{display:grid;grid-template-columns:132px 1fr 88px;gap:12px;align-items:center;padding:4px 0;font-size:13px}
.hbar{height:8px;background:#f8fafc;border-radius:99px;overflow:hidden}
.hbar i{display:block;height:100%;background:var(--blue-600)}
.stacked-bar{display:flex;height:24px;border-radius:8px;overflow:hidden;margin:8px 0}
.stacked-bar span{display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;white-space:nowrap;overflow:hidden}

/* ---------- 档案（360°） ---------- */
.archive{display:grid;grid-template-columns:340px 1fr;gap:16px;align-items:start}
.archive-left{margin-bottom:0;min-width:0} /*  grid 子项默认 min-width:auto 会被内容撑宽，手机上横向溢出；放开才能缩到 1 列 */
.archive-search{display:flex;gap:8px}
.archive-search input{flex:1;min-width:0;background:#f8fafc;border-color:transparent}
.archive-search input:focus{background:#fff}
.archive-search button{flex:none}
.archive-filters{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.archive-filters select{flex:1;min-width:110px;font-size:13px;padding:8px 32px 8px 12px}
#roster-list{margin-top:8px}
.arch-item{
  display:flex;gap:12px;align-items:flex-start;padding:12px;border-radius:12px;cursor:pointer;
  border:1px solid transparent;
}
.arch-item:hover{background:#f8fafc}
.arch-item.selected{background:var(--blue-50);border-color:#c9d9f2}
.arch-avatar{
  width:40px;height:40px;border-radius:50%;background:var(--blue-100);color:var(--navy-700);
  display:flex;align-items:center;justify-content:center;font-weight:600;font-size:16px;flex:0 0 auto;
}
.arch-avatar img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
.arch-profile .ros-avatar.has-photo{padding:0;overflow:hidden;background:#e8eef7}
.arch-profile .ros-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.arch-item-body{flex:1;min-width:0}
.arch-item-body b{font-size:15px;color:var(--navy-900);font-weight:500}
.arch-item-body .muted{display:block;font-size:12px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.arch-item .roster-pill{align-self:center}
.archive-right{margin-bottom:0;max-height:calc(100vh - 190px);overflow-y:auto;position:sticky;top:76px;overscroll-behavior:contain}
#ros-form-wrap{scroll-margin-top:72px}
.archive-empty{text-align:center;padding:60px 20px;color:var(--muted)}
.archive-empty-ic{width:48px;height:48px;margin:0 auto 12px;color:var(--faint)}
.archive-empty-ic svg{width:100%;height:100%}
.arch-profile{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap;padding:8px 2px 16px;border-bottom:1px solid var(--line-soft)}
.arch-profile .ros-avatar{
  width:72px;height:72px;border-radius:50%;background:#1b61c9;
  color:#fff;display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:600;flex:0 0 auto;
}
.arch-profile h3{font-size:20px;margin:4px 0 8px}
.arch-profile .arch-meta{font-size:13px;color:var(--muted);line-height:1.8}
.arch-actions{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.arch-actions .ghost.small,.arch-actions .danger.small{min-height:0;height:32px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center}
.arch-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:16px 0;overflow-x:auto}
.arch-tabs button{
  background:transparent;border:0;border-bottom:2px solid transparent;color:var(--muted);
  font-size:14px;padding:8px 16px;white-space:nowrap;
}
.arch-tabs button.active{color:var(--blue-600);border-bottom-color:var(--blue-600);font-weight:600}
.arch-pane{display:none}
.arch-pane.active{display:block;animation:fadeUp .2s ease}

/* ---------- 迷你日历 / 备忘 ---------- */
.cal-mini .cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.cal-mini .cal-head strong{font-size:15px;color:var(--navy-900);font-weight:500}
.cal-mini .cal-head button{font-size:16px;line-height:1;padding:4px 8px}
.cal-week,.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}
.cal-week span{font-size:12px;color:var(--muted);padding:4px 0}
.cal-day{position:relative;border:0;background:transparent;border-radius:8px;min-height:32px;font-size:13px;color:var(--ink);cursor:pointer;padding:0}
.cal-day:hover{background:var(--blue-50)}
.cal-day.empty{cursor:default;background:transparent}
.cal-day.is-today{color:var(--navy-700);font-weight:600;box-shadow:inset 0 0 0 1.5px var(--blue-600)}
.cal-day.is-selected{background:#1b61c9;color:#fff;font-weight:600}
.cal-day i{position:absolute;left:50%;bottom:2px;transform:translateX(-50%);width:5px;height:5px;border-radius:50%;background:var(--blue-600);display:block}
.cal-day.is-selected i{background:#fff}
.cal-today{margin:8px 0 0;font-size:13px;color:var(--muted)}
.cal-today b{color:var(--navy-700);font-size:15px;font-weight:500}
.memo-row{display:flex;align-items:flex-start;gap:12px;padding:8px 0;border-bottom:1px solid var(--line-soft)}
.memo-row:last-child{border-bottom:0}
.memo-row input[type=checkbox]{width:18px;height:18px;margin-top:2px;accent-color:var(--navy-700);flex:0 0 auto}
.memo-body{flex:1;min-width:0}
.memo-text{font-size:14px;word-break:break-word}
.memo-row.done .memo-text{color:var(--muted);text-decoration:line-through}
.memo-meta{font-size:12px;margin-top:2px}

/* ---------- 培训 / 招聘 / 薪酬 ---------- */
.radio-row{display:flex;gap:20px;flex-wrap:wrap;align-items:center}
.radio-row label{margin:0;display:flex;align-items:center;gap:8px;font-weight:500}
.part-picker{display:flex;gap:8px;align-items:center}
.part-picker input{flex:1}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;align-items:center}
.chip{display:inline-flex;align-items:center;gap:4px;background:var(--blue-50);color:var(--navy-800);border:1px solid #c9d9f2;border-radius:8px;padding:4px 8px 4px 12px;font-size:13px}
.chip button{border:0;background:transparent;color:var(--navy-700);font-size:15px;line-height:1;cursor:pointer;padding:0 2px}
.train-item .muted{margin-top:4px}
.train-file-cat{border:1px solid var(--line-soft);border-radius:12px;padding:12px;margin-bottom:12px}
.train-file-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.train-file-row{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:8px 0;border-top:1px solid var(--line-soft);font-size:14px}
.pkg-file-row{display:flex;align-items:center;gap:8px;padding:5px 2px;border-top:1px solid var(--line-soft);font-size:13px;line-height:1.45;cursor:pointer}
.pkg-file-row input{flex:none;margin:0}
.pkg-file-ext{flex:none;min-width:34px;text-align:center;font-size:11px;font-weight:600;color:var(--blue-600);background:var(--blue-100);border-radius:4px;padding:1px 5px}
.pkg-file-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pkg-file-meta{flex:none;max-width:46%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--muted)}
.pkg-more-btn{margin:6px 0 2px}
.pkg-group{border-top:1px solid var(--line-soft)}
.pkg-group-head{display:flex;align-items:center;gap:6px;width:100%;text-align:left;background:none;border:0;padding:8px 2px;font-size:14px;font-weight:600;color:var(--ink);cursor:pointer}
.pkg-group-head:hover{color:var(--blue-600)}
.pkg-group-chev{flex:none;color:var(--muted);font-size:12px}
.pkg-group-head-row{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line-soft)}
.pkg-group-head-row .pkg-group-head{border-top:0;flex:1;min-width:0;padding:8px 0}
.pkg-group-sel{flex:none;display:flex;gap:4px}
.pkg-group-sel .ghost{margin:0}
.pkg-group-body{padding:2px 0 8px}
.pkg-group-expired{color:var(--muted);font-size:12px;font-weight:500}
.pkg-file-info{flex:none}
.pkg-ledger-sub{font-size:12px;color:var(--muted);margin-top:1px}
.pkg-ledger-tight td{padding:5px 8px}
.pkg-exp{color:var(--red);font-weight:600}
#pkg-result h5{margin:12px 0 4px;font-size:14px}
.train-file-row span:first-child{min-width:0;word-break:break-all}
.train-file-row a{white-space:nowrap}
/* 证书编辑页扫描件列表收紧（只作用于编辑页，不动培训/转入转出/打包共用的 .train-file-row） */
#cert-scans-list .train-file-row{padding:5px 0;font-size:12px;gap:6px}
#cert-scans-list .train-file-row .muted{font-size:11px}
#cert-scans-list .train-file-row .ghost.small{padding:2px 8px}

/* ---------- 登录页 ---------- */
.auth-shell{display:flex;min-height:100vh}
.auth-side{
  flex:0 0 380px;background:var(--surface);color:var(--ink);border-right:1px solid var(--line);
  display:flex;flex-direction:column;justify-content:center;padding:40px;
}
.auth-side img{width:64px;height:64px;border-radius:16px;margin-bottom:20px;box-shadow:0 8px 24px rgba(24,29,38,.14)}
.auth-side h1{font-size:28px;font-weight:500;margin:0 0 8px}
.auth-side p{color:var(--muted);font-size:14px;line-height:1.8}
.auth-feats{list-style:none;margin:28px 0 0;padding:24px 0 0;border-top:1px solid var(--line)}
.auth-feats li{color:var(--ink-2);font-size:14px;line-height:1.6;padding:4px 0 4px 24px;position:relative}
.auth-feats li::before{
  content:"";position:absolute;left:2px;top:13px;width:8px;height:8px;border-radius:50%;
  background:var(--blue-500);
}
.auth-main{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;
  background:var(--bg);
}
.auth-brand-mobile{display:none}
.auth-logo{display:block;max-height:72px;width:auto;max-width:300px;margin:0 auto 20px}
.auth-main .card{width:100%;max-width:420px;margin:0}
.auth-card{border-radius:16px;box-shadow:var(--shadow-md);padding:32px 28px}
.auth-card h2{font-size:24px;margin:0 0 4px}
.auth-sub{margin:0 0 4px}
.auth-card input{min-height:48px;font-size:16px;border-radius:10px}
.auth-card input:focus{box-shadow:var(--shadow-focus)}
.pw-wrap{position:relative}
.pw-wrap input{padding-right:48px}
.pw-toggle{
  position:absolute;right:8px;top:50%;transform:translateY(-50%);
  width:36px;height:36px;min-height:0;border:0;background:transparent;color:rgba(4,14,32,0.45);
  display:flex;align-items:center;justify-content:center;border-radius:8px;
}
.pw-toggle:hover{color:var(--navy-700);background:#e8f0fc}
.pw-toggle .eye-off{display:none}
.pw-toggle.on{color:var(--blue-600)}
.pw-toggle.on .eye-off{display:block}
.pw-toggle.on .eye{display:none}
.remember-me{display:flex;align-items:center;gap:8px;margin:16px 0 0;font-size:13px;color:var(--ink-2);font-weight:400;cursor:pointer}
.remember-me input{flex:0 0 auto}
.auth-submit{
  width:100%;min-height:48px;font-size:16px;margin-top:20px;
  background:var(--blue-600);
}
.auth-submit:hover{background:#254fad}
.auth-msg{margin:16px 0 0;padding:12px;border-radius:8px;background:var(--red-bg);color:var(--red);font-size:13px}
.auth-foot{text-align:center;margin-top:20px}
.auth-copy{margin:20px 0 0;font-size:12px;color:var(--faint)}
@media(max-width:900px){
  .auth-logo{max-height:56px;margin-bottom:16px}
  .auth-brand-mobile{display:flex;align-items:center;gap:12px;margin-bottom:20px;align-self:flex-start}
  .auth-brand-mobile img{width:52px;height:52px;border-radius:14px;box-shadow:0 6px 18px rgba(24,29,38,.25)}
  .auth-brand-mobile strong{display:block;font-size:19px;color:var(--navy-900);line-height:1.3}
  .auth-brand-mobile span{font-size:12px;color:var(--muted)}
  .auth-card{padding:28px 24px}
}

/* ---------- 培训打印（屏幕隐藏，打印只显示审批表/总结） ----------
   打印字体：宋体/仿宋/楷体（带系统 fallback），文字黑色、边框黑色，表头无底色；
   A4 一页。 */
#train-print{display:none}
.print-sheet{font-family:"SimSun","宋体",serif;color:#000}
.print-title{text-align:center;margin:0 0 4px;color:#000}
.apply-title{font-size:15pt;font-weight:400}
.apply-form th{font-weight:400}
.out-title{font-size:22pt;font-weight:700}
.rem-title{font-size:18pt;font-weight:700}
.print-company{text-align:center;color:#475569;margin:0 0 16px}
.print-table{width:100%;border-collapse:collapse;margin:8px 0}
.print-table th,.print-table td{border:1px solid #000;padding:8px 10px;text-align:left;font-size:14px;vertical-align:top;color:#000}
.print-table th{width:150px;font-weight:600;white-space:nowrap}
.print-page-break{page-break-before:always}
.print-code{display:flex;justify-content:space-between;font-size:13px;margin:0 0 2px}
.print-meta{margin:0 0 8px;font-size:14px}
.print-list{font-size:14px;line-height:1.9;padding-left:22px}
.print-list li{margin-bottom:6px}
.print-note{font-family:"FangSong","仿宋","仿宋_GB2312",serif;font-size:13px;color:#000;line-height:1.8}
.print-table.cols5 th{width:auto;text-align:center;white-space:normal}
.print-table.cols5 tr:not(:first-child) td:nth-child(4),.print-table.cols5 tr:not(:first-child) td:nth-child(5){text-align:center;white-space:nowrap}
.print-table.cols5 tr.blank td{height:34px}
.apply-form tr:first-child th{font-weight:600}
.op-cell{display:flex;flex-direction:column;justify-content:space-between;text-align:left}
.op-cell.op1{height:71pt}
.op-cell.op2{height:85pt}
.op-cell.op3{height:119pt}
.print-table .sign-line{text-align:right;padding-bottom:2px}
.print-time{font-family:"KaiTi","楷体",serif;font-size:15pt;text-align:right;margin:0 0 8px;color:#000}
.out-form{font-family:"FangSong","仿宋","仿宋_GB2312",serif}
.out-form th{width:auto}
.out-form th,.out-form td{font-size:15pt}
.out-tall{height:134pt;vertical-align:top}
.op-blank{height:57pt;vertical-align:top}
.rem-sheet{font-family:"FangSong","仿宋","仿宋_GB2312",serif;color:#000}
.rem-body{font-size:12pt;line-height:1.7;margin:0 0 6px}
.rem-indent{text-indent:2em}
.rem-sign{display:flex;justify-content:flex-start;gap:60px;margin-top:24px;font-size:12pt}
@media print{
  @page{size:A4;margin:15mm 18mm}
  body{background:#fff !important}
  body *{visibility:hidden}
  #train-print,#train-print *{visibility:visible}
  #train-print{display:block;position:absolute;left:0;top:0;width:100%;padding:0}
}

/* ---------- 响应式 ---------- */
@media(max-width:1100px){
  .dash-row3{grid-template-columns:1fr 1fr}
  .dash-row3>.card:last-child{grid-column:1/-1}
  .archive{grid-template-columns:300px 1fr}
}
@media(max-width:900px){
  .sidebar{
    position:fixed;left:0;top:0;bottom:0;transform:translateX(-105%);
    transition:transform .25s ease;box-shadow:var(--shadow-lg);
  }
  .sidebar.open{transform:none}
  .side-close{display:block}
  .side-overlay{display:block;position:fixed;inset:0;background:rgba(24,29,38,.45);z-index:55;opacity:0;pointer-events:none;transition:opacity .25s}
  .side-overlay.show{opacity:1;pointer-events:auto}
  .hamburger{display:block}
  .topbar{padding:0 12px;gap:8px}
  .top-search{max-width:none}
  .top-right .muted{display:none}
  main{padding:16px 12px 24px}
  .dash-row3,.dash-row2{grid-template-columns:1fr}
  .dash-weather{flex:1 1 100%}
  .archive{grid-template-columns:1fr}
  .archive-right{display:none}
  .row{grid-template-columns:1fr}
  .modal{padding:0}
  /* 人员详情弹窗手机端改底部抽屉（2026-11-30）：原来全屏 100dvh、无遮罩可点，关不掉。
     盒子贴底、顶部留 40px 遮罩空白可点关闭；圆角顶边，明确是抽屉。 */
  #roster-modal{align-items:flex-end}
  .modal-box.roster-detail{width:100%;height:auto;max-height:calc(100dvh - 40px);border-radius:16px 16px 0 0}
  .auth-side{display:none}
  .detail-grid{grid-template-columns:1fr}
  .detail-card.detail-flow{grid-template-columns:1fr}
  .app-grid{grid-template-columns:repeat(4,1fr)}
}
@media(max-width:480px){
  /* 手机顶栏两行：第一行菜单+主题+账号，第二行搜索框独占一整行 */
  /* 注：.main 前缀是必需的——classic.css 主题文件在主样式之后加载并重写了顶栏规则，需更高优先级才能盖过它 */
  .main .topbar{flex-wrap:wrap;height:auto;padding:8px 12px;row-gap:8px}
  .main .top-search{order:3;flex:1 1 100%;max-width:none}
  .main .top-search input{min-height:40px;font-size:16px}
  .main .top-right .user-chip{max-width:150px;overflow:hidden;text-overflow:ellipsis}
  .main .gsr{top:121px}
}
@media(min-width:901px){
  .app-grid{grid-template-columns:repeat(4,1fr)}
}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}

/* ---------- 新增：图表 / 全局搜索 / 办公工具 / 试用期 / 绩效（2026-11-24） ---------- */
.chart-svg{width:100%;height:auto;display:block}
.chart-axis{font-size:12px;fill:rgba(4,14,32,0.45)}
.chart-val{font-size:12px;fill:#333333;font-weight:600}
.donut-num{font-size:20px;font-weight:500;fill:#181d26;font-variant-numeric:tabular-nums}
.donut-sub{font-size:11px;fill:rgba(4,14,32,0.45)}
.chart-legends{display:flex;flex-direction:column;gap:4px;font-size:13px}
.chart-legend{display:flex;align-items:center;gap:8px}
.chart-legend i{width:10px;height:10px;border-radius:3px;display:inline-block}
.hbar-row{display:grid;grid-template-columns:148px 1fr 72px;gap:12px;align-items:center;padding:4px 0;font-size:13px}
.hbar-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hbar-track{height:8px;background:#f8fafc;border-radius:99px;overflow:hidden}
.hbar-track i{display:block;height:100%;border-radius:99px}
.hbar-val{text-align:right;font-weight:600;color:var(--navy-900);font-variant-numeric:tabular-nums}
.prog{height:8px;background:#e2e8f0;border-radius:99px;overflow:hidden}
.prog>i{display:block;height:100%;background:var(--blue-600);border-radius:99px}
.proj-row{margin-bottom:12px}
.proj-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.proj-head b{font-size:14px;font-weight:500}
.cycle-flex{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
.cycle-list{flex:1;min-width:220px}
.tl-row{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--line-soft);font-size:14px}
.tl-row:last-child{border-bottom:0}
.tl-date{font-size:12px;color:var(--muted);font-family:var(--font-num);white-space:nowrap}
.todo-x{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ct-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line-soft)}
.ct-row:last-child{border-bottom:0}
.strip-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.strip-list{margin:8px 0 0;padding:0;list-style:none}
.strip-list li{display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:8px;cursor:pointer}
.tool-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.tool-tab{border:1px solid var(--line);background:#f8fafc;border-radius:8px;padding:8px 16px;font-size:14px;cursor:pointer;font-weight:500;color:var(--muted)}
.tool-tab.active{background:#1b61c9;border-color:#1b61c9;color:#fff}
.gsr{position:fixed;top:60px;left:50%;transform:translateX(-50%);width:min(640px,94vw);max-height:min(70vh,560px);overflow-y:auto;background:#fff;border-radius:14px;box-shadow:var(--shadow-lg);z-index:120;padding:8px;border:1px solid var(--line)}
.gsr-head{padding:8px 12px 4px;font-size:12px;color:var(--muted);font-weight:500}
.gsr-group{padding:12px 12px 4px;font-size:12px;color:var(--faint);font-weight:500}
.gsr-item{display:flex;gap:8px;align-items:center;padding:8px 12px;border-radius:8px;cursor:pointer}
.gsr-item:hover{background:var(--blue-50)}
.gsr-item b{font-size:14px;font-weight:500;flex:0 0 auto}
.gsr-item .muted{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.gsr-more{padding:8px 12px;font-size:13px;color:var(--blue-600);cursor:pointer;font-weight:500}
.gsr-empty{padding:24px;text-align:center;color:var(--muted);font-size:14px}
/* 相关人员自动补全下拉（工作记录） */
.ac-wrap{position:relative}
.ac-list{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:120;max-height:264px;overflow-y:auto;background:var(--card);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow-lg);padding:4px}
.ac-item{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:8px 12px;border-radius:8px;cursor:pointer}
.ac-item:hover,.ac-item.active{background:var(--blue-50)}
.ac-item b{font-size:14px;font-weight:500;flex:0 0 auto}
.ac-item .muted{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}
.ac-empty{padding:12px;text-align:center;color:var(--muted);font-size:13px}
.ac-more{padding:8px 12px;font-size:12px;color:var(--muted)}
.dash-search{margin-top:12px;max-width:520px}
.dash-search input{width:100%;border-radius:10px;padding:8px 16px;border:1px solid var(--line);background:var(--surface)}
@media(max-width:900px){ .gsr{top:54px} .hbar-row{grid-template-columns:112px 1fr 56px} }

/* ---------- 工具中心 Hub ---------- */
.hub-search input{width:100%;border-radius:10px;padding:12px 20px;font-size:15px}
.hub{display:grid;grid-template-columns:192px 1fr;gap:16px;margin-top:16px;align-items:start}
.hub-cats{position:sticky;top:76px;display:flex;flex-direction:column;gap:4px}
.hub-cat{text-align:left;border:0;background:transparent;padding:8px 12px;border-radius:8px;font-size:14px;color:var(--ink-2);cursor:pointer}
.hub-cat:hover{background:#f8fafc}
.hub-cat.active{background:var(--blue-50);color:var(--blue-600);font-weight:600}
.hub-sec{margin-bottom:20px}
.hub-sec-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px}
.hub-sec-head h3{margin:0;font-size:16px}
.tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.tool-card{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid var(--line-soft);border-radius:16px;padding:16px;cursor:pointer;transition:box-shadow .15s var(--ease-out),transform .15s var(--ease-out);position:relative}
.tool-card:hover{box-shadow:var(--shadow-sm);transform:translateY(-1px)}
.tool-card .tool-body{padding-right:64px}
.tool-acts{position:absolute;top:12px;right:12px;display:flex;gap:4px}
.tool-act{width:32px;height:32px;border-radius:8px;border:1px solid var(--line-soft);background:#fff;color:var(--muted);cursor:pointer;font-size:15px;line-height:1;padding:0;display:inline-flex;align-items:center;justify-content:center}
.tool-act:hover{background:#f8fafc;color:var(--ink)}
.tool-act svg{width:16px;height:16px}
.tool-act.pin.on{color:var(--navy-700);border-color:#c9d9f2;background:var(--blue-50)}
.tool-act.pin.on svg{fill:currentColor}
.tool-ic{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#f8fafc;color:var(--navy-700);flex:0 0 auto}
.tool-ic svg{width:20px;height:20px}
.tool-body{min-width:0}
.tool-body b{font-size:15px;color:var(--navy-900);font-weight:500}
.tool-body p{margin:4px 0 0;font-size:12px;color:var(--muted);line-height:1.5}
.tool-badge{display:inline-block;font-size:11px;font-weight:500;color:var(--muted);margin-left:8px;vertical-align:1px}
/* 汇总卡（证书台账 / 五险两金） */
.sum-row{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.sum-card{flex:1;min-width:120px;background:#fff;border:1px solid var(--line-soft);border-radius:16px;padding:12px 16px}
.sum-card.cert-sum-click{cursor:pointer;user-select:none}
.sum-card.cert-sum-click:hover{border-color:var(--blue-600)}
.sum-card span{display:block;font-size:12px;margin-bottom:4px}
.sum-card b{font-size:20px;color:var(--navy-900);font-weight:500;font-variant-numeric:tabular-nums}
.sum-card small{display:block;margin-top:2px}
/* 月度比对四张汇总卡（仅收紧这一处，不动全局 .sum-card） */
.ins-cmp-compact{gap:8px;margin-bottom:8px}
.ins-cmp-compact .sum-card{padding:8px 10px;border-radius:10px}
.ins-cmp-compact .sum-card span{font-size:11px;margin-bottom:2px}
.ins-cmp-compact .sum-card b{font-size:16px;line-height:1.25}
.ins-cmp-compact .sum-card small{font-size:11px;line-height:1.4;margin-top:1px;white-space:nowrap}
/* 横向滚动表（人员分布 / 五险两金明细 / 个人跨月记录） */
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.mini-table{border-collapse:collapse;width:100%;font-size:13px;background:#fff}
.mini-table th,.mini-table td{border-bottom:1px solid var(--line-soft);padding:8px 12px;text-align:left;white-space:nowrap}
.mini-table th{background:#f8fafc;color:var(--ink-2);font-weight:500;position:sticky;top:0;z-index:1}
.ins-table{border-collapse:separate;border-spacing:0;font-size:13px;background:#fff;min-width:1900px}
.ins-table th,.ins-table td{border-bottom:1px solid var(--line-soft);padding:8px;text-align:left;white-space:nowrap}
.ins-table th{background:#f8fafc;color:var(--ink-2);font-weight:500;position:sticky;top:0;z-index:2}
.ins-table tr:hover td{background:#f8fafc}
.ins-table tr.ins-row-unpaid td{color:var(--ink-2)}
.ins-table tr.ins-row-summary td{background:var(--amber-bg)}
.ins-overview-table{border-collapse:collapse;font-size:13px;background:#fff;min-width:1120px;width:100%}
.ins-overview-table th,.ins-overview-table td{border-bottom:1px solid var(--line-soft);padding:8px 12px;text-align:right;white-space:nowrap}
.ins-overview-table th:first-child,.ins-overview-table td:first-child{text-align:left}
.ins-overview-table th{background:#f8fafc;color:var(--ink-2);font-weight:500}
.ins-overview-table tbody tr{cursor:pointer}
.ins-overview-table tbody tr:hover td{background:#f8fafc}
.ins-overview-table tbody tr.active td{background:#e8f0fc;font-weight:500}
/* 月度汇总合计行（2026-11-25）：加粗、上边框加粗、浅底，与月行区分；悬停不变色 */
.ins-overview-table tr.ins-total-row{cursor:default}
.ins-overview-table tr.ins-total-row td{font-weight:600;border-top:2px solid var(--line);background:var(--surface)}
.ins-overview-table tr.ins-total-row:hover td{background:var(--surface)}
/* 企业年金（2026-11-29）：复用五险两金表样式，明细表列少、窄一点 */
.ann-table{min-width:640px}
.ins-cell{width:80px;padding:4px 8px;font-size:13px;border:1px solid var(--line-soft);border-radius:6px;text-align:right}
.ins-cell:focus{border-color:var(--blue-600);outline:none;box-shadow:0 0 0 2px rgba(27,97,201,.15)}
.ins-note{width:132px;padding:4px 8px;font-size:13px;border:1px solid var(--line-soft);border-radius:6px}
.ins-note:focus{border-color:var(--blue-500);outline:none}
.ins-tot{font-weight:500;text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:560px){
  .sum-card{min-width:calc(50% - 6px)}
  .sum-card b{font-size:16px}
  .ins-cmp-compact .sum-card{padding:6px 8px}
  .ins-cmp-compact .sum-card b{font-size:14px}
  /* 手机窄屏上一行放不下小字时允许换行，不截断 */
  .ins-cmp-compact .sum-card small{font-size:10px;white-space:normal}
}

.tool-chip-row{display:flex;flex-wrap:wrap;gap:8px}
.tool-chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;background:#fff;border:1px solid var(--line-soft);border-radius:8px;padding:4px 12px 4px 8px;cursor:pointer;font-size:13px;line-height:1.25;color:var(--navy-800)}
.tool-chip:hover{box-shadow:var(--shadow-sm)}
.tool-chip-ic{width:24px;height:24px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;flex:0 0 auto;background:#f8fafc;color:var(--navy-700)}
.tool-chip-ic svg{width:14px;height:14px}
.tool-chip-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#hub-pinned{margin-top:8px}
#hub-pinned.hub-sec{margin-bottom:12px}
#hub-pinned .hub-sec-head{margin-bottom:8px}
#hub-pinned .hub-sec-head h3{font-size:15px}
.bm-quick{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.bm-chip{display:inline-flex;align-items:center;gap:8px;background:#f8fafc;border:1px solid var(--line-soft);border-radius:8px;padding:4px 12px 4px 8px;font-size:13px;color:var(--ink-2);text-decoration:none}
.bm-chip:hover{border-color:var(--blue-500);color:var(--navy-800)}
.bm-ic{width:22px;height:22px;border-radius:50%;background:var(--blue-100);color:var(--navy-700);display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}
.diff-add{background:#f0fdf4;color:#166534;padding:2px 8px;border-radius:6px}
.diff-del{background:#fef2f2;color:#991b1b;padding:2px 8px;border-radius:6px}
.diff-same{color:var(--muted);padding:2px 8px}
.wt-pair{border-bottom:1px solid var(--line-soft);padding:12px 0}
.wt-src{font-size:14px;color:var(--ink);margin:0 0 4px}
.wt-dst{font-size:14px;color:var(--navy-800);margin:0;background:#f8fafc;border-radius:8px;padding:8px 12px}
@media(max-width:900px){
  .hub{grid-template-columns:1fr}
  .hub-cats{position:static;flex-direction:row;flex-wrap:wrap}
  .tool-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){ .tool-grid{grid-template-columns:1fr} }

/* ---------- 五险两金缴纳清单 ---------- */
.monthly-list{display:flex;flex-direction:column;gap:12px}
.monthly-item{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid var(--line-soft);border-radius:16px;padding:16px 20px;box-shadow:0 1px 3px rgba(24,29,38,.05);transition:box-shadow .2s ease,border-color .2s ease}
.monthly-item:hover{box-shadow:0 4px 14px rgba(24,29,38,.08)}
.monthly-item.done{border-left:4px solid var(--green)}
.monthly-item input[type=checkbox]{width:20px;height:20px;margin:4px 0 0;flex:0 0 auto;accent-color:var(--blue-600);cursor:pointer}
.monthly-main{flex:1;min-width:0}
.monthly-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.monthly-title-row b{font-size:16px;color:var(--navy-900);font-weight:500}
.monthly-title-row .muted{font-size:12px}
.monthly-body{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:12px}
.monthly-amount{display:flex;align-items:center;gap:8px}
.monthly-amount .muted{font-size:13px;white-space:nowrap}
.monthly-amount .amount-wrap{display:flex;align-items:center;border:1px solid #d6dde8;border-radius:8px;background:#fff;overflow:hidden}
.monthly-amount .amount-wrap span{padding:0 4px 0 12px;color:var(--muted);font-size:14px}
.monthly-amount .amount-wrap input{border:0;box-shadow:none;width:132px;min-height:36px;padding:8px 12px 8px 4px;text-align:right;font-variant-numeric:tabular-nums}
.monthly-amount .amount-wrap input:focus{box-shadow:none}
.monthly-attach{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.monthly-attach .attach-chip{display:inline-flex;align-items:center;gap:8px;background:var(--blue-50);border:1px solid #e8f0fc;border-radius:8px;padding:4px 8px 4px 12px;font-size:13px;max-width:100%}
.monthly-attach .attach-chip a{color:var(--navy-700);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}
.monthly-attach .attach-chip a:hover{text-decoration:underline}
.monthly-attach .attach-chip .danger{padding:2px 8px;min-height:0;font-size:12px}
.monthly-upload{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid #e0e2e6;border-radius:8px;padding:0 12px;height:36px;font-size:13px;color:var(--ink-2);cursor:pointer;transition:border-color .2s ease,color .2s ease;flex:0 0 auto}
.monthly-upload:hover{border-color:var(--blue-500);color:var(--navy-700)}
.monthly-hint{font-size:12px;color:var(--muted);white-space:nowrap}
@media(max-width:640px){
  .monthly-item{padding:16px}
  .monthly-body{gap:12px}
  .monthly-amount .amount-wrap input{width:112px}
  .monthly-hint{white-space:normal}
}

/* ---------- 跨平台：移动端触控与字号 ---------- */
@media(max-width:900px){
  input,select,textarea{font-size:16px;min-height:44px} /* ≥16px 防止 iOS 聚焦自动放大；≥44px 触控目标 */
  button,.primary,.ghost{min-height:44px}
  input[type=checkbox],input[type=radio]{width:20px;height:20px;min-height:0}
  .cal-day{min-height:44px}
  .hub-cat{min-height:44px}
  .side-item{min-height:44px}
  select{font-size:16px}
}

/* ---------- 总览（首页）紧凑版：只作用于 #tab-home，其他页不动 ---------- */
#tab-home .dash-banner{padding:12px 16px;margin-bottom:12px;gap:16px}
#tab-home .dash-logo{align-self:center;flex:0 1 auto;max-height:120px;max-width:320px;width:auto;height:auto;object-fit:contain;transform:translateX(-56px);opacity:.55;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 12%,#000 94%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0%,#000 12%,#000 94%,transparent 100%)}
@media(max-width:1100px){#tab-home .dash-logo{max-height:88px;max-width:240px}}
@media(max-width:640px){#tab-home .dash-logo{display:none}}
#tab-home .dash-greet h2{font-size:20px}
#tab-home .dash-user{font-size:14px}
#tab-home .dash-sub{margin:4px 0 8px;font-size:13px}
#tab-home .dash-chips{gap:8px}
#tab-home .chip-stat{padding:8px 12px;min-width:104px;border-radius:10px}
#tab-home .chip-stat b{font-size:18px}
#tab-home .chip-stat span,#tab-home .chip-stat .trend{font-size:12px}
#tab-home .dash-search{margin-top:8px}
#tab-home .dash-weather{flex:0 0 260px;padding:12px 16px}
#tab-home .wx-head span:first-child{font-size:15px}
#tab-home .wx-main{margin:4px 0}
#tab-home .wx-icon{width:36px;height:36px}
#tab-home .wx-temp{font-size:32px}
#tab-home .wx-cond{font-size:14px}
#tab-home .wx-meta{margin-top:4px;font-size:12px}
#tab-home .wx-advice{margin:4px 0 0;padding:4px 8px;font-size:12px;line-height:1.5}
#tab-home .wx-tomorrow{margin:4px 0 0;font-size:12px;line-height:1.4;color:var(--muted)}
#tab-home .dash-row3,#tab-home .dash-row2{gap:12px;margin-bottom:12px;align-items:start}
#tab-home .card{padding:16px;margin-bottom:12px}
#tab-home .card h3{font-size:15px}
#tab-home .dash-card-head{margin:0 0 12px;padding:0 0 8px}
#tab-home .dash-card-head h3{font-size:14px}
#tab-home .todo-row,#tab-home .tl-row{padding:8px 0;font-size:13px}
#tab-home .memo-row{padding:8px 0}
#tab-home .memo-text{font-size:13px}
#tab-home .cal-week span{font-size:12px}
#tab-home .cal-mini .cal-head strong{font-size:14px}
#tab-home .cal-today{margin:8px 0 0;font-size:12px}
#tab-home .cal-today b{font-size:14px}
#tab-home label{margin:8px 0 4px;font-size:12px}
#tab-home .app-grid{gap:8px}
#tab-home .app-grid button{padding:8px 4px;font-size:12px;gap:4px;border-radius:10px;min-height:56px}
#tab-home .app-grid .app-ic{width:32px;height:32px;font-size:16px;border-radius:8px}
#tab-home .app-grid .app-ic svg{width:16px;height:16px}
#tab-home .donut-wrap{gap:12px}
#tab-home .chart-legends{font-size:12px;gap:4px}
#tab-home .donut-num{font-size:16px}
#tab-home .donut-sub{font-size:11px}
#tab-home .hbar-row{padding:4px 0;font-size:13px}
#tab-home .proj-row{margin-bottom:8px}
#tab-home .proj-head b{font-size:13px}
#tab-home .cycle-flex{gap:12px}
#tab-home #recent-logs p{margin:4px 0;font-size:13px;line-height:1.5}
#tab-home .chart-empty{padding:20px 12px;font-size:13px}
/* 桌面端才收小输入框/日历格/按钮；移动端保持 16px 字号 + 44px 触控目标，防 iOS 聚焦放大 */
@media(min-width:901px){
  #tab-home .dash-search input{padding:8px 16px;font-size:13px;min-height:36px}
  #tab-home input{min-height:36px;padding:8px 12px;font-size:13px}
  #tab-home select{min-height:36px;padding:8px 32px 8px 12px;font-size:13px}
  #tab-home textarea{min-height:56px}
  #tab-home .primary,#tab-home .ghost{min-height:36px}
  #tab-home .cal-day{min-height:24px;font-size:13px}
}
@media(max-width:900px){
  #tab-home .dash-weather{flex:1 1 100%}
  #tab-home input,#tab-home select,#tab-home textarea{font-size:16px;min-height:44px}
  #tab-home .cal-day{min-height:44px}
  #tab-home .dash-banner{padding:12px}
  #tab-home .dash-weather{padding:12px}
}

/* ---------- 总览瀑布流：CSS 多列密排，卡片按 DOM 顺序逐列填入，移动/隐藏后自动重排补位 ----------
   （实测：移动/隐藏后列内无空洞；列底参差是瀑布流本身的特性，多列布局会自动平衡列高。
   曾试过 Grid dense 密排：列底参差反而更大（1920 宽屏 392px vs 多列约 280px），且要 JS 按实测高度
   逐卡设 span，内容异步加载时容易算错把卡压扁，已改回多列。） */
#tab-home .dash-masonry{column-count:3;column-gap:16px}
#tab-home .dash-masonry>.card{display:inline-block;width:100%;box-sizing:border-box;break-inside:avoid;-webkit-column-break-inside:avoid;margin:0 0 16px}
#tab-home .dash-masonry .app-grid{grid-template-columns:repeat(2,1fr)}
#tab-home .dash-masonry .hbar-row{grid-template-columns:96px 1fr 56px}
#tab-home .dash-masonry .dept-bar-row{grid-template-columns:84px 1fr 44px}
@media(max-width:1100px){
  #tab-home .dash-masonry{column-count:2}
}
@media(max-width:640px){
  #tab-home .dash-masonry{column-count:1}
  #tab-home .dash-masonry .app-grid{grid-template-columns:repeat(4,1fr)}
  #tab-home .dash-masonry .hbar-row{grid-template-columns:132px 1fr 88px}
  #tab-home .dash-masonry .dept-bar-row{grid-template-columns:112px 1fr 52px}
}

/* 五险两金“差异体现” */
.filter-check{display:inline-flex;align-items:center;gap:8px;font-size:13px;white-space:nowrap}
.ins-diff{display:block;font-size:11px;line-height:1.4;font-weight:600;white-space:nowrap}
.ins-diff.up{color:#006400}
.ins-diff.down{color:#b91c1c}
.ins-diff.zero{color:var(--ink-2);font-weight:400}
.ins-diff.none{color:var(--ink-2);font-weight:400}
.ins-diff-num-up{color:#006400;font-weight:600}
.ins-diff-num-down{color:#b91c1c;font-weight:600}
/* 明细表检索月份勾选（复选框不受 .filters 的 min-width 影响）、比对醒目汇总卡 */
#ins-search-months input[type="checkbox"]{min-width:0}
/* 五险两金明细区筛选组：搜索框 + 搜索按钮 + 检索月份 + 全选 + 查看全部人员收进同一组 */
#ins-table-tools{background:var(--card);border:1px solid var(--line-soft);border-radius:12px;padding:10px 12px}
#ins-table-tools #ins-q2{width:210px;flex:0 0 auto}
.ins-month-checks{display:inline-flex;gap:12px;flex-wrap:wrap;align-items:center}
.sum-card b.ins-diff-num-up{color:#006400}
.sum-card b.ins-diff-num-down{color:#b91c1c}
.sum-card.ins-cmp-add{background:var(--green-bg);border-color:#bbf7d0}
.sum-card.ins-cmp-add b{color:#006400}
.sum-card.ins-cmp-rem{background:var(--red-bg);border-color:#fecaca}
.sum-card.ins-cmp-rem b{color:#b91c1c}
.ins-cmp-diff{font-weight:600}
.ins-table tr.ins-row-diff td{background:#fef2f2}
.ins-diff-line{font-size:13px;color:var(--ink-2);padding:4px 2px}
.ins-diff-item{border-top:1px solid var(--line-soft);padding:12px 0}
.ins-diff-item:first-of-type{border-top:none}
.ins-diff-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.ins-diff-total{margin-left:auto;font-weight:600;font-size:13px}
@media(max-width:640px){
  .ins-diff-total{margin-left:0;width:100%}
}

/* ---- 月度汇总卡片头部：导入/导出控件（2026-11-25） ---- */
.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.card-head h3{flex:1;min-width:260px}
.ins-io{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ins-io .io-month{width:148px}
.io-file{display:inline-flex;align-items:center;gap:8px;cursor:pointer;margin:0}
.io-file-btn{white-space:nowrap;display:inline-flex;align-items:center;justify-content:center}
.io-filename{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:middle}
.io-note{margin:8px 0 12px}
@media(max-width:640px){
  .card-head h3{min-width:0}
  .ins-io .io-month{width:130px}
  .io-filename{max-width:110px}
}

/* 制度文件（大纲 / 检索 / 依据） */
.policy-manual{border:1px solid var(--line-soft);border-radius:10px;margin-bottom:8px}
.policy-manual>summary{padding:12px;cursor:pointer;font-size:15px}
.policy-chapter{margin:0 12px 8px}
.policy-chapter>summary{padding:8px;cursor:pointer;font-weight:500}
.policy-entry{padding:4px 8px 4px 24px;cursor:pointer;border-radius:6px;font-size:13px}
.policy-entry:hover{background:#e8f0fc}
.policy-result{border:1px solid var(--line-soft);border-radius:10px;padding:12px;margin-bottom:8px;cursor:pointer}
.policy-result:hover{background:#f8fafc}
.policy-body{white-space:pre-wrap;line-height:1.8;font-size:14px}
.policy-ref{border-top:1px solid var(--line-soft);padding:12px 0}
.policy-ref:first-of-type{border-top:none}
.policy-table{border-collapse:collapse;font-size:13px;background:#fff;width:100%}
.policy-table td{border:1px solid #cbd5e1;padding:8px;text-align:left;vertical-align:middle;line-height:1.5}
.policy-table tr:first-child td{font-weight:500;background:#f8fafc}

/* ---- 天气卡农历行（日期下方第二行，右对齐） ---- */
.dash-weather .wx-dates{display:flex;flex-direction:column;align-items:flex-end;line-height:1.4}
.dash-weather .wx-lunar{font-size:12px}

/* ---- 总览自定义（编辑态才显示 ×，平时不占地方） ---- */
.dash-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:4px 0 12px}
[data-dash]{position:relative}
.dash-hide-btn{display:none;position:absolute;top:8px;right:8px;width:28px;height:28px;line-height:24px;text-align:center;border-radius:50%;border:1px solid #fecaca;background:#fff;color:#dc2626;font-size:16px;font-weight:600;cursor:pointer;z-index:5;box-shadow:0 1px 5px rgba(24,29,38,.25);padding:0}
#tab-home.dash-editing .dash-hide-btn{display:block}
#tab-home.dash-editing [data-dash]{outline:1px dashed rgba(4,14,32,0.45);outline-offset:-1px}
#tab-home [data-dash]{position:relative}
.dash-drag-handle{display:none;position:absolute;top:8px;left:8px;width:28px;height:28px;line-height:24px;text-align:center;border-radius:50%;border:1px solid #cbd5e1;background:#fff;color:#475569;font-size:13px;font-weight:600;cursor:grab;z-index:5;box-shadow:0 1px 5px rgba(24,29,38,.2);padding:0;touch-action:none}
.dash-drag-handle:active{cursor:grabbing}
#tab-home.dash-editing .dash-drag-handle{display:block}
.dash-move-btns{display:none;position:absolute;top:8px;right:40px;gap:4px;z-index:5}
#tab-home.dash-editing .dash-move-btns{display:flex}
.dash-move-btn{width:28px;height:28px;line-height:24px;text-align:center;border-radius:50%;border:1px solid #c9d9f2;background:#fff;color:#254fad;font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 1px 5px rgba(24,29,38,.2);padding:0}
.dash-move-btn:disabled{opacity:.35;cursor:default}
.dash-masonry [data-dash].dash-dragging{opacity:.95;box-shadow:0 16px 40px rgba(15,23,42,.35);cursor:grabbing;z-index:60}
.dash-drop-placeholder{display:block;width:100%;box-sizing:border-box;break-inside:avoid;-webkit-column-break-inside:avoid;border:2px dashed #93c5fd;border-radius:16px;background:rgba(27,97,201,.07);pointer-events:none}
body.dash-drag-active{user-select:none;-webkit-user-select:none}
body.dash-drag-active .dash-masonry [data-dash]{cursor:grabbing}
/* 按压动效（.pressable-btn 在样式表靠后、同权重）会把 position 改成 relative：动态创建的
   隐藏/手柄按钮在首次 pointerdown 时才被加上 pressable-btn，于是从绝对定位跳到文档流位置
   （× 从右上角跳到左上角），鼠标抬起时已不在按钮上，click 丢了、隐藏点不动；
   这里用 #tab-home 提权把绝对定位抢回来（动效本身的倾斜/缩放不受影响）。 */
#tab-home .dash-hide-btn,
#tab-home .dash-drag-handle{position:absolute}
@media (pointer:coarse){
  /* 触屏上手柄放大到 36px，好按住拖 */
  .dash-drag-handle{width:36px;height:36px;line-height:32px;font-size:15px}
  #tab-home.dash-editing [data-dash] .dash-card-head{padding-left:48px}
  #tab-home.dash-editing [data-dash]>h3{padding-left:44px}
}
#tab-home.dash-editing [data-dash] .dash-card-head{padding-right:104px;padding-left:40px}
#tab-home.dash-editing [data-dash]>h3{padding-right:104px;padding-left:36px}
#tab-home.dash-editing #dash-weather .wx-head{padding-right:36px}
.bd-row{display:flex;align-items:center;gap:8px;padding:4px 0;border-bottom:1px solid var(--line-soft);font-size:13px;line-height:1.45}
.bd-row:last-child{border-bottom:none}
.bd-row .bd-name{font-weight:500;white-space:nowrap}
.bd-name-link{color:var(--blue-600);cursor:pointer;text-decoration:none}
.bd-name-link:hover{text-decoration:underline}
.bd-row .bd-dept{color:var(--muted);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bd-row .bd-md{white-space:nowrap;color:var(--muted)}
.bd-tag{flex:0 0 auto;font-size:11px;line-height:1.45;padding:1px 7px;border-radius:6px;background:#fef3c7;color:#92400e;white-space:nowrap}
.bd-tag.today{background:#fee2e2;color:#991b1b}
#tool-birthday h3{margin:14px 0 2px;font-size:15px}
#tool-birthday h3:first-of-type{margin-top:8px}
#tool-birthday #bd-stats{margin:4px 0}

/* ---- 长表吸顶 + 明细表冻结列（2026-11-24） ---- */
/* .table-tall：纵向滚动容器（max-height），表头 sticky / 列 sticky 才有生效空间；
   只加在长表上，短表不受影响。吸顶以容器为准，不与顶部栏重叠。 */
.table-tall{max-height:calc(100vh - 220px);overflow-y:auto}
/* 明细表冻结前三列：勾选(36) + 序号(44) + 姓名(≥96)，left 按累计宽度；
   姓名列不设 max-width（带“调/未缴/有出入”标记的行更宽也不裁），列宽由内容定、left 固定所以不错位 */
.ins-table th:nth-child(-n+3), .ins-table td:nth-child(-n+3){box-sizing:border-box}
.ins-table th:nth-child(1), .ins-table td:nth-child(1){min-width:36px;width:36px}
.ins-table th:nth-child(2), .ins-table td:nth-child(2){min-width:44px;width:44px}
.ins-table th:nth-child(3), .ins-table td:nth-child(3){min-width:96px}
.ins-table td:nth-child(-n+3){position:sticky;z-index:1;background:#fff}
.ins-table th:nth-child(-n+3){z-index:3}
.ins-table th:nth-child(1), .ins-table td:nth-child(1){left:0}
.ins-table th:nth-child(2), .ins-table td:nth-child(2){left:36px}
.ins-table th:nth-child(3), .ins-table td:nth-child(3){left:80px}

/* 比对表冻结姓名列（2026-11-25）：减少/增加名单、逐人差异、反向核查、行展开金额变化表；
   第一列 sticky left:0，底色 #fff（与 .mini-table 行底色一致，各主题通用，沿用明细表冻结列的做法），
   右侧用 box-shadow 做分隔线（border-collapse 下 border 可能不渲染）；表头角 z-index 抬到 2 */
.mini-table.cmp-freeze th:first-child,
.mini-table.cmp-freeze td:first-child{position:sticky;left:0;z-index:1}
.mini-table.cmp-freeze td:first-child{background:#fff;box-shadow:1px 0 0 var(--line-soft)}
.mini-table.cmp-freeze th:first-child{z-index:2;box-shadow:1px 0 0 var(--line-soft)}

/* ---------- 主题切换器（2026-11-25 新增）：顶栏按钮 + 下拉菜单 ---------- */
.theme-picker{position:relative}
.theme-btn{display:inline-flex;align-items:center;gap:6px;background:var(--surface);color:var(--ink-2);border:1px solid var(--line);border-radius:8px;padding:5px 10px;font-size:13px;font-weight:500;font-family:var(--font);cursor:pointer;white-space:nowrap}
.theme-btn:hover{background:var(--blue-50);color:var(--blue-600);border-color:var(--blue-100)}
.theme-btn svg{flex:0 0 auto}
.theme-menu{position:absolute;top:calc(100% + 8px);right:0;width:200px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-lg);z-index:90;padding:6px}
.theme-menu-head{padding:6px 10px 8px;font-size:12px;color:var(--muted);border-bottom:1px solid var(--line-soft);margin-bottom:4px}
.theme-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:transparent;border:0;color:var(--ink);font-size:14px;font-family:var(--font);padding:8px 10px;border-radius:8px;cursor:pointer}
.theme-item:hover{background:var(--surface)}
.theme-item.active{background:var(--blue-50);color:var(--blue-600);font-weight:500}
.theme-dot{width:14px;height:14px;border-radius:50%;flex:0 0 auto;border:1px solid var(--line)}
.theme-check{margin-left:auto;color:var(--blue-600);font-weight:600;visibility:hidden}
.theme-item.active .theme-check{visibility:visible}
@media(max-width:900px){
  .theme-btn-text{display:none}
  .theme-btn{padding:5px 8px}
  .theme-menu{width:188px}
}

/* ---------- 账号菜单（2026-11-26 新增）：点顶栏人名弹出切换账号 / 退出登录 ---------- */
.user-picker{position:relative}
.user-chip{cursor:pointer}
.user-menu{position:absolute;top:calc(100% + 8px);right:0;width:160px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-lg);z-index:90;padding:6px}
.user-menu .theme-item{padding:8px 10px}

/* 跳转点开的制度条款高亮（描边+光晕，4 秒后淡出；只用描边，不改底色，各主题都可用） */
.policy-flash{outline:2px solid #1b61c9;outline-offset:2px;box-shadow:0 0 0 4px rgba(27,97,201,.18)}

/* ---------- 工资表（2026-11-25 新增）：只用现有变量/class，5 套主题通用 ---------- */
.pay-cat-seg{display:inline-flex;gap:8px;flex-wrap:wrap}
.pay-cat-btn.active{background:var(--blue-50);color:var(--blue-600);border-color:var(--blue-100);font-weight:600}
.stat.pay-stat{cursor:pointer}
.stat.pay-stat.active{border-color:var(--blue-600);box-shadow:var(--shadow-focus)}
.pay-warn{color:var(--red);font-weight:600;margin:8px 0 0;font-size:14px}
.pay-modal-head{padding:20px 20px 12px;border-bottom:1px solid var(--line-soft);flex:0 0 auto}
#payroll-modal .ros-detail-body,#payslip-modal .ros-detail-body{padding:20px}
.pay-modal-foot{
  flex:0 0 auto;display:flex;gap:8px;flex-wrap:wrap;align-items:center;
  padding:12px 20px;border-top:1px solid var(--line-soft);background:var(--card);
}
.pay-modal-foot .muted{margin-left:auto}
.pay-calc-row{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:8px 0;border-bottom:1px solid var(--line-soft);font-size:14px;
}
.pay-calc-row:last-child{border-bottom:0}
.pay-calc-row b{font-variant-numeric:tabular-nums;white-space:nowrap}
.pay-calc-row input{width:140px;text-align:right}
.pay-slip-row{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:6px 0;border-bottom:1px solid var(--line-soft);font-size:14px;
}
.pay-slip-row:last-child{border-bottom:0}
.pay-slip-row b{font-variant-numeric:tabular-nums;white-space:nowrap}
#payslip-print{display:none}
/* 工资条打印：只显示 #payslip-print，其余全部隐藏（含培训打印区）。
   注意既有 @media print 规则把 body * 设了 visibility:hidden、#train-print 设了
   display:block，这里用更高特异度盖过；屏幕下 #payslip-print 本来就是隐藏的。 */
@media print{
  body.printing-payslip > *{display:none}
  body.printing-payslip #payslip-print{display:block;position:absolute;left:0;top:0;width:100%;padding:0}
  body.printing-payslip #payslip-print,body.printing-payslip #payslip-print *{visibility:visible}
  body.printing-payslip #train-print{display:none}
  #payslip-print .pay-slip-row,#payslip-print .detail-card{border-color:#000}
  #payslip-print .detail-card{box-shadow:none}
}
@media(max-width:900px){
  .pay-modal-foot .primary,.pay-modal-foot .ghost,.pay-modal-foot .danger{flex:1 1 auto}
  .pay-modal-foot .muted{flex-basis:100%;margin-left:0}
}
@media(max-width:640px){
  /* 工资表汇总卡：28px 大金额（¥2,775,928.64）的 min-content 会把 auto-fit 列撑宽，
     手机上横向溢出约 14px；改 2 列固定 + 小字号 + 减内边距，保证不溢出 */
  #pay-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  #pay-stats .stat{min-width:0;padding:14px}
  #pay-stats .stat b{font-size:20px;overflow-wrap:anywhere}
}

/* AI 问答回答区（工资表问答卡 + 全局弹窗共用）：
   内容长了在区内滚动，不把弹窗顶出屏幕；表格在手机上可以左右滑着看 */
.ai-answer{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:12px 14px;line-height:1.7;max-height:52vh;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;flex:1 1 auto;min-height:0}
.ai-answer p{margin:6px 0}
.ai-answer h4{margin:12px 0 6px;font-size:15px}
.ai-answer h4:first-child{margin-top:0}
.ai-answer ul,.ai-answer ol{margin:6px 0;padding-left:20px}
.ai-answer li{margin:2px 0}
.ai-answer hr{border:none;border-top:1px solid var(--line);margin:10px 0}
.ai-answer code{background:var(--surface-muted);border-radius:4px;padding:0 4px;font-size:13px}
.ai-answer table{display:block;overflow-x:auto;width:100%;border-collapse:collapse;margin:8px 0;font-size:14px}
.ai-answer th,.ai-answer td{border:1px solid var(--line);padding:6px 8px;text-align:left;white-space:nowrap}
.ai-answer th{background:var(--surface-muted)}
.ai-answer td:not(:first-child),.ai-answer th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:600px){.ai-answer{max-height:46vh}}
/* ---------- AI 问答弹窗（2026-11-26）：头固定、正文区自己滚 ---------- 
   之前弹窗体 overflow:hidden，正文一长答案就被裁在框外，手机上滑不到；
   改成头固定 + 正文区（.ai-ask-body）内部滚动，答案在弹窗里不再另开
   嵌套滚动条（工资表页的回答不在弹窗里，仍保留 52vh/46vh 内滚）。 */
#ai-ask-modal .modal-box{max-height:88vh}
.ai-ask-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
#ai-ask-modal .ai-answer{max-height:none;overflow:visible}
@media(max-width:600px){#ai-ask-modal .modal-box{max-height:92dvh}}

/* ---------- 全局统一组件（2026-11-27）：模态确认 / 轻提示 / 气泡 / 个人资料抽屉 ----------
   只用主题 CSS 变量，7 套主题通用；手机上按钮最小高度 44px。 */
/* 模态确认：唯一容器 #confirm-modal；遮罩点击不关闭、不自动消失；Esc 视为取消
   注意：主题 classic.css 在主样式之后加载并重写 .modal-box 宽度（880px），
   这里必须用 .modal-box.confirm-box 提权，否则确认框会被撑到 880px（2026-11-28 实测桌面 880px、手机 94vw）。 */
.modal-box.confirm-box{width:min(440px,92vw);background:var(--card)}
/* 扫描件在线预览弹窗：复用 .modal/.modal-box；图片 <img>、PDF <iframe> 站内直接看；
   框体基本占满屏幕（2026-11-29 Ce：预览窗口太小，PDF 只占左上角一小块）；手机端全屏 */
.modal-box.scan-viewer-box{width:min(1400px,98vw);height:94vh;max-height:94vh;transition:width .18s ease,height .18s ease}
.scan-viewer-head{display:flex;align-items:center;gap:8px;padding:10px 14px;border-bottom:1px solid var(--line-soft)}
.scan-viewer-head b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.scan-viewer-body{flex:1;min-height:0;overflow:auto;background:var(--surface);display:flex;align-items:center;justify-content:center}
.scan-viewer-body img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block}
.scan-viewer-body iframe{width:100%;height:100%;border:0;background:#fff;display:block;flex:1;min-height:0}
.scan-viewer-body.scan-list{display:block;padding:6px 14px}

/* 扫描件列表缩略图：每行左侧一张小缩略图（图片走 /view 代理、懒加载；PDF 用占位块；OFD/DOCX 等打不开的格式用扩展名占位），点缩略图也能查看（只作用于扫描弹窗列表） */
.scan-viewer-body.scan-list .scan-list-row{align-items:center;gap:10px}
.scan-viewer-body.scan-list .scan-list-row .scan-list-name{flex:1;min-width:0;word-break:break-all}
.scan-viewer-body.scan-list .scan-list-row .scan-list-actions{white-space:nowrap;flex:none}
.scan-thumb-wrap{width:64px;height:64px;flex:none;border-radius:6px;border:1px solid var(--line-soft);background:#f3f4f6;cursor:pointer;overflow:hidden;display:block}
.scan-viewer-body.scan-list .scan-thumb-wrap img{width:100%;height:100%;object-fit:cover;display:block}
.scan-thumb-pdf{display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;color:#dc2626;background:#fef2f2}
.scan-thumb-file{display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px;color:#475569;background:#f1f5f9}
@media(max-width:640px){.scan-thumb-wrap{width:52px;height:52px}.scan-viewer-body.scan-list .scan-list-row{gap:8px}}
.scan-viewer-foot{display:flex;gap:8px;justify-content:flex-end;padding:10px 14px;border-top:1px solid var(--line-soft)}
.scan-viewer-foot.hidden{display:none}
@media(max-width:900px){.modal-box.scan-viewer-box{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}}
/* 证书手动修改弹窗：复用 .modal/.modal-box；#cert-add-form 节点运行时搬进来 */
.modal-box.cert-edit-box{width:min(760px,96vw);max-height:92vh}
.cert-edit-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 18px 0}
.cert-edit-head b{font-size:16px;color:var(--navy-900)}
.cert-edit-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:6px 18px 18px}
#cert-edit-modal #cert-add-form{border:none;box-shadow:none;margin:0;padding:0}
/* 花名册编辑弹窗：复用 .modal/.modal-box；#ros-form-wrap 节点运行时搬进来 */
.modal-box.ros-edit-box{width:min(860px,96vw);max-height:92vh}
.ros-edit-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 18px 0}
.ros-edit-head b{font-size:16px;color:var(--navy-900)}
.ros-edit-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:6px 18px 18px}
#ros-edit-modal #ros-form-wrap .card{border:none;box-shadow:none;margin:0;padding:0}
#scan-viewer-modal{z-index:210}
/* 确认弹窗遮罩改轻：只覆盖 #confirm-modal，.modal 通用遮罩（.45）不动，扫描预览/详情弹窗不受影响；
   所有删除确认都走这一个容器，一处改全站生效 */
#confirm-modal{background:rgba(15,23,42,.22)}
#confirm-modal{z-index:220}
@media(max-width:600px){.modal-box.cert-edit-box{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}}
@media(max-width:600px){.modal-box.ros-edit-box{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}}
.modal-box.confirm-box h3{margin:0 0 6px;font-size:16px;color:var(--navy-900)}
.confirm-msg{margin:0 0 14px;font-size:14px;line-height:1.7;color:var(--ink-2);word-break:break-word}
.confirm-actions{display:flex;gap:8px;justify-content:flex-end}
.confirm-actions button{min-height:44px}
#confirm-input-wrap{margin-bottom:16px}
/* 轻提示：固定底部居中、可叠加、点一下提前消失、不阻断操作（容器 pointer-events:none） */
#toast-wrap{position:fixed;left:50%;transform:translateX(-50%);bottom:24px;z-index:320;display:flex;flex-direction:column;align-items:center;gap:8px;width:max-content;max-width:92vw;pointer-events:none}
.toast{display:flex;align-items:center;gap:8px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-left:4px solid var(--blue-600);border-radius:12px;box-shadow:var(--shadow-lg);padding:10px 14px;font-size:14px;max-width:92vw;pointer-events:auto;cursor:pointer;animation:toastIn .22s ease}
.toast-success{border-left-color:var(--green)}
.toast-success .toast-mark{color:var(--green)}
.toast-error{border-left-color:var(--red)}
.toast-error .toast-mark{color:var(--red)}
.toast-info .toast-mark{color:var(--blue-600)}
.toast-mark{font-weight:700;flex:0 0 auto}
.toast-out{opacity:0;transform:translateY(6px);transition:opacity .25s ease,transform .25s ease}
@keyframes toastIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
/* 气泡：贴在触发元素旁，clamp 在视口内 */
.bubble-q{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;min-width:18px;min-height:18px;border-radius:50%;border:1px solid var(--line);background:var(--card);color:var(--muted);font-size:12px;line-height:1;cursor:pointer;vertical-align:middle;margin-left:4px;padding:0;flex:0 0 auto}
.bubble-q:hover{border-color:var(--blue-500);color:var(--blue-600)}
#bubble-pop{position:fixed;z-index:330;max-width:min(280px,86vw);background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow-lg);padding:10px 12px;font-size:13px;line-height:1.6;animation:toastIn .18s ease}
/* 个人资料抽屉：无遮罩、不锁滚动、只隐藏不销毁；内容多内部滚动 */
#profile-drawer{position:fixed;top:0;right:0;bottom:0;width:min(420px,94vw);background:var(--card);border-left:1px solid var(--line);box-shadow:var(--shadow-lg);z-index:190;display:flex;flex-direction:column;transform:translateX(102%);transition:transform .22s ease}
#profile-drawer.open{transform:none}
.pf-head{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--line-soft)}
.pf-head h3{margin:0}
.pf-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 20px 20px;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.pf-readonly input{background:var(--line-soft);color:var(--muted)}
.ro-tag{display:inline-block;padding:1px 6px;border-radius:6px;background:var(--line-soft);color:var(--muted);font-size:11px;font-weight:500;margin-left:6px;vertical-align:middle}
.pf-sec{font-size:13px;font-weight:600;color:var(--navy-700);margin:18px 0 2px}
@media(max-width:480px){
  .confirm-box .confirm-actions button{flex:1}
  #toast-wrap{bottom:16px}
}

/* ---------- 响应式：内容区宽度随视口走（2026-11-27 新增） ----------
   根因：内容区定死 max-width:1240px，27 寸 2560 宽下两边各空约 540px，14 寸本又显满。
   注意：classic.css（默认主题）在主样式之后加载并重写了 main / .grid / h2 /
   .stat b / .card / .top-search / .sidebar / #nav button，因此这里用 .main /
   .app-shell 前缀提权才能盖过它；总览 masonry 是 #tab-home 内部的 div，要写
   后代选择器 main #tab-home .dash-masonry（写 #tab-home.dash-masonry 匹配不到，
   且与 classic.css:813 同权重会被后加载的它盖掉）。手机端（≤900px / ≤480px）规则在下面，不动。 */
/* 1280 / 1440（13 寸本）：收紧内边距，不挤 */
@media(min-width:901px) and (max-width:1440px){
  .main main{padding:20px 24px 28px}
}
/* ≥1600：内容区放宽到 1440，总览 masonry 4 列 */
@media(min-width:1600px){
  .main main{max-width:1440px;padding:28px 36px 36px}
  .main .top-search{max-width:520px}
  main #tab-home .dash-masonry{column-count:4}
  .main .grid{gap:20px}
}
/* ≥1920：内容区 1680，卡片间距、字号、列数同步放大 */
@media(min-width:1920px){
  .main main{max-width:1680px;padding:32px 40px 40px}
  .main .top-search{max-width:560px}
  .main h2{font-size:22px}
  .main .card{padding:24px}
  .main .grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px}
  .main .stat b{font-size:32px}
  .main .dash-row3{grid-template-columns:repeat(4,1fr);gap:20px}
  .main .dash-row2{gap:20px}
  .main .archive{grid-template-columns:380px 1fr;gap:20px}
  .main .app-grid{grid-template-columns:repeat(5,1fr)}
  main #tab-home .dash-masonry{column-count:4;column-gap:20px}
  main #tab-home .dash-masonry>.card{margin-bottom:20px}
  #tab-home .dash-banner{padding:20px 24px}
  #tab-home .card{padding:20px}
  #tab-home .chip-stat{padding:10px 14px}
  #tab-home .chip-stat b{font-size:20px}
  #tab-home .dash-search{max-width:640px}
  #tab-home .dash-weather{flex-basis:300px}
}
/* ≥2560（27 寸）：内容区 2000，侧栏放宽到 280，总览 masonry 5 列 */
@media(min-width:2560px){
  html body{font-size:16px}
  .main main{max-width:2000px;padding:36px 48px 48px}
  .app-shell .sidebar{width:280px;flex:0 0 280px}
  .app-shell #nav button{font-size:15px;padding:10px 14px}
  .main .top-search{max-width:640px}
  .main h2{font-size:24px}
  .main .card{padding:28px}
  .main .grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px}
  .main .stat b{font-size:34px}
  .main .dash-row3{grid-template-columns:repeat(4,1fr);gap:24px}
  .main .dash-row2{gap:24px}
  .main .archive{grid-template-columns:400px 1fr;gap:24px}
  .main .app-grid{grid-template-columns:repeat(6,1fr)}
  main #tab-home .dash-masonry{column-count:5;column-gap:24px}
  main #tab-home .dash-masonry>.card{margin-bottom:24px}
  #tab-home .dash-banner{padding:24px 28px}
  #tab-home .card{padding:24px}
  #tab-home .chip-stat{padding:12px 16px;min-width:120px}
  #tab-home .chip-stat b{font-size:22px}
  #tab-home .dash-weather{flex-basis:320px}
}

/* 工作汇总：周/月切换单选框紧贴文字（.filters 会给 input 加 min-width:150px） */
.sum-kind label{display:inline-flex;align-items:center;gap:6px}
.sum-kind input[type=radio]{min-width:0}

/* 证书台账筛选标签（找人） */
.cert-group-chips{margin:4px 0 2px}
.cert-chip-sec{margin-bottom:8px}
.cert-chip-sec-head{font-size:12px;color:var(--muted);margin-bottom:4px}
.cert-chip-sec-expired .cert-chip-sec-head{color:var(--muted);font-size:11px}
.cert-chip-row{display:flex;flex-wrap:wrap;gap:6px}
.cert-chip{display:inline-flex;align-items:center;gap:0;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:999px;padding:4px 10px;font-size:13px;cursor:pointer;transition:background-color .25s ease,border-color .25s ease,color .25s ease,padding .25s ease,opacity .2s ease;line-height:1.4;max-width:100%}
.cert-chip-tick{display:inline-block;width:0;overflow:hidden;opacity:0;transition:width .25s ease,opacity .25s ease,margin .25s ease;flex:none}
.cert-chip.active{background:#ff5000;border-color:#ff5000;color:#fff;padding-left:8px}
/* 2026-11-29 淘宝橙：悬停橙边 + 橙字 + 深色名称气泡（长名称截断时看全名）；选中实心橙 */
#cert-filter-drawer .cert-chip:not(.disabled):hover{border-color:#ff5000;color:#ff5000}
#cert-filter-drawer .cert-chip{position:relative}
#cert-filter-drawer .cert-chip:hover::after{content:attr(data-full);position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);max-width:260px;background:#333;color:#fff;font-size:12px;line-height:1.5;padding:5px 9px;border-radius:6px;white-space:normal;text-align:center;z-index:30;pointer-events:none;box-shadow:0 4px 12px rgba(0,0,0,.25)}
#cert-filter-drawer .cert-chip:hover::before{content:'';position:absolute;bottom:calc(100% + 2px);left:50%;transform:translateX(-50%);border:6px solid transparent;border-top-color:#333;border-bottom:0;z-index:30;pointer-events:none}
#cert-filter-drawer .cert-chip:nth-child(3n+1):hover::after{left:0;transform:none}
#cert-filter-drawer .cert-chip:nth-child(3n):hover::after{left:auto;right:0;transform:none}
#cert-filter-drawer .cert-chip:nth-child(3n+1):hover::before{left:18px;transform:none}
#cert-filter-drawer .cert-chip:nth-child(3n):hover::before{left:auto;right:18px;transform:none}
.cert-chip.active .cert-chip-tick{width:14px;opacity:1;margin-right:2px}
.cert-chip-count{background:rgba(127,127,127,.16);border-radius:999px;padding:0 6px;font-size:12px;margin-left:6px;display:inline-block;min-width:20px;text-align:center}
/* 证书台账细分类多选下拉（Ce 2026-11-28 定：14 类细筛，多选为“或”） */
.cert-fine-filter{position:relative}
.cert-fine-btn{min-width:150px;min-height:40px;padding:8px 12px;border:1px solid #e0e2e6;border-radius:10px;background:#fff;color:var(--ink);font-size:14px;font-weight:500;text-align:left;display:inline-flex;align-items:center;gap:6px}
.cert-fine-btn:hover{border-color:#c3cede}
.cert-fine-btn.active{border-color:var(--blue-600);color:var(--blue-600);box-shadow:var(--shadow-focus)}
.cert-fine-caret{margin-left:auto;color:var(--muted);font-size:12px}
.cert-fine-panel{position:absolute;left:0;top:calc(100% + 6px);z-index:60;width:280px;max-width:86vw;max-height:340px;overflow:auto;background:#fff;border:1px solid #e0e2e6;border-radius:12px;box-shadow:0 12px 32px rgba(24,29,38,.16);padding:6px}
.cert-fine-panel-head{display:flex;align-items:center;justify-content:space-between;padding:6px 8px;font-size:13px;color:var(--muted);border-bottom:1px solid var(--line-soft);margin-bottom:4px}
.cert-fine-opt{display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:8px;cursor:pointer;font-size:14px}
.cert-fine-opt:hover{background:var(--surface)}
.cert-fine-panel input[type=checkbox]{width:18px;height:18px;min-width:0;flex:none}
.cert-fine-count{margin-left:auto;color:var(--muted);font-size:12px}
@media (max-width:480px){
  .cert-fine-btn{min-height:44px}
  .cert-fine-panel{width:min(300px,86vw)}
}
.cert-chip.active .cert-chip-count{background:rgba(255,255,255,.28)}
.cert-chip.disabled{opacity:.45;cursor:not-allowed}
.cert-chip-expired{border-style:dashed;color:var(--muted);font-size:12px}
.cert-chip-expired.active{background:#ff5000;border-color:#ff5000;color:#fff}
.cert-chip-count.pop,.cert-result-num.pop{animation:cert-pop .35s cubic-bezier(.34,1.56,.64,1)}
@keyframes cert-pop{0%{transform:scale(1)}40%{transform:scale(1.45)}100%{transform:scale(1)}}
.cert-filter-result{margin:2px 0 8px;font-size:13px}
/* 找人标签子标签（2026-11-28）：搜索框 + 已选置顶 + 按类型分组 */
.cert-chip-search{margin:2px 0 8px}
.cert-chip-search input{width:100%;box-sizing:border-box;min-height:40px;padding:8px 12px;border:1px solid var(--border);border-radius:10px;font-size:14px;background:var(--surface);color:var(--text)}
.cert-chip-selrow{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:2px 0 8px;min-width:0}
.cert-chip-sel-label{flex:none;font-size:12px;color:var(--muted)}
.cert-chip-sel{display:inline-flex;align-items:center;gap:4px;border:1px solid #ff5000;background:#ff5000;color:#fff;border-radius:999px;padding:3px 6px 3px 10px;font-size:12px;cursor:pointer;line-height:1.4;max-width:100%;text-align:left}
.cert-chip-sel-x{font-size:14px;line-height:1}
.cert-chip-type{margin-bottom:1px}
.cert-chip-type-open{margin-bottom:6px}
.cert-chip-type-head{display:flex;align-items:center;gap:6px;width:100%;box-sizing:border-box;background:transparent;border:0;border-radius:8px;padding:3px 6px;font-family:inherit;font-size:13px;font-weight:600;color:var(--text);cursor:pointer;text-align:left}
.cert-chip-type-head:hover{background:rgba(127,127,127,.08)}
.cert-chip-type-caret{flex:none;color:var(--muted);font-size:12px;transition:transform .2s ease}
.cert-chip-type-open .cert-chip-type-caret{transform:rotate(90deg)}
.cert-chip-type-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cert-chip-type-count{flex:none;font-size:12px;font-weight:400;color:var(--muted)}
.cert-chip-type-sel{flex:none;font-size:11px;font-weight:400;background:#ff5000;color:#fff;border-radius:999px;padding:1px 7px}
.cert-chip-type .cert-chip-row{display:none}
.cert-chip-type-open .cert-chip-row{display:flex}
/* 2026-11-28 找人标签行收紧：人数紧贴类型名（去掉 margin-left:auto 撑满留白），行高收紧；桌面端类型行两列排布 */
@media (min-width:901px){
  .cert-chip-sec:not(.cert-chip-sec-expired){display:grid;grid-template-columns:1fr 1fr;column-gap:16px;align-items:start}
  .cert-chip-sec:not(.cert-chip-sec-expired) .cert-chip-sec-head{grid-column:1/-1}
}
/* 2026-11-28 找人标签筛选条：桌面端吸顶（挂在 section 层，滚到结果区仍可见）；清除全部按钮；0 人标签置灰 */
.cert-chip-clearall{flex:none;border:0;background:transparent;color:var(--muted);font-size:12px;cursor:pointer;padding:3px 8px;border-radius:999px}
.cert-chip-clearall:hover{color:var(--blue-600);background:rgba(127,127,127,.08)}
@media (min-width:901px){
  .cert-chip-filterbar{position:sticky;top:56px;z-index:30;background:var(--bg);padding:2px 0 6px;border-bottom:1px solid var(--line-soft)}
}
.cert-chip-sub{font-size:12px}
/* 2026-11-28 找人标签整理：搜索行放“只看有人”开关；子标签折叠按钮 */
.cert-chip-search{display:flex;gap:8px;align-items:center}
.cert-chip-search input{flex:1;min-width:0}
.cert-chip-zero-toggle{flex:none;border:1px solid var(--border);background:var(--surface);color:var(--muted);border-radius:999px;padding:7px 12px;font-size:12px;cursor:pointer;white-space:nowrap}
.cert-chip-zero-toggle.active{background:#ff5000;border-color:#ff5000;color:#fff}
.cert-chip-more{border:1px dashed var(--border);background:transparent;color:var(--muted);border-radius:999px;padding:4px 10px;font-size:12px;cursor:pointer}
.cert-chip-more:hover{color:var(--text);border-color:var(--muted)}
@media (max-width:480px){.cert-chip-search input{min-height:44px}}
/* 淘宝式弹窗筛选（2026-11-29）：找人标签收进抽屉，桌面端右侧抽屉、手机端底部抽屉 */
/* 2026-11-29 筛选按钮改成显眼的主按钮：实心蓝 + 内联 SVG 筛选图标 + 数量角标，放在筛选行首位；
   图标用内联 SVG，不用图标字体，避免加载失败只剩空白框 */
.cert-filter-btn{flex:none;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--blue-600);background:var(--blue-600);color:#fff;border-radius:10px;padding:10px 18px;font-size:15px;font-weight:600;cursor:pointer;white-space:nowrap;box-shadow:0 2px 8px rgba(37,99,235,.28)}
.cert-filter-btn:hover{filter:brightness(.93);color:#fff}
.cert-filter-btn svg{flex:none}
.cert-filter-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;border-radius:999px;background:#fff;color:var(--blue-600);font-size:11px;font-weight:700;padding:0 5px}
/* 2026-11-29 搜索按钮：与搜索框连成一组（左框右钮），蓝色实心主按钮 */
.cert-search-group{flex:1;display:flex;min-width:220px}
.cert-search-group input{flex:1;min-width:0;border-radius:10px 0 0 10px}
.cert-search-btn{flex:none;border-radius:0 10px 10px 0;display:inline-flex;align-items:center;gap:6px;padding:10px 18px;font-size:15px;font-weight:600;white-space:nowrap}
.cfd-scrim{position:fixed;inset:0;background:rgba(15,23,42,.35);z-index:195;cursor:pointer}
#cert-filter-drawer,#cert-person-drawer{position:fixed;top:0;right:0;bottom:0;width:min(520px,94vw);background:#f5f7fa;border-left:1px solid var(--line);box-shadow:var(--shadow-lg);z-index:200;display:flex;flex-direction:column;transform:translateX(102%);transition:transform .22s ease;overflow-x:hidden}
#cert-filter-drawer.open,#cert-person-drawer.open{transform:none}
.cfd-head{flex:none;display:flex;align-items:center;justify-content:space-between;padding:14px 16px 10px;background:#fff}
.cfd-head h3{margin:0;font-size:17px}
.cfd-tabs-wrap{flex:none;display:flex;align-items:stretch;background:#fff;border-bottom:1px solid var(--line-soft)}
.cfd-tab-arrow{flex:none;border:0;background:transparent;color:var(--muted);font-size:20px;line-height:1;cursor:pointer;padding:0 10px;font-family:inherit}
.cfd-tab-arrow:hover{color:var(--blue-600)}
.cfd-tab-arrow:disabled{opacity:.25;cursor:default}
.cfd-tabs{flex:1;min-width:0;display:flex;gap:2px;padding:0 4px;border-bottom:0;overflow-x:auto;scrollbar-width:none}
.cfd-tabs::-webkit-scrollbar{display:none}
.cfd-tab{flex:none;border:0;background:transparent;color:var(--muted);font-size:14px;padding:10px 12px;cursor:pointer;border-bottom:2px solid transparent;font-family:inherit;white-space:nowrap}
.cfd-tab.active{color:var(--blue-600);border-bottom-color:var(--blue-600);font-weight:600}
.cfd-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:12px 16px;-webkit-overflow-scrolling:touch;background:#f5f7fa}
.cfd-foot{flex:none;display:flex;flex-direction:column;gap:10px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line-soft);background:#fff}
.cfd-confirm{width:100%;min-height:46px;font-size:15px}
.cfd-reset{width:100%;min-height:46px;padding:10px 16px;font-size:15px;font-weight:600;color:#fff;border:0;border-radius:10px;background:linear-gradient(180deg,#ff6a00,#ff5000);box-shadow:0 2px 10px rgba(255,80,0,.35);cursor:pointer}
.cfd-reset:hover{filter:brightness(.96)}
/* 抽屉内：筛选条吸在抽屉顶部；分组做成白色卡片；标签九宫格（3 列） */
#cert-filter-drawer .cert-chip-filterbar{position:sticky;top:0;z-index:5;background:#f5f7fa;padding:2px 0 8px;border-bottom:0}
#cert-filter-drawer .cert-chip-sec{display:block;background:#fff;border:1px solid #e8ecf1;border-radius:12px;padding:10px 12px;margin-bottom:10px;scroll-margin-top:76px}
#cert-filter-drawer .cert-chip-sec-head{font-size:14px;font-weight:700;color:var(--text);margin:0 0 8px}
.cert-chip-sec-count{font-size:11px;font-weight:400;color:#8a94a6;background:#f0f2f5;border-radius:999px;padding:1px 7px;margin-left:4px}
.cert-chip-sec-more{display:block;width:100%;border:0;background:transparent;color:var(--muted);font-size:13px;padding:6px 0 2px;cursor:pointer}
.cert-chip-sec-more:hover{color:#ff5000}
.cert-sec-folded{display:none}
#cert-filter-drawer .cert-chip-type-open .cert-chip-row{display:grid;grid-template-columns:repeat(3,1fr)}
#cert-filter-drawer .cert-chip{justify-content:center;min-width:0}
#cert-filter-drawer .cert-chip-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#cert-filter-drawer .cert-chip-more{grid-column:1/-1;justify-self:center}
@media (max-width:640px){
  #cert-filter-drawer,#cert-person-drawer{top:auto;left:0;right:0;bottom:0;width:auto;height:min(88vh,88vh);max-height:88vh;border-left:0;border-top:1px solid var(--line);border-radius:16px 16px 0 0;transform:translateY(102%)}
  #cert-filter-drawer.open,#cert-person-drawer.open{transform:none}
}
.cert-result-num{display:inline-block;font-weight:700;color:var(--text)}
.cert-people-table{width:100%}
.cert-people-table td:first-child{white-space:normal}
.cert-match-row td{background:#eff6ff;font-weight:500}
.cert-match-row td:first-child{color:var(--blue-600)}

/* AUTOCOMPLETE-TEST-START */
/* 全局输入联想（试验功能 2026-11-28）：回退：删掉本段 + app.js 里同名段即可 */
.ac-pop{position:absolute;z-index:1200;max-height:240px;overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.18);padding:4px}
.ac-item{padding:8px 10px;border-radius:6px;cursor:pointer;font-size:14px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-item.active{background:var(--accent);color:var(--on-accent)}
.ac-tag{display:inline-flex;align-items:center;gap:4px;background:#e0e7ff;color:#3730a3;border-radius:999px;padding:2px 4px 2px 10px;font-size:12px;white-space:nowrap;vertical-align:middle}
.ac-tag button{border:none;background:transparent;color:#3730a3;cursor:pointer;font-size:14px;line-height:1;padding:2px 4px;border-radius:999px}
.ac-tag button:hover{background:rgba(55,48,163,.15)}
/* AUTOCOMPLETE-TEST-END */

/* PRESSABLE-CARDS-TEST-START */
/* 卡片按压反馈（2026-11-28 总览页试验；2026-11-29 起全局：所有模块的统计卡 .sum-card / .stat；2026-11-29 晚补全：全站所有卡片 .card / .detail-card / .tool-card 共用同一效果，登录页 .auth-card 除外）：回退：删掉本段 + app.js 里同名段即可 */
.pressable-btn{position:relative;touch-action:manipulation;transition:transform .45s cubic-bezier(.34,1.56,.64,1)}
.pressable-btn::after{content:'';position:absolute;inset:0;border-radius:inherit;background:radial-gradient(circle at var(--px,50%) var(--py,50%),rgba(255,255,255,.32),rgba(255,255,255,0) 62%);opacity:0;pointer-events:none;transition:opacity .18s ease}
.pressable-btn.pressable-pressing{transition:transform .12s ease-out}
.pressable-btn.pressable-pressing::after{opacity:1}
/* PRESSABLE-CARDS-TEST-END */

/* 2026-11-29 个人详情抽屉：点证书卡片人名弹出（复用抽屉结构与按人员查证书逻辑） */
.cert-person-link{background:none;border:0;padding:0;font:inherit;font-weight:600;color:var(--blue-600);cursor:pointer;text-align:left}
.cert-person-link:hover{text-decoration:underline}
.cpd-sec{background:#fff;border:1px solid #e8ecf1;border-radius:12px;padding:12px;margin-bottom:10px}
.cpd-sec h4{margin:0 0 8px;font-size:14px}
.cpd-sec .card{margin-bottom:8px}
.cpd-sec .card:last-child{margin-bottom:0}
.cpd-scan-row{display:flex;align-items:center;gap:8px;padding:7px 0;border-top:1px solid var(--line-soft);font-size:13px}
.cpd-scan-row:first-of-type{border-top:0}
.cpd-scan-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cpd-scan-meta{flex:none;color:var(--muted);font-size:12px}
.cpd-scan-row a{flex:none;white-space:nowrap}

/* 2026-11-29 证书详情紧凑化：按人员查证书的表 + 个人详情抽屉，行高/内边距/字号收小，一屏多看几行；只作用于这两个证书详情面，不动其他模块（.mini-table/.ins-diff-item/.cfd-head 均为多处共用，此处全部加容器限定） */
/* 按人员查证书结果表（#cert-person-results / #cert-batch-results）与按人员视图（#certs-list .cert-people-table） */
#cert-person-results .mini-table,#cert-batch-results .mini-table,#certs-list .cert-people-table{font-size:12px}
#cert-person-results .mini-table th,#cert-person-results .mini-table td,#cert-batch-results .mini-table th,#cert-batch-results .mini-table td,#certs-list .cert-people-table th,#certs-list .cert-people-table td{padding:5px 8px}
#cert-person-results .mini-table td .muted,#cert-batch-results .mini-table td .muted{font-size:12px;line-height:1.45}
#cert-person-results .mini-table .badge,#cert-batch-results .mini-table .badge,#certs-list .cert-people-table .badge{padding:1px 6px}
#cert-person-results .ins-diff-item,#cert-batch-results .ins-diff-item{padding:8px 0}
#cert-person-results .ins-diff-head,#cert-batch-results .ins-diff-head{gap:6px;margin-bottom:5px}
/* 个人详情抽屉（#cert-person-drawer）：头/体/分组/卡片/扫描行全部收紧 */
#cert-person-drawer .cfd-head{padding:10px 12px 8px}
#cert-person-drawer .cfd-head h3{font-size:15px}
#cert-person-drawer .cfd-body{padding:10px 12px}
#cert-person-drawer .cpd-sec{padding:8px 10px;margin-bottom:8px}
#cert-person-drawer .cpd-sec h4{font-size:13px;margin-bottom:5px}
#cert-person-drawer .cpd-sec .card{padding:10px 12px;margin-bottom:6px}
#cert-person-drawer .cpd-sec .card .item-head b{font-size:14px}
#cert-person-drawer .cpd-sec .card .muted{font-size:12px;line-height:1.45}
#cert-person-drawer .cpd-sec .badge{padding:1px 6px}
#cert-person-drawer .cpd-scan-row{padding:5px 0;font-size:12px}
#cert-person-drawer .cpd-scan-meta{font-size:11px}

/* 证书台账列表紧凑化：桌面多列网格，手机单列收紧（只改布局，信息和按钮都在） */
#certs-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;align-items:start}
#certs-list>.card{margin-bottom:0;padding:14px 16px}
#certs-list>.card .item-head b{font-size:15px}
#certs-list>.card .actions{margin-top:8px;gap:6px}
#certs-list>.card .actions button{padding:5px 9px;font-size:13px}
#certs-list>.card .muted{line-height:1.5}

/* 合同管理：筛选勾选芯片 + 紧凑卡片 + 编辑弹窗（2026-11-29） */
#ctmgr-file-filters,#ctmgr-people-filters{display:inline-flex;align-items:center;gap:8px}
.ctmgr-check{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;margin:0;padding:0 12px;min-height:40px;border:1px solid #e0e2e6;border-radius:10px;background:#fff;font-size:14px;font-weight:400;color:var(--ink);cursor:pointer}
.ctmgr-check input[type=checkbox]{width:auto;min-width:0;min-height:0;margin:0}
#ctmgr-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;align-items:stretch}
#ctmgr-list>.card{margin-bottom:0;padding:12px 14px;display:flex;flex-direction:column}
#ctmgr-list>.card .item-head{flex:1}
#ctmgr-list>.card .item-head b{font-size:15px}
#ctmgr-list>.card .ct-main{min-width:0;flex:1}
#ctmgr-list>.card .actions{margin-top:8px;gap:6px}
#ctmgr-list>.card .actions button,#ctmgr-list>.card .actions a{padding:5px 9px;font-size:13px}
#ctmgr-list>.card .muted{line-height:1.45;font-size:13px}
#ctmgr-list>.card .detail-rows .drow{padding:4px 2px;font-size:13px}
#ctmgr-list>.card .detail-rows .field-label{flex-basis:64px}
#ctmgr-list>.card .detail-rows .field-value{font-size:13px;line-height:1.45}
#ctmgr-list>.card .field-value.ct-path{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
#ctmgr-list>.card .field-value.ct-path.open{white-space:normal;overflow:visible}
#ctmgr-list>.card .ct-assign{margin-top:8px;display:flex;gap:6px}
#ctmgr-list>.card .ct-assign input{flex:1;min-width:0;padding:5px 8px;min-height:30px;font-size:13px}
#ctmgr-list>.card .ct-assign input.ct-asg-name{flex:0 0 76px}
#ctmgr-list>.card .ct-assign button{flex:none}
.modal-box.ctmgr-edit-box{width:min(520px,94vw)}
.ctmgr-edit-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 18px 0}
.ctmgr-edit-head b{font-size:16px;color:var(--navy-900)}
.ctmgr-edit-body{padding:8px 18px 18px}
.ctmgr-edit-body label{margin:10px 0 4px}
.ctmgr-edit-dates{display:grid;grid-template-columns:repeat(3,1fr);gap:0 12px}
.ctmgr-edit-foot{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}
@media(max-width:600px){.ctmgr-edit-dates{grid-template-columns:1fr}}
/* 合同管理手机端（2026-11-30，修截图里的 6 处显示问题；只作用于 #tab-ctmgmt / #ctmgr-list，桌面不动） */
@media(max-width:640px){
  /* ② 卡片单列全宽（原 minmax(300px,1fr) 在窄屏仍可能两列） */
  #ctmgr-list{grid-template-columns:1fr;gap:8px}
  #ctmgr-list>.card{padding:12px;min-width:0}
  /* ① 卡头改上下结构：标题+明细占满宽，操作按钮另起一行。
     根治 .item-head 横向 flex 里 4 个按钮把 .ct-main 挤到只剩约 45px、值被迫一字一行。
     min-width:0 不可少：文件夹是不换行的长路径，没有它卡片会被内容撑到 800px+ 宽、整页横向溢出 */
  #ctmgr-list>.card .item-head{flex-direction:column;gap:0;min-width:0}
  #ctmgr-list>.card .ct-main{flex:none;width:100%;min-width:0}
  #ctmgr-list>.card .item-head b{overflow-wrap:break-word}
  /* ④ 操作按钮：满宽均分一行，窄屏自动换行，不重叠 */
  #ctmgr-list>.card .actions{margin-top:10px;flex-wrap:wrap}
  #ctmgr-list>.card .actions button,#ctmgr-list>.card .actions a{flex:1 1 auto;text-align:center}
  /* ⑤ 归属输入行上下堆叠、各占满宽 */
  #ctmgr-list>.card .ct-assign{flex-direction:column;min-width:0}
  #ctmgr-list>.card .ct-assign input{flex:1 1 auto;width:100%}
  #ctmgr-list>.card .ct-assign input.ct-asg-name{flex:1 1 auto}
  #ctmgr-list>.card .ct-assign button{width:100%}
  /* ③ 顶部统计行：允许换行、字号略降、行高正常，不横向溢出 */
  #ctmgr-summary p{font-size:13px;line-height:1.55;overflow-wrap:break-word}
  /* ⑥ 筛选行：搜索框占满一行，其余控件自然换行 */
  #tab-ctmgmt .filters #ctmgr-q{flex:1 1 100%;width:100%}
}
#certs-list>.card:has(.cert-people-table){grid-column:1/-1}
/* 2026-11-29 证书列表卡片等高对齐：同一行卡片等高、按钮沉底对齐、备注最多 3 行（超长截断、悬停看全文） */
#certs-list{align-items:stretch}
#certs-list .cert-exp-group-body{align-items:stretch}
#certs-list>.card,.cert-exp-group-body>.card{display:flex;flex-direction:column}
#certs-list>.card .actions,.cert-exp-group-body>.card .actions{margin-top:auto;padding-top:8px}
#certs-list>.card .cert-note,.cert-exp-group-body>.card .cert-note,#cert-person-drawer .cpd-sec .card .cert-note{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
/* 2026-11-29 证书卡片人名醒目 + 描述分行整理：人名单独一行、17px 加粗蓝色；编号/日期深色加粗，次要信息（发证机关、所在地、制度依据）保持弱化 */
#certs-list>.card .cert-card-name,.cert-exp-group-body>.card .cert-card-name,#cert-person-drawer .cpd-sec .card .cert-card-name{display:block;font-size:17px;font-weight:700;color:var(--blue-600);line-height:1.35;margin:2px 0 1px}
#certs-list>.card .cert-key,.cert-exp-group-body>.card .cert-key{color:var(--ink);font-weight:600}
#certs-list>.card .cert-policy,.cert-exp-group-body>.card .cert-policy{font-size:12px}
/* 过期证书分组折叠：默认只露组头一行，点组头展开（卡片首次展开时才渲染） */
#certs-list>.cert-exp-group{grid-column:1/-1}
.cert-exp-group-head{display:flex;align-items:center;gap:6px;width:100%;text-align:left;background:none;border:0;padding:8px 2px;font-size:15px;font-weight:600;color:#dc2626;cursor:pointer}
.cert-exp-group-head:hover{color:#b91c1c}
.cert-exp-group-headrow{display:flex;align-items:center;gap:8px}
.cert-exp-group-headrow .cert-exp-group-head{flex:1;min-width:0;width:auto}
.cert-exp-group-headrow .ghost{flex:none}
.cert-soon-group-head{color:#b45309}
.cert-soon-group-head:hover{color:#92400e}
.cert-exp-group-chev{color:var(--muted);flex:none}
.cert-exp-group-body{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;align-items:start;margin-top:4px}
.cert-exp-group-body>.card{margin-bottom:0;padding:14px 16px}
@media(max-width:640px){
  .cert-exp-group-body{grid-template-columns:1fr;gap:8px}
  .cert-exp-group-body>.card{padding:10px 12px}
}
@media(max-width:640px){
  #certs-list{grid-template-columns:1fr;gap:8px}
  #certs-list>.card{padding:10px 12px}
  #certs-list>.card .item-head b{font-size:14px}
}

/* 其他长列表紧凑化：与证书列表同款多列网格（桌面），手机单列收紧 */
#collections-list,#train-list,#logs-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;align-items:start}
#collections-list>.card,#train-list>.card,#logs-list>.card{margin-bottom:0;padding:14px 16px}
#collections-list>.card .actions,#train-list>.card .actions,#logs-list>.card .actions{margin-top:8px;gap:6px}
#collections-list>.card .actions button,#train-list>.card .actions button,#logs-list>.card .actions button{padding:5px 9px;font-size:13px}
#collections-list>.card .muted,#train-list>.card .muted,#logs-list>.card .muted{line-height:1.5}
@media(max-width:640px){
  #collections-list,#train-list,#logs-list{grid-template-columns:1fr;gap:8px}
  #collections-list>.card,#train-list>.card,#logs-list>.card{padding:10px 12px}
}

/* 退休卡片紧凑化（只作用于 #retire-list，参照证书详情 v37 的做法） */
#retire-list>.card{padding:10px 12px;margin-bottom:10px}
#retire-list .item-head{line-height:1.5}
#retire-list .item-head b{font-size:15px}
#retire-list .item-head .muted{font-size:12px;line-height:1.5}
#retire-list .item-head>div>div:not(.muted):not(.progress){font-size:13px;line-height:1.5}
#retire-list .progress{display:none}
#retire-list details summary{margin:4px 0 2px;font-size:13px}
#retire-list .actions{margin-top:6px}
#retire-list .actions .danger.small{padding:3px 10px;font-size:12px}
/* 退休逐项勾选再收紧（只作用于 #retire-list）：复选框+名称+状态排成一行 */
#retire-list .check-list-retirements{margin:2px 0}
#retire-list .check-list-retirements .check{display:flex;align-items:center;gap:8px;padding:2px 0;font-size:13px;line-height:1.4}
#retire-list .check-list-retirements .check input{width:14px;height:14px;margin:0;flex:none}
#retire-list .check-list-retirements .check .t{display:flex;align-items:baseline;gap:6px;min-width:0;flex-wrap:wrap}
#retire-list .check-list-retirements .check .t small{color:var(--muted);font-size:12px}
#retire-list details+div{margin-top:4px!important}
/* 退休列表多列网格 + 再收紧（只作用于 #retire-list）：卡片占满宽度、等高，卡内空白不再留一大片 */
#retire-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:12px;align-items:stretch}
#retire-list>.card{margin-bottom:0;display:flex;flex-direction:column}
#retire-list>.card>div:nth-child(3){flex:1}
#retire-list .detail-rows .drow{padding:5px 2px}
#retire-list .train-file-row{padding:5px 0;font-size:12px;gap:6px}
@media(max-width:640px){
  #retire-list{grid-template-columns:1fr;gap:8px}
}

/* 人员异动：小卡片式多列网格（桌面），手机单列收紧（只作用于 #moves-list，参照证书/清欠列表做法） */
#moves-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;align-items:start}
#moves-list>.card{margin-bottom:0;padding:12px 14px}
#moves-list .move-row{font-size:13px}
#moves-list .move-row b{flex-basis:100%;font-size:16px;font-weight:700;color:var(--blue-600);line-height:1.35}
#moves-list .muted{line-height:1.5}
#moves-list details summary{margin:6px 0;font-size:13px}
#moves-list .actions{margin-top:8px;gap:6px}
#moves-list .actions button{padding:5px 9px;font-size:13px}
#moves-list .check-list-moves{gap:6px;margin:4px 0 2px}
#moves-list .check-list-moves .check{min-height:30px;padding:4px 10px;font-size:13px}
#moves-list .train-file-row{padding:5px 0;font-size:12px;gap:6px}
@media(max-width:640px){
  #moves-list{grid-template-columns:1fr;gap:8px}
  #moves-list>.card{padding:10px 12px}
}

/* 人数疑难入口（工资表统计卡上的“疑难 N 行”，点开看逐人明细） */
.pay-anomaly-small{cursor:pointer;text-decoration:underline;text-underline-offset:2px;color:var(--blue-600)}
.pay-anomaly-small:hover{color:var(--blue-500)}
#pay-anomaly-box .roster-table td{vertical-align:top}

/* 工资表复核清单：只含姓名的明细多列紧凑排布；金额表明细限制高度滚动 */
.pay-review-names{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:2px 14px;font-size:13px;line-height:1.7;padding:6px 2px}
.pay-review-names span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pay-review-names .muted{font-size:12px}
.pay-review-scroll{max-height:280px;overflow-y:auto}
.pay-review-scroll .roster-table td{padding:4px 8px;font-size:13px}
/* 工资表复核清单勾选带入：复选框列窄、表头全选行 */
.pay-review-scroll .roster-table td.pay-apply-col{width:28px;padding:4px 4px 4px 8px;text-align:center}
.pay-apply-col input[type=checkbox],.pay-apply-head input[type=checkbox]{margin:0;min-width:0;min-height:0;width:16px;height:16px;cursor:pointer}
.pay-apply-head{background:#f8fafc;font-size:13px;font-weight:500}
.pay-apply-head label{display:inline-flex;align-items:center;gap:6px;cursor:pointer}

/* 年终表收紧：统计卡小一号 */
#pay-annual-stats{gap:10px;margin-bottom:10px}
#pay-annual-stats .stat{padding:10px 14px}
#pay-annual-stats .stat b{font-size:20px}
#pay-annual-stats .stat span{font-size:12px}
#pay-annual-stats .stat small{font-size:12px}

/* 工资表详情弹窗：放宽加高，字段 3 列、合计 2 列，一屏显示更多项 */
#payroll-modal .modal-box{width:min(1140px,96vw);max-height:94vh}
.pay-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:0 16px}
.pay-grid3>div{min-width:0}
.pay-calc-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}
.pay-calc-grid .pay-calc-row{border-bottom:0;padding:6px 0}
#payroll-modal .detail-card{padding:10px 14px;margin-bottom:8px}
#payroll-modal .detail-card h3{margin:0 0 6px}
#payroll-modal input{min-height:34px;padding:6px 10px}
#payroll-modal label{font-size:13px}
@media(max-width:900px){.pay-grid3{grid-template-columns:1fr 1fr}.pay-calc-grid{grid-template-columns:1fr}}
@media(max-width:480px){.pay-grid3{grid-template-columns:1fr}}

/* 生育津贴卡片收紧：小卡片、备注默认只显示 2 行、点一下展开 */
.mat-card{padding:10px 14px}
.mat-card .muted{font-size:13px;line-height:1.5}
.mat-card .mat-note{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer;font-size:13px;line-height:1.5;color:var(--ink)}
.mat-card .mat-note.open{display:block}

/* 生育津贴附件区：紧凑，跟退休/转入转出附件同一套行样式 */
.mat-atts{margin-top:8px;border-top:1px solid var(--line-soft);padding-top:6px}
.mat-atts-head{font-size:13px;margin-bottom:2px}
#maternity-list .train-file-row{padding:5px 0;font-size:12px;gap:6px}
#maternity-list .train-file-row .muted{font-size:11px}
#maternity-list .train-file-row .ghost.small{padding:2px 8px}
.mat-atts-upload{margin-top:6px}

/* 首页“人员支出”卡片：条形图复用 .hbar-track / .hbar-val，只补网格与间距 */
.pc-controls{display:flex;gap:8px;margin-bottom:4px}
.pc-controls select{flex:1;min-width:0}
.pc-row{display:grid;grid-template-columns:76px 1fr 132px;gap:10px;align-items:center;padding:5px 0;font-size:13px;cursor:pointer}
.pc-row:hover .pc-label{color:var(--blue-600)}
.pc-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc-expand{color:var(--blue-600);font-size:12px}
.pc-sub{padding-left:16px}
.pc-sub .pc-label{color:var(--faint)}
.pc-total{border-top:1px solid var(--line-soft);margin-top:6px;padding-top:10px;cursor:default}
.pc-total .hbar-val{font-size:14px}
.pc-note{font-size:12px;margin:10px 0 0;line-height:1.6}
@media(max-width:900px){.pc-row{grid-template-columns:64px 1fr 108px;font-size:12px}}
