@font-face {
  font-family: "IRANYekan";
  src: url("../fonts/iranyekan-regular-(fanum).woff2") format("woff2"), url("../fonts/iranyekan-regular-(fanum).woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IRANYekan";
  src: url("../fonts/iranyekan-light-(fanum).woff2") format("woff2"), url("../fonts/iranyekan-light-(fanum).woff") format("woff");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "IRANYekan";
  src: url("../fonts/iranyekan-bold-(fanum).woff2") format("woff2"), url("../fonts/iranyekan-bold-(fanum).woff") format("woff");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

/* Visual language calibrated from the real BalePay admin stylesheet. */
:root {
  --ink: #14211f;
  --muted: #6b7b78;
  --line: #dce8e3;
  --canvas: #eef5f2;
  --green: #209b78;
  --green-dark: #145844;
  --mint: #eaf8f0;
  --shadow: 0 10px 28px rgba(23, 58, 49, 0.055);
  --radius: 18px;
  font-family: "IRANYekan", Tahoma, "Segoe UI", sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: "IRANYekan", Tahoma, "Segoe UI", sans-serif;
}

.brand-mark {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #5127cc;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body {
  background: #eef5f2;
  color: var(--ink);
  font-family: "IRANYekan", Tahoma, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.demo-ribbon {
  position: relative;
  z-index: 25;
  height: 34px;
  background: #10201f;
  color: #e8fff6;
  font-size: 10px;
  letter-spacing: 0.15px;
}
.demo-ribbon b {
  color: #fff;
  font-weight: 800;
}
.ribbon-dot {
  background: #42d69c;
  box-shadow: 0 0 0 4px rgba(66, 214, 156, 0.13);
}

/* Same 260px dark-green product sidebar and two-column frame as .brsm-admin-layout. */
.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 280px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 66px);
  margin: 0 auto;
  padding: 32px 24px 24px;
}
.sidebar {
  position: sticky;
  inset: auto;
  top: 90px;
  z-index: 5;
  width: auto;
  height: calc(100vh - 114px);
  min-height: 580px;
  overflow: hidden;
  padding: 18px;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(165deg, #162a27 0%, #10201f 100%);
  box-shadow: 0 18px 45px rgba(16, 38, 34, 0.16);
  color: #f6fffb;
  transform: none;
}
.brand-row {
  position: relative;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(218, 255, 240, 0.14);
  border-radius: 18px;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.105),
    rgba(255, 255, 255, 0.035)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 22px rgba(3, 18, 14, 0.12);
}
.brand-mark {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 6px 14px rgba(2, 16, 12, 0.14);
}
.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}
.brand-row strong {
  color: #f5fffb;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}
.brand-row small {
  color: #b4cbc3;
  font-size: 10px;
}
.sidebar-close {
  color: #effbf6;
}
.store-switch {
  display: none;
}
.main-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
  min-height: 0;
  padding: 3px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(214, 245, 232, 0.25) transparent;
}
.nav-group-label {
  margin-top: 10px;
  padding: 12px 11px 5px;
  border-top: 1px solid rgba(223, 255, 241, 0.1);
  color: #78958d;
  font-size: 9px;
  font-weight: 700;
}
.nav-link {
  position: relative;
  flex: 0 0 auto;
  min-height: 42px;
  height: auto;
  gap: 11px;
  padding: 7px 11px;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  color: #a9beb8;
  background: transparent;
  text-align: right;
  font-size: 11px;
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.18s;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-2px);
}
.nav-link.active {
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 20px rgba(32, 155, 120, 0.28);
  font-weight: 800;
}
.nav-link.active::after {
  position: absolute;
  inset-block: 9px;
  inset-inline-end: 0;
  width: 3px;
  border-radius: 3px;
  background: #fff;
  content: "";
}
.nav-icon {
  width: 20px;
  font-size: 0;
}
.nav-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}
.sidebar-bottom {
  flex: 0 0 auto;
  margin-top: auto;
}
.secure-note {
  gap: 9px;
  border-color: rgba(218, 255, 240, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: #e8fff6;
}
.secure-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(32, 155, 120, 0.22);
  color: #78e1b4;
  font-size: 14px;
}
.secure-note b {
  color: #effff7;
  font-size: 10px;
}
.secure-note small {
  color: #9eb8ae;
  font-size: 9px;
}
.sidebar-version {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  padding: 12px 3px 0;
  color: #78958d;
  font-size: 8px;
}
.sidebar-version span {
  float: none;
}

