@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --ink: #172b2a;
  --muted: #77817d;
  --green: #155a48;
  --line: #e3e8e4;
  --paper: #f7f8f5;
  --soft: #eaf1e9;
  --red: #a44435;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px "DM Sans",
    system-ui,
    sans-serif;
}
h1,
h2,
h3,
.brand {
  font-family: Manrope, system-ui, sans-serif;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 0 0 8px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
}
h3 {
  font-size: 14px;
}
p {
  line-height: 1.65;
}
a {
  color: var(--green);
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 16px;
  background: white;
  color: var(--ink);
  font-weight: 500;
}
button:hover {
  background: #eef2ed;
}
button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
button.primary:hover {
  background: #104b3b;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.brand {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.7px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-size: 23px;
  font-weight: 400;
}
.layout {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 20px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  margin: 0 9px 42px;
}
.section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: #8b948e;
  margin: 20px 14px 12px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  border: 0;
  text-align: left;
  background: transparent;
  padding: 12px 14px;
  display: flex;
  gap: 13px;
  color: #6a7770;
  align-items: center;
}
.nav button.active {
  background: var(--soft);
  color: var(--green);
  font-weight: 700;
}
.icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 22px 10px 0;
}
.sidebar-bottom p {
  margin: 4px 0;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 80px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.mode {
  background: #f5f2e8;
  border: 1px solid #ece3c8;
  color: #7d6c37;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 20px;
}
.avatar {
  width: 32px;
  height: 32px;
  background: #e8ede7;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.content {
  padding: 38px 42px;
  max-width: 1530px;
  margin: auto;
}
.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 28px;
}
.pagehead p {
  margin: 0;
}
.actions {
  display: flex;
  gap: 10px;
}
.banner {
  background: #eff2e9;
  border: 1px solid #dfe6d7;
  border-radius: 9px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 28px;
}
.banner p {
  margin: 4px 0;
  font-size: 12px;
  color: #6a7762;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 27px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}
.stat:first-child {
  background: var(--green);
  color: #fff;
}
.stat .label {
  font-size: 12px;
  opacity: 0.7;
}
.stat .value {
  font-family: Manrope, sans-serif;
  font-size: 29px;
  letter-spacing: -0.8px;
  margin: 15px 0;
}
.stat .foot {
  font-size: 11px;
  opacity: 0.65;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 22px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.card-head h2 {
  margin: 0;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.chart {
  height: 175px;
  display: flex;
  gap: 14px;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  padding: 10px 10px 0;
}
.bar {
  flex: 1;
  background: #d5e4d6;
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  position: relative;
}
.bar:hover {
  background: #7da38a;
}
.bar label {
  position: absolute;
  bottom: -24px;
  left: 0;
  font-size: 10px;
  color: var(--muted);
}
.chart-wrap {
  padding-bottom: 30px;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.filters input {
  width: 150px;
}
.filters input[type="search"] {
  flex: 1;
  min-width: 160px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
}
th {
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  background: #fafbf8;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  font-size: 12px;
  padding: 17px 12px;
  border-bottom: 1px solid #edf0e9;
}
tr:last-child td {
  border: 0;
}
.badge {
  display: inline-block;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 10px;
  text-transform: capitalize;
  background: #f2eee0;
  color: #8c7332;
}
.badge.approved,
.badge.succeeded {
  background: #e7f1e8;
  color: #2f7048;
}
.badge.rejected,
.badge.failed {
  background: #fae8e3;
  color: #9e4b3a;
}
.empty {
  text-align: center;
  padding: 44px 20px;
  color: var(--muted);
}
.empty strong {
  display: block;
  color: var(--ink);
  margin: 10px;
  font-size: 15px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.field label {
  font-size: 12px;
  font-weight: 500;
}
input,
select,
textarea {
  border: 1px solid #dce2da;
  background: #fff;
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  max-width: 100%;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #b7cdbd;
  outline-offset: 1px;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
.span2 {
  grid-column: 1/-1;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-aside {
  background: #173e34;
  color: #fff;
  padding: 55px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-aside .mark {
  background: #cedab4;
  color: #173e34;
}
.auth-aside h1 {
  font-size: 48px;
  line-height: 1.15;
  max-width: 520px;
}
.auth-aside p {
  color: #b7c9bd;
  max-width: 420px;
}
.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-box {
  width: 390px;
}
.auth-box h1 {
  font-size: 27px;
}
.auth-tabs {
  display: flex;
  gap: 5px;
  margin: 28px 0;
}
.auth-tabs button {
  flex: 1;
}
.auth-tabs .active {
  background: var(--soft);
  border-color: #c7d6c8;
}
.full {
  width: 100%;
}
.error {
  color: var(--red);
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0;
}
.info {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.key {
  background: #f5f7f2;
  padding: 15px;
  word-break: break-all;
  border-radius: 6px;
  font-family: monospace;
}
.checkout {
  max-width: 500px;
  margin: 50px auto;
  padding: 20px;
}
.checkout .brand {
  justify-content: center;
  margin: 0 0 40px;
}
.checkout .card {
  padding: 30px;
}
#toast {
  position: fixed;
  bottom: 26px;
  right: 26px;
  border-radius: 8px;
  background: #173e34;
  color: white;
  padding: 15px 22px;
  display: none;
  z-index: 100;
  max-width: 450px;
  box-shadow: 0 8px 30px #0002;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.detail-grid p {
  margin: 0;
  word-break: break-word;
}
.detail-grid label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}
.notice {
  background: #f8f3e9;
  border: 1px solid #eee3cc;
  padding: 15px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.link-card:last-child {
  border: 0;
}
.link-card p {
  margin: 4px 0;
}
.inline {
  display: flex;
  gap: 10px;
  align-items: center;
}
.mobile-brand {
  display: none;
}
.progress {
  display: flex;
  gap: 6px;
  margin: 25px 0;
}
.progress span {
  height: 4px;
  background: #dde5d9;
  flex: 1;
  border-radius: 4px;
}
.progress span.done {
  background: var(--green);
}
code {
  font-size: 12px;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 1000px) {
  .content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .layout {
    grid-template-columns: 200px 1fr;
  }
  .sidebar {
    width: 200px;
    padding: 26px 12px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .stat .value {
    font-size: 23px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .auth-aside {
    padding: 35px;
  }
  .auth-aside h1 {
    font-size: 36px;
  }
}
@media (max-width: 700px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    margin: 0 0 15px;
  }
  .nav {
    flex-direction: row;
    overflow: auto;
    gap: 0;
  }
  .nav button {
    white-space: nowrap;
    padding: 10px;
  }
  .nav .icon,
  .section-label,
  .sidebar-bottom {
    display: none;
  }
  .topbar {
    height: 58px;
    padding: 0 18px;
  }
  .content {
    padding: 24px 16px;
  }
  .pagehead {
    align-items: flex-start;
    flex-direction: column;
  }
  h1 {
    font-size: 25px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat .value {
    margin: 10px 0;
  }
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .auth {
    display: block;
  }
  .auth-aside {
    padding: 25px;
  }
  .auth-aside h1,
  .auth-aside p,
  .auth-aside footer {
    display: none;
  }
  .auth-form {
    padding: 35px 22px;
  }
  .banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .top-right {
    gap: 10px;
  }
  .chart {
    gap: 6px;
  }
  .link-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .actions {
    flex-wrap: wrap;
  }
}

.nav {
  overflow-y: auto;
  min-height: 0;
}
.sidebar-bottom {
  flex-shrink: 0;
}
.nav button {
  flex-shrink: 0;
}
.badge.unknown,
.badge.manual_review {
  background: #f4e2d8;
  color: #9a5132;
}
.badge.queued,
.badge.awaiting_approval {
  background: #f2eee0;
  color: #8c7332;
}
pre.key {
  max-width: 600px;
  white-space: pre-wrap;
}
details summary {
  cursor: pointer;
}
.table-wrap form {
  display: flex;
  gap: 6px;
  align-items: center;
}
.table-wrap input {
  width: 190px;
}
.table-wrap select {
  width: 150px;
}
@media (max-width: 700px) {
  .nav {
    overflow-x: auto;
    overflow-y: hidden;
  }
  .sidebar-bottom {
    display: none;
  }
}

.sidebar {
  padding-top: 24px;
  padding-bottom: 24px;
}
.sidebar .brand {
  margin-bottom: 24px;
}
.section-label {
  margin-top: 12px;
  margin-bottom: 8px;
}
.nav button {
  padding-top: 9px;
  padding-bottom: 9px;
}
.sidebar-bottom {
  padding-top: 12px;
}
.sidebar-bottom button {
  margin-top: 0 !important;
}
#workspace-switch {
  margin: 0 8px 12px;
  width: calc(100% - 16px);
  font-size: 12px;
}
@media (max-width: 700px) {
  #workspace-switch {
    max-width: 220px;
    margin-left: 0;
  }
  .sidebar .brand {
    margin-bottom: 14px;
  }
}

/* Merchant integration reference */
.docs-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.docs-toc {
  position: sticky;
  top: 24px;
  padding: 20px;
  display: grid;
  gap: 14px;
}
.docs-toc a {
  color: #30594e;
  font-size: 13px;
  text-decoration: none;
}
.docs-toc a:hover {
  text-decoration: underline;
}
.docs-main {
  min-width: 0;
}
.docs-main section {
  scroll-margin-top: 24px;
  margin-bottom: 24px;
}
.docs-main p,
.docs-main li {
  line-height: 1.7;
}
.docs-main li {
  margin-bottom: 8px;
}
.docs-main h3 {
  margin-top: 24px;
}
.docs-code {
  position: relative;
  margin: 16px 0;
  background: #172e28;
  color: #e7f2ed;
  border-radius: 10px;
}
.docs-code pre {
  overflow: auto;
  padding: 48px 20px 20px;
  font-size: 12px;
  line-height: 1.65;
  margin: 0;
}
.docs-code button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #28463c;
  color: #fff;
  border-color: #4a655c;
}
.docs-flow {
  background: #edf3ef;
  padding: 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.docs-endpoint {
  border: 1px solid var(--border, #e5e7e2);
  border-radius: 8px;
  margin: 12px 0;
}
.docs-endpoint summary {
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px;
  font-size: 13px;
}
.docs-endpoint summary > span:last-child {
  color: #65746c;
}
.docs-method {
  color: #30594e;
  background: #edf3ef;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}
.docs-endpoint-body {
  padding: 0 16px 16px;
}
.docs-endpoint-body .table-wrap {
  margin: 16px 0;
}
.docs-endpoint-body td {
  white-space: normal;
  vertical-align: top;
}
.docs-downloads {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.docs-download {
  display: inline-block;
  border: 1px solid #dbe3dd;
  border-radius: 7px;
  padding: 12px;
  color: #30594e;
  text-decoration: none;
  font-size: 13px;
}
.docs-endpoint[hidden] {
  display: none;
}
@media (max-width: 1050px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }
}

.docs-main input {
  display: block;
  width: 100%;
  margin: 8px 0 12px;
}
.docs-main label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-top: 16px;
}

@media print { .sidebar,.topbar,button,#toast,a {display:none!important} body,.checkout,.card {background:white!important;color:black!important;box-shadow:none!important;border:0!important} .checkout {max-width:none!important;margin:0!important;padding:0!important} }
