/* ========== 登录页 ========== */
.login-body{
  min-height:100vh;min-height:100dvh;display:flex;
  align-items:center;justify-content:center;padding:20px;
  background:linear-gradient(135deg,#0f172a 0%,#1e293b 55%,#0f172a 100%);
  position:relative;overflow:hidden;
}
.login-bg{position:fixed;inset:0;pointer-events:none;overflow:hidden}
.login-bg .orb{
  position:absolute;border-radius:50%;filter:blur(60px);opacity:.45;
}
.orb-1{width:420px;height:420px;background:#3b82f6;top:-120px;left:-100px;
  animation:float1 14s ease-in-out infinite}
.orb-2{width:520px;height:520px;background:#8b5cf6;bottom:-180px;right:-140px;
  animation:float2 18s ease-in-out infinite}
.orb-3{width:300px;height:300px;background:#06b6d4;top:40%;left:60%;
  animation:float3 20s ease-in-out infinite}
@keyframes float1{50%{transform:translate(60px,40px) scale(1.08)}}
@keyframes float2{50%{transform:translate(-70px,-50px) scale(1.06)}}
@keyframes float3{50%{transform:translate(40px,-60px) scale(1.1)}}

.login-wrap{
  position:relative;z-index:1;width:100%;max-width:420px;
  display:flex;flex-direction:column;gap:18px;align-items:center;
}
.login-card{
  width:100%;background:#fff;border-radius:20px;padding:34px 30px 26px;
  box-shadow:0 30px 80px rgba(0,0,0,.35),0 0 0 1px rgba(255,255,255,.04);
  animation:cardIn .45s cubic-bezier(.34,1.4,.64,1);
}
@keyframes cardIn{from{opacity:0;transform:translateY(24px) scale(.96)}}

.login-brand{text-align:center;margin-bottom:24px}
.login-brand .logo{
  display:inline-flex;margin-bottom:14px;
  filter:drop-shadow(0 10px 24px rgba(59,130,246,.4));
}
.login-brand h1{font-size:22px;font-weight:700;letter-spacing:-.3px;margin-bottom:4px}
.login-brand p{font-size:12.5px;color:var(--txt3);letter-spacing:.4px}

.login-alert{
  display:flex;align-items:flex-start;gap:8px;font-size:12.5px;
  padding:10px 13px;border-radius:10px;margin-bottom:16px;line-height:1.7;
  animation:alertIn .25s ease-out;
}
@keyframes alertIn{from{opacity:0;transform:translateY(-6px)}}
.login-alert.error{background:var(--red-l);color:#b91c1c;border:1px solid #fecaca}
.login-alert.warn{background:var(--amber-l);color:#92400e;border:1px solid #fde68a}
.login-alert .ico{flex-shrink:0;line-height:1.6}

.form-item{margin-bottom:16px}
.form-item>label{
  display:block;font-size:12.5px;color:var(--txt2);font-weight:500;
  margin-bottom:7px;
}
.input-wrap{position:relative;display:flex;align-items:center}
.input-wrap .input-ico{
  position:absolute;left:12px;color:#98a2b3;pointer-events:none;
  display:flex;align-items:center;
}
.input-wrap input{
  width:100%;height:46px;padding:0 44px 0 40px;border-radius:11px;
  font-size:14.5px;transition:.18s;background:#fafbfd;
}
.input-wrap input:focus{background:#fff}
.pwd-toggle{
  position:absolute;right:6px;top:50%;transform:translateY(-50%);
  width:34px;height:34px;display:flex;align-items:center;justify-content:center;
  color:#98a2b3;border-radius:8px;transition:.15s;
}
.pwd-toggle:hover{background:#f2f4f7;color:var(--txt)}
.pwd-toggle.on{color:var(--blue)}

.hp{position:absolute!important;left:-9999px!important;opacity:0!important}

.remember{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:var(--txt2);cursor:pointer;font-weight:400}
.remember input{width:15px;height:15px;accent-color:var(--blue);cursor:pointer}

.btn-login{
  width:100%;height:48px;border-radius:11px;color:#fff;font-size:15px;font-weight:600;
  background:linear-gradient(135deg,#2563eb,#4f46e5);
  box-shadow:0 8px 22px rgba(37,99,235,.32);
  display:flex;align-items:center;justify-content:center;gap:8px;
  transition:.2s;letter-spacing:.4px;
}
.btn-login:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(37,99,235,.42)}
.btn-login:active{transform:translateY(0)}
.btn-login:disabled{opacity:.75;cursor:wait;transform:none}
.btn-login .spin{display:inline-flex}

.login-foot{
  margin-top:22px;padding-top:16px;border-top:1px dashed var(--line);
  display:flex;align-items:center;justify-content:space-between;
  font-size:11.5px;color:var(--txt3);
}
.login-foot .tip{display:flex;align-items:center;gap:5px}
.login-foot .ver{font-family:ui-monospace,monospace}
.login-copy{
  color:rgba(255,255,255,.5);font-size:11.5px;text-align:center;
  letter-spacing:.3px;
}

/* ========== 主界面 Appbar ========== */
.appbar{
  background:#101828;color:#fff;padding:10px 22px;min-height:58px;
  display:flex;align-items:center;gap:14px;position:sticky;top:0;z-index:60;
  box-shadow:0 4px 20px rgba(16,24,40,.12);flex-wrap:wrap;
}
.brand{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:600;letter-spacing:-.2px}
.brand .dot{
  width:9px;height:9px;border-radius:3px;background:#3b82f6;
  box-shadow:0 0 12px #3b82f6;animation:pulse 2s infinite;flex-shrink:0;
}
@keyframes pulse{0%,100%{box-shadow:0 0 12px #3b82f6}50%{box-shadow:0 0 20px #60a5fa}}
.brand-store{color:#94a3b8;font-weight:400}
.appbar .spacer{margin-left:auto}
.appbar .meta{font-size:12px;color:#98a2b3}
.appbar-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.appbar .divider{width:1px;height:20px;background:rgba(255,255,255,.14)}
.appbar .btn{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.14);color:#e4e7ec}
.appbar .btn:hover{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.24);color:#fff}
.appbar .btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}
.appbar .btn.primary:hover{background:var(--blue-d)}
.appbar .btn.danger{color:#fecaca;border-color:rgba(220,38,38,.4)}
.appbar .btn.danger:hover{background:rgba(220,38,38,.22)}

/* ========== 页面容器 ========== */
.page{max-width:1560px;margin:0 auto;padding:22px}

/* ========== KPI ========== */
.kpis{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:12px;margin-bottom:16px;
}
.kpi{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:15px 17px;box-shadow:var(--shadow);position:relative;overflow:hidden;
}
.kpi::after{
  content:"";position:absolute;left:0;top:0;bottom:0;width:3px;
  background:transparent;transition:.3s;
}
.kpi.k-blue::after{background:linear-gradient(180deg,#3b82f6,#60a5fa)}
.kpi.k-green::after{background:linear-gradient(180deg,#10b981,#34d399)}
.kpi.k-red::after{background:linear-gradient(180deg,#ef4444,#f87171)}
.kpi.k-amber::after{background:linear-gradient(180deg,#f59e0b,#fbbf24)}
.kpi.k-slate::after{background:linear-gradient(180deg,#94a3b8,#cbd5e1)}
.kpi.k-indigo::after{background:linear-gradient(180deg,#6366f1,#818cf8)}
.kpi.k-teal::after{background:linear-gradient(180deg,#14b8a6,#2dd4bf)}
.kpi.k-purple::after{background:linear-gradient(180deg,#a78bfa,#c4b5fd)}
.kpi .label{font-size:12px;color:var(--txt2);margin-bottom:7px}
.kpi .value{
  font-size:21px;font-weight:700;font-variant-numeric:tabular-nums;
  letter-spacing:-.5px;line-height:1.2;
}
.kpi .value .unit{font-size:12px;font-weight:500;color:var(--txt3);margin-left:3px}
.kpi .sub{font-size:11.5px;color:var(--txt3);margin-top:5px}
.kpi.skeleton{background:#fafbfd}
.kpi.skeleton .label,.kpi.skeleton .value,.kpi.skeleton .sub{
  background:#eef1f6;height:11px;border-radius:4px;color:transparent;
  position:relative;overflow:hidden;
}
.kpi.skeleton .value{height:22px;width:60%;margin:8px 0}

/* ========== 看板 ========== */
.dashboard{
  background:linear-gradient(135deg,#0f172a 0%,#1e293b 55%,#0f172a 100%);
  border-radius:16px;padding:22px;margin-bottom:16px;position:relative;
  overflow:hidden;box-shadow:0 12px 40px rgba(15,23,42,.28);
}
.dashboard::before{
  content:"";position:absolute;top:-60%;left:-10%;width:60%;height:220%;
  background:radial-gradient(circle,rgba(56,189,248,.13),transparent 62%);
  pointer-events:none;animation:glow 8s ease-in-out infinite alternate;
}
.dashboard::after{
  content:"";position:absolute;bottom:-60%;right:-10%;width:60%;height:220%;
  background:radial-gradient(circle,rgba(167,139,250,.11),transparent 62%);
  pointer-events:none;animation:glow 10s ease-in-out infinite alternate-reverse;
}
@keyframes glow{from{transform:translate(0,0) scale(1)}to{transform:translate(4%,4%) scale(1.08)}}
.dash-head{display:flex;align-items:center;gap:12px;margin-bottom:18px;
  position:relative;z-index:1;flex-wrap:wrap}
.dash-head h2{font-size:15px;font-weight:700;color:#f1f5f9;display:flex;align-items:center;gap:8px}
.dash-head .live{width:7px;height:7px;border-radius:50%;background:#34d399;
  box-shadow:0 0 10px #34d399;animation:pulse 1.6s infinite}
.dash-head .range{font-size:12px;color:#64748b}
.dash-head .spacer{margin-left:auto}
.dash-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:14px;position:relative;z-index:1}
.dash-grid-full{position:relative;z-index:1;margin-top:14px}
.dash-card{
  background:rgba(30,41,59,.6);border:1px solid rgba(148,163,184,.15);
  border-radius:12px;padding:16px;-webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);transition:.25s;
}
.dash-card:hover{border-color:rgba(56,189,248,.4);box-shadow:0 0 24px rgba(56,189,248,.12)}
.dash-card .title{
  font-size:12.5px;color:#94a3b8;font-weight:600;letter-spacing:.4px;
  margin-bottom:14px;display:flex;align-items:center;gap:7px;
}
.dash-card .title .bar{width:3px;height:13px;
  background:linear-gradient(180deg,#38bdf8,#818cf8);border-radius:2px}

/* ========== 筛选栏 ========== */
.filterbar{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:14px 16px;display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;
  margin-bottom:16px;box-shadow:var(--shadow);
}
.field{display:flex;flex-direction:column;gap:5px}
.field.grow{flex:1;min-width:190px}
.field label{font-size:11px;color:var(--txt3);font-weight:500}
.field input,.field select{height:34px;padding:6px 11px;font-size:13px;border-radius:8px}
.field input[type=date]{min-width:132px}
.filter-actions{margin-left:auto;display:flex;gap:8px}

/* ========== 视图切换 ========== */
.view-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.tabs{display:flex;gap:4px;background:#e6eaf1;padding:4px;border-radius:11px;
  width:fit-content;flex-wrap:wrap}
.tab{
  padding:7px 18px;border-radius:8px;background:transparent;
  font-size:13px;color:var(--txt2);font-weight:500;transition:.15s;white-space:nowrap;
}
.tab:hover{color:var(--txt)}
.tab.active{background:#fff;color:var(--txt);font-weight:600;
  box-shadow:0 1px 3px rgba(16,24,40,.1)}
.view-actions{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}

/* ========== 日期卡片 ========== */
.day{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  margin-bottom:10px;overflow:hidden;box-shadow:var(--shadow);transition:.2s;
}
.day.settled{border-color:#a7f3d0;background:linear-gradient(180deg,#fafffd,#fff)}
.day-head{
  display:flex;align-items:center;gap:11px;padding:13px 17px;
  user-select:none;flex-wrap:wrap;transition:.12s;cursor:pointer;
}
.day-head:hover{background:#fafbfd}
.day.settled .day-head:hover{background:#f0fdf9}
.chev{width:16px;height:16px;font-size:9px;color:var(--txt3);
  transition:transform .2s;display:inline-flex;align-items:center;
  justify-content:center;flex-shrink:0}
.day.open .chev,.desc-card.open .chev{transform:rotate(90deg)}
.day-date{font-weight:700;font-size:15px;font-variant-numeric:tabular-nums}
.day-week{font-size:12px;color:var(--txt3)}
.chip{
  font-size:11px;padding:2px 9px;border-radius:999px;background:#f2f4f7;
  color:var(--txt2);white-space:nowrap;font-weight:500;
}
.chip.new{background:var(--blue-l);color:#1d4ed8}
.chip.warn{background:var(--amber-l);color:#b45309}
.chip.danger{background:var(--red-l);color:#b91c1c}
.chip.settled{background:var(--green-l);color:#047857}
.chip.batch{background:var(--purple-l);color:#6d28d9}
.chip.note{background:#fef3c7;color:#92400e}
.metrics{margin-left:auto;display:flex;gap:20px;flex-wrap:wrap;align-items:center}
.metric{text-align:right}
.metric i{display:block;font-style:normal;font-size:11px;color:var(--txt3);margin-bottom:1px}
.metric b{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
.adj-tag{
  display:inline-block;font-size:10.5px;padding:1px 6px;border-radius:4px;
  background:linear-gradient(135deg,#fef3c7,#fde68a);color:#92400e;
  font-weight:600;margin-left:4px;vertical-align:middle;cursor:help;
}
.adj-val{color:#b45309!important;font-weight:700!important}

.note-btn{
  display:inline-flex;align-items:center;gap:4px;padding:6px 11px;
  border-radius:8px;border:1px solid var(--line);background:#fff;
  color:var(--txt2);font-size:12px;font-weight:500;
  transition:.18s;white-space:nowrap;max-width:150px;overflow:hidden;
}
.note-btn:hover{border-color:#fcd34d;background:#fffbeb;color:#b45309}
.note-btn.has-note{border-color:#fcd34d;background:#fffbeb;color:#92400e;font-weight:600}
.note-btn .txt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:88px}
.settle-btn{
  display:inline-flex;align-items:center;gap:6px;padding:6px 13px;
  border-radius:8px;border:1px solid var(--line);background:#fff;
  color:var(--txt2);font-size:12.5px;font-weight:500;transition:.18s;white-space:nowrap;
}
.settle-btn:hover{border-color:#a7f3d0;background:#f0fdf9;color:#047857}
.settle-btn .ico{width:14px;height:14px;border-radius:50%;border:1.6px solid currentColor;
  display:inline-flex;align-items:center;justify-content:center;font-size:9px}
.settle-btn.settled{background:linear-gradient(135deg,#10b981,#059669);
  border-color:#059669;color:#fff;box-shadow:0 3px 10px rgba(5,150,105,.28)}
.settle-btn.settled .ico{background:#fff;border-color:#fff;color:#059669;font-weight:700}

.day-body{display:none;border-top:1px solid var(--line2);overflow-x:auto}
.day.open .day-body{display:block}

.settle-info{
  display:flex;align-items:center;gap:8px;padding:9px 17px;
  background:linear-gradient(90deg,#ecfdf5,#f0fdf9);
  border-bottom:1px solid #d1fae5;font-size:12px;color:#047857;flex-wrap:wrap;
}
.settle-info b{font-weight:700}
.settle-info .undo{margin-left:auto;font-size:11.5px;color:#059669;cursor:pointer;
  padding:3px 9px;border-radius:6px;border:1px solid #a7f3d0;background:#fff}
.settle-info .undo:hover{background:#ecfdf5;color:#047857}
.note-info{
  display:flex;align-items:center;gap:8px;padding:9px 17px;
  background:linear-gradient(90deg,#fffbeb,#fef3c7);
  border-bottom:1px solid #fde68a;font-size:12px;color:#92400e;flex-wrap:wrap;
}
.note-info .undo{margin-left:auto;font-size:11.5px;color:#b45309;cursor:pointer;
  padding:3px 9px;border-radius:6px;border:1px solid #fcd34d;background:#fff}

/* ========== 批次组 ========== */
.batch-group{
  background:#fff;border:1px solid #a7f3d0;border-radius:var(--radius);
  margin-bottom:12px;box-shadow:0 4px 18px rgba(5,150,105,.10);overflow:hidden;
}
.batch-head{
  display:flex;align-items:center;gap:12px;padding:14px 18px;
  background:linear-gradient(90deg,#ecfdf5 0%,#f0fdf9 60%,#fff 100%);
  cursor:pointer;user-select:none;flex-wrap:wrap;transition:.15s;
  border-bottom:1px solid #d1fae5;
}
.batch-head:hover{background:linear-gradient(90deg,#d1fae5 0%,#ecfdf5 60%,#fff 100%)}
.batch-head .bg-chev{width:16px;height:16px;font-size:10px;color:#047857;
  transition:transform .2s;display:inline-flex;align-items:center;justify-content:center}
.batch-group.open .bg-chev{transform:rotate(90deg)}
.batch-head .bg-icon{font-size:16px}
.batch-head .bg-name{font-weight:700;font-size:15px;color:#047857;letter-spacing:-.2px}
.batch-head .bg-meta{font-size:12px;color:#059669;display:flex;gap:8px;
  flex-wrap:wrap;align-items:center}
.batch-head .bg-meta .sep{color:#6ee7b7}
.batch-head .bg-stats{margin-left:auto;display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.batch-head .bg-stat{text-align:right}
.batch-head .bg-stat i{display:block;font-style:normal;font-size:11px;color:#059669}
.batch-head .bg-stat b{font-size:14px;font-weight:700;color:#047857;
  font-variant-numeric:tabular-nums}
.batch-body{padding:12px;background:#f8fefb;display:none;flex-direction:column;gap:10px}
.batch-group.open .batch-body{display:flex}

/* ========== 表格 ========== */
table{width:100%;border-collapse:collapse;font-size:13px}
th{
  background:#fafbfd;color:var(--txt2);font-weight:500;font-size:12px;
  text-align:left;padding:10px 12px;white-space:nowrap;
  border-bottom:1px solid var(--line);
}
td{padding:10px 12px;border-top:1px solid var(--line2);white-space:nowrap;
  font-variant-numeric:tabular-nums;color:#344054}
tbody tr:hover{background:#fafbfd}
tbody tr.row-new{background:#f6faff}
.table-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow)}
.table-scroll{overflow-x:auto}
.summary-table th:first-child,.summary-table td:first-child{padding-left:18px}
.total-row td{background:#f8fafc;font-weight:700;border-top:2px solid var(--line);color:var(--txt)}
.bar-cell{position:relative}
.bar-bg{position:absolute;left:12px;top:50%;transform:translateY(-50%);height:16px;
  background:linear-gradient(90deg,#dbeafe,#eff6ff);border-radius:4px;z-index:0}
.bar-cell span{position:relative;z-index:1}
.store-link{
  color:#2563eb;cursor:pointer;font-weight:500;transition:.15s;text-decoration:none;
  border-bottom:1px dashed #93c5fd;
}
.store-link:hover{color:#1d4ed8;border-bottom-color:#2563eb}
.ellip{max-width:220px;overflow:hidden;text-overflow:ellipsis;display:inline-block;
  vertical-align:middle}

/* ========== 商品说明卡片 ========== */
.desc-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  margin-bottom:10px;overflow:hidden;box-shadow:var(--shadow);
}
.desc-head{display:flex;align-items:center;gap:12px;padding:13px 17px;
  cursor:pointer;transition:.12s;flex-wrap:wrap;user-select:none}
.desc-head:hover{background:#fafbfd}
.desc-name{font-weight:600;font-size:14px;color:var(--txt);min-width:0;
  word-break:break-all;flex:1}
.desc-stats{margin-left:auto;display:flex;gap:18px;flex-wrap:wrap;align-items:center}
.desc-body{display:none;border-top:1px solid var(--line2);overflow-x:auto}
.desc-card.open .desc-body{display:block}
.desc-members{
  padding:10px 17px;background:#f8fafc;border-bottom:1px solid var(--line2);
  font-size:12px;color:var(--txt2);display:flex;gap:8px;flex-wrap:wrap;align-items:center;
}
.desc-members .mtag{background:#fff;border:1px solid var(--line);
  padding:3px 10px;border-radius:6px;font-size:11.5px;color:#475467}

/* ========== 空状态 ========== */
.empty{
  background:#fff;border:1px dashed #d5dbe5;border-radius:var(--radius);
  padding:56px 20px;text-align:center;color:var(--txt3);font-size:13px;
}
.empty .big{font-size:38px;margin-bottom:12px;opacity:.7}

/* ========== 分页条 ========== */
.pager-bar{
  position:sticky;bottom:0;background:rgba(255,255,255,.96);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  border-top:1px solid var(--line);padding:10px 22px;
  display:flex;align-items:center;justify-content:center;gap:14px;z-index:40;
}
.pager-info{font-size:13px;color:var(--txt2);font-variant-numeric:tabular-nums}

/* ========== 响应式 ========== */
@media (max-width:960px){
  .dash-grid{grid-template-columns:1fr}
}
@media (max-width:760px){
  .page{padding:14px}
  .appbar{padding:10px 14px}
  .appbar .meta{display:none}
  .brand-store{display:none}
  .day-head{gap:8px;padding:12px 14px}
  .metrics{gap:14px;width:100%;margin-left:0;justify-content:space-between;margin-top:8px}
  .filter-actions{margin-left:0;width:100%}
  .tabs{width:100%}
  .tab{flex:1;text-align:center;padding:7px 10px;font-size:12.5px}
  .view-actions{margin-left:0;width:100%}
  .view-actions .btn{flex:1}
  .batch-head .bg-stats{width:100%;margin-left:0;justify-content:space-between;margin-top:6px}
  .desc-stats{width:100%;margin-left:0;justify-content:space-between;margin-top:6px}
}
/* ========== 合并弹窗优化样式 ========== */
.mg-toolbar{
  display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:10px;
}
.mg-toolbar .btn{height:32px;padding:0 12px;font-size:12.5px}
.mg-count{
  margin-left:auto;font-size:12px;color:#667085;
  font-variant-numeric:tabular-nums;font-weight:500;
  background:#f2f4f7;padding:3px 12px;border-radius:999px;white-space:nowrap;
}
.mg-search{
  width:100%;height:38px;border:1px solid #e3e8ef;border-radius:9px;
  padding:0 34px 0 11px;font-size:13px;outline:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.3-4.3'/></svg>");
  background-repeat:no-repeat;background-position:right 10px center;background-size:16px;
  margin-bottom:8px;transition:.15s;
}
.mg-search:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1)}

.mg-list{
  border:1px solid #e3e8ef;border-radius:10px;
  max-height:300px;overflow-y:auto;background:#fff;
}
.mg-row{
  display:flex;align-items:center;gap:10px;
  padding:11px 14px;border-bottom:1px solid #eef1f6;
  cursor:pointer;transition:.12s;user-select:none;
}
.mg-row:last-child{border-bottom:none}
.mg-row:hover{background:#fafbfd}
.mg-row.checked{background:#eff6ff}
.mg-row.disabled{opacity:.55;cursor:not-allowed;background:#f8fafc}
.mg-row.disabled:hover{background:#f8fafc}
.mg-row input[type=checkbox]{
  width:16px;height:16px;accent-color:#2563eb;cursor:pointer;flex-shrink:0;
}
.mg-row.disabled input[type=checkbox]{cursor:not-allowed}
.mg-text{
  flex:1;min-width:0;font-size:13px;color:#101828;line-height:1.5;
  word-break:break-all;overflow-wrap:anywhere;
}
.mg-cnt{
  flex-shrink:0;font-size:11px;color:#98a2b3;background:#f2f4f7;
  padding:2px 9px;border-radius:999px;font-weight:500;white-space:nowrap;
}
.mg-badge{
  flex-shrink:0;font-size:10.5px;
  background:linear-gradient(135deg,#ddd6fe,#c4b5fd);color:#5b21b6;
  padding:1px 8px;border-radius:4px;font-weight:600;white-space:nowrap;
}
.mg-preview{
  min-height:48px;padding:12px 14px;background:#f8fafc;
  border:1px dashed #cfd6e0;border-radius:10px;margin-bottom:12px;
  display:flex;gap:8px;flex-wrap:wrap;align-items:center;
  font-size:12px;color:#98a2b3;
}
.mg-preview .mp-tag{
  background:linear-gradient(135deg,#f5f3ff,#ede9fe);
  border:1px solid #ddd6fe;color:#5b21b6;
  padding:4px 12px;border-radius:8px;font-weight:600;font-size:12.5px;
}
.mg-groups{
  border:1px solid #e3e8ef;border-radius:12px;
  max-height:340px;overflow-y:auto;background:#fff;
}
.mg-group-row{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding:12px 14px;border-bottom:1px solid #eef1f6;font-size:13px;
}
.mg-group-row:last-child{border-bottom:none}
.mg-group-name{
  flex:2;min-width:120px;font-weight:600;color:#7c3aed;
  word-break:break-all;
}
.mg-group-cnt{
  flex-shrink:0;font-size:11px;color:#98a2b3;background:#f2f4f7;
  padding:2px 9px;border-radius:999px;
}
.mg-group-src{
  flex:3;min-width:150px;color:#98a2b3;font-size:11.5px;
  word-break:break-all;line-height:1.6;
}
.mg-group-actions{
  flex-shrink:0;display:flex;gap:6px;
}
.mg-group-actions .btn{height:28px;padding:0 10px;font-size:12px}

/* 解除合并弹窗 */
.unmerge-list{
  border:1px solid #e3e8ef;border-radius:10px;overflow:hidden;background:#fff;
  max-height:400px;overflow-y:auto;
}
.unmerge-row{
  display:flex;align-items:center;gap:10px;
  padding:11px 14px;border-bottom:1px solid #eef1f6;
}
.unmerge-row:last-child{border-bottom:none}
.unmerge-src{
  flex:1;min-width:0;font-size:13px;color:#344054;
  word-break:break-all;line-height:1.5;
}
.unmerge-row .btn{height:30px;padding:0 14px;font-size:12.5px;flex-shrink:0}
/* ========== 合并结算批次组 · 紫色系（与单笔结算的绿色区分） ========== */
.batch-group{
  border-color:#c4b5fd;
  box-shadow:0 4px 18px rgba(124,58,237,.10);
  background:#fff;
}
.batch-head{
  background:linear-gradient(90deg,#f5f3ff 0%,#ede9fe 60%,#fff 100%);
  border-bottom-color:#ddd6fe;
}
.batch-head:hover{
  background:linear-gradient(90deg,#ede9fe 0%,#ddd6fe 60%,#fff 100%);
}
.batch-head .bg-chev{color:#7c3aed}
.batch-head .bg-icon{color:#7c3aed}
.batch-head .bg-name{color:#6d28d9}
.batch-head .bg-meta{color:#8b5cf6}
.batch-head .bg-meta .sep{color:#c4b5fd}
.batch-head .bg-stat i{color:#8b5cf6}
.batch-head .bg-stat b{color:#6d28d9}
.batch-body{background:#faf5ff}

/* ========== 数据看板折叠态 ========== */
.dashboard.collapsed{padding:14px 22px}
.dashboard.collapsed .dash-grid,
.dashboard.collapsed .dash-grid-full{display:none}
.dashboard.collapsed .dash-head{margin-bottom:0}
.dash-fold{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  color:#94a3b8;padding:5px 14px;border-radius:7px;
  font-size:12px;font-weight:500;cursor:pointer;transition:.15s;
  display:inline-flex;align-items:center;gap:5px;
}
.dash-fold:hover{
  background:rgba(255,255,255,.16);
  color:#fff;border-color:rgba(255,255,255,.24);
}