/* Scoped replacement for the legacy mobile recharge / withdrawal record cards. */
.record.sgc-finance-record-source > .tab,
.record.sgc-finance-record-source > .total,
.record.sgc-finance-record-source > .noRecord {
  display: none !important;
}

.record .sgc-finance-record-shell {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 14px 18px;
  color: #20344c;
}

.record .sgc-finance-record-summary {
  margin: 2px 0 12px;
  padding: 11px 12px;
  color: #57708c;
  background: #f1f6fb;
  border: 1px solid #dbe8f4;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.record .sgc-finance-record-list { display: grid; gap: 11px; }

.record .sgc-finance-record-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e3ebf4;
  border-radius: 13px;
  box-shadow: 0 5px 16px rgba(29, 61, 95, .06);
}

.record .sgc-finance-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 13px 10px;
  border-bottom: 1px solid #edf2f7;
}

.record .sgc-finance-card-head strong {
  display: block;
  color: #1c3f65;
  font-size: 15px;
  line-height: 1.35;
}

.record .sgc-finance-card-head small {
  display: block;
  margin-top: 3px;
  color: #8292a5;
  font-size: 11px;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.record .sgc-finance-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: #e4a11b;
  font-size: 12px;
  line-height: 1.2;
}
.record .sgc-finance-status.is-approved { background: #14a36f; }
.record .sgc-finance-status.is-rejected { background: #df5a57; }
.record .sgc-finance-status.is-pending { background: #e4a11b; }
.record .sgc-finance-status.is-other { background: #77889a; }

.record .sgc-finance-card-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 11px 13px;
  background: #fbfcfe;
}

.record .sgc-finance-value {
  min-width: 0;
  padding: 7px 8px;
  background: #f4f8fc;
  border-radius: 8px;
}
.record .sgc-finance-value small,
.record .sgc-finance-detail dt {
  display: block;
  margin: 0 0 2px;
  color: #8493a5;
  font-size: 11px;
  font-weight: 400;
}
.record .sgc-finance-value strong {
  color: #1f6fa8;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.record .sgc-finance-value.is-income strong { color: #119465; }

.record .sgc-finance-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
  padding: 10px 13px 13px;
}
.record .sgc-finance-detail { min-width: 0; }
.record .sgc-finance-detail dt { margin-bottom: 2px; }
.record .sgc-finance-detail dd {
  margin: 0;
  color: #4e6178;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.record .sgc-finance-detail.is-full { grid-column: 1 / -1; }
.record .sgc-finance-detail.is-reason dd { color: #bb564f; }

.record .sgc-finance-empty {
  padding: 28px 12px;
  color: #8392a5;
  text-align: center;
  background: #fff;
  border: 1px dashed #d8e3ee;
  border-radius: 12px;
  font-size: 13px;
}

.record .sgc-finance-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 15px;
}
.record .sgc-finance-pagination button {
  min-width: 72px;
  min-height: 32px;
  padding: 6px 12px;
  color: #2877ac;
  background: #fff;
  border: 1px solid #cddfed;
  border-radius: 8px;
  font-size: 12px;
}
.record .sgc-finance-pagination button:disabled { color: #adb9c5; background: #f4f7fa; border-color: #e3eaf0; }
.record .sgc-finance-page-info { color: #718399; font-size: 12px; white-space: nowrap; }

@media (max-width: 340px) {
  .record .sgc-finance-record-shell { padding-left: 10px; padding-right: 10px; }
  .record .sgc-finance-card-values,
  .record .sgc-finance-details { grid-template-columns: 1fr; }
  .record .sgc-finance-detail.is-full { grid-column: auto; }
}
