/* ============================================================
 * extra.css —— 补充组件样式（待办行、登录卡、指标列表等）
 * ============================================================ */

.popover { position: fixed; }

/* 待办 / 报警列表行 */
.todo-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 4px; border-bottom: 1px solid var(--border-light); cursor: pointer;
}
.todo-row:last-child { border-bottom: none; }
.todo-row:hover .todo-title { color: var(--primary); }
.todo-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.todo-title { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-sub { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-right { display: flex; gap: 6px; flex-shrink: 0; }

/* 提示条 */
.notice {
  background: var(--primary-soft); border: 1px solid #dbeafe; color: #1e40af;
  padding: 12px 14px; border-radius: 8px; font-size: 13px; line-height: 1.6;
}
.notice-danger { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

/* 指标列表 */
.metric-list { display: flex; flex-direction: column; }
.metric-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 2px; border-bottom: 1px dashed var(--border-light); font-size: 13px;
}
.metric-item:last-child { border-bottom: none; }
.metric-item span { color: var(--text-2); }
.metric-item b { color: var(--text); font-size: 14px; }

/* 权限标签 */
.perm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.perm-chip {
  background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0;
  padding: 5px 11px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.perm-table th:first-child, .perm-table td:first-child { min-width: 140px; }

/* 工单详情 */
.wo-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.wo-flow-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #fafbfc; border: 1px solid var(--border); border-radius: 9px;
  padding: 11px 14px; margin-top: 6px;
}
.tab-pane[hidden] { display: none; }

/* 操作类型标签 */
.action-tag {
  display: inline-block; background: #f2f4f7; color: #475467;
  padding: 2px 9px; border-radius: 5px; font-size: 12px; font-weight: 600;
}

/* 筛选复选框 */
.check-filter {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  color: var(--text-2); cursor: pointer; user-select: none;
}
.check-filter input { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }

/* 登录卡片 */
.login-card {
  background: #fff; border-radius: 18px; padding: 36px 38px;
  width: 400px; max-width: 100%; box-shadow: var(--shadow-lg); text-align: center;
}
.login-logo {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 15px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.login-logo svg { width: 30px; height: 30px; }
.login-card h2 { font-size: 19px; font-weight: 700; }
.login-card .form-field { text-align: left; }
.login-tip { margin-top: 18px; font-size: 11px; color: var(--text-3); line-height: 1.6; }
