/* 🗑️ Trash (web/trash.js): deleted tasks, kept 30 days. Uses choreboy.css's tokens (light and dark). */

.tr .list-sub { margin: .2rem 0 0; }
.tr-danger { color: var(--bad); }
.tr-danger:hover:not(:disabled) { background: var(--bad-soft); color: var(--bad); }

/* The bar over the list: select all, and what to do with the ones selected. */
.tr-bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem .8rem; flex-wrap: wrap;
  padding: .5rem .7rem; margin-bottom: .5rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
.tr-bar .check { margin-right: 0; font-size: .86rem; color: var(--text-2); }
.tr-bar-acts { display: flex; gap: .4rem; flex-wrap: wrap; }

.tr-msg { min-height: 0; margin: 0 0 .4rem; font-size: .86rem; color: var(--text-2); }
.tr-msg:empty { display: none; }
.tr-msg.ok { color: var(--good); }
.tr-msg.bad { color: var(--bad); }

.tr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.tr-row { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; }
.tr-row.on { border-color: var(--accent); background: var(--accent-soft); }
.tr-pick { flex: none; width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--accent); cursor: pointer; }
.tr-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.tr-title { font-weight: 550; color: var(--text); overflow-wrap: anywhere; }
.tr-rep { font-size: .8em; }
.tr-when { font-size: .8rem; color: var(--text-3); }
.tr-acts { flex: none; display: flex; gap: .35rem; }

.tr-empty .tr-empty-ico { font-size: 1.8rem; margin: 0 0 .2rem; }
.tr-empty p { margin: .2rem 0; }

/* The sidebar's 🗑️ Trash: set apart from the lists above it. */
.lists .list-trash { position: relative; margin-top: .55rem; }
.lists .list-trash::before { content: ''; position: absolute; left: .65rem; right: .65rem; top: -.3rem; border-top: 1px solid var(--border); }

@media (max-width: 760px) {
  /* (the sidebar is a row of chips that scrolls sideways) */
  .lists .list-trash { margin-top: 0; }
  .lists .list-trash::before { display: none; }
}

@media (max-width: 520px) {
  .tr-row { flex-wrap: wrap; align-items: flex-start; }
  .tr-main { flex-basis: calc(100% - 2rem); }
  .tr-acts { width: 100%; padding-left: 1.75rem; }
  .tr-acts .btn { flex: 1 1 auto; }
  .tr-bar-acts { width: 100%; }
  .tr-bar-acts .btn { flex: 1 1 auto; }
}
