.fiscal-history-card {
  position: relative;
}

.fiscal-history-details {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.fiscal-history-details:focus-visible,
.fiscal-open:focus-visible {
  outline: 2px solid #fff4a2;
  outline-offset: 2px;
}

.fiscal-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.wallet-history .wallet-charge-details {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  text-align: start;
}

.wallet-history .wallet-charge-details span {
  min-width: 0;
}

.wallet-history .wallet-charge-details strong {
  color: #f2fff7;
  font-size: 14px;
  white-space: normal;
}

.wallet-history .wallet-charge-details svg {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #b8e5bc;
  stroke-width: 2;
}

.wallet-history .wallet-charge-details:focus-visible {
  outline: 2px solid #b8e5bc;
  outline-offset: 3px;
}

.history-card .totals {
  align-items: flex-end;
}

.history-card .totals .fiscal-amount strong {
  color: inherit;
}

.fiscal-open {
  position: relative;
  z-index: 1;
  min-width: 62px;
  min-height: 36px;
  padding: 5px 12px;
  border: 1px solid #ffe684;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffe564, #ffc34c);
  color: #161b0c;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.fiscal-open:active {
  background: #f3b538;
}

.fiscal-dialog {
  box-sizing: border-box;
  width: min(92vw, 460px);
  max-height: 85vh;
  max-height: 85dvh;
  padding: 20px;
  border: 1px solid #478678;
  border-radius: 20px;
  background: #07231e;
  color: #effff8;
  overflow: auto;
}

.fiscal-dialog::backdrop {
  background: #00170ed9;
}

.fiscal-dialog .full {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  text-align: center;
  text-decoration: none;
}
