/* Operation activity page styles (daily-trial legacy kept for wallet & simulation). */

/* ---- 通用信息条 ---- */
.daily-trial-info { margin: 0; padding: 10px 12px; border: 1px solid #cad8ec; border-radius: 8px; background: #f3f7fd; color: #304766; font-size: 12px; line-height: 1.5; }
.daily-trial-info strong { color: #203d6d; }
.daily-trial-muted { color: var(--muted); font-size: 12px; }
.daily-trial-empty { padding: 28px 18px; border: 1px dashed var(--line-strong, #cbd5e1); border-radius: 10px; color: var(--muted); text-align: center; font-size: 13px; }
.daily-trial-error { min-height: 20px; margin: 0; color: #a23b36; font-size: 13px; }
.field-help { color: var(--muted); font-size: 12px; line-height: 1.45; }

/* ---- 页面布局 ---- */
.daily-trial-page { display: grid; gap: 16px; }

/* ---- 筛选工具栏 ---- */
.op-toolbar-panel { padding: 14px 16px; margin: 0; }
.op-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.op-toolbar .control { min-width: 180px; height: 36px; }
.op-toolbar [data-filter-keyword] { min-width: 220px; }
.op-create-btn { margin-left: auto; }
@media (max-width: 720px) { .op-create-btn { margin-left: 0; } .op-toolbar .control { flex: 1 1 160px; } }

/* ---- 规则表格 ---- */
.op-table-panel { padding: 0; margin: 0; overflow: hidden; }
.op-table-panel .panel-head { padding: 14px 16px 10px; }
.op-table-wrap { overflow-x: auto; }
.op-table { width: 100%; min-width: 1180px; border-collapse: collapse; }
.op-table th, .op-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; white-space: nowrap; vertical-align: middle; }
.op-table th { color: var(--muted); font-size: 12px; font-weight: 700; background: var(--surface-soft, #f8fafc); }
.op-table tbody tr:hover { background: var(--brand-soft, #f3f7fd); }
.op-edit-link { min-height: 30px; padding: 0 10px; font-size: 12px; color: #0e7a5f; background: none; border: none; cursor: pointer; }
.op-edit-link:hover { text-decoration: underline; }

/* ---- 分页 ---- */
.op-pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; padding: 12px 16px; font-size: 12px; color: var(--muted); }
.op-pagination .control { width: auto; height: 32px; min-width: 80px; font-size: 12px; }
.op-page-btn, .op-page-num { min-height: 32px; min-width: 32px; padding: 0 8px; font-size: 12px; }
.op-page-num.active { background: var(--brand, #0e9f6e); color: #fff; border-color: var(--brand, #0e9f6e); }
.op-page-goto { display: inline-flex; gap: 6px; align-items: center; }
.op-page-input { width: 56px !important; text-align: center; }

/* ---- 弹窗 ---- */
.op-modal { width: min(680px, calc(100vw - 32px)); }
.op-hint { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: #f3f7fd; color: #304766; font-size: 12px; line-height: 1.5; }
.op-field { display: grid; gap: 7px; margin-bottom: 16px; }
.op-field > span:first-child { color: #344054; font-size: 13px; font-weight: 700; }
.op-field b { color: #a23b36; }
.op-name-input { position: relative; }
.op-name-input .control { width: 100%; padding-right: 56px; }
.op-name-input small { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 12px; }

/* 额度步进器 */
.op-amount { display: flex; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.op-amount .op-step { width: 44px; border: none; border-right: 1px solid var(--line); background: var(--surface-soft, #f8fafc); font-size: 18px; cursor: pointer; color: #344054; }
.op-amount .op-step:last-child { border-right: none; border-left: 1px solid var(--line); }
.op-amount .control { flex: 1; border: none; border-radius: 0; text-align: center; }
.op-amount .control:focus { box-shadow: none; }

/* 状态开关 */
.op-status-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #344054; }
.op-switch { position: relative; width: 46px; height: 24px; border-radius: 999px; border: none; background: #cbd5e1; cursor: pointer; transition: background .15s ease; padding: 0; }
.op-switch.is-on { background: var(--brand, #0e9f6e); }
.op-switch-dot { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.op-switch.is-on .op-switch-dot { transform: translateX(22px); }

/* ---- 账户选择器（标签 + 搜索下拉） ---- */
.op-account-chip-picker { display: grid; gap: 8px; }
.op-chip-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.daily-trial-account-count { color: var(--muted); font-size: 12px; }
.op-chip-box { min-height: 56px; max-height: 220px; overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft, #f8fafc); display: grid; gap: 8px; }
.op-chip-empty { color: var(--muted); font-size: 12px; padding: 6px 4px; }
.op-chip-group { display: grid; gap: 6px; }
.op-chip-group-title { color: var(--muted); font-size: 12px; font-weight: 700; }
.op-chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.op-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12px; line-height: 1.4; cursor: pointer; }
.op-chip:hover { border-color: var(--brand, #0f766e); }
.op-chip-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.op-chip-organization .op-chip-dot { background: #0f766e; }
.op-chip-personal .op-chip-dot { background: #7c3aed; }
.op-chip-label { font-weight: 600; }
.op-chip-id { color: var(--muted); font-size: 11px; }
.op-chip-type { color: var(--muted); font-size: 11px; }
.op-chip-x { color: var(--muted); font-size: 14px; line-height: 1; padding: 0 2px; border-radius: 50%; }
.op-chip-x:hover { color: #b91c1c; background: #fee2e2; }
.op-combo-wrap { position: relative; }
.op-combo-bar { display: flex; gap: 6px; }
.op-combo-bar .control:first-child { flex: 1; min-width: 0; }
.op-combo-bar select { flex: none; width: auto; min-width: 110px; }
.op-combo-dropdown { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 260px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12); display: grid; gap: 2px; }
.op-combo-empty { padding: 8px 10px; color: var(--muted); font-size: 12px; }
.op-combo-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; background: transparent; text-align: left; width: 100%; cursor: pointer; }
.op-combo-item:hover, .op-combo-item.is-active { background: var(--brand-soft, #eef4ff); }
.op-combo-name { flex: 1; min-width: 0; display: grid; gap: 1px; }
.op-combo-name strong { font-size: 13px; }
.op-combo-name small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.op-combo-meta { color: var(--muted); font-size: 11px; flex: none; }
.op-combo-foot { position: sticky; bottom: -4px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; color: var(--muted); font-size: 11px; background: #fff; border-top: 1px solid var(--line); }

/* ---- 原型周期验证（保留） ---- */
.daily-trial-run { margin-top: 4px; }
.daily-trial-run summary { cursor: pointer; font-weight: 700; padding: 14px 16px; }
.daily-trial-run-body { display: grid; gap: 12px; padding: 0 16px 16px; }
.daily-trial-run-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.daily-trial-run-toolbar .field { display: grid; gap: 5px; min-width: 220px; margin: 0; }
.daily-trial-run-toolbar .field span { color: var(--muted); font-size: 12px; }
.daily-trial-clock { display: grid; gap: 5px; min-width: 220px; }
.daily-trial-clock span, .daily-trial-clock small { color: var(--muted); font-size: 12px; }
.daily-trial-clock strong { font-size: 13px; font-weight: 600; }
.daily-trial-run-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.daily-trial-runs { overflow-x: auto; }
.daily-trial-runs table { width: 100%; border-collapse: collapse; min-width: 980px; }
.daily-trial-runs th, .daily-trial-runs td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; vertical-align: top; }
.daily-trial-runs th { color: var(--muted); font-size: 11px; white-space: nowrap; }
.daily-trial-runs td small { display: block; margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }
.daily-trial-batch-detail td { background: #f8fafc; }
.daily-trial-status { display: inline-flex; padding: 3px 7px; border-radius: 999px; background: #ecfdf3; color: #047857; font-size: 11px; white-space: nowrap; }
.daily-trial-status.is-failed, .daily-trial-status.is-unknown { background: #fff1f2; color: #be123c; }
.daily-trial-status.is-skipped { background: #fff7ed; color: #a15c16; }

/* ---- 钱包侧 ---- */
.daily-trial-wallet-panel { margin-top: 16px; }
.daily-trial-wallet-panel .payment-table { min-width: 720px; }
.daily-trial-wallet-panel .payment-table td, .daily-trial-wallet-panel .payment-table th { white-space: nowrap; }

@media (max-width: 860px) {
  .op-toolbar { align-items: stretch; }
  .op-toolbar .btn { flex: 1; }
}
