/* Trash (#/trash). Only theme variables from app.css, so light and dark both work. */

.trash-page .notice { align-items: flex-start; }

/* Search + type chips */
.trash-tools { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.trash-search { position: relative; max-width: 420px; }
.trash-search > svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-3); pointer-events: none;
}
.trash-search .input { padding-left: 36px; }
.trash-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.trash-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px;
  border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); font: 500 13.5px var(--font-ui); cursor: pointer;
}
.trash-chip:hover { color: var(--text); border-color: var(--line-2); }
.trash-chip:focus-visible { outline: none; box-shadow: var(--focus); }
.trash-chip.active { background: var(--teal-soft); border-color: var(--teal-line); color: var(--text); }
.trash-chip-n { font: 500 12px var(--font-mono); color: var(--text-3); }
.trash-chip.active .trash-chip-n { color: var(--teal); }

/* Groups and rows */
.trash-group .card-title { gap: 8px; }
.trash-group .card-title svg { color: var(--teal); }
.trash-row { gap: 10px 16px; align-items: start; }
.trash-main { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.trash-text { min-width: 0; flex: 1; }
.trash-title { overflow-wrap: anywhere; }
.trash-row .row-title { flex-wrap: wrap; row-gap: 4px; }
.trash-row .row-sub > span { overflow-wrap: anywhere; min-width: 0; }
.trash-row .row-actions { align-items: center; flex-wrap: wrap; }
.trash-icon {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px;
  background: var(--surface-3); color: var(--text-2);
}
.trash-icon svg { width: 16px; height: 16px; }
.trash-icon.t-wallets, .trash-icon.t-records { background: var(--teal-soft); color: var(--teal); }
.trash-icon.t-wallet_transfers { background: var(--down-soft); color: var(--down); }
.trash-icon.t-tasks, .trash-icon.t-task_projects,
.trash-icon.t-task_milestones, .trash-icon.t-task_project_updates,
.trash-icon.t-task_project_templates { background: var(--lime-soft); color: var(--lime-text); }
.trash-icon.t-payments { background: var(--warn-soft); color: var(--warn); }
.trash-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--surface-3); }
.trash-who {
  display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px;
  font-size: 12.5px; color: var(--text-3);
}
.trash-who > span { min-width: 0; overflow-wrap: anywhere; }
.trash-left { color: var(--text-2); font-variant-numeric: tabular-nums; }
.trash-problem {
  display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; padding: 7px 10px;
  border-radius: 10px; background: var(--warn-soft); color: var(--text); font-size: 13px; line-height: 1.4;
}
.trash-problem svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--warn); }
.trash-purge { color: var(--down); }
.trash-purge:hover { color: var(--down); background: var(--down-soft); }
.trash-more { display: flex; justify-content: center; }

/* The explanation for members */
.trash-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.trash-points li { display: flex; gap: 12px; align-items: flex-start; }
.trash-points li > svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--teal); }
.trash-points li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trash-points b { font-weight: 600; color: var(--text); }
.trash-points span { color: var(--text-2); font-size: 13.5px; line-height: 1.45; }

/* Phones */
@media (max-width: 700px) {
  .trash-page .card-head { padding: 16px; }
  .trash-page .card-body { padding: 16px; }
  .trash-row { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
  .trash-row .row-actions { justify-content: flex-start; margin-left: 46px; }
  .trash-search { max-width: none; }
}
@media (max-width: 420px) {
  .trash-row .row-actions { margin-left: 0; }
  .trash-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .trash-chips::-webkit-scrollbar { display: none; }
  .trash-chip { flex: none; }
}
