/* ==================================================================
   食堂管理后台 · 现代化设计系统 v2
   设计语言：浅色工作台 + 深色渐变侧边栏 + 靛蓝主色 + 柔和阴影大圆角
   ================================================================== */

:root {
  /* 品牌与功能色 */
  --brand: #4f6ef2;
  --brand-2: #7c3aed;
  --brand-grad: linear-gradient(135deg, #4f6ef2 0%, #7c3aed 100%);
  --ok: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;

  /* 中性色 */
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --line: #e9edf3;
  --bg: #f5f6fa;
  --card: #ffffff;

  /* Element Plus 主题变量覆盖 */
  --el-color-primary: #4f6ef2;
  --el-color-primary-light-3: #7a8bf5;
  --el-color-primary-light-5: #9da9f8;
  --el-color-primary-light-7: #c3cbfb;
  --el-color-primary-light-8: #d6dcfc;
  --el-color-primary-light-9: #eef1fe;
  --el-color-primary-dark-2: #3f58c2;
  --el-color-success: #10b981;
  --el-color-warning: #f59e0b;
  --el-color-danger: #ef4444;
  --el-border-radius-base: 10px;
  --el-border-radius-small: 8px;
  --el-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --el-text-color-primary: #111827;
  --el-text-color-regular: #374151;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--el-font-family);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(124, 58, 237, .06), transparent 60%),
    radial-gradient(1000px 500px at -10% 0%, rgba(79, 110, 242, .07), transparent 55%),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.boot { padding: 80px 24px; text-align: center; color: var(--muted); font-size: 14px; line-height: 2.2; }
.boot-tip { font-size: 12px; color: var(--muted-2); }

/* 通用数字排版 */
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.num-pos { color: var(--ok); font-weight: 600; }
.num-neg { color: var(--bad); font-weight: 600; }

/* ============ 登录页（分屏式） ============ */
.login-wrap {
  min-height: 100vh;
  display: flex;
}
.login-hero {
  flex: 1.15;
  background:
    radial-gradient(700px 420px at 80% 110%, rgba(255, 255, 255, .14), transparent 60%),
    radial-gradient(500px 300px at 10% -10%, rgba(255, 255, 255, .12), transparent 55%),
    linear-gradient(150deg, #4338ca 0%, #4f6ef2 45%, #7c3aed 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vh 7vw;
  position: relative;
  overflow: hidden;
}
.login-hero::after {
  content: '';
  position: absolute; right: -120px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.login-hero::before {
  content: '';
  position: absolute; left: -80px; bottom: -140px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.login-hero .lh-logo { font-size: 44px; }
.login-hero .lh-title { font-size: 30px; font-weight: 700; margin: 18px 0 10px; letter-spacing: .02em; }
.login-hero .lh-sub { font-size: 14px; opacity: .88; line-height: 1.9; max-width: 420px; }
.lh-feats { margin-top: 34px; display: flex; flex-direction: column; gap: 13px; position: relative; z-index: 1; }
.lh-feat {
  display: flex; align-items: center; gap: 11px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  width: fit-content;
  backdrop-filter: blur(6px);
}
.lh-feat .ico { font-size: 17px; }

.login-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #fff;
}
.login-card { width: 100%; max-width: 380px; }
.login-logo { font-size: 36px; }
.login-title { font-size: 22px; font-weight: 700; margin: 12px 0 6px; }
.login-sub { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.login-actions { margin-top: 14px; }
.login-actions .el-button { width: 100%; height: 44px; font-size: 15px; border-radius: 12px; }
.login-actions .el-button--primary { background: var(--brand-grad); border: none; }
.login-foot { margin-top: 20px; font-size: 12px; color: var(--muted-2); text-align: center; line-height: 1.8; }

@media (max-width: 860px) {
  .login-hero { display: none; }
  .login-wrap { justify-content: center; background: linear-gradient(150deg, #4338ca, #7c3aed); }
  .login-panel { background: transparent; }
  .login-card { background: #fff; border-radius: 20px; padding: 30px 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
}

/* ============ 主布局 ============ */
.layout { height: 100vh; }

/* 深色侧边栏 */
.side {
  background: linear-gradient(180deg, #101828 0%, #16213a 100%);
  color: #b9c2d4;
  display: flex;
  flex-direction: column;
  position: relative;
}
.side::after {
  content: '';
  position: absolute; right: -30px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 110, 242, .28), transparent 70%);
  pointer-events: none;
}
.side-brand { padding: 20px 18px 16px; }
.side-brand .b1 { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.side-brand .b2 {
  font-size: 12px; color: #93a1bd; margin-top: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px; padding: 4px 9px; max-width: 100%;
}
.side-brand .b2 .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }

.side-nav { flex: 1; overflow-y: auto; padding: 6px 10px 14px; }
.nav-group-label {
  font-size: 11px; color: #5d6b8a; letter-spacing: .12em;
  padding: 16px 10px 7px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 12px; margin-bottom: 3px;
  border-radius: 10px; cursor: pointer;
  font-size: 13.5px; color: #b9c2d4;
  transition: background .18s, color .18s;
  user-select: none;
}
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item.active {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 6px 16px rgba(79, 110, 242, .35);
}
.nav-item .ico { font-size: 16px; width: 20px; text-align: center; }
.side-foot { padding: 12px 18px; font-size: 11px; color: #5d6b8a; border-top: 1px solid rgba(255, 255, 255, .07); }

/* 顶栏 */
.topbar {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px;
  height: 58px;
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

/* 顶栏左侧「操作指引」入口（2026-10-17 新增）：胶囊链接，与云数据徽标同语言 */
.guide-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--brand);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
  background: rgba(79, 110, 242, .08); border: 1px solid rgba(79, 110, 242, .22);
  text-decoration: none; line-height: 1.4;
  transition: background .18s, border-color .18s, transform .18s;
}
.guide-link:hover {
  background: rgba(79, 110, 242, .16); border-color: rgba(79, 110, 242, .42);
  transform: translateY(-1px);
}
.guide-link:active { transform: translateY(0); }
.guide-link .g-ico { font-size: 13px; }
/* 顶栏左右两组之间的细分隔线 */
.topbar-left .divider-v { width: 1px; height: 18px; background: var(--line); flex: none; }
.badge-demo {
  background: #fff7e6; color: #b45309; border: 1px solid #fde68a;
  font-size: 12px; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.badge-live {
  background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0;
  font-size: 12px; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}

.main { padding: 22px 24px 40px; overflow-y: auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.page-title { font-size: 20px; font-weight: 700; letter-spacing: .01em; }
.page-desc { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

/* 卡片：大圆角柔和阴影 */
.el-card.card {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px -12px rgba(16, 24, 40, .08);
  transition: box-shadow .2s;
}
.el-card.card:hover { box-shadow: 0 2px 4px rgba(16, 24, 40, .05), 0 14px 34px -12px rgba(16, 24, 40, .12); }
/* 页面内卡片之间的纵向间距（原版缺失导致卡片叠在一起、排版拥挤） */
.main .el-card.card { margin-bottom: 14px; }
.main .el-row { margin-bottom: 14px; }
.card-title { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.card-tight { margin-bottom: 12px; }

.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 12px; }
.warn-tag { color: var(--warn); font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.field-label { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.dialog-total { font-size: 22px; font-weight: 700; color: var(--brand); }

/* 概览数字卡（菜单页） */
.ov { display: flex; gap: 14px; flex-wrap: wrap; }
.ov-item {
  flex: 1; min-width: 170px;
  border-radius: 16px;
  padding: 16px 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ov-item::after {
  content: '';
  position: absolute; right: -30px; bottom: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.ov-lunch { background: linear-gradient(135deg, #4f6ef2 0%, #7c3aed 100%); box-shadow: 0 10px 24px -8px rgba(79, 110, 242, .5); }
.ov-dinner { background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%); box-shadow: 0 10px 24px -8px rgba(245, 158, 11, .45); }
.ov-item .k { font-size: 12px; opacity: .92; }
.ov-item .v { font-size: 32px; font-weight: 700; line-height: 1.25; }
.ov-item .s { font-size: 12px; opacity: .92; }

/* 成本日报统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px -12px rgba(16, 24, 40, .08);
}
.stat-card .stat-k { font-size: 12.5px; color: var(--muted); }
.stat-card .stat-v { font-size: 27px; font-weight: 700; margin: 7px 0 4px; }
.stat-card .stat-s { font-size: 12px; color: var(--muted-2); }
.stat-good .stat-v { color: var(--ok); }
.stat-bad .stat-v { color: var(--bad); }

/* 分类构成条 */
.cat-bar { margin-bottom: 12px; }
.cat-bar .cb-head { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; }
.cat-bar .cb-track { height: 8px; border-radius: 999px; background: #eef1f7; overflow: hidden; }
.cat-bar .cb-fill {
  height: 100%; border-radius: 999px;
  background: var(--brand-grad);
  transition: width .5s ease;
}

/* 报表中心：图表与明细 */
.chart-box { height: 300px; width: 100%; }
.chart-fallback {
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: var(--muted-2); text-align: center; line-height: 2;
  background: #f8f9fc; border-radius: 12px;
}
.meal-pill {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: 2px 10px;
  font-size: 12px; font-weight: 600; margin-right: 6px;
  font-variant-numeric: tabular-nums;
}
.meal-pill.lunch { background: #eef1fe; color: var(--brand); }
.meal-pill.dinner { background: #fff4ea; color: #d97706; }
.detail-expand { padding: 2px 18px 12px; }
.el-table .row-loss { background: #fff7f7; }
.el-table .row-loss:hover > td { background: #fff0f0; }

/* 采购明细 chips */
.purchase-items { display: flex; flex-wrap: wrap; gap: 6px; }
.p-item {
  background: #f4f6fb; border: 1px solid var(--line); border-radius: 8px;
  padding: 3px 9px; font-size: 12.5px;
}

/* 表格微调 */
.el-table { --el-table-header-bg-color: #f8f9fc; --el-table-header-text-color: #6b7280; }
.el-table th.el-table__cell { font-weight: 600; font-size: 12.5px; }

/* 菜品编辑 */
.cat-block { margin-bottom: 14px; }
.cat-label { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.cat-label .req { color: var(--bad); font-weight: 400; font-size: 12px; margin-left: 6px; }
.dish-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dish-row .el-input { max-width: 320px; }
.empty-tip { font-size: 12.5px; color: var(--muted-2); padding: 8px 0; }

/* 提示块 */
.callout {
  background: #f6f7ff;
  border: 1px solid #dfe4fd;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.8;
}
.callout.warn { background: #fffbeb; border-color: #fde68a; }

/* 邀请口令卡 */
.invite-card {
  background: linear-gradient(135deg, #eef1fe 0%, #f5f0ff 100%);
  border: 1px solid #dfe4fd;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.invite-code {
  font-size: 20px; font-weight: 800; letter-spacing: .06em;
  color: var(--brand);
  background: #fff;
  border: 1.5px dashed #b6c3f7;
  border-radius: 12px;
  padding: 9px 18px;
}

/* 人员 */
.dept-tag { margin: 0 6px 6px 0; }
.dept-sum-item {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f4f6fb; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; margin: 0 8px 8px 0; font-size: 13px;
}
.dept-sum-item b { color: var(--brand); }

/* 补贴输入块 */
.subsidy-inputs { display: flex; gap: 14px; }
.si-block { flex: 1; border-radius: 14px; padding: 13px 14px; border: 1px solid var(--line); }
.si-block.lunch { background: linear-gradient(135deg, #eef1fe, #f8f9ff); }
.si-block.dinner { background: linear-gradient(135deg, #fff4ea, #fffaf3); }
.si-label { font-size: 12.5px; font-weight: 600; margin-bottom: 9px; color: var(--ink-2); }

.kv { font-size: 13px; line-height: 2; }
.kv .k { color: var(--muted); display: inline-block; min-width: 96px; }

/* 设置页 · 一键体检结果 */
.diag {
  margin-top: 14px; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; background: #fbfcfe;
}
.diag-row {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--line);
}
.diag-row:last-child { border-bottom: none; }
.diag-ico { flex: 0 0 auto; }
.diag-name { flex: 0 0 auto; font-weight: 600; color: var(--ink-2); }
.diag-tip { color: var(--muted); }
.diag-row.bad { background: #fff5f5; }
.diag-row.bad .diag-name { color: #c0392b; }
.diag-row.bad .diag-tip { color: #a8443a; }
.diag-ok {
  padding: 10px 14px; font-size: 13px; font-weight: 600;
  color: #1f8a5b; background: #f0fbf5;
}

/* 餐次概览色块：早餐 / 夜宵（中餐、晚餐沿用原有 .ov-lunch / .ov-dinner） */
.ov-breakfast { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); box-shadow: 0 10px 24px -8px rgba(16, 185, 129, .45); }
.ov-supper { background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%); box-shadow: 0 10px 24px -8px rgba(139, 92, 246, .45); }

/* 补贴默认标准：开了 4 个餐次时自动两行换行，避免输入框被挤扁 */
.subsidy-inputs { flex-wrap: wrap; }
.si-block { flex: 1 1 44%; min-width: 132px; }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #d3d9e3; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #b9c2d0; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 720px) {
  .side { display: none; }
  .main { padding: 14px; }
}


/* ==================================================================
   v2.2 追加样式：此前 v2.0 一批新页面（经营概览 / 预警中心 / 账号权限 /
   供应商比价 / 采购导入 / 菜单月历）的模板类没有对应样式，导致排版散架
   （月历竖着排就是缺了 .cal 网格）。这里一次性补齐。
   ================================================================== */

/* ---------- 通用 ---------- */
.chart-tall { height: 360px; }
.no-print { }
.print-foot {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--muted); line-height: 1.8;
}

/* ---------- 菜单管理 · 月历视图 ---------- */
.cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.cal-head {
  text-align: center; font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 4px 0 2px;
}
.cal-cell {
  min-height: 96px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; padding: 6px 8px; cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column; gap: 4px;
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.cal-cell:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 16px -6px rgba(79, 110, 242, .35);
  transform: translateY(-1px);
}
.cal-cell.out { background: #fafbfd; opacity: .55; }
.cal-cell.today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
/* 月历三态强化：已排=绿底+绿粗边，部分=黄底+黄粗边，未排=默认白+浅虚线边 —— 一眼分清 */
.cal-cell.mc-full {
  background: #e9f9f0; border-color: #7fd6ab;
  box-shadow: inset 3px 0 0 #2fb583;
}
.cal-cell.mc-part {
  background: #fff6e2; border-color: #f2cd85;
  box-shadow: inset 3px 0 0 #eda62a;
}
.cal-cell.mc-empty { border-style: dashed; border-color: #e2e7f0; }
.cc-top { display: flex; align-items: center; justify-content: space-between; }
.cc-day { font-weight: 700; font-size: 14px; }
.cal-cell.today .cc-day { color: var(--brand); }
.cal-cell.mc-full .cc-day { color: #1d8a5f; }
.cal-cell.mc-part .cc-day { color: #a3690a; }
.cc-badge {
  font-size: 11px; color: var(--muted);
  background: #eef1f7; border-radius: 999px; padding: 1px 7px;
  font-weight: 600;
}
.cal-cell.mc-full .cc-badge { background: #bfeed8; color: #14724b; }
.cal-cell.mc-part .cc-badge { background: #fce8bd; color: #8a5806; }
/* 未排的餐次行加删除感（灰+删除线不行，用更浅的「未排」徽标即可） */
.cal-cell.mc-full .cc-meal.empty .ccm-text,
.cal-cell.mc-part .cc-meal.empty .ccm-text { color: #c1c7d2; }
.cc-body { display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 1.5; overflow: hidden; }
.cc-meal { display: flex; align-items: flex-start; gap: 4px; min-width: 0; }
.cc-meal.empty { color: var(--muted-2); }
.ccm-ico { flex: 0 0 auto; }
.ccm-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-none { font-size: 12px; color: var(--muted-2); }

/* 菜单管理 · 周期模板预览行 */
.tpl-line { display: flex; align-items: baseline; gap: 8px; font-size: 13px; line-height: 2; }
.tpl-meal { flex: 0 0 auto; font-weight: 600; color: var(--brand); }

/* ---------- 经营概览 · 预警清单 ---------- */
.dash { display: block; }
.alert-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 12px; margin-bottom: 8px;
  border: 1px solid var(--line); background: #fbfcfe;
}
.alert-row:last-child { margin-bottom: 0; }
.alert-ico { flex: 0 0 auto; font-size: 18px; line-height: 1.4; }
.alert-body { flex: 1; min-width: 0; }
.alert-title { font-weight: 600; font-size: 14px; color: var(--ink); }
.alert-detail { font-size: 13px; color: var(--ink-2); margin-top: 2px; line-height: 1.6; }
.alert-items { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.alert-chip {
  font-size: 12px; padding: 2px 9px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.alert-row.alert-high { border-color: #f3c1c1; background: #fff7f7; }
.alert-row.alert-high .alert-title { color: #c0392b; }
.alert-row.alert-mid { border-color: #f5d9a8; background: #fffaf0; }
.alert-row.alert-mid .alert-title { color: #b26a00; }

/* ---------- 预警中心 ---------- */
.alert-list { display: flex; flex-direction: column; gap: 10px; }
.alert-item {
  border: 1px solid var(--line); border-left-width: 4px; border-radius: 12px;
  padding: 12px 14px; background: #fff;
}
.alert-item.alert-high { border-left-color: var(--bad); background: #fff7f7; }
.alert-item.alert-mid { border-left-color: var(--warn); background: #fffaf0; }
.ai-head { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ai-ico { font-size: 16px; }
.ai-detail { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.6; }
.ai-tip { font-size: 12px; color: var(--muted); margin-top: 4px; }
.ai-items { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.ai-chip {
  font-size: 12px; padding: 2px 9px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}

/* ---------- 账号与权限 · 角色说明卡 / 表单 ---------- */
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.role-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fbfcfe;
}
.rc-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.rc-desc { font-size: 12px; color: var(--ink-2); margin-top: 4px; line-height: 1.6; }
.rc-tip { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }

/* ---------- 供应商 · 比价行 ---------- */
.cmp-line {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; padding: 5px 8px; border-radius: 8px;
}
.cmp-line:nth-child(odd) { background: #fafbfd; }
.cmp-line.best { background: #f0fbf5; }
.cmp-sup { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-price { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.cmp-line.best .cmp-price { color: #1f8a5b; font-weight: 600; }

/* ---------- 采购导入 · 完成页 ---------- */
.imp-done { text-align: center; padding: 26px 12px; }
.id-ico { font-size: 34px; }
.id-title { font-size: 16px; font-weight: 700; margin-top: 8px; }
.id-desc { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.8; }

/* ---------- 侧边导航分隔线 ---------- */
.nav-divider { height: 1px; margin: 8px 14px; background: rgba(255, 255, 255, .1); }

/* ---------- 登录页 · 双模式（集团账号 / 门店登录） ---------- */
.login-tabs {
  display: flex; gap: 6px; margin: 4px 0 14px;
  background: #eef1f7; border-radius: 10px; padding: 4px;
}
.login-tab {
  flex: 1; text-align: center; font-size: 13px; font-weight: 600;
  padding: 7px 0; border-radius: 8px; cursor: pointer; color: var(--muted);
  transition: all .15s;
}
.login-tab:hover { color: var(--ink-2); }
.login-tab.on { background: #fff; color: var(--brand); box-shadow: 0 2px 6px rgba(17, 24, 39, .08); }
.login-hint { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 8px; }

/* ---------- v2.3：登录页「云端版本过旧」提醒条 ---------- */
.login-warn {
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
}

/* ---------- v2.4：自定义角色权限勾选矩阵 ---------- */
.perm-matrix {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding: 4px 2px;
}
.perm-group {
  border: 1px solid var(--bd, #e4e7ed);
  border-radius: 8px;
  padding: 8px 12px;
}
.perm-group .pg-title {
  font-size: 12px;
  color: #8a94a6;
  margin-bottom: 4px;
}
.perm-group .pg-items {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
}
