.usdt-shell {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}
.usdt-shell > * {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}.usdt-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.usdt-controls-actions{display:flex;gap:9px;flex-wrap:wrap}
.usdt-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.usdt-stat {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dce6f4;
  border-radius: 12px;
  background: #fff;
}
.usdt-stat small {
  display: block;
  color: #75849a;
}
.usdt-stat b {
  display: block;
  margin-top: 7px;
  font-size: 20px;
  color: #15243a;
  overflow-wrap: anywhere;
}
.usdt-panel {
  min-width: 0;
  padding: 18px;
  overflow: hidden;
}
.usdt-toolbar {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
  min-width: 0;
}
.usdt-toolbar > * {
  min-width: 0;
}
.usdt-toolbar .fp-native-select,
.usdt-form .fp-native-select,
.usdt-form label {
  min-width: 0;
  max-width: 100%;
}
.usdt-toolbar .fp-native-select-button,
.usdt-form .fp-native-select-button {
  min-width: 0;
  max-width: 100%;
}
.usdt-toolbar input,
.usdt-toolbar select,
.usdt-form input,
.usdt-form select,
.usdt-form textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
  font: inherit;
}
.usdt-table {
  max-width: 100%;
  overflow: auto;
}
.usdt-table table {
  min-width: 1050px;
}
.usdt-table td small {
  display: block;
  margin-top: 4px;
  color: #7c899a;
}
.usdt-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf3fb;
  color: #315a91;
  font-size: 12px;
  font-weight: 700;
}
.usdt-badge.MANUALLY_COMPLETED {
  background: #e7f8ef;
  color: #147747;
}
.usdt-badge.CANCELLED,
.usdt-badge.REJECTED {
  background: #f4f4f5;
  color: #747985;
}
.usdt-badge.FUNDS_FROZEN,
.usdt-badge.PAYMENT_FACT_RECORDED {
  background: #fff3d7;
  color: #a16600;
}
.usdt-empty,
.usdt-error {
  padding: 35px;
  text-align: center;
  color: #7d8999;
}
.usdt-error {
  color: #c73d45;
}
.usdt-workbench {
  box-sizing: border-box;
  width: min(850px, 94vw);
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  border-radius: 14px;
  border: 1px solid #dce6f4;
  background: #fff;
  box-shadow: 0 18px 48px #14243e20;
  padding: 24px;
}
.usdt-workbench[role="dialog"] { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; width: 100%; max-width: none; max-height: none; overflow: auto; padding: 32px; border: 0; border-radius: 0; background: #0d1b2a66; box-shadow: none; }
.usdt-workbench[role="dialog"] > * { box-sizing: border-box; width: min(850px, 94vw); max-height: 90vh; overflow: auto; margin: 0; padding: 24px; border: 1px solid #dce6f4; border-radius: 14px; background: #fff; box-shadow: 0 18px 48px #14243e38; }
body.usdt-modal-open { overflow: hidden; }
.usdt-workbench header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.usdt-workbench h3 {
  margin: 4px 0;
}
.usdt-close {
  border: 0;
  background: #edf2f8;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
}
.usdt-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  min-width: 0;
  max-width: 100%;
}
.usdt-form label {
  display: grid;
  gap: 6px;
  color: #536176;
  font-size: 13px;
  font-weight: 650;
}
.usdt-form .wide {
  grid-column: 1/-1;
}
.usdt-form textarea {
  min-height: 80px;
  resize: vertical;
}
.usdt-form footer {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 5px;
}
.usdt-warning {
  grid-column: 1/-1;
  padding: 11px 13px;
  border-left: 3px solid #efa91f;
  background: #fff8e8;
  color: #805d16;
}
.usdt-source-state {
  color: #617087;
  font-size: 12px;
}
.usdt-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.usdt-detail-grid div {
  padding: 12px;
  border: 1px solid #e0e7f0;
  border-radius: 9px;
}
.usdt-detail-grid small {
  display: block;
  color: #79869a;
}
.usdt-detail-grid b {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.usdt-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.usdt-timeline {
  padding-left: 20px;
}
.usdt-timeline li {
  margin: 10px 0;
}
.usdt-timeline small {
  display: block;
  color: #7b8798;
}
@media (max-width: 900px) {
  .usdt-stats {
    grid-template-columns: 1fr 1fr;
  }
  .usdt-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .usdt-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {.usdt-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.usdt-controls-actions{display:flex;gap:9px;flex-wrap:wrap}
  .usdt-stats,
  .usdt-toolbar,
  .usdt-form,
  .usdt-detail-grid {
    grid-template-columns: 1fr;
  }
  .usdt-form .wide,
  .usdt-form footer {
    grid-column: 1;
  }
  .usdt-stat b {
    font-size: 17px;
  }
  .usdt-workbench[role="dialog"] { padding: 0; place-items: stretch; }
  .usdt-workbench[role="dialog"] > * { width: 100%; max-height: 100%; min-height: 100%; border-radius: 0; padding: 20px; }
}
.usdt-address-field b {
  word-break: break-all;
}
.usdt-address-field .mini-action {
  display: block;
  margin-top: 8px;
}
.usdt-fact-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 18px;
}
.usdt-fact-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid #e0e7f0;
  border-radius: 9px;
  background: #fbfdff;
}
.usdt-fact-list span {
  color: #536176;
  text-align: right;
}
.usdt-profit {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin: 10px 0 18px;
  border-radius: 10px;
  background: #e8f8ef;
  color: #147747;
}
.usdt-profit.loss {
  background: #fff0f0;
  color: #b52d38;
}
.usdt-profit span {
  color: inherit;
  opacity: 0.82;
}
@media (max-width: 620px) {
  .usdt-fact-list > div,
  .usdt-profit {
    display: grid;
  }
  .usdt-fact-list span {
    text-align: left;
  }
}

/* 115: shared pagination stays within the admin payout panel. */
.usdt-panel #usdtPagination{min-width:0;padding:8px 12px}.usdt-shell .usdt-controls-actions{flex-wrap:wrap}.usdt-shell .usdt-toolbar{min-width:0}.usdt-panel:has(#usdtPagination){min-width:0}@media(max-width:700px){.usdt-panel #usdtPagination{padding:8px}.usdt-panel:has(#usdtPagination) .usdt-toolbar>*{min-width:0;max-width:100%}}
