/* Design & Content Viewer pages. Loaded after client.css so portal rules do not pad these cards. */

.heads-page .heads-note {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--gray-500, #6b7280);
}

.heads-page .content-header {
  margin-bottom: 4px;
}

.heads-page .heads-assignee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.heads-page .comment-attachments {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.heads-page .comment-attachments a,
.heads-page .attachment-name {
  font-size: 0.8rem;
  color: var(--primary, #005983);
  font-weight: 600;
}

.heads-page .attachment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.heads-page .stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.heads-page .filter-row {
  align-items: center;
}

.heads-page .task-title-cell a,
.heads-page .table-project-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .heads-page .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .heads-page .stats-grid {
    grid-template-columns: 1fr;
  }
}

.heads-page .small-avatar {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.heads-page .text-muted-sm {
  margin: 0;
  color: #6b7280;
}

.heads-page .heads-task-milestone {
  margin-top: 2px;
  font-size: 11px;
  color: #6b7280;
}

.heads-page .section-card {
  padding: 0;
  box-shadow: none;
  border-radius: 12px;
  overflow: hidden;
}

.heads-page .two-col {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.heads-page .task-badges .badge svg,
.heads-page .subtask-checkbox svg {
  fill: currentColor;
  stroke: currentColor;
}

.heads-page .subtask-checkbox {
  pointer-events: none;
}

.heads-page .label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.heads-page .property-value a {
  color: var(--primary, #005983);
  font-weight: 600;
}

.heads-page .comment-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.heads-page .comment-own-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.heads-page .comment-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  line-height: 0;
}

.heads-page .comment-action-btn:hover:not(:disabled) {
  color: #111827;
  background: #f3f4f6;
}

.heads-page .comment-action-btn--delete:hover:not(:disabled) {
  color: #dc2626;
  background: #fef2f2;
}

.heads-page .comment-mention-at {
  font-weight: 700;
  color: #6b7280;
}

.heads-page .comment-text .comment-mention-name {
  font-weight: 600;
}

.heads-page .heads-task-attachments {
  overflow: visible;
}

.heads-page .heads-task-attachments .section-card-body {
  padding: 16px 20px 20px;
}

.heads-page .heads-task-attachments {
  margin-top: 24px;
}

.heads-page .heads-task-attachments .attachment-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--gray-400, #9ca3af);
  cursor: pointer;
}

.heads-page .heads-task-attachments .attachment-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
}

@media (max-width: 1200px) {
  .heads-page .two-col {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 900px) {
  .heads-page .two-col {
    grid-template-columns: 1fr;
  }
}

.heads-page .heads-task-detail .section-card-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800, #1f2937);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}
.heads-page .heads-task-detail .task-title {
  font-size: 1.25rem;
  margin: 0;
}
.heads-page .heads-task-detail .section-card {
  margin-bottom: 20px;
}
.heads-page .heads-task-detail .comment-avatar {
  width: 36px;
  height: 36px;
  font-size: 13px;
  background: #f3f4f6;
  color: #4b5563;
}
.heads-page .heads-task-detail .comment-avatar.badge-purple {
  background: #ede9fe;
  color: #7c3aed;
}
.heads-page .heads-task-detail .comment-avatar.badge-blue {
  background: #dbeafe;
  color: #1e40af;
}
.heads-page .heads-task-detail .comment-avatar.badge-gray {
  background: #f3f4f6;
  color: #4b5563;
}
.heads-page .heads-task-detail .comment-avatar.badge-orange {
  background: #fff7ed;
  color: #c2410c;
}
.heads-page .heads-task-detail .description-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.heads-page .heads-task-detail .attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.heads-page .heads-task-detail .heads-attachment-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.heads-page .heads-task-detail .task-badges .badge svg {
  fill: currentColor;
  stroke: none;
  width: 14px;
  height: 14px;
}
