/* The public issues page (app/Views/bugs/index.php): their comment on the left, our reply on
   the right, one row per comment. */
.bugs { max-width: 1000px; margin: 0 auto; padding: 0 16px 40px; }
.bugs-lead { color: #54647c; margin-bottom: 28px; }

.bug {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid #e3e7ee;
}
.bug:target { background: #fffbe6; }
.bug p { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }

.bug-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; color: #54647c; }
.bug-stars { color: #e0a800; letter-spacing: 1px; }

.bug-priority {
  padding: 1px 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 12px;
  color: #fff;
}
.bug-priority-urgent { background: #c62828; }
.bug-priority-high   { background: #ef6c00; }
.bug-priority-medium { background: #b8860b; }
.bug-priority-low    { background: #2e7d32; }
.bug-priority-none   { background: #8a94a6; }

.bug-ours { padding-left: 24px; border-left: 3px solid #d8e2f0; }
.bug-none { color: #8a94a6; font-style: italic; }

/* An admin's reply: an editable div that reads like the published reply until it is clicked
   into (assets/js/bugs.js). */
.bug-reply {
  min-height: 1.5em;
  margin: -4px -6px;
  padding: 4px 6px;
  border-radius: 4px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  outline: none;
  cursor: text;
}
.bug-reply:hover { background: #f4f7fb; }
.bug-reply:focus { background: #fff; box-shadow: 0 0 0 1px #c9d2e0, 0 0 0 3px #e3ecfb; }
.bug-reply:empty::before { content: attr(data-placeholder); color: #8a94a6; font-style: italic; }

.bug-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 10px; }
.bug-actions[hidden] { display: none; }
.bug-status { font-size: 13px; color: #c62828; }
.bug-save {
  padding: 4px 16px;
  border: 0;
  border-radius: 4px;
  background: #2d6cdf;
  color: #fff;
  cursor: pointer;
}
.bug-save { text-transform: none; }
.bug-save:disabled { opacity: 0.6; cursor: default; }

.bug-delete {
  margin-left: auto;
  padding: 0 6px;
  border: 0;
  background: none;
  color: #8a94a6;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.bug-delete:hover,
.bug-delete:focus { background: none !important; color: #c62828; } /* over style.css's button:hover fill */

@media (max-width: 640px) {
  .bug { grid-template-columns: 1fr; gap: 10px; }
  .bug-ours { padding-left: 12px; }
}

/* BugModel::toHtml(): pasted images, and $...$ maths (rendered by bugs-view.ts). */
.bug-img { display: block; max-width: 100%; height: auto; margin: 8px 0; border-radius: 4px; }
.bug-math-display { display: block; margin: 8px 0; text-align: center; overflow-x: auto; }

/* An admin's reply as published; clicked, it swaps for the editable .bug-reply. */
.bug-reply-view {
  min-height: 1.5em;
  margin: -4px -6px;
  padding: 4px 6px;
  border-radius: 4px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  cursor: text;
}
.bug-reply-view[hidden], .bug-reply[hidden] { display: none; }
.bug-reply-view:hover, .bug-reply-view:focus { background: #f4f7fb; outline: none; }
.bug-reply-view:empty::before { content: attr(data-placeholder); color: #8a94a6; font-style: italic; }
