/* Client dashboard: gained/used points ledger */
.points-ledger-panel-pro {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
}

.points-ledger-panel-pro::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: linear-gradient(90deg, #1c7c54, #f59e0b, #0f172a);
}

.points-ledger-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.points-ledger-summary span {
  display: grid;
  min-width: 94px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.08);
  background: #f8fafc;
  text-align: center;
}

.points-ledger-summary strong {
  font-size: 1.25rem;
  line-height: 1;
  color: #0f172a;
}

.points-ledger-summary em {
  margin-top: 4px;
  color: #64748b;
  font-style: normal;
  font-weight: 900;
  font-size: .72rem;
  text-transform: uppercase;
}

.points-ledger-summary .gain {
  background: #ecfdf3;
  border-color: rgba(28,124,84,.18);
}

.points-ledger-summary .gain strong {
  color: #0f7f55;
}

.points-ledger-summary .use {
  background: #fff7ed;
  border-color: rgba(245,158,11,.24);
}

.points-ledger-summary .use strong {
  color: #b45309;
}

.points-ledger-table-wrap {
  margin-top: 16px;
}

.points-ledger-table {
  min-width: 760px;
}

.ledger-type-pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2f6;
  color: #334155;
  font-size: .76rem;
  font-weight: 900;
  white-space: nowrap;
}

.ledger-points {
  display: inline-flex;
  min-width: 76px;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 1000;
}

.ledger-points.is-gain {
  background: #dcfae6;
  color: #067647;
}

.ledger-points.is-use {
  background: #ffedd5;
  color: #c2410c;
}

@media (max-width: 700px) {
  .points-ledger-summary {
    justify-content: stretch;
  }
  .points-ledger-summary span {
    flex: 1 1 30%;
  }
}
