/* PnL card (site/js/pnlcard.js): the dialog around the drawn card, and the small "PnL card" buttons on the player's
   own page. The card itself is a 1200 x 675 canvas: here it is only scaled to fit. Owner: SITE. */

.pnlc-canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); }
.pnlc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pnlc-acts .btn { flex: 1 1 140px; justify-content: center; gap: 6px; text-decoration: none; }
.pnlc-acts .ico { width: 18px; height: 18px; flex: none; }
.pnlc-hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.pnlc-text { margin: 10px 0 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-3); font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }

@media (min-width: 760px) {
  .modal.pnlc-modal { max-width: 720px; }
}

/* the button beside a position row and in the trades table */
.pnlc-li { display: flex; align-items: stretch; gap: 8px; }
.pnlc-li > .row { flex: 1 1 auto; min-width: 0; }
.pnlc-btn { flex: none; align-self: center; gap: 6px; white-space: nowrap; }
.pnlc-btn .ico { width: 16px; height: 16px; flex: none; }
.tbl td.pnlc-td { text-align: right; white-space: nowrap; padding-left: 0; }

@media (max-width: 520px) {
  .pnlc-li { flex-direction: column; align-items: stretch; gap: 4px; }
  .pnlc-btn { align-self: flex-end; }
  .tbl .pnlc-btn-t { display: none; }
  .tbl td.pnlc-td .pnlc-btn { padding: 6px 8px; }
}
