/* ============================================================
   兜行暖通装饰 · 样式修正（独立文件）
   为什么要单独一个文件：这段规则原本写在 styles.css 里，
   但那份文件较长、中间有历史遗留内容，浏览器解析时把这一段整块跳过了
   （同一条规则用 <style> 注入就生效，写在文件里就是不生效）。
   拆出来单独加载，行为可预测，也方便以后只改这几行。
   ============================================================ */

/* 【一】「我的」页两列列表：同排严格等高 + 标题两行 + 副文两行
   ① 同一行的卡一定等高（.me-compact 的选择器更具体，必须 !important）
   ② 标题最多两行（「客户全景（关联大脑）」不再撑高整行）
   ③ 副文给两行空间（「查配件库存」那行以前被截成「…」）
   ④ 右侧 › 垂直居中，不被拉伸拉歪 */
.rows.two .row-item{min-height:88px !important;align-items:stretch !important;box-sizing:border-box}
.rows.two .row-item .k{display:flex !important;flex-direction:column;justify-content:center;
  min-width:0;overflow:hidden}
.rows.two .row-item .t1{display:-webkit-box !important;-webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical;overflow:hidden;white-space:normal;word-break:break-word;
  line-height:1.34;font-size:14px}
.rows.two .row-item .t2{white-space:normal !important;display:-webkit-box !important;
  -webkit-line-clamp:2 !important;-webkit-box-orient:vertical;overflow:hidden;
  line-height:1.42;margin-top:3px;max-width:100% !important}
.rows.two .row-item .v{align-self:center !important;flex:0 0 auto}

/* 【二】底部导航：整条 68px + 安全区、字号 15px（老板嫌又矮又小） */
.tabbar a{min-height:68px !important;padding:0 !important;font-size:15px !important;
  justify-content:center !important;gap:0 !important;line-height:1.25}

/* 【三】一行里只剩一张卡时占满整行
   现在「推荐有礼 · 推荐奖励」是奇数个，落在最后一排只有它自己，
   右边空出半格，看着像漏了一块。这里让它铺满整行。 */
.rows.two .rpair > .row-item:only-child{flex:1 1 100% !important;max-width:none !important}

/* ============================================================
   【四】后台「授权一个手机号」弹层：权限勾选不再重叠
   事故：宽屏弹层 .sheet.adm-sheet .field 是两列 grid，
   且 .field>label 被强制 grid-column:1 / grid-row:1。
   原来的权限项是多个 <label> 直接挂在 .field 下 →
   全部叠进同一个格子，文字压字、复选框被挤成细条。
   现在权限项统一收进 .perm-box（唯一非 label 子元素 → 第 2 列）。
   ============================================================ */
.perm-box{display:flex !important;flex-direction:column;gap:1px;min-width:0}
.perm-box .perm-opt{
  display:flex !important;align-items:flex-start;gap:10px;
  padding:9px 2px !important;margin:0 !important;
  font-size:13.5px !important;font-weight:500 !important;
  color:#3B3831 !important;line-height:1.55 !important;
  cursor:pointer;grid-column:auto !important;grid-row:auto !important}