/* A restrained WordPress-like admin toolbar replaces the unrelated store switch. */
.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  height: 32px;
  width: auto;
  padding: 0 24px;
  border: 0;
  background: #1d2327;
  color: #f0f0f1;
}
.topbar-start,
.topbar-actions {
  height: 100%;
  gap: 12px;
}
.wp-mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}
.breadcrumb {
  gap: 7px;
  color: #c3c4c7;
  font-size: 10px;
}
.breadcrumb i {
  color: #777c80;
}
.breadcrumb b {
  color: #fff;
  font-weight: 600;
}
.top-help,
.user-chip {
  color: #f0f0f1;
  font-size: 10px;
}
.top-help {
  gap: 6px;
}
.help-mark {
  width: 18px;
  height: 18px;
  border-color: #626a70;
  color: #d7dadc;
  font-size: 10px;
}
.top-divider {
  height: 17px;
  background: #4e555b;
}
.user-chip {
  gap: 7px;
  text-align: right;
}
.user-chip b {
  color: #f0f0f1;
  font-size: 9px;
}
.user-chip small {
  color: #a7aaad;
  font-size: 8px;
}
.user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7a5ca8;
  color: #fff;
  font-size: 9px;
}
.chevron {
  color: #a7aaad;
}
.menu-toggle {
  display: none;
  color: #fff;
}

.main-area {
  min-width: 0;
  min-height: calc(100vh - 66px);
  margin: 0;
  padding-top: 0;
}
.page-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px 0 18px;
}
.page-header {
  position: relative;
  align-items: center;
  min-height: 126px;
  margin: 0 0 18px;
  padding: 8px 2px 22px;
  overflow: hidden;
  isolation: isolate;
}
.page-header::after {
  position: absolute;
  z-index: -1;
  inset-inline-end: -64px;
  bottom: -108px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(32, 155, 120, 0.17);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px rgba(32, 155, 120, 0.045),
    0 0 0 44px rgba(32, 155, 120, 0.025);
  content: "";
  pointer-events: none;
}
.page-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}
.page-title {
  gap: 10px;
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 29px;
  font-weight: 850;
  letter-spacing: -0.3px;
}
.page-title-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(32, 155, 120, 0.1);
  color: var(--green);
  font-size: 0;
}
.page-title-icon svg {
  width: 19px;
  height: 19px;
}
.page-description {
  color: var(--muted);
  font-size: 11px;
}
.header-actions {
  gap: 9px;
}

