/* Read-only transfer history uses the existing Avelon paper, fonts and forum scrollbar. */
.av-cabinet .av-transfer-history { container: av-transfer-history / inline-size; min-width: 0; margin-top: 24px; overflow: hidden; }
.av-cabinet .av-transfer-history-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e9d6be;
}
.av-cabinet .av-transfer-history-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.av-cabinet .av-transfer-history-title h2 { margin: 0; }
.av-cabinet .av-transfer-history-icon {
  display: inline-block;
  flex: none;
  width: 22px;
  height: 22px;
  overflow: hidden;
  color: #d49850;
  font-family: "Avelon Material Symbols";
  font-style: normal;
  font-weight: 500;
  font-size: 22px;
  font-feature-settings: "liga";
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}
.av-cabinet .av-transfer-history-scope { color: #99876a; font-size: 13px; }
.av-cabinet .av-transfer-history-demo { margin-inline-start: auto; color: #9a6c21; font-size: 12px; }
.av-cabinet .av-transfer-history-scroll { max-height: 560px; overflow: auto; overscroll-behavior: contain; }
.av-cabinet .av-transfer-history-scroll:focus-visible { outline: 2px solid #b17e3c; outline-offset: -3px; }
.av-cabinet .av-transfer-history-table { width: 100%; border-collapse: collapse; color: #61513e; font-size: 14px; line-height: 1.4; }
.av-cabinet .av-transfer-history-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 11px 14px;
  background: #ffefd9;
  color: #80694b;
  font-size: 12px;
  font-weight: 590;
  text-align: left;
  white-space: nowrap;
}
.av-cabinet .av-transfer-history-table th:first-child,
.av-cabinet .av-transfer-history-table td:first-child { padding-inline-start: 20px; }
.av-cabinet .av-transfer-history-table th:last-child,
.av-cabinet .av-transfer-history-table td:last-child { padding-inline-end: 20px; }
.av-cabinet .av-transfer-history-table td { padding: 11px 14px; border-top: 1px solid #e9d6be80; vertical-align: middle; }
.av-cabinet .av-transfer-history-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.av-cabinet .av-transfer-history-date time { display: grid; gap: 2px; }
.av-cabinet .av-transfer-history-date small { color: #99876a; font-size: 12px; }
.av-cabinet .av-transfer-history-server { color: #8c5e26; font-weight: 590; }
.av-cabinet .av-transfer-history-character > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.av-cabinet .av-transfer-history-character img { display: block; flex: none; width: 26px; height: 26px; object-fit: contain; }
.av-cabinet .av-transfer-history-character strong { font-weight: 590; overflow-wrap: anywhere; }
.av-cabinet .av-transfer-history-currency { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.av-cabinet .av-transfer-history-currency img { display: block; flex: none; width: 20px; height: 20px; object-fit: contain; }
.av-cabinet .av-transfer-history-table .av-transfer-history-amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.av-cabinet .av-transfer-history-amount b { color: #634b2d; font-weight: 590; }
.av-cabinet .av-transfer-history-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  white-space: nowrap;
}
.av-cabinet .av-transfer-history-status::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.av-cabinet .av-transfer-history-status-completed { color: #73804d; }
.av-cabinet .av-transfer-history-status-pending { color: #a47729; }
.av-cabinet .av-transfer-history-status-rejected { color: #b86c52; }
.av-cabinet .av-transfer-history-status-unknown { color: #99876a; }
.av-cabinet .av-transfer-history-empty { margin: 0; padding: 24px 20px; color: #99876a; font-size: 14px; }
@container av-transfer-history (max-width: 760px) {
  .av-cabinet .av-transfer-history-heading { padding: 16px; gap: 6px 12px; }
  .av-cabinet .av-transfer-history-scope { flex-basis: 100%; order: 3; }
  .av-cabinet .av-transfer-history-scroll { max-height: 620px; }
  .av-cabinet .av-transfer-history-table,
  .av-cabinet .av-transfer-history-table tbody { display: block; }
  .av-cabinet .av-transfer-history-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .av-cabinet .av-transfer-history-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; padding: 16px; border-top: 1px solid #e9d6be80; }
  .av-cabinet .av-transfer-history-table tbody tr:first-child { border-top: 0; }
  .av-cabinet .av-transfer-history-table td,
  .av-cabinet .av-transfer-history-table td:first-child,
  .av-cabinet .av-transfer-history-table td:last-child { min-width: 0; padding: 0; border: 0; }
  .av-cabinet .av-transfer-history-table td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: #99876a; font-size: 11px; font-weight: 400; text-align: left; }
  .av-cabinet .av-transfer-history-date time { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
  .av-cabinet .av-transfer-history-character { grid-column: 1 / -1; }
  .av-cabinet .av-transfer-history-table .av-transfer-history-amount { text-align: left; }
  .av-cabinet .av-transfer-history-table td:last-child { grid-column: 1 / -1; }
  .av-cabinet .av-transfer-history-empty { padding: 20px 16px; }
}
