/* AI 客服页（O-12/O-13）样式：照原型 renderAIService() 的两卡 + 话术库表口径。
   styles.css 已超行数上限（棘轮只许缩小），新样式不写进 styles.css（先例 ops-feedback.css / ops-order.css）。
   标注 #33 / #74（AI 客服页未对齐设计稿）＋ #33 后半句「模型设置放在技术设置板块」。 */

/* 配置两卡：设计稿是 1fr 1fr 两列，窄屏落回单列 */
.oc .ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 1080px) { .oc .ai-grid { grid-template-columns: 1fr; } }

.oc .ai-config-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f1f3; }
.oc .ai-config-row:last-child { border-bottom: none; padding-bottom: 0; }
.oc .ai-config-name { font-size: 13px; font-weight: 600; color: #1f2937; }
.oc .ai-config-sub { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.oc .ai-clock { display: flex; align-items: center; gap: 6px; }
.oc .ai-clock-sep { color: #9ca3af; font-size: 11.5px; }
.oc .ai-time { width: 92px; padding: 4px 8px; font-size: 11px; }
.oc .ai-threshold { width: 132px; }

/* 今日数据：四张指标卡（设计稿 2×2 网格，色块分色） */
.oc .ai-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.oc .ai-metric { border-radius: 8px; padding: 12px 8px; text-align: center; }
.oc .ai-metric-value { font-size: 22px; font-weight: 800; }
.oc .ai-metric-label { font-size: 10.5px; color: #6b7280; margin-top: 2px; }
.oc .ai-metric-samples { font-size: 10px; color: #9ca3af; margin-top: 4px; }
.oc .ai-metric-replies { background: #f0fdf4; }
.oc .ai-metric-replies .ai-metric-value { color: #16a34a; }
.oc .ai-metric-resolve_rate { background: #fef3c7; }
.oc .ai-metric-resolve_rate .ai-metric-value { color: #d97706; }
.oc .ai-metric-handoff_count { background: #dbeafe; }
.oc .ai-metric-handoff_count .ai-metric-value { color: #2563eb; }
.oc .ai-metric-avg_response { background: #fce7f3; }
.oc .ai-metric-avg_response .ai-metric-value { color: #db2777; }

/* 话术库表：设计稿列宽 120 / 1fr / 100 / 80 / 100（.oc-td 默认 flex:1，这里逐列钉宽） */
.oc .oc-table.order-table .oc-td.ai-kw { flex: 0 0 120px; font-weight: 600; color: #8b1a1a; }
.oc .oc-table.order-table .oc-td.ai-reply { flex: 1 1 auto; min-width: 0; color: #4b5563; }
.oc .oc-table.order-table .oc-td.ai-cat { flex: 0 0 100px; color: #6b7280; }
.oc .oc-table.order-table .oc-td.ai-status { flex: 0 0 80px; }
.oc .oc-table.order-table .oc-td.ai-ops { flex: 0 0 132px; display: flex; gap: 4px; }
.oc .ai-status-text { font-weight: 600; }
.oc .ai-status-text.aist-on { color: #16a34a; }
.oc .ai-status-text.aist-off { color: #9ca3af; }
.oc .ai-ops .btn-sm { border: 1px solid #e5e7eb; background: #fff; color: #4b5563; border-radius: 6px; padding: 2px 8px; font-size: 10.5px; cursor: pointer; font-family: inherit; }
.oc .ai-ops .btn-sm:hover { border-color: #8b1a1a; color: #8b1a1a; }

.oc .ai-empty { padding: 28px 10px; text-align: center; font-size: 12.5px; color: #9ca3af; line-height: 1.9; }
.oc .ai-banner { margin-bottom: 14px; }