.section-card,
.panel {
  border-color: var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(23, 58, 49, 0.055);
}
.section-card {
  padding: 22px;
  margin-bottom: 18px;
}
.panel {
  padding: 24px;
}
.stats-grid {
  gap: 18px;
}
.stat-card {
  min-height: 128px;
  padding: 20px;
  background: linear-gradient(145deg, #fff 0%, #f8fcfa 100%);
  border-color: var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(23, 58, 49, 0.055);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 32px rgba(23, 58, 49, 0.09);
}
.stat-icon {
  background: rgba(32, 155, 120, 0.11);
  color: var(--green);
}
.stat-icon.blue {
  background: #e6f4ff;
  color: #2581bb;
}
.stat-icon.amber {
  background: #fff8e2;
  color: #b5822e;
}
.stat-icon.purple {
  background: #f1edf8;
  color: #8063bb;
}
.stat-label {
  color: #6b7b78;
}
.stat-value {
  color: #14211f;
}
.panel-head {
  padding-bottom: 13px;
  border-bottom: 1px solid #edf3f0;
}
.panel-head h2,
.panel-head h3 {
  color: #173b31;
  font-size: 16px;
}
.panel-head p {
  color: #6b7b78;
  font-size: 10px;
}
.btn {
  border-color: #d3e1dc;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(22, 56, 48, 0.04);
}
.btn-primary {
  background: var(--green);
  border-color: var(--green);
}
.btn-primary:hover {
  background: #16765c;
}
.btn-soft {
  background: #f4faf7;
  color: #145844;
}
.notice {
  border-radius: 13px;
  box-shadow: 0 6px 18px rgba(23, 58, 49, 0.04);
}
.data-table th {
  background: #f3f9f6;
  color: #45675b;
}
.data-table td {
  color: #40574d;
}
.pill.success {
  background: #eaf8f0;
  color: #19765d;
}
.pill.pending {
  background: #fff8e2;
  color: #a97925;
}
.pill.failed {
  background: #fff0f0;
  color: #b34d4d;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 16px;
}
.stat-top { display: flex; align-items: center; justify-content: flex-start; margin-bottom: 10px; }
.stat-icon { font-size: 16px; }
.stat-label { margin-top: 0; }
.stat-value { display: block; overflow-wrap: anywhere; }
.chart-label { font-family: "IRANYekan", Tahoma, sans-serif; }
.page-title-icon .bi,
.nav-icon .bi { display: block; font-size: 17px; }

@media (max-width: 1180px) and (min-width: 821px) {
  .app-shell {
    grid-template-columns: minmax(240px, 260px) minmax(0, 1fr);
    gap: 16px;
    padding: 32px 14px 20px;
    width: 100%;
  }
  .sidebar {
    width: auto;
  }
  .main-area {
    margin: 0;
  }
  .page-wrap {
    padding-inline: 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .app-shell {
    display: block;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-height: calc(100vh - 66px);
    padding: 0 0 20px;
  }
  .sidebar {
    position: fixed;
    top: 66px;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 21;
    width: min(280px, 80vw);
    height: calc(100dvh - 66px);
    min-height: 0;
    border-radius: 0;
    box-shadow: -14px 0 40px rgba(16, 38, 34, 0.24);
    transform: translateX(100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-close {
    display: grid;
  }
  .sidebar-scrim.show {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(16, 32, 31, 0.58);
  }
  .main-area {
    margin: 0;
    padding-top: 0;
  }
  .topbar {
    position: relative;
    inset: auto;
    width: auto;
    padding: 0 16px;
  }
  .menu-toggle {
    display: grid;
    width: 24px;
    height: 24px;
    font-size: 15px;
  }
  .page-wrap {
    padding: 20px 16px 16px;
  }
  .page-header {
    min-height: 0;
    align-items: flex-start;
  }
  .page-title {
    font-size: 24px;
  }
  .dashboard-grid,
  .control-lower {
    grid-template-columns: 1fr;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-subnav {
    display: flex;
    overflow: auto;
  }
  .settings-subnav button {
    width: auto;
    white-space: nowrap;
  }
}
@media (max-width: 560px) {
  .demo-ribbon {
    justify-content: flex-start;
    padding: 0 10px;
    font-size: 8px;
  }
  .demo-ribbon span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar {
    position: relative;
    inset: auto;
    padding: 0 10px;
  }
  .top-help span:last-child,
  .top-divider,
  .user-chip > span:nth-child(2) {
    display: none;
  }
  .breadcrumb {
    font-size: 9px;
  }
  .topbar-actions {
    gap: 8px;
  }
  .app-shell {
    padding-inline: 0;
  }
  .page-wrap {
    padding: 16px 12px;
  }
  .page-header {
    display: flex;
    flex-direction: column;
  }
  .page-title {
    font-size: 21px;
  }
  .header-actions {
    margin-top: 8px;
  }
  .stats-grid {
    gap: 9px;
  }
  .stat-card {
    min-height: 116px;
    padding: 13px;
  }
  .stat-value {
    font-size: 19px;
  }
  .section-card,
  .panel {
    padding: 16px;
    border-radius: 15px;
  }
  .card-grid,
  .status-grid,
  .step-list {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.wide {
    grid-column: auto;
  }
  .table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .toolbar-start,
  .toolbar-end {
    width: 100%;
  }
  .search-box,
  .search-box .input {
    width: 100%;
  }
  .method-switch {
    flex-direction: column;
  }
  .chart-wrap {
    height: 175px;
  }
  .toast-region {
    right: 10px;
    left: 10px;
    bottom: 10px;
  }
  .toast {
    width: 100%;
    min-width: 0;
  }
  .page-footer {
    flex-direction: column;
    gap: 5px;
  }
}

.dashboard-analysis {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2fr);
  gap: 22px;
  margin: 0 0 18px;
  padding: 22px;
  border: 1px solid #cfe4da;
  border-radius: 18px;
  background: linear-gradient(120deg, #f1fbf7 0%, #fff 52%, #f8fbfa 100%);
  box-shadow: 0 12px 30px rgba(23, 58, 49, 0.07);
}
.analysis-intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.analysis-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #d8f3e7;
  color: #18765b;
}
.analysis-icon svg {
  width: 22px;
  height: 22px;
}
.analysis-icon .bi { font-size: 21px; }
.analysis-intro .page-kicker {
  margin: 1px 0 5px;
  font-size: 9px;
}
.analysis-intro h2 {
  margin: 0 0 6px;
  color: #14211f;
  font-size: 16px;
}
.analysis-intro p {
  margin: 0;
  color: #6b7b78;
  font-size: 10px;
  line-height: 1.9;
}
.analysis-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.analysis-metrics > div {
  padding: 10px;
  border: 1px solid rgba(32, 155, 120, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
}
.analysis-metrics small,
.analysis-metrics span {
  display: block;
  color: #71827b;
  font-size: 8px;
}
.analysis-metrics strong {
  display: block;
  margin: 4px 0;
  color: #173b31;
  font-size: 12px;
}
.analysis-metrics .positive {
  color: #188d69;
}
.analysis-note {
  grid-column: 1/-1;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(32, 155, 120, 0.07);
  color: #45675b;
  font-size: 9px;
}
.dashboard-recommendations {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px,.78fr) minmax(0,1.22fr);
  align-items: center;
  gap: 22px;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 22px 24px;
  border: 1px solid #d8e7e1;
  border-radius: 20px;
  background: linear-gradient(115deg,#fff 0%,#f8fcfa 100%);
  box-shadow: 0 14px 32px rgba(23,58,49,.07);
}
.dashboard-recommendations::before { position:absolute; inset:0 auto 0 0; width:4px; background:#d49b3f; content:""; }
.dashboard-recommendations.is-negative::before { background:#d56a65; }
.dashboard-recommendations.is-positive::before { background:#209b78; }
.dashboard-recommendations > header { display:flex; align-items:flex-start; gap:12px; min-width:0; }
.dashboard-recommendations .recommendation-icon { display:grid; place-items:center; flex:0 0 42px; width:42px; height:42px; border:1px solid #f0dcae; border-radius:14px; background:#fff7e6; color:#ad7720; font-size:19px; }
.dashboard-recommendations.is-negative .recommendation-icon { border-color:#f1d4d1; background:#fff0ef; color:#b34d4d; }
.dashboard-recommendations.is-positive .recommendation-icon { border-color:#cde9db; background:#eaf8f0; color:#188d69; }
.dashboard-recommendations .page-kicker { margin:0 0 4px; font-size:9px; }
.dashboard-recommendations h2 { margin:0 0 6px; color:#173b31; font-size:16px; }
.dashboard-recommendations p { margin:0; color:#6b7b78; font-size:10px; line-height:1.9; }
.dashboard-recommendation-reason { display:block; margin-top:8px; color:#71877f; font-size:9px; line-height:1.8; }
.dashboard-recommendation-list { display:grid; gap:8px; min-width:0; }
.dashboard-recommendation-list article { display:flex; align-items:center; gap:9px; min-width:0; padding:9px 11px; border:1px solid #e0ebe6; border-radius:12px; background:rgba(255,255,255,.82); color:#536e65; font-size:10px; line-height:1.8; }
.dashboard-recommendation-list article > i { flex:0 0 auto; color:#16805e; font-size:15px; }
.dashboard-recommendation-list article > span { flex:1; min-width:0; }
.dashboard-recommendation-list .btn { flex:0 0 auto; min-height:30px; font-size:9px; }
.quick-access-card {
  padding: 20px 22px;
}
.quick-access-card .panel-head {
  margin-bottom: 12px;
}
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.quick-access-grid button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid #e3eee8;
  border-radius: 12px;
  background: #fff;
  color: #24473c;
  text-align: right;
  cursor: pointer;
  font: inherit;
}
.quick-access-grid button:hover {
  border-color: #b8dfca;
  background: #f7fcf9;
}
.quick-access-grid b,
.quick-access-grid small {
  display: block;
}
.quick-access-grid b {
  font-size: 10px;
}
.quick-access-grid small {
  margin-top: 2px;
  color: #73847d;
  font-size: 8px;
}
.quick-icon {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(32, 155, 120, 0.11);
  color: #188d69;
  font-size: 15px;
}
.main-nav .nav-group-label {
  flex: 0 0 auto;
}
@media (max-width: 900px) {
  .dashboard-analysis {
    grid-template-columns: 1fr;
  }
  .dashboard-recommendations { grid-template-columns:1fr; gap:14px; }
  .analysis-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .quick-access-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-analysis {
    padding: 16px;
  }
  .dashboard-recommendations { padding:16px; }
  .dashboard-recommendations > header { gap:9px; }
  .dashboard-recommendation-list article { flex-wrap:wrap; }
  .dashboard-recommendation-list article > span { flex-basis:calc(100% - 32px); }
}

.dashboard-payment-grid {
  margin-top: 4px;
}
.brsm-payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.brsm-payment-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #f8fcfa);
  box-shadow: 0 7px 20px rgba(22, 56, 48, 0.05);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.brsm-payment-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--green) 45%, var(--line));
  box-shadow: 0 12px 26px rgba(22, 56, 48, 0.09);
}
.brsm-payment-card.is-status-paid,
.brsm-payment-card.is-status-approved {
  border-color: #b9e2cc;
  background: linear-gradient(145deg, #f5fff8, #eaf8f0);
}
.brsm-payment-card.is-status-pending_review,
.brsm-payment-card.is-status-awaiting_receipt {
  border-color: #ecd79f;
  background: linear-gradient(145deg, #fffdf5, #fff8e2);
}
.brsm-payment-card.is-status-rejected,
.brsm-payment-card.is-status-failed {
  border-color: #efc5c5;
  background: linear-gradient(145deg, #fffafa, #fff0f0);
}
.brsm-payment-card.is-status-refunded {
  border-color: #c7dced;
  background: linear-gradient(145deg, #f8fcff, #eef6fd);
}
.brsm-payment-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(220, 232, 227, .8);
}
.transaction-order-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: right;
  cursor: pointer;
}
.transaction-order-link:hover {
  color: var(--green);
}
.brsm-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f3f4;
  color: #646b74;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.brsm-status.is-paid,
.brsm-status.is-approved {
  background: #e8f7f1;
  color: #17684f;
}
.brsm-status.is-pending_review,
.brsm-status.is-awaiting_receipt,
.brsm-status.is-sent,
.brsm-status.is-created,
.brsm-status.is-blupal_pending {
  background: #fff4d9;
  color: #7b5910;
}
.brsm-status.is-rejected,
.brsm-status.is-failed {
  background: #fff0f0;
  color: #963434;
}
.brsm-status.is-expired,
.brsm-status.is-cancelled,
.brsm-status.is-order_deleted {
  background: #f1f3f4;
  color: #747b85;
}
.brsm-status.is-refunded {
  background: #eaf4fc;
  color: #245c91;
}
.brsm-payment-card-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 14px 0;
  color: var(--muted);
  font-size: 12px;
}
.brsm-payment-card-meta strong {
  color: var(--ink);
  font-size: 15px;
}
.brsm-payment-card-meta small {
  grid-column: 1 / -1;
  color: #82938e;
}
.brsm-payment-card-receipt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: auto;
  padding: 10px 12px;
  border: 1px solid #d4e8df;
  border-radius: 10px;
  background: rgba(240, 248, 244, .78);
  color: #49635a;
  font-size: 12px;
  text-align: center;
  overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .brsm-payment-grid {
    grid-template-columns: 1fr;
  }
}
