/* 汇总详情页面 */
.summary-detail-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.detection-legend {
  display: flex;
  gap: 24px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.summary-actions-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.edit-actions {
  display: flex;
  gap: 8px;
}

.det-edit-select {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  font-size: 12px;
  cursor: pointer;
  background: var(--bg-card);
}

.det-edit-select.edit-completed {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

.det-edit-select.edit-warning {
  background: rgba(255, 193, 7, 0.2);
  color: #FFC107;
}

.det-edit-select.edit-pending {
  background: rgba(158, 158, 158, 0.2);
  color: #9E9E9E;
}

.det-edit-select.edit-empty {
  background: rgba(0, 0, 0, 0.1);
  color: #666;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.completed {
  background: var(--success);
}

.legend-dot.warning {
  background: var(--warning);
}

.legend-dot.pending {
  background: var(--text-muted);
}

.summary-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.summary-table th {
  background: linear-gradient(180deg, rgba(0, 180, 216, 0.15) 0%, rgba(0, 180, 216, 0.05) 100%);
  color: var(--text-primary);
  font-weight: 600;
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.summary-table th.sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(0, 180, 216, 0.2) 0%, rgba(0, 180, 216, 0.1) 100%);
}

.summary-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 180, 216, 0.08);
  color: var(--text-secondary);
}

.summary-table tr:hover td {
  background: rgba(0, 180, 216, 0.05);
}

.summary-table td.sticky-col {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg-card);
}

.summary-table tr:hover td.sticky-col {
  background: rgba(0, 180, 216, 0.1);
}

.ship-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 180, 216, 0.12);
  border: 1px solid rgba(0, 180, 216, 0.2);
  border-radius: 6px;
  font-family: "Consolas", "Monaco", monospace;
  font-weight: 600;
  color: var(--accent-cyan);
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.status-badge.status-正常 {
  background: rgba(0, 230, 118, 0.15);
  color: var(--success);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.status-badge.status-维修 {
  background: rgba(255, 179, 0, 0.15);
  color: var(--warning);
  border: 1px solid rgba(255, 179, 0, 0.3);
}

.status-badge.status-停用 {
  background: rgba(255, 82, 82, 0.15);
  color: var(--danger);
  border: 1px solid rgba(255, 82, 82, 0.3);
}

.det-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

.det-icon.completed {
  background: rgba(0, 230, 118, 0.2);
  color: var(--success);
}

.det-icon.warning {
  background: rgba(255, 179, 0, 0.2);
  color: var(--warning);
}

.det-icon.pending {
  background: rgba(100, 100, 120, 0.2);
  color: var(--text-muted);
}

.det-icon.empty {
  color: var(--text-muted);
}

.task-status-cell {
  text-align: center;
  padding: 8px;
}

.task-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
}

.task-icon.task-completed {
  background: #4caf50;
  color: white;
}

.task-icon.task-warning {
  background: #ff9800;
  color: white;
}

.task-icon.task-pending {
  background: #e0e0e0;
  color: #999;
}

.summary-stats-row {
  display: flex;
  gap: 16px;
}

.summary-stat-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.stat-icon.normal-icon {
  background: rgba(0, 230, 118, 0.15);
  color: var(--success);
}

.stat-icon.repair-icon {
  background: rgba(255, 179, 0, 0.15);
  color: var(--warning);
}

.stat-icon.disabled-icon {
  background: rgba(255, 82, 82, 0.15);
  color: var(--danger);
}

.summary-stat-card .stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: "Consolas", "Monaco", monospace;
}

.summary-stat-card .stat-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
