/* =========================================================
   TRANSACTIONS PAGE — pagination bar
   (everything else reuses .cs-tx-* from dashboard.css)
   ========================================================= */

.cs-tx-page-area--loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.cs-tx-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--cs-cloud-200);
  flex-wrap: wrap;
}

.cs-tx-page-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--cs-cloud-200);
  background: var(--cs-white);
  color: var(--cs-brand-700);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: var(--cs-radius-pill);
  cursor: pointer;
}

.cs-tx-page-btn svg {
  width: 15px;
  height: 15px;
}
.cs-section-head h2{
    font-weight:800;
    font-size:1.9em;
}
.cs-section-head{
    margin-bottom:2em;
}
.cs-tx-page-btn:disabled {
  color: var(--cs-slate-400);
  border-color: var(--cs-cloud-200);
  cursor: default;
  opacity: 0.6;
}

.cs-tx-page-btn:not(:disabled):hover {
  background: var(--cs-cloud-100);
}

.cs-tx-page-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cs-slate-600);
}

.cs-tx-jump {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cs-tx-jump-input {
  width: 72px;
  border: 1px solid var(--cs-cloud-200);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12.5px;
  color: var(--cs-ink-950);
  text-align: center;
}

.cs-tx-jump-input:focus {
  outline: none;
  border-color: var(--cs-brand-500);
}

.cs-tx-jump-btn {
  border: none;
  background: var(--cs-brand-600);
  color: var(--cs-white);
  font-weight: 700;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.cs-tx-jump-btn:hover {
  background: var(--cs-brand-700);
}

@media (max-width: 480px) {
  .cs-tx-pagination {
    flex-direction: column;
  }
}

/* =========================================================
   TRANSACTION ID — shown per row, with copy button
   ========================================================= */

.cs-tx-id-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
}

.cs-tx-id {
  font-family: var(--cs-font-body), monospace;
  font-size: 11px;
  color: var(--cs-slate-400);
  letter-spacing: 0.02em;
}

.cs-tx-copy-btn {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: none;
  background: var(--cs-cloud-100);
  color: var(--cs-brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cs-tx-copy-btn:hover {
  background: var(--cs-cloud-200);
}

/* =========================================================
   SEARCH BAR
   ========================================================= */

.cs-tx-search {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  background: var(--cs-white);
  border: 1px solid var(--cs-cloud-200);
  border-radius: var(--cs-radius-md);
}

.cs-tx-search-row {
  display: flex;
  gap: 8px;
}

.cs-tx-search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cs-cloud-50);
  border: 1px solid var(--cs-cloud-200);
  border-radius: var(--cs-radius-pill);
  padding: 0 14px;
}

.cs-tx-search-input-wrap:focus-within {
  border-color: var(--cs-brand-500);
}

.cs-tx-search-icon {
  flex: none;
  display: flex;
  color: var(--cs-slate-400);
}

.cs-tx-search-icon svg {
  width: 16px;
  height: 16px;
}

.cs-tx-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 11px 0;
  font-size: 13.5px;
  color: var(--cs-ink-950);
  min-width: 0;
}

.cs-tx-search-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: var(--cs-brand-600);
  color: var(--cs-white);
  font-weight: 700;
  font-size: 13.5px;
  padding: 0 20px;
  border-radius: var(--cs-radius-pill);
  cursor: pointer;
  flex: none;
}

.cs-tx-search-btn svg {
  width: 15px;
  height: 15px;
}

.cs-tx-search-btn:hover {
  background: var(--cs-brand-700);
}

.cs-tx-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cs-tx-preset-btn {
  border: 1px solid var(--cs-cloud-200);
  background: var(--cs-cloud-50);
  color: var(--cs-slate-600);
  font-weight: 600;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: var(--cs-radius-pill);
  cursor: pointer;
}

.cs-tx-preset-btn:hover {
  background: var(--cs-cloud-100);
}

.cs-tx-preset-btn.is-active {
  background: var(--cs-brand-700);
  border-color: var(--cs-brand-700);
  color: var(--cs-white);
}

.cs-tx-custom-dates {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.cs-tx-custom-dates--hidden {
  display: none;
}

.cs-tx-date-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--cs-slate-600);
}

.cs-tx-date-input {
  border: 1px solid var(--cs-cloud-200);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--cs-ink-950);
}

.cs-tx-date-input:focus {
  outline: none;
  border-color: var(--cs-brand-500);
}

@media (max-width: 480px) {
  .cs-tx-search-row {
    flex-direction: column;
  }

  .cs-tx-search-btn {
    justify-content: center;
    padding: 11px 20px;
  }
}

/* ===========================================================
   ADDITIONS FOR all-transactions.js
   ===========================================================
   These are NEW classes introduced by the receipt/first_name/
   status-badge update — I don't have your existing stylesheet
   for this page (cs-tx-search, cs-tx-pagination, etc. must live
   somewhere already, since they're referenced but weren't part
   of dashboard.css), so this is only the delta to merge in
   alongside those, not a full replacement stylesheet.

   Uses the same --cs-* design tokens defined in dashboard.css's
   :root block — load that on this page too if it isn't already.
   =========================================================== */

.cs-tx-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-tx-status {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--cs-radius-pill);
  line-height: 1.6;
}

.cs-tx-status--completed {
  background: var(--cs-mint-100);
  color: var(--cs-mint-500);
}

.cs-tx-status--pending {
  background: #fff4e0;
  color: #b8730a;
}

.cs-tx-status--failed {
  background: var(--cs-coral-100);
  color: var(--cs-coral-500);
}

.cs-tx-status--duplicate {
  background: var(--cs-cloud-200);
  color: var(--cs-slate-600);
}

.cs-tx-status--unmatched {
  background: #f1e6fb;
  color: #7a3fc4;
}

.cs-tx-status--unknown {
  background: var(--cs-cloud-100);
  color: var(--cs-slate-400);
}