/* "Müll" window of the inventory (ui/trash.js): tabs Vorschläge / Alles, kinds, the grid of the pieces, what it brings.
   Every rule stays under #trash: the trade window (social.css) has its own .tr-grid / .tr-btns */
#trash .win-body { padding: 4px 5px 5px; }
#trash .tr-tabs { margin-bottom: 2px; }
#trash .tr-tabs .tab { display: flex; align-items: center; justify-content: center; gap: 3px; }
#trash .tr-tn { color: var(--dim); }
#trash .tr-tabs .tab.on .tr-tn { color: var(--gold-d); }
/* under the tabs: where the suggestions come from (+ "Regeln") or the kinds of "Alles" as small icon chips */
#trash .tr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 15px; margin-bottom: 3px; }
#trash .tr-hint { flex: 1; min-width: 0; font-size: 6px; line-height: 7px; }
#trash .tr-bar .btn.small { flex: none; }
#trash .tr-chip { display: flex; align-items: center; justify-content: center; width: 15px; height: 15px; cursor: pointer;
  background: #15100d; box-shadow: inset 0 0 0 1px #33281d; }
#trash .tr-chip img { width: 13px; height: 13px; object-fit: contain; image-rendering: pixelated; }
#trash .tr-chip.txt { width: auto; padding: 0 4px; font-size: 7px; line-height: 15px; color: var(--dim); }
#trash .tr-chip:hover { box-shadow: inset 0 0 0 1px var(--bronze); }
#trash .tr-chip.on { background: #2a2018; box-shadow: inset 0 0 0 1px var(--gold-d); }
#trash .tr-chip.on.txt { color: var(--gold); }
/* the pieces like in the bag: 18 px cells, tall items over 2-3 rows (grid-row span), packed without holes */
#trash .tr-grid { display: grid; grid-template-columns: repeat(9, 18px); grid-auto-rows: 18px; grid-auto-flow: row dense; gap: 2px;
  align-content: start; box-sizing: border-box; width: 186px; height: 138px; overflow-y: auto; overflow-x: hidden; padding: 4px;
  box-shadow: inset 0 0 0 1px var(--bronze-d);
  /* empty places drawn like bag slots (18 px + 2 px gap), they scroll with the pieces */
  background-color: #0b0907; background-origin: content-box; background-clip: content-box; background-attachment: local; background-size: 20px 20px;
  background-image: linear-gradient(90deg, transparent 18px, #0b0907 18px), linear-gradient(transparent 18px, #0b0907 18px), linear-gradient(#14100c, #14100c); }
#trash .tr-cell { position: relative; cursor: pointer; background: #1a1410; box-shadow: inset 0 0 0 1px #2e261d, inset 1px 1px 0 1px var(--edge); }
#trash .tr-cell > img { position: absolute; left: 1px; top: 1px; width: 16px; object-fit: contain; image-rendering: pixelated; }
#trash .tr-cell:hover { box-shadow: inset 0 0 0 1px var(--bronze-l); }
/* picked: red frame and a red mark in the corner */
#trash .tr-cell.on { background: rgba(200, 64, 46, .3); box-shadow: inset 0 0 0 1px #d0503c; }
#trash .tr-cell.on::after { content: ''; position: absolute; right: 1px; top: 1px; width: 4px; height: 4px; z-index: 3; background: #e0503c; box-shadow: 0 0 0 1px #0f0c0a; }
/* bonuses, a stone or refined: a gold mark (think twice) */
#trash .tr-cell.val::before { content: ''; position: absolute; left: 1px; top: 1px; width: 3px; height: 3px; z-index: 3; background: var(--gold); box-shadow: 0 0 0 1px #0f0c0a; }
/* tab Rückkauf (ui/buyback.js): chosen = green frame and mark, an entry the Yang does not pay for is dimmed */
#trash .tr-grid.bb .tr-cell.on { background: rgba(102, 200, 90, .22); box-shadow: inset 0 0 0 1px #66c85a; }
#trash .tr-grid.bb .tr-cell.on::after { background: #66d85a; }
#trash .tr-grid.bb .tr-cell.poor > img { opacity: .45; }
#trash .tr-cell .cnt { position: absolute; right: 2px; bottom: 1px; z-index: 2; font-size: 6px; line-height: 6px; color: #fff; text-shadow: var(--ol); pointer-events: none; }
#trash .tr-empty { grid-column: 1 / -1; padding: 12px 6px; font-size: 7px; line-height: 8px; text-align: center; }
/* what is chosen and what it brings */
#trash .tr-sum { display: flex; align-items: center; gap: 4px; min-height: 22px; margin: 4px 0; padding: 3px 4px; font-size: 7px; line-height: 8px;
  background: linear-gradient(#2c2112, #1e170e); box-shadow: inset 0 0 0 1px var(--gold-d); }
#trash .tr-sum.none { background: #1d1712; box-shadow: inset 0 0 0 1px var(--bronze-d); }
#trash .tr-sum img { flex: none; width: 16px; height: 16px; image-rendering: pixelated; }
#trash .tr-sum.none img { filter: grayscale(1) brightness(.6); }
#trash .tr-sum-t { min-width: 0; }
#trash .tr-btns { width: 100%; }
