/* 充电桩管理后台 · 手机端样式 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f2f4f8;
  color: #1c2533;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------------- 登录 ---------------- */
.m-login {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #0b3d91 0%, #1565c0 60%, #1e88e5 100%);
  padding: 24px;
}
.m-login-card {
  width: 100%; max-width: 360px;
  background: #fff; border-radius: 18px;
  padding: 34px 26px; text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.m-login-logo {
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 16px; background: linear-gradient(135deg,#0b3d91,#1e88e5);
  color: #fff; font-weight: 800; font-size: 26px;
  display: flex; align-items: center; justify-content: center; letter-spacing: 1px;
}
.m-login-title { font-size: 20px; font-weight: 700; }
.m-login-sub { color: #8a93a6; font-size: 13px; margin-bottom: 22px; }
.m-input {
  width: 100%; height: 46px; margin-bottom: 12px;
  border: 1px solid #e2e6ee; border-radius: 12px;
  padding: 0 14px; font-size: 15px; outline: none;
  background: #f7f9fc; transition: border-color .15s, background .15s;
}
.m-input:focus { border-color: #1e88e5; background: #fff; }
.m-btn {
  width: 100%; height: 46px; border-radius: 12px; font-size: 16px; font-weight: 600;
}
.m-btn-primary { background: linear-gradient(135deg,#0b3d91,#1e88e5); color: #fff; }
.m-btn-primary:active { opacity: .9; }
.m-login-msg { margin-top: 14px; font-size: 13px; color: #e5484d; min-height: 18px; }

/* ---------------- 应用骨架 ---------------- */
.m-app { display: flex; flex-direction: column; min-height: 100vh; }
.m-topbar {
  position: sticky; top: 0; z-index: 10;
  min-height: 50px; padding: calc(env(safe-area-inset-top) + 9px) 14px 9px;
  display: flex; align-items: flex-start; justify-content: space-between;
  background: #0b3d91; color: #fff;
}
.m-topbar-title { font-size: 17px; font-weight: 700; line-height: 38px; margin: 0; flex: 1; text-align: center; }
.m-topbar-actions { display: flex; gap: 6px; align-self: flex-start; }
.m-iconbtn {
  width: 38px; height: 38px; border-radius: 10px; color: #fff; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.m-iconbtn:active { background: rgba(255,255,255,.18); }
.m-back { font-size: 30px; font-weight: 700; width: 34px; margin-right: 2px; align-self: flex-start; }

/* 表单 */
.m-field { margin-top: 12px; }
.m-field label { display: block; font-size: 12px; color: #8a93a6; margin-bottom: 5px; }
.m-field input, .m-field select {
  width: 100%; height: 44px; border: 1px solid #e2e6ee; border-radius: 10px;
  padding: 0 12px; font-size: 15px; background: #f7f9fc; outline: none;
}
.m-field input:focus, .m-field select:focus { border-color: #1e88e5; background: #fff; }
.m-chips { display: flex; gap: 8px; margin-top: 12px; }
.m-chip {
  flex: 1; height: 42px; border-radius: 10px; border: 1px solid #e2e6ee;
  background: #f7f9fc; font-size: 14px; font-weight: 600; color: #5a6478;
}
.m-chip.active { background: #0b3d91; color: #fff; border-color: #0b3d91; }
.m-sep { height: 1px; background: #f0f2f6; margin: 14px 0 4px; }
.m-note { font-size: 12px; color: #aab2c2; margin-top: 8px; }

/* 详情页 */
.m-detail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.m-detail-head .big { font-size: 22px; font-weight: 800; color: #0b3d91; }
.m-kv { display: flex; padding: 9px 0; border-bottom: 1px solid #f0f2f6; font-size: 14px; }
.m-kv:last-child { border-bottom: none; }
.m-kv .k { color: #8a93a6; width: 110px; flex-shrink: 0; }
.m-kv .v { color: #1c2533; flex: 1; word-break: break-all; }
.m-actions { display: flex; gap: 10px; margin-top: 6px; }
.m-actions .m-btn { flex: 1; }
.m-btn-ok { background: #1f9d55; color: #fff; }
.m-btn-no { background: #e5484d; color: #fff; }
.m-actions .m-btn:disabled { opacity: .5; }

.m-content {
  flex: 1; padding: 14px 14px 84px;
  max-width: 720px; width: 100%; margin: 0 auto;
}
.m-loading { text-align: center; color: #8a93a6; padding: 40px 0; }

/* ---------------- 卡片 ---------------- */
.m-card {
  background: #fff; border-radius: 14px; padding: 16px;
  margin-bottom: 14px; box-shadow: 0 2px 10px rgba(20,40,80,.05);
}
.m-card-title { font-size: 14px; font-weight: 700; color: #5a6478; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.m-card-title .m-sub { font-size: 12px; font-weight: 400; color: #aab2c2; }

/* 概览数字网格 */
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-stat {
  background: #fff; border-radius: 14px; padding: 14px;
  box-shadow: 0 2px 10px rgba(20,40,80,.05);
}
.m-stat .v { font-size: 24px; font-weight: 800; color: #0b3d91; line-height: 1.2; }
.m-stat .v small { font-size: 13px; font-weight: 600; color: #8a93a6; }
.m-stat .k { font-size: 12px; color: #8a93a6; margin-top: 4px; }
.m-stat.accent .v { color: #1e88e5; }
.m-stat.green .v { color: #1f9d55; }
.m-stat.orange .v { color: #e8830c; }

/* 列表项 */
.m-list { display: flex; flex-direction: column; gap: 12px; }
.m-item {
  background: #fff; border-radius: 14px; padding: 14px;
  box-shadow: 0 2px 10px rgba(20,40,80,.05);
}
.m-item-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.m-item-main { min-width: 0; flex: 1; }
.m-item-title { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-item-sub { font-size: 12px; color: #8a93a6; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-item-meta { font-size: 13px; color: #5a6478; margin-top: 6px; }
.m-item-right { text-align: right; flex-shrink: 0; }
.m-item-right .big { font-size: 16px; font-weight: 800; color: #0b3d91; }

/* 徽标 */
.m-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.m-badge.green { background: #e6f7ed; color: #1f9d55; }
.m-badge.blue { background: #e6f1ff; color: #1e88e5; }
.m-badge.gray { background: #eef1f6; color: #8a93a6; }
.m-badge.orange { background: #fff2e0; color: #e8830c; }
.m-badge.red { background: #fdeaea; color: #e5484d; }
.m-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.m-dot.green { background: #1f9d55; }
.m-dot.blue { background: #1e88e5; }
.m-dot.gray { background: #b6bdcc; }
.m-dot.orange { background: #e8830c; }
.m-dot.red { background: #e5484d; }

/* 搜索框 */
.m-search { display: flex; gap: 8px; margin-bottom: 14px; }
.m-search input {
  flex: 1; height: 42px; border: 1px solid #e2e6ee; border-radius: 12px;
  padding: 0 14px; font-size: 15px; background: #fff; outline: none;
}
.m-search input:focus { border-color: #1e88e5; }
.m-search button {
  width: 56px; border-radius: 12px; background: #0b3d91; color: #fff; font-size: 14px; font-weight: 600;
}

/* 空状态 */
.m-empty { text-align: center; color: #aab2c2; padding: 50px 0; font-size: 14px; }
.m-error { text-align: center; color: #e5484d; padding: 40px 0; font-size: 14px; }

/* 加载更多 */
.m-more { display: block; width: 100%; height: 44px; margin: 6px 0 16px; border-radius: 12px; background: #eef1f6; color: #5a6478; font-weight: 600; }
.m-more:disabled { opacity: .5; }

/* ---------------- 底部 Tab ---------------- */
.m-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: 58px; padding-bottom: env(safe-area-inset-bottom);
  display: flex; background: #fff; border-top: 1px solid #e6e9f0;
  box-shadow: 0 -2px 12px rgba(20,40,80,.06);
}
.m-tab {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: #9aa3b5; font-size: 10px; font-weight: 600;
  white-space: nowrap; overflow: hidden;
}
.m-tab .m-tab-ico { font-size: 18px; line-height: 1; }
.m-tab.active { color: #0b3d91; }

/* ---------------- Toast ---------------- */
.m-toast {
  position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%) translateY(20px);
  background: rgba(28,37,51,.92); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 50; max-width: 80%;
  text-align: center;
}
.m-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* ---------------- 用户邮箱链接 / 个人充电订单 ---------------- */
/* 订单卡片里的邮箱: 点击下钻(个人订单 → 账户管理) */
.m-link-user {
  color: #1e88e5; text-decoration: none;
  border-bottom: 1px dashed rgba(30, 136, 229, .45); padding-bottom: 1px;
}
.m-link-user:active { opacity: .65; }
.m-item-sub .m-link-user { font-weight: 600; }
/* 个人订单页头部: 邮箱 + UID */
.m-uo-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.m-uo-email {
  font-size: 17px; font-weight: 800; color: #0b3d91;
  border-bottom-color: rgba(11, 61, 145, .35);
  word-break: break-all;
}
/* ------------- 充电设备筛选(点订单卡片上的桩号) ------------- */
/* 桩号链接: 与用户邮箱链接(.m-link-user)区分, 用青绿色 */
.m-link-dev { color: #00897b; text-decoration: none; font-weight: 800; }
.m-link-dev:active { opacity: .6; }
/* 「只看设备 XXX ×」横条 */
.m-cpbar {
  display: flex; align-items: center; gap: 6px;
  margin: 0 12px 8px; padding: 7px 10px;
  background: #e6f7f4; border: 1px solid #b2dfd8; border-radius: 10px;
  font-size: 13px; color: #00695c;
}
.m-cpbar b { font-weight: 800; }
.m-cpbar-k { color: #78909c; font-size: 12px; }
.m-cpbar-x {
  margin-left: auto; padding: 3px 10px;
  border: 1px solid #00897b; border-radius: 999px;
  background: #fff; color: #00897b; font-size: 12px; font-weight: 700;
}
.m-cpbar-x:active { background: #00897b; color: #fff; }
/* ------------- 充电桩实时输出功率(按枪口) ------------- */
/* 列表卡片里的一行: 输出 [枪口1 7.4 kW] [枪口2 0.0 kW] */
.m-pile-per { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.m-pile-per-k { font-size: 12px; color: #8a93a6; }
.m-pc {
  display: inline-flex; align-items: baseline; gap: 5px;
  font-size: 12px; background: #eef1f6; border-radius: 8px; padding: 3px 8px;
  color: #8a93a6;
}
.m-pc-n { font-size: 11.5px; }
.m-pc-v { font-weight: 700; }
/* 正在充电的枪口: 蓝色高亮, 一眼能看出哪个枪口在出力 */
.m-pc.on { background: #e6f1ff; color: #0b3d91; }
.m-pc.on .m-pc-n { color: #1e88e5; }
.m-pc.on .m-pc-v { font-size: 13.5px; font-weight: 800; }
/* 在充车辆的 SOC: 同一 chip 内与功率并列, 用青色区分, 功率/电量一眼分得清 */
.m-pc-soc {
  display: inline-flex; align-items: baseline; gap: 3px;
  padding-left: 6px; border-left: 1px solid rgba(11, 61, 145, 0.18);
  font-weight: 700; color: #00695c; white-space: nowrap;
}
.m-pc-soc em { font-style: normal; font-size: 10px; font-weight: 600; color: #4f7f78; letter-spacing: .2px; }

/* 详情页枪口明细 */
.m-conn { padding: 10px 0; border-top: 1px solid #eef1f6; }
.m-conn:first-of-type { border-top: none; padding-top: 2px; }
.m-conn-head { display: flex; align-items: center; gap: 8px; }
.m-conn-name { font-size: 14px; font-weight: 700; color: #2b3446; flex: 1; }
.m-conn-kw { font-size: 16px; font-weight: 800; color: #0b3d91; white-space: nowrap; }
.m-conn-kw small { font-size: 11px; font-weight: 600; color: #5a6478; margin-left: 2px; }
.m-conn-kw.muted { color: #aab2c2; font-weight: 600; }

/* ---------------- 充电桩卡片：下拉菜单（设置位置 / 上线·下线） ---------------- */
/* 点卡片就地展开；一次只开一个，卡片自身给一点点浮起反馈 */
.m-pile { transition: box-shadow .18s; }
.m-pile.open { box-shadow: 0 8px 24px rgba(20,40,80,.12); }
/* 徽标 + 展开箭头并排，别让箭头掉到第二行 */
.m-pile .m-item-right { display: flex; align-items: center; gap: 6px; }
.m-chev {
  display: inline-block; font-size: 13px; line-height: 1;
  color: #aab2c2; transition: transform .18s, color .18s;
}
.m-pile.open .m-chev { transform: rotate(180deg); color: #1e88e5; }

.m-pile-panel { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e6e9f0; }
.m-panel-acts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.m-pact {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 4px; border-radius: 10px;
  border: 1px solid #e2e6ee; background: #f7f9fc;
  font-size: 13px; font-weight: 600; color: #2b3446;
}
.m-pact b { font-style: normal; font-size: 16px; line-height: 1; }
.m-pact:active { background: #eef1f6; }
.m-pact.warn { border-color: #fecdca; background: #fef3f2; color: #b42318; }
.m-pact:disabled { opacity: .45; }

/* 菜单展开后的子表单：与 .m-field 同风格，浅底分块 */
.m-psub {
  margin-top: 12px; padding: 12px; border-radius: 12px;
  background: #f7f9fc; border: 1px solid #eef1f6;
}
.m-psub .m-field { margin: 0 0 10px; }
.m-psub .m-field:last-of-type { margin-bottom: 0; }
.m-psub .m-actions { margin-top: 10px; }
.m-psub .m-note { margin: 0 0 10px; line-height: 1.55; }
.m-psub .m-note b { color: #b42318; }

/* ---------------- 推送消息(客户详情 → 快捷操作) ---------------- */
/* 4 个快捷操作排成两行两列, 免得挤成一排字都看不清 */
.m-actions.m-actions-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-actions-4 .m-btn { width: 100%; }
.m-btn-push { background: linear-gradient(135deg, #00695c, #00897b); color: #fff; }
.m-btn-push:active { opacity: .9; }
.m-btn-ghost { background: #eef1f6; color: #5a6478; }

/* 底部弹层 */
.m-sheet-mask {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(12, 20, 33, .45);
  display: flex; align-items: flex-end; justify-content: center;
}
.m-sheet {
  width: 100%; max-width: 720px; max-height: 88vh;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 30px rgba(12, 20, 33, .18);
  animation: m-sheet-in .22s ease-out;
}
@keyframes m-sheet-in { from { transform: translateY(26px); opacity: .5; } to { transform: none; opacity: 1; } }
.m-sheet-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px 10px; border-bottom: 1px solid #eef1f6;
}
.m-sheet-title { flex: 1; font-size: 16px; font-weight: 800; color: #1c2533; }
.m-sheet-x { width: 30px; height: 30px; border-radius: 50%; font-size: 21px; line-height: 1; color: #8a93a6; }
.m-sheet-x:active { background: #eef1f6; }
.m-sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 16px 4px; }
.m-sheet-foot {
  display: flex; gap: 10px;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #eef1f6;
}
.m-sheet-foot .m-btn { flex: 1; }

/* 收件人(固定为当前客户) */
.m-recv {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: 10px;
  background: #f2f7ff; border: 1px solid #d6e4fb;
}
.m-recv-k { font-size: 11.5px; color: #78909c; }
.m-recv-v { font-size: 14.5px; font-weight: 800; color: #0b3d91; word-break: break-all; }
.m-recv-u { font-size: 11.5px; color: #8a93a6; word-break: break-all; }

/* 字段标签 + 右侧字节计数 */
.m-sheet-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin: 14px 0 6px; font-size: 12px; color: #8a93a6;
}
.m-cnt { font-variant-numeric: tabular-nums; color: #aab2c2; }
.m-cnt.warn { color: #b45309; font-weight: 700; }
.m-cnt.over { color: #e5484d; font-weight: 800; }
.m-sheet-input, .m-sheet-ta {
  width: 100%; padding: 10px 12px; font-size: 14px; font-family: inherit;
  border: 1px solid #e2e6ee; border-radius: 10px;
  background: #f7f9fc; outline: none; color: #1c2533;
}
.m-sheet-ta { resize: vertical; line-height: 1.5; }
.m-sheet-input:focus, .m-sheet-ta:focus { border-color: #1e88e5; background: #fff; }

/* 模板卡片: 两列 */
.m-tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-tpl {
  text-align: left; padding: 8px 10px; border-radius: 10px;
  border: 1px solid #e2e6ee; background: #fff;
}
.m-tpl.on { border-color: #1e88e5; background: #eff6ff; box-shadow: inset 0 0 0 1px #1e88e5; }
.m-tpl-name { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: #1c2533; }
.m-tpl-tag { font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 999px; white-space: nowrap; }
.m-tpl-tag.msg { background: #eef2ff; color: #4338ca; }
.m-tpl-tag.notif { background: #ecfdf5; color: #047857; }
.m-tpl-pv {
  margin-top: 4px; font-size: 11px; line-height: 1.45; color: #8a93a6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 渠道切换 */
.m-sheet-chips { display: flex; gap: 8px; }
.m-sheet-chips .m-chip { height: 40px; font-size: 13.5px; border-radius: 10px; }
.m-sheet-msg { min-height: 16px; margin-top: 10px; font-size: 12.5px; color: #e5484d; }

/* 订单详情 → OCPP 记录 */
.m-ocpp-hint { font-size: 12px; line-height: 1.6; color: #8a93a6; margin-bottom: 10px; }
.m-ocpp-tz { font-size: 12px; line-height: 1.6; color: #8a93a6; margin-top: 8px; }
.m-ocpp-empty {
  font-size: 13px; line-height: 1.6; color: #b45309;
  background: #fffbeb; border: 1px solid #fcd34d; border-radius: 12px; padding: 10px 12px;
}
.m-ocpp-item {
  border: 1px solid #eef1f6; border-radius: 12px; padding: 10px 12px;
  margin-bottom: 10px; background: #fbfcfe;
}
.m-ocpp-item:last-child { margin-bottom: 0; }
.m-ocpp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.m-ocpp-msg { font-size: 13.5px; font-weight: 700; color: #0b3d91; }
.m-ocpp-time { font-size: 12px; color: #8a93a6; }
.m-ocpp-err {
  font-size: 11px; color: #b42318; background: #fef3f2;
  border: 1px solid #fecdca; border-radius: 6px; padding: 1px 6px;
}
.m-ocpp-body {
  margin: 0; padding: 8px; max-height: 220px; overflow: auto;
  font-size: 11.5px; line-height: 1.55; color: #374151;
  background: #fff; border: 1px solid #eef1f6; border-radius: 8px;
  white-space: pre-wrap; word-break: break-all;
  -webkit-overflow-scrolling: touch;
}

/* ---------------- 工作管理（上班/下班打卡） ---------------- */
.m-punch { padding: 18px 16px 16px; }
.m-punch-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.m-punch-name { font-size: 17px; font-weight: 800; color: #0b3d91; }
.m-punch-date { font-size: 12px; color: #8a93a6; margin-top: 3px; }
.m-punch-times {
  display: flex; align-items: center; justify-content: space-between;
  margin: 16px 0 6px; padding: 14px 10px; border-radius: 12px; background: #f7f9fc;
}
.m-punch-t { flex: 1; text-align: center; }
.m-punch-t span { display: block; font-size: 11px; color: #8a93a6; margin-bottom: 4px; }
.m-punch-t b { font-size: 22px; font-weight: 800; color: #1c2533; font-variant-numeric: tabular-nums; }
.m-punch-arrow { color: #c3cad8; font-size: 16px; padding: 0 4px; }
.m-punch-dur { text-align: center; font-size: 13px; color: #5a6478; margin-bottom: 14px; }
.m-punch-note { display: block; margin-top: 4px; font-size: 12px; color: #b45309; font-weight: 600; }
.m-punch-last { margin: -6px 0 12px; text-align: center; font-size: 12px; color: #8a93a6; }
.m-punch-day { text-align: center; font-size: 12px; font-weight: 600; color: #0b3d91;
  background: #eef4ff; border-radius: 8px; padding: 6px 8px; margin: -6px 0 12px; }
.m-btn-out { background: linear-gradient(135deg,#b45309,#f59e0b); color: #fff; }

/* 跨天未下班提醒 */
.m-warn { background: #fff8eb; border: 1px solid #ffe0b2; box-shadow: none; }
.m-warn-title { font-size: 14px; font-weight: 700; color: #b45309; margin-bottom: 6px; }
.m-warn-body { font-size: 12.5px; color: #8a6a3a; line-height: 1.6; margin-bottom: 12px; }

/* 打卡记录列表 */
.m-att { display: flex; flex-direction: column; }
.m-att-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #f0f2f6; font-size: 13px;
}
.m-att-row:last-child { border-bottom: none; }
.m-att-date { width: 62px; flex-shrink: 0; font-weight: 700; color: #1c2533; font-variant-numeric: tabular-nums; }
.m-att-date span { display: block; font-size: 11px; font-weight: 400; color: #aab2c2; }
.m-att-time { flex: 1; color: #5a6478; font-variant-numeric: tabular-nums; }
.m-att-dur { width: 76px; text-align: right; color: #0b3d91; font-weight: 600; font-variant-numeric: tabular-nums; }
.m-att-row .m-badge { flex-shrink: 0; }
/* 一天多段：按天分组，组头给段数与合计 */
.m-att-day { border-bottom: 1px solid #f0f2f6; padding: 8px 0 4px; }
.m-att-day:last-child { border-bottom: none; }
.m-att-dayhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 0 4px; }
.m-att-daySum { font-size: 12px; color: #8a93a6; font-variant-numeric: tabular-nums; }
.m-att-seg { width: 46px; flex-shrink: 0; font-size: 11px; color: #8a93a6; }
.m-att-day .m-att-row { padding: 8px 0; border-bottom: 1px dashed #f4f6fa; }
.m-att-day .m-att-row:last-child { border-bottom: none; }

/* ============ 待办事项 ============ */
.m-todo-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.m-todo-sum { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* 用独立类名，避免和充电桩筛选的 .m-chip（flex:1 + height:42px）撞车 */
.m-tchip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 22px; padding: 0 9px; box-sizing: border-box;
  border-radius: 999px; border: none;
  font-size: 11px; line-height: 1; white-space: nowrap; flex: 0 0 auto;
  background: #eef2ff; color: #3b4a7a; font-variant-numeric: tabular-nums;
}
.m-tchip.pending { background: #e8f1ff; color: #0b5cd5; }
.m-tchip.done { background: #e9f8ee; color: #1a7f45; }
.m-tchip.overdue { background: #fdecec; color: #c0362c; }

.m-todo { display: flex; flex-direction: column; }
.m-todo-row { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f2f6; }
.m-todo-row:last-child { border-bottom: none; }
.m-todo-main { flex: 1; min-width: 0; }
.m-todo-title { font-size: 14px; font-weight: 600; color: #1c2533; line-height: 1.45; word-break: break-word; }
.m-todo-row.done .m-todo-title { color: #98a2b3; text-decoration: line-through; }
.m-todo-body { font-size: 12.5px; color: #5a6478; margin-top: 4px; line-height: 1.55; word-break: break-word; }
.m-todo-meta { font-size: 11.5px; color: #aab2c2; margin-top: 5px; display: flex; gap: 8px; flex-wrap: wrap; }
.m-todo-meta .due-late { color: #c0362c; font-weight: 600; }
.m-todo-meta .mine { color: #0b3d91; font-weight: 600; }
.m-todo-hint { font-size: 11.5px; color: #8a93a6; margin: -4px 0 10px; line-height: 1.5; }
.m-todo-remark {
  margin-top: 7px; font-size: 12.5px; color: #3f4a5c; background: #f6f8fb;
  border-left: 3px solid #c8d4ea; padding: 7px 10px; border-radius: 0 6px 6px 0; line-height: 1.55;
  word-break: break-word;
}
.m-todo-acts { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.m-linkbtn {
  background: none; border: none; padding: 0; font-size: 12px; color: #0b5cd5;
  font-family: inherit; cursor: pointer;
}
.m-linkbtn.danger { color: #c0362c; }
.m-todo-check {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; border-radius: 50%;
  border: 2px solid #c3cad8; background: #fff; color: transparent;
  font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.m-todo-check.on { background: #1a7f45; border-color: #1a7f45; color: #fff; }
.m-todo-check:disabled { opacity: .5; }

.m-editor { margin-top: 8px; }
.m-editor textarea, .m-input-line {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: 13px;
  border: 1px solid #d7dde9; border-radius: 8px; padding: 9px 10px; color: #1c2533;
  background: #fff; resize: vertical;
}
.m-editor textarea { min-height: 68px; line-height: 1.5; }
.m-editor-acts { display: flex; gap: 8px; margin-top: 8px; }
.m-btn-sm {
  font-family: inherit; font-size: 13px; padding: 7px 14px; border-radius: 8px;
  border: 1px solid #d7dde9; background: #fff; color: #3f4a5c; cursor: pointer;
}
.m-btn-sm.primary { background: #0b3d91; border-color: #0b3d91; color: #fff; }
.m-btn-sm.danger { background: #fff; border-color: #f0c2be; color: #c0362c; }
.m-btn-sm:disabled { opacity: .55; }

.m-todo-new { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }

/* ============ 同事留言 ============ */
.m-note { display: flex; flex-direction: column; }
.m-note-row {
  display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f0f2f6;
  cursor: pointer; align-items: flex-start;
}
.m-note-row:last-child { border-bottom: none; }
.m-note-ava {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: #0b3d91;
  color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.m-note-main { flex: 1; min-width: 0; }
.m-note-top { display: flex; align-items: center; gap: 6px; }
.m-note-name { font-size: 14px; font-weight: 600; color: #1c2533; }
.m-note-time { margin-left: auto; font-size: 11px; color: #aab2c2; flex-shrink: 0; }
.m-note-last {
  font-size: 12.5px; color: #8a93a6; margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.m-note-last.unread { color: #1c2533; font-weight: 500; }
.m-dot-unread {
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: #e5484d;
  color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center;
  justify-content: center; box-sizing: border-box;
}

/* 对话页 */
.m-thread { display: flex; flex-direction: column; gap: 10px; padding-bottom: 6px; }
.m-bubble-wrap { display: flex; flex-direction: column; max-width: 82%; }
.m-bubble-wrap.me { align-self: flex-end; align-items: flex-end; }
.m-bubble {
  padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.55;
  background: #fff; color: #1c2533; border: 1px solid #e8ebf2; word-break: break-word; white-space: pre-wrap;
}
.m-bubble-wrap.me .m-bubble { background: #0b3d91; color: #fff; border-color: #0b3d91; }
.m-bubble-meta { font-size: 11px; color: #aab2c2; margin-top: 4px; }
.m-thread-foot {
  position: sticky; bottom: 0; background: #f4f6fa; padding: 10px 0 2px; margin-top: 4px;
  display: flex; gap: 8px; align-items: flex-end;
}
.m-thread-foot textarea {
  flex: 1; min-height: 40px; max-height: 110px; font-family: inherit; font-size: 14px;
  border: 1px solid #d7dde9; border-radius: 10px; padding: 9px 11px; resize: none; line-height: 1.4;
  box-sizing: border-box;
}
.m-thread-foot .m-btn-sm { flex-shrink: 0; padding: 10px 16px; }

/* 选人 */
.m-pick { display: flex; flex-direction: column; }
.m-pick-row {
  display: flex; align-items: center; gap: 10px; padding: 13px 0;
  border-bottom: 1px solid #f0f2f6; cursor: pointer; font-size: 14px; color: #1c2533;
}
.m-pick-row:last-child { border-bottom: none; }
.m-pick-role { margin-left: auto; font-size: 11.5px; color: #aab2c2; }

/* ---------- 概览：Stripe 实时卡 + 奇数末位铺满（2026-11-27） ---------- */
.m-stat.purple .v { color: #635bff; }
.m-grid-fill > .m-stat:nth-child(odd):last-child { grid-column: 1 / -1; }
.m-hint { font-size: 12px; color: #8a93a6; line-height: 1.6; margin-top: 10px; }

/* ---------- 订单卡：支付方式小标签（2026-11-27） ---------- */
.m-paytag { display: inline-block; padding: 1px 6px; border-radius: 6px; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.m-paytag.p-stripe { background: #eceaff; color: #635bff; }
.m-paytag.p-wallet { background: #e6f1ff; color: #1e88e5; }

/* 长单号不再把卡片撑出屏幕（2026-11-27） */
.m-item-meta { overflow-wrap: anywhere; }

/* ---------- Stripe 收款明细（概览卡片下钻）2026-11-27 ---------- */
.m-stat[data-act] { cursor: pointer; }
.m-stripe-net { font-size: 30px; font-weight: 800; color: #635bff; line-height: 1.15; margin: 2px 0 14px; }
.m-stripe-net span { font-size: 12px; font-weight: 600; color: #8a93a6; margin-left: 8px; }
.m-spchips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.m-spchip {
  border: 1px solid #e6eaf2; background: #fff; color: #5a6478; border-radius: 999px;
  padding: 6px 12px; font-size: 12.5px; font-family: inherit;
  display: inline-flex; align-items: center; gap: 5px;
}
.m-spchip small { color: #aab2c2; font-weight: 700; }
.m-spchip.active { background: #eeecff; border-color: #c9c4ff; color: #635bff; }
.m-spchip.active small { color: #635bff; }
.m-sp-order { color: #5a6478; }
.m-sp-refund { color: #e8830c; }
.m-sp-links { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.m-spa { color: #1e88e5; font-weight: 600; text-decoration: none; font-size: 12px; }
.m-sp-links span { font-size: 12px; color: #8a93a6; }

/* 无邮箱账号：订单卡片用手机号顶替用户标识（不可点，但要和可点邮箱有相近的视觉权重）2026-11-28 */
.m-item-sub .m-user-phone { color: #4b5563; font-weight: 600; letter-spacing: .2px; }
