/* ===== 恒泉山泉水 PC 管理后台 — 冰川蓝 · 玻璃质感 ===== */
/* 阿里巴巴普惠体 3.0（本地字体文件，免费商用授权） */
@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("../fonts/puhuti-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("../fonts/puhuti-medium.woff2") format("woff2");
  font-weight: 500 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("../fonts/puhuti-bold.woff2") format("woff2");
  font-weight: 700 900; font-style: normal; font-display: swap;
}

/* Figtree（可变字体 wght 300-900，SIL OFL 免费商用）— 数字/英文专用，圆润清晰；中文自动回退普惠体 */
@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-Variable.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

:root {
  --c-primary: #0ea5e9;
  --c-primary-deep: #0369a1;
  --c-cyan: #22d3ee;
  --c-green: #10b981;
  --c-ink: #0f172a;
  --c-text: #334155;
  --c-text-2: #64748b;
  --c-line: rgba(148, 163, 184, .28);
  --c-bg: #e8f8f4;
  --glass: rgba(255, 255, 255, .68);
  --glass-strong: rgba(255, 255, 255, .86);
  --shadow: 0 8px 32px rgba(2, 62, 108, .10);
  --radius: 14px;

  /* ===== 玻璃质感设计令牌（高级版） ===== */
  /* 分层透明度：侧边栏最透、卡片次之、弹窗最实 */
  --glass-1: rgba(255, 255, 255, .42);
  --glass-2: rgba(255, 255, 255, .55);
  --glass-3: rgba(255, 255, 255, .78);
  --glass-line: rgba(255, 255, 255, .55);
  /* 模糊 + 饱和度三档 */
  --blur-nav: blur(24px) saturate(1.6);
  --blur-card: blur(18px) saturate(1.45);
  --blur-modal: blur(28px) saturate(1.7);
  /* 数字/数据字体：Figtree 优先（自带可变字体，任何电脑显示一致清晰；中文回退所选界面字体） */
  --num-font: "Figtree", var(--app-font, "Alibaba PuHuiTi"), "Bahnschrift", "DIN Alternate", "Segoe UI", system-ui, sans-serif;
  /* 三级投影：贴地 / 浮起 / 悬停 */
  --shadow-flat: 0 2px 8px rgba(8, 56, 100, .05);
  --shadow-card: 0 10px 34px -8px rgba(8, 56, 100, .16), 0 2px 8px rgba(8, 56, 100, .05);
  --shadow-lift: 0 18px 48px -10px rgba(8, 56, 100, .25), 0 4px 12px rgba(8, 56, 100, .07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* 表单控件默认不继承页面字体，强制继承普惠体（输入框/下拉/文本域/按钮全站统一） */
input, select, textarea, button { font-family: inherit; }
html, body { height: 100%; }
body {
  /* 界体字体可由「系统设置」切换（--app-font 由 sysSettings.js 注入） */
  font-family: var(--app-font, "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif);
  /* 湖光青玻璃底：淡青底色 + 白色光晕（固定不随滚动）；底色可由「系统设置」切换 */
  background-color: var(--app-bg, #e8f8f4);
  background-image:
    radial-gradient(1100px 700px at 88% -8%, rgba(255, 255, 255, .92), transparent 62%),
    radial-gradient(900px 620px at -6% 18%, rgba(255, 255, 255, .78), transparent 60%),
    radial-gradient(820px 560px at 108% 64%, rgba(240, 252, 248, .85), transparent 58%),
    radial-gradient(700px 520px at 10% 106%, rgba(236, 250, 245, .8), transparent 55%),
    radial-gradient(520px 380px at 55% 44%, rgba(228, 246, 240, .5), transparent 70%),
    linear-gradient(165deg, #f2fdfa 0%, #e7f7f2 48%, #ecf9f5 100%);
  background-attachment: fixed;
  color: var(--c-text);
  font-size: 14px;
}
#app { height: 100%; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, .35); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ===== 登录页（左侧白色视窗 + 右侧竖幅实景图 + 图上透明玻璃登录框） ===== */
.login-split {
  position: relative; display: flex; height: 100%; overflow: hidden;
  background: #fff;
}

/* 左侧白色视窗：像窗户一样可横向拖动（3D 高端升级：柔光晕 + 精细点阵 + 立体压边） */
.login-window {
  position: relative; z-index: 1;
  flex: 0 0 72%; min-width: 300px;
  overflow: hidden;
  background: #fff;
  box-shadow: 14px 0 44px -18px rgba(2, 22, 40, .22);
  transition: flex-basis .4s cubic-bezier(.22, 1, .36, 1);
}
/* 视窗 3D 舞台底：雪山镜湖实景照片虚化打底 + 白色柔纱 + 护眼柔绿/天蓝/淡金光晕 */
.login-window::before {
  content: ''; position: absolute; inset: -24px; pointer-events: none;
  background:
    radial-gradient(560px 400px at 12% 8%, rgba(52, 165, 131, .10), transparent 68%),
    radial-gradient(480px 380px at 88% 16%, rgba(56, 189, 248, .09), transparent 66%),
    radial-gradient(520px 440px at 22% 96%, rgba(201, 162, 90, .07), transparent 66%),
    radial-gradient(640px 520px at 78% 88%, rgba(94, 234, 212, .06), transparent 68%),
    linear-gradient(90deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .62) 55%, rgba(255, 255, 255, .74) 100%),
    url('../img/login-mountain.jpg') center / cover no-repeat;
  filter: blur(6px) saturate(1.05);
}
/* 右缘立体压边：一道冷色渐变内阴影，增强"窗框"进深 */
.login-window::after {
  content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 26px; pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 22, 40, 0), rgba(2, 22, 40, .05));
}
.login-split.dragging .login-window { transition: none; }

/* 白色视窗内的天泉品牌 logo（铺满视窗） */
.login-brand {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  user-select: none; pointer-events: none;
  padding: 40px 44px 56px;
}
/* logo 脚下柔影椭圆：标志悬浮于视窗之上的立体感 */
.login-brand::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 32%; height: 6%;
  transform: translate(-50%, 205%);
  background: radial-gradient(closest-side, rgba(8, 56, 100, .15), transparent);
  filter: blur(7px);
}
/* 3D 入场（翻转浮现）+ 持续悬浮微摆 */
.login-brand img {
  width: 50%; height: 50%;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(8, 56, 100, .18));
  animation: brandIn 1s cubic-bezier(.22, 1, .36, 1) both, brandFloat 7s 1s ease-in-out infinite;
}
@keyframes brandIn {
  from { opacity: 0; transform: perspective(900px) rotateY(-38deg) translateY(30px) scale(.9); }
  to   { opacity: 1; transform: perspective(900px) rotateY(0deg) translateY(0) scale(1); }
}
@keyframes brandFloat {
  0%, 100% { transform: perspective(900px) translateY(0) rotateX(0deg) rotateY(0deg); }
  30%      { transform: perspective(900px) translateY(-12px) rotateX(2deg) rotateY(-2deg); }
  65%      { transform: perspective(900px) translateY(6px) rotateX(-1.5deg) rotateY(1.5deg); }
}
.login-hint {
  position: absolute; bottom: 26px; left: 0; right: 0; text-align: center;
  font-size: 12px; color: #9ca3af; letter-spacing: 1px; transition: opacity .5s;
}

/* 拖动手柄（视窗右缘） */
.login-divider {
  flex: 0 0 18px; position: relative; z-index: 3;
  cursor: col-resize; touch-action: none; user-select: none;
  display: flex; align-items: center; justify-content: center;
}
.login-divider .grip {
  width: 11px; height: 68px; border-radius: 6px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow: 0 4px 16px -2px rgba(2, 22, 40, .32);
  display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  transition: box-shadow .2s, transform .2s;
}
.login-divider .grip i { width: 4px; height: 4px; border-radius: 50%; background: rgba(2, 62, 108, .42); }
.login-divider:hover .grip { box-shadow: 0 6px 20px -2px rgba(2, 22, 40, .42); }
.login-split.dragging .login-divider .grip { transform: scaleX(1.35); }
.login-split.dragging, .login-split.dragging * { cursor: col-resize !important; }

/* 右侧图片区：竖幅实景图 + 漂浮光晕 + 透明玻璃登录框悬浮其上 */
.login-photo {
  flex: 1 1 auto; position: relative; z-index: 1; min-width: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  perspective: 1600px;
  background:
    radial-gradient(1000px 680px at 50% 50%, rgba(6, 42, 68, .22), transparent 72%),
    url('../img/login-waterfall.jpg') center / cover no-repeat;
}
/* 极光色罩：青绿/天蓝流光叠加在实景上缓慢呼吸（3D 氛围层） */
.login-aurora {
  position: absolute; inset: -12%; z-index: 0; pointer-events: none;
  mix-blend-mode: screen; filter: blur(56px); opacity: .6;
  background:
    radial-gradient(46% 40% at 20% 22%, rgba(45, 212, 191, .34), transparent 70%),
    radial-gradient(42% 36% at 82% 30%, rgba(56, 150, 255, .26), transparent 70%),
    radial-gradient(46% 42% at 64% 86%, rgba(94, 234, 212, .24), transparent 72%);
  animation: auroraDrift 22s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  from { transform: translate(0, 0) scale(1) rotate(0deg); }
  to   { transform: translate(4%, -3%) scale(1.12) rotate(2deg); }
}
/* 体积光束：自左上斜洒的柔白光柱，缓慢摆动 */
.login-beam {
  position: absolute; top: -34%; left: -16%; width: 58%; height: 175%; z-index: 0;
  pointer-events: none; filter: blur(8px);
  background: linear-gradient(112deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .07) 46%, transparent 68%);
  transform-origin: top left;
  animation: beamSway 16s ease-in-out infinite alternate;
}
@keyframes beamSway {
  from { transform: rotate(13deg); opacity: .55; }
  to   { transform: rotate(20deg); opacity: .95; }
}
.login-photo::before,
.login-photo::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: .5; z-index: 0;
}
.login-photo::before {
  width: 420px; height: 420px; top: -100px; right: -40px;
  background: radial-gradient(circle, rgba(56, 189, 248, .30), transparent 70%);
  animation: loginFloat 14s ease-in-out infinite;
}
.login-photo::after {
  width: 360px; height: 360px; bottom: -80px; right: 8%;
  background: radial-gradient(circle, rgba(34, 211, 238, .18), transparent 70%);
  animation: loginFloat 18s ease-in-out infinite reverse;
}
@keyframes loginFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -25px) scale(1.08); }
}
/* 3D 气泡群：自底部升起的玻璃气泡（近大远小 · 近清晰远朦胧） */
.login-bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.login-bubbles i {
  position: absolute; bottom: -12%; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .5), rgba(255, 255, 255, .05) 34%, rgba(125, 211, 252, .08) 58%, rgba(30, 90, 150, .12) 88%);
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: inset -6px -10px 18px rgba(255, 255, 255, .08), inset 5px 7px 14px rgba(255, 255, 255, .16), 0 18px 40px rgba(1, 12, 24, .25);
  animation: bubbleRise var(--bd, 14s) linear var(--bdel, 0s) infinite;
}
@keyframes bubbleRise {
  0%   { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  8%   { opacity: var(--bo, .8); }
  50%  { transform: translate3d(22px, -58vh, 0) scale(1); }
  92%  { opacity: 0; }
  100% { transform: translate3d(-14px, -116vh, 0) scale(1.15); opacity: 0; }
}
/* 视窗与图片交界处雾化：柔白雾带缓慢飘动 */
.login-fog {
  position: absolute; top: -12%; bottom: -12%; left: -5%; width: 38%;
  pointer-events: none; filter: blur(26px); z-index: 1;
  background:
    radial-gradient(58% 44% at 26% 24%, rgba(255, 255, 255, .92), transparent 72%),
    radial-gradient(50% 52% at 72% 58%, rgba(255, 255, 255, .88), transparent 72%),
    radial-gradient(64% 40% at 44% 80%, rgba(255, 255, 255, .85), transparent 74%),
    linear-gradient(90deg, rgba(255, 255, 255, .70) 0%, rgba(255, 255, 255, .28) 55%, rgba(255, 255, 255, 0) 100%);
  animation: fogDrift 18s ease-in-out infinite;
}
@keyframes fogDrift {
  0%, 100% { transform: translateX(0) scale(1); }
  50% { transform: translateX(26px) scale(1.05); }
}

/* 透明玻璃登录框（3D 高端升级：层深玻璃 + 鼠标倾斜跟随由 JS 驱动） */
.login-card {
  position: relative; z-index: 2;
  width: 420px; padding: 48px 44px 36px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .07) 100%);
  backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: 0 24px 64px rgba(2, 22, 40, .38), inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 -1px 0 rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .34);
  text-align: center;
  transform-style: preserve-3d;
  transition: transform .18s ease-out;
  animation: cardIn .7s cubic-bezier(.22, 1, .36, 1);
}
/* 卡片顶缘高光线：高端玻璃质感 */
.login-card::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1.5px;
  border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
}
/* 3D 层深：卡片内容抬升，倾斜时产生立体视差 */
.login-card > * { transform: translateZ(26px); }
@keyframes cardIn {
  from { opacity: 0; transform: perspective(1600px) translateY(34px) rotateX(9deg) scale(.96); }
  to   { opacity: 1; transform: perspective(1600px) translateY(0) rotateX(0) scale(1); }
}
.login-logo {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px) saturate(1.3); -webkit-backdrop-filter: blur(6px) saturate(1.3);
  border: 1.5px solid rgba(255, 255, 255, .6);
  box-shadow: 0 8px 24px rgba(2, 22, 40, .3), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.login-logo svg { width: 44px; height: 44px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.login-title {
  font-size: 22px; font-weight: 700; letter-spacing: 2px; margin-bottom: 8px;
  color: #111827;
}
.login-subtitle {
  font-size: 13px; font-weight: 500; letter-spacing: 6px;
  color: rgba(255, 255, 255, .75); margin-bottom: 28px;
  text-indent: 6px;
}
.login-field { margin-bottom: 18px; }
.login-field label {
  display: block; font-size: 12.5px; color: rgba(255, 255, 255, .82);
  letter-spacing: .5px; text-align: left; margin-bottom: 7px;
}
.login-field input {
  width: 100%; height: 46px; padding: 0 16px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .13);
  color: #fff; font-size: 14.5px; outline: none;
  transition: border .25s, box-shadow .25s, background .25s;
}
.login-field input::placeholder { color: rgba(255, 255, 255, .55); }
.login-field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(17, 62, 98, .92) inset;
  -webkit-text-fill-color: #fff; caret-color: #fff;
  transition: background-color 99999s ease-in-out 0s;
}
.login-field input:focus {
  border-color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .2);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, .28);
}
.login-btn {
  position: relative; overflow: hidden;
  width: 100%; height: 45px !important; margin-top: 8px; font-size: 15.5px; letter-spacing: 6px;
  border: 1px solid rgba(255, 255, 255, .42); border-radius: 12px; cursor: pointer;
  color: #fff; font-weight: 700;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 8px 26px rgba(2, 22, 40, .22), inset 0 1px 0 rgba(255, 255, 255, .34);
  transition: transform .2s, box-shadow .25s, background .25s, border-color .25s;
}
/* 悬停光泽扫过 */
.login-btn::after {
  content: ''; position: absolute; top: 0; left: -90%; width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-22deg); pointer-events: none;
  transition: left .6s ease;
}
.login-btn:hover::after { left: 140%; }
.login-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .26); border-color: rgba(255, 255, 255, .6);
  box-shadow: 0 12px 34px rgba(2, 22, 40, .3), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.login-btn:active { transform: translateY(0); }
