/* ============================================================
   StoreOS 工作中心 · 移动端 APP 壳（手机原生体验）
   底部 Tab 导航 + 卡片流页面；桌面端不受影响
   ============================================================ */

/* 移动模式下隐藏桌面元素 */
body.mobile-app .sidebar { display: none !important; }
body.mobile-app .topbar { display: none !important; }
body.mobile-app .nav-flyout { display: none !important; }
body.mobile-app .content { padding: 8px 14px calc(86px + env(safe-area-inset-bottom, 0px)); }
body.mobile-app {
  background:
    radial-gradient(120% 40% at 50% -10%, #fdf1e4 0%, rgba(253, 241, 228, 0) 60%),
    var(--bg);
}

/* 顶部手机标题栏 */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 60;
  height: 50px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
body.mobile-app .mobile-header { display: flex; }
.mobile-back {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: none;
  background: #f1f4f9;
  border-radius: 11px;
  font-size: 20px;
  color: var(--text);
  line-height: 1;
  flex: none;
}
.mobile-back:active { transform: scale(.94); background: #e6eaf2; }
.mobile-title { font-size: 16px; font-weight: 700; color: #16213a; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-header-side { display: inline-flex; align-items: center; gap: 8px; }
/* v617：手机端版本号放顶部标题栏右侧（不再用右下浮动条压正文），10.5px 灰字不抢视线 */
.mobile-header-side .m-ver-tag { font-size: 10.5px; font-weight: 500; color: var(--text-3); letter-spacing: .2px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 底部 Tab 栏 */
.mobile-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(26, 41, 66, .06);
}
body.mobile-app .mobile-tabbar { display: flex; }
.mobile-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  background: transparent;
  color: #9aa7ba;
  font-size: 10.5px;
  font-weight: 500;
  padding: 0;
  transition: color .18s ease, transform .18s ease;
  position: relative;
}
.mobile-tab svg { width: 23px; height: 23px; }
.mobile-tab::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  width: 22px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffb37a, var(--brand));
  opacity: 0;
  transform: translateX(-50%) scaleX(.4);
  transition: opacity .2s ease, transform .2s ease;
}
.mobile-tab.active { color: var(--brand); font-weight: 650; }
.mobile-tab.active::before { opacity: 1; transform: translateX(-50%) scaleX(1); }
.mobile-tab.active svg { stroke-width: 2.1; }
.mobile-tab:active { transform: scale(.95); }
.mobile-tab.hidden { display: none; }

