:root {
  --ink: #182b28;
  --muted: #788984;
  --line: #e8eeeb;
  --paper: #fff;
  --canvas: #f4f7f6;
  --green: #188d69;
  --green-dark: #116b50;
  --mint: #e8f6f0;
  --blue: #5378c8;
  --blue-soft: #edf2ff;
  --amber: #c6872e;
  --amber-soft: #fff5e5;
  --red: #c15f5e;
  --red-soft: #fff0ef;
  --purple: #8063bb;
  --purple-soft: #f2edfb;
  --shadow: 0 12px 32px rgba(37, 65, 55, 0.055);
  --radius: 18px;
  font-family: Tahoma, "Segoe UI", sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  font-size: 14px;
  line-height: 1.7;
}
.demo-ribbon {
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: #163b31;
  color: #e5fff3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.ribbon-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #77ddb0;
  box-shadow: 0 0 0 4px #77ddb01f;
}
.ribbon-separator {
  opacity: 0.4;
}
.app-shell {
  min-height: calc(100vh - 34px);
}
.sidebar {
  position: fixed;
  z-index: 20;
  inset: 34px 0 0 auto;
  width: 258px;
  background: #fff;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 20px 14px 12px;
  transition: transform 0.25s ease;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 7px 18px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  color: var(--green);
}
.brand-mark svg {
  width: 100%;
  height: 100%;
}
.brand-row strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.4px;
}
.brand-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.icon-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.sidebar-close {
  display: none;
  margin-right: auto;
  font-size: 24px;
}
.store-switch {
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.store-avatar,
.user-avatar {
  display: grid;
  place-items: center;
  background: #dff2e9;
  color: var(--green-dark);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-weight: 800;
}
.store-switch b,
.user-chip b {
  display: block;
  font-size: 11px;
}
.store-switch small,
.user-chip small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.chevron {
  margin-right: auto;
  color: #97a59f;
}
.main-nav {
  overflow: auto;
  scrollbar-width: thin;
  padding-bottom: 12px;
}
.nav-group-label {
  padding: 10px 11px 5px;
  color: #9aa8a2;
  font-size: 10px;
  font-weight: 700;
}
.nav-link {
  border: 0;
  width: 98%;
  height: 42px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  border-radius: 11px;
  text-align: right;
  color: #687972;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: 0.18s;
}
.nav-link:hover {
  background: #f4f8f6;
  color: var(--green-dark);
}
.nav-link.active {
  background: var(--mint);
  color: var(--green-dark);
  font-weight: 700;
}
.nav-icon {
  width: 21px;
  display: inline-grid;
  place-items: center;
  font-size: 17px;
  color: currentColor;
}
.nav-link .nav-count {
  margin-right: auto;
  background: #fff0df;
  color: #b3751d;
  border-radius: 20px;
  font-size: 10px;
  padding: 1px 7px;
}
.sidebar-bottom {
  margin-top: auto;
}
.secure-note {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f6faf8;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}
.secure-icon {
  display: grid;
  place-items: center;
  color: var(--green);
  background: #e4f5ec;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 20px;
}
.secure-note b {
  display: block;
  font-size: 10px;
}
.secure-note small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.sidebar-version {
  padding: 12px 4px 0;
  color: #83918b;
  font-size: 9px;
}
.sidebar-version span {
  float: left;
}
.main-area {
  margin-right: 258px;
  min-height: calc(100vh - 34px);
}
.topbar {
  height: 68px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar-start,
.topbar-actions,
.breadcrumb,
.user-chip {
  display: flex;
  align-items: center;
}
.breadcrumb {
  gap: 9px;
  color: #8b9993;
  font-size: 11px;
}
.breadcrumb i {
  font-style: normal;
  color: #b7c0bc;
}
.breadcrumb b {
  font-weight: 700;
  color: var(--ink);
}
.topbar-actions {
  gap: 17px;
}
.top-help,
.user-chip {
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.top-help {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #73827c;
  font-size: 11px;
}
.help-mark {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid #dfe8e3;
  color: var(--green);
  border-radius: 50%;
  font-weight: 700;
}
.top-divider {
  height: 27px;
  width: 1px;
  background: var(--line);
}
.user-chip {
  gap: 9px;
  text-align: right;
}
.user-avatar {
  border-radius: 50%;
  background: #f2e9dc;
  color: #8c6034;
}
.menu-toggle {
  display: none;
}
.page-wrap {
  max-width: 1460px;
  margin: auto;
  padding: 30px 36px 22px;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 23px;
}
.page-kicker {
  color: var(--green);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.02em;
}
.page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 3px 0 4px;
  font-size: 23px;
  letter-spacing: -0.6px;
}
.page-title-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 12px;
  color: var(--green);
  background: var(--mint);
  font-size: 19px;
}
.page-description {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 37px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: #43544d;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 13px #153a2b10;
}
.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.btn-primary:hover {
  background: var(--green-dark);
}
.btn-soft {
  background: #f4f8f6;
  color: var(--green-dark);
  border-color: #e1ede6;
}
.btn-danger {
  color: var(--red);
  background: #fff;
  border-color: #f3dedc;
}
.btn-small {
  min-height: 30px;
  padding: 0 10px;
  font-size: 10px;
}
.btn-icon {
  width: 34px;
  min-height: 34px;
  padding: 0;
  font-size: 16px;
}
.section-card,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section-card {
  padding: 20px;
  margin-bottom: 17px;
}
.panel {
  padding: 20px;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.2px;
}
.panel-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.panel-head-action {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  background: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 17px;
}
.stat-card {
  position: relative;
  padding: 17px 17px 15px;
  min-height: 123px;
  overflow: hidden;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--green);
  font-size: 16px;
}
.stat-icon.bi::before { display: inline-block; }
.stat-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}
.stat-icon.amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.stat-icon.purple {
  background: var(--purple-soft);
  color: var(--purple);
}
.stat-trend {
  font-size: 9px;
  color: var(--green);
  background: #eef9f3;
  padding: 3px 7px;
  border-radius: 20px;
}
.stat-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 12px;
}
.stat-value {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.3;
}
.stat-unit {
  font-size: 10px;
  color: #87958f;
  font-weight: 500;
}
.stat-foot {
  color: #94a09b;
  font-size: 9px;
  margin-top: 3px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 16px;
  margin-bottom: 17px;
}
.chart-wrap {
  height: 220px;
  position: relative;
  padding: 12px 6px 4px;
}
.chart-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart-gridline {
  stroke: #eef2ef;
  stroke-width: 1;
}
.chart-label {
  fill: #9aa7a1;
  font-size: 9px;
  font-family: Tahoma, sans-serif;
}
.chart-line {
  fill: none;
  stroke: #188d69;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-area {
  fill: url(#chartFill);
}
.chart-point {
  fill: #fff;
  stroke: #188d69;
  stroke-width: 2;
}
.chart-legend {
  display: flex;
  gap: 16px;
  color: #7c8983;
  font-size: 9px;
}
.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  margin-left: 5px;
}
.method-list {
  display: grid;
  gap: 18px;
  padding-top: 7px;
}
.method-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
}
.method-symbol {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--green);
  font-size: 15px;
}
.method-symbol.blue {
  background: var(--blue-soft);
  color: var(--blue);
}
.method-symbol.amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.method-name {
  font-size: 10px;
  font-weight: 700;
}
.method-sub {
  color: var(--muted);
  font-size: 9px;
}
.method-value {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
}
.progress {
  height: 5px;
  background: #edf2ef;
  border-radius: 9px;
  margin-top: 6px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 9px;
}
.method-symbol.blue ~ .method-body .progress span {
  background: var(--blue);
}
.method-symbol.amber ~ .method-body .progress span {
  background: var(--amber);
}
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.toolbar-start,
.toolbar-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.input,
.select,
.textarea {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #e4ebe7;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 10px;
  outline: none;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: #8fcbb1;
  box-shadow: 0 0 0 3px #198d6915;
}
.search-box {
  position: relative;
}
.search-box .input {
  padding-right: 32px;
  min-width: 210px;
}
.search-box:before {
  content: "⌕";
  position: absolute;
  right: 11px;
  top: 1px;
  color: #829089;
  font-size: 18px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid #edf1ee;
  border-radius: 12px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 770px;
  text-align: right;
}
.data-table th {
  background: #f8faf9;
  color: #7f8d86;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.data-table th,
.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf1ee;
}
.data-table td {
  font-size: 10px;
  color: #52615a;
  white-space: nowrap;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #fbfdfc;
}
.order-cell {
  color: var(--green-dark);
  font-weight: 700;
}
.customer-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mini-avatar {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #eef3ff;
  color: #6378b0;
  font-size: 10px;
  font-weight: 700;
}
.customer-meta b {
  display: block;
  color: #3a4b44;
  font-size: 10px;
}
.customer-meta small {
  color: #929e98;
  font-size: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.pill:before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.pill.success {
  background: #eaf7f0;
  color: #258159;
}
.pill.pending {
  background: #fff5e5;
  color: #b57b25;
}
.pill.failed {
  background: #fff0ef;
  color: #b65d5c;
}
.pill.info {
  background: #edf2ff;
  color: #5b77bf;
}
.pill.muted {
  background: #f0f2f1;
  color: #7d8984;
}
.pill.purple {
  background: #f2edfb;
  color: #8063bb;
}
.row-actions {
  display: flex;
  gap: 5px;
}
.row-action {
  width: 28px;
  height: 28px;
  border: 1px solid #e8eeeb;
  background: #fff;
  color: #728078;
  border-radius: 8px;
  cursor: pointer;
}
.row-action:hover {
  color: var(--green);
  border-color: #b8dfca;
}
.table-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #89958f;
  font-size: 9px;
  padding-top: 12px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 5px;
}
.page-num {
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  color: #73817b;
  font: inherit;
  cursor: pointer;
}
.page-num.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f0f7ff;
  color: #5973a8;
  border: 1px solid #e4ecfc;
  font-size: 10px;
  margin-bottom: 14px;
}
.notice strong {
  display: block;
  color: #435f9a;
}
.notice.warning {
  background: #fff8ea;
  color: #98702d;
  border-color: #f8ebce;
}
.notice.success {
  background: #eef9f3;
  color: #33785a;
  border-color: #dcefe4;
}
.notice-icon {
  font-size: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field {
  display: grid;
  gap: 5px;
}
.field.wide {
  grid-column: 1/-1;
}
.field label {
  font-size: 10px;
  font-weight: 700;
  color: #526159;
}
.field .hint {
  color: #98a39e;
  font-size: 9px;
}
.textarea {
  min-height: 78px;
  resize: vertical;
}
.field .input,
.field .select {
  width: 100%;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
}
.toggle-copy b {
  display: block;
  font-size: 10px;
}
.toggle-copy small {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex: none;
}
.switch input {
  position: absolute;
  opacity: 0;
}
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: #dce4df;
  cursor: pointer;
  transition: 0.2s;
}
.switch span:before {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px #0002;
  transition: 0.2s;
}
.switch input:checked + span {
  background: var(--green);
}
.switch input:checked + span:before {
  transform: translateX(-16px);
}
.form-actions {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid #edf1ee;
}
.tabs {
  display: flex;
  gap: 5px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.tab {
  padding: 9px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #839089;
  font: inherit;
  font-size: 10px;
  white-space: nowrap;
  cursor: pointer;
}
.tab.active {
  color: var(--green-dark);
  border-color: var(--green);
  font-weight: 700;
}
.settings-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 15px;
}
.settings-subnav {
  padding: 8px;
}
.settings-subnav button {
  display: block;
  width: 100%;
  text-align: right;
  padding: 9px 10px;
  margin: 2px 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #687871;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.settings-subnav button.active {
  background: var(--mint);
  color: var(--green-dark);
  font-weight: 700;
}
.gateway-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.96);
}
.gateway-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.gateway-logo {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--mint);
  color: var(--green);
  font-size: 17px;
  flex: none;
}
.gateway-logo.blue {
  background: var(--blue-soft);
  color: var(--blue);
}
.gateway-logo.amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.gateway-title {
  flex: 1;
}
.gateway-title h3 {
  margin: 0;
  font-size: 12px;
}
.gateway-title p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 9px;
}
.gateway-head .switch {
  margin-right: auto;
}
.gateway-fields {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #edf1ee;
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-bottom: 16px;
}
.status-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.status-card small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.status-card b {
  display: block;
  margin-top: 5px;
  font-size: 11px;
}
.status-card b.online {
  color: var(--green);
}
.status-card b.offline {
  color: var(--amber);
}
.step-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.step-card {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.step-number {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  flex: none;
}
.step-card b {
  font-size: 10px;
}
.step-card p {
  font-size: 9px;
  color: var(--muted);
  margin: 2px 0 0;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 17px;
}
.bank-card {
  padding: 16px;
  border-radius: 15px;
  background: linear-gradient(135deg, #f7fbf9, #edf7f2);
  border: 1px solid #dfece5;
}
.bank-card.disabled {
  opacity: 0.62;
  filter: grayscale(0.4);
}
.bank-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bank-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 11px;
}
.bank-emblem {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 8px;
  color: #467d63;
}
.card-digits {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 12px 0 5px;
  direction: ltr;
  text-align: right;
}
.bank-card small {
  color: #829089;
  font-size: 9px;
}
.bank-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid #dce9e1;
  font-size: 9px;
}
.inline-link {
  border: 0;
  background: none;
  color: var(--green);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.control-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  background: linear-gradient(115deg, #fff 50%, #eff8f3);
  border: 1px solid #dcece3;
  border-radius: 17px;
  margin-bottom: 14px;
}
.control-hero h2 {
  font-size: 17px;
  margin: 2px 0;
}
.control-hero p {
  color: var(--muted);
  font-size: 10px;
  margin: 0;
}
.health-mark {
  padding: 7px 12px;
  border-radius: 30px;
  background: #eaf7f0;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}
.health-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin-bottom: 14px;
}
.health-card {
  padding: 14px;
}
.health-card small {
  color: var(--muted);
  font-size: 9px;
}
.health-card strong {
  display: block;
  font-size: 20px;
}
.control-lower {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}
.issue-row {
  padding: 11px 0;
  border-bottom: 1px solid #edf1ee;
}
.issue-row:last-child {
  border-bottom: 0;
}
.issue-row b {
  font-size: 10px;
}
.issue-row p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 9px;
}
.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 145px;
  padding: 15px 3px 0;
  gap: 8px;
}
.bar-group {
  height: 100%;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  flex: 1;
  justify-content: center;
  position: relative;
}
.bar {
  width: 8px;
  min-height: 4px;
  border-radius: 5px 5px 2px 2px;
  background: #50ae86;
}
.bar.fail {
  background: #efb2a8;
}
.bar.pending {
  background: #e7c67c;
}
.bar-label {
  position: absolute;
  bottom: -19px;
  color: #9aa6a0;
  font-size: 8px;
}
.action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.method-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 13px;
}
.method-choice {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
}
.method-choice:has(input:checked) {
  border-color: #76bd9b;
  background: #f3faf6;
}
.method-choice input {
  accent-color: var(--green);
}
.method-choice b {
  display: block;
  font-size: 10px;
}
.method-choice small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.chat-box {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7faf8;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.chat-head b {
  font-size: 10px;
}
.chat-head small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.chat-lines {
  padding: 13px;
  display: grid;
  gap: 8px;
  min-height: 114px;
  background: #fcfdfc;
}
.chat-bubble {
  max-width: 82%;
  padding: 8px 10px;
  border-radius: 10px;
  background: #edf7f1;
  font-size: 9px;
}
.chat-bubble.out {
  justify-self: start;
  background: #edf2ff;
}
.chat-input {
  display: flex;
  padding: 9px;
  gap: 7px;
  border-top: 1px solid var(--line);
}
.chat-input .input {
  flex: 1;
}
.log-level {
  min-width: 53px;
  text-align: center;
}
.empty-state {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.wallet-nav {
  display: flex;
  gap: 6px;
  overflow: auto;
  margin-bottom: 14px;
}
.wallet-nav .tab {
  border: 1px solid var(--line);
  border-radius: 9px;
}
.wallet-nav .tab.active {
  background: var(--mint);
  border-color: #cce8d9;
}
.modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(600px, calc(100vw - 28px));
  width: 100%;
  max-height: calc(100vh - 30px);
}
.modal::backdrop {
  background: #12221db3;
  backdrop-filter: blur(3px);
}
.modal-inner {
  position: relative;
  padding: 23px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px #12221d38;
  max-height: calc(100vh - 30px);
  overflow: auto;
}
.modal-close {
  position: absolute;
  left: 14px;
  top: 12px;
  border: 0;
  background: #f3f6f4;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  font-size: 20px;
  cursor: pointer;
  color: #6d7973;
}
.modal h2 {
  font-size: 15px;
  margin: 0 35px 14px 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.detail-item {
  background: #f7faf8;
  border-radius: 10px;
  padding: 10px;
}
.detail-item small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.detail-item b {
  font-size: 10px;
}
.receipt-preview {
  height: 145px;
  border: 1px dashed #c9d9cf;
  background: #f7faf8;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #829089;
  font-size: 10px;
  margin: 13px 0;
}
.receipt-image-frame {
  position: relative;
  display: grid;
  place-items: center;
  max-height: min(68vh, 760px);
  overflow: auto;
  padding: 10px;
  border: 1px solid #dce8e3;
  border-radius: 14px;
  background: #edf4f1;
}
.receipt-image {
  display: block;
  width: min(100%, 430px);
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(23, 58, 49, .14);
}
.receipt-image-watermark {
  position: absolute;
  inset-block-start: 22px;
  inset-inline: 20px;
  width: max-content;
  max-width: calc(100% - 40px);
  margin-inline: auto;
  padding: 7px 12px;
  border: 1px solid rgba(236, 215, 159, .9);
  border-radius: 999px;
  background: rgba(255, 244, 217, .94);
  color: #7b5910;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.receipt-caption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.modal-note {
  margin-top: 12px;
}
.toast-region {
  position: fixed;
  z-index: 50;
  left: 22px;
  bottom: 22px;
  display: grid;
  gap: 8px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 260px;
  max-width: min(390px, calc(100vw - 40px));
  padding: 11px 14px;
  background: #173c31;
  color: white;
  border-radius: 12px;
  box-shadow: 0 12px 34px #183b3040;
  font-size: 10px;
  animation: toast-in 0.2s ease;
}
.toast.error {
  background: #8d4441;
}
.toast button {
  margin-right: auto;
  border: 0;
  background: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.page-footer {
  display: flex;
  justify-content: space-between;
  color: #9ba7a1;
  font-size: 9px;
  padding: 15px 3px;
}
.sidebar-scrim {
  display: none;
}
.risk-meter {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--amber) 0 28%, #edf1ee 28%);
  position: relative;
  color: #9a6924;
  font-size: 10px;
  font-weight: 700;
}
.risk-meter:before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}
.risk-meter span {
  position: relative;
}
.filter-chip {
  border: 1px solid #e4ebe7;
  background: #fff;
  padding: 6px 9px;
  border-radius: 8px;
  color: #718078;
  font: inherit;
  font-size: 9px;
  cursor: pointer;
}
.filter-chip.active {
  border-color: #b8dfca;
  background: #f2faf5;
  color: var(--green-dark);
}
.notice-close {
  margin-right: auto;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font-size: 15px;
}
.mini-kpi {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 9px;
}
.mini-kpi b {
  color: var(--ink);
}
@media (max-width: 1180px) {
  .sidebar {
    width: 232px;
  }
  .main-area {
    margin-right: 232px;
  }
  .page-wrap {
    padding: 25px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .health-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 820px) {
  .sidebar {
    transform: translateX(100%);
    width: min(290px, 84vw);
    box-shadow: -14px 0 40px #142b2018;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-close {
    display: grid;
  }
  .sidebar-scrim.show {
    display: block;
    position: fixed;
    inset: 34px 0 0;
    background: #15251d70;
    z-index: 19;
  }
  .main-area {
    margin-right: 0;
  }
  .menu-toggle {
    display: grid;
    margin-left: 10px;
    font-size: 17px;
  }
  .topbar {
    height: 60px;
    padding: 0 16px;
  }
  .page-wrap {
    padding: 22px 16px;
  }
  .dashboard-grid,
  .control-lower {
    grid-template-columns: 1fr;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-subnav {
    display: flex;
    overflow: auto;
  }
  .settings-subnav button {
    white-space: nowrap;
    width: auto;
  }
  .page-header {
    align-items: flex-start;
  }
  .page-title {
    font-size: 20px;
  }
  .top-help span:last-child {
    display: none;
  }
  .topbar-actions {
    gap: 10px;
  }
  .user-chip > span:nth-child(2) {
    display: none;
  }
  .page-footer {
    gap: 8px;
    flex-direction: column;
  }
  .chart-wrap {
    height: 190px;
  }
}
@media (max-width: 560px) {
  .demo-ribbon {
    font-size: 9px;
  }
  .page-wrap {
    padding: 18px 12px;
  }
  .topbar {
    padding: 0 12px;
  }
  .top-help {
    padding: 0;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .page-header {
    display: block;
  }
  .header-actions {
    margin-top: 13px;
  }
  .stats-grid {
    gap: 8px;
  }
  .stat-card {
    padding: 12px;
    min-height: 112px;
  }
  .stat-value {
    font-size: 18px;
  }
  .stat-label {
    font-size: 9px;
  }
  .section-card,
  .panel {
    padding: 15px;
    border-radius: 15px;
  }
  .card-grid,
  .status-grid,
  .step-list {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.wide {
    grid-column: auto;
  }
  .health-grid {
    gap: 8px;
  }
  .health-card {
    padding: 11px;
  }
  .control-hero {
    padding: 15px;
  }
  .health-mark {
    font-size: 9px;
  }
  .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;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .toast-region {
    left: 10px;
    bottom: 10px;
    right: 10px;
  }
  .toast {
    min-width: 0;
    width: 100%;
  }
  .page-footer {
    font-size: 8px;
  }
  .stat-trend {
    font-size: 8px;
  }
  .wallet-nav {
    margin-left: -4px;
    margin-right: -4px;
  }
  .top-divider {
    display: none;
  }
}
