/* 售后保修系统 - 样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: #f2f4f7;
  color: #1f2329;
  font-size: 14px;
}
#app { min-height: 100vh; }

/* 全局 toast 提示 */
.toasts {
  position: fixed; top: 66px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
  align-items: center; pointer-events: none; width: max-content; max-width: 92vw;
}
.toast {
  padding: 10px 18px; border-radius: 8px; font-size: 14px;
  box-shadow: 0 4px 16px rgba(31,35,41,.18); max-width: 92vw;
  animation: toast-in .18s ease-out;
}
.toast.ok { background: #e8f7ee; color: #157347; border: 1px solid #9fd8b4; }
.toast.err { background: #fdecec; color: #b42323; border: 1px solid #f0b4b4; font-weight: 600; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* 导航（后台页签仍在用 .nav .tab；顶部横导航那套 .topbar 已在批次 b33 删除） */
.nav { display: flex; gap: 4px; }
.nav .tab {
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  color: #4e5969;
  border: none;
  background: transparent;
  font-size: 16px;
}
.nav .tab:hover { background: #f2f4f7; }
.nav .tab.active { background: #e8effd; color: #1d4ed8; font-weight: 700; }

/* 布局 */
.page { max-width: 1080px; margin: 20px auto; padding: 0 16px; }
.card {
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.card h3 { font-size: 15px; margin-bottom: 14px; color: #1f2329; }
.hint { color: #86909c; font-size: 13px; line-height: 1.6; }

/* 表单 */
label.f { display: block; margin-bottom: 12px; }
label.f span { display: block; margin-bottom: 4px; color: #4e5969; font-size: 13px; }
input, select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d0d3d9;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: #1d4ed8; }
textarea { resize: vertical; min-height: 70px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

button.btn {
  padding: 9px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  background: #e8effd;
  color: #1d4ed8;
}
button.btn:hover { background: #d6e3fb; }
button.btn.primary { background: #1d4ed8; color: #fff; }
button.btn.primary:hover { background: #1a44bd; }
button.btn.danger { background: #fdecec; color: #c62f2f; }
button.btn.danger:hover { background: #fbdcdc; }
button.btn.warn { background: #fdf3e2; color: #a05e03; }
button.btn:disabled { opacity: 0.5; cursor: not-allowed; }
button.btn.sm { padding: 5px 12px; font-size: 13px; }

/* 扫码区 */
.scanbox {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.scanbox input {
  font-size: 16px;
  padding: 12px 14px;
  letter-spacing: 0.5px;
}
.scanbox input:focus { box-shadow: 0 0 0 3px rgba(29,78,216,0.15); }

/* 提示条 */
.alert {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}
.alert.ok { background: #e9f7ee; color: #187741; border: 1px solid #bfe6cd; }
.alert.bad { background: #fdecec; color: #c62f2f; border: 1px solid #f6c8c8; }
.alert.info { background: #e8effd; color: #1d4ed8; border: 1px solid #c9dbf9; }

/* 列表 / 表格 */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #f0f1f3; font-size: 13px; }
th { color: #86909c; font-weight: 500; white-space: nowrap; }
tr:hover td { background: #fafbfc; }

/* 徽章 */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
}
.badge.b-stock { background: #e8effd; color: #1d4ed8; }
.badge.b-sold { background: #e9f7ee; color: #187741; }
.badge.b-repair { background: #fdf3e2; color: #a05e03; }
.badge.b-scrap { background: #f4f5f7; color: #6b7280; }
.badge.b-replaced { background: #f3ecfd; color: #7c3aed; }
.badge.b-refund { background: #fff2e0; color: #b45309; }
/* 样品借出中：橙色系，和返修的黄区分开一点 */
.badge.b-loan { background: #ffefe4; color: #c2410c; }
.badge.b-wty { background: #e9f7ee; color: #187741; }
.badge.b-expired { background: #fdecec; color: #c62f2f; }
.badge.b-admin { background: #f2f6fe; color: #1d4ed8; }
.badge.b-staff { background: #f4f5f7; color: #4e5969; }

/* 扫码结果 chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: Consolas, monospace;
  background: #e9f7ee;
  color: #187741;
  border: 1px solid #bfe6cd;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip .x { cursor: pointer; font-weight: 700; opacity: 0.6; }
.chip .x:hover { opacity: 1; }
.chip.bad { background: #fdecec; color: #c62f2f; border-color: #f6c8c8; text-decoration: line-through; }

/* 体检卡 */
.report { border: 2px solid #e5e6eb; border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.report.in-wty { border-color: #bfe6cd; background: #f7fcf9; }
.report.expired { border-color: #f6c8c8; background: #fdf7f7; }
/* 样品借出 / 代保的详情卡：橙色边框，一眼区分于保修体检卡 */
.report.in-loan { border-color: #ffd9bd; background: #fffaf5; }
.report .r-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.report .r-sn { font-family: Consolas, monospace; font-size: 17px; font-weight: 700; }
.report .r-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 20px; font-size: 13px; }
.report .r-grid b { color: #86909c; font-weight: 500; margin-right: 6px; }
.wty-big { font-size: 20px; font-weight: 700; }
.wty-big.g { color: #187741; }
.wty-big.r { color: #c62f2f; }
.wty-big.n { color: #86909c; }

/* 时间线 */
.timeline { list-style: none; }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid #e5e6eb; margin-left: 6px; position: relative; font-size: 13px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -5px; top: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1d4ed8;
}
.timeline .t-time { color: #86909c; margin-right: 8px; font-family: Consolas, monospace; }

/* 统计卡 */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card { background: #fff; border: 1px solid #e5e6eb; border-radius: 12px; padding: 16px; }
.stat-card.clickable { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.stat-card.clickable:hover { border-color: #1d4ed8; box-shadow: 0 2px 10px rgba(29, 78, 216, .12); }
.stat-card.clickable.active { border-color: #1d4ed8; box-shadow: 0 0 0 2px rgba(29, 78, 216, .18); background: #f5f8ff; }
.stat-card .num { font-size: 26px; font-weight: 700; color: #1d4ed8; }
.stat-card .lbl { color: #86909c; font-size: 13px; margin-top: 2px; }
.stat-card.warn .num { color: #a05e03; }
.stat-card.good .num { color: #187741; }

/* 登录页 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-box { width: 360px; background: #fff; border: 1px solid #e5e6eb; border-radius: 16px; padding: 32px; }
.login-logo { display: block; margin: 0 auto 14px; height: 72px; width: auto; }
.login-box h2 { text-align: center; margin-bottom: 6px; color: #1d4ed8; font-size: 24px; }
.login-box .sub { text-align: center; color: #86909c; font-size: 13px; margin-bottom: 22px; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(31,35,41,0.45); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { background: #fff; border-radius: 12px; padding: 22px; width: 420px; max-height: 85vh; overflow: auto; }
.modal h3 { margin-bottom: 14px; }
.modal .modal-body { white-space: pre-line; color: #4e5969; line-height: 1.7; }
.modal .acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
code { background: #f2f4f7; padding: 1px 5px; border-radius: 4px; font-family: Consolas, monospace; font-size: 13px; }

.pager { display: flex; gap: 8px; align-items: center; margin-top: 12px; color: #4e5969; font-size: 13px; }

/* 产品列表（按型号查看） */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filters .f { min-width: 150px; }
.filters .f.grow { flex: 1; min-width: 240px; }
.filters .fbtns { display: flex; gap: 8px; }
.msum { display: flex; flex-wrap: wrap; gap: 10px; }
.msum-item { border: 1px solid #e5e6eb; border-radius: 10px; padding: 10px 14px; cursor: pointer; background: #fff; min-width: 160px; }
.msum-item:hover { border-color: #a8c0f8; }
.msum-item.on { border-color: #1d4ed8; background: #f2f6fe; }
.msum-item .mn { font-weight: 600; color: #1d2129; }
.msum-item .mc { font-size: 12px; color: #86909c; margin-top: 3px; }
td.mono { font-family: Consolas, monospace; }

/* 数据导入 */
.imp-sheet { border: 1px solid #e5e6eb; border-radius: 10px; padding: 14px; margin-bottom: 16px; background: #fafbfc; }
.imp-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.imp-head b { font-size: 15px; }
.imp-prev { max-height: 210px; overflow: auto; background: #fff; border: 1px solid #e5e6eb; border-radius: 8px; }
.imp-prev table { font-size: 12px; }
.imp-prev th, .imp-prev td { padding: 6px 10px; white-space: nowrap; }
.imp-prev th { background: #f7f8fa; position: sticky; top: 0; }
.imp-sheet .f { margin-bottom: 10px; }
.imp-sheet select { background: #fff; }

.mt { margin-top: 12px; }
.mb0 { margin-bottom: 0; }
/* ==================== 2026-10-02 界面美化（覆盖层） ====================
   只追加、不改上面的基础规则；不满意整段删掉就回到老样子。 */

/* 大屏适配：内容区放宽居中，超宽屏两侧留白，不再一条拉到头 */
.page { max-width: 1480px; padding: 0 28px; margin-top: 22px; }

/* 页签：胶囊形，当前页蓝底白字；一律排一行，放不下横向滚动（不显示滚动条） */
.nav {
  display: flex; gap: 1px; flex-wrap: nowrap;
  overflow-x: auto; scrollbar-width: none; min-width: 0;
}
.nav::-webkit-scrollbar { display: none; }
.nav .tab {
  font-size: 14.5px; padding: 7px 12px; border-radius: 999px;
  color: #3d4653; transition: background .12s, color .12s;
  white-space: nowrap; flex-shrink: 0;
}
.nav .tab:hover { background: #eef1f6; color: #1d4ed8; }
.nav .tab.active {
  background: #1d4ed8; color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px rgba(29,78,216,.28);
}

/* 卡片：更大圆角、更淡边框、极轻投影 */
.card { border-radius: 14px; border-color: #eceff3; box-shadow: 0 1px 3px rgba(15,23,42,.04); }

/* ---------- 窄屏提示条（手机端，2026-10-02 P1-2）----------
   这个系统是给电脑做的：样式里没有任何窄屏适配，手机上表格会横向乱飘。
   与其让人以为是坏了，不如打开就说清楚。整块删掉即可回退。 */
.mobile-tip {
  display: none;
  padding: 10px 14px;
  margin: 0 0 10px;
  border-radius: 12px;
  background: #fff7e6;
  border: 1px solid #f0dcb8;
  color: #92400e;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
@media (max-width: 820px) {
  .mobile-tip { display: block; }
}

/* ---- P3-3：长段说明收进「?」，点开才显示（2026-10-02 批次E）---- */
details.dn { margin: 8px 0; }
details.dn > summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center;
  justify-content: center; width: 20px; height: 20px; border-radius: 50%;
  background: #e8eefb; color: #1d4ed8; font-size: 12px; font-weight: 700;
  user-select: none; -webkit-user-select: none;
}
details.dn > summary::-webkit-details-marker { display: none; }
details.dn > summary::marker { content: ""; }
details.dn[open] > summary { background: #1d4ed8; color: #fff; }
details.dn[open] > div { margin-top: 8px; }

/* ==================== 2026-10-02 批次G：顶部导航 → 左侧固定侧栏 ====================
   纯布局改造：业务逻辑、页签权限一个字没动，只是把顶栏竖过来放左边。
   不满意整段删掉、并把 index.html 的 .shell/.side/.main 包回 .topbar 即可回退。 */

.shell { display: flex; align-items: stretch; min-height: 100vh; }

/* 左侧栏：白底、固定高度、内部纵向排布（导航区可滚动） */
.side {
  flex: 0 0 216px; width: 216px;
  background: #414a59; border-right: 1px solid #373f4c;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  padding: 14px 12px 12px;
}
.side-logo {
  display: flex; align-items: center; gap: 9px;
  padding: 2px 6px 13px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.14); flex-shrink: 0;
}
.side-logo img { height: 34px; width: auto; border-radius: 8px; display: block; }
.side-logo .lt { display: flex; flex-direction: column; line-height: 1.3; }
.side-logo .lt b { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.side-logo .lt i { font-style: normal; font-size: 11px; color: #aab4c4; letter-spacing: 3px; }

.side-nav {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 6px;
  display: flex; flex-direction: column; gap: 2px; padding-right: 3px;
}
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); border-radius: 3px; }

/* 分组小标题（组内一项都没有时自动不显示） */
.side-cap {
  font-size: 11.5px; font-weight: 700; color: #9aa6b6;
  letter-spacing: 1px; padding: 13px 10px 5px;
}
.side-cap:first-child { padding-top: 2px; }

.side-nav .tab {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left; font-family: inherit;
  padding: 8px 11px; border: none; border-radius: 10px;
  background: transparent; color: #e8ecf2; font-size: 14px;
  cursor: pointer; transition: background .12s, color .12s;
}
.side-nav .tab:hover { background: rgba(255,255,255,.12); color: #fff; }
/* 选中态维持蓝底白字（b26） */
.side-nav .tab.active {
  background: #1d4ed8; color: #fff; font-weight: 600;
  box-shadow: 0 3px 10px rgba(29, 78, 216, .26);
}
.side-nav .tab .ic {
  width: 16px; height: 16px; flex: 0 0 16px;
  fill: none; stroke: currentColor; stroke-width: 1.85;
  stroke-linecap: round; stroke-linejoin: round;
}
.side-nav .tab .cnt { font-size: 12.5px; opacity: .72; }

/* 右上角账号操作区（搬回原来的观感：用户名 + 角色徽章 + 刷新/改密/退出） */
.mainbar .user { color: #1f2329; font-weight: 600; white-space: nowrap; font-size: 14.5px; }
.mainbar .badge { font-size: 12.5px; padding: 2px 9px; white-space: nowrap; flex-shrink: 0; }
.mainbar .btn.sm { font-size: 13.5px; padding: 5px 11px; }
.mainbar .btn { white-space: nowrap; flex-shrink: 0; }

/* 右侧主区 */
.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.mainbar {
  position: sticky; top: 0; z-index: 9;
  height: 60px; flex-shrink: 0;
  display: flex; align-items: center; gap: 10px; padding: 0 28px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #eceff3;
}
.mainbar .mtitle { font-size: 17px; font-weight: 700; color: #0f2544; letter-spacing: .3px; }
.mainbar .flash { color: #16a34a; font-size: 13px; white-space: nowrap; }

/* 内容区：跟着 .main 走，不再自己居中 */
.main .page { max-width: 1480px; width: 100%; margin: 0 auto; padding: 18px 28px 46px; }

/* 图标库本体不占地方 */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* toast 居中基准跟着内容区右移半个侧栏宽 */
.toasts { left: calc(50% + 108px); }

/* ---- 批次G补充：处理记录卡片可收起（details.fold，2026-10-02）----
   和 .card 一样的外观，只是标题行变成可点、带 ▾ 指示。 */
details.fold { background: #fff; border: 1px solid #eceff3; border-radius: 14px;
  padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
details.fold > summary { cursor: pointer; list-style: none;
  display: flex; align-items: baseline; gap: 10px;
  user-select: none; -webkit-user-select: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary .fs-t { font-size: 16px; font-weight: 700; color: #1f2329; }
details.fold > summary .fs-sub { font-size: 12.5px; }
details.fold > summary::after { content: "▾"; margin-left: auto; color: #98a2b3;
  font-size: 13px; transition: transform .15s; }
details.fold[open] > summary::after { transform: rotate(180deg); }
details.fold[open] > summary { margin-bottom: 14px; }

/* ---- 批次G补充：整体字号略放大（主人要求「稍微大一点」，2026-10-02）----
   基准 14→15px，表格/表单/提示 13→14px；删掉这一段就回到原来的大小。 */
body { font-size: 15px; }
.toast { font-size: 15px; }
.alert { font-size: 15px; }
.card h3 { font-size: 16px; }
.hint { font-size: 13.5px; }
label.f span { font-size: 13.5px; }
input, select, textarea { font-size: 15px; }
button.btn { font-size: 15px; }
button.btn.sm { font-size: 14px; }
th, td { font-size: 14px; }
.pager, .timeline li, .report .r-grid, .stat-card .lbl, code { font-size: 13.5px; }
.side-nav .tab { font-size: 15px; padding: 9px 11px; }
.side-nav .tab .ic { width: 17px; height: 17px; flex: 0 0 17px; }
.side-nav .tab .cnt { font-size: 13px; }
.side-cap { font-size: 12px; }
.side-logo .lt b { font-size: 16px; }
.side-logo .lt i { font-size: 11.5px; }
.mainbar .mtitle { font-size: 18px; }
.mainbar .user { font-size: 15px; }
.mainbar .flash { font-size: 13.5px; }
.mainbar .btn.sm { font-size: 14px; }

/* 中屏收窄侧栏 */
@media (max-width: 1280px) { .side { flex-basis: 196px; width: 196px; } }


/* ===== 批次M：欠着的东西整行淡红，一眼看到欠着谁的 ===== */
tr.ow-bad td { background: #fdf1f1; }
tr.ow-bad td:first-child { box-shadow: inset 3px 0 0 #c62f2f; }
.ow-days-bad { color: #c62f2f; font-weight: 700; }

/* 首屏加载遮罩（批次 b24）—— JS 未就绪时挡住 {{ }} 花屏 */
.boot-mask {
  position: fixed; inset: 0; z-index: 99999;
  background: #f5f6f8;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  transition: opacity .25s ease;
}
.boot-mask.hide { opacity: 0; pointer-events: none; }
.boot-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid #d8dde5; border-top-color: #2f6fed;
  animation: bootSpin .8s linear infinite;
}
@keyframes bootSpin { to { transform: rotate(360deg); } }
.boot-text { font-size: 15px; color: #333; letter-spacing: .5px; }
.boot-sub { font-size: 12px; color: #999; }

/* 登录验证码（批次 b25） */
.cap-row { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; cursor: pointer; user-select: none; }
.cap-img svg { display: block; border-radius: 6px; border: 1px solid #dde3ec; }
.cap-hint { font-size: 12px; color: #9aa4b2; }

/* ==================== 批次 b33：显示 / 对齐专项（2026-11-04） ====================
   1) 宽表格不再顶出卡片 —— 卡片内可横向滚动，列多的时候滚，不再把字挤成两行或切掉
   2) 长文字断行 —— 130 字的型号名、长备注不会把某一列撑到天边
   3) 数字列右对齐 + 等宽数字 —— 金额、台数上下能对齐
   4) 卡片内小字、徽章字号跟全局一致（12 → 12.5/13） */

/* 表格放不下时在卡片内部滚动（原来看不到右侧列，就是因为没有这一条） */
.card { overflow-x: auto; }
.card > table { min-width: 100%; }
/* 超长型号名 / 长备注 / 长故障描述：允许在格子里断行，别把表格撑爆。
   注意用 break-word 而不是 anywhere——anywhere 会把列的最小宽度打成 0，
   型号列会被挤成一列「竖排字」。 */
.card table td { word-break: normal; overflow-wrap: break-word; }

/* 数字、金额列：右对齐 + 等宽数字，位数不同也能上下对齐 */
td.num, th.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
td.num { font-family: Consolas, "Microsoft YaHei", monospace; }
/* SN / 批次号这类等宽列不许折行（之前 11 列挤的时候 SN 断成三四行），放不下靠卡片横向滚 */
td.mono { white-space: nowrap; }
/* 表格里所有数字（日期、台数、SN 长度等）统一等宽数字，避免每行宽度跳动 */
th, td { font-variant-numeric: tabular-nums; }

/* 型号汇总卡：长型号名最多两行，超出省略（鼠标悬停看全名），卡片宽度统一 */
.msum-item { max-width: 300px; }
.msum-item .mn {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word; line-height: 1.45;
}
.msum-item .mc { font-size: 13px; }
.badge { font-size: 12.5px; }
/* 只读的长型号名（下拉选项悬停看全名用不到 title，这里给已选中的型号一个可见全名的地方） */
.sel-full { font-size: 12.5px; color: #86909c; margin-top: 4px; word-break: break-all; }

/* 型号汇总改成列表（b33 补4，2026-11-04）：一列型号 + 各状态台数，比卡片省一半高度、数字能上下对齐 */
.msum-list { max-height: 460px; overflow: auto; border: 1px solid #eceff3; border-radius: 10px; }
.msum-list table { width: 100%; min-width: 100%; }
.msum-list thead th { position: sticky; top: 0; background: #f7f8fa; z-index: 1; }
.msum-list td, .msum-list th { padding: 7px 10px; }
.msum-list tbody tr { cursor: pointer; }
.msum-list tbody tr:hover td { background: #f4f7ff; }
.msum-list tbody tr.on td { background: #eaf2ff; }
.msum-list tbody tr.on td:first-child { box-shadow: inset 3px 0 0 #1d4ed8; }
.msum-list td.mn { white-space: normal; overflow-wrap: break-word; min-width: 220px; }




/* SN 近似匹配候选（批次 b39）：查不到时列出来让人核对，点一条才算选中 */
.cands { display: flex; flex-direction: column; gap: 6px; margin-top: 10px;
  max-height: 420px; overflow-y: auto; }   /* b46：100 条候选时卡内滚动，别把整页撑爆 */
.cands > .cand { flex-shrink: 0; }
.cands > .hint { margin-bottom: 2px; position: sticky; top: 0; z-index: 1;
  background: #fff; padding: 2px 0; }   /* b46：滚动时提示语保持在顶部 */
.cand {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 7px 10px; border: 1px solid #dfe3ea; border-radius: 8px;
  background: #fff; cursor: pointer; font-family: inherit; font-size: 14px;
}
.cand:hover { border-color: #2f6fed; background: #f5f8ff; }
.cand b { font-size: 14px; letter-spacing: .2px; }
.cand .hint { flex: 1; }
.cand .tag {
  font-size: 12px; color: #1d4ed8; background: #e8effd;
  border-radius: 6px; padding: 1px 7px; white-space: nowrap;
}


/* 功能权限勾选区按大类分四列（批次 b43）：一列一组，纵向排列 */
.perm-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 6px 28px; }
.perm-cap {
  font-size: 12px; font-weight: 600; color: #6b7280;
  letter-spacing: .06em; padding: 2px 0 6px; border-bottom: 1px solid #e5e7eb;
  margin-bottom: 6px;
}
.perm-item { display: flex; align-items: center; gap: 5px; cursor: pointer; padding: 3px 0; }
/* 全局 input{width:100%} 会把勾选框拉满整行，把文字挤到最右——这里收回来 */
.perm-item input[type=checkbox] { width: auto; flex: 0 0 auto; margin: 0; }
@media (max-width: 900px) { .perm-grid { grid-template-columns: repeat(2, 1fr); } }

/* b58：登录密码显示/隐藏切换 */
.pwd-wrap { position: relative; }
.pwd-wrap input { width: 100%; padding-right: 58px; box-sizing: border-box; }
.pwd-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
           border: none; background: none; color: #2563eb; font-size: 13px;
           cursor: pointer; padding: 4px 8px; user-select: none; }
.pwd-eye:active { opacity: .6; }
