/* ===== 老家荆楚客服工作台 · 清爽企业风（蓝白灰 / 细边框 / 紧凑字号）===== */
:root {
  /* 主色：由 theme.js 按主题覆盖，这里给默认值 */
  --rose: #2f6bed;
  --rose-deep: #1f4fd0;
  --rose-light: #edf3ff;
  --peach: #fff8f0;
  --lavender: #f4f1ff;
  --mint: #ecfaf4;
  --cream: #fbfcfe;

  /* 文字三级灰阶 */
  --ink: #1f2937;
  --ink-soft: #6b7787;
  --ink-3: #98a3b3;

  /* 线与底 */
  --line: #e5e9f0;
  --line-soft: #eef1f6;
  --line-strong: #d6dde8;
  --bg: #f5f7fb;
  --white: #ffffff;

  /* 语义色（统一降饱和，避免花哨） */
  --red: #d64545;
  --green: #18926b;
  --orange: #cf7c1c;

  /* 形状与阴影：克制，只做 1px 级别的层次 */
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 4px 14px rgba(16, 24, 40, .07);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Inter", "Segoe UI",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
/* 所有数字走等宽数位，表格里不再左右抖动 */
.tbl td, .stat-card .num, .wb-stat-num, .an-kpi .num, .num, .cu-idx { font-variant-numeric: tabular-nums; }
.boot-loading { padding: 60px; text-align: center; color: var(--ink-soft); }

/* ---------- 登录页 ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md);
  width: 400px; max-width: 94vw; padding: 34px 32px; border: 1px solid var(--line);
}
.login-card h1 { font-size: clamp(19px, 5vw, 23px); white-space: nowrap; color: var(--ink); font-weight: 600; text-align: center; margin-bottom: 6px; letter-spacing: -.2px; }
.login-card .sub { text-align: center; color: var(--ink-soft); font-size: 12.5px; margin-bottom: 22px; }
.login-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.login-tabs button {
  flex: 1; height: 34px; border: 1px solid var(--line-strong); background: #fff;
  border-radius: var(--radius-sm); cursor: pointer; color: var(--ink-soft); font-size: 13px; font-family: inherit;
}
.login-tabs button.active { background: var(--rose); border-color: var(--rose); color: #fff; font-weight: 500; }
.login-card input {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  margin-bottom: 10px; font-size: 13.5px; background: #fff; color: var(--ink); font-family: inherit;
}
.login-card input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-light); }
.login-card input[type="checkbox"] {
  width: 16px; padding: 0; margin: 0; border: none; background: none; accent-color: var(--rose);
}
.otp-row { display: flex; gap: 8px; }
.otp-row input { flex: 1; }
.otp-row button { white-space: nowrap; }
.login-error { color: var(--red); font-size: 13px; min-height: 18px; margin-bottom: 8px; line-height: 1.65; white-space: normal; word-break: break-word; }
.lg-remember { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-soft); margin: 2px 0 12px; cursor: pointer; user-select: none; }
.lg-remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--rose); flex: 0 0 auto; }
.lg-link { display: block; width: 100%; text-align: right; background: none; border: none; padding: 8px 0 0; font-size: 12.5px; color: var(--rose-deep); cursor: pointer; font-family: inherit; }
.lg-link:hover { text-decoration: underline; }
/* 默认改成密码登录后，「首次使用」这个入口是新人唯一的路，得让人一眼看见 */
.lg-link-strong { text-align: left; margin-top: 2px; padding: 9px 12px; border-radius: 8px; background: rgba(0, 0, 0, .035); font-size: 13px; }
.lg-tip { font-size: 12px; color: var(--ink-soft); line-height: 1.75; margin-top: 14px; text-align: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border: 1px solid transparent;
  border-radius: var(--radius-sm); background: var(--rose); color: #fff;
  font-size: 13px; font-weight: 500; font-family: inherit; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { background: var(--rose-deep); }
.btn:active { box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; height: auto; padding: 11px 14px; font-size: 14px; }
.btn.ghost { background: #fff; color: var(--rose-deep); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--rose-light); border-color: var(--rose); }
.btn.gray { background: #fff; color: var(--ink-soft); border-color: var(--line-strong); }
.btn.gray:hover { background: #f7f9fc; color: var(--ink); border-color: #c3ccd9; }
.btn.danger { background: var(--red); }
.btn.danger:hover { background: #b93a3a; }
.btn.green { background: var(--green); }
.btn.green:hover { background: #127a58; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: var(--radius-xs); }
.btn.xs { height: 24px; padding: 0 8px; font-size: 12px; border-radius: 5px; }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 232px; flex-shrink: 0; background: #fff;
  border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
/* 品牌单行显示，不再折成两排 */
.brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 14.5px; letter-spacing: -.2px;
  font-weight: 600; color: var(--ink); padding: 0 8px 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.brand-logo { font-size: 17px; line-height: 1; }
.brand-name { overflow: hidden; text-overflow: ellipsis; }
/* 第二十六轮：侧边栏收起 / 展开 */
.sidebar { transition: width .18s ease, padding .18s ease; }
.nav-fold {
  margin-left: auto; flex: 0 0 22px; width: 22px; height: 22px; padding: 0;
  border: 1px solid var(--line); border-radius: 6px; background: var(--cream);
  color: var(--ink-soft); font: inherit; font-size: 12px; line-height: 1; cursor: pointer;
}
.nav-fold:hover { border-color: var(--rose); color: var(--rose-deep); background: var(--rose-light); }
.layout.nav-collapsed .sidebar { width: 64px; padding: 18px 8px; }
.layout.nav-collapsed .brand { flex-direction: column; gap: 7px; padding: 0 0 10px; }
.layout.nav-collapsed .brand-name,
.layout.nav-collapsed .ns-txt,
.layout.nav-collapsed .nav-search kbd,
.layout.nav-collapsed .nav-label,
.layout.nav-collapsed .nav-jump,
.layout.nav-collapsed .nav-caret,
.layout.nav-collapsed .g-title,
.layout.nav-collapsed .st-txt { display: none; }
.layout.nav-collapsed .nav-search { justify-content: center; padding: 7px 0; }
.layout.nav-collapsed .nav-group { margin-bottom: 10px; }
.layout.nav-collapsed .nav-group + .nav-group {
  padding-top: 8px; border-top: 1px solid var(--line-soft);
}
.layout.nav-collapsed .nav-item { justify-content: center; padding: 9px 4px; }
.layout.nav-collapsed .nav-item .nav-ico { font-size: 16px; }
.layout.nav-collapsed .nav-item .badge {
  position: absolute; top: 1px; right: 2px; margin: 0; padding: 0 4px;
  font-size: 10px; line-height: 14px;
}
.layout.nav-collapsed .nav-sub { display: none !important; }
.layout.nav-collapsed .sidebar-theme { justify-content: center; padding: 8px 0; font-size: 14px; gap: 0; }
.nav-group { margin-bottom: 16px; }
.nav-group .g-title { font-size: 11px; color: var(--ink-3); padding: 0 10px 6px; letter-spacing: .8px; font-weight: 500; }
.nav-item {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: var(--radius-xs);
  cursor: pointer; font-size: 13.5px; color: #3f4a5a; margin-bottom: 1px; position: relative;
}
.nav-item:hover { background: #f4f6fa; color: var(--ink); }
.nav-item.active { background: var(--rose-light); color: var(--rose-deep); font-weight: 600; }
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2.5px;
  border-radius: 2px; background: var(--rose);
}
.nav-item .badge {
  margin-left: auto; background: var(--red); color: #fff; border-radius: 999px;
  font-size: 11px; padding: 0 6px; line-height: 17px; font-weight: 500;
}
.main { flex: 1; padding: 20px 26px 56px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 14px; }
.topbar .page-title { font-size: 19px; font-weight: 600; letter-spacing: -.2px; color: var(--ink); }
.user-chip { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 5px 12px; font-size: 12.5px; }
.user-chip .role-tag { background: var(--lavender); color: #6f5bd0; border-radius: 4px; padding: 1px 7px; font-size: 11px; }
.user-chip .role-tag.admin { background: var(--rose-light); color: var(--rose-deep); }
.user-chip button { border: none; background: none; color: var(--ink-soft); cursor: pointer; font-size: 12.5px; font-family: inherit; }
.user-chip button:hover { color: var(--red); }

/* ---------- 卡片 / 面板 ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 14px; }
.card h3 { font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 14px; display: flex; align-items: center; gap: 7px; letter-spacing: -.1px; }
.card h3::before { content: none; }
.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: 1fr 1fr; }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid.c4 { grid-template-columns: 1fr 1fr; } .grid.c2 { grid-template-columns: 1fr; } }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat-card .num { font-size: 26px; font-weight: 600; color: var(--ink); margin-top: 4px; letter-spacing: -.5px; }
.stat-card .lbl { font-size: 12.5px; color: var(--ink-soft); }
.stat-card.t2 .num { color: #6f5bd0; }
.stat-card.t3 .num { color: var(--green); }
.stat-card.t4 .num { color: var(--orange); }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 16px; }
.field label { display: block; font-size: 12.5px; color: #5b6676; font-weight: 500; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; height: 34px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 13px; background: #fff; color: var(--ink); font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.field select { padding-right: 26px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-light);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field textarea { height: auto; padding: 8px 11px; line-height: 1.6; resize: vertical; min-height: 70px; }
.form-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; scrollbar-width: thin; }
.tbl-wrap::-webkit-scrollbar { height: 8px; }
.tbl-wrap::-webkit-scrollbar-thumb { background: #dde3ec; border-radius: 8px; }
.tbl-wrap::-webkit-scrollbar-thumb:hover { background: #cbd4e0; }
.tbl-wrap::-webkit-scrollbar-track { background: transparent; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; padding: 10px 12px; background: #f8fafc; color: #5b6676; font-weight: 600; font-size: 12.5px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; color: var(--ink); }
.tbl tbody tr:hover td { background: #f9fbff; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 11.5px; line-height: 18px; white-space: nowrap; font-weight: 500; }
.tag.pink { background: var(--rose-light); color: var(--rose-deep); }
.tag.green { background: var(--mint); color: var(--green); }
.tag.gray { background: #f1f4f8; color: #66707f; }
.tag.orange { background: #fdf3e6; color: var(--orange); }
.tag.red { background: #fdeaea; color: var(--red); }
.tag.purple { background: var(--lavender); color: #6f5bd0; }

/* ---------- 图片上传 ---------- */
.img-drop {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 18px; text-align: center;
  color: var(--ink-soft); font-size: 13px; background: #fbfcfe; cursor: pointer;
}
.img-drop.over { border-color: var(--rose); background: var(--rose-light); }
.img-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.img-item { position: relative; width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.img-item img { width: 100%; height: 100%; object-fit: cover; }
.img-item .del { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; border: none; cursor: pointer; font-size: 12px; line-height: 1; }
.img-view { max-width: 60px; max-height: 60px; border-radius: 6px; cursor: zoom-in; }

/* ---------- 弹窗 / 提示 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(23, 32, 48, .42); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal { background: #fff; border-radius: var(--radius); padding: 22px; width: 460px; max-width: 95vw; max-height: 86vh; overflow-y: auto; box-shadow: 0 18px 48px rgba(16, 24, 40, .16); }
.modal h3 { margin-bottom: 16px; font-size: 16px; font-weight: 600; color: var(--ink); }
.modal .m-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toast-box { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 1500; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--rose); border-radius: var(--radius-sm); padding: 9px 16px; box-shadow: var(--shadow-md); font-size: 13px; animation: slidein .22s; }
.toast.err { border-left-color: var(--red); }
.toast.ok { border-left-color: var(--green); }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; } }

/* ---------- 公告板 ---------- */
.board-wall { columns: 2; column-gap: 14px; }
@media (max-width: 900px) { .board-wall { columns: 1; } }
.note { break-inside: avoid; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.note.pinned { background: #fffdf6; border-color: #f0e2c4; }
.note h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.note .meta { font-size: 12px; color: var(--ink-soft); margin-top: 8px; display: flex; justify-content: space-between; align-items: center; }

/* ---------- 排班：人员 × 日期矩阵 ---------- */
.sched-wrap { max-width: 1080px; }
.sched-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.sched-top h3 { margin: 0; }
.sched-sub { font-size: 11.5px; font-weight: 400; color: var(--ink-soft); background: var(--rose-light); border-radius: 999px; padding: 2px 9px; }
.sched-desc { font-size: 12px; color: var(--ink-soft); margin-top: 6px; line-height: 1.6; }
.sched-nav { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.sched-nav b { font-size: 14px; min-width: 108px; text-align: center; }
.sched-legend { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; margin-bottom: 12px; }
.sched-legend .shift-pill { padding: 2px 9px; border-radius: 999px; }
.shift-早班 { background: #fff0d9; color: #c07b1e; }
.shift-早A班 { background: #ffe4d6; color: #c45e2a; }
.shift-晚班 { background: var(--lavender); color: #7a5fd0; }
.shift-晚A班 { background: #e3e0ff; color: #5a48c0; }
.sc-legend-tag { font-size: 11.5px; border-radius: 999px; padding: 2px 9px; }
.sc-legend-tag.hol { background: #ffe9ef; color: #c94f78; }
.sc-legend-tag.work { background: #e9f3ff; color: #3a7fbf; }
.sched-perm { margin-left: auto; font-size: 11.5px; color: var(--ink-soft); }
.sched-weeks { margin-bottom: 12px; }
.sched-week-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 12.5px; color: var(--ink-soft); }
.sched-week-label { font-weight: 700; color: var(--rose-deep); margin-right: 4px; }
.sched-table-wrap { overflow: auto; max-height: 430px; border: 1px solid var(--line); border-radius: 10px; }
.sched-matrix { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: 12px; }
.sched-matrix th, .sched-matrix td { border-right: 1px solid #eef1f6; border-bottom: 1px solid #eef1f6; padding: 5px 4px; text-align: center; min-width: 48px; }
.sched-matrix thead th { position: sticky; top: 0; z-index: 3; background: var(--rose-light); vertical-align: middle; }
.sched-matrix th.sc-name-head, .sched-matrix th.sc-name {
  position: sticky; left: 0; z-index: 2; min-width: 100px; max-width: 100px;
  text-align: left; padding-left: 10px; background: #fff; font-weight: 600; white-space: nowrap;
}
.sched-matrix thead th.sc-name-head { z-index: 4; background: var(--rose-light); }
/* 已排休：紧贴姓名列钉在左边，横向滚动时姓名与休息天数始终可见 */
.sched-matrix th.sc-rest-head, .sched-matrix td.sc-rest {
  position: sticky; left: 100px; z-index: 2;
  min-width: 60px; max-width: 60px; background: #fff;
  font-weight: 600; color: var(--rose-deep); white-space: nowrap;
}
.sched-matrix thead th.sc-rest-head { z-index: 4; background: var(--rose-light); font-size: 11px; color: var(--ink-soft); }
.sched-matrix td.sc-rest span { font-size: 10px; font-weight: 400; color: var(--ink-soft); margin-left: 1px; }
.sched-matrix td.sc-rest.zero { color: var(--ink-soft); font-weight: 500; }
.sc-day { line-height: 1.25; }
.sc-day .dd { display: block; font-size: 13px; font-weight: 700; }
.sc-day .ww { display: block; font-size: 10.5px; color: var(--ink-soft); }
.sc-day .hol { display: block; font-size: 10px; margin-top: 2px; white-space: nowrap; }
.sc-day.weekend { background: #fff4f8; }
.sc-day.holiday { background: #ffe4ed; color: #c94f78; }
.sc-day.holiday .ww, .sc-day.holiday .hol { color: #c94f78; }
.sc-day.workday { background: #e6f2ff; color: #3a7fbf; }
.sc-day.workday .ww, .sc-day.workday .hol { color: #3a7fbf; }
.sc-day.today { outline: 2px solid var(--rose); outline-offset: -2px; }
.sc-cell { height: 34px; background: #fff; }
.sc-cell.weekend-col { background: #fafbfd; }
.sc-cell.holiday-col { background: #fff2f6; }
.sc-cell.workday-col { background: #f3f9ff; }
.sc-cell.today-col { box-shadow: inset 0 0 0 1px #f6c9da; }
.sc-cell.editable { cursor: pointer; }
.sc-cell.editable:hover { background: var(--rose-light); }
.sc-cell.draft { border-bottom: 2px dashed #e8963c; }
.shift-mini { display: inline-block; border-radius: 6px; padding: 3px 5px; font-size: 11px; white-space: nowrap; }
.draft-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); margin-left: 3px; vertical-align: middle; }
.sc-empty { color: #ddcbd5; font-size: 13px; }
.sched-foot { font-size: 12px; color: var(--ink-soft); margin-top: 10px; line-height: 1.7; }

/* 排班通知（手动发布，v35） */
.sc-notify-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.sc-notify-label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); min-width: 58px; }
.sc-notify-sep { color: var(--ink-soft); font-size: 12.5px; }
.sc-nf-date { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font-size: 12.5px; background: #fff; color: var(--ink); }
.sc-nf-title { flex: 1; min-width: 220px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13px; background: #fff; color: var(--ink); }
.sc-nf-body { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font-size: 12.5px; line-height: 1.7; background: var(--cream); color: var(--ink); font-family: inherit; resize: vertical; margin-bottom: 9px; }
.sc-notify-foot { border-top: 1px dashed var(--line); padding-top: 9px; }
.sc-nf-check { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-soft); }
.sc-notify-sum { font-size: 12px; color: var(--ink-soft); }

/* 班次工作内容 / 排班通知 */
.duty-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .duty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .duty-grid { grid-template-columns: 1fr; } }
.duty-mini { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; background: var(--cream); }
.duty-mini-head { margin-bottom: 8px; }
.duty-mini-body { font-size: 12.5px; line-height: 1.85; color: var(--ink); }
.duty-area { min-height: 108px; font-size: 13px; line-height: 1.7; }
.sc-notice { border-left: 3px solid var(--rose); background: var(--cream); border-radius: 8px; padding: 9px 12px; margin-bottom: 9px; }
.sc-notice-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.sc-notice-head span { color: var(--ink-soft); font-size: 11.5px; }
.sc-notice-body { font-size: 12.5px; color: var(--ink-soft); white-space: pre-wrap; line-height: 1.7; margin-top: 5px; }

/* ---------- 知识库 ---------- */
.kn-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; background: var(--white); }
.kn-item h4 { font-size: 15px; margin-bottom: 6px; }
.kn-item .kn-content { font-size: 13.5px; color: var(--ink); white-space: pre-wrap; margin: 8px 0; }

/* ---------- 交接 ---------- */
.handover-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.handover-item .h-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; flex-wrap: wrap; gap: 8px; }
.handover-item .h-content { font-size: 13.5px; color: var(--ink); white-space: pre-wrap; }
.progress-line { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.tip-banner { background: #fdf8ee; border: 1px solid #f0e2c6; color: #8a6416; border-radius: var(--radius-sm); padding: 9px 13px; font-size: 12.5px; margin-bottom: 14px; }
.empty { text-align: center; color: var(--ink-3); padding: 28px 0; font-size: 13px; }
.section-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.section-tabs button { height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: #5b6676; cursor: pointer; font-size: 12.5px; font-family: inherit; transition: all .15s; }
.section-tabs button:hover { border-color: var(--rose); color: var(--rose-deep); }
.section-tabs button.active { background: var(--rose); border-color: var(--rose); color: #fff; font-weight: 500; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filter-bar .field { min-width: 140px; }
.filter-bar label { font-size: 12px; }
.draft-list { margin-top: 16px; }
.draft-item { display: flex; justify-content: space-between; align-items: center; background: var(--cream); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 14px; margin-bottom: 8px; font-size: 13px; }
.chat-recognize { background: #f7f9fd; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; margin-bottom: 14px; }

/* ---------- 售后四业务 · 横向彩色模块 ---------- */
.as-board {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px; margin-bottom: 18px;
}
.as-tile-add {
  align-items: center; justify-content: center; text-align: center;
  background: #fff; border: 1.5px dashed var(--line-strong); box-shadow: none; min-height: 108px;
}
.as-tile-add:hover { background: #fafbfd; border-color: var(--rose); }
.as-tile-add .as-tile-plus { font-size: 24px; line-height: 1; color: var(--ink-3); font-weight: 300; }
.as-tile-add:hover .as-tile-plus { color: var(--rose); }
.as-tile-add .as-tile-name { font-size: 13.5px; color: var(--ink-soft); font-weight: 500; }
.as-tile-add .as-tile-bar { display: none; }
.as-tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  min-height: 108px; padding: 14px 16px; text-align: left; cursor: pointer;
  font-family: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: none; overflow: hidden;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.as-tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.as-tile.selected { border-color: var(--line-strong); }
.as-tile.active { background: #fff; border-color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); }
.as-tile-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.as-tile-icon {
  width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--as-soft);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.as-tile-state { font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.as-tile.active .as-tile-state { color: var(--rose); }
.as-tile-name { font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: -.1px; }
.as-tile-desc { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.as-tile-bar { display: none; }
/* 表单卡不再用彩色顶边，靠上方分类卡与「当前业务」标签区分 */
.as-form-card .form-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.as-form-card .as-form-cat {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 400;
  color: var(--ink-soft); background: #f4f6fa;
  border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 8px; margin-left: 6px;
}
.tag.cat-0 { background: #fff4e6; color: #d98226; }
.tag.cat-1 { background: #fdeef4; color: #d75b86; }
.tag.cat-2 { background: #f3efff; color: #7a5fd0; }
.tag.cat-3 { background: #e8f8f2; color: #2f9c78; }

/* 登录页：仅手机号 */
.login-channel {
  text-align: center; font-size: 13px; font-weight: 600; color: var(--rose-deep);
  background: var(--rose-light); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px; margin-bottom: 18px;
}

/* ---------- 选项维护快捷入口 / 表单补充 ---------- */
.opt-caret { font-size: 11.5px; color: var(--rose-deep); margin-left: 6px; text-decoration: none; border-bottom: 1px dashed var(--rose); white-space: nowrap; }
.opt-caret:hover { color: var(--red); }
.field-inline { display: flex; gap: 8px; }
.cell-sub { font-size: 11.5px; color: var(--ink-soft); margin-top: 3px; white-space: pre-wrap; }
.cell-remark { max-width: 190px; min-width: 110px; font-size: 12.5px; color: var(--ink-soft); white-space: pre-wrap; }
.cell-reason { min-width: 116px; font-size: 12.5px; }
.cell-ops .btn.sm { padding: 4px 9px; font-size: 12px; }
.perm-picks { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: var(--ink); }
.perm-picks label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.perm-picks input { width: auto; accent-color: var(--rose); }

/* ---------- 批量导入预览 ---------- */
.import-preview { border-top: 1px solid var(--line-soft); padding-top: 10px; font-size: 13px; }
.import-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.import-group { padding: 5px 0; color: var(--ink-soft); line-height: 1.6; }
.import-group b { color: var(--rose-deep); }

/* ---------- 公告确认收到 ---------- */
.an-head { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 9px; }
.an-date { font-size: 12px; color: var(--ink-soft); }
.an-subject { font-size: 15.5px; font-weight: 700; margin: 5px 0; }
.an-from { font-size: 12.5px; color: var(--ink-soft); }
.an-content { font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; }
.an-my-state {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px;
  padding: 9px 10px; background: rgba(255,255,255,.72); border-radius: 9px; font-size: 12.5px;
}
.an-time { font-size: 11.5px; color: var(--ink-soft); }
.an-receipts { margin-top: 10px; }
.an-receipts-title { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 6px; }
.an-receipt-list { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-pill { font-size: 11.5px; border-radius: 999px; padding: 3px 9px; border: 1px solid transparent; }
.rc-pill.ok { background: var(--mint); color: var(--green); border-color: #c9eddd; }
.rc-pill.wait { background: #fdf0e0; color: var(--orange); border-color: #f6ddb9; }
.rc-pill.no { background: #f1f4f8; color: var(--ink-soft); border-color: #e6d9e0; }

/* ---------- 快递识别 / 话术模板 / 群同步 ---------- */
.card-action { margin-left: auto; font-size: 12.5px; font-weight: 400; color: var(--rose-deep); text-decoration: none; }
.card-action:hover { color: var(--red); }
.detect-hint { font-size: 11.5px; margin-left: 6px; }
.detect-hint.ok { color: var(--green); }
.detect-hint.warn { color: var(--orange); }
.group-state { margin-top: 12px; font-size: 12.5px; border-radius: 9px; padding: 8px 12px; }
.group-state.ok { background: var(--mint); color: var(--green); }
.group-state.warn { background: #fdf0e0; color: #a8641a; }
.cell-sync { min-width: 130px; }
/* 操作列：按钮多，允许换行，别把「确认/驳回」挤到表格外面去 */
.cell-ops { width: 236px; min-width: 236px; white-space: normal; }
.cell-ops .btn { margin: 0 4px 5px 0; white-space: nowrap; }
.cell-ops .btn.strong { box-shadow: 0 2px 8px rgba(180, 60, 90, .18); }
.tpl-area { min-height: 132px; font-size: 13px; line-height: 1.7; font-family: inherit; }
.tpl-vars { font-size: 12px; color: var(--ink-soft); line-height: 1.8; background: var(--cream); border-radius: 9px; padding: 9px 12px; margin-top: 10px; }
.modal.wide { width: 620px; }

/* ---------- 工作交接：接收人多选 ---------- */
.hv-picker { border: 1px solid var(--line); border-radius: 10px; background: var(--cream); overflow: hidden; }
.hv-picker-top { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--rose-light); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.hv-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.hv-check input { width: auto; accent-color: var(--rose); }
.hv-count { font-size: 12px; color: var(--rose-deep); font-weight: 600; margin-left: auto; }
.btn-link { border: none; background: none; color: var(--ink-soft); font-size: 12px; cursor: pointer; text-decoration: underline; }
.btn-link:hover { color: var(--red); }
.hv-picker-list { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 12px; max-height: 128px; overflow-y: auto; }

/* ---------- 售后业务管理弹窗 ---------- */
.cm-head, .cm-row { display: grid; grid-template-columns: 42px 56px 140px minmax(0, 1fr) 118px; gap: 8px; align-items: center; }
.cm-head { font-size: 11.5px; color: var(--ink-soft); padding: 0 2px 6px; }
.cm-row { background: var(--cream); border: 1px solid var(--line); border-radius: 9px; padding: 7px 8px; margin-bottom: 7px; }
.cm-idx { width: 24px; height: 24px; border-radius: 50%; background: var(--rose-light); color: var(--rose-deep); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.cm-row input { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 12.5px; font-family: inherit; color: var(--ink); }
.cm-row input:focus { outline: none; border-color: var(--rose); }
.cm-row input[readonly] { background: #f5f0f2; color: var(--ink-soft); }
.cm-row .cm-icon { text-align: center; }
.cm-ops { display: flex; gap: 4px; justify-content: flex-end; }
.cm-ops .btn { padding: 4px 8px; font-size: 11.5px; }
@media (max-width: 560px) {
  .cm-head { display: none; }
  .cm-row { grid-template-columns: 34px 48px 1fr; }
  .cm-row .cm-desc, .cm-row .cm-ops { grid-column: 1 / -1; }
  .cm-ops { justify-content: flex-start; }
}
.opt-caret-wrap { display: inline-flex; }

/* =====================================================================
   v5：工作台模块化 / 排班人员班次 / 公告时间线 / 售后分类金额分析
   ===================================================================== */

/* ---- 字段配置通用 ---- */
.form-grid[data-extra-fields]:empty { display: none; }
label.is-required::after { content: " *"; color: var(--red); font-weight: 700; }
.fc-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); cursor: pointer; }
.fc-check input { width: auto; margin: 0; }
.fc-req, .fc-opt { font-size: 10.5px; border-radius: 999px; padding: 1px 7px; font-weight: 500; vertical-align: middle; }
.fc-req { background: var(--rose-light); color: var(--rose-deep); }
.fc-opt { background: #f1f4f8; color: var(--ink-soft); }

/* ---- 后台：模块与字段维护 ---- */
.ma-wrap { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; max-width: 1280px; }
.ma-modules, .ma-fields { min-width: 0; }
.ma-tip {
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.8; background: var(--cream);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-bottom: 12px;
}
.ma-list { max-height: 620px; overflow-y: auto; }
.ma-group { margin-bottom: 14px; }
.ma-group-name {
  font-size: 11.5px; color: var(--ink-soft); font-weight: 700; letter-spacing: .5px;
  padding: 0 4px 6px; border-bottom: 1px solid var(--line); margin-bottom: 6px;
}
.ma-row { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border-radius: 9px; cursor: pointer; border: 1px solid transparent; }
.ma-row:hover { background: var(--cream); }
.ma-row.active { background: var(--rose-light); border-color: var(--line-strong); }
.ma-row.off { opacity: .5; }
.ma-ico { font-size: 16px; flex: 0 0 22px; }
.ma-name { flex: 1; min-width: 0; font-size: 13.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ma-name .tag { font-size: 10px; padding: 1px 6px; }
.ma-ops { display: flex; gap: 4px; flex: 0 0 auto; }
.ma-ops .btn { padding: 3px 7px; font-size: 11px; }
.ma-field-head, .ma-field-row {
  display: grid; grid-template-columns: minmax(120px, 1fr) minmax(96px, .8fr) 54px 74px 82px minmax(132px, auto);
  gap: 7px; align-items: center;
}
.ma-field-head { font-size: 11.5px; color: var(--ink-soft); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.ma-field-row { padding: 8px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.ma-field-row.off { opacity: .5; }
.ma-field-row .tag { font-size: 10px; margin-left: 5px; padding: 1px 6px; }
.ma-mono { font-size: 11.5px; color: var(--ink-soft); word-break: break-all; }
@media (max-width: 900px) {
  .ma-wrap { grid-template-columns: 1fr; }
  .ma-field-head { display: none; }
  .ma-field-row { grid-template-columns: 1fr 1fr; }
  .ma-field-row > span:nth-child(4), .ma-field-row > span:nth-child(5) { grid-column: auto; }
}

/* ---- 排班：人员 / 班次维护弹窗 ---- */
.scc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.scc-row.del { opacity: .45; }
.scc-idx { flex: 0 0 24px; text-align: center; font-size: 12px; color: var(--ink-soft); }
.scc-row > input[data-scc-name] { flex: 1 1 170px; }
.scc-row > textarea { flex: 1 1 100%; order: 9; min-height: 52px; }
.scc-row > .fc-check { flex: 0 0 auto; }
.scc-ops { flex: 0 0 auto; margin-left: auto; display: flex; gap: 4px; }
.scc-ops .btn { padding: 3px 7px; font-size: 11px; }

/* ---- 公告栏：按日期时间线 ---- */
.an-hero {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 16px;
}
.an-hero h3 { font-size: 17px; color: var(--rose-deep); }
.an-hero-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 5px; }
.an-hero-stat { font-size: 12.5px; color: var(--ink-soft); background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; white-space: nowrap; }
.an-hero-stat b { color: var(--rose-deep); font-size: 14px; }
.an-timeline { max-width: 980px; }
.an-day-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-soft); margin: 18px 0 10px; padding-left: 62px; }
.an-day-label b { font-size: 14px; color: var(--ink); }
.an-day-pin { font-weight: 700; color: var(--rose-deep); background: var(--rose-light); border-radius: 999px; padding: 3px 12px; }
.an-item { display: flex; gap: 12px; align-items: stretch; }
.an-rail { flex: 0 0 50px; display: flex; flex-direction: column; align-items: center; padding-top: 16px; position: relative; }
.an-rail::after { content: ""; position: absolute; top: 34px; bottom: -18px; width: 1px; background: var(--line); }
.an-item:last-child .an-rail::after { display: none; }
.an-rail-time { font-size: 11px; color: var(--ink-soft); }
.an-rail-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rose); border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--rose); margin-top: 6px; z-index: 1; }
.an-item.pinned .an-rail-dot { background: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.an-card {
  flex: 1; min-width: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 12px;
}
.an-item.pinned .an-card { background: #fffaf2; border-color: #f3dcc0; }
.an-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ink-soft); margin-bottom: 8px; }
.an-card-meta .tag { font-size: 10.5px; }
.an-card .an-subject { margin: 0 0 6px; }
.an-excerpt {
  font-size: 13.5px; line-height: 1.75; color: var(--ink); white-space: pre-wrap;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.an-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.an-publish { max-width: 980px; margin-top: 20px; }
.an-publish-head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.an-publish-head h3 { font-size: 16px; }
.an-pub-hint { font-size: 12px; color: var(--ink-soft); font-weight: 400; margin-left: 6px; }
.an-pub-arrow { font-size: 12px; color: var(--rose-deep); }
.an-pub-note { font-size: 12px; color: var(--ink-soft); line-height: 1.8; margin-top: 10px; }
.an-detail-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--ink-soft); padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.an-detail-label { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); letter-spacing: .5px; margin: 14px 0 6px; }
.an-detail-subject { font-size: 16px; font-weight: 700; }
.an-detail-content { font-size: 14px; line-height: 1.9; white-space: pre-wrap; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.an-detail-extra { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.an-detail-extra span { color: var(--ink-soft); }
.an-receipt-list { max-height: 150px; overflow-y: auto; }

/* ---- 数据分析：分类明细与金额 ---- */
.an-detail-note { font-size: 12px; color: var(--ink-soft); line-height: 1.8; margin-top: 10px; }
.an-detail-total { background: var(--rose-light); }
.an-detail-total td { border-top: 2px solid var(--line-strong); }

/* =====================================================================
   v6：模块板块管理 / 排班配置 / 公告三行与强制查看 / 下钻式数据分析
   ===================================================================== */

/* ---- 图片字段预览 ---- */
.fc-img-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fc-img-preview:empty { display: none; }
.fc-img-preview .img-view,
td .img-view { max-width: 56px; max-height: 56px; margin: 0 4px 4px 0; }
td .fc-img-preview { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---- 模块管理：按板块分区 ---- */
.mg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.mg-tip { font-size: 12.5px; color: var(--ink-soft); line-height: 1.8; margin-top: 8px; max-width: 830px; }
.mg-head-ops { display: flex; gap: 8px; flex-shrink: 0; }
.mg-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 16px; align-items: start; }
.mg-groups { display: flex; flex-direction: column; gap: 14px; }
.mg-group-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.mg-group-card.off { opacity: .55; }
.mg-group-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mg-order { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; background: var(--rose-light); color: var(--rose-deep); font-size: 12px; font-weight: 700; }
.mg-group-name { flex: 1; min-width: 110px; font-size: 14px; font-weight: 700; color: var(--rose-deep); border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 5px 8px; }
.mg-group-name:hover, .mg-group-name:focus { border-color: var(--line); background: var(--cream); outline: none; }
.mg-count { font-size: 12px; color: var(--ink-soft); }
.mg-ops { display: flex; gap: 4px; flex-wrap: wrap; }
.mg-mod-list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.mg-mod-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; border: 1px solid transparent; background: var(--cream); flex-wrap: wrap; }
.mg-mod-row:hover { border-color: var(--line); }
.mg-mod-row.active { border-color: var(--rose); background: var(--rose-light); }
.mg-mod-row.off { opacity: .5; }
.mg-mod-ico { font-size: 16px; cursor: pointer; }
.mg-mod-name { flex: 1; min-width: 90px; font-size: 13.5px; color: var(--ink); border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 4px 6px; }
.mg-mod-name:hover, .mg-mod-name:focus { border-color: var(--line); background: #fff; outline: none; }
.mg-en { font-size: 12px; white-space: nowrap; }
.mg-add-in { width: 100%; border: 1px dashed var(--line); background: transparent; color: var(--ink-soft); border-radius: 9px; padding: 7px; font-size: 12.5px; cursor: pointer; }
.mg-add-in:hover { border-color: var(--rose); color: var(--rose-deep); background: var(--rose-light); }
.mg-empty { font-size: 12.5px; color: var(--ink-soft); padding: 10px; text-align: center; }
.mg-fields { position: sticky; top: 16px; }
.mg-preview { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.mg-preview-title { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.mg-preview-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--rose-light); color: var(--rose-deep); border-radius: 8px; padding: 4px 9px; font-size: 12.5px; margin: 0 6px 6px 0; }
.mg-preview-chip small { color: var(--ink-soft); font-size: 11px; }

/* ---- 排班：页面内人员 / 班次配置 ---- */
.scfg-card { max-width: 1180px; }
.scfg-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.scfg-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); margin-bottom: 8px; flex-wrap: wrap; }
.scfg-row.del { opacity: .45; text-decoration: line-through; }
.scfg-idx { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px; background: var(--rose-light); color: var(--rose-deep); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.scfg-name { flex: 0 1 170px; min-width: 110px; font-size: 13.5px; }
.scfg-duty { flex: 1 1 260px; min-height: 38px; font-size: 12.5px; }
.scfg-note { font-size: 12px; color: var(--ink-soft); line-height: 1.8; margin-bottom: 10px; }
.scfg-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); }
.sc-name-head { position: relative; }
.sc-add-person { margin-left: 6px; border: none; background: var(--rose-light); color: var(--rose-deep); border-radius: 6px; cursor: pointer; font-size: 12px; padding: 1px 7px; }
.sc-add-person:hover { background: var(--rose); color: #fff; }
.sc-name { white-space: nowrap; }
.sc-person-del { border: none; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 12px; float: right; margin-left: 6px; }
.sc-person-del:hover { color: var(--red); }
.sc-account-pick { display: flex; flex-wrap: wrap; gap: 8px; max-height: 210px; overflow-y: auto; }
.sc-account-pick label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--cream); border-radius: 8px; padding: 6px 10px; font-size: 13px; cursor: pointer; }
.sc-account-pick label:hover { border-color: var(--rose); }

/* ---- 公告栏：三行式列表 ---- */
.an-list { display: flex; flex-direction: column; gap: 10px; }
.an-row { border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.an-row.pinned { border-color: var(--line-strong); }
.an-row-l1 { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--cream); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-soft); flex-wrap: wrap; }
.an-row-l1 .an-date { font-weight: 700; color: var(--rose-deep); font-size: 13px; }
.an-row-l1 .an-sep { color: var(--line); }
.an-row-l2 { padding: 11px 14px 3px; font-size: 15px; font-weight: 700; color: var(--ink); }
.an-row-l3 { padding: 4px 14px 12px; font-size: 13.5px; color: var(--ink); white-space: pre-wrap; line-height: 1.8; }
.an-row-l4 { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.an-row-l4 .an-ops { margin-left: auto; display: flex; gap: 6px; }
.an-unread { border-left: 3px solid var(--rose); }

/* ---- 公告：全员强制查看遮罩 ---- */
.force-mask { position: fixed; inset: 0; z-index: 99999; background: rgba(48, 28, 38, .66); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.force-box { width: min(580px, 100%); max-height: 86vh; overflow-y: auto; background: #fff; border-radius: 18px; padding: 26px 28px; box-shadow: 0 24px 70px rgba(60, 20, 40, .35); }
.force-tag { display: inline-block; background: var(--rose); color: #fff; border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 700; }
.force-title { font-size: 19px; font-weight: 700; margin: 14px 0 8px; color: var(--ink); }
.force-meta { font-size: 12.5px; color: var(--ink-soft); display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
/* 自身不再滚动，交给外层 .force-scroll 统一滚，避免出现两条滚动条 */
.force-body { font-size: 14px; line-height: 1.9; white-space: pre-wrap; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.force-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.force-hint { font-size: 12.5px; color: var(--ink-soft); }
.force-btn { min-width: 170px; }
.force-btn:disabled { opacity: .55; cursor: not-allowed; }
.force-progress { height: 4px; border-radius: 4px; background: var(--rose-light); overflow: hidden; margin-top: 12px; }
.force-progress i { display: block; height: 100%; background: var(--rose); transition: width .3s linear; }

/* ---- 数据分析：分类下钻 ---- */
.dr-crumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; margin-bottom: 14px; }
.dr-crumb button { border: none; background: var(--rose-light); color: var(--rose-deep); border-radius: 8px; padding: 5px 11px; font-size: 13px; cursor: pointer; }
.dr-crumb button:hover { background: var(--rose); color: #fff; }
.dr-crumb .dr-cur { font-weight: 700; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 5px 11px; }
.dr-sep { color: var(--ink-soft); }
.dr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
.dr-card { border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 14px 16px; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.dr-card:hover { border-color: var(--rose); transform: translateY(-2px); box-shadow: var(--shadow); }
.dr-card.leaf { cursor: default; }
.dr-card.leaf:hover { transform: none; border-color: var(--line); box-shadow: none; }
.dr-name { font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dr-name small { font-size: 11px; color: var(--ink-soft); font-weight: 400; }
.dr-num { font-size: 23px; font-weight: 700; color: var(--rose-deep); margin: 8px 0 2px; }
.dr-num small { font-size: 12px; color: var(--ink-soft); font-weight: 400; margin-left: 4px; }
.dr-money { font-size: 12.5px; color: var(--ink-soft); }
.dr-bar { height: 7px; border-radius: 7px; background: var(--rose-light); overflow: hidden; margin-top: 10px; }
.dr-bar i { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, #f0a0bd, #e8729a); }
.dr-pct { font-size: 11.5px; color: var(--ink-soft); margin-top: 5px; }
.dr-section-title { font-size: 14px; font-weight: 700; margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.dr-section-title span { font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.dr-tag { display: inline-block; background: var(--lavender); color: #7a5fd0; border-radius: 6px; padding: 1px 7px; font-size: 11px; }
.dr-total-row { background: var(--rose-light); font-weight: 700; }
.dr-empty { padding: 34px; text-align: center; color: var(--ink-soft); font-size: 13px; }
.dr-detail-tbl td { font-size: 13px; }
@media (max-width: 1100px) {
  .mg-layout { grid-template-columns: 1fr; }
  .mg-fields { position: static; }
}

/* ---------- 工作交接：发起面板（默认收起） + 交接人按需展开 ---------- */
.hv-publish { margin-bottom: 14px; }
.hv-publish[hidden] { display: none; }
.hv-publish-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.hv-publish-head h3 { font-size: 16px; color: var(--rose-deep); margin: 0; }
.hv-pub-hint { font-size: 12px; color: var(--ink-soft); }
.hv-pub-close { margin-left: auto; border: none; background: none; color: var(--ink-soft); font-size: 15px; line-height: 1; padding: 2px 4px; cursor: pointer; }
.hv-pub-close:hover { color: var(--rose-deep); }
.hv-label-note { font-size: 11.5px; font-weight: 400; color: var(--ink-soft); }
.hv-receiver-trigger { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.hv-receiver-trigger:hover, .hv-receiver-trigger.open { border-color: var(--rose); background: var(--rose-light); }
.hv-rt-icon { font-size: 18px; flex: 0 0 auto; }
.hv-rt-text { display: flex; flex-direction: column; gap: 2px; min-width: 120px; }
.hv-rt-text b { font-size: 13.5px; color: var(--ink); }
.hv-rt-text small { font-size: 11.5px; color: var(--ink-soft); }
.hv-rt-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-left: auto; justify-content: flex-end; }
.hv-chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; font-size: 11.5px; color: var(--rose-deep); }
.hv-chip.all { background: var(--rose); border-color: var(--rose); color: #fff; }
.hv-chip.more { color: var(--ink-soft); }
.hv-rt-arrow { flex: 0 0 auto; color: var(--rose-deep); font-size: 13px; }
.hv-picker { margin-top: 8px; }
.hv-picker-list { max-height: 168px; }
@media (max-width: 760px) {
  .hv-rt-chips { display: none; }
}

/* ===== 买家聊天 / 订单文本粘贴识别（四个业务板块共用）===== */
.paste-recognize { margin-bottom: 14px; }
.pr-head { font-size: 13px; line-height: 1.7; }
.pr-sub { display: block; font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; font-weight: 400; }
.pr-row { display: flex; gap: 8px; align-items: stretch; margin-top: 9px; }
.pr-text { flex: 1; min-width: 0; min-height: 62px; max-height: 180px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 13px; font-family: inherit; line-height: 1.6; resize: vertical; }
.pr-text:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(224, 122, 158, .14); }
.pr-row .btn { align-self: flex-end; white-space: nowrap; }
.pr-result { margin-top: 9px; }
.pr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 12px; color: var(--ink); }
.pr-chip b { color: var(--rose-deep); font-weight: 600; font-size: 11.5px; }
.pr-empty { font-size: 12px; color: var(--ink-soft); }
.pr-miss { font-size: 11.5px; color: var(--orange); margin-top: 6px; }
@media (max-width: 760px) {
  .pr-row { flex-direction: column; }
  .pr-row .btn { align-self: flex-start; }
}

/* ===== 单号库：输入即时带出提示 ===== */
.card-actions-inline { margin-left: auto; display: flex; align-items: center; gap: 12px; font-weight: 400; }
.card-actions-inline .card-action { margin-left: 0; }
.ti-hint {
  margin-top: 6px; font-size: 12px; line-height: 1.6; border-radius: 8px;
  padding: 6px 10px; background: var(--cream); color: var(--ink-soft); border: 1px dashed var(--line);
}
.ti-hint[hidden] { display: none; }
.ti-hint.ok { background: var(--mint); color: #2a7d61; border-color: #bfe8d7; border-style: solid; }
.ti-hint.new { background: #fff8ec; color: #a8641a; border-color: #f3d2a7; border-style: solid; }

/* ===== 群结果同步页 ===== */
.gs-hero { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; background: linear-gradient(120deg, #fff6f9 0%, #fffaf5 60%, #f6f1ff 100%); }
.gs-hero-main { flex: 1 1 420px; }
.gs-hero-sub { font-size: 13px; line-height: 1.85; color: var(--ink-soft); max-width: 780px; }
.gs-hero-ops { display: flex; gap: 8px; flex-wrap: wrap; }
.gs-status { display: inline-block; margin-top: 10px; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; }
.gs-status.ok { background: var(--mint); color: var(--green); }
.gs-status.warn { background: #fdf0e0; color: #a8641a; }
.gs-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1100px) { .gs-modes { grid-template-columns: 1fr; } }
.gs-mode { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--cream); display: flex; flex-direction: column; gap: 8px; }
.gs-mode-tag { font-size: 11.5px; color: var(--rose-deep); background: var(--rose-light); border-radius: 999px; padding: 2px 9px; align-self: flex-start; }
.gs-mode-title { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.gs-mode-body { font-size: 12.5px; line-height: 1.8; color: var(--ink-soft); flex: 1; }
.gs-mode-ops { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gs-mode-note { font-size: 12px; color: var(--ink-soft); }
.gs-help { font-size: 12px; color: var(--ink-soft); line-height: 1.8; margin-top: 8px; }
.gs-help code, .gs-mode-body code { background: var(--rose-light); color: var(--rose-deep); border-radius: 5px; padding: 1px 5px; font-size: 11.5px; }
.gs-ro { font-size: 12px; color: var(--ink-soft); font-weight: 400; }

/* =====================================================================
   v10：工作台首页 / 交接与公告重排 / 分析新布局 / 模块管理与外观
   ===================================================================== */

/* ---------- 外观与背景板 ---------- */
body[data-bg="plain"] { background: var(--bg); }
body[data-bg="glow"] {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 8% 0%, rgba(47, 107, 237, .06) 0, transparent 40%),
    radial-gradient(circle at 94% 4%, rgba(122, 95, 208, .05) 0, transparent 36%),
    radial-gradient(circle at 70% 98%, rgba(62, 163, 181, .05) 0, transparent 42%);
  background-attachment: fixed;
}
body[data-bg="stripes"] {
  background-color: var(--bg);
  background-image: repeating-linear-gradient(45deg, rgba(120, 140, 170, .055) 0 10px, transparent 10px 20px);
  background-attachment: fixed;
}
body[data-bg="waves"] {
  background-color: var(--bg);
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0 22px, rgba(120, 140, 170, .06) 22px 23px);
  background-attachment: fixed;
}
body[data-bg="checks"] {
  background-color: var(--bg);
  background-image:
    linear-gradient(45deg, rgba(120, 140, 170, .05) 25%, transparent 25%, transparent 75%, rgba(120, 140, 170, .05) 75%),
    linear-gradient(45deg, rgba(120, 140, 170, .05) 25%, transparent 25%, transparent 75%, rgba(120, 140, 170, .05) 75%);
  background-size: 36px 36px; background-position: 0 0, 18px 18px; background-attachment: fixed;
}
body[data-bg="paper"] {
  background-color: #f7f8fb;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.04'/></svg>");
  background-attachment: fixed;
}
body[data-bg="dots"] {
  background-color: var(--bg);
  background-image: radial-gradient(#d4dbe6 1.1px, transparent 1.1px);
  background-size: 18px 18px; background-attachment: fixed;
}
body[data-bg="grid"] {
  background-color: var(--bg);
  background-image: linear-gradient(#e6eaf1 1px, transparent 1px), linear-gradient(90deg, #e6eaf1 1px, transparent 1px);
  background-size: 26px 26px; background-attachment: fixed;
}
body[data-bg="gradient"] {
  background: linear-gradient(160deg, #f7f9fc 0%, #f3f6fb 55%, #f6f4fd 100%);
  background-attachment: fixed;
}
body[data-bg="image"]::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--bg-img, none); background-size: cover; background-position: center; opacity: .16;
}
body[data-bg="image"] .layout { position: relative; z-index: 1; }
body[data-density="compact"] .card { padding: 13px 15px; }
body[data-density="compact"] table.tbl td { padding: 7px 10px; }
body[data-density="compact"] .stat-card { padding: 13px; }
body[data-density="relaxed"] .card { padding: 20px 22px; }
body[data-density="relaxed"] table.tbl td { padding: 13px 14px; }
body[data-sidebar="plain"] .sidebar { background: #fff; backdrop-filter: none; }
body[data-sidebar="frosted"] .sidebar { background: #fff; backdrop-filter: none; }
body[data-sidebar="tinted"] .sidebar { background: var(--bg); backdrop-filter: none; }
body[data-sidebar="gradient"] .sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 55%, var(--rose-light) 100%);
  backdrop-filter: none;
}
body[data-card="outline"] .card { box-shadow: none; border: 1px solid var(--line); }
body[data-card="float"] .card { box-shadow: var(--shadow); }
body[data-card="glass"] .card {
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(9px) saturate(120%);
  -webkit-backdrop-filter: blur(9px) saturate(120%); border-color: rgba(255, 255, 255, .9);
}
body[data-card="flat"] .card { box-shadow: none; border-color: transparent; background: #fff; }
.sidebar-theme {
  width: 100%; margin-top: 16px; padding: 9px 12px; border-radius: 10px; cursor: pointer;
  border: 1px dashed var(--line); background: transparent; color: var(--ink-soft); font-size: 12.5px;
}
.sidebar-theme:hover { color: var(--rose-deep); border-color: var(--rose); background: var(--rose-light); }

/* ---------- 工作台首页 ---------- */
.wb-hero {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px;
}
.wb-hero-main { flex: 1 1 460px; min-width: 0; }
.wb-hello { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -.2px; }
.wb-hello b { color: var(--rose-deep); }
.wb-wave { margin-left: 8px; font-size: 17px; }
.wb-meta { margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wb-slogan { background: var(--rose-light); border: 1px solid transparent; color: var(--rose-deep); border-radius: 4px; padding: 1px 8px; font-weight: 500; font-size: 12px; }
.wb-care { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--ink-soft); max-width: 720px; }
.wb-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.wb-chip { display: inline-flex; align-items: center; gap: 6px; background: #fbfcfe; border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; font-size: 12px; color: var(--ink-soft); }
.wb-chip b { color: var(--ink); font-size: 13px; font-weight: 600; }
.wb-chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--rose); opacity: .7; }

.wb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 1100px) { .wb-stats { grid-template-columns: 1fr 1fr; } }
.wb-stat {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.wb-stat:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.wb-stat-ico { width: 34px; height: 34px; flex: 0 0 34px; border-radius: var(--radius-sm); background: var(--rose-light); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.wb-stat-main { display: flex; flex-direction: column; min-width: 0; }
.wb-stat-main b { font-size: 22px; font-weight: 600; line-height: 1.15; color: var(--ink); letter-spacing: -.4px; }
.wb-stat-main small { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.wb-stat-go { margin-left: auto; color: var(--ink-3); font-size: 16px; }

.wb-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .wb-cols { grid-template-columns: 1fr; } }
.wb-col { min-width: 0; }

.wb-today-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wb-today-head h3 { margin-bottom: 0; }
.wb-today-stat { font-size: 12px; color: var(--ink-soft); }
.wb-today-stat b { color: var(--ink); font-size: 13.5px; font-weight: 600; }
.wb-progress { height: 6px; border-radius: 999px; background: #eef1f6; overflow: hidden; margin: 12px 0 8px; }
.wb-progress i { display: block; height: 100%; border-radius: 999px; background: var(--rose); transition: width .4s; }
.wb-today-sub { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 10px; }
.wb-today-sub b { color: var(--ink); font-weight: 600; }
/* 今日事今日清：只留汇总格子，不再铺明细条目 */
.wb-today-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 8px; margin-top: 4px; }
.wb-today-metric {
  display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 10px;
  background: #f8f9fc; border: 1px solid var(--line-soft); text-decoration: none; color: var(--ink);
  min-width: 0; transition: background .15s, border-color .15s;
}
a.wb-today-metric:hover { background: #fff; border-color: var(--line); }
.wb-today-metric b { font-size: 19px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.wb-today-metric small { font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-today-metric.tone-rose b { color: var(--rose-deep); }
.wb-today-metric.tone-green b { color: #2f8f5b; }
.wb-today-metric.tone-purple b { color: #6d5bd0; }
.wb-today-metric.tone-red b { color: var(--red); }
.wb-today-metric.tone-gray b { color: var(--ink-3); }

.wb-mini-list { display: flex; flex-direction: column; }
.wb-mini { display: flex; align-items: center; gap: 8px; padding: 8px 2px; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); font-size: 13px; }
.wb-mini:last-child { border-bottom: none; }
.wb-mini:hover { color: var(--rose-deep); }
.wb-mini-tag { flex: 0 0 auto; font-size: 11px; color: #7a5fd0; background: var(--lavender); border-radius: 6px; padding: 1px 7px; max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-mini-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-mini-meta { flex: 0 0 auto; font-size: 11px; color: var(--ink-soft); }
.wb-pin { font-size: 11px; }

.wb-sched { display: flex; flex-direction: column; gap: 10px; }
.wb-sched-line { display: flex; gap: 10px; align-items: flex-start; }
.wb-sched-day { flex: 0 0 34px; font-size: 12px; font-weight: 700; color: var(--rose-deep); padding-top: 2px; }
.wb-sched-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wb-sched-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; line-height: 1.5; }
.wb-sched-item .shift-pill { padding: 1px 8px; font-size: 11.5px; border-radius: 6px; }
.wb-sched-names { color: var(--ink); word-break: break-word; }
.wb-sched-none { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- 工作交接：标题栏 / 统计瓦片 / 按日期分组的表格 ---------- */
.hv-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; margin-bottom: 12px;
}
.hv-head-l { min-width: 0; }
.hv-head-title { font-size: 16px; font-weight: 700; color: var(--rose-deep); letter-spacing: .2px; }
.hv-head-title b { font-size: 19px; color: var(--rose); font-variant-numeric: tabular-nums; }
.hv-head-sub { font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; margin-top: 5px; max-width: 600px; }
.hv-head-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.hv-tabs { display: inline-flex; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.hv-tabs button {
  display: inline-flex; align-items: center; gap: 5px; border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: 12.5px; color: var(--ink-soft); padding: 6px 14px; border-radius: 999px; transition: .15s;
}
.hv-tabs button i { font-style: normal; font-size: 12px; }
.hv-tabs button:hover { color: var(--rose-deep); }
.hv-tabs button.on { background: var(--rose); color: #fff; box-shadow: 0 2px 8px rgba(216, 120, 160, .28); }

.hv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.hv-tile {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; text-align: left; font-family: inherit;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--line);
  border-radius: 12px; padding: 10px 14px; cursor: pointer; transition: .15s;
  box-shadow: 0 2px 10px rgba(216, 120, 160, .05);
}
.hv-tile b { font-size: 22px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.hv-tile-lb { font-size: 13px; font-weight: 700; color: var(--ink); }
.hv-tile-hint { flex-basis: 100%; font-size: 11px; color: var(--ink-soft); }
.hv-tile:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.hv-tile.red { border-left-color: var(--red); } .hv-tile.red b { color: var(--red); }
.hv-tile.orange { border-left-color: var(--orange); } .hv-tile.orange b { color: var(--orange); }
.hv-tile.green { border-left-color: var(--green); } .hv-tile.green b { color: var(--green); }
.hv-tile.plain { border-left-color: var(--rose); } .hv-tile.plain b { color: var(--rose-deep); }
.hv-tile.on { background: var(--rose-light); border-color: var(--rose); box-shadow: 0 0 0 2px rgba(232, 114, 154, .15); }

.hv-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.hv-search-wrap { position: relative; flex: 1 1 240px; max-width: 360px; }
.hv-search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 11.5px; opacity: .55; pointer-events: none; }
.hv-search {
  width: 100%; padding: 9px 13px 9px 32px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-family: inherit; font-size: 13px; color: var(--ink);
}
.hv-search:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(232, 114, 154, .13); }
.hv-range { display: inline-flex; gap: 2px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.hv-range button { border: none; background: none; font-family: inherit; font-size: 12px; color: var(--ink-soft); padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.hv-range button:hover { color: var(--rose-deep); }
.hv-range button.on { background: #fff; color: var(--rose-deep); font-weight: 600; box-shadow: 0 1px 5px rgba(216, 120, 160, .16); }

.hv-list { display: block; margin-bottom: 8px; }
.hv-table {
  width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hv-table thead th {
  position: sticky; top: 0; z-index: 3; text-align: left; white-space: nowrap;
  background: var(--rose-light); color: var(--rose-deep);
  font-size: 11.5px; font-weight: 700; letter-spacing: .4px; padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}
.hv-table thead th:first-child { border-top-left-radius: var(--radius); }
.hv-table thead th:last-child { border-top-right-radius: var(--radius); }
.hv-table .c-who { width: 112px; }
.hv-table .c-time { width: 62px; }
.hv-table .c-prog { width: 178px; }
.hv-table .c-ops { width: 148px; }

.hv-grp td {
  background: var(--cream); padding: 8px 12px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.hv-table tbody:first-of-type .hv-grp td { border-top: none; }
.hv-grp-d { font-size: 12.5px; font-weight: 700; color: var(--rose-deep); }
.hv-grp-n { float: right; font-size: 11.5px; color: var(--ink-soft); }

.hv-tr { cursor: pointer; }
.hv-tr td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hv-tr:hover td { background: #fffbf8; }
.hv-tr.open td { background: var(--rose-light); }
.hv-tr.open td.c-item { border-bottom-color: transparent; }

.hv-it { display: flex; gap: 8px; align-items: flex-start; }
.hv-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; }
.hv-dot.red { background: var(--red); box-shadow: 0 0 0 3px rgba(224, 82, 82, .12); }
.hv-dot.orange { background: var(--orange); box-shadow: 0 0 0 3px rgba(232, 150, 60, .14); }
.hv-dot.green { background: var(--green); box-shadow: 0 0 0 3px rgba(58, 169, 129, .14); }
.hv-it-body { flex: 1; min-width: 0; }
.hv-it-title { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.5; word-break: break-word; }
.hv-it-caret { display: inline-block; margin-left: 6px; font-size: 10px; color: var(--ink-soft); transition: transform .15s; }
.hv-tr.open .hv-it-caret { transform: rotate(180deg); }
.hv-it-sub {
  font-size: 12px; color: var(--ink-soft); line-height: 1.6; margin-top: 3px; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.hv-it-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.hv-it-chips .hv-chip b { color: var(--ink-soft); font-weight: 600; margin-right: 4px; }
.hv-it-reply {
  margin-top: 6px; font-size: 12px; line-height: 1.6; color: #2f8f6d; background: var(--mint);
  border-left: 2px solid var(--green); border-radius: 0 7px 7px 0; padding: 4px 9px; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hv-it-reply b { display: block; font-size: 11px; margin-bottom: 2px; }

.hv-who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hv-who-n { font-size: 12.5px; color: var(--ink); word-break: break-word; }
.hv-av {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--rose-light);
  color: var(--rose-deep); font-size: 11.5px; font-weight: 700;
}
.hv-av.sm { width: 18px; height: 18px; font-size: 10.5px; }
.hv-tr .c-time { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }

.hv-pg-bar { display: flex; height: 5px; border-radius: 999px; background: #f4e8ee; overflow: hidden; }
.hv-pg-bar i { display: block; height: 100%; }
.hv-pg-bar i.done { background: var(--green); }
.hv-pg-bar i.doing { background: var(--orange); }
.hv-pg-txt { font-size: 11.5px; color: var(--ink-soft); margin-top: 5px; }
.hv-pg-txt b { font-size: 12.5px; color: var(--ink); }
.hv-pg-names { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.hv-who-chip { font-size: 11px; border-radius: 999px; padding: 1px 7px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); white-space: nowrap; }
.hv-who-chip.done { border-color: rgba(58, 169, 129, .35); background: var(--mint); color: #2f8f6d; }
.hv-who-chip.doing { border-color: rgba(232, 150, 60, .35); background: #fff6e9; color: #b9741f; }
.hv-who-chip.todo { border-color: rgba(224, 82, 82, .22); background: #fff3f3; color: #c34a4a; }

.hv-tr .c-ops { white-space: normal; }
.hv-tr .c-ops .btn { margin: 0 5px 5px 0; padding: 4px 10px; font-size: 12px; white-space: nowrap; }

.hv-det { display: none; }
.hv-det.open { display: table-row; }
.hv-det > td { padding: 0; background: var(--rose-light); border-bottom: 1px solid var(--line); }
.hv-det-in { display: grid; gap: 9px; padding: 2px 12px 14px; }
.hv-det-blk { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--rose); border-radius: 10px; padding: 10px 13px; }
.hv-det-blk.extra { border-left-color: #b9a4e8; background: var(--lavender); }
.hv-det-blk h5 { font-size: 11.5px; font-weight: 700; color: var(--rose-deep); letter-spacing: .3px; margin: 0 0 7px; }
.hv-det-blk.extra h5 { color: #7a5fd0; }
.hv-det-text { font-size: 13px; line-height: 1.8; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.hv-det-kv { display: flex; gap: 10px; font-size: 12.5px; padding: 2px 0; }
.hv-det-kv span { min-width: 62px; color: var(--ink-soft); }
.hv-det-kv b { font-weight: 600; }
.hv-det-reply { margin-top: 8px; font-size: 12.5px; line-height: 1.7; background: var(--mint); border-radius: 8px; padding: 8px 11px; white-space: pre-wrap; word-break: break-word; }
.hv-det-reply b { display: block; font-size: 11px; color: #2f8f6d; margin-bottom: 3px; }

/* 我接收的工单：处理结果填写区（完结 / 继续转交） */
.hv-det-blk.hv-result { border-left-color: #2f8f6d; background: #f7fdfa; }
.hv-det-blk.hv-result h5 { color: #2f8f6d; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hv-det-blk.hv-result h5 .hv-small { font-weight: 400; }
.hv-det-blk.hv-result.done { border-left-color: var(--line-strong); background: #fbfbfd; }
.hv-result-area {
  width: 100%; min-height: 76px; resize: vertical; font-family: inherit; font-size: 13px; line-height: 1.75;
  padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--ink);
}
.hv-result-area:focus { outline: none; border-color: #2f8f6d; box-shadow: 0 0 0 3px rgba(47,143,109,.12); }
.hv-result-ops { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.hv-result-tip { font-size: 11.5px; color: var(--ink-soft); }

.hv-mini { width: 100%; border-collapse: collapse; }
.hv-mini th { text-align: left; font-size: 11px; font-weight: 700; color: var(--ink-soft); padding: 5px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hv-mini td { font-size: 12.5px; padding: 6px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.hv-mini tr:last-child td { border-bottom: none; }
.hv-mini-reply { color: var(--ink-soft); white-space: pre-wrap; word-break: break-word; }

.hv-muted { color: var(--ink-soft); }
.hv-small { font-size: 11.5px; }
.hv-empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 34px 20px; text-align: center; color: var(--ink-soft); font-size: 13px; }

@media (max-width: 980px) {
  .hv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv-table .c-prog { width: 160px; }
}
@media (max-width: 760px) {
  .hv-head { align-items: flex-start; padding: 14px; }
  .hv-head-r { width: 100%; justify-content: space-between; }
  .hv-tabs button { padding: 6px 10px; font-size: 12px; }
  .hv-table { border: none; box-shadow: none; background: none; }
  .hv-table thead { display: none; }
  .hv-table tbody { display: block; }
  .hv-table tr { display: block; }
  .hv-table td, .hv-table .c-no, .hv-table .c-who, .hv-table .c-pri, .hv-table .c-time, .hv-table .c-prog, .hv-table .c-ops { display: block; width: auto; }
  .hv-grp td { background: none; border: none; padding: 12px 2px 6px; }
  .hv-tr {
    background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(216, 120, 160, .07);
  }
  .hv-tr td { border: none; padding: 4px 12px; }
  .hv-tr td.c-item { padding-top: 11px; }
  .hv-tr td.c-time::before { content: "🕒 "; color: var(--ink-soft); }
  .hv-tr td.c-who::before { content: "发起 "; font-size: 11px; color: var(--ink-soft); }
  .hv-tr td.c-pri::before { content: "优先级 "; font-size: 11px; color: var(--ink-soft); }
  .hv-tr td.c-no::before { content: "工单 "; font-size: 11px; color: var(--ink-soft); }
  .hv-tr .hv-who { display: inline-flex; vertical-align: middle; }
  .hv-tr td.c-ops { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 12px 12px; }
  .hv-tr td.c-ops .btn { margin: 0; }
  .hv-pg-names { display: none; }
  /* 展开的详情在窄屏下单独成卡，避免和上面那张卡视觉粘在一起 */
  .hv-table .hv-det { display: none; }
  .hv-table .hv-det.open { display: block; }
  .hv-table .hv-det.open > td {
    display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 0 12px 10px; margin: -4px 0 12px; box-shadow: 0 2px 10px rgba(216, 120, 160, .07);
  }
  .hv-det-in { padding: 0; gap: 8px; }
  .hv-det-blk { border-left-width: 3px; }
  .hv-mini th:nth-child(4), .hv-mini td:nth-child(4) { display: none; }
}

.hv-form-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 900px) { .hv-form-grid { grid-template-columns: 1fr; } }
.hv-form-note { font-size: 12px; color: var(--ink-soft); line-height: 1.7; background: var(--cream); border: 1px dashed var(--line); border-radius: 9px; padding: 9px 12px; }

/* ---------- 公告栏：五列规整表 ---------- */
.an-hero-main { min-width: 0; flex: 1 1 420px; }
.an-hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.an-hero-ops { display: flex; gap: 8px; align-items: flex-start; }
.an-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.an-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.an-search {
  flex: 0 1 280px; min-width: 180px; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; font-size: 13px; color: var(--ink); font-family: inherit;
}
.an-search:focus { outline: none; border-color: var(--rose); }
.an-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.an-thead, .an-trow {
  display: grid; grid-template-columns: 86px minmax(140px, 220px) minmax(0, 1fr) 96px 190px; gap: 10px; align-items: center;
}
/* 主账号多一列批量勾选 */
.an-thead.has-pick, .an-trow.has-pick {
  grid-template-columns: 30px 86px minmax(140px, 220px) minmax(0, 1fr) 96px 190px;
}
.an-td-pick { display: flex; align-items: center; justify-content: center; }
.an-td-pick input { width: 15px; height: 15px; accent-color: var(--rose); cursor: pointer; }
.an-thead {
  padding: 9px 14px; background: var(--cream); border-bottom: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-soft); font-weight: 700;
}
.an-trow { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.an-trow:last-child { border-bottom: none; }
.an-trow:hover { background: #fafbfd; }
.an-trow.pinned { background: #fffaf2; }
.an-trow.an-unread { border-left: 3px solid var(--rose); padding-left: 11px; }
.an-td-date { font-size: 12px; color: var(--ink-soft); }
.an-td-subject { font-size: 13.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 5px; min-width: 0; }
.an-td-subject span { flex: 0 0 auto; }
.an-td-content { font-size: 13px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-td-from { font-size: 12.5px; color: var(--ink); }
.an-td-ops { display: flex; align-items: center; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.an-td-ops .tag { font-size: 11px; }
.an-td-ops .btn { padding: 4px 9px; font-size: 11.5px; }
/* 特异性要压过 .an-td-subject span{flex:0 0 auto}，否则长标题不省略、直接盖住附件徽标 */
.an-td-subject .an-td-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-att {
  display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
  background: var(--cream); border: 1px solid var(--line); border-radius: 999px;
  padding: 1px 7px; font-size: 10.5px; font-weight: 600; color: var(--ink-soft);
}
.an-att span { flex: 0 0 auto; }

/* ---------- 公告：主账号批量隐藏 / 删除 ---------- */
.an-batch {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 10px; padding: 8px 12px;
  background: #fbfcfe; border: 1px dashed var(--line); border-radius: 10px;
}
.an-batch-tip { font-size: 12px; color: var(--ink-soft); }
.an-batch-tip b { color: var(--ink); font-size: 13px; }
.an-batch-note { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.an-batch .btn[disabled] { opacity: .45; cursor: not-allowed; }
.an-hid-tag {
  flex: 0 0 auto; font-size: 10.5px; font-weight: 600; color: var(--ink-soft);
  background: var(--line-soft); border-radius: 999px; padding: 1px 7px;
}
.an-trow-old { background: #fcfcfd; }
.an-trow-old .an-td-title { color: var(--ink-soft); font-weight: 600; }
.an-trow-old.is-hidden { opacity: .62; }
.ad-admin-ops { display: flex; gap: 6px; flex-wrap: wrap; margin-right: auto; }

/* ---------- 公告：超过 30 天自动折叠 ---------- */
.an-older-wrap { margin-top: 12px; }
.an-older-bar {
  display: flex; align-items: center; gap: 8px; width: 100%; cursor: pointer;
  padding: 10px 14px; font-family: inherit; font-size: 12.5px; color: var(--ink-soft);
  background: #fbfcfe; border: 1px dashed var(--line); border-radius: 10px; text-align: left;
}
.an-older-bar:hover { background: #fff; border-color: var(--ink-3); }
.an-older-title { font-weight: 700; color: var(--ink); font-size: 13px; }
.an-older-tip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-older-caret { margin-left: auto; flex: 0 0 auto; color: var(--ink-soft); }
.an-older-body {
  margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff;
}
.an-older-body .an-trow { grid-template-columns: 86px minmax(140px, 220px) minmax(0, 1fr) 96px 120px; }

/* ---------- 公告：发布时上传图片与附件 ---------- */
.an-up { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: #fbfcfe; }
.an-up-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.an-up-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.an-up-title b { font-size: 13.5px; color: var(--ink); }
.an-up-tip { font-size: 11.5px; color: var(--ink-soft); }
.an-up-pick { cursor: pointer; }
.an-up-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.an-up-item {
  position: relative; width: 92px; height: 92px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: var(--cream);
}
.an-up-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.an-up-rm {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  border: none; background: rgba(40, 20, 30, .62); color: #fff; font-size: 11px; line-height: 1; cursor: pointer;
}
.an-up-rm:hover { background: var(--rose-deep); }
.an-up-cap {
  position: absolute; left: 0; right: 0; bottom: 0; background: rgba(40, 20, 30, .55); color: #fff;
  font-size: 10px; text-align: center; padding: 2px 0;
}
.an-up-empty { font-size: 12px; color: var(--ink-soft); }
@media (max-width: 760px) {
  .an-up { padding: 10px 12px; }
  .an-up-head { align-items: flex-start; gap: 8px; }
  /* 标题与提示上下排，「+ 选图片」按钮留在右侧顶部，不再单独换行吊在左边 */
  .an-up-title { flex-direction: column; align-items: flex-start; gap: 2px; }
  .an-up-item { width: 84px; height: 84px; }
  .an-shot-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
  .force-scroll { max-height: 42vh; }
}

/* ---------- 附件条（发布态 / 阅读态共用） ---------- */
.an-file-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.an-files { display: flex; flex-direction: column; gap: 6px; }
.an-file {
  display: flex; align-items: center; gap: 10px; background: var(--cream); border: 1px solid var(--line);
  border-radius: 10px; padding: 7px 11px; cursor: pointer; transition: border-color .15s, background .15s;
}
.an-file:hover { border-color: var(--rose); background: #fff; }
.an-file.busy { opacity: .6; }
.an-file-ico { font-size: 17px; flex: 0 0 auto; }
.an-file-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.an-file-main b {
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.an-file-main i { font-style: normal; font-size: 11px; color: var(--ink-soft); }
.an-file-go { font-size: 11.5px; color: var(--rose-deep); flex: 0 0 auto; }
.an-file-edit { cursor: default; }
.an-file-edit:hover { border-color: var(--line); background: var(--cream); }

/* ---------- 图片墙：公告明细与强制阅读弹窗 ---------- */
.an-shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 9px; }
.an-shot {
  position: relative; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--cream); aspect-ratio: 4 / 3; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
/* 公告图多是截图/规范图，用 contain 完整显示，裁掉一半反而看不出内容 */
.an-shot img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.an-shot:hover { border-color: var(--rose); }
.an-shot-tip { font-size: 11px; color: var(--ink-soft); }

/* 大图查看层 */
.an-lightbox {
  position: fixed; inset: 0; z-index: 9999; background: rgba(30, 14, 22, .82);
  display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out;
}
.an-lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.an-lightbox-x {
  position: fixed; top: 18px; right: 18px; border: none; border-radius: 999px; padding: 7px 16px;
  background: rgba(255, 255, 255, .18); color: #fff; font-size: 12.5px; cursor: pointer; backdrop-filter: blur(4px);
}
.an-lightbox-x:hover { background: rgba(255, 255, 255, .3); }
.an-lightbox-tip {
  position: fixed; bottom: 20px; left: 0; right: 0; text-align: center;
  font-size: 12px; color: rgba(255, 255, 255, .62);
}
/* 正文 + 图片 + 附件放在一个独立滚动区里，底部的倒计时按钮永远留在可视区，
   否则公告一长，用户得先滚到底才能看见「我已阅读」 */
.force-scroll { max-height: 46vh; overflow-y: auto; padding-right: 6px; }
.force-att-label { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); margin: 12px 0 6px; }
.force-mask .an-shot-grid { grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); }
@media (max-width: 1000px) {
  .an-thead, .an-thead.has-pick { display: none; }
  .an-trow, .an-trow.has-pick, .an-older-body .an-trow { grid-template-columns: 1fr; gap: 6px; }
  .an-td-pick { justify-content: flex-start; }
  .an-batch-note { margin-left: 0; }
  .an-td-content { white-space: normal; }
  .an-td-ops { justify-content: flex-start; }
}
.an-publish { margin-top: 18px; }

/* ---------- 知识库：条目头尾 ---------- */
.kn-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kn-ops { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.kn-foot { font-size: 11.5px; color: var(--ink-soft); margin-top: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---------- 模块管理：页签 / 搜索 / 外观 ---------- */
.mg-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.mg-tabs button { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); font-size: 13.5px; cursor: pointer; }
.mg-tabs button.active { background: var(--rose); border-color: var(--rose); color: #fff; }
.mg-side { min-width: 0; }
.mg-fields { position: sticky; top: 12px; }
.mg-search { display: flex; gap: 8px; margin-bottom: 12px; }
.mg-search input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 13px; font-family: inherit; color: var(--ink); }
.mg-search input:focus { outline: none; border-color: var(--rose); }
.mg-mod-row .mg-en { font-size: 11.5px; }
.mg-appearance { max-width: 1080px; }
.mg-app-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.mg-app-ops { display: flex; gap: 8px; }

.th-wrap { display: flex; flex-direction: column; gap: 18px; margin-top: 12px; }
.th-sec { border-top: 1px solid var(--line-soft); padding-top: 14px; }
.th-sec:first-child { border-top: none; padding-top: 0; }
.th-title { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.th-tip { font-size: 12px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 10px; }
.th-presets { display: flex; gap: 10px; flex-wrap: wrap; }
.th-preset {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--ink);
}
.th-preset i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.th-preset.active { border-color: var(--rose); box-shadow: 0 0 0 2px var(--rose-light); font-weight: 600; }
.th-accent { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); }
.th-inline { display: inline-flex; align-items: center; gap: 8px; }
.th-inline input[type="color"] { width: 40px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; }
.th-now b { font-family: ui-monospace, monospace; }
.th-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.th-chip { border: 1px solid var(--line); background: #fff; color: var(--ink-soft); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; cursor: pointer; }
.th-chip:hover { border-color: var(--rose); color: var(--rose-deep); }
.th-chip.active { background: var(--rose); border-color: var(--rose); color: #fff; }
.th-bgimg { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.th-bgimg input { flex: 1 1 240px; min-width: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--cream); font-size: 12.5px; font-family: inherit; color: var(--ink); }
.th-range { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--ink-soft); }
.th-range input { flex: 0 1 240px; accent-color: var(--rose); }
.th-preview { background: var(--peach); border: 1px dashed var(--line); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.th-pv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.th-pv-h { font-size: 14px; font-weight: 700; color: var(--rose-deep); margin-bottom: 10px; }
.th-pv-row { font-size: 12.5px; color: var(--ink); margin-bottom: 7px; display: flex; align-items: center; gap: 7px; }
.th-pv-tag { font-size: 11px; background: var(--rose-light); color: var(--rose-deep); border-radius: 999px; padding: 1px 9px; }
.th-pv-btn { display: inline-block; margin-top: 6px; background: var(--rose); color: #fff; border-radius: 9px; padding: 7px 16px; font-size: 12.5px; }

/* ---------- 数据分析：新布局 ---------- */
.an2-nav {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px 16px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px;
}
.an2-groups { display: flex; gap: 8px; flex-wrap: wrap; }
.an2-group {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--cream);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--ink-soft); cursor: pointer;
}
.an2-group.active { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; font-weight: 600; }
.an2-mods { display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.an2-mod { border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 5px 12px; font-size: 12.5px; color: var(--ink-soft); cursor: pointer; }
.an2-mod:hover { background: var(--cream); color: var(--rose-deep); }
.an2-mod.active { background: var(--rose-light); border-color: var(--line-strong); color: var(--rose-deep); font-weight: 600; }
.an2-filter { padding-bottom: 14px; }
.an2-range { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.an2-bar { margin-bottom: 0; }
.an2-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 1100px) { .an2-kpis { grid-template-columns: 1fr 1fr; } }
.an2-kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.an2-kpi-lbl { font-size: 12.5px; color: var(--ink-soft); }
.an2-kpi-val { font-size: 25px; font-weight: 700; color: var(--rose-deep); margin: 6px 0 4px; line-height: 1.15; }
.an2-kpi.t2 .an2-kpi-val { color: #7a5fd0; }
.an2-kpi.t3 .an2-kpi-val { color: var(--green); }
.an2-kpi.t4 .an2-kpi-val { color: var(--orange); }
.an2-kpi-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.an2-kpi-sub { font-size: 11.5px; color: var(--ink-soft); }
.an2-delta { font-size: 11px; border-radius: 999px; padding: 1px 8px; background: #f1f4f8; color: var(--ink-soft); }
.an2-delta.up { background: #fdf0e0; color: #a8641a; }
.an2-delta.down { background: var(--mint); color: var(--green); }
.an2-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.an2-card-head h3 { margin-bottom: 0; }
.an2-seg { display: inline-flex; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.an2-seg button { border: none; background: none; color: var(--ink-soft); font-size: 12px; padding: 4px 12px; border-radius: 999px; cursor: pointer; }
.an2-seg button.active { background: #fff; color: var(--rose-deep); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.an2-canvas { height: 230px; margin-top: 12px; position: relative; }
.an2-canvas canvas { width: 100% !important; height: 100% !important; }
.an2-insight { font-size: 12.5px; color: var(--ink-soft); line-height: 1.8; margin-top: 10px; background: var(--cream); border-radius: 9px; padding: 9px 12px; }
.an2-insight b { color: var(--rose-deep); }
.an2-charts .card { margin-bottom: 0; }
.an-dim-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--ink-soft); }
.an-dim-label { font-weight: 700; color: var(--ink); font-size: 12.5px; }
.an-dim-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--rose-light); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 11px; font-size: 12px; color: var(--rose-deep); }
.an-dim-chip b { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: var(--rose); color: #fff; font-size: 10px; font-weight: 700; }
.an-dim-arrow { color: var(--ink-soft); font-size: 12px; }
.an-dim-tag { font-size: 11px; color: var(--ink-soft); background: var(--cream); border: 1px dashed var(--line); border-radius: 999px; padding: 2px 9px; }
.an-dim-tip { font-size: 11.5px; color: var(--ink-soft); }

/* ---------- 快递群清单页（#/q，免登录，手机优先） ---------- */
.ql-wrap { min-height: 100vh; padding: 18px 12px 40px; display: flex; justify-content: center; align-items: flex-start; }
.ql-card { width: 100%; max-width: 980px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 20px 16px 16px; }
.ql-brand { font-size: 12px; color: var(--rose-deep); letter-spacing: .3px; margin-bottom: 10px; }
.ql-title { font-size: 19px; color: var(--ink); margin-bottom: 12px; }
.ql-loading { padding: 30px 0; text-align: center; color: var(--ink-soft); font-size: 14px; }
.ql-sum { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; background: var(--rose-light); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.ql-sum-main { font-size: 14px; color: var(--ink); }
.ql-sum-main b { font-size: 22px; color: var(--rose-deep); margin-right: 2px; }
.ql-sum-sub { font-size: 12px; color: var(--ink-soft); }
.ql-empty { text-align: center; color: var(--ink-soft); font-size: 13.5px; padding: 26px 10px; background: var(--mint); border-radius: 12px; }

.ql-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; -webkit-overflow-scrolling: touch; }
.ql-chips::-webkit-scrollbar { display: none; }
.ql-chip { flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); color: var(--ink-soft); font-size: 13px; cursor: pointer; font-family: inherit; }
.ql-chip.active { background: var(--rose); border-color: var(--rose); color: #fff; }

/* 填表人：多个快递员同时填时，各填各的 */
.ql-me { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ql-me label { font-size: 12.5px; color: var(--ink-soft); flex: 0 0 auto; }
.ql-me input { flex: 0 0 150px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-family: inherit; background: #fff; }
.ql-me-tip { font-size: 11.5px; color: var(--ink-soft); }

/* 搜索 / 批量查询 / 批量处理（第二十六轮：快递客服清单页） */
.ql-tools { display: flex; gap: 8px; align-items: center; margin: 2px 0 8px; flex-wrap: wrap; }
.ql-search { position: relative; flex: 1 1 240px; display: flex; align-items: center; }
.ql-search-ico { position: absolute; left: 10px; font-size: 12px; opacity: .65; pointer-events: none; }
.ql-search input {
  width: 100%; padding: 8px 30px 8px 28px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; font-family: inherit; background: #fff; color: var(--ink);
}
.ql-search input:focus { outline: none; border-color: var(--rose); }
.ql-qclear {
  position: absolute; right: 6px; width: 20px; height: 20px; border: none; border-radius: 50%;
  background: var(--line); color: var(--ink-soft); font-size: 13px; line-height: 1; cursor: pointer; font-family: inherit;
}
.ql-tool-btn {
  flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--cream); color: var(--ink-soft); font-size: 12.5px; font-family: inherit; cursor: pointer;
}
.ql-tool-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.ql-tool-btn.on { background: var(--rose-light); border-color: var(--rose); color: var(--rose-deep); font-weight: 600; }
.ql-batch { margin: 0 0 10px; padding: 10px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--paper, #fafbfd); }
.ql-batch[hidden] { display: none; }
.ql-batch textarea {
  width: 100%; min-height: 64px; resize: vertical; padding: 9px 10px; border: 1px solid var(--line);
  border-radius: 9px; font: inherit; font-size: 13px; line-height: 1.7; background: #fff; color: var(--ink);
}
.ql-batch textarea:focus { outline: none; border-color: var(--rose); }
.ql-batch-ops { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ql-batch-tip { font-size: 11.5px; color: var(--ink-soft); }
.ql-miss { flex: 1 1 100%; font-size: 11.5px; color: var(--red); line-height: 1.6; }
.ql-bulk {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: var(--mint); border: 1px solid var(--line-soft);
}
.ql-bulk-label { font-size: 12px; font-weight: 600; color: var(--ink-soft); flex: 0 0 auto; }
.ql-bulk select {
  padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px;
  font-family: inherit; background: #fff; color: var(--ink); min-width: 120px;
}
.ql-bulk-tip { font-size: 11.5px; color: var(--ink-soft); }
.q-tag.cancel { background: #eef7f1; color: #2f7a52; }

/* 表格：桌面端真表格，窄屏自动折成一行一单 */
.q-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.q-table { width: 100%; min-width: 800px; border-collapse: collapse; font-size: 13px; }
.q-table thead th { background: var(--cream); color: var(--ink-soft); font-weight: 600; font-size: 12px; text-align: left; padding: 9px 10px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.q-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.q-table tr:last-child td { border-bottom: none; }
/* 搜索 / 批量查询靠 hidden 切显隐（不重建 DOM）；移动端 tr 是 display:block，必须显式盖掉 */
.q-table tbody tr[hidden] { display: none !important; }
.q-table tr.is-done { background: var(--cream); }
.q-no b { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; letter-spacing: .3px; color: var(--ink); white-space: nowrap; word-break: normal; }
/* 第三十一轮多了「逐单提交」一列，给几列定个下限，免得单号 / 状态被挤成竖排 */
.q-table td.q-res { min-width: 158px; }
.q-table td.q-rem { min-width: 132px; }
.q-table td.q-st { min-width: 108px; }
.q-table td.q-st .q-sub { white-space: nowrap; }
.q-table td.q-op { white-space: nowrap; }
.q-sub { display: block; font-size: 11.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.6; }
.q-tag { display: inline-block; border-radius: 6px; padding: 1px 7px; font-size: 11.5px; background: var(--cream); color: var(--ink-soft); }
.q-tag.orange { background: #fdf0e3; color: #a5661f; }
.q-tag.purple { background: #f1ebf9; color: #6a4b93; }
.q-amt { color: var(--rose-deep); font-size: 12.5px; font-weight: 600; margin-left: 6px; }
.q-why { display: block; font-size: 11.5px; color: var(--ink-soft); margin-top: 5px; line-height: 1.6; }
.q-sel { width: 100%; min-width: 104px; border: 1.5px solid var(--line); border-radius: 8px; padding: 7px 6px; font-size: 13px; font-family: inherit; color: var(--ink); background: #fff; }
.q-sel:focus { outline: none; border-color: var(--rose); }
.q-sel.filled { border-color: var(--rose); background: var(--rose-light); font-weight: 600; }
.q-rem-in { width: 100%; min-width: 96px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; font-size: 12.5px; font-family: inherit; color: var(--ink); background: #fff; }
.q-rem-in:focus { outline: none; border-color: var(--rose); }
/* 处理结果：下拉 + 手填自定义 + 逐单提交 */
.q-pick { display: flex; flex-direction: column; gap: 6px; }
.q-custom { width: 100%; min-width: 104px; border: 1.5px dashed var(--rose); border-radius: 8px; padding: 7px 8px; font-size: 13px; font-family: inherit; color: var(--ink); background: #fff; }
.q-custom:focus { outline: none; border-style: solid; }
.q-row-btn { width: 100%; min-width: 60px; padding: 8px 10px; border: 0; border-radius: 8px; background: var(--rose-deep); color: #fff; font-size: 13px; font-family: inherit; cursor: pointer; }
.q-row-btn:hover { filter: brightness(1.06); }
.q-row-btn:disabled { opacity: .42; cursor: not-allowed; }
.q-done { color: var(--green); font-size: 13.5px; }
.q-pill { display: inline-block; font-size: 11.5px; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.q-pill.new { background: #fdf0e3; color: #a5661f; }
.q-pill.wait { background: #f1ebf9; color: #6a4b93; }
.q-pill.ok { background: var(--mint); color: var(--green); }
.q-pill.claim { background: #eae4f7; color: #5b3fa8; }   /* v57：月结单已自动转理赔库 */
.q-who { color: var(--rose-deep) !important; }
.q-conflict { margin-top: 5px; font-size: 11.5px; line-height: 1.6; color: var(--red); background: #fdeaea; border-radius: 7px; padding: 4px 7px; }

.q-bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--cream); position: sticky; bottom: 8px; z-index: 6; box-shadow: 0 -4px 16px rgba(180, 120, 140, .14); }
.q-bar-txt { flex: 1; font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }
.q-bar-txt b { color: var(--rose-deep); font-size: 14px; }
.q-bar-btn { flex: 0 0 auto; padding: 9px 16px; font-size: 13.5px; }
.q-bar-btn:disabled { opacity: .5; cursor: not-allowed; }

.ql-foot { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 11.5px; color: var(--ink-soft); line-height: 1.7; }
.ql-more { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 14px 0 4px; text-align: center; }
.ql-more .btn { min-width: 200px; }
.ql-more-tip { font-size: 11.5px; color: var(--ink-soft); }
.ql-refresh { flex: 0 0 auto; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); color: var(--ink-soft); font-size: 12px; cursor: pointer; font-family: inherit; }

.ql-fail { text-align: center; padding: 34px 20px; }
.ql-fail-ico { width: 46px; height: 46px; line-height: 46px; border-radius: 50%; background: var(--rose-light); color: var(--red); font-size: 24px; font-weight: 700; margin: 14px auto 16px; }
.ql-fail h2 { font-size: 17px; margin-bottom: 10px; }
.ql-msg { font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; margin-bottom: 18px; word-break: break-word; }
.ql-retry { justify-content: center; }

/* 窄屏：把表格折成一行一张单，避免横向滚动 */
@media (max-width: 640px) {
  .ql-wrap { padding: 12px 10px 32px; }
  .ql-card { padding: 16px 12px 14px; }
  .q-table-wrap { border: none; overflow: visible; }
  .q-table, .q-table tbody, .q-table tr, .q-table td { display: block; width: 100%; }
  .q-table { min-width: 0; }
  .q-table td.q-res, .q-table td.q-rem, .q-table td.q-st { min-width: 0; }
  .q-table td.q-st .q-sub { white-space: normal; }
  .q-table thead { display: none; }
  .q-table tr { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
  .q-table td { border: none; padding: 0; }
  .q-table td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--ink-soft); margin: 9px 0 4px; }
  .q-table td.q-no[data-l]::before, .q-table td.q-kind[data-l]::before { display: none; }
  .q-table td.q-kind { margin-top: 6px; }
  .q-table td.q-st { margin-top: 4px; }
  .q-table td.q-op { margin-top: 10px; }
  .q-row-btn { padding: 10px 12px; font-size: 13.5px; }
  .q-table tr.is-done { background: var(--cream); }
  /* 手机上卡片是一张张排下来的，悬浮条会挡住下面那张卡，改成普通流式放最后 */
  .q-bar { position: static; margin-top: 14px; box-shadow: none; background: var(--cream); border: none; }
  .q-bar-btn { padding: 10px 14px; }
}

/* ---------- 设置页：快递群链接 ---------- */
.pl-box { background: var(--mint); border: 1px solid #d3eee2; border-radius: 14px; padding: 14px 14px 10px; }
.pl-head b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.pl-head span { font-size: 12px; color: var(--ink-soft); line-height: 1.75; display: block; }
.pl-cfg { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 12px 0 10px; }
.pl-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink); }
.pl-days { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-soft); }
.pl-days select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 12.5px; font-family: inherit; background: #fff; color: var(--ink); }
.pl-links { display: flex; flex-direction: column; gap: 4px; }
.pl-link { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-bottom: 1px dashed #d9eee5; }
.pl-link:last-child { border-bottom: none; padding-bottom: 2px; }
.pl-http { display: flex; align-items: center; gap: 8px; }
.pl-url { display: flex; gap: 6px; align-items: center; }
.pl-name { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-link input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 11.5px; color: var(--ink-soft); background: #fff; font-family: ui-monospace, Menlo, monospace; }
.pl-link .btn { white-space: nowrap; }
.pl-open { flex: none; font-size: 12px; line-height: 20px; color: #2f7d63; text-decoration: none; padding: 2px 8px; border-radius: 6px; background: #fff; border: 1px solid #d3eee2; white-space: nowrap; }
.pl-open:hover { background: #eef8f3; border-color: #a9dcc7; }
.pl-ops { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pl-guard { margin: 0 0 10px; padding: 9px 12px; border-radius: 9px; font-size: 12.5px; line-height: 1.8; background: #fff8ec; border: 1px solid #f3e0bf; color: #a9701c; }
.pl-guard code { font-family: inherit; font-size: 12px; background: #fff; border: 1px solid #f0e2c8; border-radius: 4px; padding: 0 4px; word-break: break-all; }
@media (max-width: 900px) { .pl-link { grid-template-columns: 1fr; } .pl-link .btn { justify-self: start; } }

.tpl-fold { margin: 4px 0 0; }
.tpl-fold summary { cursor: pointer; font-size: 12.5px; color: var(--rose-deep); padding: 6px 0; list-style: none; }
.tpl-fold summary::-webkit-details-marker { display: none; }
.tpl-fold summary::before { content: "▸ "; }
.tpl-fold[open] summary::before { content: "▾ "; }
.tpl-fold .field { margin-top: 10px; }

/* ---------- 知识库：分类 › 知识点 › 延伸链接 ---------- */
.kn-hero {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--rose-light), var(--peach));
}
.kn-hero h3 { margin: 0; font-size: 18px; color: var(--rose-deep); }
.kn-hero-sub { font-size: 12.8px; color: var(--ink-soft); line-height: 1.8; margin-top: 8px; max-width: 720px; }
.kn-hero-ops { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.kn-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 16px; }
.kn-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.kn-stat b { display: block; font-size: 22px; line-height: 1.25; color: var(--rose-deep); }
.kn-stat span { font-size: 11.5px; color: var(--ink-soft); }
.kn-stat.t2 b { color: #7a5fd0; }
.kn-stat.t3 b { color: var(--green); }
.kn-stat.t4 b { color: var(--orange); }

.kn-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 16px; align-items: start; }
.kn-side {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 10px; box-shadow: var(--shadow); position: sticky; top: 12px;
}
.kn-side-head { font-size: 12px; font-weight: 700; color: var(--ink-soft); letter-spacing: .4px; padding: 2px 8px 8px; }
.kn-taglist { display: flex; flex-direction: column; gap: 2px; max-height: 62vh; overflow-y: auto; }
.kn-tag {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  border: none; background: none; text-align: left; padding: 7px 10px; border-radius: 8px;
  font-size: 12.8px; color: var(--ink); cursor: pointer; font-family: inherit; width: 100%;
}
.kn-tag:hover { background: var(--cream); }
.kn-tag.on { background: var(--rose-light); color: var(--rose-deep); font-weight: 700; }
.kn-tag span { color: var(--ink-soft); font-size: 11.5px; flex: 0 0 auto; }

.kn-main { min-width: 0; }
.kn-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; padding: 12px 14px; }
.kn-toolbar input {
  flex: 1 1 220px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 9px; font-size: 13.5px; background: var(--cream); color: var(--ink); font-family: inherit;
}
.kn-toolbar select {
  padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 13px; background: var(--cream); color: var(--ink); font-family: inherit;
}
.kn-toolbar input:focus, .kn-toolbar select:focus { outline: none; border-color: var(--rose); }

.kn-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); margin-bottom: 12px; cursor: pointer;
  transition: border-color .16s, transform .16s;
}
.kn-card:hover { border-color: var(--rose); transform: translateY(-1px); }
.kn-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.kn-card-top h4 { font-size: 15px; color: var(--ink); line-height: 1.5; word-break: break-word; }
.kn-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.kn-card-text {
  font-size: 13px; color: var(--ink-soft); line-height: 1.75; margin-top: 6px; white-space: pre-wrap;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kn-card-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; align-items: center; }
.kn-card-links a {
  font-size: 12px; color: var(--rose-deep); background: var(--rose-light); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px; text-decoration: none; max-width: 240px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kn-card-links a:hover { background: var(--rose); color: #fff; }
.kn-more { font-size: 11.5px; color: var(--ink-soft); }
.kn-card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line-soft);
  font-size: 11.5px; color: var(--ink-soft);
}
.kn-card-ops { display: flex; gap: 6px; flex-wrap: wrap; }
.kn-card-ops .btn { padding: 4px 9px; font-size: 11.5px; }
.kn-empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 34px; text-align: center; }

.kn-d-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 12px; font-size: 12px; color: var(--ink-soft); }
.kn-d-who { margin-left: auto; }
.kn-d-body {
  font-size: 13.5px; line-height: 1.9; white-space: pre-wrap; word-break: break-word;
  background: var(--cream); border: 1px solid var(--line); border-left: 3px solid var(--rose);
  border-radius: 10px; padding: 12px 14px; max-height: 320px; overflow-y: auto;
}
.kn-d-sec { font-size: 12px; font-weight: 700; color: var(--rose-deep); margin: 14px 0 8px; }
.kn-links { display: flex; flex-direction: column; gap: 8px; }
.kn-link { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; text-decoration: none; background: #fff; }
.kn-link:hover { border-color: var(--rose); background: var(--rose-light); }
.kn-link b { display: block; font-size: 13px; color: var(--ink); word-break: break-word; }
.kn-link span { display: block; font-size: 11.5px; color: var(--ink-soft); word-break: break-all; margin-top: 2px; }
.kn-link em { display: block; font-size: 11.5px; color: var(--rose-deep); font-style: normal; margin-top: 3px; }
.kn-d-att { display: flex; gap: 8px; flex-wrap: wrap; }

.kn-edit-links { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); padding: 12px; }
.kn-edit-links-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.kn-edit-links-head b { font-size: 13px; color: var(--ink); }
.kn-edit-links-head span { flex: 1 1 100%; order: 3; margin-top: 2px; font-size: 11.5px; color: var(--ink-soft); line-height: 1.75; }
.ke-link-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.ke-link-row input {
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 12.5px;
  font-family: inherit; color: var(--ink); background: #fff; min-width: 0; width: 100%;
}
.ke-link-row input:focus { outline: none; border-color: var(--rose); }
.kn-file-keep { font-size: 11.5px; color: var(--ink-soft); margin-left: 8px; }

/* ---------- 自定义模块：表格批量登记 ---------- */
.cu-bar {
  display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap;
  background: #fbfcfe; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin: 12px 0;
}
.cu-bar-tip { font-size: 12.3px; color: var(--ink-soft); line-height: 1.7; flex: 1 1 260px; }
.cu-bar-ops { display: flex; gap: 8px; flex-wrap: wrap; }

/* 批量导入单号：默认快递 + 导入结果统计 */
.in-grid { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.in-grid .field { min-width: 220px; }
.in-grid-tip { flex: 1; min-width: 200px; font-size: 11.5px; line-height: 1.7; color: var(--ink-soft); padding-bottom: 4px; }
.in-stat {
  margin-top: 10px; padding: 9px 12px; border-radius: 9px; font-size: 12.5px; line-height: 1.75;
  background: var(--mint, #f0faf6); color: #2f8f6d; border: 1px solid #d3ede2;
}
.in-stat.warn { background: #fff8ec; color: #a9701c; border-color: #f3e0bf; }
.in-stat b { font-weight: 700; }
.cu-wrap { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.cu-table { min-width: 860px; }
.cu-table thead th {
  font-size: 12px; font-weight: 600; white-space: nowrap; color: #5b6676;
  background: #f8fafc; padding: 8px 8px; position: sticky; top: 0; z-index: 1;
  border-bottom: 1px solid var(--line);
}
.cu-table tbody td { padding: 6px 8px; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.cu-table tbody tr:hover td { background: #f9fbff; }
.cu-idx { width: 36px; text-align: center; color: var(--ink-3); font-size: 12px; padding-top: 13px !important; }
.cu-del-col { width: 54px; text-align: center; }
.cu-req { color: var(--red); font-style: normal; margin-left: 2px; }
.cu-cell { position: relative; }
.cu-cell .cu-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.cu-cell .opt-caret {
  position: absolute; right: 2px; bottom: 1px; font-size: 10px; line-height: 1.2;
  color: var(--ink-soft); text-decoration: none; opacity: 0; pointer-events: none;
  transition: opacity .12s;
}
.cu-table tbody tr:hover .cu-cell .opt-caret { opacity: 1; pointer-events: auto; }
@media (hover: none) { .cu-cell .opt-caret { opacity: .55; pointer-events: auto; } }
.cu-cell input, .cu-cell select, .cu-cell textarea {
  width: 100%; min-width: 96px; height: 30px; padding: 0 8px; font-size: 12.8px; font-family: inherit;
  border: 1px solid var(--line-strong); border-radius: var(--radius-xs); background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.cu-cell input:focus, .cu-cell select:focus, .cu-cell textarea:focus {
  outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-light);
}
.cu-cell textarea { height: auto; min-height: 30px; padding: 6px 8px; resize: vertical; line-height: 1.6; }
.cu-cell .fc-check { font-size: 12px; gap: 4px; }
.cu-cell .img-drop.mini { border-width: 1px; border-radius: 6px; padding: 6px; font-size: 11px; }
.cu-cell .img-drop.mini .img-drop-tip { font-size: 11px; line-height: 1.4; }
/* 登记表格里图片格给个下限，列一多不至于被挤成竖排文字 */
.cu-table td .img-drop.mini { min-width: 96px; }
/* 宽列（col_width=wide）里的图片格改成上提示下按钮，窄列也不会把提示挤成竖排 */
.cu-table td.cw-wide .img-drop.mini { flex-direction: column; gap: 6px; }
.cu-table td.cw-wide .img-drop.mini .img-drop-tip { width: 100%; }
.cu-cell .fc-img-preview { margin-top: 4px; gap: 4px; }
.cu-cell .fc-img-preview .img-item { width: 44px; height: 44px; }
.cu-actions { align-items: center; gap: 12px; }
.cu-hint { font-size: 11.5px; color: var(--ink-soft); }

/* 收款统计：筛选后的笔数与金额合计（只有「金额」字段的模块才出现，不影响其它模块） */
.cu-sum {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  margin: 2px 0 10px; padding: 9px 12px; border-radius: 10px;
  background: var(--card-soft, #f6f7f9); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-soft);
}
.cu-sum-item b { font-size: 15px; color: var(--ink); margin-left: 4px; }
.cu-sum-item .cu-sum-amt { color: var(--rose-deep, #b4162a); }
.cu-sum-tip { margin-left: auto; font-size: 11.5px; opacity: .85; }

@media (max-width: 760px) {
  .cu-table { min-width: 720px; }
  .cu-bar-ops { width: 100%; }
  .cu-cell input, .cu-cell select, .cu-cell textarea { min-width: 84px; }
}

/* 窄屏：表格改成一行一张卡，列名从隐藏的 label 里取回来 */
@media (max-width: 900px) {
  .cu-wrap { overflow: visible; border: 0; background: transparent; }
  .cu-table { display: block; min-width: 0; border: 0; }
  .cu-table thead { display: none; }
  .cu-table tbody { display: block; }
  .cu-table tbody tr[data-row] {
    display: block; position: relative; margin-bottom: 10px;
    border: 1px solid var(--line); border-radius: 14px; background: #fff;
    padding: 12px 14px 8px; box-shadow: 0 2px 10px rgba(190,140,160,.06);
  }
  .cu-table tbody tr[data-row]:hover td { background: transparent; }
  .cu-table tbody tr[data-row] td { display: block; width: auto; border: 0; padding: 5px 0; }
  .cu-table tbody tr[data-row] td.cu-idx {
    position: static; padding: 0 0 6px !important; margin-right: 46px;
    text-align: left; font-size: 11.5px; color: var(--ink-soft);
  }
  .cu-table tbody tr[data-row] td.cu-idx::before { content: "#"; }
  .cu-table tbody tr[data-row] td.cu-del-col { position: absolute; top: 8px; right: 10px; padding: 0; width: auto; }
  .cu-cell { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 10px; align-items: center; }
  .cu-cell .cu-sr {
    position: static; width: auto; height: auto; margin: 0; padding: 0; overflow: visible;
    clip: auto; white-space: normal; font-size: 12px; line-height: 1.4; color: var(--ink-soft);
  }
  .cu-cell .opt-caret { display: none; }
  .cu-cell input, .cu-cell select, .cu-cell textarea { min-width: 0; }
}

/* ---------- 外部工作台入口 / 存储用量 ---------- */
.tag.blue { background: #e8f0fb; color: #4a7bc8; }
.nav-item.nav-ext .nav-jump { margin-left: 4px; font-size: 11px; color: var(--rose-deep); opacity: .8; }
.nav-item.nav-ext:hover .nav-jump { opacity: 1; }

.wb-ext-card .wb-ext-tip { font-size: 11.5px; font-weight: 400; color: var(--ink-soft); margin-left: 6px; }
.wb-ext-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wb-ext {
  display: flex; align-items: center; gap: 9px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; background: var(--cream); color: var(--ink);
  transition: border-color .15s, background .15s;
}
.wb-ext:hover { border-color: var(--rose); background: var(--rose-light); }
.wb-ext-ico { font-size: 18px; flex: 0 0 auto; }
.wb-ext-main { min-width: 0; flex: 1; }
.wb-ext-main b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-ext-main small { display: block; font-size: 11px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-ext-go { color: var(--rose-deep); font-size: 13px; flex: 0 0 auto; }
.wb-ext-empty { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-soft); line-height: 1.8; }

.sa-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 16px; }
.sa-kpi { background: #fbfcfe; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.sa-kpi b { display: block; font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.3; letter-spacing: -.4px; }
.sa-kpi span { font-size: 11.5px; color: var(--ink-soft); }
.sa-kpi.t2 b { color: #6f5bd0; }
.sa-kpi.t3 b { color: var(--green); }
.sa-kpi.t4 b { color: var(--orange); }
.sa-tbl th, .sa-tbl td { font-size: 12.5px; }
.sa-total-row td { background: var(--cream); font-weight: 700; }
.sa-sub { font-size: 12px; font-weight: 700; color: var(--ink); margin: 18px 0 8px; }
.sa-months { display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.sa-month { display: grid; grid-template-columns: 68px minmax(0, 1fr) 62px; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-soft); }
.sa-month i { display: block; height: 9px; border-radius: 999px; background: linear-gradient(90deg, var(--rose), #f0b6c9); }
.sa-month-n { text-align: right; }
.sa-tips { margin-top: 16px; display: flex; flex-direction: column; gap: 5px; font-size: 12.2px; line-height: 1.8; color: var(--ink-soft); }
.sa-tips b { color: var(--rose-deep); }

@media (max-width: 760px) {
  .wb-ext-grid { grid-template-columns: 1fr; }
  .sa-kpis { grid-template-columns: 1fr 1fr; }
  .sa-month { grid-template-columns: 58px minmax(0, 1fr) 52px; }
}

/* ============================================================
   第十九轮
   1. 首页模块化：可拖拽排序 + 半宽/整宽
   2. 理赔库：手动添加、按时间按快递统计
   3. 登记记录里的商品列
   ============================================================ */

/* ---------- 首页布局条 ---------- */
[hidden] { display: none !important; }
.wb-layout-bar { display: flex; align-items: center; gap: 10px; margin: -4px 0 12px; flex-wrap: wrap; }
.wb-layout-tip { flex: 1 1 260px; font-size: 11.8px; color: var(--ink-soft); line-height: 1.7; }
#wb-layout-toggle { flex: 0 0 auto; }

/* ---------- 首页网格：12 栏，宽度可拖拽 / 高度可拉伸 ---------- */
.wb-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
.wb-block { min-width: 0; grid-column: span var(--w, 6); position: relative; }
.wb-block[data-span="2"] { grid-column: span var(--w, 12); }
.wb-block > .card { margin-bottom: 0; }
.wb-block > .wb-stats { margin-bottom: 0; }
.wb-block.wb-narrow .wb-stats { grid-template-columns: 1fr 1fr; }

.wb-block-tools { display: none; }

.wb-grid.wb-editing .wb-block {
  border: 1px dashed var(--rose); border-radius: var(--radius); padding: 9px 9px 28px;
  background: #fafbfd; cursor: grab;
}
.wb-grid.wb-editing .wb-block.dragging { opacity: .45; cursor: grabbing; }
.wb-grid.wb-editing .wb-block-tools {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 8px; padding: 0 2px;
}
.wb-drag { font-size: 11.5px; font-weight: 700; color: var(--rose-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-tool-group { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.wb-tool {
  font: inherit; font-size: 11px; line-height: 1; padding: 5px 8px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft); border-radius: 7px;
}
.wb-tool:hover { border-color: var(--rose); color: var(--rose-deep); background: var(--rose-light); }
.wb-block[data-span="1"] .wb-tool[data-span-set="1"],
.wb-block[data-span="2"] .wb-tool[data-span-set="2"] {
  background: var(--rose); border-color: var(--rose); color: #fff;
}

/* 右下角拖拽改尺寸：编辑态才出现，平时不占位 */
.wb-resize { display: none; }
.wb-grid.wb-editing .wb-resize {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  position: absolute; right: 4px; bottom: 4px; z-index: 3;
  min-width: 44px; height: 22px; padding: 0 6px; cursor: nwse-resize;
  border: 1px solid var(--rose); border-radius: 7px; background: #fff;
  color: var(--rose-deep); font: inherit; font-size: 10.5px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08); touch-action: none;
}
.wb-grid.wb-editing .wb-resize::before { content: "⇲"; font-size: 12px; }
.wb-grid.wb-editing .wb-block.resizing { outline: 1px solid var(--rose); }
.wb-grid.wb-editing .wb-block.resizing .wb-resize { background: var(--rose); color: #fff; }

@media (max-width: 1000px) {
  .wb-grid { grid-template-columns: 1fr; }
  .wb-block, .wb-block[data-span="2"] { grid-column: auto; }
  .wb-block .wb-stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- 理赔库 ---------- */
.cl-add { border: 1px dashed var(--line); border-radius: 14px; background: var(--cream); padding: 14px 16px; margin-bottom: 14px; }
.cl-total { margin-top: 12px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.8; }
.cl-total b { color: var(--ink); font-size: 13.5px; }
.cl-total b.ok { color: var(--green); }
.cl-total b.warn { color: var(--orange); }

/* v57：全选筛选结果 / 补扫候选 */
.cl-selbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--ink-soft); }
.cl-selbar a { color: var(--rose-deep); text-decoration: none; border-bottom: 1px dashed currentColor; }
.cl-selbar a:hover { color: var(--rose); }
.cl-selbar .cl-sel-on { color: var(--green); }
.cl-selbar .cl-sel-on b { font-size: 13.5px; }
.cl-selbar .cl-sel-tip { color: var(--ink-soft); opacity: .8; }
.cl-scan-list { margin: 8px 0 2px; display: flex; flex-direction: column; gap: 6px; }
.cl-scan-row { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; }
.cl-scan-info { flex: 1; min-width: 0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-scan-more { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.cl-scan-ops { display: flex; gap: 8px; }

.cl-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 4px 0 14px; }
.cl-kpi { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.cl-kpi b { display: block; font-size: 20px; color: var(--rose-deep); line-height: 1.3; }
.cl-kpi span { font-size: 11.5px; color: var(--ink-soft); }
.cl-kpi.t2 b { color: #7a5fd0; }
.cl-kpi.t3 b { color: var(--green); }
.cl-kpi.t4 b { color: var(--orange); }
.cl-period-note { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; line-height: 1.8; }
.cl-stat-tbl td { font-size: 12.5px; }
.cl-stat-tbl tfoot td { background: var(--cream); font-weight: 700; }
.cl-bar-cell { min-width: 150px; }
.cl-bar { display: inline-block; width: calc(100% - 46px); height: 9px; border-radius: 999px; background: #f4e6ec; overflow: hidden; vertical-align: middle; }
.cl-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--rose), #f0b6c9); }
.cl-pct { display: inline-block; width: 40px; text-align: right; font-size: 11.5px; color: var(--ink-soft); }
.cl-stat-tbl td.ok { color: var(--green); }
.cl-stat-tbl td.muted { color: var(--ink-soft); }

@media (max-width: 900px) {
  .cl-kpis { grid-template-columns: 1fr 1fr; }
  .cl-bar-cell { min-width: 110px; }
}

/* ---------- 登记记录里的商品列 ---------- */
.cell-product { min-width: 92px; max-width: 170px; word-break: break-word; }

/* 快递 / 理赔表格列多，给个最小宽度让它横向滚，而不是把快递名、店铺名挤成两行
   需求 10：用 data-col / data-cell 定位列，不再用 nth-child —— 前面插了「勾选」列也不会串位 */
.tbl-ex { min-width: 1214px; }
.tbl-ex [data-col="created_at"], .tbl-ex [data-cell="created_at"] { white-space: nowrap; }
.tbl-ex [data-col="express"], .tbl-ex [data-cell="express"],
.tbl-ex [data-col="status"], .tbl-ex [data-cell="status"],
.tbl-ex [data-col="owner_name"], .tbl-ex [data-cell="owner_name"] { min-width: 88px; }
/* 店铺名多是 7 个字（老家荆楚旗舰店），88px 会折成两行，单独放宽一点 */
.tbl-ex [data-col="shop"], .tbl-ex [data-cell="shop"] { min-width: 106px; }
.tbl-ex [data-col="tracking_no"], .tbl-ex [data-cell="tracking_no"] { min-width: 118px; }
/* 售后登记记录：列本来就多，前面又加了勾选列，给最小宽度让它横向滚，
   而不是把店铺 / 商品 / 登记人挤成竖排。全部用 data-col / data-cell 定位，插列不串位。 */
.tbl-as { min-width: 1246px; }
.tbl-as [data-col="created_at"], .tbl-as [data-cell="created_at"] { white-space: nowrap; min-width: 108px; }
.tbl-as [data-col="category"], .tbl-as [data-cell="category"] { min-width: 78px; }
.tbl-as [data-col="sub_issue"], .tbl-as [data-cell="sub_issue"] { min-width: 92px; }
.tbl-as [data-col="shop"], .tbl-as [data-cell="shop"] { min-width: 118px; }
.tbl-as [data-col="order_no"], .tbl-as [data-cell="order_no"] { min-width: 110px; }
.tbl-as [data-col="product"], .tbl-as [data-cell="product"] { min-width: 96px; }
.tbl-as [data-col="reship_tracking_no"], .tbl-as [data-cell="reship_tracking_no"] { min-width: 92px; }
.tbl-as [data-col="images"], .tbl-as [data-cell="images"] { min-width: 52px; }
.tbl-as [data-col="status"], .tbl-as [data-cell="status"] { min-width: 84px; white-space: nowrap; }
.tbl-as [data-col="owner_name"], .tbl-as [data-cell="owner_name"] { min-width: 72px; white-space: nowrap; }
.tbl-as [data-col="quantity"], .tbl-as [data-cell="quantity"],
.tbl-as [data-col="amount"], .tbl-as [data-cell="amount"] { white-space: nowrap; }
/* 列多要横向滚时，把「操作」列钉在右边，永远看得到（与快递两张表一致） */
.tbl-as th:last-child, .tbl-as td:last-child {
  position: sticky; right: 0; z-index: 2;
  background: var(--white);
  box-shadow: -8px 0 10px -10px rgba(120, 70, 90, .35);
}
.tbl-as thead th:last-child { background: var(--cream); }
.tbl-as tbody tr:hover td:last-child { background: #fafbfd; }
.tbl-cl { min-width: 1120px; }.tbl-cl th:nth-child(1), .tbl-cl td:nth-child(1) { white-space: nowrap; }
.tbl-cl th:nth-child(3), .tbl-cl td:nth-child(3),
.tbl-cl th:nth-child(5), .tbl-cl td:nth-child(5),
.tbl-cl th:nth-child(10), .tbl-cl td:nth-child(10) { min-width: 88px; }

/* 操作列按钮多，改成弹性换行，别挤成一列 */
.tbl-ex .cell-ops, .tbl-cl .cell-ops { display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; }
.tbl-ex .cell-ops .btn, .tbl-cl .cell-ops .btn { margin: 0; }

/* 列多会横向滚动，让操作列贴右边固定，永远看得到 */
.tbl-ex th:last-child, .tbl-ex td:last-child,
.tbl-cl th:last-child, .tbl-cl td:last-child {
  position: sticky; right: 0; z-index: 2;
  background: var(--white);
  box-shadow: -8px 0 10px -10px rgba(120, 70, 90, .35);
}
.tbl-ex thead th:last-child, .tbl-cl thead th:last-child { background: var(--cream); }
.tbl-ex tbody tr:hover td:last-child, .tbl-cl tbody tr:hover td:last-child { background: #fafbfd; }


/* ---------- 快递登记：批量表格 ---------- */
.ex-scenes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; font-size: 12px; color: var(--ink-soft); }
@media (min-width: 901px) { .ex-table { min-width: 1160px; } }
.ex-table thead th .opt-caret { margin-left: 4px; font-size: 10.5px; color: var(--ink-soft); text-decoration: none; opacity: .6; }
.ex-table thead th .opt-caret:hover { opacity: 1; color: var(--rose-deep); }
.ex-table td[data-cell="tracking_no"] { min-width: 140px; }
.ex-table td[data-cell="shop"] { min-width: 118px; }
.ex-table td[data-cell="product"] { min-width: 120px; }
.ex-table td[data-cell="reason"], .ex-table td[data-cell="process_result"] { min-width: 126px; }
.ex-table td[data-cell="remark"] { min-width: 118px; }
.ex-tips { font-size: 12px; color: var(--ink-soft); line-height: 1.9; margin-top: 10px; }

/* ---------- 模块管理：筛选 / 折叠 / 多选 / 拖拽 ---------- */
.mg-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.mg-chip {
  font: inherit; font-size: 11.5px; padding: 5px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 5px;
}
.mg-chip b { font-size: 11px; color: var(--ink); }
.mg-chip:hover { border-color: var(--rose); color: var(--rose-deep); }
.mg-chip.active { background: var(--rose); border-color: var(--rose); color: #fff; }
.mg-chip.active b { color: #fff; }
.mg-chip.plain { border-style: dashed; }

.mg-batch {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--rose-light); border: 1px solid var(--rose); border-radius: 10px;
  padding: 8px 10px; margin-bottom: 8px; position: sticky; top: 0; z-index: 4;
}
.mg-batch-n { font-size: 12px; color: var(--rose-deep); }
.mg-batch-sel { font: inherit; font-size: 12px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }

.mg-fold { border: none; background: transparent; cursor: pointer; font-size: 11px; color: var(--ink-soft); padding: 0 2px; line-height: 1; }
.mg-group-card.folded .mg-fold { transform: rotate(-90deg); }
.mg-group-card.folded .mg-mod-list, .mg-group-card.folded .mg-add-in { display: none; }
.mg-group-card.drop-hot { border-color: var(--rose); background: #fafbfd; }

.mg-pick { flex: 0 0 auto; }
.mg-mod-row.picked { background: var(--rose-light); }
.mg-mod-row.dragging { opacity: .45; }
.mg-mod-row.drop-before { box-shadow: inset 0 2px 0 var(--rose); }

@media (max-width: 760px) {
  .mg-batch-sel { flex: 1 1 120px; }
}

/* 窄屏下快递批量表格也用「一行一张卡」，列名从隐藏 label 取回 */
@media (max-width: 900px) {
  .ex-table { min-width: 0; }
  .ex-table td[data-cell] { min-width: 0 !important; }
}

/* =====================================================================
   v19：售后批量表格 / 记录查询一排 + 折叠 / 字段列宽 / 外观新风格
   ===================================================================== */

/* ---------- 通用：记录查询「一排主筛选 + 更多筛选折叠」 ---------- */
.filter-bar.fb { flex-direction: column; align-items: stretch; gap: 8px; }
.fb-row {
  display: flex; gap: 10px; align-items: flex-end;
  flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px;
}
.fb-row .field { flex: 0 0 auto; min-width: 128px; margin: 0; }
.fb-row .field.grow { flex: 1 1 180px; min-width: 160px; }
.fb-row > .btn, .fb-row > .fb-toggle { flex: 0 0 auto; }
.fb-toggle b {
  display: inline-block; min-width: 15px; padding: 0 4px; margin: 0 1px;
  border-radius: 999px; background: var(--rose-light); color: var(--rose-deep);
  font-size: 10.5px; line-height: 15px;
}
.fb-open .fb-toggle b { background: var(--rose); color: #fff; }
.fb-more {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfcfe;
}
.fb-more[hidden] { display: none; }
.fb-more .field { min-width: 128px; margin: 0; }
@media (max-width: 900px) {
  .fb-row { flex-wrap: wrap; overflow-x: visible; }
  .fb-row .field, .fb-row .field.grow { flex: 1 1 44%; min-width: 0; }
  .fb-row > .btn, .fb-row > .fb-toggle { flex: 0 0 auto; }
}

/* ---------- 售后登记：表格批量录入 ---------- */
.as-view-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); overflow: hidden; }
.as-view-seg button {
  font: inherit; font-size: 12px; height: 28px; padding: 0 11px; border: none; cursor: pointer;
  background: #fff; color: var(--ink-soft);
}
.as-view-seg button + button { border-left: 1px solid var(--line-strong); }
.as-view-seg button.active { background: var(--rose); color: #fff; font-weight: 500; }

.as-table thead th { position: sticky; top: 0; z-index: 2; }
.as-table .th-caret { margin-left: 3px; }
.as-table .th-caret.opt-caret { font-size: 10px; }
.as-table td[data-cell] { min-width: 96px; }
.as-table.as-compact .col-more { display: none; }
.as-table .cw-mini { width: 62px; }
.as-table .cw-narrow { width: 88px; }
.as-table .cw-normal { width: 122px; }
.as-table .cw-wide { width: 168px; }
.as-table td.cw-mini, .as-table td.cw-narrow, .as-table td.cw-normal, .as-table td.cw-wide { width: auto; }
.as-table td[data-cell] { min-width: 0; }
.as-table td[data-cell].col-base { min-width: 96px; }
.as-table tbody tr.as-done-row td { background: #fffbf4; }
.as-table tbody tr.as-done-row td .cu-cell input,
.as-table tbody tr.as-done-row td .cu-cell select { border-color: #f0d9b8; }
.as-table .img-drop.mini { min-width: 84px; }

/* 补发快递单号：只有处理结果含「补发」时才出现（整列收掉，表头 + 单元格一起）
   常用 / 全部字段两种视图一致；有任意一行选到补发，整列再放出来，非补发的行只禁用输入，
   绝不单独隐藏某个 td —— td 一少，后面的格子就会左移，看上去就是「字段和内容错位」。 */
.as-table th[data-col="reship_tracking_no"],
.as-table td[data-cell="reship_tracking_no"] { display: none; }
.as-table.has-reship th[data-col="reship_tracking_no"],
.as-table.has-reship td[data-cell="reship_tracking_no"] { display: table-cell; }
.as-table td[data-cell="reship_tracking_no"].is-off { background: #fbfcfe; }
.as-table td[data-cell="reship_tracking_no"].is-off input { background: #f7f8fb; color: #b6bdc9; }
/* 多出一列后压一压内边距，保证订单号 / 单号都不会被截断，同时不出现横向滚动 */
.as-table.as-compact.has-reship td[data-cell] { padding-left: 3px; padding-right: 3px; }
.as-table.as-compact.has-reship .cu-cell input,
.as-table.as-compact.has-reship .cu-cell select { padding: 0 5px; }
.as-table .th-cond {
  display: inline-block; margin-left: 4px; padding: 0 4px; border-radius: 4px;
  font-size: 10px; font-weight: 400; line-height: 15px;
  color: var(--rose); background: var(--rose-light); vertical-align: 1px; white-space: nowrap;
}
.as-table tbody tr.as-reship-on td[data-cell="reship_tracking_no"] { background: #f5f8ff; }
.as-table tbody tr.as-reship-on td[data-cell="reship_tracking_no"] input { border-color: var(--rose); }

@media (min-width: 901px) {
  .as-table { min-width: 1080px; }
  .as-table:not(.as-compact) { min-width: 1560px; }
}
@media (max-width: 900px) {
  .as-table { min-width: 0; }
  .as-table td[data-cell] { min-width: 0 !important; }
  .as-table.as-compact .col-more { display: none; }
  .as-view-seg { margin-left: auto; }
}

/* 记录列表里的窄列 */
.tbl td.nowrap { white-space: nowrap; }
.tbl td.img-cell { min-width: 60px; }
.fb-arrow { font-style: normal; display: inline-block; transition: transform .15s; }
.fb-open .fb-arrow { transform: rotate(180deg); }
/* 字段列宽（模块管理可配）：表格统一按 迷你 / 窄 / 标准 / 宽 四档 */
.cu-table th.cw-mini { width: 62px; }
.cu-table th.cw-narrow { width: 90px; }
.cu-table th.cw-normal { width: 124px; }
.cu-table th.cw-wide { width: 170px; }

/* ---------- 数据分析：数据对比卡片（按日期区间 + 维度） ---------- */
.an-cmp-card .an-cmp-sub { font-size: 11.5px; font-weight: 400; color: var(--ink-soft); margin-left: 6px; }
.an-cmp-bar {
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
  margin-top: 12px; padding: 12px; background: var(--cream);
  border: 1px dashed var(--line); border-radius: 10px;
}
.an-cmp-bar .field { margin: 0; min-width: 148px; }
.an-cmp-bar .field input, .an-cmp-bar .field select { width: 100%; }
.an-cmp-dims {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 10px; font-size: 12px; color: var(--ink-soft);
}
.an-cmp-dim-sel {
  font: inherit; font-size: 12.5px; padding: 5px 9px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); max-width: 220px;
}
.an-cmp-pickwrap { display: inline-flex; align-items: center; gap: 5px; }
.an-cmp-lab { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.an-cmp-quick { display: flex; gap: 4px; flex-wrap: wrap; }
.an-cmp-multi { font-size: 12px; color: var(--ink-soft); }
.an-cmp-hint { margin-left: auto; font-size: 11.5px; color: var(--ink-soft); }
.an-cmp-note { font-size: 12px; color: var(--ink-soft); line-height: 1.85; margin: 12px 0; }
.an-cmp-title { font-size: 12.5px; font-weight: 700; color: var(--ink); margin: 16px 0 8px; }
.an-cmp-title span { font-weight: 400; color: var(--ink-soft); margin-left: 6px; font-size: 11.5px; }
.an-cmp-block + .an-cmp-block { margin-top: 4px; }
.an-cmp-tbl th, .an-cmp-tbl td { font-size: 12.5px; }
.an-cmp-share { white-space: nowrap; color: var(--ink-soft); font-size: 11.5px; }
.an-cmp-up { color: #a8641a; }
.an-cmp-down { color: var(--green); }
.an-cmp-loading { padding: 18px; text-align: center; color: var(--ink-soft); font-size: 13px; }

/* --- 对比口径顶部小卡 --- */
.an-cmp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0 4px; }
.an-cmp-kpi-val { font-size: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-cmp-kpi-val small { font-size: 12px; font-weight: 500; color: var(--ink-soft); margin-left: 3px; }

/* --- 商品 × 问题矩阵 --- */
.mx-wrap { max-height: 560px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.mx-tbl { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.mx-tbl th, .mx-tbl td { padding: 7px 9px; border-bottom: 1px solid var(--line-soft); }
.mx-tbl thead th { position: sticky; top: 0; z-index: 2; background: #f7f9fc; text-align: center; white-space: nowrap; }
.mx-sticky { position: sticky; left: 0; z-index: 3; background: #fff; text-align: left !important; min-width: 132px; border-right: 1px solid var(--line); }
.mx-tbl thead .mx-sticky { z-index: 4; background: #f2f5fa; color: var(--ink-soft); font-weight: 600; }
.mx-corner { font-size: 11.5px; }
.mx-col-h span { display: block; font-size: 12px; color: var(--ink); }
.mx-col-h small { display: block; font-size: 10.5px; font-weight: 400; color: var(--ink-soft); margin-top: 1px; }
.mx-row-h { cursor: pointer; }
.mx-row-h b { display: block; font-size: 12.5px; color: var(--ink); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-row-h small { display: block; font-size: 10.5px; color: var(--ink-soft); margin-top: 1px; }
.mx-row-h:hover b { color: var(--rose-deep); }
.mx-c { position: relative; text-align: center; min-width: 62px; cursor: pointer; }
.mx-c:hover { outline: 1px solid var(--rose); outline-offset: -1px; border-radius: 4px; }
.mx-heat { position: absolute; inset: 3px; border-radius: 6px; background: var(--rose); opacity: 0; pointer-events: none; }
.mx-v { position: relative; font-size: 13px; font-weight: 700; color: var(--ink); }
.mx-a { position: relative; display: block; font-size: 10.5px; color: var(--ink-soft); line-height: 1.35; }
.mx-a b { font-weight: 600; margin-left: 3px; }
.mx-a .d-up { color: #b4550f; font-weight: 700; }
.mx-a .d-down { color: var(--green); font-weight: 700; }
.mx-zero { color: var(--ink-3); cursor: default; }
.mx-zero:hover { outline: none; }
.mx-zero span { font-size: 12px; color: var(--ink-3); }
.mx-total, .mx-total-h { background: #f7f9fc; text-align: center; font-weight: 600; white-space: nowrap; }
.mx-total small, .mx-sum-row small { display: block; font-size: 10.5px; font-weight: 400; color: var(--ink-soft); }
.mx-sum-row td { background: #f7f9fc; font-weight: 700; text-align: center; }
.mx-sum-row .mx-sticky { background: #f2f5fa; text-align: left; }
.mx-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; color: var(--ink-soft); }
.mx-foot .btn { flex: 0 0 auto; }
.mx-legend { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; }
.mx-legend i { width: 22px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, rgba(47,107,237,.12), rgba(47,107,237,.7)); display: inline-block; }

/* --- 商品画像 / 问题溯源：左列表右明细 --- */
.an-pick { display: grid; grid-template-columns: minmax(170px, 232px) minmax(0, 1fr); gap: 16px; margin-top: 4px; }
.an-pick-side { display: flex; flex-direction: column; gap: 3px; max-height: 520px; overflow: auto; padding-right: 4px; border-right: 1px solid var(--line); }
.an-pick-item {
  position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 6px;
  border: 1px solid transparent; background: transparent; border-radius: 8px;
  padding: 7px 9px 9px; cursor: pointer; text-align: left; overflow: hidden;
}
.an-pick-item:hover { background: #f7f9fc; }
.an-pick-item.active { background: #f0f4fe; border-color: var(--rose); }
.an-pick-item b { font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-pick-item span { flex: 0 0 auto; font-size: 11.5px; color: var(--ink-soft); }
.an-pick-item span i { font-style: normal; color: var(--ink-3); }
.an-pick-bar { position: absolute; left: 9px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--rose); opacity: .45; max-width: calc(100% - 18px); }
.an-pick-main { min-width: 0; }
.an-pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.an-pick-head > div:first-child b { font-size: 15px; color: var(--ink); }
.an-pick-head > div:first-child span { font-size: 11.5px; color: var(--ink-soft); margin-left: 6px; }
.an-pick-sum { font-size: 11.5px; color: var(--ink-soft); }
.an-pick-sum b { color: var(--rose-deep); font-size: 13px; }
.an-cat-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 8px; margin: 4px 0 12px; }
.an-cat-chip { border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; padding: 9px 11px; }
.an-cat-chip span { display: block; font-size: 11.5px; color: var(--ink-soft); }
.an-cat-chip b { font-size: 18px; color: var(--ink); margin-right: 4px; }
.an-cat-chip small { font-size: 11px; color: var(--ink-soft); }
.an-cat-chip em { display: flex; flex-wrap: wrap; gap: 1px 10px; font-style: normal; font-size: 11px; color: var(--ink-soft); line-height: 1.7; margin-top: 3px; }
.an-cat-chip em i { font-style: normal; white-space: nowrap; }
.an-mix-bar { width: 130px; }
.an-mix-bar i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(47,107,237,.75), rgba(47,107,237,.25)); }

.an-cmp-chart-wrap { margin-top: 6px; }
.an-cmp-chart-head { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-top: 16px; }
.an-cmp-chart-head span { font-weight: 400; color: var(--ink-soft); margin-left: 6px; font-size: 11.5px; }
.an-cmp-canvas { height: 220px; }

@media (max-width: 900px) {
  .an-cmp-kpis { grid-template-columns: 1fr 1fr; }
  .an-pick { grid-template-columns: 1fr; }
  .an-pick-side { flex-direction: row; overflow-x: auto; max-height: none; border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 6px; }
  .an-pick-item { min-width: 140px; }
  .an-mix-bar { width: 70px; }
}
@media (max-width: 760px) {
  .an-cmp-bar .field, .an-cmp-bar .field.grow { flex: 1 1 44%; min-width: 0; }
  .an-cmp-multi { margin-left: 0; }
  .an-cmp-hint { margin-left: 0; }
}

/* ---------- 左侧导航：二级菜单 ---------- */
.nav-gico { margin-right: 4px; }
.nav-item .nav-ico { flex: 0 0 auto; font-size: 14px; line-height: 1; }
.nav-item .nav-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-caret {
  border: none; background: transparent; cursor: pointer; color: inherit;
  font-size: 10px; opacity: .55; padding: 2px 4px; line-height: 1; border-radius: 5px;
}
.nav-caret:hover { opacity: 1; background: rgba(255,255,255,.35); }
.nav-caret.open { transform: rotate(180deg); }
.nav-sub { margin: 0 0 4px 14px; padding-left: 8px; border-left: 1px dashed var(--line); }
.nav-sub[hidden] { display: none; }
.nav-item.nav-child { font-size: 13px; padding: 7px 10px; color: var(--ink-soft); }
.nav-item.nav-child.active { background: var(--rose-light); color: var(--rose-deep); font-weight: 600; }
.nav-item.nav-child .nav-ico { font-size: 12px; }

/* ---------- 模块管理：板块图标 / 颜色 / 子菜单缩进 ---------- */
.mg-group-ico {
  width: 42px; flex: 0 0 42px; text-align: center; font-size: 14px;
  padding: 5px 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-family: inherit;
}
.mg-group-ico:focus { outline: none; border-color: var(--rose); }
.mg-group-color {
  width: 26px; height: 26px; flex: 0 0 26px; padding: 0; border: 1px solid var(--line);
  border-radius: 7px; background: #fff; cursor: pointer;
}
.mg-mod-row.is-child { margin-left: 22px; border-left: 2px solid var(--rose-light); border-radius: 0 8px 8px 0; }
.mg-mod-row.is-child .mg-mod-name { font-size: 12.5px; }
.ma-fwidth {
  width: 100%; font: inherit; font-size: 12px; padding: 4px 6px;
  border: 1px solid var(--line); border-radius: 7px; background: #fff;
}

.ma-fname-wrap { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; }
.ma-fname { flex: 1 1 100px; min-width: 90px; }
.ma-fen { font-size: 11px; white-space: nowrap; color: var(--ink-soft); }
.ma-fen input { margin-right: 2px; }

/* 模块管理：板块标题行更紧凑，避免按钮顶到卡片边缘 */
.mg-group-head .mg-ops { margin-left: auto; }
.mg-group-head .mg-ops .btn { height: 24px; padding: 0 8px; font-size: 11.5px; border-radius: 5px; }
.mg-group-ico { width: 36px; flex: 0 0 36px; padding: 4px 2px; }
@media (max-width: 1240px) {
  .mg-layout { grid-template-columns: 1fr; }
  .mg-fields { position: static; }
}
/* 模块行更紧凑：尽量一行放下「名称 + 标签 + 开关 + 操作」 */
.mg-mod-row { gap: 6px; }
.mg-mod-row .mg-mod-name { min-width: 72px; padding: 4px 5px; }
.mg-mod-row .mg-ops { margin-left: auto; }
.mg-mod-row .mg-ops .btn { height: 23px; padding: 0 7px; font-size: 11.5px; border-radius: 5px; }
.mg-mod-row .tag { font-size: 9.5px; padding: 0 5px; }
.mg-mod-row .mg-en { font-size: 11px; }

/* ============================================================
   v20：快递异常「改地址」联动列 / 工作台模块可增删
   ============================================================ */

/* 快递异常：新地址这一列只在「异常原因 = 改地址」时才出现，没选就不占位、不撑宽 */
.ex-table:not(.show-addr) th.cell-cond-addr,
.ex-table:not(.show-addr) td.cell-cond-addr { display: none !important; }
.ex-table td.cell-cond-addr.need-addr input {
  border-color: var(--rose);
  background: #fafbfd;
  box-shadow: 0 0 0 2px rgba(214, 116, 148, .12);
}
.ex-table td.cell-cond-addr.need-addr input::placeholder { color: #c98aa0; }
.cu-bar-tip .addr-tip { color: var(--rose-deep); }

/* v58：新电话 / 补发单号同样是条件列 —— 条件不成立整列不占位，成立了才露出来 */
.ex-table:not(.show-phone) th.cell-cond-phone,
.ex-table:not(.show-phone) td.cell-cond-phone,
.ex-table:not(.show-resend) th.cell-cond-resend,
.ex-table:not(.show-resend) td.cell-cond-resend { display: none !important; }
/* 必填的条件列（新地址 / 新电话）露出来时标红，提醒这一格不能空 */
.ex-table td.cell-cond-phone.need-phone input {
  border-color: var(--rose);
  background: #fafbfd;
  box-shadow: 0 0 0 2px rgba(214, 116, 148, .12);
}
.ex-table td.cell-cond-phone.need-phone input::placeholder { color: #c98aa0; }
/* 补发单号是选填，露出来只给个浅提示，不标红 */
.ex-table td.cell-cond-resend input { background: #fcfdff; }
@media (min-width: 901px) {
  .ex-table.show-phone { min-width: 1290px; }
  .ex-table.show-phone th.cell-cond-phone,
  .ex-table.show-phone td.cell-cond-phone { min-width: 132px; }
  .ex-table.show-resend { min-width: 1310px; }
  .ex-table.show-resend th.cell-cond-resend,
  .ex-table.show-resend td.cell-cond-resend { min-width: 154px; }
}

.cell-sub.addr-sub { color: var(--rose-deep); }
.tpl-sub { font-weight: 400; font-size: 11.5px; color: var(--ink-soft); }

/* 工作台：编辑态「收起卡片」按钮比其它工具更靠右、点起来更醒目 */
.wb-tool-hide { margin-left: 4px; color: #b04b62; border-color: #f0cdd6; background: #fff7f9; }
.wb-tool-hide:hover { background: #ffe9ef; border-color: #e39ab0; color: #93314a; }

/* 工作台：卡片全收起时的空状态 */
.wb-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line); border-radius: 16px; background: var(--cream, #fffaf6);
  padding: 38px 20px; text-align: center;
}
.wb-empty-ico { font-size: 30px; line-height: 1; margin-bottom: 10px; }
.wb-empty-t { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.wb-empty-s { font-size: 12.5px; color: var(--ink-soft); line-height: 1.9; margin-bottom: 14px; }

/* 工作台模块面板 */
.wb-pick { display: grid; gap: 8px; margin: 4px 0 14px; }
.wb-pick-row {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 10px 12px; transition: border-color .15s, background .15s;
}
.wb-pick-row:hover { border-color: #d6dde8; background: #fafbfd; }
.wb-pick-row input { margin: 2px 0 0; accent-color: var(--rose); flex: 0 0 auto; }
.wb-pick-ico { color: var(--rose); font-size: 11px; line-height: 1.6; flex: 0 0 auto; }
.wb-pick-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wb-pick-main b { font-size: 13px; color: var(--ink); }
.wb-pick-main i { font-style: normal; font-size: 11.5px; color: var(--ink-soft); line-height: 1.6; }

/* 改地址列要放得下一整串地址：只在出现这一列时把表格放宽，其他时候不变 */
@media (min-width: 901px) {
  .ex-table.show-addr { min-width: 1400px; }
  .ex-table th.cell-cond-addr { min-width: 236px; }
  .ex-table td.cell-cond-addr { min-width: 236px; }
}

/* ============================================================
   v21：整体视觉对齐「蓝白灰企业后台」
   —— 字体层级收紧、控件规格统一、密集工具条不再满屏色块
   ============================================================ */

/* 密集工具条里的危险 / 成功按钮：浅底描边，只在 hover 时加重 */
.mg-ops .btn.danger,
.mg-group-head .mg-ops .btn.danger,
.mg-mod-row .mg-ops .btn.danger,
.mg-batch .btn.danger,
.ma-ops .btn.danger {
  background: #fdf2f2; color: var(--red); border-color: #f2d8d8;
}
.mg-ops .btn.danger:hover,
.mg-group-head .mg-ops .btn.danger:hover,
.mg-mod-row .mg-ops .btn.danger:hover,
.mg-batch .btn.danger:hover,
.ma-ops .btn.danger:hover { background: #fbe4e4; border-color: #eebcbc; }

.mg-ops .btn.green,
.mg-group-head .mg-ops .btn.green,
.mg-mod-row .mg-ops .btn.green,
.mg-batch .btn.green {
  background: #effaf5; color: var(--green); border-color: #cfeade;
}
.mg-ops .btn.green:hover,
.mg-group-head .mg-ops .btn.green:hover,
.mg-mod-row .mg-ops .btn.green:hover,
.mg-batch .btn.green:hover { background: #e0f5ec; border-color: #b7e0cf; }

/* 表格里的小按钮统一高度，行高不会被撑开 */
.tbl .btn.sm, .cu-table .btn.sm { height: 26px; padding: 0 9px; font-size: 12px; }
.tbl .btn.xs, .cu-table .btn.xs { height: 22px; }

/* 表头里的排序 / 齿轮入口更轻，不抢视觉 */
.tbl th .opt-caret, .cu-table th .opt-caret, .ex-table th .opt-caret { color: var(--ink-3); font-weight: 400; }

/* 页头下第一块内容不再额外留白 */
.topbar + .card, .topbar + .wb-hero, .topbar + .wb-stats { margin-top: 0; }

/* 空状态统一成图片里那种「居中浅灰一句话」 */
.tbl .empty, .cu-table .empty { padding: 30px 0; font-size: 13px; color: var(--ink-3); }

/* 顶部账号条去掉残留阴影，和页头同一视觉层 */
.user-chip { box-shadow: none; }

/* 页脚翻页 */
.tbl-pager, .pager { font-size: 12.5px; color: var(--ink-soft); }

/* 登录页底部提示更小更淡 */
.lg-tip { font-size: 11.5px; color: var(--ink-3); }

/* ============================================================
   v23 · 选项维护：左侧类型导航 + 批量录入 + 拖拽排序 + 跨类型共用
   ============================================================ */
.op-shell {
  display: grid;
  grid-template-columns: minmax(190px, 236px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.op-side {
  position: sticky; top: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 10px;
  max-height: calc(100vh - 110px);
  display: flex; flex-direction: column;
}
.op-side-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 4px 8px; font-size: 12.5px; color: var(--ink);
}
.op-side-count { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.op-side-search {
  width: 100%; height: 30px; padding: 0 10px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); font: inherit; font-size: 12.5px; color: var(--ink);
}
.op-side-search:focus { outline: none; border-color: var(--rose); background: var(--white); }
.op-side-list { overflow: auto; flex: 1; margin: 0 -4px; padding: 0 4px; }
.op-group + .op-group { margin-top: 10px; }
.op-group-t {
  font-size: 11px; color: var(--ink-3); letter-spacing: .4px;
  padding: 4px 6px 3px; text-transform: none;
}
.op-type {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 6px 8px; border: 0; border-radius: var(--radius-sm);
  background: transparent; font: inherit; font-size: 12.5px; color: var(--ink-soft);
  text-align: left; cursor: pointer;
}
.op-type span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-type i {
  font-style: normal; font-size: 10.5px; color: var(--ink-3);
  background: var(--line-soft); border-radius: 9px; padding: 0 6px; line-height: 16px;
}
.op-type:hover { background: var(--line-soft); color: var(--ink); }
.op-type.active { background: var(--rose-light); color: var(--rose-deep); font-weight: 600; }
.op-type.active i { background: #fff; color: var(--rose-deep); }

.op-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.op-card { padding: 14px 16px 12px; }
.op-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.op-title h3 { font-size: 14.5px; margin: 0; color: var(--ink); }
.op-sub { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.op-sub b { color: var(--ink); font-variant-numeric: tabular-nums; }
.op-head-ops { display: flex; align-items: center; gap: 8px; }
.op-kw {
  height: 30px; width: 190px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); font: inherit; font-size: 12.5px;
}
.op-kw:focus { outline: none; border-color: var(--rose); background: #fff; }

.op-tools {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin: 12px 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft);
}
.op-add-btn { height: 30px; padding: 0 12px; font-size: 12.5px; }
.op-tools .btn.sm { height: 28px; font-size: 12px; padding: 0 10px; border-radius: var(--radius-xs); }
.op-tools-tip { font-size: 11.5px; color: var(--ink-3); margin-left: auto; }

.op-bulk {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); padding: 10px; margin-bottom: 10px;
}
.op-bulk textarea {
  width: 100%; min-height: 92px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: var(--radius-xs);
  background: #fff; font: inherit; font-size: 13px; line-height: 1.75; resize: vertical;
}
.op-bulk textarea:focus { outline: none; border-color: var(--rose); }
.op-bulk-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.op-bulk-preview { font-size: 12px; color: var(--ink-soft); flex: 1; }
.op-bulk-preview b { color: var(--rose-deep); font-variant-numeric: tabular-nums; }
.op-bulk-preview.is-warn b { color: var(--orange); }

.op-selbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 7px 10px; margin-bottom: 8px;
  background: var(--rose-light); border: 1px solid #d7e3ff; border-radius: var(--radius-sm);
  font-size: 12.5px; color: var(--rose-deep);
}
.op-selbar b { font-variant-numeric: tabular-nums; }

.op-tbl-wrap { max-height: 62vh; overflow: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.op-tbl { width: 100%; table-layout: fixed; min-width: 640px; }
.op-tbl thead th {
  position: sticky; top: 0; z-index: 2; background: var(--cream);
  font-size: 12px; color: var(--ink-soft); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.op-tbl td { padding: 5px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.op-tbl tr.is-sel td { background: #f5f8ff; }
.op-tbl tr.op-dragging { opacity: .45; background: var(--rose-light); }
.op-tbl tr[draggable="true"] { cursor: default; }
.op-c-check { width: 34px; text-align: center; }
.op-c-check input { width: 14px; height: 14px; cursor: pointer; accent-color: var(--rose); }
.op-c-no {
  width: 74px; white-space: nowrap; color: var(--ink-soft);
  font-variant-numeric: tabular-nums; font-size: 12px;
}
.op-c-no b { font-weight: 600; color: var(--ink); }
.op-grip {
  display: inline-block; color: var(--ink-3); cursor: grab; margin-right: 6px;
  letter-spacing: -1px; user-select: none;
}
.op-grip:active { cursor: grabbing; }

/* 选项值：用自适应高度的 textarea，长名称换行完整显示，不再被列宽截断 */
.op-c-val { padding: 3px 6px; }
.op-c-val .op-val {
  display: block; width: 100%; min-height: 28px; max-height: 132px;
  padding: 4px 8px; margin: 0;
  border: 1px solid transparent; border-radius: var(--radius-xs);
  background: transparent; font: inherit; font-size: 13px; line-height: 1.6; color: var(--ink);
  resize: none; overflow-y: hidden;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
}
.op-c-val .op-val:hover { background: var(--cream); }
.op-c-val .op-val:focus { outline: none; background: #fff; border-color: var(--rose); }
.op-c-use { width: 122px; }
.op-use { display: flex; align-items: center; gap: 7px; }
.op-use-track { flex: 1; max-width: 78px; display: block; height: 5px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.op-use-track i { display: block; height: 100%; background: var(--rose); opacity: .55; border-radius: 3px; }
.op-use b { font-size: 11.5px; color: var(--ink-soft); min-width: 22px; text-align: right; }
.op-use-na { color: var(--ink-3); font-size: 12px; }
.op-c-ops { width: 178px; text-align: right; white-space: nowrap; }
.op-c-ops .btn.sm { height: 26px; font-size: 11.5px; padding: 0 8px; border-radius: var(--radius-xs); margin-left: 4px; }
.op-c-ops .btn.sm:first-child { margin-left: 0; }
/* 编辑弹窗：字数提示 + 就地报错（不弹 toast 也能看见为什么存不了） */
.oev-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 12px; color: var(--ink-soft); }
.oev-meta .is-over { color: var(--red); font-weight: 600; }
.oev-warn { color: var(--red); font-size: 12px; text-align: right; }
.op-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin-top: 9px; font-size: 12px; color: var(--ink-soft);
}
.op-foot b { color: var(--ink); font-variant-numeric: tabular-nums; }
.op-foot-tip { color: var(--ink-3); font-size: 11.5px; }

.op-ref-card { padding: 14px 16px; }
.op-ref-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.op-ref-head h3 { font-size: 13.5px; margin: 0; }
.op-ref-desc { font-size: 12px; color: var(--ink-soft); line-height: 1.8; margin: 6px 0 10px; }
.op-ref-list { display: flex; flex-direction: column; gap: 8px; }
.op-ref-empty {
  font-size: 12.5px; color: var(--ink-3); padding: 14px;
  background: var(--cream); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
}
.op-ref-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 11px; }
.op-ref-item-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.op-ref-item-h b { font-size: 12.5px; color: var(--ink); }
.op-ref-item-h > span { font-size: 11.5px; color: var(--ink-3); flex: 1; }
.op-ref-item-h .btn.sm { height: 26px; font-size: 11.5px; padding: 0 9px; }
.op-ref-vals { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.op-ref-tag {
  font-size: 11.5px; color: var(--ink-soft); background: var(--line-soft);
  border-radius: 5px; padding: 1px 7px; line-height: 18px;
}
.op-ref-none { font-size: 11.5px; color: var(--ink-3); }
.op-note { font-size: 11.5px; color: var(--ink-3); line-height: 1.8; }
.op-ref-search {
  width: 100%; height: 32px; padding: 0 10px; margin: 10px 0 8px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 12.5px;
}
.op-ref-search:focus { outline: none; border-color: var(--rose); }
.op-ref-pick { max-height: 300px; overflow: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.op-ref-opt {
  display: flex; align-items: center; gap: 9px; padding: 7px 11px;
  border-bottom: 1px solid var(--line-soft); cursor: pointer;
}
.op-ref-opt:last-child { border-bottom: 0; }
.op-ref-opt:hover { background: var(--cream); }
.op-ref-opt input { accent-color: var(--rose); width: 14px; height: 14px; }
.op-ref-opt span { flex: 1; display: flex; align-items: baseline; gap: 7px; }
.op-ref-opt b { font-size: 12.5px; font-weight: 500; color: var(--ink); }
.op-ref-opt i { font-style: normal; font-size: 11px; color: var(--ink-3); }
.op-ref-opt em { font-style: normal; font-size: 11.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .op-shell { grid-template-columns: 1fr; }
  .op-side { position: static; max-height: none; }
  .op-side-list { max-height: 190px; }
  .op-head-ops { width: 100%; }
  .op-kw { flex: 1; width: auto; }
  .op-c-use { display: none; }
  .op-tbl thead th.op-c-use { display: none; }
  .op-c-ops { width: 148px; }
}

/* ============================================================
   v23 · 全局命令面板（Ctrl + K）
   ============================================================ */
.nav-search {
  display: flex; align-items: center; gap: 7px; width: 100%;
  margin: 2px 0 8px; padding: 7px 9px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); color: var(--ink-3);
  font: inherit; font-size: 12.5px; text-align: left; cursor: pointer;
}
.nav-search:hover { border-color: var(--line-strong); color: var(--ink-soft); background: #fff; }
.nav-search .ns-ico { font-size: 12px; }
.nav-search .ns-txt { flex: 1; }
.nav-search kbd {
  font: inherit; font-size: 10.5px; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; background: #fff;
}

.cmdk-mask {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(16, 24, 40, .38);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 16px 40px;
  backdrop-filter: blur(2px);
}
.cmdk {
  width: 640px; max-width: 100%;
  background: #fff; border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(16, 24, 40, .22);
  overflow: hidden;
  display: flex; flex-direction: column; max-height: 72vh;
}
.cmdk-head {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.cmdk-mag { font-size: 14px; opacity: .7; }
.cmdk-input {
  flex: 1; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 14.5px; color: var(--ink);
}
.cmdk-input::placeholder { color: var(--ink-3); }
.cmdk-esc { font-size: 10.5px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.cmdk-body { overflow: auto; padding: 6px; flex: 1; }
.cmdk-group-t {
  font-size: 10.5px; color: var(--ink-3); padding: 8px 10px 4px;
  letter-spacing: .3px;
}
.cmdk-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.cmdk-item.on { background: var(--rose-light); }
.cmdk-ico { width: 18px; text-align: center; font-size: 14px; flex: none; }
.cmdk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cmdk-main b { font-size: 13px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-main i { font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-item.on .cmdk-main b { color: var(--rose-deep); }
.cmdk-enter { font-size: 11px; color: var(--ink-3); opacity: 0; }
.cmdk-item.on .cmdk-enter { opacity: 1; }
.cmdk-empty { padding: 26px 16px; text-align: center; }
.cmdk-empty-t { font-size: 13.5px; color: var(--ink); }
.cmdk-empty-s { font-size: 12px; color: var(--ink-3); margin-top: 6px; line-height: 1.8; }
.cmdk-foot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 8px 14px; border-top: 1px solid var(--line);
  background: var(--cream); font-size: 11px; color: var(--ink-3);
}
.cmdk-foot b { color: var(--ink-soft); font-weight: 600; }
.cmdk-foot-tip { margin-left: auto; }

@media (max-width: 700px) {
  .cmdk-mask { padding-top: 6vh; }
  .cmdk-foot-tip { display: none; }
}

/* v23 · 工作台待办：明细列表已关闭，只保留汇总格子（见 .wb-today-metrics） */
.wb-chip-warn { border-color: #f0d5b0; background: #fff9f0; color: #9a5b12; }
.wb-chip-warn i { background: var(--orange); opacity: .9; }
.wb-chip-warn b { color: #8a4d0a; }
.oe-row.is-drag { opacity: .5; background: var(--rose-light); }
.oe-grip { cursor: grab; }
.oe-grip:active { cursor: grabbing; }
.op-found {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 8px; padding: 8px 11px;
  background: #f6f9ff; border: 1px dashed #c9d9f7; border-radius: var(--radius-sm);
  font-size: 12px; color: var(--ink-soft);
}
.op-found-t { flex: 1; line-height: 1.7; }
.op-found-t b { color: var(--rose-deep); font-variant-numeric: tabular-nums; }
.op-found .btn.sm { height: 26px; font-size: 11.5px; padding: 0 10px; border-radius: var(--radius-xs); }

/* ============================================================
   v24 · 表头拖拽换列顺序
   ============================================================ */
.col-drag thead th[data-col] {
  cursor: grab;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}
.col-drag thead th[data-col]:active { cursor: grabbing; }
.col-drag thead th[data-col]:hover { background: #f1f5fd; }
.col-drag thead th.col-dragging { opacity: .45; background: var(--rose-light); }
.col-drag thead th.drop-l { box-shadow: inset 2px 0 0 var(--rose); }
.col-drag thead th.drop-r { box-shadow: inset -2px 0 0 var(--rose); }
.col-drag thead th[data-col]::after {
  content: "⋮";
  position: absolute;
  right: 1px; top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  color: var(--ink-3);
  opacity: 0;
  transition: opacity .12s;
}
.col-drag thead th[data-col]:hover::after { opacity: .8; }

/* ============================================================
   v24 · 工作交接 = 工单：工单号 / 优先级 / 超时 / 流转记录
   ============================================================ */
.hv-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hv-tile.gray { border-left-color: var(--ink-3); }
.hv-tile.gray b { color: var(--ink-soft); }

.hv-table .c-no { width: 124px; }
.hv-table .c-pri { width: 74px; }
.hv-table .c-time { width: 88px; }
.hv-table .c-prog { width: 196px; }
.hv-table .c-ops { width: 170px; }

.hv-wo {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; color: var(--rose-deep); background: var(--rose-light);
  border-radius: 5px; padding: 1px 6px; white-space: nowrap;
}
.hv-wo-cat { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.hv-pri-tag { font-size: 11px; }
.hv-due { font-size: 11px; color: var(--ink-3); margin-top: 3px; white-space: nowrap; }
.hv-due.late { color: var(--red); font-weight: 700; }

.hv-sel {
  height: 32px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-family: inherit; font-size: 12.5px; color: var(--ink);
}
.hv-sel:focus { outline: none; border-color: var(--rose); }
.hv-late-chip {
  font-size: 12px; color: var(--red); background: #fdecec;
  border: 1px solid #f6d0d0; border-radius: 999px; padding: 4px 11px;
}
.hv-late-chip b { font-variant-numeric: tabular-nums; }

.hv-kv-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 4px 18px;
}
.hv-kv-grid .hv-det-kv { padding: 2px 0; }

.hv-log { list-style: none; margin: 4px 0 0; padding: 0 0 0 4px; }
.hv-log li { position: relative; padding: 0 0 10px 16px; }
.hv-log li:last-child { padding-bottom: 0; }
.hv-log li::before {
  content: ""; position: absolute; left: 3px; top: 14px; bottom: -2px;
  width: 1px; background: var(--line);
}
.hv-log li:last-child::before { display: none; }
.hv-log .dot {
  position: absolute; left: 0; top: 5px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 2px var(--rose-light);
}
.hv-log b { display: block; font-size: 12.5px; color: var(--ink); font-weight: 600; }
.hv-log span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; line-height: 1.6; }

/* ===== v24：表格里的单号提示压成一行，避免把整行撑高 ===== */
.cu-table .cu-cell .ti-hint {
  margin-top: 4px; padding: 3px 7px; font-size: 11px; line-height: 1.45;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  cursor: help;
}
.cu-table .cu-cell .ti-hint:hover { white-space: normal; overflow: visible; }

/* 理赔登记 8 列，1440 屏也尽量一屏放下，不把「删除」推到滚动区外 */
@media (min-width: 1100px) {
  .cl-table { min-width: 0; }
  .cl-table .cu-cell input, .cl-table .cu-cell select { min-width: 78px; }
  .cl-table thead th, .cl-table tbody td { padding-left: 6px; padding-right: 6px; }
}

/* 列多到要横向滚动时：给「操作」列一个淡阴影边界，滑动时看得清哪列被压住
   （不做 sticky：sticky 会盖住最后一列「备注」，填表时更碍事） */
.cu-table td.cu-del-col, .cu-table th.cu-del-col { box-shadow: -8px 0 10px -10px rgba(90,70,80,.28); }

/* 详情里的键值对（工单号 / 时间）不折行，避免 GD-20261111-502 被拆成两行 */
.hv-det-kv b { white-space: nowrap; }
.hv-det-kv { min-width: 0; }
.hv-kv-grid { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }

/* ============================================================
   v24 · 记录表「状态 / 结果」列的副信息折叠
   默认只显示主状态 + 一个小「+N」，点开才是完整信息浮层卡片
   ============================================================ */
.cell-status { white-space: nowrap; }
.cf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 18px; padding: 0 6px; margin-left: 6px;
  border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--white); color: var(--ink-3);
  font-size: 11px; line-height: 1; font-variant-numeric: tabular-nums;
  cursor: pointer; vertical-align: middle; transition: all .14s;
}
.cf-btn:hover, .cf-btn.on {
  border-color: var(--rose); color: var(--rose-deep); background: var(--rose-light);
}
.cf-pop {
  position: fixed; z-index: 900; width: max-content; max-width: 300px;
  background: var(--white); border: 1px solid var(--line); border-radius: 11px;
  box-shadow: 0 14px 34px rgba(90, 70, 80, .18);
  padding: 10px 12px; font-size: 12.5px;
}
/* 小箭头指向被点开的那枚「+N」，让人一眼知道这块浮层属于哪一格 */
.cf-pop::before {
  content: ""; position: absolute; top: -6px; left: var(--ar, 50%);
  width: 10px; height: 10px; background: var(--white); border-left: 1px solid var(--line);
  border-top: 1px solid var(--line); transform: translateX(-50%) rotate(45deg);
}
.cf-pop.up::before {
  top: auto; bottom: -6px; border-left: 0; border-top: 0;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cf-pop-h { font-size: 11px; color: var(--ink-3); letter-spacing: .3px; margin-bottom: 6px; }
.cf-row { display: flex; gap: 14px; justify-content: space-between; align-items: baseline; padding: 3px 0; }
.cf-row + .cf-row { border-top: 1px dashed var(--line-soft); }
.cf-row span { color: var(--ink-soft); flex: 0 0 auto; white-space: nowrap; }
/* b 要能收缩：flex 里不加 min-width:0，长备注会把卡片撑破而不是换行 */
.cf-row b { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--ink); text-align: right; word-break: break-word; }
.cf-row b.green { color: #2f8f6d; }
.cf-row b.red { color: var(--red); }
.cf-row b.orange { color: #a8641a; }

/* ===== v24 · 记录表操作列：主操作外露，次要操作收进「⋯」菜单 ===== */
.cell-ops { white-space: nowrap; }
.op-more { display: inline-flex; vertical-align: middle; margin-left: 2px; }
.op-more-btn {
  min-width: 30px; padding: 0 6px; line-height: 1; font-size: 13px; letter-spacing: 1px;
}
.op-more-btn.on { border-color: var(--rose); color: var(--rose-deep); background: var(--rose-light); }
.op-menu {
  position: fixed; z-index: 900; min-width: 124px; padding: 5px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(90, 70, 80, .18);
}
.op-menu[hidden] { display: none; }
/* 菜单里是「清单项」不是「一排主按钮」：去底色、左对齐、悬停才亮 */
.op-menu .btn {
  width: 100%; justify-content: flex-start; margin: 0; padding: 0 9px; height: 28px;
  background: transparent; border: 1px solid transparent; box-shadow: none;
  color: var(--ink); font-weight: 500; white-space: nowrap;
}
.op-menu .btn:hover { background: var(--rose-light); color: var(--rose-deep); }
.op-menu .btn.danger { color: var(--red); }
.op-menu .btn.danger:hover { background: #fdecec; color: var(--red); }
.op-menu .btn.green:hover { background: var(--mint); color: #2a7d61; }
/* 菜单里的「删除」用红色，避免在清单里跟普通操作长得一样 */
.op-menu .btn[data-del], .op-menu .btn[data-reject] { color: var(--red); }
.op-menu .btn[data-del]:hover, .op-menu .btn[data-reject]:hover { background: #fdecec; }

/* ============================================================
   v25 · 快递业务改造：操作轨迹 / 快递客服处理表 / 退货分组 / 理赔原因列
   ============================================================ */

/* ---- 操作轨迹（默认折叠，点「轨迹」展开的行内时间线） ---- */
.trail-row > td { padding: 0 10px 10px; background: var(--paper, #fafbfd); }
.trail-box {
  border: 1px dashed var(--line-soft); border-radius: 10px;
  background: var(--white); padding: 8px 12px; margin: 2px 0 4px;
}
.trail-head { font-size: 12px; color: var(--ink-soft); letter-spacing: .3px; margin-bottom: 6px; }
.trail-item {
  display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline;
  padding: 4px 0; font-size: 12.5px;
}
.trail-item + .trail-item { border-top: 1px dashed var(--line-soft); }
.trail-time { flex: 0 0 auto; font-size: 11.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trail-actor { flex: 0 0 auto; font-weight: 600; color: var(--ink); white-space: nowrap; }
.trail-actor::before { content: "👤 "; font-size: 11px; }
.trail-action { flex: 0 0 auto; color: var(--rose-deep); font-weight: 500; white-space: nowrap; }
.trail-detail { flex: 1 1 180px; min-width: 0; color: var(--ink-soft); word-break: break-word; }
[data-trail].on { border-color: var(--rose); color: var(--rose-deep); background: var(--rose-light); }

/* ---- 快递退货包裹登记：按快递公司分组 ---- */
.m-group-row > td {
  background: var(--paper, #fafbfd); padding: 7px 12px;
  border-top: 2px solid var(--line-soft);
}
.m-group-row b { color: var(--rose-deep); font-size: 13px; }
.m-group-cnt { margin-left: 10px; font-size: 12px; color: var(--ink-soft); }

/* ---- 理赔原因列：宽度随内容自适应 + 三档显示 ---- */
.cl-list-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 4px 0 10px; padding: 8px 12px;
  background: var(--paper, #fafbfd); border: 1px solid var(--line-soft); border-radius: 10px;
}
.cl-list-bar-tip { flex: 1 1 320px; font-size: 12px; color: var(--ink-soft); line-height: 1.7; }
.tbl-cl td[data-cell="reason"] { max-width: 240px; }
/* 截断只在「折叠」档生效：span 里始终是完整文本，切到「完整」档自然展开 */
.cl-reason-clip { word-break: break-word; }
.tbl-cl.cl-fold-reason .cl-reason-clip {
  display: inline-block; max-width: 100%; vertical-align: bottom;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tbl-cl.cl-fold-reason td[data-cell="reason"] { max-width: 150px; }
/* 完整档：给原因列保底宽度，避免被表格自动布局压成窄竖条 */
.tbl-cl:not(.cl-fold-reason):not(.cl-hide-reason) th[data-col="reason"],
.tbl-cl:not(.cl-fold-reason):not(.cl-hide-reason) td[data-cell="reason"] { min-width: 220px; }
.tbl-cl.cl-hide-reason th[data-col="reason"],
.tbl-cl.cl-hide-reason td[data-cell="reason"] { display: none; }
.cl-reason-cell { word-break: break-word; }

/* ---- 移动端 ---- */
@media (max-width: 720px) {
  .trail-item { display: block; }
  .trail-detail { margin-top: 2px; }
  .cl-list-bar { padding: 8px 10px; }
}

/* 轨迹按钮图标化：不占操作列宽度，行高不被它撑起来 */
.btn.icon { min-width: 30px; padding: 0 6px; line-height: 1; letter-spacing: 0; }

/* ============================================================
   v28 · 批量勾选 / 大图查看 / 折叠菜单层级 / 排休标记
   ============================================================ */

/* ---------- 列表批量勾选 ---------- */
.bulk-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; margin: 0 0 10px; border-radius: 10px;
  font-size: 12.5px; color: var(--ink);
  background: var(--rose-light); border: 1px solid var(--rose);
  position: sticky; top: 6px; z-index: 6;
  box-shadow: 0 4px 14px rgba(190, 120, 145, .12);
}
.bulk-bar.idle {
  background: transparent; border: 1px dashed var(--line); box-shadow: none;
  color: var(--ink-soft); padding: 5px 2px; position: static;
}
.bulk-bar .bk-hint { font-size: 12px; }
.bulk-bar .bk-n { color: var(--rose-deep); }
.bulk-bar .bk-n b { font-size: 13.5px; }
.bulk-bar .bk-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.bulk-bar .bk-clear {
  border: 0; background: transparent; font: inherit; font-size: 12px;
  color: var(--ink-soft); cursor: pointer; text-decoration: underline; padding: 0 2px;
}
.bulk-bar .bk-clear:hover { color: var(--rose-deep); }

.bk-th, .bk-td { width: 34px; min-width: 34px; max-width: 34px; padding-left: 8px !important; padding-right: 0 !important; text-align: center; }
.bk-th input, .bk-td input { width: 15px; height: 15px; accent-color: var(--rose); cursor: pointer; vertical-align: middle; }
thead .bk-th { position: sticky; top: 0; z-index: 3; background: var(--cream); }
.tbl-ex thead .bk-th, .tbl-cl thead .bk-th { background: var(--cream); }
tbody tr.bk-on td { background: #fff8fa; }

/* ---------- 全屏大图查看 ---------- */
body.no-scroll { overflow: hidden; }
.imgv-mask {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(20, 14, 18, .93);
  display: flex; flex-direction: column;
  animation: iv-in .16s ease-out;
}
@keyframes iv-in { from { opacity: 0; } to { opacity: 1; } }
.imgv-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; color: #fff; flex: 0 0 auto;
}
.imgv-count { font-size: 12.5px; letter-spacing: .4px; color: rgba(255,255,255,.78); }
.imgv-ops { display: flex; align-items: center; gap: 6px; }
.imgv-ops button, .imgv-ops a {
  font: inherit; font-size: 12.5px; line-height: 1.4; color: #fff;
  background: rgba(255,255,255,.13); border: 1px solid transparent; border-radius: 8px;
  padding: 5px 11px; cursor: pointer; text-decoration: none;
}
.imgv-ops button:hover, .imgv-ops a:hover { background: rgba(255,255,255,.26); }
.imgv-ops button:disabled { opacity: .3; cursor: default; }
.imgv-sep { width: 1px; height: 16px; background: rgba(255,255,255,.2); margin: 0 2px; }
.imgv-ops .imgv-x { background: rgba(255,255,255,.92); color: #2a2024; font-weight: 600; }
.imgv-ops .imgv-x:hover { background: #fff; }
.imgv-stage {
  flex: 1 1 auto; min-height: 0; overflow: auto;
  display: flex; align-items: center; justify-content: center;
  padding: 0 18px 8px;
}
.imgv-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 6px; box-shadow: 0 18px 60px rgba(0,0,0,.5);
  transition: transform .12s ease-out; transform-origin: center center;
}
.imgv-stage img.zoomed { max-width: none; max-height: none; }
.imgv-thumbs {
  display: flex; gap: 8px; justify-content: center; overflow-x: auto;
  padding: 8px 16px 14px; flex: 0 0 auto;
}
.imgv-thumb {
  width: 56px; height: 56px; flex: 0 0 auto; padding: 0;
  border: 2px solid transparent; border-radius: 9px; overflow: hidden;
  background: #000; cursor: pointer; opacity: .6;
}
.imgv-thumb.on { border-color: #fff; opacity: 1; }
.imgv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 620px) {
  .imgv-bar { flex-wrap: wrap; gap: 8px; }
  .imgv-ops { flex-wrap: wrap; }
}

/* ---------- 图片上传区：更大的可点区域与明确拖拽反馈 ---------- */
.img-drop {
  transition: border-color .15s, background .15s, box-shadow .15s;
  position: relative;
}
.img-drop:hover { border-color: var(--rose); background: var(--rose-light); color: var(--rose-deep); }
.img-drop:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.img-drop.over {
  border-color: var(--rose); background: var(--rose-light);
  box-shadow: inset 0 0 0 2px rgba(216, 86, 124, .2);
}
.img-drop.mini { min-height: 48px; display: flex; align-items: center; justify-content: center; }
.cu-cell .img-drop.mini { min-height: 42px; padding: 6px 4px; }
.cu-cell .fc-img-preview .img-item { width: 46px; height: 46px; }
.img-item img { cursor: zoom-in; }
.img-view { transition: transform .14s, box-shadow .14s; }
.img-view:hover { transform: scale(1.06); box-shadow: 0 4px 14px rgba(90, 60, 70, .22); }

/* ---------- 排班：休息标记 ---------- */
.shift-休, .shift-mini.shift-休 {
  background: #e9edf4; color: #4d5765;
  box-shadow: inset 0 0 0 1px #d3dae6;
}
.sched-matrix td.sc-cell .shift-mini.shift-休 { font-weight: 600; }
.sched-legend .shift-pill.shift-休 { background: #eceff4; color: #5b6676; }
.sched-matrix td.sc-rest { background: #fbfcfe; }
/* 需求 5：标了「休」的单元格给一点底色，一眼能认出排休 */
.sched-matrix td.sc-cell.rest-col:not(.today-col) { background: #f4f7fb; }
.sched-matrix td.sc-cell.rest-col .shift-mini { box-shadow: inset 0 0 0 1px #dbe2ec; }
.sched-matrix td.sc-cell.rest-col:hover { background: #eef3f9; }

/* ---------- 第二十九轮：统一选项下拉（店铺 / 商品） ---------- */
.cu-uni { display: flex; align-items: stretch; gap: 4px; min-width: 0; }
.cu-uni input { flex: 1 1 auto; min-width: 0; }
.cu-uni .uni-pick {
  flex: 0 0 auto; width: 24px; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px;
  background: #f7f8fb; color: var(--ink-soft);
  font-size: 11px; line-height: 1;
  transition: border-color .15s, background .15s, color .15s;
}
.cu-uni .uni-pick:hover { border-color: var(--rose); background: var(--rose-light); color: var(--rose-deep); }
.cu-uni .uni-pick:active { transform: translateY(1px); }
.cu-cell .cu-uni .uni-pick { height: 30px; }
/* 补发单号被禁用时（该行不是补发类结果）保持可读但不抢眼 */
.as-table td[data-cell="reship_tracking_no"].is-off input { cursor: not-allowed; }

/* ---------- 第三十轮：单号查重提示 + 已有单据详情 ---------- */
.dup-lead {
  font-size: 13px; color: var(--ink-soft); line-height: 1.8;
  background: var(--peach); border: 1px solid #f3e2cd; border-radius: var(--radius-sm);
  padding: 9px 12px; margin-bottom: 12px;
}
.dup-lead .dup-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; color: var(--ink); letter-spacing: .3px;
  padding: 1px 6px; border-radius: 5px; background: #fff; border: 1px solid #f0dfc9;
}
.dup-list { display: flex; flex-direction: column; gap: 8px; }
.dup-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 11px; background: var(--white); transition: border-color .15s, box-shadow .15s;
}
.dup-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.dup-item-top { display: flex; align-items: center; gap: 6px; }
.dup-item-time { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.dup-item-body { display: flex; align-items: baseline; gap: 8px; margin-top: 5px; min-width: 0; }
.dup-item-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.dup-item-sub { font-size: 12px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dup-item-foot { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.dup-item-owner { font-size: 11.5px; color: var(--ink-3); }
.dup-item-foot .btn { margin-left: auto; }
.dup-tip { font-size: 12px; color: var(--ink-soft); line-height: 1.7; margin: 12px 0 2px; }

/* 已有单据详情 */
.rd-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 12px; margin-bottom: 12px;
  background: var(--cream); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
}
.rd-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px; font-weight: 600; letter-spacing: .3px;
}
.rd-meta { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.rd-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--white);
}
.rd-cell {
  display: flex; gap: 10px; padding: 8px 11px; background: var(--white); min-width: 0;
  border-bottom: 1px solid var(--line-soft);
}
.rd-cell:nth-child(odd):not(:last-child) { border-right: 1px solid var(--line-soft); }
.rd-label { flex: 0 0 78px; font-size: 12px; color: var(--ink-3); }
.rd-value { flex: 1 1 auto; font-size: 12.5px; color: var(--ink); word-break: break-word; }
.rd-sec { font-size: 12px; font-weight: 600; color: var(--ink-soft); margin: 14px 0 7px; }
.rd-imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.rd-imgs img {
  width: 66px; height: 66px; object-fit: cover; border-radius: var(--radius-xs);
  border: 1px solid var(--line); cursor: zoom-in; transition: transform .15s, border-color .15s;
}
.rd-imgs img:hover { transform: translateY(-1px); border-color: var(--rose); }
.rd-ops {
  max-height: 190px; overflow-y: auto;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 6px 10px; background: var(--cream);
}
.rd-op { display: flex; gap: 8px; font-size: 12px; padding: 4px 0; line-height: 1.6; }
.rd-op + .rd-op { border-top: 1px dashed var(--line-soft); }
.rd-op-time { flex: 0 0 108px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rd-op-actor { flex: 0 0 auto; color: var(--ink-soft); }
.rd-op-action { flex: 0 0 auto; font-weight: 600; }
.rd-op-detail { color: var(--ink-soft); min-width: 0; word-break: break-word; }
@media (max-width: 620px) {
  .rd-grid { grid-template-columns: 1fr; }
  .rd-label { flex-basis: 68px; }
  .rd-op-time { flex-basis: 92px; }
}

/* ===== 存储与留存页（第三十四轮）===== */
.sg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 4px 0 2px; }
.sg-cell { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.sg-cell b { display: block; font-size: 21px; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.sg-cell span { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-soft); line-height: 1.4; }
.sg-bar { height: 8px; margin: 14px 0 7px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.sg-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #34d399, #10b981); transition: width .3s; }
.sg-note { font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }
.sg-hint { margin-top: 8px; font-size: 12px; color: var(--ink-3); line-height: 1.7; }
.sg-chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.sg-chip { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--line-soft); color: var(--ink-soft); }
.sg-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink); cursor: pointer; }
.sg-out { margin-top: 10px; }
.sg-msg { font-size: 13px; line-height: 1.85; padding: 10px 12px; border-radius: 8px; background: var(--line-soft); color: var(--ink); }
.sg-msg.ok { background: var(--mint); }
@media (max-width: 640px) { .sg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sg-cell b { font-size: 18px; } }

/* ===== 第三十八轮：退货包裹 / 报废登记 表单紧凑化 + 店铺商品选择面板 ===== */
/* 只作用于 .cu-tight（这两个模块），其它模块的表格与下拉保持原样 */
.cu-table.cu-tight { table-layout: fixed; min-width: 940px; }
.cu-table.cu-tight thead th { padding: 7px 6px; font-size: 11.8px; }
.cu-table.cu-tight tbody td { padding: 6px 5px; vertical-align: middle; }
.cu-tight .cu-idx { width: 30px; padding-top: 0 !important; }
.cu-tight .cu-del-col { width: 40px; }
.cu-tight .cu-cell input,
.cu-tight .cu-cell select,
.cu-tight .cu-cell textarea {
  min-width: 0; height: 32px; padding: 0 7px; font-size: 12.5px;
}
.cu-tight .cu-cell textarea { height: 32px; min-height: 32px; padding: 6px 7px; line-height: 1.5; }
.cu-tight .cu-cell .cu-combo input { min-width: 0; }
.cu-tight .cu-combo, .cu-tight .cu-combo input { width: 100%; }

/* 图片位压成小方块：高度跟着输入框走，缩略图排在下面，行高不再被撑大 */
.cu-table.cu-tight td .cu-img-tile {
  position: relative; height: 32px; min-height: 32px; padding: 0; overflow: hidden;
  width: 100%; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 3px;
  border: 1px dashed var(--line-strong); border-radius: 7px; background: #fbfcfe;
  color: var(--ink-soft); cursor: pointer; transition: border-color .15s, background .15s;
}
.cu-tight .cu-img-tile .cu-img-plus { font-size: 14px; line-height: 1; color: var(--rose-deep); font-weight: 600; }
.cu-tight .cu-img-tile .cu-img-txt { font-size: 11.5px; line-height: 1; }
.cu-tight .cu-img-tile:hover { border-color: var(--rose); background: var(--rose-light); color: var(--rose-deep); }
.cu-tight .cu-img-tile input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}
.cu-tight .cu-img-pv { margin-top: 3px; gap: 3px; }
.cu-tight .cu-img-pv:empty { display: none; }
.cu-tight .cu-img-pv .img-item { width: 28px; height: 28px; border-radius: 4px; }
.cu-tight .cu-img-pv .img-item .del { width: 14px; height: 14px; font-size: 10px; top: 1px; right: 1px; line-height: 1; }

/* 店铺 / 商品选择面板：挂在 body 上，比输入框宽，选项更高更好点 */
.cu-combo { position: relative; width: 100%; min-width: 0; }
.cu-combo-pop {
  position: fixed; z-index: 1600; background: #fff; border: 1px solid var(--line-strong);
  border-radius: 12px; box-shadow: 0 16px 40px rgba(30, 40, 60, .16); padding: 6px;
  max-height: 300px; overflow: auto; overscroll-behavior: contain;
}
.cu-combo-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 3px 8px 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line-soft);
}
.cu-combo-head b { font-size: 12px; color: var(--ink); font-weight: 600; }
.cu-combo-head span { font-size: 11px; color: var(--ink-3); }
.cu-combo-list { display: flex; flex-direction: column; gap: 1px; }
.cu-combo-opt {
  min-height: 38px; padding: 0 10px; display: flex; align-items: center;
  border-radius: 8px; font-size: 13.5px; color: var(--ink); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cu-combo-opt:hover, .cu-combo-opt.is-active { background: var(--rose-light); color: var(--rose-deep); }
.cu-combo-opt mark { background: #ffe6a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.cu-combo-empty { padding: 10px 8px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }

/* 笔记本窄屏（内容区 <1000）只留一个「＋」，图片位不至于把字挤掉 */
@media (max-width: 1320px) {
  .cu-tight .cu-img-tile .cu-img-txt { display: none; }
}
@media (max-width: 900px) {
  .cu-table.cu-tight { table-layout: auto; min-width: 0; }
  .cu-tight .cu-cell textarea { height: auto; }
  .cu-tight .cu-cell input, .cu-tight .cu-cell select { min-width: 96px; }
  .cu-tight .cu-img-tile .cu-img-txt { display: inline; }
}

/* ===== 第三十九轮：登记记录分页 + 修改已提交的登记 ===== */
/* 分页条：每页 10 / 20 / 30 条 + 上一页 / 下一页，居中放在表格下面 */
.pager {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft);
}
.pager-size {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--ink-soft); white-space: nowrap;
}
.pager-size select {
  height: 30px; padding: 0 22px 0 8px; font-size: 12.5px; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 7px; background: #fff;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 13px) 13px, calc(100% - 9px) 13px;
  background-size: 4px 4px, 4px 4px; background-repeat: no-repeat;
}
.pager-size select:focus { outline: none; border-color: var(--rose); }
.pager-info {
  font-size: 12.5px; color: var(--ink-soft); min-width: 132px;
  text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.pager .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* 修改登记的弹窗：左边字段名、右边控件，一屏能看全 */
.rec-edit-head {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -4px 0 10px;
  font-size: 12.5px; color: var(--ink-soft);
}
.rec-edit-head b { color: var(--ink); font-weight: 600; }
.rec-edit-tbl { table-layout: auto; min-width: 0; }
.rec-edit-tbl th {
  width: 118px; text-align: left; vertical-align: middle; white-space: nowrap;
  font-size: 12.5px; font-weight: 500; color: var(--ink-soft); padding: 6px 10px 6px 0;
  background: transparent; border-bottom: 1px solid var(--line-soft);
}
.rec-edit-tbl td { padding: 5px 0; border-bottom: 1px solid var(--line-soft); }
.rec-edit-tbl tr:last-child th, .rec-edit-tbl tr:last-child td { border-bottom: 0; }
.rec-edit-tbl .cu-cell input, .rec-edit-tbl .cu-cell select { height: 34px; }
.rec-edit-tbl .cu-cell textarea { min-height: 60px; height: auto; }
.rec-edit-tbl .cu-sr { display: none; }
.rec-edit-tbl .cu-img-pv { margin-top: 4px; }

@media (max-width: 560px) {
  .rec-edit-tbl th { width: 84px; white-space: normal; font-size: 12px; }
  .pager-info { min-width: 0; }
}

/* 编辑弹窗用宽版，并把登记表里的固定列宽 / 最小宽度收回来，避免撑出弹窗 */
.rec-edit-tbl.cu-table.cu-tight { table-layout: auto; min-width: 0; width: 100%; }
.rec-edit-tbl .cu-cell { max-width: none; }
.rec-edit-tbl .cu-cell.cu-img-tile,
.rec-edit-tbl td .cu-img-tile { max-width: 240px; }
.rec-edit-tbl td input, .rec-edit-tbl td select, .rec-edit-tbl td textarea { max-width: 100%; }

/* 编辑弹窗里直接铺在单元格里的原生控件：跟登记表的输入框一个尺寸 */
.rec-edit-tbl td > input,
.rec-edit-tbl td > select,
.rec-edit-tbl td > textarea {
  width: 100%; height: 34px; padding: 0 8px; font-size: 13px;
  border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: var(--ink);
}
.rec-edit-tbl td > textarea { height: auto; min-height: 56px; padding: 7px 8px; line-height: 1.6; }
.rec-edit-tbl td > input:focus,
.rec-edit-tbl td > select:focus,
.rec-edit-tbl td > textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-light); }
.rec-edit-tbl td > .img-drop.cu-img-tile { max-width: 240px; }

/* ============================================================
   v41 · 列表操作列默认折叠：整列只留一个「⋯」，点开才展开全部操作
   目的：原来三个按钮把操作列撑到 200 多像素，订单号 / 商品被挤得没地方站
   ============================================================ */
/* 折叠态列宽 236px → 56px；表格是 auto 布局，width 作为上限提示 */
.cell-ops.ops-fold {
  width: 56px; min-width: 56px; max-width: 56px;
  padding-left: 4px; padding-right: 4px; text-align: center;
}
/* 快递 / 理赔 / 售后这几张表原来把操作列设成 flex 换行，折叠后只有一个按钮，回普通单元格更稳 */
.tbl-ex .cell-ops.ops-fold,
.tbl-cl .cell-ops.ops-fold,
.tbl-as .cell-ops.ops-fold { display: table-cell; }
.cell-ops.ops-fold .op-more { margin-left: 0; }

/* 角标：有待确认时在 ⋯ 右上角点一个数字，不多占一像素列宽 */
.op-more-btn { position: relative; }
.op-dot {
  position: absolute; top: -6px; right: -6px; min-width: 15px; height: 15px; padding: 0 3px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; background: var(--red); color: #fff;
  font-size: 9.5px; font-style: normal; line-height: 1; letter-spacing: 0;
  box-shadow: 0 0 0 1.5px var(--white);
}
/* 菜单顶部只读提示（不是按钮，点了不会收起菜单） */
.op-note {
  padding: 4px 9px 5px; margin-bottom: 2px; border-bottom: 1px dashed var(--line);
  font-size: 11.5px; color: var(--ink-soft); line-height: 1.5;
  max-width: 210px; white-space: normal;
}
/* 菜单里禁用的操作（如已完结的单）保持可读，只是不能点 */
.op-menu .btn[disabled] { opacity: .45; cursor: not-allowed; }
.op-menu .btn[disabled]:hover { background: transparent; color: var(--ink); }

/* ============================================================
   v41 · 快递清单外链自测面板（发群前先验 4 项，不改任何真实数据）
   ============================================================ */
.stt-head { margin: 10px 0 12px; }
.stt-url { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.stt-url input {
  flex: 1 1 100%; min-width: 0; height: 34px; padding: 0 9px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--paper, #fafbfd); color: var(--ink-soft);
  font-size: 12px; font-family: ui-monospace, Menlo, Consolas, monospace;
}
.stt-sum {
  margin-top: 8px; padding: 8px 10px; border-radius: 9px;
  background: var(--paper, #fafbfd); border: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.6;
}
.stt-good { color: #2a7d61; }
.stt-bad { color: var(--red); }

.stt-list { display: flex; flex-direction: column; gap: 8px; }
.stt-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px;
  background: #fff;
}
.stt-item[data-state="ok"] { border-color: rgba(58, 160, 122, .35); background: #f6fbf8; }
.stt-item[data-state="fail"] { border-color: rgba(200, 60, 70, .3); background: #fdf6f6; }
.stt-n {
  flex: 0 0 20px; height: 20px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--rose-light); color: var(--rose-deep);
  font-size: 11.5px; font-weight: 600;
}
.stt-item[data-state="ok"] .stt-n { background: var(--mint); color: #2a7d61; }
.stt-item[data-state="fail"] .stt-n { background: #fdecec; color: var(--red); }
.stt-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stt-body b { font-size: 13px; color: var(--ink); font-weight: 600; }
.stt-desc { font-size: 12px; color: var(--ink-soft); }
.stt-res { font-size: 12px; color: var(--ink-soft); word-break: break-all; }
.stt-item[data-state="fail"] .stt-res { color: var(--red); }
.stt-item[data-state="ok"] .stt-res { color: #2a7d61; }
.stt-tag { flex: 0 0 auto; margin-top: 1px; }
.stt-tip {
  margin-top: 12px; padding: 9px 11px; border-radius: 9px;
  background: var(--paper, #fafbfd); border: 1px dashed var(--line);
  font-size: 11.5px; color: var(--ink-soft); line-height: 1.7;
}
@media (max-width: 560px) {
  .stt-item { padding: 9px 10px; }
  .stt-url input { flex: 1 1 100%; }
}

/* ============================================================
   v42 · 预览地址下的复制硬拦截
   黄条里加「打开正式地址」出路；被拦下的按钮就地变红并说明，不弹窗打断
   ============================================================ */
.pl-guard-sub { display: inline-block; margin-top: 4px; font-size: 11.5px; color: #b98328; }
.pl-guard-go {
  margin-left: 6px; padding: 1px 7px; border-radius: 6px;
  background: #fff; border: 1px solid #e8cf9f; color: #a9701c;
  font-size: 11.5px; text-decoration: none; white-space: nowrap;
}
.pl-guard-go:hover { background: #fdf3e0; border-color: #dcb977; }

/* 被拦下的复制按钮：短暂变红，文字替换为原因，2.8 秒后自动还原 */
.btn.copy-locked,
.btn.copy-locked:hover {
  background: #fdecec; border-color: #f3c7c7; color: #b03a3a;
  cursor: not-allowed;
}
.btn.copy-locked { white-space: nowrap; }

/* ============================================================
   v43 · 首页「知识库最近更新」改为统计摘要
   原来竖排 4 条明细把卡片撑到 170px 高，现在压成「三个数字 + 最近一条」约 90px
   ============================================================ */
.wb-kn-sum { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-kn-num {
  flex: 0 1 auto; min-width: 108px; padding: 6px 12px;
  border-radius: 9px;
  display: flex; align-items: baseline; justify-content: center; gap: 7px;
  background: var(--paper, #fafbfd); border: 1px solid var(--line-soft);
}
.wb-kn-num b { font-size: 19px; line-height: 1.2; color: var(--ink); font-weight: 700; }
.wb-kn-num span { font-size: 11px; color: var(--ink-soft); white-space: nowrap; }

.wb-kn-last {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line);
  text-decoration: none; color: var(--ink); font-size: 12.5px; min-width: 0;
}
.wb-kn-last:hover { color: var(--rose-deep); }
.wb-kn-lab { flex: 0 0 auto; font-size: 11px; color: var(--rose-deep); }
.wb-kn-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   v44 · 登录页「后端存储不可用」提示
   原来把服务商一整段 rpc error 原样倒进 13px 红字里，用户既看不懂也不知道找谁。
   现在换成一段人话 + 一个「重试」按钮，视觉上和时间类错误区分开。
   ============================================================ */
.login-error.login-error-sys {
  padding: 9px 11px; border-radius: 9px;
  background: #fdf6f6; border: 1px solid #f3d3d3;
  color: #a83a3a; font-size: 12.5px; line-height: 1.7;
}
.login-error.login-error-sys::before {
  content: "⚠️ "; font-size: 12px;
}
.lg-retry { display: block; margin-top: 7px; padding: 0 10px; height: 26px; font-size: 12px; }

/* ============ v49 知识库三库（产品 / 业务 / 话术） ============ */
.kb-tabs button b { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; opacity: .75; }
.kb-tabs button.active b { opacity: .9; }

.card.kb-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 12px; }
.kb-tb-main { display: flex; gap: 8px; align-items: center; flex: 1 1 320px; min-width: 260px; }
.kb-tb-main input { flex: 1 1 auto; height: 32px; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); padding: 0 10px; font-size: 13px; font-family: inherit; color: var(--ink); }
.kb-tb-main input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-light); }
.kb-allwrap { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-soft); white-space: nowrap; cursor: pointer; }
.kb-tb-ops { display: flex; gap: 6px; flex-wrap: wrap; }

.kb-hint { font-size: 12px; color: var(--ink-3); line-height: 1.7; margin: 0 0 12px 2px; }

.kb-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 168px)); gap: 10px; margin-bottom: 12px; }
.kb-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; box-shadow: var(--shadow); }
.kb-stat b { display: block; font-size: 19px; color: var(--rose-deep); line-height: 1.2; font-variant-numeric: tabular-nums; }
.kb-stat span { font-size: 11.5px; color: var(--ink-soft); }

.kb-groups { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.kb-chip { height: 27px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: #5b6676; font-size: 12px; font-family: inherit; cursor: pointer; transition: all .15s; }
.kb-chip:hover { border-color: var(--rose); color: var(--rose-deep); }
.kb-chip.on { background: var(--rose); border-color: var(--rose); color: #fff; }
.kb-chip i { font-style: normal; margin-left: 5px; opacity: .7; font-size: 11px; }

.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 12px; }
.kb-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; box-shadow: var(--shadow); cursor: pointer; transition: border-color .16s, transform .16s; display: flex; flex-direction: column; }
.kb-card:hover { border-color: var(--rose); transform: translateY(-1px); }
.kb-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.kb-card-top h4 { font-size: 14.5px; color: var(--ink); line-height: 1.5; word-break: break-word; font-weight: 600; }
.kb-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.kb-card-text { font-size: 12.5px; color: var(--ink-soft); line-height: 1.72; margin-top: 7px; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kb-script-body { font-size: 13px; color: var(--ink); line-height: 1.8; margin-top: 8px; white-space: pre-wrap; background: var(--cream); border: 1px dashed var(--line-strong); border-radius: var(--radius-xs); padding: 9px 11px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.kb-muted { color: var(--ink-3); font-size: 12px; }

.kb-facts { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.kb-fact { font-size: 11.5px; color: #4d5a6b; background: #f4f7fb; border: 1px solid var(--line-soft); border-radius: 4px; padding: 2px 7px; line-height: 17px; }
.kb-fact i { font-style: normal; color: var(--ink-3); margin-right: 4px; }

.kb-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.kb-thumbs img { width: 54px; height: 54px; object-fit: cover; border-radius: var(--radius-xs); border: 1px solid var(--line); background: #f4f7fb; cursor: zoom-in; }
.kb-more-txt { font-size: 11.5px; color: var(--ink-soft); }

.kb-docline { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; align-items: center; }
.kb-doc { font-size: 11.5px; color: var(--rose-deep); background: var(--rose-light); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; text-decoration: none; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-doc:hover { background: var(--rose); color: #fff; }
.kb-doc.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: var(--radius-xs); padding: 5px 9px; max-width: 100%; }
.kb-doc.chip i { font-style: normal; color: var(--ink-3); font-size: 11px; }
.kb-doc.chip button { border: none; background: transparent; color: inherit; cursor: pointer; font-size: 12px; padding: 0 0 0 4px; }

.kb-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; font-size: 11.5px; color: var(--ink-3); }
.kb-ops { display: flex; gap: 5px; flex-wrap: wrap; }
.btn.sm.kb-del { background: #fff; border: 1px solid var(--line-strong); color: var(--red); }
.btn.sm.kb-del:hover { background: #fdeaea; border-color: #f0c4c4; }
.kb-copy-btn { display: block; width: 100%; margin-top: 11px; height: 34px; }
.kb-more { text-align: center; margin-top: 14px; }
.kb-empty { padding: 34px 10px; }

.kb-d-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.kb-d-who { font-size: 11.5px; color: var(--ink-3); margin-left: auto; }
.kb-d-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin-bottom: 12px; }
.kb-d-fact { background: var(--cream); border: 1px solid var(--line-soft); border-radius: var(--radius-xs); padding: 7px 10px; font-size: 12.5px; }
.kb-d-fact b { display: block; color: var(--ink-3); font-weight: 500; font-size: 11.5px; margin-bottom: 2px; }
.kb-d-sec { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; margin: 14px 0 7px; }
.kb-d-body { font-size: 13px; color: var(--ink); line-height: 1.85; white-space: pre-wrap; background: var(--cream); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px 14px; max-height: 320px; overflow: auto; }
.kb-d-imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.kb-d-imgs img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-xs); border: 1px solid var(--line); cursor: zoom-in; }
.kb-d-docs { display: flex; gap: 8px; flex-wrap: wrap; }
.kb-d-docs .kb-doc.big { display: inline-flex; align-items: baseline; gap: 6px; border-radius: var(--radius-xs); padding: 7px 11px; max-width: 100%; }
.kb-d-docs .kb-doc.big i { font-style: normal; font-size: 11px; color: var(--ink-3); }

.kb-light { position: fixed; inset: 0; background: rgba(15, 23, 42, .82); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.kb-light img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 12px 40px rgba(0, 0, 0, .4); }
.kb-light-x { position: absolute; top: 18px; right: 22px; width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .16); color: #fff; font-size: 16px; cursor: pointer; }

.kb-edit-sec { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; }
.kb-edit-sec-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 9px; }
.kb-edit-sec-head b { font-size: 13px; color: var(--ink); }
.kb-edit-sec-head span { font-size: 11.5px; color: var(--ink-3); flex: 1 1 200px; }
.kb-req { color: var(--red); font-style: normal; }
.kb-thumbs.edit { min-height: 24px; }
.kb-thumb { position: relative; display: inline-block; }
.kb-thumb img { width: 62px; height: 62px; object-fit: cover; border-radius: var(--radius-xs); border: 1px solid var(--line); }
.kb-thumb button { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; border: none; background: var(--red); color: #fff; font-size: 10px; cursor: pointer; line-height: 1; }
.kb-doclist { display: flex; gap: 6px; flex-wrap: wrap; }

.kb-set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.kb-set-col { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; background: var(--cream); }
.kb-set-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.kb-set-head b { font-size: 12.5px; }
.kb-set-row { display: grid; grid-template-columns: 1.2fr .9fr 1.1fr auto auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.kb-set-row input[type=text], .kb-set-row input:not([type]), .kb-set-row select { height: 29px; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); padding: 0 7px; font-size: 12px; font-family: inherit; width: 100%; }
.kb-set-req { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; }


@media (max-width: 720px) {
  .kb-grid { grid-template-columns: 1fr; }
  .kb-set-grid { grid-template-columns: 1fr; }
  .kb-set-row { grid-template-columns: 1fr 1fr; }
  .kb-tb-main { flex-basis: 100%; }
  .card.kb-toolbar { align-items: stretch; }
}

/* ============ v50 知识库表格版（三库分区 + 列配置 + 侧边详情） ============ */
.kb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.kb-head .kb-tabs { margin-bottom: 0; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 0; flex: 1 1 auto; }
.kb-tabs { display: flex; gap: 4px; flex-wrap: wrap; align-items: flex-end; }
.kb-tabs button { height: 36px; padding: 0 16px; border: 1px solid transparent; border-bottom: none; border-radius: 8px 8px 0 0; background: transparent; color: #5b6676; font-size: 13px; font-family: inherit; cursor: pointer; transition: all .15s; position: relative; top: 1px; }
.kb-tabs button:hover { background: #fff; color: var(--rose-deep); }
.kb-tabs button.active { background: #fff; border-color: var(--line); color: var(--rose-deep); font-weight: 600; box-shadow: 0 1px 0 #fff; }
.kb-tabs button b { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; opacity: .7; font-variant-numeric: tabular-nums; }
.kb-head-ops { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 4px; }

.card.kb-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 10px; }
.kb-search { position: relative; flex: 1 1 300px; min-width: 220px; display: flex; gap: 6px; align-items: center; }
.kb-search-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; opacity: .55; pointer-events: none; }
.kb-search input { flex: 1 1 auto; height: 34px; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); padding: 0 10px 0 30px; font-size: 13px; font-family: inherit; color: var(--ink); background: #fff; }
.kb-search input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-light); }
.kb-sel { height: 34px; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); background: #fff; color: var(--ink); font-size: 12.5px; font-family: inherit; padding: 0 8px; max-width: 210px; cursor: pointer; }
.kb-sel:focus { outline: none; border-color: var(--rose); }
.kb-count { margin-left: auto; padding-left: 6px; font-size: 12px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.kb-tip { font-size: 12px; color: var(--ink-3); line-height: 1.7; margin: 0 0 10px 2px; }

.kb-tblwrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto; max-height: calc(100vh - 300px); }
.kb-tbl { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; }
.kb-tbl thead th { position: sticky; top: 0; z-index: 2; background: #f8fafc; }
.kb-tbl tbody tr { cursor: pointer; }
.kb-tbl tbody tr:hover td { background: #f9fbff; }
.kb-tbl tbody tr.kb-row-arch td { background: #fcfcfd; color: var(--ink-3); }
.kb-tbl td { padding: 9px 10px; font-size: 12.5px; vertical-align: middle; }
.kb-tbl th { padding: 9px 10px; }
.kb-c-type { width: 104px; white-space: nowrap; }
.kb-c-title { min-width: 170px; max-width: 300px; }
.kb-c-text { min-width: 200px; }
.kb-c-dyn { white-space: nowrap; }
.kb-c-num { width: 58px; text-align: center; }
.kb-c-owner { width: 84px; white-space: nowrap; }
.kb-c-time { width: 122px; white-space: nowrap; }
.kb-th-ops, .kb-td-ops { width: 150px; text-align: right; white-space: nowrap; position: sticky; right: 0; background: #fff; }
.kb-tbl thead .kb-th-ops { background: #f8fafc; z-index: 3; }
.kb-tbl tbody tr:hover .kb-td-ops { background: #f9fbff; }
.kb-cell-title { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.kb-cell-title b { font-size: 13px; font-weight: 600; color: var(--ink); word-break: break-word; }
.kb-cell-text { color: #4d5a6b; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; word-break: break-word; }
.kb-cell-owner { color: var(--ink-soft); }
.kb-cell-time { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.kb-type-cell { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.kb-tg { font-size: 11px; color: #6f7b8c; background: #f2f5f9; border-radius: 3px; padding: 0 5px; line-height: 17px; white-space: nowrap; }
.kb-none { color: var(--ink-3); font-size: 12px; }
.kb-num { font-size: 12px; color: #4d5a6b; font-variant-numeric: tabular-nums; }
.kb-ops { display: inline-flex; gap: 8px; align-items: center; justify-content: flex-end; }
.kb-lnk { border: none; background: none; padding: 0; color: var(--rose-deep); font-size: 12px; font-family: inherit; cursor: pointer; }
.kb-lnk:hover { text-decoration: underline; }
.kb-lnk-del { color: var(--red); }
.kb-lnk[disabled] { color: var(--ink-3); cursor: default; text-decoration: none; }
.btn.sm.kb-cp { height: 26px; padding: 0 10px; font-size: 12px; }

.kb-pagebar { display: flex; align-items: center; gap: 8px; padding: 10px 2px 2px; flex-wrap: wrap; }
.kb-page-info { margin-right: auto; font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.kb-page-size { font-size: 12px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 4px; }
.kb-page-size select { height: 28px; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); font-family: inherit; font-size: 12px; padding: 0 4px; background: #fff; }

/* 侧边详情 */
body.kb-drawer-open { overflow: hidden; }
.kb-drawer-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .34); z-index: 850; display: flex; justify-content: flex-end; }
.kb-drawer { width: 640px; max-width: 96vw; height: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(15, 23, 42, .16); animation: kbSlide .18s ease-out; }
@keyframes kbSlide { from { transform: translateX(28px); opacity: .6; } to { transform: translateX(0); opacity: 1; } }
.kb-dw-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.kb-dw-title { flex: 1 1 auto; min-width: 0; }
.kb-dw-title h3 { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.5; word-break: break-word; }
.kb-dw-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.kb-dw-who { font-size: 11.5px; color: var(--ink-3); }
.kb-dw-x { border: none; background: #f4f6fa; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; color: #66707f; font-size: 13px; flex: 0 0 auto; }
.kb-dw-x:hover { background: #e9edf4; }
.kb-dw-body { flex: 1 1 auto; overflow: auto; padding: 14px 18px 20px; }
.kb-dw-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--line); background: #fcfdfe; flex-wrap: wrap; }
.kb-dw-preview { margin-top: 10px; }
.kb-dw-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; flex-wrap: wrap; }
.kb-dw-preview-head a { color: var(--rose-deep); text-decoration: none; margin-right: 10px; }
.kb-pdf { width: 100%; height: 460px; border: 1px solid var(--line); border-radius: var(--radius-xs); background: #f8fafc; }
.kb-doc-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-soft); border-radius: var(--radius-xs); padding: 7px 10px; margin-bottom: 6px; }
.kb-doc-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--ink); }
.kb-doc-size { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }

/* 编辑弹窗：拖拽 / 粘贴上传 */
.kb-drop { border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fcfdfe; transition: all .15s; }
.kb-drop.over { border-color: var(--rose); background: var(--rose-light); }
.kb-drop-hint { font-size: 11.5px; color: var(--ink-3); }
.kb-drop.has-img .kb-drop-hint { font-size: 11px; }

/* 设置弹窗 */
.kb-set-sec { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.kb-set-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.kb-set-title b { font-size: 13px; color: var(--ink); }
.kb-set-title span { font-size: 11.5px; color: var(--ink-3); flex: 1 1 200px; }
.kb-set-sec input#kb-set-types { width: 100%; height: 32px; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); padding: 0 9px; font-size: 12.5px; font-family: inherit; }
.kb-set-sec input#kb-set-types:focus { outline: none; border-color: var(--rose); }
.kb-set-cols { display: flex; gap: 7px; flex-wrap: wrap; }
.kb-set-col { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--ink); background: #fff; cursor: pointer; }
.kb-set-col input { margin: 0; }
.kb-set-col.lock { background: #f6f8fb; color: var(--ink-3); cursor: default; }
.kb-set-col i { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.kb-mig-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kb-mig-inline input { height: 30px; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); padding: 0 8px; font-size: 12.5px; font-family: inherit; min-width: 180px; }

@media (max-width: 900px) {
  .kb-head { align-items: stretch; }
  .kb-head-ops { padding-bottom: 0; }
  .kb-count { margin-left: 0; }
  .kb-c-owner, .kb-c-dyn { display: none; }
}
@media (max-width: 720px) {
  .kb-head { flex-direction: column; align-items: stretch; gap: 8px; }
  .kb-head .kb-tabs { border-bottom: none; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .kb-tabs { flex-wrap: nowrap; overflow-x: auto; align-items: center; }
  .kb-tabs button { flex: 0 0 auto; padding: 0 11px; font-size: 12.5px; top: 0; border-radius: 999px; border: 1px solid var(--line-strong); }
  .kb-tabs button.active { border-color: var(--rose); box-shadow: none; }
  .kb-head-ops { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .kb-head-ops .btn { flex: 0 0 auto; }
  .kb-tblwrap { max-height: none; }
  .kb-tbl { min-width: 620px; }
  .kb-th-ops, .kb-td-ops { position: static; }
  .kb-drawer { width: 100vw; }
  .kb-sel { flex: 1 1 140px; max-width: none; }
  .kb-search { flex-basis: 100%; }
}

/* ============ v51 业务知识库（三表 + 关联引用，表格版） ============ */
.kbz-chains { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.kbz-chains button { height: 30px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: #4b5666; font-size: 12.5px; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: all .15s; }
.kbz-chains button:hover { border-color: var(--rose); color: var(--rose-deep); }
.kbz-chains button.active { background: var(--rose); border-color: var(--rose); color: #fff; font-weight: 600; }
.kbz-chains button b { font-size: 11px; font-weight: 600; opacity: .75; font-variant-numeric: tabular-nums; }
.kbz-chains button.active b { opacity: .9; }

.kbz-wrap { max-height: calc(100vh - 316px); }
.kbz-tbl { min-width: 940px; }
.kbz-tbl tbody tr[data-id] { cursor: pointer; }
.kbz-c-name { min-width: 168px; max-width: 300px; }
.kbz-c-sub { width: 108px; white-space: nowrap; }
.kbz-c-tag { width: 108px; white-space: nowrap; }
.kbz-c-num { width: 104px; text-align: center; }
.kbz-c-rel { width: 190px; }
.kbz-tbl th.kbz-c-text { white-space: nowrap; }
.kbz-tbl td.kbz-c-text { min-width: 210px; }
.kbz-tbl td.kbz-c-num { text-align: center; }
.kbz-tbl td.kbz-c-sub, .kbz-tbl td.kbz-c-tag { vertical-align: middle; }
.kbz-tbl td.kbz-c-sub .kb-tg, .kbz-tbl td.kbz-c-tag .kb-tg { margin: 1px 2px 1px 0; display: inline-block; }

.kbz-tbl tr.kbz-group td { background: #f1f5f9; padding: 7px 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-soft); }
.kbz-tbl tbody tr.kbz-group:hover td { background: #f1f5f9; }
.kbz-gname { font-size: 12.5px; font-weight: 600; color: #36404f; }
.kbz-gname::before { content: "▾ "; color: var(--ink-3); font-size: 11px; }
.kbz-gnum { margin-left: 8px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.kbz-tg-type { background: #eef4ff; color: #3b5f9e; }
.kbz-tg-item { background: #eaf6ef; color: #2f7a52; }
.kbz-tg-faq { background: #fdf1e6; color: #a5632a; }
.kbz-badge { font-size: 11px; border-radius: 3px; padding: 1px 6px; line-height: 17px; white-space: nowrap; }
.kbz-badge.on { background: #eaf6ef; color: #2f7a52; }
.kbz-badge.off { background: #f2f5f9; color: #7b8698; }
.kbz-warn { font-size: 11.5px; color: #b4761f; }
.kbz-linked { color: var(--rose-deep); font-weight: 600; }
.kbz-rel { display: inline-block; font-size: 11.5px; color: #3b5f9e; background: #eef4ff; border-radius: 3px; padding: 0 5px; line-height: 18px; margin: 1px 3px 1px 0; cursor: pointer; }
.kbz-rel:hover { text-decoration: underline; }

.kbz-path { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); padding: 0 2px 8px; }
.kbz-path-i { color: #4b5666; font-weight: 600; }
.kbz-path-sep { color: var(--ink-3); }
.kbz-path-cur { color: var(--rose-deep); font-weight: 600; }
.kbz-path-x { border: none; background: #f2f5f9; border-radius: 50%; width: 18px; height: 18px; line-height: 18px; font-size: 10px; color: #6b7688; cursor: pointer; padding: 0; }
.kbz-path-s { color: var(--ink-3); }
.kbz-path-n { margin-left: auto; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.kbz-empty { padding: 26px 10px; text-align: center; color: var(--ink-3); font-size: 12.5px; line-height: 1.8; }
.kbz-empty-inline { font-size: 12px; color: var(--ink-3); line-height: 1.8; padding: 4px 0; }
.kbz-hint { font-size: 11.5px; color: var(--ink-3); line-height: 1.7; margin: -2px 0 6px; }

/* 详情字段 */
.kbz-f { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); }
.kbz-f:last-child { border-bottom: none; }
.kbz-f > b { flex: 0 0 96px; font-size: 12px; font-weight: 500; color: var(--ink-soft); line-height: 1.9; }
.kbz-fv { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--ink); line-height: 1.75; word-break: break-word; }
.kbz-f-block { display: block; }
.kbz-f-block > b { display: block; margin-bottom: 4px; }
.kbz-pre { white-space: pre-wrap; font-size: 13px; line-height: 1.8; color: var(--ink); background: #fafbfd; border: 1px solid var(--line-soft); border-radius: var(--radius-xs); padding: 9px 11px; word-break: break-word; }

.kbz-listbox { display: flex; flex-direction: column; gap: 6px; }
.kbz-linkitem { display: flex; align-items: center; gap: 8px; text-align: left; width: 100%; border: 1px solid var(--line-soft); background: #fff; border-radius: var(--radius-xs); padding: 8px 10px; cursor: pointer; font-family: inherit; transition: all .15s; }
.kbz-linkitem:hover { border-color: var(--rose); background: #fffafc; }
.kbz-linkitem > span { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--ink); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kbz-linkitem > span i, .kbz-linkitem > i { font-style: normal; font-size: 11px; color: var(--ink-3); }
.kbz-linkitem > em { font-style: normal; font-size: 11.5px; color: var(--ink-3); max-width: 46%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kbz-faqitem > span { flex-direction: column; align-items: flex-start; gap: 3px; }
.kbz-kw { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.kbz-kw .kb-tg { font-size: 10.5px; }

.kbz-doc-row { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line-soft); border-radius: var(--radius-xs); padding: 6px 10px; margin-bottom: 5px; background: #fff; }
.kbz-doc-ico { flex: 0 0 auto; font-size: 13px; }
.kbz-doc-row .kb-doc-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--ink); text-decoration: none; }
.kbz-doc-row a.kb-doc-name:hover { color: var(--rose-deep); text-decoration: underline; }
.kbz-doclist { margin-top: 4px; }

/* 表单 */
.kbz-form { display: flex; flex-direction: column; gap: 11px; max-height: 62vh; overflow: auto; padding-right: 2px; }
.kbz-lb { display: block; font-size: 12px; color: var(--ink-soft); }
.kbz-lb > i { font-style: normal; color: var(--red); }
/* 只作用于字段本身的直接输入控件，避免把内层多选框/搜索框也撑成通栏 */
.kbz-form .kbz-lb > input, .kbz-form .kbz-lb > select, .kbz-form .kbz-lb > textarea { display: block; width: 100%; margin-top: 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); padding: 7px 9px; font-size: 13px; font-family: inherit; color: var(--ink); background: #fff; }
.kbz-form .kbz-lb > textarea { resize: vertical; line-height: 1.7; }
.kbz-form .kbz-lb > input:focus, .kbz-form .kbz-lb > select:focus, .kbz-form .kbz-lb > textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-light); }
.kbz-pick-i input { width: auto; display: inline-block; margin: 0; padding: 0; border: none; }
.kbz-pre { text-align: left; }
.kbz-form-hint { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.kbz-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kbz-drop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 9px 11px; background: #fcfdfe; margin-top: 4px; }

/* 关联事项选择器 */
.kbz-pick { border: 1px solid var(--line-strong); border-radius: var(--radius-xs); background: #fff; margin-top: 4px; overflow: hidden; }
.kbz-pick-chips { display: flex; gap: 5px; flex-wrap: wrap; padding: 7px 8px; border-bottom: 1px solid var(--line-soft); min-height: 34px; }
.kbz-chip { display: inline-flex; align-items: center; gap: 4px; background: #eef4ff; color: #3b5f9e; border-radius: 999px; padding: 2px 4px 2px 9px; font-size: 11.5px; }
.kbz-chip b { cursor: pointer; font-weight: 400; width: 15px; height: 15px; line-height: 15px; text-align: center; border-radius: 50%; background: rgba(59, 95, 158, .13); font-size: 9px; }
.kbz-chip b:hover { background: rgba(59, 95, 158, .28); }
.kbz-chip-none { font-size: 11.5px; color: #b4761f; line-height: 20px; }
.kbz-pick > input { width: 100%; border: none; border-bottom: 1px solid var(--line-soft); padding: 7px 9px; font-size: 12.5px; font-family: inherit; }
.kbz-pick > input:focus { outline: none; background: #fdfdff; }
.kbz-pick-list { max-height: 210px; overflow: auto; padding: 4px 0 6px; }
.kbz-pick-g { font-size: 11px; line-height: 18px; color: var(--ink-3); padding: 5px 9px 3px; background: #fafbfd; position: sticky; top: 0; z-index: 1; }
.kbz-pick-i { display: flex; align-items: center; gap: 7px; padding: 5px 9px; font-size: 12.5px; cursor: pointer; }
.kbz-pick-i:hover { background: #f7f9fd; }
.kbz-pick-i input { margin: 0; flex: 0 0 auto; }
.kbz-pick-i span { flex: 1 1 auto; color: var(--ink); }
.kbz-pick-i i { font-style: normal; font-size: 11px; color: var(--ink-3); }

@media (max-width: 900px) {
  .kbz-tbl { min-width: 820px; }
  .kbz-f > b { flex-basis: 82px; }
}
@media (max-width: 720px) {
  .kbz-chains { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .kbz-chains button { flex: 0 0 auto; }
  .kbz-wrap { max-height: none; }
  .kbz-tbl { min-width: 700px; }
  .kbz-row2 { grid-template-columns: 1fr; }
  .kbz-form { max-height: 58vh; }
}

/* v51：窄屏下顶部两个容器必须允许收缩，否则内部横向滚动失效、整页溢出 */
@media (max-width: 720px) {
  .kb-head { min-width: 0; }
  .kb-head .kb-tabs, .kb-head-ops { min-width: 0; max-width: 100%; }
}

/* ===== v53：快递「群回执 · 待确认」+「拦截前置待办」 ===== */
/* 只做「建议 + 人工批量确认」，不自动改状态；样式沿用既有卡片/表格语言 */
.exq-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 12px 0 0; }
.exq-tab { height: 34px; padding: 0 14px; border: 1px solid transparent; border-bottom: none; border-radius: 8px 8px 0 0;
  background: transparent; color: #5b6676; font-size: 13px; font-family: inherit; cursor: pointer; position: relative; top: 1px; }
.exq-tab:hover { background: var(--line-soft); }
.exq-tab.active { background: var(--white); border-color: var(--line); color: var(--rose-deep); font-weight: 600; }
.exq-tab b { display: inline-block; margin-left: 5px; font-size: 11px; font-weight: 600; opacity: .75; }
.exq-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.exq-hint { font-size: 12px; color: var(--ink-soft); }
.exq-file { font-size: 12px; max-width: 240px; color: var(--ink-soft); }
.exq-list { max-height: min(52vh, 460px); overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.exq-list .empty { padding: 18px 12px; }
.exq-tbl { width: 100%; border-collapse: collapse; }
.exq-tbl th { position: sticky; top: 0; z-index: 1; }
.exq-tbl td { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; font-size: 12.5px; }
.exq-tbl .cell-sub { color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.exq-ck { width: 34px; text-align: center; }
.exq-ck input { width: 15px; height: 15px; cursor: pointer; }
.exq-no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; white-space: nowrap; }
.exq-raw { color: var(--ink-soft); max-width: 260px; }
.exq-ops { white-space: nowrap; }
.exq-tbl tr.exq-on td { background: var(--rose-light); }
.exq-todo-wrap { max-height: min(46vh, 400px); }
.exq-confirmbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--cream); }
.exq-bar-txt { font-size: 12.5px; color: var(--ink); line-height: 1.9; }
.exq-bar-txt .tag { margin-left: 4px; }
.exq-bar-ops { display: flex; gap: 8px; }
@media (max-width: 720px) {
  .exq-raw { max-width: 150px; }
  .exq-list, .exq-todo-wrap { max-height: 44vh; }
  .exq-confirmbar { align-items: stretch; }
  .exq-bar-ops { justify-content: flex-end; }
}

/* v53：群回执 / 待办面板需要宽弹窗（9 列表格），窄屏自动降级为整屏可横滑 */
.modal.exq-wide { width: min(1040px, 95vw); }
@media (max-width: 720px) {
  .modal.exq-wide { width: 96vw; padding: 14px; }
  .exq-tools .exq-file { max-width: 100%; }
  .exq-tabs { overflow-x: auto; }
}
.exq-claim-tip { margin-top: 6px; color: #9a5b12; font-size: 12px; line-height: 1.7; }
.exq-nw { white-space: nowrap; }
.exq-remark { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exq-res { min-width: 150px; }
.exq-shop { min-width: 96px; }
.exq-tbl .exq-raw { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* v54：售后登记「操作轨迹」弹窗 */
.as-trail-sub { font-size: 12px; color: var(--ink-soft); margin: -2px 0 10px; line-height: 1.9; }
.as-trail-sub b { color: var(--ink); font-weight: 600; }
.as-trail-box { border: 1px solid var(--line); border-radius: var(--radius-sm); max-height: min(52vh, 420px); overflow: auto; padding: 8px 12px; }

/* ============================================================
   v59：一单多号 + 商品多选 + 快递清单新地址
   ============================================================ */

/* --- 登记表里的「多单号」格：输入框 + 右下角「共 N 个」小标 --- */
.multi-no { position: relative; width: 100%; min-width: 0; }
.multi-no > input { width: 100%; }
.multi-no-badge {
  position: absolute; right: 3px; bottom: -1px;
  font-size: 10px; line-height: 1.5; padding: 0 4px;
  color: var(--rose-deep); background: var(--rose-light);
  border-radius: 6px 6px 0 0; pointer-events: none; white-space: nowrap;
}
.multi-no.is-multi > input { padding-right: 44px; }

/* --- 列表里的多单号：一行一个 --- */
.no-multi { display: flex; flex-direction: column; gap: 1px; }
.no-multi .no-line {
  font-variant-numeric: tabular-nums; white-space: nowrap;
  font-size: 12.5px; line-height: 1.45; color: var(--ink);
}

/* --- 商品芯片多选（客户退货包裹登记） --- */
.cu-multi { position: relative; width: 100%; min-width: 0; }
.cu-multi-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  min-height: 32px; padding: 3px 6px;
  border: 1px solid var(--line-strong); border-radius: 7px; background: #fff;
  cursor: text; transition: border-color .15s, box-shadow .15s;
}
.cu-multi-box:focus-within { border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-light); }
.cu-multi-chips { display: contents; }
.cu-chip {
  display: inline-flex; align-items: center; gap: 4px;
  max-width: 100%; padding: 1px 4px 1px 7px;
  font-size: 12px; line-height: 1.7; color: var(--rose-deep);
  background: var(--rose-light); border: 1px solid #f5cddc; border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cu-chip-x { color: var(--rose-deep); font-size: 12px; padding: 0 2px; text-decoration: none; opacity: .75; }
.cu-chip-x:hover { opacity: 1; }
.cu-multi-in {
  flex: 1; min-width: 90px; width: auto; border: 0 !important; outline: none;
  box-shadow: none !important; background: transparent; padding: 0 2px;
  height: 24px; font-size: 12.5px;
}
.cu-tight .cu-cell .cu-multi-box { padding: 2px 5px; }

/* 商品候选面板：与店铺/商品面板同款，只是多了「连续多选」的说明 */
.cu-multi-pop {
  position: fixed; z-index: 1600; background: #fff; border: 1px solid var(--line-strong);
  border-radius: 12px; box-shadow: 0 16px 40px rgba(30, 40, 60, .16); padding: 6px;
  max-height: 300px; overflow: auto; overscroll-behavior: contain;
}
.cu-multi-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 3px 8px 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line-soft);
}
.cu-multi-head b { font-size: 12px; color: var(--ink); font-weight: 600; }
.cu-multi-head span { font-size: 11px; color: var(--ink-3); }
.cu-multi-list { display: flex; flex-direction: column; gap: 1px; }
.cu-multi-opt {
  min-height: 36px; padding: 0 10px; display: flex; align-items: center;
  border-radius: 8px; font-size: 13px; color: var(--ink); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cu-multi-opt:hover, .cu-multi-opt.is-active { background: var(--rose-light); color: var(--rose-deep); }
.cu-multi-empty { padding: 10px 8px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }

/* --- 快递客服清单：多单号 + 新地址 --- */
.q-nos { display: flex; flex-direction: column; gap: 2px; }
.q-nos .q-no-one { font-variant-numeric: tabular-nums; }
.q-addr {
  margin-top: 6px; padding: 6px 8px;
  background: #f5f8ff; border: 1px dashed #c9d8f5; border-radius: 8px;
  font-size: 12px; line-height: 1.75; color: #2f4b7a; word-break: break-all;
}
.q-addr-line + .q-addr-line { margin-top: 2px; }

/* 商品芯片格：列窄时最多长到 3 行，再多就在格子里滚，避免整行被撑高 */
.cu-tight .cu-multi-box { max-height: 78px; overflow-y: auto; }
.cu-tight .cu-multi { min-width: 0; }