/* ============ 个人工作中心（v184，员工端） ============ */
.m-alert {
  border-radius: 12px; padding: 10px 14px; font-size: 12.5px; font-weight: 650;
  display: flex; align-items: center; gap: 8px;
}
.m-alert.warn { background: #fff4e6; color: #c77700; }
.m-alert.info { background: var(--blue-light); color: #0b6fd4; }
.m-staff-segs { display: flex; flex-direction: column; gap: 8px; }
.m-staff-seg {
  display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px;
  color: var(--text-3);
}
.m-staff-seg > span:first-child { flex: none; width: 40px; }
.m-staff-seg-val { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.m-live { color: var(--brand); font-weight: 700; }
.m-msg-row {
  display: flex; align-items: center; gap: 8px; padding: 10px 2px;
  border-bottom: 1px solid #f2f4f8; cursor: pointer;
}
.m-msg-row:last-child { border-bottom: none; }
.m-msg-dot { width: 8px; height: 8px; border-radius: 50%; background: #d8dee9; flex: none; }
.m-msg-dot.on { background: var(--brand); }
.m-msg-title { flex: 1; min-width: 0; font-size: 13px; font-weight: 550; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-msg-row.unread .m-msg-title { font-weight: 700; }
.m-msg-time { font-size: 11px; color: var(--text-3); flex: none; }

/* 页面容器与卡片 */
.m-page { display: flex; flex-direction: column; gap: 14px; padding-bottom: 10px; }
.m-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(26, 41, 66, .04), 0 12px 30px -16px rgba(26, 41, 66, .16);
}
.m-card-title {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 750;
  color: #1c2840;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.m-card-more { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--brand); }
.m-empty { color: var(--text-3); font-size: 12.5px; text-align: center; padding: 22px 0; }
.m-loading { color: var(--text-3); font-size: 12.5px; text-align: center; padding: 12px 0; }

/* 首页问候 */
.m-greet { padding: 4px 2px 0; }
.m-greet-name { font-size: 22px; font-weight: 800; color: #16213a; letter-spacing: -.02em; }
.m-greet-date { font-size: 12px; color: var(--text-3); margin-top: 3px; }

/* 每日激励语（v189） */
.m-quote {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: linear-gradient(120deg, #fff6ec 0%, #fffbf4 100%);
  border: 1px solid #fbe3cd;
  border-radius: 16px;
  padding: 12px 14px;
}
.m-quote-mark {
  font-family: Georgia, "Songti SC", serif;
  font-size: 30px;
  line-height: 1;
  color: var(--brand);
  flex: none;
  margin-top: -2px;
}
.m-quote-body { min-width: 0; }
.m-quote-body p {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.65;
  color: #7a4a14;
  letter-spacing: .005em;
}
.m-quote-src { display: inline-block; margin-top: 5px; font-size: 11px; color: #c09a6b; }

/* 今日工作状态大卡（v189：值=排班时间，去掉工时） */
.m-hero-card {
  border-radius: 22px;
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(90% 70% at 92% -8%, rgba(232, 89, 12, .55) 0%, rgba(232, 89, 12, 0) 55%),
    linear-gradient(135deg, #16213a 0%, #1c2c4c 58%, #243a61 100%);
  box-shadow: 0 14px 34px -14px rgba(22, 33, 58, .5);
  position: relative;
  overflow: hidden;
}
.m-hero-card::before {
  content: '';
  position: absolute;
  left: -30px;
  top: -46px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 70%);
}
.m-hero-card::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 140, 0, .28), transparent 70%);
}
.m-hero-top { display: flex; align-items: center; justify-content: space-between; position: relative; }
.m-hero-label { font-size: 12px; color: #b6c2d6; font-weight: 600; letter-spacing: .02em; }
.m-hero-delta { font-size: 11px; font-weight: 650; padding: 1px 8px; border-radius: 99px; }
.m-hero-delta.up { color: #8ce0a8; background: rgba(47, 158, 68, .25); }
.m-hero-delta.down { color: #ff9a94; background: rgba(224, 49, 49, .25); }
.m-status-chip {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .14);
  color: #e7edf7;
  border: 1px solid rgba(255, 255, 255, .18);
}
.m-status-chip.ok { color: #a5f3bd; background: rgba(47, 158, 68, .28); border-color: rgba(47, 158, 68, .35); }
.m-status-chip.warn { color: #ffd28a; background: rgba(240, 140, 0, .28); border-color: rgba(240, 140, 0, .35); }
.m-status-chip.bad { color: #ffb3ad; background: rgba(224, 49, 49, .28); border-color: rgba(224, 49, 49, .35); }
.m-status-chip.info { color: #aed3ff; background: rgba(24, 144, 255, .28); border-color: rgba(24, 144, 255, .35); }
.m-status-chip.mute { color: #cdd6e4; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); }
.m-hero-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 10px 0 12px;
  font-variant-numeric: tabular-nums;
  color: #fff;
  position: relative;
  line-height: 1.25;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .18);
}
.m-hero-value.shift {
  font-size: 24px;
  letter-spacing: 0;
  color: #ffc99a;
  font-weight: 750;
}
.m-hero-value.empty { font-size: 30px; color: #fff; }
.m-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #c7d2e4;
  flex-wrap: wrap;
  position: relative;
}
.m-hero-meta i { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, .35); }

/* 指标卡网格 */
.m-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.m-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 16px;
  padding: 13px;
  box-shadow: 0 1px 2px rgba(26, 41, 66, .04), 0 8px 20px -14px rgba(26, 41, 66, .16);
}
.m-stat-ic {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex: none;
  background: #eef1f7;
  box-shadow: inset 0 0 0 1px rgba(26, 41, 66, .03);
}
.m-stat.brand .m-stat-ic { background: var(--brand-light); }
.m-stat.blue .m-stat-ic { background: var(--blue-light); }
.m-stat.green .m-stat-ic { background: var(--green-light); }
.m-stat.amber .m-stat-ic { background: #fff4e6; }
.m-stat.purple .m-stat-ic { background: #f0ecff; }
.m-stat.rose .m-stat-ic { background: #fceef2; }
.m-stat.teal .m-stat-ic { background: #e4f7f8; }
.m-stat-body { min-width: 0; }
.m-stat-label { font-size: 11px; color: var(--text-2); font-weight: 500; }
.m-stat-value { font-size: 17px; font-weight: 800; color: #16213a; font-variant-numeric: tabular-nums; margin-top: 2px; letter-spacing: -.01em; }
.m-stat-sub { font-size: 10px; color: var(--text-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 快捷入口 */
.m-entry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.m-quick-edit { border: 1px solid var(--line); background: #fff; color: var(--text-2); border-radius: 7px; font-size: 12px; padding: 3px 10px; }
.m-quick-edit.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.m-entry.editing { position: relative; }
.m-q-ops { display: flex; gap: 3px; margin-top: 4px; justify-content: center; }
.m-q-btn { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; color: var(--text-2); background: #fff; cursor: pointer; }
.m-q-btn.red { color: var(--red); border-color: #f5c2c2; }
.m-entry.q-dragging { position: relative; opacity: .92; transition: none; touch-action: none; z-index: 99; }
.m-entry.off { opacity: .38; filter: grayscale(1); }
.m-entry-add { display: flex; flex-direction: column; gap: 4px; align-items: stretch; justify-content: center; }
.m-entry-add select { font-size: 12px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; }
.m-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 6px 0;
  transition: transform .16s ease;
}
.m-entry-ic {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  background: #f1f4f9;
  box-shadow: inset 0 0 0 1px rgba(26, 41, 66, .03);
  transition: transform .16s ease;
}
.m-entry:active { transform: translateY(1px); }
.m-entry:active .m-entry-ic { transform: scale(.9); }
.m-entry-ic.brand { background: var(--brand-light); }
.m-entry-ic.blue { background: var(--blue-light); }
.m-entry-ic.purple { background: #f0ecff; }
.m-entry-ic.green { background: var(--green-light); }
.m-entry-label { font-size: 11.5px; color: var(--text-2); font-weight: 550; }

/* 排行/列表 */
.m-rank-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.m-rank-row + .m-rank-row { border-top: 1px solid #f2f4f8; }
.m-rank-no {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #f1f4f9;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-variant-numeric: tabular-nums;
}
.m-rank-no.top { background: var(--brand-light); color: var(--brand); }
.m-rank-name { font-size: 13px; font-weight: 600; color: #2b3445; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-rank-track { flex: 1; height: 6px; border-radius: 99px; background: #eef1f6; overflow: hidden; }
.m-rank-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffb37a, #e8590c); }
.m-rank-val { font-size: 13px; font-weight: 700; color: #16213a; font-variant-numeric: tabular-nums; }

.m-list { display: flex; flex-direction: column; }
.m-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: transparent;
  padding: 11px 2px;
  text-align: left;
  width: 100%;
  border-radius: 12px;
  transition: background .16s ease;
}
.m-row:active { background: #f4f6fa; }
.m-row + .m-row { border-top: 1px solid #f2f4f8; }
.m-row-ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex: none;
  background: #f1f4f9;
}
.m-row-ic.brand { background: var(--brand-light); }
.m-row-ic.blue { background: var(--blue-light); }
.m-row-ic.green { background: var(--green-light); }
.m-row-ic.purple { background: #f0ecff; }
.m-row-ic.amber { background: #fff4e6; }
.m-row-ic.teal { background: #e4f7f8; }
.m-row-ic.rose { background: #fceef2; }
.m-row-ic.slate { background: #edf0f6; }
.m-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-row-label { font-size: 14px; font-weight: 550; color: #2b3445; }
.m-row-sub { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.m-row-arrow { color: #b3bdcb; font-size: 18px; }

/* 支付占比 */
.m-pay-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.m-pay-row + .m-pay-row { border-top: 1px solid #f2f4f8; }
.m-pay-name { font-size: 12.5px; color: #3d4a5f; width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: none; }
.m-pay-track { flex: 1; height: 7px; border-radius: 99px; background: #eef1f6; overflow: hidden; }
.m-pay-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffb37a, #e8590c); }
.m-pay-val { font-size: 12.5px; font-weight: 650; color: #16213a; font-variant-numeric: tabular-nums; }

/* 考勤 mini */
.m-att-mini-row { display: flex; gap: 10px; font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
.m-att-mini-list { display: flex; flex-direction: column; }
.m-att-mini-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 13px; color: #2b3445; }
.m-att-mini-item + .m-att-mini-item { border-top: 1px solid #f4f6f9; }
.m-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.m-dot.on { background: #2f9e44; box-shadow: 0 0 0 3px var(--green-light); }
.m-dot.off { background: #c2cbd8; }
.m-att-mini-t { margin-left: auto; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* 门店列表（考勤 Tab） */
.m-store-list { display: flex; flex-direction: column; }

/* 用户卡（我的） */
.m-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(135deg, #16213a 0%, #223455 100%);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(22, 33, 58, .45);
}
.m-user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e8590c, #f08c00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 750;
  flex: none;
  box-shadow: 0 4px 12px rgba(232, 89, 12, .4);
}
.m-user-body { min-width: 0; }
.m-user-name { font-size: 18px; font-weight: 750; }
.m-user-role { font-size: 12px; color: #aeb9cc; margin-top: 3px; }

/* 按钮 */
.m-btn-primary {
  width: 100%;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #e8590c, #f08c00);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(232, 89, 12, .3);
  margin-top: 2px;
  transition: transform .16s ease, box-shadow .16s ease;
}
.m-btn-primary:active { transform: scale(.98); }
.m-btn-danger {
  width: 100%;
  border: 1px solid #f3c6c6;
  border-radius: 14px;
  background: #fff;
  color: #c92a2a;
  font-size: 15px;
  font-weight: 600;
  padding: 13px;
  margin-top: 2px;
}
.m-btn-danger:active { background: var(--red-light); }

@media (prefers-reduced-motion: reduce) {
  .mobile-tab, .mobile-tab::before, .m-entry, .m-entry-ic, .m-row, .m-btn-primary, .m-btn-danger {
    transition: none !important;
  }
  .m-entry:active, .m-entry:active .m-entry-ic, .mobile-tab:active, .m-btn-primary:active {
    transform: none !important;
  }
}

/* 移动端弹窗微调 */
@media (max-width: 768px) {
  .page-tabs { display: none !important; }
  #modal-overlay .modal { max-height: 90vh; }
}

/* 门店营业日报 手机端优化（v234） */
@media (max-width: 768px) {
  .sdr-page { padding-bottom: 86px; }
  .sdr-headline { padding: 10px 12px; }
  .sdr-title { font-size: 16px; }
  .sdr-headline-datetime { font-size: 12.5px; padding: 5px 10px; }
  .sdr-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .sdr-bar select, .sdr-bar input[type="date"] { width: 100%; font-size: 16px; padding: 11px 10px; box-sizing: border-box; }
  .sdr-bar #sdr-prev, .sdr-bar #sdr-today { min-height: 44px; font-size: 14px; }
  .sdr-bar > span { grid-column: 1 / -1; font-size: 11.5px; }
  .sdr-form-grid { grid-template-columns: 1fr; gap: 10px; }
  .sdr-section { padding: 12px 14px; }
  .sdr-section .form-grid { grid-template-columns: 1fr; gap: 8px; }
  .sdr-section .form-item input, .sdr-section .form-item textarea { font-size: 16px; padding: 12px 11px; width: 100%; box-sizing: border-box; }
  .sdr-note { font-size: 16px; min-height: 120px; }
  .sdr-live-bar { overflow-x: auto; flex-wrap: nowrap; gap: 14px; white-space: nowrap; padding: 10px 12px; }
  .sdr-locked-banner { font-size: 12.5px; }
  .sdr-actions { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 40; box-shadow: 0 -2px 10px rgba(16,24,40,.06); }
  .sdr-actions .btn { flex: 1; min-height: 46px; font-size: 15px; margin: 0; }
}

/* 手机端费用管理卡片列表（v208） */
.exp-m-list { display: flex; flex-direction: column; gap: 10px; padding: 10px 0; }
.exp-m-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
}
.exp-m-card .exp-m-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.exp-m-card .exp-m-date { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.exp-m-card .exp-m-amount { margin-left: auto; font-size: 16px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.exp-m-card .exp-m-row { font-size: 13px; color: var(--text-2); margin-top: 5px; line-height: 1.5; }
.exp-m-card .exp-m-row.exp-m-note { color: var(--text-3); }
.exp-m-card .exp-m-foot { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.exp-m-card .exp-m-ops { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.exp-m-card .exp-m-ops .btn { margin: 0; }

@media (max-width: 768px) {
  .fin-toolbar { flex-wrap: wrap; gap: 6px; }
  .fin-toolbar .fin-tb-label { font-size: 12px; }
  .fin-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  .fin-page .btn { white-space: nowrap; }
}

/* v392：员工端日报填写状态小标签（浅底，区别于 hero 上的深色 m-status-chip） */
.m-tag {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px;
  white-space: nowrap; flex: none;
}
.m-tag.ok { background: #e8f5e9; color: #2e7d32; }
.m-tag.warn { background: #fff3e0; color: #b26a00; }
.m-tag.info { background: #e8f0fe; color: #1a56c4; }
.m-tag.gray { background: #f1f3f5; color: #666; }
/* v478：宽表格在手机端自动转成卡片（DOM 由 app.js 的 mCardsOnMobile 搬过来） */
.m-table-cards { display: none; }
/* v480：带展开下钻的表格保持原样，只在手机上横向可滑 */
.m-wide-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 768px) {
  table.m-wide-scroll { font-size: 12px; }
  table.m-wide-scroll th, table.m-wide-scroll td { white-space: nowrap; padding: 6px 8px; }
}
@media (max-width: 768px) {
  .m-table-cards { display: block; margin: 4px 0 10px; }
  .m-tc {
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: var(--card-bg, #fff);
  }
  .m-tc-empty { text-align: center; color: var(--text-3, #999); font-size: 13px; }
  .m-tc-row { display: flex; gap: 10px; padding: 3px 0; font-size: 13px; line-height: 1.6; }
  .m-tc-label { flex: 0 0 88px; color: var(--text-3, #8b8b8b); }
  .m-tc-val { flex: 1; min-width: 0; word-break: break-word; }
  .m-tc-val .btn, .m-tc-val button { margin-right: 6px; margin-top: 2px; }
}
/* ==================== 企业知识库 v616 手机端（S1） ==================== */
body.mobile-app .kbp-page { gap: 10px; }
body.mobile-app .kbp-search { height: 38px; }
body.mobile-app .kbp-search input { font-size: 16px; }
body.mobile-app .kbp-op { width: 38px; height: 38px; font-size: 16px; }
body.mobile-app .kbp-tacts button { font-size: 14px; padding: 6px 5px; }
body.mobile-app .kbp-folder-ops button { font-size: 14px; padding: 6px 5px; }
body.mobile-app .kbp-row { padding: 12px 10px; }
body.mobile-app .kbp-row-title { font-size: 14.5px; }
body.mobile-app .kbp-tcard-title { font-size: 14px; }
body.mobile-app .kbp-detail-body,
body.mobile-app .kbp-overlay-body { overscroll-behavior: contain; }
body.mobile-app .kbp-overlay-head { box-shadow: 0 1px 0 var(--line); }
body.mobile-app .kbed-in,
body.mobile-app .kbp-sel { font-size: 16px; }
body.mobile-app .kbp-sel { height: 38px; }
body.mobile-app .kbp-overlay-body .kbp-frame { height: 56vh; }
body.mobile-app .kbp-side { box-shadow: 14px 0 36px rgba(20, 28, 42, .22); }
body.mobile-app .kbp-mask { background: rgba(20, 28, 42, .5); }

/* ==================== 知识库 v616：手机端编辑器页头精简 ==================== */
/* MobileApp 已有「‹ 标题」头，编辑器内部页头只保留保存按钮，避免双层标题 */
body.mobile-app .kbed-top { padding: 0 0 8px; border-bottom: 0; justify-content: flex-end; }
body.mobile-app .kbed-top #kbed-back,
body.mobile-app .kbed-top h3,
body.mobile-app .kbed-top > span { display: none; }
body.mobile-app .kbed-top .sp { display: none; }
