/*
 * Mijn taken (/taken) and Mentions (/mentions) — UX overhaul phase 6.
 * Spec: docs/ux-overhaul/mockup/Inbox.dc.html. Shared building blocks
 * (.gp-card, .gp-seg, .gp-list-item, .gp-split, .gp-btn) live in
 * ux_components.css; this file only places them. Text colours via tokens.
 * Phone rules at the bottom.
 */

/* ── Page head: plain title, segmented filter, optional action ── */
.inbox-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  margin-bottom: 18px;
}
.inbox-head .gp-page-title { flex: 1 1 auto; }
.inbox-head-action { margin: 0; }

/* ── Urgency groups on /taken (Open filter) ── */
.todo-group-heading {
  margin: 0; padding: 12px 20px; border-bottom: 1px solid var(--gp-line);
  font-family: var(--gp-font-heading); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--gp-navy);
}
.todo-group-overdue .todo-group-heading {
  background: var(--gp-red-tint); color: var(--gp-red-ink); border-bottom-color: var(--gp-red-border);
}
/* Completing or deleting every row of a group leaves its heading behind until
   the next load; hide a group that has no rows left. */
.todo-group:not(:has(.todo-row)) { display: none; }

.todo-group .todo-inbox .todo-row { padding: 12px 20px; border-bottom-color: var(--gp-line); }
.todo-inbox .todo-row-view { align-items: center; gap: 12px; }
.todo-inbox .todo-title { font-weight: 600; color: var(--gp-ink); }
.todo-inbox .todo-actions { gap: 6px; }
.todo-inbox .todo-actions form { margin: 0; }

/* "Verzet" (the inline editor's opener in the inbox) is a quiet button, not
   the bare pencil the lead page uses. Restated over .todo-edit-btn. */
.todo-inbox .todo-edit-btn.gp-btn {
  padding: 0 10px; border: 1px solid var(--gp-line); background: #fff;
  color: var(--gp-ink); font-size: 0.8rem; line-height: 1;
}
.todo-inbox .todo-edit-btn.gp-btn:hover { background: var(--gp-surface); color: var(--gp-ink); }

/* ── Mentions rail on /taken ── */
.inbox-mentions-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid var(--gp-line);
}
.inbox-mentions-head .gp-eyebrow { flex: 1 1 auto; }
.inbox-mentions-all { font-weight: 700; font-size: 0.85rem; color: var(--gp-navy); }
.inbox-mention-body { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; color: var(--gp-ink); }
.inbox-mention-excerpt { font-size: 0.85rem; color: var(--gp-body); overflow-wrap: anywhere; }
.inbox-mention-foot { display: flex; align-items: center; gap: 8px; }
.inbox-mention-time { flex: 1 1 auto; font-size: 0.8rem; color: var(--gp-body); }
.inbox-mentions-empty { margin: 0; padding: 14px 20px; font-size: 0.9rem; color: var(--gp-body); }

/* ── /mentions rows ── */
.mention-row { align-items: center; }
.mention-row.unread { background: var(--gp-surface); box-shadow: inset 3px 0 0 var(--gp-navy); }
.mention-body { font-size: 0.9rem; color: var(--gp-ink); }
.mention-meta { font-size: 0.8rem; color: var(--gp-body); }
.mention-excerpt { margin-top: 4px; color: var(--gp-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.mention-actions { display: flex; align-items: center; gap: 6px; }
.mention-actions form { margin: 0; }

/* ── Phone ── */
@media (max-width: 768px) {
  /* Actions drop under the title so a long lead name never pushes the page
     sideways. */
  .todo-inbox .todo-row-view { grid-template-columns: auto minmax(0, 1fr); }
  .todo-inbox .todo-actions { grid-column: 2; flex-wrap: wrap; }
  .todo-group .todo-inbox .todo-row { padding: 12px 14px; }
  .todo-group-heading, .inbox-mentions-head, .inbox-mentions-empty { padding-left: 14px; padding-right: 14px; }
  /* Touch targets >= 40px. */
  .todo-inbox .todo-check, .todo-inbox .todo-delete { min-width: 40px; min-height: 40px; }
  .inbox-mentions-all { display: inline-flex; align-items: center; min-height: 40px; }
  .mention-actions { flex-basis: 100%; justify-content: flex-end; }
}
