/* ============================================================
   ops.css — 运维端（ops 角色）操作能力补强
   覆盖：行内操作列 / 筛选条 / 详情与表单弹窗 / 公告列表
   依赖：base.css 的 --cblue / --ink / --muted / --line / --text
   ============================================================ */

/* ---------- 行内操作列 ---------- */
.ops-act-th,
td.ops-act { white-space: nowrap; text-align: right; }
td.ops-act .c-link + .c-link { margin-left: 10px; }
td.ops-act .c-link[disabled] { color: #C3C8D6; cursor: not-allowed; }
.c-table td.ops-act .c-link { color: var(--cblue); cursor: pointer; font-size: 12.5px; }
.c-table td.ops-act .c-link:hover { text-decoration: underline; }
.c-table td.ops-act .c-link.danger { color: #D14343; }
.c-table tr.ops-hide { display: none; }

/* ---------- 表格上方筛选条 ---------- */
.ops-filter {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: -4px 0 14px;
}
.ops-filter input,
.ops-filter select {
  height: 32px; padding: 0 10px; font-size: 12.5px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text);
}
.ops-filter input { width: 200px; }
.ops-filter .ops-filter-k { font-size: 12.5px; color: var(--muted); }
.ops-filter .ops-filter-n { font-size: 12.5px; color: var(--muted); margin-left: auto; }

/* ---------- 通用弹窗（复用 sm-mask / sm-card 外观） ---------- */
.ops-mask { z-index: 300; }
.ops-card { width: min(620px, 100%); }
.ops-card .sm-body { padding: 18px 20px; }

/* 详情键值表 */
.ops-dl { display: grid; grid-template-columns: 132px 1fr; row-gap: 11px; column-gap: 14px; }
.ops-dl dt { font-size: 12.5px; color: var(--muted); }
.ops-dl dd { font-size: 13px; color: var(--ink); margin: 0; word-break: break-all; }
.ops-dl-note {
  margin-top: 16px; padding: 10px 12px; border-radius: 8px;
  background: #F6F8FD; color: #5B6478; font-size: 12.5px; line-height: 1.75;
}

/* 表单 */
.ops-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.ops-f { display: flex; flex-direction: column; gap: 6px; }
.ops-f.full { grid-column: 1 / -1; }
.ops-f > span { font-size: 12.5px; color: var(--muted); }
.ops-f input,
.ops-f select {
  height: 34px; padding: 0 10px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text);
}
.ops-f .ops-hint { font-size: 12px; color: #9AA1B5; }

/* 日志块 */
.ops-log {
  max-height: 320px; overflow: auto; margin: 0; padding: 12px 14px;
  background: #0F172A; border-radius: 8px; color: #C9D4E8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.85; white-space: pre-wrap;
}

/* ---------- 平台公告列表 ---------- */
.ops-notice-list { display: flex; flex-direction: column; gap: 10px; }
.ops-notice {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: #fff;
}
.ops-notice-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ops-notice-head b { font-size: 13.5px; color: var(--ink); }
.ops-notice-head .ops-notice-time { margin-left: auto; font-size: 12px; color: #9AA1B5; }
.ops-notice-body { font-size: 12.5px; color: #5B6478; line-height: 1.75; }
.ops-empty { padding: 26px 0; text-align: center; color: #9AA1B5; font-size: 13px; }

/* ---------- 列表分页 ---------- */
/* 分页隐藏与筛选隐藏分开两套 class：
   .ops-hide       → 被筛选条件排除（数据维度）
   .ops-page-hide  → 不在当前页（视图维度），两者互不干扰 */
.c-table tbody tr.ops-page-hide { display: none; }

.ops-pager {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 12px 2px 2px;
}
.ops-pager-total { font-size: 12.5px; color: var(--muted); margin-right: 6px; }

.ops-pg {
  min-width: 30px; height: 30px; padding: 0 8px;
  font-size: 12.5px; line-height: 28px; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.ops-pg:hover:not(:disabled) { border-color: var(--cblue); color: var(--cblue); }
.ops-pg.on {
  background: var(--cblue); border-color: var(--cblue); color: #fff; font-weight: 600;
}
.ops-pg:disabled { color: #C3C8D6; cursor: not-allowed; background: #FAFBFD; }
.ops-pg-dots { padding: 0 2px; font-size: 12.5px; color: #9AA1B5; }

.ops-pager-size { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.ops-pager-size select {
  height: 30px; padding: 0 6px; margin: 0 2px;
  font-size: 12.5px; color: var(--text);
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
