.ss-dialog{width:min(620px,94vw)}
.ss-dialog .ss-overall{color:var(--theme-accent-deep,#148fa2);font-size:13px;margin:0 0 16px}
.ss-steps{display:grid;gap:10px}.ss-step{display:flex;gap:12px;padding:14px;border:1px solid #e4eaf1;border-radius:9px;background:#fbfcfe}
.ss-step-icon{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:9px;background:#edf1f6;color:#7c899b;font-size:20px;line-height:1}
.ss-step-copy{min-width:0;flex:1}.ss-step-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.ss-step-head b{font-weight:500;color:var(--erp-text,#25364b)}
.ss-step-copy p{margin:6px 0 0;color:var(--erp-text-2,#63748a);font-size:12px;overflow-wrap:anywhere;line-height:1.7}.ss-step-copy details{font-size:12px;margin-top:8px;color:#ad7624}
.ss-chip{display:inline-flex;align-items:center;white-space:nowrap;padding:2px 7px;border-radius:5px;background:#edf1f6;color:#7c899b;font-size:11px;line-height:1.6;font-weight:400}
.ss-chip.ss-done,.ss-done>.ss-step-icon{background:#e8f6ef;color:#298965}.ss-chip.ss-error,.ss-error>.ss-step-icon{background:#fff0ed;color:#c46b59}
.ss-chip.ss-partial,.ss-partial>.ss-step-icon,.ss-chip.ss-interrupted{background:#fff4e4;color:#ad7624}.ss-chip.ss-running,.ss-running>.ss-step-icon{background:var(--theme-accent-soft,#dff5f8);color:var(--theme-accent-deep,#148fa2)}
.ss-dialog .ss-hint{margin:16px 0 0;color:#7c899b;font-size:12px}.ss-dialog footer{display:flex;justify-content:flex-end}
body.erp-system-ui #shops .ss-inline-title{font-size:11px;color:var(--erp-text-2,#63748a);margin:7px 0 5px;max-width:310px;overflow-wrap:anywhere}
body.erp-system-ui #shops .ss-inline-steps{display:flex;flex-wrap:wrap;gap:4px;max-width:310px}
body.erp-system-ui #shops .ss-details{border:0;background:transparent;box-shadow:none;padding:5px 0 0;color:var(--theme-accent-deep,#148fa2);font-size:11px;cursor:pointer}
body.erp-system-ui #shops .ss-details:hover{text-decoration:underline}
body.erp-system-ui #shops [data-shop-sync-button]:disabled{opacity:.6;cursor:wait}
html body.erp-system-ui #shops .shop-head-actions .ss-all-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;background:var(--theme-accent,#20aec2)!important;border-color:var(--theme-accent,#20aec2)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;white-space:nowrap}
html body.erp-system-ui #shops .shop-head-actions .ss-all-btn:hover:not(:disabled){background:var(--theme-accent-deep,#148fa2)!important;border-color:var(--theme-accent-deep,#148fa2)!important;color:#fff!important}
html body.erp-system-ui #shops .shop-head-actions .ss-all-btn svg{flex-shrink:0}
html body.erp-system-ui #shops .shop-head-actions .ss-all-btn:disabled{opacity:.65;cursor:wait}
html body.erp-system-ui #shops [data-shop-sync-all][hidden],html body.erp-system-ui #shops .ss-batchbar[hidden]{display:none!important}
body.erp-system-ui #shops .ss-batchbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;padding:12px 18px;margin:0 16px 14px;background:var(--theme-accent-soft,#dff5f8);border:1px solid color-mix(in srgb,var(--theme-accent,#20aec2) 20%,#e7edf3);border-radius:8px}
body.erp-system-ui #shops .ss-batch-caption{color:var(--erp-text-2,#475467);font-size:12px;font-weight:500}
body.erp-system-ui #shops .ss-batchbar progress{width:150px;height:6px;appearance:none;border:0;border-radius:5px;overflow:hidden;accent-color:var(--theme-accent,#20aec2);background:#fff}
body.erp-system-ui #shops .ss-batchbar progress::-webkit-progress-bar{background:#fff;border-radius:5px}
body.erp-system-ui #shops .ss-batchbar progress::-webkit-progress-value{background:var(--theme-accent,#20aec2);border-radius:5px}
body.erp-system-ui #shops .ss-batchbar progress::-moz-progress-bar{background:var(--theme-accent,#20aec2);border-radius:5px}
body.erp-system-ui #shops .ss-batch-hint{font-size:11px;color:var(--erp-text-3,#7c899b)}
@media(max-width:900px){body.erp-system-ui #shops .shop-manage-head{flex-wrap:wrap;gap:12px}body.erp-system-ui #shops .shop-head-actions{flex-wrap:wrap;justify-content:flex-start}body.erp-system-ui #shops .ss-batchbar{margin-left:12px;margin-right:12px}}
body.erp-system-ui #shops .shop-manage-head{flex-wrap:wrap;row-gap:12px}
body.erp-system-ui #shops .shop-head-actions{flex-wrap:wrap;max-width:100%}
.ss-schedule-status{margin:0 0 12px;padding:10px 14px;border:1px solid var(--theme-accent-border,#dceaf0);border-radius:8px;background:var(--theme-accent-soft,#eff9fa);color:var(--theme-accent-deep,#148fa2);font-size:12px;line-height:1.7}
.ss-schedule-status[hidden]{display:none!important}
.ss-schedule-dialog{width:min(560px,94vw)}
.lc-dialog label.ss-schedule-toggle{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:16px;background:var(--theme-accent-soft,#eff9fa);border-radius:9px}
.ss-schedule-toggle b,.ss-schedule-toggle small{display:block}.ss-schedule-toggle small{font-size:12px;color:#7c8b9c;margin-top:4px}
body.erp-system-ui .ss-schedule-dialog .ss-schedule-toggle input{width:18px!important;min-height:18px!important;height:18px!important;accent-color:var(--theme-accent,#20aec2);appearance:auto!important}
.ss-schedule-meta{display:grid;gap:7px;font-size:12px;color:var(--erp-text-2,#475467)}
.ss-schedule-dialog footer{gap:9px}

/* v5.2.4 — 授权店铺同步防跳动：状态固定单行、避免轮询反复撑高表格。 */
html body.erp-system-ui #shops [data-shop-sync-status]:not(:empty){
  height:30px;
  min-height:30px;
  max-height:30px;
  margin-top:5px;
  overflow:hidden;
  overflow-anchor:none;
}
html body.erp-system-ui #shops .ss-inline-compact{
  height:30px;
  max-width:320px;
  display:flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
  overflow:hidden;
  color:var(--erp-text-2,#63748a);
  font-size:11px;
  line-height:30px;
}
html body.erp-system-ui #shops .ss-inline-dot{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:999px;
  background:#9aa8b7;
}
html body.erp-system-ui #shops .ss-inline-compact.ss-running .ss-inline-dot,
html body.erp-system-ui #shops .ss-inline-compact.ss-queued .ss-inline-dot{background:var(--theme-accent,#20aec2);box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-accent,#20aec2) 12%,transparent)}
html body.erp-system-ui #shops .ss-inline-compact.ss-done .ss-inline-dot{background:#2ea676}
html body.erp-system-ui #shops .ss-inline-compact.ss-partial .ss-inline-dot{background:#d49a35}
html body.erp-system-ui #shops .ss-inline-compact.ss-error .ss-inline-dot{background:#d66a5b}
html body.erp-system-ui #shops .ss-inline-state{
  min-width:0;
  max-width:190px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
html body.erp-system-ui #shops .ss-inline-progress{
  flex:0 0 auto;
  min-width:28px;
  text-align:center;
  color:var(--erp-text-3,#7c899b);
  font-variant-numeric:tabular-nums;
}
html body.erp-system-ui #shops .ss-inline-compact .ss-details{
  flex:0 0 auto;
  padding:0!important;
  line-height:30px;
  white-space:nowrap;
}
html body.erp-system-ui #shops :is(.shop-table-wrap,.ss-batchbar){overflow-anchor:none}


/* v5.2.12 — 授权店铺真正防抖：同步期间不允许状态文字改变表格/按钮的几何尺寸。 */
html body.erp-system-ui #shops .shop-table{
  table-layout:fixed;
  min-width:1220px;
}
html body.erp-system-ui #shops .shop-table th:nth-child(1),
html body.erp-system-ui #shops .shop-table td:nth-child(1){width:170px}
html body.erp-system-ui #shops .shop-table th:nth-child(2),
html body.erp-system-ui #shops .shop-table td:nth-child(2){width:165px}
html body.erp-system-ui #shops .shop-table th:nth-child(3),
html body.erp-system-ui #shops .shop-table td:nth-child(3){width:90px}
html body.erp-system-ui #shops .shop-table th:nth-child(4),
html body.erp-system-ui #shops .shop-table td:nth-child(4){width:90px}
html body.erp-system-ui #shops .shop-table th:nth-child(5),
html body.erp-system-ui #shops .shop-table td:nth-child(5){width:110px}
html body.erp-system-ui #shops .shop-table th:nth-child(6),
html body.erp-system-ui #shops .shop-table td:nth-child(6){width:145px}
html body.erp-system-ui #shops .shop-table th:nth-child(7),
html body.erp-system-ui #shops .shop-table td:nth-child(7){width:145px}
html body.erp-system-ui #shops .shop-table th:nth-child(8),
html body.erp-system-ui #shops .shop-table td:nth-child(8){width:345px!important;min-width:345px!important}

html body.erp-system-ui #shops .shop-row-actions{
  width:330px;
  min-width:330px;
  max-width:330px;
}
html body.erp-system-ui #shops [data-shop-sync-button]{
  width:88px!important;
  min-width:88px!important;
  max-width:88px!important;
  padding-left:8px!important;
  padding-right:8px!important;
}
html body.erp-system-ui #shops [data-shop-sync-status]{
  width:320px;
  min-width:320px;
  max-width:320px;
}
html body.erp-system-ui #shops .ss-inline-compact{
  width:320px;
  min-width:320px;
  max-width:320px;
}
html body.erp-system-ui #shops [data-shop-sync-all]{
  width:142px;
  min-width:142px;
  max-width:142px;
  justify-content:center;
}
html body.erp-system-ui #shops [data-shop-sync-all][aria-busy="true"]{
  position:relative;
}
html body.erp-system-ui #shops [data-shop-sync-all][aria-busy="true"]::after{
  content:"";
  width:12px;
  height:12px;
  margin-left:7px;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:50%;
  flex:0 0 12px;
  animation:ss-spin-v5212 .8s linear infinite;
}
@keyframes ss-spin-v5212{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){
  html body.erp-system-ui #shops [data-shop-sync-all][aria-busy="true"]::after{animation:none}
}
