/* OttoCare HISTORY module — scoped to .oc-history. Look moved from rewards_review_3.html (balance-history-modal, rewards-ledger). */
.oc-history, .oc-history * { box-sizing: border-box; }
.oc-history {
  position: absolute;        /* covers .oc-phone; history.js switches to fixed when there is no phone */
  inset: 0;
  z-index: 5060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  font-family: 'DM Sans', sans-serif;
  color: #fff;
}
.oc-history[hidden] { display: none; }
.oc-history-card {
  width: min(420px, 100%);
  max-height: min(720px, 88%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(145deg, #1a2535 0%, #0f1828 60%, #0a1020 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.oc-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.04);
  color: #c9a84c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.oc-history-close {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}
.oc-history-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.oc-history-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  scrollbar-width: thin;                                   /* same thin gold bar as the roadside pop-up */
  scrollbar-color: rgba(201, 168, 76, 0.55) transparent;
}
.oc-history-list::-webkit-scrollbar { width: 4px; }
.oc-history-list::-webkit-scrollbar-track { background: transparent; }
.oc-history-list::-webkit-scrollbar-thumb { background: rgba(201, 168, 76, 0.55); border-radius: 4px; }
.oc-history-empty { padding: 24px; text-align: center; color: rgba(255, 255, 255, 0.6); font-size: 13px; }

.oc-tx {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.oc-tx.minus { border-color: rgba(204, 0, 0, 0.18); background: linear-gradient(to bottom, rgba(204, 0, 0, 0.14), rgba(204, 0, 0, 0.03)); }
.oc-tx-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.oc-tx-date { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
.oc-tx-amount { font-size: 16px; font-weight: 700; color: #b3e5b3; }
.oc-tx.minus .oc-tx-amount { color: #ffb3b3; }
.oc-tx-ro { margin-top: -6px; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.oc-tx-desc {
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-word;
}
.oc-tx-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.oc-tx-pair { display: flex; align-items: center; gap: 8px; }
.oc-tx-label { min-width: 40px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.oc-tx-value { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.85); white-space: nowrap; }
