.history-button {
  min-width: 112px !important;
  min-height: 48px;
  padding: 7px 10px !important;
  border: 1px solid #d8e0eb !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #263a55 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  text-align: left;
  white-space: pre-line;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 2px rgb(23 42 67 / 5%);
}

.history-button:hover {
  border-color: #d7a849 !important;
  color: #9a6712 !important;
  background: #fffaf0 !important;
}

.history-dialog {
  width: min(960px, calc(100vw - 48px)) !important;
  max-height: min(820px, calc(100vh - 48px)) !important;
}

.xl-history-summary-strip {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
  padding: 14px 16px;
  border: 1px solid #f0d9aa;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffaf0, #fff);
  color: #68758a;
}

.xl-history-summary-strip strong {
  color: #142744;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.xl-history-summary-strip small {
  margin-left: auto;
  color: #7d899a;
}

.xl-history-daily-spend {
  margin: 8px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8edf4;
  color: #142744;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px) {
  .history-button {
    min-width: 96px !important;
    font-size: 11px !important;
  }

  .history-dialog {
    width: calc(100vw - 24px) !important;
  }

  .xl-history-summary-strip {
    flex-wrap: wrap;
  }

  .xl-history-summary-strip small {
    width: 100%;
    margin-left: 0;
  }
}