.login-btn:disabled { opacity: .65; cursor: wait; }
.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 46px; }
.pwd-eye {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: none; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .8); border-radius: 8px; transition: color .15s, background .15s;
}
.pwd-eye:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.pwd-eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-remember { display: flex; justify-content: space-between; align-items: center; margin: -6px 0 10px; }
.remember-label {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px;
  color: rgba(255, 255, 255, .82); cursor: pointer; user-select: none;
}
/* 勾选框：白色透明底 + 黑色勾选符号 */
.remember-label input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; margin: 0; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 4px;
  background: rgba(255, 255, 255, .18);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.remember-label input[type="checkbox"]:hover { border-color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .28); }
.remember-label input[type="checkbox"]:checked {
  background: rgba(255, 255, 255, .38);
  border-color: rgba(255, 255, 255, .9);
}
.remember-label input[type="checkbox"]:checked::after {
  content: '';
  width: 8px; height: 4.5px;
  border-left: 2px solid #111; border-bottom: 2px solid #111;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

/* 系统"减少动态"偏好：登录页环境动效全部静默为静态帧（内容不受影响） */
@media (prefers-reduced-motion: reduce) {
  .login-brand img, .login-aurora, .login-beam, .login-fog,
  .login-photo::before, .login-photo::after,
  .login-bubbles i, .login-card, .login-btn::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* 窄屏：隐藏白色视窗与手柄，图片全屏 + 居中玻璃框 */
@media (max-width: 760px) {
  .login-window, .login-divider { display: none; }
}

/* ===== 主框架 ===== */
.shell { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: 216px; flex-shrink: 0; display: flex; flex-direction: column;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .50) 0%,
    rgba(240, 249, 255, .36) 42%,
    rgba(214, 238, 252, .42) 100%);
  backdrop-filter: var(--blur-nav); -webkit-backdrop-filter: var(--blur-nav);
  border-right: 1px solid rgba(255, 255, 255, .62);
  box-shadow:
    1px 0 0 rgba(148, 184, 214, .14),
    6px 0 44px -12px rgba(8, 56, 100, .16);
}
.nav { flex: 1; overflow-y: auto; padding: 14px 10px 10px; }
.nav-group { font-size: 11px; color: rgba(100, 116, 139, .7); padding: 14px 8px 6px; letter-spacing: 1px; }
.nav-group:first-child { padding-top: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-bottom: 2px;
  border: 1px solid transparent; border-radius: 10px; color: var(--c-text); text-decoration: none; font-size: 13.5px;
  transition: background .15s, color .15s, border-color .15s;
}
.nav-item:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .5));
  border-color: rgba(255, 255, 255, .88);
  color: var(--c-ink);
  box-shadow: 0 3px 12px -4px rgba(8, 56, 100, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .62));
  border-color: rgba(255, 255, 255, .95);
  color: var(--c-ink); font-weight: 600;
  box-shadow:
    0 4px 16px -4px rgba(8, 56, 100, .18),
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 3px 0 0 rgba(15, 23, 42, .82);
  backdrop-filter: var(--blur-card); -webkit-backdrop-filter: var(--blur-card);
}
.nav-ico { width: 18px; height: 18px; display: inline-flex; }
.nav-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* ===== 顶部退出登录（方案E：细环图标 + 发丝分割线） ===== */
.sidebar-head {
  position: relative; flex-shrink: 0; padding: 14px 12px 12px;
}
.sidebar-head::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 116, 139, .17) 16%, rgba(100, 116, 139, .17) 84%, transparent);
}
.logout-top {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 6px 8px; border: none; border-radius: 10px;
  background: none; color: var(--c-text); font-size: 13px; font-weight: 500; font-family: inherit;
  cursor: pointer;
  transition: background .22s cubic-bezier(.4, 0, .2, 1), color .22s cubic-bezier(.4, 0, .2, 1);
}
.logout-top:hover { background: rgba(255, 255, 255, .5); color: #dc2626; }
.logout-top .lg-ico {
  width: 29px; height: 29px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(100, 116, 139, .22); background: rgba(255, 255, 255, .45);
  color: #94a3b8;
  transition: all .26s cubic-bezier(.4, 0, .2, 1);
}
.logout-top:hover .lg-ico {
  border-color: rgba(239, 68, 68, .38); color: #dc2626; background: rgba(255, 255, 255, .92);
  transform: rotate(-10deg);
}
.logout-top .lg-ico svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.logout-top .lg-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.logout-top .lg-sub { font-size: 10px; font-weight: 400; color: #94a3b8; letter-spacing: .18em; margin-top: 1px; transition: color .22s; }
.logout-top:hover .lg-sub { color: #f87171; }

/* ===== 侧边栏折叠/宽度 ===== */
.sidebar { position: relative; transition: width .22s cubic-bezier(.4, 0, .2, 1); }
.shell.collapsed .sidebar { width: 62px; }
.shell.collapsed .nav { padding: 12px 9px 8px; }
.shell.collapsed .nav-group { display: none; }
.shell.collapsed .nav-item { justify-content: center; padding: 9px 0; gap: 0; }
.shell.collapsed .nav-item > span:not(.nav-ico) { display: none; }
.shell.collapsed .sidebar-head { padding: 14px 0 12px; }
.shell.collapsed .sidebar-head::after { left: 12px; right: 12px; }
.shell.collapsed .logout-top { width: 42px; margin: 0 auto; padding: 4px 0; justify-content: center; gap: 0; border-radius: 11px; }
.shell.collapsed .logout-top .lg-txt { display: none; }

/* ===== 侧边栏宽度调整：右缘画布式调整柄 ===== */
.side-resizer {
  position: absolute; top: 50%; right: -6px; transform: translateY(-50%);
  width: 13px; height: 56px; z-index: 60; touch-action: none; cursor: col-resize;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.side-resizer::before {
  content: ''; position: absolute; inset: 8px 3px; border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(222, 240, 252, .7));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 2px 10px -2px rgba(8, 56, 100, .18), inset 0 1px 0 rgba(255, 255, 255, .95);
  backdrop-filter: var(--blur-card); -webkit-backdrop-filter: var(--blur-card);
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
}
.side-resizer .grip-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(90, 128, 162, .55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9);
  transition: background .2s; z-index: 1;
}
.side-resizer:hover .grip-dot, .shell.side-dragging .side-resizer .grip-dot { background: #2d7fb8; }
.side-resizer:hover::before, .shell.side-dragging .side-resizer::before {
  background: linear-gradient(135deg, #eaf7ff, #bfe4f8);
  border-color: rgba(146, 203, 240, .95);
  box-shadow: 0 4px 16px -2px rgba(45, 127, 184, .38), 0 0 0 3px rgba(147, 206, 242, .18), inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: scaleX(1.18);
}
.shell.side-dragging .sidebar { transition: none; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.content { flex: 1; overflow-y: auto; padding: 20px 22px 40px; }
/* 修改密码页：右侧内容区水平 + 垂直居中 */
.cp-page {
  max-width: 560px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 16px; justify-content: center;
  min-height: calc(100% - 1px);
}
.cp-page .card { margin: 0; }

/* ===== 通用卡片 / 布局 ===== */
.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .62) 0%, rgba(233, 244, 238, .48) 100%);
  backdrop-filter: var(--blur-card); -webkit-backdrop-filter: var(--blur-card);
  border: 1px solid rgba(255, 255, 255, .68); border-radius: 16px;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, .88);
  padding: 18px; margin-bottom: 16px;
}
.card-title { font-size: 14.5px; font-weight: 700; color: var(--c-ink); margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; letter-spacing: .2px; }
/* 点击/键盘聚焦卡片：银色边框线（替换浏览器默认蓝色轮廓，全站统一） */
.card:focus, .card:focus-within, .dash-stat:focus, .dash-stat:focus-within {
  outline: none; border-color: #cbd5e1;
  box-shadow: var(--shadow-card), 0 0 0 3px rgba(148, 163, 184, .2);
}
:root { --focus-ring: 0 0 0 2px rgba(148, 163, 184, .55); }
button:focus-visible, .chip:focus-visible, .th-filter:focus-visible, [tabindex]:focus-visible {
  outline: none; border-radius: 8px;
  box-shadow: var(--focus-ring);
}
.chart-grid .card-title, #stBody > .card > .card-title { justify-content: flex-start; gap: 10px; }
.chart-grid .card-title::before, #stBody > .card > .card-title::before {
  content: ''; flex: none; width: 4px; height: 15px; border-radius: 3px;
  background: linear-gradient(180deg, #f8fafc, #cbd5e1);
  box-shadow: 0 2px 6px rgba(100, 116, 139, .3);
}
.chart-grid .card { transition: transform .25s ease, box-shadow .25s ease; }
.chart-grid .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(8, 56, 100, .22), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* ===== 统计卡片 ===== */
.stat-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, .7) 0%, rgba(229, 242, 234, .5) 100%);
  backdrop-filter: var(--blur-card); -webkit-backdrop-filter: var(--blur-card);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 16px;
  padding: 16px 18px; position: relative; overflow: hidden;
  box-shadow:
    0 10px 34px -10px rgba(36, 84, 62, .16),
    0 2px 6px rgba(36, 84, 62, .05),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  transition: transform .22s cubic-bezier(.22, .9, .34, 1.2), box-shadow .22s, border-color .22s;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-lift), 0 0 0 3px rgba(148, 163, 184, .18), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.stat-card:focus, .stat-card:focus-within {
  outline: none; border-color: #cbd5e1;
  box-shadow: var(--shadow-card), 0 0 0 3px rgba(148, 163, 184, .2);
}
.stat-card::after {
  content: ''; position: absolute; left: -32%; top: -150%; width: 56%; height: 180%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .34), transparent);
  transform: rotate(24deg); pointer-events: none;
}
.stat-label { font-size: 12px; color: var(--c-text-2); letter-spacing: .3px; }
.stat-value {
  font-family: var(--num-font); font-size: 28px; font-weight: 700; color: var(--c-ink);
  margin-top: 4px; line-height: 1.1; letter-spacing: .5px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}
.stat-value small { font-size: 12px; font-weight: 400; color: var(--c-text-2); margin-left: 3px; }
.stat-sub { font-size: 11px; color: var(--c-text-2); margin-top: 4px; }

