/* 橙岛 ERP · 活动管理 + 自动退出活动（复用 erp-ps.css 的抽屉 / 弹窗 / 标记样式） */
.ac-table tr.ac-row { cursor: pointer; }
.ac-table tr.ac-row:hover td { background: var(--hover, #f7f7f9); }
.ac-title { font-weight: 600; font-size: 13px; color: var(--text); max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-title.lg { font-size: 15px; max-width: 640px; }
.ac-type { color: var(--yj-purple, #6d28d9); }
.ac-tag { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; font-size: 11px; line-height: 18px; background: var(--hover, #f2f2f5); color: var(--muted); white-space: nowrap; }
.ac-tag.auto { background: #eef2ff; color: #4338ca; }
.ac-tag.boost { background: #fff4e0; color: #9a5b00; }
.ac-time { font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.ac-freeze { font-size: 11px; color: #9a5b00; }
.ac-num { font-variant-numeric: tabular-nums; }
.ac-disc { color: #b42318; font-variant-numeric: tabular-nums; }
.ac-pos { color: #067647; } .ac-low { color: #9a5b00; } .ac-neg { color: #b42318; font-weight: 600; }
.ac-pos small, .ac-low small, .ac-neg small { font-size: 11px; opacity: .85; }
.ac-head { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ac-head-main { flex: 1; min-width: 260px; }
.ac-kpis { display: flex; gap: 18px; }
.ac-kpis div { display: flex; flex-direction: column; align-items: center; min-width: 56px; }
.ac-kpis b { font-size: 18px; font-variant-numeric: tabular-nums; color: var(--text); }
.ac-kpis span { font-size: 11px; color: var(--muted); }
.ac-ptable .ps-flags .ac-tag { margin: 0 4px 4px 0; }
.ac-sec { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.ac-sec small { font-weight: 400; }
.ac-pad { padding: 8px 0 12px; }
.ax-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 14px 16px; }
.ax-card { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ax-card > span { font-size: 12px; color: var(--muted); }
.ax-card > b { font-size: 16px; font-variant-numeric: tabular-nums; }
.ax-card small { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ax-card.dry { border-color: #f5c46b; background: #fffbf0; }
.ax-card.live { border-color: #f04438; background: #fff5f4; }
.yj-select.sm { height: 24px; padding: 0 4px; font-size: 12px; }
.ac-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ac-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.ac-switch i { width: 34px; height: 20px; border-radius: 10px; background: #d0d5dd; position: relative; transition: background .15s; flex: none; }
.ac-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.ac-switch input:checked + i { background: var(--yj-purple, #6d28d9); }
.ac-switch input:checked + i::after { left: 16px; }
.ac-switch input:focus-visible + i { outline: 2px solid var(--yj-purple, #6d28d9); outline-offset: 2px; }
.ac-switch b { font-size: 14px; }
.ax-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; padding: 14px 16px; }
.ax-rule { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.ax-rule.wide { grid-column: 1 / -1; }
.ax-rule small { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.ac-ck { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; }
.ac-lbl { color: var(--text); }
.ac-types { display: flex; gap: 14px; flex-wrap: wrap; }
.ac-ta { width: 100%; max-width: 560px; border: 1px solid var(--line-strong, #d9d9de); border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 13px; background: var(--surface, #fff); color: var(--text); resize: vertical; }
.ax-foot { display: flex; align-items: center; gap: 8px; padding: 10px 16px 14px; font-size: 12px; }
.ac-danger { background: #d92d20 !important; border-color: #d92d20 !important; }
.ac-page .ps-panel + .ps-panel { margin-top: 12px; }
.ac-page .ps-dialog .ps-form p { font-size: 13px; line-height: 1.7; margin: 0 0 12px; }
@media (max-width: 1100px) { .ax-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ax-grid { grid-template-columns: 1fr; } }
body.dark .ax-card.dry, [data-theme="dark"] .ax-card.dry { background: #2e2610; border-color: #7a5b16; }
body.dark .ax-card.live, [data-theme="dark"] .ax-card.live { background: #3a1616; border-color: #8a2a22; }
body.dark .ac-tag.auto, [data-theme="dark"] .ac-tag.auto { background: #23264a; color: #a5b4fc; }
body.dark .ac-tag.boost, [data-theme="dark"] .ac-tag.boost { background: #3a2c10; color: #f5c46b; }
body.dark .ac-switch i, [data-theme="dark"] .ac-switch i { background: #475467; }
