/* ===== Админка: позиции и сделки (таблица/карточки — из admin-users/admin-deposits.css) ===== */
.positions-view, .trades-view { display: none !important; }
body.mode-positions .chat-view, body.mode-trades .chat-view { display: none !important; }
body.mode-positions .positions-view, body.mode-trades .trades-view { display: block !important; }

.tr-pair { font-size: 13.5px; color: #0f172a; white-space: nowrap; }
.tr-side { display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.tr-side.long { background: #e6f7ef; color: #047857; }
.tr-side.short { background: #feecec; color: #b91c1c; }
.tr-liq { color: #d97706 !important; }
.tr-pnl { font-weight: 800 !important; }
.tr-pnl small { display: block; font-size: 11px; font-weight: 600; opacity: .8; }
.tr-pnl.pos { color: #059669 !important; }
.tr-pnl.neg { color: #dc2626 !important; }
.us-table tr.risk { background: #fff8f1; }
.us-table tr.risk:hover { background: #fff3e6; }
.tr-close {
  padding: 7px 14px; border-radius: 9px; border: 1.5px solid #fecaca; background: #fff; cursor: pointer;
  color: #dc2626; font: inherit; font-size: 13px; font-weight: 700; transition: background .12s;
}
.tr-close:hover { background: #fef2f2; }
.us-dialog.tr-dialog { max-width: 480px; text-align: left; }
.tr-dialog .us-dlg-ic, .tr-dialog h3, .tr-dialog .us-dlg-who { text-align: center; }
.tr-dialog .ban-box { background: #f7f8fc; border-color: #eceef5; }
.tr-dialog .ban-box b.pos { color: #059669; }
.tr-dialog .ban-box b.neg { color: #dc2626; }
.tr-dialog .wd-warn, .tr-dialog .kr-reasons { margin-bottom: 12px; }
.tr-dialog .kr-reject-title { margin-bottom: 8px; }
.tr-dialog .kr-text { margin-bottom: 12px; }
@media (max-width: 820px) { .tr-close { width: 100%; padding: 10px; } }