/* ===== 统计五联竖排看板（一排五块 · 淡彩玻璃 · 标签左数字右对齐） ===== */
.vp-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.vp-panel {
  position: relative; display: flex; flex-direction: column;
  background: rgba(253, 255, 253, .86);
  border: 1px solid rgba(197, 211, 202, .45);
  border-radius: 14px; padding: 15px 16px 13px;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px -24px rgba(36, 84, 62, .3);
}
.vp-panel::before {
  content: ''; position: absolute; top: 0; left: 16px; right: 16px; height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--vp-ac, #c5ccd4), rgba(255, 255, 255, 0) 96%);
}
.vp-plain  { --vp-ac: #c5ccd4; --vp-tint: #eff4ef; --vp-icc: #5c6e63; }

.vp-head { display: flex; align-items: center; gap: 10px; padding: 1px 0 11px; border-bottom: 1px solid #ecf1ec; }
.vp-ic {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--vp-tint, #eff4ef); color: var(--vp-icc, #5c6e63);
}
.vp-ic svg { width: 18px; height: 18px; }
.vp-ttw { min-width: 0; }
.vp-tt { font-size: 13.5px; font-weight: 700; color: var(--c-ink); letter-spacing: .4px; white-space: nowrap; }
.vp-tag {
  margin-left: auto; flex: none;
  font-size: 10px; font-weight: 600; letter-spacing: .6px;
  color: var(--vp-icc, #5c6e63);
  background: var(--vp-tint, #eff4ef);
  border-radius: 999px; padding: 3px 9px;
}

.vp-list { flex: 1; display: flex; flex-direction: column; padding-top: 2px; }
.vp-item {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  min-height: 42px; padding: 5px 2px;
  border-bottom: 1px dashed #ebf1eb;
}
.vp-item:last-child { border-bottom: none; }
.vp-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.vp-k { font-size: 12px; color: var(--c-text-2); letter-spacing: .2px; white-space: nowrap; }
.vp-v {
  font-family: var(--num-font); font-size: 15.5px; font-weight: 700;
  color: var(--c-ink); font-variant-numeric: tabular-nums; letter-spacing: .2px; white-space: nowrap;
}
.vp-v em, .vp-foot b em { font-style: normal; font-size: 10px; font-weight: 500; color: #94a3b8; margin-left: 2px; }
.vp-spec { font-size: 10px; color: #9aa8b5; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vp-foot {
  margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: var(--vp-tint, #eff4ef); border-radius: 9px; padding: 8px 12px;
}
.vp-foot span { font-size: 10.5px; color: var(--c-text-2); letter-spacing: .2px; white-space: nowrap; }
.vp-foot b {
  font-family: var(--num-font); font-size: 13px; font-weight: 700;
  color: var(--c-ink); font-variant-numeric: tabular-nums; white-space: nowrap;
}

@media (max-width: 1150px) { .vp-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; } }
@media (max-width: 850px) { .vp-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .vp-row { grid-template-columns: 1fr; } }

/* ===== 出库物品汇总面板（三来源合计 · 全宽） ===== */
.st-sum-body { display: grid; grid-template-columns: 1fr 1fr 236px; gap: 16px; margin-top: 12px; align-items: start; }
.st-sum-col { min-width: 0; }
.st-sum-tt {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--c-ink); letter-spacing: .4px;
  margin-bottom: 8px;
}
.st-sum-tt::before { content: ''; width: 5px; height: 12px; border-radius: 2px; background: var(--vp-ac, #c5ccd4); flex: none; }
.st-sum-table { width: 100%; border-collapse: collapse; }
.st-sum-table th {
  font-size: 10.5px; font-weight: 500; color: var(--c-text-2); letter-spacing: .3px;
  padding: 4px 6px; border-bottom: 1px solid #e8eef4; white-space: nowrap;
}
.st-sum-table td {
  font-size: 12px; color: var(--c-ink); padding: 6px;
  border-bottom: 1px dashed #edf2f6; white-space: nowrap;
}
.st-sum-table td.num, .st-sum-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.st-sum-table td b { font-weight: 700; }
.st-sum-empty {
  font-size: 11px; color: #9aa8b5; padding: 14px 4px;
  background: #f7fafc; border-radius: 8px; text-align: center;
}
.st-sum-side { display: flex; flex-direction: column; gap: 8px; }
.st-sum-kpi {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--vp-tint, #f3f5f7); border-radius: 10px; padding: 9px 13px;
}
.st-sum-kpi span { font-size: 11px; color: var(--c-text-2); white-space: nowrap; }
.st-sum-kpi b {
  font-family: var(--num-font); font-size: 15px; font-weight: 700;
  color: var(--c-ink); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.st-sum-kpi b em { font-style: normal; font-size: 10px; font-weight: 500; color: #94a3b8; margin-left: 2px; }
.st-sum-kpi.main { flex-direction: column; align-items: flex-start; gap: 3px; padding: 11px 13px; }
.st-sum-kpi.main b { font-size: 20px; color: var(--vp-icc, #5b6675); }
.st-sum-kpi.main b.st-sum-red { color: #dc2626; }
.st-sum-kpi.main i { font-style: normal; font-size: 10px; color: #94a3b8; }
@media (max-width: 1150px) { .st-sum-body { grid-template-columns: 1fr 1fr; } .st-sum-side { grid-column: 1 / -1; flex-direction: row; } .st-sum-kpi.main { flex: 1.4; } }
@media (max-width: 850px) { .st-sum-body { grid-template-columns: 1fr; } .st-sum-side { flex-direction: column; } }

/* ===== 数据分类 tabs（常驻筛选卡：小程序销售 / 生产仓库直出 / 配送中心直出） ===== */
.sec-tabs { margin-top: 16px; }
.sec-tab-bar {
  display: flex; gap: 4px; align-items: center; flex-wrap: wrap;
  background: rgba(236, 241, 246, .75);
  border-radius: 10px; padding: 4px; margin-top: 12px;
}
.sec-tab {
  border: none; cursor: pointer;
  font: 500 13px/1 var(--font-family, inherit); color: var(--c-text-2, #64748b);
  background: transparent; border-radius: 8px;
  padding: 9px 20px; letter-spacing: .5px;
  transition: color .15s, background .15s;
}
.sec-tab:hover { color: var(--c-ink, #0f172a); background: rgba(255, 255, 255, .8); }
.sec-tab.on {
  color: var(--c-ink, #0f172a);
  background: #fff;
  font-weight: 600;
}
.sec-tab-pane { display: none; }
.sec-tab-pane.on { display: block; }
.stat-card.compact { padding: 12px 14px; border-radius: 12px; }
.stat-card.compact .stat-label { font-size: 11px; }
.stat-card.compact .stat-value { font-size: 20px; margin-top: 3px; }
.stat-card.compact .stat-sub { font-size: 10px; margin-top: 3px; line-height: 1.4; }

/* ===== 按钮（简洁大气 · 扁平干净） ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 18px; border-radius: 8px; font-size: 13px; font-weight: 500;
  cursor: pointer; border: 1px solid transparent; user-select: none; white-space: nowrap;
  letter-spacing: .3px;
  transition: background .16s, border-color .16s, color .16s, box-shadow .16s;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
/* 主按钮：白底灰字 */
.btn.primary { background: #fff; border-color: #d1d5db; color: #6b7280; font-weight: 600; }
.btn.primary:hover:not(:disabled) { background: #f9fafb; border-color: #9ca3af; color: #374151; box-shadow: none; }
.btn.primary:active:not(:disabled) { background: #f3f4f6; box-shadow: none; }
/* 次按钮：白底灰描边灰字 */
.btn.ghost { background: #fff; border-color: #d1d5db; color: #6b7280; }
.btn.ghost:hover:not(:disabled) { border-color: #9ca3af; color: #374151; background: #f9fafb; }
.btn.ghost:active:not(:disabled) { background: #f3f4f6; }
/* 危险按钮：白底红描边，悬停实心红 */
.btn.danger { background: #fff; border-color: #fca5a5; color: #dc2626; }
.btn.danger:hover:not(:disabled) { background: #dc2626; border-color: #dc2626; color: #fff; }
/* 文字按钮 */
.btn.link { background: none; border: none; color: #6b7280; height: auto; padding: 3px 7px; border-radius: 6px; transition: background .15s, color .15s; }
.btn.link:hover { background: #f3f4f6; color: #374151; }
.btn.link.red { color: #dc2626; }
.btn.link.red:hover { background: #fef2f2; }
/* 尺寸 */
.btn.sm { height: 28px; padding: 0 12px; font-size: 12px; border-radius: 7px; letter-spacing: .2px; }
.btn.mini { height: 24px; padding: 0 9px; font-size: 11.5px; border-radius: 6px; letter-spacing: 0; }

/* ===== 表单 ===== */
.hq-field { margin-bottom: 13px; }
.hq-field > label { display: block; font-size: 12.5px; color: var(--c-text-2); margin-bottom: 5px; }
.hq-input {
  width: 100%; height: 36px; padding: 0 11px; border-radius: 10px; font-size: 13.5px;
  border: 1px solid rgba(148, 184, 214, .3); background: rgba(255, 255, 255, .78); outline: none;
  transition: border .15s, box-shadow .15s, background .15s; color: var(--c-text);
  box-shadow: inset 0 1px 2px rgba(148, 184, 214, .1);
}
textarea.hq-input { height: auto; padding: 8px 11px; resize: vertical; }
.hq-input:focus {
  border-color: #cbd5e1; background: rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 3px rgba(148, 163, 184, .25), inset 0 1px 2px rgba(148, 184, 214, .06);
}
.hq-input[type="date"] {
  font-weight: 600; color: var(--c-ink); font-size: 13.5px;
  font-family: var(--num-font);
  font-variant-numeric: tabular-nums; letter-spacing: .3px;
  color-scheme: light;
  background: #fff;
  border-color: #d1d5db;
  box-shadow: none;
}
.hq-input[type="date"]:hover { border-color: #9ca3af; }
.hq-input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: .55; filter: none;
}
.hq-input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
/* 下拉框：去掉原生箭头，自定义垂直居中倒三角（全站统一） */
select.hq-input, .ord-plain select.hq-input {
  appearance: none; -webkit-appearance: none;
  padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.4 1.8 6 6.2 10.6 1.8' fill='none' stroke='%2364748b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
select.hq-input::-ms-expand { display: none; }
.hq-hint { font-size: 11px; color: var(--c-text-2); margin-top: 3px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.filter-bar .hq-field { margin-bottom: 0; min-width: 130px; }
.filter-bar .hq-field > label { font-size: 11.5px; }
.inline-select, .inline-input {
  height: 32px; border-radius: 9px; border: 1px solid rgba(148, 184, 214, .3);
  background: rgba(255, 255, 255, .78); padding: 0 9px; font-size: 12.5px; outline: none; color: var(--c-text);
  box-shadow: inset 0 1px 2px rgba(148, 184, 214, .1);
  transition: border .15s, box-shadow .15s;
}
.inline-select:focus, .inline-input:focus { border-color: #cbd5e1; box-shadow: 0 0 0 3px rgba(148, 163, 184, .22); }

/* ===== 表格（标准方正网格：直角边框、浅灰表头、全网格线，简洁清晰） ===== */
.hq-table-wrap {
  overflow-x: auto; border-radius: 0;
  border: 1px solid #cbd5dd;
  background: #fff; box-shadow: none;
}
/* v-lock：表格区自身纵向滚动，配合 th 的 sticky 实现标题行吸顶锁定 */
.hq-table-wrap.v-lock { overflow: auto; max-height: calc(100vh - 230px); }
.hq-table {
  width: 100%; border-collapse: collapse; font-size: 12.8px;
  background: #fff; color: #1f2937;
  font-family: var(--num-font); font-variant-numeric: tabular-nums;
}
.hq-table th {
  background: #eef2f6; color: #111827; font-weight: 700; text-align: center; padding: 9px 10px; white-space: nowrap;
  border-bottom: 1px solid #cbd5dd; border-right: 1px solid #cbd5dd;
  position: sticky; top: 0; z-index: 1;
}
.hq-table td { padding: 8px 10px; border-bottom: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb; color: #1f2937; vertical-align: middle; text-align: center; }
.hq-table td.nw { white-space: nowrap; }
/* 单行表格（流水表）：数据行一律不换行，行高统一；超宽由外层横向滚动承接 */
.hq-table.oneline td { white-space: nowrap; }
.hq-table th:last-child, .hq-table td:last-child { border-right: none; }
.hq-table tbody tr { transition: background .15s; }
.hq-table tbody tr:hover { background: #f5f6f7; }
.hq-table tbody tr:last-child td { border-bottom: none; }
.hq-table .num { text-align: center; font-variant-numeric: tabular-nums; color: #111827; font-weight: 600; }
/* 表头与数据行内容一律居中 */
.hq-table th.num, .hq-table th .num, .hq-table thead th { text-align: center; }
.hq-table .ops { white-space: nowrap; }
/* fixed 布局：列宽按表头设定严格分配，表头与数据行完全对齐；长内容自动换行不撑列 */
.hq-table.fixed { table-layout: fixed; }
.hq-table.fixed td { word-break: break-word; overflow-wrap: anywhere; }
/* 拆列后的单元格行：统一行高保证名称/规格/数量三列逐行对齐；不换行，超长省略号 */
.hq-cell-line {
  line-height: 22px; min-height: 22px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hq-cell-line + .hq-cell-line { border-top: 1px dashed #e5e7eb; }
/* 紧凑表格（订单列表）：更矮的行高与更小的行内按钮 */
.hq-table.compact th { padding: 7px 8px; }
.hq-table.compact td { padding: 4px 8px; }
.hq-table.compact .hq-cell-line { line-height: 19px; min-height: 19px; }
.hq-table.compact .badge { padding: 1px 8px; font-size: 11px; }
.hq-table.compact .op-group { flex-wrap: nowrap; }
.hq-table.compact .op-group .btn { height: 24px; padding: 0 9px; font-size: 12px; border-radius: 7px; }

/* ===== 订单列表行状态色（四色区分，按状态置顶排序展示；网格线统一灰色，状态靠文字/徽标/左标体现） =====
   待接单=红字白底（红色行文字 + 实心红底白字徽标 + 红色左标，置顶醒目）
   已接单=墨绿字白底 / 配送中=浅蓝字白底 / 已完成=黑字白底（黑徽标黑左标）
   已取消：客户取消=卡其字白底、管理员取消=藕紫字白底 */
.hq-table tbody tr.row-pending td { background: #fff; color: #dc2626; }
.hq-table tbody tr.row-pending:hover td { background: #fef2f2; }
.hq-table tbody tr.row-pending .num,
.hq-table tbody tr.row-pending .money,
.hq-table tbody tr.row-pending .money-in { color: #dc2626; }
.hq-table tbody tr.row-pending .money-out,
.hq-table tbody tr.row-pending .mute { color: #f87171; }
.hq-table tbody tr.row-pending .hq-cell-line + .hq-cell-line { border-top-color: #fecaca; }
.hq-table tbody tr.row-pending .badge { background: #dc2626; color: #fff; border-color: #dc2626; font-weight: 600; }
.hq-table tbody tr.row-pending td:first-child { box-shadow: inset 3px 0 0 #dc2626; }
/* 已接单：墨绿字白底（实心墨绿徽标 + 墨绿左标） */
.hq-table tbody tr.row-accepted td { background: #fff; color: #4d7358; }
.hq-table tbody tr.row-accepted:hover td { background: #f1f6f3; }
.hq-table tbody tr.row-accepted .num,
.hq-table tbody tr.row-accepted .money,
.hq-table tbody tr.row-accepted .money-in { color: #4d7358; }
.hq-table tbody tr.row-accepted .money-out,
.hq-table tbody tr.row-accepted .mute { color: #7a9b87; }
.hq-table tbody tr.row-accepted .hq-cell-line + .hq-cell-line { border-top-color: #c6d5cb; }
.hq-table tbody tr.row-accepted .badge { background: #4d7358; color: #fff; border-color: #4d7358; font-weight: 600; }
.hq-table tbody tr.row-accepted td:first-child { box-shadow: inset 3px 0 0 #4d7358; }
.hq-table tbody tr.row-delivering td { background: #fff; color: #0369a1; }
.hq-table tbody tr.row-delivering:hover td { background: #f0f7fe; }
.hq-table tbody tr.row-delivering .num,
.hq-table tbody tr.row-delivering .money,
.hq-table tbody tr.row-delivering .money-in { color: #0369a1; }
.hq-table tbody tr.row-delivering .money-out,
.hq-table tbody tr.row-delivering .mute { color: #3899d5; }
.hq-table tbody tr.row-delivering .hq-cell-line + .hq-cell-line { border-top-color: #bae0f7; }
.hq-table tbody tr.row-delivering .badge { background: #0369a1; color: #fff; border-color: #0369a1; font-weight: 600; }
.hq-table tbody tr.row-delivering td:first-child { box-shadow: inset 3px 0 0 #0369a1; }
/* 已完成：黑字白底（黑徽标黑左标） */
.hq-table tbody tr.row-completed td { background: #fff; }
.hq-table tbody tr.row-completed:hover td { background: #f9fafb; }
.hq-table tbody tr.row-completed .badge { background: #111827; color: #fff; border-color: #111827; font-weight: 600; }
.hq-table tbody tr.row-completed td:first-child { box-shadow: inset 3px 0 0 #111827; }
/* 已取消·客户取消：卡其字白底（延续黄=取消直觉） */
.hq-table tbody tr.row-cancelled-user td { background: #fff; color: #8a7a45; }
.hq-table tbody tr.row-cancelled-user:hover td { background: #f7f5ec; }
.hq-table tbody tr.row-cancelled-user .num,
.hq-table tbody tr.row-cancelled-user .money,
.hq-table tbody tr.row-cancelled-user .money-in { color: #8a7a45; }
.hq-table tbody tr.row-cancelled-user .money-out,
.hq-table tbody tr.row-cancelled-user .mute { color: #b0a173; }
.hq-table tbody tr.row-cancelled-user .hq-cell-line + .hq-cell-line { border-top-color: #ddd3b1; }
.hq-table tbody tr.row-cancelled-user .badge { background: #8a7a45; color: #fff; border-color: #8a7a45; font-weight: 600; }
.hq-table tbody tr.row-cancelled-user td:first-child { box-shadow: inset 3px 0 0 #8a7a45; }
/* 已取消·管理员取消：藕紫字白底（醒目标记管理员干预） */
.hq-table tbody tr.row-cancelled-admin td { background: #fff; color: #7d6b91; }
.hq-table tbody tr.row-cancelled-admin:hover td { background: #f5f2f9; }
.hq-table tbody tr.row-cancelled-admin .num,
.hq-table tbody tr.row-cancelled-admin .money,
.hq-table tbody tr.row-cancelled-admin .money-in { color: #7d6b91; }
.hq-table tbody tr.row-cancelled-admin .money-out,
.hq-table tbody tr.row-cancelled-admin .mute { color: #a495b8; }
.hq-table tbody tr.row-cancelled-admin .hq-cell-line + .hq-cell-line { border-top-color: #d5cde2; }
.hq-table tbody tr.row-cancelled-admin .badge { background: #7d6b91; color: #fff; border-color: #7d6b91; font-weight: 600; }
.hq-table tbody tr.row-cancelled-admin td:first-child { box-shadow: inset 3px 0 0 #7d6b91; }

/* ===== 表头列筛选（漏斗）与表尾合计行（订单列表） ===== */
.th-filter {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 5px; width: 17px; height: 17px; border-radius: 5px;
  color: #9ca3af; font-size: 11px; line-height: 1; cursor: pointer;
  transition: background .15s, color .15s; vertical-align: middle; user-select: none;
}
.th-filter:hover { background: #f3f4f6; color: #111827; }
.th-filter.on { color: #111827; font-weight: 700; }
.hq-sum-row td {
  position: sticky; bottom: 0; z-index: 2;
  background: #fff; color: #111827; font-weight: 700;
  border-top: 2px solid #111827; border-bottom: none; padding: 7px 8px;
}
.hq-sum-row td.mute, .hq-sum-row .mute { color: #9ca3af; }
/* 采购汇总明细表：分类分组标题行 */
.pur-cat-row td {
  background: rgba(14, 165, 233, .07);
  color: var(--c-ink); font-weight: 700; font-size: 13px;
  border-top: 1px solid var(--c-line); letter-spacing: .5px;
}
.pur-cat-row td .mute { margin-left: 6px; }
/* ===== 采购通用：行删除「−」圆钮 / 主操作实心按钮 / 作废按钮 ===== */
.row-del {
  width: 26px; height: 26px; padding: 0; border-radius: 50%;
  border: 1px solid #e2a9a9; background: #fff; color: #c0504d;
  font-size: 16px; line-height: 1; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.row-del:hover { background: #fef2f2; border-color: #dc2626; color: #dc2626; }
.row-del:active { transform: scale(.92); }
.btn.warn { background: #fff; border-color: #f3c1c1; color: #c0504d; }
.btn.warn:hover:not(:disabled) { background: #fef2f2; border-color: #dc2626; color: #b91c1c; }
.btn.solid {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  border-color: #0284c7; color: #fff; font-weight: 600;
  box-shadow: 0 2px 10px rgba(2, 132, 199, .28);
}
.btn.solid:hover:not(:disabled) { background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%); border-color: #0369a1; color: #fff; box-shadow: 0 4px 14px rgba(2, 132, 199, .34); }
.btn.solid:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 2px 8px rgba(2, 132, 199, .26); }
.btn.mini.solid { box-shadow: 0 1px 6px rgba(2, 132, 199, .24); }
.hq-modal-foot .btn { min-width: 96px; padding: 0 16px; }
/* ===== 采购入库单填写弹窗 ===== */
.pur-edit-head {
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(14, 165, 233, .06); border: 1px solid rgba(14, 165, 233, .16);
}
.peh-item { font-size: 12.5px; color: var(--c-text-2); }
.peh-item b { color: var(--c-ink); margin-left: 6px; font-weight: 600; letter-spacing: .3px; }
.pur-reject-tip {
  margin-top: 10px; padding: 8px 12px; border-radius: 8px; font-size: 12.5px;
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
}
.pur-edit-table .hq-input { height: 30px; padding: 0 8px; font-size: 12.5px; border-radius: 7px; text-align: center; }
.pur-edit-table th { text-align: center; }
.pur-edit-table td { padding: 5px 6px; vertical-align: middle; }
.pur-edit-table td:first-child { text-align: center; }
.pur-edit-table .w-unit { text-align: center; }
.pur-edit-table .w-num { text-align: center; font-variant-numeric: tabular-nums; }
.pur-edit-table td:last-child { text-align: center; }
.col-filter-pop {
  position: fixed; z-index: 3000; width: 240px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  box-shadow: 0 10px 32px rgba(17, 24, 39, .14);
  display: flex; flex-direction: column; overflow: hidden;
}
.col-filter-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-bottom: 1px solid #f3f4f6;
  font-size: 12.5px; font-weight: 600; color: #111827;
}
.col-filter-clear {
  border: none; background: none; color: #6b7280; font-size: 12px; cursor: pointer; padding: 2px 4px;
}
.col-filter-clear:hover { color: #111827; }
.col-filter-list { max-height: 240px; overflow-y: auto; padding: 6px 4px; overscroll-behavior: contain; }
.col-filter-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px; border-radius: 7px; cursor: pointer; font-size: 12.5px; color: #1f2937;
}
.col-filter-item:hover { background: #f5f6f7; }
.col-filter-item input { accent-color: #111827; width: 14px; height: 14px; flex: none; }
.col-filter-item .cfv { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-filter-item .cfn { color: #9ca3af; font-size: 11px; flex: none; font-variant-numeric: tabular-nums; }
.col-filter-empty { padding: 18px 0; text-align: center; color: #9ca3af; font-size: 12px; }
.col-filter-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 8px 12px; border-top: 1px solid #f3f4f6; background: #fafafa;
}

/* ===== 徽标 / 标签（黑白灰：警示=黑描边，告急=黑底白字，常规=浅灰底，失效=虚线灰） ===== */
.badge { display: inline-block; padding: 2px 9px; border-radius: 4px; font-size: 11.5px; line-height: 1.5; white-space: nowrap; }
.badge.warn { background: #fff; color: #111827; border: 1px solid #111827; }
.badge.info { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.badge.ok, .badge.success { background: #f3f4f6; color: #111827; border: 1px solid #d1d5db; }
.badge.mute { background: #fff; color: #9ca3af; border: 1px dashed #d1d5db; }
.badge.red, .badge.danger { background: #111827; color: #fff; border: 1px solid #111827; }

/* ===== 采购单据状态列纯文字（黑色，替代徽标） ===== */
.st-black { color: #111827; font-weight: 600; }

/* ===== Tabs ===== */
.hq-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.hq-tab {
  padding: 7px 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .65); cursor: pointer;
  background: rgba(255, 255, 255, .52); color: var(--c-text-2); font-size: 13px; transition: all .18s;
  backdrop-filter: var(--blur-card); -webkit-backdrop-filter: var(--blur-card);
}
.hq-tab:hover { color: var(--c-ink); border-color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .72); }
.hq-tab.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .66));
  color: var(--c-ink); border-color: rgba(255, 255, 255, .95); font-weight: 600;
  box-shadow: 0 4px 14px -4px rgba(8, 56, 100, .2), inset 0 1px 0 rgba(255, 255, 255, .96);
}

/* ===== 分页 ===== */
.hq-pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.hq-page-info { font-size: 12px; color: var(--c-text-2); }
.hq-page-btns { display: flex; gap: 5px; align-items: center; }
.hq-page-btn {
  min-width: 30px; height: 30px; border-radius: 9px; border: 1px solid #d1d5db;
  background: #fff; cursor: pointer; font-size: 12.5px; color: #374151;
  transition: all .15s;
}
.hq-page-btn:hover:not(.dis) { border-color: #9ca3af; color: #374151; background: #f9fafb; }
.hq-page-btn.cur {
  background: #f3f4f6; color: #374151; border-color: #9ca3af; font-weight: 600;
  box-shadow: none;
}
.hq-page-btn.dis { opacity: .4; cursor: default; }
.hq-page-dots { color: var(--c-text-2); padding: 0 2px; }

/* ===== 弹窗 / 遮罩（景深虚化） ===== */
.hq-mask {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(165deg, rgba(7, 34, 56, .42), rgba(8, 48, 76, .5));
  backdrop-filter: blur(10px) saturate(1.15); -webkit-backdrop-filter: blur(10px) saturate(1.15);
}
.hq-modal, .hq-dialog {
  /* 弹窗玻璃底：白色玻璃 + 跟随「系统设置」背景色调的浅染（--modal-bg-2 由 sysSettings.js 注入） */
  background: linear-gradient(160deg, var(--modal-bg-1, rgba(255, 255, 255, .88)) 0%, var(--modal-bg-2, rgba(236, 250, 246, .82)) 100%);
  backdrop-filter: var(--blur-modal); -webkit-backdrop-filter: var(--blur-modal);
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, .85);
  overflow: hidden;
  box-shadow:
    0 32px 80px -16px rgba(2, 30, 56, .48),
    0 4px 16px rgba(2, 30, 56, .14),
    inset 0 1px 0 rgba(255, 255, 255, .96);
  max-height: 88vh; display: flex; flex-direction: column;
}
.hq-modal { width: min(680px, 92vw); max-width: 94vw; }
.hq-dialog { width: min(420px, 90vw); padding: 22px; }
.hq-dialog-title { font-size: 15px; font-weight: 700; color: var(--c-ink); margin-bottom: 12px; }
.hq-dialog-body { font-size: 13.5px; color: var(--c-text); line-height: 1.7; }
.hq-dialog-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.hq-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; border-bottom: 1px solid rgba(148, 184, 214, .22);
  font-size: 15px; font-weight: 700; color: var(--c-ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), transparent);
}
.hq-modal-close {
  width: 28px; height: 28px; border: none; background: rgba(100, 116, 139, .12); border-radius: 8px;
  font-size: 17px; color: var(--c-text-2); cursor: pointer; line-height: 1;
  transition: background .15s, color .15s;
}
.hq-modal-close:hover { background: rgba(239, 68, 68, .15); color: #dc2626; }
.hq-modal-body { padding: 18px 20px; overflow-y: auto; }
.hq-modal-foot {
  padding: 12px 20px 16px; border-top: 1px solid rgba(148, 184, 214, .22);
  display: flex; justify-content: flex-end; gap: 10px;
  background: linear-gradient(0deg, rgba(255, 255, 255, .35), transparent);
}

/* ===== Toast ===== */
.hq-toast {
  position: fixed; top: 24px; left: 50%; transform: translate(-50%, -80px); z-index: 2000;
  padding: 10px 22px; border-radius: 12px; font-size: 13.5px; color: #fff;
  box-shadow: 0 12px 34px -8px rgba(2, 30, 56, .45), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.3);
  background: linear-gradient(135deg, #075985, #0ea5e9);
}
.hq-toast.show { transform: translate(-50%, 0); }
.hq-toast.ok { background: linear-gradient(135deg, #059669, #10b981); }
.hq-toast.error { background: linear-gradient(135deg, #dc2626, #ef4444); }
.hq-toast.warn { background: linear-gradient(135deg, #d97706, #f59e0b); }

/* ===== 空态 / 加载 ===== */
.hq-empty {
  padding: 44px 20px; text-align: center; color: var(--c-text-2); font-size: 13px;
  border: 1px dashed #d1d5db; border-radius: 12px;
  background: #fff;
}
.hq-loading { padding: 40px; text-align: center; color: var(--c-text-2); font-size: 13px; }
.spin {
  display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px;
  border: 2px solid rgba(17, 24, 39, .22); border-top-color: #111827;
  border-radius: 50%; animation: hqspin .8s linear infinite;
}
@keyframes hqspin { to { transform: rotate(360deg); } }
.hq-error-box { color: #b91c1c; border-color: rgba(239, 68, 68, .35); }

/* ===== 图表容器 ===== */
.chart-box { width: 100%; height: 320px; }
.chart-box.tall { height: 400px; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 1100px) { .chart-grid { grid-template-columns: 1fr; } }

/* ===== 图片上传 ===== */
.img-uploader { display: flex; gap: 12px; flex-wrap: wrap; }
.img-slot {
  width: 108px; height: 108px; border-radius: 12px; border: 1.5px dashed var(--c-line);
  background: rgba(255, 255, 255, .6); display: flex; flex-direction: column;
  align-items: center; justify-content: center; cursor: pointer; overflow: hidden; position: relative;
  transition: border .15s;
}
.img-slot:hover { border-color: var(--c-primary); }
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.img-slot .plus { font-size: 26px; color: #94a3b8; line-height: 1; }
.img-slot .slot-txt { font-size: 11px; color: var(--c-text-2); margin-top: 4px; }
.img-slot .del {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: rgba(15, 23, 42, .55); color: #fff; border: none; font-size: 12px; cursor: pointer; line-height: 1;
}
.thumb-sm { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; border: 1px solid var(--c-line); vertical-align: middle; background: #fff; }

/* ===== 详情行 ===== */
.kv-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; font-size: 13px; }
.kv-list .k { color: var(--c-text-2); }
.kv-list .v { color: var(--c-ink); }

/* ===== 其他 ===== */
.toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
/* 日期区间组：起止日期紧凑排列，中间"至"紧贴两侧输入框 */
.date-range { display: inline-flex; align-items: center; gap: 5px; }
.date-range .mute { font-size: 12px; flex: none; }
/* 筛选操作按钮组：查询/刷新紧挨排列 */
.filter-actions { display: inline-flex; align-items: center; gap: 6px; }
/* 日期占位：未选择时用 xxxx-xx-xx 表示（隐藏原生年/月/日提示，含内部全部伪元素，!important 压过浏览器默认样式） */
.date-field { position: relative; display: inline-block; }
.date-field:not(.filled) input,
.date-field:not(.filled) input::-webkit-datetime-edit,
.date-field:not(.filled) input::-webkit-datetime-edit-year-field,
.date-field:not(.filled) input::-webkit-datetime-edit-month-field,
.date-field:not(.filled) input::-webkit-datetime-edit-day-field,
.date-field:not(.filled) input::-webkit-datetime-edit-text,
.date-field:not(.filled) input::-webkit-date-and-time-value {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  caret-color: transparent;
}
.date-field:not(.filled) input::placeholder { color: transparent !important; }
.date-field .date-ph {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: #9aa8b8; font-size: 12px; letter-spacing: .4px; pointer-events: none; user-select: none;
  font-family: var(--num-font); white-space: nowrap;
}
.date-field.filled .date-ph { display: none; }
.mt10 { margin-top: 10px; } .mt16 { margin-top: 16px; } .mb10 { margin-bottom: 10px; }
.text-right { text-align: right; }
.text-mute { color: var(--c-text-2); }
.money { color: #0369a1; font-weight: 600; }
.money-in { color: #047857; font-weight: 600; }
/* 生产仓库流水汇总卡：金额合计红色 */
.stat-value.money { color: #dc2626; }
/* 生产仓库流水：已删除流水行（灰色淡化 + 已删标记） */
.fw-deleted-row td { color: #94a3b8; background: rgba(248, 250, 252, .6); }
.fw-deleted-row td b { color: #94a3b8; font-weight: 500; }
.fw-del-tag { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 10px; line-height: 15px; color: #64748b; background: #fff; vertical-align: 1px; }
.section-title { font-size: 13.5px; font-weight: 700; color: var(--c-ink); margin: 18px 0 10px; }
.notice-list .notice-item {
  padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 10px;
  background: rgba(255, 255, 255, .6); margin-bottom: 8px;
}

/* ===== 工具类补充 ===== */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.flex-grow { flex: 1 1 auto; }
.flex1 { flex: 1; }
.small { font-size: 12px; }
.mute { color: var(--c-text-2); }
.mono { font-family: Consolas, "Courier New", monospace; letter-spacing: .3px; }
.line-through { text-decoration: line-through; }
.money-out { color: #dc2626; font-weight: 600; }
/* 表格内金额：黑白灰 */
.hq-table .money, .hq-table .money-in { color: #111827; }
.hq-table .money-out { color: #9ca3af; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mb8 { margin-bottom: 8px; }
.w80 { width: 80px; } .w90 { width: 90px; } .w100 { width: 100px; } .w130 { width: 130px; }
.w140 { width: 140px; } .w150 { width: 150px; } .w160 { width: 160px; }
.w170 { width: 170px; } .w180 { width: 180px; } .w200 { width: 200px; }
.w220 { width: 220px; } .w240 { width: 240px; } .w320 { width: 320px; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-7 { grid-template-columns: repeat(7, 1fr); }
.three-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1100px) { .grid-5, .three-cols { grid-template-columns: repeat(2, 1fr); } .grid-7 { grid-template-columns: repeat(4, 1fr); } .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .grid-7, .grid-6 { grid-template-columns: repeat(2, 1fr); } }

/* 表单两列 */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 700px) { .row2 { grid-template-columns: 1fr; } }

/* 图片上传（编辑弹窗内） */
.img-up-preview {
  width: 108px; height: 108px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--c-line); background: #fff; vertical-align: middle;
}
.img-up-btns { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.g-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; border: 1px solid var(--c-line); background: #fff; vertical-align: middle; }

/* 迷你标签 / 芯片 */
.mini-tag {
  display: inline-block; padding: 1px 8px; margin: 1px 2px 1px 0; border-radius: 4px;
  font-size: 11px; background: #fff; color: #374151;
  border: 1px solid #d1d5db;
}
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block; padding: 3px 11px; border-radius: 7px; font-size: 12px; cursor: pointer;
  background: #fff; border: 1px solid #d1d5db; color: #6b7280;
  transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: #9ca3af; color: #374151; background: #f9fafb; }
.chip.on { background: #f3f4f6; border-color: #9ca3af; color: #374151; font-weight: 600; }
/* 经营数据/销量趋势筛选卡：日期快捷 chip 与查询/刷新按钮同尺寸 */
#stPresets .chip, #sgPresets .chip {
  display: inline-flex; align-items: center; height: 34px; padding: 0 16px;
  border-radius: 8px; font-size: 13px; font-weight: 500; letter-spacing: .3px;
}

/* 详情区块 */
.detail-sec { margin-bottom: 16px; }
.detail-sec-title { font-size: 13px; font-weight: 700; color: var(--c-ink); margin-bottom: 10px; padding-left: 8px; border-left: 3px solid #cbd5e1; }
.kv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; font-size: 13px; }
.kv-grid > div { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; min-height: 22px; }
.kv-grid > div > span:first-child { color: var(--c-text-2); flex-shrink: 0; }
.kv-grid > div > span:first-child::after { content: '：'; }
.kv-grid > div > b { color: var(--c-ink); font-weight: 600; }
.kv-grid .k { color: var(--c-text-2); }
.kv-grid .v { color: var(--c-ink); }
.fee-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.op-group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
/* 按钮组在单元格内水平居中（按需局部使用，如生产仓库完工品库存表） */
.op-group.op-center { justify-content: center; }
/* 操作列「编辑」下拉菜单（fixed 定位由 JS 计算，避免被滚动容器裁切） */
.op-menu-wrap { position: relative; display: inline-flex; }
.op-edit-btn .op-caret {
  width: 13px; height: 13px; margin-left: -2px;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .15s;
}
.op-edit-btn.menu-open .op-caret { transform: rotate(180deg); }
.op-menu {
  display: none; position: fixed; z-index: 950; min-width: 118px; padding: 5px;
  flex-direction: column; gap: 2px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .94), rgba(240, 249, 255, .9));
  backdrop-filter: var(--blur-card); -webkit-backdrop-filter: var(--blur-card);
  border: 1px solid rgba(255, 255, 255, .92); border-radius: 12px;
  box-shadow: 0 18px 44px -12px rgba(2, 30, 56, .4), inset 0 1px 0 rgba(255, 255, 255, .96);
}
.op-menu.open { display: flex; animation: opMenuIn .14s cubic-bezier(.3, .8, .4, 1.1); }
@keyframes opMenuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.op-menu-item {
  display: flex; align-items: center; padding: 7px 12px; border: none; cursor: pointer;
  border-radius: 8px; background: transparent; font-size: 12.5px; color: var(--c-text);
  text-align: left; white-space: nowrap; transition: background .12s, color .12s;
}
.op-menu-item:hover { background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .74)); color: var(--c-ink); }
.op-menu-item.danger { color: #b91c1c; }
.op-menu-item.danger:hover { background: rgba(239, 68, 68, .1); color: #b91c1c; }
.hq-table tfoot td { font-weight: 700; color: #111827; border-top: 2px solid #111827; }
.inline-input {
  height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--c-line);
  background: rgba(255, 255, 255, .85); font-size: 13px; color: var(--c-text); outline: none;
}
.inline-input:focus { border-color: #cbd5e1; box-shadow: 0 0 0 3px rgba(148, 163, 184, .22); }
.mini { font-size: 12px; }
.mini-title { font-size: 12.5px; font-weight: 700; color: var(--c-ink); margin-bottom: 8px; }
.mini-line { font-size: 12px; color: var(--c-text-2); margin-top: 2px; }
.check {
  appearance: none; -webkit-appearance: none;
  width: 15px; height: 15px; margin: 0; cursor: pointer;
  border: 1px solid #cbd5e1; border-radius: 4px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s; flex-shrink: 0;
  position: relative;
}
.check:hover { border-color: #9ca3af; background: #f9fafb; }
.check:checked { background: #fff; border-color: #111827; }
.check:checked::after {
  content: ''; position: absolute;
  width: 8px; height: 4.5px;
  border-left: 2px solid #111827; border-bottom: 2px solid #111827;
  transform: translateY(-1px) rotate(-45deg);
}
.check-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-text); cursor: pointer; white-space: nowrap; }

/* 订单列表筛选卡折叠（tabs + 筛选区同卡片，一起折叠） */
.ord-filter-card { padding-bottom: 14px; }
.ord-filter-head {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none; padding-bottom: 10px;
}
.ord-filter-title {
  font-size: 13px; font-weight: 700; color: var(--c-ink); letter-spacing: .3px;
  display: inline-flex; align-items: center; gap: 8px;
}
.ord-filter-title::before {
  content: ''; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, #e8edf2, #b9c4d0);
}
.ord-filter-body { transition: opacity .2s ease; }
#ordFilterSlot:not(:empty) { margin-top: 12px; }
.ord-filter-card.collapsed .ord-filter-body { display: none; }
.ord-filter-card.collapsed { padding-bottom: 0; }
.ord-filter-head:hover .ord-filter-title { color: #111827; }
/* 筛选卡底缘画布式调整柄：拖动自由调整露出高度，收窄后内部滚动 */
.ord-filter-card { position: relative; }
.ord-filter-resizer {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  width: 56px; height: 13px; z-index: 5; touch-action: none; cursor: row-resize;
  display: flex; align-items: center; justify-content: center; gap: 3px;
}
.ord-filter-resizer::before {
  content: ''; position: absolute; inset: 3px 8px; border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(222, 240, 252, .75));
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow: 0 2px 10px -2px rgba(8, 56, 100, .2), inset 0 1px 0 rgba(255, 255, 255, .95);
  backdrop-filter: var(--blur-card); -webkit-backdrop-filter: var(--blur-card);
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
}
.ord-filter-resizer .grip-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(90, 128, 162, .55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9);
  transition: background .2s; z-index: 1;
}
.ord-filter-resizer:hover .grip-dot, .ord-filter-card.resizing .ord-filter-resizer .grip-dot { background: #2d7fb8; }
.ord-filter-resizer:hover::before, .ord-filter-card.resizing .ord-filter-resizer::before {
  background: linear-gradient(135deg, #eaf7ff, #bfe4f8);
  border-color: rgba(146, 203, 240, .95);
  box-shadow: 0 4px 16px -2px rgba(45, 127, 184, .38), 0 0 0 3px rgba(147, 206, 242, .18), inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: scaleY(1.25);
}
.ord-filter-card.collapsed .ord-filter-resizer { top: auto; bottom: 5px; height: 13px; }
.ord-filter-card.collapsed .ord-filter-resizer::before { inset: 1px 8px; }
.ord-filter-body.ord-h-fixed {
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; padding-right: 4px;
}
.ord-filter-body.ord-h-fixed::-webkit-scrollbar { width: 6px; }
.ord-filter-body.ord-h-fixed::-webkit-scrollbar-thumb { background: rgba(148, 184, 214, .45); border-radius: 3px; }
.ord-filter-card.resizing .ord-filter-body { transition: none; }
/* 折叠卡与下方内容区的间距 */
.ord-tab-content { margin-top: 16px; }
.ord-tab-content .card:first-child { margin-top: 0; }

/* 轮播图设置 */
.banner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1100px) { .banner-grid { grid-template-columns: 1fr; } }
.banner-slot {
  border: 1px solid var(--c-line); border-radius: var(--radius); padding: 12px;
  background: rgba(255, 255, 255, .6); display: flex; flex-direction: column; gap: 10px; align-items: stretch;
}
.banner-slot-head { font-size: 13px; font-weight: 700; color: var(--c-ink); }
.banner-preview {
  width: 100%; height: 150px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--c-line); background: #fff;
}
.banner-slot .img-up-btns { flex-direction: row; justify-content: flex-start; }

/* 顶部须知设置 */
.notice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 1100px) { .notice-grid { grid-template-columns: 1fr; } }
.notice-card {
  border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px;
  background: rgba(255, 255, 255, .6);
}
.notice-head { font-size: 14px; font-weight: 700; color: var(--c-ink); margin-bottom: 12px; }
.notice-label { font-size: 12.5px; color: var(--c-text-2); margin: 8px 0 6px; }
.notice-section { margin-bottom: 8px; }
.notice-section .hq-input { width: 100%; margin-bottom: 6px; }

/* 价格行（签单专属价格） */
.price-row { display: grid; grid-template-columns: 1fr 120px 34px; gap: 8px; margin-bottom: 8px; align-items: center; }

/* 调色板 / 背景预览 */
.palette-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.palette-item {
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--c-line); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.palette-item:hover { outline: 2px solid var(--c-primary); outline-offset: 1px; }
.palette-swatch {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 6px 4px 5px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--c-line); background: rgba(255, 255, 255, .65);
  transition: border-color .15s, box-shadow .15s;
}
.palette-swatch:hover { border-color: var(--c-primary); box-shadow: 0 3px 10px rgba(14, 165, 233, .18); }
.palette-chip { width: 100%; height: 26px; border-radius: 6px; border: 1px solid rgba(148, 163, 184, .3); }
.palette-name {
  font-size: 11px; color: var(--c-text-2); max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 页面背景预览 */
.bg-preview {
  height: 64px; border-radius: 10px; border: 1px solid var(--c-line);
  background: #fff;
}

/* ===== 页面修改：内容居中版式（配色沿用冰川玻璃风格不变） ===== */
.pe-wrap { max-width: 1080px; margin: 0 auto; }
.pe-tabs-row { display: flex; justify-content: center; margin-bottom: 14px; }
.pe-card .card-title {
  flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center;
}
.pe-card .card-title > div { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pe-card .small.mute { text-align: center; }
.pe-card .hq-empty { text-align: center; }

/* 卡片列表（关于我们 / 公益项目）：自适应网格 + 单卡内容居中 */
.pe-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pe-item { align-items: center; text-align: center; }
.pe-item .img-up-preview { width: 150px; height: 112px; }
.pe-item .img-up-btns { flex-direction: row; justify-content: center; }
.pe-fields { width: 100%; text-align: left; }
.pe-fields .hq-input { width: 100%; }
.pe-fields .hq-field { margin-bottom: 10px; }

/* 单图上传（启动图 / 首页横幅 / 水票卡背景）：整体居中 */
.pe-single { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 4px 0 2px; }
.pe-single .img-up-btns { align-items: center; gap: 10px; }
.pe-btn-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* 页面背景槽位：内容居中 */
.pe-bg-slot { align-items: center; text-align: center; gap: 8px; }
.pe-bg-slot .img-up-btns { flex-direction: row; justify-content: center; }
.pe-bg-slot .hq-input { width: 100%; }

/* 待配送/已完成商品汇总条：双卡并排 */
.sum-strip-card { padding: 14px 18px; }
.sum-strip { display: flex; flex-direction: column; gap: 10px; }
.sum-cond-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sum-cond-label { font-size: 12px; font-weight: 700; color: var(--c-text-2); letter-spacing: 1px; }
.sum-cond { font-size: 12px; color: var(--c-text-2); padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .95); }
.sum-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sum-group {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .68) 0%, rgba(229, 242, 234, .48) 100%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow:
    0 10px 34px -10px rgba(36, 84, 62, .16),
    0 2px 6px rgba(36, 84, 62, .05),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  backdrop-filter: var(--blur-card); -webkit-backdrop-filter: var(--blur-card);
  overflow: hidden;
}
.sum-group::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.sum-pending::before { background: linear-gradient(90deg, #0ea5e9, #22d3ee); }
.sum-done::before { background: linear-gradient(90deg, #10b981, #34d399); }
.sum-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sum-head-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sum-title { font-size: 13.5px; font-weight: 700; color: var(--c-ink); letter-spacing: .5px; }
.sum-note { font-size: 11.5px; color: var(--c-text-2); }
.sum-head-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.sum-orders { font-size: 11.5px; color: var(--c-text-2); }
.sum-total { font-family: var(--num-font); font-size: 28px; font-weight: 700; line-height: 1.1; color: var(--c-primary-deep); text-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
.sum-done .sum-total { color: #059669; }
.sum-total small { font-size: 12px; font-weight: 400; color: var(--c-text-2); margin-left: 2px; }
.sum-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sum-chip {
  font-size: 12px; color: var(--c-text); padding: 3px 11px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .8), rgba(229, 242, 234, .55));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 2px 8px -3px rgba(36, 84, 62, .12);
  backdrop-filter: var(--blur-card); -webkit-backdrop-filter: var(--blur-card);
}
.sum-chip b { color: var(--c-primary-deep); margin-left: 2px; }
.sum-done .sum-chip b { color: #059669; }
.sum-empty { font-size: 12px; color: var(--c-text-2); padding: 4px 0; }
@media (max-width: 960px) { .sum-cards { grid-template-columns: 1fr; } }
.unit-detail > td { background: #f9fafb; padding: 10px 14px; }

/* ===== 订单列表 Tab · 黑白灰简洁风格（表格/按钮已全局统一，此处仅覆盖输入框/下拉/汇总条） ===== */
.ord-plain .card {
  background: #fff;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .05);
}
/* 输入控件：白底灰边 */
.ord-plain .hq-input { background: #fff; border-color: #d1d5db; color: #111827; box-shadow: none; }
.ord-plain .hq-input:focus { border-color: #111827; background: #fff; box-shadow: 0 0 0 3px rgba(17, 24, 39, .08); }
.ord-plain .hq-input[type="date"] { background: #fff; border-color: #d1d5db; color: #111827; font-family: var(--num-font); }
.ord-plain .hq-input[type="date"]::-webkit-calendar-picker-indicator { filter: none; opacity: .55; }
/* 操作下拉菜单 */
.ord-plain .op-menu {
  background: #fff; border-color: #e5e7eb;
  box-shadow: 0 8px 24px -8px rgba(17, 24, 39, .25);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.ord-plain .op-menu-item:hover { background: #f3f4f6; color: #374151; }
.ord-plain .op-menu-item.danger { color: #dc2626; }
.ord-plain .op-menu-item.danger:hover { background: #fef2f2; color: #dc2626; }
/* 汇总条：白底黑灰 */
.ord-plain .sum-cond { background: #f9fafb; border-color: #e5e7eb; }
.ord-plain .sum-group {
  background: #fafafa; border-color: #e5e7eb; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.ord-plain .sum-pending::before { background: #111827; }
.ord-plain .sum-done::before { background: #9ca3af; }
.ord-plain .sum-total { color: #111827; text-shadow: none; }
.ord-plain .sum-done .sum-total { color: #374151; }
.ord-plain .sum-chip {
  background: #fff; border-color: #e5e7eb; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.ord-plain .sum-chip b { color: #111827; }
.ord-plain .sum-done .sum-chip b { color: #374151; }

/* ===== 工作台 · 白色卡片 ===== */
.dash-hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 28px 30px;
  background: linear-gradient(160deg, #fdfffd 0%, #edf6ef 58%, #e3f1e8 100%);
  border: 1px solid #d7e8dc;
  box-shadow:
    0 12px 36px -14px rgba(36, 84, 62, .13),
    0 2px 8px rgba(36, 84, 62, .05),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  margin-bottom: 18px;
}
.dash-hero::before {
  content: ''; position: absolute; right: -60px; top: -80px; width: 300px; height: 300px;
  border-radius: 50%; background: radial-gradient(circle, rgba(52, 165, 131, .13), transparent 66%);
  filter: blur(4px); pointer-events: none;
}
.dash-hero::after {
  content: ''; position: absolute; left: 18%; bottom: -70px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(94, 234, 212, .1), transparent 68%);
  filter: blur(6px); pointer-events: none;
}
.dash-hero-title {
  font-size: 23px; font-weight: 800; letter-spacing: .5px; position: relative;
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 45%, #334155 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}
.dash-hero-date {
  position: absolute; right: 0; top: 0; font-size: 12.5px; color: var(--c-ink);
  font-family: var(--num-font);
  background: rgba(255, 255, 255, .75); border: 1px solid rgba(215, 232, 220, .95);
  padding: 6px 14px; border-radius: 999px;
  backdrop-filter: var(--blur-card); -webkit-backdrop-filter: var(--blur-card);
  box-shadow: 0 2px 10px -3px rgba(36, 84, 62, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.dash-section-title {
  font-size: 15px; font-weight: 700; color: var(--c-ink); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.dash-section-title::before {
  content: ''; width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, #f8fafc, #cbd5e1);
  box-shadow: 0 1px 4px rgba(100, 116, 139, .25);
}
.dash-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .82) 0%, rgba(226, 241, 231, .66) 100%);
  backdrop-filter: var(--blur-card); -webkit-backdrop-filter: var(--blur-card);
  border: 1px solid rgba(255, 255, 255, .75); border-radius: 16px;
  box-shadow:
    0 10px 34px -12px rgba(36, 84, 62, .14),
    0 2px 6px rgba(36, 84, 62, .04),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  padding: 20px; margin-bottom: 16px;
}
.dash-stat {
  position: relative; overflow: hidden; border-radius: 16px; padding: 18px 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .86) 0%, rgba(223, 240, 229, .7) 100%);
  backdrop-filter: var(--blur-card); -webkit-backdrop-filter: var(--blur-card);
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow:
    0 10px 34px -10px rgba(36, 84, 62, .16),
    0 2px 6px rgba(36, 84, 62, .05),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  transition: transform .22s cubic-bezier(.22, .9, .34, 1.2), box-shadow .22s, border-color .22s;
}
/* 左上斜向高光，玻璃反光感 */
.dash-stat::after {
  content: ''; position: absolute; left: -32%; top: -150%; width: 56%; height: 180%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: rotate(24deg); pointer-events: none;
}
.dash-stat:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 48px -10px rgba(36, 84, 62, .22),
    0 4px 12px rgba(36, 84, 62, .07),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}
.dash-stat-ico {
  width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  background: linear-gradient(155deg, #ffffff 0%, #eef7f1 100%);
  border: 1px solid #d9eadf;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 2px 8px -3px rgba(36, 84, 62, .1);
}
.dash-stat-ico svg {
  width: 20px; height: 20px; fill: none;
  stroke: #111827; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.dash-stat-label { font-size: 12.5px; color: var(--c-text-2); letter-spacing: .3px; }
.dash-stat-value {
  font-family: var(--num-font); font-size: 30px; font-weight: 700; color: #111827;
  margin-top: 4px; line-height: 1.1; letter-spacing: .5px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}
.dash-stat-value small { font-size: 13px; font-weight: 500; color: var(--c-text-2); margin-left: 3px; }
.dash-stat-sub { font-size: 11.5px; color: var(--c-text-2); margin-top: 5px; }
.dash-stat-sub b { color: #dc2626; font-weight: 600; }
/* 可点击卡片：点击弹出订单明细 */
.dash-stat.clickable { cursor: pointer; }
.dash-stat.clickable:hover {
  border-color: #bfd8c8;
  box-shadow:
    var(--shadow-lift),
    0 0 0 3px rgba(52, 165, 131, .14),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}
.dash-stat.clickable::before {
  content: '查看明细 ›'; position: absolute; right: 12px; top: 10px; z-index: 1;
  font-size: 10.5px; color: #111827; opacity: 0; transition: opacity .2s;
  background: #fff; padding: 2px 10px; border-radius: 8px;
  border: 1px solid #d9eadf;
  box-shadow: 0 2px 8px rgba(36, 84, 62, .08);
}
.dash-stat.clickable:hover::before { opacity: 1; }
/* 卡片明细弹框摘要行 */
.dash-modal-summary {
  font-size: 12.5px; color: var(--c-text-2); margin-bottom: 10px;
  padding: 8px 12px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(224, 242, 232, .7), rgba(255, 255, 255, .5));
  border: 1px solid rgba(46, 143, 107, .18);
}
.dash-modal-summary b { color: var(--c-primary-deep); font-weight: 700; }
.dash-tip {
  font-size: 12.5px; color: var(--c-text-2); text-align: center; padding: 18px;
  background: rgba(255, 255, 255, .5); border-radius: 10px; border: 1px dashed rgba(148, 163, 184, .3);
}




/* ===== 生产日报 ===== */
.pr-sec-title {
  font-size: 14.5px; font-weight: 700; color: var(--c-ink);
  margin-bottom: 14px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.pr-num {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: #fff; border: 1px solid #cbd5e1; box-shadow: none;
  color: #111827; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.pr-prod-chip {
  font-size: 12px; font-weight: 600; color: #111827;
  background: #fff; border: 1px solid #cbd5e1;
  padding: 2px 11px; border-radius: 999px; white-space: nowrap;
}
.pr-sub-title {
  font-size: 13px; font-weight: 600; color: var(--c-ink);
  margin: 16px 0 10px; display: flex; align-items: center; gap: 7px;
}
.pr-sub-title::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #111827; flex: none; }
.pr-sec-title + .pr-sub-title { margin-top: 4px; }
.pr-cell { width: 100%; min-width: 76px; padding: 5px 8px !important; text-align: center; font-variant-numeric: tabular-nums; }
.pr-wide { width: 100%; }
.pr-prod-sel { min-width: 230px; }
.pr-todo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pr-todo-row:last-child { margin-bottom: 0; }
.pr-check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--c-text-2); cursor: pointer; }
/* 勾选框：白底框 + 黑色对勾 */
.pr-check input {
  appearance: none; -webkit-appearance: none;
  width: 15px; height: 15px; flex: none; margin: 0;
  border: 1.5px solid #cbd5e1; border-radius: 4px;
  background: #fff; cursor: pointer; transition: border-color .15s;
}
.pr-check input:hover { border-color: #94a3b8; }
.pr-check input:checked {
  border-color: #94a3b8; background: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6.5 L4.8 9 L10 3.2' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: 10px; background-position: center; background-repeat: no-repeat;
}
/* 新建日报表单网格：标签在上、输入框栅格对齐（kv-grid 放全宽输入框会错位，故单独成套） */
.pr-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px 16px; }
.pr-fg { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pr-fg > label { font-size: 12px; color: var(--c-text-2); letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-fg .hq-input { height: 34px; }
.pr-fg-static {
  height: 34px; display: flex; align-items: center; padding: 0 11px;
  border: 1px dashed #cbd5e1; border-radius: 10px; background: rgba(248, 250, 252, .9);
  font-weight: 600; color: var(--c-ink); font-family: var(--num-font); font-variant-numeric: tabular-nums;
}
/* 详情页只读栅格：与新建表单同节奏（标签在上、值框在下） */
.pr-kv { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pr-kv > span { font-size: 12px; color: var(--c-text-2); letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-kv > b {
  min-height: 20px; display: flex; align-items: center; padding: 7px 11px;
  border: 1px solid #e6eef5; border-radius: 10px; background: rgba(248, 250, 252, .9);
  font-size: 13.5px; color: var(--c-ink); font-weight: 600;
  font-family: var(--num-font); font-variant-numeric: tabular-nums;
}
@media (max-width: 1500px) { .pr-form-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1080px) { .pr-form-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== 对账管理 ===== */
.st-b { display: inline-block; padding: 2px 9px; border-radius: 4px; font-size: 11.5px; line-height: 1.5; white-space: nowrap; }
.st-b-draft { background: #fff; color: #111827; border: 1px solid #111827; }
.st-b-conf { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }
.st-b-settled { background: #111827; color: #fff; border: 1px solid #111827; font-weight: 600; }
.st-b-void { background: #fff; color: #9ca3af; border: 1px dashed #d1d5db; text-decoration: line-through; }
/* 直出订单表格状态列：黑色纯文字（不用徽标），与对账页 st-b 互不影响 */
.do-st-text { display: inline-block; color: #111827; font-weight: 600; white-space: nowrap; }
/* 直出/调拨订单状态列文字：加粗、颜色跟随行状态色（区别于恒黑的方向列 do-st-text） */
.do-st-strong { display: inline-block; font-weight: 700; white-space: nowrap; }
/* ===== 直出/调拨订单行状态色（参考小程序订单行样式：整行字色 + hover 行底 + 行首左标） =====
   待审批/待收货=红字（置顶醒目）；已出库/已收货=黑字（完成态，仅左标+hover）；
   已拒绝/已冲销=藕紫字（被干预终结）；已撤回/已作废=卡其字（主动撤回） */
.hq-table tbody tr.do-pending td { background: #fff; color: #dc2626; }
.hq-table tbody tr.do-pending:hover td { background: #fef2f2; }
.hq-table tbody tr.do-pending .num,
.hq-table tbody tr.do-pending .money,
.hq-table tbody tr.do-pending .money-in { color: #dc2626; }
.hq-table tbody tr.do-pending .money-out,
.hq-table tbody tr.do-pending .mute { color: #f87171; }
.hq-table tbody tr.do-pending td:first-child { box-shadow: inset 3px 0 0 #dc2626; }
/* 已出库/已收货：黑字白底（黑左标，hover 浅灰） */
.hq-table tbody tr.do-done td { background: #fff; }
.hq-table tbody tr.do-done:hover td { background: #f9fafb; }
.hq-table tbody tr.do-done td:first-child { box-shadow: inset 3px 0 0 #111827; }
/* 已拒绝/已冲销：藕紫字白底（被干预终结，同小程序管理员取消色） */
.hq-table tbody tr.do-rejected td,
.hq-table tbody tr.do-reversed td { background: #fff; color: #7d6b91; }
.hq-table tbody tr.do-rejected:hover td,
.hq-table tbody tr.do-reversed:hover td { background: #f5f2f9; }
.hq-table tbody tr.do-rejected .num,
.hq-table tbody tr.do-rejected .money,
.hq-table tbody tr.do-rejected .money-in,
.hq-table tbody tr.do-reversed .num,
.hq-table tbody tr.do-reversed .money,
.hq-table tbody tr.do-reversed .money-in { color: #7d6b91; }
.hq-table tbody tr.do-rejected .money-out,
.hq-table tbody tr.do-rejected .mute,
.hq-table tbody tr.do-reversed .money-out,
.hq-table tbody tr.do-reversed .mute { color: #a495b8; }
.hq-table tbody tr.do-rejected td:first-child { box-shadow: inset 3px 0 0 #7d6b91; }
.hq-table tbody tr.do-reversed td:first-child { box-shadow: inset 3px 0 0 #7d6b91; }
/* 已撤回/已作废：卡其字白底（主动撤回，同小程序客户取消色） */
.hq-table tbody tr.do-voided td { background: #fff; color: #8a7a45; }
.hq-table tbody tr.do-voided:hover td { background: #f7f5ec; }
.hq-table tbody tr.do-voided .num,
.hq-table tbody tr.do-voided .money,
.hq-table tbody tr.do-voided .money-in { color: #8a7a45; }
.hq-table tbody tr.do-voided .money-out,
.hq-table tbody tr.do-voided .mute { color: #b0a173; }
.hq-table tbody tr.do-voided td:first-child { box-shadow: inset 3px 0 0 #8a7a45; }
.st-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.st-kpi { flex: 1; min-width: 150px; background: var(--glass-2); border: 1px solid var(--glass-line); border-radius: 10px; padding: 10px 14px; backdrop-filter: var(--blur-card); }
.st-kpi .k { font-size: 12px; color: var(--c-text-2); margin-bottom: 3px; }
.st-kpi .v { font-size: 20px; font-weight: 700; color: var(--c-ink, #111827); font-family: var(--num-font); font-variant-numeric: tabular-nums; }
.st-kpi .v small { font-size: 11px; font-weight: 500; color: var(--c-text-2); margin-left: 3px; }
.st-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.st-meta > div { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.st-meta span { color: var(--c-text-2); flex: none; }
.st-meta b { color: var(--c-ink, #111827); font-weight: 600; }
.st-log { max-height: 200px; overflow-y: auto; border: 1px dashed var(--c-line, #e5eaf0); border-radius: 8px; padding: 4px 12px; }
.st-log-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--c-line, #e5eaf0); font-size: 12px; }
.st-log-item:last-child { border-bottom: none; }
.st-log-op { display: inline-block; padding: 0 7px; border-radius: 4px; font-size: 11px; line-height: 1.7; background: #f1f5f9; color: #475569; flex: none; }
.st-op-generate { background: #eff6ff; color: #1d4ed8; }
.st-op-regenerate { background: #fefce8; color: #a16207; }
.st-op-confirm { background: #ecfeff; color: #0e7490; }
.st-op-settle { background: #111827; color: #fff; }
.st-op-void { background: #fef2f2; color: #b91c1c; }

/* ===== 调拨管理 ===== */
/* 新建调拨单弹窗：方向条（仓库⇄仓库，点击对调）→ ① 添加区 → ② 明细区（步进器）→ ③ 备注 */
/* 配色统一银灰黑（无蓝色元素） */
.tf-add-box { border: 1px solid rgba(148, 163, 184, .35); border-radius: 12px; padding: 12px 14px 14px; background: rgba(255, 255, 255, .55); }
.tf-dir-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed rgba(148, 163, 184, .5); }
.tf-dir-row > label { font-size: 11.5px; color: var(--c-text-2); flex: none; }
.tf-dir-display { display: flex; align-items: center; gap: 10px; flex: 1; padding: 8px 16px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; cursor: pointer; user-select: none; transition: border-color .15s; }
.tf-dir-display:hover { border-color: #9ca3af; background: #f9fafb; }
.tf-dir-display .tf-wh { font-size: 14px; font-weight: 700; color: #1f2937; }
.tf-dir-display .tf-arrow { font-size: 16px; font-weight: 700; color: #111827; line-height: 1; }
.tf-dir-display .tf-swap { margin-left: auto; font-size: 15px; color: #4b5563; opacity: 1; }
/* 方向徽标（调拨页专用，银灰黑）：生产→配送银灰描边 / 配送→生产深灰实底 */
.tf-dir-tag { display: inline-block; padding: 2px 9px; border-radius: 4px; font-size: 11.5px; line-height: 1.5; white-space: nowrap; background: #fff; color: #374151; border: 1px solid #9ca3af; }
.tf-dir-tag.f { background: #374151; color: #fff; border: 1px solid #374151; font-weight: 600; }
.tf-add-kind { flex: none; width: 150px; }
.tf-add-kind > label { display: block; font-size: 11.5px; color: var(--c-text-2); margin-bottom: 5px; }
.tf-add-head { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; font-weight: 700; color: #111827; letter-spacing: .4px; margin-bottom: 10px; }
.tf-add-sub { font-size: 11px; font-weight: 400; color: var(--c-text-2); letter-spacing: 0; }
.tf-add-row { display: flex; gap: 10px; align-items: flex-end; }
.tf-add-goods { flex: 1; min-width: 0; }
.tf-add-goods > label, .tf-add-amt > label { display: block; font-size: 11.5px; color: var(--c-text-2); margin-bottom: 5px; }
.tf-add-amt { width: 118px; flex: none; }
.tf-add-amt .hq-input { text-align: center; font-weight: 600; font-family: var(--num-font); -moz-appearance: textfield; appearance: textfield; }
.tf-add-amt .hq-input::-webkit-outer-spin-button, .tf-add-amt .hq-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tf-add-act { flex: none; margin-bottom: 1px; }
.tf-add-act .btn { min-width: 86px; }
.tf-list-head { display: flex; align-items: baseline; gap: 8px; margin: 14px 2px 8px; font-size: 12.5px; font-weight: 700; color: #111827; letter-spacing: .4px; }
.tf-list-head em { font-style: normal; font-weight: 600; font-size: 11.5px; color: var(--c-text-2); font-family: var(--num-font); font-variant-numeric: tabular-nums; }
.tf-items { display: flex; flex-direction: column; gap: 8px; }
.tf-items-empty { border: 1.5px dashed #cbd5e1; border-radius: 12px; padding: 20px 16px; text-align: center; color: var(--c-text-2); font-size: 12.5px; background: rgba(255, 255, 255, .45); }
.tf-item { display: flex; align-items: center; gap: 12px; border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; background: #fff; }
.tf-item-info { flex: 1; min-width: 0; }
.tf-item-name { font-size: 13px; color: #111827; }
.tf-item-name .mute { margin-left: 6px; }
.tf-item-fifo { margin-top: 3px; font-size: 11.5px; line-height: 1.5; }
.tf-stock { color: var(--c-text-2); margin-left: 8px; white-space: nowrap; font-family: var(--num-font); font-variant-numeric: tabular-nums; }
.tf-step { display: flex; align-items: center; flex: none; border: 1px solid #d1d5db; border-radius: 9px; overflow: hidden; background: #fff; }
.tf-step-btn { width: 30px; height: 32px; border: none; background: #f9fafb; color: #374151; font-size: 15px; line-height: 1; cursor: pointer; transition: background .15s, color .15s; }
.tf-step-btn:hover:not(:disabled) { background: #f3f4f6; color: #111827; }
.tf-step-btn:disabled { opacity: .3; cursor: not-allowed; }
.tf-step-num { width: 54px; height: 32px; border: none; border-left: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb; text-align: center; font-size: 13px; font-weight: 600; color: #111827; outline: none; font-family: var(--num-font); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.tf-step-num::-webkit-outer-spin-button, .tf-step-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tf-remark { margin-top: 12px; }
.tf-remark .hq-field { margin-bottom: 0; }
.tf-log { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--c-line, #e5eaf0); font-size: 12.5px; }
.tf-log:last-child { border-bottom: none; }
.tf-log-time { color: var(--c-text-2); font-size: 11.5px; flex: none; font-family: var(--num-font); font-variant-numeric: tabular-nums; }

/* ===== 系统设置：字体 / 背景颜色 ===== */
.ss-page { display: flex; flex-direction: column; gap: 16px; max-width: 980px; margin-left: auto; margin-right: auto; min-height: calc(100vh - 60px); justify-content: center; }
.mb12 { margin-bottom: 12px; }
/* 自定义背景色生效时：去掉 body 不透明的渐变底层（它会盖住所选颜色），保留白色光晕让底色显色 */
html[data-bg-custom="1"] body {
  background-image:
    radial-gradient(1100px 700px at 88% -8%, rgba(255, 255, 255, .5), transparent 62%),
    radial-gradient(900px 620px at -6% 18%, rgba(255, 255, 255, .42), transparent 60%),
    radial-gradient(820px 560px at 108% 64%, rgba(255, 255, 255, .38), transparent 58%),
    radial-gradient(700px 520px at 10% 106%, rgba(255, 255, 255, .35), transparent 55%),
    radial-gradient(520px 380px at 55% 44%, rgba(255, 255, 255, .22), transparent 70%);
}
.ss-font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ss-font-card {
  position: relative; text-align: left; cursor: pointer;
  padding: 16px 18px 13px; border-radius: 16px;
  border: 1.5px solid rgba(148, 163, 184, .26);
  background: rgba(255, 255, 255, .58);
  backdrop-filter: var(--blur-card); -webkit-backdrop-filter: var(--blur-card);
  box-shadow: var(--shadow-flat);
  transition: border-color .16s, box-shadow .16s, transform .16s, background .16s;
}
.ss-font-card:hover {
  border-color: rgba(14, 165, 233, .42); background: rgba(255, 255, 255, .8);
  transform: translateY(-2px); box-shadow: var(--shadow-card);
}
.ss-font-card.active {
  border-color: rgba(14, 165, 233, .75); background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-card), 0 0 0 3px rgba(14, 165, 233, .1);
}

/* ===== 经营数据：单位签单汇总卡片折叠 ===== */
/* 单位名称点击标记：变红再点恢复（人工核对圈选） */
.st-unit-name { cursor: pointer; transition: color .18s ease; }
.st-unit-name:hover { color: #334155; }
.st-unit-name.st-unit-marked { color: #dc2626; }
.st-fold-card .st-fold-head {
  cursor: pointer; user-select: none;
  justify-content: space-between; gap: 10px;
  padding: 2px 0;
}
#stBody .st-fold-card > .st-fold-head { justify-content: space-between; }
.st-fold-arrow {
  flex: none; width: 22px; height: 22px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .85);
  backdrop-filter: var(--blur-card); -webkit-backdrop-filter: var(--blur-card);
  transition: transform .22s ease, background .16s ease;
}
.st-fold-arrow::before {
  content: ''; width: 7px; height: 7px;
  border-right: 1.8px solid #64748b; border-bottom: 1.8px solid #64748b;
  transform: rotate(45deg) translate(-1px, -2px);
}
.st-fold-head:hover .st-fold-arrow { background: rgba(255, 255, 255, .85); }
.st-fold-card.st-fold-collapsed .st-fold-arrow { transform: rotate(-90deg); }
.st-fold-card.st-fold-collapsed .st-fold-body { display: none; }
.st-fold-card.st-fold-collapsed .st-fold-head { margin-bottom: 0; }
.ss-font-demo { display: flex; align-items: center; gap: 14px; padding-right: 22px; min-width: 0; }
.ss-font-glyph {
  flex: none; width: 54px; height: 54px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 600; line-height: 1; color: var(--c-ink);
  background: linear-gradient(150deg, rgba(255, 255, 255, .95), rgba(235, 246, 252, .7));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 #fff, 0 2px 8px -2px rgba(8, 56, 100, .12);
}
.ss-font-lines { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ss-font-l1 { font-size: 16px; font-weight: 600; color: var(--c-ink); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-font-l2 { font-size: 12px; color: var(--c-text-2); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-font-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 13px; padding-top: 10px; border-top: 1px dashed rgba(148, 163, 184, .28);
}
.ss-font-name { font-size: 13px; font-weight: 700; color: var(--c-text); letter-spacing: .2px; }
.ss-font-check {
  position: absolute; right: 13px; top: 14px; width: 21px; height: 21px;
  border-radius: 50%; display: none; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8); box-shadow: 0 3px 10px -2px rgba(14, 165, 233, .5);
}
.ss-font-check svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ss-font-card.active .ss-font-check { display: flex; }
.ss-bg-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ss-swatch {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 15px 8px 9px; border-radius: 999px; font-size: 12.5px; color: var(--c-text);
  border: 1.5px solid rgba(148, 163, 184, .32); background: rgba(255, 255, 255, .66);
  backdrop-filter: var(--blur-card); -webkit-backdrop-filter: var(--blur-card);
  box-shadow: var(--shadow-flat);
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.ss-swatch:hover { transform: translateY(-1px); border-color: rgba(14, 165, 233, .5); }
.ss-swatch.active {
  border-color: rgba(14, 165, 233, .8); color: var(--c-ink); font-weight: 600;
  box-shadow: var(--shadow-card), 0 0 0 3px rgba(14, 165, 233, .12);
}
.ss-swatch-dot {
  width: 17px; height: 17px; border-radius: 50%; flex: none;
  background: var(--sw, #f5f8fb);
  border: 1px solid rgba(148, 163, 184, .55);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .9);
}
.ss-custom {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 6px 15px 6px 7px; border-radius: 999px; font-size: 12.5px; color: var(--c-text);
  border: 1.5px solid rgba(148, 163, 184, .32); background: rgba(255, 255, 255, .66);
  box-shadow: var(--shadow-flat); transition: border-color .16s, box-shadow .16s;
}
.ss-custom:hover { border-color: rgba(14, 165, 233, .5); }
.ss-custom.active {
  border-color: rgba(14, 165, 233, .8); color: var(--c-ink); font-weight: 600;
  box-shadow: var(--shadow-card), 0 0 0 3px rgba(14, 165, 233, .12);
}
.ss-custom input[type="color"] {
  appearance: none; -webkit-appearance: none;
  width: 25px; height: 25px; border: none; border-radius: 50%; cursor: pointer;
  background: none; padding: 0;
}
.ss-custom input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.ss-custom input[type="color"]::-webkit-color-swatch { border: 1px solid rgba(148, 163, 184, .55); border-radius: 50%; }

/* ===== 工作台：下单时间状态条 ===== */
.dash-ot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 18px; margin-bottom: 14px;
  border-radius: 14px; background: linear-gradient(160deg, #fdfffd 0%, #eff7f1 100%);
  border: 1px solid #d7e8dc;
  box-shadow: 0 2px 8px rgba(36, 84, 62, .05);
}
.dash-ot-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dash-ot.open .dash-ot-dot { background: #94a3b8; box-shadow: 0 0 8px rgba(148, 163, 184, .55); }
.dash-ot.blocked .dash-ot-dot { background: #f87171; box-shadow: 0 0 8px rgba(248, 113, 113, .65); }
.dash-ot-title { font-size: 13.5px; font-weight: 700; color: var(--c-ink); }
.dash-ot-text { font-size: 12.5px; color: var(--c-text-2); }
.dash-ot .btn { margin-left: auto; }

/* ===== 下单时间设置（小程序内容管理 → 下单时间） ===== */
.ot-wrap { max-width: 1080px; margin: 0 auto; }
.ot-wrap .card { margin-bottom: 14px; }

.ot-live-flag { font-size: 11px; color: var(--c-text-2); border: 1px solid var(--c-line); border-radius: 999px; padding: 2px 10px; background: rgba(255, 255, 255, .7); font-weight: 500; }
.ot-status-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ot-status-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ot-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ot-dot-green { background: #94a3b8; box-shadow: 0 0 8px rgba(148, 163, 184, .55); }
.ot-dot-red { background: #f87171; box-shadow: 0 0 8px rgba(248, 113, 113, .65); }
.ot-dot-gray { background: #cbd5e1; }
.ot-status-title { font-size: 15px; font-weight: 700; color: var(--c-ink); }
.ot-status-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.ot-meta-item { font-size: 12.5px; color: var(--c-text-2); }
.ot-meta-item b.ot-on { color: #64748b; }
.ot-meta-item b.ot-off { color: #94a3b8; }
.ot-banner-preview { margin-top: 12px; }
.ot-banner-label { font-size: 12px; color: var(--c-text-2); margin-bottom: 6px; }
.ot-banner-bar { border-radius: 999px; padding: 8px 16px; font-size: 13px; text-align: center; border: 1px solid; }
.ot-bar-open { background: rgba(226, 232, 240, .6); border-color: rgba(100, 116, 139, .35); color: #334155; }
.ot-bar-closed { background: rgba(254, 226, 226, .55); border-color: rgba(239, 68, 68, .3); color: #991b1b; }
.ot-bar-hidden { background: rgba(241, 245, 249, .6); border-color: var(--c-line); color: var(--c-text-2); }

.ot-switch-wrap, .ot-day-check { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.ot-switch-wrap { gap: 12px; }
.ot-switch { position: relative; width: 44px; height: 24px; border-radius: 999px; background: #e2e8f0; border: 1px solid rgba(148, 163, 184, .4); transition: background .18s, border-color .18s; flex: none; }
.ot-switch-knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(15, 23, 42, .25); transition: left .18s; }
.ot-switch-wrap input, .ot-day-check input { display: none; }
.ot-switch-wrap input:checked + .ot-switch, .ot-day-check input:checked + .ot-switch { background: #aeb8c6; border-color: rgba(100, 116, 139, .55); }
.ot-switch-wrap input:checked + .ot-switch .ot-switch-knob, .ot-day-check input:checked + .ot-switch .ot-switch-knob { left: 22px; }
.ot-switch.sm { width: 38px; height: 20px; }
.ot-switch.sm .ot-switch-knob { width: 14px; height: 14px; }
.ot-day-check input:checked + .ot-switch.sm .ot-switch-knob { left: 20px; }
.ot-switch-text { font-size: 13.5px; color: var(--c-ink); font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.ot-switch-text b { font-size: 11.5px; color: var(--c-text-2); font-weight: 400; }

.ot-base-row { padding: 2px 0; }
.ot-notice-field { margin-top: 16px; }
.ot-notice-field .hq-input { width: 100%; max-width: 560px; }

.ot-day-row { display: flex; align-items: flex-start; gap: 14px; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius); background: rgba(255, 255, 255, .6); margin-bottom: 10px; flex-wrap: wrap; }
.ot-day-check { min-width: 108px; padding-top: 4px; }
.ot-day-name { font-size: 13.5px; font-weight: 700; color: var(--c-ink); }
.ot-day-slots { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 260px; }
.ot-slot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ot-slot .hq-input { width: 118px; }
.ot-slot-sep { font-size: 12.5px; color: var(--c-text-2); }
.ot-day-off-text { font-size: 12.5px; color: var(--c-text-2); padding-top: 6px; }
.ot-add-slot { flex: none; margin-top: 2px; }

.ot-date-add { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.ot-date-add .hq-input { width: 200px; }
.ot-date-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ot-date-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--c-ink); background: rgba(255, 255, 255, .75); border: 1px solid var(--c-line); border-radius: 999px; padding: 4px 8px 4px 12px; }
.ot-date-chip button { border: none; background: none; color: var(--c-text-2); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; }
.ot-date-chip button:hover { color: #ef4444; }

.ot-save-row { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 0 2px; text-align: center; }
