.account-history-enhanced > .account-operations-table-wrap,
.account-history-enhanced > .simple-section-heading .text-link {
  display: none !important;
}

#earn-active-plans[hidden],
.account-recent-operations[hidden] {
  display: none !important;
}

.simple-section-heading.history-heading-enhanced {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.history-heading-enhanced .history-heading-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.history-heading-enhanced .history-collapse-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.account-history-ui {
  width: 100%;
  margin-top: 12px;
  color: #e8eef8;
  container-name: account-history;
  container-type: inline-size;
}

.account-history-ui > .history-collapse-button {
  display: block;
  margin: 0 0 8px auto;
}

.history-collapse-button {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(148, 166, 192, 0.2);
  border-radius: 8px;
  color: #9dc2ff;
  background: rgba(15, 25, 41, 0.65);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.history-collapse-button:hover {
  border-color: #2478ff;
  background: rgba(36, 120, 255, 0.12);
}

.history-controls[hidden] {
  display: none !important;
}

.history-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 14px;
  scrollbar-width: thin;
}

.history-category,
.history-reset,
.history-details-button {
  border: 1px solid rgba(148, 166, 192, 0.2);
  border-radius: 9px;
  color: #c4cfdf;
  background: rgba(15, 25, 41, 0.86);
  cursor: pointer;
  font: inherit;
}

.history-category {
  flex: 0 0 auto;
  padding: 8px 13px;
  white-space: nowrap;
}

.history-category:hover,
.history-category.is-active {
  border-color: #2478ff;
  color: #fff;
  background: rgba(10, 102, 255, 0.2);
}

.history-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(148, 166, 192, 0.14);
  border-radius: 12px;
  background: rgba(9, 17, 30, 0.48);
}

.history-filters label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  color: #97a8be;
  font-size: 12px;
}

.history-filters input,
.history-filters select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 9px;
  border: 1px solid rgba(148, 166, 192, 0.22);
  border-radius: 8px;
  outline: none;
  color: #e8eef8;
  color-scheme: dark;
  background: #101b2c;
  font: inherit;
  font-size: 13px;
}

.history-filters input:focus,
.history-filters select:focus {
  border-color: #2478ff;
  box-shadow: 0 0 0 2px rgba(36, 120, 255, 0.18);
}

.history-reset {
  align-self: end;
  min-height: 38px;
  padding: 0 12px;
}

.history-reset:hover,
.history-details-button:hover {
  border-color: #2478ff;
  color: #fff;
}

.history-load-state {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #b7c8df;
  background: rgba(36, 120, 255, 0.1);
  font-size: 13px;
}

.history-load-state[hidden] {
  display: none;
}

.history-load-error {
  color: #ff9a9a;
  background: rgba(214, 55, 55, 0.12);
}

.history-results-count {
  margin: 5px 0 9px;
  color: #8293aa;
  font-size: 12px;
}

.history-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.history-page-numbers {
  display: flex;
  align-items: center;
  gap: 5px;
}

.history-page-button {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid rgba(148, 166, 192, 0.2);
  border-radius: 8px;
  color: #c4cfdf;
  background: rgba(15, 25, 41, 0.86);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.history-page-button:hover:not(:disabled),
.history-page-button.is-active {
  border-color: #2478ff;
  color: #fff;
  background: rgba(10, 102, 255, 0.2);
}

.history-page-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.history-page-ellipsis {
  color: #8293aa;
}

.history-page-summary {
  display: none;
  color: #9aaac0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.history-table-scroll {
  overflow-x: auto;
  border: 1px solid rgba(148, 166, 192, 0.14);
  border-radius: 12px;
  background: rgba(7, 14, 25, 0.3);
}

.history-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
}

.history-table th:nth-child(1),
.history-table td:nth-child(1) { width: 21%; }
.history-table th:nth-child(2),
.history-table td:nth-child(2) { width: 12%; }
.history-table th:nth-child(3),
.history-table td:nth-child(3) { width: 10%; }
.history-table th:nth-child(4),
.history-table td:nth-child(4) { width: 9%; }
.history-table th:nth-child(5),
.history-table td:nth-child(5) { width: 13%; }
.history-table th:nth-child(6),
.history-table td:nth-child(6) { width: 9%; }
.history-table th:nth-child(7),
.history-table td:nth-child(7) { width: 14%; }
.history-table th:nth-child(8),
.history-table td:nth-child(8) { width: 12%; }