.perm-box .perm-opt input{
  width:18px !important;height:18px !important;flex:0 0 18px;
  margin:1px 0 0 !important;accent-color:#1E6EB5;cursor:pointer}
.perm-box .perm-opt span{flex:1;min-width:0;word-break:break-word}
/* 宽屏：弹层加宽 + 权限两列排，15 项一屏看完（老板说「显示不全」就是高度超了） */
@media (min-width:820px){
  .sheet.adm-sheet.perm-sheet{max-width:min(780px,92vw) !important}
  .sheet.adm-sheet.perm-sheet .field{grid-template-columns:112px 1fr !important}
  .perm-sheet .perm-box{
    display:grid !important;grid-template-columns:1fr 1fr;
    gap:0 22px;align-content:start}
  .perm-sheet .perm-opt{padding:7px 2px !important}
}

/* ============================================================
   【五】消息通知三色语义 + 未读「浮起来」/ 已读「平铺」
   老板定死：黄=待办、红=紧急要处理、绿=已办完。
   未读要有「浮在上面」的层次，已读保持平铺。
   ============================================================ */
.ntc{
  position:relative;padding:11px 13px 11px 16px;margin-bottom:9px;
  border-radius:11px;border:1px solid transparent;cursor:pointer;
  transition:box-shadow .16s ease,transform .16s ease,background .16s ease}
/* 左侧语义色条 */
.ntc::before{
  content:'';position:absolute;left:0;top:0;bottom:0;width:4px;
  border-radius:11px 0 0 11px;background:#D9D3C6}
.ntc.tone-urgent::before{background:#E03B2F}
.ntc.tone-todo::before{background:#E8A33D}
.ntc.tone-done::before{background:#2E9E68}
/* 未读：白底 + 投影 + 微抬起 = 浮在上面 */
.ntc.unread{
  background:#fff;
  border-color:rgba(20,55,46,.08);
  box-shadow:0 3px 11px rgba(20,55,46,.14),0 1px 2px rgba(20,55,46,.07);
  transform:translateY(-1px)}
.ntc.unread:hover{box-shadow:0 7px 20px rgba(20,55,46,.20);transform:translateY(-2px)}
/* 已读：无阴影、半透、色条变细变淡 = 平铺下去 */
.ntc.read{background:rgba(255,255,255,.5);box-shadow:none;border-color:transparent}
.ntc.read::before{width:3px;opacity:.55}
.ntc.read .ntc-title{color:#6B665E !important;font-weight:600 !important}
.ntc.read .ntc-body{color:#9A948A !important}
/* 状态胶囊 */
.ntc-tag{
  flex:0 0 auto;font-size:10.5px;font-weight:700;line-height:1.55;
  padding:2px 8px;border-radius:999px;white-space:nowrap;letter-spacing:.2px}
.ntc-tag.tone-urgent{color:#A3211A;background:#FDECE9}
.ntc-tag.tone-todo{color:#8A5A00;background:#FFF4DE}
.ntc-tag.tone-done{color:#1D6B45;background:#E7F5ED}
/* 顶部三色图例（可点筛选） */
.ntc-legend{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 11px}
.ntc-legend .lg{
  display:inline-flex;align-items:center;gap:6px;
  font-size:12.5px;font-weight:600;padding:5px 11px;border-radius:999px;
  border:1px solid;cursor:pointer;user-select:none;transition:all .15s ease}
.ntc-legend .lg i{width:9px;height:9px;border-radius:50%;flex:0 0 9px}
.ntc-legend .lg.on{box-shadow:0 2px 7px rgba(20,55,46,.16)}
.ntc-legend .lg.dim{opacity:.45}
.ntc-legend .lg-u{color:#A3211A;background:#FDECE9;border-color:#F3CFC9}
.ntc-legend .lg-u i{background:#E03B2F}
.ntc-legend .lg-t{color:#8A5A00;background:#FFF4DE;border-color:#F0DFB4}
.ntc-legend .lg-t i{background:#E8A33D}
.ntc-legend .lg-d{color:#1D6B45;background:#E7F5ED;border-color:#C6E5D3}
.ntc-legend .lg-d i{background:#2E9E68}

/* 前台消息页（客户/师傅端）同款三色 */
.msg-item.tone-urgent{border-left:4px solid #E03B2F !important}
.msg-item.tone-todo{border-left:4px solid #E8A33D !important}
.msg-item.tone-done{border-left:4px solid #2E9E68 !important}
.msg-item.unread{box-shadow:0 3px 11px rgba(20,55,46,.13);
  border-radius:11px;margin-bottom:9px;position:relative}
.msg-item:not(.unread){opacity:.88}

/* ============================================================
   【六】工单列表：从左到右自动铺开，排不下再换行，卡片随数量伸缩
   事故：styles.css 里那条
     grid-template-columns:repeat(auto-fill,minmax(280px,1fr)
   少一个右括号 → 整条声明被浏览器丢弃 → 退回 block，
   每张卡都独占整行，右边一大片空白（老板连发两次截图）。
   这里重写，并且用 auto-fit（不是 auto-fill）：
   件数少时把剩余宽度均分给现有卡片 —— 正是老板说的
   「少一个它就延伸长一点，多一个它就少一点」。
   ============================================================ */
.tk-list-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(288px,1fr)) !important;
  gap:12px !important;
  align-items:start !important;
  min-height:200px}
.tk-list-grid>.loading,.tk-list-grid>.empty{grid-column:1/-1 !important}
/* ⛔ 关键：后台有一套 #app.adm [id$="List"]>.card{grid-column:1/-1} 的老规则，
   #tkList 正好以 List 结尾被命中，卡片被强制横跨整行 —— 网格铺开了也看不出来。
   这里显式放开，卡片回到单列。 */
.tk-list-grid>.tk-card{grid-column:auto !important;margin:0 !important;min-width:0;box-sizing:border-box}
/* 窄屏（手机后台）单列，避免卡片被压成一条 */
@media (max-width:640px){
  .tk-list-grid{grid-template-columns:1fr !important;gap:9px !important}
}

/* ============================================================
   【七】后台电脑端：所有页面铺满屏幕，不再「左边一条、右边全空」
   事故现场（老板截图）：新建工单页左边挤成 220px 一列，右边一片空白；
   而且页面底下还冒出了前台的底部导航（首页/商品/消息/我的）。
   处理：
     ① 后台保留前台底部导航（老板 2026-11-08 要求：后台也要能看到底部
        首页/商品/消息/我的，点一下直接切回用户端；仅小程序内可收起）；
     ② 后台里 .page 放开 600px 限制，铺到 1600 上限居中；
     ③ 新建工单页三块（① 选客户 / ② 服务内容 / ③ 我的记录）
        宽屏自动横排成多列，一屏看完；手机端仍然单列不变。
   ============================================================ */
@media (min-width:820px){
  /* ⚠️ 旧规则 body.adm-mode .tabbar{display:none!important} 已移除 ——
     老板 2026-11-08 要求后台也显示底部导航（首页/商品/消息/我的）。
     电脑端让它全宽铺开（和手机端那条一致），底部留白让开 68px 导航条，
     免得最后一行被压住。 */
  body.adm-mode .tabbar{max-width:none !important}
  body.adm-mode #app.adm .ad-in{padding-bottom:92px !important}
  body.adm-mode #app.adm .ad-in > .page{
    grid-column:1/-1 !important;max-width:none !important;width:100% !important;padding:0 !important}
  body.adm-mode .page > .dk-wrap{
    display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));
    gap:12px;align-items:start;width:100%}
  body.adm-mode .dk-wrap > .card{margin-bottom:0 !important;min-width:0;box-sizing:border-box}
  /* 客户下拉里的「全部客户」列表本来只 230px 高，宽屏给足高度 */
  body.adm-mode .dk-wrap #dkDrop{max-height:330px}
}

/* ============================================================
   【九】后台「新建工单」电脑端多列铺满
   事故现场（老板截图）：整张表单挤在左边一条，右边 800px 全空，
   还要一路往下滚。原因是 .sec.tkform-wide 被 #app.adm .ad-in 的
   auto-fill 栅格塞进了 360px 的单列。
   处理：表单块整行独占 → 四张卡横排 → 第一张（客户/预约/派单）
   内部再铺成 4 列，一屏看完。手机端不命中媒体查询，样式零变化。
   ============================================================ */
@media (min-width:820px){
  body.adm-mode #app.adm .ad-in > .sec.tkform-wide{
    grid-column:1/-1 !important;width:100% !important;max-width:none !important}
  body.adm-mode .tkform-grid{
    display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:12px;align-items:start;width:100%}
  body.adm-mode .tkform-grid > .card{
    margin-top:0 !important;min-width:0;box-sizing:border-box}
  body.adm-mode .tkform-grid > .card:first-child{
    grid-column:1/-1;
    display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:0 16px;align-items:start}
  body.adm-mode .tkform-grid > .card:first-child > .tkf-item{
    margin-bottom:11px !important;min-width:0}
  /* 客户下拉是绝对定位，得让它的父格能定位 */
  body.adm-mode .tkform-grid > .card:first-child > .tkf-item{position:relative}
  /* 宽屏四列后输入框只有 240px，客户下拉跟着变窄、一行挤三行字 —— 独立放宽 */
  body.adm-mode #fCustDrop{right:auto !important;width:min(470px,92vw) !important}
  /* 备件/服务/费用/照片各占两列 → 每行刚好铺满，右边不留空 */
  body.adm-mode .tkform-grid > .tkf-half{grid-column:span 2}
  body.adm-mode #tkImgBox{display:grid;grid-template-columns:repeat(auto-fit,minmax(186px,1fr));gap:8px}
  body.adm-mode #tkImgBox .tkf-note{grid-column:1/-1}
  body.adm-mode #tkImgBox .tkf-slot{margin-bottom:0}
}


/* ============================================================
   十 · 客户档案（后台客户资料总表）—— 卡片网格，从左到右铺满
   一张卡一个客户；少一个它就宽，多一个它就窄。手机端单列。
   ============================================================ */
.cf-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0 8px}
.cf-bar .cf-q{flex:1 1 260px;min-width:170px;padding:10px 12px;border:1px solid #DCE7F0;
  border-radius:10px;font-size:14px;background:#fff;color:#17324A;box-sizing:border-box}
.cf-bar select{padding:9px 10px;border:1px solid #DCE7F0;border-radius:10px;font-size:13px;
  background:#fff;color:#17324A}
.cf-sum{font-size:12.5px;color:#6B7A87;margin:0 0 10px}
.cf-sum b{color:#14372E;font-size:14px}
.cf-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(298px,1fr));
  gap:12px;align-items:start}
.cf-card{background:#fff;border:1px solid #E6EDF3;border-radius:14px;padding:13px 14px;
  display:flex;flex-direction:column;gap:5px;min-width:0;box-sizing:border-box}
.cf-hd{display:flex;align-items:center;gap:8px;min-width:0}
.cf-av{width:32px;height:32px;border-radius:50%;background:#EAF5FD;color:#1668A8;
  display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;
  flex:none;overflow:hidden}
.cf-name{font-size:14.5px;font-weight:700;color:#14372E;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;min-width:0}
.cf-no{margin-left:auto;font-size:11px;color:#95A2AE;flex:none;
  font-family:ui-monospace,Menlo,Consolas,monospace}
.cf-tag{font-size:11px;padding:2px 7px;border-radius:6px;background:#F1EFE8;color:#6B6357;flex:none}
.cf-tag.grey{background:#EEF1F4;color:#7A8792}
.cf-mono{font-size:13px;color:#2C3A45;font-family:ui-monospace,Menlo,Consolas,monospace}
.cf-mono i{color:#A9B4BE;font-style:normal;font-size:12px}
.cf-line{font-size:12px;color:#6B7A87}
.cf-addr{font-size:12px;color:#8E887E;line-height:1.45;min-height:35px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cf-stat{display:flex;flex-wrap:wrap;gap:6px;margin-top:3px}
.cf-stat span{font-size:11.5px;background:#F6F8FA;border-radius:7px;padding:3px 8px;color:#4A5A66}
.cf-stat span b{color:#14372E}
.cf-stat .dim{color:#A9B4BE}
.cf-ops{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px;padding-top:9px;
  border-top:1px dashed #EDF1F5}
.cf-ops button{font-size:11.5px;padding:5px 9px;border-radius:8px;border:1px solid #DCE7F0;
  background:#fff;color:#1668A8;cursor:pointer;line-height:1.2}
.cf-ops button:hover{background:#F4FAFF}
.cf-ops button.gold{background:#FFF8E6;border-color:#EAD9A8;color:#8A6D1F}
.cf-ops button.danger{color:#C0392B;border-color:#F2D6D2;background:#FDF2F0}
.cf-more{grid-column:1/-1;text-align:center;padding:4px 0 2px}
.cf-more button{font-size:13px;padding:9px 18px;border-radius:10px;border:1px dashed #CBD8E2;
  background:#fff;color:#1668A8;cursor:pointer}
@media (max-width:640px){
  .cf-grid{grid-template-columns:1fr}
  .cf-ops button{flex:1 1 30%;text-align:center}
}

/* ============================================================
   十一 · 后台电脑端：内容区一律铺满（价格会员 / 数据智能 / 客户档案…）
   根因：#app.adm .ad-in 是 360px 的 auto-fill 栅格，页面外壳 .sec 只占一列
   → 右边大片空白。这里让 .sec / #adBody 整行独占。
   ============================================================ */
@media (min-width:820px){
  /* #adBody 本身就是那个 360px 的 auto-fill 栅格（实测 3 列 × 440px），
     所以要让「页面外壳」整行独占，而不是给 #adBody 自己加宽度。 */
  body.adm-mode #adBody.ad-in > .sec,
  body.adm-mode #adBody.ad-in > .cf-wrap,
  body.adm-mode #adBody.ad-in > .page{
    grid-column:1/-1 !important;width:100% !important;max-width:none !important;min-width:0}
  /* 价格会员：一列窄卡 → 自动并排铺满 */
  body.adm-mode #pcBody{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:12px;align-items:start}
  body.adm-mode #pcBody > *{margin:0 !important}
}

/* ============================================================
   十二 · 菜单就地改名 / 二级拖拽的视觉反馈
   ============================================================ */
.gnav button.editing,.mtabs button.editing{
  outline:2px solid #1668A8;outline-offset:1px;background:#fff;color:#14372E;
  border-radius:8px;min-width:46px;text-align:center;cursor:text}
.mtabs button[draggable="true"],.gnav button[draggable="true"]{cursor:grab}
.mtabs button.drag-over{box-shadow:inset 3px 0 0 #1668A8}
.mtabs button:active{cursor:grabbing}

/* ============================================================
   十三 · 手法库（数据智能 › 手法库）
   一条一条排开铺满，跟客户档案同一套栅格语言。
   ============================================================ */
.sb-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
  gap:11px;align-items:start}
.sb-card{background:#fff;border:1px solid #E6EDF3;border-left:3px solid #EAD9A8;
  border-radius:12px;padding:12px 13px;min-width:0;box-sizing:border-box}
.sb-hd{display:flex;align-items:baseline;gap:8px;min-width:0}
.sb-title{font-size:13.5px;font-weight:700;color:#14372E;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.sb-no{margin-left:auto;font-size:11px;color:#A9B4BE;flex:none;
  font-family:ui-monospace,Menlo,Consolas,monospace}
.sb-sol{font-size:13px;color:#4A4640;line-height:1.6;margin-top:6px;white-space:pre-wrap}
.sb-ft{font-size:11.5px;color:#95A2AE;margin-top:7px;padding-top:7px;
  border-top:1px dashed #EDF1F5}
.sb-chip{font-size:12px;padding:5px 10px;border-radius:14px;background:#FFF8E6;
  border:1px solid #EAD9A8;color:#8A6D1F;cursor:pointer}
.sb-chip b{color:#633806}
.sb-chip:hover{background:#FFF1CC}
@media (max-width:640px){.sb-list{grid-template-columns:1fr}}

/* ============================================================
   十四 · 工单图片位设置 + 导出弹窗（2026-11-08）
   老板要把照片分成原来那份表的五格，名字/必填/上限全部后台自己定。
   ============================================================ */
.tks-tip{font-size:12.5px;line-height:1.7;color:#5E5A52;background:#F7F5EF;
  border:1px solid #E8E3D6;border-radius:10px;padding:10px 13px;margin:0 0 14px}
.tks-tip b{color:#14372E}
.tks-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(228px,1fr));gap:12px}
.tks-card{background:#fff;border:1px solid #E6E1D6;border-radius:12px;
  padding:13px 14px;min-width:0;box-sizing:border-box;transition:border-color .15s,background .15s;
  display:flex;flex-direction:column}
.tks-card.is-req{border-color:#E8B4A8;background:#FFFCFB}
.tks-hd{display:flex;align-items:center;gap:8px;margin-bottom:11px;min-width:0}
.tks-no{width:20px;height:20px;border-radius:50%;background:#14372E;color:#fff;
  font-size:11.5px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.tks-g{font-size:11.5px;color:#8E887E;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tks-cnt{margin-left:auto;font-size:11.5px;color:#8E887E;flex:0 0 auto}
.tks-lb{display:block;font-size:11.5px;color:#8E887E;margin:9px 0 4px}
.tks-name{width:100%;box-sizing:border-box;padding:7px 10px;border:1px solid #E0DACC;
  border-radius:8px;font-size:13px;background:#fff;color:#2C2C2A}
.tks-maxrow{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.tks-max{width:62px;padding:7px 6px;border:1px solid #E0DACC;border-radius:8px;
  font-size:13px;text-align:center;background:#fff;color:#2C2C2A;flex:0 0 auto}
.tks-maxrow span{font-size:11.5px;color:#8E887E;line-height:1.45;flex:1;min-width:0;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.tks-maxrow span b{color:#14372E}
.tks-req{display:flex;align-items:flex-start;gap:7px;margin-top:auto;padding-top:11px;
  font-size:12.5px;color:#3E3A33;cursor:pointer;line-height:1.4}
.tks-req input{width:16px;height:16px;flex:0 0 auto;margin:0}
.tks-card.is-req .tks-req{color:#A32D2D;font-weight:500}
.tks-foot{font-size:11.5px;color:#8E887E;margin-top:12px;line-height:1.65}
/* 导出表预览条：让这页一目了然，也把下方空白填满 */
.tks-prev{margin-top:16px;background:#fff;border:1px solid #E6E1D6;border-radius:12px;padding:13px 14px}
.tks-prev-t{font-size:12.5px;font-weight:700;color:#14372E;margin-bottom:9px}
.tks-prev-t i{font-style:normal;font-weight:400;color:#8E887E;margin-left:8px}
.tks-prev-row{display:grid;grid-template-columns:34px repeat(6,minmax(0,1fr));gap:0;
  border:1px solid #EAE5D9;border-radius:8px;overflow:hidden}
.tks-prev-row>div{padding:7px 9px;font-size:11.5px;color:#5E5A52;border-right:1px solid #EAE5D9;
  border-bottom:1px solid #EAE5D9;background:#fff;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tks-prev-row>div:last-child{border-right:0}
.tks-prev-row .ph{background:#F7F5EF;font-weight:600;color:#14372E;text-align:center}
.tks-prev-row .hv{background:#FBFAF6;color:#8E887E}
.tks-prev-row .img{color:#B9B2A4;text-align:center}
.tks-prev-note{font-size:11.5px;color:#8E887E;margin-top:8px;line-height:1.6}
@media (max-width:640px){.tks-grid{grid-template-columns:1fr}
  .tks-prev-row{grid-template-columns:28px repeat(3,minmax(0,1fr))}
  .tks-prev-row>div:nth-child(n+5){display:none}}

/* 导出弹窗 */
.tk-xo{display:flex;align-items:flex-start;gap:9px;padding:10px 12px;
  border:1px solid #E6E1D6;border-radius:10px;margin-top:7px;cursor:pointer;background:#fff}
.tk-xo input{margin:2px 0 0;width:16px;height:16px;flex:0 0 auto}
.tk-xo-t{font-size:13px;font-weight:500;color:#14372E;line-height:1.4;min-width:0}
.tk-xo-t i{display:block;font-style:normal;font-size:11.5px;color:#8E887E;
  font-weight:400;margin-top:3px;line-height:1.5}
.tk-xo-scope{font-size:12.5px;color:#5E5A52;line-height:1.65;background:#F7F5EF;
  border-radius:8px;padding:9px 11px;margin-top:7px;word-break:break-all}
.tk-xo-chk{display:flex;align-items:flex-start;gap:8px;font-size:12.5px;
  color:#3E3A33;margin-top:11px;cursor:pointer}
.tk-xo-chk input{margin:2px 0 0;width:16px;height:16px;flex:0 0 auto}
.tk-xo-chk span{line-height:1.45;min-width:0}
.tk-xo-chk i{display:block;font-style:normal;font-size:11.5px;color:#8E887E;margin-top:2px}

/* ============================================================
   十五、后台开单页·五格照片（2026-11-08）
   老板：不管前台还是后台新建的工单，图片形式都要跟表一样。
   ============================================================ */
.tkf-slot{border:1px solid #EAE5D9;border-radius:10px;padding:9px 11px;margin-bottom:8px;background:#fff}
.tkf-slot.is-miss{border-color:#E8B4A8;background:#FFFCFB}
.tkf-slot-hd{display:flex;align-items:center;gap:7px;min-width:0}
.tkf-slot-hd b{font-size:12.5px;color:#14372E;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tkf-slot-hd i.req{font-style:normal;font-size:10.5px;color:#A32D2D;background:#FBECEA;
  border-radius:4px;padding:1px 6px;flex:0 0 auto}
.tkf-slot-hd .cnt{margin-left:auto;font-size:11.5px;color:#8E887E;flex:0 0 auto}
.tkf-slot-bd{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px;align-items:center}
.tkf-th{position:relative;width:60px;height:60px;flex:0 0 auto}
.tkf-th img{width:60px;height:60px;object-fit:cover;border-radius:7px;display:block;background:#F2EFE8}
.tkf-th span{position:absolute;top:-5px;right:-5px;width:18px;height:18px;border-radius:50%;
  background:#B4342C;color:#fff;font-size:12px;line-height:18px;text-align:center;cursor:pointer}
.tkf-add{font-size:12px;padding:5px 12px;flex:0 0 auto}
.tkf-full{font-size:11.5px;color:#B26A00;background:#FCF2E2;border-radius:6px;padding:4px 9px}
.tkf-note{font-size:11.5px;color:#8E887E;line-height:1.6;margin-top:2px}

/* ============================================================
   十六、完工开关 + 没挂客户的单（2026-11-08）
   老板要「后台自定义」：第⑤项必填与否自己勾，别写死。
   ============================================================ */
.tks-flow{background:#fff;border:1px solid #E6E1D6;border-radius:12px;
  padding:16px 18px;margin-top:16px;box-sizing:border-box}
.tks-flow-hd{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tks-flow-t{font-size:14.5px;font-weight:700;color:#14372E}
.tks-flow-tag{font-size:11.5px;color:#8A6A1E;background:#FBF1DA;border-radius:20px;
  padding:3px 11px;flex:0 0 auto}
.tks-flow-sub{font-size:12px;color:#8E887E;line-height:1.7;margin-top:7px}
.tks-flow-row{display:flex;align-items:flex-start;gap:9px;margin-top:13px;
  font-size:13px;color:#3E3A33;line-height:1.55;cursor:pointer}
.tks-flow-row input{width:17px;height:17px;flex:0 0 auto;margin:1px 0 0}
.tks-flow-row2{display:flex;align-items:center;gap:8px;margin-top:10px;
  font-size:13px;color:#3E3A33;flex-wrap:wrap}
.tks-flow-stat{font-size:12px;color:#7A7568;line-height:1.75;margin-top:14px;
  padding:10px 13px;background:#FAF8F2;border-radius:8px}
.tks-flow-stat b{color:#B4342C;font-weight:600}

/* 没挂客户的单 */
.or-bar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:12px 0}
.or-bar input[type=text]{flex:1;min-width:180px;padding:8px 12px;border:1px solid #E0DACC;
  border-radius:8px;font-size:13px;background:#fff}
.or-sel{padding:8px 10px;border:1px solid #E0DACC;border-radius:8px;font-size:12.5px;background:#fff}
.or-stat{font-size:12.5px;color:#6E6A60;margin-left:auto}
.or-stat b{color:#B4342C}
.or-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:11px;margin-top:6px}
.or-card{background:#fff;border:1px solid #E9E4D8;border-radius:11px;padding:12px 13px;
  box-sizing:border-box;min-width:0;display:flex;flex-direction:column;gap:7px}
.or-card.is-done{background:#FBFBF8;border-color:#EEEBE2}
.or-hd{display:flex;align-items:center;gap:8px;min-width:0}
.or-no{font-size:11.5px;color:#8E887E;font-variant-numeric:tabular-nums;flex:0 0 auto}
.or-pill{font-size:10.5px;border-radius:20px;padding:2px 9px;flex:0 0 auto}
.or-pill.p-open{background:#FDF0EC;color:#A8472C}
.or-pill.p-done{background:#EAF4EC;color:#2E6B4F}
.or-main{font-size:13.5px;color:#22312B;font-weight:600;line-height:1.5;
  overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.or-sub{font-size:12px;color:#7A7568;line-height:1.65;
  overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.or-foot{display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:4px}
.or-foot .or-meta{font-size:11.5px;color:#A5A093;margin-right:auto}
.or-foot button{font-size:12px;padding:5px 12px}
@media (max-width:640px){.or-list{grid-template-columns:1fr}}
.or-pill.p-dead{background:#F0EFEB;color:#8E887E}

/* ================= 十七、工单统计卡（2026-11-08） =================
   老板：状态灯原来是一排小字，点了不知道有几个单。
   照「订单列表」那种统计卡做：大数字在上、名字在下、整块能点。
   8 个状态一排摊开，点哪个筛哪个，一眼看到底。 */
.tk-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:2px 0 10px}
.tk-stats-money{grid-template-columns:1fr 1fr}
.tk-stat{display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;padding:13px 8px 11px;border:1px solid #E6E1D7;border-radius:12px;background:#fff;
  cursor:pointer;transition:box-shadow .15s ease,transform .12s ease;min-width:0}
.tk-stat:hover{box-shadow:0 3px 12px rgba(60,50,35,.09)}
.tk-stat:active{transform:translateY(1px)}
.tk-stat.on{box-shadow:0 3px 14px rgba(60,50,35,.13)}
.tk-stat .n{font-size:26px;font-weight:800;line-height:1.1;font-variant-numeric:tabular-nums;
  letter-spacing:-.5px}
.tk-stat .l{font-size:11.5px;color:#8E887E;line-height:1.35;text-align:center;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.tk-stat.on .l{color:#5E5A52;font-weight:600}
.tk-stat-wide{padding:15px 12px 13px}
.tk-stat-wide .n{font-size:28px}
.tk-stat-wide .l{font-size:12px}
@media (min-width:1180px){.tk-stats{grid-template-columns:repeat(8,1fr)}}
/* 金额那两行永远是「两半分」，不能被上面 8 列的规则带跑（否则挤成两块窄板） */
.tk-stats.tk-stats-money{grid-template-columns:1fr 1fr;margin-bottom:10px}
.tk-stat .n{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:clip}
@media (max-width:700px){
  .tk-stats{grid-template-columns:repeat(2,1fr);gap:8px}
  .tk-stats.tk-stats-money{grid-template-columns:1fr}
  .tk-stat .n{font-size:23px}
}

/* 十八、后台顶部「看前台」入口（2026-11-08 老板要求，别弄丢） */
.wfront{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;
  margin-left:8px;padding:5px 12px;border-radius:8px;
  background:#EDF7FF;color:#1668A8;border:1px solid #CFE3F5;
  font-size:12.5px;font-weight:600;text-decoration:none;white-space:nowrap;line-height:1.2}
.wfront:hover{background:#DDEFFC;text-decoration:none}
@media (max-width:480px){.wfront{padding:4px 9px;font-size:12px}}

/* ============================================================
   十九 · 菜单就地改名 / 拖动排序 / 加页面（2026-11-08 老板要求）
   ============================================================ */
/* 双击进入改名：白底描边，像个小输入框，一眼看出「正在改」 */
.gnav button.nav-editing,.mtabs button.nav-editing{
  outline:2px solid #1668A8;outline-offset:2px;background:#fff !important;color:#14372E !important;
  border-radius:8px;min-width:56px;text-align:center;cursor:text;
  box-shadow:0 2px 10px rgba(22,104,168,.16)}
.mtabs button.nav-editing{border-color:#1668A8}
/* 拖动中：整条半透明跟着走，落点实时换位 */
.gnav button.nav-dragging,.mtabs button.nav-dragging{
  opacity:.75;outline:2px dashed #1668A8;outline-offset:2px;border-radius:8px;
  background:#EDF7FF !important;color:#1668A8 !important;cursor:grabbing;z-index:3}
body.nav-dragbody{cursor:grabbing !important;user-select:none;-webkit-user-select:none}
.gnav button,.mtabs button{touch-action:pan-y}
/* 二级行尾「＋」：往这一组再放一个页面 */
.mtabs .navadd{flex:0 0 auto;width:26px;height:26px;padding:0 !important;border-radius:8px !important;
  border:1px dashed #C9D8E6 !important;background:#F7FBFE !important;color:#7C9BB5 !important;
  font-size:15px;line-height:1;font-weight:400;display:inline-flex;align-items:center;justify-content:center}
.mtabs .navadd:hover{border-color:#1668A8 !important;color:#1668A8 !important;background:#EDF7FF !important}
@media (max-width:700px){.mtabs .navadd{width:24px;height:24px;font-size:14px}}

/* 二十、导航排版页：↑↓/显示/✕ 这些小按钮不许被输入框挤扁（2026-11-08） */
#navEd button{flex:0 0 auto;min-width:32px;padding:5px 8px;white-space:nowrap}
#navEd input{flex:1 1 auto;min-width:0}
#navEd > div > div{flex-wrap:nowrap}
@media (max-width:760px){
  #navEd button{min-width:28px;padding:4px 6px;font-size:12px}
}

/* ============================================================
   二十一 · 后台常驻「前台导航」条（2026-11-08 老板要求）
   老板原话：「刚才给你提的就是在后台能把我圈出来的这个前台的导航栏一直保留着」。
   它钉在 .adstick 里（整块是 fixed 的），所以滚到哪一页都在；
   点一下在新窗口打开前台对应页，后台这边不跳走。
   ============================================================ */
.adfn{display:flex;align-items:center;gap:5px;flex-wrap:wrap;
  margin:9px 18px 0;padding:6px 8px;background:#F6F2E9;
  border:1px solid #E9E1D2;border-radius:10px}
.adfn .adfn-t{flex:0 0 auto;font-size:11px;font-weight:700;color:#8A6A3E;background:#EFE7D6;
  border-radius:6px;padding:3px 8px;letter-spacing:.02em;white-space:nowrap}
.adfn a{flex:0 0 auto;font-size:12.5px;color:#3B3831;text-decoration:none;
  padding:4px 10px;border-radius:7px;border:1px solid transparent;white-space:nowrap;line-height:1.3}
.adfn a:hover{background:#fff;border-color:#E2D8C4;color:#14372E;text-decoration:none}
.adfn a.adfn-x{margin-left:auto;color:#1668A8;background:#EDF7FF;border-color:#CFE3F5;font-weight:600}
.adfn a.adfn-x:hover{background:#DDEFFC}
@media (max-width:560px){
  .adfn{margin:8px 12px 0;gap:3px;padding:5px 6px}
  .adfn a{padding:3px 8px;font-size:12px}
  .adfn .adfn-t{font-size:10.5px;padding:2px 6px}
}

/* 二十二 · 「跳到他的资料」弹层（点手机号弹出来） */
.jnb{display:block;width:100%;text-align:left;background:#fff;border:1px solid #E9E1D2;
  border-radius:10px;padding:9px 12px;margin-bottom:8px;cursor:pointer;font-family:inherit}
.jnb:hover{background:#FBF7EE;border-color:#D8C9A8}
.jnb b{display:block;font-size:13.5px;color:#14372E;font-weight:600}
.jnb i{display:block;font-style:normal;font-size:11.5px;color:#8E887E;margin-top:2px}

/* 二十三 · 授权页「搜人」结果卡 */
#stHits .btn.sm{padding:5px 12px;font-size:12px}

/* ==========================================================================
   二十四 · 后台常驻「前台导航」条（2026-11-08 第八轮 · core.js: updateFrontNav）
   ⭐ 老板第二遍追问「刷新几次、重新开也不存在」→ 这次挂在 body 上，和后台重绘彻底解耦。
   只在 #/admin 存在（html.mcfn-on），前台一个字都不影响。
   ========================================================================== */
#mcFrontNav{position:fixed;top:0;left:0;right:0;z-index:70;display:flex;align-items:center;gap:6px;
  height:38px;padding:0 16px;background:#14372E;color:#fff;font-size:12.5px;
  box-shadow:0 2px 10px -4px rgba(0,0,0,.45);overflow-x:auto;overflow-y:hidden;
  white-space:nowrap;scrollbar-width:none;-ms-overflow-style:none;box-sizing:border-box}
#mcFrontNav::-webkit-scrollbar{display:none}
#mcFrontNav .mcfn-t{flex:0 0 auto;font-size:11px;font-weight:700;color:#8FBCA9;letter-spacing:.5px;margin-right:2px}
#mcFrontNav a{flex:0 0 auto;color:#EAF3EF;text-decoration:none;padding:4px 11px;border-radius:7px;
  background:rgba(255,255,255,.11);line-height:1.5;transition:background .15s}
#mcFrontNav a:hover{background:rgba(255,255,255,.24);color:#fff;text-decoration:none}
#mcFrontNav a.mcfn-x{margin-left:auto;background:#2E7059;font-weight:600}
#mcFrontNav a.mcfn-x:hover{background:#37896C}
/* 整页往下让 38px，后台钉死的头部也跟着让 —— 不然会盖住第一条 */
html.mcfn-on #app{padding-top:38px}
html.mcfn-on .adstick{top:38px}
@media (max-width:640px){
  #mcFrontNav{height:36px;padding:0 10px;font-size:12px;gap:4px}
  #mcFrontNav a{padding:3px 8px}
  html.mcfn-on #app{padding-top:36px}
  html.mcfn-on .adstick{top:36px}
}
