/* =========================================================
   宫赫医美 · 后台视觉主题（年轻 / 活力版）
   主色：玫瑰粉 → 珊瑚橙 渐变；辅色：紫罗兰 / 薄荷 / 琥珀
   顶栏：深紫星空渐变；侧栏：白色轻卡片
   ========================================================= */
:root {
  --bg: #f6f5fd;
  --panel: #ffffff;
  --border: #ecebf8;
  --border-2: #e2e0f2;
  --text: #1d1a2e;
  --text2: #6f6c8a;

  --brand: #ff3d6e;
  --brand-2: #ff8a3d;
  --violet: #8b5cf6;
  --cyan: #22c3d6;
  --mint: #0fb87f;
  --amber: #f59e0b;

  --primary: #ff3d6e;
  --primary-dark: #e91e58;
  --primary-soft: #fff0f4;
  --secondary: #2a2547;
  --secondary-light: #453f6b;
  --secondary-soft: #f1eeff;

  --red: #ff3d6e;
  --green: #0fb87f;
  --orange: #f59e0b;

  --grad-brand: linear-gradient(135deg, #ff4d6d 0%, #ff7a45 100%);
  --grad-violet: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  --grad-nav: linear-gradient(115deg, #241a4e 0%, #3a2170 46%, #6a2352 100%);
  --grad-mix: linear-gradient(135deg, #ff4d6d 0%, #8b5cf6 100%);

  --shadow: 0 2px 10px rgba(83, 63, 160, .06);
  --shadow-md: 0 8px 24px rgba(83, 63, 160, .10);
  --shadow-lg: 0 18px 46px rgba(83, 63, 160, .16);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(760px 380px at 88% -8%, rgba(139, 92, 246, .10), transparent 70%),
    radial-gradient(620px 340px at 2% 4%, rgba(255, 77, 109, .09), transparent 72%);
  background-attachment: fixed;
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
::selection { background: rgba(255, 61, 110, .18); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d9d6ee; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #c6c1e6; background-clip: content-box; }

/* ---------- 登录 ---------- */
.login-wrap {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(560px 420px at 18% 12%, rgba(255, 77, 109, .18), transparent 68%),
    radial-gradient(620px 460px at 84% 78%, rgba(139, 92, 246, .20), transparent 70%),
    radial-gradient(420px 320px at 70% 8%, rgba(34, 195, 214, .14), transparent 70%),
    linear-gradient(160deg, #fdf6f8 0%, #f6f5fd 55%, #f2f0ff 100%);
  padding: 24px;
}
.login-card {
  width: 380px; background: rgba(255, 255, 255, .92); border: 1px solid #fff;
  border-radius: 22px; padding: 34px 30px; backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(83, 63, 160, .16), 0 2px 0 #fff inset;
}
.login-logo {
  font-size: 26px; font-weight: 800; text-align: center; letter-spacing: .5px;
  background: var(--grad-mix); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-logo.small { font-size: 19px; }
.login-sub { font-size: 12px; color: var(--text2); text-align: center; margin: 8px 0 24px; line-height: 1.6; }
.form-row { margin-bottom: 14px; }
.form-row input, .form-row select, .modal input, .modal select, .modal textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border-2); border-radius: 11px;
  font-size: 14px; outline: none; background: #fbfaff; color: var(--text);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.form-row input::placeholder, .modal input::placeholder, .modal textarea::placeholder { color: #a8a5c0; }
.form-row input:focus, .modal input:focus, .modal select:focus, .modal textarea:focus {
  border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(255, 61, 110, .12);
}
.code-row { display: flex; gap: 8px; min-width: 0; }
.code-row input { flex: 1 1 0; min-width: 0; width: 0; }
.form-error { color: var(--red); font-size: 12px; min-height: 18px; margin-bottom: 6px; line-height: 1.6; }
.form-error:not(:empty) { background: rgba(220,38,38,.06); border-radius: 8px; padding: 7px 12px; word-break: break-word; overflow-wrap: anywhere; text-align: left; }
.login-tip { margin-top: 14px; font-size: 12px; color: var(--text2); text-align: center; }
.login-tip a { color: var(--primary) !important; text-decoration: none; }
.login-tip a:hover { text-decoration: underline; }

/* ---------- 按钮 ---------- */
.btn {
  border: none; border-radius: 11px; padding: 10px 16px; font-size: 14px; cursor: pointer;
  font-family: inherit; font-weight: 500; transition: transform .12s, box-shadow .16s, background .16s, color .16s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 6px 16px rgba(255, 77, 109, .30);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 22px rgba(255, 77, 109, .38); filter: brightness(1.04); }
.btn-ghost { background: #f4f2fe; color: #4b4670; }
.btn-ghost:hover:not(:disabled) { background: #ece9fb; color: var(--text); }
.btn-danger { background: #fff0f3; color: #e11d48; }
.btn-danger:hover:not(:disabled) { background: #ffe1e8; }
.btn-success { background: #e9fbf3; color: #058a5f; }
.btn-success:hover:not(:disabled) { background: #d6f7e9; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }

/* ---------- 布局 ---------- */
.app { display: flex; flex-direction: column; min-height: 100vh; }

/* ---------- 顶部一级菜单 ---------- */
.topnav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px;
  height: 58px; padding: 0 16px 0 20px;
  background:
    radial-gradient(420px 130px at 10% 0%, rgba(255, 77, 109, .34), transparent 70%),
    radial-gradient(520px 150px at 76% 120%, rgba(139, 92, 246, .38), transparent 72%),
    var(--grad-nav);
  box-shadow: 0 6px 22px rgba(36, 26, 78, .22);
}
.topnav-logo {
  font-size: 16px; font-weight: 800; color: #fff; white-space: nowrap; letter-spacing: .4px;
  padding-right: 16px; border-right: 1px solid rgba(255, 255, 255, .14);
}
.topnav-logo span { display: block; font-size: 10px; font-weight: 400; color: #b8b2e0; letter-spacing: 1.6px; margin-top: 2px; }
.top-nav { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; }
.top-nav::-webkit-scrollbar { height: 0; }
.top-nav-item {
  padding: 8px 15px; border-radius: 10px; color: #c8c2e8; cursor: pointer; font-size: 14px;
  white-space: nowrap; transition: background .16s, color .16s, box-shadow .16s, transform .12s;
}
.top-nav-item:hover { background: rgba(255, 255, 255, .10); color: #fff; }
.top-nav-item.active {
  background: var(--grad-mix); color: #fff; font-weight: 600;
  box-shadow: 0 6px 18px rgba(255, 77, 109, .34);
}
.topnav-user { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.topnav .btn-ghost { background: rgba(255, 255, 255, .13); color: #fff; }
.topnav .btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .22); }

.app-body { display: flex; flex: 1; align-items: stretch; }

/* ---------- 左侧二级菜单 ---------- */
.sidebar {
  width: 196px; flex-shrink: 0; display: flex; flex-direction: column;
  position: sticky; top: 58px; height: calc(100vh - 58px);
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px);
  border-right: 1px solid var(--border);
}
.side-title {
  flex-shrink: 0; padding: 18px 18px 12px; font-size: 11.5px; font-weight: 600;
  letter-spacing: 2px; color: var(--text2); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 7px;
}
.side-title::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-mix);
  box-shadow: 0 0 0 3px rgba(255, 61, 110, .12);
}
.side-nav { flex: 1; overflow-y: auto; padding: 10px 12px 18px; }
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-thumb { background: #ded9f2; border-radius: 6px; }
.side-nav::-webkit-scrollbar-track { background: transparent; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 11px; cursor: pointer; color: #57527a; margin-bottom: 3px; font-size: 14px;
  transition: background .16s, color .16s, box-shadow .16s;
}
.nav-item span { width: 20px; text-align: center; font-size: 15px; flex-shrink: 0; }
.nav-item:hover { background: #f6f3ff; color: var(--text); }
.nav-item.active {
  background: var(--grad-mix); color: #fff; font-weight: 600;
  box-shadow: 0 8px 18px rgba(139, 92, 246, .26);
}
.nav-item.active span { filter: saturate(1.2); }
.side-user-name { color: #fff; font-size: 13px; font-weight: 600; line-height: 1.3; text-align: right; }
.side-user-role { font-size: 11px; color: #b8b2e0; text-align: right; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 28px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); position: sticky; top: 58px; z-index: 10;
}
.topbar h1 { font-size: 18px; font-weight: 700; letter-spacing: .2px; display: flex; align-items: center; gap: 10px; }
.topbar h1::before {
  content: ''; width: 4px; height: 18px; border-radius: 4px; background: var(--grad-brand); flex-shrink: 0;
}
.month-label { font-size: 13px; color: var(--text2); display: flex; align-items: center; gap: 6px; }
.month-label input {
  border: 1px solid var(--border-2); border-radius: 9px; padding: 6px 9px; font-size: 13px;
  font-family: inherit; color: var(--text); background: #fbfaff; outline: none;
}
.month-label input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 61, 110, .10); }
.page-container { padding: 24px 28px 40px; flex: 1; }

/* ---------- 卡片 / 汇总 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card {
  position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px 18px 16px; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.stat-card::before {
  content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: var(--grad-brand); opacity: .9;
}
.stat-card::after {
  content: ''; position: absolute; right: -34px; top: -34px; width: 104px; height: 104px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 77, 109, .13), transparent 68%);
  pointer-events: none;
}
.stat-card:nth-child(2)::before { background: var(--grad-violet); }
.stat-card:nth-child(2)::after { background: radial-gradient(circle, rgba(139, 92, 246, .14), transparent 68%); }
.stat-card:nth-child(3)::before { background: linear-gradient(135deg, #22c3d6 0%, #0fb87f 100%); }
.stat-card:nth-child(3)::after { background: radial-gradient(circle, rgba(34, 195, 214, .15), transparent 68%); }
.stat-card:nth-child(4)::before { background: linear-gradient(135deg, #f59e0b 0%, #ff8a3d 100%); }
.stat-card:nth-child(4)::after { background: radial-gradient(circle, rgba(245, 158, 11, .16), transparent 68%); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #e4e1f7; }
.stat-card .label { font-size: 13px; color: var(--text2); position: relative; }
.stat-card .value { font-size: 24px; font-weight: 800; margin-top: 8px; letter-spacing: -.2px; position: relative; font-variant-numeric: tabular-nums; }
.stat-card .value.red { color: var(--red); }
.stat-card .value.green { color: var(--green); }
.stat-card .value.orange { color: var(--orange); }
.stat-card .sub { font-size: 12px; color: var(--text2); margin-top: 6px; line-height: 1.6; position: relative; }

.panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.panel h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.panel h3::before {
  content: ''; width: 3px; height: 14px; border-radius: 3px; background: var(--grad-mix); flex-shrink: 0;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- 横向条形图 ---------- */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.bar-row .bar-name { width: 96px; text-align: right; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.bar-row .bar-track { flex: 1; height: 18px; background: #f3f1fb; border-radius: 7px; overflow: hidden; }
.bar-row .bar-fill { height: 100%; border-radius: 7px; background: var(--grad-brand); }
.bar-row .bar-fill.income { background: linear-gradient(90deg, #6ee7c0, #0fb87f); }
.bar-row .bar-fill.expense { background: var(--grad-brand); }
.bar-row .bar-val { width: 92px; font-weight: 700; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* ---------- 结余分析：收入分布切换/筛选 ---------- */
.seg-row { display: inline-flex; background: #f3f1fb; border-radius: 11px; padding: 3px; margin-bottom: 10px; }
.seg-btn { border: none; background: transparent; padding: 6px 13px; font-size: 12.5px; border-radius: 9px;
  color: var(--text2); cursor: pointer; font-family: inherit; transition: .16s; }
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: #fff; color: var(--primary); font-weight: 700; box-shadow: 0 2px 8px rgba(83, 63, 160, .12); }
.dash-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.dash-filters .dash-f { flex: 1 1 120px; min-width: 110px; padding: 8px 10px; font-size: 12.5px;
  border: 1px solid var(--border-2); border-radius: 10px; background: #fbfaff; color: var(--text); font-family: inherit; outline: none; }
.dash-filters .dash-f:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 61, 110, .10); background: #fff; }
.bk-sum-line { font-size: 12.5px; color: var(--text2); margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px dashed var(--border-2); }
.bk-sum-line b { color: var(--green); font-size: 14px; }

/* ---------- 明细页：数据分析 ---------- */
.an-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 780px) { .an-kpis { grid-template-columns: repeat(2, 1fr); } }
.an-kpi { background: linear-gradient(180deg, #fbfaff 0%, #f7f5ff 100%); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 13px; display: flex; flex-direction: column; gap: 4px; }
.an-kpi span { font-size: 12px; color: var(--text2); }
.an-kpi b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.an-kpi b.green { color: var(--green); }
.an-kpi b.red { color: var(--primary); }
.an-cols { gap: 24px; margin-top: 12px; }
.an-sub { font-size: 12.5px; color: var(--text2); font-weight: 700; margin-bottom: 9px; }
.bar-track i.an-fill { display: block; height: 100%; border-radius: 6px; }
.an-fill.green { background: linear-gradient(90deg, #7ff0cb, #0fb87f); }
.an-fill.red { background: linear-gradient(90deg, #ffa8b9, #ff3d6e); }
.day-chart { display: flex; align-items: flex-end; gap: 3px; height: 130px; padding-top: 6px; }
.day-col { flex: 1 1 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.day-col i { display: block; width: 100%; max-width: 22px; border-radius: 4px 4px 0 0; }
.day-col i.green { background: linear-gradient(180deg, #7ff0cb, #0fb87f); }
.day-col i.red { background: linear-gradient(180deg, #ffa8b9, #ff3d6e); }
.day-col:hover i { filter: brightness(1.08) saturate(1.1); }
.day-col span { font-size: 10px; color: var(--text2); height: 13px; margin-top: 3px; }

/* ---------- 支出构成细化 ---------- */
.bk-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 11px 14px; background: var(--primary-soft); border: 1px solid #ffd9e2; border-radius: 12px;
  margin-bottom: 16px; font-size: 13px; color: var(--text2); }
.bk-total b { font-size: 18px; font-weight: 800; color: var(--primary); margin-left: 6px; }
.bk-group { margin-bottom: 16px; }
.bk-group:last-child { margin-bottom: 0; }
.bk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 4px 0 7px; border-bottom: 1px dashed var(--border-2); margin-bottom: 10px; }
.bk-title { font-size: 13px; font-weight: 800; color: var(--text); }
.bk-sum { font-size: 14px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.bk-sum em { font-style: normal; font-size: 11px; font-weight: 400; color: var(--text2); margin-left: 8px; }
.bk-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 8px; }
.bk-item .bk-name { width: 108px; text-align: right; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.bk-track { flex: 1; height: 12px; background: #f3f1fb; border-radius: 6px; overflow: hidden; }
.bk-track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #ffb3ac, #ff4d6d); }
.bk-amt { width: 92px; text-align: right; font-weight: 700; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.bk-pct { width: 46px; text-align: right; color: var(--text2); flex-shrink: 0; }

/* ---------- 表格 ---------- */
.table-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.table-toolbar select, .table-toolbar input { padding: 9px 11px; border: 1px solid var(--border-2); border-radius: 10px;
  font-size: 13px; background: #fbfaff; color: var(--text); font-family: inherit; outline: none; }
.table-toolbar select:focus, .table-toolbar input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(255, 61, 110, .10); }
.table-wrap { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { background: #f8f6ff; color: #5d5883; font-weight: 700; position: sticky; top: 0; font-size: 12.5px; letter-spacing: .2px; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #fbfaff; }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.tag.pending { background: #fff6e3; color: #b7791f; }
.tag.approved { background: #e7fbf2; color: #07835c; }
.tag.rejected { background: #ffeef2; color: #d31c53; }
.tag.received { background: #e7fbf2; color: #07835c; }
.tag.info { background: var(--secondary-soft); color: #5b46c9; }
.tag.muted { background: #f3f1fb; color: #6f6c8a; }
.row-actions { display: flex; gap: 6px; }
.link-btn { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 13px;
  padding: 3px 5px; border-radius: 6px; font-family: inherit; font-weight: 600; }
.link-btn:hover { background: var(--primary-soft); }
.link-btn.danger { color: var(--red); }
.link-btn.danger:hover { background: #ffeef2; }
.empty-tip { padding: 44px; text-align: center; color: var(--text2); font-size: 13px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(24, 18, 48, .46);
  backdrop-filter: blur(4px);
}
.modal {
  position: relative;
  width: 680px; max-width: 100%; max-height: 88vh;
  overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 20px; padding: 0;
  box-shadow: var(--shadow-lg);
  animation: modalIn .18s ease-out;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.modal.wide { width: 760px; }
.modal > h3 {
  position: sticky; top: 0; z-index: 6;
  margin: 0; padding: 19px 26px 15px;
  font-size: 17px; line-height: 1.4; font-weight: 700;
  background: #fff; border-bottom: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
}
.modal > h3::after {
  content: ''; position: absolute; left: 26px; bottom: -1px; width: 42px; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--grad-brand);
}
.modal > h3 .modal-sub {
  display: block; margin-top: 5px;
  font-size: 12px; font-weight: 400; color: var(--text2);
}
.modal > *:not(h3) { padding-left: 26px; padding-right: 26px; }
.modal > h3 + * { margin-top: 14px; }
.modal label {
  display: block; font-size: 12.5px; color: #5f5a80; font-weight: 500;
  margin: 12px 0 6px;
}
.modal .label-tip { font-size: 11.5px; color: #9d99b8; font-weight: 400; margin-left: 4px; }
.modal .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.modal textarea { min-height: 92px; line-height: 1.7; resize: vertical; font-family: inherit; }
.modal input, .modal select, .modal textarea { padding: 11px 12px; border-radius: 11px; }
.modal .modal-actions {
  position: sticky; bottom: 0; z-index: 6;
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  margin: 22px 0 0; padding: 14px 26px 18px;
  background: #fff; border-top: 1px solid var(--border);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 -10px 24px rgba(83, 63, 160, .07);
}

/* 分组标题 / 字段提示 / 开关行 */
.group-title {
  display: flex; align-items: center; gap: 8px;
  margin: 22px 0 2px; padding-top: 16px;
  border-top: 1px dashed var(--border-2);
  font-size: 13px; font-weight: 700; color: var(--secondary);
}
.group-title .gt-hint { margin-left: auto; font-size: 11.5px; font-weight: 400; color: var(--text2); }
.group-title.first { border-top: none; padding-top: 0; margin-top: 2px; }
.field-hint { font-size: 11.5px; color: var(--text2); line-height: 1.65; margin-top: 6px; }
.field-hint b { color: var(--secondary); font-weight: 700; }
.check-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; font-size: 13px; color: var(--text); cursor: pointer;
}
.check-row input { width: auto; margin: 0; accent-color: var(--brand); }
.save-hint { margin-right: auto; font-size: 12px; color: var(--text2); }
.modal.dirty .save-hint { color: var(--orange); font-weight: 700; }
.chip-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-preview .chip { background: var(--primary-soft); color: var(--primary); border-radius: 20px; padding: 4px 11px; font-size: 12px; font-weight: 600; }
.chip-preview .chip.empty { background: #f3f1fb; color: var(--text2); font-weight: 400; }

/* ---------- 开关行 & 标签提示（全局） ---------- */
.label-tip { font-size: 11.5px; color: #9d99b8; font-weight: 400; margin-left: 4px; }
.modal label.check-row, .mk-form label.check-row {
  display: flex; align-items: center; gap: 8px;
  margin: 16px 0 0; font-size: 13px; color: var(--text); cursor: pointer;
}
.modal label.check-row input, .mk-form label.check-row input { width: auto; margin: 0; flex-shrink: 0; }

/* ---------- 营销功能：编辑 + 手机实时预览 ---------- */
.mk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 1120px) { .mk-layout { grid-template-columns: 1fr; } .mk-preview { display: none; } }
.mk-form .panel:last-child { margin-bottom: 0; }
.mk-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.mk-form .grid2 > div > label:first-child { margin-top: 0; }
.mk-form label { display: block; font-size: 12.5px; color: #5f5a80; font-weight: 500; margin: 12px 0 6px; }
.mk-form input { width: 100%; padding: 11px 12px; border: 1px solid var(--border-2); border-radius: 11px;
  font-size: 14px; outline: none; background: #fbfaff; color: var(--text); font-family: inherit;
  transition: border-color .16s, box-shadow .16s, background .16s; }
.mk-form input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(255, 61, 110, .12); }
.mk-form .panel h3 { display: flex; align-items: center; gap: 8px; }
/* 主视觉背景图上传 */
.bg-upload { display: flex; gap: 14px; align-items: flex-start; margin-top: 8px; padding: 12px;
  border: 1px dashed var(--border-2); border-radius: 14px; background: #fbfaff; transition: .16s; }
.bg-upload.dragging { border-color: var(--brand); background: var(--primary-soft); }
.bg-thumb { width: 132px; height: 92px; border-radius: 12px; border: 1px solid var(--border);
  background: linear-gradient(150deg, #f0eefb 0%, #e2ddf7 100%);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.bg-thumb span { font-size: 11.5px; color: #8f8ab0; }
.bg-thumb.empty { border-style: dashed; }
.bg-side { flex: 1; min-width: 0; }
.bg-btns { display: flex; align-items: center; gap: 12px; }
.bg-mask-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.bg-mask-row label { margin: 0; font-size: 12.5px; color: var(--text2); white-space: nowrap; }
.bg-mask-row select { flex: 1; padding: 9px 10px; border: 1px solid var(--border-2); border-radius: 10px;
  font-size: 13px; background: #fbfaff; color: var(--text); font-family: inherit; outline: none; }
.bg-mask-row select:focus { border-color: var(--brand); background: #fff; }
.pv-hero { position: relative; overflow: hidden; background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: center; }
.pv-hero-mask { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 20, 26, .10) 0%, rgba(20, 20, 26, .60) 100%); }
.pv-hero-body { position: relative; }
.pv-hero.has-bg .pv-year, .pv-hero.has-bg .pv-h1 { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }

.mk-preview { position: sticky; top: 84px; }
.mk-preview-head { display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 700; color: var(--secondary); margin-bottom: 10px; }
.mk-preview-head span { font-size: 11px; font-weight: 400; color: #5b46c9; background: var(--secondary-soft); border-radius: 20px; padding: 3px 9px; }
.phone-frame { width: 300px; margin: 0 auto; background: #241a4e; border-radius: 34px; padding: 9px; box-shadow: 0 20px 46px rgba(36, 26, 78, .28); }
.phone-screen { background: #fbf8f6; border-radius: 26px; overflow: hidden; }
.pv-status { display: flex; justify-content: space-between; padding: 10px 16px 2px; font-size: 10px; color: #6f6f7e; }
.pv-hero { margin: 8px 12px 0; border-radius: 18px; padding: 20px 18px 22px; color: #fff;
  background-image: linear-gradient(135deg, #444559 0%, #23232c 58%, #7a1220 100%);
  background-size: cover; background-position: center; }
.pv-year { font-size: 34px; font-weight: 800; letter-spacing: 1px; opacity: .92; line-height: 1; }
.pv-h1 { font-size: 17px; font-weight: 700; margin-top: 8px; }
.pv-btn { display: inline-block; margin-top: 14px; background: #e2172d; color: #fff; font-size: 12px; padding: 7px 16px; border-radius: 20px; }
.pv-banner { display: flex; align-items: center; gap: 10px; margin: 12px; padding: 12px; border-radius: 14px;
  background: #fff; border: 1px solid #efe6e2; }
.pv-icon { font-size: 18px; flex-shrink: 0; }
.pv-banner-body { flex: 1; min-width: 0; }
.pv-bt { font-size: 12px; font-weight: 600; color: #23232c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-bd { font-size: 10.5px; color: #8a8a99; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-bbtn { font-size: 10.5px; color: #e2172d; border: 1px solid #f3c3c8; background: #fdecee; border-radius: 14px; padding: 4px 9px; white-space: nowrap; flex-shrink: 0; }
.pv-section-title { margin: 14px 14px 8px; font-size: 12px; font-weight: 600; color: #23232c; }
.pv-cards { display: flex; gap: 8px; padding: 0 12px; }
.pv-cards span { flex: 1; height: 74px; border-radius: 12px; background: linear-gradient(135deg, #f1e7e2, #e6dcd6); }
.pv-share { margin: 14px 12px 16px; font-size: 10.5px; color: #8a8a99; line-height: 1.6; }
.pv-share b { color: #444559; font-weight: 600; }
.mk-preview-tip { font-size: 11.5px; color: var(--text2); text-align: center; margin-top: 10px; line-height: 1.6; }
.mk-savebar { position: sticky; bottom: 12px; z-index: 8; display: flex; align-items: center; gap: 14px;
  margin-top: 18px; padding: 13px 16px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 10px 28px rgba(83, 63, 160, .12); }
.mk-savebar .save-hint { margin-right: auto; font-size: 12px; color: var(--text2); }

/* ---------- Toast ---------- */
.toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #2a2547, #3a2170); color: #fff; padding: 11px 22px;
  border-radius: 12px; font-size: 13px; font-weight: 500; z-index: 200;
  box-shadow: 0 12px 30px rgba(36, 26, 78, .28); animation: modalIn .18s ease-out; }
.toast.error { background: linear-gradient(135deg, #e11d48, #ff5c8a); }

/* ---------- 状态标签页 ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tab { border: 1px solid var(--border-2); background: #fff; color: #5f5a80; border-radius: 20px;
  padding: 7px 16px; font-size: 13px; cursor: pointer; font-family: inherit; font-weight: 500;
  transition: .16s; }
.tab:hover { border-color: #ffc2d2; color: var(--primary); background: #fffafb; }
.tab.active { background: var(--grad-brand); border-color: transparent; color: #fff; font-weight: 700;
  box-shadow: 0 6px 16px rgba(255, 77, 109, .28); }
.muted-text { color: var(--text2); font-size: 12px; font-weight: 400; }
.value.orange { color: var(--orange); }
.stat-card .value { font-size: 22px; }

/* ---------- 退款总金额计算区 ---------- */
.refund-calc { background: #fff5f7; border: 1px solid #ffd5de; border-radius: 12px; padding: 14px 16px; margin-top: 6px; }
.refund-calc-label { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; color: var(--text); }
.refund-calc-label span { font-size: 20px; color: var(--red); font-weight: 800; }
.refund-calc-ratio { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--text2); margin-top: 8px; }
.refund-calc-ratio b { font-size: 17px; color: #4b4270; }
.refund-calc-formula { font-size: 12px; color: var(--text2); margin-top: 6px; }

/* ---------- 员工审核 ---------- */
.staff-pending-tip {
  background: #fffaf0;
  border: 1px solid #ffd88a;
  color: #a86412;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 16px;
}
.section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin: 18px 0 10px;
}

/* ---------- 登录方式切换 ---------- */
.login-tabs {
  display: flex;
  background: #f4f2fe;
  border-radius: 11px;
  padding: 4px;
  margin-bottom: 14px;
}
.login-tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  color: #6f6c8a;
  border-radius: 9px;
  cursor: pointer;
  user-select: none;
  transition: .16s;
  font-weight: 500;
}
.login-tab.active {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(83, 63, 160, .12);
}

/* 角色权限勾选 */
.perm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 6px; }
.perm-group { border: 1px solid var(--border); border-radius: 12px; padding: 9px 11px; background: #fcfbff; }
.perm-group-title { font-size: 12px; color: #5b46c9; margin-bottom: 6px; font-weight: 700; }
.perm-item { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 0; cursor: pointer; }
.perm-item input { accent-color: var(--brand); }
@media (max-width: 640px) { .perm-grid { grid-template-columns: 1fr; } }

/* 部门层级显示 */
.dept-name { display: flex; align-items: center; gap: 4px; line-height: 1.5; }
.dept-branch { color: #b9b0d8; font-size: 12px; margin-right: 2px; flex-shrink: 0; }
.dept-sub-tag { display: inline-block; margin-left: 6px; padding: 0 7px; height: 17px; line-height: 17px;
  border-radius: 9px; background: #f0ecfb; color: #6b5aa8; font-size: 11px; font-weight: 600; }
.dept-remark { font-size: 11.5px; margin-top: 1px; }

/* 部门分配员工 */
.asg-toolbar { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; flex-wrap: wrap; }
.asg-toolbar input { flex: 1; min-width: 160px; height: 34px; padding: 0 11px; border: 1px solid var(--border); border-radius: 9px; font-size: 13px; outline: none; }
.asg-toolbar input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(83, 63, 160, .08); }
.asg-count { font-size: 12.5px; color: var(--text2); margin-left: auto; white-space: nowrap; }
.asg-list { max-height: 46vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; background: #fcfbff; }
.asg-row { display: grid; grid-template-columns: 20px 1.1fr 1.1fr .8fr 1.1fr 44px; align-items: center; gap: 8px;
  padding: 8px 12px; font-size: 13px; cursor: pointer; border-bottom: 1px solid #f0ecfa; }
.asg-row:last-child { border-bottom: 0; }
.asg-row:hover { background: #f7f4ff; }
.asg-row.on { background: #f2eeff; }
.asg-row input { accent-color: var(--brand); width: 15px; height: 15px; cursor: pointer; }
.asg-name { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asg-sub { font-size: 12px; color: var(--text2); font-variant-numeric: tabular-nums; }
.asg-role { font-size: 12px; color: var(--text2); }
.asg-cur { font-size: 12px; color: var(--text2); text-align: right; }
.asg-leader { display: flex; justify-content: center; }
.asg-leader input { accent-color: #f59e0b; width: 15px; height: 15px; cursor: pointer; }
.dept-leader { font-size: 11px; color: #b7791f; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asg-tip { font-size: 12px; color: var(--text2); margin: 8px 0 2px; line-height: 1.6; }
@media (max-width: 640px) {
  .asg-row { grid-template-columns: 20px 1fr 1fr 34px; row-gap: 2px; }
  .asg-role, .asg-cur { display: none; }
}

/* 项目大类多选 */
.cat-grid { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 10px; }
.cat-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; padding: 4px 2px; }
.cat-item input { accent-color: var(--brand); width: 15px; height: 15px; }

/* ---------- 项目库：配色预览与选择 ---------- */
.pc-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.pc-swatch.g-teal { background: linear-gradient(135deg, #0b5b4d 0%, #22a98b 55%, #6ce3c1 100%); }
.pc-swatch.g-pink { background: linear-gradient(135deg, #8f0e24 0%, #e2172d 55%, #ff8393 100%); }
.pc-swatch.g-indigo { background: linear-gradient(135deg, #1a2c74 0%, #3f66dd 55%, #86aaff 100%); }
.pc-swatch.g-slate { background: linear-gradient(135deg, #2a2a36 0%, #4f4f68 55%, #9a9bb2 100%); }
.pc-swatch.g-forest { background: linear-gradient(135deg, #0e4c2d 0%, #238f57 55%, #64d894 100%); }
.pc-swatch.g-warm { background: linear-gradient(135deg, #6d4113 0%, #c47f2b 55%, #f2c174 100%); }
.pc-swatch.g-sky { background: linear-gradient(135deg, #0a4a7d 0%, #1e94da 55%, #6bd5f7 100%); }
.pc-swatch.g-lilac { background: linear-gradient(135deg, #47207a 0%, #8c41d9 55%, #c993fc 100%); }
.pc-swatch.g-peach { background: linear-gradient(135deg, #8d2b1d 0%, #ef6a4c 55%, #ffb096 100%); }
.pc-swatch.g-sun { background: linear-gradient(135deg, #7a5305 0%, #d99c0b 55%, #f7d05c 100%); }
.pc-swatch.g-mint { background: linear-gradient(135deg, #0f6b45 0%, #3cba72 55%, #9fe86b 100%); }
.pc-swatch.g-rose { background: linear-gradient(135deg, #8b1f4a 0%, #e2457f 55%, #ff9dba 100%); }
.color-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.color-row .color-chip { width: 100%; }
.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 6px 12px 6px 6px;
  cursor: pointer;
  transition: .16s;
  background: #fff;
}
.color-chip:hover { border-color: #d8d2f2; }
.color-chip input { display: none; }
.color-row .color-chip .pc-swatch { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.color-chip:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(255, 61, 110, .12);
}

/* ---------- 医师头像上传 ---------- */
.avatar-field {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px;
  border: 1px dashed var(--border-2);
  border-radius: 14px;
  background: #fbfaff;
  transition: .16s;
}
.avatar-field.dragging { border-color: var(--brand); background: var(--primary-soft); }
.avatar-preview {
  width: 92px; height: 92px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-preview .pc-swatch { width: 100%; height: 100%; border-radius: 0; font-size: 36px; }
.avatar-side { flex: 1; min-width: 0; }
.avatar-title { font-size: 13px; font-weight: 700; color: var(--secondary); margin-bottom: 8px; }
.avatar-btns { display: flex; align-items: center; gap: 12px; }
.avatar-tip { font-size: 12px; color: var(--text2); line-height: 1.6; margin-top: 8px; }
.avatar-thumb {
  width: 34px; height: 34px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
  background: #fff;
}

/* ---------- 案例库：列表 ---------- */
.case-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.case-tabs button {
  padding: 6px 13px; border-radius: 18px; border: 1px solid var(--border-2);
  background: #fff; font-size: 12.5px; color: #5f5a80; font-family: inherit; font-weight: 500;
  cursor: pointer; transition: .16s;
}
.case-tabs button:hover { border-color: #ffc2d2; color: var(--primary); }
.case-tabs button.on { background: var(--primary-soft); border-color: #ffb3c5; color: var(--primary); font-weight: 700; }
.cs-mini-row { display: flex; gap: 4px; }
.cs-mini {
  width: 34px; height: 44px; border-radius: 8px;
  object-fit: cover; display: block; border: 1px solid var(--border); background: #f5f3fc;
}
span.cs-mini.ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #a8a5c0; border-style: dashed; letter-spacing: 0;
}

/* ---------- 案例库：术前/术后成对上传 ---------- */
.pair-row { display: flex; gap: 12px; margin-top: 8px; }
.pair-slot {
  flex: 1; min-width: 0;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px;
  border: 1px dashed var(--border-2); border-radius: 14px;
  background: #fbfaff; transition: .16s; cursor: pointer;
}
.pair-slot.dragging { border-color: var(--brand); background: var(--primary-soft); }
.pair-thumb {
  width: 86px; height: 115px; flex-shrink: 0;
  border-radius: 12px; overflow: hidden;
  background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.pair-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pair-thumb .ph { font-size: 11.5px; color: #9d99b8; line-height: 1.6; text-align: center; padding: 0 4px; }
.pair-side { flex: 1; min-width: 0; }
.pair-slot-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--secondary); margin-bottom: 9px;
}
.pair-slot-title .slot-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .5px; color: #fff;
  background: #a29dbf; border-radius: 6px; padding: 2px 7px;
}
.pair-slot.after .slot-tag { background: var(--grad-brand); }
.pair-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pair-hint { font-size: 11.5px; color: #9d99b8; line-height: 1.6; margin-top: 8px; }
.pair-tip { font-size: 12px; color: var(--text2); line-height: 1.7; margin-top: 9px; }
.pair-tip b { color: var(--secondary); }

/* =========================================================
   登录页：左右分屏（品牌区 + 表单区）
   ========================================================= */
.login-split { display: block; padding: 0; background: #f6f5fd; }
.login-stage { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 100vh; }

/* ---- 左：品牌区 ---- */
.login-brand {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  padding: 40px 46px 30px; color: #fff;
  background:
    radial-gradient(620px 460px at 8% 0%, rgba(255, 77, 109, .42), transparent 66%),
    radial-gradient(560px 420px at 92% 88%, rgba(139, 92, 246, .48), transparent 68%),
    linear-gradient(152deg, #2b1b5e 0%, #3a2170 38%, #5e2358 74%, #83284f 100%);
}
.lb-orb { position: absolute; border-radius: 50%; filter: blur(38px); opacity: .55; z-index: 0; pointer-events: none; }
.lb-orb-1 { width: 300px; height: 300px; left: -70px; top: -60px; background: #ff6b8a; animation: orbFloat 15s ease-in-out infinite; }
.lb-orb-2 { width: 260px; height: 260px; right: -50px; bottom: 12%; background: #8b5cf6; animation: orbFloat 18s ease-in-out infinite reverse; }
.lb-orb-3 { width: 200px; height: 200px; left: 34%; bottom: -70px; background: #22c3d6; opacity: .38; animation: orbFloat 21s ease-in-out infinite; }
@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -26px, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .lb-orb { animation: none; } }

.lb-top { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }
.lb-mark {
  width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 18px; font-weight: 800; color: #fff;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .30);
  box-shadow: 0 8px 22px rgba(20, 10, 50, .25), 0 1px 0 rgba(255, 255, 255, .3) inset;
  backdrop-filter: blur(6px);
}
.lb-mark-txt { font-size: 15px; font-weight: 700; letter-spacing: .4px; line-height: 1.3; }
.lb-mark-txt span { display: block; font-size: 8.5px; font-weight: 500; letter-spacing: 2.4px; color: rgba(255, 255, 255, .52); margin-top: 3px; }
.lb-badge {
  margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: .5px;
  padding: 5px 12px; border-radius: 20px; color: #ffe3ec;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .24);
  backdrop-filter: blur(6px);
}

.lb-main { position: relative; z-index: 2; margin: auto 0; padding: 48px 0 40px; }
.lb-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 3.4px; color: rgba(255, 255, 255, .58); }
.lb-title { font-size: 40px; line-height: 1.26; font-weight: 800; letter-spacing: -.8px; margin-top: 18px; }
.lb-title em {
  font-style: normal;
  background: linear-gradient(96deg, #ffd166 0%, #ff8a3d 42%, #ff6b9d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lb-desc { margin-top: 18px; font-size: 14px; line-height: 1.85; color: rgba(255, 255, 255, .70); max-width: 360px; }
.lb-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.lb-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 22px; color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(4px); transition: background .18s, transform .18s;
}
.lb-chip:hover { background: rgba(255, 255, 255, .17); transform: translateY(-1px); }
.lb-chip i { font-style: normal; font-size: 12px; color: #ffd166; }
.lb-foot {
  position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 12px;
  padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: 11.5px; color: rgba(255, 255, 255, .42);
}

/* ---- 右：表单区 ---- */
.login-panel {
  display: flex; align-items: center; justify-content: center; padding: 40px 28px;
  background:
    radial-gradient(540px 400px at 82% 8%, rgba(139, 92, 246, .13), transparent 70%),
    radial-gradient(440px 340px at 10% 94%, rgba(255, 77, 109, .11), transparent 72%),
    #f9f8ff;
}
.login-split .login-card {
  width: 100%; max-width: 392px; padding: 32px 30px 28px;
  background: #fff; border: 1px solid #fff; border-radius: 22px;
  box-shadow: 0 26px 64px rgba(83, 63, 160, .15), 0 1px 0 #fff inset;
  backdrop-filter: none;
}
.login-hello { font-size: 23px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }
.login-hello .wave { font-size: 20px; display: inline-block; transform-origin: 70% 70%; }
.login-split .login-logo {
  font-size: 13px; font-weight: 600; text-align: left; margin-top: 8px;
  background: none; -webkit-background-clip: initial; background-clip: initial;
  color: var(--text2); letter-spacing: .2px;
}
.login-split .login-sub { text-align: left; margin: 6px 0 22px; }
.login-split .form-row input { padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.login-split .btn-block { padding: 12px; font-size: 15px; font-weight: 700; border-radius: 12px; letter-spacing: 2px; margin-top: 4px; }
.login-split .login-tabs { margin-bottom: 14px; }
.login-split .login-tip { text-align: left; margin-top: 12px; }
.login-split .login-tip a { font-weight: 600; }
.login-split .login-tip.dim { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--border-2); color: #a09cbc; font-size: 11.5px; }

@media (max-width: 560px) {
  .code-row { flex-wrap: wrap; }
  .code-row input { flex: 1 1 100%; }
  .code-row .btn { flex: 1 1 100%; }
}

@media (max-width: 900px) {
  .login-stage { grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
  .login-brand, .login-panel, .login-card { min-width: 0; }
  .login-brand { padding: 24px 22px 26px; }
  .lb-main { padding: 26px 0 0; }
  .lb-title { font-size: 26px; margin-top: 12px; }
  .lb-desc { margin-top: 10px; font-size: 13px; }
  .lb-chips, .lb-foot { display: none; }
  .lb-badge { font-size: 10px; padding: 4px 10px; }
  .login-panel { padding: 22px 18px 36px; align-items: flex-start; }
  .login-split .login-card { max-width: 100%; padding: 26px 22px 24px; box-shadow: 0 16px 40px rgba(83, 63, 160, .12); }
  .login-hello { font-size: 20px; }
}

/* =========================================================
   顾客档案
   ========================================================= */
.cust-cell { display: flex; align-items: center; gap: 10px; }
.cust-av { border-radius: 50%; object-fit: cover; flex-shrink: 0; display: inline-block; }
.cust-av-txt {
  display: inline-grid; place-items: center; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, #ff3d6e, #ff8a3d);
}
.cust-name { font-weight: 700; color: var(--text); line-height: 1.35; }
.cust-sub { font-size: 11.5px; color: var(--text2); margin-top: 2px; }

.cust-hero {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; margin-bottom: 6px; border-radius: 16px;
  background: linear-gradient(120deg, #fdf4f8, #f4f1ff); border: 1px solid #f0ecfb;
}
.cust-hero-name { font-size: 16px; font-weight: 800; color: var(--text); }
.cust-hero-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.cust-hero-sum { margin-left: auto; display: flex; gap: 24px; }
.cust-hero-sum span { display: block; font-size: 11.5px; color: var(--text2); margin-bottom: 3px; }
.cust-hero-sum b { font-size: 15px; color: var(--text); }

.cust-kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-bottom: 4px; }
.cust-kv { display: flex; gap: 10px; font-size: 13px; padding: 8px 12px; background: #faf9ff; border-radius: 10px; }
.cust-kv span { color: var(--text2); flex-shrink: 0; width: 56px; }
.cust-kv b { font-weight: 600; color: var(--text); word-break: break-all; }

@media (max-width: 720px) {
  .cust-hero-sum { margin-left: 0; gap: 18px; }
  .cust-kv-grid { grid-template-columns: 1fr; }
}

/* 顾客档案表单（三列栅格 / 手机号前缀 / 性别单选 / 标签快选） */
.cust-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px 16px; }
.cust-phone { display: flex; align-items: stretch; gap: 0; margin-top: 6px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; }
.cust-phone:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 61, 110, .12); }
.cust-phone-pre {
  display: inline-flex; align-items: center; padding: 0 10px; flex-shrink: 0;
  font-size: 13px; font-weight: 600; color: var(--text2);
  background: #f6f4fc; border-right: 1px solid var(--border);
}
.cust-phone input { flex: 1; min-width: 0; border: none !important; box-shadow: none !important; background: transparent; }
.cust-phone .btn { flex-shrink: 0; margin: 4px; }
.cust-radio { display: flex; gap: 8px; margin-top: 6px; }
.cust-radio button {
  padding: 7px 18px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--border); background: #fff; color: var(--text2); transition: all .15s;
}
.cust-radio button.on {
  border-color: var(--primary); color: var(--primary); background: #fff1f5;
}
.cust-tag-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cust-tag-btn {
  padding: 5px 12px; border-radius: 18px; font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1px dashed #ffb3c6; background: #fff7fa; color: var(--primary); transition: all .15s;
}
.cust-tag-btn:hover { background: #ffeef4; border-style: solid; }

@media (max-width: 860px) {
  .cust-grid3 { grid-template-columns: 1fr; }
}

/* =========================================================
   主营项目 · 项目分类管理弹窗
   ========================================================= */
.mcat-head, .mcat-row {
  display: grid; align-items: center; gap: 10px;
  grid-template-columns: 26px 1fr 78px 96px 92px 48px;
}
.mcat-head {
  font-size: 11.5px; font-weight: 700; color: var(--text2);
  letter-spacing: .3px; padding: 0 4px 8px; border-bottom: 1px solid var(--border-2); margin-bottom: 8px;
}
.mcat-row { padding: 6px 4px; border-radius: 10px; }
.mcat-row:hover { background: #faf9ff; }
.mcat-idx { font-size: 12px; color: var(--text2); text-align: center; }
.mcat-row input, .mcat-row select { margin-top: 0; padding: 8px 10px; font-size: 13px; border-radius: 9px; }
.mcat-row .mcat-sort { text-align: center; }
.mcat-use { font-size: 11.5px; color: var(--text2); text-align: center; }
.mcat-row .link-btn { padding: 4px 0; }

@media (max-width: 720px) {
  .mcat-head { display: none; }
  .mcat-row { grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; background: #faf9ff; margin-bottom: 8px; }
  .mcat-idx { display: none; }
  .mcat-use { text-align: left; }
}

/* =========================================================
   顾客档案 · 多标签详情窗口（参考 CRM 风格）
   ========================================================= */
.modal.cust-win {
  width: min(1080px, 94vw); height: min(760px, 88vh); max-height: 88vh;
  overflow: hidden; display: flex; flex-direction: column;
}
.modal.cust-win > .cust-win-head {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  padding: 16px 22px 12px; border-bottom: 1px solid var(--border);
}
.cust-win-title { font-size: 16px; font-weight: 800; color: var(--text); }
.cust-win-sub { display: inline !important; margin: 0 !important; font-size: 12.5px; }
.cust-win-head .btn { margin-left: 0; }
.cust-win-head #cust-d-close { margin-left: auto; }

.cust-tabs {
  display: flex; gap: 2px; flex-shrink: 0; overflow-x: auto;
  padding: 0 16px; border-bottom: 1px solid var(--border);
  background: #fbfaff; scrollbar-width: none;
}
.cust-tabs::-webkit-scrollbar { display: none; }
.cust-tab {
  position: relative; flex-shrink: 0; cursor: pointer;
  padding: 11px 15px 10px; font-size: 13.5px; font-weight: 600; color: #6b6690;
  transition: color .15s; user-select: none;
}
.cust-tab:hover { color: var(--primary); }
.cust-tab.active { color: var(--primary); }
.cust-tab.active::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--grad-brand);
}

.cust-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 22px; }
.cust-body .cust-hero { margin-bottom: 4px; }

.cust-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cust-filter input { width: auto; min-width: 130px; padding: 8px 10px; font-size: 13px; margin: 0; }
.cust-filter-sep { font-size: 12.5px; color: var(--text2); }
.cust-filter .btn { flex-shrink: 0; }
.cust-sum {
  display: flex; justify-content: flex-end; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: 13px; color: var(--text2);
  background: #faf9ff; border: 1px solid var(--border-2); border-radius: 0 0 12px 12px;
  border-top: none;
}
.cust-sum b { color: var(--text); }
.cust-body .table-wrap { border-radius: 12px 12px 0 0; }
.cust-orders-tb { min-width: 1060px; }
.cust-orders-tb th, .cust-orders-tb td { padding: 9px 10px; font-size: 12.5px; }

/* ---------- 收银开单 ---------- */
.cashier-wrap { display: grid; grid-template-columns: 330px 1fr; gap: 14px; align-items: start; }
.cashier-side, .cashier-main { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.cs-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: #5d5883; margin-bottom: 10px; }
.cs-title::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, #ff3d6e, #ff8a3d); flex: 0 0 auto; }
.cs-sel-info { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, #fff0f4, #fff6ef); border: 1px solid #ffd0de; font-size: 13px; }
.cs-sel-info .cs-av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #ff3d6e, #ff8a3d); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: 0 0 auto; }
.cs-sel-info b { font-size: 14px; }
.cashier-side { position: sticky; top: 74px; }
.cs-proj-row select { flex: 0 1 auto; }
.cs-items-wrap { min-height: 120px; }
.cs-submit { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; background: #fff8f9; border: 1px dashed #ffd0de; border-radius: 12px; padding: 12px 16px; }
.cs-submit .btn-primary { padding: 10px 24px; font-size: 14.5px; }
.cs-submit b { font-size: 16px; }
.so-no { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; color: var(--text2); letter-spacing: .3px; }
.so-amt { color: var(--primary); font-size: 13.5px; }
.cs-cust-list { margin-top: 10px; max-height: 460px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.cs-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color .12s; }
.cs-pick:hover { border-color: var(--primary); }
.cs-pick.on { border-color: var(--primary); background: #fff0f4; }
.cs-pick-name { font-weight: 600; font-size: 13.5px; }
.cs-pick-sub { font-size: 12px; color: var(--text2); }
.cs-proj-row { display: flex; gap: 8px; margin-bottom: 10px; align-items: center; }
.cs-submit .btn-primary { white-space: nowrap; }
.cs-submit { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.cashier-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0; padding: 12px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.cashier-filter .btn { white-space: nowrap; }
.cs-on { border-color: var(--primary) !important; color: var(--primary) !important; }
@media (max-width: 980px) { .cashier-wrap { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
  .modal.cust-win { width: 100%; height: 92vh; }
  .cust-body { padding: 14px 14px 18px; }
  .cust-win-head { flex-wrap: wrap; }
}

/* ===== 收银两页美化 v2（命名空间 cs2-/co-，仅影响收银开单/收银订单） ===== */
.cs2-title { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; color: #5d5883; margin-bottom: 12px; letter-spacing: .2px; }
.cs2-step { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #ff3d6e, #ff8a3d); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: 0 0 auto; box-shadow: 0 3px 8px rgba(255, 61, 110, .28); }
.cs2-tip { margin-top: 10px; padding: 9px 13px; border-radius: 10px; background: #f7f5fd; border: 1px solid #e7e0f5; color: #7a74a0; font-size: 12px; line-height: 1.6; }

/* 左侧顾客列表 */
.cs2-pick { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: all .15s; background: #fff; }
.cs2-pick:hover { border-color: #ffb3c5; transform: translateX(2px); box-shadow: 0 2px 10px rgba(255, 61, 110, .10); }
.cs2-pick.on { border-color: var(--primary); background: linear-gradient(135deg, #fff0f4, #fff6ef); box-shadow: inset 3px 0 0 var(--primary); }
.cs2-av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #ffd3e0, #ffe3d0); color: #d23a67; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: 0 0 auto; transition: .15s; }
.cs2-pick.on .cs2-av { background: linear-gradient(135deg, #ff3d6e, #ff8a3d); color: #fff; }
.cs2-pick-name { font-weight: 600; font-size: 13.5px; }
.cs2-pick-sub { font-size: 12px; color: var(--text2); }

/* 项目清单表 */
.cs2-items table tbody tr { transition: background .12s; }
.cs2-items table tbody tr:hover { background: #fff7f9; }
.cs2-items .ci-qty, .cs2-items .ci-disc { border-radius: 8px; border-color: #eddefa; }
.cs2-items .ci-qty:focus, .cs2-items .ci-disc:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 61, 110, .10); }

/* 底部结算栏 */
.cs2-submit { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; background: linear-gradient(135deg, #fff0f4, #fff6ef); border: 1px solid #ffd6e2; border-radius: 16px; padding: 14px 20px; box-shadow: 0 4px 16px rgba(255, 61, 110, .10); }
.cs2-sum { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cs2-sum-item { display: flex; flex-direction: column; gap: 2px; }
.cs2-sum-item > span { font-size: 12px; color: #9a8fb0; }
.cs2-sum-num { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; color: #3d3560; line-height: 1.1; }
.cs2-sum-item.hot .cs2-sum-num { background: linear-gradient(135deg, #ff3d6e, #ff8a3d); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cs2-sum-sep { width: 1px; height: 34px; background: #ffd6e2; }
.cs2-submit .btn-primary { padding: 11px 26px; font-size: 14.5px; white-space: nowrap; box-shadow: 0 5px 14px rgba(255, 61, 110, .30); border-radius: 12px; }
.cs2-submit .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(255, 61, 110, .36); }

/* 收银订单页：页签 */
.cash-tabs { gap: 8px; margin-bottom: 14px; }
.cash-tabs button { position: relative; padding: 8px 16px; border-radius: 20px; font-size: 13px; box-shadow: 0 1px 5px rgba(90, 60, 120, .06); }
.cash-tabs button .ct-cnt { font-style: normal; display: inline-block; min-width: 19px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: #f1edfa; color: #7a6f9e; font-size: 11.5px; font-weight: 700; line-height: 17px; text-align: center; }
.cash-tabs button.on { background: linear-gradient(135deg, #ff3d6e, #ff8a3d); color: #fff; border-color: transparent; font-weight: 700; box-shadow: 0 4px 12px rgba(255, 61, 110, .30); }
.cash-tabs button.on .ct-cnt { background: rgba(255, 255, 255, .24); color: #fff; }

/* 收银订单页：统计卡带图标 */
.co-st { display: flex; align-items: center; gap: 14px; }
.co-st-ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 23px; flex: 0 0 auto; }
.co-st-ico.rose { background: linear-gradient(135deg, #ffe9ef, #fff1e8); }
.co-st-ico.mint { background: linear-gradient(135deg, #e2f8ef, #eef9e9); }
.co-st-ico.violet { background: linear-gradient(135deg, #efe9fd, #fdeef6); }
.co-st .value { font-size: 22px; }

/* 收银订单页：筛选与表格 */
.cashier-filter { background: linear-gradient(180deg, #fffdf9, #fff7fb); border-radius: 16px; }
.co-order-badge { display: inline-block; padding: 2px 9px; border-radius: 8px; background: #f5f2fb; border: 1px solid #e7e0f5; color: #6a5acd; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; letter-spacing: .3px; }
.co-amt { color: var(--primary); font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.co-note { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text2); font-size: 12px; }
#page-container table tbody tr { transition: background .12s; }
.co-total-chip { margin-left: auto; padding: 6px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--border); color: var(--text2); font-size: 13px; box-shadow: 0 1px 4px rgba(90, 60, 120, .06); white-space: nowrap; }

/* ===== 收银页下拉框美化 ===== */
.cashier-wrap select {
  -webkit-appearance: none; appearance: none;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23ff6a55' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 12px center / 12px;
  border: 1px solid #e6dff4; border-radius: 12px;
  padding: 9px 34px 9px 13px;
  font-size: 13px; color: #4a4468; font-family: inherit; cursor: pointer;
  box-shadow: 0 1px 3px rgba(90, 60, 120, .05);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
  min-height: 38px;
}
.cashier-wrap select:hover { border-color: #ffb3c5; background-color: #fffafb; }
.cashier-wrap select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 61, 110, .10); }
.cashier-wrap select:disabled { background-color: #f6f4fa; color: #b3aecb; cursor: not-allowed; }
.cashier-main select { width: 100%; }
#cash-proj { font-weight: 600; border-color: #ffd0de; background-color: #fff8fa; }
#cash-proj:hover { border-color: var(--primary); }

/* 订单页筛选栏日期选择器统一风格 */
.cashier-filter input[type="date"] {
  border: 1px solid #e6dff4; border-radius: 11px; padding: 7px 10px;
  font-size: 13px; color: #4a4468; font-family: inherit; background: #fff;
  box-shadow: 0 1px 3px rgba(90, 60, 120, .05); min-height: 36px;
  transition: border-color .15s, box-shadow .15s;
}
.cashier-filter input[type="date"]:hover { border-color: #ffb3c5; }
.cashier-filter input[type="date"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 61, 110, .10); }
.cashier-filter input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }

/* ===== 收款结算界面 ===== */
.stl-sec { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: #5d5883; margin: 14px 0 8px; padding-left: 9px; border-left: 3px solid var(--primary); }
.stl-handler { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 12px; background: #faf9fd; }
.stl-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding: 13px 18px; border-radius: 14px; background: linear-gradient(135deg, #fff0f4, #fff6ef); border: 1px solid #ffd6e2; }
.stl-sums { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text2); }
.stl-sums b { color: #4a4468; font-variant-numeric: tabular-nums; }
.stl-sums b[style*="#e11d48"] { color: #e11d48 !important; }
.stl-bottom .btn-primary { white-space: nowrap; }
.modal.wide { width: min(820px, 94vw); }

/* ===== 收银页表单控件统一（修错位 + 美化输入框/搜索框） ===== */
/* 收款信息区两列布局（原来 grid2 只在弹窗生效，页面上没排版导致错位） */
.cashier-wrap .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
@media (max-width: 760px) { .cashier-wrap .grid2 { grid-template-columns: 1fr; } }
.cashier-wrap label {
  display: block; font-size: 12.5px; color: #5f5a80; font-weight: 500; margin: 12px 0 6px;
}
.cashier-wrap input, .cashier-wrap textarea {
  width: 100%; padding: 10px 13px; border: 1px solid #e6dff4; border-radius: 11px;
  font-size: 13.5px; outline: none; background: #fbfaff; color: var(--text); font-family: inherit;
  box-shadow: 0 1px 3px rgba(90, 60, 120, .04);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.cashier-wrap input::placeholder, .cashier-wrap textarea::placeholder { color: #a8a5c0; }
.cashier-wrap input:hover, .cashier-wrap textarea:hover { border-color: #d5c9ee; }
.cashier-wrap input:focus, .cashier-wrap textarea:focus {
  border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(255, 61, 110, .10);
}
.cashier-wrap input[readonly] { background: #f7f5fd; color: var(--primary); font-weight: 600; cursor: default; }
.cashier-wrap input[readonly]:hover, .cashier-wrap input[readonly]:focus { border-color: #e6dff4; box-shadow: none; }
.cashier-wrap textarea { min-height: 62px; line-height: 1.6; resize: vertical; }
.cashier-wrap input[type="number"] { font-variant-numeric: tabular-nums; }
/* 下拉框与输入框统一高度 40px */
.cashier-wrap select { min-height: 40px; padding: 9px 34px 9px 13px; }

/* 项目选择行：下拉占满、按钮固定 */
.cs-proj-row { gap: 10px; margin-bottom: 12px; }
.cs-proj-row select { flex: 1 1 auto; max-width: 480px; }
.cs-proj-row .btn { flex: 0 0 auto; }

/* 项目清单里的数量/折后价小输入框：居中、统一尺寸 */
.cs2-items .ci-qty, .cs2-items .ci-disc {
  width: 78px; padding: 7px 8px !important; text-align: center; font-size: 13px;
  background: #fff; border-radius: 9px;
}
.cs2-items .ci-qty:focus, .cs2-items .ci-disc:focus { background: #fff; }

/* 搜索框：内置放大镜图标 */
input.co-search {
  padding-left: 34px !important;
  background-color: #fbfaff !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23b3aecb' stroke-width='2.4' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-4-4'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: 11px center !important;
  background-size: 15px !important;
}
input.co-search:focus { background-color: #fff !important; }

/* 筛选栏：所有控件统一高度与圆角，不再参差 */
.cashier-filter { row-gap: 8px; }
.cashier-filter .btn { border-radius: 18px; padding: 6px 14px; font-size: 12.5px; box-shadow: 0 1px 4px rgba(90, 60, 120, .06); }
.cashier-filter .link-btn {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 6px 13px; font-size: 12.5px; color: #5f5a80; font-weight: 600;
  box-shadow: 0 1px 4px rgba(90, 60, 120, .06); transition: all .15s;
}
.cashier-filter .link-btn:hover { border-color: #ffb3c5; color: var(--primary); background: #fff8fa; box-shadow: 0 2px 8px rgba(255, 61, 110, .12); }
.cashier-filter .cs-on {
  background: linear-gradient(135deg, #ff3d6e, #ff8a3d) !important;
  border-color: transparent !important; color: #fff !important;
  box-shadow: 0 3px 10px rgba(255, 61, 110, .28) !important;
}
.cashier-filter input[type="date"] { min-height: 36px; padding: 6px 10px; }
.cashier-filter input.co-search { min-height: 36px; padding: 6px 10px 6px 32px !important; font-size: 13px; border-radius: 10px; }
.cust-filter-sep { margin: 0 2px; }

/* ===== 顾客详情 CRM 头部卡 ===== */
.crm-head { display: flex; gap: 14px; padding: 14px 16px; margin: 0 2px 12px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(180deg, #fbfaff, #fff); box-shadow: var(--shadow); }
.crm-av-col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; }
.crm-av { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(160deg, #4f8df7, #2f6ae0); color: #fff; font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(59, 110, 230, .30); }
.crm-edit { border: none; background: #eaf1ff; color: #2f6ae0; font-size: 11.5px; padding: 3px 11px; border-radius: 12px; cursor: pointer; font-family: inherit; font-weight: 600; transition: .15s; }
.crm-edit:hover { background: #d9e6ff; }
.crm-main { flex: 1; min-width: 0; }
.crm-line1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.crm-name { font-size: 16.5px; color: #33305a; }
.crm-no { font-size: 12.5px; color: var(--text2); }
.crm-age { font-size: 12.5px; color: #5f5a80; }
.crm-phone { font-size: 13px; color: #4a4468; font-weight: 600; letter-spacing: .5px; }
.crm-chan { font-size: 12.5px; color: var(--text2); }
.crm-btns { display: flex; gap: 6px; margin-left: 4px; }
.crm-act { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 15px; border: 1px solid #cfe0ff; background: #f3f8ff; color: #2f6ae0; font-size: 12px; cursor: pointer; text-decoration: none; font-family: inherit; font-weight: 600; transition: .15s; }
.crm-act:hover { background: #e3eeff; }
.crm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 18px; margin-top: 11px; font-size: 12.8px; }
.crm-grid > div { display: flex; align-items: center; gap: 5px; min-width: 0; }
.crm-grid span { color: #9a95b8; flex: 0 0 auto; }
.crm-grid b { color: #3d3560; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-tip { font-style: normal; color: #b3aecb; cursor: help; font-size: 11px; }
@media (max-width: 760px) { .crm-grid { grid-template-columns: 1fr 1fr; } }

/* ===== 新增订单 · 选择顾客 弹窗细节 ===== */
.cop-head { display: flex; gap: 8px; align-items: center; }
.cop-head .co-search { min-height: 38px; }
.cop-clear { white-space: nowrap; border-radius: 10px; padding: 7px 13px; font-size: 12.5px; }
.cop-count { margin: 10px 2px 8px; font-size: 12px; color: var(--text2); }
.cop-count b { color: var(--text); }
.cop-count .cop-hit { color: var(--primary); }
.cop-hint { color: #a49ec0; margin-left: 6px; }
.cop-list { max-height: 400px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 2px; }
.cop-list .cs2-pick-main { flex: 1; min-width: 0; }
.cs2-pick-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cs2-pick-no { font-size: 11.5px; font-weight: 500; color: #a49ec0; }
.cop-g { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 8px; line-height: 1.5; }
.cop-g.g-f { color: #e11d6e; background: #fdeef4; }
.cop-g.g-m { color: #1d6ee1; background: #eaf2fd; }
.cop-muted { color: #b8b3cf; }
.cop-blocked { color: #e11d48; background: #fdeef1; border-radius: 8px; padding: 1px 7px; font-size: 11px; font-weight: 600; }
.cop-list mark { background: #fff0b8; color: #8a6d00; border-radius: 3px; padding: 0 1px; }
.cop-empty { text-align: center; padding: 34px 0 30px; color: var(--text2); font-size: 13.5px; line-height: 2; }
.cop-empty span { font-size: 12px; color: #a49ec0; }

/* 新增订单：归属信息锁定样式 */
.fo-lock { font-size: 11px; font-weight: 600; color: #8a7fb0; background: #f1eefb; border-radius: 8px; padding: 1px 7px; margin-left: 2px; white-space: nowrap; }
.modal select:disabled, .modal input[readonly] { background: #f4f2fa !important; color: #6b6590; cursor: not-allowed; opacity: 1; }

/* ===== 美学顾问 · 顾问团队名片墙 ===== */
.bc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 14px; }
.bc-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; cursor: pointer; transition: all .18s; box-shadow: 0 2px 10px rgba(90, 60, 120, .05); }
.bc-card:hover { border-color: #ffb3c5; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255, 61, 110, .13); }
.bc-card.bc-off { opacity: .62; filter: grayscale(.4); }
.bc-head { display: flex; align-items: center; gap: 11px; }
.bc-av { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, #ff3d6e, #ff8a3d); color: #fff; font-size: 19px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bc-name-wrap { flex: 1; min-width: 0; }
.bc-name { font-size: 15px; }
.bc-sub { font-size: 12px; color: var(--text2); margin-top: 2px; }
.bc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 6px; margin-top: 13px; padding-top: 12px; border-top: 1px dashed var(--border); }
.bc-stats div { text-align: center; }
.bc-stats span { display: block; font-size: 11px; color: var(--text2); margin-bottom: 3px; }
.bc-stats b { font-size: 13.5px; }
.bc-tip { margin-top: 11px; text-align: center; font-size: 11.5px; color: #b3aecb; font-weight: 600; }
.bc-card:hover .bc-tip { color: var(--primary); }

/* ===== 接诊管理 ===== */
.rc-check { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: #5f5a80; white-space: nowrap; cursor: pointer; }
.rc-check input { width: auto; }
.rc-wait-chip { font-size: 12px; color: #5f5a80; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 5px 12px; cursor: pointer; white-space: nowrap; transition: all .15s; }
.rc-wait-chip b { color: #e11d48; }
.rc-wait-chip u { color: var(--primary); margin-left: 2px; }
.rc-wait-chip:hover { border-color: #ffb3c5; box-shadow: 0 2px 8px rgba(255, 61, 110, .12); }
.rc-view-btn { width: 30px; height: 30px; border: 1px solid var(--border); background: #fff; border-radius: 8px; cursor: pointer; font-size: 14px; color: #a49ec0; transition: all .15s; }
.rc-view-btn.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 12px; }
.rc-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: 0 2px 8px rgba(90, 60, 120, .05); transition: all .15s; }
.rc-card:hover { border-color: #ffb3c5; box-shadow: 0 6px 18px rgba(255, 61, 110, .12); }
.rc-card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.rc-av { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, #ff3d6e, #ff8a3d); color: #fff; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rc-card-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 3px 0; }
.rc-card-row span { color: var(--text2); }
.rc-card-remark { margin-top: 8px; font-size: 12px; color: var(--text2); background: #faf9fd; border-radius: 8px; padding: 7px 9px; }
.rc-card-btns { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--border); display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== 到店分诊 ===== */
.tri-no { display: inline-block; min-width: 46px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .5px; color: #6b6590; background: #f3f1fa; border-radius: 8px; padding: 3px 7px; }
.tri-no.on { color: #fff; background: linear-gradient(135deg, #ff3d6e, #ff8a3d); box-shadow: 0 2px 7px rgba(255, 61, 110, .25); }

/* ===== 到店登记 · 手机号识别顾客 ===== */
.tri-hit { margin: 10px 0 12px; border: 1px dashed var(--border); background: #faf9fd; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: var(--text2); line-height: 1.7; }
.tri-hit b { color: var(--text); font-size: 13px; }
.tri-hit-sub { display: block; color: #7c76a0; font-size: 12px; }
.tri-hit-note { display: block; color: #a49ec0; font-size: 11.5px; }
.tri-hit.ok { border-style: solid; border-color: #a7e7c6; background: #f1fdf7; }
.tri-hit.ok b { color: #0f8a55; }
.tri-hit.new { border-style: solid; border-color: #cfe0fb; background: #f5f9ff; }
.tri-hit.new b { color: #1d6ee1; }
.tri-hit.bad { border-style: solid; border-color: #ffc9d2; background: #fff6f8; }
.tri-hit.bad b { color: #e11d48; }
.tri-badge-bad { color: #e11d48; background: #ffe4ea; border-radius: 7px; padding: 1px 6px; font-size: 11px; font-weight: 700; margin: 0 2px; }
.tri-name-tip { margin-top: 5px; font-size: 11.5px; color: #0f8a55; font-weight: 600; }

/* 顾问选择器：可选人数提示 */
.tri-sel-cnt { font-size: 11px; font-weight: 600; color: #8a7fb0; background: #f1eefb; border-radius: 7px; padding: 1px 6px; margin-left: 3px; }

/* ===== 待划扣 · 日期筛选 ===== */
.cashier-filter select.dp-mode {
  -webkit-appearance: none; appearance: none;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23ff6a55' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 10px center / 11px;
  border: 1px solid #e6dff4; border-radius: 11px;
  padding: 6px 28px 6px 11px; min-height: 36px;
  font-size: 12.5px; color: #4a4468; font-family: inherit; cursor: pointer;
  box-shadow: 0 1px 3px rgba(90, 60, 120, .05);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.cashier-filter select.dp-mode:hover { border-color: #ffb3c5; background-color: #fffafb; }
.cashier-filter select.dp-mode:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 61, 110, .10); }
.fd-quick { display: flex; align-items: center; gap: 10px; margin: -2px 0 6px; font-size: 12px; color: var(--text2); }
.fd-quick .link-btn { font-size: 12px; border-bottom: 1px dashed #e0d9f0; }
.fd-quick .link-btn:hover { color: var(--primary); border-color: #ffb3c5; }

/* ===== 顾客姓名 · 可点击进入详情 ===== */
.cust-link {
  background: none; border: 0; padding: 0; margin: 0; font: inherit;
  color: #2f6ae0; font-weight: 700; cursor: pointer; text-align: left;
  border-bottom: 1px dashed rgba(47, 106, 224, .45);
  transition: color .15s, border-color .15s;
}
.cust-link:hover { color: var(--primary); border-bottom-color: rgba(255, 61, 110, .55); }
.cust-link:active { opacity: .75; }

/* ============ 客户报备 ============ */
/* 报备表单：手机号优先查询 */
.rf-find { border: 1px solid #e7e3f6; background: linear-gradient(180deg, #faf9ff, #f6f4ff); border-radius: 12px; padding: 10px 12px 12px; margin-bottom: 10px; }
.rf-find-hd { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.rf-find-hd span { font-size: 13px; font-weight: 700; color: var(--text); }
.rf-find-hd i { font-style: normal; font-size: 11.5px; color: #8d87a6; }
.rf-find-row { display: flex; gap: 8px; align-items: center; }
.rf-find-row .rf-phone { flex: 1; margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .5px; height: 40px; }
.rf-find-row .btn { white-space: nowrap; height: 40px; }
.rf-new { display: flex; align-items: center; gap: 12px; border: 1px solid #ffd9c2; background: #fff8f2; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.rf-new-ico { font-size: 22px; }
.rf-new-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rf-new-main b { font-size: 13.5px; color: #b45309; }
.rf-new-main span { font-size: 12px; color: #a1743c; line-height: 1.6; }
.rf-body { padding-top: 2px; }
.rep-hit { margin: 4px 0 14px; border: 1px dashed var(--border); background: #faf9fd; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: var(--text2); line-height: 1.7; }
.rep-hit b { color: var(--text); font-size: 13px; }
.rep-hit.ok { border-style: solid; border-color: #a7e7c6; background: #f1fdf7; }
.rep-hit.ok b { color: #0f8a55; }
.rep-hit.new { border-style: solid; border-color: #cfe0fb; background: #f5f9ff; }
.rep-hit.new b { color: #1d6ee1; }
.rep-hit.bad { border-style: solid; border-color: #ffc9d2; background: #fff6f8; }
.rep-hit.bad b { color: #e11d48; }
.rep-days { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.rep-days.ok { background: #e7fbf2; color: #07835c; }
.rep-days.warn { background: #fff6e3; color: #b7791f; }
.rep-days.off { background: #f3f1fb; color: #6f6c8a; }

/* 到店登记 · 命中客户报备 */
.tri-hit.rep { border-style: solid; border-color: #d8cdfb; background: #f7f4ff; }
.tri-hit.rep b { color: #5b46c9; }
.tri-hit.rep .tri-hit-sub { color: #6f68a3; }
.tri-hit.rep.off { border-color: #e6e3f2; background: #faf9fd; }
.tri-hit.rep.off b { color: #8a86a8; }

/* ============ 站内通知（顶部铃铛 + 通知面板） ============ */
.notice-btn {
  position: relative; width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid var(--border); background: #fff; cursor: pointer;
  font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  transition: .16s; margin-right: 4px;
}
.notice-btn:hover { border-color: #ffc9d2; background: #fff7f9; }
.notice-btn i {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: #e11d48; color: #fff; font-size: 10.5px; font-style: normal;
  font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 2px 6px rgba(225, 29, 72, .35);
}
.nt-list { max-height: 60vh; overflow-y: auto; margin: 4px -4px 0; padding: 0 4px; }
.nt-item { display: flex; gap: 12px; padding: 13px 12px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; }
.nt-item + .nt-item { margin-top: 6px; }
.nt-item:hover { background: #faf9fd; border-color: var(--border); }
.nt-item.unread { background: #fdf6f8; border-color: #fbe1e7; }
.nt-ico { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.nt-ico.rose { background: #ffe9ee; }
.nt-ico.violet { background: #efeafd; }
.nt-main { flex: 1; min-width: 0; }
.nt-title { font-size: 13.5px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.nt-dot { width: 6px; height: 6px; border-radius: 50%; background: #e11d48; display: inline-block; }
.nt-body { font-size: 12.5px; color: var(--text2); line-height: 1.6; margin-top: 3px; word-break: break-all; }
.nt-meta { font-size: 11.5px; color: #a49ec0; margin-top: 5px; }

/* ============ 订单作废 ============ */
.void-box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 14px 16px; border-radius: 12px; background: #faf9fd; border: 1px solid var(--border); margin: 6px 0 16px; }
.void-box > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.void-box span { font-size: 11.5px; color: var(--text2); }
.void-box b { font-size: 13.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amt-void { color: #8a86a8 !important; text-decoration: line-through; text-decoration-color: #c9c4dd; }
.void-info { font-size: 11.5px; color: #9b93bd; margin-top: 4px; padding-left: 8px; border-left: 2px solid #e2ddf3; line-height: 1.6; }
.void-notify { margin: 12px 0 4px; padding: 10px 12px; border-radius: 10px; background: #f7f4ff; border: 1px dashed #d8cdfb; }
.void-ck { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #5b46c9; margin: 0; }
.void-ck input { width: 15px; height: 15px; margin: 0; }
.void-warn { margin: 12px 0 14px; padding: 11px 13px; border-radius: 10px; border: 1px solid #fecdd3; background: #fff1f2; font-size: 12.5px; line-height: 1.75; color: #9f1239; }
.void-warn b { color: #be123c; }
.void-filter { display: inline-flex; gap: 6px; align-items: center; }
tr.tr-void td { background: #fbfafd; }
tr.tr-void td b, tr.tr-void td span { color: #a29cb8; }
tr.tr-void td b.amt-void { color: #8a86a8 !important; }
.void-tag { font-size: 11px; color: #9b93bd; margin-top: 2px; text-decoration: none; white-space: nowrap; }

/* ============ 咨询开单 · 顾客信息头 ============ */
.coh { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 0 2px 14px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(180deg, #f6f9ff, #fff); }
.coh .cust-av { flex: 0 0 auto; border-radius: 50%; }
.coh-main { flex: 1; min-width: 0; }
.coh-l1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.coh-name { font-size: 15.5px; color: var(--text); }
.coh-no { font-size: 12.5px; color: var(--text2); }
.coh-sex { width: 17px; height: 17px; border-radius: 50%; font-size: 11px; line-height: 17px; text-align: center; color: #fff; display: inline-block; }
.coh-sex.m { background: #4f8df7; }
.coh-sex.f { background: #f77ea8; }
.coh-phone { font-size: 13px; color: var(--text); font-weight: 600; letter-spacing: .3px; }
.coh-src { font-size: 11.5px; color: #7c5cd6; background: #f1ecfd; border: 1px solid #e2d8fa; border-radius: 20px; padding: 1px 9px; }
.coh-l2 { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 5px; font-size: 12.5px; color: var(--text); }
.coh-l2 i { font-style: normal; color: var(--text2); margin-right: 2px; }
.coh-more { flex: 0 0 auto; }
.coh-new { background: linear-gradient(180deg, #fffaf3, #fff); border-color: #f3e3c8; }
.coh-new-ico { font-size: 22px; flex: 0 0 auto; }

/* ---- 咨询开单工作台（页签 + 添加按钮行） ---- */
.cof-tabs { display: flex; gap: 2px; border-bottom: 1.5px solid #eceaf6; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.cof-tabs::-webkit-scrollbar { display: none; }
.cof-tab { position: relative; padding: 9px 13px 10px; font-size: 13px; color: var(--text2); cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 4px; user-select: none; }
.cof-tab:hover { color: var(--primary); }
.cof-tab.active { color: var(--primary); font-weight: 700; }
.cof-tab.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1.5px; height: 2.5px; border-radius: 2px; background: var(--primary); }
.cof-ico { font-size: 11px; color: #a8a5c0; font-style: normal; }
.cof-badge { min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: #ff3b5c; color: #fff; font-size: 10px; line-height: 15px; text-align: center; font-weight: 700; font-style: normal; display: none; }
.cof-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.cof-btn { border: 1px solid #d8d4ee; background: #fff; color: var(--primary); border-radius: 9px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s; }
.cof-btn:hover { border-color: var(--primary); background: #f5f2ff; }
.cof-btn.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.cof-btn-tag { display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 7px; background: #ff3b5c; color: #fff; font-size: 10px; font-weight: 700; line-height: 15px; vertical-align: 1px; }
.cof-btn.on .cof-btn-tag { background: rgba(255, 255, 255, .28); }
#cof-main { margin-top: 10px; }
.cof-empty { text-align: center; padding: 34px 0 26px; }
.cof-eico { font-size: 30px; }
.cof-etitle { font-size: 14px; font-weight: 700; color: var(--text); margin-top: 8px; }
.cof-etip { font-size: 12.5px; color: var(--text2); margin-top: 4px; }

/* 图片地址解析失败时避免出现破图 */
img.img-fail, .img-fail { visibility: hidden; }

/* 接诊未完成 → 订单挂账（不进收银订单待结算） */
.cof-hold {
  margin: 4px 0 10px; padding: 10px 12px; border-radius: 10px;
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  font-size: 12.5px; line-height: 1.6;
}
.cof-hold b { color: #c2410c; }
tr.tr-held td { background: #fffbeb; }
tr.tr-held:hover td { background: #fff7e6; }

/* 咨询开单 › 今日已开订单（当天开的单直接显示在当前页） */
.cof-today { margin-top: 10px; border: 1px solid #e7e3f6; border-radius: 12px; background: #faf9ff; overflow: hidden; }
.cof-today-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; cursor: pointer; user-select: none;
}
.cof-today-hd:hover { background: #f4f1ff; }
.cof-today-t { font-size: 12.5px; font-weight: 700; color: var(--text); }
.cof-today-t i { display: inline-block; margin-left: 7px; font-style: normal; font-size: 11.5px; color: var(--text2); font-weight: 400; }
.cof-today-t::after { content: '▾'; margin-left: 7px; font-size: 11px; color: #8d87a6; }
.cof-today.fold .cof-today-t::after { content: '▸'; }
.cof-today-sum { font-size: 12px; color: var(--text2); white-space: nowrap; }
.cof-today-sum b { font-size: 12.5px; }
.cof-today-list { border-top: 1px solid #eeeafc; max-height: 190px; overflow-y: auto; background: #fff; }
.cof-today.fold .cof-today-list { display: none; }
.cof-today-tb .table-wrap { max-height: none; }
.cof-today-tb table th { font-size: 11.5px; padding: 5px 8px; }
.cof-today-tb table td { padding: 5px 8px; }
.cof-today-empty { padding: 14px 12px; font-size: 12.5px; color: var(--text2); text-align: center; }

/* 咨询开单 › 批量开单（一次开多个项目） */
.cb-wrap { margin-bottom: 6px; }
.cb-pickbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid #e7e3f6; border-radius: 12px; padding: 9px 11px; background: #faf9ff; }
.cb-pickbtn { flex: 0 0 auto; }
.cb-pick-tip { font-size: 11.5px; color: #8d87a6; }
.cb-cnt { font-size: 12px; color: #8d87a6; white-space: nowrap; font-weight: 600; }

/* 选择项目弹窗（覆盖在开单窗口之上的二级弹窗） */
.cb-dlg { display: none; position: fixed; inset: 0; z-index: 3200; background: rgba(30, 22, 60, .45); padding: 24px; box-sizing: border-box; }
.cb-dlg.on { display: flex; align-items: center; justify-content: center; }
.cb-dlg-box {
  width: min(620px, 100%); max-height: 86vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; box-shadow: 0 18px 60px rgba(28, 20, 66, .28);
  padding: 16px 16px 12px; box-sizing: border-box;
}
.cb-dlg-hd { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cb-dlg-hd b { font-size: 15px; color: var(--text, #241d45); }
.cb-dlg-sub { font-size: 11.5px; color: var(--text2, #7b7694); }
.cb-dlg-box .cb-q { width: 100%; box-sizing: border-box; margin: 0; }
.cb-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.cb-cat {
  border: 1px solid #e2ddf4; background: #fff; color: #5a5378; border-radius: 12px;
  padding: 2px 11px; font-size: 11.5px; cursor: pointer; font-family: inherit;
}
.cb-cat:hover { border-color: var(--primary); color: var(--primary); }
.cb-cat.on { background: #f0ecff; border-color: var(--primary); color: var(--primary); font-weight: 700; }
.cb-dlg-box .cb-chips { max-height: 46vh; margin-top: 10px; }
.cb-dlg-ft { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #f1eefb; }
.cb-dlg-cnt { flex: 1; font-size: 12.5px; color: #6b6590; font-weight: 600; }
.cb-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 132px; overflow-y: auto; margin-top: 9px; }
.cb-chip {
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid #ded9f2; background: #fff;
  color: #4b4463; border-radius: 14px; padding: 4px 10px; font-size: 12px; cursor: pointer;
  font-family: inherit; transition: all .13s;
}
.cb-chip:hover { border-color: var(--primary); color: var(--primary); }
.cb-chip i { font-style: normal; font-size: 11px; color: #a29cba; }
.cb-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.cb-chip.on i { color: rgba(255, 255, 255, .82); }
.cb-detail { margin-top: 10px; border: 1px solid #e7e3f6; border-radius: 12px; overflow: hidden; }
.cb-dt-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 11px; background: #f4f1ff; font-size: 12.5px; color: #4b4463; }
.cb-dt-hd b { color: var(--primary); font-size: 12.5px; }
.cb-empty { padding: 16px 12px; text-align: center; font-size: 12.5px; color: #8d87a6; }
.cb-tb, .cb-tr { display: grid; grid-template-columns: minmax(0, 1.3fr) 66px 46px 54px 76px 66px 24px; gap: 5px; align-items: center; padding: 6px 10px; }
.cb-th { font-size: 11px; color: #9a93b8; }
.cb-tr { border-top: 1px solid #f1eefb; }
.cb-tr:hover { background: #fbfaff; }
.cb-td { min-width: 0; }
.cb-td input { width: 100%; margin: 0; padding: 5px 6px; font-size: 12px; border-radius: 8px; text-align: right; }
.cb-nm { display: flex; flex-direction: column; line-height: 1.35; }
.cb-nm b { font-size: 12.5px; color: #2f2a45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-nm span { font-size: 10.5px; color: #9a93b8; }
.cb-line { text-align: right; font-size: 12.5px; font-weight: 700; color: var(--primary); padding-right: 2px; }
.cb-del { width: 22px; height: 22px; border: none; border-radius: 7px; background: #fdeef2; color: #e11d48; font-size: 11px; cursor: pointer; font-family: inherit; }
.cb-del:hover { background: #fbdbe4; }

/* 顾客档案 › 资产信息 */
.asset-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 4px;
}
@media (max-width: 900px) { .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.asset-card {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 13px; border-radius: 12px; background: #fff;
  border: 1px solid var(--border, #eceaf6); box-shadow: 0 1px 2px rgba(28, 20, 66, .04);
}
.asset-ico {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  background: #f4f1ff;
}
.asset-ico.violet { background: #f1edff; }
.asset-ico.mint { background: #e8f8f1; }
.asset-ico.rose { background: #fdeef2; }
.asset-ico.amber { background: #fff5e6; }
.asset-label { font-size: 12px; color: var(--text2, #7b7694); }
.asset-value {
  font-size: 19px; font-weight: 800; letter-spacing: -.2px; margin-top: 3px;
  font-variant-numeric: tabular-nums; color: var(--text, #241d45);
}
.asset-unit { font-size: 12px; font-weight: 600; color: var(--text2, #7b7694); }
.asset-sub { font-size: 11.5px; color: var(--text2, #7b7694); margin-top: 3px; line-height: 1.5; }
.asset-cnt {
  display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px;
  border-radius: 9px; background: #f0edfb; color: #6b5bd2;
  font-size: 11.5px; font-weight: 700; text-align: center; vertical-align: middle;
}

/* ===== 到店登记（截图版：检索 + 顾客卡 + 8 页签） ===== */
.tf-search { margin: 2px 0 8px; position: relative; }
.tf-search input { width: 100%; padding-left: 34px; background: #f5f7fa; border-color: #e3e8f0; }
.tf-search::before { content: '🔍'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; opacity: .55; }
.tf-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; margin-bottom: 10px; }
.tf-av { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex: none; }
.tf-cinfo { min-width: 0; }
.tf-cname { font-size: 13.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tf-cphone { color: var(--text2); font-size: 12.5px; }
.tf-gender { color: #2f88ff; font-weight: 700; }
.tf-csub { font-size: 12px; color: var(--text2); margin-top: 3px; }
.tf-namerow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tf-namerow label { flex: none; font-size: 12.5px; color: var(--text2); }
.tf-namerow input { flex: 1; }
.tf-tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--line); margin: 4px 0 12px; overflow-x: auto; }
.tf-tab { border: 0; background: none; padding: 7px 13px; font-size: 13px; color: var(--text2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tf-tab.on { color: var(--primary); font-weight: 700; border-bottom-color: var(--primary); }
.tf-vtype-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; }
.tf-req { color: var(--primary); font-weight: 700; }
.tf-vt { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 14px; font-size: 12.5px; cursor: pointer; color: var(--text); }
.tf-vt.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.tf-fi { margin-left: auto; font-size: 12.5px; color: var(--text2); }
.modal .grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 16px; }
.tf-remark-row { margin-top: 8px; }
.tf-remark-row label { display: block; font-size: 12.5px; color: var(--text2); margin-bottom: 4px; }
.tf-remark-row textarea { width: 100%; }
.tf-empty { padding: 26px 0; text-align: center; color: var(--text2); font-size: 13px; }
.tf-empty-ico { display: block; font-size: 26px; margin-bottom: 6px; }
.tf-pane-title { font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.tf-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tf-table th, .tf-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tf-table th { color: var(--text2); font-weight: 600; font-size: 12px; background: #f8fafc; }
.tf-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.tf-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 2px; border-bottom: 1px dashed var(--line); font-size: 12.8px; }
.tf-row > span { color: var(--text2); flex: none; }
.tf-row > b { font-weight: 600; text-align: right; word-break: break-all; }
.tf-guess { font-size: 12px; color: var(--text2); background: #f5f8ff; border: 1px dashed #d8e2f5; border-radius: 8px; padding: 6px 10px; margin: -4px 0 10px; line-height: 1.5; }
.tf-guess b { color: var(--primary); }

/* ===== 接诊管理：三步流程（开始接诊 → 咨询开单 → 完成接诊） ===== */
.rc-flowbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #f7f9fc; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
.rc-flowbar-t { font-size: 12.5px; color: var(--text2); }
.rc-flowbar-t b { color: var(--text); font-weight: 700; }
.rc-fb { font-size: 12px; color: var(--text2); background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 2px 10px; }
.rc-fb b { color: var(--primary); margin-left: 2px; }
.rc-flow { display: flex; align-items: center; gap: 3px; margin-top: 5px; flex-wrap: wrap; }
.rc-flow i { font-style: normal; color: #c8ccd6; font-size: 10px; }
.rc-step { font-size: 11px; line-height: 1.5; padding: 1px 6px; border-radius: 6px; background: #f1f3f7; color: #8a90a0; white-space: nowrap; }
.rc-step.ok { background: #e8f7ee; color: #0f9d58; }
.rc-step.cur { background: #fff3e8; color: #c2410c; font-weight: 700; box-shadow: inset 0 0 0 1px #fed7aa; }
.rc-card-flow { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border); }
.rc-card-flow .rc-flow { margin-top: 0; }

/* ===== 顾客档案 › 照片管理 ===== */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ph-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.ph-imgbox { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #f1f3f7; cursor: zoom-in; }
.ph-imgbox img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-meta { padding: 8px 10px 9px; display: flex; flex-direction: column; gap: 4px; }
.ph-name { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-phone { font-weight: 400; color: var(--text2); font-size: 11.5px; margin-left: 5px; }
.ph-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ph-date { font-size: 11.5px; color: var(--text2); }
.ph-remark { font-size: 11.5px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-foot { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; border-top: 1px dashed var(--line); padding-top: 5px; margin-top: 2px; }
.ph-viewbox { max-height: 66vh; overflow: auto; border-radius: 10px; background: #f1f3f7; text-align: center; }
.ph-viewbox img { max-width: 100%; max-height: 66vh; object-fit: contain; }
.ph-view-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; font-size: 12.5px; }
.ph-hit { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.ph-hit-on { font-size: 13px; background: var(--primary-soft); border: 1px solid #ffb3c5; border-radius: 8px; padding: 6px 10px; font-weight: 600; }
.ph-hit-item { text-align: left; background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; cursor: pointer; }
.ph-hit-item:hover { border-color: #ffb3c5; color: var(--primary); }

/* ===== 美学顾问 › 业绩查询 › 业绩明细 ===== */
.pq-dsum { display: flex; flex-wrap: wrap; gap: 8px 18px; background: #f7f9fc; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: 12.5px; color: var(--text2); }
.pq-dsum b { color: var(--text); font-weight: 700; margin-left: 2px; }
.pq-dsum b.green { color: var(--green); }
.pq-dwrap { max-height: 62vh; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.pq-dtb { width: 100%; border-collapse: collapse; font-size: 12.5px; white-space: nowrap; }
.pq-dtb th, .pq-dtb td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.pq-dtb th { position: sticky; top: 0; background: #f8fafc; color: var(--text2); font-weight: 600; font-size: 12px; z-index: 1; }
.pq-dtb tbody tr:hover { background: #fff8fa; }
.pq-dsumrow { background: #f8f8fa; font-weight: 600; }
.pq-dsumrow:hover { background: #f8f8fa; }
.pq-trend:hover .bar-name { color: var(--primary); }

/* ===== 系统管理 › 提成设置 ===== */
.cm-tier-head, .cm-tier { display: grid; grid-template-columns: 1fr 1fr 132px 100px 46px; gap: 8px; align-items: center; }
.cm-tier-head { font-size: 11.5px; color: var(--text2); padding: 0 2px 6px; }
.cm-tier { margin-bottom: 8px; }
.cm-tier input, .cm-tier select { margin: 0; }
.cm-tier .link-btn { justify-self: start; font-size: 12px; }
.cm-chip { display: inline-block; background: #f4f1fb; color: #5b4b8a; border-radius: 6px; padding: 1px 7px; margin: 0 4px 3px 0; font-size: 11.5px; white-space: nowrap; }
@media (max-width: 640px) {
  .cm-tier-head { display: none; }
  .cm-tier { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .cm-tier .link-btn { grid-column: span 2; }
}
.cm-section { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px 6px; margin-top: 10px; background: #fcfcfe; }
.cm-section-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cm-section-title .label-tip { font-weight: 400; }
.cm-kind { display: inline-block; font-size: 11px; line-height: 1.5; padding: 0 6px; border-radius: 5px; background: #eef2ff; color: #4c51bf; font-weight: 700; }
.cm-kind.team { background: #fff7ed; color: #b45309; }
.cm-amt { color: var(--primary); font-weight: 700; }