.history-table th,
.history-table td {
  padding: 10px 11px;
  border-bottom: 1px solid rgba(148, 166, 192, 0.11);
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.history-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #8d9db3;
  background: rgba(10, 18, 30, 0.76);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.history-table td {
  color: #d7e0ed;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.history-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.history-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

.history-row:hover,
.history-row:focus {
  outline: none;
  background: rgba(36, 120, 255, 0.08);
}

.history-row:focus-visible {
  box-shadow: inset 0 0 0 1px #2478ff;
}

.history-table tr:last-child td {
  border-bottom: 0;
}

.history-operation-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.history-operation-label {
  display: block;
  min-width: 0;
  white-space: normal;
  line-height: 1.4;
}

.history-operation-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.history-operation-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.history-icon-buy {
  color: #65d99d;
  background: rgba(40, 176, 108, 0.1);
}

.history-icon-sell {
  color: #76b2ff;
  background: rgba(36, 120, 255, 0.1);
}

.history-icon-futures {
  color: #c6a5ff;
  background: rgba(142, 83, 255, 0.1);
}

.history-icon-earn {
  color: #5ed6cf;
  background: rgba(36, 184, 176, 0.1);
}

.history-icon-wallet {
  color: #f2ca65;
  background: rgba(218, 164, 37, 0.1);
}

.history-icon-danger {
  color: #ff8181;
  background: rgba(217, 64, 64, 0.12);
}

.history-icon-other {
  color: #9aaac0;
}

.history-asset-label {
  font-weight: 650;
  color: #e8eef8;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.history-table td small {
  display: block;
  margin-top: 3px;
  color: #8293aa;
}

.history-status {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.history-status-completed {
  color: #65d99d;
  background: rgba(40, 176, 108, 0.14);
}

.history-status-processing {
  color: #76b2ff;
  background: rgba(36, 120, 255, 0.15);
}

.history-status-awaitingConfirmation,
.history-status-awaitingProcessing {
  color: #f2ca65;
  background: rgba(218, 164, 37, 0.15);
}

.history-status-rejected,
.history-status-errorStatus {
  color: #ff8181;
  background: rgba(217, 64, 64, 0.15);
}

.history-status-cancelled {
  color: #a7b0be;
  background: rgba(136, 146, 160, 0.15);
}

.history-status-open {
  color: #c6a5ff;
  background: rgba(142, 83, 255, 0.18);
}

.history-pnl-positive {
  color: #65d99d;
}

.history-pnl-negative {
  color: #ff8181;
}

.history-pnl-neutral,
.history-empty {
  color: #8796aa;
}

.history-pnl-floating,
.history-floating-label {
  color: #c6a5ff;
}

.history-floating-label {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  white-space: normal;
}

.history-details-button {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 31px;
  padding: 5px 5px;
  color: #9dc2ff;
  font-size: 11px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.history-table td:nth-child(3),
.history-table td:nth-child(4) {
  white-space: nowrap;
  overflow-wrap: normal;
}

.history-table td:nth-child(7) {
  font-size: 11px;
}

.history-table-category-futures td:nth-child(1) {
  color: #e8eef8;
}

.history-table-category-futures .history-operation-icon {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: 10px;
}

.history-table-category-futures .history-asset-label {
  color: #dce8fa;
}

.history-table-category-futures .history-details-button {
  min-height: 30px;
  padding: 4px 6px;
  font-size: 10px;
}

.history-table td:nth-child(5) {
  line-height: 1.45;
}

.history-table-scroll {
  display: block;
}

.history-mobile-list {
  display: none;
}

.history-mobile-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(148, 166, 192, 0.16);
  border-radius: 12px;
  background: rgba(9, 17, 30, 0.48);
}

.history-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.history-card-operation {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  max-width: 68%;
}

.history-card-heading strong {
  max-width: 100%;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.history-card-operation .history-operation-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

.history-card-pair {
  margin-top: 7px;
  color: #9dc2ff;
  font-size: 12px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.history-card-pair small {
  display: block;
  margin-top: 3px;
  color: #8293aa;
  font-size: 10px;
  font-weight: 400;
}

.history-card-grid {
  display: grid;
  grid-template-columns: minmax(78px, 0.55fr) 1fr;
  gap: 7px 10px;
  margin-top: 12px;
  font-size: 11px;
}

.history-card-grid > span {
  color: #8293aa;
}

.history-card-grid > strong {
  min-width: 0;
  color: #d7e0ed;
  text-align: right;
  overflow-wrap: anywhere;
}

.history-card-date {
  margin: 11px 0;
  color: #8293aa;
  font-size: 10px;
}

.history-mobile-card .history-details-button {
  width: 100%;
  min-height: 34px;
}

.history-empty-state {
  padding: 28px 14px;
  border: 1px solid rgba(148, 166, 192, 0.14);
  border-radius: 12px;
  color: #8d9db3;
  text-align: center;
}

.history-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: min(82vh, 780px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(148, 166, 192, 0.23);
  border-radius: 16px;
  color: #e8eef8;
  background: #101b2c;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
}

.history-dialog::backdrop {
  background: rgba(2, 7, 14, 0.72);
  backdrop-filter: blur(3px);
}

.history-dialog-heading {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 19px;
  border-bottom: 1px solid rgba(148, 166, 192, 0.15);
  background: #101b2c;
}

.history-dialog-heading h3 {
  margin: 0;
  font-size: 17px;
}

.history-dialog-close {
  padding: 6px 11px;
  border: 1px solid rgba(148, 166, 192, 0.22);
  border-radius: 8px;
  color: #d7e0ed;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.history-dialog-body {
  padding: 12px 19px 20px;
  background:
    radial-gradient(ellipse at 100% 0, rgba(42, 116, 218, 0.1), transparent 48%),
    #101b2c;
}

.history-detail-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0;
  padding: 14px 15px;
  border: 1px solid rgba(148, 166, 192, 0.18);
  border-left: 3px solid rgba(83, 151, 255, 0.6);
  border-radius: 12px;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  font-size: 13px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.history-detail-line span {
  min-width: 0;
  color: #a3afbf;
  font-weight: 550;
  line-height: 1.5;
}

.history-detail-line strong {
  max-width: 62%;
  color: #fff;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  text-align: right;
  overflow-wrap: anywhere;
}

.history-detail-line:hover {
  border-color: rgba(148, 184, 238, 0.35);
  background-color: rgba(255, 255, 255, 0.025);
}

.history-detail-line strong.history-detail-value-short {
  color: #ff5968;
  font-weight: 750;
}

.history-detail-line strong.history-detail-value-long {
  color: #48d597;
  font-weight: 750;
}

.history-detail-line strong.history-detail-value-profit {
  color: #48d597;
  font-weight: 750;
}

.history-detail-line strong.history-detail-value-loss {
  color: #ff5968;
  font-weight: 750;
}

.history-detail-line strong.history-detail-value-leverage {
  padding: 4px 11px;
  border: 1px solid rgba(83, 166, 255, 0.42);
  border-radius: 999px;
  color: #67b4ff;
  background: rgba(40, 127, 224, 0.14);
  font-weight: 750;
  white-space: nowrap;
}

html[data-theme="light"] .account-history-ui {
  color: #1f2937;
}

html[data-theme="light"] .account-history-ui .history-collapse-button,
html[data-theme="light"] .account-history-ui .history-category,
html[data-theme="light"] .account-history-ui .history-reset,
html[data-theme="light"] .account-history-ui .history-details-button,
html[data-theme="light"] .account-history-ui .history-page-button {
  border-color: #d5deea;
  color: #344256;
  background: #fff;
}

html[data-theme="light"] .account-history-ui .history-category:hover,
html[data-theme="light"] .account-history-ui .history-category.is-active,
html[data-theme="light"] .account-history-ui .history-page-button:hover:not(:disabled),
html[data-theme="light"] .account-history-ui .history-page-button.is-active {
  border-color: #2478ff;
  color: #fff;
  background: #2478ff;
}

html[data-theme="light"] .account-history-ui .history-collapse-button:hover,
html[data-theme="light"] .account-history-ui .history-reset:hover,
html[data-theme="light"] .account-history-ui .history-details-button:hover {
  border-color: #2478ff;
  color: #fff;
  background: #2478ff;
}

html[data-theme="light"] .account-history-ui .history-filters {
  border-color: #dce3ed;
  background: #f7f9fc;
}

html[data-theme="light"] .account-history-ui .history-filters label,
html[data-theme="light"] .account-history-ui .history-results-count,
html[data-theme="light"] .account-history-ui .history-page-summary {
  color: #5b687a;
}

html[data-theme="light"] .account-history-ui .history-filters input,
html[data-theme="light"] .account-history-ui .history-filters select {
  border-color: #cbd5e1;
  color: #1f2937;
  color-scheme: light;
  background: #fff;
}

html[data-theme="light"] .account-history-ui .history-load-state {
  color: #174ea6;
  background: #eaf2ff;
}

html[data-theme="light"] .account-history-ui .history-load-error {
  color: #a61b2b;
  background: #fff0f1;
}

html[data-theme="light"] .account-history-ui .history-table-scroll {
  border-color: #dce3ed;
  background: #fff;
}

html[data-theme="light"] .account-history-ui .history-table th {
  border-color: #dce3ed;
  color: #526071;
  background: #f2f5f9;
}

html[data-theme="light"] .account-history-ui .history-table td,
html[data-theme="light"] .account-history-ui .history-table-category-futures td:nth-child(1),
html[data-theme="light"] .account-history-ui .history-table-category-futures .history-asset-label,
html[data-theme="light"] .account-history-ui .history-asset-label {
  border-color: #e5eaf1;
  color: #263445;
}

html[data-theme="light"] .account-history-ui .history-row:nth-child(even) {
  background: #f8fafc;
}

html[data-theme="light"] .account-history-ui .history-row:hover,
html[data-theme="light"] .account-history-ui .history-row:focus {
  background: #eaf2ff;
}

html[data-theme="light"] .account-history-ui .history-table td small,
html[data-theme="light"] .account-history-ui .history-card-pair small,
html[data-theme="light"] .account-history-ui .history-card-date {
  color: #64748b;
}

html[data-theme="light"] .account-history-ui .history-status-completed,
html[data-theme="light"] .account-history-ui .history-icon-buy,
html[data-theme="light"] .account-history-ui .history-pnl-positive {
  color: #137347;
}

html[data-theme="light"] .account-history-ui .history-status-completed,
html[data-theme="light"] .account-history-ui .history-icon-buy {
  background: #e8f7ef;
}

html[data-theme="light"] .account-history-ui .history-status-rejected,
html[data-theme="light"] .account-history-ui .history-status-errorStatus,
html[data-theme="light"] .account-history-ui .history-icon-danger,
html[data-theme="light"] .account-history-ui .history-pnl-negative {
  color: #b42332;
}

html[data-theme="light"] .account-history-ui .history-status-rejected,
html[data-theme="light"] .account-history-ui .history-status-errorStatus,
html[data-theme="light"] .account-history-ui .history-icon-danger {
  background: #fff0f1;
}

html[data-theme="light"] .account-history-ui .history-status-processing,
html[data-theme="light"] .account-history-ui .history-icon-sell {
  color: #174ea6;
}

html[data-theme="light"] .account-history-ui .history-status-processing,
html[data-theme="light"] .account-history-ui .history-icon-sell {
  background: #edf4ff;
}

html[data-theme="light"] .account-history-ui .history-status-open,
html[data-theme="light"] .account-history-ui .history-icon-futures,
html[data-theme="light"] .account-history-ui .history-pnl-floating,
html[data-theme="light"] .account-history-ui .history-floating-label {
  color: #6941a5;
}

html[data-theme="light"] .account-history-ui .history-status-open,
html[data-theme="light"] .account-history-ui .history-icon-futures {
  background: #f3edff;
}

html[data-theme="light"] .account-history-ui .history-icon-earn {
  color: #087c78;
}

html[data-theme="light"] .account-history-ui .history-icon-earn {
  background: #e6f7f6;
}

html[data-theme="light"] .account-history-ui .history-icon-wallet,
html[data-theme="light"] .account-history-ui .history-status-awaitingConfirmation,
html[data-theme="light"] .account-history-ui .history-status-awaitingProcessing {
  color: #8a5a00;
}

html[data-theme="light"] .account-history-ui .history-icon-wallet,
html[data-theme="light"] .account-history-ui .history-status-awaitingConfirmation,
html[data-theme="light"] .account-history-ui .history-status-awaitingProcessing {
  background: #fff6db;
}

html[data-theme="light"] .account-history-ui .history-status-cancelled,
html[data-theme="light"] .account-history-ui .history-icon-other,
html[data-theme="light"] .account-history-ui .history-pnl-neutral,
html[data-theme="light"] .account-history-ui .history-empty,
html[data-theme="light"] .account-history-ui .history-empty-state,
html[data-theme="light"] .account-history-ui .history-card-grid > span {
  color: #5b687a;
}

html[data-theme="light"] .account-history-ui .history-status-cancelled {
  background: #eef2f6;
}

html[data-theme="light"] .account-history-ui .history-mobile-card {
  border-color: #dce3ed;
  background: #fff;
}

html[data-theme="light"] .account-history-ui .history-card-grid > strong {
  color: #263445;
}

html[data-theme="light"] .account-history-ui .history-empty-state {
  border-color: #dce3ed;
  background: #f8fafc;
}

html[data-theme="light"] .history-dialog {
  border-color: #cbd5e1;
  color: #1f2937;
  background: #fff;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.24);
}

html[data-theme="light"] .history-dialog-heading {
  border-color: #e2e8f0;
  background: #fff;
}

html[data-theme="light"] .history-dialog-close {
  border-color: #cbd5e1;
  color: #344256;
  background: #f8fafc;
}

html[data-theme="light"] .history-dialog-body {
  background: #fff;
}

html[data-theme="light"] .history-detail-line {
  border-color: #e2e8f0;
  background: #f8fafc;
}

html[data-theme="light"] .history-detail-line span {
  color: #526071;
}

html[data-theme="light"] .history-detail-line strong {
  color: #263445;
}

html[data-theme="light"] .history-detail-line strong.history-detail-value-short {
  color: #d92d3a;
}

html[data-theme="light"] .history-detail-line strong.history-detail-value-long {
  color: #14834f;
}

html[data-theme="light"] .history-detail-line strong.history-detail-value-profit {
  color: #14834f;
}

html[data-theme="light"] .history-detail-line strong.history-detail-value-loss {
  color: #d92d3a;
}

html[data-theme="light"] .history-detail-line strong.history-detail-value-leverage {
  border-color: rgba(37, 112, 207, 0.32);
  color: #176bc1;
  background: rgba(37, 112, 207, 0.09);
}

@media (max-width: 900px) {
  .history-filters {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 640px) {
  .account-history-ui {
    margin-top: 10px;
  }

  .simple-section-heading.history-heading-enhanced {
    gap: 8px;
  }

  .history-heading-enhanced .history-heading-title {
    font-size: 16px;
  }

  .history-heading-enhanced .history-collapse-button {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .history-categories {
    margin-right: -2px;
    padding-bottom: 11px;
  }

  .history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .history-filters label {
    font-size: 10px;
  }

  .history-filters input,
  .history-filters select {
    height: 36px;
    padding: 0 7px;
    font-size: 12px;
  }

  .history-reset {
    grid-column: 1 / -1;
  }

  .history-table-scroll {
    display: none;
  }

  .history-mobile-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .history-pagination {
    gap: 6px;
  }

  .history-page-numbers {
    gap: 3px;
  }

  .history-page-button {
    min-width: 32px;
    height: 32px;
    padding: 0 7px;
  }

  .history-page-direction {
    min-width: 60px;
    font-size: 11px;
  }

  .history-page-numbers {
    display: none;
  }

  .history-page-summary {
    display: inline;
  }

  .history-detail-line {
    gap: 12px;
    font-size: 12px;
  }

  .history-detail-line strong {
    max-width: 64%;
  }
}

@container account-history (max-width: 960px) {
  .history-table-scroll {
    display: none;
  }

  .history-mobile-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 11px 10px;
  }

  .history-card-heading .history-status {
    flex: 0 1 42%;
  }

  .history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container account-history (max-width: 560px) {
  .history-mobile-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

@container account-history (max-width: 360px) {
  .history-card-heading .history-status {
    max-width: 42%;
    padding-right: 7px;
    padding-left: 7px;
    font-size: 10px;
  }
}

.history-amount-context {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.1;
}
