/* Destruitor Idle — janela do Depot (public/depot.js). Usa as cores e as janelas do app.css. */
.modal.dp { width: min(980px, calc(100vw - 16px)); height: min(720px, calc(100vh - 80px)); }
.modal.dp .modal-b { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.dp-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; flex: 1; min-height: 0; }
.dp-col { display: flex; flex-direction: column; min-height: 0; gap: 6px; }
.dp-storage { border-right: 1px solid #2c3346; padding-right: 14px; }
.dp-h { margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); display: flex; align-items: baseline; gap: 8px; }
.dp-h small { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12px; }
.dp-pack .dp-h:not(:first-child) { margin-top: 6px; }
/* contador N/1000 de tipos (a partir de 80%, como no Huntera) */
.dp-kinds { margin-left: auto; font-size: 12px; font-weight: 700; letter-spacing: 0; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.dp-kinds.full { color: var(--bad); }
.dp-ro { padding: 8px 12px; border-radius: 6px; background: #2a2210; border: 1px solid #6b5626; color: var(--gold-2); font-size: 13px; }

/* categorias e busca */
.dp-cats { display: flex; flex-wrap: wrap; gap: 4px; }
.g .dp-cat { height: 30px; min-width: 30px; padding: 0 6px; border-radius: 5px; border: 1px solid #2c3346; background: #121624; color: var(--dim); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.g .dp-cat:hover { border-color: #4a5470; }
.g .dp-cat.on { border-color: var(--gold); color: var(--gold-2); background: #19160e; }
.dp-cat-ic { width: 24px; height: 24px; image-rendering: pixelated; }
.dp-search input { width: 100%; padding: 8px 10px; font-size: 14px; border-radius: 8px; border: 1px solid var(--line); background: #0c0e14; }

/* grades */
.dp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 4px; align-content: start; overflow: auto; min-height: 0; padding: 2px; border-radius: 6px; }
.dp-storage .dp-grid { flex: 1; }
.dp-pack .dp-grid { max-height: 34%; flex: none; }
.dp-pack .dp-grid#dpMochila { flex: 1; max-height: none; }
.dp-grid.drag-over { outline: 2px dashed var(--gold); outline-offset: -2px; background: #19160e; }
.g .dp-slot { position: relative; height: 70px; padding: 4px 2px 2px; border-radius: 5px; background: #0a0c13; border: 1px solid #2c3346; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; cursor: pointer; }
.g .dp-slot:hover { border-color: #4a5470; }
.g .dp-slot.on { border-color: var(--gold); background: #19160e; }
.g .dp-slot.vinc { border-color: #4a3a2a; }
.dp-slot.vazio { cursor: default; opacity: .45; }
.dp-ic { width: 40px; height: 40px; flex: none; image-rendering: pixelated; }
.dp-ic.big { width: 64px; height: 64px; }
.dp-n { position: absolute; right: 4px; top: 30px; font-style: normal; font-size: 11px; font-weight: 700; text-shadow: 0 1px 2px #000, 0 0 2px #000, 0 0 3px #000; font-variant-numeric: tabular-nums; }
.dp-nome { font-size: 10px; line-height: 1.15; color: #c9cfdd; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-lock { position: absolute; left: 4px; top: 4px; width: 9px; height: 7px; border-radius: 1px; background: #c9a25a; }
.dp-lock::before { content: ''; position: absolute; left: 1.5px; top: -5px; width: 4px; height: 5px; border: 1.5px solid #c9a25a; border-bottom: 0; border-radius: 4px 4px 0 0; }
.dp-msg { grid-column: 1 / -1; padding: 6px 2px; margin: 0; }

/* o item escolhido */
.dp-sel { border-top: 1px solid #2c3346; padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.dp-sel-h { display: flex; gap: 12px; align-items: center; }
.dp-sel-h > div { flex: 1; min-width: 0; }
.dp-sel-h b { font-size: 16px; color: var(--gold-2); }
.g .dp-x { width: 28px; height: 28px; border-radius: 5px; color: var(--dim); align-self: flex-start; }
.g .dp-x:hover { background: #262b3c; color: var(--txt); }
.dp-q { font-size: 12px; color: var(--dim); }
.dp-step { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.g .dp-step button { min-width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); font-weight: 700; }
.g .dp-step button.dp-tudo { padding: 0 10px; font-size: 12px; }
.dp-step input { width: 90px; height: 32px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line); background: #0c0e14; text-align: center; font-variant-numeric: tabular-nums; }
.dp-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.dp-vinc { padding: 8px 12px; border-radius: 6px; background: #241b12; border: 1px solid #5a4226; color: #e6c58f; margin: 0; }
.dp-dica { margin: 0; }

@media (max-width: 759px) {
  .modal.dp { height: calc(100vh - 70px); }
  .modal.dp .modal-b { overflow: auto; }
  .dp-body { grid-template-columns: 1fr; flex: none; }
  .dp-storage { border-right: 0; padding-right: 0; border-bottom: 1px solid #2c3346; padding-bottom: 10px; }
  .dp-storage .dp-grid { flex: none; max-height: 280px; }
  .dp-pack .dp-grid, .dp-pack .dp-grid#dpMochila { flex: none; max-height: 200px; }
  .dp-grid { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
  .g .dp-slot { height: 62px; }
  .dp-ic { width: 34px; height: 34px; }
  .dp-n { top: 24px; }
}
