/* ================================================================
 * 享像无限之家 · v4 全站主题层（v1.3.303，2026-11-11）
 * 依据老板定版设计稿 design-mock/pages/（「v4 案例同款：饱满数据产品风」）：
 * 浅蓝光晕底 / 深蓝圆角浮起侧栏 / 白卡 12px 圆角 / 主蓝 #2E6BE8。
 *
 * 铁律（老板 2026-11-11 口头确认）：
 * 1. 只换皮肤 —— 任何功能、控件、操作方式零改动；本文件只有 CSS。
 * 2. 数据大屏 #/screen 不动 —— 屏幕相关规则在 styles.css 里全部硬编码色值、
 *    且壳层元素 display:none，本文件 :root 变量覆盖对它零影响（已核：大屏段 0 处 var 引用）。
 * 3. 月历和月历功能不动（老板 2026-11-11 追加）—— .dcal-* / .cal-* / .kpi-cal /
 *    .hm-cal 在文件尾「月历冻结区」用旧 token 原值钉死，主题变量传不进去。
 * ================================================================ */

/* ---------- 设计 token（覆盖 styles.css :root） ---------- */
:root{
  --primary:#2E6BE8;        /* 主蓝（旧 #1565C0） */
  --primary-600:#2A63DC;
  --primary-050:#EEF4FF;
  --deep:#1B2942;           /* 墨蓝（boot/toast/login-mark 用） */

  --bg:#E6EEF9;
  --surface:#FFFFFF;
  --surface-2:#F7FAFF;
  --border:#E3EBF8;
  --border-strong:#D3DEF0;

  --text:#1B2942;
  --text-2:#4C596E;
  --muted:#8B96AB;

  --up:#E5484D;
  --down:#22B573;
  --warn:#F59E0B;
  --danger:#D93A2B;

  --radius:12px;
  --radius-sm:10px;
  --shadow-1:0 2px 8px rgba(23,64,140,.05), 0 18px 40px -30px rgba(23,64,140,.30);
  --shadow-2:0 14px 34px -20px rgba(16,26,70,.50);
}

