/* ===== 日报表单特殊样式 ===== */
.lead-inputs { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; }
.lead-inputs input { text-align: center; }
.lead-inputs .lead-field { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lead-inputs .lead-field .lead-label { font-size: 11px; color: var(--text-secondary); font-weight: 500; }
.lead-inputs .lead-field input { text-align: center; width: 100%; }

/* ===== 日报列表 ===== */
.report-table { table-layout: fixed; border-collapse: collapse; width: 100%; min-width: 1100px; font-size: 14px; }
.report-table th {
  background: #fafbfc;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 10px 8px;
  border-bottom: 2px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 10;
  overflow: hidden;
  text-overflow: ellipsis;
}
.report-table th.num { text-align: right; }
.report-table th.actions-col,
.report-table td.actions-col {
  text-align: left;
  padding-left: 8px;
  width: 180px;
  min-width: 180px;
  overflow: visible;
}
.report-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--transition);
}
.report-table td:nth-child(12),
.report-table td.actions-col {
  overflow: visible;
  text-overflow: unset;
}
.report-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
}

/* 数字列居中对齐：平台(3) 留资(5) 签约(6) 发布(7) 投流(8) 私信(9) 评论(10) 粉丝(11) 状态(12) */
.report-table td:nth-child(3),
.report-table td:nth-child(5),
.report-table td:nth-child(6),
.report-table td:nth-child(7),
.report-table td:nth-child(8),
.report-table td:nth-child(9),
.report-table td:nth-child(10),
.report-table td:nth-child(11),
.report-table td:nth-child(12) {
  text-align: center;
}
.report-table th:nth-child(12) {
  width: 70px;
}

/* 账号列截断 */
.report-table td:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
}
.report-table td:nth-child(2) strong {
  max-width: 100%;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* 主行 hover */
.report-row { transition: var(--transition); }
.report-row:hover { background: #e8f4ff !important; }
.report-row:hover td { color: var(--primary-dark); }

/* ===== 日报账号块 ===== */
.report-block {
  border: 1px solid #e0e6ed; border-radius: 10px;
  margin-bottom: 16px; overflow: hidden;
  background: #fff;
}
.report-block-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; background: #f5f7fa; border-bottom: 1px solid #e8ecf0;
  cursor: pointer; user-select: none;
}
.report-block-header:hover { background: #edf1f7; }
.report-block-title { font-size: 14px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.report-block-title .block-num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--primary);
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.report-block-title .block-account { color: var(--text-secondary); font-weight: 400; }
.report-block-body { padding: 16px; display: none; }
.report-block.open .report-block-body { display: block; }

/* ===== 日报详情展开行 ===== */
.report-detail-row td { padding: 0 !important; border-bottom: none; }
.report-detail-content { display: none; padding: 16px 20px; background: #fafbfc; }
.report-detail-row.open .report-detail-content { display: block; }
.rc-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rc-detail-section {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 12px 14px;
}
.rc-detail-title {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 8px;
}
.rc-detail-abc {
  display: flex;
  gap: 6px;
}
.rc-abc-item {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 4px 8px;
  min-width: 44px;
}
.rc-abc-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}
.rc-abc-val {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
}
.rc-detail-pub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rc-detail-pub .chip { margin: 0; }
.rc-detail-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}
.rc-detail-incomplete {
  margin-top: 10px;
  background: var(--danger-light);
  color: var(--danger);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  border-left: 3px solid var(--danger);
}
.rc-detail-toggle {
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  margin-right: 6px;
}
.rc-detail-toggle:hover { text-decoration: underline; }

/* ===== 每日总结弹窗 - 账号卡片列表 ===== */
.summary-account-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}
/* 审阅 - 账号数据行 */
.summary-account-list {
  max-height: 200px;
  overflow-y: auto;
}
.summary-account-list::-webkit-scrollbar { width: 4px; }
.summary-account-list::-webkit-scrollbar-thumb { background: #d9d9d9; border-radius: 2px; }

.summary-acct-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  margin-bottom: 4px;
  transition: box-shadow 0.15s, border-color 0.15s;
  font-size: 13px;
}
.summary-acct-row:hover {
  border-color: #1890ff;
  box-shadow: 0 1px 6px rgba(24,144,255,0.1);
}

.summary-acct-name {
  font-weight: 600;
  color: #333;
  min-width: 120px;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}
.summary-acct-platform {
  font-size: 11px;
  color: #888;
  background: #f0f0f0;
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
}
.summary-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  flex-shrink: 0;
}
.summary-stat-val {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}
.summary-stat-item small {
  font-size: 10px;
  color: #999;
  line-height: 1;
}
.stat-pub .summary-stat-val { color: #52c41a; }
.stat-lead .summary-stat-val { color: #1890ff; }
.stat-msg .summary-stat-val { color: #722ed1; }
.stat-ads .summary-stat-val { color: #fa541c; }

.summary-acct-arrow {
  font-size: 9px;
  color: #bbb;
  transition: transform 0.2s;
  margin-left: auto;
  flex-shrink: 0;
}
.summary-acct-row.expanded .summary-acct-arrow {
  transform: rotate(180deg);
}
.summary-acct-badge {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-left: 2px;
}
.summary-acct-badge.incomplete {
  background: #fff2f0;
  color: #ff4d4f;
  border: 1px solid #ffccc7;
}
.summary-acct-row.expanded .summary-acct-arrow {
  transform: rotate(180deg);
}

/* 展开明细 */
.summary-acct-detail-row {
  display: none;
  padding: 6px 10px 8px;
  border-top: 1px dashed #f0f0f0;
  gap: 10px;
  align-items: flex-start;
}
.summary-detail-label {
  font-size: 11px;
  color: #999;
  white-space: nowrap;
  min-width: 32px;
  flex-shrink: 0;
  padding-top: 2px;
}
.summary-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.summary-tag {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.summary-tag b { font-weight: 700; }
.tag-pub {
  background: #f6ffed;
  color: #389e0d;
  border: 1px solid #b7eb8f;
}
.tag-lead {
  background: #e6f7ff;
  color: #096dd9;
  border: 1px solid #91d5ff;
}

/* 未完成原因 - 行布局 */
.inc-cat-list {
  border: 1px solid #ffccc7;
  border-radius: 8px;
  overflow: hidden;
}
.inc-cat-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  transition: background 0.15s;
}
.inc-cat-row:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}
.inc-cat-row.inc-cat-disabled {
  background: #fafafa;
}
.inc-cat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  min-width: 90px;
  padding-top: 7px;
  flex-shrink: 0;
}
.inc-cat-label input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}
.inc-cat-inputs {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.inc-cat-count {
  width: 90px;
  padding: 6px 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
  flex-shrink: 0;
}
.inc-cat-reason-wrap {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.inc-cat-reason {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
  resize: vertical;
  min-height: 32px;
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.5;
}
.inc-cat-reason:focus {
  border-color: #ff7875;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,77,79,0.1);
}
.inc-cat-hint {
  font-size: 11px;
  color: #999;
  line-height: 1.3;
}
