/* DIAMPULSE v66 — compact, consistent audit cards for admin/reseller */
.dp-admin-topup-history .dp-status-tag,
.dp-admin-history .dp-status-tag,
.dp-reseller-history .dp-status-tag{
 display:inline-flex;align-items:center;justify-content:center;
 border-radius:999px;padding:5px 10px;min-height:25px;max-width:100%;
 font-size:11px;font-weight:800;line-height:1.2;white-space:nowrap;
}
.dp-admin-topup-history .badge-subtle-warning,
.dp-admin-history .badge-subtle-warning,
.dp-reseller-history .badge-subtle-warning{background:#fef3c7!important;color:#92400e!important}
.dp-admin-topup-history .badge-subtle-success,
.dp-admin-history .badge-subtle-success,
.dp-reseller-history .badge-subtle-success{background:#dcfce7!important;color:#166534!important}
.dp-admin-topup-history .badge-subtle-danger,
.dp-admin-history .badge-subtle-danger,
.dp-reseller-history .badge-subtle-danger{background:#fee2e2!important;color:#991b1b!important}
.dark .dp-admin-topup-history .badge-subtle-warning,
.dark .dp-admin-history .badge-subtle-warning,
.dark .dp-reseller-history .badge-subtle-warning{background:#4c3411!important;color:#fcd34d!important}
.dark .dp-admin-topup-history .badge-subtle-success,
.dark .dp-admin-history .badge-subtle-success,
.dark .dp-reseller-history .badge-subtle-success{background:#16432d!important;color:#86efac!important}
.dark .dp-admin-topup-history .badge-subtle-danger,
.dark .dp-admin-history .badge-subtle-danger,
.dark .dp-reseller-history .badge-subtle-danger{background:#491c22!important;color:#fda4af!important}
.dp-admin-topup-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.dp-admin-topup-actions .btn{
 padding:6px 9px!important;min-height:30px!important;
 font-size:11px!important;font-weight:750!important;line-height:1.2;
 white-space:normal;border-radius:9px;
}
.dp-admin-topup-actions .btn:disabled{opacity:.42;cursor:not-allowed}
.dp-admin-topup-actions .btn-subtle-primary{background:#e7f2ff!important;color:#1664aa!important}
.dp-admin-topup-actions .btn-subtle-danger{background:#fee2e2!important;color:#b91c1c!important}
.dark .dp-admin-topup-actions .btn-subtle-primary{background:#1f3551!important;color:#93c5fd!important}
.dark .dp-admin-topup-actions .btn-subtle-danger{background:#48232d!important;color:#fda4af!important}
.dp-admin-order-sub{overflow-wrap:anywhere}
@media(max-width:900px){
 .dp-reseller-history.dp-admin-history .dp-table-wrap,
 .dp-reseller-history:not(.dp-admin-history) .dp-table-wrap{overflow:visible!important;max-width:100%!important}
 .dp-reseller-history.dp-admin-history .dp-highlight-table,
 .dp-reseller-history:not(.dp-admin-history) .dp-highlight-table{
  display:block!important;min-width:0!important;white-space:normal!important;
 }
 .dp-reseller-history .dp-highlight-table thead{display:none!important}
 .dp-reseller-history .dp-highlight-table tbody{display:grid!important;gap:10px!important}
 .dp-reseller-history .dp-highlight-table tbody tr{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:11px 12px!important;padding:13px!important;
  background:var(--background-color-subtle);border:1px solid var(--border-color-subtle);
  border-radius:13px;align-items:start;
 }
 .dp-reseller-history .dp-highlight-table tbody td{
  display:block!important;padding:0!important;min-width:0!important;
  max-width:100%!important;white-space:normal!important;
  font-size:12px;line-height:1.35;overflow-wrap:anywhere;
  grid-column:auto!important;grid-row:auto!important;
 }
 .dp-reseller-history .dp-highlight-table tbody td:before{
  content:attr(data-label);display:block;color:var(--text-color-muted);
  font-size:10px;letter-spacing:.035em;text-transform:uppercase;
  font-weight:750;margin:0 0 4px;
 }
 /* Recargas admin: exactly four paired lines. */
 .dp-admin-topup-history .dp-highlight-table td[data-label="Recarga USDT"]{grid-area:1/1!important}
 .dp-admin-topup-history .dp-highlight-table td[data-label="Fecha"]{grid-area:1/2!important}
 .dp-admin-topup-history .dp-highlight-table td[data-label="Equivalente VES"]{grid-area:2/1!important}
 .dp-admin-topup-history .dp-highlight-table td[data-label="Banco"]{grid-area:2/2!important}
 .dp-admin-topup-history .dp-highlight-table td[data-label="Revendedor"]{grid-area:3/1!important}
 .dp-admin-topup-history .dp-highlight-table td[data-label="Referencia"]{grid-area:3/2!important}
 .dp-admin-topup-history .dp-highlight-table td[data-label="Estado"]{grid-area:4/1!important}
 .dp-admin-topup-history .dp-highlight-table td[data-label="Acciones"]{grid-area:4/2!important}
 .dp-admin-topup-history .dp-admin-order-sub{display:none}
 .dp-admin-topup-history .dp-admin-topup-actions{display:grid;grid-template-columns:minmax(0,1fr)}
 .dp-admin-topup-history .dp-admin-topup-actions .btn{width:100%;padding:6px 5px!important;font-size:10px!important;min-height:28px!important}
 /* Pedidos admin: product/date, reseller/amount, order/player, status. */
 .dp-admin-history:not(.dp-admin-topup-history) .dp-highlight-table td[data-label="Producto"]{grid-area:1/1!important}
 .dp-admin-history:not(.dp-admin-topup-history) .dp-highlight-table td[data-label="Fecha"]{grid-area:1/2!important}
 .dp-admin-history:not(.dp-admin-topup-history) .dp-highlight-table td[data-label="Revendedor"]{grid-area:2/1!important}
 .dp-admin-history:not(.dp-admin-topup-history) .dp-highlight-table td[data-label="Importe"]{grid-area:2/2!important}
 .dp-admin-history:not(.dp-admin-topup-history) .dp-highlight-table td[data-label="Pedido"]{grid-area:3/1!important}
 .dp-admin-history:not(.dp-admin-topup-history) .dp-highlight-table td[data-label="ID jugador"]{grid-area:3/2!important}
 .dp-admin-history:not(.dp-admin-topup-history) .dp-highlight-table td[data-label="Estado"]{grid-area:4/1!important}
 .dp-admin-history:not(.dp-admin-topup-history) .dp-admin-order-sub{display:none}
 /* Pedidos revendedor: three rows of paired fields. */
 .dp-reseller-history:not(.dp-admin-history) .dp-highlight-table td[data-label="Producto"]{grid-area:1/1!important}
 .dp-reseller-history:not(.dp-admin-history) .dp-highlight-table td[data-label="Importe"]{grid-area:1/2!important}
 .dp-reseller-history:not(.dp-admin-history) .dp-highlight-table td[data-label="ID jugador"]{grid-area:2/1!important}
 .dp-reseller-history:not(.dp-admin-history) .dp-highlight-table td[data-label="Fecha"]{grid-area:2/2!important}
 .dp-reseller-history:not(.dp-admin-history) .dp-highlight-table td[data-label="Pedido"]{grid-area:3/1!important}
 .dp-reseller-history:not(.dp-admin-history) .dp-highlight-table td[data-label="Estado"]{grid-area:3/2!important}
}
@media(min-width:650px) and (max-width:900px){
 .dp-admin-topup-history .dp-admin-topup-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:380px){
 .dp-admin-topup-history .dp-highlight-table tbody tr{gap:10px 9px!important;padding:11px!important}
 .dp-admin-topup-history .dp-highlight-table tbody td{font-size:11px}
 .dp-admin-topup-history .dp-status-tag{font-size:10px}
}

@media(max-width:400px){
 .dp-admin-history:not(.dp-admin-topup-history) .dp-highlight-table tbody tr{
  gap:8px 10px!important;padding:10px!important;
 }
 .dp-admin-history:not(.dp-admin-topup-history) .dp-highlight-table tbody td{
  font-size:11px!important;line-height:1.25!important;
 }
 .dp-admin-history:not(.dp-admin-topup-history) .dp-highlight-table tbody td:before{
  font-size:9px!important;margin-bottom:2px!important;
 }
}