/* ---------- 页面底：浅蓝光晕（大屏不生效） ---------- */
body:not(.screen-mode){
  background-color:#E6EEF9;
  background-image:
    radial-gradient(1150px 820px at 6% -12%, rgba(88,136,255,.36), transparent 66%),
    radial-gradient(980px 700px at 102% -4%, rgba(112,206,226,.32), transparent 64%),
    radial-gradient(1050px 820px at 64% 118%, rgba(152,132,248,.26), transparent 62%),
    radial-gradient(760px 560px at 42% 44%, rgba(255,255,255,.55), transparent 70%),
    linear-gradient(155deg,#D9E6FA 0%,#E8F1FE 24%,#F6FAFF 46%,#E9F3FE 68%,#DCE8F9 100%);
  background-attachment:fixed;
}

/* ---------- 侧边栏：深蓝圆角浮起面板（桌面端 >900px） ---------- */
@media (min-width:901px){
  body:not(.screen-mode) .sidebar{
    top:14px;bottom:14px;left:14px;
    border-radius:16px;
    background:linear-gradient(180deg,#212E66 0%,#182050 100%);
    box-shadow:0 14px 34px -20px rgba(16,26,70,.5);
  }
  body:not(.screen-mode) .main{margin-left:244px} /* 216 侧栏 + 左 14 + 右 14 */
}
body:not(.screen-mode) .sidebar{color:rgba(255,255,255,.82)}
body:not(.screen-mode) .sidebar-brand{border-bottom-color:rgba(255,255,255,.08)}
/* v1.3.304（老板截图）：logo 下面蓝底圆框不要 —— 只留 logo 本体 */
body:not(.screen-mode) .sidebar-brand .mark{background:none;border:0;border-radius:0}
body:not(.screen-mode) .sidebar-brand .nm{font-size:13.5px;font-weight:600;letter-spacing:0}
body:not(.screen-mode) .nav-group{color:rgba(255,255,255,.55);font-size:10.5px;letter-spacing:2px;font-weight:500}
/* v1.3.327（老板改名表）：分组行右侧加英文小字 —— 汉字居左、英文居右（同条目 .en 的位置样式）；
   折叠组（供应商库）英文在箭头左边。行高与字距照旧。 */
body:not(.screen-mode) .nav-group{display:flex;align-items:center;justify-content:space-between}
body:not(.screen-mode) .nav-group .en,
body:not(.screen-mode) .nav-group .gr-right{margin-left:auto}
body:not(.screen-mode) .nav-group .en{font-size:7.5px;color:rgba(255,255,255,.45);letter-spacing:.06em;font-weight:400}
body:not(.screen-mode) .nav-group .gr-right{display:flex;align-items:center;gap:6px}
body:not(.screen-mode) .nav-item{
  color:rgba(255,255,255,.82);font-size:12.5px;border-radius:8px;
  transition:background .15s,color .15s;
}
body:not(.screen-mode) .nav-item .ic{opacity:.75;font-size:13px}
body:not(.screen-mode) .nav-item:hover{background:rgba(255,255,255,.08);color:#fff}
body:not(.screen-mode) .nav-item.on{
  background:#3D6BE8;color:#fff;font-weight:700;
  box-shadow:0 6px 14px -6px rgba(61,107,232,.65);
}
body:not(.screen-mode) .nav-item .badge{background:#E5484D}
body:not(.screen-mode) .sidebar-foot{border-top-color:rgba(255,255,255,.08)}
body:not(.screen-mode) .sidebar-foot .role{color:rgba(255,255,255,.55)}
body:not(.screen-mode) .sidebar-foot button{
  background:rgba(255,255,255,.08);color:rgba(255,255,255,.85);border-radius:8px;
}
body:not(.screen-mode) .sidebar-foot button:hover{background:rgba(255,255,255,.15);color:#fff}
body:not(.screen-mode) .icp-beian a{color:rgba(255,255,255,.38)}

/* ---------- 顶栏：刊头化（标题放大、毛玻璃、去硬分割线） ---------- */
body:not(.screen-mode) .topbar{
  height:64px;
  background:rgba(255,255,255,.72);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(227,235,248,.8);
  padding:0 28px;
}
body:not(.screen-mode) .topbar h2{
  font-size:18px;font-weight:700;letter-spacing:-.2px;color:#1B2942;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
body:not(.screen-mode) .topbar .crumb{font-size:11px;color:#5A6B88;white-space:nowrap}
body:not(.screen-mode) .view{padding:18px 28px 30px}
/* 顶栏 56→64，两处依赖 56px 的限高与吸顶跟着对齐 */
body:not(.screen-mode) .view.view-fill{height:calc(100vh - 64px)}
body:not(.screen-mode) .view.view-tool{height:calc(100vh - 64px)}
/* v1.3.323：.em-pin 的半透明灰底+blur 取消（老板「不要灰框」）——
   手机端回落 styles.css 的 sticky top:56px（正贴 56px 顶栏），桌面在下方媒体块里统一铺无缝背景 */

/* ---------- 卡片体系 ---------- */
body:not(.screen-mode) .card{
  border-color:#EDF0F7;
  box-shadow:0 2px 8px rgba(23,64,140,.05), 0 12px 28px -20px rgba(16,24,40,.22);
}
body:not(.screen-mode) .card-head{border-bottom-color:#EFF3FA;padding:14px 18px}
body:not(.screen-mode) .card-head h3{font-size:13.5px;font-weight:700;color:#1B2942}
body:not(.screen-mode) .card-head .sub{color:#A2AEC2;letter-spacing:.03em}
body:not(.screen-mode) .card-body{padding:16px 18px}

/* ---------- KPI 卡 ---------- */
body:not(.screen-mode) .kpi .lb{font-size:10.5px;letter-spacing:.04em;color:#8B96AB}
body:not(.screen-mode) .kpi .vl{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-weight:600;letter-spacing:-.02em;
}
body:not(.screen-mode) .kpi .ft{color:#A9B4C6}
/* 金额数字统一 mono（数据产品感）；表头 .num 同步 */
body:not(.screen-mode) .money,body:not(.screen-mode) .num,body:not(.screen-mode) .ctr{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

/* ---------- 表格 ---------- */
body:not(.screen-mode) table.tb th{
  background:#F7FAFF;color:#8B96AB;font-weight:500;font-size:11px;letter-spacing:.05em;
  border-bottom-color:#E3EBF8;
}
body:not(.screen-mode) table.tb td{border-bottom-color:#F1F5FB}
body:not(.screen-mode) table.tb tbody tr:hover{background:#FAFCFF}
/* 留痕表吸附列的硬编码底色跟新表头对齐（只换色值，吸附结构不动） */
body:not(.screen-mode) .table-wrap.tb-log table.tb th.col-op{background:#F7FAFF}

/* ---------- 按钮 ---------- */
body:not(.screen-mode) .btn{
  padding:8px 14px;border-radius:10px;font-size:12.5px;font-weight:600;
  background:linear-gradient(180deg,#3C7BF0,#2E6BE8);
  border-color:#2E6BE8;
  box-shadow:0 8px 18px -10px rgba(46,107,232,.9);
}
body:not(.screen-mode) .btn:hover{background:linear-gradient(180deg,#4383F7,#2A63DC)}
body:not(.screen-mode) .btn-ghost{
  background:#fff;border-color:#E3EBF8;color:#4C596E;
  box-shadow:0 2px 6px rgba(23,64,140,.05);
}
body:not(.screen-mode) .btn-ghost:hover{background:#F7FAFF;border-color:#C9D8F2;color:#1B2942}
body:not(.screen-mode) .btn-danger{background:#D93A2B;border-color:#D93A2B}
body:not(.screen-mode) .btn-danger:hover{background:#C9352B}
body:not(.screen-mode) .btn-sm{padding:5px 11px}

/* ---------- 输入框 / 下拉 / 搜索 ---------- */
body:not(.screen-mode) .input,body:not(.screen-mode) .select,body:not(.screen-mode) .textarea{border-radius:10px}
body:not(.screen-mode) .input:focus,body:not(.screen-mode) .select:focus,body:not(.screen-mode) .textarea:focus{
  border-color:#7EA6F5;box-shadow:0 0 0 3px rgba(46,107,232,.12);
}
body:not(.screen-mode) .search input{border-radius:10px;border-color:#E3EBF8;box-shadow:0 2px 6px rgba(23,64,140,.05)}
body:not(.screen-mode) .search input:focus{border-color:#7EA6F5;box-shadow:0 0 0 3px rgba(46,107,232,.12)}
body:not(.screen-mode) .search::before{color:#9AA9C2}
body:not(.screen-mode) .select-sm{border-radius:8px;border-color:#E3EBF8}
body:not(.screen-mode) .subtb input,body:not(.screen-mode) .subtb select{border-radius:8px}

/* ---------- 标签 / 筛选 pill ---------- */
body:not(.screen-mode) .tag{border-radius:5px;font-weight:600}
body:not(.screen-mode) .tag.gray{background:#F1F4FA;color:#69788F}
body:not(.screen-mode) .chip{border-radius:10px;border-color:#E3EBF8;box-shadow:0 2px 6px rgba(23,64,140,.05)}
body:not(.screen-mode) .chip.on{background:#2E6BE8;border-color:#2E6BE8}
body:not(.screen-mode) .em-chip{border-radius:10px;box-shadow:0 2px 6px rgba(23,64,140,.05)}
body:not(.screen-mode) .em-chip.on{background:#2E6BE8;border-color:#2E6BE8}

/* ---------- 空态 / 提示 / 弹窗 / toast ---------- */
body:not(.screen-mode) .empty{color:#8B96AB}
body:not(.screen-mode) .modal{box-shadow:0 24px 60px -24px rgba(16,26,70,.45)}
body:not(.screen-mode) .toast{background:#1B2942;border-radius:10px}

/* ================================================================
 * 弹窗：只有「详情」走右侧抽屉，其余（录入/编辑等）回落到 styles.css 原生居中
 * （v1.3.316，老板 2026-11-11 晚「录入弹窗还是改成以前的样子，从中间弹出」
 *  + 「详情页弹窗不变，右侧抽屉的形式」）。抽屉通过 utils.modal({drawer:true})
 *  在 .modal-mask / .modal 上挂 .drawer 类，选择器只认这个类，别的弹窗零影响。
 * ================================================================ */
body:not(.screen-mode) .modal-mask.drawer{
  padding:0;
  align-items:stretch;
  justify-content:flex-end;
  background:rgba(16,26,60,.26);
}
body:not(.screen-mode) .modal.drawer{
  width:min(620px,94vw);
  max-width:94vw;
  height:100vh;
  height:100dvh;
  max-height:none;
  margin:0;
  border-radius:0;
  animation:v4-drawer-in .3s cubic-bezier(.22,.61,.36,1);
}
body:not(.screen-mode) .modal.drawer.wide{width:min(900px,94vw)}
body:not(.screen-mode) .modal.drawer.narrow{width:min(460px,94vw)}
body:not(.screen-mode) .modal.drawer .modal-head{border-radius:0}
body:not(.screen-mode) .modal.drawer .modal-foot{border-radius:0}
/* v1.4.1（手机端）：styles.css 的窄屏规则把 .modal 改成 display:block + min-height:100vh
   整页滚动 —— 会盖掉抽屉的 flex 纵排/固定高（抽屉内部滚动失效、整条跟着遮罩滚），
   且抽屉宽 min(620px,94vw) 在手机上左侧露出遮罩深色边。窄屏把抽屉改为整宽 +
   恢复 flex 内滚。写在 drawer 块之后，同特异性后到即赢。 */
@media (max-width:900px){
  body:not(.screen-mode) .modal.drawer,
  body:not(.screen-mode) .modal.drawer.wide,
  body:not(.screen-mode) .modal.drawer.narrow{
    width:100vw;max-width:none;min-height:0;display:flex;flex-direction:column;overflow:hidden;
    height:100vh;height:100dvh;max-height:none;
  }
}
@keyframes v4-drawer-in{from{transform:translateX(103%)}to{transform:none}}

/* ================================================================
 * 项目单页改版（v1.3.304，按定版设计稿 design-mock/projects-v2.html）：
 * 刊头（大标题+副题+chips）/ 合计条 / 筛选药丸。表格结构与设计稿一致，沿用主题通用样式。
 * ================================================================ */
body:not(.screen-mode) .pj-hero{padding:22px 0 4px}
body:not(.screen-mode) .pj-hero-top{display:flex;align-items:flex-end;justify-content:flex-start;gap:0;flex-wrap:wrap}
body:not(.screen-mode) .pj-hero h1{margin:0;font-size:28px;font-weight:800;letter-spacing:-.01em;color:#1B2942}
/* v1.3.319（老板：行数跟标题放一起） */
body:not(.screen-mode) .pj-hero-count{font-size:12px;color:#8B96AB;margin-left:14px;padding-bottom:6px}

body:not(.screen-mode) .pj-sum{
  display:flex;align-items:center;background:#fff;border-radius:12px;padding:14px 18px;margin-bottom:12px;
  box-shadow:0 2px 8px rgba(23,64,140,.05), 0 20px 44px -26px rgba(23,64,140,.22);flex-wrap:wrap;gap:8px 0;
}
body:not(.screen-mode) .pj-sum .it{padding:0 22px;border-left:1px solid #EAF0FA}
body:not(.screen-mode) .pj-sum .it:first-child{padding-left:0;border-left:0}
body:not(.screen-mode) .pj-sum .lb{font-size:10.5px;color:#8B96AB;letter-spacing:.06em}
body:not(.screen-mode) .pj-sum .v{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:19px;font-weight:500;
  margin-top:3px;letter-spacing:-.02em;color:#1B2942;white-space:nowrap;
}
body:not(.screen-mode) .pj-sum .v small{font-size:11px;color:#A9B4C6;font-weight:400;margin-left:2px}
body:not(.screen-mode) .pj-sum .v.up{color:#D93A2B}
body:not(.screen-mode) .pj-sum .v.down{color:#12854A}
body:not(.screen-mode) .pj-sum .sp{margin-left:auto;font-size:11px;color:#8B96AB}
/* v1.3.326（老板：手机版合计卡默认收起、点击才展开，电脑版不变）——
   折叠头「合计 ▾」电脑版隐藏（五项常显，布局与原来一字不差）；
   手机 ≤900px 显示折叠头、五项和行数默认藏起来，点整卡切换（views-projects 挂 click）。 */
body:not(.screen-mode) .pj-sum .pj-fold-head{display:none}
@media (max-width:900px){
  body:not(.screen-mode) .pj-sum{cursor:pointer;gap:0}
  body:not(.screen-mode) .pj-sum .pj-fold-head{
    display:flex;align-items:center;justify-content:space-between;width:100%;
    font-size:12.5px;font-weight:700;color:#1B2942;
  }
  body:not(.screen-mode) .pj-sum .pj-fold-caret{color:#8B96AB;font-size:11px;transition:transform .15s}
  body:not(.screen-mode) .pj-sum .it,
  body:not(.screen-mode) .pj-sum .sp{display:none}
  body:not(.screen-mode) .pj-sum.open{flex-direction:column;align-items:stretch}
  body:not(.screen-mode) .pj-sum.open .it{display:block;padding:0;border-left:0}
  body:not(.screen-mode) .pj-sum.open .it + .it{padding-top:10px;border-top:1px solid #EAF0FA;margin-top:10px}
  body:not(.screen-mode) .pj-sum.open .sp{display:block;margin:10px 0 0;color:#8B96AB}
  body:not(.screen-mode) .pj-sum.open .pj-fold-caret{transform:rotate(180deg)}
}

body:not(.screen-mode) .fld{
  display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;background:#fff;
  border:1px solid #E3EBF8;border-radius:10px;box-shadow:0 2px 6px rgba(23,64,140,.05);
}
body:not(.screen-mode) .fld .lb{font-size:11px;color:#98A5BA;white-space:nowrap}
body:not(.screen-mode) .fld>select,body:not(.screen-mode) .fld>input{
  border:0;background:transparent;box-shadow:none;border-radius:0;height:100%;padding:0;
  font-weight:600;color:#1B2942;outline:none;max-width:170px;font-family:inherit;font-size:12.5px;
}
body:not(.screen-mode) .fld:focus-within{border-color:#7EA6F5;box-shadow:0 0 0 3px rgba(46,107,232,.12)}

/* v1.3.320（老板：所有页面的表头都换成项目单这种页内刊头）——
   桌面端顶栏全站隐藏，#page-hero 出大标题（app.js doRoute 按路由填）；
   通表到底的页面高度扣掉刊头高度；项目单页有自己的刊头（含行数），
   通表高度保持整屏不变。手机 ≤900px 顶栏保留、刊头隐藏（汉堡入口在顶栏）。 */
#page-hero{display:none}
@media (min-width:901px){
  body:not(.screen-mode) .topbar{display:none}
  body:not(.screen-mode) #page-hero{
    display:block;padding:20px 32px 2px;max-width:1440px;
  }
  body:not(.screen-mode) #page-hero h1{
    margin:0;font-size:28px;font-weight:800;letter-spacing:-.01em;color:#1B2942;
  }
  /* v1.3.321（老板：每个页面标题旁的小字要保留）—— 行数/说明随 setTitle/setSub 写入 */
  body:not(.screen-mode) #page-hero .page-hero-sub{
    font-size:12px;color:#8B96AB;margin-left:14px;padding-bottom:6px;display:inline-block;
  }
  body:not(.screen-mode) .view{padding:6px 32px 34px;max-width:1440px}
  body:not(.screen-mode) .view.view-fill{height:calc(100vh - 78px)}
  body:not(.screen-mode)[data-route="#/projects"] .view.view-fill{height:100vh}
  /* v1.3.323（老板：吸顶层「不要灰框」+ 员工管理红框整块冻结）——
     灰框根因：v1.3.322 给吸顶层铺了半透明灰底（rgba+blur），压在光晕底上是一块灰带。
     改法：吸顶层铺与 body 完全相同的光晕背景且 background-attachment:fixed ——
     fixed 以视口为锚，吸顶层与身后背景逐像素重合，肉眼无框；内容滚过被不透明背景挡住。
     员工管理钉扎顺序（顶距由 views-emp 的 emPinSync() 实测写入内联 style，CSS 值只是回落）：
     刊头(top:0) → 普通员工账号行(.em-pin) → 收入看板卡头(.em-bd-head) →
     看板工具行+月历/KPI 区(.em-bd-pin)；名单表格在下面正常滚。 */
  body:not(.screen-mode) #page-hero,
  body:not(.screen-mode) .em-pin,
  body:not(.screen-mode)[data-route="#/dashboard"] .toolbar{
    background-color:#E6EEF9;
    background-image:
      radial-gradient(1150px 820px at 6% -12%, rgba(88,136,255,.36), transparent 66%),
      radial-gradient(980px 700px at 102% -4%, rgba(112,206,226,.32), transparent 64%),
      radial-gradient(1050px 820px at 64% 118%, rgba(152,132,248,.26), transparent 62%),
      radial-gradient(760px 560px at 42% 44%, rgba(255,255,255,.55), transparent 70%),
      linear-gradient(155deg,#D9E6FA 0%,#E8F1FE 24%,#F6FAFF 46%,#E9F3FE 68%,#DCE8F9 100%);
    background-attachment:fixed;
  }
  body:not(.screen-mode) #page-hero{
    position:sticky;top:0;z-index:40;
  }
  body:not(.screen-mode) .em-pin{top:var(--hero-h,93px)}
  body:not(.screen-mode)[data-route="#/dashboard"] .toolbar{
    position:sticky;top:var(--hero-h,93px);z-index:39;
  }
  /* 收入看板卡头与「工具行+月历/KPI 区」压在白卡上，用白底；
     pin 用负 margin 顶满卡身内边距（card-body 在主题层是 16px 18px），
     滚动时表格行从底下过不露缝。 */
  body:not(.screen-mode) #view .em-bd-head{
    position:sticky;top:96px;z-index:38;background:#FFFFFF;
  }
  body:not(.screen-mode) #view .em-bd-pin{
    position:sticky;top:144px;z-index:37;background:#FFFFFF;
    margin:-16px -18px 0;padding:16px 18px 0;
  }
  /* v1.3.324（老板：冻结区再加点）—— 明细表头（类型/日期…盈利）也吸顶，
     钉在月历/KPI 区正下方（顶距由 emPinSync 实测写入内联 style）。
     坑：.bd-ctr 的 overflow-x:auto 会让它成为滚动容器、截断 sticky ——
     桌面端改 clip（不生成滚动容器，sticky 对视口生效，内容不外溢）；
     手机 ≤900px 不进本媒体块，保持原横向滚动 + 表头随表滚。 */
  body:not(.screen-mode) #em-board .bd-ctr{overflow-x:clip}
  body:not(.screen-mode) #em-board .bd-ctr thead th{position:sticky;z-index:36}
}
body:not(.screen-mode) .view.view-fill>.pj-hero,
body:not(.screen-mode) .view.view-fill>.pj-sum,
body:not(.screen-mode) .view.view-fill>#pj-kpi{flex:0 0 auto}

/* ---------- 岗位卡片行：任何宽度都保持 6 格一行（v1.3.306，老板截图
   「手机版的这些也要放在一行，不要多行」）。窄屏给每格保底 140px，
   超出部分随整表横向滚动（与项目主行同一滚动容器，对齐不乱）。 ---------- */
@media (max-width:1100px){
  body:not(.screen-mode) .staff-grid{grid-template-columns:repeat(6,minmax(140px,1fr))}
}
@media (max-width:680px){
  body:not(.screen-mode) .staff-grid{grid-template-columns:repeat(6,minmax(140px,1fr))}
}

/* ---------- 详情抽屉「参与人员与成本」卡片行（v1.3.306，按设计稿 drawer 同款） ---------- */
body:not(.screen-mode) .pj-pr{
  display:flex;align-items:center;gap:10px;padding:10px 12px;background:#fff;
  border:1px solid #EDF2FA;border-radius:10px;margin-bottom:8px;transition:border-color .15s;
}
body:not(.screen-mode) .pj-pr:hover{border-color:#D6E3F7}
body:not(.screen-mode) .pj-pr-l{flex:1;min-width:0}
body:not(.screen-mode) .pj-pr-r1{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#1B2942;font-weight:600}
body:not(.screen-mode) .pj-pr-rl{
  font-size:9.5px;font-weight:600;color:#69788F;background:#F2F5FB;border-radius:4px;
  padding:1px 6px;flex-shrink:0;
}
body:not(.screen-mode) .pj-pr-nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body:not(.screen-mode) .pj-pr-ra{
  margin-left:auto;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:12.5px;color:#D93A2B;white-space:nowrap;
}
body:not(.screen-mode) .pj-pr-r2{font-size:10.5px;color:#94A1B6;margin-top:3px;padding-left:2px}
body:not(.screen-mode) .pj-pr-sum{
  display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:#F8FBFF;
  border:1px dashed #DCE7F8;border-radius:10px;margin-top:8px;font-size:11.5px;color:#8B96AB;
}
body:not(.screen-mode) .pj-pr-sum b{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;color:#D93A2B;
}

/* ---------- 项目单主表：老板端定宽列（v1.3.307，设计稿 projects-v2 colgroup 同款） ---------- */
body:not(.screen-mode) table.tb.tb-fixed{table-layout:fixed;min-width:1190px;width:100%}
body:not(.screen-mode) table.tb.tb-fixed td,
body:not(.screen-mode) table.tb.tb-fixed th{word-break:break-all;overflow-wrap:anywhere}

/* ---------- 岗位卡片行 mock 化：去圆角小卡，改竖线分隔（v1.3.307） ---------- */
body:not(.screen-mode) .staff-grid{gap:0}
body:not(.screen-mode) .stf-col{
  border:0;border-left:1px solid #F1F5FB;border-radius:0;background:transparent;padding:4px 12px 6px;
}
body:not(.screen-mode) .stf-col:first-child{border-left:0;padding-left:2px}
body:not(.screen-mode) .stf-col.is-empty{border-left:1px solid #F1F5FB;background:transparent}

/* ---------- 登录页 / boot ---------- */
body:not(.screen-mode) .login-wrap{
  background:
    radial-gradient(900px 620px at 8% -10%, rgba(88,136,255,.30), transparent 64%),
    radial-gradient(760px 540px at 104% 0%, rgba(112,206,226,.26), transparent 62%),
    linear-gradient(155deg,#D9E6FA 0%,#E8F1FE 30%,#F6FAFF 55%,#E9F3FE 78%,#DCE8F9 100%);
}
body:not(.screen-mode) .login-card{border-radius:16px}
/* v1.3.304（老板截图）：加载页 / 登录页 logo 蓝底圆框一并去掉 —— 只留 logo 本体 */
body:not(.screen-mode) .boot-logo{border-radius:0;background:none}
body:not(.screen-mode) .login-mark{border-radius:0;background:none}

/* ================================================================
 * 月历冻结区（老板 2026-11-11「现有的月历和月历功能不要动」）
 * 在月历容器上把被本主题改掉的 token 钉回旧值 —— 自定义属性沿继承树
 * 重新生效，.dcal-* / .cal-* / .hm-cal 内部一条规则都不用改。
 * ================================================================ */
.kpi-cal,.hm-cal,.dcal-panel{
  --primary:#1565C0;
  --primary-600:#1258A8;
  --primary-050:#EAF2FC;
  --border:#E3E9F2;
  --border-strong:#CFD9E6;
  --muted:#8896A8;
  --text:#16212E;
  --text-2:#4A5A6E;
  --up:#D93A2B;
  --radius:10px;
  --radius-sm:7px;
  --shadow-1:0 1px 2px rgba(15,42,71,.06), 0 1px 3px rgba(15,42,71,.05);
}
/* 月历所在卡壳也保持旧观感（圆角/边线/内边距不动） */
body:not(.screen-mode) .kpi.kpi-cal{
  border-radius:10px;border-color:var(--border);
  box-shadow:0 1px 2px rgba(15,42,71,.06), 0 1px 3px rgba(15,42,71,.05);
}
body:not(.screen-mode) .kpi.kpi-cal .vl{
  font-family:inherit;letter-spacing:-.3px;font-weight:600;
}

/* ================================================================
 * v1.3.309：对照老板桌面定稿 /Users/apple/Desktop/projects-v2.html 逐格对齐
 * ================================================================ */

/* ---------- 侧边栏：导航英文小标 + 品牌英文副行（sb-item .en / sb-brand .en） ---------- */
body:not(.screen-mode) .nav-item .en{margin-left:auto;font-size:7.5px;color:rgba(255,255,255,.45);letter-spacing:.06em}
body:not(.screen-mode) .nav-item.on .en{color:rgba(255,255,255,.75)}
body:not(.screen-mode) .sidebar-brand .en{font-size:8px;color:rgba(255,255,255,.6);letter-spacing:.12em;margin-top:2px}
body:not(.screen-mode) .sidebar-brand .nm{line-height:1.2}

/* ---------- 刊头：h1 33px（mock v4 hero 同值） ---------- */
body:not(.screen-mode) .pj-hero h1{font-size:33px;font-weight:800;letter-spacing:.01em}

/* ---------- 筛选药丸：自绘箭头替代原生下拉箭头；搜索框圆规放大镜（mock .fld 同款） ---------- */
body:not(.screen-mode) .fld{position:relative;padding:0 30px 0 12px;transition:border-color .15s,box-shadow .15s,background .15s}
body:not(.screen-mode) .fld:hover{border-color:#C9D8F2}
body:not(.screen-mode) .fld>select{
  -webkit-appearance:none;appearance:none;cursor:pointer;max-width:152px;
  font-size:12.5px;font-weight:600;color:#1B2942;
}
body:not(.screen-mode) .fld::after{
  content:"";position:absolute;right:11px;top:50%;width:6px;height:6px;
  border-right:1.5px solid #9AA9C2;border-bottom:1.5px solid #9AA9C2;
  transform:translateY(-70%) rotate(45deg);pointer-events:none;
}
body:not(.screen-mode) .search{flex:0 0 216px}
body:not(.screen-mode) .search::before{
  content:"";left:12px;top:50%;transform:translateY(-50%);width:13px;height:13px;
  border:1.6px solid #9AA9C2;border-radius:50%;
}
body:not(.screen-mode) .search::after{
  content:"";position:absolute;left:23px;top:calc(50% + 5px);width:6px;height:1.6px;
  background:#9AA9C2;transform:rotate(45deg);border-radius:1px;pointer-events:none;
}
body:not(.screen-mode) .search input{font-size:12.5px;border:1px solid #E3EBF8;border-radius:10px;padding-left:34px}
body:not(.screen-mode) .toolbar .search{max-width:216px}

/* ---------- ghost 按钮透明化（mock .btn.ghost 同款） ---------- */
body:not(.screen-mode) .btn-ghost{background:transparent;box-shadow:none;border-color:transparent;color:#7C8CA6}
body:not(.screen-mode) .btn-ghost:hover{background:#fff;border-color:#E3EBF8;color:#1B2942}

/* ---------- 合计条：毛利红用 mock #C9352B ---------- */
body:not(.screen-mode) .pj-sum .v.up{color:#C9352B}

/* ---------- 项目单页内容边距：v1.3.320 起并入全站通用 .view padding（上面的刊头段） ---------- */

/* ---------- 主表：字号/内边距按 mock（12.5px；th 10.5/11-10；td 12-10） ---------- */
body:not(.screen-mode) table.tb.tb-fixed{font-size:12.5px}
body:not(.screen-mode) table.tb.tb-fixed th{font-size:10.5px;padding:11px 10px;letter-spacing:.06em}
body:not(.screen-mode) table.tb.tb-fixed td{padding:12px 10px}

/* ---------- 日期 / 客户 / 活动名称格（mock .date/.cust/.act 双行结构） ---------- */
body:not(.screen-mode) .pj-d{font-weight:600;font-size:12.5px;color:#1B2942;overflow-wrap:anywhere}
body:not(.screen-mode) .pj-s{font-size:10.5px;color:#8B96AB;margin-top:3px;display:flex;gap:5px;align-items:center;flex-wrap:wrap}
body:not(.screen-mode) .pj-s em{
  font-style:normal;background:#EEF3FE;color:#2E6BE8;border-radius:4px;padding:0 4px;font-size:10px;
}
/* v1.3.315（老板：客户名称不加粗、字体小一号） */
body:not(.screen-mode) .pj-cust .pj-n{font-weight:400;line-height:1.4;color:#1B2942;font-size:12px}
/* v1.3.314（老板：活动名称加粗、字体变大一点） */
body:not(.screen-mode) .pj-act .pj-n{font-weight:700;line-height:1.4;color:#1B2942;font-size:13.5px}
body:not(.screen-mode) .pj-act .pj-s i{font-style:normal;color:#2E6BE8}
body:not(.screen-mode) .pj-act .pj-s .pj-links{display:inline}

/* ---------- 毛利率（mock .rate：右对齐列，条宽 = 毛利率/60% 归一，50% 琥珀目标线） ---------- */
body:not(.screen-mode) .pj-rate{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
body:not(.screen-mode) .pj-rate-t{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;white-space:nowrap}
body:not(.screen-mode) .pj-rate-t.up{color:#1B2942}
body:not(.screen-mode) .pj-rate-t.down{color:#C9352B}
body:not(.screen-mode) .pj-rate-b{width:54px;height:4px;background:#EFF3FA;border-radius:2px;position:relative}
body:not(.screen-mode) .pj-rate-b i{display:block;height:4px;border-radius:2px;background:linear-gradient(90deg,#5B8DEF,#2E6BE8)}
body:not(.screen-mode) .pj-rate-b u{position:absolute;top:-2px;width:1.5px;height:8px;background:#EFB04A}

/* ---------- 岗位子行（mock tr.sub + .cgrid：浅蓝灰底、虚线竖分格、无卡框） ---------- */
body:not(.screen-mode) tr.pj-sub>td{background:#FBFCFE;border-bottom:1px solid #E3EBF8;padding:0}
body:not(.screen-mode) tr.pj-sub>td:hover{background:#FBFCFE}
body:not(.screen-mode) tr.pj-sub .staff-grid{
  border-top:1px dashed #DCE5F4;gap:0;
  grid-template-columns:repeat(6,minmax(0,1fr));
}
body:not(.screen-mode) tr.pj-sub .stf-col{
  border:0;border-right:1px dashed #E7EEF9;border-radius:0;background:transparent;
  padding:11px 12px 13px;min-height:70px;
}
body:not(.screen-mode) tr.pj-sub .stf-col:first-child{border-left:0;padding-left:12px}
body:not(.screen-mode) tr.pj-sub .stf-col:last-child{border-right:0}
body:not(.screen-mode) tr.pj-sub .stf-col.is-empty{border-right:1px dashed #E7EEF9;background:transparent}
body:not(.screen-mode) tr.pj-sub .stf-col-h{
  border-bottom:0;padding-bottom:0;margin-bottom:7px;
  font-size:10.5px;color:#8B96AB;font-weight:500;
}
body:not(.screen-mode) tr.pj-sub .stf-col-sum{
  color:#5A6B88;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-weight:500;font-size:10.5px;
}
/* 格内人员行（mock .p：白底描边圆角小条） */
body:not(.screen-mode) tr.pj-sub .stf-item{
  display:flex;align-items:center;gap:6px;padding:4px 6px 4px 8px;background:#fff;
  border:1px solid #EDF2FA;border-radius:7px;margin-bottom:5px;font-size:11.5px;
}
body:not(.screen-mode) tr.pj-sub .stf-item:hover{border-color:#D6E3F7;box-shadow:0 1px 3px rgba(23,64,140,.06)}
body:not(.screen-mode) tr.pj-sub .stf-nm{
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:64px;color:#1B2942;
}
body:not(.screen-mode) tr.pj-sub .stf-amt{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;
  color:#3C4B63;margin-left:auto;white-space:nowrap;
}
/* 格内结算下拉：mock .st2 轻样式（透明底 + 状态色字 + 自绘箭头） */
body:not(.screen-mode) tr.pj-sub .stf-col .settle-sel{
  -webkit-appearance:none;appearance:none;border:0;background:transparent;
  font-size:10.5px;font-weight:600;padding:2px 13px 2px 0;margin-left:auto;
  width:auto;max-width:none;border-radius:4px;line-height:1.6;cursor:pointer;flex-shrink:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='5'%3E%3Cpath d='M0 0l3.5 4L7 0' fill='none' stroke='%239AA9C2' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 2px center;
}
body:not(.screen-mode) tr.pj-sub .stf-col .settle-sel:focus{outline:2px solid rgba(46,107,232,.35);outline-offset:1px;box-shadow:none}
body:not(.screen-mode) tr.pj-sub .stf-col .settle-sel[data-st="paid"]{color:#12805A;background-color:transparent}
body:not(.screen-mode) tr.pj-sub .stf-col .settle-sel[data-st="partial"]{color:#A9700A;background-color:transparent}
body:not(.screen-mode) tr.pj-sub .stf-col .settle-sel[data-st="unpaid"]{color:#C93A32;background-color:transparent}
/* 手机端岗位行保底宽（v1.3.306 口径沿用，配横向滚动） */
@media (max-width:1100px){
  body:not(.screen-mode) tr.pj-sub .staff-grid{grid-template-columns:repeat(6,minmax(140px,1fr))}
}
